1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,268314,e=>{"use strict";var t=e.i(504701),r=e.i(10070),s=e.i(742753),n=e.i(133207),i=class extends n.Removable{#e;#t;#r;#s;#n;#i;#o;constructor(e){super(),this.#o=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#r=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=c(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=c(this.options);void 0!==e.data&&(this.setState(a(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#r.remove(this)}setData(e,r){let s=(0,t.replaceData)(this.state.data,e,this.options);return this.#a({data:s,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),s}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){let r=this.#n?.promise;return this.#n?.cancel(e),r?r.then(t.noop).catch(t.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,t.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.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,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.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.#n&&(this.#o||this.#c()?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.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.#a({type:"invalidate"})}async fetch(e,r){let n;if("idle"!==this.state.fetchStatus&&this.#n?.status()!=="rejected"){if(void 0!==this.state.data&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let i=new AbortController,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#o=!0,i.signal)})},a=()=>{let e,s=(0,t.ensureQueryFn)(this.options,r),n=(o(e={client:this.#s,queryKey:this.queryKey,meta:this.meta}),e);return(this.#o=!1,this.options.persister)?this.options.persister(s,n,this):s(n)},c=(o(n={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:a}),n);this.options.behavior?.onFetch(c,this),this.#t=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#n=(0,s.createRetryer)({initialPromise:r?.initialPromise,fn:c.fetchFn,onCancel:e=>{e instanceof s.CancelledError&&e.revert&&this.setState({...this.#t,fetchStatus:"idle"}),i.abort()},onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let e=await this.#n.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof s.CancelledError){if(e.silent)return this.#n.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#a({type:"error",error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#a(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":return{...t,...o(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...a(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":let s=e.error;
1return{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),r.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function o(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function a(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function c(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,s=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",()=>i,"fetchState",()=>o])},934579,e=>{"use strict";var t=e.i(344440);let r=!1;async function s(e,t={}){let n;if(r)return[];r=!0,e.setState(e=>({...e,status:e.current?"reconnecting":"connecting"}));let i=[];if(t.connectors?.length)for(let r of t.connectors){let t;t="function"==typeof r?e._internal.connectors.setup(r):r,i.push(t)}else i.push(...e.connectors);try{n=await e.storage?.getItem("recentConnectorId")}catch{}let o={};for(let[,t]of e.state.connections)o[t.connector.id]=1;n&&(o[n]=0);let a=Object.keys(o).length>0?[...i].sort((e,t)=>(o[e.id]??10)-(o[t.id]??10)):i,c=!1,u=[],l=[];for(let t of a){let r=await t.getProvider().catch(()=>void 0);if(!r||l.some(e=>e===r)||!await t.isAuthorized())continue;let s=await t.connect({isReconnecting:!0}).catch(()=>null);s&&(t.emitter.off("connect",e._internal.events.connect),t.emitter.on("change",e._internal.events.change),t.emitter.on("disconnect",e._internal.events.disconnect),e.setState(e=>{let r=new Map(c?e.connections:new Map).set(t.uid,{accounts:s.accounts,chainId:s.chainId,connector:t});return{...e,current:c?e.current:t.uid,connections:r}}),u.push({accounts:s.accounts,chainId:s.chainId,connector:t}),l.push(r),c=!0)}return("reconnecting"===e.state.status||"connecting"===e.state.status)&&(c?e.setState(e=>({...e,status:"connected"})):e.setState(e=>({...e,connections:new Map,current:null,status:"disconnected"}))),r=!1,u}function n(e){let{children:r,config:n,initialState:i,reconnectOnMount:o=!0}=e,{onMount:a}=function(e,t){let{initialState:r,reconnectOnMount:n}=t;return r&&!e._internal.store.persist.hasHydrated()&&e.setState({...r,chainId:e.chains.some(e=>e.id===r.chainId)?r.chainId:e.chains[0].id,connections:n?r.connections:new Map,status:n?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(t=>{let r=new Set;for(let e of t??[])if(e.rdns)for(let t of Array.isArray(e.rdns)?e.rdns:[e.rdns])r.add(t);let s=[];for(let t of e._internal.mipd?.getProviders()??[]){if(r.has(t.info.rdns))continue;let n=e._internal.connectors.providerDetailToConnector(t),i=e._internal.connectors.setup(n);s.push(i)}return[...t,...s]})),n?s(e):e.storage&&e.setState(e=>({...e,connections:new Map}))}}}(n,{initialState:i,reconnectOnMount:o});n._internal.ssr||a();let c=(0,t.useRef)(!0);return(0,t.useEffect)(()=>{if(c.current&&n._internal.ssr)return a(),()=>{c.current=!1}},[]),r}let i=(0,t.createContext)(void 0);function o(e){let{children:r,config:s}=e;return(0,t.createElement)(n,e,(0,t.createElement)(i.Provider,{value:s},r))}e.s(["WagmiContext",0,i,"WagmiProvider",()=>o],934579)},910714,846720,836243,e=>{"use strict";var t=e.i(126116),r=e.i(9069),s=t;class n extends s.BaseError{constructor(e,{code:t,docsPath:s,metaMessages:n,name:i,shortMessage:o}){super(o,{cause:e,docsPath:s,metaMessages:n||e?.metaMessages,name:i||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}
vendor: 6,024 bytes, line 1
1),this.name=i||e.name,this.code=e instanceof r.RpcRequestError?e.code:t??-1}}class i extends n{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class o extends n{constructor(e){super(e,{code:o.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class a extends n{constructor(e){super(e,{code:a.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends n{constructor(e,{method:t}={}){super(e,{code:c.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class u extends n{constructor(e){super(e,{code:u.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class l extends n{constructor(e){super(e,{code:l.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class d extends n{constructor(e){super(e,{code:d.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class h extends n{constructor(e){super(e,{code:h.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class f extends n{constructor(e){super(e,{code:f.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class p extends n{constructor(e){super(e,{code:p.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class b extends n{constructor(e,{method:t}={}){super(e,{code:b.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class m extends n{constructor(e){super(e,{code:m.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class g extends n{constructor(e){super(e,{code:g.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class y extends i{constructor(e){super(e,{code:y.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class v extends i{constructor(e){super(e,{code:v.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class w extends i{constructor(e,{method:t}={}){super(e,{code:w.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class E extends i{constructor(e){super(e,{code:E.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class x extends i{constructor(e){super(e,{code:x.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class O extends i{constructor(e){super(e,{code:O.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class S extends i{constructor(e){super(e,{code:S.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class C extends i{constructor(e){super(e,{code:C.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class P extends i{constructor(e){super(e,{code:P.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class M extends i{constructor(e){super(e,{code:M.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class R extends i{constructor(e){super(e,{code:R.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});
1class j extends i{constructor(e){super(e,{code:j.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class T extends i{constructor(e){super(e,{code:T.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class A extends i{constructor(e){super(e,{code:A.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class I extends n{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}e.s(["AtomicReadyWalletRejectedUpgradeError",()=>j,"AtomicityNotSupportedError",()=>T,"BundleTooLargeError",()=>R,"ChainDisconnectedError",()=>x,"DuplicateIdError",()=>P,"InternalRpcError",()=>l,"InvalidInputRpcError",()=>d,"InvalidParamsRpcError",()=>u,"InvalidRequestRpcError",()=>a,"JsonRpcVersionUnsupportedError",()=>g,"LimitExceededRpcError",()=>m,"MethodNotFoundRpcError",()=>c,"MethodNotSupportedRpcError",()=>b,"ParseRpcError",()=>o,"ProviderDisconnectedError",()=>E,"ResourceNotFoundRpcError",()=>h,"ResourceUnavailableRpcError",()=>f,"SwitchChainError",()=>O,"TransactionRejectedRpcError",()=>p,"UnauthorizedProviderError",()=>v,"UnknownBundleIdError",()=>M,"UnknownRpcError",()=>I,"UnsupportedChainIdError",()=>C,"UnsupportedNonOptionalCapabilityError",()=>S,"UnsupportedProviderMethodError",()=>w,"UserRejectedRequestError",()=>y,"WalletConnectSessionSettlementError",()=>A],846720);var $=e.i(707719);let U=new(e.i(589306)).LruMap(8192);async function B(e,{signal:t}={}){return new Promise((r,s)=>{if(t?.aborted)return void s((0,$.getAbortError)(t));let n=()=>t?.removeEventListener("abort",o),i=setTimeout(()=>{n(),r()},e),o=()=>{clearTimeout(i),n(),s((0,$.getAbortError)(t))};t?.addEventListener("abort",o,{once:!0})})}function F(e,{delay:t=100,retryCount:r=2,shouldRetry:s=()=>!0,signal:n}={}){return new Promise((i,o)=>{let a=async({count:c=0}={})=>{if(n?.aborted)return void o((0,$.getAbortError)(n));let u=async({error:e})=>{let r="function"==typeof t?t({count:c,error:e}):t;if(r)try{await B(r,{signal:n})}catch(e){o(e);return}a({count:c+1})};try{let t=await e();i(t)}catch(e){if(n?.aborted)return void o((0,$.getAbortError)(n));if((0,$.isAbortError)(e))return void o(e);if(c<r&&await s({count:c,error:e}))return u({error:e});o(e)}};a()})}e.s(["withRetry",()=>F],836243);var z=e.i(996941);function q(e,s={}){return async(n,i={})=>{let{dedupe:B=!1,methods:q,retryDelay:k=150,retryCount:L=3,signal:N,uid:D}={...s,...i},{method:_}=n;if(q?.exclude?.includes(_)||q?.include&&!q.include.includes(_))throw new b(Error("method not supported"),{method:_});if(N?.aborted)throw(0,$.getAbortError)(N);let H=B?function(e,t=0){let r=0xdeadbeef^t,s=0x41c6ce57^t;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);r=Math.imul(r^n,0x9e3779b1),s=Math.imul(s^n,0x5f356495)}return r=Math.imul(r^r>>>16,0x85ebca6b)^Math.imul(s^s>>>16,0xc2b2ae35),(0x100000000*(2097151&(s=Math.imul(s^s>>>16,0x85ebca6b)^Math.imul(r^r>>>16,0xc2b2ae35)))+(r>>>0)).toString(36)}(`${D}.${(0,z.stringify)(n)}`):void 0;return function(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(U.get(r))return U.get(r);let s=e().finally(()=>U.delete(r));return U.set(r,s),s}(()=>F(async()=>{try{return await e(n,N?{signal:N}:void 0)}catch(e){if(N?.aborted)throw(0,$.getAbortError)(N);if((0,$.isAbortError)(e))throw e;switch(e.code){case o.code:throw new o(e);case a.code:throw new a(e);case c.code:throw new c(e,{method:n.method});case u.code:throw new u(e);case l.code:throw new l(e);case d.code:throw new d(e);case h.code:throw new h(e);case f.code:throw new f(e);case p.code:throw new p(e);case b.code:throw new b(e,{method:n.method});case m.code:throw new m(e);case g.code:throw new g(e);case y.code:throw new y(e);case v.code:throw new v(e);case w.code:throw new w(e);
1case E.code:throw new E(e);case x.code:throw new x(e);case O.code:throw new O(e);case S.code:throw new S(e);case C.code:throw new C(e);case P.code:throw new P(e);case M.code:throw new M(e);case R.code:throw new R(e);case j.code:throw new j(e);case T.code:throw new T(e);case 5e3:throw new y(e);case A.code:throw new A(e);default:if(e instanceof t.BaseError)throw e;throw new I(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof r.HttpRequestError){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return~~(1<<e)*k},retryCount:L,signal:N,shouldRetry:({error:e})=>{var t;return t=e,!(0,$.isAbortError)(t)&&("code"in t&&"number"==typeof t.code?-1===t.code||t.code===m.code||t.code===l.code||429===t.code:!(t instanceof r.HttpRequestError)||!t.status||403===t.status||408===t.status||413===t.status||429===t.status||500===t.status||502===t.status||503===t.status||504===t.status||!1)}}),{enabled:B,id:H})}}e.s(["buildRequest",()=>q],910714)},471389,e=>{"use strict";let t,r=256;function s(e=11){if(!t||r+e>512){t="",r=0;for(let e=0;e<256;e++)t+=(256+256*Math.random()|0).toString(16).substring(1)}return t.substring(r,r+++e)}e.s(["uid",()=>s])},165189,e=>{"use strict";var t=e.i(910714),r=e.i(471389);function s({key:e,methods:s,name:n,request:i,retryCount:o=3,retryDelay:a=150,timeout:c,type:u},l){let d=(0,r.uid)();return{config:{key:e,methods:s,name:n,request:i,retryCount:o,retryDelay:a,timeout:c,type:u},request:(0,t.buildRequest)(i,{methods:s,retryCount:o,retryDelay:a,uid:d}),value:l}}e.s(["createTransport",()=>s])},293540,e=>{"use strict";var t=e.i(882822),r=e.i(471389);function s(e){let{batch:s,chain:n,ccipRead:i,dataSuffix:o,key:a="base",name:c="Base Client",type:u="base"}=e,l=e.experimental_blockTag??("number"==typeof n?.experimental_preconfirmationTime?"pending":void 0),d=Math.min(Math.max(Math.floor((n?.blockTime??12e3)/2),500),4e3),h=e.pollingInterval??d,f=e.cacheTime??h,p=e.account?(0,t.parseAccount)(e.account):void 0,{config:b,request:m,value:g}=e.transport({account:p,chain:n,pollingInterval:h}),y={account:p,batch:s,cacheTime:f,ccipRead:i,chain:n,dataSuffix:o,key:a,name:c,pollingInterval:h,request:m,transport:{...b,...g},type:u,uid:(0,r.uid)(),...l?{experimental_blockTag:l}:{}};return Object.assign(y,{extend:function e(t){return r=>{let s=r(t);for(let e in y)delete s[e];let n={...t,...s};return Object.assign(n,{extend:e(n)})}}(y)})}e.s(["createClient",()=>s])},488405,808494,e=>{"use strict";let t="3.5.0";e.s(["version",0,t],808494);var r,s,n=function(e,t,r,s){if("a"===r&&!s)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?s:"a"===r?s.call(e):s?s.value:t.get(e)};class i extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return`@wagmi/core@${t}`}constructor(e,t={}){super(),r.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 s=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: ${this.docsBaseUrl}${n}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...s?[`Details: ${s}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=s,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return n(this,r,"m",s).call(this,this,e)}}r=new WeakSet,s=function e(t,s){return s?.(t)?t:t.cause?n(this,r,"m",e).call(this,t.cause,s):t},e.s(["BaseError",()=>i],488405)},783525,e=>{"use strict";var t=e.i(488405);class r extends t.BaseError{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class s extends t.BaseError{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class n extends t.BaseError{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}t.BaseError;class i extends t.BaseError{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"})}}class o extends t.BaseError{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"})}}class a extends t.BaseError{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"})}}e.s(["ChainNotConfiguredError",()=>r,"ConnectorAccountNotFoundError",()=>i,"ConnectorAlreadyConnectedError",()=>s,"ConnectorChainMismatchError",()=>o,"ConnectorNotConnectedError",()=>n,"ConnectorUnavailableReconnectingError",()=>
1a])},202945,e=>{"use strict";var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#u=t;#l=!1;setTimeoutProvider(e){this.#u=e}setTimeout(e,t){return this.#u.setTimeout(e,t)}clearTimeout(e){this.#u.clearTimeout(e)}setInterval(e,t){return this.#u.setInterval(e,t)}clearInterval(e){this.#u.clearInterval(e)}};function s(e){setTimeout(e,0)}e.s(["systemSetTimeoutZero",()=>s,"timeoutManager",()=>r])},504701,e=>{"use strict";var t=e.i(202945),r="u"<typeof window||"Deno"in globalThis;function s(){}function n(e,t){return"function"==typeof e?e(t):e}function i(e){return"number"==typeof e&&e>=0&&e!==1/0}function o(e,t){return Math.max(e+(t||0)-Date.now(),0)}function a(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function u(e,t){let{type:r="all",exact:s,fetchStatus:n,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==d(o,t.options))return!1}else if(!f(t.queryKey,o))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(!n||n===t.state.fetchStatus)&&(!i||!!i(t))}function l(e,t){let{exact:r,status:s,predicate:n,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(h(t.options.mutationKey)!==h(i))return!1}else if(!f(t.options.mutationKey,i))return!1}return(!s||t.state.status===s)&&(!n||!!n(t))}function d(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>g(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function f(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>f(e[r],t[r]))}var p=Object.prototype.hasOwnProperty;function b(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function m(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function g(e){if(!y(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!y(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function y(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){return new Promise(r=>{t.timeoutManager.setTimeout(r,e)})}function w(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r,s=0){if(t===r)return t;if(s>500)return r;let n=m(t)&&m(r);if(!n&&!(g(t)&&g(r)))return r;let i=(n?t:Object.keys(t)).length,o=n?r:Object.keys(r),a=o.length,c=n?Array(a):{},u=0;for(let l=0;l<a;l++){let a=n?l:o[l],d=t[a],h=r[a];if(d===h){c[a]=d,(n?l<i:p.call(t,a))&&u++;continue}if(null===d||null===h||"object"!=typeof d||"object"!=typeof h){c[a]=h;continue}let f=e(d,h,s+1);c[a]=f,f===d&&u++}return i===a&&u===i?t:c}(e,t):t}function E(e,t,r=0){let s=[...e,t];return r&&s.length>r?s.slice(1):s}function x(e,t,r=0){let s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var O=Symbol();function S(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==O?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function C(e,t){return"function"==typeof e?e(...t):!!e}function P(e,t,r){let s,n=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),n||(n=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e}e.s(["addConsumeAwareSignal",()=>P,"addToEnd",()=>E,"addToStart",()=>x,"ensureQueryFn",()=>S,"functionalUpdate",()=>n,"hashKey",()=>h,"hashQueryKeyByOptions",()=>d,"isServer",()=>r,"isValidTimeout",()=>i,"matchMutation",()=>l,"matchQuery",()=>u,"noop",()=>s,"partialMatchKey",()=>f,"replaceData",()=>w,"resolveEnabled",()=>c,"resolveStaleTime",()=>a,"shallowEqualObjects",()=>b,"shouldThrowError",()=>C,"skipToken",()=>O,"sleep",()=>v,"timeUntilStale",()=>o])},10070,e=>{"use strict";let t,r,s,n,i,o;var a=e.i(202945).systemSetTimeoutZero,c=(t=[],r=0,s=e=>{e()},n=e=>{e()},i=a,{batch:e=>{let o;r++;try{o=e()}finally{let e;--r||(e=t,t=[],e.length&&i(()=>{n(()=>{e.forEach(e=>{s(e)})})}))}return o},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o=e=>{r?t.push(e):i(()=>{s(e)})},setNotifyFunction:e=>{s=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}});e.s(["notifyManager",()=>c])},348786,208009,e=>{"use strict";var t=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};e.s(["Subscribable",()=>t],208009);var r=new class extends t{#d;#h;#f;constructor(){super(),this.#f=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#h||this.setEventListener(this.#f)}onUnsubscribe(){this.hasListeners()||(this.#h?.(),this.#h=void 0)}setEventListener(e){this.#f=e,this.#h?.(),this.#h=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#d!==e&&(this.#d=e,this.onFocus())}onFocus(){let e=this.isFocused();
1this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#d?this.#d:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",()=>r],348786)},900879,295165,e=>{"use strict";var t=e.i(208009),r=new class extends t.Subscribable{#p=!0;#h;#f;constructor(){super(),this.#f=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#h||this.setEventListener(this.#f)}onUnsubscribe(){this.hasListeners()||(this.#h?.(),this.#h=void 0)}setEventListener(e){this.#f=e,this.#h?.(),this.#h=e(this.setOnline.bind(this))}setOnline(e){this.#p!==e&&(this.#p=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#p}};function s(){let e,t,r=new Promise((r,s)=>{e=r,t=s});function s(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{s({status:"fulfilled",value:t}),e(t)},r.reject=e=>{s({status:"rejected",reason:e}),t(e)},r}e.s(["onlineManager",()=>r],900879),e.i(504701),e.s(["pendingThenable",()=>s],295165)},649125,e=>{"use strict";let t;var r=e.i(504701),s=(t=()=>r.isServer,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",()=>s])},742753,e=>{"use strict";var t=e.i(348786),r=e.i(900879),s=e.i(295165),n=e.i(649125),i=e.i(504701);function o(e){return Math.min(1e3*2**e,3e4)}function a(e){return(e??"online")!=="online"||r.onlineManager.isOnline()}var c=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function u(e){let u,l=!1,d=0,h=(0,s.pendingThenable)(),f=()=>t.focusManager.isFocused()&&("always"===e.networkMode||r.onlineManager.isOnline())&&e.canRun(),p=()=>a(e.networkMode)&&e.canRun(),b=e=>{"pending"===h.status&&(u?.(),h.resolve(e))},m=e=>{"pending"===h.status&&(u?.(),h.reject(e))},g=()=>new Promise(t=>{u=e=>{("pending"!==h.status||f())&&t(e)},e.onPause?.()}).then(()=>{u=void 0,"pending"===h.status&&e.onContinue?.()}),y=()=>{let t;if("pending"!==h.status)return;let r=0===d?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(b).catch(t=>{if("pending"!==h.status)return;let r=e.retry??3*!n.environmentManager.isServer(),s=e.retryDelay??o,a="function"==typeof s?s(d,t):s,c=!0===r||"number"==typeof r&&d<r||"function"==typeof r&&r(d,t);l||!c?m(t):(d++,e.onFail?.(d,t),(0,i.sleep)(a).then(()=>f()?void 0:g()).then(()=>{l?m(t):y()}))})};return{promise:h,status:()=>h.status,cancel:t=>{if("pending"===h.status){let r=new c(t);m(r),e.onCancel?.(r)}},continue:()=>(u?.(),h),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1},canStart:p,start:()=>(p()?y():g().then(y),h)}}e.s(["CancelledError",()=>c,"canFetch",()=>a,"createRetryer",()=>u])},133207,e=>{"use strict";var t=e.i(202945),r=e.i(649125),s=e.i(504701),n=class{#b;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,s.isValidTimeout)(this.gcTime)&&(this.#b=t.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){this.#b&&(t.timeoutManager.clearTimeout(this.#b),this.#b=void 0)}};e.s(["Removable",()=>n])},525738,e=>{"use strict";var t=e.i(10070),r=e.i(133207),s=e.i(742753),n=class extends r.Removable{#s;#m;#g;#n;constructor(e){super(),this.#s=e.client,this.mutationId=e.mutationId,this.#g=e.mutationCache,this.#m=[],this.state=e.state||i(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#m.includes(e)||(this.#m.push(e),this.clearGcTimeout(),this.#g.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#m=this.#m.filter(t=>t!==e),this.scheduleGc(),this.#g.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#m.length||("pending"===this.state.status?this.scheduleGc():this.#g.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#a({type:"continue"})},r={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=(0,s.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#g.canRun(this)});let n="pending"===this.state.status,i=!this.#n.canStart();try{if(n)t();else{this.#a({type:"pending",variables:e,isPaused:i}),this.#g.config.onMutate&&await this.#g.config.onMutate(e,this,r);let t=await this.options.onMutate?.(e,r);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:i})}let s=await this.#n.start();return await this.#g.config.onSuccess?.(s,e,this.state.context,this,r),await this.options.onSuccess?.(s,e,this.state.context,r),await this.#g.config.onSettled?.(s,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(s,null,e,this.state.context,r),this.#a({type:"success",data:s}),s}catch(t){try{await this.#g.config.onError?.(t,e,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,r)}catch(e){Promise.reject(e)}try{await this.#g.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,r)}catch(e){Promise.reject(e)}throw this.#a({type:"error",error:t}),t}finally{this.#g.runNext(this)}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
1case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),t.notifyManager.batch(()=>{this.#m.forEach(t=>{t.onMutationUpdate(e)}),this.#g.notify({mutation:this,type:"updated",action:e})})}};function i(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}e.s(["Mutation",()=>n,"getDefaultState",()=>i])},888352,e=>{"use strict";var t=e.i(344440),r=e.i(687433),s=t.createContext(void 0),n=e=>{let r=t.useContext(s);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r},i=({client:e,children:n})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(s.Provider,{value:e,children:n}));e.s(["QueryClientProvider",()=>i,"useQueryClient",()=>n])},996941,e=>{"use strict";e.s(["stringify",0,(e,t,r)=>JSON.stringify(e,(e,r)=>{let s="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,s):s},r)])},126116,e=>{"use strict";let t="2.52.2",r={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${t}`};class s extends Error{constructor(e,n={}){const i=n.cause instanceof s?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof s&&n.cause.docsPath||n.docsPath,a=r.getDocsUrl?.({...n,docsPath:o});super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...i?[`Details: ${i}`]:[],...r.version?[`Version: ${r.version}`]:[]].join("\n"),n.cause?{cause:n.cause}:void 0),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,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=i,this.docsPath=o,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=e,this.version=t}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,r):r?null:t}(this,e)}}e.s(["BaseError",()=>s],126116)},9069,707719,e=>{"use strict";var t=e.i(996941),r=e.i(126116);function s(e){if(e?.reason)return e.reason;if("function"==typeof DOMException)return new DOMException("This operation was aborted","AbortError");let t=Error("This operation was aborted");return t.name="AbortError",t}function n(e){return"object"==typeof e&&null!==e&&"name"in e&&"AbortError"===e.name}let i=e=>{try{let t=new URL(e);if(!t.username&&!t.password)return e;return t.username="",t.password="",t.toString()}catch{return e}};e.s(["getAbortError",()=>s,"getContractAddress",0,e=>e,"getUrl",0,i,"isAbortError",()=>n],707719);class o extends r.BaseError{constructor({body:e,cause:r,details:s,headers:n,status:o,url:a}){super("HTTP request failed.",{cause:r,details:s,metaMessages:[o&&`Status: ${o}`,`URL: ${i(a)}`,e&&`Request body: ${(0,t.stringify)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=n,this.status=o,this.url=a}}r.BaseError;class a extends r.BaseError{constructor({body:e,error:r,url:s}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${i(s)}`,`Request body: ${(0,t.stringify)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data,this.url=s}}r.BaseError;class c extends r.BaseError{constructor({body:e,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${i(r)}`,`Request body: ${(0,t.stringify)(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=r}}e.s(["HttpRequestError",()=>o,"RpcRequestError",()=>
1a,"TimeoutError",()=>c],9069)},589306,e=>{"use strict";class t extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}e.s(["LruMap",()=>t])},882822,e=>{"use strict";function t(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}e.s(["parseAccount",()=>t])},998790,e=>{"use strict";var t=e.i(126116);class r extends t.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}e.s(["InvalidAddressError",()=>r])},482485,e=>{"use strict";function t(e,{strict:r=!0}={}){return!!e&&"string"==typeof e&&(r?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}e.s(["isHex",()=>t])},104943,882851,87026,e=>{"use strict";var t=e.i(126116);class r extends t.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class s extends t.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class n extends t.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?o(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new s({size:e.length,targetSize:r,type:"bytes"});let n=new Uint8Array(r);for(let s=0;s<r;s++){let i="right"===t;n[i?s:r-s-1]=e[i?s:e.length-s-1]}return n}(e,{dir:t,size:r})}function o(e,{dir:t,size:r=32}={}){if(null===r)return e;let n=e.replace("0x","");if(n.length>2*r)throw new s({size:Math.ceil(n.length/2),targetSize:r,type:"hex"});return`0x${n["right"===t?"padEnd":"padStart"](2*r,"0")}`}e.s(["InvalidBytesLengthError",()=>n,"SizeExceedsPaddingSizeError",()=>s,"SliceOffsetOutOfBoundsError",()=>r],882851),e.s(["pad",()=>i,"padHex",()=>o],104943);var a=t;class c extends a.BaseError{constructor({max:e,min:t,signed:r,size:s,value:n}){super(`Number "${n}" is not in safe ${s?`${8*s}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class u extends a.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}a.BaseError,a.BaseError;class l extends a.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}e.s(["IntegerOutOfRangeError",()=>c,"InvalidBytesBooleanError",()=>u,"SizeOverflowError",()=>l],87026)},611798,e=>{"use strict";var t=e.i(482485);function r(e){return(0,t.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}e.s(["size",()=>r])},385815,293462,978546,207924,e=>{"use strict";let t,r;e.s(["hexToBytes",()=>x,"stringToBytes",()=>O,"toBytes",()=>w],385815);var s,n=e.i(126116),i=e.i(482485),o=e.i(104943);e.s(["assertSize",()=>u,"hexToBigInt",()=>l,"hexToNumber",()=>d],293462);var a=e.i(87026),c=e.i(611798);function u(e,{size:t}){if((0,c.size)(e)>t)throw new a.SizeOverflowError({givenSize:(0,c.size)(e),maxSize:t})}function l(e,t={}){let{signed:r}=t;t.size&&u(e,{size:t.size});let s=BigInt(e);if(!r)return s;let n=(e.length-2)/2;return s<=(1n<<8n*BigInt(n)-1n)-1n?s:s-BigInt(`0x${"f".padStart(2*n,"f")}`)-1n}function d(e,t={}){let r=l(e,t),s=Number(r);if(!Number.isSafeInteger(s))throw new a.IntegerOutOfRangeError({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${r}n`});return s}e.s(["boolToHex",()=>p,"bytesToHex",()=>b,"numberToHex",()=>m,"stringToHex",()=>y,"toHex",()=>f],978546);let h=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function f(e,t={}){return"number"==typeof e||"bigint"==typeof e?m(e,t):"string"==typeof e?y(e,t):"boolean"==typeof e?p(e,t):b(e,t)}function p(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(u(r,{size:t.size}),(0,o.pad)(r,{size:t.size})):r}function b(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=h[e[t]];let s=`0x${r}`;return"number"==typeof t.size?(u(s,{size:t.size}),(0,o.pad)(s,{dir:"right",size:t.size})):s}function m(e,t={}){let r,{signed:s,size:n}=t,i=BigInt(e);n?r=s?(1n<<8n*BigInt(n)-1n)-1n:2n**(8n*BigInt(n))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let c="bigint"==typeof r&&s?-r-1n:0;if(r&&i>r||i<c){let t="bigint"==typeof e?"n":"";throw new a.IntegerOutOfRangeError({max:r?`${r}${t}`:void 0,min:`${c}${t}`,signed:s,size:n,value:`${e}${t}`})}let u=`0x${(s&&i<0?(1n<<BigInt(8*n))+BigInt(i):i).toString(16)}`;return n?(0,o.pad)(u,{size:n}):u}let g=new TextEncoder;function y(e,t={}){return b(g.encode(e),t)}let v=new TextEncoder;function w(e,t={}){return"number"==typeof e||"bigint"==typeof e?x(m(e,t)):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?(u(r,{size:t.size}),(0,o.pad)(r,{size:t.size})):r}(e,t):(0,i.isHex)(e)?x(e,t):O(e,t)}function E(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function x(e,t={}){let r=e;t.size&&(u(r,{size:t.size}),r=(0,o.pad)(r,{dir:"right",size:t.size}));let s=r.slice(2);s.length%2&&(s=`0${s}`);let i=s.length/2,a=new Uint8Array(i);for(let e=0,t=0;e<i;e++){let r=E(s.charCodeAt(t++)),i=E(s.charCodeAt(t++));if(void 0===r||void 0===i)throw new n.BaseError(`Invalid byte sequence ("${s[t-2]}${s[t-1]}" in "${s}").`);a[e]=16*r+i}return a}function O(e,t={}){let r=v.encode(e);return"number"==typeof t.size?(u(r,{size:t.size}),(0,o.pad)(r,{dir:"right",size:t.size})):r}let S=BigInt(0x100000000-1),C=BigInt(32);function P(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function M(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function R(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function j(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}let T=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0]?e=>e:function(e){for(let r=0;r<e.length;r++){var t;e[r]=(t=e[r])<<24&0xff000000|t<<8&0xff0000|t>>>8&65280|t>>>24&255}return e};function A(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),M(e),e}class I{}let $=BigInt(0),U=BigInt(1),B=BigInt(2),F=BigInt(7),z=BigInt(256),q=BigInt(113),k=[],L=[],N=[];for(let e=0,t=U,r=1,s=0;e<24;e++){[r,s]=[s,(2*r+3*s)%5],k.push(2*(5*s+r)),L.push((e+1)*(e+2)/2%64);let n=$;for(let e=0;e<7;e++)(t=(t<<U^(t>>F)*q)%z)&B&&(n^=U<<(U<<BigInt(e))-U);N.push(n)}let D=function(e,t=!1){let r=e.length,s=new Uint32Array(r),n=new Uint32Array(r);for(let i=0;i<r;i++){let{h:r,l:o}=function(e,t=!1){return t?{h:Number(e&S),l:Number(e>>C&S)}:{h:0|Number(e>>C&S),l:0|Number(e&S)}}(e[i],t);[s[i],n[i]]=[r,o]}return[s,n]}(N,!0),_=D[0],H=D[1],G=(e,t,r)=>r>32?t<<r-32|e>>>64-r:e<<r|t>>>32-r,K=(e,t,r)=>r>32?e<<r-32|t>>>64-r:t<<r|e>>>32-r;class W extends I{constructor(e,t,r,s=!1,n=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=s,this.rounds=n,P(r),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}(this.state)}clone(){return this._cloneInto()}keccak(){T(this.state32),function(e,t=24){let r=new Uint32Array(10);for(let s=24-t;s<24;s++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let s=(t+8)%10,n=(t+2)%10,i=r[n],o=r[n+1],a=G(i,o,1)^r[s],c=K(i,o,1)^r[s+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=c}let t=e[2],n=e[3];for(let r=0;r<24;r++){let s=L[r],i=G(t,n,s),o=K(t,n,s),a=k[r];t=e[a],n=e[a+1],e[a]=i,e[a+1]=o}for(let t=0;t<50;t+=10){for(let s=0;s<10;s++)r[s]=e[t+s];for(let s=0;s<10;s++)e[t+s]^=~r[(s+2)%10]&r[(s+4)%10]}e[0]^=_[s],e[1]^=H[s]}j(r)}(this.state32,this.rounds),T(this.state32),this.posOut=0,this.pos=0}update(e){R(this),M(e=A(e));let{blockLen:t,state:r}=this,s=e.length;for(let n=0;n<s;){let i=Math.min(t-this.pos,s-n);for(let t=0;t<i;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:s}=this;e[r]^=t,(128&t)!=0&&r===s-1&&this.keccak(),e[s-1]^=128,this.keccak()}writeInto(e){R(this,!1),M(e),this.finish();let t=this.state,{blockLen:r}=this;for(let s=0,n=e.length;s<n;){this.posOut>=r&&this.keccak();let i=Math.min(r-this.posOut,n-s);e.set(t.subarray(this.posOut,this.posOut+i),s),this.posOut+=i,s+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return P(e),this.xofInto(new Uint8Array(e))}digestInto(e){M(e);let t=this.outputLen;if(e.length<t)throw Error("digestInto() expects output buffer of length at least "+t);if(this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,j(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:s,rounds:n,enableXOF:i}=this;return e||(e=new W(t,r,s,i,n)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=n,e.suffix=r,e.outputLen=s,e.enableXOF=i,e.destroyed=this.destroyed,e}}let Q=(s=()=>new W(136,1,32),(t=e=>s().update(A(e)).digest()).outputLen=(r=s()).outputLen,t.blockLen=r.blockLen,t.create=()=>s(),t);function J(e,t){let r=Q((0,i.isHex)(e,{strict:!1})?w(e):e);return"bytes"===(t||"hex")?r:f(r)}e.s(["keccak256",()=>J],207924)},382760,968844,e=>{"use strict";e.s(["checksumAddress",()=>u,"getAddress",()=>l],382760);
1var t=e.i(998790),r=e.i(385815),s=e.i(207924),n=e.i(589306);e.s(["isAddress",()=>a],968844);let i=/^0x[a-fA-F0-9]{40}$/,o=new n.LruMap(8192);function a(e,t){let{strict:r=!0}=t??{},s=`${e}.${r}`;if(o.has(s))return o.get(s);let n=!!i.test(e)&&(e.toLowerCase()===e||!r||u(e)===e);return o.set(s,n),n}let c=new n.LruMap(8192);function u(e,t){if(c.has(`${e}.${t}`))return c.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),i=(0,s.keccak256)((0,r.stringToBytes)(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&i[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let a=`0x${o.join("")}`;return c.set(`${e}.${t}`,a),a}function l(e,r){if(!a(e,{strict:!1}))throw new t.InvalidAddressError({address:e});return u(e,r)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.