(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,195787,e=>{"use strict";var t=e.i(847505),a=e.i(920384),r=e.i(618671),s=e.i(834375),i=e.i(726),n=e.i(521201),o=e.i(741686),c=e.i(561595),l=e.i(561137);let h={id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"USD Coin",symbol:"USDC",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]},u={id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},d={providers:s.ONRAMP_PROVIDERS,selectedProvider:null,error:null,purchaseCurrency:h,paymentCurrency:u,purchaseCurrencies:[h],paymentCurrencies:[],quotesLoading:!1},p=(0,t.proxy)(d),f=(0,i.withErrorBoundary)({state:p,subscribe:e=>(0,t.subscribe)(p,()=>e(p)),subscribeKey:(e,t)=>(0,a.subscribeKey)(p,e,t),setSelectedProvider(e){if(e&&"meld"===e.name){let t=c.ChainController.state.activeChain,a=t===r.ConstantsUtil.CHAIN.SOLANA?"SOL":"USDC",i=t?c.ChainController.state.chains.get(t)?.accountState?.address??"":"",n=new URL(e.url);n.searchParams.append("publicKey",s.MELD_PUBLIC_KEY),n.searchParams.append("destinationCurrencyCode",a),n.searchParams.append("walletAddress",i),n.searchParams.append("externalCustomerId",l.OptionsController.state.projectId),p.selectedProvider={...e,url:n.toString()}}else p.selectedProvider=e},setOnrampProviders(e){Array.isArray(e)&&e.every(e=>"string"==typeof e)?p.providers=s.ONRAMP_PROVIDERS.filter(t=>e.includes(t.name)):p.providers=[]},setPurchaseCurrency(e){p.purchaseCurrency=e},setPaymentCurrency(e){p.paymentCurrency=e},setPurchaseAmount(e){f.state.purchaseAmount=e},setPaymentAmount(e){f.state.paymentAmount=e},async getAvailableCurrencies(){let e=await o.BlockchainApiController.getOnrampOptions();p.purchaseCurrencies=e.purchaseCurrencies,p.paymentCurrencies=e.paymentCurrencies,p.paymentCurrency=e.paymentCurrencies[0]||u,p.purchaseCurrency=e.purchaseCurrencies[0]||h,await n.ApiController.fetchCurrencyImages(e.paymentCurrencies.map(e=>e.id)),await n.ApiController.fetchTokenImages(e.purchaseCurrencies.map(e=>e.symbol))},async getQuote(){p.quotesLoading=!0;try{let e=await o.BlockchainApiController.getOnrampQuote({purchaseCurrency:p.purchaseCurrency,paymentCurrency:p.paymentCurrency,amount:p.paymentAmount?.toString()||"0",network:p.purchaseCurrency?.symbol});return p.quotesLoading=!1,p.purchaseAmount=Number(e?.purchaseAmount.amount),e}catch(e){return p.error=e.message,p.quotesLoading=!1,null}finally{p.quotesLoading=!1}},resetState(){p.selectedProvider=null,p.error=null,p.purchaseCurrency=h,p.paymentCurrency=u,p.purchaseCurrencies=[h],p.paymentCurrencies=[],p.paymentAmount=void 0,p.purchaseAmount=void 0,p.quotesLoading=!1}});e.s(["OnRampController",0,f])},266023,e=>{"use strict";e.i(755701);var t=e.i(629692),a=e.i(93880);e.i(36650);var r=e.i(482214);e.i(642623),e.i(334366);var s=e.i(381949),i=e.i(244708),n=e.i(921752);let o=n.css`
  button {
    border: none;
    background: transparent;
    height: 20px;
    padding: ${({spacing:e})=>e[2]};
    column-gap: ${({spacing:e})=>e[1]};
    border-radius: ${({borderRadius:e})=>e[1]};
    padding: 0 ${({spacing:e})=>e[1]};
    border-radius: ${({spacing:e})=>e[1]};
  }

  /* -- Variants --------------------------------------------------------- */
  button[data-variant='accent'] {
    color: ${({tokens:e})=>e.core.textAccentPrimary};
  }

  button[data-variant='secondary'] {
    color: ${({tokens:e})=>e.theme.textSecondary};
  }

  /* -- Focus states --------------------------------------------------- */
  button:focus-visible:enabled {
    box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2);
  }

  button[data-variant='accent']:focus-visible:enabled {
    background-color: ${({tokens:e})=>e.core.foregroundAccent010};
  }

  button[data-variant='secondary']:focus-visible:enabled {
    background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
  }

  /* -- Hover & Active states ----------------------------------------------------------- */
  button[data-variant='accent']:hover:enabled {
    background-color: ${({tokens:e})=>e.core.foregroundAccent010};
  }

  button[data-variant='secondary']:hover:enabled {
    background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
  }

  button[data-variant='accent']:focus-visible {
    background-color: ${({tokens:e})=>e.core.foregroundAccent010};
  }

  button[data-variant='secondary']:focus-visible {
    background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
    box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2);
  }

  button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
  }
`;var c=function(e,t,a,r){var s,i=arguments.length,n=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,a,r);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(n=(i<3?s(n):i>3?s(t,a,n):s(t,a))||n);return i>3&&n&&Object.defineProperty(t,a,n),n};let l={sm:"sm-medium",md:"md-medium"},h={accent:"accent-primary",secondary:"secondary"},u=class extends t.LitElement{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.variant="accent",this.icon=void 0}render(){return a.html`
      <button ?disabled=${this.disabled} data-variant=${this.variant}>
        <slot name="iconLeft"></slot>
        <wui-text
          color=${h[this.variant]}
          variant=${l[this.size]}
        >
          <slot></slot>
        </wui-text>
        ${this.iconTemplate()}
      </button>
    `}iconTemplate(){return this.icon?a.html`<wui-icon name=${this.icon} size="sm"></wui-icon>`:null}};u.styles=[s.resetStyles,s.elementStyles,o],c([(0,r.property)()],u.prototype,"size",void 0),c([(0,r.property)({type:Boolean})],u.prototype,"disabled",void 0),c([(0,r.property)()],u.prototype,"variant",void 0),c([(0,r.property)()],u.prototype,"icon",void 0),u=c([(0,i.customElement)("wui-link")],u),e.s([],266023)},418179,e=>{"use strict";e.i(605040),e.s([])},429537,e=>{"use strict";var t=e.i(639057);let a={ACCOUNT_TABS:[{label:"Tokens"},{label:"Activity"}],SECURE_SITE_ORIGIN:(void 0!==t.default&&void 0!==t.default.env?t.default.env.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",VIEW_DIRECTION:{Next:"next",Prev:"prev"},ANIMATION_DURATIONS:{HeaderText:120,ModalHeight:150,ViewTransition:150},VIEWS_WITH_LEGAL_FOOTER:["Connect","ConnectWallets","OnRampTokenSelect","OnRampFiatSelect","OnRampProviders"],VIEWS_WITH_DEFAULT_FOOTER:["Networks"]};e.s(["ConstantsUtil",0,a])},712995,e=>{"use strict";var t=e.i(618671),a=e.i(561137),r=e.i(615638),s=e.i(429537);e.s(["HelpersUtil",0,{getTabsByNamespace:e=>e&&e===t.ConstantsUtil.CHAIN.EVM?a.OptionsController.state.remoteFeatures?.activity===!1?s.ConstantsUtil.ACCOUNT_TABS.filter(e=>"Activity"!==e.label):s.ConstantsUtil.ACCOUNT_TABS:[],isValidReownName:e=>/^[a-zA-Z0-9]+$/gu.test(e),isValidEmail:e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/gu.test(e),validateReownName:e=>e.replace(/\^/gu,"").toLowerCase().replace(/[^a-zA-Z0-9]/gu,""),hasFooter(){let e=r.RouterController.state.view;if(s.ConstantsUtil.VIEWS_WITH_LEGAL_FOOTER.includes(e)){let{termsConditionsUrl:e,privacyPolicyUrl:t}=a.OptionsController.state,r=a.OptionsController.state.features?.legalCheckbox;return(!!e||!!t)&&!r}return s.ConstantsUtil.VIEWS_WITH_DEFAULT_FOOTER.includes(e)}}])},987979,e=>{"use strict";e.i(755701);var t=e.i(629692),a=e.i(93880);e.i(36650);var r=e.i(482214);e.i(642623),e.i(334366);var s=e.i(381949),i=e.i(244708),n=e.i(921752);let o=n.css`
  :host {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: ${({spacing:e})=>e[1]};
    text-transform: uppercase;
    white-space: nowrap;
  }

  :host([data-variant='accent']) {
    background-color: ${({tokens:e})=>e.core.foregroundAccent010};
    color: ${({tokens:e})=>e.core.textAccentPrimary};
  }

  :host([data-variant='info']) {
    background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
    color: ${({tokens:e})=>e.theme.textSecondary};
  }

  :host([data-variant='success']) {
    background-color: ${({tokens:e})=>e.core.backgroundSuccess};
    color: ${({tokens:e})=>e.core.textSuccess};
  }

  :host([data-variant='warning']) {
    background-color: ${({tokens:e})=>e.core.backgroundWarning};
    color: ${({tokens:e})=>e.core.textWarning};
  }

  :host([data-variant='error']) {
    background-color: ${({tokens:e})=>e.core.backgroundError};
    color: ${({tokens:e})=>e.core.textError};
  }

  :host([data-variant='certified']) {
    background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
    color: ${({tokens:e})=>e.theme.textSecondary};
  }

  :host([data-size='md']) {
    height: 30px;
    padding: 0 ${({spacing:e})=>e[2]};
    border-radius: ${({borderRadius:e})=>e[2]};
  }

  :host([data-size='sm']) {
    height: 20px;
    padding: 0 ${({spacing:e})=>e[1]};
    border-radius: ${({borderRadius:e})=>e[1]};
  }
`;var c=function(e,t,a,r){var s,i=arguments.length,n=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,a,r);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(n=(i<3?s(n):i>3?s(t,a,n):s(t,a))||n);return i>3&&n&&Object.defineProperty(t,a,n),n};let l=class extends t.LitElement{constructor(){super(...arguments),this.variant="accent",this.size="md",this.icon=void 0}render(){this.dataset.variant=this.variant,this.dataset.size=this.size;let e="md"===this.size?"md-medium":"sm-medium",t="md"===this.size?"md":"sm";return a.html`
      ${this.icon?a.html`<wui-icon size=${t} name=${this.icon}></wui-icon>`:null}
      <wui-text
        display="inline"
        data-variant=${this.variant}
        variant=${e}
        color="inherit"
      >
        <slot></slot>
      </wui-text>
    `}};l.styles=[s.resetStyles,o],c([(0,r.property)()],l.prototype,"variant",void 0),c([(0,r.property)()],l.prototype,"size",void 0),c([(0,r.property)()],l.prototype,"icon",void 0),l=c([(0,i.customElement)("wui-tag")],l),e.s([],987979)},258008,e=>{"use strict";e.s(["NavigationUtil",0,{URLS:{FAQ:"https://walletconnect.com/faq"}}])},117728,e=>{"use strict";var t=e.i(847505),a=e.i(920384);let r={convertEVMChainIdToCoinType(e){if(e>=0x80000000)throw Error("Invalid chainId");return(0x80000000|e)>>>0}};var s=e.i(758092),i=e.i(726),n=e.i(741686),o=e.i(561595),c=e.i(826172),l=e.i(463641),h=e.i(615638);let u=(0,t.proxy)({suggestions:[],loading:!1}),d=(0,i.withErrorBoundary)({state:u,subscribe:e=>(0,t.subscribe)(u,()=>e(u)),subscribeKey:(e,t)=>(0,a.subscribeKey)(u,e,t),async resolveName(e){try{return await n.BlockchainApiController.lookupEnsName(e)}catch(e){throw Error(e?.reasons?.[0]?.description||"Error resolving name")}},async isNameRegistered(e){try{return await n.BlockchainApiController.lookupEnsName(e),!0}catch{return!1}},async getSuggestions(e){try{return u.loading=!0,u.suggestions=[],u.suggestions=(await n.BlockchainApiController.getEnsNameSuggestions(e)).suggestions||[],u.suggestions}catch(e){throw Error(d.parseEnsApiError(e,"Error fetching name suggestions"))}finally{u.loading=!1}},async getNamesForAddress(e){try{if(!o.ChainController.state.activeCaipNetwork)return[];let t=s.StorageUtil.getEnsFromCacheForAddress(e);if(t)return t;let a=await n.BlockchainApiController.reverseLookupEnsName({address:e});return s.StorageUtil.updateEnsCache({address:e,ens:a,timestamp:Date.now()}),a}catch(e){throw Error(d.parseEnsApiError(e,"Error fetching names for address"))}},async registerName(e){let t=o.ChainController.state.activeCaipNetwork,a=o.ChainController.getAccountData(t?.chainNamespace)?.address,i=l.ConnectorController.getAuthConnector();if(!t)throw Error("Network not found");if(!a||!i)throw Error("Address or auth connector not found");u.loading=!0;try{let i=JSON.stringify({name:e,attributes:{},timestamp:Math.floor(Date.now()/1e3)});h.RouterController.pushTransactionStack({onCancel(){h.RouterController.replace("RegisterAccountName")}});let l=await c.ConnectionController.signMessage(i);u.loading=!1;let d=t.id;if(!d)throw Error("Network not found");let p=r.convertEVMChainIdToCoinType(Number(d));await n.BlockchainApiController.registerEnsName({coinType:p,address:a,signature:l,message:i}),o.ChainController.setAccountProp("profileName",e,t.chainNamespace),s.StorageUtil.updateEnsCache({address:a,ens:[{name:e,registered_at:new Date().toISOString(),updated_at:void 0,addresses:{},attributes:[]}],timestamp:Date.now()}),h.RouterController.replace("RegisterAccountNameSuccess")}catch(a){let t=d.parseEnsApiError(a,`Error registering name ${e}`);throw h.RouterController.replace("RegisterAccountName"),Error(t)}finally{u.loading=!1}},validateName:e=>/^[a-zA-Z0-9-]{4,}$/u.test(e),parseEnsApiError:(e,t)=>e?.reasons?.[0]?.description||t});e.s(["EnsController",0,d],117728)},404875,27395,762226,498662,813634,473937,e=>{"use strict";var t,a,r=e.i(954745),s=e.i(85315),i=e.i(986805),n=e.i(679839),o=e.i(396663);let c="3.4.2";e.s(["version",0,c],27395);var l=function(e,t,a,r){if("a"===a&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===a?r:"a"===a?r.call(e):r?r.value:t.get(e)};class h extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return`@wagmi/core@${c}`}constructor(e,a={}){super(),t.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const r=a.cause instanceof h?a.cause.details:a.cause?.message?a.cause.message:a.details,s=a.cause instanceof h&&a.cause.docsPath||a.docsPath;this.message=[e||"An error occurred.","",...a.metaMessages?[...a.metaMessages,""]:[],...s?[`Docs: ${this.docsBaseUrl}${s}.html${a.docsSlug?`#${a.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),a.cause&&(this.cause=a.cause),this.details=r,this.docsPath=s,this.metaMessages=a.metaMessages,this.shortMessage=e}walk(e){return l(this,t,"m",a).call(this,this,e)}}t=new WeakSet,a=function e(a,r){return r?.(a)?a:a.cause?l(this,t,"m",e).call(this,a.cause,r):a},e.s(["BaseError",0,h],762226);class u extends h{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}e.s(["ChainNotConfiguredError",0,u,"ConnectorAccountNotFoundError",0,class extends h{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}},"ConnectorAlreadyConnectedError",0,class extends h{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}},"ConnectorChainMismatchError",0,class extends h{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}},"ConnectorNotConnectedError",0,class extends h{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}},"ConnectorUnavailableReconnectingError",0,class extends h{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}],498662);class d extends h{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}function p(e){return e}function f(e={}){let t,a,c,l,{shimDisconnect:h=!0,unstable_shimAsyncInject:y}=e;function g(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...m[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return p(p=>({get icon(){return g().icon},get id(){return g().id},get name(){return g().name},type:f.type,async setup(){let a=await this.getProvider();a?.on&&e.target&&(c||(c=this.onConnect.bind(this),a.on("connect",c)),t||(t=this.onAccountsChanged.bind(this),a.on("accountsChanged",t)))},async connect({chainId:s,isReconnecting:n,withCapabilities:o}={}){let u=await this.getProvider();if(!u)throw new d;let f=[];if(n)f=await this.getAccounts().catch(()=>[]);else if(h)try{let e=await u.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(f=e[0]?.caveats?.[0]?.value?.map(e=>(0,r.getAddress)(e))).length>0&&(f=await this.getAccounts())}catch(e){if(e.code===i.UserRejectedRequestError.code)throw new i.UserRejectedRequestError(e);if(e.code===i.ResourceUnavailableRpcError.code)throw e}try{f?.length||n||(f=(await u.request({method:"eth_requestAccounts"})).map(e=>(0,r.getAddress)(e))),c&&(u.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),u.on("accountsChanged",t)),a||(a=this.onChainChanged.bind(this),u.on("chainChanged",a)),l||(l=this.onDisconnect.bind(this),u.on("disconnect",l));let d=await this.getChainId();if(s&&d!==s){let e=await this.switchChain({chainId:s}).catch(e=>{if(e.code===i.UserRejectedRequestError.code)throw e;return{id:d}});d=e?.id??d}return h&&await p.storage?.removeItem(`${this.id}.disconnected`),e.target||await p.storage?.setItem("injected.connected",!0),{accounts:o?f.map(e=>({address:e,capabilities:{}})):f,chainId:d}}catch(e){if(e.code===i.UserRejectedRequestError.code)throw new i.UserRejectedRequestError(e);if(e.code===i.ResourceUnavailableRpcError.code)throw new i.ResourceUnavailableRpcError(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new d;a&&(t.removeListener("chainChanged",a),a=void 0),l&&(t.removeListener("disconnect",l),l=void 0),c||(c=this.onConnect.bind(this),t.on("connect",c));try{await (0,o.withTimeout)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}h&&await p.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await p.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new d;return(await e.request({method:"eth_accounts"})).map(e=>(0,r.getAddress)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new d;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("u"<typeof window)return;let t=g();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?b(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{if(h&&await p.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await p.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==y&&!1!==y){let e=async()=>("u">typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof y?y:1e3;if(await Promise.race([..."u">typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(a=>setTimeout(()=>a(e()),t))]))return!0}throw new d}return!!(await (0,n.withRetry)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let a=await this.getProvider();if(!a)throw new d;let r=p.chains.find(e=>e.id===t);if(!r)throw new i.SwitchChainError(new u);let n=new Promise(e=>{let a=r=>{"chainId"in r&&r.chainId===t&&(p.emitter.off("change",a),e())};p.emitter.on("change",a)});try{return await Promise.all([a.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.numberToHex)(t)}]}).then(async()=>{await this.getChainId()===t&&p.emitter.emit("change",{chainId:t})}),n]),r}catch(o){if(4902===o.code||o?.data?.originalError?.code===4902)try{let o,c,{default:l,...h}=r.blockExplorers??{};e?.blockExplorerUrls?o=e.blockExplorerUrls:l&&(o=[l.url,...Object.values(h).map(e=>e.url)]),c=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let u={blockExplorerUrls:o,chainId:(0,s.numberToHex)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:c};return await Promise.all([a.request({method:"wallet_addEthereumChain",params:[u]}).then(async()=>{if(await this.getChainId()===t)p.emitter.emit("change",{chainId:t});else throw new i.UserRejectedRequestError(Error("User rejected switch after adding network."))}),n]),r}catch(e){throw new i.UserRejectedRequestError(e)}if(o.code===i.UserRejectedRequestError.code)throw new i.UserRejectedRequestError(o);throw new i.SwitchChainError(o)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(p.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),h&&await p.storage?.removeItem(`${this.id}.disconnected`)}else p.emitter.emit("change",{accounts:e.map(e=>(0,r.getAddress)(e))})},onChainChanged(e){let t=Number(e);p.emitter.emit("change",{chainId:t})},async onConnect(e){let r=await this.getAccounts();if(0===r.length)return;let s=Number(e.chainId);p.emitter.emit("connect",{accounts:r,chainId:s});let i=await this.getProvider();i&&(c&&(i.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),i.on("accountsChanged",t)),a||(a=this.onChainChanged.bind(this),i.on("chainChanged",a)),l||(l=this.onDisconnect.bind(this),i.on("disconnect",l)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(p.emitter.emit("disconnect"),t&&(a&&(t.removeListener("chainChanged",a),a=void 0),l&&(t.removeListener("disconnect",l),l=void 0),c||(c=this.onConnect.bind(this),t.on("connect",c))))}}))}e.s(["ProviderNotFoundError",0,d,"SwitchChainNotSupportedError",0,class extends h{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}],813634),e.s(["createConnector",0,p],473937),f.type="injected";let m={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:b(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>b(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:b(e,"isPhantom")}};function b(e,t){function a(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let r=e.ethereum;return r?.providers?r.providers.find(e=>a(e)):r&&a(r)?r:void 0}e.s(["injected",0,f],404875)},668292,(e,t,a)=>{"use strict";var r=Object.prototype.hasOwnProperty,s="~";function i(){}function n(e,t,a){this.fn=e,this.context=t,this.once=a||!1}function o(e,t,a,r,i){if("function"!=typeof a)throw TypeError("The listener must be a function");var o=new n(a,r||e,i),c=s?s+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],o]:e._events[c].push(o):(e._events[c]=o,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function l(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(s=!1)),l.prototype.eventNames=function(){var e,t,a=[];if(0===this._eventsCount)return a;for(t in e=this._events)r.call(e,t)&&a.push(s?t.slice(1):t);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},l.prototype.listeners=function(e){var t=s?s+e:e,a=this._events[t];if(!a)return[];if(a.fn)return[a.fn];for(var r=0,i=a.length,n=Array(i);r<i;r++)n[r]=a[r].fn;return n},l.prototype.listenerCount=function(e){var t=s?s+e:e,a=this._events[t];return a?a.fn?1:a.length:0},l.prototype.emit=function(e,t,a,r,i,n){var o=s?s+e:e;if(!this._events[o])return!1;var c,l,h=this._events[o],u=arguments.length;if(h.fn){switch(h.once&&this.removeListener(e,h.fn,void 0,!0),u){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,t),!0;case 3:return h.fn.call(h.context,t,a),!0;case 4:return h.fn.call(h.context,t,a,r),!0;case 5:return h.fn.call(h.context,t,a,r,i),!0;case 6:return h.fn.call(h.context,t,a,r,i,n),!0}for(l=1,c=Array(u-1);l<u;l++)c[l-1]=arguments[l];h.fn.apply(h.context,c)}else{var d,p=h.length;for(l=0;l<p;l++)switch(h[l].once&&this.removeListener(e,h[l].fn,void 0,!0),u){case 1:h[l].fn.call(h[l].context);break;case 2:h[l].fn.call(h[l].context,t);break;case 3:h[l].fn.call(h[l].context,t,a);break;case 4:h[l].fn.call(h[l].context,t,a,r);break;default:if(!c)for(d=1,c=Array(u-1);d<u;d++)c[d-1]=arguments[d];h[l].fn.apply(h[l].context,c)}}return!0},l.prototype.on=function(e,t,a){return o(this,e,t,a,!1)},l.prototype.once=function(e,t,a){return o(this,e,t,a,!0)},l.prototype.removeListener=function(e,t,a,r){var i=s?s+e:e;if(!this._events[i])return this;if(!t)return c(this,i),this;var n=this._events[i];if(n.fn)n.fn!==t||r&&!n.once||a&&n.context!==a||c(this,i);else{for(var o=0,l=[],h=n.length;o<h;o++)(n[o].fn!==t||r&&!n[o].once||a&&n[o].context!==a)&&l.push(n[o]);l.length?this._events[i]=1===l.length?l[0]:l:c(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=s?s+e:e,this._events[t]&&c(this,t)):(this._events=new i,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=s,l.EventEmitter=l,t.exports=l},955945,25184,e=>{"use strict";var t=e.i(668292);t.default,e.s([],955945),e.s(["EventEmitter",()=>t.default],25184)},970115,e=>{"use strict";let t=(0,e.i(593750).defineChain)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:0x16041f6},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xdb04c1}}});e.s(["mainnet",0,t])},640481,e=>{"use strict";let t=(0,e.i(593750).defineChain)({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}});e.s(["arbitrum",0,t])},284046,414120,412047,455045,e=>{"use strict";let t={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}};e.s(["contracts",0,t],414120);var a=e.i(886029),r=e.i(653863),s=e.i(647820),i=e.i(64972);let n={block:(0,r.defineBlock)({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=(0,s.formatTransaction)(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,a.hexToBigInt)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:(0,s.defineTransaction)({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,a.hexToBigInt)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:(0,i.defineTransactionReceipt)({format:e=>({l1GasPrice:e.l1GasPrice?(0,a.hexToBigInt)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,a.hexToBigInt)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,a.hexToBigInt)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})};e.s(["formatters",0,n],412047);var o=e.i(901620),c=e.i(725835),l=e.i(531081),h=e.i(85315),u=e.i(334649),d=e.i(161904);function p(e,t){var a;return"deposit"===(a=e).type||void 0!==a.sourceHash?function(e){!function(e){let{from:t,to:a}=e;if(t&&!(0,c.isAddress)(t))throw new o.InvalidAddressError({address:t});if(a&&!(0,c.isAddress)(a))throw new o.InvalidAddressError({address:a})}(e);let{sourceHash:t,data:a,from:r,gas:s,isSystemTx:i,mint:n,to:d,value:p}=e,f=[t,r,d??"0x",n?(0,h.toHex)(n):"0x",p?(0,h.toHex)(p):"0x",s?(0,h.toHex)(s):"0x",i?"0x1":"0x",a??"0x"];return(0,l.concatHex)(["0x7e",(0,u.toRlp)(f)])}(e):(0,d.serializeTransaction)(e,t)}let f={transaction:p};e.s(["serializeTransaction",0,p,"serializers",0,f],455045),e.s(["chainConfig",0,{blockTime:2e3,contracts:t,formatters:n,serializers:f}],284046)},742859,97917,e=>{"use strict";var t=e.i(284046),a=e.i(593750);let r=(0,a.defineChain)({...t.chainConfig,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...t.chainConfig.contracts,disputeGameFactory:{1:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{1:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{1:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{1:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:1});e.s(["optimism",0,r],742859);let s=(0,a.defineChain)({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x18938b0}}});e.s(["polygon",0,s],97917)},610475,528655,e=>{"use strict";var t=e.i(284046),a=e.i(593750);let r=(0,a.defineChain)({...t.chainConfig,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...t.chainConfig.contracts,disputeGameFactory:{1:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{1:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{1:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:0x10ac19f}},l1StandardBridge:{1:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:0x10ac19f}}},sourceId:1}),s=(0,a.defineChain)({...r,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://mainnet-preconf.base.org"]}}});e.s(["base",0,r,"basePreconf",0,s],610475);let i=(0,a.defineChain)({...t.chainConfig,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...t.chainConfig.contracts,disputeGameFactory:{0xaa36a7:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{0xaa36a7:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{0xaa36a7:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{0xaa36a7:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:0xaa36a7}),n=(0,a.defineChain)({...i,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-preconf.base.org"]}}});e.s(["baseSepolia",0,i,"baseSepoliaPreconf",0,n],528655)},287479,e=>{"use strict";let t=(0,e.i(593750).defineChain)({id:0xaa36a7,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0});e.s(["sepolia",0,t])},715033,e=>{"use strict";let t=(0,e.i(593750).defineChain)({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xf2f12c}}});e.s(["bsc",0,t])},832095,e=>{"use strict";let t=(0,e.i(593750).defineChain)({id:97,name:"BNB Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://api-testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0x109d893}},testnet:!0});e.s(["bscTestnet",0,t])},155014,e=>{"use strict";let t=(0,e.i(593750).defineChain)({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xb5b35e}}});e.s(["avalanche",0,t])},773408,e=>{"use strict";let t=(0,e.i(593750).defineChain)({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://amoy.polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0});e.s(["polygonAmoy",0,t])},613835,140267,e=>{"use strict";var t=e.i(332635);function a(e,t,a){return e&t^~e&a}function r(e,t,a){return e&t^e&a^t&a}class s extends t.Hash{constructor(e,a,r,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=a,this.padOffset=r,this.isLE=s,this.buffer=new Uint8Array(e),this.view=(0,t.createView)(this.buffer)}update(e){(0,t.aexists)(this),e=(0,t.toBytes)(e),(0,t.abytes)(e);let{view:a,buffer:r,blockLen:s}=this,i=e.length;for(let n=0;n<i;){let o=Math.min(s-this.pos,i-n);if(o===s){let a=(0,t.createView)(e);for(;s<=i-n;n+=s)this.process(a,n);continue}r.set(e.subarray(n,n+o),this.pos),this.pos+=o,n+=o,this.pos===s&&(this.process(a,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,t.aexists)(this),(0,t.aoutput)(e,this),this.finished=!0;let{buffer:a,view:r,blockLen:s,isLE:i}=this,{pos:n}=this;a[n++]=128,(0,t.clean)(this.buffer.subarray(n)),this.padOffset>s-n&&(this.process(r,0),n=0);for(let e=n;e<s;e++)a[e]=0;!function(e,t,a,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,a,r);let s=BigInt(32),i=BigInt(0xffffffff),n=Number(a>>s&i),o=Number(a&i),c=4*!!r,l=4*!r;e.setUint32(t+c,n,r),e.setUint32(t+l,o,r)}(r,s-8,BigInt(8*this.length),i),this.process(r,0);let o=(0,t.createView)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=c/4,h=this.get();if(l>h.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)o.setUint32(4*e,h[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let a=e.slice(0,t);return this.destroy(),a}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:a,length:r,finished:s,destroyed:i,pos:n}=this;return e.destroyed=i,e.finished=s,e.length=r,e.pos=n,r%t&&e.buffer.set(a),e}clone(){return this._cloneInto()}}let i=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),n=Uint32Array.from([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]),o=Uint32Array.from([0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]),c=Uint32Array.from([0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179]);e.s(["Chi",0,a,"HashMD",0,s,"Maj",0,r,"SHA224_IV",0,n,"SHA256_IV",0,i,"SHA384_IV",0,o,"SHA512_IV",0,c],140267);var l=e.i(511297);let h=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),u=new Uint32Array(64);class d extends s{constructor(e=32){super(64,e,8,!1),this.A=0|i[0],this.B=0|i[1],this.C=0|i[2],this.D=0|i[3],this.E=0|i[4],this.F=0|i[5],this.G=0|i[6],this.H=0|i[7]}get(){let{A:e,B:t,C:a,D:r,E:s,F:i,G:n,H:o}=this;return[e,t,a,r,s,i,n,o]}set(e,t,a,r,s,i,n,o){this.A=0|e,this.B=0|t,this.C=0|a,this.D=0|r,this.E=0|s,this.F=0|i,this.G=0|n,this.H=0|o}process(e,s){for(let t=0;t<16;t++,s+=4)u[t]=e.getUint32(s,!1);for(let e=16;e<64;e++){let a=u[e-15],r=u[e-2],s=(0,t.rotr)(a,7)^(0,t.rotr)(a,18)^a>>>3,i=(0,t.rotr)(r,17)^(0,t.rotr)(r,19)^r>>>10;u[e]=i+u[e-7]+s+u[e-16]|0}let{A:i,B:n,C:o,D:c,E:l,F:d,G:p,H:f}=this;for(let e=0;e<64;e++){let s=f+((0,t.rotr)(l,6)^(0,t.rotr)(l,11)^(0,t.rotr)(l,25))+a(l,d,p)+h[e]+u[e]|0,m=((0,t.rotr)(i,2)^(0,t.rotr)(i,13)^(0,t.rotr)(i,22))+r(i,n,o)|0;f=p,p=d,d=l,l=c+s|0,c=o,o=n,n=i,i=s+m|0}i=i+this.A|0,n=n+this.B|0,o=o+this.C|0,c=c+this.D|0,l=l+this.E|0,d=d+this.F|0,p=p+this.G|0,f=f+this.H|0,this.set(i,n,o,c,l,d,p,f)}roundClean(){(0,t.clean)(u)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,t.clean)(this.buffer)}}class p extends d{constructor(){super(28),this.A=0|n[0],this.B=0|n[1],this.C=0|n[2],this.D=0|n[3],this.E=0|n[4],this.F=0|n[5],this.G=0|n[6],this.H=0|n[7]}}let f=l.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),m=f[0],b=f[1],y=new Uint32Array(80),g=new Uint32Array(80);let v=(0,t.createHasher)(()=>new d),x=(0,t.createHasher)(()=>new p);e.s(["SHA224",0,p,"SHA256",0,d,"sha224",0,x,"sha256",0,v],613835)},314404,e=>{"use strict";var t=e.i(842201),a=e.i(986805),r=e.i(970074),s=e.i(758152);function i(e){return!!("code"in e&&"number"==typeof e.code&&(e.code===a.TransactionRejectedRpcError.code||e.code===a.UserRejectedRequestError.code||e.code===a.WalletConnectSessionSettlementError.code||t.ExecutionRevertedError.nodeMessage.test(e.message)||5e3===e.code))}e.s(["fallback",0,function(e,t={}){let{key:a="fallback",name:n="Fallback",rank:o=!1,shouldThrow:c=i,retryCount:l,retryDelay:h}=t;return({chain:t,pollingInterval:i=4e3,timeout:u,...d})=>{let p=e,f=()=>{},m=(0,s.createTransport)({key:a,name:n,async request({method:e,params:a}){let r,s=async(i=0)=>{let n=p[i]({...d,chain:t,retryCount:0,timeout:u});try{let t=await n.request({method:e,params:a});return f({method:e,params:a,response:t,transport:n,status:"success"}),t}catch(o){if(f({error:o,method:e,params:a,transport:n,status:"error"}),c(o)||i===p.length-1||!(r??=p.slice(i+1).some(a=>{let{include:r,exclude:s}=a({chain:t}).config.methods||{};return r?r.includes(e):!s||!s.includes(e)})))throw o;return s(i+1)}};return s()},retryCount:l,retryDelay:h,type:"fallback"},{onResponse:e=>f=e,transports:p.map(e=>e({chain:t,retryCount:0}))});if(o){let e="object"==typeof o?o:{};!function({chain:e,interval:t=4e3,onTransports:a,ping:s,sampleCount:i=10,timeout:n=1e3,transports:o,weights:c={}}){let{stability:l=.7,latency:h=.3}=c,u=[],d=async()=>{let c=await Promise.all(o.map(async t=>{let a,r,i=t({chain:e,retryCount:0,timeout:n}),o=Date.now();try{await (s?s({transport:i}):i.request({method:"net_listening"})),r=1}catch{r=0}finally{a=Date.now()}return{latency:a-o,success:r}}));u.push(c),u.length>i&&u.shift();let p=Math.max(...u.map(e=>Math.max(...e.map(({latency:e})=>e))));a(o.map((e,t)=>{let a=u.map(e=>e[t].latency),r=a.reduce((e,t)=>e+t,0)/a.length,s=u.map(e=>e[t].success),i=s.reduce((e,t)=>e+t,0)/s.length;return 0===i?[0,t]:[h*(1-r/p)+l*i,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>o[e])),await (0,r.wait)(t),d()};d()}({chain:t,interval:e.interval??i,onTransports:e=>p=e,ping:e.ping,sampleCount:e.sampleCount,timeout:e.timeout,transports:p,weights:e.weights})}return m}},"shouldThrow",0,i])},508617,e=>{"use strict";var t=e.i(758152);e.s(["custom",0,function(e,a={}){let{key:r="custom",methods:s,name:i="Custom Provider",retryDelay:n}=a;return({retryCount:o})=>(0,t.createTransport)({key:r,methods:s,name:i,request:e.request.bind(e),retryCount:a.retryCount??o,retryDelay:n,type:"custom"})}])},227696,e=>{"use strict";var t=e.i(277827),a=e.i(746027),r=e.i(85315);async function s(e,{account:i=e.account,message:n}){if(!i)throw new a.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});let o=(0,t.parseAccount)(i);if(o.signMessage)return o.signMessage({message:n});let c="string"==typeof n?(0,r.stringToHex)(n):n.raw instanceof Uint8Array?(0,r.toHex)(n.raw):n.raw;return e.request({method:"personal_sign",params:[c,o.address]},{retryCount:0})}e.s(["signMessage",0,s])},248337,e=>{"use strict";var t=e.i(848277),a=e.i(330668),r=e.i(568160);e.i(639057);var s=e.i(947206),i=e.i(537146),n=e.i(330979),o=class extends n.Removable{#e;#t;#a;#r;#s;#i;#n;constructor(e){super(),this.#n=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#a=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=l(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=l(this.options);void 0!==e.data&&(this.setState(c(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#a.remove(this)}setData(e,t){let a=(0,r.replaceData)(this.state.data,e,this.options);return this.#o({data:a,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),a}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(r.noop).catch(r.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,r.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,r.resolveStaleTime)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,r.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#n||this.#c()?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){let a;if("idle"!==this.state.fetchStatus&&this.#s?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let s=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#n=!0,s.signal)})},o=()=>{let e,a=(0,r.ensureQueryFn)(this.options,t),s=(n(e={client:this.#r,queryKey:this.queryKey,meta:this.meta}),e);return(this.#n=!1,this.options.persister)?this.options.persister(a,s,this):a(s)},c=(n(a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o}),a);this.options.behavior?.onFetch(c,this),this.#t=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#o({type:"fetch",meta:c.fetchOptions?.meta}),this.#s=(0,i.createRetryer)({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:e=>{e instanceof i.CancelledError&&e.revert&&this.setState({...this.#t,fetchStatus:"idle"}),s.abort()},onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let e=await this.#s.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#a.config.onSuccess?.(e,this),this.#a.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof i.CancelledError){if(e.silent)return this.#s.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#o({type:"error",error:e}),this.#a.config.onError?.(e,this),this.#a.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#o(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":var a,r;return{...t,...(a=t.data,r=this.options,{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,i.canFetch)(r.networkMode)?"fetching":"paused",...void 0===a&&{error:null,status:"pending"}}),fetchMeta:e.meta??null};case"success":let s={...t,...c(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?s:void 0,s;case"error":let n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),s.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:e})})}};function c(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function l(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,a=void 0!==t,r=a?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:a?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var h=e.i(310488),u=class extends h.Subscribable{constructor(e={}){super(),this.config=e,this.#l=new Map}#l;build(e,t,a){let s=t.queryKey,i=t.queryHash??(0,r.hashQueryKeyByOptions)(s,t),n=this.get(i);return n||(n=new o({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(t),state:a,defaultOptions:e.getQueryDefaults(s)}),this.add(n)),n}add(e){this.#l.has(e.queryHash)||(this.#l.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#l.get(e.queryHash);t&&(e.destroy(),t===e&&this.#l.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){s.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#l.get(e)}getAll(){return[...this.#l.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r.matchQuery)(e,t)):t}notify(e){s.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){s.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){s.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},d=e.i(503930),p=h,f=class extends p.Subscribable{constructor(e={}){super(),this.config=e,this.#h=new Set,this.#u=new Map,this.#d=0}#h;#u;#d;build(e,t,a){let r=new d.Mutation({client:e,mutationCache:this,mutationId:++this.#d,options:e.defaultMutationOptions(t),state:a});return this.add(r),r}add(e){this.#h.add(e);let t=m(e);if("string"==typeof t){let a=this.#u.get(t);a?a.push(e):this.#u.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#h.delete(e)){let t=m(e);if("string"==typeof t){let a=this.#u.get(t);if(a)if(a.length>1){let t=a.indexOf(e);-1!==t&&a.splice(t,1)}else a[0]===e&&this.#u.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=m(e);if("string"!=typeof t)return!0;{let a=this.#u.get(t),r=a?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=m(e);if("string"!=typeof t)return Promise.resolve();{let a=this.#u.get(t)?.find(t=>t!==e&&t.state.isPaused);return a?.continue()??Promise.resolve()}}clear(){s.notifyManager.batch(()=>{this.#h.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#h.clear(),this.#u.clear()})}getAll(){return Array.from(this.#h)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.matchMutation)(e,t))}notify(e){s.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return s.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.noop))))}};function m(e){return e.options.scope?.id}var b=e.i(266849),y=e.i(240285);function g(e){return{onFetch:(t,a)=>{let s=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,n=t.state.data?.pages||[],o=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},l=0,h=async()=>{let a=!1,h=(0,r.ensureQueryFn)(t.options,t.fetchOptions),u=async(e,s,i)=>{let n;if(a)return Promise.reject();if(null==s&&e.pages.length)return Promise.resolve(e);let o=(n={client:t.client,queryKey:t.queryKey,pageParam:s,direction:i?"backward":"forward",meta:t.options.meta},(0,r.addConsumeAwareSignal)(n,()=>t.signal,()=>a=!0),n),c=await h(o),{maxPages:l}=t.options,u=i?r.addToStart:r.addToEnd;return{pages:u(e.pages,c,l),pageParams:u(e.pageParams,s,l)}};if(i&&n.length){let e="backward"===i,t={pages:n,pageParams:o},a=(e?function(e,{pages:t,pageParams:a}){return t.length>0?e.getPreviousPageParam?.(t[0],t,a[0],a):void 0}:v)(s,t);c=await u(t,a,e)}else{let t=e??n.length;do{let e=0===l?o[0]??s.initialPageParam:v(s,c);if(l>0&&null==e)break;c=await u(c,e),l++}while(l<t)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},a):t.fetchFn=h}}}function v(e,{pages:t,pageParams:a}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,a[r],a):void 0}var x=class{#p;#f;#i;#m;#b;#y;#g;#v;constructor(e={}){this.#p=e.queryCache||new u,this.#f=e.mutationCache||new f,this.#i=e.defaultOptions||{},this.#m=new Map,this.#b=new Map,this.#y=0}mount(){this.#y++,1===this.#y&&(this.#g=b.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#p.onFocus())}),this.#v=y.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#p.onOnline())}))}unmount(){this.#y--,0===this.#y&&(this.#g?.(),this.#g=void 0,this.#v?.(),this.#v=void 0)}isFetching(e){return this.#p.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#f.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#p.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),a=this.#p.build(this,t),s=a.state.data;return void 0===s?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,a))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#p.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,a){let s=this.defaultQueryOptions({queryKey:e}),i=this.#p.get(s.queryHash),n=i?.state.data,o=(0,r.functionalUpdate)(t,n);if(void 0!==o)return this.#p.build(this,s).setData(o,{...a,manual:!0})}setQueriesData(e,t,a){return s.notifyManager.batch(()=>this.#p.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,a)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#p.get(t.queryHash)?.state}removeQueries(e){let t=this.#p;s.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let a=this.#p;return s.notifyManager.batch(()=>(a.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let a={revert:!0,...t};return Promise.all(s.notifyManager.batch(()=>this.#p.findAll(e).map(e=>e.cancel(a)))).then(r.noop).catch(r.noop)}invalidateQueries(e,t={}){return s.notifyManager.batch(()=>(this.#p.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let a={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(s.notifyManager.batch(()=>this.#p.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,a);return a.throwOnError||(t=t.catch(r.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let a=this.#p.build(this,t);return a.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,a))?a.fetch(t):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.noop).catch(r.noop)}fetchInfiniteQuery(e){return e.behavior=g(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.noop).catch(r.noop)}ensureInfiniteQueryData(e){return e.behavior=g(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return y.onlineManager.isOnline()?this.#f.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#p}getMutationCache(){return this.#f}getDefaultOptions(){return this.#i}setDefaultOptions(e){this.#i=e}setQueryDefaults(e,t){this.#m.set((0,r.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#m.values()],a={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.queryKey)&&Object.assign(a,t.defaultOptions)}),a}setMutationDefaults(e,t){this.#b.set((0,r.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#b.values()],a={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.mutationKey)&&Object.assign(a,t.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#i.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#i.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#p.clear(),this.#f.clear()}},C=e.i(746592),w=e.i(774231),k=e.i(499746),P=e.i(595361);let E=new x;e.s(["default",0,function({children:e}){let[r,s]=(0,a.useState)(null);return((0,a.useEffect)(()=>{let e=!0;return(0,P.getRuntimeConfig)().then(({projectId:t})=>{if(!e)return;let a=(0,P.createWagmiAdapter)(t);(0,w.createAppKit)({adapters:[a],projectId:t,networks:P.networks,metadata:{name:"Cipher Gate Signing UI",description:"Proxy RPC signing interface",url:window.location.origin,icons:[]},features:{analytics:!1}}),s(a)}),()=>{e=!1}},[]),r)?(0,t.jsx)(k.WagmiProvider,{config:r.wagmiConfig,children:(0,t.jsx)(C.QueryClientProvider,{client:E,children:e})}):(0,t.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-zinc-50 dark:bg-zinc-950",children:(0,t.jsx)("p",{className:"text-sm text-zinc-500",children:"Loading config..."})})}],248337)},639725,e=>{e.v(t=>Promise.all(["static/chunks/0-_nf4in0lp4x.js","static/chunks/116rght~ne-yy.js","static/chunks/06s~ewwco83ur.js","static/chunks/0_0l6qk8g6yhq.js"].map(t=>e.l(t))).then(()=>t(719077)))},266424,e=>{e.v(t=>Promise.all(["static/chunks/049bpygoj.20k.js"].map(t=>e.l(t))).then(()=>t(65493)))},673989,e=>{e.v(t=>Promise.all(["static/chunks/14og-vbnm7nq5.js"].map(t=>e.l(t))).then(()=>t(616440)))},671863,e=>{e.v(t=>Promise.all(["static/chunks/0i3_h.o~s15_r.js"].map(t=>e.l(t))).then(()=>t(738475)))},961119,e=>{e.v(t=>Promise.all(["static/chunks/06baiv~u6nu7b.js"].map(t=>e.l(t))).then(()=>t(106934)))},564672,e=>{e.v(t=>Promise.all(["static/chunks/170n8l2loi7cl.js","static/chunks/0gfeeh8ncgr14.js"].map(t=>e.l(t))).then(()=>t(95738)))},575806,e=>{e.v(t=>Promise.all(["static/chunks/0530iibghxwk_.js","static/chunks/0vc7kdw4wc-~p.js"].map(t=>e.l(t))).then(()=>t(669073)))},170248,e=>{e.v(t=>Promise.all(["static/chunks/0pdkqq-kfg0d8.js"].map(t=>e.l(t))).then(()=>t(983309)))},852367,e=>{e.v(t=>Promise.all(["static/chunks/06xn1q8pshh7s.js"].map(t=>e.l(t))).then(()=>t(862269)))},571219,e=>{e.v(t=>Promise.all(["static/chunks/15xwfovi__4ys.js"].map(t=>e.l(t))).then(()=>t(943123)))},583119,e=>{e.v(t=>Promise.all(["static/chunks/0p5c9ec8um1q2.js"].map(t=>e.l(t))).then(()=>t(692020)))},610028,e=>{e.v(t=>Promise.all(["static/chunks/0~i2cp7md0tuq.js","static/chunks/0sott3diufhgs.js"].map(t=>e.l(t))).then(()=>t(581978)))},953505,e=>{e.v(t=>Promise.all(["static/chunks/0fzmbky4uwg-q.js"].map(t=>e.l(t))).then(()=>t(233603)))},397644,e=>{e.v(t=>Promise.all(["static/chunks/0f~46lumg4w63.js"].map(t=>e.l(t))).then(()=>t(947884)))},838776,e=>{e.v(t=>Promise.all(["static/chunks/14y7n-rnid2cz.js","static/chunks/0sott3diufhgs.js","static/chunks/0bmktp25cvm~6.js"].map(t=>e.l(t))).then(()=>t(206056)))},10883,e=>{e.v(t=>Promise.all(["static/chunks/0_18p5azocy3_.js"].map(t=>e.l(t))).then(()=>t(482655)))},412124,e=>{e.v(t=>Promise.all(["static/chunks/0t.p99d7fkes~.js"].map(t=>e.l(t))).then(()=>t(772807)))},675658,e=>{e.v(t=>Promise.all(["static/chunks/03onkzg8yp4hw.js"].map(t=>e.l(t))).then(()=>t(535557)))},358345,e=>{e.v(t=>Promise.all(["static/chunks/14fk7~dkgy1m2.js"].map(t=>e.l(t))).then(()=>t(974552)))},76192,e=>{e.v(t=>Promise.all(["static/chunks/0i8614g~k382v.js"].map(t=>e.l(t))).then(()=>t(262439)))},464470,e=>{e.v(t=>Promise.all(["static/chunks/09z5qj.5no38c.js"].map(t=>e.l(t))).then(()=>t(473589)))},556944,e=>{e.v(t=>Promise.all(["static/chunks/12jtewt4464k3.js"].map(t=>e.l(t))).then(()=>t(362015)))},108457,e=>{e.v(t=>Promise.all(["static/chunks/0f6wbad03jd5_.js"].map(t=>e.l(t))).then(()=>t(44357)))},113420,e=>{e.v(t=>Promise.all(["static/chunks/06qndbc~wy7qh.js"].map(t=>e.l(t))).then(()=>t(907301)))},259738,e=>{e.v(t=>Promise.all(["static/chunks/000r7wu4v2th..js"].map(t=>e.l(t))).then(()=>t(30747)))},515453,e=>{e.v(t=>Promise.all(["static/chunks/01pu.nx.inx6o.js"].map(t=>e.l(t))).then(()=>t(670633)))},331705,e=>{e.v(t=>Promise.all(["static/chunks/0gjzms23pj3i~.js"].map(t=>e.l(t))).then(()=>t(822442)))},669045,e=>{e.v(t=>Promise.all(["static/chunks/0udmj5kddi52n.js"].map(t=>e.l(t))).then(()=>t(424447)))},368215,e=>{e.v(t=>Promise.all(["static/chunks/0ab0yopja_wp9.js"].map(t=>e.l(t))).then(()=>t(548428)))},433133,e=>{e.v(t=>Promise.all(["static/chunks/0n5hgmwpr3uki.js"].map(t=>e.l(t))).then(()=>t(377027)))},585347,e=>{e.v(t=>Promise.all(["static/chunks/13h4e9.5eewe_.js"].map(t=>e.l(t))).then(()=>t(939009)))},613562,e=>{e.v(t=>Promise.all(["static/chunks/0gqlk6vdhu7gl.js"].map(t=>e.l(t))).then(()=>t(857113)))},105062,e=>{e.v(t=>Promise.all(["static/chunks/0g0mq6fi.45yn.js"].map(t=>e.l(t))).then(()=>t(365819)))},346026,e=>{e.v(t=>Promise.all(["static/chunks/0dj9rhhiq9tz5.js"].map(t=>e.l(t))).then(()=>t(474701)))},760190,e=>{e.v(t=>Promise.all(["static/chunks/0rvmzzuobq_n6.js"].map(t=>e.l(t))).then(()=>t(260786)))},233171,e=>{e.v(t=>Promise.all(["static/chunks/05z-haht1lmpc.js"].map(t=>e.l(t))).then(()=>t(396226)))},493547,e=>{e.v(t=>Promise.all(["static/chunks/0buq5iuwvj8bm.js"].map(t=>e.l(t))).then(()=>t(382694)))},20111,e=>{e.v(t=>Promise.all(["static/chunks/0a_3.3zs~0lk_.js"].map(t=>e.l(t))).then(()=>t(844251)))},215781,e=>{e.v(t=>Promise.all(["static/chunks/0blhhpqex7cd7.js"].map(t=>e.l(t))).then(()=>t(643376)))},79734,e=>{e.v(t=>Promise.all(["static/chunks/0mwnew2jb8yk2.js"].map(t=>e.l(t))).then(()=>t(251523)))},187613,e=>{e.v(t=>Promise.all(["static/chunks/04w6uj795v~fl.js"].map(t=>e.l(t))).then(()=>t(519109)))},993981,e=>{e.v(t=>Promise.all(["static/chunks/121onw7ik5a05.js"].map(t=>e.l(t))).then(()=>t(15094)))},351829,e=>{e.v(t=>Promise.all(["static/chunks/0dia8hx6k8c80.js"].map(t=>e.l(t))).then(()=>t(361390)))},259192,e=>{e.v(t=>Promise.all(["static/chunks/0~b8y1m2etqbu.js"].map(t=>e.l(t))).then(()=>t(296298)))},114208,e=>{e.v(t=>Promise.all(["static/chunks/0a8larna56uzr.js"].map(t=>e.l(t))).then(()=>t(48825)))},946926,e=>{e.v(t=>Promise.all(["static/chunks/0jq.y352-3yam.js"].map(t=>e.l(t))).then(()=>t(145862)))},66107,e=>{e.v(t=>Promise.all(["static/chunks/14xokm0stxith.js"].map(t=>e.l(t))).then(()=>t(837232)))},793622,e=>{e.v(t=>Promise.all(["static/chunks/0zo2t.mlgx~iq.js"].map(t=>e.l(t))).then(()=>t(818053)))},11801,e=>{e.v(t=>Promise.all(["static/chunks/11w6agogwcys1.js"].map(t=>e.l(t))).then(()=>t(835155)))},965189,e=>{e.v(t=>Promise.all(["static/chunks/0g_hlzz.dvhc6.js"].map(t=>e.l(t))).then(()=>t(678931)))},756957,e=>{e.v(t=>Promise.all(["static/chunks/1180e1suvc_vy.js"].map(t=>e.l(t))).then(()=>t(807696)))},395060,e=>{e.v(t=>Promise.all(["static/chunks/0ajyincxpj4wk.js"].map(t=>e.l(t))).then(()=>t(240627)))},546696,e=>{e.v(t=>Promise.all(["static/chunks/16yjuqx5b2d5e.js"].map(t=>e.l(t))).then(()=>t(437860)))},877307,e=>{e.v(t=>Promise.all(["static/chunks/119de87fcjj-..js"].map(t=>e.l(t))).then(()=>t(732619)))},909052,e=>{e.v(t=>Promise.all(["static/chunks/0k.uljtex72b-.js"].map(t=>e.l(t))).then(()=>t(738799)))},147151,e=>{e.v(t=>Promise.all(["static/chunks/05qwsi.tw59n..js"].map(t=>e.l(t))).then(()=>t(843408)))},333643,e=>{e.v(t=>Promise.all(["static/chunks/0bfvaetqf_mn2.js"].map(t=>e.l(t))).then(()=>t(243391)))},913373,e=>{e.v(t=>Promise.all(["static/chunks/0e7qc65d-ijlf.js"].map(t=>e.l(t))).then(()=>t(346037)))},829648,e=>{e.v(t=>Promise.all(["static/chunks/145hqtpd4kl.b.js"].map(t=>e.l(t))).then(()=>t(769867)))},675734,e=>{e.v(t=>Promise.all(["static/chunks/0yu57f0jcplr5.js"].map(t=>e.l(t))).then(()=>t(84711)))},347847,e=>{e.v(t=>Promise.all(["static/chunks/0r8lk9h64-.b9.js"].map(t=>e.l(t))).then(()=>t(298840)))},931822,e=>{e.v(t=>Promise.all(["static/chunks/07m6ra387cez_.js"].map(t=>e.l(t))).then(()=>t(79864)))},253449,e=>{e.v(t=>Promise.all(["static/chunks/0txhqr62sxb26.js"].map(t=>e.l(t))).then(()=>t(879024)))},381780,e=>{e.v(t=>Promise.all(["static/chunks/0-~~ex1._.q-h.js"].map(t=>e.l(t))).then(()=>t(62210)))},975819,e=>{e.v(t=>Promise.all(["static/chunks/07fms1tue-iol.js"].map(t=>e.l(t))).then(()=>t(591086)))},31637,e=>{e.v(t=>Promise.all(["static/chunks/13acj-9kmk17j.js"].map(t=>e.l(t))).then(()=>t(632309)))},45391,e=>{e.v(t=>Promise.all(["static/chunks/0ktjihta.8lbn.js"].map(t=>e.l(t))).then(()=>t(122716)))},994059,e=>{e.v(t=>Promise.all(["static/chunks/056hfacw0pkl0.js"].map(t=>e.l(t))).then(()=>t(31279)))},154481,e=>{e.v(t=>Promise.all(["static/chunks/116rght~ne-yy.js"].map(t=>e.l(t))).then(()=>t(762722)))},735585,e=>{e.v(t=>Promise.all(["static/chunks/0azfm-6rm_2x_.js"].map(t=>e.l(t))).then(()=>t(927773)))}]);