@latticexyz/explorer 2.2.12-main-e0c4b4c9c99e6ac9b2c95633ba19c7db9143de8a → 2.2.12-main-9a43e87db302ec599fd1e97d8b77e2e68831017f
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 +62 -49
- 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.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page.js.nft.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.js +2 -2
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js.nft.json +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.js.nft.json +1 -1
- 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 +3 -3
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js.nft.json +1 -1
- 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.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page.js.nft.json +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.js +2 -2
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page.js.nft.json +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)/api/world-abi/route.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page.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/chunks/{7894.js → 3710.js} +19 -20
- package/.next/standalone/packages/explorer/.next/server/chunks/3883.js +1 -0
- package/.next/standalone/packages/explorer/.next/server/chunks/4815.js +2 -0
- package/.next/standalone/packages/explorer/.next/server/chunks/531.js +1 -1
- 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/2252-bfc776306e36a045.js +5 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/{2210-3c8bdf820888d6a8.js → 2364-01b0b30bb020a53c.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/5542-d4940a68bf70be9f.js +17 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/855-c4a9fef0776ad236.js +2 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/9711-3b97487e6d8e1170.js +16 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/9726-98c8b3d86489ccc0.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/layout-92156abb2d8cf86d.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/{page-8d1154770f8c8aca.js → page-ca224640c4148546.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-7c9a64c50b971976.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-2f460a4403851c6e.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page-beb935d28fa51517.js +21 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/page-bd1388c8dd9e423d.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/page-c009d1363fbf9493.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/{layout-cad4310a3c48104c.js → layout-ccd74436cd8ea243.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/internal/layout-456c56472f7af2f9.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/css/238fafd36ce3d166.css +3 -0
- package/dist/bin/explorer.js +4 -1
- package/dist/bin/explorer.js.map +1 -1
- package/package.json +9 -9
- package/.next/standalone/packages/explorer/.next/server/chunks/4649.js +0 -1
- package/.next/standalone/packages/explorer/.next/server/chunks/5086.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/1954-c6aa5b527d0cbcba.js +0 -18
- package/.next/standalone/packages/explorer/.next/static/chunks/2252-e32d621b3704663e.js +0 -5
- package/.next/standalone/packages/explorer/.next/static/chunks/7029-93ed7fc1d353a3a7.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/9711-e50c434f8ba8a15d.js +0 -16
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-4ac2a726c283f503.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-1cbae0e329b17402.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page-832689ddbb09c607.js +0 -21
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/page-fa8896a82767a3f4.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/page-3dc4700b373da7aa.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/internal/layout-5537df5eb5ae5ce5.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/css/8092e4981ecba596.css +0 -3
- /package/.next/standalone/packages/explorer/.next/static/chunks/{6365-df38dd650e23bb90.js → 6365-089c2e7abcbab84c.js} +0 -0
- /package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/{error-5908c19e8918b88d.js → error-e6b5d17703e51680.js} +0 -0
- /package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/{not-found-d274a2c1b013d034.js → not-found-8c1f03f036ecd76b.js} +0 -0
- /package/.next/standalone/packages/explorer/.next/static/{F0-_2II2JIDrXpdbYrP22 → tB_sewfKBPbtMEfzHv16z}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/explorer/.next/static/{F0-_2II2JIDrXpdbYrP22 → tB_sewfKBPbtMEfzHv16z}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8672],{42981:function(e,t,r){Promise.resolve().then(r.bind(r,18782))},55823:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
|
|
2
|
+
* @license lucide-react v0.408.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/let n=(0,r(12118).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},19362: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)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},18782:function(e,t,r){"use strict";r.d(t,{TransactionsTable:function(){return Q},z:function(){return X}});var n=r(75536),s=r(12118);/**
|
|
12
|
+
* @license lucide-react v0.408.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/let a=(0,s.Z)("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]),i=(0,s.Z)("UserPen",[["path",{d:"M11.5 15H7a4 4 0 0 0-4 4v2",key:"15lzij"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}]]),l=(0,s.Z)("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);var o=r(11471);/**
|
|
17
|
+
* @license lucide-react v0.408.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/let c=(0,s.Z)("ReceiptText",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M13 16H8",key:"wsln4y"}]]);var d=r(89702),u=r(46721),f=r(96917),h=r(67157),m=r(66585);let x=(0,h.j)((0,m.cn)("inline-flex items-center px-2.5 py-0.5","rounded-md border","text-xs font-semibold transition-colors","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",tertiary:"border-transparent bg-tertiary text-tertiary-foreground hover:bg-tertiary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function p(e){let{className:t,variant:r,...s}=e;return(0,n.jsx)("div",{className:(0,m.cn)(x({variant:r}),t),...s})}var g=r(68347),b=r(34431),v=r(71118),j=r(35605),w=r(84367);function y(e){let{hash:t,children:r}=e,{id:s}=(0,j.A)(),a=function(e){var t;let{hash:r,chainId:n}=e;if(!r)return;(0,w.wG)(n);let s=w.is[n],a=w.df[s],i="blockExplorers"in a&&(null===(t=a.blockExplorers)||void 0===t?void 0:t.default.url);if(i)return"".concat(i,"/tx/").concat(r)}({chainId:s,hash:t});return a?(0,n.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"flex hover:underline",children:r}):r}function N(e){let t=Math.floor(Date.now()/1e3)-Number(e);for(let e of[{name:"y",limit:31536e3,inSeconds:31536e3},{name:"mth",limit:2592e3,inSeconds:2592e3},{name:"d",limit:86400,inSeconds:86400},{name:"h",limit:3600,inSeconds:3600},{name:"m",limit:60,inSeconds:60},{name:"s",limit:1,inSeconds:1}])if(t>=e.limit){let r=Math.floor(t/e.inSeconds);return"".concat(r).concat(e.name," ago")}return"0s ago"}function k(e){let{timestamp:t}=e,[r,s]=(0,d.useState)(()=>N(t));return(0,d.useEffect)(()=>{let e=setInterval(()=>{s(N(t))},1e3);return()=>clearInterval(e)},[t]),(0,n.jsx)("span",{className:"inline-block min-w-[60px] text-white/60",title:new Date(1e3*Number(t)).toISOString(),children:r})}var S=r(32858);let T={write:{priority:1,label:"write"},"write:result":{priority:2},waitForTransaction:{priority:3,label:"state update"},"waitForTransaction:result":{priority:4},waitForTransactionReceipt:{priority:5,label:"transaction receipt"},"waitForTransactionReceipt:result":{priority:6}};function M(e){let{time:t,events:r}=e,n=Math.max(...r.map(e=>e.time-t));return Object.values(r).sort((e,t)=>{var r,n;return(null===(r=T[e.type])||void 0===r?void 0:r.priority)-(null===(n=T[t.type])||void 0===n?void 0:n.priority)}).map(e=>{var s;let a=e.type;if(a.endsWith(":result"))return;let i=r.find(e=>e.type==="".concat(a,":result")),l=(null!==(s=null==i?void 0:i.time)&&void 0!==s?s:e.time)-e.time,o=e.time-t,c=T[a];return{type:a,label:"label"in c?c.label:a,duration:l,startPercentage:o/n*100,widthPercentage:l/n*100}}).filter(S.$K)}function C(e){let t=M(e);return(0,n.jsx)("div",{className:"ml-4 inline-block h-full w-14 grayscale lg:-mr-8 lg:ml-8 xl:-mr-16 xl:ml-16",children:t.map(e=>(0,n.jsx)("div",{title:e.label,className:(0,m.cn)("h-1",{"bg-[#5c9af6]":"write"===e.type,"mt-0.5 bg-[#4d7cc0]":"waitForTransaction"===e.type,"mt-0.5 bg-[#3d5c8a]":"waitForTransactionReceipt"===e.type}),style:{width:"".concat(e.widthPercentage,"%"),marginLeft:"".concat(e.startPercentage,"%")}},e.label))})}var R=r(19362),E=r(55823),O=r(84141),F=r(35431),I=r(79701),Z=r(37979),D=r(33586),A=r(42473),P=r(368),_=r(97869);function z(e){let{hash:t}=e,{id:r}=(0,j.A)(),{data:s}=function(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{hash:n,transactionReceipt:s,query:a={}}=r,i=(0,_.Z)(r),l=(0,P.x)({config:i}),o=function(e,t={}){return{async queryFn({queryKey:t}){let{hash:r,transactionReceipt:n,scopeKey:s,...a}=t[1];if(!r&&!n)throw Error("hash or transactionReceipt is required");return await function(e,t){let{chainId:r,...n}=t,s=e.getClient({chainId:r});return(0,Z.s)(s,I.a,"getTransactionConfirmations")(n)}(e,{hash:r,transactionReceipt:n,...a})??null},queryKey:function(e={}){return["transactionConfirmations",(0,D.OP)(e)]}(t)}}(i,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:l}),c=!!(!(n&&s)&&(n||s)&&(null===(t=a.enabled)||void 0===t||t));return(0,A.aM)({...a,...o,enabled:c})}({hash:t,chainId:r,query:{refetchInterval:1e3,enabled:!!t}});return s?(0,n.jsxs)("span",{className:"flex items-center text-xs font-extrabold text-green-600",children:[(0,n.jsx)("span",{className:"mr-2 inline-block h-2 w-2 animate-pulse rounded-full bg-success"}),(0,n.jsx)("span",{className:"opacity-70",children:s.toString()})]}):(0,n.jsx)(g.O,{className:"h-4 w-[50px]"})}function V(e){let t=M(e);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F.Z,{className:"my-5"}),(0,n.jsxs)("div",{className:"flex items-start gap-x-4 pb-2",children:[(0,n.jsx)("h3",{className:"inline-block w-[45px] pb-2 text-2xs font-bold uppercase",children:"Timing"}),(0,n.jsx)("div",{className:"w-full border border-white/20 p-2 pb-3",children:(0,n.jsx)("div",{className:"grid grid-cols-[auto_1fr_auto] items-center gap-x-4 gap-y-1",children:t.map(e=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"text-xs",children:[e.label,":"]}),(0,n.jsx)("span",{className:(0,m.cn)("h-1",{"bg-[#5c9af6]":"write"===e.type,"bg-[#4d7cc0]":"waitForTransaction"===e.type,"bg-[#3d5c8a]":"waitForTransactionReceipt"===e.type}),style:{width:"".concat(e.widthPercentage,"%"),marginLeft:"".concat(e.startPercentage,"%")}}),(0,n.jsxs)("span",{className:"text-right text-xs",children:[e.duration,"ms"]})]}))})})]})]})}function U(e){let{label:t,status:r,children:s}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"text-2xs font-bold uppercase text-white/60",children:t}),(0,n.jsx)("p",{className:"pt-1 text-xs uppercase",children:null!=s?s:"rejected"===r?(0,n.jsx)("span",{className:"text-white/60",children:"N/A"}):(0,n.jsx)(g.O,{className:"h-4 w-[100px]"})})]})}function H(e){var t,r,s,a,i;let{row:l}=e,o=null==l?void 0:l.original,c=o.status,d=null==o?void 0:o.logs,f=null==o?void 0:o.receipt;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(b.SC,{className:(0,m.cn)("relative cursor-pointer",{"bg-muted/50":l.getIsExpanded()}),onClick:()=>l.toggleExpanded(),children:[l.getVisibleCells().map(e=>(0,n.jsx)(b.pj,{children:(0,u.ie)(e.column.columnDef.cell,e.getContext())},e.id)),l.getIsExpanded()?(0,n.jsx)(R.Z,{className:"absolute right-4 top-1/2 h-4 w-4 -translate-y-1/2 text-white/60"}):(0,n.jsx)(E.Z,{className:"absolute right-4 top-1/2 h-4 w-4 -translate-y-1/2 text-white/60"})]}),l.getIsExpanded()&&(0,n.jsx)(b.SC,{className:"border-b-white/20 bg-muted/50 hover:bg-muted/50",children:(0,n.jsx)(b.pj,{colSpan:X.length,children:o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-5 sm:grid-cols-4 md:grid-cols-5",children:[(0,n.jsx)(U,{label:"Confirmations",status:c,children:"rejected"!==c?(0,n.jsx)(z,{hash:null===(t=o.transaction)||void 0===t?void 0:t.hash}):null}),(0,n.jsxs)(U,{label:"Tx value",status:c,children:[o.value?(0,O.d)(o.value):0," ETH"]}),(0,n.jsx)(U,{label:"Gas used",status:c,children:null==f?void 0:f.gasUsed.toString()}),(0,n.jsx)(U,{label:"Gas price",status:c,children:null==f?void 0:f.effectiveGasPrice.toString()}),(0,n.jsx)(U,{label:"Tx cost",status:c,children:f?"".concat((0,O.d)(f.gasUsed*f.effectiveGasPrice)," ETH"):null})]}),(0,n.jsx)(F.Z,{className:"my-5"}),(0,n.jsxs)("div",{className:"flex items-start gap-x-4",children:[(0,n.jsx)("h3",{className:"w-[45px] flex-shrink-0 text-2xs font-bold uppercase",children:"Inputs"}),Array.isArray(null===(r=o.functionData)||void 0===r?void 0:r.args)&&(null===(s=o.functionData)||void 0===s?void 0:s.args.length)>0?(0,n.jsx)("div",{className:"min-w-0 flex-grow border border-white/20 p-2",children:null===(i=o.functionData)||void 0===i?void 0:null===(a=i.args)||void 0===a?void 0:a.map((e,t)=>(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsxs)("span",{className:"flex-shrink-0 text-xs text-white/60",children:["arg ",t+1,":"]}),(0,n.jsx)("span",{className:"ml-2 break-all text-xs",children:"object"==typeof e&&null!==e?JSON.stringify(e,null,2):String(e)})]},t))}):(0,n.jsx)("p",{className:"text-2xs uppercase text-white/60",children:"No inputs"})]}),o.error?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F.Z,{className:"my-5"}),(0,n.jsxs)("div",{className:"flex items-start gap-x-4",children:[(0,n.jsx)("h3",{className:"w-[45px] flex-shrink-0 text-2xs font-bold uppercase",children:"Error"}),(0,n.jsx)("div",{className:"flex-grow whitespace-pre-wrap border border-red-500 p-2 font-mono text-xs",children:o.error.message})]})]}):null,o.error?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F.Z,{className:"my-5"}),(0,n.jsxs)("div",{className:"flex items-start gap-x-4",children:[(0,n.jsx)("h3",{className:"inline-block w-[45px] flex-shrink-0 text-2xs font-bold uppercase",children:"Logs"}),Array.isArray(d)&&d.length>0?(0,n.jsx)("div",{className:"flex-grow break-all border border-white/20 p-2 pb-3",children:(0,n.jsx)("ul",{children:d.map((e,t)=>{let r="eventName"in e?e.eventName:null,s="args"in e?e.args:null;return(0,n.jsxs)("li",{children:[!!r&&(0,n.jsxs)("span",{className:"text-xs",children:[null==r?void 0:r.toString(),":"]}),s&&(0,n.jsx)("ul",{className:"list-inside",children:Object.entries(s).map(e=>{let[t,r]=e;return(0,n.jsxs)("li",{className:"mt-1 flex",children:[(0,n.jsxs)("span",{className:"flex-shrink-0 text-xs text-white/60",children:[t,": "]}),(0,n.jsx)("span",{className:"ml-2 break-all text-xs",children:r})]},t)})}),t<d.length-1&&(0,n.jsx)(F.Z,{className:"my-4"})]},t)})})}):"pending"===c?(0,n.jsx)(g.O,{className:"h-4 w-full"}):(0,n.jsx)("p",{className:"text-2xs uppercase text-white/60",children:"No logs"})]})]}),o.write&&(0,n.jsx)(V,{...o.write})]})})})]})}var q=r(6270),L=r(1586),G=r(11427),K=r(71792),B=r(14448),W=r(60188),$=r(57253),Y=r(50011);let J=(0,f.Cl)(),X=[J.accessor("receipt.blockNumber",{header:"Block",cell:e=>{if("rejected"===e.row.original.status)return(0,n.jsx)("span",{className:"text-white/60",children:"N/A"});let t=e.getValue();return t?(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(a,{className:"mr-1 h-3 w-3"}),t.toString()]}):(0,n.jsx)(g.O,{className:"h-4 w-full"})}}),J.accessor("from",{header:"From",cell:e=>{let t=e.getValue();return t?(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(i,{className:"mr-1 h-3 w-3"}),(0,n.jsx)(v.a,{hex:t})]}):(0,n.jsx)(g.O,{className:"h-4 w-full"})}}),J.accessor("functionData.functionName",{header:"Function",cell:e=>{let t=e.getValue(),r=e.row.original.status;return(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(p,{variant:"secondary",children:t}),"pending"===r&&(0,n.jsx)(l,{className:"ml-2 h-4 w-4 text-white/60"}),"success"===r&&(0,n.jsx)(l,{className:"ml-2 h-4 w-4 text-green-400"}),("reverted"===r||"rejected"===r)&&(0,n.jsx)(o.Z,{className:"ml-2 h-4 w-4 text-red-400"})]})}}),J.accessor("hash",{header:"Tx hash",cell:e=>{if("rejected"===e.row.original.status)return(0,n.jsx)("span",{className:"text-white/60",children:"N/A"});let t=e.getValue();return t?(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(c,{className:"mr-1 h-3 w-3"}),(0,n.jsx)(y,{hash:t,children:(0,n.jsx)(v.a,{hex:t})})]}):(0,n.jsx)(g.O,{className:"h-4 w-full"})}}),J.accessor("timestamp",{header:"Time",cell:e=>{let t=e.getValue(),r=e.row.original.write;return(0,n.jsxs)(n.Fragment,{children:[t?(0,n.jsx)(k,{timestamp:t}):(0,n.jsx)(g.O,{className:"h-4 w-14"}),r&&(0,n.jsx)(C,{...r})]})}})];function Q(){var e;let t=function(){let{worldAddress:e}=(0,q.useParams)(),t=(0,W.oR)(Y.h,e=>e.transactions),r=(0,W.oR)($.store,e=>e.writes);return(0,d.useMemo)(()=>{let n=new Map;for(let t of Object.values(r)){if(t.address.toLowerCase()!==e.toLowerCase())continue;let r=function(e){let t;if("string"==typeof e)t=(0,B.cK)(e);else{let r=(0,K.D)(e),n=e.length;for(let s=0;s<n;s++){let n=e[s];if(!(0,G.N0)(n)){t=(0,B.cK)(n,r);break}}}if(!t)throw new L.a_({signature:e});return t}("function ".concat(t.functionSignature)),s=t.events.find(e=>"write:result"===e.type);n.set(t.hash||t.writeId,{hash:t.hash,writeId:t.writeId,from:t.from,status:(null==s?void 0:s.status)==="rejected"?"rejected":"pending",timestamp:BigInt(t.time)/1000n,functionData:{functionName:r.name,args:t.args},value:t.value,error:s&&"reason"in s?s.reason:void 0,write:t})}for(let e of t){let t=n.get(e.hash);t?n.set(e.hash,{...e,write:t.write}):n.set(e.hash,{...e})}return Array.from(n.values()).sort((e,t)=>{var r,n;return Number(null!==(r=t.timestamp)&&void 0!==r?r:0n)-Number(null!==(n=e.timestamp)&&void 0!==n?n:0n)})},[r,e,t])}(),[r,s]=(0,d.useState)({}),a=(0,u.b7)({data:t,columns:X,state:{expanded:r},getRowId:e=>e.writeId,onExpandedChange:s,getCoreRowModel:(0,f.sC)(),getExpandedRowModel:(0,f.rV)()});return(0,n.jsxs)(b.iA,{children:[(0,n.jsx)(b.xD,{className:"sticky top-0 z-10 bg-[var(--color-background)]",children:a.getHeaderGroups().map(e=>(0,n.jsx)(b.SC,{children:e.headers.map(e=>(0,n.jsx)(b.ss,{className:"text-xs uppercase",children:e.isPlaceholder?null:(0,u.ie)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,n.jsx)(b.RM,{children:(null===(e=a.getRowModel().rows)||void 0===e?void 0:e.length)?a.getRowModel().rows.map(e=>(0,n.jsx)(H,{row:e},e.id)):(0,n.jsx)(b.SC,{children:(0,n.jsx)(b.pj,{colSpan:X.length,children:(0,n.jsxs)("p",{className:"flex items-center justify-center gap-3 py-4 font-mono text-xs font-bold uppercase text-muted-foreground",children:[(0,n.jsx)("span",{className:"inline-block h-1.5 w-1.5 animate-ping rounded-full bg-muted-foreground"})," Waiting for transactions…"]})})})})]})}},50011:function(e,t,r){"use strict";r.d(t,{h:function(){return n}});let n=(0,r(30521).M)()(e=>({transactions:[],setTransaction:t=>e(e=>({transactions:[...e.transactions,t]})),updateTransaction:(t,r)=>e(e=>({transactions:e.transactions.map(e=>e.hash===t?{...e,...r}:e)}))}))},35605:function(e,t,r){"use strict";r.d(t,{A:function(){return a}});var n=r(6270),s=r(84367);function a(){let{chainName:e}=(0,n.useParams)();return(0,s.Yx)(e),s.df[e]}},84367:function(e,t,r){"use strict";r.d(t,{is:function(){return h},M0:function(){return u},oK:function(){return m},df:function(){return f},wG:function(){return x},Yx:function(){return p}});var n=r(79617),s=r(53103),a=r(20536),i=r(49249),l=r(76271);({...s.t});var o={...a.g,iconUrls:["https://redstone.xyz/chain-icons/redstone.png"],indexerUrl:"https://indexer.mud.redstonechain.com"},c={...i.T,iconUrls:["https://redstone.xyz/chain-icons/garnet.png"],indexerUrl:"https://indexer.mud.garnetchain.com"},d={...l.i,name:"Rhodolite Devnet",testnet:!0,id:17420,sourceId:17001,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.rhodolitechain.com"]}},iconUrls:["https://redstone.xyz/chain-icons/rhodolite.png"],indexerUrl:"https://indexer.mud.rhodolitechain.com"};let u=["world","store","metadata","puppet","erc20-puppet","erc721-puppet"],f={anvil:n.O,rhodolite:d,garnet:c,redstone:o},h=Object.fromEntries(Object.entries(f).map(e=>{let[t,r]=e;return[r.id,t]}));function m(e){return"string"==typeof e&&e in f}function x(e){if(!("number"==typeof e&&e in h))throw Error("Invalid chain ID. Supported chains are: ".concat(Object.keys(h).join(", "),"."))}function p(e){if(!m(e))throw Error("Invalid chain name. Supported chains are: ".concat(Object.keys(f).join(", "),"."))}},35431:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(75536),s=r(89702),a=r(80967),i=r(66585);let l=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:l=!0,...o}=e;return(0,n.jsx)(a.f,{ref:t,decorative:l,orientation:s,className:(0,i.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...o})});l.displayName=a.f.displayName},68347:function(e,t,r){"use strict";r.d(t,{O:function(){return a}});var n=r(75536),s=r(66585);function a(e){let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,s.cn)("animate-pulse rounded-md bg-muted",t),...r})}},34431:function(e,t,r){"use strict";r.d(t,{RM:function(){return o},SC:function(){return c},iA:function(){return i},pj:function(){return u},ss:function(){return d},xD:function(){return l}});var n=r(75536),s=r(89702),a=r(66585);let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("table",{ref:t,className:(0,a.cn)("w-full caption-bottom text-sm",r),...s})});i.displayName="Table";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("thead",{ref:t,className:(0,a.cn)("[&_tr]:border-b",r),...s})});l.displayName="TableHeader";let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("tbody",{ref:t,className:(0,a.cn)("[&_tr:last-child]:border-0",r),...s})});o.displayName="TableBody",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("tfoot",{ref:t,className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),...s})}).displayName="TableFooter";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("tr",{ref:t,className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),...s})});c.displayName="TableRow";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("th",{ref:t,className:(0,a.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",r),...s})});d.displayName="TableHead";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("td",{ref:t,className:(0,a.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",r),...s})});u.displayName="TableCell",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("caption",{ref:t,className:(0,a.cn)("mt-4 text-sm text-muted-foreground",r),...s})}).displayName="TableCaption"},71118:function(e,t,r){"use strict";r.d(t,{a:function(){return s}});var n=r(75536);function s(e){let{hex:t}=e;return t.length<=10?(0,n.jsx)("span",{children:t}):(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"after:select-none after:content-['…']",children:t.slice(0,6)}),(0,n.jsx)("span",{className:"tracking-[-1ch] text-transparent",children:t.slice(6,-4)}),t.slice(-4)]})}},83966:function(e,t,r){"use strict";r.d(t,{M:function(){return n}});let n="explorer/observer"},41374:function(e,t,r){"use strict";r.d(t,{f:function(){return s}});var n=r(95674);let s=r.n(n)()("mud:explorer").extend("observer")},57253:function(e,t,r){"use strict";r.d(t,{store:function(){return i}});var n=r(30521),s=r(83966),a=r(41374);let i=(0,n.M)(()=>({writes:{}}));(0,a.f)("listening for relayed messages",s.M),new BroadcastChannel(s.M).addEventListener("message",e=>{let{data:t}=e;"ping"!==t.type&&i.setState(e=>{let r="write"===t.type?{...t,events:[]}:e.writes[t.writeId];return{writes:{...e.writes,[t.writeId]:{...r,type:t.type,hash:"waitForTransactionReceipt"===t.type?t.hash:r.hash,events:[...r.events,t]}}}})})},66585:function(e,t,r){"use strict";r.d(t,{a:function(){return o},cn:function(){return i},f:function(){return l}});var n=r(84141),s=r(88014),a=r(47228);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.m)((0,s.W)(t))}function l(e){return e.replace(/[A-Z]/g,e=>"_".concat(e.toLowerCase())).replace(/^_/,"")}function o(e){let t=(0,n.d)(e),r=Math.floor(parseFloat(t)).toString().length;return parseFloat(t).toLocaleString("en-US",{maximumFractionDigits:Math.max(0,6-r)})}},91502:function(e,t,r){"use strict";r.d(t,{WV:function(){return l},jH:function(){return o}});var n=r(89702),s=r(3020),a=r(14292),i=r(75536),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...s}=e,l=n?a.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...s,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function o(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}},80967:function(e,t,r){"use strict";r.d(t,{f:function(){return c}});var n=r(89702),s=r(91502),a=r(75536),i="horizontal",l=["horizontal","vertical"],o=n.forwardRef((e,t)=>{let{decorative:r,orientation:n=i,...o}=e,c=l.includes(n)?n:i;return(0,a.jsx)(s.WV.div,{"data-orientation":c,...r?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...o,ref:t})});o.displayName="Separator";var c=o},60188:function(e,t,r){"use strict";r.d(t,{oR:function(){return a}});var n=r(89702);let{useSyncExternalStoreWithSelector:s}=r(44666);function a(e,t=e.getState,r){let a=s(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,n.useDebugValue)(a),a}},30521:function(e,t,r){"use strict";r.d(t,{M:function(){return s}});let n=e=>{let t;let r=new Set,n=(e,n)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=n?n:"object"!=typeof s)?s:Object.assign({},t,s),r.forEach(r=>r(t,e))}},s=()=>t,a={setState:n,getState:s,subscribe:e=>(r.add(e),()=>r.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."),r.clear()}};return t=e(n,s,a),a},s=e=>e?n(e):n},32858:function(e,t,r){"use strict";function n(e,t){let r=new Map;for(let n of e){let e=t(n);r.has(e)||r.set(e,[]),r.get(e).push(n)}return r}function s(e){return void 0!==e}function a(e,t){return Object.fromEntries(Object.entries(e).map(e=>{let[r,n]=e;return[r,t(n,r)]}))}r.d(t,{$K:function(){return s},Xc:function(){return a},vM:function(){return n}})}},function(e){e.O(0,[9711,2364,855,5674,5542,1461,9213,8474,1744],function(){return e(e.s=42981)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[285,8638,2604,7162],{73693:function(){}},function(n){n.O(0,[9213,8474,1744],function(){return n(n.s=73693)}),_N_E=n.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1682],{81929:function(e,t,r){Promise.resolve().then(r.bind(r,48057))},48057:function(e,t,r){"use strict";r.d(t,{WorldsForm:function(){return v}});var n=r(75536),a=r(3289),o=r(6270),s=r(39585),l=r(94302),i=r(62135),d=r(89702),c=r(59201),u=r(3092),f=r(85723),m=r(19552),p=r(29438),x=r(33929),g={src:"/_next/static/media/icon.1b9336a6.svg",height:200,width:200,blurWidth:0,blurHeight:0},h=r(39723);let b=l.Ry({worldAddress:l.Z_().refine(e=>(0,s.U)(e),{message:"Invalid world address"}).transform(e=>e)});function v(e){let{worlds:t}=e,r=(0,o.useRouter)(),{chainName:s}=(0,o.useParams)(),[l,v]=(0,d.useState)(!1),y=(0,c.cI)({resolver:(0,u.F)(b),reValidateMode:"onChange"});return(0,n.jsxs)("div",{className:"mx-auto flex min-h-screen w-[450px] flex-col items-center justify-center p-4",children:[(0,n.jsxs)("h1",{className:"flex items-center gap-6 self-start font-mono text-4xl font-bold uppercase",children:[(0,n.jsx)(a.default,{src:g,alt:"MUD logo",width:48,height:48})," Worlds Explorer"]}),(0,n.jsx)(m.mY,{className:"mt-6 overflow-visible bg-transparent",children:(0,n.jsx)(p.l0,{...y,children:(0,n.jsxs)("form",{onSubmit:y.handleSubmit(function(e){let{worldAddress:t}=e;r.push((0,h.m)(s,t))}),className:"space-y-6",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(p.Wi,{control:y.control,name:"worldAddress",render:e=>{let{field:t}=e;return(0,n.jsxs)(p.xJ,{children:[(0,n.jsx)(p.NI,{children:(0,n.jsx)(i.mY.Input,{asChild:!0,value:t.value,onValueChange:e=>{t.onChange(e)},onBlur:()=>{t.onBlur(),v(!1)},onFocus:()=>v(!0),placeholder:"Enter world address...",children:(0,n.jsx)(x.I,{className:"h-12"})})}),(0,n.jsx)(p.zG,{className:"uppercase"})]})}}),(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)(m.e8,{children:l&&t.length>0?(0,n.jsx)("div",{className:"absolute top-3 z-10 max-h-[200px] w-full overflow-y-auto rounded-md border bg-popover text-popover-foreground outline-none animate-in",children:(0,n.jsx)(m.fu,{children:null==t?void 0:t.map(e=>(0,n.jsx)(m.di,{value:e,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:e=>{y.setValue("worldAddress",e,{shouldValidate:!0}),v(!1)},className:"cursor-pointer font-mono",children:e},e))})}):null})})]}),(0,n.jsxs)("div",{className:"flex w-full items-center gap-x-2",children:[(0,n.jsx)(f.z,{type:"submit",className:"flex-1 uppercase",variant:"default",children:"Explore the world"}),(0,n.jsx)(f.z,{className:"flex-1 uppercase",variant:"secondary",onClick:function(){if(t.length>0){let e=t[Math.floor(Math.random()*t.length)];r.push((0,h.m)(s,e))}},disabled:0===t.length,children:"I'm feeling lucky"})]})]})})})]})}},39723:function(e,t,r){"use strict";function n(e,t){return"/".concat(e,"/worlds/").concat(t)}r.d(t,{m:function(){return n}})},85723:function(e,t,r){"use strict";r.d(t,{z:function(){return d}});var n=r(75536),a=r(67157),o=r(89702),s=r(14292),l=r(66585);let i=(0,a.j)((0,l.cn)("inline-flex items-center justify-center rounded-md","whitespace-nowrap text-sm font-medium","ring-offset-background transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50"),{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=o.forwardRef((e,t)=>{let{className:r,variant:a,size:o,type:d="button",asChild:c=!1,...u}=e,f=c?s.g7:"button";return(0,n.jsx)(f,{className:(0,l.cn)(i({variant:a,size:o,className:r})),ref:t,type:d,...u})});d.displayName="Button"},19552:function(e,t,r){"use strict";r.d(t,{mY:function(){return f},rb:function(){return x},fu:function(){return g},sZ:function(){return m},di:function(){return h},e8:function(){return p}});var n=r(75536),a=r(767),o=r(62135),s=r(89702),l=r(66585),i=r(11471),d=r(87907);d.Root,d.Trigger;let c=d.Portal;d.Close;let u=s.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(d.Overlay,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...a})});u.displayName=d.Overlay.displayName,s.forwardRef((e,t)=>{let{className:r,children:a,...o}=e;return(0,n.jsxs)(c,{children:[(0,n.jsx)(u,{}),(0,n.jsxs)(d.Content,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50","w-full max-w-lg","translate-x-[-50%] translate-y-[-50%]","grid gap-4","border bg-background p-6 shadow-lg","sm:rounded-lg","duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",r),...o,children:[a,(0,n.jsxs)(d.Close,{className:(0,l.cn)("absolute right-4 top-4","rounded-sm opacity-70","ring-offset-background","transition-opacity","hover:opacity-100","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2","disabled:pointer-events-none","data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"),children:[(0,n.jsx)(i.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}).displayName=d.Content.displayName,s.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(d.Title,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",r),...a})}).displayName=d.Title.displayName,s.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(d.Description,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",r),...a})}).displayName=d.Description.displayName;let f=s.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(o.mY,{ref:t,className:(0,l.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",r),...a})});f.displayName=o.mY.displayName;let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,n.jsx)(a.Z,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,n.jsx)(o.mY.Input,{ref:t,className:(0,l.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",r),...s})]})});m.displayName=o.mY.Input.displayName;let p=s.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(o.mY.List,{ref:t,className:(0,l.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",r),...a})});p.displayName=o.mY.List.displayName;let x=s.forwardRef((e,t)=>(0,n.jsx)(o.mY.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));x.displayName=o.mY.Empty.displayName;let g=s.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(o.mY.Group,{ref:t,className:(0,l.cn)("overflow-hidden","p-1","text-foreground","[&_[cmdk-group-heading]]:px-2","[&_[cmdk-group-heading]]:py-1.5","[&_[cmdk-group-heading]]:text-xs","[&_[cmdk-group-heading]]:font-medium","[&_[cmdk-group-heading]]:text-muted-foreground",r),...a})});g.displayName=o.mY.Group.displayName,s.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(o.mY.Separator,{ref:t,className:(0,l.cn)("-mx-1 h-px bg-border",r),...a})}).displayName=o.mY.Separator.displayName;let h=s.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(o.mY.Item,{ref:t,className:(0,l.cn)("relative flex","px-2 py-1.5","text-sm","cursor-default select-none","outline-none","rounded-sm","data-[disabled=true]:pointer-events-none","data-[disabled=true]:opacity-50","data-[selected='true']:bg-accent","data-[selected=true]:text-accent-foreground",r),...a})});h.displayName=o.mY.Item.displayName},29438:function(e,t,r){"use strict";r.d(t,{l0:function(){return f},NI:function(){return v},Wi:function(){return p},xJ:function(){return h},lX:function(){return b},zG:function(){return y}});var n=r(75536),a=r(89702),o=r(59201),s=r(14292),l=r(67157),i=r(69213),d=r(66585);let c=(0,l.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(i.f,{ref:t,className:(0,d.cn)(c(),r),...a})});u.displayName=i.f.displayName;let f=o.RV,m=a.createContext({}),p=e=>{let{...t}=e;return(0,n.jsx)(m.Provider,{value:{name:t.name},children:(0,n.jsx)(o.Qr,{...t})})},x=()=>{let e=a.useContext(m),t=a.useContext(g),{getFieldState:r,formState:n}=(0,o.Gc)(),s=r(e.name,n);if(!e)throw Error("useFormField should be used within <FormField>");let{id:l}=t;return{id:l,name:e.name,formItemId:"".concat(l,"-form-item"),formDescriptionId:"".concat(l,"-form-item-description"),formMessageId:"".concat(l,"-form-item-message"),...s}},g=a.createContext({}),h=a.forwardRef((e,t)=>{let{className:r,...o}=e,s=a.useId();return(0,n.jsx)(g.Provider,{value:{id:s},children:(0,n.jsx)("div",{ref:t,className:(0,d.cn)("space-y-2",r),...o})})});h.displayName="FormItem";let b=a.forwardRef((e,t)=>{let{className:r,...a}=e,{error:o,formItemId:s}=x();return(0,n.jsx)(u,{ref:t,className:(0,d.cn)(o&&"text-destructive",r),htmlFor:s,...a})});b.displayName="FormLabel";let v=a.forwardRef((e,t)=>{let{...r}=e,{error:a,formItemId:o,formDescriptionId:l,formMessageId:i}=x();return(0,n.jsx)(s.g7,{ref:t,id:o,"aria-describedby":a?"".concat(l," ").concat(i):"".concat(l),"aria-invalid":!!a,...r})});v.displayName="FormControl",a.forwardRef((e,t)=>{let{className:r,...a}=e,{formDescriptionId:o}=x();return(0,n.jsx)("p",{ref:t,id:o,className:(0,d.cn)("text-sm text-muted-foreground",r),...a})}).displayName="FormDescription";let y=a.forwardRef((e,t)=>{let{className:r,children:a,...o}=e,{error:s,formMessageId:l}=x(),i=s?String(null==s?void 0:s.message):a;return i?(0,n.jsx)("p",{ref:t,id:l,className:(0,d.cn)("text-sm font-medium text-destructive",r),...o,children:i}):null});y.displayName="FormMessage"},33929:function(e,t,r){"use strict";r.d(t,{I:function(){return s}});var n=r(75536),a=r(89702),o=r(66585);let s=a.forwardRef((e,t)=>{let{className:r,type:a,...s}=e;return(0,n.jsx)("input",{type:a,className:(0,o.cn)("flex h-10 w-full rounded-md px-3 py-2 text-sm","border border-input bg-background ring-offset-background","file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...s})});s.displayName="Input"},66585:function(e,t,r){"use strict";r.d(t,{a:function(){return i},cn:function(){return s},f:function(){return l}});var n=r(84141),a=r(88014),o=r(47228);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,o.m)((0,a.W)(t))}function l(e){return e.replace(/[A-Z]/g,e=>"_".concat(e.toLowerCase())).replace(/^_/,"")}function i(e){let t=(0,n.d)(e),r=Math.floor(parseFloat(t)).toString().length;return parseFloat(t).toLocaleString("en-US",{maximumFractionDigits:Math.max(0,6-r)})}}},function(e){e.O(0,[9711,2364,9726,8685,5846,7907,6045,4226,5854,9213,8474,1744],function(){return e(e.s=81929)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5004],{33924:function(e,n,r){Promise.resolve().then(r.bind(r,13048)),Promise.resolve().then(r.bind(r,87907)),Promise.resolve().then(r.bind(r,80379)),Promise.resolve().then(r.bind(r,99401)),Promise.resolve().then(r.bind(r,58631)),Promise.resolve().then(r.bind(r,90900)),Promise.resolve().then(r.bind(r,79121)),Promise.resolve().then(r.bind(r,67241)),Promise.resolve().then(r.bind(r,82771)),Promise.resolve().then(r.bind(r,98785)),Promise.resolve().then(r.bind(r,24420)),Promise.resolve().then(r.bind(r,82638)),Promise.resolve().then(r.bind(r,9593)),Promise.resolve().then(r.bind(r,37092)),Promise.resolve().then(r.bind(r,46271)),Promise.resolve().then(r.bind(r,23852)),Promise.resolve().then(r.bind(r,78756)),Promise.resolve().then(r.bind(r,79861)),Promise.resolve().then(r.bind(r,94393)),Promise.resolve().then(r.bind(r,39658)),Promise.resolve().then(r.bind(r,50260)),Promise.resolve().then(r.bind(r,13822)),Promise.resolve().then(r.bind(r,76694)),Promise.resolve().then(r.bind(r,38304)),Promise.resolve().then(r.bind(r,77150)),Promise.resolve().then(r.bind(r,50447)),Promise.resolve().then(r.bind(r,83422)),Promise.resolve().then(r.t.bind(r,80950,23)),Promise.resolve().then(r.t.bind(r,99960,23)),Promise.resolve().then(r.t.bind(r,1887,23)),Promise.resolve().then(r.bind(r,29576)),Promise.resolve().then(r.t.bind(r,80385,23)),Promise.resolve().then(r.bind(r,57253))},83966:function(e,n,r){"use strict";r.d(n,{M:function(){return s}});let s="explorer/observer"},41374:function(e,n,r){"use strict";r.d(n,{f:function(){return i}});var s=r(95674);let i=r.n(s)()("mud:explorer").extend("observer")},57253:function(e,n,r){"use strict";r.d(n,{store:function(){return o}});var s=r(30521),i=r(83966),t=r(41374);let o=(0,s.M)(()=>({writes:{}}));(0,t.f)("listening for relayed messages",i.M),new BroadcastChannel(i.M).addEventListener("message",e=>{let{data:n}=e;"ping"!==n.type&&o.setState(e=>{let r="write"===n.type?{...n,events:[]}:e.writes[n.writeId];return{writes:{...e.writes,[n.writeId]:{...r,type:n.type,hash:"waitForTransactionReceipt"===n.type?n.hash:r.hash,events:[...r.events,n]}}}})})},80385:function(){}},function(e){e.O(0,[8917,1889,1366,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5004],{33924:function(e,n,r){Promise.resolve().then(r.bind(r,13048)),Promise.resolve().then(r.bind(r,87907)),Promise.resolve().then(r.bind(r,80379)),Promise.resolve().then(r.bind(r,99401)),Promise.resolve().then(r.bind(r,58631)),Promise.resolve().then(r.bind(r,90900)),Promise.resolve().then(r.bind(r,79121)),Promise.resolve().then(r.bind(r,67241)),Promise.resolve().then(r.bind(r,82771)),Promise.resolve().then(r.bind(r,98785)),Promise.resolve().then(r.bind(r,24420)),Promise.resolve().then(r.bind(r,82638)),Promise.resolve().then(r.bind(r,9593)),Promise.resolve().then(r.bind(r,37092)),Promise.resolve().then(r.bind(r,46271)),Promise.resolve().then(r.bind(r,23852)),Promise.resolve().then(r.bind(r,78756)),Promise.resolve().then(r.bind(r,79861)),Promise.resolve().then(r.bind(r,94393)),Promise.resolve().then(r.bind(r,39658)),Promise.resolve().then(r.bind(r,50260)),Promise.resolve().then(r.bind(r,13822)),Promise.resolve().then(r.bind(r,76694)),Promise.resolve().then(r.bind(r,38304)),Promise.resolve().then(r.bind(r,77150)),Promise.resolve().then(r.bind(r,50447)),Promise.resolve().then(r.bind(r,83422)),Promise.resolve().then(r.t.bind(r,80950,23)),Promise.resolve().then(r.t.bind(r,99960,23)),Promise.resolve().then(r.t.bind(r,1887,23)),Promise.resolve().then(r.bind(r,29576)),Promise.resolve().then(r.t.bind(r,80385,23)),Promise.resolve().then(r.bind(r,57253))},83966:function(e,n,r){"use strict";r.d(n,{M:function(){return s}});let s="explorer/observer"},41374:function(e,n,r){"use strict";r.d(n,{f:function(){return i}});var s=r(95674);let i=r.n(s)()("mud:explorer").extend("observer")},57253:function(e,n,r){"use strict";r.d(n,{store:function(){return o}});var s=r(30521),i=r(83966),t=r(41374);let o=(0,s.M)(()=>({writes:{}}));(0,t.f)("listening for relayed messages",i.M),new BroadcastChannel(i.M).addEventListener("message",e=>{let{data:n}=e;"ping"!==n.type&&o.setState(e=>{let r="write"===n.type?{...n,events:[]}:e.writes[n.writeId];return{writes:{...e.writes,[n.writeId]:{...r,type:n.type,hash:"waitForTransactionReceipt"===n.type?n.hash:r.hash,events:[...r.events,n]}}}})})},80385:function(){}},function(e){e.O(0,[8917,1889,1366,9726,5674,8685,426,9576,7907,9001,2252,9213,8474,1744],function(){return e(e.s=33924)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8638,2604,7162,285],{73693:function(){}},function(n){n.O(0,[9213,8474,1744],function(){return n(n.s=73693)}),_N_E=n.O()}]);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*
|
|
2
|
+
! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com
|
|
3
|
+
*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:var(--font-inter);font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--font-jetbrains-mono);font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:20 14.3% 4.1%;--card:0 0% 100%;--card-foreground:20 14.3% 4.1%;--popover:0 0% 100%;--popover-foreground:20 14.3% 4.1%;--primary:24.6 95% 53.1%;--primary-foreground:60 9.1% 97.8%;--secondary:60 4.8% 95.9%;--secondary-foreground:24 9.8% 10%;--muted:60 4.8% 95.9%;--muted-foreground:25 5.3% 44.7%;--accent:60 4.8% 95.9%;--accent-foreground:24 9.8% 10%;--destructive:0 84.2% 60.2%;--destructive-foreground:60 9.1% 97.8%;--border:20 5.9% 90%;--input:20 5.9% 90%;--ring:24.6 95% 53.1%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}.dark{--background:20 14.3% 4.1%;--foreground:60 9.1% 97.8%;--card:20 14.3% 4.1%;--card-foreground:60 9.1% 97.8%;--popover:20 14.3% 4.1%;--popover-foreground:60 9.1% 97.8%;--primary:20.5 90.2% 48.2%;--primary-foreground:60 9.1% 97.8%;--secondary:12 6.5% 15.1%;--secondary-foreground:60 9.1% 97.8%;--muted:12 6.5% 15.1%;--muted-foreground:24 5.4% 63.9%;--accent:12 6.5% 15.1%;--accent-foreground:60 9.1% 97.8%;--destructive:0 72.2% 50.6%;--destructive-foreground:60 9.1% 97.8%;--border:12 6.5% 15.1%;--input:12 6.5% 15.1%;--ring:20.5 90.2% 48.2%;--chart-1:220 70% 50%;--chart-2:160 60% 45%;--chart-3:30 80% 55%;--chart-4:280 65% 60%;--chart-5:340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width:1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-1{right:.25rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-3{margin-left:-.75rem;margin-right:-.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.-ml-1{margin-left:-.25rem}.-ml-4{margin-left:-1rem}.-mt-0\.5{margin-top:-.125rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.\!table{display:table!important}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[100px\]{height:100px}.h-\[10px\]{height:10px}.h-\[1px\]{height:1px}.h-\[25px\]{height:25px}.h-\[8px\]{height:8px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.max-h-\[200px\]{max-height:200px}.max-h-\[300px\]{max-height:300px}.max-h-max{max-height:max-content}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-72{width:18rem}.w-\[--radix-popover-trigger-width\]{width:var(--radix-popover-trigger-width)}.w-\[100px\]{width:100px}.w-\[1px\]{width:1px}.w-\[320px\]{width:320px}.w-\[450px\]{width:450px}.w-\[45px\]{width:45px}.w-\[50px\]{width:50px}.w-\[580px\]{width:580px}.w-\[8px\]{width:8px}.w-full{width:100%}.min-w-0{min-width:0}.min-w-\[60px\]{min-width:60px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.caption-bottom{caption-side:bottom}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-1\/2,.translate-x-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.transform,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.select-none{user-select:none}.list-inside{list-style-position:inside}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[auto_1fr_auto\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-6{column-gap:1.5rem}.gap-y-1{row-gap:.25rem}.gap-y-5{row-gap:1.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-4{border-bottom-width:4px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-input{border-color:hsl(var(--input))}.border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity))}.border-primary{border-color:hsl(var(--primary))}.border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white\/15{border-color:hsla(0,0%,100%,.15)}.border-white\/20{border-color:hsla(0,0%,100%,.2)}.border-b-white\/20{border-bottom-color:hsla(0,0%,100%,.2)}.bg-\[\#3d5c8a\]{--tw-bg-opacity:1;background-color:rgb(61 92 138/var(--tw-bg-opacity))}.bg-\[\#4d7cc0\]{--tw-bg-opacity:1;background-color:rgb(77 124 192/var(--tw-bg-opacity))}.bg-\[\#5c9af6\]{--tw-bg-opacity:1;background-color:rgb(92 154 246/var(--tw-bg-opacity))}.bg-\[var\(--color-background\)\]{background-color:var(--color-background)}.bg-accent{background-color:hsl(var(--accent))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-success{--tw-bg-opacity:1;background-color:rgb(52 211 153/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-\[90px\]{padding-right:90px}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-jetbrains-mono)}.text-2xs{font-size:.625rem;line-height:1rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.tracking-\[-1ch\]{letter-spacing:-1ch}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-white\/60{color:hsla(0,0%,100%,.6)}.text-white\/70{color:hsla(0,0%,100%,.7)}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.grayscale{--tw-grayscale:grayscale(100%)}.filter,.grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.duration-200{animation-duration:.2s}.running{animation-play-state:running}.container,body,html{font-family:var(--font-jetbrains-mono)}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\:select-none:after{content:var(--tw-content);user-select:none}.after\:content-\[\'\2026\'\]:after{--tw-content:"…";content:var(--tw-content)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-orange-500:hover{--tw-text-opacity:1;color:rgb(249 115 22/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:border-orange-400{--tw-border-opacity:1;border-color:rgb(251 146 60/var(--tw-border-opacity))}.group:hover .group-hover\:border-orange-500\/30{border-color:rgba(249,115,22,.3)}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[selected\=\'true\'\]\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\=true\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}@media (min-width:640px){.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.sm\:text-5xl{font-size:3rem;line-height:1}}@media (min-width:768px){.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width:1024px){.lg\:-mr-8{margin-right:-2rem}.lg\:ml-8{margin-left:2rem}}@media (min-width:1280px){.xl\:-mr-16{margin-right:-4rem}.xl\:ml-16{margin-left:4rem}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}
|
package/dist/bin/explorer.js
CHANGED
|
@@ -16,8 +16,11 @@ var supportedChains = { anvil, rhodolite, garnet, redstone };
|
|
|
16
16
|
var chainIdToName = Object.fromEntries(
|
|
17
17
|
Object.entries(supportedChains).map(([chainName, chain]) => [chain.id, chainName])
|
|
18
18
|
);
|
|
19
|
+
function isValidChainId(chainId2) {
|
|
20
|
+
return typeof chainId2 === "number" && chainId2 in chainIdToName;
|
|
21
|
+
}
|
|
19
22
|
function validateChainId(chainId2) {
|
|
20
|
-
if (!(
|
|
23
|
+
if (!isValidChainId(chainId2)) {
|
|
21
24
|
throw new Error(`Invalid chain ID. Supported chains are: ${Object.keys(chainIdToName).join(", ")}.`);
|
|
22
25
|
}
|
|
23
26
|
}
|
package/dist/bin/explorer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/bin/explorer.ts","../../src/common.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { rm } from \"fs/promises\";\nimport path from \"path\";\nimport process from \"process\";\nimport { fileURLToPath } from \"url\";\nimport { anvil } from \"viem/chains\";\nimport yargs from \"yargs\";\nimport { ChildProcess, spawn } from \"child_process\";\nimport { validateChainId } from \"../common\";\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = path.dirname(__filename);\nconst packageRoot = path.join(__dirname, \"..\", \"..\");\n\nconst argv = yargs(process.argv.slice(2))\n .options({\n port: {\n alias: \"p\",\n description: \"Port number for the server\",\n type: \"number\",\n default: process.env.PORT || 13690,\n },\n hostname: {\n alias: \"H\",\n description: \"Host for the server\",\n type: \"string\",\n },\n chainId: {\n alias: \"c\",\n description: \"Chain ID\",\n type: \"number\",\n default: process.env.CHAIN_ID || 31337,\n },\n indexerDatabase: {\n alias: \"i\",\n description: \"Path to the indexer database\",\n type: \"string\",\n default: process.env.INDEXER_DATABASE || \"indexer.db\",\n },\n dev: {\n alias: \"D\",\n description: \"Run in development mode\",\n type: \"boolean\",\n default: false,\n },\n })\n .check((argv) => {\n validateChainId(Number(argv.chainId));\n return true;\n })\n .parseSync();\n\nconst { port, hostname, chainId, indexerDatabase, dev } = argv;\nconst indexerDatabasePath = path.join(packageRoot, indexerDatabase);\n\nlet explorerProcess: ChildProcess;\nlet indexerProcess: ChildProcess;\n\nasync function startExplorer() {\n const env = {\n ...process.env,\n CHAIN_ID: chainId.toString(),\n INDEXER_DATABASE: indexerDatabasePath,\n };\n\n if (dev) {\n explorerProcess = spawn(\n \"node_modules/.bin/next\",\n [\"dev\", \"--port\", port.toString(), ...(hostname ? [\"--hostname\", hostname] : [])],\n {\n cwd: packageRoot,\n stdio: \"inherit\",\n env,\n },\n );\n } else {\n explorerProcess = spawn(\"node\", [\".next/standalone/packages/explorer/server.js\"], {\n cwd: packageRoot,\n stdio: \"inherit\",\n env: {\n ...env,\n PORT: port.toString(),\n HOSTNAME: hostname,\n },\n });\n }\n}\n\nasync function startStoreIndexer() {\n if (chainId !== anvil.id) {\n console.log(\"Skipping SQLite indexer for non-anvil chain ID\", chainId);\n return;\n }\n\n await rm(indexerDatabasePath, { recursive: true, force: true });\n\n console.log(\"Running SQLite indexer for anvil...\");\n indexerProcess = spawn(\"sh\", [\"node_modules/.bin/sqlite-indexer\"], {\n cwd: packageRoot,\n stdio: \"inherit\",\n env: {\n DEBUG: \"mud:*\",\n RPC_HTTP_URL: \"http://127.0.0.1:8545\",\n FOLLOW_BLOCK_TAG: \"latest\",\n SQLITE_FILENAME: indexerDatabase,\n ...process.env,\n },\n });\n}\n\nprocess.on(\"exit\", () => {\n indexerProcess?.kill();\n explorerProcess?.kill();\n});\n\nasync function main() {\n await startStoreIndexer();\n await startExplorer();\n}\n\nmain().catch(console.error);\n","import { anvil } from \"viem/chains\";\nimport { garnet, redstone, rhodolite } from \"@latticexyz/common/chains\";\n\nexport const internalNamespaces = [\"world\", \"store\", \"metadata\", \"puppet\", \"erc20-puppet\", \"erc721-puppet\"];\n\nexport const supportedChains = { anvil, rhodolite, garnet, redstone } as const;\nexport type supportedChains = typeof supportedChains;\n\nexport type supportedChainName = keyof supportedChains;\nexport type supportedChainId = supportedChains[supportedChainName][\"id\"];\n\nexport const chainIdToName = Object.fromEntries(\n Object.entries(supportedChains).map(([chainName, chain]) => [chain.id, chainName]),\n) as Record<supportedChainId, supportedChainName>;\n\nexport function
|
|
1
|
+
{"version":3,"sources":["../../src/bin/explorer.ts","../../src/common.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { rm } from \"fs/promises\";\nimport path from \"path\";\nimport process from \"process\";\nimport { fileURLToPath } from \"url\";\nimport { anvil } from \"viem/chains\";\nimport yargs from \"yargs\";\nimport { ChildProcess, spawn } from \"child_process\";\nimport { validateChainId } from \"../common\";\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = path.dirname(__filename);\nconst packageRoot = path.join(__dirname, \"..\", \"..\");\n\nconst argv = yargs(process.argv.slice(2))\n .options({\n port: {\n alias: \"p\",\n description: \"Port number for the server\",\n type: \"number\",\n default: process.env.PORT || 13690,\n },\n hostname: {\n alias: \"H\",\n description: \"Host for the server\",\n type: \"string\",\n },\n chainId: {\n alias: \"c\",\n description: \"Chain ID\",\n type: \"number\",\n default: process.env.CHAIN_ID || 31337,\n },\n indexerDatabase: {\n alias: \"i\",\n description: \"Path to the indexer database\",\n type: \"string\",\n default: process.env.INDEXER_DATABASE || \"indexer.db\",\n },\n dev: {\n alias: \"D\",\n description: \"Run in development mode\",\n type: \"boolean\",\n default: false,\n },\n })\n .check((argv) => {\n validateChainId(Number(argv.chainId));\n return true;\n })\n .parseSync();\n\nconst { port, hostname, chainId, indexerDatabase, dev } = argv;\nconst indexerDatabasePath = path.join(packageRoot, indexerDatabase);\n\nlet explorerProcess: ChildProcess;\nlet indexerProcess: ChildProcess;\n\nasync function startExplorer() {\n const env = {\n ...process.env,\n CHAIN_ID: chainId.toString(),\n INDEXER_DATABASE: indexerDatabasePath,\n };\n\n if (dev) {\n explorerProcess = spawn(\n \"node_modules/.bin/next\",\n [\"dev\", \"--port\", port.toString(), ...(hostname ? [\"--hostname\", hostname] : [])],\n {\n cwd: packageRoot,\n stdio: \"inherit\",\n env,\n },\n );\n } else {\n explorerProcess = spawn(\"node\", [\".next/standalone/packages/explorer/server.js\"], {\n cwd: packageRoot,\n stdio: \"inherit\",\n env: {\n ...env,\n PORT: port.toString(),\n HOSTNAME: hostname,\n },\n });\n }\n}\n\nasync function startStoreIndexer() {\n if (chainId !== anvil.id) {\n console.log(\"Skipping SQLite indexer for non-anvil chain ID\", chainId);\n return;\n }\n\n await rm(indexerDatabasePath, { recursive: true, force: true });\n\n console.log(\"Running SQLite indexer for anvil...\");\n indexerProcess = spawn(\"sh\", [\"node_modules/.bin/sqlite-indexer\"], {\n cwd: packageRoot,\n stdio: \"inherit\",\n env: {\n DEBUG: \"mud:*\",\n RPC_HTTP_URL: \"http://127.0.0.1:8545\",\n FOLLOW_BLOCK_TAG: \"latest\",\n SQLITE_FILENAME: indexerDatabase,\n ...process.env,\n },\n });\n}\n\nprocess.on(\"exit\", () => {\n indexerProcess?.kill();\n explorerProcess?.kill();\n});\n\nasync function main() {\n await startStoreIndexer();\n await startExplorer();\n}\n\nmain().catch(console.error);\n","import { anvil } from \"viem/chains\";\nimport { garnet, redstone, rhodolite } from \"@latticexyz/common/chains\";\n\nexport const internalNamespaces = [\"world\", \"store\", \"metadata\", \"puppet\", \"erc20-puppet\", \"erc721-puppet\"];\n\nexport const supportedChains = { anvil, rhodolite, garnet, redstone } as const;\nexport type supportedChains = typeof supportedChains;\n\nexport type supportedChainName = keyof supportedChains;\nexport type supportedChainId = supportedChains[supportedChainName][\"id\"];\n\nexport const chainIdToName = Object.fromEntries(\n Object.entries(supportedChains).map(([chainName, chain]) => [chain.id, chainName]),\n) as Record<supportedChainId, supportedChainName>;\n\nexport function isValidChainId(chainId: unknown): chainId is supportedChainId {\n return typeof chainId === \"number\" && chainId in chainIdToName;\n}\n\nexport function isValidChainName(name: unknown): name is supportedChainName {\n return typeof name === \"string\" && name in supportedChains;\n}\n\nexport function validateChainId(chainId: unknown): asserts chainId is supportedChainId {\n if (!isValidChainId(chainId)) {\n throw new Error(`Invalid chain ID. Supported chains are: ${Object.keys(chainIdToName).join(\", \")}.`);\n }\n}\n\nexport function validateChainName(name: unknown): asserts name is supportedChainName {\n if (!isValidChainName(name)) {\n throw new Error(`Invalid chain name. Supported chains are: ${Object.keys(supportedChains).join(\", \")}.`);\n }\n}\n"],"mappings":";;;AACA,SAAS,UAAU;AACnB,OAAO,UAAU;AACjB,OAAO,aAAa;AACpB,SAAS,qBAAqB;AAC9B,SAAS,SAAAA,cAAa;AACtB,OAAO,WAAW;AAClB,SAAuB,aAAa;;;ACPpC,SAAS,aAAa;AACtB,SAAS,QAAQ,UAAU,iBAAiB;AAIrC,IAAM,kBAAkB,EAAE,OAAO,WAAW,QAAQ,SAAS;AAM7D,IAAM,gBAAgB,OAAO;AAAA,EAClC,OAAO,QAAQ,eAAe,EAAE,IAAI,CAAC,CAAC,WAAW,KAAK,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC;AACnF;AAEO,SAAS,eAAeC,UAA+C;AAC5E,SAAO,OAAOA,aAAY,YAAYA,YAAW;AACnD;AAMO,SAAS,gBAAgBC,UAAuD;AACrF,MAAI,CAAC,eAAeA,QAAO,GAAG;AAC5B,UAAM,IAAI,MAAM,2CAA2C,OAAO,KAAK,aAAa,EAAE,KAAK,IAAI,IAAI;AAAA,EACrG;AACF;;;ADjBA,IAAM,aAAa,cAAc,YAAY,GAAG;AAChD,IAAM,YAAY,KAAK,QAAQ,UAAU;AACzC,IAAM,cAAc,KAAK,KAAK,WAAW,MAAM,IAAI;AAEnD,IAAM,OAAO,MAAM,QAAQ,KAAK,MAAM,CAAC,CAAC,EACrC,QAAQ;AAAA,EACP,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS,QAAQ,IAAI,QAAQ;AAAA,EAC/B;AAAA,EACA,UAAU;AAAA,IACR,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,EACR;AAAA,EACA,SAAS;AAAA,IACP,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS,QAAQ,IAAI,YAAY;AAAA,EACnC;AAAA,EACA,iBAAiB;AAAA,IACf,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS,QAAQ,IAAI,oBAAoB;AAAA,EAC3C;AAAA,EACA,KAAK;AAAA,IACH,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AACF,CAAC,EACA,MAAM,CAACC,UAAS;AACf,kBAAgB,OAAOA,MAAK,OAAO,CAAC;AACpC,SAAO;AACT,CAAC,EACA,UAAU;AAEb,IAAM,EAAE,MAAM,UAAU,SAAS,iBAAiB,IAAI,IAAI;AAC1D,IAAM,sBAAsB,KAAK,KAAK,aAAa,eAAe;AAElE,IAAI;AACJ,IAAI;AAEJ,eAAe,gBAAgB;AAC7B,QAAM,MAAM;AAAA,IACV,GAAG,QAAQ;AAAA,IACX,UAAU,QAAQ,SAAS;AAAA,IAC3B,kBAAkB;AAAA,EACpB;AAEA,MAAI,KAAK;AACP,sBAAkB;AAAA,MAChB;AAAA,MACA,CAAC,OAAO,UAAU,KAAK,SAAS,GAAG,GAAI,WAAW,CAAC,cAAc,QAAQ,IAAI,CAAC,CAAE;AAAA,MAChF;AAAA,QACE,KAAK;AAAA,QACL,OAAO;AAAA,QACP;AAAA,MACF;AAAA,IACF;AAAA,EACF,OAAO;AACL,sBAAkB,MAAM,QAAQ,CAAC,8CAA8C,GAAG;AAAA,MAChF,KAAK;AAAA,MACL,OAAO;AAAA,MACP,KAAK;AAAA,QACH,GAAG;AAAA,QACH,MAAM,KAAK,SAAS;AAAA,QACpB,UAAU;AAAA,MACZ;AAAA,IACF,CAAC;AAAA,EACH;AACF;AAEA,eAAe,oBAAoB;AACjC,MAAI,YAAYC,OAAM,IAAI;AACxB,YAAQ,IAAI,kDAAkD,OAAO;AACrE;AAAA,EACF;AAEA,QAAM,GAAG,qBAAqB,EAAE,WAAW,MAAM,OAAO,KAAK,CAAC;AAE9D,UAAQ,IAAI,qCAAqC;AACjD,mBAAiB,MAAM,MAAM,CAAC,kCAAkC,GAAG;AAAA,IACjE,KAAK;AAAA,IACL,OAAO;AAAA,IACP,KAAK;AAAA,MACH,OAAO;AAAA,MACP,cAAc;AAAA,MACd,kBAAkB;AAAA,MAClB,iBAAiB;AAAA,MACjB,GAAG,QAAQ;AAAA,IACb;AAAA,EACF,CAAC;AACH;AAEA,QAAQ,GAAG,QAAQ,MAAM;AACvB,kBAAgB,KAAK;AACrB,mBAAiB,KAAK;AACxB,CAAC;AAED,eAAe,OAAO;AACpB,QAAM,kBAAkB;AACxB,QAAM,cAAc;AACtB;AAEA,KAAK,EAAE,MAAM,QAAQ,KAAK;","names":["anvil","chainId","chainId","argv","anvil"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@latticexyz/explorer",
|
|
3
|
-
"version": "2.2.12-main-
|
|
3
|
+
"version": "2.2.12-main-9a43e87db302ec599fd1e97d8b77e2e68831017f",
|
|
4
4
|
"description": "World Explorer is a tool for visually exploring and manipulating the state of worlds",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"yargs": "^17.7.1",
|
|
55
55
|
"zod": "3.23.8",
|
|
56
56
|
"zustand": "^4.3.7",
|
|
57
|
-
"@latticexyz/common": "2.2.12-main-
|
|
58
|
-
"@latticexyz/config": "2.2.12-main-
|
|
59
|
-
"@latticexyz/protocol-parser": "2.2.12-main-
|
|
60
|
-
"@latticexyz/schema-type": "2.2.12-main-
|
|
61
|
-
"@latticexyz/store": "2.2.12-main-
|
|
62
|
-
"@latticexyz/store-indexer": "2.2.12-main-
|
|
63
|
-
"@latticexyz/store-sync": "2.2.12-main-
|
|
64
|
-
"@latticexyz/world": "2.2.12-main-
|
|
57
|
+
"@latticexyz/common": "2.2.12-main-9a43e87db302ec599fd1e97d8b77e2e68831017f",
|
|
58
|
+
"@latticexyz/config": "2.2.12-main-9a43e87db302ec599fd1e97d8b77e2e68831017f",
|
|
59
|
+
"@latticexyz/protocol-parser": "2.2.12-main-9a43e87db302ec599fd1e97d8b77e2e68831017f",
|
|
60
|
+
"@latticexyz/schema-type": "2.2.12-main-9a43e87db302ec599fd1e97d8b77e2e68831017f",
|
|
61
|
+
"@latticexyz/store": "2.2.12-main-9a43e87db302ec599fd1e97d8b77e2e68831017f",
|
|
62
|
+
"@latticexyz/store-indexer": "2.2.12-main-9a43e87db302ec599fd1e97d8b77e2e68831017f",
|
|
63
|
+
"@latticexyz/store-sync": "2.2.12-main-9a43e87db302ec599fd1e97d8b77e2e68831017f",
|
|
64
|
+
"@latticexyz/world": "2.2.12-main-9a43e87db302ec599fd1e97d8b77e2e68831017f"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=4649,exports.ids=[4649],exports.modules={68825:(e,t,r)=>{function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function s(e,...t){if(!(e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function a(e,t){s(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}r.d(t,{Gg:()=>o,J8:()=>a,Rx:()=>n,aI:()=>s,vp:()=>i})},32771:(e,t,r)=>{r.d(t,{kb:()=>p,l1:()=>c,eV:()=>g,GL:()=>l,iA:()=>f,O6:()=>y,np:()=>u,O0:()=>d,Jq:()=>a,hE:()=>b});var n=r(6005),s=r.t(n,2);let i=s&&"object"==typeof s&&"webcrypto"in s?n.webcrypto:s&&"object"==typeof s&&"randomBytes"in s?s:void 0;var o=r(68825);let a=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),l=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),u=(e,t)=>e<<32-t|e>>>t,f=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],h=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function c(e){for(let t=0;t<e.length;t++)e[t]=h(e[t])}function d(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),(0,o.aI)(e),e}function g(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];(0,o.aI)(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let s=e[t];r.set(s,n),n+=s.length}return r}class p{clone(){return this._cloneInto()}}function b(e){let t=t=>e().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function y(e=32){if(i&&"function"==typeof i.getRandomValues)return i.getRandomValues(new Uint8Array(e));if(i&&"function"==typeof i.randomBytes)return i.randomBytes(e);throw Error("crypto.getRandomValues must be defined")}},45386:(e,t,r)=>{r.d(t,{b:()=>s});var n=r(58969);class s extends n.G{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},58969:(e,t,r)=>{r.d(t,{G:()=>i});let n="2.21.19",s={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:n};class i extends Error{constructor(e,t={}){let r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath,a=s.getDocsUrl?.({...t,docsPath:o});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...r?[`Details: ${r}`]:[],...s.version?[`Version: ${s.version}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,r):r?null:t}(this,e)}}},40465:(e,t,r)=>{r.d(t,{$s:()=>i,W_:()=>o,mV:()=>s});var n=r(58969);class s extends n.G{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class i extends n.G{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class o extends n.G{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}},45520:(e,t,r)=>{r.d(t,{J5:()=>s,M6:()=>o,yr:()=>i});var n=r(58969);class s extends n.G{constructor({max:e,min:t,signed:r,size:n,value:s}){super(`Number "${s}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class i extends n.G{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class o extends n.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},26821:(e,t,r)=>{r.d(t,{K:()=>f,x:()=>u});var n=r(45386),s=r(94993),i=r(82073),o=r(37799),a=r(31372);let l=new o.k(8192);function u(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,i.w)((0,s.qX)(r),"bytes"),o=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&n[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let a=`0x${o.join("")}`;return l.set(`${e}.${t}`,a),a}function f(e,t){if(!(0,a.U)(e,{strict:!1}))throw new n.b({address:e});return u(e,t)}},31372:(e,t,r)=>{r.d(t,{U:()=>a});var n=r(37799),s=r(26821);let i=/^0x[a-fA-F0-9]{40}$/,o=new n.k(8192);function a(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(o.has(n))return o.get(n);let a=!!i.test(e)&&(e.toLowerCase()===e||!r||(0,s.x)(e)===e);return o.set(n,a),a}},2703:(e,t,r)=>{r.d(t,{v:()=>n});function n(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},43642:(e,t,r)=>{r.d(t,{gc:()=>i,vk:()=>s});var n=r(40465);function s(e,{dir:t,size:r=32}={}){return"string"==typeof e?i(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.$s({size:e.length,targetSize:r,type:"bytes"});let s=new Uint8Array(r);for(let n=0;n<r;n++){let i="right"===t;s[i?n:r-n-1]=e[i?n:e.length-n-1]}return s}(e,{dir:t,size:r})}function i(e,{dir:t,size:r=32}={}){if(null===r)return e;let s=e.replace("0x","");if(s.length>2*r)throw new n.$s({size:Math.ceil(s.length/2),targetSize:r,type:"hex"});return`0x${s["right"===t?"padEnd":"padStart"](2*r,"0")}`}},2046:(e,t,r)=>{r.d(t,{d:()=>s});var n=r(2703);function s(e){return(0,n.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},72766:(e,t,r)=>{r.d(t,{f:()=>n});function n(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1&&"0"===r["left"===t?e:r.length-e-1].toString();e++)n++;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}},47715:(e,t,r)=>{r.d(t,{Yf:()=>a,ly:()=>u,rR:()=>f,y_:()=>l});var n=r(45520),s=r(2046),i=r(72766),o=r(94993);function a(e,{size:t}){if((0,s.d)(e)>t)throw new n.M6({givenSize:(0,s.d)(e),maxSize:t})}function l(e,t={}){let{signed:r}=t;t.size&&a(e,{size:t.size});let n=BigInt(e);if(!r)return n;let s=(e.length-2)/2;return n<=(1n<<8n*BigInt(s)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*s,"f")}`)-1n}function u(e,t={}){return Number(l(e,t))}function f(e,t={}){let r=(0,o.nr)(e);return t.size&&(a(r,{size:t.size}),r=(0,i.f)(r,{dir:"right"})),new TextDecoder().decode(r)}},94993:(e,t,r)=>{r.d(t,{O0:()=>u,nr:()=>c,qX:()=>d});var n=r(58969),s=r(2703),i=r(43642),o=r(47715),a=r(60048);let l=new TextEncoder;function u(e,t={}){return"number"==typeof e||"bigint"==typeof e?c((0,a.eC)(e,t)):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,o.Yf)(r,{size:t.size}),(0,i.vk)(r,{size:t.size})):r}(e,t):(0,s.v)(e)?c(e,t):d(e,t)}let f={zero:48,nine:57,A:65,F:70,a:97,f:102};function h(e){return e>=f.zero&&e<=f.nine?e-f.zero:e>=f.A&&e<=f.F?e-(f.A-10):e>=f.a&&e<=f.f?e-(f.a-10):void 0}function c(e,t={}){let r=e;t.size&&((0,o.Yf)(r,{size:t.size}),r=(0,i.vk)(r,{dir:"right",size:t.size}));let s=r.slice(2);s.length%2&&(s=`0${s}`);let a=s.length/2,l=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let r=h(s.charCodeAt(t++)),i=h(s.charCodeAt(t++));if(void 0===r||void 0===i)throw new n.G(`Invalid byte sequence ("${s[t-2]}${s[t-1]}" in "${s}").`);l[e]=16*r+i}return l}function d(e,t={}){let r=l.encode(e);return"number"==typeof t.size?((0,o.Yf)(r,{size:t.size}),(0,i.vk)(r,{dir:"right",size:t.size})):r}},60048:(e,t,r)=>{r.d(t,{$G:()=>c,C4:()=>l,NC:()=>a,ci:()=>u,eC:()=>f});var n=r(45520),s=r(43642),i=r(47715);let o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(e,t={}){return"number"==typeof e||"bigint"==typeof e?f(e,t):"string"==typeof e?c(e,t):"boolean"==typeof e?l(e,t):u(e,t)}function l(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,i.Yf)(r,{size:t.size}),(0,s.vk)(r,{size:t.size})):r}function u(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=o[e[t]];let n=`0x${r}`;return"number"==typeof t.size?((0,i.Yf)(n,{size:t.size}),(0,s.vk)(n,{dir:"right",size:t.size})):n}function f(e,t={}){let r;let{signed:i,size:o}=t,a=BigInt(e);o?r=i?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let l="bigint"==typeof r&&i?-r-1n:0;if(r&&a>r||a<l){let t="bigint"==typeof e?"n":"";throw new n.J5({max:r?`${r}${t}`:void 0,min:`${l}${t}`,signed:i,size:o,value:`${e}${t}`})}let u=`0x${(i&&a<0?(1n<<BigInt(8*o))+BigInt(a):a).toString(16)}`;return o?(0,s.vk)(u,{size:o}):u}let h=new TextEncoder;function c(e,t={}){return u(h.encode(e),t)}},82073:(e,t,r)=>{r.d(t,{w:()=>B});var n=r(68825);let s=BigInt(4294967296-1),i=BigInt(32),o=(e,t,r)=>e<<r|t>>>32-r,a=(e,t,r)=>t<<r|e>>>32-r,l=(e,t,r)=>t<<r-32|e>>>64-r,u=(e,t,r)=>e<<r-32|t>>>64-r;var f=r(32771);let h=[],c=[],d=[],g=BigInt(0),p=BigInt(1),b=BigInt(2),y=BigInt(7),w=BigInt(256),$=BigInt(113);for(let e=0,t=p,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],h.push(2*(5*n+r)),c.push((e+1)*(e+2)/2%64);let s=g;for(let e=0;e<7;e++)(t=(t<<p^(t>>y)*$)%w)&b&&(s^=p<<(p<<BigInt(e))-p);d.push(s)}let[v,m]=function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:a,l}=function(e,t=!1){return t?{h:Number(e&s),l:Number(e>>i&s)}:{h:0|Number(e>>i&s),l:0|Number(e&s)}}(e[o],t);[r[o],n[o]]=[a,l]}return[r,n]}(d,!0),x=(e,t,r)=>r>32?l(e,t,r):o(e,t,r),z=(e,t,r)=>r>32?u(e,t,r):a(e,t,r);class A extends f.kb{constructor(e,t,r,s=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=s,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.Rx)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,f.Jq)(this.state)}keccak(){f.iA||(0,f.l1)(this.state32),function(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,s=(t+2)%10,i=r[s],o=r[s+1],a=x(i,o,1)^r[n],l=z(i,o,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=l}let t=e[2],s=e[3];for(let r=0;r<24;r++){let n=c[r],i=x(t,s,n),o=z(t,s,n),a=h[r];t=e[a],s=e[a+1],e[a]=i,e[a+1]=o}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=v[n],e[1]^=m[n]}r.fill(0)}(this.state32,this.rounds),f.iA||(0,f.l1)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.Gg)(this);let{blockLen:t,state:r}=this,s=(e=(0,f.O0)(e)).length;for(let n=0;n<s;){let i=Math.min(t-this.pos,s-n);for(let t=0;t<i;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.Gg)(this,!1),(0,n.aI)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,s=e.length;n<s;){this.posOut>=r&&this.keccak();let i=Math.min(r-this.posOut,s-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.J8)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:s,enableXOF:i}=this;return e||(e=new A(t,r,n,i,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}let I=(0,f.hE)(()=>new A(136,1,32));var k=r(2703),O=r(94993),E=r(60048);function B(e,t){let r=I((0,k.v)(e,{strict:!1})?(0,O.O0)(e):e);return"bytes"===(t||"hex")?r:(0,E.NC)(r)}},37799:(e,t,r)=>{r.d(t,{k:()=>n});class n extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.id=5086,exports.ids=[5086],exports.modules={27575:(e,a,s)=>{Promise.resolve().then(s.bind(s,64646))},64646:(e,a,s)=>{"use strict";s.r(a),s.d(a,{default:()=>ex});var t=s(25166),n=s(38913),r=s(2561),i=s(58287),c=s(41440),l=s(15503),d=s(97246),o=s(74085),f=s(65520);function p(){let{id:e}=(0,o.A)(),{data:a}=(0,d.O)({watch:!0,chainId:e,query:{refetchInterval:1e3}});return t.jsx("div",{className:"inline-block w-[50px]",children:a?(0,t.jsxs)("div",{className:"flex items-center justify-end gap-x-2 text-xs font-extrabold text-green-600",children:[t.jsx("span",{className:"inline-block h-[8px] w-[8px] animate-pulse rounded-full bg-success"}),t.jsx("span",{className:"opacity-70",children:a.toString()})]}):t.jsx(f.O,{className:"h-[10px]"})})}var u=s(49069),m=s(30966),h=s(48233),x=s(49936),b=s(36851),j=s(40911),y=s(32880),g=s(22998),w=s(79846),v=s(98046),N=s(73148),k=s(56356),z=s(73383),C=s(51745),O=s(19471);let A=["0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80","0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d","0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a","0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6","0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a","0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba","0x92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e","0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356","0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97","0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"].map(e=>(0,C.L)(e)),Z=e=>{let a=e!==b.O.id;return A.map((e,s)=>(function({id:e,name:a,accounts:s,disabled:t}){if(!s.length)throw Error("missing accounts");let n=!1;return(0,O.K)(()=>({id:e,name:a,type:"anvil",accounts:s,connect:async()=>(n=!0,{accounts:s.map(e=>e.address),chainId:b.O.id}),async disconnect(){n=!1},getAccounts:async()=>s.map(e=>e.address),getChainId:async()=>b.O.id,getProvider:async()=>(0,z.d)()({chain:b.O}),async isAuthorized(){return!t&&!!n&&!!(await this.getAccounts()).length},async onAccountsChanged(){},async onDisconnect(){},onChainChanged(){}}))})({id:`anvil-${s}`,name:`Anvil #${s+1}`,accounts:[e],disabled:a}))};function I(e){return"anvil"===e.type}var $=s(70454),R=s(49811),_=s(40105),E=s(92484),P=s(69822);let S=P.fC;P.ZA;let U=P.B4,T=k.forwardRef(({className:e,children:a,...s},n)=>(0,t.jsxs)(P.xz,{ref:n,className:(0,m.cn)("flex h-10 w-full items-center justify-between px-3 py-2 text-sm","rounded-md border border-input bg-background ring-offset-background","placeholder:text-muted-foreground","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...s,children:[a,t.jsx(P.JO,{asChild:!0,children:t.jsx(R.Z,{className:"h-4 w-4 opacity-50"})})]}));T.displayName=P.xz.displayName;let D=k.forwardRef(({className:e,...a},s)=>t.jsx(P.u_,{ref:s,className:(0,m.cn)("flex cursor-default items-center justify-center py-1",e),...a,children:t.jsx(_.Z,{className:"h-4 w-4"})}));D.displayName=P.u_.displayName;let W=k.forwardRef(({className:e,...a},s)=>t.jsx(P.$G,{ref:s,className:(0,m.cn)("flex cursor-default items-center justify-center py-1",e),...a,children:t.jsx(R.Z,{className:"h-4 w-4"})}));W.displayName=P.$G.displayName;let Y=k.forwardRef(({className:e,children:a,position:s="popper",...n},r)=>t.jsx(P.h_,{children:(0,t.jsxs)(P.VY,{ref:r,className:(0,m.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden","rounded-md border bg-popover text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0","data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:s,...n,children:[t.jsx(D,{}),t.jsx(P.l_,{className:(0,m.cn)("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),t.jsx(W,{})]})}));Y.displayName=P.VY.displayName,k.forwardRef(({className:e,...a},s)=>t.jsx(P.__,{ref:s,className:(0,m.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...a})).displayName=P.__.displayName;let M=k.forwardRef(({className:e,children:a,...s},n)=>(0,t.jsxs)(P.ck,{ref:n,className:(0,m.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...s,children:[t.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:t.jsx(P.wU,{children:t.jsx(E.Z,{className:"h-4 w-4"})})}),t.jsx(P.eT,{children:a})]}));M.displayName=P.ck.displayName,k.forwardRef(({className:e,...a},s)=>t.jsx(P.Z0,{ref:s,className:(0,m.cn)("-mx-1 my-1 h-px bg-muted",e),...a})).displayName=P.Z0.displayName;var q=s(93920);function B({connector:e}){let a=e.accounts[0].address,{data:s}=(0,g.K)({address:a,query:{refetchInterval:15e3,select:e=>e?.value,enabled:!!a}});return(0,t.jsxs)(M,{value:e.id,className:"font-mono",children:[e.name,void 0!==s&&` (${(0,m.a)(s)} ETH)`," ",a&&(0,t.jsxs)("span",{className:"opacity-70",children:["(",t.jsx(q.a,{hex:a}),")"]})]},a)}function L(){let[e,a]=(0,k.useState)(!1),{connector:s}=(0,w.m)(),{connect:n}=(0,v.$)(),{openConnectModal:r}=(0,j.We)(),i=[...(0,N.Y)().filter(I)];return(0,t.jsxs)(S,{open:e,onOpenChange:a,value:s?.id,onValueChange:e=>{let a=i.find(a=>a.id===e);a&&n({connector:a})},children:[t.jsx($.z,{size:"sm",asChild:!0,children:(0,t.jsxs)(T,{children:[t.jsx(h.Z,{className:"mr-2 inline-block h-4 w-4"}),t.jsx(U,{placeholder:"Connect"})]})}),(0,t.jsxs)(Y,{children:[i.map(e=>t.jsx(B,{connector:e},e.id)),(0,t.jsxs)($.z,{size:"sm",className:"mt-2 w-full font-mono",onClick:()=>{a(!1),r?.()},children:[t.jsx(y.Z,{className:"mr-2 inline-block h-4 w-4"}),"Add wallet"]})]})]})}function F(){let{id:e}=(0,o.A)();return t.jsx(j.NL.Custom,{children:({account:a,chain:s,openAccountModal:n,openChainModal:r,openConnectModal:i,mounted:c})=>t.jsx("div",{className:(0,m.cn)({"pointer-events-none select-none opacity-0":!c}),children:c&&a&&s?s.unsupported?(0,t.jsxs)($.z,{type:"button",size:"sm",onClick:r,children:[t.jsx(x.Z,{className:"mr-2 inline-block h-4 w-4"}),"Wrong network"]}):t.jsx("div",{className:"flex-wrap gap-2",children:(0,t.jsxs)($.z,{type:"button",size:"sm",onClick:n,variant:"secondary",children:[t.jsx(h.Z,{className:"mr-2 inline-block h-4 w-4"}),a.displayName,t.jsx("span",{className:"ml-2 font-normal opacity-70",children:a.displayBalance?` (${a.displayBalance})`:""})]})}):e===b.O.id?t.jsx(L,{}):(0,t.jsxs)($.z,{type:"button",size:"sm",onClick:i,children:[t.jsx(h.Z,{className:"mr-2 inline-block h-4 w-4"})," Connect"]})})})}function G({href:e,children:a}){let s=(0,i.usePathname)(),n=(0,c.g)();return t.jsx(r.default,{href:n(e),className:"group px-3 text-sm font-semibold uppercase",children:t.jsx("span",{className:(0,m.cn)("flex border-b-4 border-transparent pb-3 pt-4 transition group-hover:border-orange-500/30",s===n(e)?"border-orange-500 group-hover:border-orange-400":null),children:a})})}function H(){let{data:e,isFetched:a}=(0,l.b)();return(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"-mx-3 flex",children:[t.jsx(G,{href:"explore",children:"Explore"}),t.jsx(G,{href:"interact",children:"Interact"}),t.jsx(G,{href:"observe",children:"Observe"})]}),a&&!e?.isWorldDeployed&&(0,t.jsxs)("h4",{className:"font-mono text-sm font-bold uppercase opacity-70",children:["Waiting for world deploy ",t.jsx(n.Z,{className:"inline-block h-4 w-4 animate-spin"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-x-4",children:[t.jsx(p,{}),t.jsx(F,{})]})]}),t.jsx(u.Z,{})]})}var K=s(73895),V=s(72785),J=s(34143),Q=s(17167),X=s(38563),ee=s(30950);s(89029);var ea=s(8138),es=s(92273);let et=new ea.S;function en({children:e}){let a=(0,o.A)(),s=(0,k.useMemo)(()=>(0,K._)({chains:[a],connectors:[(0,J.L)(),(0,Q.O)({dappMetadata:{name:"World Explorer"}}),(0,X.T)(),...Z(a.id)],transports:{[a.id]:(0,z.d)()},ssr:!0}),[a]);return t.jsx(V.F,{config:s,children:t.jsx(es.aH,{client:et,children:t.jsx(j.pj,{theme:(0,ee.$)(),children:e})})})}var er=s(34182),ei=s(47754),ec=s(87894),el=s(18447),ed=s(18971),eo=s(3975),ef=s(26058),ep=s(52302),eu=s(59005),em=s(26634);function eh(){let{id:e}=(0,o.A)(),{worldAddress:a}=(0,i.useParams)(),s=(0,ec.Z)(),{data:t}=(0,l.b)(),n=t?.abi,{transactions:r,setTransaction:c,updateTransaction:d}=(0,ep.oR)(em.h),f=(0,ep.oR)(eu.store,e=>e.writes),p=(0,k.useCallback)(async(e,t)=>{let r,i,l,o;if(!n)return;let p=await (0,ed.f)(s,{hash:e});if(p.to!==a)return;try{let e=(0,er.p)({abi:n,data:p.input});r=e.functionName,i=e.args}catch(e){l=e,r=p.input.length>10?p.input.slice(0,10):"unknown"}let u=Object.values(f).find(a=>a.hash===e);c({hash:e,writeId:u?.writeId??e,from:p.from,timestamp:t,transaction:p,status:"pending",functionData:{functionName:r,args:i},value:p.value});try{o=await (0,eo.e)(s,{hash:e})}catch{console.error(`Failed to fetch transaction receipt. Transaction hash: ${e}`)}if(o&&"reverted"===o.status&&r)try{await (0,ef.a)(s,{account:p.from,address:a,abi:n,value:p.value,blockNumber:o.blockNumber,functionName:r,args:i})}catch(e){l=e}let m=o?o.status:"unknown",h=(0,ei.h)({abi:n,logs:o?.logs||[]});d(e,{receipt:o,logs:h,status:m,error:l})},[n,s,a,f,c,d]);return(0,el.C)({onBlock(e){for(let a of e.transactions)r.find(e=>e.hash===a)||p(a,e.timestamp)},chainId:e,pollingInterval:500}),null}function ex({children:e}){return(0,t.jsxs)(en,{children:[t.jsx(H,{}),t.jsx(eh,{}),e]})}},26634:(e,a,s)=>{"use strict";s.d(a,{h:()=>t});let t=(0,s(35517).M)()(e=>({transactions:[],setTransaction:a=>e(e=>({transactions:[...e.transactions,a]})),updateTransaction:(a,s)=>e(e=>({transactions:e.transactions.map(e=>e.hash===a?{...e,...s}:e)}))}))},74085:(e,a,s)=>{"use strict";s.d(a,{A:()=>r});var t=s(58287),n=s(72069);function r(){let{chainName:e}=(0,t.useParams)();return(0,n.Yx)(e),n.df[e]}},15503:(e,a,s)=>{"use strict";s.d(a,{b:()=>i});var t=s(58287),n=s(81390),r=s(72069);function i(){let{chainName:e,worldAddress:a}=(0,t.useParams)();(0,r.Yx)(e);let{id:s}=r.df[e];return(0,n.a)({queryKey:["worldAbi",e,a],queryFn:async()=>{let e=await fetch(`/api/world-abi?${new URLSearchParams({chainId:s.toString(),worldAddress:a})}`);return await e.json()},select:e=>({abi:e.abi||[],isWorldDeployed:e.isWorldDeployed}),refetchInterval:15e3})}},72069:(e,a,s)=>{"use strict";s.d(a,{is:()=>u,M0:()=>f,df:()=>p,wG:()=>m,Yx:()=>h});var t=s(36851),n=s(9209),r=s(14501),i=s(19887),c=s(42191);n.t;var l={...r.g,iconUrls:["https://redstone.xyz/chain-icons/redstone.png"],indexerUrl:"https://indexer.mud.redstonechain.com"},d={...i.T,iconUrls:["https://redstone.xyz/chain-icons/garnet.png"],indexerUrl:"https://indexer.mud.garnetchain.com"},o={...c.i,name:"Rhodolite Devnet",testnet:!0,id:17420,sourceId:17001,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.rhodolitechain.com"]}},iconUrls:["https://redstone.xyz/chain-icons/rhodolite.png"],indexerUrl:"https://indexer.mud.rhodolitechain.com"};let f=["world","store","metadata","puppet","erc20-puppet","erc721-puppet"],p={anvil:t.O,rhodolite:o,garnet:d,redstone:l},u=Object.fromEntries(Object.entries(p).map(([e,a])=>[a.id,e]));function m(e){if(!("number"==typeof e&&e in u))throw Error(`Invalid chain ID. Supported chains are: ${Object.keys(u).join(", ")}.`)}function h(e){if(!("string"==typeof e&&e in p))throw Error(`Invalid chain name. Supported chains are: ${Object.keys(p).join(", ")}.`)}},49069:(e,a,s)=>{"use strict";s.d(a,{Z:()=>c});var t=s(25166),n=s(56356),r=s(4381),i=s(30966);let c=n.forwardRef(({className:e,orientation:a="horizontal",decorative:s=!0,...n},c)=>t.jsx(r.f,{ref:c,decorative:s,orientation:a,className:(0,i.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",e),...n}));c.displayName=r.f.displayName},65520:(e,a,s)=>{"use strict";s.d(a,{O:()=>r});var t=s(25166),n=s(30966);function r({className:e,...a}){return t.jsx("div",{className:(0,n.cn)("animate-pulse rounded-md bg-muted",e),...a})}},93920:(e,a,s)=>{"use strict";s.d(a,{a:()=>n});var t=s(25166);function n({hex:e}){return e.length<=10?t.jsx("span",{children:e}):(0,t.jsxs)("span",{children:[t.jsx("span",{className:"after:select-none after:content-['…']",children:e.slice(0,6)}),t.jsx("span",{className:"tracking-[-1ch] text-transparent",children:e.slice(6,-4)}),e.slice(-4)]})}},37455:(e,a,s)=>{"use strict";s.r(a),s.d(a,{$$typeof:()=>i,__esModule:()=>r,default:()=>c});var t=s(12849);let n=(0,t.createProxy)(String.raw`/home/runner/work/mud/mud/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/layout.tsx`),{__esModule:r,$$typeof:i}=n;n.default;let c=(0,t.createProxy)(String.raw`/home/runner/work/mud/mud/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/layout.tsx#default`)}};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1954],{21111:function(e,t,n){/**
|
|
2
|
-
* @license React
|
|
3
|
-
* use-sync-external-store-shim.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var r=n(89702),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=r.useState,o=r.useEffect,a=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=s({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return a(function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})},[e,n,t]),o(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},94436:function(e,t,n){/**
|
|
10
|
-
* @license React
|
|
11
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var r=n(89702),i=n(53259),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,a=r.useRef,u=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var h=a(null);if(null===h.current){var d={hasValue:!1,value:null};h.current=d}else d=h.current;var f=o(e,(h=c(function(){function e(e){if(!u){if(u=!0,o=e,e=r(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return a=t}return a=e}if(t=a,s(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(o=e,a=n)}var o,a,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]))[0],h[1]);return u(function(){d.hasValue=!0,d.value=f},[f]),l(f),f}},53259:function(e,t,n){e.exports=n(21111)},44666:function(e,t,n){e.exports=n(94436)},20749:function(e,t,n){n.d(t,{JQ:function(){return d}});var r=n(13678),i=n(5631);let s=(e,t,n)=>e&t^~e&n,o=(e,t,n)=>e&t^e&n^t&n;class a extends i.kb{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.GL)(this.buffer)}update(e){(0,r.Gg)(this);let{view:t,buffer:n,blockLen:s}=this,o=(e=(0,i.O0)(e)).length;for(let r=0;r<o;){let a=Math.min(s-this.pos,o-r);if(a===s){let t=(0,i.GL)(e);for(;s<=o-r;r+=s)this.process(t,r);continue}n.set(e.subarray(r,r+a),this.pos),this.pos+=a,r+=a,this.pos===s&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.Gg)(this),(0,r.J8)(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:s,isLE:o}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>s-a&&(this.process(n,0),a=0);for(let e=a;e<s;e++)t[e]=0;!function(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);let i=BigInt(32),s=BigInt(4294967295),o=Number(n>>i&s),a=Number(n&s),u=r?4:0,c=r?0:4;e.setUint32(t+u,o,r),e.setUint32(t+c,a,r)}(n,s-8,BigInt(8*this.length),o),this.process(n,0);let u=(0,i.GL)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=c/4,h=this.get();if(l>h.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)u.setUint32(4*e,h[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:s,pos:o}=this;return e.length=r,e.pos=o,e.finished=i,e.destroyed=s,r%t&&e.buffer.set(n),e}}let u=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),c=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint32Array(64);class h extends a{constructor(){super(64,32,8,!1),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3],this.E=0|c[4],this.F=0|c[5],this.G=0|c[6],this.H=0|c[7]}get(){let{A:e,B:t,C:n,D:r,E:i,F:s,G:o,H:a}=this;return[e,t,n,r,i,s,o,a]}set(e,t,n,r,i,s,o,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(e,t){for(let n=0;n<16;n++,t+=4)l[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=l[e-15],n=l[e-2],r=(0,i.np)(t,7)^(0,i.np)(t,18)^t>>>3,s=(0,i.np)(n,17)^(0,i.np)(n,19)^n>>>10;l[e]=s+l[e-7]+r+l[e-16]|0}let{A:n,B:r,C:a,D:c,E:h,F:d,G:f,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,i.np)(h,6)^(0,i.np)(h,11)^(0,i.np)(h,25))+s(h,d,f)+u[e]+l[e]|0,y=((0,i.np)(n,2)^(0,i.np)(n,13)^(0,i.np)(n,22))+o(n,r,a)|0;p=f,f=d,d=h,h=c+t|0,c=a,a=r,r=n,n=t+y|0}n=n+this.A|0,r=r+this.B|0,a=a+this.C|0,c=c+this.D|0,h=h+this.E|0,d=d+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(n,r,a,c,h,d,f,p)}roundClean(){l.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let d=(0,i.hE)(()=>new h)},43682:function(e,t,n){n.d(t,{j:function(){return s}});var r=n(123),i=n(97966),s=new class extends r.l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},22274:function(e,t,n){n.d(t,{V:function(){return r}});var r=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0),s=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||o()}return n},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}()},41157:function(e,t,n){n.d(t,{N:function(){return s}});var r=n(123),i=n(97966),s=new class extends r.l{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#r}}},63178:function(e,t,n){n.d(t,{A:function(){return a},z:function(){return u}});var r=n(97966),i=n(22274),s=n(17767),o=n(18798),a=class extends o.F{#i;#s;#o;#a;#u;#c;constructor(e){super(),this.#c=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#i=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#i,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#u,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(e,t){let n=(0,r.oE)(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#l({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#i)}isActive(){return this.observers.some(e=>!1!==(0,r.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,r.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#c?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#c=!0,n.signal)})},o={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let e=(0,r.cG)(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return(i(n),this.#c=!1,this.options.persister)?this.options.persister(e,n,this):e(n)}};i(o),this.options.behavior?.onFetch(o,this),this.#s=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#l({type:"fetch",meta:o.fetchOptions?.meta});let a=e=>{(0,s.DV)(e)&&e.silent||this.#l({type:"error",error:e}),(0,s.DV)(e)||(this.#o.config.onError?.(e,this),this.#o.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#a=(0,s.Mz)({initialPromise:t?.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){a(Error(`${this.queryHash} data is undefined`));return}this.setData(e),this.#o.config.onSuccess?.(e,this),this.#o.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(e,t)=>{this.#l({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}),this.#a.start()}#l(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,s.DV)(n)&&n.revert&&this.#s)return{...this.#s,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},18798:function(e,t,n){n.d(t,{F:function(){return i}});var r=n(97966),i=class{#h;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.gcTime)&&(this.#h=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.sk?1/0:3e5))}clearGcTimeout(){this.#h&&(clearTimeout(this.#h),this.#h=void 0)}}},17767:function(e,t,n){n.d(t,{DV:function(){return c},Kw:function(){return a},Mz:function(){return l}});var r=n(43682),i=n(41157),s=n(97966);function o(e){return Math.min(1e3*2**e,3e4)}function a(e){return(e??"online")!=="online"||i.N.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof u}function l(e){let t,n,c,l=!1,h=0,d=!1,f=new Promise((e,t)=>{n=e,c=t}),p=()=>r.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),y=()=>a(e.networkMode)&&e.canRun(),m=r=>{d||(d=!0,e.onSuccess?.(r),t?.(),n(r))},b=n=>{d||(d=!0,e.onError?.(n),t?.(),c(n))},g=()=>new Promise(n=>{t=e=>{(d||p())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,d||e.onContinue?.()}),v=()=>{let t;if(d)return;let n=0===h?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{if(d)return;let n=e.retry??(s.sk?0:3),r=e.retryDelay??o,i="function"==typeof r?r(h,t):r,a=!0===n||"number"==typeof n&&h<n||"function"==typeof n&&n(h,t);if(l||!a){b(t);return}h++,e.onFail?.(h,t),(0,s._v)(i).then(()=>p()?void 0:g()).then(()=>{l?b(t):v()})})};return{promise:f,cancel:t=>{d||(b(new u(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1},canStart:y,start:()=>(y()?v():g().then(v),f)}}},123:function(e,t,n){n.d(t,{l:function(){return r}});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},97966:function(e,t,n){n.d(t,{CN:function(){return C},Ht:function(){return P},KC:function(){return u},Kp:function(){return a},Nc:function(){return c},PN:function(){return o},Rm:function(){return d},SE:function(){return s},VS:function(){return y},VX:function(){return x},X7:function(){return h},Ym:function(){return f},ZT:function(){return i},_v:function(){return v},_x:function(){return l},cG:function(){return I},oE:function(){return w},sk:function(){return r},to:function(){return p}});var r="undefined"==typeof window||"Deno"in globalThis;function i(){}function s(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function l(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==d(o,t.options))return!1}else if(!p(t.queryKey,o))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(!i||i===t.state.fetchStatus)&&(!s||!!s(t))}function h(e,t){let{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(f(t.options.mutationKey)!==f(s))return!1}else if(!p(t.options.mutationKey,s))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function d(e,t){return(t?.queryKeyHashFn||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!p(e[n],t[n]))}function y(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function m(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!g(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(g(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function g(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){return new Promise(t=>{setTimeout(t,e)})}function w(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=m(t)&&m(n);if(r||b(t)&&b(n)){let i=r?t:Object.keys(t),s=i.length,o=r?n:Object.keys(n),a=o.length,u=r?[]:{},c=0;for(let s=0;s<a;s++){let a=r?s:o[s];(!r&&i.includes(a)||r)&&void 0===t[a]&&void 0===n[a]?(u[a]=void 0,c++):(u[a]=e(t[a],n[a]),u[a]===t[a]&&void 0!==t[a]&&c++)}return s===a&&c===s?t:u}return n}(e,t):t}function x(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function P(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var C=Symbol();function I(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==C?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},50693:function(e,t,n){n.d(t,{NL:function(){return o},aH:function(){return a}});var r=n(89702),i=n(75536),s=r.createContext(void 0),o=e=>{let t=r.useContext(s);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},a=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(s.Provider,{value:t,children:n})}},95951:function(e,t,n){let r;n.d(t,{a:function(){return O}});var i=n(97966),s=n(22274),o=n(43682),a=n(123),u=n(63178),c=class extends a.l{constructor(e,t){super(),this.options=t,this.#d=e,this.#f=null,this.bindMethods(),this.setOptions(t)}#d;#p=void 0;#y=void 0;#m=void 0;#b;#g;#f;#v;#w;#x;#P;#C;#I;#E=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#p.addObserver(this),l(this.#p,this.options)?this.#S():this.updateResult(),this.#O())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#p,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#p,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#$(),this.#T(),this.#p.removeObserver(this)}setOptions(e,t){let n=this.options,r=this.#p;if(this.options=this.#d.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,i.Nc)(this.options.enabled,this.#p))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#G(),this.#p.setOptions(this.options),n._defaulted&&!(0,i.VS)(this.options,n)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#p,observer:this});let s=this.hasListeners();s&&d(this.#p,r,this.options,n)&&this.#S(),this.updateResult(t),s&&(this.#p!==r||(0,i.Nc)(this.options.enabled,this.#p)!==(0,i.Nc)(n.enabled,this.#p)||(0,i.KC)(this.options.staleTime,this.#p)!==(0,i.KC)(n.staleTime,this.#p))&&this.#F();let o=this.#R();s&&(this.#p!==r||(0,i.Nc)(this.options.enabled,this.#p)!==(0,i.Nc)(n.enabled,this.#p)||o!==this.#I)&&this.#N(o)}getOptimisticResult(e){let t=this.#d.getQueryCache().build(this.#d,e),n=this.createResult(t,e);return(0,i.VS)(this.getCurrentResult(),n)||(this.#m=n,this.#g=this.options,this.#b=this.#p.state),n}getCurrentResult(){return this.#m}trackResult(e,t){let n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),n}trackProp(e){this.#E.add(e)}getCurrentQuery(){return this.#p}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#d.defaultQueryOptions(e),n=this.#d.getQueryCache().build(this.#d,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#S({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#m))}#S(e){this.#G();let t=this.#p.fetch(this.options,e);return e?.throwOnError||(t=t.catch(i.ZT)),t}#F(){this.#$();let e=(0,i.KC)(this.options.staleTime,this.#p);if(i.sk||this.#m.isStale||!(0,i.PN)(e))return;let t=(0,i.Kp)(this.#m.dataUpdatedAt,e);this.#P=setTimeout(()=>{this.#m.isStale||this.updateResult()},t+1)}#R(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#p):this.options.refetchInterval)??!1}#N(e){this.#T(),this.#I=e,!i.sk&&!1!==(0,i.Nc)(this.options.enabled,this.#p)&&(0,i.PN)(this.#I)&&0!==this.#I&&(this.#C=setInterval(()=>{(this.options.refetchIntervalInBackground||o.j.isFocused())&&this.#S()},this.#I))}#O(){this.#F(),this.#N(this.#R())}#$(){this.#P&&(clearTimeout(this.#P),this.#P=void 0)}#T(){this.#C&&(clearInterval(this.#C),this.#C=void 0)}createResult(e,t){let n;let r=this.#p,s=this.options,o=this.#m,a=this.#b,c=this.#g,h=e!==r?e.state:this.#y,{state:p}=e,y={...p},m=!1;if(t._optimisticResults){let n=this.hasListeners(),i=!n&&l(e,t),o=n&&d(e,r,t,s);(i||o)&&(y={...y,...(0,u.z)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(y.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:v}=y;if(t.select&&void 0!==y.data){if(o&&y.data===a?.data&&t.select===this.#v)n=this.#w;else try{this.#v=t.select,n=t.select(y.data),n=(0,i.oE)(o?.data,n,t),this.#w=n,this.#f=null}catch(e){this.#f=e}}else n=y.data;if(void 0!==t.placeholderData&&void 0===n&&"pending"===v){let e;if(o?.isPlaceholderData&&t.placeholderData===c?.placeholderData)e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#x?.state.data,this.#x):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#f=null}catch(e){this.#f=e}void 0!==e&&(v="success",n=(0,i.oE)(o?.data,e,t),m=!0)}this.#f&&(b=this.#f,n=this.#w,g=Date.now(),v="error");let w="fetching"===y.fetchStatus,x="pending"===v,P="error"===v,C=x&&w,I=void 0!==n;return{status:v,fetchStatus:y.fetchStatus,isPending:x,isSuccess:"success"===v,isError:P,isInitialLoading:C,isLoading:C,data:n,dataUpdatedAt:y.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>h.dataUpdateCount||y.errorUpdateCount>h.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:P&&!I,isPaused:"paused"===y.fetchStatus,isPlaceholderData:m,isRefetchError:P&&I,isStale:f(e,t),refetch:this.refetch}}updateResult(e){let t=this.#m,n=this.createResult(this.#p,this.options);if(this.#b=this.#p.state,this.#g=this.options,void 0!==this.#b.data&&(this.#x=this.#p),(0,i.VS)(n,t))return;this.#m=n;let r={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#E.size)return!0;let r=new Set(n??this.#E);return this.options.throwOnError&&r.add("error"),Object.keys(this.#m).some(e=>this.#m[e]!==t[e]&&r.has(e))})()&&(r.listeners=!0),this.#U({...r,...e})}#G(){let e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#p)return;let t=this.#p;this.#p=e,this.#y=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#O()}#U(e){s.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#m)}),this.#d.getQueryCache().notify({query:this.#p,type:"observerResultsUpdated"})})}};function l(e,t){return!1!==(0,i.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,n){if(!1!==(0,i.Nc)(t.enabled,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&f(e,t)}return!1}function d(e,t,n,r){return(e!==t||!1===(0,i.Nc)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&f(e,n)}function f(e,t){return!1!==(0,i.Nc)(t.enabled,e)&&e.isStaleByTime((0,i.KC)(t.staleTime,e))}var p=n(89702);n(75536);var y=p.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),m=()=>p.useContext(y),b=n(50693),g=p.createContext(!1),v=()=>p.useContext(g);g.Provider;var w=n(11267),x=(e,t)=>{(e.suspense||e.throwOnError)&&!t.isReset()&&(e.retryOnMount=!1)},P=e=>{p.useEffect(()=>{e.clearReset()},[e])},C=e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:i}=e;return t.isError&&!n.isReset()&&!t.isFetching&&i&&(0,w.L)(r,[t.error,i])},I=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},E=(e,t)=>e?.suspense&&t.isPending,S=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function O(e,t){return function(e,t,n){var r,i,o,a;let u=(0,b.NL)(n),c=v(),l=m(),h=u.defaultQueryOptions(e);null===(i=u.getDefaultOptions().queries)||void 0===i||null===(r=i._experimental_beforeQuery)||void 0===r||r.call(i,h),h._optimisticResults=c?"isRestoring":"optimistic",I(h),x(h,l),P(l);let[d]=p.useState(()=>new t(u,h)),f=d.getOptimisticResult(h);if(p.useSyncExternalStore(p.useCallback(e=>{let t=c?()=>void 0:d.subscribe(s.V.batchCalls(e));return d.updateResult(),t},[d,c]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),p.useEffect(()=>{d.setOptions(h,{listeners:!1})},[h,d]),E(h,f))throw S(h,d,l);if(C({result:f,errorResetBoundary:l,throwOnError:h.throwOnError,query:u.getQueryCache().get(h.queryHash)}))throw f.error;return null===(a=u.getDefaultOptions().queries)||void 0===a||null===(o=a._experimental_afterQuery)||void 0===o||o.call(a,h,f),h.notifyOnChangeProps?f:d.trackResult(f)}(e,c,t)}},11267:function(e,t,n){function r(e,t){return"function"==typeof e?e(...t):!!e}function i(){}n.d(t,{L:function(){return r},Z:function(){return i}})},56858:function(e,t,n){n.d(t,{G:function(){return u}});var r,i,s=n(32110);let o=()=>`@wagmi/core@${s.i}`;var a=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class u extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return o()}constructor(e,t={}){super(),r.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});let n=t.cause instanceof u?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof u&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return a(this,r,"m",i).call(this,this,e)}}r=new WeakSet,i=function e(t,n){return n?.(t)?t:t.cause?a(this,r,"m",e).call(this,t.cause,n):t}},33586:function(e,t,n){function r(e){return JSON.stringify(e,(e,t)=>!function(e){if(!i(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(i(n)&&n.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}))}function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){let{_defaulted:t,behavior:n,gcTime:r,initialData:i,initialDataUpdatedAt:s,maxPages:o,meta:a,networkMode:u,queryFn:c,queryHash:l,queryKey:h,queryKeyHashFn:d,retry:f,retryDelay:p,structuralSharing:y,getPreviousPageParam:m,getNextPageParam:b,initialPageParam:g,_optimisticResults:v,enabled:w,notifyOnChangeProps:x,placeholderData:P,refetchInterval:C,refetchIntervalInBackground:I,refetchOnMount:E,refetchOnReconnect:S,refetchOnWindowFocus:O,retryOnMount:$,select:T,staleTime:G,suspense:F,throwOnError:R,config:N,connector:U,query:k,...B}=e;return B}n.d(t,{OP:function(){return s},kq:function(){return r}})},37979:function(e,t,n){n.d(t,{s:function(){return r}});function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let i=e[n];return"function"==typeof i?i:n=>t(e,n)}},32110:function(e,t,n){n.d(t,{i:function(){return r}});let r="2.13.5"},28994:function(e,t,n){n.d(t,{G:function(){return r}});class r extends Error{constructor(e,t={}){let n=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.0.6"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}}},1586:function(e,t,n){n.d(t,{F:function(){return s},Hk:function(){return o},a_:function(){return i}});var r=n(28994);class i extends r.G{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class s extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class o extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}},45888:function(e,t,n){n.d(t,{$r:function(){return i},TT:function(){return o},_D:function(){return u},aZ:function(){return c},jO:function(){return s},zL:function(){return a}});var r=n(28994);class i extends r.G{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class s extends r.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class o extends r.G{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class a extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class u extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class c extends r.G{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},53834:function(e,t,n){n.d(t,{H6:function(){return o},Vs:function(){return s},wn:function(){return i}});var r=n(28994);class i extends r.G{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class s extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class o extends r.G{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}},11427:function(e,t,n){n.d(t,{Dt:function(){return E},EC:function(){return w},LY:function(){return C},N0:function(){return p},PI:function(){return g},QM:function(){return P},SA:function(){return o},Wg:function(){return I},_c:function(){return s},a4:function(){return b},c3:function(){return u},g1:function(){return y},l$:function(){return d},rh:function(){return h},wA:function(){return c}});var r=n(5821);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(e){return i.test(e)}function o(e){return(0,r.Zw)(i,e)}let a=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function u(e){return a.test(e)}function c(e){return(0,r.Zw)(a,e)}let l=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function h(e){return l.test(e)}function d(e){return(0,r.Zw)(l,e)}let f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function p(e){return f.test(e)}function y(e){return(0,r.Zw)(f,e)}let m=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function b(e){return m.test(e)}function g(e){return(0,r.Zw)(m,e)}let v=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function w(e){return v.test(e)}let x=/^receive\(\) external payable$/;function P(e){return x.test(e)}let C=new Set(["memory","indexed","storage","calldata"]),I=new Set(["indexed"]),E=new Set(["calldata","memory","storage"])},71792:function(e,t,n){n.d(t,{D:function(){return h}});var r=n(5821),i=n(1586),s=n(45888),o=n(53834),a=n(28994);class u extends a.G{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}var c=n(11427),l=n(14448);function h(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,c.N0)(n))continue;let i=(0,c.g1)(n);if(!i)throw new o.wn({signature:n,type:"struct"});let s=i.properties.split(";"),a=[],u=s.length;for(let e=0;e<u;e++){let t=s[e].trim();if(!t)continue;let n=(0,l.C$)(t,{type:"struct"});a.push(n)}if(!a.length)throw new o.H6({signature:n});t[i.name]=a}let a={},h=Object.entries(t),f=h.length;for(let e=0;e<f;e++){let[n,o]=h[e];a[n]=function e(t,n,o=new Set){let a=[],c=t.length;for(let h=0;h<c;h++){let c=t[h];if(r.cN.test(c.type))a.push(c);else{let t=(0,r.Zw)(d,c.type);if(!t?.type)throw new s.aZ({abiParameter:c});let{array:h,type:f}=t;if(f in n){if(o.has(f))throw new u({type:f});a.push({...c,type:`tuple${h??""}`,components:e(n[f]??[],n,new Set([...o,f]))})}else if((0,l.uN)(f))a.push(c);else throw new i.F({type:f})}}return a}(o,t)}return a}let d=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},14448:function(e,t,n){n.d(t,{uN:function(){return b},C$:function(){return y},cK:function(){return h},Q4:function(){return m}});var r=n(5821),i=n(1586),s=n(45888),o=n(53834),a=n(28994);class u extends a.G{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let c=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);var l=n(11427);function h(e,t={}){if((0,l.rh)(e)){let n=(0,l.l$)(e);if(!n)throw new o.wn({signature:e,type:"function"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(y(r[e],{modifiers:l.Dt,structs:t,type:"function"}));let a=[];if(n.returns){let e=m(n.returns),r=e.length;for(let n=0;n<r;n++)a.push(y(e[n],{modifiers:l.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:i,outputs:a}}if((0,l.c3)(e)){let n=(0,l.wA)(e);if(!n)throw new o.wn({signature:e,type:"event"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(y(r[e],{modifiers:l.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}if((0,l._c)(e)){let n=(0,l.SA)(e);if(!n)throw new o.wn({signature:e,type:"error"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(y(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}if((0,l.a4)(e)){let n=(0,l.PI)(e);if(!n)throw new o.wn({signature:e,type:"constructor"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(y(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:i}}if((0,l.EC)(e))return{type:"fallback"};if((0,l.QM)(e))return{type:"receive",stateMutability:"payable"};throw new o.Vs({signature:e})}let d=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,f=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^u?int$/;function y(e,t){var n,o,a;let u;let h=(n=t?.type)?`${n}:${e}`:e;if(c.has(h))return c.get(h);let v=r.cN.test(e),w=(0,r.Zw)(v?f:d,e);if(!w)throw new s.jO({param:e});if(w.name&&("address"===(o=w.name)||"bool"===o||"function"===o||"string"===o||"tuple"===o||r.eL.test(o)||r.lh.test(o)||g.test(o)))throw new s.TT({param:e,name:w.name});let x=w.name?{name:w.name}:{},P="indexed"===w.modifier?{indexed:!0}:{},C=t?.structs??{},I={};if(v){u="tuple";let e=m(w.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(y(e[r],{structs:C}));I={components:t}}else if(w.type in C)u="tuple",I={components:C[w.type]};else if(p.test(w.type))u=`${w.type}256`;else if(u=w.type,t?.type!=="struct"&&!b(u))throw new i.Hk({type:u});if(w.modifier){if(!t?.modifiers?.has?.(w.modifier))throw new s.zL({param:e,type:t?.type,modifier:w.modifier});if(l.Dt.has(w.modifier)&&(a=u,!w.array&&"bytes"!==a&&"string"!==a&&"tuple"!==a))throw new s._D({param:e,type:t?.type,modifier:w.modifier})}let E={type:`${u}${w.array??""}`,...x,...P,...I};return c.set(h,E),E}function m(e,t=[],n="",r=0){let i=e.trim().length;for(let s=0;s<i;s++){let i=e[s],o=e.slice(s+1);switch(i){case",":return 0===r?m(o,[...t,n.trim()]):m(o,t,`${n}${i}`,r);case"(":return m(o,t,`${n}${i}`,r+1);case")":return m(o,t,`${n}${i}`,r-1);default:return m(o,t,`${n}${i}`,r)}}if(""===n)return t;if(0!==r)throw new u({current:n,depth:r});return t.push(n.trim()),t}function b(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.eL.test(e)||r.lh.test(e)}let g=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/},5821:function(e,t,n){function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{Zw:function(){return r},cN:function(){return o},eL:function(){return i},lh:function(){return s}});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,s=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,o=/^\(.+?\).*?$/},84639:function(e,t,n){n.d(t,{z:function(){return a}});let r=new Map,i=new Map;async function s(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){let s=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,r),s=t(e,i);return{clear:()=>{n.clear(),s.clear()},promise:n,response:s}}(t),o=s.response.get();if(o&&n>0&&new Date().getTime()-o.created.getTime()<n)return o.data;let a=s.promise.get();a||(a=e(),s.promise.set(a));try{let e=await a;return s.response.set({created:new Date,data:e}),e}finally{s.promise.clear()}}let o=e=>`blockNumber.${e}`;async function a(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await s(()=>e.request({method:"eth_blockNumber"}),{cacheKey:o(e.uid),cacheTime:t}))}},51592:function(e,t,n){n.d(t,{f:function(){return o}});var r=n(91580),i=n(79196),s=n(92323);async function o(e,{blockHash:t,blockNumber:n,blockTag:o,hash:a,index:u}){let c=o||"latest",l=void 0!==n?(0,i.eC)(n):void 0,h=null;if(a?h=await e.request({method:"eth_getTransactionByHash",params:[a]},{dedupe:!0}):t?h=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.eC)(u)]},{dedupe:!0}):(l||c)&&(h=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||c,(0,i.eC)(u)]},{dedupe:!!l})),!h)throw new r.Bh({blockHash:t,blockNumber:n,blockTag:c,hash:a,index:u});return(e.chain?.formatters?.transaction?.format||s.Tr)(h)}},79701:function(e,t,n){n.d(t,{a:function(){return o}});var r=n(19976),i=n(84639),s=n(51592);async function o(e,{hash:t,transactionReceipt:n}){let[o,a]=await Promise.all([(0,r.s)(e,i.z,"getBlockNumber")({}),t?(0,r.s)(e,s.f,"getTransaction")({hash:t}):void 0]),u=n?.blockNumber||a?.blockNumber;return u?o-u+1n:0n}},79617:function(e,t,n){n.d(t,{O:function(){return r}});let r=(0,n(41165).a)({id:31337,name:"Anvil",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}})},53103:function(e,t,n){n.d(t,{t:function(){return r}});let r=(0,n(41165).a)({id:31337,name:"Foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}})},49249:function(e,t,n){n.d(t,{T:function(){return i}});var r=n(76271);let i=(0,n(41165).a)({...r.i,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:17e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"],webSocket:["wss://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}},contracts:{...r.i.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{17e3:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{17e3:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{17e3:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}})},20536:function(e,t,n){n.d(t,{g:function(){return i}});var r=n(76271);let i=(0,n(41165).a)({...r.i,name:"Redstone",id:690,sourceId:1,nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.redstonechain.com"],webSocket:["wss://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz"}},contracts:{...r.i.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:19578329}},l2OutputOracle:{1:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:19578337}},l1StandardBridge:{1:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:19578331}}}})},58378:function(e,t,n){n.d(t,{l:function(){return r}});let r=1},59938:function(e,t,n){n.d(t,{zL:function(){return r}});let r=2n**256n-1n},52964:function(e,t,n){n.d(t,{RX:function(){return o},cJ:function(){return u},m7:function(){return s},xd:function(){return a}});var r=n(58378),i=n(5421);class s extends i.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class o extends i.G{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class a extends i.G{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class u extends i.G{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${r.l}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}},237:function(e,t,n){n.d(t,{Bk:function(){return o},Yl:function(){return s},hJ:function(){return u},mm:function(){return i},pZ:function(){return a}});var r=n(5421);class i extends r.G{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class s extends r.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class o extends r.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class a extends r.G{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class u extends r.G{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}},19431:function(e,t,n){n.d(t,{KD:function(){return o},T_:function(){return i},lQ:function(){return s}});var r=n(5421);class i extends r.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class s extends r.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class o extends r.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},98780:function(e,t,n){n.d(t,{C_:function(){return h},G$:function(){return a},Hh:function(){return o},M_:function(){return s},WF:function(){return d},ZI:function(){return u},cj:function(){return m},cs:function(){return y},dR:function(){return f},pZ:function(){return p},se:function(){return l},vU:function(){return c}});var r=n(33048),i=n(5421);class s extends i.G{constructor({cause:e,message:t}={}){let n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class o extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class a extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
|
|
18
|
-
Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class h extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class d extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class y extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.o)(n)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(y,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class m extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},91580:function(e,t,n){n.d(t,{Bh:function(){return d},JC:function(){return l},Yb:function(){return f},j3:function(){return c},mc:function(){return p},mk:function(){return h},vl:function(){return u},xY:function(){return a},xr:function(){return o}});var r=n(84141),i=n(33048),s=n(5421);function o(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}class a extends s.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class u extends s.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class c extends s.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",o(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class l extends s.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class h extends s.G{constructor(e,{account:t,docsPath:n,chain:s,data:a,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:d,to:f,value:p}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",o({chain:s&&`${s?.name} (id: ${s?.id})`,from:t?.address,to:f,value:void 0!==p&&`${(0,r.d)(p)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:u,gasPrice:void 0!==c&&`${(0,i.o)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==h&&`${(0,i.o)(h)} gwei`,nonce:d})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class d extends s.G{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let s="Transaction";n&&void 0!==i&&(s=`Transaction at block time "${n}" at index "${i}"`),e&&void 0!==i&&(s=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(s=`Transaction at block number "${t}" at index "${i}"`),r&&(s=`Transaction with hash "${r}"`),super(`${s} could not be found.`,{name:"TransactionNotFoundError"})}}class f extends s.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class p extends s.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},76271:function(e,t,n){n.d(t,{i:function(){return p}});var r=n(78902),i=n(23569),s=n(92323),o=n(36935);let a={block:(0,i.G)({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=s.Tr(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?r.y_(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:(0,s.y_)({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,r.y_)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:(0,o.dI)({format:e=>({l1GasPrice:e.l1GasPrice?(0,r.y_)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,r.y_)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,r.y_)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})};var u=n(47929),c=n(39585),l=n(67833),h=n(79196),d=n(18871),f=n(57805);let p={contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:a,serializers:{transaction:function(e,t){return"deposit"===e.type||void 0!==e.sourceHash?function(e){!function(e){let{from:t,to:n}=e;if(t&&!(0,c.U)(t))throw new u.b({address:t});if(n&&!(0,c.U)(n))throw new u.b({address:n})}(e);let{sourceHash:t,data:n,from:r,gas:i,isSystemTx:s,mint:o,to:a,value:f}=e,p=[t,r,a??"0x",o?(0,h.NC)(o):"0x",f?(0,h.NC)(f):"0x",i?(0,h.NC)(i):"0x",s?"0x1":"0x",n??"0x"];return(0,l.SM)(["0x7e",(0,d.LV)(p)])}(e):(0,f.D)(e,t)}}}},75022:function(e,t,n){n.d(t,{P:function(){return s}});var r=n(22285),i=n(79196);function s(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),s="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,r.nr)(e)):e.blobs,o=[];for(let e of s)o.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===n?o:o.map(e=>(0,i.ci)(e))}},60768:function(e,t,n){n.d(t,{y:function(){return s}});var r=n(22285),i=n(79196);function s(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),s="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,r.nr)(e)):e.blobs,o="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,r.nr)(e)):e.commitments,a=[];for(let e=0;e<s.length;e++){let n=s[e],r=o[e];a.push(Uint8Array.from(t.computeBlobKzgProof(n,r)))}return"bytes"===n?a:a.map(e=>(0,i.ci)(e))}},42641:function(e,t,n){n.d(t,{C:function(){return a}});var r=n(79196),i=n(20749),s=n(82442),o=n(22285);function a(e){let{commitments:t,version:n}=e,a=e.to??("string"==typeof t[0]?"hex":"bytes"),u=[];for(let e of t)u.push(function(e){let{commitment:t,version:n=1}=e,a=e.to??("string"==typeof t?"hex":"bytes"),u=function(e,t){let n=(0,i.JQ)((0,s.v)(e,{strict:!1})?(0,o.O0)(e):e);return"bytes"===(t||"hex")?n:(0,r.NC)(n)}(t,"bytes");return u.set([n],0),"bytes"===a?u:(0,r.ci)(u)}({commitment:e,to:a,version:n}));return u}},81342:function(e,t,n){n.d(t,{j:function(){return l}});var r=n(75022),i=n(60768),s=n(52964),o=n(17904),a=n(69314),u=n(22285),c=n(79196);function l(e){let{data:t,kzg:n,to:l}=e,h=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),n="string"==typeof e.data?(0,u.nr)(e.data):e.data,r=(0,a.d)(n);if(!r)throw new s.RX;if(r>761855)throw new s.m7({maxSize:761855,size:r});let i=[],l=!0,h=0;for(;l;){let e=(0,o.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let r=n.slice(h,h+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),l=!1;break}t++,h+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,c.ci)(e.bytes))}({data:t,to:l}),d=e.commitments??(0,r.P)({blobs:h,kzg:n,to:l}),f=e.proofs??(0,i.y)({blobs:h,commitments:d,kzg:n,to:l}),p=[];for(let e=0;e<h.length;e++)p.push({blob:h[e],commitment:d[e],proof:f[e]});return p}},41165:function(e,t,n){n.d(t,{a:function(){return r}});function r(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}},17904:function(e,t,n){n.d(t,{q:function(){return s}});var r=n(19431);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new r.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r.T_({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new r.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function s(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(i);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},67833:function(e,t,n){function r(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}n.d(t,{SM:function(){return i},zo:function(){return r}})},82278:function(e,t,n){n.d(t,{T4:function(){return c},p5:function(){return l},tP:function(){return o}});var r=n(30582),i=n(82442),s=n(69314);function o(e,t,n,{strict:r}={}){return(0,i.v)(e,{strict:!1})?l(e,t,n,{strict:r}):c(e,t,n,{strict:r})}function a(e,t){if("number"==typeof t&&t>0&&t>(0,s.d)(e)-1)throw new r.mV({offset:t,position:"start",size:(0,s.d)(e)})}function u(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,s.d)(e)!==n-t)throw new r.mV({offset:n,position:"end",size:(0,s.d)(e)})}function c(e,t,n,{strict:r}={}){a(e,t);let i=e.slice(t,n);return r&&u(i,t,n),i}function l(e,t,n,{strict:r}={}){a(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&u(i,t,n),i}},18871:function(e,t,n){n.d(t,{LV:function(){return a}});var r=n(5421),i=n(17904),s=n(22285),o=n(79196);function a(e,t="hex"){let n=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),n=u(t);return{length:t<=55?1+t:1+n+t,encode(r){for(let{encode:i}of(t<=55?r.pushByte(192+t):(r.pushByte(247+n),1===n?r.pushUint8(t):2===n?r.pushUint16(t):3===n?r.pushUint24(t):r.pushUint32(t)),e))i(r)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,s.nr)(e):e,n=u(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),r=(0,i.q)(new Uint8Array(n.length));return(n.encode(r),"hex"===t)?(0,o.ci)(r.bytes):r.bytes}function u(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new r.G("Length is too large.")}},23569:function(e,t,n){n.d(t,{G:function(){return o},Z:function(){return s}});var r=n(18482),i=n(92323);function s(e){let t=e.transactions?.map(e=>"string"==typeof e?e:i.Tr(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let o=(0,r.$)("block",s)},18482:function(e,t,n){n.d(t,{$:function(){return r}});function r(e,t){return({exclude:n,format:r})=>({exclude:n,format:e=>{let i=t(e);if(n)for(let e of n)delete i[e];return{...i,...r(e)}},type:e})}},1167:function(e,t,n){n.d(t,{U:function(){return r}});function r(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}},92323:function(e,t,n){n.d(t,{Tr:function(){return o},c8:function(){return s},y_:function(){return a}});var r=n(78902),i=n(18482);let s={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function o(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,r.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,r.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?s[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({contractAddress:e.address,r:e.r,s:e.s,chainId:Number(e.chainId),nonce:Number(e.nonce),...void 0!==e.yParity?{yParity:Number(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Number(e.v)}:{}}))),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}let a=(0,i.$)("transaction",o)},36935:function(e,t,n){n.d(t,{dI:function(){return c},fA:function(){return u}});var r=n(78902),i=n(18482),s=n(1167),o=n(92323);let a={"0x0":"reverted","0x1":"success"};function u(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,s.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,r.ly)(e.transactionIndex):null,status:e.status?a[e.status]:null,type:e.type?o.c8[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}let c=(0,i.$)("transactionReceipt",u)},19976:function(e,t,n){n.d(t,{s:function(){return r}});function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let i=e[n];return"function"==typeof i?i:n=>t(e,n)}},74641:function(e,t,n){n.d(t,{l:function(){return i}});var r=n(91580);function i(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new r.j3({transaction:e})}},57805:function(e,t,n){n.d(t,{D:function(){return S},d:function(){return O}});var r=n(91580),i=n(75022),s=n(60768),o=n(42641),a=n(81342),u=n(67833),c=n(59418),l=n(79196),h=n(18871),d=n(58378),f=n(59938),p=n(47929),y=n(5421),m=n(52964),b=n(237),g=n(98780),v=n(39585),w=n(69314),x=n(82278),P=n(78902);function C(e){let{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new b.hJ({chainId:t});if(i&&!(0,v.U)(i))throw new p.b({address:i});if(r&&r>f.zL)throw new g.Hh({maxFeePerGas:r});if(n&&r&&n>r)throw new g.cs({maxFeePerGas:r,maxPriorityFeePerGas:n})}var I=n(74641);function E(e){if(!e||0===e.length)return[];let t=[];for(let n=0;n<e.length;n++){let{address:i,storageKeys:s}=e[n];for(let e=0;e<s.length;e++)if(s[e].length-2!=64)throw new r.JC({storageKey:s[e]});if(!(0,v.U)(i,{strict:!1}))throw new p.b({address:i});t.push([i,s])}return t}function S(e,t){let n=(0,I.l)(e);return"eip1559"===n?function(e,t){let{chainId:n,gas:r,nonce:i,to:s,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:d,data:f}=e;C(e);let p=E(d),y=[(0,l.NC)(n),i?(0,l.NC)(i):"0x",c?(0,l.NC)(c):"0x",a?(0,l.NC)(a):"0x",r?(0,l.NC)(r):"0x",s??"0x",o?(0,l.NC)(o):"0x",f??"0x",p,...O(e,t)];return(0,u.SM)(["0x02",(0,h.LV)(y)])}(e,t):"eip2930"===n?function(e,t){let{chainId:n,gas:r,data:i,nonce:s,to:o,value:a,accessList:c,gasPrice:d}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:s}=e;if(t<=0)throw new b.hJ({chainId:t});if(s&&!(0,v.U)(s))throw new p.b({address:s});if(n||i)throw new y.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>f.zL)throw new g.Hh({maxFeePerGas:r})}(e);let m=E(c),w=[(0,l.NC)(n),s?(0,l.NC)(s):"0x",d?(0,l.NC)(d):"0x",r?(0,l.NC)(r):"0x",o??"0x",a?(0,l.NC)(a):"0x",i??"0x",m,...O(e,t)];return(0,u.SM)(["0x01",(0,h.LV)(w)])}(e,t):"eip4844"===n?function(e,t){let{chainId:n,gas:r,nonce:c,to:f,value:p,maxFeePerBlobGas:y,maxFeePerGas:b,maxPriorityFeePerGas:g,accessList:v,data:I}=e;!function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new m.RX;for(let e of t){let t=(0,w.d)(e),n=(0,P.ly)((0,x.tP)(e,0,1));if(32!==t)throw new m.xd({hash:e,size:t});if(n!==d.l)throw new m.cJ({hash:e,version:n})}}C(e)}(e);let S=e.blobVersionedHashes,$=e.sidecars;if(e.blobs&&(void 0===S||void 0===$)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,l.ci)(e)),n=e.kzg,r=(0,i.P)({blobs:t,kzg:n});if(void 0===S&&(S=(0,o.C)({commitments:r})),void 0===$){let e=(0,s.y)({blobs:t,commitments:r,kzg:n});$=(0,a.j)({blobs:t,commitments:r,proofs:e})}}let T=E(v),G=[(0,l.NC)(n),c?(0,l.NC)(c):"0x",g?(0,l.NC)(g):"0x",b?(0,l.NC)(b):"0x",r?(0,l.NC)(r):"0x",f??"0x",p?(0,l.NC)(p):"0x",I??"0x",T,y?(0,l.NC)(y):"0x",S??[],...O(e,t)],F=[],R=[],N=[];if($)for(let e=0;e<$.length;e++){let{blob:t,commitment:n,proof:r}=$[e];F.push(t),R.push(n),N.push(r)}return(0,u.SM)(["0x03",$?(0,h.LV)([G,F,R,N]):(0,h.LV)(G)])}(e,t):"eip7702"===n?function(e,t){let{authorizationList:n,chainId:r,gas:i,nonce:s,to:o,value:a,maxFeePerGas:c,maxPriorityFeePerGas:d,accessList:f,data:y}=e;!function(e){let{authorizationList:t}=e;if(t)for(let e of t){let{contractAddress:t,chainId:n}=e;if(!(0,v.U)(t))throw new p.b({address:t});if(n<=0)throw new b.hJ({chainId:n})}C(e)}(e);let m=E(f),g=function(e){if(!e||0===e.length)return[];let t=[];for(let n of e){let{contractAddress:e,chainId:r,nonce:i,...s}=n;t.push([(0,l.NC)(r),e,i?(0,l.NC)(i):"0x",...O({},s)])}return t}(n);return(0,u.SM)(["0x04",(0,h.LV)([(0,l.NC)(r),s?(0,l.NC)(s):"0x",d?(0,l.NC)(d):"0x",c?(0,l.NC)(c):"0x",i?(0,l.NC)(i):"0x",o??"0x",a?(0,l.NC)(a):"0x",y??"0x",m,g,...O(e,t)])])}(e,t):function(e,t){let{chainId:n=0,gas:i,data:s,nonce:o,to:a,value:u,gasPrice:d}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:s}=e;if(s&&!(0,v.U)(s))throw new p.b({address:s});if(void 0!==t&&t<=0)throw new b.hJ({chainId:t});if(n||i)throw new y.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>f.zL)throw new g.Hh({maxFeePerGas:r})}(e);let m=[o?(0,l.NC)(o):"0x",d?(0,l.NC)(d):"0x",i?(0,l.NC)(i):"0x",a??"0x",u?(0,l.NC)(u):"0x",s??"0x"];if(t){let e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(n>0)return BigInt(2*n)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new r.vl({v:t.v});return e})(),i=(0,c.f)(t.r),s=(0,c.f)(t.s);m=[...m,(0,l.NC)(e),"0x00"===i?"0x":i,"0x00"===s?"0x":s]}else n>0&&(m=[...m,(0,l.NC)(n),"0x","0x"]);return(0,h.LV)(m)}(e,t)}function O(e,t){let n=t??e,{v:r,yParity:i}=n;if(void 0===n.r||void 0===n.s||void 0===r&&void 0===i)return[];let s=(0,c.f)(n.r),o=(0,c.f)(n.s);return["number"==typeof i?i?(0,l.NC)(1):"0x":0n===r?"0x":1n===r?(0,l.NC)(1):27n===r?"0x":(0,l.NC)(1),"0x00"===s?"0x":s,"0x00"===o?"0x":o]}},33048:function(e,t,n){n.d(t,{o:function(){return s}});var r=n(84897),i=n(18583);function s(e,t="wei"){return(0,i.b)(e,r.Zn[t])}},1405:function(e,t,n){n.d(t,{V:function(){return a},F:function(){return u}});var r=n(89702);let i=!1;async function s(e,t={}){let n;if(i)return[];i=!0,e.setState(e=>({...e,status:e.current?"reconnecting":"connecting"}));let r=[];if(t.connectors?.length)for(let n of t.connectors){let t;t="function"==typeof n?e._internal.connectors.setup(n):n,r.push(t)}else r.push(...e.connectors);try{n=await e.storage?.getItem("recentConnectorId")}catch{}let s={};for(let[,t]of e.state.connections)s[t.connector.id]=1;n&&(s[n]=0);let o=Object.keys(s).length>0?[...r].sort((e,t)=>(s[e.id]??10)-(s[t.id]??10)):r,a=!1,u=[],c=[];for(let t of o){let n=await t.getProvider().catch(()=>void 0);if(!n||c.some(e=>e===n)||!await t.isAuthorized())continue;let r=await t.connect({isReconnecting:!0}).catch(()=>null);r&&(t.emitter.off("connect",e._internal.events.connect),t.emitter.on("change",e._internal.events.change),t.emitter.on("disconnect",e._internal.events.disconnect),e.setState(e=>{let n=new Map(a?e.connections:new Map).set(t.uid,{accounts:r.accounts,chainId:r.chainId,connector:t});return{...e,current:a?e.current:t.uid,connections:n}}),u.push({accounts:r.accounts,chainId:r.chainId,connector:t}),c.push(n),a=!0)}return("reconnecting"===e.state.status||"connecting"===e.state.status)&&(a?e.setState(e=>({...e,status:"connected"})):e.setState(e=>({...e,connections:new Map,current:null,status:"disconnected"}))),i=!1,u}function o(e){let{children:t,config:n,initialState:i,reconnectOnMount:o=!0}=e,{onMount:a}=function(e,t){let{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(e=>e.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){if(e._internal.ssr){await e._internal.store.persist.rehydrate();let t=e._internal.mipd?.getProviders().map(e._internal.connectors.providerDetailToConnector).map(e._internal.connectors.setup);e._internal.connectors.setState(e=>[...e,...t??[]])}r?s(e):e.storage&&e.setState(e=>({...e,connections:new Map}))}}}(n,{initialState:i,reconnectOnMount:o});n._internal.ssr||a();let u=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{if(u.current&&n._internal.ssr)return a(),()=>{u.current=!1}},[]),t}let a=(0,r.createContext)(void 0);function u(e){let{children:t,config:n}=e;return(0,r.createElement)(o,e,(0,r.createElement)(a.Provider,{value:n},t))}},368:function(e,t,n){function r(e){return e.state.chainId}n.d(t,{x:function(){return o}});var i=n(89702),s=n(97869);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.Z)(e);return(0,i.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(e=>e.chainId,n)})(t,{onChange:e}),()=>r(t),()=>r(t))}},97869:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(89702),i=n(1405),s=n(56858);let o=()=>"wagmi@2.12.11";class a extends s.G{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return o()}}class u extends a{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null!==(e=t.config)&&void 0!==e?e:(0,r.useContext)(i.V);if(!n)throw new u;return n}},42473:function(e,t,n){n.d(t,{aM:function(){return s}});var r=n(95951),i=n(33586);function s(e){let t=(0,r.a)({...e,queryKeyHashFn:i.kq});return t.queryKey=e.queryKey,t}}}]);
|