From ec3685152d717fd3e7002c9161b2607a82d6bd02 Mon Sep 17 00:00:00 2001 From: XueMoMo <2681350846@qq.com> Date: Mon, 12 Aug 2024 06:28:18 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20crustio/?= =?UTF-8?q?crust-files@6db4cd6e6b7dc7a871bac72546c1ff5af602a277=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/404/index.html | 2 +- .../_buildManifest.js | 0 .../_ssgManifest.js | 0 ...app-c731668041705172496b.js => _app-4c4ab82e0f2473666959.js} | 2 +- docs/docs/CrustFiles_DeveloperGuide/index.html | 2 +- docs/docs/CrustFiles_FAQ/index.html | 2 +- docs/docs/CrustFiles_ShareandEarn/index.html | 2 +- docs/docs/CrustFiles_Users/index.html | 2 +- docs/docs/CrustFiles_Welcome/index.html | 2 +- docs/files/index.html | 2 +- docs/files/vault/index.html | 2 +- docs/home/index.html | 2 +- docs/index.html | 2 +- docs/invite_bonus_guide/index.html | 2 +- docs/mobile/index.html | 2 +- docs/rewards_history/index.html | 2 +- docs/setting/index.html | 2 +- docs/share-earn/index.html | 2 +- docs/share/index.html | 2 +- docs/user/index.html | 2 +- 20 files changed, 18 insertions(+), 18 deletions(-) rename docs/_next/static/{wePOh3D8IL0sTLAI3Q-XE => 4T8sMMro0eCvpY-51kErm}/_buildManifest.js (100%) rename docs/_next/static/{wePOh3D8IL0sTLAI3Q-XE => 4T8sMMro0eCvpY-51kErm}/_ssgManifest.js (100%) rename docs/_next/static/chunks/pages/{_app-c731668041705172496b.js => _app-4c4ab82e0f2473666959.js} (68%) diff --git a/docs/404/index.html b/docs/404/index.html index dda0ed62..a04a9558 100644 --- a/docs/404/index.html +++ b/docs/404/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/_next/static/wePOh3D8IL0sTLAI3Q-XE/_buildManifest.js b/docs/_next/static/4T8sMMro0eCvpY-51kErm/_buildManifest.js similarity index 100% rename from docs/_next/static/wePOh3D8IL0sTLAI3Q-XE/_buildManifest.js rename to docs/_next/static/4T8sMMro0eCvpY-51kErm/_buildManifest.js diff --git a/docs/_next/static/wePOh3D8IL0sTLAI3Q-XE/_ssgManifest.js b/docs/_next/static/4T8sMMro0eCvpY-51kErm/_ssgManifest.js similarity index 100% rename from docs/_next/static/wePOh3D8IL0sTLAI3Q-XE/_ssgManifest.js rename to docs/_next/static/4T8sMMro0eCvpY-51kErm/_ssgManifest.js diff --git a/docs/_next/static/chunks/pages/_app-c731668041705172496b.js b/docs/_next/static/chunks/pages/_app-4c4ab82e0f2473666959.js similarity index 68% rename from docs/_next/static/chunks/pages/_app-c731668041705172496b.js rename to docs/_next/static/chunks/pages/_app-4c4ab82e0f2473666959.js index 5c70b3d0..88851877 100644 --- a/docs/_next/static/chunks/pages/_app-c731668041705172496b.js +++ b/docs/_next/static/chunks/pages/_app-4c4ab82e0f2473666959.js @@ -1020,4 +1020,4 @@ width: 16px; `,_h=Qo(Rs)` margin-top: 32px; -`,Sh=e=>{const t=Ps(e),r=Ri(cl),[n,i]=Si(!0),[o,a]=Si(!1);let s,c;ki((()=>{const e=Na();a(!!e&&"sent"in e&&e.sent)})),(null==r?void 0:r.wallet)&&"universalLink"in r.wallet&&("universal-link"===r.wallet.openMethod||Wr(r.wallet.universalLink)&&ys())&&(s=r.wallet.universalLink),(null==r?void 0:r.wallet)&&"deepLink"in r.wallet&&("custom-deeplink"===r.wallet.openMethod||Wr(r.wallet.deepLink)&&ys())&&(c=r.wallet.deepLink);const u=()=>{const e=Na(),t="returnStrategy"in e?e.returnStrategy:Pf.returnStrategy,r=!n();i(!1),Wr(s)?fd(s,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:Pf.twaReturnUrl,forceRedirect:r}):dd(s,c,{returnStrategy:t,forceRedirect:r},(()=>{}))};return $i(yh,no(t,{get children(){return[Mi((()=>e.icon)),$i(bh,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),$i(vh,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),$i(ao,{get when(){return!o()&&("open-wallet"===e.showButton&&s||"open-wallet"!==e.showButton)},get children(){return $i(wh,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return $i(xh,{})}})}}),$i(ao,{get when(){return o()},get children(){return[$i(ao,{get when(){return"open-wallet"!==e.showButton},get children(){return $i(_h,{onClick:()=>e.onClose(),get children(){return $i(ud,{translationKey:"common.close",children:"Close"})}})}}),$i(ao,{get when(){return"open-wallet"===e.showButton&&s},get children(){return $i(_h,{onClick:u,get children(){return $i(ud,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},Ah=e=>{const t=Ri(cl),[r]=Oc();return $i(Sh,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:r("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return $i(du,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},Eh=e=>$i(Sh,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return $i(cu,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),kh=e=>$i(Sh,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return $i(iu,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),Mh=()=>$i(cc,{get opened(){var e;return Mi((()=>null!==Na()))()&&!0===(null==(e=Na())?void 0:e.openModal)},get enableAndroidBackHandler(){return Pf.enableAndroidBackHandler},onClose:()=>La(null),"data-tc-actions-modal-container":"true",get children(){return $i(so,{get children(){return[$i(co,{get when(){return"transaction-sent"===Na().name},get children(){return $i(kh,{onClose:()=>La(null)})}}),$i(co,{get when(){return"transaction-canceled"===Na().name},get children(){return $i(Eh,{onClose:()=>La(null)})}}),$i(co,{get when(){return"confirm-transaction"===Na().name},get children(){return $i(Ah,{onClose:()=>La(null)})}})]}})}}),Ch=()=>{const{locale:e}=Oc()[1];ki((()=>e(Pf.language))),ki((()=>{Ta()&&il()}));const t=Ri(Fa),r=Ri(cl),[n,i]=Si(!1),o=()=>{var e;return"loading"===(null==(e=Pf.connectRequestParameters)?void 0:e.state)},a=Mi((()=>{var e;if(!o())return null==(e=Pf.connectRequestParameters)?void 0:e.value})),s=e=>{r.closeSingleWalletModal(e)};return Ii(t.onStatusChange((e=>{e&&s("wallet-selected")}))),Ii((()=>{i(!1)})),$i(Tf,{get opened(){return Ta()},get enableAndroidBackHandler(){return Pf.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>i((e=>!e)),"data-tc-wallets-modal-container":"true",get children(){return[$i(ao,{get when(){return n()},get children(){return $i(Ad,{onBackClick:()=>i(!1)})}}),$i(ao,{get when(){return!n()},get children(){return[$i(ao,{get when(){return o()},get children(){return[$i(If,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),$i(Of,{get children(){return $i(du,{size:"m"})}})]}}),$i(ao,{get when(){return!o()},get children(){return $i(Bo,{get component(){return rl()?Fd:pd},get wallet(){return Ia()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},Th=e=>{const t=Tc(Da,Pf.language);return customElements.define(ea,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),$i(Ic.Provider,{value:t,get children(){return $i(cl.Provider,{get value(){return e.tonConnectUI},get children(){return $i(Fa.Provider,{get value(){return Pf.connector},get children(){return[$i(na,{}),$i(Xo,{theme:as,get children(){return[$i(ao,{get when(){return Pf.buttonRootId},get children(){return $i(Ro,{get mount(){return document.getElementById(Pf.buttonRootId)},get children(){return $i(Cf,{})}})}}),$i(Bo,{component:ea,get children(){return[$i(mh,{}),$i(Ch,{}),$i(Mh,{})]}})]}})]}})}})}})},Ih=()=>{setTimeout((()=>Ea({status:"opened",closeReason:null})))},Oh=e=>{setTimeout((()=>Ea({status:"closed",closeReason:e})))},Ph=e=>{setTimeout((()=>Ca({status:"opened",closeReason:null,walletInfo:e})))},Rh=e=>{setTimeout((()=>Ca({status:"closed",closeReason:e})))},Bh=e=>{setTimeout((()=>La(e)))},Nh=()=>{setTimeout((()=>La(null)))},Lh=()=>Pa(),jh=()=>Ba(null),Dh=(e,t)=>function(e,t,r,n={}){let i;return _i((n=>{i=n,t===document?e():So(t,e(),t.firstChild?null:void 0,r)}),n.owner),()=>{i(),t.textContent=""}}((()=>$i(Th,{tonConnectUI:t})),document.getElementById(e));class Uh{constructor(e){ai(this,"connector"),ai(this,"setConnectRequestParametersCallback"),ai(this,"consumers",[]),ai(this,"tracker"),ai(this,"state",Aa()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,ki((()=>{const e=Aa();this.state=e,this.consumers.forEach((t=>t(e)))}))}open(){return si(this,null,(function*(){this.tracker.trackConnectionStarted();const e=(yield this.connector.getWallets()).find(hn);return e?this.connectEmbeddedWallet(e):this.openWalletsModal()}))}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Oh(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}connectEmbeddedWallet(e){const t=t=>{Ba(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},r=Pf.connectRequestParameters;"loading"===(null==r?void 0:r.state)?this.setConnectRequestParametersCallback(t):t(null==r?void 0:r.value)}openWalletsModal(){return si(this,null,(function*(){return ys()&&bs(),Ih(),new Promise((e=>{const t=this.onStateChange((r=>{const{status:n}=r;"opened"===n&&(t(),e())}))}))}))}}class Fh{constructor(e){ai(this,"connector"),ai(this,"consumers",[]),this.connector=e.connector,ki((()=>{const e=Na();this.consumers.forEach((t=>t(e)))}))}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}}class Hh{constructor(e){ai(this,"connector"),ai(this,"setConnectRequestParametersCallback"),ai(this,"consumers",[]),ai(this,"tracker"),ai(this,"state",Ma()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,ki((()=>{const e=Ma();this.state=e,this.consumers.forEach((t=>t(e)))}))}open(e){return si(this,null,(function*(){this.tracker.trackConnectionStarted();const t=Nf(yield this.connector.getWallets(),Pf.walletsListConfiguration),r=t.find(hn);if(!!r)return this.connectEmbeddedWallet(r);const n=t.filter(pn).find((t=>Uf(t,e)));if(!!n)return this.openSingleWalletModal(n);const i=`Trying to open modal window with unknown wallet "${e}".`;throw this.tracker.trackConnectionError(i),new ca(i)}))}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Rh("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}connectEmbeddedWallet(e){const t=t=>{Ba(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},r=Pf.connectRequestParameters;"loading"===(null==r?void 0:r.state)?this.setConnectRequestParametersCallback(t):t(null==r?void 0:r.value)}openSingleWalletModal(e){return si(this,null,(function*(){return ys()&&bs(),Ph(e),new Promise((e=>{const t=this.onStateChange((r=>{const{status:n}=r;"opened"===n&&(t(),e())}))}))}))}}class zh{constructor(e){var t;ai(this,"eventPrefix","ton-connect-ui-"),ai(this,"tonConnectUiVersion"),ai(this,"tonConnectSdkVersion",null),ai(this,"eventDispatcher"),this.eventDispatcher=null!=(t=null==e?void 0:e.eventDispatcher)?t:new Rn,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return wn({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return si(this,null,(function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(Bp){}}))}setRequestVersionHandler(){return si(this,null,(function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",(()=>si(this,null,(function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",vn(this.tonConnectUiVersion))}))))}))}requestTonConnectSdkVersion(){return si(this,null,(function*(){return new Promise(((e,t)=>si(this,null,(function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",(t=>{e(t.detail.version)}),{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",{type:"request-version"})}catch(Bp){t(Bp)}}))))}))}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(Bp){}}trackConnectionStarted(...e){try{const t=_n(this.version,...e);this.dispatchUserActionEvent(t)}catch(Bp){}}trackConnectionCompleted(...e){try{const t=Sn(this.version,...e);this.dispatchUserActionEvent(t)}catch(Bp){}}trackConnectionError(...e){try{const t=An(this.version,...e);this.dispatchUserActionEvent(t)}catch(Bp){}}trackConnectionRestoringStarted(...e){try{const t=En(this.version,...e);this.dispatchUserActionEvent(t)}catch(Bp){}}trackConnectionRestoringCompleted(...e){try{const t=kn(this.version,...e);this.dispatchUserActionEvent(t)}catch(Bp){}}trackConnectionRestoringError(...e){try{const t=Mn(this.version,...e);this.dispatchUserActionEvent(t)}catch(Bp){}}trackDisconnection(...e){try{const t=Pn(this.version,...e);this.dispatchUserActionEvent(t)}catch(Bp){}}trackTransactionSentForSignature(...e){try{const t=Tn(this.version,...e);this.dispatchUserActionEvent(t)}catch(Bp){}}trackTransactionSigned(...e){try{const t=In(this.version,...e);this.dispatchUserActionEvent(t)}catch(Bp){}}trackTransactionSigningFailed(...e){try{const t=On(this.version,...e);this.dispatchUserActionEvent(t)}catch(Bp){}}}class qh{constructor(e){if(ai(this,"walletInfoStorage",new xa),ai(this,"preferredWalletStorage",new _a),ai(this,"tracker"),ai(this,"walletInfo",null),ai(this,"systemThemeChangeUnsubscribe",null),ai(this,"actionsConfiguration"),ai(this,"walletsList"),ai(this,"connectRequestParametersCallback"),ai(this,"connector"),ai(this,"modal"),ai(this,"singleWalletModal"),ai(this,"transactionModal"),ai(this,"connectionRestored",Promise.resolve(!1)),e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new ca("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new Nn({manifestUrl:e.manifestUrl,eventDispatcher:null==e?void 0:e.eventDispatcher})}this.tracker=new zh({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectUiVersion:"2.0.5"}),this.modal=new Uh({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new Hh({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new Fh({connector:this.connector}),this.walletsList=this.getWallets(),this.walletsList.then((e=>{return pa((t=e.map((e=>e.imageUrl)),[...new Set(t)]));var t}));const t=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return si(this,null,(function*(){return yield new Promise((e=>requestAnimationFrame(e))),e()}))}((()=>si(this,null,(function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))))),this.uiOptions=os(e,{uiPreferences:{theme:"SYSTEM"}});const r=this.preferredWalletStorage.getPreferredWalletAppName();Rf({connector:this.connector,preferredWalletAppName:r}),Dh(t,this)}static getWallets(){return Nn.getWallets()}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?ii(ii({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,r,n,i,o,a,s;this.checkButtonRootExist(e.buttonRootId),this.actionsConfiguration=e.actionsConfiguration,(null==(t=e.uiPreferences)?void 0:t.theme)?"SYSTEM"!==(null==(r=e.uiPreferences)?void 0:r.theme)?(null==(n=this.systemThemeChangeUnsubscribe)||n.call(this),ls(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(ls(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?No.LIGHT:No.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?No.DARK:No.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(ls))):(null==(i=e.uiPreferences)?void 0:i.colorsSet)&&(a=e.uiPreferences.colorsSet,us[No.DARK]=os(a[No.DARK],us[No.DARK]),us[No.LIGHT]=os(a[No.LIGHT],us[No.LIGHT]),ss((e=>({colors:os(us[e.theme],cs[e.theme])})))),(null==(o=e.uiPreferences)?void 0:o.borderRadius)&&(s=e.uiPreferences.borderRadius,ss({borderRadius:s})),Rf((t=>{var r,n;const i=os(ii(ii(ii(ii({},e.language&&{language:e.language}),!!(null==(r=e.actionsConfiguration)?void 0:r.returnStrategy)&&{returnStrategy:e.actionsConfiguration.returnStrategy}),!!(null==(n=e.actionsConfiguration)?void 0:n.twaReturnUrl)&&{twaReturnUrl:e.actionsConfiguration.twaReturnUrl}),!!e.walletsListConfiguration&&{walletsListConfiguration:e.walletsListConfiguration}),Ga(t));return void 0!==e.buttonRootId&&(i.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(i.enableAndroidBackHandler=e.enableAndroidBackHandler),i}))}setConnectRequestParameters(e){var t;Rf({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}getWallets(){return si(this,null,(function*(){return this.connector.getWallets()}))}onStatusChange(e,t){return this.connector.onStatusChange((t=>si(this,null,(function*(){if(t){const r=yield this.getSelectedWalletInfo(t);e(ii(ii({},t),r||this.walletInfoStorage.getWalletInfo()))}else e(t)}))),t)}openModal(){return si(this,null,(function*(){return this.modal.open()}))}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return si(this,null,(function*(){return this.singleWalletModal.open(e)}))}closeSingleWalletModal(e){this.singleWalletModal.close(e)}onSingleWalletModalStateChange(e){return this.singleWalletModal.onStateChange(e)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return si(this,null,(function*(){const e=(yield this.getWallets()).find(hn);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()}))}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),Nh(),jh(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return si(this,null,(function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new ca("Connect wallet to send a transaction.");ys()&&bs();const{notifications:r,modals:n,returnStrategy:i,twaReturnUrl:o,skipRedirectToWallet:a}=this.getModalsAndNotificationsConfiguration(t);Bh({name:"confirm-transaction",showNotification:r.includes("before"),openModal:n.includes("before"),sent:!1});const s=()=>{c.signal.aborted||(Bh({name:"confirm-transaction",showNotification:r.includes("before"),openModal:n.includes("before"),sent:!0}),this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)&&(Wr(this.walletInfo.universalLink)?fd(this.walletInfo.universalLink,{returnStrategy:i,twaReturnUrl:o||Pf.twaReturnUrl,forceRedirect:!1}):dd(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:i,forceRedirect:!1},(()=>{}))))},c=new AbortController,u=this.onTransactionModalStateChange((e=>{(null==e?void 0:e.openModal)||(u(),e||c.abort())}));try{const t=yield this.waitForSendTransaction({transaction:e,signal:c.signal},s);return this.tracker.trackTransactionSigned(this.wallet,e,t),Bh({name:"transaction-sent",showNotification:r.includes("success"),openModal:n.includes("success")}),t}catch(Bp){throw Bh({name:"transaction-canceled",showNotification:r.includes("error"),openModal:n.includes("error")}),Bp instanceof Er?Bp:(console.error(Bp),new ca("Unhandled error:"+Bp))}finally{u()}}))}connectEmbeddedWallet(e){return si(this,null,(function*(){const t=t=>{Ba(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},r=Pf.connectRequestParameters;return"loading"===(null==r?void 0:r.state)?this.connectRequestParametersCallback=t:t(null==r?void 0:r.value),yield this.waitForWalletConnection({ignoreErrors:!1})}))}connectExternalWallet(){return si(this,null,(function*(){const e=new AbortController;Ih();const t=this.onModalStateChange((r=>{const{status:n,closeReason:i}=r;"opened"!==n&&(t(),"action-cancelled"===i&&e.abort())}));return yield this.waitForWalletConnection({ignoreErrors:!0,signal:e.signal})}))}waitForWalletConnection(e){return si(this,null,(function*(){return new Promise(((t,r)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:n=!1,signal:i=null}=e;if(i&&i.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),r(new ca("Wallet was not connected"));const o=e=>si(this,null,(function*(){if(e)this.tracker.trackConnectionCompleted(e),s(),t(e);else{if(this.tracker.trackConnectionError("Connection was cancelled"),n)return;s(),r(new ca("Wallet was not connected"))}})),a=e=>{this.tracker.trackConnectionError(e.message),n||(s(),r(e))},s=this.onStatusChange((e=>o(e)),(e=>a(e)));i&&i.addEventListener("abort",(()=>{s(),r(new ca("Wallet was not connected"))}),{once:!0})}))}))}waitForSendTransaction(e,t){return si(this,null,(function*(){return new Promise(((r,n)=>{const{transaction:i,signal:o}=e;if(o.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,i,"Transaction was cancelled"),n(new ca("Transaction was not sent"));const a=e=>si(this,null,(function*(){r(e)})),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,i,"Transaction was cancelled"),n(new ca("Transaction was not sent"))};o.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(i,{onRequestSent:t,signal:o}).then((e=>(o.removeEventListener("abort",s),a(e)))).catch((e=>(o.removeEventListener("abort",s),(e=>{n(e)})(e))))}))}))}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange((e=>si(this,null,(function*(){var t;e?(yield this.updateWalletInfo(e),this.setPreferredWalletAppName((null==(t=this.walletInfo)?void 0:t.appName)||e.device.appName)):this.walletInfoStorage.removeWalletInfo()}))))}setPreferredWalletAppName(e){this.preferredWalletStorage.setPreferredWalletAppName(e),Rf({preferredWalletAppName:e})}getSelectedWalletInfo(e){return si(this,null,(function*(){let t,r=Lh();if(!r)return null;if("name"in r)t=r;else{const n=Nf(yield this.walletsList,Pf.walletsListConfiguration).find((t=>Uf(t,e.device.appName)));if(!n)throw new ca(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=ii(ii({},n),r)}return t}))}updateWalletInfo(e){return si(this,null,(function*(){const t=yield this.getSelectedWalletInfo(e);if(t)return this.walletInfo=t,void this.walletInfoStorage.setWalletInfo(t);const r=this.walletInfoStorage.getWalletInfo();this.walletInfo=r||((yield this.walletsList).find((t=>Uf(t,e.device.appName)))||null)}))}normalizeWidgetRoot(e){if(!e||!document.getElementById(e)){e="tc-widget-root";const t=document.createElement("div");t.id=e,document.body.appendChild(t)}return e}checkButtonRootExist(e){if(null!=e&&!document.getElementById(e))throw new ca(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,r,n,i,o,a;const s=["before","success","error"];let c=s;(null==(t=this.actionsConfiguration)?void 0:t.notifications)&&"all"!==(null==(r=this.actionsConfiguration)?void 0:r.notifications)&&(c=this.actionsConfiguration.notifications),(null==e?void 0:e.notifications)&&(c="all"===e.notifications?s:e.notifications);let u=["before"];(null==(n=this.actionsConfiguration)?void 0:n.modals)&&(u="all"===this.actionsConfiguration.modals?s:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(u="all"===e.modals?s:e.modals);const l=(null==e?void 0:e.returnStrategy)||(null==(i=this.actionsConfiguration)?void 0:i.returnStrategy)||"back",f=(null==e?void 0:e.twaReturnUrl)||(null==(o=this.actionsConfiguration)?void 0:o.twaReturnUrl);let d=(null==e?void 0:e.skipRedirectToWallet)||(null==(a=this.actionsConfiguration)?void 0:a.skipRedirectToWallet)||"ios";return ys()&&(d="never"),{notifications:c,modals:u,returnStrategy:l,twaReturnUrl:f,skipRedirectToWallet:d}}}var Vh,Wh=Object.defineProperty,Gh=Object.getOwnPropertySymbols,Kh=Object.prototype.hasOwnProperty,Zh=Object.prototype.propertyIsEnumerable,Xh=(e,t,r)=>t in e?Wh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yh=(e,t)=>{for(var r in t||(t={}))Kh.call(t,r)&&Xh(e,r,t[r]);if(Gh)for(var r of Gh(t))Zh.call(t,r)&&Xh(e,r,t[r]);return e},Jh={exports:{}},Qh={};!function(e){e.exports=function(){if(Vh)return Qh;Vh=1;var e=l,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,a){var s,c={},u=null,l=null;for(s in void 0!==a&&(u=""+a),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(l=r.ref),r)n.call(r,s)&&!o.hasOwnProperty(s)&&(c[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===c[s]&&(c[s]=r[s]);return{$$typeof:t,type:e,key:u,ref:l,props:c,_owner:i.current}}return Qh.Fragment=r,Qh.jsx=a,Qh.jsxs=a,Qh}()}(Jh);const $h=Jh.exports.jsx;function ep(){return"undefined"!==typeof window}const tp=(0,l.createContext)(null);let rp=null;(0,l.memo)((e=>{var t=e,{children:r}=t,n=((e,t)=>{var r={};for(var n in e)Kh.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Gh)for(var n of Gh(e))t.indexOf(n)<0&&Zh.call(e,n)&&(r[n]=e[n]);return r})(t,["children"]);return ep()&&!rp&&(rp=new qh(n)),$h(tp.Provider,{value:rp,children:r})}));class np extends ca{constructor(...e){super(...e),Object.setPrototypeOf(this,np.prototype)}}class ip extends np{constructor(...e){super(...e),Object.setPrototypeOf(this,ip.prototype)}}function op(){const e=(0,l.useContext)(tp),t=(0,l.useCallback)((t=>{e&&(e.uiOptions=t)}),[e]);return ep()?(function(e){if(!e)throw new ip("You should add on the top of the app to use TonConnect")}(e),[e,t]):[null,()=>{}]}const ap="ton-connect-button";(0,l.memo)((({className:e,style:t})=>{const[r,n]=op();return(0,l.useEffect)((()=>(n({buttonRootId:ap}),()=>n({buttonRootId:null}))),[n]),$h("div",{id:ap,className:e,style:Yh({width:"fit-content"},t)})}));var sp,cp=r(48764),up=r(55835),lp=r(11187),fp=r(99358),dp="ton-proof-item-v2/",hp="ton-connect";function pp(e){return gp.apply(this,arguments)}function gp(){return(gp=(0,o.Z)(c().mark((function e(t){var r,n,i,o,a,s,u;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=cp.Buffer.from((0,lp.hL)(t.Workchain,{size:4})),n=cp.Buffer.from((0,lp.hL)(t.Timstamp,{size:8}).reverse()),i=cp.Buffer.from((0,lp.hL)(t.Domain.LengthBytes,{size:4}).reverse()),o=cp.Buffer.concat([cp.Buffer.from(dp),r,t.Address,i,cp.Buffer.from(t.Domain.Value),n,cp.Buffer.from(t.Payload)]),a=(0,up.createHash)("sha256").update(o).digest(),s=cp.Buffer.concat([cp.Buffer.from([255,255]),cp.Buffer.from(hp),cp.Buffer.from(a)]),u=(0,up.createHash)("sha256").update(s).digest(),e.abrupt("return",cp.Buffer.from(u));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var mp=function(){function e(){(0,g.Z)(this,e),(0,a.Z)(this,"isInit",void 0),(0,a.Z)(this,"tonconnectui",void 0),(0,a.Z)(this,"tonProof",void 0),(0,a.Z)(this,"cancelStateSub",void 0)}return y(e,[{key:"init",value:function(){var e=(0,o.Z)(c().mark((function e(){var t;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isInit){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,fetch("https://tonapi.io/v2/tonconnect/payload").then((function(e){return e.json()})).then((function(e){return e.payload}));case 4:t=e.sent,this.tonProof=void 0,this.tonconnectui=sp||new qh({manifestUrl:"".concat(window.location.origin,"/tonconnect-manifest").concat(fp.T?"-dev":"",".json")}),sp=this.tonconnectui,this.tonconnectui.setConnectRequestParameters({state:"ready",value:{tonProof:t}}),this.isInit=!0;case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"sign",value:function(){var e=(0,o.Z)(c().mark((function e(t,r){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw"Not implementation";case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"login",value:function(){var e=(0,o.Z)(c().mark((function e(t){var r,n,o,a,s,u,l,f,d,h,p,g,m,y,b,v,w,x,_,S,A;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.tonProof){e.next=2;break}throw"TonConnect tonProof not found";case 2:if(a=null===(r=this.tonconnectui.account)||void 0===r?void 0:r.address,s=null===(n=this.tonconnectui.account)||void 0===n?void 0:n.publicKey,u=null===(o=this.tonconnectui.account)||void 0===o?void 0:o.walletStateInit,a&&s&&u){e.next=7;break}throw"TonConnect account not found";case 7:return l=function(e){return Ln(e,!e.startsWith("0:"))}(a),f={account:l,wallet:"ton-connect"},d=(0,E.WJ)(f),h=a.split(":"),p=(0,i.Z)(h,2),g=p[0],m=p[1],y={Workchain:Number(g),Address:cp.Buffer.from(m,"hex"),Domain:{LengthBytes:this.tonProof.proof.domain.lengthBytes,Value:this.tonProof.proof.domain.value},Signature:cp.Buffer.from(this.tonProof.proof.signature,"base64"),Payload:this.tonProof.proof.payload,StateInit:u,Timstamp:this.tonProof.proof.timestamp},e.next=15,pp(y);case 15:return b=e.sent,v=b.toString("hex"),w=this.tonProof.proof.signature,x="".concat(d,"-").concat(s,"-").concat(v,":").concat(w),_=window.btoa(x),S="".concat(_),A="".concat(_),f.authBasic=S,f.authBearer=A,f.pubKey=s,console.info("hexData",v),console.info("signer",s),console.info("signature",w),e.abrupt("return",[[l],f]);case 29:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),yp=function(){function e(){(0,g.Z)(this,e),(0,a.Z)(this,"isInit",!1),(0,a.Z)(this,"signMessage",void 0),(0,a.Z)(this,"provider",void 0)}return y(e,[{key:"init",value:function(){var e=(0,o.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"sign",value:function(e){return this.provider.signMessage(e).then((function(e){return e}))}}]),e}();function bp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vp(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"files:login";return d().get("".concat(t,":").concat(e,":last"))}function Ap(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"files:login";d().set("".concat(r,":").concat(e,":last"),t)}var Ep={files:[],isLoad:!0},kp=function(e){e.files.forEach((function(e){e.PinTime||(e.PinTime=(new Date).getTime())}))};function Mp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"files",t=(0,l.useState)(Ep),r=t[0],n=t[1];(0,l.useEffect)((function(){try{var t=d().get(e,Ep);t.isLoad=!1,t!==Ep&&(kp(t),n(t))}catch(Lo){console.error(Lo)}}),[e]);var i=(0,l.useCallback)((function(t){var i=vp(vp({},r),{},{files:t});kp(i),n(i),d().set(e,i)}),[r,e]),o=(0,l.useCallback)((function(e){e.Hash&&i(r.files.filter((function(t){return t.Hash!==e.Hash})))}),[r,i]);return(0,l.useMemo)((function(){return vp(vp({},r),{},{setFiles:i,deleteItem:o,key:e})}),[r,i,o,e])}function Cp(e){var t=(0,l.useState)({}),r=t[0],n=t[1];return(0,l.useEffect)((function(){if(!e.account)return function(){};n((function(){return{sign:function(){var t=(0,o.Z)(c().mark((function t(r){var n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null===(n=e.useWallet)||void 0===n?void 0:n.sign(r,e.account));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}))}),[e]),r}var Tp={account:"",wallet:"crust",key:"files:login",authBasic:null,authBearer:null},Ip={crust:new I,"polkadot-js":new $t,subWallet:new ir,talisman:new yr,metamask:new Fe,metax:new je,near:new Yt,flow:new D,solana:new tr,algorand:new x,elrond:new R,"aptos-martian":new _,"aptos-petra":new S,"wallet-connect":new Ne,web3auth:new yp,oasis:new Fe,mimir:new Wt,"ton-connect":new mp};function Op(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"files:login",t=(0,p.mN)(),r=t.logout,n=(0,l.useState)(Tp),a=n[0],s=n[1],f=(0,l.useState)(),g=f[0],m=f[1],y=(0,l.useState)(""),b=y[0],v=y[1],w=(0,l.useState)(),x=w[0],_=w[1],S=(0,l.useState)(!0),A=S[0],E=S[1],k=(0,u.useRouter)(),M=(0,l.useCallback)((function(t){var r=vp(vp({},t),{},{key:e});console.info("nAccount:",r),s((function(e){var t;"near"===e.wallet&&(null===(t=Ip.near.wallet)||void 0===t||t.signOut());return r})),d().set(e,r),_p.includes(r.wallet)&&r.account&&Ap(r.wallet,r)}),[e]);(0,l.useEffect)((function(){var e=Ip.metamask;e.onAccountChange=function(e){console.info("accountsChange::",e,a),a.wallet.startsWith("metamask")&&M(Tp)},e.onChainChange=function(e){a.wallet.startsWith("metamask")&&M(vp({},a))}}),[a]),(0,l.useEffect)((function(){Ip.metax.onAccountChange=function(e){if(console.info("accountsChange::",e,a),"metax"===a.wallet){var t=e;0!==t.length?M({account:t[0],wallet:a.wallet}):M(Tp)}}}),[M,a]),(0,l.useEffect)((function(){var e=Ip["wallet-connect"];e.onAccountChanged=function(e){"wallet-connect"===a.wallet&&(e.length?(console.info("wallet-connet:changed:",e),M({account:e[0],wallet:a.wallet})):M(Tp))},e.onDisconnect=function(){"wallet-connect"===a.wallet&&M(Tp)}}),[M,a]),(0,l.useEffect)((function(){(function(){var t=(0,o.Z)(c().mark((function t(){var r,n,o,a,u,l,f,p,g,y,b,v,w,x;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=d().get(e,Tp),m(void 0),n=Ip.mimir,t.next=5,n.init();case 5:if(!n.provider){t.next=17;break}return t.next=8,n.login(r);case 8:return o=t.sent,a=(0,i.Z)(o,2),u=a[0],l=a[1],m(u),s(l),d().set(e,l),E(!1),t.abrupt("return");case 17:if(r!==Tp&&""!==r.account&&r.authBasic){t.next=20;break}return E(!1),t.abrupt("return");case 20:f=Ip[r.wallet],"crust"===r.wallet?(p=f,r.account=(0,h.Or)(r.account),p.init().then((function(){return p.getAccounts()})).then((function(e){e.includes(r.account)&&(m(e),s(r))})).then((function(){return E(!1)}))):"polkadot-js"===r.wallet?(g=f).init().then((function(){return g.getAccounts()})).then((function(e){e.includes(r.account)&&(m(e),s(r))})).then((function(){return E(!1)})):"subWallet"===r.wallet?(y=f).init().then((function(){return y.getAccounts()})).then((function(e){e.includes(r.account)&&(m(e),s(r))})).then((function(){return E(!1)})):r.wallet.startsWith("metamask")?(b=f).init().then((function(){console.info("doInit::",b),b.isAllowed&&b.accounts.length&&s({account:b.accounts[0],wallet:"metamask",authBasic:r.authBasic,authBearer:r.authBearer})})).then((function(){return E(!1)})):"metax"===r.wallet?(v=f).init().then((function(){console.info("doInit::",v),v.isAllowed&&v.accounts.length&&s({account:v.accounts[0],wallet:r.wallet,authBasic:r.authBasic,authBearer:r.authBearer})})).then((function(){return E(!1)})):"near"===r.wallet?(w=f).init().then((function(){w.wallet&&w.wallet.isSignedIn()&&w.keyPair&&s(r)})).then((function(){return E(!1)})):"talisman"===r.wallet?(x=f).init().then((function(){return x.getAccounts()})).then((function(e){e.includes(r.account)&&(m(e),s(r))})).then((function(){return E(!1)})):["solana","flow","elrond","algorand","wallet-connect","aptos-martian","aptos-petra","web3auth","talisman","ton-connect"].includes(r.wallet)?f.init().then((function(){return s(r)})).then((function(){return E(!1)})):E(!1);case 22:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}})()().catch((function(e){console.error(e),E(!1)}))}),[e,k.pathname]);var C=(0,l.useCallback)((0,o.Z)(c().mark((function e(){var t,n,i,o,s,u,l;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("flow"!==a.wallet){e.next=9;break}return e.next=3,wp.currentUser().snapshot();case 3:if(!e.sent.loggedIn){e.next=7;break}return e.next=7,wp.unauthenticate();case 7:e.next=21;break;case 9:if("solana"!==a.wallet){e.next=14;break}(n=Ip.solana).solana&&null!==(t=n.solana)&&void 0!==t&&t.isConnected&&n.solana.disconnect(),e.next=21;break;case 14:if("wallet-connect"!==a.wallet){e.next=20;break}return o=Ip["wallet-connect"],e.next=18,null===(i=o.connect)||void 0===i?void 0:i.killSession();case 18:e.next=21;break;case 20:"aptos-martian"===a.wallet?(s=Ip["aptos-martian"]).provider&&s.provider.disconnect().then().catch():"aptos-petra"===a.wallet?(u=Ip["aptos-petra"]).provider&&u.provider.disconnect().then().catch():"web3auth"===a.wallet?r().then().catch():"algorand"===a.wallet?((l=Ip.algorand).wallet.disconnect(),l.isInit=!1,l.account=null):"ton-connect"===a.wallet&&Ip["ton-connect"].tonconnectui.disconnect();case 21:M(vp({},Tp));case 22:case"end":return e.stop()}}),e)}))),[M,a]),T=(0,l.useState)(),I=T[0],O=T[1],P=(0,l.useMemo)((function(){return vp(vp({},a),{},{accounts:g,key:e,isLoad:A,setLoginUser:M,logout:C,useWallet:Ip[a.wallet],crust:Ip.crust,polkadotJs:Ip["polkadot-js"],subWallet:Ip.subWallet,metamask:Ip.metamask,metax:Ip.metax,near:Ip.near,flow:Ip.flow,solana:Ip.solana,algorand:Ip.algorand,elrond:Ip.elrond,aptosMartian:Ip["aptos-martian"],aptosPetra:Ip["aptos-petra"],web3AuthWallet:Ip.web3auth,walletConnect:Ip["wallet-connect"],talisman:Ip.talisman,mimir:Ip.mimir,nickName:b,setNickName:v,setMember:_,member:x,setIsLoadingNickname:O,isLoadingNickname:I})}),[a,g,A,M,C,b,x,e,I]),R=Cp(P);return P.sign=R.sign,P}var Pp=l.createContext(null);function Rp(){return(0,l.useContext)(Pp)}},93664:function(e,t,r){"use strict";function n(e){return new Promise((function(t){setTimeout(t,e)}))}r.d(t,{_v:function(){return n},iQ:function(){return o},WJ:function(){return a}});var i=function(e,t){return e.events.find((function(e){return"".concat(e.event.section.toString(),"(").concat(e.event.method.toString(),")")===t}))};function o(e,t){return new Promise((function(r,n){e.signAndSend(t,{nonce:-1,tip:0},(function(e){e.status.isFinalized&&(!!i(e,"system(ExtrinsicSuccess)")?r():n("Error"));(e.status.isFinalityTimeout||e.status.isRetracted)&&n("Timeout")})).catch(n)}))}var a=function(e){return e.wallet.startsWith("metamask")||"metax"===e.wallet||"wallet-connect"===e.wallet||"web3auth"===e.wallet?"eth":"near"===e.wallet?"near":"flow"===e.wallet?"flow":"solana"===e.wallet?"sol":"elrond"===e.wallet?"elrond":"algorand"===e.wallet?"algo":"aptos-martian"==e.wallet||"aptos-petra"==e.wallet?"aptos":"ton-connect"==e.wallet?"ton":"substrate"}},36622:function(e,t,r){"use strict";r.d(t,{C8:function(){return tn},mN:function(){return en}});var n=r(30266),i=r(809),o=r.n(i),a=r(8654),s=r(4942);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==r[0]?r[0]:{cleanup:!1},this.status===a.MP.CONNECTED&&this.connectedAdapterName){e.next=3;break}throw a.RM.notConnectedError("No wallet is connected");case 3:return e.next=5,this.walletAdapters[this.connectedAdapterName].disconnect(t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getUserInfo",value:function(){var e=(0,l.Z)(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.cM.debug("Getting user info",this.status,this.connectedAdapterName),this.status===a.MP.CONNECTED&&this.connectedAdapterName){e.next=3;break}throw a.RM.notConnectedError("No wallet is connected");case 3:return e.abrupt("return",this.walletAdapters[this.connectedAdapterName].getUserInfo());case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"authenticateUser",value:function(){var e=(0,l.Z)(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.status===a.MP.CONNECTED&&this.connectedAdapterName){e.next=2;break}throw a.RM.notConnectedError("No wallet is connected");case 2:return e.abrupt("return",this.walletAdapters[this.connectedAdapterName].authenticateUser());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"addPlugin",value:function(){var e=(0,l.Z)(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.plugins[t.name]){e.next=2;break}throw new Error("Plugin ".concat(t.name," already exist"));case 2:if(t.pluginNamespace===S.MULTICHAIN||t.pluginNamespace===this.coreOptions.chainConfig.chainNamespace){e.next=4;break}throw new Error("This plugin belongs to ".concat(t.pluginNamespace," namespace which is incompatible with currently used namespace: ").concat(this.coreOptions.chainConfig.chainNamespace));case 4:return this.plugins[t.name]=t,e.next=7,t.initWithWeb3Auth(this);case 7:return e.abrupt("return",this);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"subscribeToAdapterEvents",value:function(e){var t=this;e.on(a.n2.CONNECTED,function(){var e=(0,l.Z)(v().mark((function e(r){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.status=a.MP.CONNECTED,t.connectedAdapterName=r.adapter,t.cacheWallet(r.adapter),a.cM.debug("connected",t.status,t.connectedAdapterName),e.next=6,Promise.all(Object.values(t.plugins).map((function(e){return e.connect().catch((function(e){5211!==e.code&&a.cM.error(e)}))})));case 6:t.emit(a.n2.CONNECTED,E({},r));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.on(a.n2.DISCONNECTED,function(){var e=(0,l.Z)(v().mark((function e(r){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.status=a.MP.READY,(0,a.oZ)(t.storage)&&(n=window[t.storage].getItem(M),t.connectedAdapterName===n&&t.clearCache()),a.cM.debug("disconnected",t.status,t.connectedAdapterName),e.next=5,Promise.all(Object.values(t.plugins).map((function(e){return e.disconnect().catch((function(e){5211!==e.code&&a.cM.error(e)}))})));case 5:t.connectedAdapterName=null,t.emit(a.n2.DISCONNECTED,r);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.on(a.n2.CONNECTING,(function(e){t.status=a.MP.CONNECTING,t.emit(a.n2.CONNECTING,e),a.cM.debug("connecting",t.status,t.connectedAdapterName)})),e.on(a.n2.ERRORED,(function(e){t.status=a.MP.ERRORED,t.clearCache(),t.emit(a.n2.ERRORED,e),a.cM.debug("errored",t.status,t.connectedAdapterName)})),e.on(a.n2.ADAPTER_DATA_UPDATED,(function(e){a.cM.debug("adapter data updated",e),t.emit(a.n2.ADAPTER_DATA_UPDATED,e)}))}},{key:"checkInitRequirements",value:function(){if(this.status===a.MP.CONNECTING)throw a.Ty.notReady("Already pending connection");if(this.status===a.MP.CONNECTED)throw a.Ty.notReady("Already connected");if(this.status===a.MP.READY)throw a.Ty.notReady("Adapter is already initialized")}},{key:"cacheWallet",value:function(e){(0,a.oZ)(this.storage)&&(window[this.storage].setItem(M,e),this.cachedAdapter=e)}}]),r}(w.Ue),T=r(3388);function I(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{};q(this,e),this.init(t,r)}return W(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||re,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),n=1;n-1?e.replace(/###/g,"."):e}function i(){return!e||"string"===typeof e}for(var o="string"!==typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:n(o.shift())}}function ue(e,t,r){var n=ce(e,t,Object);n.obj[n.k]=r}function le(e,t){var r=ce(e,t),n=r.obj,i=r.k;if(n)return n[i]}function fe(e,t,r){var n=le(e,r);return void 0!==n?n:le(t,r)}function de(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"===typeof e[n]||e[n]instanceof String||"string"===typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):de(e[n],t[n],r):e[n]=t[n]);return e}function he(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var pe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ge(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,(function(e){return pe[e]})):e}var me="undefined"!==typeof window&&window.navigator&&"undefined"===typeof window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,ye=[" ",",","?","!",";"];function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;oo+a;)a++,c=i[s=n.slice(o,o+a).join(r)];if(void 0===c)return;if(null===c)return null;if(t.endsWith(s)){if("string"===typeof c)return c;if(s&&"string"===typeof c[s])return c[s]}var u=n.slice(o+a).join(r);return u?xe(c,u,r):void 0}i=i[n[o]]}return i}}var _e=function(e){Z(r,e);var t=we(r);function r(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return q(this,r),n=t.call(this),me&&ie.call(G(n)),n.data=e||{},n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return W(r,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!==typeof r&&(a=a.concat(r)),r&&"string"===typeof r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split("."));var s=le(this.data,a);return s||!o||"string"!==typeof r?s:xe(this.data&&this.data[e]&&this.data[e][t],r,i)}},{key:"addResource",value:function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),ue(this.data,a,n),i.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in r)"string"!==typeof r[i]&&"[object Array]"!==Object.prototype.toString.apply(r[i])||this.addResource(e,t,i,r[i],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(n=r,r=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=le(this.data,a)||{};n?de(s,r,i):s=ve(ve({},s),r),ue(this.data,a,s),o.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?ve(ve({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),r}(ie),Se={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,r,n,i))})),t}};function Ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return q(this,r),n=t.call(this),me&&ie.call(G(n)),se(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,G(n)),n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=ne.create("translator"),n}return W(r,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;var r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=r&&e.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,r){t=t||"",r=r||"";var n=ye.filter((function(e){return t.indexOf(e)<0&&r.indexOf(e)<0}));if(0===n.length)return!0;var i=new RegExp("(".concat(n.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,r,n);if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var c=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(n)}return"string"===typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,n){var i=this;if("object"!==z(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),c=s.key,u=s.namespaces,l=u[u.length-1],f=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(d){var h=t.nsSeparator||this.options.nsSeparator;return o?(p.res="".concat(l).concat(h).concat(c),p):"".concat(l).concat(h).concat(c)}return o?(p.res=c,p):c}var p=this.resolve(e,t),g=p&&p.res,m=p&&p.usedKey||c,y=p&&p.exactUsedKey||c,b=Object.prototype.toString.apply(g),v=["[object Number]","[object Function]","[object RegExp]"],w=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,_="string"!==typeof g&&"boolean"!==typeof g&&"number"!==typeof g;if(x&&g&&_&&v.indexOf(b)<0&&("string"!==typeof w||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,Ee(Ee({},t),{},{ns:u})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return o?(p.res=S,p):S}if(a){var A="[object Array]"===b,E=A?[]:{},k=A?y:m;for(var M in g)if(Object.prototype.hasOwnProperty.call(g,M)){var C="".concat(k).concat(a).concat(M);E[M]=this.translate(C,Ee(Ee({},t),{joinArrays:!1,ns:u})),E[M]===C&&(E[M]=g[M])}g=E}}else if(x&&"string"===typeof w&&"[object Array]"===b)(g=g.join(w))&&(g=this.extendTranslation(g,e,t,n));else{var T=!1,I=!1,O=void 0!==t.count&&"string"!==typeof t.count,P=r.hasDefaultValue(t),R=O?this.pluralResolver.getSuffix(f,t.count,t):"",B=t["defaultValue".concat(R)]||t.defaultValue;!this.isValidLookup(g)&&P&&(T=!0,g=B),this.isValidLookup(g)||(I=!0,g=c);var N=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,L=N&&I?void 0:g,j=P&&B!==g&&this.options.updateMissing;if(I||T||j){if(this.logger.log(j?"updateKey":"missingKey",f,l,c,j?B:g),a){var D=this.resolve(c,Ee(Ee({},t),{},{keySeparator:!1}));D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var U=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var H=0;H1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,s),u=c.key;r=u;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!==typeof s.count,d=f&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"===typeof s.context||"number"===typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!Me["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(Me["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(r){if(!a.isValidLookup(t)){i=r;var o,c=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(c,u,r,e,s);else{var l;f&&(l=a.pluralResolver.getSuffix(r,s.count,s));var p="".concat(a.options.pluralSeparator,"zero");if(f&&(c.push(u+l),d&&c.push(u+p)),h){var g="".concat(u).concat(a.options.contextSeparator).concat(s.context);c.push(g),f&&(c.push(g+l),d&&c.push(g+p))}}for(;o=c.pop();)a.isValidLookup(t)||(n=o,t=a.getResource(r,e,o,s))}})))}))}})),{res:t,usedKey:r,exactUsedKey:n,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}]),r}(ie);function Te(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ie=function(){function e(t){q(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ne.create("languageUtils")}return W(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"===typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Te(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Te(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=Te(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var n=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(n)||(t=n)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var n=r.getLanguagePartFromCode(e);if(r.isSupportedCode(n))return t=n;t=r.options.supportedLngs.find((function(e){if(0===e.indexOf(n))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(r.isSupportedCode(e)?i.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"===typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"===typeof e&&o(this.formatLanguageCode(e)),n.forEach((function(e){i.indexOf(e)<0&&o(r.formatLanguageCode(e))})),i}}]),e}(),Oe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Pe={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Re=["v1","v2","v3"],Be={zero:0,one:1,two:2,few:3,many:4,other:5};function Ne(){var e={};return Oe.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:Pe[t.fc]}}))})),e}var Le=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q(this,e),this.languageUtils=t,this.options=r,this.logger=ne.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Ne()}return W(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(r){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((function(e,t){return Be[e]-Be[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):n.numbers.map((function(n){return t.getSuffix(e,n,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"===typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!Re.includes(this.options.compatibilityJSON)}}]),e}();function je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function De(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};q(this,e),this.logger=ne.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return W(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ge,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?he(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?he(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?he(t.nestingPrefix):t.nestingPrefixEscaped||he("$t("),this.nestingSuffix=t.nestingSuffix?he(t.nestingSuffix):t.nestingSuffixEscaped||he(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var i,o,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var i=fe(t,c,e);return s.alwaysFormat?s.format(i,void 0,r,De(De(De({},n),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(fe(t,c,a),u,r,De(De(De({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var f=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,d=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;i=t.regex.exec(e);){var r=i[1].trim();if(void 0===(o=l(r)))if("function"===typeof f){var c=f(e,i,n);o="string"===typeof c?c:""}else if(n&&n.hasOwnProperty(r))o="";else{if(d){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(e)),o=""}else"string"===typeof o||s.useRawValueToEscape||(o=ae(o));var u=t.safeValue(o);if(e=e.replace(i[0],u),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,n,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=De({},o);function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);e=n[0];var o=(i=this.interpolate(i,a)).match(/'/g),s=i.match(/"/g);(o&&o.length%2===0&&!s||s.length%2!==0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),t&&(a=De(De({},t),a))}catch(c){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),c),"".concat(e).concat(r).concat(i)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;r=this.nestingRegexp.exec(e);){var c=[],u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var l=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=l.shift(),c=l,u=!0}if((n=t(s.call(this,r[1].trim(),a),a))&&r[0]===e&&"string"!==typeof n)return n;"string"!==typeof n&&(n=ae(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),u&&(n=c.reduce((function(e,t){return i.format(e,t,o.lng,De(De({},o),{},{interpolationkey:r[1].trim()}))}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}();function Fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function He(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};q(this,e),this.logger=ne.create("formatter"),this.options=t,this.formats={number:ze((function(e,t){var r=new Intl.NumberFormat(e,t);return function(e){return r.format(e)}})),currency:ze((function(e,t){var r=new Intl.NumberFormat(e,He(He({},t),{},{style:"currency"}));return function(e){return r.format(e)}})),datetime:ze((function(e,t){var r=new Intl.DateTimeFormat(e,He({},t));return function(e){return r.format(e)}})),relativetime:ze((function(e,t){var r=new Intl.RelativeTimeFormat(e,He({},t));return function(e){return r.format(e,t.range||"day")}})),list:ze((function(e,t){var r=new Intl.ListFormat(e,He({},t));return function(e){return r.format(e)}}))},this.init(t)}return W(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=t.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=ze(t)}},{key:"format",value:function(e,t,r,n){var i=this;return t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);"currency"===t&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=$(e.split(":")),n=t[0],i=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[n.trim()]||(r[n.trim()]=i),"false"===i&&(r[n.trim()]=!1),"true"===i&&(r[n.trim()]=!0),isNaN(i)||(r[n.trim()]=parseInt(i,10))}}))}return{formatName:t,formatOptions:r}}(t),a=o.formatName,s=o.formatOptions;if(i.formats[a]){var c=e;try{var u=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},l=u.locale||u.lng||n.locale||n.lng||r;c=i.formats[a](e,l,He(He(He({},s),n),u))}catch(f){i.logger.warn(f)}return c}return i.logger.warn("there was no format function for ".concat(a)),e}),e)}}]),e}();function Ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function We(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return q(this,r),o=t.call(this),me&&ie.call(G(o)),o.backend=e,o.store=n,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=ne.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.maxRetries=a.maxRetries>=0?a.maxRetries:5,o.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return W(r,[{key:"queueLoad",value:function(e,t,r,n){var i=this,o={},a={},s={},c={};return e.forEach((function(e){var n=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!r.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,n=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===c[t]&&(c[t]=!0)))})),n||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(e,t,r){var n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),r&&this.store.addResourceBundle(i,o,r),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(r){!function(e,t,r,n){var i=ce(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}(r.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((function(e){a[e]||(a[e]={});var t=r.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var n=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:i,wait:o,callback:a}):(this.readingCalls++,this.backend[r](e,t,(function(s,c){if(n.readingCalls--,n.waitingReads.length>0){var u=n.waitingReads.shift();n.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}s&&c&&i2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);var o=this.queueLoad(e,t,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(function(n,a){n&&t.logger.warn("".concat(r,"loading namespace ").concat(o," for language ").concat(i," failed"),n),!n&&a&&t.logger.log("".concat(r,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,n,a)}))}},{key:"saveMissing",value:function(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):void 0!==r&&null!==r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,n,null,We(We({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,r,n))}}]),r}(ie);function Ze(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===z(e[1])&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===z(e[2])||"object"===z(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Xe(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(q(this,r),e=t.call(this),me&&ie.call(G(e)),e.options=Xe(n),e.services={},e.logger=ne,e.modules={external:[]},et(G(e)),i&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,i),X(e,G(e));setTimeout((function(){e.init(n,i)}),0)}return e}return W(r,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"===typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"===typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var n=Ze();function i(e){return e?"function"===typeof e?new e:e:null}if(this.options=Je(Je(Je({},n),this.options),Xe(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Je(Je({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?ne.init(i(this.modules.logger),this.options):ne.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!==typeof Intl&&(o=qe);var a=new Ie(this.options);this.store=new _e(this.options.resources,this.options);var s=this.services;s.logger=ne,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Le(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new Ue(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Ke(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var f=oe(),d=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),f.resolve(n),r(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$e,n=r,i="string"===typeof e?e:this.language;if("function"===typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return n();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)}))}else n(null)}},{key:"reloadResources",value:function(e,t,r){var n=oe();return e||(e=this.languages),t||(t=this.options.ns),r||(r=$e),this.services.backendConnector.reload(e,t,(function(e){n.resolve(),r(e)})),n}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Se.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var n=oe();this.emit("languageChanging",e);var i=function(e){r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,r.setResolvedLanguage(e)},o=function(o){e||o||!r.services.languageDetector||(o=[]);var a="string"===typeof o?o:r.services.languageUtils.getBestMatchFromCodes(o);a&&(r.language||i(a),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(e){!function(e,o){o?(i(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,n.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,r){var n=this,i=function e(t,i){var o;if("object"!==z(i)){for(var a=arguments.length,s=new Array(a>2?a-2:0),c=2;c1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(n,e)||i&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=oe();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=oe();"string"===typeof e&&(e=[e]);var n=this.options.preload||[],i=e.filter((function(e){return n.indexOf(e)<0}));return i.length?(this.options.preload=n.concat(i),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$e,i=Je(Je(Je({},this.options),t),{isClone:!0}),o=new r(i);void 0===t.debug&&void 0===t.prefix||(o.logger=o.logger.clone(t));var a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=Je({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Ce(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new tt(e,t)}));var rt=tt.createInstance();rt.createInstance=tt.createInstance;rt.createInstance,rt.init,rt.loadResources,rt.reloadResources,rt.use,rt.changeLanguage,rt.getFixedT,rt.t,rt.exists,rt.setDefaultNamespace,rt.hasLoadedNamespace,rt.loadNamespaces,rt.loadLanguages;var nt=rt;function it(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ot=r(71004),at=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,st={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"\u2026","…":"\u2026","/":"/","/":"/"},ct=function(e){return st[e]};function ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};dt=lt(lt({},dt),e)}(e.options.react),function(e){ft=e}(e)}};function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(n,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(n,e)||i&&!a(o,e))))}function Et(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return _t("i18n.languages were undefined or empty",t.languages),!0;var n=void 0!==t.options.ignoreJSONStructure;return n?t.hasLoadedNamespace(e,{precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):At(e,t,r)}function kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mt(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,n=(0,ot.useContext)(ht)||{},i=n.i18n,o=n.defaultNS,a=r||i||mt();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new gt),!a){_t("You will need to pass in an i18next instance by using initReactI18next");var s=function(e){return Array.isArray(e)?e[e.length-1]:e},c=[s,{},!1];return c.t=s,c.i18n={},c.ready=!1,c}a.options.react&&void 0!==a.options.react.wait&&_t("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=Mt(Mt(Mt({},pt()),a.options.react),t),l=u.useSuspense,f=u.keyPrefix,d=e||o||a.options&&a.options.defaultNS;d="string"===typeof d?[d]:d||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(d);var h=(a.isInitialized||a.initializedStoreOnce)&&d.every((function(e){return Et(e,a,u)}));function p(){return a.getFixedT(null,"fallback"===u.nsMode?d:d[0],f)}var g=(0,ot.useState)(p),m=vt(g,2),y=m[0],b=m[1],v=d.join(),w=Ct(v),x=(0,ot.useRef)(!0);(0,ot.useEffect)((function(){var e=u.bindI18n,t=u.bindI18nStore;function r(){x.current&&b(p)}return x.current=!0,h||l||St(a,d,(function(){x.current&&b(p)})),h&&w&&w!==v&&x.current&&b(p),e&&a&&a.on(e,r),t&&a&&a.store.on(t,r),function(){x.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,r)})),t&&a&&t.split(" ").forEach((function(e){return a.store.off(e,r)}))}}),[a,v]);var _=(0,ot.useRef)(!0);(0,ot.useEffect)((function(){x.current&&!_.current&&b(p),_.current=!1}),[a,f]);var S=[y,a,h];if(S.t=y,S.i18n=a,S.ready=h,h)return S;if(!h&&!l)return S;throw new Promise((function(e){St(a,d,(function(){e()}))}))}var It=r(57458),Ot=r(83465),Pt=r.n(Ot),Rt=r(72378),Bt=r.n(Rt),Nt=r(51206),Lt=r.n(Nt),jt=r(23745),Dt=r(20288),Ut=r.n(Dt),Ft=r(75223),Ht=Object.values(T.hG).filter((function(e){return e!==T.hG.WEBAUTHN&&e!==T.hG.JWT})),zt="INIT_EXTERNAL_WALLETS",qt="LOGIN",Vt="DISCONNECT",Wt="MODAL_VISIBILITY",Gt="initialized",Kt="connected",Zt="connecting",Xt="errored";function Yt(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function Jt(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!==typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}Jt('/* devanagari */\n@font-face {\n font-family: "Poppins";\n font-style: normal;\n font-weight: 600;\n src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z11lFd2JQEl8qw.woff2) format("woff2");\n unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;\n}\n/* latin-ext */\n@font-face {\n font-family: "Poppins";\n font-style: normal;\n font-weight: 600;\n src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z1JlFd2JQEl8qw.woff2) format("woff2");\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: "Poppins";\n font-style: normal;\n font-weight: 600;\n src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z1xlFd2JQEk.woff2) format("woff2");\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,\n U+2215, U+FEFF, U+FFFD;\n}\n\n/* latin-ext */\n@font-face {\n font-family: "DM Sans";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.gstatic.com/s/dmsans/v6/rP2Hp2ywxg089UriCZ2IHTWEBlwu8Q.woff2) format("woff2");\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: "DM Sans";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.gstatic.com/s/dmsans/v6/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2) format("woff2");\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,\n U+2215, U+FEFF, U+FFFD;\n}\n\n/* Modal */\n#w3a-modal {\n --bg1: #0f1222;\n --bg2: #24262e;\n --text-color1: #d3d3d4;\n --text-color2: #ffffff;\n\n --text-header: "Poppins", Helvetica, sans-serif;\n --text-body: "DM Sans", Helvetica, sans-serif;\n\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: 15px;\n background: rgba(33, 33, 33, 0.46);\n color: var(--text-color1);\n font-family: var(--text-body);\n}\n\n#w3a-modal.w3a-modal--hidden {\n display: none;\n}\n\n#w3a-modal p,\n#w3a-modal form,\n#w3a-modal button {\n margin: 0;\n padding: 0;\n}\n\n#w3a-modal .w3a-modal__inner {\n width: 100%;\n max-width: 375px;\n overflow: hidden;\n border-radius: 6px;\n position: relative;\n max-height: 95%;\n overflow-y: auto;\n opacity: 0;\n transition: 200ms cubic-bezier(0.25, 0.8, 0.25, 1);\n transform-origin: center center;\n min-height: 350px;\n}\n\n#w3a-modal .w3a-modal__inner.w3a-modal__inner--active {\n opacity: 1;\n transition: 200ms cubic-bezier(0.25, 0.8, 0.25, 1);\n transform-origin: center center;\n}\n\n#w3a-modal .w3a-modal__header {\n padding: 25px 34px;\n background: var(--bg1);\n box-shadow: 0px 4px 28px rgba(3, 100, 255, 0.05);\n position: relative;\n}\n#w3a-modal .w3a-modal__content {\n padding: 30px 34px;\n background: var(--bg2);\n}\n#w3a-modal .w3a-modal__footer {\n padding: 16px 34px;\n background: var(--bg1);\n}\n\n/* SPINNER */\n/* Loader */\n#w3a-modal .w3a-modal__loader {\n background: var(--bg2);\n position: absolute;\n display: flex;\n justify-content: center;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 10;\n}\n\n#w3a-modal .w3a-modal__loader.w3a-modal__loader--hidden {\n display: none;\n}\n\n#w3a-modal .w3a-modal__loader-content {\n text-align: center;\n margin-bottom: 80px;\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n#w3a-modal .w3a-modal__loader-info {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 0 30px;\n}\n\n#w3a-modal .w3a-spinner-label {\n margin-top: 10px;\n font-size: 16px;\n font-weight: 500;\n color: #0364ff;\n}\n\n#w3a-modal .w3a-spinner-message {\n margin-top: 10px;\n font-size: 16px;\n}\n#w3a-modal .w3a-spinner-message:first-letter {\n text-transform: capitalize;\n}\n#w3a-modal .w3a-spinner-message.w3a-spinner-message--error {\n color: #fb4a61;\n}\n\n#w3a-modal button.w3a-logout {\n background: none;\n border: 0;\n padding: 0;\n display: inline-flex;\n align-items: center;\n margin-bottom: 30px;\n cursor: pointer;\n margin-top: 20px;\n color: #0364ff;\n}\n\n#w3a-modal .w3a-spinner-power {\n margin-top: auto;\n font-size: 12px;\n line-height: 1.2em;\n color: #b7b8bd;\n}\n#w3a-modal .w3a-spinner-power > img {\n height: 32px;\n width: auto;\n display: inline;\n}\n\n#w3a-modal .w3a-spinner {\n display: inline-block;\n position: relative;\n background-color: #0364ff;\n height: 60px;\n width: 60px;\n border-radius: 50%;\n background: conic-gradient(transparent, #0364ff);\n animation: rotate 1s linear infinite;\n}\n\n#w3a-modal .w3a-spinner__mask,\n#w3a-modal .w3a-spinner__head {\n content: "";\n position: absolute;\n border-radius: 50%;\n}\n\n#w3a-modal .w3a-spinner__mask {\n width: 50px;\n height: 50px;\n top: 5px;\n left: 5px;\n background-color: var(--bg2);\n}\n\n#w3a-modal .w3a-spinner__head {\n height: 5px;\n width: 5px;\n background-color: #0364ff;\n top: 0;\n left: 26px;\n}\n\n@keyframes rotate {\n from {\n transform: rotateZ(0);\n }\n to {\n transform: rotateZ(360deg);\n }\n}\n\n/* Header */\n#w3a-modal .w3a-header {\n display: flex;\n color: var(--text-color2);\n align-items: center;\n}\n#w3a-modal .w3a-header__logo {\n height: auto;\n width: 40px;\n margin-right: 16px;\n}\n#w3a-modal .w3a-header__title {\n font-family: var(--text-header);\n font-weight: 600;\n font-size: 20px;\n line-height: 1.5em;\n}\n#w3a-modal p.w3a-header__subtitle {\n font-size: 14px;\n line-height: 1.5em;\n font-weight: 400;\n}\n#w3a-modal button.w3a-header__button {\n cursor: pointer;\n position: absolute;\n background: none;\n padding: 0;\n border: 0;\n top: 20px;\n right: 26px;\n}\n\n/* BODY */\n#w3a-modal .w3a-group {\n margin-bottom: 24px;\n}\n#w3a-modal .w3a-group:last-child {\n margin-bottom: 0;\n}\n\n#w3a-modal .w3a-group.w3a-group--hidden,\n#w3a-modal .w3a-group.w3a-group--social-hidden,\n#w3a-modal .w3a-group.w3a-group--email-hidden,\n#w3a-modal .w3a-group.w3a-group--ext-wallet-hidden {\n display: none;\n}\n\n#w3a-modal .w3a-group:not(.w3a-group--hidden):not(:last-child),\n#w3a-modal .w3a-group:not(.w3a-group--social-hidden):not(:last-child),\n#w3a-modal .w3a-group:not(.w3a-group--email-hidden):not(:last-child),\n#w3a-modal .w3a-group:not(.w3a-group--ext-wallet-hidden):not(:last-child) {\n border-bottom: 0.5px solid #5c6c7f;\n padding-bottom: 24px;\n}\n\n#w3a-modal div.w3a-group__title {\n font-family: var(--text-header);\n font-weight: 400;\n font-size: 14px;\n line-height: 1.5em;\n margin-bottom: 8px;\n text-transform: uppercase;\n}\n\n/* Adapter List */\n#w3a-modal ul.w3a-adapter-list {\n display: flex;\n align-items: center;\n padding: 0;\n margin: 0;\n gap: 16px;\n overflow-y: hidden;\n flex-wrap: wrap;\n margin-bottom: 16px;\n max-height: 500px;\n transition: max-height 0.4s ease-in;\n}\n\n#w3a-modal ul.w3a-adapter-list.w3a-adapter-list--shrink {\n max-height: 48px;\n transition: max-height 0.4s ease-out;\n}\n\n#w3a-modal ul.w3a-adapter-list.w3a-adapter-list--hidden {\n display: none;\n}\n\n#w3a-modal li.w3a-adapter-item {\n list-style: none;\n margin-bottom: 30px;\n}\n\n#w3a-modal .w3a-adapter-item--hide {\n display: none;\n}\n\n#w3a-modal .w3a-adapter-item__label {\n font-size: 12px;\n color: #5c6c7f;\n text-align: center;\n margin: 8px 0 0 !important;\n text-transform: capitalize;\n position: absolute;\n transform: translate(-6px);\n width: 60px;\n}\n\n/* Buttons */\n#w3a-modal button.w3a-button {\n background-color: #2f3136;\n border: 1px solid #404145;\n box-sizing: border-box;\n box-shadow: 2px 2px 12px rgba(3, 100, 255, 0.05);\n border-radius: 24px;\n height: 48px;\n width: 100%;\n padding: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-family: var(--text-body);\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n color: var(--text-color2);\n cursor: pointer;\n}\n\n#w3a-modal button.w3a-button:hover {\n background: #595857;\n}\n\n#w3a-modal button.w3a-button:active {\n background: #6f717a;\n}\n\n#w3a-modal button.w3a-button:disabled {\n background: #27282d;\n color: #6f717a;\n}\n\n#w3a-modal button.w3a-button:focus-visible {\n outline: 1px solid #daf0ff;\n outline-offset: -1px;\n}\n\n#w3a-modal button.w3a-button--icon {\n width: 48px;\n}\n\n#w3a-modal button.w3a-button--left {\n justify-content: start;\n padding: 8px 16px;\n}\n\n#w3a-modal button.w3a-button--left > img {\n height: 30px;\n width: auto;\n}\n\n#w3a-modal button.w3a-button--left > div.w3a-button__name {\n max-width: 180px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n text-transform: capitalize;\n}\n\n#w3a-modal button.w3a-button--left > div.w3a-button__note {\n margin-left: 8px;\n color: #b7b8bd;\n margin-left: auto;\n}\n\n#w3a-modal .w3a-button__image {\n max-width: 100%;\n max-height: 100%;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1), visibility 0s;\n}\n\n#w3a-modal button.w3a-button.w3a-button--rotate .w3a-button__image {\n transform: rotate(180deg);\n}\n\n#w3a-modal .w3a-button--left .w3a-button__image {\n margin-right: 12px;\n}\n\n#w3a-modal button.w3a-button-expand {\n height: unset;\n width: auto;\n margin-left: auto;\n font-size: 12px;\n margin-top: 16px;\n display: flex;\n border: 8px;\n color: var(--text-color2);\n align-items: center;\n cursor: pointer;\n border-radius: 12px;\n cursor: pointer;\n padding: 0 10px 0 8px;\n background: transparent;\n}\n\n#w3a-modal button.w3a-button-expand svg {\n width: 12px;\n height: auto;\n margin-right: 4px;\n}\n\n#w3a-modal .w3a-external-toggle {\n display: block;\n}\n\n#w3a-modal .w3a-external-toggle.w3a-external-toggle--hidden {\n display: none;\n}\n\n#w3a-modal .w3a-external-container {\n display: block;\n margin-bottom: 34px;\n}\n\n#w3a-modal .w3a-external-container.w3a-external-container--hidden {\n display: none;\n}\n\n#w3a-modal .w3a-external-group {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n margin-bottom: 16px;\n}\n\n#w3a-modal .w3a-external-group__left {\n flex-grow: 1;\n}\n\n#w3a-modal button.w3a-external-back {\n background: none;\n border: 0;\n padding: 0;\n display: inline-flex;\n align-items: center;\n margin-bottom: 30px;\n cursor: pointer;\n color: var(--text-color1);\n}\n\n#w3a-modal .w3a-external-back:focus-visible {\n outline: 1px solid #daf0ff;\n}\n\n#w3a-modal .w3a-external-back .w3a-group__title {\n margin-bottom: 0;\n margin-left: 5px;\n}\n\n#w3a-modal .w3a-external-loader {\n display: flex;\n justify-content: center;\n}\n\n#w3a-modal .w3a-wallet-connect {\n display: block;\n text-align: center;\n margin-bottom: 16px;\n}\n\n#w3a-modal .w3a-wallet-connect.w3a-wallet-connect--hidden {\n display: none;\n}\n\n#w3a-modal .w3a-wallet-connect__container {\n background: #ffffff;\n border-radius: 10px;\n color: var(--text-color1);\n font-size: 10px;\n width: fit-content;\n margin: auto;\n min-width: 250px;\n padding: 16px 12px;\n}\n\n#w3a-modal .w3a-wallet-connect__container-desktop,\n#w3a-modal .w3a-wallet-connect__container-android {\n margin: auto;\n}\n\n#w3a-modal .w3a-wallet-connect__container-btn-group {\n display: flex;\n gap: 18px;\n}\n\n#w3a-modal .w3a-wallet-connect__container-ios {\n display: flex;\n grid-gap: 30px 20px;\n padding: 0 0 28px;\n box-sizing: border-box;\n flex-wrap: wrap;\n}\n\n#w3a-modal .w3a-wallet-connect-qr {\n margin: 16px 16px;\n padding: inherit;\n}\n\n#w3a-modal .w3a-wallet-connect__container-android a {\n text-decoration: none;\n}\n\n#w3a-modal .w3a-wallet-connect__container-android .w3a-button {\n background-color: rgb(64, 153, 255) !important;\n color: #ffffff !important;\n height: auto;\n font-size: 14px;\n padding: 8px 16px;\n width: auto;\n margin: auto;\n}\n\n#w3a-modal .w3a-wallet-connect__logo > img {\n text-align: center;\n width: 115px;\n margin-bottom: 16px;\n}\n\n/* Text Field */\n#w3a-modal .w3a-text-field {\n background: #393938;\n border: 1px solid #27282d;\n box-sizing: border-box;\n box-shadow: inset 2px 2px 10px rgba(0, 0, 0, 0.4);\n border-radius: 24px;\n padding: 0 28px;\n height: 48px;\n width: 100%;\n font-family: var(--text-body);\n font-size: 16px;\n color: var(--text-color2);\n margin-bottom: 16px;\n}\n\n#w3a-modal .w3a-text-field:active {\n background: #0f1222;\n}\n\n#w3a-modal .w3a-text-field:focus-visible {\n outline: 1px solid #daf0ff;\n outline-offset: -1px;\n}\n\n/* Footer Components */\n#w3a-modal .w3a-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 10px;\n line-height: 150%;\n color: var(--text-color2);\n}\n\n#w3a-modal .w3a-footer__links {\n padding: 0;\n margin: 0;\n}\n\n#w3a-modal .w3a-footer__links a {\n color: var(--text-color1);\n text-decoration: none;\n}\n\n#w3a-modal .w3a-footer__links a:focus-visible {\n outline: 1px solid #daf0ff;\n}\n\n#w3a-modal .w3a-footer__links span {\n margin: 0 2px;\n}\n\n#w3a-modal .w3a-footer__secured {\n text-align: right;\n color: #b7b8bd;\n}\n#w3a-modal .w3a-footer__secured > img {\n height: 14px;\n width: auto;\n}\n\n/* Loader Bridge */\n#w3a-modal .w3a-modal__loader-bridge {\n display: flex;\n margin-bottom: 14px;\n}\n\n#w3a-modal .w3a-modal__loader-bridge-message span {\n text-transform: capitalize;\n}\n\n#w3a-modal .w3a-modal__loader-app-logo {\n display: flex;\n padding: 8px;\n}\n\n#w3a-modal .w3a-modal__loader-app-logo img {\n width: 64px;\n height: auto;\n}\n\n#w3a-modal .w3a-modal__loader-adapter img {\n width: 84px;\n height: auto;\n}\n\n#w3a-modal .w3a-modal__connector {\n display: flex;\n align-items: center;\n}\n\n.w3a-modal__connector-beat {\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n}\n\n.w3a-modal__connector-beat div {\n position: absolute;\n top: 33px;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: #808080;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n}\n\n.w3a-modal__connector-beat div:nth-child(1) {\n left: 8px;\n animation: beat1 2.4s infinite;\n}\n\n.w3a-modal__connector-beat div:nth-child(2) {\n left: 8px;\n animation: beat2 2.4s infinite;\n}\n\n.w3a-modal__connector-beat div:nth-child(3) {\n left: 8px;\n animation: beat3 2.4s infinite;\n}\n\n.w3a-modal__connector-beat div:nth-child(4) {\n left: 32px;\n animation: beat4 2.4s infinite;\n}\n\n.w3a-modal__connector-beat div:nth-child(5) {\n left: 56px;\n animation: beat5 2.4s infinite;\n}\n\n@keyframes beat1 {\n 0% {\n transform: scale(0);\n }\n\n 25% {\n transform: scale(0);\n }\n\n 50% {\n transform: scale(1);\n }\n\n 75% {\n transform: scale(0);\n }\n\n 100% {\n transform: scale(0);\n }\n}\n\n@keyframes beat2 {\n 0% {\n transform: scale(0);\n }\n\n 25% {\n transform: scale(1);\n }\n\n 50% {\n transform: translate(24px, 0);\n }\n\n 75% {\n transform: translate(0, 0);\n }\n\n 100% {\n transform: translate(0, 0) scale(0);\n }\n}\n\n@keyframes beat3 {\n 0% {\n transform: translate(0, 0);\n }\n\n 25% {\n transform: translate(24px, 0);\n }\n\n 50% {\n transform: translate(48px, 0);\n }\n\n 75% {\n transform: translate(24px, 0);\n }\n\n 100% {\n transform: translate(0, 0);\n }\n}\n\n@keyframes beat4 {\n 0% {\n transform: translate(0, 0);\n }\n\n 25% {\n transform: translate(24px, 0);\n }\n\n 50% {\n transform: translate(24px, 0) scale(0);\n }\n\n 75% {\n transform: translate(24px, 0) scale(1);\n }\n\n 100% {\n transform: translate(0, 0);\n }\n}\n\n@keyframes beat5 {\n 0% {\n transform: scale(1);\n }\n\n 25% {\n transform: scale(0);\n }\n\n 50% {\n transform: scale(0);\n }\n\n 75% {\n transform: scale(0);\n }\n\n 100% {\n transform: scale(1);\n }\n}\n\n/* LIGHT MODE */\n#w3a-modal.w3a-modal--light {\n --bg1: #ffffff;\n --bg2: #f9f9fb;\n --text-color1: #a2a5b5;\n --text-color2: #5c6c7f;\n}\n\n#w3a-modal .w3a-group:not(.w3a-group--hidden):not(:last-child),\n#w3a-modal .w3a-group:not(.w3a-group--social-hidden):not(:last-child),\n#w3a-modal .w3a-group:not(.w3a-group--email-hidden):not(:last-child),\n#w3a-modal .w3a-group:not(.w3a-group--ext-wallet-hidden):not(:last-child) {\n border-bottom: 0.5px solid #b7b8bd;\n padding-bottom: 24px;\n}\n\n#w3a-modal.w3a-modal--light button.w3a-button {\n background-color: #ffffff;\n border: 1px solid #f3f3f4;\n box-shadow: none;\n color: #595857;\n}\n\n#w3a-modal.w3a-modal--light button.w3a-button:disabled {\n color: #b7b8bd;\n}\n\n#w3a-modal.w3a-modal--light button.w3a-button:focus-visible {\n outline: 1px solid #0f1222;\n}\n\n#w3a-modal.w3a-modal--light .w3a-text-field {\n background: #ffffff;\n border: 1px solid #ffffff;\n box-shadow: inset 2px 2px 10px rgba(0, 0, 0, 0.1);\n color: #b7b8bd;\n}\n\n#w3a-modal.w3a-modal--light .w3a-text-field:active {\n color: #0f1222;\n outline: 1px solid #0f1222;\n}\n\n#w3a-modal.w3a-modal--light .w3a-text-field:focus-visible {\n color: #0f1222;\n outline: 1px solid #0f1222;\n}\n\n#w3a-modal.w3a-modal--light .w3a-footer__links a:focus-visible {\n outline: 1px solid #0f1222;\n}\n\n#w3a-modal.w3a-modal--light .w3a-external-back:focus-visible {\n outline: 1px solid #0f1222;\n}\n');var Qt={modal:{"adapter-loader":{message:"Verify on your {{adapter}} account to continue"},external:{title:"External wallet","walletconnect-subtitle":"Scan QR code with a WalletConnect-compatible wallet","walletconnect-connect":"Connect",connect:"Connect with Wallet",back:"Back"},footer:{message:"Self-custodial login by",terms:"Terms of use",policy:"Privacy policy"},network:{"switch-request":"This site is requesting to switch Network",to:"To",cancel:"Cancel",proceed:"Proceed","add-request":"This site is requesting to add Network",from:"From"},social:{email:"Email","view-more":"View more options","email-continue":"Continue with Email",continue:"Continue with","view-less":"View less options"},"header-subtitle":"Select one of the following to continue","header-title":"Sign in"}};nt.use(yt).init({resources:{en:{translation:Qt}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1},debug:!0,react:{useSuspense:!0}});var $t=(0,ot.createContext)({isDark:!0}),er={"arrow-left":{image:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%2224%20%2F%20arrows%20%2F%20circle-arrow-left%22%3E%3Cpath%20id%3D%22icon%22%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M12%2023C5.92487%2023%201%2018.0751%201%2012C1%205.92487%205.92487%201%2012%201C18.0751%201%2023%205.92487%2023%2012C23%2018.0751%2018.0751%2023%2012%2023ZM12%2021C16.9706%2021%2021%2016.9706%2021%2012C21%207.02944%2016.9706%203%2012%203C7.02944%203%203%207.02944%203%2012C3%2016.9706%207.02944%2021%2012%2021ZM17%2011H10.4142L12.7071%208.70711L11.2929%207.29289L6.58579%2012L11.2929%2016.7071L12.7071%2015.2929L10.4142%2013H17V11Z%22%20fill%3D%22%23D3D3D4%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},close:{image:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M13.4142%2012L19.7782%2018.364L18.364%2019.7782L12%2013.4143L5.63604%2019.7782L4.22183%2018.364L10.5858%2012L4.22183%205.63608L5.63604%204.22187L12%2010.5858L18.364%204.22187L19.7782%205.63608L13.4142%2012Z%22%20fill%3D%22%23DFDFDF%22%2F%3E%3C%2Fsvg%3E"},"expand-light":{image:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.0991%2015.6785C11.694%2016.1072%2011.0119%2016.1072%2010.6068%2015.6785L4.98828%209.73136C4.36988%209.0768%204.83393%208%205.73441%208L16.9715%208C17.872%208%2018.336%209.0768%2017.7176%209.73136L12.0991%2015.6785Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%3C%2Fsvg%3E"},expand:{image:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.0991%2015.6785C11.694%2016.1072%2011.0119%2016.1072%2010.6068%2015.6785L4.98828%209.73136C4.36988%209.0768%204.83393%208%205.73441%208L16.9715%208C17.872%208%2018.336%209.0768%2017.7176%209.73136L12.0991%2015.6785Z%22%20fill%3D%22%23B7B8BD%22%2F%3E%3C%2Fsvg%3E"}};function tr(e){var t=e.iconName,r=e.height,n=void 0===r?"auto":r,i=e.width,o=void 0===i?"auto":i;return er[t]?(0,H.jsx)("img",{height:n,width:o,src:er[t].image,alt:t}):null}function rr(e){var t=e.imageId,r=e.height,n=void 0===r?"auto":r,i=e.width,o=void 0===i?"auto":i;return(0,H.jsx)("img",{src:"https://images.web3auth.io/".concat(t,".svg"),height:n,width:o,alt:t})}var nr=(0,H.jsx)(tr,{iconName:"close"});function ir(e){var t=e.adapter,r=e.appLogo,n=void 0===r?"https://images.web3auth.io/web3auth-logo.svg":r,i=e.message,o=e.modalStatus,s=e.onClose,c=(0,H.jsx)(rr,{imageId:"web3auth"}),u=(0,H.jsx)(rr,{imageId:"login-".concat(t)}),l=vt(Tt(),1)[0];return(0,ot.useEffect)((function(){a.cM.debug("adapter loader re-rendering"),o===Kt&&setTimeout((function(){s()}),3e3)}),[o,s]),o!==Gt?(0,H.jsxs)("div",Object.assign({className:"w3ajs-modal-loader w3a-modal__loader"},{children:[(0,H.jsxs)("div",Object.assign({className:"w3a-modal__loader-content"},{children:[(0,H.jsxs)("div",Object.assign({className:"w3a-modal__loader-info"},{children:[o===Zt&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("div",Object.assign({className:"w3a-modal__loader-bridge"},{children:[(0,H.jsx)("div",Object.assign({className:"w3a-modal__loader-app-logo"},{children:(0,H.jsx)("img",{src:n,alt:""})})),(0,H.jsx)("div",Object.assign({className:"w3a-modal__connector"},{children:(0,H.jsxs)("div",Object.assign({className:"w3a-modal__connector-beat"},{children:[(0,H.jsx)("div",{}),(0,H.jsx)("div",{}),(0,H.jsx)("div",{}),(0,H.jsx)("div",{}),(0,H.jsx)("div",{})]}))})),(0,H.jsx)("div",Object.assign({className:"w3a-modal__loader-adapter"},{children:u}))]})),(0,H.jsx)("div",{children:(0,H.jsx)("div",Object.assign({className:"w3a-modal__loader-bridge-message"},{children:l("modal.adapter-loader.message",{adapter:t})}))})]}),o===a.MP.CONNECTED&&(0,H.jsx)("div",Object.assign({className:"w3ajs-modal-loader__message w3a-spinner-message"},{children:i})),o===a.MP.ERRORED&&(0,H.jsx)("div",Object.assign({className:"w3ajs-modal-loader__message w3a-spinner-message w3a-spinner-message--error"},{children:i}))]})),(0,H.jsxs)("div",Object.assign({className:"w3a-spinner-power"},{children:[(0,H.jsx)("div",{children:l("modal.footer.message")}),c]}))]})),(o===a.MP.CONNECTED||o===a.MP.ERRORED)&&(0,H.jsx)("button",Object.assign({type:"button",className:"w3a-header__button w3ajs-loader-close-btn",onClick:s},{children:nr}))]})):null}var or=(0,H.jsx)(tr,{iconName:"close"});function ar(e){var t=e.message,r=e.modalStatus,n=e.label,i=e.onClose,o=e.canEmit,s=void 0===o||o,c=(0,H.jsx)(rr,{imageId:"web3auth"}),u=vt(Tt(),1)[0];return(0,ot.useEffect)((function(){a.cM.debug("loader re-rendering"),r===Kt&&s&&setTimeout((function(){i()}),3e3)}),[s,r,i]),r!==Gt?(0,H.jsxs)("div",Object.assign({className:"w3ajs-modal-loader w3a-modal__loader"},{children:[(0,H.jsxs)("div",Object.assign({className:"w3a-modal__loader-content"},{children:[(0,H.jsxs)("div",Object.assign({className:"w3a-modal__loader-info"},{children:[r===Zt&&(0,H.jsxs)("div",Object.assign({className:"w3ajs-modal-loader__spinner w3a-spinner"},{children:[(0,H.jsx)("div",{className:"w3a-spinner__head"}),(0,H.jsx)("div",{className:"w3a-spinner__mask"})]})),(0,H.jsx)("div",Object.assign({className:"w3ajs-modal-loader__label w3a-spinner-label"},{children:n})),r===a.MP.CONNECTED&&(0,H.jsx)("div",Object.assign({className:"w3ajs-modal-loader__message w3a-spinner-message"},{children:t})),r===a.MP.ERRORED&&(0,H.jsx)("div",Object.assign({className:"w3ajs-modal-loader__message w3a-spinner-message w3a-spinner-message--error"},{children:t}))]})),(0,H.jsxs)("div",Object.assign({className:"w3a-spinner-power"},{children:[(0,H.jsx)("div",{children:u("modal.footer.message")}),c]}))]})),(r===a.MP.CONNECTED||r===a.MP.ERRORED)&&(0,H.jsx)("button",Object.assign({type:"button",className:"w3a-header__button w3ajs-loader-close-btn",onClick:i},{children:or}))]})):null}var sr=(0,H.jsx)(rr,{imageId:"wallet-connect",width:"114px"});function cr(e){var t=encodeURIComponent(e.uri);return e.universalLink?"".concat(e.universalLink,"/wc?uri=").concat(t):e.deepLink?"".concat(e.deepLink).concat(e.deepLink.endsWith(":")?"//":"/","wc?uri=").concat(t):""}function ur(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"mobile",i=e[n].universal||"",o=e[n].native||"";return{name:e.name||"",logo:e.logo||"",universalLink:i,deepLink:o,href:r===Lt().OS_MAP.iOS?cr({uri:t,universalLink:i,deepLink:o}):t}}function lr(e){var t=e.walletConnectUri,r=e.wcAdapters,n=vt((0,ot.useState)([]),2),i=n[0],o=n[1],a=vt(Tt(),1)[0],s=(0,ot.useMemo)((function(){var e=Lt().getParser(window.navigator.userAgent);return{platform:e.getPlatformType(),os:e.getOSName()}}),[]);return(0,ot.useEffect)((function(){if(s.platform===Lt().PLATFORMS_MAP.mobile){var e=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"mobile";return Object.values(e).filter((function(e){return!!e[n].universal||!!e[n].native})).map((function(e){return ur(e,t,r,n)}))}(r,t,s.os,s.platform);o(e)}}),[r,s.os,s.platform,t]),(0,H.jsx)("div",Object.assign({className:"w3ajs-wallet-connect w3a-wallet-connect"},{children:(0,H.jsxs)("div",Object.assign({className:"w3ajs-wallet-connect__container w3a-wallet-connect__container".concat(s.os===Lt().OS_MAP.Android?" w3a-wallet-connect__container--android":"")},{children:[(0,H.jsx)("div",Object.assign({className:"w3a-wallet-connect__logo"},{children:sr})),s.platform===Lt().PLATFORMS_MAP.desktop?(0,H.jsxs)("div",Object.assign({className:"w3a-wallet-connect__container-desktop"},{children:[(0,H.jsx)("div",{children:a("modal.external.walletconnect-subtitle")}),(0,H.jsx)("div",Object.assign({className:"w3ajs-wallet-connect-qr w3a-wallet-connect-qr"},{children:(0,H.jsx)(jt.Z,{size:200,value:t})}))]})):(0,H.jsx)("div",Object.assign({className:"w3a-wallet-connect__container-btn-group"},{children:i.map((function(e){return s.os===Lt().OS_MAP.iOS?(0,H.jsx)("div",Object.assign({className:"w3a-wallet-connect__container-ios"},{children:(0,H.jsxs)("a",Object.assign({href:e.href,rel:"noopener noreferrer",target:"_blank"},{children:[(0,H.jsx)("button",Object.assign({type:"button",className:"w3a-button w3a-button--icon"},{children:(0,H.jsx)("img",{src:e.logo,height:"auto",width:"auto",alt:"login-".concat(e.name)})})),(0,H.jsx)("p",Object.assign({className:"w3a-adapter-item__label"},{children:e.name}))]}),e.name)})):(0,H.jsx)("div",Object.assign({className:"w3a-wallet-connect__container-android"},{children:(0,H.jsx)("a",Object.assign({href:e.href,rel:"noopener noreferrer",target:"_blank"},{children:(0,H.jsx)("button",Object.assign({type:"button",className:"w3a-button"},{children:a("modal.external.walletconnect-connect")}))}),e.name)}))}))}))]}))}))}var fr=(0,ot.memo)(lr);function dr(e){var t=e.hideExternalWallets,r=e.handleExternalWalletClick,n=e.config,i=void 0===n?{}:n,o=e.walletConnectUri,s=e.showBackButton,c=e.modalStatus,u=e.wcAdapters,l=vt((0,ot.useState)(!1),2),f=l[0],d=l[1],h=vt((0,ot.useState)({}),2),p=h[0],g=h[1],m=(0,ot.useMemo)((function(){return Lt().getParser(window.navigator.userAgent).getPlatformType()}),[]),y=vt(Tt(),1)[0];return(0,ot.useEffect)((function(){var e;a.cM.debug("loaded external wallets",i,o),!1!==((null===(e=i[a.rW.WALLET_CONNECT_V1])||void 0===e?void 0:e.showOnModal)||!1)&&!o?r({adapter:a.rW.WALLET_CONNECT_V1}):Object.keys(i).length>0&&d(!0);var t={};Object.keys(i).forEach((function(e){var r=i[e];r.showOnModal?"desktop"===m&&r.showOnDesktop?t[e]=!0:"mobile"!==m&&"tablet"!==m||!r.showOnMobile?t[e]=!1:t[e]=!0:t[e]=!1})),g(t)}),[i,r,o,m]),(0,H.jsx)("div",Object.assign({className:"w3ajs-external-wallet w3a-group"},{children:(0,H.jsxs)("div",Object.assign({className:"w3a-external-container w3ajs-external-container"},{children:[s&&(0,H.jsxs)("button",Object.assign({type:"button",className:"w3a-external-back w3ajs-external-back",onClick:t},{children:[(0,H.jsx)(tr,{iconName:"arrow-left"}),(0,H.jsx)("div",Object.assign({className:"w3a-group__title"},{children:y("modal.external.back")}))]})),!f&&(0,H.jsx)(ar,{modalStatus:Zt,canEmit:!1}),Object.keys(i).map((function(e){return e===a.rW.WALLET_CONNECT_V1||e===a.rW.WALLET_CONNECT_V2?(0,H.jsx)(fr,{walletConnectUri:o,wcAdapters:u},e):null})),c===Gt&&(0,H.jsx)("ul",Object.assign({className:"w3a-adapter-list w3ajs-wallet-adapters"},{children:Object.keys(i).map((function(e){var t;if(e===a.rW.WALLET_CONNECT_V1||e===a.rW.WALLET_CONNECT_V2)return null;var n=(0,H.jsx)(rr,{imageId:"login-".concat(e)});return p[e]&&(0,H.jsxs)("li",Object.assign({className:"w3a-adapter-item"},{children:[(0,H.jsx)("button",Object.assign({type:"button",onClick:function(){return r({adapter:e})},className:"w3a-button w3a-button--icon"},{children:n})),(0,H.jsx)("p",Object.assign({className:"w3a-adapter-item__label"},{children:(null===(t=i[e])||void 0===t?void 0:t.label)||e}))]}),e)}))}))]}))}))}function hr(e){var t=e.version,r=vt(Tt(),1)[0],n=(0,H.jsx)(rr,{imageId:"web3auth",height:"14px",width:"auto"});return(0,H.jsx)("div",Object.assign({className:"w3a-modal__footer"},{children:(0,H.jsxs)("div",Object.assign({className:"w3a-footer"},{children:[(0,H.jsxs)("div",{children:[(0,H.jsxs)("div",Object.assign({className:"w3a-footer__links"},{children:[(0,H.jsx)("a",Object.assign({href:"https://docs.web3auth.io/legal/terms-and-conditions"},{children:r("modal.footer.terms")})),(0,H.jsx)("span",{children:"|"}),(0,H.jsx)("a",Object.assign({href:"https://docs.web3auth.io/legal/privacy-policy"},{children:r("modal.footer.policy")}))]})),(0,H.jsx)("p",{children:t})]}),(0,H.jsxs)("div",Object.assign({className:"w3a-footer__secured"},{children:[(0,H.jsx)("div",{children:r("modal.footer.message")}),n]}))]}))}))}var pr=(0,ot.memo)(hr);function gr(e){var t=(0,ot.useContext)($t).isDark,r=e.appLogo,n=void 0===r?"https://images.web3auth.io/web3auth-logo.svg":r,i=e.onClose,o=vt(Tt(),1)[0],a=(0,H.jsx)(rr,{imageId:"web3auth".concat(t?"-light":"")});return(0,H.jsxs)("div",Object.assign({className:"w3a-modal__header"},{children:[(0,H.jsxs)("div",Object.assign({className:"w3a-header"},{children:[n?(0,H.jsx)("img",{className:"w3a-header__logo",src:n,alt:""}):a,(0,H.jsxs)("div",{children:[(0,H.jsx)("div",Object.assign({className:"w3a-header__title"},{children:o("modal.header-title")})),(0,H.jsx)("p",Object.assign({className:"w3a-header__subtitle"},{children:o("modal.header-subtitle")}))]})]})),(0,H.jsx)("button",Object.assign({type:"button",onClick:i,className:"w3a-header__button w3ajs-close-btn"},{children:(0,H.jsx)(tr,{iconName:"close"})}))]}))}var mr=(0,ot.memo)(gr,(function(e,t){return e.appLogo!==t.appLogo}));function yr(e){var t=e.handleSocialLoginClick,r=e.adapter,n=vt((0,ot.useState)(!1),2),i=n[0],o=n[1],a=vt(Tt(),1)[0];return(0,H.jsxs)("div",Object.assign({className:"w3ajs-email-passwordless w3a-group w3a-group--email"},{children:[(0,H.jsx)("div",Object.assign({className:"w3a-group__title"},{children:a("modal.social.email")})),(0,H.jsxs)("form",Object.assign({className:"w3ajs-email-passwordless-form",onSubmit:function(e){return function(e){e.preventDefault();var n=e.target[0].value;n&&t({adapter:r,loginParams:{loginProvider:"email_passwordless",login_hint:n}})}(e)}},{children:[(0,H.jsx)("input",{className:"w3a-text-field",type:"email",name:"email",required:!0,placeholder:a("modal.social.email"),onChange:function(e){return function(e){var t=e.target.value.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i);o(!!t)}(e)}}),(0,H.jsx)("button",Object.assign({disabled:!i,className:"w3a-button",type:"submit"},{children:a("modal.social.email-continue")}))]}))]}))}mr.displayName="Header";var br=["apple","github"];function vr(e){var t=vt((0,ot.useState)(!1),2),r=t[0],n=t[1],i=vt((0,ot.useState)(!1),2),o=i[0],a=i[1],s=e.socialLoginsConfig,c=void 0===s?{loginMethods:{},loginMethodsOrder:[],adapter:""}:s,u=e.handleSocialLoginClick,l=(0,ot.useContext)($t).isDark,f=vt(Tt(),1)[0];(0,ot.useEffect)((function(){var e=Object.keys(c.loginMethods).filter((function(e){return c.loginMethods[e].showOnModal}));n(e.length>5)}),[c.loginMethods]);var d=Ut()("w3a-adapter-list","w3ajs-socials-adapters",o?"":" w3a-adapter-list--shrink"),h=Ut()("w3a-button-expand","w3ajs-button-expand",o?"w3a-button--rotate":""),p=f(o?"modal.social.view-less":"modal.social.view-more");return(0,H.jsxs)("div",Object.assign({className:"w3ajs-social-logins w3a-group"},{children:[(0,H.jsx)("div",Object.assign({className:"w3a-group__title"},{children:f("modal.social.continue")})),(0,H.jsx)("ul",Object.assign({className:d},{children:Object.keys(c.loginMethods).map((function(e){var t=(0,H.jsx)(rr,{imageId:"login-".concat(e).concat(l&&br.includes(e)?"-light":"")});if(!1===c.loginMethods[e].showOnModal||"webauthn"===e||"jwt"===e||"email_passwordless"===e)return null;var r=c.loginMethodsOrder.indexOf(e)+1||Object.keys(c.loginMethods).length+1;return(0,H.jsx)("li",Object.assign({className:"w3a-adapter-item",style:{order:r}},{children:(0,H.jsx)("button",Object.assign({type:"button",onClick:function(){return u({adapter:c.adapter,loginParams:{loginProvider:e}})},className:"w3a-button w3a-button--icon"},{children:t}))}),e)}))})),r&&(0,H.jsxs)("button",Object.assign({type:"button",className:h,style:{display:"flex"},onClick:function(){a(!o)}},{children:[(0,H.jsx)(tr,{iconName:"expand".concat(l?"-light":"")}),(0,H.jsx)("span",Object.assign({className:"w3ajs-button-expand-text"},{children:p}))]}))]}))}a.cM.enableAll();var wr=[a.rW.PHANTOM,a.rW.METAMASK];function xr(e){var t,r,n,i=vt((0,ot.useState)(["w3a-modal__inner"]),2),o=i[0],s=i[1],c=vt((0,ot.useState)({externalWalletsVisibility:!1,status:Gt,hasExternalWallets:!1,externalWalletsInitialized:!1,modalVisibility:!1,modalVisibilityDelayed:!1,postLoadingMessage:"",walletConnectUri:"",socialLoginsConfig:{loginMethods:{},loginMethodsOrder:[],adapter:""},externalWalletsConfig:{},detailedLoaderAdapter:"",showExternalWalletsOnly:!1,wcAdapters:[]}),2),u=c[0],l=c[1],f=(0,ot.useContext)($t).isDark,d=vt(Tt(),1)[0],h=e.stateListener,p=e.appLogo,g=e.version,m=e.handleSocialLoginClick,y=e.handleExternalWalletClick,b=e.handleShowExternalWallets,v=e.closeModal;(0,ot.useEffect)((function(){h.emit("MOUNTED"),h.on("STATE_UPDATED",(function(e){a.cM.debug("state updated",e),l((function(t){return Pt()(Bt()(t,e))}))}))}),[h]),(0,ot.useEffect)((function(){var e;return u.modalVisibility?(l((function(e){return Object.assign(Object.assign({},e),{modalVisibilityDelayed:u.modalVisibility})})),e=window.setTimeout((function(){s(["w3a-modal__inner",u.modalVisibility?"w3a-modal__inner--active":""])}),100)):(s(["w3a-modal__inner",u.modalVisibility?"w3a-modal__inner--active":""]),e=window.setTimeout((function(){l((function(e){return Object.assign(Object.assign({},e),{modalVisibilityDelayed:u.modalVisibility})}))}),250)),function(){clearTimeout(e)}}),[u.modalVisibility]);var w=(0,ot.useCallback)((function(){u.status===Kt&&v(),u.status===Xt&&l((function(e){return Object.assign(Object.assign({},e),{modalVisibility:!0,status:Gt})}))}),[v,u.status]),x=function(e){var t=e.adapter;wr.includes(t)?l((function(e){return Object.assign(Object.assign({},e),{detailedLoaderAdapter:t})})):t!==a.rW.WALLET_CONNECT_V1&&l((function(e){return Object.assign(Object.assign({},e),{detailedLoaderAdapter:""})})),y(e)},_=function(e){l((function(e){return Object.assign(Object.assign({},e),{detailedLoaderAdapter:""})})),m(e)},S=(0,H.jsx)("div",Object.assign({className:"w3ajs-external-wallet w3a-group"},{children:(0,H.jsxs)("div",Object.assign({className:"w3a-external-toggle w3ajs-external-toggle"},{children:[(0,H.jsx)("div",Object.assign({className:"w3a-group__title"},{children:d("modal.external.title")})),(0,H.jsx)("button",Object.assign({type:"button",className:"w3a-button w3ajs-external-toggle__button",onClick:function(){b(u.externalWalletsInitialized),l((function(e){return Object.assign(Object.assign({},e),{externalWalletsVisibility:!0})}))}},{children:d("modal.external.connect")}))]}))})),A=(0,ot.useMemo)((function(){var e,t;return!u.showExternalWalletsOnly&&(0!==Object.keys((null===(e=u.socialLoginsConfig)||void 0===e?void 0:e.loginMethods)||{}).length&&!!Object.entries((null===(t=u.socialLoginsConfig)||void 0===t?void 0:t.loginMethods)||{}).some((function(e){var t=vt(e,2),r=t[0],n=t[1];return r!==T.hG.EMAIL_PASSWORDLESS&&!1!==n.showOnModal})))}),[u.showExternalWalletsOnly,null===(t=u.socialLoginsConfig)||void 0===t?void 0:t.loginMethods]);a.cM.info("modal state",u,A);var E=(0,ot.useMemo)((function(){var e,t;return null===(t=null===(e=u.socialLoginsConfig)||void 0===e?void 0:e.loginMethods[T.hG.EMAIL_PASSWORDLESS])||void 0===t?void 0:t.showOnModal}),[null===(r=u.socialLoginsConfig)||void 0===r?void 0:r.loginMethods]),k="w3a-modal ".concat(f?"":" w3a-modal--light");return u.modalVisibilityDelayed&&(0,H.jsx)("div",Object.assign({id:"w3a-modal",className:k,style:{display:"flex"}},{children:(0,H.jsxs)("div",Object.assign({className:o.join(" ")},{children:[(0,H.jsx)(mr,{onClose:v,appLogo:p}),u.status!==Gt?(0,H.jsx)("div",Object.assign({className:"w3a-modal__content w3ajs-content"},{children:u.detailedLoaderAdapter?(0,H.jsx)(ir,{onClose:w,appLogo:p,modalStatus:u.status,message:u.postLoadingMessage,adapter:u.detailedLoaderAdapter}):(0,H.jsx)(ar,{onClose:w,modalStatus:u.status,message:u.postLoadingMessage})})):(0,H.jsx)("div",Object.assign({className:"w3a-modal__content w3ajs-content"},{children:!A&&!E||u.externalWalletsVisibility?(0,H.jsx)(dr,{modalStatus:u.status,showBackButton:A,handleExternalWalletClick:function(e){return x(e)},walletConnectUri:u.walletConnectUri,wcAdapters:u.wcAdapters,config:u.externalWalletsConfig,hideExternalWallets:function(){return l((function(e){return Object.assign(Object.assign({},e),{externalWalletsVisibility:!1})}))}}):(0,H.jsxs)(H.Fragment,{children:[A?(0,H.jsx)(vr,{handleSocialLoginClick:function(e){return _(e)},socialLoginsConfig:u.socialLoginsConfig}):null,E&&(0,H.jsx)(yr,{adapter:null===(n=u.socialLoginsConfig)||void 0===n?void 0:n.adapter,handleSocialLoginClick:function(e){return _(e)}}),u.hasExternalWallets&&S]})})),(0,H.jsx)(pr,{version:g})]}))}))}function _r(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var i=D(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return j(this,r)}}function Sr(){var e=document.createElement("section");return e.setAttribute("id","w3a-container"),document.body.appendChild(e),e}var Ar=function(e){N(n,e);var t=_r(n);function n(e){var i,o=e.appLogo,s=e.version,c=e.adapterListener,u=e.theme,l=void 0===u?"light":u,f=e.displayErrorsOnModal,d=void 0===f||f,h=e.defaultLanguage;return P(this,n),(i=t.call(this)).displayErrorsOnModal=!0,i.initModal=function(){return Yt(R(i),void 0,void 0,F().mark((function e(){var t,n,i=this;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={isDark:this.isDark},"de"===(n=this.defaultLanguage||"en")?r.e(4353).then(r.bind(r,24353)).then((function(e){return nt.addResourceBundle(n,"translation",e.default),nt.changeLanguage(n)})).catch((function(e){a.cM.error(e)})):"ja"===n?r.e(2476).then(r.bind(r,82476)).then((function(e){return nt.addResourceBundle(n,"translation",e.default),nt.changeLanguage(n)})).catch((function(e){a.cM.error(e)})):"ko"===n?r.e(5567).then(r.bind(r,55567)).then((function(e){return nt.addResourceBundle(n,"translation",e.default),nt.changeLanguage(n)})).catch((function(e){a.cM.error(e)})):"zh"===n?r.e(3214).then(r.bind(r,93214)).then((function(e){return nt.addResourceBundle(n,"translation",e.default),nt.changeLanguage(n)})).catch((function(e){a.cM.error(e)})):"es"===n&&r.e(7032).then(r.bind(r,77032)).then((function(e){return nt.addResourceBundle(n,"translation",e.default),nt.changeLanguage(n)})).catch((function(e){a.cM.error(e)})),e.abrupt("return",new Promise((function(e){i.stateEmitter.once("MOUNTED",(function(){return a.cM.info("rendered"),i.setState({status:Gt}),e()}));var r=Sr();(0,It.s)(r).render((0,H.jsx)($t.Provider,Object.assign({value:t},{children:(0,H.jsx)(xr,{closeModal:i.closeModal,stateListener:i.stateEmitter,handleShowExternalWallets:function(e){return i.handleShowExternalWallets(e)},handleExternalWalletClick:function(e){return i.handleExternalWalletClick(e)},handleSocialLoginClick:function(e){return i.handleSocialLoginClick(e)},appLogo:i.appLogo,version:i.version})})))})));case 4:case"end":return e.stop()}}),e,this)})))},i.addSocialLogins=function(e,t,r){i.setState({socialLoginsConfig:{adapter:e,loginMethods:t,loginMethodsOrder:r}}),a.cM.info("addSocialLogins",e,t,r)},i.addWalletLogins=function(e,t){i.setState({externalWalletsConfig:e,externalWalletsInitialized:!0,showExternalWalletsOnly:!!(null===t||void 0===t?void 0:t.showExternalWalletsOnly),externalWalletsVisibility:!0})},i.open=function(){i.setState({modalVisibility:!0}),i.emit(Wt,!0)},i.closeModal=function(){i.setState({modalVisibility:!1,externalWalletsVisibility:!1}),i.emit(Wt,!1)},i.initExternalWalletContainer=function(){i.setState({hasExternalWallets:!0})},i.handleShowExternalWallets=function(e){i.emit(zt,{externalWalletsInitialized:e})},i.handleExternalWalletClick=function(e){a.cM.info("external wallet clicked",e);var t=e.adapter;i.emit(qt,{adapter:t})},i.handleSocialLoginClick=function(e){a.cM.info("social login clicked",e);var t=e.adapter,r=e.loginParams;i.emit(qt,{adapter:t,loginParams:{loginProvider:r.loginProvider,login_hint:r.login_hint}})},i.setState=function(e){i.stateEmitter.emit("STATE_UPDATED",e)},i.updateWalletConnect=function(e,t){e&&i.setState({walletConnectUri:e,wcAdapters:t})},i.handleAdapterData=function(e){if(e.adapterName===a.rW.WALLET_CONNECT_V1){var t=e.data;i.updateWalletConnect(t.uri,t.extensionAdapters)}},i.subscribeCoreEvents=function(e){e.on(a.n2.CONNECTING,(function(e){a.cM.info("connecting with adapter",e),(null===e||void 0===e?void 0:e.adapter)!==a.rW.WALLET_CONNECT_V1&&(null===e||void 0===e?void 0:e.adapter)!==a.rW.WALLET_CONNECT_V2&&i.setState({status:Zt})})),e.on(a.n2.CONNECTED,(function(e){a.cM.debug("connected with adapter",e),e.reconnected?i.setState({status:Kt}):i.setState({status:Kt,modalVisibility:!0,postLoadingMessage:"You are connected with your account"})})),e.on(a.n2.ERRORED,(function(e){a.cM.error("error",e,e.message),5e3===e.code?i.displayErrorsOnModal?i.setState({modalVisibility:!0,postLoadingMessage:e.message||"Something went wrong!",status:Xt}):i.setState({modalVisibility:!1}):i.setState({modalVisibility:!0,status:Gt})})),e.on(a.n2.DISCONNECTED,(function(){i.setState({status:Gt,externalWalletsVisibility:!1})})),e.on(a.n2.ADAPTER_DATA_UPDATED,(function(e){i.handleAdapterData(e)}))},i.appLogo=o||"https://images.web3auth.io/web3auth-logo.svg",i.version=s,i.isDark="dark"===l,i.stateEmitter=new w.Ue,i.displayErrorsOnModal=d,i.defaultLanguage=h,i.subscribeCoreEvents(c),i}return O(n)}(w.Ue);Jt('/* devanagari */\n@font-face {\n font-family: "Poppins";\n font-style: normal;\n font-weight: 600;\n src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z11lFd2JQEl8qw.woff2) format("woff2");\n unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;\n}\n/* latin-ext */\n@font-face {\n font-family: "Poppins";\n font-style: normal;\n font-weight: 600;\n src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z1JlFd2JQEl8qw.woff2) format("woff2");\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: "Poppins";\n font-style: normal;\n font-weight: 600;\n src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z1xlFd2JQEk.woff2) format("woff2");\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,\n U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n\n/* latin-ext */\n@font-face {\n font-family: "DM Sans";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.gstatic.com/s/dmsans/v6/rP2Hp2ywxg089UriCZ2IHTWEBlwu8Q.woff2) format("woff2");\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: "DM Sans";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.gstatic.com/s/dmsans/v6/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2) format("woff2");\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,\n U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n\n/* Modal */\n#w3a-network-modal {\n --bg1: #ffffff;\n --bg2: #f9f9fb;\n --text-color1: #a2a5b5;\n --text-color2: #5c6c7f;\n\n --text-header: "Poppins", Helvetica, sans-serif;\n --text-body: "DM Sans", Helvetica, sans-serif;\n\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: 15px;\n color: var(--text-color1);\n font-family: var(--text-body);\n background: black;\n}\n\n#w3a-network-modal button.w3a-button {\n background-color: #ffffff;\n border: 1px solid #f3f3f4;\n box-shadow: none;\n box-sizing: border-box;\n border-radius: 24px;\n height: 48px;\n width: 100%;\n padding: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-family: var(--text-body);\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n color: #b7b8bd;\n cursor: pointer;\n}\n\n#w3a-network-modal .w3a-switch-network {\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f9f9fb;\n box-sizing: border-box;\n border-radius: 10px;\n width: 375px;\n padding: 20px;\n font-family: var(--text-body);\n}\n\n#w3a-network-modal .w3a-switch-network__title {\n font-family: var(--text-header);\n font-size: 20px;\n color: var(--text-color2);\n margin-bottom: 16px;\n text-align: center;\n}\n\n#w3a-network-modal .w3a-switch-network__link {\n font-size: 12px;\n color: #b7b8bd;\n background-color: #fff;\n height: 24px;\n border-radius: 12px;\n padding: 4px 16px;\n}\n\n#w3a-network-modal .w3a-switch-network__connect {\n display: flex;\n margin: 40px auto 0;\n}\n\n#w3a-network-modal .w3a-switch-network__connect > div {\n text-align: center;\n font-size: 10px;\n color: var(--text-color2);\n}\n\n.w3a-switch-network__connect-divider {\n margin-top: 20px;\n}\n\n#w3a-network-modal .w3a-switch-network__logo {\n background: #ffffff;\n box-shadow: 2px 2px 12px rgba(3, 100, 255, 0.05);\n border-radius: 50%;\n width: 58px;\n height: 58px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 auto 6px;\n}\n\n#w3a-network-modal .w3a-switch-network__logo img {\n width: 34px;\n height: 34px;\n}\n\n#w3a-network-modal .w3a-switch-network__buttons {\n display: flex;\n column-gap: 16px;\n width: 100%;\n margin-top: 60px;\n}\n\n#w3a-network-modal .w3a-button.w3a-button--primary {\n background-color: #0364ff;\n color: #fff;\n}\n');var Er=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};if(e!==a.rW.OPENLOGIN)throw new Error("".concat(e," is not a valid adapter"));return Ht.forEach((function(e){var t=r[e]||{name:e,showOnMobile:!0,showOnModal:!0,showOnDesktop:!0};n[e]=Object.assign({},t)})),a.cM.debug("OpenLogin login method ui config",n),n};function kr(e){return Yt(this,void 0,void 0,F().mark((function t(){return F().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){var n=new Image;n.src=e,n.complete?t(!0):(n.addEventListener("load",(function(){t(!0)})),n.addEventListener("error",(function(){r()})))})));case 1:case"end":return t.stop()}}),t)})))}function Mr(e){return Yt(this,void 0,void 0,F().mark((function t(){var r,n;return F().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r="network-default",e){t.next=3;break}return t.abrupt("return",r);case 3:return t.prev=3,n="https://images.web3auth.io/network-".concat(e.toLowerCase(),".svg"),t.next=7,kr(n);case 7:if(!t.sent){t.next=10;break}return t.abrupt("return","network-".concat(e.toLowerCase()));case 10:return t.abrupt("return",r);case 13:return t.prev=13,t.t0=t.catch(3),t.abrupt("return",r);case 16:case"end":return t.stop()}}),t,null,[[3,13]])})))}function Cr(e){var t=e.chainConfig,r=e.appOrigin,n=e.onAddNetwork,i=e.onCancelNetwork,o=vt((0,ot.useState)(!0),2),a=o[0],s=o[1],c=vt((0,ot.useState)("network-default"),2),u=c[0],l=c[1],f=vt(Tt(),1)[0];return(0,ot.useEffect)((function(){Mr(t.ticker).then((function(e){return l(e)})).catch((function(){}))}),[t.ticker]),a&&(0,H.jsx)("div",Object.assign({id:"w3a-modal-network"},{children:(0,H.jsxs)("div",Object.assign({className:"w3a-switch-network"},{children:[(0,H.jsx)("div",Object.assign({className:"w3a-switch-network__title"},{children:f("modal.network.add-request")})),(0,H.jsx)("div",{children:(0,H.jsx)("a",Object.assign({className:"w3a-switch-network__link",href:r},{children:r}))}),(0,H.jsx)("div",Object.assign({className:"w3a-switch-network__connect"},{children:(0,H.jsxs)("div",{children:[(0,H.jsx)("div",Object.assign({className:"w3a-switch-network__logo"},{children:(0,H.jsx)(rr,{imageId:u})})),(0,H.jsx)("div",{children:(0,H.jsx)("div",{children:t.displayName})})]})})),(0,H.jsxs)("div",Object.assign({className:"w3a-switch-network__buttons"},{children:[(0,H.jsx)("button",Object.assign({type:"button",className:"w3a-button",onClick:function(){s(!1),i()}},{children:f("modal.network.cancel")})),(0,H.jsx)("button",Object.assign({type:"button",className:"w3a-button w3a-button--primary",onClick:function(){s(!1),n(t.chainId)}},{children:f("modal.network.proceed")}))]}))]}))}))}function Tr(e){var t=e.currentChainConfig,r=e.newChainConfig,n=e.appOrigin,i=e.onSwitchNetwork,o=e.onCancelNetwork,a=vt((0,ot.useState)(!0),2),s=a[0],c=a[1],u=vt((0,ot.useState)("network-default"),2),l=u[0],f=u[1],d=vt((0,ot.useState)("network-default"),2),h=d[0],p=d[1],g=vt(Tt(),1)[0];return(0,ot.useEffect)((function(){Mr(t.ticker).then((function(e){return f(e)})).catch((function(){})),Mr(r.ticker).then((function(e){return p(e)})).catch((function(){}))}),[t.chainId,t.ticker,r.chainId,r.ticker]),s&&(0,H.jsx)("div",Object.assign({id:"w3a-modal-network"},{children:(0,H.jsxs)("div",Object.assign({className:"w3a-switch-network"},{children:[(0,H.jsx)("div",Object.assign({className:"w3a-switch-network__title"},{children:g("modal.network.switch-request")})),(0,H.jsx)("div",{children:(0,H.jsx)("a",Object.assign({className:"w3a-switch-network__link",href:n},{children:n}))}),(0,H.jsxs)("div",Object.assign({className:"w3a-switch-network__connect"},{children:[(0,H.jsxs)("div",{children:[(0,H.jsx)("div",Object.assign({className:"w3a-switch-network__logo"},{children:(0,H.jsx)(rr,{imageId:l})})),(0,H.jsxs)("div",{children:[(0,H.jsxs)("div",{children:[g("modal.network.from"),":"]}),(0,H.jsx)("div",{children:t.displayName})]})]}),(0,H.jsx)("div",{children:(0,H.jsx)("div",Object.assign({className:"w3a-switch-network__connect-divider"},{children:(0,H.jsx)(rr,{imageId:"network-arrow"})}))}),(0,H.jsxs)("div",{children:[(0,H.jsx)("div",Object.assign({className:"w3a-switch-network__logo"},{children:(0,H.jsx)(rr,{imageId:h})})),(0,H.jsxs)("div",{children:[(0,H.jsxs)("div",{children:[g("modal.network.to"),":"]}),(0,H.jsx)("div",{children:r.displayName})]})]})]})),(0,H.jsxs)("div",Object.assign({className:"w3a-switch-network__buttons"},{children:[(0,H.jsx)("button",Object.assign({type:"button",className:"w3a-button",onClick:function(){c(!1),o()}},{children:g("modal.network.cancel")})),(0,H.jsx)("button",Object.assign({type:"button",className:"w3a-button w3a-button--primary",onClick:function(){c(!1),i(t.chainId,r.chainId)}},{children:g("modal.network.proceed")}))]}))]}))}))}function Ir(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var i=D(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return j(this,r)}}function Or(e){var t=document.getElementById(e||"w3a-network-container");if(t)return t;var r=document.createElement("section");return r.setAttribute("id",e||"w3a-network-container"),document.body.appendChild(r),r}a.Fx;var Pr,Rr,Br={chainNamespace:a.EN.SOLANA,adapters:(Pr={},(0,s.Z)(Pr,a.hf.TORUS_SOLANA,{label:"Torus Wallet",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0}),(0,s.Z)(Pr,a.hf.OPENLOGIN,{label:"OpenLogin",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0}),(0,s.Z)(Pr,a.hf.PHANTOM,{label:"Phantom",showOnModal:!0,showOnMobile:!1,showOnDesktop:!0}),Pr)},Nr={chainNamespace:a.EN.EIP155,adapters:(Rr={},(0,s.Z)(Rr,a.$z.TORUS_EVM,{label:"Torus Wallet",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0}),(0,s.Z)(Rr,a.$z.METAMASK,{label:"MetaMask",showOnModal:!0,showOnMobile:!1,showOnDesktop:!0}),(0,s.Z)(Rr,a.$z.OPENLOGIN,{label:"OpenLogin",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0}),(0,s.Z)(Rr,a.$z.WALLET_CONNECT_V1,{label:"Wallet Connect",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0}),Rr)},Lr={chainNamespace:a.EN.SOLANA,adapters:(0,s.Z)({},a.hf.OPENLOGIN,{label:"OpenLogin",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0})},jr={chainNamespace:a.EN.EIP155,adapters:(0,s.Z)({},a.$z.OPENLOGIN,{label:"OpenLogin",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0})},Dr={chainNamespace:a.EN.OTHER,adapters:(0,s.Z)({},a.$z.OPENLOGIN,{label:"OpenLogin",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0})};function Ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};f(this,e),this.init(t,r)}return h(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||v,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),n=1;n-1?e.replace(/###/g,"."):e}function i(){return!e||"string"===typeof e}for(var o="string"!==typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:n(o.shift())}}function k(e,t,r){var n=E(e,t,Object);n.obj[n.k]=r}function M(e,t){var r=E(e,t),n=r.obj,i=r.k;if(n)return n[i]}function C(e,t,r){var n=M(e,r);return void 0!==n?n:M(t,r)}function T(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"===typeof e[n]||e[n]instanceof String||"string"===typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):T(e[n],t[n],r):e[n]=t[n]);return e}function I(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var O={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function P(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,(function(e){return O[e]})):e}var R="undefined"!==typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,B=[" ",",","?","!",";"];function N(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;oo+a;)a++,c=i[s=n.slice(o,o+a).join(r)];if(void 0===c)return;if("string"===typeof c)return c;if(s&&"string"===typeof c[s])return c[s];var u=n.slice(o+a).join(r);return u?N(c,u,r):void 0}i=i[n[o]]}return i}}var L=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return f(this,t),r=g(this,m(t).call(this)),R&&x.call(p(r)),r.data=e||{},r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return b(t,e),h(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!==typeof r&&(a=a.concat(r)),r&&"string"===typeof r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split("."));var s=M(this.data,a);return s||!o||"string"!==typeof r?s:N(this.data&&this.data[e]&&this.data[e][t],r,i)}},{key:"addResource",value:function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),k(this.data,a,n),i.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in r)"string"!==typeof r[i]&&"[object Array]"!==Object.prototype.toString.apply(r[i])||this.addResource(e,t,i,r[i],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(n=r,r=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=M(this.data,a)||{};n?T(s,r,i):s=l({},s,r),k(this.data,a,s),o.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?l({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),t}(x),j={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,r,n,i))})),t}},D={},U=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(this,t),r=g(this,m(t).call(this)),R&&x.call(p(r)),A(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,p(r)),r.options=n,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=w.create("translator"),r}return b(t,e),h(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;var r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS,o=r&&e.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,r){t=t||"",r=r||"";var n=B.filter((function(e){return t.indexOf(e)<0&&r.indexOf(e)<0}));if(0===n.length)return!0;var i=new RegExp("(".concat(n.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,r,n);if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var c=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(n)}return"string"===typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,r,n){var i=this;if("object"!==c(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],r),s=a.key,u=a.namespaces,f=u[u.length-1],d=r.lng||this.language,h=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(h){var p=r.nsSeparator||this.options.nsSeparator;return f+p+s}return s}var g=this.resolve(e,r),m=g&&g.res,y=g&&g.usedKey||s,b=g&&g.exactUsedKey||s,v=Object.prototype.toString.apply(m),w=["[object Number]","[object Function]","[object RegExp]"],x=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!==typeof m&&"boolean"!==typeof m&&"number"!==typeof m;if(_&&m&&S&&w.indexOf(v)<0&&("string"!==typeof x||"[object Array]"!==v)){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,m,l({},r,{ns:u})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(o){var A="[object Array]"===v,E=A?[]:{},k=A?b:y;for(var M in m)if(Object.prototype.hasOwnProperty.call(m,M)){var C="".concat(k).concat(o).concat(M);E[M]=this.translate(C,l({},r,{joinArrays:!1,ns:u})),E[M]===C&&(E[M]=m[M])}m=E}}else if(_&&"string"===typeof x&&"[object Array]"===v)(m=m.join(x))&&(m=this.extendTranslation(m,e,r,n));else{var T=!1,I=!1,O=void 0!==r.count&&"string"!==typeof r.count,P=t.hasDefaultValue(r),R=O?this.pluralResolver.getSuffix(d,r.count,r):"",B=r["defaultValue".concat(R)]||r.defaultValue;!this.isValidLookup(m)&&P&&(T=!0,m=B),this.isValidLookup(m)||(I=!0,m=s);var N=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,L=N&&I?void 0:m,j=P&&B!==m&&this.options.updateMissing;if(I||T||j){if(this.logger.log(j?"updateKey":"missingKey",d,f,s,j?B:m),o){var D=this.resolve(s,l({},r,{keySeparator:!1}));D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var U=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var H=0;H1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,s),u=c.key;r=u;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!==typeof s.count,d=void 0!==s.context&&("string"===typeof s.context||"number"===typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!D["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(D["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(r){if(!a.isValidLookup(t)){i=r;var o,c,l=u,h=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(h,u,r,e,s);else f&&(o=a.pluralResolver.getSuffix(r,s.count,s)),f&&d&&h.push(l+o),d&&h.push(l+="".concat(a.options.contextSeparator).concat(s.context)),f&&h.push(l+=o);for(;c=h.pop();)a.isValidLookup(t)||(n=c,t=a.getResource(r,e,c,s))}})))}))}})),{res:t,usedKey:r,exactUsedKey:n,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}]),t}(x);function F(e){return e.charAt(0).toUpperCase()+e.slice(1)}var H=function(){function e(t){f(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=w.create("languageUtils")}return h(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"===typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=F(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=F(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=F(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var n=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(n)||(t=n)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var n=r.getLanguagePartFromCode(e);if(r.isSupportedCode(n))return t=n;t=r.options.supportedLngs.find((function(e){if(0===e.indexOf(n))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(r.isSupportedCode(e)?i.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"===typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"===typeof e&&o(this.formatLanguageCode(e)),n.forEach((function(e){i.indexOf(e)<0&&o(r.formatLanguageCode(e))})),i}}]),e}(),z=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],q={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},V=["v1","v2","v3"],W={zero:0,one:1,two:2,few:3,many:4,other:5};function G(){var e={};return z.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:q[t.fc]}}))})),e}var K=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,e),this.languageUtils=t,this.options=r,this.logger=w.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=G()}return h(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(r){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((function(e,t){return W[e]-W[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):n.numbers.map((function(n){return t.getSuffix(e,n,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"===typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!V.includes(this.options.compatibilityJSON)}}]),e}(),Z=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,e),this.logger=w.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return h(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:P,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?I(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?I(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?I(t.nestingPrefix):t.nestingPrefixEscaped||I("$t("),this.nestingSuffix=t.nestingSuffix?I(t.nestingSuffix):t.nestingSuffixEscaped||I(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var i,o,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var f=function(e){if(e.indexOf(s.formatSeparator)<0){var i=C(t,c,e);return s.alwaysFormat?s.format(i,void 0,r,l({},n,t,{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(C(t,c,a),u,r,l({},n,t,{interpolationkey:a}))};this.resetRegExp();var d=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,h=n&&n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;i=t.regex.exec(e);){if(void 0===(o=f(i[1].trim())))if("function"===typeof d){var r=d(e,i,n);o="string"===typeof r?r:""}else{if(h){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),o=""}else"string"===typeof o||s.useRawValueToEscape||(o=S(o));var c=t.safeValue(o);if(e=e.replace(i[0],c),h?(t.regex.lastIndex+=c.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,n,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=l({},o);function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);e=n[0],i=(i=this.interpolate(i,a)).replace(/'/g,'"');try{a=JSON.parse(i),t&&(a=l({},t,a))}catch(o){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),o),"".concat(e).concat(r).concat(i)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;r=this.nestingRegexp.exec(e);){var c=[],u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=f.shift(),c=f,u=!0}if((n=t(s.call(this,r[1].trim(),a),a))&&r[0]===e&&"string"!==typeof n)return n;"string"!==typeof n&&(n=S(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),u&&(n=c.reduce((function(e,t){return i.format(e,t,o.lng,l({},o,{interpolationkey:r[1].trim()}))}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}();var X=function(e){function t(e,r,n){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return f(this,t),i=g(this,m(t).call(this)),R&&x.call(p(i)),i.backend=e,i.store=r,i.services=n,i.languageUtils=n.languageUtils,i.options=o,i.logger=w.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(n,o.backend,o),i}return b(t,e),h(t,[{key:"queueLoad",value:function(e,t,r,n){var i=this,o=[],a=[],s=[],c=[];return e.forEach((function(e){var n=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!r.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?a.indexOf(s)<0&&a.push(s):(i.state[s]=1,n=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),c.indexOf(t)<0&&c.push(t)))})),n||s.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:n}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,r){var n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),r&&this.store.addResourceBundle(i,o,r),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(r){!function(e,t,r,n){var i=E(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}(r.loaded,[i],o),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(r.pending,e),t&&r.errors.push(t),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(e){a[e]||(a[e]=[]),r.loaded[e].length&&r.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var n=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[r](e,t,(function(s,c){s&&c&&i<5?setTimeout((function(){n.read.call(n,e,t,r,i+1,2*o,a)}),o):a(s,c)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);var o=this.queueLoad(e,t,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(function(n,a){n&&t.logger.warn("".concat(r,"loading namespace ").concat(o," for language ").concat(i," failed"),n),!n&&a&&t.logger.log("".concat(r,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,n,a)}))}},{key:"saveMissing",value:function(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):void 0!==r&&null!==r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,n,null,l({},o,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,r,n))}}]),t}(x);function Y(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===c(e[1])&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===c(e[2])||"object"===c(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function J(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Q(){}var $=new(function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(f(this,t),e=g(this,m(t).call(this)),R&&x.call(p(e)),e.options=J(r),e.services={},e.logger=w,e.modules={external:[]},n&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,n),g(e,p(e));setTimeout((function(){e.init(r,n)}),0)}return e}return b(t,e),h(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function n(e){return e?"function"===typeof e?new e:e:null}if("function"===typeof t&&(r=t,t={}),!t.defaultNS&&t.ns&&("string"===typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0])),this.options=l({},Y(),this.options,J(t)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),this.format=this.options.interpolation.format,r||(r=Q),!this.options.isClone){this.modules.logger?w.init(n(this.modules.logger),this.options):w.init(null,this.options);var i=new H(this.options);this.store=new L(this.options.resources,this.options);var o=this.services;o.logger=w,o.resourceStore=this.store,o.languageUtils=i,o.pluralResolver=new K(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o.interpolator=new Z(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new X(n(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var u=_(),f=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(n),r(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),u}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q,n=r,i="string"===typeof e?e:this.language;if("function"===typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return n();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,r){var n=_();return e||(e=this.languages),t||(t=this.options.ns),r||(r=Q),this.services.backendConnector.reload(e,t,(function(e){n.resolve(),r(e)})),n}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&j.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var n=_();this.emit("languageChanging",e);var i=function(e){if(r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&r.store.hasLanguageSomeTranslations(n)){r.resolvedLanguage=n;break}}},o=function(o){e||o||!r.services.languageDetector||(o=[]);var a="string"===typeof o?o:r.services.languageUtils.getBestMatchFromCodes(o);a&&(r.language||i(a),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(e){!function(e,o){o?(i(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,n.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,r){var n=this,i=function e(t,i){var o;if("object"!==c(i)){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(n,e)||(!this.services.backendConnector.backend||!(!a(n,e)||i&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=_();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=_();"string"===typeof e&&(e=[e]);var n=this.options.preload||[],i=e.filter((function(e){return n.indexOf(e)<0}));return i.length?(this.options.preload=n.concat(i),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(e,r)}},{key:"cloneInstance",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q,i=l({},this.options,r,{isClone:!0}),o=new t(i),a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=l({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new U(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n3&&n(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(s){console&&console.log(s)}}(e,t,r,n):void 0};function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ge(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pe(this,e),this.services=t,this.options=r,this.allOptions=n,this.type="backend",this.init(t,r,n)}var t,r,n;return t=e,(r=[{key:"init",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=ie(r,this.options||{},me()),this.allOptions=n,this.services&&this.options.reloadInterval&&setInterval((function(){return t.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,r){this._readAny(e,e,t,t,r)}},{key:"read",value:function(e,t,r){this._readAny([e],e,[t],t,r)}},{key:"_readAny",value:function(e,t,r,n,i){var o,a=this,s=this.options.loadPath;"function"===typeof this.options.loadPath&&(s=this.options.loadPath(e,r)),(s=function(e){return!!e&&"function"===typeof e.then}(o=s)?o:Promise.resolve(o)).then((function(o){var s=a.services.interpolator.interpolate(o,{lng:e.join("+"),ns:r.join("+")});a.loadUrl(s,i,t,n)}))}},{key:"loadUrl",value:function(e,t,r,n){var i=this;this.options.request(this.options,e,void 0,(function(o,a){if(a&&(a.status>=500&&a.status<600||!a.status))return t("failed loading "+e+"; status code: "+a.status,!0);if(a&&a.status>=400&&a.status<500)return t("failed loading "+e+"; status code: "+a.status,!1);if(!a&&o&&o.message&&o.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e+": "+o.message,!0);if(o)return t(o,!1);var s,c;try{s="string"===typeof a.data?i.options.parse(a.data,r,n):a.data}catch(u){c="failed parsing "+e+" to json"}if(c)return t(c,!1);t(null,s)}))}},{key:"create",value:function(e,t,r,n,i){var o=this;if(this.options.addPath){"string"===typeof e&&(e=[e]);var a=this.options.parsePayload(t,r,n),s=0,c=[],u=[];e.forEach((function(r){var n=o.options.addPath;"function"===typeof o.options.addPath&&(n=o.options.addPath(r,t));var l=o.services.interpolator.interpolate(n,{lng:r,ns:t});o.options.request(o.options,l,a,(function(t,r){s+=1,c.push(t),u.push(r),s===e.length&&i&&i(c,u)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,r=t.backendConnector,n=t.languageUtils,i=t.logger,o=r.language;if(!o||"cimode"!==o.toLowerCase()){var a=[],s=function(e){n.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};s(o),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return s(e)})),a.forEach((function(t){e.allOptions.ns.forEach((function(e){r.read(t,e,"read",null,null,(function(n,o){n&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),n),!n&&o&&i.log("loaded namespace ".concat(e," for language ").concat(t),o),r.loaded("".concat(t,"|").concat(e),n,o)}))}))}))}}}])&&ge(t.prototype,r),n&&ge(t,n),e}();ye.type="backend";var be=ye,ve=r(95397),we=r(37401),xe=r(40849),_e=r(12752),Se=r(96486),Ae=r.n(Se),Ee={last:0};var ke=r(20574),Me=r(11641);var Ce=r(57908),Te=r(68788),Ie=r(29163),Oe=r(94184),Pe=r.n(Oe),Re=r(60954),Be=r(85893);function Ne(e){return e.title?e.title:"error"===e.type?"Error":"warn"===e.type?"Warning":"success"===e.type?"Success":""}var Le=s.memo((0,Ie.ZP)((function(e){var t=e.className,r=(0,s.useContext)(_e.Il).alert,n=(0,a.useRouter)(),i=""===n.pathname||"/"===n.pathname;return(0,Be.jsx)("div",{className:Pe()(t,{isMain:i}),children:r.alerts.map((function(e,t){return(0,Be.jsx)(Be.Fragment,{children:e.modal?(0,Be.jsx)("div",{style:{position:"fixed",top:0,width:"100%",height:"100vh",display:"flex",justifyContent:"center",alignItems:"center",background:"rgba(0,0,0, 0.3)"},children:(0,Be.jsxs)("div",{style:{background:"white",borderRadius:8,overflow:"hidden"},children:[(0,Be.jsxs)("div",{style:{borderBottom:"1px solid #eeeeee",padding:14},children:[(0,Be.jsx)("span",{style:{fontSize:22,color:"#333333"},children:Ne(e)}),(0,Be.jsx)("span",{className:"close cru-fo-x",onClick:function(){return r.close(e)}})]}),(0,Be.jsxs)("div",{style:{padding:14,minWidth:"260px",maxWidth:"400px"},children:[(0,Be.jsx)("div",{style:{fontSize:18,color:"#666666",marginBottom:"1.6rem"},children:e.msg}),(0,Be.jsx)(Re.Z,{fluid:!0,className:"ok",content:"OK",onClick:function(){return r.close(e)}})]})]})}):(0,Be.jsxs)(Te.Z,{className:Pe()("msg","font-sans-regular",{isMain:i}),size:"small",children:[(0,Be.jsx)("span",{className:"cru-fo ".concat((n=e.type,"success"===n?"cru-fo-check-circle":"error"===n?"cru-fo-x-circle":"cru-fo-info-circle")," ").concat(e.type)}),e.title&&(0,Be.jsx)(Te.Z.Header,{children:e.title}),(0,Be.jsx)(Te.Z.Content,{children:e.msg})]},"alert_".concat(t))});var n}))})})).withConfig({displayName:"AlertMessage",componentId:"sc-hvhjpq-0"})(["position:fixed;width:100%;height:0;overflow:visible;z-index:10000;top:2.3rem;display:flex;flex-direction:column;align-items:center;left:0;.msg{flex-shrink:0;display:block;padding:1.14rem 1.7rem;background:#FFFFFF;box-shadow:0 0.57rem 1.14rem 0 rgba(0,0,0,0.1) !important;border-radius:0.86rem !important;border:0.07rem solid #EEEEEE;&.isMain{border:unset;margin-right:3.4rem;.content{}}.content{display:inline-block;color:var(--secend-color) !important;font-size:1.14rem;}}.cru-fo{font-size:1.4rem;float:left;margin-right:0.8rem;display:inline-block;}.success{color:#56CB8F;}.error{color:#F37565;}.warn{color:#cbae56;}.info{color:#3b62d2;}.close{cursor:pointer;float:right;margin-top:5px;vertical-align:baseline;right:1rem;font-size:1rem;color:#666666;&:hover{color:#333333;}}"])),je=r(46702),De=r.n(je),Ue=r(75282);var Fe=(0,Ie.ZP)((function(e){var t=(0,_e.qD)(),r=t.recaptcha,n=t.alert,i=r._onChange,o=r._onExpired,a=r._onLoaded,s=r.loadingScript,c=r.showReCaptcha;return(0,Be.jsx)(Be.Fragment,{children:c&&(0,Be.jsx)("div",{className:e.className,style:{display:"flex",position:"fixed",zIndex:1e5,background:"rgba(0,0,0,0.4)",justifyContent:"center",alignItems:"center",left:0,top:0,width:"100vw",height:"100vh"},children:(0,Be.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",background:"#ffffff",borderRadius:20,width:500,height:300},children:[s&&(0,Be.jsx)(we.Z,{active:!0,inverted:!0,style:{position:"fixed",left:0,top:0,width:"100vw",height:"100vh"},children:(0,Be.jsx)(xe.Z,{size:"large",inverted:!0,content:"Loading"})}),(0,Be.jsx)(De(),{languageOverride:"en",sitekey:Ue.ok,onLoad:a,onVerify:i,onError:function(e){n.error(e)},onExpire:o}),(0,Be.jsx)("div",{style:{height:40}}),(0,Be.jsx)(Re.Z,{content:"Cancel",onClick:function(){i("")}})]})})})})).withConfig({displayName:"ReCaptcha",componentId:"sc-ztbxw8-0"})(["background-color:black;.rc-frame{}"]),He=r(58398),ze="undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:{};function qe(e,t){return e(t={exports:{}},t.exports),t.exports}var Ve=qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+e.className+" ").indexOf(" "+t+" ")},e.exports=t.default})),We=qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.classList?e.classList.add(t):(0,n.default)(e)||(e.className=e.className+" "+t)};var r,n=(r=Ve)&&r.__esModule?r:{default:r};e.exports=t.default})),Ge=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")},Ke=qe((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasClass=t.removeClass=t.addClass=void 0;var r=o(We),n=o(Ge),i=o(Ve);function o(e){return e&&e.__esModule?e:{default:e}}t.addClass=r.default,t.removeClass=n.default,t.hasClass=i.default,t.default={addClass:r.default,removeClass:n.default,hasClass:i.default}})),Ze=Ke.removeClass,Xe=Ke.addClass;var Ye=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Je="object"==typeof ze&&ze&&ze.Object===Object&&ze,Qe="object"==typeof self&&self&&self.Object===Object&&self,$e=Je||Qe||Function("return this")(),et=function(){return $e.Date.now()},tt=$e.Symbol,rt=Object.prototype,nt=rt.hasOwnProperty,it=rt.toString,ot=tt?tt.toStringTag:void 0;var at=function(e){var t=nt.call(e,ot),r=e[ot];try{e[ot]=void 0;var n=!0}catch(o){}var i=it.call(e);return n&&(t?e[ot]=r:delete e[ot]),i},st=Object.prototype.toString;var ct=function(e){return st.call(e)},ut=tt?tt.toStringTag:void 0;var lt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ut&&ut in Object(e)?at(e):ct(e)};var ft=function(e){return null!=e&&"object"==typeof e};var dt=function(e){return"symbol"==typeof e||ft(e)&&"[object Symbol]"==lt(e)},ht=/^\s+|\s+$/g,pt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,mt=/^0o[0-7]+$/i,yt=parseInt;var bt=function(e){if("number"==typeof e)return e;if(dt(e))return NaN;if(Ye(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ye(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ht,"");var r=gt.test(e);return r||mt.test(e)?yt(e.slice(2),r?2:8):pt.test(e)?NaN:+e},vt=Math.max,wt=Math.min;var xt=function(e,t,r){var n,i,o,a,s,c,u=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=n,o=i;return n=i=void 0,u=t,a=e.apply(o,r)}function p(e){return u=e,s=setTimeout(m,t),l?h(e):a}function g(e){var r=e-c;return void 0===c||r>=t||r<0||f&&e-u>=o}function m(){var e=et();if(g(e))return y(e);s=setTimeout(m,function(e){var r=t-(e-c);return f?wt(r,o-(e-u)):r}(e))}function y(e){return s=void 0,d&&n?h(e):(n=i=void 0,a)}function b(){var e=et(),r=g(e);if(n=arguments,i=this,c=e,r){if(void 0===s)return p(c);if(f)return s=setTimeout(m,t),h(c)}return void 0===s&&(s=setTimeout(m,t)),a}return t=bt(t)||0,Ye(r)&&(l=!!r.leading,o=(f="maxWait"in r)?vt(bt(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d),b.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=c=i=s=void 0},b.flush=function(){return void 0===s?a:y(et())},b};var _t=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Ye(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),xt(e,t,{leading:n,maxWait:t,trailing:i})},St=null,At=[],Et=function(){St&&(clearTimeout(St),St=null)},kt=function(e){if(e&&At.push(e),"undefined"===typeof document)Et(),setTimeout((function(){kt()}),100);else{Et();for(var t=0,r=At.length;t-1),this.matchCache[e]},Tt.prototype.feature=function(e){return this.featureCache[e]},Tt.prototype.addFeature=function(e,t){return this.featureCache[e]||(this.featureCache[e]=t),t},Tt.prototype.setUserAgent=function(e){void 0===e&&(e=null),this.userAgent=e||this.userAgent||("undefined"!==typeof document?window.navigator.userAgent:""),this.userAgent&&(Et(),this.matchCache={},this.userAgent=this.userAgent.toLowerCase())},Tt.prototype.onOrientationChange=function(e){},Tt.prototype.getClasses=function(){return this.classes||(this.userAgent||this.setUserAgent(),this.landscape?this.classes+="landscape ":this.classes+="portrait ",this.touch&&(this.classes+="touch "),this.ios?this.ipad?this.classes+="ios ipad tablet ":this.iphone?this.classes+="ios iphone mobile ":this.ipod&&(this.classes+="ios ipod mobile "):this.android?this.androidTablet?this.classes+="android tablet ":this.classes+="android mobile ":this.blackberry?this.blackberryTablet?this.classes+="blackberry tablet ":this.classes+="blackberry mobile ":this.windows?this.windowsTablet?this.classes+="windows tablet ":this.windowsPhone?this.classes+="windows mobile ":this.classes+="windows desktop ":this.fxos?this.fxosTablet?this.classes+="fxos tablet ":this.classes+="fxos mobile ":this.meego?this.classes+="meego mobile ":this.nodeWebkit?this.classes+="node-webkit ":this.television?this.classes+="television ":this.desktop&&(this.classes+="desktop "),this.cordova&&(this.classes+="cordova "),!this.desktop&&this.deviceorientation&&(this.classes+="deviceorientation "),this.classes=this.classes.slice(0,-1)),this.classes},Tt.prototype.addClasses=function(e){if(!this.targetNode){if(this.targetNode=e,e||"undefined"===typeof document||(this.targetNode=document.documentElement),!this.targetNode)return;this.userAgent||this.setUserAgent(),this.commitClasses(),this.addListener()}},Tt.prototype.addListener=function(){var e=this;if(!this.hasListener){this.hasListener=!0,this.handleOrientation=this.handleOrientation.bind(this),this.onResize=_t(this.handleOrientation,200);var t=function(){setTimeout((function(){e.handleOrientation()}),10)};"onorientationchange"in window?window.addEventListener("orientationchange",t,!1):window.addEventListener("resize",this.onResize,!1),t()}},Tt.prototype.handleOrientation=function(){this.onOrientationChange(this.landscape),this.targetNode&&(this.landscape?(Ze(this.targetNode,"portrait"),Xe(this.targetNode,"landscape")):(Ze(this.targetNode,"landscape"),Xe(this.targetNode,"portrait")))},Tt.prototype.commitClasses=function(){!this.state.addedClasses&&this.targetNode&&(this.state.addedClasses=!0,this.targetNode.className+=this.getClasses())},It.features.get=function(){return{wheelEvent:this.feature("wheelEvent")||this.addFeature("wheelEvent","onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll")}},It.deviceorientation.get=function(){return this.canOrientate||(this.canOrientate="ondeviceorientation"in window||"deviceorientation"in window),!this.desktop&&this.canOrientate},It.ie9.get=function(){return this.matchCache.ie9||"undefined"!==typeof document&&(this.matchCache.ie9=this.windows&&Mt(10)),this.matchCache.ie9||!1},It.touchDevice.get=function(){return this.matchCache.touchDevice||"undefined"!==typeof document&&(this.matchCache.touchDevice=!(!navigator||!navigator.userAgent)&&navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/)),this.matchCache.touchDevice||!1},It.touch.get=function(){return this.matchCache.touch||"undefined"!==typeof document&&(this.matchCache.touch="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||navigator&&navigator.msMaxTouchPoints>0||navigator&&navigator.maxTouchPoints),this.matchCache.touch||!1},It.ios.get=function(){return this.iphone||this.ipod||this.ipad},It.iphone.get=function(){return!this.windows&&this.match("iphone")},It.ipod.get=function(){return this.match("ipod")},It.ipad.get=function(){return this.match("ipad")},It.android.get=function(){return!this.windows&&this.match("android")},It.androidPhone.get=function(){return this.android&&this.match("mobile")},It.androidTablet.get=function(){return this.android&&!this.match("mobile")},It.blackberry.get=function(){return this.match("blackberry")||this.match("bb10")||this.match("rim")},It.blackberryPhone.get=function(){return this.blackberry&&!this.match("tablet")},It.blackberryTablet.get=function(){return this.blackberry&&this.match("tablet")},It.windows.get=function(){return this.match("windows")},It.ie10.get=function(){return this.matchCache.ie10||"undefined"!==typeof document&&(this.matchCache.ie10=this.windows&&Mt(10)),this.matchCache.ie10||!1},It.windowsPhone.get=function(){return this.windows&&this.match("phone")},It.windowsTablet.get=function(){return this.windows&&this.match("touch")&&!this.windowsPhone},It.fxos.get=function(){return(this.match("(mobile;")||this.match("(tablet;"))&&this.match("; rv:")},It.fxosPhone.get=function(){return this.fxos&&this.match("mobile")},It.fxosTablet.get=function(){return this.fxos&&this.match("tablet")},It.meego.get=function(){return this.match("meego")},It.cordova.get=function(){return window.cordova&&"file:"===location.protocol},It.nodeWebkit.get=function(){return"object"===typeof window.process},It.mobile.get=function(){return this.androidPhone||this.iphone||this.ipod||this.windowsPhone||this.blackberryPhone||this.fxosPhone||this.meego},It.tablet.get=function(){return this.ipad||this.androidTablet||this.blackberryTablet||this.windowsTablet||this.fxosTablet},It.desktop.get=function(){return!this.tablet&&!this.mobile},It.television.get=function(){var e,t=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","roku","pov_tv","hbbtv","ce-html"];for(e=0;e++1},It.landscape.get=function(){return"undefined"!==typeof window&&("orientation"in window?0!==window.orientation:window.innerHeight/window.innerWidth<1)},Object.defineProperties(Tt.prototype,It),Object.defineProperties(Tt,Ot);new Tt;var Pt=Tt;function Rt(e){return(0,Be.jsxs)(Be.Fragment,{children:[e.children,(0,Be.jsx)(we.Z,{active:!0,inverted:!0,style:{position:"fixed",left:0,top:0,width:"100vw",height:"100vh"},children:(0,Be.jsx)(xe.Z,{active:!0,inverted:!0,size:"large"})})]})}var Bt=["/files/share","/files/receive"];function Nt(e){var t=(0,Ce.WY)(),r=(0,a.useRouter)();return(0,s.useEffect)((function(){var e=(new Pt).mobile;"/mobile"!==r.pathname&&e?r.replace("/mobile"):"/mobile"!==r.pathname||e||r.replace("/")}),[r]),"/mobile"===r.pathname||Bt.includes(r.pathname)?e.children:t.account&&t.authBasic||""===r.pathname||"/"===r.pathname?t.account&&t.authBasic&&(""===r.pathname||"/"===r.pathname)?(r.replace("/home/".concat(window.location.search)),(0,Be.jsx)(Rt,{children:e.children})):e.children:(r.replace("/"),(0,Be.jsx)(Rt,{children:e.children}))}var Lt=r(45129);function jt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"Loading"),r((function(){return!0}))}),[]),c=(0,s.useCallback)((function(){r((function(){return!1}))}),[]);return(0,s.useMemo)((function(){return{isLoading:t,show:a,hide:c,msg:i}}),[t,a,c,i])}(),i=(0,Me.Zn)(),o=function(){var e=(0,s.useState)(!0),t=e[0],r=e[1],n=(0,s.useState)(),i=n[0],o=n[1],a=(0,s.useState)(!1),c=a[0],u=a[1],l=(0,s.useState)({}),f=l[0],d=l[1];return{loadingScript:t,token:i,showReCaptcha:c,getToken:function(){return new Promise((function(e){d({call:e}),u(!0)}))},_onLoaded:function(){r(!1)},_onChange:function(e){o(e),f.call&&f.call(e),u(!1)},_onExpired:function(){o(void 0)}}}();!function(){var e=(0,Ce.WY)(),t=e.account,r=e.wallet;(0,s.useEffect)((function(){t&&"crust"===r&&(e.setIsLoadingNickname(!0),(0,Lt.fb)(t).then(e.setMember).catch(console.error).then((function(){return(0,Lt.fV)(t)})).then((function(t){return e.setNickName(t)})).catch(console.error).then((function(){return e.setIsLoadingNickname(!1)}))),e.setMember(void 0),e.setNickName("")}),[t,r])}();var a=(0,s.useMemo)((function(){return{alert:t,api:r,loading:n,store:i,recaptcha:o}}),[t,r,n,i,o]);return(0,Be.jsx)(_e.wI,{value:a,children:e.children})}function Ft(e){var t=(0,_e.qD)().loading,r=e.show||t.isLoading,n=e.show?e.msg||"Loading":t.msg;return(0,Be.jsx)(we.Z,{active:r,inverted:!0,style:{position:"fixed",left:0,top:0,width:"100vw",height:"100vh"},children:(0,Be.jsx)(xe.Z,{size:"large",inverted:!0,content:n})})}function Ht(e){var t=e.Component,r=e.pageProps;return(0,Be.jsxs)(Ut,{children:[(0,Be.jsx)(o.default,{children:(0,Be.jsx)("title",{children:He.y7})}),(0,Be.jsxs)(He.ZP,{children:[(0,Be.jsx)(t,Dt({},r)),(0,Be.jsx)(Ft,{})]}),(0,Be.jsx)(Le,{})]})}function zt(e){var t=e.Component,r=e.pageProps,n=(0,Ce.xX)(),i=!n.isLoad;return(0,Be.jsx)(Ce.it.Provider,{value:n,children:(0,Be.jsxs)(Ut,{children:[(0,Be.jsx)(o.default,{children:(0,Be.jsx)("title",{children:He.y7})}),(0,Be.jsxs)(He.ZP,{children:[i&&(0,Be.jsx)(Nt,{children:(0,Be.jsx)(t,Dt({},r))}),(0,Be.jsx)(Ft,{show:n.isLoad}),(0,Be.jsx)(Fe,{})]}),(0,Be.jsx)(Le,{})]})})}var qt=["/share","/invite_bonus_guide","/rewards_history"];function Vt(e){var t=(0,a.useRouter)().pathname,r=(0,s.useMemo)((function(){return qt.includes(t)}),[t]);return function(){var e=(0,s.useState)(!1),t=e[0],r=e[1];return(0,s.useEffect)((function(){$.use(new be).use(ve.Db).init({backend:{loadPath:"/locales/{{lng}}.json"},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}},(function(){r(!0)}))}),[]),t}()?r?(0,Be.jsx)(Ht,Dt({},e)):(0,Be.jsx)(zt,Dt({},e)):(0,Be.jsx)("div",{})}var Wt=r(80552);function Gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kt(e){for(var t=1;to[a]^r?1:-1;return c==u?0:u(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else tU?g.c=g.e=null:e.eU)g.c=g.e=null;else if(sr-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}function K(e,t,r){var n,i,o,a,s=0,c=e.length,u=t%h,l=t/h|0;for(e=e.slice();c--;)s=((i=u*(o=e[c]%h)+(n=l*o+(a=e[c]/h|0)*u)%h*h+s)/r|0)+(n/h|0)+l*a,e[c]=i%r;return s&&(e=[s].concat(e)),e}function Z(e,t,r,n){var i,o;if(r!=n)o=nt[i]?1:-1;break}return o}function X(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]U?e.c=e.e=null:r=m.length){if(!n)break e;for(;m.length<=p;m.push(0));h=g=0,c=(s%=l)-l+(i=1)}else{for(h=f=m[p],i=1;10<=f;f/=10,i++);g=(c=(s%=l)-l+i)<0?0:h/y[i-c-1]%10|0}if(n=n||t<0||null!=m[p+1]||(c<0?h:h%y[i-c-1]),n=r<4?(g||n)&&(0==r||r==(e.s<0?3:2)):5U?e.c=e.e=null:e.e>>11))?(r=crypto.getRandomValues(new Uint32Array(2)),t[u]=r[0],t[u+1]=r[1]):(f.push(c%1e14),u+=2);u=i/2}else{if(!crypto.randomBytes)throw F=!1,Error(s+"crypto unavailable");for(t=crypto.randomBytes(i*=7);un;)d[s]=0,s||(++c,d=[1].concat(d));for(u=d.length;!d[--u];);for(p=0,e="";p<=u;e+=a.charAt(d[p++]));e=x(e,c,a.charAt(0))}return e},r=function(e,t,r,n,i){var o,s,c,f,d,h,p,m,y,b,v,w,x,_,S,A,E,k=e.s==t.s?1:-1,M=e.c,C=t.c;if(!(M&&M[0]&&C&&C[0]))return new W(e.s&&t.s&&(M?!C||M[0]!=C[0]:C)?M&&0==M[0]||!C?0*k:k/0:NaN);for(y=(m=new W(k)).c=[],k=r+(s=e.e-t.e)+1,i||(i=u,s=g(e.e/l)-g(t.e/l),k=k/l|0),c=0;C[c]==(M[c]||0);c++);if(C[c]>(M[c]||0)&&s--,k<0)y.push(1),f=!0;else{for(_=M.length,A=C.length,k+=2,1<(d=a(i/(C[c=0]+1)))&&(C=K(C,d,i),M=K(M,d,i),A=C.length,_=M.length),x=A,v=(b=M.slice(0,A)).length;v=i/2&&S++;do{if(d=0,(o=Z(C,b,A,v))<0){if(w=b[0],A!=v&&(w=w*i+(b[1]||0)),1<(d=a(w/S)))for(i<=d&&(d=i-1),p=(h=K(C,d,i)).length,v=b.length;1==Z(h,b,p,v);)d--,X(h,Ac&&(h.c.length=c):n&&(h=h.mod(t))}if(i){if(0===(i=a(i/2)))break;d=i%2}else if($(e=e.times(r),e.e+1,1),14c&&(p.c.length=c):n&&(p=p.mod(t))}return n?h:(f&&(h=R.div(h)),t?h.mod(t):c?$(h,z,N,void 0):h)},P.integerValue=function(e){var t=new W(this);return null==e?e=N:b(e,0,8),$(t,t.e+1,e)},P.isEqualTo=P.eq=function(e,t){return 0===y(this,new W(e,t))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(e,t){return 0this.c.length-2},P.isLessThan=P.lt=function(e,t){return y(this,new W(e,t))<0},P.isLessThanOrEqualTo=P.lte=function(e,t){return-1===(t=y(this,new W(e,t)))||0===t},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return 0n&&(n=this.e+1),n},P.shiftedBy=function(e){return b(e,-f,f),this.times("1e"+e)},P.squareRoot=P.sqrt=function(){var e,t,n,i,o,a=this,s=a.c,c=a.s,u=a.e,l=B+4,f=new W("0.5");if(1!==c||!s||!s[0])return new W(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);if((n=0==(c=Math.sqrt(+ee(a)))||c==1/0?(((t=m(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=g((u+1)/2)-(u<0||u%2),new W(t=c==1/0?"1e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):new W(c+"")).c[0])for((c=(u=n.e)+l)<3&&(c=0);;)if(o=n,n=f.times(o.plus(r(a,o,l,1))),m(o.c).slice(0,c)===(t=m(n.c)).slice(0,c)){if(n.e=c.trillion||i&&1===d(p/c.trillion)?(h=o.trillion,t/=c.trillion):p=c.billion||i&&1===d(p/c.billion)?(h=o.billion,t/=c.billion):p=c.million||i&&1===d(p/c.million)?(h=o.million,t/=c.million):(p=c.thousand||i&&1===d(p/c.thousand))&&(h=o.thousand,t/=c.thousand),h=h&&(s?" ":"")+h,l){var m=t<0,y=t.toString().split(".")[0],b=m?y.length-1:y.length;g=Math.max(l-b,0)}return{value:t,abbreviation:h,mantissaPrecision:g}}({value:d,forceAverage:M,lowPrecision:C,abbreviations:a.currentAbbreviations(),spaceSeparated:B,roundingFunction:D,totalLength:A});d=F.value,U+=F.abbreviation,A&&(I=F.mantissaPrecision)}if(j){var H=(p=(h={value:d,characteristicPrecision:E}).value,m=void 0===(g=h.characteristicPrecision)?0:g,w=(v=n(p.toExponential().split("e"),2))[0],x=v[1],_=+w,m&&10))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return N(t,s);if("number"===typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"===typeof t)return String(t)+"n";var g="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof n&&(n=0),n>=g&&g>0&&"object"===typeof t)return T(t)?"[Array]":"[Object]";var v=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(s,n);if("undefined"===typeof i)i=[];else if(B(i,t)>=0)return"[Circular]";function _(t,r,o){if(r&&(i=i.slice()).push(r),o){var a={depth:s.depth};return P(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,n+1,i)}return e(t,s,n+1,i)}if("function"===typeof t){var A=function(e){if(e.name)return e.name;var t=y.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),O=H(t,_);return"[Function"+(A?": "+A:" (anonymous)")+"]"+(O.length>0?" { "+O.join(", ")+" }":"")}if(I(t)){var L=x?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):w.call(t);return"object"!==typeof t||x?L:j(L)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var z="<"+String(t.nodeName).toLowerCase(),q=t.attributes||[],V=0;V"}if(T(t)){if(0===t.length)return"[]";var W=H(t,_);return v&&!function(e){for(var t=0;t=0)return!1;return!0}(W)?"["+F(W,v)+"]":"[ "+W.join(", ")+" ]"}if(function(e){return"[object Error]"===R(e)&&(!k||!("object"===typeof e&&k in e))}(t)){var G=H(t,_);return 0===G.length?"["+String(t)+"]":"{ ["+String(t)+"] "+G.join(", ")+" }"}if("object"===typeof t&&c){if(E&&"function"===typeof t[E])return t[E]();if("symbol"!==c&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{u.call(e)}catch(z){return!0}return e instanceof Map}catch(t){}return!1}(t)){var K=[];return a.call(t,(function(e,r){K.push(_(r,t,!0)+" => "+_(e,t))})),U("Map",o.call(t),K,v)}if(function(e){if(!u||!e||"object"!==typeof e)return!1;try{u.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var Z=[];return l.call(t,(function(e){Z.push(_(e,t))})),U("Set",u.call(t),Z,v)}if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(z){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return D("WeakMap");if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(z){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return D("WeakSet");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{return h.call(e),!0}catch(t){}return!1}(t))return D("WeakRef");if(function(e){return"[object Number]"===R(e)&&(!k||!("object"===typeof e&&k in e))}(t))return j(_(Number(t)));if(function(e){if(!e||"object"!==typeof e||!b)return!1;try{return b.call(e),!0}catch(t){}return!1}(t))return j(_(b.call(t)));if(function(e){return"[object Boolean]"===R(e)&&(!k||!("object"===typeof e&&k in e))}(t))return j(p.call(t));if(function(e){return"[object String]"===R(e)&&(!k||!("object"===typeof e&&k in e))}(t))return j(_(String(t)));if(!function(e){return"[object Date]"===R(e)&&(!k||!("object"===typeof e&&k in e))}(t)&&!function(e){return"[object RegExp]"===R(e)&&(!k||!("object"===typeof e&&k in e))}(t)){var X=H(t,_),Y=S?S(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",Q=!Y&&k&&Object(t)===t&&k in t?R(t).slice(8,-1):J?"Object":"",$=(Y||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(Q||J?"["+[].concat(Q||[],J||[]).join(": ")+"] ":"");return 0===X.length?$+"{}":v?$+"{"+F(X,v)+"}":$+"{ "+X.join(", ")+" }"}return String(t)};var O=Object.prototype.hasOwnProperty||function(e){return e in this};function P(e,t){return O.call(e,t)}function R(e){return g.call(e)}function B(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return N(e.slice(0,t.maxStringLength),t)+n}return M(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,L),"single",t)}function L(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function j(e){return"Object("+e+")"}function D(e){return e+" { ? }"}function U(e,t,r,n){return e+" ("+t+") {"+(n?F(r,n):r.join(", "))+"}"}function F(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function H(e,t){var r=T(e),n=[];if(r){n.length=e.length;for(var i=0;i0&&!i.call(e,0))for(var g=0;g0)for(var m=0;m=0&&"[object Function]"===t.call(e.callee)),n}},30778:function(e,t,r){var n=r(52479);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=n(i),e.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},52818:function(e,t,r){"use strict";var n=r(39809);t.certificate=r(41934);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=a;var s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),c=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var u=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=u;var l=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=l,t.DSAparam=n.define("DSAparam",(function(){this.int()}));var f=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=f;var d=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},41934:function(e,t,r){"use strict";var n=r(39809),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),c=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),u=n.define("RDNSequence",(function(){this.seqof(c)})),l=n.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),f=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));e.exports=p},77631:function(e,t,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(13048),s=r(44696),c=r(89509).Buffer;e.exports=function(e,t){var r,u=e.toString(),l=u.match(n);if(l){var f="aes"+l[1],d=c.from(l[2],"hex"),h=c.from(l[3].replace(/[\r\n]/g,""),"base64"),p=a(t,d.slice(0,8),parseInt(l[1],10)).key,g=[],m=s.createDecipheriv(f,p,d);g.push(m.update(h)),g.push(m.final()),r=c.concat(g)}else{var y=u.match(o);r=c.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(i)[1],data:r}}},70980:function(e,t,r){var n=r(52818),i=r(22562),o=r(77631),a=r(44696),s=r(25632),c=r(89509).Buffer;function u(e){var t;"object"!==typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"===typeof e&&(e=c.from(e));var r,u,l=o(e,t),f=l.tag,d=l.data;switch(f){case"CERTIFICATE":u=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=n.PublicKey.decode(d,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=n.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,f=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,f,"sha1"),h=a.createDecipheriv(o,d,u),p=[];return p.push(h.update(l)),p.push(h.final()),c.concat(p)}(d=n.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(u=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:n.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=n.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+f)}}e.exports=u,u.signature=n.signature},26470:function(e,t,r){"use strict";var n=r(34155);function i(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var a={resolve:function(){for(var e,t="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var s;a>=0?s=arguments[a]:(void 0===e&&(e=n.cwd()),s=e),i(s),0!==s.length&&(t=s+"/"+t,r=47===s.charCodeAt(0))}return t=o(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=a.resolve(e))===(t=a.resolve(t)))return"";for(var r=1;ru){if(47===t.charCodeAt(s+f))return t.slice(s+f+1);if(0===f)return t.slice(s+f)}else o>u&&(47===e.charCodeAt(r+f)?l=f:0===f&&(l=0));break}var d=e.charCodeAt(r+f);if(d!==t.charCodeAt(s+f))break;47===d&&(l=f)}var h="";for(f=r+l+1;f<=n;++f)f!==n&&47!==e.charCodeAt(f)||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(s+l):(s+=l,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!o){n=a;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');i(e);var r,n=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,c=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){n=r+1;break}}else-1===c&&(a=!1,c=r+1),s>=0&&(u===t.charCodeAt(s)?-1===--s&&(o=r):(s=-1,o=c))}return n===o?o=c:-1===o&&(o=e.length),e.slice(n,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(n,o)},extname:function(e){i(e);for(var t=-1,r=0,n=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===n&&(o=!1,n=s+1),46===c?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){r=s+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}("/",e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),o=47===n;o?(t.root="/",r=1):r=0;for(var a=-1,s=0,c=-1,u=!0,l=e.length-1,f=0;l>=r;--l)if(47!==(n=e.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===n?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!u){s=l+1;break}return-1===a||-1===c||0===f||1===f&&a===c-1&&a===s+1?-1!==c&&(t.base=t.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(s,a),t.base=e.slice(s,c)),t.ext=e.slice(a,c)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},25632:function(e,t,r){t.pbkdf2=r(88638),t.pbkdf2Sync=r(91257)},88638:function(e,t,r){var n,i,o=r(89509).Buffer,a=r(77357),s=r(12368),c=r(91257),u=r(57777),l=r.g.crypto&&r.g.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(){return i||(i=r.g.process&&r.g.process.nextTick?r.g.process.nextTick:r.g.queueMicrotask?r.g.queueMicrotask:r.g.setImmediate?r.g.setImmediate:r.g.setTimeout)}function p(e,t,r,n,i){return l.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return l.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return o.from(e)}))}e.exports=function(e,t,i,g,m,y){"function"===typeof m&&(y=m,m=void 0);var b=f[(m=m||"sha1").toLowerCase()];if(b&&"function"===typeof r.g.Promise){if(a(i,g),e=u(e,s,"Password"),t=u(t,s,"Salt"),"function"!==typeof y)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){h()((function(){t(null,e)}))}),(function(e){h()((function(){t(e)}))}))}(function(e){if(r.g.process&&!r.g.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var t=p(n=n||o.alloc(8),n,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=t,t}(b).then((function(r){return r?p(e,t,i,g,b):c(e,t,i,g,m)})),y)}else h()((function(){var r;try{r=c(e,t,i,g,m)}catch(n){return y(n)}y(null,r)}))}},12368:function(e,t,r){var n,i=r(34155);if(r.g.process&&r.g.process.browser)n="utf-8";else if(r.g.process&&r.g.process.version){n=parseInt(i.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";e.exports=n},77357:function(e){var t=Math.pow(2,30)-1;e.exports=function(e,r){if("number"!==typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!==typeof r)throw new TypeError("Key length not a number");if(r<0||r>t||r!==r)throw new TypeError("Bad key length")}},91257:function(e,t,r){var n=r(78028),i=r(79785),o=r(89072),a=r(89509).Buffer,s=r(77357),c=r(12368),u=r(57777),l=a.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,r){var s=function(e){function t(t){return o(e).update(t).digest()}function r(e){return(new i).update(e).digest()}return"rmd160"===e||"ripemd160"===e?r:"md5"===e?n:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=s(t):t.length-1&&n<=u)for(;++r3?"WebKit":/\bOpera\b/.test(L)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(N)&&"WebKit"||!N&&/\bMSIE\b/i.test(t)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==N&&/\bPlayStation\b(?! Vita\b)/i.test(L)&&"NetFront")&&(N=[s]),"IE"==L&&(s=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(L+=" Mobile",U="Windows Phone "+(/\+$/.test(s)?s:s+".x"),O.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(L="IE Mobile",U="Windows Phone 8.x",O.unshift("desktop mode"),B||(B=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=L&&"Trident"==N&&(s=/\brv:([\d.]+)/.exec(t))&&(L&&O.push("identifying as "+L+(B?" "+B:"")),L="IE",B=s[1]),R){if(function(e,t){var r=null!=e?typeof e[t]:"number";return!/^(?:boolean|number|string|undefined)$/.test(r)&&("object"!=r||!!e[t])}(r,"global"))if(S&&(I=(s=S.lang.System).getProperty("os.arch"),U=U||s.getProperty("os.name")+" "+s.getProperty("os.version")),A){try{B=r.require("ringo/engine").version.join("."),L="RingoJS"}catch(q){(s=r.system)&&s.global.system==r.system&&(L="Narwhal",U||(U=s[0].os||null))}L||(L="Rhino")}else"object"==typeof r.process&&!r.process.browser&&(s=r.process)&&("object"==typeof s.versions&&("string"==typeof s.versions.electron?(O.push("Node "+s.versions.node),L="Electron",B=s.versions.electron):"string"==typeof s.versions.nw&&(O.push("Chromium "+B,"Node "+s.versions.node),L="NW.js",B=s.versions.nw)),L||(L="Node.js",I=s.arch,U=s.platform,B=(B=/[\d.]+/.exec(s.version))?B[0]:null));else y(s=r.runtime)==d?(L="Adobe AIR",U=s.flash.system.Capabilities.os):y(s=r.phantom)==_?(L="PhantomJS",B=(s=s.version||null)&&s.major+"."+s.minor+"."+s.patch):"number"==typeof M.documentMode&&(s=/\bTrident\/(\d+)/i.exec(t))?(B=[B,M.documentMode],(s=+s[1]+4)!=B[1]&&(O.push("IE "+B[1]+" mode"),N&&(N[1]=""),B[1]=s),B="IE"==L?String(B[1].toFixed(1)):B[0]):"number"==typeof M.documentMode&&/^(?:Chrome|Firefox)\b/.test(L)&&(O.push("masking as "+L+" "+B),L="IE",B="11.0",N=["Trident"],U="Windows");U=U&&g(U)}if(B&&(s=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(B)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(R&&i.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(P=/b/i.test(s)?"beta":"alpha",B=B.replace(RegExp(s+"\\+?$"),"")+("beta"==P?k:E)+(/\d+\+?/.exec(s)||"")),"Fennec"==L||"Firefox"==L&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))L="Firefox Mobile";else if("Maxthon"==L&&B)B=B.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(j))"Xbox 360"==j&&(U=null),"Xbox 360"==j&&/\bIEMobile\b/.test(t)&&O.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(L)&&(!L||j||/Browser|Mobi/.test(L))||"Windows CE"!=U&&!/Mobi/i.test(t))if("IE"==L&&R)try{null===r.external&&O.unshift("platform preview")}catch(q){O.unshift("embedded")}else(/\bBlackBerry\b/.test(j)||/\bBB10\b/.test(t))&&(s=(RegExp(j.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||B)?(U=((s=[s,/BB10/.test(t)])[1]?(j=null,D="BlackBerry"):"Device Software")+" "+s[0],B=null):this!=m&&"Wii"!=j&&(R&&C||/Opera/.test(L)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==L&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==L&&(U&&!/^Win/.test(U)&&B>5.5||/\bWindows XP\b/.test(U)&&B>8||8==B&&!/\bTrident\b/.test(t)))&&!l.test(s=e.call(m,t.replace(l,"")+";"))&&s.name&&(s="ing as "+s.name+((s=s.version)?" "+s:""),l.test(L)?(/\bIE\b/.test(s)&&"Mac OS"==U&&(U=null),s="identify"+s):(s="mask"+s,L=T?g(T.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(s)&&(U=null),R||(B=null)),N=["Presto"],O.push(s));else L+=" Mobile";(s=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(s=[parseFloat(s.replace(/\.(\d)$/,".0$1")),s],"Safari"==L&&"+"==s[1].slice(-1)?(L="WebKit Nightly",P="alpha",B=s[1].slice(0,-1)):B!=s[1]&&B!=(s[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(B=null),s[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(t)||0)[1],537.36==s[0]&&537.36==s[2]&&parseFloat(s[1])>=28&&"WebKit"==N&&(N=["Blink"]),R&&(u||s[1])?(N&&(N[1]="like Chrome"),s=s[1]||((s=s[0])<530?1:s<532?2:s<532.05?3:s<533?4:s<534.03?5:s<534.07?6:s<534.1?7:s<534.13?8:s<534.16?9:s<534.24?10:s<534.3?11:s<535.01?12:s<535.02?"13+":s<535.07?15:s<535.11?16:s<535.19?17:s<536.05?18:s<536.1?19:s<537.01?20:s<537.11?"21+":s<537.13?23:s<537.18?24:s<537.24?25:s<537.36?26:"Blink"!=N?"27":"28")):(N&&(N[1]="like Safari"),s=(s=s[0])<400?1:s<500?2:s<526?3:s<533?4:s<534?"4+":s<535?5:s<537?6:s<538?7:s<601?8:s<602?9:s<604?10:s<606?11:s<608?12:"12"),N&&(N[1]+=" "+(s+="number"==typeof s?".x":/[.+]/.test(s)?"":"+")),"Safari"==L&&(!B||parseInt(B)>45)?B=s:"Chrome"==L&&/\bHeadlessChrome/i.test(t)&&O.unshift("headless")),"Opera"==L&&(s=/\bzbov|zvav$/.exec(U))?(L+=" ",O.unshift("desktop mode"),"zvav"==s?(L+="Mini",B=null):L+="Mobile",U=U.replace(RegExp(" *"+s+"$"),"")):"Safari"==L&&/\bChrome\b/.exec(N&&N[1])?(O.unshift("desktop mode"),L="Chrome Mobile",B=null,/\bOS X\b/.test(U)?(D="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(L)&&!B&&(B=H("Chrome")),B&&0==B.indexOf(s=/[\d.]+$/.exec(U))&&t.indexOf("/"+s+"-")>-1&&(U=w(U.replace(s,""))),U&&-1!=U.indexOf(L)&&!RegExp(L+" OS").test(U)&&(U=U.replace(RegExp(" *"+b(L)+" *"),"")),N&&!/\b(?:Avant|Nook)\b/.test(L)&&(/Browser|Lunascape|Maxthon/.test(L)||"Safari"!=L&&/^iOS/.test(U)&&/\bSafari\b/.test(N[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(L)&&N[1])&&(s=N[N.length-1])&&O.push(s),O.length&&(O=["("+O.join("; ")+")"]),D&&j&&j.indexOf(D)<0&&O.push("on "+D),j&&O.push((/^on /.test(O[O.length-1])?"":"on ")+j),U&&(s=/ ([\d.+]+)$/.exec(U),c=s&&"/"==U.charAt(U.length-s[0].length-1),U={architecture:32,family:s&&!c?U.replace(s[0],""):U,version:s?s[1]:null,toString:function(){var e=this.version;return this.family+(e&&!c?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(s=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(I))&&!/\bi686\b/i.test(I)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+s),"")),L&&(/\bWOW64\b/i.test(t)||R&&/\w(?:86|32)$/.test(i.cpuClass||i.platform)&&!/\bWin64; x64\b/i.test(t))&&O.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==L&&parseFloat(B)>=39&&(U.architecture=64),t||(t=null);var z={};return z.description=t,z.layout=N&&N[0],z.manufacturer=D,z.name=L,z.prerelease=P,z.product=j,z.ua=t,z.version=L&&B,z.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},z.parse=e,z.toString=function(){return this.description||""},z.version&&O.unshift(B),z.name&&O.unshift(L),U&&L&&(U!=String(U).split(" ")[0]||U!=L.split(" ")[0]&&!j)&&O.push(j?"("+U+")":"on "+U),O.length&&(z.description=O.join(" ")),z}();o.platform=x,void 0===(n=function(){return x}.call(t,r,t,e))||(e.exports=n)}.call(this)},35776:function(e,t,r){"use strict";r.r(t),r.d(t,{Children:function(){return be},Component:function(){return v},Fragment:function(){return b},PureComponent:function(){return he},Suspense:function(){return xe},SuspenseList:function(){return Ae},cloneElement:function(){return Fe},createContext:function(){return D},createElement:function(){return g},createFactory:function(){return De},createPortal:function(){return Ce},createRef:function(){return y},default:function(){return Ve},findDOMNode:function(){return ze},forwardRef:function(){return me},hydrate:function(){return Pe},isValidElement:function(){return Ue},lazy:function(){return Se},memo:function(){return pe},render:function(){return Oe},unmountComponentAtNode:function(){return He},unstable_batchedUpdates:function(){return qe},useCallback:function(){return re},useContext:function(){return ne},useDebugValue:function(){return ie},useEffect:function(){return J},useErrorBoundary:function(){return oe},useImperativeHandle:function(){return ee},useLayoutEffect:function(){return Q},useMemo:function(){return te},useReducer:function(){return Y},useRef:function(){return $},useState:function(){return X},version:function(){return je}});var n,i,o,a,s,c,u,l={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function h(e,t){for(var r in t)e[r]=t[r];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var n,i=arguments,o={};for(n in t)"key"!==n&&"ref"!==n&&(o[n]=t[n]);if(arguments.length>3)for(r=[r],n=3;n2&&(t.children=f.slice.call(arguments,2)),r={},t)"key"!==n&&"ref"!==n&&(r[n]=t[n]);return m(e.type,r,t.key||e.key,t.ref||e.ref,null)}function D(e){var t={},r={__c:"__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i=this;return this.getChildContext||(n=[],this.getChildContext=function(){return t[r.__c]=i,t},this.shouldComponentUpdate=function(e){i.props.value!==e.value&&n.some((function(t){t.context=e.value,_(t)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Consumer.contextType=r,r.Provider.__=r,r}n={__e:function(e,t){for(var r,n;t=t.__;)if((r=t.__c)&&!r.__)try{if(r.constructor&&null!=r.constructor.getDerivedStateFromError&&(n=!0,r.setState(r.constructor.getDerivedStateFromError(e))),null!=r.componentDidCatch&&(n=!0,r.componentDidCatch(e)),n)return _(r.__E=r)}catch(t){e=t}throw e}},v.prototype.setState=function(e,t){var r;r=this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(r,this.props)),e&&h(r,e),null!=e&&this.__v&&(t&&this.__h.push(t),_(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},v.prototype.render=b,i=[],o=0,a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=l,u=0;var U,F,H,z=0,q=[],V=n.__r,W=n.diffed,G=n.__c,K=n.unmount;function Z(e,t){n.__h&&n.__h(F,e,z||t),z=0;var r=F.__H||(F.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function X(e){return z=1,Y(le,e)}function Y(e,t,r){var n=Z(U++,2);return n.__c||(n.__c=F,n.__=[r?r(t):le(void 0,t),function(t){var r=e(n.__[0],t);n.__[0]!==r&&(n.__[0]=r,n.__c.setState({}))}]),n.__}function J(e,t){var r=Z(U++,3);!n.__s&&ue(r.__H,t)&&(r.__=e,r.__H=t,F.__H.__h.push(r))}function Q(e,t){var r=Z(U++,4);!n.__s&&ue(r.__H,t)&&(r.__=e,r.__H=t,F.__h.push(r))}function $(e){return z=5,te((function(){return{current:e}}),[])}function ee(e,t,r){z=6,Q((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==r?r:r.concat(e))}function te(e,t){var r=Z(U++,7);return ue(r.__H,t)?(r.__H=t,r.__h=e,r.__=e()):r.__}function re(e,t){return z=8,te((function(){return e}),t)}function ne(e){var t=F.context[e.__c],r=Z(U++,9);return r.__c=e,t?(null==r.__&&(r.__=!0,t.sub(F)),t.props.value):e.__}function ie(e,t){n.useDebugValue&&n.useDebugValue(t?t(e):e)}function oe(e){var t=Z(U++,10),r=X();return t.__=e,F.componentDidCatch||(F.componentDidCatch=function(e){t.__&&t.__(e),r[1](e)}),[r[0],function(){r[1](void 0)}]}function ae(){q.some((function(e){if(e.__P)try{e.__H.__h.forEach(se),e.__H.__h.forEach(ce),e.__H.__h=[]}catch(i){return e.__H.__h=[],n.__e(i,e.__v),!0}})),q=[]}function se(e){e.t&&e.t()}function ce(e){var t=e.__();"function"==typeof t&&(e.t=t)}function ue(e,t){return!e||t.some((function(t,r){return t!==e[r]}))}function le(e,t){return"function"==typeof t?t(e):t}function fe(e,t){for(var r in t)e[r]=t[r];return e}function de(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}n.__r=function(e){V&&V(e),U=0,(F=e.__c).__H&&(F.__H.__h.forEach(se),F.__H.__h.forEach(ce),F.__H.__h=[])},n.diffed=function(e){W&&W(e);var t=e.__c;if(t){var r=t.__H;r&&r.__h.length&&(1!==q.push(t)&&H===n.requestAnimationFrame||((H=n.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);"undefined"!=typeof window&&(t=requestAnimationFrame(r))})(ae))}},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(se),e.__h=e.__h.filter((function(e){return!e.__||ce(e)}))}catch(s){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(s,e.__v)}})),G&&G(e,t)},n.unmount=function(e){K&&K(e);var t=e.__c;if(t){var r=t.__H;if(r)try{r.__.forEach((function(e){return e.t&&e.t()}))}catch(e){n.__e(e,t.__v)}}};var he=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).isPureReactComponent=!0,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.shouldComponentUpdate=function(e,t){return de(this.props,e)||de(this.state,t)},n}(v);function pe(e,t){function r(e){var r=this.props.ref,n=r==e.ref;return!n&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!n:de(this.props,e)}function n(t){return this.shouldComponentUpdate=r,g(e,fe({},t))}return n.prototype.isReactComponent=!0,n.displayName="Memo("+(e.displayName||e.name)+")",n.t=!0,n}var ge=n.__b;function me(e){function t(t){var r=fe({},t);return delete r.ref,e(r,t.ref)}return t.prototype.isReactComponent=t.t=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}n.__b=function(e){e.type&&e.type.t&&e.ref&&(e.props.ref=e.ref,e.ref=null),ge&&ge(e)};var ye=function(e,t){return e?E(e).reduce((function(e,r,n){return e.concat(t(r,n))}),[]):null},be={map:ye,forEach:ye,count:function(e){return e?E(e).length:0},only:function(e){if(1!==(e=E(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:E},ve=n.__e;function we(e){return e&&((e=fe({},e)).__c=null,e.__k=e.__k&&e.__k.map(we)),e}function xe(){this.__u=0,this.o=null,this.__b=null}function _e(e){var t=e.__.__c;return t&&t.u&&t.u(e)}function Se(e){var t,r,n;function i(i){if(t||(t=e()).then((function(e){r=e.default||e}),(function(e){n=e})),n)throw n;if(!r)throw t;return g(r,i)}return i.displayName="Lazy",i.t=!0,i}function Ae(){this.i=null,this.l=null}n.__e=function(e,t,r){if(e.then)for(var n,i=t;i=i.__;)if((n=i.__c)&&n.__c)return n.__c(e,t.__c);ve(e,t,r)},(xe.prototype=new v).__c=function(e,t){var r=this;null==r.o&&(r.o=[]),r.o.push(t);var n=_e(r.__v),i=!1,o=function(){i||(i=!0,n?n(a):a())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){o(),t.__c&&t.__c()};var a=function(){var e;if(!--r.__u)for(r.__v.__k[0]=r.state.u,r.setState({u:r.__b=null});e=r.o.pop();)e.forceUpdate()};r.__u++||r.setState({u:r.__b=r.__v.__k[0]}),e.then(o,o)},xe.prototype.render=function(e,t){return this.__b&&(this.__v.__k[0]=we(this.__b),this.__b=null),[g(v,null,t.u?null:e.children),t.u&&e.fallback]};var Ee=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]1)for(var r=1;r "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u="undefined"!==typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},l=function(){return i.Buffer?function(e){return(c.create=function(e){return i.Buffer.isBuffer(e)?new n(e):u(e)})(e)}:u};function f(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw s(this,8);return new o(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}c.create=l(),c.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,c.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return e}}(),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return d(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|d(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,r):t===r?new this.buf.constructor(0):this._slice.call(this.buf,t,r)},c.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},c.prototype.skip=function(e){if("number"===typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!==(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){n=e,c.create=l(),n._configure();var t=i.Long?"toLong":"toNumber";i.merge(c.prototype,{int64:function(){return f.call(this)[t](!1)},uint64:function(){return f.call(this)[t](!0)},sint64:function(){return f.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},50593:function(e,t,r){"use strict";e.exports=o;var n=r(51408);(o.prototype=Object.create(n.prototype)).constructor=o;var i=r(99693);function o(e){n.call(this,e)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},85054:function(e){"use strict";e.exports={}},35994:function(e,t,r){"use strict";t.Service=r(77948)},77948:function(e,t,r){"use strict";e.exports=i;var n=r(99693);function i(e,t,r){if("function"!==typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,r,i,o,a){if(!o)throw TypeError("request must be specified");var s=this;if(!a)return n.asPromise(e,s,t,r,i,o);if(s.rpcImpl)try{return s.rpcImpl(t,r[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),(function(e,r){if(e)return s.emit("error",e,t),a(e);if(null!==r){if(!(r instanceof i))try{r=i[s.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return s.emit("error",e,t),a(e)}return s.emit("data",r,t),a(null,r)}s.end(!0)}))}catch(c){return s.emit("error",c,t),void setTimeout((function(){a(c)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},1945:function(e,t,r){"use strict";e.exports=i;var n=r(99693);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new i(r,n)},i.from=function(e){if("number"===typeof e)return i.fromNumber(e);if(n.isString(e)){if(!n.Long)return i.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):o},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?o:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},99693:function(e,t,r){"use strict";var n=t;function i(e,t,r){for(var n=Object.keys(t),i=0;i0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"===typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"===typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!==typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=i,n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;r>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=d(),f.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(f.alloc=i.pool(f.alloc,i.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new c(e,t,r),this.len+=t,this},p.prototype=Object.create(c.prototype),p.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(g,10,o.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=o.from(e);return this._push(g,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(g,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var y=i.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(i.isString(e)){var r=f.alloc(t=a.length(e));a.decode(e,r,0),e=r}return this.uint32(t)._push(y,t,e)},f.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new c(u,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=d(),n._configure()}},43155:function(e,t,r){"use strict";e.exports=o;var n=r(41173);(o.prototype=Object.create(n.prototype)).constructor=o;var i=r(99693);function o(){n.call(this)}function a(e,t,r){e.length<40?i.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},o._configure()},7900:function(e,t,r){t.publicEncrypt=r(16559),t.privateDecrypt=r(26138),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},99199:function(e,t,r){var n=r(23482),i=r(89509).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.lengthp||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");d=r?u(new a(t),h):s(t,h);var g=l.alloc(p-d.length);if(d=l.concat([g,d],p),4===f)return function(e,t){var r=e.modulus.byteLength(),n=c("sha1").update(l.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),u=t.slice(a+1),f=o(s,i(u,a)),d=o(u,i(f,r-a-1));if(function(e,t){e=l.from(e),t=l.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,d,r);if(3===f)return d;throw new Error("unknown padding")}},16559:function(e,t,r){var n=r(70980),i=r(61798),o=r(23482),a=r(99199),s=r(57859),c=r(13550),u=r(84818),l=r(23663),f=r(89509).Buffer;e.exports=function(e,t,r){var d;d=e.padding?e.padding:r?1:4;var h,p=n(e);if(4===d)h=function(e,t){var r=e.modulus.byteLength(),n=t.length,u=o("sha1").update(f.alloc(0)).digest(),l=u.length,d=2*l;if(n>r-d-2)throw new Error("message too long");var h=f.alloc(r-n-d-2),p=r-l-1,g=i(l),m=s(f.concat([u,h,f.alloc(1,1),t],p),a(g,p)),y=s(g,a(m,l));return new c(f.concat([f.alloc(1),y,m],r))}(p,t);else if(1===d)h=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?f.alloc(a-o-3,255):function(e){var t,r=f.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?l(h,p):u(h,p)}},84818:function(e,t,r){var n=r(13550),i=r(89509).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},57859:function(e){e.exports=function(e,t){for(var r=e.length,n=-1;++n0,(function(t){e||(e=t),t&&n.forEach(f),a||(n.forEach(f),r(e))}))}));return t.reduce(d)}},3689:function(e,t,r){"use strict";r.r(t),r.d(t,{ucs2decode:function(){return h},ucs2encode:function(){return p},decode:function(){return y},encode:function(){return b},toASCII:function(){return w},toUnicode:function(){return v}});const n=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=Math.floor,l=String.fromCharCode;function f(e){throw new RangeError(c[e])}function d(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const i=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(s,".")).split("."),t).join(".");return n+i}function h(e){const t=[];let r=0;const n=e.length;for(;r=55296&&i<=56319&&rString.fromCodePoint(...e),g=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},m=function(e,t,r){let n=0;for(e=r?u(e/700):e>>1,e+=u(e/t);e>455;n+=i)e=u(e/35);return u(n+36*e/(e+38))},y=function(e){const t=[],r=e.length;let o=0,a=128,s=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let n=0;n=128&&f("not-basic"),t.push(e.charCodeAt(n));for(let d=c>0?c+1:0;d=r&&f("invalid-input");const c=(l=e.charCodeAt(d++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:i;(c>=i||c>u((n-o)/t))&&f("overflow"),o+=c*t;const h=a<=s?1:a>=s+26?26:a-s;if(cu(n/p)&&f("overflow"),t*=p}const h=t.length+1;s=m(o-c,h,0==c),u(o/h)>n-a&&f("overflow"),a+=u(o/h),o%=h,t.splice(o++,0,a)}var l;return String.fromCodePoint(...t)},b=function(e){const t=[];let r=(e=h(e)).length,o=128,a=0,s=72;for(const n of e)n<128&&t.push(l(n));let c=t.length,d=c;for(c&&t.push("-");d=o&&tu((n-a)/h)&&f("overflow"),a+=(r-o)*h,o=r;for(const p of e)if(pn&&f("overflow"),p==o){let e=a;for(let r=i;;r+=i){const n=r<=s?1:r>=s+26?26:r-s;if(e{var e={192:(e,t)=>{var r,n,i=function(){var e=function(e,t){var r=e,n=a[t],i=null,o=0,c=null,m=[],y={},v=function(e,t){i=function(e){for(var t=new Array(e),r=0;r=7&&S(e),null==c&&(c=k(r,n,m)),E(c,t)},w=function(e,t){for(var r=-1;r<=7;r+=1)if(!(e+r<=-1||o<=e+r))for(var n=-1;n<=7;n+=1)t+n<=-1||o<=t+n||(i[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},x=function(){for(var e=8;e>n&1);i[Math.floor(n/3)][n%3+o-8-3]=a}for(n=0;n<18;n+=1)a=!e&&1==(t>>n&1),i[n%3+o-8-3][Math.floor(n/3)]=a},A=function(e,t){for(var r=n<<3|t,a=s.getBCHTypeInfo(r),c=0;c<15;c+=1){var u=!e&&1==(a>>c&1);c<6?i[c][8]=u:c<8?i[c+1][8]=u:i[o-15+c][8]=u}for(c=0;c<15;c+=1)u=!e&&1==(a>>c&1),c<8?i[8][o-c-1]=u:c<9?i[8][15-c-1+1]=u:i[8][15-c-1]=u;i[o-8][8]=!e},E=function(e,t){for(var r=-1,n=o-1,a=7,c=0,u=s.getMaskFunction(t),l=o-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var f=0;f<2;f+=1)if(null==i[n][l-f]){var d=!1;c>>a&1)),u(n,l-f)&&(d=!d),i[n][l-f]=d,-1==(a-=1)&&(c+=1,a=7)}if((n+=r)<0||o<=n){n-=r,r=-r;break}}},k=function(e,t,r){for(var n=l.getRSBlocks(e,t),i=f(),o=0;o8*c)throw"code length overflow. ("+i.getLengthInBits()+">"+8*c+")";for(i.getLengthInBits()+4<=8*c&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*c||(i.put(236,8),i.getLengthInBits()>=8*c));)i.put(17,8);return function(e,t){for(var r=0,n=0,i=0,o=new Array(t.length),a=new Array(t.length),c=0;c=0?p.getAt(g):0}}var m=0;for(d=0;dn)&&(e=n,t=r)}return t}())},y.createTableTag=function(e,t){e=e||2;var r="";r+='',r+="";for(var n=0;n";for(var i=0;i';r+=""}return(r+="")+"
"},y.createSvgTag=function(e,t,r,n){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,r=i.alt,n=i.title),e=e||2,t=void 0===t?4*e:t,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-title":null;var o,a,s,c,u=y.getModuleCount()*e+2*t,l="";for(c="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",l+=''+M(n.text)+"":"",l+=r.text?''+M(r.text)+"":"",l+='',l+='"},y.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var r=y.getModuleCount()*e+2*t,n=t,i=r-t;return b(r,r,(function(t,r){if(n<=t&&t"};var M=function(e){for(var t="",r=0;r":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=n}}return t};return y.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,r,n,i,o,a=1*y.getModuleCount()+2*e,s=e,c=a-e,u={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},l={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},f="";for(t=0;t=c?l[o]:u[o];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("\u2580"):f.substring(0,f.length-1)}(t);e-=1,t=void 0===t?2*e:t;var r,n,i,o,a=y.getModuleCount()*e+2*t,s=t,c=a-t,u=Array(e+1).join("\u2588\u2588"),l=Array(e+1).join(" "),f="",d="";for(r=0;r>>8),t.push(255&a)):t.push(n)}}return t}};var t,r,n,i,o,a={L:1,M:0,Q:3,H:2},s=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],r=1335,n=7973,o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(i={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(r)>=0;)t^=r<=0;)t^=n<5&&(r+=3+o-5)}for(n=0;n=256;)t-=255;return e[t]}}}();function u(e,t){if(void 0===e.length)throw e.length+"/"+t;var r=function(){for(var r=0;r>>7-t%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return t},putBit:function(r){var n=Math.floor(t/8);e.length<=n&&e.push(0),r&&(e[n]|=128>>>t%8),t+=1}};return r},d=function(e){var t=e,r={getMode:function(){return 1},getLength:function(e){return t.length},write:function(e){for(var r=t,i=0;i+2>>8&255)+(255&i),e.put(i,13),r+=2}if(r>>8)},writeBytes:function(e,r,n){r=r||0,n=n||e.length;for(var i=0;i0&&(t+=","),t+=e[r];return t+"]"}};return t},y=function(e){var t=e,r=0,n=0,i=0,o={read:function(){for(;i<8;){if(r>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(r);if(r+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(n=n<<6|a(e.charCodeAt(0)),i+=6)}var o=n>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},b=function(e,t,r){for(var n=function(e,t){var r=e,n=t,i=new Array(e*t),o={setPixel:function(e,t,n){i[t*r+e]=n},write:function(e){e.writeString("GIF87a"),e.writeShort(r),e.writeShort(n),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(r),e.writeShort(n),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<>>t!=0)throw"length over";for(;u+t>=8;)c.writeByte(255&(e<>>=8-u,l=0,u=0;l|=e<0&&c.writeByte(l)}});d.write(t,n);var h=0,p=String.fromCharCode(i[h]);for(h+=1;h=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),r%3!=0)for(var i=3-r%3,a=0;a>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}(e)},void 0===(n="function"==typeof(r=function(){return i})?r.apply(t,[]):r)||(e.exports=n)},676:(e,t,r)=>{"use strict";r.d(t,{default:()=>R});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2||o&&a||s&&c)this._basicSquare({x:t,y:r,size:n,rotation:0});else{if(2===u){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&c&&(l=-Math.PI/2),void this._basicCornerRounded({x:t,y:r,size:n,rotation:l})}if(1===u)return l=0,s?l=Math.PI/2:a?l=Math.PI:c&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:r,size:n,rotation:l})}else this._basicDot({x:t,y:r,size:n,rotation:0})},e.prototype._drawExtraRounded=function(e){var t=e.x,r=e.y,n=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,c=i?+i(0,1):0,u=o+a+s+c;if(0!==u)if(u>2||o&&a||s&&c)this._basicSquare({x:t,y:r,size:n,rotation:0});else{if(2===u){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&c&&(l=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:r,size:n,rotation:l})}if(1===u)return l=0,s?l=Math.PI/2:a?l=Math.PI:c&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:r,size:n,rotation:l})}else this._basicDot({x:t,y:r,size:n,rotation:0})},e.prototype._drawClassy=function(e){var t=e.x,r=e.y,n=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,c=i?+i(0,1):0;0!==o+a+s+c?o||s?a||c?this._basicSquare({x:t,y:r,size:n,rotation:0}):this._basicCornerRounded({x:t,y:r,size:n,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:r,size:n,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:r,size:n,rotation:Math.PI/2})},e.prototype._drawClassyRounded=function(e){var t=e.x,r=e.y,n=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,c=i?+i(0,1):0;0!==o+a+s+c?o||s?a||c?this._basicSquare({x:t,y:r,size:n,rotation:0}):this._basicCornerExtraRounded({x:t,y:r,size:n,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:r,size:n,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:r,size:n,rotation:Math.PI/2})},e}();var d=function(){return(d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]n||i&&i=(t-o.hideXDots)/2&&e<(t+o.hideXDots)/2&&r>=(t-o.hideYDots)/2&&r<(t+o.hideYDots)/2||(null===(n=v[e])||void 0===n?void 0:n[r])||(null===(i=v[e-t+7])||void 0===i?void 0:i[r])||(null===(a=v[e])||void 0===a?void 0:a[r-t+7])||(null===(s=w[e])||void 0===s?void 0:s[r])||(null===(c=w[e-t+7])||void 0===c?void 0:c[r])||(null===(u=w[e])||void 0===u?void 0:u[r-t+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:t,dotSize:i})]:[3,4];case 3:h.sent(),h.label=4;case 4:return[2]}}))}))},e.prototype.drawBackground=function(){var e,t,r,n=this._element,i=this._options;if(n){var o=null===(e=i.backgroundOptions)||void 0===e?void 0:e.gradient,a=null===(t=i.backgroundOptions)||void 0===t?void 0:t.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"background-color"}),null===(r=i.backgroundOptions)||void 0===r?void 0:r.round){var s=Math.min(i.width,i.height),c=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),c.setAttribute("x",String((i.width-s)/2)),c.setAttribute("y",String((i.height-s)/2)),c.setAttribute("width",String(s)),c.setAttribute("height",String(s)),c.setAttribute("rx",String(s/2*i.backgroundOptions.round)),this._backgroundClipPath.appendChild(c)}}},e.prototype.drawDots=function(e){var t,r,n=this;if(!this._qr)throw"QR code is not defined";var i=this._options,o=this._qr.getModuleCount();if(o>i.width||o>i.height)throw"The canvas is too small.";var a=Math.min(i.width,i.height)-2*i.margin,s=i.shape===m?a/Math.sqrt(2):a,c=Math.floor(s/o),u=Math.floor((i.width-o*c)/2),l=Math.floor((i.height-o*c)/2),d=new f({svg:this._element,type:i.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(t=i.dotsOptions)||void 0===t?void 0:t.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"dot-color"});for(var h=function(t){for(var i=function(i){return e&&!e(t,i)?"continue":(null===(r=p._qr)||void 0===r?void 0:r.isDark(t,i))?(d.draw(u+t*c,l+i*c,c,(function(r,a){return!(t+r<0||i+a<0||t+r>=o||i+a>=o)&&!(e&&!e(t+r,i+a))&&!!n._qr&&n._qr.isDark(t+r,i+a)})),void(d._element&&p._dotsClipPath&&p._dotsClipPath.appendChild(d._element))):"continue"},a=0;a=y-1&&g<=b-y&&S>=y-1&&S<=b-y||Math.sqrt((g-_)*(g-_)+(S-_)*(S-_))>_?x[g][S]=0:x[g][S]=this._qr.isDark(S-2*y<0?S:S>=o?S-2*y:S-y,g-2*y<0?g:g>=o?g-2*y:g-y)?1:0}var A=function(e){for(var t=function(t){if(!x[e][t])return"continue";d.draw(v+e*c,w+t*c,c,(function(r,n){var i;return!!(null===(i=x[e+r])||void 0===i?void 0:i[t+n])})),d._element&&E._dotsClipPath&&E._dotsClipPath.appendChild(d._element)},r=0;ra?s:a,l=document.createElementNS("http://www.w3.org/2000/svg","rect");if(l.setAttribute("x",String(i)),l.setAttribute("y",String(o)),l.setAttribute("height",String(a)),l.setAttribute("width",String(s)),l.setAttribute("clip-path","url('#clip-path-"+c+"')"),t){var f;if("radial"===t.type)(f=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",c),f.setAttribute("gradientUnits","userSpaceOnUse"),f.setAttribute("fx",String(i+s/2)),f.setAttribute("fy",String(o+a/2)),f.setAttribute("cx",String(i+s/2)),f.setAttribute("cy",String(o+a/2)),f.setAttribute("r",String(u/2));else{var d=((t.rotation||0)+n)%(2*Math.PI),h=(d+2*Math.PI)%(2*Math.PI),p=i+s/2,g=o+a/2,m=i+s/2,y=o+a/2;h>=0&&h<=.25*Math.PI||h>1.75*Math.PI&&h<=2*Math.PI?(p-=s/2,g-=a/2*Math.tan(d),m+=s/2,y+=a/2*Math.tan(d)):h>.25*Math.PI&&h<=.75*Math.PI?(g-=a/2,p-=s/2/Math.tan(d),y+=a/2,m+=s/2/Math.tan(d)):h>.75*Math.PI&&h<=1.25*Math.PI?(p+=s/2,g+=a/2*Math.tan(d),m-=s/2,y-=a/2*Math.tan(d)):h>1.25*Math.PI&&h<=1.75*Math.PI&&(g+=a/2,p+=s/2/Math.tan(d),y-=a/2,m-=s/2/Math.tan(d)),(f=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",c),f.setAttribute("gradientUnits","userSpaceOnUse"),f.setAttribute("x1",String(Math.round(p))),f.setAttribute("y1",String(Math.round(g))),f.setAttribute("x2",String(Math.round(m))),f.setAttribute("y2",String(Math.round(y)))}t.colorStops.forEach((function(e){var t=e.offset,r=e.color,n=document.createElementNS("http://www.w3.org/2000/svg","stop");n.setAttribute("offset",100*t+"%"),n.setAttribute("stop-color",r),f.appendChild(n)})),l.setAttribute("fill","url('#"+c+"')"),this._defs.appendChild(f)}else r&&l.setAttribute("fill",r);this._element.appendChild(l)},e}(),_="canvas";for(var S={},A=0;A<=40;A++)S[A]=A;const E={type:_,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:S[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var k=function(){return(k=Object.assign||function(e){for(var t,r=1,n=arguments.length;rMath.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=k({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=M(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=k({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=M(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=k({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=M(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=k({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=M(t.backgroundOptions.gradient))),t}var T=r(192),I=r.n(T),O=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},P=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]\r\n'+n],{type:"image/svg+xml"})]):[2,new Promise((function(r){return t.toBlob(r,"image/"+e,1)}))]:[2,null]}}))}))},e.prototype.download=function(e){return O(this,void 0,void 0,(function(){var t,r,n,i,o;return P(this,(function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return t="png",r="qr","string"==typeof e?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof e&&null!==e&&(e.name&&(r=e.name),e.extension&&(t=e.extension)),[4,this._getElement(t)];case 1:return(n=a.sent())?("svg"===t.toLowerCase()?(i=new XMLSerializer,o='\r\n'+(o=i.serializeToString(n)),s("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),r+".svg")):s(n.toDataURL("image/"+t),r+"."+t),[2]):[2]}}))}))},e}()}},t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r(676)})().default},3655:function(e,t,r){var n=r(32792);function i(e){this.mode=n.MODE_8BIT_BYTE,this.data=e}i.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t>>7-e%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},49381:function(e){e.exports={L:1,M:0,Q:3,H:2}},32832:function(e,t,r){var n=r(11518);function i(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var r=0;r=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=c.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},u.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=a.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},u.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var i=0;i>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},u.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=a.getBCHTypeInfo(r),i=0;i<15;i++){var o=!e&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++){o=!e&&1==(n>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var c=0;c<2;c++)if(null==this.modules[n][s-c]){var u=!1;o>>i&1)),a.getMask(t,n,s-c)&&(u=!u),this.modules[n][s-c]=u,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},c.PAD0=236,c.PAD1=17,c.createData=function(e,t,r){for(var n=i.getRSBlocks(e,t),s=new o,u=0;u8*f)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*f+")");for(s.getLengthInBits()+4<=8*f&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*f)&&(s.put(c.PAD0,8),!(s.getLengthInBits()>=8*f));)s.put(c.PAD1,8);return c.createBytes(s,n)},c.createBytes=function(e,t){for(var r=0,n=0,i=0,o=new Array(t.length),c=new Array(t.length),u=0;u=0?p.get(g):0}}var m=0;for(d=0;d=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},r=0;r<8;r++)t.EXP_TABLE[r]=1<=0;)t^=p.G15<=0;)t^=p.G18<>>=1;return t},getPatternPosition:function(e){return p.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case a:return(t+r)%2==0;case s:return t%2==0;case c:return r%3==0;case u:return(t+r)%3==0;case l:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case f:return t*r%2+t*r%3==0;case d:return(t*r%2+t*r%3)%2==0;case h:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),r=0;r5&&(r+=3+o-5)}for(n=0;n>>7-e%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},73280:function(e,t,r){var n=r(99131);function i(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=n.alloc(e*e),this.reservedBit=n.alloc(e*e)}i.prototype.set=function(e,t,r,n){var i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)},i.prototype.get=function(e,t){return this.data[e*this.size+t]},i.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},i.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=i},43424:function(e,t,r){var n=r(99131),i=r(76910);function o(e){this.mode=i.BYTE,this.data=n.from(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(var t=0,r=this.data.length;t=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(n){return r}}},76526:function(e,t,r){var n=r(10242).getSymbolSize;t.getPositions=function(e){var t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},61642:function(e,t,r){var n=r(10242),i=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){for(var r=e.bit<<3|t,o=r<<10;n.getBCHDigit(o)-i>=0;)o^=1335<=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13)}},e.exports=o},27126:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r=3,n=3,i=40,o=10;function a(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2===0;case t.Patterns.PATTERN001:return r%2===0;case t.Patterns.PATTERN010:return n%3===0;case t.Patterns.PATTERN011:return(r+n)%3===0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2===0;case t.Patterns.PATTERN101:return r*n%2+r*n%3===0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2===0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,n=0,i=0,o=0,a=null,s=null,c=0;c=5&&(n+=r+(i-5)),a=l,i=1),(l=e.get(u,c))===s?o++:(o>=5&&(n+=r+(o-5)),s=l,o=1)}i>=5&&(n+=r+(i-5)),o>=5&&(n+=r+(o-5))}return n},t.getPenaltyN2=function(e){for(var t=e.size,r=0,i=0;i=10&&(1488===n||93===n)&&r++,o=o<<1&2047|e.get(s,a),s>=10&&(1488===o||93===o)&&r++}return r*i},t.getPenaltyN4=function(e){for(var t=0,r=e.data.length,n=0;n=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(n){return r}}},41085:function(e,t,r){var n=r(76910);function i(e){this.mode=n.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t,r,n;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),n=parseInt(r,10),e.put(n,10);var i=this.data.length-t;i>0&&(r=this.data.substr(t),n=parseInt(r,10),e.put(n,3*i+1))},e.exports=i},26143:function(e,t,r){var n=r(99131),i=r(69729);t.mul=function(e,t){for(var r=n.alloc(e.length+t.length-1),o=0;o=0;){for(var o=r[0],a=0;a>n&1),n<6?e.set(n,8,i,!0):n<8?e.set(n+1,8,i,!0):e.set(o-15+n,8,i,!0),n<8?e.set(8,o-n-1,i,!0):n<9?e.set(8,15-n-1+1,i,!0):e.set(8,15-n-1,i,!0);e.set(o-8,8,1,!0)}function v(e,t,r){var o=new a;r.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),g.getCharCountIndicator(t.mode,e)),t.write(o)}));var s=8*(i.getSymbolTotalCodewords(e)-f.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);for(var c=(s-o.getLengthInBits())/8,u=0;u=0&&s<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===s||6===s)||s>=2&&s<=4&&c>=2&&c<=4?e.set(o+s,a+c,!0,!0):e.set(o+s,a+c,!1,!0))}(w,t),function(e){for(var t=e.size,r=8;r=7&&function(e,t){for(var r,n,i,o=e.size,a=h.getEncodedBits(t),s=0;s<18;s++)r=Math.floor(s/3),n=s%3+o-8-3,i=1===(a>>s&1),e.set(r,n,i,!0),e.set(n,r,i,!0)}(w,t),function(e,t){for(var r=e.size,n=-1,i=r-1,o=7,a=0,s=r-1;s>0;s-=2)for(6===s&&s--;;){for(var c=0;c<2;c++)if(!e.isReserved(i,s-c)){var u=!1;a>>o&1)),e.set(i,s-c,u),-1===--o&&(a++,o=7)}if((i+=n)<0||r<=i){i-=n,n=-n;break}}}(w,p),isNaN(n)&&(n=l.getBestMask(w,b.bind(null,w,r))),l.applyMask(n,w),b(w,r,n),{modules:w,version:t,errorCorrectionLevel:r,maskPattern:n,segments:o}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");var r,n,a=o.M;return"undefined"!==typeof t&&(a=o.from(t.errorCorrectionLevel,o.M),r=h.from(t.version),n=l.from(t.maskPattern),t.toSJISFunc&&i.setToSJISFunction(t.toSJISFunc)),w(e,r,a,n)}},52882:function(e,t,r){var n=r(99131),i=r(26143),o=r(48764).Buffer;function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=i.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=n.alloc(this.degree),r=o.concat([e,t],e.length+this.degree),a=i.mod(r,this.genPoly),s=this.degree-a.length;if(s>0){var c=n.alloc(this.degree);return a.copy(c,s),c}return a},e.exports=a},7007:function(e,t){var r="[0-9]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(i,"g"),t.NUMERIC=new RegExp(r,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var o=new RegExp("^"+n+"$"),a=new RegExp("^[0-9]+$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},16130:function(e,t,r){var n=r(76910),i=r(41085),o=r(8260),a=r(43424),s=r(35442),c=r(7007),u=r(10242),l=r(65987);function f(e){return unescape(encodeURIComponent(e)).length}function d(e,t,r){for(var n,i=[];null!==(n=e.exec(r));)i.push({data:n[0],index:n.index,mode:t,length:n[0].length});return i}function h(e){var t,r,i=d(c.NUMERIC,n.NUMERIC,e),o=d(c.ALPHANUMERIC,n.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=d(c.BYTE,n.BYTE,e),r=d(c.KANJI,n.KANJI,e)):(t=d(c.BYTE_KANJI,n.BYTE,e),r=[]),i.concat(o,t,r).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function p(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return o.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function g(e,t){var r,c=n.getBestModeForData(e);if((r=n.from(t,c))!==n.BYTE&&r.bit=0?e[e.length-1]:null;return r&&r.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(a))},t.rawSplit=function(e){return t.fromArray(h(e,u.isKanjiModeEnabled()))}},10242:function(e,t){var r,n=[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];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof r},t.toSJIS=function(e){return r(e)}},43114:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},23103:function(e,t,r){var n=r(10242),i=r(35393),o=r(64908),a=r(76910),s=r(43114),c=r(55147),u=n.getBCHDigit(7973);function l(e,t){return a.getCharCountIndicator(e,t)+4}function f(e,t){var r=0;return e.forEach((function(e){var n=l(e.mode,t);r+=n+e.getBitsLength()})),r}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof r&&(r=a.BYTE);var o=8*(n.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t));if(r===a.MIXED)return o;var c=o-l(r,e);switch(r){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,r){var n,i=o.from(r,o.M);if(c(e)){if(e.length>1)return function(e,r){for(var n=1;n<=40;n++)if(f(e,n)<=t.getCapacity(n,r,a.MIXED))return n}(e,i);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(var i=1;i<=40;i++)if(r<=t.getCapacity(i,n,e))return i}(n.mode,n.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;n.getBCHDigit(t)-u>=0;)t^=7973<':"",f="0&&u>0&&e[c-1]||(n+=a?o("M",u+r,.5+l+r):o("m",i,0),i=0,a=!1),u+1',d='viewBox="0 0 '+u+" "+u+'"',h=''+l+f+"\n";return"function"===typeof r&&r(null,h),h}},89653:function(e,t){function r(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){var n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){for(var i=r.modules.size,o=r.modules.data,a=t.getScale(i,n),s=Math.floor((i+2*n.margin)*a),c=n.margin*a,u=[n.color.light,n.color.dark],l=0;l=c&&f>=c&&l=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function s(e,t){var r;return o.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(t)).__proto__=o.prototype:(null===(r=e)&&(r=new o(t)),r.length=t),r}function c(e,t){var r=s(e,t<0?0:0|a(t));if(!o.TYPED_ARRAY_SUPPORT)for(var n=0;n55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function f(e){return o.isBuffer(e)?e.length:"undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!==typeof e&&(e=""+e),0===e.length?0:l(e).length)}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(e,t,r){void 0===t||void 0===r&&"string"===typeof t?(r=this.length,t=0):isFinite(t)&&(t|=0,isFinite(r)?r|=0:r=void 0);var n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,r,n){return function(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}(l(t,e.length-r),e,r,n)}(this,e,t,r)},o.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(i=t;iNumber(e)-Number(t))).map((t=>e[t])):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const i="string"===typeof r&&r.split("").indexOf(e.arrayFormatSeparator)>-1?r.split(e.arrayFormatSeparator).map((t=>c(t,e))):null===r?r:c(r,e);n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const i of e.split("&")){let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:c(a,t),r(c(e,t),a,n)}for(const i of Object.keys(n)){const e=n[i];if("object"===typeof e&&null!==e)for(const r of Object.keys(e))e[r]=d(e[r],t);else n[i]=d(e,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?e[t]=u(r):e[t]=r,e}),Object.create(null))}t.extract=f,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>{return t.skipNull&&(null===(n=e[r])||void 0===n)||t.skipEmptyString&&""===e[r];var n},n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[s(t,e),"[",i,"]"].join("")]:[...r,[s(t,e),"[",s(i,e),"]=",s(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[s(t,e),"[]"].join("")]:[...r,[s(t,e),"[]=",s(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>null===n||void 0===n||0===n.length?r:0===r.length?[[s(t,e),"=",s(n,e)].join("")]:[[r,s(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,s(t,e)]:[...r,[s(t,e),"=",s(n,e)].join("")]}}(t),i={};for(const a of Object.keys(e))r(a)||(i[a]=e[a]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((r=>{const i=e[r];return void 0===i?"":null===i?s(r,t):Array.isArray(i)?i.reduce(n(r),[]).join("&"):s(r,t)+"="+s(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:h(f(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:c(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0},r);const n=l(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let c=t.stringify(a,r);c&&(c=`?${c}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${s(e.fragmentIdentifier,r)}`),`${n}${c}${u}`}},62587:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!==typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"===typeof i.maxKeys&&(s=i.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u=0?(l=p.substr(0,g),f=p.substr(g+1)):(l=p,f=""),d=decodeURIComponent(l),h=decodeURIComponent(f),t(o,d)?Array.isArray(o[d])?o[d].push(h):o[d]=[o[d],h]:o[d]=h}return o}},12361:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,i){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+n;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[i]))})).filter(Boolean).join(r):i?encodeURIComponent(t(i))+n+encodeURIComponent(t(e)):""}},17673:function(e,t,r){"use strict";t.decode=t.parse=r(62587),t.encode=t.stringify=r(12361)},54375:function(e){let t;e.exports="function"===typeof queueMicrotask?queueMicrotask:e=>(t||(t=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},61798:function(e,t,r){"use strict";var n=r(34155),i=65536,o=4294967295;var a=r(89509).Buffer,s=r.g.crypto||r.g.msCrypto;s&&s.getRandomValues?e.exports=function(e,t){if(e>o)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>i)for(var c=0;cu||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function f(e,t,r){if("number"!==typeof e||e!==e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>s)throw new RangeError("buffer too small")}function d(e,t,r,i){var o=e.buffer,a=new Uint8Array(o,t,r);return c.getRandomValues(a),i?void n.nextTick((function(){i(null,e)})):e}c&&c.getRandomValues?(t.randomFill=function(e,t,n,i){if(!a.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof t)i=t,t=0,n=e.length;else if("function"===typeof n)i=n,n=e.length-t;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return l(t,e.length),f(n,t,e.length),d(e,t,n,i)},t.randomFillSync=function(e,t,n){"undefined"===typeof t&&(t=0);if(!a.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(t,e.length),void 0===n&&(n=e.length-t);return f(n,t,e.length),d(e,t,n)}):(t.randomFill=i,t.randomFillSync=i)},95397:function(e,t,r){"use strict";function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};u=s(s({},u),e)}(e.options.react),function(e){c=e}(e)}}},69921:function(e,t){"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case g:case c:return e;default:return t}}case i:return t}}}function _(e){return x(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return _(e)||x(e)===l},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},59864:function(e,t,r){"use strict";e.exports=r(69921)},94281:function(e){"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"===typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,a,s;if("string"===typeof t&&(o="not ",t.substr(!a||a<0?0:+a,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=function(e,t,r){return"number"!==typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},56753:function(e,t,r){"use strict";var n=r(34155),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(79481),a=r(64229);r(35717)(l,o);for(var s=i(a.prototype),c=0;c0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)a.endEmitted?_(e,new x):M(e,a,t,!0);else if(a.ended)_(e,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?M(e,a,t,!1):P(e,a)):M(e,a,t,!1)}else n||(a.reading=!1,P(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function I(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(O,e))}function O(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,j(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){u("readable nexttick read 0"),e.read(0)}function L(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function U(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):I(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){_(this,new w("_read()"))},E.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,u("pipe count=%d opts=%j",n.pipesCount,t);var a=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:m;function s(t,i){u("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,u("cleanup"),e.removeListener("close",p),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",d),f=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){u("onend"),e.end()}n.endEmitted?i.nextTick(a):r.once("end",a),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,j(e))}}(r);e.on("drain",l);var f=!1;function d(t){u("ondata");var i=e.write(t);u("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==H(n.pipes,e))&&!f&&(u("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){u("onerror",t),m(),e.removeListener("error",h),0===o(e,"error")&&_(e,t)}function p(){e.removeListener("finish",g),m()}function g(){u("onfinish"),e.removeListener("close",p),m()}function m(){u("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",g),e.emit("pipe",r),n.flowing||(u("pipe resume"),r.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,u("on readable",n.length,n.reading),n.length?I(this):n.reading||i.nextTick(N,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(B,this),r},E.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(B,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(L,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(u("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new g("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var n=this._writableState;return"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,O(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}},45850:function(e,t,r){"use strict";var n,i=r(34155);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(8610),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[s]=null,e[c]=null,t(p(r,!1)))}}function m(e){i.nextTick(g,e)}var y=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[u]?r(e[u]):t(p(void 0,!0))}))}));var r,n=this[f];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[l]?r(p(void 0,!0)):t[d](r,n)}),n)}}(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[d])}return this[f]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(b,(o(t={},h,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,l,{value:e._readableState.endEmitted,writable:!0}),o(t,d,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[s]=null,r[c]=null,e(p(n,!1))):(r[s]=e,r[c]=t)},writable:!0}),t));return r[f]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];return null!==t&&(r[f]=null,r[s]=null,r[c]=null,t(e)),void(r[u]=e)}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[c]=null,n(p(void 0,!0))),r[l]=!0})),e.on("readable",m.bind(null,r)),r}},57327:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return s(this,function(e){for(var t=1;t0,(function(e){n||(n=e),e&&a.forEach(u),o||(a.forEach(u),i(n))}))}));return t.reduce(l)}},82457:function(e,t,r){"use strict";var n=r(94281).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},22503:function(e,t,r){e.exports=r(17187).EventEmitter},88473:function(e,t,r){(t=e.exports=r(79481)).Stream=t,t.Readable=t,t.Writable=r(64229),t.Duplex=r(56753),t.Transform=r(74605),t.PassThrough=r(82725),t.finished=r(8610),t.pipeline=r(59946)},79785:function(e,t,r){"use strict";var n=r(48764).Buffer,i=r(35717),o=r(3349),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function g(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,x=0|this._b,_=0|this._c,S=0|this._d,A=0|this._e,E=0;E<80;E+=1){var k,M;E<16?(k=g(r,n,i,o,h,e[s[E]],f[0],u[E]),M=v(w,x,_,S,A,e[c[E]],d[0],l[E])):E<32?(k=m(r,n,i,o,h,e[s[E]],f[1],u[E]),M=b(w,x,_,S,A,e[c[E]],d[1],l[E])):E<48?(k=y(r,n,i,o,h,e[s[E]],f[2],u[E]),M=y(w,x,_,S,A,e[c[E]],d[2],l[E])):E<64?(k=b(r,n,i,o,h,e[s[E]],f[3],u[E]),M=m(w,x,_,S,A,e[c[E]],d[3],l[E])):(k=v(r,n,i,o,h,e[s[E]],f[4],u[E]),M=g(w,x,_,S,A,e[c[E]],d[4],l[E])),r=h,h=o,o=p(i,10),i=n,n=k,w=A,A=S,S=p(_,10),_=x,x=M}var C=this._b+i+S|0;this._b=this._c+o+A|0,this._c=this._d+h+w|0,this._d=this._e+r+x|0,this._e=this._a+n+_|0,this._a=C},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},51675:function(e,t,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getLength=t.decode=t.encode=void 0;var o=i(r(33493));function a(e,t){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function s(e,t){if(e<56)return n.from([e+t]);var r=l(e),i=l(t+55+r.length/2);return n.from(i+r,"hex")}function c(e){var t,r,i,o,s,u=[],l=e[0];if(l<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(l<=183){if(t=l-127,i=128===l?n.from([]):e.slice(1,t),2===t&&i[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:i,remainder:e.slice(t)}}if(l<=191){if(r=l-182,e.length-1e.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(o=e.slice(r,f)).length)throw new Error("invalid rlp, List has a invalid length");for(;o.length;)s=c(o),u.push(s.data),o=s.remainder;return{data:u,remainder:e.slice(f)}}function u(e){return"0x"===e.slice(0,2)}function l(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function f(e){if(!n.isBuffer(e)){if("string"===typeof e)return u(e)?n.from((t="string"!==typeof(r=e)?r:u(r)?r.slice(2):r).length%2?"0"+t:t,"hex"):n.from(e);if("number"===typeof e||"bigint"===typeof e)return e?function(e){var t=l(e);return n.from(t,"hex")}(e):n.from([]);if(null===e||void 0===e)return n.from([]);if(e instanceof Uint8Array)return n.from(e);if(o.default.isBN(e))return n.from(e.toArray());throw new Error("invalid type")}var t,r;return e}t.encode=function e(t){if(Array.isArray(t)){for(var r=[],i=0;i=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(C){o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?""}var d=["","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"],h=[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],p=[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];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?d[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=h[e],l=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var g=f.modrn(l).toString(e);r=(f=f.idivn(l)).isZero()?g+r:d[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,f=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&a}r.words[u]=0|f,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,g=h>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,x=v>>>13,_=0|a[4],S=8191&_,A=_>>>13,E=0|a[5],k=8191&E,M=E>>>13,C=0|a[6],T=8191&C,I=C>>>13,O=0|a[7],P=8191&O,R=O>>>13,B=0|a[8],N=8191&B,L=B>>>13,j=0|a[9],D=8191&j,U=j>>>13,F=0|s[0],H=8191&F,z=F>>>13,q=0|s[1],V=8191&q,W=q>>>13,G=0|s[2],K=8191&G,Z=G>>>13,X=0|s[3],Y=8191&X,J=X>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(f,H))|0)+((8191&(i=(i=Math.imul(f,z))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,z))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,H),i=(i=Math.imul(p,z))+Math.imul(g,H)|0,o=Math.imul(g,z);var ye=(u+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(d,V)|0))<<13)|0;u=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,H),i=(i=Math.imul(y,z))+Math.imul(b,H)|0,o=Math.imul(b,z),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,W)|0;var be=(u+(n=n+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(d,K)|0))<<13)|0;u=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,H),i=(i=Math.imul(w,z))+Math.imul(x,H)|0,o=Math.imul(x,z),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,Z)|0;var ve=(u+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,H),i=(i=Math.imul(S,z))+Math.imul(A,H)|0,o=Math.imul(A,z),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,J)|0;var we=(u+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,$)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(k,H),i=(i=Math.imul(k,z))+Math.imul(M,H)|0,o=Math.imul(M,z),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,$)|0,o=o+Math.imul(g,ee)|0;var xe=(u+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(T,H),i=(i=Math.imul(T,z))+Math.imul(I,H)|0,o=Math.imul(I,z),n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(S,K)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var _e=(u+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(P,H),i=(i=Math.imul(P,z))+Math.imul(R,H)|0,o=Math.imul(R,z),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(k,K)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Se=(u+(n=n+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,H),i=(i=Math.imul(N,z))+Math.imul(L,H)|0,o=Math.imul(L,z),n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,W)|0,n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Z)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0;var Ae=(u+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,z))+Math.imul(U,H)|0,o=Math.imul(U,z),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,W)|0,n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ee=(u+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ge)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,ge)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,W))+Math.imul(U,V)|0,o=Math.imul(U,W),n=n+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,de)|0;var ke=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(D,K),i=(i=Math.imul(D,Z))+Math.imul(U,K)|0,o=Math.imul(U,Z),n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,de)|0;var Me=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(D,Y),i=(i=Math.imul(D,J))+Math.imul(U,Y)|0,o=Math.imul(U,J),n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,de)|0;var Ce=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,ee))+Math.imul(U,$)|0,o=Math.imul(U,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(L,re)|0,o=o+Math.imul(L,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,ue)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(M,fe)|0,o=o+Math.imul(M,de)|0;var Te=(u+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,ge)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(D,re),i=(i=Math.imul(D,ne))+Math.imul(U,re)|0,o=Math.imul(U,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,n=n+Math.imul(P,ce)|0,i=(i=i+Math.imul(P,ue)|0)+Math.imul(R,ce)|0,o=o+Math.imul(R,ue)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Ie=(u+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(D,oe),i=(i=Math.imul(D,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),n=n+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,ue)|0)+Math.imul(L,ce)|0,o=o+Math.imul(L,ue)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,de)|0;var Oe=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(I,pe)|0))<<13)|0;u=((o=o+Math.imul(I,ge)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(D,ce),i=(i=Math.imul(D,ue))+Math.imul(U,ce)|0,o=Math.imul(U,ue),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(L,fe)|0,o=o+Math.imul(L,de)|0;var Pe=(u+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,ge)|0)+Math.imul(R,pe)|0))<<13)|0;u=((o=o+Math.imul(R,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(D,fe),i=(i=Math.imul(D,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var Re=(u+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,ge)|0)+Math.imul(L,pe)|0))<<13)|0;u=((o=o+Math.imul(L,ge)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(u+(n=Math.imul(D,pe))|0)+((8191&(i=(i=Math.imul(D,ge))+Math.imul(U,pe)|0))<<13)|0;return u=((o=Math.imul(U,ge))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=xe,c[6]=_e,c[7]=Se,c[8]=Ae,c[9]=Ee,c[10]=ke,c[11]=Me,c[12]=Ce,c[13]=Te,c[14]=Ie,c[15]=Oe,c[16]=Pe,c[17]=Re,c[18]=Be,0!==u&&(c[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(e,t,r){return y(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(m=g),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?g(this,e,t):r<1024?y(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var f=0|this.words[u];this.words[u]=l<<26-o|f>>>o,l=f&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;0===(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0===(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0===(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function M(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}x.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(_,x),_.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new S;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return w[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var f=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new M(e)},i(M,k),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},89509:function(e,t,r){var n=r(48764),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},2399:function(e,t,r){"use strict";var n,i=r(34155),o=r(48764),a=o.Buffer,s={};for(n in o)o.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(s[n]=o[n]);var c=s.Buffer={};for(n in a)a.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(c[n]=a[n]);if(s.Buffer.prototype=a.prototype,c.from&&c.from!==Uint8Array.from||(c.from=function(e,t,r){if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&"undefined"===typeof e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return a(e,t,r)}),c.alloc||(c.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=a(e);return t&&0!==t.length?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!s.kStringMaxLength)try{s.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(u){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),e.exports=s},73151:function(e,t,r){const n=r(75180);n.async=r(9084),e.exports=n},9084:function(e,t,r){const n=r(55835),{checkAndInit:i,smix:o}=r(15427);e.exports=async function(e,t,r,a,s,c,u,l){const{XY:f,V:d,B32:h,x:p,_X:g,B:m,tickCallback:y}=i(e,t,r,a,s,c,u);for(var b=0;b>>32-t}function c(e,t,r){let n;for(n=0;n<16;n++)t[n]=(255&e[4*n+0])<<0,t[n]|=(255&e[4*n+1])<<8,t[n]|=(255&e[4*n+2])<<16,t[n]|=(255&e[4*n+3])<<24;for(l(t,0,r,0,16),n=8;n>0;n-=2)r[4]^=s(r[0]+r[12],7),r[8]^=s(r[4]+r[0],9),r[12]^=s(r[8]+r[4],13),r[0]^=s(r[12]+r[8],18),r[9]^=s(r[5]+r[1],7),r[13]^=s(r[9]+r[5],9),r[1]^=s(r[13]+r[9],13),r[5]^=s(r[1]+r[13],18),r[14]^=s(r[10]+r[6],7),r[2]^=s(r[14]+r[10],9),r[6]^=s(r[2]+r[14],13),r[10]^=s(r[6]+r[2],18),r[3]^=s(r[15]+r[11],7),r[7]^=s(r[3]+r[15],9),r[11]^=s(r[7]+r[3],13),r[15]^=s(r[11]+r[7],18),r[1]^=s(r[0]+r[3],7),r[2]^=s(r[1]+r[0],9),r[3]^=s(r[2]+r[1],13),r[0]^=s(r[3]+r[2],18),r[6]^=s(r[5]+r[4],7),r[7]^=s(r[6]+r[5],9),r[4]^=s(r[7]+r[6],13),r[5]^=s(r[4]+r[7],18),r[11]^=s(r[10]+r[9],7),r[8]^=s(r[11]+r[10],9),r[9]^=s(r[8]+r[11],13),r[10]^=s(r[9]+r[8],18),r[12]^=s(r[15]+r[14],7),r[13]^=s(r[12]+r[15],9),r[14]^=s(r[13]+r[12],13),r[15]^=s(r[14]+r[13],18);for(n=0;n<16;++n)t[n]=r[n]+t[n];for(n=0;n<16;n++){let r=4*n;e[r+0]=t[n]>>0&255,e[r+1]=t[n]>>8&255,e[r+2]=t[n]>>16&255,e[r+3]=t[n]>>24&255}}function u(e,t,r,n,i){for(let o=0;o 0 and a power of 2");if(r>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let l,f=n.alloc(256*a),d=n.alloc(128*a*r),h=new Int32Array(16),p=new Int32Array(16),g=n.alloc(64),m=i.pbkdf2Sync(e,t,1,128*s*a,"sha256");if(u){let e=s*r*2,t=0;l=function(){++t,t%1e3===0&&u({current:t,total:e,percent:t/e*100})}}return{XY:f,V:d,B32:h,x:p,_X:g,B:m,tickCallback:l}},smix:async function(e,t,r,n,i,o,s,c,l,f,d){d=d||5e3;let h,p=128*r;for(e.copy(o,0,t,t+p),h=0;hsetImmediate(e))),a(o,0,p,r,s,c,l),f&&f();for(h=0;hsetImmediate(e))),a(o,0,p,r,s,c,l),f&&f()}o.copy(e,t,0,0+p)},smixSync:function(e,t,r,n,i,o,s,c,l,f){let d,h=128*r;for(e.copy(o,0,t,t+h),d=0;d=0)return null;r=r.toRed(i.red);let a=r.redSqr().redIMul(r).redIAdd(i.b).redSqrt();return 3===e!==a.isOdd()&&(a=a.redNeg()),n.keyPair({pub:{x:r,y:a}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){let a=new o(t),s=new o(r);if(a.cmp(i.p)>=0||s.cmp(i.p)>=0)return null;if(a=a.toRed(i.red),s=s.toRed(i.red),(6===e||7===e)&&s.isOdd()!==(7===e))return null;const c=a.redSqr().redIMul(a);return s.redSqr().redISub(c.redIAdd(i.b)).isZero()?n.keyPair({pub:{x:a,y:s}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function s(e,t){const r=t.encode(null,33===e.length);for(let n=0;n0,privateKeyVerify(e){const t=new o(e);return t.cmp(i.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){const t=new o(e),r=i.n.sub(t).umod(i.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd(e,t){const r=new o(t);if(r.cmp(i.n)>=0)return 1;if(r.iadd(new o(e)),r.cmp(i.n)>=0&&r.isub(i.n),r.isZero())return 1;const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul(e,t){let r=new o(t);if(r.cmp(i.n)>=0||r.isZero())return 1;r.imul(new o(e)),r.cmp(i.n)>=0&&(r=r.umod(i.n));const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify:e=>null===a(e)?1:0,publicKeyCreate(e,t){const r=new o(t);if(r.cmp(i.n)>=0||r.isZero())return 1;return s(e,n.keyFromPrivate(t).getPublic()),0},publicKeyConvert(e,t){const r=a(t);if(null===r)return 1;return s(e,r.getPublic()),0},publicKeyNegate(e,t){const r=a(t);if(null===r)return 1;const n=r.getPublic();return n.y=n.y.redNeg(),s(e,n),0},publicKeyCombine(e,t){const r=new Array(t.length);for(let i=0;i=0)return 2;const c=n.getPublic().add(i.g.mul(r));return c.isInfinity()?2:(s(e,c),0)},publicKeyTweakMul(e,t,r){const n=a(t);if(null===n)return 1;if((r=new o(r)).cmp(i.n)>=0||r.isZero())return 2;return s(e,n.getPublic().mul(r)),0},signatureNormalize(e){const t=new o(e.subarray(0,32)),r=new o(e.subarray(32,64));return t.cmp(i.n)>=0||r.cmp(i.n)>=0?1:(1===r.cmp(n.nh)&&e.set(i.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const r=t.subarray(0,32),n=t.subarray(32,64);if(new o(r).cmp(i.n)>=0)return 1;if(new o(n).cmp(i.n)>=0)return 1;const{output:a}=e;let s=a.subarray(4,37);s[0]=0,s.set(r,1);let c=33,u=0;for(;c>1&&0===s[u]&&!(128&s[u+1]);--c,++u);if(s=s.subarray(u),128&s[0])return 1;if(c>1&&0===s[0]&&!(128&s[1]))return 1;let l=a.subarray(39,72);l[0]=0,l.set(n,1);let f=33,d=0;for(;f>1&&0===l[d]&&!(128&l[d+1]);--f,++d);return l=l.subarray(d),128&l[0]||f>1&&0===l[0]&&!(128&l[1])?1:(e.outputlen=6+c+f,a[0]=48,a[1]=e.outputlen-2,a[2]=2,a[3]=s.length,a.set(s,4),a[4+c]=2,a[5+c]=l.length,a.set(l,6+c),0)},signatureImport(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;const r=t[3];if(0===r)return 1;if(5+r>=t.length)return 1;if(2!==t[4+r])return 1;const n=t[5+r];if(0===n)return 1;if(6+r+n!==t.length)return 1;if(128&t[4])return 1;if(r>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[r+6])return 1;if(n>1&&0===t[r+6]&&!(128&t[r+7]))return 1;let a=t.subarray(4,4+r);if(33===a.length&&0===a[0]&&(a=a.subarray(1)),a.length>32)return 1;let s=t.subarray(6+r);if(33===s.length&&0===s[0]&&(s=s.slice(1)),s.length>32)throw new Error("S length is too long");let c=new o(a);c.cmp(i.n)>=0&&(c=new o(0));let u=new o(t.subarray(6+r));return u.cmp(i.n)>=0&&(u=new o(0)),e.set(c.toArrayLike(Uint8Array,"be",32),0),e.set(u.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,a,s){if(s){const e=s;s=n=>{const i=e(t,r,null,a,n);if(!(i instanceof Uint8Array&&32===i.length))throw new Error("This is the way");return new o(i)}}const c=new o(r);if(c.cmp(i.n)>=0||c.isZero())return 1;let u;try{u=n.sign(t,r,{canonical:!0,k:s,pers:a})}catch(l){return 1}return e.signature.set(u.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(u.s.toArrayLike(Uint8Array,"be",32),32),e.recid=u.recoveryParam,0},ecdsaVerify(e,t,r){const s={r:e.subarray(0,32),s:e.subarray(32,64)},c=new o(s.r),u=new o(s.s);if(c.cmp(i.n)>=0||u.cmp(i.n)>=0)return 1;if(1===u.cmp(n.nh)||c.isZero()||u.isZero())return 3;const l=a(r);if(null===l)return 2;const f=l.getPublic();return n.verify(t,s,f)?0:3},ecdsaRecover(e,t,r,a){const c={r:t.slice(0,32),s:t.slice(32,64)},u=new o(c.r),l=new o(c.s);if(u.cmp(i.n)>=0||l.cmp(i.n)>=0)return 1;if(u.isZero()||l.isZero())return 2;let f;try{f=n.recoverPubKey(a,c,r)}catch(d){return 2}return s(e,f),0},ecdh(e,t,r,s,c,u,l){const f=a(t);if(null===f)return 1;const d=new o(r);if(d.cmp(i.n)>=0||d.isZero())return 2;const h=f.getPublic().mul(d);if(void 0===c){const t=h.encode(null,!0),r=n.hash().update(t).digest();for(let n=0;n<32;++n)e[n]=r[n]}else{u||(u=new Uint8Array(32));const t=h.getX().toArray("be",32);for(let e=0;e<32;++e)u[e]=t[e];l||(l=new Uint8Array(32));const r=h.getY().toArray("be",32);for(let e=0;e<32;++e)l[e]=r[e];const n=c(u,l,s);if(!(n instanceof Uint8Array&&n.length===e.length))return 2;e.set(n)}return 0}}},59119:function(e){const t="Impossible case. Please create issue.",r="The tweak was out of range or the resulted private key is invalid",n="The tweak was out of range or equal to zero",i="Unknow error on context randomization",o="Private Key is invalid",a="Public Key could not be parsed",s="Public Key serialization error",c="The sum of the public keys is not valid",u="Signature could not be parsed",l="The nonce generation function failed, or the private key was invalid",f="Public key could not be recover",d="Scalar was invalid (zero or overflow)";function h(e,t){if(!e)throw new Error(t)}function p(e,t,r){if(h(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),void 0!==r)if(Array.isArray(r)){const n=`Expected ${e} to be an Uint8Array with length [${r.join(", ")}]`;h(r.includes(t.length),n)}else{const n=`Expected ${e} to be an Uint8Array with length ${r}`;h(t.length===r,n)}}function g(e){h("Boolean"===y(e),"Expected compressed to be a Boolean")}function m(e=(e=>new Uint8Array(e)),t){return"function"===typeof e&&(e=e(t)),p("output",e,t),e}function y(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=e=>({contextRandomize(t){switch(h(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&p("seed",t,32),e.contextRandomize(t)){case 1:throw new Error(i)}},privateKeyVerify:t=>(p("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(r){switch(p("private key",r,32),e.privateKeyNegate(r)){case 0:return r;case 1:throw new Error(t)}},privateKeyTweakAdd(t,n){switch(p("private key",t,32),p("tweak",n,32),e.privateKeyTweakAdd(t,n)){case 0:return t;case 1:throw new Error(r)}},privateKeyTweakMul(t,r){switch(p("private key",t,32),p("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(n)}},publicKeyVerify:t=>(p("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,r=!0,n){switch(p("private key",t,32),g(r),n=m(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw new Error(o);case 2:throw new Error(s)}},publicKeyConvert(t,r=!0,n){switch(p("public key",t,[33,65]),g(r),n=m(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw new Error(a);case 2:throw new Error(s)}},publicKeyNegate(r,n=!0,i){switch(p("public key",r,[33,65]),g(n),i=m(i,n?33:65),e.publicKeyNegate(i,r)){case 0:return i;case 1:throw new Error(a);case 2:throw new Error(t);case 3:throw new Error(s)}},publicKeyCombine(t,r=!0,n){h(Array.isArray(t),"Expected public keys to be an Array"),h(t.length>0,"Expected public keys array will have more than zero items");for(const e of t)p("public key",e,[33,65]);switch(g(r),n=m(n,r?33:65),e.publicKeyCombine(n,t)){case 0:return n;case 1:throw new Error(a);case 2:throw new Error(c);case 3:throw new Error(s)}},publicKeyTweakAdd(t,n,i=!0,o){switch(p("public key",t,[33,65]),p("tweak",n,32),g(i),o=m(o,i?33:65),e.publicKeyTweakAdd(o,t,n)){case 0:return o;case 1:throw new Error(a);case 2:throw new Error(r)}},publicKeyTweakMul(t,r,i=!0,o){switch(p("public key",t,[33,65]),p("tweak",r,32),g(i),o=m(o,i?33:65),e.publicKeyTweakMul(o,t,r)){case 0:return o;case 1:throw new Error(a);case 2:throw new Error(n)}},signatureNormalize(t){switch(p("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(u)}},signatureExport(r,n){p("signature",r,64);const i={output:n=m(n,72),outputlen:72};switch(e.signatureExport(i,r)){case 0:return n.slice(0,i.outputlen);case 1:throw new Error(u);case 2:throw new Error(t)}},signatureImport(r,n){switch(p("signature",r),n=m(n,64),e.signatureImport(n,r)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(t)}},ecdsaSign(r,n,i={},o){p("message",r,32),p("private key",n,32),h("Object"===y(i),"Expected options to be an Object"),void 0!==i.data&&p("options.data",i.data),void 0!==i.noncefn&&h("Function"===y(i.noncefn),"Expected options.noncefn to be a Function");const a={signature:o=m(o,64),recid:null};switch(e.ecdsaSign(a,r,n,i.data,i.noncefn)){case 0:return a;case 1:throw new Error(l);case 2:throw new Error(t)}},ecdsaVerify(t,r,n){switch(p("signature",t,64),p("message",r,32),p("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(u);case 2:throw new Error(a)}},ecdsaRecover(r,n,i,o=!0,a){switch(p("signature",r,64),h("Number"===y(n)&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),p("message",i,32),g(o),a=m(a,o?33:65),e.ecdsaRecover(a,r,n,i)){case 0:return a;case 1:throw new Error(u);case 2:throw new Error(f);case 3:throw new Error(t)}},ecdh(t,r,n={},i){switch(p("public key",t,[33,65]),p("private key",r,32),h("Object"===y(n),"Expected options to be an Object"),void 0!==n.data&&p("options.data",n.data),void 0!==n.hashfn?(h("Function"===y(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&p("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&p("options.ybuf",n.ybuf,32),p("output",i)):i=m(i,32),e.ecdh(i,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(a);case 2:throw new Error(d)}}})},24880:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(29745),i=r(89046),o=r(5625),a=r(9695),s=r.n(a),c=r(34714),u=r(88106),l=r(47630),f=r.n(l),d=(r(45697),r(67294)),h=r(68571),p=r(38119),g=r(73935),m=r(41779),y=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i1?a-1:0),c=1;c1?c-1:0),l=1;l1?a-1:0),c=1;c1?s-1:0),u=1;u1?s-1:0),u=1;u=i(t,r)&&e="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),n=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,a=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),s=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||o&&a||s||u}}e.exports=i;const o=r(12893),{re:a,t:s}=r(55765),c=r(7539),u=r(74225),l=r(26376),f=r(66902)},66902:function(e,t,r){class n{constructor(e,t){if(t=o(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!p(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&g(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=i.get(t);if(r)return r;const n=this.options.loose,o=n?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(o,M(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(u[l.COMPARATORTRIM],f),s("comparator trim",e,u[l.COMPARATORTRIM]),e=(e=(e=e.replace(u[l.TILDETRIM],d)).replace(u[l.CARETTRIM],h)).split(/\s+/).join(" ");const c=n?u[l.COMPARATORLOOSE]:u[l.COMPARATOR],g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options))).filter(this.options.loose?e=>!!e.match(c):()=>!0).map((e=>new a(e,this.options))),m=(g.length,new Map);for(const i of g){if(p(i))return[i];m.set(i.value,i)}m.size>1&&m.has("")&&m.delete("");const b=[...m.values()];return i.set(t,b),b}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>m(r,t)&&e.set.some((e=>m(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"===typeof e)try{e=new c(e,this.options)}catch(t){return!1}for(let r=0;r"<0.0.0-0"===e.value,g=e=>""===e.value,m=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},y=(e,t)=>(s("comp",e,t),e=x(e,t),s("caret",e),e=v(e,t),s("tildes",e),e=S(e,t),s("xrange",e),e=E(e,t),s("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{const r=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(r,((t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),b(r)?a="":b(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{s("caret",e,t);const r=t.loose?u[l.CARETLOOSE]:u[l.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,o,a)=>{let c;return s("caret",e,t,r,i,o,a),b(r)?c="":b(i)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(o)?c="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",c),c}))},S=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>A(e,t))).join(" ")),A=(e,t)=>{e=e.trim();const r=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(r,((r,n,i,o,a,c)=>{s("xRange",e,r,n,i,o,a,c);const u=b(i),l=u||b(o),f=l||b(a),d=f;return"="===n&&d&&(n=""),c=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(l&&(o=0),a=0,">"===n?(n=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",l?i=+i+1:o=+o+1),"<"===n&&(c="-0"),r=`${n+i}.${o}.${a}${c}`):l?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:f&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),s("xRange return",r),r}))},E=(e,t)=>(s("replaceStars",e,t),e.trim().replace(u[l.STAR],"")),k=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),M=e=>(t,r,n,i,o,a,s,c,u,l,f,d,h)=>`${r=b(n)?"":b(i)?`>=${n}.0.0${e?"-0":""}`:b(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=b(u)?"":b(l)?`<${+u+1}.0.0-0`:b(f)?`<${u}.${+l+1}.0-0`:d?`<=${u}.${l}.${f}-${d}`:e?`<${u}.${l}.${+f+1}-0`:`<=${c}`}`.trim(),C=(e,t,r)=>{for(let n=0;n0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},26376:function(e,t,r){const n=r(74225),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(83295),{re:a,t:s}=r(55765),c=r(12893),{compareIdentifiers:u}=r(86742);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"===typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},13507:function(e,t,r){const n=r(33959);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},7539:function(e,t,r){const n=r(58718),i=r(81194),o=r(71312),a=r(25903),s=r(21544),c=r(12056);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"===typeof e&&(e=e.version),"object"===typeof r&&(r=r.version),e===r;case"!==":return"object"===typeof e&&(e=e.version),"object"===typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return i(e,r,u);case">":return o(e,r,u);case">=":return a(e,r,u);case"<":return s(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},99038:function(e,t,r){const n=r(26376),i=r(33959),{re:o,t:a}=r(55765);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"===typeof e&&(e=String(e)),"string"!==typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else r=e.match(o[a.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},88880:function(e,t,r){const n=r(26376);e.exports=(e,t,r)=>{const i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)}},27880:function(e,t,r){const n=r(46269);e.exports=(e,t)=>n(e,t,!0)},46269:function(e,t,r){const n=r(26376);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},62378:function(e,t,r){const n=r(33959),i=r(58718);e.exports=(e,t)=>{if(i(e,t))return null;{const r=n(e),i=n(t),o=r.prerelease.length||i.prerelease.length,a=o?"pre":"",s=o?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==i[e])return a+e;return s}}},58718:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>0===n(e,t,r)},71312:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)>0},25903:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)>=0},20253:function(e,t,r){const n=r(26376);e.exports=(e,t,r,i)=>{"string"===typeof r&&(i=r,r=void 0);try{return new n(e,r).inc(t,i).version}catch(o){return null}}},21544:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)<0},12056:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)<=0},38679:function(e,t,r){const n=r(26376);e.exports=(e,t)=>new n(e,t).major},87789:function(e,t,r){const n=r(26376);e.exports=(e,t)=>new n(e,t).minor},81194:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>0!==n(e,t,r)},33959:function(e,t,r){const{MAX_LENGTH:n}=r(83295),{re:i,t:o}=r(55765),a=r(26376),s=r(12893);e.exports=(e,t)=>{if(t=s(t),e instanceof a)return e;if("string"!==typeof e)return null;if(e.length>n)return null;if(!(t.loose?i[o.LOOSE]:i[o.FULL]).test(e))return null;try{return new a(e,t)}catch(r){return null}}},52358:function(e,t,r){const n=r(26376);e.exports=(e,t)=>new n(e,t).patch},57559:function(e,t,r){const n=r(33959);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},79795:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>n(t,e,r)},63657:function(e,t,r){const n=r(88880);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},45712:function(e,t,r){const n=r(66902);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(i){return!1}return t.test(e)}},21100:function(e,t,r){const n=r(88880);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},76397:function(e,t,r){const n=r(33959);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},81249:function(e,t,r){const n=r(55765);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(83295).SEMVER_SPEC_VERSION,SemVer:r(26376),compareIdentifiers:r(86742).compareIdentifiers,rcompareIdentifiers:r(86742).rcompareIdentifiers,parse:r(33959),valid:r(76397),clean:r(13507),inc:r(20253),diff:r(62378),major:r(38679),minor:r(87789),patch:r(52358),prerelease:r(57559),compare:r(46269),rcompare:r(79795),compareLoose:r(27880),compareBuild:r(88880),sort:r(21100),rsort:r(63657),gt:r(71312),lt:r(21544),eq:r(58718),neq:r(81194),gte:r(25903),lte:r(12056),cmp:r(7539),coerce:r(99038),Comparator:r(22257),Range:r(66902),satisfies:r(45712),toComparators:r(51042),maxSatisfying:r(85775),minSatisfying:r(71657),minVersion:r(95316),validRange:r(89042),outside:r(6826),gtr:r(97606),ltr:r(50032),intersects:r(82937),simplifyRange:r(17908),subset:r(50799)}},83295:function(e){const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},74225:function(e,t,r){var n=r(34155);const i="object"===typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},86742:function(e){const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:er(t,e)}},12893:function(e){const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!==typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},55765:function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n}=r(83295),i=r(74225),o=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let c=0;const u=(e,t,r)=>{const n=c++;i(n,t),s[e]=n,a[n]=t,o[n]=new RegExp(t,r?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),u("FULL",`^${a[s.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),u("LOOSE",`^${a[s.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${a[s.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),u("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),u("COERCERTL",a[s.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},97606:function(e,t,r){const n=r(6826);e.exports=(e,t,r)=>n(e,t,">",r)},82937:function(e,t,r){const n=r(66902);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},50032:function(e,t,r){const n=r(6826);e.exports=(e,t,r)=>n(e,t,"<",r)},85775:function(e,t,r){const n=r(26376),i=r(66902);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(c){return null}return e.forEach((e=>{s.test(e)&&(o&&-1!==a.compare(e)||(o=e,a=new n(o,r)))})),o}},71657:function(e,t,r){const n=r(26376),i=r(66902);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(c){return null}return e.forEach((e=>{s.test(e)&&(o&&1!==a.compare(e)||(o=e,a=new n(o,r)))})),o}},95316:function(e,t,r){const n=r(26376),i=r(66902),o=r(71312);e.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let i=0;i{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||r&&!o(r,a)||(r=a)}return r&&e.test(r)?r:null}},6826:function(e,t,r){const n=r(26376),i=r(22257),{ANY:o}=i,a=r(66902),s=r(45712),c=r(71312),u=r(21544),l=r(12056),f=r(25903);e.exports=(e,t,r,d)=>{let h,p,g,m,y;switch(e=new n(e,d),t=new a(t,d),r){case">":h=c,p=l,g=u,m=">",y=">=";break;case"<":h=u,p=f,g=c,m="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,d))return!1;for(let n=0;n{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,h(e.semver,a.semver,d)?a=e:g(e.semver,s.semver,d)&&(s=e)})),a.operator===m||a.operator===y)return!1;if((!s.operator||s.operator===m)&&p(e,s.semver))return!1;if(s.operator===y&&g(e,s.semver))return!1}return!0}},17908:function(e,t,r){const n=r(45712),i=r(46269);e.exports=(e,t,r)=>{const o=[];let a=null,s=null;const c=e.sort(((e,t)=>i(e,t,r)));for(const i of c){n(i,t,r)?(s=i,a||(a=i)):(s&&o.push([a,s]),s=null,a=null)}a&&o.push([a,null]);const u=[];for(const[n,i]of o)n===i?u.push(n):i||n!==c[0]?i?n===c[0]?u.push(`<=${i}`):u.push(`${n} - ${i}`):u.push(`>=${n}`):u.push("*");const l=u.join(" || "),f="string"===typeof t.raw?t.raw:String(t);return l.length{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=[new i(">=0.0.0")]}const n=new Set;let c,f,d,h,p,g,m;for(const i of e)">"===i.operator||">="===i.operator?c=u(c,i,r):"<"===i.operator||"<="===i.operator?f=l(f,i,r):n.add(i.semver);if(n.size>1)return null;if(c&&f){if(d=s(c.semver,f.semver,r),d>0)return null;if(0===d&&(">="!==c.operator||"<="!==f.operator))return null}for(const i of n){if(c&&!a(i,String(c),r))return null;if(f&&!a(i,String(f),r))return null;for(const e of t)if(!a(i,String(e),r))return!1;return!0}let y=!(!f||r.includePrerelease||!f.semver.prerelease.length)&&f.semver,b=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver;y&&1===y.prerelease.length&&"<"===f.operator&&0===y.prerelease[0]&&(y=!1);for(const i of t){if(m=m||">"===i.operator||">="===i.operator,g=g||"<"===i.operator||"<="===i.operator,c)if(b&&i.semver.prerelease&&i.semver.prerelease.length&&i.semver.major===b.major&&i.semver.minor===b.minor&&i.semver.patch===b.patch&&(b=!1),">"===i.operator||">="===i.operator){if(h=u(c,i,r),h===i&&h!==c)return!1}else if(">="===c.operator&&!a(c.semver,String(i),r))return!1;if(f)if(y&&i.semver.prerelease&&i.semver.prerelease.length&&i.semver.major===y.major&&i.semver.minor===y.minor&&i.semver.patch===y.patch&&(y=!1),"<"===i.operator||"<="===i.operator){if(p=l(f,i,r),p===i&&p!==f)return!1}else if("<="===f.operator&&!a(f.semver,String(i),r))return!1;if(!i.operator&&(f||c)&&0!==d)return!1}return!(c&&g&&!f&&0!==d)&&(!(f&&m&&!c&&0!==d)&&(!b&&!y))},u=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;e:for(const n of e.set){for(const e of t.set){const t=c(n,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},51042:function(e,t,r){const n=r(66902);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},89042:function(e,t,r){const n=r(66902);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(r){return null}}},66644:function(e){"use strict";e.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=t[r]);return e})},24189:function(e,t,r){var n=r(89509).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"===typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},89072:function(e,t,r){var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(74448),n.sha1=r(18336),n.sha224=r(48432),n.sha256=r(67499),n.sha384=r(51686),n.sha512=r(87816)},74448:function(e,t,r){var n=r(35717),i=r(24189),o=r(89509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16];for(var d=0;d<80;++d){var h=~~(d/20),p=0|((t=n)<<5|t>>>27)+l(h,i,o,s)+c+r[d]+a[h];c=s,s=o,o=u(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},18336:function(e,t,r){var n=r(35717),i=r(24189),o=r(89509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),g=u(n)+f(p,i,o,s)+c+r[h]+a[p]|0;c=s,s=o,o=l(i),i=n,n=g}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},48432:function(e,t,r){var n=r(35717),i=r(67499),o=r(24189),a=r(89509).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},67499:function(e,t,r){var n=r(35717),i=r(24189),o=r(89509).Buffer,a=[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],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,g=0|this._g,m=0|this._h,y=0;y<16;++y)r[y]=e.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((t=r[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[y-7]+h(r[y-15])+r[y-16];for(var b=0;b<64;++b){var v=m+d(c)+u(c,p,g)+a[b]+r[b]|0,w=f(n)+l(n,i,o)|0;m=g,g=p,p=c,c=s+v|0,s=o,o=i,i=n,n=v+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=g+this._g|0,this._h=m+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},51686:function(e,t,r){var n=r(35717),i=r(87816),o=r(24189),a=r(89509).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},87816:function(e,t,r){var n=r(35717),i=r(24189),o=r(89509).Buffer,a=[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],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,b=0|this._gh,v=0|this._hh,w=0|this._al,x=0|this._bl,_=0|this._cl,S=0|this._dl,A=0|this._el,E=0|this._fl,k=0|this._gl,M=0|this._hl,C=0;C<32;C+=2)t[C]=e.readInt32BE(4*C),t[C+1]=e.readInt32BE(4*C+4);for(;C<160;C+=2){var T=t[C-30],I=t[C-30+1],O=h(T,I),P=p(I,T),R=g(T=t[C-4],I=t[C-4+1]),B=m(I,T),N=t[C-14],L=t[C-14+1],j=t[C-32],D=t[C-32+1],U=P+L|0,F=O+N+y(U,P)|0;F=(F=F+R+y(U=U+B|0,B)|0)+j+y(U=U+D|0,D)|0,t[C]=F,t[C+1]=U}for(var H=0;H<160;H+=2){F=t[H],U=t[H+1];var z=l(r,n,i),q=l(w,x,_),V=f(r,w),W=f(w,r),G=d(s,A),K=d(A,s),Z=a[H],X=a[H+1],Y=u(s,c,b),J=u(A,E,k),Q=M+K|0,$=v+G+y(Q,M)|0;$=($=($=$+Y+y(Q=Q+J|0,J)|0)+Z+y(Q=Q+X|0,X)|0)+F+y(Q=Q+U|0,U)|0;var ee=W+q|0,te=V+z+y(ee,W)|0;v=b,M=k,b=c,k=E,c=s,E=A,s=o+$+y(A=S+Q|0,S)|0,o=i,S=_,i=n,_=x,n=r,x=w,r=$+te+y(w=Q+ee|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+x|0,this._cl=this._cl+_|0,this._dl=this._dl+S|0,this._el=this._el+A|0,this._fl=this._fl+E|0,this._gl=this._gl+k|0,this._hl=this._hl+M|0,this._ah=this._ah+r+y(this._al,w)|0,this._bh=this._bh+n+y(this._bl,x)|0,this._ch=this._ch+i+y(this._cl,_)|0,this._dh=this._dh+o+y(this._dl,S)|0,this._eh=this._eh+s+y(this._el,A)|0,this._fh=this._fh+c+y(this._fl,E)|0,this._gh=this._gh+b+y(this._gl,k)|0,this._hh=this._hh+v+y(this._hl,M)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},96774:function(e){e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},58971:function(e,t,r){var n=r(62195),i=r(39015),o=[r(19257)];e.exports=n.createStore(i,o)},19257:function(e,t,r){e.exports=function(){return r(55703),{}}},55703:function(){"object"!==typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,(function(e){var t=meta[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function str(e,t){var r,n,i,o,a,s=gap,c=t[e];switch(c&&"object"===typeof c&&"function"===typeof c.toJSON&&(c=c.toJSON(e)),"function"===typeof rep&&(c=rep.call(t,e,c)),typeof c){case"string":return quote(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(c)){for(o=c.length,r=0;r=0;r--)if(o(t[r])){var n=t[r].split("="),i=unescape(n[0]);e(unescape(n[1]),i)}}function c(e){e&&u(e)&&(a.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function u(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(a.cookie)}},39627:function(e,t,r){var n=r(69078).Global;function i(){return n.localStorage}function o(e){return i().getItem(e)}e.exports={name:"localStorage",read:o,write:function(e,t){return i().setItem(e,t)},each:function(e){for(var t=i().length-1;t>=0;t--){var r=i().key(t);e(o(r),r)}},remove:function(e){return i().removeItem(e)},clearAll:function(){return i().clear()}}},8728:function(e){e.exports={name:"memoryStorage",read:function(e){return t[e]},write:function(e,r){t[e]=r},each:function(e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)},remove:function(e){delete t[e]},clearAll:function(e){t={}}};var t={}},95347:function(e,t,r){var n=r(69078).Global;e.exports={name:"oldFF-globalStorage",read:function(e){return i[e]},write:function(e,t){i[e]=t},each:o,remove:function(e){return i.removeItem(e)},clearAll:function(){o((function(e,t){delete i[e]}))}};var i=n.globalStorage;function o(e){for(var t=i.length-1;t>=0;t--){var r=i.key(t);e(i[r],r)}}},34524:function(e,t,r){var n=r(69078).Global;e.exports={name:"oldIE-userDataStorage",write:function(e,t){if(s)return;var r=u(e);a((function(e){e.setAttribute(r,t),e.save(i)}))},read:function(e){if(s)return;var t=u(e),r=null;return a((function(e){r=e.getAttribute(t)})),r},each:function(e){a((function(t){for(var r=t.XMLDocument.documentElement.attributes,n=r.length-1;n>=0;n--){var i=r[n];e(t.getAttribute(i.name),i.name)}}))},remove:function(e){var t=u(e);a((function(e){e.removeAttribute(t),e.save(i)}))},clearAll:function(){a((function(e){var t=e.XMLDocument.documentElement.attributes;e.load(i);for(var r=t.length-1;r>=0;r--)e.removeAttribute(t[r].name);e.save(i)}))}};var i="storejs",o=n.document,a=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var e,t,r;try{(t=new ActiveXObject("htmlfile")).open(),t.write('',r+="";for(var n=0;n";for(var i=0;i';r+=""}return(r+="")+"
"},y.createSvgTag=function(e,t,r,n){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,r=i.alt,n=i.title),e=e||2,t=void 0===t?4*e:t,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-title":null;var o,a,s,c,u=y.getModuleCount()*e+2*t,l="";for(c="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",l+=''+M(n.text)+"":"",l+=r.text?''+M(r.text)+"":"",l+='',l+='"},y.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var r=y.getModuleCount()*e+2*t,n=t,i=r-t;return b(r,r,(function(t,r){if(n<=t&&t"};var M=function(e){for(var t="",r=0;r":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=n}}return t};return y.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,r,n,i,o,a=1*y.getModuleCount()+2*e,s=e,c=a-e,u={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},l={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},f="";for(t=0;t=c?l[o]:u[o];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("\u2580"):f.substring(0,f.length-1)}(t);e-=1,t=void 0===t?2*e:t;var r,n,i,o,a=y.getModuleCount()*e+2*t,s=t,c=a-t,u=Array(e+1).join("\u2588\u2588"),l=Array(e+1).join(" "),f="",d="";for(r=0;r>>8),t.push(255&a)):t.push(n)}}return t}};var t,r,n,i,o,a={L:1,M:0,Q:3,H:2},s=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],r=1335,n=7973,o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(i={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(r)>=0;)t^=r<=0;)t^=n<5&&(r+=3+o-5)}for(n=0;n=256;)t-=255;return e[t]}}}();function u(e,t){if(void 0===e.length)throw e.length+"/"+t;var r=function(){for(var r=0;r>>7-t%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return t},putBit:function(r){var n=Math.floor(t/8);e.length<=n&&e.push(0),r&&(e[n]|=128>>>t%8),t+=1}};return r},d=function(e){var t=e,r={getMode:function(){return 1},getLength:function(e){return t.length},write:function(e){for(var r=t,i=0;i+2>>8&255)+(255&i),e.put(i,13),r+=2}if(r>>8)},writeBytes:function(e,r,n){r=r||0,n=n||e.length;for(var i=0;i0&&(t+=","),t+=e[r];return t+"]"}};return t},y=function(e){var t=e,r=0,n=0,i=0,o={read:function(){for(;i<8;){if(r>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(r);if(r+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(n=n<<6|a(e.charCodeAt(0)),i+=6)}var o=n>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},b=function(e,t,r){for(var n=function(e,t){var r=e,n=t,i=new Array(e*t),o={setPixel:function(e,t,n){i[t*r+e]=n},write:function(e){e.writeString("GIF87a"),e.writeShort(r),e.writeShort(n),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(r),e.writeShort(n),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<>>t!=0)throw"length over";for(;u+t>=8;)c.writeByte(255&(e<>>=8-u,l=0,u=0;l|=e<0&&c.writeByte(l)}});d.write(t,n);var h=0,p=String.fromCharCode(i[h]);for(h+=1;h=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),r%3!=0)for(var i=3-r%3,a=0;a>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}(e)},void 0===(n="function"==typeof(r=function(){return i})?r.apply(t,[]):r)||(e.exports=n)},676:(e,t,r)=>{"use strict";r.d(t,{default:()=>R});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2||o&&a||s&&c)this._basicSquare({x:t,y:r,size:n,rotation:0});else{if(2===u){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&c&&(l=-Math.PI/2),void this._basicCornerRounded({x:t,y:r,size:n,rotation:l})}if(1===u)return l=0,s?l=Math.PI/2:a?l=Math.PI:c&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:r,size:n,rotation:l})}else this._basicDot({x:t,y:r,size:n,rotation:0})},e.prototype._drawExtraRounded=function(e){var t=e.x,r=e.y,n=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,c=i?+i(0,1):0,u=o+a+s+c;if(0!==u)if(u>2||o&&a||s&&c)this._basicSquare({x:t,y:r,size:n,rotation:0});else{if(2===u){var l=0;return o&&s?l=Math.PI/2:s&&a?l=Math.PI:a&&c&&(l=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:r,size:n,rotation:l})}if(1===u)return l=0,s?l=Math.PI/2:a?l=Math.PI:c&&(l=-Math.PI/2),void this._basicSideRounded({x:t,y:r,size:n,rotation:l})}else this._basicDot({x:t,y:r,size:n,rotation:0})},e.prototype._drawClassy=function(e){var t=e.x,r=e.y,n=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,c=i?+i(0,1):0;0!==o+a+s+c?o||s?a||c?this._basicSquare({x:t,y:r,size:n,rotation:0}):this._basicCornerRounded({x:t,y:r,size:n,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:r,size:n,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:r,size:n,rotation:Math.PI/2})},e.prototype._drawClassyRounded=function(e){var t=e.x,r=e.y,n=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,c=i?+i(0,1):0;0!==o+a+s+c?o||s?a||c?this._basicSquare({x:t,y:r,size:n,rotation:0}):this._basicCornerExtraRounded({x:t,y:r,size:n,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:r,size:n,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:r,size:n,rotation:Math.PI/2})},e}();var d=function(){return(d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]n||i&&i=(t-o.hideXDots)/2&&e<(t+o.hideXDots)/2&&r>=(t-o.hideYDots)/2&&r<(t+o.hideYDots)/2||(null===(n=v[e])||void 0===n?void 0:n[r])||(null===(i=v[e-t+7])||void 0===i?void 0:i[r])||(null===(a=v[e])||void 0===a?void 0:a[r-t+7])||(null===(s=w[e])||void 0===s?void 0:s[r])||(null===(c=w[e-t+7])||void 0===c?void 0:c[r])||(null===(u=w[e])||void 0===u?void 0:u[r-t+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:t,dotSize:i})]:[3,4];case 3:h.sent(),h.label=4;case 4:return[2]}}))}))},e.prototype.drawBackground=function(){var e,t,r,n=this._element,i=this._options;if(n){var o=null===(e=i.backgroundOptions)||void 0===e?void 0:e.gradient,a=null===(t=i.backgroundOptions)||void 0===t?void 0:t.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"background-color"}),null===(r=i.backgroundOptions)||void 0===r?void 0:r.round){var s=Math.min(i.width,i.height),c=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),c.setAttribute("x",String((i.width-s)/2)),c.setAttribute("y",String((i.height-s)/2)),c.setAttribute("width",String(s)),c.setAttribute("height",String(s)),c.setAttribute("rx",String(s/2*i.backgroundOptions.round)),this._backgroundClipPath.appendChild(c)}}},e.prototype.drawDots=function(e){var t,r,n=this;if(!this._qr)throw"QR code is not defined";var i=this._options,o=this._qr.getModuleCount();if(o>i.width||o>i.height)throw"The canvas is too small.";var a=Math.min(i.width,i.height)-2*i.margin,s=i.shape===m?a/Math.sqrt(2):a,c=Math.floor(s/o),u=Math.floor((i.width-o*c)/2),l=Math.floor((i.height-o*c)/2),d=new f({svg:this._element,type:i.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(t=i.dotsOptions)||void 0===t?void 0:t.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"dot-color"});for(var h=function(t){for(var i=function(i){return e&&!e(t,i)?"continue":(null===(r=p._qr)||void 0===r?void 0:r.isDark(t,i))?(d.draw(u+t*c,l+i*c,c,(function(r,a){return!(t+r<0||i+a<0||t+r>=o||i+a>=o)&&!(e&&!e(t+r,i+a))&&!!n._qr&&n._qr.isDark(t+r,i+a)})),void(d._element&&p._dotsClipPath&&p._dotsClipPath.appendChild(d._element))):"continue"},a=0;a=y-1&&g<=b-y&&S>=y-1&&S<=b-y||Math.sqrt((g-_)*(g-_)+(S-_)*(S-_))>_?x[g][S]=0:x[g][S]=this._qr.isDark(S-2*y<0?S:S>=o?S-2*y:S-y,g-2*y<0?g:g>=o?g-2*y:g-y)?1:0}var A=function(e){for(var t=function(t){if(!x[e][t])return"continue";d.draw(v+e*c,w+t*c,c,(function(r,n){var i;return!!(null===(i=x[e+r])||void 0===i?void 0:i[t+n])})),d._element&&E._dotsClipPath&&E._dotsClipPath.appendChild(d._element)},r=0;ra?s:a,l=document.createElementNS("http://www.w3.org/2000/svg","rect");if(l.setAttribute("x",String(i)),l.setAttribute("y",String(o)),l.setAttribute("height",String(a)),l.setAttribute("width",String(s)),l.setAttribute("clip-path","url('#clip-path-"+c+"')"),t){var f;if("radial"===t.type)(f=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",c),f.setAttribute("gradientUnits","userSpaceOnUse"),f.setAttribute("fx",String(i+s/2)),f.setAttribute("fy",String(o+a/2)),f.setAttribute("cx",String(i+s/2)),f.setAttribute("cy",String(o+a/2)),f.setAttribute("r",String(u/2));else{var d=((t.rotation||0)+n)%(2*Math.PI),h=(d+2*Math.PI)%(2*Math.PI),p=i+s/2,g=o+a/2,m=i+s/2,y=o+a/2;h>=0&&h<=.25*Math.PI||h>1.75*Math.PI&&h<=2*Math.PI?(p-=s/2,g-=a/2*Math.tan(d),m+=s/2,y+=a/2*Math.tan(d)):h>.25*Math.PI&&h<=.75*Math.PI?(g-=a/2,p-=s/2/Math.tan(d),y+=a/2,m+=s/2/Math.tan(d)):h>.75*Math.PI&&h<=1.25*Math.PI?(p+=s/2,g+=a/2*Math.tan(d),m-=s/2,y-=a/2*Math.tan(d)):h>1.25*Math.PI&&h<=1.75*Math.PI&&(g+=a/2,p+=s/2/Math.tan(d),y-=a/2,m-=s/2/Math.tan(d)),(f=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",c),f.setAttribute("gradientUnits","userSpaceOnUse"),f.setAttribute("x1",String(Math.round(p))),f.setAttribute("y1",String(Math.round(g))),f.setAttribute("x2",String(Math.round(m))),f.setAttribute("y2",String(Math.round(y)))}t.colorStops.forEach((function(e){var t=e.offset,r=e.color,n=document.createElementNS("http://www.w3.org/2000/svg","stop");n.setAttribute("offset",100*t+"%"),n.setAttribute("stop-color",r),f.appendChild(n)})),l.setAttribute("fill","url('#"+c+"')"),this._defs.appendChild(f)}else r&&l.setAttribute("fill",r);this._element.appendChild(l)},e}(),_="canvas";for(var S={},A=0;A<=40;A++)S[A]=A;const E={type:_,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:S[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var k=function(){return(k=Object.assign||function(e){for(var t,r=1,n=arguments.length;rMath.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=k({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=M(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=k({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=M(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=k({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=M(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=k({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=M(t.backgroundOptions.gradient))),t}var T=r(192),I=r.n(T),O=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},P=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]\r\n'+n],{type:"image/svg+xml"})]):[2,new Promise((function(r){return t.toBlob(r,"image/"+e,1)}))]:[2,null]}}))}))},e.prototype.download=function(e){return O(this,void 0,void 0,(function(){var t,r,n,i,o;return P(this,(function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return t="png",r="qr","string"==typeof e?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof e&&null!==e&&(e.name&&(r=e.name),e.extension&&(t=e.extension)),[4,this._getElement(t)];case 1:return(n=a.sent())?("svg"===t.toLowerCase()?(i=new XMLSerializer,o='\r\n'+(o=i.serializeToString(n)),s("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),r+".svg")):s(n.toDataURL("image/"+t),r+"."+t),[2]):[2]}}))}))},e}()}},t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r(676)})().default},3655:function(e,t,r){var n=r(32792);function i(e){this.mode=n.MODE_8BIT_BYTE,this.data=e}i.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t>>7-e%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},49381:function(e){e.exports={L:1,M:0,Q:3,H:2}},32832:function(e,t,r){var n=r(11518);function i(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var r=0;r=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=c.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},u.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=a.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},u.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var i=0;i>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},u.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=a.getBCHTypeInfo(r),i=0;i<15;i++){var o=!e&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++){o=!e&&1==(n>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var c=0;c<2;c++)if(null==this.modules[n][s-c]){var u=!1;o>>i&1)),a.getMask(t,n,s-c)&&(u=!u),this.modules[n][s-c]=u,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},c.PAD0=236,c.PAD1=17,c.createData=function(e,t,r){for(var n=i.getRSBlocks(e,t),s=new o,u=0;u8*f)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*f+")");for(s.getLengthInBits()+4<=8*f&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*f)&&(s.put(c.PAD0,8),!(s.getLengthInBits()>=8*f));)s.put(c.PAD1,8);return c.createBytes(s,n)},c.createBytes=function(e,t){for(var r=0,n=0,i=0,o=new Array(t.length),c=new Array(t.length),u=0;u=0?p.get(g):0}}var m=0;for(d=0;d=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},r=0;r<8;r++)t.EXP_TABLE[r]=1<=0;)t^=p.G15<=0;)t^=p.G18<>>=1;return t},getPatternPosition:function(e){return p.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case a:return(t+r)%2==0;case s:return t%2==0;case c:return r%3==0;case u:return(t+r)%3==0;case l:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case f:return t*r%2+t*r%3==0;case d:return(t*r%2+t*r%3)%2==0;case h:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),r=0;r5&&(r+=3+o-5)}for(n=0;n>>7-e%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},73280:function(e,t,r){var n=r(99131);function i(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=n.alloc(e*e),this.reservedBit=n.alloc(e*e)}i.prototype.set=function(e,t,r,n){var i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)},i.prototype.get=function(e,t){return this.data[e*this.size+t]},i.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},i.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=i},43424:function(e,t,r){var n=r(99131),i=r(76910);function o(e){this.mode=i.BYTE,this.data=n.from(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(var t=0,r=this.data.length;t=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(n){return r}}},76526:function(e,t,r){var n=r(10242).getSymbolSize;t.getPositions=function(e){var t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},61642:function(e,t,r){var n=r(10242),i=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){for(var r=e.bit<<3|t,o=r<<10;n.getBCHDigit(o)-i>=0;)o^=1335<=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13)}},e.exports=o},27126:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r=3,n=3,i=40,o=10;function a(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2===0;case t.Patterns.PATTERN001:return r%2===0;case t.Patterns.PATTERN010:return n%3===0;case t.Patterns.PATTERN011:return(r+n)%3===0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2===0;case t.Patterns.PATTERN101:return r*n%2+r*n%3===0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2===0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,n=0,i=0,o=0,a=null,s=null,c=0;c=5&&(n+=r+(i-5)),a=l,i=1),(l=e.get(u,c))===s?o++:(o>=5&&(n+=r+(o-5)),s=l,o=1)}i>=5&&(n+=r+(i-5)),o>=5&&(n+=r+(o-5))}return n},t.getPenaltyN2=function(e){for(var t=e.size,r=0,i=0;i=10&&(1488===n||93===n)&&r++,o=o<<1&2047|e.get(s,a),s>=10&&(1488===o||93===o)&&r++}return r*i},t.getPenaltyN4=function(e){for(var t=0,r=e.data.length,n=0;n=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(n){return r}}},41085:function(e,t,r){var n=r(76910);function i(e){this.mode=n.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t,r,n;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),n=parseInt(r,10),e.put(n,10);var i=this.data.length-t;i>0&&(r=this.data.substr(t),n=parseInt(r,10),e.put(n,3*i+1))},e.exports=i},26143:function(e,t,r){var n=r(99131),i=r(69729);t.mul=function(e,t){for(var r=n.alloc(e.length+t.length-1),o=0;o=0;){for(var o=r[0],a=0;a>n&1),n<6?e.set(n,8,i,!0):n<8?e.set(n+1,8,i,!0):e.set(o-15+n,8,i,!0),n<8?e.set(8,o-n-1,i,!0):n<9?e.set(8,15-n-1+1,i,!0):e.set(8,15-n-1,i,!0);e.set(o-8,8,1,!0)}function v(e,t,r){var o=new a;r.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),g.getCharCountIndicator(t.mode,e)),t.write(o)}));var s=8*(i.getSymbolTotalCodewords(e)-f.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);for(var c=(s-o.getLengthInBits())/8,u=0;u=0&&s<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===s||6===s)||s>=2&&s<=4&&c>=2&&c<=4?e.set(o+s,a+c,!0,!0):e.set(o+s,a+c,!1,!0))}(w,t),function(e){for(var t=e.size,r=8;r=7&&function(e,t){for(var r,n,i,o=e.size,a=h.getEncodedBits(t),s=0;s<18;s++)r=Math.floor(s/3),n=s%3+o-8-3,i=1===(a>>s&1),e.set(r,n,i,!0),e.set(n,r,i,!0)}(w,t),function(e,t){for(var r=e.size,n=-1,i=r-1,o=7,a=0,s=r-1;s>0;s-=2)for(6===s&&s--;;){for(var c=0;c<2;c++)if(!e.isReserved(i,s-c)){var u=!1;a>>o&1)),e.set(i,s-c,u),-1===--o&&(a++,o=7)}if((i+=n)<0||r<=i){i-=n,n=-n;break}}}(w,p),isNaN(n)&&(n=l.getBestMask(w,b.bind(null,w,r))),l.applyMask(n,w),b(w,r,n),{modules:w,version:t,errorCorrectionLevel:r,maskPattern:n,segments:o}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");var r,n,a=o.M;return"undefined"!==typeof t&&(a=o.from(t.errorCorrectionLevel,o.M),r=h.from(t.version),n=l.from(t.maskPattern),t.toSJISFunc&&i.setToSJISFunction(t.toSJISFunc)),w(e,r,a,n)}},52882:function(e,t,r){var n=r(99131),i=r(26143),o=r(48764).Buffer;function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=i.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=n.alloc(this.degree),r=o.concat([e,t],e.length+this.degree),a=i.mod(r,this.genPoly),s=this.degree-a.length;if(s>0){var c=n.alloc(this.degree);return a.copy(c,s),c}return a},e.exports=a},7007:function(e,t){var r="[0-9]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(i,"g"),t.NUMERIC=new RegExp(r,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var o=new RegExp("^"+n+"$"),a=new RegExp("^[0-9]+$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},16130:function(e,t,r){var n=r(76910),i=r(41085),o=r(8260),a=r(43424),s=r(35442),c=r(7007),u=r(10242),l=r(65987);function f(e){return unescape(encodeURIComponent(e)).length}function d(e,t,r){for(var n,i=[];null!==(n=e.exec(r));)i.push({data:n[0],index:n.index,mode:t,length:n[0].length});return i}function h(e){var t,r,i=d(c.NUMERIC,n.NUMERIC,e),o=d(c.ALPHANUMERIC,n.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=d(c.BYTE,n.BYTE,e),r=d(c.KANJI,n.KANJI,e)):(t=d(c.BYTE_KANJI,n.BYTE,e),r=[]),i.concat(o,t,r).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function p(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return o.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function g(e,t){var r,c=n.getBestModeForData(e);if((r=n.from(t,c))!==n.BYTE&&r.bit=0?e[e.length-1]:null;return r&&r.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(a))},t.rawSplit=function(e){return t.fromArray(h(e,u.isKanjiModeEnabled()))}},10242:function(e,t){var r,n=[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];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof r},t.toSJIS=function(e){return r(e)}},43114:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},23103:function(e,t,r){var n=r(10242),i=r(35393),o=r(64908),a=r(76910),s=r(43114),c=r(55147),u=n.getBCHDigit(7973);function l(e,t){return a.getCharCountIndicator(e,t)+4}function f(e,t){var r=0;return e.forEach((function(e){var n=l(e.mode,t);r+=n+e.getBitsLength()})),r}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof r&&(r=a.BYTE);var o=8*(n.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t));if(r===a.MIXED)return o;var c=o-l(r,e);switch(r){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,r){var n,i=o.from(r,o.M);if(c(e)){if(e.length>1)return function(e,r){for(var n=1;n<=40;n++)if(f(e,n)<=t.getCapacity(n,r,a.MIXED))return n}(e,i);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(var i=1;i<=40;i++)if(r<=t.getCapacity(i,n,e))return i}(n.mode,n.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;n.getBCHDigit(t)-u>=0;)t^=7973<':"",f="0&&u>0&&e[c-1]||(n+=a?o("M",u+r,.5+l+r):o("m",i,0),i=0,a=!1),u+1',d='viewBox="0 0 '+u+" "+u+'"',h=''+l+f+"\n";return"function"===typeof r&&r(null,h),h}},89653:function(e,t){function r(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){var n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){for(var i=r.modules.size,o=r.modules.data,a=t.getScale(i,n),s=Math.floor((i+2*n.margin)*a),c=n.margin*a,u=[n.color.light,n.color.dark],l=0;l=c&&f>=c&&l=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function s(e,t){var r;return o.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(t)).__proto__=o.prototype:(null===(r=e)&&(r=new o(t)),r.length=t),r}function c(e,t){var r=s(e,t<0?0:0|a(t));if(!o.TYPED_ARRAY_SUPPORT)for(var n=0;n55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function f(e){return o.isBuffer(e)?e.length:"undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!==typeof e&&(e=""+e),0===e.length?0:l(e).length)}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(e,t,r){void 0===t||void 0===r&&"string"===typeof t?(r=this.length,t=0):isFinite(t)&&(t|=0,isFinite(r)?r|=0:r=void 0);var n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,r,n){return function(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}(l(t,e.length-r),e,r,n)}(this,e,t,r)},o.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(i=t;iNumber(e)-Number(t))).map((t=>e[t])):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const i="string"===typeof r&&r.split("").indexOf(e.arrayFormatSeparator)>-1?r.split(e.arrayFormatSeparator).map((t=>c(t,e))):null===r?r:c(r,e);n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const i of e.split("&")){let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:c(a,t),r(c(e,t),a,n)}for(const i of Object.keys(n)){const e=n[i];if("object"===typeof e&&null!==e)for(const r of Object.keys(e))e[r]=d(e[r],t);else n[i]=d(e,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?e[t]=u(r):e[t]=r,e}),Object.create(null))}t.extract=f,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>{return t.skipNull&&(null===(n=e[r])||void 0===n)||t.skipEmptyString&&""===e[r];var n},n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[s(t,e),"[",i,"]"].join("")]:[...r,[s(t,e),"[",s(i,e),"]=",s(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[s(t,e),"[]"].join("")]:[...r,[s(t,e),"[]=",s(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>null===n||void 0===n||0===n.length?r:0===r.length?[[s(t,e),"=",s(n,e)].join("")]:[[r,s(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,s(t,e)]:[...r,[s(t,e),"=",s(n,e)].join("")]}}(t),i={};for(const a of Object.keys(e))r(a)||(i[a]=e[a]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((r=>{const i=e[r];return void 0===i?"":null===i?s(r,t):Array.isArray(i)?i.reduce(n(r),[]).join("&"):s(r,t)+"="+s(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:h(f(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:c(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0},r);const n=l(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let c=t.stringify(a,r);c&&(c=`?${c}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${s(e.fragmentIdentifier,r)}`),`${n}${c}${u}`}},62587:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!==typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"===typeof i.maxKeys&&(s=i.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u=0?(l=p.substr(0,g),f=p.substr(g+1)):(l=p,f=""),d=decodeURIComponent(l),h=decodeURIComponent(f),t(o,d)?Array.isArray(o[d])?o[d].push(h):o[d]=[o[d],h]:o[d]=h}return o}},12361:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,i){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+n;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[i]))})).filter(Boolean).join(r):i?encodeURIComponent(t(i))+n+encodeURIComponent(t(e)):""}},17673:function(e,t,r){"use strict";t.decode=t.parse=r(62587),t.encode=t.stringify=r(12361)},54375:function(e){let t;e.exports="function"===typeof queueMicrotask?queueMicrotask:e=>(t||(t=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},61798:function(e,t,r){"use strict";var n=r(34155),i=65536,o=4294967295;var a=r(89509).Buffer,s=r.g.crypto||r.g.msCrypto;s&&s.getRandomValues?e.exports=function(e,t){if(e>o)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>i)for(var c=0;cu||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function f(e,t,r){if("number"!==typeof e||e!==e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>s)throw new RangeError("buffer too small")}function d(e,t,r,i){var o=e.buffer,a=new Uint8Array(o,t,r);return c.getRandomValues(a),i?void n.nextTick((function(){i(null,e)})):e}c&&c.getRandomValues?(t.randomFill=function(e,t,n,i){if(!a.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof t)i=t,t=0,n=e.length;else if("function"===typeof n)i=n,n=e.length-t;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return l(t,e.length),f(n,t,e.length),d(e,t,n,i)},t.randomFillSync=function(e,t,n){"undefined"===typeof t&&(t=0);if(!a.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(t,e.length),void 0===n&&(n=e.length-t);return f(n,t,e.length),d(e,t,n)}):(t.randomFill=i,t.randomFillSync=i)},95397:function(e,t,r){"use strict";function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};u=s(s({},u),e)}(e.options.react),function(e){c=e}(e)}}},69921:function(e,t){"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case g:case c:return e;default:return t}}case i:return t}}}function _(e){return x(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return _(e)||x(e)===l},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},59864:function(e,t,r){"use strict";e.exports=r(69921)},94281:function(e){"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"===typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,a,s;if("string"===typeof t&&(o="not ",t.substr(!a||a<0?0:+a,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=function(e,t,r){return"number"!==typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},56753:function(e,t,r){"use strict";var n=r(34155),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(79481),a=r(64229);r(35717)(l,o);for(var s=i(a.prototype),c=0;c0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)a.endEmitted?_(e,new x):M(e,a,t,!0);else if(a.ended)_(e,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?M(e,a,t,!1):P(e,a)):M(e,a,t,!1)}else n||(a.reading=!1,P(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function I(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(O,e))}function O(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,j(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){u("readable nexttick read 0"),e.read(0)}function L(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function U(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):I(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){_(this,new w("_read()"))},E.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,u("pipe count=%d opts=%j",n.pipesCount,t);var a=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:m;function s(t,i){u("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,u("cleanup"),e.removeListener("close",p),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",d),f=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){u("onend"),e.end()}n.endEmitted?i.nextTick(a):r.once("end",a),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,j(e))}}(r);e.on("drain",l);var f=!1;function d(t){u("ondata");var i=e.write(t);u("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==H(n.pipes,e))&&!f&&(u("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){u("onerror",t),m(),e.removeListener("error",h),0===o(e,"error")&&_(e,t)}function p(){e.removeListener("finish",g),m()}function g(){u("onfinish"),e.removeListener("close",p),m()}function m(){u("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",g),e.emit("pipe",r),n.flowing||(u("pipe resume"),r.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,u("on readable",n.length,n.reading),n.length?I(this):n.reading||i.nextTick(N,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(B,this),r},E.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(B,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(L,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(u("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new g("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var n=this._writableState;return"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,O(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}},45850:function(e,t,r){"use strict";var n,i=r(34155);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(8610),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[s]=null,e[c]=null,t(p(r,!1)))}}function m(e){i.nextTick(g,e)}var y=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[u]?r(e[u]):t(p(void 0,!0))}))}));var r,n=this[f];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[l]?r(p(void 0,!0)):t[d](r,n)}),n)}}(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[d])}return this[f]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(b,(o(t={},h,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,l,{value:e._readableState.endEmitted,writable:!0}),o(t,d,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[s]=null,r[c]=null,e(p(n,!1))):(r[s]=e,r[c]=t)},writable:!0}),t));return r[f]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];return null!==t&&(r[f]=null,r[s]=null,r[c]=null,t(e)),void(r[u]=e)}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[c]=null,n(p(void 0,!0))),r[l]=!0})),e.on("readable",m.bind(null,r)),r}},57327:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return s(this,function(e){for(var t=1;t0,(function(e){n||(n=e),e&&a.forEach(u),o||(a.forEach(u),i(n))}))}));return t.reduce(l)}},82457:function(e,t,r){"use strict";var n=r(94281).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},22503:function(e,t,r){e.exports=r(17187).EventEmitter},88473:function(e,t,r){(t=e.exports=r(79481)).Stream=t,t.Readable=t,t.Writable=r(64229),t.Duplex=r(56753),t.Transform=r(74605),t.PassThrough=r(82725),t.finished=r(8610),t.pipeline=r(59946)},79785:function(e,t,r){"use strict";var n=r(48764).Buffer,i=r(35717),o=r(3349),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function g(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,x=0|this._b,_=0|this._c,S=0|this._d,A=0|this._e,E=0;E<80;E+=1){var k,M;E<16?(k=g(r,n,i,o,h,e[s[E]],f[0],u[E]),M=v(w,x,_,S,A,e[c[E]],d[0],l[E])):E<32?(k=m(r,n,i,o,h,e[s[E]],f[1],u[E]),M=b(w,x,_,S,A,e[c[E]],d[1],l[E])):E<48?(k=y(r,n,i,o,h,e[s[E]],f[2],u[E]),M=y(w,x,_,S,A,e[c[E]],d[2],l[E])):E<64?(k=b(r,n,i,o,h,e[s[E]],f[3],u[E]),M=m(w,x,_,S,A,e[c[E]],d[3],l[E])):(k=v(r,n,i,o,h,e[s[E]],f[4],u[E]),M=g(w,x,_,S,A,e[c[E]],d[4],l[E])),r=h,h=o,o=p(i,10),i=n,n=k,w=A,A=S,S=p(_,10),_=x,x=M}var C=this._b+i+S|0;this._b=this._c+o+A|0,this._c=this._d+h+w|0,this._d=this._e+r+x|0,this._e=this._a+n+_|0,this._a=C},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},51675:function(e,t,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getLength=t.decode=t.encode=void 0;var o=i(r(33493));function a(e,t){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function s(e,t){if(e<56)return n.from([e+t]);var r=l(e),i=l(t+55+r.length/2);return n.from(i+r,"hex")}function c(e){var t,r,i,o,s,u=[],l=e[0];if(l<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(l<=183){if(t=l-127,i=128===l?n.from([]):e.slice(1,t),2===t&&i[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:i,remainder:e.slice(t)}}if(l<=191){if(r=l-182,e.length-1e.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(o=e.slice(r,f)).length)throw new Error("invalid rlp, List has a invalid length");for(;o.length;)s=c(o),u.push(s.data),o=s.remainder;return{data:u,remainder:e.slice(f)}}function u(e){return"0x"===e.slice(0,2)}function l(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function f(e){if(!n.isBuffer(e)){if("string"===typeof e)return u(e)?n.from((t="string"!==typeof(r=e)?r:u(r)?r.slice(2):r).length%2?"0"+t:t,"hex"):n.from(e);if("number"===typeof e||"bigint"===typeof e)return e?function(e){var t=l(e);return n.from(t,"hex")}(e):n.from([]);if(null===e||void 0===e)return n.from([]);if(e instanceof Uint8Array)return n.from(e);if(o.default.isBN(e))return n.from(e.toArray());throw new Error("invalid type")}var t,r;return e}t.encode=function e(t){if(Array.isArray(t)){for(var r=[],i=0;i=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(C){o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?""}var d=["","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"],h=[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],p=[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];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?d[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=h[e],l=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var g=f.modrn(l).toString(e);r=(f=f.idivn(l)).isZero()?g+r:d[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,f=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&a}r.words[u]=0|f,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,g=h>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,x=v>>>13,_=0|a[4],S=8191&_,A=_>>>13,E=0|a[5],k=8191&E,M=E>>>13,C=0|a[6],T=8191&C,I=C>>>13,O=0|a[7],P=8191&O,R=O>>>13,B=0|a[8],N=8191&B,L=B>>>13,j=0|a[9],D=8191&j,U=j>>>13,F=0|s[0],H=8191&F,z=F>>>13,q=0|s[1],V=8191&q,W=q>>>13,G=0|s[2],K=8191&G,Z=G>>>13,X=0|s[3],Y=8191&X,J=X>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(f,H))|0)+((8191&(i=(i=Math.imul(f,z))+Math.imul(d,H)|0))<<13)|0;u=((o=Math.imul(d,z))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,H),i=(i=Math.imul(p,z))+Math.imul(g,H)|0,o=Math.imul(g,z);var ye=(u+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(d,V)|0))<<13)|0;u=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,H),i=(i=Math.imul(y,z))+Math.imul(b,H)|0,o=Math.imul(b,z),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,W)|0;var be=(u+(n=n+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(d,K)|0))<<13)|0;u=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,H),i=(i=Math.imul(w,z))+Math.imul(x,H)|0,o=Math.imul(x,z),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,Z)|0;var ve=(u+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,H),i=(i=Math.imul(S,z))+Math.imul(A,H)|0,o=Math.imul(A,z),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,J)|0;var we=(u+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,$)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(k,H),i=(i=Math.imul(k,z))+Math.imul(M,H)|0,o=Math.imul(M,z),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,$)|0,o=o+Math.imul(g,ee)|0;var xe=(u+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(T,H),i=(i=Math.imul(T,z))+Math.imul(I,H)|0,o=Math.imul(I,z),n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(S,K)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var _e=(u+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(P,H),i=(i=Math.imul(P,z))+Math.imul(R,H)|0,o=Math.imul(R,z),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(k,K)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Se=(u+(n=n+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,H),i=(i=Math.imul(N,z))+Math.imul(L,H)|0,o=Math.imul(L,z),n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,W)|0,n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Z)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,ue)|0;var Ae=(u+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,z))+Math.imul(U,H)|0,o=Math.imul(U,z),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,W)|0,n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ee=(u+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ge)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,ge)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,W))+Math.imul(U,V)|0,o=Math.imul(U,W),n=n+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,n=n+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,de)|0;var ke=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((o=o+Math.imul(g,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(D,K),i=(i=Math.imul(D,Z))+Math.imul(U,K)|0,o=Math.imul(U,Z),n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,de)|0;var Me=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(D,Y),i=(i=Math.imul(D,J))+Math.imul(U,Y)|0,o=Math.imul(U,J),n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,ue)|0)+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,de)|0;var Ce=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ge)|0)+Math.imul(x,pe)|0))<<13)|0;u=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,ee))+Math.imul(U,$)|0,o=Math.imul(U,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(L,re)|0,o=o+Math.imul(L,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,ue)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(M,fe)|0,o=o+Math.imul(M,de)|0;var Te=(u+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,ge)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(D,re),i=(i=Math.imul(D,ne))+Math.imul(U,re)|0,o=Math.imul(U,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,n=n+Math.imul(P,ce)|0,i=(i=i+Math.imul(P,ue)|0)+Math.imul(R,ce)|0,o=o+Math.imul(R,ue)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Ie=(u+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((o=o+Math.imul(M,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(D,oe),i=(i=Math.imul(D,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),n=n+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,ue)|0)+Math.imul(L,ce)|0,o=o+Math.imul(L,ue)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,de)|0;var Oe=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(I,pe)|0))<<13)|0;u=((o=o+Math.imul(I,ge)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(D,ce),i=(i=Math.imul(D,ue))+Math.imul(U,ce)|0,o=Math.imul(U,ue),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(L,fe)|0,o=o+Math.imul(L,de)|0;var Pe=(u+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,ge)|0)+Math.imul(R,pe)|0))<<13)|0;u=((o=o+Math.imul(R,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(D,fe),i=(i=Math.imul(D,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var Re=(u+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,ge)|0)+Math.imul(L,pe)|0))<<13)|0;u=((o=o+Math.imul(L,ge)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Be=(u+(n=Math.imul(D,pe))|0)+((8191&(i=(i=Math.imul(D,ge))+Math.imul(U,pe)|0))<<13)|0;return u=((o=Math.imul(U,ge))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=xe,c[6]=_e,c[7]=Se,c[8]=Ae,c[9]=Ee,c[10]=ke,c[11]=Me,c[12]=Ce,c[13]=Te,c[14]=Ie,c[15]=Oe,c[16]=Pe,c[17]=Re,c[18]=Be,0!==u&&(c[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(e,t,r){return y(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(m=g),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?g(this,e,t):r<1024?y(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var f=0|this.words[u];this.words[u]=l<<26-o|f>>>o,l=f&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;0===(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0===(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0===(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function M(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}x.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(_,x),_.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new S;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return w[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var f=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new M(e)},i(M,k),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},89509:function(e,t,r){var n=r(48764),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},2399:function(e,t,r){"use strict";var n,i=r(34155),o=r(48764),a=o.Buffer,s={};for(n in o)o.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(s[n]=o[n]);var c=s.Buffer={};for(n in a)a.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(c[n]=a[n]);if(s.Buffer.prototype=a.prototype,c.from&&c.from!==Uint8Array.from||(c.from=function(e,t,r){if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&"undefined"===typeof e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return a(e,t,r)}),c.alloc||(c.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=a(e);return t&&0!==t.length?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!s.kStringMaxLength)try{s.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(u){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),e.exports=s},73151:function(e,t,r){const n=r(75180);n.async=r(9084),e.exports=n},9084:function(e,t,r){const n=r(55835),{checkAndInit:i,smix:o}=r(15427);e.exports=async function(e,t,r,a,s,c,u,l){const{XY:f,V:d,B32:h,x:p,_X:g,B:m,tickCallback:y}=i(e,t,r,a,s,c,u);for(var b=0;b>>32-t}function c(e,t,r){let n;for(n=0;n<16;n++)t[n]=(255&e[4*n+0])<<0,t[n]|=(255&e[4*n+1])<<8,t[n]|=(255&e[4*n+2])<<16,t[n]|=(255&e[4*n+3])<<24;for(l(t,0,r,0,16),n=8;n>0;n-=2)r[4]^=s(r[0]+r[12],7),r[8]^=s(r[4]+r[0],9),r[12]^=s(r[8]+r[4],13),r[0]^=s(r[12]+r[8],18),r[9]^=s(r[5]+r[1],7),r[13]^=s(r[9]+r[5],9),r[1]^=s(r[13]+r[9],13),r[5]^=s(r[1]+r[13],18),r[14]^=s(r[10]+r[6],7),r[2]^=s(r[14]+r[10],9),r[6]^=s(r[2]+r[14],13),r[10]^=s(r[6]+r[2],18),r[3]^=s(r[15]+r[11],7),r[7]^=s(r[3]+r[15],9),r[11]^=s(r[7]+r[3],13),r[15]^=s(r[11]+r[7],18),r[1]^=s(r[0]+r[3],7),r[2]^=s(r[1]+r[0],9),r[3]^=s(r[2]+r[1],13),r[0]^=s(r[3]+r[2],18),r[6]^=s(r[5]+r[4],7),r[7]^=s(r[6]+r[5],9),r[4]^=s(r[7]+r[6],13),r[5]^=s(r[4]+r[7],18),r[11]^=s(r[10]+r[9],7),r[8]^=s(r[11]+r[10],9),r[9]^=s(r[8]+r[11],13),r[10]^=s(r[9]+r[8],18),r[12]^=s(r[15]+r[14],7),r[13]^=s(r[12]+r[15],9),r[14]^=s(r[13]+r[12],13),r[15]^=s(r[14]+r[13],18);for(n=0;n<16;++n)t[n]=r[n]+t[n];for(n=0;n<16;n++){let r=4*n;e[r+0]=t[n]>>0&255,e[r+1]=t[n]>>8&255,e[r+2]=t[n]>>16&255,e[r+3]=t[n]>>24&255}}function u(e,t,r,n,i){for(let o=0;o 0 and a power of 2");if(r>o/128/a)throw Error("Parameter N is too large");if(a>o/128/s)throw Error("Parameter r is too large");let l,f=n.alloc(256*a),d=n.alloc(128*a*r),h=new Int32Array(16),p=new Int32Array(16),g=n.alloc(64),m=i.pbkdf2Sync(e,t,1,128*s*a,"sha256");if(u){let e=s*r*2,t=0;l=function(){++t,t%1e3===0&&u({current:t,total:e,percent:t/e*100})}}return{XY:f,V:d,B32:h,x:p,_X:g,B:m,tickCallback:l}},smix:async function(e,t,r,n,i,o,s,c,l,f,d){d=d||5e3;let h,p=128*r;for(e.copy(o,0,t,t+p),h=0;hsetImmediate(e))),a(o,0,p,r,s,c,l),f&&f();for(h=0;hsetImmediate(e))),a(o,0,p,r,s,c,l),f&&f()}o.copy(e,t,0,0+p)},smixSync:function(e,t,r,n,i,o,s,c,l,f){let d,h=128*r;for(e.copy(o,0,t,t+h),d=0;d=0)return null;r=r.toRed(i.red);let a=r.redSqr().redIMul(r).redIAdd(i.b).redSqrt();return 3===e!==a.isOdd()&&(a=a.redNeg()),n.keyPair({pub:{x:r,y:a}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){let a=new o(t),s=new o(r);if(a.cmp(i.p)>=0||s.cmp(i.p)>=0)return null;if(a=a.toRed(i.red),s=s.toRed(i.red),(6===e||7===e)&&s.isOdd()!==(7===e))return null;const c=a.redSqr().redIMul(a);return s.redSqr().redISub(c.redIAdd(i.b)).isZero()?n.keyPair({pub:{x:a,y:s}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function s(e,t){const r=t.encode(null,33===e.length);for(let n=0;n0,privateKeyVerify(e){const t=new o(e);return t.cmp(i.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){const t=new o(e),r=i.n.sub(t).umod(i.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd(e,t){const r=new o(t);if(r.cmp(i.n)>=0)return 1;if(r.iadd(new o(e)),r.cmp(i.n)>=0&&r.isub(i.n),r.isZero())return 1;const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul(e,t){let r=new o(t);if(r.cmp(i.n)>=0||r.isZero())return 1;r.imul(new o(e)),r.cmp(i.n)>=0&&(r=r.umod(i.n));const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify:e=>null===a(e)?1:0,publicKeyCreate(e,t){const r=new o(t);if(r.cmp(i.n)>=0||r.isZero())return 1;return s(e,n.keyFromPrivate(t).getPublic()),0},publicKeyConvert(e,t){const r=a(t);if(null===r)return 1;return s(e,r.getPublic()),0},publicKeyNegate(e,t){const r=a(t);if(null===r)return 1;const n=r.getPublic();return n.y=n.y.redNeg(),s(e,n),0},publicKeyCombine(e,t){const r=new Array(t.length);for(let i=0;i=0)return 2;const c=n.getPublic().add(i.g.mul(r));return c.isInfinity()?2:(s(e,c),0)},publicKeyTweakMul(e,t,r){const n=a(t);if(null===n)return 1;if((r=new o(r)).cmp(i.n)>=0||r.isZero())return 2;return s(e,n.getPublic().mul(r)),0},signatureNormalize(e){const t=new o(e.subarray(0,32)),r=new o(e.subarray(32,64));return t.cmp(i.n)>=0||r.cmp(i.n)>=0?1:(1===r.cmp(n.nh)&&e.set(i.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const r=t.subarray(0,32),n=t.subarray(32,64);if(new o(r).cmp(i.n)>=0)return 1;if(new o(n).cmp(i.n)>=0)return 1;const{output:a}=e;let s=a.subarray(4,37);s[0]=0,s.set(r,1);let c=33,u=0;for(;c>1&&0===s[u]&&!(128&s[u+1]);--c,++u);if(s=s.subarray(u),128&s[0])return 1;if(c>1&&0===s[0]&&!(128&s[1]))return 1;let l=a.subarray(39,72);l[0]=0,l.set(n,1);let f=33,d=0;for(;f>1&&0===l[d]&&!(128&l[d+1]);--f,++d);return l=l.subarray(d),128&l[0]||f>1&&0===l[0]&&!(128&l[1])?1:(e.outputlen=6+c+f,a[0]=48,a[1]=e.outputlen-2,a[2]=2,a[3]=s.length,a.set(s,4),a[4+c]=2,a[5+c]=l.length,a.set(l,6+c),0)},signatureImport(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;const r=t[3];if(0===r)return 1;if(5+r>=t.length)return 1;if(2!==t[4+r])return 1;const n=t[5+r];if(0===n)return 1;if(6+r+n!==t.length)return 1;if(128&t[4])return 1;if(r>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[r+6])return 1;if(n>1&&0===t[r+6]&&!(128&t[r+7]))return 1;let a=t.subarray(4,4+r);if(33===a.length&&0===a[0]&&(a=a.subarray(1)),a.length>32)return 1;let s=t.subarray(6+r);if(33===s.length&&0===s[0]&&(s=s.slice(1)),s.length>32)throw new Error("S length is too long");let c=new o(a);c.cmp(i.n)>=0&&(c=new o(0));let u=new o(t.subarray(6+r));return u.cmp(i.n)>=0&&(u=new o(0)),e.set(c.toArrayLike(Uint8Array,"be",32),0),e.set(u.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,a,s){if(s){const e=s;s=n=>{const i=e(t,r,null,a,n);if(!(i instanceof Uint8Array&&32===i.length))throw new Error("This is the way");return new o(i)}}const c=new o(r);if(c.cmp(i.n)>=0||c.isZero())return 1;let u;try{u=n.sign(t,r,{canonical:!0,k:s,pers:a})}catch(l){return 1}return e.signature.set(u.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(u.s.toArrayLike(Uint8Array,"be",32),32),e.recid=u.recoveryParam,0},ecdsaVerify(e,t,r){const s={r:e.subarray(0,32),s:e.subarray(32,64)},c=new o(s.r),u=new o(s.s);if(c.cmp(i.n)>=0||u.cmp(i.n)>=0)return 1;if(1===u.cmp(n.nh)||c.isZero()||u.isZero())return 3;const l=a(r);if(null===l)return 2;const f=l.getPublic();return n.verify(t,s,f)?0:3},ecdsaRecover(e,t,r,a){const c={r:t.slice(0,32),s:t.slice(32,64)},u=new o(c.r),l=new o(c.s);if(u.cmp(i.n)>=0||l.cmp(i.n)>=0)return 1;if(u.isZero()||l.isZero())return 2;let f;try{f=n.recoverPubKey(a,c,r)}catch(d){return 2}return s(e,f),0},ecdh(e,t,r,s,c,u,l){const f=a(t);if(null===f)return 1;const d=new o(r);if(d.cmp(i.n)>=0||d.isZero())return 2;const h=f.getPublic().mul(d);if(void 0===c){const t=h.encode(null,!0),r=n.hash().update(t).digest();for(let n=0;n<32;++n)e[n]=r[n]}else{u||(u=new Uint8Array(32));const t=h.getX().toArray("be",32);for(let e=0;e<32;++e)u[e]=t[e];l||(l=new Uint8Array(32));const r=h.getY().toArray("be",32);for(let e=0;e<32;++e)l[e]=r[e];const n=c(u,l,s);if(!(n instanceof Uint8Array&&n.length===e.length))return 2;e.set(n)}return 0}}},59119:function(e){const t="Impossible case. Please create issue.",r="The tweak was out of range or the resulted private key is invalid",n="The tweak was out of range or equal to zero",i="Unknow error on context randomization",o="Private Key is invalid",a="Public Key could not be parsed",s="Public Key serialization error",c="The sum of the public keys is not valid",u="Signature could not be parsed",l="The nonce generation function failed, or the private key was invalid",f="Public key could not be recover",d="Scalar was invalid (zero or overflow)";function h(e,t){if(!e)throw new Error(t)}function p(e,t,r){if(h(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),void 0!==r)if(Array.isArray(r)){const n=`Expected ${e} to be an Uint8Array with length [${r.join(", ")}]`;h(r.includes(t.length),n)}else{const n=`Expected ${e} to be an Uint8Array with length ${r}`;h(t.length===r,n)}}function g(e){h("Boolean"===y(e),"Expected compressed to be a Boolean")}function m(e=(e=>new Uint8Array(e)),t){return"function"===typeof e&&(e=e(t)),p("output",e,t),e}function y(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=e=>({contextRandomize(t){switch(h(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&p("seed",t,32),e.contextRandomize(t)){case 1:throw new Error(i)}},privateKeyVerify:t=>(p("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(r){switch(p("private key",r,32),e.privateKeyNegate(r)){case 0:return r;case 1:throw new Error(t)}},privateKeyTweakAdd(t,n){switch(p("private key",t,32),p("tweak",n,32),e.privateKeyTweakAdd(t,n)){case 0:return t;case 1:throw new Error(r)}},privateKeyTweakMul(t,r){switch(p("private key",t,32),p("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(n)}},publicKeyVerify:t=>(p("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,r=!0,n){switch(p("private key",t,32),g(r),n=m(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw new Error(o);case 2:throw new Error(s)}},publicKeyConvert(t,r=!0,n){switch(p("public key",t,[33,65]),g(r),n=m(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw new Error(a);case 2:throw new Error(s)}},publicKeyNegate(r,n=!0,i){switch(p("public key",r,[33,65]),g(n),i=m(i,n?33:65),e.publicKeyNegate(i,r)){case 0:return i;case 1:throw new Error(a);case 2:throw new Error(t);case 3:throw new Error(s)}},publicKeyCombine(t,r=!0,n){h(Array.isArray(t),"Expected public keys to be an Array"),h(t.length>0,"Expected public keys array will have more than zero items");for(const e of t)p("public key",e,[33,65]);switch(g(r),n=m(n,r?33:65),e.publicKeyCombine(n,t)){case 0:return n;case 1:throw new Error(a);case 2:throw new Error(c);case 3:throw new Error(s)}},publicKeyTweakAdd(t,n,i=!0,o){switch(p("public key",t,[33,65]),p("tweak",n,32),g(i),o=m(o,i?33:65),e.publicKeyTweakAdd(o,t,n)){case 0:return o;case 1:throw new Error(a);case 2:throw new Error(r)}},publicKeyTweakMul(t,r,i=!0,o){switch(p("public key",t,[33,65]),p("tweak",r,32),g(i),o=m(o,i?33:65),e.publicKeyTweakMul(o,t,r)){case 0:return o;case 1:throw new Error(a);case 2:throw new Error(n)}},signatureNormalize(t){switch(p("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(u)}},signatureExport(r,n){p("signature",r,64);const i={output:n=m(n,72),outputlen:72};switch(e.signatureExport(i,r)){case 0:return n.slice(0,i.outputlen);case 1:throw new Error(u);case 2:throw new Error(t)}},signatureImport(r,n){switch(p("signature",r),n=m(n,64),e.signatureImport(n,r)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(t)}},ecdsaSign(r,n,i={},o){p("message",r,32),p("private key",n,32),h("Object"===y(i),"Expected options to be an Object"),void 0!==i.data&&p("options.data",i.data),void 0!==i.noncefn&&h("Function"===y(i.noncefn),"Expected options.noncefn to be a Function");const a={signature:o=m(o,64),recid:null};switch(e.ecdsaSign(a,r,n,i.data,i.noncefn)){case 0:return a;case 1:throw new Error(l);case 2:throw new Error(t)}},ecdsaVerify(t,r,n){switch(p("signature",t,64),p("message",r,32),p("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(u);case 2:throw new Error(a)}},ecdsaRecover(r,n,i,o=!0,a){switch(p("signature",r,64),h("Number"===y(n)&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),p("message",i,32),g(o),a=m(a,o?33:65),e.ecdsaRecover(a,r,n,i)){case 0:return a;case 1:throw new Error(u);case 2:throw new Error(f);case 3:throw new Error(t)}},ecdh(t,r,n={},i){switch(p("public key",t,[33,65]),p("private key",r,32),h("Object"===y(n),"Expected options to be an Object"),void 0!==n.data&&p("options.data",n.data),void 0!==n.hashfn?(h("Function"===y(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&p("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&p("options.ybuf",n.ybuf,32),p("output",i)):i=m(i,32),e.ecdh(i,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(a);case 2:throw new Error(d)}}})},24880:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(29745),i=r(89046),o=r(5625),a=r(9695),s=r.n(a),c=r(34714),u=r(88106),l=r(47630),f=r.n(l),d=(r(45697),r(67294)),h=r(68571),p=r(38119),g=r(73935),m=r(41779),y=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i1?a-1:0),c=1;c1?c-1:0),l=1;l1?a-1:0),c=1;c1?s-1:0),u=1;u1?s-1:0),u=1;u=i(t,r)&&e="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),n=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,a=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),s=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||o&&a||s||u}}e.exports=i;const o=r(12893),{re:a,t:s}=r(55765),c=r(7539),u=r(74225),l=r(26376),f=r(66902)},66902:function(e,t,r){class n{constructor(e,t){if(t=o(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!p(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&g(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=i.get(t);if(r)return r;const n=this.options.loose,o=n?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(o,M(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(u[l.COMPARATORTRIM],f),s("comparator trim",e,u[l.COMPARATORTRIM]),e=(e=(e=e.replace(u[l.TILDETRIM],d)).replace(u[l.CARETTRIM],h)).split(/\s+/).join(" ");const c=n?u[l.COMPARATORLOOSE]:u[l.COMPARATOR],g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options))).filter(this.options.loose?e=>!!e.match(c):()=>!0).map((e=>new a(e,this.options))),m=(g.length,new Map);for(const i of g){if(p(i))return[i];m.set(i.value,i)}m.size>1&&m.has("")&&m.delete("");const b=[...m.values()];return i.set(t,b),b}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>m(r,t)&&e.set.some((e=>m(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"===typeof e)try{e=new c(e,this.options)}catch(t){return!1}for(let r=0;r"<0.0.0-0"===e.value,g=e=>""===e.value,m=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},y=(e,t)=>(s("comp",e,t),e=x(e,t),s("caret",e),e=v(e,t),s("tildes",e),e=S(e,t),s("xrange",e),e=E(e,t),s("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{const r=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(r,((t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),b(r)?a="":b(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{s("caret",e,t);const r=t.loose?u[l.CARETLOOSE]:u[l.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,o,a)=>{let c;return s("caret",e,t,r,i,o,a),b(r)?c="":b(i)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(o)?c="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",c),c}))},S=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>A(e,t))).join(" ")),A=(e,t)=>{e=e.trim();const r=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(r,((r,n,i,o,a,c)=>{s("xRange",e,r,n,i,o,a,c);const u=b(i),l=u||b(o),f=l||b(a),d=f;return"="===n&&d&&(n=""),c=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(l&&(o=0),a=0,">"===n?(n=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",l?i=+i+1:o=+o+1),"<"===n&&(c="-0"),r=`${n+i}.${o}.${a}${c}`):l?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:f&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),s("xRange return",r),r}))},E=(e,t)=>(s("replaceStars",e,t),e.trim().replace(u[l.STAR],"")),k=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),M=e=>(t,r,n,i,o,a,s,c,u,l,f,d,h)=>`${r=b(n)?"":b(i)?`>=${n}.0.0${e?"-0":""}`:b(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=b(u)?"":b(l)?`<${+u+1}.0.0-0`:b(f)?`<${u}.${+l+1}.0-0`:d?`<=${u}.${l}.${f}-${d}`:e?`<${u}.${l}.${+f+1}-0`:`<=${c}`}`.trim(),C=(e,t,r)=>{for(let n=0;n0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},26376:function(e,t,r){const n=r(74225),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(83295),{re:a,t:s}=r(55765),c=r(12893),{compareIdentifiers:u}=r(86742);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"===typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},13507:function(e,t,r){const n=r(33959);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},7539:function(e,t,r){const n=r(58718),i=r(81194),o=r(71312),a=r(25903),s=r(21544),c=r(12056);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"===typeof e&&(e=e.version),"object"===typeof r&&(r=r.version),e===r;case"!==":return"object"===typeof e&&(e=e.version),"object"===typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return i(e,r,u);case">":return o(e,r,u);case">=":return a(e,r,u);case"<":return s(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},99038:function(e,t,r){const n=r(26376),i=r(33959),{re:o,t:a}=r(55765);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"===typeof e&&(e=String(e)),"string"!==typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else r=e.match(o[a.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},88880:function(e,t,r){const n=r(26376);e.exports=(e,t,r)=>{const i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)}},27880:function(e,t,r){const n=r(46269);e.exports=(e,t)=>n(e,t,!0)},46269:function(e,t,r){const n=r(26376);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},62378:function(e,t,r){const n=r(33959),i=r(58718);e.exports=(e,t)=>{if(i(e,t))return null;{const r=n(e),i=n(t),o=r.prerelease.length||i.prerelease.length,a=o?"pre":"",s=o?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==i[e])return a+e;return s}}},58718:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>0===n(e,t,r)},71312:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)>0},25903:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)>=0},20253:function(e,t,r){const n=r(26376);e.exports=(e,t,r,i)=>{"string"===typeof r&&(i=r,r=void 0);try{return new n(e,r).inc(t,i).version}catch(o){return null}}},21544:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)<0},12056:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)<=0},38679:function(e,t,r){const n=r(26376);e.exports=(e,t)=>new n(e,t).major},87789:function(e,t,r){const n=r(26376);e.exports=(e,t)=>new n(e,t).minor},81194:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>0!==n(e,t,r)},33959:function(e,t,r){const{MAX_LENGTH:n}=r(83295),{re:i,t:o}=r(55765),a=r(26376),s=r(12893);e.exports=(e,t)=>{if(t=s(t),e instanceof a)return e;if("string"!==typeof e)return null;if(e.length>n)return null;if(!(t.loose?i[o.LOOSE]:i[o.FULL]).test(e))return null;try{return new a(e,t)}catch(r){return null}}},52358:function(e,t,r){const n=r(26376);e.exports=(e,t)=>new n(e,t).patch},57559:function(e,t,r){const n=r(33959);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},79795:function(e,t,r){const n=r(46269);e.exports=(e,t,r)=>n(t,e,r)},63657:function(e,t,r){const n=r(88880);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},45712:function(e,t,r){const n=r(66902);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(i){return!1}return t.test(e)}},21100:function(e,t,r){const n=r(88880);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},76397:function(e,t,r){const n=r(33959);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},81249:function(e,t,r){const n=r(55765);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(83295).SEMVER_SPEC_VERSION,SemVer:r(26376),compareIdentifiers:r(86742).compareIdentifiers,rcompareIdentifiers:r(86742).rcompareIdentifiers,parse:r(33959),valid:r(76397),clean:r(13507),inc:r(20253),diff:r(62378),major:r(38679),minor:r(87789),patch:r(52358),prerelease:r(57559),compare:r(46269),rcompare:r(79795),compareLoose:r(27880),compareBuild:r(88880),sort:r(21100),rsort:r(63657),gt:r(71312),lt:r(21544),eq:r(58718),neq:r(81194),gte:r(25903),lte:r(12056),cmp:r(7539),coerce:r(99038),Comparator:r(22257),Range:r(66902),satisfies:r(45712),toComparators:r(51042),maxSatisfying:r(85775),minSatisfying:r(71657),minVersion:r(95316),validRange:r(89042),outside:r(6826),gtr:r(97606),ltr:r(50032),intersects:r(82937),simplifyRange:r(17908),subset:r(50799)}},83295:function(e){const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},74225:function(e,t,r){var n=r(34155);const i="object"===typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},86742:function(e){const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:er(t,e)}},12893:function(e){const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!==typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},55765:function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n}=r(83295),i=r(74225),o=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let c=0;const u=(e,t,r)=>{const n=c++;i(n,t),s[e]=n,a[n]=t,o[n]=new RegExp(t,r?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),u("FULL",`^${a[s.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),u("LOOSE",`^${a[s.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${a[s.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),u("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),u("COERCERTL",a[s.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},97606:function(e,t,r){const n=r(6826);e.exports=(e,t,r)=>n(e,t,">",r)},82937:function(e,t,r){const n=r(66902);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},50032:function(e,t,r){const n=r(6826);e.exports=(e,t,r)=>n(e,t,"<",r)},85775:function(e,t,r){const n=r(26376),i=r(66902);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(c){return null}return e.forEach((e=>{s.test(e)&&(o&&-1!==a.compare(e)||(o=e,a=new n(o,r)))})),o}},71657:function(e,t,r){const n=r(26376),i=r(66902);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(c){return null}return e.forEach((e=>{s.test(e)&&(o&&1!==a.compare(e)||(o=e,a=new n(o,r)))})),o}},95316:function(e,t,r){const n=r(26376),i=r(66902),o=r(71312);e.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let i=0;i{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||r&&!o(r,a)||(r=a)}return r&&e.test(r)?r:null}},6826:function(e,t,r){const n=r(26376),i=r(22257),{ANY:o}=i,a=r(66902),s=r(45712),c=r(71312),u=r(21544),l=r(12056),f=r(25903);e.exports=(e,t,r,d)=>{let h,p,g,m,y;switch(e=new n(e,d),t=new a(t,d),r){case">":h=c,p=l,g=u,m=">",y=">=";break;case"<":h=u,p=f,g=c,m="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,d))return!1;for(let n=0;n{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,h(e.semver,a.semver,d)?a=e:g(e.semver,s.semver,d)&&(s=e)})),a.operator===m||a.operator===y)return!1;if((!s.operator||s.operator===m)&&p(e,s.semver))return!1;if(s.operator===y&&g(e,s.semver))return!1}return!0}},17908:function(e,t,r){const n=r(45712),i=r(46269);e.exports=(e,t,r)=>{const o=[];let a=null,s=null;const c=e.sort(((e,t)=>i(e,t,r)));for(const i of c){n(i,t,r)?(s=i,a||(a=i)):(s&&o.push([a,s]),s=null,a=null)}a&&o.push([a,null]);const u=[];for(const[n,i]of o)n===i?u.push(n):i||n!==c[0]?i?n===c[0]?u.push(`<=${i}`):u.push(`${n} - ${i}`):u.push(`>=${n}`):u.push("*");const l=u.join(" || "),f="string"===typeof t.raw?t.raw:String(t);return l.length{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=[new i(">=0.0.0")]}const n=new Set;let c,f,d,h,p,g,m;for(const i of e)">"===i.operator||">="===i.operator?c=u(c,i,r):"<"===i.operator||"<="===i.operator?f=l(f,i,r):n.add(i.semver);if(n.size>1)return null;if(c&&f){if(d=s(c.semver,f.semver,r),d>0)return null;if(0===d&&(">="!==c.operator||"<="!==f.operator))return null}for(const i of n){if(c&&!a(i,String(c),r))return null;if(f&&!a(i,String(f),r))return null;for(const e of t)if(!a(i,String(e),r))return!1;return!0}let y=!(!f||r.includePrerelease||!f.semver.prerelease.length)&&f.semver,b=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver;y&&1===y.prerelease.length&&"<"===f.operator&&0===y.prerelease[0]&&(y=!1);for(const i of t){if(m=m||">"===i.operator||">="===i.operator,g=g||"<"===i.operator||"<="===i.operator,c)if(b&&i.semver.prerelease&&i.semver.prerelease.length&&i.semver.major===b.major&&i.semver.minor===b.minor&&i.semver.patch===b.patch&&(b=!1),">"===i.operator||">="===i.operator){if(h=u(c,i,r),h===i&&h!==c)return!1}else if(">="===c.operator&&!a(c.semver,String(i),r))return!1;if(f)if(y&&i.semver.prerelease&&i.semver.prerelease.length&&i.semver.major===y.major&&i.semver.minor===y.minor&&i.semver.patch===y.patch&&(y=!1),"<"===i.operator||"<="===i.operator){if(p=l(f,i,r),p===i&&p!==f)return!1}else if("<="===f.operator&&!a(f.semver,String(i),r))return!1;if(!i.operator&&(f||c)&&0!==d)return!1}return!(c&&g&&!f&&0!==d)&&(!(f&&m&&!c&&0!==d)&&(!b&&!y))},u=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;e:for(const n of e.set){for(const e of t.set){const t=c(n,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},51042:function(e,t,r){const n=r(66902);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},89042:function(e,t,r){const n=r(66902);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(r){return null}}},66644:function(e){"use strict";e.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=t[r]);return e})},24189:function(e,t,r){var n=r(89509).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"===typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},89072:function(e,t,r){var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(74448),n.sha1=r(18336),n.sha224=r(48432),n.sha256=r(67499),n.sha384=r(51686),n.sha512=r(87816)},74448:function(e,t,r){var n=r(35717),i=r(24189),o=r(89509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16];for(var d=0;d<80;++d){var h=~~(d/20),p=0|((t=n)<<5|t>>>27)+l(h,i,o,s)+c+r[d]+a[h];c=s,s=o,o=u(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},18336:function(e,t,r){var n=r(35717),i=r(24189),o=r(89509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),g=u(n)+f(p,i,o,s)+c+r[h]+a[p]|0;c=s,s=o,o=l(i),i=n,n=g}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},48432:function(e,t,r){var n=r(35717),i=r(67499),o=r(24189),a=r(89509).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},67499:function(e,t,r){var n=r(35717),i=r(24189),o=r(89509).Buffer,a=[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],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,g=0|this._g,m=0|this._h,y=0;y<16;++y)r[y]=e.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((t=r[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[y-7]+h(r[y-15])+r[y-16];for(var b=0;b<64;++b){var v=m+d(c)+u(c,p,g)+a[b]+r[b]|0,w=f(n)+l(n,i,o)|0;m=g,g=p,p=c,c=s+v|0,s=o,o=i,i=n,n=v+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=g+this._g|0,this._h=m+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},51686:function(e,t,r){var n=r(35717),i=r(87816),o=r(24189),a=r(89509).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},87816:function(e,t,r){var n=r(35717),i=r(24189),o=r(89509).Buffer,a=[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],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,b=0|this._gh,v=0|this._hh,w=0|this._al,x=0|this._bl,_=0|this._cl,S=0|this._dl,A=0|this._el,E=0|this._fl,k=0|this._gl,M=0|this._hl,C=0;C<32;C+=2)t[C]=e.readInt32BE(4*C),t[C+1]=e.readInt32BE(4*C+4);for(;C<160;C+=2){var T=t[C-30],I=t[C-30+1],O=h(T,I),P=p(I,T),R=g(T=t[C-4],I=t[C-4+1]),B=m(I,T),N=t[C-14],L=t[C-14+1],j=t[C-32],D=t[C-32+1],U=P+L|0,F=O+N+y(U,P)|0;F=(F=F+R+y(U=U+B|0,B)|0)+j+y(U=U+D|0,D)|0,t[C]=F,t[C+1]=U}for(var H=0;H<160;H+=2){F=t[H],U=t[H+1];var z=l(r,n,i),q=l(w,x,_),V=f(r,w),W=f(w,r),G=d(s,A),K=d(A,s),Z=a[H],X=a[H+1],Y=u(s,c,b),J=u(A,E,k),Q=M+K|0,$=v+G+y(Q,M)|0;$=($=($=$+Y+y(Q=Q+J|0,J)|0)+Z+y(Q=Q+X|0,X)|0)+F+y(Q=Q+U|0,U)|0;var ee=W+q|0,te=V+z+y(ee,W)|0;v=b,M=k,b=c,k=E,c=s,E=A,s=o+$+y(A=S+Q|0,S)|0,o=i,S=_,i=n,_=x,n=r,x=w,r=$+te+y(w=Q+ee|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+x|0,this._cl=this._cl+_|0,this._dl=this._dl+S|0,this._el=this._el+A|0,this._fl=this._fl+E|0,this._gl=this._gl+k|0,this._hl=this._hl+M|0,this._ah=this._ah+r+y(this._al,w)|0,this._bh=this._bh+n+y(this._bl,x)|0,this._ch=this._ch+i+y(this._cl,_)|0,this._dh=this._dh+o+y(this._dl,S)|0,this._eh=this._eh+s+y(this._el,A)|0,this._fh=this._fh+c+y(this._fl,E)|0,this._gh=this._gh+b+y(this._gl,k)|0,this._hh=this._hh+v+y(this._hl,M)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},96774:function(e){e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},58971:function(e,t,r){var n=r(62195),i=r(39015),o=[r(19257)];e.exports=n.createStore(i,o)},19257:function(e,t,r){e.exports=function(){return r(55703),{}}},55703:function(){"object"!==typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,(function(e){var t=meta[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function str(e,t){var r,n,i,o,a,s=gap,c=t[e];switch(c&&"object"===typeof c&&"function"===typeof c.toJSON&&(c=c.toJSON(e)),"function"===typeof rep&&(c=rep.call(t,e,c)),typeof c){case"string":return quote(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(c)){for(o=c.length,r=0;r=0;r--)if(o(t[r])){var n=t[r].split("="),i=unescape(n[0]);e(unescape(n[1]),i)}}function c(e){e&&u(e)&&(a.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function u(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(a.cookie)}},39627:function(e,t,r){var n=r(69078).Global;function i(){return n.localStorage}function o(e){return i().getItem(e)}e.exports={name:"localStorage",read:o,write:function(e,t){return i().setItem(e,t)},each:function(e){for(var t=i().length-1;t>=0;t--){var r=i().key(t);e(o(r),r)}},remove:function(e){return i().removeItem(e)},clearAll:function(){return i().clear()}}},8728:function(e){e.exports={name:"memoryStorage",read:function(e){return t[e]},write:function(e,r){t[e]=r},each:function(e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)},remove:function(e){delete t[e]},clearAll:function(e){t={}}};var t={}},95347:function(e,t,r){var n=r(69078).Global;e.exports={name:"oldFF-globalStorage",read:function(e){return i[e]},write:function(e,t){i[e]=t},each:o,remove:function(e){return i.removeItem(e)},clearAll:function(){o((function(e,t){delete i[e]}))}};var i=n.globalStorage;function o(e){for(var t=i.length-1;t>=0;t--){var r=i.key(t);e(i[r],r)}}},34524:function(e,t,r){var n=r(69078).Global;e.exports={name:"oldIE-userDataStorage",write:function(e,t){if(s)return;var r=u(e);a((function(e){e.setAttribute(r,t),e.save(i)}))},read:function(e){if(s)return;var t=u(e),r=null;return a((function(e){r=e.getAttribute(t)})),r},each:function(e){a((function(t){for(var r=t.XMLDocument.documentElement.attributes,n=r.length-1;n>=0;n--){var i=r[n];e(t.getAttribute(i.name),i.name)}}))},remove:function(e){var t=u(e);a((function(e){e.removeAttribute(t),e.save(i)}))},clearAll:function(){a((function(e){var t=e.XMLDocument.documentElement.attributes;e.load(i);for(var r=t.length-1;r>=0;r--)e.removeAttribute(t[r].name);e.save(i)}))}};var i="storejs",o=n.document,a=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var e,t,r;try{(t=new ActiveXObject("htmlfile")).open(),t.write('
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/CrustFiles_FAQ/index.html b/docs/docs/CrustFiles_FAQ/index.html index 6e2d104e..17811b31 100644 --- a/docs/docs/CrustFiles_FAQ/index.html +++ b/docs/docs/CrustFiles_FAQ/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/CrustFiles_ShareandEarn/index.html b/docs/docs/CrustFiles_ShareandEarn/index.html index adb2c569..0177cd4f 100644 --- a/docs/docs/CrustFiles_ShareandEarn/index.html +++ b/docs/docs/CrustFiles_ShareandEarn/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/CrustFiles_Users/index.html b/docs/docs/CrustFiles_Users/index.html index c32579c6..cfc557c5 100644 --- a/docs/docs/CrustFiles_Users/index.html +++ b/docs/docs/CrustFiles_Users/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/CrustFiles_Welcome/index.html b/docs/docs/CrustFiles_Welcome/index.html index e81c3a4b..dedf09fd 100644 --- a/docs/docs/CrustFiles_Welcome/index.html +++ b/docs/docs/CrustFiles_Welcome/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/files/index.html b/docs/files/index.html index 95d32050..e6ad6868 100644 --- a/docs/files/index.html +++ b/docs/files/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/files/vault/index.html b/docs/files/vault/index.html index 7d9df32f..03c3af69 100644 --- a/docs/files/vault/index.html +++ b/docs/files/vault/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/home/index.html b/docs/home/index.html index 0878ffc7..2c243766 100644 --- a/docs/home/index.html +++ b/docs/home/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 3d24b126..8a9a770b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/invite_bonus_guide/index.html b/docs/invite_bonus_guide/index.html index 3bca195b..fea8c8fc 100644 --- a/docs/invite_bonus_guide/index.html +++ b/docs/invite_bonus_guide/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/mobile/index.html b/docs/mobile/index.html index 32c65942..67fd8c64 100644 --- a/docs/mobile/index.html +++ b/docs/mobile/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/rewards_history/index.html b/docs/rewards_history/index.html index 734852c0..1c2f144f 100644 --- a/docs/rewards_history/index.html +++ b/docs/rewards_history/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/setting/index.html b/docs/setting/index.html index 5b30fc37..781acefa 100644 --- a/docs/setting/index.html +++ b/docs/setting/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/share-earn/index.html b/docs/share-earn/index.html index ea85ba7a..c00e0a31 100644 --- a/docs/share-earn/index.html +++ b/docs/share-earn/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/share/index.html b/docs/share/index.html index 932671da..71f2937a 100644 --- a/docs/share/index.html +++ b/docs/share/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/user/index.html b/docs/user/index.html index fca4c73e..ca104354 100644 --- a/docs/user/index.html +++ b/docs/user/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file