@latticexyz/explorer 2.2.15-1673ff9c3edf534aff2bde811475a8d8da2e5e5a → 2.2.15-1a2b3c8f585e72b0f8aae42a1c11abef7193059b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/packages/explorer/.next/BUILD_ID +1 -1
- package/.next/standalone/packages/explorer/.next/app-build-manifest.json +22 -21
- package/.next/standalone/packages/explorer/.next/app-path-routes-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/build-manifest.json +2 -2
- package/.next/standalone/packages/explorer/.next/prerender-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js +2 -2
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js +2 -2
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.rsc +1 -1
- package/.next/standalone/packages/explorer/.next/server/app-paths-manifest.json +4 -4
- package/.next/standalone/packages/explorer/.next/server/middleware-build-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages/404.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages/500.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/1108-907bc7f6c6168089.js +30 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/{5488-3f74f477c23d646c.js → 386-346403d2be7beeb0.js} +3 -8
- package/.next/standalone/packages/explorer/.next/static/chunks/{7583-bdaa83b943509c1d.js → 6110-c257eda264ad8e16.js} +9 -4
- package/.next/standalone/packages/explorer/.next/static/chunks/{5583-41d5b47fca124439.js → 7371-ae629a7f26f23812.js} +3 -8
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page-a4d79e9931ccc9ad.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-316d261e09c91fe3.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/{layout-ef19e2344ee2c9ab.js → layout-787740ddf4af1688.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page-06e7ef149f652644.js +21 -0
- package/.next/standalone/packages/explorer/.next/static/css/94177238520cb158.css +3 -0
- package/.next/standalone/packages/explorer/package.json +6 -3
- package/package.json +15 -12
- package/.next/standalone/packages/explorer/.next/static/chunks/5401-8311f701d1a1b450.js +0 -25
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page-1a8c8461f2ceaf7f.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-f16ddf017c694dcf.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page-68e31dceaa643854.js +0 -21
- package/.next/standalone/packages/explorer/.next/static/css/249d3f964e1a5236.css +0 -3
- /package/.next/standalone/packages/explorer/.next/static/{1Ungge517jFIAH04DUsH3 → XX132VhHO5vqdn_-14eiJ}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/explorer/.next/static/{1Ungge517jFIAH04DUsH3 → XX132VhHO5vqdn_-14eiJ}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[386],{80091:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var o=new i(r,a||e,s),c=n?n+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 s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),o.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},o.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=Array(a);i<a;i++)s[i]=r[i].fn;return s},o.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},o.prototype.emit=function(e,t,r,i,a,s){var o=n?n+e:e;if(!this._events[o])return!1;var c,u,d=this._events[o],l=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),l){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,r),!0;case 4:return d.fn.call(d.context,t,r,i),!0;case 5:return d.fn.call(d.context,t,r,i,a),!0;case 6:return d.fn.call(d.context,t,r,i,a,s),!0}for(u=1,c=Array(l-1);u<l;u++)c[u-1]=arguments[u];d.fn.apply(d.context,c)}else{var h,p=d.length;for(u=0;u<p;u++)switch(d[u].once&&this.removeListener(e,d[u].fn,void 0,!0),l){case 1:d[u].fn.call(d[u].context);break;case 2:d[u].fn.call(d[u].context,t);break;case 3:d[u].fn.call(d[u].context,t,r);break;case 4:d[u].fn.call(d[u].context,t,r,i);break;default:if(!c)for(h=1,c=Array(l-1);h<l;h++)c[h-1]=arguments[h];d[u].fn.apply(d[u].context,c)}}return!0},o.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},o.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},o.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||r&&o.context!==r||s(this,a);else{for(var c=0,u=[],d=o.length;c<d;c++)(o[c].fn!==t||i&&!o[c].once||r&&o[c].context!==r)&&u.push(o[c]);u.length?this._events[a]=1===u.length?u[0]:u:s(this,a)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o},51550:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
|
|
2
2
|
* @license lucide-react v0.408.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -18,12 +18,7 @@
|
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/let r=(0,n(12118).Z)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},
|
|
22
|
-
* @license lucide-react v0.408.0 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/let r=(0,n(12118).Z)("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]])},52616:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
|
|
21
|
+
*/let r=(0,n(12118).Z)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},52616:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
|
|
27
22
|
* @license lucide-react v0.408.0 - ISC
|
|
28
23
|
*
|
|
29
24
|
* This source code is licensed under the ISC license.
|
|
@@ -33,4 +28,4 @@
|
|
|
33
28
|
*
|
|
34
29
|
* This source code is licensed under the ISC license.
|
|
35
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/let r=(0,n(12118).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},64612:function(){},80967:function(e,t,n){"use strict";n.d(t,{f:function(){return u}});var r=n(89702),a=n(91502),i=n(75536),s="horizontal",o=["horizontal","vertical"],c=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=s,...c}=e,u=o.includes(r)?r:s;return(0,i.jsx)(a.WV.div,{"data-orientation":u,...n?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},...c,ref:t})});c.displayName="Separator";var u=c},2451:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(48142),a="#1A1B1F",i={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:a},orange:{accentColor:"#FF983D",accentColorForeground:a},pink:{accentColor:"#FF7AB8",accentColorForeground:a},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},s=i.blue,o=function(){let{accentColor:e=s.accentColor,accentColorForeground:t=s.accentColorForeground,...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,r.w)(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(255, 255, 255, 0.04)",actionButtonBorderMobile:"rgba(255, 255, 255, 0.08)",actionButtonSecondaryBackground:"rgba(255, 255, 255, 0.08)",closeButton:"rgba(224, 232, 255, 0.6)",closeButtonBackground:"rgba(255, 255, 255, 0.08)",connectButtonBackground:a,connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.15))",connectButtonText:"#FFF",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.2) 71.04%), #1A1B1F",downloadTopCardBackground:"linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F",error:"#FF494A",generalBorder:"rgba(255, 255, 255, 0.08)",generalBorderDim:"rgba(255, 255, 255, 0.04)",menuItemBackground:"rgba(224, 232, 255, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.5)",modalBackground:"#1A1B1F",modalBorder:"rgba(255, 255, 255, 0.08)",modalText:"#FFF",modalTextDim:"rgba(224, 232, 255, 0.3)",modalTextSecondary:"rgba(255, 255, 255, 0.6)",profileAction:"rgba(224, 232, 255, 0.1)",profileActionHover:"rgba(224, 232, 255, 0.2)",profileForeground:"rgba(224, 232, 255, 0.05)",selectedOptionBorder:"rgba(224, 232, 255, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.24)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}}};o.accentColors=i},91004:function(e,t,n){"use strict";n.d(t,{S:function(){return y}});var r=n(97966),a=n(63178),i=n(22274),s=n(123),o=class extends s.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let i=t.queryKey,s=t.queryHash??(0,r.Rm)(i,t),o=this.get(s);return o||(o=new a.A({cache:this,queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){i.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},c=n(59678),u=class extends s.l{constructor(e={}){super(),this.config=e,this.#t=new Map,this.#n=Date.now()}#t;#n;build(e,t,n){let r=new c.m({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){let t=d(e),n=this.#t.get(t)??[];n.push(e),this.#t.set(t,n),this.notify({type:"added",mutation:e})}remove(e){let t=d(e);if(this.#t.has(t)){let n=this.#t.get(t)?.filter(t=>t!==e);n&&(0===n.length?this.#t.delete(t):this.#t.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#t.get(d(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#t.get(d(e))?.find(t=>t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){i.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#t.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){i.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function d(e){return e.options.scope?.id??String(e.mutationId)}var l=n(43682),h=n(41157);function p(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var y=class{#r;#a;#i;#s;#o;#c;#u;#d;constructor(e={}){this.#r=e.queryCache||new o,this.#a=e.mutationCache||new u,this.#i=e.defaultOptions||{},this.#s=new Map,this.#o=new Map,this.#c=0}mount(){this.#c++,1===this.#c&&(this.#u=l.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#d=h.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#c--,0===this.#c&&(this.#u?.(),this.#u=void 0,this.#d?.(),this.#d=void 0)}isFetching(e){return this.#r.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#a.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let n=this.defaultQueryOptions(e),a=this.#r.build(this,n);return e.revalidateIfStale&&a.isStaleByTime((0,r.KC)(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#r.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let a=this.defaultQueryOptions({queryKey:e}),i=this.#r.get(a.queryHash),s=i?.state.data,o=(0,r.SE)(t,s);if(void 0!==o)return this.#r.build(this,a).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return i.V.batch(()=>this.#r.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state}removeQueries(e){let t=this.#r;i.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#r,r={type:"active",...e};return i.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){let n={revert:!0,...t};return Promise.all(i.V.batch(()=>this.#r.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e={},t={}){return i.V.batch(()=>{if(this.#r.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){let n={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(i.V.batch(()=>this.#r.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#r.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){var t;return e.behavior=(t=e.pages,{onFetch:(e,n)=>{let a=async()=>{let n;let a=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,s=e.state.data?.pages||[],o=e.state.data?.pageParams||[],c=!1,u=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?c=!0:e.signal.addEventListener("abort",()=>{c=!0}),e.signal)})},d=(0,r.cG)(e.options,e.fetchOptions),l=async(t,n,a)=>{if(c)return Promise.reject();if(null==n&&t.pages.length)return Promise.resolve(t);let i={queryKey:e.queryKey,pageParam:n,direction:a?"backward":"forward",meta:e.options.meta};u(i);let s=await d(i),{maxPages:o}=e.options,l=a?r.Ht:r.VX;return{pages:l(t.pages,s,o),pageParams:l(t.pageParams,n,o)}};if(i&&s.length){let e="backward"===i,t={pages:s,pageParams:o},r=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:p)(a,t);n=await l(t,r,e)}else{n=await l({pages:[],pageParams:[]},o[0]??a.initialPageParam);let e=t??s.length;for(let t=1;t<e;t++){let e=p(a,n);if(null==e)break;n=await l(n,e)}}return n};e.options.persister?e.fetchFn=()=>e.options.persister?.(a,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=a}}),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}resumePausedMutations(){return h.N.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#a}getDefaultOptions(){return this.#i}setDefaultOptions(e){this.#i=e}setQueryDefaults(e,t){this.#s.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#s.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){this.#o.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#o.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}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.Rm)(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"),!0!==t.enabled&&t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#i.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#r.clear(),this.#a.clear()}}},43240:function(e,t,n){"use strict";n.d(t,{O:function(){return d}});var r=n(19389),a=n(27178),i=n(55024),s=n(61880),o=n(93156),c=n(26058),u=n(79196);function d(e={}){let t,l,h,p,y,m,f,g;return(0,r.K)(r=>({id:"metaMaskSDK",name:"MetaMask",type:d.type,async setup(){let e=await this.getProvider();e&&!m&&(m=this.onConnect.bind(this),e.on("connect",m))},async connect({chainId:e,isReconnecting:n}={}){let r=await this.getProvider();f||(f=this.onDisplayUri,r.on("display_uri",f));let a=[];n&&(a=await this.getAccounts().catch(()=>[]));try{a?.length||(a=(await t.connect()).map(e=>(0,i.K)(e)));let n=await this.getChainId();if(e&&n!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===s.ab.code)throw e;return{id:n}});n=t?.id??n}return f&&(r.removeListener("display_uri",f),f=void 0),m&&(r.removeListener("connect",m),m=void 0),p||(p=this.onAccountsChanged.bind(this),r.on("accountsChanged",p)),y||(y=this.onChainChanged.bind(this),r.on("chainChanged",y)),g||(g=this.onDisconnect.bind(this),r.on("disconnect",g)),{accounts:a,chainId:n}}catch(e){if(e.code===s.ab.code)throw new s.ab(e);if(e.code===s.pT.code)throw new s.pT(e);throw e}},async disconnect(){let e=await this.getProvider();p&&(e.removeListener("accountsChanged",p),p=void 0),y&&(e.removeListener("chainChanged",y),y=void 0),g&&(e.removeListener("disconnect",g),g=void 0),m||(m=this.onConnect.bind(this),e.on("connect",m)),await t.terminate()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,i.K)(e))},async getChainId(){let e=await this.getProvider();return Number(e.getChainId()||await e?.request({method:"eth_chainId"}))},async getProvider(){async function a(){return t=new(await (async()=>{let{default:e}=await Promise.all([n.e(2341),n.e(2771)]).then(n.t.bind(n,63227,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})())({_source:"wagmi",...e,readonlyRPCMap:Object.fromEntries(r.chains.map(e=>{let[t]=function(e){let{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];let r=e.transports?.[t.id]?.({chain:t});return(r?.value?.transports||[r]).map(({value:e})=>e?.url||n)}({chain:e,transports:r.transports});return[e.id,t]})),dappMetadata:e.dappMetadata??{name:"wagmi"},useDeeplink:e.useDeeplink??!0}),await t.init(),t.getProvider()}return l||(h||(h=a()),l=await h),l},async isAuthorized(){try{return!!(await (0,o.J)(()=>(0,c.F)(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider(),i=r.chains.find(e=>e.id===t);if(!i)throw new s.x3(new a.X4);try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,u.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&r.emitter.emit("change",{chainId:t})}),new Promise(e=>r.emitter.once("change",({chainId:n})=>{n===t&&e()}))]),i}catch(r){if(4902===r.code||r?.data?.originalError?.code===4902)try{let r,a;let{default:o,...c}=i.blockExplorers??{};e?.blockExplorerUrls?r=e.blockExplorerUrls:o&&(r=[o.url,...Object.values(c).map(e=>e.url)]),a=e?.rpcUrls?.length?e.rpcUrls:[i.rpcUrls.default?.http[0]??""];let d={blockExplorerUrls:r,chainId:(0,u.eC)(t),chainName:e?.chainName??i.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??i.nativeCurrency,rpcUrls:a};if(await n.request({method:"wallet_addEthereumChain",params:[d]}),await this.getChainId()!==t)throw new s.ab(Error("User rejected switch after adding network."));return i}catch(e){throw new s.ab(e)}if(r.code===s.ab.code)throw new s.ab(r);throw new s.x3(r)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(r.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e})}else r.emitter.emit("change",{accounts:e.map(e=>(0,i.K)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){let t=await this.getAccounts();if(0===t.length)return;let n=Number(e.chainId);r.emitter.emit("connect",{accounts:t,chainId:n});let a=await this.getProvider();m&&(a.removeListener("connect",m),m=void 0),p||(p=this.onAccountsChanged.bind(this),a.on("accountsChanged",p)),y||(y=this.onChainChanged.bind(this),a.on("chainChanged",y)),g||(g=this.onDisconnect.bind(this),a.on("disconnect",g))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(r.emitter.emit("disconnect"),p||(p=this.onAccountsChanged.bind(this),t.on("accountsChanged",p)),y&&(t.removeListener("chainChanged",y),y=void 0),g&&(t.removeListener("disconnect",g),g=void 0),m||(m=this.onConnect.bind(this),t.on("connect",m)))},onDisplayUri(e){r.emitter.emit("message",{type:"display_uri",data:e})}}))}d.type="metaMask"},82226:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(19389),a=n(27013),i=n(55024),s=n(26058);function o(e={}){let t,c;let{shimDisconnect:u=!1}=e;return(0,r.K)(r=>({id:"safe",name:"Safe",type:o.type,async connect(){let e=await this.getProvider();if(!e)throw new a.M;let t=await this.getAccounts(),n=await this.getChainId();return c||(c=this.onDisconnect.bind(this),e.on("disconnect",c)),u&&await r.storage?.removeItem("safe.disconnected"),{accounts:t,chainId:n}},async disconnect(){let e=await this.getProvider();if(!e)throw new a.M;c&&(e.removeListener("disconnect",c),c=void 0),u&&await r.storage?.setItem("safe.disconnected",!0)},async getAccounts(){let e=await this.getProvider();if(!e)throw new a.M;return(await e.request({method:"eth_accounts"})).map(i.K)},async getProvider(){if("undefined"!=typeof window&&window?.parent!==window){if(!t){let{default:r}=await n.e(8761).then(n.bind(n,18761)),a=new r(e),i=await (0,s.F)(()=>a.safe.getInfo(),{timeout:e.unstable_getInfoTimeout??10});if(!i)throw Error("Could not load Safe information");let{SafeAppProvider:o}=await n.e(1872).then(n.t.bind(n,51872,19));t=new o(i,a)}return t}},async getChainId(){let e=await this.getProvider();if(!e)throw new a.M;return Number(e.chainId)},async isAuthorized(){try{if(u&&await r.storage?.getItem("safe.disconnected"))return!1;return!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}o.type="safe"},54865:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=n(40517),a=n(37979);async function i(e,t={}){let{chainId:n,...i}=t,s=e.getClient({chainId:n}),o=(0,a.s)(s,r.Q,"getBlock");return{...await o(i),chainId:s.chain.id}}},25779:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(51592),a=n(37979);function i(e,t){let{chainId:n,...i}=t,s=e.getClient({chainId:n});return(0,a.s)(s,r.f,"getTransaction")(i)}},19389:function(e,t,n){"use strict";function r(e){return e}n.d(t,{K:function(){return r}})},90067:function(e,t,n){"use strict";n.d(t,{L:function(){return p}});var r=n(55024),a=n(61880),i=n(26058),s=n(93156),o=n(79196),c=n(27178),u=n(27013),d=n(19389);let l=/(rabby|trustwallet)/,h={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:y(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>y(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","isPortal","isRabby","isTokenPocket","isTokenary","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:y(e,"isPhantom")}};function p(e={}){let t,n,m,f;let{shimDisconnect:g=!0,unstable_shimAsyncInject:w}=e;function b(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...h[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(0,d.K)(d=>({get icon(){return b().icon},get id(){return b().id},get name(){return b().name},get supportsSimulation(){return l.test(this.id.toLowerCase())},type:p.type,async setup(){let n=await this.getProvider();n&&e.target&&(m||(m=this.onConnect.bind(this),n.on("connect",m)),t||(t=this.onAccountsChanged.bind(this),n.on("accountsChanged",t)))},async connect({chainId:i,isReconnecting:s}={}){let o=await this.getProvider();if(!o)throw new u.M;let c=[];if(s)c=await this.getAccounts().catch(()=>[]);else if(g)try{let e=await o.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(c=e[0]?.caveats?.[0]?.value?.map(e=>r.K(e))).length>0&&(c=await this.getAccounts())}catch(e){if(e.code===a.ab.code)throw new a.ab(e);if(e.code===a.pT.code)throw e}try{c?.length||s||(c=(await o.request({method:"eth_requestAccounts"})).map(e=>(0,r.K)(e))),m&&(o.removeListener("connect",m),m=void 0),t||(t=this.onAccountsChanged.bind(this),o.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),o.on("chainChanged",n)),f||(f=this.onDisconnect.bind(this),o.on("disconnect",f));let u=await this.getChainId();if(i&&u!==i){let e=await this.switchChain({chainId:i}).catch(e=>{if(e.code===a.ab.code)throw e;return{id:u}});u=e?.id??u}return g&&await d.storage?.removeItem(`${this.id}.disconnected`),e.target||await d.storage?.setItem("injected.connected",!0),{accounts:c,chainId:u}}catch(e){if(e.code===a.ab.code)throw new a.ab(e);if(e.code===a.pT.code)throw new a.pT(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new u.M;n&&(t.removeListener("chainChanged",n),n=void 0),f&&(t.removeListener("disconnect",f),f=void 0),m||(m=this.onConnect.bind(this),t.on("connect",m));try{await (0,i.F)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}g&&await d.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await d.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new u.M;return(await e.request({method:"eth_accounts"})).map(e=>(0,r.K)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new u.M;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=b();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?y(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(g&&await d.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await d.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==w&&!1!==w){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof w?w:1e3;if(await Promise.race([..."undefined"!=typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(n=>setTimeout(()=>n(e()),t))]))return!0}throw new u.M}return!!(await (0,s.J)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new u.M;let r=d.chains.find(e=>e.id===t);if(!r)throw new a.x3(new c.X4);try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,o.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&d.emitter.emit("change",{chainId:t})}),new Promise(e=>d.emitter.once("change",({chainId:n})=>{n===t&&e()}))]),r}catch(i){if(4902===i.code||i?.data?.originalError?.code===4902)try{let i,s;let{default:c,...u}=r.blockExplorers??{};e?.blockExplorerUrls?i=e.blockExplorerUrls:c&&(i=[c.url,...Object.values(u).map(e=>e.url)]),s=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let d={blockExplorerUrls:i,chainId:(0,o.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:s};if(await n.request({method:"wallet_addEthereumChain",params:[d]}),await this.getChainId()!==t)throw new a.ab(Error("User rejected switch after adding network."));return r}catch(e){throw new a.ab(e)}if(i.code===a.ab.code)throw new a.ab(i);throw new a.x3(i)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(d.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),g&&await d.storage?.removeItem(`${this.id}.disconnected`)}else d.emitter.emit("change",{accounts:e.map(e=>(0,r.K)(e))})},onChainChanged(e){let t=Number(e);d.emitter.emit("change",{chainId:t})},async onConnect(e){let r=await this.getAccounts();if(0===r.length)return;let a=Number(e.chainId);d.emitter.emit("connect",{accounts:r,chainId:a});let i=await this.getProvider();i&&(m&&(i.removeListener("connect",m),m=void 0),t||(t=this.onAccountsChanged.bind(this),i.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),i.on("chainChanged",n)),f||(f=this.onDisconnect.bind(this),i.on("disconnect",f)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(d.emitter.emit("disconnect"),t&&(n&&(t.removeListener("chainChanged",n),n=void 0),f&&(t.removeListener("disconnect",f),f=void 0),m||(m=this.onConnect.bind(this),t.on("connect",m))))}}))}function y(e,t){function n(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let r=e.ethereum;return r?.providers?r.providers.find(e=>n(e)):r&&n(r)?r:void 0}p.type="injected"},84511:function(e,t,n){"use strict";let r;n.d(t,{_:function(){return I}});var a=n(9252);let i=e=>(t,n,r)=>{let a=r.subscribe;return r.subscribe=(e,t,n)=>{let i=e;if(t){let a=(null==n?void 0:n.equalityFn)||Object.is,s=e(r.getState());i=n=>{let r=e(n);if(!a(s,r)){let e=s;t(s=r,e)}},(null==n?void 0:n.fireImmediately)&&t(s,s)}return a(i)},e(t,n,r)},s=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>s(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>s(t)(e)}}},o=(e,t)=>(n,r,a)=>{let i,o,c={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,d=new Set,l=new Set;try{i=c.getStorage()}catch(e){}if(!i)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),n(...e)},r,a);let h=s(c.serialize),p=()=>{let e;let t=h({state:c.partialize({...r()}),version:c.version}).then(e=>i.setItem(c.name,e)).catch(t=>{e=t});if(e)throw e;return t},y=a.setState;a.setState=(e,t)=>{y(e,t),p()};let m=e((...e)=>{n(...e),p()},r,a),f=()=>{var e;if(!i)return;u=!1,d.forEach(e=>e(r()));let t=(null==(e=c.onRehydrateStorage)?void 0:e.call(c,r()))||void 0;return s(i.getItem.bind(i))(c.name).then(e=>{if(e)return c.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===c.version)return e.state;if(c.migrate)return c.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(o=c.merge(e,null!=(t=r())?t:m),!0),p()}).then(()=>{null==t||t(o,void 0),u=!0,l.forEach(e=>e(o))}).catch(e=>{null==t||t(void 0,e)})};return a.persist={setOptions:e=>{c={...c,...e},e.getStorage&&(i=e.getStorage())},clearStorage:()=>{null==i||i.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>f(),hasHydrated:()=>u,onHydrate:e=>(d.add(e),()=>{d.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},f(),o||m},c=(e,t)=>(n,r,a)=>{let i,o={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),a=null!=(t=n.getItem(e))?t:null;return a instanceof Promise?a.then(r):r(a)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,u=new Set,d=new Set,l=o.storage;if(!l)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)},r,a);let h=()=>{let e=o.partialize({...r()});return l.setItem(o.name,{state:e,version:o.version})},p=a.setState;a.setState=(e,t)=>{p(e,t),h()};let y=e((...e)=>{n(...e),h()},r,a),m=()=>{var e,t;if(!l)return;c=!1,u.forEach(e=>{var t;return e(null!=(t=r())?t:y)});let a=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=r())?e:y))||void 0;return s(l.getItem.bind(l))(o.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(i=o.merge(e,null!=(t=r())?t:y),!0),h()}).then(()=>{null==a||a(i,void 0),i=r(),c=!0,d.forEach(e=>e(i))}).catch(e=>{null==a||a(void 0,e)})};return a.persist={setOptions:e=>{o={...o,...e},e.storage&&(l=e.storage)},clearStorage:()=>{null==l||l.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>c,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},o.skipHydration||m(),i||y},u=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),o(e,t)):c(e,t),d=e=>{let t;let n=new Set,r=(e,r)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=r?r:"object"!=typeof a)?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,i={setState:r,getState:a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,a,i),i},l=e=>e?d(e):d;var h=n(90067),p=n(23052);class y{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new p.v})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let n=t[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}}function m(e,t){return JSON.parse(e,(e,n)=>{let r=n;return r?.__type==="bigint"&&(r=BigInt(r.value)),r?.__type==="Map"&&(r=new Map(r.value)),t?.(e,r)??r})}function f(e,t){return e.slice(0,t).join(".")||"."}function g(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function w(e,t,n,r){return JSON.stringify(e,function(e,t){let n="function"==typeof e,r="function"==typeof t,a=[],i=[];return function(s,o){if("object"==typeof o){if(a.length){let e=g(a,this);0===e?a[a.length]=this:(a.splice(e),i.splice(e)),i[i.length]=s;let n=g(a,o);if(0!==n)return r?t.call(this,s,o,f(i,n)):`[ref=${f(i,n)}]`}else a[0]=o,i[0]=s}return n?e.call(this,s,o):o}}((e,n)=>{let r=n;return"bigint"==typeof r&&(r={__type:"bigint",value:n.toString()}),r instanceof Map&&(r={__type:"Map",value:Array.from(n.entries())}),t?.(e,r)??r},r),n??void 0)}let b={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};var v=n(27178);let C=256;var x=n(32110);function I(e){let t;let{multiInjectedProviderDiscovery:n=!0,storage:s=function(e){let{deserialize:t=m,key:n="wagmi",serialize:r=w,storage:a=b}=e;function i(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...a,key:n,async getItem(e,r){let s=a.getItem(`${n}.${e}`),o=await i(s);return o?t(o)??null:r??null},async setItem(e,t){let s=`${n}.${e}`;null===t?await i(a.removeItem(s)):await i(a.setItem(s,r(t)))},async removeItem(e){await i(a.removeItem(`${n}.${e}`))}}}({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:b}),syncConnectedChain:o=!0,ssr:c=!1,...d}=e,p="undefined"!=typeof window&&n?function(){let e=new Set,t=[],n=()=>(function(e){if("undefined"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(n=>{t.some(({info:e})=>e.uuid===n.info.uuid)||(t=[...t,n],e.forEach(e=>e(t,{added:[n]})))}),r=n();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),r?.(),r=n()},subscribe:(n,{emitImmediately:r}={})=>(e.add(n),r&&n(t,{added:t}),()=>e.delete(n))}}():void 0,f=l(()=>d.chains),g=l(()=>[...d.connectors??[],...c?[]:p?.getProviders().map(S)??[]].map(I));function I(e){let t=new y(function(e=11){if(!r||C+e>512){r="",C=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(C,C+++e)}()),n={...e({emitter:t,chains:f.getState(),storage:s,transports:d.transports}),emitter:t,uid:t.uid};return t.on("connect",E),n.setup?.(),n}function S(e){let{info:t}=e,n=e.provider;return(0,h.L)({target:{...t,id:t.rdns,provider:n}})}let k=new Map;function P(){return{chainId:f.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let O="0.0.0-canary-";t=x.i.startsWith(O)?Number.parseInt(x.i.replace(O,"")):Number.parseInt(x.i.split(".")[0]??"0");let M=l(i(s?u(P,{migrate(e,n){if(n===t)return e;let r=P(),a=A(e,r.chainId);return{...r,chainId:a}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:n,name:r,type:a,uid:i}=t.connector;return[e,{...t,connector:{id:n,name:r,type:a,uid:i}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let n=A(e,t.chainId);return{...t,...e,chainId:n}},skipHydration:c,storage:s,version:t}):P));function A(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&f.getState().some(t=>t.id===e.chainId)?e.chainId:t}function q(e){M.setState(t=>{let n=t.connections.get(e.uid);return n?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??n.accounts,chainId:e.chainId??n.chainId,connector:n.connector})}:t})}function E(e){"connecting"!==M.getState().status&&"reconnecting"!==M.getState().status&&M.setState(t=>{let n=g.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",q),n.emitter.listenerCount("change")||n.emitter.on("change",q),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",_),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t})}function _(e){M.setState(t=>{let n=t.connections.get(e.uid);if(n){let e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",q),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",_),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",E)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let r=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:r.connector.uid}})}return o&&M.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(f.getState().some(t=>t.id===e))return M.setState(t=>({...t,chainId:e??t.chainId}))}),p?.subscribe(e=>{let t=new Map;for(let e of g.getState())t.set(e.id,!0);let n=[];for(let r of e){let e=I(S(r));t.has(e.id)||n.push(e)}(!s||M.persist.hasHydrated())&&g.setState(e=>[...e,...n],!0)}),{get chains(){return f.getState()},get connectors(){return g.getState()},storage:s,getClient:function(e={}){let t;let n=e.chainId??M.getState().chainId,r=f.getState().find(e=>e.id===n);if(e.chainId&&!r)throw new v.X4;{let e=k.get(M.getState().chainId);if(e&&!r)return e;if(!r)throw new v.X4}{let e=k.get(n);if(e)return e}if(d.client)t=d.client({chain:r});else{let e=r.id,n=f.getState().map(e=>e.id),i={};for(let[t,r]of Object.entries(d))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t){if("object"==typeof r){if(e in r)i[t]=r[e];else{if(n.some(e=>e in r))continue;i[t]=r}}else i[t]=r}t=(0,a.e)({...i,chain:r,batch:i.batch??{multicall:!0},transport:t=>d.transports[e]({...t,connectors:g})})}return k.set(n,t),t},get state(){return M.getState()},setState(e){let t;t="function"==typeof e?e(M.getState()):e;let n=P();"object"!=typeof t&&(t=n),Object.keys(n).some(e=>!(e in t))&&(t=n),M.setState(t,!0)},subscribe:(e,t,n)=>M.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:p,store:M,ssr:!!c,syncConnectedChain:o,transports:d.transports,chains:{setState(e){let t="function"==typeof e?e(f.getState()):e;if(0!==t.length)return f.setState(t,!0)},subscribe:e=>f.subscribe(e)},connectors:{providerDetailToConnector:S,setup:I,setState:e=>g.setState("function"==typeof e?e(g.getState()):e,!0),subscribe:e=>g.subscribe(e)},events:{change:q,connect:E,disconnect:_}}}}},88363:function(e,t,n){"use strict";n.d(t,{t:function(){return s}});var r=n(61880),a=n(92618),i=n(47812);function s(e,t){return function(e,t={}){let{key:n="fallback",name:s="Fallback",rank:o=!1,retryCount:c,retryDelay:u}=t;return({chain:t,pollingInterval:d=4e3,timeout:l,...h})=>{let p=e,y=()=>{},m=(0,i.q)({key:n,name:s,async request({method:e,params:n}){let a=async(i=0)=>{let s=p[i]({...h,chain:t,retryCount:0,timeout:l});try{let t=await s.request({method:e,params:n});return y({method:e,params:n,response:t,transport:s,status:"success"}),t}catch(t){if(y({error:t,method:e,params:n,transport:s,status:"error"}),"code"in t&&"number"==typeof t.code&&(t.code===r.KB.code||t.code===r.ab.code||5e3===t.code)||i===p.length-1)throw t;return a(i+1)}};return a()},retryCount:c,retryDelay:u,type:"fallback"},{onResponse:e=>y=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:n,sampleCount:r=10,timeout:i=1e3,transports:s,weights:o={}}){let{stability:c=.7,latency:u=.3}=o,d=[],l=async()=>{let o=await Promise.all(s.map(async t=>{let n,r;let a=t({chain:e,retryCount:0,timeout:i}),s=Date.now();try{await a.request({method:"net_listening"}),r=1}catch{r=0}finally{n=Date.now()}return{latency:n-s,success:r}}));d.push(o),d.length>r&&d.shift();let h=Math.max(...d.map(e=>Math.max(...e.map(({latency:e})=>e))));n(s.map((e,t)=>{let n=d.map(e=>e[t].latency),r=n.reduce((e,t)=>e+t,0)/n.length,a=d.map(e=>e[t].success),i=a.reduce((e,t)=>e+t,0)/a.length;return 0===i?[0,t]:[u*(1-r/h)+c*i,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>s[e])),await (0,a.D)(t),l()};l()}({chain:t,interval:e.interval??d,onTransports:e=>p=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:p,weights:e.weights})}return m}}(e,t)}},23052:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=n(80091)},4876:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r=[{inputs:[{name:"success",type:"bool"},{name:"ret",type:"bytes"}],name:"DelegateAndRevert",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"},{name:"inner",type:"bytes"}],name:"FailedOpWithRevert",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"PostOpReverted",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{inputs:[{name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"factory",type:"address"},{indexed:!1,name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[],name:"BeforeExecution",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"PostOpRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalStaked",type:"uint256"},{indexed:!1,name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"paymaster",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"success",type:"bool"},{indexed:!1,name:"actualGasCost",type:"uint256"},{indexed:!1,name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"}],name:"UserOperationPrefundTooLow",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[{name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"target",type:"address"},{name:"data",type:"bytes"}],name:"delegateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"",type:"address"}],name:"deposits",outputs:[{name:"deposit",type:"uint256"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{name:"deposit",type:"uint256"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOps",type:"tuple[]"},{name:"aggregator",type:"address"},{name:"signature",type:"bytes"}],name:"opsPerAggregator",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"ops",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"key",type:"uint192"}],name:"incrementNonce",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"callData",type:"bytes"},{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"callGasLimit",type:"uint256"},{name:"paymasterVerificationGasLimit",type:"uint256"},{name:"paymasterPostOpGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"paymaster",type:"address"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"}],name:"mUserOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"prefund",type:"uint256"},{name:"contextOffset",type:"uint256"},{name:"preOpGas",type:"uint256"}],name:"opInfo",type:"tuple"},{name:"context",type:"bytes"}],name:"innerHandleOp",outputs:[{name:"actualGasCost",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"",type:"address"},{name:"",type:"uint192"}],name:"nonceSequenceNumber",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"},{name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]},62886:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});let r="0x0000000071727De22E5E9d8BAf0edAc6f37da032"},63322:function(e,t,n){"use strict";n.d(t,{L:function(){return b}});var r=n(7181),a=n(79196),i=n(47929),s=n(39585),o=n(77058),c=n(38010);async function u({hash:e,privateKey:t,to:n="object"}){let{r:i,s,recovery:o}=r.secp256k1.sign(e.slice(2),t.slice(2)),u={r:(0,a.eC)(i,{size:32}),s:(0,a.eC)(s,{size:32}),v:o?28n:27n,yParity:o};return"bytes"===n||"hex"===n?(0,c.V)({...u,to:n}):u}var d=n(76797);async function l(e){let{contractAddress:t,chainId:n,nonce:r,privateKey:a,to:i="object"}=e,s=await u({hash:(0,d.t)({contractAddress:t,chainId:n,nonce:r}),privateKey:a,to:i});return"object"===i?{contractAddress:t,chainId:n,nonce:r,...s}:s}var h=n(28779);async function p({message:e,privateKey:t}){return await u({hash:(0,h.r)(e),privateKey:t,to:"hex"})}var y=n(96508),m=n(57805);async function f(e){let{privateKey:t,transaction:n,serializer:r=m.D}=e,a="eip4844"===n.type?{...n,sidecars:!1}:n,i=await u({hash:(0,y.w)(r(a)),privateKey:t});return r(n,i)}var g=n(56995);async function w(e){let{privateKey:t,...n}=e;return await u({hash:(0,g.Jv)(n),privateKey:t,to:"hex"})}function b(e,t={}){let{nonceManager:n}=t,c=(0,a.NC)(r.secp256k1.getPublicKey(e.slice(2),!1));return{...function(e){if("string"==typeof e){if(!(0,s.U)(e,{strict:!1}))throw new i.b({address:e});return{address:e,type:"json-rpc"}}if(!(0,s.U)(e.address,{strict:!1}))throw new i.b({address:e.address});return{address:e.address,nonceManager:e.nonceManager,sign:e.sign,experimental_signAuthorization:e.experimental_signAuthorization,signMessage:e.signMessage,signTransaction:e.signTransaction,signTypedData:e.signTypedData,source:"custom",type:"local"}}({address:(0,o.y)(c),nonceManager:n,sign:async({hash:t})=>u({hash:t,privateKey:e,to:"hex"}),experimental_signAuthorization:async t=>l({...t,privateKey:e}),signMessage:async({message:t})=>p({message:t,privateKey:e}),signTransaction:async(t,{serializer:n}={})=>f({privateKey:e,transaction:t,serializer:n}),signTypedData:async t=>w({...t,privateKey:e})}),publicKey:c,source:"privateKey"}}},34585:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var r=n(68688),a=n(89852),i=n(40852),s=n(74318),o=n(47812);function c(e,t={}){let{batch:n,fetchOptions:c,key:u="http",name:d="HTTP JSON-RPC",onFetchRequest:l,onFetchResponse:h,retryDelay:p}=t;return({chain:y,retryCount:m,timeout:f})=>{let{batchSize:g=1e3,wait:w=0}="object"==typeof n?n:{},b=t.retryCount??m,v=f??t.timeout??1e4,C=e||y?.rpcUrls.default.http[0];if(!C)throw new a.I;let x=(0,s.x)(C,{fetchOptions:c,onRequest:l,onResponse:h,timeout:v});return(0,o.q)({key:u,name:d,async request({method:e,params:t}){let a={method:e,params:t},{schedule:s}=(0,i.S)({id:C,wait:w,shouldSplitBatch:e=>e.length>g,fn:e=>x.request({body:e}),sort:(e,t)=>e.id-t.id}),o=async e=>n?s(e):[await x.request({body:e})],[{error:c,result:u}]=await o(a);if(c)throw new r.bs({body:a,error:c,url:C});return u},retryCount:b,retryDelay:p,timeout:v,type:"http"},{fetchOptions:c,url:C})}}},96086:function(e,t,n){"use strict";n.d(t,{j:function(){return p}});var r=n(68688),a=n(89852);n(74318);var i=n(40852),s=n(26058),o=n(45515);let c=new Map;async function u(e){let{getSocket:t,keepAlive:n=!0,key:a="socket",reconnect:u=!0,url:d}=e,{interval:l=3e4}="object"==typeof n?n:{},{attempts:h=5,delay:p=2e3}="object"==typeof u?u:{},y=c.get(`${a}:${d}`);if(y)return y;let m=0,{schedule:f}=(0,i.S)({id:`${a}:${d}`,fn:async()=>{let e,i,f;let g=new Map,w=new Map;async function b(){let a=await t({onClose(){for(let e of g.values())e.onError?.(new r.Cc({url:d}));for(let e of w.values())e.onError?.(new r.Cc({url:d}));g.clear(),w.clear(),u&&m<h&&setTimeout(async()=>{m++,await b().catch(console.error)},p)},onError(t){for(let n of(e=t,g.values()))n.onError?.(e);for(let t of w.values())t.onError?.(e);g.clear(),w.clear(),u&&m<h&&setTimeout(async()=>{m++,await b().catch(console.error)},p)},onOpen(){e=void 0,m=0},onResponse(e){let t="eth_subscription"===e.method,n=t?e.params.subscription:e.id,r=t?w:g,a=r.get(n);a&&a.onResponse(e),t||r.delete(n)}});return i=a,n&&(f&&clearInterval(f),f=setInterval(()=>i.ping?.(),l)),a}return await b(),e=void 0,y={close(){f&&clearInterval(f),i.close(),c.delete(`${a}:${d}`)},get socket(){return i},request({body:t,onError:n,onResponse:r}){e&&n&&n(e);let a=t.id??o.d.take(),s=e=>{("number"!=typeof e.id||a===e.id)&&("eth_subscribe"===t.method&&"string"==typeof e.result&&w.set(e.result,{onResponse:s,onError:n}),"eth_unsubscribe"===t.method&&w.delete(t.params?.[0]),r(e))};g.set(a,{onResponse:s,onError:n});try{i.request({body:{jsonrpc:"2.0",id:a,...t}})}catch(e){n?.(e)}},requestAsync({body:e,timeout:t=1e4}){return(0,s.F)(()=>new Promise((t,n)=>this.request({body:e,onError:n,onResponse:t})),{errorInstance:new r.W5({body:e,url:d}),timeout:t})},requests:g,subscriptions:w,url:d},c.set(`${a}:${d}`,y),[y]}}),[g,[w]]=await f();return w}async function d(e,t={}){let{keepAlive:a,reconnect:i}=t;return u({async getSocket({onClose:t,onError:a,onOpen:i,onResponse:s}){let o=await n.e(4417).then(n.bind(n,14417)).then(e=>e.WebSocket),c=new o(e);function u({data:e}){s(JSON.parse(e))}c.addEventListener("close",function e(){t(),c.removeEventListener("close",e),c.removeEventListener("message",u),c.removeEventListener("error",a),c.removeEventListener("open",i)}),c.addEventListener("message",u),c.addEventListener("error",a),c.addEventListener("open",i),c.readyState===o.CONNECTING&&await new Promise((e,t)=>{c&&(c.onopen=e,c.onerror=t)});let{close:d}=c;return Object.assign(c,{close(){d.bind(c)(),t()},ping(){try{if(c.readyState===c.CLOSED||c.readyState===c.CLOSING)throw new r.c9({url:c.url,cause:new r.Cc({url:c.url})});c.send(JSON.stringify({jsonrpc:"2.0",method:"net_version",params:[]}))}catch(e){a(e)}},request({body:e}){if(c.readyState===c.CLOSED||c.readyState===c.CLOSING)throw new r.c9({body:e,url:c.url,cause:new r.Cc({url:c.url})});return c.send(JSON.stringify(e))}})},keepAlive:a,reconnect:i,url:e})}async function l(e){let t=await d(e);return Object.assign(t.socket,{requests:t.requests,subscriptions:t.subscriptions})}var h=n(47812);function p(e,t={}){let{keepAlive:n,key:i="webSocket",name:s="WebSocket JSON-RPC",reconnect:o,retryDelay:c}=t;return({chain:u,retryCount:p,timeout:y})=>{let m=t.retryCount??p,f=y??t.timeout??1e4,g=e||u?.rpcUrls.default.webSocket?.[0];if(!g)throw new a.I;return(0,h.q)({key:i,name:s,async request({method:e,params:t}){let a={method:e,params:t},i=await d(g,{keepAlive:n,reconnect:o}),{error:s,result:c}=await i.requestAsync({body:a,timeout:f});if(s)throw new r.bs({body:a,error:s,url:g});return c},retryCount:m,retryDelay:c,timeout:f,type:"webSocket"},{getSocket:()=>l(g),getRpcClient:()=>d(g),async subscribe({params:e,onData:t,onError:n}){let r=await d(g),{result:a}=await new Promise((a,i)=>r.request({body:{method:"eth_subscribe",params:e},onError(e){i(e),n?.(e)},onResponse(e){if(e.error){i(e.error),n?.(e.error);return}if("number"==typeof e.id){a(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:a,unsubscribe:async()=>new Promise(e=>r.request({body:{method:"eth_unsubscribe",params:[a]},onResponse:e}))}}})}}},89852:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(5421);class a extends r.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}},12565:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(58775),a=n(82278),i=n(14902),s=n(38466),o=n(90491);function c(e){let{abi:t,data:n}=e,c=(0,a.tP)(n,0,4),u=t.find(e=>"function"===e.type&&c===(0,i.C)((0,o.t)(e)));if(!u)throw new r.eF(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.r)(u.inputs,(0,a.tP)(n,4)):void 0}}},26058:function(e,t,n){"use strict";function r(e,{errorInstance:t=Error("timed out"),timeout:n,signal:r}){return new Promise((a,i)=>{(async()=>{let s;try{let o=new AbortController;n>0&&(s=setTimeout(()=>{r?o.abort():i(t)},n)),a(await e({signal:o?.signal||null}))}catch(e){e?.name==="AbortError"&&i(t),i(e)}finally{clearTimeout(s)}})()})}n.d(t,{F:function(){return r}})},74318:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(68688),a=n(26058),i=n(49130),s=n(45515);function o(e,t={}){return{async request(n){let{body:o,onRequest:c=t.onRequest,onResponse:u=t.onResponse,timeout:d=t.timeout??1e4}=n,l={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:h,method:p,signal:y}=l;try{let t;let n=await (0,a.F)(async({signal:t})=>{let n={...l,body:Array.isArray(o)?(0,i.P)(o.map(e=>({jsonrpc:"2.0",id:e.id??s.d.take(),...e}))):(0,i.P)({jsonrpc:"2.0",id:o.id??s.d.take(),...o}),headers:{"Content-Type":"application/json",...h},method:p||"POST",signal:y||(d>0?t:null)},r=new Request(e,n);return c&&await c(r),await fetch(e,n)},{errorInstance:new r.W5({body:o,url:e}),timeout:d,signal:!0});if(u&&await u(n),n.headers.get("Content-Type")?.startsWith("application/json"))t=await n.json();else{t=await n.text();try{t=JSON.parse(t||"{}")}catch(e){if(n.ok)throw e;t={error:t}}}if(!n.ok)throw new r.Gg({body:o,details:(0,i.P)(t.error)||n.statusText,headers:n.headers,status:n.status,url:e});return t}catch(t){if(t instanceof r.Gg||t instanceof r.W5)throw t;throw new r.Gg({body:o,cause:t,url:e})}}}}},45515:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});let r={current:0,take(){return this.current++},reset(){this.current=0}}},11362:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r=n(50693),a=n(84639),i=n(37979),s=n(33586),o=n(42473),c=n(368),u=n(97869),d=n(53524),l=n(89702);function h(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:h={},watch:p}=n,y=(0,u.Z)(n),m=(0,r.NL)(),f=(0,c.x)({config:y}),g=null!==(e=n.chainId)&&void 0!==e?e:f,w=function(e,t={}){return{gcTime:0,async queryFn({queryKey:t}){let{scopeKey:n,...r}=t[1];return await function(e,t={}){let{chainId:n,...r}=t,s=e.getClient({chainId:n});return(0,i.s)(s,a.z,"getBlockNumber")(r)}(e,r)??null},queryKey:function(e={}){return["blockNumber",(0,s.OP)(e)]}(t)}}(y,{...n,chainId:g});return!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onBlockNumber:r,config:a,...s}=t,o=(0,u.Z)(t),h=(0,c.x)({config:o}),p=null!==(e=t.chainId)&&void 0!==e?e:h;(0,l.useEffect)(()=>{if(n&&r)return function(e,t){let n,r;let{syncConnectedChain:a=e._internal.syncConnectedChain,...s}=t,o=t=>{n&&n();let r=e.getClient({chainId:t});return n=(0,i.s)(r,d.q,"watchBlockNumber")(s)},c=o(t.chainId);return a&&!t.chainId&&(r=e.subscribe(({chainId:e})=>e,async e=>o(e))),()=>{c?.(),r?.()}}(o,{...s,chainId:p,onBlockNumber:r})},[p,o,n,r,s.onError,s.emitMissed,s.emitOnBegin,s.poll,s.pollingInterval,s.syncConnectedChain])}({...{config:n.config,chainId:n.chainId,..."object"==typeof p?p:{}},enabled:!!((null===(t=h.enabled)||void 0===t||t)&&("object"==typeof p?p.enabled:p)),onBlockNumber(e){m.setQueryData(w.queryKey,e)}}),(0,o.aM)({...h,...w})}},64236:function(e,t,n){"use strict";n.d(t,{C:function(){return c}});var r=n(4778),a=n(37979),i=n(89702),s=n(368),o=n(97869);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onBlock:c,config:u,...d}=t,l=(0,o.Z)(t),h=(0,s.x)({config:l}),p=null!==(e=t.chainId)&&void 0!==e?e:h;(0,i.useEffect)(()=>{if(n&&c)return function(e,t){let n,i;let{syncConnectedChain:s=e._internal.syncConnectedChain,...o}=t,c=t=>{n&&n();let i=e.getClient({chainId:t});return n=(0,a.s)(i,r.p,"watchBlocks")(o)},u=c(t.chainId);return s&&!t.chainId&&(i=e.subscribe(({chainId:e})=>e,async e=>c(e))),()=>{u?.(),i?.()}}(l,{...d,chainId:p,onBlock:c})},[p,l,n,c,d.blockTag,d.emitMissed,d.emitOnBegin,d.includeTransactions,d.onError,d.poll,d.pollingInterval,d.syncConnectedChain])}},60188:function(e,t,n){"use strict";n.d(t,{oR:function(){return i}});var r=n(89702);let{useSyncExternalStoreWithSelector:a}=n(44666);function i(e,t=e.getState,n){let i=a(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(i),i}}}]);
|
|
31
|
+
*/let r=(0,n(12118).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},64612:function(){},80967:function(e,t,n){"use strict";n.d(t,{f:function(){return u}});var r=n(89702),i=n(91502),a=n(75536),s="horizontal",o=["horizontal","vertical"],c=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=s,...c}=e,u=o.includes(r)?r:s;return(0,a.jsx)(i.WV.div,{"data-orientation":u,...n?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},...c,ref:t})});c.displayName="Separator";var u=c},2451:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(48142),i="#1A1B1F",a={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:i},orange:{accentColor:"#FF983D",accentColorForeground:i},pink:{accentColor:"#FF7AB8",accentColorForeground:i},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},s=a.blue,o=function(){let{accentColor:e=s.accentColor,accentColorForeground:t=s.accentColorForeground,...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,r.w)(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(255, 255, 255, 0.04)",actionButtonBorderMobile:"rgba(255, 255, 255, 0.08)",actionButtonSecondaryBackground:"rgba(255, 255, 255, 0.08)",closeButton:"rgba(224, 232, 255, 0.6)",closeButtonBackground:"rgba(255, 255, 255, 0.08)",connectButtonBackground:i,connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.15))",connectButtonText:"#FFF",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.2) 71.04%), #1A1B1F",downloadTopCardBackground:"linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F",error:"#FF494A",generalBorder:"rgba(255, 255, 255, 0.08)",generalBorderDim:"rgba(255, 255, 255, 0.04)",menuItemBackground:"rgba(224, 232, 255, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.5)",modalBackground:"#1A1B1F",modalBorder:"rgba(255, 255, 255, 0.08)",modalText:"#FFF",modalTextDim:"rgba(224, 232, 255, 0.3)",modalTextSecondary:"rgba(255, 255, 255, 0.6)",profileAction:"rgba(224, 232, 255, 0.1)",profileActionHover:"rgba(224, 232, 255, 0.2)",profileForeground:"rgba(224, 232, 255, 0.05)",selectedOptionBorder:"rgba(224, 232, 255, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.24)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}}};o.accentColors=a},91004:function(e,t,n){"use strict";n.d(t,{S:function(){return y}});var r=n(97966),i=n(63178),a=n(22274),s=n(123),o=class extends s.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let a=t.queryKey,s=t.queryHash??(0,r.Rm)(a,t),o=this.get(s);return o||(o=new i.A({cache:this,queryKey:a,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){a.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){a.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){a.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){a.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},c=n(59678),u=class extends s.l{constructor(e={}){super(),this.config=e,this.#t=new Map,this.#n=Date.now()}#t;#n;build(e,t,n){let r=new c.m({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){let t=d(e),n=this.#t.get(t)??[];n.push(e),this.#t.set(t,n),this.notify({type:"added",mutation:e})}remove(e){let t=d(e);if(this.#t.has(t)){let n=this.#t.get(t)?.filter(t=>t!==e);n&&(0===n.length?this.#t.delete(t):this.#t.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#t.get(d(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#t.get(d(e))?.find(t=>t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){a.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#t.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){a.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return a.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function d(e){return e.options.scope?.id??String(e.mutationId)}var l=n(43682),h=n(41157);function p(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var y=class{#r;#i;#a;#s;#o;#c;#u;#d;constructor(e={}){this.#r=e.queryCache||new o,this.#i=e.mutationCache||new u,this.#a=e.defaultOptions||{},this.#s=new Map,this.#o=new Map,this.#c=0}mount(){this.#c++,1===this.#c&&(this.#u=l.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#d=h.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#c--,0===this.#c&&(this.#u?.(),this.#u=void 0,this.#d?.(),this.#d=void 0)}isFetching(e){return this.#r.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let n=this.defaultQueryOptions(e),i=this.#r.build(this,n);return e.revalidateIfStale&&i.isStaleByTime((0,r.KC)(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#r.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),a=this.#r.get(i.queryHash),s=a?.state.data,o=(0,r.SE)(t,s);if(void 0!==o)return this.#r.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return a.V.batch(()=>this.#r.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state}removeQueries(e){let t=this.#r;a.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#r,r={type:"active",...e};return a.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){let n={revert:!0,...t};return Promise.all(a.V.batch(()=>this.#r.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e={},t={}){return a.V.batch(()=>{if(this.#r.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){let n={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(a.V.batch(()=>this.#r.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#r.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){var t;return e.behavior=(t=e.pages,{onFetch:(e,n)=>{let i=async()=>{let n;let i=e.options,a=e.fetchOptions?.meta?.fetchMore?.direction,s=e.state.data?.pages||[],o=e.state.data?.pageParams||[],c=!1,u=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?c=!0:e.signal.addEventListener("abort",()=>{c=!0}),e.signal)})},d=(0,r.cG)(e.options,e.fetchOptions),l=async(t,n,i)=>{if(c)return Promise.reject();if(null==n&&t.pages.length)return Promise.resolve(t);let a={queryKey:e.queryKey,pageParam:n,direction:i?"backward":"forward",meta:e.options.meta};u(a);let s=await d(a),{maxPages:o}=e.options,l=i?r.Ht:r.VX;return{pages:l(t.pages,s,o),pageParams:l(t.pageParams,n,o)}};if(a&&s.length){let e="backward"===a,t={pages:s,pageParams:o},r=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:p)(i,t);n=await l(t,r,e)}else{n=await l({pages:[],pageParams:[]},o[0]??i.initialPageParam);let e=t??s.length;for(let t=1;t<e;t++){let e=p(i,n);if(null==e)break;n=await l(n,e)}}return n};e.options.persister?e.fetchFn=()=>e.options.persister?.(i,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=i}}),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}resumePausedMutations(){return h.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#i}getDefaultOptions(){return this.#a}setDefaultOptions(e){this.#a=e}setQueryDefaults(e,t){this.#s.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#s.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){this.#o.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#o.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#a.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(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"),!0!==t.enabled&&t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#a.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#r.clear(),this.#i.clear()}}},43240:function(e,t,n){"use strict";n.d(t,{O:function(){return d}});var r=n(19389),i=n(27178),a=n(55024),s=n(61880),o=n(93156),c=n(26058),u=n(79196);function d(e={}){let t,l,h,p,y,m,f,g;return(0,r.K)(r=>({id:"metaMaskSDK",name:"MetaMask",type:d.type,async setup(){let e=await this.getProvider();e&&!m&&(m=this.onConnect.bind(this),e.on("connect",m))},async connect({chainId:e,isReconnecting:n}={}){let r=await this.getProvider();f||(f=this.onDisplayUri,r.on("display_uri",f));let i=[];n&&(i=await this.getAccounts().catch(()=>[]));try{i?.length||(i=(await t.connect()).map(e=>(0,a.K)(e)));let n=await this.getChainId();if(e&&n!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===s.ab.code)throw e;return{id:n}});n=t?.id??n}return f&&(r.removeListener("display_uri",f),f=void 0),m&&(r.removeListener("connect",m),m=void 0),p||(p=this.onAccountsChanged.bind(this),r.on("accountsChanged",p)),y||(y=this.onChainChanged.bind(this),r.on("chainChanged",y)),g||(g=this.onDisconnect.bind(this),r.on("disconnect",g)),{accounts:i,chainId:n}}catch(e){if(e.code===s.ab.code)throw new s.ab(e);if(e.code===s.pT.code)throw new s.pT(e);throw e}},async disconnect(){let e=await this.getProvider();p&&(e.removeListener("accountsChanged",p),p=void 0),y&&(e.removeListener("chainChanged",y),y=void 0),g&&(e.removeListener("disconnect",g),g=void 0),m||(m=this.onConnect.bind(this),e.on("connect",m)),await t.terminate()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,a.K)(e))},async getChainId(){let e=await this.getProvider();return Number(e.getChainId()||await e?.request({method:"eth_chainId"}))},async getProvider(){async function i(){return t=new(await (async()=>{let{default:e}=await Promise.all([n.e(2341),n.e(2771)]).then(n.t.bind(n,63227,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})())({_source:"wagmi",...e,readonlyRPCMap:Object.fromEntries(r.chains.map(e=>{let[t]=function(e){let{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];let r=e.transports?.[t.id]?.({chain:t});return(r?.value?.transports||[r]).map(({value:e})=>e?.url||n)}({chain:e,transports:r.transports});return[e.id,t]})),dappMetadata:e.dappMetadata??{name:"wagmi"},useDeeplink:e.useDeeplink??!0}),await t.init(),t.getProvider()}return l||(h||(h=i()),l=await h),l},async isAuthorized(){try{return!!(await (0,o.J)(()=>(0,c.F)(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider(),a=r.chains.find(e=>e.id===t);if(!a)throw new s.x3(new i.X4);try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,u.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&r.emitter.emit("change",{chainId:t})}),new Promise(e=>r.emitter.once("change",({chainId:n})=>{n===t&&e()}))]),a}catch(r){if(4902===r.code||r?.data?.originalError?.code===4902)try{let r,i;let{default:o,...c}=a.blockExplorers??{};e?.blockExplorerUrls?r=e.blockExplorerUrls:o&&(r=[o.url,...Object.values(c).map(e=>e.url)]),i=e?.rpcUrls?.length?e.rpcUrls:[a.rpcUrls.default?.http[0]??""];let d={blockExplorerUrls:r,chainId:(0,u.eC)(t),chainName:e?.chainName??a.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??a.nativeCurrency,rpcUrls:i};if(await n.request({method:"wallet_addEthereumChain",params:[d]}),await this.getChainId()!==t)throw new s.ab(Error("User rejected switch after adding network."));return a}catch(e){throw new s.ab(e)}if(r.code===s.ab.code)throw new s.ab(r);throw new s.x3(r)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(r.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e})}else r.emitter.emit("change",{accounts:e.map(e=>(0,a.K)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){let t=await this.getAccounts();if(0===t.length)return;let n=Number(e.chainId);r.emitter.emit("connect",{accounts:t,chainId:n});let i=await this.getProvider();m&&(i.removeListener("connect",m),m=void 0),p||(p=this.onAccountsChanged.bind(this),i.on("accountsChanged",p)),y||(y=this.onChainChanged.bind(this),i.on("chainChanged",y)),g||(g=this.onDisconnect.bind(this),i.on("disconnect",g))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(r.emitter.emit("disconnect"),p||(p=this.onAccountsChanged.bind(this),t.on("accountsChanged",p)),y&&(t.removeListener("chainChanged",y),y=void 0),g&&(t.removeListener("disconnect",g),g=void 0),m||(m=this.onConnect.bind(this),t.on("connect",m)))},onDisplayUri(e){r.emitter.emit("message",{type:"display_uri",data:e})}}))}d.type="metaMask"},82226:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(19389),i=n(27013),a=n(55024),s=n(26058);function o(e={}){let t,c;let{shimDisconnect:u=!1}=e;return(0,r.K)(r=>({id:"safe",name:"Safe",type:o.type,async connect(){let e=await this.getProvider();if(!e)throw new i.M;let t=await this.getAccounts(),n=await this.getChainId();return c||(c=this.onDisconnect.bind(this),e.on("disconnect",c)),u&&await r.storage?.removeItem("safe.disconnected"),{accounts:t,chainId:n}},async disconnect(){let e=await this.getProvider();if(!e)throw new i.M;c&&(e.removeListener("disconnect",c),c=void 0),u&&await r.storage?.setItem("safe.disconnected",!0)},async getAccounts(){let e=await this.getProvider();if(!e)throw new i.M;return(await e.request({method:"eth_accounts"})).map(a.K)},async getProvider(){if("undefined"!=typeof window&&window?.parent!==window){if(!t){let{default:r}=await n.e(8761).then(n.bind(n,18761)),i=new r(e),a=await (0,s.F)(()=>i.safe.getInfo(),{timeout:e.unstable_getInfoTimeout??10});if(!a)throw Error("Could not load Safe information");let{SafeAppProvider:o}=await n.e(1872).then(n.t.bind(n,51872,19));t=new o(a,i)}return t}},async getChainId(){let e=await this.getProvider();if(!e)throw new i.M;return Number(e.chainId)},async isAuthorized(){try{if(u&&await r.storage?.getItem("safe.disconnected"))return!1;return!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}o.type="safe"},54865:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var r=n(40517),i=n(37979);async function a(e,t={}){let{chainId:n,...a}=t,s=e.getClient({chainId:n}),o=(0,i.s)(s,r.Q,"getBlock");return{...await o(a),chainId:s.chain.id}}},25779:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(51592),i=n(37979);function a(e,t){let{chainId:n,...a}=t,s=e.getClient({chainId:n});return(0,i.s)(s,r.f,"getTransaction")(a)}},19389:function(e,t,n){"use strict";function r(e){return e}n.d(t,{K:function(){return r}})},90067:function(e,t,n){"use strict";n.d(t,{L:function(){return p}});var r=n(55024),i=n(61880),a=n(26058),s=n(93156),o=n(79196),c=n(27178),u=n(27013),d=n(19389);let l=/(rabby|trustwallet)/,h={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:y(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>y(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","isPortal","isRabby","isTokenPocket","isTokenary","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:y(e,"isPhantom")}};function p(e={}){let t,n,m,f;let{shimDisconnect:g=!0,unstable_shimAsyncInject:w}=e;function b(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...h[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(0,d.K)(d=>({get icon(){return b().icon},get id(){return b().id},get name(){return b().name},get supportsSimulation(){return l.test(this.id.toLowerCase())},type:p.type,async setup(){let n=await this.getProvider();n&&e.target&&(m||(m=this.onConnect.bind(this),n.on("connect",m)),t||(t=this.onAccountsChanged.bind(this),n.on("accountsChanged",t)))},async connect({chainId:a,isReconnecting:s}={}){let o=await this.getProvider();if(!o)throw new u.M;let c=[];if(s)c=await this.getAccounts().catch(()=>[]);else if(g)try{let e=await o.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(c=e[0]?.caveats?.[0]?.value?.map(e=>r.K(e))).length>0&&(c=await this.getAccounts())}catch(e){if(e.code===i.ab.code)throw new i.ab(e);if(e.code===i.pT.code)throw e}try{c?.length||s||(c=(await o.request({method:"eth_requestAccounts"})).map(e=>(0,r.K)(e))),m&&(o.removeListener("connect",m),m=void 0),t||(t=this.onAccountsChanged.bind(this),o.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),o.on("chainChanged",n)),f||(f=this.onDisconnect.bind(this),o.on("disconnect",f));let u=await this.getChainId();if(a&&u!==a){let e=await this.switchChain({chainId:a}).catch(e=>{if(e.code===i.ab.code)throw e;return{id:u}});u=e?.id??u}return g&&await d.storage?.removeItem(`${this.id}.disconnected`),e.target||await d.storage?.setItem("injected.connected",!0),{accounts:c,chainId:u}}catch(e){if(e.code===i.ab.code)throw new i.ab(e);if(e.code===i.pT.code)throw new i.pT(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new u.M;n&&(t.removeListener("chainChanged",n),n=void 0),f&&(t.removeListener("disconnect",f),f=void 0),m||(m=this.onConnect.bind(this),t.on("connect",m));try{await (0,a.F)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}g&&await d.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await d.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new u.M;return(await e.request({method:"eth_accounts"})).map(e=>(0,r.K)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new u.M;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=b();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?y(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(g&&await d.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await d.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==w&&!1!==w){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof w?w:1e3;if(await Promise.race([..."undefined"!=typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(n=>setTimeout(()=>n(e()),t))]))return!0}throw new u.M}return!!(await (0,s.J)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new u.M;let r=d.chains.find(e=>e.id===t);if(!r)throw new i.x3(new c.X4);try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,o.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&d.emitter.emit("change",{chainId:t})}),new Promise(e=>d.emitter.once("change",({chainId:n})=>{n===t&&e()}))]),r}catch(a){if(4902===a.code||a?.data?.originalError?.code===4902)try{let a,s;let{default:c,...u}=r.blockExplorers??{};e?.blockExplorerUrls?a=e.blockExplorerUrls:c&&(a=[c.url,...Object.values(u).map(e=>e.url)]),s=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let d={blockExplorerUrls:a,chainId:(0,o.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:s};if(await n.request({method:"wallet_addEthereumChain",params:[d]}),await this.getChainId()!==t)throw new i.ab(Error("User rejected switch after adding network."));return r}catch(e){throw new i.ab(e)}if(a.code===i.ab.code)throw new i.ab(a);throw new i.x3(a)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(d.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),g&&await d.storage?.removeItem(`${this.id}.disconnected`)}else d.emitter.emit("change",{accounts:e.map(e=>(0,r.K)(e))})},onChainChanged(e){let t=Number(e);d.emitter.emit("change",{chainId:t})},async onConnect(e){let r=await this.getAccounts();if(0===r.length)return;let i=Number(e.chainId);d.emitter.emit("connect",{accounts:r,chainId:i});let a=await this.getProvider();a&&(m&&(a.removeListener("connect",m),m=void 0),t||(t=this.onAccountsChanged.bind(this),a.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),a.on("chainChanged",n)),f||(f=this.onDisconnect.bind(this),a.on("disconnect",f)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(d.emitter.emit("disconnect"),t&&(n&&(t.removeListener("chainChanged",n),n=void 0),f&&(t.removeListener("disconnect",f),f=void 0),m||(m=this.onConnect.bind(this),t.on("connect",m))))}}))}function y(e,t){function n(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let r=e.ethereum;return r?.providers?r.providers.find(e=>n(e)):r&&n(r)?r:void 0}p.type="injected"},84511:function(e,t,n){"use strict";let r;n.d(t,{_:function(){return S}});var i=n(9252);let a=e=>(t,n,r)=>{let i=r.subscribe;return r.subscribe=(e,t,n)=>{let a=e;if(t){let i=(null==n?void 0:n.equalityFn)||Object.is,s=e(r.getState());a=n=>{let r=e(n);if(!i(s,r)){let e=s;t(s=r,e)}},(null==n?void 0:n.fireImmediately)&&t(s,s)}return i(a)},e(t,n,r)},s=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>s(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>s(t)(e)}}},o=(e,t)=>(n,r,i)=>{let a,o,c={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,d=new Set,l=new Set;try{a=c.getStorage()}catch(e){}if(!a)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),n(...e)},r,i);let h=s(c.serialize),p=()=>{let e;let t=h({state:c.partialize({...r()}),version:c.version}).then(e=>a.setItem(c.name,e)).catch(t=>{e=t});if(e)throw e;return t},y=i.setState;i.setState=(e,t)=>{y(e,t),p()};let m=e((...e)=>{n(...e),p()},r,i),f=()=>{var e;if(!a)return;u=!1,d.forEach(e=>e(r()));let t=(null==(e=c.onRehydrateStorage)?void 0:e.call(c,r()))||void 0;return s(a.getItem.bind(a))(c.name).then(e=>{if(e)return c.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===c.version)return e.state;if(c.migrate)return c.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(o=c.merge(e,null!=(t=r())?t:m),!0),p()}).then(()=>{null==t||t(o,void 0),u=!0,l.forEach(e=>e(o))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{c={...c,...e},e.getStorage&&(a=e.getStorage())},clearStorage:()=>{null==a||a.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>f(),hasHydrated:()=>u,onHydrate:e=>(d.add(e),()=>{d.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},f(),o||m},c=(e,t)=>(n,r,i)=>{let a,o={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),i=null!=(t=n.getItem(e))?t:null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,u=new Set,d=new Set,l=o.storage;if(!l)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)},r,i);let h=()=>{let e=o.partialize({...r()});return l.setItem(o.name,{state:e,version:o.version})},p=i.setState;i.setState=(e,t)=>{p(e,t),h()};let y=e((...e)=>{n(...e),h()},r,i),m=()=>{var e,t;if(!l)return;c=!1,u.forEach(e=>{var t;return e(null!=(t=r())?t:y)});let i=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=r())?e:y))||void 0;return s(l.getItem.bind(l))(o.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(a=o.merge(e,null!=(t=r())?t:y),!0),h()}).then(()=>{null==i||i(a,void 0),a=r(),c=!0,d.forEach(e=>e(a))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{o={...o,...e},e.storage&&(l=e.storage)},clearStorage:()=>{null==l||l.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>c,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},o.skipHydration||m(),a||y},u=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),o(e,t)):c(e,t),d=e=>{let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,i,a),a},l=e=>e?d(e):d;var h=n(90067),p=n(23052);class y{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new p.v})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let n=t[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}}function m(e,t){return JSON.parse(e,(e,n)=>{let r=n;return r?.__type==="bigint"&&(r=BigInt(r.value)),r?.__type==="Map"&&(r=new Map(r.value)),t?.(e,r)??r})}function f(e,t){return e.slice(0,t).join(".")||"."}function g(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function w(e,t,n,r){return JSON.stringify(e,function(e,t){let n="function"==typeof e,r="function"==typeof t,i=[],a=[];return function(s,o){if("object"==typeof o){if(i.length){let e=g(i,this);0===e?i[i.length]=this:(i.splice(e),a.splice(e)),a[a.length]=s;let n=g(i,o);if(0!==n)return r?t.call(this,s,o,f(a,n)):`[ref=${f(a,n)}]`}else i[0]=o,a[0]=s}return n?e.call(this,s,o):o}}((e,n)=>{let r=n;return"bigint"==typeof r&&(r={__type:"bigint",value:n.toString()}),r instanceof Map&&(r={__type:"Map",value:Array.from(n.entries())}),t?.(e,r)??r},r),n??void 0)}let b={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};var v=n(27178);let C=256;var I=n(32110);function S(e){let t;let{multiInjectedProviderDiscovery:n=!0,storage:s=function(e){let{deserialize:t=m,key:n="wagmi",serialize:r=w,storage:i=b}=e;function a(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...i,key:n,async getItem(e,r){let s=i.getItem(`${n}.${e}`),o=await a(s);return o?t(o)??null:r??null},async setItem(e,t){let s=`${n}.${e}`;null===t?await a(i.removeItem(s)):await a(i.setItem(s,r(t)))},async removeItem(e){await a(i.removeItem(`${n}.${e}`))}}}({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:b}),syncConnectedChain:o=!0,ssr:c=!1,...d}=e,p="undefined"!=typeof window&&n?function(){let e=new Set,t=[],n=()=>(function(e){if("undefined"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(n=>{t.some(({info:e})=>e.uuid===n.info.uuid)||(t=[...t,n],e.forEach(e=>e(t,{added:[n]})))}),r=n();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),r?.(),r=n()},subscribe:(n,{emitImmediately:r}={})=>(e.add(n),r&&n(t,{added:t}),()=>e.delete(n))}}():void 0,f=l(()=>d.chains),g=l(()=>[...d.connectors??[],...c?[]:p?.getProviders().map(x)??[]].map(S));function S(e){let t=new y(function(e=11){if(!r||C+e>512){r="",C=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(C,C+++e)}()),n={...e({emitter:t,chains:f.getState(),storage:s,transports:d.transports}),emitter:t,uid:t.uid};return t.on("connect",E),n.setup?.(),n}function x(e){let{info:t}=e,n=e.provider;return(0,h.L)({target:{...t,id:t.rdns,provider:n}})}let P=new Map;function O(){return{chainId:f.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let k="0.0.0-canary-";t=I.i.startsWith(k)?Number.parseInt(I.i.replace(k,"")):Number.parseInt(I.i.split(".")[0]??"0");let A=l(a(s?u(O,{migrate(e,n){if(n===t)return e;let r=O(),i=q(e,r.chainId);return{...r,chainId:i}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:n,name:r,type:i,uid:a}=t.connector;return[e,{...t,connector:{id:n,name:r,type:i,uid:a}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let n=q(e,t.chainId);return{...t,...e,chainId:n}},skipHydration:c,storage:s,version:t}):O));function q(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&f.getState().some(t=>t.id===e.chainId)?e.chainId:t}function M(e){A.setState(t=>{let n=t.connections.get(e.uid);return n?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??n.accounts,chainId:e.chainId??n.chainId,connector:n.connector})}:t})}function E(e){"connecting"!==A.getState().status&&"reconnecting"!==A.getState().status&&A.setState(t=>{let n=g.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",M),n.emitter.listenerCount("change")||n.emitter.on("change",M),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",_),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t})}function _(e){A.setState(t=>{let n=t.connections.get(e.uid);if(n){let e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",M),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",_),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",E)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let r=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:r.connector.uid}})}return o&&A.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(f.getState().some(t=>t.id===e))return A.setState(t=>({...t,chainId:e??t.chainId}))}),p?.subscribe(e=>{let t=new Map;for(let e of g.getState())t.set(e.id,!0);let n=[];for(let r of e){let e=S(x(r));t.has(e.id)||n.push(e)}(!s||A.persist.hasHydrated())&&g.setState(e=>[...e,...n],!0)}),{get chains(){return f.getState()},get connectors(){return g.getState()},storage:s,getClient:function(e={}){let t;let n=e.chainId??A.getState().chainId,r=f.getState().find(e=>e.id===n);if(e.chainId&&!r)throw new v.X4;{let e=P.get(A.getState().chainId);if(e&&!r)return e;if(!r)throw new v.X4}{let e=P.get(n);if(e)return e}if(d.client)t=d.client({chain:r});else{let e=r.id,n=f.getState().map(e=>e.id),a={};for(let[t,r]of Object.entries(d))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t){if("object"==typeof r){if(e in r)a[t]=r[e];else{if(n.some(e=>e in r))continue;a[t]=r}}else a[t]=r}t=(0,i.e)({...a,chain:r,batch:a.batch??{multicall:!0},transport:t=>d.transports[e]({...t,connectors:g})})}return P.set(n,t),t},get state(){return A.getState()},setState(e){let t;t="function"==typeof e?e(A.getState()):e;let n=O();"object"!=typeof t&&(t=n),Object.keys(n).some(e=>!(e in t))&&(t=n),A.setState(t,!0)},subscribe:(e,t,n)=>A.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:p,store:A,ssr:!!c,syncConnectedChain:o,transports:d.transports,chains:{setState(e){let t="function"==typeof e?e(f.getState()):e;if(0!==t.length)return f.setState(t,!0)},subscribe:e=>f.subscribe(e)},connectors:{providerDetailToConnector:x,setup:S,setState:e=>g.setState("function"==typeof e?e(g.getState()):e,!0),subscribe:e=>g.subscribe(e)},events:{change:M,connect:E,disconnect:_}}}}},88363:function(e,t,n){"use strict";n.d(t,{t:function(){return s}});var r=n(61880),i=n(92618),a=n(47812);function s(e,t){return function(e,t={}){let{key:n="fallback",name:s="Fallback",rank:o=!1,retryCount:c,retryDelay:u}=t;return({chain:t,pollingInterval:d=4e3,timeout:l,...h})=>{let p=e,y=()=>{},m=(0,a.q)({key:n,name:s,async request({method:e,params:n}){let i=async(a=0)=>{let s=p[a]({...h,chain:t,retryCount:0,timeout:l});try{let t=await s.request({method:e,params:n});return y({method:e,params:n,response:t,transport:s,status:"success"}),t}catch(t){if(y({error:t,method:e,params:n,transport:s,status:"error"}),"code"in t&&"number"==typeof t.code&&(t.code===r.KB.code||t.code===r.ab.code||5e3===t.code)||a===p.length-1)throw t;return i(a+1)}};return i()},retryCount:c,retryDelay:u,type:"fallback"},{onResponse:e=>y=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:n,sampleCount:r=10,timeout:a=1e3,transports:s,weights:o={}}){let{stability:c=.7,latency:u=.3}=o,d=[],l=async()=>{let o=await Promise.all(s.map(async t=>{let n,r;let i=t({chain:e,retryCount:0,timeout:a}),s=Date.now();try{await i.request({method:"net_listening"}),r=1}catch{r=0}finally{n=Date.now()}return{latency:n-s,success:r}}));d.push(o),d.length>r&&d.shift();let h=Math.max(...d.map(e=>Math.max(...e.map(({latency:e})=>e))));n(s.map((e,t)=>{let n=d.map(e=>e[t].latency),r=n.reduce((e,t)=>e+t,0)/n.length,i=d.map(e=>e[t].success),a=i.reduce((e,t)=>e+t,0)/i.length;return 0===a?[0,t]:[u*(1-r/h)+c*a,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>s[e])),await (0,i.D)(t),l()};l()}({chain:t,interval:e.interval??d,onTransports:e=>p=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:p,weights:e.weights})}return m}}(e,t)}},23052:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=n(80091)},4876:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r=[{inputs:[{name:"success",type:"bool"},{name:"ret",type:"bytes"}],name:"DelegateAndRevert",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"},{name:"inner",type:"bytes"}],name:"FailedOpWithRevert",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"PostOpReverted",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{inputs:[{name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"factory",type:"address"},{indexed:!1,name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[],name:"BeforeExecution",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"PostOpRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalStaked",type:"uint256"},{indexed:!1,name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"paymaster",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"success",type:"bool"},{indexed:!1,name:"actualGasCost",type:"uint256"},{indexed:!1,name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"}],name:"UserOperationPrefundTooLow",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[{name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"target",type:"address"},{name:"data",type:"bytes"}],name:"delegateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"",type:"address"}],name:"deposits",outputs:[{name:"deposit",type:"uint256"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{name:"deposit",type:"uint256"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOps",type:"tuple[]"},{name:"aggregator",type:"address"},{name:"signature",type:"bytes"}],name:"opsPerAggregator",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"ops",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"key",type:"uint192"}],name:"incrementNonce",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"callData",type:"bytes"},{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"callGasLimit",type:"uint256"},{name:"paymasterVerificationGasLimit",type:"uint256"},{name:"paymasterPostOpGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"paymaster",type:"address"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"}],name:"mUserOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"prefund",type:"uint256"},{name:"contextOffset",type:"uint256"},{name:"preOpGas",type:"uint256"}],name:"opInfo",type:"tuple"},{name:"context",type:"bytes"}],name:"innerHandleOp",outputs:[{name:"actualGasCost",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"",type:"address"},{name:"",type:"uint192"}],name:"nonceSequenceNumber",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"},{name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]},62886:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});let r="0x0000000071727De22E5E9d8BAf0edAc6f37da032"},63322:function(e,t,n){"use strict";n.d(t,{L:function(){return b}});var r=n(7181),i=n(79196),a=n(47929),s=n(39585),o=n(77058),c=n(38010);async function u({hash:e,privateKey:t,to:n="object"}){let{r:a,s,recovery:o}=r.secp256k1.sign(e.slice(2),t.slice(2)),u={r:(0,i.eC)(a,{size:32}),s:(0,i.eC)(s,{size:32}),v:o?28n:27n,yParity:o};return"bytes"===n||"hex"===n?(0,c.V)({...u,to:n}):u}var d=n(76797);async function l(e){let{contractAddress:t,chainId:n,nonce:r,privateKey:i,to:a="object"}=e,s=await u({hash:(0,d.t)({contractAddress:t,chainId:n,nonce:r}),privateKey:i,to:a});return"object"===a?{contractAddress:t,chainId:n,nonce:r,...s}:s}var h=n(28779);async function p({message:e,privateKey:t}){return await u({hash:(0,h.r)(e),privateKey:t,to:"hex"})}var y=n(96508),m=n(57805);async function f(e){let{privateKey:t,transaction:n,serializer:r=m.D}=e,i="eip4844"===n.type?{...n,sidecars:!1}:n,a=await u({hash:(0,y.w)(r(i)),privateKey:t});return r(n,a)}var g=n(56995);async function w(e){let{privateKey:t,...n}=e;return await u({hash:(0,g.Jv)(n),privateKey:t,to:"hex"})}function b(e,t={}){let{nonceManager:n}=t,c=(0,i.NC)(r.secp256k1.getPublicKey(e.slice(2),!1));return{...function(e){if("string"==typeof e){if(!(0,s.U)(e,{strict:!1}))throw new a.b({address:e});return{address:e,type:"json-rpc"}}if(!(0,s.U)(e.address,{strict:!1}))throw new a.b({address:e.address});return{address:e.address,nonceManager:e.nonceManager,sign:e.sign,experimental_signAuthorization:e.experimental_signAuthorization,signMessage:e.signMessage,signTransaction:e.signTransaction,signTypedData:e.signTypedData,source:"custom",type:"local"}}({address:(0,o.y)(c),nonceManager:n,sign:async({hash:t})=>u({hash:t,privateKey:e,to:"hex"}),experimental_signAuthorization:async t=>l({...t,privateKey:e}),signMessage:async({message:t})=>p({message:t,privateKey:e}),signTransaction:async(t,{serializer:n}={})=>f({privateKey:e,transaction:t,serializer:n}),signTypedData:async t=>w({...t,privateKey:e})}),publicKey:c,source:"privateKey"}}},34585:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var r=n(68688),i=n(89852),a=n(40852),s=n(74318),o=n(47812);function c(e,t={}){let{batch:n,fetchOptions:c,key:u="http",name:d="HTTP JSON-RPC",onFetchRequest:l,onFetchResponse:h,retryDelay:p}=t;return({chain:y,retryCount:m,timeout:f})=>{let{batchSize:g=1e3,wait:w=0}="object"==typeof n?n:{},b=t.retryCount??m,v=f??t.timeout??1e4,C=e||y?.rpcUrls.default.http[0];if(!C)throw new i.I;let I=(0,s.x)(C,{fetchOptions:c,onRequest:l,onResponse:h,timeout:v});return(0,o.q)({key:u,name:d,async request({method:e,params:t}){let i={method:e,params:t},{schedule:s}=(0,a.S)({id:C,wait:w,shouldSplitBatch:e=>e.length>g,fn:e=>I.request({body:e}),sort:(e,t)=>e.id-t.id}),o=async e=>n?s(e):[await I.request({body:e})],[{error:c,result:u}]=await o(i);if(c)throw new r.bs({body:i,error:c,url:C});return u},retryCount:b,retryDelay:p,timeout:v,type:"http"},{fetchOptions:c,url:C})}}},96086:function(e,t,n){"use strict";n.d(t,{j:function(){return p}});var r=n(68688),i=n(89852);n(74318);var a=n(40852),s=n(26058),o=n(45515);let c=new Map;async function u(e){let{getSocket:t,keepAlive:n=!0,key:i="socket",reconnect:u=!0,url:d}=e,{interval:l=3e4}="object"==typeof n?n:{},{attempts:h=5,delay:p=2e3}="object"==typeof u?u:{},y=c.get(`${i}:${d}`);if(y)return y;let m=0,{schedule:f}=(0,a.S)({id:`${i}:${d}`,fn:async()=>{let e,a,f;let g=new Map,w=new Map;async function b(){let i=await t({onClose(){for(let e of g.values())e.onError?.(new r.Cc({url:d}));for(let e of w.values())e.onError?.(new r.Cc({url:d}));g.clear(),w.clear(),u&&m<h&&setTimeout(async()=>{m++,await b().catch(console.error)},p)},onError(t){for(let n of(e=t,g.values()))n.onError?.(e);for(let t of w.values())t.onError?.(e);g.clear(),w.clear(),u&&m<h&&setTimeout(async()=>{m++,await b().catch(console.error)},p)},onOpen(){e=void 0,m=0},onResponse(e){let t="eth_subscription"===e.method,n=t?e.params.subscription:e.id,r=t?w:g,i=r.get(n);i&&i.onResponse(e),t||r.delete(n)}});return a=i,n&&(f&&clearInterval(f),f=setInterval(()=>a.ping?.(),l)),i}return await b(),e=void 0,y={close(){f&&clearInterval(f),a.close(),c.delete(`${i}:${d}`)},get socket(){return a},request({body:t,onError:n,onResponse:r}){e&&n&&n(e);let i=t.id??o.d.take(),s=e=>{("number"!=typeof e.id||i===e.id)&&("eth_subscribe"===t.method&&"string"==typeof e.result&&w.set(e.result,{onResponse:s,onError:n}),"eth_unsubscribe"===t.method&&w.delete(t.params?.[0]),r(e))};g.set(i,{onResponse:s,onError:n});try{a.request({body:{jsonrpc:"2.0",id:i,...t}})}catch(e){n?.(e)}},requestAsync({body:e,timeout:t=1e4}){return(0,s.F)(()=>new Promise((t,n)=>this.request({body:e,onError:n,onResponse:t})),{errorInstance:new r.W5({body:e,url:d}),timeout:t})},requests:g,subscriptions:w,url:d},c.set(`${i}:${d}`,y),[y]}}),[g,[w]]=await f();return w}async function d(e,t={}){let{keepAlive:i,reconnect:a}=t;return u({async getSocket({onClose:t,onError:i,onOpen:a,onResponse:s}){let o=await n.e(4417).then(n.bind(n,14417)).then(e=>e.WebSocket),c=new o(e);function u({data:e}){s(JSON.parse(e))}c.addEventListener("close",function e(){t(),c.removeEventListener("close",e),c.removeEventListener("message",u),c.removeEventListener("error",i),c.removeEventListener("open",a)}),c.addEventListener("message",u),c.addEventListener("error",i),c.addEventListener("open",a),c.readyState===o.CONNECTING&&await new Promise((e,t)=>{c&&(c.onopen=e,c.onerror=t)});let{close:d}=c;return Object.assign(c,{close(){d.bind(c)(),t()},ping(){try{if(c.readyState===c.CLOSED||c.readyState===c.CLOSING)throw new r.c9({url:c.url,cause:new r.Cc({url:c.url})});c.send(JSON.stringify({jsonrpc:"2.0",method:"net_version",params:[]}))}catch(e){i(e)}},request({body:e}){if(c.readyState===c.CLOSED||c.readyState===c.CLOSING)throw new r.c9({body:e,url:c.url,cause:new r.Cc({url:c.url})});return c.send(JSON.stringify(e))}})},keepAlive:i,reconnect:a,url:e})}async function l(e){let t=await d(e);return Object.assign(t.socket,{requests:t.requests,subscriptions:t.subscriptions})}var h=n(47812);function p(e,t={}){let{keepAlive:n,key:a="webSocket",name:s="WebSocket JSON-RPC",reconnect:o,retryDelay:c}=t;return({chain:u,retryCount:p,timeout:y})=>{let m=t.retryCount??p,f=y??t.timeout??1e4,g=e||u?.rpcUrls.default.webSocket?.[0];if(!g)throw new i.I;return(0,h.q)({key:a,name:s,async request({method:e,params:t}){let i={method:e,params:t},a=await d(g,{keepAlive:n,reconnect:o}),{error:s,result:c}=await a.requestAsync({body:i,timeout:f});if(s)throw new r.bs({body:i,error:s,url:g});return c},retryCount:m,retryDelay:c,timeout:f,type:"webSocket"},{getSocket:()=>l(g),getRpcClient:()=>d(g),async subscribe({params:e,onData:t,onError:n}){let r=await d(g),{result:i}=await new Promise((i,a)=>r.request({body:{method:"eth_subscribe",params:e},onError(e){a(e),n?.(e)},onResponse(e){if(e.error){a(e.error),n?.(e.error);return}if("number"==typeof e.id){i(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:i,unsubscribe:async()=>new Promise(e=>r.request({body:{method:"eth_unsubscribe",params:[i]},onResponse:e}))}}})}}},89852:function(e,t,n){"use strict";n.d(t,{I:function(){return i}});var r=n(5421);class i extends r.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}},12565:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(58775),i=n(82278),a=n(14902),s=n(38466),o=n(90491);function c(e){let{abi:t,data:n}=e,c=(0,i.tP)(n,0,4),u=t.find(e=>"function"===e.type&&c===(0,a.C)((0,o.t)(e)));if(!u)throw new r.eF(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.r)(u.inputs,(0,i.tP)(n,4)):void 0}}},26058:function(e,t,n){"use strict";function r(e,{errorInstance:t=Error("timed out"),timeout:n,signal:r}){return new Promise((i,a)=>{(async()=>{let s;try{let o=new AbortController;n>0&&(s=setTimeout(()=>{r?o.abort():a(t)},n)),i(await e({signal:o?.signal||null}))}catch(e){e?.name==="AbortError"&&a(t),a(e)}finally{clearTimeout(s)}})()})}n.d(t,{F:function(){return r}})},74318:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(68688),i=n(26058),a=n(49130),s=n(45515);function o(e,t={}){return{async request(n){let{body:o,onRequest:c=t.onRequest,onResponse:u=t.onResponse,timeout:d=t.timeout??1e4}=n,l={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:h,method:p,signal:y}=l;try{let t;let n=await (0,i.F)(async({signal:t})=>{let n={...l,body:Array.isArray(o)?(0,a.P)(o.map(e=>({jsonrpc:"2.0",id:e.id??s.d.take(),...e}))):(0,a.P)({jsonrpc:"2.0",id:o.id??s.d.take(),...o}),headers:{"Content-Type":"application/json",...h},method:p||"POST",signal:y||(d>0?t:null)},r=new Request(e,n);return c&&await c(r),await fetch(e,n)},{errorInstance:new r.W5({body:o,url:e}),timeout:d,signal:!0});if(u&&await u(n),n.headers.get("Content-Type")?.startsWith("application/json"))t=await n.json();else{t=await n.text();try{t=JSON.parse(t||"{}")}catch(e){if(n.ok)throw e;t={error:t}}}if(!n.ok)throw new r.Gg({body:o,details:(0,a.P)(t.error)||n.statusText,headers:n.headers,status:n.status,url:e});return t}catch(t){if(t instanceof r.Gg||t instanceof r.W5)throw t;throw new r.Gg({body:o,cause:t,url:e})}}}}},45515:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});let r={current:0,take(){return this.current++},reset(){this.current=0}}},11362:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r=n(50693),i=n(84639),a=n(37979),s=n(33586),o=n(42473),c=n(368),u=n(97869),d=n(53524),l=n(89702);function h(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:h={},watch:p}=n,y=(0,u.Z)(n),m=(0,r.NL)(),f=(0,c.x)({config:y}),g=null!==(e=n.chainId)&&void 0!==e?e:f,w=function(e,t={}){return{gcTime:0,async queryFn({queryKey:t}){let{scopeKey:n,...r}=t[1];return await function(e,t={}){let{chainId:n,...r}=t,s=e.getClient({chainId:n});return(0,a.s)(s,i.z,"getBlockNumber")(r)}(e,r)??null},queryKey:function(e={}){return["blockNumber",(0,s.OP)(e)]}(t)}}(y,{...n,chainId:g});return!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onBlockNumber:r,config:i,...s}=t,o=(0,u.Z)(t),h=(0,c.x)({config:o}),p=null!==(e=t.chainId)&&void 0!==e?e:h;(0,l.useEffect)(()=>{if(n&&r)return function(e,t){let n,r;let{syncConnectedChain:i=e._internal.syncConnectedChain,...s}=t,o=t=>{n&&n();let r=e.getClient({chainId:t});return n=(0,a.s)(r,d.q,"watchBlockNumber")(s)},c=o(t.chainId);return i&&!t.chainId&&(r=e.subscribe(({chainId:e})=>e,async e=>o(e))),()=>{c?.(),r?.()}}(o,{...s,chainId:p,onBlockNumber:r})},[p,o,n,r,s.onError,s.emitMissed,s.emitOnBegin,s.poll,s.pollingInterval,s.syncConnectedChain])}({...{config:n.config,chainId:n.chainId,..."object"==typeof p?p:{}},enabled:!!((null===(t=h.enabled)||void 0===t||t)&&("object"==typeof p?p.enabled:p)),onBlockNumber(e){m.setQueryData(w.queryKey,e)}}),(0,o.aM)({...h,...w})}},64236:function(e,t,n){"use strict";n.d(t,{C:function(){return c}});var r=n(4778),i=n(37979),a=n(89702),s=n(368),o=n(97869);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onBlock:c,config:u,...d}=t,l=(0,o.Z)(t),h=(0,s.x)({config:l}),p=null!==(e=t.chainId)&&void 0!==e?e:h;(0,a.useEffect)(()=>{if(n&&c)return function(e,t){let n,a;let{syncConnectedChain:s=e._internal.syncConnectedChain,...o}=t,c=t=>{n&&n();let a=e.getClient({chainId:t});return n=(0,i.s)(a,r.p,"watchBlocks")(o)},u=c(t.chainId);return s&&!t.chainId&&(a=e.subscribe(({chainId:e})=>e,async e=>c(e))),()=>{u?.(),a?.()}}(l,{...d,chainId:p,onBlock:c})},[p,l,n,c,d.blockTag,d.emitMissed,d.emitOnBegin,d.includeTransactions,d.onError,d.poll,d.pollingInterval,d.syncConnectedChain])}},60188:function(e,t,n){"use strict";n.d(t,{oR:function(){return a}});var r=n(89702);let{useSyncExternalStoreWithSelector:i}=n(44666);function a(e,t=e.getState,n){let a=i(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(a),a}}}]);
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6110],{34724:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
|
|
2
2
|
* @license lucide-react v0.408.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/let n=(0,r(12118).Z)("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},
|
|
6
|
+
*/let n=(0,r(12118).Z)("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},5997:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
|
|
7
|
+
* @license lucide-react v0.408.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/let n=(0,r(12118).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},68344:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
|
|
7
12
|
* @license lucide-react v0.408.0 - ISC
|
|
8
13
|
*
|
|
9
14
|
* This source code is licensed under the ISC license.
|
|
@@ -13,5 +18,5 @@
|
|
|
13
18
|
*
|
|
14
19
|
* This source code is licensed under the ISC license.
|
|
15
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/let n=(0,r(12118).Z)("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]])},32608:function(e){var t,r,n,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s=[],u=!1,c=-1;function f(){u&&n&&(u=!1,n.length?s=n.concat(s):c=-1,s.length&&p())}function p(){if(!u){var e=l(f);u=!0;for(var t=s.length;t;){for(n=s,s=[];++c<t;)n&&n[c].run();c=-1,t=s.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function d(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new h(e,t)),1!==s.length||u||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=d,o.addListener=d,o.once=d,o.off=d,o.removeListener=d,o.removeAllListeners=d,o.emit=d,o.prependListener=d,o.prependOnceListener=d,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},80967:function(e,t,r){"use strict";r.d(t,{f:function(){return u}});var n=r(89702),o=r(91502),a=r(75536),i="horizontal",l=["horizontal","vertical"],s=n.forwardRef((e,t)=>{let{decorative:r,orientation:n=i,...s}=e,u=l.includes(n)?n:i;return(0,a.jsx)(o.WV.div,{"data-orientation":u,...r?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},...s,ref:t})});s.displayName="Separator";var u=s},96948:function(e,t,r){"use strict";r.d(t,{n:function(){return j}});var n=r(18550),o=r(57387),a=r(38287),i=r(94993),l=r(19976),s=r(5421),u=r(78183),c=r(237),f=r(98780),p=r(91580),h=r(9284),d=r(71308),y=r(55247),m=r(10042),g=r(49015),w=r(48359),b=r(43373);async function v(e,t){let{account:r=e.account,chain:a=e.chain,accessList:i,authorizationList:v,blobs:S,data:
|
|
17
|
-
See https://err.47ng.com/NUQS-${e}`}var p=r(6270),h=r(89702),d=function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),y=new Map,m={history:"replace",scroll:!1,shallow:!0,throttleMs:d},g=new Set,w=0,b=null;function v(e){return y.get(e)??null}function S(e,t){return(e.split("#")[0]??"")+function(e){if(0===e.size)return"";let t=[];for(let[r,n]of e.entries()){let e=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${n.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E")}`)}return"?"+t.join("&")}(t)+location.hash}var O=Symbol("__nuqs__SYNC__"),k="__nuqs__NO_SYNC__",q=Symbol("__nuqs__NOTIFY__"),N={all:n=n||new Map,on:function(e,t){var r=n.get(e);r?r.push(t):n.set(e,[t])},off:function(e,t){var r=n.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var r=n.get(e);r&&r.slice().map(function(e){e(t)}),(r=n.get("*"))&&r.slice().map(function(r){r(e,t)})}};function j(e,{history:t="replace",shallow:r=!0,scroll:n=!1,throttleMs:o=d,parse:l=e=>e,serialize:s=String,eq:u=(e,t)=>e===t,defaultValue:c,clearOnDefault:q=!1,startTransition:j}={history:"replace",scroll:!1,shallow:!0,throttleMs:d,parse:e=>e,serialize:String,eq:(e,t)=>e===t,clearOnDefault:!1,defaultValue:void 0}){let T=(0,p.useRouter)(),F=(0,p.useSearchParams)(),x=h.useRef(null),[E,C]=h.useState(()=>{let t=v(e),r=F?.get(e)??null,n=t??r;return x.current=n,null===n?null:i(l,n,e)}),_=h.useRef(E);a("[nuqs `%s`] render - state: %O, iSP: %s",e,E,F?.get(e)??null),h.useEffect(()=>{if(window.next?.version!=="14.0.3")return;let t=F.get(e)??null;if(t===x.current)return;let r=null===t?null:i(l,t,e);a("[nuqs `%s`] syncFromUseSearchParams %O",e,r),_.current=r,x.current=t,C(r)},[F?.get(e),e]),h.useInsertionEffect(()=>{function t({state:t,query:r}){a("[nuqs `%s`] updateInternalState %O",e,t),_.current=t,x.current=r,C(t)}function r(r){let n=r.get(e);if(n===x.current)return;let o=null===n?null:i(l,n,e);a("[nuqs `%s`] syncFromURL %O",e,o),t({state:o,query:n})}return a("[nuqs `%s`] subscribing to sync",e),N.on(O,r),N.on(e,t),()=>{a("[nuqs `%s`] unsubscribing from sync",e),N.off(O,r),N.off(e,t)}},[e]);let I=h.useCallback((i,l={})=>{let p="function"==typeof i?i(_.current??c??null):i;return(l.clearOnDefault??q)&&null!==p&&void 0!==c&&u(p,c)&&(p=null),x.current=function(e,t,r,n){let o=null===t?null:r(t);return a("[nuqs queue] Enqueueing %s=%s %O",e,o,n),y.set(e,o),"push"===n.history&&(m.history="push"),n.scroll&&(m.scroll=!0),!1===n.shallow&&(m.shallow=!1),n.startTransition&&(g.add(n.startTransition),m.shallow=!1),m.throttleMs=Math.max(n.throttleMs??d,Number.isFinite(m.throttleMs)?m.throttleMs:0),o}(e,p,s,{history:l.history??t,shallow:l.shallow??r,scroll:l.scroll??n,throttleMs:l.throttleMs??o,startTransition:l.startTransition??j}),N.emit(e,{state:p,query:x.current}),null===b&&(b=new Promise((e,t)=>{if(!Number.isFinite(m.throttleMs)){a("[nuqs queue] Skipping flush due to throttleMs=Infinity"),e(new URLSearchParams(location.search)),setTimeout(()=>{b=null},0);return}function r(){w=performance.now();let[r,n]=function(e){let t=new URLSearchParams(location.search);if(0===y.size)return[t,null];let r=Array.from(y.entries()),n={...m},o=Array.from(g);for(let[e,o]of(y.clear(),g.clear(),m.history="replace",m.scroll=!1,m.shallow=!0,m.throttleMs=d,a("[nuqs queue] Flushing queue %O with options %O",r,n),r))null===o?t.delete(e):t.set(e,o);try{let r=window.next?.router;if("string"==typeof r?.state?.asPath){let e=S(r.state.asPath.split("?")[0]??"",t);a("[nuqs queue (pages)] Updating url: %s",e),("push"===n.history?r.push:r.replace).call(r,e,e,{scroll:n.scroll,shallow:n.shallow})}else{let r=S(location.origin+location.pathname,t);a("[nuqs queue (app)] Updating url: %s",r);let i="push"===n.history?history.pushState:history.replaceState,l=(window.next?.version??"")>="14.1.0"?null:history.state;i.call(history,l,k,r),n.scroll&&window.scrollTo(0,0),n.shallow||function(e,t){let r=n=>{if(n===e.length)return t();let o=e[n];if(!o)throw Error("Invalid transition function");o(()=>r(n+1))};r(0)}(o,()=>{e.replace(r,{scroll:!1})})}return[t,null]}catch(e){return console.error(f(429),r.map(([e])=>e).join(),e),[t,e]}}(T);null===n?e(r):t(r),b=null}setTimeout(function(){let e=performance.now()-w,t=m.throttleMs,n=Math.max(0,Math.min(t,t-e));a("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",n,t),0===n?r():setTimeout(r,n)},0)})),b},[e,t,r,n,o,j]);return[E??c??null,I]}"object"==typeof history&&function(){let e="1.19.2",t=history.__nuqs_patched;if(t){t!==e&&console.error(f(409),t,e);return}for(let t of(a("[nuqs] Patching history with %s",e),["pushState","replaceState"])){let e=history[t].bind(history);history[t]=function(r,n,o){if(!o)return a("[nuqs] history.%s(null) (%s) %O",t,n,r),e(r,n,o);let i=n===k?"internal":"external",l=new URL(o,location.origin).searchParams;if(a("[nuqs] history.%s(%s) (%s) %O",t,o,i,r),"external"===i){for(let[e,t]of l.entries()){let r=v(e);null!==r&&r!==t&&(a("[nuqs] Overwrite detected for key: %s, Server: %s, queue: %s",e,t,r),l.set(e,r))}setTimeout(()=>{a("[nuqs] External history.%s call: triggering sync with %s",t,l),N.emit(O,l),N.emit(q,{search:l,source:i})},0)}else setTimeout(()=>{N.emit(q,{search:l,source:i})},0);return e(r,n===k?"":n,o)}}Object.defineProperty(history,"__nuqs_patched",{value:e,writable:!1,enumerable:!1,configurable:!1})}()},92996:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n={};r.r(n),r.d(n,{exclude:function(){return O},extract:function(){return m},parse:function(){return g},parseUrl:function(){return b},pick:function(){return S},stringify:function(){return w},stringifyUrl:function(){return v}});let o="%[a-f0-9]{2}",a=RegExp("("+o+")|([^%]+?)","gi"),i=RegExp("("+o+")+","gi");function l(e,t){if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];let r=e.indexOf(t);return -1===r?[]:[e.slice(0,r),e.slice(r+t.length)]}let s=e=>null==e,u=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),c=Symbol("encodeFragmentIdentifier");function f(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function p(e,t){return t.encode?t.strict?u(e):encodeURIComponent(e):e}function h(e,t){return t.decode?function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){let t={"%FE%FF":"��","%FF%FE":"��"},r=i.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{let e=function(e){try{return decodeURIComponent(e)}catch{let t=e.match(a)||[];for(let r=1;r<t.length;r++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(""))]}catch{}if(1===t.length)return t;r=r||1;let n=t.slice(0,r),o=t.slice(r);return Array.prototype.concat.call([],e(n),e(o))})(t,r).join("")).match(a)||[];return e}}(r[0]);e!==r[0]&&(t[r[0]]=e)}r=i.exec(e)}for(let r of(t["%C2"]="�",Object.keys(t)))e=e.replace(RegExp(r,"g"),t[r]);return e}(e)}}(e):e}function d(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function y(e,t,r){return"string"===r&&"string"==typeof e?e:"function"==typeof r&&"string"==typeof e?r(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())?"true"===e.toLowerCase():("number"!==r||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim())&&(!t.parseNumbers||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim())?e:Number(e)}function m(e){let t=(e=d(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function g(e,t){f((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t}).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[...n[e],r]};case"colon-list-separator":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[...n[e],r]};case"comma":case"separator":return(t,r,n)=>{let o="string"==typeof r&&r.includes(e.arrayFormatSeparator),a="string"==typeof r&&!o&&h(r,e).includes(e.arrayFormatSeparator);r=a?h(r,e):r;let i=o||a?r.split(e.arrayFormatSeparator).map(t=>h(t,e)):null===r?r:h(r,e);n[t]=i};case"bracket-separator":return(t,r,n)=>{let o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o){n[t]=r?h(r,e):r;return}let a=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>h(t,e));if(void 0===n[t]){n[t]=a;return}n[t]=[...n[t],...a]};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[...[r[e]].flat(),t]}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let o of e.split("&")){if(""===o)continue;let e=t.decode?o.replaceAll("+"," "):o,[a,i]=l(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:h(i,t),r(h(a,t),i,n)}for(let[e,r]of Object.entries(n))if("object"==typeof r&&null!==r&&"string"!==t.types[e])for(let[n,o]of Object.entries(r)){let a=t.types[e]?t.types[e].replace("[]",""):void 0;r[n]=y(o,t,a)}else"object"==typeof r&&null!==r&&"string"===t.types[e]?n[e]=Object.values(r).join(t.arrayFormatSeparator):n[e]=y(r,t,t.types[e]);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return e[t]=r&&"object"==typeof r&&!Array.isArray(r)?function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):r,e},Object.create(null))}function w(e,t){if(!e)return"";f((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);let r=r=>t.skipNull&&s(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),"[",o,"]"].join("")]:[...r,[p(t,e),"[",p(o,e),"]=",p(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),"[]"].join("")]:[...r,[p(t,e),"[]=",p(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),":list="].join("")]:[...r,[p(t,e),":list=",p(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length)?[[p(r,e),t,p(o,e)].join("")]:[[n,p(o,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,p(t,e)]:[...r,[p(t,e),"=",p(n,e)].join("")]}}(t),o={};for(let[t,n]of Object.entries(e))r(t)||(o[t]=n);let a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map(r=>{let o=e[r];return void 0===o?"":null===o?p(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?p(r,t)+"[]":o.reduce(n(r),[]).join("&"):p(r,t)+"="+p(o,t)}).filter(e=>e.length>0).join("&")}function b(e,t){t={decode:!0,...t};let[r,n]=l(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:g(m(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:h(n,t)}:{}}}function v(e,t){t={encode:!0,strict:!0,[c]:!0,...t};let r=d(e.url).split("?")[0]||"",n=w({...g(m(e.url),{sort:!1}),...e.query},t);n&&=`?${n}`;let o=function(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}(e.url);if("string"==typeof e.fragmentIdentifier){let n=new URL(r);n.hash=e.fragmentIdentifier,o=t[c]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${o}`}function S(e,t,r){let{url:n,query:o,fragmentIdentifier:a}=b(e,r={parseFragmentIdentifier:!0,[c]:!1,...r});return v({url:n,query:function(e,t){let r={};if(Array.isArray(t))for(let n of t){let t=Object.getOwnPropertyDescriptor(e,n);t?.enumerable&&Object.defineProperty(r,n,t)}else for(let n of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,n);if(o.enumerable){let a=e[n];t(n,a,e)&&Object.defineProperty(r,n,o)}}return r}(o,t),fragmentIdentifier:a},r)}function O(e,t,r){return S(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}var k=n}}]);
|
|
21
|
+
*/let n=(0,r(12118).Z)("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]])},32608:function(e){var t,r,n,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s=[],u=!1,c=-1;function f(){u&&n&&(u=!1,n.length?s=n.concat(s):c=-1,s.length&&p())}function p(){if(!u){var e=l(f);u=!0;for(var t=s.length;t;){for(n=s,s=[];++c<t;)n&&n[c].run();c=-1,t=s.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function d(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new h(e,t)),1!==s.length||u||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=d,o.addListener=d,o.once=d,o.off=d,o.removeListener=d,o.removeAllListeners=d,o.emit=d,o.prependListener=d,o.prependOnceListener=d,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},80967:function(e,t,r){"use strict";r.d(t,{f:function(){return u}});var n=r(89702),o=r(91502),a=r(75536),i="horizontal",l=["horizontal","vertical"],s=n.forwardRef((e,t)=>{let{decorative:r,orientation:n=i,...s}=e,u=l.includes(n)?n:i;return(0,a.jsx)(o.WV.div,{"data-orientation":u,...r?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},...s,ref:t})});s.displayName="Separator";var u=s},96948:function(e,t,r){"use strict";r.d(t,{n:function(){return j}});var n=r(18550),o=r(57387),a=r(38287),i=r(94993),l=r(19976),s=r(5421),u=r(78183),c=r(237),f=r(98780),p=r(91580),h=r(9284),d=r(71308),y=r(55247),m=r(10042),g=r(49015),w=r(48359),b=r(43373);async function v(e,t){let{account:r=e.account,chain:a=e.chain,accessList:i,authorizationList:v,blobs:S,data:k,gas:O,gasPrice:q,maxFeePerBlobGas:N,maxFeePerGas:j,maxPriorityFeePerGas:T,nonce:x,value:F,...E}=t;if(!r)throw new o.o({docsPath:"/docs/actions/wallet/sendTransaction"});let M=(0,n.T)(r);try{(0,m.F)(t);let r=await (async()=>t.to?t.to:v&&v.length>0?await (0,u.z)({authorization:v[0]}).catch(()=>{throw new s.G("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if("json-rpc"===M.type){let t;null!==a&&(t=await (0,l.s)(e,g.L,"getChainId")({}),function({chain:e,currentChainId:t}){if(!e)throw new c.Bk;if(t!==e.id)throw new c.Yl({chain:e,currentChainId:t})}({currentChainId:t,chain:a}));let n=e.chain?.formatters?.transactionRequest?.format,o=(n||y.tG)({...(0,d.K)(E,{format:n}),accessList:i,authorizationList:v,blobs:S,chainId:t,data:k,from:M.address,gas:O,gasPrice:q,maxFeePerBlobGas:N,maxFeePerGas:j,maxPriorityFeePerGas:T,nonce:x,to:r,value:F});return await e.request({method:"eth_sendTransaction",params:[o]},{retryCount:0})}if("local"===M.type){let t=await (0,l.s)(e,w.Z,"prepareTransactionRequest")({account:M,accessList:i,authorizationList:v,blobs:S,chain:a,data:k,gas:O,gasPrice:q,maxFeePerBlobGas:N,maxFeePerGas:j,maxPriorityFeePerGas:T,nonce:x,nonceManager:M.nonceManager,parameters:[...w.Q,"sidecars"],value:F,...E,to:r}),n=a?.serializers?.transaction,o=await M.signTransaction(t,{serializer:n});return await (0,l.s)(e,b.p,"sendRawTransaction")({serializedTransaction:o})}if("smart"===M.type)throw new o.Y({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new o.Y({docsPath:"/docs/actions/wallet/sendTransaction",type:M.type})}catch(e){if(e instanceof o.Y)throw e;throw function(e,{docsPath:t,...r}){let n=(()=>{let t=(0,h.k)(e,r);return t instanceof f.cj?e:t})();return new p.mk(n,{docsPath:t,...r})}(e,{...t,account:M,chain:t.chain||void 0})}}async function S(e,t){let{abi:r,account:s=e.account,address:u,args:c,dataSuffix:f,functionName:p,...h}=t;if(!s)throw new o.o({docsPath:"/docs/contract/writeContract"});let d=(0,n.T)(s),y=(0,a.R)({abi:r,args:c,functionName:p});try{return await (0,l.s)(e,v,"sendTransaction")({data:`${y}${f?f.replace("0x",""):""}`,to:u,account:d,...h})}catch(e){throw(0,i.S)(e,{abi:r,address:u,args:c,docsPath:"/docs/contract/writeContract",functionName:p,sender:d.address})}}var k=r(37979),O=r(73507),q=r(3948),N=r(2913);async function j(e,t){let r,n;let{account:o,chainId:a,connector:i,__mode:l,...s}=t;r="object"==typeof o&&"local"===o.type?e.getClient({chainId:a}):await (0,q.e)(e,{account:o,chainId:a,connector:i});let{connector:u}=(0,O.D)(e);if("prepared"===l||u?.supportsSimulation)n=s;else{let{request:t}=await (0,N.a)(e,{...s,account:o,chainId:a});n=t}let c=(0,k.s)(r,S,"writeContract");return await c({...n,...o?{account:o}:{},chain:a?{id:a}:null})}},30671:function(e,t,r){"use strict";r.d(t,{WJ:function(){return u},Oi:function(){return s},v1:function(){return j}});var n,o=function(){try{if("undefined"==typeof localStorage)return!1;let e="nuqs-localStorage-test";localStorage.setItem(e,e);let t=localStorage.getItem(e)===e;if(localStorage.removeItem(e),!t)return!1}catch(e){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",e),!1}let e=localStorage.getItem("debug")??"";return e.includes("nuqs")||e.includes("next-usequerystate")}();function a(e,...t){if(!o)return;let r=function(e,...t){return e.replace(/%[sfdO]/g,e=>{let r=t.shift();return"%O"===e&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}(e,...t);performance.mark(r),console.log(e,...t)}function i(e,t,r){try{return e(t)}catch(e){return!function(e,...t){o&&console.warn(e,...t)}("[nuqs] Error while parsing value `%s`: %O"+(r?" (for key `%s`)":""),t,e,r),null}}function l(e){function t(t){if(void 0===t)return null;let r="";if(Array.isArray(t)){if(void 0===t[0])return null;r=t[0]}return"string"==typeof t&&(r=t),i(e.parse,r)}return{eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}var s=l({parse:e=>e,serialize:e=>`${e}`});function u(e){return l({parse:t=>{try{let r=JSON.parse(t);if("function"==typeof e)return e(r);return r}catch{return null}},serialize:e=>JSON.stringify(e),eq:(e,t)=>e===t||JSON.stringify(e)===JSON.stringify(t)})}l({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()}),l({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),l({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),l({parse:e=>"true"===e,serialize:e=>e?"true":"false"}),l({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString()}),l({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString()});var c={409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` was about to load on top.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function f(e){return`[nuqs] ${c[e]}
|
|
22
|
+
See https://err.47ng.com/NUQS-${e}`}var p=r(6270),h=r(89702),d=function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),y=new Map,m={history:"replace",scroll:!1,shallow:!0,throttleMs:d},g=new Set,w=0,b=null;function v(e){return y.get(e)??null}function S(e,t){return(e.split("#")[0]??"")+function(e){if(0===e.size)return"";let t=[];for(let[r,n]of e.entries()){let e=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${n.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E")}`)}return"?"+t.join("&")}(t)+location.hash}var k=Symbol("__nuqs__SYNC__"),O="__nuqs__NO_SYNC__",q=Symbol("__nuqs__NOTIFY__"),N={all:n=n||new Map,on:function(e,t){var r=n.get(e);r?r.push(t):n.set(e,[t])},off:function(e,t){var r=n.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var r=n.get(e);r&&r.slice().map(function(e){e(t)}),(r=n.get("*"))&&r.slice().map(function(r){r(e,t)})}};function j(e,{history:t="replace",shallow:r=!0,scroll:n=!1,throttleMs:o=d,parse:l=e=>e,serialize:s=String,eq:u=(e,t)=>e===t,defaultValue:c,clearOnDefault:q=!1,startTransition:j}={history:"replace",scroll:!1,shallow:!0,throttleMs:d,parse:e=>e,serialize:String,eq:(e,t)=>e===t,clearOnDefault:!1,defaultValue:void 0}){let T=(0,p.useRouter)(),x=(0,p.useSearchParams)(),F=h.useRef(null),[E,M]=h.useState(()=>{let t=v(e),r=x?.get(e)??null,n=t??r;return F.current=n,null===n?null:i(l,n,e)}),C=h.useRef(E);a("[nuqs `%s`] render - state: %O, iSP: %s",e,E,x?.get(e)??null),h.useEffect(()=>{if(window.next?.version!=="14.0.3")return;let t=x.get(e)??null;if(t===F.current)return;let r=null===t?null:i(l,t,e);a("[nuqs `%s`] syncFromUseSearchParams %O",e,r),C.current=r,F.current=t,M(r)},[x?.get(e),e]),h.useInsertionEffect(()=>{function t({state:t,query:r}){a("[nuqs `%s`] updateInternalState %O",e,t),C.current=t,F.current=r,M(t)}function r(r){let n=r.get(e);if(n===F.current)return;let o=null===n?null:i(l,n,e);a("[nuqs `%s`] syncFromURL %O",e,o),t({state:o,query:n})}return a("[nuqs `%s`] subscribing to sync",e),N.on(k,r),N.on(e,t),()=>{a("[nuqs `%s`] unsubscribing from sync",e),N.off(k,r),N.off(e,t)}},[e]);let _=h.useCallback((i,l={})=>{let p="function"==typeof i?i(C.current??c??null):i;return(l.clearOnDefault??q)&&null!==p&&void 0!==c&&u(p,c)&&(p=null),F.current=function(e,t,r,n){let o=null===t?null:r(t);return a("[nuqs queue] Enqueueing %s=%s %O",e,o,n),y.set(e,o),"push"===n.history&&(m.history="push"),n.scroll&&(m.scroll=!0),!1===n.shallow&&(m.shallow=!1),n.startTransition&&(g.add(n.startTransition),m.shallow=!1),m.throttleMs=Math.max(n.throttleMs??d,Number.isFinite(m.throttleMs)?m.throttleMs:0),o}(e,p,s,{history:l.history??t,shallow:l.shallow??r,scroll:l.scroll??n,throttleMs:l.throttleMs??o,startTransition:l.startTransition??j}),N.emit(e,{state:p,query:F.current}),null===b&&(b=new Promise((e,t)=>{if(!Number.isFinite(m.throttleMs)){a("[nuqs queue] Skipping flush due to throttleMs=Infinity"),e(new URLSearchParams(location.search)),setTimeout(()=>{b=null},0);return}function r(){w=performance.now();let[r,n]=function(e){let t=new URLSearchParams(location.search);if(0===y.size)return[t,null];let r=Array.from(y.entries()),n={...m},o=Array.from(g);for(let[e,o]of(y.clear(),g.clear(),m.history="replace",m.scroll=!1,m.shallow=!0,m.throttleMs=d,a("[nuqs queue] Flushing queue %O with options %O",r,n),r))null===o?t.delete(e):t.set(e,o);try{let r=window.next?.router;if("string"==typeof r?.state?.asPath){let e=S(r.state.asPath.split("?")[0]??"",t);a("[nuqs queue (pages)] Updating url: %s",e),("push"===n.history?r.push:r.replace).call(r,e,e,{scroll:n.scroll,shallow:n.shallow})}else{let r=S(location.origin+location.pathname,t);a("[nuqs queue (app)] Updating url: %s",r);let i="push"===n.history?history.pushState:history.replaceState,l=(window.next?.version??"")>="14.1.0"?null:history.state;i.call(history,l,O,r),n.scroll&&window.scrollTo(0,0),n.shallow||function(e,t){let r=n=>{if(n===e.length)return t();let o=e[n];if(!o)throw Error("Invalid transition function");o(()=>r(n+1))};r(0)}(o,()=>{e.replace(r,{scroll:!1})})}return[t,null]}catch(e){return console.error(f(429),r.map(([e])=>e).join(),e),[t,e]}}(T);null===n?e(r):t(r),b=null}setTimeout(function(){let e=performance.now()-w,t=m.throttleMs,n=Math.max(0,Math.min(t,t-e));a("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",n,t),0===n?r():setTimeout(r,n)},0)})),b},[e,t,r,n,o,j]);return[E??c??null,_]}"object"==typeof history&&function(){let e="1.19.2",t=history.__nuqs_patched;if(t){t!==e&&console.error(f(409),t,e);return}for(let t of(a("[nuqs] Patching history with %s",e),["pushState","replaceState"])){let e=history[t].bind(history);history[t]=function(r,n,o){if(!o)return a("[nuqs] history.%s(null) (%s) %O",t,n,r),e(r,n,o);let i=n===O?"internal":"external",l=new URL(o,location.origin).searchParams;if(a("[nuqs] history.%s(%s) (%s) %O",t,o,i,r),"external"===i){for(let[e,t]of l.entries()){let r=v(e);null!==r&&r!==t&&(a("[nuqs] Overwrite detected for key: %s, Server: %s, queue: %s",e,t,r),l.set(e,r))}setTimeout(()=>{a("[nuqs] External history.%s call: triggering sync with %s",t,l),N.emit(k,l),N.emit(q,{search:l,source:i})},0)}else setTimeout(()=>{N.emit(q,{search:l,source:i})},0);return e(r,n===O?"":n,o)}}Object.defineProperty(history,"__nuqs_patched",{value:e,writable:!1,enumerable:!1,configurable:!1})}()},92996:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n={};r.r(n),r.d(n,{exclude:function(){return k},extract:function(){return m},parse:function(){return g},parseUrl:function(){return b},pick:function(){return S},stringify:function(){return w},stringifyUrl:function(){return v}});let o="%[a-f0-9]{2}",a=RegExp("("+o+")|([^%]+?)","gi"),i=RegExp("("+o+")+","gi");function l(e,t){if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];let r=e.indexOf(t);return -1===r?[]:[e.slice(0,r),e.slice(r+t.length)]}let s=e=>null==e,u=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),c=Symbol("encodeFragmentIdentifier");function f(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function p(e,t){return t.encode?t.strict?u(e):encodeURIComponent(e):e}function h(e,t){return t.decode?function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){let t={"%FE%FF":"��","%FF%FE":"��"},r=i.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{let e=function(e){try{return decodeURIComponent(e)}catch{let t=e.match(a)||[];for(let r=1;r<t.length;r++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(""))]}catch{}if(1===t.length)return t;r=r||1;let n=t.slice(0,r),o=t.slice(r);return Array.prototype.concat.call([],e(n),e(o))})(t,r).join("")).match(a)||[];return e}}(r[0]);e!==r[0]&&(t[r[0]]=e)}r=i.exec(e)}for(let r of(t["%C2"]="�",Object.keys(t)))e=e.replace(RegExp(r,"g"),t[r]);return e}(e)}}(e):e}function d(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function y(e,t,r){return"string"===r&&"string"==typeof e?e:"function"==typeof r&&"string"==typeof e?r(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())?"true"===e.toLowerCase():("number"!==r||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim())&&(!t.parseNumbers||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim())?e:Number(e)}function m(e){let t=(e=d(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function g(e,t){f((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t}).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[...n[e],r]};case"colon-list-separator":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[...n[e],r]};case"comma":case"separator":return(t,r,n)=>{let o="string"==typeof r&&r.includes(e.arrayFormatSeparator),a="string"==typeof r&&!o&&h(r,e).includes(e.arrayFormatSeparator);r=a?h(r,e):r;let i=o||a?r.split(e.arrayFormatSeparator).map(t=>h(t,e)):null===r?r:h(r,e);n[t]=i};case"bracket-separator":return(t,r,n)=>{let o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o){n[t]=r?h(r,e):r;return}let a=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>h(t,e));if(void 0===n[t]){n[t]=a;return}n[t]=[...n[t],...a]};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[...[r[e]].flat(),t]}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let o of e.split("&")){if(""===o)continue;let e=t.decode?o.replaceAll("+"," "):o,[a,i]=l(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:h(i,t),r(h(a,t),i,n)}for(let[e,r]of Object.entries(n))if("object"==typeof r&&null!==r&&"string"!==t.types[e])for(let[n,o]of Object.entries(r)){let a=t.types[e]?t.types[e].replace("[]",""):void 0;r[n]=y(o,t,a)}else"object"==typeof r&&null!==r&&"string"===t.types[e]?n[e]=Object.values(r).join(t.arrayFormatSeparator):n[e]=y(r,t,t.types[e]);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return e[t]=r&&"object"==typeof r&&!Array.isArray(r)?function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):r,e},Object.create(null))}function w(e,t){if(!e)return"";f((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);let r=r=>t.skipNull&&s(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),"[",o,"]"].join("")]:[...r,[p(t,e),"[",p(o,e),"]=",p(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),"[]"].join("")]:[...r,[p(t,e),"[]=",p(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),":list="].join("")]:[...r,[p(t,e),":list=",p(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length)?[[p(r,e),t,p(o,e)].join("")]:[[n,p(o,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,p(t,e)]:[...r,[p(t,e),"=",p(n,e)].join("")]}}(t),o={};for(let[t,n]of Object.entries(e))r(t)||(o[t]=n);let a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map(r=>{let o=e[r];return void 0===o?"":null===o?p(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?p(r,t)+"[]":o.reduce(n(r),[]).join("&"):p(r,t)+"="+p(o,t)}).filter(e=>e.length>0).join("&")}function b(e,t){t={decode:!0,...t};let[r,n]=l(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:g(m(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:h(n,t)}:{}}}function v(e,t){t={encode:!0,strict:!0,[c]:!0,...t};let r=d(e.url).split("?")[0]||"",n=w({...g(m(e.url),{sort:!1}),...e.query},t);n&&=`?${n}`;let o=function(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}(e.url);if("string"==typeof e.fragmentIdentifier){let n=new URL(r);n.hash=e.fragmentIdentifier,o=t[c]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${o}`}function S(e,t,r){let{url:n,query:o,fragmentIdentifier:a}=b(e,r={parseFragmentIdentifier:!0,[c]:!1,...r});return v({url:n,query:function(e,t){let r={};if(Array.isArray(t))for(let n of t){let t=Object.getOwnPropertyDescriptor(e,n);t?.enumerable&&Object.defineProperty(r,n,t)}else for(let n of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,n);if(o.enumerable){let a=e[n];t(n,a,e)&&Object.defineProperty(r,n,o)}}return r}(o,t),fragmentIdentifier:a},r)}function k(e,t,r){return S(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}var O=n}}]);
|