1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="fdd9d3fe-c96d-45fd-ac1d-10ae5d132ec3")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,791368,t=>{"use strict";var e=t.i(547762),n=t.i(770270);t.s(["readContract",0,function(t,i){let{chainId:s,...r}=i,o=t.getClient({chainId:s});return(0,n.getAction)(o,e.readContract,"readContract")(r)}])},532294,761478,t=>{"use strict";var e=t.i(455483),n=t.i(896968),i=t.i(770270);async function s(t,e){let{allowFailure:s=!0,chainId:r,contracts:o,...a}=e,c=t.getClient({chainId:r});return(0,i.getAction)(c,n.multicall,"multicall")({allowFailure:s,contracts:o,...a})}t.s(["multicall",0,s],761478);var r=t.i(791368);async function o(t,n){let{allowFailure:i=!0,blockNumber:o,blockTag:a,...c}=n,u=n.contracts;try{let e={};for(let[n,i]of u.entries()){let s=i.chainId??t.state.chainId;e[s]||(e[s]=[]),e[s]?.push({contract:i,index:n})}let n=(await Promise.all(Object.entries(e).map(([e,n])=>s(t,{...c,allowFailure:i,blockNumber:o,blockTag:a,chainId:Number.parseInt(e,10),contracts:n.map(({contract:t})=>t)})))).flat(),r=Object.values(e).flatMap(t=>t.map(({index:t})=>t));return n.reduce((t,e,n)=>(t&&(t[r[n]]=e),t),[])}catch(s){if(s instanceof e.ContractFunctionExecutionError)throw s;let n=()=>u.map(e=>(0,r.readContract)(t,{...e,blockNumber:o,blockTag:a}));if(i)return(await Promise.allSettled(n())).map(t=>"fulfilled"===t.status?{result:t.value,status:"success"}:{error:t.reason,result:void 0,status:"failure"});return await Promise.all(n())}}t.s(["readContracts",0,o],532294)},966127,t=>{"use strict";var e=t.i(130870),n=t.i(628650),i=t.i(271645),s=t.i(802099);t.s(["useChainId",0,function(t={}){let r=(0,s.useConfig)(t);return(0,i.useSyncExternalStore)(t=>(0,n.watchChainId)(r,{onChange:t}),()=>(0,e.getChainId)(r),()=>(0,e.getChainId)(r))}])},130870,628650,t=>{"use strict";t.s(["getChainId",0,function(t){return t.state.chainId}],130870),t.s(["watchChainId",0,function(t,e){let{onChange:n}=e;return t.subscribe(t=>t.chainId,n)}],628650)},770270,t=>{"use strict";t.s(["getAction",0,function(t,e,n){let i=t[e.name];if("function"==typeof i)return i;let s=t[n];return"function"==typeof s?s:n=>e(t,n)}])},954616,114272,t=>{"use strict";var e=t.i(271645),n=t.i(540143),i=t.i(88587),s=t.i(936553),r=class extends i.Removable{#t;#e;#n;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#e=[],this.state=t.state||o(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#s({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=(0,s.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#s({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#s({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let i="pending"===this.state.status,r=!this.#i.canStart();try{if(i)e();else{this.#s({type:"pending",variables:t,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,n);let e=await this.options.onMutate?.(t,n);e!==this.state.context&&this.#s({type:"pending",context:e,variables:t,isPaused:r})}let s=await this.#i.start();return await this.#n.config.onSuccess?.(s,t,this.state.context,this,n),await this.options.onSuccess?.(s,t,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,t,this.state.context,n),this.#s({type:"success",data:s}),s}catch(e){try{await this.#n.config.onError?.(e,t,this.state.context,this,n)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,n)}catch(t){Promise.reject(t)}try{await this.#n.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,n)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,n)}catch(t){Promise.reject(t)}throw this.#s({type:"error",error:e}),e}finally{this.#n.runNext(this)}}#s(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};
2case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),n.notifyManager.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}t.s(["Mutation",0,r,"getDefaultState",0,o],114272);var a=t.i(915823),c=t.i(619273),u=class extends a.Subscribable{#t;#r=void 0;#o;#a;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#c()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,c.shallowEqualObjects)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,c.hashKey)(e.mutationKey)!==(0,c.hashKey)(this.options.mutationKey)?this.reset():this.#o?.state.status==="pending"&&this.#o.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#o?.removeObserver(this)}onMutationUpdate(t){this.#c(),this.#u(t)}getCurrentResult(){return this.#r}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#c(),this.#u()}mutate(t,e){return this.#a=e,this.#o?.removeObserver(this),this.#o=this.#t.getMutationCache().build(this.#t,this.options),this.#o.addObserver(this),this.#o.execute(t)}#c(){let t=this.#o?.state??o();this.#r={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#u(t){n.notifyManager.batch(()=>{if(this.#a&&this.hasListeners()){let e=this.#r.variables,n=this.#r.context,i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#a.onSuccess?.(t.data,e,n,i)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(t.data,null,e,n,i)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#a.onError?.(t.error,e,n,i)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(void 0,t.error,e,n,i)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#r)})})}},l=t.i(912598);t.s(["useMutation",0,function(t,i){let s=(0,l.useQueryClient)(i),[r]=e.useState(()=>new u(s,t));e.useEffect(()=>{r.setOptions(t)},[r,t]);let o=e.useSyncExternalStore(e.useCallback(t=>r.subscribe(n.notifyManager.batchCalls(t)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=e.useCallback((t,e)=>{r.mutate(t,e).catch(c.noop)},[r]);if(o.error&&(0,c.shouldThrowError)(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}],954616)},791550,t=>{"use strict";var e=t.i(618254);async function n(t,n){let{connector:i}=n,s=t.state.connections.get(i.uid);if(!s)throw new e.ConnectorNotConnectedError;return await t.storage?.setItem("recentConnectorId",i.id),t.setState(t=>({...t,current:i.uid})),{accounts:s.accounts,chainId:s.chainId}}
2t.s(["switchAccount",0,n])},661264,t=>{"use strict";var e=t.i(158350);let n=[];t.s(["getConnections",0,function(t){let i=[...t.state.connections.values()];return"reconnecting"===t.state.status||(0,e.deepEqual)(n,i)?n:(n=i,i)}])},925309,t=>{"use strict";var e=t.i(158350),n=t.i(661264);t.s(["watchConnections",0,function(t,i){let{onChange:s}=i;return t.subscribe(()=>(0,n.getConnections)(t),s,{equalityFn:e.deepEqual})}])},679176,t=>{"use strict";var e=t.i(618254);async function n(t,n){let i;if((i="function"==typeof n.connector?t._internal.connectors.setup(n.connector):n.connector).uid===t.state.current)throw new e.ConnectorAlreadyConnectedError;try{t.setState(t=>({...t,status:"connecting"})),i.emitter.emit("message",{type:"connecting"});let{connector:e,...s}=n,r=await i.connect(s);return i.emitter.off("connect",t._internal.events.connect),i.emitter.on("change",t._internal.events.change),i.emitter.on("disconnect",t._internal.events.disconnect),await t.storage?.setItem("recentConnectorId",i.id),t.setState(t=>({...t,connections:new Map(t.connections).set(i.uid,{accounts:s.withCapabilities?r.accounts.map(t=>"object"==typeof t?t.address:t):r.accounts,chainId:r.chainId,connector:i}),current:i.uid,status:"connected"})),{accounts:s.withCapabilities?r.accounts.map(t=>"object"==typeof t?t:{address:t,capabilities:{}}):r.accounts,chainId:r.chainId}}catch(e){throw t.setState(t=>({...t,status:t.current?"connected":"disconnected"})),e}}t.s(["connect",0,n])},641784,t=>{"use strict";let e=[];t.s(["getConnectors",0,function(t){let n=t.connectors;return e.length===n.length&&e.every((t,e)=>t===n[e])?e:(e=n,n)}])},631871,t=>{"use strict";t.s(["watchConnectors",0,function(t,e){let{onChange:n}=e;return t._internal.connectors.subscribe((t,e)=>{n(Object.values(t),e)})}])},806374,t=>{"use strict";t.s(["toWalletConnectorId",0,t=>"privy"===t.walletClientType?`${t.meta.id}.${t.address}`:t.meta.id])},556324,38167,t=>{"use strict";var e=t.i(954616),n=t.i(791550),i=t.i(802099),s=t.i(661264),r=t.i(925309),o=t.i(271645);t.s(["useSwitchAccount",0,function(t={}){let{mutation:a}=t,c=(0,i.useConfig)(t),u={mutationFn:t=>(0,n.switchAccount)(c,t),mutationKey:["switchAccount"]},{mutate:l,mutateAsync:h,...d}=(0,e.useMutation)({...a,...u});return{...d,connectors:(function(t={}){let e=(0,i.useConfig)(t);return(0,o.useSyncExternalStore)(t=>(0,r.watchConnections)(e,{onChange:t}),()=>(0,s.getConnections)(e),()=>(0,s.getConnections)(e))})({config:c}).map(t=>t.connector),switchAccount:l,switchAccountAsync:h}}],556324);var a=t.i(679176),c=t.i(641784),u=t.i(631871);t.s(["useConnect",0,function(t={}){let{mutation:n}=t,s=(0,i.useConfig)(t),r={mutationFn:t=>(0,a.connect)(s,t),mutationKey:["connect"]},{mutate:l,mutateAsync:h,...d}=(0,e.useMutation)({...n,...r});return(0,o.useEffect)(()=>s.subscribe(({status:t})=>t,(t,e)=>{"connected"===e&&"disconnected"===t&&d.reset()}),[s,d.reset]),{...d,connect:l,connectAsync:h,connectors:function(t={}){let e=(0,i.useConfig)(t);return(0,o.useSyncExternalStore)(t=>(0,u.watchConnectors)(e,{onChange:t}),()=>(0,c.getConnectors)(e),()=>(0,c.getConnectors)(e))}({config:s})}}],38167)},920168,t=>{"use strict";var e=t.i(271645),n=t.i(556324),i=t.i(38167),s=t.i(802099),r=t.i(806374);t.s(["useSetActiveWallet",0,()=>{let{switchAccount:t}
2=(0,n.useSwitchAccount)(),{connect:o}=(0,i.useConnect)(),a=(0,s.useConfig)();return{setActiveWallet:(0,e.useCallback)(async e=>{let n=(0,r.toWalletConnectorId)(e);for(let i of a.connectors)if(i.id===n&&(await i.getAccounts()).includes(e.address))return await a.storage?.removeItem(`${n}.disconnected`),void(a.state.connections.get(i.uid)?t({connector:i}):o({connector:i}))},[a.connectors,a.state.connections,o,t])}}])},373031,608581,t=>{"use strict";var e=t.i(619273);function n(t){return JSON.stringify(t,(t,e)=>!function(t){if(!i(t))return!1;let e=t.constructor;if(void 0===e)return!0;let n=e.prototype;return!!i(n)&&!!n.hasOwnProperty("isPrototypeOf")}(e)?"bigint"==typeof e?e.toString():e:Object.keys(e).sort().reduce((t,n)=>(t[n]=e[n],t),{}))}function i(t){return"[object Object]"===Object.prototype.toString.call(t)}t.s(["filterQueryOptions",0,function(t){let{_defaulted:e,behavior:n,gcTime:i,initialData:s,initialDataUpdatedAt:r,maxPages:o,meta:a,networkMode:c,queryFn:u,queryHash:l,queryKey:h,queryKeyHashFn:d,retry:f,retryDelay:p,structuralSharing:m,getPreviousPageParam:y,getNextPageParam:v,initialPageParam:g,_optimisticResults:w,enabled:b,notifyOnChangeProps:C,placeholderData:S,refetchInterval:O,refetchIntervalInBackground:M,refetchOnMount:A,refetchOnReconnect:E,refetchOnWindowFocus:P,retryOnMount:j,select:x,staleTime:R,suspense:I,throwOnError:K,config:k,connector:F,query:W,...T}=t;return T},"hashFn",0,n,"structuralSharing",0,function(t,n){return(0,e.replaceEqualDeep)(t,n)}],373031);var s=t.i(266027);t.i(954616),t.s(["useQuery",0,function(t){let e=(0,s.useQuery)({...t,queryKeyHashFn:n});return e.queryKey=t.queryKey,e}],608581)},750214,778827,t=>{"use strict";var e=t.i(271645),n=t.i(672464),i=t.i(639372);let s={get url(){return`file://${t.P("node_modules/jotai/esm/vanilla/utils.mjs")}`}};Symbol((s.env?s.env.MODE:void 0)!=="production"?"RESET":""),!function(t=()=>{try{return window.localStorage}catch(t){(s.env?s.env.MODE:void 0)!=="production"&&"u">typeof window&&console.warn(t);return}}){var e;let n,i;try{n=null==(e=t())?void 0:e.subscribe}catch(t){}!n&&"u">typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(n=(e,n)=>{if(!(t()instanceof window.Storage))return()=>{};let i=i=>{i.storageArea===t()&&i.key===e&&n(i.newValue)};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}}),n&&(i=n,(t,e,n)=>i(t,t=>{let i;try{i=JSON.parse(t||"")}catch(t){i=n}e(i)}))}();let r=new WeakMap;t.s(["useHydrateAtoms",0,function(t,e){var i;let s,o=(0,n.useStore)(e),a=(i=o,(s=r.get(i))||(s=new WeakSet,r.set(i,s)),s);for(let[n,i]of t)(!a.has(n)||(null==e?void 0:e.dangerouslyForceHydrate))&&(a.add(n),o.set(n,i))}],750214),t.i(247167);var o=t.i(843476);function a(){return(a=Object.assign.bind()).apply(this,arguments)}let c={};function u(t){return"write"in t}let{read:l,write:h}=(0,i.atom)(null);function d(){}let f=(0,e.createContext)({scope:void 0,baseStore:void 0});function p(t,e){return t===e||t.size===e.size&&Array.from(t).every(t=>e.has(t))}t.s(["ScopeProvider",0,function({atoms:t,atomFamilies:i,children:s,debugName:r}){var m,y,v;let g,w=(0,n.useStore)(),{scope:b,baseStore:C=w}=(0,e.useContext)(f);w instanceof d||(b=void 0,C=w);let S=new Set(t),O=new Set(i);function M(){var t;let e,n=function(t,e,n){let i=new WeakMap,s=new WeakMap,r=new WeakMap,o={getAtom:d,cleanup(){},prepareWriteAtom(t,e,n){if(e.read===l&&u(e)&&u(t)&&e.write!==h&&o!==n){let{write:i}=e;return t.write=y(e.write.bind(e),n),()=>{t.write=i}}}};for(let e of t)i.set(e,[m(e,o),o]);let a=new Set;for(let n of e){for(let t of n.getParams()){let e=n(t);i.has(e)||i.set(e,[m(e,o),o])}let e=n.unstable_listen(e=>{"CREATE"!==e.type||i.has(e.atom)?t.has(e.atom)||i.delete(e.atom):i.set(e.atom,[m(e.atom,o),o])});a.add(e)}function d(t,e){var a,u;if(i.has(t))return i.get(t);if(e===o)return s.has(t)||s.set(t,[m(t,e),e]),s.get(t);let l=null!=e?e:c;if(n){if(!(null!=(u=r.get(l))&&u.has(t))){let[i,s]=n.getAtom(t,e);f(p(i,t,s),t,e,s)}return r.get(l).get(t)}return null!=(a=r.get(l))&&a.has(t)||f(p(t,t),t),r.get(l).get(t)}function f(t,e,n,i){let s=null!=n?n:c;
2r.has(s)||r.set(s,new WeakMap),r.get(s).set(e,[t,i].filter(Boolean))}function p(t,e,n){return e.read!==l?m(e,n):t}function m(t,e){var n,i;let s=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t));return s.read!==l&&(n=t.read.bind(t),i=e,s.read=function(t,e){return n(function(e){let[n]=d(e,i);return t(n)},e)}),u(s)&&u(t)&&s.write!==h&&(s.write=y(t.write.bind(t),e)),s}function y(t,e){return function(n,i,...s){return t(function(t){let[i]=d(t,e);return n(i)},function(t,...n){let[s]=d(t,e);return i(s,...n)},...s)}}return o.cleanup=function(...t){return function(){for(let e of t)e()}}(o.cleanup,...Array.from(a)),o}(S,O,b);return{patchedStore:(e=a({},t=C,{get(e,...i){let[s]=n.getAtom(e);return t.get(s,...i)},set(e,...i){let[s,r]=n.getAtom(e),o=n.prepareWriteAtom(s,e,r);try{return t.set(s,...i)}finally{null==o||o()}},sub(e,...i){let[s]=n.getAtom(e);return t.sub(s,...i)}}),Object.assign(Object.create(d.prototype),e)),scopeContext:{scope:n,baseStore:C},hasChanged:t=>b!==t.parentScope||C!==t.baseStore||!p(S,t.atomSet)||!p(O,t.atomFamilySet)}}let[A,E]=(0,e.useState)(M),{hasChanged:P,scopeContext:j,patchedStore:x}=A;if(P({parentScope:b,atomSet:S,atomFamilySet:O,baseStore:C})){null==(m=j.scope)||m.cleanup(),E(M)}let{cleanup:R}=j.scope;return y=()=>R,v=[],(g=(0,e.useRef)(y)).current=y,(0,e.useEffect)(()=>g.current(),v),(0,o.jsx)(f.Provider,{value:j,children:(0,o.jsx)(n.Provider,{store:x,children:s})})}],778827)}]); 3 4//# debugId=fdd9d3fe-c96d-45fd-ac1d-10ae5d132ec3
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.