@orbs-network/spot-react 0.0.57 → 0.0.58

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.
@@ -1,4 +1,4 @@
1
- (function(R,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],B):(R=typeof globalThis<"u"?globalThis:R||self,B(R.SpotReact={},R.jsxRuntime,R.React,R.ReactDOM))})(this,(function(R,B,N,Ea){"use strict";var MW=Object.defineProperty;var U5=R=>{throw TypeError(R)};var NW=(R,B,N)=>B in R?MW(R,B,{enumerable:!0,configurable:!0,writable:!0,value:N}):R[B]=N;var Yu=(R,B,N)=>NW(R,typeof B!="symbol"?B+"":B,N),kh=(R,B,N)=>B.has(R)||U5("Cannot "+N);var M=(R,B,N)=>(kh(R,B,"read from private field"),N?N.call(R):B.get(R)),le=(R,B,N)=>B.has(R)?U5("Cannot add the same private member more than once"):B instanceof WeakSet?B.add(R):B.set(R,N),J=(R,B,N,Ea)=>(kh(R,B,"write to private field"),Ea?Ea.call(R,N):B.set(R,N),N),Ae=(R,B,N)=>(kh(R,B,"access private method"),N);var Ku=(R,B,N,Ea)=>({set _(Xu){J(R,B,Xu,N)},get _(){return M(R,B,Ea)}});var fn,da,m5,pa,gs,go,b5,xo,xs,wo,y5,fa,g5,ha,vo,Br,ma,Bt,xc,ba,qr,Yn,x5,sr,Oe,wc,qt,ya,Eo,Gn,ws,vc,ko,Co,ga,xa,vs,To,We,Cc,Ch,Th,Sh,Ah,Ph,Ih,Bh,O5,w5,Ec,hn,Yt,wa,mn,Ss,v5,jn,Yr,kc,E5,Vn,Es,ar,Wn,qn,Zu,Fh,k5,bn,C5,ht,ks,Cs,So,Ao,Ts,Po,Io,T5;function Xu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const xt=Xu(N),_t={SpookySwap:{chainName:"ftm",chainId:250,twapVersion:4,twapAddress:"0xd3B290FEB04E353d1821bc0a12397FdEa9a846C0",lensAddress:"0x0221EfDF1Fd3212AF87F23cceB7693a65fAF1d7f",takers:["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913","0x504f6E10173249dD22491829D98862Cf81DeF79E"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"SpookySwap",partner:"Orbs:TWAP:SpookySwap",exchangeAddress:"0xdF7CCd5fc7077E9de5f27a7b7bfDC837c82f8496",exchangeType:"ExchangeV2",pathfinderKey:""},SpookySwapSonic:{chainName:"sonic",chainId:146,twapVersion:4,twapAddress:"0x8963992816b4EafE5a22b7DB2A99513c18be9afA",lensAddress:"0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D",takers:["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913","0x504f6E10173249dD22491829D98862Cf81DeF79E"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"SpookySwapSonic",partner:"Orbs:TWAP:SpookySwap",exchangeAddress:"0x6699bE3aF75e5c1B807b1031dBde6dA9A67739F3",exchangeType:"ExchangeV2",pathfinderKey:""},QuickSwap:{chainName:"poly",chainId:137,twapVersion:4,twapAddress:"0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4",lensAddress:"0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"QuickSwap",partner:"Orbs:TWAP:QuickSwap",exchangeAddress:"0x8FCc245209bE85C49D738D0CE5613F74E5d91E86",exchangeType:"ParaswapExchange",pathfinderKey:"QuickSwap,QuickSwapV3"},QuickSwapBase:{chainName:"base",chainId:8453,twapVersion:4,twapAddress:"0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55",lensAddress:"0x6313188c1909b161074D62E43105faC9B756A23e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"QuickSwap",partner:"Orbs:TWAP:QuickSwap",exchangeAddress:"0xb7a3d74895bfd3aff6780525e36d79fcf26a895f",exchangeType:"ExchangeV2",pathfinderKey:""},Chronos:{chainName:"arb",chainId:42161,twapVersion:4,twapAddress:"0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3",lensAddress:"0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"Chronos",partner:"Orbs:TWAP:Chronos",exchangeAddress:"0x0178e50adAF3b925F27aC518FCd952CE7F9A3B36",exchangeType:"ExchangeV2",pathfinderKey:"Chronos Stable,Chronos Volatile,Chronos V3"},BaseSwap:{chainName:"base",chainId:8453,twapVersion:4,twapAddress:"0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55",lensAddress:"0x6313188c1909b161074D62E43105faC9B756A23e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"BaseSwap",partner:"Orbs:TWAP:BaseSwap",exchangeAddress:"0xAca3155c17530C4aA96746F226fcC049658490d2",exchangeType:"ExchangeV2",pathfinderKey:"BaseSwap,BaseSwapX"},Arbidex:{chainName:"arb",chainId:42161,twapVersion:4,twapAddress:"0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3",lensAddress:"0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"Arbidex",partner:"Orbs:TWAP:Arbidex",exchangeAddress:"0x49d21052f4695d16C7cce6eF561301Aa4d840420",exchangeType:"ExchangeV2",pathfinderKey:"Arbidex Classic,Arbidex Quantum"},Thena:{chainName:"bsc",chainId:56,twapVersion:4,twapAddress:"0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994",lensAddress:"0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"Thena",partner:"Orbs:TWAP:Thena",exchangeAddress:"0x2B2fABDbfa4a15da0d351F947C14F4520db0bDc1",exchangeType:"ExchangeV2",pathfinderKey:"43,47"},PancakeSwap:{chainName:"bsc",chainId:56,twapVersion:4,twapAddress:"0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994",lensAddress:"0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"PancakeSwap",partner:"Orbs:TWAP:PancakeSwap",exchangeAddress:"0x1A2bb6B75D58b740d88413ef4840D6fa3F637940",exchangeType:"P2Exchange",pathfinderKey:""},PancakeSwapArbitrum:{chainName:"arb",chainId:42161,twapVersion:4,twapAddress:"0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3",lensAddress:"0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"PancakeSwap",partner:"Orbs:TWAP:PancakeSwap",exchangeAddress:"0xb37cB9A058c03081Ae6EF934313588cD53d408e7",exchangeType:"P2Exchange",pathfinderKey:""},PancakeSwapBase:{chainName:"base",chainId:8453,twapVersion:4,twapAddress:"0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55",lensAddress:"0x6313188c1909b161074D62E43105faC9B756A23e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"PancakeSwap",partner:"Orbs:TWAP:PancakeSwap",exchangeAddress:"0xb37cB9A058c03081Ae6EF934313588cD53d408e7",exchangeType:"P2Exchange",pathfinderKey:""},PancakeSwapLinea:{chainName:"linea",chainId:59144,twapVersion:4,twapAddress:"0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78",lensAddress:"0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:100,name:"PancakeSwap",partner:"Orbs:TWAP:PancakeSwap",exchangeAddress:"0xb37cB9A058c03081Ae6EF934313588cD53d408e7",exchangeType:"P2Exchange",pathfinderKey:""},Lynex:{chainName:"linea",chainId:59144,twapVersion:4,twapAddress:"0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78",lensAddress:"0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:100,name:"Lynex",partner:"Orbs:TWAP:Lynex",exchangeAddress:"0x04C06C96d7D19977156016DD408B5992af0570a2",exchangeType:"ExchangeV2",pathfinderKey:"19,18"},SyncSwap:{chainName:"zkSync",chainId:324,twapVersion:4,twapAddress:"0xc32cAA0F7AD9ED88e22Fc214fc24cCb5C0595D68",lensAddress:"0x7daE5af3011c3bE9A5283F0368a3fdD757fc74F9",takers:["0xB924C20c400575D2B73Baa16CF0Fa0EAA720aFBC","0xBE452F03Be354CAC397C3F0c8397672067D44531"],bidDelaySeconds:60,minChunkSizeUsd:100,name:"SyncSwap",partner:"Orbs:TWAP:SyncSwap",exchangeAddress:"0x422623a40c42f026Ed33A9910078Aa843FD66e27",exchangeType:"ExchangeV2",pathfinderKey:"2,3"},Retro:{chainName:"poly",chainId:137,twapVersion:4,twapAddress:"0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4",lensAddress:"0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"Retro",partner:"Orbs:TWAP:Retro",exchangeAddress:"0xb7A3d74895bFD3Aff6780525e36D79FCf26a895F",exchangeType:"ExchangeV2",pathfinderKey:"retro,retro-v3"},SushiArb:{chainName:"arb",chainId:42161,twapVersion:4,twapAddress:"0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3",lensAddress:"0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"SushiArb",partner:"Orbs:TWAP:Sushi",exchangeAddress:"0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad",exchangeType:"ExchangeV2",pathfinderKey:""},SushiBase:{chainName:"base",chainId:8453,twapVersion:4,twapAddress:"0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55",lensAddress:"0x6313188c1909b161074D62E43105faC9B756A23e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"SushiBase",partner:"Orbs:TWAP:Sushi",exchangeAddress:"0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad",exchangeType:"ExchangeV2",pathfinderKey:""},SushiEth:{chainName:"eth",chainId:1,twapVersion:4,twapAddress:"0xb1ed8BCAD1EaC8a1DF0764700472391800D12946",lensAddress:"0x0967f448c4d4dbd14c355E635AE9CbF68cc44A60",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:200,name:"SushiEth",partner:"Orbs:TWAP:Sushi",exchangeAddress:"0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad",exchangeType:"ExchangeV2",pathfinderKey:""},SushiKatana:{chainName:"katana",chainId:747474,twapVersion:4,twapAddress:"0xf2d96E7BE676153d202e1453804E2749923C7c5b",lensAddress:"0x1579EED0527781B1A748043AA1f59a3858Ace4a7",takers:["0xF74437A3Fc45a518640828E5D6A3E8c9A9BbDC3a","0x07A6C715063e94c0D95e809efefFCbF4EBEdfD55"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"SushiKatana",partner:"Orbs:TWAP:Sushi",exchangeAddress:"0x92209481507e6B2d14C9b5b70Ed287024177220E",exchangeType:"ExchangeV2",pathfinderKey:""},DragonSwap:{chainName:"sei",chainId:1329,twapVersion:4,twapAddress:"0xde737dB24548F8d41A4a3Ca2Bac8aaaDc4DBA099",lensAddress:"0xa1376f2Bb80D3cF6c2D8ebEf34b3d122e9af4020",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"DragonSwap",partner:"Orbs:TWAP:DragonSwap",exchangeAddress:"0xf2F933FafbDB97062CfA3c447ff373e76A90Efd6",exchangeType:"ExchangeV2",pathfinderKey:""},TeaFi:{chainName:"poly",chainId:137,twapVersion:4,twapAddress:"0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4",lensAddress:"0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"TeaFi",partner:"Orbs:TWAP:TeaFi",exchangeAddress:"0xE9D3b4Cf5B0CC392e78C1a4DD9885D449EEF9793",exchangeType:"ParaswapExchange",pathfinderKey:"AaveV2,AaveV3,AaveV3Stata,AngleStakedStableEUR,AngleStakedStableUSD,ApeSwap,AugustusRFQ,BalancerV2,ComethSwap,CurveV1,CurveV1Factory,CurveV1StableNg,CurveV2,Dfyn,DODOV2,Dystopia,Hashflow,IronV2,JarvisV6,KyberDmm,QuickSwap,QuickSwapV3,Retro,SushiSwap,SushiSwapV3,SwaapV2,Synapse,UniswapV2,UniswapV3,WaultFinance,Wmatic,WooFiV2,wUSDM"},SparkDEX:{chainName:"flare",chainId:14,twapVersion:4,twapAddress:"0x9D70B0b90915Bb8b9bdAC7e6a7e6435bBF1feC4D",lensAddress:"0xf2d96E7BE676153d202e1453804E2749923C7c5b",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"SparkDEX",partner:"Orbs:TWAP:SparkDEX",exchangeAddress:"0xe59c53C76bB7EEc01401A18fA8215B94bC65Bf56",exchangeType:"P2Exchange"},Ramses:{chainName:"arb",chainId:42161,twapVersion:4,twapAddress:"0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3",lensAddress:"0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"Ramses",partner:"Orbs:TWAP:Ramses",exchangeAddress:"0x8FCc245209bE85C49D738D0CE5613F74E5d91E86",exchangeType:"ParaswapExchange",pathfinderKey:""},SwapX:{chainName:"sonic",chainId:146,twapVersion:4,twapAddress:"0x8963992816b4EafE5a22b7DB2A99513c18be9afA",lensAddress:"0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D",takers:["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913","0x504f6E10173249dD22491829D98862Cf81DeF79E"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"SwapX",partner:"Orbs:TWAP:SwapX",exchangeAddress:"0xDA902994b7F7a1ecDd8De02E4a17dbFF2E6F67b7",exchangeType:"ExchangeV2",pathfinderKey:""},H2Finance:{chainName:"cronos-zkevm",chainId:388,twapVersion:4,twapAddress:"0xc32cAA0F7AD9ED88e22Fc214fc24cCb5C0595D68",lensAddress:"0x7daE5af3011c3bE9A5283F0368a3fdD757fc74F9",takers:["0xB924C20c400575D2B73Baa16CF0Fa0EAA720aFBC","0xBE452F03Be354CAC397C3F0c8397672067D44531"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"H2Finance",partner:"Orbs:TWAP:H2Finance",exchangeAddress:"0x2f1f10dc311722Be609e6B427bF3FBac6e44093B",exchangeType:"ExchangeV2"},Shadow:{chainName:"sonic",chainId:146,twapVersion:4,twapAddress:"0x8963992816b4EafE5a22b7DB2A99513c18be9afA",lensAddress:"0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D",takers:["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913","0x504f6E10173249dD22491829D98862Cf81DeF79E"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"Shadow",partner:"Orbs:TWAP:Shadow",exchangeAddress:"0x69e3c891450161b7BF27f181eE85E7bAE69E5b07",exchangeType:"ExchangeV2"},Kodiak:{chainName:"berachain",chainId:80094,twapVersion:4,twapAddress:"0xD13609A8ace04D11Ea2FFE176B69dF77C6d9375E",lensAddress:"0xA0b07F9a11dFb01388149abBdbc5B4f2196600AB",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"Kodiak",partner:"Orbs:TWAP:Kodiak",exchangeAddress:"0x69B7aE1250B8d1309954CaD65b6607ae478Ec6eE",exchangeType:"ExchangeV2"},OmniBase:{chainName:"base",chainId:8453,twapVersion:4,twapAddress:"0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55",lensAddress:"0x6313188c1909b161074D62E43105faC9B756A23e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"OmniBase",partner:"Orbs:TWAP:OmniBase",exchangeAddress:"0x54435FcFDF3A08150Ed799b6EF472A20a432303F",exchangeType:"ParaswapExchange"},OmniArb:{chainName:"arb",chainId:42161,twapVersion:4,twapAddress:"0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3",lensAddress:"0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"OmniArb",partner:"Orbs:TWAP:OmniArb",exchangeAddress:"0xF0607785424d342Cceb33E708f4579CA97a3b392",exchangeType:"ParaswapExchange"},BlackholeAvax:{chainName:"avax",chainId:43114,twapVersion:4,twapAddress:"0xf77Ad005aBF7e31f669ce89a6568B2f39Ca92cDe",lensAddress:"0x48466B82Ce1575c5c9eCa168ac1090048dD47fA3",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"BlackholeAvax",partner:"Orbs:TWAP:BlackholeAvax",exchangeAddress:"0xb7A3d74895bFD3Aff6780525e36D79FCf26a895F",exchangeType:"ExchangeV2"},NewEraBnb:{chainName:"bsc",chainId:56,twapVersion:4,twapAddress:"0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994",lensAddress:"0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"NewEraBnb",partner:"Orbs:TWAP:NewEraBnb",exchangeAddress:"0xA22D7Df24d9Ea4D4EF6dC96b2204bd550430eC42",exchangeType:"ExchangeV2"}},_5=[{constant:!1,inputs:[{name:"wad",type:"uint256"}],name:"withdraw",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"deposit",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Withdrawal",type:"event"}],D5=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}],M5=JSON.parse('[{"inputs":[{"internalType":"address","name":"_iweth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"name":"OrderBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"OrderCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"}],"name":"OrderCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"}],"name":"OrderCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstAmountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"srcFilledAmount","type":"uint256"}],"name":"OrderFilled","type":"event"},{"inputs":[],"name":"MIN_BID_DELAY_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_OUTBID_PERCENT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_BASE","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STALE_BID_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_CANCELED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_COMPLETED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"_ask","type":"tuple"}],"name":"ask","outputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"bid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"book","outputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"fill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"iweth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"makerOrders","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"order","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"internalType":"struct OrderLib.Order","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"maker","type":"address"}],"name":"orderIdsByMaker","outputs":[{"internalType":"uint64[]","name":"","type":"uint64[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"prune","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"status","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]'),N5=[{type:"constructor",inputs:[],stateMutability:"nonpayable"},{type:"function",name:"DOMAIN_SEPARATOR",inputs:[],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"cancel",inputs:[{name:"digests",type:"bytes32[]",internalType:"bytes32[]"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"hashTypedData",inputs:[{name:"structHash",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"digest",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"repermitWitnessTransferFrom",inputs:[{name:"permit",type:"tuple",internalType:"struct RePermitLib.RePermitTransferFrom",components:[{name:"permitted",type:"tuple",internalType:"struct RePermitLib.TokenPermissions",components:[{name:"token",type:"address",internalType:"address"},{name:"amount",type:"uint256",internalType:"uint256"}]},{name:"nonce",type:"uint256",internalType:"uint256"},{name:"deadline",type:"uint256",internalType:"uint256"}]},{name:"request",type:"tuple",internalType:"struct RePermitLib.TransferRequest",components:[{name:"to",type:"address",internalType:"address"},{name:"amount",type:"uint256",internalType:"uint256"}]},{name:"signer",type:"address",internalType:"address"},{name:"witness",type:"bytes32",internalType:"bytes32"},{name:"witnessTypeString",type:"string",internalType:"string"},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"spent",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"event",name:"Cancel",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"digest",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"EIP712DomainChanged",inputs:[],anonymous:!1},{type:"event",name:"Spend",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"permitHash",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"token",type:"address",indexed:!0,internalType:"address"},{name:"to",type:"address",indexed:!1,internalType:"address"},{name:"amount",type:"uint256",indexed:!1,internalType:"uint256"},{name:"totalSpent",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"error",name:"Canceled",inputs:[]},{type:"error",name:"Expired",inputs:[]},{type:"error",name:"InsufficientAllowance",inputs:[]},{type:"error",name:"InvalidShortString",inputs:[]},{type:"error",name:"InvalidSignature",inputs:[]},{type:"error",name:"SafeERC20FailedOperation",inputs:[{name:"token",type:"address",internalType:"address"}]},{type:"error",name:"StringTooLong",inputs:[{name:"str",type:"string",internalType:"string"}]}],_h=_5,L5=D5,Dh=N5,Mh=M5;var ye=(e=>(e.TWAP="TWAP",e.LIMIT="LIMIT",e.STOP_LOSS="STOP_LOSS",e.TAKE_PROFIT="TAKE_PROFIT",e))(ye||{}),ct=(e=>(e.Open="OPEN",e.Canceled="CANCELED",e.Completed="COMPLETED",e.Expired="EXPIRED",e))(ct||{}),Gt=(e=>(e[e.Minutes=6e4]="Minutes",e[e.Hours=36e5]="Hours",e[e.Weeks=6048e5]="Weeks",e[e.Days=864e5]="Days",e[e.Months=2592e6]="Months",e[e.Years=31536e6]="Years",e))(Gt||{}),Ge=(e=>(e.LIMIT="limit",e.TWAP_LIMIT="twap-limit",e.TWAP_MARKET="twap-market",e.TAKE_PROFIT="take-profit",e.STOP_LOSS_LIMIT="stop-loss-limit",e.STOP_LOSS_MARKET="stop-loss-market",e))(Ge||{}),Nh=(e=>(e.Arbidex="arbidex",e.Blackhole="blackhole",e.Chronos="chronos",e.Dragon="dragon",e.Kodiak="kodiak",e.Lynex="lynex",e.Nami="nami",e.Newera="newera",e.Omni="omni",e.Pancake="pancake",e.Quick="quick",e.Ramses="ramses",e.Shadow="shadow",e.Spark="spark",e.Spooky="spooky",e.Swapx="swapx",e.Teafi="teafi",e.Thena="thena",e.Yowie="yowie",e))(Nh||{});const wt="0x0000000000000000000000000000000000000000",Ft={eth:{id:1,name:"Ethereum",shortname:"eth",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://eth.llamarpc.com",logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg",explorer:"https://etherscan.io",eip1559:!0},bsc:{id:56,name:"BinanceSmartChain",shortname:"bsc",native:{address:wt,symbol:"BNB",decimals:18,logoUrl:"https://s2.coinmarketcap.com/static/img/coins/128x128/1839.png"},wToken:{symbol:"WBNB",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",decimals:18,logoUrl:"https://s2.coinmarketcap.com/static/img/coins/128x128/1839.png"},publicRpcUrl:"https://bsc-dataseed.binance.org",logoUrl:"https://app.1inch.io/assets/images/network-logos/bsc_2.svg",explorer:"https://bscscan.com",eip1559:!1},poly:{id:137,name:"Polygon",shortname:"poly",native:{address:wt,symbol:"POL",decimals:18,logoUrl:"https://s2.coinmarketcap.com/static/img/coins/64x64/28321.png"},wToken:{symbol:"WPOL",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270.png"},publicRpcUrl:"https://polygon-rpc.com",logoUrl:"https://app.1inch.io/assets/images/network-logos/polygon.svg",explorer:"https://polygonscan.com",eip1559:!0},arb:{id:42161,name:"Arbitrum",shortname:"arb",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://arb1.arbitrum.io/rpc",logoUrl:"https://app.1inch.io/assets/images/network-logos/arbitrum.svg",explorer:"https://arbiscan.io",eip1559:!0},sei:{id:1329,name:"Sei",shortname:"sei",native:{address:wt,symbol:"SEI",decimals:18,logoUrl:"https://assets.coingecko.com/coins/images/28205/standard/Sei_Logo_-_Transparent.png"},wToken:{symbol:"WSEI",address:"0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://evm-rpc.sei-apis.com",logoUrl:"https://assets.coingecko.com/coins/images/28205/standard/Sei_Logo_-_Transparent.png",explorer:"https://seitrace.com",eip1559:!1},avax:{id:43114,name:"Avalanche",shortname:"avax",native:{address:wt,symbol:"AVAX",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/avalanche.svg"},wToken:{symbol:"WAVAX",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7.png"},publicRpcUrl:"https://api.avax.network/ext/bc/C/rpc",logoUrl:"https://app.1inch.io/assets/images/network-logos/avalanche.svg",explorer:"https://snowtrace.io",eip1559:!0},ftm:{id:250,name:"Fantom",shortname:"ftm",native:{address:wt,symbol:"FTM",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/fantom.svg"},wToken:{symbol:"WFTM",address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0x4e15361fd6b4bb609fa63c81a2be19d873717870.png"},publicRpcUrl:"https://rpc.ftm.tools",logoUrl:"https://app.1inch.io/assets/images/network-logos/fantom.svg",explorer:"https://ftmscan.com",eip1559:!0},base:{id:8453,name:"Base",shortname:"base",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0x4200000000000000000000000000000000000006",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://mainnet.base.org",logoUrl:"https://app.1inch.io/assets/images/network-logos/base.svg",explorer:"https://basescan.org",eip1559:!1},linea:{id:59144,name:"Linea",shortname:"linea",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://rpc.linea.build",logoUrl:"https://lineascan.build/images/logo.svg",explorer:"https://lineascan.build",eip1559:!1},zksync:{id:324,name:"zksync",shortname:"zksync",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://mainnet.era.zksync.io",logoUrl:"https://raw.githubusercontent.com/matter-labs/zksync/0a4ca2145a0c95b5bafa84c2f095c644907a8825/zkSyncLogo.svg",explorer:"https://explorer.zksync.io/",eip1559:!0},zkevm:{id:1101,name:"zkevm",shortname:"zkevm",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://zkevm-rpc.com",logoUrl:"https://user-images.githubusercontent.com/18598517/235932702-bc47eae5-d672-4dd9-9da2-8ea8f51a93f3.png",explorer:"https://zkevm.polygonscan.com/",eip1559:!0},manta:{id:169,name:"manta",shortname:"manta",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://icons.llamao.fi/icons/chains/rsz_manta.jpg"},wToken:{symbol:"WETH",address:"0x0Dc808adcE2099A9F62AA87D9670745AbA741746",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://pacific-rpc.manta.network/http",logoUrl:"https://icons.llamao.fi/icons/chains/rsz_manta.jpg",explorer:"https://manta.socialscan.io/",eip1559:!0},blast:{id:81457,name:"blast",shortname:"blast",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://icons.llamao.fi/icons/chains/rsz_blast"},wToken:{symbol:"WETH",address:"0x4300000000000000000000000000000000000004",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://rpc.ankr.com/blast",logoUrl:"https://icons.llamao.fi/icons/chains/rsz_blast",explorer:"https://blastscan.io/",eip1559:!0},sonic:{id:146,name:"sonic",shortname:"sonic",native:{address:wt,symbol:"S",decimals:18,logoUrl:"https://icons.llamao.fi/icons/chains/rsz_sonic"},wToken:{symbol:"WS",address:"0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38",decimals:18,logoUrl:"https://icons.llamao.fi/icons/chains/rsz_sonic"},publicRpcUrl:"https://rpc.soniclabs.com",logoUrl:"https://icons.llamao.fi/icons/chains/rsz_sonic",explorer:"https://www.sonicscan.org/",eip1559:!0},scroll:{id:534352,name:"scroll",shortname:"scroll",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://icons.llamao.fi/icons/chains/rsz_scroll"},wToken:{symbol:"WETH",address:"0x5300000000000000000000000000000000000004",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://scroll-rpc.publicnode.com",logoUrl:"https://icons.llamao.fi/icons/chains/rsz_scroll",explorer:"https://scrollscan.com/",eip1559:!0},zircuit:{id:48900,name:"Zircuit",shortname:"zircuit",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0x4200000000000000000000000000000000000006",decimals:18,logoUrl:"hhttps://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://zircuit-mainnet.drpc.org",logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg",explorer:"https://explorer.zircuit.com/",eip1559:!0},flare:{id:14,name:"flare",shortname:"flare",native:{address:wt,symbol:"FLR",decimals:18,logoUrl:"https://icons.llamao.fi/icons/chains/rsz_flare?w=48&h=48"},wToken:{symbol:"WFLR",address:"0x1D80c49BbBCd1C0911346656B529DF9E5c2F783d",decimals:18,logoUrl:"https://res.cloudinary.com/sparkdex/image/upload/q_100/v1/website-assets/coins/wflr?_a=DATAg1AAZAA0"},publicRpcUrl:"https://flare.network",logoUrl:"https://icons.llamao.fi/icons/chains/rsz_flare?w=48&h=48",explorer:"https://flarescan.com",eip1559:!0},cronosZkEvm:{id:388,name:"Cronos zkEVM",shortname:"cronosZkEvm",native:{address:"0x000000000000000000000000000000000000800a",symbol:"zkCRO",decimals:18,logoUrl:"https://cryptologos.cc/logos/cronos-cro-logo.png"},wToken:{symbol:"wzkCRO",address:"0xC1bF55EE54E16229d9b369a5502Bfe5fC9F20b6d",decimals:18,logoUrl:"https://cryptologos.cc/logos/cronos-cro-logo.png"},publicRpcUrl:"https://rpc.zkevm.cronos.org",logoUrl:"https://cryptologos.cc/logos/cronos-cro-logo.png",explorer:"https://explorer.zkevm.cronos.org",eip1559:!0},katana:{id:747474,name:"Katana",shortname:"katana",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://katana.network/assets/katana-logo.svg"},wToken:{symbol:"WETH",address:"0x4200000000000000000000000000000000000006",decimals:18,logoUrl:"https://katana.network/assets/weth-logo.svg"},publicRpcUrl:"https://rpc.katana.network",logoUrl:"https://katana.network/assets/katana-logo.svg",explorer:"https://explorer.katana.garden",eip1559:!0},bera:{id:80094,name:"Bera",shortname:"bera",native:{address:wt,symbol:"BERA",decimals:18,logoUrl:"https://s2.coinmarketcap.com/static/img/coins/128x128/24647.png"},wToken:{symbol:"WBERA",address:"0x6969696969696969696969696969696969696969",decimals:18,logoUrl:"https://berascan.com/token/images/wrappedbera_ofc_64.png"},publicRpcUrl:"wss://rpc.berachain-apis.com",logoUrl:"https://katana.network/assets/katana-logo.svg",explorer:"https://berascan.com",eip1559:!0},monad:{id:143,name:"Monad",shortname:"monad",native:{address:wt,symbol:"MONAD",decimals:18,logoUrl:"https://s2.coinmarketcap.com/static/img/coins/128x128/30495.png"},wToken:{symbol:"WMON",address:"0x3bd359c1119da7da1d913d1c4d2b7c461115433a",decimals:18,logoUrl:"https://assets.coingecko.com/coins/images/70784/standard/wmon.png?1766028904"},publicRpcUrl:"https://monad-mainnet.drpc.org",logoUrl:"https://s2.coinmarketcap.com/static/img/coins/128x128/30495.png",explorer:"https://monad.network",eip1559:!0}};var z5=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Qu=Math.ceil,yr=Math.floor,Kt="[BigNumber Error] ",Lh=Kt+"Number primitive has more than 15 significant digits: ",Ur=1e14,xe=14,Ju=9007199254740991,ed=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Kn=1e7,At=1e9;function zh(e){var t,r,n,s=w.prototype={constructor:w,toString:null,valueOf:null},a=new w(1),o=20,i=4,c=-7,l=21,u=-1e7,d=1e7,f=!1,h=1,y=0,g={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},E="0123456789abcdefghijklmnopqrstuvwxyz",v=!0;function w(m,b){var x,A,I,F,D,k,P,O,U=this;if(!(U instanceof w))return new w(m,b);if(b==null){if(m&&m._isBigNumber===!0){U.s=m.s,!m.c||m.e>d?U.c=U.e=null:m.e<u?U.c=[U.e=0]:(U.e=m.e,U.c=m.c.slice());return}if((k=typeof m=="number")&&m*0==0){if(U.s=1/m<0?(m=-m,-1):1,m===~~m){for(F=0,D=m;D>=10;D/=10,F++);F>d?U.c=U.e=null:(U.e=F,U.c=[m]);return}O=String(m)}else{if(!z5.test(O=String(m)))return n(U,O,k);U.s=O.charCodeAt(0)==45?(O=O.slice(1),-1):1}(F=O.indexOf("."))>-1&&(O=O.replace(".","")),(D=O.search(/e/i))>0?(F<0&&(F=D),F+=+O.slice(D+1),O=O.substring(0,D)):F<0&&(F=O.length)}else{if(lt(b,2,E.length,"Base"),b==10&&v)return U=new w(m),z(U,o+U.e+1,i);if(O=String(m),k=typeof m=="number"){if(m*0!=0)return n(U,O,k,b);if(U.s=1/m<0?(O=O.slice(1),-1):1,w.DEBUG&&O.replace(/^0\.0*|\./,"").length>15)throw Error(Lh+m)}else U.s=O.charCodeAt(0)===45?(O=O.slice(1),-1):1;for(x=E.slice(0,b),F=D=0,P=O.length;D<P;D++)if(x.indexOf(A=O.charAt(D))<0){if(A=="."){if(D>F){F=P;continue}}else if(!I&&(O==O.toUpperCase()&&(O=O.toLowerCase())||O==O.toLowerCase()&&(O=O.toUpperCase()))){I=!0,D=-1,F=0;continue}return n(U,String(m),k,b)}k=!1,O=r(O,b,10,U.s),(F=O.indexOf("."))>-1?O=O.replace(".",""):F=O.length}for(D=0;O.charCodeAt(D)===48;D++);for(P=O.length;O.charCodeAt(--P)===48;);if(O=O.slice(D,++P)){if(P-=D,k&&w.DEBUG&&P>15&&(m>Ju||m!==yr(m)))throw Error(Lh+U.s*m);if((F=F-D-1)>d)U.c=U.e=null;else if(F<u)U.c=[U.e=0];else{if(U.e=F,U.c=[],D=(F+1)%xe,F<0&&(D+=xe),D<P){for(D&&U.c.push(+O.slice(0,D)),P-=xe;D<P;)U.c.push(+O.slice(D,D+=xe));D=xe-(O=O.slice(D)).length}else D-=P;for(;D--;O+="0");U.c.push(+O)}}else U.c=[U.e=0]}w.clone=zh,w.ROUND_UP=0,w.ROUND_DOWN=1,w.ROUND_CEIL=2,w.ROUND_FLOOR=3,w.ROUND_HALF_UP=4,w.ROUND_HALF_DOWN=5,w.ROUND_HALF_EVEN=6,w.ROUND_HALF_CEIL=7,w.ROUND_HALF_FLOOR=8,w.EUCLID=9,w.config=w.set=function(m){var b,x;if(m!=null)if(typeof m=="object"){if(m.hasOwnProperty(b="DECIMAL_PLACES")&&(x=m[b],lt(x,0,At,b),o=x),m.hasOwnProperty(b="ROUNDING_MODE")&&(x=m[b],lt(x,0,8,b),i=x),m.hasOwnProperty(b="EXPONENTIAL_AT")&&(x=m[b],x&&x.pop?(lt(x[0],-At,0,b),lt(x[1],0,At,b),c=x[0],l=x[1]):(lt(x,-At,At,b),c=-(l=x<0?-x:x))),m.hasOwnProperty(b="RANGE"))if(x=m[b],x&&x.pop)lt(x[0],-At,-1,b),lt(x[1],1,At,b),u=x[0],d=x[1];else if(lt(x,-At,At,b),x)u=-(d=x<0?-x:x);else throw Error(Kt+b+" cannot be zero: "+x);if(m.hasOwnProperty(b="CRYPTO"))if(x=m[b],x===!!x)if(x)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))f=x;else throw f=!x,Error(Kt+"crypto unavailable");else f=x;else throw Error(Kt+b+" not true or false: "+x);if(m.hasOwnProperty(b="MODULO_MODE")&&(x=m[b],lt(x,0,9,b),h=x),m.hasOwnProperty(b="POW_PRECISION")&&(x=m[b],lt(x,0,At,b),y=x),m.hasOwnProperty(b="FORMAT"))if(x=m[b],typeof x=="object")g=x;else throw Error(Kt+b+" not an object: "+x);if(m.hasOwnProperty(b="ALPHABET"))if(x=m[b],typeof x=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(x))v=x.slice(0,10)=="0123456789",E=x;else throw Error(Kt+b+" invalid: "+x)}else throw Error(Kt+"Object expected: "+m);return{DECIMAL_PLACES:o,ROUNDING_MODE:i,EXPONENTIAL_AT:[c,l],RANGE:[u,d],CRYPTO:f,MODULO_MODE:h,POW_PRECISION:y,FORMAT:g,ALPHABET:E}},w.isBigNumber=function(m){if(!m||m._isBigNumber!==!0)return!1;if(!w.DEBUG)return!0;var b,x,A=m.c,I=m.e,F=m.s;e:if({}.toString.call(A)=="[object Array]"){if((F===1||F===-1)&&I>=-At&&I<=At&&I===yr(I)){if(A[0]===0){if(I===0&&A.length===1)return!0;break e}if(b=(I+1)%xe,b<1&&(b+=xe),String(A[0]).length==b){for(b=0;b<A.length;b++)if(x=A[b],x<0||x>=Ur||x!==yr(x))break e;if(x!==0)return!0}}}else if(A===null&&I===null&&(F===null||F===1||F===-1))return!0;throw Error(Kt+"Invalid BigNumber: "+m)},w.maximum=w.max=function(){return C(arguments,-1)},w.minimum=w.min=function(){return C(arguments,1)},w.random=(function(){var m=9007199254740992,b=Math.random()*m&2097151?function(){return yr(Math.random()*m)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(x){var A,I,F,D,k,P=0,O=[],U=new w(a);if(x==null?x=o:lt(x,0,At),D=Qu(x/xe),f)if(crypto.getRandomValues){for(A=crypto.getRandomValues(new Uint32Array(D*=2));P<D;)k=A[P]*131072+(A[P+1]>>>11),k>=9e15?(I=crypto.getRandomValues(new Uint32Array(2)),A[P]=I[0],A[P+1]=I[1]):(O.push(k%1e14),P+=2);P=D/2}else if(crypto.randomBytes){for(A=crypto.randomBytes(D*=7);P<D;)k=(A[P]&31)*281474976710656+A[P+1]*1099511627776+A[P+2]*4294967296+A[P+3]*16777216+(A[P+4]<<16)+(A[P+5]<<8)+A[P+6],k>=9e15?crypto.randomBytes(7).copy(A,P):(O.push(k%1e14),P+=7);P=D/7}else throw f=!1,Error(Kt+"crypto unavailable");if(!f)for(;P<D;)k=b(),k<9e15&&(O[P++]=k%1e14);for(D=O[--P],x%=xe,D&&x&&(k=ed[xe-x],O[P]=yr(D/k)*k);O[P]===0;O.pop(),P--);if(P<0)O=[F=0];else{for(F=-1;O[0]===0;O.splice(0,1),F-=xe);for(P=1,k=O[0];k>=10;k/=10,P++);P<xe&&(F-=xe-P)}return U.e=F,U.c=O,U}})(),w.sum=function(){for(var m=1,b=arguments,x=new w(b[0]);m<b.length;)x=x.plus(b[m++]);return x},r=(function(){var m="0123456789";function b(x,A,I,F){for(var D,k=[0],P,O=0,U=x.length;O<U;){for(P=k.length;P--;k[P]*=A);for(k[0]+=F.indexOf(x.charAt(O++)),D=0;D<k.length;D++)k[D]>I-1&&(k[D+1]==null&&(k[D+1]=0),k[D+1]+=k[D]/I|0,k[D]%=I)}return k.reverse()}return function(x,A,I,F,D){var k,P,O,U,L,H,G,Q,pe=x.indexOf("."),me=o,ie=i;for(pe>=0&&(U=y,y=0,x=x.replace(".",""),Q=new w(A),H=Q.pow(x.length-pe),y=U,Q.c=b(yn(xr(H.c),H.e,"0"),10,I,m),Q.e=Q.c.length),G=b(x,A,I,D?(k=E,m):(k=m,E)),O=U=G.length;G[--U]==0;G.pop());if(!G[0])return k.charAt(0);if(pe<0?--O:(H.c=G,H.e=O,H.s=F,H=t(H,Q,me,ie,I),G=H.c,L=H.r,O=H.e),P=O+me+1,pe=G[P],U=I/2,L=L||P<0||G[P+1]!=null,L=ie<4?(pe!=null||L)&&(ie==0||ie==(H.s<0?3:2)):pe>U||pe==U&&(ie==4||L||ie==6&&G[P-1]&1||ie==(H.s<0?8:7)),P<1||!G[0])x=L?yn(k.charAt(1),-me,k.charAt(0)):k.charAt(0);else{if(G.length=P,L)for(--I;++G[--P]>I;)G[P]=0,P||(++O,G=[1].concat(G));for(U=G.length;!G[--U];);for(pe=0,x="";pe<=U;x+=k.charAt(G[pe++]));x=yn(x,O,k.charAt(0))}return x}})(),t=(function(){function m(A,I,F){var D,k,P,O,U=0,L=A.length,H=I%Kn,G=I/Kn|0;for(A=A.slice();L--;)P=A[L]%Kn,O=A[L]/Kn|0,D=G*P+O*H,k=H*P+D%Kn*Kn+U,U=(k/F|0)+(D/Kn|0)+G*O,A[L]=k%F;return U&&(A=[U].concat(A)),A}function b(A,I,F,D){var k,P;if(F!=D)P=F>D?1:-1;else for(k=P=0;k<F;k++)if(A[k]!=I[k]){P=A[k]>I[k]?1:-1;break}return P}function x(A,I,F,D){for(var k=0;F--;)A[F]-=k,k=A[F]<I[F]?1:0,A[F]=k*D+A[F]-I[F];for(;!A[0]&&A.length>1;A.splice(0,1));}return function(A,I,F,D,k){var P,O,U,L,H,G,Q,pe,me,ie,de,Be,X,we,_e,$e,it,Se=A.s==I.s?1:-1,ve=A.c,be=I.c;if(!ve||!ve[0]||!be||!be[0])return new w(!A.s||!I.s||(ve?be&&ve[0]==be[0]:!be)?NaN:ve&&ve[0]==0||!be?Se*0:Se/0);for(pe=new w(Se),me=pe.c=[],O=A.e-I.e,Se=F+O+1,k||(k=Ur,O=gr(A.e/xe)-gr(I.e/xe),Se=Se/xe|0),U=0;be[U]==(ve[U]||0);U++);if(be[U]>(ve[U]||0)&&O--,Se<0)me.push(1),L=!0;else{for(we=ve.length,$e=be.length,U=0,Se+=2,H=yr(k/(be[0]+1)),H>1&&(be=m(be,H,k),ve=m(ve,H,k),$e=be.length,we=ve.length),X=$e,ie=ve.slice(0,$e),de=ie.length;de<$e;ie[de++]=0);it=be.slice(),it=[0].concat(it),_e=be[0],be[1]>=k/2&&_e++;do{if(H=0,P=b(be,ie,$e,de),P<0){if(Be=ie[0],$e!=de&&(Be=Be*k+(ie[1]||0)),H=yr(Be/_e),H>1)for(H>=k&&(H=k-1),G=m(be,H,k),Q=G.length,de=ie.length;b(G,ie,Q,de)==1;)H--,x(G,$e<Q?it:be,Q,k),Q=G.length,P=1;else H==0&&(P=H=1),G=be.slice(),Q=G.length;if(Q<de&&(G=[0].concat(G)),x(ie,G,de,k),de=ie.length,P==-1)for(;b(be,ie,$e,de)<1;)H++,x(ie,$e<de?it:be,de,k),de=ie.length}else P===0&&(H++,ie=[0]);me[U++]=H,ie[0]?ie[de++]=ve[X]||0:(ie=[ve[X]],de=1)}while((X++<we||ie[0]!=null)&&Se--);L=ie[0]!=null,me[0]||me.splice(0,1)}if(k==Ur){for(U=1,Se=me[0];Se>=10;Se/=10,U++);z(pe,F+(pe.e=U+O*xe-1)+1,D,L)}else pe.e=O,pe.r=+L;return pe}})();function T(m,b,x,A){var I,F,D,k,P;if(x==null?x=i:lt(x,0,8),!m.c)return m.toString();if(I=m.c[0],D=m.e,b==null)P=xr(m.c),P=A==1||A==2&&(D<=c||D>=l)?Sc(P,D):yn(P,D,"0");else if(m=z(new w(m),b,x),F=m.e,P=xr(m.c),k=P.length,A==1||A==2&&(b<=F||F<=c)){for(;k<b;P+="0",k++);P=Sc(P,F)}else if(b-=D+(A===2&&F>D),P=yn(P,F,"0"),F+1>k){if(--b>0)for(P+=".";b--;P+="0");}else if(b+=F-k,b>0)for(F+1==k&&(P+=".");b--;P+="0");return m.s<0&&I?"-"+P:P}function C(m,b){for(var x,A,I=1,F=new w(m[0]);I<m.length;I++)A=new w(m[I]),(!A.s||(x=As(F,A))===b||x===0&&F.s===b)&&(F=A);return F}function _(m,b,x){for(var A=1,I=b.length;!b[--I];b.pop());for(I=b[0];I>=10;I/=10,A++);return(x=A+x*xe-1)>d?m.c=m.e=null:x<u?m.c=[m.e=0]:(m.e=x,m.c=b),m}n=(function(){var m=/^(-?)0([xbo])(?=\w[\w.]*$)/i,b=/^([^.]+)\.$/,x=/^\.([^.]+)$/,A=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(F,D,k,P){var O,U=k?D:D.replace(I,"");if(A.test(U))F.s=isNaN(U)?null:U<0?-1:1;else{if(!k&&(U=U.replace(m,function(L,H,G){return O=(G=G.toLowerCase())=="x"?16:G=="b"?2:8,!P||P==O?H:L}),P&&(O=P,U=U.replace(b,"$1").replace(x,"0.$1")),D!=U))return new w(U,O);if(w.DEBUG)throw Error(Kt+"Not a"+(P?" base "+P:"")+" number: "+D);F.s=null}F.c=F.e=null}})();function z(m,b,x,A){var I,F,D,k,P,O,U,L=m.c,H=ed;if(L){e:{for(I=1,k=L[0];k>=10;k/=10,I++);if(F=b-I,F<0)F+=xe,D=b,P=L[O=0],U=yr(P/H[I-D-1]%10);else if(O=Qu((F+1)/xe),O>=L.length)if(A){for(;L.length<=O;L.push(0));P=U=0,I=1,F%=xe,D=F-xe+1}else break e;else{for(P=k=L[O],I=1;k>=10;k/=10,I++);F%=xe,D=F-xe+I,U=D<0?0:yr(P/H[I-D-1]%10)}if(A=A||b<0||L[O+1]!=null||(D<0?P:P%H[I-D-1]),A=x<4?(U||A)&&(x==0||x==(m.s<0?3:2)):U>5||U==5&&(x==4||A||x==6&&(F>0?D>0?P/H[I-D]:0:L[O-1])%10&1||x==(m.s<0?8:7)),b<1||!L[0])return L.length=0,A?(b-=m.e+1,L[0]=H[(xe-b%xe)%xe],m.e=-b||0):L[0]=m.e=0,m;if(F==0?(L.length=O,k=1,O--):(L.length=O+1,k=H[xe-F],L[O]=D>0?yr(P/H[I-D]%H[D])*k:0),A)for(;;)if(O==0){for(F=1,D=L[0];D>=10;D/=10,F++);for(D=L[0]+=k,k=1;D>=10;D/=10,k++);F!=k&&(m.e++,L[0]==Ur&&(L[0]=1));break}else{if(L[O]+=k,L[O]!=Ur)break;L[O--]=0,k=1}for(F=L.length;L[--F]===0;L.pop());}m.e>d?m.c=m.e=null:m.e<u&&(m.c=[m.e=0])}return m}function S(m){var b,x=m.e;return x===null?m.toString():(b=xr(m.c),b=x<=c||x>=l?Sc(b,x):yn(b,x,"0"),m.s<0?"-"+b:b)}return s.absoluteValue=s.abs=function(){var m=new w(this);return m.s<0&&(m.s=1),m},s.comparedTo=function(m,b){return As(this,new w(m,b))},s.decimalPlaces=s.dp=function(m,b){var x,A,I,F=this;if(m!=null)return lt(m,0,At),b==null?b=i:lt(b,0,8),z(new w(F),m+F.e+1,b);if(!(x=F.c))return null;if(A=((I=x.length-1)-gr(this.e/xe))*xe,I=x[I])for(;I%10==0;I/=10,A--);return A<0&&(A=0),A},s.dividedBy=s.div=function(m,b){return t(this,new w(m,b),o,i)},s.dividedToIntegerBy=s.idiv=function(m,b){return t(this,new w(m,b),0,1)},s.exponentiatedBy=s.pow=function(m,b){var x,A,I,F,D,k,P,O,U,L=this;if(m=new w(m),m.c&&!m.isInteger())throw Error(Kt+"Exponent not an integer: "+S(m));if(b!=null&&(b=new w(b)),k=m.e>14,!L.c||!L.c[0]||L.c[0]==1&&!L.e&&L.c.length==1||!m.c||!m.c[0])return U=new w(Math.pow(+S(L),k?m.s*(2-Tc(m)):+S(m))),b?U.mod(b):U;if(P=m.s<0,b){if(b.c?!b.c[0]:!b.s)return new w(NaN);A=!P&&L.isInteger()&&b.isInteger(),A&&(L=L.mod(b))}else{if(m.e>9&&(L.e>0||L.e<-1||(L.e==0?L.c[0]>1||k&&L.c[1]>=24e7:L.c[0]<8e13||k&&L.c[0]<=9999975e7)))return F=L.s<0&&Tc(m)?-0:0,L.e>-1&&(F=1/F),new w(P?1/F:F);y&&(F=Qu(y/xe+2))}for(k?(x=new w(.5),P&&(m.s=1),O=Tc(m)):(I=Math.abs(+S(m)),O=I%2),U=new w(a);;){if(O){if(U=U.times(L),!U.c)break;F?U.c.length>F&&(U.c.length=F):A&&(U=U.mod(b))}if(I){if(I=yr(I/2),I===0)break;O=I%2}else if(m=m.times(x),z(m,m.e+1,1),m.e>14)O=Tc(m);else{if(I=+S(m),I===0)break;O=I%2}L=L.times(L),F?L.c&&L.c.length>F&&(L.c.length=F):A&&(L=L.mod(b))}return A?U:(P&&(U=a.div(U)),b?U.mod(b):F?z(U,y,i,D):U)},s.integerValue=function(m){var b=new w(this);return m==null?m=i:lt(m,0,8),z(b,b.e+1,m)},s.isEqualTo=s.eq=function(m,b){return As(this,new w(m,b))===0},s.isFinite=function(){return!!this.c},s.isGreaterThan=s.gt=function(m,b){return As(this,new w(m,b))>0},s.isGreaterThanOrEqualTo=s.gte=function(m,b){return(b=As(this,new w(m,b)))===1||b===0},s.isInteger=function(){return!!this.c&&gr(this.e/xe)>this.c.length-2},s.isLessThan=s.lt=function(m,b){return As(this,new w(m,b))<0},s.isLessThanOrEqualTo=s.lte=function(m,b){return(b=As(this,new w(m,b)))===-1||b===0},s.isNaN=function(){return!this.s},s.isNegative=function(){return this.s<0},s.isPositive=function(){return this.s>0},s.isZero=function(){return!!this.c&&this.c[0]==0},s.minus=function(m,b){var x,A,I,F,D=this,k=D.s;if(m=new w(m,b),b=m.s,!k||!b)return new w(NaN);if(k!=b)return m.s=-b,D.plus(m);var P=D.e/xe,O=m.e/xe,U=D.c,L=m.c;if(!P||!O){if(!U||!L)return U?(m.s=-b,m):new w(L?D:NaN);if(!U[0]||!L[0])return L[0]?(m.s=-b,m):new w(U[0]?D:i==3?-0:0)}if(P=gr(P),O=gr(O),U=U.slice(),k=P-O){for((F=k<0)?(k=-k,I=U):(O=P,I=L),I.reverse(),b=k;b--;I.push(0));I.reverse()}else for(A=(F=(k=U.length)<(b=L.length))?k:b,k=b=0;b<A;b++)if(U[b]!=L[b]){F=U[b]<L[b];break}if(F&&(I=U,U=L,L=I,m.s=-m.s),b=(A=L.length)-(x=U.length),b>0)for(;b--;U[x++]=0);for(b=Ur-1;A>k;){if(U[--A]<L[A]){for(x=A;x&&!U[--x];U[x]=b);--U[x],U[A]+=Ur}U[A]-=L[A]}for(;U[0]==0;U.splice(0,1),--O);return U[0]?_(m,U,O):(m.s=i==3?-1:1,m.c=[m.e=0],m)},s.modulo=s.mod=function(m,b){var x,A,I=this;return m=new w(m,b),!I.c||!m.s||m.c&&!m.c[0]?new w(NaN):!m.c||I.c&&!I.c[0]?new w(I):(h==9?(A=m.s,m.s=1,x=t(I,m,0,3),m.s=A,x.s*=A):x=t(I,m,0,h),m=I.minus(x.times(m)),!m.c[0]&&h==1&&(m.s=I.s),m)},s.multipliedBy=s.times=function(m,b){var x,A,I,F,D,k,P,O,U,L,H,G,Q,pe,me,ie=this,de=ie.c,Be=(m=new w(m,b)).c;if(!de||!Be||!de[0]||!Be[0])return!ie.s||!m.s||de&&!de[0]&&!Be||Be&&!Be[0]&&!de?m.c=m.e=m.s=null:(m.s*=ie.s,!de||!Be?m.c=m.e=null:(m.c=[0],m.e=0)),m;for(A=gr(ie.e/xe)+gr(m.e/xe),m.s*=ie.s,P=de.length,L=Be.length,P<L&&(Q=de,de=Be,Be=Q,I=P,P=L,L=I),I=P+L,Q=[];I--;Q.push(0));for(pe=Ur,me=Kn,I=L;--I>=0;){for(x=0,H=Be[I]%me,G=Be[I]/me|0,D=P,F=I+D;F>I;)O=de[--D]%me,U=de[D]/me|0,k=G*O+U*H,O=H*O+k%me*me+Q[F]+x,x=(O/pe|0)+(k/me|0)+G*U,Q[F--]=O%pe;Q[F]=x}return x?++A:Q.splice(0,1),_(m,Q,A)},s.negated=function(){var m=new w(this);return m.s=-m.s||null,m},s.plus=function(m,b){var x,A=this,I=A.s;if(m=new w(m,b),b=m.s,!I||!b)return new w(NaN);if(I!=b)return m.s=-b,A.minus(m);var F=A.e/xe,D=m.e/xe,k=A.c,P=m.c;if(!F||!D){if(!k||!P)return new w(I/0);if(!k[0]||!P[0])return P[0]?m:new w(k[0]?A:I*0)}if(F=gr(F),D=gr(D),k=k.slice(),I=F-D){for(I>0?(D=F,x=P):(I=-I,x=k),x.reverse();I--;x.push(0));x.reverse()}for(I=k.length,b=P.length,I-b<0&&(x=P,P=k,k=x,b=I),I=0;b;)I=(k[--b]=k[b]+P[b]+I)/Ur|0,k[b]=Ur===k[b]?0:k[b]%Ur;return I&&(k=[I].concat(k),++D),_(m,k,D)},s.precision=s.sd=function(m,b){var x,A,I,F=this;if(m!=null&&m!==!!m)return lt(m,1,At),b==null?b=i:lt(b,0,8),z(new w(F),m,b);if(!(x=F.c))return null;if(I=x.length-1,A=I*xe+1,I=x[I]){for(;I%10==0;I/=10,A--);for(I=x[0];I>=10;I/=10,A++);}return m&&F.e+1>A&&(A=F.e+1),A},s.shiftedBy=function(m){return lt(m,-Ju,Ju),this.times("1e"+m)},s.squareRoot=s.sqrt=function(){var m,b,x,A,I,F=this,D=F.c,k=F.s,P=F.e,O=o+4,U=new w("0.5");if(k!==1||!D||!D[0])return new w(!k||k<0&&(!D||D[0])?NaN:D?F:1/0);if(k=Math.sqrt(+S(F)),k==0||k==1/0?(b=xr(D),(b.length+P)%2==0&&(b+="0"),k=Math.sqrt(+b),P=gr((P+1)/2)-(P<0||P%2),k==1/0?b="5e"+P:(b=k.toExponential(),b=b.slice(0,b.indexOf("e")+1)+P),x=new w(b)):x=new w(k+""),x.c[0]){for(P=x.e,k=P+O,k<3&&(k=0);;)if(I=x,x=U.times(I.plus(t(F,I,O,1))),xr(I.c).slice(0,k)===(b=xr(x.c)).slice(0,k))if(x.e<P&&--k,b=b.slice(k-3,k+1),b=="9999"||!A&&b=="4999"){if(!A&&(z(I,I.e+o+2,0),I.times(I).eq(F))){x=I;break}O+=4,k+=4,A=1}else{(!+b||!+b.slice(1)&&b.charAt(0)=="5")&&(z(x,x.e+o+2,1),m=!x.times(x).eq(F));break}}return z(x,x.e+o+1,i,m)},s.toExponential=function(m,b){return m!=null&&(lt(m,0,At),m++),T(this,m,b,1)},s.toFixed=function(m,b){return m!=null&&(lt(m,0,At),m=m+this.e+1),T(this,m,b)},s.toFormat=function(m,b,x){var A,I=this;if(x==null)m!=null&&b&&typeof b=="object"?(x=b,b=null):m&&typeof m=="object"?(x=m,m=b=null):x=g;else if(typeof x!="object")throw Error(Kt+"Argument not an object: "+x);if(A=I.toFixed(m,b),I.c){var F,D=A.split("."),k=+x.groupSize,P=+x.secondaryGroupSize,O=x.groupSeparator||"",U=D[0],L=D[1],H=I.s<0,G=H?U.slice(1):U,Q=G.length;if(P&&(F=k,k=P,P=F,Q-=F),k>0&&Q>0){for(F=Q%k||k,U=G.substr(0,F);F<Q;F+=k)U+=O+G.substr(F,k);P>0&&(U+=O+G.slice(F)),H&&(U="-"+U)}A=L?U+(x.decimalSeparator||"")+((P=+x.fractionGroupSize)?L.replace(new RegExp("\\d{"+P+"}\\B","g"),"$&"+(x.fractionGroupSeparator||"")):L):U}return(x.prefix||"")+A+(x.suffix||"")},s.toFraction=function(m){var b,x,A,I,F,D,k,P,O,U,L,H,G=this,Q=G.c;if(m!=null&&(k=new w(m),!k.isInteger()&&(k.c||k.s!==1)||k.lt(a)))throw Error(Kt+"Argument "+(k.isInteger()?"out of range: ":"not an integer: ")+S(k));if(!Q)return new w(G);for(b=new w(a),O=x=new w(a),A=P=new w(a),H=xr(Q),F=b.e=H.length-G.e-1,b.c[0]=ed[(D=F%xe)<0?xe+D:D],m=!m||k.comparedTo(b)>0?F>0?b:O:k,D=d,d=1/0,k=new w(H),P.c[0]=0;U=t(k,b,0,1),I=x.plus(U.times(A)),I.comparedTo(m)!=1;)x=A,A=I,O=P.plus(U.times(I=O)),P=I,b=k.minus(U.times(I=b)),k=I;return I=t(m.minus(x),A,0,1),P=P.plus(I.times(O)),x=x.plus(I.times(A)),P.s=O.s=G.s,F=F*2,L=t(O,A,F,i).minus(G).abs().comparedTo(t(P,x,F,i).minus(G).abs())<1?[O,A]:[P,x],d=D,L},s.toNumber=function(){return+S(this)},s.toPrecision=function(m,b){return m!=null&&lt(m,1,At),T(this,m,b,2)},s.toString=function(m){var b,x=this,A=x.s,I=x.e;return I===null?A?(b="Infinity",A<0&&(b="-"+b)):b="NaN":(m==null?b=I<=c||I>=l?Sc(xr(x.c),I):yn(xr(x.c),I,"0"):m===10&&v?(x=z(new w(x),o+I+1,i),b=yn(xr(x.c),x.e,"0")):(lt(m,2,E.length,"Base"),b=r(yn(xr(x.c),I,"0"),10,m,A,!0)),A<0&&x.c[0]&&(b="-"+b)),b},s.valueOf=s.toJSON=function(){return S(this)},s._isBigNumber=!0,s[Symbol.toStringTag]="BigNumber",s[Symbol.for("nodejs.util.inspect.custom")]=s.valueOf,e!=null&&w.set(e),w}function gr(e){var t=e|0;return e>0||e===t?t:t-1}function xr(e){for(var t,r,n=1,s=e.length,a=e[0]+"";n<s;){for(t=e[n++]+"",r=xe-t.length;r--;t="0"+t);a+=t}for(s=a.length;a.charCodeAt(--s)===48;);return a.slice(0,s+1||1)}function As(e,t){var r,n,s=e.c,a=t.c,o=e.s,i=t.s,c=e.e,l=t.e;if(!o||!i)return null;if(r=s&&!s[0],n=a&&!a[0],r||n)return r?n?0:-i:o;if(o!=i)return o;if(r=o<0,n=c==l,!s||!a)return n?0:!s^r?1:-1;if(!n)return c>l^r?1:-1;for(i=(c=s.length)<(l=a.length)?c:l,o=0;o<i;o++)if(s[o]!=a[o])return s[o]>a[o]^r?1:-1;return c==l?0:c>l^r?1:-1}function lt(e,t,r,n){if(e<t||e>r||e!==yr(e))throw Error(Kt+(n||"Argument")+(typeof e=="number"?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function Tc(e){var t=e.c.length-1;return gr(e.e/xe)==t&&e.c[t]%2!=0}function Sc(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function yn(e,t,r){var n,s;if(t<0){for(s=r+".";++t;s+=r);e=s+e}else if(n=e.length,++t>n){for(s=r,t-=n;--t;s+=r);e+=s}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}var j=zh();const gn=(e,t)=>{if(!e||!t)return"";const r=j(10).pow(e||0);return j(t).times(r).idiv(r).div(r).toFixed()},Ac=(e,t)=>!e||!t?"":H5(t).times(j(10).pow(e)).decimalPlaces(0).toFixed(0),R5=j(0);j(1),j(10),j(1e18);function Rh(e,t){return e instanceof j?e:e?j(e,t):R5}function Ps(e,t){return e==t||e.toLowerCase()==t.toLowerCase()}function H5(e,t,r){if(typeof e!="string")return Rh(e);const n=".",s=e.replace(new RegExp(`[^${n}\\d-]+`,"g"),"");return Rh(s)}const Is=e=>!!Kh.find(t=>Ps(t,e||""));function $5(e){return[Gt.Years,Gt.Months,Gt.Weeks,Gt.Days,Gt.Hours,Gt.Minutes].find(r=>r<=e)||Gt.Minutes}const Zn=e=>e?e.value*e.unit:0,G5=e=>!e||e==="NaN"?"0":j(e).decimalPlaces(0).toFixed(),Bs=e=>Object.values(Ft).find(t=>t.id===e),j5=e=>{if(!e)return;const t=e.map(a=>Dt(a)),r=Object.entries(Zh).filter(([a])=>t.includes(a)).flatMap(([,a])=>a),n=e.map(a=>a.exchangeAddress),s=new Set([...n,...r].map(a=>a.toLowerCase()));return Array.from(s)},td=(e,t)=>e.version===1?(e.fillDelay||0)*1e3+cd(t):(e.fillDelay||0)*1e3,Fo=e=>typeof window>"u"?null:new URLSearchParams(window.location.search).get(e),Hh=e=>Em().filter(t=>t.name===e).map(t=>t.chainId),$h=(e,t,r)=>{if(!j(e.srcAmountFilled||0).gt(0)||!j(e.dstAmountFilled||0).gt(0))return"";const n=gn(t,e.srcAmountFilled),s=gn(r,e.dstAmountFilled);return j(s).div(n).toFixed()},Gh=(e,t,r)=>{if(e.type===Ge.TWAP_MARKET)return"";const n=gn(t,e.srcAmountPerTrade),s=gn(r,e.dstMinAmountPerTrade);return j(s).div(n).toFixed()},jh="https://order-sink-dev.orbs.network",rd="https://order-sink.orbs.network";let nd;const V5=e=>{nd=e},sd=()=>{const e=Fo("env");return e==="prod"?rd:e==="dev"?jh:nd==="prod"?rd:nd==="dev"?jh:rd},W5=100,q5=1,Pc=300*1e3,ka=365*24*60*60*1e3,ad=300*1e3,Vh=new Date(Pc).getMinutes(),Wh=e=>`https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`,wr="https://hub.orbs.network/api/apikey/subgraphs/id",qh={[Ft.eth.id]:`${wr}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,[Ft.bsc.id]:`${wr}/4NfXEi8rreQsnAr4aJ45RLCKgnjcWX46Lbt9SadiCcz6`,[Ft.poly.id]:`${wr}/3PyRPWSvDnMowGbeBy7aNsvUkD5ZuxdXQw2RdJq4NdXi`,[Ft.arb.id]:`${wr}/83bpQexEaqBjHaQbKoFTbtvCXuo5RudRkfLgtRUYqo2c`,[Ft.base.id]:`${wr}/DFhaPQb3HATXkpsWNZw3gydYHehLBVEDiSk4iBdZJyps`,[Ft.sei.id]:`${wr}/5zjzRnURzoddyFSZBw5E5NAM3oBgPq3NasTYbtMk6EL6`,[Ft.linea.id]:`${wr}/6VsNPEYfFLPZCqdMMDadoXQjLHWJdjEwiD768GAtb7j6`,[Ft.sonic.id]:`${wr}/DtBr6a5vsoDd2oAXdPszcn4gLgrr1XC68Q3AJQKXnNLV`,[Ft.ftm.id]:`${wr}/DdRo1pmJkrJC9fjsjEBWnNE1uqrbh7Diz4tVKd7rfupp`,[Ft.katana.id]:`${wr}/CGi9sDFMQcnBwF3C3NoCFqnaE34sssbgwPLTwiskSXmW`,[Ft.avax.id]:`${wr}/FxZ1vMwE5Xy1qvKvZENUMz4vhW8Sh4vXJf9Vp7o17pTx`,[Ft.bera.id]:`${wr}/H7aY53mY1hgaSURwXj3ZVirwNSifExwjgEL5GNtTqmEj`,[Ft.flare.id]:Wh("flare"),[Ft.cronosZkEvm.id]:Wh("cronos-zkevm")},Yh="0x0000000000000000000000000000000000000000",Kh=[Yh,"0x0000000000000000000000000000000000001010","0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE","0x000000000000000000000000000000000000dEaD","0x000000000000000000000000000000000000800A","0x000000000000000000000000000000000000800a"],Ic="115792089237316195423570985008687907853269984665640564039457584007913129639935",Dt=e=>`${e.name}_${e.chainId}`,Zh={[Dt(_t.SushiArb)]:["0x846F2B29ef314bF3D667981b4ffdADc5B858312a","0x08c41f5D1C844061f6D952E25827eeAA576c6536"],[Dt(_t.SushiBase)]:["0x846F2B29ef314bF3D667981b4ffdADc5B858312a","0x08c41f5D1C844061f6D952E25827eeAA576c6536"],[Dt(_t.SushiEth)]:["0xc55943Fa6509004B2903ED8F8ab7347BfC47D0bA","0x08c41f5D1C844061f6D952E25827eeAA576c6536"],[Dt(_t.PancakeSwap)]:["0xb2BAFe188faD927240038cC4FfF2d771d8A58905","0xE2a0c3b9aD19A18c4bBa7fffBe5bC1b0E58Db1CE"],[Dt(_t.PancakeSwapArbitrum)]:["0xE20167871dB616DdfFD0Fd870d9bC068C350DD1F","0x807488ADAD033e95C438F998277bE654152594dc"],[Dt(_t.PancakeSwapBase)]:["0x10ed1F36e4eBE76E161c9AADDa20BE841bc0082c","0x3A9df3eE209b802D0337383f5abCe3204d623588"],[Dt(_t.PancakeSwapLinea)]:["0x3A9df3eE209b802D0337383f5abCe3204d623588"],[Dt(_t.QuickSwap)]:["0x26D0ec4Be402BCE03AAa8aAf0CF67e9428ba54eF"],[Dt(_t.Thena)]:["0xc2aBC02acd77Bb2407efA22348dA9afC8B375290"],[Dt(_t.Lynex)]:["0x72e3e1fD5D2Ee2F1C2Eb695206D490a1D45C3835"],[Dt(_t.DragonSwap)]:["0x101e1B65Bb516FB5f4547C80BAe0b51f1b8D7a22"],[Dt(_t.SpookySwapSonic)]:["0xAd97B770ad64aE47fc7d64B3bD820dCDbF9ff7DA"],[Dt(_t.SpookySwap)]:["0x3924d62219483015f982b160d48c0fa5Fd436Cba"],[Dt(_t.SwapX)]:["0xE5012eBDe5e26EE3Ea41992154731a03023CF274"]},Bc={unit:Gt.Minutes,value:Vh},Y5=.25,K5="100",Xh="RePermitWitnessTransferFrom",Qh={RePermitWitnessTransferFrom:[{name:"permitted",type:"TokenPermissions"},{name:"spender",type:"address"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"},{name:"witness",type:"Order"}],Exchange:[{name:"adapter",type:"address"},{name:"ref",type:"address"},{name:"share",type:"uint32"},{name:"data",type:"bytes"}],Input:[{name:"token",type:"address"},{name:"amount",type:"uint256"},{name:"maxAmount",type:"uint256"}],Order:[{name:"reactor",type:"address"},{name:"executor",type:"address"},{name:"exchange",type:"Exchange"},{name:"swapper",type:"address"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"},{name:"chainid",type:"uint256"},{name:"exclusivity",type:"uint32"},{name:"epoch",type:"uint32"},{name:"slippage",type:"uint32"},{name:"freshness",type:"uint32"},{name:"input",type:"Input"},{name:"output",type:"Output"}],Output:[{name:"token",type:"address"},{name:"limit",type:"uint256"},{name:"stop",type:"uint256"},{name:"recipient",type:"address"}],TokenPermissions:[{name:"token",type:"address"},{name:"amount",type:"uint256"}]},od="https://www.orbs.com/dtwap-and-dlimit-faq/",Z5="https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP",X5="https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg",Q5="https://www.orbs.com/assets/img/common/logo.svg",J5="https://www.orbs.com/",ew="https://www.orbs.com/dtwap-dlimit-disclaimer";var Fc=(e=>(e.FRESHNESS="freshness",e.MIN_CHUNK_SIZE_USD="minChunkSizeUsd",e.ENV="env",e))(Fc||{});const Jh="-5",em="10",tm="-10",rm="5",tw="Something went wrong";function rw(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}function nw(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const sw={14:{dex:{spark:{type:"default:spark",adapter:"0xB18c633B6584A33E45a8840a759f56dF17117b1D",fee:"0xaeA8C3e1a129A77686E115b1a46D9aD8405F7D2b"}}},56:{dex:{thena:{type:"default:odos-v2",adapter:"0xB75218ba5A99bF57Fd02556B70F05A4A0f1Dbe67",fee:"0x15eBc8b5b3877512FFF23650188694A9a8891FAc"},pancake:{type:"p2:pancakeswap-v2",adapter:"0x654272F7e6e6E912D38650f783eFd44452fD6ee5",fee:"0x37A957f10F458e0d7fDECBE2917971b57F15c927"},newera:{type:"default:odos-v2",adapter:"0x845f459271D800f6Ab32D78400b8Aa18414E80b0",fee:"0x4E7454909eB6D539111D56b50d68897E933D2d11"}}},137:{dex:{quick:{type:"paraswap:paraswap-v5",adapter:"0x023fD6848234f2655818705237F77F02215FEfe5",fee:"0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f"},teafi:{type:"paraswap:paraswap-v5",adapter:"0xe95db7a60164B112C64cE67bA8587b1d4a0E0D29",fee:"0x04Ff96e2c4D62b5771795d307AD679a25b3D2D50"}}},143:{dex:{yowie:{type:"default:openocean-v2",adapter:"0x18bc9533c3539073B9A9acF12b0AbF7cB73e0F1f",fee:"0x6AF3eE77A3A3257777F5649aFa611b4C7Fd975Ef"}}},146:{dex:{spooky:{type:"default:magpie-v3",adapter:"0xdCee7FDdB932104329d528144Cd17A408722B7e2",fee:"0x840Df4684B35BC68BcdA3F6707A3c82A0D662f8b"},swapx:{type:"default:openocean-v2",adapter:"0xecc733D6F6f2DEa341832D650E30822118884FEb",fee:"0x6E03f7BC0f141894612AA017796096399623895F"},shadow:{type:"default:magpie-v3",adapter:"0x5f3E5F6ACCfc65243A01Da3E93b5A700285592C3",fee:"0xb9e3751fAF3187E1bC468E56a707a8A91754460e"}}},1329:{dex:{dragon:{type:"default:dragon",adapter:"0x02d9d5882129241b67ec21Ebc2C86e1BE9BC9890",fee:"0x0dc1E0525202b32e89bA78ed55b1e5cEdB751334"},nami:{type:"default:openocean-v2",adapter:"0x2D4A1237A98f8cb03C3C85960e859aA44036a306",fee:"0xeB58450e23632003f013568703F54446070E2E80"}}},8453:{dex:{quick:{type:"default:kyber-v2",adapter:"0xc73F03c929A123Ee2f3A98EC18BB240f03980AE5",fee:"0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f"}}},42161:{dex:{arbidex:{type:"default:odos-v2",adapter:"0xa734b32151108139e48dCA06eE721538d90A9Ef6",fee:"0xa0c11852f8A44e32F9EC10AD25986A53842f72Ca"},ramses:{type:"paraswap:paraswap-v5",adapter:"0x023fD6848234f2655818705237F77F02215FEfe5",fee:"0xB5BaCB60ECDa0bEF809B2A26eC9B4B926835D7af"},omni:{type:"paraswap:paraswap-v5",adapter:"0xa1baE146161223cd9dCa7137F68eb385934130BE",fee:"0xba5291526c30B097E9F1Fd1Be301E2ab6E0782aa"},chronos:{type:"default:odos-v2",adapter:"0x4Ff90F32aceD08b3e3257B018EA495Fd1Bfe4455",fee:"0x5729af83240EFecAa18eafaAE82961c2DD045Dbe"}}},43114:{dex:{blackhole:{type:"default:kyber-v2",adapter:"0x426ec4bc0d58B80959CDE77576a1942dd40592Fa",fee:"0x7f8B62520D9B5DA0ED517cc36e8dcb2a356f1928"}}},59144:{dex:{lynex:{type:"default:openocean",adapter:"0x4FF6A97A67fe395212f168f011D71fE79E4396f2",fee:"0xcb36ed1B1BfAD8F7FC9651f52d21f04A68677423"}}},80094:{dex:{kodiak:{type:"default:kodiak",adapter:"0xBbaa527Aac00b1Ee9A3909D4D8c4447630E29B1F",fee:"0xBA47Ec15aFbCF6e7e9F52900632049530bB6bAe4"}}},"*":{wm:"0x0005d5cE0dB57e5BE3b2b8b6FeB75f0ccd015000",repermit:"0x00002a9C4D9497df5Bd31768eC5d30eEf5405000",cosigner:"0x0007ec53404c423C935e830ec21903e184690000",reactor:"0x0006a959430e8fBB858D81B2D1140B0ae5c26001",executor:"0x000eBA869d76C618ddc4A6D685A0820A620Ce002",refinery:"0x000E474c0D7084EAA35A501035E73269f4b009A5",salt:{wm:"0xc9b46eae42dfeba3222a0315bf682f33cd5cc9d60c9625642e88406f8415f152",repermit:"0x4871dc9008e605821ea9677b65ea2a60ffb774afb31e0dcaea2e192880096be7",cosigner:"0x37576f2ac1d2a602f00777611edf6f0cbc27611b0980b29bc7856fa79b2b8073",reactor:"0x034169222370f2fd587ef8998082d762cceef58a272330215f5110ec0d76d400",executor:"0xea139bc421fa5e272bed3db74233b2e02077e0aacf8b855f87961e98f2fb467f",refinery:"0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec"}}};var id,nm;function aw(){if(nm)return id;nm=1;const e=sw,t=s=>nw(`./out/${s}.sol/${s}.json`).abi,r=()=>({wm:t("WM"),repermit:t("RePermit"),reactor:t("OrderReactor"),executor:t("Executor"),refinery:t("Refinery"),adapter:t("DefaultDexAdapter")});function n(s,a){if(!s||!(a!=null&&a.trim()))return;const{dex:o,...i}=e["*"]??{},c=e[s];if(!c)return;const{dex:l,...u}=c,d=l==null?void 0:l[a];if(d)return{...i,...u,...d}}return id={config:n,abis:r,raw:e},id}var sm=aw();const am=(e,t,r)=>{if(!e||!t||!r)return;const n=j(e).times(t),s=j(10).pow(r);return n.div(s).toFixed(0)},om=(e,t,r,n)=>{if(r||!n||!e||!t)return j(0).toString();const s=j(e).times(j(t)),a=j(10).pow(n),o=s.div(a);return j.max(1,o).integerValue(j.ROUND_FLOOR).toFixed(0)},im=(e,t,r,n)=>{if(e===ye.TWAP||e===ye.LIMIT)return"0";if(!n||!t||!r)return;const s=j(t).times(j(r)),a=j(10).pow(n),o=s.div(a);return j.max(1,o).integerValue(j.ROUND_FLOOR).toFixed(0)||"0"},cm=(e,t,r,n)=>{const s=Zn(r)*2*t,a=$5(s);return n||(e===ye.LIMIT?{unit:Gt.Days,value:7}:e===ye.STOP_LOSS||e===ye.TAKE_PROFIT?{unit:Gt.Days,value:1}:{unit:a,value:Number(j(s/a).toFixed(2))})},lm=(e,t,r)=>t!==ye.TWAP?1:r!==void 0?r:e,um=(e,t,r,n)=>{if(!t||!r||!n)return 1;const a=j(r).times(t).div(n).integerValue(j.ROUND_FLOOR).toNumber(),o=Math.floor(ka/2/Zn(e));return Math.max(1,Math.min(a,o))},ow=e=>cd(e)/1e3/60,dm=(e,t)=>e+Zn(t)+6e4,cd=e=>e.bidDelaySeconds*1e3*2,pm=(e,t)=>!e||!t?"0":j(e).div(t).integerValue(j.ROUND_FLOOR).toFixed(0),iw=(e,t)=>({isError:!(e.unit===Bc.unit&&e.value===Bc.value)&&Zn(e)*t>ka,value:Math.floor(ka/t)}),fm=(e="",t="",r)=>{if(r===ye.STOP_LOSS)return{isError:j(t||0).gte(j(e||0)),value:e}},hm=(e="",t="",r)=>{if(r===ye.TAKE_PROFIT)return{isError:j(t||0).lte(j(e||0)),value:e}},mm=(e="",t="",r=!1,n)=>{if(!r&&n===ye.STOP_LOSS)return{isError:j(t||0).gte(j(e||0)),value:e}},bm=(e="",t="",r=!1,n)=>{if(!r&&n===ye.TAKE_PROFIT)return{isError:j(t||0).gte(j(e||0)),value:e}},ym=(e,t)=>e===ye.STOP_LOSS||e===ye.TAKE_PROFIT?{isError:Zn(t)>5184e6,value:5184e6}:{isError:Zn(t)>ka,value:ka},gm=e=>({isError:Zn(e)<ad,value:ad}),xm=e=>({isError:Zn(e)<Pc,value:Pc}),wm=(e,t,r)=>({isError:j(t||0).multipliedBy(e||0).isLessThan(r),value:r}),vm=(e,t,r)=>({isError:r===ye.TWAP&&j(e).isGreaterThan(t),value:t}),ld=(e,t=0)=>{var o;const r=(o=Object.entries(_t).find(([i,c])=>c.chainId===t&&i.toLowerCase().indexOf(e.toLowerCase())>=0))==null?void 0:o[1],{abi:n,...s}=sm.config(t,e);return{...s,partner:e,twapConfig:r}},Em=()=>{const e=sm.raw;return Object.entries(e).filter(([t])=>t!=="*").flatMap(([t,r])=>{const n=r==null?void 0:r.dex;return!n||typeof n!="object"?[]:Object.entries(n).map(([s])=>({chainId:Number(t),name:s,config:ld(s,Number(t))}))}).sort((t,r)=>t.name.localeCompare(r.name))},km=({chainId:e,srcToken:t,dstToken:r,srcAmount:n,deadlineMillis:s,fillDelayMillis:a,slippage:o,account:i,srcAmountPerTrade:c,dstMinAmountPerTrade:l="0",triggerAmountPerTrade:u="0",config:d,module:f})=>{const h=Date.now().toString(),y=parseInt((a/1e3).toFixed(0)),g=G5(s/1e3),E=Fo(Fc.FRESHNESS),v=E?parseInt(E):60,w=f===ye.TAKE_PROFIT?Ic:u,T=f===ye.TAKE_PROFIT?u:l,C={permitted:{token:t,amount:n},spender:d.reactor,nonce:h,deadline:g,witness:{reactor:d.reactor,executor:d.executor,exchange:{adapter:d.adapter,ref:d.fee,share:0,data:"0x"},swapper:i,nonce:h,deadline:g,chainid:e,exclusivity:0,epoch:y,slippage:o,freshness:v,input:{token:t,amount:c,maxAmount:n},output:{token:r,limit:j(T||0).toFixed(),stop:j(w||0).toFixed(),recipient:i}}};return{domain:{name:"RePermit",version:"1",chainId:e,verifyingContract:d.repermit},order:C,types:Qh,primaryType:Xh}},cw={version:"0.0.25"},lw=`https://bi.orbs.network/putes/twap-ui-${.7}`,Cm=cw.version;let ud="unknown";function Tm(e){ud=e}function dd(){const e=Math.random().toString(36).substring(2,16),t=Math.random().toString(36).substring(2,16),r=Date.now().toString(36);return`id_${e+t+r}`}const uw=(e,t,r)=>{var n,s,a,o,i,c,l,u,d;return{spotVersion:Cm,partner:e.partner,adapter:e.adapter,cosigner:e.cosigner,executor:e.executor,fee:e.fee,reactor:e.reactor,refinery:e.refinery,repermit:e.repermit,router:e.router,type:e.type,wm:e.wm,chainName:((n=e.twapConfig)==null?void 0:n.chainName)||"",chainId:r||0,twapVersion:((s=e.twapConfig)==null?void 0:s.twapVersion)||0,twapAddress:((a=e.twapConfig)==null?void 0:a.twapAddress)||"",lensAddress:((o=e.twapConfig)==null?void 0:o.lensAddress)||"",bidDelaySeconds:((i=e.twapConfig)==null?void 0:i.bidDelaySeconds)||0,minChunkSizeUsd:t,name:((c=e.twapConfig)==null?void 0:c.name)||"",exchangeAddress:((l=e.twapConfig)==null?void 0:l.exchangeAddress)||"",exchangeType:((u=e.twapConfig)==null?void 0:u.exchangeType)||"",pathfinderKey:((d=e.twapConfig)==null?void 0:d.pathfinderKey)||""}},Sm=async e=>{try{await fetch(lw,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then()}catch(t){console.error("Failed to send BI",t)}};class dw{constructor(){Yu(this,"timeout");Yu(this,"config");Yu(this,"data",{_id:dd()})}async updateAndSend(t={},r=!1,n){try{this.data={...this.data,...t},r?(await Sm(this.data),n==null||n()):(clearTimeout(this.timeout),this.timeout=setTimeout(()=>{Sm(this.data),n==null||n()},1e3))}catch(s){console.error("Failed to update and send BI",s)}}onCancelOrderRequest(t,r){this.updateAndSend({cancelOrderIdsV1:r===1?t:void 0,cancelOrderIdsV2:r===2?t:void 0,action:"cancel order",cancelOrderSuccess:!1,cancelOrderTxHash:void 0,actionError:void 0})}onCancelOrderSuccess(t){this.updateAndSend({cancelOrderTxHash:t,cancelOrderSuccess:!0})}onCancelOrderError(t){this.onTxError(t)}onWrapSuccess(t){this.updateAndSend({wrapTxHash:t})}onWrapRequest(){this.updateAndSend({action:"wrap"})}onWrapError(t){this.onTxError(t)}onApproveRequest(){this.updateAndSend({action:"approve"})}onApproveSuccess(t){this.updateAndSend({approvalTxHash:t})}onApproveError(t){this.onTxError(t)}onCrash(t){var r;this.updateAndSend({action:"crash",actionError:((r=t==null?void 0:t.message)==null?void 0:r.toLowerCase())||(t==null?void 0:t.toLowerCase())})}onTxError(t){var n;const r=((n=t==null?void 0:t.message)==null?void 0:n.toLowerCase())||(t==null?void 0:t.toLowerCase());this.updateAndSend({actionError:r})}onRequestOrder({account:t,chainId:r,module:n,srcToken:s,dstToken:a,fromTokenAmount:o,srcChunkAmount:i,minDstAmountOutPerTrade:c="",triggerPricePerTrade:l="",deadline:u,fillDelay:d,slippage:f,isMarketOrder:h,chunksAmount:y}){this.updateAndSend({toTokenAddress:a.address,toTokenSymbol:a.symbol,fromTokenAddress:s.address,fromTokenSymbol:s.symbol,fromTokenAmount:o,chunksAmount:y,srcChunkAmount:i,minDstAmountOutPerTrade:c,triggerPricePerTrade:l,deadline:u,fillDelay:d,slippage:f,chainId:r,walletAddress:t,module:n,orderType:h?"market":"limit",actionError:void 0})}onSignOrderRequest(t){this.updateAndSend({action:"sign order",order:t})}onSignOrderError(t){this.onTxError(t)}onSignOrderSuccess(t){this.updateAndSend({action:"sign order",signature:t})}init(t,r,n){var s;this.config=t,n!==((s=this.data)==null?void 0:s.chainId)&&(this.data={_id:dd(),action:"module-import",uiVersion:ud,...uw(t,r,n),origin:window.location.origin},this.updateAndSend(this.data))}onCreateOrderError(t){this.onTxError(t)}onCreateOrderRequest(){this.updateAndSend({action:"create order"})}async onCreateOrderSuccess(t){this.updateAndSend({orderHash:t,orderSuccess:!0},void 0,()=>{this.data={_id:dd(),action:"reset",uiVersion:ud,origin:this.data.origin,spotVersion:Cm,partner:this.data.partner,adapter:this.data.adapter,cosigner:this.data.cosigner,executor:this.data.executor,fee:this.data.fee,reactor:this.data.reactor,refinery:this.data.refinery,repermit:this.data.repermit,router:this.data.router,type:this.data.type,wm:this.data.wm,chainName:this.data.chainName||"",chainId:this.data.chainId||0,twapVersion:this.data.twapVersion||0,twapAddress:this.data.twapAddress||"",lensAddress:this.data.lensAddress||"",bidDelaySeconds:this.data.bidDelaySeconds||0,minChunkSizeUsd:this.data.minChunkSizeUsd||0,name:this.data.name||"",exchangeAddress:this.data.exchangeAddress||"",exchangeType:this.data.exchangeType||"",pathfinderKey:this.data.pathfinderKey||""}})}onLoad(){this.updateAndSend({action:"module-import",origin:window.location.origin})}}const dt=new dw,pw=e=>{var o;const t=j(e.order.witness.output.limit||0).gt(1),r=e.order.witness.output.stop,n=j(r||0).eq(Ic),s=j(r||0).gt(0),a=((o=e.metadata.chunks)==null?void 0:o.length)||j(e.order.witness.input.maxAmount).div(j(e.order.witness.input.amount)).toNumber();return n?Ge.TAKE_PROFIT:s?t?Ge.STOP_LOSS_LIMIT:Ge.STOP_LOSS_MARKET:t?a>=1&&t?Ge.TWAP_LIMIT:t?Ge.LIMIT:Ge.TWAP_MARKET:Ge.TWAP_MARKET},fw=e=>{var s;const t=((s=e.metadata.chunks)==null?void 0:s.filter(a=>a.status==="success").length)||0,r=e.metadata.expectedChunks||0,n=j(t).dividedBy(r).toNumber();return n>=.99?100:n<=0?0:Number((n*100).toFixed(2))},hw=(e,t)=>e.metadata.status==="completed"||t>=99?ct.Completed:["pending","eligible"].includes(e.metadata.status)?ct.Open:e.metadata.description.toLowerCase()==="cancelled by contract"?ct.Canceled:ct.Expired,mw=e=>{var r;return(((r=e.metadata.chunks)==null?void 0:r.filter(n=>n.status==="success"))||[]).map(n=>({inAmount:n.inAmount,outAmount:n.outAmount,timestamp:new Date(n.timestamp).getTime(),txHash:n.txHash}))},bw=(e,t)=>{var n;const r=e.length;return r>=t&&((n=e[r-1])==null?void 0:n.timestamp)||0},yw=e=>j(e.metadata.displayOnlyInputTokenPriceUSD).dividedBy(1e18).toFixed(),pd=e=>{const t=fw(e),r=j(e.order.witness.output.stop||0).eq(Ic),n=Number(e.order.witness.output.limit)===1?"":e.order.witness.output.limit,s=e.metadata.expectedChunks||1,a=mw(e);return{id:e.hash,hash:e.hash,version:2,type:pw(e),maker:e.order.witness.swapper,progress:t,srcAmountFilled:a.reduce((o,i)=>o.plus(i.inAmount),new j(0)).toFixed()||"",dstAmountFilled:a.reduce((o,i)=>o.plus(i.outAmount),new j(0)).toFixed()||"",fills:a,srcTokenAddress:e.order.witness.input.token,dstTokenAddress:e.order.witness.output.token,orderDollarValueIn:yw(e),fillDelay:e.order.witness.epoch*1e3,deadline:Number(e.order.deadline)*1e3,createdAt:new Date(e.timestamp).getTime(),srcAmount:e.order.witness.input.maxAmount,dstMinAmountPerTrade:r?"":n,triggerPricePerTrade:r?n:j(e.order.witness.output.stop||"").toFixed(),dstMinAmountTotal:r?"":j(n).multipliedBy(s).toFixed(),srcAmountPerTrade:e.order.witness.input.amount,totalTradesAmount:s,isMarketPrice:j(n||0).lte(1),chainId:e.order.witness.chainid,filledOrderTimestamp:bw(a,s),status:hw(e,t),rawOrder:e}},gw=async({chainId:e,signal:t,account:r,exchange:n})=>{try{if(!r)return[];const s=n?`&exchange=${n}`:"";return(await(await fetch(`${sd()}/orders?swapper=${r}&chainId=${e}${s}`,{signal:t})).json()).orders.map(pd)}catch{return[]}},Am=async(e,t)=>{try{const r={signature:t,order:e,status:"pending"};console.log("body",r),dt.onCreateOrderRequest();const s=await(await fetch(`${sd()}/orders/new`,{method:"POST",body:JSON.stringify(r)})).json();if(!s.success)throw new Error(`error:${s.message}, code:${s.code}`);const a=pd(s.signedOrder);return dt.onCreateOrderSuccess(a.id),a}catch(r){throw dt.onCreateOrderError(r),console.error(r),r}},xn=(e,t)=>e&&e.length?e.map(t||(r=>`${r}`)):void 0,xw=e=>{if(e)return qh[e]},fd=async({chainId:e,buildQuery:t,extractResults:r,signal:n,retries:s=1,limit:a=1e3,page:o})=>{const i=xw(e);if(!i)throw new Tw;const c=async d=>{let f=0;for(;f<=s;)try{const h=await fetch(i,{method:"POST",body:JSON.stringify({query:d}),signal:n,headers:{"Content-Type":"application/json"}});if(!h.ok)throw new Error(`HTTP error: ${h.status}`);const y=await h.json();if(y.errors)throw new Error(y.errors[0].message);return r(y)}catch(h){if(f===s)throw h;await new Promise(y=>setTimeout(y,500*2**f)),f++}return[]};let l=0;const u=[];if(o!==void 0){const d=t(o,a);try{return await c(d)}catch{console.warn(`Page ${o} failed, retrying one final time...`);try{return await c(d)}catch{return[]}}}for(;;){const d=t(l,a);let f;try{f=await c(d)}catch{console.warn(`Page ${l} failed, retrying one final time...`);try{f=await c(d)}catch{return u}}if(u.push(...f),f.length<a)break;l++}return u},Pm=e=>e.map(t=>({inAmount:t.srcAmountIn,outAmount:t.dstAmountOut,timestamp:t.timestamp,txHash:t.transactionHash})),Im=(e,t)=>{const r=j(e||0).gt(1);return!r&&t===1?Ge.TWAP_MARKET:t>1&&r?Ge.TWAP_LIMIT:r?Ge.LIMIT:Ge.TWAP_MARKET},ww=(e,t,r,n)=>{var f;const s=Pm(r||[]),a=new j(e.ask_srcAmount||0).div(e.ask_srcBidAmount).integerValue(j.ROUND_FLOOR).toNumber(),i=(r==null?void 0:r.length)===a?(f=r==null?void 0:r[(r==null?void 0:r.length)-1])==null?void 0:f.timestamp:void 0,c=s.reduce((h,y)=>h.plus(y.inAmount),new j(0)).toFixed(),l=s.reduce((h,y)=>h.plus(y.outAmount),new j(0)).toFixed(),u=Bm(e.ask_srcAmount,c),d=Im(e.ask_dstMinAmount,a);return{version:1,id:e.Contract_id.toString(),hash:"",type:Im(e.ask_dstMinAmount,a),srcTokenAddress:e.ask_srcToken,dstTokenAddress:e.ask_dstToken,exchangeAddress:e.exchange,twapAddress:e.twapAddress,maker:e.maker,progress:u,dstAmountFilled:l,srcAmountFilled:c,orderDollarValueIn:j(e.dollarValueIn||0).toFixed(6),srcAmount:e.ask_srcAmount,dstMinAmountTotal:j(e.ask_dstMinAmount).multipliedBy(a).toString(),fills:s,fillDelay:e.ask_fillDelay,deadline:e.ask_deadline*1e3,createdAt:new Date(e.timestamp).getTime(),dstMinAmountPerTrade:j(e.ask_dstMinAmount).eq(1)?"":e.ask_dstMinAmount,triggerPricePerTrade:"",srcAmountPerTrade:e.ask_srcBidAmount,txHash:e.transactionHash,totalTradesAmount:a,isMarketPrice:[Ge.TWAP_MARKET].includes(d),chainId:t,filledOrderTimestamp:i||0,status:n,rawOrder:e}},vw=e=>{var d;if(!e)return"";const t=xn(e.accounts,f=>`"${f.toLowerCase()}"`),r=xn(j5(e.configs),f=>`"${f.toLowerCase()}"`),n=xn(e.inTokenSymbols,f=>`"${f.toUpperCase()}"`),s=xn(e.outTokenSymbols,f=>`"${f.toUpperCase()}"`),a=xn(e.inTokenAddresses,f=>`"${f.toLowerCase()}"`),o=xn(e.outTokenAddresses,f=>`"${f.toLowerCase()}"`),i=xn(e.transactionHashes,f=>`"${f.toLowerCase()}"`),c=xn(e.orderIds,f=>`"${f}"`),l=r!=null&&r.length?"":xn((d=e.configs)==null?void 0:d.map(f=>f.twapAddress),f=>`"${f.toLowerCase()}"`),u=e.minDollarValueIn;return[r?`exchange_in: [${r.join(", ")}]`:"",l?`twapAddress_in: [${l.join(", ")}]`:"",t?`maker_in: [${t.join(", ")}]`:"",i?`transactionHash_in: [${i.join(", ")}]`:"",c?`Contract_id_in: [${c.join(", ")}]`:"",u?`dollarValueIn_gte: ${u}`:"",n?`srcTokenSymbol_in: [${n.join(", ")}]`:"",s?`dstTokenSymbol_in: [${s.join(", ")}]`:"",a?`srcTokenAddress_in: [${a.join(", ")}]`:"",o?`dstTokenAddress_in: [${o.join(", ")}]`:"",e!=null&&e.startDate?`blockTimestamp_gte: ${e.startDate}`:"",e!=null&&e.endDate?`blockTimestamp_lte: ${e.endDate}`:"",(e==null?void 0:e.orderType)==="limit"?"ask_dstMinAmount_gt: 1":"",(e==null?void 0:e.orderType)==="market"?"ask_dstMinAmount_lte: 1":""].filter(Boolean).join(", ")};async function Ew({chainId:e,signal:t,page:r,limit:n,filters:s}){const a=n||1e3,o=vw(s);return await fd({chainId:e,signal:t,limit:a,page:r,buildQuery:(c,l)=>`
1
+ (function(R,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],B):(R=typeof globalThis<"u"?globalThis:R||self,B(R.SpotReact={},R.jsxRuntime,R.React,R.ReactDOM))})(this,(function(R,B,N,Ea){"use strict";var MW=Object.defineProperty;var U5=R=>{throw TypeError(R)};var NW=(R,B,N)=>B in R?MW(R,B,{enumerable:!0,configurable:!0,writable:!0,value:N}):R[B]=N;var Yu=(R,B,N)=>NW(R,typeof B!="symbol"?B+"":B,N),kh=(R,B,N)=>B.has(R)||U5("Cannot "+N);var M=(R,B,N)=>(kh(R,B,"read from private field"),N?N.call(R):B.get(R)),le=(R,B,N)=>B.has(R)?U5("Cannot add the same private member more than once"):B instanceof WeakSet?B.add(R):B.set(R,N),J=(R,B,N,Ea)=>(kh(R,B,"write to private field"),Ea?Ea.call(R,N):B.set(R,N),N),Ae=(R,B,N)=>(kh(R,B,"access private method"),N);var Ku=(R,B,N,Ea)=>({set _(Xu){J(R,B,Xu,N)},get _(){return M(R,B,Ea)}});var fn,da,m5,pa,gs,go,b5,xo,xs,wo,y5,fa,g5,ha,vo,Br,ma,Bt,xc,ba,Yr,Yn,x5,sr,Oe,wc,qt,ya,Eo,Gn,ws,vc,ko,Co,ga,xa,vs,To,We,Cc,Ch,Th,Sh,Ah,Ph,Ih,Bh,O5,w5,Ec,hn,Yt,wa,mn,Ss,v5,jn,Kr,kc,E5,Vn,Es,ar,Wn,qn,Zu,Fh,k5,bn,C5,ht,ks,Cs,So,Ao,Ts,Po,Io,T5;function Xu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const xt=Xu(N),_t={SpookySwap:{chainName:"ftm",chainId:250,twapVersion:4,twapAddress:"0xd3B290FEB04E353d1821bc0a12397FdEa9a846C0",lensAddress:"0x0221EfDF1Fd3212AF87F23cceB7693a65fAF1d7f",takers:["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913","0x504f6E10173249dD22491829D98862Cf81DeF79E"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"SpookySwap",partner:"Orbs:TWAP:SpookySwap",exchangeAddress:"0xdF7CCd5fc7077E9de5f27a7b7bfDC837c82f8496",exchangeType:"ExchangeV2",pathfinderKey:""},SpookySwapSonic:{chainName:"sonic",chainId:146,twapVersion:4,twapAddress:"0x8963992816b4EafE5a22b7DB2A99513c18be9afA",lensAddress:"0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D",takers:["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913","0x504f6E10173249dD22491829D98862Cf81DeF79E"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"SpookySwapSonic",partner:"Orbs:TWAP:SpookySwap",exchangeAddress:"0x6699bE3aF75e5c1B807b1031dBde6dA9A67739F3",exchangeType:"ExchangeV2",pathfinderKey:""},QuickSwap:{chainName:"poly",chainId:137,twapVersion:4,twapAddress:"0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4",lensAddress:"0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"QuickSwap",partner:"Orbs:TWAP:QuickSwap",exchangeAddress:"0x8FCc245209bE85C49D738D0CE5613F74E5d91E86",exchangeType:"ParaswapExchange",pathfinderKey:"QuickSwap,QuickSwapV3"},QuickSwapBase:{chainName:"base",chainId:8453,twapVersion:4,twapAddress:"0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55",lensAddress:"0x6313188c1909b161074D62E43105faC9B756A23e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"QuickSwap",partner:"Orbs:TWAP:QuickSwap",exchangeAddress:"0xb7a3d74895bfd3aff6780525e36d79fcf26a895f",exchangeType:"ExchangeV2",pathfinderKey:""},Chronos:{chainName:"arb",chainId:42161,twapVersion:4,twapAddress:"0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3",lensAddress:"0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"Chronos",partner:"Orbs:TWAP:Chronos",exchangeAddress:"0x0178e50adAF3b925F27aC518FCd952CE7F9A3B36",exchangeType:"ExchangeV2",pathfinderKey:"Chronos Stable,Chronos Volatile,Chronos V3"},BaseSwap:{chainName:"base",chainId:8453,twapVersion:4,twapAddress:"0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55",lensAddress:"0x6313188c1909b161074D62E43105faC9B756A23e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"BaseSwap",partner:"Orbs:TWAP:BaseSwap",exchangeAddress:"0xAca3155c17530C4aA96746F226fcC049658490d2",exchangeType:"ExchangeV2",pathfinderKey:"BaseSwap,BaseSwapX"},Arbidex:{chainName:"arb",chainId:42161,twapVersion:4,twapAddress:"0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3",lensAddress:"0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"Arbidex",partner:"Orbs:TWAP:Arbidex",exchangeAddress:"0x49d21052f4695d16C7cce6eF561301Aa4d840420",exchangeType:"ExchangeV2",pathfinderKey:"Arbidex Classic,Arbidex Quantum"},Thena:{chainName:"bsc",chainId:56,twapVersion:4,twapAddress:"0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994",lensAddress:"0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"Thena",partner:"Orbs:TWAP:Thena",exchangeAddress:"0x2B2fABDbfa4a15da0d351F947C14F4520db0bDc1",exchangeType:"ExchangeV2",pathfinderKey:"43,47"},PancakeSwap:{chainName:"bsc",chainId:56,twapVersion:4,twapAddress:"0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994",lensAddress:"0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"PancakeSwap",partner:"Orbs:TWAP:PancakeSwap",exchangeAddress:"0x1A2bb6B75D58b740d88413ef4840D6fa3F637940",exchangeType:"P2Exchange",pathfinderKey:""},PancakeSwapArbitrum:{chainName:"arb",chainId:42161,twapVersion:4,twapAddress:"0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3",lensAddress:"0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"PancakeSwap",partner:"Orbs:TWAP:PancakeSwap",exchangeAddress:"0xb37cB9A058c03081Ae6EF934313588cD53d408e7",exchangeType:"P2Exchange",pathfinderKey:""},PancakeSwapBase:{chainName:"base",chainId:8453,twapVersion:4,twapAddress:"0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55",lensAddress:"0x6313188c1909b161074D62E43105faC9B756A23e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"PancakeSwap",partner:"Orbs:TWAP:PancakeSwap",exchangeAddress:"0xb37cB9A058c03081Ae6EF934313588cD53d408e7",exchangeType:"P2Exchange",pathfinderKey:""},PancakeSwapLinea:{chainName:"linea",chainId:59144,twapVersion:4,twapAddress:"0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78",lensAddress:"0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:100,name:"PancakeSwap",partner:"Orbs:TWAP:PancakeSwap",exchangeAddress:"0xb37cB9A058c03081Ae6EF934313588cD53d408e7",exchangeType:"P2Exchange",pathfinderKey:""},Lynex:{chainName:"linea",chainId:59144,twapVersion:4,twapAddress:"0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78",lensAddress:"0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:100,name:"Lynex",partner:"Orbs:TWAP:Lynex",exchangeAddress:"0x04C06C96d7D19977156016DD408B5992af0570a2",exchangeType:"ExchangeV2",pathfinderKey:"19,18"},SyncSwap:{chainName:"zkSync",chainId:324,twapVersion:4,twapAddress:"0xc32cAA0F7AD9ED88e22Fc214fc24cCb5C0595D68",lensAddress:"0x7daE5af3011c3bE9A5283F0368a3fdD757fc74F9",takers:["0xB924C20c400575D2B73Baa16CF0Fa0EAA720aFBC","0xBE452F03Be354CAC397C3F0c8397672067D44531"],bidDelaySeconds:60,minChunkSizeUsd:100,name:"SyncSwap",partner:"Orbs:TWAP:SyncSwap",exchangeAddress:"0x422623a40c42f026Ed33A9910078Aa843FD66e27",exchangeType:"ExchangeV2",pathfinderKey:"2,3"},Retro:{chainName:"poly",chainId:137,twapVersion:4,twapAddress:"0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4",lensAddress:"0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"Retro",partner:"Orbs:TWAP:Retro",exchangeAddress:"0xb7A3d74895bFD3Aff6780525e36D79FCf26a895F",exchangeType:"ExchangeV2",pathfinderKey:"retro,retro-v3"},SushiArb:{chainName:"arb",chainId:42161,twapVersion:4,twapAddress:"0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3",lensAddress:"0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"SushiArb",partner:"Orbs:TWAP:Sushi",exchangeAddress:"0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad",exchangeType:"ExchangeV2",pathfinderKey:""},SushiBase:{chainName:"base",chainId:8453,twapVersion:4,twapAddress:"0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55",lensAddress:"0x6313188c1909b161074D62E43105faC9B756A23e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"SushiBase",partner:"Orbs:TWAP:Sushi",exchangeAddress:"0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad",exchangeType:"ExchangeV2",pathfinderKey:""},SushiEth:{chainName:"eth",chainId:1,twapVersion:4,twapAddress:"0xb1ed8BCAD1EaC8a1DF0764700472391800D12946",lensAddress:"0x0967f448c4d4dbd14c355E635AE9CbF68cc44A60",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:200,name:"SushiEth",partner:"Orbs:TWAP:Sushi",exchangeAddress:"0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad",exchangeType:"ExchangeV2",pathfinderKey:""},SushiKatana:{chainName:"katana",chainId:747474,twapVersion:4,twapAddress:"0xf2d96E7BE676153d202e1453804E2749923C7c5b",lensAddress:"0x1579EED0527781B1A748043AA1f59a3858Ace4a7",takers:["0xF74437A3Fc45a518640828E5D6A3E8c9A9BbDC3a","0x07A6C715063e94c0D95e809efefFCbF4EBEdfD55"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"SushiKatana",partner:"Orbs:TWAP:Sushi",exchangeAddress:"0x92209481507e6B2d14C9b5b70Ed287024177220E",exchangeType:"ExchangeV2",pathfinderKey:""},DragonSwap:{chainName:"sei",chainId:1329,twapVersion:4,twapAddress:"0xde737dB24548F8d41A4a3Ca2Bac8aaaDc4DBA099",lensAddress:"0xa1376f2Bb80D3cF6c2D8ebEf34b3d122e9af4020",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"DragonSwap",partner:"Orbs:TWAP:DragonSwap",exchangeAddress:"0xf2F933FafbDB97062CfA3c447ff373e76A90Efd6",exchangeType:"ExchangeV2",pathfinderKey:""},TeaFi:{chainName:"poly",chainId:137,twapVersion:4,twapAddress:"0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4",lensAddress:"0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"TeaFi",partner:"Orbs:TWAP:TeaFi",exchangeAddress:"0xE9D3b4Cf5B0CC392e78C1a4DD9885D449EEF9793",exchangeType:"ParaswapExchange",pathfinderKey:"AaveV2,AaveV3,AaveV3Stata,AngleStakedStableEUR,AngleStakedStableUSD,ApeSwap,AugustusRFQ,BalancerV2,ComethSwap,CurveV1,CurveV1Factory,CurveV1StableNg,CurveV2,Dfyn,DODOV2,Dystopia,Hashflow,IronV2,JarvisV6,KyberDmm,QuickSwap,QuickSwapV3,Retro,SushiSwap,SushiSwapV3,SwaapV2,Synapse,UniswapV2,UniswapV3,WaultFinance,Wmatic,WooFiV2,wUSDM"},SparkDEX:{chainName:"flare",chainId:14,twapVersion:4,twapAddress:"0x9D70B0b90915Bb8b9bdAC7e6a7e6435bBF1feC4D",lensAddress:"0xf2d96E7BE676153d202e1453804E2749923C7c5b",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"SparkDEX",partner:"Orbs:TWAP:SparkDEX",exchangeAddress:"0xe59c53C76bB7EEc01401A18fA8215B94bC65Bf56",exchangeType:"P2Exchange"},Ramses:{chainName:"arb",chainId:42161,twapVersion:4,twapAddress:"0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3",lensAddress:"0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"Ramses",partner:"Orbs:TWAP:Ramses",exchangeAddress:"0x8FCc245209bE85C49D738D0CE5613F74E5d91E86",exchangeType:"ParaswapExchange",pathfinderKey:""},SwapX:{chainName:"sonic",chainId:146,twapVersion:4,twapAddress:"0x8963992816b4EafE5a22b7DB2A99513c18be9afA",lensAddress:"0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D",takers:["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913","0x504f6E10173249dD22491829D98862Cf81DeF79E"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"SwapX",partner:"Orbs:TWAP:SwapX",exchangeAddress:"0xDA902994b7F7a1ecDd8De02E4a17dbFF2E6F67b7",exchangeType:"ExchangeV2",pathfinderKey:""},H2Finance:{chainName:"cronos-zkevm",chainId:388,twapVersion:4,twapAddress:"0xc32cAA0F7AD9ED88e22Fc214fc24cCb5C0595D68",lensAddress:"0x7daE5af3011c3bE9A5283F0368a3fdD757fc74F9",takers:["0xB924C20c400575D2B73Baa16CF0Fa0EAA720aFBC","0xBE452F03Be354CAC397C3F0c8397672067D44531"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"H2Finance",partner:"Orbs:TWAP:H2Finance",exchangeAddress:"0x2f1f10dc311722Be609e6B427bF3FBac6e44093B",exchangeType:"ExchangeV2"},Shadow:{chainName:"sonic",chainId:146,twapVersion:4,twapAddress:"0x8963992816b4EafE5a22b7DB2A99513c18be9afA",lensAddress:"0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D",takers:["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913","0x504f6E10173249dD22491829D98862Cf81DeF79E"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"Shadow",partner:"Orbs:TWAP:Shadow",exchangeAddress:"0x69e3c891450161b7BF27f181eE85E7bAE69E5b07",exchangeType:"ExchangeV2"},Kodiak:{chainName:"berachain",chainId:80094,twapVersion:4,twapAddress:"0xD13609A8ace04D11Ea2FFE176B69dF77C6d9375E",lensAddress:"0xA0b07F9a11dFb01388149abBdbc5B4f2196600AB",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"Kodiak",partner:"Orbs:TWAP:Kodiak",exchangeAddress:"0x69B7aE1250B8d1309954CaD65b6607ae478Ec6eE",exchangeType:"ExchangeV2"},OmniBase:{chainName:"base",chainId:8453,twapVersion:4,twapAddress:"0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55",lensAddress:"0x6313188c1909b161074D62E43105faC9B756A23e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:10,name:"OmniBase",partner:"Orbs:TWAP:OmniBase",exchangeAddress:"0x54435FcFDF3A08150Ed799b6EF472A20a432303F",exchangeType:"ParaswapExchange"},OmniArb:{chainName:"arb",chainId:42161,twapVersion:4,twapAddress:"0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3",lensAddress:"0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"OmniArb",partner:"Orbs:TWAP:OmniArb",exchangeAddress:"0xF0607785424d342Cceb33E708f4579CA97a3b392",exchangeType:"ParaswapExchange"},BlackholeAvax:{chainName:"avax",chainId:43114,twapVersion:4,twapAddress:"0xf77Ad005aBF7e31f669ce89a6568B2f39Ca92cDe",lensAddress:"0x48466B82Ce1575c5c9eCa168ac1090048dD47fA3",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"BlackholeAvax",partner:"Orbs:TWAP:BlackholeAvax",exchangeAddress:"0xb7A3d74895bFD3Aff6780525e36D79FCf26a895F",exchangeType:"ExchangeV2"},NewEraBnb:{chainName:"bsc",chainId:56,twapVersion:4,twapAddress:"0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994",lensAddress:"0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264",takers:["0xA05405b6340A7F43dC5835351BFC4f5b1F028359","0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"],bidDelaySeconds:60,minChunkSizeUsd:50,name:"NewEraBnb",partner:"Orbs:TWAP:NewEraBnb",exchangeAddress:"0xA22D7Df24d9Ea4D4EF6dC96b2204bd550430eC42",exchangeType:"ExchangeV2"}},_5=[{constant:!1,inputs:[{name:"wad",type:"uint256"}],name:"withdraw",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"deposit",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Withdrawal",type:"event"}],D5=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}],M5=JSON.parse('[{"inputs":[{"internalType":"address","name":"_iweth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"name":"OrderBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"OrderCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"}],"name":"OrderCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"}],"name":"OrderCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstAmountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"srcFilledAmount","type":"uint256"}],"name":"OrderFilled","type":"event"},{"inputs":[],"name":"MIN_BID_DELAY_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_OUTBID_PERCENT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_BASE","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STALE_BID_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_CANCELED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_COMPLETED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"_ask","type":"tuple"}],"name":"ask","outputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"bid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"book","outputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"fill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"iweth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"makerOrders","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"order","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"internalType":"struct OrderLib.Order","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"maker","type":"address"}],"name":"orderIdsByMaker","outputs":[{"internalType":"uint64[]","name":"","type":"uint64[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"prune","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"status","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]'),N5=[{type:"constructor",inputs:[],stateMutability:"nonpayable"},{type:"function",name:"DOMAIN_SEPARATOR",inputs:[],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"cancel",inputs:[{name:"digests",type:"bytes32[]",internalType:"bytes32[]"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"hashTypedData",inputs:[{name:"structHash",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"digest",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"repermitWitnessTransferFrom",inputs:[{name:"permit",type:"tuple",internalType:"struct RePermitLib.RePermitTransferFrom",components:[{name:"permitted",type:"tuple",internalType:"struct RePermitLib.TokenPermissions",components:[{name:"token",type:"address",internalType:"address"},{name:"amount",type:"uint256",internalType:"uint256"}]},{name:"nonce",type:"uint256",internalType:"uint256"},{name:"deadline",type:"uint256",internalType:"uint256"}]},{name:"request",type:"tuple",internalType:"struct RePermitLib.TransferRequest",components:[{name:"to",type:"address",internalType:"address"},{name:"amount",type:"uint256",internalType:"uint256"}]},{name:"signer",type:"address",internalType:"address"},{name:"witness",type:"bytes32",internalType:"bytes32"},{name:"witnessTypeString",type:"string",internalType:"string"},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"spent",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"event",name:"Cancel",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"digest",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"EIP712DomainChanged",inputs:[],anonymous:!1},{type:"event",name:"Spend",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"permitHash",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"token",type:"address",indexed:!0,internalType:"address"},{name:"to",type:"address",indexed:!1,internalType:"address"},{name:"amount",type:"uint256",indexed:!1,internalType:"uint256"},{name:"totalSpent",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"error",name:"Canceled",inputs:[]},{type:"error",name:"Expired",inputs:[]},{type:"error",name:"InsufficientAllowance",inputs:[]},{type:"error",name:"InvalidShortString",inputs:[]},{type:"error",name:"InvalidSignature",inputs:[]},{type:"error",name:"SafeERC20FailedOperation",inputs:[{name:"token",type:"address",internalType:"address"}]},{type:"error",name:"StringTooLong",inputs:[{name:"str",type:"string",internalType:"string"}]}],_h=_5,L5=D5,Dh=N5,Mh=M5;var ye=(e=>(e.TWAP="TWAP",e.LIMIT="LIMIT",e.STOP_LOSS="STOP_LOSS",e.TAKE_PROFIT="TAKE_PROFIT",e))(ye||{}),ct=(e=>(e.Open="OPEN",e.Canceled="CANCELED",e.Completed="COMPLETED",e.Expired="EXPIRED",e))(ct||{}),Gt=(e=>(e[e.Minutes=6e4]="Minutes",e[e.Hours=36e5]="Hours",e[e.Weeks=6048e5]="Weeks",e[e.Days=864e5]="Days",e[e.Months=2592e6]="Months",e[e.Years=31536e6]="Years",e))(Gt||{}),Ge=(e=>(e.LIMIT="limit",e.TWAP_LIMIT="twap-limit",e.TWAP_MARKET="twap-market",e.TAKE_PROFIT="take-profit",e.STOP_LOSS_LIMIT="stop-loss-limit",e.STOP_LOSS_MARKET="stop-loss-market",e))(Ge||{}),Nh=(e=>(e.Arbidex="arbidex",e.Blackhole="blackhole",e.Chronos="chronos",e.Dragon="dragon",e.Kodiak="kodiak",e.Lynex="lynex",e.Nami="nami",e.Newera="newera",e.Omni="omni",e.Pancake="pancake",e.Quick="quick",e.Ramses="ramses",e.Shadow="shadow",e.Spark="spark",e.Spooky="spooky",e.Swapx="swapx",e.Teafi="teafi",e.Thena="thena",e.Yowie="yowie",e))(Nh||{});const wt="0x0000000000000000000000000000000000000000",Ft={eth:{id:1,name:"Ethereum",shortname:"eth",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://eth.llamarpc.com",logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg",explorer:"https://etherscan.io",eip1559:!0},bsc:{id:56,name:"BinanceSmartChain",shortname:"bsc",native:{address:wt,symbol:"BNB",decimals:18,logoUrl:"https://s2.coinmarketcap.com/static/img/coins/128x128/1839.png"},wToken:{symbol:"WBNB",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",decimals:18,logoUrl:"https://s2.coinmarketcap.com/static/img/coins/128x128/1839.png"},publicRpcUrl:"https://bsc-dataseed.binance.org",logoUrl:"https://app.1inch.io/assets/images/network-logos/bsc_2.svg",explorer:"https://bscscan.com",eip1559:!1},poly:{id:137,name:"Polygon",shortname:"poly",native:{address:wt,symbol:"POL",decimals:18,logoUrl:"https://s2.coinmarketcap.com/static/img/coins/64x64/28321.png"},wToken:{symbol:"WPOL",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270.png"},publicRpcUrl:"https://polygon-rpc.com",logoUrl:"https://app.1inch.io/assets/images/network-logos/polygon.svg",explorer:"https://polygonscan.com",eip1559:!0},arb:{id:42161,name:"Arbitrum",shortname:"arb",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://arb1.arbitrum.io/rpc",logoUrl:"https://app.1inch.io/assets/images/network-logos/arbitrum.svg",explorer:"https://arbiscan.io",eip1559:!0},sei:{id:1329,name:"Sei",shortname:"sei",native:{address:wt,symbol:"SEI",decimals:18,logoUrl:"https://assets.coingecko.com/coins/images/28205/standard/Sei_Logo_-_Transparent.png"},wToken:{symbol:"WSEI",address:"0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://evm-rpc.sei-apis.com",logoUrl:"https://assets.coingecko.com/coins/images/28205/standard/Sei_Logo_-_Transparent.png",explorer:"https://seitrace.com",eip1559:!1},avax:{id:43114,name:"Avalanche",shortname:"avax",native:{address:wt,symbol:"AVAX",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/avalanche.svg"},wToken:{symbol:"WAVAX",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7.png"},publicRpcUrl:"https://api.avax.network/ext/bc/C/rpc",logoUrl:"https://app.1inch.io/assets/images/network-logos/avalanche.svg",explorer:"https://snowtrace.io",eip1559:!0},ftm:{id:250,name:"Fantom",shortname:"ftm",native:{address:wt,symbol:"FTM",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/fantom.svg"},wToken:{symbol:"WFTM",address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0x4e15361fd6b4bb609fa63c81a2be19d873717870.png"},publicRpcUrl:"https://rpc.ftm.tools",logoUrl:"https://app.1inch.io/assets/images/network-logos/fantom.svg",explorer:"https://ftmscan.com",eip1559:!0},base:{id:8453,name:"Base",shortname:"base",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0x4200000000000000000000000000000000000006",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://mainnet.base.org",logoUrl:"https://app.1inch.io/assets/images/network-logos/base.svg",explorer:"https://basescan.org",eip1559:!1},linea:{id:59144,name:"Linea",shortname:"linea",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://rpc.linea.build",logoUrl:"https://lineascan.build/images/logo.svg",explorer:"https://lineascan.build",eip1559:!1},zksync:{id:324,name:"zksync",shortname:"zksync",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://mainnet.era.zksync.io",logoUrl:"https://raw.githubusercontent.com/matter-labs/zksync/0a4ca2145a0c95b5bafa84c2f095c644907a8825/zkSyncLogo.svg",explorer:"https://explorer.zksync.io/",eip1559:!0},zkevm:{id:1101,name:"zkevm",shortname:"zkevm",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://zkevm-rpc.com",logoUrl:"https://user-images.githubusercontent.com/18598517/235932702-bc47eae5-d672-4dd9-9da2-8ea8f51a93f3.png",explorer:"https://zkevm.polygonscan.com/",eip1559:!0},manta:{id:169,name:"manta",shortname:"manta",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://icons.llamao.fi/icons/chains/rsz_manta.jpg"},wToken:{symbol:"WETH",address:"0x0Dc808adcE2099A9F62AA87D9670745AbA741746",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://pacific-rpc.manta.network/http",logoUrl:"https://icons.llamao.fi/icons/chains/rsz_manta.jpg",explorer:"https://manta.socialscan.io/",eip1559:!0},blast:{id:81457,name:"blast",shortname:"blast",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://icons.llamao.fi/icons/chains/rsz_blast"},wToken:{symbol:"WETH",address:"0x4300000000000000000000000000000000000004",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://rpc.ankr.com/blast",logoUrl:"https://icons.llamao.fi/icons/chains/rsz_blast",explorer:"https://blastscan.io/",eip1559:!0},sonic:{id:146,name:"sonic",shortname:"sonic",native:{address:wt,symbol:"S",decimals:18,logoUrl:"https://icons.llamao.fi/icons/chains/rsz_sonic"},wToken:{symbol:"WS",address:"0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38",decimals:18,logoUrl:"https://icons.llamao.fi/icons/chains/rsz_sonic"},publicRpcUrl:"https://rpc.soniclabs.com",logoUrl:"https://icons.llamao.fi/icons/chains/rsz_sonic",explorer:"https://www.sonicscan.org/",eip1559:!0},scroll:{id:534352,name:"scroll",shortname:"scroll",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://icons.llamao.fi/icons/chains/rsz_scroll"},wToken:{symbol:"WETH",address:"0x5300000000000000000000000000000000000004",decimals:18,logoUrl:"https://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://scroll-rpc.publicnode.com",logoUrl:"https://icons.llamao.fi/icons/chains/rsz_scroll",explorer:"https://scrollscan.com/",eip1559:!0},zircuit:{id:48900,name:"Zircuit",shortname:"zircuit",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg"},wToken:{symbol:"WETH",address:"0x4200000000000000000000000000000000000006",decimals:18,logoUrl:"hhttps://tokens-data.1inch.io/images/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png"},publicRpcUrl:"https://zircuit-mainnet.drpc.org",logoUrl:"https://app.1inch.io/assets/images/network-logos/ethereum.svg",explorer:"https://explorer.zircuit.com/",eip1559:!0},flare:{id:14,name:"flare",shortname:"flare",native:{address:wt,symbol:"FLR",decimals:18,logoUrl:"https://icons.llamao.fi/icons/chains/rsz_flare?w=48&h=48"},wToken:{symbol:"WFLR",address:"0x1D80c49BbBCd1C0911346656B529DF9E5c2F783d",decimals:18,logoUrl:"https://res.cloudinary.com/sparkdex/image/upload/q_100/v1/website-assets/coins/wflr?_a=DATAg1AAZAA0"},publicRpcUrl:"https://flare.network",logoUrl:"https://icons.llamao.fi/icons/chains/rsz_flare?w=48&h=48",explorer:"https://flarescan.com",eip1559:!0},cronosZkEvm:{id:388,name:"Cronos zkEVM",shortname:"cronosZkEvm",native:{address:"0x000000000000000000000000000000000000800a",symbol:"zkCRO",decimals:18,logoUrl:"https://cryptologos.cc/logos/cronos-cro-logo.png"},wToken:{symbol:"wzkCRO",address:"0xC1bF55EE54E16229d9b369a5502Bfe5fC9F20b6d",decimals:18,logoUrl:"https://cryptologos.cc/logos/cronos-cro-logo.png"},publicRpcUrl:"https://rpc.zkevm.cronos.org",logoUrl:"https://cryptologos.cc/logos/cronos-cro-logo.png",explorer:"https://explorer.zkevm.cronos.org",eip1559:!0},katana:{id:747474,name:"Katana",shortname:"katana",native:{address:wt,symbol:"ETH",decimals:18,logoUrl:"https://katana.network/assets/katana-logo.svg"},wToken:{symbol:"WETH",address:"0x4200000000000000000000000000000000000006",decimals:18,logoUrl:"https://katana.network/assets/weth-logo.svg"},publicRpcUrl:"https://rpc.katana.network",logoUrl:"https://katana.network/assets/katana-logo.svg",explorer:"https://explorer.katana.garden",eip1559:!0},bera:{id:80094,name:"Bera",shortname:"bera",native:{address:wt,symbol:"BERA",decimals:18,logoUrl:"https://s2.coinmarketcap.com/static/img/coins/128x128/24647.png"},wToken:{symbol:"WBERA",address:"0x6969696969696969696969696969696969696969",decimals:18,logoUrl:"https://berascan.com/token/images/wrappedbera_ofc_64.png"},publicRpcUrl:"wss://rpc.berachain-apis.com",logoUrl:"https://katana.network/assets/katana-logo.svg",explorer:"https://berascan.com",eip1559:!0},monad:{id:143,name:"Monad",shortname:"monad",native:{address:wt,symbol:"MONAD",decimals:18,logoUrl:"https://s2.coinmarketcap.com/static/img/coins/128x128/30495.png"},wToken:{symbol:"WMON",address:"0x3bd359c1119da7da1d913d1c4d2b7c461115433a",decimals:18,logoUrl:"https://assets.coingecko.com/coins/images/70784/standard/wmon.png?1766028904"},publicRpcUrl:"https://monad-mainnet.drpc.org",logoUrl:"https://s2.coinmarketcap.com/static/img/coins/128x128/30495.png",explorer:"https://monad.network",eip1559:!0}};var z5=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Qu=Math.ceil,yr=Math.floor,Kt="[BigNumber Error] ",Lh=Kt+"Number primitive has more than 15 significant digits: ",Ur=1e14,xe=14,Ju=9007199254740991,ed=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Kn=1e7,At=1e9;function zh(e){var t,r,n,s=w.prototype={constructor:w,toString:null,valueOf:null},a=new w(1),o=20,i=4,c=-7,l=21,u=-1e7,d=1e7,f=!1,h=1,y=0,g={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},E="0123456789abcdefghijklmnopqrstuvwxyz",v=!0;function w(m,b){var x,A,I,F,D,k,P,O,U=this;if(!(U instanceof w))return new w(m,b);if(b==null){if(m&&m._isBigNumber===!0){U.s=m.s,!m.c||m.e>d?U.c=U.e=null:m.e<u?U.c=[U.e=0]:(U.e=m.e,U.c=m.c.slice());return}if((k=typeof m=="number")&&m*0==0){if(U.s=1/m<0?(m=-m,-1):1,m===~~m){for(F=0,D=m;D>=10;D/=10,F++);F>d?U.c=U.e=null:(U.e=F,U.c=[m]);return}O=String(m)}else{if(!z5.test(O=String(m)))return n(U,O,k);U.s=O.charCodeAt(0)==45?(O=O.slice(1),-1):1}(F=O.indexOf("."))>-1&&(O=O.replace(".","")),(D=O.search(/e/i))>0?(F<0&&(F=D),F+=+O.slice(D+1),O=O.substring(0,D)):F<0&&(F=O.length)}else{if(lt(b,2,E.length,"Base"),b==10&&v)return U=new w(m),z(U,o+U.e+1,i);if(O=String(m),k=typeof m=="number"){if(m*0!=0)return n(U,O,k,b);if(U.s=1/m<0?(O=O.slice(1),-1):1,w.DEBUG&&O.replace(/^0\.0*|\./,"").length>15)throw Error(Lh+m)}else U.s=O.charCodeAt(0)===45?(O=O.slice(1),-1):1;for(x=E.slice(0,b),F=D=0,P=O.length;D<P;D++)if(x.indexOf(A=O.charAt(D))<0){if(A=="."){if(D>F){F=P;continue}}else if(!I&&(O==O.toUpperCase()&&(O=O.toLowerCase())||O==O.toLowerCase()&&(O=O.toUpperCase()))){I=!0,D=-1,F=0;continue}return n(U,String(m),k,b)}k=!1,O=r(O,b,10,U.s),(F=O.indexOf("."))>-1?O=O.replace(".",""):F=O.length}for(D=0;O.charCodeAt(D)===48;D++);for(P=O.length;O.charCodeAt(--P)===48;);if(O=O.slice(D,++P)){if(P-=D,k&&w.DEBUG&&P>15&&(m>Ju||m!==yr(m)))throw Error(Lh+U.s*m);if((F=F-D-1)>d)U.c=U.e=null;else if(F<u)U.c=[U.e=0];else{if(U.e=F,U.c=[],D=(F+1)%xe,F<0&&(D+=xe),D<P){for(D&&U.c.push(+O.slice(0,D)),P-=xe;D<P;)U.c.push(+O.slice(D,D+=xe));D=xe-(O=O.slice(D)).length}else D-=P;for(;D--;O+="0");U.c.push(+O)}}else U.c=[U.e=0]}w.clone=zh,w.ROUND_UP=0,w.ROUND_DOWN=1,w.ROUND_CEIL=2,w.ROUND_FLOOR=3,w.ROUND_HALF_UP=4,w.ROUND_HALF_DOWN=5,w.ROUND_HALF_EVEN=6,w.ROUND_HALF_CEIL=7,w.ROUND_HALF_FLOOR=8,w.EUCLID=9,w.config=w.set=function(m){var b,x;if(m!=null)if(typeof m=="object"){if(m.hasOwnProperty(b="DECIMAL_PLACES")&&(x=m[b],lt(x,0,At,b),o=x),m.hasOwnProperty(b="ROUNDING_MODE")&&(x=m[b],lt(x,0,8,b),i=x),m.hasOwnProperty(b="EXPONENTIAL_AT")&&(x=m[b],x&&x.pop?(lt(x[0],-At,0,b),lt(x[1],0,At,b),c=x[0],l=x[1]):(lt(x,-At,At,b),c=-(l=x<0?-x:x))),m.hasOwnProperty(b="RANGE"))if(x=m[b],x&&x.pop)lt(x[0],-At,-1,b),lt(x[1],1,At,b),u=x[0],d=x[1];else if(lt(x,-At,At,b),x)u=-(d=x<0?-x:x);else throw Error(Kt+b+" cannot be zero: "+x);if(m.hasOwnProperty(b="CRYPTO"))if(x=m[b],x===!!x)if(x)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))f=x;else throw f=!x,Error(Kt+"crypto unavailable");else f=x;else throw Error(Kt+b+" not true or false: "+x);if(m.hasOwnProperty(b="MODULO_MODE")&&(x=m[b],lt(x,0,9,b),h=x),m.hasOwnProperty(b="POW_PRECISION")&&(x=m[b],lt(x,0,At,b),y=x),m.hasOwnProperty(b="FORMAT"))if(x=m[b],typeof x=="object")g=x;else throw Error(Kt+b+" not an object: "+x);if(m.hasOwnProperty(b="ALPHABET"))if(x=m[b],typeof x=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(x))v=x.slice(0,10)=="0123456789",E=x;else throw Error(Kt+b+" invalid: "+x)}else throw Error(Kt+"Object expected: "+m);return{DECIMAL_PLACES:o,ROUNDING_MODE:i,EXPONENTIAL_AT:[c,l],RANGE:[u,d],CRYPTO:f,MODULO_MODE:h,POW_PRECISION:y,FORMAT:g,ALPHABET:E}},w.isBigNumber=function(m){if(!m||m._isBigNumber!==!0)return!1;if(!w.DEBUG)return!0;var b,x,A=m.c,I=m.e,F=m.s;e:if({}.toString.call(A)=="[object Array]"){if((F===1||F===-1)&&I>=-At&&I<=At&&I===yr(I)){if(A[0]===0){if(I===0&&A.length===1)return!0;break e}if(b=(I+1)%xe,b<1&&(b+=xe),String(A[0]).length==b){for(b=0;b<A.length;b++)if(x=A[b],x<0||x>=Ur||x!==yr(x))break e;if(x!==0)return!0}}}else if(A===null&&I===null&&(F===null||F===1||F===-1))return!0;throw Error(Kt+"Invalid BigNumber: "+m)},w.maximum=w.max=function(){return C(arguments,-1)},w.minimum=w.min=function(){return C(arguments,1)},w.random=(function(){var m=9007199254740992,b=Math.random()*m&2097151?function(){return yr(Math.random()*m)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(x){var A,I,F,D,k,P=0,O=[],U=new w(a);if(x==null?x=o:lt(x,0,At),D=Qu(x/xe),f)if(crypto.getRandomValues){for(A=crypto.getRandomValues(new Uint32Array(D*=2));P<D;)k=A[P]*131072+(A[P+1]>>>11),k>=9e15?(I=crypto.getRandomValues(new Uint32Array(2)),A[P]=I[0],A[P+1]=I[1]):(O.push(k%1e14),P+=2);P=D/2}else if(crypto.randomBytes){for(A=crypto.randomBytes(D*=7);P<D;)k=(A[P]&31)*281474976710656+A[P+1]*1099511627776+A[P+2]*4294967296+A[P+3]*16777216+(A[P+4]<<16)+(A[P+5]<<8)+A[P+6],k>=9e15?crypto.randomBytes(7).copy(A,P):(O.push(k%1e14),P+=7);P=D/7}else throw f=!1,Error(Kt+"crypto unavailable");if(!f)for(;P<D;)k=b(),k<9e15&&(O[P++]=k%1e14);for(D=O[--P],x%=xe,D&&x&&(k=ed[xe-x],O[P]=yr(D/k)*k);O[P]===0;O.pop(),P--);if(P<0)O=[F=0];else{for(F=-1;O[0]===0;O.splice(0,1),F-=xe);for(P=1,k=O[0];k>=10;k/=10,P++);P<xe&&(F-=xe-P)}return U.e=F,U.c=O,U}})(),w.sum=function(){for(var m=1,b=arguments,x=new w(b[0]);m<b.length;)x=x.plus(b[m++]);return x},r=(function(){var m="0123456789";function b(x,A,I,F){for(var D,k=[0],P,O=0,U=x.length;O<U;){for(P=k.length;P--;k[P]*=A);for(k[0]+=F.indexOf(x.charAt(O++)),D=0;D<k.length;D++)k[D]>I-1&&(k[D+1]==null&&(k[D+1]=0),k[D+1]+=k[D]/I|0,k[D]%=I)}return k.reverse()}return function(x,A,I,F,D){var k,P,O,U,L,H,G,Q,pe=x.indexOf("."),me=o,ie=i;for(pe>=0&&(U=y,y=0,x=x.replace(".",""),Q=new w(A),H=Q.pow(x.length-pe),y=U,Q.c=b(yn(xr(H.c),H.e,"0"),10,I,m),Q.e=Q.c.length),G=b(x,A,I,D?(k=E,m):(k=m,E)),O=U=G.length;G[--U]==0;G.pop());if(!G[0])return k.charAt(0);if(pe<0?--O:(H.c=G,H.e=O,H.s=F,H=t(H,Q,me,ie,I),G=H.c,L=H.r,O=H.e),P=O+me+1,pe=G[P],U=I/2,L=L||P<0||G[P+1]!=null,L=ie<4?(pe!=null||L)&&(ie==0||ie==(H.s<0?3:2)):pe>U||pe==U&&(ie==4||L||ie==6&&G[P-1]&1||ie==(H.s<0?8:7)),P<1||!G[0])x=L?yn(k.charAt(1),-me,k.charAt(0)):k.charAt(0);else{if(G.length=P,L)for(--I;++G[--P]>I;)G[P]=0,P||(++O,G=[1].concat(G));for(U=G.length;!G[--U];);for(pe=0,x="";pe<=U;x+=k.charAt(G[pe++]));x=yn(x,O,k.charAt(0))}return x}})(),t=(function(){function m(A,I,F){var D,k,P,O,U=0,L=A.length,H=I%Kn,G=I/Kn|0;for(A=A.slice();L--;)P=A[L]%Kn,O=A[L]/Kn|0,D=G*P+O*H,k=H*P+D%Kn*Kn+U,U=(k/F|0)+(D/Kn|0)+G*O,A[L]=k%F;return U&&(A=[U].concat(A)),A}function b(A,I,F,D){var k,P;if(F!=D)P=F>D?1:-1;else for(k=P=0;k<F;k++)if(A[k]!=I[k]){P=A[k]>I[k]?1:-1;break}return P}function x(A,I,F,D){for(var k=0;F--;)A[F]-=k,k=A[F]<I[F]?1:0,A[F]=k*D+A[F]-I[F];for(;!A[0]&&A.length>1;A.splice(0,1));}return function(A,I,F,D,k){var P,O,U,L,H,G,Q,pe,me,ie,de,Be,X,we,_e,$e,it,Se=A.s==I.s?1:-1,ve=A.c,be=I.c;if(!ve||!ve[0]||!be||!be[0])return new w(!A.s||!I.s||(ve?be&&ve[0]==be[0]:!be)?NaN:ve&&ve[0]==0||!be?Se*0:Se/0);for(pe=new w(Se),me=pe.c=[],O=A.e-I.e,Se=F+O+1,k||(k=Ur,O=gr(A.e/xe)-gr(I.e/xe),Se=Se/xe|0),U=0;be[U]==(ve[U]||0);U++);if(be[U]>(ve[U]||0)&&O--,Se<0)me.push(1),L=!0;else{for(we=ve.length,$e=be.length,U=0,Se+=2,H=yr(k/(be[0]+1)),H>1&&(be=m(be,H,k),ve=m(ve,H,k),$e=be.length,we=ve.length),X=$e,ie=ve.slice(0,$e),de=ie.length;de<$e;ie[de++]=0);it=be.slice(),it=[0].concat(it),_e=be[0],be[1]>=k/2&&_e++;do{if(H=0,P=b(be,ie,$e,de),P<0){if(Be=ie[0],$e!=de&&(Be=Be*k+(ie[1]||0)),H=yr(Be/_e),H>1)for(H>=k&&(H=k-1),G=m(be,H,k),Q=G.length,de=ie.length;b(G,ie,Q,de)==1;)H--,x(G,$e<Q?it:be,Q,k),Q=G.length,P=1;else H==0&&(P=H=1),G=be.slice(),Q=G.length;if(Q<de&&(G=[0].concat(G)),x(ie,G,de,k),de=ie.length,P==-1)for(;b(be,ie,$e,de)<1;)H++,x(ie,$e<de?it:be,de,k),de=ie.length}else P===0&&(H++,ie=[0]);me[U++]=H,ie[0]?ie[de++]=ve[X]||0:(ie=[ve[X]],de=1)}while((X++<we||ie[0]!=null)&&Se--);L=ie[0]!=null,me[0]||me.splice(0,1)}if(k==Ur){for(U=1,Se=me[0];Se>=10;Se/=10,U++);z(pe,F+(pe.e=U+O*xe-1)+1,D,L)}else pe.e=O,pe.r=+L;return pe}})();function T(m,b,x,A){var I,F,D,k,P;if(x==null?x=i:lt(x,0,8),!m.c)return m.toString();if(I=m.c[0],D=m.e,b==null)P=xr(m.c),P=A==1||A==2&&(D<=c||D>=l)?Sc(P,D):yn(P,D,"0");else if(m=z(new w(m),b,x),F=m.e,P=xr(m.c),k=P.length,A==1||A==2&&(b<=F||F<=c)){for(;k<b;P+="0",k++);P=Sc(P,F)}else if(b-=D+(A===2&&F>D),P=yn(P,F,"0"),F+1>k){if(--b>0)for(P+=".";b--;P+="0");}else if(b+=F-k,b>0)for(F+1==k&&(P+=".");b--;P+="0");return m.s<0&&I?"-"+P:P}function C(m,b){for(var x,A,I=1,F=new w(m[0]);I<m.length;I++)A=new w(m[I]),(!A.s||(x=As(F,A))===b||x===0&&F.s===b)&&(F=A);return F}function _(m,b,x){for(var A=1,I=b.length;!b[--I];b.pop());for(I=b[0];I>=10;I/=10,A++);return(x=A+x*xe-1)>d?m.c=m.e=null:x<u?m.c=[m.e=0]:(m.e=x,m.c=b),m}n=(function(){var m=/^(-?)0([xbo])(?=\w[\w.]*$)/i,b=/^([^.]+)\.$/,x=/^\.([^.]+)$/,A=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(F,D,k,P){var O,U=k?D:D.replace(I,"");if(A.test(U))F.s=isNaN(U)?null:U<0?-1:1;else{if(!k&&(U=U.replace(m,function(L,H,G){return O=(G=G.toLowerCase())=="x"?16:G=="b"?2:8,!P||P==O?H:L}),P&&(O=P,U=U.replace(b,"$1").replace(x,"0.$1")),D!=U))return new w(U,O);if(w.DEBUG)throw Error(Kt+"Not a"+(P?" base "+P:"")+" number: "+D);F.s=null}F.c=F.e=null}})();function z(m,b,x,A){var I,F,D,k,P,O,U,L=m.c,H=ed;if(L){e:{for(I=1,k=L[0];k>=10;k/=10,I++);if(F=b-I,F<0)F+=xe,D=b,P=L[O=0],U=yr(P/H[I-D-1]%10);else if(O=Qu((F+1)/xe),O>=L.length)if(A){for(;L.length<=O;L.push(0));P=U=0,I=1,F%=xe,D=F-xe+1}else break e;else{for(P=k=L[O],I=1;k>=10;k/=10,I++);F%=xe,D=F-xe+I,U=D<0?0:yr(P/H[I-D-1]%10)}if(A=A||b<0||L[O+1]!=null||(D<0?P:P%H[I-D-1]),A=x<4?(U||A)&&(x==0||x==(m.s<0?3:2)):U>5||U==5&&(x==4||A||x==6&&(F>0?D>0?P/H[I-D]:0:L[O-1])%10&1||x==(m.s<0?8:7)),b<1||!L[0])return L.length=0,A?(b-=m.e+1,L[0]=H[(xe-b%xe)%xe],m.e=-b||0):L[0]=m.e=0,m;if(F==0?(L.length=O,k=1,O--):(L.length=O+1,k=H[xe-F],L[O]=D>0?yr(P/H[I-D]%H[D])*k:0),A)for(;;)if(O==0){for(F=1,D=L[0];D>=10;D/=10,F++);for(D=L[0]+=k,k=1;D>=10;D/=10,k++);F!=k&&(m.e++,L[0]==Ur&&(L[0]=1));break}else{if(L[O]+=k,L[O]!=Ur)break;L[O--]=0,k=1}for(F=L.length;L[--F]===0;L.pop());}m.e>d?m.c=m.e=null:m.e<u&&(m.c=[m.e=0])}return m}function S(m){var b,x=m.e;return x===null?m.toString():(b=xr(m.c),b=x<=c||x>=l?Sc(b,x):yn(b,x,"0"),m.s<0?"-"+b:b)}return s.absoluteValue=s.abs=function(){var m=new w(this);return m.s<0&&(m.s=1),m},s.comparedTo=function(m,b){return As(this,new w(m,b))},s.decimalPlaces=s.dp=function(m,b){var x,A,I,F=this;if(m!=null)return lt(m,0,At),b==null?b=i:lt(b,0,8),z(new w(F),m+F.e+1,b);if(!(x=F.c))return null;if(A=((I=x.length-1)-gr(this.e/xe))*xe,I=x[I])for(;I%10==0;I/=10,A--);return A<0&&(A=0),A},s.dividedBy=s.div=function(m,b){return t(this,new w(m,b),o,i)},s.dividedToIntegerBy=s.idiv=function(m,b){return t(this,new w(m,b),0,1)},s.exponentiatedBy=s.pow=function(m,b){var x,A,I,F,D,k,P,O,U,L=this;if(m=new w(m),m.c&&!m.isInteger())throw Error(Kt+"Exponent not an integer: "+S(m));if(b!=null&&(b=new w(b)),k=m.e>14,!L.c||!L.c[0]||L.c[0]==1&&!L.e&&L.c.length==1||!m.c||!m.c[0])return U=new w(Math.pow(+S(L),k?m.s*(2-Tc(m)):+S(m))),b?U.mod(b):U;if(P=m.s<0,b){if(b.c?!b.c[0]:!b.s)return new w(NaN);A=!P&&L.isInteger()&&b.isInteger(),A&&(L=L.mod(b))}else{if(m.e>9&&(L.e>0||L.e<-1||(L.e==0?L.c[0]>1||k&&L.c[1]>=24e7:L.c[0]<8e13||k&&L.c[0]<=9999975e7)))return F=L.s<0&&Tc(m)?-0:0,L.e>-1&&(F=1/F),new w(P?1/F:F);y&&(F=Qu(y/xe+2))}for(k?(x=new w(.5),P&&(m.s=1),O=Tc(m)):(I=Math.abs(+S(m)),O=I%2),U=new w(a);;){if(O){if(U=U.times(L),!U.c)break;F?U.c.length>F&&(U.c.length=F):A&&(U=U.mod(b))}if(I){if(I=yr(I/2),I===0)break;O=I%2}else if(m=m.times(x),z(m,m.e+1,1),m.e>14)O=Tc(m);else{if(I=+S(m),I===0)break;O=I%2}L=L.times(L),F?L.c&&L.c.length>F&&(L.c.length=F):A&&(L=L.mod(b))}return A?U:(P&&(U=a.div(U)),b?U.mod(b):F?z(U,y,i,D):U)},s.integerValue=function(m){var b=new w(this);return m==null?m=i:lt(m,0,8),z(b,b.e+1,m)},s.isEqualTo=s.eq=function(m,b){return As(this,new w(m,b))===0},s.isFinite=function(){return!!this.c},s.isGreaterThan=s.gt=function(m,b){return As(this,new w(m,b))>0},s.isGreaterThanOrEqualTo=s.gte=function(m,b){return(b=As(this,new w(m,b)))===1||b===0},s.isInteger=function(){return!!this.c&&gr(this.e/xe)>this.c.length-2},s.isLessThan=s.lt=function(m,b){return As(this,new w(m,b))<0},s.isLessThanOrEqualTo=s.lte=function(m,b){return(b=As(this,new w(m,b)))===-1||b===0},s.isNaN=function(){return!this.s},s.isNegative=function(){return this.s<0},s.isPositive=function(){return this.s>0},s.isZero=function(){return!!this.c&&this.c[0]==0},s.minus=function(m,b){var x,A,I,F,D=this,k=D.s;if(m=new w(m,b),b=m.s,!k||!b)return new w(NaN);if(k!=b)return m.s=-b,D.plus(m);var P=D.e/xe,O=m.e/xe,U=D.c,L=m.c;if(!P||!O){if(!U||!L)return U?(m.s=-b,m):new w(L?D:NaN);if(!U[0]||!L[0])return L[0]?(m.s=-b,m):new w(U[0]?D:i==3?-0:0)}if(P=gr(P),O=gr(O),U=U.slice(),k=P-O){for((F=k<0)?(k=-k,I=U):(O=P,I=L),I.reverse(),b=k;b--;I.push(0));I.reverse()}else for(A=(F=(k=U.length)<(b=L.length))?k:b,k=b=0;b<A;b++)if(U[b]!=L[b]){F=U[b]<L[b];break}if(F&&(I=U,U=L,L=I,m.s=-m.s),b=(A=L.length)-(x=U.length),b>0)for(;b--;U[x++]=0);for(b=Ur-1;A>k;){if(U[--A]<L[A]){for(x=A;x&&!U[--x];U[x]=b);--U[x],U[A]+=Ur}U[A]-=L[A]}for(;U[0]==0;U.splice(0,1),--O);return U[0]?_(m,U,O):(m.s=i==3?-1:1,m.c=[m.e=0],m)},s.modulo=s.mod=function(m,b){var x,A,I=this;return m=new w(m,b),!I.c||!m.s||m.c&&!m.c[0]?new w(NaN):!m.c||I.c&&!I.c[0]?new w(I):(h==9?(A=m.s,m.s=1,x=t(I,m,0,3),m.s=A,x.s*=A):x=t(I,m,0,h),m=I.minus(x.times(m)),!m.c[0]&&h==1&&(m.s=I.s),m)},s.multipliedBy=s.times=function(m,b){var x,A,I,F,D,k,P,O,U,L,H,G,Q,pe,me,ie=this,de=ie.c,Be=(m=new w(m,b)).c;if(!de||!Be||!de[0]||!Be[0])return!ie.s||!m.s||de&&!de[0]&&!Be||Be&&!Be[0]&&!de?m.c=m.e=m.s=null:(m.s*=ie.s,!de||!Be?m.c=m.e=null:(m.c=[0],m.e=0)),m;for(A=gr(ie.e/xe)+gr(m.e/xe),m.s*=ie.s,P=de.length,L=Be.length,P<L&&(Q=de,de=Be,Be=Q,I=P,P=L,L=I),I=P+L,Q=[];I--;Q.push(0));for(pe=Ur,me=Kn,I=L;--I>=0;){for(x=0,H=Be[I]%me,G=Be[I]/me|0,D=P,F=I+D;F>I;)O=de[--D]%me,U=de[D]/me|0,k=G*O+U*H,O=H*O+k%me*me+Q[F]+x,x=(O/pe|0)+(k/me|0)+G*U,Q[F--]=O%pe;Q[F]=x}return x?++A:Q.splice(0,1),_(m,Q,A)},s.negated=function(){var m=new w(this);return m.s=-m.s||null,m},s.plus=function(m,b){var x,A=this,I=A.s;if(m=new w(m,b),b=m.s,!I||!b)return new w(NaN);if(I!=b)return m.s=-b,A.minus(m);var F=A.e/xe,D=m.e/xe,k=A.c,P=m.c;if(!F||!D){if(!k||!P)return new w(I/0);if(!k[0]||!P[0])return P[0]?m:new w(k[0]?A:I*0)}if(F=gr(F),D=gr(D),k=k.slice(),I=F-D){for(I>0?(D=F,x=P):(I=-I,x=k),x.reverse();I--;x.push(0));x.reverse()}for(I=k.length,b=P.length,I-b<0&&(x=P,P=k,k=x,b=I),I=0;b;)I=(k[--b]=k[b]+P[b]+I)/Ur|0,k[b]=Ur===k[b]?0:k[b]%Ur;return I&&(k=[I].concat(k),++D),_(m,k,D)},s.precision=s.sd=function(m,b){var x,A,I,F=this;if(m!=null&&m!==!!m)return lt(m,1,At),b==null?b=i:lt(b,0,8),z(new w(F),m,b);if(!(x=F.c))return null;if(I=x.length-1,A=I*xe+1,I=x[I]){for(;I%10==0;I/=10,A--);for(I=x[0];I>=10;I/=10,A++);}return m&&F.e+1>A&&(A=F.e+1),A},s.shiftedBy=function(m){return lt(m,-Ju,Ju),this.times("1e"+m)},s.squareRoot=s.sqrt=function(){var m,b,x,A,I,F=this,D=F.c,k=F.s,P=F.e,O=o+4,U=new w("0.5");if(k!==1||!D||!D[0])return new w(!k||k<0&&(!D||D[0])?NaN:D?F:1/0);if(k=Math.sqrt(+S(F)),k==0||k==1/0?(b=xr(D),(b.length+P)%2==0&&(b+="0"),k=Math.sqrt(+b),P=gr((P+1)/2)-(P<0||P%2),k==1/0?b="5e"+P:(b=k.toExponential(),b=b.slice(0,b.indexOf("e")+1)+P),x=new w(b)):x=new w(k+""),x.c[0]){for(P=x.e,k=P+O,k<3&&(k=0);;)if(I=x,x=U.times(I.plus(t(F,I,O,1))),xr(I.c).slice(0,k)===(b=xr(x.c)).slice(0,k))if(x.e<P&&--k,b=b.slice(k-3,k+1),b=="9999"||!A&&b=="4999"){if(!A&&(z(I,I.e+o+2,0),I.times(I).eq(F))){x=I;break}O+=4,k+=4,A=1}else{(!+b||!+b.slice(1)&&b.charAt(0)=="5")&&(z(x,x.e+o+2,1),m=!x.times(x).eq(F));break}}return z(x,x.e+o+1,i,m)},s.toExponential=function(m,b){return m!=null&&(lt(m,0,At),m++),T(this,m,b,1)},s.toFixed=function(m,b){return m!=null&&(lt(m,0,At),m=m+this.e+1),T(this,m,b)},s.toFormat=function(m,b,x){var A,I=this;if(x==null)m!=null&&b&&typeof b=="object"?(x=b,b=null):m&&typeof m=="object"?(x=m,m=b=null):x=g;else if(typeof x!="object")throw Error(Kt+"Argument not an object: "+x);if(A=I.toFixed(m,b),I.c){var F,D=A.split("."),k=+x.groupSize,P=+x.secondaryGroupSize,O=x.groupSeparator||"",U=D[0],L=D[1],H=I.s<0,G=H?U.slice(1):U,Q=G.length;if(P&&(F=k,k=P,P=F,Q-=F),k>0&&Q>0){for(F=Q%k||k,U=G.substr(0,F);F<Q;F+=k)U+=O+G.substr(F,k);P>0&&(U+=O+G.slice(F)),H&&(U="-"+U)}A=L?U+(x.decimalSeparator||"")+((P=+x.fractionGroupSize)?L.replace(new RegExp("\\d{"+P+"}\\B","g"),"$&"+(x.fractionGroupSeparator||"")):L):U}return(x.prefix||"")+A+(x.suffix||"")},s.toFraction=function(m){var b,x,A,I,F,D,k,P,O,U,L,H,G=this,Q=G.c;if(m!=null&&(k=new w(m),!k.isInteger()&&(k.c||k.s!==1)||k.lt(a)))throw Error(Kt+"Argument "+(k.isInteger()?"out of range: ":"not an integer: ")+S(k));if(!Q)return new w(G);for(b=new w(a),O=x=new w(a),A=P=new w(a),H=xr(Q),F=b.e=H.length-G.e-1,b.c[0]=ed[(D=F%xe)<0?xe+D:D],m=!m||k.comparedTo(b)>0?F>0?b:O:k,D=d,d=1/0,k=new w(H),P.c[0]=0;U=t(k,b,0,1),I=x.plus(U.times(A)),I.comparedTo(m)!=1;)x=A,A=I,O=P.plus(U.times(I=O)),P=I,b=k.minus(U.times(I=b)),k=I;return I=t(m.minus(x),A,0,1),P=P.plus(I.times(O)),x=x.plus(I.times(A)),P.s=O.s=G.s,F=F*2,L=t(O,A,F,i).minus(G).abs().comparedTo(t(P,x,F,i).minus(G).abs())<1?[O,A]:[P,x],d=D,L},s.toNumber=function(){return+S(this)},s.toPrecision=function(m,b){return m!=null&&lt(m,1,At),T(this,m,b,2)},s.toString=function(m){var b,x=this,A=x.s,I=x.e;return I===null?A?(b="Infinity",A<0&&(b="-"+b)):b="NaN":(m==null?b=I<=c||I>=l?Sc(xr(x.c),I):yn(xr(x.c),I,"0"):m===10&&v?(x=z(new w(x),o+I+1,i),b=yn(xr(x.c),x.e,"0")):(lt(m,2,E.length,"Base"),b=r(yn(xr(x.c),I,"0"),10,m,A,!0)),A<0&&x.c[0]&&(b="-"+b)),b},s.valueOf=s.toJSON=function(){return S(this)},s._isBigNumber=!0,s[Symbol.toStringTag]="BigNumber",s[Symbol.for("nodejs.util.inspect.custom")]=s.valueOf,e!=null&&w.set(e),w}function gr(e){var t=e|0;return e>0||e===t?t:t-1}function xr(e){for(var t,r,n=1,s=e.length,a=e[0]+"";n<s;){for(t=e[n++]+"",r=xe-t.length;r--;t="0"+t);a+=t}for(s=a.length;a.charCodeAt(--s)===48;);return a.slice(0,s+1||1)}function As(e,t){var r,n,s=e.c,a=t.c,o=e.s,i=t.s,c=e.e,l=t.e;if(!o||!i)return null;if(r=s&&!s[0],n=a&&!a[0],r||n)return r?n?0:-i:o;if(o!=i)return o;if(r=o<0,n=c==l,!s||!a)return n?0:!s^r?1:-1;if(!n)return c>l^r?1:-1;for(i=(c=s.length)<(l=a.length)?c:l,o=0;o<i;o++)if(s[o]!=a[o])return s[o]>a[o]^r?1:-1;return c==l?0:c>l^r?1:-1}function lt(e,t,r,n){if(e<t||e>r||e!==yr(e))throw Error(Kt+(n||"Argument")+(typeof e=="number"?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function Tc(e){var t=e.c.length-1;return gr(e.e/xe)==t&&e.c[t]%2!=0}function Sc(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function yn(e,t,r){var n,s;if(t<0){for(s=r+".";++t;s+=r);e=s+e}else if(n=e.length,++t>n){for(s=r,t-=n;--t;s+=r);e+=s}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}var j=zh();const gn=(e,t)=>{if(!e||!t)return"";const r=j(10).pow(e||0);return j(t).times(r).idiv(r).div(r).toFixed()},Ac=(e,t)=>!e||!t?"":H5(t).times(j(10).pow(e)).decimalPlaces(0).toFixed(0),R5=j(0);j(1),j(10),j(1e18);function Rh(e,t){return e instanceof j?e:e?j(e,t):R5}function Ps(e,t){return e==t||e.toLowerCase()==t.toLowerCase()}function H5(e,t,r){if(typeof e!="string")return Rh(e);const n=".",s=e.replace(new RegExp(`[^${n}\\d-]+`,"g"),"");return Rh(s)}const Is=e=>!!Kh.find(t=>Ps(t,e||""));function $5(e){return[Gt.Years,Gt.Months,Gt.Weeks,Gt.Days,Gt.Hours,Gt.Minutes].find(r=>r<=e)||Gt.Minutes}const Zn=e=>e?e.value*e.unit:0,G5=e=>!e||e==="NaN"?"0":j(e).decimalPlaces(0).toFixed(),Bs=e=>Object.values(Ft).find(t=>t.id===e),j5=e=>{if(!e)return;const t=e.map(a=>Dt(a)),r=Object.entries(Zh).filter(([a])=>t.includes(a)).flatMap(([,a])=>a),n=e.map(a=>a.exchangeAddress),s=new Set([...n,...r].map(a=>a.toLowerCase()));return Array.from(s)},td=(e,t)=>e.version===1?(e.fillDelay||0)*1e3+cd(t):(e.fillDelay||0)*1e3,Fo=e=>typeof window>"u"?null:new URLSearchParams(window.location.search).get(e),Hh=e=>Em().filter(t=>t.name===e).map(t=>t.chainId),$h=(e,t,r)=>{if(!j(e.srcAmountFilled||0).gt(0)||!j(e.dstAmountFilled||0).gt(0))return"";const n=gn(t,e.srcAmountFilled),s=gn(r,e.dstAmountFilled);return j(s).div(n).toFixed()},Gh=(e,t,r)=>{if(e.type===Ge.TWAP_MARKET)return"";const n=gn(t,e.srcAmountPerTrade),s=gn(r,e.dstMinAmountPerTrade);return j(s).div(n).toFixed()},jh="https://order-sink-dev.orbs.network",rd="https://order-sink.orbs.network";let nd;const V5=e=>{nd=e},sd=()=>{const e=Fo("env");return e==="prod"?rd:e==="dev"?jh:nd==="prod"?rd:nd==="dev"?jh:rd},W5=100,q5=1,Pc=300*1e3,ka=365*24*60*60*1e3,ad=300*1e3,Vh=new Date(Pc).getMinutes(),Wh=e=>`https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`,wr="https://hub.orbs.network/api/apikey/subgraphs/id",qh={[Ft.eth.id]:`${wr}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,[Ft.bsc.id]:`${wr}/4NfXEi8rreQsnAr4aJ45RLCKgnjcWX46Lbt9SadiCcz6`,[Ft.poly.id]:`${wr}/3PyRPWSvDnMowGbeBy7aNsvUkD5ZuxdXQw2RdJq4NdXi`,[Ft.arb.id]:`${wr}/83bpQexEaqBjHaQbKoFTbtvCXuo5RudRkfLgtRUYqo2c`,[Ft.base.id]:`${wr}/DFhaPQb3HATXkpsWNZw3gydYHehLBVEDiSk4iBdZJyps`,[Ft.sei.id]:`${wr}/5zjzRnURzoddyFSZBw5E5NAM3oBgPq3NasTYbtMk6EL6`,[Ft.linea.id]:`${wr}/6VsNPEYfFLPZCqdMMDadoXQjLHWJdjEwiD768GAtb7j6`,[Ft.sonic.id]:`${wr}/DtBr6a5vsoDd2oAXdPszcn4gLgrr1XC68Q3AJQKXnNLV`,[Ft.ftm.id]:`${wr}/DdRo1pmJkrJC9fjsjEBWnNE1uqrbh7Diz4tVKd7rfupp`,[Ft.katana.id]:`${wr}/CGi9sDFMQcnBwF3C3NoCFqnaE34sssbgwPLTwiskSXmW`,[Ft.avax.id]:`${wr}/FxZ1vMwE5Xy1qvKvZENUMz4vhW8Sh4vXJf9Vp7o17pTx`,[Ft.bera.id]:`${wr}/H7aY53mY1hgaSURwXj3ZVirwNSifExwjgEL5GNtTqmEj`,[Ft.flare.id]:Wh("flare"),[Ft.cronosZkEvm.id]:Wh("cronos-zkevm")},Yh="0x0000000000000000000000000000000000000000",Kh=[Yh,"0x0000000000000000000000000000000000001010","0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE","0x000000000000000000000000000000000000dEaD","0x000000000000000000000000000000000000800A","0x000000000000000000000000000000000000800a"],Ic="115792089237316195423570985008687907853269984665640564039457584007913129639935",Dt=e=>`${e.name}_${e.chainId}`,Zh={[Dt(_t.SushiArb)]:["0x846F2B29ef314bF3D667981b4ffdADc5B858312a","0x08c41f5D1C844061f6D952E25827eeAA576c6536"],[Dt(_t.SushiBase)]:["0x846F2B29ef314bF3D667981b4ffdADc5B858312a","0x08c41f5D1C844061f6D952E25827eeAA576c6536"],[Dt(_t.SushiEth)]:["0xc55943Fa6509004B2903ED8F8ab7347BfC47D0bA","0x08c41f5D1C844061f6D952E25827eeAA576c6536"],[Dt(_t.PancakeSwap)]:["0xb2BAFe188faD927240038cC4FfF2d771d8A58905","0xE2a0c3b9aD19A18c4bBa7fffBe5bC1b0E58Db1CE"],[Dt(_t.PancakeSwapArbitrum)]:["0xE20167871dB616DdfFD0Fd870d9bC068C350DD1F","0x807488ADAD033e95C438F998277bE654152594dc"],[Dt(_t.PancakeSwapBase)]:["0x10ed1F36e4eBE76E161c9AADDa20BE841bc0082c","0x3A9df3eE209b802D0337383f5abCe3204d623588"],[Dt(_t.PancakeSwapLinea)]:["0x3A9df3eE209b802D0337383f5abCe3204d623588"],[Dt(_t.QuickSwap)]:["0x26D0ec4Be402BCE03AAa8aAf0CF67e9428ba54eF"],[Dt(_t.Thena)]:["0xc2aBC02acd77Bb2407efA22348dA9afC8B375290"],[Dt(_t.Lynex)]:["0x72e3e1fD5D2Ee2F1C2Eb695206D490a1D45C3835"],[Dt(_t.DragonSwap)]:["0x101e1B65Bb516FB5f4547C80BAe0b51f1b8D7a22"],[Dt(_t.SpookySwapSonic)]:["0xAd97B770ad64aE47fc7d64B3bD820dCDbF9ff7DA"],[Dt(_t.SpookySwap)]:["0x3924d62219483015f982b160d48c0fa5Fd436Cba"],[Dt(_t.SwapX)]:["0xE5012eBDe5e26EE3Ea41992154731a03023CF274"]},Bc={unit:Gt.Minutes,value:Vh},Y5=.25,K5="100",Xh="RePermitWitnessTransferFrom",Qh={RePermitWitnessTransferFrom:[{name:"permitted",type:"TokenPermissions"},{name:"spender",type:"address"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"},{name:"witness",type:"Order"}],Exchange:[{name:"adapter",type:"address"},{name:"ref",type:"address"},{name:"share",type:"uint32"},{name:"data",type:"bytes"}],Input:[{name:"token",type:"address"},{name:"amount",type:"uint256"},{name:"maxAmount",type:"uint256"}],Order:[{name:"reactor",type:"address"},{name:"executor",type:"address"},{name:"exchange",type:"Exchange"},{name:"swapper",type:"address"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"},{name:"chainid",type:"uint256"},{name:"exclusivity",type:"uint32"},{name:"epoch",type:"uint32"},{name:"slippage",type:"uint32"},{name:"freshness",type:"uint32"},{name:"input",type:"Input"},{name:"output",type:"Output"}],Output:[{name:"token",type:"address"},{name:"limit",type:"uint256"},{name:"stop",type:"uint256"},{name:"recipient",type:"address"}],TokenPermissions:[{name:"token",type:"address"},{name:"amount",type:"uint256"}]},od="https://www.orbs.com/dtwap-and-dlimit-faq/",Z5="https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP",X5="https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg",Q5="https://www.orbs.com/assets/img/common/logo.svg",J5="https://www.orbs.com/",ew="https://www.orbs.com/dtwap-dlimit-disclaimer";var Fc=(e=>(e.FRESHNESS="freshness",e.MIN_CHUNK_SIZE_USD="minChunkSizeUsd",e.ENV="env",e))(Fc||{});const Jh="-5",em="10",tm="-10",rm="5",tw="Something went wrong";function rw(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}function nw(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const sw={14:{dex:{spark:{type:"default:spark",adapter:"0xB18c633B6584A33E45a8840a759f56dF17117b1D",fee:"0xaeA8C3e1a129A77686E115b1a46D9aD8405F7D2b"}}},56:{dex:{thena:{type:"default:odos-v2",adapter:"0xB75218ba5A99bF57Fd02556B70F05A4A0f1Dbe67",fee:"0x15eBc8b5b3877512FFF23650188694A9a8891FAc"},pancake:{type:"p2:pancakeswap-v2",adapter:"0x654272F7e6e6E912D38650f783eFd44452fD6ee5",fee:"0x37A957f10F458e0d7fDECBE2917971b57F15c927"},newera:{type:"default:odos-v2",adapter:"0x845f459271D800f6Ab32D78400b8Aa18414E80b0",fee:"0x4E7454909eB6D539111D56b50d68897E933D2d11"}}},137:{dex:{quick:{type:"paraswap:paraswap-v5",adapter:"0x023fD6848234f2655818705237F77F02215FEfe5",fee:"0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f"},teafi:{type:"paraswap:paraswap-v5",adapter:"0xe95db7a60164B112C64cE67bA8587b1d4a0E0D29",fee:"0x04Ff96e2c4D62b5771795d307AD679a25b3D2D50"}}},143:{dex:{yowie:{type:"default:openocean-v2",adapter:"0x18bc9533c3539073B9A9acF12b0AbF7cB73e0F1f",fee:"0x6AF3eE77A3A3257777F5649aFa611b4C7Fd975Ef"}}},146:{dex:{spooky:{type:"default:magpie-v3",adapter:"0xdCee7FDdB932104329d528144Cd17A408722B7e2",fee:"0x840Df4684B35BC68BcdA3F6707A3c82A0D662f8b"},swapx:{type:"default:openocean-v2",adapter:"0xecc733D6F6f2DEa341832D650E30822118884FEb",fee:"0x6E03f7BC0f141894612AA017796096399623895F"},shadow:{type:"default:magpie-v3",adapter:"0x5f3E5F6ACCfc65243A01Da3E93b5A700285592C3",fee:"0xb9e3751fAF3187E1bC468E56a707a8A91754460e"}}},1329:{dex:{dragon:{type:"default:dragon",adapter:"0x02d9d5882129241b67ec21Ebc2C86e1BE9BC9890",fee:"0x0dc1E0525202b32e89bA78ed55b1e5cEdB751334"},nami:{type:"default:openocean-v2",adapter:"0x2D4A1237A98f8cb03C3C85960e859aA44036a306",fee:"0xeB58450e23632003f013568703F54446070E2E80"}}},8453:{dex:{quick:{type:"default:kyber-v2",adapter:"0xc73F03c929A123Ee2f3A98EC18BB240f03980AE5",fee:"0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f"}}},42161:{dex:{arbidex:{type:"default:odos-v2",adapter:"0xa734b32151108139e48dCA06eE721538d90A9Ef6",fee:"0xa0c11852f8A44e32F9EC10AD25986A53842f72Ca"},ramses:{type:"paraswap:paraswap-v5",adapter:"0x023fD6848234f2655818705237F77F02215FEfe5",fee:"0xB5BaCB60ECDa0bEF809B2A26eC9B4B926835D7af"},omni:{type:"paraswap:paraswap-v5",adapter:"0xa1baE146161223cd9dCa7137F68eb385934130BE",fee:"0xba5291526c30B097E9F1Fd1Be301E2ab6E0782aa"},chronos:{type:"default:odos-v2",adapter:"0x4Ff90F32aceD08b3e3257B018EA495Fd1Bfe4455",fee:"0x5729af83240EFecAa18eafaAE82961c2DD045Dbe"}}},43114:{dex:{blackhole:{type:"default:kyber-v2",adapter:"0x426ec4bc0d58B80959CDE77576a1942dd40592Fa",fee:"0x7f8B62520D9B5DA0ED517cc36e8dcb2a356f1928"}}},59144:{dex:{lynex:{type:"default:openocean",adapter:"0x4FF6A97A67fe395212f168f011D71fE79E4396f2",fee:"0xcb36ed1B1BfAD8F7FC9651f52d21f04A68677423"}}},80094:{dex:{kodiak:{type:"default:kodiak",adapter:"0xBbaa527Aac00b1Ee9A3909D4D8c4447630E29B1F",fee:"0xBA47Ec15aFbCF6e7e9F52900632049530bB6bAe4"}}},"*":{wm:"0x0005d5cE0dB57e5BE3b2b8b6FeB75f0ccd015000",repermit:"0x00002a9C4D9497df5Bd31768eC5d30eEf5405000",cosigner:"0x0007ec53404c423C935e830ec21903e184690000",reactor:"0x0006a959430e8fBB858D81B2D1140B0ae5c26001",executor:"0x000eBA869d76C618ddc4A6D685A0820A620Ce002",refinery:"0x000E474c0D7084EAA35A501035E73269f4b009A5",salt:{wm:"0xc9b46eae42dfeba3222a0315bf682f33cd5cc9d60c9625642e88406f8415f152",repermit:"0x4871dc9008e605821ea9677b65ea2a60ffb774afb31e0dcaea2e192880096be7",cosigner:"0x37576f2ac1d2a602f00777611edf6f0cbc27611b0980b29bc7856fa79b2b8073",reactor:"0x034169222370f2fd587ef8998082d762cceef58a272330215f5110ec0d76d400",executor:"0xea139bc421fa5e272bed3db74233b2e02077e0aacf8b855f87961e98f2fb467f",refinery:"0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec"}}};var id,nm;function aw(){if(nm)return id;nm=1;const e=sw,t=s=>nw(`./out/${s}.sol/${s}.json`).abi,r=()=>({wm:t("WM"),repermit:t("RePermit"),reactor:t("OrderReactor"),executor:t("Executor"),refinery:t("Refinery"),adapter:t("DefaultDexAdapter")});function n(s,a){if(!s||!(a!=null&&a.trim()))return;const{dex:o,...i}=e["*"]??{},c=e[s];if(!c)return;const{dex:l,...u}=c,d=l==null?void 0:l[a];if(d)return{...i,...u,...d}}return id={config:n,abis:r,raw:e},id}var sm=aw();const am=(e,t,r)=>{if(!e||!t||!r)return;const n=j(e).times(t),s=j(10).pow(r);return n.div(s).toFixed(0)},om=(e,t,r,n)=>{if(r||!n||!e||!t)return j(0).toString();const s=j(e).times(j(t)),a=j(10).pow(n),o=s.div(a);return j.max(1,o).integerValue(j.ROUND_FLOOR).toFixed(0)},im=(e,t,r,n)=>{if(e===ye.TWAP||e===ye.LIMIT)return"0";if(!n||!t||!r)return;const s=j(t).times(j(r)),a=j(10).pow(n),o=s.div(a);return j.max(1,o).integerValue(j.ROUND_FLOOR).toFixed(0)||"0"},cm=(e,t,r,n)=>{const s=Zn(r)*2*t,a=$5(s);return n||(e===ye.LIMIT?{unit:Gt.Days,value:7}:e===ye.STOP_LOSS||e===ye.TAKE_PROFIT?{unit:Gt.Days,value:1}:{unit:a,value:Number(j(s/a).toFixed(2))})},lm=(e,t,r)=>t!==ye.TWAP?1:r!==void 0?r:e,um=(e,t,r,n)=>{if(!t||!r||!n)return 1;const a=j(r).times(t).div(n).integerValue(j.ROUND_FLOOR).toNumber(),o=Math.floor(ka/2/Zn(e));return Math.max(1,Math.min(a,o))},ow=e=>cd(e)/1e3/60,dm=(e,t)=>e+Zn(t)+6e4,cd=e=>e.bidDelaySeconds*1e3*2,pm=(e,t)=>!e||!t?"0":j(e).div(t).integerValue(j.ROUND_FLOOR).toFixed(0),iw=(e,t)=>({isError:!(e.unit===Bc.unit&&e.value===Bc.value)&&Zn(e)*t>ka,value:Math.floor(ka/t)}),fm=(e="",t="",r)=>{if(r===ye.STOP_LOSS)return{isError:j(t||0).gte(j(e||0)),value:e}},hm=(e="",t="",r)=>{if(r===ye.TAKE_PROFIT)return{isError:j(t||0).lte(j(e||0)),value:e}},mm=(e="",t="",r=!1,n)=>{if(!r&&n===ye.STOP_LOSS)return{isError:j(t||0).gte(j(e||0)),value:e}},bm=(e="",t="",r=!1,n)=>{if(!r&&n===ye.TAKE_PROFIT)return{isError:j(t||0).gte(j(e||0)),value:e}},ym=(e,t)=>e===ye.STOP_LOSS||e===ye.TAKE_PROFIT?{isError:Zn(t)>5184e6,value:5184e6}:{isError:Zn(t)>ka,value:ka},gm=e=>({isError:Zn(e)<ad,value:ad}),xm=e=>({isError:Zn(e)<Pc,value:Pc}),wm=(e,t,r)=>({isError:j(t||0).multipliedBy(e||0).isLessThan(r),value:r}),vm=(e,t,r)=>({isError:r===ye.TWAP&&j(e).isGreaterThan(t),value:t}),ld=(e,t=0)=>{var o;const r=(o=Object.entries(_t).find(([i,c])=>c.chainId===t&&i.toLowerCase().indexOf(e.toLowerCase())>=0))==null?void 0:o[1],{abi:n,...s}=sm.config(t,e);return{...s,partner:e,twapConfig:r}},Em=()=>{const e=sm.raw;return Object.entries(e).filter(([t])=>t!=="*").flatMap(([t,r])=>{const n=r==null?void 0:r.dex;return!n||typeof n!="object"?[]:Object.entries(n).map(([s])=>({chainId:Number(t),name:s,config:ld(s,Number(t))}))}).sort((t,r)=>t.name.localeCompare(r.name))},km=({chainId:e,srcToken:t,dstToken:r,srcAmount:n,deadlineMillis:s,fillDelayMillis:a,slippage:o,account:i,srcAmountPerTrade:c,dstMinAmountPerTrade:l="0",triggerAmountPerTrade:u="0",config:d,module:f})=>{const h=Date.now().toString(),y=parseInt((a/1e3).toFixed(0)),g=G5(s/1e3),E=Fo(Fc.FRESHNESS),v=E?parseInt(E):60,w=f===ye.TAKE_PROFIT?Ic:u,T=f===ye.TAKE_PROFIT?u:l,C={permitted:{token:t,amount:n},spender:d.reactor,nonce:h,deadline:g,witness:{reactor:d.reactor,executor:d.executor,exchange:{adapter:d.adapter,ref:d.fee,share:0,data:"0x"},swapper:i,nonce:h,deadline:g,chainid:e,exclusivity:0,epoch:y,slippage:o,freshness:v,input:{token:t,amount:c,maxAmount:n},output:{token:r,limit:j(T||0).toFixed(),stop:j(w||0).toFixed(),recipient:i}}};return{domain:{name:"RePermit",version:"1",chainId:e,verifyingContract:d.repermit},order:C,types:Qh,primaryType:Xh}},cw={version:"0.0.25"},lw=`https://bi.orbs.network/putes/twap-ui-${.7}`,Cm=cw.version;let ud="unknown";function Tm(e){ud=e}function dd(){const e=Math.random().toString(36).substring(2,16),t=Math.random().toString(36).substring(2,16),r=Date.now().toString(36);return`id_${e+t+r}`}const uw=(e,t,r)=>{var n,s,a,o,i,c,l,u,d;return{spotVersion:Cm,partner:e.partner,adapter:e.adapter,cosigner:e.cosigner,executor:e.executor,fee:e.fee,reactor:e.reactor,refinery:e.refinery,repermit:e.repermit,router:e.router,type:e.type,wm:e.wm,chainName:((n=e.twapConfig)==null?void 0:n.chainName)||"",chainId:r||0,twapVersion:((s=e.twapConfig)==null?void 0:s.twapVersion)||0,twapAddress:((a=e.twapConfig)==null?void 0:a.twapAddress)||"",lensAddress:((o=e.twapConfig)==null?void 0:o.lensAddress)||"",bidDelaySeconds:((i=e.twapConfig)==null?void 0:i.bidDelaySeconds)||0,minChunkSizeUsd:t,name:((c=e.twapConfig)==null?void 0:c.name)||"",exchangeAddress:((l=e.twapConfig)==null?void 0:l.exchangeAddress)||"",exchangeType:((u=e.twapConfig)==null?void 0:u.exchangeType)||"",pathfinderKey:((d=e.twapConfig)==null?void 0:d.pathfinderKey)||""}},Sm=async e=>{try{await fetch(lw,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then()}catch(t){console.error("Failed to send BI",t)}};class dw{constructor(){Yu(this,"timeout");Yu(this,"config");Yu(this,"data",{_id:dd()})}async updateAndSend(t={},r=!1,n){try{this.data={...this.data,...t},r?(await Sm(this.data),n==null||n()):(clearTimeout(this.timeout),this.timeout=setTimeout(()=>{Sm(this.data),n==null||n()},1e3))}catch(s){console.error("Failed to update and send BI",s)}}onCancelOrderRequest(t,r){this.updateAndSend({cancelOrderIdsV1:r===1?t:void 0,cancelOrderIdsV2:r===2?t:void 0,action:"cancel order",cancelOrderSuccess:!1,cancelOrderTxHash:void 0,actionError:void 0})}onCancelOrderSuccess(t){this.updateAndSend({cancelOrderTxHash:t,cancelOrderSuccess:!0})}onCancelOrderError(t){this.onTxError(t)}onWrapSuccess(t){this.updateAndSend({wrapTxHash:t})}onWrapRequest(){this.updateAndSend({action:"wrap"})}onWrapError(t){this.onTxError(t)}onApproveRequest(){this.updateAndSend({action:"approve"})}onApproveSuccess(t){this.updateAndSend({approvalTxHash:t})}onApproveError(t){this.onTxError(t)}onCrash(t){var r;this.updateAndSend({action:"crash",actionError:((r=t==null?void 0:t.message)==null?void 0:r.toLowerCase())||(t==null?void 0:t.toLowerCase())})}onTxError(t){var n;const r=((n=t==null?void 0:t.message)==null?void 0:n.toLowerCase())||(t==null?void 0:t.toLowerCase());this.updateAndSend({actionError:r})}onRequestOrder({account:t,chainId:r,module:n,srcToken:s,dstToken:a,fromTokenAmount:o,srcChunkAmount:i,minDstAmountOutPerTrade:c="",triggerPricePerTrade:l="",deadline:u,fillDelay:d,slippage:f,isMarketOrder:h,chunksAmount:y}){this.updateAndSend({toTokenAddress:a.address,toTokenSymbol:a.symbol,fromTokenAddress:s.address,fromTokenSymbol:s.symbol,fromTokenAmount:o,chunksAmount:y,srcChunkAmount:i,minDstAmountOutPerTrade:c,triggerPricePerTrade:l,deadline:u,fillDelay:d,slippage:f,chainId:r,walletAddress:t,module:n,orderType:h?"market":"limit",actionError:void 0})}onSignOrderRequest(t){this.updateAndSend({action:"sign order",order:t})}onSignOrderError(t){this.onTxError(t)}onSignOrderSuccess(t){this.updateAndSend({action:"sign order",signature:t})}init(t,r,n){var s;this.config=t,n!==((s=this.data)==null?void 0:s.chainId)&&(this.data={_id:dd(),action:"module-import",uiVersion:ud,...uw(t,r,n),origin:window.location.origin},this.updateAndSend(this.data))}onCreateOrderError(t){this.onTxError(t)}onCreateOrderRequest(){this.updateAndSend({action:"create order"})}async onCreateOrderSuccess(t){this.updateAndSend({orderHash:t,orderSuccess:!0},void 0,()=>{this.data={_id:dd(),action:"reset",uiVersion:ud,origin:this.data.origin,spotVersion:Cm,partner:this.data.partner,adapter:this.data.adapter,cosigner:this.data.cosigner,executor:this.data.executor,fee:this.data.fee,reactor:this.data.reactor,refinery:this.data.refinery,repermit:this.data.repermit,router:this.data.router,type:this.data.type,wm:this.data.wm,chainName:this.data.chainName||"",chainId:this.data.chainId||0,twapVersion:this.data.twapVersion||0,twapAddress:this.data.twapAddress||"",lensAddress:this.data.lensAddress||"",bidDelaySeconds:this.data.bidDelaySeconds||0,minChunkSizeUsd:this.data.minChunkSizeUsd||0,name:this.data.name||"",exchangeAddress:this.data.exchangeAddress||"",exchangeType:this.data.exchangeType||"",pathfinderKey:this.data.pathfinderKey||""}})}onLoad(){this.updateAndSend({action:"module-import",origin:window.location.origin})}}const dt=new dw,pw=e=>{var o;const t=j(e.order.witness.output.limit||0).gt(1),r=e.order.witness.output.stop,n=j(r||0).eq(Ic),s=j(r||0).gt(0),a=((o=e.metadata.chunks)==null?void 0:o.length)||j(e.order.witness.input.maxAmount).div(j(e.order.witness.input.amount)).toNumber();return n?Ge.TAKE_PROFIT:s?t?Ge.STOP_LOSS_LIMIT:Ge.STOP_LOSS_MARKET:t?a>=1&&t?Ge.TWAP_LIMIT:t?Ge.LIMIT:Ge.TWAP_MARKET:Ge.TWAP_MARKET},fw=e=>{var s;const t=((s=e.metadata.chunks)==null?void 0:s.filter(a=>a.status==="success").length)||0,r=e.metadata.expectedChunks||0,n=j(t).dividedBy(r).toNumber();return n>=.99?100:n<=0?0:Number((n*100).toFixed(2))},hw=(e,t)=>e.metadata.status==="completed"||t>=99?ct.Completed:["pending","eligible"].includes(e.metadata.status)?ct.Open:e.metadata.description.toLowerCase()==="cancelled by contract"?ct.Canceled:ct.Expired,mw=e=>{var r;return(((r=e.metadata.chunks)==null?void 0:r.filter(n=>n.status==="success"))||[]).map(n=>({inAmount:n.inAmount,outAmount:n.outAmount,timestamp:new Date(n.timestamp).getTime(),txHash:n.txHash}))},bw=(e,t)=>{var n;const r=e.length;return r>=t&&((n=e[r-1])==null?void 0:n.timestamp)||0},yw=e=>j(e.metadata.displayOnlyInputTokenPriceUSD).dividedBy(1e18).toFixed(),pd=e=>{const t=fw(e),r=j(e.order.witness.output.stop||0).eq(Ic),n=Number(e.order.witness.output.limit)===1?"":e.order.witness.output.limit,s=e.metadata.expectedChunks||1,a=mw(e);return{id:e.hash,hash:e.hash,version:2,type:pw(e),maker:e.order.witness.swapper,progress:t,srcAmountFilled:a.reduce((o,i)=>o.plus(i.inAmount),new j(0)).toFixed()||"",dstAmountFilled:a.reduce((o,i)=>o.plus(i.outAmount),new j(0)).toFixed()||"",fills:a,srcTokenAddress:e.order.witness.input.token,dstTokenAddress:e.order.witness.output.token,orderDollarValueIn:yw(e),fillDelay:e.order.witness.epoch*1e3,deadline:Number(e.order.deadline)*1e3,createdAt:new Date(e.timestamp).getTime(),srcAmount:e.order.witness.input.maxAmount,dstMinAmountPerTrade:r?"":n,triggerPricePerTrade:r?n:j(e.order.witness.output.stop||"").toFixed(),dstMinAmountTotal:r?"":j(n).multipliedBy(s).toFixed(),srcAmountPerTrade:e.order.witness.input.amount,totalTradesAmount:s,isMarketPrice:j(n||0).lte(1),chainId:e.order.witness.chainid,filledOrderTimestamp:bw(a,s),status:hw(e,t),rawOrder:e}},gw=async({chainId:e,signal:t,account:r,exchange:n})=>{try{if(!r)return[];const s=n?`&exchange=${n}`:"";return(await(await fetch(`${sd()}/orders?swapper=${r}&chainId=${e}${s}`,{signal:t})).json()).orders.map(pd)}catch{return[]}},Am=async(e,t)=>{try{const r={signature:t,order:e,status:"pending"};console.log("body",r),dt.onCreateOrderRequest();const s=await(await fetch(`${sd()}/orders/new`,{method:"POST",body:JSON.stringify(r)})).json();if(!s.success)throw new Error(`error:${s.message}, code:${s.code}`);const a=pd(s.signedOrder);return dt.onCreateOrderSuccess(a.id),a}catch(r){throw dt.onCreateOrderError(r),console.error(r),r}},xn=(e,t)=>e&&e.length?e.map(t||(r=>`${r}`)):void 0,xw=e=>{if(e)return qh[e]},fd=async({chainId:e,buildQuery:t,extractResults:r,signal:n,retries:s=1,limit:a=1e3,page:o})=>{const i=xw(e);if(!i)throw new Tw;const c=async d=>{let f=0;for(;f<=s;)try{const h=await fetch(i,{method:"POST",body:JSON.stringify({query:d}),signal:n,headers:{"Content-Type":"application/json"}});if(!h.ok)throw new Error(`HTTP error: ${h.status}`);const y=await h.json();if(y.errors)throw new Error(y.errors[0].message);return r(y)}catch(h){if(f===s)throw h;await new Promise(y=>setTimeout(y,500*2**f)),f++}return[]};let l=0;const u=[];if(o!==void 0){const d=t(o,a);try{return await c(d)}catch{console.warn(`Page ${o} failed, retrying one final time...`);try{return await c(d)}catch{return[]}}}for(;;){const d=t(l,a);let f;try{f=await c(d)}catch{console.warn(`Page ${l} failed, retrying one final time...`);try{f=await c(d)}catch{return u}}if(u.push(...f),f.length<a)break;l++}return u},Pm=e=>e.map(t=>({inAmount:t.srcAmountIn,outAmount:t.dstAmountOut,timestamp:t.timestamp,txHash:t.transactionHash})),Im=(e,t)=>{const r=j(e||0).gt(1);return!r&&t===1?Ge.TWAP_MARKET:t>1&&r?Ge.TWAP_LIMIT:r?Ge.LIMIT:Ge.TWAP_MARKET},ww=(e,t,r,n)=>{var f;const s=Pm(r||[]),a=new j(e.ask_srcAmount||0).div(e.ask_srcBidAmount).integerValue(j.ROUND_FLOOR).toNumber(),i=(r==null?void 0:r.length)===a?(f=r==null?void 0:r[(r==null?void 0:r.length)-1])==null?void 0:f.timestamp:void 0,c=s.reduce((h,y)=>h.plus(y.inAmount),new j(0)).toFixed(),l=s.reduce((h,y)=>h.plus(y.outAmount),new j(0)).toFixed(),u=Bm(e.ask_srcAmount,c),d=Im(e.ask_dstMinAmount,a);return{version:1,id:e.Contract_id.toString(),hash:"",type:Im(e.ask_dstMinAmount,a),srcTokenAddress:e.ask_srcToken,dstTokenAddress:e.ask_dstToken,exchangeAddress:e.exchange,twapAddress:e.twapAddress,maker:e.maker,progress:u,dstAmountFilled:l,srcAmountFilled:c,orderDollarValueIn:j(e.dollarValueIn||0).toFixed(6),srcAmount:e.ask_srcAmount,dstMinAmountTotal:j(e.ask_dstMinAmount).multipliedBy(a).toString(),fills:s,fillDelay:e.ask_fillDelay,deadline:e.ask_deadline*1e3,createdAt:new Date(e.timestamp).getTime(),dstMinAmountPerTrade:j(e.ask_dstMinAmount).eq(1)?"":e.ask_dstMinAmount,triggerPricePerTrade:"",srcAmountPerTrade:e.ask_srcBidAmount,txHash:e.transactionHash,totalTradesAmount:a,isMarketPrice:[Ge.TWAP_MARKET].includes(d),chainId:t,filledOrderTimestamp:i||0,status:n,rawOrder:e}},vw=e=>{var d;if(!e)return"";const t=xn(e.accounts,f=>`"${f.toLowerCase()}"`),r=xn(j5(e.configs),f=>`"${f.toLowerCase()}"`),n=xn(e.inTokenSymbols,f=>`"${f.toUpperCase()}"`),s=xn(e.outTokenSymbols,f=>`"${f.toUpperCase()}"`),a=xn(e.inTokenAddresses,f=>`"${f.toLowerCase()}"`),o=xn(e.outTokenAddresses,f=>`"${f.toLowerCase()}"`),i=xn(e.transactionHashes,f=>`"${f.toLowerCase()}"`),c=xn(e.orderIds,f=>`"${f}"`),l=r!=null&&r.length?"":xn((d=e.configs)==null?void 0:d.map(f=>f.twapAddress),f=>`"${f.toLowerCase()}"`),u=e.minDollarValueIn;return[r?`exchange_in: [${r.join(", ")}]`:"",l?`twapAddress_in: [${l.join(", ")}]`:"",t?`maker_in: [${t.join(", ")}]`:"",i?`transactionHash_in: [${i.join(", ")}]`:"",c?`Contract_id_in: [${c.join(", ")}]`:"",u?`dollarValueIn_gte: ${u}`:"",n?`srcTokenSymbol_in: [${n.join(", ")}]`:"",s?`dstTokenSymbol_in: [${s.join(", ")}]`:"",a?`srcTokenAddress_in: [${a.join(", ")}]`:"",o?`dstTokenAddress_in: [${o.join(", ")}]`:"",e!=null&&e.startDate?`blockTimestamp_gte: ${e.startDate}`:"",e!=null&&e.endDate?`blockTimestamp_lte: ${e.endDate}`:"",(e==null?void 0:e.orderType)==="limit"?"ask_dstMinAmount_gt: 1":"",(e==null?void 0:e.orderType)==="market"?"ask_dstMinAmount_lte: 1":""].filter(Boolean).join(", ")};async function Ew({chainId:e,signal:t,page:r,limit:n,filters:s}){const a=n||1e3,o=vw(s);return await fd({chainId:e,signal:t,limit:a,page:r,buildQuery:(c,l)=>`
2
2
  {
3
3
  orderCreateds(
4
4
  ${o?`where: { ${o} }`:""},
@@ -61,14 +61,14 @@
61
61
  dollarValueOut
62
62
  }
63
63
  }
64
- `,extractResults:d=>{var f;return(((f=d.data)==null?void 0:f.orderFilleds)||[]).map(h=>({...h,timestamp:new Date(h.timestamp).getTime()}))}})};class Tw extends Error{constructor(){super("No graph endpoint found"),this.name="NoGraphEndpointError"}}const Sw=async({chainId:e,signal:t,page:r,limit:n,filters:s})=>{try{const a=await Ew({chainId:e,signal:t,page:r,limit:n,filters:s}),[o,i]=await Promise.all([Cw({chainId:e,orders:a,signal:t}),kw({chainId:e,orders:a,signal:t})]);return a.map(l=>{const u=o==null?void 0:o.filter(d=>d.TWAP_id===Number(l.Contract_id)&&Ps(d.exchange,l.exchange)&&Ps(d.twapAddress,l.twapAddress));return ww(l,e,u,Aw(l,u||[],i))}).sort((l,u)=>u.createdAt-l.createdAt)}catch{return[]}},Aw=(e,t,r)=>{var i;const n=(i=r==null?void 0:r.find(c=>c.twapId===e.Contract_id.toString()&&Ps(c.twapAddress,e.twapAddress)))==null?void 0:i.status,a=Pm(t).reduce((c,l)=>c.plus(l.inAmount),new j(0)).toFixed(),o=Bm(e.ask_srcAmount,a);return Pw(o,e.ask_deadline*1e3,n)},Bm=(e,t)=>{if(!t||!e)return 0;const r=j(t).dividedBy(e).toNumber();return r>=.99?100:r<=0?0:Number((r*100).toFixed(2))},Pw=(e,t,r)=>e===100?ct.Completed:r==="CANCELED"?ct.Canceled:r==="COMPLETED"?ct.Completed:t>Date.now()?ct.Open:ct.Expired,Fm=async({signal:e,page:t,chainId:r,limit:n,config:s,account:a})=>(await Promise.all([s?Sw({chainId:r,signal:e,page:t,limit:n,filters:{accounts:[a],configs:s.twapConfig?[s.twapConfig]:[]}}):Promise.resolve([]),gw({chainId:r,signal:e,account:a,exchange:s==null?void 0:s.adapter})]).then(([c,l])=>[...c,...l])).sort((c,l)=>l.createdAt-c.createdAt),Iw={version:"0.0.57"};var Ca=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(){}},Bw={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Fw=(m5=class{constructor(){le(this,fn,Bw);le(this,da,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&M(this,da)&&e!==M(this,fn)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:M(this,fn),provider:e}),J(this,fn,e),process.env.NODE_ENV!=="production"&&J(this,da,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&J(this,da,!0),M(this,fn).setTimeout(e,t)}clearTimeout(e){M(this,fn).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&J(this,da,!0),M(this,fn).setInterval(e,t)}clearInterval(e){M(this,fn).clearInterval(e)}},fn=new WeakMap,da=new WeakMap,m5),Fs=new Fw;function Uw(e){setTimeout(e,0)}var Us=typeof window>"u"||"Deno"in globalThis;function jt(){}function Ow(e,t){return typeof e=="function"?e(t):e}function md(e){return typeof e=="number"&&e>=0&&e!==1/0}function Um(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xn(e,t){return typeof e=="function"?e(t):e}function vr(e,t){return typeof e=="function"?e(t):e}function Om(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:a,queryKey:o,stale:i}=e;if(o){if(n){if(t.queryHash!==bd(o,t.options))return!1}else if(!Uo(t.queryKey,o))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof i=="boolean"&&t.isStale()!==i||s&&s!==t.state.fetchStatus||a&&!a(t))}function _m(e,t){const{exact:r,status:n,predicate:s,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Os(t.options.mutationKey)!==Os(a))return!1}else if(!Uo(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function bd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Os)(e)}function Os(e){return JSON.stringify(e,(t,r)=>gd(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function Uo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Uo(e[r],t[r])):!1}var _w=Object.prototype.hasOwnProperty;function yd(e,t){if(e===t)return e;const r=Dm(e)&&Dm(t);if(!r&&!(gd(e)&&gd(t)))return t;const s=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,i=r?new Array(o):{};let c=0;for(let l=0;l<o;l++){const u=r?l:a[l],d=e[u],f=t[u];if(d===f){i[u]=d,(r?l<s:_w.call(e,u))&&c++;continue}if(d===null||f===null||typeof d!="object"||typeof f!="object"){i[u]=f;continue}const h=yd(d,f);i[u]=h,h===d&&c++}return s===o&&c===s?e:i}function Uc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Dm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gd(e){if(!Mm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Mm(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Mm(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dw(e){return new Promise(t=>{Fs.setTimeout(t,e)})}function xd(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return yd(e,t)}catch(n){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${n}`),n}return yd(e,t)}return t}function Mw(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Nw(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Oc=Symbol();function Nm(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Oc&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Oc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Lm(e,t){return typeof e=="function"?e(...t):!!e}var Lw=(b5=class extends Ca{constructor(){super();le(this,pa);le(this,gs);le(this,go);J(this,go,t=>{if(!Us&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){M(this,gs)||this.setEventListener(M(this,go))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,gs))==null||t.call(this),J(this,gs,void 0))}setEventListener(t){var r;J(this,go,t),(r=M(this,gs))==null||r.call(this),J(this,gs,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){M(this,pa)!==t&&(J(this,pa,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof M(this,pa)=="boolean"?M(this,pa):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},pa=new WeakMap,gs=new WeakMap,go=new WeakMap,b5),wd=new Lw;function vd(){let e,t;const r=new Promise((s,a)=>{e=s,t=a});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}var zw=Uw;function Rw(){let e=[],t=0,r=i=>{i()},n=i=>{i()},s=zw;const a=i=>{t?e.push(i):s(()=>{r(i)})},o=()=>{const i=e;e=[],i.length&&s(()=>{n(()=>{i.forEach(c=>{r(c)})})})};return{batch:i=>{let c;t++;try{c=i()}finally{t--,t||o()}return c},batchCalls:i=>(...c)=>{a(()=>{i(...c)})},schedule:a,setNotifyFunction:i=>{r=i},setBatchNotifyFunction:i=>{n=i},setScheduler:i=>{s=i}}}var kt=Rw(),Hw=(y5=class extends Ca{constructor(){super();le(this,xo,!0);le(this,xs);le(this,wo);J(this,wo,t=>{if(!Us&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){M(this,xs)||this.setEventListener(M(this,wo))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,xs))==null||t.call(this),J(this,xs,void 0))}setEventListener(t){var r;J(this,wo,t),(r=M(this,xs))==null||r.call(this),J(this,xs,t(this.setOnline.bind(this)))}setOnline(t){M(this,xo)!==t&&(J(this,xo,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return M(this,xo)}},xo=new WeakMap,xs=new WeakMap,wo=new WeakMap,y5),_c=new Hw;function $w(e){return Math.min(1e3*2**e,3e4)}function zm(e){return(e??"online")==="online"?_c.isOnline():!0}var Ed=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Rm(e){let t=!1,r=0,n;const s=vd(),a=()=>s.status!=="pending",o=g=>{var E;if(!a()){const v=new Ed(g);f(v),(E=e.onCancel)==null||E.call(e,v)}},i=()=>{t=!0},c=()=>{t=!1},l=()=>wd.isFocused()&&(e.networkMode==="always"||_c.isOnline())&&e.canRun(),u=()=>zm(e.networkMode)&&e.canRun(),d=g=>{a()||(n==null||n(),s.resolve(g))},f=g=>{a()||(n==null||n(),s.reject(g))},h=()=>new Promise(g=>{var E;n=v=>{(a()||l())&&g(v)},(E=e.onPause)==null||E.call(e)}).then(()=>{var g;n=void 0,a()||(g=e.onContinue)==null||g.call(e)}),y=()=>{if(a())return;let g;const E=r===0?e.initialPromise:void 0;try{g=E??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var z;if(a())return;const w=e.retry??(Us?0:3),T=e.retryDelay??$w,C=typeof T=="function"?T(r,v):T,_=w===!0||typeof w=="number"&&r<w||typeof w=="function"&&w(r,v);if(t||!_){f(v);return}r++,(z=e.onFail)==null||z.call(e,r,v),Dw(C).then(()=>l()?void 0:h()).then(()=>{t?f(v):y()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(n==null||n(),s),cancelRetry:i,continueRetry:c,canStart:u,start:()=>(u()?y():h().then(y),s)}}var Hm=(g5=class{constructor(){le(this,fa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),md(this.gcTime)&&J(this,fa,Fs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Us?1/0:300*1e3))}clearGcTimeout(){M(this,fa)&&(Fs.clearTimeout(M(this,fa)),J(this,fa,void 0))}},fa=new WeakMap,g5),Gw=(x5=class extends Hm{constructor(t){super();le(this,qr);le(this,ha);le(this,vo);le(this,Br);le(this,ma);le(this,Bt);le(this,xc);le(this,ba);J(this,ba,!1),J(this,xc,t.defaultOptions),this.setOptions(t.options),this.observers=[],J(this,ma,t.client),J(this,Br,M(this,ma).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,J(this,ha,jm(this.options)),this.state=t.state??M(this,ha),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,Bt))==null?void 0:t.promise}setOptions(t){if(this.options={...M(this,xc),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=jm(this.options);r.data!==void 0&&(this.setState(Gm(r.data,r.dataUpdatedAt)),J(this,ha,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,Br).remove(this)}setData(t,r){const n=xd(this.state.data,t,this.options);return Ae(this,qr,Yn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Ae(this,qr,Yn).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=M(this,Bt))==null?void 0:n.promise;return(s=M(this,Bt))==null||s.cancel(t),r?r.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,ha))}isActive(){return this.observers.some(t=>vr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Oc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Xn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Um(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=M(this,Bt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=M(this,Bt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,Br).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(M(this,Bt)&&(M(this,ba)?M(this,Bt).cancel({revert:!0}):M(this,Bt).cancelRetry()),this.scheduleGc()),M(this,Br).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ae(this,qr,Yn).call(this,{type:"invalidate"})}async fetch(t,r){var c,l,u,d,f,h,y,g,E,v,w,T;if(this.state.fetchStatus!=="idle"&&((c=M(this,Bt))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(M(this,Bt))return M(this,Bt).continueRetry(),M(this,Bt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(_=>_.options.queryFn);C&&this.setOptions(C.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,s=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(J(this,ba,!0),n.signal)})},a=()=>{const C=Nm(this.options,r),z=(()=>{const S={client:M(this,ma),queryKey:this.queryKey,meta:this.meta};return s(S),S})();return J(this,ba,!1),this.options.persister?this.options.persister(C,z,this):C(z)},i=(()=>{const C={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:M(this,ma),state:this.state,fetchFn:a};return s(C),C})();(l=this.options.behavior)==null||l.onFetch(i,this),J(this,vo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=i.fetchOptions)==null?void 0:u.meta))&&Ae(this,qr,Yn).call(this,{type:"fetch",meta:(d=i.fetchOptions)==null?void 0:d.meta}),J(this,Bt,Rm({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,onCancel:C=>{C instanceof Ed&&C.revert&&this.setState({...M(this,vo),fetchStatus:"idle"}),n.abort()},onFail:(C,_)=>{Ae(this,qr,Yn).call(this,{type:"failed",failureCount:C,error:_})},onPause:()=>{Ae(this,qr,Yn).call(this,{type:"pause"})},onContinue:()=>{Ae(this,qr,Yn).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}));try{const C=await M(this,Bt).start();if(C===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(C),(h=(f=M(this,Br).config).onSuccess)==null||h.call(f,C,this),(g=(y=M(this,Br).config).onSettled)==null||g.call(y,C,this.state.error,this),C}catch(C){if(C instanceof Ed){if(C.silent)return M(this,Bt).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Ae(this,qr,Yn).call(this,{type:"error",error:C}),(v=(E=M(this,Br).config).onError)==null||v.call(E,C,this),(T=(w=M(this,Br).config).onSettled)==null||T.call(w,this.state.data,C,this),C}finally{this.scheduleGc()}}},ha=new WeakMap,vo=new WeakMap,Br=new WeakMap,ma=new WeakMap,Bt=new WeakMap,xc=new WeakMap,ba=new WeakMap,qr=new WeakSet,Yn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...$m(n.data,this.options),fetchMeta:t.meta??null};case"success":const s={...n,...Gm(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,vo,t.manual?s:void 0),s;case"error":const a=t.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),kt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),M(this,Br).notify({query:this,type:"updated",action:t})})},x5);function $m(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zm(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Gm(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function jm(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var jw=(w5=class extends Ca{constructor(t,r){super();le(this,We);le(this,sr);le(this,Oe);le(this,wc);le(this,qt);le(this,ya);le(this,Eo);le(this,Gn);le(this,ws);le(this,vc);le(this,ko);le(this,Co);le(this,ga);le(this,xa);le(this,vs);le(this,To,new Set);this.options=r,J(this,sr,t),J(this,ws,null),J(this,Gn,vd()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,Oe).addObserver(this),Vm(M(this,Oe),this.options)?Ae(this,We,Cc).call(this):this.updateResult(),Ae(this,We,Ah).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return kd(M(this,Oe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return kd(M(this,Oe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ae(this,We,Ph).call(this),Ae(this,We,Ih).call(this),M(this,Oe).removeObserver(this)}setOptions(t){const r=this.options,n=M(this,Oe);if(this.options=M(this,sr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof vr(this.options.enabled,M(this,Oe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ae(this,We,Bh).call(this),M(this,Oe).setOptions(this.options),r._defaulted&&!Uc(this.options,r)&&M(this,sr).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,Oe),observer:this});const s=this.hasListeners();s&&Wm(M(this,Oe),n,this.options,r)&&Ae(this,We,Cc).call(this),this.updateResult(),s&&(M(this,Oe)!==n||vr(this.options.enabled,M(this,Oe))!==vr(r.enabled,M(this,Oe))||Xn(this.options.staleTime,M(this,Oe))!==Xn(r.staleTime,M(this,Oe)))&&Ae(this,We,Ch).call(this);const a=Ae(this,We,Th).call(this);s&&(M(this,Oe)!==n||vr(this.options.enabled,M(this,Oe))!==vr(r.enabled,M(this,Oe))||a!==M(this,vs))&&Ae(this,We,Sh).call(this,a)}getOptimisticResult(t){const r=M(this,sr).getQueryCache().build(M(this,sr),t),n=this.createResult(r,t);return Ww(this,n)&&(J(this,qt,n),J(this,Eo,this.options),J(this,ya,M(this,Oe).state)),n}getCurrentResult(){return M(this,qt)}trackResult(t,r){return new Proxy(t,{get:(n,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&M(this,Gn).status==="pending"&&M(this,Gn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,s))})}trackProp(t){M(this,To).add(t)}getCurrentQuery(){return M(this,Oe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=M(this,sr).defaultQueryOptions(t),n=M(this,sr).getQueryCache().build(M(this,sr),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return Ae(this,We,Cc).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,qt)))}createResult(t,r){var b;const n=M(this,Oe),s=this.options,a=M(this,qt),o=M(this,ya),i=M(this,Eo),l=t!==n?t.state:M(this,wc),{state:u}=t;let d={...u},f=!1,h;if(r._optimisticResults){const x=this.hasListeners(),A=!x&&Vm(t,r),I=x&&Wm(t,n,r,s);(A||I)&&(d={...d,...$m(u.data,t.options)}),r._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:y,errorUpdatedAt:g,status:E}=d;h=d.data;let v=!1;if(r.placeholderData!==void 0&&h===void 0&&E==="pending"){let x;a!=null&&a.isPlaceholderData&&r.placeholderData===(i==null?void 0:i.placeholderData)?(x=a.data,v=!0):x=typeof r.placeholderData=="function"?r.placeholderData((b=M(this,Co))==null?void 0:b.state.data,M(this,Co)):r.placeholderData,x!==void 0&&(E="success",h=xd(a==null?void 0:a.data,x,r),f=!0)}if(r.select&&h!==void 0&&!v)if(a&&h===(o==null?void 0:o.data)&&r.select===M(this,vc))h=M(this,ko);else try{J(this,vc,r.select),h=r.select(h),h=xd(a==null?void 0:a.data,h,r),J(this,ko,h),J(this,ws,null)}catch(x){J(this,ws,x)}M(this,ws)&&(y=M(this,ws),h=M(this,ko),g=Date.now(),E="error");const w=d.fetchStatus==="fetching",T=E==="pending",C=E==="error",_=T&&w,z=h!==void 0,m={status:E,fetchStatus:d.fetchStatus,isPending:T,isSuccess:E==="success",isError:C,isInitialLoading:_,isLoading:_,data:h,dataUpdatedAt:d.dataUpdatedAt,error:y,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!T,isLoadingError:C&&!z,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:C&&z,isStale:Cd(t,r),refetch:this.refetch,promise:M(this,Gn),isEnabled:vr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const x=F=>{m.status==="error"?F.reject(m.error):m.data!==void 0&&F.resolve(m.data)},A=()=>{const F=J(this,Gn,m.promise=vd());x(F)},I=M(this,Gn);switch(I.status){case"pending":t.queryHash===n.queryHash&&x(I);break;case"fulfilled":(m.status==="error"||m.data!==I.value)&&A();break;case"rejected":(m.status!=="error"||m.error!==I.reason)&&A();break}}return m}updateResult(){const t=M(this,qt),r=this.createResult(M(this,Oe),this.options);if(J(this,ya,M(this,Oe).state),J(this,Eo,this.options),M(this,ya).data!==void 0&&J(this,Co,M(this,Oe)),Uc(r,t))return;J(this,qt,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!M(this,To).size)return!0;const o=new Set(a??M(this,To));return this.options.throwOnError&&o.add("error"),Object.keys(M(this,qt)).some(i=>{const c=i;return M(this,qt)[c]!==t[c]&&o.has(c)})};Ae(this,We,O5).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ae(this,We,Ah).call(this)}},sr=new WeakMap,Oe=new WeakMap,wc=new WeakMap,qt=new WeakMap,ya=new WeakMap,Eo=new WeakMap,Gn=new WeakMap,ws=new WeakMap,vc=new WeakMap,ko=new WeakMap,Co=new WeakMap,ga=new WeakMap,xa=new WeakMap,vs=new WeakMap,To=new WeakMap,We=new WeakSet,Cc=function(t){Ae(this,We,Bh).call(this);let r=M(this,Oe).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(jt)),r},Ch=function(){Ae(this,We,Ph).call(this);const t=Xn(this.options.staleTime,M(this,Oe));if(Us||M(this,qt).isStale||!md(t))return;const n=Um(M(this,qt).dataUpdatedAt,t)+1;J(this,ga,Fs.setTimeout(()=>{M(this,qt).isStale||this.updateResult()},n))},Th=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,Oe)):this.options.refetchInterval)??!1},Sh=function(t){Ae(this,We,Ih).call(this),J(this,vs,t),!(Us||vr(this.options.enabled,M(this,Oe))===!1||!md(M(this,vs))||M(this,vs)===0)&&J(this,xa,Fs.setInterval(()=>{(this.options.refetchIntervalInBackground||wd.isFocused())&&Ae(this,We,Cc).call(this)},M(this,vs)))},Ah=function(){Ae(this,We,Ch).call(this),Ae(this,We,Sh).call(this,Ae(this,We,Th).call(this))},Ph=function(){M(this,ga)&&(Fs.clearTimeout(M(this,ga)),J(this,ga,void 0))},Ih=function(){M(this,xa)&&(Fs.clearInterval(M(this,xa)),J(this,xa,void 0))},Bh=function(){const t=M(this,sr).getQueryCache().build(M(this,sr),this.options);if(t===M(this,Oe))return;const r=M(this,Oe);J(this,Oe,t),J(this,wc,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},O5=function(t){kt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(M(this,qt))}),M(this,sr).getQueryCache().notify({query:M(this,Oe),type:"observerResultsUpdated"})})},w5);function Vw(e,t){return vr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Vm(e,t){return Vw(e,t)||e.state.data!==void 0&&kd(e,t,t.refetchOnMount)}function kd(e,t,r){if(vr(t.enabled,e)!==!1&&Xn(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Cd(e,t)}return!1}function Wm(e,t,r,n){return(e!==t||vr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Cd(e,r)}function Cd(e,t){return vr(t.enabled,e)!==!1&&e.isStaleByTime(Xn(t.staleTime,e))}function Ww(e,t){return!Uc(e.getCurrentResult(),t)}function qm(e){return{onFetch:(t,r)=>{var u,d,f,h,y;const n=t.options,s=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,a=((h=t.state.data)==null?void 0:h.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let i={pages:[],pageParams:[]},c=0;const l=async()=>{let g=!1;const E=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=Nm(t.options,t.fetchOptions),w=async(T,C,_)=>{if(g)return Promise.reject();if(C==null&&T.pages.length)return Promise.resolve(T);const S=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:C,direction:_?"backward":"forward",meta:t.options.meta};return E(A),A})(),m=await v(S),{maxPages:b}=t.options,x=_?Nw:Mw;return{pages:x(T.pages,m,b),pageParams:x(T.pageParams,C,b)}};if(s&&a.length){const T=s==="backward",C=T?qw:Ym,_={pages:a,pageParams:o},z=C(n,_);i=await w(_,z,T)}else{const T=e??a.length;do{const C=c===0?o[0]??n.initialPageParam:Ym(n,i);if(c>0&&C==null)break;i=await w(i,C),c++}while(c<T)}return i};t.options.persister?t.fetchFn=()=>{var g,E;return(E=(g=t.options).persister)==null?void 0:E.call(g,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function Ym(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function qw(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Yw=(v5=class extends Hm{constructor(t){super();le(this,mn);le(this,Ec);le(this,hn);le(this,Yt);le(this,wa);J(this,Ec,t.client),this.mutationId=t.mutationId,J(this,Yt,t.mutationCache),J(this,hn,[]),this.state=t.state||Km(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,hn).includes(t)||(M(this,hn).push(t),this.clearGcTimeout(),M(this,Yt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){J(this,hn,M(this,hn).filter(r=>r!==t)),this.scheduleGc(),M(this,Yt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,hn).length||(this.state.status==="pending"?this.scheduleGc():M(this,Yt).remove(this))}continue(){var t;return((t=M(this,wa))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,c,l,u,d,f,h,y,g,E,v,w,T,C,_,z,S,m,b;const r=()=>{Ae(this,mn,Ss).call(this,{type:"continue"})},n={client:M(this,Ec),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,wa,Rm({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(x,A)=>{Ae(this,mn,Ss).call(this,{type:"failed",failureCount:x,error:A})},onPause:()=>{Ae(this,mn,Ss).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,Yt).canRun(this)}));const s=this.state.status==="pending",a=!M(this,wa).canStart();try{if(s)r();else{Ae(this,mn,Ss).call(this,{type:"pending",variables:t,isPaused:a}),await((i=(o=M(this,Yt).config).onMutate)==null?void 0:i.call(o,t,this,n));const A=await((l=(c=this.options).onMutate)==null?void 0:l.call(c,t,n));A!==this.state.context&&Ae(this,mn,Ss).call(this,{type:"pending",context:A,variables:t,isPaused:a})}const x=await M(this,wa).start();return await((d=(u=M(this,Yt).config).onSuccess)==null?void 0:d.call(u,x,t,this.state.context,this,n)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,x,t,this.state.context,n)),await((g=(y=M(this,Yt).config).onSettled)==null?void 0:g.call(y,x,null,this.state.variables,this.state.context,this,n)),await((v=(E=this.options).onSettled)==null?void 0:v.call(E,x,null,t,this.state.context,n)),Ae(this,mn,Ss).call(this,{type:"success",data:x}),x}catch(x){try{throw await((T=(w=M(this,Yt).config).onError)==null?void 0:T.call(w,x,t,this.state.context,this,n)),await((_=(C=this.options).onError)==null?void 0:_.call(C,x,t,this.state.context,n)),await((S=(z=M(this,Yt).config).onSettled)==null?void 0:S.call(z,void 0,x,this.state.variables,this.state.context,this,n)),await((b=(m=this.options).onSettled)==null?void 0:b.call(m,void 0,x,t,this.state.context,n)),x}finally{Ae(this,mn,Ss).call(this,{type:"error",error:x})}}finally{M(this,Yt).runNext(this)}}},Ec=new WeakMap,hn=new WeakMap,Yt=new WeakMap,wa=new WeakMap,mn=new WeakSet,Ss=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),kt.batch(()=>{M(this,hn).forEach(n=>{n.onMutationUpdate(t)}),M(this,Yt).notify({mutation:this,type:"updated",action:t})})},v5);function Km(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kw=(E5=class extends Ca{constructor(t={}){super();le(this,jn);le(this,Yr);le(this,kc);this.config=t,J(this,jn,new Set),J(this,Yr,new Map),J(this,kc,0)}build(t,r,n){const s=new Yw({client:t,mutationCache:this,mutationId:++Ku(this,kc)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){M(this,jn).add(t);const r=Dc(t);if(typeof r=="string"){const n=M(this,Yr).get(r);n?n.push(t):M(this,Yr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(M(this,jn).delete(t)){const r=Dc(t);if(typeof r=="string"){const n=M(this,Yr).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&M(this,Yr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Dc(t);if(typeof r=="string"){const n=M(this,Yr).get(r),s=n==null?void 0:n.find(a=>a.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=Dc(t);if(typeof r=="string"){const s=(n=M(this,Yr).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){kt.batch(()=>{M(this,jn).forEach(t=>{this.notify({type:"removed",mutation:t})}),M(this,jn).clear(),M(this,Yr).clear()})}getAll(){return Array.from(M(this,jn))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>_m(r,n))}findAll(t={}){return this.getAll().filter(r=>_m(t,r))}notify(t){kt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return kt.batch(()=>Promise.all(t.map(r=>r.continue().catch(jt))))}},jn=new WeakMap,Yr=new WeakMap,kc=new WeakMap,E5);function Dc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Zw=(k5=class extends Ca{constructor(t,r){super();le(this,qn);le(this,Vn);le(this,Es);le(this,ar);le(this,Wn);J(this,Vn,t),this.setOptions(r),this.bindMethods(),Ae(this,qn,Zu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=M(this,Vn).defaultMutationOptions(t),Uc(this.options,r)||M(this,Vn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,ar),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Os(r.mutationKey)!==Os(this.options.mutationKey)?this.reset():((n=M(this,ar))==null?void 0:n.state.status)==="pending"&&M(this,ar).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=M(this,ar))==null||t.removeObserver(this)}onMutationUpdate(t){Ae(this,qn,Zu).call(this),Ae(this,qn,Fh).call(this,t)}getCurrentResult(){return M(this,Es)}reset(){var t;(t=M(this,ar))==null||t.removeObserver(this),J(this,ar,void 0),Ae(this,qn,Zu).call(this),Ae(this,qn,Fh).call(this)}mutate(t,r){var n;return J(this,Wn,r),(n=M(this,ar))==null||n.removeObserver(this),J(this,ar,M(this,Vn).getMutationCache().build(M(this,Vn),this.options)),M(this,ar).addObserver(this),M(this,ar).execute(t)}},Vn=new WeakMap,Es=new WeakMap,ar=new WeakMap,Wn=new WeakMap,qn=new WeakSet,Zu=function(){var r;const t=((r=M(this,ar))==null?void 0:r.state)??Km();J(this,Es,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Fh=function(t){kt.batch(()=>{var r,n,s,a,o,i,c,l;if(M(this,Wn)&&this.hasListeners()){const u=M(this,Es).variables,d=M(this,Es).context,f={client:M(this,Vn),meta:this.options.meta,mutationKey:this.options.mutationKey};(t==null?void 0:t.type)==="success"?((n=(r=M(this,Wn)).onSuccess)==null||n.call(r,t.data,u,d,f),(a=(s=M(this,Wn)).onSettled)==null||a.call(s,t.data,null,u,d,f)):(t==null?void 0:t.type)==="error"&&((i=(o=M(this,Wn)).onError)==null||i.call(o,t.error,u,d,f),(l=(c=M(this,Wn)).onSettled)==null||l.call(c,void 0,t.error,u,d,f))}this.listeners.forEach(u=>{u(M(this,Es))})})},k5),Xw=(C5=class extends Ca{constructor(t={}){super();le(this,bn);this.config=t,J(this,bn,new Map)}build(t,r,n){const s=r.queryKey,a=r.queryHash??bd(s,r);let o=this.get(a);return o||(o=new Gw({client:t,queryKey:s,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){M(this,bn).has(t.queryHash)||(M(this,bn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=M(this,bn).get(t.queryHash);r&&(t.destroy(),r===t&&M(this,bn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){kt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,bn).get(t)}getAll(){return[...M(this,bn).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Om(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Om(t,n)):r}notify(t){kt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},bn=new WeakMap,C5),Qw=(T5=class{constructor(e={}){le(this,ht);le(this,ks);le(this,Cs);le(this,So);le(this,Ao);le(this,Ts);le(this,Po);le(this,Io);J(this,ht,e.queryCache||new Xw),J(this,ks,e.mutationCache||new Kw),J(this,Cs,e.defaultOptions||{}),J(this,So,new Map),J(this,Ao,new Map),J(this,Ts,0)}mount(){Ku(this,Ts)._++,M(this,Ts)===1&&(J(this,Po,wd.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ht).onFocus())})),J(this,Io,_c.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ht).onOnline())})))}unmount(){var e,t;Ku(this,Ts)._--,M(this,Ts)===0&&((e=M(this,Po))==null||e.call(this),J(this,Po,void 0),(t=M(this,Io))==null||t.call(this),J(this,Io,void 0))}isFetching(e){return M(this,ht).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,ks).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=M(this,ht).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=M(this,ht).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Xn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return M(this,ht).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=M(this,ht).get(n.queryHash),a=s==null?void 0:s.state.data,o=Ow(t,a);if(o!==void 0)return M(this,ht).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return kt.batch(()=>M(this,ht).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=M(this,ht).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=M(this,ht);kt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=M(this,ht);return kt.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=kt.batch(()=>M(this,ht).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(jt).catch(jt)}invalidateQueries(e,t={}){return kt.batch(()=>(M(this,ht).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=kt.batch(()=>M(this,ht).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,r);return r.throwOnError||(a=a.catch(jt)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=M(this,ht).build(this,t);return r.isStaleByTime(Xn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jt).catch(jt)}fetchInfiniteQuery(e){return e.behavior=qm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jt).catch(jt)}ensureInfiniteQueryData(e){return e.behavior=qm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _c.isOnline()?M(this,ks).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,ht)}getMutationCache(){return M(this,ks)}getDefaultOptions(){return M(this,Cs)}setDefaultOptions(e){J(this,Cs,e)}setQueryDefaults(e,t){M(this,So).set(Os(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,So).values()],r={};return t.forEach(n=>{Uo(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){M(this,Ao).set(Os(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,Ao).values()],r={};return t.forEach(n=>{Uo(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,Cs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bd(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Oc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Cs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,ht).clear(),M(this,ks).clear()}},ht=new WeakMap,ks=new WeakMap,Cs=new WeakMap,So=new WeakMap,Ao=new WeakMap,Ts=new WeakMap,Po=new WeakMap,Io=new WeakMap,T5),Zm=xt.createContext(void 0),Mc=e=>{const t=xt.useContext(Zm);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Jw=({client:e,children:t})=>(xt.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),B.jsx(Zm.Provider,{value:e,children:t})),Xm=xt.createContext(!1),e3=()=>xt.useContext(Xm);Xm.Provider;function t3(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var r3=xt.createContext(t3()),n3=()=>xt.useContext(r3),s3=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},a3=e=>{xt.useEffect(()=>{e.clearReset()},[e])},o3=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&e.data===void 0||Lm(r,[e.error,n])),i3=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...s)=>r(n(...s)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},c3=(e,t)=>e.isLoading&&e.isFetching&&!t,l3=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Qm=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function u3(e,t,r){var d,f,h,y,g;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const n=e3(),s=n3(),a=Mc(),o=a.defaultQueryOptions(e);(f=(d=a.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||f.call(d,o),process.env.NODE_ENV!=="production"&&(o.queryFn||console.error(`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),o._optimisticResults=n?"isRestoring":"optimistic",i3(o),s3(o,s),a3(s);const i=!a.getQueryCache().get(o.queryHash),[c]=xt.useState(()=>new t(a,o)),l=c.getOptimisticResult(o),u=!n&&e.subscribed!==!1;if(xt.useSyncExternalStore(xt.useCallback(E=>{const v=u?c.subscribe(kt.batchCalls(E)):jt;return c.updateResult(),v},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),xt.useEffect(()=>{c.setOptions(o)},[o,c]),l3(o,l))throw Qm(o,c,s);if(o3({result:l,errorResetBoundary:s,throwOnError:o.throwOnError,query:a.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;if((y=(h=a.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||y.call(h,o,l),o.experimental_prefetchInRender&&!Us&&c3(l,n)){const E=i?Qm(o,c,s):(g=a.getQueryCache().get(o.queryHash))==null?void 0:g.promise;E==null||E.catch(jt).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?l:c.trackResult(l)}function d3(e,t){return u3(e,jw)}function Kr(e,t){const r=Mc(),[n]=xt.useState(()=>new Zw(r,e));xt.useEffect(()=>{n.setOptions(e)},[n,e]);const s=xt.useSyncExternalStore(xt.useCallback(o=>n.subscribe(kt.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=xt.useCallback((o,i)=>{n.mutate(o,i).catch(jt)},[n]);if(s.error&&Lm(n.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:a,mutateAsync:s.mutate}}const p3=N.createContext(null),Td={didCatch:!1,error:null};class f3 extends N.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Td}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(Td)}}componentDidCatch(t,r){var n,s;(n=(s=this.props).onError)===null||n===void 0||n.call(s,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:s}=this.props;if(n&&r.error!==null&&h3(t.resetKeys,s)){var a,o;(a=(o=this.props).onReset)===null||a===void 0||a.call(o,{next:s,prev:t.resetKeys,reason:"keys"}),this.setState(Td)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:s}=this.props,{didCatch:a,error:o}=this.state;let i=t;if(a){const c={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")i=r(c);else if(n)i=N.createElement(n,c);else if(s!==void 0)i=s;else throw o}return N.createElement(p3.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},i)}}function h3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const Jm=e=>{let t;const r=new Set,n=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),r.forEach(h=>h(t,f))}},s=()=>t,i={setState:n,getState:s,getInitialState:()=>c,subscribe:l=>(r.add(l),()=>r.delete(l))},c=t=e(n,s,i);return i},m3=(e=>e?Jm(e):Jm),b3=e=>e;function y3(e,t=b3){const r=N.useSyncExternalStore(e.subscribe,N.useCallback(()=>t(e.getState()),[e,t]),N.useCallback(()=>t(e.getInitialState()),[e,t]));return N.useDebugValue(r),r}const e1=e=>{const t=m3(e),r=n=>y3(t,n);return Object.assign(r,t),r},g3=(e=>e?e1(e):e1),t1={disclaimerAccepted:!0,currentTime:Date.now(),swapExecution:{}},te=g3((e,t)=>({state:t1,updateState:r=>e(n=>({state:{...n.state,...r}})),updateSwapExecution:r=>e(n=>({state:{...n.state,swapExecution:{...n.state.swapExecution,...r}}})),resetState:()=>{e({state:{...t1,currentTime:Date.now(),swapExecution:t().state.swapExecution,isMarketOrder:t().state.isMarketOrder}})}}));(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".orbs_OrbsLogo{object-fit:contain;display:inline}.orbs_PoweredBy{border-radius:8px;margin-left:auto;margin-right:auto}.orbs_PoweredBy a{display:flex;align-items:center;justify-content:center;text-decoration:none;color:inherit}.orbs_PoweredBy span{font-size:14px}.orbs_PoweredBy .orbs_OrbsLogo{margin-left:6px;margin-right:6px;width:18px;height:18px}.orbs_Text{margin:0;padding:0}.orbs_Spinner{width:var(--size, 38px);height:var(--size, 38px);border:var(--border-width, 3px) solid var(--border-color, white);border-bottom-color:var(--bottom-border-color, rgba(255, 255, 255, .2));border-radius:50%;display:inline-block;box-sizing:border-box;animation:orbs_rotation 1s linear infinite}@keyframes orbs_rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.orbs_TradeStepLayout{--layout-min-height: 220px;--layout-width: 100%;--layout-display: flex;--layout-direction: column;--layout-align: center;--layout-overflow: visible;display:var(--layout-display);flex-direction:var(--layout-direction);align-items:var(--layout-align);width:var(--layout-width);min-height:var(--layout-min-height);overflow:var(--layout-overflow)}.orbs_TradeStepLayoutBody{--body-gap: 20px;--body-margin-top: 30px;--body-width: 100%;--body-display: flex;--body-direction: column;--body-align: center;--body-overflow: visible;gap:var(--body-gap);align-items:var(--body-align);display:var(--body-display);flex-direction:var(--body-direction);width:var(--body-width);margin-top:var(--body-margin-top);overflow:var(--body-overflow)}.orbs_TradeStepLayoutHeader{--header-gap: 30px;--header-display: flex;--header-direction: column;--header-align: center;--header-justify: center;--header-overflow: visible;display:var(--header-display);flex-direction:var(--header-direction);align-items:var(--header-align);justify-content:var(--header-justify);gap:var(--header-gap);overflow:var(--header-overflow)}.orbs_TradeStepLayoutTitle{--title-font-size: 18px;--title-font-weight: 500;--title-line-height: normal;--title-color: inherit;--title-text-align: center;--title-margin: 0;--title-padding: 0;font-size:var(--title-font-size);font-weight:var(--title-font-weight);line-height:var(--title-line-height);color:var(--title-color);text-align:var(--title-text-align);margin:var(--title-margin);padding:var(--title-padding)}.orbs_StepIndicator{--indicator-display: flex;--indicator-align: center;--indicator-justify: flex-start;--indicator-height: 7px;--indicator-width: 120px;--indicator-border-radius: 999px;--indicator-bg-color: white;--indicator-margin-bottom: 20px;--indicator-position: relative;--indicator-overflow: hidden;--indicator-border: none;--indicator-box-shadow: none;display:var(--indicator-display);align-items:var(--indicator-align);justify-content:var(--indicator-justify);height:var(--indicator-height);width:var(--indicator-width);border-radius:var(--indicator-border-radius);overflow:var(--indicator-overflow);background-color:var(--indicator-bg-color);margin-bottom:var(--indicator-margin-bottom);position:var(--indicator-position);border:var(--indicator-border);box-shadow:var(--indicator-box-shadow)}.orbs_StepIndicatorLine{--line-height: 100%;--line-bg-color: black;--line-position: absolute;--line-top: 0;--line-left: 0;--line-right: 0;--line-bottom: 0;--line-transition: all .3s ease;--line-border-radius: inherit;--line-box-shadow: none;height:var(--line-height);background-color:var(--line-bg-color);position:var(--line-position);top:var(--line-top);left:var(--line-left);right:var(--line-right);bottom:var(--line-bottom);transition:var(--line-transition);border-radius:var(--line-border-radius);box-shadow:var(--line-box-shadow)}.orbs_TradeStepLayoutFooter{--footer-display: flex;--footer-align: center;--footer-justify: center;--footer-direction: column;--footer-margin-top: auto;--footer-padding-top: 30px;--footer-width: 100%;--footer-overflow: visible;--footer-border-top: none;display:var(--footer-display);align-items:var(--footer-align);justify-content:var(--footer-justify);flex-direction:var(--footer-direction);margin-top:var(--footer-margin-top);padding-top:var(--footer-padding-top);width:var(--footer-width);overflow:var(--footer-overflow);border-top:var(--footer-border-top)}.orbs_TradeStepLayoutFooter p{--footer-text-font-size: 15px;--footer-text-line-height: normal;--footer-text-color: inherit;--footer-text-margin: 0;--footer-text-padding: 0;font-size:var(--footer-text-font-size);line-height:var(--footer-text-line-height);color:var(--footer-text-color);margin:var(--footer-text-margin);padding:var(--footer-text-padding)}.orbs_TradeStepLayoutFooterLink{--link-color: inherit;--link-text-decoration: none;--link-font-size: 15px;--link-text-align: center;--link-margin: auto;--link-outline: none;--link-line-height: normal;--link-padding: 0;--link-transition: color .2s ease;--link-hover-color: inherit;--link-hover-text-decoration: underline;color:var(--link-color);text-decoration:var(--link-text-decoration);font-size:var(--link-font-size);text-align:var(--link-text-align);margin-left:var(--link-margin);margin-right:var(--link-margin);outline:var(--link-outline);line-height:var(--link-line-height);padding:var(--link-padding);transition:var(--link-transition)}.orbs_TradeStepLayoutFooterLink:hover{color:var(--link-hover-color);text-decoration:var(--link-hover-text-decoration)}.orbs_TradeStepLayoutSuccessIcon{--success-icon-display: flex;--success-icon-justify: center;--success-icon-align: center;--success-icon-width: 60px;--success-icon-height: 60px;--success-icon-border-radius: 50%;--success-icon-overflow: visible;--success-icon-bg-color: transparent;--success-icon-border: none;--success-icon-box-shadow: none;display:var(--success-icon-display);justify-content:var(--success-icon-justify);align-items:var(--success-icon-align);width:var(--success-icon-width);height:var(--success-icon-height);border-radius:var(--success-icon-border-radius);overflow:var(--success-icon-overflow);background-color:var(--success-icon-bg-color);border:var(--success-icon-border);box-shadow:var(--success-icon-box-shadow)}.orbs_TradeStepLayoutErrorIcon{--error-icon-width: 80px;--error-icon-height: 80px;--error-icon-display: flex;--error-icon-justify: center;--error-icon-align: center;--error-icon-overflow: visible;--error-icon-bg-color: transparent;--error-icon-border: none;--error-icon-box-shadow: none;width:var(--error-icon-width);height:var(--error-icon-height);display:var(--error-icon-display);justify-content:var(--error-icon-justify);align-items:var(--error-icon-align);overflow:var(--error-icon-overflow);background-color:var(--error-icon-bg-color);border:var(--error-icon-border);box-shadow:var(--error-icon-box-shadow)}.orbs_FailedContentMsg{font-size:22px;font-weight:500}.orbs_TradePreview{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}.orbs_TradePreviewToken{display:flex;align-items:center;gap:6px;max-width:calc(50% - 30px)}.orbs_TradePreviewToken p{--token-font-size: 15px;--token-white-space: nowrap;--token-overflow: hidden;--token-text-overflow: ellipsis;--token-flex: 1;--token-margin: 0;--token-padding: 0;font-size:var(--token-font-size);white-space:var(--token-white-space);overflow:var(--token-overflow);text-overflow:var(--token-text-overflow);flex:var(--token-flex);margin:var(--token-margin)}.orbs_TradepPreviewIcon{width:22px;height:22px}.orbs_TradepPreviewLogo{width:24px;height:24px;border-radius:50%;overflow:hidden}.orbs_FlexRow{display:flex;flex-direction:row}.orbs_FlexColumn{display:flex;flex-direction:column}@keyframes orbs_skeletonAnimation{0%{opacity:.2}to{opacity:.4}}.orbs_SkeletonLoader{animation:orbs_skeletonAnimation 1s linear infinite alternate;background-color:#fff}.orbs_Main-wrapper{width:100%}.orbs_Main{width:100%;display:flex;flex-direction:column;gap:28px}.orbs_MainToken{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;gap:8px}.orbs_MainTokenLeft{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.orbs_MainTokenUsd{display:flex;align-items:center;gap:5px}.orbs_MainTokenUsd small{font-size:12px;opacity:.6}.orbs_MainContentLoader{width:100%;display:flex;gap:15px;align-items:center;margin-top:20px}.orbs_MainContentRectengularLoader{flex:1;height:20px;max-width:250px;border-radius:20px}.orbs_MainContentCircleLoader{width:30px;height:30px;border-radius:50%}.orbs_MainTokenLogo{--width: 40px;--height: 40px;width:var(--width);height:var(--height)}.orbs_MainTokenLogo img{width:100%;height:100%;object-fit:cover}.orbs_SwapFlow{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%}.orbs_SwapFlow *{box-sizing:border-box}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const Ne=e=>`orbs_${e}`;function Oo({children:e,className:t=""}){return B.jsx("p",{className:`${t} ${Ne("Text")}`,children:e})}const r1=N.createContext({});function x3({children:e,...t}){return B.jsx(r1.Provider,{value:t,children:e})}const Zr=()=>N.useContext(r1);var pt=(e=>(e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILED=3]="FAILED",e))(pt||{});const w3=({className:e="",size:t=38,borderWidth:r=3,borderColor:n="white",bottomBorderColor:s="rgba(255, 255, 255, 0.2)"})=>{const a={"--size":`${t}px`,"--border-width":`${r}px`,"--border-color":n,"--bottom-border-color":s};return B.jsx("div",{className:`${Ne("Spinner")} ${e}`,style:a})};function Nc({className:e="",body:t,footerLink:r,footerText:n,title:s,children:a}){return B.jsxs("div",{className:`${Ne("TradeStepLayout")} ${e}`,children:[B.jsxs("div",{className:Ne("TradeStepLayoutHeader"),children:[B.jsx(T3,{}),s&&B.jsx(Oo,{className:Ne("TradeStepLayoutTitle"),children:s})]}),t&&B.jsx("div",{className:Ne("TradeStepLayoutBody"),children:t}),B.jsx(v3,{link:r,text:n}),a]})}const v3=({link:e,text:t})=>{const{swapStatus:r}=Zr();return!e&&!t?null:B.jsxs("div",{className:Ne("TradeStepLayoutFooter"),children:[B.jsx(A3,{}),e?B.jsx(E3,{link:e,text:t}):r===pt.FAILED?void 0:B.jsx(Oo,{children:t})]})},E3=({link:e,text:t})=>B.jsx("a",{target:"_blank",className:Ne("TradeStepLayoutFooterLink"),href:e,children:t});function k3(){const{components:e}=Zr();return e.SuccessIcon?e.SuccessIcon:B.jsxs("svg",{fill:"none",viewBox:"0 0 16 16",className:Ne("TradeStepLayoutSuccessIcon"),children:[B.jsx("circle",{cx:"8",cy:"8",r:"7",strokeWidth:"1.5",stroke:"#00C853"}),B.jsx("path",{strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#00C853",d:"M5 8l2 2 4-4"})]})}function C3(){const{components:e}=Zr();return e.FailedIcon?e.FailedIcon:B.jsxs("svg",{className:Ne("TradeStepLayoutErrorIcon"),viewBox:"0 0 16 16",fill:"none",children:[B.jsx("circle",{cx:"8",cy:"8",r:"7",strokeWidth:"1.5",stroke:"#FF3D00"}),B.jsx("path",{strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#FF3D00",d:"M8 4v5M8 11h.01"})]})}const T3=()=>{const{swapStatus:e}=Zr();return e===pt.SUCCESS?B.jsx(k3,{}):e===pt.FAILED?B.jsx(C3,{}):B.jsx(S3,{})},S3=()=>{const{components:e}=Zr();return e.Loader?e.Loader:B.jsx(w3,{size:60,borderWidth:5,className:Ne("TradeStepLayoutSpinner")})},A3=()=>{const{totalSteps:e,currentStepIndex:t=0,swapStatus:r}=Zr();return r!==pt.LOADING||e===1?null:B.jsx("div",{className:Ne("StepIndicator"),children:B.jsx("div",{style:{width:`${100/(e||0)}%`,left:`${t*100/(e||0)}%`},className:Ne("StepIndicatorLine")})})},P3=({error:e,footerLink:t,footerText:r})=>B.jsx(Nc,{footerLink:t,footerText:r,body:e||B.jsx("p",{className:Ne("FailedContentMsg"),children:"Something went wrong"}),className:Ne("FailedContent")});function I3(){return B.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",className:Ne("TradepPreviewIcon"),children:B.jsx("path",{fillRule:"evenodd",d:"M4 8a.5.5 0 01.5-.5h5.793L8.146 5.354a.5.5 0 11.708-.708l3 3a.5.5 0 010 .708l-3 3a.5.5 0 01-.708-.708L10.293 8.5H4.5A.5.5 0 014 8z"})})}const n1=({inTokenOnly:e})=>{const{inToken:t,outToken:r,inAmount:n,outAmount:s,components:a}=Zr();return B.jsxs("div",{className:Ne("TradePreview"),children:[B.jsx(s1,{token:t,amount:n,Logo:a==null?void 0:a.SrcTokenLogo}),!e&&B.jsxs(B.Fragment,{children:[B.jsx(I3,{}),B.jsx(s1,{token:r,amount:s,Logo:a==null?void 0:a.DstTokenLogo})]})]})},s1=({token:e,amount:t,Logo:r})=>B.jsxs("div",{className:Ne("TradePreviewToken"),children:[r||B.jsx("img",{src:e==null?void 0:e.logoUrl,className:Ne("TradepPreviewLogo"),alt:`${e==null?void 0:e.symbol} logo`}),B.jsxs(Oo,{children:[t," ",e==null?void 0:e.symbol]})]});function B3({title:e,footerLink:t,footerText:r,hideTokens:n}){return B.jsx(Nc,{title:e,className:Ne("Success"),body:!n&&B.jsx(n1,{}),footerLink:t,footerText:r})}const a1=({$gap:e=10,$alignItems:t="flex-start",children:r,className:n="",customStyles:s={}})=>{const a={gap:`${e}px`,alignItems:t,width:"100%",...s};return B.jsx("div",{className:`${Ne("FlexColumn")} ${n}`,style:a,children:r})};function o1({styles:e={},className:t=""}){return B.jsx("div",{style:e,className:`${Ne("SkeletonLoader")} ${t}`})}const F3=()=>B.jsxs("div",{className:`${Ne("MainContentLoader")}`,children:[B.jsx(o1,{className:`${Ne("MainContentCircleLoader")}`}),B.jsx(o1,{className:`${Ne("MainContentRectengularLoader")}`})]}),U3=({fromTitle:e,toTitle:t,inUsd:r,outUsd:n})=>{const{swapStatus:s,outAmount:a,inAmount:o,inToken:i,outToken:c,components:l,totalSteps:u}=Zr(),d=B.jsx(c1,{fromTitle:e,inUsd:r,inToken:i,toTitle:t,outUsd:n,outToken:c,inAmount:o,outAmount:a,SrcTokenLogo:l.SrcTokenLogo,DstTokenLogo:l.DstTokenLogo});return s?u?B.jsx(O3,{}):B.jsxs(a1,{children:[d,B.jsx(F3,{})]}):B.jsx(a1,{children:d})},i1=({amount:e,token:t,usd:r,title:n,Logo:s})=>B.jsxs("div",{className:`${Ne("MainToken")}`,children:[B.jsxs("div",{className:`${Ne("MainTokenLeft")}`,children:[B.jsx(Oo,{className:`${Ne("MainTokenTitle")}`,children:n}),B.jsx(Oo,{className:` ${Ne("MainTokenAmount")}`,children:`${e&&Number(e)>0?e:""} ${(t==null?void 0:t.symbol)||""}`}),r&&B.jsx("div",{className:` ${Ne("MainTokenUsd")}`,children:r})]}),s||B.jsx("div",{className:` ${Ne("MainTokenLogo")}`,children:t!=null&&t.logoUrl?B.jsx("img",{src:t==null?void 0:t.logoUrl,alt:"Token logo"}):null})]});function O3(){const{currentStep:e}=Zr();return e?B.jsx(Nc,{footerLink:e.footerLink,footerText:e.footerText,title:e.title,body:e.hideTokens?void 0:B.jsx(n1,{inTokenOnly:e==null?void 0:e.inTokenOnly})}):null}const c1=({fromTitle:e,inUsd:t,inToken:r,toTitle:n,outUsd:s,outToken:a,inAmount:o,outAmount:i,SrcTokenLogo:c,DstTokenLogo:l})=>B.jsxs("div",{className:`${Ne("Main")}`,children:[B.jsx(i1,{title:e||"Swap from",usd:t,token:r,amount:o,Logo:c}),B.jsx(i1,{title:n||"Swap to",usd:s,token:a,amount:i,Logo:l})]}),Qn=e=>B.jsx(x3,{...e,children:B.jsx(_3,{})}),_3=()=>{const{swapStatus:e,components:t,className:r}=Zr();return B.jsx("div",{className:`${Ne("SwapFlow")} ${r}`,children:e===pt.SUCCESS?t==null?void 0:t.Success:e===pt.FAILED?t==null?void 0:t.Failed:t==null?void 0:t.Main})};Qn.Success=B3,Qn.Failed=P3,Qn.Main=U3,Qn.StepLayout=Nc;var Mt=(e=>(e[e.EMPTY_LIMIT_PRICE=0]="EMPTY_LIMIT_PRICE",e[e.MAX_CHUNKS=1]="MAX_CHUNKS",e[e.MIN_CHUNKS=2]="MIN_CHUNKS",e[e.MIN_TRADE_SIZE=3]="MIN_TRADE_SIZE",e[e.MAX_FILL_DELAY=4]="MAX_FILL_DELAY",e[e.MIN_FILL_DELAY=5]="MIN_FILL_DELAY",e[e.MAX_ORDER_DURATION=6]="MAX_ORDER_DURATION",e[e.MIN_ORDER_DURATION=7]="MIN_ORDER_DURATION",e[e.MISSING_LIMIT_PRICE=8]="MISSING_LIMIT_PRICE",e[e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE=9]="STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE",e[e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE=10]="TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE",e[e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE=11]="TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE",e[e.EMPTY_TRIGGER_PRICE=12]="EMPTY_TRIGGER_PRICE",e[e.INSUFFICIENT_BALANCE=13]="INSUFFICIENT_BALANCE",e[e.MAX_ORDER_SIZE=14]="MAX_ORDER_SIZE",e))(Mt||{}),_s=(e=>(e.WRAP="wrap",e.APPROVE="approve",e.CREATE="create",e))(_s||{});const D3=e=>e.replace(/,/g,""),M3=async e=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(e),!0}catch(t){return console.warn("Copy failed",t),!1}},l1=e=>{if(!e)return"";const t=Math.floor(e/1e3),r=Math.floor(t/(1440*60)),n=Math.floor(t%(1440*60)/3600),s=Math.floor(t%3600/60),a=t%60,o=[];return r&&o.push(`${r} days `),n&&o.push(`${n} hours `),s&&o.push(`${s} minutes`),a&&o.push(`${a} seconds`),o.join(" ")},Sd=(e,t)=>e?`${e.substring(0,(t==null?void 0:t.start)||6)}...${e.substring(e.length-((t==null?void 0:t.end)||5))}`:"",N3=e=>{const t="An error occurred.";if(!e||!e.message)return t;try{return e.message.toLowerCase().indexOf("rejected")?"Transaction Rejected":t}catch{return t}};function Ad(e,t=6,r=8){if(!e)return"";const n=e.startsWith("-")?"-":"",s=n?e.slice(1):e,[a,o=""]=s.split(".");if(!o||Number(o)===0)return n+a;if(a!=="0"){const f=o.slice(0,t).replace(/0+$/,""),h=f?"."+f:"";return n+a+h}const i=o.search(/[^0]/);if(i===-1||i+1>r)return"0";const c=o.slice(0,i),u=o.slice(i).slice(0,t).replace(/0+$/,"");return u?n+"0."+c+u:"0"}const Pd=e=>{var t,r,n,s;if(e!=null&&e.message)return((r=(t=e.message)==null?void 0:t.toLowerCase())==null?void 0:r.includes("rejected"))||((s=(n=e.message)==null?void 0:n.toLowerCase())==null?void 0:s.includes("denied"))},L3=e=>{switch(e){case Ft.base.id:return 1e-4;default:return .01}},u1=(e,t)=>{const r=Bs(t);return r&&Is(e.address)?r.wToken:e};function d1(e){return e?e/864e5:0}function Id(e){return e?e/6e4:0}const z3=(e,t)=>e?Ge.TWAP_MARKET:t===1?Ge.LIMIT:Ge.TWAP_LIMIT,Bd=(e,t,r)=>{const n=Bs(r);return Is((e==null?void 0:e.address)||"")&&Ps((t==null?void 0:t.address)||"",(n==null?void 0:n.wToken.address)||"")},Fd=(e,t,r)=>{const n=Bs(r);return Ps((e==null?void 0:e.address)||"",(n==null?void 0:n.wToken.address)||"")&&Is((t==null?void 0:t.address)||"")},_o=(e,t)=>{if(!t)return"";const r=Bs(t);return`${r==null?void 0:r.explorer}/tx/${e}`};function p(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function r(n){return s=>{const a=typeof s=="function"?s(n):s,o={...n,...a};return Object.assign(o,{extend:r(o)})}}return Object.assign(t,{extend:r(t)})}function R3(){return{}}const H3=p({id:16600,name:"0G Newton Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-newton.0g.ai"}},testnet:!0}),$3=p({id:16601,name:"0G Galileo Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-galileo.0g.ai"}},testnet:!0}),G3=p({id:16661,name:"0G Mainnet",nativeCurrency:{name:"0G",symbol:"0G",decimals:18},rpcUrls:{default:{http:["https://evmrpc.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan.0g.ai"}},testnet:!1}),j3=p({id:16602,name:"0G Galileo Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-galileo.0g.ai"}},testnet:!0}),V3=p({id:995,name:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Mainnet Explorer",url:"https://5irescan.io/"}},testnet:!1}),W3=p({id:179,name:"ABEY Mainnet",nativeCurrency:{name:"ABEY",symbol:"ABEY",decimals:18},rpcUrls:{default:{http:["https://rpc.abeychain.com"]}},blockExplorers:{default:{name:"Abey Scan",url:"https://abeyscan.com"}},testnet:!1}),p1="2.43.3";let Do={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${p1}`},$=class Uh extends Error{constructor(t,r={}){var i;const n=(()=>{var c;return r.cause instanceof Uh?r.cause.details:(c=r.cause)!=null&&c.message?r.cause.message:r.details})(),s=r.cause instanceof Uh&&r.cause.docsPath||r.docsPath,a=(i=Do.getDocsUrl)==null?void 0:i.call(Do,{...r,docsPath:s}),o=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...n?[`Details: ${n}`]:[],...Do.version?[`Version: ${Do.version}`]:[]].join(`
65
- `);super(o,r.cause?{cause:r.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=n,this.docsPath=s,this.metaMessages=r.metaMessages,this.name=r.name??this.name,this.shortMessage=t,this.version=p1}walk(t){return f1(this,t)}};function f1(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?f1(e.cause,t):t?null:e}let h1=class extends ${constructor({max:t,min:r,signed:n,size:s,value:a}){super(`Number "${a}" is not in safe ${s?`${s*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${t?`(${r} to ${t})`:`(above ${r})`}`,{name:"IntegerOutOfRangeError"})}},q3=class extends ${constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}};class Y3 extends ${constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}let K3=class extends ${constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}};function Or(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function ut(e){return Or(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function Zt(e,{dir:t="left"}={}){let r=typeof e=="string"?e.replace("0x",""):e,n=0;for(let s=0;s<r.length-1&&r[t==="left"?s:r.length-s-1].toString()==="0";s++)n++;return r=t==="left"?r.slice(n):r.slice(0,r.length-n),typeof e=="string"?(r.length===1&&t==="right"&&(r=`${r}0`),`0x${r.length%2===1?`0${r}`:r}`):r}let m1=class extends ${constructor({offset:t,position:r,size:n}){super(`Slice ${r==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}},b1=class extends ${constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${r}).`,{name:"SizeExceedsPaddingSizeError"})}};class y1 extends ${constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${r} ${n} long, but is ${t} ${n} long.`,{name:"InvalidBytesLengthError"})}}function Ds(e,{dir:t,size:r=32}={}){return typeof e=="string"?Jn(e,{dir:t,size:r}):Z3(e,{dir:t,size:r})}function Jn(e,{dir:t,size:r=32}={}){if(r===null)return e;const n=e.replace("0x","");if(n.length>r*2)throw new b1({size:Math.ceil(n.length/2),targetSize:r,type:"hex"});return`0x${n[t==="right"?"padEnd":"padStart"](r*2,"0")}`}function Z3(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new b1({size:e.length,targetSize:r,type:"bytes"});const n=new Uint8Array(r);for(let s=0;s<r;s++){const a=t==="right";n[a?s:r-s-1]=e[a?s:e.length-s-1]}return n}const X3=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Fe(e,t={}){return typeof e=="number"||typeof e=="bigint"?q(e,t):typeof e=="string"?Ta(e,t):typeof e=="boolean"?g1(e,t):vt(e,t)}function g1(e,t={}){const r=`0x${Number(e)}`;return typeof t.size=="number"?(_r(r,{size:t.size}),Ds(r,{size:t.size})):r}function vt(e,t={}){let r="";for(let s=0;s<e.length;s++)r+=X3[e[s]];const n=`0x${r}`;return typeof t.size=="number"?(_r(n,{size:t.size}),Ds(n,{dir:"right",size:t.size})):n}function q(e,t={}){const{signed:r,size:n}=t,s=BigInt(e);let a;n?r?a=(1n<<BigInt(n)*8n-1n)-1n:a=2n**(BigInt(n)*8n)-1n:typeof e=="number"&&(a=BigInt(Number.MAX_SAFE_INTEGER));const o=typeof a=="bigint"&&r?-a-1n:0;if(a&&s>a||s<o){const c=typeof e=="bigint"?"n":"";throw new h1({max:a?`${a}${c}`:void 0,min:`${o}${c}`,signed:r,size:n,value:`${e}${c}`})}const i=`0x${(r&&s<0?(1n<<BigInt(n*8))+BigInt(s):s).toString(16)}`;return n?Ds(i,{size:n}):i}const Q3=new TextEncoder;function Ta(e,t={}){const r=Q3.encode(e);return vt(r,t)}const J3=new TextEncoder;function wn(e,t={}){return typeof e=="number"||typeof e=="bigint"?t8(e,t):typeof e=="boolean"?e8(e,t):Or(e)?or(e,t):Ms(e,t)}function e8(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),typeof t.size=="number"?(_r(r,{size:t.size}),Ds(r,{size:t.size})):r}const vn={zero:48,nine:57,A:65,F:70,a:97,f:102};function x1(e){if(e>=vn.zero&&e<=vn.nine)return e-vn.zero;if(e>=vn.A&&e<=vn.F)return e-(vn.A-10);if(e>=vn.a&&e<=vn.f)return e-(vn.a-10)}function or(e,t={}){let r=e;t.size&&(_r(r,{size:t.size}),r=Ds(r,{dir:"right",size:t.size}));let n=r.slice(2);n.length%2&&(n=`0${n}`);const s=n.length/2,a=new Uint8Array(s);for(let o=0,i=0;o<s;o++){const c=x1(n.charCodeAt(i++)),l=x1(n.charCodeAt(i++));if(c===void 0||l===void 0)throw new $(`Invalid byte sequence ("${n[i-2]}${n[i-1]}" in "${n}").`);a[o]=c*16+l}return a}function t8(e,t){const r=q(e,t);return or(r)}function Ms(e,t={}){const r=J3.encode(e);return typeof t.size=="number"?(_r(r,{size:t.size}),Ds(r,{dir:"right",size:t.size})):r}function _r(e,{size:t}){if(ut(e)>t)throw new K3({givenSize:ut(e),maxSize:t})}function Le(e,t={}){const{signed:r}=t;t.size&&_r(e,{size:t.size});const n=BigInt(e);if(!r)return n;const s=(e.length-2)/2,a=(1n<<BigInt(s)*8n-1n)-1n;return n<=a?n:n-BigInt(`0x${"f".padStart(s*2,"f")}`)-1n}function r8(e,t={}){let r=e;if(t.size&&(_r(r,{size:t.size}),r=Zt(r)),Zt(r)==="0x00")return!1;if(Zt(r)==="0x01")return!0;throw new Y3(r)}function ir(e,t={}){return Number(Le(e,t))}function Lc(e,t){return({exclude:r,format:n})=>({exclude:r,format:(s,a)=>{const o=t(s,a);if(r)for(const i of r)delete o[i];return{...o,...n(s,a)}},type:e})}const w1={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Ns(e,t){const r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?ir(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?ir(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?w1[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&&(r.authorizationList=n8(e.authorizationList)),r.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof r.v=="bigint"){if(r.v===0n||r.v===27n)return 0;if(r.v===1n||r.v===28n)return 1;if(r.v>=35n)return r.v%2n===0n?1:0}})(),r.type==="legacy"&&(delete r.accessList,delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.yParity),r.type==="eip2930"&&(delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r.type==="eip1559"&&delete r.maxFeePerBlobGas,r}const zc=Lc("transaction",Ns);function n8(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function Ud(e,t){const r=(e.transactions??[]).map(n=>typeof n=="string"?n:Ns(n));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:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const Od=Lc("block",Ud);function Xr(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}const v1={"0x0":"reverted","0x1":"success"};function Rc(e,t){const r={...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(n=>Xr(n)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?ir(e.transactionIndex):null,status:e.status?v1[e.status]:null,type:e.type?w1[e.type]||e.type:null};return e.blobGasPrice&&(r.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(r.blobGasUsed=BigInt(e.blobGasUsed)),r}const _d=Lc("transactionReceipt",Rc),s8={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Dr(e,t){const r={};return typeof e.authorizationList<"u"&&(r.authorizationList=a8(e.authorizationList)),typeof e.accessList<"u"&&(r.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(r.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?r.blobs=e.blobs.map(n=>vt(n)):r.blobs=e.blobs),typeof e.data<"u"&&(r.data=e.data),e.account&&(r.from=e.account.address),typeof e.from<"u"&&(r.from=e.from),typeof e.gas<"u"&&(r.gas=q(e.gas)),typeof e.gasPrice<"u"&&(r.gasPrice=q(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(r.maxFeePerBlobGas=q(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(r.maxFeePerGas=q(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(r.maxPriorityFeePerGas=q(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(r.nonce=q(e.nonce)),typeof e.to<"u"&&(r.to=e.to),typeof e.type<"u"&&(r.type=s8[e.type]),typeof e.value<"u"&&(r.value=q(e.value)),r}const Dd=Lc("transactionRequest",Dr);function a8(e){return e.map(t=>({address:t.address,r:t.r?q(BigInt(t.r)):t.r,s:t.s?q(BigInt(t.s)):t.s,chainId:q(t.chainId),nonce:q(t.nonce),...typeof t.yParity<"u"?{yParity:q(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:q(t.v)}:{}}))}const o8=2n**16n-1n,Ls=2n**256n-1n,Md=50000n,E1=o8*32n,k1={block:Od({format(e){var r;const t=(r=e.transactions)==null?void 0:r.map(n=>{var a;if(typeof n=="string")return n;const s=(a=k1.transaction)==null?void 0:a.format(n);return s.typeHex==="0x71"?s.type="eip712":s.typeHex==="0xff"&&(s.type="priority"),s});return{l1BatchNumber:e.l1BatchNumber?Le(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?Le(e.l1BatchTimestamp):null,transactions:t}}}),transaction:zc({format(e){const t={};return e.type==="0x71"?t.type="eip712":e.type==="0xff"&&(t.type="priority"),{...t,l1BatchNumber:e.l1BatchNumber?Le(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?Le(e.l1BatchTxIndex):null}}}),transactionReceipt:_d({format(e){return{l1BatchNumber:e.l1BatchNumber?Le(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?Le(e.l1BatchTxIndex):null,logs:e.logs.map(t=>({...Xr(t),l1BatchNumber:t.l1BatchNumber?Le(t.l1BatchNumber):null,transactionLogIndex:ir(t.transactionLogIndex),logType:t.logType})),l2ToL1Logs:e.l2ToL1Logs.map(t=>({blockNumber:Le(t.blockHash),blockHash:t.blockHash,l1BatchNumber:t.l1BatchNumber?Le(t.l1BatchNumber):null,transactionIndex:Le(t.transactionIndex),shardId:Le(t.shardId),isService:t.isService,sender:t.sender,key:t.key,value:t.value,transactionHash:t.transactionHash,logIndex:Le(t.logIndex)}))}}}),transactionRequest:Dd({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format(e){return e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:Fe(e.gasPerPubdata)}:{gasPerPubdata:Fe(Md)},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from(or(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps.map(t=>Array.from(or(t)))}:{},...e.customSignature?{customSignature:Array.from(or(e.customSignature))}:{}},type:"0x71"}:{}}})};function cr(e){return typeof e[0]=="string"?lr(e):i8(e)}function i8(e){let t=0;for(const s of e)t+=s.length;const r=new Uint8Array(t);let n=0;for(const s of e)r.set(s,n),n+=s.length;return r}function lr(e){return`0x${e.reduce((t,r)=>t+r.replace("0x",""),"")}`}let C1=class extends ${constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},T1=class extends ${constructor({length:t,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},c8=class extends ${constructor({count:t,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const l8={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 c8({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new T1({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new C1({offset:e});const 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 C1({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const 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,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Nd(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(l8);return r.bytes=e,r.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}function Qr(e,t="hex"){const r=S1(e),n=Nd(new Uint8Array(r.length));return r.encode(n),t==="hex"?vt(n.bytes):n.bytes}function S1(e){return Array.isArray(e)?u8(e.map(t=>S1(t))):d8(e)}function u8(e){const t=e.reduce((s,a)=>s+a.length,0),r=A1(t);return{length:t<=55?1+t:1+r+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+r),r===1?s.pushUint8(t):r===2?s.pushUint16(t):r===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:a}of e)a(s)}}}function d8(e){const t=typeof e=="string"?or(e):e,r=A1(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+r),r===1?s.pushUint8(t.length):r===2?s.pushUint16(t.length):r===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function A1(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new $("Length is too large.")}const p8={gwei:9,wei:18},f8={ether:-9,wei:9};function P1(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[s,a]=[r.slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${s||"0"}${a?`.${a}`:""}`}function Ld(e,t="wei"){return P1(e,p8[t])}function Xt(e,t="wei"){return P1(e,f8[t])}function Mo(e){const t=Object.entries(e).map(([n,s])=>s===void 0||s===!1?null:[n,s]).filter(Boolean),r=t.reduce((n,[s])=>Math.max(n,s.length),0);return t.map(([n,s])=>` ${`${n}:`.padEnd(r+1)} ${s}`).join(`
66
- `)}class h8 extends ${constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class m8 extends ${constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Mo(t),"}","","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"})}}let b8=class extends ${constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}};class y8 extends ${constructor(t,{account:r,docsPath:n,chain:s,data:a,gas:o,gasPrice:i,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var y;const h=Mo({chain:s&&`${s==null?void 0:s.name} (id: ${s==null?void 0:s.id})`,from:r==null?void 0:r.address,to:d,value:typeof f<"u"&&`${Ld(f)} ${((y=s==null?void 0:s.nativeCurrency)==null?void 0:y.symbol)||"ETH"}`,data:a,gas:o,gasPrice:typeof i<"u"&&`${Xt(i)} gwei`,maxFeePerGas:typeof c<"u"&&`${Xt(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Xt(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",h].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class I1 extends ${constructor({blockHash:t,blockNumber:r,blockTag:n,hash:s,index:a}){let o="Transaction";n&&a!==void 0&&(o=`Transaction at block time "${n}" at index "${a}"`),t&&a!==void 0&&(o=`Transaction at block hash "${t}" at index "${a}"`),r&&a!==void 0&&(o=`Transaction at block number "${r}" at index "${a}"`),s&&(o=`Transaction with hash "${s}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class B1 extends ${constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class F1 extends ${constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class g8 extends ${constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}function x8(e){if(!e||e.length===0)return[];const t=[];for(const r of e){const{chainId:n,nonce:s,...a}=r,o=r.address;t.push([n?Fe(n):"0x",o,s?Fe(s):"0x",..._a({},a)])}return t}function zd(e){const{kzg:t}=e,r=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),n=typeof e.blobs[0]=="string"?e.blobs.map(a=>or(a)):e.blobs,s=[];for(const a of n)s.push(Uint8Array.from(t.blobToKzgCommitment(a)));return r==="bytes"?s:s.map(a=>vt(a))}function Rd(e){const{kzg:t}=e,r=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),n=typeof e.blobs[0]=="string"?e.blobs.map(o=>or(o)):e.blobs,s=typeof e.commitments[0]=="string"?e.commitments.map(o=>or(o)):e.commitments,a=[];for(let o=0;o<n.length;o++){const i=n[o],c=s[o];a.push(Uint8Array.from(t.computeBlobKzgProof(i,c)))}return r==="bytes"?a:a.map(o=>vt(o))}const Sa=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function w8(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function No(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function zs(e,...t){if(!w8(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function v8(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");No(e.outputLen),No(e.blockLen)}function Aa(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function U1(e,t){zs(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function E8(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function es(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Hd(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Jr(e,t){return e<<32-t|e>>>t}const k8=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function C8(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function T8(e){for(let t=0;t<e.length;t++)e[t]=C8(e[t]);return e}const O1=k8?e=>e:T8;function S8(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Hc(e){return typeof e=="string"&&(e=S8(e)),zs(e),e}function A8(...e){let t=0;for(let n=0;n<e.length;n++){const s=e[n];zs(s),t+=s.length}const r=new Uint8Array(t);for(let n=0,s=0;n<e.length;n++){const a=e[n];r.set(a,s),s+=a.length}return r}class $d{}function $c(e){const t=n=>e().update(Hc(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function P8(e=32){if(Sa&&typeof Sa.getRandomValues=="function")return Sa.getRandomValues(new Uint8Array(e));if(Sa&&typeof Sa.randomBytes=="function")return Uint8Array.from(Sa.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function I8(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const s=BigInt(32),a=BigInt(4294967295),o=Number(r>>s&a),i=Number(r&a),c=n?4:0,l=n?0:4;e.setUint32(t+c,o,n),e.setUint32(t+l,i,n)}function B8(e,t,r){return e&t^~e&r}function F8(e,t,r){return e&t^e&r^t&r}class _1 extends $d{constructor(t,r,n,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=s,this.buffer=new Uint8Array(t),this.view=Hd(this.buffer)}update(t){Aa(this),t=Hc(t),zs(t);const{view:r,buffer:n,blockLen:s}=this,a=t.length;for(let o=0;o<a;){const i=Math.min(s-this.pos,a-o);if(i===s){const c=Hd(t);for(;s<=a-o;o+=s)this.process(c,o);continue}n.set(t.subarray(o,o+i),this.pos),this.pos+=i,o+=i,this.pos===s&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Aa(this),U1(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:s,isLE:a}=this;let{pos:o}=this;r[o++]=128,es(this.buffer.subarray(o)),this.padOffset>s-o&&(this.process(n,0),o=0);for(let d=o;d<s;d++)r[d]=0;I8(n,s-8,BigInt(this.length*8),a),this.process(n,0);const i=Hd(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<l;d++)i.setUint32(4*d,u[d],a)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:s,finished:a,destroyed:o,pos:i}=this;return t.destroyed=o,t.finished=a,t.length=s,t.pos=i,s%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const ts=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Nt=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Lt=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Gc=BigInt(2**32-1),D1=BigInt(32);function U8(e,t=!1){return t?{h:Number(e&Gc),l:Number(e>>D1&Gc)}:{h:Number(e>>D1&Gc)|0,l:Number(e&Gc)|0}}function M1(e,t=!1){const r=e.length;let n=new Uint32Array(r),s=new Uint32Array(r);for(let a=0;a<r;a++){const{h:o,l:i}=U8(e[a],t);[n[a],s[a]]=[o,i]}return[n,s]}const N1=(e,t,r)=>e>>>r,L1=(e,t,r)=>e<<32-r|t>>>r,Pa=(e,t,r)=>e>>>r|t<<32-r,Ia=(e,t,r)=>e<<32-r|t>>>r,jc=(e,t,r)=>e<<64-r|t>>>r-32,Vc=(e,t,r)=>e>>>r-32|t<<64-r,O8=(e,t,r)=>e<<r|t>>>32-r,_8=(e,t,r)=>t<<r|e>>>32-r,D8=(e,t,r)=>t<<r-32|e>>>64-r,M8=(e,t,r)=>e<<r-32|t>>>64-r;function En(e,t,r,n){const s=(t>>>0)+(n>>>0);return{h:e+r+(s/2**32|0)|0,l:s|0}}const N8=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),L8=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,z8=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),R8=(e,t,r,n,s)=>t+r+n+s+(e/2**32|0)|0,H8=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0),$8=(e,t,r,n,s,a)=>t+r+n+s+a+(e/2**32|0)|0,G8=Uint32Array.from([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]),rs=new Uint32Array(64);class j8 extends _1{constructor(t=32){super(64,t,8,!1),this.A=ts[0]|0,this.B=ts[1]|0,this.C=ts[2]|0,this.D=ts[3]|0,this.E=ts[4]|0,this.F=ts[5]|0,this.G=ts[6]|0,this.H=ts[7]|0}get(){const{A:t,B:r,C:n,D:s,E:a,F:o,G:i,H:c}=this;return[t,r,n,s,a,o,i,c]}set(t,r,n,s,a,o,i,c){this.A=t|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=a|0,this.F=o|0,this.G=i|0,this.H=c|0}process(t,r){for(let d=0;d<16;d++,r+=4)rs[d]=t.getUint32(r,!1);for(let d=16;d<64;d++){const f=rs[d-15],h=rs[d-2],y=Jr(f,7)^Jr(f,18)^f>>>3,g=Jr(h,17)^Jr(h,19)^h>>>10;rs[d]=g+rs[d-7]+y+rs[d-16]|0}let{A:n,B:s,C:a,D:o,E:i,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const f=Jr(i,6)^Jr(i,11)^Jr(i,25),h=u+f+B8(i,c,l)+G8[d]+rs[d]|0,g=(Jr(n,2)^Jr(n,13)^Jr(n,22))+F8(n,s,a)|0;u=l,l=c,c=i,i=o+h|0,o=a,a=s,s=n,n=h+g|0}n=n+this.A|0,s=s+this.B|0,a=a+this.C|0,o=o+this.D|0,i=i+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(n,s,a,o,i,c,l,u)}roundClean(){es(rs)}destroy(){this.set(0,0,0,0,0,0,0,0),es(this.buffer)}}const z1=M1(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),V8=z1[0],W8=z1[1],ns=new Uint32Array(80),ss=new Uint32Array(80);class R1 extends _1{constructor(t=64){super(128,t,16,!1),this.Ah=Lt[0]|0,this.Al=Lt[1]|0,this.Bh=Lt[2]|0,this.Bl=Lt[3]|0,this.Ch=Lt[4]|0,this.Cl=Lt[5]|0,this.Dh=Lt[6]|0,this.Dl=Lt[7]|0,this.Eh=Lt[8]|0,this.El=Lt[9]|0,this.Fh=Lt[10]|0,this.Fl=Lt[11]|0,this.Gh=Lt[12]|0,this.Gl=Lt[13]|0,this.Hh=Lt[14]|0,this.Hl=Lt[15]|0}get(){const{Ah:t,Al:r,Bh:n,Bl:s,Ch:a,Cl:o,Dh:i,Dl:c,Eh:l,El:u,Fh:d,Fl:f,Gh:h,Gl:y,Hh:g,Hl:E}=this;return[t,r,n,s,a,o,i,c,l,u,d,f,h,y,g,E]}set(t,r,n,s,a,o,i,c,l,u,d,f,h,y,g,E){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=a|0,this.Cl=o|0,this.Dh=i|0,this.Dl=c|0,this.Eh=l|0,this.El=u|0,this.Fh=d|0,this.Fl=f|0,this.Gh=h|0,this.Gl=y|0,this.Hh=g|0,this.Hl=E|0}process(t,r){for(let T=0;T<16;T++,r+=4)ns[T]=t.getUint32(r),ss[T]=t.getUint32(r+=4);for(let T=16;T<80;T++){const C=ns[T-15]|0,_=ss[T-15]|0,z=Pa(C,_,1)^Pa(C,_,8)^N1(C,_,7),S=Ia(C,_,1)^Ia(C,_,8)^L1(C,_,7),m=ns[T-2]|0,b=ss[T-2]|0,x=Pa(m,b,19)^jc(m,b,61)^N1(m,b,6),A=Ia(m,b,19)^Vc(m,b,61)^L1(m,b,6),I=z8(S,A,ss[T-7],ss[T-16]),F=R8(I,z,x,ns[T-7],ns[T-16]);ns[T]=F|0,ss[T]=I|0}let{Ah:n,Al:s,Bh:a,Bl:o,Ch:i,Cl:c,Dh:l,Dl:u,Eh:d,El:f,Fh:h,Fl:y,Gh:g,Gl:E,Hh:v,Hl:w}=this;for(let T=0;T<80;T++){const C=Pa(d,f,14)^Pa(d,f,18)^jc(d,f,41),_=Ia(d,f,14)^Ia(d,f,18)^Vc(d,f,41),z=d&h^~d&g,S=f&y^~f&E,m=H8(w,_,S,W8[T],ss[T]),b=$8(m,v,C,z,V8[T],ns[T]),x=m|0,A=Pa(n,s,28)^jc(n,s,34)^jc(n,s,39),I=Ia(n,s,28)^Vc(n,s,34)^Vc(n,s,39),F=n&a^n&i^a&i,D=s&o^s&c^o&c;v=g|0,w=E|0,g=h|0,E=y|0,h=d|0,y=f|0,{h:d,l:f}=En(l|0,u|0,b|0,x|0),l=i|0,u=c|0,i=a|0,c=o|0,a=n|0,o=s|0;const k=N8(x,I,D);n=L8(k,b,A,F),s=k|0}({h:n,l:s}=En(this.Ah|0,this.Al|0,n|0,s|0)),{h:a,l:o}=En(this.Bh|0,this.Bl|0,a|0,o|0),{h:i,l:c}=En(this.Ch|0,this.Cl|0,i|0,c|0),{h:l,l:u}=En(this.Dh|0,this.Dl|0,l|0,u|0),{h:d,l:f}=En(this.Eh|0,this.El|0,d|0,f|0),{h,l:y}=En(this.Fh|0,this.Fl|0,h|0,y|0),{h:g,l:E}=En(this.Gh|0,this.Gl|0,g|0,E|0),{h:v,l:w}=En(this.Hh|0,this.Hl|0,v|0,w|0),this.set(n,s,a,o,i,c,l,u,d,f,h,y,g,E,v,w)}roundClean(){es(ns,ss)}destroy(){es(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class q8 extends R1{constructor(){super(48),this.Ah=Nt[0]|0,this.Al=Nt[1]|0,this.Bh=Nt[2]|0,this.Bl=Nt[3]|0,this.Ch=Nt[4]|0,this.Cl=Nt[5]|0,this.Dh=Nt[6]|0,this.Dl=Nt[7]|0,this.Eh=Nt[8]|0,this.El=Nt[9]|0,this.Fh=Nt[10]|0,this.Fl=Nt[11]|0,this.Gh=Nt[12]|0,this.Gl=Nt[13]|0,this.Hh=Nt[14]|0,this.Hl=Nt[15]|0}}const Gd=$c(()=>new j8),Y8=$c(()=>new R1),K8=$c(()=>new q8),H1=Gd;function $1(e,t){const r=t||"hex",n=H1(Or(e,{strict:!1})?wn(e):e);return r==="bytes"?n:Fe(n)}function Z8(e){const{commitment:t,version:r=1}=e,n=e.to??(typeof t=="string"?"hex":"bytes"),s=$1(t,"bytes");return s.set([r],0),n==="bytes"?s:vt(s)}function G1(e){const{commitments:t,version:r}=e,n=e.to??(typeof t[0]=="string"?"hex":"bytes"),s=[];for(const a of t)s.push(Z8({commitment:a,to:n,version:r}));return s}const j1=6,V1=32,jd=4096,W1=V1*jd,q1=W1*j1-1-1*jd*j1,Y1=1;class X8 extends ${constructor({maxSize:t,size:r}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${r} bytes`],name:"BlobSizeTooLargeError"})}}class K1 extends ${constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class Q8 extends ${constructor({hash:t,size:r}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${r}`],name:"InvalidVersionedHashSizeError"})}}class J8 extends ${constructor({hash:t,version:r}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${Y1}`,`Received: ${r}`],name:"InvalidVersionedHashVersionError"})}}function ev(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),r=typeof e.data=="string"?or(e.data):e.data,n=ut(r);if(!n)throw new K1;if(n>q1)throw new X8({maxSize:q1,size:n});const s=[];let a=!0,o=0;for(;a;){const i=Nd(new Uint8Array(W1));let c=0;for(;c<jd;){const l=r.slice(o,o+(V1-1));if(i.pushByte(0),i.pushBytes(l),l.length<31){i.pushByte(128),a=!1;break}c++,o+=31}s.push(i)}return t==="bytes"?s.map(i=>i.bytes):s.map(i=>vt(i.bytes))}function Z1(e){const{data:t,kzg:r,to:n}=e,s=e.blobs??ev({data:t,to:n}),a=e.commitments??zd({blobs:s,kzg:r,to:n}),o=e.proofs??Rd({blobs:s,commitments:a,kzg:r,to:n}),i=[];for(let c=0;c<s.length;c++)i.push({blob:s[c],commitment:a[c],proof:o[c]});return i}let Ct=class extends ${constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}};class Vd extends ${constructor({blockNumber:t,chain:r,contract:n}){super(`Chain "${r.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...t&&n.blockCreated&&n.blockCreated>t?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class tv extends ${constructor({chain:t,currentChainId:r}){super(`The current chain of the wallet (id: ${r}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${r}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class rv extends ${constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
64
+ `,extractResults:d=>{var f;return(((f=d.data)==null?void 0:f.orderFilleds)||[]).map(h=>({...h,timestamp:new Date(h.timestamp).getTime()}))}})};class Tw extends Error{constructor(){super("No graph endpoint found"),this.name="NoGraphEndpointError"}}const Sw=async({chainId:e,signal:t,page:r,limit:n,filters:s})=>{try{const a=await Ew({chainId:e,signal:t,page:r,limit:n,filters:s}),[o,i]=await Promise.all([Cw({chainId:e,orders:a,signal:t}),kw({chainId:e,orders:a,signal:t})]);return a.map(l=>{const u=o==null?void 0:o.filter(d=>d.TWAP_id===Number(l.Contract_id)&&Ps(d.exchange,l.exchange)&&Ps(d.twapAddress,l.twapAddress));return ww(l,e,u,Aw(l,u||[],i))}).sort((l,u)=>u.createdAt-l.createdAt)}catch{return[]}},Aw=(e,t,r)=>{var i;const n=(i=r==null?void 0:r.find(c=>c.twapId===e.Contract_id.toString()&&Ps(c.twapAddress,e.twapAddress)))==null?void 0:i.status,a=Pm(t).reduce((c,l)=>c.plus(l.inAmount),new j(0)).toFixed(),o=Bm(e.ask_srcAmount,a);return Pw(o,e.ask_deadline*1e3,n)},Bm=(e,t)=>{if(!t||!e)return 0;const r=j(t).dividedBy(e).toNumber();return r>=.99?100:r<=0?0:Number((r*100).toFixed(2))},Pw=(e,t,r)=>e===100?ct.Completed:r==="CANCELED"?ct.Canceled:r==="COMPLETED"?ct.Completed:t>Date.now()?ct.Open:ct.Expired,Fm=async({signal:e,page:t,chainId:r,limit:n,config:s,account:a})=>(await Promise.all([s?Sw({chainId:r,signal:e,page:t,limit:n,filters:{accounts:[a],configs:s.twapConfig?[s.twapConfig]:[]}}):Promise.resolve([]),gw({chainId:r,signal:e,account:a,exchange:s==null?void 0:s.adapter})]).then(([c,l])=>[...c,...l])).sort((c,l)=>l.createdAt-c.createdAt),Iw={version:"0.0.58"};var Ca=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(){}},Bw={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Fw=(m5=class{constructor(){le(this,fn,Bw);le(this,da,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&M(this,da)&&e!==M(this,fn)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:M(this,fn),provider:e}),J(this,fn,e),process.env.NODE_ENV!=="production"&&J(this,da,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&J(this,da,!0),M(this,fn).setTimeout(e,t)}clearTimeout(e){M(this,fn).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&J(this,da,!0),M(this,fn).setInterval(e,t)}clearInterval(e){M(this,fn).clearInterval(e)}},fn=new WeakMap,da=new WeakMap,m5),Fs=new Fw;function Uw(e){setTimeout(e,0)}var Us=typeof window>"u"||"Deno"in globalThis;function jt(){}function Ow(e,t){return typeof e=="function"?e(t):e}function md(e){return typeof e=="number"&&e>=0&&e!==1/0}function Um(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xn(e,t){return typeof e=="function"?e(t):e}function vr(e,t){return typeof e=="function"?e(t):e}function Om(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:a,queryKey:o,stale:i}=e;if(o){if(n){if(t.queryHash!==bd(o,t.options))return!1}else if(!Uo(t.queryKey,o))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof i=="boolean"&&t.isStale()!==i||s&&s!==t.state.fetchStatus||a&&!a(t))}function _m(e,t){const{exact:r,status:n,predicate:s,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Os(t.options.mutationKey)!==Os(a))return!1}else if(!Uo(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function bd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Os)(e)}function Os(e){return JSON.stringify(e,(t,r)=>gd(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function Uo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Uo(e[r],t[r])):!1}var _w=Object.prototype.hasOwnProperty;function yd(e,t){if(e===t)return e;const r=Dm(e)&&Dm(t);if(!r&&!(gd(e)&&gd(t)))return t;const s=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,i=r?new Array(o):{};let c=0;for(let l=0;l<o;l++){const u=r?l:a[l],d=e[u],f=t[u];if(d===f){i[u]=d,(r?l<s:_w.call(e,u))&&c++;continue}if(d===null||f===null||typeof d!="object"||typeof f!="object"){i[u]=f;continue}const h=yd(d,f);i[u]=h,h===d&&c++}return s===o&&c===s?e:i}function Uc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Dm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gd(e){if(!Mm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Mm(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Mm(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dw(e){return new Promise(t=>{Fs.setTimeout(t,e)})}function xd(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return yd(e,t)}catch(n){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${n}`),n}return yd(e,t)}return t}function Mw(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Nw(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Oc=Symbol();function Nm(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Oc&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Oc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Lm(e,t){return typeof e=="function"?e(...t):!!e}var Lw=(b5=class extends Ca{constructor(){super();le(this,pa);le(this,gs);le(this,go);J(this,go,t=>{if(!Us&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){M(this,gs)||this.setEventListener(M(this,go))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,gs))==null||t.call(this),J(this,gs,void 0))}setEventListener(t){var r;J(this,go,t),(r=M(this,gs))==null||r.call(this),J(this,gs,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){M(this,pa)!==t&&(J(this,pa,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof M(this,pa)=="boolean"?M(this,pa):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},pa=new WeakMap,gs=new WeakMap,go=new WeakMap,b5),wd=new Lw;function vd(){let e,t;const r=new Promise((s,a)=>{e=s,t=a});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}var zw=Uw;function Rw(){let e=[],t=0,r=i=>{i()},n=i=>{i()},s=zw;const a=i=>{t?e.push(i):s(()=>{r(i)})},o=()=>{const i=e;e=[],i.length&&s(()=>{n(()=>{i.forEach(c=>{r(c)})})})};return{batch:i=>{let c;t++;try{c=i()}finally{t--,t||o()}return c},batchCalls:i=>(...c)=>{a(()=>{i(...c)})},schedule:a,setNotifyFunction:i=>{r=i},setBatchNotifyFunction:i=>{n=i},setScheduler:i=>{s=i}}}var kt=Rw(),Hw=(y5=class extends Ca{constructor(){super();le(this,xo,!0);le(this,xs);le(this,wo);J(this,wo,t=>{if(!Us&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){M(this,xs)||this.setEventListener(M(this,wo))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,xs))==null||t.call(this),J(this,xs,void 0))}setEventListener(t){var r;J(this,wo,t),(r=M(this,xs))==null||r.call(this),J(this,xs,t(this.setOnline.bind(this)))}setOnline(t){M(this,xo)!==t&&(J(this,xo,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return M(this,xo)}},xo=new WeakMap,xs=new WeakMap,wo=new WeakMap,y5),_c=new Hw;function $w(e){return Math.min(1e3*2**e,3e4)}function zm(e){return(e??"online")==="online"?_c.isOnline():!0}var Ed=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Rm(e){let t=!1,r=0,n;const s=vd(),a=()=>s.status!=="pending",o=g=>{var E;if(!a()){const v=new Ed(g);f(v),(E=e.onCancel)==null||E.call(e,v)}},i=()=>{t=!0},c=()=>{t=!1},l=()=>wd.isFocused()&&(e.networkMode==="always"||_c.isOnline())&&e.canRun(),u=()=>zm(e.networkMode)&&e.canRun(),d=g=>{a()||(n==null||n(),s.resolve(g))},f=g=>{a()||(n==null||n(),s.reject(g))},h=()=>new Promise(g=>{var E;n=v=>{(a()||l())&&g(v)},(E=e.onPause)==null||E.call(e)}).then(()=>{var g;n=void 0,a()||(g=e.onContinue)==null||g.call(e)}),y=()=>{if(a())return;let g;const E=r===0?e.initialPromise:void 0;try{g=E??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var z;if(a())return;const w=e.retry??(Us?0:3),T=e.retryDelay??$w,C=typeof T=="function"?T(r,v):T,_=w===!0||typeof w=="number"&&r<w||typeof w=="function"&&w(r,v);if(t||!_){f(v);return}r++,(z=e.onFail)==null||z.call(e,r,v),Dw(C).then(()=>l()?void 0:h()).then(()=>{t?f(v):y()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(n==null||n(),s),cancelRetry:i,continueRetry:c,canStart:u,start:()=>(u()?y():h().then(y),s)}}var Hm=(g5=class{constructor(){le(this,fa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),md(this.gcTime)&&J(this,fa,Fs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Us?1/0:300*1e3))}clearGcTimeout(){M(this,fa)&&(Fs.clearTimeout(M(this,fa)),J(this,fa,void 0))}},fa=new WeakMap,g5),Gw=(x5=class extends Hm{constructor(t){super();le(this,Yr);le(this,ha);le(this,vo);le(this,Br);le(this,ma);le(this,Bt);le(this,xc);le(this,ba);J(this,ba,!1),J(this,xc,t.defaultOptions),this.setOptions(t.options),this.observers=[],J(this,ma,t.client),J(this,Br,M(this,ma).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,J(this,ha,jm(this.options)),this.state=t.state??M(this,ha),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,Bt))==null?void 0:t.promise}setOptions(t){if(this.options={...M(this,xc),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=jm(this.options);r.data!==void 0&&(this.setState(Gm(r.data,r.dataUpdatedAt)),J(this,ha,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,Br).remove(this)}setData(t,r){const n=xd(this.state.data,t,this.options);return Ae(this,Yr,Yn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Ae(this,Yr,Yn).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=M(this,Bt))==null?void 0:n.promise;return(s=M(this,Bt))==null||s.cancel(t),r?r.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,ha))}isActive(){return this.observers.some(t=>vr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Oc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Xn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Um(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=M(this,Bt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=M(this,Bt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,Br).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(M(this,Bt)&&(M(this,ba)?M(this,Bt).cancel({revert:!0}):M(this,Bt).cancelRetry()),this.scheduleGc()),M(this,Br).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ae(this,Yr,Yn).call(this,{type:"invalidate"})}async fetch(t,r){var c,l,u,d,f,h,y,g,E,v,w,T;if(this.state.fetchStatus!=="idle"&&((c=M(this,Bt))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(M(this,Bt))return M(this,Bt).continueRetry(),M(this,Bt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(_=>_.options.queryFn);C&&this.setOptions(C.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,s=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(J(this,ba,!0),n.signal)})},a=()=>{const C=Nm(this.options,r),z=(()=>{const S={client:M(this,ma),queryKey:this.queryKey,meta:this.meta};return s(S),S})();return J(this,ba,!1),this.options.persister?this.options.persister(C,z,this):C(z)},i=(()=>{const C={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:M(this,ma),state:this.state,fetchFn:a};return s(C),C})();(l=this.options.behavior)==null||l.onFetch(i,this),J(this,vo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=i.fetchOptions)==null?void 0:u.meta))&&Ae(this,Yr,Yn).call(this,{type:"fetch",meta:(d=i.fetchOptions)==null?void 0:d.meta}),J(this,Bt,Rm({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,onCancel:C=>{C instanceof Ed&&C.revert&&this.setState({...M(this,vo),fetchStatus:"idle"}),n.abort()},onFail:(C,_)=>{Ae(this,Yr,Yn).call(this,{type:"failed",failureCount:C,error:_})},onPause:()=>{Ae(this,Yr,Yn).call(this,{type:"pause"})},onContinue:()=>{Ae(this,Yr,Yn).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}));try{const C=await M(this,Bt).start();if(C===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(C),(h=(f=M(this,Br).config).onSuccess)==null||h.call(f,C,this),(g=(y=M(this,Br).config).onSettled)==null||g.call(y,C,this.state.error,this),C}catch(C){if(C instanceof Ed){if(C.silent)return M(this,Bt).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Ae(this,Yr,Yn).call(this,{type:"error",error:C}),(v=(E=M(this,Br).config).onError)==null||v.call(E,C,this),(T=(w=M(this,Br).config).onSettled)==null||T.call(w,this.state.data,C,this),C}finally{this.scheduleGc()}}},ha=new WeakMap,vo=new WeakMap,Br=new WeakMap,ma=new WeakMap,Bt=new WeakMap,xc=new WeakMap,ba=new WeakMap,Yr=new WeakSet,Yn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...$m(n.data,this.options),fetchMeta:t.meta??null};case"success":const s={...n,...Gm(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,vo,t.manual?s:void 0),s;case"error":const a=t.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),kt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),M(this,Br).notify({query:this,type:"updated",action:t})})},x5);function $m(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zm(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Gm(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function jm(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var jw=(w5=class extends Ca{constructor(t,r){super();le(this,We);le(this,sr);le(this,Oe);le(this,wc);le(this,qt);le(this,ya);le(this,Eo);le(this,Gn);le(this,ws);le(this,vc);le(this,ko);le(this,Co);le(this,ga);le(this,xa);le(this,vs);le(this,To,new Set);this.options=r,J(this,sr,t),J(this,ws,null),J(this,Gn,vd()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,Oe).addObserver(this),Vm(M(this,Oe),this.options)?Ae(this,We,Cc).call(this):this.updateResult(),Ae(this,We,Ah).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return kd(M(this,Oe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return kd(M(this,Oe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ae(this,We,Ph).call(this),Ae(this,We,Ih).call(this),M(this,Oe).removeObserver(this)}setOptions(t){const r=this.options,n=M(this,Oe);if(this.options=M(this,sr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof vr(this.options.enabled,M(this,Oe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ae(this,We,Bh).call(this),M(this,Oe).setOptions(this.options),r._defaulted&&!Uc(this.options,r)&&M(this,sr).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,Oe),observer:this});const s=this.hasListeners();s&&Wm(M(this,Oe),n,this.options,r)&&Ae(this,We,Cc).call(this),this.updateResult(),s&&(M(this,Oe)!==n||vr(this.options.enabled,M(this,Oe))!==vr(r.enabled,M(this,Oe))||Xn(this.options.staleTime,M(this,Oe))!==Xn(r.staleTime,M(this,Oe)))&&Ae(this,We,Ch).call(this);const a=Ae(this,We,Th).call(this);s&&(M(this,Oe)!==n||vr(this.options.enabled,M(this,Oe))!==vr(r.enabled,M(this,Oe))||a!==M(this,vs))&&Ae(this,We,Sh).call(this,a)}getOptimisticResult(t){const r=M(this,sr).getQueryCache().build(M(this,sr),t),n=this.createResult(r,t);return Ww(this,n)&&(J(this,qt,n),J(this,Eo,this.options),J(this,ya,M(this,Oe).state)),n}getCurrentResult(){return M(this,qt)}trackResult(t,r){return new Proxy(t,{get:(n,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&M(this,Gn).status==="pending"&&M(this,Gn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,s))})}trackProp(t){M(this,To).add(t)}getCurrentQuery(){return M(this,Oe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=M(this,sr).defaultQueryOptions(t),n=M(this,sr).getQueryCache().build(M(this,sr),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return Ae(this,We,Cc).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,qt)))}createResult(t,r){var b;const n=M(this,Oe),s=this.options,a=M(this,qt),o=M(this,ya),i=M(this,Eo),l=t!==n?t.state:M(this,wc),{state:u}=t;let d={...u},f=!1,h;if(r._optimisticResults){const x=this.hasListeners(),A=!x&&Vm(t,r),I=x&&Wm(t,n,r,s);(A||I)&&(d={...d,...$m(u.data,t.options)}),r._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:y,errorUpdatedAt:g,status:E}=d;h=d.data;let v=!1;if(r.placeholderData!==void 0&&h===void 0&&E==="pending"){let x;a!=null&&a.isPlaceholderData&&r.placeholderData===(i==null?void 0:i.placeholderData)?(x=a.data,v=!0):x=typeof r.placeholderData=="function"?r.placeholderData((b=M(this,Co))==null?void 0:b.state.data,M(this,Co)):r.placeholderData,x!==void 0&&(E="success",h=xd(a==null?void 0:a.data,x,r),f=!0)}if(r.select&&h!==void 0&&!v)if(a&&h===(o==null?void 0:o.data)&&r.select===M(this,vc))h=M(this,ko);else try{J(this,vc,r.select),h=r.select(h),h=xd(a==null?void 0:a.data,h,r),J(this,ko,h),J(this,ws,null)}catch(x){J(this,ws,x)}M(this,ws)&&(y=M(this,ws),h=M(this,ko),g=Date.now(),E="error");const w=d.fetchStatus==="fetching",T=E==="pending",C=E==="error",_=T&&w,z=h!==void 0,m={status:E,fetchStatus:d.fetchStatus,isPending:T,isSuccess:E==="success",isError:C,isInitialLoading:_,isLoading:_,data:h,dataUpdatedAt:d.dataUpdatedAt,error:y,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!T,isLoadingError:C&&!z,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:C&&z,isStale:Cd(t,r),refetch:this.refetch,promise:M(this,Gn),isEnabled:vr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const x=F=>{m.status==="error"?F.reject(m.error):m.data!==void 0&&F.resolve(m.data)},A=()=>{const F=J(this,Gn,m.promise=vd());x(F)},I=M(this,Gn);switch(I.status){case"pending":t.queryHash===n.queryHash&&x(I);break;case"fulfilled":(m.status==="error"||m.data!==I.value)&&A();break;case"rejected":(m.status!=="error"||m.error!==I.reason)&&A();break}}return m}updateResult(){const t=M(this,qt),r=this.createResult(M(this,Oe),this.options);if(J(this,ya,M(this,Oe).state),J(this,Eo,this.options),M(this,ya).data!==void 0&&J(this,Co,M(this,Oe)),Uc(r,t))return;J(this,qt,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!M(this,To).size)return!0;const o=new Set(a??M(this,To));return this.options.throwOnError&&o.add("error"),Object.keys(M(this,qt)).some(i=>{const c=i;return M(this,qt)[c]!==t[c]&&o.has(c)})};Ae(this,We,O5).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ae(this,We,Ah).call(this)}},sr=new WeakMap,Oe=new WeakMap,wc=new WeakMap,qt=new WeakMap,ya=new WeakMap,Eo=new WeakMap,Gn=new WeakMap,ws=new WeakMap,vc=new WeakMap,ko=new WeakMap,Co=new WeakMap,ga=new WeakMap,xa=new WeakMap,vs=new WeakMap,To=new WeakMap,We=new WeakSet,Cc=function(t){Ae(this,We,Bh).call(this);let r=M(this,Oe).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(jt)),r},Ch=function(){Ae(this,We,Ph).call(this);const t=Xn(this.options.staleTime,M(this,Oe));if(Us||M(this,qt).isStale||!md(t))return;const n=Um(M(this,qt).dataUpdatedAt,t)+1;J(this,ga,Fs.setTimeout(()=>{M(this,qt).isStale||this.updateResult()},n))},Th=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,Oe)):this.options.refetchInterval)??!1},Sh=function(t){Ae(this,We,Ih).call(this),J(this,vs,t),!(Us||vr(this.options.enabled,M(this,Oe))===!1||!md(M(this,vs))||M(this,vs)===0)&&J(this,xa,Fs.setInterval(()=>{(this.options.refetchIntervalInBackground||wd.isFocused())&&Ae(this,We,Cc).call(this)},M(this,vs)))},Ah=function(){Ae(this,We,Ch).call(this),Ae(this,We,Sh).call(this,Ae(this,We,Th).call(this))},Ph=function(){M(this,ga)&&(Fs.clearTimeout(M(this,ga)),J(this,ga,void 0))},Ih=function(){M(this,xa)&&(Fs.clearInterval(M(this,xa)),J(this,xa,void 0))},Bh=function(){const t=M(this,sr).getQueryCache().build(M(this,sr),this.options);if(t===M(this,Oe))return;const r=M(this,Oe);J(this,Oe,t),J(this,wc,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},O5=function(t){kt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(M(this,qt))}),M(this,sr).getQueryCache().notify({query:M(this,Oe),type:"observerResultsUpdated"})})},w5);function Vw(e,t){return vr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Vm(e,t){return Vw(e,t)||e.state.data!==void 0&&kd(e,t,t.refetchOnMount)}function kd(e,t,r){if(vr(t.enabled,e)!==!1&&Xn(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Cd(e,t)}return!1}function Wm(e,t,r,n){return(e!==t||vr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Cd(e,r)}function Cd(e,t){return vr(t.enabled,e)!==!1&&e.isStaleByTime(Xn(t.staleTime,e))}function Ww(e,t){return!Uc(e.getCurrentResult(),t)}function qm(e){return{onFetch:(t,r)=>{var u,d,f,h,y;const n=t.options,s=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,a=((h=t.state.data)==null?void 0:h.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let i={pages:[],pageParams:[]},c=0;const l=async()=>{let g=!1;const E=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=Nm(t.options,t.fetchOptions),w=async(T,C,_)=>{if(g)return Promise.reject();if(C==null&&T.pages.length)return Promise.resolve(T);const S=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:C,direction:_?"backward":"forward",meta:t.options.meta};return E(A),A})(),m=await v(S),{maxPages:b}=t.options,x=_?Nw:Mw;return{pages:x(T.pages,m,b),pageParams:x(T.pageParams,C,b)}};if(s&&a.length){const T=s==="backward",C=T?qw:Ym,_={pages:a,pageParams:o},z=C(n,_);i=await w(_,z,T)}else{const T=e??a.length;do{const C=c===0?o[0]??n.initialPageParam:Ym(n,i);if(c>0&&C==null)break;i=await w(i,C),c++}while(c<T)}return i};t.options.persister?t.fetchFn=()=>{var g,E;return(E=(g=t.options).persister)==null?void 0:E.call(g,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function Ym(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function qw(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Yw=(v5=class extends Hm{constructor(t){super();le(this,mn);le(this,Ec);le(this,hn);le(this,Yt);le(this,wa);J(this,Ec,t.client),this.mutationId=t.mutationId,J(this,Yt,t.mutationCache),J(this,hn,[]),this.state=t.state||Km(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,hn).includes(t)||(M(this,hn).push(t),this.clearGcTimeout(),M(this,Yt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){J(this,hn,M(this,hn).filter(r=>r!==t)),this.scheduleGc(),M(this,Yt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,hn).length||(this.state.status==="pending"?this.scheduleGc():M(this,Yt).remove(this))}continue(){var t;return((t=M(this,wa))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,c,l,u,d,f,h,y,g,E,v,w,T,C,_,z,S,m,b;const r=()=>{Ae(this,mn,Ss).call(this,{type:"continue"})},n={client:M(this,Ec),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,wa,Rm({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(x,A)=>{Ae(this,mn,Ss).call(this,{type:"failed",failureCount:x,error:A})},onPause:()=>{Ae(this,mn,Ss).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,Yt).canRun(this)}));const s=this.state.status==="pending",a=!M(this,wa).canStart();try{if(s)r();else{Ae(this,mn,Ss).call(this,{type:"pending",variables:t,isPaused:a}),await((i=(o=M(this,Yt).config).onMutate)==null?void 0:i.call(o,t,this,n));const A=await((l=(c=this.options).onMutate)==null?void 0:l.call(c,t,n));A!==this.state.context&&Ae(this,mn,Ss).call(this,{type:"pending",context:A,variables:t,isPaused:a})}const x=await M(this,wa).start();return await((d=(u=M(this,Yt).config).onSuccess)==null?void 0:d.call(u,x,t,this.state.context,this,n)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,x,t,this.state.context,n)),await((g=(y=M(this,Yt).config).onSettled)==null?void 0:g.call(y,x,null,this.state.variables,this.state.context,this,n)),await((v=(E=this.options).onSettled)==null?void 0:v.call(E,x,null,t,this.state.context,n)),Ae(this,mn,Ss).call(this,{type:"success",data:x}),x}catch(x){try{throw await((T=(w=M(this,Yt).config).onError)==null?void 0:T.call(w,x,t,this.state.context,this,n)),await((_=(C=this.options).onError)==null?void 0:_.call(C,x,t,this.state.context,n)),await((S=(z=M(this,Yt).config).onSettled)==null?void 0:S.call(z,void 0,x,this.state.variables,this.state.context,this,n)),await((b=(m=this.options).onSettled)==null?void 0:b.call(m,void 0,x,t,this.state.context,n)),x}finally{Ae(this,mn,Ss).call(this,{type:"error",error:x})}}finally{M(this,Yt).runNext(this)}}},Ec=new WeakMap,hn=new WeakMap,Yt=new WeakMap,wa=new WeakMap,mn=new WeakSet,Ss=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),kt.batch(()=>{M(this,hn).forEach(n=>{n.onMutationUpdate(t)}),M(this,Yt).notify({mutation:this,type:"updated",action:t})})},v5);function Km(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kw=(E5=class extends Ca{constructor(t={}){super();le(this,jn);le(this,Kr);le(this,kc);this.config=t,J(this,jn,new Set),J(this,Kr,new Map),J(this,kc,0)}build(t,r,n){const s=new Yw({client:t,mutationCache:this,mutationId:++Ku(this,kc)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){M(this,jn).add(t);const r=Dc(t);if(typeof r=="string"){const n=M(this,Kr).get(r);n?n.push(t):M(this,Kr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(M(this,jn).delete(t)){const r=Dc(t);if(typeof r=="string"){const n=M(this,Kr).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&M(this,Kr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Dc(t);if(typeof r=="string"){const n=M(this,Kr).get(r),s=n==null?void 0:n.find(a=>a.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=Dc(t);if(typeof r=="string"){const s=(n=M(this,Kr).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){kt.batch(()=>{M(this,jn).forEach(t=>{this.notify({type:"removed",mutation:t})}),M(this,jn).clear(),M(this,Kr).clear()})}getAll(){return Array.from(M(this,jn))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>_m(r,n))}findAll(t={}){return this.getAll().filter(r=>_m(t,r))}notify(t){kt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return kt.batch(()=>Promise.all(t.map(r=>r.continue().catch(jt))))}},jn=new WeakMap,Kr=new WeakMap,kc=new WeakMap,E5);function Dc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Zw=(k5=class extends Ca{constructor(t,r){super();le(this,qn);le(this,Vn);le(this,Es);le(this,ar);le(this,Wn);J(this,Vn,t),this.setOptions(r),this.bindMethods(),Ae(this,qn,Zu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=M(this,Vn).defaultMutationOptions(t),Uc(this.options,r)||M(this,Vn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,ar),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Os(r.mutationKey)!==Os(this.options.mutationKey)?this.reset():((n=M(this,ar))==null?void 0:n.state.status)==="pending"&&M(this,ar).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=M(this,ar))==null||t.removeObserver(this)}onMutationUpdate(t){Ae(this,qn,Zu).call(this),Ae(this,qn,Fh).call(this,t)}getCurrentResult(){return M(this,Es)}reset(){var t;(t=M(this,ar))==null||t.removeObserver(this),J(this,ar,void 0),Ae(this,qn,Zu).call(this),Ae(this,qn,Fh).call(this)}mutate(t,r){var n;return J(this,Wn,r),(n=M(this,ar))==null||n.removeObserver(this),J(this,ar,M(this,Vn).getMutationCache().build(M(this,Vn),this.options)),M(this,ar).addObserver(this),M(this,ar).execute(t)}},Vn=new WeakMap,Es=new WeakMap,ar=new WeakMap,Wn=new WeakMap,qn=new WeakSet,Zu=function(){var r;const t=((r=M(this,ar))==null?void 0:r.state)??Km();J(this,Es,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Fh=function(t){kt.batch(()=>{var r,n,s,a,o,i,c,l;if(M(this,Wn)&&this.hasListeners()){const u=M(this,Es).variables,d=M(this,Es).context,f={client:M(this,Vn),meta:this.options.meta,mutationKey:this.options.mutationKey};(t==null?void 0:t.type)==="success"?((n=(r=M(this,Wn)).onSuccess)==null||n.call(r,t.data,u,d,f),(a=(s=M(this,Wn)).onSettled)==null||a.call(s,t.data,null,u,d,f)):(t==null?void 0:t.type)==="error"&&((i=(o=M(this,Wn)).onError)==null||i.call(o,t.error,u,d,f),(l=(c=M(this,Wn)).onSettled)==null||l.call(c,void 0,t.error,u,d,f))}this.listeners.forEach(u=>{u(M(this,Es))})})},k5),Xw=(C5=class extends Ca{constructor(t={}){super();le(this,bn);this.config=t,J(this,bn,new Map)}build(t,r,n){const s=r.queryKey,a=r.queryHash??bd(s,r);let o=this.get(a);return o||(o=new Gw({client:t,queryKey:s,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){M(this,bn).has(t.queryHash)||(M(this,bn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=M(this,bn).get(t.queryHash);r&&(t.destroy(),r===t&&M(this,bn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){kt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,bn).get(t)}getAll(){return[...M(this,bn).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Om(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Om(t,n)):r}notify(t){kt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},bn=new WeakMap,C5),Qw=(T5=class{constructor(e={}){le(this,ht);le(this,ks);le(this,Cs);le(this,So);le(this,Ao);le(this,Ts);le(this,Po);le(this,Io);J(this,ht,e.queryCache||new Xw),J(this,ks,e.mutationCache||new Kw),J(this,Cs,e.defaultOptions||{}),J(this,So,new Map),J(this,Ao,new Map),J(this,Ts,0)}mount(){Ku(this,Ts)._++,M(this,Ts)===1&&(J(this,Po,wd.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ht).onFocus())})),J(this,Io,_c.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ht).onOnline())})))}unmount(){var e,t;Ku(this,Ts)._--,M(this,Ts)===0&&((e=M(this,Po))==null||e.call(this),J(this,Po,void 0),(t=M(this,Io))==null||t.call(this),J(this,Io,void 0))}isFetching(e){return M(this,ht).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,ks).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=M(this,ht).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=M(this,ht).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Xn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return M(this,ht).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=M(this,ht).get(n.queryHash),a=s==null?void 0:s.state.data,o=Ow(t,a);if(o!==void 0)return M(this,ht).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return kt.batch(()=>M(this,ht).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=M(this,ht).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=M(this,ht);kt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=M(this,ht);return kt.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=kt.batch(()=>M(this,ht).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(jt).catch(jt)}invalidateQueries(e,t={}){return kt.batch(()=>(M(this,ht).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=kt.batch(()=>M(this,ht).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,r);return r.throwOnError||(a=a.catch(jt)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=M(this,ht).build(this,t);return r.isStaleByTime(Xn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jt).catch(jt)}fetchInfiniteQuery(e){return e.behavior=qm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jt).catch(jt)}ensureInfiniteQueryData(e){return e.behavior=qm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _c.isOnline()?M(this,ks).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,ht)}getMutationCache(){return M(this,ks)}getDefaultOptions(){return M(this,Cs)}setDefaultOptions(e){J(this,Cs,e)}setQueryDefaults(e,t){M(this,So).set(Os(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,So).values()],r={};return t.forEach(n=>{Uo(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){M(this,Ao).set(Os(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,Ao).values()],r={};return t.forEach(n=>{Uo(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,Cs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bd(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Oc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Cs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,ht).clear(),M(this,ks).clear()}},ht=new WeakMap,ks=new WeakMap,Cs=new WeakMap,So=new WeakMap,Ao=new WeakMap,Ts=new WeakMap,Po=new WeakMap,Io=new WeakMap,T5),Zm=xt.createContext(void 0),Mc=e=>{const t=xt.useContext(Zm);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Jw=({client:e,children:t})=>(xt.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),B.jsx(Zm.Provider,{value:e,children:t})),Xm=xt.createContext(!1),e3=()=>xt.useContext(Xm);Xm.Provider;function t3(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var r3=xt.createContext(t3()),n3=()=>xt.useContext(r3),s3=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},a3=e=>{xt.useEffect(()=>{e.clearReset()},[e])},o3=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&e.data===void 0||Lm(r,[e.error,n])),i3=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...s)=>r(n(...s)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},c3=(e,t)=>e.isLoading&&e.isFetching&&!t,l3=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Qm=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function u3(e,t,r){var d,f,h,y,g;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const n=e3(),s=n3(),a=Mc(),o=a.defaultQueryOptions(e);(f=(d=a.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||f.call(d,o),process.env.NODE_ENV!=="production"&&(o.queryFn||console.error(`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),o._optimisticResults=n?"isRestoring":"optimistic",i3(o),s3(o,s),a3(s);const i=!a.getQueryCache().get(o.queryHash),[c]=xt.useState(()=>new t(a,o)),l=c.getOptimisticResult(o),u=!n&&e.subscribed!==!1;if(xt.useSyncExternalStore(xt.useCallback(E=>{const v=u?c.subscribe(kt.batchCalls(E)):jt;return c.updateResult(),v},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),xt.useEffect(()=>{c.setOptions(o)},[o,c]),l3(o,l))throw Qm(o,c,s);if(o3({result:l,errorResetBoundary:s,throwOnError:o.throwOnError,query:a.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;if((y=(h=a.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||y.call(h,o,l),o.experimental_prefetchInRender&&!Us&&c3(l,n)){const E=i?Qm(o,c,s):(g=a.getQueryCache().get(o.queryHash))==null?void 0:g.promise;E==null||E.catch(jt).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?l:c.trackResult(l)}function d3(e,t){return u3(e,jw)}function Zr(e,t){const r=Mc(),[n]=xt.useState(()=>new Zw(r,e));xt.useEffect(()=>{n.setOptions(e)},[n,e]);const s=xt.useSyncExternalStore(xt.useCallback(o=>n.subscribe(kt.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=xt.useCallback((o,i)=>{n.mutate(o,i).catch(jt)},[n]);if(s.error&&Lm(n.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:a,mutateAsync:s.mutate}}const p3=N.createContext(null),Td={didCatch:!1,error:null};class f3 extends N.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Td}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(Td)}}componentDidCatch(t,r){var n,s;(n=(s=this.props).onError)===null||n===void 0||n.call(s,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:s}=this.props;if(n&&r.error!==null&&h3(t.resetKeys,s)){var a,o;(a=(o=this.props).onReset)===null||a===void 0||a.call(o,{next:s,prev:t.resetKeys,reason:"keys"}),this.setState(Td)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:s}=this.props,{didCatch:a,error:o}=this.state;let i=t;if(a){const c={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")i=r(c);else if(n)i=N.createElement(n,c);else if(s!==void 0)i=s;else throw o}return N.createElement(p3.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},i)}}function h3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const Jm=e=>{let t;const r=new Set,n=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),r.forEach(h=>h(t,f))}},s=()=>t,i={setState:n,getState:s,getInitialState:()=>c,subscribe:l=>(r.add(l),()=>r.delete(l))},c=t=e(n,s,i);return i},m3=(e=>e?Jm(e):Jm),b3=e=>e;function y3(e,t=b3){const r=N.useSyncExternalStore(e.subscribe,N.useCallback(()=>t(e.getState()),[e,t]),N.useCallback(()=>t(e.getInitialState()),[e,t]));return N.useDebugValue(r),r}const e1=e=>{const t=m3(e),r=n=>y3(t,n);return Object.assign(r,t),r},g3=(e=>e?e1(e):e1),t1={disclaimerAccepted:!0,currentTime:Date.now(),swapExecution:{}},te=g3((e,t)=>({state:t1,updateState:r=>e(n=>({state:{...n.state,...r}})),updateSwapExecution:r=>e(n=>({state:{...n.state,swapExecution:{...n.state.swapExecution,...r}}})),resetState:()=>{e({state:{...t1,currentTime:Date.now(),swapExecution:t().state.swapExecution,isMarketOrder:t().state.isMarketOrder}})}}));(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".orbs_OrbsLogo{object-fit:contain;display:inline}.orbs_PoweredBy{border-radius:8px;margin-left:auto;margin-right:auto}.orbs_PoweredBy a{display:flex;align-items:center;justify-content:center;text-decoration:none;color:inherit}.orbs_PoweredBy span{font-size:14px}.orbs_PoweredBy .orbs_OrbsLogo{margin-left:6px;margin-right:6px;width:18px;height:18px}.orbs_Text{margin:0;padding:0}.orbs_Spinner{width:var(--size, 38px);height:var(--size, 38px);border:var(--border-width, 3px) solid var(--border-color, white);border-bottom-color:var(--bottom-border-color, rgba(255, 255, 255, .2));border-radius:50%;display:inline-block;box-sizing:border-box;animation:orbs_rotation 1s linear infinite}@keyframes orbs_rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.orbs_TradeStepLayout{--layout-min-height: 220px;--layout-width: 100%;--layout-display: flex;--layout-direction: column;--layout-align: center;--layout-overflow: visible;display:var(--layout-display);flex-direction:var(--layout-direction);align-items:var(--layout-align);width:var(--layout-width);min-height:var(--layout-min-height);overflow:var(--layout-overflow)}.orbs_TradeStepLayoutBody{--body-gap: 20px;--body-margin-top: 30px;--body-width: 100%;--body-display: flex;--body-direction: column;--body-align: center;--body-overflow: visible;gap:var(--body-gap);align-items:var(--body-align);display:var(--body-display);flex-direction:var(--body-direction);width:var(--body-width);margin-top:var(--body-margin-top);overflow:var(--body-overflow)}.orbs_TradeStepLayoutHeader{--header-gap: 30px;--header-display: flex;--header-direction: column;--header-align: center;--header-justify: center;--header-overflow: visible;display:var(--header-display);flex-direction:var(--header-direction);align-items:var(--header-align);justify-content:var(--header-justify);gap:var(--header-gap);overflow:var(--header-overflow)}.orbs_TradeStepLayoutTitle{--title-font-size: 18px;--title-font-weight: 500;--title-line-height: normal;--title-color: inherit;--title-text-align: center;--title-margin: 0;--title-padding: 0;font-size:var(--title-font-size);font-weight:var(--title-font-weight);line-height:var(--title-line-height);color:var(--title-color);text-align:var(--title-text-align);margin:var(--title-margin);padding:var(--title-padding)}.orbs_StepIndicator{--indicator-display: flex;--indicator-align: center;--indicator-justify: flex-start;--indicator-height: 7px;--indicator-width: 120px;--indicator-border-radius: 999px;--indicator-bg-color: white;--indicator-margin-bottom: 20px;--indicator-position: relative;--indicator-overflow: hidden;--indicator-border: none;--indicator-box-shadow: none;display:var(--indicator-display);align-items:var(--indicator-align);justify-content:var(--indicator-justify);height:var(--indicator-height);width:var(--indicator-width);border-radius:var(--indicator-border-radius);overflow:var(--indicator-overflow);background-color:var(--indicator-bg-color);margin-bottom:var(--indicator-margin-bottom);position:var(--indicator-position);border:var(--indicator-border);box-shadow:var(--indicator-box-shadow)}.orbs_StepIndicatorLine{--line-height: 100%;--line-bg-color: black;--line-position: absolute;--line-top: 0;--line-left: 0;--line-right: 0;--line-bottom: 0;--line-transition: all .3s ease;--line-border-radius: inherit;--line-box-shadow: none;height:var(--line-height);background-color:var(--line-bg-color);position:var(--line-position);top:var(--line-top);left:var(--line-left);right:var(--line-right);bottom:var(--line-bottom);transition:var(--line-transition);border-radius:var(--line-border-radius);box-shadow:var(--line-box-shadow)}.orbs_TradeStepLayoutFooter{--footer-display: flex;--footer-align: center;--footer-justify: center;--footer-direction: column;--footer-margin-top: auto;--footer-padding-top: 30px;--footer-width: 100%;--footer-overflow: visible;--footer-border-top: none;display:var(--footer-display);align-items:var(--footer-align);justify-content:var(--footer-justify);flex-direction:var(--footer-direction);margin-top:var(--footer-margin-top);padding-top:var(--footer-padding-top);width:var(--footer-width);overflow:var(--footer-overflow);border-top:var(--footer-border-top)}.orbs_TradeStepLayoutFooter p{--footer-text-font-size: 15px;--footer-text-line-height: normal;--footer-text-color: inherit;--footer-text-margin: 0;--footer-text-padding: 0;font-size:var(--footer-text-font-size);line-height:var(--footer-text-line-height);color:var(--footer-text-color);margin:var(--footer-text-margin);padding:var(--footer-text-padding)}.orbs_TradeStepLayoutFooterLink{--link-color: inherit;--link-text-decoration: none;--link-font-size: 15px;--link-text-align: center;--link-margin: auto;--link-outline: none;--link-line-height: normal;--link-padding: 0;--link-transition: color .2s ease;--link-hover-color: inherit;--link-hover-text-decoration: underline;color:var(--link-color);text-decoration:var(--link-text-decoration);font-size:var(--link-font-size);text-align:var(--link-text-align);margin-left:var(--link-margin);margin-right:var(--link-margin);outline:var(--link-outline);line-height:var(--link-line-height);padding:var(--link-padding);transition:var(--link-transition)}.orbs_TradeStepLayoutFooterLink:hover{color:var(--link-hover-color);text-decoration:var(--link-hover-text-decoration)}.orbs_TradeStepLayoutSuccessIcon{--success-icon-display: flex;--success-icon-justify: center;--success-icon-align: center;--success-icon-width: 60px;--success-icon-height: 60px;--success-icon-border-radius: 50%;--success-icon-overflow: visible;--success-icon-bg-color: transparent;--success-icon-border: none;--success-icon-box-shadow: none;display:var(--success-icon-display);justify-content:var(--success-icon-justify);align-items:var(--success-icon-align);width:var(--success-icon-width);height:var(--success-icon-height);border-radius:var(--success-icon-border-radius);overflow:var(--success-icon-overflow);background-color:var(--success-icon-bg-color);border:var(--success-icon-border);box-shadow:var(--success-icon-box-shadow)}.orbs_TradeStepLayoutErrorIcon{--error-icon-width: 80px;--error-icon-height: 80px;--error-icon-display: flex;--error-icon-justify: center;--error-icon-align: center;--error-icon-overflow: visible;--error-icon-bg-color: transparent;--error-icon-border: none;--error-icon-box-shadow: none;width:var(--error-icon-width);height:var(--error-icon-height);display:var(--error-icon-display);justify-content:var(--error-icon-justify);align-items:var(--error-icon-align);overflow:var(--error-icon-overflow);background-color:var(--error-icon-bg-color);border:var(--error-icon-border);box-shadow:var(--error-icon-box-shadow)}.orbs_FailedContentMsg{font-size:22px;font-weight:500}.orbs_TradePreview{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}.orbs_TradePreviewToken{display:flex;align-items:center;gap:6px;max-width:calc(50% - 30px)}.orbs_TradePreviewToken p{--token-font-size: 15px;--token-white-space: nowrap;--token-overflow: hidden;--token-text-overflow: ellipsis;--token-flex: 1;--token-margin: 0;--token-padding: 0;font-size:var(--token-font-size);white-space:var(--token-white-space);overflow:var(--token-overflow);text-overflow:var(--token-text-overflow);flex:var(--token-flex);margin:var(--token-margin)}.orbs_TradepPreviewIcon{width:22px;height:22px}.orbs_TradepPreviewLogo{width:24px;height:24px;border-radius:50%;overflow:hidden}.orbs_FlexRow{display:flex;flex-direction:row}.orbs_FlexColumn{display:flex;flex-direction:column}@keyframes orbs_skeletonAnimation{0%{opacity:.2}to{opacity:.4}}.orbs_SkeletonLoader{animation:orbs_skeletonAnimation 1s linear infinite alternate;background-color:#fff}.orbs_Main-wrapper{width:100%}.orbs_Main{width:100%;display:flex;flex-direction:column;gap:28px}.orbs_MainToken{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;gap:8px}.orbs_MainTokenLeft{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.orbs_MainTokenUsd{display:flex;align-items:center;gap:5px}.orbs_MainTokenUsd small{font-size:12px;opacity:.6}.orbs_MainContentLoader{width:100%;display:flex;gap:15px;align-items:center;margin-top:20px}.orbs_MainContentRectengularLoader{flex:1;height:20px;max-width:250px;border-radius:20px}.orbs_MainContentCircleLoader{width:30px;height:30px;border-radius:50%}.orbs_MainTokenLogo{--width: 40px;--height: 40px;width:var(--width);height:var(--height)}.orbs_MainTokenLogo img{width:100%;height:100%;object-fit:cover}.orbs_SwapFlow{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%}.orbs_SwapFlow *{box-sizing:border-box}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const Ne=e=>`orbs_${e}`;function Oo({children:e,className:t=""}){return B.jsx("p",{className:`${t} ${Ne("Text")}`,children:e})}const r1=N.createContext({});function x3({children:e,...t}){return B.jsx(r1.Provider,{value:t,children:e})}const Xr=()=>N.useContext(r1);var pt=(e=>(e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILED=3]="FAILED",e))(pt||{});const w3=({className:e="",size:t=38,borderWidth:r=3,borderColor:n="white",bottomBorderColor:s="rgba(255, 255, 255, 0.2)"})=>{const a={"--size":`${t}px`,"--border-width":`${r}px`,"--border-color":n,"--bottom-border-color":s};return B.jsx("div",{className:`${Ne("Spinner")} ${e}`,style:a})};function Nc({className:e="",body:t,footerLink:r,footerText:n,title:s,children:a}){return B.jsxs("div",{className:`${Ne("TradeStepLayout")} ${e}`,children:[B.jsxs("div",{className:Ne("TradeStepLayoutHeader"),children:[B.jsx(T3,{}),s&&B.jsx(Oo,{className:Ne("TradeStepLayoutTitle"),children:s})]}),t&&B.jsx("div",{className:Ne("TradeStepLayoutBody"),children:t}),B.jsx(v3,{link:r,text:n}),a]})}const v3=({link:e,text:t})=>{const{swapStatus:r}=Xr();return!e&&!t?null:B.jsxs("div",{className:Ne("TradeStepLayoutFooter"),children:[B.jsx(A3,{}),e?B.jsx(E3,{link:e,text:t}):r===pt.FAILED?void 0:B.jsx(Oo,{children:t})]})},E3=({link:e,text:t})=>B.jsx("a",{target:"_blank",className:Ne("TradeStepLayoutFooterLink"),href:e,children:t});function k3(){const{components:e}=Xr();return e.SuccessIcon?e.SuccessIcon:B.jsxs("svg",{fill:"none",viewBox:"0 0 16 16",className:Ne("TradeStepLayoutSuccessIcon"),children:[B.jsx("circle",{cx:"8",cy:"8",r:"7",strokeWidth:"1.5",stroke:"#00C853"}),B.jsx("path",{strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#00C853",d:"M5 8l2 2 4-4"})]})}function C3(){const{components:e}=Xr();return e.FailedIcon?e.FailedIcon:B.jsxs("svg",{className:Ne("TradeStepLayoutErrorIcon"),viewBox:"0 0 16 16",fill:"none",children:[B.jsx("circle",{cx:"8",cy:"8",r:"7",strokeWidth:"1.5",stroke:"#FF3D00"}),B.jsx("path",{strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#FF3D00",d:"M8 4v5M8 11h.01"})]})}const T3=()=>{const{swapStatus:e}=Xr();return e===pt.SUCCESS?B.jsx(k3,{}):e===pt.FAILED?B.jsx(C3,{}):B.jsx(S3,{})},S3=()=>{const{components:e}=Xr();return e.Loader?e.Loader:B.jsx(w3,{size:60,borderWidth:5,className:Ne("TradeStepLayoutSpinner")})},A3=()=>{const{totalSteps:e,currentStepIndex:t=0,swapStatus:r}=Xr();return r!==pt.LOADING||e===1?null:B.jsx("div",{className:Ne("StepIndicator"),children:B.jsx("div",{style:{width:`${100/(e||0)}%`,left:`${t*100/(e||0)}%`},className:Ne("StepIndicatorLine")})})},P3=({error:e,footerLink:t,footerText:r})=>B.jsx(Nc,{footerLink:t,footerText:r,body:e||B.jsx("p",{className:Ne("FailedContentMsg"),children:"Something went wrong"}),className:Ne("FailedContent")});function I3(){return B.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",className:Ne("TradepPreviewIcon"),children:B.jsx("path",{fillRule:"evenodd",d:"M4 8a.5.5 0 01.5-.5h5.793L8.146 5.354a.5.5 0 11.708-.708l3 3a.5.5 0 010 .708l-3 3a.5.5 0 01-.708-.708L10.293 8.5H4.5A.5.5 0 014 8z"})})}const n1=({inTokenOnly:e})=>{const{inToken:t,outToken:r,inAmount:n,outAmount:s,components:a}=Xr();return B.jsxs("div",{className:Ne("TradePreview"),children:[B.jsx(s1,{token:t,amount:n,Logo:a==null?void 0:a.SrcTokenLogo}),!e&&B.jsxs(B.Fragment,{children:[B.jsx(I3,{}),B.jsx(s1,{token:r,amount:s,Logo:a==null?void 0:a.DstTokenLogo})]})]})},s1=({token:e,amount:t,Logo:r})=>B.jsxs("div",{className:Ne("TradePreviewToken"),children:[r||B.jsx("img",{src:e==null?void 0:e.logoUrl,className:Ne("TradepPreviewLogo"),alt:`${e==null?void 0:e.symbol} logo`}),B.jsxs(Oo,{children:[t," ",e==null?void 0:e.symbol]})]});function B3({title:e,footerLink:t,footerText:r,hideTokens:n}){return B.jsx(Nc,{title:e,className:Ne("Success"),body:!n&&B.jsx(n1,{}),footerLink:t,footerText:r})}const a1=({$gap:e=10,$alignItems:t="flex-start",children:r,className:n="",customStyles:s={}})=>{const a={gap:`${e}px`,alignItems:t,width:"100%",...s};return B.jsx("div",{className:`${Ne("FlexColumn")} ${n}`,style:a,children:r})};function o1({styles:e={},className:t=""}){return B.jsx("div",{style:e,className:`${Ne("SkeletonLoader")} ${t}`})}const F3=()=>B.jsxs("div",{className:`${Ne("MainContentLoader")}`,children:[B.jsx(o1,{className:`${Ne("MainContentCircleLoader")}`}),B.jsx(o1,{className:`${Ne("MainContentRectengularLoader")}`})]}),U3=({fromTitle:e,toTitle:t,inUsd:r,outUsd:n})=>{const{swapStatus:s,outAmount:a,inAmount:o,inToken:i,outToken:c,components:l,totalSteps:u}=Xr(),d=B.jsx(c1,{fromTitle:e,inUsd:r,inToken:i,toTitle:t,outUsd:n,outToken:c,inAmount:o,outAmount:a,SrcTokenLogo:l.SrcTokenLogo,DstTokenLogo:l.DstTokenLogo});return s?u?B.jsx(O3,{}):B.jsxs(a1,{children:[d,B.jsx(F3,{})]}):B.jsx(a1,{children:d})},i1=({amount:e,token:t,usd:r,title:n,Logo:s})=>B.jsxs("div",{className:`${Ne("MainToken")}`,children:[B.jsxs("div",{className:`${Ne("MainTokenLeft")}`,children:[B.jsx(Oo,{className:`${Ne("MainTokenTitle")}`,children:n}),B.jsx(Oo,{className:` ${Ne("MainTokenAmount")}`,children:`${e&&Number(e)>0?e:""} ${(t==null?void 0:t.symbol)||""}`}),r&&B.jsx("div",{className:` ${Ne("MainTokenUsd")}`,children:r})]}),s||B.jsx("div",{className:` ${Ne("MainTokenLogo")}`,children:t!=null&&t.logoUrl?B.jsx("img",{src:t==null?void 0:t.logoUrl,alt:"Token logo"}):null})]});function O3(){const{currentStep:e}=Xr();return e?B.jsx(Nc,{footerLink:e.footerLink,footerText:e.footerText,title:e.title,body:e.hideTokens?void 0:B.jsx(n1,{inTokenOnly:e==null?void 0:e.inTokenOnly})}):null}const c1=({fromTitle:e,inUsd:t,inToken:r,toTitle:n,outUsd:s,outToken:a,inAmount:o,outAmount:i,SrcTokenLogo:c,DstTokenLogo:l})=>B.jsxs("div",{className:`${Ne("Main")}`,children:[B.jsx(i1,{title:e||"Swap from",usd:t,token:r,amount:o,Logo:c}),B.jsx(i1,{title:n||"Swap to",usd:s,token:a,amount:i,Logo:l})]}),Qn=e=>B.jsx(x3,{...e,children:B.jsx(_3,{})}),_3=()=>{const{swapStatus:e,components:t,className:r}=Xr();return B.jsx("div",{className:`${Ne("SwapFlow")} ${r}`,children:e===pt.SUCCESS?t==null?void 0:t.Success:e===pt.FAILED?t==null?void 0:t.Failed:t==null?void 0:t.Main})};Qn.Success=B3,Qn.Failed=P3,Qn.Main=U3,Qn.StepLayout=Nc;var Mt=(e=>(e[e.EMPTY_LIMIT_PRICE=0]="EMPTY_LIMIT_PRICE",e[e.MAX_CHUNKS=1]="MAX_CHUNKS",e[e.MIN_CHUNKS=2]="MIN_CHUNKS",e[e.MIN_TRADE_SIZE=3]="MIN_TRADE_SIZE",e[e.MAX_FILL_DELAY=4]="MAX_FILL_DELAY",e[e.MIN_FILL_DELAY=5]="MIN_FILL_DELAY",e[e.MAX_ORDER_DURATION=6]="MAX_ORDER_DURATION",e[e.MIN_ORDER_DURATION=7]="MIN_ORDER_DURATION",e[e.MISSING_LIMIT_PRICE=8]="MISSING_LIMIT_PRICE",e[e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE=9]="STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE",e[e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE=10]="TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE",e[e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE=11]="TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE",e[e.EMPTY_TRIGGER_PRICE=12]="EMPTY_TRIGGER_PRICE",e[e.INSUFFICIENT_BALANCE=13]="INSUFFICIENT_BALANCE",e[e.MAX_ORDER_SIZE=14]="MAX_ORDER_SIZE",e))(Mt||{}),_s=(e=>(e.WRAP="wrap",e.APPROVE="approve",e.CREATE="create",e))(_s||{});const D3=e=>e.replace(/,/g,""),M3=async e=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(e),!0}catch(t){return console.warn("Copy failed",t),!1}},l1=e=>{if(!e)return"";const t=Math.floor(e/1e3),r=Math.floor(t/(1440*60)),n=Math.floor(t%(1440*60)/3600),s=Math.floor(t%3600/60),a=t%60,o=[];return r&&o.push(`${r} days `),n&&o.push(`${n} hours `),s&&o.push(`${s} minutes`),a&&o.push(`${a} seconds`),o.join(" ")},Sd=(e,t)=>e?`${e.substring(0,(t==null?void 0:t.start)||6)}...${e.substring(e.length-((t==null?void 0:t.end)||5))}`:"",N3=e=>{const t="An error occurred.";if(!e||!e.message)return t;try{return e.message.toLowerCase().indexOf("rejected")?"Transaction Rejected":t}catch{return t}};function Ad(e,t=6,r=8){if(!e)return"";const n=e.startsWith("-")?"-":"",s=n?e.slice(1):e,[a,o=""]=s.split(".");if(!o||Number(o)===0)return n+a;if(a!=="0"){const f=o.slice(0,t).replace(/0+$/,""),h=f?"."+f:"";return n+a+h}const i=o.search(/[^0]/);if(i===-1||i+1>r)return"0";const c=o.slice(0,i),u=o.slice(i).slice(0,t).replace(/0+$/,"");return u?n+"0."+c+u:"0"}const Pd=e=>{var t,r,n,s;if(e!=null&&e.message)return((r=(t=e.message)==null?void 0:t.toLowerCase())==null?void 0:r.includes("rejected"))||((s=(n=e.message)==null?void 0:n.toLowerCase())==null?void 0:s.includes("denied"))},L3=e=>{switch(e){case Ft.base.id:return 1e-4;default:return .01}},u1=(e,t)=>{const r=Bs(t);return r&&Is(e.address)?r.wToken:e};function d1(e){return e?e/864e5:0}function Id(e){return e?e/6e4:0}const z3=(e,t)=>e?Ge.TWAP_MARKET:t===1?Ge.LIMIT:Ge.TWAP_LIMIT,Bd=(e,t,r)=>{const n=Bs(r);return Is((e==null?void 0:e.address)||"")&&Ps((t==null?void 0:t.address)||"",(n==null?void 0:n.wToken.address)||"")},Fd=(e,t,r)=>{const n=Bs(r);return Ps((e==null?void 0:e.address)||"",(n==null?void 0:n.wToken.address)||"")&&Is((t==null?void 0:t.address)||"")},_o=(e,t)=>{if(!t)return"";const r=Bs(t);return`${r==null?void 0:r.explorer}/tx/${e}`};function p(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function r(n){return s=>{const a=typeof s=="function"?s(n):s,o={...n,...a};return Object.assign(o,{extend:r(o)})}}return Object.assign(t,{extend:r(t)})}function R3(){return{}}const H3=p({id:16600,name:"0G Newton Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-newton.0g.ai"}},testnet:!0}),$3=p({id:16601,name:"0G Galileo Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-galileo.0g.ai"}},testnet:!0}),G3=p({id:16661,name:"0G Mainnet",nativeCurrency:{name:"0G",symbol:"0G",decimals:18},rpcUrls:{default:{http:["https://evmrpc.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan.0g.ai"}},testnet:!1}),j3=p({id:16602,name:"0G Galileo Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-galileo.0g.ai"}},testnet:!0}),V3=p({id:995,name:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Mainnet Explorer",url:"https://5irescan.io/"}},testnet:!1}),W3=p({id:179,name:"ABEY Mainnet",nativeCurrency:{name:"ABEY",symbol:"ABEY",decimals:18},rpcUrls:{default:{http:["https://rpc.abeychain.com"]}},blockExplorers:{default:{name:"Abey Scan",url:"https://abeyscan.com"}},testnet:!1}),p1="2.43.3";let Do={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${p1}`},$=class Uh extends Error{constructor(t,r={}){var i;const n=(()=>{var c;return r.cause instanceof Uh?r.cause.details:(c=r.cause)!=null&&c.message?r.cause.message:r.details})(),s=r.cause instanceof Uh&&r.cause.docsPath||r.docsPath,a=(i=Do.getDocsUrl)==null?void 0:i.call(Do,{...r,docsPath:s}),o=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...n?[`Details: ${n}`]:[],...Do.version?[`Version: ${Do.version}`]:[]].join(`
65
+ `);super(o,r.cause?{cause:r.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=n,this.docsPath=s,this.metaMessages=r.metaMessages,this.name=r.name??this.name,this.shortMessage=t,this.version=p1}walk(t){return f1(this,t)}};function f1(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?f1(e.cause,t):t?null:e}let h1=class extends ${constructor({max:t,min:r,signed:n,size:s,value:a}){super(`Number "${a}" is not in safe ${s?`${s*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${t?`(${r} to ${t})`:`(above ${r})`}`,{name:"IntegerOutOfRangeError"})}},q3=class extends ${constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}};class Y3 extends ${constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}let K3=class extends ${constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}};function Or(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function ut(e){return Or(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function Zt(e,{dir:t="left"}={}){let r=typeof e=="string"?e.replace("0x",""):e,n=0;for(let s=0;s<r.length-1&&r[t==="left"?s:r.length-s-1].toString()==="0";s++)n++;return r=t==="left"?r.slice(n):r.slice(0,r.length-n),typeof e=="string"?(r.length===1&&t==="right"&&(r=`${r}0`),`0x${r.length%2===1?`0${r}`:r}`):r}let m1=class extends ${constructor({offset:t,position:r,size:n}){super(`Slice ${r==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}},b1=class extends ${constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${r}).`,{name:"SizeExceedsPaddingSizeError"})}};class y1 extends ${constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${r} ${n} long, but is ${t} ${n} long.`,{name:"InvalidBytesLengthError"})}}function Ds(e,{dir:t,size:r=32}={}){return typeof e=="string"?Jn(e,{dir:t,size:r}):Z3(e,{dir:t,size:r})}function Jn(e,{dir:t,size:r=32}={}){if(r===null)return e;const n=e.replace("0x","");if(n.length>r*2)throw new b1({size:Math.ceil(n.length/2),targetSize:r,type:"hex"});return`0x${n[t==="right"?"padEnd":"padStart"](r*2,"0")}`}function Z3(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new b1({size:e.length,targetSize:r,type:"bytes"});const n=new Uint8Array(r);for(let s=0;s<r;s++){const a=t==="right";n[a?s:r-s-1]=e[a?s:e.length-s-1]}return n}const X3=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Fe(e,t={}){return typeof e=="number"||typeof e=="bigint"?q(e,t):typeof e=="string"?Ta(e,t):typeof e=="boolean"?g1(e,t):vt(e,t)}function g1(e,t={}){const r=`0x${Number(e)}`;return typeof t.size=="number"?(_r(r,{size:t.size}),Ds(r,{size:t.size})):r}function vt(e,t={}){let r="";for(let s=0;s<e.length;s++)r+=X3[e[s]];const n=`0x${r}`;return typeof t.size=="number"?(_r(n,{size:t.size}),Ds(n,{dir:"right",size:t.size})):n}function q(e,t={}){const{signed:r,size:n}=t,s=BigInt(e);let a;n?r?a=(1n<<BigInt(n)*8n-1n)-1n:a=2n**(BigInt(n)*8n)-1n:typeof e=="number"&&(a=BigInt(Number.MAX_SAFE_INTEGER));const o=typeof a=="bigint"&&r?-a-1n:0;if(a&&s>a||s<o){const c=typeof e=="bigint"?"n":"";throw new h1({max:a?`${a}${c}`:void 0,min:`${o}${c}`,signed:r,size:n,value:`${e}${c}`})}const i=`0x${(r&&s<0?(1n<<BigInt(n*8))+BigInt(s):s).toString(16)}`;return n?Ds(i,{size:n}):i}const Q3=new TextEncoder;function Ta(e,t={}){const r=Q3.encode(e);return vt(r,t)}const J3=new TextEncoder;function wn(e,t={}){return typeof e=="number"||typeof e=="bigint"?t8(e,t):typeof e=="boolean"?e8(e,t):Or(e)?or(e,t):Ms(e,t)}function e8(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),typeof t.size=="number"?(_r(r,{size:t.size}),Ds(r,{size:t.size})):r}const vn={zero:48,nine:57,A:65,F:70,a:97,f:102};function x1(e){if(e>=vn.zero&&e<=vn.nine)return e-vn.zero;if(e>=vn.A&&e<=vn.F)return e-(vn.A-10);if(e>=vn.a&&e<=vn.f)return e-(vn.a-10)}function or(e,t={}){let r=e;t.size&&(_r(r,{size:t.size}),r=Ds(r,{dir:"right",size:t.size}));let n=r.slice(2);n.length%2&&(n=`0${n}`);const s=n.length/2,a=new Uint8Array(s);for(let o=0,i=0;o<s;o++){const c=x1(n.charCodeAt(i++)),l=x1(n.charCodeAt(i++));if(c===void 0||l===void 0)throw new $(`Invalid byte sequence ("${n[i-2]}${n[i-1]}" in "${n}").`);a[o]=c*16+l}return a}function t8(e,t){const r=q(e,t);return or(r)}function Ms(e,t={}){const r=J3.encode(e);return typeof t.size=="number"?(_r(r,{size:t.size}),Ds(r,{dir:"right",size:t.size})):r}function _r(e,{size:t}){if(ut(e)>t)throw new K3({givenSize:ut(e),maxSize:t})}function Le(e,t={}){const{signed:r}=t;t.size&&_r(e,{size:t.size});const n=BigInt(e);if(!r)return n;const s=(e.length-2)/2,a=(1n<<BigInt(s)*8n-1n)-1n;return n<=a?n:n-BigInt(`0x${"f".padStart(s*2,"f")}`)-1n}function r8(e,t={}){let r=e;if(t.size&&(_r(r,{size:t.size}),r=Zt(r)),Zt(r)==="0x00")return!1;if(Zt(r)==="0x01")return!0;throw new Y3(r)}function ir(e,t={}){return Number(Le(e,t))}function Lc(e,t){return({exclude:r,format:n})=>({exclude:r,format:(s,a)=>{const o=t(s,a);if(r)for(const i of r)delete o[i];return{...o,...n(s,a)}},type:e})}const w1={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Ns(e,t){const r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?ir(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?ir(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?w1[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&&(r.authorizationList=n8(e.authorizationList)),r.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof r.v=="bigint"){if(r.v===0n||r.v===27n)return 0;if(r.v===1n||r.v===28n)return 1;if(r.v>=35n)return r.v%2n===0n?1:0}})(),r.type==="legacy"&&(delete r.accessList,delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.yParity),r.type==="eip2930"&&(delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r.type==="eip1559"&&delete r.maxFeePerBlobGas,r}const zc=Lc("transaction",Ns);function n8(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function Ud(e,t){const r=(e.transactions??[]).map(n=>typeof n=="string"?n:Ns(n));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:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const Od=Lc("block",Ud);function Qr(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}const v1={"0x0":"reverted","0x1":"success"};function Rc(e,t){const r={...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(n=>Qr(n)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?ir(e.transactionIndex):null,status:e.status?v1[e.status]:null,type:e.type?w1[e.type]||e.type:null};return e.blobGasPrice&&(r.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(r.blobGasUsed=BigInt(e.blobGasUsed)),r}const _d=Lc("transactionReceipt",Rc),s8={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Dr(e,t){const r={};return typeof e.authorizationList<"u"&&(r.authorizationList=a8(e.authorizationList)),typeof e.accessList<"u"&&(r.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(r.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?r.blobs=e.blobs.map(n=>vt(n)):r.blobs=e.blobs),typeof e.data<"u"&&(r.data=e.data),e.account&&(r.from=e.account.address),typeof e.from<"u"&&(r.from=e.from),typeof e.gas<"u"&&(r.gas=q(e.gas)),typeof e.gasPrice<"u"&&(r.gasPrice=q(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(r.maxFeePerBlobGas=q(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(r.maxFeePerGas=q(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(r.maxPriorityFeePerGas=q(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(r.nonce=q(e.nonce)),typeof e.to<"u"&&(r.to=e.to),typeof e.type<"u"&&(r.type=s8[e.type]),typeof e.value<"u"&&(r.value=q(e.value)),r}const Dd=Lc("transactionRequest",Dr);function a8(e){return e.map(t=>({address:t.address,r:t.r?q(BigInt(t.r)):t.r,s:t.s?q(BigInt(t.s)):t.s,chainId:q(t.chainId),nonce:q(t.nonce),...typeof t.yParity<"u"?{yParity:q(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:q(t.v)}:{}}))}const o8=2n**16n-1n,Ls=2n**256n-1n,Md=50000n,E1=o8*32n,k1={block:Od({format(e){var r;const t=(r=e.transactions)==null?void 0:r.map(n=>{var a;if(typeof n=="string")return n;const s=(a=k1.transaction)==null?void 0:a.format(n);return s.typeHex==="0x71"?s.type="eip712":s.typeHex==="0xff"&&(s.type="priority"),s});return{l1BatchNumber:e.l1BatchNumber?Le(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?Le(e.l1BatchTimestamp):null,transactions:t}}}),transaction:zc({format(e){const t={};return e.type==="0x71"?t.type="eip712":e.type==="0xff"&&(t.type="priority"),{...t,l1BatchNumber:e.l1BatchNumber?Le(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?Le(e.l1BatchTxIndex):null}}}),transactionReceipt:_d({format(e){return{l1BatchNumber:e.l1BatchNumber?Le(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?Le(e.l1BatchTxIndex):null,logs:e.logs.map(t=>({...Qr(t),l1BatchNumber:t.l1BatchNumber?Le(t.l1BatchNumber):null,transactionLogIndex:ir(t.transactionLogIndex),logType:t.logType})),l2ToL1Logs:e.l2ToL1Logs.map(t=>({blockNumber:Le(t.blockHash),blockHash:t.blockHash,l1BatchNumber:t.l1BatchNumber?Le(t.l1BatchNumber):null,transactionIndex:Le(t.transactionIndex),shardId:Le(t.shardId),isService:t.isService,sender:t.sender,key:t.key,value:t.value,transactionHash:t.transactionHash,logIndex:Le(t.logIndex)}))}}}),transactionRequest:Dd({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format(e){return e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:Fe(e.gasPerPubdata)}:{gasPerPubdata:Fe(Md)},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from(or(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps.map(t=>Array.from(or(t)))}:{},...e.customSignature?{customSignature:Array.from(or(e.customSignature))}:{}},type:"0x71"}:{}}})};function cr(e){return typeof e[0]=="string"?lr(e):i8(e)}function i8(e){let t=0;for(const s of e)t+=s.length;const r=new Uint8Array(t);let n=0;for(const s of e)r.set(s,n),n+=s.length;return r}function lr(e){return`0x${e.reduce((t,r)=>t+r.replace("0x",""),"")}`}let C1=class extends ${constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},T1=class extends ${constructor({length:t,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},c8=class extends ${constructor({count:t,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const l8={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 c8({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new T1({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new C1({offset:e});const 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 C1({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const 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,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Nd(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(l8);return r.bytes=e,r.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}function Jr(e,t="hex"){const r=S1(e),n=Nd(new Uint8Array(r.length));return r.encode(n),t==="hex"?vt(n.bytes):n.bytes}function S1(e){return Array.isArray(e)?u8(e.map(t=>S1(t))):d8(e)}function u8(e){const t=e.reduce((s,a)=>s+a.length,0),r=A1(t);return{length:t<=55?1+t:1+r+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+r),r===1?s.pushUint8(t):r===2?s.pushUint16(t):r===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:a}of e)a(s)}}}function d8(e){const t=typeof e=="string"?or(e):e,r=A1(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+r),r===1?s.pushUint8(t.length):r===2?s.pushUint16(t.length):r===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function A1(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new $("Length is too large.")}const p8={gwei:9,wei:18},f8={ether:-9,wei:9};function P1(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[s,a]=[r.slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${s||"0"}${a?`.${a}`:""}`}function Ld(e,t="wei"){return P1(e,p8[t])}function Xt(e,t="wei"){return P1(e,f8[t])}function Mo(e){const t=Object.entries(e).map(([n,s])=>s===void 0||s===!1?null:[n,s]).filter(Boolean),r=t.reduce((n,[s])=>Math.max(n,s.length),0);return t.map(([n,s])=>` ${`${n}:`.padEnd(r+1)} ${s}`).join(`
66
+ `)}class h8 extends ${constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class m8 extends ${constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Mo(t),"}","","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"})}}let b8=class extends ${constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}};class y8 extends ${constructor(t,{account:r,docsPath:n,chain:s,data:a,gas:o,gasPrice:i,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var y;const h=Mo({chain:s&&`${s==null?void 0:s.name} (id: ${s==null?void 0:s.id})`,from:r==null?void 0:r.address,to:d,value:typeof f<"u"&&`${Ld(f)} ${((y=s==null?void 0:s.nativeCurrency)==null?void 0:y.symbol)||"ETH"}`,data:a,gas:o,gasPrice:typeof i<"u"&&`${Xt(i)} gwei`,maxFeePerGas:typeof c<"u"&&`${Xt(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Xt(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",h].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class I1 extends ${constructor({blockHash:t,blockNumber:r,blockTag:n,hash:s,index:a}){let o="Transaction";n&&a!==void 0&&(o=`Transaction at block time "${n}" at index "${a}"`),t&&a!==void 0&&(o=`Transaction at block hash "${t}" at index "${a}"`),r&&a!==void 0&&(o=`Transaction at block number "${r}" at index "${a}"`),s&&(o=`Transaction with hash "${s}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class B1 extends ${constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class F1 extends ${constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class g8 extends ${constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}function x8(e){if(!e||e.length===0)return[];const t=[];for(const r of e){const{chainId:n,nonce:s,...a}=r,o=r.address;t.push([n?Fe(n):"0x",o,s?Fe(s):"0x",..._a({},a)])}return t}function zd(e){const{kzg:t}=e,r=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),n=typeof e.blobs[0]=="string"?e.blobs.map(a=>or(a)):e.blobs,s=[];for(const a of n)s.push(Uint8Array.from(t.blobToKzgCommitment(a)));return r==="bytes"?s:s.map(a=>vt(a))}function Rd(e){const{kzg:t}=e,r=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),n=typeof e.blobs[0]=="string"?e.blobs.map(o=>or(o)):e.blobs,s=typeof e.commitments[0]=="string"?e.commitments.map(o=>or(o)):e.commitments,a=[];for(let o=0;o<n.length;o++){const i=n[o],c=s[o];a.push(Uint8Array.from(t.computeBlobKzgProof(i,c)))}return r==="bytes"?a:a.map(o=>vt(o))}const Sa=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function w8(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function No(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function zs(e,...t){if(!w8(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function v8(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");No(e.outputLen),No(e.blockLen)}function Aa(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function U1(e,t){zs(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function E8(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function es(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Hd(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function en(e,t){return e<<32-t|e>>>t}const k8=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function C8(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function T8(e){for(let t=0;t<e.length;t++)e[t]=C8(e[t]);return e}const O1=k8?e=>e:T8;function S8(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Hc(e){return typeof e=="string"&&(e=S8(e)),zs(e),e}function A8(...e){let t=0;for(let n=0;n<e.length;n++){const s=e[n];zs(s),t+=s.length}const r=new Uint8Array(t);for(let n=0,s=0;n<e.length;n++){const a=e[n];r.set(a,s),s+=a.length}return r}class $d{}function $c(e){const t=n=>e().update(Hc(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function P8(e=32){if(Sa&&typeof Sa.getRandomValues=="function")return Sa.getRandomValues(new Uint8Array(e));if(Sa&&typeof Sa.randomBytes=="function")return Uint8Array.from(Sa.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function I8(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const s=BigInt(32),a=BigInt(4294967295),o=Number(r>>s&a),i=Number(r&a),c=n?4:0,l=n?0:4;e.setUint32(t+c,o,n),e.setUint32(t+l,i,n)}function B8(e,t,r){return e&t^~e&r}function F8(e,t,r){return e&t^e&r^t&r}class _1 extends $d{constructor(t,r,n,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=s,this.buffer=new Uint8Array(t),this.view=Hd(this.buffer)}update(t){Aa(this),t=Hc(t),zs(t);const{view:r,buffer:n,blockLen:s}=this,a=t.length;for(let o=0;o<a;){const i=Math.min(s-this.pos,a-o);if(i===s){const c=Hd(t);for(;s<=a-o;o+=s)this.process(c,o);continue}n.set(t.subarray(o,o+i),this.pos),this.pos+=i,o+=i,this.pos===s&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Aa(this),U1(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:s,isLE:a}=this;let{pos:o}=this;r[o++]=128,es(this.buffer.subarray(o)),this.padOffset>s-o&&(this.process(n,0),o=0);for(let d=o;d<s;d++)r[d]=0;I8(n,s-8,BigInt(this.length*8),a),this.process(n,0);const i=Hd(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<l;d++)i.setUint32(4*d,u[d],a)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:s,finished:a,destroyed:o,pos:i}=this;return t.destroyed=o,t.finished=a,t.length=s,t.pos=i,s%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const ts=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Nt=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Lt=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Gc=BigInt(2**32-1),D1=BigInt(32);function U8(e,t=!1){return t?{h:Number(e&Gc),l:Number(e>>D1&Gc)}:{h:Number(e>>D1&Gc)|0,l:Number(e&Gc)|0}}function M1(e,t=!1){const r=e.length;let n=new Uint32Array(r),s=new Uint32Array(r);for(let a=0;a<r;a++){const{h:o,l:i}=U8(e[a],t);[n[a],s[a]]=[o,i]}return[n,s]}const N1=(e,t,r)=>e>>>r,L1=(e,t,r)=>e<<32-r|t>>>r,Pa=(e,t,r)=>e>>>r|t<<32-r,Ia=(e,t,r)=>e<<32-r|t>>>r,jc=(e,t,r)=>e<<64-r|t>>>r-32,Vc=(e,t,r)=>e>>>r-32|t<<64-r,O8=(e,t,r)=>e<<r|t>>>32-r,_8=(e,t,r)=>t<<r|e>>>32-r,D8=(e,t,r)=>t<<r-32|e>>>64-r,M8=(e,t,r)=>e<<r-32|t>>>64-r;function En(e,t,r,n){const s=(t>>>0)+(n>>>0);return{h:e+r+(s/2**32|0)|0,l:s|0}}const N8=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),L8=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,z8=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),R8=(e,t,r,n,s)=>t+r+n+s+(e/2**32|0)|0,H8=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0),$8=(e,t,r,n,s,a)=>t+r+n+s+a+(e/2**32|0)|0,G8=Uint32Array.from([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]),rs=new Uint32Array(64);class j8 extends _1{constructor(t=32){super(64,t,8,!1),this.A=ts[0]|0,this.B=ts[1]|0,this.C=ts[2]|0,this.D=ts[3]|0,this.E=ts[4]|0,this.F=ts[5]|0,this.G=ts[6]|0,this.H=ts[7]|0}get(){const{A:t,B:r,C:n,D:s,E:a,F:o,G:i,H:c}=this;return[t,r,n,s,a,o,i,c]}set(t,r,n,s,a,o,i,c){this.A=t|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=a|0,this.F=o|0,this.G=i|0,this.H=c|0}process(t,r){for(let d=0;d<16;d++,r+=4)rs[d]=t.getUint32(r,!1);for(let d=16;d<64;d++){const f=rs[d-15],h=rs[d-2],y=en(f,7)^en(f,18)^f>>>3,g=en(h,17)^en(h,19)^h>>>10;rs[d]=g+rs[d-7]+y+rs[d-16]|0}let{A:n,B:s,C:a,D:o,E:i,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const f=en(i,6)^en(i,11)^en(i,25),h=u+f+B8(i,c,l)+G8[d]+rs[d]|0,g=(en(n,2)^en(n,13)^en(n,22))+F8(n,s,a)|0;u=l,l=c,c=i,i=o+h|0,o=a,a=s,s=n,n=h+g|0}n=n+this.A|0,s=s+this.B|0,a=a+this.C|0,o=o+this.D|0,i=i+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(n,s,a,o,i,c,l,u)}roundClean(){es(rs)}destroy(){this.set(0,0,0,0,0,0,0,0),es(this.buffer)}}const z1=M1(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),V8=z1[0],W8=z1[1],ns=new Uint32Array(80),ss=new Uint32Array(80);class R1 extends _1{constructor(t=64){super(128,t,16,!1),this.Ah=Lt[0]|0,this.Al=Lt[1]|0,this.Bh=Lt[2]|0,this.Bl=Lt[3]|0,this.Ch=Lt[4]|0,this.Cl=Lt[5]|0,this.Dh=Lt[6]|0,this.Dl=Lt[7]|0,this.Eh=Lt[8]|0,this.El=Lt[9]|0,this.Fh=Lt[10]|0,this.Fl=Lt[11]|0,this.Gh=Lt[12]|0,this.Gl=Lt[13]|0,this.Hh=Lt[14]|0,this.Hl=Lt[15]|0}get(){const{Ah:t,Al:r,Bh:n,Bl:s,Ch:a,Cl:o,Dh:i,Dl:c,Eh:l,El:u,Fh:d,Fl:f,Gh:h,Gl:y,Hh:g,Hl:E}=this;return[t,r,n,s,a,o,i,c,l,u,d,f,h,y,g,E]}set(t,r,n,s,a,o,i,c,l,u,d,f,h,y,g,E){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=a|0,this.Cl=o|0,this.Dh=i|0,this.Dl=c|0,this.Eh=l|0,this.El=u|0,this.Fh=d|0,this.Fl=f|0,this.Gh=h|0,this.Gl=y|0,this.Hh=g|0,this.Hl=E|0}process(t,r){for(let T=0;T<16;T++,r+=4)ns[T]=t.getUint32(r),ss[T]=t.getUint32(r+=4);for(let T=16;T<80;T++){const C=ns[T-15]|0,_=ss[T-15]|0,z=Pa(C,_,1)^Pa(C,_,8)^N1(C,_,7),S=Ia(C,_,1)^Ia(C,_,8)^L1(C,_,7),m=ns[T-2]|0,b=ss[T-2]|0,x=Pa(m,b,19)^jc(m,b,61)^N1(m,b,6),A=Ia(m,b,19)^Vc(m,b,61)^L1(m,b,6),I=z8(S,A,ss[T-7],ss[T-16]),F=R8(I,z,x,ns[T-7],ns[T-16]);ns[T]=F|0,ss[T]=I|0}let{Ah:n,Al:s,Bh:a,Bl:o,Ch:i,Cl:c,Dh:l,Dl:u,Eh:d,El:f,Fh:h,Fl:y,Gh:g,Gl:E,Hh:v,Hl:w}=this;for(let T=0;T<80;T++){const C=Pa(d,f,14)^Pa(d,f,18)^jc(d,f,41),_=Ia(d,f,14)^Ia(d,f,18)^Vc(d,f,41),z=d&h^~d&g,S=f&y^~f&E,m=H8(w,_,S,W8[T],ss[T]),b=$8(m,v,C,z,V8[T],ns[T]),x=m|0,A=Pa(n,s,28)^jc(n,s,34)^jc(n,s,39),I=Ia(n,s,28)^Vc(n,s,34)^Vc(n,s,39),F=n&a^n&i^a&i,D=s&o^s&c^o&c;v=g|0,w=E|0,g=h|0,E=y|0,h=d|0,y=f|0,{h:d,l:f}=En(l|0,u|0,b|0,x|0),l=i|0,u=c|0,i=a|0,c=o|0,a=n|0,o=s|0;const k=N8(x,I,D);n=L8(k,b,A,F),s=k|0}({h:n,l:s}=En(this.Ah|0,this.Al|0,n|0,s|0)),{h:a,l:o}=En(this.Bh|0,this.Bl|0,a|0,o|0),{h:i,l:c}=En(this.Ch|0,this.Cl|0,i|0,c|0),{h:l,l:u}=En(this.Dh|0,this.Dl|0,l|0,u|0),{h:d,l:f}=En(this.Eh|0,this.El|0,d|0,f|0),{h,l:y}=En(this.Fh|0,this.Fl|0,h|0,y|0),{h:g,l:E}=En(this.Gh|0,this.Gl|0,g|0,E|0),{h:v,l:w}=En(this.Hh|0,this.Hl|0,v|0,w|0),this.set(n,s,a,o,i,c,l,u,d,f,h,y,g,E,v,w)}roundClean(){es(ns,ss)}destroy(){es(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class q8 extends R1{constructor(){super(48),this.Ah=Nt[0]|0,this.Al=Nt[1]|0,this.Bh=Nt[2]|0,this.Bl=Nt[3]|0,this.Ch=Nt[4]|0,this.Cl=Nt[5]|0,this.Dh=Nt[6]|0,this.Dl=Nt[7]|0,this.Eh=Nt[8]|0,this.El=Nt[9]|0,this.Fh=Nt[10]|0,this.Fl=Nt[11]|0,this.Gh=Nt[12]|0,this.Gl=Nt[13]|0,this.Hh=Nt[14]|0,this.Hl=Nt[15]|0}}const Gd=$c(()=>new j8),Y8=$c(()=>new R1),K8=$c(()=>new q8),H1=Gd;function $1(e,t){const r=t||"hex",n=H1(Or(e,{strict:!1})?wn(e):e);return r==="bytes"?n:Fe(n)}function Z8(e){const{commitment:t,version:r=1}=e,n=e.to??(typeof t=="string"?"hex":"bytes"),s=$1(t,"bytes");return s.set([r],0),n==="bytes"?s:vt(s)}function G1(e){const{commitments:t,version:r}=e,n=e.to??(typeof t[0]=="string"?"hex":"bytes"),s=[];for(const a of t)s.push(Z8({commitment:a,to:n,version:r}));return s}const j1=6,V1=32,jd=4096,W1=V1*jd,q1=W1*j1-1-1*jd*j1,Y1=1;class X8 extends ${constructor({maxSize:t,size:r}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${r} bytes`],name:"BlobSizeTooLargeError"})}}class K1 extends ${constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class Q8 extends ${constructor({hash:t,size:r}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${r}`],name:"InvalidVersionedHashSizeError"})}}class J8 extends ${constructor({hash:t,version:r}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${Y1}`,`Received: ${r}`],name:"InvalidVersionedHashVersionError"})}}function ev(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),r=typeof e.data=="string"?or(e.data):e.data,n=ut(r);if(!n)throw new K1;if(n>q1)throw new X8({maxSize:q1,size:n});const s=[];let a=!0,o=0;for(;a;){const i=Nd(new Uint8Array(W1));let c=0;for(;c<jd;){const l=r.slice(o,o+(V1-1));if(i.pushByte(0),i.pushBytes(l),l.length<31){i.pushByte(128),a=!1;break}c++,o+=31}s.push(i)}return t==="bytes"?s.map(i=>i.bytes):s.map(i=>vt(i.bytes))}function Z1(e){const{data:t,kzg:r,to:n}=e,s=e.blobs??ev({data:t,to:n}),a=e.commitments??zd({blobs:s,kzg:r,to:n}),o=e.proofs??Rd({blobs:s,commitments:a,kzg:r,to:n}),i=[];for(let c=0;c<s.length;c++)i.push({blob:s[c],commitment:a[c],proof:o[c]});return i}let Ct=class extends ${constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}};class Vd extends ${constructor({blockNumber:t,chain:r,contract:n}){super(`Chain "${r.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...t&&n.blockCreated&&n.blockCreated>t?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class tv extends ${constructor({chain:t,currentChainId:r}){super(`The current chain of the wallet (id: ${r}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${r}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class rv extends ${constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
67
67
  `),{name:"ChainNotFoundError"})}}class X1 extends ${constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}let Ba=class extends ${constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}};class Fa extends ${constructor({cause:t,message:r}={}){var s;const n=(s=r==null?void 0:r.replace("execution reverted: ",""))==null?void 0:s.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(Fa,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(Fa,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});let as=class extends ${constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${Xt(r)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}};Object.defineProperty(as,"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 Wd extends ${constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${Xt(r)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(Wd,"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 qd extends ${constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(qd,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Yd extends ${constructor({cause:t,nonce:r}={}){super([`Nonce provided for the transaction ${r?`(${r}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
68
68
  `),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(Yd,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Kd extends ${constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(Kd,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Zd extends ${constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
69
69
  `),{cause:t,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(Zd,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class Xd extends ${constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(Xd,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Qd extends ${constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Qd,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Jd extends ${constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Jd,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});let Ua=class extends ${constructor({cause:t,maxPriorityFeePerGas:r,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${Xt(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${Xt(n)} gwei`:""}).`].join(`
70
- `),{cause:t,name:"TipAboveFeeCapError"})}};Object.defineProperty(Ua,"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 Lo extends ${constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}let Oa=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){const n=this.keys().next().value;n&&this.delete(n)}return this}};const nv=BigInt(0),zo=BigInt(1),sv=BigInt(2),av=BigInt(7),ov=BigInt(256),iv=BigInt(113),Q1=[],J1=[],eb=[];for(let e=0,t=zo,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],Q1.push(2*(5*n+r)),J1.push((e+1)*(e+2)/2%64);let s=nv;for(let a=0;a<7;a++)t=(t<<zo^(t>>av)*iv)%ov,t&sv&&(s^=zo<<(zo<<BigInt(a))-zo);eb.push(s)}const tb=M1(eb,!0),cv=tb[0],lv=tb[1],rb=(e,t,r)=>r>32?D8(e,t,r):O8(e,t,r),nb=(e,t,r)=>r>32?M8(e,t,r):_8(e,t,r);function uv(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let o=0;o<10;o++)r[o]=e[o]^e[o+10]^e[o+20]^e[o+30]^e[o+40];for(let o=0;o<10;o+=2){const i=(o+8)%10,c=(o+2)%10,l=r[c],u=r[c+1],d=rb(l,u,1)^r[i],f=nb(l,u,1)^r[i+1];for(let h=0;h<50;h+=10)e[o+h]^=d,e[o+h+1]^=f}let s=e[2],a=e[3];for(let o=0;o<24;o++){const i=J1[o],c=rb(s,a,i),l=nb(s,a,i),u=Q1[o];s=e[u],a=e[u+1],e[u]=c,e[u+1]=l}for(let o=0;o<50;o+=10){for(let i=0;i<10;i++)r[i]=e[o+i];for(let i=0;i<10;i++)e[o+i]^=~r[(i+2)%10]&r[(i+4)%10]}e[0]^=cv[n],e[1]^=lv[n]}es(r)}class ep extends $d{constructor(t,r,n,s=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=a,No(n),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=E8(this.state)}clone(){return this._cloneInto()}keccak(){O1(this.state32),uv(this.state32,this.rounds),O1(this.state32),this.posOut=0,this.pos=0}update(t){Aa(this),t=Hc(t),zs(t);const{blockLen:r,state:n}=this,s=t.length;for(let a=0;a<s;){const o=Math.min(r-this.pos,s-a);for(let i=0;i<o;i++)n[this.pos++]^=t[a++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:r,pos:n,blockLen:s}=this;t[n]^=r,(r&128)!==0&&n===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){Aa(this,!1),zs(t),this.finish();const r=this.state,{blockLen:n}=this;for(let s=0,a=t.length;s<a;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,a-s);t.set(r.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return No(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(U1(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,es(this.state)}_cloneInto(t){const{blockLen:r,suffix:n,outputLen:s,rounds:a,enableXOF:o}=this;return t||(t=new ep(r,n,s,o,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=n,t.outputLen=s,t.enableXOF=o,t.destroyed=this.destroyed,t}}const dv=(e,t,r)=>$c(()=>new ep(t,e,r)),sb=dv(1,136,256/8);function Ut(e,t){const r=t||"hex",n=sb(Or(e,{strict:!1})?wn(e):e);return r==="bytes"?n:Fe(n)}const tp=new Oa(8192);function Ro(e,t){if(tp.has(`${e}.${t}`))return tp.get(`${e}.${t}`);const r=e.substring(2).toLowerCase(),n=Ut(Ms(r),"bytes"),s=r.split("");for(let o=0;o<40;o+=2)n[o>>1]>>4>=8&&s[o]&&(s[o]=s[o].toUpperCase()),(n[o>>1]&15)>=8&&s[o+1]&&(s[o+1]=s[o+1].toUpperCase());const a=`0x${s.join("")}`;return tp.set(`${e}.${t}`,a),a}function rp(e,t){if(!nt(e,{strict:!1}))throw new Ct({address:e});return Ro(e,t)}const pv=/^0x[a-fA-F0-9]{40}$/,np=new Oa(8192);function nt(e,t){const{strict:r=!0}=t??{},n=`${e}.${r}`;if(np.has(n))return np.get(n);const s=pv.test(e)?e.toLowerCase()===e?!0:r?Ro(e)===e:!0:!1;return np.set(n,s),s}function Rs(e,t,r,{strict:n}={}){return Or(e,{strict:!1})?sp(e,t,r,{strict:n}):ib(e,t,r,{strict:n})}function ab(e,t){if(typeof t=="number"&&t>0&&t>ut(e)-1)throw new m1({offset:t,position:"start",size:ut(e)})}function ob(e,t,r){if(typeof t=="number"&&typeof r=="number"&&ut(e)!==r-t)throw new m1({offset:r,position:"end",size:ut(e)})}function ib(e,t,r,{strict:n}={}){ab(e,t);const s=e.slice(t,r);return n&&ob(s,t,r),s}function sp(e,t,r,{strict:n}={}){ab(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&ob(s,t,r),s}function fv(e){const{authorizationList:t}=e;if(t)for(const r of t){const{chainId:n}=r,s=r.address;if(!nt(s))throw new Ct({address:s});if(n<0)throw new Ba({chainId:n})}ap(e)}function hv(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new K1;for(const r of t){const n=ut(r),s=ir(Rs(r,0,1));if(n!==32)throw new Q8({hash:r,size:n});if(s!==Y1)throw new J8({hash:r,version:s})}}ap(e)}function ap(e){const{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:n,to:s}=e;if(t<=0)throw new Ba({chainId:t});if(s&&!nt(s))throw new Ct({address:s});if(n&&n>Ls)throw new as({maxFeePerGas:n});if(r&&n&&r>n)throw new Ua({maxFeePerGas:n,maxPriorityFeePerGas:r})}function mv(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:a}=e;if(t<=0)throw new Ba({chainId:t});if(a&&!nt(a))throw new Ct({address:a});if(r||s)throw new $("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>Ls)throw new as({maxFeePerGas:n})}function bv(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:a}=e;if(a&&!nt(a))throw new Ct({address:a});if(typeof t<"u"&&t<=0)throw new Ba({chainId:t});if(r||s)throw new $("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>Ls)throw new as({maxFeePerGas:n})}function op(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new m8({transaction:e})}function Ho(e){if(!e||e.length===0)return[];const t=[];for(let r=0;r<e.length;r++){const{address:n,storageKeys:s}=e[r];for(let a=0;a<s.length;a++)if(s[a].length-2!==64)throw new b8({storageKey:s[a]});if(!nt(n,{strict:!1}))throw new Ct({address:n});t.push([n,s])}return t}function Wc(e,t){const r=op(e);return r==="eip1559"?xv(e,t):r==="eip2930"?wv(e,t):r==="eip4844"?gv(e,t):r==="eip7702"?yv(e,t):vv(e,t)}function yv(e,t){const{authorizationList:r,chainId:n,gas:s,nonce:a,to:o,value:i,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;fv(e);const f=Ho(u),h=x8(r);return lr(["0x04",Qr([q(n),a?q(a):"0x",l?q(l):"0x",c?q(c):"0x",s?q(s):"0x",o??"0x",i?q(i):"0x",d??"0x",f,h,..._a(e,t)])])}function gv(e,t){const{chainId:r,gas:n,nonce:s,to:a,value:o,maxFeePerBlobGas:i,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;hv(e);let f=e.blobVersionedHashes,h=e.sidecars;if(e.blobs&&(typeof f>"u"||typeof h>"u")){const T=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(z=>vt(z)),C=e.kzg,_=zd({blobs:T,kzg:C});if(typeof f>"u"&&(f=G1({commitments:_})),typeof h>"u"){const z=Rd({blobs:T,commitments:_,kzg:C});h=Z1({blobs:T,commitments:_,proofs:z})}}const y=Ho(u),g=[q(r),s?q(s):"0x",l?q(l):"0x",c?q(c):"0x",n?q(n):"0x",a??"0x",o?q(o):"0x",d??"0x",y,i?q(i):"0x",f??[],..._a(e,t)],E=[],v=[],w=[];if(h)for(let T=0;T<h.length;T++){const{blob:C,commitment:_,proof:z}=h[T];E.push(C),v.push(_),w.push(z)}return lr(["0x03",Qr(h?[g,E,v,w]:g)])}function xv(e,t){const{chainId:r,gas:n,nonce:s,to:a,value:o,maxFeePerGas:i,maxPriorityFeePerGas:c,accessList:l,data:u}=e;ap(e);const d=Ho(l),f=[q(r),s?q(s):"0x",c?q(c):"0x",i?q(i):"0x",n?q(n):"0x",a??"0x",o?q(o):"0x",u??"0x",d,..._a(e,t)];return lr(["0x02",Qr(f)])}function wv(e,t){const{chainId:r,gas:n,data:s,nonce:a,to:o,value:i,accessList:c,gasPrice:l}=e;mv(e);const u=Ho(c),d=[q(r),a?q(a):"0x",l?q(l):"0x",n?q(n):"0x",o??"0x",i?q(i):"0x",s??"0x",u,..._a(e,t)];return lr(["0x01",Qr(d)])}function vv(e,t){const{chainId:r=0,gas:n,data:s,nonce:a,to:o,value:i,gasPrice:c}=e;bv(e);let l=[a?q(a):"0x",c?q(c):"0x",n?q(n):"0x",o??"0x",i?q(i):"0x",s??"0x"];if(t){const u=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(r>0)return BigInt(r*2)+BigInt(35n+t.v-27n);const h=27n+(t.v===27n?0n:1n);if(t.v!==h)throw new h8({v:t.v});return h})(),d=Zt(t.r),f=Zt(t.s);l=[...l,q(u),d==="0x00"?"0x":d,f==="0x00"?"0x":f]}else r>0&&(l=[...l,q(r),"0x","0x"]);return Qr(l)}function _a(e,t){const r=t??e,{v:n,yParity:s}=r;if(typeof r.r>"u")return[];if(typeof r.s>"u")return[];if(typeof n>"u"&&typeof s>"u")return[];const a=Zt(r.r),o=Zt(r.s);return[typeof s=="number"?s?q(1):"0x":n===0n?"0x":n===1n?q(1):n===27n?"0x":q(1),a==="0x00"?"0x":a,o==="0x00"?"0x":o]}class Ev extends ${constructor(){super(["Transaction is not an EIP712 transaction.","","Transaction must:",' - include `type: "eip712"`'," - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`"].join(`
71
- `),{name:"InvalidEip712TransactionError"})}}function cb(e){return!!(e.type==="eip712"||"customSignature"in e&&e.customSignature||"paymaster"in e&&e.paymaster||"paymasterInput"in e&&e.paymasterInput||"gasPerPubdata"in e&&typeof e.gasPerPubdata=="bigint"||"factoryDeps"in e&&e.factoryDeps)}function lb(e){const{chainId:t,to:r,from:n,paymaster:s,paymasterInput:a}=e;if(!cb(e))throw new Ev;if(!t||t<=0)throw new Ba({chainId:t});if(r&&!nt(r))throw new Ct({address:r});if(n&&!nt(n))throw new Ct({address:n});if(s&&!nt(s))throw new Ct({address:s});if(s&&!a)throw new $("`paymasterInput` must be provided when `paymaster` is defined");if(!s&&a)throw new $("`paymaster` must be provided when `paymasterInput` is defined")}function kv(e,t){return cb(e)?Tv(e):Wc(e,t)}const Cv={transaction:kv};function Tv(e){const{chainId:t,gas:r,nonce:n,to:s,from:a,value:o,maxFeePerGas:i,maxPriorityFeePerGas:c,customSignature:l,factoryDeps:u,paymaster:d,paymasterInput:f,gasPerPubdata:h,data:y}=e;lb(e);const g=[n?Fe(n):"0x",c?Fe(c):"0x",i?Fe(i):"0x",r?Fe(r):"0x",s??"0x",o?Fe(o):"0x",y??"0x",Fe(t),Fe(""),Fe(""),Fe(t),a??"0x",Fe(h||Md),u??[],l??"0x",d&&f?[d,f]:[]];return lr(["0x71",Qr(g)])}class Sv extends ${constructor({givenLength:t,maxBytecodeSize:r}){super(`Bytecode cannot be longer than ${r} bytes. Given length: ${t}`,{name:"BytecodeLengthExceedsMaxSizeError"})}}class Av extends ${constructor({givenLengthInWords:t}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${t}`,{name:"BytecodeLengthInWordsMustBeOddError"})}}class Pv extends ${constructor({givenLength:t}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${t}`,{name:"BytecodeLengthMustBeDivisibleBy32Error"})}}function Iv(e){const t=wn(e);if(t.length%32!==0)throw new Pv({givenLength:t.length});if(t.length>E1)throw new Sv({givenLength:t.length,maxBytecodeSize:E1});const r=$1(t),n=wn(r),s=t.length/32;if(s%2===0)throw new Av({givenLengthInWords:s});const a=wn(s),o=Ds(a,{size:2}),i=new Uint8Array([1,0]);return n.set(i,0),n.set(o,2),n}const Bv=e=>{lb(e);const t=Fv(e);return{domain:{name:"zkSync",version:"2",chainId:e.chainId},types:{Transaction:[{name:"txType",type:"uint256"},{name:"from",type:"uint256"},{name:"to",type:"uint256"},{name:"gasLimit",type:"uint256"},{name:"gasPerPubdataByteLimit",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymaster",type:"uint256"},{name:"nonce",type:"uint256"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"factoryDeps",type:"bytes32[]"},{name:"paymasterInput",type:"bytes"}]},primaryType:"Transaction",message:t}};function Fv(e){const{gas:t,nonce:r,to:n,from:s,value:a,maxFeePerGas:o,maxPriorityFeePerGas:i,factoryDeps:c,paymaster:l,paymasterInput:u,gasPerPubdata:d,data:f}=e;return{txType:113n,from:BigInt(s),to:n?BigInt(n):0n,gasLimit:t??0n,gasPerPubdataByteLimit:d??Md,maxFeePerGas:o??0n,maxPriorityFeePerGas:i??0n,paymaster:l?BigInt(l):0n,nonce:r?BigInt(r):0n,value:a??0n,data:f??"0x",factoryDeps:(c==null?void 0:c.map(h=>Fe(Iv(h))))??[],paymasterInput:u||"0x"}}const ur={blockTime:1e3,formatters:k1,serializers:Cv,custom:{getEip712Domain:Bv}},Uv=p({...ur,blockTime:200,id:2741,name:"Abstract",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.mainnet.abs.xyz"],webSocket:["wss://api.mainnet.abs.xyz/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.mainnet.abs.xyz"}},contracts:{multicall3:{address:"0xAa4De41dba0Ca5dCBb288b7cC6b708F3aaC759E7",blockCreated:5288},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:5263}}}),Ov=p({...ur,blockTime:200,id:11124,name:"Abstract Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.testnet.abs.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.testnet.abs.xyz"}},testnet:!0,contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:358349},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:431682}}}),_v=p({id:787,name:"Acala",network:"acala",nativeCurrency:{name:"Acala",symbol:"ACA",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]}},blockExplorers:{default:{name:"Acala Blockscout",url:"https://blockscout.acala.network",apiUrl:"https://blockscout.acala.network/api"}},testnet:!1}),Dv=p({id:47,name:"Acria IntelliChain",nativeCurrency:{decimals:18,name:"ACRIA",symbol:"ACRIA"},rpcUrls:{default:{http:["https://aic.acria.ai"]}},blockExplorers:{default:{name:"Acria Explorer",url:"https://explorer.acria.ai"}},testnet:!1}),Mv=p({id:1215,name:"ADF Chain",nativeCurrency:{name:"ADDFILL",symbol:"ADF",decimals:18},rpcUrls:{default:{http:["https://mainnet.adftechnology.com"]}},blockExplorers:{default:{name:"ADF Mainnet Explorer",url:"https://explorer.adftechnology.com"}},testnet:!1}),Nv=p({id:9990,name:"Agung Network",nativeCurrency:{decimals:18,name:"Agung",symbol:"AGNG"},rpcUrls:{default:{http:["https://wss-async.agung.peaq.network"],webSocket:["wss://wss-async.agung.peaq.network"]}},blockExplorers:{default:{name:"Subscan",url:"https://agung-testnet.subscan.io"}},testnet:!0}),Lv=p({id:168,name:"AIOZ Network",nativeCurrency:{decimals:18,name:"AIOZ",symbol:"AIOZ"},rpcUrls:{default:{http:["https://eth-dataseed.aioz.network"]}},blockExplorers:{default:{name:"AIOZ Explorer",url:"https://explorer.aioz.network"}},testnet:!1}),zv=p({id:41455,name:"Aleph Zero",nativeCurrency:{name:"Aleph Zero",symbol:"AZERO",decimals:18},rpcUrls:{default:{http:["https://rpc.alephzero.raas.gelato.cloud"]}},blockExplorers:{default:{name:"Aleph Zero EVM Explorer",url:"https://evm-explorer.alephzero.org",apiUrl:"https://evm-explorer.alephzero.org/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4603377}}}),Rv=p({id:2039,name:"Aleph Zero Testnet",nativeCurrency:{name:"TZERO",symbol:"TZERO",decimals:18},rpcUrls:{default:{http:["https://rpc.alephzero-testnet.gelato.digital"],webSocket:["wss://ws.alephzero-testnet.gelato.digital"]}},blockExplorers:{default:{name:"Aleph Zero EVM Testnet explorer",url:"https://evm-explorer-testnet.alephzero.org",apiUrl:"https://evm-explorer-testnet.alephzero.org/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2861745}},testnet:!0}),Hv=p({id:10241024,name:"AlienX Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.alienxchain.io/http"]}},blockExplorers:{default:{name:"AlienX Explorer",url:"https://explorer.alienxchain.io"}},testnet:!1}),$v=p({id:10241025,name:"ALIENX Hal Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://hal-rpc.alienxchain.io/http"]}},blockExplorers:{default:{name:"AlienX Explorer",url:"https://hal-explorer.alienxchain.io"}},testnet:!0}),ub={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},ip={block:Od({format(e){var r;return{transactions:(r=e.transactions)==null?void 0:r.map(n=>{if(typeof n=="string")return n;const s=Ns(n);return s.typeHex==="0x7e"&&(s.isSystemTx=n.isSystemTx,s.mint=n.mint?Le(n.mint):void 0,s.sourceHash=n.sourceHash,s.type="deposit"),s}),stateRoot:e.stateRoot}}}),transaction:zc({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?Le(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:_d({format(e){return{l1GasPrice:e.l1GasPrice?Le(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?Le(e.l1GasUsed):null,l1Fee:e.l1Fee?Le(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function db(e,t){return Vv(e)?jv(e):Wc(e,t)}const Gv={transaction:db};function jv(e){Wv(e);const{sourceHash:t,data:r,from:n,gas:s,isSystemTx:a,mint:o,to:i,value:c}=e,l=[t,n,i??"0x",o?Fe(o):"0x",c?Fe(c):"0x",s?Fe(s):"0x",a?"0x1":"0x",r??"0x"];return lr(["0x7e",Qr(l)])}function Vv(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function Wv(e){const{from:t,to:r}=e;if(t&&!nt(t))throw new Ct({address:t});if(r&&!nt(r))throw new Ct({address:r})}const V={blockTime:2e3,contracts:ub,formatters:ip,serializers:Gv},qc=1,qv=p({...V,id:888888888,name:"Ancient8",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 explorer",url:"https://scan.ancient8.gg",apiUrl:"https://scan.ancient8.gg/api"}},contracts:{...V.contracts,l2OutputOracle:{[qc]:{address:"0xB09DC08428C8b4EFB4ff9C0827386CDF34277996"}},portal:{[qc]:{address:"0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68",blockCreated:19070571}},l1StandardBridge:{[qc]:{address:"0xd5e3eDf5b68135D559D572E26bF863FBC1950033",blockCreated:19070571}}},sourceId:qc}),Yc=11155111,Yv=p({...V,id:28122024,name:"Ancient8 Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpcv2-testnet.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 Celestia Testnet explorer",url:"https://scanv2-testnet.ancient8.gg",apiUrl:"https://scanv2-testnet.ancient8.gg/api"}},contracts:{...V.contracts,l2OutputOracle:{[Yc]:{address:"0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB"}},portal:{[Yc]:{address:"0xfa1d9E26A6aCD7b22115D27572c1221B9803c960",blockCreated:4972908}},l1StandardBridge:{[Yc]:{address:"0xF6Bc0146d3c74D48306e79Ae134A260E418C9335",blockCreated:4972908}}},sourceId:Yc}),Kv=p({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"]}}}),Zv=p({id:33139,name:"ApeChain",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.apechain.com/http"],webSocket:["wss://rpc.apechain.com/ws"]}},blockExplorers:{default:{name:"Apescan",url:"https://apescan.io",apiUrl:"https://api.apescan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:20889}},sourceId:42161}),Xv=p({id:3993,name:"APEX Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.apexlayer.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-testnet.apexlayer.xyz",apiUrl:"https://exp-testnet.apexlayer.xyz/api"}},contracts:{multicall3:{address:"0xf7642be33a6b18D16a995657adb5a68CD0438aE2",blockCreated:283775}},testnet:!0}),Qv=p({id:62606,name:"Apollo",nativeCurrency:{decimals:18,name:"Apollo",symbol:"APOLLO"},rpcUrls:{default:{http:["https://mainnet-rpc.apolloscan.io"]}},blockExplorers:{default:{name:"Apollo Explorer",url:"https://apolloscan.io"}}}),Jv=p({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),eE=p({id:421613,name:"Arbitrum Goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0}),tE=p({id:42170,name:"Arbitrum Nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://nova.arbiscan.io",apiUrl:"https://api-nova.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}}),rE=p({id:421614,name:"Arbitrum Sepolia",blockTime:250,nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://api-sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0}),nE=p({id:5042002,name:"Arc Testnet",nativeCurrency:{name:"USDC",symbol:"USDC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.arc.network","https://rpc.quicknode.testnet.arc.network","https://rpc.blockdaemon.testnet.arc.network"],webSocket:["wss://rpc.testnet.arc.network","wss://rpc.quicknode.testnet.arc.network"]}},blockExplorers:{default:{name:"ArcScan",url:"https://testnet.arcscan.app",apiUrl:"https://testnet.arcscan.app/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}),sE=p({id:7897,name:"Arena-Z",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.arena-z.gg"]}},blockExplorers:{default:{name:"Arena-Z Explorer",url:"https://explorer.arena-z.gg",apiUrl:"https://explorer.arena-z.gg"}}}),aE=p({id:463,name:"Areon Network",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areon.network"],webSocket:["wss://mainnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:353286}},testnet:!1}),oE=p({id:462,name:"Areon Network Testnet",nativeCurrency:{decimals:18,name:"TAREA",symbol:"TAREA"},rpcUrls:{default:{http:["https://testnet-rpc.areon.network"],webSocket:["wss://testnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},testnet:!0}),iE=p({id:463,name:"Areum",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areum.network"],webSocket:["wss://mainnet-ws.areum.network"]}},blockExplorers:{default:{name:"Areum Explorer",url:"https://explorer.areum.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:353286}},testnet:!1}),cE=p({id:11822,name:"Artela Testnet",nativeCurrency:{name:"ART",symbol:"ART",decimals:18},rpcUrls:{default:{http:["https://betanet-rpc1.artela.network"]}},blockExplorers:{default:{name:"Artela",url:"https://betanet-scan.artela.network",apiUrl:"https://betanet-scan.artela.network/api"}},contracts:{multicall3:{address:"0xd07c8635f76e8745Ee7092fbb6e8fbc5FeF09DD7",blockCreated:7001871}},testnet:!0}),lE=p({id:10242,name:"Arthera",nativeCurrency:{name:"Arthera",symbol:"AA",decimals:18},rpcUrls:{default:{http:["https://rpc.arthera.net"]}},blockExplorers:{default:{name:"Arthera EVM Explorer",url:"https://explorer.arthera.net",apiUrl:"https://explorer.arthera.net/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4502791}}}),uE=p({id:10243,name:"Arthera Testnet",nativeCurrency:{name:"Arthera",symbol:"AA",decimals:18},rpcUrls:{default:{http:["https://rpc-test.arthera.net"]}},blockExplorers:{default:{name:"Arthera EVM Explorer",url:"https://explorer-test.arthera.net",apiUrl:"https://explorer-test.arthera.net/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:22051}}}),dE=p({id:42420,name:"AssetChain Mainnet",nativeCurrency:{decimals:18,name:"Real World Asset",symbol:"RWA"},rpcUrls:{default:{http:["https://mainnet-rpc.assetchain.org"]}},blockExplorers:{default:{name:"Asset Chain Explorer",url:"https://scan.assetchain.org",apiUrl:"https://scan.assetchain.org/api"}},testnet:!1,contracts:{}}),pE=p({id:42421,name:"AssetChain Testnet",nativeCurrency:{decimals:18,name:"Real World Asset",symbol:"RWA"},rpcUrls:{default:{http:["https://enugu-rpc.assetchain.org"]}},blockExplorers:{default:{name:"Asset Chain Testnet Explorer",url:"https://scan-testnet.assetchain.org",apiUrl:"https://scan-testnet.assetchain.org/api"}},testnet:!0,contracts:{multicall3:{address:"0x989F832D35988cb5e3eB001Fa2Fe789469EC31Ea",blockCreated:17177}}}),fE=p({id:592,name:"Astar",network:"astar-mainnet",nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},rpcUrls:{default:{http:["https://astar.api.onfinality.io/public"]}},blockExplorers:{default:{name:"Astar Subscan",url:"https://astar.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:761794}},testnet:!1}),hE=p({id:3776,name:"Astar zkEVM",network:"AstarZkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-zkevm.astar.network"]}},blockExplorers:{default:{name:"Astar zkEVM Explorer",url:"https://astar-zkevm.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:93528}},testnet:!1}),mE=p({id:6038361,name:"Astar zkEVM Testnet zKyoto",network:"zKyoto",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.startale.com/zkyoto"]}},blockExplorers:{default:{name:"zKyoto Explorer",url:"https://zkyoto.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:196153}},testnet:!0}),bE=p({id:2340,name:"Atleta Olympia",nativeCurrency:{decimals:18,name:"Atla",symbol:"ATLA"},rpcUrls:{default:{http:["https://testnet-rpc.atleta.network:9944","https://testnet-rpc.atleta.network"],ws:["wss://testnet-rpc.atleta.network:9944"]}},blockExplorers:{default:{name:"Atleta Olympia Explorer",url:"https://blockscout.atleta.network",apiUrl:"https://blockscout.atleta.network/api"}},contracts:{multicall3:{address:"0x1472ec6392180fb84F345d2455bCC75B26577115",blockCreated:1076473}},testnet:!0}),yE=p({id:1313161554,name:"Aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://aurorascan.dev",apiUrl:"https://aurorascan.dev/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:62907816}}}),gE=p({id:1313161555,name:"Aurora Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev",apiUrl:"https://testnet.aurorascan.dev/api"}},testnet:!0}),xE=p({id:205205,name:"Auroria Testnet",network:"auroria",nativeCurrency:{name:"Auroria Stratis",symbol:"tSTRAX",decimals:18},rpcUrls:{default:{http:["https://auroria.rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Auroria Testnet Explorer",url:"https://auroria.explorer.stratisevm.com"}},testnet:!0}),wE=p({id:785,name:"Autheo Testnet",nativeCurrency:{decimals:18,name:"Autheo",symbol:"THEO"},rpcUrls:{default:{http:["https://testnet-rpc1.autheo.com","https://testnet-rpc2.autheo.com"]}},blockExplorers:{default:{name:"Autheo Testnet Block Explorer",url:"https://testnet-explorer.autheo.com/"}}}),vE=p({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),EE=p({id:43113,name:"Avalanche Fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://testnet.snowtrace.io",apiUrl:"https://api-testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0}),kE=p({id:8333,name:"B3",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.b3.fun/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.b3.fun"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},sourceId:8453}),CE=p({id:1993,name:"B3 Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.b3.fun/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.b3.fun"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},testnet:!0,sourceId:168587773}),TE=p({id:5165,network:"bahamut",name:"Bahamut",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.bahamut.io","https://bahamut-rpc.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut-rpc.publicnode.com","wss://ws2.sahara.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://www.ftnscan.com",apiUrl:"https://www.ftnscan.com/api"}}}),$o=1,pb=p({...V,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...V.contracts,disputeGameFactory:{[$o]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[$o]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[$o]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[$o]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:$o}),SE=p({...pb,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://mainnet-preconf.base.org"]}}}),AE=p({id:123420001114,name:"Basecamp Testnet",nativeCurrency:{decimals:18,name:"Camp",symbol:"CAMP"},rpcUrls:{default:{http:["https://rpc.basecamp.t.raas.gelato.cloud"]}},blockExplorers:{default:{name:"basecamp",url:"https://basecamp.cloud.blockscout.com"}},testnet:!0}),Kc=5,PE=p({...V,id:84531,name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://goerli.basescan.org",apiUrl:"https://goerli.basescan.org/api"}},contracts:{...V.contracts,l2OutputOracle:{[Kc]:{address:"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988},portal:{[Kc]:{address:"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA"}},l1StandardBridge:{[Kc]:{address:"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a"}}},testnet:!0,sourceId:Kc}),Go=11155111,fb=p({...V,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...V.contracts,disputeGameFactory:{[Go]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[Go]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[Go]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[Go]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:Go}),IE=p({...fb,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-preconf.base.org"]}}}),BE=p({id:4337,name:"Beam",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{default:{http:["https://build.onbeam.com/rpc"],webSocket:["wss://build.onbeam.com/ws"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets.avax.network/beam"}},contracts:{multicall3:{address:"0x4956f15efdc3dc16645e90cc356eafa65ffc65ec",blockCreated:1}}}),FE=p({id:13337,name:"Beam Testnet",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{default:{http:["https://build.onbeam.com/rpc/testnet"],webSocket:["wss://build.onbeam.com/ws/testnet"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets-test.avax.network/beam"}},contracts:{multicall3:{address:"0x9bf49b704ee2a095b95c1f2d4eb9010510c41c9e",blockCreated:3}},testnet:!0}),UE=p({id:641230,name:"Bear Network Chain Mainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net",apiUrl:"https://brnkscan.bearnetwork.net/api"}}}),OE=p({id:751230,name:"Bear Network Chain Testnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net",apiUrl:"https://brnktest-scan.bearnetwork.net/api"}},testnet:!0}),_E=p({id:80094,name:"Berachain",blockTime:2e3,nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},ensRegistry:{address:"0x5b22280886a2f5e09a49bea7e320eab0e5320e28",blockCreated:877007},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:9310021}},rpcUrls:{default:{http:["https://rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://berascan.com"}},ensTlds:[".bera"],testnet:!1}),DE=p({id:80069,blockTime:2e3,name:"Berachain Bepolia",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},rpcUrls:{default:{http:["https://bepolia.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://bepolia.beratrail.io"}},testnet:!0}),ME=p({id:80085,name:"Berachain Artio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},rpcUrls:{default:{http:["https://artio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain",url:"https://artio.beratrail.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:866924}},testnet:!0}),NE=p({id:80084,name:"Berachain bArtio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:109269},ensRegistry:{address:"0xB0eef18971290b333450586D33dcA6cE122651D2",blockCreated:7736794},ensUniversalResolver:{address:"0x41692Ef1EA0C79E6b73077E4A67572D2BDbD7057",blockCreated:7736795}},ensTlds:[".bera"],rpcUrls:{default:{http:["https://bartio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain bArtio Beratrail",url:"https://bartio.beratrail.io"}},testnet:!0}),LE=p({id:11501,name:"BEVM Mainnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet-1.bevm.io"]}},blockExplorers:{default:{name:"Bevmscan",url:"https://scan-mainnet.bevm.io",apiUrl:"https://scan-mainnet-api.bevm.io/api"}}}),zE=p({id:3068,name:"Bifrost Mainnet",nativeCurrency:{name:"BFC",symbol:"BFC",decimals:18},rpcUrls:{default:{http:["https://public-01.mainnet.bifrostnetwork.com/rpc"]}},blockExplorers:{default:{name:"Bifrost Blockscout",url:"https://explorer.mainnet.bifrostnetwork.com"}},testnet:!1}),RE=p({id:53456,name:"BirdLayer",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.birdlayer.xyz","https://rpc1.birdlayer.xyz"],webSocket:["wss://rpc.birdlayer.xyz/ws"]}},blockExplorers:{default:{name:"BirdLayer Explorer",url:"https://scan.birdlayer.xyz"}}}),HE=p({id:32520,name:"Bitgert Mainnet",nativeCurrency:{decimals:18,name:"Brise",symbol:"Brise"},rpcUrls:{default:{http:["https://rpc-bitgert.icecreamswap.com"]}},blockExplorers:{default:{name:"Bitgert Scan",url:"https://brisescan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2118034}},testnet:!1}),$E=p({id:96,name:"KUB Mainnet",nativeCurrency:{name:"KUB Coin",symbol:"KUB",decimals:18},rpcUrls:{default:{http:["https://rpc.bitkubchain.io"]}},blockExplorers:{default:{name:"KUB Chain Mainnet Explorer",url:"https://www.bkcscan.com",apiUrl:"https://www.bkcscan.com/api"}}}),GE=p({id:25925,name:"Bitkub Testnet",network:"Bitkub Testnet",nativeCurrency:{name:"Bitkub Test",symbol:"tKUB",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.bitkubchain.io"]}},blockExplorers:{default:{name:"Bitkub Chain Testnet Explorer",url:"https://testnet.bkcscan.com",apiUrl:"https://testnet.bkcscan.com/api"}},testnet:!0}),jE=p({id:200901,name:"Bitlayer Mainnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org"],webSocket:["wss://ws.bitlayer.org"]}},blockExplorers:{default:{name:"bitlayer mainnet scan",url:"https://www.btrscan.com"}},contracts:{multicall3:{address:"0x5B256fE9e993902eCe49D138a5b1162cBb529474",blockCreated:2421963}}}),VE=p({id:200810,name:"Bitlayer Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bitlayer.org"],webSocket:["wss://testnet-ws.bitlayer.org"]}},blockExplorers:{default:{name:"bitlayer testnet scan",url:"https://testnet.btrscan.com"}},contracts:{multicall3:{address:"0x5B256fE9e993902eCe49D138a5b1162cBb529474",blockCreated:4135671}},testnet:!0}),WE=p({id:7171,name:"Bitrock Mainnet",nativeCurrency:{name:"BROCK",symbol:"BROCK",decimals:18},rpcUrls:{default:{http:["https://brockrpc.io"]}},blockExplorers:{default:{name:"Bitrock Explorer",url:"https://explorer.bit-rock.io"}},testnet:!1}),qE=p({id:199,name:"BitTorrent",network:"bittorrent-chain-mainnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://rpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://bttcscan.com",apiUrl:"https://api.bttcscan.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:31078552}}}),YE=p({id:1028,name:"BitTorrent Chain Testnet",network:"bittorrent-chain-testnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://testrpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://testnet.bttcscan.com",apiUrl:"https://testnet.bttcscan.com/api"}},testnet:!0}),Zc=1,KE=p({...V,id:81457,name:"Blast",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://blastscan.io",apiUrl:"https://api.blastscan.io/api"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:212929},l2OutputOracle:{[Zc]:{address:"0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76",blockCreated:19300358}},portal:{[Zc]:{address:"0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb",blockCreated:19300357}},l1StandardBridge:{[Zc]:{address:"0x697402166Fbf2F22E970df8a6486Ef171dbfc524",blockCreated:19300360}}},sourceId:Zc}),ZE=p({id:168587773,name:"Blast Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://sepolia.blastscan.io",apiUrl:"https://api-sepolia.blastscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:756690}},testnet:!0,sourceId:11155111}),cp=1,XE=p({...V,id:60808,name:"BOB",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.gobob.xyz"],webSocket:["wss://rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Explorer",url:"https://explorer.gobob.xyz"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:23131},l2OutputOracle:{[cp]:{address:"0xdDa53E23f8a32640b04D7256e651C1db98dB11C1",blockCreated:4462615}},portal:{[cp]:{address:"0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E",blockCreated:4462615}}},sourceId:cp}),QE=p({id:288,name:"Boba Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}}),JE=p({id:28882,name:"Boba Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://testnet.bobascan.com"}},testnet:!0}),lp=11155111,ek=p({...V,id:808813,name:"BOB Sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://bob-sepolia.rpc.gobob.xyz"],webSocket:["wss://bob-sepolia.rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Sepolia Explorer",url:"https://bob-sepolia.explorer.gobob.xyz"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:35677},l2OutputOracle:{[lp]:{address:"0x14D0069452b4AE2b250B395b8adAb771E4267d2f",blockCreated:4462615}},portal:{[lp]:{address:"0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4",blockCreated:4462615}}},testnet:!0,sourceId:lp}),tk=p({id:11100,name:"Bool Beta Mainnet",nativeCurrency:{decimals:18,name:"BOL",symbol:"BOL"},rpcUrls:{default:{http:["https://beta-rpc-node-http.bool.network"]}},blockExplorers:{default:{name:"BoolScan",url:"https://beta-mainnet.boolscan.com/"}},testnet:!1}),rk=p({id:3637,name:"Botanix",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.botanixlabs.com"],webSocket:["wss://rpc.botanixlabs.com/ws"]}},blockExplorers:{default:{name:"Botanixscan",url:"https://botanixscan.io"}}}),nk=p({id:3636,name:"Botanix Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://node.botanixlabs.dev"]}},blockExplorers:{default:{name:"Botanix Testnet Explorer",url:"https://testnet.botanixscan.io"}},testnet:!0}),sk=p({id:6001,name:"BounceBit Mainnet",nativeCurrency:{name:"BounceBit",symbol:"BB",decimals:18},rpcUrls:{default:{http:["https://fullnode-mainnet.bouncebitapi.com"]}},blockExplorers:{default:{name:"BB Scan",url:"https://bbscan.io"}},testnet:!1}),ak=p({id:6e3,name:"BounceBit Testnet",nativeCurrency:{name:"BounceBit",symbol:"BB",decimals:18},rpcUrls:{default:{http:["https://fullnode-testnet.bouncebitapi.com"]}},blockExplorers:{default:{name:"BB Scan",url:"https://testnet.bbscan.io"}},testnet:!0}),ok=p({id:1039,name:"Bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}}),ik=p({id:1038,name:"Bronos Testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0}),ck=p({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),lk=p({id:1017,name:"BNB Greenfield Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://greenfield-chain.bnbchain.org"]}},blockExplorers:{default:{name:"BNB Greenfield Mainnet Scan",url:"https://greenfieldscan.com"}},testnet:!1}),uk=p({id:97,name:"BNB Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://api-testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0}),dk=p({id:223,name:"B2",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bsquared.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.bsquared.network"}}}),pk=p({id:1123,name:"B2 Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bsquared.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet-explorer.bsquared.network"}},testnet:!0}),fk=p({id:200901,name:"Bitlayer",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org","https://rpc.bitlayer-rpc.com"],webSocket:["wss://ws.bitlayer.org","wss://ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://www.btrscan.com"}}}),hk=p({id:200810,name:"Bitlayer Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bitlayer.org"],webSocket:["wss://testnet-ws.bitlayer.org","wss://testnet-ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://testnet.btrscan.com"}},testnet:!0}),mk=p({id:4999,name:"BlackFort Exchange Network",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network",apiUrl:"https://explorer.blackfort.network/api"}}}),bk=p({id:4777,name:"BlackFort Exchange Network Testnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network",apiUrl:"https://testnet-explorer.blackfort.network/api"}},testnet:!0}),yk=p({id:13370,name:"Cannon",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),gk=p({id:7700,name:"Canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}}),xk={estimateFeesPerGas:async e=>{var s;if(!((s=e.request)!=null&&s.feeCurrency))return null;const[t,r]=await Promise.all([wk(e.client,e.request.feeCurrency),vk(e.client,e.request.feeCurrency)]);return{maxFeePerGas:e.multiply(t-r)+r,maxPriorityFeePerGas:r}}};async function wk(e,t){const r=await e.request({method:"eth_gasPrice",params:[t]});return BigInt(r)}async function vk(e,t){const r=await e.request({method:"eth_maxPriorityFeePerGas",params:[t]});return BigInt(r)}function hb(e){return e===0||e===0n||e===void 0||e===null||e==="0"||e===""||typeof e=="string"&&(Zt(e).toLowerCase()==="0x"||Zt(e).toLowerCase()==="0x00")}function jo(e){return!hb(e)}function Ek(e){return typeof e.maxFeePerGas<"u"&&typeof e.maxPriorityFeePerGas<"u"}function mb(e){return e.type==="cip64"?!0:Ek(e)&&jo(e.feeCurrency)}const kk={block:Od({format(e){var r;return{transactions:(r=e.transactions)==null?void 0:r.map(n=>typeof n=="string"?n:{...Ns(n),...n.gatewayFee?{gatewayFee:Le(n.gatewayFee),gatewayFeeRecipient:n.gatewayFeeRecipient}:{},feeCurrency:n.feeCurrency})}}}),transaction:zc({format(e){if(e.type==="0x7e")return{isSystemTx:e.isSystemTx,mint:e.mint?Le(e.mint):void 0,sourceHash:e.sourceHash,type:"deposit"};const t={feeCurrency:e.feeCurrency};return e.type==="0x7b"?t.type="cip64":(e.type==="0x7c"&&(t.type="cip42"),t.gatewayFee=e.gatewayFee?Le(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),transactionRequest:Dd({format(e){const t={};return e.feeCurrency&&(t.feeCurrency=e.feeCurrency),mb(e)&&(t.type="0x7b"),t}})};function Ck(e,t){return mb(e)?Sk(e,t):db(e,t)}const Tk={transaction:Ck};function Sk(e,t){Pk(e);const{chainId:r,gas:n,nonce:s,to:a,value:o,maxFeePerGas:i,maxPriorityFeePerGas:c,accessList:l,feeCurrency:u,data:d}=e,f=[Fe(r),s?Fe(s):"0x",c?Fe(c):"0x",i?Fe(i):"0x",n?Fe(n):"0x",a??"0x",o?Fe(o):"0x",d??"0x",Ho(l),u,..._a(e,t)];return lr(["0x7b",Qr(f)])}const Ak=Ls;function Pk(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:a,feeCurrency:o}=e;if(t<=0)throw new Ba({chainId:t});if(a&&!nt(a))throw new Ct({address:a});if(n)throw new $("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(jo(s)&&s>Ak)throw new as({maxFeePerGas:s});if(jo(r)&&jo(s)&&r>s)throw new Ua({maxFeePerGas:s,maxPriorityFeePerGas:r});if(jo(o)&&!nt(o))throw new $("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(hb(o))throw new $("`feeCurrency` must be provided for CIP-64 transactions.")}const Vo={blockTime:1e3,contracts:ub,formatters:kk,serializers:Tk,fees:xk},Ik=p({...Vo,id:42220,name:"Celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://celoscan.io",apiUrl:"https://api.celoscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1}),Xc=17e3,Bk=p({...Vo,id:44787,name:"Alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Alfajores Explorer",url:"https://celo-alfajores.blockscout.com",apiUrl:"https://celo-alfajores.blockscout.com/api"}},contracts:{...Vo.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001},portal:{[Xc]:{address:"0x82527353927d8D069b3B452904c942dA149BA381",blockCreated:2411324}},disputeGameFactory:{[Xc]:{address:"0xE28AAdcd9883746c0e5068F58f9ea06027b214cb",blockCreated:2411324}},l2OutputOracle:{[Xc]:{address:"0x4a2635e9e4f6e45817b1D402ac4904c1d1752438",blockCreated:2411324}},l1StandardBridge:{[Xc]:{address:"0xD1B0E0581973c9eB7f886967A606b9441A897037",blockCreated:2411324}}},testnet:!0}),up=11155111,Fk=p({...Vo,id:11142220,name:"Celo Sepolia Testnet",nativeCurrency:{decimals:18,name:"CELO",symbol:"S-CELO"},rpcUrls:{default:{http:["https://forno.celo-sepolia.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Sepolia Explorer",url:"https://celo-sepolia.blockscout.com/",apiUrl:"https://celo-sepolia.blockscout.com/api"}},contracts:{...Vo.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1},portal:{[up]:{address:"0x44ae3d41a335a7d05eb533029917aad35662dcc2",blockCreated:8825790}},disputeGameFactory:{[up]:{address:"0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa",blockCreated:8825790}},l1StandardBridge:{[up]:{address:"0xec18a3c30131a0db4246e785355fbc16e2eaf408",blockCreated:8825790}}},testnet:!0}),Uk=p({id:5858,name:"Chang Chain Foundation Mainnet",nativeCurrency:{decimals:18,name:"CTH",symbol:"CTH"},rpcUrls:{default:{http:["https://rpc.cthscan.com"]}},blockExplorers:{default:{name:"Chang Chain explorer",url:"https://cthscan.com"}}}),Ok=p({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.chiliz.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com",apiUrl:"https://scan.chiliz.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:8080847}}}),_k=p({id:2882,name:"Chips Network",network:"CHIPS",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://node.chips.ooo/wasp/api/v1/chains/iota1pp3d3mnap3ufmgqnjsnw344sqmf5svjh26y2khnmc89sv6788y3r207a8fn/evm"]}}}),Dk=p({id:5115,name:"Citrea Testnet",nativeCurrency:{name:"cBTC",symbol:"cBTC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.citrea.xyz"]}},blockExplorers:{default:{name:"Citrea Explorer",url:"https://explorer.testnet.citrea.xyz",apiUrl:"https://explorer.testnet.citrea.xyz/api"}},testnet:!0}),Mk=p({id:61,name:"Ethereum Classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}}),Nk=p({id:112,name:"Coinbit Mainnet",nativeCurrency:{name:"GIDR",symbol:"GIDR",decimals:18},rpcUrls:{default:{http:["https://coinbit-rpc-mainnet.chain.sbcrypto.app"]}},blockExplorers:{default:{name:"Coinbit Explorer",url:"https://coinbit-explorer.chain.sbcrypto.app"}},testnet:!1}),Lk=p({id:52,name:"CoinEx Mainnet",nativeCurrency:{name:"cet",symbol:"cet",decimals:18},rpcUrls:{default:{http:["https://rpc.coinex.net"]}},blockExplorers:{default:{name:"CoinEx Explorer",url:"https://www.coinex.net"}},testnet:!1}),zk=p({id:1030,name:"Conflux eSpace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.com"],webSocket:["wss://evm.confluxrpc.com/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.org"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}}),Rk=p({id:71,name:"Conflux eSpace Testnet",network:"cfx-espace-testnet",testnet:!0,nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evmtestnet.confluxrpc.com"],webSocket:["wss://evmtestnet.confluxrpc.com/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evmtestnet.confluxscan.org"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:117499050}}}),Hk=p({id:1116,name:"Core Dao",nativeCurrency:{decimals:18,name:"Core",symbol:"CORE"},rpcUrls:{default:{http:["https://rpc.coredao.org"]}},blockExplorers:{default:{name:"CoreDao",url:"https://scan.coredao.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11907934}},testnet:!1}),$k=p({id:1115,name:"Core Testnet",nativeCurrency:{decimals:18,name:"tCore",symbol:"TCORE"},rpcUrls:{default:{http:["https://rpc.test.btcs.network"]}},blockExplorers:{default:{name:"Core Testnet",url:"https://scan.test.btcs.network",apiUrl:"https://api.test.btcs.network/api"}},contracts:{multicall3:{address:"0xCcddF20A1932537123C2E48Bd8e00b108B8f7569",blockCreated:29350509}},testnet:!0}),Gk=p({id:1114,name:"Core Testnet2",nativeCurrency:{decimals:18,name:"tCore2",symbol:"TCORE2"},rpcUrls:{default:{http:["https://rpc.test2.btcs.network"]}},blockExplorers:{default:{name:"Core Testnet2",url:"https://scan.test2.btcs.network",apiUrl:"https://api.test2.btcs.network/api"}},contracts:{multicall3:{address:"0x3CB285ff3Cd5C7C7e570b1E7DE3De17A0f985e56",blockCreated:3838600}},testnet:!0}),jk=p({id:21e6,name:"Corn",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Explorer",url:"https://cornscan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3228}},sourceId:1}),Vk=p({id:21000001,name:"Corn Testnet",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000001.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Testnet Explorer",url:"https://testnet.cornscan.io",apiUrl:"https://api.routescan.io/v2/network/testnet/evm/21000001/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4886}},testnet:!0,sourceId:11155111}),Wk=p({id:44,name:"Crab Network",nativeCurrency:{decimals:18,name:"Crab Network Native Token",symbol:"CRAB"},rpcUrls:{default:{http:["https://crab-rpc.darwinia.network"],webSocket:["wss://crab-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://crab-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3032593}}}),qk=p({id:66665,name:"Creator",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.creatorchain.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.creatorchain.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0}),Yk=p({id:102032,name:"Creditcoin Devnet",nativeCurrency:{name:"Devnet CTC",symbol:"devCTC",decimals:18},rpcUrls:{default:{http:["https://rpc.cc3-devnet.creditcoin.network"],webSocket:["wss://rpc.cc3-devnet.creditcoin.network/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin-devnet.blockscout.com",apiUrl:"https://creditcoin3-dev.subscan.io"}},testnet:!0}),Kk=p({id:102030,name:"Creditcoin",nativeCurrency:{name:"Creditcoin",symbol:"CTC",decimals:18},rpcUrls:{default:{http:["https://mainnet3.creditcoin.network"],webSocket:["wss://mainnet3.creditcoin.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin.blockscout.com",apiUrl:"https://creditcoin.blockscout.com/api"}},testnet:!1}),Zk=p({id:102031,name:"Creditcoin Testnet",nativeCurrency:{name:"Creditcoin Testnet",symbol:"tCTC",decimals:18},rpcUrls:{default:{http:["https://rpc.cc3-testnet.creditcoin.network"],webSocket:["wss://rpc.cc3-testnet.creditcoin.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin-testnet.blockscout.com",apiUrl:"https://creditcoin-testnet.blockscout.com/api"}},testnet:!0}),Xk=p({id:25,name:"Cronos Mainnet",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://explorer.cronos.org",apiUrl:"https://explorer-api.cronos.org/mainnet/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}}),Qk=p({id:338,name:"Cronos Testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer (Testnet)",url:"https://explorer.cronos.org/testnet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0}),Jk=p({id:388,name:"Cronos zkEVM Mainnet",nativeCurrency:{decimals:18,name:"Cronos zkEVM CRO",symbol:"zkCRO"},rpcUrls:{default:{http:["https://mainnet.zkevm.cronos.org"]}},blockExplorers:{default:{name:"Cronos zkEVM (Mainnet) Chain Explorer",url:"https://explorer.zkevm.cronos.org"}},contracts:{multicall3:{address:"0x06f4487d7c4a5983d2660db965cc6d2565e4cfaa",blockCreated:72}}}),e7=p({id:282,name:"Cronos zkEVM Testnet",nativeCurrency:{decimals:18,name:"Cronos zkEVM Test Coin",symbol:"zkTCRO"},rpcUrls:{default:{http:["https://testnet.zkevm.cronos.org"]}},blockExplorers:{default:{name:"Cronos zkEVM Testnet Explorer",url:"https://explorer.zkevm.cronos.org/testnet"}},testnet:!0}),t7=p({id:3737,name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io",apiUrl:"https://scan.crossbell.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:38246031}}}),r7=p({id:4158,name:"CrossFi Mainnet",nativeCurrency:{decimals:18,name:"CrossFi",symbol:"XFI"},rpcUrls:{default:{http:["https://rpc.mainnet.ms"]}},blockExplorers:{default:{name:"CrossFi Blockchain Explorer",url:"https://xfiscan.com"}},testnet:!1}),n7=p({id:33111,name:"Curtis",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.curtis.apechain.com"]}},blockExplorers:{default:{name:"Curtis Explorer",url:"https://explorer.curtis.apechain.com"}},testnet:!0}),s7=p({id:7560,name:"Cyber",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://cyberscan.co",apiUrl:"https://cyberscan.co/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),a7=p({id:111557560,name:"Cyber Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber-testnet.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet.cyberscan.co",apiUrl:"https://testnet.cyberscan.co/api"}},contracts:{multicall3:{address:"0xffc391F0018269d4758AEA1a144772E8FB99545E",blockCreated:304545}},testnet:!0}),o7=p({id:824,name:"Daily Network Mainnet",nativeCurrency:{decimals:18,name:"Daily",symbol:"DLY"},rpcUrls:{default:{http:["https://rpc.mainnet.dailycrypto.net"]}},blockExplorers:{default:{name:"Daily Mainnet Explorer",url:"https://explorer.mainnet.dailycrypto.net"}},testnet:!1}),i7=p({id:825,name:"Daily Network Testnet",nativeCurrency:{decimals:18,name:"Daily",symbol:"DLY"},rpcUrls:{default:{http:["https://rpc.testnet.dailycrypto.net"]}},blockExplorers:{default:{name:"Daily Testnet Explorer",url:"https://explorer.testnet.dailycrypto.net"}},testnet:!0}),c7=p({id:46,name:"Darwinia Network",nativeCurrency:{decimals:18,name:"RING",symbol:"RING"},rpcUrls:{default:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69420}}}),l7=p({id:55931,name:"Datahaven Testnet",nativeCurrency:{decimals:18,name:"MOCK",symbol:"MOCK"},rpcUrls:{default:{http:["https://services.datahaven-testnet.network/testnet"],webSocket:["wss://services.datahaven-testnet.network/testnet"]}},blockExplorers:{default:{name:"DhScan",url:"https://testnet.dhscan.io/",apiUrl:"https://testnet.dhscan.io/api-docs"}},contracts:{},testnet:!0}),u7=p({id:20240603,name:"DBK chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.dbkchain.io"]}},blockExplorers:{default:{name:"DBK Chain Explorer",url:"https://scan.dbkchain.io"}},testnet:!1}),d7=p({...V,id:2716446429837e3,name:"Dchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://dchain-2716446429837000-1.jsonrpc.sagarpc.io"]}},blockExplorers:{default:{name:"Dchain Explorer",url:"https://dchain-2716446429837000-1.sagaexplorer.io",apiUrl:"https://api-dchain-2716446429837000-1.sagaexplorer.io/api"}},contracts:{...V.contracts}}),p7=p({...V,id:2713017997578e3,name:"Dchain Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://dchaintestnet-2713017997578000-1.jsonrpc.testnet.sagarpc.io"]}},blockExplorers:{default:{name:"Dchain Explorer",url:"https://dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io",apiUrl:"https://api-dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io/api"}},contracts:{...V.contracts}}),f7=p({id:1130,network:"defichain-evm",name:"DeFiChain EVM Mainnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},rpcUrls:{default:{http:["https://eth.mainnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:137852}}}),h7=p({id:1131,network:"defichain-evm-testnet",name:"DeFiChain EVM Testnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},rpcUrls:{default:{http:["https://eth.testnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live/?network=TestNet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:156462}},testnet:!0}),m7=p({id:666666666,name:"Degen",nativeCurrency:{decimals:18,name:"Degen",symbol:"DEGEN"},rpcUrls:{default:{http:["https://rpc.degen.tips"],webSocket:["wss://rpc.degen.tips"]}},blockExplorers:{default:{name:"Degen Chain Explorer",url:"https://explorer.degen.tips",apiUrl:"https://explorer.degen.tips/api/v2"}}}),b7=p({id:53935,name:"DFK Chain",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14790551}}}),y7=p({id:15,name:"Diode Prenet",nativeCurrency:{decimals:18,name:"DIODE",symbol:"DIODE"},rpcUrls:{default:{http:["https://prenet.diode.io:8443"],webSocket:["wss://prenet.diode.io:8443/ws"]}},blockExplorers:{default:{name:"Diode Explorer",url:"https://diode.io/prenet"}},testnet:!1}),g7=p({id:513100,name:"DisChain",nativeCurrency:{decimals:18,name:"DIS",symbol:"DIS"},rpcUrls:{default:{http:["https://rpc.dischain.xyz"]}},blockExplorers:{default:{name:"DisChain Explorer",url:"https://www.oklink.com/dis"}}}),x7=p({id:53457,name:"DODOchain Testnet",nativeCurrency:{decimals:18,name:"DODO",symbol:"DODO"},rpcUrls:{default:{http:["https://dodochain-testnet.alt.technology"],webSocket:["wss://dodochain-testnet.alt.technology/ws"]}},blockExplorers:{default:{name:"DODOchain Testnet (Sepolia) Explorer",url:"https://testnet-scan.dodochain.com"}},testnet:!0}),w7=p({id:2e3,name:"Dogechain",nativeCurrency:{decimals:18,name:"Wrapped Dogecoin",symbol:"WDOGE"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog",apiUrl:"https://explorer.dogechain.dog/api"}},contracts:{multicall3:{address:"0x68a8609a60a008EFA633dfdec592c03B030cC508",blockCreated:25384031}}}),v7=p({id:97476,name:"Doma Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc-testnet.doma.xyz"]}},blockExplorers:{default:{name:"Doma Testnet Explorer",url:"https://explorer-testnet.doma.xyz"}},testnet:!0}),E7=p({id:42026,name:"Donatuz",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.donatuz.com"]}},blockExplorers:{default:{name:"Donatuz Explorer",url:"https://explorer.donatuz.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),k7=p({id:7979,name:"DOS Chain",nativeCurrency:{decimals:18,name:"DOS Chain",symbol:"DOS"},rpcUrls:{default:{http:["https://main.doschain.com"]}},blockExplorers:{default:{name:"DOS Chain Explorer",url:"https://doscan.io",apiUrl:"https://api.doscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:161908}}}),C7=p({id:3939,name:"DOS Chain Testnet",nativeCurrency:{decimals:18,name:"DOS Chain Testnet",symbol:"DOS"},rpcUrls:{default:{http:["https://test.doschain.com"]}},blockExplorers:{default:{name:"DOS Chain Testnet Explorer",url:"https://test.doscan.io",apiUrl:"https://api-test.doscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69623}},testnet:!0}),T7=p({id:23451,name:"DreyerX Mainnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["https://rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Scan",url:"https://scan.dreyerx.com"}}});function dp({chain:e,currentChainId:t}){if(!e)throw new rv;if(t!==e.id)throw new tv({chain:e,currentChainId:t})}function Da({blockNumber:e,chain:t,contract:r}){var s;const n=(s=t==null?void 0:t.contracts)==null?void 0:s[r];if(!n)throw new Vd({chain:t,contract:{name:r}});if(e&&n.blockCreated&&n.blockCreated>e)throw new Vd({blockNumber:e,chain:t,contract:{name:r,blockCreated:n.blockCreated}});return n.address}const S7=p({id:23452,name:"DreyerX Testnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["http://testnet-rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Testnet Scan",url:"https://testnet-scan.dreyerx.com"}},testnet:!0}),A7=p({id:555888,name:"DustBoy IoT",nativeCurrency:{name:"Ether",symbol:"DST",decimals:18},rpcUrls:{default:{http:["https://dustboy-rpc.jibl2.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://dustboy.jibl2.com",apiUrl:"https://dustboy.jibl2.com/api"}},contracts:{multicall3:{address:"0xFFD34aa2C62B2D52E00A361e466C229788f4eD6a",blockCreated:526569}},testnet:!1}),P7=p({id:1100,name:"Dymension",nativeCurrency:{name:"DYM",symbol:"DYM",decimals:18},rpcUrls:{default:{http:["https://dymension-evm-rpc.publicnode.com"],webSocket:["wss://dymension-evm-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Dym FYI",url:"https://dym.fyi"}},testnet:!1}),I7=p({id:5424,name:"edeXa",nativeCurrency:{name:"edeXa",symbol:"EDX",decimals:18},rpcUrls:{default:{http:["https://rpc.edexa.network"]}},blockExplorers:{default:{name:"edeXa Explorer",url:"https://explorer.edexa.network",apiUrl:"https://explorer.edexa.network/api/v2"}}}),B7=p({id:1995,name:"edeXa Testnet",nativeCurrency:{name:"edeXa",symbol:"tEDX",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.edexa.network"]}},blockExplorers:{default:{name:"edeXa Testnet Explorer",url:"https://explorer.testnet.edexa.network",apiUrl:"https://explorer.testnet.edexa.network/api/v2"}},testnet:!0}),F7=p({id:2026,name:"Edgeless Network",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://rpc.edgeless.network/http"],webSocket:["wss://rpc.edgeless.network/ws"]}},blockExplorers:{default:{name:"Edgeless Explorer",url:"https://explorer.edgeless.network"}}}),U7=p({id:202,name:"Edgeless Testnet",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://edgeless-testnet.rpc.caldera.xyz/http"],webSocket:["wss://edgeless-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Edgeless Testnet Explorer",url:"https://testnet.explorer.edgeless.network"}}}),O7=p({id:2021,name:"Edgeware EdgeEVM Mainnet",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",apiUrl:"https://edgscan.live/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}}),_7=p({id:2022,name:"Beresheet BereEVM Testnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",apiUrl:"https://testnet.edgscan.live/api"}}}),D7=p({id:41923,name:"EDU Chain",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.edu-chain.raas.gelato.cloud"]}},blockExplorers:{default:{name:"EDU Chain Explorer",url:"https://educhain.blockscout.com/"}},testnet:!1}),M7=p({id:656476,name:"EDU Chain Testnet",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.open-campus-codex.gelato.digital/"],webSocket:["wss://ws.open-campus-codex.gelato.digital"]}},blockExplorers:{default:{name:"EDU Chain Testnet Explorer",url:"https://opencampus-codex.blockscout.com",apiUrl:"https://opencampus-codex.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:15514133}},testnet:!0}),N7=p({id:1994,name:"Ekta",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{default:{http:["https://main.ekta.io"]}},blockExplorers:{default:{name:"Ektascan",url:"https://ektascan.io",apiUrl:"https://ektascan.io/api"}}}),L7=p({id:1004,name:"Ekta Testnet",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{default:{http:["https://test.ekta.io:8545"]}},blockExplorers:{default:{name:"Test Ektascan",url:"https://test.ektascan.io",apiUrl:"https://test.ektascan.io/api"}},testnet:!0}),z7=p({id:20,name:"Elastos Smart Chain",nativeCurrency:{name:"ELA",symbol:"ELA",decimals:18},rpcUrls:{default:{http:["https://api2.elastos.io/eth"]}},blockExplorers:{default:{name:"Elastos Explorer",url:"https://esc.elastos.io"}},testnet:!1}),R7=p({id:21,name:"Elastos Smart Chain Testnet",nativeCurrency:{name:"tELA",symbol:"tELA",decimals:18},rpcUrls:{default:{http:["https://api-testnet.elastos.io/eth"]}},blockExplorers:{default:{name:"Elastos Explorer",url:"https://esc-testnet.elastos.io"}},testnet:!0}),H7=p({id:52014,name:"Electroneum Mainnet",nativeCurrency:{name:"ETN",symbol:"ETN",decimals:18},rpcUrls:{default:{http:["https://rpc.electroneum.com"]}},blockExplorers:{default:{name:"Electroneum Block Explorer",url:"https://blockexplorer.electroneum.com"}},testnet:!1}),$7=p({id:5201420,name:"Electroneum Testnet",nativeCurrency:{name:"ETN",symbol:"ETN",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.electroneum.com"]}},blockExplorers:{default:{name:"Electroneum Block Explorer",url:"https://blockexplorer.thesecurityteam.rocks"}},testnet:!0}),G7=p({...V,id:1338,name:"Elysium Testnet",nativeCurrency:{decimals:18,name:"LAVA",symbol:"LAVA"},rpcUrls:{default:{http:["https://elysium-test-rpc.vulcanforged.com"]}},blockExplorers:{default:{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com"}},testnet:!0}),j7=p({id:246,name:"Energy Mainnet",nativeCurrency:{name:"EWT",symbol:"EWT",decimals:18},rpcUrls:{default:{http:["https://rpc.energyweb.org"]}},blockExplorers:{default:{name:"EnergyWeb Explorer",url:"https://explorer.energyweb.org"}},testnet:!1}),V7=p({id:173,name:"ENI Mainnet",nativeCurrency:{decimals:18,name:"ENI",symbol:"ENI"},rpcUrls:{default:{http:["https://rpc.eniac.network"]}},blockExplorers:{default:{name:"ENI Explorer",url:"https://scan.eniac.network"}},testnet:!1}),W7=p({id:6912115,name:"ENI Testnet",nativeCurrency:{decimals:18,name:"ENI Testnet Token",symbol:"ENI"},rpcUrls:{default:{http:["https://rpc-testnet.eniac.network"]}},blockExplorers:{default:{name:"ENI Testnet Explorer",url:"https://scan-testnet.eniac.network"}},testnet:!0}),q7=p({id:119,name:"ENULS Mainnet",nativeCurrency:{decimals:18,name:"NULS",symbol:"NULS"},rpcUrls:{default:{http:["https://evmapi2.nuls.io"]}},blockExplorers:{default:{name:"ENULS Explorer",url:"https://evmscan.nuls.io"}},testnet:!1}),Y7=p({id:7332,name:"Horizen EON",nativeCurrency:{decimals:18,name:"ZEN",symbol:"ZEN"},rpcUrls:{default:{http:["https://eon-rpc.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"EON Explorer",url:"https://eon-explorer.horizenlabs.io"}},contracts:{}}),K7=p({id:17777,name:"EOS EVM",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com",apiUrl:"https://explorer.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}}),Z7=p({id:15557,name:"EOS EVM Testnet",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com",apiUrl:"https://explorer.testnet.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0}),X7=p({id:140,name:"Eteria",nativeCurrency:{name:"Eteria",symbol:"ERA",decimals:18},rpcUrls:{default:{http:["https://mainnet.eteria.io/v1"]}},blockExplorers:{default:{name:"Eteria Explorer",url:"https://explorer.eteria.io",apiUrl:"https://explorer.eteria.io/api"}}}),Q7=p({id:42793,name:"Etherlink",blockTime:4830,nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.mainnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink",url:"https://explorer.etherlink.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:33899}}}),J7=p({id:127823,name:"Etherlink Shadownet Testnet",nativeCurrency:{decimals:18,name:"tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.shadownet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Shadownet Testnet Explorer",url:"https://shadownet.explorer.etherlink.com"}},testnet:!0}),eC=p({id:128123,name:"Etherlink Testnet",nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.ghostnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Testnet",url:"https://testnet.explorer.etherlink.com"}},testnet:!0}),tC=p({id:183,name:"Ethernity",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.ethernitychain.io"]}},blockExplorers:{default:{name:"Ethernity Explorer",url:"https://ernscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1}),rC=p({id:20256789,name:"ETP Mainnet",nativeCurrency:{decimals:18,name:"ETP Chain Native Token",symbol:"ETP"},rpcUrls:{default:{http:["https://rpc.etpscan.xyz"]}},blockExplorers:{default:{name:"ETP Scan",url:"https://etpscan.xyz"}}}),nC=p({id:9001,name:"Evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}}),sC=p({id:9e3,name:"Evmos Testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}}}),aC=p({id:22052002,name:"Excelon Mainnet",network:"XLON",nativeCurrency:{decimals:18,name:"Excelon",symbol:"xlon"},rpcUrls:{default:{http:["https://edgewallet1.xlon.org"]}},blockExplorers:{default:{name:"Excelon explorer",url:"https://explorer.excelon.io"}}}),oC=p({id:2,name:"Expanse Network",nativeCurrency:{decimals:18,name:"EXP",symbol:"EXP"},rpcUrls:{default:{http:["https://node.expanse.tech"]}},blockExplorers:{default:{name:"Expanse Explorer",url:"https://explorer.expanse.tech"}},testnet:!1}),iC=p({id:7200,name:"exSat Network",nativeCurrency:{decimals:18,name:"BTC",symbol:"BTC"},rpcUrls:{default:{http:["https://evm.exsat.network"]}},blockExplorers:{default:{name:"exSat Explorer",url:"https://scan.exsat.network",apiUrl:"https://scan.exsat.network/api"}}}),cC=p({id:839999,name:"exSat Testnet",nativeCurrency:{decimals:18,name:"BTC",symbol:"BTC"},rpcUrls:{default:{http:["https://evm-tst3.exsat.network"]}},blockExplorers:{default:{name:"exSat Explorer",url:"https://scan-testnet.exsat.network",apiUrl:"https://scan-testnet.exsat.network/api"}}}),lC=p({id:250,name:"Fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://250.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"FTMScan",url:"https://ftmscan.com",apiUrl:"https://api.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}}),uC=p({id:64240,name:"Fantom Sonic Open Testnet",network:"fantom-sonic-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpcapi.sonic.fantom.network"]}},blockExplorers:{default:{name:"Fantom Sonic Open Testnet Explorer",url:"https://public-sonic.fantom.network"}},testnet:!0}),dC=p({id:4002,name:"Fantom Testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{default:{name:"FTMScan",url:"https://testnet.ftmscan.com",apiUrl:"https://testnet.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}},testnet:!0}),pC=p({id:12306,name:"Fibo Chain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}}),fC=p({id:314,name:"Filecoin Mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328594}}}),hC=p({id:314159,name:"Filecoin Calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}},testnet:!0}),mC=p({id:3141,name:"Filecoin Hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"}},testnet:!0}),bC=p({id:253368190,name:"Flame",network:"flame",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.flame.astria.org"],webSocket:["wss://ws.flame.astria.org"]}},blockExplorers:{default:{name:"Flame Explorer",url:"https://explorer.flame.astria.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6829148}}}),yC=p({id:14,name:"Flare Mainnet",nativeCurrency:{decimals:18,name:"Flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network",apiUrl:"https://flare-explorer.flare.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3002461}}}),gC=p({id:114,name:"Flare Testnet Coston2",nativeCurrency:{decimals:18,name:"Coston2 Flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network",apiUrl:"https://coston2-explorer.flare.network/api"}},testnet:!0}),xC=p({id:747,name:"Flow EVM Mainnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://mainnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Mainnet Explorer",url:"https://evm.flowscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6205}},blockTime:800}),wC=p({id:646,name:"Flow EVM Previewnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://previewnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Previewnet Explorer",url:"https://previewnet.flowdiver.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6205}}}),vC=p({id:545,name:"Flow EVM Testnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://testnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Flow Diver",url:"https://evm-testnet.flowscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:137518}},testnet:!0,blockTime:800}),EC=p({id:9999999,name:"Fluence",nativeCurrency:{name:"FLT",symbol:"FLT",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.fluence.dev"],webSocket:["wss://ws.mainnet.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.mainnet.fluence.dev",apiUrl:"https://blockscout.mainnet.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:207583}}}),kC=p({id:123420000220,name:"Fluence Stage",nativeCurrency:{name:"tFLT",symbol:"tFLT",decimals:18},rpcUrls:{default:{http:["https://rpc.stage.fluence.dev"],webSocket:["wss://ws.stage.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.stage.fluence.dev",apiUrl:"https://blockscout.stage.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83227}},testnet:!0}),CC=p({id:52164803,name:"Fluence Testnet",nativeCurrency:{name:"tFLT",symbol:"tFLT",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.fluence.dev"],webSocket:["wss://ws.testnet.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.testnet.fluence.dev",apiUrl:"https://blockscout.testnet.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96424}},testnet:!0}),TC=p({id:20993,name:"Fluent Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.dev.gblend.xyz"]}},blockExplorers:{default:{name:"Fluent Explorer",url:"https://blockscout.dev.gblend.xyz"}},testnet:!0}),Ma=1,SC=p({id:478,name:"Form Network",nativeCurrency:{decimals:18,name:"Ethereum",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.form.network/http"],webSocket:["wss://rpc.form.network/ws"]}},blockExplorers:{default:{name:"Form Explorer",url:"https://explorer.form.network"}},contracts:{...V.contracts,addressManager:{[Ma]:{address:"0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B"}},l1CrossDomainMessenger:{[Ma]:{address:"0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c"}},l2OutputOracle:{[Ma]:{address:"0x4ccAAF69F41c5810cA875183648B577CaCf1F67E"}},portal:{[Ma]:{address:"0x4E259Ee5F4136408908160dD32295A5031Fa426F"}},l1StandardBridge:{[Ma]:{address:"0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:Ma}),AC=p({id:984122,name:"Forma",network:"forma",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.forma.art"],webSocket:["wss://ws.forma.art"]}},blockExplorers:{default:{name:"Forma Explorer",url:"https://explorer.forma.art"}},contracts:{multicall3:{address:"0xd53C6FFB123F7349A32980F87faeD8FfDc9ef079",blockCreated:252705}}}),Na=11155111,PC=p({id:132902,name:"Form Testnet",nativeCurrency:{decimals:18,name:"Ethereum",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia-rpc.form.network/http"],webSocket:["wss://sepolia-rpc.form.network/ws"]}},blockExplorers:{default:{name:"Form Testnet Explorer",url:"https://sepolia-explorer.form.network"}},contracts:{...V.contracts,addressManager:{[Na]:{address:"0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373"}},l1CrossDomainMessenger:{[Na]:{address:"0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa"}},l2OutputOracle:{[Na]:{address:"0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2"}},portal:{[Na]:{address:"0x60377e3cE15dF4CCA24c4beF076b60314240b032"}},l1StandardBridge:{[Na]:{address:"0xD4531f633942b2725896F47cD2aFd260b44Ab1F7"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0,sourceId:Na}),IC=p({id:80931,name:"Forta Chain",nativeCurrency:{symbol:"FORT",name:"FORT",decimals:18},rpcUrls:{default:{http:["https://rpc-forta-chain-8gj1qndmfc.t.conduit.xyz"]}},blockExplorers:{default:{name:"Forta Explorer",url:"https://explorer.forta.org"}}}),BC=p({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"]}}}),Qc=1,FC=p({...V,id:252,name:"Fraxtal",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.frax.com"]}},blockExplorers:{default:{name:"fraxscan",url:"https://fraxscan.com",apiUrl:"https://api.fraxscan.com/api"}},contracts:{...V.contracts,l2OutputOracle:{[Qc]:{address:"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Qc]:{address:"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D",blockCreated:19135323}},l1StandardBridge:{[Qc]:{address:"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2",blockCreated:19135323}}},sourceId:Qc}),Jc=17e3,UC=p({...V,id:2522,name:"Fraxtal Testnet",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.frax.com"]}},blockExplorers:{default:{name:"fraxscan testnet",url:"https://holesky.fraxscan.com",apiUrl:"https://api-holesky.fraxscan.com/api"}},contracts:{...V.contracts,l2OutputOracle:{[Jc]:{address:"0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Jc]:{address:"0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d",blockCreated:318416}},l1StandardBridge:{[Jc]:{address:"0x0BaafC217162f64930909aD9f2B27125121d6332",blockCreated:318416}}},sourceId:Jc}),OC=p({...V,id:33979,name:"Funki",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.funkichain.com"]}},blockExplorers:{default:{name:"Funki Mainnet Explorer",url:"https://funkiscan.io"}},contracts:{...V.contracts},sourceId:1}),_C=p({...V,id:3397901,network:"funkiSepolia",name:"Funki Sepolia Sandbox",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://funki-testnet.alt.technology"]}},blockExplorers:{default:{name:"Funki Sepolia Sandbox Explorer",url:"https://sepolia-sandbox.funkichain.com/"}},testnet:!0,contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},sourceId:11155111}),DC=p({id:122,name:"Fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io",apiUrl:"https://explorer.fuse.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:16146628}}}),MC=p({id:123,name:"Fuse Sparknet",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io",apiUrl:"https://explorer.fusespark.io/api"}}}),NC=p({id:32659,name:"Fusion Mainnet",nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},rpcUrls:{default:{http:["https://mainnet.fusionnetwork.io"],webSocket:["wss://mainnet.fusionnetwork.io"]}},blockExplorers:{default:{name:"FSNscan",url:"https://fsnscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10441605}},testnet:!1}),LC=p({id:46688,name:"Fusion Testnet",nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},rpcUrls:{default:{http:["https://testnet.fusionnetwork.io"],webSocket:["wss://testnet.fusionnetwork.io"]}},blockExplorers:{default:{name:"FSNscan",url:"https://testnet.fsnscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10428309}},testnet:!0}),el=17e3,zC=p({...V,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:el,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:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[el]:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{[el]:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{[el]:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}}),RC=p({id:86,name:"GateChain Mainnet",nativeCurrency:{name:"GateChainToken",symbol:"GT",decimals:18},rpcUrls:{default:{http:["https://evm.nodeinfo.cc"],webSocket:["wss://evm-ws.gatenode.cc"]}},blockExplorers:{default:{name:"Gate Scan",url:"https://www.gatescan.org",apiUrl:"https://gatescan.org/api"}},testnet:!1}),HC=p({id:63157,name:"Geist Mainnet",nativeCurrency:{decimals:18,name:"Aavegotchi GHST Token",symbol:"GHST"},rpcUrls:{default:{http:["https://geist-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://geist-mainnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:660735}}}),$C=p({id:16507,name:"Genesys Mainnet",nativeCurrency:{decimals:18,name:"GSYS",symbol:"GSYS"},rpcUrls:{default:{http:["https://rpc.genesys.network"]}},blockExplorers:{default:{name:"Genesys Explorer",url:"https://gchainexplorer.genesys.network"}},testnet:!1}),tl=11155111,bb=p({...V,id:91342,network:"giwa-sepolia",name:"GIWA Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://sepolia-rpc.giwa.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-explorer.giwa.io",apiUrl:"https://sepolia-explorer.giwa.io/api"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{[tl]:{address:"0x37347caB2afaa49B776372279143D71ad1f354F6"}},portal:{[tl]:{address:"0x956962C34687A954e611A83619ABaA37Ce6bC78A"}},l1StandardBridge:{[tl]:{address:"0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7"}}},testnet:!0,sourceId:tl}),GC=p({...bb,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-rpc-flashblocks.giwa.io"]}}}),jC=p({id:251,name:"Glide L1 Protocol XP",nativeCurrency:{name:"GLXP",symbol:"GLXP",decimals:18},rpcUrls:{default:{http:["https://rpc-api.glideprotocol.xyz/l1-rpc"],webSocket:["wss://rpc-api.glideprotocol.xyz/l1-rpc"]}},blockExplorers:{default:{name:"Glide Protocol Explore",url:"https://blockchain-explorer.glideprotocol.xyz"}},testnet:!1}),VC=p({id:253,name:"Glide L2 Protocol XP",nativeCurrency:{name:"GLXP",symbol:"GLXP",decimals:18},rpcUrls:{default:{http:["https://rpc-api.glideprotocol.xyz/l2-rpc"],webSocket:["wss://rpc-api.glideprotocol.xyz/l2-rpc"]}},blockExplorers:{default:{name:"Glide Protocol Explore",url:"https://blockchain-explorer.glideprotocol.xyz"}},testnet:!1}),WC=p({id:100,name:"Gnosis",nativeCurrency:{decimals:18,name:"xDAI",symbol:"XDAI"},blockTime:5e3,rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io",apiUrl:"https://api.gnosisscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),qC=p({id:10200,name:"Gnosis Chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},blockTime:5e3,rpcUrls:{default:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net",apiUrl:"https://blockscout.chiadochain.net/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4967313}},testnet:!0}),YC=p({id:2345,name:"GOAT",nativeCurrency:{decimals:18,name:"Bitcoin",symbol:"BTC"},rpcUrls:{default:{http:["https://rpc.goat.network"]}},blockExplorers:{default:{name:"Goat Explorer",url:"https://explorer.goat.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),KC=p({id:1663,name:"Horizen Gobi Testnet",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0}),ZC=p({id:60,name:"GoChain",nativeCurrency:{decimals:18,name:"GO",symbol:"GO"},rpcUrls:{default:{http:["https://rpc.gochain.io"]}},blockExplorers:{default:{name:"GoChain Explorer",url:"https://explorer.gochain.io"}},testnet:!1}),XC=p({id:71402,name:"Godwoken Mainnet",nativeCurrency:{decimals:18,name:"pCKB",symbol:"pCKB"},rpcUrls:{default:{http:["https://v1.mainnet.godwoken.io/rpc"]}},blockExplorers:{default:{name:"GW Scan",url:"https://v1.gwscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:15034}},testnet:!1}),QC=p({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://5.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),JC=p({id:440017,name:"Graphite Network",nativeCurrency:{name:"Graphite",symbol:"@G",decimals:18},rpcUrls:{default:{http:["https://anon-entrypoint-1.atgraphite.com"],webSocket:["wss://ws-anon-entrypoint-1.atgraphite.com"]}},blockExplorers:{default:{name:"Graphite Spectre",url:"https://main.atgraphite.com",apiUrl:"https://api.main.atgraphite.com/api"}},testnet:!1}),e9=p({id:54170,name:"Graphite Network Testnet",nativeCurrency:{name:"Graphite",symbol:"@G",decimals:18},rpcUrls:{default:{http:["https://anon-entrypoint-test-1.atgraphite.com"],webSocket:["wss://ws-anon-entrypoint-test-1.atgraphite.com"]}},blockExplorers:{default:{name:"Graphite Testnet Spectre",url:"https://test.atgraphite.com",apiUrl:"https://api.test.atgraphite.com/api"}},testnet:!0}),t9=p({id:1625,name:"Gravity Alpha Mainnet",nativeCurrency:{name:"G",symbol:"G",decimals:18},rpcUrls:{default:{http:["https://rpc.gravity.xyz"]}},blockExplorers:{default:{name:"Gravity Explorer",url:"https://explorer.gravity.xyz",apiUrl:"https://explorer.gravity.xyz/api"}},contracts:{multicall3:{address:"0xf8ac4BEB2F75d2cFFb588c63251347fdD629B92c",blockCreated:16851}}}),r9=p({id:43419,name:"Gunz Mainnet",nativeCurrency:{name:"GUN",symbol:"GUN",decimals:18},rpcUrls:{default:{http:["https://rpc.gunzchain.io/ext/bc/2M47TxWHGnhNtq6pM5zPXdATBtuqubxn5EPFgFmEawCQr9WFML/rpc"]}},blockExplorers:{default:{name:"Gunz Explorer",url:"https://gunzscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:70502}}}),n9=p({id:260,name:"Guru Network Mainnet",nativeCurrency:{name:"GURU Token",symbol:"GURU",decimals:18},rpcUrls:{default:{http:["https://rpc-main.gurunetwork.ai","https://rpc.gurunetwork.ai/archive/260"]}},blockExplorers:{default:{name:"Guruscan",url:"https://scan.gurunetwork.ai"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:271691}},testnet:!1}),s9=p({id:261,name:"Guru Network Testnet",nativeCurrency:{name:"tGURU Token",symbol:"tGURU",decimals:18},rpcUrls:{default:{http:["https://rpc-test.gurunetwork.ai","https://rpc.gurunetwork.ai/archive/261"]}},blockExplorers:{default:{name:"Guruscan",url:"https://sepolia.gurunetwork.ai"}},testnet:!0}),a9=p({id:5112,name:"Ham",nativeCurrency:{decimals:18,name:"Ham",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.ham.fun"],webSocket:["wss://rpc.ham.fun"]}},blockExplorers:{default:{name:"Ham Chain Explorer",url:"https://explorer.ham.fun",apiUrl:"https://explorer.ham.fun/api/v2"}}}),o9=p({id:216,name:"Happychain Testnet",nativeCurrency:{symbol:"HAPPY",name:"HAPPY",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.happy.tech/http"],webSocket:["wss://rpc.testnet.happy.tech/ws"]}},blockExplorers:{default:{name:"Happy Chain Testnet Explorer",url:"https://explorer.testnet.happy.tech"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0}),i9=p({id:11235,name:"HAQQ Mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network",apiUrl:"https://explorer.haqq.network/api"}}}),c9=p({id:54211,name:"HAQQ Testedge 2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",apiUrl:"https://explorer.testedge2.haqq.network/api"}}}),l9=p({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),u9=p({id:16666e5,name:"Harmony One",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{default:{http:["https://1666600000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}}),d9=p({id:177,name:"HashKey Chain",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://mainnet.hsk.xyz"]}},blockExplorers:{default:{name:"HashKey Chain Explorer",url:"https://hashkey.blockscout.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),p9=p({id:133,name:"HashKey Chain Testnet",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://testnet.hsk.xyz"]}},blockExplorers:{default:{name:"HashKey Chain Testnet explorer",url:"https://testnet-explorer.hsk.xyz"}},testnet:!0}),f9=p({id:1523903251,name:"Haust Network Testnet",nativeCurrency:{decimals:18,name:"HAUST",symbol:"HAUST"},rpcUrls:{default:{http:["https://rpc-testnet.haust.app"]}},blockExplorers:{default:{name:"Haust Network Testnet Explorer",url:"https://explorer-testnet.haust.app"}},testnet:!0}),h9=p({id:295,name:"Hedera Mainnet",network:"hedera-mainnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://mainnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/mainnet"}},testnet:!1}),m9=p({id:297,name:"Hedera Previewnet",network:"hedera-previewnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://previewnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/previewnet"}},testnet:!0}),b9=p({id:296,name:"Hedera Testnet",network:"hedera-testnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://testnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/testnet"}},testnet:!0}),y9=p({id:8668,name:"Hela Mainnet",nativeCurrency:{name:"HLUSD",symbol:"HLUSD",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.helachain.com"]}},blockExplorers:{default:{name:"Hela explorer",url:"https://mainnet-blockexplorer.helachain.com"}},testnet:!1}),g9=p({id:42e3,name:"Helios Testnet",network:"helios-testnet",nativeCurrency:{symbol:"HLS",name:"Helios",decimals:18},rpcUrls:{default:{http:["https://testnet1.helioschainlabs.org"]}},blockExplorers:{default:{name:"Helios Testnet Explorer",url:"https://explorer.helioschainlabs.org/"}},testnet:!0}),x9=p({id:43111,name:"Hemi",network:"Hemi",blockTime:12e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hemi.network/rpc"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.hemi.xyz"}},testnet:!1}),w9=p({id:743111,name:"Hemi Sepolia",network:"Hemi Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.rpc.hemi.network/rpc"]}},blockExplorers:{default:{name:"Hemi Sepolia explorer",url:"https://testnet.explorer.hemi.xyz"}},testnet:!0}),v9=p({id:68414,name:"Henesys",nativeCurrency:{name:"NEXPACE",symbol:"NXPC",decimals:18},rpcUrls:{default:{http:["https://henesys-rpc.msu.io"]}},blockExplorers:{default:{name:"Avalanche Explorer",url:"https://subnets.avax.network/henesys"}}}),E9=p({id:17e3,name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://holesky.etherscan.io",apiUrl:"https://api-holesky.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:4295055}},testnet:!0}),k9=p({id:560048,name:"Hoodi",nativeCurrency:{name:"Hoodi Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hoodi.ethpandaops.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://hoodi.etherscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2589}},testnet:!0}),C9=p({id:269,name:"High Performance Blockchain",nativeCurrency:{name:"HPB",symbol:"HPB",decimals:18},rpcUrls:{default:{http:["https://hpbnode.com"]}},blockExplorers:{default:{name:"hpbScan",url:"https://hscan.org"}},testnet:!1}),T9=p({id:190415,name:"HPP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.hpp.io"],webSocket:["wss://mainnet.hpp.io"]}},blockExplorers:{default:{name:"HPP Mainnet Explorer",url:"https://explorer.hpp.io"}},testnet:!1}),S9=p({id:181228,name:"HPP Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.hpp.io"],webSocket:["wss://testnet.hpp.io"]}},blockExplorers:{default:{name:"HPP Sepolia Explorer",url:"https://sepolia-explorer.hpp.io"}},testnet:!0}),A9=p({id:12323,name:"Huddle01 dRTC Chain",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://huddle01.calderachain.xyz/http"],webSocket:["wss://huddle01.calderachain.xyz/ws"]}},blockExplorers:{default:{name:"Huddle01 Caldera Explorer",url:"https://huddle01.calderaexplorer.xyz",apiUrl:"https://huddle01.calderaexplorer.xyz/api"}},sourceId:42161}),P9=p({id:2524852,name:"Huddle01 dRTC Chain Testnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://huddle-testnet.rpc.caldera.xyz/http"],webSocket:["wss://huddle-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Huddle01 Caldera Explorer",url:"https://huddle-testnet.explorer.caldera.xyz",apiUrl:"https://huddle-testnet.explorer.caldera.xyz/api"}},sourceId:421614}),I9=p({id:6985385,name:"Humanity",nativeCurrency:{name:"H",symbol:"H",decimals:18},rpcUrls:{default:{http:["https://humanity-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Humanity Mainnet Explorer",url:"https://humanity-mainnet.explorer.alchemy.com",apiUrl:"https://humanity-mainnet.explorer.alchemy.com/api"}},testnet:!1}),B9=p({id:7080969,name:"Humanity Testnet",nativeCurrency:{name:"tHP",symbol:"tHP",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.humanity.org"]}},blockExplorers:{default:{name:"Humanity Testnet Explorer",url:"https://humanity-testnet.explorer.alchemy.com",apiUrl:"https://humanity-testnet.explorer.alchemy.com/api"}},testnet:!0}),F9=p({id:5234,name:"Humanode",nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},rpcUrls:{default:{http:["https://explorer-rpc-http.mainnet.stages.humanode.io"],webSocket:["wss://explorer-rpc-ws.mainnet.stages.humanode.io"]}},blockExplorers:{default:{name:"Subscan",url:"https://humanode.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4413097}}}),U9=p({id:14853,name:"Humanode Testnet 5",nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},rpcUrls:{default:{http:["https://explorer-rpc-http.testnet5.stages.humanode.io"],webSocket:["wss://explorer-rpc-ws.testnet5.stages.humanode.io"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),O9=p({id:2911,name:"HYCHAIN",nativeCurrency:{name:"HYTOPIA",symbol:"TOPIA",decimals:18},rpcUrls:{default:{http:["https://rpc.hychain.com/http"]}},blockExplorers:{default:{name:"HYCHAIN Explorer",url:"https://explorer.hychain.com"}},testnet:!1}),_9=p({id:29112,name:"HYCHAIN Testnet",nativeCurrency:{name:"HYTOPIA",symbol:"TOPIA",decimals:18},rpcUrls:{default:{http:["https://rpc.hychain.com/http"]}},blockExplorers:{default:{name:"HYCHAIN Explorer",url:"https://testnet-rpc.hychain.com/http"}},testnet:!0}),yb=p({id:999,name:"HyperEVM",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},blockExplorers:{default:{name:"HyperEVMScan",url:"https://hyperevmscan.io"}},rpcUrls:{default:{http:["https://rpc.hyperliquid.xyz/evm"]}},testnet:!1}),D9=p({id:998,name:"Hyperliquid EVM Testnet",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},rpcUrls:{default:{http:["https://rpc.hyperliquid-testnet.xyz/evm"]}},testnet:!0}),M9=p({id:73115,name:"ICB Network",nativeCurrency:{decimals:18,name:"ICB Native Token",symbol:"ICBX"},rpcUrls:{default:{http:["https://rpc1-mainnet.icbnetwork.info"]}},blockExplorers:{default:{name:"ICB Explorer",url:"https://icbscan.io",apiUrl:"https://icbscan.io/api"}},testnet:!1}),N9=p({id:74,name:"IDChain Mainnet",nativeCurrency:{decimals:18,name:"EIDI",symbol:"EIDI"},rpcUrls:{default:{http:["https://idchain.one/rpc"],webSocket:["wss://idchain.one/ws"]}},blockExplorers:{default:{name:"IDChain Explorer",url:"https://explorer.idchain.one"}},testnet:!1}),L9=p({id:13371,name:"Immutable zkEVM",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.immutable.com"]}},blockExplorers:{default:{name:"Immutable Explorer",url:"https://explorer.immutable.com",apiUrl:"https://explorer.immutable.com/api"}},contracts:{multicall3:{address:"0x236bdA4589e44e6850f5aC6a74BfCa398a86c6c0",blockCreated:4335972}}}),z9=p({id:13473,name:"Immutable zkEVM Testnet",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.testnet.immutable.com"]}},blockExplorers:{default:{name:"Immutable Testnet Explorer",url:"https://explorer.testnet.immutable.com/"}},contracts:{multicall3:{address:"0x2CC787Ed364600B0222361C4188308Fa8E68bA60",blockCreated:5977391}},testnet:!0}),R9=p({id:2525,name:"inEVM Mainnet",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://mainnet.rpc.inevm.com/http"]}},blockExplorers:{default:{name:"inEVM Explorer",url:"https://inevm.calderaexplorer.xyz",apiUrl:"https://inevm.calderaexplorer.xyz/api/v2"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:118606}}}),H9=p({id:7233,name:"InitVerse Mainnet",nativeCurrency:{decimals:18,name:"InitVerse",symbol:"INI"},rpcUrls:{default:{http:["https://rpc-mainnet.inichain.com"]}},blockExplorers:{default:{name:"InitVerseScan",url:"https://www.iniscan.com",apiUrl:"https://explorer-api.inichain.com/api"}},contracts:{multicall3:{address:"0x83466BE48A067115FFF91f7b892Ed1726d032e47",blockCreated:2318}}}),$9=p({id:7234,name:"InitVerse Genesis Testnet",nativeCurrency:{decimals:18,name:"InitVerse",symbol:"INI"},rpcUrls:{default:{http:["https://rpc-testnet.inichain.com"]}},blockExplorers:{default:{name:"InitVerseGenesisScan",url:"https://genesis-testnet.iniscan.com",apiUrl:"https://explorer-testnet-api.inichain.com/api"}},contracts:{multicall3:{address:"0x0cF32CBDd6c437331EA4f85ed2d881A5379B5a6F",blockCreated:16361}},testnet:!0}),G9=p({id:1776,name:"Injective",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://sentry.evm-rpc.injective.network"],webSocket:["wss://sentry.evm-ws.injective.network"]}},blockExplorers:{default:{name:"Injective Explorer",url:"https://blockscout.injective.network",apiUrl:"https://blockscout.injective.network/api"}},testnet:!1}),j9=p({id:1439,name:"Injective Testnet",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://k8s.testnet.json-rpc.injective.network"],webSocket:["wss://k8s.testnet.ws.injective.network"]}},blockExplorers:{default:{name:"Injective Explorer",url:"https://testnet.blockscout.injective.network",apiUrl:"https://testnet.blockscout.injective.network/api"}},testnet:!0}),rl=1,V9=p({...V,id:57073,name:"Ink",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel.inkonchain.com","https://rpc-qnd.inkonchain.com"],webSocket:["wss://rpc-gel.inkonchain.com","wss://rpc-qnd.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.inkonchain.com",apiUrl:"https://explorer.inkonchain.com/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},...V.contracts,disputeGameFactory:{[rl]:{address:"0x10d7b35078d3baabb96dd45a9143b94be65b12cd"}},portal:{[rl]:{address:"0x5d66c1782664115999c47c9fa5cd031f495d3e4f"}},l1StandardBridge:{[rl]:{address:"0x88ff1e5b602916615391f55854588efcbb7663f0"}}},testnet:!1,sourceId:rl}),nl=11155111,W9=p({...V,id:763373,name:"Ink Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel-sepolia.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer-sepolia.inkonchain.com/",apiUrl:"https://explorer-sepolia.inkonchain.com/api/v2"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{[nl]:{address:"0x860e626c700af381133d9f4af31412a2d1db3d5d"}},portal:{[nl]:{address:"0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7"}},l1StandardBridge:{[nl]:{address:"0x33f60714bbd74d62b66d79213c348614de51901c"}}},testnet:!0,sourceId:nl}),q9=p({id:8822,name:"IOTA EVM",network:"iotaevm",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://json-rpc.evm.iotaledger.net"],webSocket:["wss://ws.json-rpc.evm.iotaledger.net"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.evm.iota.org",apiUrl:"https://explorer.evm.iota.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:25022}}}),Y9=p({id:1075,name:"IOTA EVM Testnet",network:"iotaevm-testnet",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.iotaledger.net"],webSocket:["wss://ws.json-rpc.evm.testnet.iotaledger.net"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.evm.testnet.iotaledger.net",apiUrl:"https://explorer.evm.testnet.iotaledger.net/api"}},testnet:!0}),K9=p({id:4689,name:"IoTeX",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:22163670}}}),Z9=p({id:4690,name:"IoTeX Testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}},contracts:{multicall3:{address:"0xb5cecD6894c6f473Ec726A176f1512399A2e355d",blockCreated:24347592}},testnet:!0}),X9=p({id:8017,name:"iSunCoin Mainnet",nativeCurrency:{decimals:18,name:"ISC",symbol:"ISC"},rpcUrls:{default:{http:["https://mainnet.isuncoin.com"]}},blockExplorers:{default:{name:"iSunCoin Explorer",url:"https://baifa.io/app/chains/8017"}}}),Q9=p({id:680,name:"Jasmy Chain",network:"jasmyChain",nativeCurrency:{name:"JasmyCoin",symbol:"JASMY",decimals:18},rpcUrls:{default:{http:["https://rpc.jasmychain.io"],webSocket:["wss://rpc.jasmychain.io"]}},testnet:!1}),J9=p({id:681,name:"Jasmy Chain Testnet",network:"jasmyChainTestnet",nativeCurrency:{name:"JasmyCoin",symbol:"JASMY",decimals:18},rpcUrls:{default:{http:["https://rpc_testnet.jasmychain.io"],webSocket:["wss://rpc_testnet.jasmychain.io"]}},testnet:!0}),eT=p({id:8899,name:"JB Chain",network:"jbc",nativeCurrency:{name:"JBC",symbol:"JBC",decimals:18},rpcUrls:{default:{http:["https://rpc-l1.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-l1.jibchain.net",apiUrl:"https://exp-l1.jibchain.net/api"}},contracts:{multicall3:{address:"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC",blockCreated:2299048}},testnet:!1}),tT=p({id:88991,name:"Jibchain Testnet",nativeCurrency:{name:"tJBC",symbol:"tJBC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp.testnet.jibchain.net",apiUrl:"https://exp.testnet.jibchain.net/api"}},contracts:{multicall3:{address:"0xa1a858ad9041B4741e620355a3F96B3c78e70ecE",blockCreated:32848}},testnet:!0}),rT=p({id:81,name:"Japan Open Chain Mainnet",nativeCurrency:{decimals:18,name:"Japan Open Chain Token",symbol:"JOC"},rpcUrls:{default:{http:["https://rpc-1.japanopenchain.org:8545","https://rpc-2.japanopenchain.org:8545","https://rpc-3.japanopenchain.org"]}},blockExplorers:{default:{name:"Block Explorer",url:"https://explorer.japanopenchain.org"}},testnet:!1}),nT=p({id:10081,name:"Japan Open Chain Testnet",nativeCurrency:{decimals:18,name:"Japan Open Chain Testnet Token",symbol:"JOCT"},rpcUrls:{default:{http:["https://rpc-1.testnet.japanopenchain.org:8545","https://rpc-2.testnet.japanopenchain.org:8545","https://rpc-3.testnet.japanopenchain.org"]}},blockExplorers:{default:{name:"Testnet Block Explorer",url:"https://explorer.testnet.japanopenchain.org"}},testnet:!0}),sT=p({id:5734951,name:"Jovay Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.jovay.io"]}},blockExplorers:{default:{name:"Jovay Explorer",url:"https://explorer.jovay.io/l2"}},testnet:!1}),aT=p({id:2019775,name:"Jovay Sepolia Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://api.zan.top/public/jovay-testnet"]}},blockExplorers:{default:{name:"Jovay Testnet Explorer",url:"https://sepolia-explorer.jovay.io/l2"}},testnet:!0}),oT=p({id:45003,name:"Juneo JUNE-Chain",nativeCurrency:{decimals:18,name:"JUNE-Chain",symbol:"JUNE"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/JUNE/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/2",apiUrl:"https://juneoscan.io/chain/2/api"}}}),iT=p({id:45013,name:"Juneo BCH1-Chain",nativeCurrency:{decimals:18,name:"Juneo BCH1-Chain",symbol:"BCH1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/BCH1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/12",apiUrl:"https://juneoscan.io/chain/12/api"}}}),cT=p({id:45004,name:"Juneo DAI1-Chain",nativeCurrency:{decimals:18,name:"Juneo DAI1-Chain",symbol:"DAI1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/DAI1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/5",apiUrl:"https://juneoscan.io/chain/5/api"}}}),lT=p({id:45010,name:"Juneo DOGE1-Chain",nativeCurrency:{decimals:18,name:"Juneo DOGE1-Chain",symbol:"DOGE1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/DOGE1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/10",apiUrl:"https://juneoscan.io/chain/10/api"}}}),uT=p({id:45011,name:"Juneo EUR1-Chain",nativeCurrency:{decimals:18,name:"Juneo EUR1-Chain",symbol:"EUR1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/EUR1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/6",apiUrl:"https://juneoscan.io/chain/6/api"}}}),dT=p({id:45008,name:"Juneo GLD1-Chain",nativeCurrency:{decimals:18,name:"Juneo GLD1-Chain",symbol:"GLD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/GLD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/8",apiUrl:"https://juneoscan.io/chain/8/api"}}}),pT=p({id:45014,name:"Juneo LINK1-Chain",nativeCurrency:{decimals:18,name:"Juneo LINK1-Chain",symbol:"LINK1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/LINK1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/13",apiUrl:"https://juneoscan.io/chain/13/api"}}}),fT=p({id:45009,name:"Juneo LTC1-Chain",nativeCurrency:{decimals:18,name:"Juneo LTC1-Chain",symbol:"LTC1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/LTC1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/11",apiUrl:"https://juneoscan.io/chain/11/api"}}}),hT=p({id:45007,name:"Juneo mBTC1-Chain",nativeCurrency:{decimals:18,name:"Juneo mBTC1-Chain",symbol:"mBTC1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/mBTC1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/9",apiUrl:"https://juneoscan.io/chain/9/api"}}}),mT=p({id:45012,name:"Juneo SGD1-Chain",nativeCurrency:{decimals:18,name:"Juneo SGD1-Chain",symbol:"SGD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/SGD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/7",apiUrl:"https://juneoscan.io/chain/7/api"}}}),bT=p({id:101003,name:"Socotra JUNE-Chain",nativeCurrency:{decimals:18,name:"Socotra JUNE-Chain",symbol:"JUNE"},rpcUrls:{default:{http:["https://rpc.socotra-testnet.network/ext/bc/JUNE/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://socotra.juneoscan.io/chain/2",apiUrl:"https://socotra.juneoscan.io/chain/2/api"}},testnet:!0}),yT=p({id:45006,name:"Juneo USD1-Chain",nativeCurrency:{decimals:18,name:"Juneo USD1-Chain",symbol:"USD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/USD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/4",apiUrl:"https://juneoscan.io/chain/4/api"}}}),gT=p({id:45005,name:"Juneo USDT1-Chain",nativeCurrency:{decimals:18,name:"Juneo USDT1-Chain",symbol:"USDT1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/USDT1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/3",apiUrl:"https://juneoscan.io/chain/3/api"}}}),xT=p({id:8217,name:"Kaia",nativeCurrency:{decimals:18,name:"Kaia",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScan",url:"https://kaiascan.io",apiUrl:"https://api-cypress.klaytnscope.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),wT=p({id:1001,name:"Kairos Testnet",network:"kairos",nativeCurrency:{decimals:18,name:"Kairos KAIA",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en-kairos.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScan",url:"https://kairos.kaiascan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),vT=p({id:1802203764,name:"Kakarot Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0}),ET=p({id:920637907288165,name:"Kakarot Starknet Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0}),kT=p({id:24,name:"KardiaChain Mainnet",nativeCurrency:{name:"KAI",symbol:"KAI",decimals:18},rpcUrls:{default:{http:["https://rpc.kardiachain.io"]}},blockExplorers:{default:{name:"KardiaChain Explorer",url:"https://explorer.kardiachain.io"}},testnet:!1}),CT=p({id:686,name:"Karura",network:"karura",nativeCurrency:{name:"Karura",symbol:"KAR",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]}},blockExplorers:{default:{name:"Karura Blockscout",url:"https://blockscout.karura.network",apiUrl:"https://blockscout.karura.network/api"}},testnet:!1}),TT=p({id:747474,name:"Katana",network:"katana",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katana.network"]}},blockExplorers:{default:{name:"katana explorer",url:"https://katanascan.com"}},testnet:!1}),ST=p({id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com",apiUrl:"https://kavascan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1}),AT=p({id:2221,name:"Kava EVM Testnet",network:"kava-testnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.testnet.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Testnet Explorer",url:"https://testnet.kavascan.com/",apiUrl:"https://testnet.kavascan.com/api"}},contracts:{multicall3:{address:"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6",blockCreated:7242179}},testnet:!0}),PT=p({id:321,name:"KCC Mainnet",network:"KCC Mainnet",nativeCurrency:{decimals:18,name:"KCS",symbol:"KCS"},rpcUrls:{default:{http:["https://kcc-rpc.com"]}},blockExplorers:{default:{name:"KCC Explorer",url:"https://explorer.kcc.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11760430}},testnet:!1}),IT=p({id:1336,name:"Kii Testnet Oro",network:"kii-testnet-oro",nativeCurrency:{name:"Kii",symbol:"KII",decimals:18},rpcUrls:{default:{http:["https://json-rpc.uno.sentry.testnet.v3.kiivalidator.com"]}},blockExplorers:{default:{name:"KiiExplorer",url:"https://explorer.kiichain.io/testnet"}},testnet:!0}),BT=p({id:7887,name:"Kinto Mainnet",network:"Kinto Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.kinto.xyz/http"]}},blockExplorers:{default:{name:"Kinto Explorer",url:"https://explorer.kinto.xyz"}},testnet:!1}),FT=p({id:8217,name:"Klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-cypress.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),UT=p({id:1001,name:"Klaytn Baobab Testnet",network:"klaytn-baobab",nativeCurrency:{decimals:18,name:"Baobab Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-baobab.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),OT=p({id:701,name:"Koi Network",nativeCurrency:{decimals:18,name:"Koi Network Native Token",symbol:"KRING"},rpcUrls:{default:{http:["https://koi-rpc.darwinia.network"],webSocket:["wss://koi-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://koi-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:180001}},testnet:!0}),_T=p({id:255,name:"Kroma",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.kroma.network"]}},blockExplorers:{default:{name:"Kroma Explorer",url:"https://blockscout.kroma.network",apiUrl:"https://blockscout.kroma.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:16054868}},testnet:!1}),DT=p({id:2358,name:"Kroma Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.sepolia.kroma.network"]}},blockExplorers:{default:{name:"Kroma Sepolia Explorer",url:"https://blockscout.sepolia.kroma.network",apiUrl:"https://blockscout.sepolia.kroma.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:8900914}},testnet:!0}),MT=p({id:12324,name:"L3X Protocol",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.l3x.com"],webSocket:["wss://rpc-mainnet.l3x.com"]}},blockExplorers:{default:{name:"L3X Mainnet Explorer",url:"https://explorer.l3x.com",apiUrl:"https://explorer.l3x.com/api/v2"}},testnet:!1}),NT=p({id:12325,name:"L3X Protocol Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.l3x.com"],webSocket:["wss://rpc-testnet.l3x.com"]}},blockExplorers:{default:{name:"L3X Testnet Explorer",url:"https://explorer-testnet.l3x.com",apiUrl:"https://explorer-testnet.l3x.com/api/v2"}},testnet:!0}),LT=p({id:360890,name:"LAVITA Mainnet",nativeCurrency:{name:"vTFUEL",symbol:"vTFUEL",decimals:18},rpcUrls:{default:{http:["https://tsub360890-eth-rpc.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"LAVITA Explorer",url:"https://tsub360890-explorer.thetatoken.org"}},testnet:!1}),zT=p({id:232,name:"Lens",nativeCurrency:{name:"GHO",symbol:"GHO",decimals:18},rpcUrls:{default:{http:["https://rpc.lens.xyz"]}},blockExplorers:{default:{name:"Lens Block Explorer",url:"https://explorer.lens.xyz",apiUrl:"https://explorer.lens.xyz/api"}}}),RT=p({id:37111,name:"Lens Testnet",nativeCurrency:{name:"GRASS",symbol:"GRASS",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.lens.dev"],webSocket:["wss://rpc.testnet.lens.dev/ws"]}},blockExplorers:{default:{name:"Lens Block Explorer",url:"https://block-explorer.testnet.lens.dev",apiUrl:"https://block-explorer-api.staging.lens.dev/api"}},testnet:!0}),HT=p({id:21363,name:"Lestnet",nativeCurrency:{name:"Lestnet Ether",symbol:"LETH",decimals:18},rpcUrls:{default:{http:["https://service.lestnet.org"]}},blockExplorers:{default:{name:"Lestnet Explorer",url:"https://explore.lestnet.org"}},testnet:!0}),$T=p({id:1891,name:"LightLink Pegasus Testnet",network:"lightlink-pegasus",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.pegasus.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Pegasus Explorer",url:"https://pegasus.lightlink.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:127188532}},testnet:!0}),GT=p({id:1890,name:"LightLink Phoenix Mainnet",network:"lightlink-phoenix",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.phoenix.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Phoenix Explorer",url:"https://phoenix.lightlink.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:125499184}},testnet:!1});function Ze(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}class kn extends ${constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
70
+ `),{cause:t,name:"TipAboveFeeCapError"})}};Object.defineProperty(Ua,"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 Lo extends ${constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}let Oa=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){const n=this.keys().next().value;n&&this.delete(n)}return this}};const nv=BigInt(0),zo=BigInt(1),sv=BigInt(2),av=BigInt(7),ov=BigInt(256),iv=BigInt(113),Q1=[],J1=[],eb=[];for(let e=0,t=zo,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],Q1.push(2*(5*n+r)),J1.push((e+1)*(e+2)/2%64);let s=nv;for(let a=0;a<7;a++)t=(t<<zo^(t>>av)*iv)%ov,t&sv&&(s^=zo<<(zo<<BigInt(a))-zo);eb.push(s)}const tb=M1(eb,!0),cv=tb[0],lv=tb[1],rb=(e,t,r)=>r>32?D8(e,t,r):O8(e,t,r),nb=(e,t,r)=>r>32?M8(e,t,r):_8(e,t,r);function uv(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let o=0;o<10;o++)r[o]=e[o]^e[o+10]^e[o+20]^e[o+30]^e[o+40];for(let o=0;o<10;o+=2){const i=(o+8)%10,c=(o+2)%10,l=r[c],u=r[c+1],d=rb(l,u,1)^r[i],f=nb(l,u,1)^r[i+1];for(let h=0;h<50;h+=10)e[o+h]^=d,e[o+h+1]^=f}let s=e[2],a=e[3];for(let o=0;o<24;o++){const i=J1[o],c=rb(s,a,i),l=nb(s,a,i),u=Q1[o];s=e[u],a=e[u+1],e[u]=c,e[u+1]=l}for(let o=0;o<50;o+=10){for(let i=0;i<10;i++)r[i]=e[o+i];for(let i=0;i<10;i++)e[o+i]^=~r[(i+2)%10]&r[(i+4)%10]}e[0]^=cv[n],e[1]^=lv[n]}es(r)}class ep extends $d{constructor(t,r,n,s=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=a,No(n),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=E8(this.state)}clone(){return this._cloneInto()}keccak(){O1(this.state32),uv(this.state32,this.rounds),O1(this.state32),this.posOut=0,this.pos=0}update(t){Aa(this),t=Hc(t),zs(t);const{blockLen:r,state:n}=this,s=t.length;for(let a=0;a<s;){const o=Math.min(r-this.pos,s-a);for(let i=0;i<o;i++)n[this.pos++]^=t[a++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:r,pos:n,blockLen:s}=this;t[n]^=r,(r&128)!==0&&n===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){Aa(this,!1),zs(t),this.finish();const r=this.state,{blockLen:n}=this;for(let s=0,a=t.length;s<a;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,a-s);t.set(r.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return No(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(U1(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,es(this.state)}_cloneInto(t){const{blockLen:r,suffix:n,outputLen:s,rounds:a,enableXOF:o}=this;return t||(t=new ep(r,n,s,o,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=n,t.outputLen=s,t.enableXOF=o,t.destroyed=this.destroyed,t}}const dv=(e,t,r)=>$c(()=>new ep(t,e,r)),sb=dv(1,136,256/8);function Ut(e,t){const r=t||"hex",n=sb(Or(e,{strict:!1})?wn(e):e);return r==="bytes"?n:Fe(n)}const tp=new Oa(8192);function Ro(e,t){if(tp.has(`${e}.${t}`))return tp.get(`${e}.${t}`);const r=e.substring(2).toLowerCase(),n=Ut(Ms(r),"bytes"),s=r.split("");for(let o=0;o<40;o+=2)n[o>>1]>>4>=8&&s[o]&&(s[o]=s[o].toUpperCase()),(n[o>>1]&15)>=8&&s[o+1]&&(s[o+1]=s[o+1].toUpperCase());const a=`0x${s.join("")}`;return tp.set(`${e}.${t}`,a),a}function rp(e,t){if(!nt(e,{strict:!1}))throw new Ct({address:e});return Ro(e,t)}const pv=/^0x[a-fA-F0-9]{40}$/,np=new Oa(8192);function nt(e,t){const{strict:r=!0}=t??{},n=`${e}.${r}`;if(np.has(n))return np.get(n);const s=pv.test(e)?e.toLowerCase()===e?!0:r?Ro(e)===e:!0:!1;return np.set(n,s),s}function Rs(e,t,r,{strict:n}={}){return Or(e,{strict:!1})?sp(e,t,r,{strict:n}):ib(e,t,r,{strict:n})}function ab(e,t){if(typeof t=="number"&&t>0&&t>ut(e)-1)throw new m1({offset:t,position:"start",size:ut(e)})}function ob(e,t,r){if(typeof t=="number"&&typeof r=="number"&&ut(e)!==r-t)throw new m1({offset:r,position:"end",size:ut(e)})}function ib(e,t,r,{strict:n}={}){ab(e,t);const s=e.slice(t,r);return n&&ob(s,t,r),s}function sp(e,t,r,{strict:n}={}){ab(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&ob(s,t,r),s}function fv(e){const{authorizationList:t}=e;if(t)for(const r of t){const{chainId:n}=r,s=r.address;if(!nt(s))throw new Ct({address:s});if(n<0)throw new Ba({chainId:n})}ap(e)}function hv(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new K1;for(const r of t){const n=ut(r),s=ir(Rs(r,0,1));if(n!==32)throw new Q8({hash:r,size:n});if(s!==Y1)throw new J8({hash:r,version:s})}}ap(e)}function ap(e){const{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:n,to:s}=e;if(t<=0)throw new Ba({chainId:t});if(s&&!nt(s))throw new Ct({address:s});if(n&&n>Ls)throw new as({maxFeePerGas:n});if(r&&n&&r>n)throw new Ua({maxFeePerGas:n,maxPriorityFeePerGas:r})}function mv(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:a}=e;if(t<=0)throw new Ba({chainId:t});if(a&&!nt(a))throw new Ct({address:a});if(r||s)throw new $("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>Ls)throw new as({maxFeePerGas:n})}function bv(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:a}=e;if(a&&!nt(a))throw new Ct({address:a});if(typeof t<"u"&&t<=0)throw new Ba({chainId:t});if(r||s)throw new $("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>Ls)throw new as({maxFeePerGas:n})}function op(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new m8({transaction:e})}function Ho(e){if(!e||e.length===0)return[];const t=[];for(let r=0;r<e.length;r++){const{address:n,storageKeys:s}=e[r];for(let a=0;a<s.length;a++)if(s[a].length-2!==64)throw new b8({storageKey:s[a]});if(!nt(n,{strict:!1}))throw new Ct({address:n});t.push([n,s])}return t}function Wc(e,t){const r=op(e);return r==="eip1559"?xv(e,t):r==="eip2930"?wv(e,t):r==="eip4844"?gv(e,t):r==="eip7702"?yv(e,t):vv(e,t)}function yv(e,t){const{authorizationList:r,chainId:n,gas:s,nonce:a,to:o,value:i,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;fv(e);const f=Ho(u),h=x8(r);return lr(["0x04",Jr([q(n),a?q(a):"0x",l?q(l):"0x",c?q(c):"0x",s?q(s):"0x",o??"0x",i?q(i):"0x",d??"0x",f,h,..._a(e,t)])])}function gv(e,t){const{chainId:r,gas:n,nonce:s,to:a,value:o,maxFeePerBlobGas:i,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;hv(e);let f=e.blobVersionedHashes,h=e.sidecars;if(e.blobs&&(typeof f>"u"||typeof h>"u")){const T=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(z=>vt(z)),C=e.kzg,_=zd({blobs:T,kzg:C});if(typeof f>"u"&&(f=G1({commitments:_})),typeof h>"u"){const z=Rd({blobs:T,commitments:_,kzg:C});h=Z1({blobs:T,commitments:_,proofs:z})}}const y=Ho(u),g=[q(r),s?q(s):"0x",l?q(l):"0x",c?q(c):"0x",n?q(n):"0x",a??"0x",o?q(o):"0x",d??"0x",y,i?q(i):"0x",f??[],..._a(e,t)],E=[],v=[],w=[];if(h)for(let T=0;T<h.length;T++){const{blob:C,commitment:_,proof:z}=h[T];E.push(C),v.push(_),w.push(z)}return lr(["0x03",Jr(h?[g,E,v,w]:g)])}function xv(e,t){const{chainId:r,gas:n,nonce:s,to:a,value:o,maxFeePerGas:i,maxPriorityFeePerGas:c,accessList:l,data:u}=e;ap(e);const d=Ho(l),f=[q(r),s?q(s):"0x",c?q(c):"0x",i?q(i):"0x",n?q(n):"0x",a??"0x",o?q(o):"0x",u??"0x",d,..._a(e,t)];return lr(["0x02",Jr(f)])}function wv(e,t){const{chainId:r,gas:n,data:s,nonce:a,to:o,value:i,accessList:c,gasPrice:l}=e;mv(e);const u=Ho(c),d=[q(r),a?q(a):"0x",l?q(l):"0x",n?q(n):"0x",o??"0x",i?q(i):"0x",s??"0x",u,..._a(e,t)];return lr(["0x01",Jr(d)])}function vv(e,t){const{chainId:r=0,gas:n,data:s,nonce:a,to:o,value:i,gasPrice:c}=e;bv(e);let l=[a?q(a):"0x",c?q(c):"0x",n?q(n):"0x",o??"0x",i?q(i):"0x",s??"0x"];if(t){const u=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(r>0)return BigInt(r*2)+BigInt(35n+t.v-27n);const h=27n+(t.v===27n?0n:1n);if(t.v!==h)throw new h8({v:t.v});return h})(),d=Zt(t.r),f=Zt(t.s);l=[...l,q(u),d==="0x00"?"0x":d,f==="0x00"?"0x":f]}else r>0&&(l=[...l,q(r),"0x","0x"]);return Jr(l)}function _a(e,t){const r=t??e,{v:n,yParity:s}=r;if(typeof r.r>"u")return[];if(typeof r.s>"u")return[];if(typeof n>"u"&&typeof s>"u")return[];const a=Zt(r.r),o=Zt(r.s);return[typeof s=="number"?s?q(1):"0x":n===0n?"0x":n===1n?q(1):n===27n?"0x":q(1),a==="0x00"?"0x":a,o==="0x00"?"0x":o]}class Ev extends ${constructor(){super(["Transaction is not an EIP712 transaction.","","Transaction must:",' - include `type: "eip712"`'," - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`"].join(`
71
+ `),{name:"InvalidEip712TransactionError"})}}function cb(e){return!!(e.type==="eip712"||"customSignature"in e&&e.customSignature||"paymaster"in e&&e.paymaster||"paymasterInput"in e&&e.paymasterInput||"gasPerPubdata"in e&&typeof e.gasPerPubdata=="bigint"||"factoryDeps"in e&&e.factoryDeps)}function lb(e){const{chainId:t,to:r,from:n,paymaster:s,paymasterInput:a}=e;if(!cb(e))throw new Ev;if(!t||t<=0)throw new Ba({chainId:t});if(r&&!nt(r))throw new Ct({address:r});if(n&&!nt(n))throw new Ct({address:n});if(s&&!nt(s))throw new Ct({address:s});if(s&&!a)throw new $("`paymasterInput` must be provided when `paymaster` is defined");if(!s&&a)throw new $("`paymaster` must be provided when `paymasterInput` is defined")}function kv(e,t){return cb(e)?Tv(e):Wc(e,t)}const Cv={transaction:kv};function Tv(e){const{chainId:t,gas:r,nonce:n,to:s,from:a,value:o,maxFeePerGas:i,maxPriorityFeePerGas:c,customSignature:l,factoryDeps:u,paymaster:d,paymasterInput:f,gasPerPubdata:h,data:y}=e;lb(e);const g=[n?Fe(n):"0x",c?Fe(c):"0x",i?Fe(i):"0x",r?Fe(r):"0x",s??"0x",o?Fe(o):"0x",y??"0x",Fe(t),Fe(""),Fe(""),Fe(t),a??"0x",Fe(h||Md),u??[],l??"0x",d&&f?[d,f]:[]];return lr(["0x71",Jr(g)])}class Sv extends ${constructor({givenLength:t,maxBytecodeSize:r}){super(`Bytecode cannot be longer than ${r} bytes. Given length: ${t}`,{name:"BytecodeLengthExceedsMaxSizeError"})}}class Av extends ${constructor({givenLengthInWords:t}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${t}`,{name:"BytecodeLengthInWordsMustBeOddError"})}}class Pv extends ${constructor({givenLength:t}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${t}`,{name:"BytecodeLengthMustBeDivisibleBy32Error"})}}function Iv(e){const t=wn(e);if(t.length%32!==0)throw new Pv({givenLength:t.length});if(t.length>E1)throw new Sv({givenLength:t.length,maxBytecodeSize:E1});const r=$1(t),n=wn(r),s=t.length/32;if(s%2===0)throw new Av({givenLengthInWords:s});const a=wn(s),o=Ds(a,{size:2}),i=new Uint8Array([1,0]);return n.set(i,0),n.set(o,2),n}const Bv=e=>{lb(e);const t=Fv(e);return{domain:{name:"zkSync",version:"2",chainId:e.chainId},types:{Transaction:[{name:"txType",type:"uint256"},{name:"from",type:"uint256"},{name:"to",type:"uint256"},{name:"gasLimit",type:"uint256"},{name:"gasPerPubdataByteLimit",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymaster",type:"uint256"},{name:"nonce",type:"uint256"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"factoryDeps",type:"bytes32[]"},{name:"paymasterInput",type:"bytes"}]},primaryType:"Transaction",message:t}};function Fv(e){const{gas:t,nonce:r,to:n,from:s,value:a,maxFeePerGas:o,maxPriorityFeePerGas:i,factoryDeps:c,paymaster:l,paymasterInput:u,gasPerPubdata:d,data:f}=e;return{txType:113n,from:BigInt(s),to:n?BigInt(n):0n,gasLimit:t??0n,gasPerPubdataByteLimit:d??Md,maxFeePerGas:o??0n,maxPriorityFeePerGas:i??0n,paymaster:l?BigInt(l):0n,nonce:r?BigInt(r):0n,value:a??0n,data:f??"0x",factoryDeps:(c==null?void 0:c.map(h=>Fe(Iv(h))))??[],paymasterInput:u||"0x"}}const ur={blockTime:1e3,formatters:k1,serializers:Cv,custom:{getEip712Domain:Bv}},Uv=p({...ur,blockTime:200,id:2741,name:"Abstract",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.mainnet.abs.xyz"],webSocket:["wss://api.mainnet.abs.xyz/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.mainnet.abs.xyz"}},contracts:{multicall3:{address:"0xAa4De41dba0Ca5dCBb288b7cC6b708F3aaC759E7",blockCreated:5288},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:5263}}}),Ov=p({...ur,blockTime:200,id:11124,name:"Abstract Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.testnet.abs.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.testnet.abs.xyz"}},testnet:!0,contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:358349},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:431682}}}),_v=p({id:787,name:"Acala",network:"acala",nativeCurrency:{name:"Acala",symbol:"ACA",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]}},blockExplorers:{default:{name:"Acala Blockscout",url:"https://blockscout.acala.network",apiUrl:"https://blockscout.acala.network/api"}},testnet:!1}),Dv=p({id:47,name:"Acria IntelliChain",nativeCurrency:{decimals:18,name:"ACRIA",symbol:"ACRIA"},rpcUrls:{default:{http:["https://aic.acria.ai"]}},blockExplorers:{default:{name:"Acria Explorer",url:"https://explorer.acria.ai"}},testnet:!1}),Mv=p({id:1215,name:"ADF Chain",nativeCurrency:{name:"ADDFILL",symbol:"ADF",decimals:18},rpcUrls:{default:{http:["https://mainnet.adftechnology.com"]}},blockExplorers:{default:{name:"ADF Mainnet Explorer",url:"https://explorer.adftechnology.com"}},testnet:!1}),Nv=p({id:9990,name:"Agung Network",nativeCurrency:{decimals:18,name:"Agung",symbol:"AGNG"},rpcUrls:{default:{http:["https://wss-async.agung.peaq.network"],webSocket:["wss://wss-async.agung.peaq.network"]}},blockExplorers:{default:{name:"Subscan",url:"https://agung-testnet.subscan.io"}},testnet:!0}),Lv=p({id:168,name:"AIOZ Network",nativeCurrency:{decimals:18,name:"AIOZ",symbol:"AIOZ"},rpcUrls:{default:{http:["https://eth-dataseed.aioz.network"]}},blockExplorers:{default:{name:"AIOZ Explorer",url:"https://explorer.aioz.network"}},testnet:!1}),zv=p({id:41455,name:"Aleph Zero",nativeCurrency:{name:"Aleph Zero",symbol:"AZERO",decimals:18},rpcUrls:{default:{http:["https://rpc.alephzero.raas.gelato.cloud"]}},blockExplorers:{default:{name:"Aleph Zero EVM Explorer",url:"https://evm-explorer.alephzero.org",apiUrl:"https://evm-explorer.alephzero.org/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4603377}}}),Rv=p({id:2039,name:"Aleph Zero Testnet",nativeCurrency:{name:"TZERO",symbol:"TZERO",decimals:18},rpcUrls:{default:{http:["https://rpc.alephzero-testnet.gelato.digital"],webSocket:["wss://ws.alephzero-testnet.gelato.digital"]}},blockExplorers:{default:{name:"Aleph Zero EVM Testnet explorer",url:"https://evm-explorer-testnet.alephzero.org",apiUrl:"https://evm-explorer-testnet.alephzero.org/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2861745}},testnet:!0}),Hv=p({id:10241024,name:"AlienX Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.alienxchain.io/http"]}},blockExplorers:{default:{name:"AlienX Explorer",url:"https://explorer.alienxchain.io"}},testnet:!1}),$v=p({id:10241025,name:"ALIENX Hal Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://hal-rpc.alienxchain.io/http"]}},blockExplorers:{default:{name:"AlienX Explorer",url:"https://hal-explorer.alienxchain.io"}},testnet:!0}),ub={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},ip={block:Od({format(e){var r;return{transactions:(r=e.transactions)==null?void 0:r.map(n=>{if(typeof n=="string")return n;const s=Ns(n);return s.typeHex==="0x7e"&&(s.isSystemTx=n.isSystemTx,s.mint=n.mint?Le(n.mint):void 0,s.sourceHash=n.sourceHash,s.type="deposit"),s}),stateRoot:e.stateRoot}}}),transaction:zc({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?Le(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:_d({format(e){return{l1GasPrice:e.l1GasPrice?Le(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?Le(e.l1GasUsed):null,l1Fee:e.l1Fee?Le(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function db(e,t){return Vv(e)?jv(e):Wc(e,t)}const Gv={transaction:db};function jv(e){Wv(e);const{sourceHash:t,data:r,from:n,gas:s,isSystemTx:a,mint:o,to:i,value:c}=e,l=[t,n,i??"0x",o?Fe(o):"0x",c?Fe(c):"0x",s?Fe(s):"0x",a?"0x1":"0x",r??"0x"];return lr(["0x7e",Jr(l)])}function Vv(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function Wv(e){const{from:t,to:r}=e;if(t&&!nt(t))throw new Ct({address:t});if(r&&!nt(r))throw new Ct({address:r})}const V={blockTime:2e3,contracts:ub,formatters:ip,serializers:Gv},qc=1,qv=p({...V,id:888888888,name:"Ancient8",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 explorer",url:"https://scan.ancient8.gg",apiUrl:"https://scan.ancient8.gg/api"}},contracts:{...V.contracts,l2OutputOracle:{[qc]:{address:"0xB09DC08428C8b4EFB4ff9C0827386CDF34277996"}},portal:{[qc]:{address:"0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68",blockCreated:19070571}},l1StandardBridge:{[qc]:{address:"0xd5e3eDf5b68135D559D572E26bF863FBC1950033",blockCreated:19070571}}},sourceId:qc}),Yc=11155111,Yv=p({...V,id:28122024,name:"Ancient8 Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpcv2-testnet.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 Celestia Testnet explorer",url:"https://scanv2-testnet.ancient8.gg",apiUrl:"https://scanv2-testnet.ancient8.gg/api"}},contracts:{...V.contracts,l2OutputOracle:{[Yc]:{address:"0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB"}},portal:{[Yc]:{address:"0xfa1d9E26A6aCD7b22115D27572c1221B9803c960",blockCreated:4972908}},l1StandardBridge:{[Yc]:{address:"0xF6Bc0146d3c74D48306e79Ae134A260E418C9335",blockCreated:4972908}}},sourceId:Yc}),Kv=p({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"]}}}),Zv=p({id:33139,name:"ApeChain",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.apechain.com/http"],webSocket:["wss://rpc.apechain.com/ws"]}},blockExplorers:{default:{name:"Apescan",url:"https://apescan.io",apiUrl:"https://api.apescan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:20889}},sourceId:42161}),Xv=p({id:3993,name:"APEX Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.apexlayer.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-testnet.apexlayer.xyz",apiUrl:"https://exp-testnet.apexlayer.xyz/api"}},contracts:{multicall3:{address:"0xf7642be33a6b18D16a995657adb5a68CD0438aE2",blockCreated:283775}},testnet:!0}),Qv=p({id:62606,name:"Apollo",nativeCurrency:{decimals:18,name:"Apollo",symbol:"APOLLO"},rpcUrls:{default:{http:["https://mainnet-rpc.apolloscan.io"]}},blockExplorers:{default:{name:"Apollo Explorer",url:"https://apolloscan.io"}}}),Jv=p({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),eE=p({id:421613,name:"Arbitrum Goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0}),tE=p({id:42170,name:"Arbitrum Nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://nova.arbiscan.io",apiUrl:"https://api-nova.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}}),rE=p({id:421614,name:"Arbitrum Sepolia",blockTime:250,nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://api-sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0}),nE=p({id:5042002,name:"Arc Testnet",nativeCurrency:{name:"USDC",symbol:"USDC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.arc.network","https://rpc.quicknode.testnet.arc.network","https://rpc.blockdaemon.testnet.arc.network"],webSocket:["wss://rpc.testnet.arc.network","wss://rpc.quicknode.testnet.arc.network"]}},blockExplorers:{default:{name:"ArcScan",url:"https://testnet.arcscan.app",apiUrl:"https://testnet.arcscan.app/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}),sE=p({id:7897,name:"Arena-Z",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.arena-z.gg"]}},blockExplorers:{default:{name:"Arena-Z Explorer",url:"https://explorer.arena-z.gg",apiUrl:"https://explorer.arena-z.gg"}}}),aE=p({id:463,name:"Areon Network",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areon.network"],webSocket:["wss://mainnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:353286}},testnet:!1}),oE=p({id:462,name:"Areon Network Testnet",nativeCurrency:{decimals:18,name:"TAREA",symbol:"TAREA"},rpcUrls:{default:{http:["https://testnet-rpc.areon.network"],webSocket:["wss://testnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},testnet:!0}),iE=p({id:463,name:"Areum",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areum.network"],webSocket:["wss://mainnet-ws.areum.network"]}},blockExplorers:{default:{name:"Areum Explorer",url:"https://explorer.areum.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:353286}},testnet:!1}),cE=p({id:11822,name:"Artela Testnet",nativeCurrency:{name:"ART",symbol:"ART",decimals:18},rpcUrls:{default:{http:["https://betanet-rpc1.artela.network"]}},blockExplorers:{default:{name:"Artela",url:"https://betanet-scan.artela.network",apiUrl:"https://betanet-scan.artela.network/api"}},contracts:{multicall3:{address:"0xd07c8635f76e8745Ee7092fbb6e8fbc5FeF09DD7",blockCreated:7001871}},testnet:!0}),lE=p({id:10242,name:"Arthera",nativeCurrency:{name:"Arthera",symbol:"AA",decimals:18},rpcUrls:{default:{http:["https://rpc.arthera.net"]}},blockExplorers:{default:{name:"Arthera EVM Explorer",url:"https://explorer.arthera.net",apiUrl:"https://explorer.arthera.net/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4502791}}}),uE=p({id:10243,name:"Arthera Testnet",nativeCurrency:{name:"Arthera",symbol:"AA",decimals:18},rpcUrls:{default:{http:["https://rpc-test.arthera.net"]}},blockExplorers:{default:{name:"Arthera EVM Explorer",url:"https://explorer-test.arthera.net",apiUrl:"https://explorer-test.arthera.net/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:22051}}}),dE=p({id:42420,name:"AssetChain Mainnet",nativeCurrency:{decimals:18,name:"Real World Asset",symbol:"RWA"},rpcUrls:{default:{http:["https://mainnet-rpc.assetchain.org"]}},blockExplorers:{default:{name:"Asset Chain Explorer",url:"https://scan.assetchain.org",apiUrl:"https://scan.assetchain.org/api"}},testnet:!1,contracts:{}}),pE=p({id:42421,name:"AssetChain Testnet",nativeCurrency:{decimals:18,name:"Real World Asset",symbol:"RWA"},rpcUrls:{default:{http:["https://enugu-rpc.assetchain.org"]}},blockExplorers:{default:{name:"Asset Chain Testnet Explorer",url:"https://scan-testnet.assetchain.org",apiUrl:"https://scan-testnet.assetchain.org/api"}},testnet:!0,contracts:{multicall3:{address:"0x989F832D35988cb5e3eB001Fa2Fe789469EC31Ea",blockCreated:17177}}}),fE=p({id:592,name:"Astar",network:"astar-mainnet",nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},rpcUrls:{default:{http:["https://astar.api.onfinality.io/public"]}},blockExplorers:{default:{name:"Astar Subscan",url:"https://astar.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:761794}},testnet:!1}),hE=p({id:3776,name:"Astar zkEVM",network:"AstarZkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-zkevm.astar.network"]}},blockExplorers:{default:{name:"Astar zkEVM Explorer",url:"https://astar-zkevm.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:93528}},testnet:!1}),mE=p({id:6038361,name:"Astar zkEVM Testnet zKyoto",network:"zKyoto",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.startale.com/zkyoto"]}},blockExplorers:{default:{name:"zKyoto Explorer",url:"https://zkyoto.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:196153}},testnet:!0}),bE=p({id:2340,name:"Atleta Olympia",nativeCurrency:{decimals:18,name:"Atla",symbol:"ATLA"},rpcUrls:{default:{http:["https://testnet-rpc.atleta.network:9944","https://testnet-rpc.atleta.network"],ws:["wss://testnet-rpc.atleta.network:9944"]}},blockExplorers:{default:{name:"Atleta Olympia Explorer",url:"https://blockscout.atleta.network",apiUrl:"https://blockscout.atleta.network/api"}},contracts:{multicall3:{address:"0x1472ec6392180fb84F345d2455bCC75B26577115",blockCreated:1076473}},testnet:!0}),yE=p({id:1313161554,name:"Aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://aurorascan.dev",apiUrl:"https://aurorascan.dev/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:62907816}}}),gE=p({id:1313161555,name:"Aurora Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev",apiUrl:"https://testnet.aurorascan.dev/api"}},testnet:!0}),xE=p({id:205205,name:"Auroria Testnet",network:"auroria",nativeCurrency:{name:"Auroria Stratis",symbol:"tSTRAX",decimals:18},rpcUrls:{default:{http:["https://auroria.rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Auroria Testnet Explorer",url:"https://auroria.explorer.stratisevm.com"}},testnet:!0}),wE=p({id:785,name:"Autheo Testnet",nativeCurrency:{decimals:18,name:"Autheo",symbol:"THEO"},rpcUrls:{default:{http:["https://testnet-rpc1.autheo.com","https://testnet-rpc2.autheo.com"]}},blockExplorers:{default:{name:"Autheo Testnet Block Explorer",url:"https://testnet-explorer.autheo.com/"}}}),vE=p({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),EE=p({id:43113,name:"Avalanche Fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://testnet.snowtrace.io",apiUrl:"https://api-testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0}),kE=p({id:8333,name:"B3",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.b3.fun/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.b3.fun"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},sourceId:8453}),CE=p({id:1993,name:"B3 Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.b3.fun/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.b3.fun"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},testnet:!0,sourceId:168587773}),TE=p({id:5165,network:"bahamut",name:"Bahamut",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.bahamut.io","https://bahamut-rpc.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut-rpc.publicnode.com","wss://ws2.sahara.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://www.ftnscan.com",apiUrl:"https://www.ftnscan.com/api"}}}),$o=1,pb=p({...V,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...V.contracts,disputeGameFactory:{[$o]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[$o]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[$o]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[$o]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:$o}),SE=p({...pb,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://mainnet-preconf.base.org"]}}}),AE=p({id:123420001114,name:"Basecamp Testnet",nativeCurrency:{decimals:18,name:"Camp",symbol:"CAMP"},rpcUrls:{default:{http:["https://rpc.basecamp.t.raas.gelato.cloud"]}},blockExplorers:{default:{name:"basecamp",url:"https://basecamp.cloud.blockscout.com"}},testnet:!0}),Kc=5,PE=p({...V,id:84531,name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://goerli.basescan.org",apiUrl:"https://goerli.basescan.org/api"}},contracts:{...V.contracts,l2OutputOracle:{[Kc]:{address:"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988},portal:{[Kc]:{address:"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA"}},l1StandardBridge:{[Kc]:{address:"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a"}}},testnet:!0,sourceId:Kc}),Go=11155111,fb=p({...V,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...V.contracts,disputeGameFactory:{[Go]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[Go]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[Go]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[Go]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:Go}),IE=p({...fb,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-preconf.base.org"]}}}),BE=p({id:4337,name:"Beam",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{default:{http:["https://build.onbeam.com/rpc"],webSocket:["wss://build.onbeam.com/ws"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets.avax.network/beam"}},contracts:{multicall3:{address:"0x4956f15efdc3dc16645e90cc356eafa65ffc65ec",blockCreated:1}}}),FE=p({id:13337,name:"Beam Testnet",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{default:{http:["https://build.onbeam.com/rpc/testnet"],webSocket:["wss://build.onbeam.com/ws/testnet"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets-test.avax.network/beam"}},contracts:{multicall3:{address:"0x9bf49b704ee2a095b95c1f2d4eb9010510c41c9e",blockCreated:3}},testnet:!0}),UE=p({id:641230,name:"Bear Network Chain Mainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net",apiUrl:"https://brnkscan.bearnetwork.net/api"}}}),OE=p({id:751230,name:"Bear Network Chain Testnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net",apiUrl:"https://brnktest-scan.bearnetwork.net/api"}},testnet:!0}),_E=p({id:80094,name:"Berachain",blockTime:2e3,nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},ensRegistry:{address:"0x5b22280886a2f5e09a49bea7e320eab0e5320e28",blockCreated:877007},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:9310021}},rpcUrls:{default:{http:["https://rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://berascan.com"}},ensTlds:[".bera"],testnet:!1}),DE=p({id:80069,blockTime:2e3,name:"Berachain Bepolia",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},rpcUrls:{default:{http:["https://bepolia.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://bepolia.beratrail.io"}},testnet:!0}),ME=p({id:80085,name:"Berachain Artio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},rpcUrls:{default:{http:["https://artio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain",url:"https://artio.beratrail.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:866924}},testnet:!0}),NE=p({id:80084,name:"Berachain bArtio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:109269},ensRegistry:{address:"0xB0eef18971290b333450586D33dcA6cE122651D2",blockCreated:7736794},ensUniversalResolver:{address:"0x41692Ef1EA0C79E6b73077E4A67572D2BDbD7057",blockCreated:7736795}},ensTlds:[".bera"],rpcUrls:{default:{http:["https://bartio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain bArtio Beratrail",url:"https://bartio.beratrail.io"}},testnet:!0}),LE=p({id:11501,name:"BEVM Mainnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet-1.bevm.io"]}},blockExplorers:{default:{name:"Bevmscan",url:"https://scan-mainnet.bevm.io",apiUrl:"https://scan-mainnet-api.bevm.io/api"}}}),zE=p({id:3068,name:"Bifrost Mainnet",nativeCurrency:{name:"BFC",symbol:"BFC",decimals:18},rpcUrls:{default:{http:["https://public-01.mainnet.bifrostnetwork.com/rpc"]}},blockExplorers:{default:{name:"Bifrost Blockscout",url:"https://explorer.mainnet.bifrostnetwork.com"}},testnet:!1}),RE=p({id:53456,name:"BirdLayer",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.birdlayer.xyz","https://rpc1.birdlayer.xyz"],webSocket:["wss://rpc.birdlayer.xyz/ws"]}},blockExplorers:{default:{name:"BirdLayer Explorer",url:"https://scan.birdlayer.xyz"}}}),HE=p({id:32520,name:"Bitgert Mainnet",nativeCurrency:{decimals:18,name:"Brise",symbol:"Brise"},rpcUrls:{default:{http:["https://rpc-bitgert.icecreamswap.com"]}},blockExplorers:{default:{name:"Bitgert Scan",url:"https://brisescan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2118034}},testnet:!1}),$E=p({id:96,name:"KUB Mainnet",nativeCurrency:{name:"KUB Coin",symbol:"KUB",decimals:18},rpcUrls:{default:{http:["https://rpc.bitkubchain.io"]}},blockExplorers:{default:{name:"KUB Chain Mainnet Explorer",url:"https://www.bkcscan.com",apiUrl:"https://www.bkcscan.com/api"}}}),GE=p({id:25925,name:"Bitkub Testnet",network:"Bitkub Testnet",nativeCurrency:{name:"Bitkub Test",symbol:"tKUB",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.bitkubchain.io"]}},blockExplorers:{default:{name:"Bitkub Chain Testnet Explorer",url:"https://testnet.bkcscan.com",apiUrl:"https://testnet.bkcscan.com/api"}},testnet:!0}),jE=p({id:200901,name:"Bitlayer Mainnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org"],webSocket:["wss://ws.bitlayer.org"]}},blockExplorers:{default:{name:"bitlayer mainnet scan",url:"https://www.btrscan.com"}},contracts:{multicall3:{address:"0x5B256fE9e993902eCe49D138a5b1162cBb529474",blockCreated:2421963}}}),VE=p({id:200810,name:"Bitlayer Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bitlayer.org"],webSocket:["wss://testnet-ws.bitlayer.org"]}},blockExplorers:{default:{name:"bitlayer testnet scan",url:"https://testnet.btrscan.com"}},contracts:{multicall3:{address:"0x5B256fE9e993902eCe49D138a5b1162cBb529474",blockCreated:4135671}},testnet:!0}),WE=p({id:7171,name:"Bitrock Mainnet",nativeCurrency:{name:"BROCK",symbol:"BROCK",decimals:18},rpcUrls:{default:{http:["https://brockrpc.io"]}},blockExplorers:{default:{name:"Bitrock Explorer",url:"https://explorer.bit-rock.io"}},testnet:!1}),qE=p({id:199,name:"BitTorrent",network:"bittorrent-chain-mainnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://rpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://bttcscan.com",apiUrl:"https://api.bttcscan.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:31078552}}}),YE=p({id:1028,name:"BitTorrent Chain Testnet",network:"bittorrent-chain-testnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://testrpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://testnet.bttcscan.com",apiUrl:"https://testnet.bttcscan.com/api"}},testnet:!0}),Zc=1,KE=p({...V,id:81457,name:"Blast",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://blastscan.io",apiUrl:"https://api.blastscan.io/api"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:212929},l2OutputOracle:{[Zc]:{address:"0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76",blockCreated:19300358}},portal:{[Zc]:{address:"0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb",blockCreated:19300357}},l1StandardBridge:{[Zc]:{address:"0x697402166Fbf2F22E970df8a6486Ef171dbfc524",blockCreated:19300360}}},sourceId:Zc}),ZE=p({id:168587773,name:"Blast Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://sepolia.blastscan.io",apiUrl:"https://api-sepolia.blastscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:756690}},testnet:!0,sourceId:11155111}),cp=1,XE=p({...V,id:60808,name:"BOB",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.gobob.xyz"],webSocket:["wss://rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Explorer",url:"https://explorer.gobob.xyz"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:23131},l2OutputOracle:{[cp]:{address:"0xdDa53E23f8a32640b04D7256e651C1db98dB11C1",blockCreated:4462615}},portal:{[cp]:{address:"0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E",blockCreated:4462615}}},sourceId:cp}),QE=p({id:288,name:"Boba Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}}),JE=p({id:28882,name:"Boba Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://testnet.bobascan.com"}},testnet:!0}),lp=11155111,ek=p({...V,id:808813,name:"BOB Sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://bob-sepolia.rpc.gobob.xyz"],webSocket:["wss://bob-sepolia.rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Sepolia Explorer",url:"https://bob-sepolia.explorer.gobob.xyz"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:35677},l2OutputOracle:{[lp]:{address:"0x14D0069452b4AE2b250B395b8adAb771E4267d2f",blockCreated:4462615}},portal:{[lp]:{address:"0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4",blockCreated:4462615}}},testnet:!0,sourceId:lp}),tk=p({id:11100,name:"Bool Beta Mainnet",nativeCurrency:{decimals:18,name:"BOL",symbol:"BOL"},rpcUrls:{default:{http:["https://beta-rpc-node-http.bool.network"]}},blockExplorers:{default:{name:"BoolScan",url:"https://beta-mainnet.boolscan.com/"}},testnet:!1}),rk=p({id:3637,name:"Botanix",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.botanixlabs.com"],webSocket:["wss://rpc.botanixlabs.com/ws"]}},blockExplorers:{default:{name:"Botanixscan",url:"https://botanixscan.io"}}}),nk=p({id:3636,name:"Botanix Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://node.botanixlabs.dev"]}},blockExplorers:{default:{name:"Botanix Testnet Explorer",url:"https://testnet.botanixscan.io"}},testnet:!0}),sk=p({id:6001,name:"BounceBit Mainnet",nativeCurrency:{name:"BounceBit",symbol:"BB",decimals:18},rpcUrls:{default:{http:["https://fullnode-mainnet.bouncebitapi.com"]}},blockExplorers:{default:{name:"BB Scan",url:"https://bbscan.io"}},testnet:!1}),ak=p({id:6e3,name:"BounceBit Testnet",nativeCurrency:{name:"BounceBit",symbol:"BB",decimals:18},rpcUrls:{default:{http:["https://fullnode-testnet.bouncebitapi.com"]}},blockExplorers:{default:{name:"BB Scan",url:"https://testnet.bbscan.io"}},testnet:!0}),ok=p({id:1039,name:"Bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}}),ik=p({id:1038,name:"Bronos Testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0}),ck=p({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),lk=p({id:1017,name:"BNB Greenfield Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://greenfield-chain.bnbchain.org"]}},blockExplorers:{default:{name:"BNB Greenfield Mainnet Scan",url:"https://greenfieldscan.com"}},testnet:!1}),uk=p({id:97,name:"BNB Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://api-testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0}),dk=p({id:223,name:"B2",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bsquared.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.bsquared.network"}}}),pk=p({id:1123,name:"B2 Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bsquared.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet-explorer.bsquared.network"}},testnet:!0}),fk=p({id:200901,name:"Bitlayer",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org","https://rpc.bitlayer-rpc.com"],webSocket:["wss://ws.bitlayer.org","wss://ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://www.btrscan.com"}}}),hk=p({id:200810,name:"Bitlayer Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bitlayer.org"],webSocket:["wss://testnet-ws.bitlayer.org","wss://testnet-ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://testnet.btrscan.com"}},testnet:!0}),mk=p({id:4999,name:"BlackFort Exchange Network",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network",apiUrl:"https://explorer.blackfort.network/api"}}}),bk=p({id:4777,name:"BlackFort Exchange Network Testnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network",apiUrl:"https://testnet-explorer.blackfort.network/api"}},testnet:!0}),yk=p({id:13370,name:"Cannon",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),gk=p({id:7700,name:"Canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}}),xk={estimateFeesPerGas:async e=>{var s;if(!((s=e.request)!=null&&s.feeCurrency))return null;const[t,r]=await Promise.all([wk(e.client,e.request.feeCurrency),vk(e.client,e.request.feeCurrency)]);return{maxFeePerGas:e.multiply(t-r)+r,maxPriorityFeePerGas:r}}};async function wk(e,t){const r=await e.request({method:"eth_gasPrice",params:[t]});return BigInt(r)}async function vk(e,t){const r=await e.request({method:"eth_maxPriorityFeePerGas",params:[t]});return BigInt(r)}function hb(e){return e===0||e===0n||e===void 0||e===null||e==="0"||e===""||typeof e=="string"&&(Zt(e).toLowerCase()==="0x"||Zt(e).toLowerCase()==="0x00")}function jo(e){return!hb(e)}function Ek(e){return typeof e.maxFeePerGas<"u"&&typeof e.maxPriorityFeePerGas<"u"}function mb(e){return e.type==="cip64"?!0:Ek(e)&&jo(e.feeCurrency)}const kk={block:Od({format(e){var r;return{transactions:(r=e.transactions)==null?void 0:r.map(n=>typeof n=="string"?n:{...Ns(n),...n.gatewayFee?{gatewayFee:Le(n.gatewayFee),gatewayFeeRecipient:n.gatewayFeeRecipient}:{},feeCurrency:n.feeCurrency})}}}),transaction:zc({format(e){if(e.type==="0x7e")return{isSystemTx:e.isSystemTx,mint:e.mint?Le(e.mint):void 0,sourceHash:e.sourceHash,type:"deposit"};const t={feeCurrency:e.feeCurrency};return e.type==="0x7b"?t.type="cip64":(e.type==="0x7c"&&(t.type="cip42"),t.gatewayFee=e.gatewayFee?Le(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),transactionRequest:Dd({format(e){const t={};return e.feeCurrency&&(t.feeCurrency=e.feeCurrency),mb(e)&&(t.type="0x7b"),t}})};function Ck(e,t){return mb(e)?Sk(e,t):db(e,t)}const Tk={transaction:Ck};function Sk(e,t){Pk(e);const{chainId:r,gas:n,nonce:s,to:a,value:o,maxFeePerGas:i,maxPriorityFeePerGas:c,accessList:l,feeCurrency:u,data:d}=e,f=[Fe(r),s?Fe(s):"0x",c?Fe(c):"0x",i?Fe(i):"0x",n?Fe(n):"0x",a??"0x",o?Fe(o):"0x",d??"0x",Ho(l),u,..._a(e,t)];return lr(["0x7b",Jr(f)])}const Ak=Ls;function Pk(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:a,feeCurrency:o}=e;if(t<=0)throw new Ba({chainId:t});if(a&&!nt(a))throw new Ct({address:a});if(n)throw new $("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(jo(s)&&s>Ak)throw new as({maxFeePerGas:s});if(jo(r)&&jo(s)&&r>s)throw new Ua({maxFeePerGas:s,maxPriorityFeePerGas:r});if(jo(o)&&!nt(o))throw new $("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(hb(o))throw new $("`feeCurrency` must be provided for CIP-64 transactions.")}const Vo={blockTime:1e3,contracts:ub,formatters:kk,serializers:Tk,fees:xk},Ik=p({...Vo,id:42220,name:"Celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://celoscan.io",apiUrl:"https://api.celoscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1}),Xc=17e3,Bk=p({...Vo,id:44787,name:"Alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Alfajores Explorer",url:"https://celo-alfajores.blockscout.com",apiUrl:"https://celo-alfajores.blockscout.com/api"}},contracts:{...Vo.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001},portal:{[Xc]:{address:"0x82527353927d8D069b3B452904c942dA149BA381",blockCreated:2411324}},disputeGameFactory:{[Xc]:{address:"0xE28AAdcd9883746c0e5068F58f9ea06027b214cb",blockCreated:2411324}},l2OutputOracle:{[Xc]:{address:"0x4a2635e9e4f6e45817b1D402ac4904c1d1752438",blockCreated:2411324}},l1StandardBridge:{[Xc]:{address:"0xD1B0E0581973c9eB7f886967A606b9441A897037",blockCreated:2411324}}},testnet:!0}),up=11155111,Fk=p({...Vo,id:11142220,name:"Celo Sepolia Testnet",nativeCurrency:{decimals:18,name:"CELO",symbol:"S-CELO"},rpcUrls:{default:{http:["https://forno.celo-sepolia.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Sepolia Explorer",url:"https://celo-sepolia.blockscout.com/",apiUrl:"https://celo-sepolia.blockscout.com/api"}},contracts:{...Vo.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1},portal:{[up]:{address:"0x44ae3d41a335a7d05eb533029917aad35662dcc2",blockCreated:8825790}},disputeGameFactory:{[up]:{address:"0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa",blockCreated:8825790}},l1StandardBridge:{[up]:{address:"0xec18a3c30131a0db4246e785355fbc16e2eaf408",blockCreated:8825790}}},testnet:!0}),Uk=p({id:5858,name:"Chang Chain Foundation Mainnet",nativeCurrency:{decimals:18,name:"CTH",symbol:"CTH"},rpcUrls:{default:{http:["https://rpc.cthscan.com"]}},blockExplorers:{default:{name:"Chang Chain explorer",url:"https://cthscan.com"}}}),Ok=p({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.chiliz.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com",apiUrl:"https://scan.chiliz.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:8080847}}}),_k=p({id:2882,name:"Chips Network",network:"CHIPS",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://node.chips.ooo/wasp/api/v1/chains/iota1pp3d3mnap3ufmgqnjsnw344sqmf5svjh26y2khnmc89sv6788y3r207a8fn/evm"]}}}),Dk=p({id:5115,name:"Citrea Testnet",nativeCurrency:{name:"cBTC",symbol:"cBTC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.citrea.xyz"]}},blockExplorers:{default:{name:"Citrea Explorer",url:"https://explorer.testnet.citrea.xyz",apiUrl:"https://explorer.testnet.citrea.xyz/api"}},testnet:!0}),Mk=p({id:61,name:"Ethereum Classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}}),Nk=p({id:112,name:"Coinbit Mainnet",nativeCurrency:{name:"GIDR",symbol:"GIDR",decimals:18},rpcUrls:{default:{http:["https://coinbit-rpc-mainnet.chain.sbcrypto.app"]}},blockExplorers:{default:{name:"Coinbit Explorer",url:"https://coinbit-explorer.chain.sbcrypto.app"}},testnet:!1}),Lk=p({id:52,name:"CoinEx Mainnet",nativeCurrency:{name:"cet",symbol:"cet",decimals:18},rpcUrls:{default:{http:["https://rpc.coinex.net"]}},blockExplorers:{default:{name:"CoinEx Explorer",url:"https://www.coinex.net"}},testnet:!1}),zk=p({id:1030,name:"Conflux eSpace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.com"],webSocket:["wss://evm.confluxrpc.com/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.org"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}}),Rk=p({id:71,name:"Conflux eSpace Testnet",network:"cfx-espace-testnet",testnet:!0,nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evmtestnet.confluxrpc.com"],webSocket:["wss://evmtestnet.confluxrpc.com/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evmtestnet.confluxscan.org"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:117499050}}}),Hk=p({id:1116,name:"Core Dao",nativeCurrency:{decimals:18,name:"Core",symbol:"CORE"},rpcUrls:{default:{http:["https://rpc.coredao.org"]}},blockExplorers:{default:{name:"CoreDao",url:"https://scan.coredao.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11907934}},testnet:!1}),$k=p({id:1115,name:"Core Testnet",nativeCurrency:{decimals:18,name:"tCore",symbol:"TCORE"},rpcUrls:{default:{http:["https://rpc.test.btcs.network"]}},blockExplorers:{default:{name:"Core Testnet",url:"https://scan.test.btcs.network",apiUrl:"https://api.test.btcs.network/api"}},contracts:{multicall3:{address:"0xCcddF20A1932537123C2E48Bd8e00b108B8f7569",blockCreated:29350509}},testnet:!0}),Gk=p({id:1114,name:"Core Testnet2",nativeCurrency:{decimals:18,name:"tCore2",symbol:"TCORE2"},rpcUrls:{default:{http:["https://rpc.test2.btcs.network"]}},blockExplorers:{default:{name:"Core Testnet2",url:"https://scan.test2.btcs.network",apiUrl:"https://api.test2.btcs.network/api"}},contracts:{multicall3:{address:"0x3CB285ff3Cd5C7C7e570b1E7DE3De17A0f985e56",blockCreated:3838600}},testnet:!0}),jk=p({id:21e6,name:"Corn",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Explorer",url:"https://cornscan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3228}},sourceId:1}),Vk=p({id:21000001,name:"Corn Testnet",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000001.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Testnet Explorer",url:"https://testnet.cornscan.io",apiUrl:"https://api.routescan.io/v2/network/testnet/evm/21000001/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4886}},testnet:!0,sourceId:11155111}),Wk=p({id:44,name:"Crab Network",nativeCurrency:{decimals:18,name:"Crab Network Native Token",symbol:"CRAB"},rpcUrls:{default:{http:["https://crab-rpc.darwinia.network"],webSocket:["wss://crab-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://crab-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3032593}}}),qk=p({id:66665,name:"Creator",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.creatorchain.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.creatorchain.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0}),Yk=p({id:102032,name:"Creditcoin Devnet",nativeCurrency:{name:"Devnet CTC",symbol:"devCTC",decimals:18},rpcUrls:{default:{http:["https://rpc.cc3-devnet.creditcoin.network"],webSocket:["wss://rpc.cc3-devnet.creditcoin.network/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin-devnet.blockscout.com",apiUrl:"https://creditcoin3-dev.subscan.io"}},testnet:!0}),Kk=p({id:102030,name:"Creditcoin",nativeCurrency:{name:"Creditcoin",symbol:"CTC",decimals:18},rpcUrls:{default:{http:["https://mainnet3.creditcoin.network"],webSocket:["wss://mainnet3.creditcoin.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin.blockscout.com",apiUrl:"https://creditcoin.blockscout.com/api"}},testnet:!1}),Zk=p({id:102031,name:"Creditcoin Testnet",nativeCurrency:{name:"Creditcoin Testnet",symbol:"tCTC",decimals:18},rpcUrls:{default:{http:["https://rpc.cc3-testnet.creditcoin.network"],webSocket:["wss://rpc.cc3-testnet.creditcoin.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin-testnet.blockscout.com",apiUrl:"https://creditcoin-testnet.blockscout.com/api"}},testnet:!0}),Xk=p({id:25,name:"Cronos Mainnet",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://explorer.cronos.org",apiUrl:"https://explorer-api.cronos.org/mainnet/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}}),Qk=p({id:338,name:"Cronos Testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer (Testnet)",url:"https://explorer.cronos.org/testnet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0}),Jk=p({id:388,name:"Cronos zkEVM Mainnet",nativeCurrency:{decimals:18,name:"Cronos zkEVM CRO",symbol:"zkCRO"},rpcUrls:{default:{http:["https://mainnet.zkevm.cronos.org"]}},blockExplorers:{default:{name:"Cronos zkEVM (Mainnet) Chain Explorer",url:"https://explorer.zkevm.cronos.org"}},contracts:{multicall3:{address:"0x06f4487d7c4a5983d2660db965cc6d2565e4cfaa",blockCreated:72}}}),e7=p({id:282,name:"Cronos zkEVM Testnet",nativeCurrency:{decimals:18,name:"Cronos zkEVM Test Coin",symbol:"zkTCRO"},rpcUrls:{default:{http:["https://testnet.zkevm.cronos.org"]}},blockExplorers:{default:{name:"Cronos zkEVM Testnet Explorer",url:"https://explorer.zkevm.cronos.org/testnet"}},testnet:!0}),t7=p({id:3737,name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io",apiUrl:"https://scan.crossbell.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:38246031}}}),r7=p({id:4158,name:"CrossFi Mainnet",nativeCurrency:{decimals:18,name:"CrossFi",symbol:"XFI"},rpcUrls:{default:{http:["https://rpc.mainnet.ms"]}},blockExplorers:{default:{name:"CrossFi Blockchain Explorer",url:"https://xfiscan.com"}},testnet:!1}),n7=p({id:33111,name:"Curtis",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.curtis.apechain.com"]}},blockExplorers:{default:{name:"Curtis Explorer",url:"https://explorer.curtis.apechain.com"}},testnet:!0}),s7=p({id:7560,name:"Cyber",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://cyberscan.co",apiUrl:"https://cyberscan.co/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),a7=p({id:111557560,name:"Cyber Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber-testnet.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet.cyberscan.co",apiUrl:"https://testnet.cyberscan.co/api"}},contracts:{multicall3:{address:"0xffc391F0018269d4758AEA1a144772E8FB99545E",blockCreated:304545}},testnet:!0}),o7=p({id:824,name:"Daily Network Mainnet",nativeCurrency:{decimals:18,name:"Daily",symbol:"DLY"},rpcUrls:{default:{http:["https://rpc.mainnet.dailycrypto.net"]}},blockExplorers:{default:{name:"Daily Mainnet Explorer",url:"https://explorer.mainnet.dailycrypto.net"}},testnet:!1}),i7=p({id:825,name:"Daily Network Testnet",nativeCurrency:{decimals:18,name:"Daily",symbol:"DLY"},rpcUrls:{default:{http:["https://rpc.testnet.dailycrypto.net"]}},blockExplorers:{default:{name:"Daily Testnet Explorer",url:"https://explorer.testnet.dailycrypto.net"}},testnet:!0}),c7=p({id:46,name:"Darwinia Network",nativeCurrency:{decimals:18,name:"RING",symbol:"RING"},rpcUrls:{default:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69420}}}),l7=p({id:55931,name:"Datahaven Testnet",nativeCurrency:{decimals:18,name:"MOCK",symbol:"MOCK"},rpcUrls:{default:{http:["https://services.datahaven-testnet.network/testnet"],webSocket:["wss://services.datahaven-testnet.network/testnet"]}},blockExplorers:{default:{name:"DhScan",url:"https://testnet.dhscan.io/",apiUrl:"https://testnet.dhscan.io/api-docs"}},contracts:{},testnet:!0}),u7=p({id:20240603,name:"DBK chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.dbkchain.io"]}},blockExplorers:{default:{name:"DBK Chain Explorer",url:"https://scan.dbkchain.io"}},testnet:!1}),d7=p({...V,id:2716446429837e3,name:"Dchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://dchain-2716446429837000-1.jsonrpc.sagarpc.io"]}},blockExplorers:{default:{name:"Dchain Explorer",url:"https://dchain-2716446429837000-1.sagaexplorer.io",apiUrl:"https://api-dchain-2716446429837000-1.sagaexplorer.io/api"}},contracts:{...V.contracts}}),p7=p({...V,id:2713017997578e3,name:"Dchain Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://dchaintestnet-2713017997578000-1.jsonrpc.testnet.sagarpc.io"]}},blockExplorers:{default:{name:"Dchain Explorer",url:"https://dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io",apiUrl:"https://api-dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io/api"}},contracts:{...V.contracts}}),f7=p({id:1130,network:"defichain-evm",name:"DeFiChain EVM Mainnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},rpcUrls:{default:{http:["https://eth.mainnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:137852}}}),h7=p({id:1131,network:"defichain-evm-testnet",name:"DeFiChain EVM Testnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},rpcUrls:{default:{http:["https://eth.testnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live/?network=TestNet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:156462}},testnet:!0}),m7=p({id:666666666,name:"Degen",nativeCurrency:{decimals:18,name:"Degen",symbol:"DEGEN"},rpcUrls:{default:{http:["https://rpc.degen.tips"],webSocket:["wss://rpc.degen.tips"]}},blockExplorers:{default:{name:"Degen Chain Explorer",url:"https://explorer.degen.tips",apiUrl:"https://explorer.degen.tips/api/v2"}}}),b7=p({id:53935,name:"DFK Chain",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14790551}}}),y7=p({id:15,name:"Diode Prenet",nativeCurrency:{decimals:18,name:"DIODE",symbol:"DIODE"},rpcUrls:{default:{http:["https://prenet.diode.io:8443"],webSocket:["wss://prenet.diode.io:8443/ws"]}},blockExplorers:{default:{name:"Diode Explorer",url:"https://diode.io/prenet"}},testnet:!1}),g7=p({id:513100,name:"DisChain",nativeCurrency:{decimals:18,name:"DIS",symbol:"DIS"},rpcUrls:{default:{http:["https://rpc.dischain.xyz"]}},blockExplorers:{default:{name:"DisChain Explorer",url:"https://www.oklink.com/dis"}}}),x7=p({id:53457,name:"DODOchain Testnet",nativeCurrency:{decimals:18,name:"DODO",symbol:"DODO"},rpcUrls:{default:{http:["https://dodochain-testnet.alt.technology"],webSocket:["wss://dodochain-testnet.alt.technology/ws"]}},blockExplorers:{default:{name:"DODOchain Testnet (Sepolia) Explorer",url:"https://testnet-scan.dodochain.com"}},testnet:!0}),w7=p({id:2e3,name:"Dogechain",nativeCurrency:{decimals:18,name:"Wrapped Dogecoin",symbol:"WDOGE"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog",apiUrl:"https://explorer.dogechain.dog/api"}},contracts:{multicall3:{address:"0x68a8609a60a008EFA633dfdec592c03B030cC508",blockCreated:25384031}}}),v7=p({id:97476,name:"Doma Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc-testnet.doma.xyz"]}},blockExplorers:{default:{name:"Doma Testnet Explorer",url:"https://explorer-testnet.doma.xyz"}},testnet:!0}),E7=p({id:42026,name:"Donatuz",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.donatuz.com"]}},blockExplorers:{default:{name:"Donatuz Explorer",url:"https://explorer.donatuz.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),k7=p({id:7979,name:"DOS Chain",nativeCurrency:{decimals:18,name:"DOS Chain",symbol:"DOS"},rpcUrls:{default:{http:["https://main.doschain.com"]}},blockExplorers:{default:{name:"DOS Chain Explorer",url:"https://doscan.io",apiUrl:"https://api.doscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:161908}}}),C7=p({id:3939,name:"DOS Chain Testnet",nativeCurrency:{decimals:18,name:"DOS Chain Testnet",symbol:"DOS"},rpcUrls:{default:{http:["https://test.doschain.com"]}},blockExplorers:{default:{name:"DOS Chain Testnet Explorer",url:"https://test.doscan.io",apiUrl:"https://api-test.doscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69623}},testnet:!0}),T7=p({id:23451,name:"DreyerX Mainnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["https://rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Scan",url:"https://scan.dreyerx.com"}}});function dp({chain:e,currentChainId:t}){if(!e)throw new rv;if(t!==e.id)throw new tv({chain:e,currentChainId:t})}function Da({blockNumber:e,chain:t,contract:r}){var s;const n=(s=t==null?void 0:t.contracts)==null?void 0:s[r];if(!n)throw new Vd({chain:t,contract:{name:r}});if(e&&n.blockCreated&&n.blockCreated>e)throw new Vd({blockNumber:e,chain:t,contract:{name:r,blockCreated:n.blockCreated}});return n.address}const S7=p({id:23452,name:"DreyerX Testnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["http://testnet-rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Testnet Scan",url:"https://testnet-scan.dreyerx.com"}},testnet:!0}),A7=p({id:555888,name:"DustBoy IoT",nativeCurrency:{name:"Ether",symbol:"DST",decimals:18},rpcUrls:{default:{http:["https://dustboy-rpc.jibl2.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://dustboy.jibl2.com",apiUrl:"https://dustboy.jibl2.com/api"}},contracts:{multicall3:{address:"0xFFD34aa2C62B2D52E00A361e466C229788f4eD6a",blockCreated:526569}},testnet:!1}),P7=p({id:1100,name:"Dymension",nativeCurrency:{name:"DYM",symbol:"DYM",decimals:18},rpcUrls:{default:{http:["https://dymension-evm-rpc.publicnode.com"],webSocket:["wss://dymension-evm-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Dym FYI",url:"https://dym.fyi"}},testnet:!1}),I7=p({id:5424,name:"edeXa",nativeCurrency:{name:"edeXa",symbol:"EDX",decimals:18},rpcUrls:{default:{http:["https://rpc.edexa.network"]}},blockExplorers:{default:{name:"edeXa Explorer",url:"https://explorer.edexa.network",apiUrl:"https://explorer.edexa.network/api/v2"}}}),B7=p({id:1995,name:"edeXa Testnet",nativeCurrency:{name:"edeXa",symbol:"tEDX",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.edexa.network"]}},blockExplorers:{default:{name:"edeXa Testnet Explorer",url:"https://explorer.testnet.edexa.network",apiUrl:"https://explorer.testnet.edexa.network/api/v2"}},testnet:!0}),F7=p({id:2026,name:"Edgeless Network",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://rpc.edgeless.network/http"],webSocket:["wss://rpc.edgeless.network/ws"]}},blockExplorers:{default:{name:"Edgeless Explorer",url:"https://explorer.edgeless.network"}}}),U7=p({id:202,name:"Edgeless Testnet",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://edgeless-testnet.rpc.caldera.xyz/http"],webSocket:["wss://edgeless-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Edgeless Testnet Explorer",url:"https://testnet.explorer.edgeless.network"}}}),O7=p({id:2021,name:"Edgeware EdgeEVM Mainnet",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",apiUrl:"https://edgscan.live/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}}),_7=p({id:2022,name:"Beresheet BereEVM Testnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",apiUrl:"https://testnet.edgscan.live/api"}}}),D7=p({id:41923,name:"EDU Chain",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.edu-chain.raas.gelato.cloud"]}},blockExplorers:{default:{name:"EDU Chain Explorer",url:"https://educhain.blockscout.com/"}},testnet:!1}),M7=p({id:656476,name:"EDU Chain Testnet",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.open-campus-codex.gelato.digital/"],webSocket:["wss://ws.open-campus-codex.gelato.digital"]}},blockExplorers:{default:{name:"EDU Chain Testnet Explorer",url:"https://opencampus-codex.blockscout.com",apiUrl:"https://opencampus-codex.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:15514133}},testnet:!0}),N7=p({id:1994,name:"Ekta",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{default:{http:["https://main.ekta.io"]}},blockExplorers:{default:{name:"Ektascan",url:"https://ektascan.io",apiUrl:"https://ektascan.io/api"}}}),L7=p({id:1004,name:"Ekta Testnet",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{default:{http:["https://test.ekta.io:8545"]}},blockExplorers:{default:{name:"Test Ektascan",url:"https://test.ektascan.io",apiUrl:"https://test.ektascan.io/api"}},testnet:!0}),z7=p({id:20,name:"Elastos Smart Chain",nativeCurrency:{name:"ELA",symbol:"ELA",decimals:18},rpcUrls:{default:{http:["https://api2.elastos.io/eth"]}},blockExplorers:{default:{name:"Elastos Explorer",url:"https://esc.elastos.io"}},testnet:!1}),R7=p({id:21,name:"Elastos Smart Chain Testnet",nativeCurrency:{name:"tELA",symbol:"tELA",decimals:18},rpcUrls:{default:{http:["https://api-testnet.elastos.io/eth"]}},blockExplorers:{default:{name:"Elastos Explorer",url:"https://esc-testnet.elastos.io"}},testnet:!0}),H7=p({id:52014,name:"Electroneum Mainnet",nativeCurrency:{name:"ETN",symbol:"ETN",decimals:18},rpcUrls:{default:{http:["https://rpc.electroneum.com"]}},blockExplorers:{default:{name:"Electroneum Block Explorer",url:"https://blockexplorer.electroneum.com"}},testnet:!1}),$7=p({id:5201420,name:"Electroneum Testnet",nativeCurrency:{name:"ETN",symbol:"ETN",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.electroneum.com"]}},blockExplorers:{default:{name:"Electroneum Block Explorer",url:"https://blockexplorer.thesecurityteam.rocks"}},testnet:!0}),G7=p({...V,id:1338,name:"Elysium Testnet",nativeCurrency:{decimals:18,name:"LAVA",symbol:"LAVA"},rpcUrls:{default:{http:["https://elysium-test-rpc.vulcanforged.com"]}},blockExplorers:{default:{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com"}},testnet:!0}),j7=p({id:246,name:"Energy Mainnet",nativeCurrency:{name:"EWT",symbol:"EWT",decimals:18},rpcUrls:{default:{http:["https://rpc.energyweb.org"]}},blockExplorers:{default:{name:"EnergyWeb Explorer",url:"https://explorer.energyweb.org"}},testnet:!1}),V7=p({id:173,name:"ENI Mainnet",nativeCurrency:{decimals:18,name:"ENI",symbol:"ENI"},rpcUrls:{default:{http:["https://rpc.eniac.network"]}},blockExplorers:{default:{name:"ENI Explorer",url:"https://scan.eniac.network"}},testnet:!1}),W7=p({id:6912115,name:"ENI Testnet",nativeCurrency:{decimals:18,name:"ENI Testnet Token",symbol:"ENI"},rpcUrls:{default:{http:["https://rpc-testnet.eniac.network"]}},blockExplorers:{default:{name:"ENI Testnet Explorer",url:"https://scan-testnet.eniac.network"}},testnet:!0}),q7=p({id:119,name:"ENULS Mainnet",nativeCurrency:{decimals:18,name:"NULS",symbol:"NULS"},rpcUrls:{default:{http:["https://evmapi2.nuls.io"]}},blockExplorers:{default:{name:"ENULS Explorer",url:"https://evmscan.nuls.io"}},testnet:!1}),Y7=p({id:7332,name:"Horizen EON",nativeCurrency:{decimals:18,name:"ZEN",symbol:"ZEN"},rpcUrls:{default:{http:["https://eon-rpc.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"EON Explorer",url:"https://eon-explorer.horizenlabs.io"}},contracts:{}}),K7=p({id:17777,name:"EOS EVM",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com",apiUrl:"https://explorer.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}}),Z7=p({id:15557,name:"EOS EVM Testnet",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com",apiUrl:"https://explorer.testnet.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0}),X7=p({id:140,name:"Eteria",nativeCurrency:{name:"Eteria",symbol:"ERA",decimals:18},rpcUrls:{default:{http:["https://mainnet.eteria.io/v1"]}},blockExplorers:{default:{name:"Eteria Explorer",url:"https://explorer.eteria.io",apiUrl:"https://explorer.eteria.io/api"}}}),Q7=p({id:42793,name:"Etherlink",blockTime:4830,nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.mainnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink",url:"https://explorer.etherlink.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:33899}}}),J7=p({id:127823,name:"Etherlink Shadownet Testnet",nativeCurrency:{decimals:18,name:"tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.shadownet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Shadownet Testnet Explorer",url:"https://shadownet.explorer.etherlink.com"}},testnet:!0}),eC=p({id:128123,name:"Etherlink Testnet",nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.ghostnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Testnet",url:"https://testnet.explorer.etherlink.com"}},testnet:!0}),tC=p({id:183,name:"Ethernity",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.ethernitychain.io"]}},blockExplorers:{default:{name:"Ethernity Explorer",url:"https://ernscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1}),rC=p({id:20256789,name:"ETP Mainnet",nativeCurrency:{decimals:18,name:"ETP Chain Native Token",symbol:"ETP"},rpcUrls:{default:{http:["https://rpc.etpscan.xyz"]}},blockExplorers:{default:{name:"ETP Scan",url:"https://etpscan.xyz"}}}),nC=p({id:9001,name:"Evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}}),sC=p({id:9e3,name:"Evmos Testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}}}),aC=p({id:22052002,name:"Excelon Mainnet",network:"XLON",nativeCurrency:{decimals:18,name:"Excelon",symbol:"xlon"},rpcUrls:{default:{http:["https://edgewallet1.xlon.org"]}},blockExplorers:{default:{name:"Excelon explorer",url:"https://explorer.excelon.io"}}}),oC=p({id:2,name:"Expanse Network",nativeCurrency:{decimals:18,name:"EXP",symbol:"EXP"},rpcUrls:{default:{http:["https://node.expanse.tech"]}},blockExplorers:{default:{name:"Expanse Explorer",url:"https://explorer.expanse.tech"}},testnet:!1}),iC=p({id:7200,name:"exSat Network",nativeCurrency:{decimals:18,name:"BTC",symbol:"BTC"},rpcUrls:{default:{http:["https://evm.exsat.network"]}},blockExplorers:{default:{name:"exSat Explorer",url:"https://scan.exsat.network",apiUrl:"https://scan.exsat.network/api"}}}),cC=p({id:839999,name:"exSat Testnet",nativeCurrency:{decimals:18,name:"BTC",symbol:"BTC"},rpcUrls:{default:{http:["https://evm-tst3.exsat.network"]}},blockExplorers:{default:{name:"exSat Explorer",url:"https://scan-testnet.exsat.network",apiUrl:"https://scan-testnet.exsat.network/api"}}}),lC=p({id:250,name:"Fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://250.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"FTMScan",url:"https://ftmscan.com",apiUrl:"https://api.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}}),uC=p({id:64240,name:"Fantom Sonic Open Testnet",network:"fantom-sonic-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpcapi.sonic.fantom.network"]}},blockExplorers:{default:{name:"Fantom Sonic Open Testnet Explorer",url:"https://public-sonic.fantom.network"}},testnet:!0}),dC=p({id:4002,name:"Fantom Testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{default:{name:"FTMScan",url:"https://testnet.ftmscan.com",apiUrl:"https://testnet.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}},testnet:!0}),pC=p({id:12306,name:"Fibo Chain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}}),fC=p({id:314,name:"Filecoin Mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328594}}}),hC=p({id:314159,name:"Filecoin Calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}},testnet:!0}),mC=p({id:3141,name:"Filecoin Hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"}},testnet:!0}),bC=p({id:253368190,name:"Flame",network:"flame",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.flame.astria.org"],webSocket:["wss://ws.flame.astria.org"]}},blockExplorers:{default:{name:"Flame Explorer",url:"https://explorer.flame.astria.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6829148}}}),yC=p({id:14,name:"Flare Mainnet",nativeCurrency:{decimals:18,name:"Flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network",apiUrl:"https://flare-explorer.flare.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3002461}}}),gC=p({id:114,name:"Flare Testnet Coston2",nativeCurrency:{decimals:18,name:"Coston2 Flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network",apiUrl:"https://coston2-explorer.flare.network/api"}},testnet:!0}),xC=p({id:747,name:"Flow EVM Mainnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://mainnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Mainnet Explorer",url:"https://evm.flowscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6205}},blockTime:800}),wC=p({id:646,name:"Flow EVM Previewnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://previewnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Previewnet Explorer",url:"https://previewnet.flowdiver.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6205}}}),vC=p({id:545,name:"Flow EVM Testnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://testnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Flow Diver",url:"https://evm-testnet.flowscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:137518}},testnet:!0,blockTime:800}),EC=p({id:9999999,name:"Fluence",nativeCurrency:{name:"FLT",symbol:"FLT",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.fluence.dev"],webSocket:["wss://ws.mainnet.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.mainnet.fluence.dev",apiUrl:"https://blockscout.mainnet.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:207583}}}),kC=p({id:123420000220,name:"Fluence Stage",nativeCurrency:{name:"tFLT",symbol:"tFLT",decimals:18},rpcUrls:{default:{http:["https://rpc.stage.fluence.dev"],webSocket:["wss://ws.stage.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.stage.fluence.dev",apiUrl:"https://blockscout.stage.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83227}},testnet:!0}),CC=p({id:52164803,name:"Fluence Testnet",nativeCurrency:{name:"tFLT",symbol:"tFLT",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.fluence.dev"],webSocket:["wss://ws.testnet.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.testnet.fluence.dev",apiUrl:"https://blockscout.testnet.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96424}},testnet:!0}),TC=p({id:20993,name:"Fluent Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.dev.gblend.xyz"]}},blockExplorers:{default:{name:"Fluent Explorer",url:"https://blockscout.dev.gblend.xyz"}},testnet:!0}),Ma=1,SC=p({id:478,name:"Form Network",nativeCurrency:{decimals:18,name:"Ethereum",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.form.network/http"],webSocket:["wss://rpc.form.network/ws"]}},blockExplorers:{default:{name:"Form Explorer",url:"https://explorer.form.network"}},contracts:{...V.contracts,addressManager:{[Ma]:{address:"0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B"}},l1CrossDomainMessenger:{[Ma]:{address:"0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c"}},l2OutputOracle:{[Ma]:{address:"0x4ccAAF69F41c5810cA875183648B577CaCf1F67E"}},portal:{[Ma]:{address:"0x4E259Ee5F4136408908160dD32295A5031Fa426F"}},l1StandardBridge:{[Ma]:{address:"0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:Ma}),AC=p({id:984122,name:"Forma",network:"forma",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.forma.art"],webSocket:["wss://ws.forma.art"]}},blockExplorers:{default:{name:"Forma Explorer",url:"https://explorer.forma.art"}},contracts:{multicall3:{address:"0xd53C6FFB123F7349A32980F87faeD8FfDc9ef079",blockCreated:252705}}}),Na=11155111,PC=p({id:132902,name:"Form Testnet",nativeCurrency:{decimals:18,name:"Ethereum",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia-rpc.form.network/http"],webSocket:["wss://sepolia-rpc.form.network/ws"]}},blockExplorers:{default:{name:"Form Testnet Explorer",url:"https://sepolia-explorer.form.network"}},contracts:{...V.contracts,addressManager:{[Na]:{address:"0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373"}},l1CrossDomainMessenger:{[Na]:{address:"0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa"}},l2OutputOracle:{[Na]:{address:"0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2"}},portal:{[Na]:{address:"0x60377e3cE15dF4CCA24c4beF076b60314240b032"}},l1StandardBridge:{[Na]:{address:"0xD4531f633942b2725896F47cD2aFd260b44Ab1F7"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0,sourceId:Na}),IC=p({id:80931,name:"Forta Chain",nativeCurrency:{symbol:"FORT",name:"FORT",decimals:18},rpcUrls:{default:{http:["https://rpc-forta-chain-8gj1qndmfc.t.conduit.xyz"]}},blockExplorers:{default:{name:"Forta Explorer",url:"https://explorer.forta.org"}}}),BC=p({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"]}}}),Qc=1,FC=p({...V,id:252,name:"Fraxtal",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.frax.com"]}},blockExplorers:{default:{name:"fraxscan",url:"https://fraxscan.com",apiUrl:"https://api.fraxscan.com/api"}},contracts:{...V.contracts,l2OutputOracle:{[Qc]:{address:"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Qc]:{address:"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D",blockCreated:19135323}},l1StandardBridge:{[Qc]:{address:"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2",blockCreated:19135323}}},sourceId:Qc}),Jc=17e3,UC=p({...V,id:2522,name:"Fraxtal Testnet",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.frax.com"]}},blockExplorers:{default:{name:"fraxscan testnet",url:"https://holesky.fraxscan.com",apiUrl:"https://api-holesky.fraxscan.com/api"}},contracts:{...V.contracts,l2OutputOracle:{[Jc]:{address:"0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Jc]:{address:"0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d",blockCreated:318416}},l1StandardBridge:{[Jc]:{address:"0x0BaafC217162f64930909aD9f2B27125121d6332",blockCreated:318416}}},sourceId:Jc}),OC=p({...V,id:33979,name:"Funki",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.funkichain.com"]}},blockExplorers:{default:{name:"Funki Mainnet Explorer",url:"https://funkiscan.io"}},contracts:{...V.contracts},sourceId:1}),_C=p({...V,id:3397901,network:"funkiSepolia",name:"Funki Sepolia Sandbox",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://funki-testnet.alt.technology"]}},blockExplorers:{default:{name:"Funki Sepolia Sandbox Explorer",url:"https://sepolia-sandbox.funkichain.com/"}},testnet:!0,contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},sourceId:11155111}),DC=p({id:122,name:"Fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io",apiUrl:"https://explorer.fuse.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:16146628}}}),MC=p({id:123,name:"Fuse Sparknet",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io",apiUrl:"https://explorer.fusespark.io/api"}}}),NC=p({id:32659,name:"Fusion Mainnet",nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},rpcUrls:{default:{http:["https://mainnet.fusionnetwork.io"],webSocket:["wss://mainnet.fusionnetwork.io"]}},blockExplorers:{default:{name:"FSNscan",url:"https://fsnscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10441605}},testnet:!1}),LC=p({id:46688,name:"Fusion Testnet",nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},rpcUrls:{default:{http:["https://testnet.fusionnetwork.io"],webSocket:["wss://testnet.fusionnetwork.io"]}},blockExplorers:{default:{name:"FSNscan",url:"https://testnet.fsnscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10428309}},testnet:!0}),el=17e3,zC=p({...V,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:el,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:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[el]:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{[el]:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{[el]:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}}),RC=p({id:86,name:"GateChain Mainnet",nativeCurrency:{name:"GateChainToken",symbol:"GT",decimals:18},rpcUrls:{default:{http:["https://evm.nodeinfo.cc"],webSocket:["wss://evm-ws.gatenode.cc"]}},blockExplorers:{default:{name:"Gate Scan",url:"https://www.gatescan.org",apiUrl:"https://gatescan.org/api"}},testnet:!1}),HC=p({id:63157,name:"Geist Mainnet",nativeCurrency:{decimals:18,name:"Aavegotchi GHST Token",symbol:"GHST"},rpcUrls:{default:{http:["https://geist-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://geist-mainnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:660735}}}),$C=p({id:16507,name:"Genesys Mainnet",nativeCurrency:{decimals:18,name:"GSYS",symbol:"GSYS"},rpcUrls:{default:{http:["https://rpc.genesys.network"]}},blockExplorers:{default:{name:"Genesys Explorer",url:"https://gchainexplorer.genesys.network"}},testnet:!1}),tl=11155111,bb=p({...V,id:91342,network:"giwa-sepolia",name:"GIWA Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://sepolia-rpc.giwa.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-explorer.giwa.io",apiUrl:"https://sepolia-explorer.giwa.io/api"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{[tl]:{address:"0x37347caB2afaa49B776372279143D71ad1f354F6"}},portal:{[tl]:{address:"0x956962C34687A954e611A83619ABaA37Ce6bC78A"}},l1StandardBridge:{[tl]:{address:"0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7"}}},testnet:!0,sourceId:tl}),GC=p({...bb,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-rpc-flashblocks.giwa.io"]}}}),jC=p({id:251,name:"Glide L1 Protocol XP",nativeCurrency:{name:"GLXP",symbol:"GLXP",decimals:18},rpcUrls:{default:{http:["https://rpc-api.glideprotocol.xyz/l1-rpc"],webSocket:["wss://rpc-api.glideprotocol.xyz/l1-rpc"]}},blockExplorers:{default:{name:"Glide Protocol Explore",url:"https://blockchain-explorer.glideprotocol.xyz"}},testnet:!1}),VC=p({id:253,name:"Glide L2 Protocol XP",nativeCurrency:{name:"GLXP",symbol:"GLXP",decimals:18},rpcUrls:{default:{http:["https://rpc-api.glideprotocol.xyz/l2-rpc"],webSocket:["wss://rpc-api.glideprotocol.xyz/l2-rpc"]}},blockExplorers:{default:{name:"Glide Protocol Explore",url:"https://blockchain-explorer.glideprotocol.xyz"}},testnet:!1}),WC=p({id:100,name:"Gnosis",nativeCurrency:{decimals:18,name:"xDAI",symbol:"XDAI"},blockTime:5e3,rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io",apiUrl:"https://api.gnosisscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),qC=p({id:10200,name:"Gnosis Chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},blockTime:5e3,rpcUrls:{default:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net",apiUrl:"https://blockscout.chiadochain.net/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4967313}},testnet:!0}),YC=p({id:2345,name:"GOAT",nativeCurrency:{decimals:18,name:"Bitcoin",symbol:"BTC"},rpcUrls:{default:{http:["https://rpc.goat.network"]}},blockExplorers:{default:{name:"Goat Explorer",url:"https://explorer.goat.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),KC=p({id:1663,name:"Horizen Gobi Testnet",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0}),ZC=p({id:60,name:"GoChain",nativeCurrency:{decimals:18,name:"GO",symbol:"GO"},rpcUrls:{default:{http:["https://rpc.gochain.io"]}},blockExplorers:{default:{name:"GoChain Explorer",url:"https://explorer.gochain.io"}},testnet:!1}),XC=p({id:71402,name:"Godwoken Mainnet",nativeCurrency:{decimals:18,name:"pCKB",symbol:"pCKB"},rpcUrls:{default:{http:["https://v1.mainnet.godwoken.io/rpc"]}},blockExplorers:{default:{name:"GW Scan",url:"https://v1.gwscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:15034}},testnet:!1}),QC=p({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://5.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),JC=p({id:440017,name:"Graphite Network",nativeCurrency:{name:"Graphite",symbol:"@G",decimals:18},rpcUrls:{default:{http:["https://anon-entrypoint-1.atgraphite.com"],webSocket:["wss://ws-anon-entrypoint-1.atgraphite.com"]}},blockExplorers:{default:{name:"Graphite Spectre",url:"https://main.atgraphite.com",apiUrl:"https://api.main.atgraphite.com/api"}},testnet:!1}),e9=p({id:54170,name:"Graphite Network Testnet",nativeCurrency:{name:"Graphite",symbol:"@G",decimals:18},rpcUrls:{default:{http:["https://anon-entrypoint-test-1.atgraphite.com"],webSocket:["wss://ws-anon-entrypoint-test-1.atgraphite.com"]}},blockExplorers:{default:{name:"Graphite Testnet Spectre",url:"https://test.atgraphite.com",apiUrl:"https://api.test.atgraphite.com/api"}},testnet:!0}),t9=p({id:1625,name:"Gravity Alpha Mainnet",nativeCurrency:{name:"G",symbol:"G",decimals:18},rpcUrls:{default:{http:["https://rpc.gravity.xyz"]}},blockExplorers:{default:{name:"Gravity Explorer",url:"https://explorer.gravity.xyz",apiUrl:"https://explorer.gravity.xyz/api"}},contracts:{multicall3:{address:"0xf8ac4BEB2F75d2cFFb588c63251347fdD629B92c",blockCreated:16851}}}),r9=p({id:43419,name:"Gunz Mainnet",nativeCurrency:{name:"GUN",symbol:"GUN",decimals:18},rpcUrls:{default:{http:["https://rpc.gunzchain.io/ext/bc/2M47TxWHGnhNtq6pM5zPXdATBtuqubxn5EPFgFmEawCQr9WFML/rpc"]}},blockExplorers:{default:{name:"Gunz Explorer",url:"https://gunzscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:70502}}}),n9=p({id:260,name:"Guru Network Mainnet",nativeCurrency:{name:"GURU Token",symbol:"GURU",decimals:18},rpcUrls:{default:{http:["https://rpc-main.gurunetwork.ai","https://rpc.gurunetwork.ai/archive/260"]}},blockExplorers:{default:{name:"Guruscan",url:"https://scan.gurunetwork.ai"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:271691}},testnet:!1}),s9=p({id:261,name:"Guru Network Testnet",nativeCurrency:{name:"tGURU Token",symbol:"tGURU",decimals:18},rpcUrls:{default:{http:["https://rpc-test.gurunetwork.ai","https://rpc.gurunetwork.ai/archive/261"]}},blockExplorers:{default:{name:"Guruscan",url:"https://sepolia.gurunetwork.ai"}},testnet:!0}),a9=p({id:5112,name:"Ham",nativeCurrency:{decimals:18,name:"Ham",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.ham.fun"],webSocket:["wss://rpc.ham.fun"]}},blockExplorers:{default:{name:"Ham Chain Explorer",url:"https://explorer.ham.fun",apiUrl:"https://explorer.ham.fun/api/v2"}}}),o9=p({id:216,name:"Happychain Testnet",nativeCurrency:{symbol:"HAPPY",name:"HAPPY",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.happy.tech/http"],webSocket:["wss://rpc.testnet.happy.tech/ws"]}},blockExplorers:{default:{name:"Happy Chain Testnet Explorer",url:"https://explorer.testnet.happy.tech"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0}),i9=p({id:11235,name:"HAQQ Mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network",apiUrl:"https://explorer.haqq.network/api"}}}),c9=p({id:54211,name:"HAQQ Testedge 2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",apiUrl:"https://explorer.testedge2.haqq.network/api"}}}),l9=p({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),u9=p({id:16666e5,name:"Harmony One",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{default:{http:["https://1666600000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}}),d9=p({id:177,name:"HashKey Chain",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://mainnet.hsk.xyz"]}},blockExplorers:{default:{name:"HashKey Chain Explorer",url:"https://hashkey.blockscout.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),p9=p({id:133,name:"HashKey Chain Testnet",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://testnet.hsk.xyz"]}},blockExplorers:{default:{name:"HashKey Chain Testnet explorer",url:"https://testnet-explorer.hsk.xyz"}},testnet:!0}),f9=p({id:1523903251,name:"Haust Network Testnet",nativeCurrency:{decimals:18,name:"HAUST",symbol:"HAUST"},rpcUrls:{default:{http:["https://rpc-testnet.haust.app"]}},blockExplorers:{default:{name:"Haust Network Testnet Explorer",url:"https://explorer-testnet.haust.app"}},testnet:!0}),h9=p({id:295,name:"Hedera Mainnet",network:"hedera-mainnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://mainnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/mainnet"}},testnet:!1}),m9=p({id:297,name:"Hedera Previewnet",network:"hedera-previewnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://previewnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/previewnet"}},testnet:!0}),b9=p({id:296,name:"Hedera Testnet",network:"hedera-testnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://testnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/testnet"}},testnet:!0}),y9=p({id:8668,name:"Hela Mainnet",nativeCurrency:{name:"HLUSD",symbol:"HLUSD",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.helachain.com"]}},blockExplorers:{default:{name:"Hela explorer",url:"https://mainnet-blockexplorer.helachain.com"}},testnet:!1}),g9=p({id:42e3,name:"Helios Testnet",network:"helios-testnet",nativeCurrency:{symbol:"HLS",name:"Helios",decimals:18},rpcUrls:{default:{http:["https://testnet1.helioschainlabs.org"]}},blockExplorers:{default:{name:"Helios Testnet Explorer",url:"https://explorer.helioschainlabs.org/"}},testnet:!0}),x9=p({id:43111,name:"Hemi",network:"Hemi",blockTime:12e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hemi.network/rpc"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.hemi.xyz"}},testnet:!1}),w9=p({id:743111,name:"Hemi Sepolia",network:"Hemi Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.rpc.hemi.network/rpc"]}},blockExplorers:{default:{name:"Hemi Sepolia explorer",url:"https://testnet.explorer.hemi.xyz"}},testnet:!0}),v9=p({id:68414,name:"Henesys",nativeCurrency:{name:"NEXPACE",symbol:"NXPC",decimals:18},rpcUrls:{default:{http:["https://henesys-rpc.msu.io"]}},blockExplorers:{default:{name:"Avalanche Explorer",url:"https://subnets.avax.network/henesys"}}}),E9=p({id:17e3,name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://holesky.etherscan.io",apiUrl:"https://api-holesky.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:4295055}},testnet:!0}),k9=p({id:560048,name:"Hoodi",nativeCurrency:{name:"Hoodi Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hoodi.ethpandaops.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://hoodi.etherscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2589}},testnet:!0}),C9=p({id:269,name:"High Performance Blockchain",nativeCurrency:{name:"HPB",symbol:"HPB",decimals:18},rpcUrls:{default:{http:["https://hpbnode.com"]}},blockExplorers:{default:{name:"hpbScan",url:"https://hscan.org"}},testnet:!1}),T9=p({id:190415,name:"HPP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.hpp.io"],webSocket:["wss://mainnet.hpp.io"]}},blockExplorers:{default:{name:"HPP Mainnet Explorer",url:"https://explorer.hpp.io"}},testnet:!1}),S9=p({id:181228,name:"HPP Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.hpp.io"],webSocket:["wss://testnet.hpp.io"]}},blockExplorers:{default:{name:"HPP Sepolia Explorer",url:"https://sepolia-explorer.hpp.io"}},testnet:!0}),A9=p({id:12323,name:"Huddle01 dRTC Chain",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://huddle01.calderachain.xyz/http"],webSocket:["wss://huddle01.calderachain.xyz/ws"]}},blockExplorers:{default:{name:"Huddle01 Caldera Explorer",url:"https://huddle01.calderaexplorer.xyz",apiUrl:"https://huddle01.calderaexplorer.xyz/api"}},sourceId:42161}),P9=p({id:2524852,name:"Huddle01 dRTC Chain Testnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://huddle-testnet.rpc.caldera.xyz/http"],webSocket:["wss://huddle-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Huddle01 Caldera Explorer",url:"https://huddle-testnet.explorer.caldera.xyz",apiUrl:"https://huddle-testnet.explorer.caldera.xyz/api"}},sourceId:421614}),I9=p({id:6985385,name:"Humanity",nativeCurrency:{name:"H",symbol:"H",decimals:18},rpcUrls:{default:{http:["https://humanity-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Humanity Mainnet Explorer",url:"https://humanity-mainnet.explorer.alchemy.com",apiUrl:"https://humanity-mainnet.explorer.alchemy.com/api"}},testnet:!1}),B9=p({id:7080969,name:"Humanity Testnet",nativeCurrency:{name:"tHP",symbol:"tHP",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.humanity.org"]}},blockExplorers:{default:{name:"Humanity Testnet Explorer",url:"https://humanity-testnet.explorer.alchemy.com",apiUrl:"https://humanity-testnet.explorer.alchemy.com/api"}},testnet:!0}),F9=p({id:5234,name:"Humanode",nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},rpcUrls:{default:{http:["https://explorer-rpc-http.mainnet.stages.humanode.io"],webSocket:["wss://explorer-rpc-ws.mainnet.stages.humanode.io"]}},blockExplorers:{default:{name:"Subscan",url:"https://humanode.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4413097}}}),U9=p({id:14853,name:"Humanode Testnet 5",nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},rpcUrls:{default:{http:["https://explorer-rpc-http.testnet5.stages.humanode.io"],webSocket:["wss://explorer-rpc-ws.testnet5.stages.humanode.io"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),O9=p({id:2911,name:"HYCHAIN",nativeCurrency:{name:"HYTOPIA",symbol:"TOPIA",decimals:18},rpcUrls:{default:{http:["https://rpc.hychain.com/http"]}},blockExplorers:{default:{name:"HYCHAIN Explorer",url:"https://explorer.hychain.com"}},testnet:!1}),_9=p({id:29112,name:"HYCHAIN Testnet",nativeCurrency:{name:"HYTOPIA",symbol:"TOPIA",decimals:18},rpcUrls:{default:{http:["https://rpc.hychain.com/http"]}},blockExplorers:{default:{name:"HYCHAIN Explorer",url:"https://testnet-rpc.hychain.com/http"}},testnet:!0}),yb=p({id:999,name:"HyperEVM",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},blockExplorers:{default:{name:"HyperEVMScan",url:"https://hyperevmscan.io"}},rpcUrls:{default:{http:["https://rpc.hyperliquid.xyz/evm"]}},testnet:!1}),D9=p({id:998,name:"Hyperliquid EVM Testnet",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},rpcUrls:{default:{http:["https://rpc.hyperliquid-testnet.xyz/evm"]}},testnet:!0}),M9=p({id:73115,name:"ICB Network",nativeCurrency:{decimals:18,name:"ICB Native Token",symbol:"ICBX"},rpcUrls:{default:{http:["https://rpc1-mainnet.icbnetwork.info"]}},blockExplorers:{default:{name:"ICB Explorer",url:"https://icbscan.io",apiUrl:"https://icbscan.io/api"}},testnet:!1}),N9=p({id:74,name:"IDChain Mainnet",nativeCurrency:{decimals:18,name:"EIDI",symbol:"EIDI"},rpcUrls:{default:{http:["https://idchain.one/rpc"],webSocket:["wss://idchain.one/ws"]}},blockExplorers:{default:{name:"IDChain Explorer",url:"https://explorer.idchain.one"}},testnet:!1}),L9=p({id:13371,name:"Immutable zkEVM",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.immutable.com"]}},blockExplorers:{default:{name:"Immutable Explorer",url:"https://explorer.immutable.com",apiUrl:"https://explorer.immutable.com/api"}},contracts:{multicall3:{address:"0x236bdA4589e44e6850f5aC6a74BfCa398a86c6c0",blockCreated:4335972}}}),z9=p({id:13473,name:"Immutable zkEVM Testnet",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.testnet.immutable.com"]}},blockExplorers:{default:{name:"Immutable Testnet Explorer",url:"https://explorer.testnet.immutable.com/"}},contracts:{multicall3:{address:"0x2CC787Ed364600B0222361C4188308Fa8E68bA60",blockCreated:5977391}},testnet:!0}),R9=p({id:2525,name:"inEVM Mainnet",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://mainnet.rpc.inevm.com/http"]}},blockExplorers:{default:{name:"inEVM Explorer",url:"https://inevm.calderaexplorer.xyz",apiUrl:"https://inevm.calderaexplorer.xyz/api/v2"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:118606}}}),H9=p({id:7233,name:"InitVerse Mainnet",nativeCurrency:{decimals:18,name:"InitVerse",symbol:"INI"},rpcUrls:{default:{http:["https://rpc-mainnet.inichain.com"]}},blockExplorers:{default:{name:"InitVerseScan",url:"https://www.iniscan.com",apiUrl:"https://explorer-api.inichain.com/api"}},contracts:{multicall3:{address:"0x83466BE48A067115FFF91f7b892Ed1726d032e47",blockCreated:2318}}}),$9=p({id:7234,name:"InitVerse Genesis Testnet",nativeCurrency:{decimals:18,name:"InitVerse",symbol:"INI"},rpcUrls:{default:{http:["https://rpc-testnet.inichain.com"]}},blockExplorers:{default:{name:"InitVerseGenesisScan",url:"https://genesis-testnet.iniscan.com",apiUrl:"https://explorer-testnet-api.inichain.com/api"}},contracts:{multicall3:{address:"0x0cF32CBDd6c437331EA4f85ed2d881A5379B5a6F",blockCreated:16361}},testnet:!0}),G9=p({id:1776,name:"Injective",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://sentry.evm-rpc.injective.network"],webSocket:["wss://sentry.evm-ws.injective.network"]}},blockExplorers:{default:{name:"Injective Explorer",url:"https://blockscout.injective.network",apiUrl:"https://blockscout.injective.network/api"}},testnet:!1}),j9=p({id:1439,name:"Injective Testnet",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://k8s.testnet.json-rpc.injective.network"],webSocket:["wss://k8s.testnet.ws.injective.network"]}},blockExplorers:{default:{name:"Injective Explorer",url:"https://testnet.blockscout.injective.network",apiUrl:"https://testnet.blockscout.injective.network/api"}},testnet:!0}),rl=1,V9=p({...V,id:57073,name:"Ink",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel.inkonchain.com","https://rpc-qnd.inkonchain.com"],webSocket:["wss://rpc-gel.inkonchain.com","wss://rpc-qnd.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.inkonchain.com",apiUrl:"https://explorer.inkonchain.com/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},...V.contracts,disputeGameFactory:{[rl]:{address:"0x10d7b35078d3baabb96dd45a9143b94be65b12cd"}},portal:{[rl]:{address:"0x5d66c1782664115999c47c9fa5cd031f495d3e4f"}},l1StandardBridge:{[rl]:{address:"0x88ff1e5b602916615391f55854588efcbb7663f0"}}},testnet:!1,sourceId:rl}),nl=11155111,W9=p({...V,id:763373,name:"Ink Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel-sepolia.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer-sepolia.inkonchain.com/",apiUrl:"https://explorer-sepolia.inkonchain.com/api/v2"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{[nl]:{address:"0x860e626c700af381133d9f4af31412a2d1db3d5d"}},portal:{[nl]:{address:"0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7"}},l1StandardBridge:{[nl]:{address:"0x33f60714bbd74d62b66d79213c348614de51901c"}}},testnet:!0,sourceId:nl}),q9=p({id:8822,name:"IOTA EVM",network:"iotaevm",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://json-rpc.evm.iotaledger.net"],webSocket:["wss://ws.json-rpc.evm.iotaledger.net"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.evm.iota.org",apiUrl:"https://explorer.evm.iota.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:25022}}}),Y9=p({id:1075,name:"IOTA EVM Testnet",network:"iotaevm-testnet",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.iotaledger.net"],webSocket:["wss://ws.json-rpc.evm.testnet.iotaledger.net"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.evm.testnet.iotaledger.net",apiUrl:"https://explorer.evm.testnet.iotaledger.net/api"}},testnet:!0}),K9=p({id:4689,name:"IoTeX",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:22163670}}}),Z9=p({id:4690,name:"IoTeX Testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}},contracts:{multicall3:{address:"0xb5cecD6894c6f473Ec726A176f1512399A2e355d",blockCreated:24347592}},testnet:!0}),X9=p({id:8017,name:"iSunCoin Mainnet",nativeCurrency:{decimals:18,name:"ISC",symbol:"ISC"},rpcUrls:{default:{http:["https://mainnet.isuncoin.com"]}},blockExplorers:{default:{name:"iSunCoin Explorer",url:"https://baifa.io/app/chains/8017"}}}),Q9=p({id:680,name:"Jasmy Chain",network:"jasmyChain",nativeCurrency:{name:"JasmyCoin",symbol:"JASMY",decimals:18},rpcUrls:{default:{http:["https://rpc.jasmychain.io"],webSocket:["wss://rpc.jasmychain.io"]}},testnet:!1}),J9=p({id:681,name:"Jasmy Chain Testnet",network:"jasmyChainTestnet",nativeCurrency:{name:"JasmyCoin",symbol:"JASMY",decimals:18},rpcUrls:{default:{http:["https://rpc_testnet.jasmychain.io"],webSocket:["wss://rpc_testnet.jasmychain.io"]}},testnet:!0}),eT=p({id:8899,name:"JB Chain",network:"jbc",nativeCurrency:{name:"JBC",symbol:"JBC",decimals:18},rpcUrls:{default:{http:["https://rpc-l1.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-l1.jibchain.net",apiUrl:"https://exp-l1.jibchain.net/api"}},contracts:{multicall3:{address:"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC",blockCreated:2299048}},testnet:!1}),tT=p({id:88991,name:"Jibchain Testnet",nativeCurrency:{name:"tJBC",symbol:"tJBC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp.testnet.jibchain.net",apiUrl:"https://exp.testnet.jibchain.net/api"}},contracts:{multicall3:{address:"0xa1a858ad9041B4741e620355a3F96B3c78e70ecE",blockCreated:32848}},testnet:!0}),rT=p({id:81,name:"Japan Open Chain Mainnet",nativeCurrency:{decimals:18,name:"Japan Open Chain Token",symbol:"JOC"},rpcUrls:{default:{http:["https://rpc-1.japanopenchain.org:8545","https://rpc-2.japanopenchain.org:8545","https://rpc-3.japanopenchain.org"]}},blockExplorers:{default:{name:"Block Explorer",url:"https://explorer.japanopenchain.org"}},testnet:!1}),nT=p({id:10081,name:"Japan Open Chain Testnet",nativeCurrency:{decimals:18,name:"Japan Open Chain Testnet Token",symbol:"JOCT"},rpcUrls:{default:{http:["https://rpc-1.testnet.japanopenchain.org:8545","https://rpc-2.testnet.japanopenchain.org:8545","https://rpc-3.testnet.japanopenchain.org"]}},blockExplorers:{default:{name:"Testnet Block Explorer",url:"https://explorer.testnet.japanopenchain.org"}},testnet:!0}),sT=p({id:5734951,name:"Jovay Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.jovay.io"]}},blockExplorers:{default:{name:"Jovay Explorer",url:"https://explorer.jovay.io/l2"}},testnet:!1}),aT=p({id:2019775,name:"Jovay Sepolia Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://api.zan.top/public/jovay-testnet"]}},blockExplorers:{default:{name:"Jovay Testnet Explorer",url:"https://sepolia-explorer.jovay.io/l2"}},testnet:!0}),oT=p({id:45003,name:"Juneo JUNE-Chain",nativeCurrency:{decimals:18,name:"JUNE-Chain",symbol:"JUNE"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/JUNE/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/2",apiUrl:"https://juneoscan.io/chain/2/api"}}}),iT=p({id:45013,name:"Juneo BCH1-Chain",nativeCurrency:{decimals:18,name:"Juneo BCH1-Chain",symbol:"BCH1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/BCH1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/12",apiUrl:"https://juneoscan.io/chain/12/api"}}}),cT=p({id:45004,name:"Juneo DAI1-Chain",nativeCurrency:{decimals:18,name:"Juneo DAI1-Chain",symbol:"DAI1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/DAI1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/5",apiUrl:"https://juneoscan.io/chain/5/api"}}}),lT=p({id:45010,name:"Juneo DOGE1-Chain",nativeCurrency:{decimals:18,name:"Juneo DOGE1-Chain",symbol:"DOGE1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/DOGE1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/10",apiUrl:"https://juneoscan.io/chain/10/api"}}}),uT=p({id:45011,name:"Juneo EUR1-Chain",nativeCurrency:{decimals:18,name:"Juneo EUR1-Chain",symbol:"EUR1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/EUR1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/6",apiUrl:"https://juneoscan.io/chain/6/api"}}}),dT=p({id:45008,name:"Juneo GLD1-Chain",nativeCurrency:{decimals:18,name:"Juneo GLD1-Chain",symbol:"GLD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/GLD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/8",apiUrl:"https://juneoscan.io/chain/8/api"}}}),pT=p({id:45014,name:"Juneo LINK1-Chain",nativeCurrency:{decimals:18,name:"Juneo LINK1-Chain",symbol:"LINK1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/LINK1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/13",apiUrl:"https://juneoscan.io/chain/13/api"}}}),fT=p({id:45009,name:"Juneo LTC1-Chain",nativeCurrency:{decimals:18,name:"Juneo LTC1-Chain",symbol:"LTC1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/LTC1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/11",apiUrl:"https://juneoscan.io/chain/11/api"}}}),hT=p({id:45007,name:"Juneo mBTC1-Chain",nativeCurrency:{decimals:18,name:"Juneo mBTC1-Chain",symbol:"mBTC1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/mBTC1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/9",apiUrl:"https://juneoscan.io/chain/9/api"}}}),mT=p({id:45012,name:"Juneo SGD1-Chain",nativeCurrency:{decimals:18,name:"Juneo SGD1-Chain",symbol:"SGD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/SGD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/7",apiUrl:"https://juneoscan.io/chain/7/api"}}}),bT=p({id:101003,name:"Socotra JUNE-Chain",nativeCurrency:{decimals:18,name:"Socotra JUNE-Chain",symbol:"JUNE"},rpcUrls:{default:{http:["https://rpc.socotra-testnet.network/ext/bc/JUNE/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://socotra.juneoscan.io/chain/2",apiUrl:"https://socotra.juneoscan.io/chain/2/api"}},testnet:!0}),yT=p({id:45006,name:"Juneo USD1-Chain",nativeCurrency:{decimals:18,name:"Juneo USD1-Chain",symbol:"USD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/USD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/4",apiUrl:"https://juneoscan.io/chain/4/api"}}}),gT=p({id:45005,name:"Juneo USDT1-Chain",nativeCurrency:{decimals:18,name:"Juneo USDT1-Chain",symbol:"USDT1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/USDT1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/3",apiUrl:"https://juneoscan.io/chain/3/api"}}}),xT=p({id:8217,name:"Kaia",nativeCurrency:{decimals:18,name:"Kaia",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScan",url:"https://kaiascan.io",apiUrl:"https://api-cypress.klaytnscope.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),wT=p({id:1001,name:"Kairos Testnet",network:"kairos",nativeCurrency:{decimals:18,name:"Kairos KAIA",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en-kairos.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScan",url:"https://kairos.kaiascan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),vT=p({id:1802203764,name:"Kakarot Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0}),ET=p({id:920637907288165,name:"Kakarot Starknet Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0}),kT=p({id:24,name:"KardiaChain Mainnet",nativeCurrency:{name:"KAI",symbol:"KAI",decimals:18},rpcUrls:{default:{http:["https://rpc.kardiachain.io"]}},blockExplorers:{default:{name:"KardiaChain Explorer",url:"https://explorer.kardiachain.io"}},testnet:!1}),CT=p({id:686,name:"Karura",network:"karura",nativeCurrency:{name:"Karura",symbol:"KAR",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]}},blockExplorers:{default:{name:"Karura Blockscout",url:"https://blockscout.karura.network",apiUrl:"https://blockscout.karura.network/api"}},testnet:!1}),TT=p({id:747474,name:"Katana",network:"katana",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katana.network"]}},blockExplorers:{default:{name:"katana explorer",url:"https://katanascan.com"}},testnet:!1}),ST=p({id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com",apiUrl:"https://kavascan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1}),AT=p({id:2221,name:"Kava EVM Testnet",network:"kava-testnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.testnet.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Testnet Explorer",url:"https://testnet.kavascan.com/",apiUrl:"https://testnet.kavascan.com/api"}},contracts:{multicall3:{address:"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6",blockCreated:7242179}},testnet:!0}),PT=p({id:321,name:"KCC Mainnet",network:"KCC Mainnet",nativeCurrency:{decimals:18,name:"KCS",symbol:"KCS"},rpcUrls:{default:{http:["https://kcc-rpc.com"]}},blockExplorers:{default:{name:"KCC Explorer",url:"https://explorer.kcc.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11760430}},testnet:!1}),IT=p({id:1336,name:"Kii Testnet Oro",network:"kii-testnet-oro",nativeCurrency:{name:"Kii",symbol:"KII",decimals:18},rpcUrls:{default:{http:["https://json-rpc.uno.sentry.testnet.v3.kiivalidator.com"]}},blockExplorers:{default:{name:"KiiExplorer",url:"https://explorer.kiichain.io/testnet"}},testnet:!0}),BT=p({id:7887,name:"Kinto Mainnet",network:"Kinto Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.kinto.xyz/http"]}},blockExplorers:{default:{name:"Kinto Explorer",url:"https://explorer.kinto.xyz"}},testnet:!1}),FT=p({id:8217,name:"Klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-cypress.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),UT=p({id:1001,name:"Klaytn Baobab Testnet",network:"klaytn-baobab",nativeCurrency:{decimals:18,name:"Baobab Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-baobab.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),OT=p({id:701,name:"Koi Network",nativeCurrency:{decimals:18,name:"Koi Network Native Token",symbol:"KRING"},rpcUrls:{default:{http:["https://koi-rpc.darwinia.network"],webSocket:["wss://koi-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://koi-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:180001}},testnet:!0}),_T=p({id:255,name:"Kroma",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.kroma.network"]}},blockExplorers:{default:{name:"Kroma Explorer",url:"https://blockscout.kroma.network",apiUrl:"https://blockscout.kroma.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:16054868}},testnet:!1}),DT=p({id:2358,name:"Kroma Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.sepolia.kroma.network"]}},blockExplorers:{default:{name:"Kroma Sepolia Explorer",url:"https://blockscout.sepolia.kroma.network",apiUrl:"https://blockscout.sepolia.kroma.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:8900914}},testnet:!0}),MT=p({id:12324,name:"L3X Protocol",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.l3x.com"],webSocket:["wss://rpc-mainnet.l3x.com"]}},blockExplorers:{default:{name:"L3X Mainnet Explorer",url:"https://explorer.l3x.com",apiUrl:"https://explorer.l3x.com/api/v2"}},testnet:!1}),NT=p({id:12325,name:"L3X Protocol Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.l3x.com"],webSocket:["wss://rpc-testnet.l3x.com"]}},blockExplorers:{default:{name:"L3X Testnet Explorer",url:"https://explorer-testnet.l3x.com",apiUrl:"https://explorer-testnet.l3x.com/api/v2"}},testnet:!0}),LT=p({id:360890,name:"LAVITA Mainnet",nativeCurrency:{name:"vTFUEL",symbol:"vTFUEL",decimals:18},rpcUrls:{default:{http:["https://tsub360890-eth-rpc.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"LAVITA Explorer",url:"https://tsub360890-explorer.thetatoken.org"}},testnet:!1}),zT=p({id:232,name:"Lens",nativeCurrency:{name:"GHO",symbol:"GHO",decimals:18},rpcUrls:{default:{http:["https://rpc.lens.xyz"]}},blockExplorers:{default:{name:"Lens Block Explorer",url:"https://explorer.lens.xyz",apiUrl:"https://explorer.lens.xyz/api"}}}),RT=p({id:37111,name:"Lens Testnet",nativeCurrency:{name:"GRASS",symbol:"GRASS",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.lens.dev"],webSocket:["wss://rpc.testnet.lens.dev/ws"]}},blockExplorers:{default:{name:"Lens Block Explorer",url:"https://block-explorer.testnet.lens.dev",apiUrl:"https://block-explorer-api.staging.lens.dev/api"}},testnet:!0}),HT=p({id:21363,name:"Lestnet",nativeCurrency:{name:"Lestnet Ether",symbol:"LETH",decimals:18},rpcUrls:{default:{http:["https://service.lestnet.org"]}},blockExplorers:{default:{name:"Lestnet Explorer",url:"https://explore.lestnet.org"}},testnet:!0}),$T=p({id:1891,name:"LightLink Pegasus Testnet",network:"lightlink-pegasus",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.pegasus.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Pegasus Explorer",url:"https://pegasus.lightlink.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:127188532}},testnet:!0}),GT=p({id:1890,name:"LightLink Phoenix Mainnet",network:"lightlink-phoenix",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.phoenix.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Phoenix Explorer",url:"https://phoenix.lightlink.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:125499184}},testnet:!1});function Ze(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}class kn extends ${constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
72
72
  `),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class Hs extends ${constructor({docsPath:t,metaMessages:r,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:t,metaMessages:r,name:"AccountTypeNotSupportedError"})}}const jT={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},gb={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},VT={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function Mr(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new a4(e.type);return`${e.name}(${sl(e.inputs,{includeName:t})})`}function sl(e,{includeName:t=!1}={}){return e?e.map(r=>WT(r,{includeName:t})).join(t?", ":","):""}function WT(e,{includeName:t}){return e.type.startsWith("tuple")?`(${sl(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}class qT extends ${constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
73
73
  `),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class xb extends ${constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
74
74
  `),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class wb extends ${constructor({data:t,params:r,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(`
@@ -101,21 +101,21 @@
101
101
  ${gS(h)}`),super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",g].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Zb extends ${constructor(t,{abi:r,args:n,contractAddress:s,docsPath:a,functionName:o,sender:i}){const c=$s({abi:r,args:n,name:o}),l=c?Wb({abiItem:c,args:n,includeFunctionName:!1,includeName:!1}):void 0,u=c?Mr(c,{includeName:!0}):void 0,d=Mo({address:s&&xS(s),function:u,args:l&&l!=="()"&&`${[...Array((o==null?void 0:o.length)??0).keys()].map(()=>" ").join("")}${l}`,sender:i});super(t.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],d&&"Contract Call:",d].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=r,this.args=n,this.cause=t,this.contractAddress=s,this.functionName=o,this.sender=i}}class kp extends ${constructor({abi:t,data:r,functionName:n,message:s}){let a,o,i,c;if(r&&r!=="0x")try{o=Vb({abi:t,data:r});const{abiItem:u,errorName:d,args:f}=o;if(d==="Error")c=f[0];else if(d==="Panic"){const[h]=f;c=jT[h]}else{const h=u?Mr(u,{includeName:!0}):void 0,y=u&&f?Wb({abiItem:u,args:f,includeFunctionName:!1,includeName:!1}):void 0;i=[h?`Error: ${h}`:"",y&&y!=="()"?` ${[...Array((d==null?void 0:d.length)??0).keys()].map(()=>" ").join("")}${y}`:""]}}catch(u){a=u}else s&&(c=s);let l;a instanceof Eb&&(l=a.signature,i=[`Unable to decode signature "${l}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${l}.`]),super(c&&c!=="execution reverted"||l?[`The contract function "${n}" reverted with the following ${l?"signature":"reason"}:`,c||l].join(`
102
102
  `):`The contract function "${n}" reverted.`,{cause:a,metaMessages:i,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=o,this.raw=r,this.reason=c,this.signature=l}}class wS extends ${constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class vS extends ${constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class ll extends ${constructor({data:t,message:r}){super(r||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}class Gs extends ${constructor({body:t,cause:r,details:n,headers:s,status:a,url:o}){super("HTTP request failed.",{cause:r,details:n,metaMessages:[a&&`Status: ${a}`,`URL: ${Zo(o)}`,t&&`Request body: ${mt(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=s,this.status=a,this.url=o}}class Cp extends ${constructor({body:t,error:r,url:n}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${Zo(n)}`,`Request body: ${mt(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data,this.url=n}}class Xb extends ${constructor({body:t,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${Zo(r)}`,`Request body: ${mt(t)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=r}}const ES=-1;class Jt extends ${constructor(t,{code:r,docsPath:n,metaMessages:s,name:a,shortMessage:o}){super(o,{cause:t,docsPath:n,metaMessages:s||(t==null?void 0:t.metaMessages),name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||t.name,this.code=t instanceof Cp?t.code:r??ES}}class pr extends Jt{constructor(t,r){super(t,r),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}}class Xo extends Jt{constructor(t){super(t,{code:Xo.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Xo,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Qo extends Jt{constructor(t){super(t,{code:Qo.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Qo,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Jo extends Jt{constructor(t,{method:r}={}){super(t,{code:Jo.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}}Object.defineProperty(Jo,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class ei extends Jt{constructor(t){super(t,{code:ei.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
103
103
  `)})}}Object.defineProperty(ei,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class js extends Jt{constructor(t){super(t,{code:js.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(js,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class is extends Jt{constructor(t){super(t,{code:is.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
104
- `)})}}Object.defineProperty(is,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class ti extends Jt{constructor(t){super(t,{code:ti.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(ti,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class ri extends Jt{constructor(t){super(t,{code:ri.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(ri,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class ni extends Jt{constructor(t){super(t,{code:ni.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(ni,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Vs extends Jt{constructor(t,{method:r}={}){super(t,{code:Vs.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not supported.`})}}Object.defineProperty(Vs,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class $a extends Jt{constructor(t){super(t,{code:$a.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty($a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class si extends Jt{constructor(t){super(t,{code:si.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(si,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Ga extends pr{constructor(t){super(t,{code:Ga.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Ga,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class ai extends pr{constructor(t){super(t,{code:ai.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(ai,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class oi extends pr{constructor(t,{method:r}={}){super(t,{code:oi.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}}Object.defineProperty(oi,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class ii extends pr{constructor(t){super(t,{code:ii.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(ii,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class ci extends pr{constructor(t){super(t,{code:ci.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(ci,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class li extends pr{constructor(t){super(t,{code:li.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(li,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class ja extends pr{constructor(t){super(t,{code:ja.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(ja,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class ui extends pr{constructor(t){super(t,{code:ui.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(ui,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class di extends pr{constructor(t){super(t,{code:di.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(di,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class pi extends pr{constructor(t){super(t,{code:pi.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(pi,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class fi extends pr{constructor(t){super(t,{code:fi.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(fi,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class hi extends pr{constructor(t){super(t,{code:hi.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(hi,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Va extends pr{constructor(t){super(t,{code:Va.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Va,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class kS extends Jt{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}function ul(e,t){const r=(e.details||"").toLowerCase(),n=e instanceof $?e.walk(s=>(s==null?void 0:s.code)===Fa.code):e;return n instanceof $?new Fa({cause:e,message:n.details}):Fa.nodeMessage.test(r)?new Fa({cause:e,message:e.details}):as.nodeMessage.test(r)?new as({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Wd.nodeMessage.test(r)?new Wd({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):qd.nodeMessage.test(r)?new qd({cause:e,nonce:t==null?void 0:t.nonce}):Yd.nodeMessage.test(r)?new Yd({cause:e,nonce:t==null?void 0:t.nonce}):Kd.nodeMessage.test(r)?new Kd({cause:e,nonce:t==null?void 0:t.nonce}):Zd.nodeMessage.test(r)?new Zd({cause:e}):Xd.nodeMessage.test(r)?new Xd({cause:e,gas:t==null?void 0:t.gas}):Qd.nodeMessage.test(r)?new Qd({cause:e,gas:t==null?void 0:t.gas}):Jd.nodeMessage.test(r)?new Jd({cause:e}):Ua.nodeMessage.test(r)?new Ua({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new Lo({cause:e})}function Tp(e,{docsPath:t,...r}){const n=(()=>{const s=ul(e,r);return s instanceof Lo?e:s})();return new Kb(n,{docsPath:t,...r})}function Ws(e,{format:t}){if(!t)return{};const r={};function n(a){const o=Object.keys(a);for(const i of o)i in e&&(r[i]=e[i]),a[i]&&typeof a[i]=="object"&&!Array.isArray(a[i])&&n(a[i])}const s=t(e||{});return n(s),r}function en(e){const{account:t,maxFeePerGas:r,maxPriorityFeePerGas:n,to:s}=e,a=t?Ze(t):void 0;if(a&&!nt(a.address))throw new Ct({address:a.address});if(s&&!nt(s))throw new Ct({address:s});if(r&&r>Ls)throw new as({maxFeePerGas:r});if(n&&r&&n>r)throw new Ua({maxFeePerGas:r,maxPriorityFeePerGas:n})}async function CS(e,t){var s,a,o;const{account:r=e.account}=t;if(!r)throw new kn;const n=Ze(r);try{const{accessList:i,blockNumber:c,blockTag:l,data:u,gas:d,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:y,nonce:g,to:E,value:v,...w}=t,C=(typeof c=="bigint"?q(c):void 0)||l;en(t);const _=(o=(a=(s=e.chain)==null?void 0:s.formatters)==null?void 0:a.transactionRequest)==null?void 0:o.format,S=(_||Dr)({...Ws(w,{format:_}),account:n,accessList:i,data:u,gas:d,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:y,nonce:g,to:E,value:v},"estimateGas"),{baseFeePerGas:m,gasLimit:b,priorityFeePerGas:x}=await e.request({method:"linea_estimateGas",params:C?[S,C]:[S]});return{baseFeePerGas:BigInt(m),gasLimit:BigInt(b),priorityFeePerGas:BigInt(x)}}catch(i){throw Tp(i,{...t,account:n,chain:e.chain})}}const Sp={fees:{estimateFeesPerGas:Qb,async maxPriorityFeePerGas({block:e,client:t,request:r}){const n=await Qb({block:e,client:t,multiply:s=>s,request:r,type:"eip1559"});return n!=null&&n.maxPriorityFeePerGas?n.maxPriorityFeePerGas:null}}};async function Qb({client:e,multiply:t,request:r,type:n}){try{const s=await CS(e,{...r,account:r==null?void 0:r.account}),{priorityFeePerGas:a}=s,i=t(BigInt(s.baseFeePerGas))+a;return n==="legacy"?{gasPrice:i}:{maxFeePerGas:i,maxPriorityFeePerGas:a}}catch{return null}}const TS=p({...Sp,id:59144,name:"Linea Mainnet",blockTime:2e3,nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42},ensRegistry:{address:"0x50130b669B28C339991d8676FA73CF122a121267",blockCreated:6682888},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:22222151}},ensTlds:[".linea.eth"],testnet:!1}),SS=p({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://api-goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),AS=p({...Sp,id:59141,name:"Linea Sepolia Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.linea.build"],webSocket:["wss://rpc.sepolia.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.lineascan.build",apiUrl:"https://api-sepolia.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:227427},ensRegistry:{address:"0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7",blockCreated:2395094},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:17168484}},ensTlds:[".linea.eth"],testnet:!0}),PS=p({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),dl=1,IS=p({...V,id:1135,name:"Lisk",network:"lisk",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.lisk.com",apiUrl:"https://blockscout.lisk.com/api"}},contracts:{...V.contracts,multicall3:{address:"0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0"},l2OutputOracle:{[dl]:{address:"0x113cB99283AF242Da0A0C54347667edF531Aa7d6"}},portal:{[dl]:{address:"0x26dB93F8b8b4f7016240af62F7730979d353f9A7"}},l1StandardBridge:{[dl]:{address:"0x2658723Bf70c7667De6B25F99fcce13A16D25d08"}}},sourceId:dl}),pl=11155111,BS=p({...V,id:4202,network:"lisk-sepolia",name:"Lisk Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia-api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.lisk.com",apiUrl:"https://sepolia-blockscout.lisk.com/api"}},contracts:{...V.contracts,l2OutputOracle:{[pl]:{address:"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[pl]:{address:"0xe3d90F21490686Ec7eF37BE788E02dfC12787264"}},l1StandardBridge:{[pl]:{address:"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5"}}},testnet:!0,sourceId:pl}),FS=p({id:9496,name:"Load Alphanet",nativeCurrency:{name:"Testnet LOAD",symbol:"tLOAD",decimals:18},rpcUrls:{default:{http:["https://alphanet.load.network"]}},blockExplorers:{default:{name:"Load Alphanet Explorer",url:"https://explorer.load.network"}},testnet:!0}),US=p({id:1337,name:"Localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),OS=p({id:15551,name:"LoopNetwork Mainnet",nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},rpcUrls:{default:{http:["https://api.mainnetloop.com"]}},blockExplorers:{default:{name:"LoopNetwork Blockchain Explorer",url:"https://explorer.mainnetloop.com/"}},testnet:!1}),_S=p({id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network",apiUrl:"https://api.explorer.execution.mainnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:468183}}}),DS=p({id:4201,name:"LUKSO Testnet",nativeCurrency:{decimals:18,name:"LUKSO Testnet",symbol:"LYXt"},rpcUrls:{default:{http:["https://rpc.testnet.lukso.network"],webSocket:["wss://ws-rpc.testnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Testnet Explorer",url:"https://explorer.execution.testnet.lukso.network",apiUrl:"https://api.explorer.execution.testnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:605348}},testnet:!0}),MS=p({id:994873017,name:"Lumia Mainnet",network:"LumiaMainnet",nativeCurrency:{name:"Lumia",symbol:"LUMIA",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.lumia.org"]}},blockExplorers:{default:{name:"Lumia Explorer",url:"https://explorer.lumia.org/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3975939}},testnet:!1}),NS=p({id:1952959480,name:"Lumia Testnet",network:"LumiaTestnet",nativeCurrency:{name:"Lumia",symbol:"LUMIA",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.lumia.org"]}},blockExplorers:{default:{name:"Lumia Testnet Explorer",url:"https://testnet-explorer.lumia.org/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2235063}},testnet:!0}),LS=p({id:96370,name:"Lumoz",nativeCurrency:{decimals:18,name:"Lumoz Token",symbol:"MOZ"},rpcUrls:{default:{http:["https://rpc.lumoz.org"]}},blockExplorers:{default:{name:"Lumoz Scan",url:"https://scan.lumoz.info"}},testnet:!1}),zS=p({id:105363,name:"Lumoz Testnet",nativeCurrency:{decimals:18,name:"Lumoz Testnet Token",symbol:"MOZ"},rpcUrls:{default:{http:["https://testnet-rpc.lumoz.org"]}},testnet:!0}),RS=p({id:721,name:"Lycan",nativeCurrency:{decimals:18,name:"Lycan",symbol:"LYC"},rpcUrls:{default:{http:["https://rpc.lycanchain.com","https://us-east.lycanchain.com","https://us-west.lycanchain.com","https://eu-north.lycanchain.com","https://eu-west.lycanchain.com","https://asia-southeast.lycanchain.com"],webSocket:["wss://rpc.lycanchain.com","wss://us-east.lycanchain.com","wss://us-west.lycanchain.com","wss://eu-north.lycanchain.com","wss://eu-west.lycanchain.com","wss://asia-southeast.lycanchain.com"]}},blockExplorers:{default:{name:"Lycan Explorer",url:"https://explorer.lycanchain.com"}}}),HS=p({id:957,name:"Lyra Chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.lyra.finance"]}},blockExplorers:{default:{name:"Lyra Explorer",url:"https://explorer.lyra.finance",apiUrl:"https://explorer.lyra.finance/api/v2"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1935198}}}),$S=p({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),GS=p({id:595,name:"Mandala TC9",network:"mandala",nativeCurrency:{name:"Mandala",symbol:"mACA",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]}},blockExplorers:{default:{name:"Mandala Blockscout",url:"https://blockscout.mandala.aca-staging.network",apiUrl:"https://blockscout.mandala.aca-staging.network/api"}},testnet:!0}),jS=p({id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network",apiUrl:"https://pacific-explorer.manta.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:332890}}}),VS=p({id:3441006,name:"Manta Pacific Sepolia Testnet",network:"manta-sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.sepolia-testnet.manta.network/http"]}},blockExplorers:{default:{name:"Manta Sepolia Testnet Explorer",url:"https://pacific-explorer.sepolia-testnet.manta.network",apiUrl:"https://pacific-explorer.sepolia-testnet.manta.network/api"}},contracts:{multicall3:{address:"0xca54918f7B525C8df894668846506767412b53E3",blockCreated:479584}},testnet:!0}),WS=p({id:3441005,name:"Manta Pacific Testnet",network:"manta-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://manta-testnet.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network",apiUrl:"https://pacific-explorer.testnet.manta.network/api"}},contracts:{multicall3:{address:"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C",blockCreated:419915}},testnet:!0}),qS=p({id:5e3,name:"Mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Explorer",url:"https://mantlescan.xyz/",apiUrl:"https://api.mantlescan.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}}),YS=p({id:5003,name:"Mantle Sepolia Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.sepolia.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.sepolia.mantle.xyz/",apiUrl:"https://explorer.sepolia.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4584012}},testnet:!0}),KS=p({id:5001,name:"Mantle Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",apiUrl:"https://explorer.testnet.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:561333}},testnet:!0}),ZS=p({id:5887,name:"MANTRA DuKong EVM Testnet",nativeCurrency:{decimals:18,name:"MANTRA",symbol:"MANTRA"},rpcUrls:{default:{http:["https://evm.dukong.mantrachain.io"]}},blockExplorers:{default:{name:"MANTRAScan",url:"https://mantrascan.io/dukong"}},testnet:!0}),XS=p({id:5888,name:"MANTRA EVM",nativeCurrency:{decimals:18,name:"OM",symbol:"OM"},rpcUrls:{default:{http:["https://evm.mantrachain.io"],webSocket:["https://evm.mantrachain.io/ws"]}},blockExplorers:{default:{name:"MANTRA Scan",url:"https://mantrascan.io/mainnet"}}}),QS=p({id:22776,name:"MAP Protocol",nativeCurrency:{decimals:18,name:"MAPO",symbol:"MAPO"},rpcUrls:{default:{http:["https://rpc.maplabs.io"]}},blockExplorers:{default:{name:"MAPO Scan",url:"https://maposcan.io"}},testnet:!1}),JS=p({id:698,name:"Matchain",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://rpc.matchain.io"]}},blockExplorers:{default:{name:"Matchain Scan",url:"https://matchscan.io"}}}),eA=p({id:699,name:"Matchain Testnet",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.matchain.io"]}},blockExplorers:{default:{name:"Matchain Scan",url:"https://testnet.matchscan.io"}},testnet:!0}),tA=p({id:29548,name:"MCH Verse",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.oasys.mycryptoheroes.net"]}},blockExplorers:{default:{name:"MCH Verse Explorer",url:"https://explorer.oasys.mycryptoheroes.net",apiUrl:"https://explorer.oasys.mycryptoheroes.net/api"}},testnet:!1}),rA=p({id:6342,blockTime:1e3,name:"MegaETH Testnet",nativeCurrency:{name:"MegaETH Testnet Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://carrot.megaeth.com/rpc"],webSocket:["wss://carrot.megaeth.com/ws"]}},blockExplorers:{default:{name:"MegaETH Testnet Explorer",url:"https://www.megaexplorer.xyz/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0}),nA=p({id:7078815900,name:"Mekong Pectra Devnet",nativeCurrency:{name:"eth",symbol:"eth",decimals:18},rpcUrls:{default:{http:["https://rpc.mekong.ethpandaops.io"]}},blockExplorers:{default:{name:"Block Explorer",url:"https://explorer.mekong.ethpandaops.io"}},testnet:!0}),sA=p({id:333000333,name:"Meld",nativeCurrency:{decimals:18,name:"Meld",symbol:"MELD"},rpcUrls:{default:{http:["https://rpc-1.meld.com"]}},blockExplorers:{default:{name:"MELDscan",url:"https://meldscan.io"}},contracts:{multicall3:{address:"0x769ee5a8e82c15c1b6e358f62ac8eb6e3abe8dc5",blockCreated:360069}}}),aA=p({id:4352,name:"MemeCore",nativeCurrency:{decimals:18,name:"M",symbol:"M"},rpcUrls:{default:{http:["https://rpc.memecore.net"],webSocket:["wss://ws.memecore.net"]}},blockExplorers:{default:{name:"MemeCore Explorer",url:"https://memecorescan.io",apiUrl:"https://api.memecorescan.io/api"},okx:{name:"MemeCore Explorer",url:"https://web3.okx.com/explorer/memecore"},memecore:{name:"MemeCore Explorer",url:"https://blockscout.memecore.com",apiUrl:"https://blockscout.memecore.com/api"}}}),oA=p({id:43521,name:"Formicarium",nativeCurrency:{decimals:18,name:"M",symbol:"M"},rpcUrls:{default:{http:["https://rpc.formicarium.memecore.net"],webSocket:["wss://ws.formicarium.memecore.net"]}},blockExplorers:{default:{name:"MemeCore Testnet Explorer",url:"https://formicarium.memecorescan.io"},okx:{name:"MemeCore Testnet Explorer",url:"https://web3.okx.com/explorer/formicarium-testnet"},memecore:{name:"MemeCore Testnet Explorer",url:"https://formicarium.blockscout.memecore.com",apiUrl:"https://formicarium.blockscout.memecore.com/api"}},testnet:!0}),iA=p({id:4200,name:"Merlin",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://scan.merlinchain.io",apiUrl:"https://scan.merlinchain.io/api"}}}),cA=p({id:4203,name:"Merlin Erigon Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-erigon-rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet-erigon-scan.merlinchain.io",apiUrl:"https://testnet-erigon-scan.merlinchain.io/api"}},testnet:!0}),lA=p({id:571,name:"MetaChain Mainnet",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://rpc.metatime.com"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://explorer.metatime.com"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}}}),uA=p({id:1453,name:"MetaChain Istanbul",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://istanbul-rpc.metachain.dev"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://istanbul-explorer.metachain.dev"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}},testnet:!0}),dA=p({id:11,name:"Metadium Network",nativeCurrency:{decimals:18,name:"META",symbol:"META"},rpcUrls:{default:{http:["https://api.metadium.com/prod"]}},blockExplorers:{default:{name:"Metadium Explorer",url:"https://explorer.metadium.com"}},testnet:!1}),fl=1,pA=p({...V,id:1750,name:"Metal L2",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.metall2.com"],webSocket:["wss://rpc.metall2.com"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.metall2.com",apiUrl:"https://explorer.metall2.com/api"}},contracts:{...V.contracts,l2OutputOracle:{[fl]:{address:"0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},portal:{[fl]:{address:"0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956"}},l1StandardBridge:{[fl]:{address:"0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3"}}},sourceId:fl}),fA=p({id:82,name:"Meter",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpc.meter.io"]}},blockExplorers:{default:{name:"MeterScan",url:"https://scan.meter.io"}}}),hA=p({id:83,name:"Meter Testnet",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpctest.meter.io"]}},blockExplorers:{default:{name:"MeterTestnetScan",url:"https://scan-warringstakes.meter.io"}}}),mA=p({id:1088,name:"Metis",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://metis.rpc.hypersync.xyz","https://metis-pokt.nodies.app","https://api.blockeden.xyz/metis/67nCBdZQSH9z3YqDDjdm","https://metis-andromeda.rpc.thirdweb.com","https://metis-andromeda.gateway.tenderly.co","https://metis.api.onfinality.io/public","https://andromeda.metis.io/?owner=1088","https://metis-mainnet.public.blastapi.io"],webSocket:["wss://metis-rpc.publicnode.com","wss://metis.drpc.org"]}},blockExplorers:{default:{name:"Metis Explorer",url:"https://explorer.metis.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}}),bA=p({id:599,name:"Metis Goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link",apiUrl:"https://goerli.explorer.metisdevops.link/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}}}),yA=p({id:59902,name:"Metis Sepolia",nativeCurrency:{decimals:18,name:"Test Metis",symbol:"tMETIS"},rpcUrls:{default:{http:["https://sepolia.metisdevops.link","https://metis-sepolia-rpc.publicnode.com","https://metis-sepolia.gateway.tenderly.co"],webSocket:["wss://metis-sepolia-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Metis Sepolia Explorer",url:"https://sepolia-explorer.metisdevops.link",apiUrl:"https://sepolia-explorer.metisdevops.link/api-docs"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:224185}}}),gA=p({id:7518,name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}}),xA=p({id:4759,name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0}),wA=p({id:185,name:"Mint Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain explorer",url:"https://explorer.mintchain.io"}},testnet:!1}),vA=p({id:1686,name:"Mint Sepolia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain Testnet explorer",url:"https://testnet-explorer.mintchain.io"}},testnet:!0}),EA=p({id:124832,name:"Mitosis Testnet",nativeCurrency:{name:"MITO",symbol:"MITO",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.mitosis.org"]}},blockExplorers:{default:{name:"Mitosis testnet explorer",url:"https://testnet.mitosiscan.xyz"}},testnet:!0}),hl=1,kA=p({...V,id:34443,name:"Mode Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.mode.network"]}},blockExplorers:{default:{name:"Modescan",url:"https://modescan.io"}},contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2465882},l2OutputOracle:{[hl]:{address:"0x4317ba146D4933D889518a3e5E11Fe7a53199b04"}},portal:{[hl]:{address:"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07"}},l1StandardBridge:{[hl]:{address:"0x735aDBbE72226BD52e818E7181953f42E3b0FF21"}}},sourceId:hl}),ml=11155111,CA=p({...V,id:919,name:"Mode Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network",apiUrl:"https://sepolia.explorer.mode.network/api"}},contracts:{...V.contracts,l2OutputOracle:{[ml]:{address:"0x2634BD65ba27AB63811c74A63118ACb312701Bfa",blockCreated:3778393}},portal:{[ml]:{address:"0x320e1580effF37E008F1C92700d1eBa47c1B23fD",blockCreated:3778395}},l1StandardBridge:{[ml]:{address:"0xbC5C679879B2965296756CD959C3C739769995E2",blockCreated:3778392}},multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0,sourceId:ml}),TA=p({id:143,name:"Monad",blockTime:400,nativeCurrency:{name:"Monad",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://rpc.monad.xyz","https://rpc1.monad.xyz"],webSocket:["wss://rpc.monad.xyz","wss://rpc1.monad.xyz"]}},blockExplorers:{default:{name:"MonadVision",url:"https://monadvision.com"},monadscan:{name:"Monadscan",url:"https://monadscan.com",apiUrl:"https://api.monadscan.com/api"}},testnet:!1,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:9248132}}}),SA=p({id:10143,name:"Monad Testnet",blockTime:400,nativeCurrency:{name:"Testnet MON Token",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.monad.xyz"]}},blockExplorers:{default:{name:"Monad Testnet explorer",url:"https://testnet.monadexplorer.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:251449}},testnet:!0}),AA=p({id:1287,name:"Moonbase Alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io",apiUrl:"https://moonbase.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0}),PA=p({id:1284,name:"Moonbeam",nativeCurrency:{decimals:18,name:"GLMR",symbol:"GLMR"},rpcUrls:{default:{http:["https://rpc.api.moonbeam.network"],webSocket:["wss://wss.api.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io",apiUrl:"https://api-moonbeam.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1}),IA=p({id:1281,name:"Moonbeam Development Node",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]}}}),BA=p({id:1285,name:"Moonriver",nativeCurrency:{decimals:18,name:"MOVR",symbol:"MOVR"},rpcUrls:{default:{http:["https://rpc.api.moonriver.moonbeam.network"],webSocket:["wss://wss.api.moonriver.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io",apiUrl:"https://api-moonriver.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1}),FA=p({id:2818,name:"Morph",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.morphl2.io"],webSocket:["wss://rpc.morphl2.io:8443"]}},blockExplorers:{default:{name:"Morph Explorer",url:"https://explorer.morphl2.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3654913}},testnet:!1}),UA=p({id:2810,name:"Morph Holesky",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-quicknode-holesky.morphl2.io"],webSocket:["wss://rpc-quicknode-holesky.morphl2.io"]}},blockExplorers:{default:{name:"Morph Holesky Explorer",url:"https://explorer-holesky.morphl2.io",apiUrl:"https://explorer-api-holesky.morphl2.io/api?"}},testnet:!0}),OA=p({id:2710,name:"Morph Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.morphl2.io"]}},blockExplorers:{default:{name:"Morph Testnet Explorer",url:"https://explorer-testnet.morphl2.io",apiUrl:"https://explorer-api-testnet.morphl2.io/api"}},testnet:!0}),_A=p({id:5551,name:"Nahmii 2 Mainnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://l2.nahmii.io"]}},blockExplorers:{default:{name:"Nahmii 2 Explorer",url:"https://explorer.n2.nahmii.io"}},testnet:!1}),DA=p({id:22222,name:"Nautilus Mainnet",nativeCurrency:{name:"ZBC",symbol:"ZBC",decimals:9},rpcUrls:{default:{http:["https://api.nautilus.nautchain.xyz"]}},blockExplorers:{default:{name:"NautScan",url:"https://nautscan.com"}}}),MA=p({id:397,name:"NEAR Protocol",nativeCurrency:{decimals:18,name:"NEAR",symbol:"NEAR"},rpcUrls:{default:{http:["https://eth-rpc.mainnet.near.org"]}},blockExplorers:{default:{name:"NEAR Explorer",url:"https://eth-explorer.near.org"}},testnet:!1}),NA=p({id:398,name:"NEAR Protocol Testnet",nativeCurrency:{decimals:18,name:"NEAR",symbol:"NEAR"},rpcUrls:{default:{http:["https://eth-rpc.testnet.near.org"]}},blockExplorers:{default:{name:"NEAR Explorer",url:"https://eth-explorer-testnet.near.org"}},testnet:!0}),LA=p({id:245022926,name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://devnet.neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0}),zA=p({id:245022934,network:"neonMainnet",name:"Neon EVM MainNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://neon-proxy-mainnet.solana.p2p.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:206545524}},testnet:!1}),RA=p({id:47763,name:"Neo X Mainnet",nativeCurrency:{name:"Gas",symbol:"GAS",decimals:18},rpcUrls:{default:{http:["https://mainnet-1.rpc.banelabs.org","https://mainnet-2.rpc.banelabs.org"]}},blockExplorers:{default:{name:"Neo X - Explorer",url:"https://xexplorer.neo.org"}},testnet:!1}),HA=p({id:12227332,name:"Neo X Testnet T4",nativeCurrency:{name:"Gas",symbol:"GAS",decimals:18},rpcUrls:{default:{http:["https://testnet.rpc.banelabs.org/"]}},blockExplorers:{default:{name:"neox-scan",url:"https://xt4scan.ngd.network"}},testnet:!0}),$A=p({id:1012,name:"Newton",nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},rpcUrls:{default:{http:["https://global.rpc.mainnet.newtonproject.org"]}},blockExplorers:{default:{name:"NewFi explorer",url:"https://explorer.newtonproject.org/"}},testnet:!1}),GA=p({id:4242,name:"Nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{default:{name:"NexiScan",url:"https://www.nexiscan.com",apiUrl:"https://www.nexiscan.com/api"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}}),jA=p({id:240,name:"Nexilix Smart Chain",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}}),VA=p({id:6900,name:"Nibiru",nativeCurrency:{decimals:18,name:"NIBI",symbol:"NIBI"},rpcUrls:{default:{http:["https://evm-rpc.nibiru.fi"]}},blockExplorers:{default:{name:"NibiScan",url:"https://nibiscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:19587573}}}),WA=p({id:200024,name:"Nitrograph Testnet",testnet:!0,rpcUrls:{default:{http:["https://rpc-testnet.nitrograph.foundation"]}},nativeCurrency:{name:"Nitro",symbol:"NOS",decimals:18},blockExplorers:{default:{url:"https://explorer-testnet.nitrograph.foundation",name:"Nitrograph Explorer"}}}),qA=p({id:166,name:"Nomina",nativeCurrency:{name:"Nomina",symbol:"NOM",decimals:18},rpcUrls:{default:{http:["https://mainnet.nomina.io"],webSocket:["wss://mainnet.nomina.io"]}},blockExplorers:{default:{name:"Nomina Explorer",url:"https://nomscan.io"}},testnet:!1}),YA=p({id:4090,network:"oasis-testnet",name:"Oasis Testnet",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.oasis.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://oasis.ftnscan.com",apiUrl:"https://oasis.ftnscan.com/api"}},testnet:!0}),KA=p({id:248,name:"Oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games",apiUrl:"https://scan.oasys.games/api"}}}),ZA=p({id:911867,name:"Odyssey Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://odyssey.ithaca.xyz"]}},blockExplorers:{default:{name:"Odyssey Explorer",url:"https://odyssey-explorer.ithaca.xyz",apiUrl:"https://odyssey-explorer.ithaca.xyz/api"}},testnet:!0}),XA=p({id:66,name:"OKC",nativeCurrency:{decimals:18,name:"OKT",symbol:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}}),QA=p({id:311,name:"Omax Mainnet",nativeCurrency:{decimals:18,name:"OMAX",symbol:"OMAX"},rpcUrls:{default:{http:["https://mainapi.omaxray.com"]}},blockExplorers:{default:{name:"Omax Explorer",url:"https://omaxscan.com"}},testnet:!1}),JA=p({id:166,name:"Omni",nativeCurrency:{name:"Omni",symbol:"OMNI",decimals:18},rpcUrls:{default:{http:["https://mainnet.omni.network"],webSocket:["wss://mainnet.omni.network"]}},blockExplorers:{default:{name:"OmniScan",url:"https://omniscan.network"}},testnet:!1}),eP=p({id:164,name:"Omni Omega",nativeCurrency:{name:"Omni",symbol:"OMNI",decimals:18},rpcUrls:{default:{http:["https://omega.omni.network"],webSocket:["wss://omega.omni.network"]}},blockExplorers:{default:{name:"Omega OmniScan",url:"https://omega.omniscan.network/"}},testnet:!0}),tP=p({id:309075,name:"One World Chain Mainnet",nativeCurrency:{decimals:18,name:"OWCT",symbol:"OWCT"},rpcUrls:{default:{http:["https://mainnet-rpc.oneworldchain.org"]}},blockExplorers:{default:{name:"One World Explorer",url:"https://mainnet.oneworldchain.org"}},testnet:!1}),rP=p({id:9700,name:"OORT MainnetDev",nativeCurrency:{decimals:18,name:"OORT",symbol:"OORT"},rpcUrls:{default:{http:["https://dev-rpc.oortech.com"]}},blockExplorers:{default:{name:"OORT MainnetDev Explorer",url:"https://dev-scan.oortech.com"}}}),bl=56,nP=p({id:204,name:"opBNB",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opBNB (BSCScan)",url:"https://opbnb.bscscan.com",apiUrl:"https://api-opbnb.bscscan.com/api"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881},l2OutputOracle:{[bl]:{address:"0x153CAB79f4767E2ff862C94aa49573294B13D169"}},portal:{[bl]:{address:"0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519"}},l1StandardBridge:{[bl]:{address:"0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea"}}},sourceId:bl}),yl=97,sP=p({id:5611,name:"opBNB Testnet",nativeCurrency:{decimals:18,name:"tBNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://opbnb-testnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://testnet.opbnbscan.com"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108},l2OutputOracle:{[yl]:{address:"0xFf2394Bb843012562f4349C6632a0EcB92fC8810"}},portal:{[yl]:{address:"0x4386C8ABf2009aC0c263462Da568DD9d46e52a31"}},l1StandardBridge:{[yl]:{address:"0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840"}}},testnet:!0,sourceId:yl}),aP=p({id:1612,name:"OpenLedger",nativeCurrency:{name:"Open",symbol:"OPEN",decimals:18},rpcUrls:{default:{http:["https://rpc.openledger.xyz"]}},blockExplorers:{default:{name:"OpenLedger Explorer",url:"https://scan.openledger.xyz"}},testnet:!1}),mi=1,oP=p({...V,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...V.contracts,disputeGameFactory:{[mi]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[mi]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[mi]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[mi]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:mi}),gl=5,iP=p({...V,id:420,name:"Optimism Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.optimism.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io",apiUrl:"https://goerli-optimism.etherscan.io/api"}},contracts:{...V.contracts,l2OutputOracle:{[gl]:{address:"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461},portal:{[gl]:{address:"0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383"}},l1StandardBridge:{[gl]:{address:"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8"}}},testnet:!0,sourceId:gl}),bi=11155111,cP=p({...V,id:11155420,name:"OP Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.optimism.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com",apiUrl:"https://optimism-sepolia.blockscout.com/api"}},contracts:{...V.contracts,disputeGameFactory:{[bi]:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{[bi]:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{[bi]:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{[bi]:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:bi}),lP=p({id:62050,name:"Optopia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.optopia.ai"]}},blockExplorers:{default:{name:"Optopia Explorer",url:"https://scan.optopia.ai"}},testnet:!1}),uP=p({id:62049,name:"Optopia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.optopia.ai"]}},blockExplorers:{default:{name:"Optopia Explorer",url:"https://scan-testnet.optopia.ai"}},testnet:!0}),dP=p({id:291,name:"Orderly",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.orderly.network"]}},blockExplorers:{default:{name:"Orderly Explorer",url:"https://explorer.orderly.network"}},testnet:!1}),pP=p({id:4460,name:"Orderly Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://l2-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"]}},blockExplorers:{default:{name:"Orderly Explorer",url:"https://explorerl2new-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"}},testnet:!0}),fP=p({id:41144114,name:"Otim Devnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["http://devnet.otim.xyz"]}},contracts:{batchInvoker:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3"}}}),hP=p({id:11297108109,name:"Palm",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}}}),mP=p({id:11297108099,name:"Palm Testnet",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}},testnet:!0}),bP=p({id:3338,name:"Peaq",nativeCurrency:{decimals:18,name:"peaq",symbol:"PEAQ"},rpcUrls:{default:{http:["https://quicknode1.peaq.xyz","https://quicknode2.peaq.xyz","https://quicknode3.peaq.xyz"],webSocket:["wss://quicknode1.peaq.xyz","wss://quicknode2.peaq.xyz","wss://quicknode3.peaq.xyz"]}},blockExplorers:{default:{name:"Subscan",url:"https://peaq.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3566354}}}),xl=1,yP=p({id:424,network:"pgn",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Explorer",url:"https://explorer.publicgoods.network",apiUrl:"https://explorer.publicgoods.network/api"}},contracts:{l2OutputOracle:{[xl]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209},portal:{[xl]:{address:"0xb26Fd985c5959bBB382BAFdD0b879E149e48116c"}},l1StandardBridge:{[xl]:{address:"0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b"}}},formatters:ip,sourceId:xl}),wl=11155111,gP=p({id:58008,network:"pgn-testnet",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network",apiUrl:"https://explorer.sepolia.publicgoods.network/api"}},contracts:{l2OutputOracle:{[wl]:{address:"0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe"}},portal:{[wl]:{address:"0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179"}},l1StandardBridge:{[wl]:{address:"0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},formatters:ip,sourceId:wl,testnet:!0}),xP=p({id:13381,name:"Phoenix Blockchain",nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},rpcUrls:{default:{http:["https://rpc.phoenixplorer.com"]}},blockExplorers:{default:{name:"Phoenixplorer",url:"https://phoenixplorer.com",apiUrl:"https://phoenixplorer.com/api"}},contracts:{multicall3:{address:"0x498cF757a575cFF2c2Ed9f532f56Efa797f86442",blockCreated:5620192}}}),wP=p({id:7070,name:"Planq Mainnet",nativeCurrency:{decimals:18,name:"PLQ",symbol:"PLQ"},rpcUrls:{default:{http:["https://planq-rpc.nodies.app","https://evm-rpc.planq.network","https://jsonrpc.planq.nodestake.top"]}},blockExplorers:{default:{name:"Planq Explorer",url:"https://evm.planq.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8470015}},testnet:!1}),vP=p({id:9745,name:"Plasma",blockTime:1e3,nativeCurrency:{name:"Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://rpc.plasma.to"]}},blockExplorers:{default:{name:"PlasmaScan",url:"https://plasmascan.to"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),EP=p({id:9747,name:"Plasma Devnet",nativeCurrency:{name:"Devnet Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://devnet-rpc.plasma.to"]}},testnet:!0,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),kP=p({id:9746,name:"Plasma Testnet",nativeCurrency:{name:"Testnet Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plasma.to"]}},blockExplorers:{default:{name:"RouteScan",url:"https://testnet.plasmascan.to"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}),CP=p({...ur,id:1612127,name:"PlayFi Albireo Testnet",network:"albireo",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://albireo-rpc.playfi.ai"],webSocket:["wss://albireo-rpc-ws.playfi.ai/ws"]}},blockExplorers:{default:{name:"PlayFi Albireo Explorer",url:"https://albireo-explorer.playfi.ai"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0}),TP=p({id:242,name:"Plinga",nativeCurrency:{name:"Plinga",symbol:"PLINGA",decimals:18},rpcUrls:{default:{http:["https://rpcurl.mainnet.plgchain.com"]}},blockExplorers:{default:{name:"Plgscan",url:"https://www.plgscan.com"}},contracts:{multicall3:{address:"0x0989576160f2e7092908BB9479631b901060b6e4",blockCreated:204489}}}),SP=p({id:98865,name:"Plume (Legacy)",nativeCurrency:{name:"Plume Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.plumenetwork.xyz"],webSocket:["wss://rpc.plumenetwork.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.plumenetwork.xyz",apiUrl:"https://explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:48577}},sourceId:1}),AP=p({id:98864,name:"Plume Devnet (Legacy)",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://test-rpc.plumenetwork.xyz"],webSocket:["wss://test-rpc.plumenetwork.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://test-explorer.plumenetwork.xyz",apiUrl:"https://test-explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:481948}},testnet:!0,sourceId:11155111}),PP=p({id:98866,name:"Plume",nativeCurrency:{name:"Plume",symbol:"PLUME",decimals:18},rpcUrls:{default:{http:["https://rpc.plume.org"],webSocket:["wss://rpc.plume.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.plume.org",apiUrl:"https://explorer.plume.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:39679}},sourceId:1}),IP=p({id:98867,name:"Plume Testnet",nativeCurrency:{name:"Plume",symbol:"PLUME",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plume.org"],webSocket:["wss://testnet-rpc.plume.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plume.org",apiUrl:"https://testnet-explorer.plume.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:199712}},testnet:!0,sourceId:11155111}),BP=p({id:161221135,name:"Plume Testnet (Legacy)",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plumenetwork.xyz/http"],webSocket:["wss://testnet-rpc.plumenetwork.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plumenetwork.xyz",apiUrl:"https://testnet-explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6022332}},testnet:!0,sourceId:11155111}),FP=p({id:631571,name:"Polter Testnet",nativeCurrency:{decimals:18,name:"Polter GHST",symbol:"GHST"},rpcUrls:{default:{http:["https://geist-polter.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://polter-testnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11245}},testnet:!0}),UP=p({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),OP=p({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://amoy.polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0}),_P=p({id:80001,name:"Polygon Mumbai",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://80001.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com",apiUrl:"https://api-testnet.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0}),DP=p({id:1101,name:"Polygon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com",apiUrl:"https://api-zkevm.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}}),MP=p({id:2442,name:"Polygon zkEVM Cardona",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.cardona.zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://cardona-zkevm.polygonscan.com",apiUrl:"https://cardona-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:114091}}}),NP=p({id:1442,name:"Polygon zkEVM Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com",apiUrl:"https://testnet-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}}),LP=p({id:8008,name:"Polynomial",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.polynomial.fi"]}},blockExplorers:{default:{name:"Polynomial Scan",url:"https://polynomialscan.io"}},testnet:!1,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),zP=p({id:80008,name:"Polynomia Sepolia",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.sepolia.polynomial.fi"]}},blockExplorers:{default:{name:"Polynomial Scan",url:"https://sepolia.polynomialscan.io"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),RP=p({id:60603,name:"POTOS Mainnet",nativeCurrency:{decimals:18,name:"POTOS Token",symbol:"POT"},rpcUrls:{default:{http:["https://rpc.potos.hk"]}},blockExplorers:{default:{name:"POTOS Mainnet explorer",url:"https://scan.potos.hk"}},testnet:!1}),HP=p({id:60600,name:"POTOS Testnet",nativeCurrency:{decimals:18,name:"POTOS Token",symbol:"POT"},rpcUrls:{default:{http:["https://rpc-testnet.potos.hk"]}},blockExplorers:{default:{name:"POTOS Testnet explorer",url:"https://scan-testnet.potos.hk"}},testnet:!0}),$P=p({id:23023,name:"PremiumBlock Testnet",nativeCurrency:{name:"Premium Block",symbol:"PBLK",decimals:18},rpcUrls:{default:{http:["https://rpc.premiumblock.org"]}},blockExplorers:{default:{name:"PremiumBlocks Explorer",url:"https://scan.premiumblock.org"}},testnet:!0}),GP=p({id:369,name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,blockTime:1e4,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://ipfs.scan.pulsechain.com",apiUrl:"https://api.scan.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),jP=p({id:943,name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},blockTime:1e4,rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com",apiUrl:"https://scan.v4.testnet.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),VP=p({id:490092,name:"Pumpfi Testnet",nativeCurrency:{decimals:18,name:"PMPT",symbol:"PMPT"},rpcUrls:{default:{http:["https://rpc1testnet.pumpfi.me"]}},blockExplorers:{default:{name:"Pumpfi Testnet Scan",url:"https://testnetscan.pumpfi.me"}},testnet:!0}),Jb=11155111,WP=p({...V,name:"Pyrope Testnet",testnet:!0,id:695569,sourceId:Jb,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.pyropechain.com"],webSocket:["wss://rpc.pyropechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://pyrope.blockscout.com"}},contracts:{...V.contracts,l1StandardBridge:{[Jb]:{address:"0xC24932c31D9621aE9e792576152B7ef010cFC2F8"}}}}),qP=p({id:766,name:"QL1",nativeCurrency:{decimals:18,name:"QOM",symbol:"QOM"},rpcUrls:{default:{http:["https://rpc.qom.one"]}},blockExplorers:{default:{name:"Ql1 Explorer",url:"https://scan.qom.one"}},contracts:{multicall3:{address:"0x7A52370716ea730585884F5BDB0f6E60C39b8C64"}},testnet:!1}),YP=p({id:35441,name:"Q Mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org",apiUrl:"https://explorer.q.org/api"}}}),KP=p({id:35443,name:"Q Testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org",apiUrl:"https://explorer.qtestnet.org/api"}},testnet:!0}),ZP=p({id:9,name:"Quai Network Mainnet",nativeCurrency:{decimals:18,name:"Quai",symbol:"QUAI"},rpcUrls:{default:{http:["https://rpc.quai.network/cyprus1"]}},blockExplorers:{default:{name:"Quaiscan",url:"https://quaiscan.io",apiUrl:"https://quaiscan.io/api"}},testnet:!1}),XP=p({id:15e3,name:"Quai Network Testnet",nativeCurrency:{decimals:18,name:"Quai",symbol:"QUAI"},rpcUrls:{default:{http:["https://orchard.rpc.quai.network/cyprus1"]}},blockExplorers:{default:{name:"Orchard Quaiscan",url:"https://orchard.quaiscan.io",apiUrl:"https://orchard.quaiscan.io/api"}},testnet:!0}),QP=p({id:5318007,name:"Reactive Lasna Testnet",nativeCurrency:{decimals:18,name:"Lasna React",symbol:"lREACT"},rpcUrls:{default:{http:["https://lasna-rpc.rnk.dev"]}},blockExplorers:{default:{name:"Reactscan",url:"https://lasna.reactscan.net"}},testnet:!0}),JP=p({id:111188,name:"re.al",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://rpc.realforreal.gelato.digital"]}},blockExplorers:{default:{name:"re.al Explorer",url:"https://explorer.re.al",apiUrl:"https://explorer.re.al/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:695}}}),eI=p({id:151,name:"Redbelly Network Mainnet",nativeCurrency:{name:"Redbelly Native Coin",symbol:"RBNT",decimals:18},rpcUrls:{default:{http:["https://governors.mainnet.redbelly.network"]}},blockExplorers:{default:{name:"Routescan",url:"https://redbelly.routescan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/151/etherscan/api"}},testnet:!1}),tI=p({id:153,name:"Redbelly Network Testnet",nativeCurrency:{name:"Redbelly Native Coin",symbol:"RBNT",decimals:18},rpcUrls:{default:{http:["https://governors.testnet.redbelly.network"]}},blockExplorers:{default:{name:"Routescan",url:"https://redbelly.testnet.routescan.io",apiUrl:"https://api.routescan.io/v2/network/testnet/evm/153_2/etherscan/api"}},testnet:!0}),rI=p({id:50342,name:"Reddio",nativeCurrency:{name:"Reddio",symbol:"RED",decimals:18},rpcUrls:{default:{http:["https://mainnet.reddio.com/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://reddio.cloud.blockscout.com",apiUrl:"https://reddio.cloud.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:848849}},testnet:!1}),nI=p({id:50341,name:"Reddio Sepolia",nativeCurrency:{name:"Reddio",symbol:"RED",decimals:18},rpcUrls:{default:{http:["https://reddio-dev.reddio.com"]}},blockExplorers:{default:{name:"Reddioscan",url:"https://reddio-devnet.l2scan.co",apiUrl:"https://reddio-devnet.l2scan.co/api"}},testnet:!0}),vl=1,sI=p({...V,name:"Redstone",id:690,sourceId:vl,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:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[vl]:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:19578329}},l2OutputOracle:{[vl]:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:19578337}},l1StandardBridge:{[vl]:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:19578331}}}}),aI=p({id:47805,name:"REI Mainnet",nativeCurrency:{decimals:18,name:"REI",symbol:"REI"},rpcUrls:{default:{http:["https://rpc.rei.network"],webSocket:["wss://rpc.rei.network"]}},blockExplorers:{default:{name:"REI Scan",url:"https://scan.rei.network"}},testnet:!1}),oI=p({id:1729,name:"Reya Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.reya.network"],webSocket:["wss://ws.reya.network"]}},blockExplorers:{default:{name:"Reya Network Explorer",url:"https://explorer.reya.network"}},testnet:!1}),iI=p({id:11155931,name:"RISE Testnet",nativeCurrency:{name:"RISE Testnet Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.riselabs.xyz"],webSocket:["wss://testnet.riselabs.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.testnet.riselabs.xyz/",apiUrl:"https://explorer.testnet.riselabs.xyz/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},testnet:!0}),cI=p({id:753,name:"Rivalz",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rivalz.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Rivalz Caldera Explorer",url:"https://rivalz.calderaexplorer.xyz"}},testnet:!1}),lI=p({id:570,name:"Rollux Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com",apiUrl:"https://explorer.rollux.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}}),uI=p({id:57e3,name:"Rollux Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io",apiUrl:"https://rollux.tanenbaum.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}}}),dI=p({id:2020,name:"Ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}}),pI=p({id:7668,name:"The Root Network",nativeCurrency:{decimals:18,name:"XRP",symbol:"XRP"},rpcUrls:{default:{http:["https://root.rootnet.live/archive"],webSocket:["wss://root.rootnet.live/archive/ws"]}},blockExplorers:{default:{name:"Rootscan",url:"https://rootscan.io"}},contracts:{multicall3:{address:"0xc9C2E2429AeC354916c476B30d729deDdC94988d",blockCreated:9218338}}}),fI=p({id:7672,name:"The Root Network - Porcini",nativeCurrency:{decimals:18,name:"XRP",symbol:"XRP"},rpcUrls:{default:{http:["https://porcini.rootnet.app/archive"],webSocket:["wss://porcini.rootnet.app/archive/ws"]}},blockExplorers:{default:{name:"Rootscan",url:"https://porcini.rootscan.io"}},contracts:{multicall3:{address:"0xc9C2E2429AeC354916c476B30d729deDdC94988d",blockCreated:10555692}},testnet:!0}),hI=p({id:30,name:"Rootstock Mainnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"RBTC"},rpcUrls:{default:{http:["https://public-node.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.rsk.co"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4249540}}}),mI=p({id:31,name:"Rootstock Testnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"tRBTC"},rpcUrls:{default:{http:["https://public-node.testnet.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.testnet.rootstock.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2771150}},testnet:!0}),El=1,bI=p({...V,id:12553,name:"RSS3 VSL Mainnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Mainnet Scan",url:"https://scan.rss3.io",apiUrl:"https://scan.rss3.io/api"}},contracts:{...V.contracts,l2OutputOracle:{[El]:{address:"0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14193},portal:{[El]:{address:"0x6A12432491bbbE8d3babf75F759766774C778Db4",blockCreated:19387057}},l1StandardBridge:{[El]:{address:"0x4cbab69108Aa72151EDa5A3c164eA86845f18438"}}},sourceId:El}),kl=11155111,yI=p({...V,id:2331,name:"RSS3 VSL Sepolia Testnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Sepolia Testnet Scan",url:"https://scan.testnet.rss3.io",apiUrl:"https://scan.testnet.rss3.io/api"}},contracts:{...V.contracts,l2OutputOracle:{[kl]:{address:"0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:55697},portal:{[kl]:{address:"0xcBD77E8E1E7F06B25baDe67142cdE82652Da7b57",blockCreated:5345035}},l1StandardBridge:{[kl]:{address:"0xdDD29bb63B0839FB1cE0eE439Ff027738595D07B"}}},testnet:!0,sourceId:kl}),gI=p({id:7225878,name:"Saakuru Mainnet",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.saakuru.network"]}},blockExplorers:{default:{name:"Saakuru Explorer",url:"https://explorer.saakuru.network"}},testnet:!1}),xI=p({id:5464,name:"Saga",network:"saga",nativeCurrency:{decimals:18,name:"gas",symbol:"GAS"},rpcUrls:{default:{http:["https://sagaevm.jsonrpc.sagarpc.io"]}},blockExplorers:{default:{name:"Saga Explorer",url:"https://sagaevm.sagaexplorer.io"}},contracts:{multicall3:{address:"0x864DDc9B50B9A0dF676d826c9B9EDe9F8913a160",blockCreated:467530}}}),wI=p({id:2021,name:"Saigon Testnet",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0}),vI=p({id:1996,name:"Sanko",nativeCurrency:{name:"DMT",symbol:"DMT",decimals:18},rpcUrls:{default:{http:["https://mainnet.sanko.xyz"]}},blockExplorers:{default:{name:"Sanko Explorer",url:"https://explorer.sanko.xyz"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:37}},testnet:!1}),EI=p({id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/mainnet/sapphire"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}}),kI=p({id:23295,name:"Oasis Sapphire Testnet",network:"sapphire-testnet",nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/testnet/sapphire"}},testnet:!0}),CI=p({id:3109,name:"SatoshiVM Alpha Mainnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc-node-http.svmscan.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://svmscan.io",apiUrl:"https://svmscan.io/api"}}}),TI=p({id:3110,name:"SatoshiVM Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://test-rpc-node-http.svmscan.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet.svmscan.io",apiUrl:"https://testnet.svmscan.io/api"}},testnet:!0}),SI=p({id:534352,name:"Scroll",blockTime:3e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com",apiUrl:"https://api.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),AI=p({id:534351,name:"Scroll Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://sepolia.scrollscan.com",apiUrl:"https://api-sepolia.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0}),PI=p({id:1329,name:"Sei Network",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc.sei-apis.com/"],webSocket:["wss://evm-ws.sei-apis.com/"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com",apiUrl:"https://seitrace.com/pacific-1/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}}}),II=p({id:713715,name:"Sei Devnet",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc-arctic-1.sei-apis.com"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com"}},testnet:!0}),BI=p({id:5124,name:"Seismic Devnet",nativeCurrency:{name:"Seismic Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://node-2.seismicdev.net/rpc"]}},blockExplorers:{default:{name:"Seismic Devnet Explorer",url:"https://explorer-2.seismicdev.net"}},testnet:!0}),FI=p({id:1328,name:"Sei Testnet",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc-testnet.sei-apis.com"],webSocket:["wss://evm-ws-testnet.sei-apis.com"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:98697651}},testnet:!0}),UI=p({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0}),Cl=1,OI=p({...V,id:360,name:"Shape",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.shape.network"]}},blockExplorers:{default:{name:"shapescan",url:"https://shapescan.xyz",apiUrl:"https://shapescan.xyz/api"}},contracts:{...V.contracts,l2OutputOracle:{[Cl]:{address:"0x6Ef8c69CfE4635d866e3E02732068022c06e724D",blockCreated:20369940}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1},portal:{[Cl]:{address:"0xEB06fFa16011B5628BaB98E29776361c83741dd3",blockCreated:20369933}},l1StandardBridge:{[Cl]:{address:"0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B",blockCreated:20369935}}},sourceId:Cl}),_I=p({...V,id:11011,name:"Shape Sepolia Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.shape.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer-sepolia.shape.network/",apiUrl:"https://explorer-sepolia.shape.network/api/v2"}},contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0,sourceId:11155111}),DI=p({id:8118,name:"Shardeum",nativeCurrency:{name:"Shardeum",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://api.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer.shardeum.org"}},testnet:!1}),MI=p({id:8082,name:"Shardeum Sphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0}),NI=p({id:109,name:"Shibarium",network:"shibarium",nativeCurrency:{name:"Bone",symbol:"BONE",decimals:18},rpcUrls:{default:{http:["https://rpc.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://shibariumscan.io"}},contracts:{multicall3:{address:"0x864Bf681ADD6052395188A89101A1B37d3B4C961",blockCreated:265900}}}),LI=p({id:157,name:"Puppynet Shibarium",nativeCurrency:{decimals:18,name:"Bone",symbol:"BONE"},rpcUrls:{default:{http:["https://puppynet.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://puppyscan.shib.io",apiUrl:"https://puppyscan.shib.io/api"}},contracts:{multicall3:{address:"0xA4029b74FBA366c926eDFA7Dd10B21C621170a4c",blockCreated:3035769}},testnet:!0}),zI=p({id:336,name:"Shiden",nativeCurrency:{decimals:18,name:"SDN",symbol:"SDN"},rpcUrls:{default:{http:["https://shiden.public.blastapi.io"],webSocket:["wss://shiden-rpc.dwellir.com"]}},blockExplorers:{default:{name:"Shiden Scan",url:"https://shiden.subscan.io"}},testnet:!1}),RI=p({id:148,name:"Shimmer",network:"shimmer",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.shimmer.network",apiUrl:"https://explorer.evm.shimmer.network/api"}}}),HI=p({id:1073,name:"Shimmer Testnet",network:"shimmer-testnet",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.testnet.shimmer.network",apiUrl:"https://explorer.evm.testnet.shimmer.network/api"}},testnet:!0}),$I=p({id:97453,name:"Sidra Chain",nativeCurrency:{decimals:18,name:"Sidra Digital Asset",symbol:"SDA"},rpcUrls:{default:{http:["https://node.sidrachain.com"]}},blockExplorers:{default:{name:"Sidra Chain Explorer",url:"https://ledger.sidrachain.com"}}}),GI=p({id:380929,name:"Silent Data Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.silentdata.com"]}},blockExplorers:{default:{name:"Silent Data Mainnet Explorer",url:"https://explorer-mainnet.rollup.silentdata.com"}},testnet:!1}),jI=p({id:2355,name:"Silicon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.silicon.network","https://silicon-mainnet.nodeinfra.com"]}},blockExplorers:{default:{name:"SiliconScope",url:"https://scope.silicon.network"}}}),VI=p({id:1722641160,name:"Silicon Sepolia zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-sepolia.silicon.network","https://silicon-testnet.nodeinfra.com"]}},blockExplorers:{default:{name:"SiliconSepoliaScope",url:"https://scope-sepolia.silicon.network"}},testnet:!0}),WI=p({id:98,name:"Six Protocol",nativeCurrency:{decimals:18,name:"SIX",symbol:"SIX"},rpcUrls:{default:{http:["https://sixnet-rpc-evm.sixprotocol.net"]}},blockExplorers:{default:{name:"Six Protocol Scan",url:"https://sixscan.io/sixnet"}},testnet:!1}),qI=p({id:391845894,name:"SKALE | Block Brawlers",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}}),YI=p({id:1564830818,name:"SKALE Calypso Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}}),KI=p({id:974399131,name:"SKALE Calypso Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/giant-half-dual-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/giant-half-dual-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://giant-half-dual-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:103220}},testnet:!0}),ZI=p({id:1026062157,name:"SKALE | CryptoBlades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}}),XI=p({id:1032942172,name:"SKALE | Crypto Colosseum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}}),QI=p({id:2046399126,name:"SKALE Europa Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}}),JI=p({id:1444673419,name:"SKALE Europa Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/juicy-low-small-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/juicy-low-small-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://juicy-low-small-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:110858}},testnet:!0}),eB=p({id:2139927552,name:"Exorde Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}}),tB=p({id:1273227453,name:"SKALE | Human Protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}}),rB=p({id:1482601649,name:"SKALE Nebula Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}}),nB=p({id:37084624,name:"SKALE Nebula Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/lanky-ill-funny-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/lanky-ill-funny-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://lanky-ill-funny-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:105141}},testnet:!0}),sB=p({id:278611351,name:"SKALE | Razor Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}}),aB=p({id:1187947933,name:"SKALE Base",nativeCurrency:{name:"Credits",symbol:"CREDIT",decimals:18},rpcUrls:{default:{http:["https://skale-base.skalenodes.com/v1/base"],webSocket:["wss://skale-base.skalenodes.com/v1/ws/base"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://skale-base-explorer.skalenodes.com/"}},testnet:!0}),oB=p({id:324705682,name:"SKALE Base Sepolia Testnet",nativeCurrency:{name:"Credits",symbol:"CREDIT",decimals:18},rpcUrls:{default:{http:["https://base-sepolia-testnet.skalenodes.com/v1/base-testnet"],webSocket:["wss://base-sepolia-testnet.skalenodes.com/v1/ws/base-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://base-sepolia-testnet-explorer.skalenodes.com/"}},testnet:!0}),iB=p({id:1350216234,name:"SKALE Titan Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}}),cB=p({id:1020352220,name:"SKALE Titan Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/aware-fake-trim-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/aware-fake-trim-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://aware-fake-trim-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:104072}},testnet:!0}),lB=p({id:984123,name:"Forma Sketchpad",network:"sketchpad",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.sketchpad-1.forma.art"],webSocket:["wss://ws.sketchpad-1.forma.art"]}},blockExplorers:{default:{name:"Sketchpad Explorer",url:"https://explorer.sketchpad-1.forma.art"}},testnet:!0}),yi=1,uB=p({...V,id:2192,network:"snaxchain-mainnet",name:"SnaxChain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.snaxchain.io"]}},blockExplorers:{default:{name:"Snax Explorer",url:"https://explorer.snaxchain.io",apiUrl:"https://explorer.snaxchain.io/api"}},contracts:{...V.contracts,disputeGameFactory:{[yi]:{address:"0x472562Fcf26D6b2793f8E0b0fB660ba0E5e08A46"}},l2OutputOracle:{[yi]:{address:"0x2172e492Fc807F5d5645D0E3543f139ECF539294"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[yi]:{address:"0x79f446D024d74D0Bb6E699C131c703463c5D65E9"}},l1StandardBridge:{[yi]:{address:"0x6534Bdb6b5c060d3e6aa833433333135eFE8E0aA"}}},sourceId:yi}),gi=11155111,dB=p({...V,id:13001,network:"snaxchain-testnet",name:"SnaxChain Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.snaxchain.io"]}},blockExplorers:{default:{name:"Snax Explorer",url:"https://testnet-explorer.snaxchain.io",apiUrl:"https://testnet-explorer.snaxchain.io/api"}},contracts:{...V.contracts,disputeGameFactory:{[gi]:{address:"0x206a75d89d45F146C54020F132FF93bEDD09f55E"}},l2OutputOracle:{[gi]:{address:"0x60e3A368a4cdCEf85ffB964e372726F56A46221e"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[gi]:{address:"0xb5afdd0E8dDF081Ef90e8A3e0c7b5798e66E954E"}},l1StandardBridge:{[gi]:{address:"0xbd37E1a59D4C00C9A46F75018dffd84061bC5f74"}}},testnet:!0,sourceId:gi}),pB=p({id:5031,name:"Somnia",nativeCurrency:{name:"Somnia",symbol:"SOMI",decimals:18},rpcUrls:{default:{http:["https://api.infra.mainnet.somnia.network"]}},blockExplorers:{default:{name:"Somnia Explorer",url:"https://explorer.somnia.network",apiUrl:"https://explorer.somnia.network/api"}},testnet:!1}),fB=p({id:50312,name:"Somnia Testnet",nativeCurrency:{name:"STT",symbol:"STT",decimals:18},rpcUrls:{default:{http:["https://dream-rpc.somnia.network"]}},blockExplorers:{default:{name:"Somnia Testnet Explorer",url:"https://shannon-explorer.somnia.network/",apiUrl:"https://shannon-explorer.somnia.network/api"}},contracts:{multicall3:{address:"0x841b8199E6d3Db3C6f264f6C2bd8848b3cA64223",blockCreated:71314235}},testnet:!0}),xi=1,hB=p({...V,id:1868,name:"Soneium Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium.blockscout.com",apiUrl:"https://soneium.blockscout.com/api"}},contracts:{...V.contracts,disputeGameFactory:{[xi]:{address:"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"}},l2OutputOracle:{[xi]:{address:"0x0000000000000000000000000000000000000000"}},portal:{[xi]:{address:"0x88e529a6ccd302c948689cd5156c83d4614fae92",blockCreated:7061266}},l1StandardBridge:{[xi]:{address:"0xeb9bf100225c214efc3e7c651ebbadcf85177607",blockCreated:7061266}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},sourceId:xi}),wi=11155111,mB=p({...V,id:1946,name:"Soneium Minato Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.minato.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium-minato.blockscout.com",apiUrl:"https://soneium-minato.blockscout.com/api"}},contracts:{...V.contracts,disputeGameFactory:{[wi]:{address:"0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01"}},l2OutputOracle:{[wi]:{address:"0x710e5286C746eC38beeB7538d0146f60D27be343"}},portal:{[wi]:{address:"0x65ea1489741A5D72fFdD8e6485B216bBdcC15Af3",blockCreated:6466136}},l1StandardBridge:{[wi]:{address:"0x5f5a404A5edabcDD80DB05E8e54A78c9EBF000C2",blockCreated:6466136}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},testnet:!0,sourceId:wi}),bB=p({id:19,name:"Songbird Canary-Network",nativeCurrency:{decimals:18,name:"Songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network",apiUrl:"https://songbird-explorer.flare.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13382504}}}),yB=p({id:16,name:"Songbird Testnet Coston",nativeCurrency:{decimals:18,name:"Coston Flare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network",apiUrl:"https://coston-explorer.flare.network/api"}},testnet:!0}),gB=p({id:146,name:"Sonic",blockTime:630,nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Explorer",url:"https://sonicscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:60}},testnet:!1}),xB=p({id:57054,name:"Sonic Blaze Testnet",nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.blaze.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Blaze Testnet Explorer",url:"https://testnet.sonicscan.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1100}},testnet:!0}),wB=p({id:64165,name:"Sonic Testnet",nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.testnet.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Testnet Explorer",url:"https://testnet.soniclabs.com/"}},testnet:!0}),vB=p({...ur,blockTime:200,id:50104,name:"Sophon",nativeCurrency:{decimals:18,name:"Sophon",symbol:"SOPH"},rpcUrls:{default:{http:["https://rpc.sophon.xyz"],webSocket:["wss://rpc.sophon.xyz/ws"]}},blockExplorers:{default:{name:"Sophon Block Explorer",url:"https://explorer.sophon.xyz"}},contracts:{multicall3:{address:"0x5f4867441d2416cA88B1b3fd38f21811680CD2C8",blockCreated:116}},testnet:!1}),EB=p({...ur,blockTime:200,id:531050104,name:"Sophon Testnet",nativeCurrency:{decimals:18,name:"Sophon",symbol:"SOPH"},rpcUrls:{default:{http:["https://rpc.testnet.sophon.xyz"],webSocket:["wss://rpc.testnet.sophon.xyz/ws"]}},blockExplorers:{default:{name:"Sophon Block Explorer",url:"https://explorer.testnet.sophon.xyz"}},contracts:{multicall3:{address:"0x83c04d112adedA2C6D9037bb6ecb42E7f0b108Af",blockCreated:15642}},testnet:!0}),kB=p({id:100021,name:"Sova",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.sova.io"]}},blockExplorers:{default:{name:"Sova Block Explorer",url:"hhttps://explorer.sova.io"}},testnet:!1}),CB=p({id:120893,name:"Sova Network Sepolia",nativeCurrency:{decimals:18,name:"Sepolia Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.testnet.sova.io"]}},blockExplorers:{default:{name:"Sova Sepolia Explorer",url:"https://explorer.testnet.sova.io"}},testnet:!0}),TB=p({id:88882,name:"Chiliz Spicy Testnet",network:"chiliz-spicy-Testnet",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy-rpc.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"http://spicy-explorer.chiliz.com",apiUrl:"http://spicy-explorer.chiliz.com/api"}},testnet:!0}),SB=p({id:2201,name:"Stable Testnet",nativeCurrency:{decimals:18,name:"gUSDT",symbol:"gUSDT"},rpcUrls:{default:{http:["https://rpc.testnet.stable.xyz"],webSocket:["wss://rpc.testnet.stable.xyz"]}},blockExplorers:{default:{name:"Stablescan",url:"https://testnet.stablescan.xyz",apiUrl:"https://testnet.stablescan.xyz/api"}},testnet:!0}),ey=p({...Sp,id:1660990954,name:"Status Network Sepolia",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://public.sepolia.rpc.status.network"],webSocket:["wss://public.sepolia.rpc.status.network/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepoliascan.status.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1578364}},testnet:!0}),AB=p({id:1234,name:"Step Network",nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},rpcUrls:{default:{http:["https://rpc.step.network"]}},blockExplorers:{default:{name:"Step Scan",url:"https://stepscan.io"}},testnet:!1}),PB=p({id:1514,name:"Story",nativeCurrency:{decimals:18,name:"IP Token",symbol:"IP"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:340998},ensRegistry:{address:"0x5dc881dda4e4a8d312be3544ad13118d1a04cb17",blockCreated:648924},ensUniversalResolver:{address:"0xddfb18888a9466688235887dec2a10c4f5effee9",blockCreated:649114}},rpcUrls:{default:{http:["https://mainnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story explorer",url:"https://storyscan.io",apiUrl:"https://storyscan.io/api/v2"}},ensTlds:[".ip"],testnet:!1}),IB=p({id:1315,name:"Story Aeneid",network:"story-aeneid",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1792},ensRegistry:{address:"0x5dC881dDA4e4a8d312be3544AD13118D1a04Cb17",blockCreated:1322033},ensUniversalResolver:{address:"0x6D3B3F99177FB2A5de7F9E928a9BD807bF7b5BAD",blockCreated:1322097}},rpcUrls:{default:{http:["https://aeneid.storyrpc.io"]}},blockExplorers:{default:{name:"Story Aeneid Explorer",url:"https://aeneid.storyscan.io",apiUrl:"https://aeneid.storyscan.io/api/v2"}},ensTlds:[".ip"],testnet:!0}),BB=p({id:1516,name:"Story Odyssey",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://rpc.odyssey.storyrpc.io"]}},blockExplorers:{default:{name:"Story Odyssey Explorer",url:"https://odyssey.storyscan.xyz"}},testnet:!0}),FB=p({id:1513,name:"Story Testnet",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://testnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story Testnet Explorer",url:"https://testnet.storyscan.xyz"}},testnet:!0}),UB=p({id:105105,name:"Stratis Mainnet",network:"stratis",nativeCurrency:{name:"Stratis",symbol:"STRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Stratis Explorer",url:"https://explorer.stratisevm.com"}}}),OB=p({id:8866,name:"SuperLumio",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.lumio.io"]}},blockExplorers:{default:{name:"Lumio explorer",url:"https://explorer.lumio.io"}},testnet:!1}),_B=p({id:55244,name:"Superposition",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.superposition.so"]}},blockExplorers:{default:{name:"Superposition Explorer",url:"https://explorer.superposition.so"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:39}},testnet:!1}),vi=1,DB=p({...V,id:5330,name:"Superseed",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Explorer",url:"https://explorer.superseed.xyz",apiUrl:"https://explorer.superseed.xyz/api/v2"}},contracts:{...V.contracts,disputeGameFactory:{[vi]:{address:"0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0",blockCreated:20737481}},l2OutputOracle:{[vi]:{address:"0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949",blockCreated:20737481}},portal:{[vi]:{address:"0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07",blockCreated:20737481}},l1StandardBridge:{[vi]:{address:"0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede",blockCreated:20737481}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:vi}),Ap=11155111,MB=p({...V,id:53302,name:"Superseed Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Sepolia Explorer",url:"https://sepolia-explorer.superseed.xyz",apiUrl:"https://sepolia-explorer.superseed.xyz/api/v2"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},portal:{[Ap]:{address:"0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB",blockCreated:5523438}},l1StandardBridge:{[Ap]:{address:"0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C",blockCreated:5523442}}},testnet:!0,sourceId:Ap}),NB=p({id:763375,name:"Surge Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://l2-rpc.hoodi.surge.wtf"],webSocket:["wss://l2-ws.hoodi.surge.wtf"]}},blockExplorers:{default:{name:"Surge Testnet Blockscout",url:"https://explorer.hoodi.surge.wtf"}},testnet:!0}),LB=p({id:254,name:"Swan Chain Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.swanchain.org"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://swanscan.io"}},testnet:!1}),zB=p({id:20241133,name:"Swan Proxima Testnet",nativeCurrency:{name:"Swan Ether",symbol:"sETH",decimals:18},rpcUrls:{default:{http:["https://rpc-proxima.swanchain.io"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://proxima-explorer.swanchain.io"}},testnet:!0}),RB=p({id:2024,name:"Swan Saturn Testnet",nativeCurrency:{name:"Swan Ether",symbol:"sETH",decimals:18},rpcUrls:{default:{http:["https://saturn-rpc.swanchain.io"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://saturn-explorer.swanchain.io"}},testnet:!0}),HB=p({...V,id:1923,name:"Swellchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://swell-mainnet.alt.technology"]}},blockExplorers:{default:{name:"Swell Explorer",url:"https://explorer.swellnetwork.io",apiUrl:"https://explorer.swellnetwork.io/api"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}}}),$B=p({...V,id:1924,name:"Swellchain Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://swell-testnet.alt.technology"]}},blockExplorers:{default:{name:"Swellchain Testnet Explorer",url:"https://swell-testnet-explorer.alt.technology",apiUrl:"https://swell-testnet-explorer.alt.technology/api"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}}}),GB=p({id:94,name:"SwissDLT Mainnet",nativeCurrency:{decimals:18,name:"BCTS",symbol:"BCTS"},rpcUrls:{default:{http:["https://rpc.swissdlt.ch"]}},blockExplorers:{default:{name:"SwissDLT Explorer",url:"https://explorer.swissdlt.ch"}},testnet:!1}),jB=p({id:57,name:"Syscoin Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org",apiUrl:"https://explorer.syscoin.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}}),VB=p({id:5700,name:"Syscoin Tanenbaum Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}}}),WB=p({id:239,name:"TAC",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/tac"]}},blockExplorers:{default:{name:"Blockscout",url:"https://tac.blockscout.com",apiUrl:"https://tac.blockscout.com/api"},native:{name:"TAC Explorer",url:"https://explorer.tac.build",apiUrl:"https://explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),qB=p({id:2391,name:"TAC SPB Testnet",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://spb.rpc.tac.build"]}},blockExplorers:{default:{name:"TAC",url:"https://spb.explorer.tac.build",apiUrl:"https://spb.explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:471429}},testnet:!0}),YB=p({id:167e3,name:"Taiko Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.mainnet.taiko.xyz"],webSocket:["wss://ws.mainnet.taiko.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://taikoscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11269}}}),KB=p({id:167009,name:"Taiko Hekla L2",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hekla.taiko.xyz"]}},blockExplorers:{default:{name:"Taikoscan",url:"https://hekla.taikoscan.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59757}},testnet:!0}),ZB=p({id:167013,name:"Taiko Hoodi",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hoodi.taiko.xyz"],webSocket:["wss://ws.hoodi.taiko.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://hoodi.taikoscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:581116}},testnet:!0}),XB=p({id:167007,name:"Taiko Jolnir (Alpha-5 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.jolnir.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.jolnir.taiko.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:732706}},testnet:!0}),QB=p({id:167008,name:"Taiko Katla (Alpha-6 Testnet)",network:"tko-katla",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katla.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.katla.taiko.xyz"}}}),JB=p({id:167005,name:"Taiko (Alpha-3 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}}}),eF=p({id:841,name:"Taraxa Mainnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}}),tF=p({id:842,name:"Taraxa Testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0}),rF=p({id:10218,name:"Tea Sepolia",nativeCurrency:{name:"Sepolia Tea",symbol:"TEA",decimals:18},rpcUrls:{default:{http:["https://tea-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Tea Sepolia Explorer",url:"https://sepolia.tea.xyz"}},testnet:!0}),nF=p({id:2017,name:"Telcoin Adiri Testnet",nativeCurrency:{name:"Telcoin",symbol:"TEL",decimals:18},rpcUrls:{default:{http:["https://rpc.telcoin.network"]}},blockExplorers:{default:{name:"telscan",url:"https://telscan.io"}},testnet:!0}),sF=p({id:40,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://rpc.telos.net"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}}),aF=p({id:41,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://rpc.testnet.telos.net"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0});/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Pp=BigInt(0),Ip=BigInt(1);function Ei(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Bp(e){if(!Ei(e))throw new Error("Uint8Array expected")}function ki(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function Tl(e){const t=e.toString(16);return t.length&1?"0"+t:t}function ty(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Pp:BigInt("0x"+e)}const ry=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",oF=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Ci(e){if(Bp(e),ry)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=oF[e[r]];return t}const An={_0:48,_9:57,A:65,F:70,a:97,f:102};function ny(e){if(e>=An._0&&e<=An._9)return e-An._0;if(e>=An.A&&e<=An.F)return e-(An.A-10);if(e>=An.a&&e<=An.f)return e-(An.a-10)}function Sl(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(ry)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let s=0,a=0;s<r;s++,a+=2){const o=ny(e.charCodeAt(a)),i=ny(e.charCodeAt(a+1));if(o===void 0||i===void 0){const c=e[a]+e[a+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+a)}n[s]=o*16+i}return n}function qs(e){return ty(Ci(e))}function sy(e){return Bp(e),ty(Ci(Uint8Array.from(e).reverse()))}function Ti(e,t){return Sl(e.toString(16).padStart(t*2,"0"))}function ay(e,t){return Ti(e,t).reverse()}function Er(e,t,r){let n;if(typeof t=="string")try{n=Sl(t)}catch(a){throw new Error(e+" must be hex string or Uint8Array, cause: "+a)}else if(Ei(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const s=n.length;if(typeof r=="number"&&s!==r)throw new Error(e+" of length "+r+" expected, got "+s);return n}function Al(...e){let t=0;for(let n=0;n<e.length;n++){const s=e[n];Bp(s),t+=s.length}const r=new Uint8Array(t);for(let n=0,s=0;n<e.length;n++){const a=e[n];r.set(a,s),s+=a.length}return r}const Fp=e=>typeof e=="bigint"&&Pp<=e;function Up(e,t,r){return Fp(e)&&Fp(t)&&Fp(r)&&t<=e&&e<r}function Wa(e,t,r,n){if(!Up(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function iF(e){let t;for(t=0;e>Pp;e>>=Ip,t+=1);return t}const Pl=e=>(Ip<<BigInt(e))-Ip,Op=e=>new Uint8Array(e),oy=e=>Uint8Array.from(e);function cF(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=Op(e),s=Op(e),a=0;const o=()=>{n.fill(1),s.fill(0),a=0},i=(...d)=>r(s,n,...d),c=(d=Op(0))=>{s=i(oy([0]),d),n=i(),d.length!==0&&(s=i(oy([1]),d),n=i())},l=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const f=[];for(;d<t;){n=i();const h=n.slice();f.push(h),d+=n.length}return Al(...f)};return(d,f)=>{o(),c(d);let h;for(;!(h=f(l()));)c();return o(),h}}const lF={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||Ei(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Il(e,t,r={}){const n=(s,a,o)=>{const i=lF[a];if(typeof i!="function")throw new Error("invalid validator function");const c=e[s];if(!(o&&c===void 0)&&!i(c,e))throw new Error("param "+String(s)+" is invalid. Expected "+a+", got "+c)};for(const[s,a]of Object.entries(t))n(s,a,!1);for(const[s,a]of Object.entries(r))n(s,a,!0);return e}function iy(e){const t=new WeakMap;return(r,...n)=>{const s=t.get(r);if(s!==void 0)return s;const a=e(r,...n);return t.set(r,a),a}}const uF="0.1.1";function dF(){return uF}class oe extends Error{static setStaticOptions(t){oe.prototype.docsOrigin=t.docsOrigin,oe.prototype.showVersion=t.showVersion,oe.prototype.version=t.version}constructor(t,r={}){const n=(()=>{var u;if(r.cause instanceof oe){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return r.cause&&"details"in r.cause&&typeof r.cause.details=="string"?r.cause.details:(u=r.cause)!=null&&u.message?r.cause.message:r.details})(),s=r.cause instanceof oe&&r.cause.docsPath||r.docsPath,a=r.docsOrigin??oe.prototype.docsOrigin,o=`${a}${s??""}`,i=!!(r.version??oe.prototype.showVersion),c=r.version??oe.prototype.version,l=[t||"An error occurred.",...r.metaMessages?["",...r.metaMessages]:[],...n||s||i?["",n?`Details: ${n}`:void 0,s?`See: ${o}`:void 0,i?`Version: ${c}`:void 0]:[]].filter(u=>typeof u=="string").join(`
104
+ `)})}}Object.defineProperty(is,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class ti extends Jt{constructor(t){super(t,{code:ti.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(ti,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class ri extends Jt{constructor(t){super(t,{code:ri.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(ri,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class ni extends Jt{constructor(t){super(t,{code:ni.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(ni,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Vs extends Jt{constructor(t,{method:r}={}){super(t,{code:Vs.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not supported.`})}}Object.defineProperty(Vs,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class $a extends Jt{constructor(t){super(t,{code:$a.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty($a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class si extends Jt{constructor(t){super(t,{code:si.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(si,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Ga extends pr{constructor(t){super(t,{code:Ga.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Ga,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class ai extends pr{constructor(t){super(t,{code:ai.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(ai,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class oi extends pr{constructor(t,{method:r}={}){super(t,{code:oi.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}}Object.defineProperty(oi,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class ii extends pr{constructor(t){super(t,{code:ii.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(ii,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class ci extends pr{constructor(t){super(t,{code:ci.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(ci,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class li extends pr{constructor(t){super(t,{code:li.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(li,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class ja extends pr{constructor(t){super(t,{code:ja.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(ja,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class ui extends pr{constructor(t){super(t,{code:ui.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(ui,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class di extends pr{constructor(t){super(t,{code:di.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(di,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class pi extends pr{constructor(t){super(t,{code:pi.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(pi,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class fi extends pr{constructor(t){super(t,{code:fi.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(fi,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class hi extends pr{constructor(t){super(t,{code:hi.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(hi,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Va extends pr{constructor(t){super(t,{code:Va.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Va,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class kS extends Jt{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}function ul(e,t){const r=(e.details||"").toLowerCase(),n=e instanceof $?e.walk(s=>(s==null?void 0:s.code)===Fa.code):e;return n instanceof $?new Fa({cause:e,message:n.details}):Fa.nodeMessage.test(r)?new Fa({cause:e,message:e.details}):as.nodeMessage.test(r)?new as({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Wd.nodeMessage.test(r)?new Wd({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):qd.nodeMessage.test(r)?new qd({cause:e,nonce:t==null?void 0:t.nonce}):Yd.nodeMessage.test(r)?new Yd({cause:e,nonce:t==null?void 0:t.nonce}):Kd.nodeMessage.test(r)?new Kd({cause:e,nonce:t==null?void 0:t.nonce}):Zd.nodeMessage.test(r)?new Zd({cause:e}):Xd.nodeMessage.test(r)?new Xd({cause:e,gas:t==null?void 0:t.gas}):Qd.nodeMessage.test(r)?new Qd({cause:e,gas:t==null?void 0:t.gas}):Jd.nodeMessage.test(r)?new Jd({cause:e}):Ua.nodeMessage.test(r)?new Ua({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new Lo({cause:e})}function Tp(e,{docsPath:t,...r}){const n=(()=>{const s=ul(e,r);return s instanceof Lo?e:s})();return new Kb(n,{docsPath:t,...r})}function Ws(e,{format:t}){if(!t)return{};const r={};function n(a){const o=Object.keys(a);for(const i of o)i in e&&(r[i]=e[i]),a[i]&&typeof a[i]=="object"&&!Array.isArray(a[i])&&n(a[i])}const s=t(e||{});return n(s),r}function tn(e){const{account:t,maxFeePerGas:r,maxPriorityFeePerGas:n,to:s}=e,a=t?Ze(t):void 0;if(a&&!nt(a.address))throw new Ct({address:a.address});if(s&&!nt(s))throw new Ct({address:s});if(r&&r>Ls)throw new as({maxFeePerGas:r});if(n&&r&&n>r)throw new Ua({maxFeePerGas:r,maxPriorityFeePerGas:n})}async function CS(e,t){var s,a,o;const{account:r=e.account}=t;if(!r)throw new kn;const n=Ze(r);try{const{accessList:i,blockNumber:c,blockTag:l,data:u,gas:d,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:y,nonce:g,to:E,value:v,...w}=t,C=(typeof c=="bigint"?q(c):void 0)||l;tn(t);const _=(o=(a=(s=e.chain)==null?void 0:s.formatters)==null?void 0:a.transactionRequest)==null?void 0:o.format,S=(_||Dr)({...Ws(w,{format:_}),account:n,accessList:i,data:u,gas:d,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:y,nonce:g,to:E,value:v},"estimateGas"),{baseFeePerGas:m,gasLimit:b,priorityFeePerGas:x}=await e.request({method:"linea_estimateGas",params:C?[S,C]:[S]});return{baseFeePerGas:BigInt(m),gasLimit:BigInt(b),priorityFeePerGas:BigInt(x)}}catch(i){throw Tp(i,{...t,account:n,chain:e.chain})}}const Sp={fees:{estimateFeesPerGas:Qb,async maxPriorityFeePerGas({block:e,client:t,request:r}){const n=await Qb({block:e,client:t,multiply:s=>s,request:r,type:"eip1559"});return n!=null&&n.maxPriorityFeePerGas?n.maxPriorityFeePerGas:null}}};async function Qb({client:e,multiply:t,request:r,type:n}){try{const s=await CS(e,{...r,account:r==null?void 0:r.account}),{priorityFeePerGas:a}=s,i=t(BigInt(s.baseFeePerGas))+a;return n==="legacy"?{gasPrice:i}:{maxFeePerGas:i,maxPriorityFeePerGas:a}}catch{return null}}const TS=p({...Sp,id:59144,name:"Linea Mainnet",blockTime:2e3,nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42},ensRegistry:{address:"0x50130b669B28C339991d8676FA73CF122a121267",blockCreated:6682888},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:22222151}},ensTlds:[".linea.eth"],testnet:!1}),SS=p({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://api-goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),AS=p({...Sp,id:59141,name:"Linea Sepolia Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.linea.build"],webSocket:["wss://rpc.sepolia.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.lineascan.build",apiUrl:"https://api-sepolia.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:227427},ensRegistry:{address:"0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7",blockCreated:2395094},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:17168484}},ensTlds:[".linea.eth"],testnet:!0}),PS=p({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),dl=1,IS=p({...V,id:1135,name:"Lisk",network:"lisk",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.lisk.com",apiUrl:"https://blockscout.lisk.com/api"}},contracts:{...V.contracts,multicall3:{address:"0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0"},l2OutputOracle:{[dl]:{address:"0x113cB99283AF242Da0A0C54347667edF531Aa7d6"}},portal:{[dl]:{address:"0x26dB93F8b8b4f7016240af62F7730979d353f9A7"}},l1StandardBridge:{[dl]:{address:"0x2658723Bf70c7667De6B25F99fcce13A16D25d08"}}},sourceId:dl}),pl=11155111,BS=p({...V,id:4202,network:"lisk-sepolia",name:"Lisk Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia-api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.lisk.com",apiUrl:"https://sepolia-blockscout.lisk.com/api"}},contracts:{...V.contracts,l2OutputOracle:{[pl]:{address:"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[pl]:{address:"0xe3d90F21490686Ec7eF37BE788E02dfC12787264"}},l1StandardBridge:{[pl]:{address:"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5"}}},testnet:!0,sourceId:pl}),FS=p({id:9496,name:"Load Alphanet",nativeCurrency:{name:"Testnet LOAD",symbol:"tLOAD",decimals:18},rpcUrls:{default:{http:["https://alphanet.load.network"]}},blockExplorers:{default:{name:"Load Alphanet Explorer",url:"https://explorer.load.network"}},testnet:!0}),US=p({id:1337,name:"Localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),OS=p({id:15551,name:"LoopNetwork Mainnet",nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},rpcUrls:{default:{http:["https://api.mainnetloop.com"]}},blockExplorers:{default:{name:"LoopNetwork Blockchain Explorer",url:"https://explorer.mainnetloop.com/"}},testnet:!1}),_S=p({id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network",apiUrl:"https://api.explorer.execution.mainnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:468183}}}),DS=p({id:4201,name:"LUKSO Testnet",nativeCurrency:{decimals:18,name:"LUKSO Testnet",symbol:"LYXt"},rpcUrls:{default:{http:["https://rpc.testnet.lukso.network"],webSocket:["wss://ws-rpc.testnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Testnet Explorer",url:"https://explorer.execution.testnet.lukso.network",apiUrl:"https://api.explorer.execution.testnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:605348}},testnet:!0}),MS=p({id:994873017,name:"Lumia Mainnet",network:"LumiaMainnet",nativeCurrency:{name:"Lumia",symbol:"LUMIA",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.lumia.org"]}},blockExplorers:{default:{name:"Lumia Explorer",url:"https://explorer.lumia.org/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3975939}},testnet:!1}),NS=p({id:1952959480,name:"Lumia Testnet",network:"LumiaTestnet",nativeCurrency:{name:"Lumia",symbol:"LUMIA",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.lumia.org"]}},blockExplorers:{default:{name:"Lumia Testnet Explorer",url:"https://testnet-explorer.lumia.org/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2235063}},testnet:!0}),LS=p({id:96370,name:"Lumoz",nativeCurrency:{decimals:18,name:"Lumoz Token",symbol:"MOZ"},rpcUrls:{default:{http:["https://rpc.lumoz.org"]}},blockExplorers:{default:{name:"Lumoz Scan",url:"https://scan.lumoz.info"}},testnet:!1}),zS=p({id:105363,name:"Lumoz Testnet",nativeCurrency:{decimals:18,name:"Lumoz Testnet Token",symbol:"MOZ"},rpcUrls:{default:{http:["https://testnet-rpc.lumoz.org"]}},testnet:!0}),RS=p({id:721,name:"Lycan",nativeCurrency:{decimals:18,name:"Lycan",symbol:"LYC"},rpcUrls:{default:{http:["https://rpc.lycanchain.com","https://us-east.lycanchain.com","https://us-west.lycanchain.com","https://eu-north.lycanchain.com","https://eu-west.lycanchain.com","https://asia-southeast.lycanchain.com"],webSocket:["wss://rpc.lycanchain.com","wss://us-east.lycanchain.com","wss://us-west.lycanchain.com","wss://eu-north.lycanchain.com","wss://eu-west.lycanchain.com","wss://asia-southeast.lycanchain.com"]}},blockExplorers:{default:{name:"Lycan Explorer",url:"https://explorer.lycanchain.com"}}}),HS=p({id:957,name:"Lyra Chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.lyra.finance"]}},blockExplorers:{default:{name:"Lyra Explorer",url:"https://explorer.lyra.finance",apiUrl:"https://explorer.lyra.finance/api/v2"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1935198}}}),$S=p({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),GS=p({id:595,name:"Mandala TC9",network:"mandala",nativeCurrency:{name:"Mandala",symbol:"mACA",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]}},blockExplorers:{default:{name:"Mandala Blockscout",url:"https://blockscout.mandala.aca-staging.network",apiUrl:"https://blockscout.mandala.aca-staging.network/api"}},testnet:!0}),jS=p({id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network",apiUrl:"https://pacific-explorer.manta.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:332890}}}),VS=p({id:3441006,name:"Manta Pacific Sepolia Testnet",network:"manta-sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.sepolia-testnet.manta.network/http"]}},blockExplorers:{default:{name:"Manta Sepolia Testnet Explorer",url:"https://pacific-explorer.sepolia-testnet.manta.network",apiUrl:"https://pacific-explorer.sepolia-testnet.manta.network/api"}},contracts:{multicall3:{address:"0xca54918f7B525C8df894668846506767412b53E3",blockCreated:479584}},testnet:!0}),WS=p({id:3441005,name:"Manta Pacific Testnet",network:"manta-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://manta-testnet.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network",apiUrl:"https://pacific-explorer.testnet.manta.network/api"}},contracts:{multicall3:{address:"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C",blockCreated:419915}},testnet:!0}),qS=p({id:5e3,name:"Mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Explorer",url:"https://mantlescan.xyz/",apiUrl:"https://api.mantlescan.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}}),YS=p({id:5003,name:"Mantle Sepolia Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.sepolia.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.sepolia.mantle.xyz/",apiUrl:"https://explorer.sepolia.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4584012}},testnet:!0}),KS=p({id:5001,name:"Mantle Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",apiUrl:"https://explorer.testnet.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:561333}},testnet:!0}),ZS=p({id:5887,name:"MANTRA DuKong EVM Testnet",nativeCurrency:{decimals:18,name:"MANTRA",symbol:"MANTRA"},rpcUrls:{default:{http:["https://evm.dukong.mantrachain.io"]}},blockExplorers:{default:{name:"MANTRAScan",url:"https://mantrascan.io/dukong"}},testnet:!0}),XS=p({id:5888,name:"MANTRA EVM",nativeCurrency:{decimals:18,name:"OM",symbol:"OM"},rpcUrls:{default:{http:["https://evm.mantrachain.io"],webSocket:["https://evm.mantrachain.io/ws"]}},blockExplorers:{default:{name:"MANTRA Scan",url:"https://mantrascan.io/mainnet"}}}),QS=p({id:22776,name:"MAP Protocol",nativeCurrency:{decimals:18,name:"MAPO",symbol:"MAPO"},rpcUrls:{default:{http:["https://rpc.maplabs.io"]}},blockExplorers:{default:{name:"MAPO Scan",url:"https://maposcan.io"}},testnet:!1}),JS=p({id:698,name:"Matchain",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://rpc.matchain.io"]}},blockExplorers:{default:{name:"Matchain Scan",url:"https://matchscan.io"}}}),eA=p({id:699,name:"Matchain Testnet",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.matchain.io"]}},blockExplorers:{default:{name:"Matchain Scan",url:"https://testnet.matchscan.io"}},testnet:!0}),tA=p({id:29548,name:"MCH Verse",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.oasys.mycryptoheroes.net"]}},blockExplorers:{default:{name:"MCH Verse Explorer",url:"https://explorer.oasys.mycryptoheroes.net",apiUrl:"https://explorer.oasys.mycryptoheroes.net/api"}},testnet:!1}),rA=p({id:6342,blockTime:1e3,name:"MegaETH Testnet",nativeCurrency:{name:"MegaETH Testnet Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://carrot.megaeth.com/rpc"],webSocket:["wss://carrot.megaeth.com/ws"]}},blockExplorers:{default:{name:"MegaETH Testnet Explorer",url:"https://www.megaexplorer.xyz/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0}),nA=p({id:7078815900,name:"Mekong Pectra Devnet",nativeCurrency:{name:"eth",symbol:"eth",decimals:18},rpcUrls:{default:{http:["https://rpc.mekong.ethpandaops.io"]}},blockExplorers:{default:{name:"Block Explorer",url:"https://explorer.mekong.ethpandaops.io"}},testnet:!0}),sA=p({id:333000333,name:"Meld",nativeCurrency:{decimals:18,name:"Meld",symbol:"MELD"},rpcUrls:{default:{http:["https://rpc-1.meld.com"]}},blockExplorers:{default:{name:"MELDscan",url:"https://meldscan.io"}},contracts:{multicall3:{address:"0x769ee5a8e82c15c1b6e358f62ac8eb6e3abe8dc5",blockCreated:360069}}}),aA=p({id:4352,name:"MemeCore",nativeCurrency:{decimals:18,name:"M",symbol:"M"},rpcUrls:{default:{http:["https://rpc.memecore.net"],webSocket:["wss://ws.memecore.net"]}},blockExplorers:{default:{name:"MemeCore Explorer",url:"https://memecorescan.io",apiUrl:"https://api.memecorescan.io/api"},okx:{name:"MemeCore Explorer",url:"https://web3.okx.com/explorer/memecore"},memecore:{name:"MemeCore Explorer",url:"https://blockscout.memecore.com",apiUrl:"https://blockscout.memecore.com/api"}}}),oA=p({id:43521,name:"Formicarium",nativeCurrency:{decimals:18,name:"M",symbol:"M"},rpcUrls:{default:{http:["https://rpc.formicarium.memecore.net"],webSocket:["wss://ws.formicarium.memecore.net"]}},blockExplorers:{default:{name:"MemeCore Testnet Explorer",url:"https://formicarium.memecorescan.io"},okx:{name:"MemeCore Testnet Explorer",url:"https://web3.okx.com/explorer/formicarium-testnet"},memecore:{name:"MemeCore Testnet Explorer",url:"https://formicarium.blockscout.memecore.com",apiUrl:"https://formicarium.blockscout.memecore.com/api"}},testnet:!0}),iA=p({id:4200,name:"Merlin",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://scan.merlinchain.io",apiUrl:"https://scan.merlinchain.io/api"}}}),cA=p({id:4203,name:"Merlin Erigon Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-erigon-rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet-erigon-scan.merlinchain.io",apiUrl:"https://testnet-erigon-scan.merlinchain.io/api"}},testnet:!0}),lA=p({id:571,name:"MetaChain Mainnet",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://rpc.metatime.com"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://explorer.metatime.com"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}}}),uA=p({id:1453,name:"MetaChain Istanbul",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://istanbul-rpc.metachain.dev"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://istanbul-explorer.metachain.dev"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}},testnet:!0}),dA=p({id:11,name:"Metadium Network",nativeCurrency:{decimals:18,name:"META",symbol:"META"},rpcUrls:{default:{http:["https://api.metadium.com/prod"]}},blockExplorers:{default:{name:"Metadium Explorer",url:"https://explorer.metadium.com"}},testnet:!1}),fl=1,pA=p({...V,id:1750,name:"Metal L2",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.metall2.com"],webSocket:["wss://rpc.metall2.com"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.metall2.com",apiUrl:"https://explorer.metall2.com/api"}},contracts:{...V.contracts,l2OutputOracle:{[fl]:{address:"0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},portal:{[fl]:{address:"0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956"}},l1StandardBridge:{[fl]:{address:"0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3"}}},sourceId:fl}),fA=p({id:82,name:"Meter",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpc.meter.io"]}},blockExplorers:{default:{name:"MeterScan",url:"https://scan.meter.io"}}}),hA=p({id:83,name:"Meter Testnet",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpctest.meter.io"]}},blockExplorers:{default:{name:"MeterTestnetScan",url:"https://scan-warringstakes.meter.io"}}}),mA=p({id:1088,name:"Metis",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://metis.rpc.hypersync.xyz","https://metis-pokt.nodies.app","https://api.blockeden.xyz/metis/67nCBdZQSH9z3YqDDjdm","https://metis-andromeda.rpc.thirdweb.com","https://metis-andromeda.gateway.tenderly.co","https://metis.api.onfinality.io/public","https://andromeda.metis.io/?owner=1088","https://metis-mainnet.public.blastapi.io"],webSocket:["wss://metis-rpc.publicnode.com","wss://metis.drpc.org"]}},blockExplorers:{default:{name:"Metis Explorer",url:"https://explorer.metis.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}}),bA=p({id:599,name:"Metis Goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link",apiUrl:"https://goerli.explorer.metisdevops.link/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}}}),yA=p({id:59902,name:"Metis Sepolia",nativeCurrency:{decimals:18,name:"Test Metis",symbol:"tMETIS"},rpcUrls:{default:{http:["https://sepolia.metisdevops.link","https://metis-sepolia-rpc.publicnode.com","https://metis-sepolia.gateway.tenderly.co"],webSocket:["wss://metis-sepolia-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Metis Sepolia Explorer",url:"https://sepolia-explorer.metisdevops.link",apiUrl:"https://sepolia-explorer.metisdevops.link/api-docs"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:224185}}}),gA=p({id:7518,name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}}),xA=p({id:4759,name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0}),wA=p({id:185,name:"Mint Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain explorer",url:"https://explorer.mintchain.io"}},testnet:!1}),vA=p({id:1686,name:"Mint Sepolia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain Testnet explorer",url:"https://testnet-explorer.mintchain.io"}},testnet:!0}),EA=p({id:124832,name:"Mitosis Testnet",nativeCurrency:{name:"MITO",symbol:"MITO",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.mitosis.org"]}},blockExplorers:{default:{name:"Mitosis testnet explorer",url:"https://testnet.mitosiscan.xyz"}},testnet:!0}),hl=1,kA=p({...V,id:34443,name:"Mode Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.mode.network"]}},blockExplorers:{default:{name:"Modescan",url:"https://modescan.io"}},contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2465882},l2OutputOracle:{[hl]:{address:"0x4317ba146D4933D889518a3e5E11Fe7a53199b04"}},portal:{[hl]:{address:"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07"}},l1StandardBridge:{[hl]:{address:"0x735aDBbE72226BD52e818E7181953f42E3b0FF21"}}},sourceId:hl}),ml=11155111,CA=p({...V,id:919,name:"Mode Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network",apiUrl:"https://sepolia.explorer.mode.network/api"}},contracts:{...V.contracts,l2OutputOracle:{[ml]:{address:"0x2634BD65ba27AB63811c74A63118ACb312701Bfa",blockCreated:3778393}},portal:{[ml]:{address:"0x320e1580effF37E008F1C92700d1eBa47c1B23fD",blockCreated:3778395}},l1StandardBridge:{[ml]:{address:"0xbC5C679879B2965296756CD959C3C739769995E2",blockCreated:3778392}},multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0,sourceId:ml}),TA=p({id:143,name:"Monad",blockTime:400,nativeCurrency:{name:"Monad",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://rpc.monad.xyz","https://rpc1.monad.xyz"],webSocket:["wss://rpc.monad.xyz","wss://rpc1.monad.xyz"]}},blockExplorers:{default:{name:"MonadVision",url:"https://monadvision.com"},monadscan:{name:"Monadscan",url:"https://monadscan.com",apiUrl:"https://api.monadscan.com/api"}},testnet:!1,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:9248132}}}),SA=p({id:10143,name:"Monad Testnet",blockTime:400,nativeCurrency:{name:"Testnet MON Token",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.monad.xyz"]}},blockExplorers:{default:{name:"Monad Testnet explorer",url:"https://testnet.monadexplorer.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:251449}},testnet:!0}),AA=p({id:1287,name:"Moonbase Alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io",apiUrl:"https://moonbase.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0}),PA=p({id:1284,name:"Moonbeam",nativeCurrency:{decimals:18,name:"GLMR",symbol:"GLMR"},rpcUrls:{default:{http:["https://rpc.api.moonbeam.network"],webSocket:["wss://wss.api.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io",apiUrl:"https://api-moonbeam.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1}),IA=p({id:1281,name:"Moonbeam Development Node",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]}}}),BA=p({id:1285,name:"Moonriver",nativeCurrency:{decimals:18,name:"MOVR",symbol:"MOVR"},rpcUrls:{default:{http:["https://rpc.api.moonriver.moonbeam.network"],webSocket:["wss://wss.api.moonriver.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io",apiUrl:"https://api-moonriver.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1}),FA=p({id:2818,name:"Morph",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.morphl2.io"],webSocket:["wss://rpc.morphl2.io:8443"]}},blockExplorers:{default:{name:"Morph Explorer",url:"https://explorer.morphl2.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3654913}},testnet:!1}),UA=p({id:2810,name:"Morph Holesky",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-quicknode-holesky.morphl2.io"],webSocket:["wss://rpc-quicknode-holesky.morphl2.io"]}},blockExplorers:{default:{name:"Morph Holesky Explorer",url:"https://explorer-holesky.morphl2.io",apiUrl:"https://explorer-api-holesky.morphl2.io/api?"}},testnet:!0}),OA=p({id:2710,name:"Morph Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.morphl2.io"]}},blockExplorers:{default:{name:"Morph Testnet Explorer",url:"https://explorer-testnet.morphl2.io",apiUrl:"https://explorer-api-testnet.morphl2.io/api"}},testnet:!0}),_A=p({id:5551,name:"Nahmii 2 Mainnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://l2.nahmii.io"]}},blockExplorers:{default:{name:"Nahmii 2 Explorer",url:"https://explorer.n2.nahmii.io"}},testnet:!1}),DA=p({id:22222,name:"Nautilus Mainnet",nativeCurrency:{name:"ZBC",symbol:"ZBC",decimals:9},rpcUrls:{default:{http:["https://api.nautilus.nautchain.xyz"]}},blockExplorers:{default:{name:"NautScan",url:"https://nautscan.com"}}}),MA=p({id:397,name:"NEAR Protocol",nativeCurrency:{decimals:18,name:"NEAR",symbol:"NEAR"},rpcUrls:{default:{http:["https://eth-rpc.mainnet.near.org"]}},blockExplorers:{default:{name:"NEAR Explorer",url:"https://eth-explorer.near.org"}},testnet:!1}),NA=p({id:398,name:"NEAR Protocol Testnet",nativeCurrency:{decimals:18,name:"NEAR",symbol:"NEAR"},rpcUrls:{default:{http:["https://eth-rpc.testnet.near.org"]}},blockExplorers:{default:{name:"NEAR Explorer",url:"https://eth-explorer-testnet.near.org"}},testnet:!0}),LA=p({id:245022926,name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://devnet.neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0}),zA=p({id:245022934,network:"neonMainnet",name:"Neon EVM MainNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://neon-proxy-mainnet.solana.p2p.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:206545524}},testnet:!1}),RA=p({id:47763,name:"Neo X Mainnet",nativeCurrency:{name:"Gas",symbol:"GAS",decimals:18},rpcUrls:{default:{http:["https://mainnet-1.rpc.banelabs.org","https://mainnet-2.rpc.banelabs.org"]}},blockExplorers:{default:{name:"Neo X - Explorer",url:"https://xexplorer.neo.org"}},testnet:!1}),HA=p({id:12227332,name:"Neo X Testnet T4",nativeCurrency:{name:"Gas",symbol:"GAS",decimals:18},rpcUrls:{default:{http:["https://testnet.rpc.banelabs.org/"]}},blockExplorers:{default:{name:"neox-scan",url:"https://xt4scan.ngd.network"}},testnet:!0}),$A=p({id:1012,name:"Newton",nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},rpcUrls:{default:{http:["https://global.rpc.mainnet.newtonproject.org"]}},blockExplorers:{default:{name:"NewFi explorer",url:"https://explorer.newtonproject.org/"}},testnet:!1}),GA=p({id:4242,name:"Nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{default:{name:"NexiScan",url:"https://www.nexiscan.com",apiUrl:"https://www.nexiscan.com/api"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}}),jA=p({id:240,name:"Nexilix Smart Chain",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}}),VA=p({id:6900,name:"Nibiru",nativeCurrency:{decimals:18,name:"NIBI",symbol:"NIBI"},rpcUrls:{default:{http:["https://evm-rpc.nibiru.fi"]}},blockExplorers:{default:{name:"NibiScan",url:"https://nibiscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:19587573}}}),WA=p({id:200024,name:"Nitrograph Testnet",testnet:!0,rpcUrls:{default:{http:["https://rpc-testnet.nitrograph.foundation"]}},nativeCurrency:{name:"Nitro",symbol:"NOS",decimals:18},blockExplorers:{default:{url:"https://explorer-testnet.nitrograph.foundation",name:"Nitrograph Explorer"}}}),qA=p({id:166,name:"Nomina",nativeCurrency:{name:"Nomina",symbol:"NOM",decimals:18},rpcUrls:{default:{http:["https://mainnet.nomina.io"],webSocket:["wss://mainnet.nomina.io"]}},blockExplorers:{default:{name:"Nomina Explorer",url:"https://nomscan.io"}},testnet:!1}),YA=p({id:4090,network:"oasis-testnet",name:"Oasis Testnet",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.oasis.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://oasis.ftnscan.com",apiUrl:"https://oasis.ftnscan.com/api"}},testnet:!0}),KA=p({id:248,name:"Oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games",apiUrl:"https://scan.oasys.games/api"}}}),ZA=p({id:911867,name:"Odyssey Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://odyssey.ithaca.xyz"]}},blockExplorers:{default:{name:"Odyssey Explorer",url:"https://odyssey-explorer.ithaca.xyz",apiUrl:"https://odyssey-explorer.ithaca.xyz/api"}},testnet:!0}),XA=p({id:66,name:"OKC",nativeCurrency:{decimals:18,name:"OKT",symbol:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}}),QA=p({id:311,name:"Omax Mainnet",nativeCurrency:{decimals:18,name:"OMAX",symbol:"OMAX"},rpcUrls:{default:{http:["https://mainapi.omaxray.com"]}},blockExplorers:{default:{name:"Omax Explorer",url:"https://omaxscan.com"}},testnet:!1}),JA=p({id:166,name:"Omni",nativeCurrency:{name:"Omni",symbol:"OMNI",decimals:18},rpcUrls:{default:{http:["https://mainnet.omni.network"],webSocket:["wss://mainnet.omni.network"]}},blockExplorers:{default:{name:"OmniScan",url:"https://omniscan.network"}},testnet:!1}),eP=p({id:164,name:"Omni Omega",nativeCurrency:{name:"Omni",symbol:"OMNI",decimals:18},rpcUrls:{default:{http:["https://omega.omni.network"],webSocket:["wss://omega.omni.network"]}},blockExplorers:{default:{name:"Omega OmniScan",url:"https://omega.omniscan.network/"}},testnet:!0}),tP=p({id:309075,name:"One World Chain Mainnet",nativeCurrency:{decimals:18,name:"OWCT",symbol:"OWCT"},rpcUrls:{default:{http:["https://mainnet-rpc.oneworldchain.org"]}},blockExplorers:{default:{name:"One World Explorer",url:"https://mainnet.oneworldchain.org"}},testnet:!1}),rP=p({id:9700,name:"OORT MainnetDev",nativeCurrency:{decimals:18,name:"OORT",symbol:"OORT"},rpcUrls:{default:{http:["https://dev-rpc.oortech.com"]}},blockExplorers:{default:{name:"OORT MainnetDev Explorer",url:"https://dev-scan.oortech.com"}}}),bl=56,nP=p({id:204,name:"opBNB",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opBNB (BSCScan)",url:"https://opbnb.bscscan.com",apiUrl:"https://api-opbnb.bscscan.com/api"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881},l2OutputOracle:{[bl]:{address:"0x153CAB79f4767E2ff862C94aa49573294B13D169"}},portal:{[bl]:{address:"0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519"}},l1StandardBridge:{[bl]:{address:"0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea"}}},sourceId:bl}),yl=97,sP=p({id:5611,name:"opBNB Testnet",nativeCurrency:{decimals:18,name:"tBNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://opbnb-testnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://testnet.opbnbscan.com"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108},l2OutputOracle:{[yl]:{address:"0xFf2394Bb843012562f4349C6632a0EcB92fC8810"}},portal:{[yl]:{address:"0x4386C8ABf2009aC0c263462Da568DD9d46e52a31"}},l1StandardBridge:{[yl]:{address:"0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840"}}},testnet:!0,sourceId:yl}),aP=p({id:1612,name:"OpenLedger",nativeCurrency:{name:"Open",symbol:"OPEN",decimals:18},rpcUrls:{default:{http:["https://rpc.openledger.xyz"]}},blockExplorers:{default:{name:"OpenLedger Explorer",url:"https://scan.openledger.xyz"}},testnet:!1}),mi=1,oP=p({...V,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...V.contracts,disputeGameFactory:{[mi]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[mi]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[mi]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[mi]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:mi}),gl=5,iP=p({...V,id:420,name:"Optimism Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.optimism.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io",apiUrl:"https://goerli-optimism.etherscan.io/api"}},contracts:{...V.contracts,l2OutputOracle:{[gl]:{address:"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461},portal:{[gl]:{address:"0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383"}},l1StandardBridge:{[gl]:{address:"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8"}}},testnet:!0,sourceId:gl}),bi=11155111,cP=p({...V,id:11155420,name:"OP Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.optimism.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com",apiUrl:"https://optimism-sepolia.blockscout.com/api"}},contracts:{...V.contracts,disputeGameFactory:{[bi]:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{[bi]:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{[bi]:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{[bi]:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:bi}),lP=p({id:62050,name:"Optopia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.optopia.ai"]}},blockExplorers:{default:{name:"Optopia Explorer",url:"https://scan.optopia.ai"}},testnet:!1}),uP=p({id:62049,name:"Optopia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.optopia.ai"]}},blockExplorers:{default:{name:"Optopia Explorer",url:"https://scan-testnet.optopia.ai"}},testnet:!0}),dP=p({id:291,name:"Orderly",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.orderly.network"]}},blockExplorers:{default:{name:"Orderly Explorer",url:"https://explorer.orderly.network"}},testnet:!1}),pP=p({id:4460,name:"Orderly Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://l2-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"]}},blockExplorers:{default:{name:"Orderly Explorer",url:"https://explorerl2new-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"}},testnet:!0}),fP=p({id:41144114,name:"Otim Devnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["http://devnet.otim.xyz"]}},contracts:{batchInvoker:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3"}}}),hP=p({id:11297108109,name:"Palm",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}}}),mP=p({id:11297108099,name:"Palm Testnet",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}},testnet:!0}),bP=p({id:3338,name:"Peaq",nativeCurrency:{decimals:18,name:"peaq",symbol:"PEAQ"},rpcUrls:{default:{http:["https://quicknode1.peaq.xyz","https://quicknode2.peaq.xyz","https://quicknode3.peaq.xyz"],webSocket:["wss://quicknode1.peaq.xyz","wss://quicknode2.peaq.xyz","wss://quicknode3.peaq.xyz"]}},blockExplorers:{default:{name:"Subscan",url:"https://peaq.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3566354}}}),xl=1,yP=p({id:424,network:"pgn",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Explorer",url:"https://explorer.publicgoods.network",apiUrl:"https://explorer.publicgoods.network/api"}},contracts:{l2OutputOracle:{[xl]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209},portal:{[xl]:{address:"0xb26Fd985c5959bBB382BAFdD0b879E149e48116c"}},l1StandardBridge:{[xl]:{address:"0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b"}}},formatters:ip,sourceId:xl}),wl=11155111,gP=p({id:58008,network:"pgn-testnet",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network",apiUrl:"https://explorer.sepolia.publicgoods.network/api"}},contracts:{l2OutputOracle:{[wl]:{address:"0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe"}},portal:{[wl]:{address:"0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179"}},l1StandardBridge:{[wl]:{address:"0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},formatters:ip,sourceId:wl,testnet:!0}),xP=p({id:13381,name:"Phoenix Blockchain",nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},rpcUrls:{default:{http:["https://rpc.phoenixplorer.com"]}},blockExplorers:{default:{name:"Phoenixplorer",url:"https://phoenixplorer.com",apiUrl:"https://phoenixplorer.com/api"}},contracts:{multicall3:{address:"0x498cF757a575cFF2c2Ed9f532f56Efa797f86442",blockCreated:5620192}}}),wP=p({id:7070,name:"Planq Mainnet",nativeCurrency:{decimals:18,name:"PLQ",symbol:"PLQ"},rpcUrls:{default:{http:["https://planq-rpc.nodies.app","https://evm-rpc.planq.network","https://jsonrpc.planq.nodestake.top"]}},blockExplorers:{default:{name:"Planq Explorer",url:"https://evm.planq.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8470015}},testnet:!1}),vP=p({id:9745,name:"Plasma",blockTime:1e3,nativeCurrency:{name:"Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://rpc.plasma.to"]}},blockExplorers:{default:{name:"PlasmaScan",url:"https://plasmascan.to"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),EP=p({id:9747,name:"Plasma Devnet",nativeCurrency:{name:"Devnet Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://devnet-rpc.plasma.to"]}},testnet:!0,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),kP=p({id:9746,name:"Plasma Testnet",nativeCurrency:{name:"Testnet Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plasma.to"]}},blockExplorers:{default:{name:"RouteScan",url:"https://testnet.plasmascan.to"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}),CP=p({...ur,id:1612127,name:"PlayFi Albireo Testnet",network:"albireo",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://albireo-rpc.playfi.ai"],webSocket:["wss://albireo-rpc-ws.playfi.ai/ws"]}},blockExplorers:{default:{name:"PlayFi Albireo Explorer",url:"https://albireo-explorer.playfi.ai"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0}),TP=p({id:242,name:"Plinga",nativeCurrency:{name:"Plinga",symbol:"PLINGA",decimals:18},rpcUrls:{default:{http:["https://rpcurl.mainnet.plgchain.com"]}},blockExplorers:{default:{name:"Plgscan",url:"https://www.plgscan.com"}},contracts:{multicall3:{address:"0x0989576160f2e7092908BB9479631b901060b6e4",blockCreated:204489}}}),SP=p({id:98865,name:"Plume (Legacy)",nativeCurrency:{name:"Plume Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.plumenetwork.xyz"],webSocket:["wss://rpc.plumenetwork.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.plumenetwork.xyz",apiUrl:"https://explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:48577}},sourceId:1}),AP=p({id:98864,name:"Plume Devnet (Legacy)",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://test-rpc.plumenetwork.xyz"],webSocket:["wss://test-rpc.plumenetwork.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://test-explorer.plumenetwork.xyz",apiUrl:"https://test-explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:481948}},testnet:!0,sourceId:11155111}),PP=p({id:98866,name:"Plume",nativeCurrency:{name:"Plume",symbol:"PLUME",decimals:18},rpcUrls:{default:{http:["https://rpc.plume.org"],webSocket:["wss://rpc.plume.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.plume.org",apiUrl:"https://explorer.plume.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:39679}},sourceId:1}),IP=p({id:98867,name:"Plume Testnet",nativeCurrency:{name:"Plume",symbol:"PLUME",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plume.org"],webSocket:["wss://testnet-rpc.plume.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plume.org",apiUrl:"https://testnet-explorer.plume.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:199712}},testnet:!0,sourceId:11155111}),BP=p({id:161221135,name:"Plume Testnet (Legacy)",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plumenetwork.xyz/http"],webSocket:["wss://testnet-rpc.plumenetwork.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plumenetwork.xyz",apiUrl:"https://testnet-explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6022332}},testnet:!0,sourceId:11155111}),FP=p({id:631571,name:"Polter Testnet",nativeCurrency:{decimals:18,name:"Polter GHST",symbol:"GHST"},rpcUrls:{default:{http:["https://geist-polter.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://polter-testnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11245}},testnet:!0}),UP=p({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),OP=p({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://amoy.polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0}),_P=p({id:80001,name:"Polygon Mumbai",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://80001.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com",apiUrl:"https://api-testnet.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0}),DP=p({id:1101,name:"Polygon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com",apiUrl:"https://api-zkevm.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}}),MP=p({id:2442,name:"Polygon zkEVM Cardona",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.cardona.zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://cardona-zkevm.polygonscan.com",apiUrl:"https://cardona-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:114091}}}),NP=p({id:1442,name:"Polygon zkEVM Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com",apiUrl:"https://testnet-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}}),LP=p({id:8008,name:"Polynomial",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.polynomial.fi"]}},blockExplorers:{default:{name:"Polynomial Scan",url:"https://polynomialscan.io"}},testnet:!1,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),zP=p({id:80008,name:"Polynomia Sepolia",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.sepolia.polynomial.fi"]}},blockExplorers:{default:{name:"Polynomial Scan",url:"https://sepolia.polynomialscan.io"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),RP=p({id:60603,name:"POTOS Mainnet",nativeCurrency:{decimals:18,name:"POTOS Token",symbol:"POT"},rpcUrls:{default:{http:["https://rpc.potos.hk"]}},blockExplorers:{default:{name:"POTOS Mainnet explorer",url:"https://scan.potos.hk"}},testnet:!1}),HP=p({id:60600,name:"POTOS Testnet",nativeCurrency:{decimals:18,name:"POTOS Token",symbol:"POT"},rpcUrls:{default:{http:["https://rpc-testnet.potos.hk"]}},blockExplorers:{default:{name:"POTOS Testnet explorer",url:"https://scan-testnet.potos.hk"}},testnet:!0}),$P=p({id:23023,name:"PremiumBlock Testnet",nativeCurrency:{name:"Premium Block",symbol:"PBLK",decimals:18},rpcUrls:{default:{http:["https://rpc.premiumblock.org"]}},blockExplorers:{default:{name:"PremiumBlocks Explorer",url:"https://scan.premiumblock.org"}},testnet:!0}),GP=p({id:369,name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,blockTime:1e4,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://ipfs.scan.pulsechain.com",apiUrl:"https://api.scan.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),jP=p({id:943,name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},blockTime:1e4,rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com",apiUrl:"https://scan.v4.testnet.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),VP=p({id:490092,name:"Pumpfi Testnet",nativeCurrency:{decimals:18,name:"PMPT",symbol:"PMPT"},rpcUrls:{default:{http:["https://rpc1testnet.pumpfi.me"]}},blockExplorers:{default:{name:"Pumpfi Testnet Scan",url:"https://testnetscan.pumpfi.me"}},testnet:!0}),Jb=11155111,WP=p({...V,name:"Pyrope Testnet",testnet:!0,id:695569,sourceId:Jb,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.pyropechain.com"],webSocket:["wss://rpc.pyropechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://pyrope.blockscout.com"}},contracts:{...V.contracts,l1StandardBridge:{[Jb]:{address:"0xC24932c31D9621aE9e792576152B7ef010cFC2F8"}}}}),qP=p({id:766,name:"QL1",nativeCurrency:{decimals:18,name:"QOM",symbol:"QOM"},rpcUrls:{default:{http:["https://rpc.qom.one"]}},blockExplorers:{default:{name:"Ql1 Explorer",url:"https://scan.qom.one"}},contracts:{multicall3:{address:"0x7A52370716ea730585884F5BDB0f6E60C39b8C64"}},testnet:!1}),YP=p({id:35441,name:"Q Mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org",apiUrl:"https://explorer.q.org/api"}}}),KP=p({id:35443,name:"Q Testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org",apiUrl:"https://explorer.qtestnet.org/api"}},testnet:!0}),ZP=p({id:9,name:"Quai Network Mainnet",nativeCurrency:{decimals:18,name:"Quai",symbol:"QUAI"},rpcUrls:{default:{http:["https://rpc.quai.network/cyprus1"]}},blockExplorers:{default:{name:"Quaiscan",url:"https://quaiscan.io",apiUrl:"https://quaiscan.io/api"}},testnet:!1}),XP=p({id:15e3,name:"Quai Network Testnet",nativeCurrency:{decimals:18,name:"Quai",symbol:"QUAI"},rpcUrls:{default:{http:["https://orchard.rpc.quai.network/cyprus1"]}},blockExplorers:{default:{name:"Orchard Quaiscan",url:"https://orchard.quaiscan.io",apiUrl:"https://orchard.quaiscan.io/api"}},testnet:!0}),QP=p({id:5318007,name:"Reactive Lasna Testnet",nativeCurrency:{decimals:18,name:"Lasna React",symbol:"lREACT"},rpcUrls:{default:{http:["https://lasna-rpc.rnk.dev"]}},blockExplorers:{default:{name:"Reactscan",url:"https://lasna.reactscan.net"}},testnet:!0}),JP=p({id:111188,name:"re.al",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://rpc.realforreal.gelato.digital"]}},blockExplorers:{default:{name:"re.al Explorer",url:"https://explorer.re.al",apiUrl:"https://explorer.re.al/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:695}}}),eI=p({id:151,name:"Redbelly Network Mainnet",nativeCurrency:{name:"Redbelly Native Coin",symbol:"RBNT",decimals:18},rpcUrls:{default:{http:["https://governors.mainnet.redbelly.network"]}},blockExplorers:{default:{name:"Routescan",url:"https://redbelly.routescan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/151/etherscan/api"}},testnet:!1}),tI=p({id:153,name:"Redbelly Network Testnet",nativeCurrency:{name:"Redbelly Native Coin",symbol:"RBNT",decimals:18},rpcUrls:{default:{http:["https://governors.testnet.redbelly.network"]}},blockExplorers:{default:{name:"Routescan",url:"https://redbelly.testnet.routescan.io",apiUrl:"https://api.routescan.io/v2/network/testnet/evm/153_2/etherscan/api"}},testnet:!0}),rI=p({id:50342,name:"Reddio",nativeCurrency:{name:"Reddio",symbol:"RED",decimals:18},rpcUrls:{default:{http:["https://mainnet.reddio.com/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://reddio.cloud.blockscout.com",apiUrl:"https://reddio.cloud.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:848849}},testnet:!1}),nI=p({id:50341,name:"Reddio Sepolia",nativeCurrency:{name:"Reddio",symbol:"RED",decimals:18},rpcUrls:{default:{http:["https://reddio-dev.reddio.com"]}},blockExplorers:{default:{name:"Reddioscan",url:"https://reddio-devnet.l2scan.co",apiUrl:"https://reddio-devnet.l2scan.co/api"}},testnet:!0}),vl=1,sI=p({...V,name:"Redstone",id:690,sourceId:vl,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:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[vl]:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:19578329}},l2OutputOracle:{[vl]:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:19578337}},l1StandardBridge:{[vl]:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:19578331}}}}),aI=p({id:47805,name:"REI Mainnet",nativeCurrency:{decimals:18,name:"REI",symbol:"REI"},rpcUrls:{default:{http:["https://rpc.rei.network"],webSocket:["wss://rpc.rei.network"]}},blockExplorers:{default:{name:"REI Scan",url:"https://scan.rei.network"}},testnet:!1}),oI=p({id:1729,name:"Reya Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.reya.network"],webSocket:["wss://ws.reya.network"]}},blockExplorers:{default:{name:"Reya Network Explorer",url:"https://explorer.reya.network"}},testnet:!1}),iI=p({id:11155931,name:"RISE Testnet",nativeCurrency:{name:"RISE Testnet Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.riselabs.xyz"],webSocket:["wss://testnet.riselabs.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.testnet.riselabs.xyz/",apiUrl:"https://explorer.testnet.riselabs.xyz/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},testnet:!0}),cI=p({id:753,name:"Rivalz",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rivalz.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Rivalz Caldera Explorer",url:"https://rivalz.calderaexplorer.xyz"}},testnet:!1}),lI=p({id:570,name:"Rollux Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com",apiUrl:"https://explorer.rollux.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}}),uI=p({id:57e3,name:"Rollux Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io",apiUrl:"https://rollux.tanenbaum.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}}}),dI=p({id:2020,name:"Ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}}),pI=p({id:7668,name:"The Root Network",nativeCurrency:{decimals:18,name:"XRP",symbol:"XRP"},rpcUrls:{default:{http:["https://root.rootnet.live/archive"],webSocket:["wss://root.rootnet.live/archive/ws"]}},blockExplorers:{default:{name:"Rootscan",url:"https://rootscan.io"}},contracts:{multicall3:{address:"0xc9C2E2429AeC354916c476B30d729deDdC94988d",blockCreated:9218338}}}),fI=p({id:7672,name:"The Root Network - Porcini",nativeCurrency:{decimals:18,name:"XRP",symbol:"XRP"},rpcUrls:{default:{http:["https://porcini.rootnet.app/archive"],webSocket:["wss://porcini.rootnet.app/archive/ws"]}},blockExplorers:{default:{name:"Rootscan",url:"https://porcini.rootscan.io"}},contracts:{multicall3:{address:"0xc9C2E2429AeC354916c476B30d729deDdC94988d",blockCreated:10555692}},testnet:!0}),hI=p({id:30,name:"Rootstock Mainnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"RBTC"},rpcUrls:{default:{http:["https://public-node.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.rsk.co"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4249540}}}),mI=p({id:31,name:"Rootstock Testnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"tRBTC"},rpcUrls:{default:{http:["https://public-node.testnet.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.testnet.rootstock.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2771150}},testnet:!0}),El=1,bI=p({...V,id:12553,name:"RSS3 VSL Mainnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Mainnet Scan",url:"https://scan.rss3.io",apiUrl:"https://scan.rss3.io/api"}},contracts:{...V.contracts,l2OutputOracle:{[El]:{address:"0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14193},portal:{[El]:{address:"0x6A12432491bbbE8d3babf75F759766774C778Db4",blockCreated:19387057}},l1StandardBridge:{[El]:{address:"0x4cbab69108Aa72151EDa5A3c164eA86845f18438"}}},sourceId:El}),kl=11155111,yI=p({...V,id:2331,name:"RSS3 VSL Sepolia Testnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Sepolia Testnet Scan",url:"https://scan.testnet.rss3.io",apiUrl:"https://scan.testnet.rss3.io/api"}},contracts:{...V.contracts,l2OutputOracle:{[kl]:{address:"0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:55697},portal:{[kl]:{address:"0xcBD77E8E1E7F06B25baDe67142cdE82652Da7b57",blockCreated:5345035}},l1StandardBridge:{[kl]:{address:"0xdDD29bb63B0839FB1cE0eE439Ff027738595D07B"}}},testnet:!0,sourceId:kl}),gI=p({id:7225878,name:"Saakuru Mainnet",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.saakuru.network"]}},blockExplorers:{default:{name:"Saakuru Explorer",url:"https://explorer.saakuru.network"}},testnet:!1}),xI=p({id:5464,name:"Saga",network:"saga",nativeCurrency:{decimals:18,name:"gas",symbol:"GAS"},rpcUrls:{default:{http:["https://sagaevm.jsonrpc.sagarpc.io"]}},blockExplorers:{default:{name:"Saga Explorer",url:"https://sagaevm.sagaexplorer.io"}},contracts:{multicall3:{address:"0x864DDc9B50B9A0dF676d826c9B9EDe9F8913a160",blockCreated:467530}}}),wI=p({id:2021,name:"Saigon Testnet",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0}),vI=p({id:1996,name:"Sanko",nativeCurrency:{name:"DMT",symbol:"DMT",decimals:18},rpcUrls:{default:{http:["https://mainnet.sanko.xyz"]}},blockExplorers:{default:{name:"Sanko Explorer",url:"https://explorer.sanko.xyz"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:37}},testnet:!1}),EI=p({id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/mainnet/sapphire"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}}),kI=p({id:23295,name:"Oasis Sapphire Testnet",network:"sapphire-testnet",nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/testnet/sapphire"}},testnet:!0}),CI=p({id:3109,name:"SatoshiVM Alpha Mainnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc-node-http.svmscan.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://svmscan.io",apiUrl:"https://svmscan.io/api"}}}),TI=p({id:3110,name:"SatoshiVM Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://test-rpc-node-http.svmscan.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet.svmscan.io",apiUrl:"https://testnet.svmscan.io/api"}},testnet:!0}),SI=p({id:534352,name:"Scroll",blockTime:3e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com",apiUrl:"https://api.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),AI=p({id:534351,name:"Scroll Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://sepolia.scrollscan.com",apiUrl:"https://api-sepolia.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0}),PI=p({id:1329,name:"Sei Network",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc.sei-apis.com/"],webSocket:["wss://evm-ws.sei-apis.com/"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com",apiUrl:"https://seitrace.com/pacific-1/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}}}),II=p({id:713715,name:"Sei Devnet",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc-arctic-1.sei-apis.com"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com"}},testnet:!0}),BI=p({id:5124,name:"Seismic Devnet",nativeCurrency:{name:"Seismic Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://node-2.seismicdev.net/rpc"]}},blockExplorers:{default:{name:"Seismic Devnet Explorer",url:"https://explorer-2.seismicdev.net"}},testnet:!0}),FI=p({id:1328,name:"Sei Testnet",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc-testnet.sei-apis.com"],webSocket:["wss://evm-ws-testnet.sei-apis.com"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:98697651}},testnet:!0}),UI=p({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0}),Cl=1,OI=p({...V,id:360,name:"Shape",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.shape.network"]}},blockExplorers:{default:{name:"shapescan",url:"https://shapescan.xyz",apiUrl:"https://shapescan.xyz/api"}},contracts:{...V.contracts,l2OutputOracle:{[Cl]:{address:"0x6Ef8c69CfE4635d866e3E02732068022c06e724D",blockCreated:20369940}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1},portal:{[Cl]:{address:"0xEB06fFa16011B5628BaB98E29776361c83741dd3",blockCreated:20369933}},l1StandardBridge:{[Cl]:{address:"0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B",blockCreated:20369935}}},sourceId:Cl}),_I=p({...V,id:11011,name:"Shape Sepolia Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.shape.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer-sepolia.shape.network/",apiUrl:"https://explorer-sepolia.shape.network/api/v2"}},contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0,sourceId:11155111}),DI=p({id:8118,name:"Shardeum",nativeCurrency:{name:"Shardeum",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://api.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer.shardeum.org"}},testnet:!1}),MI=p({id:8082,name:"Shardeum Sphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0}),NI=p({id:109,name:"Shibarium",network:"shibarium",nativeCurrency:{name:"Bone",symbol:"BONE",decimals:18},rpcUrls:{default:{http:["https://rpc.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://shibariumscan.io"}},contracts:{multicall3:{address:"0x864Bf681ADD6052395188A89101A1B37d3B4C961",blockCreated:265900}}}),LI=p({id:157,name:"Puppynet Shibarium",nativeCurrency:{decimals:18,name:"Bone",symbol:"BONE"},rpcUrls:{default:{http:["https://puppynet.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://puppyscan.shib.io",apiUrl:"https://puppyscan.shib.io/api"}},contracts:{multicall3:{address:"0xA4029b74FBA366c926eDFA7Dd10B21C621170a4c",blockCreated:3035769}},testnet:!0}),zI=p({id:336,name:"Shiden",nativeCurrency:{decimals:18,name:"SDN",symbol:"SDN"},rpcUrls:{default:{http:["https://shiden.public.blastapi.io"],webSocket:["wss://shiden-rpc.dwellir.com"]}},blockExplorers:{default:{name:"Shiden Scan",url:"https://shiden.subscan.io"}},testnet:!1}),RI=p({id:148,name:"Shimmer",network:"shimmer",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.shimmer.network",apiUrl:"https://explorer.evm.shimmer.network/api"}}}),HI=p({id:1073,name:"Shimmer Testnet",network:"shimmer-testnet",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.testnet.shimmer.network",apiUrl:"https://explorer.evm.testnet.shimmer.network/api"}},testnet:!0}),$I=p({id:97453,name:"Sidra Chain",nativeCurrency:{decimals:18,name:"Sidra Digital Asset",symbol:"SDA"},rpcUrls:{default:{http:["https://node.sidrachain.com"]}},blockExplorers:{default:{name:"Sidra Chain Explorer",url:"https://ledger.sidrachain.com"}}}),GI=p({id:380929,name:"Silent Data Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.silentdata.com"]}},blockExplorers:{default:{name:"Silent Data Mainnet Explorer",url:"https://explorer-mainnet.rollup.silentdata.com"}},testnet:!1}),jI=p({id:2355,name:"Silicon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.silicon.network","https://silicon-mainnet.nodeinfra.com"]}},blockExplorers:{default:{name:"SiliconScope",url:"https://scope.silicon.network"}}}),VI=p({id:1722641160,name:"Silicon Sepolia zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-sepolia.silicon.network","https://silicon-testnet.nodeinfra.com"]}},blockExplorers:{default:{name:"SiliconSepoliaScope",url:"https://scope-sepolia.silicon.network"}},testnet:!0}),WI=p({id:98,name:"Six Protocol",nativeCurrency:{decimals:18,name:"SIX",symbol:"SIX"},rpcUrls:{default:{http:["https://sixnet-rpc-evm.sixprotocol.net"]}},blockExplorers:{default:{name:"Six Protocol Scan",url:"https://sixscan.io/sixnet"}},testnet:!1}),qI=p({id:391845894,name:"SKALE | Block Brawlers",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}}),YI=p({id:1564830818,name:"SKALE Calypso Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}}),KI=p({id:974399131,name:"SKALE Calypso Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/giant-half-dual-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/giant-half-dual-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://giant-half-dual-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:103220}},testnet:!0}),ZI=p({id:1026062157,name:"SKALE | CryptoBlades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}}),XI=p({id:1032942172,name:"SKALE | Crypto Colosseum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}}),QI=p({id:2046399126,name:"SKALE Europa Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}}),JI=p({id:1444673419,name:"SKALE Europa Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/juicy-low-small-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/juicy-low-small-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://juicy-low-small-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:110858}},testnet:!0}),eB=p({id:2139927552,name:"Exorde Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}}),tB=p({id:1273227453,name:"SKALE | Human Protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}}),rB=p({id:1482601649,name:"SKALE Nebula Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}}),nB=p({id:37084624,name:"SKALE Nebula Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/lanky-ill-funny-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/lanky-ill-funny-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://lanky-ill-funny-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:105141}},testnet:!0}),sB=p({id:278611351,name:"SKALE | Razor Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}}),aB=p({id:1187947933,name:"SKALE Base",nativeCurrency:{name:"Credits",symbol:"CREDIT",decimals:18},rpcUrls:{default:{http:["https://skale-base.skalenodes.com/v1/base"],webSocket:["wss://skale-base.skalenodes.com/v1/ws/base"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://skale-base-explorer.skalenodes.com/"}},testnet:!0}),oB=p({id:324705682,name:"SKALE Base Sepolia Testnet",nativeCurrency:{name:"Credits",symbol:"CREDIT",decimals:18},rpcUrls:{default:{http:["https://base-sepolia-testnet.skalenodes.com/v1/base-testnet"],webSocket:["wss://base-sepolia-testnet.skalenodes.com/v1/ws/base-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://base-sepolia-testnet-explorer.skalenodes.com/"}},testnet:!0}),iB=p({id:1350216234,name:"SKALE Titan Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}}),cB=p({id:1020352220,name:"SKALE Titan Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/aware-fake-trim-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/aware-fake-trim-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://aware-fake-trim-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:104072}},testnet:!0}),lB=p({id:984123,name:"Forma Sketchpad",network:"sketchpad",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.sketchpad-1.forma.art"],webSocket:["wss://ws.sketchpad-1.forma.art"]}},blockExplorers:{default:{name:"Sketchpad Explorer",url:"https://explorer.sketchpad-1.forma.art"}},testnet:!0}),yi=1,uB=p({...V,id:2192,network:"snaxchain-mainnet",name:"SnaxChain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.snaxchain.io"]}},blockExplorers:{default:{name:"Snax Explorer",url:"https://explorer.snaxchain.io",apiUrl:"https://explorer.snaxchain.io/api"}},contracts:{...V.contracts,disputeGameFactory:{[yi]:{address:"0x472562Fcf26D6b2793f8E0b0fB660ba0E5e08A46"}},l2OutputOracle:{[yi]:{address:"0x2172e492Fc807F5d5645D0E3543f139ECF539294"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[yi]:{address:"0x79f446D024d74D0Bb6E699C131c703463c5D65E9"}},l1StandardBridge:{[yi]:{address:"0x6534Bdb6b5c060d3e6aa833433333135eFE8E0aA"}}},sourceId:yi}),gi=11155111,dB=p({...V,id:13001,network:"snaxchain-testnet",name:"SnaxChain Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.snaxchain.io"]}},blockExplorers:{default:{name:"Snax Explorer",url:"https://testnet-explorer.snaxchain.io",apiUrl:"https://testnet-explorer.snaxchain.io/api"}},contracts:{...V.contracts,disputeGameFactory:{[gi]:{address:"0x206a75d89d45F146C54020F132FF93bEDD09f55E"}},l2OutputOracle:{[gi]:{address:"0x60e3A368a4cdCEf85ffB964e372726F56A46221e"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[gi]:{address:"0xb5afdd0E8dDF081Ef90e8A3e0c7b5798e66E954E"}},l1StandardBridge:{[gi]:{address:"0xbd37E1a59D4C00C9A46F75018dffd84061bC5f74"}}},testnet:!0,sourceId:gi}),pB=p({id:5031,name:"Somnia",nativeCurrency:{name:"Somnia",symbol:"SOMI",decimals:18},rpcUrls:{default:{http:["https://api.infra.mainnet.somnia.network"]}},blockExplorers:{default:{name:"Somnia Explorer",url:"https://explorer.somnia.network",apiUrl:"https://explorer.somnia.network/api"}},testnet:!1}),fB=p({id:50312,name:"Somnia Testnet",nativeCurrency:{name:"STT",symbol:"STT",decimals:18},rpcUrls:{default:{http:["https://dream-rpc.somnia.network"]}},blockExplorers:{default:{name:"Somnia Testnet Explorer",url:"https://shannon-explorer.somnia.network/",apiUrl:"https://shannon-explorer.somnia.network/api"}},contracts:{multicall3:{address:"0x841b8199E6d3Db3C6f264f6C2bd8848b3cA64223",blockCreated:71314235}},testnet:!0}),xi=1,hB=p({...V,id:1868,name:"Soneium Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium.blockscout.com",apiUrl:"https://soneium.blockscout.com/api"}},contracts:{...V.contracts,disputeGameFactory:{[xi]:{address:"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"}},l2OutputOracle:{[xi]:{address:"0x0000000000000000000000000000000000000000"}},portal:{[xi]:{address:"0x88e529a6ccd302c948689cd5156c83d4614fae92",blockCreated:7061266}},l1StandardBridge:{[xi]:{address:"0xeb9bf100225c214efc3e7c651ebbadcf85177607",blockCreated:7061266}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},sourceId:xi}),wi=11155111,mB=p({...V,id:1946,name:"Soneium Minato Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.minato.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium-minato.blockscout.com",apiUrl:"https://soneium-minato.blockscout.com/api"}},contracts:{...V.contracts,disputeGameFactory:{[wi]:{address:"0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01"}},l2OutputOracle:{[wi]:{address:"0x710e5286C746eC38beeB7538d0146f60D27be343"}},portal:{[wi]:{address:"0x65ea1489741A5D72fFdD8e6485B216bBdcC15Af3",blockCreated:6466136}},l1StandardBridge:{[wi]:{address:"0x5f5a404A5edabcDD80DB05E8e54A78c9EBF000C2",blockCreated:6466136}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},testnet:!0,sourceId:wi}),bB=p({id:19,name:"Songbird Canary-Network",nativeCurrency:{decimals:18,name:"Songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network",apiUrl:"https://songbird-explorer.flare.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13382504}}}),yB=p({id:16,name:"Songbird Testnet Coston",nativeCurrency:{decimals:18,name:"Coston Flare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network",apiUrl:"https://coston-explorer.flare.network/api"}},testnet:!0}),gB=p({id:146,name:"Sonic",blockTime:630,nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Explorer",url:"https://sonicscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:60}},testnet:!1}),xB=p({id:57054,name:"Sonic Blaze Testnet",nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.blaze.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Blaze Testnet Explorer",url:"https://testnet.sonicscan.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1100}},testnet:!0}),wB=p({id:64165,name:"Sonic Testnet",nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.testnet.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Testnet Explorer",url:"https://testnet.soniclabs.com/"}},testnet:!0}),vB=p({...ur,blockTime:200,id:50104,name:"Sophon",nativeCurrency:{decimals:18,name:"Sophon",symbol:"SOPH"},rpcUrls:{default:{http:["https://rpc.sophon.xyz"],webSocket:["wss://rpc.sophon.xyz/ws"]}},blockExplorers:{default:{name:"Sophon Block Explorer",url:"https://explorer.sophon.xyz"}},contracts:{multicall3:{address:"0x5f4867441d2416cA88B1b3fd38f21811680CD2C8",blockCreated:116}},testnet:!1}),EB=p({...ur,blockTime:200,id:531050104,name:"Sophon Testnet",nativeCurrency:{decimals:18,name:"Sophon",symbol:"SOPH"},rpcUrls:{default:{http:["https://rpc.testnet.sophon.xyz"],webSocket:["wss://rpc.testnet.sophon.xyz/ws"]}},blockExplorers:{default:{name:"Sophon Block Explorer",url:"https://explorer.testnet.sophon.xyz"}},contracts:{multicall3:{address:"0x83c04d112adedA2C6D9037bb6ecb42E7f0b108Af",blockCreated:15642}},testnet:!0}),kB=p({id:100021,name:"Sova",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.sova.io"]}},blockExplorers:{default:{name:"Sova Block Explorer",url:"hhttps://explorer.sova.io"}},testnet:!1}),CB=p({id:120893,name:"Sova Network Sepolia",nativeCurrency:{decimals:18,name:"Sepolia Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.testnet.sova.io"]}},blockExplorers:{default:{name:"Sova Sepolia Explorer",url:"https://explorer.testnet.sova.io"}},testnet:!0}),TB=p({id:88882,name:"Chiliz Spicy Testnet",network:"chiliz-spicy-Testnet",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy-rpc.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"http://spicy-explorer.chiliz.com",apiUrl:"http://spicy-explorer.chiliz.com/api"}},testnet:!0}),SB=p({id:2201,name:"Stable Testnet",nativeCurrency:{decimals:18,name:"gUSDT",symbol:"gUSDT"},rpcUrls:{default:{http:["https://rpc.testnet.stable.xyz"],webSocket:["wss://rpc.testnet.stable.xyz"]}},blockExplorers:{default:{name:"Stablescan",url:"https://testnet.stablescan.xyz",apiUrl:"https://testnet.stablescan.xyz/api"}},testnet:!0}),ey=p({...Sp,id:1660990954,name:"Status Network Sepolia",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://public.sepolia.rpc.status.network"],webSocket:["wss://public.sepolia.rpc.status.network/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepoliascan.status.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1578364}},testnet:!0}),AB=p({id:1234,name:"Step Network",nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},rpcUrls:{default:{http:["https://rpc.step.network"]}},blockExplorers:{default:{name:"Step Scan",url:"https://stepscan.io"}},testnet:!1}),PB=p({id:1514,name:"Story",nativeCurrency:{decimals:18,name:"IP Token",symbol:"IP"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:340998},ensRegistry:{address:"0x5dc881dda4e4a8d312be3544ad13118d1a04cb17",blockCreated:648924},ensUniversalResolver:{address:"0xddfb18888a9466688235887dec2a10c4f5effee9",blockCreated:649114}},rpcUrls:{default:{http:["https://mainnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story explorer",url:"https://storyscan.io",apiUrl:"https://storyscan.io/api/v2"}},ensTlds:[".ip"],testnet:!1}),IB=p({id:1315,name:"Story Aeneid",network:"story-aeneid",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1792},ensRegistry:{address:"0x5dC881dDA4e4a8d312be3544AD13118D1a04Cb17",blockCreated:1322033},ensUniversalResolver:{address:"0x6D3B3F99177FB2A5de7F9E928a9BD807bF7b5BAD",blockCreated:1322097}},rpcUrls:{default:{http:["https://aeneid.storyrpc.io"]}},blockExplorers:{default:{name:"Story Aeneid Explorer",url:"https://aeneid.storyscan.io",apiUrl:"https://aeneid.storyscan.io/api/v2"}},ensTlds:[".ip"],testnet:!0}),BB=p({id:1516,name:"Story Odyssey",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://rpc.odyssey.storyrpc.io"]}},blockExplorers:{default:{name:"Story Odyssey Explorer",url:"https://odyssey.storyscan.xyz"}},testnet:!0}),FB=p({id:1513,name:"Story Testnet",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://testnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story Testnet Explorer",url:"https://testnet.storyscan.xyz"}},testnet:!0}),UB=p({id:105105,name:"Stratis Mainnet",network:"stratis",nativeCurrency:{name:"Stratis",symbol:"STRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Stratis Explorer",url:"https://explorer.stratisevm.com"}}}),OB=p({id:8866,name:"SuperLumio",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.lumio.io"]}},blockExplorers:{default:{name:"Lumio explorer",url:"https://explorer.lumio.io"}},testnet:!1}),_B=p({id:55244,name:"Superposition",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.superposition.so"]}},blockExplorers:{default:{name:"Superposition Explorer",url:"https://explorer.superposition.so"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:39}},testnet:!1}),vi=1,DB=p({...V,id:5330,name:"Superseed",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Explorer",url:"https://explorer.superseed.xyz",apiUrl:"https://explorer.superseed.xyz/api/v2"}},contracts:{...V.contracts,disputeGameFactory:{[vi]:{address:"0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0",blockCreated:20737481}},l2OutputOracle:{[vi]:{address:"0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949",blockCreated:20737481}},portal:{[vi]:{address:"0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07",blockCreated:20737481}},l1StandardBridge:{[vi]:{address:"0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede",blockCreated:20737481}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:vi}),Ap=11155111,MB=p({...V,id:53302,name:"Superseed Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Sepolia Explorer",url:"https://sepolia-explorer.superseed.xyz",apiUrl:"https://sepolia-explorer.superseed.xyz/api/v2"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},portal:{[Ap]:{address:"0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB",blockCreated:5523438}},l1StandardBridge:{[Ap]:{address:"0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C",blockCreated:5523442}}},testnet:!0,sourceId:Ap}),NB=p({id:763375,name:"Surge Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://l2-rpc.hoodi.surge.wtf"],webSocket:["wss://l2-ws.hoodi.surge.wtf"]}},blockExplorers:{default:{name:"Surge Testnet Blockscout",url:"https://explorer.hoodi.surge.wtf"}},testnet:!0}),LB=p({id:254,name:"Swan Chain Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.swanchain.org"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://swanscan.io"}},testnet:!1}),zB=p({id:20241133,name:"Swan Proxima Testnet",nativeCurrency:{name:"Swan Ether",symbol:"sETH",decimals:18},rpcUrls:{default:{http:["https://rpc-proxima.swanchain.io"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://proxima-explorer.swanchain.io"}},testnet:!0}),RB=p({id:2024,name:"Swan Saturn Testnet",nativeCurrency:{name:"Swan Ether",symbol:"sETH",decimals:18},rpcUrls:{default:{http:["https://saturn-rpc.swanchain.io"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://saturn-explorer.swanchain.io"}},testnet:!0}),HB=p({...V,id:1923,name:"Swellchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://swell-mainnet.alt.technology"]}},blockExplorers:{default:{name:"Swell Explorer",url:"https://explorer.swellnetwork.io",apiUrl:"https://explorer.swellnetwork.io/api"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}}}),$B=p({...V,id:1924,name:"Swellchain Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://swell-testnet.alt.technology"]}},blockExplorers:{default:{name:"Swellchain Testnet Explorer",url:"https://swell-testnet-explorer.alt.technology",apiUrl:"https://swell-testnet-explorer.alt.technology/api"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}}}),GB=p({id:94,name:"SwissDLT Mainnet",nativeCurrency:{decimals:18,name:"BCTS",symbol:"BCTS"},rpcUrls:{default:{http:["https://rpc.swissdlt.ch"]}},blockExplorers:{default:{name:"SwissDLT Explorer",url:"https://explorer.swissdlt.ch"}},testnet:!1}),jB=p({id:57,name:"Syscoin Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org",apiUrl:"https://explorer.syscoin.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}}),VB=p({id:5700,name:"Syscoin Tanenbaum Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}}}),WB=p({id:239,name:"TAC",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/tac"]}},blockExplorers:{default:{name:"Blockscout",url:"https://tac.blockscout.com",apiUrl:"https://tac.blockscout.com/api"},native:{name:"TAC Explorer",url:"https://explorer.tac.build",apiUrl:"https://explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),qB=p({id:2391,name:"TAC SPB Testnet",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://spb.rpc.tac.build"]}},blockExplorers:{default:{name:"TAC",url:"https://spb.explorer.tac.build",apiUrl:"https://spb.explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:471429}},testnet:!0}),YB=p({id:167e3,name:"Taiko Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.mainnet.taiko.xyz"],webSocket:["wss://ws.mainnet.taiko.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://taikoscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11269}}}),KB=p({id:167009,name:"Taiko Hekla L2",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hekla.taiko.xyz"]}},blockExplorers:{default:{name:"Taikoscan",url:"https://hekla.taikoscan.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59757}},testnet:!0}),ZB=p({id:167013,name:"Taiko Hoodi",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hoodi.taiko.xyz"],webSocket:["wss://ws.hoodi.taiko.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://hoodi.taikoscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:581116}},testnet:!0}),XB=p({id:167007,name:"Taiko Jolnir (Alpha-5 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.jolnir.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.jolnir.taiko.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:732706}},testnet:!0}),QB=p({id:167008,name:"Taiko Katla (Alpha-6 Testnet)",network:"tko-katla",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katla.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.katla.taiko.xyz"}}}),JB=p({id:167005,name:"Taiko (Alpha-3 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}}}),eF=p({id:841,name:"Taraxa Mainnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}}),tF=p({id:842,name:"Taraxa Testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0}),rF=p({id:10218,name:"Tea Sepolia",nativeCurrency:{name:"Sepolia Tea",symbol:"TEA",decimals:18},rpcUrls:{default:{http:["https://tea-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Tea Sepolia Explorer",url:"https://sepolia.tea.xyz"}},testnet:!0}),nF=p({id:2017,name:"Telcoin Adiri Testnet",nativeCurrency:{name:"Telcoin",symbol:"TEL",decimals:18},rpcUrls:{default:{http:["https://rpc.telcoin.network"]}},blockExplorers:{default:{name:"telscan",url:"https://telscan.io"}},testnet:!0}),sF=p({id:40,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://rpc.telos.net"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}}),aF=p({id:41,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://rpc.testnet.telos.net"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0});/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Pp=BigInt(0),Ip=BigInt(1);function Ei(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Bp(e){if(!Ei(e))throw new Error("Uint8Array expected")}function ki(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function Tl(e){const t=e.toString(16);return t.length&1?"0"+t:t}function ty(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Pp:BigInt("0x"+e)}const ry=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",oF=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Ci(e){if(Bp(e),ry)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=oF[e[r]];return t}const An={_0:48,_9:57,A:65,F:70,a:97,f:102};function ny(e){if(e>=An._0&&e<=An._9)return e-An._0;if(e>=An.A&&e<=An.F)return e-(An.A-10);if(e>=An.a&&e<=An.f)return e-(An.a-10)}function Sl(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(ry)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let s=0,a=0;s<r;s++,a+=2){const o=ny(e.charCodeAt(a)),i=ny(e.charCodeAt(a+1));if(o===void 0||i===void 0){const c=e[a]+e[a+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+a)}n[s]=o*16+i}return n}function qs(e){return ty(Ci(e))}function sy(e){return Bp(e),ty(Ci(Uint8Array.from(e).reverse()))}function Ti(e,t){return Sl(e.toString(16).padStart(t*2,"0"))}function ay(e,t){return Ti(e,t).reverse()}function Er(e,t,r){let n;if(typeof t=="string")try{n=Sl(t)}catch(a){throw new Error(e+" must be hex string or Uint8Array, cause: "+a)}else if(Ei(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const s=n.length;if(typeof r=="number"&&s!==r)throw new Error(e+" of length "+r+" expected, got "+s);return n}function Al(...e){let t=0;for(let n=0;n<e.length;n++){const s=e[n];Bp(s),t+=s.length}const r=new Uint8Array(t);for(let n=0,s=0;n<e.length;n++){const a=e[n];r.set(a,s),s+=a.length}return r}const Fp=e=>typeof e=="bigint"&&Pp<=e;function Up(e,t,r){return Fp(e)&&Fp(t)&&Fp(r)&&t<=e&&e<r}function Wa(e,t,r,n){if(!Up(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function iF(e){let t;for(t=0;e>Pp;e>>=Ip,t+=1);return t}const Pl=e=>(Ip<<BigInt(e))-Ip,Op=e=>new Uint8Array(e),oy=e=>Uint8Array.from(e);function cF(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=Op(e),s=Op(e),a=0;const o=()=>{n.fill(1),s.fill(0),a=0},i=(...d)=>r(s,n,...d),c=(d=Op(0))=>{s=i(oy([0]),d),n=i(),d.length!==0&&(s=i(oy([1]),d),n=i())},l=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const f=[];for(;d<t;){n=i();const h=n.slice();f.push(h),d+=n.length}return Al(...f)};return(d,f)=>{o(),c(d);let h;for(;!(h=f(l()));)c();return o(),h}}const lF={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||Ei(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Il(e,t,r={}){const n=(s,a,o)=>{const i=lF[a];if(typeof i!="function")throw new Error("invalid validator function");const c=e[s];if(!(o&&c===void 0)&&!i(c,e))throw new Error("param "+String(s)+" is invalid. Expected "+a+", got "+c)};for(const[s,a]of Object.entries(t))n(s,a,!1);for(const[s,a]of Object.entries(r))n(s,a,!0);return e}function iy(e){const t=new WeakMap;return(r,...n)=>{const s=t.get(r);if(s!==void 0)return s;const a=e(r,...n);return t.set(r,a),a}}const uF="0.1.1";function dF(){return uF}class oe extends Error{static setStaticOptions(t){oe.prototype.docsOrigin=t.docsOrigin,oe.prototype.showVersion=t.showVersion,oe.prototype.version=t.version}constructor(t,r={}){const n=(()=>{var u;if(r.cause instanceof oe){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return r.cause&&"details"in r.cause&&typeof r.cause.details=="string"?r.cause.details:(u=r.cause)!=null&&u.message?r.cause.message:r.details})(),s=r.cause instanceof oe&&r.cause.docsPath||r.docsPath,a=r.docsOrigin??oe.prototype.docsOrigin,o=`${a}${s??""}`,i=!!(r.version??oe.prototype.showVersion),c=r.version??oe.prototype.version,l=[t||"An error occurred.",...r.metaMessages?["",...r.metaMessages]:[],...n||s||i?["",n?`Details: ${n}`:void 0,s?`See: ${o}`:void 0,i?`Version: ${c}`:void 0]:[]].filter(u=>typeof u=="string").join(`
105
105
  `);super(l,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{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,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{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,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=r.cause,this.details=n,this.docs=o,this.docsOrigin=a,this.docsPath=s,this.shortMessage=t,this.showVersion=i,this.version=c}walk(t){return cy(this,t)}}Object.defineProperty(oe,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${dF()}`}}),oe.setStaticOptions(oe.defaultStaticOptions);function cy(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?cy(e.cause,t):t?null:e}function qa(e,t){if(Ya(e)>t)throw new MF({givenSize:Ya(e),maxSize:t})}const Pn={zero:48,nine:57,A:65,F:70,a:97,f:102};function ly(e){if(e>=Pn.zero&&e<=Pn.nine)return e-Pn.zero;if(e>=Pn.A&&e<=Pn.F)return e-(Pn.A-10);if(e>=Pn.a&&e<=Pn.f)return e-(Pn.a-10)}function pF(e,t={}){const{dir:r,size:n=32}=t;if(n===0)return e;if(e.length>n)throw new NF({size:e.length,targetSize:n,type:"Bytes"});const s=new Uint8Array(n);for(let a=0;a<n;a++){const o=r==="right";s[o?a:n-a-1]=e[o?a:e.length-a-1]}return s}function uy(e,t={}){const{dir:r="left"}=t;let n=e,s=0;for(let a=0;a<n.length-1&&n[r==="left"?a:n.length-a-1].toString()==="0";a++)s++;return n=r==="left"?n.slice(s):n.slice(0,n.length-s),n}function Bl(e,t){if(bt(e)>t)throw new vF({givenSize:bt(e),maxSize:t})}function fF(e,t){if(typeof t=="number"&&t>0&&t>bt(e)-1)throw new gy({offset:t,position:"start",size:bt(e)})}function hF(e,t,r){if(typeof t=="number"&&typeof r=="number"&&bt(e)!==r-t)throw new gy({offset:r,position:"end",size:bt(e)})}function dy(e,t={}){const{dir:r,size:n=32}=t;if(n===0)return e;const s=e.replace("0x","");if(s.length>n*2)throw new EF({size:Math.ceil(s.length/2),targetSize:n,type:"Hex"});return`0x${s[r==="right"?"padEnd":"padStart"](n*2,"0")}`}function mF(e,t={}){const{dir:r="left"}=t;let n=e.replace("0x",""),s=0;for(let a=0;a<n.length-1&&n[r==="left"?a:n.length-a-1].toString()==="0";a++)s++;return n=r==="left"?n.slice(s):n.slice(0,n.length-s),n==="0"?"0x":r==="right"&&n.length%2===1?`0x${n}0`:`0x${n}`}const bF="#__bigint";function Si(e,t,r){return JSON.stringify(e,(n,s)=>typeof s=="bigint"?s.toString()+bF:s,r)}const yF=new TextEncoder,gF=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function xF(e,t={}){const{strict:r=!1}=t;if(!e)throw new by(e);if(typeof e!="string")throw new by(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new yy(e);if(!e.startsWith("0x"))throw new yy(e)}function ft(...e){return`0x${e.reduce((t,r)=>t+r.replace("0x",""),"")}`}function Fl(e){return e instanceof Uint8Array?Pt(e):Array.isArray(e)?Pt(new Uint8Array(e)):e}function py(e,t={}){const r=`0x${Number(e)}`;return typeof t.size=="number"?(Bl(r,t.size),Ys(r,t.size)):r}function Pt(e,t={}){let r="";for(let s=0;s<e.length;s++)r+=gF[e[s]];const n=`0x${r}`;return typeof t.size=="number"?(Bl(n,t.size),Ks(n,t.size)):n}function Z(e,t={}){const{signed:r,size:n}=t,s=BigInt(e);let a;n?r?a=(1n<<BigInt(n)*8n-1n)-1n:a=2n**(BigInt(n)*8n)-1n:typeof e=="number"&&(a=BigInt(Number.MAX_SAFE_INTEGER));const o=typeof a=="bigint"&&r?-a-1n:0;if(a&&s>a||s<o){const l=typeof e=="bigint"?"n":"";throw new my({max:a?`${a}${l}`:void 0,min:`${o}${l}`,signed:r,size:n,value:`${e}${l}`})}const c=`0x${(r&&s<0?BigInt.asUintN(n*8,BigInt(s)):s).toString(16)}`;return n?Ys(c,n):c}function Ai(e,t={}){return Pt(yF.encode(e),t)}function Ys(e,t){return dy(e,{dir:"left",size:t})}function Ks(e,t){return dy(e,{dir:"right",size:t})}function fy(e){return Pt(IF(e))}function Pe(e,t,r,n={}){const{strict:s}=n;fF(e,t);const a=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return s&&hF(a,t,r),a}function bt(e){return Math.ceil((e.length-2)/2)}function _p(e){return mF(e,{dir:"left"})}function yt(e,t={}){const{signed:r}=t;t.size&&Bl(e,t.size);const n=BigInt(e);if(!r)return n;const s=(e.length-2)/2,a=(1n<<BigInt(s)*8n)-1n,o=a>>1n;return n<=o?n:n-a-1n}function Pi(e,t={}){const{signed:r,size:n}=t;return Number(!r&&!n?e:yt(e,t))}function hy(e,t={}){const{size:r}=t;let n=cs(e);return r&&(qa(n,r),n=vy(n)),new TextDecoder().decode(n)}function Nr(e,t={}){const{strict:r=!1}=t;try{return xF(e,{strict:r}),!0}catch{return!1}}class my extends oe{constructor({max:t,min:r,signed:n,size:s,value:a}){super(`Number \`${a}\` is not in safe${s?` ${s*8}-bit`:""}${n?" signed":" unsigned"} integer range ${t?`(\`${r}\` to \`${t}\`)`:`(above \`${r}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class by extends oe{constructor(t){super(`Value \`${typeof t=="object"?Si(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class yy extends oe{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class wF extends oe{constructor(t){super(`Hex value \`"${t}"\` is an odd length (${t.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}let vF=class extends oe{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}};class gy extends oe{constructor({offset:t,position:r,size:n}){super(`Slice ${r==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}let EF=class extends oe{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}};const kF=new TextDecoder,CF=new TextEncoder;function TF(e){if(!(e instanceof Uint8Array)){if(!e)throw new Ul(e);if(typeof e!="object")throw new Ul(e);if(!("BYTES_PER_ELEMENT"in e))throw new Ul(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!=="Uint8Array")throw new Ul(e)}}function SF(...e){let t=0;for(const n of e)t+=n.length;const r=new Uint8Array(t);for(let n=0,s=0;n<e.length;n++){const a=e[n];r.set(a,s),s+=a.length}return r}function Dp(e){return e instanceof Uint8Array?e:typeof e=="string"?cs(e):AF(e)}function AF(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function cs(e,t={}){const{size:r}=t;let n=e;r&&(Bl(e,r),n=Ks(e,r));let s=n.slice(2);s.length%2&&(s=`0${s}`);const a=s.length/2,o=new Uint8Array(a);for(let i=0,c=0;i<a;i++){const l=ly(s.charCodeAt(c++)),u=ly(s.charCodeAt(c++));if(l===void 0||u===void 0)throw new oe(`Invalid byte sequence ("${s[c-2]}${s[c-1]}" in "${s}").`);o[i]=l<<4|u}return o}function xy(e,t={}){const{size:r}=t,n=CF.encode(e);return typeof r=="number"?(qa(n,r),PF(n,r)):n}function PF(e,t){return pF(e,{dir:"right",size:t})}function IF(e){return crypto.getRandomValues(new Uint8Array(e))}function Ya(e){return e.length}function BF(e,t,r,n={}){const{strict:s}=n;return e.slice(t,r)}function FF(e,t={}){const{size:r}=t;typeof r<"u"&&qa(e,r);const n=Pt(e,t);return yt(n,t)}function UF(e,t={}){const{size:r}=t;let n=e;if(typeof r<"u"&&(qa(n,r),n=wy(n)),n.length>1||n[0]>1)throw new DF(n);return!!n[0]}function In(e,t={}){const{size:r}=t;typeof r<"u"&&qa(e,r);const n=Pt(e,t);return Pi(n,t)}function OF(e,t={}){const{size:r}=t;let n=e;return typeof r<"u"&&(qa(n,r),n=vy(n)),kF.decode(n)}function wy(e){return uy(e,{dir:"left"})}function vy(e){return uy(e,{dir:"right"})}function _F(e){try{return TF(e),!0}catch{return!1}}class DF extends oe{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}class Ul extends oe{constructor(t){super(`Value \`${typeof t=="object"?Si(t):t}\` of type \`${typeof t}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}class MF extends oe{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class NF extends oe{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}class LF extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){const n=this.keys().next().value;n&&this.delete(n)}return this}}const Mp={checksum:new LF(8192)}.checksum;function Ii(e,t={}){const{as:r=typeof e=="string"?"Hex":"Bytes"}=t,n=sb(Dp(e));return r==="Bytes"?n:Pt(n)}function zF(e,t={}){const{as:r=typeof e=="string"?"Hex":"Bytes"}=t,n=H1(Dp(e));return r==="Bytes"?n:Pt(n)}function RF(e){return Nr(e)&&bt(e)===32}function Ey(e,t={}){const{compressed:r}=t,{prefix:n,x:s,y:a}=e;if(r===!1||typeof s=="bigint"&&typeof a=="bigint"){if(n!==4)throw new Cy({prefix:n,cause:new WF});return}if(r===!0||typeof s=="bigint"&&typeof a>"u"){if(n!==3&&n!==2)throw new Cy({prefix:n,cause:new VF});return}throw new jF({publicKey:e})}function HF(e){const t=(()=>{if(Nr(e))return ky(e);if(_F(e))return $F(e);const{prefix:r,x:n,y:s}=e;return typeof n=="bigint"&&typeof s=="bigint"?{prefix:r??4,x:n,y:s}:{prefix:r,x:n}})();return Ey(t),t}function $F(e){return ky(Pt(e))}function ky(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new qF({publicKey:e});if(e.length===130){const n=BigInt(Pe(e,0,32)),s=BigInt(Pe(e,32,64));return{prefix:4,x:n,y:s}}if(e.length===132){const n=Number(Pe(e,0,1)),s=BigInt(Pe(e,1,33)),a=BigInt(Pe(e,33,65));return{prefix:n,x:s,y:a}}const t=Number(Pe(e,0,1)),r=BigInt(Pe(e,1,33));return{prefix:t,x:r}}function GF(e,t={}){return cs(Np(e,t))}function Np(e,t={}){Ey(e);const{prefix:r,x:n,y:s}=e,{includePrefix:a=!0}=t;return ft(a?Z(r,{size:1}):"0x",Z(n,{size:32}),typeof s=="bigint"?Z(s,{size:32}):"0x")}class jF extends oe{constructor({publicKey:t}){super(`Value \`${Si(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class Cy extends oe{constructor({prefix:t,cause:r}){super(`Prefix "${t}" is invalid.`,{cause:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class VF extends oe{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class WF extends oe{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let qF=class extends oe{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${bt(Fl(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const YF=/^0x[a-fA-F0-9]{40}$/;function Lr(e,t={}){const{strict:r=!0}=t;if(!YF.test(e))throw new Ty({address:e,cause:new ZF});if(r){if(e.toLowerCase()===e)return;if(Lp(e)!==e)throw new Ty({address:e,cause:new XF})}}function Lp(e){if(Mp.has(e))return Mp.get(e);Lr(e,{strict:!1});const t=e.substring(2).toLowerCase(),r=Ii(xy(t),{as:"Bytes"}),n=t.split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&n[a]&&(n[a]=n[a].toUpperCase()),(r[a>>1]&15)>=8&&n[a+1]&&(n[a+1]=n[a+1].toUpperCase());const s=`0x${n.join("")}`;return Mp.set(e,s),s}function KF(e,t={}){const{checksum:r=!1}=t;return Lr(e),r?Lp(e):e}function Ol(e,t={}){const r=Ii(`0x${Np(e).slice(4)}`).substring(26);return KF(`0x${r}`,t)}function zp(e,t){return Lr(e,{strict:!1}),Lr(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()}function _l(e,t={}){const{strict:r=!0}=t??{};try{return Lr(e,{strict:r}),!0}catch{return!1}}class Ty extends oe{constructor({address:t,cause:r}){super(`Address "${t}" is invalid.`,{cause:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class ZF extends oe{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class XF extends oe{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const er=BigInt(0),Vt=BigInt(1),Zs=BigInt(2),QF=BigInt(3),Sy=BigInt(4),Ay=BigInt(5),Py=BigInt(8);function tr(e,t){const r=e%t;return r>=er?r:t+r}function kr(e,t,r){let n=e;for(;t-- >er;)n*=n,n%=r;return n}function Rp(e,t){if(e===er)throw new Error("invert: expected non-zero number");if(t<=er)throw new Error("invert: expected positive modulus, got "+t);let r=tr(e,t),n=t,s=er,a=Vt;for(;r!==er;){const i=n/r,c=n%r,l=s-a*i;n=r,r=c,s=a,a=l}if(n!==Vt)throw new Error("invert: does not exist");return tr(s,t)}function Iy(e,t){const r=(e.ORDER+Vt)/Sy,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw new Error("Cannot find square root");return n}function JF(e,t){const r=(e.ORDER-Ay)/Py,n=e.mul(t,Zs),s=e.pow(n,r),a=e.mul(t,s),o=e.mul(e.mul(a,Zs),s),i=e.mul(a,e.sub(o,e.ONE));if(!e.eql(e.sqr(i),t))throw new Error("Cannot find square root");return i}function eU(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-Vt,r=0;for(;t%Zs===er;)t/=Zs,r++;let n=Zs;const s=Ka(e);for(;Fy(s,n)===1;)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return Iy;let a=s.pow(n,t);const o=(t+Vt)/Zs;return function(c,l){if(c.is0(l))return l;if(Fy(c,l)!==1)throw new Error("Cannot find square root");let u=r,d=c.mul(c.ONE,a),f=c.pow(l,t),h=c.pow(l,o);for(;!c.eql(f,c.ONE);){if(c.is0(f))return c.ZERO;let y=1,g=c.sqr(f);for(;!c.eql(g,c.ONE);)if(y++,g=c.sqr(g),y===u)throw new Error("Cannot find square root");const E=Vt<<BigInt(u-y-1),v=c.pow(d,E);u=y,d=c.sqr(v),f=c.mul(f,d),h=c.mul(h,v)}return h}}function tU(e){return e%Sy===QF?Iy:e%Py===Ay?JF:eU(e)}const rU=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function nU(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=rU.reduce((n,s)=>(n[s]="function",n),t);return Il(e,r)}function sU(e,t,r){if(r<er)throw new Error("invalid exponent, negatives unsupported");if(r===er)return e.ONE;if(r===Vt)return t;let n=e.ONE,s=t;for(;r>er;)r&Vt&&(n=e.mul(n,s)),s=e.sqr(s),r>>=Vt;return n}function By(e,t,r=!1){const n=new Array(t.length).fill(r?e.ZERO:void 0),s=t.reduce((o,i,c)=>e.is0(i)?o:(n[c]=o,e.mul(o,i)),e.ONE),a=e.inv(s);return t.reduceRight((o,i,c)=>e.is0(i)?o:(n[c]=e.mul(o,n[c]),e.mul(o,i)),a),n}function Fy(e,t){const r=(e.ORDER-Vt)/Zs,n=e.pow(t,r),s=e.eql(n,e.ONE),a=e.eql(n,e.ZERO),o=e.eql(n,e.neg(e.ONE));if(!s&&!a&&!o)throw new Error("invalid Legendre symbol result");return s?1:a?0:-1}function Uy(e,t){t!==void 0&&No(t);const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Ka(e,t,r=!1,n={}){if(e<=er)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:s,nByteLength:a}=Uy(e,t);if(a>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let o;const i=Object.freeze({ORDER:e,isLE:r,BITS:s,BYTES:a,MASK:Pl(s),ZERO:er,ONE:Vt,create:c=>tr(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof c);return er<=c&&c<e},is0:c=>c===er,isOdd:c=>(c&Vt)===Vt,neg:c=>tr(-c,e),eql:(c,l)=>c===l,sqr:c=>tr(c*c,e),add:(c,l)=>tr(c+l,e),sub:(c,l)=>tr(c-l,e),mul:(c,l)=>tr(c*l,e),pow:(c,l)=>sU(i,c,l),div:(c,l)=>tr(c*Rp(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Rp(c,e),sqrt:n.sqrt||(c=>(o||(o=tU(e)),o(i,c))),toBytes:c=>r?ay(c,a):Ti(c,a),fromBytes:c=>{if(c.length!==a)throw new Error("Field.fromBytes: expected "+a+" bytes, got "+c.length);return r?sy(c):qs(c)},invertBatch:c=>By(i,c),cmov:(c,l,u)=>u?l:c});return Object.freeze(i)}function Oy(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function _y(e){const t=Oy(e);return t+Math.ceil(t/2)}function aU(e,t,r=!1){const n=e.length,s=Oy(t),a=_y(t);if(n<16||n<a||n>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+n);const o=r?sy(e):qs(e),i=tr(o,t-Vt)+Vt;return r?ay(i,s):Ti(i,s)}class Dy extends $d{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,v8(t);const n=Hc(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,a=new Uint8Array(s);a.set(n.length>s?t.create().update(n).digest():n);for(let o=0;o<a.length;o++)a[o]^=54;this.iHash.update(a),this.oHash=t.create();for(let o=0;o<a.length;o++)a[o]^=106;this.oHash.update(a),es(a)}update(t){return Aa(this),this.iHash.update(t),this}digestInto(t){Aa(this),zs(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:s,destroyed:a,blockLen:o,outputLen:i}=this;return t=t,t.finished=s,t.destroyed=a,t.blockLen=o,t.outputLen=i,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const My=(e,t,r)=>new Dy(e,t).update(r).digest();My.create=(e,t)=>new Dy(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ny=BigInt(0),Hp=BigInt(1);function $p(e,t){const r=t.negate();return e?r:t}function Ly(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Gp(e,t){Ly(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1),s=2**e,a=Pl(e),o=BigInt(e);return{windows:r,windowSize:n,mask:a,maxNumber:s,shiftBy:o}}function zy(e,t,r){const{windowSize:n,mask:s,maxNumber:a,shiftBy:o}=r;let i=Number(e&s),c=e>>o;i>n&&(i-=a,c+=Hp);const l=t*n,u=l+Math.abs(i)-1,d=i===0,f=i<0,h=t%2!==0;return{nextN:c,offset:u,isZero:d,isNeg:f,isNegF:h,offsetF:l}}function oU(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function iU(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const jp=new WeakMap,Ry=new WeakMap;function Vp(e){return Ry.get(e)||1}function cU(e,t){return{constTimeNegate:$p,hasPrecomputes(r){return Vp(r)!==1},unsafeLadder(r,n,s=e.ZERO){let a=r;for(;n>Ny;)n&Hp&&(s=s.add(a)),a=a.double(),n>>=Hp;return s},precomputeWindow(r,n){const{windows:s,windowSize:a}=Gp(n,t),o=[];let i=r,c=i;for(let l=0;l<s;l++){c=i,o.push(c);for(let u=1;u<a;u++)c=c.add(i),o.push(c);i=c.double()}return o},wNAF(r,n,s){let a=e.ZERO,o=e.BASE;const i=Gp(r,t);for(let c=0;c<i.windows;c++){const{nextN:l,offset:u,isZero:d,isNeg:f,isNegF:h,offsetF:y}=zy(s,c,i);s=l,d?o=o.add($p(h,n[y])):a=a.add($p(f,n[u]))}return{p:a,f:o}},wNAFUnsafe(r,n,s,a=e.ZERO){const o=Gp(r,t);for(let i=0;i<o.windows&&s!==Ny;i++){const{nextN:c,offset:l,isZero:u,isNeg:d}=zy(s,i,o);if(s=c,!u){const f=n[l];a=a.add(d?f.negate():f)}}return a},getPrecomputes(r,n,s){let a=jp.get(n);return a||(a=this.precomputeWindow(n,r),r!==1&&jp.set(n,s(a))),a},wNAFCached(r,n,s){const a=Vp(r);return this.wNAF(a,this.getPrecomputes(a,r,s),n)},wNAFCachedUnsafe(r,n,s,a){const o=Vp(r);return o===1?this.unsafeLadder(r,n,a):this.wNAFUnsafe(o,this.getPrecomputes(o,r,s),n,a)},setWindowSize(r,n){Ly(n,t),Ry.set(r,n),jp.delete(r)}}}function lU(e,t,r,n){oU(r,e),iU(n,t);const s=r.length,a=n.length;if(s!==a)throw new Error("arrays of points and scalars must have equal length");const o=e.ZERO,i=iF(BigInt(s));let c=1;i>12?c=i-3:i>4?c=i-2:i>0&&(c=2);const l=Pl(c),u=new Array(Number(l)+1).fill(o),d=Math.floor((t.BITS-1)/c)*c;let f=o;for(let h=d;h>=0;h-=c){u.fill(o);for(let g=0;g<a;g++){const E=n[g],v=Number(E>>BigInt(h)&l);u[v]=u[v].add(r[g])}let y=o;for(let g=u.length-1,E=o;g>0;g--)E=E.add(u[g]),y=y.add(E);if(f=f.add(y),h!==0)for(let g=0;g<c;g++)f=f.double()}return f}function Hy(e){return nU(e.Fp),Il(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Uy(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function $y(e){e.lowS!==void 0&&ki("lowS",e.lowS),e.prehash!==void 0&&ki("prehash",e.prehash)}function uU(e){const t=Hy(e);Il(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:r,Fp:n,a:s}=t;if(r){if(!n.eql(s,n.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class dU extends Error{constructor(t=""){super(t)}}const Bn={Err:dU,_tlv:{encode:(e,t)=>{const{Err:r}=Bn;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length&1)throw new r("tlv.encode: unpadded data");const n=t.length/2,s=Tl(n);if(s.length/2&128)throw new r("tlv.encode: long form length too big");const a=n>127?Tl(s.length/2|128):"";return Tl(e)+a+s+t},decode(e,t){const{Err:r}=Bn;let n=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[n++]!==e)throw new r("tlv.decode: wrong tlv");const s=t[n++],a=!!(s&128);let o=0;if(!a)o=s;else{const c=s&127;if(!c)throw new r("tlv.decode(long): indefinite length not supported");if(c>4)throw new r("tlv.decode(long): byte length is too big");const l=t.subarray(n,n+c);if(l.length!==c)throw new r("tlv.decode: length bytes not complete");if(l[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const u of l)o=o<<8|u;if(n+=c,o<128)throw new r("tlv.decode(long): not minimal encoding")}const i=t.subarray(n,n+o);if(i.length!==o)throw new r("tlv.decode: wrong value length");return{v:i,l:t.subarray(n+o)}}},_int:{encode(e){const{Err:t}=Bn;if(e<Fn)throw new t("integer: negative integers are not allowed");let r=Tl(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){const{Err:t}=Bn;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return qs(e)}},toSig(e){const{Err:t,_int:r,_tlv:n}=Bn,s=Er("signature",e),{v:a,l:o}=n.decode(48,s);if(o.length)throw new t("invalid signature: left bytes after parsing");const{v:i,l:c}=n.decode(2,a),{v:l,l:u}=n.decode(2,c);if(u.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(i),s:r.decode(l)}},hexFromSig(e){const{_tlv:t,_int:r}=Bn,n=t.encode(2,r.encode(e.r)),s=t.encode(2,r.encode(e.s)),a=n+s;return t.encode(48,a)}};function Wp(e,t){return Ci(Ti(e,t))}const Fn=BigInt(0),It=BigInt(1);BigInt(2);const qp=BigInt(3),pU=BigInt(4);function fU(e){const t=uU(e),{Fp:r}=t,n=Ka(t.n,t.nBitLength),s=t.toBytes||((T,C,_)=>{const z=C.toAffine();return Al(Uint8Array.from([4]),r.toBytes(z.x),r.toBytes(z.y))}),a=t.fromBytes||(T=>{const C=T.subarray(1),_=r.fromBytes(C.subarray(0,r.BYTES)),z=r.fromBytes(C.subarray(r.BYTES,2*r.BYTES));return{x:_,y:z}});function o(T){const{a:C,b:_}=t,z=r.sqr(T),S=r.mul(z,T);return r.add(r.add(S,r.mul(T,C)),_)}function i(T,C){const _=r.sqr(C),z=o(T);return r.eql(_,z)}if(!i(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const c=r.mul(r.pow(t.a,qp),pU),l=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(c,l)))throw new Error("bad curve params: a or b");function u(T){return Up(T,It,t.n)}function d(T){const{allowedPrivateKeyLengths:C,nByteLength:_,wrapPrivateKey:z,n:S}=t;if(C&&typeof T!="bigint"){if(Ei(T)&&(T=Ci(T)),typeof T!="string"||!C.includes(T.length))throw new Error("invalid private key");T=T.padStart(_*2,"0")}let m;try{m=typeof T=="bigint"?T:qs(Er("private key",T,_))}catch{throw new Error("invalid private key, expected hex or "+_+" bytes, got "+typeof T)}return z&&(m=tr(m,S)),Wa("private key",m,It,S),m}function f(T){if(!(T instanceof g))throw new Error("ProjectivePoint expected")}const h=iy((T,C)=>{const{px:_,py:z,pz:S}=T;if(r.eql(S,r.ONE))return{x:_,y:z};const m=T.is0();C==null&&(C=m?r.ONE:r.inv(S));const b=r.mul(_,C),x=r.mul(z,C),A=r.mul(S,C);if(m)return{x:r.ZERO,y:r.ZERO};if(!r.eql(A,r.ONE))throw new Error("invZ was invalid");return{x:b,y:x}}),y=iy(T=>{if(T.is0()){if(t.allowInfinityPoint&&!r.is0(T.py))return;throw new Error("bad point: ZERO")}const{x:C,y:_}=T.toAffine();if(!r.isValid(C)||!r.isValid(_))throw new Error("bad point: x or y not FE");if(!i(C,_))throw new Error("bad point: equation left != right");if(!T.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class g{constructor(C,_,z){if(C==null||!r.isValid(C))throw new Error("x required");if(_==null||!r.isValid(_)||r.is0(_))throw new Error("y required");if(z==null||!r.isValid(z))throw new Error("z required");this.px=C,this.py=_,this.pz=z,Object.freeze(this)}static fromAffine(C){const{x:_,y:z}=C||{};if(!C||!r.isValid(_)||!r.isValid(z))throw new Error("invalid affine point");if(C instanceof g)throw new Error("projective point not allowed");const S=m=>r.eql(m,r.ZERO);return S(_)&&S(z)?g.ZERO:new g(_,z,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(C){const _=By(r,C.map(z=>z.pz));return C.map((z,S)=>z.toAffine(_[S])).map(g.fromAffine)}static fromHex(C){const _=g.fromAffine(a(Er("pointHex",C)));return _.assertValidity(),_}static fromPrivateKey(C){return g.BASE.multiply(d(C))}static msm(C,_){return lU(g,n,C,_)}_setWindowSize(C){w.setWindowSize(this,C)}assertValidity(){y(this)}hasEvenY(){const{y:C}=this.toAffine();if(r.isOdd)return!r.isOdd(C);throw new Error("Field doesn't support isOdd")}equals(C){f(C);const{px:_,py:z,pz:S}=this,{px:m,py:b,pz:x}=C,A=r.eql(r.mul(_,x),r.mul(m,S)),I=r.eql(r.mul(z,x),r.mul(b,S));return A&&I}negate(){return new g(this.px,r.neg(this.py),this.pz)}double(){const{a:C,b:_}=t,z=r.mul(_,qp),{px:S,py:m,pz:b}=this;let x=r.ZERO,A=r.ZERO,I=r.ZERO,F=r.mul(S,S),D=r.mul(m,m),k=r.mul(b,b),P=r.mul(S,m);return P=r.add(P,P),I=r.mul(S,b),I=r.add(I,I),x=r.mul(C,I),A=r.mul(z,k),A=r.add(x,A),x=r.sub(D,A),A=r.add(D,A),A=r.mul(x,A),x=r.mul(P,x),I=r.mul(z,I),k=r.mul(C,k),P=r.sub(F,k),P=r.mul(C,P),P=r.add(P,I),I=r.add(F,F),F=r.add(I,F),F=r.add(F,k),F=r.mul(F,P),A=r.add(A,F),k=r.mul(m,b),k=r.add(k,k),F=r.mul(k,P),x=r.sub(x,F),I=r.mul(k,D),I=r.add(I,I),I=r.add(I,I),new g(x,A,I)}add(C){f(C);const{px:_,py:z,pz:S}=this,{px:m,py:b,pz:x}=C;let A=r.ZERO,I=r.ZERO,F=r.ZERO;const D=t.a,k=r.mul(t.b,qp);let P=r.mul(_,m),O=r.mul(z,b),U=r.mul(S,x),L=r.add(_,z),H=r.add(m,b);L=r.mul(L,H),H=r.add(P,O),L=r.sub(L,H),H=r.add(_,S);let G=r.add(m,x);return H=r.mul(H,G),G=r.add(P,U),H=r.sub(H,G),G=r.add(z,S),A=r.add(b,x),G=r.mul(G,A),A=r.add(O,U),G=r.sub(G,A),F=r.mul(D,H),A=r.mul(k,U),F=r.add(A,F),A=r.sub(O,F),F=r.add(O,F),I=r.mul(A,F),O=r.add(P,P),O=r.add(O,P),U=r.mul(D,U),H=r.mul(k,H),O=r.add(O,U),U=r.sub(P,U),U=r.mul(D,U),H=r.add(H,U),P=r.mul(O,H),I=r.add(I,P),P=r.mul(G,H),A=r.mul(L,A),A=r.sub(A,P),P=r.mul(L,O),F=r.mul(G,F),F=r.add(F,P),new g(A,I,F)}subtract(C){return this.add(C.negate())}is0(){return this.equals(g.ZERO)}wNAF(C){return w.wNAFCached(this,C,g.normalizeZ)}multiplyUnsafe(C){const{endo:_,n:z}=t;Wa("scalar",C,Fn,z);const S=g.ZERO;if(C===Fn)return S;if(this.is0()||C===It)return this;if(!_||w.hasPrecomputes(this))return w.wNAFCachedUnsafe(this,C,g.normalizeZ);let{k1neg:m,k1:b,k2neg:x,k2:A}=_.splitScalar(C),I=S,F=S,D=this;for(;b>Fn||A>Fn;)b&It&&(I=I.add(D)),A&It&&(F=F.add(D)),D=D.double(),b>>=It,A>>=It;return m&&(I=I.negate()),x&&(F=F.negate()),F=new g(r.mul(F.px,_.beta),F.py,F.pz),I.add(F)}multiply(C){const{endo:_,n:z}=t;Wa("scalar",C,It,z);let S,m;if(_){const{k1neg:b,k1:x,k2neg:A,k2:I}=_.splitScalar(C);let{p:F,f:D}=this.wNAF(x),{p:k,f:P}=this.wNAF(I);F=w.constTimeNegate(b,F),k=w.constTimeNegate(A,k),k=new g(r.mul(k.px,_.beta),k.py,k.pz),S=F.add(k),m=D.add(P)}else{const{p:b,f:x}=this.wNAF(C);S=b,m=x}return g.normalizeZ([S,m])[0]}multiplyAndAddUnsafe(C,_,z){const S=g.BASE,m=(x,A)=>A===Fn||A===It||!x.equals(S)?x.multiplyUnsafe(A):x.multiply(A),b=m(this,_).add(m(C,z));return b.is0()?void 0:b}toAffine(C){return h(this,C)}isTorsionFree(){const{h:C,isTorsionFree:_}=t;if(C===It)return!0;if(_)return _(g,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:C,clearCofactor:_}=t;return C===It?this:_?_(g,this):this.multiplyUnsafe(t.h)}toRawBytes(C=!0){return ki("isCompressed",C),this.assertValidity(),s(g,this,C)}toHex(C=!0){return ki("isCompressed",C),Ci(this.toRawBytes(C))}}g.BASE=new g(t.Gx,t.Gy,r.ONE),g.ZERO=new g(r.ZERO,r.ONE,r.ZERO);const{endo:E,nBitLength:v}=t,w=cU(g,E?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:g,normPrivateKeyToScalar:d,weierstrassEquation:o,isWithinCurveOrder:u}}function hU(e){const t=Hy(e);return Il(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function mU(e){const t=hU(e),{Fp:r,n,nByteLength:s,nBitLength:a}=t,o=r.BYTES+1,i=2*r.BYTES+1;function c(k){return tr(k,n)}function l(k){return Rp(k,n)}const{ProjectivePoint:u,normPrivateKeyToScalar:d,weierstrassEquation:f,isWithinCurveOrder:h}=fU({...t,toBytes(k,P,O){const U=P.toAffine(),L=r.toBytes(U.x),H=Al;return ki("isCompressed",O),O?H(Uint8Array.from([P.hasEvenY()?2:3]),L):H(Uint8Array.from([4]),L,r.toBytes(U.y))},fromBytes(k){const P=k.length,O=k[0],U=k.subarray(1);if(P===o&&(O===2||O===3)){const L=qs(U);if(!Up(L,It,r.ORDER))throw new Error("Point is not on curve");const H=f(L);let G;try{G=r.sqrt(H)}catch(me){const ie=me instanceof Error?": "+me.message:"";throw new Error("Point is not on curve"+ie)}const Q=(G&It)===It;return(O&1)===1!==Q&&(G=r.neg(G)),{x:L,y:G}}else if(P===i&&O===4){const L=r.fromBytes(U.subarray(0,r.BYTES)),H=r.fromBytes(U.subarray(r.BYTES,2*r.BYTES));return{x:L,y:H}}else{const L=o,H=i;throw new Error("invalid Point, expected length of "+L+", or uncompressed "+H+", got "+P)}}});function y(k){const P=n>>It;return k>P}function g(k){return y(k)?c(-k):k}const E=(k,P,O)=>qs(k.slice(P,O));class v{constructor(P,O,U){Wa("r",P,It,n),Wa("s",O,It,n),this.r=P,this.s=O,U!=null&&(this.recovery=U),Object.freeze(this)}static fromCompact(P){const O=s;return P=Er("compactSignature",P,O*2),new v(E(P,0,O),E(P,O,2*O))}static fromDER(P){const{r:O,s:U}=Bn.toSig(Er("DER",P));return new v(O,U)}assertValidity(){}addRecoveryBit(P){return new v(this.r,this.s,P)}recoverPublicKey(P){const{r:O,s:U,recovery:L}=this,H=S(Er("msgHash",P));if(L==null||![0,1,2,3].includes(L))throw new Error("recovery id invalid");const G=L===2||L===3?O+t.n:O;if(G>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const Q=(L&1)===0?"02":"03",pe=u.fromHex(Q+Wp(G,r.BYTES)),me=l(G),ie=c(-H*me),de=c(U*me),Be=u.BASE.multiplyAndAddUnsafe(pe,ie,de);if(!Be)throw new Error("point at infinify");return Be.assertValidity(),Be}hasHighS(){return y(this.s)}normalizeS(){return this.hasHighS()?new v(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return Sl(this.toDERHex())}toDERHex(){return Bn.hexFromSig(this)}toCompactRawBytes(){return Sl(this.toCompactHex())}toCompactHex(){const P=s;return Wp(this.r,P)+Wp(this.s,P)}}const w={isValidPrivateKey(k){try{return d(k),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const k=_y(t.n);return aU(t.randomBytes(k),t.n)},precompute(k=8,P=u.BASE){return P._setWindowSize(k),P.multiply(BigInt(3)),P}};function T(k,P=!0){return u.fromPrivateKey(k).toRawBytes(P)}function C(k){if(typeof k=="bigint")return!1;if(k instanceof u)return!0;const O=Er("key",k).length,U=r.BYTES,L=U+1,H=2*U+1;if(!(t.allowedPrivateKeyLengths||s===L))return O===L||O===H}function _(k,P,O=!0){if(C(k)===!0)throw new Error("first arg must be private key");if(C(P)===!1)throw new Error("second arg must be public key");return u.fromHex(P).multiply(d(k)).toRawBytes(O)}const z=t.bits2int||function(k){if(k.length>8192)throw new Error("input is too large");const P=qs(k),O=k.length*8-a;return O>0?P>>BigInt(O):P},S=t.bits2int_modN||function(k){return c(z(k))},m=Pl(a);function b(k){return Wa("num < 2^"+a,k,Fn,m),Ti(k,s)}function x(k,P,O=A){if(["recovered","canonical"].some(we=>we in O))throw new Error("sign() legacy options not supported");const{hash:U,randomBytes:L}=t;let{lowS:H,prehash:G,extraEntropy:Q}=O;H==null&&(H=!0),k=Er("msgHash",k),$y(O),G&&(k=Er("prehashed msgHash",U(k)));const pe=S(k),me=d(P),ie=[b(me),b(pe)];if(Q!=null&&Q!==!1){const we=Q===!0?L(r.BYTES):Q;ie.push(Er("extraEntropy",we))}const de=Al(...ie),Be=pe;function X(we){const _e=z(we);if(!h(_e))return;const $e=l(_e),it=u.BASE.multiply(_e).toAffine(),Se=c(it.x);if(Se===Fn)return;const ve=c($e*c(Be+Se*me));if(ve===Fn)return;let be=(it.x===Se?0:2)|Number(it.y&It),Xe=ve;return H&&y(ve)&&(Xe=g(ve),be^=1),new v(Se,Xe,be)}return{seed:de,k2sig:X}}const A={lowS:t.lowS,prehash:!1},I={lowS:t.lowS,prehash:!1};function F(k,P,O=A){const{seed:U,k2sig:L}=x(k,P,O),H=t;return cF(H.hash.outputLen,H.nByteLength,H.hmac)(U,L)}u.BASE._setWindowSize(8);function D(k,P,O,U=I){var be;const L=k;P=Er("msgHash",P),O=Er("publicKey",O);const{lowS:H,prehash:G,format:Q}=U;if($y(U),"strict"in U)throw new Error("options.strict was renamed to lowS");if(Q!==void 0&&Q!=="compact"&&Q!=="der")throw new Error("format must be compact or der");const pe=typeof L=="string"||Ei(L),me=!pe&&!Q&&typeof L=="object"&&L!==null&&typeof L.r=="bigint"&&typeof L.s=="bigint";if(!pe&&!me)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let ie,de;try{if(me&&(ie=new v(L.r,L.s)),pe){try{Q!=="compact"&&(ie=v.fromDER(L))}catch(Xe){if(!(Xe instanceof Bn.Err))throw Xe}!ie&&Q!=="der"&&(ie=v.fromCompact(L))}de=u.fromHex(O)}catch{return!1}if(!ie||H&&ie.hasHighS())return!1;G&&(P=t.hash(P));const{r:Be,s:X}=ie,we=S(P),_e=l(X),$e=c(we*_e),it=c(Be*_e),Se=(be=u.BASE.multiplyAndAddUnsafe(de,$e,it))==null?void 0:be.toAffine();return Se?c(Se.x)===Be:!1}return{CURVE:t,getPublicKey:T,getSharedSecret:_,sign:F,verify:D,ProjectivePoint:u,Signature:v,utils:w}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function bU(e){return{hash:e,hmac:(t,...r)=>My(e,t,A8(...r)),randomBytes:P8}}function Dl(e,t){const r=n=>mU({...e,...bU(n)});return{...r(t),create:r}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Gy=Ka(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),yU=Gy.create(BigInt("-3")),gU=BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),xU=Dl({a:yU,b:gU,Fp:Gy,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},Gd),jy=Ka(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff")),wU=jy.create(BigInt("-3")),vU=BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");Dl({a:wU,b:vU,Fp:jy,n:BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973"),Gx:BigInt("0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),Gy:BigInt("0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"),h:BigInt(1),lowS:!1},K8);const Vy=Ka(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")),EU=Vy.create(BigInt("-3")),kU=BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00");Dl({a:EU,b:kU,Fp:Vy,n:BigInt("0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409"),Gx:BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),Gy:BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},Y8);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const CU=xU;function Wy(e){const{hash:t,payload:r,publicKey:n,signature:s}=e;return CU.verify(s,r instanceof Uint8Array?r:cs(r),Np(n).substring(2),...t?[{prehash:!0,lowS:!0}]:[])}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const qy=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Yy=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),TU=BigInt(0),SU=BigInt(1),Yp=BigInt(2),Ky=(e,t)=>(e+t/Yp)/t;function AU(e){const t=qy,r=BigInt(3),n=BigInt(6),s=BigInt(11),a=BigInt(22),o=BigInt(23),i=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=kr(u,r,t)*u%t,f=kr(d,r,t)*u%t,h=kr(f,Yp,t)*l%t,y=kr(h,s,t)*h%t,g=kr(y,a,t)*y%t,E=kr(g,i,t)*g%t,v=kr(E,c,t)*E%t,w=kr(v,i,t)*g%t,T=kr(w,r,t)*u%t,C=kr(T,o,t)*y%t,_=kr(C,n,t)*l%t,z=kr(_,Yp,t);if(!Kp.eql(Kp.sqr(z),e))throw new Error("Cannot find square root");return z}const Kp=Ka(qy,void 0,void 0,{sqrt:AU}),Bi=Dl({a:TU,b:BigInt(7),Fp:Kp,n:Yy,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=Yy,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-SU*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=r,o=BigInt("0x100000000000000000000000000000000"),i=Ky(a*e,t),c=Ky(-n*e,t);let l=tr(e-i*r-c*s,t),u=tr(-i*n-c*a,t);const d=l>o,f=u>o;if(d&&(l=t-l),f&&(u=t-u),l>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:l,k2neg:f,k2:u}}}},Gd),PU=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:Bi},Symbol.toStringTag,{value:"Module"}));function Zy(e){return Ol(IU(e))}function IU(e){const{payload:t,signature:r}=e,{r:n,s,yParity:a}=r,i=new Bi.Signature(BigInt(n),BigInt(s)).addRecoveryBit(a).recoverPublicKey(Fl(t).substring(2));return HF(i)}function BU(e){const{address:t,hash:r,payload:n,publicKey:s,signature:a}=e;return t?zp(t,Zy({payload:n,signature:a})):Bi.verify(a,Dp(n),GF(s),...r?[{prehash:!0,lowS:!0}]:[])}const FU=/^(.*)\[([0-9]*)\]$/,UU=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Xy=/^(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)?$/,Qy=2n**256n-1n;function Ml(e,t={}){const{recovered:r}=t;if(typeof e.r>"u")throw new ef({signature:e});if(typeof e.s>"u")throw new ef({signature:e});if(r&&typeof e.yParity>"u")throw new ef({signature:e});if(e.r<0n||e.r>Qy)throw new zU({value:e.r});if(e.s<0n||e.s>Qy)throw new RU({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new Ll({value:e.yParity})}function OU(e){return Zp(Pt(e))}function Zp(e){if(e.length!==130&&e.length!==132)throw new LU({signature:e});const t=BigInt(Pe(e,0,32)),r=BigInt(Pe(e,32,64)),n=(()=>{const s=+`0x${e.slice(130)}`;if(!Number.isNaN(s))try{return Qp(s)}catch{throw new Ll({value:s})}})();return typeof n>"u"?{r:t,s:r}:{r:t,s:r,yParity:n}}function Jy(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return Nl(e)}function Nl(e){const t=typeof e=="string"?Zp(e):e instanceof Uint8Array?OU(e):typeof e.r=="string"?Xp(e):e.v?_U(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return Ml(t),t}function _U(e){return{r:e.r,s:e.s,yParity:Qp(e.v)}}function Xp(e){const t=(()=>{const r=e.v?Number(e.v):void 0;let n=e.yParity?Number(e.yParity):void 0;if(typeof r=="number"&&typeof n!="number"&&(n=Qp(r)),typeof n!="number")throw new Ll({value:e.yParity});return n})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function DU(e){const[t,r,n]=e;return Nl({r:r==="0x"?0n:BigInt(r),s:n==="0x"?0n:BigInt(n),yParity:t==="0x"?0:Number(t)})}function MU(e){Ml(e);const t=e.r,r=e.s;return ft(Z(t,{size:32}),Z(r,{size:32}),typeof e.yParity=="number"?Z(Jp(e.yParity),{size:1}):"0x")}function eg(e){const{r:t,s:r,yParity:n}=e;return{r:Z(t,{size:32}),s:Z(r,{size:32}),yParity:n===0?"0x0":"0x1"}}function NU(e){const{r:t,s:r,yParity:n}=e;return[n?"0x01":"0x",t===0n?"0x":_p(Z(t)),r===0n?"0x":_p(Z(r))]}function Qp(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new HU({value:e})}function Jp(e){if(e===0)return 27;if(e===1)return 28;throw new Ll({value:e})}class LU extends oe{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${bt(Fl(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class ef extends oe{constructor({signature:t}){super(`Signature \`${Si(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class zU extends oe{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class RU extends oe{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class Ll extends oe{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class HU extends oe{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}const $U=new TextEncoder;Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[t,e.charCodeAt(0)]);const zl={...Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63};function GU(e){const t=e.replace(/=+$/,""),r=t.length,n=new Uint8Array(r+3);$U.encodeInto(t+"===",n);for(let a=0,o=0;a<t.length;a+=4,o+=3){const i=(zl[n[a]]<<18)+(zl[n[a+1]]<<12)+(zl[n[a+2]]<<6)+zl[n[a+3]];n[o]=i>>16,n[o+1]=i>>8&255,n[o+2]=i&255}const s=(r>>2)*3+(r%4&&r%4-1);return new Uint8Array(n.buffer,0,s)}Uint8Array.from([105,171,180,181,160,222,75,198,42,42,32,31,141,37,186,233]);function jU(e){const{challenge:t,hash:r=!0,metadata:n,publicKey:s,signature:a}=e,{authenticatorData:o,challengeIndex:i,clientDataJSON:c,typeIndex:l,userVerificationRequired:u}=n,d=cs(o);if(d.length<37)return!1;const f=d[32];if((f&1)!==1||u&&(f&4)!==4||(f&8)!==8&&(f&16)===16)return!1;if(l!==void 0){const w='"type":"webauthn.get"';if(w!==c.slice(Number(l),w.length+1))return!1}const h=i!==void 0?c.slice(Number(i)).match(/^"challenge":"(.*?)"/):c.match(/"challenge":"(.*?)"/);if(!h)return!1;const[y,g]=h;if(Pt(GU(g))!==t)return!1;const E=zF(xy(c),{as:"Bytes"}),v=SF(d,E);return Wy({hash:r,payload:v,publicKey:s,signature:a})}const tf="0x01",rf="0x02",tg="0x03",Xs="0x7777777777777777777777777777777777777777777777777777777777777777";function Za(e){const t=e.endsWith(Xs.slice(2))?Pe(e,0,-bt(Xs)):e;if(bt(t)===65){const o=Zp(t);return Ml(o),{signature:o,type:"secp256k1"}}const n=Pe(t,0,1),s=Pe(t,1),a=bt(s);if(n===tf){if(a!==129)throw new Oi({reason:`Invalid P256 signature envelope size: expected 129 bytes, got ${a} bytes`,serialized:t});return{publicKey:{prefix:4,x:yt(Pe(s,64,96)),y:yt(Pe(s,96,128))},prehash:Pi(Pe(s,128,129))!==0,signature:{r:yt(Pe(s,0,32)),s:yt(Pe(s,32,64))},type:"p256"}}if(n===rf){if(a<128)throw new Oi({reason:`Invalid WebAuthn signature envelope size: expected at least 128 bytes, got ${a} bytes`,serialized:t});const o=a-128,i=Pe(s,0,o);let c,l;for(let u=37;u<o;u++){const d=hy(Pe(i,u));if(d.startsWith("{")&&d.endsWith("}"))try{JSON.parse(d),c=Pe(i,0,u),l=d;break}catch{}}if(!c||!l)throw new Oi({reason:"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",serialized:t});return{publicKey:{prefix:4,x:yt(Pe(s,o+64,o+96)),y:yt(Pe(s,o+96,o+128))},metadata:{authenticatorData:c,clientDataJSON:l},signature:{r:yt(Pe(s,o,o+32)),s:yt(Pe(s,o+32,o+64))},type:"webAuthn"}}if(n===tg){const o=Pe(s,0,20),i=Za(Pe(s,20));return{userAddress:o,inner:i,type:"keychain"}}throw new Oi({reason:`Unknown signature type identifier: ${n}. Expected ${tf} (P256) or ${rf} (WebAuthn)`,serialized:t})}function Fi(e){if(typeof e=="string")return Za(e);if(typeof e=="object"&&e!==null&&"r"in e&&"s"in e&&"yParity"in e)return{signature:e,type:"secp256k1"};const t=nf(e);return{...e,...t==="p256"?{prehash:e.prehash}:{},type:t}}function Rl(e){if(e.type==="secp256k1")return{signature:Xp(e),type:"secp256k1"};if(e.type==="p256")return{prehash:e.preHash,publicKey:{prefix:4,x:yt(e.pubKeyX),y:yt(e.pubKeyY)},signature:{r:yt(e.r),s:yt(e.s)},type:"p256"};if(e.type==="webAuthn"){const t=e.webauthnData,r=bt(t);let n,s;for(let a=37;a<r;a++){const o=hy(Pe(t,a));if(o.startsWith("{")&&o.endsWith("}"))try{JSON.parse(o),n=Pe(t,0,a),s=o;break}catch{}}if(!n||!s)throw new Oi({reason:"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",serialized:t});return{metadata:{authenticatorData:n,clientDataJSON:s},publicKey:{prefix:4,x:yt(e.pubKeyX),y:yt(e.pubKeyY)},signature:{r:yt(e.r),s:yt(e.s)},type:"webAuthn"}}if(e.type==="keychain"||"userAddress"in e&&"signature"in e)return{type:"keychain",userAddress:e.userAddress,inner:Rl(e.signature)};throw new Ui({envelope:e})}function nf(e){if(typeof e!="object"||e===null)throw new Ui({envelope:e});if("type"in e&&e.type)return e.type;if("signature"in e&&!("publicKey"in e)&&typeof e.signature=="object"&&e.signature!==null&&"r"in e.signature&&"s"in e.signature&&"yParity"in e.signature||"r"in e&&"s"in e&&"yParity"in e)return"secp256k1";if("signature"in e&&"prehash"in e&&"publicKey"in e&&typeof e.prehash=="boolean")return"p256";if("signature"in e&&"metadata"in e&&"publicKey"in e)return"webAuthn";if("userAddress"in e&&"inner"in e)return"keychain";throw new Ui({envelope:e})}function Hl(e,t={}){const r=nf(e);if(r==="secp256k1")return ft(MU(e.signature),t.magic?Xs:"0x");if(r==="p256"){const n=e;return ft(tf,Z(n.signature.r,{size:32}),Z(n.signature.s,{size:32}),Z(n.publicKey.x,{size:32}),Z(n.publicKey.y,{size:32}),Z(n.prehash?1:0,{size:1}),t.magic?Xs:"0x")}if(r==="webAuthn"){const n=e,s=ft(n.metadata.authenticatorData,Ai(n.metadata.clientDataJSON));return ft(rf,s,Z(n.signature.r,{size:32}),Z(n.signature.s,{size:32}),Z(n.publicKey.x,{size:32}),Z(n.publicKey.y,{size:32}),t.magic?Xs:"0x")}if(r==="keychain"){const n=e;return ft(tg,n.userAddress,Hl(n.inner),t.magic?Xs:"0x")}throw new Ui({envelope:e})}function sf(e){const t=nf(e);if(t==="secp256k1")return{...eg(e.signature),type:"secp256k1"};if(t==="p256"){const r=e;return{preHash:r.prehash,pubKeyX:Z(r.publicKey.x,{size:32}),pubKeyY:Z(r.publicKey.y,{size:32}),r:Z(r.signature.r,{size:32}),s:Z(r.signature.s,{size:32}),type:"p256"}}if(t==="webAuthn"){const r=e,n=ft(r.metadata.authenticatorData,Ai(r.metadata.clientDataJSON));return{pubKeyX:Z(r.publicKey.x,{size:32}),pubKeyY:Z(r.publicKey.y,{size:32}),r:Z(r.signature.r,{size:32}),s:Z(r.signature.s,{size:32}),type:"webAuthn",webauthnData:n}}if(t==="keychain"){const r=e;return{type:"keychain",userAddress:r.userAddress,signature:sf(r.inner)}}throw new Ui({envelope:e})}function VU(e,t){const{payload:r}=t,n=(()=>{if(t.address)return t.address;if(t.publicKey)return Ol(t.publicKey)})();if(!n)return!1;const s=Fi(e);if(s.type==="secp256k1")return n?BU({address:n,payload:r,signature:s.signature}):!1;if(s.type==="p256"){const a=Ol(s.publicKey);return zp(a,n)?Wy({hash:s.prehash,publicKey:s.publicKey,payload:r,signature:s.signature}):!1}if(s.type==="webAuthn"){const a=Ol(s.publicKey);return zp(a,n)?jU({challenge:Fl(r),metadata:s.metadata,publicKey:s.publicKey,signature:s.signature}):!1}throw new WU(`Unable to verify signature envelope of type "${s.type}".`)}class Ui extends oe{constructor({envelope:t}){super(`Unable to coerce value (\`${Si(t)}\`) to a valid signature envelope.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.CoercionError"})}}let Oi=class extends oe{constructor({reason:t,serialized:r}){super(`Unable to deserialize signature envelope: ${t}`,{metaMessages:[`Serialized: ${r}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.InvalidSerializedError"})}},WU=class extends oe{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.VerificationError"})}};async function $l(e,{address:t,blockNumber:r,blockTag:n="latest"}){const s=r!==void 0?q(r):void 0,a=await e.request({method:"eth_getCode",params:[t,s||n]},{dedupe:!!s});if(a!=="0x")return a}function Xa(e,t,r){const{checksumAddress:n,staticPosition:s}=r,a=lf(t.type);if(a){const[o,i]=a;return YU(e,{...t,type:i},{checksumAddress:n,length:o,staticPosition:s})}if(t.type==="tuple")return QU(e,t,{checksumAddress:n,staticPosition:s});if(t.type==="address")return qU(e,{checksum:n});if(t.type==="bool")return KU(e);if(t.type.startsWith("bytes"))return ZU(e,t,{staticPosition:s});if(t.type.startsWith("uint")||t.type.startsWith("int"))return XU(e,t);if(t.type==="string")return JU(e,{staticPosition:s});throw new ff(t.type)}const rg=32,af=32;function qU(e,t={}){const{checksum:r=!1}=t,n=e.readBytes(32);return[(a=>r?Lp(a):a)(Pt(BF(n,-20))),32]}function YU(e,t,r){const{checksumAddress:n,length:s,staticPosition:a}=r;if(!s){const c=In(e.readBytes(af)),l=a+c,u=l+rg;e.setPosition(l);const d=In(e.readBytes(rg)),f=_i(t);let h=0;const y=[];for(let g=0;g<d;++g){e.setPosition(u+(f?g*32:h));const[E,v]=Xa(e,t,{checksumAddress:n,staticPosition:u});h+=v,y.push(E)}return e.setPosition(a+32),[y,32]}if(_i(t)){const c=In(e.readBytes(af)),l=a+c,u=[];for(let d=0;d<s;++d){e.setPosition(l+d*32);const[f]=Xa(e,t,{checksumAddress:n,staticPosition:l});u.push(f)}return e.setPosition(a+32),[u,32]}let o=0;const i=[];for(let c=0;c<s;++c){const[l,u]=Xa(e,t,{checksumAddress:n,staticPosition:a+o});o+=u,i.push(l)}return[i,o]}function KU(e){return[UF(e.readBytes(32),{size:32}),32]}function ZU(e,t,{staticPosition:r}){const[n,s]=t.type.split("bytes");if(!s){const o=In(e.readBytes(32));e.setPosition(r+o);const i=In(e.readBytes(32));if(i===0)return e.setPosition(r+32),["0x",32];const c=e.readBytes(i);return e.setPosition(r+32),[Pt(c),32]}return[Pt(e.readBytes(Number.parseInt(s,10),32)),32]}function XU(e,t){const r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256",10),s=e.readBytes(32);return[n>48?FF(s,{signed:r}):In(s,{signed:r}),32]}function QU(e,t,r){const{checksumAddress:n,staticPosition:s}=r,a=t.components.length===0||t.components.some(({name:c})=>!c),o=a?[]:{};let i=0;if(_i(t)){const c=In(e.readBytes(af)),l=s+c;for(let u=0;u<t.components.length;++u){const d=t.components[u];e.setPosition(l+i);const[f,h]=Xa(e,d,{checksumAddress:n,staticPosition:l});i+=h,o[a?u:d==null?void 0:d.name]=f}return e.setPosition(s+32),[o,32]}for(let c=0;c<t.components.length;++c){const l=t.components[c],[u,d]=Xa(e,l,{checksumAddress:n,staticPosition:s});o[a?c:l==null?void 0:l.name]=u,i+=d}return[o,i]}function JU(e,{staticPosition:t}){const r=In(e.readBytes(32)),n=t+r;e.setPosition(n);const s=In(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const a=e.readBytes(s,32),o=OF(wy(a));return e.setPosition(t+32),[o,32]}function eO({checksumAddress:e,parameters:t,values:r}){const n=[];for(let s=0;s<t.length;s++)n.push(of({checksumAddress:e,parameter:t[s],value:r[s]}));return n}function of({checksumAddress:e=!1,parameter:t,value:r}){const n=t,s=lf(n.type);if(s){const[a,o]=s;return rO(r,{checksumAddress:e,length:a,parameter:{...n,type:o}})}if(n.type==="tuple")return iO(r,{checksumAddress:e,parameter:n});if(n.type==="address")return tO(r,{checksum:e});if(n.type==="bool")return sO(r);if(n.type.startsWith("uint")||n.type.startsWith("int")){const a=n.type.startsWith("int"),[,,o="256"]=Xy.exec(n.type)??[];return aO(r,{signed:a,size:Number(o)})}if(n.type.startsWith("bytes"))return nO(r,{type:n.type});if(n.type==="string")return oO(r);throw new ff(n.type)}function cf(e){let t=0;for(let a=0;a<e.length;a++){const{dynamic:o,encoded:i}=e[a];o?t+=32:t+=bt(i)}const r=[],n=[];let s=0;for(let a=0;a<e.length;a++){const{dynamic:o,encoded:i}=e[a];o?(r.push(Z(t+s,{size:32})),n.push(i),s+=bt(i)):r.push(i)}return ft(...r,...n)}function tO(e,t){const{checksum:r=!1}=t;return Lr(e,{strict:r}),{dynamic:!1,encoded:Ys(e.toLowerCase())}}function rO(e,t){const{checksumAddress:r,length:n,parameter:s}=t,a=n===null;if(!Array.isArray(e))throw new mO(e);if(!a&&e.length!==n)throw new hO({expectedLength:n,givenLength:e.length,type:`${s.type}[${n}]`});let o=!1;const i=[];for(let c=0;c<e.length;c++){const l=of({checksumAddress:r,parameter:s,value:e[c]});l.dynamic&&(o=!0),i.push(l)}if(a||o){const c=cf(i);if(a){const l=Z(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?ft(l,c):l}}if(o)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:ft(...i.map(({encoded:c})=>c))}}function nO(e,{type:t}){const[,r]=t.split("bytes"),n=bt(e);if(!r){let s=e;return n%32!==0&&(s=Ks(s,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:ft(Ys(Z(n,{size:32})),s)}}if(n!==Number.parseInt(r,10))throw new ag({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:Ks(e)}}function sO(e){if(typeof e!="boolean")throw new oe(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Ys(py(e))}}function aO(e,{signed:t,size:r}){if(typeof r=="number"){const n=2n**(BigInt(r)-(t?1n:0n))-1n,s=t?-n-1n:0n;if(e>n||e<s)throw new my({max:n.toString(),min:s.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:Z(e,{size:32,signed:t})}}function oO(e){const t=Ai(e),r=Math.ceil(bt(t)/32),n=[];for(let s=0;s<r;s++)n.push(Ks(Pe(t,s*32,(s+1)*32)));return{dynamic:!0,encoded:ft(Ks(Z(bt(t),{size:32})),...n)}}function iO(e,t){const{checksumAddress:r,parameter:n}=t;let s=!1;const a=[];for(let o=0;o<n.components.length;o++){const i=n.components[o],c=Array.isArray(e)?o:i.name,l=of({checksumAddress:r,parameter:i,value:e[c]});a.push(l),l.dynamic&&(s=!0)}return{dynamic:s,encoded:s?cf(a):ft(...a.map(({encoded:o})=>o))}}function lf(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function _i(e){var n;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(n=e.components)==null?void 0:n.some(_i);const r=lf(e.type);return!!(r&&_i({...e,type:r[1]}))}const cO={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 uO({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new lO({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new ng({offset:e});const 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 ng({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const 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,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function uf(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(cO);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}class ng extends oe{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class lO extends oe{constructor({length:t,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class uO extends oe{constructor({count:t,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function dO(e,t,r={}){const{as:n="Array",checksumAddress:s=!1}=r,a=typeof t=="string"?cs(t):t,o=uf(a);if(Ya(a)===0&&e.length>0)throw new fO;if(Ya(a)&&Ya(a)<32)throw new pO({data:typeof t=="string"?t:Pt(t),parameters:e,size:Ya(a)});let i=0;const c=n==="Array"?[]:{};for(let l=0;l<e.length;++l){const u=e[l];o.setPosition(i);const[d,f]=Xa(o,u,{checksumAddress:s,staticPosition:0});i+=f,n==="Array"?c.push(d):c[u.name??l]=d}return c}function df(e,t,r){const{checksumAddress:n=!1}={};if(e.length!==t.length)throw new og({expectedLength:e.length,givenLength:t.length});const s=eO({checksumAddress:n,parameters:e,values:t}),a=cf(s);return a.length===0?"0x":a}function pf(e,t){if(e.length!==t.length)throw new og({expectedLength:e.length,givenLength:t.length});const r=[];for(let n=0;n<e.length;n++){const s=e[n],a=t[n];r.push(pf.encode(s,a))}return ft(...r)}(function(e){function t(r,n,s=!1){if(r==="address"){const c=n;return Lr(c),Ys(c.toLowerCase(),s?32:0)}if(r==="string")return Ai(n);if(r==="bytes")return n;if(r==="bool")return Ys(py(n),s?32:1);const a=r.match(Xy);if(a){const[c,l,u="256"]=a,d=Number.parseInt(u,10)/8;return Z(n,{size:s?32:d,signed:l==="int"})}const o=r.match(UU);if(o){const[c,l]=o;if(Number.parseInt(l,10)!==(n.length-2)/2)throw new ag({expectedSize:Number.parseInt(l,10),value:n});return Ks(n,s?32:0)}const i=r.match(FU);if(i&&Array.isArray(n)){const[c,l]=i,u=[];for(let d=0;d<n.length;d++)u.push(t(l,n[d],!0));return u.length===0?"0x":ft(...u)}throw new ff(r)}e.encode=t})(pf||(pf={}));function sg(e){return Array.isArray(e)&&typeof e[0]=="string"||typeof e=="string"?Hb(e):e}class pO extends oe{constructor({data:t,parameters:r,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${za(r)})`,`Data: ${t} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class fO extends oe{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class hO extends oe{constructor({expectedLength:t,givenLength:r,type:n}){super(`Array length mismatch for type \`${n}\`. Expected: \`${t}\`. Given: \`${r}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class ag extends oe{constructor({expectedSize:t,value:r}){super(`Size of bytes "${r}" (bytes${bt(r)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class og extends oe{constructor({expectedLength:t,givenLength:r}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${r}`].join(`
106
- `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class mO extends oe{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class ff extends oe{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}const ig="0x6492649264926492649264926492649264926492649264926492649264926492";function bO(e){if(Pe(e,-32)!==ig)throw new xO(e)}function yO(e){const{data:t,signature:r,to:n}=e;return ft(df(sg("address, bytes, bytes"),[n,t,r]),ig)}function gO(e){try{return bO(e),!0}catch{return!1}}let xO=class extends oe{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}};function wO(e){return vO(e,"Hex")}function vO(e,t){const r=t,n=(()=>{if(typeof e=="string"){if(e.length>3&&e.length%2!==0)throw new wF(e);return cs(e)}return e})(),s=uf(n,{recursiveReadLimit:Number.POSITIVE_INFINITY});return cg(s,r)}function cg(e,t="Hex"){if(e.bytes.length===0)return t==="Hex"?Pt(e.bytes):e.bytes;const r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){const s=lg(e,r,128),a=e.readBytes(s);return t==="Hex"?Pt(a):a}const n=lg(e,r,192);return EO(e,n,t)}function lg(e,t,r){if(r===128&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new oe("Invalid RLP prefix")}function EO(e,t,r){const n=e.position,s=[];for(;e.position-n<t;)s.push(cg(e,r));return s}function kO(e,t){const{as:r}=t,n=ug(e),s=uf(new Uint8Array(n.length));return n.encode(s),r==="Hex"?Pt(s.bytes):s.bytes}function CO(e,t={}){const{as:r="Hex"}=t;return kO(e,{as:r})}function ug(e){return Array.isArray(e)?TO(e.map(t=>ug(t))):SO(e)}function TO(e){const t=e.reduce((s,a)=>s+a.length,0),r=dg(t);return{length:t<=55?1+t:1+r+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+r),r===1?s.pushUint8(t):r===2?s.pushUint16(t):r===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:a}of e)a(s)}}}function SO(e){const t=typeof e=="string"?cs(e):e,r=dg(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+r),r===1?s.pushUint8(t.length):r===2?s.pushUint16(t.length):r===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function dg(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=16777215)return 3;if(e<=4294967295)return 4;throw new oe("Length is too large.")}function AO(e,t={}){return typeof e.chainId=="string"?pg(e):{...e,...t.signature}}function pg(e){const{address:t,chainId:r,nonce:n}=e,s=Jy(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...s}}function PO(e){return e.map(pg)}function IO(e){const{address:t,chainId:r,nonce:n,...s}=e;return{address:t,chainId:Z(r),nonce:Z(n),...eg(s)}}function BO(e){return e.map(IO)}const FO="0x8010801080108010801080108010801080108010801080108010801080108010",UO=sg("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function fg(e){if(typeof e=="string"){if(Pe(e,-32)!==FO)throw new DO(e)}else Ml(e.authorization)}function OO(e){fg(e);const t=Pi(Pe(e,-64,-32)),r=Pe(e,-t-64,-64),n=Pe(e,0,-t-64),[s,a,o]=dO(UO,r);return{authorization:AO({address:s.delegation,chainId:Number(s.chainId),nonce:s.nonce,yParity:s.yParity,r:s.r,s:s.s}),signature:n,...o&&o!=="0x"?{data:o,to:a}:{}}}function _O(e){try{return fg(e),!0}catch{return!1}}class DO extends oe{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}const Gl=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],hf=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],hg=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],mg=[...hg,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],MO=[...hg,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],bg=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],yg=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],gg=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],xg=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],wg=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],vg="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",NO="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",LO="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",mf="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033",bf="/docs/contract/encodeDeployData";function jl(e){const{abi:t,args:r,bytecode:n}=e;if(!r||r.length===0)return n;const s=t.find(o=>"type"in o&&o.type==="constructor");if(!s)throw new qT({docsPath:bf});if(!("inputs"in s))throw new xb({docsPath:bf});if(!s.inputs||s.inputs.length===0)throw new xb({docsPath:bf});const a=os(s.inputs,r);return lr([n,a])}const Eg="/docs/contract/encodeFunctionData";function zO(e){const{abi:t,args:r,functionName:n}=e;let s=t[0];if(n){const a=$s({abi:t,args:r,name:n});if(!a)throw new La(n,{docsPath:Eg});s=a}if(s.type!=="function")throw new La(void 0,{docsPath:Eg});return{abi:[s],functionName:qo(Mr(s))}}function fr(e){const{args:t}=e,{abi:r,functionName:n}=(()=>{var i;return e.abi.length===1&&((i=e.functionName)!=null&&i.startsWith("0x"))?e:zO(e)})(),s=r[0],a=n,o="inputs"in s&&s.inputs?os(s.inputs,t??[]):void 0;return lr([a,o??"0x"])}function Qa(e,t){if(!nt(e,{strict:!1}))throw new Ct({address:e});if(!nt(t,{strict:!1}))throw new Ct({address:t});return e.toLowerCase()===t.toLowerCase()}function RO(e){const t=Ut(`0x${e.substring(4)}`).substring(26);return Ro(`0x${t}`)}async function HO({hash:e,signature:t}){const r=Or(e)?e:Fe(e),{secp256k1:n}=await Promise.resolve().then(()=>PU);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:l,s:u,v:d,yParity:f}=t,h=Number(f??d),y=kg(h);return new n.Signature(Le(l),Le(u)).addRecoveryBit(y)}const o=Or(t)?t:Fe(t);if(ut(o)!==65)throw new Error("invalid signature length");const i=ir(`0x${o.slice(130)}`),c=kg(i);return n.Signature.fromCompact(o.substring(2,130)).addRecoveryBit(c)})().recoverPublicKey(r.substring(2)).toHex(!1)}`}function kg(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function Cg({hash:e,signature:t}){return RO(await HO({hash:e,signature:t}))}function $O(e){const{chainId:t,nonce:r,to:n}=e,s=e.contractAddress??e.address,a=Ut(lr(["0x05",Qr([t?q(t):"0x",s,r?q(r):"0x"])]));return n==="bytes"?or(a):a}async function Vl(e){const{authorization:t,signature:r}=e;return Cg({hash:$O(t),signature:r??t})}async function GO({address:e,authorization:t,signature:r}){return Qa(rp(e),await Vl({authorization:t,signature:r}))}function se(e,t,r){const n=e[t.name];if(typeof n=="function")return n;const s=e[r];return typeof s=="function"?s:a=>t(e,a)}function jO({r:e,s:t,to:r="hex",v:n,yParity:s}){const a=(()=>{if(s===0||s===1)return s;if(n&&(n===27n||n===28n||n>=35n))return n%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),o=`0x${new Bi.Signature(Le(e),Le(t)).toCompactHex()}${a===0?"1b":"1c"}`;return r==="hex"?o:or(o)}function VO(e){return{address:e.address,amount:Z(e.amount),index:Z(e.index),validatorIndex:Z(e.validatorIndex)}}function Tg(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:Z(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:Z(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:Z(e.gasLimit)},...typeof e.number=="bigint"&&{number:Z(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:Z(e.prevRandao)},...typeof e.time=="bigint"&&{time:Z(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(VO)}}}const WO="0x82ad56cb",yf="/docs/contract/decodeFunctionResult";function Qs(e){const{abi:t,args:r,functionName:n,data:s}=e;let a=t[0];if(n){const i=$s({abi:t,args:r,name:n});if(!i)throw new La(n,{docsPath:yf});a=i}if(a.type!=="function")throw new La(void 0,{docsPath:yf});if(!a.outputs)throw new Cb(a.name,{docsPath:yf});const o=Yo(a.outputs,s);if(o&&o.length>1)return o;if(o&&o.length===1)return o[0]}function gf(){let e=()=>{},t=()=>{};return{promise:new Promise((n,s)=>{e=n,t=s}),resolve:e,reject:t}}const xf=new Map;function Sg({fn:e,id:t,shouldSplitBatch:r,wait:n=0,sort:s}){const a=async()=>{const u=c();o();const d=u.map(({args:f})=>f);d.length!==0&&e(d).then(f=>{s&&Array.isArray(f)&&f.sort(s);for(let h=0;h<u.length;h++){const{resolve:y}=u[h];y==null||y([f[h],f])}}).catch(f=>{for(let h=0;h<u.length;h++){const{reject:y}=u[h];y==null||y(f)}})},o=()=>xf.delete(t),i=()=>c().map(({args:u})=>u),c=()=>xf.get(t)||[],l=u=>xf.set(t,[...c(),u]);return{flush:o,async schedule(u){const{promise:d,resolve:f,reject:h}=gf();return(r==null?void 0:r([...i(),u]))&&a(),c().length>0?(l({args:u,resolve:f,reject:h}),d):(l({args:u,resolve:f,reject:h}),setTimeout(a,n),d)}}}function Ag(e){if(!(!e||e.length===0))return e.reduce((t,{slot:r,value:n})=>{if(r.length!==66)throw new y1({size:r.length,targetSize:66,type:"hex"});if(n.length!==66)throw new y1({size:n.length,targetSize:66,type:"hex"});return t[r]=n,t},{})}function qO(e){const{balance:t,nonce:r,state:n,stateDiff:s,code:a}=e,o={};if(a!==void 0&&(o.code=a),t!==void 0&&(o.balance=q(t)),r!==void 0&&(o.nonce=q(r)),n!==void 0&&(o.state=Ag(n)),s!==void 0){if(o.state)throw new yS;o.stateDiff=Ag(s)}return o}function wf(e){if(!e)return;const t={};for(const{address:r,...n}of e){if(!nt(r,{strict:!1}))throw new Ct({address:r});if(t[r])throw new bS({address:r});t[r]=qO(n)}return t}async function Di(e,t){var F,D,k,P;const{account:r=e.account,authorizationList:n,batch:s=!!((F=e.batch)!=null&&F.multicall),blockNumber:a,blockTag:o=e.experimental_blockTag??"latest",accessList:i,blobs:c,blockOverrides:l,code:u,data:d,factory:f,factoryData:h,gas:y,gasPrice:g,maxFeePerBlobGas:E,maxFeePerGas:v,maxPriorityFeePerGas:w,nonce:T,to:C,value:_,stateOverride:z,...S}=t,m=r?Ze(r):void 0;if(u&&(f||h))throw new $("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(u&&C)throw new $("Cannot provide both `code` & `to` as parameters.");const b=u&&d,x=f&&h&&C&&d,A=b||x,I=b?Pg({code:u,data:d}):x?ZO({data:d,factory:f,factoryData:h,to:C}):d;try{en(t);const U=(typeof a=="bigint"?q(a):void 0)||o,L=l?Tg(l):void 0,H=wf(z),G=(P=(k=(D=e.chain)==null?void 0:D.formatters)==null?void 0:k.transactionRequest)==null?void 0:P.format,pe=(G||Dr)({...Ws(S,{format:G}),accessList:i,account:m,authorizationList:n,blobs:c,data:I,gas:y,gasPrice:g,maxFeePerBlobGas:E,maxFeePerGas:v,maxPriorityFeePerGas:w,nonce:T,to:A?void 0:C,value:_},"call");if(s&&YO({request:pe})&&!H&&!L)try{return await KO(e,{...pe,blockNumber:a,blockTag:o})}catch(de){if(!(de instanceof X1)&&!(de instanceof Vd))throw de}const me=(()=>{const de=[pe,U];return H&&L?[...de,H,L]:H?[...de,H]:L?[...de,{},L]:de})(),ie=await e.request({method:"eth_call",params:me});return ie==="0x"?{data:void 0}:{data:ie}}catch(O){const U=XO(O),{offchainLookup:L,offchainLookupSignature:H}=await Promise.resolve().then(()=>FN);if(e.ccipRead!==!1&&(U==null?void 0:U.slice(0,10))===H&&C)return{data:await L(e,{data:U,to:C})};throw A&&(U==null?void 0:U.slice(0,10))==="0x101bb98d"?new vS({factory:f}):Tp(O,{...t,account:m,chain:e.chain})}}function YO({request:e}){const{data:t,to:r,...n}=e;return!(!t||t.startsWith(WO)||!r||Object.values(n).filter(s=>typeof s<"u").length>0)}async function KO(e,t){var g;const{batchSize:r=1024,deployless:n=!1,wait:s=0}=typeof((g=e.batch)==null?void 0:g.multicall)=="object"?e.batch.multicall:{},{blockNumber:a,blockTag:o=e.experimental_blockTag??"latest",data:i,to:c}=t,l=(()=>{if(n)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return Da({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new X1})(),d=(typeof a=="bigint"?q(a):void 0)||o,{schedule:f}=Sg({id:`${e.uid}.${d}`,wait:s,shouldSplitBatch(E){return E.reduce((w,{data:T})=>w+(T.length-2),0)>r*2},fn:async E=>{const v=E.map(C=>({allowFailure:!0,callData:C.data,target:C.to})),w=fr({abi:Gl,args:[v],functionName:"aggregate3"}),T=await e.request({method:"eth_call",params:[{...l===null?{data:Pg({code:mf,data:w})}:{to:l,data:w}},d]});return Qs({abi:Gl,args:[v],functionName:"aggregate3",data:T||"0x"})}}),[{returnData:h,success:y}]=await f({data:i,to:c});if(!y)throw new ll({data:h});return h==="0x"?{data:void 0}:{data:h}}function Pg(e){const{code:t,data:r}=e;return jl({abi:zb(["constructor(bytes, bytes)"]),bytecode:vg,args:[t,r]})}function ZO(e){const{data:t,factory:r,factoryData:n,to:s}=e;return jl({abi:zb(["constructor(address, bytes, address, bytes)"]),bytecode:NO,args:[s,t,r,n]})}function XO(e){var r;if(!(e instanceof $))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(r=t.data)==null?void 0:r.data:t.data}const QO=3;function Js(e,{abi:t,address:r,args:n,docsPath:s,functionName:a,sender:o}){const i=e instanceof ll?e:e instanceof $?e.walk(y=>"data"in y)||e.walk():{},{code:c,data:l,details:u,message:d,shortMessage:f}=i,h=e instanceof Wo?new wS({functionName:a}):[QO,js.code].includes(c)&&(l||u||d||f)||c===is.code&&u==="execution reverted"&&l?new kp({abi:t,data:typeof l=="object"?l.data:l,functionName:a,message:i instanceof Cp?u:f??d}):e;return new Zb(h,{abi:t,args:n,contractAddress:r,docsPath:s,functionName:a,sender:o})}async function zr(e,t){const{abi:r,address:n,args:s,functionName:a,...o}=t,i=fr({abi:r,args:s,functionName:a});try{const{data:c}=await se(e,Di,"call")({...o,data:i,to:n});return Qs({abi:r,args:s,functionName:a,data:c||"0x"})}catch(c){throw Js(c,{abi:r,address:n,args:s,docsPath:"/docs/contract/readContract",functionName:a})}}async function Mi(e,t){var c,l,u,d;const{address:r,chain:n=e.chain,hash:s,erc6492VerifierAddress:a=t.universalSignatureVerifierAddress??((l=(c=n==null?void 0:n.contracts)==null?void 0:c.erc6492Verifier)==null?void 0:l.address),multicallAddress:o=t.multicallAddress??((d=(u=n==null?void 0:n.contracts)==null?void 0:u.multicall3)==null?void 0:d.address)}=t;if(n!=null&&n.verifyHash)return await n.verifyHash(e,t);const i=(()=>{const f=t.signature;return Or(f)?f:typeof f=="object"&&"r"in f&&"s"in f?jO(f):vt(f)})();try{return _O(i)?await JO(e,{...t,multicallAddress:o,signature:i}):await e_(e,{...t,verifierAddress:a,signature:i})}catch(f){try{if(Qa(rp(r),await Cg({hash:s,signature:i})))return!0}catch{}if(f instanceof ea)return!1;throw f}}async function JO(e,t){var E;const{address:r,blockNumber:n,blockTag:s,hash:a,multicallAddress:o}=t,{authorization:i,data:c,signature:l,to:u}=OO(t.signature);if(await $l(e,{address:r,blockNumber:n,blockTag:s})===lr(["0xef0100",i.address]))return await t_(e,{address:r,blockNumber:n,blockTag:s,hash:a,signature:l});const f={address:i.address,chainId:Number(i.chainId),nonce:Number(i.nonce),r:q(i.r,{size:32}),s:q(i.s,{size:32}),yParity:i.yParity};if(!await GO({address:r,authorization:f}))throw new ea;const y=await se(e,zr,"readContract")({...o?{address:o}:{code:mf},authorizationList:[f],abi:Gl,blockNumber:n,blockTag:"pending",functionName:"aggregate3",args:[[...c?[{allowFailure:!0,target:u??r,callData:c}]:[],{allowFailure:!0,target:r,callData:fr({abi:gg,functionName:"isValidSignature",args:[a,l]})}]]}),g=(E=y[y.length-1])==null?void 0:E.returnData;if(g!=null&&g.startsWith("0x1626ba7e"))return!0;throw new ea}async function e_(e,t){const{address:r,factory:n,factoryData:s,hash:a,signature:o,verifierAddress:i,...c}=t,l=await(async()=>!n&&!s||gO(o)?o:yO({data:s,signature:o,to:n}))(),u=i?{to:i,data:fr({abi:xg,functionName:"isValidSig",args:[r,a,l]}),...c}:{data:jl({abi:xg,args:[r,a,l],bytecode:LO}),...c},{data:d}=await se(e,Di,"call")(u).catch(f=>{throw f instanceof Kb?new ea:f});if(r8(d??"0x0"))return!0;throw new ea}async function t_(e,t){const{address:r,blockNumber:n,blockTag:s,hash:a,signature:o}=t;if((await se(e,zr,"readContract")({address:r,abi:gg,args:[a,o],blockNumber:n,blockTag:s,functionName:"isValidSignature"}).catch(c=>{throw c instanceof Zb?new ea:c})).startsWith("0x1626ba7e"))return!0;throw new ea}class ea extends Error{}function r_(e,t={}){return typeof e.chainId=="string"?Ig(e):t.signature?{...e,signature:t.signature}:e}function Ig(e){const{address:t,chainId:r,nonce:n}=e,s=Rl(e.signature);return{address:t,chainId:Number(r),nonce:BigInt(n),signature:s}}function n_(e){return e.map(t=>Ig(t))}function s_(e){const[t,r,n,s]=e,a={address:r,chainId:t==="0x"?0:Number(t),nonce:n==="0x"?0n:BigInt(n)};return s&&(a.signature=Za(s)),r_(a)}function a_(e){const t=[];for(const r of e)t.push(s_(r));return t}function o_(e){const{address:t,chainId:r,nonce:n,signature:s}=e;return{address:t,chainId:Z(r),nonce:Z(n),signature:sf(s)}}function i_(e){return e.map(t=>o_(t))}function c_(e){const{address:t,chainId:r,nonce:n}=e,s=e.signature?Hl(e.signature):void 0;return[r?Z(r):"0x",t,n?Z(n):"0x",...s?[s]:[]]}function l_(e){if(!e||e.length===0)return[];const t=[];for(const r of e)t.push(c_(r));return t}function u_(e,t={}){return typeof e.expiry=="string"?Bg(e):t.signature?{...e,signature:Fi(t.signature)}:e}function Bg(e){const{chainId:t="0x0",keyId:r,expiry:n=0,limits:s,keyType:a}=e,o=Rl(e.signature);return{address:r,chainId:t==="0x"?0n:yt(t),expiry:Number(n),limits:s==null?void 0:s.map(i=>({token:i.token,limit:BigInt(i.limit)})),signature:o,type:a}}function d_(e){const[t,r]=e,[n,s,a,o,i]=t,c=(()=>{switch(s){case"0x":case"0x00":return"secp256k1";case"0x01":return"p256";case"0x02":return"webAuthn";default:throw new Error(`Invalid key type: ${s}`)}})(),l={address:a,expiry:typeof o<"u"?Pi(o):void 0,type:c,...n!=="0x"?{chainId:yt(n)}:{},...typeof o<"u"?{expiry:Pi(o)}:{},...typeof i<"u"?{limits:i.map(([u,d])=>({token:u,limit:BigInt(d)}))}:{}};return r&&(l.signature=Za(r)),u_(l)}function p_(e){const{address:t,chainId:r=0n,expiry:n,limits:s,type:a,signature:o}=e;return{chainId:r===0n?"0x":Z(r),expiry:typeof n=="number"?Z(n):null,limits:s==null?void 0:s.map(({token:i,limit:c})=>({token:i,limit:Z(c)})),keyId:t,signature:sf(o),keyType:a}}function f_(e){const{address:t,chainId:r=0n,expiry:n,limits:s}=e,a=e.signature?Hl(e.signature):void 0,o=(()=>{switch(e.type){case"secp256k1":return"0x";case"p256":return"0x01";case"webAuthn":return"0x02";default:throw new Error(`Invalid key type: ${e.type}`)}})();return[[r===0n?"0x":Z(r),o,t,typeof n=="number"?Z(n):void 0,(s==null?void 0:s.map(c=>[c.token,Z(c.limit)]))??void 0].filter(Boolean),...a?[a]:[]]}const h_="0x20c0";function Fg(e){if(typeof e=="string")return Lr(e),e;const t=Z(e,{size:18});return ft(h_,t)}const Ug={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},Og={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function m_(e,t={}){if(!e)return null;const r=Jy(e),n={...e,...r};return n.blockNumber=e.blockNumber?BigInt(e.blockNumber):null,n.data=e.input,n.gas=BigInt(e.gas??0n),n.nonce=BigInt(e.nonce??0n),n.transactionIndex=e.transactionIndex?Number(e.transactionIndex):null,n.value=BigInt(e.value??0n),e.authorizationList&&(n.authorizationList=PO(e.authorizationList)),e.chainId&&(n.chainId=Number(e.chainId)),e.gasPrice&&(n.gasPrice=BigInt(e.gasPrice)),e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=BigInt(e.maxFeePerBlobGas)),e.maxFeePerGas&&(n.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.type&&(n.type=Og[e.type]??e.type),r&&(n.v=Jp(r.yParity)),n}const _g={...Ug,tempo:"0x76"},b_={...Og,"0x76":"tempo"};function y_(e,t={}){if(!e)return null;const r=m_(e);return r.type=b_[e.type],e.aaAuthorizationList&&(r.authorizationList=n_(e.aaAuthorizationList),delete r.aaAuthorizationList),e.calls&&(r.calls=e.calls.map(n=>({to:n.to,value:n.value&&n.value!=="0x"?BigInt(n.value):void 0,data:n.input||n.data||"0x"}))),e.feeToken&&(r.feeToken=e.feeToken),e.nonceKey&&(r.nonceKey=BigInt(e.nonceKey)),e.signature&&(r.signature=Rl(e.signature)),e.validAfter&&(r.validAfter=Number(e.validAfter)),e.validBefore&&(r.validBefore=Number(e.validBefore)),e.keyAuthorization&&(r.keyAuthorization=Bg(e.keyAuthorization)),e.feePayerSignature&&(r.feePayerSignature=Xp(e.feePayerSignature),r.feePayerSignature.v=Jp(r.feePayerSignature.yParity)),r}function g_(e){const t={};return typeof e.accessList<"u"&&(t.accessList=e.accessList),typeof e.authorizationList<"u"&&(t.authorizationList=BO(e.authorizationList)),typeof e.blobVersionedHashes<"u"&&(t.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(t.blobs=e.blobs),typeof e.chainId<"u"&&(t.chainId=Z(e.chainId)),typeof e.data<"u"?(t.data=e.data,t.input=e.data):typeof e.input<"u"&&(t.data=e.input,t.input=e.input),typeof e.from<"u"&&(t.from=e.from),typeof e.gas<"u"&&(t.gas=Z(e.gas)),typeof e.gasPrice<"u"&&(t.gasPrice=Z(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(t.maxFeePerBlobGas=Z(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(t.maxFeePerGas=Z(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=Z(e.maxPriorityFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=Z(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(t.nonce=Z(e.nonce)),typeof e.to<"u"&&(t.to=e.to),typeof e.type<"u"&&(t.type=Ug[e.type]||e.type),typeof e.value<"u"&&(t.value=Z(e.value)),t}function x_(e){const t=g_({...e,authorizationList:void 0});e.authorizationList&&(t.authorizationList=i_(e.authorizationList)),e.calls&&(t.calls=e.calls.map(n=>({to:n.to,value:n.value?Z(n.value):"0x",data:n.data??"0x"}))),typeof e.feeToken<"u"&&(t.feeToken=Fg(e.feeToken)),e.keyAuthorization&&(t.keyAuthorization=p_(e.keyAuthorization)),typeof e.validBefore<"u"&&(t.validBefore=Z(e.validBefore)),typeof e.validAfter<"u"&&(t.validAfter=Z(e.validAfter));const r=(()=>{if(e.nonceKey==="random")return fy(6);if(typeof e.nonceKey=="bigint")return Z(e.nonceKey)})();return r&&(t.nonceKey=r),(typeof e.calls<"u"||typeof e.feeToken<"u"||typeof e.keyAuthorization<"u"||typeof e.nonceKey<"u"||typeof e.validBefore<"u"||typeof e.validAfter<"u"||e.type==="tempo")&&(t.type=_g.tempo,delete t.data,delete t.input,delete t.to,delete t.value),t}function w_(e){const t=[];for(let r=0;r<e.length;r++){const[n,s]=e[r];n&&Lr(n,{strict:!1}),t.push({address:n,storageKeys:s.map(a=>RF(a)?a:_p(a))})}return t}function v_(e){if(!e||e.length===0)return[];const t=[];for(const{address:r,storageKeys:n}of e){for(let s=0;s<n.length;s++)if(bt(n[s])!==32)throw new E_({storageKey:n[s]});r&&Lr(r,{strict:!1}),t.push([r,n])}return t}class E_ extends oe{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${bt(t)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccessList.InvalidStorageKeySizeError"})}}const Dg={wei:0,gwei:9,szabo:12,finney:15,ether:18};function k_(e,t=0){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[s,a]=[r.slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${s||"0"}${a?`.${a}`:""}`}function vf(e,t="wei"){return k_(e,Dg.gwei-Dg[t])}class C_ extends oe{constructor({feeCap:t}={}){super(`The fee cap (\`maxFeePerGas\`/\`maxPriorityFeePerGas\`${t?` = ${vf(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.FeeCapTooHighError"})}}class T_ extends oe{constructor({chainId:t}){super(typeof t<"u"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidChainIdError"})}}class S_ extends oe{constructor({attributes:t,serialized:r,type:n}){const s=Object.entries(t).map(([a,o])=>typeof o>"u"?a:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${n}" was provided.`,{metaMessages:[`Serialized Transaction: "${r}"`,s.length>0?`Missing Attributes: ${s.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidSerializedError"})}}class A_ extends oe{constructor({maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${vf(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${vf(r)} gwei`:""}).`].join(`
107
- `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.TipAboveFeeCapError"})}}const P_="0x78",I_="0x76",Mg="tempo";function Ef(e){const{calls:t,chainId:r,maxFeePerGas:n,maxPriorityFeePerGas:s,validBefore:a,validAfter:o}=e;if(!t||t.length===0)throw new D_;if(typeof a=="number"&&typeof o=="number"&&a<=o)throw new M_({validBefore:a,validAfter:o});if(t)for(const i of t)i.to&&Lr(i.to,{strict:!1});if(r<=0)throw new T_({chainId:r});if(n&&BigInt(n)>2n**256n-1n)throw new C_({feeCap:n});if(s&&n&&s>n)throw new A_({maxFeePerGas:n,maxPriorityFeePerGas:s})}function B_(e){const t=wO(Pe(e,1)),[r,n,s,a,o,i,c,l,u,d,f,h,y,g,E]=t,v=Array.isArray(g)?g:void 0,w=v?E:g;if(!(t.length===13||t.length===14||t.length===15))throw new S_({attributes:{authorizationList:y,chainId:r,maxPriorityFeePerGas:n,maxFeePerGas:s,gas:a,calls:o,accessList:i,keyAuthorization:v,nonceKey:c,nonce:l,validBefore:u,validAfter:d,feeToken:f,feePayerSignatureOrSender:h,...t.length>12?{signature:w}:{}},serialized:e,type:Mg});let T={chainId:Number(r),type:Mg};if(Nr(a)&&a!=="0x"&&(T.gas=BigInt(a)),Nr(l)&&(T.nonce=l==="0x"?0n:BigInt(l)),Nr(s)&&s!=="0x"&&(T.maxFeePerGas=BigInt(s)),Nr(n)&&n!=="0x"&&(T.maxPriorityFeePerGas=BigInt(n)),Nr(c)&&(T.nonceKey=c==="0x"?0n:BigInt(c)),Nr(u)&&u!=="0x"&&(T.validBefore=Number(u)),Nr(d)&&d!=="0x"&&(T.validAfter=Number(d)),Nr(f)&&f!=="0x"&&(T.feeToken=f),o&&o!=="0x"){const _=o;T.calls=_.map(z=>{const[S,m,b]=z,x={};return S&&S!=="0x"&&(x.to=S),m&&m!=="0x"&&(x.value=BigInt(m)),b&&b!=="0x"&&(x.data=b),x})}(i==null?void 0:i.length)!==0&&i!=="0x"&&(T.accessList=w_(i)),(y==null?void 0:y.length)!==0&&y!=="0x"&&(T.authorizationList=a_(y)),h!=="0x"&&h!==void 0&&(h==="0x00"||_l(h)?T.feePayerSignature=null:T.feePayerSignature=DU(h)),v&&(T.keyAuthorization=d_(v));const C=w?Za(w):void 0;return C&&(T={...T,signature:C}),Ef(T),T}function F_(e,t={}){const{feePayerSignature:r,signature:n}=t,s=typeof e=="string"?B_(e):e;return Ef(s),{...s,...n?{signature:Fi(n)}:{},...r?{feePayerSignature:Nl(r)}:{},type:"tempo"}}function Ni(e,t={}){const{accessList:r,authorizationList:n,calls:s,chainId:a,feeToken:o,gas:i,keyAuthorization:c,nonce:l,nonceKey:u,maxFeePerGas:d,maxPriorityFeePerGas:f,validBefore:h,validAfter:y}=e;Ef(e);const g=v_(r),E=t.signature||e.signature,v=l_(n),w=s.map(_=>[_.to??"0x",_.value?Z(_.value):"0x",_.data??"0x"]),T=(()=>{if(t.sender)return t.sender;const _=typeof t.feePayerSignature<"u"?t.feePayerSignature:e.feePayerSignature;return _===null?"0x00":_?NU(_):"0x"})(),C=[Z(a),f?Z(f):"0x",d?Z(d):"0x",i?Z(i):"0x",w,g,u?Z(u):"0x",l?Z(l):"0x",typeof h=="number"?Z(h):"0x",typeof y=="number"?Z(y):"0x",typeof o=="bigint"||typeof o=="string"?Fg(o):"0x",T,v,...c?[f_(c)]:[],...E?[Hl(Fi(E))]:[]];return ft(t.format==="feePayer"?P_:I_,CO(C))}function U_(e){return O_(e,{presign:!0})}function O_(e,t={}){const r=Ni({...e,...t.presign?{signature:void 0}:{}});return Ii(r)}function __(e,t){const{sender:r}=t,n=Ni({...e,signature:void 0},{sender:r,format:"feePayer"});return Ii(n)}class D_ extends oe{constructor(){super("Calls list cannot be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.CallsEmptyError"})}}class M_ extends oe{constructor({validBefore:t,validAfter:r}){super(`validBefore (${t}) must be greater than validAfter (${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.InvalidValidityWindowError"})}}function Ng(e){const t=e.account;return t!=null&&t.keyType&&t.keyType!=="secp256k1"||typeof e.calls<"u"||typeof e.feePayer<"u"||typeof e.feeToken<"u"||typeof e.keyAuthorization<"u"||typeof e.nonceKey<"u"||typeof e.signature<"u"||typeof e.validBefore<"u"||typeof e.validAfter<"u"?"tempo":e.type?e.type:op(e)}function kf(e){try{return Ng(e)==="tempo"}catch{return!1}}async function N_(e,t){if(!kf(e)){if(t&&"type"in t&&t.type!=="secp256k1")throw new Error("Unsupported signature type. Expected `secp256k1` but got `"+t.type+"`.");if(t&&"type"in t){const{r:n,s,yParity:a}=t==null?void 0:t.signature;return Wc(e,{r:Z(n,{size:32}),s:Z(s,{size:32}),yParity:a})}return Wc(e,t)}if(Ng(e)==="tempo")return L_(e,t);throw new Error("Unsupported transaction type")}async function L_(e,t){var l;const r=(()=>{if(e.signature)return e.signature;if(t&&"type"in t)return t;if(t)return Fi({r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)})})(),{chainId:n,feePayer:s,feePayerSignature:a,nonce:o,...i}=e,c={...i,calls:(l=i.calls)!=null&&l.length?i.calls:[{to:i.to||(!i.data||i.data==="0x"?"0x0000000000000000000000000000000000000000":void 0),value:i.value,data:i.data}],chainId:Number(n),feePayerSignature:a?{r:BigInt(a.r),s:BigInt(a.s),yParity:Number(a.yParity)}:s?null:void 0,type:"tempo",...o?{nonce:BigInt(o)}:{}};if(s===!0&&delete c.feeToken,r&&typeof e.feePayer=="object"){const u=F_(c,{signature:r}),d=(()=>{if(e.from)return e.from;if(r.type==="secp256k1")return Zy({payload:U_(u),signature:r.signature});throw new Error("Unable to extract sender from transaction or signature.")})(),f=__(u,{sender:d}),h=await e.feePayer.sign({hash:f});return Ni(u,{feePayerSignature:Nl(h)})}if(s===!0){const u=Ni(c,{feePayerSignature:null,signature:r});return e.from&&r?ft(u,e.from,"0xfeefeefeefee"):u}return Ni({...c,...s?{feeToken:void 0}:{}},{feePayerSignature:void 0,signature:r})}function z_(e){if(!kf(e))return Ns(e);const{feePayerSignature:t,gasPrice:r,nonce:n,...s}=y_(e);return{...s,accessList:s.accessList,feePayerSignature:t?{r:Z(t.r,{size:32}),s:Z(t.s,{size:32}),v:BigInt(t.v??27),yParity:t.yParity}:void 0,nonce:Number(n),typeHex:_g[s.type],type:s.type}}function R_(e){return Rc(e)}function H_(e,t){const r=e,n=r.account?Ze(r.account):void 0;if(!kf(r))return Dr(e);t&&(r.calls=r.calls??[{to:e.to||(!e.data||e.data==="0x"?"0x0000000000000000000000000000000000000000":void 0),value:e.value,data:e.data}]),r.feePayer===!0&&delete r.feeToken;const s=x_({...r,type:"tempo"});t==="estimateGas"&&(s.maxFeePerGas=void 0,s.maxPriorityFeePerGas=void 0),s.to=void 0,s.data=void 0,s.value=void 0;const[a,o]=(()=>{const c=n&&"keyType"in n?n.keyType:n==null?void 0:n.source;return c?c==="webAuthn"?["webAuthn",`0x${"ff".repeat(1400)}`]:["p256","secp256k1"].includes(c)?[c,void 0]:[void 0,void 0]:[void 0,void 0]})(),i=n&&"accessKeyAddress"in n?n.accessKeyAddress:void 0;return{...s,...o?{keyData:o}:{},...i?{keyId:i}:{},...a?{keyType:a}:{},...r.feePayer?{feePayer:typeof r.feePayer=="object"?Ze(r.feePayer):r.feePayer}:{}}}const $_=G_();function G_(){return new Map}function j_(e){return`${e.address.toLowerCase()}-${e.chainId}`}function Lg(e,t){const r=j_(t);let n=e.get(r);return n||(n={counter:0,resetScheduled:!1},e.set(r,n)),n}function V_(e,t){const r=Lg(e,t);r.counter=0,r.resetScheduled=!1}function W_(e,t){const r=Lg(e,t);r.resetScheduled||(r.resetScheduled=!0,queueMicrotask(()=>V_(e,t)));const n=r.counter;return r.counter++,n===0?0n:yt(fy(6))}const Cf={blockTime:1e3,extendSchema:R3(),formatters:{transaction:zc({exclude:["aaAuthorizationList"],format:z_}),transactionReceipt:_d({format:R_}),transactionRequest:Dd({format:H_})},prepareTransactionRequest:[async(e,{phase:t})=>{var n;const r=e;return t==="afterFillParameters"?(typeof r.nonceKey=="bigint"&&r.nonceKey>0n&&(r.gas=(r.gas??0n)+40000n),r):(r.nonceKey=(()=>{var o;if(typeof r.nonceKey<"u"&&r.nonceKey!=="random")return r.nonceKey;const s=((o=r.account)==null?void 0:o.address)??r.from;if(!s||!r.chain)return;const a=W_($_,{address:s,chainId:r.chain.id});if(a!==0n)return a})(),r.nonce=(()=>{if(typeof r.nonce=="number")return r.nonce;if(r.nonceKey)return 0})(),!r.feeToken&&((n=r.chain)!=null&&n.feeToken)&&(r.feeToken=r.chain.feeToken),r)},{runAt:["beforeFillTransaction","afterFillParameters"]}],serializers:{transaction:((e,t)=>N_(e,t))},async verifyHash(e,t){const{address:r,hash:n,signature:s}=t;if(typeof s=="string"&&s.endsWith(Xs.slice(2))){const a=Za(s);if(a.type!=="keychain"){const o=await $l(e,{address:r,blockNumber:t.blockNumber,blockTag:t.blockTag});if(!o||o==="0xef01007702c00000000000000000000000000000000000")return VU(a,{address:r,payload:n})}}return await se(e,Mi,"verifyHash")({...t,chain:null})}},q_=p({...Cf,id:42429,name:"Tempo Devnet",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.devnet.tempoxyz.dev"],webSocket:["wss://rpc.devnet.tempoxyz.dev"]}}}),Y_=p({...Cf,id:1337,name:"Tempo",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["http://localhost:8545"]}}}),K_=p({...Cf,id:42429,blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.tempo.xyz"}},name:"Tempo Testnet",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.testnet.tempo.xyz"],webSocket:["wss://rpc.testnet.tempo.xyz"]}}}),Z_=p({id:1559,name:"Tenet",network:"tenet-mainnet",nativeCurrency:{name:"TENET",symbol:"TENET",decimals:18},rpcUrls:{default:{http:["https://rpc.tenet.org"]}},blockExplorers:{default:{name:"TenetScan Mainnet",url:"https://tenetscan.io",apiUrl:"https://tenetscan.io/api"}},testnet:!1}),X_=p({id:752025,name:"Ternoa",nativeCurrency:{name:"Capsule Coin",symbol:"CAPS",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.zkevm.ternoa.network"]}},blockExplorers:{default:{name:"Ternoa Explorer",url:"https://explorer-mainnet.zkevm.ternoa.network"}},testnet:!1}),Q_=p({id:7,name:"ThaiChain",nativeCurrency:{name:"TCH",symbol:"TCH",decimals:18},rpcUrls:{default:{http:["https://rpc.thaichain.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp.thaichain.org",apiUrl:"https://exp.thaichain.org/api"}},contracts:{multicall3:{address:"0x0DaD6130e832c21719C5CE3bae93454E16A84826",blockCreated:4806386}},testnet:!1}),J_=p({id:8428,name:"THAT Mainnet",nativeCurrency:{name:"THAT",symbol:"THAT",decimals:18},rpcUrls:{default:{http:["https://api.thatchain.io/mainnet"]}},blockExplorers:{default:{name:"Blockscout",url:"https://that.blockscout.com"}},testnet:!1}),eD=p({id:361,name:"Theta Mainnet",nativeCurrency:{name:"TFUEL",symbol:"TFUEL",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-api.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"Theta Explorer",url:"https://explorer.thetatoken.org"}},testnet:!1}),tD=p({id:365,name:"Theta Testnet",nativeCurrency:{name:"TFUEL",symbol:"TFUEL",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-api-testnet.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"Theta Explorer",url:"https://testnet-explorer.thetatoken.org"}},testnet:!0}),rD=p({id:108,name:"ThunderCore Mainnet",nativeCurrency:{name:"TT",symbol:"TT",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.thundercore.com"]}},blockExplorers:{default:{name:"ThunderCore Explorer",url:"https://explorer-mainnet.thundercore.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1}),nD=p({id:997,name:"5ireChain Thunder Testnet",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Thunder Explorer",url:"https://testnet.5irescan.io/"}},testnet:!0}),sD=p({id:62092,name:"TikTrix Testnet",nativeCurrency:{name:"tTTX",symbol:"tTTX",decimals:18},rpcUrls:{default:{http:["https://tiktrix-rpc.xyz"]}},blockExplorers:{default:{name:"TikTrix Testnet Explorer",url:"https://tiktrix.xyz"}},testnet:!0}),aD=p({id:6969,name:"Tomb Mainnet",nativeCurrency:{name:"TOMB",symbol:"TOMB",decimals:18},rpcUrls:{default:{http:["https://rpc.tombchain.com"]}},blockExplorers:{default:{name:"Tomb Explorer",url:"https://tombscout.com"}},testnet:!1}),oD=p({...ur,id:61166,name:"Treasure",nativeCurrency:{decimals:18,name:"MAGIC",symbol:"MAGIC"},rpcUrls:{default:{http:["https://rpc.treasure.lol"],webSocket:["wss://rpc.treasure.lol/ws"]}},blockExplorers:{default:{name:"Treasure Block Explorer",url:"https://treasurescan.io"}},contracts:{multicall3:{address:"0x2e29fe39496a56856D8698bD43e1dF4D0CE6266a",blockCreated:101}},testnet:!1}),iD=p({...ur,id:978658,name:"Treasure Topaz Testnet",nativeCurrency:{decimals:18,name:"MAGIC",symbol:"MAGIC"},rpcUrls:{default:{http:["https://rpc.topaz.treasure.lol"],webSocket:["wss://rpc.topaz.treasure.lol/ws"]}},blockExplorers:{default:{name:"Treasure Topaz Block Explorer",url:"https://topaz.treasurescan.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:108112}},testnet:!0}),cD=p({id:728126428,name:"Tron",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://api.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://tronscan.org",apiUrl:"https://apilist.tronscanapi.com/api"}}}),lD=p({id:3448148188,name:"Tron Nile",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://nile.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://nile.tronscan.org"}},testnet:!0}),uD=p({id:2494104990,name:"Tron Shasta",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://api.shasta.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://shasta.tronscan.org"}},testnet:!0}),dD=p({id:8,name:"Ubiq Mainnet",nativeCurrency:{name:"UBQ",symbol:"UBQ",decimals:18},rpcUrls:{default:{http:["https://pyrus2.ubiqscan.io"]}},blockExplorers:{default:{name:"Ubiq Scan",url:"https://ubiqscan.io"}},testnet:!1}),pD=p({id:19991,name:"Ultra EVM",nativeCurrency:{decimals:18,name:"Ultra Token",symbol:"UOS"},rpcUrls:{default:{http:["https://evm.ultra.eosusa.io"]}},blockExplorers:{default:{name:"Ultra EVM Explorer",url:"https://evmexplorer.ultra.io"}}}),fD=p({id:18881,name:"Ultra EVM Testnet",nativeCurrency:{decimals:18,name:"Ultra Token",symbol:"UOS"},rpcUrls:{default:{http:["https://evm.test.ultra.eosusa.io"]}},blockExplorers:{default:{name:"Ultra EVM Testnet Explorer",url:"https://evmexplorer.testnet.ultra.io"}},testnet:!0}),hD=p({id:1231,name:"Ultron Mainnet",nativeCurrency:{name:"ULX",symbol:"ULX",decimals:18},rpcUrls:{default:{http:["https://ultron-rpc.net"]}},blockExplorers:{default:{name:"Ultron Scan",url:"https://ulxscan.com"}},testnet:!1}),mD=p({id:1230,name:"Ultron Testnet",nativeCurrency:{name:"ULX",symbol:"ULX",decimals:18},rpcUrls:{default:{http:["https://ultron-dev.io"]}},blockExplorers:{default:{name:"Ultron Scan",url:"https://explorer.ultron-dev.io"}},testnet:!0}),Wl=1,bD=p({...V,id:130,name:"Unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://mainnet.unichain.org/"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz",apiUrl:"https://api.uniscan.xyz/api"}},contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[Wl]:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{[Wl]:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{[Wl]:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"}}},sourceId:Wl}),ql=11155111,yD=p({...V,id:1301,name:"Unichain Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://sepolia.unichain.org"]}},blockExplorers:{default:{name:"Uniscan",url:"https://sepolia.uniscan.xyz",apiUrl:"https://api-sepolia.uniscan.xyz/api"}},contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},portal:{[ql]:{address:"0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD"}},l1StandardBridge:{[ql]:{address:"0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2"}},disputeGameFactory:{[ql]:{address:"0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b"}}},testnet:!0,sourceId:ql}),gD=p({id:8880,name:"Unique Mainnet",nativeCurrency:{decimals:18,name:"UNQ",symbol:"UNQ"},rpcUrls:{default:{http:["https://rpc.unique.network"]}},blockExplorers:{default:{name:"Unique Subscan",url:"https://unique.subscan.io/"}}}),xD=p({id:8882,name:"Opal Testnet",nativeCurrency:{decimals:18,name:"OPL",symbol:"OPL"},rpcUrls:{default:{http:["https://rpc-opal.unique.network"]}},blockExplorers:{default:{name:"Opal Subscan",url:"https://opal.subscan.io/"}},testnet:!0}),wD=p({id:8881,name:"Quartz Mainnet",nativeCurrency:{decimals:18,name:"QTZ",symbol:"QTZ"},rpcUrls:{default:{http:["https://rpc-quartz.unique.network"]}},blockExplorers:{default:{name:"Quartz Subscan",url:"https://quartz.subscan.io/"}}}),vD=p({id:18233,name:"Unreal",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://rpc.unreal-orbit.gelato.digital"]}},blockExplorers:{default:{name:"Unreal Explorer",url:"https://unreal.blockscout.com",apiUrl:"https://unreal.blockscout.com/api/v2"}},testnet:!0,contracts:{multicall3:{address:"0x8b6B0e60D8CD84898Ea8b981065A12F876eA5677",blockCreated:1745}}}),ED=p({id:1480,name:"Vana",blockTime:6e3,nativeCurrency:{decimals:18,name:"Vana",symbol:"VANA"},rpcUrls:{default:{http:["https://rpc.vana.org/"]}},blockExplorers:{default:{name:"Vana Block Explorer",url:"https://vanascan.io",apiUrl:"https://vanascan.io/api"}},contracts:{multicall3:{address:"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",blockCreated:716763}}}),kD=p({id:14800,name:"Vana Moksha Testnet",blockTime:6e3,nativeCurrency:{decimals:18,name:"Vana",symbol:"VANA"},rpcUrls:{default:{http:["https://rpc.moksha.vana.org"]}},blockExplorers:{default:{name:"Vana Moksha Testnet",url:"https://moksha.vanascan.io",apiUrl:"https://moksha.vanascan.io/api"}},contracts:{multicall3:{address:"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",blockCreated:732283}},testnet:!0}),CD=p({id:2040,name:"Vanar Mainnet",nativeCurrency:{name:"VANRY",symbol:"VANRY",decimals:18},rpcUrls:{default:{http:["https://rpc.vanarchain.com"]}},blockExplorers:{default:{name:"Vanar Mainnet Explorer",url:"https://explorer.vanarchain.com/"}},testnet:!1}),TD=p({id:100009,name:"Vechain",nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},rpcUrls:{default:{http:["https://mainnet.vechain.org"]}},blockExplorers:{default:{name:"Vechain Explorer",url:"https://explore.vechain.org"},vechainStats:{name:"Vechain Stats",url:"https://vechainstats.com"}}}),SD=p({id:106,name:"Velas EVM Mainnet",nativeCurrency:{name:"VLX",symbol:"VLX",decimals:18},rpcUrls:{default:{http:["https://evmexplorer.velas.com/rpc"]}},blockExplorers:{default:{name:"Velas Explorer",url:"https://evmexplorer.velas.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:55883577}},testnet:!1}),AD=p({id:88,name:"Viction",nativeCurrency:{name:"Viction",symbol:"VIC",decimals:18},rpcUrls:{default:{http:["https://rpc.viction.xyz"]}},blockExplorers:{default:{name:"VIC Scan",url:"https://vicscan.xyz"}},testnet:!1}),PD=p({id:89,name:"Viction Testnet",nativeCurrency:{name:"Viction",symbol:"VIC",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.viction.xyz"]}},blockExplorers:{default:{name:"VIC Scan",url:"https://testnet.vicscan.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:12170179}},testnet:!0}),ID=p({id:888888,name:"Vision",nativeCurrency:{name:"VISION",symbol:"VS",decimals:18},rpcUrls:{default:{http:["https://infragrid.v.network/ethereum/compatible"]}},blockExplorers:{default:{name:"Vision Scan",url:"https://visionscan.org"}},testnet:!1}),BD=p({id:666666,name:"Vision Testnet",nativeCurrency:{name:"VISION",symbol:"VS",decimals:18},rpcUrls:{default:{http:["https://vpioneer.infragrid.v.network/ethereum/compatible"]}},blockExplorers:{default:{name:"Vision Scan",url:"https://visionscan.org/?chain=vpioneer"}},testnet:!0}),FD=p({id:888,name:"Wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}}),UD=p({id:999,name:"Wanchain Testnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0}),OD=p({id:9496,name:"WeaveVM Alphanet",nativeCurrency:{name:"Testnet WeaveVM",symbol:"tWVM",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.wvm.dev"]}},blockExplorers:{default:{name:"WeaveVM Alphanet Explorer",url:"https://explorer.wvm.dev"}},testnet:!0}),_D=p({id:1111,name:"WEMIX",network:"wemix-mainnet",nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},rpcUrls:{default:{http:["https://api.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://explorer.wemix.com"}}}),DD=p({id:1112,name:"WEMIX Testnet",network:"wemix-testnet",nativeCurrency:{name:"WEMIX",symbol:"tWEMIX",decimals:18},rpcUrls:{default:{http:["https://api.test.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://testnet.wemixscan.com",apiUrl:"https://testnet.wemixscan.com/api"}},testnet:!0}),MD=p({id:420420421,name:"Westend Asset Hub",nativeCurrency:{decimals:18,name:"Westies",symbol:"WND"},rpcUrls:{default:{http:["https://westend-asset-hub-eth-rpc.polkadot.io"]}},blockExplorers:{default:{name:"subscan",url:"https://westend-asset-hub-eth-explorer.parity.io"}},testnet:!0}),ND=p({testnet:!1,name:"Whitechain",blockExplorers:{default:{name:"Whitechain Explorer",url:"https://explorer.whitechain.io"}},id:1875,rpcUrls:{default:{http:["https://rpc.whitechain.io"]}},nativeCurrency:{decimals:18,name:"WhiteBIT Coin",symbol:"WBT"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:25212237}}}),LD=p({testnet:!0,name:"Whitechain Testnet",blockExplorers:{default:{name:"Whitechain Explorer",url:"https://testnet.whitechain.io"}},id:2625,rpcUrls:{default:{http:["https://rpc-testnet.whitechain.io"]}},nativeCurrency:{decimals:18,name:"WhiteBIT Coin",symbol:"WBT"}}),zD=p({id:42070,name:"WMC Testnet",nativeCurrency:{name:"WMTx",symbol:"WMTx",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet-base.worldmobile.net"]}},blockExplorers:{default:{name:"WMC Explorer",url:"https://explorer2-base-testnet.worldmobile.net"}},testnet:!0}),Li=1,RD=p({...V,id:480,name:"World Chain",network:"worldchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://worldchain-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Worldscan",url:"https://worldscan.org",apiUrl:"https://api.worldscan.org/api"},blockscout:{name:"Blockscout",url:"https://worldchain-mainnet.explorer.alchemy.com",apiUrl:"https://worldchain-mainnet.explorer.alchemy.com/api"}},contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[Li]:{address:"0x069c4c579671f8c120b1327a73217D01Ea2EC5ea"}},l2OutputOracle:{[Li]:{address:"0x19A6d1E9034596196295CF148509796978343c5D"}},portal:{[Li]:{address:"0xd5ec14a83B7d95BE1E2Ac12523e2dEE12Cbeea6C"}},l1StandardBridge:{[Li]:{address:"0x470458C91978D2d929704489Ad730DC3E3001113"}}},testnet:!1,sourceId:Li}),zi=11155111,HD=p({...V,id:4801,name:"World Chain Sepolia",network:"worldchain-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://worldchain-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Worldscan Sepolia",url:"https://sepolia.worldscan.org",apiUrl:"https://api-sepolia.worldscan.org/api"},blockscout:{name:"Blockscout",url:"https://worldchain-sepolia.explorer.alchemy.com",apiUrl:"https://worldchain-sepolia.explorer.alchemy.com/api"}},contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[zi]:{address:"0x8Ec1111f67Dad6b6A93B3F42DfBC92D81c98449A"}},l2OutputOracle:{[zi]:{address:"0xc8886f8BAb6Eaeb215aDB5f1c686BF699248300e"}},portal:{[zi]:{address:"0xFf6EBa109271fe6d4237EeeD4bAb1dD9A77dD1A4"}},l1StandardBridge:{[zi]:{address:"0xd7DF54b3989855eb66497301a4aAEc33Dbb3F8DE"}}},testnet:!0,sourceId:zi}),$D=p({id:103,name:"WorldLand Mainnet",nativeCurrency:{decimals:18,name:"WLC",symbol:"WLC"},rpcUrls:{default:{http:["https://seoul.worldland.foundation"]}},blockExplorers:{default:{name:"WorldLand Scan",url:"https://scan.worldland.foundation"}},testnet:!1}),GD=p({id:660279,name:"Xai Mainnet",nativeCurrency:{name:"Xai",symbol:"XAI",decimals:18},rpcUrls:{default:{http:["https://xai-chain.net/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.xai-chain.net"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:222549}},testnet:!1}),jD=p({id:37714555429,name:"Xai Testnet",nativeCurrency:{name:"sXai",symbol:"sXAI",decimals:18},rpcUrls:{default:{http:["https://testnet-v2.xai-chain.net/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer-v2.xai-chain.net"}},testnet:!0}),VD=p({id:50,name:"XDC Network",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xdcrpc.com"]}},blockExplorers:{default:{name:"XDCScan",url:"https://xdcscan.com"}},contracts:{multicall3:{address:"0x0B1795ccA8E4eC4df02346a082df54D437F8D9aF",blockCreated:75884020}}}),WD=p({id:51,name:"Apothem Network",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]}},blockExplorers:{default:{name:"XDCScan",url:"https://testnet.xdcscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59765389}}}),qD=p({id:196,name:"X Layer Mainnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://rpc.xlayer.tech"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer",apiUrl:"https://www.oklink.com/api/v5/explorer/xlayer/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:47416}}}),zg=p({id:195,name:"X1 Testnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://xlayertestrpc.okx.com"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer-test"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:624344}},testnet:!0}),YD=p({id:3721,name:"Xone Chain Mainnet",nativeCurrency:{decimals:18,name:"XOC",symbol:"XOC"},rpcUrls:{default:{http:["https://rpc.xone.org"]}},blockExplorers:{default:{name:"Xone Mainnet Explorer",url:"https://xonescan.com",apiUrl:"http://api.xonescan.com/api"}},testnet:!1}),KD=p({id:33772211,name:"Xone Chain Testnet",nativeCurrency:{decimals:18,name:"XOC",symbol:"XOC"},rpcUrls:{default:{http:["https://rpc-testnet.xone.org","https://rpc-testnet.xone.plus","https://rpc-testnet.knight.center"]}},blockExplorers:{default:{name:"Xone Testnet Explorer",url:"https://testnet.xonescan.com",apiUrl:"http://api.testnet.xonescan.com/api"}},testnet:!0}),ZD=p({id:20250217,name:"Xphere Mainnet",nativeCurrency:{decimals:18,name:"XP",symbol:"XP"},rpcUrls:{default:{http:["https://en-bkk.x-phere.com"]}},blockExplorers:{default:{name:"Xphere Tamsa Explorer",url:"https://xp.tamsa.io"}},testnet:!1}),XD=p({id:1998991,name:"Xphere Testnet",nativeCurrency:{decimals:18,name:"XPT",symbol:"XPT"},rpcUrls:{default:{http:["http://testnet.x-phere.com"]}},blockExplorers:{default:{name:"Xphere Tamsa Explorer",url:"https://xpt.tamsa.io"}},testnet:!0}),QD=p({id:273,name:"XR One",nativeCurrency:{decimals:18,name:"XR1",symbol:"XR1"},rpcUrls:{default:{http:["https://xr1.calderachain.xyz/http"],webSocket:["wss://xr1.calderachain.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://xr1.calderaexplorer.xyz"}},testnet:!1}),JD=p({id:144e4,name:"XRPL EVM",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.xrplevm.org"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.xrplevm.org",apiUrl:"https://explorer.xrplevm.org/api/v2"}},testnet:!1}),eM=p({id:1440002,name:"XRPL EVM Devnet",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.xrplevm.org/"]},public:{http:["https://rpc.xrplevm.org/"]}},blockExplorers:{default:{name:"XRPLEVM Devnet Explorer",url:"https://explorer.xrplevm.org/"}},contracts:{multicall3:{address:"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31",blockCreated:15237286}},testnet:!0}),tM=p({id:1449e3,name:"XRPL EVM Testnet",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.xrplevm.org"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.testnet.xrplevm.org",apiUrl:"https://explorer.testnet.xrplevm.org/api/v2"}},contracts:{multicall3:{address:"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31",blockCreated:492302}},testnet:!0}),rM=p({id:2730,name:"XR Sepolia",nativeCurrency:{decimals:18,name:"tXR",symbol:"tXR"},rpcUrls:{default:{http:["https://xr-sepolia-testnet.rpc.caldera.xyz/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://xr-sepolia-testnet.explorer.caldera.xyz"}},testnet:!0}),nM=p({id:50005,name:"Yooldo Verse",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.yooldo-verse.xyz"]}},blockExplorers:{default:{name:"Yooldo Verse Explorer",url:"https://explorer.yooldo-verse.xyz"}}}),sM=p({id:50006,name:"Yooldo Verse Testnet",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.yooldo-verse.xyz"]}},blockExplorers:{default:{name:"Yooldo Verse Testnet Explorer",url:"https://explorer.testnet.yooldo-verse.xyz"}},testnet:!0}),aM=p({id:8408,name:"ZenChain Testnet",nativeCurrency:{decimals:18,name:"ZTC",symbol:"ZTC"},rpcUrls:{default:{http:["https://zenchain-testnet.api.onfinality.io/public"],webSocket:["wss://zenchain-testnet.api.onfinality.io/public-ws"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:230019}},blockExplorers:{default:{name:"Zentrace",url:"https://zentrace.io"}},testnet:!0}),oM=p({id:383414847825,name:"Zeniq Mainnet",nativeCurrency:{name:"ZENIQ",symbol:"ZENIQ",decimals:18},rpcUrls:{default:{http:["https://api.zeniq.network"]}},blockExplorers:{default:{name:"Zeniq Explorer",url:"https://zeniqscan.com"}},testnet:!1}),iM=p({id:543210,name:"Zero Network",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zerion.io/v1/zero"]}},blockExplorers:{default:{name:"Zero Network Explorer",url:"https://explorer.zero.network"}},testnet:!1}),cM=p({id:7e3,name:"ZetaChain",nativeCurrency:{decimals:18,name:"Zeta",symbol:"ZETA"},rpcUrls:{default:{http:["https://zetachain-evm.blockpi.network/v1/rpc/public"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1632781}},blockExplorers:{default:{name:"ZetaScan",url:"https://zetascan.com"}},testnet:!1}),lM=p({id:7001,name:"ZetaChain Athens Testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2715217}},blockExplorers:{default:{name:"ZetaScan",url:"https://testnet.zetascan.com"}},testnet:!0}),uM=p({id:1337803,name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0}),dM=p({id:32769,name:"Zilliqa",network:"zilliqa",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.zilliqa.com"}},testnet:!1}),pM=p({id:33101,name:"Zilliqa Testnet",network:"zilliqa-testnet",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://dev-api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.testnet.zilliqa.com"}},testnet:!0}),Tf=1,fM=p({...V,id:48900,name:"Zircuit Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.zircuit.com","https://zircuit1-mainnet.liquify.com","https://zircuit1-mainnet.p2pify.com","https://zircuit-mainnet.drpc.org"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{[Tf]:{address:"0x92Ef6Af472b39F1b363da45E35530c24619245A4"}},portal:{[Tf]:{address:"0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"}},l1StandardBridge:{[Tf]:{address:"0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"}}},testnet:!1}),Sf=11155111,hM=p({...V,id:48898,name:"Zircuit Garfield Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://garfield-testnet.zircuit.com/"]}},blockExplorers:{default:{name:"Zircuit Garfield Testnet Explorer",url:"https://explorer.garfield-testnet.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{[Sf]:{address:"0xd69D3AC5CA686cCF94b258291772bc520FEAf211"}},portal:{[Sf]:{address:"0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21"}},l1StandardBridge:{[Sf]:{address:"0x87a7E2bCA9E35BA49282E832a28A6023904460D8"}}},testnet:!0}),Af=11155111,mM=p({...V,id:48899,name:"Zircuit Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.zircuit.com","https://zircuit1-testnet.p2pify.com","https://zircuit1-testnet.liquify.com"]}},blockExplorers:{default:{name:"Zircuit Testnet Explorer",url:"https://explorer.testnet.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6040287},l2OutputOracle:{[Af]:{address:"0x740C2dac453aEf7140809F80b72bf0e647af8148"}},portal:{[Af]:{address:"0x787f1C8c5924178689E0560a43D848bF8E54b23e"}},l1StandardBridge:{[Af]:{address:"0x0545c5fe980098C16fcD0eCB5E79753afa6d9af9"}}},testnet:!0}),bM=p({id:42766,name:"ZKFair Mainnet",network:"zkfair-mainnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://scan.zkfair.io",apiUrl:"https://scan.zkfair.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6090959}},testnet:!1}),yM=p({id:43851,name:"ZKFair Testnet",network:"zkfair-testnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://testnet-rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://testnet-scan.zkfair.io"}},testnet:!0}),gM=p({id:810180,name:"zkLink Nova",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zklink.io"]}},blockExplorers:{default:{name:"zkLink Nova Block Explorer",url:"https://explorer.zklink.io"}}}),xM=p({id:810181,name:"zkLink Nova Sepolia Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zklink.io"]}},blockExplorers:{default:{name:"zkLink Nova Block Explorer",url:"https://sepolia.explorer.zklink.io"}}}),Rg=p({...ur,blockTime:200,id:324,name:"ZKsync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://era.zksync.network/",apiUrl:"https://api-era.zksync.network/api"},native:{name:"ZKsync Explorer",url:"https://explorer.zksync.io/",apiUrl:"https://block-explorer-api.mainnet.zksync.io/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:45659388}}}),Hg=p({...ur,id:260,name:"ZKsync InMemory Node",network:"zksync-in-memory-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8011"]}},testnet:!0}),wM=p({...ur,id:272,name:"ZKsync CLI Local Custom Hyperchain",nativeCurrency:{name:"BAT",symbol:"BAT",decimals:18},rpcUrls:{default:{http:["http://localhost:15200"],webSocket:["ws://localhost:15201"]}},blockExplorers:{default:{name:"ZKsync explorer",url:"http://localhost:15005/",apiUrl:"http://localhost:15005/api"}},testnet:!0}),vM=p({...ur,id:270,name:"ZKsync CLI Local Hyperchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:15100"],webSocket:["ws://localhost:15101"]}},blockExplorers:{default:{name:"ZKsync explorer",url:"http://localhost:15005/",apiUrl:"http://localhost:15005/api"}},testnet:!0}),EM=p({id:9,name:"ZKsync CLI Local Hyperchain L1",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:15045"]}},blockExplorers:{default:{name:"Blockscout",url:"http://localhost:15001/",apiUrl:"http://localhost:15001/api/v2"}},testnet:!0}),$g=p({...ur,id:270,name:"ZKsync CLI Local Node",network:"zksync-cli-local-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:3050"]}},testnet:!0}),Gg=p({...ur,blockTime:200,id:300,name:"ZKsync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia-era.zksync.network/",apiUrl:"https://api-sepolia-era.zksync.network/api"},native:{name:"ZKsync Explorer",url:"https://sepolia.explorer.zksync.io/",blockExplorerApi:"https://block-explorer-api.sepolia.zksync.dev/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:3855712}},testnet:!0}),Yl=1,kM=p({...V,id:7777777,name:"Zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy",apiUrl:"https://explorer.zora.energy/api"}},contracts:{...V.contracts,l2OutputOracle:{[Yl]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882},portal:{[Yl]:{address:"0x1a0ad011913A150f69f6A19DF447A0CfD9551054"}},l1StandardBridge:{[Yl]:{address:"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631"}}},sourceId:Yl}),Kl=11155111,CM=p({...V,id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/",apiUrl:"https://sepolia.explorer.zora.energy/api"}},contracts:{...V.contracts,l2OutputOracle:{[Kl]:{address:"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160},portal:{[Kl]:{address:"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f"}},l1StandardBridge:{[Kl]:{address:"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB"}}},sourceId:Kl,testnet:!0}),jg=5,TM=p({...V,id:999,name:"Zora Goerli Testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy",apiUrl:"https://testnet.explorer.zora.energy/api"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123},portal:{[jg]:{address:"0xDb9F51790365e7dc196e7D072728df39Be958ACe"}}},sourceId:jg,testnet:!0}),SM=Object.freeze(Object.defineProperty({__proto__:null,abey:W3,abstract:Uv,abstractTestnet:Ov,acala:_v,acria:Dv,adf:Mv,agungTestnet:Nv,aioz:Lv,alephZero:zv,alephZeroTestnet:Rv,alienx:Hv,alienxHalTestnet:$v,ancient8:qv,ancient8Sepolia:Yv,anvil:Kv,apeChain:Zv,apexTestnet:Xv,apollo:Qv,arbitrum:Jv,arbitrumGoerli:eE,arbitrumNova:tE,arbitrumSepolia:rE,arcTestnet:nE,arenaz:sE,areonNetwork:aE,areonNetworkTestnet:oE,areum:iE,artelaTestnet:cE,arthera:lE,artheraTestnet:uE,assetChain:dE,assetChainTestnet:pE,astar:fE,astarZkEVM:hE,astarZkyoto:mE,atletaOlympia:bE,aurora:yE,auroraTestnet:gE,auroria:xE,autheoTestnet:wE,avalanche:vE,avalancheFuji:EE,b3:kE,b3Sepolia:CE,bahamut:TE,base:pb,baseGoerli:PE,basePreconf:SE,baseSepolia:fb,baseSepoliaPreconf:IE,basecampTestnet:AE,beam:BE,beamTestnet:FE,bearNetworkChainMainnet:UE,bearNetworkChainTestnet:OE,berachain:_E,berachainBepolia:DE,berachainTestnet:ME,berachainTestnetbArtio:NE,bevmMainnet:LE,bifrost:zE,birdlayer:RE,bitTorrent:qE,bitTorrentTestnet:YE,bitgert:HE,bitkub:$E,bitkubTestnet:GE,bitlayer:jE,bitlayerTestnet:VE,bitrock:WE,blast:KE,blastSepolia:ZE,bob:XE,bobSepolia:ek,boba:QE,bobaSepolia:JE,boolBetaMainnet:tk,botanix:rk,botanixTestnet:nk,bounceBit:sk,bounceBitTestnet:ak,bronos:ok,bronosTestnet:ik,bsc:ck,bscGreenfield:lk,bscTestnet:uk,bsquared:dk,bsquaredTestnet:pk,btr:fk,btrTestnet:hk,bxn:mk,bxnTestnet:bk,cannon:yk,canto:gk,celo:Ik,celoAlfajores:Bk,celoSepolia:Fk,chang:Uk,chiliz:Ok,chips:_k,citreaTestnet:Dk,classic:Mk,coinbit:Nk,coinex:Lk,confluxESpace:zk,confluxESpaceTestnet:Rk,coreDao:Hk,coreTestnet1:$k,coreTestnet2:Gk,corn:jk,cornTestnet:Vk,crab:Wk,creatorTestnet:qk,creditCoin3Devnet:Yk,creditCoin3Mainnet:Kk,creditCoin3Testnet:Zk,cronos:Xk,cronosTestnet:Qk,cronoszkEVM:Jk,cronoszkEVMTestnet:e7,crossbell:t7,crossfi:r7,curtis:n7,cyber:s7,cyberTestnet:a7,dailyNetwork:o7,dailyNetworkTestnet:i7,darwinia:c7,datahavenTestnet:l7,dbkchain:u7,dchain:d7,dchainTestnet:p7,defichainEvm:f7,defichainEvmTestnet:h7,degen:m7,dfk:b7,diode:y7,disChain:g7,dodochainTestnet:x7,dogechain:w7,domaTestnet:v7,donatuz:E7,dosChain:k7,dosChainTestnet:C7,dreyerxMainnet:T7,dreyerxTestnet:S7,dustboyIoT:A7,dymension:P7,edexa:I7,edexaTestnet:B7,edgeless:F7,edgelessTestnet:U7,edgeware:O7,edgewareTestnet:_7,eduChain:D7,eduChainTestnet:M7,ekta:N7,ektaTestnet:L7,elastos:z7,elastosTestnet:R7,electroneum:H7,electroneumTestnet:$7,elysiumTestnet:G7,energy:j7,eni:V7,eniTestnet:W7,enuls:q7,eon:Y7,eos:K7,eosTestnet:Z7,eteria:X7,etherlink:Q7,etherlinkShadownetTestnet:J7,etherlinkTestnet:eC,ethernity:tC,etp:rC,evmos:nC,evmosTestnet:sC,excelonMainnet:aC,expanse:oC,exsat:iC,exsatTestnet:cC,fantom:lC,fantomSonicTestnet:uC,fantomTestnet:dC,fibo:pC,filecoin:fC,filecoinCalibration:hC,filecoinHyperspace:mC,fireChain:V3,flame:bC,flare:yC,flareTestnet:gC,flowMainnet:xC,flowPreviewnet:wC,flowTestnet:vC,fluence:EC,fluenceStage:kC,fluenceTestnet:CC,fluentTestnet:TC,form:SC,formTestnet:PC,forma:AC,formicarium:oA,forta:IC,foundry:BC,fraxtal:FC,fraxtalTestnet:UC,funkiMainnet:OC,funkiSepolia:_C,fuse:DC,fuseSparknet:MC,fusion:NC,fusionTestnet:LC,garnet:zC,gatechain:RC,geist:HC,genesys:$C,giwaSepolia:bb,giwaSepoliaPreconf:GC,glideL1Protocol:jC,glideL2Protocol:VC,gnosis:WC,gnosisChiado:qC,goChain:ZC,goat:YC,gobi:KC,godwoken:XC,goerli:QC,graphite:JC,graphiteTestnet:e9,gravity:t9,gunz:r9,guruNetwork:n9,guruTestnet:s9,ham:a9,happychainTestnet:o9,haqqMainnet:i9,haqqTestedge2:c9,hardhat:l9,harmonyOne:u9,hashkey:d9,hashkeyTestnet:p9,haustTestnet:f9,hedera:h9,hederaPreviewnet:m9,hederaTestnet:b9,hela:y9,heliosTestnet:g9,hemi:x9,hemiSepolia:w9,henesys:v9,holesky:E9,hoodi:k9,hpb:C9,hpp:T9,hppSepolia:S9,huddle01Mainnet:A9,huddle01Testnet:P9,humanity:I9,humanityTestnet:B9,humanode:F9,humanodeTestnet5:U9,hychain:O9,hychainTestnet:_9,hyperEvm:yb,hyperliquid:yb,hyperliquidEvmTestnet:D9,iSunCoin:X9,icbNetwork:M9,idchain:N9,immutableZkEvm:L9,immutableZkEvmTestnet:z9,inEVM:R9,initVerse:H9,initVerseGenesis:$9,injective:G9,injectiveTestnet:j9,ink:V9,inkSepolia:W9,iota:q9,iotaTestnet:Y9,iotex:K9,iotexTestnet:Z9,jasmyChain:Q9,jasmyChainTestnet:J9,jbc:eT,jbcTestnet:tT,jocMainnet:rT,jocTestnet:nT,jovay:sT,jovaySepolia:aT,juneo:oT,juneoBCH1Chain:iT,juneoDAI1Chain:cT,juneoDOGE1Chain:lT,juneoEUR1Chain:uT,juneoGLD1Chain:dT,juneoLINK1Chain:pT,juneoLTC1Chain:fT,juneoSGD1Chain:mT,juneoSocotraTestnet:bT,juneoUSD1Chain:yT,juneoUSDT1Chain:gT,juneomBTC1Chain:hT,kaia:xT,kairos:wT,kakarotSepolia:vT,kakarotStarknetSepolia:ET,kardiaChain:kT,karura:CT,katana:TT,kava:ST,kavaTestnet:AT,kcc:PT,kiiTestnetOro:IT,kinto:BT,klaytn:FT,klaytnBaobab:UT,koi:OT,kroma:_T,kromaSepolia:DT,l3x:MT,l3xTestnet:NT,lavita:LT,lens:zT,lensTestnet:RT,lestnet:HT,lightlinkPegasus:$T,lightlinkPhoenix:GT,linea:TS,lineaGoerli:SS,lineaSepolia:AS,lineaTestnet:PS,lisk:IS,liskSepolia:BS,loadAlphanet:FS,localhost:US,loop:OS,lukso:_S,luksoTestnet:DS,lumiaMainnet:MS,lumiaTestnet:NS,lumoz:LS,lumozTestnet:zS,lycan:RS,lyra:HS,mainnet:$S,mandala:GS,manta:jS,mantaSepoliaTestnet:VS,mantaTestnet:WS,mantle:qS,mantleSepoliaTestnet:YS,mantleTestnet:KS,mantraDuKongEVMTestnet:ZS,mantraEVM:XS,mapProtocol:QS,matchain:JS,matchainTestnet:eA,mchVerse:tA,megaethTestnet:rA,mekong:nA,meld:sA,memecore:aA,merlin:iA,merlinErigonTestnet:cA,metachain:lA,metachainIstanbul:uA,metadium:dA,metalL2:pA,meter:fA,meterTestnet:hA,metis:mA,metisGoerli:bA,metisSepolia:yA,mev:gA,mevTestnet:xA,mint:wA,mintSepoliaTestnet:vA,mitosisTestnet:EA,mode:kA,modeTestnet:CA,monad:TA,monadTestnet:SA,moonbaseAlpha:AA,moonbeam:PA,moonbeamDev:IA,moonriver:BA,morph:FA,morphHolesky:UA,morphSepolia:OA,nahmii:_A,nautilus:DA,near:MA,nearTestnet:NA,neonDevnet:LA,neonMainnet:zA,neoxMainnet:RA,neoxT4:HA,newton:$A,nexi:GA,nexilix:jA,nibiru:VA,nitrographTestnet:WA,nomina:qA,oasisTestnet:YA,oasys:KA,odysseyTestnet:ZA,okc:XA,omax:QA,omni:JA,omniOmega:eP,oneWorld:tP,oortMainnetDev:rP,opBNB:nP,opBNBTestnet:sP,openledger:aP,optimism:oP,optimismGoerli:iP,optimismSepolia:cP,optopia:lP,optopiaTestnet:uP,orderly:dP,orderlySepolia:pP,otimDevnet:fP,palm:hP,palmTestnet:mP,peaq:bP,pgn:yP,pgnTestnet:gP,phoenix:xP,planq:wP,plasma:vP,plasmaDevnet:EP,plasmaTestnet:kP,playfiAlbireo:CP,plinga:TP,plume:SP,plumeDevnet:AP,plumeMainnet:PP,plumeSepolia:IP,plumeTestnet:BP,polterTestnet:FP,polygon:UP,polygonAmoy:OP,polygonMumbai:_P,polygonZkEvm:DP,polygonZkEvmCardona:MP,polygonZkEvmTestnet:NP,polynomial:LP,polynomialSepolia:zP,potos:RP,potosTestnet:HP,premiumBlockTestnet:$P,pulsechain:GP,pulsechainV4:jP,pumpfiTestnet:VP,pyrope:WP,qMainnet:YP,qTestnet:KP,ql1:qP,quai:ZP,quaiTestnet:XP,reactiveTestnet:QP,real:JP,redbellyMainnet:eI,redbellyTestnet:tI,reddio:rI,reddioSepolia:nI,redstone:sI,rei:aI,reyaNetwork:oI,riseTestnet:iI,rivalz:cI,rollux:lI,rolluxTestnet:uI,ronin:dI,root:pI,rootPorcini:fI,rootstock:hI,rootstockTestnet:mI,rss3:bI,rss3Sepolia:yI,saakuru:gI,saga:xI,saigon:wI,sanko:vI,sapphire:EI,sapphireTestnet:kI,satoshiVM:CI,satoshiVMTestnet:TI,scroll:SI,scrollSepolia:AI,sei:PI,seiDevnet:II,seiTestnet:FI,seismicDevnet:BI,sepolia:UI,shape:OI,shapeSepolia:_I,shardeum:DI,shardeumSphinx:MI,shibarium:NI,shibariumTestnet:LI,shiden:zI,shimmer:RI,shimmerTestnet:HI,sidraChain:$I,silentData:GI,silicon:jI,siliconSepolia:VI,sixProtocol:WI,skaleBase:aB,skaleBaseSepoliaTestnet:oB,skaleBlockBrawlers:qI,skaleCalypso:YI,skaleCalypsoTestnet:KI,skaleCryptoBlades:ZI,skaleCryptoColosseum:XI,skaleEuropa:QI,skaleEuropaTestnet:JI,skaleExorde:eB,skaleHumanProtocol:tB,skaleNebula:rB,skaleNebulaTestnet:nB,skaleRazor:sB,skaleTitan:iB,skaleTitanTestnet:cB,sketchpad:lB,snax:uB,snaxTestnet:dB,somnia:pB,somniaTestnet:fB,soneium:hB,soneiumMinato:mB,songbird:bB,songbirdTestnet:yB,sonic:gB,sonicBlazeTestnet:xB,sonicTestnet:wB,sophon:vB,sophonTestnet:EB,sova:kB,sovaSepolia:CB,spicy:TB,stableTestnet:SB,statusNetworkSepolia:ey,statusSepolia:ey,step:AB,story:PB,storyAeneid:IB,storyOdyssey:BB,storyTestnet:FB,stratis:UB,superlumio:OB,superposition:_B,superseed:DB,superseedSepolia:MB,surgeTestnet:NB,swan:LB,swanProximaTestnet:zB,swanSaturnTestnet:RB,swellchain:HB,swellchainTestnet:$B,swissdlt:GB,syscoin:jB,syscoinTestnet:VB,tac:WB,tacSPB:qB,taiko:YB,taikoHekla:KB,taikoHoodi:ZB,taikoJolnir:XB,taikoKatla:QB,taikoTestnetSepolia:JB,taraxa:eF,taraxaTestnet:tF,teaSepolia:rF,telcoinTestnet:nF,telos:sF,telosTestnet:aF,tempoDevnet:q_,tempoLocalnet:Y_,tempoTestnet:K_,tenet:Z_,ternoa:X_,thaiChain:Q_,that:J_,theta:eD,thetaTestnet:tD,thunderCore:rD,thunderTestnet:nD,tiktrixTestnet:sD,tomb:aD,treasure:oD,treasureTopaz:iD,tron:cD,tronNile:lD,tronShasta:uD,ubiq:dD,ultra:pD,ultraTestnet:fD,ultron:hD,ultronTestnet:mD,unichain:bD,unichainSepolia:yD,unique:gD,uniqueOpal:xD,uniqueQuartz:wD,unreal:vD,vana:ED,vanaMoksha:kD,vanar:CD,vechain:TD,velas:SD,viction:AD,victionTestnet:PD,vision:ID,visionTestnet:BD,wanchain:FD,wanchainTestnet:UD,weaveVMAlphanet:OD,wemix:_D,wemixTestnet:DD,westendAssetHub:MD,whitechain:ND,whitechainTestnet:LD,wmcTestnet:zD,worldLand:$D,worldchain:RD,worldchainSepolia:HD,x1Testnet:zg,xLayer:qD,xLayerTestnet:zg,xai:GD,xaiTestnet:jD,xdc:VD,xdcTestnet:WD,xoneMainnet:YD,xoneTestnet:KD,xphereMainnet:ZD,xphereTestnet:XD,xrOne:QD,xrSepolia:rM,xrplevm:JD,xrplevmDevnet:eM,xrplevmTestnet:tM,yooldoVerse:nM,yooldoVerseTestnet:sM,zenchainTestnet:aM,zeniq:oM,zeroG:H3,zeroGGalileoTestnet:$3,zeroGMainnet:G3,zeroGTestnet:j3,zeroNetwork:iM,zetachain:cM,zetachainAthensTestnet:lM,zhejiang:uM,zilliqa:dM,zilliqaTestnet:pM,zircuit:fM,zircuitGarfieldTestnet:hM,zircuitTestnet:mM,zkFair:bM,zkFairTestnet:yM,zkLinkNova:gM,zkLinkNovaSepoliaTestnet:xM,zkSync:Rg,zkSyncInMemoryNode:Hg,zkSyncLocalNode:$g,zkSyncSepoliaTestnet:Gg,zksync:Rg,zksyncInMemoryNode:Hg,zksyncLocalCustomHyperchain:wM,zksyncLocalHyperchain:vM,zksyncLocalHyperchainL1:EM,zksyncLocalNode:$g,zksyncSepoliaTestnet:Gg,zora:kM,zoraSepolia:CM,zoraTestnet:TM},Symbol.toStringTag,{value:"Module"}));class AM extends ${constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}const Vg="/docs/contract/encodeEventTopics";function Ri(e){var c;const{abi:t,eventName:r,args:n}=e;let s=t[0];if(r){const l=$s({abi:t,name:r});if(!l)throw new kb(r,{docsPath:Vg});s=l}if(s.type!=="event")throw new kb(void 0,{docsPath:Vg});const a=Mr(s),o=cl(a);let i=[];if(n&&"inputs"in s){const l=(c=s.inputs)==null?void 0:c.filter(d=>"indexed"in d&&d.indexed),u=Array.isArray(n)?n:Object.values(n).length>0?(l==null?void 0:l.map(d=>n[d.name]))??[]:[];u.length>0&&(i=(l==null?void 0:l.map((d,f)=>Array.isArray(u[f])?u[f].map((h,y)=>Wg({param:d,value:u[f][y]})):typeof u[f]<"u"&&u[f]!==null?Wg({param:d,value:u[f]}):null))??[])}return[o,...i]}function Wg({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return Ut(wn(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new AM(e.type);return os([e],[t])}function Zl(e,{method:t}){var n,s;const r={};return e.transport.type==="fallback"&&((s=(n=e.transport).onResponse)==null||s.call(n,({method:a,response:o,status:i,transport:c})=>{i==="success"&&t===a&&(r[o]=c.request)})),(a=>r[a]||e.request)}async function qg(e,t){const{address:r,abi:n,args:s,eventName:a,fromBlock:o,strict:i,toBlock:c}=t,l=Zl(e,{method:"eth_newFilter"}),u=a?Ri({abi:n,args:s,eventName:a}):void 0,d=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:typeof o=="bigint"?q(o):o,toBlock:typeof c=="bigint"?q(c):c,topics:u}]});return{abi:n,args:s,eventName:a,id:d,request:l(d),strict:!!i,type:"event"}}class PM extends ${constructor(t,{account:r,docsPath:n,chain:s,data:a,gas:o,gasPrice:i,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var y;const h=Mo({from:r==null?void 0:r.address,to:d,value:typeof f<"u"&&`${Ld(f)} ${((y=s==null?void 0:s.nativeCurrency)==null?void 0:y.symbol)||"ETH"}`,data:a,gas:o,gasPrice:typeof i<"u"&&`${Xt(i)} gwei`,maxFeePerGas:typeof c<"u"&&`${Xt(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Xt(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",h].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function IM(e,{docsPath:t,...r}){const n=(()=>{const s=ul(e,r);return s instanceof Lo?e:s})();return new PM(n,{docsPath:t,...r})}class Yg extends ${constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class Pf extends ${constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class BM extends ${constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Xt(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class Kg extends ${constructor({blockHash:t,blockNumber:r}){let n="Block";t&&(n=`Block at hash "${t}"`),r&&(n=`Block at number "${r}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}async function Rr(e,{blockHash:t,blockNumber:r,blockTag:n=e.experimental_blockTag??"latest",includeTransactions:s}={}){var l,u,d;const a=s??!1,o=r!==void 0?q(r):void 0;let i=null;if(t?i=await e.request({method:"eth_getBlockByHash",params:[t,a]},{dedupe:!0}):i=await e.request({method:"eth_getBlockByNumber",params:[o||n,a]},{dedupe:!!o}),!i)throw new Kg({blockHash:t,blockNumber:r});return(((d=(u=(l=e.chain)==null?void 0:l.formatters)==null?void 0:u.block)==null?void 0:d.format)||Ud)(i,"getBlock")}async function If(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function FM(e,t){return Zg(e,t)}async function Zg(e,t){var a,o;const{block:r,chain:n=e.chain,request:s}=t||{};try{const i=((a=n==null?void 0:n.fees)==null?void 0:a.maxPriorityFeePerGas)??((o=n==null?void 0:n.fees)==null?void 0:o.defaultPriorityFee);if(typeof i=="function"){const l=r||await se(e,Rr,"getBlock")({}),u=await i({block:l,client:e,request:s});if(u===null)throw new Error;return u}if(typeof i<"u")return i;const c=await e.request({method:"eth_maxPriorityFeePerGas"});return Le(c)}catch{const[i,c]=await Promise.all([r?Promise.resolve(r):se(e,Rr,"getBlock")({}),se(e,If,"getGasPrice")({})]);if(typeof i.baseFeePerGas!="bigint")throw new Pf;const l=c-i.baseFeePerGas;return l<0n?0n:l}}async function UM(e,t){return Bf(e,t)}async function Bf(e,t){var f,h;const{block:r,chain:n=e.chain,request:s,type:a="eip1559"}=t||{},o=await(async()=>{var y,g;return typeof((y=n==null?void 0:n.fees)==null?void 0:y.baseFeeMultiplier)=="function"?n.fees.baseFeeMultiplier({block:r,client:e,request:s}):((g=n==null?void 0:n.fees)==null?void 0:g.baseFeeMultiplier)??1.2})();if(o<1)throw new Yg;const c=10**(((f=o.toString().split(".")[1])==null?void 0:f.length)??0),l=y=>y*BigInt(Math.ceil(o*c))/BigInt(c),u=r||await se(e,Rr,"getBlock")({});if(typeof((h=n==null?void 0:n.fees)==null?void 0:h.estimateFeesPerGas)=="function"){const y=await n.fees.estimateFeesPerGas({block:r,client:e,multiply:l,request:s,type:a});if(y!==null)return y}if(a==="eip1559"){if(typeof u.baseFeePerGas!="bigint")throw new Pf;const y=typeof(s==null?void 0:s.maxPriorityFeePerGas)=="bigint"?s.maxPriorityFeePerGas:await Zg(e,{block:u,chain:n,request:s}),g=l(u.baseFeePerGas);return{maxFeePerGas:(s==null?void 0:s.maxFeePerGas)??g+y,maxPriorityFeePerGas:y}}return{gasPrice:(s==null?void 0:s.gasPrice)??l(await se(e,If,"getGasPrice")({}))}}async function Ff(e,{address:t,blockTag:r="latest",blockNumber:n}){const s=await e.request({method:"eth_getTransactionCount",params:[t,typeof n=="bigint"?q(n):r]},{dedupe:!!n});return ir(s)}function Xl(e,{docsPath:t,...r}){const n=(()=>{const s=ul(e,r);return s instanceof Lo?e:s})();return new y8(n,{docsPath:t,...r})}async function ls(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return ir(t)}async function Uf(e,t){var m,b,x,A,I;const{account:r=e.account,accessList:n,authorizationList:s,chain:a=e.chain,blobVersionedHashes:o,blobs:i,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:f,maxPriorityFeePerGas:h,nonce:y,nonceManager:g,to:E,type:v,value:w,...T}=t,C=await(async()=>{if(!r||!g||typeof y<"u")return y;const F=Ze(r),D=a?a.id:await se(e,ls,"getChainId")({});return await g.consume({address:F.address,chainId:D,client:e})})();en(t);const _=(b=(m=a==null?void 0:a.formatters)==null?void 0:m.transactionRequest)==null?void 0:b.format,S=(_||Dr)({...Ws(T,{format:_}),account:r?Ze(r):void 0,accessList:n,authorizationList:s,blobs:i,blobVersionedHashes:o,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:f,maxPriorityFeePerGas:h,nonce:C,to:E,type:v,value:w},"fillTransaction");try{const F=await e.request({method:"eth_fillTransaction",params:[S]}),k=(((A=(x=a==null?void 0:a.formatters)==null?void 0:x.transaction)==null?void 0:A.format)||Ns)(F.tx);delete k.blockHash,delete k.blockNumber,delete k.r,delete k.s,delete k.transactionIndex,delete k.v,delete k.yParity,k.data=k.input,k.gas&&(k.gas=t.gas??k.gas),k.gasPrice&&(k.gasPrice=t.gasPrice??k.gasPrice),k.maxFeePerBlobGas&&(k.maxFeePerBlobGas=t.maxFeePerBlobGas??k.maxFeePerBlobGas),k.maxFeePerGas&&(k.maxFeePerGas=t.maxFeePerGas??k.maxFeePerGas),k.maxPriorityFeePerGas&&(k.maxPriorityFeePerGas=t.maxPriorityFeePerGas??k.maxPriorityFeePerGas),k.nonce&&(k.nonce=t.nonce??k.nonce);const P=await(async()=>{var H,G;if(typeof((H=a==null?void 0:a.fees)==null?void 0:H.baseFeeMultiplier)=="function"){const Q=await se(e,Rr,"getBlock")({});return a.fees.baseFeeMultiplier({block:Q,client:e,request:t})}return((G=a==null?void 0:a.fees)==null?void 0:G.baseFeeMultiplier)??1.2})();if(P<1)throw new Yg;const U=10**(((I=P.toString().split(".")[1])==null?void 0:I.length)??0),L=H=>H*BigInt(Math.ceil(P*U))/BigInt(U);return k.maxFeePerGas&&!t.maxFeePerGas&&(k.maxFeePerGas=L(k.maxFeePerGas)),k.gasPrice&&!t.gasPrice&&(k.gasPrice=L(k.gasPrice)),{raw:F.raw,transaction:{from:S.from,...k}}}catch(F){throw Xl(F,{...t,chain:e.chain})}}const Of=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Xg=new Map,_f=new Oa(128);async function Hi(e,t){var C,_,z;let r=t;r.account??(r.account=e.account),r.parameters??(r.parameters=Of);const{account:n,chain:s=e.chain,nonceManager:a,parameters:o}=r,i=(()=>{if(typeof(s==null?void 0:s.prepareTransactionRequest)=="function")return{fn:s.prepareTransactionRequest,runAt:["beforeFillTransaction"]};if(Array.isArray(s==null?void 0:s.prepareTransactionRequest))return{fn:s.prepareTransactionRequest[0],runAt:s.prepareTransactionRequest[1].runAt}})();let c;async function l(){return c||(typeof r.chainId<"u"?r.chainId:s?s.id:(c=await se(e,ls,"getChainId")({}),c))}const u=n&&Ze(n);let d=r.nonce;if(o.includes("nonce")&&typeof d>"u"&&u&&a){const S=await l();d=await a.consume({address:u.address,chainId:S,client:e})}i!=null&&i.fn&&((C=i.runAt)!=null&&C.includes("beforeFillTransaction"))&&(r=await i.fn({...r,chain:s},{phase:"beforeFillTransaction"}),d??(d=r.nonce));const h=((o.includes("blobVersionedHashes")||o.includes("sidecars"))&&r.kzg&&r.blobs||_f.get(e.uid)===!1||!["fees","gas"].some(m=>o.includes(m))?!1:!!(o.includes("chainId")&&typeof r.chainId!="number"||o.includes("nonce")&&typeof d!="number"||o.includes("fees")&&typeof r.gasPrice!="bigint"&&(typeof r.maxFeePerGas!="bigint"||typeof r.maxPriorityFeePerGas!="bigint")||o.includes("gas")&&typeof r.gas!="bigint"))?await se(e,Uf,"fillTransaction")({...r,nonce:d}).then(S=>{const{chainId:m,from:b,gas:x,gasPrice:A,nonce:I,maxFeePerBlobGas:F,maxFeePerGas:D,maxPriorityFeePerGas:k,type:P,...O}=S.transaction;return _f.set(e.uid,!0),{...r,...b?{from:b}:{},...P?{type:P}:{},...typeof m<"u"?{chainId:m}:{},...typeof x<"u"?{gas:x}:{},...typeof A<"u"?{gasPrice:A}:{},...typeof I<"u"?{nonce:I}:{},...typeof F<"u"?{maxFeePerBlobGas:F}:{},...typeof D<"u"?{maxFeePerGas:D}:{},...typeof k<"u"?{maxPriorityFeePerGas:k}:{},..."nonceKey"in O&&typeof O.nonceKey<"u"?{nonceKey:O.nonceKey}:{}}}).catch(S=>{var x;const m=S;return m.name!=="TransactionExecutionError"||((x=m.walk)==null?void 0:x.call(m,A=>{const I=A;return I.name==="MethodNotFoundRpcError"||I.name==="MethodNotSupportedRpcError"}))&&_f.set(e.uid,!1),r}):r;d??(d=h.nonce),r={...h,...u?{from:u==null?void 0:u.address}:{},...d?{nonce:d}:{}};const{blobs:y,gas:g,kzg:E,type:v}=r;i!=null&&i.fn&&((_=i.runAt)!=null&&_.includes("beforeFillParameters"))&&(r=await i.fn({...r,chain:s},{phase:"beforeFillParameters"}));let w;async function T(){return w||(w=await se(e,Rr,"getBlock")({blockTag:"latest"}),w)}if(o.includes("nonce")&&typeof d>"u"&&u&&!a&&(r.nonce=await se(e,Ff,"getTransactionCount")({address:u.address,blockTag:"pending"})),(o.includes("blobVersionedHashes")||o.includes("sidecars"))&&y&&E){const S=zd({blobs:y,kzg:E});if(o.includes("blobVersionedHashes")){const m=G1({commitments:S,to:"hex"});r.blobVersionedHashes=m}if(o.includes("sidecars")){const m=Rd({blobs:y,commitments:S,kzg:E}),b=Z1({blobs:y,commitments:S,proofs:m,to:"hex"});r.sidecars=b}}if(o.includes("chainId")&&(r.chainId=await l()),(o.includes("fees")||o.includes("type"))&&typeof v>"u")try{r.type=op(r)}catch{let S=Xg.get(e.uid);if(typeof S>"u"){const m=await T();S=typeof(m==null?void 0:m.baseFeePerGas)=="bigint",Xg.set(e.uid,S)}r.type=S?"eip1559":"legacy"}if(o.includes("fees"))if(r.type!=="legacy"&&r.type!=="eip2930"){if(typeof r.maxFeePerGas>"u"||typeof r.maxPriorityFeePerGas>"u"){const S=await T(),{maxFeePerGas:m,maxPriorityFeePerGas:b}=await Bf(e,{block:S,chain:s,request:r});if(typeof r.maxPriorityFeePerGas>"u"&&r.maxFeePerGas&&r.maxFeePerGas<b)throw new BM({maxPriorityFeePerGas:b});r.maxPriorityFeePerGas=b,r.maxFeePerGas=m}}else{if(typeof r.maxFeePerGas<"u"||typeof r.maxPriorityFeePerGas<"u")throw new Pf;if(typeof r.gasPrice>"u"){const S=await T(),{gasPrice:m}=await Bf(e,{block:S,chain:s,request:r,type:"legacy"});r.gasPrice=m}}return o.includes("gas")&&typeof g>"u"&&(r.gas=await se(e,Df,"estimateGas")({...r,account:u,prepare:(u==null?void 0:u.type)==="local"?[]:["blobVersionedHashes"]})),i!=null&&i.fn&&((z=i.runAt)!=null&&z.includes("afterFillParameters"))&&(r=await i.fn({...r,chain:s},{phase:"afterFillParameters"})),en(r),delete r.parameters,r}async function Df(e,t){var o,i,c;const{account:r=e.account,prepare:n=!0}=t,s=r?Ze(r):void 0,a=(()=>{if(Array.isArray(n))return n;if((s==null?void 0:s.type)!=="local")return["blobVersionedHashes"]})();try{const l=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await Vl({authorization:t.authorizationList[0]}).catch(()=>{throw new $("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:u,authorizationList:d,blobs:f,blobVersionedHashes:h,blockNumber:y,blockTag:g,data:E,gas:v,gasPrice:w,maxFeePerBlobGas:T,maxFeePerGas:C,maxPriorityFeePerGas:_,nonce:z,value:S,stateOverride:m,...b}=n?await Hi(e,{...t,parameters:a,to:l}):t;if(v&&t.gas!==v)return v;const A=(typeof y=="bigint"?q(y):void 0)||g,I=wf(m);en(t);const F=(c=(i=(o=e.chain)==null?void 0:o.formatters)==null?void 0:i.transactionRequest)==null?void 0:c.format,k=(F||Dr)({...Ws(b,{format:F}),account:s,accessList:u,authorizationList:d,blobs:f,blobVersionedHashes:h,data:E,gasPrice:w,maxFeePerBlobGas:T,maxFeePerGas:C,maxPriorityFeePerGas:_,nonce:z,to:l,value:S},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:I?[k,A??e.experimental_blockTag??"latest",I]:A?[k,A]:[k]}))}catch(l){throw IM(l,{...t,account:s,chain:e.chain})}}async function OM(e,t){const{abi:r,address:n,args:s,functionName:a,dataSuffix:o,...i}=t,c=fr({abi:r,args:s,functionName:a});try{return await se(e,Df,"estimateGas")({data:`${c}${o?o.replace("0x",""):""}`,to:n,...i})}catch(l){const u=i.account?Ze(i.account):void 0;throw Js(l,{abi:r,address:n,args:s,docsPath:"/docs/contract/estimateContractGas",functionName:a,sender:u==null?void 0:u.address})}}const Qg="/docs/contract/decodeEventLog";function Ql(e){const{abi:t,data:r,strict:n,topics:s}=e,a=n??!0,[o,...i]=s;if(!o)throw new QT({docsPath:Qg});const c=t.find(g=>g.type==="event"&&o===cl(Mr(g)));if(!(c&&"name"in c)||c.type!=="event")throw new JT(o,{docsPath:Qg});const{name:l,inputs:u}=c,d=u==null?void 0:u.some(g=>!("name"in g&&g.name)),f=d?[]:{},h=u.map((g,E)=>[g,E]).filter(([g])=>"indexed"in g&&g.indexed);for(let g=0;g<h.length;g++){const[E,v]=h[g],w=i[g];if(!w)throw new pp({abiItem:c,param:E});f[d?v:E.name||v]=_M({param:E,value:w})}const y=u.filter(g=>!("indexed"in g&&g.indexed));if(y.length>0){if(r&&r!=="0x")try{const g=Yo(y,r);if(g)if(d)for(let E=0;E<u.length;E++)f[E]=f[E]??g.shift();else for(let E=0;E<y.length;E++)f[y[E].name]=g[E]}catch(g){if(a)throw g instanceof wb||g instanceof T1?new al({abiItem:c,data:r,params:y,size:ut(r)}):g}else if(a)throw new al({abiItem:c,data:"0x",params:y,size:0})}return{eventName:l,args:Object.values(f).length>0?f:void 0}}function _M({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(Yo([e],t)||[])[0]}function Mf(e){const{abi:t,args:r,logs:n,strict:s=!0}=e,a=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return n.map(o=>{var u;const i=t.filter(d=>d.type==="event"&&o.topics[0]===cl(d));if(i.length===0)return null;let c,l;for(const d of i)try{c=Ql({...o,abi:[d],strict:!0}),l=d;break}catch{}if(!c&&!s){l=i[0];try{c=Ql({...o,abi:[l],strict:!1})}catch{const d=(u=l.inputs)==null?void 0:u.some(f=>!("name"in f&&f.name));return{...o,args:d?[]:{},eventName:l.name}}}return!c||!l||a&&!a.includes(c.eventName)||!DM({args:c.args,inputs:l.inputs,matchArgs:r})?null:{...c,...o}}).filter(Boolean)}function DM(e){const{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;if(!t)return!1;function s(a,o,i){try{return a.type==="address"?Qa(o,i):a.type==="string"||a.type==="bytes"?Ut(wn(o))===i:o===i}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((a,o)=>{if(a==null)return!0;const i=r[o];return i?(Array.isArray(a)?a:[a]).some(l=>s(i,l,t[o])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof n=="object"&&!Array.isArray(n)?Object.entries(n).every(([a,o])=>{if(o==null)return!0;const i=r.find(l=>l.name===a);return i?(Array.isArray(o)?o:[o]).some(l=>s(i,l,t[a])):!1}):!1}async function Nf(e,{address:t,blockHash:r,fromBlock:n,toBlock:s,event:a,events:o,args:i,strict:c}={}){const l=c??!1,u=o??(a?[a]:void 0);let d=[];u&&(d=[u.flatMap(g=>Ri({abi:[g],eventName:g.name,args:o?void 0:i}))],a&&(d=d[0]));let f;r?f=await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:r}]}):f=await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:typeof n=="bigint"?q(n):n,toBlock:typeof s=="bigint"?q(s):s}]});const h=f.map(y=>Xr(y));return u?Mf({abi:u,args:i,logs:h,strict:l}):h}async function Jg(e,t){const{abi:r,address:n,args:s,blockHash:a,eventName:o,fromBlock:i,toBlock:c,strict:l}=t,u=o?$s({abi:r,name:o}):void 0,d=u?void 0:r.filter(f=>f.type==="event");return se(e,Nf,"getLogs")({address:n,args:s,blockHash:a,event:u,events:d,fromBlock:i,toBlock:c,strict:l})}async function MM(e,t){const{abi:r,address:n,args:s,dataSuffix:a,functionName:o,...i}=t,c=i.account?Ze(i.account):e.account,l=fr({abi:r,args:s,functionName:o});try{const{data:u}=await se(e,Di,"call")({batch:!1,data:`${l}${a?a.replace("0x",""):""}`,to:n,...i,account:c}),d=Qs({abi:r,args:s,functionName:o,data:u||"0x"}),f=r.filter(h=>"name"in h&&h.name===t.functionName);return{result:d,request:{abi:f,address:n,args:s,dataSuffix:a,functionName:o,...i,account:c}}}catch(u){throw Js(u,{abi:r,address:n,args:s,docsPath:"/docs/contract/simulateContract",functionName:o,sender:c==null?void 0:c.address})}}const Lf=new Map,e6=new Map;let NM=0;function Un(e,t,r){const n=++NM,s=()=>Lf.get(e)||[],a=()=>{const u=s();Lf.set(e,u.filter(d=>d.id!==n))},o=()=>{const u=s();if(!u.some(f=>f.id===n))return;const d=e6.get(e);if(u.length===1&&d){const f=d();f instanceof Promise&&f.catch(()=>{})}a()},i=s();if(Lf.set(e,[...i,{id:n,fns:t}]),i&&i.length>0)return o;const c={};for(const u in t)c[u]=((...d)=>{var h,y;const f=s();if(f.length!==0)for(const g of f)(y=(h=g.fns)[u])==null||y.call(h,...d)});const l=r(c);return typeof l=="function"&&e6.set(e,l),o}async function zf(e){return new Promise(t=>setTimeout(t,e))}function Ja(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let s=!0;const a=()=>s=!1;return(async()=>{let i;t&&(i=await e({unpoll:a}));const c=await(r==null?void 0:r(i))??n;await zf(c);const l=async()=>{s&&(await e({unpoll:a}),await zf(n),l())};l()})(),a}const LM=new Map,zM=new Map;function RM(e){const t=(s,a)=>({clear:()=>a.delete(s),get:()=>a.get(s),set:o=>a.set(s,o)}),r=t(e,LM),n=t(e,zM);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}async function HM(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){const n=RM(t),s=n.response.get();if(s&&r>0&&Date.now()-s.created.getTime()<r)return s.data;let a=n.promise.get();a||(a=e(),n.promise.set(a));try{const o=await a;return n.response.set({created:new Date,data:o}),o}finally{n.promise.clear()}}const $M=e=>`blockNumber.${e}`;async function $i(e,{cacheTime:t=e.cacheTime}={}){const r=await HM(()=>e.request({method:"eth_blockNumber"}),{cacheKey:$M(e.uid),cacheTime:t});return BigInt(r)}async function Jl(e,{filter:t}){const r="strict"in t&&t.strict,n=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof n[0]=="string")return n;const s=n.map(a=>Xr(a));return!("abi"in t)||!t.abi?s:Mf({abi:t.abi,logs:s,strict:r})}async function eu(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}function GM(e,t){const{abi:r,address:n,args:s,batch:a=!0,eventName:o,fromBlock:i,onError:c,onLogs:l,poll:u,pollingInterval:d=e.pollingInterval,strict:f}=t;return(typeof u<"u"?u:typeof i=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")))?(()=>{const E=f??!1,v=mt(["watchContractEvent",n,s,a,e.uid,o,d,E,i]);return Un(v,{onLogs:l,onError:c},w=>{let T;i!==void 0&&(T=i-1n);let C,_=!1;const z=Ja(async()=>{var S;if(!_){try{C=await se(e,qg,"createContractEventFilter")({abi:r,address:n,args:s,eventName:o,strict:E,fromBlock:i})}catch{}_=!0;return}try{let m;if(C)m=await se(e,Jl,"getFilterChanges")({filter:C});else{const b=await se(e,$i,"getBlockNumber")({});T&&T<b?m=await se(e,Jg,"getContractEvents")({abi:r,address:n,args:s,eventName:o,fromBlock:T+1n,toBlock:b,strict:E}):m=[],T=b}if(m.length===0)return;if(a)w.onLogs(m);else for(const b of m)w.onLogs([b])}catch(m){C&&m instanceof is&&(_=!1),(S=w.onError)==null||S.call(w,m)}},{emitOnBegin:!0,interval:d});return async()=>{C&&await se(e,eu,"uninstallFilter")({filter:C}),z()}})})():(()=>{const E=f??!1,v=mt(["watchContractEvent",n,s,a,e.uid,o,d,E]);let w=!0,T=()=>w=!1;return Un(v,{onLogs:l,onError:c},C=>((async()=>{try{const _=(()=>{if(e.transport.type==="fallback"){const m=e.transport.transports.find(b=>b.config.type==="webSocket"||b.config.type==="ipc");return m?m.value:e.transport}return e.transport})(),z=o?Ri({abi:r,eventName:o,args:s}):[],{unsubscribe:S}=await _.subscribe({params:["logs",{address:n,topics:z}],onData(m){var x;if(!w)return;const b=m.result;try{const{eventName:A,args:I}=Ql({abi:r,data:b.data,topics:b.topics,strict:f}),F=Xr(b,{args:I,eventName:A});C.onLogs([F])}catch(A){let I,F;if(A instanceof al||A instanceof pp){if(f)return;I=A.abiItem.name,F=(x=A.abiItem.inputs)==null?void 0:x.some(k=>!("name"in k&&k.name))}const D=Xr(b,{args:F?[]:{},eventName:I});C.onLogs([D])}},onError(m){var b;(b=C.onError)==null||b.call(C,m)}});T=S,w||T()}catch(_){c==null||c(_)}})(),()=>T()))})()}async function Rf(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const Hf=new Oa(128);async function tu(e,t){var w,T,C,_;const{account:r=e.account,chain:n=e.chain,accessList:s,authorizationList:a,blobs:o,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,type:y,value:g,...E}=t;if(typeof r>"u")throw new kn({docsPath:"/docs/actions/wallet/sendTransaction"});const v=r?Ze(r):null;try{en(t);const z=await(async()=>{if(t.to)return t.to;if(t.to!==null&&a&&a.length>0)return await Vl({authorization:a[0]}).catch(()=>{throw new $("`to` is required. Could not infer from `authorizationList`.")})})();if((v==null?void 0:v.type)==="json-rpc"||v===null){let S;n!==null&&(S=await se(e,ls,"getChainId")({}),dp({currentChainId:S,chain:n}));const m=(C=(T=(w=e.chain)==null?void 0:w.formatters)==null?void 0:T.transactionRequest)==null?void 0:C.format,x=(m||Dr)({...Ws(E,{format:m}),accessList:s,account:v,authorizationList:a,blobs:o,chainId:S,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,to:z,type:y,value:g},"sendTransaction"),A=Hf.get(e.uid),I=A?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:I,params:[x]},{retryCount:0})}catch(F){if(A===!1)throw F;const D=F;if(D.name==="InvalidInputRpcError"||D.name==="InvalidParamsRpcError"||D.name==="MethodNotFoundRpcError"||D.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[x]},{retryCount:0}).then(k=>(Hf.set(e.uid,!0),k)).catch(k=>{const P=k;throw P.name==="MethodNotFoundRpcError"||P.name==="MethodNotSupportedRpcError"?(Hf.set(e.uid,!1),D):P});throw D}}if((v==null?void 0:v.type)==="local"){const S=await se(e,Hi,"prepareTransactionRequest")({account:v,accessList:s,authorizationList:a,blobs:o,chain:n,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,nonceManager:v.nonceManager,parameters:[...Of,"sidecars"],type:y,value:g,...E,to:z}),m=(_=n==null?void 0:n.serializers)==null?void 0:_.transaction,b=await v.signTransaction(S,{serializer:m});return await se(e,Rf,"sendRawTransaction")({serializedTransaction:b})}throw(v==null?void 0:v.type)==="smart"?new Hs({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new Hs({docsPath:"/docs/actions/wallet/sendTransaction",type:v==null?void 0:v.type})}catch(z){throw z instanceof Hs?z:Xl(z,{...t,account:v,chain:t.chain||void 0})}}async function Gi(e,t){return Gi.internal(e,tu,"sendTransaction",t)}(function(e){async function t(r,n,s,a){const{abi:o,account:i=r.account,address:c,args:l,dataSuffix:u,functionName:d,...f}=a;if(typeof i>"u")throw new kn({docsPath:"/docs/contract/writeContract"});const h=i?Ze(i):null,y=fr({abi:o,args:l,functionName:d});try{return await se(r,n,s)({data:`${y}${u?u.replace("0x",""):""}`,to:c,account:h,...f})}catch(g){throw Js(g,{abi:o,address:c,args:l,docsPath:"/docs/contract/writeContract",functionName:d,sender:h==null?void 0:h.address})}}e.internal=t})(Gi||(Gi={}));class jM extends ${constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}function ru(e,{delay:t=100,retryCount:r=2,shouldRetry:n=()=>!0}={}){return new Promise((s,a)=>{const o=async({count:i=0}={})=>{const c=async({error:l})=>{const u=typeof t=="function"?t({count:i,error:l}):t;u&&await zf(u),o({count:i+1})};try{const l=await e();s(l)}catch(l){if(i<r&&await n({count:i,error:l}))return c({error:l});a(l)}};o()})}const t6="0x5792579257925792579257925792579257925792579257925792579257925792",r6=q(0,{size:32});async function n6(e,t){const{account:r=e.account,capabilities:n,chain:s=e.chain,experimental_fallback:a,experimental_fallbackDelay:o=32,forceAtomic:i=!1,id:c,version:l="2.0.0"}=t,u=r?Ze(r):null,d=t.calls.map(f=>{const h=f,y=h.abi?fr({abi:h.abi,functionName:h.functionName,args:h.args}):h.data;return{data:h.dataSuffix&&y?cr([y,h.dataSuffix]):y,to:h.to,value:h.value?q(h.value):void 0}});try{const f=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:i,calls:d,capabilities:n,chainId:q(s.id),from:u==null?void 0:u.address,id:c,version:l}]},{retryCount:0});return typeof f=="string"?{id:f}:f}catch(f){const h=f;if(a&&(h.name==="MethodNotFoundRpcError"||h.name==="MethodNotSupportedRpcError"||h.name==="UnknownRpcError"||h.details.toLowerCase().includes("does not exist / is not available")||h.details.toLowerCase().includes("missing or invalid. request()")||h.details.toLowerCase().includes("did not match any variant of untagged enum")||h.details.toLowerCase().includes("account upgraded to unsupported contract")||h.details.toLowerCase().includes("eip-7702 not supported")||h.details.toLowerCase().includes("unsupported wc_ method")||h.details.toLowerCase().includes("feature toggled misconfigured")||h.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(n&&Object.values(n).some(w=>!w.optional)){const w="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new ja(new $(w,{details:w}))}if(i&&d.length>1){const v="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new Va(new $(v,{details:v}))}const y=[];for(const v of d){const w=tu(e,{account:u,chain:s,data:v.data,to:v.to,value:v.value?Le(v.value):void 0});y.push(w),o>0&&await new Promise(T=>setTimeout(T,o))}const g=await Promise.allSettled(y);if(g.every(v=>v.status==="rejected"))throw g[0].reason;const E=g.map(v=>v.status==="fulfilled"?v.value:r6);return{id:cr([...E,q(s.id,{size:32}),t6])}}throw Xl(f,{...t,account:u,chain:t.chain})}}async function s6(e,t){async function r(u){if(u.endsWith(t6.slice(2))){const f=Zt(sp(u,-64,-32)),h=sp(u,0,-64).slice(2).match(/.{1,64}/g),y=await Promise.all(h.map(E=>r6.slice(2)!==E?e.request({method:"eth_getTransactionReceipt",params:[`0x${E}`]},{dedupe:!0}):void 0)),g=y.some(E=>E===null)?100:y.every(E=>(E==null?void 0:E.status)==="0x1")?200:y.every(E=>(E==null?void 0:E.status)==="0x0")?500:600;return{atomic:!1,chainId:ir(f),receipts:y.filter(Boolean),status:g,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[u]})}const{atomic:n=!1,chainId:s,receipts:a,version:o="2.0.0",...i}=await r(t.id),[c,l]=(()=>{const u=i.status;return u>=100&&u<200?["pending",u]:u>=200&&u<300?["success",u]:u>=300&&u<700?["failure",u]:u==="CONFIRMED"?["success",200]:u==="PENDING"?["pending",100]:[void 0,u]})();return{...i,atomic:n,chainId:s?ir(s):void 0,receipts:(a==null?void 0:a.map(u=>({...u,blockNumber:Le(u.blockNumber),gasUsed:Le(u.gasUsed),status:v1[u.status]})))??[],statusCode:l,status:c,version:o}}async function a6(e,t){const{id:r,pollingInterval:n=e.pollingInterval,status:s=({statusCode:g})=>g===200||g>=300,retryCount:a=4,retryDelay:o=({count:g})=>~~(1<<g)*200,timeout:i=6e4,throwOnFailure:c=!1}=t,l=mt(["waitForCallsStatus",e.uid,r]),{promise:u,resolve:d,reject:f}=gf();let h;const y=Un(l,{resolve:d,reject:f},g=>{const E=Ja(async()=>{const v=w=>{clearTimeout(h),E(),w(),y()};try{const w=await ru(async()=>{const T=await se(e,s6,"getCallsStatus")({id:r});if(c&&T.status==="failure")throw new jM(T);return T},{retryCount:a,delay:o});if(!s(w))return;v(()=>g.resolve(w))}catch(w){v(()=>g.reject(w))}},{interval:n,emitOnBegin:!0});return E});return h=i?setTimeout(()=>{y(),clearTimeout(h),f(new VM({id:r}))},i):void 0,await u}class VM extends ${constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}const $f=256;let nu=$f,su;function o6(e=11){if(!su||nu+e>$f*2){su="",nu=0;for(let t=0;t<$f;t++)su+=(256+Math.random()*256|0).toString(16).substring(1)}return su.substring(nu,nu+++e)}function i6(e){const{batch:t,chain:r,ccipRead:n,key:s="base",name:a="Base Client",type:o="base"}=e,i=e.experimental_blockTag??(typeof(r==null?void 0:r.experimental_preconfirmationTime)=="number"?"pending":void 0),c=(r==null?void 0:r.blockTime)??12e3,l=Math.min(Math.max(Math.floor(c/2),500),4e3),u=e.pollingInterval??l,d=e.cacheTime??u,f=e.account?Ze(e.account):void 0,{config:h,request:y,value:g}=e.transport({account:f,chain:r,pollingInterval:u}),E={...h,...g},v={account:f,batch:t,cacheTime:d,ccipRead:n,chain:r,key:s,name:a,pollingInterval:u,request:y,transport:E,type:o,uid:o6(),...i?{experimental_blockTag:i}:{}};function w(T){return C=>{const _=C(T);for(const S in v)delete _[S];const z={...T,..._};return Object.assign(z,{extend:w(z)})}}return Object.assign(v,{extend:w(v)})}function Gf(e){var r,n,s,a,o,i;if(!(e instanceof $))return!1;const t=e.walk(c=>c instanceof kp);return t instanceof kp?((r=t.data)==null?void 0:r.errorName)==="HttpError"||((n=t.data)==null?void 0:n.errorName)==="ResolverError"||((s=t.data)==null?void 0:s.errorName)==="ResolverNotContract"||((a=t.data)==null?void 0:a.errorName)==="ResolverNotFound"||((o=t.data)==null?void 0:o.errorName)==="ReverseAddressMismatch"||((i=t.data)==null?void 0:i.errorName)==="UnsupportedResolverProfile":!1}function WM(e){const{abi:t,data:r}=e,n=Rs(r,0,4),s=t.find(a=>a.type==="function"&&n===qo(Mr(a)));if(!s)throw new e4(n,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:s.name,args:"inputs"in s&&s.inputs&&s.inputs.length>0?Yo(s.inputs,Rs(r,4)):void 0}}const jf="/docs/contract/encodeErrorResult";function c6(e){const{abi:t,errorName:r,args:n}=e;let s=t[0];if(r){const c=$s({abi:t,args:n,name:r});if(!c)throw new vb(r,{docsPath:jf});s=c}if(s.type!=="error")throw new vb(void 0,{docsPath:jf});const a=Mr(s),o=qo(a);let i="0x";if(n&&n.length>0){if(!s.inputs)throw new XT(s.name,{docsPath:jf});i=os(s.inputs,n)}return lr([o,i])}const Vf="/docs/contract/encodeFunctionResult";function qM(e){const{abi:t,functionName:r,result:n}=e;let s=t[0];if(r){const o=$s({abi:t,name:r});if(!o)throw new La(r,{docsPath:Vf});s=o}if(s.type!=="function")throw new La(void 0,{docsPath:Vf});if(!s.outputs)throw new Cb(s.name,{docsPath:Vf});const a=(()=>{if(s.outputs.length===0)return[];if(s.outputs.length===1)return[n];if(Array.isArray(n))return n;throw new Tb(n)})();return os(s.outputs,a)}const ji="x-batch-gateway:true";async function l6(e){const{data:t,ccipRequest:r}=e,{args:[n]}=WM({abi:hf,data:t}),s=[],a=[];return await Promise.all(n.map(async(o,i)=>{try{a[i]=o.urls.includes(ji)?await l6({data:o.data,ccipRequest:r}):await r(o),s[i]=!1}catch(c){s[i]=!0,a[i]=YM(c)}})),qM({abi:hf,functionName:"query",result:[s,a]})}function YM(e){return e.name==="HttpRequestError"&&e.status?c6({abi:hf,errorName:"HttpError",args:[e.status,e.shortMessage]}):c6({abi:[gb],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}function u6(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return Or(t)?t:null}function Wf(e){let t=new Uint8Array(32).fill(0);if(!e)return vt(t);const r=e.split(".");for(let n=r.length-1;n>=0;n-=1){const s=u6(r[n]),a=s?wn(s):Ut(Ms(r[n]),"bytes");t=Ut(cr([t,a]),"bytes")}return vt(t)}function KM(e){return`[${e.slice(2)}]`}function ZM(e){const t=new Uint8Array(32).fill(0);return e?u6(e)||Ut(Ms(e)):vt(t)}function qf(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const r=new Uint8Array(Ms(t).byteLength+2);let n=0;const s=t.split(".");for(let a=0;a<s.length;a++){let o=Ms(s[a]);o.byteLength>255&&(o=Ms(KM(ZM(s[a])))),r[n]=o.length,r.set(o,n+1),n+=o.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}async function XM(e,t){const{blockNumber:r,blockTag:n,coinType:s,name:a,gatewayUrls:o,strict:i}=t,{chain:c}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Da({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})(),u=c==null?void 0:c.ensTlds;if(u&&!u.some(f=>a.endsWith(f)))return null;const d=s!=null?[Wf(a),BigInt(s)]:[Wf(a)];try{const f=fr({abi:yg,functionName:"addr",args:d}),h={address:l,abi:mg,functionName:"resolveWithGateways",args:[Fe(qf(a)),f,o??[ji]],blockNumber:r,blockTag:n},g=await se(e,zr,"readContract")(h);if(g[0]==="0x")return null;const E=Qs({abi:yg,args:d,functionName:"addr",data:g[0]});return E==="0x"||Zt(E)==="0x00"?null:E}catch(f){if(i)throw f;if(Gf(f))return null;throw f}}class QM extends ${constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class Vi extends ${constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class Yf extends ${constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class JM extends ${constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const eN=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,tN=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,rN=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,nN=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function sN(e){try{const t=await fetch(e,{method:"HEAD"});if(t.status===200){const r=t.headers.get("content-type");return r==null?void 0:r.startsWith("image/")}return!1}catch(t){return typeof t=="object"&&typeof t.response<"u"||!Object.hasOwn(globalThis,"Image")?!1:new Promise(r=>{const n=new Image;n.onload=()=>{r(!0)},n.onerror=()=>{r(!1)},n.src=e})}}function d6(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function p6({uri:e,gatewayUrls:t}){const r=rN.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};const n=d6(t==null?void 0:t.ipfs,"https://ipfs.io"),s=d6(t==null?void 0:t.arweave,"https://arweave.net"),a=e.match(eN),{protocol:o,subpath:i,target:c,subtarget:l=""}=(a==null?void 0:a.groups)||{},u=o==="ipns:/"||i==="ipns/",d=o==="ipfs:/"||i==="ipfs/"||tN.test(e);if(e.startsWith("http")&&!u&&!d){let h=e;return t!=null&&t.arweave&&(h=e.replace(/https:\/\/arweave.net/g,t==null?void 0:t.arweave)),{uri:h,isOnChain:!1,isEncoded:!1}}if((u||d)&&c)return{uri:`${n}/${u?"ipns":"ipfs"}/${c}${l}`,isOnChain:!1,isEncoded:!1};if(o==="ar:/"&&c)return{uri:`${s}/${c}${l||""}`,isOnChain:!1,isEncoded:!1};let f=e.replace(nN,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new Yf({uri:e})}function f6(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new QM({data:e});return e.image||e.image_url||e.image_data}async function aN({gatewayUrls:e,uri:t}){try{const r=await fetch(t).then(s=>s.json());return await Kf({gatewayUrls:e,uri:f6(r)})}catch{throw new Yf({uri:t})}}async function Kf({gatewayUrls:e,uri:t}){const{uri:r,isOnChain:n}=p6({uri:t,gatewayUrls:e});if(n||await sN(r))return r;throw new Yf({uri:t})}function oN(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[r,n,s]=t.split("/"),[a,o]=r.split(":"),[i,c]=n.split(":");if(!a||a.toLowerCase()!=="eip155")throw new Vi({reason:"Only EIP-155 supported"});if(!o)throw new Vi({reason:"Chain ID not found"});if(!c)throw new Vi({reason:"Contract address not found"});if(!s)throw new Vi({reason:"Token ID not found"});if(!i)throw new Vi({reason:"ERC namespace not found"});return{chainID:Number.parseInt(o,10),namespace:i.toLowerCase(),contractAddress:c,tokenID:s}}async function iN(e,{nft:t}){if(t.namespace==="erc721")return zr(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if(t.namespace==="erc1155")return zr(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new JM({namespace:t.namespace})}async function cN(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?lN(e,{gatewayUrls:t,record:r}):Kf({uri:r,gatewayUrls:t})}async function lN(e,{gatewayUrls:t,record:r}){const n=oN(r),s=await iN(e,{nft:n}),{uri:a,isOnChain:o,isEncoded:i}=p6({uri:s,gatewayUrls:t});if(o&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const l=i?atob(a.replace("data:application/json;base64,","")):a,u=JSON.parse(l);return Kf({uri:f6(u),gatewayUrls:t})}let c=n.tokenID;return n.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),aN({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,c)})}async function h6(e,t){const{blockNumber:r,blockTag:n,key:s,name:a,gatewayUrls:o,strict:i}=t,{chain:c}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Da({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})(),u=c==null?void 0:c.ensTlds;if(u&&!u.some(d=>a.endsWith(d)))return null;try{const d={address:l,abi:mg,args:[Fe(qf(a)),fr({abi:bg,functionName:"text",args:[Wf(a),s]}),o??[ji]],functionName:"resolveWithGateways",blockNumber:r,blockTag:n},h=await se(e,zr,"readContract")(d);if(h[0]==="0x")return null;const y=Qs({abi:bg,functionName:"text",data:h[0]});return y===""?null:y}catch(d){if(i)throw d;if(Gf(d))return null;throw d}}async function uN(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:s,gatewayUrls:a,strict:o,universalResolverAddress:i}){const c=await se(e,h6,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:s,universalResolverAddress:i,gatewayUrls:a,strict:o});if(!c)return null;try{return await cN(e,{record:c,gatewayUrls:n})}catch{return null}}async function dN(e,t){const{address:r,blockNumber:n,blockTag:s,coinType:a=60n,gatewayUrls:o,strict:i}=t,{chain:c}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Da({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})();try{const u={address:l,abi:MO,args:[r,a,o??[ji]],functionName:"reverseWithGateways",blockNumber:n,blockTag:s},d=se(e,zr,"readContract"),[f]=await d(u);return f||null}catch(u){if(i)throw u;if(Gf(u))return null;throw u}}async function pN(e,t){const{blockNumber:r,blockTag:n,name:s}=t,{chain:a}=e,o=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!a)throw new Error("client chain not configured. universalResolverAddress is required.");return Da({blockNumber:r,chain:a,contract:"ensUniversalResolver"})})(),i=a==null?void 0:a.ensTlds;if(i&&!i.some(l=>s.endsWith(l)))throw new Error(`${s} is not a valid ENS TLD (${i==null?void 0:i.join(", ")}) for chain "${a.name}" (id: ${a.id}).`);const[c]=await se(e,zr,"readContract")({address:o,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[Fe(qf(s))],blockNumber:r,blockTag:n});return c}async function m6(e,t){var E,v,w;const{account:r=e.account,blockNumber:n,blockTag:s="latest",blobs:a,data:o,gas:i,gasPrice:c,maxFeePerBlobGas:l,maxFeePerGas:u,maxPriorityFeePerGas:d,to:f,value:h,...y}=t,g=r?Ze(r):void 0;try{en(t);const C=(typeof n=="bigint"?q(n):void 0)||s,_=(w=(v=(E=e.chain)==null?void 0:E.formatters)==null?void 0:v.transactionRequest)==null?void 0:w.format,S=(_||Dr)({...Ws(y,{format:_}),account:g,blobs:a,data:o,gas:i,gasPrice:c,maxFeePerBlobGas:l,maxFeePerGas:u,maxPriorityFeePerGas:d,to:f,value:h},"createAccessList"),m=await e.request({method:"eth_createAccessList",params:[S,C]});return{accessList:m.accessList,gasUsed:BigInt(m.gasUsed)}}catch(T){throw Tp(T,{...t,account:g,chain:e.chain})}}async function fN(e){const t=Zl(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}async function b6(e,{address:t,args:r,event:n,events:s,fromBlock:a,strict:o,toBlock:i}={}){const c=s??(n?[n]:void 0),l=Zl(e,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap(h=>Ri({abi:[h],eventName:h.name,args:r}))],n&&(u=u[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?q(a):a,toBlock:typeof i=="bigint"?q(i):i,...u.length?{topics:u}:{}}]});return{abi:c,args:r,eventName:n?n.name:void 0,fromBlock:a,id:d,request:l(d),strict:!!o,toBlock:i,type:"event"}}async function y6(e){const t=Zl(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}async function hN(e,{address:t,blockNumber:r,blockTag:n=e.experimental_blockTag??"latest"}){const s=typeof r=="bigint"?q(r):void 0,a=await e.request({method:"eth_getBalance",params:[t,s||n]});return BigInt(a)}async function mN(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}async function bN(e,{blockHash:t,blockNumber:r,blockTag:n="latest"}={}){const s=r!==void 0?q(r):void 0;let a;return t?a=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):a=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[s||n]},{dedupe:!!s}),ir(a)}class yN extends ${constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function gN(e,t){const{address:r,factory:n,factoryData:s}=t;try{const[a,o,i,c,l,u,d]=await se(e,zr,"readContract")({abi:xN,address:r,functionName:"eip712Domain",factory:n,factoryData:s});return{domain:{name:o,version:i,chainId:Number(c),verifyingContract:l,salt:u},extensions:d,fields:a}}catch(a){const o=a;throw o.name==="ContractFunctionExecutionError"&&o.cause.name==="ContractFunctionZeroDataError"?new yN({address:r}):o}}const xN=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];function wN(e){var t;return{baseFeePerGas:e.baseFeePerGas.map(r=>BigInt(r)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:(t=e.reward)==null?void 0:t.map(r=>r.map(n=>BigInt(n)))}}async function vN(e,{blockCount:t,blockNumber:r,blockTag:n="latest",rewardPercentiles:s}){const a=typeof r=="bigint"?q(r):void 0,o=await e.request({method:"eth_feeHistory",params:[q(t),a||n,s]},{dedupe:!!a});return wN(o)}async function EN(e,{filter:t}){const r=t.strict??!1,s=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(a=>Xr(a));return t.abi?Mf({abi:t.abi,logs:s,strict:r}):s}const au=new Oa(8192);function kN(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(au.get(r))return au.get(r);const n=e().finally(()=>au.delete(r));return au.set(r,n),n}function CN(e,t={}){return async(r,n={})=>{var d;const{dedupe:s=!1,methods:a,retryDelay:o=150,retryCount:i=3,uid:c}={...t,...n},{method:l}=r;if((d=a==null?void 0:a.exclude)!=null&&d.includes(l))throw new Vs(new Error("method not supported"),{method:l});if(a!=null&&a.include&&!a.include.includes(l))throw new Vs(new Error("method not supported"),{method:l});const u=s?Ta(`${c}.${mt(r)}`):void 0;return kN(()=>ru(async()=>{try{return await e(r)}catch(f){const h=f;switch(h.code){case Xo.code:throw new Xo(h);case Qo.code:throw new Qo(h);case Jo.code:throw new Jo(h,{method:r.method});case ei.code:throw new ei(h);case js.code:throw new js(h);case is.code:throw new is(h);case ti.code:throw new ti(h);case ri.code:throw new ri(h);case ni.code:throw new ni(h);case Vs.code:throw new Vs(h,{method:r.method});case $a.code:throw new $a(h);case si.code:throw new si(h);case Ga.code:throw new Ga(h);case ai.code:throw new ai(h);case oi.code:throw new oi(h);case ii.code:throw new ii(h);case ci.code:throw new ci(h);case li.code:throw new li(h);case ja.code:throw new ja(h);case ui.code:throw new ui(h);case di.code:throw new di(h);case pi.code:throw new pi(h);case fi.code:throw new fi(h);case hi.code:throw new hi(h);case Va.code:throw new Va(h);case 5e3:throw new Ga(h);default:throw f instanceof $?f:new kS(h)}}},{delay:({count:f,error:h})=>{var y;if(h&&h instanceof Gs){const g=(y=h==null?void 0:h.headers)==null?void 0:y.get("Retry-After");if(g!=null&&g.match(/\d/))return Number.parseInt(g,10)*1e3}return~~(1<<f)*o},retryCount:i,shouldRetry:({error:f})=>TN(f)}),{enabled:s,id:u})}}function TN(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===$a.code||e.code===js.code:e instanceof Gs&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}class SN extends ${constructor({callbackSelector:t,cause:r,data:n,extraData:s,sender:a,urls:o}){var i;super(r.shortMessage||"An error occurred while fetching for an offchain result.",{cause:r,metaMessages:[...r.metaMessages||[],(i=r.metaMessages)!=null&&i.length?"":[],"Offchain Gateway Call:",o&&[" Gateway URL(s):",...o.map(c=>` ${Zo(c)}`)],` Sender: ${a}`,` Data: ${n}`,` Callback selector: ${t}`,` Extra data: ${s}`].flat(),name:"OffchainLookupError"})}}class AN extends ${constructor({result:t,url:r}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${Zo(r)}`,`Response: ${mt(t)}`],name:"OffchainLookupResponseMalformedError"})}}class PN extends ${constructor({sender:t,to:r}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${r}`,`OffchainLookup sender address: ${t}`],name:"OffchainLookupSenderMismatchError"})}}const IN="0x556f1830",g6={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function BN(e,{blockNumber:t,blockTag:r,data:n,to:s}){const{args:a}=Vb({data:n,abi:[g6]}),[o,i,c,l,u]=a,{ccipRead:d}=e,f=d&&typeof(d==null?void 0:d.request)=="function"?d.request:x6;try{if(!Qa(s,o))throw new PN({sender:o,to:s});const h=i.includes(ji)?await l6({data:c,ccipRequest:f}):await f({data:c,sender:o,urls:i}),{data:y}=await Di(e,{blockNumber:t,blockTag:r,data:cr([l,os([{type:"bytes"},{type:"bytes"}],[h,u])]),to:s});return y}catch(h){throw new SN({callbackSelector:l,cause:h,data:n,extraData:u,sender:o,urls:i})}}async function x6({data:e,sender:t,urls:r}){var s;let n=new Error("An unknown error occurred.");for(let a=0;a<r.length;a++){const o=r[a],i=o.includes("{data}")?"GET":"POST",c=i==="POST"?{data:e,sender:t}:void 0,l=i==="POST"?{"Content-Type":"application/json"}:{};try{const u=await fetch(o.replace("{sender}",t.toLowerCase()).replace("{data}",e),{body:JSON.stringify(c),headers:l,method:i});let d;if((s=u.headers.get("Content-Type"))!=null&&s.startsWith("application/json")?d=(await u.json()).data:d=await u.text(),!u.ok){n=new Gs({body:c,details:d!=null&&d.error?mt(d.error):u.statusText,headers:u.headers,status:u.status,url:o});continue}if(!Or(d)){n=new AN({result:d,url:o});continue}return d}catch(u){n=new Gs({body:c,details:u.message,url:o})}}throw n}const FN=Object.freeze(Object.defineProperty({__proto__:null,ccipRequest:x6,offchainLookup:BN,offchainLookupAbiItem:g6,offchainLookupSignature:IN},Symbol.toStringTag,{value:"Module"}));function UN(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:n}){return new Promise((s,a)=>{(async()=>{let o;try{const i=new AbortController;r>0&&(o=setTimeout(()=>{n&&i.abort()},r)),s(await e({signal:(i==null?void 0:i.signal)||null}))}catch(i){(i==null?void 0:i.name)==="AbortError"&&a(t),a(i)}finally{clearTimeout(o)}})()})}function ON(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const w6=ON();function _N(e,t={}){return{async request(r){var f;const{body:n,fetchFn:s=t.fetchFn??fetch,onRequest:a=t.onRequest,onResponse:o=t.onResponse,timeout:i=t.timeout??1e4}=r,c={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:l,method:u,signal:d}=c;try{const h=await UN(async({signal:g})=>{const E={...c,body:Array.isArray(n)?mt(n.map(C=>({jsonrpc:"2.0",id:C.id??w6.take(),...C}))):mt({jsonrpc:"2.0",id:n.id??w6.take(),...n}),headers:{"Content-Type":"application/json",...l},method:u||"POST",signal:d||(i>0?g:null)},v=new Request(e,E),w=await(a==null?void 0:a(v,E))??{...E,url:e};return await s(w.url??e,w)},{errorInstance:new Xb({body:n,url:e}),timeout:i,signal:!0});o&&await o(h);let y;if((f=h.headers.get("Content-Type"))!=null&&f.startsWith("application/json"))y=await h.json();else{y=await h.text();try{y=JSON.parse(y||"{}")}catch(g){if(h.ok)throw g;y={error:y}}}if(!h.ok)throw new Gs({body:n,details:mt(y.error)||h.statusText,headers:h.headers,status:h.status,url:e});return y}catch(h){throw h instanceof Gs||h instanceof Xb?h:new Gs({body:n,cause:h,url:e})}}}}const DN=`Ethereum Signed Message:
108
- `;function MN(e){const t=typeof e=="string"?Ta(e):typeof e.raw=="string"?e.raw:vt(e.raw),r=Ta(`${DN}${ut(t)}`);return cr([r,t])}function v6(e,t){return Ut(MN(e),t)}class NN extends ${constructor({domain:t}){super(`Invalid domain "${mt(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class LN extends ${constructor({primaryType:t,types:r}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(r))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class zN extends ${constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function RN(e){const{domain:t,message:r,primaryType:n,types:s}=e,a=(c,l)=>{const u={...l};for(const d of c){const{name:f,type:h}=d;h==="address"&&(u[f]=u[f].toLowerCase())}return u},o=s.EIP712Domain?t?a(s.EIP712Domain,t):{}:{},i=(()=>{if(n!=="EIP712Domain")return a(s[n],r)})();return mt({domain:o,message:i,primaryType:n,types:s})}function E6(e){const{domain:t,message:r,primaryType:n,types:s}=e,a=(o,i)=>{for(const c of o){const{name:l,type:u}=c,d=i[l],f=u.match(Gb);if(f&&(typeof d=="number"||typeof d=="bigint")){const[g,E,v]=f;q(d,{signed:E==="int",size:Number.parseInt(v,10)/8})}if(u==="address"&&typeof d=="string"&&!nt(d))throw new Ct({address:d});const h=u.match(eS);if(h){const[g,E]=h;if(E&&ut(d)!==Number.parseInt(E,10))throw new r4({expectedSize:Number.parseInt(E,10),givenSize:ut(d)})}const y=s[u];y&&(HN(u),a(y,d))}};if(s.EIP712Domain&&t){if(typeof t!="object")throw new NN({domain:t});a(s.EIP712Domain,t)}if(n!=="EIP712Domain")if(s[n])a(s[n],r);else throw new LN({primaryType:n,types:s})}function k6({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function HN(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new zN({type:e})}function $N(e){const{domain:t={},message:r,primaryType:n}=e,s={EIP712Domain:k6({domain:t}),...e.types};E6({domain:t,message:r,primaryType:n,types:s});const a=["0x1901"];return t&&a.push(GN({domain:t,types:s})),n!=="EIP712Domain"&&a.push(C6({data:r,primaryType:n,types:s})),Ut(cr(a))}function GN({domain:e,types:t}){return C6({data:e,primaryType:"EIP712Domain",types:t})}function C6({data:e,primaryType:t,types:r}){const n=T6({data:e,primaryType:t,types:r});return Ut(n)}function T6({data:e,primaryType:t,types:r}){const n=[{type:"bytes32"}],s=[jN({primaryType:t,types:r})];for(const a of r[t]){const[o,i]=A6({types:r,name:a.name,type:a.type,value:e[a.name]});n.push(o),s.push(i)}return os(n,s)}function jN({primaryType:e,types:t}){const r=Fe(VN({primaryType:e,types:t}));return Ut(r)}function VN({primaryType:e,types:t}){let r="";const n=S6({primaryType:e,types:t});n.delete(e);const s=[e,...Array.from(n).sort()];for(const a of s)r+=`${a}(${t[a].map(({name:o,type:i})=>`${i} ${o}`).join(",")})`;return r}function S6({primaryType:e,types:t},r=new Set){const n=e.match(/^\w*/u),s=n==null?void 0:n[0];if(r.has(s)||t[s]===void 0)return r;r.add(s);for(const a of t[s])S6({primaryType:a.type,types:t},r);return r}function A6({types:e,name:t,type:r,value:n}){if(e[r]!==void 0)return[{type:"bytes32"},Ut(T6({data:n,primaryType:r,types:e}))];if(r==="bytes")return[{type:"bytes32"},Ut(n)];if(r==="string")return[{type:"bytes32"},Ut(Fe(n))];if(r.lastIndexOf("]")===r.length-1){const s=r.slice(0,r.lastIndexOf("[")),a=n.map(o=>A6({name:t,type:s,types:e,value:o}));return[{type:"bytes32"},Ut(os(a.map(([o])=>o),a.map(([,o])=>o)))]}return[{type:r},n]}function WN(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function qN(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?ir(e.nonce):void 0,storageProof:e.storageProof?WN(e.storageProof):void 0}}async function YN(e,{address:t,blockNumber:r,blockTag:n,storageKeys:s}){const a=n??"latest",o=r!==void 0?q(r):void 0,i=await e.request({method:"eth_getProof",params:[t,s,o||a]});return qN(i)}async function KN(e,{address:t,blockNumber:r,blockTag:n="latest",slot:s}){const a=r!==void 0?q(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,s,a||n]})}async function Zf(e,{blockHash:t,blockNumber:r,blockTag:n,hash:s,index:a,sender:o,nonce:i}){var f,h,y;const c=n||"latest",l=r!==void 0?q(r):void 0;let u=null;if(s?u=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?u=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,q(a)]},{dedupe:!0}):typeof a=="number"?u=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||c,q(a)]},{dedupe:!!l}):o&&typeof i=="number"&&(u=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[o,q(i)]},{dedupe:!0})),!u)throw new I1({blockHash:t,blockNumber:r,blockTag:c,hash:s,index:a});return(((y=(h=(f=e.chain)==null?void 0:f.formatters)==null?void 0:h.transaction)==null?void 0:y.format)||Ns)(u,"getTransaction")}async function ZN(e,{hash:t,transactionReceipt:r}){const[n,s]=await Promise.all([se(e,$i,"getBlockNumber")({}),t?se(e,Zf,"getTransaction")({hash:t}):void 0]),a=(r==null?void 0:r.blockNumber)||(s==null?void 0:s.blockNumber);return a?n-a+1n:0n}async function ou(e,{hash:t}){var s,a,o;const r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new B1({hash:t});return(((o=(a=(s=e.chain)==null?void 0:s.formatters)==null?void 0:a.transactionReceipt)==null?void 0:o.format)||Rc)(r,"getTransactionReceipt")}async function XN(e,t){var w;const{account:r,authorizationList:n,allowFailure:s=!0,blockNumber:a,blockOverrides:o,blockTag:i,stateOverride:c}=t,l=t.contracts,{batchSize:u=t.batchSize??1024,deployless:d=t.deployless??!1}=typeof((w=e.batch)==null?void 0:w.multicall)=="object"?e.batch.multicall:{},f=(()=>{if(t.multicallAddress)return t.multicallAddress;if(d)return null;if(e.chain)return Da({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),h=[[]];let y=0,g=0;for(let T=0;T<l.length;T++){const{abi:C,address:_,args:z,functionName:S}=l[T];try{const m=fr({abi:C,args:z,functionName:S});g+=(m.length-2)/2,u>0&&g>u&&h[y].length>0&&(y++,g=(m.length-2)/2,h[y]=[]),h[y]=[...h[y],{allowFailure:!0,callData:m,target:_}]}catch(m){const b=Js(m,{abi:C,address:_,args:z,docsPath:"/docs/contract/multicall",functionName:S,sender:r});if(!s)throw b;h[y]=[...h[y],{allowFailure:!0,callData:"0x",target:_}]}}const E=await Promise.allSettled(h.map(T=>se(e,zr,"readContract")({...f===null?{code:mf}:{address:f},abi:Gl,account:r,args:[T],authorizationList:n,blockNumber:a,blockOverrides:o,blockTag:i,functionName:"aggregate3",stateOverride:c}))),v=[];for(let T=0;T<E.length;T++){const C=E[T];if(C.status==="rejected"){if(!s)throw C.reason;for(let z=0;z<h[T].length;z++)v.push({status:"failure",error:C.reason,result:void 0});continue}const _=C.value;for(let z=0;z<_.length;z++){const{returnData:S,success:m}=_[z],{callData:b}=h[T][z],{abi:x,address:A,functionName:I,args:F}=l[v.length];try{if(b==="0x")throw new Wo;if(!m)throw new ll({data:S});const D=Qs({abi:x,args:F,data:S,functionName:I});v.push(s?{result:D,status:"success"}:D)}catch(D){const k=Js(D,{abi:x,address:A,args:F,docsPath:"/docs/contract/multicall",functionName:I});if(!s)throw k;v.push({error:k,result:void 0,status:"failure"})}}}if(v.length!==l.length)throw new $("multicall results mismatch");return v}async function Xf(e,t){const{blockNumber:r,blockTag:n=e.experimental_blockTag??"latest",blocks:s,returnFullTransactions:a,traceTransfers:o,validation:i}=t;try{const c=[];for(const f of s){const h=f.blockOverrides?Tg(f.blockOverrides):void 0,y=f.calls.map(E=>{const v=E,w=v.account?Ze(v.account):void 0,T=v.abi?fr(v):v.data,C={...v,account:w,data:v.dataSuffix?cr([T||"0x",v.dataSuffix]):T,from:v.from??(w==null?void 0:w.address)};return en(C),Dr(C)}),g=f.stateOverrides?wf(f.stateOverrides):void 0;c.push({blockOverrides:h,calls:y,stateOverrides:g})}const u=(typeof r=="bigint"?q(r):void 0)||n;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:c,returnFullTransactions:a,traceTransfers:o,validation:i},u]})).map((f,h)=>({...Ud(f),calls:f.calls.map((y,g)=>{var x,A;const{abi:E,args:v,functionName:w,to:T}=s[h].calls[g],C=((x=y.error)==null?void 0:x.data)??y.returnData,_=BigInt(y.gasUsed),z=(A=y.logs)==null?void 0:A.map(I=>Xr(I)),S=y.status==="0x1"?"success":"failure",m=E&&S==="success"&&C!=="0x"?Qs({abi:E,data:C,functionName:w}):null,b=(()=>{var F;if(S==="success")return;let I;if(((F=y.error)==null?void 0:F.data)==="0x"?I=new Wo:y.error&&(I=new ll(y.error)),!!I)return Js(I,{abi:E??[],address:T??"0x",args:v,functionName:w??"<unknown>"})})();return{data:C,gasUsed:_,logs:z,status:S,...S==="success"?{result:m}:{error:b}}})}))}catch(c){const l=c,u=ul(l,{});throw u instanceof Lo?l:u}}function Qf(e){let t=!0,r="",n=0,s="",a=!1;for(let o=0;o<e.length;o++){const i=e[o];if(["(",")",","].includes(i)&&(t=!0),i==="("&&n++,i===")"&&n--,!!t){if(n===0){if(i===" "&&["event","function","error",""].includes(s))s="";else if(s+=i,i===")"){a=!0;break}continue}if(i===" "){e[o-1]!==","&&r!==","&&r!==",("&&(r="",t=!1);continue}s+=i,r+=i}}if(!a)throw new oe("Unable to normalize signature.");return s}function Jf(e,t){const r=typeof e,n=t.type;switch(n){case"address":return _l(e,{strict:!1});case"bool":return r==="boolean";case"function":return r==="string";case"string":return r==="string";default:return n==="tuple"&&"components"in t?Object.values(t.components).every((s,a)=>Jf(Object.values(e)[a],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)?$/.test(n)?r==="number"||r==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?r==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)?Array.isArray(e)&&e.every(s=>Jf(s,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function P6(e,t,r){for(const n in e){const s=e[n],a=t[n];if(s.type==="tuple"&&a.type==="tuple"&&"components"in s&&"components"in a)return P6(s.components,a.components,r[n]);const o=[s.type,a.type];if(o.includes("address")&&o.includes("bytes20")?!0:o.includes("address")&&o.includes("string")?_l(r[n],{strict:!1}):o.includes("address")&&o.includes("bytes")?_l(r[n],{strict:!1}):!1)return o}}function I6(e,t={}){const{prepare:r=!0}=t,n=Array.isArray(e)||typeof e=="string"?Rb(e):e;return{...n,...r?{hash:eo(n)}:{}}}function iu(e,t,r){const{args:n=[],prepare:s=!0}=r??{},a=Nr(t,{strict:!1}),o=e.filter(l=>a?l.type==="function"||l.type==="error"?B6(l)===Pe(t,0,4):l.type==="event"?eo(l)===t:!1:"name"in l&&l.name===t);if(o.length===0)throw new cu({name:t});if(o.length===1)return{...o[0],...s?{hash:eo(o[0])}:{}};let i;for(const l of o){if(!("inputs"in l))continue;if(!n||n.length===0){if(!l.inputs||l.inputs.length===0)return{...l,...s?{hash:eo(l)}:{}};continue}if(!l.inputs||l.inputs.length===0||l.inputs.length!==n.length)continue;if(n.every((d,f)=>{const h="inputs"in l&&l.inputs[f];return h?Jf(d,h):!1})){if(i&&"inputs"in i&&i.inputs){const d=P6(l.inputs,i.inputs,n);if(d)throw new JN({abiItem:l,type:d[0]},{abiItem:i,type:d[1]})}i=l}}const c=(()=>{if(i)return i;const[l,...u]=o;return{...l,overloads:u}})();if(!c)throw new cu({name:t});return{...c,...s?{hash:eo(c)}:{}}}function B6(...e){const t=(()=>{if(Array.isArray(e[0])){const[r,n]=e;return iu(r,n)}return e[0]})();return Pe(eo(t),0,4)}function QN(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,s]=e;return iu(n,s)}return e[0]})(),r=typeof t=="string"?t:ol(t);return Qf(r)}function eo(...e){const t=(()=>{if(Array.isArray(e[0])){const[r,n]=e;return iu(r,n)}return e[0]})();return typeof t!="string"&&"hash"in t&&t.hash?t.hash:Ii(Ai(QN(t)))}class JN extends oe{constructor(t,r){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${Qf(ol(t.abiItem))}\`, and`,`\`${r.type}\` in \`${Qf(ol(r.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class cu extends oe{constructor({name:t,data:r,type:n="item"}){const s=t?` with name "${t}"`:r?` with data "${r}"`:"";super(`ABI ${n}${s} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function eL(...e){var a;const[t,r]=(()=>{if(Array.isArray(e[0])){const[o,i]=e;return[rL(o),i]}return e})(),{bytecode:n,args:s}=r;return ft(n,(a=t.inputs)!=null&&a.length&&(s!=null&&s.length)?df(t.inputs,s):"0x")}function tL(e){return I6(e)}function rL(e){const t=e.find(r=>r.type==="constructor");if(!t)throw new cu({name:"constructor"});return t}function nL(...e){const[t,r=[]]=(()=>{if(Array.isArray(e[0])){const[l,u,d]=e;return[F6(l,u,{args:d}),d]}const[i,c]=e;return[i,c]})(),{overloads:n}=t,s=n?F6([t,...n],t.name,{args:r}):t,a=sL(s),o=r.length>0?df(s.inputs,r):void 0;return o?ft(a,o):a}function to(e,t={}){return I6(e,t)}function F6(e,t,r){const n=iu(e,t,r);if(n.type!=="function")throw new cu({name:t,type:"function"});return n}function sL(e){return B6(e)}const aL="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",tn="0x0000000000000000000000000000000000000000",oL="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function iL(e,t){const{blockNumber:r,blockTag:n,calls:s,stateOverrides:a,traceAssetChanges:o,traceTransfers:i,validation:c}=t,l=t.account?Ze(t.account):void 0;if(o&&!l)throw new $("`account` is required when `traceAssetChanges` is true");const u=l?eL(tL("constructor(bytes, bytes)"),{bytecode:vg,args:[oL,nL(to("function getBalance(address)"),[l.address])]}):void 0,d=o?await Promise.all(t.calls.map(async U=>{if(!U.data&&!U.abi)return;const{accessList:L}=await m6(e,{account:l.address,...U,data:U.abi?fr(U):U.data});return L.map(({address:H,storageKeys:G})=>G.length>0?H:null)})).then(U=>U.flat().filter(Boolean)):[],f=await Xf(e,{blockNumber:r,blockTag:n,blocks:[...o?[{calls:[{data:u}],stateOverrides:a},{calls:d.map((U,L)=>({abi:[to("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:U,from:tn,nonce:L})),stateOverrides:[{address:tn,nonce:0}]}]:[],{calls:[...s,{}].map(U=>({...U,from:l==null?void 0:l.address})),stateOverrides:a},...o?[{calls:[{data:u}]},{calls:d.map((U,L)=>({abi:[to("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:U,from:tn,nonce:L})),stateOverrides:[{address:tn,nonce:0}]},{calls:d.map((U,L)=>({to:U,abi:[to("function decimals() returns (uint256)")],functionName:"decimals",from:tn,nonce:L})),stateOverrides:[{address:tn,nonce:0}]},{calls:d.map((U,L)=>({to:U,abi:[to("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:tn,nonce:L})),stateOverrides:[{address:tn,nonce:0}]},{calls:d.map((U,L)=>({to:U,abi:[to("function symbol() returns (string)")],functionName:"symbol",from:tn,nonce:L})),stateOverrides:[{address:tn,nonce:0}]}]:[]],traceTransfers:i,validation:c}),h=o?f[2]:f[0],[y,g,,E,v,w,T,C]=o?f:[],{calls:_,...z}=h,S=_.slice(0,-1)??[],m=(y==null?void 0:y.calls)??[],b=(g==null?void 0:g.calls)??[],x=[...m,...b].map(U=>U.status==="success"?Le(U.data):null),A=(E==null?void 0:E.calls)??[],I=(v==null?void 0:v.calls)??[],F=[...A,...I].map(U=>U.status==="success"?Le(U.data):null),D=((w==null?void 0:w.calls)??[]).map(U=>U.status==="success"?U.result:null),k=((C==null?void 0:C.calls)??[]).map(U=>U.status==="success"?U.result:null),P=((T==null?void 0:T.calls)??[]).map(U=>U.status==="success"?U.result:null),O=[];for(const[U,L]of F.entries()){const H=x[U];if(typeof L!="bigint"||typeof H!="bigint")continue;const G=D[U-1],Q=k[U-1],pe=P[U-1],me=U===0?{address:aL,decimals:18,symbol:"ETH"}:{address:d[U-1],decimals:pe||G?Number(G??1):void 0,symbol:Q??void 0};O.some(ie=>ie.token.address===me.address)||O.push({token:me,value:{pre:H,post:L,diff:L-H}})}return{assetChanges:O,block:z,results:S}}async function cL(e,{address:t,message:r,factory:n,factoryData:s,signature:a,...o}){const i=v6(r);return se(e,Mi,"verifyHash")({address:t,factory:n,factoryData:s,hash:i,signature:a,...o})}async function lL(e,t){const{address:r,factory:n,factoryData:s,signature:a,message:o,primaryType:i,types:c,domain:l,...u}=t,d=$N({message:o,primaryType:i,types:c,domain:l});return se(e,Mi,"verifyHash")({address:r,factory:n,factoryData:s,hash:d,signature:a,...u})}function U6(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:s,poll:a,pollingInterval:o=e.pollingInterval}){const i=typeof a<"u"?a:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc"));let c;return i?(()=>{const d=mt(["watchBlockNumber",e.uid,t,r,o]);return Un(d,{onBlockNumber:n,onError:s},f=>Ja(async()=>{var h;try{const y=await se(e,$i,"getBlockNumber")({cacheTime:0});if(c!==void 0){if(y===c)return;if(y-c>1&&r)for(let g=c+1n;g<y;g++)f.onBlockNumber(g,c),c=g}(c===void 0||y>c)&&(f.onBlockNumber(y,c),c=y)}catch(y){(h=f.onError)==null||h.call(f,y)}},{emitOnBegin:t,interval:o}))})():(()=>{const d=mt(["watchBlockNumber",e.uid,t,r]);return Un(d,{onBlockNumber:n,onError:s},f=>{let h=!0,y=()=>h=!1;return(async()=>{try{const g=(()=>{if(e.transport.type==="fallback"){const v=e.transport.transports.find(w=>w.config.type==="webSocket"||w.config.type==="ipc");return v?v.value:e.transport}return e.transport})(),{unsubscribe:E}=await g.subscribe({params:["newHeads"],onData(v){var T;if(!h)return;const w=Le((T=v.result)==null?void 0:T.number);f.onBlockNumber(w,c),c=w},onError(v){var w;(w=f.onError)==null||w.call(f,v)}});y=E,h||y()}catch(g){s==null||s(g)}})(),()=>y()})})()}async function O6(e,t){const{checkReplacement:r=!0,confirmations:n=1,hash:s,onReplaced:a,retryCount:o=6,retryDelay:i=({count:_})=>~~(1<<_)*200,timeout:c=18e4}=t,l=mt(["waitForTransactionReceipt",e.uid,s]),u=(()=>{var _;return t.pollingInterval?t.pollingInterval:(_=e.chain)!=null&&_.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval})();let d,f,h,y=!1,g,E;const{promise:v,resolve:w,reject:T}=gf(),C=c?setTimeout(()=>{E==null||E(),g==null||g(),T(new g8({hash:s}))},c):void 0;return g=Un(l,{onReplaced:a,resolve:w,reject:T},async _=>{if(h=await se(e,ou,"getTransactionReceipt")({hash:s}).catch(()=>{}),h&&n<=1){clearTimeout(C),_.resolve(h),g==null||g();return}E=se(e,U6,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:u,async onBlockNumber(z){const S=b=>{clearTimeout(C),E==null||E(),b(),g==null||g()};let m=z;if(!y)try{if(h){if(n>1&&(!h.blockNumber||m-h.blockNumber+1n<n))return;S(()=>_.resolve(h));return}if(r&&!d&&(y=!0,await ru(async()=>{d=await se(e,Zf,"getTransaction")({hash:s}),d.blockNumber&&(m=d.blockNumber)},{delay:i,retryCount:o}),y=!1),h=await se(e,ou,"getTransactionReceipt")({hash:s}),n>1&&(!h.blockNumber||m-h.blockNumber+1n<n))return;S(()=>_.resolve(h))}catch(b){if(b instanceof I1||b instanceof B1){if(!d){y=!1;return}try{f=d,y=!0;const x=await ru(()=>se(e,Rr,"getBlock")({blockNumber:m,includeTransactions:!0}),{delay:i,retryCount:o,shouldRetry:({error:F})=>F instanceof Kg});y=!1;const A=x.transactions.find(({from:F,nonce:D})=>F===f.from&&D===f.nonce);if(!A||(h=await se(e,ou,"getTransactionReceipt")({hash:A.hash}),n>1&&(!h.blockNumber||m-h.blockNumber+1n<n)))return;let I="replaced";A.to===f.to&&A.value===f.value&&A.input===f.input?I="repriced":A.from===A.to&&A.value===0n&&(I="cancelled"),S(()=>{var F;(F=_.onReplaced)==null||F.call(_,{reason:I,replacedTransaction:f,transaction:A,transactionReceipt:h}),_.resolve(h)})}catch(x){S(()=>_.reject(x))}}else S(()=>_.reject(b))}}})}),v}function uL(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:s,onError:a,includeTransactions:o,poll:i,pollingInterval:c=e.pollingInterval}){const l=typeof i<"u"?i:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),u=o??!1;let d;return l?(()=>{const y=mt(["watchBlocks",e.uid,t,r,n,u,c]);return Un(y,{onBlock:s,onError:a},g=>Ja(async()=>{var E;try{const v=await se(e,Rr,"getBlock")({blockTag:t,includeTransactions:u});if(v.number!==null&&(d==null?void 0:d.number)!=null){if(v.number===d.number)return;if(v.number-d.number>1&&r)for(let w=(d==null?void 0:d.number)+1n;w<v.number;w++){const T=await se(e,Rr,"getBlock")({blockNumber:w,includeTransactions:u});g.onBlock(T,d),d=T}}((d==null?void 0:d.number)==null||t==="pending"&&(v==null?void 0:v.number)==null||v.number!==null&&v.number>d.number)&&(g.onBlock(v,d),d=v)}catch(v){(E=g.onError)==null||E.call(g,v)}},{emitOnBegin:n,interval:c}))})():(()=>{let y=!0,g=!0,E=()=>y=!1;return(async()=>{try{n&&se(e,Rr,"getBlock")({blockTag:t,includeTransactions:u}).then(T=>{y&&g&&(s(T,void 0),g=!1)}).catch(a);const v=(()=>{if(e.transport.type==="fallback"){const T=e.transport.transports.find(C=>C.config.type==="webSocket"||C.config.type==="ipc");return T?T.value:e.transport}return e.transport})(),{unsubscribe:w}=await v.subscribe({params:["newHeads"],async onData(T){var _;if(!y)return;const C=await se(e,Rr,"getBlock")({blockNumber:(_=T.result)==null?void 0:_.number,includeTransactions:u}).catch(()=>{});y&&(s(C,d),g=!1,d=C)},onError(T){a==null||a(T)}});E=w,y||E()}catch(v){a==null||a(v)}})(),()=>E()})()}function dL(e,{address:t,args:r,batch:n=!0,event:s,events:a,fromBlock:o,onError:i,onLogs:c,poll:l,pollingInterval:u=e.pollingInterval,strict:d}){const f=typeof l<"u"?l:typeof o=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),h=d??!1;return f?(()=>{const E=mt(["watchEvent",t,r,n,e.uid,s,u,o]);return Un(E,{onLogs:c,onError:i},v=>{let w;o!==void 0&&(w=o-1n);let T,C=!1;const _=Ja(async()=>{var z;if(!C){try{T=await se(e,b6,"createEventFilter")({address:t,args:r,event:s,events:a,strict:h,fromBlock:o})}catch{}C=!0;return}try{let S;if(T)S=await se(e,Jl,"getFilterChanges")({filter:T});else{const m=await se(e,$i,"getBlockNumber")({});w&&w!==m?S=await se(e,Nf,"getLogs")({address:t,args:r,event:s,events:a,fromBlock:w+1n,toBlock:m}):S=[],w=m}if(S.length===0)return;if(n)v.onLogs(S);else for(const m of S)v.onLogs([m])}catch(S){T&&S instanceof is&&(C=!1),(z=v.onError)==null||z.call(v,S)}},{emitOnBegin:!0,interval:u});return async()=>{T&&await se(e,eu,"uninstallFilter")({filter:T}),_()}})})():(()=>{let E=!0,v=()=>E=!1;return(async()=>{try{const w=(()=>{if(e.transport.type==="fallback"){const z=e.transport.transports.find(S=>S.config.type==="webSocket"||S.config.type==="ipc");return z?z.value:e.transport}return e.transport})(),T=a??(s?[s]:void 0);let C=[];T&&(C=[T.flatMap(S=>Ri({abi:[S],eventName:S.name,args:r}))],s&&(C=C[0]));const{unsubscribe:_}=await w.subscribe({params:["logs",{address:t,topics:C}],onData(z){var m;if(!E)return;const S=z.result;try{const{eventName:b,args:x}=Ql({abi:T??[],data:S.data,topics:S.topics,strict:h}),A=Xr(S,{args:x,eventName:b});c([A])}catch(b){let x,A;if(b instanceof al||b instanceof pp){if(d)return;x=b.abiItem.name,A=(m=b.abiItem.inputs)==null?void 0:m.some(F=>!("name"in F&&F.name))}const I=Xr(S,{args:A?[]:{},eventName:x});c([I])}},onError(z){i==null||i(z)}});v=_,E||v()}catch(w){i==null||i(w)}})(),()=>v()})()}function pL(e,{batch:t=!0,onError:r,onTransactions:n,poll:s,pollingInterval:a=e.pollingInterval}){return(typeof s<"u"?s:e.transport.type!=="webSocket"&&e.transport.type!=="ipc")?(()=>{const l=mt(["watchPendingTransactions",e.uid,t,a]);return Un(l,{onTransactions:n,onError:r},u=>{let d;const f=Ja(async()=>{var h;try{if(!d)try{d=await se(e,y6,"createPendingTransactionFilter")({});return}catch(g){throw f(),g}const y=await se(e,Jl,"getFilterChanges")({filter:d});if(y.length===0)return;if(t)u.onTransactions(y);else for(const g of y)u.onTransactions([g])}catch(y){(h=u.onError)==null||h.call(u,y)}},{emitOnBegin:!0,interval:a});return async()=>{d&&await se(e,eu,"uninstallFilter")({filter:d}),f()}})})():(()=>{let l=!0,u=()=>l=!1;return(async()=>{try{const{unsubscribe:d}=await e.transport.subscribe({params:["newPendingTransactions"],onData(f){if(!l)return;const h=f.result;n([h])},onError(f){r==null||r(f)}});u=d,l||u()}catch(d){r==null||r(d)}})(),()=>u()})()}function fL(e){var d,f,h;const{scheme:t,statement:r,...n}=((d=e.match(hL))==null?void 0:d.groups)??{},{chainId:s,expirationTime:a,issuedAt:o,notBefore:i,requestId:c,...l}=((f=e.match(mL))==null?void 0:f.groups)??{},u=(h=e.split("Resources:")[1])==null?void 0:h.split(`
109
- - `).slice(1);return{...n,...l,...s?{chainId:Number(s)}:{},...a?{expirationTime:new Date(a)}:{},...o?{issuedAt:new Date(o)}:{},...i?{notBefore:new Date(i)}:{},...c?{requestId:c}:{},...u?{resources:u}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}const hL=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,mL=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;function bL(e){const{address:t,domain:r,message:n,nonce:s,scheme:a,time:o=new Date}=e;if(r&&n.domain!==r||s&&n.nonce!==s||a&&n.scheme!==a||n.expirationTime&&o>=n.expirationTime||n.notBefore&&o<n.notBefore)return!1;try{if(!n.address||!nt(n.address,{strict:!1})||t&&!Qa(n.address,t))return!1}catch{return!1}return!0}async function yL(e,t){const{address:r,domain:n,message:s,nonce:a,scheme:o,signature:i,time:c=new Date,...l}=t,u=fL(s);if(!u.address||!bL({address:r,domain:n,message:u,nonce:a,scheme:o,time:c}))return!1;const f=v6(s);return Mi(e,{address:u.address,hash:f,signature:i,...l})}async function e0(e,{serializedTransaction:t,throwOnReceiptRevert:r,timeout:n}){var i,c,l;const s=await e.request({method:"eth_sendRawTransactionSync",params:n?[t,q(n)]:[t]},{retryCount:0}),o=(((l=(c=(i=e.chain)==null?void 0:i.formatters)==null?void 0:c.transactionReceipt)==null?void 0:l.format)||Rc)(s);if(o.status==="reverted"&&r)throw new F1({receipt:o});return o}function gL(e){return{call:t=>Di(e,t),createAccessList:t=>m6(e,t),createBlockFilter:()=>fN(e),createContractEventFilter:t=>qg(e,t),createEventFilter:t=>b6(e,t),createPendingTransactionFilter:()=>y6(e),estimateContractGas:t=>OM(e,t),estimateGas:t=>Df(e,t),getBalance:t=>hN(e,t),getBlobBaseFee:()=>mN(e),getBlock:t=>Rr(e,t),getBlockNumber:t=>$i(e,t),getBlockTransactionCount:t=>bN(e,t),getBytecode:t=>$l(e,t),getChainId:()=>ls(e),getCode:t=>$l(e,t),getContractEvents:t=>Jg(e,t),getEip712Domain:t=>gN(e,t),getEnsAddress:t=>XM(e,t),getEnsAvatar:t=>uN(e,t),getEnsName:t=>dN(e,t),getEnsResolver:t=>pN(e,t),getEnsText:t=>h6(e,t),getFeeHistory:t=>vN(e,t),estimateFeesPerGas:t=>UM(e,t),getFilterChanges:t=>Jl(e,t),getFilterLogs:t=>EN(e,t),getGasPrice:()=>If(e),getLogs:t=>Nf(e,t),getProof:t=>YN(e,t),estimateMaxPriorityFeePerGas:t=>FM(e,t),fillTransaction:t=>Uf(e,t),getStorageAt:t=>KN(e,t),getTransaction:t=>Zf(e,t),getTransactionConfirmations:t=>ZN(e,t),getTransactionCount:t=>Ff(e,t),getTransactionReceipt:t=>ou(e,t),multicall:t=>XN(e,t),prepareTransactionRequest:t=>Hi(e,t),readContract:t=>zr(e,t),sendRawTransaction:t=>Rf(e,t),sendRawTransactionSync:t=>e0(e,t),simulate:t=>Xf(e,t),simulateBlocks:t=>Xf(e,t),simulateCalls:t=>iL(e,t),simulateContract:t=>MM(e,t),verifyHash:t=>Mi(e,t),verifyMessage:t=>cL(e,t),verifySiweMessage:t=>yL(e,t),verifyTypedData:t=>lL(e,t),uninstallFilter:t=>eu(e,t),waitForTransactionReceipt:t=>O6(e,t),watchBlocks:t=>uL(e,t),watchBlockNumber:t=>U6(e,t),watchContractEvent:t=>GM(e,t),watchEvent:t=>dL(e,t),watchPendingTransactions:t=>pL(e,t)}}function xL(e){const{key:t="public",name:r="Public Client"}=e;return i6({...e,key:t,name:r,type:"publicClient"}).extend(gL)}async function wL(e,{chain:t}){const{id:r,name:n,nativeCurrency:s,rpcUrls:a,blockExplorers:o}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:q(r),chainName:n,nativeCurrency:s,rpcUrls:a.default.http,blockExplorerUrls:o?Object.values(o).map(({url:i})=>i):void 0}]},{dedupe:!0,retryCount:0})}function vL(e,t){const{abi:r,args:n,bytecode:s,...a}=t,o=jl({abi:r,args:n,bytecode:s});return tu(e,{...a,...a.authorizationList?{to:null}:{},data:o})}async function EL(e){var r;return((r=e.account)==null?void 0:r.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ro(n))}async function kL(e,t={}){const{account:r=e.account,chainId:n}=t,s=r?Ze(r):void 0,a=n?[s==null?void 0:s.address,[q(n)]]:[s==null?void 0:s.address],o=await e.request({method:"wallet_getCapabilities",params:a}),i={};for(const[c,l]of Object.entries(o)){i[Number(c)]={};for(let[u,d]of Object.entries(l))u==="addSubAccount"&&(u="unstable_addSubAccount"),i[Number(c)][u]=d}return typeof n=="number"?i[n]:i}async function CL(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function _6(e,t){var c;const{account:r=e.account,chainId:n,nonce:s}=t;if(!r)throw new kn({docsPath:"/docs/eip7702/prepareAuthorization"});const a=Ze(r),o=(()=>{if(t.executor)return t.executor==="self"?t.executor:Ze(t.executor)})(),i={address:t.contractAddress??t.address,chainId:n,nonce:s};return typeof i.chainId>"u"&&(i.chainId=((c=e.chain)==null?void 0:c.id)??await se(e,ls,"getChainId")({})),typeof i.nonce>"u"&&(i.nonce=await se(e,Ff,"getTransactionCount")({address:a.address,blockTag:"pending"}),(o==="self"||o!=null&&o.address&&Qa(o.address,a.address))&&(i.nonce+=1)),i}async function TL(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(r=>rp(r))}async function SL(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}async function AL(e,t){const{chain:r=e.chain}=t,n=t.timeout??Math.max(((r==null?void 0:r.blockTime)??0)*3,5e3),s=await n6(e,t);return await a6(e,{...t,id:s.id,timeout:n})}const t0=new Oa(128);async function D6(e,t){var _,z,S,m;const{account:r=e.account,chain:n=e.chain,accessList:s,authorizationList:a,blobs:o,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,pollingInterval:y,throwOnReceiptRevert:g,type:E,value:v,...w}=t,T=t.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof r>"u")throw new kn({docsPath:"/docs/actions/wallet/sendTransactionSync"});const C=r?Ze(r):null;try{en(t);const b=await(async()=>{if(t.to)return t.to;if(t.to!==null&&a&&a.length>0)return await Vl({authorization:a[0]}).catch(()=>{throw new $("`to` is required. Could not infer from `authorizationList`.")})})();if((C==null?void 0:C.type)==="json-rpc"||C===null){let x;n!==null&&(x=await se(e,ls,"getChainId")({}),dp({currentChainId:x,chain:n}));const A=(S=(z=(_=e.chain)==null?void 0:_.formatters)==null?void 0:z.transactionRequest)==null?void 0:S.format,F=(A||Dr)({...Ws(w,{format:A}),accessList:s,account:C,authorizationList:a,blobs:o,chainId:x,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,to:b,type:E,value:v},"sendTransaction"),D=t0.get(e.uid),k=D?"wallet_sendTransaction":"eth_sendTransaction",P=await(async()=>{try{return await e.request({method:k,params:[F]},{retryCount:0})}catch(U){if(D===!1)throw U;const L=U;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[F]},{retryCount:0}).then(H=>(t0.set(e.uid,!0),H)).catch(H=>{const G=H;throw G.name==="MethodNotFoundRpcError"||G.name==="MethodNotSupportedRpcError"?(t0.set(e.uid,!1),L):G});throw L}})(),O=await se(e,O6,"waitForTransactionReceipt")({checkReplacement:!1,hash:P,pollingInterval:y,timeout:T});if(g&&O.status==="reverted")throw new F1({receipt:O});return O}if((C==null?void 0:C.type)==="local"){const x=await se(e,Hi,"prepareTransactionRequest")({account:C,accessList:s,authorizationList:a,blobs:o,chain:n,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,nonceManager:C.nonceManager,parameters:[...Of,"sidecars"],type:E,value:v,...w,to:b}),A=(m=n==null?void 0:n.serializers)==null?void 0:m.transaction,I=await C.signTransaction(x,{serializer:A});return await se(e,e0,"sendRawTransactionSync")({serializedTransaction:I,throwOnReceiptRevert:g})}throw(C==null?void 0:C.type)==="smart"?new Hs({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new Hs({docsPath:"/docs/actions/wallet/sendTransactionSync",type:C==null?void 0:C.type})}catch(b){throw b instanceof Hs?b:Xl(b,{...t,account:C,chain:t.chain||void 0})}}async function PL(e,t){const{id:r}=t;await e.request({method:"wallet_showCallsStatus",params:[r]})}async function IL(e,t){const{account:r=e.account}=t;if(!r)throw new kn({docsPath:"/docs/eip7702/signAuthorization"});const n=Ze(r);if(!n.signAuthorization)throw new Hs({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const s=await _6(e,t);return n.signAuthorization(s)}async function BL(e,{account:t=e.account,message:r}){if(!t)throw new kn({docsPath:"/docs/actions/wallet/signMessage"});const n=Ze(t);if(n.signMessage)return n.signMessage({message:r});const s=typeof r=="string"?Ta(r):r.raw instanceof Uint8Array?Fe(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,n.address]},{retryCount:0})}async function FL(e,t){var l,u,d,f;const{account:r=e.account,chain:n=e.chain,...s}=t;if(!r)throw new kn({docsPath:"/docs/actions/wallet/signTransaction"});const a=Ze(r);en({account:a,...t});const o=await se(e,ls,"getChainId")({});n!==null&&dp({currentChainId:o,chain:n});const i=(n==null?void 0:n.formatters)||((l=e.chain)==null?void 0:l.formatters),c=((u=i==null?void 0:i.transactionRequest)==null?void 0:u.format)||Dr;return a.signTransaction?a.signTransaction({...s,chainId:o},{serializer:(f=(d=e.chain)==null?void 0:d.serializers)==null?void 0:f.transaction}):await e.request({method:"eth_signTransaction",params:[{...c({...s,account:a},"signTransaction"),chainId:q(o),from:a.address}]},{retryCount:0})}async function UL(e,t){const{account:r=e.account,domain:n,message:s,primaryType:a}=t;if(!r)throw new kn({docsPath:"/docs/actions/wallet/signTypedData"});const o=Ze(r),i={EIP712Domain:k6({domain:n}),...t.types};if(E6({domain:n,message:s,primaryType:a,types:i}),o.signTypedData)return o.signTypedData({domain:n,message:s,primaryType:a,types:i});const c=RN({domain:n,message:s,primaryType:a,types:i});return e.request({method:"eth_signTypedData_v4",params:[o.address,c]},{retryCount:0})}async function OL(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:q(t)}]},{retryCount:0})}async function _L(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}async function DL(e,t){return Gi.internal(e,D6,"sendTransactionSync",t)}function ML(e){return{addChain:t=>wL(e,t),deployContract:t=>vL(e,t),fillTransaction:t=>Uf(e,t),getAddresses:()=>EL(e),getCallsStatus:t=>s6(e,t),getCapabilities:t=>kL(e,t),getChainId:()=>ls(e),getPermissions:()=>CL(e),prepareAuthorization:t=>_6(e,t),prepareTransactionRequest:t=>Hi(e,t),requestAddresses:()=>TL(e),requestPermissions:t=>SL(e,t),sendCalls:t=>n6(e,t),sendCallsSync:t=>AL(e,t),sendRawTransaction:t=>Rf(e,t),sendRawTransactionSync:t=>e0(e,t),sendTransaction:t=>tu(e,t),sendTransactionSync:t=>D6(e,t),showCallsStatus:t=>PL(e,t),signAuthorization:t=>IL(e,t),signMessage:t=>BL(e,t),signTransaction:t=>FL(e,t),signTypedData:t=>UL(e,t),switchChain:t=>OL(e,t),waitForCallsStatus:t=>a6(e,t),watchAsset:t=>_L(e,t),writeContract:t=>Gi(e,t),writeContractSync:t=>DL(e,t)}}function NL(e){const{key:t="wallet",name:r="Wallet Client",transport:n}=e;return i6({...e,key:t,name:r,transport:n,type:"walletClient"}).extend(ML)}function M6({key:e,methods:t,name:r,request:n,retryCount:s=3,retryDelay:a=150,timeout:o,type:i},c){const l=o6();return{config:{key:e,methods:t,name:r,request:n,retryCount:s,retryDelay:a,timeout:o,type:i},request:CN(n,{methods:t,retryCount:s,retryDelay:a,uid:l}),value:c}}function LL(e,t={}){const{key:r="custom",methods:n,name:s="Custom Provider",retryDelay:a}=t;return({retryCount:o})=>M6({key:r,methods:n,name:s,request:e.request.bind(e),retryCount:t.retryCount??o,retryDelay:a,type:"custom"})}class zL extends ${constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function RL(e,t={}){const{batch:r,fetchFn:n,fetchOptions:s,key:a="http",methods:o,name:i="HTTP JSON-RPC",onFetchRequest:c,onFetchResponse:l,retryDelay:u,raw:d}=t;return({chain:f,retryCount:h,timeout:y})=>{const{batchSize:g=1e3,wait:E=0}=typeof r=="object"?r:{},v=t.retryCount??h,w=y??t.timeout??1e4,T=f==null?void 0:f.rpcUrls.default.http[0];if(!T)throw new zL;const C=_N(T,{fetchFn:n,fetchOptions:s,onRequest:c,onResponse:l,timeout:w});return M6({key:a,methods:o,name:i,async request({method:_,params:z}){const S={method:_,params:z},{schedule:m}=Sg({id:T,wait:E,shouldSplitBatch(I){return I.length>g},fn:I=>C.request({body:I}),sort:(I,F)=>I.id-F.id}),b=async I=>r?m(I):[await C.request({body:I})],[{error:x,result:A}]=await b(S);if(d)return{error:x,result:A};if(x)throw new Cp({body:S,error:x,url:T});return A},retryCount:v,retryDelay:u,timeout:w,type:"http"},{fetchOptions:s,url:T})}}function HL(e){const{r:t,s:r}=Bi.Signature.fromCompact(e.slice(2,130)),n=+`0x${e.slice(130)}`,[s,a]=(()=>{if(n===0||n===1)return[void 0,n];if(n===27)return[BigInt(n),0];if(n===28)return[BigInt(n),1];throw new Error("Invalid yParityOrV value")})();return typeof s<"u"?{r:q(t,{size:32}),s:q(r,{size:32}),v:s,yParity:a}:{r:q(t,{size:32}),s:q(r,{size:32}),yParity:a}}const $L=(e,t)=>{const r=Object.values(SM).find(o=>o.id===e);if(!r)return{walletClient:void 0,publicClient:void 0};const n=t?LL(t):void 0,s=n?NL({chain:r,transport:n}):void 0,a=xL({chain:r,transport:n||RL()});return{walletClient:s,publicClient:a}},GL=()=>B.jsx("div",{className:"twap-error-fallback",children:B.jsx("p",{style:{fontSize:20,fontWeight:600,textAlign:"center",width:"100%",marginTop:40},children:"Something went wrong"})});function jL({children:e}){return B.jsx(f3,{FallbackComponent:GL,onError:t=>dt.onCrash(t),children:B.jsx(B.Fragment,{children:e})})}const r0=N.createContext({}),VL=new Qw({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),WL=e=>{var n,s,a;const t=te(o=>o.updateState),r=te(o=>o.state.isMarketOrder);return N.useEffect(()=>{setInterval(()=>{t({currentTime:Date.now()})},6e4)},[t]),N.useEffect(()=>{var o,i,c,l,u,d,f,h,y,g,E,v;t({isMarketOrder:e.module!==ye.LIMIT?!1:(i=(o=e.overrides)==null?void 0:o.state)==null?void 0:i.isMarketOrder,typedChunks:(l=(c=e.overrides)==null?void 0:c.state)==null?void 0:l.chunks,typedFillDelay:(d=(u=e.overrides)==null?void 0:u.state)==null?void 0:d.fillDelay,typedDuration:(h=(f=e.overrides)==null?void 0:f.state)==null?void 0:h.duration,typedLimitPrice:(g=(y=e.overrides)==null?void 0:y.state)==null?void 0:g.limitPrice,typedTriggerPrice:(v=(E=e.overrides)==null?void 0:E.state)==null?void 0:v.triggerPrice,triggerPricePercent:void 0,limitPricePercent:void 0})},[(n=e.overrides)==null?void 0:n.state,e.module]),N.useEffect(()=>{var o,i,c,l;t({typedLimitPrice:(i=(o=e.overrides)==null?void 0:o.state)==null?void 0:i.limitPrice,typedTriggerPrice:(l=(c=e.overrides)==null?void 0:c.state)==null?void 0:l.triggerPrice,triggerPricePercent:void 0,limitPricePercent:void 0})},[(s=e.srcToken)==null?void 0:s.address,(a=e.dstToken)==null?void 0:a.address]),N.useEffect(()=>{e.module===ye.LIMIT&&t({isMarketOrder:!1}),e.module===ye.TAKE_PROFIT&&t({isMarketOrder:!0})},[e.module]),N.useEffect(()=>{r&&t({isInvertedTrade:!1})},[r]),null},qL=({marketReferencePrice:e,srcToken:t,dstToken:r,chainId:n,typedInputAmount:s})=>N.useMemo(()=>{if(Bd(t,r,n)||Fd(t,r,n))return{isLoading:!1,noLiquidity:!1,value:Ac((t==null?void 0:t.decimals)||18,s||"0")};if(j(e.value||0).isZero()||j(s||0).isZero())return e;const a=j(e.value||0).dividedBy(s||0).toFixed();return{...e,value:a}},[e,s,t,r,n]),YL=e=>{const t=Fo(Fc.MIN_CHUNK_SIZE_USD);return t?parseInt(t):e},KL=e=>{const t=te(l=>l.state.acceptedMarketPrice),{walletClient:r,publicClient:n}=N.useMemo(()=>$L(e.chainId,e.provider),[e.chainId,e.provider]),s=N.useMemo(()=>Hh(e.partner),[e.partner]),a=N.useMemo(()=>{const l=s[0];return e.chainId&&s.includes(e.chainId)?e.chainId:l},[e.chainId,s]),o=N.useMemo(()=>ld(e.partner,a),[e.partner,a]),i=qL(e),c=N.useMemo(()=>YL(e.minChunkSizeUsd),[e.minChunkSizeUsd]);return N.useEffect(()=>{dt.init(o,c,a)},[o,a,c]),B.jsxs(r0.Provider,{value:{typedInputAmount:e.typedInputAmount,resetTypedInputAmount:e.resetTypedInputAmount,minChunkSizeUsd:c,account:e.account,walletClient:r,publicClient:n,marketPrice:t||i.value,marketPriceLoading:!t&&i.isLoading,noLiquidity:!t&&i.noLiquidity,config:o,slippage:e.priceProtection,supportedChains:s,chainId:a,partner:e.partner,module:e.module,fees:e.fees||0,components:e.components,overrides:e.overrides,callbacks:e.callbacks,getTranslation:e.getTranslation,translations:e.translations,useToken:e.useToken,refetchBalances:e.refetchBalances,srcUsd1Token:e.srcUsd1Token,dstUsd1Token:e.dstUsd1Token,srcBalance:e.srcBalance,dstBalance:e.dstBalance,srcToken:e.srcToken,dstToken:e.dstToken},children:[B.jsx(WL,{...e}),B.jsx(jL,{children:e.children})]})},ZL=e=>B.jsx(Jw,{client:VL,children:B.jsx(KL,{...e})}),ne=()=>{if(!r0)throw new Error("useSpotContext must be used within a WidgetProvider");return N.useContext(r0)},XL=2e4,QL=[{text:"Minutes",value:Gt.Minutes},{text:"Hours",value:Gt.Hours},{text:"Days",value:Gt.Days}],JL="The protocol uses an oracle price to help protect users from unfavorable executions. If the execution price is worse than the oracle price by more than the allowed percentage, the transaction will not be executed.";var n0={},ez=[{id:"fa",name:"Font Awesome",projectUrl:"https://fontawesome.com/",license:"CC BY 4.0 License",licenseUrl:"https://creativecommons.org/licenses/by/4.0/"},{id:"io",name:"Ionicons 4",projectUrl:"https://ionicons.com/",license:"MIT",licenseUrl:"https://github.com/ionic-team/ionicons/blob/master/LICENSE"},{id:"io5",name:"Ionicons 5",projectUrl:"https://ionicons.com/",license:"MIT",licenseUrl:"https://github.com/ionic-team/ionicons/blob/master/LICENSE"},{id:"md",name:"Material Design icons",projectUrl:"http://google.github.io/material-design-icons/",license:"Apache License Version 2.0",licenseUrl:"https://github.com/google/material-design-icons/blob/master/LICENSE"},{id:"ti",name:"Typicons",projectUrl:"http://s-ings.com/typicons/",license:"CC BY-SA 3.0",licenseUrl:"https://creativecommons.org/licenses/by-sa/3.0/"},{id:"go",name:"Github Octicons icons",projectUrl:"https://octicons.github.com/",license:"MIT",licenseUrl:"https://github.com/primer/octicons/blob/master/LICENSE"},{id:"fi",name:"Feather",projectUrl:"https://feathericons.com/",license:"MIT",licenseUrl:"https://github.com/feathericons/feather/blob/master/LICENSE"},{id:"gi",name:"Game Icons",projectUrl:"https://game-icons.net/",license:"CC BY 3.0",licenseUrl:"https://creativecommons.org/licenses/by/3.0/"},{id:"wi",name:"Weather Icons",projectUrl:"https://erikflowers.github.io/weather-icons/",license:"SIL OFL 1.1",licenseUrl:"http://scripts.sil.org/OFL"},{id:"di",name:"Devicons",projectUrl:"https://vorillaz.github.io/devicons/",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"ai",name:"Ant Design Icons",projectUrl:"https://github.com/ant-design/ant-design-icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"bs",name:"Bootstrap Icons",projectUrl:"https://github.com/twbs/icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"ri",name:"Remix Icon",projectUrl:"https://github.com/Remix-Design/RemixIcon",license:"Apache License Version 2.0",licenseUrl:"http://www.apache.org/licenses/"},{id:"fc",name:"Flat Color Icons",projectUrl:"https://github.com/icons8/flat-color-icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"gr",name:"Grommet-Icons",projectUrl:"https://github.com/grommet/grommet-icons",license:"Apache License Version 2.0",licenseUrl:"http://www.apache.org/licenses/"},{id:"hi",name:"Heroicons",projectUrl:"https://github.com/refactoringui/heroicons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"si",name:"Simple Icons",projectUrl:"https://simpleicons.org/",license:"CC0 1.0 Universal",licenseUrl:"https://creativecommons.org/publicdomain/zero/1.0/"},{id:"im",name:"IcoMoon Free",projectUrl:"https://github.com/Keyamoon/IcoMoon-Free",license:"CC BY 4.0 License"},{id:"bi",name:"BoxIcons",projectUrl:"https://github.com/atisawd/boxicons",license:"CC BY 4.0 License"},{id:"cg",name:"css.gg",projectUrl:"https://github.com/astrit/css.gg",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"vsc",name:"VS Code Icons",projectUrl:"https://github.com/microsoft/vscode-codicons",license:"CC BY 4.0",licenseUrl:"https://creativecommons.org/licenses/by/4.0/"}],s0={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a0=N.createContext&&N.createContext(s0),us=function(){return us=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},us.apply(this,arguments)},tz=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r};function N6(e){return e&&e.map(function(t,r){return N.createElement(t.tag,us({key:r},t.attr),N6(t.child))})}function rz(e){return function(t){return N.createElement(L6,us({attr:us({},e.attr)},t),N6(e.child))}}function L6(e){var t=function(r){var n=e.attr,s=e.size,a=e.title,o=tz(e,["attr","size","title"]),i=s||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),N.createElement("svg",us({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:c,style:us(us({color:e.color||r.color},r.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&N.createElement("title",null,a),e.children)};return a0!==void 0?N.createElement(a0.Consumer,null,function(r){return t(r)}):t(s0)}const lu=rw(Object.freeze(Object.defineProperty({__proto__:null,DefaultContext:s0,GenIcon:rz,IconBase:L6,IconContext:a0,IconsManifest:ez},Symbol.toStringTag,{value:"Module"})));var z6;function nz(){if(z6)return n0;z6=1;var e=lu.GenIcon;return n0.IoIosArrowDown=function(r){return e({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"}}]})(r)},n0}var sz=nz(),o0={},R6;function az(){if(R6)return o0;R6=1;var e=lu.GenIcon;return o0.AiOutlineCopy=function(r){return e({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]})(r)},o0}var oz=az();//! moment.js
106
+ `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class mO extends oe{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class ff extends oe{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}const ig="0x6492649264926492649264926492649264926492649264926492649264926492";function bO(e){if(Pe(e,-32)!==ig)throw new xO(e)}function yO(e){const{data:t,signature:r,to:n}=e;return ft(df(sg("address, bytes, bytes"),[n,t,r]),ig)}function gO(e){try{return bO(e),!0}catch{return!1}}let xO=class extends oe{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}};function wO(e){return vO(e,"Hex")}function vO(e,t){const r=t,n=(()=>{if(typeof e=="string"){if(e.length>3&&e.length%2!==0)throw new wF(e);return cs(e)}return e})(),s=uf(n,{recursiveReadLimit:Number.POSITIVE_INFINITY});return cg(s,r)}function cg(e,t="Hex"){if(e.bytes.length===0)return t==="Hex"?Pt(e.bytes):e.bytes;const r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){const s=lg(e,r,128),a=e.readBytes(s);return t==="Hex"?Pt(a):a}const n=lg(e,r,192);return EO(e,n,t)}function lg(e,t,r){if(r===128&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new oe("Invalid RLP prefix")}function EO(e,t,r){const n=e.position,s=[];for(;e.position-n<t;)s.push(cg(e,r));return s}function kO(e,t){const{as:r}=t,n=ug(e),s=uf(new Uint8Array(n.length));return n.encode(s),r==="Hex"?Pt(s.bytes):s.bytes}function CO(e,t={}){const{as:r="Hex"}=t;return kO(e,{as:r})}function ug(e){return Array.isArray(e)?TO(e.map(t=>ug(t))):SO(e)}function TO(e){const t=e.reduce((s,a)=>s+a.length,0),r=dg(t);return{length:t<=55?1+t:1+r+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+r),r===1?s.pushUint8(t):r===2?s.pushUint16(t):r===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:a}of e)a(s)}}}function SO(e){const t=typeof e=="string"?cs(e):e,r=dg(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+r),r===1?s.pushUint8(t.length):r===2?s.pushUint16(t.length):r===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function dg(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=16777215)return 3;if(e<=4294967295)return 4;throw new oe("Length is too large.")}function AO(e,t={}){return typeof e.chainId=="string"?pg(e):{...e,...t.signature}}function pg(e){const{address:t,chainId:r,nonce:n}=e,s=Jy(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...s}}function PO(e){return e.map(pg)}function IO(e){const{address:t,chainId:r,nonce:n,...s}=e;return{address:t,chainId:Z(r),nonce:Z(n),...eg(s)}}function BO(e){return e.map(IO)}const FO="0x8010801080108010801080108010801080108010801080108010801080108010",UO=sg("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function fg(e){if(typeof e=="string"){if(Pe(e,-32)!==FO)throw new DO(e)}else Ml(e.authorization)}function OO(e){fg(e);const t=Pi(Pe(e,-64,-32)),r=Pe(e,-t-64,-64),n=Pe(e,0,-t-64),[s,a,o]=dO(UO,r);return{authorization:AO({address:s.delegation,chainId:Number(s.chainId),nonce:s.nonce,yParity:s.yParity,r:s.r,s:s.s}),signature:n,...o&&o!=="0x"?{data:o,to:a}:{}}}function _O(e){try{return fg(e),!0}catch{return!1}}class DO extends oe{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}const Gl=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],hf=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],hg=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],mg=[...hg,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],MO=[...hg,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],bg=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],yg=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],gg=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],xg=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],wg=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],vg="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",NO="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",LO="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",mf="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033",bf="/docs/contract/encodeDeployData";function jl(e){const{abi:t,args:r,bytecode:n}=e;if(!r||r.length===0)return n;const s=t.find(o=>"type"in o&&o.type==="constructor");if(!s)throw new qT({docsPath:bf});if(!("inputs"in s))throw new xb({docsPath:bf});if(!s.inputs||s.inputs.length===0)throw new xb({docsPath:bf});const a=os(s.inputs,r);return lr([n,a])}const Eg="/docs/contract/encodeFunctionData";function zO(e){const{abi:t,args:r,functionName:n}=e;let s=t[0];if(n){const a=$s({abi:t,args:r,name:n});if(!a)throw new La(n,{docsPath:Eg});s=a}if(s.type!=="function")throw new La(void 0,{docsPath:Eg});return{abi:[s],functionName:qo(Mr(s))}}function fr(e){const{args:t}=e,{abi:r,functionName:n}=(()=>{var i;return e.abi.length===1&&((i=e.functionName)!=null&&i.startsWith("0x"))?e:zO(e)})(),s=r[0],a=n,o="inputs"in s&&s.inputs?os(s.inputs,t??[]):void 0;return lr([a,o??"0x"])}function Qa(e,t){if(!nt(e,{strict:!1}))throw new Ct({address:e});if(!nt(t,{strict:!1}))throw new Ct({address:t});return e.toLowerCase()===t.toLowerCase()}function RO(e){const t=Ut(`0x${e.substring(4)}`).substring(26);return Ro(`0x${t}`)}async function HO({hash:e,signature:t}){const r=Or(e)?e:Fe(e),{secp256k1:n}=await Promise.resolve().then(()=>PU);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:l,s:u,v:d,yParity:f}=t,h=Number(f??d),y=kg(h);return new n.Signature(Le(l),Le(u)).addRecoveryBit(y)}const o=Or(t)?t:Fe(t);if(ut(o)!==65)throw new Error("invalid signature length");const i=ir(`0x${o.slice(130)}`),c=kg(i);return n.Signature.fromCompact(o.substring(2,130)).addRecoveryBit(c)})().recoverPublicKey(r.substring(2)).toHex(!1)}`}function kg(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function Cg({hash:e,signature:t}){return RO(await HO({hash:e,signature:t}))}function $O(e){const{chainId:t,nonce:r,to:n}=e,s=e.contractAddress??e.address,a=Ut(lr(["0x05",Jr([t?q(t):"0x",s,r?q(r):"0x"])]));return n==="bytes"?or(a):a}async function Vl(e){const{authorization:t,signature:r}=e;return Cg({hash:$O(t),signature:r??t})}async function GO({address:e,authorization:t,signature:r}){return Qa(rp(e),await Vl({authorization:t,signature:r}))}function se(e,t,r){const n=e[t.name];if(typeof n=="function")return n;const s=e[r];return typeof s=="function"?s:a=>t(e,a)}function jO({r:e,s:t,to:r="hex",v:n,yParity:s}){const a=(()=>{if(s===0||s===1)return s;if(n&&(n===27n||n===28n||n>=35n))return n%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),o=`0x${new Bi.Signature(Le(e),Le(t)).toCompactHex()}${a===0?"1b":"1c"}`;return r==="hex"?o:or(o)}function VO(e){return{address:e.address,amount:Z(e.amount),index:Z(e.index),validatorIndex:Z(e.validatorIndex)}}function Tg(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:Z(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:Z(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:Z(e.gasLimit)},...typeof e.number=="bigint"&&{number:Z(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:Z(e.prevRandao)},...typeof e.time=="bigint"&&{time:Z(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(VO)}}}const WO="0x82ad56cb",yf="/docs/contract/decodeFunctionResult";function Qs(e){const{abi:t,args:r,functionName:n,data:s}=e;let a=t[0];if(n){const i=$s({abi:t,args:r,name:n});if(!i)throw new La(n,{docsPath:yf});a=i}if(a.type!=="function")throw new La(void 0,{docsPath:yf});if(!a.outputs)throw new Cb(a.name,{docsPath:yf});const o=Yo(a.outputs,s);if(o&&o.length>1)return o;if(o&&o.length===1)return o[0]}function gf(){let e=()=>{},t=()=>{};return{promise:new Promise((n,s)=>{e=n,t=s}),resolve:e,reject:t}}const xf=new Map;function Sg({fn:e,id:t,shouldSplitBatch:r,wait:n=0,sort:s}){const a=async()=>{const u=c();o();const d=u.map(({args:f})=>f);d.length!==0&&e(d).then(f=>{s&&Array.isArray(f)&&f.sort(s);for(let h=0;h<u.length;h++){const{resolve:y}=u[h];y==null||y([f[h],f])}}).catch(f=>{for(let h=0;h<u.length;h++){const{reject:y}=u[h];y==null||y(f)}})},o=()=>xf.delete(t),i=()=>c().map(({args:u})=>u),c=()=>xf.get(t)||[],l=u=>xf.set(t,[...c(),u]);return{flush:o,async schedule(u){const{promise:d,resolve:f,reject:h}=gf();return(r==null?void 0:r([...i(),u]))&&a(),c().length>0?(l({args:u,resolve:f,reject:h}),d):(l({args:u,resolve:f,reject:h}),setTimeout(a,n),d)}}}function Ag(e){if(!(!e||e.length===0))return e.reduce((t,{slot:r,value:n})=>{if(r.length!==66)throw new y1({size:r.length,targetSize:66,type:"hex"});if(n.length!==66)throw new y1({size:n.length,targetSize:66,type:"hex"});return t[r]=n,t},{})}function qO(e){const{balance:t,nonce:r,state:n,stateDiff:s,code:a}=e,o={};if(a!==void 0&&(o.code=a),t!==void 0&&(o.balance=q(t)),r!==void 0&&(o.nonce=q(r)),n!==void 0&&(o.state=Ag(n)),s!==void 0){if(o.state)throw new yS;o.stateDiff=Ag(s)}return o}function wf(e){if(!e)return;const t={};for(const{address:r,...n}of e){if(!nt(r,{strict:!1}))throw new Ct({address:r});if(t[r])throw new bS({address:r});t[r]=qO(n)}return t}async function Di(e,t){var F,D,k,P;const{account:r=e.account,authorizationList:n,batch:s=!!((F=e.batch)!=null&&F.multicall),blockNumber:a,blockTag:o=e.experimental_blockTag??"latest",accessList:i,blobs:c,blockOverrides:l,code:u,data:d,factory:f,factoryData:h,gas:y,gasPrice:g,maxFeePerBlobGas:E,maxFeePerGas:v,maxPriorityFeePerGas:w,nonce:T,to:C,value:_,stateOverride:z,...S}=t,m=r?Ze(r):void 0;if(u&&(f||h))throw new $("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(u&&C)throw new $("Cannot provide both `code` & `to` as parameters.");const b=u&&d,x=f&&h&&C&&d,A=b||x,I=b?Pg({code:u,data:d}):x?ZO({data:d,factory:f,factoryData:h,to:C}):d;try{tn(t);const U=(typeof a=="bigint"?q(a):void 0)||o,L=l?Tg(l):void 0,H=wf(z),G=(P=(k=(D=e.chain)==null?void 0:D.formatters)==null?void 0:k.transactionRequest)==null?void 0:P.format,pe=(G||Dr)({...Ws(S,{format:G}),accessList:i,account:m,authorizationList:n,blobs:c,data:I,gas:y,gasPrice:g,maxFeePerBlobGas:E,maxFeePerGas:v,maxPriorityFeePerGas:w,nonce:T,to:A?void 0:C,value:_},"call");if(s&&YO({request:pe})&&!H&&!L)try{return await KO(e,{...pe,blockNumber:a,blockTag:o})}catch(de){if(!(de instanceof X1)&&!(de instanceof Vd))throw de}const me=(()=>{const de=[pe,U];return H&&L?[...de,H,L]:H?[...de,H]:L?[...de,{},L]:de})(),ie=await e.request({method:"eth_call",params:me});return ie==="0x"?{data:void 0}:{data:ie}}catch(O){const U=XO(O),{offchainLookup:L,offchainLookupSignature:H}=await Promise.resolve().then(()=>FN);if(e.ccipRead!==!1&&(U==null?void 0:U.slice(0,10))===H&&C)return{data:await L(e,{data:U,to:C})};throw A&&(U==null?void 0:U.slice(0,10))==="0x101bb98d"?new vS({factory:f}):Tp(O,{...t,account:m,chain:e.chain})}}function YO({request:e}){const{data:t,to:r,...n}=e;return!(!t||t.startsWith(WO)||!r||Object.values(n).filter(s=>typeof s<"u").length>0)}async function KO(e,t){var g;const{batchSize:r=1024,deployless:n=!1,wait:s=0}=typeof((g=e.batch)==null?void 0:g.multicall)=="object"?e.batch.multicall:{},{blockNumber:a,blockTag:o=e.experimental_blockTag??"latest",data:i,to:c}=t,l=(()=>{if(n)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return Da({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new X1})(),d=(typeof a=="bigint"?q(a):void 0)||o,{schedule:f}=Sg({id:`${e.uid}.${d}`,wait:s,shouldSplitBatch(E){return E.reduce((w,{data:T})=>w+(T.length-2),0)>r*2},fn:async E=>{const v=E.map(C=>({allowFailure:!0,callData:C.data,target:C.to})),w=fr({abi:Gl,args:[v],functionName:"aggregate3"}),T=await e.request({method:"eth_call",params:[{...l===null?{data:Pg({code:mf,data:w})}:{to:l,data:w}},d]});return Qs({abi:Gl,args:[v],functionName:"aggregate3",data:T||"0x"})}}),[{returnData:h,success:y}]=await f({data:i,to:c});if(!y)throw new ll({data:h});return h==="0x"?{data:void 0}:{data:h}}function Pg(e){const{code:t,data:r}=e;return jl({abi:zb(["constructor(bytes, bytes)"]),bytecode:vg,args:[t,r]})}function ZO(e){const{data:t,factory:r,factoryData:n,to:s}=e;return jl({abi:zb(["constructor(address, bytes, address, bytes)"]),bytecode:NO,args:[s,t,r,n]})}function XO(e){var r;if(!(e instanceof $))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(r=t.data)==null?void 0:r.data:t.data}const QO=3;function Js(e,{abi:t,address:r,args:n,docsPath:s,functionName:a,sender:o}){const i=e instanceof ll?e:e instanceof $?e.walk(y=>"data"in y)||e.walk():{},{code:c,data:l,details:u,message:d,shortMessage:f}=i,h=e instanceof Wo?new wS({functionName:a}):[QO,js.code].includes(c)&&(l||u||d||f)||c===is.code&&u==="execution reverted"&&l?new kp({abi:t,data:typeof l=="object"?l.data:l,functionName:a,message:i instanceof Cp?u:f??d}):e;return new Zb(h,{abi:t,args:n,contractAddress:r,docsPath:s,functionName:a,sender:o})}async function zr(e,t){const{abi:r,address:n,args:s,functionName:a,...o}=t,i=fr({abi:r,args:s,functionName:a});try{const{data:c}=await se(e,Di,"call")({...o,data:i,to:n});return Qs({abi:r,args:s,functionName:a,data:c||"0x"})}catch(c){throw Js(c,{abi:r,address:n,args:s,docsPath:"/docs/contract/readContract",functionName:a})}}async function Mi(e,t){var c,l,u,d;const{address:r,chain:n=e.chain,hash:s,erc6492VerifierAddress:a=t.universalSignatureVerifierAddress??((l=(c=n==null?void 0:n.contracts)==null?void 0:c.erc6492Verifier)==null?void 0:l.address),multicallAddress:o=t.multicallAddress??((d=(u=n==null?void 0:n.contracts)==null?void 0:u.multicall3)==null?void 0:d.address)}=t;if(n!=null&&n.verifyHash)return await n.verifyHash(e,t);const i=(()=>{const f=t.signature;return Or(f)?f:typeof f=="object"&&"r"in f&&"s"in f?jO(f):vt(f)})();try{return _O(i)?await JO(e,{...t,multicallAddress:o,signature:i}):await e_(e,{...t,verifierAddress:a,signature:i})}catch(f){try{if(Qa(rp(r),await Cg({hash:s,signature:i})))return!0}catch{}if(f instanceof ea)return!1;throw f}}async function JO(e,t){var E;const{address:r,blockNumber:n,blockTag:s,hash:a,multicallAddress:o}=t,{authorization:i,data:c,signature:l,to:u}=OO(t.signature);if(await $l(e,{address:r,blockNumber:n,blockTag:s})===lr(["0xef0100",i.address]))return await t_(e,{address:r,blockNumber:n,blockTag:s,hash:a,signature:l});const f={address:i.address,chainId:Number(i.chainId),nonce:Number(i.nonce),r:q(i.r,{size:32}),s:q(i.s,{size:32}),yParity:i.yParity};if(!await GO({address:r,authorization:f}))throw new ea;const y=await se(e,zr,"readContract")({...o?{address:o}:{code:mf},authorizationList:[f],abi:Gl,blockNumber:n,blockTag:"pending",functionName:"aggregate3",args:[[...c?[{allowFailure:!0,target:u??r,callData:c}]:[],{allowFailure:!0,target:r,callData:fr({abi:gg,functionName:"isValidSignature",args:[a,l]})}]]}),g=(E=y[y.length-1])==null?void 0:E.returnData;if(g!=null&&g.startsWith("0x1626ba7e"))return!0;throw new ea}async function e_(e,t){const{address:r,factory:n,factoryData:s,hash:a,signature:o,verifierAddress:i,...c}=t,l=await(async()=>!n&&!s||gO(o)?o:yO({data:s,signature:o,to:n}))(),u=i?{to:i,data:fr({abi:xg,functionName:"isValidSig",args:[r,a,l]}),...c}:{data:jl({abi:xg,args:[r,a,l],bytecode:LO}),...c},{data:d}=await se(e,Di,"call")(u).catch(f=>{throw f instanceof Kb?new ea:f});if(r8(d??"0x0"))return!0;throw new ea}async function t_(e,t){const{address:r,blockNumber:n,blockTag:s,hash:a,signature:o}=t;if((await se(e,zr,"readContract")({address:r,abi:gg,args:[a,o],blockNumber:n,blockTag:s,functionName:"isValidSignature"}).catch(c=>{throw c instanceof Zb?new ea:c})).startsWith("0x1626ba7e"))return!0;throw new ea}class ea extends Error{}function r_(e,t={}){return typeof e.chainId=="string"?Ig(e):t.signature?{...e,signature:t.signature}:e}function Ig(e){const{address:t,chainId:r,nonce:n}=e,s=Rl(e.signature);return{address:t,chainId:Number(r),nonce:BigInt(n),signature:s}}function n_(e){return e.map(t=>Ig(t))}function s_(e){const[t,r,n,s]=e,a={address:r,chainId:t==="0x"?0:Number(t),nonce:n==="0x"?0n:BigInt(n)};return s&&(a.signature=Za(s)),r_(a)}function a_(e){const t=[];for(const r of e)t.push(s_(r));return t}function o_(e){const{address:t,chainId:r,nonce:n,signature:s}=e;return{address:t,chainId:Z(r),nonce:Z(n),signature:sf(s)}}function i_(e){return e.map(t=>o_(t))}function c_(e){const{address:t,chainId:r,nonce:n}=e,s=e.signature?Hl(e.signature):void 0;return[r?Z(r):"0x",t,n?Z(n):"0x",...s?[s]:[]]}function l_(e){if(!e||e.length===0)return[];const t=[];for(const r of e)t.push(c_(r));return t}function u_(e,t={}){return typeof e.expiry=="string"?Bg(e):t.signature?{...e,signature:Fi(t.signature)}:e}function Bg(e){const{chainId:t="0x0",keyId:r,expiry:n=0,limits:s,keyType:a}=e,o=Rl(e.signature);return{address:r,chainId:t==="0x"?0n:yt(t),expiry:Number(n),limits:s==null?void 0:s.map(i=>({token:i.token,limit:BigInt(i.limit)})),signature:o,type:a}}function d_(e){const[t,r]=e,[n,s,a,o,i]=t,c=(()=>{switch(s){case"0x":case"0x00":return"secp256k1";case"0x01":return"p256";case"0x02":return"webAuthn";default:throw new Error(`Invalid key type: ${s}`)}})(),l={address:a,expiry:typeof o<"u"?Pi(o):void 0,type:c,...n!=="0x"?{chainId:yt(n)}:{},...typeof o<"u"?{expiry:Pi(o)}:{},...typeof i<"u"?{limits:i.map(([u,d])=>({token:u,limit:BigInt(d)}))}:{}};return r&&(l.signature=Za(r)),u_(l)}function p_(e){const{address:t,chainId:r=0n,expiry:n,limits:s,type:a,signature:o}=e;return{chainId:r===0n?"0x":Z(r),expiry:typeof n=="number"?Z(n):null,limits:s==null?void 0:s.map(({token:i,limit:c})=>({token:i,limit:Z(c)})),keyId:t,signature:sf(o),keyType:a}}function f_(e){const{address:t,chainId:r=0n,expiry:n,limits:s}=e,a=e.signature?Hl(e.signature):void 0,o=(()=>{switch(e.type){case"secp256k1":return"0x";case"p256":return"0x01";case"webAuthn":return"0x02";default:throw new Error(`Invalid key type: ${e.type}`)}})();return[[r===0n?"0x":Z(r),o,t,typeof n=="number"?Z(n):void 0,(s==null?void 0:s.map(c=>[c.token,Z(c.limit)]))??void 0].filter(Boolean),...a?[a]:[]]}const h_="0x20c0";function Fg(e){if(typeof e=="string")return Lr(e),e;const t=Z(e,{size:18});return ft(h_,t)}const Ug={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},Og={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function m_(e,t={}){if(!e)return null;const r=Jy(e),n={...e,...r};return n.blockNumber=e.blockNumber?BigInt(e.blockNumber):null,n.data=e.input,n.gas=BigInt(e.gas??0n),n.nonce=BigInt(e.nonce??0n),n.transactionIndex=e.transactionIndex?Number(e.transactionIndex):null,n.value=BigInt(e.value??0n),e.authorizationList&&(n.authorizationList=PO(e.authorizationList)),e.chainId&&(n.chainId=Number(e.chainId)),e.gasPrice&&(n.gasPrice=BigInt(e.gasPrice)),e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=BigInt(e.maxFeePerBlobGas)),e.maxFeePerGas&&(n.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.type&&(n.type=Og[e.type]??e.type),r&&(n.v=Jp(r.yParity)),n}const _g={...Ug,tempo:"0x76"},b_={...Og,"0x76":"tempo"};function y_(e,t={}){if(!e)return null;const r=m_(e);return r.type=b_[e.type],e.aaAuthorizationList&&(r.authorizationList=n_(e.aaAuthorizationList),delete r.aaAuthorizationList),e.calls&&(r.calls=e.calls.map(n=>({to:n.to,value:n.value&&n.value!=="0x"?BigInt(n.value):void 0,data:n.input||n.data||"0x"}))),e.feeToken&&(r.feeToken=e.feeToken),e.nonceKey&&(r.nonceKey=BigInt(e.nonceKey)),e.signature&&(r.signature=Rl(e.signature)),e.validAfter&&(r.validAfter=Number(e.validAfter)),e.validBefore&&(r.validBefore=Number(e.validBefore)),e.keyAuthorization&&(r.keyAuthorization=Bg(e.keyAuthorization)),e.feePayerSignature&&(r.feePayerSignature=Xp(e.feePayerSignature),r.feePayerSignature.v=Jp(r.feePayerSignature.yParity)),r}function g_(e){const t={};return typeof e.accessList<"u"&&(t.accessList=e.accessList),typeof e.authorizationList<"u"&&(t.authorizationList=BO(e.authorizationList)),typeof e.blobVersionedHashes<"u"&&(t.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(t.blobs=e.blobs),typeof e.chainId<"u"&&(t.chainId=Z(e.chainId)),typeof e.data<"u"?(t.data=e.data,t.input=e.data):typeof e.input<"u"&&(t.data=e.input,t.input=e.input),typeof e.from<"u"&&(t.from=e.from),typeof e.gas<"u"&&(t.gas=Z(e.gas)),typeof e.gasPrice<"u"&&(t.gasPrice=Z(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(t.maxFeePerBlobGas=Z(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(t.maxFeePerGas=Z(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=Z(e.maxPriorityFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=Z(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(t.nonce=Z(e.nonce)),typeof e.to<"u"&&(t.to=e.to),typeof e.type<"u"&&(t.type=Ug[e.type]||e.type),typeof e.value<"u"&&(t.value=Z(e.value)),t}function x_(e){const t=g_({...e,authorizationList:void 0});e.authorizationList&&(t.authorizationList=i_(e.authorizationList)),e.calls&&(t.calls=e.calls.map(n=>({to:n.to,value:n.value?Z(n.value):"0x",data:n.data??"0x"}))),typeof e.feeToken<"u"&&(t.feeToken=Fg(e.feeToken)),e.keyAuthorization&&(t.keyAuthorization=p_(e.keyAuthorization)),typeof e.validBefore<"u"&&(t.validBefore=Z(e.validBefore)),typeof e.validAfter<"u"&&(t.validAfter=Z(e.validAfter));const r=(()=>{if(e.nonceKey==="random")return fy(6);if(typeof e.nonceKey=="bigint")return Z(e.nonceKey)})();return r&&(t.nonceKey=r),(typeof e.calls<"u"||typeof e.feeToken<"u"||typeof e.keyAuthorization<"u"||typeof e.nonceKey<"u"||typeof e.validBefore<"u"||typeof e.validAfter<"u"||e.type==="tempo")&&(t.type=_g.tempo,delete t.data,delete t.input,delete t.to,delete t.value),t}function w_(e){const t=[];for(let r=0;r<e.length;r++){const[n,s]=e[r];n&&Lr(n,{strict:!1}),t.push({address:n,storageKeys:s.map(a=>RF(a)?a:_p(a))})}return t}function v_(e){if(!e||e.length===0)return[];const t=[];for(const{address:r,storageKeys:n}of e){for(let s=0;s<n.length;s++)if(bt(n[s])!==32)throw new E_({storageKey:n[s]});r&&Lr(r,{strict:!1}),t.push([r,n])}return t}class E_ extends oe{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${bt(t)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccessList.InvalidStorageKeySizeError"})}}const Dg={wei:0,gwei:9,szabo:12,finney:15,ether:18};function k_(e,t=0){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[s,a]=[r.slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${s||"0"}${a?`.${a}`:""}`}function vf(e,t="wei"){return k_(e,Dg.gwei-Dg[t])}class C_ extends oe{constructor({feeCap:t}={}){super(`The fee cap (\`maxFeePerGas\`/\`maxPriorityFeePerGas\`${t?` = ${vf(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.FeeCapTooHighError"})}}class T_ extends oe{constructor({chainId:t}){super(typeof t<"u"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidChainIdError"})}}class S_ extends oe{constructor({attributes:t,serialized:r,type:n}){const s=Object.entries(t).map(([a,o])=>typeof o>"u"?a:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${n}" was provided.`,{metaMessages:[`Serialized Transaction: "${r}"`,s.length>0?`Missing Attributes: ${s.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidSerializedError"})}}class A_ extends oe{constructor({maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${vf(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${vf(r)} gwei`:""}).`].join(`
107
+ `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.TipAboveFeeCapError"})}}const P_="0x78",I_="0x76",Mg="tempo";function Ef(e){const{calls:t,chainId:r,maxFeePerGas:n,maxPriorityFeePerGas:s,validBefore:a,validAfter:o}=e;if(!t||t.length===0)throw new D_;if(typeof a=="number"&&typeof o=="number"&&a<=o)throw new M_({validBefore:a,validAfter:o});if(t)for(const i of t)i.to&&Lr(i.to,{strict:!1});if(r<=0)throw new T_({chainId:r});if(n&&BigInt(n)>2n**256n-1n)throw new C_({feeCap:n});if(s&&n&&s>n)throw new A_({maxFeePerGas:n,maxPriorityFeePerGas:s})}function B_(e){const t=wO(Pe(e,1)),[r,n,s,a,o,i,c,l,u,d,f,h,y,g,E]=t,v=Array.isArray(g)?g:void 0,w=v?E:g;if(!(t.length===13||t.length===14||t.length===15))throw new S_({attributes:{authorizationList:y,chainId:r,maxPriorityFeePerGas:n,maxFeePerGas:s,gas:a,calls:o,accessList:i,keyAuthorization:v,nonceKey:c,nonce:l,validBefore:u,validAfter:d,feeToken:f,feePayerSignatureOrSender:h,...t.length>12?{signature:w}:{}},serialized:e,type:Mg});let T={chainId:Number(r),type:Mg};if(Nr(a)&&a!=="0x"&&(T.gas=BigInt(a)),Nr(l)&&(T.nonce=l==="0x"?0n:BigInt(l)),Nr(s)&&s!=="0x"&&(T.maxFeePerGas=BigInt(s)),Nr(n)&&n!=="0x"&&(T.maxPriorityFeePerGas=BigInt(n)),Nr(c)&&(T.nonceKey=c==="0x"?0n:BigInt(c)),Nr(u)&&u!=="0x"&&(T.validBefore=Number(u)),Nr(d)&&d!=="0x"&&(T.validAfter=Number(d)),Nr(f)&&f!=="0x"&&(T.feeToken=f),o&&o!=="0x"){const _=o;T.calls=_.map(z=>{const[S,m,b]=z,x={};return S&&S!=="0x"&&(x.to=S),m&&m!=="0x"&&(x.value=BigInt(m)),b&&b!=="0x"&&(x.data=b),x})}(i==null?void 0:i.length)!==0&&i!=="0x"&&(T.accessList=w_(i)),(y==null?void 0:y.length)!==0&&y!=="0x"&&(T.authorizationList=a_(y)),h!=="0x"&&h!==void 0&&(h==="0x00"||_l(h)?T.feePayerSignature=null:T.feePayerSignature=DU(h)),v&&(T.keyAuthorization=d_(v));const C=w?Za(w):void 0;return C&&(T={...T,signature:C}),Ef(T),T}function F_(e,t={}){const{feePayerSignature:r,signature:n}=t,s=typeof e=="string"?B_(e):e;return Ef(s),{...s,...n?{signature:Fi(n)}:{},...r?{feePayerSignature:Nl(r)}:{},type:"tempo"}}function Ni(e,t={}){const{accessList:r,authorizationList:n,calls:s,chainId:a,feeToken:o,gas:i,keyAuthorization:c,nonce:l,nonceKey:u,maxFeePerGas:d,maxPriorityFeePerGas:f,validBefore:h,validAfter:y}=e;Ef(e);const g=v_(r),E=t.signature||e.signature,v=l_(n),w=s.map(_=>[_.to??"0x",_.value?Z(_.value):"0x",_.data??"0x"]),T=(()=>{if(t.sender)return t.sender;const _=typeof t.feePayerSignature<"u"?t.feePayerSignature:e.feePayerSignature;return _===null?"0x00":_?NU(_):"0x"})(),C=[Z(a),f?Z(f):"0x",d?Z(d):"0x",i?Z(i):"0x",w,g,u?Z(u):"0x",l?Z(l):"0x",typeof h=="number"?Z(h):"0x",typeof y=="number"?Z(y):"0x",typeof o=="bigint"||typeof o=="string"?Fg(o):"0x",T,v,...c?[f_(c)]:[],...E?[Hl(Fi(E))]:[]];return ft(t.format==="feePayer"?P_:I_,CO(C))}function U_(e){return O_(e,{presign:!0})}function O_(e,t={}){const r=Ni({...e,...t.presign?{signature:void 0}:{}});return Ii(r)}function __(e,t){const{sender:r}=t,n=Ni({...e,signature:void 0},{sender:r,format:"feePayer"});return Ii(n)}class D_ extends oe{constructor(){super("Calls list cannot be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.CallsEmptyError"})}}class M_ extends oe{constructor({validBefore:t,validAfter:r}){super(`validBefore (${t}) must be greater than validAfter (${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.InvalidValidityWindowError"})}}function Ng(e){const t=e.account;return t!=null&&t.keyType&&t.keyType!=="secp256k1"||typeof e.calls<"u"||typeof e.feePayer<"u"||typeof e.feeToken<"u"||typeof e.keyAuthorization<"u"||typeof e.nonceKey<"u"||typeof e.signature<"u"||typeof e.validBefore<"u"||typeof e.validAfter<"u"?"tempo":e.type?e.type:op(e)}function kf(e){try{return Ng(e)==="tempo"}catch{return!1}}async function N_(e,t){if(!kf(e)){if(t&&"type"in t&&t.type!=="secp256k1")throw new Error("Unsupported signature type. Expected `secp256k1` but got `"+t.type+"`.");if(t&&"type"in t){const{r:n,s,yParity:a}=t==null?void 0:t.signature;return Wc(e,{r:Z(n,{size:32}),s:Z(s,{size:32}),yParity:a})}return Wc(e,t)}if(Ng(e)==="tempo")return L_(e,t);throw new Error("Unsupported transaction type")}async function L_(e,t){var l;const r=(()=>{if(e.signature)return e.signature;if(t&&"type"in t)return t;if(t)return Fi({r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)})})(),{chainId:n,feePayer:s,feePayerSignature:a,nonce:o,...i}=e,c={...i,calls:(l=i.calls)!=null&&l.length?i.calls:[{to:i.to||(!i.data||i.data==="0x"?"0x0000000000000000000000000000000000000000":void 0),value:i.value,data:i.data}],chainId:Number(n),feePayerSignature:a?{r:BigInt(a.r),s:BigInt(a.s),yParity:Number(a.yParity)}:s?null:void 0,type:"tempo",...o?{nonce:BigInt(o)}:{}};if(s===!0&&delete c.feeToken,r&&typeof e.feePayer=="object"){const u=F_(c,{signature:r}),d=(()=>{if(e.from)return e.from;if(r.type==="secp256k1")return Zy({payload:U_(u),signature:r.signature});throw new Error("Unable to extract sender from transaction or signature.")})(),f=__(u,{sender:d}),h=await e.feePayer.sign({hash:f});return Ni(u,{feePayerSignature:Nl(h)})}if(s===!0){const u=Ni(c,{feePayerSignature:null,signature:r});return e.from&&r?ft(u,e.from,"0xfeefeefeefee"):u}return Ni({...c,...s?{feeToken:void 0}:{}},{feePayerSignature:void 0,signature:r})}function z_(e){if(!kf(e))return Ns(e);const{feePayerSignature:t,gasPrice:r,nonce:n,...s}=y_(e);return{...s,accessList:s.accessList,feePayerSignature:t?{r:Z(t.r,{size:32}),s:Z(t.s,{size:32}),v:BigInt(t.v??27),yParity:t.yParity}:void 0,nonce:Number(n),typeHex:_g[s.type],type:s.type}}function R_(e){return Rc(e)}function H_(e,t){const r=e,n=r.account?Ze(r.account):void 0;if(!kf(r))return Dr(e);t&&(r.calls=r.calls??[{to:e.to||(!e.data||e.data==="0x"?"0x0000000000000000000000000000000000000000":void 0),value:e.value,data:e.data}]),r.feePayer===!0&&delete r.feeToken;const s=x_({...r,type:"tempo"});t==="estimateGas"&&(s.maxFeePerGas=void 0,s.maxPriorityFeePerGas=void 0),s.to=void 0,s.data=void 0,s.value=void 0;const[a,o]=(()=>{const c=n&&"keyType"in n?n.keyType:n==null?void 0:n.source;return c?c==="webAuthn"?["webAuthn",`0x${"ff".repeat(1400)}`]:["p256","secp256k1"].includes(c)?[c,void 0]:[void 0,void 0]:[void 0,void 0]})(),i=n&&"accessKeyAddress"in n?n.accessKeyAddress:void 0;return{...s,...o?{keyData:o}:{},...i?{keyId:i}:{},...a?{keyType:a}:{},...r.feePayer?{feePayer:typeof r.feePayer=="object"?Ze(r.feePayer):r.feePayer}:{}}}const $_=G_();function G_(){return new Map}function j_(e){return`${e.address.toLowerCase()}-${e.chainId}`}function Lg(e,t){const r=j_(t);let n=e.get(r);return n||(n={counter:0,resetScheduled:!1},e.set(r,n)),n}function V_(e,t){const r=Lg(e,t);r.counter=0,r.resetScheduled=!1}function W_(e,t){const r=Lg(e,t);r.resetScheduled||(r.resetScheduled=!0,queueMicrotask(()=>V_(e,t)));const n=r.counter;return r.counter++,n===0?0n:yt(fy(6))}const Cf={blockTime:1e3,extendSchema:R3(),formatters:{transaction:zc({exclude:["aaAuthorizationList"],format:z_}),transactionReceipt:_d({format:R_}),transactionRequest:Dd({format:H_})},prepareTransactionRequest:[async(e,{phase:t})=>{var n;const r=e;return t==="afterFillParameters"?(typeof r.nonceKey=="bigint"&&r.nonceKey>0n&&(r.gas=(r.gas??0n)+40000n),r):(r.nonceKey=(()=>{var o;if(typeof r.nonceKey<"u"&&r.nonceKey!=="random")return r.nonceKey;const s=((o=r.account)==null?void 0:o.address)??r.from;if(!s||!r.chain)return;const a=W_($_,{address:s,chainId:r.chain.id});if(a!==0n)return a})(),r.nonce=(()=>{if(typeof r.nonce=="number")return r.nonce;if(r.nonceKey)return 0})(),!r.feeToken&&((n=r.chain)!=null&&n.feeToken)&&(r.feeToken=r.chain.feeToken),r)},{runAt:["beforeFillTransaction","afterFillParameters"]}],serializers:{transaction:((e,t)=>N_(e,t))},async verifyHash(e,t){const{address:r,hash:n,signature:s}=t;if(typeof s=="string"&&s.endsWith(Xs.slice(2))){const a=Za(s);if(a.type!=="keychain"){const o=await $l(e,{address:r,blockNumber:t.blockNumber,blockTag:t.blockTag});if(!o||o==="0xef01007702c00000000000000000000000000000000000")return VU(a,{address:r,payload:n})}}return await se(e,Mi,"verifyHash")({...t,chain:null})}},q_=p({...Cf,id:42429,name:"Tempo Devnet",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.devnet.tempoxyz.dev"],webSocket:["wss://rpc.devnet.tempoxyz.dev"]}}}),Y_=p({...Cf,id:1337,name:"Tempo",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["http://localhost:8545"]}}}),K_=p({...Cf,id:42429,blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.tempo.xyz"}},name:"Tempo Testnet",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.testnet.tempo.xyz"],webSocket:["wss://rpc.testnet.tempo.xyz"]}}}),Z_=p({id:1559,name:"Tenet",network:"tenet-mainnet",nativeCurrency:{name:"TENET",symbol:"TENET",decimals:18},rpcUrls:{default:{http:["https://rpc.tenet.org"]}},blockExplorers:{default:{name:"TenetScan Mainnet",url:"https://tenetscan.io",apiUrl:"https://tenetscan.io/api"}},testnet:!1}),X_=p({id:752025,name:"Ternoa",nativeCurrency:{name:"Capsule Coin",symbol:"CAPS",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.zkevm.ternoa.network"]}},blockExplorers:{default:{name:"Ternoa Explorer",url:"https://explorer-mainnet.zkevm.ternoa.network"}},testnet:!1}),Q_=p({id:7,name:"ThaiChain",nativeCurrency:{name:"TCH",symbol:"TCH",decimals:18},rpcUrls:{default:{http:["https://rpc.thaichain.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp.thaichain.org",apiUrl:"https://exp.thaichain.org/api"}},contracts:{multicall3:{address:"0x0DaD6130e832c21719C5CE3bae93454E16A84826",blockCreated:4806386}},testnet:!1}),J_=p({id:8428,name:"THAT Mainnet",nativeCurrency:{name:"THAT",symbol:"THAT",decimals:18},rpcUrls:{default:{http:["https://api.thatchain.io/mainnet"]}},blockExplorers:{default:{name:"Blockscout",url:"https://that.blockscout.com"}},testnet:!1}),eD=p({id:361,name:"Theta Mainnet",nativeCurrency:{name:"TFUEL",symbol:"TFUEL",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-api.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"Theta Explorer",url:"https://explorer.thetatoken.org"}},testnet:!1}),tD=p({id:365,name:"Theta Testnet",nativeCurrency:{name:"TFUEL",symbol:"TFUEL",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-api-testnet.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"Theta Explorer",url:"https://testnet-explorer.thetatoken.org"}},testnet:!0}),rD=p({id:108,name:"ThunderCore Mainnet",nativeCurrency:{name:"TT",symbol:"TT",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.thundercore.com"]}},blockExplorers:{default:{name:"ThunderCore Explorer",url:"https://explorer-mainnet.thundercore.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1}),nD=p({id:997,name:"5ireChain Thunder Testnet",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Thunder Explorer",url:"https://testnet.5irescan.io/"}},testnet:!0}),sD=p({id:62092,name:"TikTrix Testnet",nativeCurrency:{name:"tTTX",symbol:"tTTX",decimals:18},rpcUrls:{default:{http:["https://tiktrix-rpc.xyz"]}},blockExplorers:{default:{name:"TikTrix Testnet Explorer",url:"https://tiktrix.xyz"}},testnet:!0}),aD=p({id:6969,name:"Tomb Mainnet",nativeCurrency:{name:"TOMB",symbol:"TOMB",decimals:18},rpcUrls:{default:{http:["https://rpc.tombchain.com"]}},blockExplorers:{default:{name:"Tomb Explorer",url:"https://tombscout.com"}},testnet:!1}),oD=p({...ur,id:61166,name:"Treasure",nativeCurrency:{decimals:18,name:"MAGIC",symbol:"MAGIC"},rpcUrls:{default:{http:["https://rpc.treasure.lol"],webSocket:["wss://rpc.treasure.lol/ws"]}},blockExplorers:{default:{name:"Treasure Block Explorer",url:"https://treasurescan.io"}},contracts:{multicall3:{address:"0x2e29fe39496a56856D8698bD43e1dF4D0CE6266a",blockCreated:101}},testnet:!1}),iD=p({...ur,id:978658,name:"Treasure Topaz Testnet",nativeCurrency:{decimals:18,name:"MAGIC",symbol:"MAGIC"},rpcUrls:{default:{http:["https://rpc.topaz.treasure.lol"],webSocket:["wss://rpc.topaz.treasure.lol/ws"]}},blockExplorers:{default:{name:"Treasure Topaz Block Explorer",url:"https://topaz.treasurescan.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:108112}},testnet:!0}),cD=p({id:728126428,name:"Tron",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://api.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://tronscan.org",apiUrl:"https://apilist.tronscanapi.com/api"}}}),lD=p({id:3448148188,name:"Tron Nile",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://nile.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://nile.tronscan.org"}},testnet:!0}),uD=p({id:2494104990,name:"Tron Shasta",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://api.shasta.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://shasta.tronscan.org"}},testnet:!0}),dD=p({id:8,name:"Ubiq Mainnet",nativeCurrency:{name:"UBQ",symbol:"UBQ",decimals:18},rpcUrls:{default:{http:["https://pyrus2.ubiqscan.io"]}},blockExplorers:{default:{name:"Ubiq Scan",url:"https://ubiqscan.io"}},testnet:!1}),pD=p({id:19991,name:"Ultra EVM",nativeCurrency:{decimals:18,name:"Ultra Token",symbol:"UOS"},rpcUrls:{default:{http:["https://evm.ultra.eosusa.io"]}},blockExplorers:{default:{name:"Ultra EVM Explorer",url:"https://evmexplorer.ultra.io"}}}),fD=p({id:18881,name:"Ultra EVM Testnet",nativeCurrency:{decimals:18,name:"Ultra Token",symbol:"UOS"},rpcUrls:{default:{http:["https://evm.test.ultra.eosusa.io"]}},blockExplorers:{default:{name:"Ultra EVM Testnet Explorer",url:"https://evmexplorer.testnet.ultra.io"}},testnet:!0}),hD=p({id:1231,name:"Ultron Mainnet",nativeCurrency:{name:"ULX",symbol:"ULX",decimals:18},rpcUrls:{default:{http:["https://ultron-rpc.net"]}},blockExplorers:{default:{name:"Ultron Scan",url:"https://ulxscan.com"}},testnet:!1}),mD=p({id:1230,name:"Ultron Testnet",nativeCurrency:{name:"ULX",symbol:"ULX",decimals:18},rpcUrls:{default:{http:["https://ultron-dev.io"]}},blockExplorers:{default:{name:"Ultron Scan",url:"https://explorer.ultron-dev.io"}},testnet:!0}),Wl=1,bD=p({...V,id:130,name:"Unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://mainnet.unichain.org/"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz",apiUrl:"https://api.uniscan.xyz/api"}},contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[Wl]:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{[Wl]:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{[Wl]:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"}}},sourceId:Wl}),ql=11155111,yD=p({...V,id:1301,name:"Unichain Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://sepolia.unichain.org"]}},blockExplorers:{default:{name:"Uniscan",url:"https://sepolia.uniscan.xyz",apiUrl:"https://api-sepolia.uniscan.xyz/api"}},contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},portal:{[ql]:{address:"0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD"}},l1StandardBridge:{[ql]:{address:"0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2"}},disputeGameFactory:{[ql]:{address:"0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b"}}},testnet:!0,sourceId:ql}),gD=p({id:8880,name:"Unique Mainnet",nativeCurrency:{decimals:18,name:"UNQ",symbol:"UNQ"},rpcUrls:{default:{http:["https://rpc.unique.network"]}},blockExplorers:{default:{name:"Unique Subscan",url:"https://unique.subscan.io/"}}}),xD=p({id:8882,name:"Opal Testnet",nativeCurrency:{decimals:18,name:"OPL",symbol:"OPL"},rpcUrls:{default:{http:["https://rpc-opal.unique.network"]}},blockExplorers:{default:{name:"Opal Subscan",url:"https://opal.subscan.io/"}},testnet:!0}),wD=p({id:8881,name:"Quartz Mainnet",nativeCurrency:{decimals:18,name:"QTZ",symbol:"QTZ"},rpcUrls:{default:{http:["https://rpc-quartz.unique.network"]}},blockExplorers:{default:{name:"Quartz Subscan",url:"https://quartz.subscan.io/"}}}),vD=p({id:18233,name:"Unreal",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://rpc.unreal-orbit.gelato.digital"]}},blockExplorers:{default:{name:"Unreal Explorer",url:"https://unreal.blockscout.com",apiUrl:"https://unreal.blockscout.com/api/v2"}},testnet:!0,contracts:{multicall3:{address:"0x8b6B0e60D8CD84898Ea8b981065A12F876eA5677",blockCreated:1745}}}),ED=p({id:1480,name:"Vana",blockTime:6e3,nativeCurrency:{decimals:18,name:"Vana",symbol:"VANA"},rpcUrls:{default:{http:["https://rpc.vana.org/"]}},blockExplorers:{default:{name:"Vana Block Explorer",url:"https://vanascan.io",apiUrl:"https://vanascan.io/api"}},contracts:{multicall3:{address:"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",blockCreated:716763}}}),kD=p({id:14800,name:"Vana Moksha Testnet",blockTime:6e3,nativeCurrency:{decimals:18,name:"Vana",symbol:"VANA"},rpcUrls:{default:{http:["https://rpc.moksha.vana.org"]}},blockExplorers:{default:{name:"Vana Moksha Testnet",url:"https://moksha.vanascan.io",apiUrl:"https://moksha.vanascan.io/api"}},contracts:{multicall3:{address:"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",blockCreated:732283}},testnet:!0}),CD=p({id:2040,name:"Vanar Mainnet",nativeCurrency:{name:"VANRY",symbol:"VANRY",decimals:18},rpcUrls:{default:{http:["https://rpc.vanarchain.com"]}},blockExplorers:{default:{name:"Vanar Mainnet Explorer",url:"https://explorer.vanarchain.com/"}},testnet:!1}),TD=p({id:100009,name:"Vechain",nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},rpcUrls:{default:{http:["https://mainnet.vechain.org"]}},blockExplorers:{default:{name:"Vechain Explorer",url:"https://explore.vechain.org"},vechainStats:{name:"Vechain Stats",url:"https://vechainstats.com"}}}),SD=p({id:106,name:"Velas EVM Mainnet",nativeCurrency:{name:"VLX",symbol:"VLX",decimals:18},rpcUrls:{default:{http:["https://evmexplorer.velas.com/rpc"]}},blockExplorers:{default:{name:"Velas Explorer",url:"https://evmexplorer.velas.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:55883577}},testnet:!1}),AD=p({id:88,name:"Viction",nativeCurrency:{name:"Viction",symbol:"VIC",decimals:18},rpcUrls:{default:{http:["https://rpc.viction.xyz"]}},blockExplorers:{default:{name:"VIC Scan",url:"https://vicscan.xyz"}},testnet:!1}),PD=p({id:89,name:"Viction Testnet",nativeCurrency:{name:"Viction",symbol:"VIC",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.viction.xyz"]}},blockExplorers:{default:{name:"VIC Scan",url:"https://testnet.vicscan.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:12170179}},testnet:!0}),ID=p({id:888888,name:"Vision",nativeCurrency:{name:"VISION",symbol:"VS",decimals:18},rpcUrls:{default:{http:["https://infragrid.v.network/ethereum/compatible"]}},blockExplorers:{default:{name:"Vision Scan",url:"https://visionscan.org"}},testnet:!1}),BD=p({id:666666,name:"Vision Testnet",nativeCurrency:{name:"VISION",symbol:"VS",decimals:18},rpcUrls:{default:{http:["https://vpioneer.infragrid.v.network/ethereum/compatible"]}},blockExplorers:{default:{name:"Vision Scan",url:"https://visionscan.org/?chain=vpioneer"}},testnet:!0}),FD=p({id:888,name:"Wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}}),UD=p({id:999,name:"Wanchain Testnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0}),OD=p({id:9496,name:"WeaveVM Alphanet",nativeCurrency:{name:"Testnet WeaveVM",symbol:"tWVM",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.wvm.dev"]}},blockExplorers:{default:{name:"WeaveVM Alphanet Explorer",url:"https://explorer.wvm.dev"}},testnet:!0}),_D=p({id:1111,name:"WEMIX",network:"wemix-mainnet",nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},rpcUrls:{default:{http:["https://api.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://explorer.wemix.com"}}}),DD=p({id:1112,name:"WEMIX Testnet",network:"wemix-testnet",nativeCurrency:{name:"WEMIX",symbol:"tWEMIX",decimals:18},rpcUrls:{default:{http:["https://api.test.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://testnet.wemixscan.com",apiUrl:"https://testnet.wemixscan.com/api"}},testnet:!0}),MD=p({id:420420421,name:"Westend Asset Hub",nativeCurrency:{decimals:18,name:"Westies",symbol:"WND"},rpcUrls:{default:{http:["https://westend-asset-hub-eth-rpc.polkadot.io"]}},blockExplorers:{default:{name:"subscan",url:"https://westend-asset-hub-eth-explorer.parity.io"}},testnet:!0}),ND=p({testnet:!1,name:"Whitechain",blockExplorers:{default:{name:"Whitechain Explorer",url:"https://explorer.whitechain.io"}},id:1875,rpcUrls:{default:{http:["https://rpc.whitechain.io"]}},nativeCurrency:{decimals:18,name:"WhiteBIT Coin",symbol:"WBT"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:25212237}}}),LD=p({testnet:!0,name:"Whitechain Testnet",blockExplorers:{default:{name:"Whitechain Explorer",url:"https://testnet.whitechain.io"}},id:2625,rpcUrls:{default:{http:["https://rpc-testnet.whitechain.io"]}},nativeCurrency:{decimals:18,name:"WhiteBIT Coin",symbol:"WBT"}}),zD=p({id:42070,name:"WMC Testnet",nativeCurrency:{name:"WMTx",symbol:"WMTx",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet-base.worldmobile.net"]}},blockExplorers:{default:{name:"WMC Explorer",url:"https://explorer2-base-testnet.worldmobile.net"}},testnet:!0}),Li=1,RD=p({...V,id:480,name:"World Chain",network:"worldchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://worldchain-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Worldscan",url:"https://worldscan.org",apiUrl:"https://api.worldscan.org/api"},blockscout:{name:"Blockscout",url:"https://worldchain-mainnet.explorer.alchemy.com",apiUrl:"https://worldchain-mainnet.explorer.alchemy.com/api"}},contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[Li]:{address:"0x069c4c579671f8c120b1327a73217D01Ea2EC5ea"}},l2OutputOracle:{[Li]:{address:"0x19A6d1E9034596196295CF148509796978343c5D"}},portal:{[Li]:{address:"0xd5ec14a83B7d95BE1E2Ac12523e2dEE12Cbeea6C"}},l1StandardBridge:{[Li]:{address:"0x470458C91978D2d929704489Ad730DC3E3001113"}}},testnet:!1,sourceId:Li}),zi=11155111,HD=p({...V,id:4801,name:"World Chain Sepolia",network:"worldchain-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://worldchain-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Worldscan Sepolia",url:"https://sepolia.worldscan.org",apiUrl:"https://api-sepolia.worldscan.org/api"},blockscout:{name:"Blockscout",url:"https://worldchain-sepolia.explorer.alchemy.com",apiUrl:"https://worldchain-sepolia.explorer.alchemy.com/api"}},contracts:{...V.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[zi]:{address:"0x8Ec1111f67Dad6b6A93B3F42DfBC92D81c98449A"}},l2OutputOracle:{[zi]:{address:"0xc8886f8BAb6Eaeb215aDB5f1c686BF699248300e"}},portal:{[zi]:{address:"0xFf6EBa109271fe6d4237EeeD4bAb1dD9A77dD1A4"}},l1StandardBridge:{[zi]:{address:"0xd7DF54b3989855eb66497301a4aAEc33Dbb3F8DE"}}},testnet:!0,sourceId:zi}),$D=p({id:103,name:"WorldLand Mainnet",nativeCurrency:{decimals:18,name:"WLC",symbol:"WLC"},rpcUrls:{default:{http:["https://seoul.worldland.foundation"]}},blockExplorers:{default:{name:"WorldLand Scan",url:"https://scan.worldland.foundation"}},testnet:!1}),GD=p({id:660279,name:"Xai Mainnet",nativeCurrency:{name:"Xai",symbol:"XAI",decimals:18},rpcUrls:{default:{http:["https://xai-chain.net/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.xai-chain.net"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:222549}},testnet:!1}),jD=p({id:37714555429,name:"Xai Testnet",nativeCurrency:{name:"sXai",symbol:"sXAI",decimals:18},rpcUrls:{default:{http:["https://testnet-v2.xai-chain.net/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer-v2.xai-chain.net"}},testnet:!0}),VD=p({id:50,name:"XDC Network",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xdcrpc.com"]}},blockExplorers:{default:{name:"XDCScan",url:"https://xdcscan.com"}},contracts:{multicall3:{address:"0x0B1795ccA8E4eC4df02346a082df54D437F8D9aF",blockCreated:75884020}}}),WD=p({id:51,name:"Apothem Network",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]}},blockExplorers:{default:{name:"XDCScan",url:"https://testnet.xdcscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59765389}}}),qD=p({id:196,name:"X Layer Mainnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://rpc.xlayer.tech"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer",apiUrl:"https://www.oklink.com/api/v5/explorer/xlayer/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:47416}}}),zg=p({id:195,name:"X1 Testnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://xlayertestrpc.okx.com"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer-test"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:624344}},testnet:!0}),YD=p({id:3721,name:"Xone Chain Mainnet",nativeCurrency:{decimals:18,name:"XOC",symbol:"XOC"},rpcUrls:{default:{http:["https://rpc.xone.org"]}},blockExplorers:{default:{name:"Xone Mainnet Explorer",url:"https://xonescan.com",apiUrl:"http://api.xonescan.com/api"}},testnet:!1}),KD=p({id:33772211,name:"Xone Chain Testnet",nativeCurrency:{decimals:18,name:"XOC",symbol:"XOC"},rpcUrls:{default:{http:["https://rpc-testnet.xone.org","https://rpc-testnet.xone.plus","https://rpc-testnet.knight.center"]}},blockExplorers:{default:{name:"Xone Testnet Explorer",url:"https://testnet.xonescan.com",apiUrl:"http://api.testnet.xonescan.com/api"}},testnet:!0}),ZD=p({id:20250217,name:"Xphere Mainnet",nativeCurrency:{decimals:18,name:"XP",symbol:"XP"},rpcUrls:{default:{http:["https://en-bkk.x-phere.com"]}},blockExplorers:{default:{name:"Xphere Tamsa Explorer",url:"https://xp.tamsa.io"}},testnet:!1}),XD=p({id:1998991,name:"Xphere Testnet",nativeCurrency:{decimals:18,name:"XPT",symbol:"XPT"},rpcUrls:{default:{http:["http://testnet.x-phere.com"]}},blockExplorers:{default:{name:"Xphere Tamsa Explorer",url:"https://xpt.tamsa.io"}},testnet:!0}),QD=p({id:273,name:"XR One",nativeCurrency:{decimals:18,name:"XR1",symbol:"XR1"},rpcUrls:{default:{http:["https://xr1.calderachain.xyz/http"],webSocket:["wss://xr1.calderachain.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://xr1.calderaexplorer.xyz"}},testnet:!1}),JD=p({id:144e4,name:"XRPL EVM",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.xrplevm.org"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.xrplevm.org",apiUrl:"https://explorer.xrplevm.org/api/v2"}},testnet:!1}),eM=p({id:1440002,name:"XRPL EVM Devnet",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.xrplevm.org/"]},public:{http:["https://rpc.xrplevm.org/"]}},blockExplorers:{default:{name:"XRPLEVM Devnet Explorer",url:"https://explorer.xrplevm.org/"}},contracts:{multicall3:{address:"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31",blockCreated:15237286}},testnet:!0}),tM=p({id:1449e3,name:"XRPL EVM Testnet",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.xrplevm.org"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.testnet.xrplevm.org",apiUrl:"https://explorer.testnet.xrplevm.org/api/v2"}},contracts:{multicall3:{address:"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31",blockCreated:492302}},testnet:!0}),rM=p({id:2730,name:"XR Sepolia",nativeCurrency:{decimals:18,name:"tXR",symbol:"tXR"},rpcUrls:{default:{http:["https://xr-sepolia-testnet.rpc.caldera.xyz/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://xr-sepolia-testnet.explorer.caldera.xyz"}},testnet:!0}),nM=p({id:50005,name:"Yooldo Verse",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.yooldo-verse.xyz"]}},blockExplorers:{default:{name:"Yooldo Verse Explorer",url:"https://explorer.yooldo-verse.xyz"}}}),sM=p({id:50006,name:"Yooldo Verse Testnet",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.yooldo-verse.xyz"]}},blockExplorers:{default:{name:"Yooldo Verse Testnet Explorer",url:"https://explorer.testnet.yooldo-verse.xyz"}},testnet:!0}),aM=p({id:8408,name:"ZenChain Testnet",nativeCurrency:{decimals:18,name:"ZTC",symbol:"ZTC"},rpcUrls:{default:{http:["https://zenchain-testnet.api.onfinality.io/public"],webSocket:["wss://zenchain-testnet.api.onfinality.io/public-ws"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:230019}},blockExplorers:{default:{name:"Zentrace",url:"https://zentrace.io"}},testnet:!0}),oM=p({id:383414847825,name:"Zeniq Mainnet",nativeCurrency:{name:"ZENIQ",symbol:"ZENIQ",decimals:18},rpcUrls:{default:{http:["https://api.zeniq.network"]}},blockExplorers:{default:{name:"Zeniq Explorer",url:"https://zeniqscan.com"}},testnet:!1}),iM=p({id:543210,name:"Zero Network",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zerion.io/v1/zero"]}},blockExplorers:{default:{name:"Zero Network Explorer",url:"https://explorer.zero.network"}},testnet:!1}),cM=p({id:7e3,name:"ZetaChain",nativeCurrency:{decimals:18,name:"Zeta",symbol:"ZETA"},rpcUrls:{default:{http:["https://zetachain-evm.blockpi.network/v1/rpc/public"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1632781}},blockExplorers:{default:{name:"ZetaScan",url:"https://zetascan.com"}},testnet:!1}),lM=p({id:7001,name:"ZetaChain Athens Testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2715217}},blockExplorers:{default:{name:"ZetaScan",url:"https://testnet.zetascan.com"}},testnet:!0}),uM=p({id:1337803,name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0}),dM=p({id:32769,name:"Zilliqa",network:"zilliqa",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.zilliqa.com"}},testnet:!1}),pM=p({id:33101,name:"Zilliqa Testnet",network:"zilliqa-testnet",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://dev-api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.testnet.zilliqa.com"}},testnet:!0}),Tf=1,fM=p({...V,id:48900,name:"Zircuit Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.zircuit.com","https://zircuit1-mainnet.liquify.com","https://zircuit1-mainnet.p2pify.com","https://zircuit-mainnet.drpc.org"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{[Tf]:{address:"0x92Ef6Af472b39F1b363da45E35530c24619245A4"}},portal:{[Tf]:{address:"0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"}},l1StandardBridge:{[Tf]:{address:"0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"}}},testnet:!1}),Sf=11155111,hM=p({...V,id:48898,name:"Zircuit Garfield Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://garfield-testnet.zircuit.com/"]}},blockExplorers:{default:{name:"Zircuit Garfield Testnet Explorer",url:"https://explorer.garfield-testnet.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{[Sf]:{address:"0xd69D3AC5CA686cCF94b258291772bc520FEAf211"}},portal:{[Sf]:{address:"0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21"}},l1StandardBridge:{[Sf]:{address:"0x87a7E2bCA9E35BA49282E832a28A6023904460D8"}}},testnet:!0}),Af=11155111,mM=p({...V,id:48899,name:"Zircuit Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.zircuit.com","https://zircuit1-testnet.p2pify.com","https://zircuit1-testnet.liquify.com"]}},blockExplorers:{default:{name:"Zircuit Testnet Explorer",url:"https://explorer.testnet.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6040287},l2OutputOracle:{[Af]:{address:"0x740C2dac453aEf7140809F80b72bf0e647af8148"}},portal:{[Af]:{address:"0x787f1C8c5924178689E0560a43D848bF8E54b23e"}},l1StandardBridge:{[Af]:{address:"0x0545c5fe980098C16fcD0eCB5E79753afa6d9af9"}}},testnet:!0}),bM=p({id:42766,name:"ZKFair Mainnet",network:"zkfair-mainnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://scan.zkfair.io",apiUrl:"https://scan.zkfair.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6090959}},testnet:!1}),yM=p({id:43851,name:"ZKFair Testnet",network:"zkfair-testnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://testnet-rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://testnet-scan.zkfair.io"}},testnet:!0}),gM=p({id:810180,name:"zkLink Nova",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zklink.io"]}},blockExplorers:{default:{name:"zkLink Nova Block Explorer",url:"https://explorer.zklink.io"}}}),xM=p({id:810181,name:"zkLink Nova Sepolia Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zklink.io"]}},blockExplorers:{default:{name:"zkLink Nova Block Explorer",url:"https://sepolia.explorer.zklink.io"}}}),Rg=p({...ur,blockTime:200,id:324,name:"ZKsync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://era.zksync.network/",apiUrl:"https://api-era.zksync.network/api"},native:{name:"ZKsync Explorer",url:"https://explorer.zksync.io/",apiUrl:"https://block-explorer-api.mainnet.zksync.io/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:45659388}}}),Hg=p({...ur,id:260,name:"ZKsync InMemory Node",network:"zksync-in-memory-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8011"]}},testnet:!0}),wM=p({...ur,id:272,name:"ZKsync CLI Local Custom Hyperchain",nativeCurrency:{name:"BAT",symbol:"BAT",decimals:18},rpcUrls:{default:{http:["http://localhost:15200"],webSocket:["ws://localhost:15201"]}},blockExplorers:{default:{name:"ZKsync explorer",url:"http://localhost:15005/",apiUrl:"http://localhost:15005/api"}},testnet:!0}),vM=p({...ur,id:270,name:"ZKsync CLI Local Hyperchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:15100"],webSocket:["ws://localhost:15101"]}},blockExplorers:{default:{name:"ZKsync explorer",url:"http://localhost:15005/",apiUrl:"http://localhost:15005/api"}},testnet:!0}),EM=p({id:9,name:"ZKsync CLI Local Hyperchain L1",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:15045"]}},blockExplorers:{default:{name:"Blockscout",url:"http://localhost:15001/",apiUrl:"http://localhost:15001/api/v2"}},testnet:!0}),$g=p({...ur,id:270,name:"ZKsync CLI Local Node",network:"zksync-cli-local-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:3050"]}},testnet:!0}),Gg=p({...ur,blockTime:200,id:300,name:"ZKsync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia-era.zksync.network/",apiUrl:"https://api-sepolia-era.zksync.network/api"},native:{name:"ZKsync Explorer",url:"https://sepolia.explorer.zksync.io/",blockExplorerApi:"https://block-explorer-api.sepolia.zksync.dev/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:3855712}},testnet:!0}),Yl=1,kM=p({...V,id:7777777,name:"Zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy",apiUrl:"https://explorer.zora.energy/api"}},contracts:{...V.contracts,l2OutputOracle:{[Yl]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882},portal:{[Yl]:{address:"0x1a0ad011913A150f69f6A19DF447A0CfD9551054"}},l1StandardBridge:{[Yl]:{address:"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631"}}},sourceId:Yl}),Kl=11155111,CM=p({...V,id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/",apiUrl:"https://sepolia.explorer.zora.energy/api"}},contracts:{...V.contracts,l2OutputOracle:{[Kl]:{address:"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160},portal:{[Kl]:{address:"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f"}},l1StandardBridge:{[Kl]:{address:"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB"}}},sourceId:Kl,testnet:!0}),jg=5,TM=p({...V,id:999,name:"Zora Goerli Testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy",apiUrl:"https://testnet.explorer.zora.energy/api"}},contracts:{...V.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123},portal:{[jg]:{address:"0xDb9F51790365e7dc196e7D072728df39Be958ACe"}}},sourceId:jg,testnet:!0}),SM=Object.freeze(Object.defineProperty({__proto__:null,abey:W3,abstract:Uv,abstractTestnet:Ov,acala:_v,acria:Dv,adf:Mv,agungTestnet:Nv,aioz:Lv,alephZero:zv,alephZeroTestnet:Rv,alienx:Hv,alienxHalTestnet:$v,ancient8:qv,ancient8Sepolia:Yv,anvil:Kv,apeChain:Zv,apexTestnet:Xv,apollo:Qv,arbitrum:Jv,arbitrumGoerli:eE,arbitrumNova:tE,arbitrumSepolia:rE,arcTestnet:nE,arenaz:sE,areonNetwork:aE,areonNetworkTestnet:oE,areum:iE,artelaTestnet:cE,arthera:lE,artheraTestnet:uE,assetChain:dE,assetChainTestnet:pE,astar:fE,astarZkEVM:hE,astarZkyoto:mE,atletaOlympia:bE,aurora:yE,auroraTestnet:gE,auroria:xE,autheoTestnet:wE,avalanche:vE,avalancheFuji:EE,b3:kE,b3Sepolia:CE,bahamut:TE,base:pb,baseGoerli:PE,basePreconf:SE,baseSepolia:fb,baseSepoliaPreconf:IE,basecampTestnet:AE,beam:BE,beamTestnet:FE,bearNetworkChainMainnet:UE,bearNetworkChainTestnet:OE,berachain:_E,berachainBepolia:DE,berachainTestnet:ME,berachainTestnetbArtio:NE,bevmMainnet:LE,bifrost:zE,birdlayer:RE,bitTorrent:qE,bitTorrentTestnet:YE,bitgert:HE,bitkub:$E,bitkubTestnet:GE,bitlayer:jE,bitlayerTestnet:VE,bitrock:WE,blast:KE,blastSepolia:ZE,bob:XE,bobSepolia:ek,boba:QE,bobaSepolia:JE,boolBetaMainnet:tk,botanix:rk,botanixTestnet:nk,bounceBit:sk,bounceBitTestnet:ak,bronos:ok,bronosTestnet:ik,bsc:ck,bscGreenfield:lk,bscTestnet:uk,bsquared:dk,bsquaredTestnet:pk,btr:fk,btrTestnet:hk,bxn:mk,bxnTestnet:bk,cannon:yk,canto:gk,celo:Ik,celoAlfajores:Bk,celoSepolia:Fk,chang:Uk,chiliz:Ok,chips:_k,citreaTestnet:Dk,classic:Mk,coinbit:Nk,coinex:Lk,confluxESpace:zk,confluxESpaceTestnet:Rk,coreDao:Hk,coreTestnet1:$k,coreTestnet2:Gk,corn:jk,cornTestnet:Vk,crab:Wk,creatorTestnet:qk,creditCoin3Devnet:Yk,creditCoin3Mainnet:Kk,creditCoin3Testnet:Zk,cronos:Xk,cronosTestnet:Qk,cronoszkEVM:Jk,cronoszkEVMTestnet:e7,crossbell:t7,crossfi:r7,curtis:n7,cyber:s7,cyberTestnet:a7,dailyNetwork:o7,dailyNetworkTestnet:i7,darwinia:c7,datahavenTestnet:l7,dbkchain:u7,dchain:d7,dchainTestnet:p7,defichainEvm:f7,defichainEvmTestnet:h7,degen:m7,dfk:b7,diode:y7,disChain:g7,dodochainTestnet:x7,dogechain:w7,domaTestnet:v7,donatuz:E7,dosChain:k7,dosChainTestnet:C7,dreyerxMainnet:T7,dreyerxTestnet:S7,dustboyIoT:A7,dymension:P7,edexa:I7,edexaTestnet:B7,edgeless:F7,edgelessTestnet:U7,edgeware:O7,edgewareTestnet:_7,eduChain:D7,eduChainTestnet:M7,ekta:N7,ektaTestnet:L7,elastos:z7,elastosTestnet:R7,electroneum:H7,electroneumTestnet:$7,elysiumTestnet:G7,energy:j7,eni:V7,eniTestnet:W7,enuls:q7,eon:Y7,eos:K7,eosTestnet:Z7,eteria:X7,etherlink:Q7,etherlinkShadownetTestnet:J7,etherlinkTestnet:eC,ethernity:tC,etp:rC,evmos:nC,evmosTestnet:sC,excelonMainnet:aC,expanse:oC,exsat:iC,exsatTestnet:cC,fantom:lC,fantomSonicTestnet:uC,fantomTestnet:dC,fibo:pC,filecoin:fC,filecoinCalibration:hC,filecoinHyperspace:mC,fireChain:V3,flame:bC,flare:yC,flareTestnet:gC,flowMainnet:xC,flowPreviewnet:wC,flowTestnet:vC,fluence:EC,fluenceStage:kC,fluenceTestnet:CC,fluentTestnet:TC,form:SC,formTestnet:PC,forma:AC,formicarium:oA,forta:IC,foundry:BC,fraxtal:FC,fraxtalTestnet:UC,funkiMainnet:OC,funkiSepolia:_C,fuse:DC,fuseSparknet:MC,fusion:NC,fusionTestnet:LC,garnet:zC,gatechain:RC,geist:HC,genesys:$C,giwaSepolia:bb,giwaSepoliaPreconf:GC,glideL1Protocol:jC,glideL2Protocol:VC,gnosis:WC,gnosisChiado:qC,goChain:ZC,goat:YC,gobi:KC,godwoken:XC,goerli:QC,graphite:JC,graphiteTestnet:e9,gravity:t9,gunz:r9,guruNetwork:n9,guruTestnet:s9,ham:a9,happychainTestnet:o9,haqqMainnet:i9,haqqTestedge2:c9,hardhat:l9,harmonyOne:u9,hashkey:d9,hashkeyTestnet:p9,haustTestnet:f9,hedera:h9,hederaPreviewnet:m9,hederaTestnet:b9,hela:y9,heliosTestnet:g9,hemi:x9,hemiSepolia:w9,henesys:v9,holesky:E9,hoodi:k9,hpb:C9,hpp:T9,hppSepolia:S9,huddle01Mainnet:A9,huddle01Testnet:P9,humanity:I9,humanityTestnet:B9,humanode:F9,humanodeTestnet5:U9,hychain:O9,hychainTestnet:_9,hyperEvm:yb,hyperliquid:yb,hyperliquidEvmTestnet:D9,iSunCoin:X9,icbNetwork:M9,idchain:N9,immutableZkEvm:L9,immutableZkEvmTestnet:z9,inEVM:R9,initVerse:H9,initVerseGenesis:$9,injective:G9,injectiveTestnet:j9,ink:V9,inkSepolia:W9,iota:q9,iotaTestnet:Y9,iotex:K9,iotexTestnet:Z9,jasmyChain:Q9,jasmyChainTestnet:J9,jbc:eT,jbcTestnet:tT,jocMainnet:rT,jocTestnet:nT,jovay:sT,jovaySepolia:aT,juneo:oT,juneoBCH1Chain:iT,juneoDAI1Chain:cT,juneoDOGE1Chain:lT,juneoEUR1Chain:uT,juneoGLD1Chain:dT,juneoLINK1Chain:pT,juneoLTC1Chain:fT,juneoSGD1Chain:mT,juneoSocotraTestnet:bT,juneoUSD1Chain:yT,juneoUSDT1Chain:gT,juneomBTC1Chain:hT,kaia:xT,kairos:wT,kakarotSepolia:vT,kakarotStarknetSepolia:ET,kardiaChain:kT,karura:CT,katana:TT,kava:ST,kavaTestnet:AT,kcc:PT,kiiTestnetOro:IT,kinto:BT,klaytn:FT,klaytnBaobab:UT,koi:OT,kroma:_T,kromaSepolia:DT,l3x:MT,l3xTestnet:NT,lavita:LT,lens:zT,lensTestnet:RT,lestnet:HT,lightlinkPegasus:$T,lightlinkPhoenix:GT,linea:TS,lineaGoerli:SS,lineaSepolia:AS,lineaTestnet:PS,lisk:IS,liskSepolia:BS,loadAlphanet:FS,localhost:US,loop:OS,lukso:_S,luksoTestnet:DS,lumiaMainnet:MS,lumiaTestnet:NS,lumoz:LS,lumozTestnet:zS,lycan:RS,lyra:HS,mainnet:$S,mandala:GS,manta:jS,mantaSepoliaTestnet:VS,mantaTestnet:WS,mantle:qS,mantleSepoliaTestnet:YS,mantleTestnet:KS,mantraDuKongEVMTestnet:ZS,mantraEVM:XS,mapProtocol:QS,matchain:JS,matchainTestnet:eA,mchVerse:tA,megaethTestnet:rA,mekong:nA,meld:sA,memecore:aA,merlin:iA,merlinErigonTestnet:cA,metachain:lA,metachainIstanbul:uA,metadium:dA,metalL2:pA,meter:fA,meterTestnet:hA,metis:mA,metisGoerli:bA,metisSepolia:yA,mev:gA,mevTestnet:xA,mint:wA,mintSepoliaTestnet:vA,mitosisTestnet:EA,mode:kA,modeTestnet:CA,monad:TA,monadTestnet:SA,moonbaseAlpha:AA,moonbeam:PA,moonbeamDev:IA,moonriver:BA,morph:FA,morphHolesky:UA,morphSepolia:OA,nahmii:_A,nautilus:DA,near:MA,nearTestnet:NA,neonDevnet:LA,neonMainnet:zA,neoxMainnet:RA,neoxT4:HA,newton:$A,nexi:GA,nexilix:jA,nibiru:VA,nitrographTestnet:WA,nomina:qA,oasisTestnet:YA,oasys:KA,odysseyTestnet:ZA,okc:XA,omax:QA,omni:JA,omniOmega:eP,oneWorld:tP,oortMainnetDev:rP,opBNB:nP,opBNBTestnet:sP,openledger:aP,optimism:oP,optimismGoerli:iP,optimismSepolia:cP,optopia:lP,optopiaTestnet:uP,orderly:dP,orderlySepolia:pP,otimDevnet:fP,palm:hP,palmTestnet:mP,peaq:bP,pgn:yP,pgnTestnet:gP,phoenix:xP,planq:wP,plasma:vP,plasmaDevnet:EP,plasmaTestnet:kP,playfiAlbireo:CP,plinga:TP,plume:SP,plumeDevnet:AP,plumeMainnet:PP,plumeSepolia:IP,plumeTestnet:BP,polterTestnet:FP,polygon:UP,polygonAmoy:OP,polygonMumbai:_P,polygonZkEvm:DP,polygonZkEvmCardona:MP,polygonZkEvmTestnet:NP,polynomial:LP,polynomialSepolia:zP,potos:RP,potosTestnet:HP,premiumBlockTestnet:$P,pulsechain:GP,pulsechainV4:jP,pumpfiTestnet:VP,pyrope:WP,qMainnet:YP,qTestnet:KP,ql1:qP,quai:ZP,quaiTestnet:XP,reactiveTestnet:QP,real:JP,redbellyMainnet:eI,redbellyTestnet:tI,reddio:rI,reddioSepolia:nI,redstone:sI,rei:aI,reyaNetwork:oI,riseTestnet:iI,rivalz:cI,rollux:lI,rolluxTestnet:uI,ronin:dI,root:pI,rootPorcini:fI,rootstock:hI,rootstockTestnet:mI,rss3:bI,rss3Sepolia:yI,saakuru:gI,saga:xI,saigon:wI,sanko:vI,sapphire:EI,sapphireTestnet:kI,satoshiVM:CI,satoshiVMTestnet:TI,scroll:SI,scrollSepolia:AI,sei:PI,seiDevnet:II,seiTestnet:FI,seismicDevnet:BI,sepolia:UI,shape:OI,shapeSepolia:_I,shardeum:DI,shardeumSphinx:MI,shibarium:NI,shibariumTestnet:LI,shiden:zI,shimmer:RI,shimmerTestnet:HI,sidraChain:$I,silentData:GI,silicon:jI,siliconSepolia:VI,sixProtocol:WI,skaleBase:aB,skaleBaseSepoliaTestnet:oB,skaleBlockBrawlers:qI,skaleCalypso:YI,skaleCalypsoTestnet:KI,skaleCryptoBlades:ZI,skaleCryptoColosseum:XI,skaleEuropa:QI,skaleEuropaTestnet:JI,skaleExorde:eB,skaleHumanProtocol:tB,skaleNebula:rB,skaleNebulaTestnet:nB,skaleRazor:sB,skaleTitan:iB,skaleTitanTestnet:cB,sketchpad:lB,snax:uB,snaxTestnet:dB,somnia:pB,somniaTestnet:fB,soneium:hB,soneiumMinato:mB,songbird:bB,songbirdTestnet:yB,sonic:gB,sonicBlazeTestnet:xB,sonicTestnet:wB,sophon:vB,sophonTestnet:EB,sova:kB,sovaSepolia:CB,spicy:TB,stableTestnet:SB,statusNetworkSepolia:ey,statusSepolia:ey,step:AB,story:PB,storyAeneid:IB,storyOdyssey:BB,storyTestnet:FB,stratis:UB,superlumio:OB,superposition:_B,superseed:DB,superseedSepolia:MB,surgeTestnet:NB,swan:LB,swanProximaTestnet:zB,swanSaturnTestnet:RB,swellchain:HB,swellchainTestnet:$B,swissdlt:GB,syscoin:jB,syscoinTestnet:VB,tac:WB,tacSPB:qB,taiko:YB,taikoHekla:KB,taikoHoodi:ZB,taikoJolnir:XB,taikoKatla:QB,taikoTestnetSepolia:JB,taraxa:eF,taraxaTestnet:tF,teaSepolia:rF,telcoinTestnet:nF,telos:sF,telosTestnet:aF,tempoDevnet:q_,tempoLocalnet:Y_,tempoTestnet:K_,tenet:Z_,ternoa:X_,thaiChain:Q_,that:J_,theta:eD,thetaTestnet:tD,thunderCore:rD,thunderTestnet:nD,tiktrixTestnet:sD,tomb:aD,treasure:oD,treasureTopaz:iD,tron:cD,tronNile:lD,tronShasta:uD,ubiq:dD,ultra:pD,ultraTestnet:fD,ultron:hD,ultronTestnet:mD,unichain:bD,unichainSepolia:yD,unique:gD,uniqueOpal:xD,uniqueQuartz:wD,unreal:vD,vana:ED,vanaMoksha:kD,vanar:CD,vechain:TD,velas:SD,viction:AD,victionTestnet:PD,vision:ID,visionTestnet:BD,wanchain:FD,wanchainTestnet:UD,weaveVMAlphanet:OD,wemix:_D,wemixTestnet:DD,westendAssetHub:MD,whitechain:ND,whitechainTestnet:LD,wmcTestnet:zD,worldLand:$D,worldchain:RD,worldchainSepolia:HD,x1Testnet:zg,xLayer:qD,xLayerTestnet:zg,xai:GD,xaiTestnet:jD,xdc:VD,xdcTestnet:WD,xoneMainnet:YD,xoneTestnet:KD,xphereMainnet:ZD,xphereTestnet:XD,xrOne:QD,xrSepolia:rM,xrplevm:JD,xrplevmDevnet:eM,xrplevmTestnet:tM,yooldoVerse:nM,yooldoVerseTestnet:sM,zenchainTestnet:aM,zeniq:oM,zeroG:H3,zeroGGalileoTestnet:$3,zeroGMainnet:G3,zeroGTestnet:j3,zeroNetwork:iM,zetachain:cM,zetachainAthensTestnet:lM,zhejiang:uM,zilliqa:dM,zilliqaTestnet:pM,zircuit:fM,zircuitGarfieldTestnet:hM,zircuitTestnet:mM,zkFair:bM,zkFairTestnet:yM,zkLinkNova:gM,zkLinkNovaSepoliaTestnet:xM,zkSync:Rg,zkSyncInMemoryNode:Hg,zkSyncLocalNode:$g,zkSyncSepoliaTestnet:Gg,zksync:Rg,zksyncInMemoryNode:Hg,zksyncLocalCustomHyperchain:wM,zksyncLocalHyperchain:vM,zksyncLocalHyperchainL1:EM,zksyncLocalNode:$g,zksyncSepoliaTestnet:Gg,zora:kM,zoraSepolia:CM,zoraTestnet:TM},Symbol.toStringTag,{value:"Module"}));class AM extends ${constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}const Vg="/docs/contract/encodeEventTopics";function Ri(e){var c;const{abi:t,eventName:r,args:n}=e;let s=t[0];if(r){const l=$s({abi:t,name:r});if(!l)throw new kb(r,{docsPath:Vg});s=l}if(s.type!=="event")throw new kb(void 0,{docsPath:Vg});const a=Mr(s),o=cl(a);let i=[];if(n&&"inputs"in s){const l=(c=s.inputs)==null?void 0:c.filter(d=>"indexed"in d&&d.indexed),u=Array.isArray(n)?n:Object.values(n).length>0?(l==null?void 0:l.map(d=>n[d.name]))??[]:[];u.length>0&&(i=(l==null?void 0:l.map((d,f)=>Array.isArray(u[f])?u[f].map((h,y)=>Wg({param:d,value:u[f][y]})):typeof u[f]<"u"&&u[f]!==null?Wg({param:d,value:u[f]}):null))??[])}return[o,...i]}function Wg({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return Ut(wn(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new AM(e.type);return os([e],[t])}function Zl(e,{method:t}){var n,s;const r={};return e.transport.type==="fallback"&&((s=(n=e.transport).onResponse)==null||s.call(n,({method:a,response:o,status:i,transport:c})=>{i==="success"&&t===a&&(r[o]=c.request)})),(a=>r[a]||e.request)}async function qg(e,t){const{address:r,abi:n,args:s,eventName:a,fromBlock:o,strict:i,toBlock:c}=t,l=Zl(e,{method:"eth_newFilter"}),u=a?Ri({abi:n,args:s,eventName:a}):void 0,d=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:typeof o=="bigint"?q(o):o,toBlock:typeof c=="bigint"?q(c):c,topics:u}]});return{abi:n,args:s,eventName:a,id:d,request:l(d),strict:!!i,type:"event"}}class PM extends ${constructor(t,{account:r,docsPath:n,chain:s,data:a,gas:o,gasPrice:i,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:u,to:d,value:f}){var y;const h=Mo({from:r==null?void 0:r.address,to:d,value:typeof f<"u"&&`${Ld(f)} ${((y=s==null?void 0:s.nativeCurrency)==null?void 0:y.symbol)||"ETH"}`,data:a,gas:o,gasPrice:typeof i<"u"&&`${Xt(i)} gwei`,maxFeePerGas:typeof c<"u"&&`${Xt(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${Xt(l)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",h].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function IM(e,{docsPath:t,...r}){const n=(()=>{const s=ul(e,r);return s instanceof Lo?e:s})();return new PM(n,{docsPath:t,...r})}class Yg extends ${constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class Pf extends ${constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class BM extends ${constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Xt(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class Kg extends ${constructor({blockHash:t,blockNumber:r}){let n="Block";t&&(n=`Block at hash "${t}"`),r&&(n=`Block at number "${r}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}async function Rr(e,{blockHash:t,blockNumber:r,blockTag:n=e.experimental_blockTag??"latest",includeTransactions:s}={}){var l,u,d;const a=s??!1,o=r!==void 0?q(r):void 0;let i=null;if(t?i=await e.request({method:"eth_getBlockByHash",params:[t,a]},{dedupe:!0}):i=await e.request({method:"eth_getBlockByNumber",params:[o||n,a]},{dedupe:!!o}),!i)throw new Kg({blockHash:t,blockNumber:r});return(((d=(u=(l=e.chain)==null?void 0:l.formatters)==null?void 0:u.block)==null?void 0:d.format)||Ud)(i,"getBlock")}async function If(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function FM(e,t){return Zg(e,t)}async function Zg(e,t){var a,o;const{block:r,chain:n=e.chain,request:s}=t||{};try{const i=((a=n==null?void 0:n.fees)==null?void 0:a.maxPriorityFeePerGas)??((o=n==null?void 0:n.fees)==null?void 0:o.defaultPriorityFee);if(typeof i=="function"){const l=r||await se(e,Rr,"getBlock")({}),u=await i({block:l,client:e,request:s});if(u===null)throw new Error;return u}if(typeof i<"u")return i;const c=await e.request({method:"eth_maxPriorityFeePerGas"});return Le(c)}catch{const[i,c]=await Promise.all([r?Promise.resolve(r):se(e,Rr,"getBlock")({}),se(e,If,"getGasPrice")({})]);if(typeof i.baseFeePerGas!="bigint")throw new Pf;const l=c-i.baseFeePerGas;return l<0n?0n:l}}async function UM(e,t){return Bf(e,t)}async function Bf(e,t){var f,h;const{block:r,chain:n=e.chain,request:s,type:a="eip1559"}=t||{},o=await(async()=>{var y,g;return typeof((y=n==null?void 0:n.fees)==null?void 0:y.baseFeeMultiplier)=="function"?n.fees.baseFeeMultiplier({block:r,client:e,request:s}):((g=n==null?void 0:n.fees)==null?void 0:g.baseFeeMultiplier)??1.2})();if(o<1)throw new Yg;const c=10**(((f=o.toString().split(".")[1])==null?void 0:f.length)??0),l=y=>y*BigInt(Math.ceil(o*c))/BigInt(c),u=r||await se(e,Rr,"getBlock")({});if(typeof((h=n==null?void 0:n.fees)==null?void 0:h.estimateFeesPerGas)=="function"){const y=await n.fees.estimateFeesPerGas({block:r,client:e,multiply:l,request:s,type:a});if(y!==null)return y}if(a==="eip1559"){if(typeof u.baseFeePerGas!="bigint")throw new Pf;const y=typeof(s==null?void 0:s.maxPriorityFeePerGas)=="bigint"?s.maxPriorityFeePerGas:await Zg(e,{block:u,chain:n,request:s}),g=l(u.baseFeePerGas);return{maxFeePerGas:(s==null?void 0:s.maxFeePerGas)??g+y,maxPriorityFeePerGas:y}}return{gasPrice:(s==null?void 0:s.gasPrice)??l(await se(e,If,"getGasPrice")({}))}}async function Ff(e,{address:t,blockTag:r="latest",blockNumber:n}){const s=await e.request({method:"eth_getTransactionCount",params:[t,typeof n=="bigint"?q(n):r]},{dedupe:!!n});return ir(s)}function Xl(e,{docsPath:t,...r}){const n=(()=>{const s=ul(e,r);return s instanceof Lo?e:s})();return new y8(n,{docsPath:t,...r})}async function ls(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return ir(t)}async function Uf(e,t){var m,b,x,A,I;const{account:r=e.account,accessList:n,authorizationList:s,chain:a=e.chain,blobVersionedHashes:o,blobs:i,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:f,maxPriorityFeePerGas:h,nonce:y,nonceManager:g,to:E,type:v,value:w,...T}=t,C=await(async()=>{if(!r||!g||typeof y<"u")return y;const F=Ze(r),D=a?a.id:await se(e,ls,"getChainId")({});return await g.consume({address:F.address,chainId:D,client:e})})();tn(t);const _=(b=(m=a==null?void 0:a.formatters)==null?void 0:m.transactionRequest)==null?void 0:b.format,S=(_||Dr)({...Ws(T,{format:_}),account:r?Ze(r):void 0,accessList:n,authorizationList:s,blobs:i,blobVersionedHashes:o,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:f,maxPriorityFeePerGas:h,nonce:C,to:E,type:v,value:w},"fillTransaction");try{const F=await e.request({method:"eth_fillTransaction",params:[S]}),k=(((A=(x=a==null?void 0:a.formatters)==null?void 0:x.transaction)==null?void 0:A.format)||Ns)(F.tx);delete k.blockHash,delete k.blockNumber,delete k.r,delete k.s,delete k.transactionIndex,delete k.v,delete k.yParity,k.data=k.input,k.gas&&(k.gas=t.gas??k.gas),k.gasPrice&&(k.gasPrice=t.gasPrice??k.gasPrice),k.maxFeePerBlobGas&&(k.maxFeePerBlobGas=t.maxFeePerBlobGas??k.maxFeePerBlobGas),k.maxFeePerGas&&(k.maxFeePerGas=t.maxFeePerGas??k.maxFeePerGas),k.maxPriorityFeePerGas&&(k.maxPriorityFeePerGas=t.maxPriorityFeePerGas??k.maxPriorityFeePerGas),k.nonce&&(k.nonce=t.nonce??k.nonce);const P=await(async()=>{var H,G;if(typeof((H=a==null?void 0:a.fees)==null?void 0:H.baseFeeMultiplier)=="function"){const Q=await se(e,Rr,"getBlock")({});return a.fees.baseFeeMultiplier({block:Q,client:e,request:t})}return((G=a==null?void 0:a.fees)==null?void 0:G.baseFeeMultiplier)??1.2})();if(P<1)throw new Yg;const U=10**(((I=P.toString().split(".")[1])==null?void 0:I.length)??0),L=H=>H*BigInt(Math.ceil(P*U))/BigInt(U);return k.maxFeePerGas&&!t.maxFeePerGas&&(k.maxFeePerGas=L(k.maxFeePerGas)),k.gasPrice&&!t.gasPrice&&(k.gasPrice=L(k.gasPrice)),{raw:F.raw,transaction:{from:S.from,...k}}}catch(F){throw Xl(F,{...t,chain:e.chain})}}const Of=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Xg=new Map,_f=new Oa(128);async function Hi(e,t){var C,_,z;let r=t;r.account??(r.account=e.account),r.parameters??(r.parameters=Of);const{account:n,chain:s=e.chain,nonceManager:a,parameters:o}=r,i=(()=>{if(typeof(s==null?void 0:s.prepareTransactionRequest)=="function")return{fn:s.prepareTransactionRequest,runAt:["beforeFillTransaction"]};if(Array.isArray(s==null?void 0:s.prepareTransactionRequest))return{fn:s.prepareTransactionRequest[0],runAt:s.prepareTransactionRequest[1].runAt}})();let c;async function l(){return c||(typeof r.chainId<"u"?r.chainId:s?s.id:(c=await se(e,ls,"getChainId")({}),c))}const u=n&&Ze(n);let d=r.nonce;if(o.includes("nonce")&&typeof d>"u"&&u&&a){const S=await l();d=await a.consume({address:u.address,chainId:S,client:e})}i!=null&&i.fn&&((C=i.runAt)!=null&&C.includes("beforeFillTransaction"))&&(r=await i.fn({...r,chain:s},{phase:"beforeFillTransaction"}),d??(d=r.nonce));const h=((o.includes("blobVersionedHashes")||o.includes("sidecars"))&&r.kzg&&r.blobs||_f.get(e.uid)===!1||!["fees","gas"].some(m=>o.includes(m))?!1:!!(o.includes("chainId")&&typeof r.chainId!="number"||o.includes("nonce")&&typeof d!="number"||o.includes("fees")&&typeof r.gasPrice!="bigint"&&(typeof r.maxFeePerGas!="bigint"||typeof r.maxPriorityFeePerGas!="bigint")||o.includes("gas")&&typeof r.gas!="bigint"))?await se(e,Uf,"fillTransaction")({...r,nonce:d}).then(S=>{const{chainId:m,from:b,gas:x,gasPrice:A,nonce:I,maxFeePerBlobGas:F,maxFeePerGas:D,maxPriorityFeePerGas:k,type:P,...O}=S.transaction;return _f.set(e.uid,!0),{...r,...b?{from:b}:{},...P?{type:P}:{},...typeof m<"u"?{chainId:m}:{},...typeof x<"u"?{gas:x}:{},...typeof A<"u"?{gasPrice:A}:{},...typeof I<"u"?{nonce:I}:{},...typeof F<"u"?{maxFeePerBlobGas:F}:{},...typeof D<"u"?{maxFeePerGas:D}:{},...typeof k<"u"?{maxPriorityFeePerGas:k}:{},..."nonceKey"in O&&typeof O.nonceKey<"u"?{nonceKey:O.nonceKey}:{}}}).catch(S=>{var x;const m=S;return m.name!=="TransactionExecutionError"||((x=m.walk)==null?void 0:x.call(m,A=>{const I=A;return I.name==="MethodNotFoundRpcError"||I.name==="MethodNotSupportedRpcError"}))&&_f.set(e.uid,!1),r}):r;d??(d=h.nonce),r={...h,...u?{from:u==null?void 0:u.address}:{},...d?{nonce:d}:{}};const{blobs:y,gas:g,kzg:E,type:v}=r;i!=null&&i.fn&&((_=i.runAt)!=null&&_.includes("beforeFillParameters"))&&(r=await i.fn({...r,chain:s},{phase:"beforeFillParameters"}));let w;async function T(){return w||(w=await se(e,Rr,"getBlock")({blockTag:"latest"}),w)}if(o.includes("nonce")&&typeof d>"u"&&u&&!a&&(r.nonce=await se(e,Ff,"getTransactionCount")({address:u.address,blockTag:"pending"})),(o.includes("blobVersionedHashes")||o.includes("sidecars"))&&y&&E){const S=zd({blobs:y,kzg:E});if(o.includes("blobVersionedHashes")){const m=G1({commitments:S,to:"hex"});r.blobVersionedHashes=m}if(o.includes("sidecars")){const m=Rd({blobs:y,commitments:S,kzg:E}),b=Z1({blobs:y,commitments:S,proofs:m,to:"hex"});r.sidecars=b}}if(o.includes("chainId")&&(r.chainId=await l()),(o.includes("fees")||o.includes("type"))&&typeof v>"u")try{r.type=op(r)}catch{let S=Xg.get(e.uid);if(typeof S>"u"){const m=await T();S=typeof(m==null?void 0:m.baseFeePerGas)=="bigint",Xg.set(e.uid,S)}r.type=S?"eip1559":"legacy"}if(o.includes("fees"))if(r.type!=="legacy"&&r.type!=="eip2930"){if(typeof r.maxFeePerGas>"u"||typeof r.maxPriorityFeePerGas>"u"){const S=await T(),{maxFeePerGas:m,maxPriorityFeePerGas:b}=await Bf(e,{block:S,chain:s,request:r});if(typeof r.maxPriorityFeePerGas>"u"&&r.maxFeePerGas&&r.maxFeePerGas<b)throw new BM({maxPriorityFeePerGas:b});r.maxPriorityFeePerGas=b,r.maxFeePerGas=m}}else{if(typeof r.maxFeePerGas<"u"||typeof r.maxPriorityFeePerGas<"u")throw new Pf;if(typeof r.gasPrice>"u"){const S=await T(),{gasPrice:m}=await Bf(e,{block:S,chain:s,request:r,type:"legacy"});r.gasPrice=m}}return o.includes("gas")&&typeof g>"u"&&(r.gas=await se(e,Df,"estimateGas")({...r,account:u,prepare:(u==null?void 0:u.type)==="local"?[]:["blobVersionedHashes"]})),i!=null&&i.fn&&((z=i.runAt)!=null&&z.includes("afterFillParameters"))&&(r=await i.fn({...r,chain:s},{phase:"afterFillParameters"})),tn(r),delete r.parameters,r}async function Df(e,t){var o,i,c;const{account:r=e.account,prepare:n=!0}=t,s=r?Ze(r):void 0,a=(()=>{if(Array.isArray(n))return n;if((s==null?void 0:s.type)!=="local")return["blobVersionedHashes"]})();try{const l=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await Vl({authorization:t.authorizationList[0]}).catch(()=>{throw new $("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:u,authorizationList:d,blobs:f,blobVersionedHashes:h,blockNumber:y,blockTag:g,data:E,gas:v,gasPrice:w,maxFeePerBlobGas:T,maxFeePerGas:C,maxPriorityFeePerGas:_,nonce:z,value:S,stateOverride:m,...b}=n?await Hi(e,{...t,parameters:a,to:l}):t;if(v&&t.gas!==v)return v;const A=(typeof y=="bigint"?q(y):void 0)||g,I=wf(m);tn(t);const F=(c=(i=(o=e.chain)==null?void 0:o.formatters)==null?void 0:i.transactionRequest)==null?void 0:c.format,k=(F||Dr)({...Ws(b,{format:F}),account:s,accessList:u,authorizationList:d,blobs:f,blobVersionedHashes:h,data:E,gasPrice:w,maxFeePerBlobGas:T,maxFeePerGas:C,maxPriorityFeePerGas:_,nonce:z,to:l,value:S},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:I?[k,A??e.experimental_blockTag??"latest",I]:A?[k,A]:[k]}))}catch(l){throw IM(l,{...t,account:s,chain:e.chain})}}async function OM(e,t){const{abi:r,address:n,args:s,functionName:a,dataSuffix:o,...i}=t,c=fr({abi:r,args:s,functionName:a});try{return await se(e,Df,"estimateGas")({data:`${c}${o?o.replace("0x",""):""}`,to:n,...i})}catch(l){const u=i.account?Ze(i.account):void 0;throw Js(l,{abi:r,address:n,args:s,docsPath:"/docs/contract/estimateContractGas",functionName:a,sender:u==null?void 0:u.address})}}const Qg="/docs/contract/decodeEventLog";function Ql(e){const{abi:t,data:r,strict:n,topics:s}=e,a=n??!0,[o,...i]=s;if(!o)throw new QT({docsPath:Qg});const c=t.find(g=>g.type==="event"&&o===cl(Mr(g)));if(!(c&&"name"in c)||c.type!=="event")throw new JT(o,{docsPath:Qg});const{name:l,inputs:u}=c,d=u==null?void 0:u.some(g=>!("name"in g&&g.name)),f=d?[]:{},h=u.map((g,E)=>[g,E]).filter(([g])=>"indexed"in g&&g.indexed);for(let g=0;g<h.length;g++){const[E,v]=h[g],w=i[g];if(!w)throw new pp({abiItem:c,param:E});f[d?v:E.name||v]=_M({param:E,value:w})}const y=u.filter(g=>!("indexed"in g&&g.indexed));if(y.length>0){if(r&&r!=="0x")try{const g=Yo(y,r);if(g)if(d)for(let E=0;E<u.length;E++)f[E]=f[E]??g.shift();else for(let E=0;E<y.length;E++)f[y[E].name]=g[E]}catch(g){if(a)throw g instanceof wb||g instanceof T1?new al({abiItem:c,data:r,params:y,size:ut(r)}):g}else if(a)throw new al({abiItem:c,data:"0x",params:y,size:0})}return{eventName:l,args:Object.values(f).length>0?f:void 0}}function _M({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(Yo([e],t)||[])[0]}function Mf(e){const{abi:t,args:r,logs:n,strict:s=!0}=e,a=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return n.map(o=>{var u;const i=t.filter(d=>d.type==="event"&&o.topics[0]===cl(d));if(i.length===0)return null;let c,l;for(const d of i)try{c=Ql({...o,abi:[d],strict:!0}),l=d;break}catch{}if(!c&&!s){l=i[0];try{c=Ql({...o,abi:[l],strict:!1})}catch{const d=(u=l.inputs)==null?void 0:u.some(f=>!("name"in f&&f.name));return{...o,args:d?[]:{},eventName:l.name}}}return!c||!l||a&&!a.includes(c.eventName)||!DM({args:c.args,inputs:l.inputs,matchArgs:r})?null:{...c,...o}}).filter(Boolean)}function DM(e){const{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;if(!t)return!1;function s(a,o,i){try{return a.type==="address"?Qa(o,i):a.type==="string"||a.type==="bytes"?Ut(wn(o))===i:o===i}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((a,o)=>{if(a==null)return!0;const i=r[o];return i?(Array.isArray(a)?a:[a]).some(l=>s(i,l,t[o])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof n=="object"&&!Array.isArray(n)?Object.entries(n).every(([a,o])=>{if(o==null)return!0;const i=r.find(l=>l.name===a);return i?(Array.isArray(o)?o:[o]).some(l=>s(i,l,t[a])):!1}):!1}async function Nf(e,{address:t,blockHash:r,fromBlock:n,toBlock:s,event:a,events:o,args:i,strict:c}={}){const l=c??!1,u=o??(a?[a]:void 0);let d=[];u&&(d=[u.flatMap(g=>Ri({abi:[g],eventName:g.name,args:o?void 0:i}))],a&&(d=d[0]));let f;r?f=await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:r}]}):f=await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:typeof n=="bigint"?q(n):n,toBlock:typeof s=="bigint"?q(s):s}]});const h=f.map(y=>Qr(y));return u?Mf({abi:u,args:i,logs:h,strict:l}):h}async function Jg(e,t){const{abi:r,address:n,args:s,blockHash:a,eventName:o,fromBlock:i,toBlock:c,strict:l}=t,u=o?$s({abi:r,name:o}):void 0,d=u?void 0:r.filter(f=>f.type==="event");return se(e,Nf,"getLogs")({address:n,args:s,blockHash:a,event:u,events:d,fromBlock:i,toBlock:c,strict:l})}async function MM(e,t){const{abi:r,address:n,args:s,dataSuffix:a,functionName:o,...i}=t,c=i.account?Ze(i.account):e.account,l=fr({abi:r,args:s,functionName:o});try{const{data:u}=await se(e,Di,"call")({batch:!1,data:`${l}${a?a.replace("0x",""):""}`,to:n,...i,account:c}),d=Qs({abi:r,args:s,functionName:o,data:u||"0x"}),f=r.filter(h=>"name"in h&&h.name===t.functionName);return{result:d,request:{abi:f,address:n,args:s,dataSuffix:a,functionName:o,...i,account:c}}}catch(u){throw Js(u,{abi:r,address:n,args:s,docsPath:"/docs/contract/simulateContract",functionName:o,sender:c==null?void 0:c.address})}}const Lf=new Map,e6=new Map;let NM=0;function Un(e,t,r){const n=++NM,s=()=>Lf.get(e)||[],a=()=>{const u=s();Lf.set(e,u.filter(d=>d.id!==n))},o=()=>{const u=s();if(!u.some(f=>f.id===n))return;const d=e6.get(e);if(u.length===1&&d){const f=d();f instanceof Promise&&f.catch(()=>{})}a()},i=s();if(Lf.set(e,[...i,{id:n,fns:t}]),i&&i.length>0)return o;const c={};for(const u in t)c[u]=((...d)=>{var h,y;const f=s();if(f.length!==0)for(const g of f)(y=(h=g.fns)[u])==null||y.call(h,...d)});const l=r(c);return typeof l=="function"&&e6.set(e,l),o}async function zf(e){return new Promise(t=>setTimeout(t,e))}function Ja(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let s=!0;const a=()=>s=!1;return(async()=>{let i;t&&(i=await e({unpoll:a}));const c=await(r==null?void 0:r(i))??n;await zf(c);const l=async()=>{s&&(await e({unpoll:a}),await zf(n),l())};l()})(),a}const LM=new Map,zM=new Map;function RM(e){const t=(s,a)=>({clear:()=>a.delete(s),get:()=>a.get(s),set:o=>a.set(s,o)}),r=t(e,LM),n=t(e,zM);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}async function HM(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){const n=RM(t),s=n.response.get();if(s&&r>0&&Date.now()-s.created.getTime()<r)return s.data;let a=n.promise.get();a||(a=e(),n.promise.set(a));try{const o=await a;return n.response.set({created:new Date,data:o}),o}finally{n.promise.clear()}}const $M=e=>`blockNumber.${e}`;async function $i(e,{cacheTime:t=e.cacheTime}={}){const r=await HM(()=>e.request({method:"eth_blockNumber"}),{cacheKey:$M(e.uid),cacheTime:t});return BigInt(r)}async function Jl(e,{filter:t}){const r="strict"in t&&t.strict,n=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof n[0]=="string")return n;const s=n.map(a=>Qr(a));return!("abi"in t)||!t.abi?s:Mf({abi:t.abi,logs:s,strict:r})}async function eu(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}function GM(e,t){const{abi:r,address:n,args:s,batch:a=!0,eventName:o,fromBlock:i,onError:c,onLogs:l,poll:u,pollingInterval:d=e.pollingInterval,strict:f}=t;return(typeof u<"u"?u:typeof i=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")))?(()=>{const E=f??!1,v=mt(["watchContractEvent",n,s,a,e.uid,o,d,E,i]);return Un(v,{onLogs:l,onError:c},w=>{let T;i!==void 0&&(T=i-1n);let C,_=!1;const z=Ja(async()=>{var S;if(!_){try{C=await se(e,qg,"createContractEventFilter")({abi:r,address:n,args:s,eventName:o,strict:E,fromBlock:i})}catch{}_=!0;return}try{let m;if(C)m=await se(e,Jl,"getFilterChanges")({filter:C});else{const b=await se(e,$i,"getBlockNumber")({});T&&T<b?m=await se(e,Jg,"getContractEvents")({abi:r,address:n,args:s,eventName:o,fromBlock:T+1n,toBlock:b,strict:E}):m=[],T=b}if(m.length===0)return;if(a)w.onLogs(m);else for(const b of m)w.onLogs([b])}catch(m){C&&m instanceof is&&(_=!1),(S=w.onError)==null||S.call(w,m)}},{emitOnBegin:!0,interval:d});return async()=>{C&&await se(e,eu,"uninstallFilter")({filter:C}),z()}})})():(()=>{const E=f??!1,v=mt(["watchContractEvent",n,s,a,e.uid,o,d,E]);let w=!0,T=()=>w=!1;return Un(v,{onLogs:l,onError:c},C=>((async()=>{try{const _=(()=>{if(e.transport.type==="fallback"){const m=e.transport.transports.find(b=>b.config.type==="webSocket"||b.config.type==="ipc");return m?m.value:e.transport}return e.transport})(),z=o?Ri({abi:r,eventName:o,args:s}):[],{unsubscribe:S}=await _.subscribe({params:["logs",{address:n,topics:z}],onData(m){var x;if(!w)return;const b=m.result;try{const{eventName:A,args:I}=Ql({abi:r,data:b.data,topics:b.topics,strict:f}),F=Qr(b,{args:I,eventName:A});C.onLogs([F])}catch(A){let I,F;if(A instanceof al||A instanceof pp){if(f)return;I=A.abiItem.name,F=(x=A.abiItem.inputs)==null?void 0:x.some(k=>!("name"in k&&k.name))}const D=Qr(b,{args:F?[]:{},eventName:I});C.onLogs([D])}},onError(m){var b;(b=C.onError)==null||b.call(C,m)}});T=S,w||T()}catch(_){c==null||c(_)}})(),()=>T()))})()}async function Rf(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const Hf=new Oa(128);async function tu(e,t){var w,T,C,_;const{account:r=e.account,chain:n=e.chain,accessList:s,authorizationList:a,blobs:o,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,type:y,value:g,...E}=t;if(typeof r>"u")throw new kn({docsPath:"/docs/actions/wallet/sendTransaction"});const v=r?Ze(r):null;try{tn(t);const z=await(async()=>{if(t.to)return t.to;if(t.to!==null&&a&&a.length>0)return await Vl({authorization:a[0]}).catch(()=>{throw new $("`to` is required. Could not infer from `authorizationList`.")})})();if((v==null?void 0:v.type)==="json-rpc"||v===null){let S;n!==null&&(S=await se(e,ls,"getChainId")({}),dp({currentChainId:S,chain:n}));const m=(C=(T=(w=e.chain)==null?void 0:w.formatters)==null?void 0:T.transactionRequest)==null?void 0:C.format,x=(m||Dr)({...Ws(E,{format:m}),accessList:s,account:v,authorizationList:a,blobs:o,chainId:S,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,to:z,type:y,value:g},"sendTransaction"),A=Hf.get(e.uid),I=A?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:I,params:[x]},{retryCount:0})}catch(F){if(A===!1)throw F;const D=F;if(D.name==="InvalidInputRpcError"||D.name==="InvalidParamsRpcError"||D.name==="MethodNotFoundRpcError"||D.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[x]},{retryCount:0}).then(k=>(Hf.set(e.uid,!0),k)).catch(k=>{const P=k;throw P.name==="MethodNotFoundRpcError"||P.name==="MethodNotSupportedRpcError"?(Hf.set(e.uid,!1),D):P});throw D}}if((v==null?void 0:v.type)==="local"){const S=await se(e,Hi,"prepareTransactionRequest")({account:v,accessList:s,authorizationList:a,blobs:o,chain:n,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,nonceManager:v.nonceManager,parameters:[...Of,"sidecars"],type:y,value:g,...E,to:z}),m=(_=n==null?void 0:n.serializers)==null?void 0:_.transaction,b=await v.signTransaction(S,{serializer:m});return await se(e,Rf,"sendRawTransaction")({serializedTransaction:b})}throw(v==null?void 0:v.type)==="smart"?new Hs({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new Hs({docsPath:"/docs/actions/wallet/sendTransaction",type:v==null?void 0:v.type})}catch(z){throw z instanceof Hs?z:Xl(z,{...t,account:v,chain:t.chain||void 0})}}async function Gi(e,t){return Gi.internal(e,tu,"sendTransaction",t)}(function(e){async function t(r,n,s,a){const{abi:o,account:i=r.account,address:c,args:l,dataSuffix:u,functionName:d,...f}=a;if(typeof i>"u")throw new kn({docsPath:"/docs/contract/writeContract"});const h=i?Ze(i):null,y=fr({abi:o,args:l,functionName:d});try{return await se(r,n,s)({data:`${y}${u?u.replace("0x",""):""}`,to:c,account:h,...f})}catch(g){throw Js(g,{abi:o,address:c,args:l,docsPath:"/docs/contract/writeContract",functionName:d,sender:h==null?void 0:h.address})}}e.internal=t})(Gi||(Gi={}));class jM extends ${constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}function ru(e,{delay:t=100,retryCount:r=2,shouldRetry:n=()=>!0}={}){return new Promise((s,a)=>{const o=async({count:i=0}={})=>{const c=async({error:l})=>{const u=typeof t=="function"?t({count:i,error:l}):t;u&&await zf(u),o({count:i+1})};try{const l=await e();s(l)}catch(l){if(i<r&&await n({count:i,error:l}))return c({error:l});a(l)}};o()})}const t6="0x5792579257925792579257925792579257925792579257925792579257925792",r6=q(0,{size:32});async function n6(e,t){const{account:r=e.account,capabilities:n,chain:s=e.chain,experimental_fallback:a,experimental_fallbackDelay:o=32,forceAtomic:i=!1,id:c,version:l="2.0.0"}=t,u=r?Ze(r):null,d=t.calls.map(f=>{const h=f,y=h.abi?fr({abi:h.abi,functionName:h.functionName,args:h.args}):h.data;return{data:h.dataSuffix&&y?cr([y,h.dataSuffix]):y,to:h.to,value:h.value?q(h.value):void 0}});try{const f=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:i,calls:d,capabilities:n,chainId:q(s.id),from:u==null?void 0:u.address,id:c,version:l}]},{retryCount:0});return typeof f=="string"?{id:f}:f}catch(f){const h=f;if(a&&(h.name==="MethodNotFoundRpcError"||h.name==="MethodNotSupportedRpcError"||h.name==="UnknownRpcError"||h.details.toLowerCase().includes("does not exist / is not available")||h.details.toLowerCase().includes("missing or invalid. request()")||h.details.toLowerCase().includes("did not match any variant of untagged enum")||h.details.toLowerCase().includes("account upgraded to unsupported contract")||h.details.toLowerCase().includes("eip-7702 not supported")||h.details.toLowerCase().includes("unsupported wc_ method")||h.details.toLowerCase().includes("feature toggled misconfigured")||h.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(n&&Object.values(n).some(w=>!w.optional)){const w="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new ja(new $(w,{details:w}))}if(i&&d.length>1){const v="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new Va(new $(v,{details:v}))}const y=[];for(const v of d){const w=tu(e,{account:u,chain:s,data:v.data,to:v.to,value:v.value?Le(v.value):void 0});y.push(w),o>0&&await new Promise(T=>setTimeout(T,o))}const g=await Promise.allSettled(y);if(g.every(v=>v.status==="rejected"))throw g[0].reason;const E=g.map(v=>v.status==="fulfilled"?v.value:r6);return{id:cr([...E,q(s.id,{size:32}),t6])}}throw Xl(f,{...t,account:u,chain:t.chain})}}async function s6(e,t){async function r(u){if(u.endsWith(t6.slice(2))){const f=Zt(sp(u,-64,-32)),h=sp(u,0,-64).slice(2).match(/.{1,64}/g),y=await Promise.all(h.map(E=>r6.slice(2)!==E?e.request({method:"eth_getTransactionReceipt",params:[`0x${E}`]},{dedupe:!0}):void 0)),g=y.some(E=>E===null)?100:y.every(E=>(E==null?void 0:E.status)==="0x1")?200:y.every(E=>(E==null?void 0:E.status)==="0x0")?500:600;return{atomic:!1,chainId:ir(f),receipts:y.filter(Boolean),status:g,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[u]})}const{atomic:n=!1,chainId:s,receipts:a,version:o="2.0.0",...i}=await r(t.id),[c,l]=(()=>{const u=i.status;return u>=100&&u<200?["pending",u]:u>=200&&u<300?["success",u]:u>=300&&u<700?["failure",u]:u==="CONFIRMED"?["success",200]:u==="PENDING"?["pending",100]:[void 0,u]})();return{...i,atomic:n,chainId:s?ir(s):void 0,receipts:(a==null?void 0:a.map(u=>({...u,blockNumber:Le(u.blockNumber),gasUsed:Le(u.gasUsed),status:v1[u.status]})))??[],statusCode:l,status:c,version:o}}async function a6(e,t){const{id:r,pollingInterval:n=e.pollingInterval,status:s=({statusCode:g})=>g===200||g>=300,retryCount:a=4,retryDelay:o=({count:g})=>~~(1<<g)*200,timeout:i=6e4,throwOnFailure:c=!1}=t,l=mt(["waitForCallsStatus",e.uid,r]),{promise:u,resolve:d,reject:f}=gf();let h;const y=Un(l,{resolve:d,reject:f},g=>{const E=Ja(async()=>{const v=w=>{clearTimeout(h),E(),w(),y()};try{const w=await ru(async()=>{const T=await se(e,s6,"getCallsStatus")({id:r});if(c&&T.status==="failure")throw new jM(T);return T},{retryCount:a,delay:o});if(!s(w))return;v(()=>g.resolve(w))}catch(w){v(()=>g.reject(w))}},{interval:n,emitOnBegin:!0});return E});return h=i?setTimeout(()=>{y(),clearTimeout(h),f(new VM({id:r}))},i):void 0,await u}class VM extends ${constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}const $f=256;let nu=$f,su;function o6(e=11){if(!su||nu+e>$f*2){su="",nu=0;for(let t=0;t<$f;t++)su+=(256+Math.random()*256|0).toString(16).substring(1)}return su.substring(nu,nu+++e)}function i6(e){const{batch:t,chain:r,ccipRead:n,key:s="base",name:a="Base Client",type:o="base"}=e,i=e.experimental_blockTag??(typeof(r==null?void 0:r.experimental_preconfirmationTime)=="number"?"pending":void 0),c=(r==null?void 0:r.blockTime)??12e3,l=Math.min(Math.max(Math.floor(c/2),500),4e3),u=e.pollingInterval??l,d=e.cacheTime??u,f=e.account?Ze(e.account):void 0,{config:h,request:y,value:g}=e.transport({account:f,chain:r,pollingInterval:u}),E={...h,...g},v={account:f,batch:t,cacheTime:d,ccipRead:n,chain:r,key:s,name:a,pollingInterval:u,request:y,transport:E,type:o,uid:o6(),...i?{experimental_blockTag:i}:{}};function w(T){return C=>{const _=C(T);for(const S in v)delete _[S];const z={...T,..._};return Object.assign(z,{extend:w(z)})}}return Object.assign(v,{extend:w(v)})}function Gf(e){var r,n,s,a,o,i;if(!(e instanceof $))return!1;const t=e.walk(c=>c instanceof kp);return t instanceof kp?((r=t.data)==null?void 0:r.errorName)==="HttpError"||((n=t.data)==null?void 0:n.errorName)==="ResolverError"||((s=t.data)==null?void 0:s.errorName)==="ResolverNotContract"||((a=t.data)==null?void 0:a.errorName)==="ResolverNotFound"||((o=t.data)==null?void 0:o.errorName)==="ReverseAddressMismatch"||((i=t.data)==null?void 0:i.errorName)==="UnsupportedResolverProfile":!1}function WM(e){const{abi:t,data:r}=e,n=Rs(r,0,4),s=t.find(a=>a.type==="function"&&n===qo(Mr(a)));if(!s)throw new e4(n,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:s.name,args:"inputs"in s&&s.inputs&&s.inputs.length>0?Yo(s.inputs,Rs(r,4)):void 0}}const jf="/docs/contract/encodeErrorResult";function c6(e){const{abi:t,errorName:r,args:n}=e;let s=t[0];if(r){const c=$s({abi:t,args:n,name:r});if(!c)throw new vb(r,{docsPath:jf});s=c}if(s.type!=="error")throw new vb(void 0,{docsPath:jf});const a=Mr(s),o=qo(a);let i="0x";if(n&&n.length>0){if(!s.inputs)throw new XT(s.name,{docsPath:jf});i=os(s.inputs,n)}return lr([o,i])}const Vf="/docs/contract/encodeFunctionResult";function qM(e){const{abi:t,functionName:r,result:n}=e;let s=t[0];if(r){const o=$s({abi:t,name:r});if(!o)throw new La(r,{docsPath:Vf});s=o}if(s.type!=="function")throw new La(void 0,{docsPath:Vf});if(!s.outputs)throw new Cb(s.name,{docsPath:Vf});const a=(()=>{if(s.outputs.length===0)return[];if(s.outputs.length===1)return[n];if(Array.isArray(n))return n;throw new Tb(n)})();return os(s.outputs,a)}const ji="x-batch-gateway:true";async function l6(e){const{data:t,ccipRequest:r}=e,{args:[n]}=WM({abi:hf,data:t}),s=[],a=[];return await Promise.all(n.map(async(o,i)=>{try{a[i]=o.urls.includes(ji)?await l6({data:o.data,ccipRequest:r}):await r(o),s[i]=!1}catch(c){s[i]=!0,a[i]=YM(c)}})),qM({abi:hf,functionName:"query",result:[s,a]})}function YM(e){return e.name==="HttpRequestError"&&e.status?c6({abi:hf,errorName:"HttpError",args:[e.status,e.shortMessage]}):c6({abi:[gb],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}function u6(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return Or(t)?t:null}function Wf(e){let t=new Uint8Array(32).fill(0);if(!e)return vt(t);const r=e.split(".");for(let n=r.length-1;n>=0;n-=1){const s=u6(r[n]),a=s?wn(s):Ut(Ms(r[n]),"bytes");t=Ut(cr([t,a]),"bytes")}return vt(t)}function KM(e){return`[${e.slice(2)}]`}function ZM(e){const t=new Uint8Array(32).fill(0);return e?u6(e)||Ut(Ms(e)):vt(t)}function qf(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const r=new Uint8Array(Ms(t).byteLength+2);let n=0;const s=t.split(".");for(let a=0;a<s.length;a++){let o=Ms(s[a]);o.byteLength>255&&(o=Ms(KM(ZM(s[a])))),r[n]=o.length,r.set(o,n+1),n+=o.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}async function XM(e,t){const{blockNumber:r,blockTag:n,coinType:s,name:a,gatewayUrls:o,strict:i}=t,{chain:c}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Da({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})(),u=c==null?void 0:c.ensTlds;if(u&&!u.some(f=>a.endsWith(f)))return null;const d=s!=null?[Wf(a),BigInt(s)]:[Wf(a)];try{const f=fr({abi:yg,functionName:"addr",args:d}),h={address:l,abi:mg,functionName:"resolveWithGateways",args:[Fe(qf(a)),f,o??[ji]],blockNumber:r,blockTag:n},g=await se(e,zr,"readContract")(h);if(g[0]==="0x")return null;const E=Qs({abi:yg,args:d,functionName:"addr",data:g[0]});return E==="0x"||Zt(E)==="0x00"?null:E}catch(f){if(i)throw f;if(Gf(f))return null;throw f}}class QM extends ${constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class Vi extends ${constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class Yf extends ${constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class JM extends ${constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const eN=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,tN=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,rN=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,nN=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function sN(e){try{const t=await fetch(e,{method:"HEAD"});if(t.status===200){const r=t.headers.get("content-type");return r==null?void 0:r.startsWith("image/")}return!1}catch(t){return typeof t=="object"&&typeof t.response<"u"||!Object.hasOwn(globalThis,"Image")?!1:new Promise(r=>{const n=new Image;n.onload=()=>{r(!0)},n.onerror=()=>{r(!1)},n.src=e})}}function d6(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function p6({uri:e,gatewayUrls:t}){const r=rN.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};const n=d6(t==null?void 0:t.ipfs,"https://ipfs.io"),s=d6(t==null?void 0:t.arweave,"https://arweave.net"),a=e.match(eN),{protocol:o,subpath:i,target:c,subtarget:l=""}=(a==null?void 0:a.groups)||{},u=o==="ipns:/"||i==="ipns/",d=o==="ipfs:/"||i==="ipfs/"||tN.test(e);if(e.startsWith("http")&&!u&&!d){let h=e;return t!=null&&t.arweave&&(h=e.replace(/https:\/\/arweave.net/g,t==null?void 0:t.arweave)),{uri:h,isOnChain:!1,isEncoded:!1}}if((u||d)&&c)return{uri:`${n}/${u?"ipns":"ipfs"}/${c}${l}`,isOnChain:!1,isEncoded:!1};if(o==="ar:/"&&c)return{uri:`${s}/${c}${l||""}`,isOnChain:!1,isEncoded:!1};let f=e.replace(nN,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new Yf({uri:e})}function f6(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new QM({data:e});return e.image||e.image_url||e.image_data}async function aN({gatewayUrls:e,uri:t}){try{const r=await fetch(t).then(s=>s.json());return await Kf({gatewayUrls:e,uri:f6(r)})}catch{throw new Yf({uri:t})}}async function Kf({gatewayUrls:e,uri:t}){const{uri:r,isOnChain:n}=p6({uri:t,gatewayUrls:e});if(n||await sN(r))return r;throw new Yf({uri:t})}function oN(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[r,n,s]=t.split("/"),[a,o]=r.split(":"),[i,c]=n.split(":");if(!a||a.toLowerCase()!=="eip155")throw new Vi({reason:"Only EIP-155 supported"});if(!o)throw new Vi({reason:"Chain ID not found"});if(!c)throw new Vi({reason:"Contract address not found"});if(!s)throw new Vi({reason:"Token ID not found"});if(!i)throw new Vi({reason:"ERC namespace not found"});return{chainID:Number.parseInt(o,10),namespace:i.toLowerCase(),contractAddress:c,tokenID:s}}async function iN(e,{nft:t}){if(t.namespace==="erc721")return zr(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if(t.namespace==="erc1155")return zr(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new JM({namespace:t.namespace})}async function cN(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?lN(e,{gatewayUrls:t,record:r}):Kf({uri:r,gatewayUrls:t})}async function lN(e,{gatewayUrls:t,record:r}){const n=oN(r),s=await iN(e,{nft:n}),{uri:a,isOnChain:o,isEncoded:i}=p6({uri:s,gatewayUrls:t});if(o&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const l=i?atob(a.replace("data:application/json;base64,","")):a,u=JSON.parse(l);return Kf({uri:f6(u),gatewayUrls:t})}let c=n.tokenID;return n.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),aN({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,c)})}async function h6(e,t){const{blockNumber:r,blockTag:n,key:s,name:a,gatewayUrls:o,strict:i}=t,{chain:c}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Da({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})(),u=c==null?void 0:c.ensTlds;if(u&&!u.some(d=>a.endsWith(d)))return null;try{const d={address:l,abi:mg,args:[Fe(qf(a)),fr({abi:bg,functionName:"text",args:[Wf(a),s]}),o??[ji]],functionName:"resolveWithGateways",blockNumber:r,blockTag:n},h=await se(e,zr,"readContract")(d);if(h[0]==="0x")return null;const y=Qs({abi:bg,functionName:"text",data:h[0]});return y===""?null:y}catch(d){if(i)throw d;if(Gf(d))return null;throw d}}async function uN(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:s,gatewayUrls:a,strict:o,universalResolverAddress:i}){const c=await se(e,h6,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:s,universalResolverAddress:i,gatewayUrls:a,strict:o});if(!c)return null;try{return await cN(e,{record:c,gatewayUrls:n})}catch{return null}}async function dN(e,t){const{address:r,blockNumber:n,blockTag:s,coinType:a=60n,gatewayUrls:o,strict:i}=t,{chain:c}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Da({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})();try{const u={address:l,abi:MO,args:[r,a,o??[ji]],functionName:"reverseWithGateways",blockNumber:n,blockTag:s},d=se(e,zr,"readContract"),[f]=await d(u);return f||null}catch(u){if(i)throw u;if(Gf(u))return null;throw u}}async function pN(e,t){const{blockNumber:r,blockTag:n,name:s}=t,{chain:a}=e,o=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!a)throw new Error("client chain not configured. universalResolverAddress is required.");return Da({blockNumber:r,chain:a,contract:"ensUniversalResolver"})})(),i=a==null?void 0:a.ensTlds;if(i&&!i.some(l=>s.endsWith(l)))throw new Error(`${s} is not a valid ENS TLD (${i==null?void 0:i.join(", ")}) for chain "${a.name}" (id: ${a.id}).`);const[c]=await se(e,zr,"readContract")({address:o,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[Fe(qf(s))],blockNumber:r,blockTag:n});return c}async function m6(e,t){var E,v,w;const{account:r=e.account,blockNumber:n,blockTag:s="latest",blobs:a,data:o,gas:i,gasPrice:c,maxFeePerBlobGas:l,maxFeePerGas:u,maxPriorityFeePerGas:d,to:f,value:h,...y}=t,g=r?Ze(r):void 0;try{tn(t);const C=(typeof n=="bigint"?q(n):void 0)||s,_=(w=(v=(E=e.chain)==null?void 0:E.formatters)==null?void 0:v.transactionRequest)==null?void 0:w.format,S=(_||Dr)({...Ws(y,{format:_}),account:g,blobs:a,data:o,gas:i,gasPrice:c,maxFeePerBlobGas:l,maxFeePerGas:u,maxPriorityFeePerGas:d,to:f,value:h},"createAccessList"),m=await e.request({method:"eth_createAccessList",params:[S,C]});return{accessList:m.accessList,gasUsed:BigInt(m.gasUsed)}}catch(T){throw Tp(T,{...t,account:g,chain:e.chain})}}async function fN(e){const t=Zl(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}async function b6(e,{address:t,args:r,event:n,events:s,fromBlock:a,strict:o,toBlock:i}={}){const c=s??(n?[n]:void 0),l=Zl(e,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap(h=>Ri({abi:[h],eventName:h.name,args:r}))],n&&(u=u[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?q(a):a,toBlock:typeof i=="bigint"?q(i):i,...u.length?{topics:u}:{}}]});return{abi:c,args:r,eventName:n?n.name:void 0,fromBlock:a,id:d,request:l(d),strict:!!o,toBlock:i,type:"event"}}async function y6(e){const t=Zl(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}async function hN(e,{address:t,blockNumber:r,blockTag:n=e.experimental_blockTag??"latest"}){const s=typeof r=="bigint"?q(r):void 0,a=await e.request({method:"eth_getBalance",params:[t,s||n]});return BigInt(a)}async function mN(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}async function bN(e,{blockHash:t,blockNumber:r,blockTag:n="latest"}={}){const s=r!==void 0?q(r):void 0;let a;return t?a=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):a=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[s||n]},{dedupe:!!s}),ir(a)}class yN extends ${constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function gN(e,t){const{address:r,factory:n,factoryData:s}=t;try{const[a,o,i,c,l,u,d]=await se(e,zr,"readContract")({abi:xN,address:r,functionName:"eip712Domain",factory:n,factoryData:s});return{domain:{name:o,version:i,chainId:Number(c),verifyingContract:l,salt:u},extensions:d,fields:a}}catch(a){const o=a;throw o.name==="ContractFunctionExecutionError"&&o.cause.name==="ContractFunctionZeroDataError"?new yN({address:r}):o}}const xN=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];function wN(e){var t;return{baseFeePerGas:e.baseFeePerGas.map(r=>BigInt(r)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:(t=e.reward)==null?void 0:t.map(r=>r.map(n=>BigInt(n)))}}async function vN(e,{blockCount:t,blockNumber:r,blockTag:n="latest",rewardPercentiles:s}){const a=typeof r=="bigint"?q(r):void 0,o=await e.request({method:"eth_feeHistory",params:[q(t),a||n,s]},{dedupe:!!a});return wN(o)}async function EN(e,{filter:t}){const r=t.strict??!1,s=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(a=>Qr(a));return t.abi?Mf({abi:t.abi,logs:s,strict:r}):s}const au=new Oa(8192);function kN(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(au.get(r))return au.get(r);const n=e().finally(()=>au.delete(r));return au.set(r,n),n}function CN(e,t={}){return async(r,n={})=>{var d;const{dedupe:s=!1,methods:a,retryDelay:o=150,retryCount:i=3,uid:c}={...t,...n},{method:l}=r;if((d=a==null?void 0:a.exclude)!=null&&d.includes(l))throw new Vs(new Error("method not supported"),{method:l});if(a!=null&&a.include&&!a.include.includes(l))throw new Vs(new Error("method not supported"),{method:l});const u=s?Ta(`${c}.${mt(r)}`):void 0;return kN(()=>ru(async()=>{try{return await e(r)}catch(f){const h=f;switch(h.code){case Xo.code:throw new Xo(h);case Qo.code:throw new Qo(h);case Jo.code:throw new Jo(h,{method:r.method});case ei.code:throw new ei(h);case js.code:throw new js(h);case is.code:throw new is(h);case ti.code:throw new ti(h);case ri.code:throw new ri(h);case ni.code:throw new ni(h);case Vs.code:throw new Vs(h,{method:r.method});case $a.code:throw new $a(h);case si.code:throw new si(h);case Ga.code:throw new Ga(h);case ai.code:throw new ai(h);case oi.code:throw new oi(h);case ii.code:throw new ii(h);case ci.code:throw new ci(h);case li.code:throw new li(h);case ja.code:throw new ja(h);case ui.code:throw new ui(h);case di.code:throw new di(h);case pi.code:throw new pi(h);case fi.code:throw new fi(h);case hi.code:throw new hi(h);case Va.code:throw new Va(h);case 5e3:throw new Ga(h);default:throw f instanceof $?f:new kS(h)}}},{delay:({count:f,error:h})=>{var y;if(h&&h instanceof Gs){const g=(y=h==null?void 0:h.headers)==null?void 0:y.get("Retry-After");if(g!=null&&g.match(/\d/))return Number.parseInt(g,10)*1e3}return~~(1<<f)*o},retryCount:i,shouldRetry:({error:f})=>TN(f)}),{enabled:s,id:u})}}function TN(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===$a.code||e.code===js.code:e instanceof Gs&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}class SN extends ${constructor({callbackSelector:t,cause:r,data:n,extraData:s,sender:a,urls:o}){var i;super(r.shortMessage||"An error occurred while fetching for an offchain result.",{cause:r,metaMessages:[...r.metaMessages||[],(i=r.metaMessages)!=null&&i.length?"":[],"Offchain Gateway Call:",o&&[" Gateway URL(s):",...o.map(c=>` ${Zo(c)}`)],` Sender: ${a}`,` Data: ${n}`,` Callback selector: ${t}`,` Extra data: ${s}`].flat(),name:"OffchainLookupError"})}}class AN extends ${constructor({result:t,url:r}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${Zo(r)}`,`Response: ${mt(t)}`],name:"OffchainLookupResponseMalformedError"})}}class PN extends ${constructor({sender:t,to:r}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${r}`,`OffchainLookup sender address: ${t}`],name:"OffchainLookupSenderMismatchError"})}}const IN="0x556f1830",g6={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function BN(e,{blockNumber:t,blockTag:r,data:n,to:s}){const{args:a}=Vb({data:n,abi:[g6]}),[o,i,c,l,u]=a,{ccipRead:d}=e,f=d&&typeof(d==null?void 0:d.request)=="function"?d.request:x6;try{if(!Qa(s,o))throw new PN({sender:o,to:s});const h=i.includes(ji)?await l6({data:c,ccipRequest:f}):await f({data:c,sender:o,urls:i}),{data:y}=await Di(e,{blockNumber:t,blockTag:r,data:cr([l,os([{type:"bytes"},{type:"bytes"}],[h,u])]),to:s});return y}catch(h){throw new SN({callbackSelector:l,cause:h,data:n,extraData:u,sender:o,urls:i})}}async function x6({data:e,sender:t,urls:r}){var s;let n=new Error("An unknown error occurred.");for(let a=0;a<r.length;a++){const o=r[a],i=o.includes("{data}")?"GET":"POST",c=i==="POST"?{data:e,sender:t}:void 0,l=i==="POST"?{"Content-Type":"application/json"}:{};try{const u=await fetch(o.replace("{sender}",t.toLowerCase()).replace("{data}",e),{body:JSON.stringify(c),headers:l,method:i});let d;if((s=u.headers.get("Content-Type"))!=null&&s.startsWith("application/json")?d=(await u.json()).data:d=await u.text(),!u.ok){n=new Gs({body:c,details:d!=null&&d.error?mt(d.error):u.statusText,headers:u.headers,status:u.status,url:o});continue}if(!Or(d)){n=new AN({result:d,url:o});continue}return d}catch(u){n=new Gs({body:c,details:u.message,url:o})}}throw n}const FN=Object.freeze(Object.defineProperty({__proto__:null,ccipRequest:x6,offchainLookup:BN,offchainLookupAbiItem:g6,offchainLookupSignature:IN},Symbol.toStringTag,{value:"Module"}));function UN(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:n}){return new Promise((s,a)=>{(async()=>{let o;try{const i=new AbortController;r>0&&(o=setTimeout(()=>{n&&i.abort()},r)),s(await e({signal:(i==null?void 0:i.signal)||null}))}catch(i){(i==null?void 0:i.name)==="AbortError"&&a(t),a(i)}finally{clearTimeout(o)}})()})}function ON(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const w6=ON();function _N(e,t={}){return{async request(r){var f;const{body:n,fetchFn:s=t.fetchFn??fetch,onRequest:a=t.onRequest,onResponse:o=t.onResponse,timeout:i=t.timeout??1e4}=r,c={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:l,method:u,signal:d}=c;try{const h=await UN(async({signal:g})=>{const E={...c,body:Array.isArray(n)?mt(n.map(C=>({jsonrpc:"2.0",id:C.id??w6.take(),...C}))):mt({jsonrpc:"2.0",id:n.id??w6.take(),...n}),headers:{"Content-Type":"application/json",...l},method:u||"POST",signal:d||(i>0?g:null)},v=new Request(e,E),w=await(a==null?void 0:a(v,E))??{...E,url:e};return await s(w.url??e,w)},{errorInstance:new Xb({body:n,url:e}),timeout:i,signal:!0});o&&await o(h);let y;if((f=h.headers.get("Content-Type"))!=null&&f.startsWith("application/json"))y=await h.json();else{y=await h.text();try{y=JSON.parse(y||"{}")}catch(g){if(h.ok)throw g;y={error:y}}}if(!h.ok)throw new Gs({body:n,details:mt(y.error)||h.statusText,headers:h.headers,status:h.status,url:e});return y}catch(h){throw h instanceof Gs||h instanceof Xb?h:new Gs({body:n,cause:h,url:e})}}}}const DN=`Ethereum Signed Message:
108
+ `;function MN(e){const t=typeof e=="string"?Ta(e):typeof e.raw=="string"?e.raw:vt(e.raw),r=Ta(`${DN}${ut(t)}`);return cr([r,t])}function v6(e,t){return Ut(MN(e),t)}class NN extends ${constructor({domain:t}){super(`Invalid domain "${mt(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class LN extends ${constructor({primaryType:t,types:r}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(r))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class zN extends ${constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function RN(e){const{domain:t,message:r,primaryType:n,types:s}=e,a=(c,l)=>{const u={...l};for(const d of c){const{name:f,type:h}=d;h==="address"&&(u[f]=u[f].toLowerCase())}return u},o=s.EIP712Domain?t?a(s.EIP712Domain,t):{}:{},i=(()=>{if(n!=="EIP712Domain")return a(s[n],r)})();return mt({domain:o,message:i,primaryType:n,types:s})}function E6(e){const{domain:t,message:r,primaryType:n,types:s}=e,a=(o,i)=>{for(const c of o){const{name:l,type:u}=c,d=i[l],f=u.match(Gb);if(f&&(typeof d=="number"||typeof d=="bigint")){const[g,E,v]=f;q(d,{signed:E==="int",size:Number.parseInt(v,10)/8})}if(u==="address"&&typeof d=="string"&&!nt(d))throw new Ct({address:d});const h=u.match(eS);if(h){const[g,E]=h;if(E&&ut(d)!==Number.parseInt(E,10))throw new r4({expectedSize:Number.parseInt(E,10),givenSize:ut(d)})}const y=s[u];y&&(HN(u),a(y,d))}};if(s.EIP712Domain&&t){if(typeof t!="object")throw new NN({domain:t});a(s.EIP712Domain,t)}if(n!=="EIP712Domain")if(s[n])a(s[n],r);else throw new LN({primaryType:n,types:s})}function k6({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function HN(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new zN({type:e})}function $N(e){const{domain:t={},message:r,primaryType:n}=e,s={EIP712Domain:k6({domain:t}),...e.types};E6({domain:t,message:r,primaryType:n,types:s});const a=["0x1901"];return t&&a.push(GN({domain:t,types:s})),n!=="EIP712Domain"&&a.push(C6({data:r,primaryType:n,types:s})),Ut(cr(a))}function GN({domain:e,types:t}){return C6({data:e,primaryType:"EIP712Domain",types:t})}function C6({data:e,primaryType:t,types:r}){const n=T6({data:e,primaryType:t,types:r});return Ut(n)}function T6({data:e,primaryType:t,types:r}){const n=[{type:"bytes32"}],s=[jN({primaryType:t,types:r})];for(const a of r[t]){const[o,i]=A6({types:r,name:a.name,type:a.type,value:e[a.name]});n.push(o),s.push(i)}return os(n,s)}function jN({primaryType:e,types:t}){const r=Fe(VN({primaryType:e,types:t}));return Ut(r)}function VN({primaryType:e,types:t}){let r="";const n=S6({primaryType:e,types:t});n.delete(e);const s=[e,...Array.from(n).sort()];for(const a of s)r+=`${a}(${t[a].map(({name:o,type:i})=>`${i} ${o}`).join(",")})`;return r}function S6({primaryType:e,types:t},r=new Set){const n=e.match(/^\w*/u),s=n==null?void 0:n[0];if(r.has(s)||t[s]===void 0)return r;r.add(s);for(const a of t[s])S6({primaryType:a.type,types:t},r);return r}function A6({types:e,name:t,type:r,value:n}){if(e[r]!==void 0)return[{type:"bytes32"},Ut(T6({data:n,primaryType:r,types:e}))];if(r==="bytes")return[{type:"bytes32"},Ut(n)];if(r==="string")return[{type:"bytes32"},Ut(Fe(n))];if(r.lastIndexOf("]")===r.length-1){const s=r.slice(0,r.lastIndexOf("[")),a=n.map(o=>A6({name:t,type:s,types:e,value:o}));return[{type:"bytes32"},Ut(os(a.map(([o])=>o),a.map(([,o])=>o)))]}return[{type:r},n]}function WN(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function qN(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?ir(e.nonce):void 0,storageProof:e.storageProof?WN(e.storageProof):void 0}}async function YN(e,{address:t,blockNumber:r,blockTag:n,storageKeys:s}){const a=n??"latest",o=r!==void 0?q(r):void 0,i=await e.request({method:"eth_getProof",params:[t,s,o||a]});return qN(i)}async function KN(e,{address:t,blockNumber:r,blockTag:n="latest",slot:s}){const a=r!==void 0?q(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,s,a||n]})}async function Zf(e,{blockHash:t,blockNumber:r,blockTag:n,hash:s,index:a,sender:o,nonce:i}){var f,h,y;const c=n||"latest",l=r!==void 0?q(r):void 0;let u=null;if(s?u=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?u=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,q(a)]},{dedupe:!0}):typeof a=="number"?u=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||c,q(a)]},{dedupe:!!l}):o&&typeof i=="number"&&(u=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[o,q(i)]},{dedupe:!0})),!u)throw new I1({blockHash:t,blockNumber:r,blockTag:c,hash:s,index:a});return(((y=(h=(f=e.chain)==null?void 0:f.formatters)==null?void 0:h.transaction)==null?void 0:y.format)||Ns)(u,"getTransaction")}async function ZN(e,{hash:t,transactionReceipt:r}){const[n,s]=await Promise.all([se(e,$i,"getBlockNumber")({}),t?se(e,Zf,"getTransaction")({hash:t}):void 0]),a=(r==null?void 0:r.blockNumber)||(s==null?void 0:s.blockNumber);return a?n-a+1n:0n}async function ou(e,{hash:t}){var s,a,o;const r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new B1({hash:t});return(((o=(a=(s=e.chain)==null?void 0:s.formatters)==null?void 0:a.transactionReceipt)==null?void 0:o.format)||Rc)(r,"getTransactionReceipt")}async function XN(e,t){var w;const{account:r,authorizationList:n,allowFailure:s=!0,blockNumber:a,blockOverrides:o,blockTag:i,stateOverride:c}=t,l=t.contracts,{batchSize:u=t.batchSize??1024,deployless:d=t.deployless??!1}=typeof((w=e.batch)==null?void 0:w.multicall)=="object"?e.batch.multicall:{},f=(()=>{if(t.multicallAddress)return t.multicallAddress;if(d)return null;if(e.chain)return Da({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),h=[[]];let y=0,g=0;for(let T=0;T<l.length;T++){const{abi:C,address:_,args:z,functionName:S}=l[T];try{const m=fr({abi:C,args:z,functionName:S});g+=(m.length-2)/2,u>0&&g>u&&h[y].length>0&&(y++,g=(m.length-2)/2,h[y]=[]),h[y]=[...h[y],{allowFailure:!0,callData:m,target:_}]}catch(m){const b=Js(m,{abi:C,address:_,args:z,docsPath:"/docs/contract/multicall",functionName:S,sender:r});if(!s)throw b;h[y]=[...h[y],{allowFailure:!0,callData:"0x",target:_}]}}const E=await Promise.allSettled(h.map(T=>se(e,zr,"readContract")({...f===null?{code:mf}:{address:f},abi:Gl,account:r,args:[T],authorizationList:n,blockNumber:a,blockOverrides:o,blockTag:i,functionName:"aggregate3",stateOverride:c}))),v=[];for(let T=0;T<E.length;T++){const C=E[T];if(C.status==="rejected"){if(!s)throw C.reason;for(let z=0;z<h[T].length;z++)v.push({status:"failure",error:C.reason,result:void 0});continue}const _=C.value;for(let z=0;z<_.length;z++){const{returnData:S,success:m}=_[z],{callData:b}=h[T][z],{abi:x,address:A,functionName:I,args:F}=l[v.length];try{if(b==="0x")throw new Wo;if(!m)throw new ll({data:S});const D=Qs({abi:x,args:F,data:S,functionName:I});v.push(s?{result:D,status:"success"}:D)}catch(D){const k=Js(D,{abi:x,address:A,args:F,docsPath:"/docs/contract/multicall",functionName:I});if(!s)throw k;v.push({error:k,result:void 0,status:"failure"})}}}if(v.length!==l.length)throw new $("multicall results mismatch");return v}async function Xf(e,t){const{blockNumber:r,blockTag:n=e.experimental_blockTag??"latest",blocks:s,returnFullTransactions:a,traceTransfers:o,validation:i}=t;try{const c=[];for(const f of s){const h=f.blockOverrides?Tg(f.blockOverrides):void 0,y=f.calls.map(E=>{const v=E,w=v.account?Ze(v.account):void 0,T=v.abi?fr(v):v.data,C={...v,account:w,data:v.dataSuffix?cr([T||"0x",v.dataSuffix]):T,from:v.from??(w==null?void 0:w.address)};return tn(C),Dr(C)}),g=f.stateOverrides?wf(f.stateOverrides):void 0;c.push({blockOverrides:h,calls:y,stateOverrides:g})}const u=(typeof r=="bigint"?q(r):void 0)||n;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:c,returnFullTransactions:a,traceTransfers:o,validation:i},u]})).map((f,h)=>({...Ud(f),calls:f.calls.map((y,g)=>{var x,A;const{abi:E,args:v,functionName:w,to:T}=s[h].calls[g],C=((x=y.error)==null?void 0:x.data)??y.returnData,_=BigInt(y.gasUsed),z=(A=y.logs)==null?void 0:A.map(I=>Qr(I)),S=y.status==="0x1"?"success":"failure",m=E&&S==="success"&&C!=="0x"?Qs({abi:E,data:C,functionName:w}):null,b=(()=>{var F;if(S==="success")return;let I;if(((F=y.error)==null?void 0:F.data)==="0x"?I=new Wo:y.error&&(I=new ll(y.error)),!!I)return Js(I,{abi:E??[],address:T??"0x",args:v,functionName:w??"<unknown>"})})();return{data:C,gasUsed:_,logs:z,status:S,...S==="success"?{result:m}:{error:b}}})}))}catch(c){const l=c,u=ul(l,{});throw u instanceof Lo?l:u}}function Qf(e){let t=!0,r="",n=0,s="",a=!1;for(let o=0;o<e.length;o++){const i=e[o];if(["(",")",","].includes(i)&&(t=!0),i==="("&&n++,i===")"&&n--,!!t){if(n===0){if(i===" "&&["event","function","error",""].includes(s))s="";else if(s+=i,i===")"){a=!0;break}continue}if(i===" "){e[o-1]!==","&&r!==","&&r!==",("&&(r="",t=!1);continue}s+=i,r+=i}}if(!a)throw new oe("Unable to normalize signature.");return s}function Jf(e,t){const r=typeof e,n=t.type;switch(n){case"address":return _l(e,{strict:!1});case"bool":return r==="boolean";case"function":return r==="string";case"string":return r==="string";default:return n==="tuple"&&"components"in t?Object.values(t.components).every((s,a)=>Jf(Object.values(e)[a],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)?$/.test(n)?r==="number"||r==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?r==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)?Array.isArray(e)&&e.every(s=>Jf(s,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function P6(e,t,r){for(const n in e){const s=e[n],a=t[n];if(s.type==="tuple"&&a.type==="tuple"&&"components"in s&&"components"in a)return P6(s.components,a.components,r[n]);const o=[s.type,a.type];if(o.includes("address")&&o.includes("bytes20")?!0:o.includes("address")&&o.includes("string")?_l(r[n],{strict:!1}):o.includes("address")&&o.includes("bytes")?_l(r[n],{strict:!1}):!1)return o}}function I6(e,t={}){const{prepare:r=!0}=t,n=Array.isArray(e)||typeof e=="string"?Rb(e):e;return{...n,...r?{hash:eo(n)}:{}}}function iu(e,t,r){const{args:n=[],prepare:s=!0}=r??{},a=Nr(t,{strict:!1}),o=e.filter(l=>a?l.type==="function"||l.type==="error"?B6(l)===Pe(t,0,4):l.type==="event"?eo(l)===t:!1:"name"in l&&l.name===t);if(o.length===0)throw new cu({name:t});if(o.length===1)return{...o[0],...s?{hash:eo(o[0])}:{}};let i;for(const l of o){if(!("inputs"in l))continue;if(!n||n.length===0){if(!l.inputs||l.inputs.length===0)return{...l,...s?{hash:eo(l)}:{}};continue}if(!l.inputs||l.inputs.length===0||l.inputs.length!==n.length)continue;if(n.every((d,f)=>{const h="inputs"in l&&l.inputs[f];return h?Jf(d,h):!1})){if(i&&"inputs"in i&&i.inputs){const d=P6(l.inputs,i.inputs,n);if(d)throw new JN({abiItem:l,type:d[0]},{abiItem:i,type:d[1]})}i=l}}const c=(()=>{if(i)return i;const[l,...u]=o;return{...l,overloads:u}})();if(!c)throw new cu({name:t});return{...c,...s?{hash:eo(c)}:{}}}function B6(...e){const t=(()=>{if(Array.isArray(e[0])){const[r,n]=e;return iu(r,n)}return e[0]})();return Pe(eo(t),0,4)}function QN(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,s]=e;return iu(n,s)}return e[0]})(),r=typeof t=="string"?t:ol(t);return Qf(r)}function eo(...e){const t=(()=>{if(Array.isArray(e[0])){const[r,n]=e;return iu(r,n)}return e[0]})();return typeof t!="string"&&"hash"in t&&t.hash?t.hash:Ii(Ai(QN(t)))}class JN extends oe{constructor(t,r){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${Qf(ol(t.abiItem))}\`, and`,`\`${r.type}\` in \`${Qf(ol(r.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class cu extends oe{constructor({name:t,data:r,type:n="item"}){const s=t?` with name "${t}"`:r?` with data "${r}"`:"";super(`ABI ${n}${s} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function eL(...e){var a;const[t,r]=(()=>{if(Array.isArray(e[0])){const[o,i]=e;return[rL(o),i]}return e})(),{bytecode:n,args:s}=r;return ft(n,(a=t.inputs)!=null&&a.length&&(s!=null&&s.length)?df(t.inputs,s):"0x")}function tL(e){return I6(e)}function rL(e){const t=e.find(r=>r.type==="constructor");if(!t)throw new cu({name:"constructor"});return t}function nL(...e){const[t,r=[]]=(()=>{if(Array.isArray(e[0])){const[l,u,d]=e;return[F6(l,u,{args:d}),d]}const[i,c]=e;return[i,c]})(),{overloads:n}=t,s=n?F6([t,...n],t.name,{args:r}):t,a=sL(s),o=r.length>0?df(s.inputs,r):void 0;return o?ft(a,o):a}function to(e,t={}){return I6(e,t)}function F6(e,t,r){const n=iu(e,t,r);if(n.type!=="function")throw new cu({name:t,type:"function"});return n}function sL(e){return B6(e)}const aL="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",rn="0x0000000000000000000000000000000000000000",oL="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function iL(e,t){const{blockNumber:r,blockTag:n,calls:s,stateOverrides:a,traceAssetChanges:o,traceTransfers:i,validation:c}=t,l=t.account?Ze(t.account):void 0;if(o&&!l)throw new $("`account` is required when `traceAssetChanges` is true");const u=l?eL(tL("constructor(bytes, bytes)"),{bytecode:vg,args:[oL,nL(to("function getBalance(address)"),[l.address])]}):void 0,d=o?await Promise.all(t.calls.map(async U=>{if(!U.data&&!U.abi)return;const{accessList:L}=await m6(e,{account:l.address,...U,data:U.abi?fr(U):U.data});return L.map(({address:H,storageKeys:G})=>G.length>0?H:null)})).then(U=>U.flat().filter(Boolean)):[],f=await Xf(e,{blockNumber:r,blockTag:n,blocks:[...o?[{calls:[{data:u}],stateOverrides:a},{calls:d.map((U,L)=>({abi:[to("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:U,from:rn,nonce:L})),stateOverrides:[{address:rn,nonce:0}]}]:[],{calls:[...s,{}].map(U=>({...U,from:l==null?void 0:l.address})),stateOverrides:a},...o?[{calls:[{data:u}]},{calls:d.map((U,L)=>({abi:[to("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:U,from:rn,nonce:L})),stateOverrides:[{address:rn,nonce:0}]},{calls:d.map((U,L)=>({to:U,abi:[to("function decimals() returns (uint256)")],functionName:"decimals",from:rn,nonce:L})),stateOverrides:[{address:rn,nonce:0}]},{calls:d.map((U,L)=>({to:U,abi:[to("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:rn,nonce:L})),stateOverrides:[{address:rn,nonce:0}]},{calls:d.map((U,L)=>({to:U,abi:[to("function symbol() returns (string)")],functionName:"symbol",from:rn,nonce:L})),stateOverrides:[{address:rn,nonce:0}]}]:[]],traceTransfers:i,validation:c}),h=o?f[2]:f[0],[y,g,,E,v,w,T,C]=o?f:[],{calls:_,...z}=h,S=_.slice(0,-1)??[],m=(y==null?void 0:y.calls)??[],b=(g==null?void 0:g.calls)??[],x=[...m,...b].map(U=>U.status==="success"?Le(U.data):null),A=(E==null?void 0:E.calls)??[],I=(v==null?void 0:v.calls)??[],F=[...A,...I].map(U=>U.status==="success"?Le(U.data):null),D=((w==null?void 0:w.calls)??[]).map(U=>U.status==="success"?U.result:null),k=((C==null?void 0:C.calls)??[]).map(U=>U.status==="success"?U.result:null),P=((T==null?void 0:T.calls)??[]).map(U=>U.status==="success"?U.result:null),O=[];for(const[U,L]of F.entries()){const H=x[U];if(typeof L!="bigint"||typeof H!="bigint")continue;const G=D[U-1],Q=k[U-1],pe=P[U-1],me=U===0?{address:aL,decimals:18,symbol:"ETH"}:{address:d[U-1],decimals:pe||G?Number(G??1):void 0,symbol:Q??void 0};O.some(ie=>ie.token.address===me.address)||O.push({token:me,value:{pre:H,post:L,diff:L-H}})}return{assetChanges:O,block:z,results:S}}async function cL(e,{address:t,message:r,factory:n,factoryData:s,signature:a,...o}){const i=v6(r);return se(e,Mi,"verifyHash")({address:t,factory:n,factoryData:s,hash:i,signature:a,...o})}async function lL(e,t){const{address:r,factory:n,factoryData:s,signature:a,message:o,primaryType:i,types:c,domain:l,...u}=t,d=$N({message:o,primaryType:i,types:c,domain:l});return se(e,Mi,"verifyHash")({address:r,factory:n,factoryData:s,hash:d,signature:a,...u})}function U6(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:s,poll:a,pollingInterval:o=e.pollingInterval}){const i=typeof a<"u"?a:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc"));let c;return i?(()=>{const d=mt(["watchBlockNumber",e.uid,t,r,o]);return Un(d,{onBlockNumber:n,onError:s},f=>Ja(async()=>{var h;try{const y=await se(e,$i,"getBlockNumber")({cacheTime:0});if(c!==void 0){if(y===c)return;if(y-c>1&&r)for(let g=c+1n;g<y;g++)f.onBlockNumber(g,c),c=g}(c===void 0||y>c)&&(f.onBlockNumber(y,c),c=y)}catch(y){(h=f.onError)==null||h.call(f,y)}},{emitOnBegin:t,interval:o}))})():(()=>{const d=mt(["watchBlockNumber",e.uid,t,r]);return Un(d,{onBlockNumber:n,onError:s},f=>{let h=!0,y=()=>h=!1;return(async()=>{try{const g=(()=>{if(e.transport.type==="fallback"){const v=e.transport.transports.find(w=>w.config.type==="webSocket"||w.config.type==="ipc");return v?v.value:e.transport}return e.transport})(),{unsubscribe:E}=await g.subscribe({params:["newHeads"],onData(v){var T;if(!h)return;const w=Le((T=v.result)==null?void 0:T.number);f.onBlockNumber(w,c),c=w},onError(v){var w;(w=f.onError)==null||w.call(f,v)}});y=E,h||y()}catch(g){s==null||s(g)}})(),()=>y()})})()}async function O6(e,t){const{checkReplacement:r=!0,confirmations:n=1,hash:s,onReplaced:a,retryCount:o=6,retryDelay:i=({count:_})=>~~(1<<_)*200,timeout:c=18e4}=t,l=mt(["waitForTransactionReceipt",e.uid,s]),u=(()=>{var _;return t.pollingInterval?t.pollingInterval:(_=e.chain)!=null&&_.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval})();let d,f,h,y=!1,g,E;const{promise:v,resolve:w,reject:T}=gf(),C=c?setTimeout(()=>{E==null||E(),g==null||g(),T(new g8({hash:s}))},c):void 0;return g=Un(l,{onReplaced:a,resolve:w,reject:T},async _=>{if(h=await se(e,ou,"getTransactionReceipt")({hash:s}).catch(()=>{}),h&&n<=1){clearTimeout(C),_.resolve(h),g==null||g();return}E=se(e,U6,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:u,async onBlockNumber(z){const S=b=>{clearTimeout(C),E==null||E(),b(),g==null||g()};let m=z;if(!y)try{if(h){if(n>1&&(!h.blockNumber||m-h.blockNumber+1n<n))return;S(()=>_.resolve(h));return}if(r&&!d&&(y=!0,await ru(async()=>{d=await se(e,Zf,"getTransaction")({hash:s}),d.blockNumber&&(m=d.blockNumber)},{delay:i,retryCount:o}),y=!1),h=await se(e,ou,"getTransactionReceipt")({hash:s}),n>1&&(!h.blockNumber||m-h.blockNumber+1n<n))return;S(()=>_.resolve(h))}catch(b){if(b instanceof I1||b instanceof B1){if(!d){y=!1;return}try{f=d,y=!0;const x=await ru(()=>se(e,Rr,"getBlock")({blockNumber:m,includeTransactions:!0}),{delay:i,retryCount:o,shouldRetry:({error:F})=>F instanceof Kg});y=!1;const A=x.transactions.find(({from:F,nonce:D})=>F===f.from&&D===f.nonce);if(!A||(h=await se(e,ou,"getTransactionReceipt")({hash:A.hash}),n>1&&(!h.blockNumber||m-h.blockNumber+1n<n)))return;let I="replaced";A.to===f.to&&A.value===f.value&&A.input===f.input?I="repriced":A.from===A.to&&A.value===0n&&(I="cancelled"),S(()=>{var F;(F=_.onReplaced)==null||F.call(_,{reason:I,replacedTransaction:f,transaction:A,transactionReceipt:h}),_.resolve(h)})}catch(x){S(()=>_.reject(x))}}else S(()=>_.reject(b))}}})}),v}function uL(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:s,onError:a,includeTransactions:o,poll:i,pollingInterval:c=e.pollingInterval}){const l=typeof i<"u"?i:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),u=o??!1;let d;return l?(()=>{const y=mt(["watchBlocks",e.uid,t,r,n,u,c]);return Un(y,{onBlock:s,onError:a},g=>Ja(async()=>{var E;try{const v=await se(e,Rr,"getBlock")({blockTag:t,includeTransactions:u});if(v.number!==null&&(d==null?void 0:d.number)!=null){if(v.number===d.number)return;if(v.number-d.number>1&&r)for(let w=(d==null?void 0:d.number)+1n;w<v.number;w++){const T=await se(e,Rr,"getBlock")({blockNumber:w,includeTransactions:u});g.onBlock(T,d),d=T}}((d==null?void 0:d.number)==null||t==="pending"&&(v==null?void 0:v.number)==null||v.number!==null&&v.number>d.number)&&(g.onBlock(v,d),d=v)}catch(v){(E=g.onError)==null||E.call(g,v)}},{emitOnBegin:n,interval:c}))})():(()=>{let y=!0,g=!0,E=()=>y=!1;return(async()=>{try{n&&se(e,Rr,"getBlock")({blockTag:t,includeTransactions:u}).then(T=>{y&&g&&(s(T,void 0),g=!1)}).catch(a);const v=(()=>{if(e.transport.type==="fallback"){const T=e.transport.transports.find(C=>C.config.type==="webSocket"||C.config.type==="ipc");return T?T.value:e.transport}return e.transport})(),{unsubscribe:w}=await v.subscribe({params:["newHeads"],async onData(T){var _;if(!y)return;const C=await se(e,Rr,"getBlock")({blockNumber:(_=T.result)==null?void 0:_.number,includeTransactions:u}).catch(()=>{});y&&(s(C,d),g=!1,d=C)},onError(T){a==null||a(T)}});E=w,y||E()}catch(v){a==null||a(v)}})(),()=>E()})()}function dL(e,{address:t,args:r,batch:n=!0,event:s,events:a,fromBlock:o,onError:i,onLogs:c,poll:l,pollingInterval:u=e.pollingInterval,strict:d}){const f=typeof l<"u"?l:typeof o=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),h=d??!1;return f?(()=>{const E=mt(["watchEvent",t,r,n,e.uid,s,u,o]);return Un(E,{onLogs:c,onError:i},v=>{let w;o!==void 0&&(w=o-1n);let T,C=!1;const _=Ja(async()=>{var z;if(!C){try{T=await se(e,b6,"createEventFilter")({address:t,args:r,event:s,events:a,strict:h,fromBlock:o})}catch{}C=!0;return}try{let S;if(T)S=await se(e,Jl,"getFilterChanges")({filter:T});else{const m=await se(e,$i,"getBlockNumber")({});w&&w!==m?S=await se(e,Nf,"getLogs")({address:t,args:r,event:s,events:a,fromBlock:w+1n,toBlock:m}):S=[],w=m}if(S.length===0)return;if(n)v.onLogs(S);else for(const m of S)v.onLogs([m])}catch(S){T&&S instanceof is&&(C=!1),(z=v.onError)==null||z.call(v,S)}},{emitOnBegin:!0,interval:u});return async()=>{T&&await se(e,eu,"uninstallFilter")({filter:T}),_()}})})():(()=>{let E=!0,v=()=>E=!1;return(async()=>{try{const w=(()=>{if(e.transport.type==="fallback"){const z=e.transport.transports.find(S=>S.config.type==="webSocket"||S.config.type==="ipc");return z?z.value:e.transport}return e.transport})(),T=a??(s?[s]:void 0);let C=[];T&&(C=[T.flatMap(S=>Ri({abi:[S],eventName:S.name,args:r}))],s&&(C=C[0]));const{unsubscribe:_}=await w.subscribe({params:["logs",{address:t,topics:C}],onData(z){var m;if(!E)return;const S=z.result;try{const{eventName:b,args:x}=Ql({abi:T??[],data:S.data,topics:S.topics,strict:h}),A=Qr(S,{args:x,eventName:b});c([A])}catch(b){let x,A;if(b instanceof al||b instanceof pp){if(d)return;x=b.abiItem.name,A=(m=b.abiItem.inputs)==null?void 0:m.some(F=>!("name"in F&&F.name))}const I=Qr(S,{args:A?[]:{},eventName:x});c([I])}},onError(z){i==null||i(z)}});v=_,E||v()}catch(w){i==null||i(w)}})(),()=>v()})()}function pL(e,{batch:t=!0,onError:r,onTransactions:n,poll:s,pollingInterval:a=e.pollingInterval}){return(typeof s<"u"?s:e.transport.type!=="webSocket"&&e.transport.type!=="ipc")?(()=>{const l=mt(["watchPendingTransactions",e.uid,t,a]);return Un(l,{onTransactions:n,onError:r},u=>{let d;const f=Ja(async()=>{var h;try{if(!d)try{d=await se(e,y6,"createPendingTransactionFilter")({});return}catch(g){throw f(),g}const y=await se(e,Jl,"getFilterChanges")({filter:d});if(y.length===0)return;if(t)u.onTransactions(y);else for(const g of y)u.onTransactions([g])}catch(y){(h=u.onError)==null||h.call(u,y)}},{emitOnBegin:!0,interval:a});return async()=>{d&&await se(e,eu,"uninstallFilter")({filter:d}),f()}})})():(()=>{let l=!0,u=()=>l=!1;return(async()=>{try{const{unsubscribe:d}=await e.transport.subscribe({params:["newPendingTransactions"],onData(f){if(!l)return;const h=f.result;n([h])},onError(f){r==null||r(f)}});u=d,l||u()}catch(d){r==null||r(d)}})(),()=>u()})()}function fL(e){var d,f,h;const{scheme:t,statement:r,...n}=((d=e.match(hL))==null?void 0:d.groups)??{},{chainId:s,expirationTime:a,issuedAt:o,notBefore:i,requestId:c,...l}=((f=e.match(mL))==null?void 0:f.groups)??{},u=(h=e.split("Resources:")[1])==null?void 0:h.split(`
109
+ - `).slice(1);return{...n,...l,...s?{chainId:Number(s)}:{},...a?{expirationTime:new Date(a)}:{},...o?{issuedAt:new Date(o)}:{},...i?{notBefore:new Date(i)}:{},...c?{requestId:c}:{},...u?{resources:u}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}const hL=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,mL=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;function bL(e){const{address:t,domain:r,message:n,nonce:s,scheme:a,time:o=new Date}=e;if(r&&n.domain!==r||s&&n.nonce!==s||a&&n.scheme!==a||n.expirationTime&&o>=n.expirationTime||n.notBefore&&o<n.notBefore)return!1;try{if(!n.address||!nt(n.address,{strict:!1})||t&&!Qa(n.address,t))return!1}catch{return!1}return!0}async function yL(e,t){const{address:r,domain:n,message:s,nonce:a,scheme:o,signature:i,time:c=new Date,...l}=t,u=fL(s);if(!u.address||!bL({address:r,domain:n,message:u,nonce:a,scheme:o,time:c}))return!1;const f=v6(s);return Mi(e,{address:u.address,hash:f,signature:i,...l})}async function e0(e,{serializedTransaction:t,throwOnReceiptRevert:r,timeout:n}){var i,c,l;const s=await e.request({method:"eth_sendRawTransactionSync",params:n?[t,q(n)]:[t]},{retryCount:0}),o=(((l=(c=(i=e.chain)==null?void 0:i.formatters)==null?void 0:c.transactionReceipt)==null?void 0:l.format)||Rc)(s);if(o.status==="reverted"&&r)throw new F1({receipt:o});return o}function gL(e){return{call:t=>Di(e,t),createAccessList:t=>m6(e,t),createBlockFilter:()=>fN(e),createContractEventFilter:t=>qg(e,t),createEventFilter:t=>b6(e,t),createPendingTransactionFilter:()=>y6(e),estimateContractGas:t=>OM(e,t),estimateGas:t=>Df(e,t),getBalance:t=>hN(e,t),getBlobBaseFee:()=>mN(e),getBlock:t=>Rr(e,t),getBlockNumber:t=>$i(e,t),getBlockTransactionCount:t=>bN(e,t),getBytecode:t=>$l(e,t),getChainId:()=>ls(e),getCode:t=>$l(e,t),getContractEvents:t=>Jg(e,t),getEip712Domain:t=>gN(e,t),getEnsAddress:t=>XM(e,t),getEnsAvatar:t=>uN(e,t),getEnsName:t=>dN(e,t),getEnsResolver:t=>pN(e,t),getEnsText:t=>h6(e,t),getFeeHistory:t=>vN(e,t),estimateFeesPerGas:t=>UM(e,t),getFilterChanges:t=>Jl(e,t),getFilterLogs:t=>EN(e,t),getGasPrice:()=>If(e),getLogs:t=>Nf(e,t),getProof:t=>YN(e,t),estimateMaxPriorityFeePerGas:t=>FM(e,t),fillTransaction:t=>Uf(e,t),getStorageAt:t=>KN(e,t),getTransaction:t=>Zf(e,t),getTransactionConfirmations:t=>ZN(e,t),getTransactionCount:t=>Ff(e,t),getTransactionReceipt:t=>ou(e,t),multicall:t=>XN(e,t),prepareTransactionRequest:t=>Hi(e,t),readContract:t=>zr(e,t),sendRawTransaction:t=>Rf(e,t),sendRawTransactionSync:t=>e0(e,t),simulate:t=>Xf(e,t),simulateBlocks:t=>Xf(e,t),simulateCalls:t=>iL(e,t),simulateContract:t=>MM(e,t),verifyHash:t=>Mi(e,t),verifyMessage:t=>cL(e,t),verifySiweMessage:t=>yL(e,t),verifyTypedData:t=>lL(e,t),uninstallFilter:t=>eu(e,t),waitForTransactionReceipt:t=>O6(e,t),watchBlocks:t=>uL(e,t),watchBlockNumber:t=>U6(e,t),watchContractEvent:t=>GM(e,t),watchEvent:t=>dL(e,t),watchPendingTransactions:t=>pL(e,t)}}function xL(e){const{key:t="public",name:r="Public Client"}=e;return i6({...e,key:t,name:r,type:"publicClient"}).extend(gL)}async function wL(e,{chain:t}){const{id:r,name:n,nativeCurrency:s,rpcUrls:a,blockExplorers:o}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:q(r),chainName:n,nativeCurrency:s,rpcUrls:a.default.http,blockExplorerUrls:o?Object.values(o).map(({url:i})=>i):void 0}]},{dedupe:!0,retryCount:0})}function vL(e,t){const{abi:r,args:n,bytecode:s,...a}=t,o=jl({abi:r,args:n,bytecode:s});return tu(e,{...a,...a.authorizationList?{to:null}:{},data:o})}async function EL(e){var r;return((r=e.account)==null?void 0:r.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ro(n))}async function kL(e,t={}){const{account:r=e.account,chainId:n}=t,s=r?Ze(r):void 0,a=n?[s==null?void 0:s.address,[q(n)]]:[s==null?void 0:s.address],o=await e.request({method:"wallet_getCapabilities",params:a}),i={};for(const[c,l]of Object.entries(o)){i[Number(c)]={};for(let[u,d]of Object.entries(l))u==="addSubAccount"&&(u="unstable_addSubAccount"),i[Number(c)][u]=d}return typeof n=="number"?i[n]:i}async function CL(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function _6(e,t){var c;const{account:r=e.account,chainId:n,nonce:s}=t;if(!r)throw new kn({docsPath:"/docs/eip7702/prepareAuthorization"});const a=Ze(r),o=(()=>{if(t.executor)return t.executor==="self"?t.executor:Ze(t.executor)})(),i={address:t.contractAddress??t.address,chainId:n,nonce:s};return typeof i.chainId>"u"&&(i.chainId=((c=e.chain)==null?void 0:c.id)??await se(e,ls,"getChainId")({})),typeof i.nonce>"u"&&(i.nonce=await se(e,Ff,"getTransactionCount")({address:a.address,blockTag:"pending"}),(o==="self"||o!=null&&o.address&&Qa(o.address,a.address))&&(i.nonce+=1)),i}async function TL(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(r=>rp(r))}async function SL(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}async function AL(e,t){const{chain:r=e.chain}=t,n=t.timeout??Math.max(((r==null?void 0:r.blockTime)??0)*3,5e3),s=await n6(e,t);return await a6(e,{...t,id:s.id,timeout:n})}const t0=new Oa(128);async function D6(e,t){var _,z,S,m;const{account:r=e.account,chain:n=e.chain,accessList:s,authorizationList:a,blobs:o,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,pollingInterval:y,throwOnReceiptRevert:g,type:E,value:v,...w}=t,T=t.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof r>"u")throw new kn({docsPath:"/docs/actions/wallet/sendTransactionSync"});const C=r?Ze(r):null;try{tn(t);const b=await(async()=>{if(t.to)return t.to;if(t.to!==null&&a&&a.length>0)return await Vl({authorization:a[0]}).catch(()=>{throw new $("`to` is required. Could not infer from `authorizationList`.")})})();if((C==null?void 0:C.type)==="json-rpc"||C===null){let x;n!==null&&(x=await se(e,ls,"getChainId")({}),dp({currentChainId:x,chain:n}));const A=(S=(z=(_=e.chain)==null?void 0:_.formatters)==null?void 0:z.transactionRequest)==null?void 0:S.format,F=(A||Dr)({...Ws(w,{format:A}),accessList:s,account:C,authorizationList:a,blobs:o,chainId:x,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,to:b,type:E,value:v},"sendTransaction"),D=t0.get(e.uid),k=D?"wallet_sendTransaction":"eth_sendTransaction",P=await(async()=>{try{return await e.request({method:k,params:[F]},{retryCount:0})}catch(U){if(D===!1)throw U;const L=U;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[F]},{retryCount:0}).then(H=>(t0.set(e.uid,!0),H)).catch(H=>{const G=H;throw G.name==="MethodNotFoundRpcError"||G.name==="MethodNotSupportedRpcError"?(t0.set(e.uid,!1),L):G});throw L}})(),O=await se(e,O6,"waitForTransactionReceipt")({checkReplacement:!1,hash:P,pollingInterval:y,timeout:T});if(g&&O.status==="reverted")throw new F1({receipt:O});return O}if((C==null?void 0:C.type)==="local"){const x=await se(e,Hi,"prepareTransactionRequest")({account:C,accessList:s,authorizationList:a,blobs:o,chain:n,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:h,nonceManager:C.nonceManager,parameters:[...Of,"sidecars"],type:E,value:v,...w,to:b}),A=(m=n==null?void 0:n.serializers)==null?void 0:m.transaction,I=await C.signTransaction(x,{serializer:A});return await se(e,e0,"sendRawTransactionSync")({serializedTransaction:I,throwOnReceiptRevert:g})}throw(C==null?void 0:C.type)==="smart"?new Hs({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new Hs({docsPath:"/docs/actions/wallet/sendTransactionSync",type:C==null?void 0:C.type})}catch(b){throw b instanceof Hs?b:Xl(b,{...t,account:C,chain:t.chain||void 0})}}async function PL(e,t){const{id:r}=t;await e.request({method:"wallet_showCallsStatus",params:[r]})}async function IL(e,t){const{account:r=e.account}=t;if(!r)throw new kn({docsPath:"/docs/eip7702/signAuthorization"});const n=Ze(r);if(!n.signAuthorization)throw new Hs({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const s=await _6(e,t);return n.signAuthorization(s)}async function BL(e,{account:t=e.account,message:r}){if(!t)throw new kn({docsPath:"/docs/actions/wallet/signMessage"});const n=Ze(t);if(n.signMessage)return n.signMessage({message:r});const s=typeof r=="string"?Ta(r):r.raw instanceof Uint8Array?Fe(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,n.address]},{retryCount:0})}async function FL(e,t){var l,u,d,f;const{account:r=e.account,chain:n=e.chain,...s}=t;if(!r)throw new kn({docsPath:"/docs/actions/wallet/signTransaction"});const a=Ze(r);tn({account:a,...t});const o=await se(e,ls,"getChainId")({});n!==null&&dp({currentChainId:o,chain:n});const i=(n==null?void 0:n.formatters)||((l=e.chain)==null?void 0:l.formatters),c=((u=i==null?void 0:i.transactionRequest)==null?void 0:u.format)||Dr;return a.signTransaction?a.signTransaction({...s,chainId:o},{serializer:(f=(d=e.chain)==null?void 0:d.serializers)==null?void 0:f.transaction}):await e.request({method:"eth_signTransaction",params:[{...c({...s,account:a},"signTransaction"),chainId:q(o),from:a.address}]},{retryCount:0})}async function UL(e,t){const{account:r=e.account,domain:n,message:s,primaryType:a}=t;if(!r)throw new kn({docsPath:"/docs/actions/wallet/signTypedData"});const o=Ze(r),i={EIP712Domain:k6({domain:n}),...t.types};if(E6({domain:n,message:s,primaryType:a,types:i}),o.signTypedData)return o.signTypedData({domain:n,message:s,primaryType:a,types:i});const c=RN({domain:n,message:s,primaryType:a,types:i});return e.request({method:"eth_signTypedData_v4",params:[o.address,c]},{retryCount:0})}async function OL(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:q(t)}]},{retryCount:0})}async function _L(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}async function DL(e,t){return Gi.internal(e,D6,"sendTransactionSync",t)}function ML(e){return{addChain:t=>wL(e,t),deployContract:t=>vL(e,t),fillTransaction:t=>Uf(e,t),getAddresses:()=>EL(e),getCallsStatus:t=>s6(e,t),getCapabilities:t=>kL(e,t),getChainId:()=>ls(e),getPermissions:()=>CL(e),prepareAuthorization:t=>_6(e,t),prepareTransactionRequest:t=>Hi(e,t),requestAddresses:()=>TL(e),requestPermissions:t=>SL(e,t),sendCalls:t=>n6(e,t),sendCallsSync:t=>AL(e,t),sendRawTransaction:t=>Rf(e,t),sendRawTransactionSync:t=>e0(e,t),sendTransaction:t=>tu(e,t),sendTransactionSync:t=>D6(e,t),showCallsStatus:t=>PL(e,t),signAuthorization:t=>IL(e,t),signMessage:t=>BL(e,t),signTransaction:t=>FL(e,t),signTypedData:t=>UL(e,t),switchChain:t=>OL(e,t),waitForCallsStatus:t=>a6(e,t),watchAsset:t=>_L(e,t),writeContract:t=>Gi(e,t),writeContractSync:t=>DL(e,t)}}function NL(e){const{key:t="wallet",name:r="Wallet Client",transport:n}=e;return i6({...e,key:t,name:r,transport:n,type:"walletClient"}).extend(ML)}function M6({key:e,methods:t,name:r,request:n,retryCount:s=3,retryDelay:a=150,timeout:o,type:i},c){const l=o6();return{config:{key:e,methods:t,name:r,request:n,retryCount:s,retryDelay:a,timeout:o,type:i},request:CN(n,{methods:t,retryCount:s,retryDelay:a,uid:l}),value:c}}function LL(e,t={}){const{key:r="custom",methods:n,name:s="Custom Provider",retryDelay:a}=t;return({retryCount:o})=>M6({key:r,methods:n,name:s,request:e.request.bind(e),retryCount:t.retryCount??o,retryDelay:a,type:"custom"})}class zL extends ${constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function RL(e,t={}){const{batch:r,fetchFn:n,fetchOptions:s,key:a="http",methods:o,name:i="HTTP JSON-RPC",onFetchRequest:c,onFetchResponse:l,retryDelay:u,raw:d}=t;return({chain:f,retryCount:h,timeout:y})=>{const{batchSize:g=1e3,wait:E=0}=typeof r=="object"?r:{},v=t.retryCount??h,w=y??t.timeout??1e4,T=f==null?void 0:f.rpcUrls.default.http[0];if(!T)throw new zL;const C=_N(T,{fetchFn:n,fetchOptions:s,onRequest:c,onResponse:l,timeout:w});return M6({key:a,methods:o,name:i,async request({method:_,params:z}){const S={method:_,params:z},{schedule:m}=Sg({id:T,wait:E,shouldSplitBatch(I){return I.length>g},fn:I=>C.request({body:I}),sort:(I,F)=>I.id-F.id}),b=async I=>r?m(I):[await C.request({body:I})],[{error:x,result:A}]=await b(S);if(d)return{error:x,result:A};if(x)throw new Cp({body:S,error:x,url:T});return A},retryCount:v,retryDelay:u,timeout:w,type:"http"},{fetchOptions:s,url:T})}}function HL(e){const{r:t,s:r}=Bi.Signature.fromCompact(e.slice(2,130)),n=+`0x${e.slice(130)}`,[s,a]=(()=>{if(n===0||n===1)return[void 0,n];if(n===27)return[BigInt(n),0];if(n===28)return[BigInt(n),1];throw new Error("Invalid yParityOrV value")})();return typeof s<"u"?{r:q(t,{size:32}),s:q(r,{size:32}),v:s,yParity:a}:{r:q(t,{size:32}),s:q(r,{size:32}),yParity:a}}const $L=(e,t)=>{const r=Object.values(SM).find(o=>o.id===e);if(!r)return{walletClient:void 0,publicClient:void 0};const n=t?LL(t):void 0,s=n?NL({chain:r,transport:n}):void 0,a=xL({chain:r,transport:n||RL()});return{walletClient:s,publicClient:a}},GL=()=>B.jsx("div",{className:"twap-error-fallback",children:B.jsx("p",{style:{fontSize:20,fontWeight:600,textAlign:"center",width:"100%",marginTop:40},children:"Something went wrong"})});function jL({children:e}){return B.jsx(f3,{FallbackComponent:GL,onError:t=>dt.onCrash(t),children:B.jsx(B.Fragment,{children:e})})}const r0=N.createContext({}),VL=new Qw({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),WL=e=>{var n,s,a;const t=te(o=>o.updateState),r=te(o=>o.state.isMarketOrder);return N.useEffect(()=>{setInterval(()=>{t({currentTime:Date.now()})},6e4)},[t]),N.useEffect(()=>{var o,i,c,l,u,d,f,h,y,g,E,v;t({isMarketOrder:e.module!==ye.LIMIT?!1:(i=(o=e.overrides)==null?void 0:o.state)==null?void 0:i.isMarketOrder,typedChunks:(l=(c=e.overrides)==null?void 0:c.state)==null?void 0:l.chunks,typedFillDelay:(d=(u=e.overrides)==null?void 0:u.state)==null?void 0:d.fillDelay,typedDuration:(h=(f=e.overrides)==null?void 0:f.state)==null?void 0:h.duration,typedLimitPrice:(g=(y=e.overrides)==null?void 0:y.state)==null?void 0:g.limitPrice,typedTriggerPrice:(v=(E=e.overrides)==null?void 0:E.state)==null?void 0:v.triggerPrice,triggerPricePercent:void 0,limitPricePercent:void 0})},[(n=e.overrides)==null?void 0:n.state,e.module]),N.useEffect(()=>{var o,i,c,l;t({typedLimitPrice:(i=(o=e.overrides)==null?void 0:o.state)==null?void 0:i.limitPrice,typedTriggerPrice:(l=(c=e.overrides)==null?void 0:c.state)==null?void 0:l.triggerPrice,triggerPricePercent:void 0,limitPricePercent:void 0})},[(s=e.srcToken)==null?void 0:s.address,(a=e.dstToken)==null?void 0:a.address]),N.useEffect(()=>{e.module===ye.LIMIT&&t({isMarketOrder:!1}),e.module===ye.TAKE_PROFIT&&t({isMarketOrder:!0})},[e.module]),N.useEffect(()=>{r&&t({isInvertedTrade:!1})},[r]),null},qL=({marketReferencePrice:e,srcToken:t,dstToken:r,chainId:n,typedInputAmount:s})=>N.useMemo(()=>{if(Bd(t,r,n)||Fd(t,r,n))return{isLoading:!1,noLiquidity:!1,value:Ac((t==null?void 0:t.decimals)||18,s||"0")};if(j(e.value||0).isZero()||j(s||0).isZero())return e;const a=j(e.value||0).dividedBy(s||0).toFixed();return{...e,value:a}},[e,s,t,r,n]),YL=e=>{const t=Fo(Fc.MIN_CHUNK_SIZE_USD);return t?parseInt(t):e},KL=e=>{const t=te(l=>l.state.acceptedMarketPrice),{walletClient:r,publicClient:n}=N.useMemo(()=>$L(e.chainId,e.provider),[e.chainId,e.provider]),s=N.useMemo(()=>Hh(e.partner),[e.partner]),a=N.useMemo(()=>{const l=s[0];return e.chainId&&s.includes(e.chainId)?e.chainId:l},[e.chainId,s]),o=N.useMemo(()=>ld(e.partner,a),[e.partner,a]),i=qL(e),c=N.useMemo(()=>YL(e.minChunkSizeUsd),[e.minChunkSizeUsd]);return N.useEffect(()=>{dt.init(o,c,a)},[o,a,c]),B.jsxs(r0.Provider,{value:{typedInputAmount:e.typedInputAmount,resetTypedInputAmount:e.resetTypedInputAmount,minChunkSizeUsd:c,account:e.account,walletClient:r,publicClient:n,marketPrice:t||i.value,marketPriceLoading:!t&&i.isLoading,noLiquidity:!t&&i.noLiquidity,config:o,slippage:e.priceProtection,supportedChains:s,chainId:a,partner:e.partner,module:e.module,fees:e.fees||0,components:e.components,overrides:e.overrides,callbacks:e.callbacks,getTranslation:e.getTranslation,translations:e.translations,useToken:e.useToken,refetchBalances:e.refetchBalances,srcUsd1Token:e.srcUsd1Token,dstUsd1Token:e.dstUsd1Token,srcBalance:e.srcBalance,dstBalance:e.dstBalance,srcToken:e.srcToken,dstToken:e.dstToken},children:[B.jsx(WL,{...e}),B.jsx(jL,{children:e.children})]})},ZL=e=>B.jsx(Jw,{client:VL,children:B.jsx(KL,{...e})}),ne=()=>{if(!r0)throw new Error("useSpotContext must be used within a WidgetProvider");return N.useContext(r0)},XL=2e4,QL=[{text:"Minutes",value:Gt.Minutes},{text:"Hours",value:Gt.Hours},{text:"Days",value:Gt.Days}],JL="The protocol uses an oracle price to help protect users from unfavorable executions. If the execution price is worse than the oracle price by more than the allowed percentage, the transaction will not be executed.";var n0={},ez=[{id:"fa",name:"Font Awesome",projectUrl:"https://fontawesome.com/",license:"CC BY 4.0 License",licenseUrl:"https://creativecommons.org/licenses/by/4.0/"},{id:"io",name:"Ionicons 4",projectUrl:"https://ionicons.com/",license:"MIT",licenseUrl:"https://github.com/ionic-team/ionicons/blob/master/LICENSE"},{id:"io5",name:"Ionicons 5",projectUrl:"https://ionicons.com/",license:"MIT",licenseUrl:"https://github.com/ionic-team/ionicons/blob/master/LICENSE"},{id:"md",name:"Material Design icons",projectUrl:"http://google.github.io/material-design-icons/",license:"Apache License Version 2.0",licenseUrl:"https://github.com/google/material-design-icons/blob/master/LICENSE"},{id:"ti",name:"Typicons",projectUrl:"http://s-ings.com/typicons/",license:"CC BY-SA 3.0",licenseUrl:"https://creativecommons.org/licenses/by-sa/3.0/"},{id:"go",name:"Github Octicons icons",projectUrl:"https://octicons.github.com/",license:"MIT",licenseUrl:"https://github.com/primer/octicons/blob/master/LICENSE"},{id:"fi",name:"Feather",projectUrl:"https://feathericons.com/",license:"MIT",licenseUrl:"https://github.com/feathericons/feather/blob/master/LICENSE"},{id:"gi",name:"Game Icons",projectUrl:"https://game-icons.net/",license:"CC BY 3.0",licenseUrl:"https://creativecommons.org/licenses/by/3.0/"},{id:"wi",name:"Weather Icons",projectUrl:"https://erikflowers.github.io/weather-icons/",license:"SIL OFL 1.1",licenseUrl:"http://scripts.sil.org/OFL"},{id:"di",name:"Devicons",projectUrl:"https://vorillaz.github.io/devicons/",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"ai",name:"Ant Design Icons",projectUrl:"https://github.com/ant-design/ant-design-icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"bs",name:"Bootstrap Icons",projectUrl:"https://github.com/twbs/icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"ri",name:"Remix Icon",projectUrl:"https://github.com/Remix-Design/RemixIcon",license:"Apache License Version 2.0",licenseUrl:"http://www.apache.org/licenses/"},{id:"fc",name:"Flat Color Icons",projectUrl:"https://github.com/icons8/flat-color-icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"gr",name:"Grommet-Icons",projectUrl:"https://github.com/grommet/grommet-icons",license:"Apache License Version 2.0",licenseUrl:"http://www.apache.org/licenses/"},{id:"hi",name:"Heroicons",projectUrl:"https://github.com/refactoringui/heroicons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"si",name:"Simple Icons",projectUrl:"https://simpleicons.org/",license:"CC0 1.0 Universal",licenseUrl:"https://creativecommons.org/publicdomain/zero/1.0/"},{id:"im",name:"IcoMoon Free",projectUrl:"https://github.com/Keyamoon/IcoMoon-Free",license:"CC BY 4.0 License"},{id:"bi",name:"BoxIcons",projectUrl:"https://github.com/atisawd/boxicons",license:"CC BY 4.0 License"},{id:"cg",name:"css.gg",projectUrl:"https://github.com/astrit/css.gg",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"vsc",name:"VS Code Icons",projectUrl:"https://github.com/microsoft/vscode-codicons",license:"CC BY 4.0",licenseUrl:"https://creativecommons.org/licenses/by/4.0/"}],s0={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a0=N.createContext&&N.createContext(s0),us=function(){return us=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},us.apply(this,arguments)},tz=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r};function N6(e){return e&&e.map(function(t,r){return N.createElement(t.tag,us({key:r},t.attr),N6(t.child))})}function rz(e){return function(t){return N.createElement(L6,us({attr:us({},e.attr)},t),N6(e.child))}}function L6(e){var t=function(r){var n=e.attr,s=e.size,a=e.title,o=tz(e,["attr","size","title"]),i=s||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),N.createElement("svg",us({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:c,style:us(us({color:e.color||r.color},r.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&N.createElement("title",null,a),e.children)};return a0!==void 0?N.createElement(a0.Consumer,null,function(r){return t(r)}):t(s0)}const lu=rw(Object.freeze(Object.defineProperty({__proto__:null,DefaultContext:s0,GenIcon:rz,IconBase:L6,IconContext:a0,IconsManifest:ez},Symbol.toStringTag,{value:"Module"})));var z6;function nz(){if(z6)return n0;z6=1;var e=lu.GenIcon;return n0.IoIosArrowDown=function(r){return e({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"}}]})(r)},n0}var sz=nz(),o0={},R6;function az(){if(R6)return o0;R6=1;var e=lu.GenIcon;return o0.AiOutlineCopy=function(r){return e({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]})(r)},o0}var oz=az();//! moment.js
110
110
  //! version : 2.30.1
111
111
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
112
112
  //! license : MIT
113
113
  //! momentjs.com
114
- var H6;function ee(){return H6.apply(null,arguments)}function iz(e){H6=e}function Hr(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function ta(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ze(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i0(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ze(e,t))return!1;return!0}function rr(e){return e===void 0}function On(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Wi(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function $6(e,t){var r=[],n,s=e.length;for(n=0;n<s;++n)r.push(t(e[n],n));return r}function ds(e,t){for(var r in t)ze(t,r)&&(e[r]=t[r]);return ze(t,"toString")&&(e.toString=t.toString),ze(t,"valueOf")&&(e.valueOf=t.valueOf),e}function rn(e,t,r,n){return m2(e,t,r,n,!0).utc()}function cz(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ke(e){return e._pf==null&&(e._pf=cz()),e._pf}var c0;Array.prototype.some?c0=Array.prototype.some:c0=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function l0(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=ke(e),r=c0.call(t.parsedDateParts,function(s){return s!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function uu(e){var t=rn(NaN);return e!=null?ds(ke(t),e):ke(t).userInvalidated=!0,t}var G6=ee.momentProperties=[],u0=!1;function d0(e,t){var r,n,s,a=G6.length;if(rr(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),rr(t._i)||(e._i=t._i),rr(t._f)||(e._f=t._f),rr(t._l)||(e._l=t._l),rr(t._strict)||(e._strict=t._strict),rr(t._tzm)||(e._tzm=t._tzm),rr(t._isUTC)||(e._isUTC=t._isUTC),rr(t._offset)||(e._offset=t._offset),rr(t._pf)||(e._pf=ke(t)),rr(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)n=G6[r],s=t[n],rr(s)||(e[n]=s);return e}function qi(e){d0(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),u0===!1&&(u0=!0,ee.updateOffset(this),u0=!1)}function $r(e){return e instanceof qi||e!=null&&e._isAMomentObject!=null}function j6(e){ee.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Cr(e,t){var r=!0;return ds(function(){if(ee.deprecationHandler!=null&&ee.deprecationHandler(null,e),r){var n=[],s,a,o,i=arguments.length;for(a=0;a<i;a++){if(s="",typeof arguments[a]=="object"){s+=`
114
+ var H6;function ee(){return H6.apply(null,arguments)}function iz(e){H6=e}function Hr(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function ta(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ze(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i0(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ze(e,t))return!1;return!0}function rr(e){return e===void 0}function On(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Wi(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function $6(e,t){var r=[],n,s=e.length;for(n=0;n<s;++n)r.push(t(e[n],n));return r}function ds(e,t){for(var r in t)ze(t,r)&&(e[r]=t[r]);return ze(t,"toString")&&(e.toString=t.toString),ze(t,"valueOf")&&(e.valueOf=t.valueOf),e}function nn(e,t,r,n){return m2(e,t,r,n,!0).utc()}function cz(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ke(e){return e._pf==null&&(e._pf=cz()),e._pf}var c0;Array.prototype.some?c0=Array.prototype.some:c0=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function l0(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=ke(e),r=c0.call(t.parsedDateParts,function(s){return s!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function uu(e){var t=nn(NaN);return e!=null?ds(ke(t),e):ke(t).userInvalidated=!0,t}var G6=ee.momentProperties=[],u0=!1;function d0(e,t){var r,n,s,a=G6.length;if(rr(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),rr(t._i)||(e._i=t._i),rr(t._f)||(e._f=t._f),rr(t._l)||(e._l=t._l),rr(t._strict)||(e._strict=t._strict),rr(t._tzm)||(e._tzm=t._tzm),rr(t._isUTC)||(e._isUTC=t._isUTC),rr(t._offset)||(e._offset=t._offset),rr(t._pf)||(e._pf=ke(t)),rr(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)n=G6[r],s=t[n],rr(s)||(e[n]=s);return e}function qi(e){d0(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),u0===!1&&(u0=!0,ee.updateOffset(this),u0=!1)}function $r(e){return e instanceof qi||e!=null&&e._isAMomentObject!=null}function j6(e){ee.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Cr(e,t){var r=!0;return ds(function(){if(ee.deprecationHandler!=null&&ee.deprecationHandler(null,e),r){var n=[],s,a,o,i=arguments.length;for(a=0;a<i;a++){if(s="",typeof arguments[a]=="object"){s+=`
115
115
  [`+a+"] ";for(o in arguments[0])ze(arguments[0],o)&&(s+=o+": "+arguments[0][o]+", ");s=s.slice(0,-2)}else s=arguments[a];n.push(s)}j6(e+`
116
116
  Arguments: `+Array.prototype.slice.call(n).join("")+`
117
- `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var V6={};function W6(e,t){ee.deprecationHandler!=null&&ee.deprecationHandler(e,t),V6[e]||(j6(t),V6[e]=!0)}ee.suppressDeprecationWarnings=!1,ee.deprecationHandler=null;function nn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function lz(e){var t,r;for(r in e)ze(e,r)&&(t=e[r],nn(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function p0(e,t){var r=ds({},e),n;for(n in t)ze(t,n)&&(ta(e[n])&&ta(t[n])?(r[n]={},ds(r[n],e[n]),ds(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)ze(e,n)&&!ze(t,n)&&ta(e[n])&&(r[n]=ds({},r[n]));return r}function f0(e){e!=null&&this.set(e)}var h0;Object.keys?h0=Object.keys:h0=function(e){var t,r=[];for(t in e)ze(e,t)&&r.push(t);return r};var uz={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function dz(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return nn(n)?n.call(t,r):n}function sn(e,t,r){var n=""+Math.abs(e),s=t-n.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var m0=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,du=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,b0={},ro={};function ue(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(ro[e]=s),t&&(ro[t[0]]=function(){return sn(s.apply(this,arguments),t[1],t[2])}),r&&(ro[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function pz(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function fz(e){var t=e.match(m0),r,n;for(r=0,n=t.length;r<n;r++)ro[t[r]]?t[r]=ro[t[r]]:t[r]=pz(t[r]);return function(s){var a="",o;for(o=0;o<n;o++)a+=nn(t[o])?t[o].call(s,e):t[o];return a}}function pu(e,t){return e.isValid()?(t=q6(t,e.localeData()),b0[t]=b0[t]||fz(t),b0[t](e)):e.localeData().invalidDate()}function q6(e,t){var r=5;function n(s){return t.longDateFormat(s)||s}for(du.lastIndex=0;r>=0&&du.test(e);)e=e.replace(du,n),du.lastIndex=0,r-=1;return e}var hz={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function mz(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(m0).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var bz="Invalid date";function yz(){return this._invalidDate}var gz="%d",xz=/\d{1,2}/;function wz(e){return this._ordinal.replace("%d",e)}var vz={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Ez(e,t,r,n){var s=this._relativeTime[r];return nn(s)?s(e,t,r,n):s.replace(/%d/i,e)}function kz(e,t){var r=this._relativeTime[e>0?"future":"past"];return nn(r)?r(t):r.replace(/%s/i,t)}var Y6={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Tr(e){return typeof e=="string"?Y6[e]||Y6[e.toLowerCase()]:void 0}function y0(e){var t={},r,n;for(n in e)ze(e,n)&&(r=Tr(n),r&&(t[r]=e[n]));return t}var Cz={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Tz(e){var t=[],r;for(r in e)ze(e,r)&&t.push({unit:r,priority:Cz[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}var K6=/\d/,hr=/\d\d/,Z6=/\d{3}/,g0=/\d{4}/,fu=/[+-]?\d{6}/,Je=/\d\d?/,X6=/\d\d\d\d?/,Q6=/\d\d\d\d\d\d?/,hu=/\d{1,3}/,x0=/\d{1,4}/,mu=/[+-]?\d{1,6}/,no=/\d+/,bu=/[+-]?\d+/,Sz=/Z|[+-]\d\d:?\d\d/gi,yu=/Z|[+-]\d\d(?::?\d\d)?/gi,Az=/[+-]?\d+(\.\d{1,3})?/,Yi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,so=/^[1-9]\d?/,w0=/^([1-9]\d|\d)/,gu;gu={};function ae(e,t,r){gu[e]=nn(t)?t:function(n,s){return n&&r?r:t}}function Pz(e,t){return ze(gu,e)?gu[e](t._strict,t._locale):new RegExp(Iz(e))}function Iz(e){return _n(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,s,a){return r||n||s||a}))}function _n(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Sr(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ie(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Sr(t)),r}var v0={};function qe(e,t){var r,n=t,s;for(typeof e=="string"&&(e=[e]),On(t)&&(n=function(a,o){o[t]=Ie(a)}),s=e.length,r=0;r<s;r++)v0[e[r]]=n}function Ki(e,t){qe(e,function(r,n,s,a){s._w=s._w||{},t(r,s._w,s,a)})}function Bz(e,t,r){t!=null&&ze(v0,e)&&v0[e](t,r._a,r,e)}function xu(e){return e%4===0&&e%100!==0||e%400===0}var zt=0,Dn=1,an=2,Tt=3,Gr=4,Mn=5,ra=6,Fz=7,Uz=8;ue("Y",0,0,function(){var e=this.year();return e<=9999?sn(e,4):"+"+e}),ue(0,["YY",2],0,function(){return this.year()%100}),ue(0,["YYYY",4],0,"year"),ue(0,["YYYYY",5],0,"year"),ue(0,["YYYYYY",6,!0],0,"year"),ae("Y",bu),ae("YY",Je,hr),ae("YYYY",x0,g0),ae("YYYYY",mu,fu),ae("YYYYYY",mu,fu),qe(["YYYYY","YYYYYY"],zt),qe("YYYY",function(e,t){t[zt]=e.length===2?ee.parseTwoDigitYear(e):Ie(e)}),qe("YY",function(e,t){t[zt]=ee.parseTwoDigitYear(e)}),qe("Y",function(e,t){t[zt]=parseInt(e,10)});function Zi(e){return xu(e)?366:365}ee.parseTwoDigitYear=function(e){return Ie(e)+(Ie(e)>68?1900:2e3)};var J6=ao("FullYear",!0);function Oz(){return xu(this.year())}function ao(e,t){return function(r){return r!=null?(e2(this,e,r),ee.updateOffset(this,t),this):Xi(this,e)}}function Xi(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function e2(e,t,r){var n,s,a,o,i;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(s?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(s?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(s?n.setUTCHours(r):n.setHours(r));case"Date":return void(s?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}a=r,o=e.month(),i=e.date(),i=i===29&&o===1&&!xu(a)?28:i,s?n.setUTCFullYear(a,o,i):n.setFullYear(a,o,i)}}function _z(e){return e=Tr(e),nn(this[e])?this[e]():this}function Dz(e,t){if(typeof e=="object"){e=y0(e);var r=Tz(e),n,s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(e=Tr(e),nn(this[e]))return this[e](t);return this}function Mz(e,t){return(e%t+t)%t}var gt;Array.prototype.indexOf?gt=Array.prototype.indexOf:gt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function E0(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Mz(t,12);return e+=(t-r)/12,r===1?xu(e)?29:28:31-r%7%2}ue("M",["MM",2],"Mo",function(){return this.month()+1}),ue("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),ue("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ae("M",Je,so),ae("MM",Je,hr),ae("MMM",function(e,t){return t.monthsShortRegex(e)}),ae("MMMM",function(e,t){return t.monthsRegex(e)}),qe(["M","MM"],function(e,t){t[Dn]=Ie(e)-1}),qe(["MMM","MMMM"],function(e,t,r,n){var s=r._locale.monthsParse(e,n,r._strict);s!=null?t[Dn]=s:ke(r).invalidMonth=e});var Nz="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),t2="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),r2=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Lz=Yi,zz=Yi;function Rz(e,t){return e?Hr(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||r2).test(t)?"format":"standalone"][e.month()]:Hr(this._months)?this._months:this._months.standalone}function Hz(e,t){return e?Hr(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[r2.test(t)?"format":"standalone"][e.month()]:Hr(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function $z(e,t,r){var n,s,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=rn([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(s=gt.call(this._shortMonthsParse,o),s!==-1?s:null):(s=gt.call(this._longMonthsParse,o),s!==-1?s:null):t==="MMM"?(s=gt.call(this._shortMonthsParse,o),s!==-1?s:(s=gt.call(this._longMonthsParse,o),s!==-1?s:null)):(s=gt.call(this._longMonthsParse,o),s!==-1?s:(s=gt.call(this._shortMonthsParse,o),s!==-1?s:null))}function Gz(e,t,r){var n,s,a;if(this._monthsParseExact)return $z.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=rn([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function n2(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Ie(t);else if(t=e.localeData().monthsParse(t),!On(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,E0(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function s2(e){return e!=null?(n2(this,e),ee.updateOffset(this,!0),this):Xi(this,"Month")}function jz(){return E0(this.year(),this.month())}function Vz(e){return this._monthsParseExact?(ze(this,"_monthsRegex")||a2.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ze(this,"_monthsShortRegex")||(this._monthsShortRegex=Lz),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Wz(e){return this._monthsParseExact?(ze(this,"_monthsRegex")||a2.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ze(this,"_monthsRegex")||(this._monthsRegex=zz),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function a2(){function e(c,l){return l.length-c.length}var t=[],r=[],n=[],s,a,o,i;for(s=0;s<12;s++)a=rn([2e3,s]),o=_n(this.monthsShort(a,"")),i=_n(this.months(a,"")),t.push(o),r.push(i),n.push(i),n.push(o);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function qz(e,t,r,n,s,a,o){var i;return e<100&&e>=0?(i=new Date(e+400,t,r,n,s,a,o),isFinite(i.getFullYear())&&i.setFullYear(e)):i=new Date(e,t,r,n,s,a,o),i}function Qi(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wu(e,t,r){var n=7+t-r,s=(7+Qi(e,0,n).getUTCDay()-t)%7;return-s+n-1}function o2(e,t,r,n,s){var a=(7+r-n)%7,o=wu(e,n,s),i=1+7*(t-1)+a+o,c,l;return i<=0?(c=e-1,l=Zi(c)+i):i>Zi(e)?(c=e+1,l=i-Zi(e)):(c=e,l=i),{year:c,dayOfYear:l}}function Ji(e,t,r){var n=wu(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,a,o;return s<1?(o=e.year()-1,a=s+Nn(o,t,r)):s>Nn(e.year(),t,r)?(a=s-Nn(e.year(),t,r),o=e.year()+1):(o=e.year(),a=s),{week:a,year:o}}function Nn(e,t,r){var n=wu(e,t,r),s=wu(e+1,t,r);return(Zi(e)-n+s)/7}ue("w",["ww",2],"wo","week"),ue("W",["WW",2],"Wo","isoWeek"),ae("w",Je,so),ae("ww",Je,hr),ae("W",Je,so),ae("WW",Je,hr),Ki(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=Ie(e)});function Yz(e){return Ji(e,this._week.dow,this._week.doy).week}var Kz={dow:0,doy:6};function Zz(){return this._week.dow}function Xz(){return this._week.doy}function Qz(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Jz(e){var t=Ji(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ue("d",0,"do","day"),ue("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),ue("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),ue("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),ue("e",0,0,"weekday"),ue("E",0,0,"isoWeekday"),ae("d",Je),ae("e",Je),ae("E",Je),ae("dd",function(e,t){return t.weekdaysMinRegex(e)}),ae("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ae("dddd",function(e,t){return t.weekdaysRegex(e)}),Ki(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:ke(r).invalidWeekday=e}),Ki(["d","e","E"],function(e,t,r,n){t[n]=Ie(e)});function eR(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function tR(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function k0(e,t){return e.slice(t,7).concat(e.slice(0,t))}var rR="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),i2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),nR="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),sR=Yi,aR=Yi,oR=Yi;function iR(e,t){var r=Hr(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?k0(r,this._week.dow):e?r[e.day()]:r}function cR(e){return e===!0?k0(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function lR(e){return e===!0?k0(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function uR(e,t,r){var n,s,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=rn([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(s=gt.call(this._weekdaysParse,o),s!==-1?s:null):t==="ddd"?(s=gt.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=gt.call(this._minWeekdaysParse,o),s!==-1?s:null):t==="dddd"?(s=gt.call(this._weekdaysParse,o),s!==-1||(s=gt.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=gt.call(this._minWeekdaysParse,o),s!==-1?s:null)):t==="ddd"?(s=gt.call(this._shortWeekdaysParse,o),s!==-1||(s=gt.call(this._weekdaysParse,o),s!==-1)?s:(s=gt.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=gt.call(this._minWeekdaysParse,o),s!==-1||(s=gt.call(this._weekdaysParse,o),s!==-1)?s:(s=gt.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function dR(e,t,r){var n,s,a;if(this._weekdaysParseExact)return uR.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=rn([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function pR(e){if(!this.isValid())return e!=null?this:NaN;var t=Xi(this,"Day");return e!=null?(e=eR(e,this.localeData()),this.add(e-t,"d")):t}function fR(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function hR(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=tR(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function mR(e){return this._weekdaysParseExact?(ze(this,"_weekdaysRegex")||C0.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ze(this,"_weekdaysRegex")||(this._weekdaysRegex=sR),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function bR(e){return this._weekdaysParseExact?(ze(this,"_weekdaysRegex")||C0.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ze(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=aR),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function yR(e){return this._weekdaysParseExact?(ze(this,"_weekdaysRegex")||C0.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ze(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=oR),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function C0(){function e(u,d){return d.length-u.length}var t=[],r=[],n=[],s=[],a,o,i,c,l;for(a=0;a<7;a++)o=rn([2e3,1]).day(a),i=_n(this.weekdaysMin(o,"")),c=_n(this.weekdaysShort(o,"")),l=_n(this.weekdays(o,"")),t.push(i),r.push(c),n.push(l),s.push(i),s.push(c),s.push(l);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function T0(){return this.hours()%12||12}function gR(){return this.hours()||24}ue("H",["HH",2],0,"hour"),ue("h",["hh",2],0,T0),ue("k",["kk",2],0,gR),ue("hmm",0,0,function(){return""+T0.apply(this)+sn(this.minutes(),2)}),ue("hmmss",0,0,function(){return""+T0.apply(this)+sn(this.minutes(),2)+sn(this.seconds(),2)}),ue("Hmm",0,0,function(){return""+this.hours()+sn(this.minutes(),2)}),ue("Hmmss",0,0,function(){return""+this.hours()+sn(this.minutes(),2)+sn(this.seconds(),2)});function c2(e,t){ue(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}c2("a",!0),c2("A",!1);function l2(e,t){return t._meridiemParse}ae("a",l2),ae("A",l2),ae("H",Je,w0),ae("h",Je,so),ae("k",Je,so),ae("HH",Je,hr),ae("hh",Je,hr),ae("kk",Je,hr),ae("hmm",X6),ae("hmmss",Q6),ae("Hmm",X6),ae("Hmmss",Q6),qe(["H","HH"],Tt),qe(["k","kk"],function(e,t,r){var n=Ie(e);t[Tt]=n===24?0:n}),qe(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),qe(["h","hh"],function(e,t,r){t[Tt]=Ie(e),ke(r).bigHour=!0}),qe("hmm",function(e,t,r){var n=e.length-2;t[Tt]=Ie(e.substr(0,n)),t[Gr]=Ie(e.substr(n)),ke(r).bigHour=!0}),qe("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[Tt]=Ie(e.substr(0,n)),t[Gr]=Ie(e.substr(n,2)),t[Mn]=Ie(e.substr(s)),ke(r).bigHour=!0}),qe("Hmm",function(e,t,r){var n=e.length-2;t[Tt]=Ie(e.substr(0,n)),t[Gr]=Ie(e.substr(n))}),qe("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[Tt]=Ie(e.substr(0,n)),t[Gr]=Ie(e.substr(n,2)),t[Mn]=Ie(e.substr(s))});function xR(e){return(e+"").toLowerCase().charAt(0)==="p"}var wR=/[ap]\.?m?\.?/i,vR=ao("Hours",!0);function ER(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var u2={calendar:uz,longDateFormat:hz,invalidDate:bz,ordinal:gz,dayOfMonthOrdinalParse:xz,relativeTime:vz,months:Nz,monthsShort:t2,week:Kz,weekdays:rR,weekdaysMin:nR,weekdaysShort:i2,meridiemParse:wR},st={},ec={},tc;function kR(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function d2(e){return e&&e.toLowerCase().replace("_","-")}function CR(e){for(var t=0,r,n,s,a;t<e.length;){for(a=d2(e[t]).split("-"),r=a.length,n=d2(e[t+1]),n=n?n.split("-"):null;r>0;){if(s=vu(a.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&kR(a,n)>=r-1)break;r--}t++}return tc}function TR(e){return!!(e&&e.match("^[^/\\\\]*$"))}function vu(e){var t=null,r;if(st[e]===void 0&&typeof module<"u"&&module&&module.exports&&TR(e))try{t=tc._abbr,r=require,r("./locale/"+e),ps(t)}catch{st[e]=null}return st[e]}function ps(e,t){var r;return e&&(rr(t)?r=Ln(e):r=S0(e,t),r?tc=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tc._abbr}function S0(e,t){if(t!==null){var r,n=u2;if(t.abbr=e,st[e]!=null)W6("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=st[e]._config;else if(t.parentLocale!=null)if(st[t.parentLocale]!=null)n=st[t.parentLocale]._config;else if(r=vu(t.parentLocale),r!=null)n=r._config;else return ec[t.parentLocale]||(ec[t.parentLocale]=[]),ec[t.parentLocale].push({name:e,config:t}),null;return st[e]=new f0(p0(n,t)),ec[e]&&ec[e].forEach(function(s){S0(s.name,s.config)}),ps(e),st[e]}else return delete st[e],null}function SR(e,t){if(t!=null){var r,n,s=u2;st[e]!=null&&st[e].parentLocale!=null?st[e].set(p0(st[e]._config,t)):(n=vu(e),n!=null&&(s=n._config),t=p0(s,t),n==null&&(t.abbr=e),r=new f0(t),r.parentLocale=st[e],st[e]=r),ps(e)}else st[e]!=null&&(st[e].parentLocale!=null?(st[e]=st[e].parentLocale,e===ps()&&ps(e)):st[e]!=null&&delete st[e]);return st[e]}function Ln(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tc;if(!Hr(e)){if(t=vu(e),t)return t;e=[e]}return CR(e)}function AR(){return h0(st)}function A0(e){var t,r=e._a;return r&&ke(e).overflow===-2&&(t=r[Dn]<0||r[Dn]>11?Dn:r[an]<1||r[an]>E0(r[zt],r[Dn])?an:r[Tt]<0||r[Tt]>24||r[Tt]===24&&(r[Gr]!==0||r[Mn]!==0||r[ra]!==0)?Tt:r[Gr]<0||r[Gr]>59?Gr:r[Mn]<0||r[Mn]>59?Mn:r[ra]<0||r[ra]>999?ra:-1,ke(e)._overflowDayOfYear&&(t<zt||t>an)&&(t=an),ke(e)._overflowWeeks&&t===-1&&(t=Fz),ke(e)._overflowWeekday&&t===-1&&(t=Uz),ke(e).overflow=t),e}var PR=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,IR=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,BR=/Z|[+-]\d\d(?::?\d\d)?/,Eu=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],P0=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],FR=/^\/?Date\((-?\d+)/i,UR=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,OR={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function p2(e){var t,r,n=e._i,s=PR.exec(n)||IR.exec(n),a,o,i,c,l=Eu.length,u=P0.length;if(s){for(ke(e).iso=!0,t=0,r=l;t<r;t++)if(Eu[t][1].exec(s[1])){o=Eu[t][0],a=Eu[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(s[3]){for(t=0,r=u;t<r;t++)if(P0[t][1].exec(s[3])){i=(s[2]||" ")+P0[t][0];break}if(i==null){e._isValid=!1;return}}if(!a&&i!=null){e._isValid=!1;return}if(s[4])if(BR.exec(s[4]))c="Z";else{e._isValid=!1;return}e._f=o+(i||"")+(c||""),B0(e)}else e._isValid=!1}function _R(e,t,r,n,s,a){var o=[DR(e),t2.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(s,10)];return a&&o.push(parseInt(a,10)),o}function DR(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function MR(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function NR(e,t,r){if(e){var n=i2.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return ke(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function LR(e,t,r){if(e)return OR[e];if(t)return 0;var n=parseInt(r,10),s=n%100,a=(n-s)/100;return a*60+s}function f2(e){var t=UR.exec(MR(e._i)),r;if(t){if(r=_R(t[4],t[3],t[2],t[5],t[6],t[7]),!NR(t[1],r,e))return;e._a=r,e._tzm=LR(t[8],t[9],t[10]),e._d=Qi.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),ke(e).rfc2822=!0}else e._isValid=!1}function zR(e){var t=FR.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(p2(e),e._isValid===!1)delete e._isValid;else return;if(f2(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ee.createFromInputFallback(e)}ee.createFromInputFallback=Cr("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function oo(e,t,r){return e??t??r}function RR(e){var t=new Date(ee.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function I0(e){var t,r,n=[],s,a,o;if(!e._d){for(s=RR(e),e._w&&e._a[an]==null&&e._a[Dn]==null&&HR(e),e._dayOfYear!=null&&(o=oo(e._a[zt],s[zt]),(e._dayOfYear>Zi(o)||e._dayOfYear===0)&&(ke(e)._overflowDayOfYear=!0),r=Qi(o,0,e._dayOfYear),e._a[Dn]=r.getUTCMonth(),e._a[an]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Tt]===24&&e._a[Gr]===0&&e._a[Mn]===0&&e._a[ra]===0&&(e._nextDay=!0,e._a[Tt]=0),e._d=(e._useUTC?Qi:qz).apply(null,n),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Tt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(ke(e).weekdayMismatch=!0)}}function HR(e){var t,r,n,s,a,o,i,c,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,r=oo(t.GG,e._a[zt],Ji(et(),1,4).year),n=oo(t.W,1),s=oo(t.E,1),(s<1||s>7)&&(c=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=Ji(et(),a,o),r=oo(t.gg,e._a[zt],l.year),n=oo(t.w,l.week),t.d!=null?(s=t.d,(s<0||s>6)&&(c=!0)):t.e!=null?(s=t.e+a,(t.e<0||t.e>6)&&(c=!0)):s=a),n<1||n>Nn(r,a,o)?ke(e)._overflowWeeks=!0:c!=null?ke(e)._overflowWeekday=!0:(i=o2(r,n,s,a,o),e._a[zt]=i.year,e._dayOfYear=i.dayOfYear)}ee.ISO_8601=function(){},ee.RFC_2822=function(){};function B0(e){if(e._f===ee.ISO_8601){p2(e);return}if(e._f===ee.RFC_2822){f2(e);return}e._a=[],ke(e).empty=!0;var t=""+e._i,r,n,s,a,o,i=t.length,c=0,l,u;for(s=q6(e._f,e._locale).match(m0)||[],u=s.length,r=0;r<u;r++)a=s[r],n=(t.match(Pz(a,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&ke(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),c+=n.length),ro[a]?(n?ke(e).empty=!1:ke(e).unusedTokens.push(a),Bz(a,n,e)):e._strict&&!n&&ke(e).unusedTokens.push(a);ke(e).charsLeftOver=i-c,t.length>0&&ke(e).unusedInput.push(t),e._a[Tt]<=12&&ke(e).bigHour===!0&&e._a[Tt]>0&&(ke(e).bigHour=void 0),ke(e).parsedDateParts=e._a.slice(0),ke(e).meridiem=e._meridiem,e._a[Tt]=$R(e._locale,e._a[Tt],e._meridiem),l=ke(e).era,l!==null&&(e._a[zt]=e._locale.erasConvertYear(l,e._a[zt])),I0(e),A0(e)}function $R(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function GR(e){var t,r,n,s,a,o,i=!1,c=e._f.length;if(c===0){ke(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<c;s++)a=0,o=!1,t=d0({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],B0(t),l0(t)&&(o=!0),a+=ke(t).charsLeftOver,a+=ke(t).unusedTokens.length*10,ke(t).score=a,i?a<n&&(n=a,r=t):(n==null||a<n||o)&&(n=a,r=t,o&&(i=!0));ds(e,r||t)}function jR(e){if(!e._d){var t=y0(e._i),r=t.day===void 0?t.date:t.day;e._a=$6([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),I0(e)}}function VR(e){var t=new qi(A0(h2(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function h2(e){var t=e._i,r=e._f;return e._locale=e._locale||Ln(e._l),t===null||r===void 0&&t===""?uu({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),$r(t)?new qi(A0(t)):(Wi(t)?e._d=t:Hr(r)?GR(e):r?B0(e):WR(e),l0(e)||(e._d=null),e))}function WR(e){var t=e._i;rr(t)?e._d=new Date(ee.now()):Wi(t)?e._d=new Date(t.valueOf()):typeof t=="string"?zR(e):Hr(t)?(e._a=$6(t.slice(0),function(r){return parseInt(r,10)}),I0(e)):ta(t)?jR(e):On(t)?e._d=new Date(t):ee.createFromInputFallback(e)}function m2(e,t,r,n,s){var a={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(ta(e)&&i0(e)||Hr(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=s,a._l=r,a._i=e,a._f=t,a._strict=n,VR(a)}function et(e,t,r,n){return m2(e,t,r,n,!1)}var qR=Cr("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=et.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:uu()}),YR=Cr("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=et.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:uu()});function b2(e,t){var r,n;if(t.length===1&&Hr(t[0])&&(t=t[0]),!t.length)return et();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function KR(){var e=[].slice.call(arguments,0);return b2("isBefore",e)}function ZR(){var e=[].slice.call(arguments,0);return b2("isAfter",e)}var XR=function(){return Date.now?Date.now():+new Date},rc=["year","quarter","month","week","day","hour","minute","second","millisecond"];function QR(e){var t,r=!1,n,s=rc.length;for(t in e)if(ze(e,t)&&!(gt.call(rc,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<s;++n)if(e[rc[n]]){if(r)return!1;parseFloat(e[rc[n]])!==Ie(e[rc[n]])&&(r=!0)}return!0}function JR(){return this._isValid}function eH(){return jr(NaN)}function ku(e){var t=y0(e),r=t.year||0,n=t.quarter||0,s=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,i=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=QR(t),this._milliseconds=+u+l*1e3+c*6e4+i*1e3*60*60,this._days=+o+a*7,this._months=+s+n*3+r*12,this._data={},this._locale=Ln(),this._bubble()}function Cu(e){return e instanceof ku}function F0(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function tH(e,t,r){var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0,o;for(o=0;o<n;o++)Ie(e[o])!==Ie(t[o])&&a++;return a+s}function y2(e,t){ue(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+sn(~~(r/60),2)+t+sn(~~r%60,2)})}y2("Z",":"),y2("ZZ",""),ae("Z",yu),ae("ZZ",yu),qe(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=U0(yu,e)});var rH=/([\+\-]|\d\d)/gi;function U0(e,t){var r=(t||"").match(e),n,s,a;return r===null?null:(n=r[r.length-1]||[],s=(n+"").match(rH)||["-",0,0],a=+(s[1]*60)+Ie(s[2]),a===0?0:s[0]==="+"?a:-a)}function O0(e,t){var r,n;return t._isUTC?(r=t.clone(),n=($r(e)||Wi(e)?e.valueOf():et(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),ee.updateOffset(r,!1),r):et(e).local()}function _0(e){return-Math.round(e._d.getTimezoneOffset())}ee.updateOffset=function(){};function nH(e,t,r){var n=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=U0(yu,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=_0(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),n!==e&&(!t||this._changeInProgress?v2(this,jr(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ee.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:_0(this)}function sH(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function aH(e){return this.utcOffset(0,e)}function oH(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(_0(this),"m")),this}function iH(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=U0(Sz,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function cH(e){return this.isValid()?(e=e?et(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function lH(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function uH(){if(!rr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return d0(e,this),e=h2(e),e._a?(t=e._isUTC?rn(e._a):et(e._a),this._isDSTShifted=this.isValid()&&tH(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function dH(){return this.isValid()?!this._isUTC:!1}function pH(){return this.isValid()?this._isUTC:!1}function g2(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fH=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,hH=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jr(e,t){var r=e,n=null,s,a,o;return Cu(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:On(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=fH.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:Ie(n[an])*s,h:Ie(n[Tt])*s,m:Ie(n[Gr])*s,s:Ie(n[Mn])*s,ms:Ie(F0(n[ra]*1e3))*s}):(n=hH.exec(e))?(s=n[1]==="-"?-1:1,r={y:na(n[2],s),M:na(n[3],s),w:na(n[4],s),d:na(n[5],s),h:na(n[6],s),m:na(n[7],s),s:na(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=mH(et(r.from),et(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),a=new ku(r),Cu(e)&&ze(e,"_locale")&&(a._locale=e._locale),Cu(e)&&ze(e,"_isValid")&&(a._isValid=e._isValid),a}jr.fn=ku.prototype,jr.invalid=eH;function na(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function x2(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function mH(e,t){var r;return e.isValid()&&t.isValid()?(t=O0(t,e),e.isBefore(t)?r=x2(e,t):(r=x2(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function w2(e,t){return function(r,n){var s,a;return n!==null&&!isNaN(+n)&&(W6(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),s=jr(r,n),v2(this,s,e),this}}function v2(e,t,r,n){var s=t._milliseconds,a=F0(t._days),o=F0(t._months);e.isValid()&&(n=n??!0,o&&n2(e,Xi(e,"Month")+o*r),a&&e2(e,"Date",Xi(e,"Date")+a*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&ee.updateOffset(e,a||o))}var bH=w2(1,"add"),yH=w2(-1,"subtract");function E2(e){return typeof e=="string"||e instanceof String}function gH(e){return $r(e)||Wi(e)||E2(e)||On(e)||wH(e)||xH(e)||e===null||e===void 0}function xH(e){var t=ta(e)&&!i0(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,a,o=n.length;for(s=0;s<o;s+=1)a=n[s],r=r||ze(e,a);return t&&r}function wH(e){var t=Hr(e),r=!1;return t&&(r=e.filter(function(n){return!On(n)&&E2(e)}).length===0),t&&r}function vH(e){var t=ta(e)&&!i0(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,a;for(s=0;s<n.length;s+=1)a=n[s],r=r||ze(e,a);return t&&r}function EH(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function kH(e,t){arguments.length===1&&(arguments[0]?gH(arguments[0])?(e=arguments[0],t=void 0):vH(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||et(),n=O0(r,this).startOf("day"),s=ee.calendarFormat(this,n)||"sameElse",a=t&&(nn(t[s])?t[s].call(this,r):t[s]);return this.format(a||this.localeData().calendar(s,this,et(r)))}function CH(){return new qi(this)}function TH(e,t){var r=$r(e)?e:et(e);return this.isValid()&&r.isValid()?(t=Tr(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function SH(e,t){var r=$r(e)?e:et(e);return this.isValid()&&r.isValid()?(t=Tr(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function AH(e,t,r,n){var s=$r(e)?e:et(e),a=$r(t)?t:et(t);return this.isValid()&&s.isValid()&&a.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(n[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function PH(e,t){var r=$r(e)?e:et(e),n;return this.isValid()&&r.isValid()?(t=Tr(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function IH(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function BH(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function FH(e,t,r){var n,s,a;if(!this.isValid())return NaN;if(n=O0(e,this),!n.isValid())return NaN;switch(s=(n.utcOffset()-this.utcOffset())*6e4,t=Tr(t),t){case"year":a=Tu(this,n)/12;break;case"month":a=Tu(this,n);break;case"quarter":a=Tu(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-s)/864e5;break;case"week":a=(this-n-s)/6048e5;break;default:a=this-n}return r?a:Sr(a)}function Tu(e,t){if(e.date()<t.date())return-Tu(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),s,a;return t-n<0?(s=e.clone().add(r-1,"months"),a=(t-n)/(n-s)):(s=e.clone().add(r+1,"months"),a=(t-n)/(s-n)),-(r+a)||0}ee.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ee.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function UH(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function OH(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?pu(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):nn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",pu(r,"Z")):pu(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _H(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+n+s+a)}function DH(e){e||(e=this.isUtc()?ee.defaultFormatUtc:ee.defaultFormat);var t=pu(this,e);return this.localeData().postformat(t)}function MH(e,t){return this.isValid()&&($r(e)&&e.isValid()||et(e).isValid())?jr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function NH(e){return this.from(et(),e)}function LH(e,t){return this.isValid()&&($r(e)&&e.isValid()||et(e).isValid())?jr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function zH(e){return this.to(et(),e)}function k2(e){var t;return e===void 0?this._locale._abbr:(t=Ln(e),t!=null&&(this._locale=t),this)}var C2=Cr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function T2(){return this._locale}var Su=1e3,io=60*Su,Au=60*io,S2=(365*400+97)*24*Au;function co(e,t){return(e%t+t)%t}function A2(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-S2:new Date(e,t,r).valueOf()}function P2(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-S2:Date.UTC(e,t,r)}function RH(e){var t,r;if(e=Tr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?P2:A2,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=co(t+(this._isUTC?0:this.utcOffset()*io),Au);break;case"minute":t=this._d.valueOf(),t-=co(t,io);break;case"second":t=this._d.valueOf(),t-=co(t,Su);break}return this._d.setTime(t),ee.updateOffset(this,!0),this}function HH(e){var t,r;if(e=Tr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?P2:A2,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Au-co(t+(this._isUTC?0:this.utcOffset()*io),Au)-1;break;case"minute":t=this._d.valueOf(),t+=io-co(t,io)-1;break;case"second":t=this._d.valueOf(),t+=Su-co(t,Su)-1;break}return this._d.setTime(t),ee.updateOffset(this,!0),this}function $H(){return this._d.valueOf()-(this._offset||0)*6e4}function GH(){return Math.floor(this.valueOf()/1e3)}function jH(){return new Date(this.valueOf())}function VH(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function WH(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function qH(){return this.isValid()?this.toISOString():null}function YH(){return l0(this)}function KH(){return ds({},ke(this))}function ZH(){return ke(this).overflow}function XH(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ue("N",0,0,"eraAbbr"),ue("NN",0,0,"eraAbbr"),ue("NNN",0,0,"eraAbbr"),ue("NNNN",0,0,"eraName"),ue("NNNNN",0,0,"eraNarrow"),ue("y",["y",1],"yo","eraYear"),ue("y",["yy",2],0,"eraYear"),ue("y",["yyy",3],0,"eraYear"),ue("y",["yyyy",4],0,"eraYear"),ae("N",D0),ae("NN",D0),ae("NNN",D0),ae("NNNN",c$),ae("NNNNN",l$),qe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?ke(r).era=s:ke(r).invalidEra=e}),ae("y",no),ae("yy",no),ae("yyy",no),ae("yyyy",no),ae("yo",u$),qe(["y","yy","yyy","yyyy"],zt),qe(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[zt]=r._locale.eraYearOrdinalParse(e,s):t[zt]=parseInt(e,10)});function QH(e,t){var r,n,s,a=this._eras||Ln("en")._eras;for(r=0,n=a.length;r<n;++r){switch(typeof a[r].since){case"string":s=ee(a[r].since).startOf("day"),a[r].since=s.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":s=ee(a[r].until).startOf("day").valueOf(),a[r].until=s.valueOf();break}}return a}function JH(e,t,r){var n,s,a=this.eras(),o,i,c;for(e=e.toUpperCase(),n=0,s=a.length;n<s;++n)if(o=a[n].name.toUpperCase(),i=a[n].abbr.toUpperCase(),c=a[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(i===e)return a[n];break;case"NNNN":if(o===e)return a[n];break;case"NNNNN":if(c===e)return a[n];break}else if([o,i,c].indexOf(e)>=0)return a[n]}function e$(e,t){var r=e.since<=e.until?1:-1;return t===void 0?ee(e.since).year():ee(e.since).year()+(t-e.offset)*r}function t$(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function r$(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function n$(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function s$(){var e,t,r,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return(this.year()-ee(s[e].since).year())*r+s[e].offset;return this.year()}function a$(e){return ze(this,"_erasNameRegex")||M0.call(this),e?this._erasNameRegex:this._erasRegex}function o$(e){return ze(this,"_erasAbbrRegex")||M0.call(this),e?this._erasAbbrRegex:this._erasRegex}function i$(e){return ze(this,"_erasNarrowRegex")||M0.call(this),e?this._erasNarrowRegex:this._erasRegex}function D0(e,t){return t.erasAbbrRegex(e)}function c$(e,t){return t.erasNameRegex(e)}function l$(e,t){return t.erasNarrowRegex(e)}function u$(e,t){return t._eraYearOrdinalRegex||no}function M0(){var e=[],t=[],r=[],n=[],s,a,o,i,c,l=this.eras();for(s=0,a=l.length;s<a;++s)o=_n(l[s].name),i=_n(l[s].abbr),c=_n(l[s].narrow),t.push(o),e.push(i),r.push(c),n.push(o),n.push(i),n.push(c);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}ue(0,["gg",2],0,function(){return this.weekYear()%100}),ue(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Pu(e,t){ue(0,[e,e.length],0,t)}Pu("gggg","weekYear"),Pu("ggggg","weekYear"),Pu("GGGG","isoWeekYear"),Pu("GGGGG","isoWeekYear"),ae("G",bu),ae("g",bu),ae("GG",Je,hr),ae("gg",Je,hr),ae("GGGG",x0,g0),ae("gggg",x0,g0),ae("GGGGG",mu,fu),ae("ggggg",mu,fu),Ki(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=Ie(e)}),Ki(["gg","GG"],function(e,t,r,n){t[n]=ee.parseTwoDigitYear(e)});function d$(e){return I2.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function p$(e){return I2.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function f$(){return Nn(this.year(),1,4)}function h$(){return Nn(this.isoWeekYear(),1,4)}function m$(){var e=this.localeData()._week;return Nn(this.year(),e.dow,e.doy)}function b$(){var e=this.localeData()._week;return Nn(this.weekYear(),e.dow,e.doy)}function I2(e,t,r,n,s){var a;return e==null?Ji(this,n,s).year:(a=Nn(e,n,s),t>a&&(t=a),y$.call(this,e,t,r,n,s))}function y$(e,t,r,n,s){var a=o2(e,t,r,n,s),o=Qi(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}ue("Q",0,"Qo","quarter"),ae("Q",K6),qe("Q",function(e,t){t[Dn]=(Ie(e)-1)*3});function g$(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ue("D",["DD",2],"Do","date"),ae("D",Je,so),ae("DD",Je,hr),ae("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),qe(["D","DD"],an),qe("Do",function(e,t){t[an]=Ie(e.match(Je)[0])});var B2=ao("Date",!0);ue("DDD",["DDDD",3],"DDDo","dayOfYear"),ae("DDD",hu),ae("DDDD",Z6),qe(["DDD","DDDD"],function(e,t,r){r._dayOfYear=Ie(e)});function x$(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ue("m",["mm",2],0,"minute"),ae("m",Je,w0),ae("mm",Je,hr),qe(["m","mm"],Gr);var w$=ao("Minutes",!1);ue("s",["ss",2],0,"second"),ae("s",Je,w0),ae("ss",Je,hr),qe(["s","ss"],Mn);var v$=ao("Seconds",!1);ue("S",0,0,function(){return~~(this.millisecond()/100)}),ue(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ue(0,["SSS",3],0,"millisecond"),ue(0,["SSSS",4],0,function(){return this.millisecond()*10}),ue(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ue(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ue(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ue(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ue(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ae("S",hu,K6),ae("SS",hu,hr),ae("SSS",hu,Z6);var fs,F2;for(fs="SSSS";fs.length<=9;fs+="S")ae(fs,no);function E$(e,t){t[ra]=Ie(("0."+e)*1e3)}for(fs="S";fs.length<=9;fs+="S")qe(fs,E$);F2=ao("Milliseconds",!1),ue("z",0,0,"zoneAbbr"),ue("zz",0,0,"zoneName");function k$(){return this._isUTC?"UTC":""}function C$(){return this._isUTC?"Coordinated Universal Time":""}var Y=qi.prototype;Y.add=bH,Y.calendar=kH,Y.clone=CH,Y.diff=FH,Y.endOf=HH,Y.format=DH,Y.from=MH,Y.fromNow=NH,Y.to=LH,Y.toNow=zH,Y.get=_z,Y.invalidAt=ZH,Y.isAfter=TH,Y.isBefore=SH,Y.isBetween=AH,Y.isSame=PH,Y.isSameOrAfter=IH,Y.isSameOrBefore=BH,Y.isValid=YH,Y.lang=C2,Y.locale=k2,Y.localeData=T2,Y.max=YR,Y.min=qR,Y.parsingFlags=KH,Y.set=Dz,Y.startOf=RH,Y.subtract=yH,Y.toArray=VH,Y.toObject=WH,Y.toDate=jH,Y.toISOString=OH,Y.inspect=_H,typeof Symbol<"u"&&Symbol.for!=null&&(Y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Y.toJSON=qH,Y.toString=UH,Y.unix=GH,Y.valueOf=$H,Y.creationData=XH,Y.eraName=t$,Y.eraNarrow=r$,Y.eraAbbr=n$,Y.eraYear=s$,Y.year=J6,Y.isLeapYear=Oz,Y.weekYear=d$,Y.isoWeekYear=p$,Y.quarter=Y.quarters=g$,Y.month=s2,Y.daysInMonth=jz,Y.week=Y.weeks=Qz,Y.isoWeek=Y.isoWeeks=Jz,Y.weeksInYear=m$,Y.weeksInWeekYear=b$,Y.isoWeeksInYear=f$,Y.isoWeeksInISOWeekYear=h$,Y.date=B2,Y.day=Y.days=pR,Y.weekday=fR,Y.isoWeekday=hR,Y.dayOfYear=x$,Y.hour=Y.hours=vR,Y.minute=Y.minutes=w$,Y.second=Y.seconds=v$,Y.millisecond=Y.milliseconds=F2,Y.utcOffset=nH,Y.utc=aH,Y.local=oH,Y.parseZone=iH,Y.hasAlignedHourOffset=cH,Y.isDST=lH,Y.isLocal=dH,Y.isUtcOffset=pH,Y.isUtc=g2,Y.isUTC=g2,Y.zoneAbbr=k$,Y.zoneName=C$,Y.dates=Cr("dates accessor is deprecated. Use date instead.",B2),Y.months=Cr("months accessor is deprecated. Use month instead",s2),Y.years=Cr("years accessor is deprecated. Use year instead",J6),Y.zone=Cr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",sH),Y.isDSTShifted=Cr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",uH);function T$(e){return et(e*1e3)}function S$(){return et.apply(null,arguments).parseZone()}function U2(e){return e}var Re=f0.prototype;Re.calendar=dz,Re.longDateFormat=mz,Re.invalidDate=yz,Re.ordinal=wz,Re.preparse=U2,Re.postformat=U2,Re.relativeTime=Ez,Re.pastFuture=kz,Re.set=lz,Re.eras=QH,Re.erasParse=JH,Re.erasConvertYear=e$,Re.erasAbbrRegex=o$,Re.erasNameRegex=a$,Re.erasNarrowRegex=i$,Re.months=Rz,Re.monthsShort=Hz,Re.monthsParse=Gz,Re.monthsRegex=Wz,Re.monthsShortRegex=Vz,Re.week=Yz,Re.firstDayOfYear=Xz,Re.firstDayOfWeek=Zz,Re.weekdays=iR,Re.weekdaysMin=lR,Re.weekdaysShort=cR,Re.weekdaysParse=dR,Re.weekdaysRegex=mR,Re.weekdaysShortRegex=bR,Re.weekdaysMinRegex=yR,Re.isPM=xR,Re.meridiem=ER;function Iu(e,t,r,n){var s=Ln(),a=rn().set(n,t);return s[r](a,e)}function O2(e,t,r){if(On(e)&&(t=e,e=void 0),e=e||"",t!=null)return Iu(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Iu(e,n,r,"month");return s}function N0(e,t,r,n){typeof e=="boolean"?(On(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,On(t)&&(r=t,t=void 0),t=t||"");var s=Ln(),a=e?s._week.dow:0,o,i=[];if(r!=null)return Iu(t,(r+a)%7,n,"day");for(o=0;o<7;o++)i[o]=Iu(t,(o+a)%7,n,"day");return i}function A$(e,t){return O2(e,t,"months")}function P$(e,t){return O2(e,t,"monthsShort")}function I$(e,t,r){return N0(e,t,r,"weekdays")}function B$(e,t,r){return N0(e,t,r,"weekdaysShort")}function F$(e,t,r){return N0(e,t,r,"weekdaysMin")}ps("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=Ie(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),ee.lang=Cr("moment.lang is deprecated. Use moment.locale instead.",ps),ee.langData=Cr("moment.langData is deprecated. Use moment.localeData instead.",Ln);var zn=Math.abs;function U$(){var e=this._data;return this._milliseconds=zn(this._milliseconds),this._days=zn(this._days),this._months=zn(this._months),e.milliseconds=zn(e.milliseconds),e.seconds=zn(e.seconds),e.minutes=zn(e.minutes),e.hours=zn(e.hours),e.months=zn(e.months),e.years=zn(e.years),this}function _2(e,t,r,n){var s=jr(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function O$(e,t){return _2(this,e,t,1)}function _$(e,t){return _2(this,e,t,-1)}function D2(e){return e<0?Math.floor(e):Math.ceil(e)}function D$(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,a,o,i,c;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=D2(L0(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=Sr(e/1e3),n.seconds=s%60,a=Sr(s/60),n.minutes=a%60,o=Sr(a/60),n.hours=o%24,t+=Sr(o/24),c=Sr(M2(t)),r+=c,t-=D2(L0(c)),i=Sr(r/12),r%=12,n.days=t,n.months=r,n.years=i,this}function M2(e){return e*4800/146097}function L0(e){return e*146097/4800}function M$(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=Tr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+M2(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(L0(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function Rn(e){return function(){return this.as(e)}}var N2=Rn("ms"),N$=Rn("s"),L$=Rn("m"),z$=Rn("h"),R$=Rn("d"),H$=Rn("w"),$$=Rn("M"),G$=Rn("Q"),j$=Rn("y"),V$=N2;function W$(){return jr(this)}function q$(e){return e=Tr(e),this.isValid()?this[e+"s"]():NaN}function sa(e){return function(){return this.isValid()?this._data[e]:NaN}}var Y$=sa("milliseconds"),K$=sa("seconds"),Z$=sa("minutes"),X$=sa("hours"),Q$=sa("days"),J$=sa("months"),eG=sa("years");function tG(){return Sr(this.days()/7)}var Hn=Math.round,lo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rG(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function nG(e,t,r,n){var s=jr(e).abs(),a=Hn(s.as("s")),o=Hn(s.as("m")),i=Hn(s.as("h")),c=Hn(s.as("d")),l=Hn(s.as("M")),u=Hn(s.as("w")),d=Hn(s.as("y")),f=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||o<=1&&["m"]||o<r.m&&["mm",o]||i<=1&&["h"]||i<r.h&&["hh",i]||c<=1&&["d"]||c<r.d&&["dd",c];return r.w!=null&&(f=f||u<=1&&["w"]||u<r.w&&["ww",u]),f=f||l<=1&&["M"]||l<r.M&&["MM",l]||d<=1&&["y"]||["yy",d],f[2]=t,f[3]=+e>0,f[4]=n,rG.apply(null,f)}function sG(e){return e===void 0?Hn:typeof e=="function"?(Hn=e,!0):!1}function aG(e,t){return lo[e]===void 0?!1:t===void 0?lo[e]:(lo[e]=t,e==="s"&&(lo.ss=t-1),!0)}function oG(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=lo,s,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},lo,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),a=nG(this,!r,n,s),r&&(a=s.pastFuture(+this,a)),s.postformat(a)}var z0=Math.abs;function uo(e){return(e>0)-(e<0)||+e}function Bu(){if(!this.isValid())return this.localeData().invalidDate();var e=z0(this._milliseconds)/1e3,t=z0(this._days),r=z0(this._months),n,s,a,o,i=this.asSeconds(),c,l,u,d;return i?(n=Sr(e/60),s=Sr(n/60),e%=60,n%=60,a=Sr(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=i<0?"-":"",l=uo(this._months)!==uo(i)?"-":"",u=uo(this._days)!==uo(i)?"-":"",d=uo(this._milliseconds)!==uo(i)?"-":"",c+"P"+(a?l+a+"Y":"")+(r?l+r+"M":"")+(t?u+t+"D":"")+(s||n||e?"T":"")+(s?d+s+"H":"")+(n?d+n+"M":"")+(e?d+o+"S":"")):"P0D"}var De=ku.prototype;De.isValid=JR,De.abs=U$,De.add=O$,De.subtract=_$,De.as=M$,De.asMilliseconds=N2,De.asSeconds=N$,De.asMinutes=L$,De.asHours=z$,De.asDays=R$,De.asWeeks=H$,De.asMonths=$$,De.asQuarters=G$,De.asYears=j$,De.valueOf=V$,De._bubble=D$,De.clone=W$,De.get=q$,De.milliseconds=Y$,De.seconds=K$,De.minutes=Z$,De.hours=X$,De.days=Q$,De.weeks=tG,De.months=J$,De.years=eG,De.humanize=oG,De.toISOString=Bu,De.toString=Bu,De.toJSON=Bu,De.locale=k2,De.localeData=T2,De.toIsoString=Cr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Bu),De.lang=C2,ue("X",0,0,"unix"),ue("x",0,0,"valueOf"),ae("x",bu),ae("X",Az),qe("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),qe("x",function(e,t,r){r._d=new Date(Ie(e))});//! moment.js
118
- ee.version="2.30.1",iz(et),ee.fn=Y,ee.min=KR,ee.max=ZR,ee.now=XR,ee.utc=rn,ee.unix=T$,ee.months=A$,ee.isDate=Wi,ee.locale=ps,ee.invalid=uu,ee.duration=jr,ee.isMoment=$r,ee.weekdays=I$,ee.parseZone=S$,ee.localeData=Ln,ee.isDuration=Cu,ee.monthsShort=P$,ee.weekdaysMin=F$,ee.defineLocale=S0,ee.updateLocale=SR,ee.locales=AR,ee.weekdaysShort=B$,ee.normalizeUnits=Tr,ee.relativeTimeRounding=sG,ee.relativeTimeThreshold=aG,ee.calendarFormat=EH,ee.prototype=Y,ee.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function iG(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}var R0;(function(e){e.event="event",e.props="prop"})(R0||(R0={}));function H0(){}function cG(e){var t,r=void 0;return function(){for(var n=[],s=arguments.length;s--;)n[s]=arguments[s];return t&&n.length===t.length&&n.every(function(a,o){return a===t[o]})||(t=n,r=e.apply(void 0,n)),r}}function L2(e){return!!(e||"").match(/\d/)}function po(e){return e==null}function lG(e){return typeof e=="number"&&isNaN(e)}function z2(e){return po(e)||lG(e)||typeof e=="number"&&!isFinite(e)}function R2(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function uG(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function dG(e,t,r){var n=uG(r),s=e.search(/[1-9]/);return s=s===-1?e.length:s,e.substring(0,s)+e.substring(s,e.length).replace(n,"$1"+t)}function pG(e){var t=N.useRef(e);t.current=e;var r=N.useRef(function(){for(var n=[],s=arguments.length;s--;)n[s]=arguments[s];return t.current.apply(t,n)});return r.current}function $0(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var s=e.split("."),a=s[0],o=s[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:r,addNegation:n}}function fG(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",s=r[1]||"";return(t?"-":"")+n+(s?"."+s:"")}function H2(e,t,r){for(var n="",s=r?"0":"",a=0;a<=t-1;a++)n+=e[a]||s;return n}function $2(e,t){return Array(t+1).join(e)}function G2(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),s=n[0],a=n[1];if(a=Number(a),!a)return r+s;s=s.replace(".","");var o=1+a,i=s.length;return o<0?s="0."+$2("0",Math.abs(o))+s:o>=i?s=s+$2("0",o-i):s=(s.substring(0,o)||"0")+"."+s.substring(o),r+s}function j2(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,s=$0(e),a=s.beforeDecimal,o=s.afterDecimal,i=s.hasNegation,c=parseFloat("0."+(o||"0")),l=o.length<=t?"0."+o:c.toFixed(t),u=l.split("."),d=a;a&&Number(u[0])&&(d=a.split("").reverse().reduce(function(g,E,v){return g.length>v?(Number(g[0])+Number(E)).toString()+g.substring(1,g.length):E+g},u[0]));var f=H2(u[1]||"",t,r),h=i?"-":"",y=n?".":"";return""+h+d+y+f}function nc(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var hG=cG(function(e,t){for(var r=0,n=0,s=e.length,a=t.length;e[r]===t[r]&&r<s;)r++;for(;e[s-1-n]===t[a-1-n]&&a-n>r&&s-n>r;)n++;return{from:{start:r,end:s-n},to:{start:r,end:a-n}}});function mG(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function bG(e,t,r,n,s,a){a===void 0&&(a=H0);var o=pG(function(y,g){var E,v;return z2(y)?(v="",E=""):typeof y=="number"||g?(v=typeof y=="number"?G2(y):y,E=n(v)):(v=s(y,void 0),E=n(v)),{formattedValue:E,numAsString:v}}),i=N.useState(function(){return o(po(e)?t:e,r)}),c=i[0],l=i[1],u=function(y,g){y.formattedValue!==c.formattedValue&&l({formattedValue:y.formattedValue,numAsString:y.value}),a(y,g)},d=e,f=r;po(e)&&(d=c.numAsString,f=!0);var h=o(d,f);return N.useMemo(function(){l(h)},[h.formattedValue]),[c,u]}function V2(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,s=t.prefix;s===void 0&&(s="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,i=t.thousandsGroupStyle;if(i===void 0&&(i="thousand"),e===""||e==="-")return e;var c=Fu(t),l=c.thousandSeparator,u=c.decimalSeparator,d=r!==0&&e.indexOf(".")!==-1||r&&n,f=$0(e,o),h=f.beforeDecimal,y=f.afterDecimal,g=f.addNegation;return r!==void 0&&(y=H2(y,r,!!n)),l&&(h=dG(h,l,i)),s&&(h=s+h),a&&(y=y+a),g&&(h="-"+h),e=h+(d&&u||"")+y,e}function Fu(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function yG(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),s=r.test(e),a=n.test(e);return e=e.replace(/-/g,""),s&&!a&&t&&(e="-"+e),e}function gG(e,t){return new RegExp("(^-)|[0-9]|"+R2(e),"g")}function xG(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function wG(e,t,r){var n;t===void 0&&(t=mG(e));var s=r.allowNegative,a=r.prefix;a===void 0&&(a="");var o=r.suffix;o===void 0&&(o="");var i=r.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=Fu(r),h=f.allowedDecimalSeparators,y=f.decimalSeparator,g=e[d]===y;if(L2(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(d-u===1&&h.indexOf(e[u])!==-1){var E=i===0?"":y;e=e.substring(0,u)+E+e.substring(u+1,e.length)}var v=function(O,U,L){var H=!1,G=!1;a.startsWith("-")?H=!1:O.startsWith("--")?(H=!1,G=!0):o.startsWith("-")&&O.length===o.length?H=!1:O[0]==="-"&&(H=!0);var Q=H?1:0;return G&&(Q=2),Q&&(O=O.substring(Q),U-=Q,L-=Q),{value:O,start:U,end:L,hasNegation:H}},w=v(e,u,d),T=w.hasNegation;n=w,e=n.value,u=n.start,d=n.end;var C=v(t.lastValue,c.start,c.end),_=C.start,z=C.end,S=C.value,m=e.substring(u,d);e.length&&S.length&&(_>S.length-o.length||z<a.length)&&!(m&&o.startsWith(m))&&(e=S);var b=0;e.startsWith(a)?b+=a.length:u<a.length&&(b=u),e=e.substring(b),d-=b;var x=e.length,A=e.length-o.length;e.endsWith(o)?x=A:(d>A||d>e.length-o.length)&&(x=d),e=e.substring(0,x),e=yG(T?"-"+e:e,s),e=(e.match(gG(y))||[]).join("");var I=e.indexOf(y);e=e.replace(new RegExp(R2(y),"g"),function(O,U){return U===I?".":""});var F=$0(e,s),D=F.beforeDecimal,k=F.afterDecimal,P=F.addNegation;return l.end-l.start<c.end-c.start&&D===""&&g&&!parseFloat(k)&&(e=P?"-":""),e}function vG(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var s=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";s.fill(!1,0,r.length+(a?1:0));var o=e.length;return s.fill(!1,o-n.length+1,o+1),s}function EG(e){var t=Fu(e),r=t.thousandSeparator,n=t.decimalSeparator,s=e.prefix;s===void 0&&(s="");var a=e.allowNegative;if(a===void 0&&(a=!0),r===n)throw new Error(`
117
+ `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var V6={};function W6(e,t){ee.deprecationHandler!=null&&ee.deprecationHandler(e,t),V6[e]||(j6(t),V6[e]=!0)}ee.suppressDeprecationWarnings=!1,ee.deprecationHandler=null;function sn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function lz(e){var t,r;for(r in e)ze(e,r)&&(t=e[r],sn(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function p0(e,t){var r=ds({},e),n;for(n in t)ze(t,n)&&(ta(e[n])&&ta(t[n])?(r[n]={},ds(r[n],e[n]),ds(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)ze(e,n)&&!ze(t,n)&&ta(e[n])&&(r[n]=ds({},r[n]));return r}function f0(e){e!=null&&this.set(e)}var h0;Object.keys?h0=Object.keys:h0=function(e){var t,r=[];for(t in e)ze(e,t)&&r.push(t);return r};var uz={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function dz(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return sn(n)?n.call(t,r):n}function an(e,t,r){var n=""+Math.abs(e),s=t-n.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var m0=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,du=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,b0={},ro={};function ue(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(ro[e]=s),t&&(ro[t[0]]=function(){return an(s.apply(this,arguments),t[1],t[2])}),r&&(ro[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function pz(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function fz(e){var t=e.match(m0),r,n;for(r=0,n=t.length;r<n;r++)ro[t[r]]?t[r]=ro[t[r]]:t[r]=pz(t[r]);return function(s){var a="",o;for(o=0;o<n;o++)a+=sn(t[o])?t[o].call(s,e):t[o];return a}}function pu(e,t){return e.isValid()?(t=q6(t,e.localeData()),b0[t]=b0[t]||fz(t),b0[t](e)):e.localeData().invalidDate()}function q6(e,t){var r=5;function n(s){return t.longDateFormat(s)||s}for(du.lastIndex=0;r>=0&&du.test(e);)e=e.replace(du,n),du.lastIndex=0,r-=1;return e}var hz={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function mz(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(m0).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var bz="Invalid date";function yz(){return this._invalidDate}var gz="%d",xz=/\d{1,2}/;function wz(e){return this._ordinal.replace("%d",e)}var vz={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Ez(e,t,r,n){var s=this._relativeTime[r];return sn(s)?s(e,t,r,n):s.replace(/%d/i,e)}function kz(e,t){var r=this._relativeTime[e>0?"future":"past"];return sn(r)?r(t):r.replace(/%s/i,t)}var Y6={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Tr(e){return typeof e=="string"?Y6[e]||Y6[e.toLowerCase()]:void 0}function y0(e){var t={},r,n;for(n in e)ze(e,n)&&(r=Tr(n),r&&(t[r]=e[n]));return t}var Cz={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Tz(e){var t=[],r;for(r in e)ze(e,r)&&t.push({unit:r,priority:Cz[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}var K6=/\d/,hr=/\d\d/,Z6=/\d{3}/,g0=/\d{4}/,fu=/[+-]?\d{6}/,Je=/\d\d?/,X6=/\d\d\d\d?/,Q6=/\d\d\d\d\d\d?/,hu=/\d{1,3}/,x0=/\d{1,4}/,mu=/[+-]?\d{1,6}/,no=/\d+/,bu=/[+-]?\d+/,Sz=/Z|[+-]\d\d:?\d\d/gi,yu=/Z|[+-]\d\d(?::?\d\d)?/gi,Az=/[+-]?\d+(\.\d{1,3})?/,Yi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,so=/^[1-9]\d?/,w0=/^([1-9]\d|\d)/,gu;gu={};function ae(e,t,r){gu[e]=sn(t)?t:function(n,s){return n&&r?r:t}}function Pz(e,t){return ze(gu,e)?gu[e](t._strict,t._locale):new RegExp(Iz(e))}function Iz(e){return _n(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,s,a){return r||n||s||a}))}function _n(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Sr(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ie(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Sr(t)),r}var v0={};function qe(e,t){var r,n=t,s;for(typeof e=="string"&&(e=[e]),On(t)&&(n=function(a,o){o[t]=Ie(a)}),s=e.length,r=0;r<s;r++)v0[e[r]]=n}function Ki(e,t){qe(e,function(r,n,s,a){s._w=s._w||{},t(r,s._w,s,a)})}function Bz(e,t,r){t!=null&&ze(v0,e)&&v0[e](t,r._a,r,e)}function xu(e){return e%4===0&&e%100!==0||e%400===0}var zt=0,Dn=1,on=2,Tt=3,Gr=4,Mn=5,ra=6,Fz=7,Uz=8;ue("Y",0,0,function(){var e=this.year();return e<=9999?an(e,4):"+"+e}),ue(0,["YY",2],0,function(){return this.year()%100}),ue(0,["YYYY",4],0,"year"),ue(0,["YYYYY",5],0,"year"),ue(0,["YYYYYY",6,!0],0,"year"),ae("Y",bu),ae("YY",Je,hr),ae("YYYY",x0,g0),ae("YYYYY",mu,fu),ae("YYYYYY",mu,fu),qe(["YYYYY","YYYYYY"],zt),qe("YYYY",function(e,t){t[zt]=e.length===2?ee.parseTwoDigitYear(e):Ie(e)}),qe("YY",function(e,t){t[zt]=ee.parseTwoDigitYear(e)}),qe("Y",function(e,t){t[zt]=parseInt(e,10)});function Zi(e){return xu(e)?366:365}ee.parseTwoDigitYear=function(e){return Ie(e)+(Ie(e)>68?1900:2e3)};var J6=ao("FullYear",!0);function Oz(){return xu(this.year())}function ao(e,t){return function(r){return r!=null?(e2(this,e,r),ee.updateOffset(this,t),this):Xi(this,e)}}function Xi(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function e2(e,t,r){var n,s,a,o,i;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(s?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(s?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(s?n.setUTCHours(r):n.setHours(r));case"Date":return void(s?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}a=r,o=e.month(),i=e.date(),i=i===29&&o===1&&!xu(a)?28:i,s?n.setUTCFullYear(a,o,i):n.setFullYear(a,o,i)}}function _z(e){return e=Tr(e),sn(this[e])?this[e]():this}function Dz(e,t){if(typeof e=="object"){e=y0(e);var r=Tz(e),n,s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(e=Tr(e),sn(this[e]))return this[e](t);return this}function Mz(e,t){return(e%t+t)%t}var gt;Array.prototype.indexOf?gt=Array.prototype.indexOf:gt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function E0(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Mz(t,12);return e+=(t-r)/12,r===1?xu(e)?29:28:31-r%7%2}ue("M",["MM",2],"Mo",function(){return this.month()+1}),ue("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),ue("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ae("M",Je,so),ae("MM",Je,hr),ae("MMM",function(e,t){return t.monthsShortRegex(e)}),ae("MMMM",function(e,t){return t.monthsRegex(e)}),qe(["M","MM"],function(e,t){t[Dn]=Ie(e)-1}),qe(["MMM","MMMM"],function(e,t,r,n){var s=r._locale.monthsParse(e,n,r._strict);s!=null?t[Dn]=s:ke(r).invalidMonth=e});var Nz="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),t2="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),r2=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Lz=Yi,zz=Yi;function Rz(e,t){return e?Hr(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||r2).test(t)?"format":"standalone"][e.month()]:Hr(this._months)?this._months:this._months.standalone}function Hz(e,t){return e?Hr(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[r2.test(t)?"format":"standalone"][e.month()]:Hr(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function $z(e,t,r){var n,s,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=nn([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(s=gt.call(this._shortMonthsParse,o),s!==-1?s:null):(s=gt.call(this._longMonthsParse,o),s!==-1?s:null):t==="MMM"?(s=gt.call(this._shortMonthsParse,o),s!==-1?s:(s=gt.call(this._longMonthsParse,o),s!==-1?s:null)):(s=gt.call(this._longMonthsParse,o),s!==-1?s:(s=gt.call(this._shortMonthsParse,o),s!==-1?s:null))}function Gz(e,t,r){var n,s,a;if(this._monthsParseExact)return $z.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=nn([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function n2(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Ie(t);else if(t=e.localeData().monthsParse(t),!On(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,E0(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function s2(e){return e!=null?(n2(this,e),ee.updateOffset(this,!0),this):Xi(this,"Month")}function jz(){return E0(this.year(),this.month())}function Vz(e){return this._monthsParseExact?(ze(this,"_monthsRegex")||a2.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ze(this,"_monthsShortRegex")||(this._monthsShortRegex=Lz),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Wz(e){return this._monthsParseExact?(ze(this,"_monthsRegex")||a2.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ze(this,"_monthsRegex")||(this._monthsRegex=zz),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function a2(){function e(c,l){return l.length-c.length}var t=[],r=[],n=[],s,a,o,i;for(s=0;s<12;s++)a=nn([2e3,s]),o=_n(this.monthsShort(a,"")),i=_n(this.months(a,"")),t.push(o),r.push(i),n.push(i),n.push(o);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function qz(e,t,r,n,s,a,o){var i;return e<100&&e>=0?(i=new Date(e+400,t,r,n,s,a,o),isFinite(i.getFullYear())&&i.setFullYear(e)):i=new Date(e,t,r,n,s,a,o),i}function Qi(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wu(e,t,r){var n=7+t-r,s=(7+Qi(e,0,n).getUTCDay()-t)%7;return-s+n-1}function o2(e,t,r,n,s){var a=(7+r-n)%7,o=wu(e,n,s),i=1+7*(t-1)+a+o,c,l;return i<=0?(c=e-1,l=Zi(c)+i):i>Zi(e)?(c=e+1,l=i-Zi(e)):(c=e,l=i),{year:c,dayOfYear:l}}function Ji(e,t,r){var n=wu(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,a,o;return s<1?(o=e.year()-1,a=s+Nn(o,t,r)):s>Nn(e.year(),t,r)?(a=s-Nn(e.year(),t,r),o=e.year()+1):(o=e.year(),a=s),{week:a,year:o}}function Nn(e,t,r){var n=wu(e,t,r),s=wu(e+1,t,r);return(Zi(e)-n+s)/7}ue("w",["ww",2],"wo","week"),ue("W",["WW",2],"Wo","isoWeek"),ae("w",Je,so),ae("ww",Je,hr),ae("W",Je,so),ae("WW",Je,hr),Ki(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=Ie(e)});function Yz(e){return Ji(e,this._week.dow,this._week.doy).week}var Kz={dow:0,doy:6};function Zz(){return this._week.dow}function Xz(){return this._week.doy}function Qz(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Jz(e){var t=Ji(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ue("d",0,"do","day"),ue("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),ue("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),ue("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),ue("e",0,0,"weekday"),ue("E",0,0,"isoWeekday"),ae("d",Je),ae("e",Je),ae("E",Je),ae("dd",function(e,t){return t.weekdaysMinRegex(e)}),ae("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ae("dddd",function(e,t){return t.weekdaysRegex(e)}),Ki(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:ke(r).invalidWeekday=e}),Ki(["d","e","E"],function(e,t,r,n){t[n]=Ie(e)});function eR(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function tR(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function k0(e,t){return e.slice(t,7).concat(e.slice(0,t))}var rR="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),i2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),nR="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),sR=Yi,aR=Yi,oR=Yi;function iR(e,t){var r=Hr(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?k0(r,this._week.dow):e?r[e.day()]:r}function cR(e){return e===!0?k0(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function lR(e){return e===!0?k0(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function uR(e,t,r){var n,s,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=nn([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(s=gt.call(this._weekdaysParse,o),s!==-1?s:null):t==="ddd"?(s=gt.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=gt.call(this._minWeekdaysParse,o),s!==-1?s:null):t==="dddd"?(s=gt.call(this._weekdaysParse,o),s!==-1||(s=gt.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=gt.call(this._minWeekdaysParse,o),s!==-1?s:null)):t==="ddd"?(s=gt.call(this._shortWeekdaysParse,o),s!==-1||(s=gt.call(this._weekdaysParse,o),s!==-1)?s:(s=gt.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=gt.call(this._minWeekdaysParse,o),s!==-1||(s=gt.call(this._weekdaysParse,o),s!==-1)?s:(s=gt.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function dR(e,t,r){var n,s,a;if(this._weekdaysParseExact)return uR.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=nn([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function pR(e){if(!this.isValid())return e!=null?this:NaN;var t=Xi(this,"Day");return e!=null?(e=eR(e,this.localeData()),this.add(e-t,"d")):t}function fR(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function hR(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=tR(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function mR(e){return this._weekdaysParseExact?(ze(this,"_weekdaysRegex")||C0.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ze(this,"_weekdaysRegex")||(this._weekdaysRegex=sR),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function bR(e){return this._weekdaysParseExact?(ze(this,"_weekdaysRegex")||C0.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ze(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=aR),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function yR(e){return this._weekdaysParseExact?(ze(this,"_weekdaysRegex")||C0.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ze(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=oR),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function C0(){function e(u,d){return d.length-u.length}var t=[],r=[],n=[],s=[],a,o,i,c,l;for(a=0;a<7;a++)o=nn([2e3,1]).day(a),i=_n(this.weekdaysMin(o,"")),c=_n(this.weekdaysShort(o,"")),l=_n(this.weekdays(o,"")),t.push(i),r.push(c),n.push(l),s.push(i),s.push(c),s.push(l);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function T0(){return this.hours()%12||12}function gR(){return this.hours()||24}ue("H",["HH",2],0,"hour"),ue("h",["hh",2],0,T0),ue("k",["kk",2],0,gR),ue("hmm",0,0,function(){return""+T0.apply(this)+an(this.minutes(),2)}),ue("hmmss",0,0,function(){return""+T0.apply(this)+an(this.minutes(),2)+an(this.seconds(),2)}),ue("Hmm",0,0,function(){return""+this.hours()+an(this.minutes(),2)}),ue("Hmmss",0,0,function(){return""+this.hours()+an(this.minutes(),2)+an(this.seconds(),2)});function c2(e,t){ue(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}c2("a",!0),c2("A",!1);function l2(e,t){return t._meridiemParse}ae("a",l2),ae("A",l2),ae("H",Je,w0),ae("h",Je,so),ae("k",Je,so),ae("HH",Je,hr),ae("hh",Je,hr),ae("kk",Je,hr),ae("hmm",X6),ae("hmmss",Q6),ae("Hmm",X6),ae("Hmmss",Q6),qe(["H","HH"],Tt),qe(["k","kk"],function(e,t,r){var n=Ie(e);t[Tt]=n===24?0:n}),qe(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),qe(["h","hh"],function(e,t,r){t[Tt]=Ie(e),ke(r).bigHour=!0}),qe("hmm",function(e,t,r){var n=e.length-2;t[Tt]=Ie(e.substr(0,n)),t[Gr]=Ie(e.substr(n)),ke(r).bigHour=!0}),qe("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[Tt]=Ie(e.substr(0,n)),t[Gr]=Ie(e.substr(n,2)),t[Mn]=Ie(e.substr(s)),ke(r).bigHour=!0}),qe("Hmm",function(e,t,r){var n=e.length-2;t[Tt]=Ie(e.substr(0,n)),t[Gr]=Ie(e.substr(n))}),qe("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[Tt]=Ie(e.substr(0,n)),t[Gr]=Ie(e.substr(n,2)),t[Mn]=Ie(e.substr(s))});function xR(e){return(e+"").toLowerCase().charAt(0)==="p"}var wR=/[ap]\.?m?\.?/i,vR=ao("Hours",!0);function ER(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var u2={calendar:uz,longDateFormat:hz,invalidDate:bz,ordinal:gz,dayOfMonthOrdinalParse:xz,relativeTime:vz,months:Nz,monthsShort:t2,week:Kz,weekdays:rR,weekdaysMin:nR,weekdaysShort:i2,meridiemParse:wR},st={},ec={},tc;function kR(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function d2(e){return e&&e.toLowerCase().replace("_","-")}function CR(e){for(var t=0,r,n,s,a;t<e.length;){for(a=d2(e[t]).split("-"),r=a.length,n=d2(e[t+1]),n=n?n.split("-"):null;r>0;){if(s=vu(a.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&kR(a,n)>=r-1)break;r--}t++}return tc}function TR(e){return!!(e&&e.match("^[^/\\\\]*$"))}function vu(e){var t=null,r;if(st[e]===void 0&&typeof module<"u"&&module&&module.exports&&TR(e))try{t=tc._abbr,r=require,r("./locale/"+e),ps(t)}catch{st[e]=null}return st[e]}function ps(e,t){var r;return e&&(rr(t)?r=Ln(e):r=S0(e,t),r?tc=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tc._abbr}function S0(e,t){if(t!==null){var r,n=u2;if(t.abbr=e,st[e]!=null)W6("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=st[e]._config;else if(t.parentLocale!=null)if(st[t.parentLocale]!=null)n=st[t.parentLocale]._config;else if(r=vu(t.parentLocale),r!=null)n=r._config;else return ec[t.parentLocale]||(ec[t.parentLocale]=[]),ec[t.parentLocale].push({name:e,config:t}),null;return st[e]=new f0(p0(n,t)),ec[e]&&ec[e].forEach(function(s){S0(s.name,s.config)}),ps(e),st[e]}else return delete st[e],null}function SR(e,t){if(t!=null){var r,n,s=u2;st[e]!=null&&st[e].parentLocale!=null?st[e].set(p0(st[e]._config,t)):(n=vu(e),n!=null&&(s=n._config),t=p0(s,t),n==null&&(t.abbr=e),r=new f0(t),r.parentLocale=st[e],st[e]=r),ps(e)}else st[e]!=null&&(st[e].parentLocale!=null?(st[e]=st[e].parentLocale,e===ps()&&ps(e)):st[e]!=null&&delete st[e]);return st[e]}function Ln(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tc;if(!Hr(e)){if(t=vu(e),t)return t;e=[e]}return CR(e)}function AR(){return h0(st)}function A0(e){var t,r=e._a;return r&&ke(e).overflow===-2&&(t=r[Dn]<0||r[Dn]>11?Dn:r[on]<1||r[on]>E0(r[zt],r[Dn])?on:r[Tt]<0||r[Tt]>24||r[Tt]===24&&(r[Gr]!==0||r[Mn]!==0||r[ra]!==0)?Tt:r[Gr]<0||r[Gr]>59?Gr:r[Mn]<0||r[Mn]>59?Mn:r[ra]<0||r[ra]>999?ra:-1,ke(e)._overflowDayOfYear&&(t<zt||t>on)&&(t=on),ke(e)._overflowWeeks&&t===-1&&(t=Fz),ke(e)._overflowWeekday&&t===-1&&(t=Uz),ke(e).overflow=t),e}var PR=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,IR=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,BR=/Z|[+-]\d\d(?::?\d\d)?/,Eu=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],P0=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],FR=/^\/?Date\((-?\d+)/i,UR=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,OR={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function p2(e){var t,r,n=e._i,s=PR.exec(n)||IR.exec(n),a,o,i,c,l=Eu.length,u=P0.length;if(s){for(ke(e).iso=!0,t=0,r=l;t<r;t++)if(Eu[t][1].exec(s[1])){o=Eu[t][0],a=Eu[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(s[3]){for(t=0,r=u;t<r;t++)if(P0[t][1].exec(s[3])){i=(s[2]||" ")+P0[t][0];break}if(i==null){e._isValid=!1;return}}if(!a&&i!=null){e._isValid=!1;return}if(s[4])if(BR.exec(s[4]))c="Z";else{e._isValid=!1;return}e._f=o+(i||"")+(c||""),B0(e)}else e._isValid=!1}function _R(e,t,r,n,s,a){var o=[DR(e),t2.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(s,10)];return a&&o.push(parseInt(a,10)),o}function DR(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function MR(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function NR(e,t,r){if(e){var n=i2.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return ke(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function LR(e,t,r){if(e)return OR[e];if(t)return 0;var n=parseInt(r,10),s=n%100,a=(n-s)/100;return a*60+s}function f2(e){var t=UR.exec(MR(e._i)),r;if(t){if(r=_R(t[4],t[3],t[2],t[5],t[6],t[7]),!NR(t[1],r,e))return;e._a=r,e._tzm=LR(t[8],t[9],t[10]),e._d=Qi.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),ke(e).rfc2822=!0}else e._isValid=!1}function zR(e){var t=FR.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(p2(e),e._isValid===!1)delete e._isValid;else return;if(f2(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ee.createFromInputFallback(e)}ee.createFromInputFallback=Cr("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function oo(e,t,r){return e??t??r}function RR(e){var t=new Date(ee.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function I0(e){var t,r,n=[],s,a,o;if(!e._d){for(s=RR(e),e._w&&e._a[on]==null&&e._a[Dn]==null&&HR(e),e._dayOfYear!=null&&(o=oo(e._a[zt],s[zt]),(e._dayOfYear>Zi(o)||e._dayOfYear===0)&&(ke(e)._overflowDayOfYear=!0),r=Qi(o,0,e._dayOfYear),e._a[Dn]=r.getUTCMonth(),e._a[on]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Tt]===24&&e._a[Gr]===0&&e._a[Mn]===0&&e._a[ra]===0&&(e._nextDay=!0,e._a[Tt]=0),e._d=(e._useUTC?Qi:qz).apply(null,n),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Tt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(ke(e).weekdayMismatch=!0)}}function HR(e){var t,r,n,s,a,o,i,c,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,r=oo(t.GG,e._a[zt],Ji(et(),1,4).year),n=oo(t.W,1),s=oo(t.E,1),(s<1||s>7)&&(c=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=Ji(et(),a,o),r=oo(t.gg,e._a[zt],l.year),n=oo(t.w,l.week),t.d!=null?(s=t.d,(s<0||s>6)&&(c=!0)):t.e!=null?(s=t.e+a,(t.e<0||t.e>6)&&(c=!0)):s=a),n<1||n>Nn(r,a,o)?ke(e)._overflowWeeks=!0:c!=null?ke(e)._overflowWeekday=!0:(i=o2(r,n,s,a,o),e._a[zt]=i.year,e._dayOfYear=i.dayOfYear)}ee.ISO_8601=function(){},ee.RFC_2822=function(){};function B0(e){if(e._f===ee.ISO_8601){p2(e);return}if(e._f===ee.RFC_2822){f2(e);return}e._a=[],ke(e).empty=!0;var t=""+e._i,r,n,s,a,o,i=t.length,c=0,l,u;for(s=q6(e._f,e._locale).match(m0)||[],u=s.length,r=0;r<u;r++)a=s[r],n=(t.match(Pz(a,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&ke(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),c+=n.length),ro[a]?(n?ke(e).empty=!1:ke(e).unusedTokens.push(a),Bz(a,n,e)):e._strict&&!n&&ke(e).unusedTokens.push(a);ke(e).charsLeftOver=i-c,t.length>0&&ke(e).unusedInput.push(t),e._a[Tt]<=12&&ke(e).bigHour===!0&&e._a[Tt]>0&&(ke(e).bigHour=void 0),ke(e).parsedDateParts=e._a.slice(0),ke(e).meridiem=e._meridiem,e._a[Tt]=$R(e._locale,e._a[Tt],e._meridiem),l=ke(e).era,l!==null&&(e._a[zt]=e._locale.erasConvertYear(l,e._a[zt])),I0(e),A0(e)}function $R(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function GR(e){var t,r,n,s,a,o,i=!1,c=e._f.length;if(c===0){ke(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<c;s++)a=0,o=!1,t=d0({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],B0(t),l0(t)&&(o=!0),a+=ke(t).charsLeftOver,a+=ke(t).unusedTokens.length*10,ke(t).score=a,i?a<n&&(n=a,r=t):(n==null||a<n||o)&&(n=a,r=t,o&&(i=!0));ds(e,r||t)}function jR(e){if(!e._d){var t=y0(e._i),r=t.day===void 0?t.date:t.day;e._a=$6([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),I0(e)}}function VR(e){var t=new qi(A0(h2(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function h2(e){var t=e._i,r=e._f;return e._locale=e._locale||Ln(e._l),t===null||r===void 0&&t===""?uu({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),$r(t)?new qi(A0(t)):(Wi(t)?e._d=t:Hr(r)?GR(e):r?B0(e):WR(e),l0(e)||(e._d=null),e))}function WR(e){var t=e._i;rr(t)?e._d=new Date(ee.now()):Wi(t)?e._d=new Date(t.valueOf()):typeof t=="string"?zR(e):Hr(t)?(e._a=$6(t.slice(0),function(r){return parseInt(r,10)}),I0(e)):ta(t)?jR(e):On(t)?e._d=new Date(t):ee.createFromInputFallback(e)}function m2(e,t,r,n,s){var a={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(ta(e)&&i0(e)||Hr(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=s,a._l=r,a._i=e,a._f=t,a._strict=n,VR(a)}function et(e,t,r,n){return m2(e,t,r,n,!1)}var qR=Cr("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=et.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:uu()}),YR=Cr("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=et.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:uu()});function b2(e,t){var r,n;if(t.length===1&&Hr(t[0])&&(t=t[0]),!t.length)return et();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function KR(){var e=[].slice.call(arguments,0);return b2("isBefore",e)}function ZR(){var e=[].slice.call(arguments,0);return b2("isAfter",e)}var XR=function(){return Date.now?Date.now():+new Date},rc=["year","quarter","month","week","day","hour","minute","second","millisecond"];function QR(e){var t,r=!1,n,s=rc.length;for(t in e)if(ze(e,t)&&!(gt.call(rc,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<s;++n)if(e[rc[n]]){if(r)return!1;parseFloat(e[rc[n]])!==Ie(e[rc[n]])&&(r=!0)}return!0}function JR(){return this._isValid}function eH(){return jr(NaN)}function ku(e){var t=y0(e),r=t.year||0,n=t.quarter||0,s=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,i=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=QR(t),this._milliseconds=+u+l*1e3+c*6e4+i*1e3*60*60,this._days=+o+a*7,this._months=+s+n*3+r*12,this._data={},this._locale=Ln(),this._bubble()}function Cu(e){return e instanceof ku}function F0(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function tH(e,t,r){var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0,o;for(o=0;o<n;o++)Ie(e[o])!==Ie(t[o])&&a++;return a+s}function y2(e,t){ue(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+an(~~(r/60),2)+t+an(~~r%60,2)})}y2("Z",":"),y2("ZZ",""),ae("Z",yu),ae("ZZ",yu),qe(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=U0(yu,e)});var rH=/([\+\-]|\d\d)/gi;function U0(e,t){var r=(t||"").match(e),n,s,a;return r===null?null:(n=r[r.length-1]||[],s=(n+"").match(rH)||["-",0,0],a=+(s[1]*60)+Ie(s[2]),a===0?0:s[0]==="+"?a:-a)}function O0(e,t){var r,n;return t._isUTC?(r=t.clone(),n=($r(e)||Wi(e)?e.valueOf():et(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),ee.updateOffset(r,!1),r):et(e).local()}function _0(e){return-Math.round(e._d.getTimezoneOffset())}ee.updateOffset=function(){};function nH(e,t,r){var n=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=U0(yu,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=_0(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),n!==e&&(!t||this._changeInProgress?v2(this,jr(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ee.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:_0(this)}function sH(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function aH(e){return this.utcOffset(0,e)}function oH(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(_0(this),"m")),this}function iH(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=U0(Sz,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function cH(e){return this.isValid()?(e=e?et(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function lH(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function uH(){if(!rr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return d0(e,this),e=h2(e),e._a?(t=e._isUTC?nn(e._a):et(e._a),this._isDSTShifted=this.isValid()&&tH(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function dH(){return this.isValid()?!this._isUTC:!1}function pH(){return this.isValid()?this._isUTC:!1}function g2(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fH=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,hH=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jr(e,t){var r=e,n=null,s,a,o;return Cu(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:On(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=fH.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:Ie(n[on])*s,h:Ie(n[Tt])*s,m:Ie(n[Gr])*s,s:Ie(n[Mn])*s,ms:Ie(F0(n[ra]*1e3))*s}):(n=hH.exec(e))?(s=n[1]==="-"?-1:1,r={y:na(n[2],s),M:na(n[3],s),w:na(n[4],s),d:na(n[5],s),h:na(n[6],s),m:na(n[7],s),s:na(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=mH(et(r.from),et(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),a=new ku(r),Cu(e)&&ze(e,"_locale")&&(a._locale=e._locale),Cu(e)&&ze(e,"_isValid")&&(a._isValid=e._isValid),a}jr.fn=ku.prototype,jr.invalid=eH;function na(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function x2(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function mH(e,t){var r;return e.isValid()&&t.isValid()?(t=O0(t,e),e.isBefore(t)?r=x2(e,t):(r=x2(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function w2(e,t){return function(r,n){var s,a;return n!==null&&!isNaN(+n)&&(W6(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),s=jr(r,n),v2(this,s,e),this}}function v2(e,t,r,n){var s=t._milliseconds,a=F0(t._days),o=F0(t._months);e.isValid()&&(n=n??!0,o&&n2(e,Xi(e,"Month")+o*r),a&&e2(e,"Date",Xi(e,"Date")+a*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&ee.updateOffset(e,a||o))}var bH=w2(1,"add"),yH=w2(-1,"subtract");function E2(e){return typeof e=="string"||e instanceof String}function gH(e){return $r(e)||Wi(e)||E2(e)||On(e)||wH(e)||xH(e)||e===null||e===void 0}function xH(e){var t=ta(e)&&!i0(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,a,o=n.length;for(s=0;s<o;s+=1)a=n[s],r=r||ze(e,a);return t&&r}function wH(e){var t=Hr(e),r=!1;return t&&(r=e.filter(function(n){return!On(n)&&E2(e)}).length===0),t&&r}function vH(e){var t=ta(e)&&!i0(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,a;for(s=0;s<n.length;s+=1)a=n[s],r=r||ze(e,a);return t&&r}function EH(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function kH(e,t){arguments.length===1&&(arguments[0]?gH(arguments[0])?(e=arguments[0],t=void 0):vH(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||et(),n=O0(r,this).startOf("day"),s=ee.calendarFormat(this,n)||"sameElse",a=t&&(sn(t[s])?t[s].call(this,r):t[s]);return this.format(a||this.localeData().calendar(s,this,et(r)))}function CH(){return new qi(this)}function TH(e,t){var r=$r(e)?e:et(e);return this.isValid()&&r.isValid()?(t=Tr(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function SH(e,t){var r=$r(e)?e:et(e);return this.isValid()&&r.isValid()?(t=Tr(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function AH(e,t,r,n){var s=$r(e)?e:et(e),a=$r(t)?t:et(t);return this.isValid()&&s.isValid()&&a.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(n[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function PH(e,t){var r=$r(e)?e:et(e),n;return this.isValid()&&r.isValid()?(t=Tr(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function IH(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function BH(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function FH(e,t,r){var n,s,a;if(!this.isValid())return NaN;if(n=O0(e,this),!n.isValid())return NaN;switch(s=(n.utcOffset()-this.utcOffset())*6e4,t=Tr(t),t){case"year":a=Tu(this,n)/12;break;case"month":a=Tu(this,n);break;case"quarter":a=Tu(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-s)/864e5;break;case"week":a=(this-n-s)/6048e5;break;default:a=this-n}return r?a:Sr(a)}function Tu(e,t){if(e.date()<t.date())return-Tu(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),s,a;return t-n<0?(s=e.clone().add(r-1,"months"),a=(t-n)/(n-s)):(s=e.clone().add(r+1,"months"),a=(t-n)/(s-n)),-(r+a)||0}ee.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ee.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function UH(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function OH(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?pu(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):sn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",pu(r,"Z")):pu(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _H(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+n+s+a)}function DH(e){e||(e=this.isUtc()?ee.defaultFormatUtc:ee.defaultFormat);var t=pu(this,e);return this.localeData().postformat(t)}function MH(e,t){return this.isValid()&&($r(e)&&e.isValid()||et(e).isValid())?jr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function NH(e){return this.from(et(),e)}function LH(e,t){return this.isValid()&&($r(e)&&e.isValid()||et(e).isValid())?jr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function zH(e){return this.to(et(),e)}function k2(e){var t;return e===void 0?this._locale._abbr:(t=Ln(e),t!=null&&(this._locale=t),this)}var C2=Cr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function T2(){return this._locale}var Su=1e3,io=60*Su,Au=60*io,S2=(365*400+97)*24*Au;function co(e,t){return(e%t+t)%t}function A2(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-S2:new Date(e,t,r).valueOf()}function P2(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-S2:Date.UTC(e,t,r)}function RH(e){var t,r;if(e=Tr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?P2:A2,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=co(t+(this._isUTC?0:this.utcOffset()*io),Au);break;case"minute":t=this._d.valueOf(),t-=co(t,io);break;case"second":t=this._d.valueOf(),t-=co(t,Su);break}return this._d.setTime(t),ee.updateOffset(this,!0),this}function HH(e){var t,r;if(e=Tr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?P2:A2,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Au-co(t+(this._isUTC?0:this.utcOffset()*io),Au)-1;break;case"minute":t=this._d.valueOf(),t+=io-co(t,io)-1;break;case"second":t=this._d.valueOf(),t+=Su-co(t,Su)-1;break}return this._d.setTime(t),ee.updateOffset(this,!0),this}function $H(){return this._d.valueOf()-(this._offset||0)*6e4}function GH(){return Math.floor(this.valueOf()/1e3)}function jH(){return new Date(this.valueOf())}function VH(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function WH(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function qH(){return this.isValid()?this.toISOString():null}function YH(){return l0(this)}function KH(){return ds({},ke(this))}function ZH(){return ke(this).overflow}function XH(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ue("N",0,0,"eraAbbr"),ue("NN",0,0,"eraAbbr"),ue("NNN",0,0,"eraAbbr"),ue("NNNN",0,0,"eraName"),ue("NNNNN",0,0,"eraNarrow"),ue("y",["y",1],"yo","eraYear"),ue("y",["yy",2],0,"eraYear"),ue("y",["yyy",3],0,"eraYear"),ue("y",["yyyy",4],0,"eraYear"),ae("N",D0),ae("NN",D0),ae("NNN",D0),ae("NNNN",c$),ae("NNNNN",l$),qe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?ke(r).era=s:ke(r).invalidEra=e}),ae("y",no),ae("yy",no),ae("yyy",no),ae("yyyy",no),ae("yo",u$),qe(["y","yy","yyy","yyyy"],zt),qe(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[zt]=r._locale.eraYearOrdinalParse(e,s):t[zt]=parseInt(e,10)});function QH(e,t){var r,n,s,a=this._eras||Ln("en")._eras;for(r=0,n=a.length;r<n;++r){switch(typeof a[r].since){case"string":s=ee(a[r].since).startOf("day"),a[r].since=s.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":s=ee(a[r].until).startOf("day").valueOf(),a[r].until=s.valueOf();break}}return a}function JH(e,t,r){var n,s,a=this.eras(),o,i,c;for(e=e.toUpperCase(),n=0,s=a.length;n<s;++n)if(o=a[n].name.toUpperCase(),i=a[n].abbr.toUpperCase(),c=a[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(i===e)return a[n];break;case"NNNN":if(o===e)return a[n];break;case"NNNNN":if(c===e)return a[n];break}else if([o,i,c].indexOf(e)>=0)return a[n]}function e$(e,t){var r=e.since<=e.until?1:-1;return t===void 0?ee(e.since).year():ee(e.since).year()+(t-e.offset)*r}function t$(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function r$(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function n$(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function s$(){var e,t,r,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return(this.year()-ee(s[e].since).year())*r+s[e].offset;return this.year()}function a$(e){return ze(this,"_erasNameRegex")||M0.call(this),e?this._erasNameRegex:this._erasRegex}function o$(e){return ze(this,"_erasAbbrRegex")||M0.call(this),e?this._erasAbbrRegex:this._erasRegex}function i$(e){return ze(this,"_erasNarrowRegex")||M0.call(this),e?this._erasNarrowRegex:this._erasRegex}function D0(e,t){return t.erasAbbrRegex(e)}function c$(e,t){return t.erasNameRegex(e)}function l$(e,t){return t.erasNarrowRegex(e)}function u$(e,t){return t._eraYearOrdinalRegex||no}function M0(){var e=[],t=[],r=[],n=[],s,a,o,i,c,l=this.eras();for(s=0,a=l.length;s<a;++s)o=_n(l[s].name),i=_n(l[s].abbr),c=_n(l[s].narrow),t.push(o),e.push(i),r.push(c),n.push(o),n.push(i),n.push(c);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}ue(0,["gg",2],0,function(){return this.weekYear()%100}),ue(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Pu(e,t){ue(0,[e,e.length],0,t)}Pu("gggg","weekYear"),Pu("ggggg","weekYear"),Pu("GGGG","isoWeekYear"),Pu("GGGGG","isoWeekYear"),ae("G",bu),ae("g",bu),ae("GG",Je,hr),ae("gg",Je,hr),ae("GGGG",x0,g0),ae("gggg",x0,g0),ae("GGGGG",mu,fu),ae("ggggg",mu,fu),Ki(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=Ie(e)}),Ki(["gg","GG"],function(e,t,r,n){t[n]=ee.parseTwoDigitYear(e)});function d$(e){return I2.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function p$(e){return I2.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function f$(){return Nn(this.year(),1,4)}function h$(){return Nn(this.isoWeekYear(),1,4)}function m$(){var e=this.localeData()._week;return Nn(this.year(),e.dow,e.doy)}function b$(){var e=this.localeData()._week;return Nn(this.weekYear(),e.dow,e.doy)}function I2(e,t,r,n,s){var a;return e==null?Ji(this,n,s).year:(a=Nn(e,n,s),t>a&&(t=a),y$.call(this,e,t,r,n,s))}function y$(e,t,r,n,s){var a=o2(e,t,r,n,s),o=Qi(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}ue("Q",0,"Qo","quarter"),ae("Q",K6),qe("Q",function(e,t){t[Dn]=(Ie(e)-1)*3});function g$(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ue("D",["DD",2],"Do","date"),ae("D",Je,so),ae("DD",Je,hr),ae("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),qe(["D","DD"],on),qe("Do",function(e,t){t[on]=Ie(e.match(Je)[0])});var B2=ao("Date",!0);ue("DDD",["DDDD",3],"DDDo","dayOfYear"),ae("DDD",hu),ae("DDDD",Z6),qe(["DDD","DDDD"],function(e,t,r){r._dayOfYear=Ie(e)});function x$(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ue("m",["mm",2],0,"minute"),ae("m",Je,w0),ae("mm",Je,hr),qe(["m","mm"],Gr);var w$=ao("Minutes",!1);ue("s",["ss",2],0,"second"),ae("s",Je,w0),ae("ss",Je,hr),qe(["s","ss"],Mn);var v$=ao("Seconds",!1);ue("S",0,0,function(){return~~(this.millisecond()/100)}),ue(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ue(0,["SSS",3],0,"millisecond"),ue(0,["SSSS",4],0,function(){return this.millisecond()*10}),ue(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ue(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ue(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ue(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ue(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ae("S",hu,K6),ae("SS",hu,hr),ae("SSS",hu,Z6);var fs,F2;for(fs="SSSS";fs.length<=9;fs+="S")ae(fs,no);function E$(e,t){t[ra]=Ie(("0."+e)*1e3)}for(fs="S";fs.length<=9;fs+="S")qe(fs,E$);F2=ao("Milliseconds",!1),ue("z",0,0,"zoneAbbr"),ue("zz",0,0,"zoneName");function k$(){return this._isUTC?"UTC":""}function C$(){return this._isUTC?"Coordinated Universal Time":""}var Y=qi.prototype;Y.add=bH,Y.calendar=kH,Y.clone=CH,Y.diff=FH,Y.endOf=HH,Y.format=DH,Y.from=MH,Y.fromNow=NH,Y.to=LH,Y.toNow=zH,Y.get=_z,Y.invalidAt=ZH,Y.isAfter=TH,Y.isBefore=SH,Y.isBetween=AH,Y.isSame=PH,Y.isSameOrAfter=IH,Y.isSameOrBefore=BH,Y.isValid=YH,Y.lang=C2,Y.locale=k2,Y.localeData=T2,Y.max=YR,Y.min=qR,Y.parsingFlags=KH,Y.set=Dz,Y.startOf=RH,Y.subtract=yH,Y.toArray=VH,Y.toObject=WH,Y.toDate=jH,Y.toISOString=OH,Y.inspect=_H,typeof Symbol<"u"&&Symbol.for!=null&&(Y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Y.toJSON=qH,Y.toString=UH,Y.unix=GH,Y.valueOf=$H,Y.creationData=XH,Y.eraName=t$,Y.eraNarrow=r$,Y.eraAbbr=n$,Y.eraYear=s$,Y.year=J6,Y.isLeapYear=Oz,Y.weekYear=d$,Y.isoWeekYear=p$,Y.quarter=Y.quarters=g$,Y.month=s2,Y.daysInMonth=jz,Y.week=Y.weeks=Qz,Y.isoWeek=Y.isoWeeks=Jz,Y.weeksInYear=m$,Y.weeksInWeekYear=b$,Y.isoWeeksInYear=f$,Y.isoWeeksInISOWeekYear=h$,Y.date=B2,Y.day=Y.days=pR,Y.weekday=fR,Y.isoWeekday=hR,Y.dayOfYear=x$,Y.hour=Y.hours=vR,Y.minute=Y.minutes=w$,Y.second=Y.seconds=v$,Y.millisecond=Y.milliseconds=F2,Y.utcOffset=nH,Y.utc=aH,Y.local=oH,Y.parseZone=iH,Y.hasAlignedHourOffset=cH,Y.isDST=lH,Y.isLocal=dH,Y.isUtcOffset=pH,Y.isUtc=g2,Y.isUTC=g2,Y.zoneAbbr=k$,Y.zoneName=C$,Y.dates=Cr("dates accessor is deprecated. Use date instead.",B2),Y.months=Cr("months accessor is deprecated. Use month instead",s2),Y.years=Cr("years accessor is deprecated. Use year instead",J6),Y.zone=Cr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",sH),Y.isDSTShifted=Cr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",uH);function T$(e){return et(e*1e3)}function S$(){return et.apply(null,arguments).parseZone()}function U2(e){return e}var Re=f0.prototype;Re.calendar=dz,Re.longDateFormat=mz,Re.invalidDate=yz,Re.ordinal=wz,Re.preparse=U2,Re.postformat=U2,Re.relativeTime=Ez,Re.pastFuture=kz,Re.set=lz,Re.eras=QH,Re.erasParse=JH,Re.erasConvertYear=e$,Re.erasAbbrRegex=o$,Re.erasNameRegex=a$,Re.erasNarrowRegex=i$,Re.months=Rz,Re.monthsShort=Hz,Re.monthsParse=Gz,Re.monthsRegex=Wz,Re.monthsShortRegex=Vz,Re.week=Yz,Re.firstDayOfYear=Xz,Re.firstDayOfWeek=Zz,Re.weekdays=iR,Re.weekdaysMin=lR,Re.weekdaysShort=cR,Re.weekdaysParse=dR,Re.weekdaysRegex=mR,Re.weekdaysShortRegex=bR,Re.weekdaysMinRegex=yR,Re.isPM=xR,Re.meridiem=ER;function Iu(e,t,r,n){var s=Ln(),a=nn().set(n,t);return s[r](a,e)}function O2(e,t,r){if(On(e)&&(t=e,e=void 0),e=e||"",t!=null)return Iu(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Iu(e,n,r,"month");return s}function N0(e,t,r,n){typeof e=="boolean"?(On(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,On(t)&&(r=t,t=void 0),t=t||"");var s=Ln(),a=e?s._week.dow:0,o,i=[];if(r!=null)return Iu(t,(r+a)%7,n,"day");for(o=0;o<7;o++)i[o]=Iu(t,(o+a)%7,n,"day");return i}function A$(e,t){return O2(e,t,"months")}function P$(e,t){return O2(e,t,"monthsShort")}function I$(e,t,r){return N0(e,t,r,"weekdays")}function B$(e,t,r){return N0(e,t,r,"weekdaysShort")}function F$(e,t,r){return N0(e,t,r,"weekdaysMin")}ps("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=Ie(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),ee.lang=Cr("moment.lang is deprecated. Use moment.locale instead.",ps),ee.langData=Cr("moment.langData is deprecated. Use moment.localeData instead.",Ln);var zn=Math.abs;function U$(){var e=this._data;return this._milliseconds=zn(this._milliseconds),this._days=zn(this._days),this._months=zn(this._months),e.milliseconds=zn(e.milliseconds),e.seconds=zn(e.seconds),e.minutes=zn(e.minutes),e.hours=zn(e.hours),e.months=zn(e.months),e.years=zn(e.years),this}function _2(e,t,r,n){var s=jr(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function O$(e,t){return _2(this,e,t,1)}function _$(e,t){return _2(this,e,t,-1)}function D2(e){return e<0?Math.floor(e):Math.ceil(e)}function D$(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,a,o,i,c;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=D2(L0(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=Sr(e/1e3),n.seconds=s%60,a=Sr(s/60),n.minutes=a%60,o=Sr(a/60),n.hours=o%24,t+=Sr(o/24),c=Sr(M2(t)),r+=c,t-=D2(L0(c)),i=Sr(r/12),r%=12,n.days=t,n.months=r,n.years=i,this}function M2(e){return e*4800/146097}function L0(e){return e*146097/4800}function M$(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=Tr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+M2(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(L0(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function Rn(e){return function(){return this.as(e)}}var N2=Rn("ms"),N$=Rn("s"),L$=Rn("m"),z$=Rn("h"),R$=Rn("d"),H$=Rn("w"),$$=Rn("M"),G$=Rn("Q"),j$=Rn("y"),V$=N2;function W$(){return jr(this)}function q$(e){return e=Tr(e),this.isValid()?this[e+"s"]():NaN}function sa(e){return function(){return this.isValid()?this._data[e]:NaN}}var Y$=sa("milliseconds"),K$=sa("seconds"),Z$=sa("minutes"),X$=sa("hours"),Q$=sa("days"),J$=sa("months"),eG=sa("years");function tG(){return Sr(this.days()/7)}var Hn=Math.round,lo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rG(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function nG(e,t,r,n){var s=jr(e).abs(),a=Hn(s.as("s")),o=Hn(s.as("m")),i=Hn(s.as("h")),c=Hn(s.as("d")),l=Hn(s.as("M")),u=Hn(s.as("w")),d=Hn(s.as("y")),f=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||o<=1&&["m"]||o<r.m&&["mm",o]||i<=1&&["h"]||i<r.h&&["hh",i]||c<=1&&["d"]||c<r.d&&["dd",c];return r.w!=null&&(f=f||u<=1&&["w"]||u<r.w&&["ww",u]),f=f||l<=1&&["M"]||l<r.M&&["MM",l]||d<=1&&["y"]||["yy",d],f[2]=t,f[3]=+e>0,f[4]=n,rG.apply(null,f)}function sG(e){return e===void 0?Hn:typeof e=="function"?(Hn=e,!0):!1}function aG(e,t){return lo[e]===void 0?!1:t===void 0?lo[e]:(lo[e]=t,e==="s"&&(lo.ss=t-1),!0)}function oG(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=lo,s,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},lo,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),a=nG(this,!r,n,s),r&&(a=s.pastFuture(+this,a)),s.postformat(a)}var z0=Math.abs;function uo(e){return(e>0)-(e<0)||+e}function Bu(){if(!this.isValid())return this.localeData().invalidDate();var e=z0(this._milliseconds)/1e3,t=z0(this._days),r=z0(this._months),n,s,a,o,i=this.asSeconds(),c,l,u,d;return i?(n=Sr(e/60),s=Sr(n/60),e%=60,n%=60,a=Sr(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=i<0?"-":"",l=uo(this._months)!==uo(i)?"-":"",u=uo(this._days)!==uo(i)?"-":"",d=uo(this._milliseconds)!==uo(i)?"-":"",c+"P"+(a?l+a+"Y":"")+(r?l+r+"M":"")+(t?u+t+"D":"")+(s||n||e?"T":"")+(s?d+s+"H":"")+(n?d+n+"M":"")+(e?d+o+"S":"")):"P0D"}var De=ku.prototype;De.isValid=JR,De.abs=U$,De.add=O$,De.subtract=_$,De.as=M$,De.asMilliseconds=N2,De.asSeconds=N$,De.asMinutes=L$,De.asHours=z$,De.asDays=R$,De.asWeeks=H$,De.asMonths=$$,De.asQuarters=G$,De.asYears=j$,De.valueOf=V$,De._bubble=D$,De.clone=W$,De.get=q$,De.milliseconds=Y$,De.seconds=K$,De.minutes=Z$,De.hours=X$,De.days=Q$,De.weeks=tG,De.months=J$,De.years=eG,De.humanize=oG,De.toISOString=Bu,De.toString=Bu,De.toJSON=Bu,De.locale=k2,De.localeData=T2,De.toIsoString=Cr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Bu),De.lang=C2,ue("X",0,0,"unix"),ue("x",0,0,"valueOf"),ae("x",bu),ae("X",Az),qe("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),qe("x",function(e,t,r){r._d=new Date(Ie(e))});//! moment.js
118
+ ee.version="2.30.1",iz(et),ee.fn=Y,ee.min=KR,ee.max=ZR,ee.now=XR,ee.utc=nn,ee.unix=T$,ee.months=A$,ee.isDate=Wi,ee.locale=ps,ee.invalid=uu,ee.duration=jr,ee.isMoment=$r,ee.weekdays=I$,ee.parseZone=S$,ee.localeData=Ln,ee.isDuration=Cu,ee.monthsShort=P$,ee.weekdaysMin=F$,ee.defineLocale=S0,ee.updateLocale=SR,ee.locales=AR,ee.weekdaysShort=B$,ee.normalizeUnits=Tr,ee.relativeTimeRounding=sG,ee.relativeTimeThreshold=aG,ee.calendarFormat=EH,ee.prototype=Y,ee.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function iG(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}var R0;(function(e){e.event="event",e.props="prop"})(R0||(R0={}));function H0(){}function cG(e){var t,r=void 0;return function(){for(var n=[],s=arguments.length;s--;)n[s]=arguments[s];return t&&n.length===t.length&&n.every(function(a,o){return a===t[o]})||(t=n,r=e.apply(void 0,n)),r}}function L2(e){return!!(e||"").match(/\d/)}function po(e){return e==null}function lG(e){return typeof e=="number"&&isNaN(e)}function z2(e){return po(e)||lG(e)||typeof e=="number"&&!isFinite(e)}function R2(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function uG(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function dG(e,t,r){var n=uG(r),s=e.search(/[1-9]/);return s=s===-1?e.length:s,e.substring(0,s)+e.substring(s,e.length).replace(n,"$1"+t)}function pG(e){var t=N.useRef(e);t.current=e;var r=N.useRef(function(){for(var n=[],s=arguments.length;s--;)n[s]=arguments[s];return t.current.apply(t,n)});return r.current}function $0(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var s=e.split("."),a=s[0],o=s[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:r,addNegation:n}}function fG(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",s=r[1]||"";return(t?"-":"")+n+(s?"."+s:"")}function H2(e,t,r){for(var n="",s=r?"0":"",a=0;a<=t-1;a++)n+=e[a]||s;return n}function $2(e,t){return Array(t+1).join(e)}function G2(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),s=n[0],a=n[1];if(a=Number(a),!a)return r+s;s=s.replace(".","");var o=1+a,i=s.length;return o<0?s="0."+$2("0",Math.abs(o))+s:o>=i?s=s+$2("0",o-i):s=(s.substring(0,o)||"0")+"."+s.substring(o),r+s}function j2(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,s=$0(e),a=s.beforeDecimal,o=s.afterDecimal,i=s.hasNegation,c=parseFloat("0."+(o||"0")),l=o.length<=t?"0."+o:c.toFixed(t),u=l.split("."),d=a;a&&Number(u[0])&&(d=a.split("").reverse().reduce(function(g,E,v){return g.length>v?(Number(g[0])+Number(E)).toString()+g.substring(1,g.length):E+g},u[0]));var f=H2(u[1]||"",t,r),h=i?"-":"",y=n?".":"";return""+h+d+y+f}function nc(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var hG=cG(function(e,t){for(var r=0,n=0,s=e.length,a=t.length;e[r]===t[r]&&r<s;)r++;for(;e[s-1-n]===t[a-1-n]&&a-n>r&&s-n>r;)n++;return{from:{start:r,end:s-n},to:{start:r,end:a-n}}});function mG(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function bG(e,t,r,n,s,a){a===void 0&&(a=H0);var o=pG(function(y,g){var E,v;return z2(y)?(v="",E=""):typeof y=="number"||g?(v=typeof y=="number"?G2(y):y,E=n(v)):(v=s(y,void 0),E=n(v)),{formattedValue:E,numAsString:v}}),i=N.useState(function(){return o(po(e)?t:e,r)}),c=i[0],l=i[1],u=function(y,g){y.formattedValue!==c.formattedValue&&l({formattedValue:y.formattedValue,numAsString:y.value}),a(y,g)},d=e,f=r;po(e)&&(d=c.numAsString,f=!0);var h=o(d,f);return N.useMemo(function(){l(h)},[h.formattedValue]),[c,u]}function V2(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,s=t.prefix;s===void 0&&(s="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,i=t.thousandsGroupStyle;if(i===void 0&&(i="thousand"),e===""||e==="-")return e;var c=Fu(t),l=c.thousandSeparator,u=c.decimalSeparator,d=r!==0&&e.indexOf(".")!==-1||r&&n,f=$0(e,o),h=f.beforeDecimal,y=f.afterDecimal,g=f.addNegation;return r!==void 0&&(y=H2(y,r,!!n)),l&&(h=dG(h,l,i)),s&&(h=s+h),a&&(y=y+a),g&&(h="-"+h),e=h+(d&&u||"")+y,e}function Fu(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function yG(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),s=r.test(e),a=n.test(e);return e=e.replace(/-/g,""),s&&!a&&t&&(e="-"+e),e}function gG(e,t){return new RegExp("(^-)|[0-9]|"+R2(e),"g")}function xG(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function wG(e,t,r){var n;t===void 0&&(t=mG(e));var s=r.allowNegative,a=r.prefix;a===void 0&&(a="");var o=r.suffix;o===void 0&&(o="");var i=r.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=Fu(r),h=f.allowedDecimalSeparators,y=f.decimalSeparator,g=e[d]===y;if(L2(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(d-u===1&&h.indexOf(e[u])!==-1){var E=i===0?"":y;e=e.substring(0,u)+E+e.substring(u+1,e.length)}var v=function(O,U,L){var H=!1,G=!1;a.startsWith("-")?H=!1:O.startsWith("--")?(H=!1,G=!0):o.startsWith("-")&&O.length===o.length?H=!1:O[0]==="-"&&(H=!0);var Q=H?1:0;return G&&(Q=2),Q&&(O=O.substring(Q),U-=Q,L-=Q),{value:O,start:U,end:L,hasNegation:H}},w=v(e,u,d),T=w.hasNegation;n=w,e=n.value,u=n.start,d=n.end;var C=v(t.lastValue,c.start,c.end),_=C.start,z=C.end,S=C.value,m=e.substring(u,d);e.length&&S.length&&(_>S.length-o.length||z<a.length)&&!(m&&o.startsWith(m))&&(e=S);var b=0;e.startsWith(a)?b+=a.length:u<a.length&&(b=u),e=e.substring(b),d-=b;var x=e.length,A=e.length-o.length;e.endsWith(o)?x=A:(d>A||d>e.length-o.length)&&(x=d),e=e.substring(0,x),e=yG(T?"-"+e:e,s),e=(e.match(gG(y))||[]).join("");var I=e.indexOf(y);e=e.replace(new RegExp(R2(y),"g"),function(O,U){return U===I?".":""});var F=$0(e,s),D=F.beforeDecimal,k=F.afterDecimal,P=F.addNegation;return l.end-l.start<c.end-c.start&&D===""&&g&&!parseFloat(k)&&(e=P?"-":""),e}function vG(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var s=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";s.fill(!1,0,r.length+(a?1:0));var o=e.length;return s.fill(!1,o-n.length+1,o+1),s}function EG(e){var t=Fu(e),r=t.thousandSeparator,n=t.decimalSeparator,s=e.prefix;s===void 0&&(s="");var a=e.allowNegative;if(a===void 0&&(a=!0),r===n)throw new Error(`
119
119
  Decimal separator can't be same as thousand separator.
120
120
  thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
121
121
  decimalSeparator: `+n+` (default value for decimalSeparator is .)
@@ -123,4 +123,4 @@ ee.version="2.30.1",iz(et),ee.fn=Y,ee.min=KR,ee.max=ZR,ee.now=XR,ee.utc=rn,ee.un
123
123
  Prefix can't start with '-' when allowNegative is true.
124
124
  prefix: `+s+`
125
125
  allowNegative: `+a+`
126
- `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function kG(e){e=EG(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,s=e.onKeyDown;s===void 0&&(s=H0);var a=e.onBlur;a===void 0&&(a=H0);var o=e.thousandSeparator,i=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l="");var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,h=e.onValueChange,y=iG(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=Fu(e),E=g.decimalSeparator,v=g.allowedDecimalSeparators,w=function(P){return V2(P,e)},T=function(P,O){return wG(P,O,e)},C=po(d)?u:d,_=f??xG(C,l,t);po(d)?po(u)||(_=_||typeof u=="number"):_=_||typeof d=="number";var z=function(P){return z2(P)?P:(typeof P=="number"&&(P=G2(P)),_&&typeof i=="number"?j2(P,i,!!c):P)},S=bG(z(d),z(u),!!_,w,T,h),m=S[0],b=m.numAsString,x=m.formattedValue,A=S[1],I=function(P){var O=P.target,U=P.key,L=O.selectionStart,H=O.selectionEnd,G=O.value;if(G===void 0&&(G=""),(U==="Backspace"||U==="Delete")&&H<l.length){P.preventDefault();return}if(L!==H){s(P);return}U==="Backspace"&&G[0]==="-"&&L===l.length+1&&r&&nc(O,1),i&&c&&(U==="Backspace"&&G[L-1]===E?(nc(O,L-1),P.preventDefault()):U==="Delete"&&G[L]===E&&P.preventDefault()),v!=null&&v.includes(U)&&G[L]===E&&nc(O,L+1);var Q=o===!0?",":o;U==="Backspace"&&G[L-1]===Q&&nc(O,L-1),U==="Delete"&&G[L]===Q&&nc(O,L+1),s(P)},F=function(P){var O=b;if(O.match(/\d/g)||(O=""),n||(O=fG(O)),c&&i&&(O=j2(O,i,c)),O!==b){var U=V2(O,e);A({formattedValue:U,value:O,floatValue:parseFloat(O)},{event:P,source:R0.event})}a(P)},D=function(P){return P===E?!0:L2(P)},k=function(P){var O=P.currentValue,U=P.lastValue,L=P.formattedValue,H=P.currentValueIndex,G=P.formattedValueIndex,Q=O[H],pe=L[G],me=hG(U,O),ie=me.to,de=function(Be){return T(Be).indexOf(".")+l.length};return d===0&&c&&i&&O[ie.start]===E&&de(O)<H&&de(L)>G?!1:H>=ie.start&&H<ie.end&&v&&v.includes(Q)&&pe===E?!0:Q===pe};return Object.assign(Object.assign({},y),{value:x,valueIsNumericString:!1,isValidInputCharacter:D,isCharacterSame:k,onValueChange:A,format:w,removeFormatting:T,getCaretBoundary:function(P){return vG(P,e)},onKeyDown:I,onBlur:F})}const W2=(e,t)=>N.useMemo(()=>Ac(e,t),[e,t]),on=(e,t)=>N.useMemo(()=>gn(e,t),[e,t]),sc=()=>{const{chainId:e}=ne();return N.useMemo(()=>Bs(e),[e])},G0=e=>{const t=sc();return N.useMemo(()=>{if(!(!e||!t))return _o(e,t.id)},[e,t])},fo=(e,t)=>N.useMemo(()=>!e||!t||j(e||"0").isZero()||j(t||"0").isZero()?"":j(e||"0").times(t).toFixed(),[e,t]),CG=()=>{const{srcToken:e,dstToken:t,chainId:r}=ne();return N.useMemo(()=>Bd(e,t,r),[e,t,r])},TG=()=>{const{srcToken:e,dstToken:t,chainId:r}=ne();return N.useMemo(()=>Fd(e,t,r),[e,t,r])},SG=()=>{const e=CG(),t=TG();return e||t},j0=e=>{const{overrides:t}=ne();return N.useMemo(()=>t!=null&&t.dateFormat?t.dateFormat(e||0):ee(e).format("DD/MM/YYYY HH:mm"),[e,t==null?void 0:t.dateFormat])};function AG(){const{callbacks:e}=ne();return N.useCallback(async t=>{var r;try{await navigator.clipboard.writeText(t),(r=e==null?void 0:e.onCopy)==null||r.call(e)}catch(n){console.error("Copy failed:",n)}},[e==null?void 0:e.onCopy])}const q2=(e,t)=>N.useMemo(()=>Ad(e==null?void 0:e.toString(),t),[e,t]),je=({value:e,decimalScale:t=3,prefix:r,suffix:n})=>{var c;const s=q2(e,t),{overrides:a}=ne(),o=a==null?void 0:a.numberFormat,i=kG({allowLeadingZeros:!0,thousandSeparator:",",displayType:"text",value:s||"",decimalScale:18,prefix:r,suffix:n});return o?o(e||""):(c=i.value)==null?void 0:c.toString()},PG={expirationTooltip:"This is the date and time marking the end of the period which you have selected for your order to be executed.",tradeSizeTooltip:"The number of input tokens that will be removed from your balance and swapped for the output token in each individual trade.",totalTradesTooltip:"The total number of individual trades that will be scheduled as part of your order. Note that in limit orders, not all trades that are scheduled will be executed.",minDstAmountTooltip:" This is the minimum number of tokens that may be received. NOTE: This minimum only refers to executed trades. Some trades may not be executed if the limit price is higher than the available market prices and your order may only be partially filled.",limitPriceTooltip:"Trades will only execute if the available market price is better than the limit price, potentially resulting in partial fills or orders remaining unfilled upon expiration.",maxDurationTooltip:"This is the time period during which the order will be active. Please note that orders may be completed earlier than this time, partially filled, or remain unfilled based on the specified parameters.",tradeIntervalTootlip:"The estimated time that will elapse between each trade in your order. Note that as this time includes an allowance of two minutes for bidder auction and block settlement, which cannot be predicted exactly, actual time may vary.",triggerPriceTooltip:"The price at which the order will be executed. If the market price is higher than the trigger price, the order will be executed at the market price.",placeOrder:"Place order",enterAmount:"Enter an amount",emptyLimitPrice:"Limit price is required",insufficientFunds:"Insufficient Balance",tradeIntervalLabel:"Trade interval",expirationLabel:"Expiration",limitPrice:"Limit Price",finalExcecutionPrice:"Final execution price",marketPrice:"Market price",from:"From",to:"To (estimated)",Open:"Open",Completed:"Completed",Expired:"Expired",Canceled:"Canceled",cancelOrder:"Cancel Order",minReceivedPerTrade:"Min. received per trade",triggerPricePerChunk:"Trigger Price per trade",maxChunksError:"Max. trades amount is {maxChunks}",minChunksError:"Min. trades amount is {minChunks}",minTradeSizeError:"Min. trade size is ${minTradeSize}",allOrders:"All",minFillDelayError:"Min. trade interval is {fillDelay}",maxFillDelayError:"Max. trade interval is {fillDelay}",recipient:"Recipient",marketOrderWarning:"Each individual trade in this order will be filled at the current market price at the time of execution.",limitPriceMessage:"Limit orders may not execute when the token's price is equal or close to the limit price, due to gas and standard swap fees.",limit:"Limit",maxDurationError:"Max. expiry is {duration}",minDurationError:"Min. expiry is {duration}",expiry:"Expiry",individualTradeSize:"Individual trade size",numberOfTrades:"No. of trades",averageExecutionPrice:"Avg. execution price",twapMarket:"TWAP-market",twapLimit:"TWAP-limit",stopLoss:"Stop-loss",stopLossMarket:"Stop-loss market",stopLossLimit:"Stop-loss limit",takeProfit:"Take-profit",minReceived:"Min. received",noOrders:"No {status} Orders",noLiquidity:"No liquidity for this pair",excecutionSummary:"Execution summary",orderInfo:"Order info",wrapAction:"Wrap {symbol}",approveAction:"Approve {symbol}",createOrderAction:"Create {name} order",amountReceived:"Amount received",createdAt:"Created at",amountOut:"Amount out",status:"Status",progress:"Progress",minutes:"minutes",days:"days",tradeIntervalTitle:"Every",tradesAmountTitle:"Over",stopLossTooltip:"The trigger price at which your stop-loss order will be activated.",takeProfitTooltip:"The trigger price at which your take-profit order will be activated.",stopLossLabel:"Trigger Price",StopLossTriggerPriceError:"Trigger price must be less than market price",TakeProfitTriggerPriceError:"Trigger price must be greater than market price",triggerLimitPriceError:"Limit price must be less than trigger price",triggerPrice:"Trigger Price",tradePrice:"Trade Price",triggerMarketPriceDisclaimer:" In extreme market movements, slippage may occur and the executed price of the market order may be worse than the specified trigger price.",stopLossLimitPriceTooltip:"The stop loss order will execute at the specified limit price or better, once the stop price is triggered.",stopLossDurationTooltip:"This is the time period during which the order will be active. Please note that orders may be completed earlier than this time, or remain unfilled based on the specified parameters.",emptyTriggerPrice:"Trigger price is required",id:"ID",fees:"Fees {value}",version:"Version",maxOrderSizeError:"Max. trade size is {maxOrderSize} USD",viewOnExplorer:"View on explorer",proceedInWallet:"Proceed in wallet",wrapMsg:"Note: {symbol} was wrapped to {wSymbol}",createOrderActionSuccess:"{name} order placed"};function IG(e){let t=e;const r=/\{[^{}]*\}/g;for(;r.test(t);)t=t.replace(r,"");return t}const Me=()=>{const e=ne();return N.useCallback((r,n)=>{var o,i;const s=(o=e.getTranslation)==null?void 0:o.call(e,r,n);if(s&&s!==r)return s;const a=((i=e.translations)==null?void 0:i[r])||PG[r];return IG(a.replace(/{(\w+)}/g,(c,l)=>(n==null?void 0:n[l])||c))},[e.getTranslation,e.translations])},Uu=({value:e})=>{const t=je({value:e,decimalScale:2});return t?B.jsx("small",{className:"twap-order-details__detail-row-value-usd",children:` ($${t})`}):null},BG=({deadline:e,label:t,tooltip:r})=>{const n=j0(e);return B.jsx(Ar,{title:t,tooltip:r,children:n})},FG=({price:e,dstToken:t,label:r,tooltip:n,usd:s,srcToken:a})=>{const o=je({value:e});return j(e||0).isZero()?null:B.jsx(Ar,{title:r,tooltip:n,children:B.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:["1 ",a==null?void 0:a.symbol," = ",`${o||"-"} ${t==null?void 0:t.symbol}`,B.jsx(Uu,{value:s})]})})},UG=({tradeSize:e,srcToken:t,trades:r,label:n,tooltip:s})=>r===1?null:B.jsx(Ar,{title:n,tooltip:s,children:`${e||"-"} ${(t==null?void 0:t.symbol)||""}`}),OG=({dstToken:e,dstMinAmountOut:t,label:r,tooltip:n,usd:s})=>{const a=je({value:t});return j(t||0).isZero()?null:B.jsxs(Ar,{title:r,tooltip:n,children:[`${t?a:"-"} ${e==null?void 0:e.symbol}`,B.jsx(Uu,{value:s})]})},_G=({trades:e,label:t,tooltip:r})=>e===1?null:B.jsx(Ar,{title:t,tooltip:r,children:e}),DG=()=>{var s;const e=Me(),{account:t}=ne(),r=(s=sc())==null?void 0:s.explorer,n=Sd(t);return B.jsx(Ar,{title:e("recipient")||"",children:r?B.jsx("a",{href:`${r}/address/${t}`,target:"_blank",children:n}):n})},MG=({fillDelayMillis:e,chunks:t=0,label:r,tooltip:n})=>{const s=N.useMemo(()=>l1(e),[e]);return t===1?null:B.jsx(Ar,{title:r,tooltip:n,children:s})},Ar=({title:e,tooltip:t,children:r,className:n="",onClick:s,style:a})=>{const{components:o}=ne(),i=o.Tooltip;return B.jsxs("div",{className:`${n} twap-order-details__detail-row`,onClick:s,style:a,children:[B.jsxs("div",{className:"twap-order-details__detail-row-label",children:[B.jsx("p",{className:"twap-order-details__detail-row-label-value",children:e}),t&&i&&B.jsx(i,{tooltipText:t})]}),B.jsx("div",{className:"twap-order-details__detail-row-value",children:r})]})},NG=({id:e})=>{const{components:t}=ne(),r=t==null?void 0:t.Tooltip,n=AG();return e.startsWith("0x")?B.jsx(Ar,{title:"ID",onClick:()=>n(e),style:{cursor:"pointer"},children:r&&B.jsx(r,{tooltipText:e,children:B.jsxs("div",{className:"twap-order-details__detail-row-value-id",children:[B.jsx("p",{children:Sd(e)}),B.jsx(oz.AiOutlineCopy,{})]})})}):B.jsx(Ar,{title:"ID",children:e})},LG=({version:e})=>B.jsx(Ar,{title:"Version",children:e});function Ee({children:e,className:t=""}){return B.jsx("div",{className:`${t} twap-order-details`,children:e})}const zG=({children:e})=>e,RG=({fees:e,label:t,usd:r,dstTokenSymbol:n})=>{const s=je({value:e});return B.jsxs(Ar,{title:t,children:[`${e?s:"-"} ${n}`,B.jsx(Uu,{value:r})]})};Ee.Deadline=BG,Ee.Fees=RG,Ee.TradeSize=UG,Ee.MinDestAmount=OG,Ee.TradesAmount=_G,Ee.Recipient=DG,Ee.TradeInterval=MG,Ee.DetailRow=Ar,Ee.Price=FG,Ee.OrderID=NG,Ee.Container=zG,Ee.OrderVersion=LG,Ee.USD=Uu;const V0=()=>{const{publicClient:e}=ne();return Kr({mutationFn:async t=>{if(!e)throw new Error("publicClient is not defined");const r=10;let n=0,s=1e3;for(;n<r;)try{return await e.waitForTransactionReceipt({hash:t,confirmations:2,retryDelay:s})}catch(a){if(n++,n>=r)throw new Error(`Failed after ${r} attempts: ${a}`);await new Promise(o=>setTimeout(o,s)),s*=2}}}).mutateAsync},Y2=e=>{const t=Me(),r=je({value:e.srcAmount}),n=je({value:e.limitPrice}),s=je({value:e.limitPriceUsd}),a=je({value:e.srcAmountPerTrade}),o=je({value:e.srcAmountPerTradeUsd,decimalScale:2}),i=je({value:e.minDestAmountPerTrade}),c=je({value:e.minDestAmountPerTradeUsd,decimalScale:2}),l=je({value:e.triggerPrice}),u=je({value:e.triggerPriceUsd,decimalScale:2}),d=je({value:e.srcUsd,decimalScale:2}),f=je({value:e.dstUsd,decimalScale:2}),h=je({value:e.dstAmount});return N.useMemo(()=>({srcToken:e.srcToken,dstToken:e.dstToken,srcUsd:d||"",dstUsd:f||"",limitPrice:{label:t("limitPrice"),tooltip:t("limitPriceTooltip"),value:n||"",usd:s||""},deadline:{tooltip:t("expirationTooltip"),label:t("expirationLabel"),value:e.deadline||0},srcAmount:{label:t("amountOut"),value:r||"",usd:d||""},dstAmount:{value:h||"",usd:f||""},sizePerTrade:{tooltip:t("tradeSizeTooltip"),label:t("individualTradeSize"),value:a||"",usd:o},totalTrades:{tooltip:t("totalTradesTooltip"),label:t("numberOfTrades"),value:e.totalTrades||0},minDestAmountPerTrade:{tooltip:t("minDstAmountTooltip"),label:t(e.totalTrades&&e.totalTrades>1?"minReceivedPerTrade":"minReceived"),value:i||"",usd:c},tradeInterval:{tooltip:t("tradeIntervalTootlip"),label:t("tradeIntervalLabel"),value:e.tradeInterval||0},triggerPrice:{tooltip:t("triggerPriceTooltip"),label:t("triggerPrice"),value:l||"",usd:u},recipient:{label:t("recipient"),value:e.account||""}}),[d,f,n,r,a,o,i,l,u,n,s,h,f,c])},K2=e=>{const{orders:t}=Ou(),{useToken:r,config:n}=ne(),s=Me(),a=N.useMemo(()=>t==null?void 0:t.all.find(C=>C.id===e),[t,e])||{},o=Q2(a),i=r==null?void 0:r(a==null?void 0:a.srcTokenAddress),c=r==null?void 0:r(a==null?void 0:a.dstTokenAddress),l=on(i==null?void 0:i.decimals,a==null?void 0:a.srcAmount),u=jG(i,c,a),d=je({value:VG(i,c,a)}),f=je({value:on(i==null?void 0:i.decimals,a==null?void 0:a.srcAmountFilled)}),h=je({value:on(c==null?void 0:c.decimals,a==null?void 0:a.dstAmountFilled)}),y=je({value:a==null?void 0:a.progress,decimalScale:2}),g=on(i==null?void 0:i.decimals,a==null?void 0:a.srcAmountPerTrade),E=on(c==null?void 0:c.decimals,a==null?void 0:a.dstMinAmountPerTrade),v=on(c==null?void 0:c.decimals,j(a==null?void 0:a.triggerPricePerTrade).multipliedBy(a==null?void 0:a.totalTradesAmount).toFixed()),w=N.useMemo(()=>a?a.version===2?a.fillDelay:n.twapConfig?td(a,n.twapConfig):0:0,[a,n]),T=Y2({srcToken:i,dstToken:c,account:a==null?void 0:a.maker,limitPrice:u,deadline:a==null?void 0:a.deadline,tradeInterval:w,srcAmount:l,totalTrades:a==null?void 0:a.totalTradesAmount,srcAmountPerTrade:g,minDestAmountPerTrade:E,triggerPrice:v});return N.useMemo(()=>({original:a,title:o,...T,createdAt:{label:s("createdAt"),value:a==null?void 0:a.createdAt},id:{label:s("id"),value:a==null?void 0:a.id},amountInFilled:{label:s("amountOut"),value:f},amountOutFilled:{label:s("amountReceived"),value:h,token:c},progress:{label:s("progress"),value:y},excecutionPrice:{label:s((a==null?void 0:a.totalTradesAmount)===1?"finalExcecutionPrice":"averageExecutionPrice"),value:d},version:{label:s("version"),value:a==null?void 0:a.version}}),[a,s,d,f,h,y,o,i,c,T])},Z2=e=>{const t=Me();return N.useMemo(()=>{switch(e){case Ge.TWAP_MARKET:return t("twapMarket");case Ge.TWAP_LIMIT:return t("twapLimit");case Ge.STOP_LOSS_MARKET:return t("stopLossMarket");case Ge.STOP_LOSS_LIMIT:return t("stopLossLimit");case Ge.TAKE_PROFIT:return t("takeProfit");default:return t("twapMarket")}},[t,e])},HG=()=>{const{module:e}=ne(),t=te(r=>r.state.isMarketOrder);return N.useMemo(()=>e===ye.TWAP?t?Ge.TWAP_MARKET:Ge.TWAP_LIMIT:e===ye.LIMIT?t?Ge.LIMIT:Ge.TWAP_LIMIT:e===ye.STOP_LOSS?t?Ge.STOP_LOSS_MARKET:Ge.STOP_LOSS_LIMIT:e===ye.TAKE_PROFIT?Ge.TAKE_PROFIT:Ge.TWAP_MARKET,[e,t])},X2=()=>{const e=HG();return Z2(e)},Q2=e=>Z2(e==null?void 0:e.type),W0=()=>{const{account:e,config:t,chainId:r}=ne();return N.useMemo(()=>["useTwapOrderHistoryManager",e,t==null?void 0:t.adapter,r],[e,t,r])},$G=()=>{const e=Mc(),{account:t}=ne(),r=W0();return N.useCallback(n=>{e.setQueryData(r,s=>s?s!=null&&s.some(a=>a.id===n.id)?s:[n,...s]:[n])},[e,r,t])},GG=()=>{const{callbacks:e,refetchBalances:t}=ne(),r=Mc(),n=W0();return N.useCallback(s=>{var c;const a=r.getQueryData(n);let o=!1;const i=[];a&&a.forEach(l=>{var d;const u=s.find(f=>f.id===l.id);u&&u.progress!==l.progress&&(o=!0,i.push(u),u.status===ct.Completed&&((d=e==null?void 0:e.onOrderFilled)==null||d.call(e,u)))}),o&&((c=e==null?void 0:e.onOrdersProgressUpdate)==null||c.call(e,i),t==null||t())},[r,n,e,t])},J2=()=>{const{account:e,config:t,chainId:r}=ne(),n=W0(),s=GG();return d3({refetchInterval:XL,refetchOnWindowFocus:!0,retry:!1,staleTime:1/0,queryKey:n,queryFn:async({signal:o})=>{if(!e||!r||!t)return[];const i=await Fm({signal:o,chainId:r,config:t,account:e});return s(i),i.map(c=>t!=null&&t.twapConfig?{...c,fillDelayMillis:td(c,t.twapConfig)}:c)}})},Ou=()=>{const{data:e,isLoading:t,error:r,refetch:n,isRefetching:s}=J2(),{mutateAsync:a}=q0();return N.useMemo(()=>({orders:{all:e??[],open:_u(e??[],ct.Open),completed:_u(e??[],ct.Completed),expired:_u(e??[],ct.Expired),canceled:_u(e??[],ct.Canceled)},isLoading:t,error:r,refetch:()=>n().then(o=>o.data),cancelOrder:a,isRefetching:s}),[e,t,r,n,a,s])},ex=()=>{const e=te(r=>r.state.orderHistoryStatusFilter),{orders:t}=Ou();return N.useMemo(()=>e?t.all.filter(r=>r.status.toLowerCase()===e.toLowerCase())||[]:t.all,[e,t])},_u=(e,t)=>e.filter(r=>r.status===t).sort((r,n)=>n.createdAt-r.createdAt),jG=(e,t,r)=>N.useMemo(()=>{if(!(!e||!t||!r||r!=null&&r.isMarketPrice))return Gh(r,e==null?void 0:e.decimals,t==null?void 0:t.decimals)},[r,e,t]),VG=(e,t,r)=>N.useMemo(()=>{if(!(!e||!t||!r))return $h(r,e.decimals,t.decimals)},[r,e,t]),tx=()=>{const e=te(r=>r.updateState),t=te(r=>r.state.orderIdsToCancel);return N.useCallback(r=>{t!=null&&t.includes(r)?e({orderIdsToCancel:t==null?void 0:t.filter(n=>n!==r)}):e({orderIdsToCancel:[...t||[],r]})},[e,t])},WG=()=>{var S,m;const e=Me(),{orders:t,isLoading:r,refetch:n,isRefetching:s}=Ou(),{mutateAsync:a,isPending:o}=q0(),i=ex(),c=te(b=>b.updateState),l=te(b=>b.state.orderHistoryStatusFilter),u=te(b=>b.state.cancelOrdersMode),d=te(b=>b.state.orderIdsToCancel),f=N.useCallback(b=>c({cancelOrdersMode:b,orderIdsToCancel:[]}),[c]),h=N.useCallback(()=>c({selectedOrderID:void 0}),[c]),y=N.useCallback(b=>a({orders:b}),[a]),g=N.useCallback(b=>c({orderHistoryStatusFilter:b}),[]),E=N.useMemo(()=>{const b=Object.keys(ct).map(x=>({text:x,value:x}));return[{text:e("allOrders"),value:""},...b]},[e]),v=tx(),w=te(b=>b.state.selectedOrderID),T=K2(w),C=N.useMemo(()=>t.all.filter(b=>d==null?void 0:d.includes(b.id)),[t,d]),_=N.useCallback(()=>c({orderIdsToCancel:t.open.map(b=>b.id)}),[c,t]),z=N.useCallback(b=>a({orders:[b]}).then(x=>(x==null?void 0:x[0])||""),[a]);return{refetch:n,onHideSelectedOrder:h,onCancelOrders:y,onCancelOrder:z,onSelectStatus:g,onToggleCancelOrdersMode:f,onSelectOrder:v,isRefetching:s,orders:t,ordersToDisplay:i,isLoading:r,selectedOrder:w?T:void 0,openOrdersCount:((S=t==null?void 0:t.open)==null?void 0:S.length)||0,isCancelOrdersLoading:o,selectedStatus:l||((m=E[0])==null?void 0:m.value)||"",statuses:E,cancelOrdersMode:u,ordersToCancel:C,onSelectAllOrdersToCancel:_}},qG=()=>{const{refetch:e}=J2();return Kr({mutationFn:async t=>{var r;for(;;){const n=(r=await e())==null?void 0:r.data;if(!n)throw new Error("orders not found");if(t.every(a=>{const o=n.find(i=>i.id===a);return(o==null?void 0:o.status)===ct.Canceled}))break;await new Promise(a=>setTimeout(a,1e3))}}})},q0=()=>{const{account:e,walletClient:t,publicClient:r,config:n,callbacks:s,chainId:a}=ne(),o=V0(),i=qG().mutateAsync,c=te(d=>d.updateState),l=async d=>{dt.onCancelOrderRequest(d.map(f=>f.id.toString()),1);try{return(await Promise.all(d.map(h=>t.writeContract({account:e,address:h.twapAddress,abi:Mh,functionName:"cancel",args:[h.id],chain:t.chain}))))[0]}catch(f){throw dt.onCancelOrderError(f),f}},u=async d=>{var f;try{dt.onCancelOrderRequest(d.map(g=>g.hash),2);const h=await t.writeContract({account:e,address:n.repermit,abi:Dh,functionName:"cancel",args:[d.map(g=>g.hash)],chain:t.chain}),y=await o(h);if(!y)throw new Error("failed to get transaction receipt");if(y.status==="reverted")throw new Error("failed to cancel order");return dt.onCancelOrderSuccess(h),(f=s==null?void 0:s.onCancelOrderSuccess)==null||f.call(s,{orders:d,txHash:h,explorerUrl:_o(h,a)}),y.transactionHash}catch(h){throw dt.onCancelOrderError(h),h}};return Kr({mutationFn:async({orders:d})=>{var f,h;if(!e||!t||!r||!n)throw new Error("missing required parameters");try{(f=s==null?void 0:s.onCancelOrderRequest)==null||f.call(s,d),c({cancelOrderStatus:pt.LOADING,cancelOrderTxHash:void 0,cancelOrderError:void 0});const y=d.filter(w=>w.version===1),g=d.filter(w=>w.version===2),[E,v]=await Promise.all([y.length?l(y):Promise.resolve(""),g.length?u(g):Promise.resolve("")]);return await i(d.map(w=>w.id)),c({cancelOrderStatus:pt.SUCCESS,orderIdsToCancel:[]}),[...E||[],v]}catch(y){console.error("cancel order error",y),(h=s==null?void 0:s.onCancelOrderFailed)==null||h.call(s,y),Pd(y)?c({cancelOrderStatus:void 0}):(c({cancelOrderStatus:pt.FAILED}),dt.onCancelOrderError(y))}}})},rx=N.createContext({}),Rt=()=>N.useContext(rx),YG=()=>{const e=te(c=>c.state.selectedOrderID),t=K2(e),r=Me(),[n,s]=N.useState("panel1"),{components:a}=ne(),o=a.TokenLogo;N.useEffect(()=>{s("panel1")},[t.id.value]);const i=c=>{s(n===c?!1:c)};return t?B.jsx(rx.Provider,{value:{order:t},children:B.jsxs("div",{className:"twap-orders__selected-order",children:[B.jsx(c1,{SrcTokenLogo:o&&B.jsx(o,{token:t.srcToken}),DstTokenLogo:o&&B.jsx(o,{token:t.dstToken}),fromTitle:r("from"),inToken:t.srcToken,toTitle:r("to"),outToken:t.dstToken}),B.jsx(Ee.Container,{children:B.jsxs("div",{className:"twap-orders__selected-order-bottom",children:[B.jsxs("div",{className:"twap-orders__selected-order-accordions",children:[B.jsx(nx,{title:r("excecutionSummary"),onClick:()=>i("panel1"),expanded:n==="panel1",children:B.jsx(nj,{})}),B.jsx(nx,{title:r("orderInfo"),expanded:n==="panel2",onClick:()=>i("panel2"),children:B.jsx(KG,{})})]}),B.jsx(aj,{})]})})]})}):null},nx=({expanded:e,onClick:t,children:r,title:n})=>B.jsxs("div",{className:"twap-orders__selected-order-accordion",children:[B.jsxs("div",{onClick:t,className:"twap-orders__selected-order-accordion-trigger",children:[B.jsx("p",{children:n}),B.jsx(sz.IoIosArrowDown,{style:{transform:e?"rotate(180deg)":"rotate(0deg)"}})]}),e&&B.jsx("div",{className:"twap-orders__selected-order-accordion-details",children:r})]}),KG=()=>B.jsxs(Ee,{children:[B.jsx(rj,{}),B.jsx(oj,{}),B.jsx(JG,{}),B.jsx(ij,{}),B.jsx(ZG,{}),B.jsx(XG,{}),B.jsx(QG,{}),B.jsx(ej,{}),B.jsx(tj,{}),B.jsx(pj,{}),B.jsx(Ee.Recipient,{})]}),ZG=()=>{const{order:e}=Rt();return B.jsx(Ee.TradeSize,{tradeSize:e.sizePerTrade.value,srcToken:e.srcToken,label:e.sizePerTrade.label,tooltip:e.sizePerTrade.tooltip,trades:e.totalTrades.value})},XG=()=>{const{order:e}=Rt();return B.jsx(Ee.TradesAmount,{trades:e.totalTrades.value,label:e.totalTrades.label,tooltip:e.totalTrades.tooltip})},QG=()=>{const{order:e}=Rt();return B.jsx(Ee.MinDestAmount,{dstToken:e.dstToken,dstMinAmountOut:e.minDestAmountPerTrade.value,label:e.minDestAmountPerTrade.label,tooltip:e.minDestAmountPerTrade.tooltip})},JG=()=>{const{order:e}=Rt();return B.jsx(Ee.Deadline,{deadline:e.deadline.value,label:e.deadline.label,tooltip:e.deadline.tooltip})},ej=()=>{const{order:e}=Rt();return B.jsx(Ee.TradeInterval,{fillDelayMillis:e.tradeInterval.value,chunks:e.totalTrades.value,label:e.tradeInterval.label,tooltip:e.tradeInterval.tooltip})},tj=()=>{const{order:e}=Rt();return B.jsx(Ee.Price,{srcToken:e.srcToken,dstToken:e.dstToken,price:e.triggerPrice.value,label:e.triggerPrice.label,tooltip:e.triggerPrice.tooltip})},rj=()=>{const{order:e}=Rt();return B.jsx(Ee.OrderID,{id:e.id.value||""})},nj=()=>B.jsxs(Ee,{children:[B.jsx(uj,{}),B.jsx(cj,{}),B.jsx(sj,{}),B.jsx(dj,{}),B.jsx(fj,{})]}),sj=()=>{var r;const{order:e}=Rt(),t=je({value:e.amountOutFilled.value,decimalScale:3});return e.amountOutFilled.value?B.jsx(Ee.DetailRow,{title:e.amountOutFilled.label,children:B.jsxs("p",{children:[t||"-"," ",(r=e.dstToken)==null?void 0:r.symbol]})}):null},aj=()=>{const{order:e}=Rt(),t=Me(),{mutateAsync:r,isPending:n}=q0(),{components:s}=ne(),a=s.Button,o=N.useCallback(async()=>r({orders:[e.original]}),[r,e]);return!e||e.original.status!==ct.Open||!a?null:B.jsx(a,{loading:n,onClick:o,disabled:n,className:"twap-cancel-order",text:t("cancelOrder"),children:t("cancelOrder")})},oj=()=>{const{order:e}=Rt(),t=Me(),r=j0(e.createdAt.value);return B.jsx(Ee.DetailRow,{title:t("createdAt")||"",children:B.jsx("p",{children:r})})},ij=()=>{var n;const{order:e}=Rt(),t=Me(),r=je({value:e.srcAmount.value,decimalScale:3});return B.jsx(Ee.DetailRow,{title:t("amountOut")||"",children:B.jsxs("p",{children:[r||0," ",(n=e.srcToken)==null?void 0:n.symbol]})})},cj=()=>{var r;const{order:e}=Rt(),t=je({value:e.amountInFilled.value,decimalScale:3});return B.jsx(Ee.DetailRow,{title:e.amountInFilled.label,children:B.jsxs("p",{children:[t||"-"," ",(r=e.srcToken)==null?void 0:r.symbol]})})},lj=()=>{const{order:e}=Rt(),t=Me();return N.useMemo(()=>{switch(e.original.status){case ct.Open:return t("Open")||"";case ct.Completed:return t("Completed")||"";case ct.Expired:return t("Expired")||"";case ct.Canceled:return t("Canceled")||""}},[e.original.status,t])},uj=()=>{const e=Me(),t=lj();return B.jsx(Ee.DetailRow,{title:e("status")||"",children:B.jsx("p",{children:t})})},dj=()=>{const{order:e}=Rt(),t=je({value:e.progress.value,decimalScale:2});return B.jsx(Ee.DetailRow,{title:e.progress.label,children:B.jsxs("p",{children:[t||0,"%"]})})},pj=()=>{const{order:e}=Rt(),t=Me();return e.limitPrice.value?B.jsx(Ee.Price,{label:t("limitPrice")||"",price:e.limitPrice.value,srcToken:e.srcToken,dstToken:e.dstToken,tooltip:e.limitPrice.tooltip}):null},fj=()=>{const{order:e}=Rt();return e.excecutionPrice.value?B.jsx(Ee.Price,{label:e.excecutionPrice.label,price:e.excecutionPrice.value,srcToken:e.srcToken,dstToken:e.dstToken}):null};var Y0={},sx;function hj(){if(sx)return Y0;sx=1;var e=lu.GenIcon;return Y0.HiArrowRight=function(r){return e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(r)},Y0}var mj=hj();const Du=0,hs=1,ho=2,ax=4;function ox(e){return()=>e}function bj(e){e()}function ix(e,t){return r=>e(t(r))}function cx(e,t){return()=>e(t)}function yj(e,t){return r=>e(t,r)}function K0(e){return e!==void 0}function gj(...e){return()=>{e.map(bj)}}function mo(){}function Mu(e,t){return t(e),e}function xj(e,t){return t(e)}function tt(...e){return e}function Ve(e,t){return e(hs,t)}function Ce(e,t){e(Du,t)}function Z0(e){e(ho)}function at(e){return e(ax)}function ce(e,t){return Ve(e,yj(t,Du))}function Vr(e,t){const r=e(hs,n=>{r(),t(n)});return r}function lx(e){let t,r;return n=>s=>{t=s,r&&clearTimeout(r),r=setTimeout(()=>{n(t)},e)}}function ux(e,t){return e===t}function rt(e=ux){let t;return r=>n=>{e(t,n)||(t=n,r(n))}}function fe(e){return t=>r=>{e(r)&&t(r)}}function re(e){return t=>ix(t,e)}function cn(e){return t=>()=>{t(e)}}function W(e,...t){const r=wj(...t);return(n,s)=>{switch(n){case ho:Z0(e);return;case hs:return Ve(e,r(s))}}}function ln(e,t){return r=>n=>{r(t=e(t,n))}}function aa(e){return t=>r=>{e>0?e--:t(r)}}function $n(e){let t=null,r;return n=>s=>{t=s,!r&&(r=setTimeout(()=>{r=void 0,n(t)},e))}}function Te(...e){const t=new Array(e.length);let r=0,n=null;const s=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const i=Math.pow(2,o);Ve(a,c=>{const l=r;r=r|i,t[o]=c,l!==s&&r===s&&n&&(n(),n=null)})}),a=>o=>{const i=()=>{a([o].concat(t))};r===s?i():n=i}}function wj(...e){return t=>e.reduceRight(xj,t)}function vj(e){let t,r;const n=()=>t==null?void 0:t();return function(s,a){switch(s){case hs:return a?r===a?void 0:(n(),r=a,t=Ve(e,a),t):(n(),mo);case ho:n(),r=null;return}}}function K(e){let t=e;const r=Ue();return(n,s)=>{switch(n){case Du:t=s;break;case hs:{s(t);break}case ax:return t}return r(n,s)}}function Ht(e,t){return Mu(K(t),r=>ce(e,r))}function Ue(){const e=[];return(t,r)=>{switch(t){case Du:e.slice().forEach(n=>{n(r)});return;case ho:e.splice(0,e.length);return;case hs:return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}}}function mr(e){return Mu(Ue(),t=>ce(e,t))}function He(e,t=[],{singleton:r}={singleton:!0}){return{constructor:e,dependencies:t,id:Ej(),singleton:r}}const Ej=()=>Symbol();function kj(e){const t=new Map,r=({constructor:n,dependencies:s,id:a,singleton:o})=>{if(o&&t.has(a))return t.get(a);const i=n(s.map(c=>r(c)));return o&&t.set(a,i),i};return r(e)}function Et(...e){const t=Ue(),r=new Array(e.length);let n=0;const s=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const i=Math.pow(2,o);Ve(a,c=>{r[o]=c,n=n|i,n===s&&Ce(t,r)})}),function(a,o){switch(a){case ho:{Z0(t);return}case hs:return n===s&&o(r),Ve(t,o)}}}function he(e,t=ux){return W(e,rt(t))}function X0(...e){return function(t,r){switch(t){case ho:return;case hs:return gj(...e.map(n=>Ve(n,r)))}}}var nr=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(nr||{});const Cj={0:"debug",3:"error",1:"log",2:"warn"},Tj=()=>typeof globalThis>"u"?window:globalThis,ms=He(()=>{const e=K(3);return{log:K((t,r,n=1)=>{var s;const a=(s=Tj().VIRTUOSO_LOG_LEVEL)!=null?s:at(e);n>=a&&console[Cj[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,r)}),logLevel:e}},[],{singleton:!0});function oa(e,t,r){return Q0(e,t,r).callbackRef}function Q0(e,t,r){const n=N.useRef(null);let s=o=>{};const a=N.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(o=>{const i=()=>{const c=o[0].target;c.offsetParent!==null&&e(c)};r?i():requestAnimationFrame(i)}):null,[e,r]);return s=o=>{o&&t?(a==null||a.observe(o),n.current=o):(n.current&&(a==null||a.unobserve(n.current)),n.current=null)},{callbackRef:s,ref:n}}function Sj(e,t,r,n,s,a,o,i,c){const l=N.useCallback(u=>{const d=Aj(u.children,t,i?"offsetWidth":"offsetHeight",s);let f=u.parentElement;for(;!f.dataset.virtuosoScroller;)f=f.parentElement;const h=f.lastElementChild.dataset.viewportType==="window";let y;h&&(y=f.ownerDocument.defaultView);const g=o?i?o.scrollLeft:o.scrollTop:h?i?y.scrollX||y.document.documentElement.scrollLeft:y.scrollY||y.document.documentElement.scrollTop:i?f.scrollLeft:f.scrollTop,E=o?i?o.scrollWidth:o.scrollHeight:h?i?y.document.documentElement.scrollWidth:y.document.documentElement.scrollHeight:i?f.scrollWidth:f.scrollHeight,v=o?i?o.offsetWidth:o.offsetHeight:h?i?y.innerWidth:y.innerHeight:i?f.offsetWidth:f.offsetHeight;n({scrollHeight:E,scrollTop:Math.max(g,0),viewportHeight:v}),a==null||a(i?dx("column-gap",getComputedStyle(u).columnGap,s):dx("row-gap",getComputedStyle(u).rowGap,s)),d!==null&&e(d)},[e,t,s,a,o,n,i]);return Q0(l,r,c)}function Aj(e,t,r,n){const s=e.length;if(s===0)return null;const a=[];for(let o=0;o<s;o++){const i=e.item(o);if(i.dataset.index===void 0)continue;const c=parseInt(i.dataset.index),l=parseFloat(i.dataset.knownSize),u=t(i,r);if(u===0&&n("Zero-sized element, this should not happen",{child:i},nr.ERROR),u===l)continue;const d=a[a.length-1];a.length===0||d.size!==u||d.endIndex!==c-1?a.push({endIndex:c,size:u,startIndex:c}):a[a.length-1].endIndex++}return a}function dx(e,t,r){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&r(`${e} was not resolved to pixel value correctly`,t,nr.WARN),t==="normal"?0:parseInt(t??"0",10)}function px(e,t,r){const n=N.useRef(null),s=N.useCallback(c=>{if(!(c!=null&&c.offsetParent))return;const l=c.getBoundingClientRect(),u=l.width;let d,f;if(t){const h=t.getBoundingClientRect(),y=l.top-h.top;f=h.height-Math.max(0,y),d=y+t.scrollTop}else{const h=o.current.ownerDocument.defaultView;f=h.innerHeight-Math.max(0,l.top),d=l.top+h.scrollY}n.current={offsetTop:d,visibleHeight:f,visibleWidth:u},e(n.current)},[e,t]),{callbackRef:a,ref:o}=Q0(s,!0,r),i=N.useCallback(()=>{s(o.current)},[s,o]);return N.useEffect(()=>{var c;if(t){t.addEventListener("scroll",i);const l=new ResizeObserver(()=>{requestAnimationFrame(i)});return l.observe(t),()=>{t.removeEventListener("scroll",i),l.unobserve(t)}}else{const l=(c=o.current)==null?void 0:c.ownerDocument.defaultView;return l==null||l.addEventListener("scroll",i),l==null||l.addEventListener("resize",i),()=>{l==null||l.removeEventListener("scroll",i),l==null||l.removeEventListener("resize",i)}}},[i,t,o]),a}const Wt=He(()=>{const e=Ue(),t=Ue(),r=K(0),n=Ue(),s=K(0),a=Ue(),o=Ue(),i=K(0),c=K(0),l=K(0),u=K(0),d=Ue(),f=Ue(),h=K(!1),y=K(!1),g=K(!1);return ce(W(e,re(({scrollTop:E})=>E)),t),ce(W(e,re(({scrollHeight:E})=>E)),o),ce(t,s),{deviation:r,fixedFooterHeight:l,fixedHeaderHeight:c,footerHeight:u,headerHeight:i,horizontalDirection:y,scrollBy:f,scrollContainerState:e,scrollHeight:o,scrollingInProgress:h,scrollTo:d,scrollTop:t,skipAnimationFrameInResizeObserver:g,smoothScrollTargetReached:n,statefulScrollTop:s,viewportHeight:a}},[],{singleton:!0}),ac={lvl:0};function fx(e,t){const r=e.length;if(r===0)return[];let{index:n,value:s}=t(e[0]);const a=[];for(let o=1;o<r;o++){const{index:i,value:c}=t(e[o]);a.push({end:i-1,start:n,value:s}),n=i,s=c}return a.push({end:1/0,start:n,value:s}),a}function Ye(e){return e===ac}function oc(e,t){if(!Ye(e))return t===e.k?e.v:t<e.k?oc(e.l,t):oc(e.r,t)}function Wr(e,t,r="k"){if(Ye(e))return[-1/0,void 0];if(Number(e[r])===t)return[e.k,e.v];if(Number(e[r])<t){const n=Wr(e.r,t,r);return n[0]===-1/0?[e.k,e.v]:n}return Wr(e.l,t,r)}function br(e,t,r){return Ye(e)?bx(t,r,1):t===e.k?St(e,{k:t,v:r}):t<e.k?yx(St(e,{l:br(e.l,t,r)})):yx(St(e,{r:br(e.r,t,r)}))}function bo(){return ac}function yo(e,t,r){if(Ye(e))return[];const n=Wr(e,t)[0];return Pj(eh(e,n,r))}function J0(e,t){if(Ye(e))return ac;const{k:r,l:n,r:s}=e;if(t===r){if(Ye(n))return s;if(Ye(s))return n;{const[a,o]=mx(n);return Nu(St(e,{k:a,l:hx(n),v:o}))}}else return t<r?Nu(St(e,{l:J0(n,t)})):Nu(St(e,{r:J0(s,t)}))}function ia(e){return Ye(e)?[]:[...ia(e.l),{k:e.k,v:e.v},...ia(e.r)]}function eh(e,t,r){if(Ye(e))return[];const{k:n,l:s,r:a,v:o}=e;let i=[];return n>t&&(i=i.concat(eh(s,t,r))),n>=t&&n<=r&&i.push({k:n,v:o}),n<=r&&(i=i.concat(eh(a,t,r))),i}function Nu(e){const{l:t,lvl:r,r:n}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(th(t))return gx(St(e,{lvl:r-1}));if(!Ye(t)&&!Ye(t.r))return St(t.r,{l:St(t,{r:t.r.l}),lvl:r,r:St(e,{l:t.r.r,lvl:r-1})});throw new Error("Unexpected empty nodes")}else{if(th(e))return rh(St(e,{lvl:r-1}));if(!Ye(n)&&!Ye(n.l)){const s=n.l,a=th(s)?n.lvl-1:n.lvl;return St(s,{l:St(e,{lvl:r-1,r:s.l}),lvl:s.lvl+1,r:rh(St(n,{l:s.r,lvl:a}))})}else throw new Error("Unexpected empty nodes")}}function St(e,t){return bx(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function hx(e){return Ye(e.r)?e.l:Nu(St(e,{r:hx(e.r)}))}function th(e){return Ye(e)||e.lvl>e.r.lvl}function mx(e){return Ye(e.r)?[e.k,e.v]:mx(e.r)}function bx(e,t,r,n=ac,s=ac){return{k:e,l:n,lvl:r,r:s,v:t}}function yx(e){return rh(gx(e))}function gx(e){const{l:t}=e;return!Ye(t)&&t.lvl===e.lvl?St(t,{r:St(e,{l:t.r})}):e}function rh(e){const{lvl:t,r}=e;return!Ye(r)&&!Ye(r.r)&&r.lvl===t&&r.r.lvl===t?St(r,{l:St(e,{r:r.l}),lvl:t+1}):e}function Pj(e){return fx(e,({k:t,v:r})=>({index:t,value:r}))}function xx(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function ic(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}const nh=He(()=>({recalcInProgress:K(!1)}),[],{singleton:!0});function wx(e,t,r){return e[Lu(e,t,r)]}function Lu(e,t,r,n=0){let s=e.length-1;for(;n<=s;){const a=Math.floor((n+s)/2),o=e[a],i=r(o,t);if(i===0)return a;if(i===-1){if(s-n<2)return a-1;s=a-1}else{if(s===n)return a;n=a+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function Ij(e,t,r,n){const s=Lu(e,t,n),a=Lu(e,r,n,s);return e.slice(s,a+1)}function bs(e,t){return Math.round(e.getBoundingClientRect()[t])}function zu(e){return!Ye(e.groupOffsetTree)}function sh({index:e},t){return t===e?0:t<e?-1:1}function Bj(){return{groupIndices:[],groupOffsetTree:bo(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:bo()}}function Fj(e,t){let r=Ye(e)?0:1/0;for(const n of t){const{endIndex:s,size:a,startIndex:o}=n;if(r=Math.min(r,o),Ye(e)){e=br(e,0,a);continue}const i=yo(e,o-1,s+1);if(i.some(Lj(n)))continue;let c=!1,l=!1;for(const{end:u,start:d,value:f}of i)c?(s>=d||a===f)&&(e=J0(e,d)):(l=f!==a,c=!0),u>s&&s>=d&&f!==a&&(e=br(e,s+1,f));l&&(e=br(e,o,a))}return[e,r]}function Uj(e){return typeof e.groupIndex<"u"}function Oj({offset:e},t){return t===e?0:t<e?-1:1}function cc(e,t,r){if(t.length===0)return 0;const{index:n,offset:s,size:a}=wx(t,e,sh),o=e-n,i=a*o+(o-1)*r+s;return i>0?i+r:i}function vx(e,t){if(!zu(t))return e;let r=0;for(;t.groupIndices[r]<=e+r;)r++;return e+r}function Ex(e,t,r){if(Uj(e))return t.groupIndices[e.groupIndex]+1;{const n=e.index==="LAST"?r:e.index;let s=vx(n,t);return s=Math.max(0,s,Math.min(r,s)),s}}function _j(e,t,r,n=0){return n>0&&(t=Math.max(t,wx(e,n,sh).offset)),fx(Ij(e,t,r,Oj),Nj)}function Dj(e,[t,r,n,s]){t.length>0&&n("received item sizes",t,nr.DEBUG);const a=e.sizeTree;let o=a,i=0;if(r.length>0&&Ye(a)&&t.length===2){const f=t[0].size,h=t[1].size;o=r.reduce((y,g)=>br(br(y,g,f),g+1,h),o)}else[o,i]=Fj(o,t);if(o===a)return e;const{lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d}=ah(e.offsetTree,i,o,s);return{groupIndices:r,groupOffsetTree:r.reduce((f,h)=>br(f,h,cc(h,d,s)),bo()),lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d,sizeTree:o}}function Mj(e){return ia(e).map(({k:t,v:r},n,s)=>{const a=s[n+1];return{endIndex:a?a.k-1:1/0,size:r,startIndex:t}})}function kx(e,t){let r=0,n=0;for(;r<e;)r+=t[n+1]-t[n]-1,n++;return n-(r===e?0:1)}function ah(e,t,r,n){let s=e,a=0,o=0,i=0,c=0;if(t!==0){c=Lu(s,t-1,sh),i=s[c].offset;const l=Wr(r,t-1);a=l[0],o=l[1],s.length&&s[c].size===Wr(r,t)[1]&&(c-=1),s=s.slice(0,c+1)}else s=[];for(const{start:l,value:u}of yo(r,t,1/0)){const d=l-a,f=d*o+i+d*n;s.push({index:l,offset:f,size:u}),a=l,i=f,o=u}return{lastIndex:a,lastOffset:i,lastSize:o,offsetTree:s}}function Nj(e){return{index:e.index,value:e}}function Lj(e){const{endIndex:t,size:r,startIndex:n}=e;return s=>s.start===n&&(s.end===t||s.end===1/0)&&s.value===r}const zj={offsetHeight:"height",offsetWidth:"width"},un=He(([{log:e},{recalcInProgress:t}])=>{const r=Ue(),n=Ue(),s=Ht(n,0),a=Ue(),o=Ue(),i=K(0),c=K([]),l=K(void 0),u=K(void 0),d=K(void 0),f=K(void 0),h=K((S,m)=>bs(S,zj[m])),y=K(void 0),g=K(0),E=Bj(),v=Ht(W(r,Te(c,e,g),ln(Dj,E),rt()),E),w=Ht(W(c,rt(),ln((S,m)=>({current:m,prev:S.current}),{current:[],prev:[]}),re(({prev:S})=>S)),[]);ce(W(c,fe(S=>S.length>0),Te(v,g),re(([S,m,b])=>{const x=S.reduce((A,I,F)=>br(A,I,cc(I,m.offsetTree,b)||F),bo());return{...m,groupIndices:S,groupOffsetTree:x}})),v),ce(W(n,Te(v),fe(([S,{lastIndex:m}])=>S<m),re(([S,{lastIndex:m,lastSize:b}])=>[{endIndex:m,size:b,startIndex:S}])),r),ce(l,u);const T=Ht(W(l,re(S=>S===void 0)),!0);ce(W(u,fe(S=>S!==void 0&&Ye(at(v).sizeTree)),re(S=>{const m=at(d),b=at(c).length>0;return m?b?[{endIndex:0,size:m,startIndex:0},{endIndex:1,size:S,startIndex:1}]:[]:[{endIndex:0,size:S,startIndex:0}]})),r),ce(W(f,fe(S=>S!==void 0&&S.length>0&&Ye(at(v).sizeTree)),re(S=>{const m=[];let b=S[0],x=0;for(let A=1;A<S.length;A++){const I=S[A];I!==b&&(m.push({endIndex:A-1,size:b,startIndex:x}),b=I,x=A)}return m.push({endIndex:S.length-1,size:b,startIndex:x}),m})),r),ce(W(c,Te(d,u),fe(([,S,m])=>S!==void 0&&m!==void 0),re(([S,m,b])=>{const x=[];for(let A=0;A<S.length;A++){const I=S[A],F=S[A+1];x.push({startIndex:I,endIndex:I,size:m}),F!==void 0&&x.push({startIndex:I+1,endIndex:F-1,size:b})}return x})),r);const C=mr(W(r,Te(v),ln(({sizes:S},[m,b])=>({changed:b!==S,sizes:b}),{changed:!1,sizes:E}),re(S=>S.changed)));Ve(W(i,ln((S,m)=>({diff:S.prev-m,prev:m}),{diff:0,prev:0}),re(S=>S.diff)),S=>{const{groupIndices:m}=at(v);if(S>0)Ce(t,!0),Ce(a,S+kx(S,m));else if(S<0){const b=at(w);b.length>0&&(S-=kx(-S,b)),Ce(o,S)}}),Ve(W(i,Te(e)),([S,m])=>{S<0&&m("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:i},nr.ERROR)});const _=mr(a);ce(W(a,Te(v),re(([S,m])=>{const b=m.groupIndices.length>0,x=[],A=m.lastSize;if(b){const I=oc(m.sizeTree,0);let F=0,D=0;for(;F<S;){const P=m.groupIndices[D],O=m.groupIndices.length===D+1?1/0:m.groupIndices[D+1]-P-1;x.push({endIndex:P,size:I,startIndex:P}),x.push({endIndex:P+1+O-1,size:A,startIndex:P+1}),D++,F+=O+1}const k=ia(m.sizeTree);return F!==S&&k.shift(),k.reduce((P,{k:O,v:U})=>{let L=P.ranges;return P.prevSize!==0&&(L=[...P.ranges,{endIndex:O+S-1,size:P.prevSize,startIndex:P.prevIndex}]),{prevIndex:O+S,prevSize:U,ranges:L}},{prevIndex:S,prevSize:0,ranges:x}).ranges}return ia(m.sizeTree).reduce((I,{k:F,v:D})=>({prevIndex:F+S,prevSize:D,ranges:[...I.ranges,{endIndex:F+S-1,size:I.prevSize,startIndex:I.prevIndex}]}),{prevIndex:0,prevSize:A,ranges:[]}).ranges})),r);const z=mr(W(o,Te(v,g),re(([S,{offsetTree:m},b])=>{const x=-S;return cc(x,m,b)})));return ce(W(o,Te(v,g),re(([S,m,b])=>{if(m.groupIndices.length>0){if(Ye(m.sizeTree))return m;let x=bo();const A=at(w);let I=0,F=0,D=0;for(;I<-S;){D=A[F];const k=A[F+1]-D-1;F++,I+=k+1}if(x=ia(m.sizeTree).reduce((k,{k:P,v:O})=>br(k,Math.max(0,P+S),O),x),I!==-S){const k=oc(m.sizeTree,D);x=br(x,0,k);const P=Wr(m.sizeTree,-S+1)[1];x=br(x,1,P)}return{...m,sizeTree:x,...ah(m.offsetTree,0,x,b)}}else{const x=ia(m.sizeTree).reduce((A,{k:I,v:F})=>br(A,Math.max(0,I+S),F),bo());return{...m,sizeTree:x,...ah(m.offsetTree,0,x,b)}}})),v),{beforeUnshiftWith:_,data:y,defaultItemSize:u,firstItemIndex:i,fixedItemSize:l,fixedGroupSize:d,gap:g,groupIndices:c,heightEstimates:f,itemSize:h,listRefresh:C,shiftWith:o,shiftWithOffset:z,sizeRanges:r,sizes:v,statefulTotalCount:s,totalCount:n,trackItemSizes:T,unshiftWith:a}},tt(ms,nh),{singleton:!0});function Rj(e){return e.reduce((t,r)=>(t.groupIndices.push(t.totalCount),t.totalCount+=r+1,t),{groupIndices:[],totalCount:0})}const Cx=He(([{groupIndices:e,sizes:t,totalCount:r},{headerHeight:n,scrollTop:s}])=>{const a=Ue(),o=Ue(),i=mr(W(a,re(Rj)));return ce(W(i,re(c=>c.totalCount)),r),ce(W(i,re(c=>c.groupIndices)),e),ce(W(Et(s,t,n),fe(([c,l])=>zu(l)),re(([c,l,u])=>Wr(l.groupOffsetTree,Math.max(c-u,0),"v")[0]),rt(),re(c=>[c])),o),{groupCounts:a,topItemsIndexes:o}},tt(un,Wt)),ys=He(([{log:e}])=>{const t=K(!1),r=mr(W(t,fe(n=>n),rt()));return Ve(t,n=>{n&&at(e)("props updated",{},nr.DEBUG)}),{didMount:r,propsReady:t}},tt(ms),{singleton:!0}),Hj=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function Tx(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!Hj)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const lc=He(([{gap:e,listRefresh:t,sizes:r,totalCount:n},{fixedFooterHeight:s,fixedHeaderHeight:a,footerHeight:o,headerHeight:i,scrollingInProgress:c,scrollTo:l,smoothScrollTargetReached:u,viewportHeight:d},{log:f}])=>{const h=Ue(),y=Ue(),g=K(0);let E=null,v=null,w=null;function T(){E&&(E(),E=null),w&&(w(),w=null),v&&(clearTimeout(v),v=null),Ce(c,!1)}return ce(W(h,Te(r,d,n,g,i,o,f),Te(e,a,s),re(([[C,_,z,S,m,b,x,A],I,F,D])=>{const k=Tx(C),{align:P,behavior:O,offset:U}=k,L=S-1,H=Ex(k,_,L);let G=cc(H,_.offsetTree,I)+b;P==="end"?(G+=F+Wr(_.sizeTree,H)[1]-z+D,H===L&&(G+=x)):P==="center"?G+=(F+Wr(_.sizeTree,H)[1]-z+D)/2:G-=m,U&&(G+=U);const Q=pe=>{T(),pe?(A("retrying to scroll to",{location:C},nr.DEBUG),Ce(h,C)):(Ce(y,!0),A("list did not change, scroll successful",{},nr.DEBUG))};if(T(),O==="smooth"){let pe=!1;w=Ve(t,me=>{pe=pe||me}),E=Vr(u,()=>{Q(pe)})}else E=Vr(W(t,$j(150)),Q);return v=setTimeout(()=>{T()},1200),Ce(c,!0),A("scrolling from index to",{behavior:O,index:H,top:G},nr.DEBUG),{behavior:O,top:G}})),l),{scrollTargetReached:y,scrollToIndex:h,topListHeight:g}},tt(un,Wt,ms),{singleton:!0});function $j(e){return t=>{const r=setTimeout(()=>{t(!1)},e);return n=>{n&&(t(!0),clearTimeout(r))}}}function oh(e,t){e==0?t():requestAnimationFrame(()=>{oh(e-1,t)})}function ih(e,t){const r=t-1;return typeof e=="number"?e:e.index==="LAST"?r:e.index}const uc=He(([{defaultItemSize:e,listRefresh:t,sizes:r},{scrollTop:n},{scrollTargetReached:s,scrollToIndex:a},{didMount:o}])=>{const i=K(!0),c=K(0),l=K(!0);return ce(W(o,Te(c),fe(([u,d])=>!!d),cn(!1)),i),ce(W(o,Te(c),fe(([u,d])=>!!d),cn(!1)),l),Ve(W(Et(t,o),Te(i,r,e,l),fe(([[,u],d,{sizeTree:f},h,y])=>u&&(!Ye(f)||K0(h))&&!d&&!y),Te(c)),([,u])=>{Vr(s,()=>{Ce(l,!0)}),oh(4,()=>{Vr(n,()=>{Ce(i,!0)}),Ce(a,u)})}),{initialItemFinalLocationReached:l,initialTopMostItemIndex:c,scrolledToInitialItem:i}},tt(un,Wt,lc,ys),{singleton:!0});function Sx(e,t){return Math.abs(e-t)<1.01}const dc="up",pc="down",Gj="none",jj={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},Vj=0,fc=He(([{footerHeight:e,headerHeight:t,scrollBy:r,scrollContainerState:n,scrollTop:s,viewportHeight:a}])=>{const o=K(!1),i=K(!0),c=Ue(),l=Ue(),u=K(4),d=K(Vj),f=Ht(W(X0(W(he(s),aa(1),cn(!0)),W(he(s),aa(1),cn(!1),lx(100))),rt()),!1),h=Ht(W(X0(W(r,cn(!0)),W(r,cn(!1),lx(200))),rt()),!1);ce(W(Et(he(s),he(d)),re(([w,T])=>w<=T),rt()),i),ce(W(i,$n(50)),l);const y=mr(W(Et(n,he(a),he(t),he(e),he(u)),ln((w,[{scrollHeight:T,scrollTop:C},_,z,S,m])=>{const b=C+_-T>-m,x={scrollHeight:T,scrollTop:C,viewportHeight:_};if(b){let I,F;return C>w.state.scrollTop?(I="SCROLLED_DOWN",F=w.state.scrollTop-C):(I="SIZE_DECREASED",F=w.state.scrollTop-C||w.scrollTopDelta),{atBottom:!0,atBottomBecause:I,scrollTopDelta:F,state:x}}let A;return x.scrollHeight>w.state.scrollHeight?A="SIZE_INCREASED":_<w.state.viewportHeight?A="VIEWPORT_HEIGHT_DECREASING":C<w.state.scrollTop?A="SCROLLING_UPWARDS":A="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:A,state:x}},jj),rt((w,T)=>w&&w.atBottom===T.atBottom))),g=Ht(W(n,ln((w,{scrollHeight:T,scrollTop:C,viewportHeight:_})=>{if(Sx(w.scrollHeight,T))return{changed:!1,jump:0,scrollHeight:T,scrollTop:C};{const z=T-(C+_)<1;return w.scrollTop!==C&&z?{changed:!0,jump:w.scrollTop-C,scrollHeight:T,scrollTop:C}:{changed:!0,jump:0,scrollHeight:T,scrollTop:C}}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),fe(w=>w.changed),re(w=>w.jump)),0);ce(W(y,re(w=>w.atBottom)),o),ce(W(o,$n(50)),c);const E=K(pc);ce(W(n,re(({scrollTop:w})=>w),rt(),ln((w,T)=>at(h)?{direction:w.direction,prevScrollTop:T}:{direction:T<w.prevScrollTop?dc:pc,prevScrollTop:T},{direction:pc,prevScrollTop:0}),re(w=>w.direction)),E),ce(W(n,$n(50),cn(Gj)),E);const v=K(0);return ce(W(f,fe(w=>!w),cn(0)),v),ce(W(s,$n(100),Te(f),fe(([w,T])=>!!T),ln(([w,T],[C])=>[T,C],[0,0]),re(([w,T])=>T-w)),v),{atBottomState:y,atBottomStateChange:c,atBottomThreshold:u,atTopStateChange:l,atTopThreshold:d,isAtBottom:o,isAtTop:i,isScrolling:f,lastJumpDueToItemResize:g,scrollDirection:E,scrollVelocity:v}},tt(Wt)),hc="top",mc="bottom",Ax="none";function Px(e,t,r){return typeof e=="number"?r===dc&&t===hc||r===pc&&t===mc?e:0:r===dc?t===hc?e.main:e.reverse:t===mc?e.main:e.reverse}function Ix(e,t){var r;return typeof e=="number"?e:(r=e[t])!=null?r:0}const ch=He(([{deviation:e,fixedHeaderHeight:t,headerHeight:r,scrollTop:n,viewportHeight:s}])=>{const a=Ue(),o=K(0),i=K(0),c=K(0),l=Ht(W(Et(he(n),he(s),he(r),he(a,ic),he(c),he(o),he(t),he(e),he(i)),re(([u,d,f,[h,y],g,E,v,w,T])=>{const C=u-w,_=E+v,z=Math.max(f-C,0);let S=Ax;const m=Ix(T,hc),b=Ix(T,mc);return h-=w,h+=f+v,y+=f+v,y-=w,h>u+_-m&&(S=dc),y<u-z+d+b&&(S=pc),S!==Ax?[Math.max(C-f-Px(g,hc,S)-m,0),C-z-v+d+Px(g,mc,S)+b]:null}),fe(u=>u!=null),rt(ic)),[0,0]);return{increaseViewportBy:i,listBoundary:a,overscan:c,topListHeight:o,visibleRange:l}},tt(Wt),{singleton:!0});function Wj(e,t,r){if(zu(t)){const n=vx(e,t);return[{index:Wr(t.groupOffsetTree,n)[0],offset:0,size:0},{data:r==null?void 0:r[0],index:n,offset:0,size:0}]}return[{data:r==null?void 0:r[0],index:e,offset:0,size:0}]}const lh={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function Ru(e,t,r,n,s,a){const{lastIndex:o,lastOffset:i,lastSize:c}=s;let l=0,u=0;if(e.length>0){l=e[0].offset;const g=e[e.length-1];u=g.offset+g.size}const d=r-o,f=i+d*c+(d-1)*n,h=l,y=f-u;return{bottom:u,firstItemIndex:a,items:Fx(e,s,a),offsetBottom:y,offsetTop:l,top:h,topItems:Fx(t,s,a),topListHeight:t.reduce((g,E)=>E.size+g,0),totalCount:r}}function Bx(e,t,r,n,s,a){let o=0;if(r.groupIndices.length>0)for(const u of r.groupIndices){if(u-o>=e)break;o++}const i=e+o,c=ih(t,i),l=Array.from({length:i}).map((u,d)=>({data:a[d+c],index:d+c,offset:0,size:0}));return Ru(l,[],i,s,r,n)}function Fx(e,t,r){if(e.length===0)return[];if(!zu(t))return e.map(l=>({...l,index:l.index+r,originalIndex:l.index}));const n=e[0].index,s=e[e.length-1].index,a=[],o=yo(t.groupOffsetTree,n,s);let i,c=0;for(const l of e){(!i||i.end<l.index)&&(i=o.shift(),c=t.groupIndices.indexOf(i.start));let u;l.index===i.start?u={index:c,type:"group"}:u={groupIndex:c,index:l.index-(c+1)+r},a.push({...u,data:l.data,offset:l.offset,originalIndex:l.index,size:l.size})}return a}function Ux(e,t){var r;return e===void 0?0:typeof e=="number"?e:(r=e[t])!=null?r:0}const ca=He(([{data:e,firstItemIndex:t,gap:r,sizes:n,totalCount:s},a,{listBoundary:o,topListHeight:i,visibleRange:c},{initialTopMostItemIndex:l,scrolledToInitialItem:u},{topListHeight:d},f,{didMount:h},{recalcInProgress:y}])=>{const g=K([]),E=K(0),v=Ue(),w=K(0);ce(a.topItemsIndexes,g);const T=Ht(W(Et(h,y,he(c,ic),he(s),he(n),he(l),u,he(g),he(t),he(r),he(w),e),fe(([S,m,,b,,,,,,,,x])=>{const A=x&&x.length!==b;return S&&!m&&!A}),re(([,,[S,m],b,x,A,I,F,D,k,P,O])=>{var U,L,H,G;const Q=x,{offsetTree:pe,sizeTree:me}=Q,ie=at(E);if(b===0)return{...lh,totalCount:b};if(S===0&&m===0)return ie===0?{...lh,totalCount:b}:Bx(ie,A,x,D,k,O||[]);if(Ye(me))return ie>0?null:Ru(Wj(ih(A,b),Q,O),[],b,k,Q,D);const de=[];if(F.length>0){const Se=F[0],ve=F[F.length-1];let be=0;for(const Xe of yo(me,Se,ve)){const Ke=Xe.value,Qe=Math.max(Xe.start,Se),Fr=Math.min(Xe.end,ve);for(let Ot=Qe;Ot<=Fr;Ot++)de.push({data:O==null?void 0:O[Ot],index:Ot,offset:be,size:Ke}),be+=Ke}}if(!I)return Ru([],de,b,k,Q,D);const Be=F.length>0?F[F.length-1]+1:0,X=_j(pe,S,m,Be);if(X.length===0)return null;const we=b-1,_e=Mu([],Se=>{for(const ve of X){const be=ve.value;let Xe=be.offset,Ke=ve.start;const Qe=be.size;if(be.offset<S){Ke+=Math.floor((S-be.offset+k)/(Qe+k));const Ot=Ke-ve.start;Xe+=Ot*Qe+Ot*k}Ke<Be&&(Xe+=(Be-Ke)*Qe,Ke=Be);const Fr=Math.min(ve.end,we);for(let Ot=Ke;Ot<=Fr&&!(Xe>=m);Ot++)Se.push({data:O==null?void 0:O[Ot],index:Ot,offset:Xe,size:Qe}),Xe+=Qe+k}}),$e=Ux(P,hc),it=Ux(P,mc);if(_e.length>0&&($e>0||it>0)){const Se=_e[0],ve=_e[_e.length-1];if($e>0&&Se.index>Be){const be=Math.min($e,Se.index-Be),Xe=[];let Ke=Se.offset;for(let Qe=Se.index-1;Qe>=Se.index-be;Qe--){const Fr=(L=(U=yo(me,Qe,Qe)[0])==null?void 0:U.value)!=null?L:Se.size;Ke-=Fr+k,Xe.unshift({data:O==null?void 0:O[Qe],index:Qe,offset:Ke,size:Fr})}_e.unshift(...Xe)}if(it>0&&ve.index<we){const be=Math.min(it,we-ve.index);let Xe=ve.offset+ve.size+k;for(let Ke=ve.index+1;Ke<=ve.index+be;Ke++){const Qe=(G=(H=yo(me,Ke,Ke)[0])==null?void 0:H.value)!=null?G:ve.size;_e.push({data:O==null?void 0:O[Ke],index:Ke,offset:Xe,size:Qe}),Xe+=Qe+k}}}return Ru(_e,de,b,k,Q,D)}),fe(S=>S!==null),rt()),lh);ce(W(e,fe(K0),re(S=>S==null?void 0:S.length)),s),ce(W(T,re(S=>S.topListHeight)),d),ce(d,i),ce(W(T,re(S=>[S.top,S.bottom])),o),ce(W(T,re(S=>S.items)),v);const C=mr(W(T,fe(({items:S})=>S.length>0),Te(s,e),fe(([{items:S},m])=>S[S.length-1].originalIndex===m-1),re(([,S,m])=>[S-1,m]),rt(ic),re(([S])=>S))),_=mr(W(T,$n(200),fe(({items:S,topItems:m})=>S.length>0&&S[0].originalIndex===m.length),re(({items:S})=>S[0].index),rt())),z=mr(W(T,fe(({items:S})=>S.length>0),re(({items:S})=>{let m=0,b=S.length-1;for(;S[m].type==="group"&&m<b;)m++;for(;S[b].type==="group"&&b>m;)b--;return{endIndex:S[b].index,startIndex:S[m].index}}),rt(xx)));return{endReached:C,initialItemCount:E,itemsRendered:v,listState:T,minOverscanItemCount:w,rangeChanged:z,startReached:_,topItemsIndexes:g,...f}},tt(un,Cx,ch,uc,lc,fc,ys,nh),{singleton:!0}),Ox=He(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:r,headerHeight:n},{listState:s}])=>{const a=Ue(),o=Ht(W(Et(r,e,n,t,s),re(([i,c,l,u,d])=>i+c+l+u+d.offsetBottom+d.bottom)),0);return ce(he(o),a),{totalListHeight:o,totalListHeightChanged:a}},tt(Wt,ca),{singleton:!0}),qj=He(([{viewportHeight:e},{totalListHeight:t}])=>{const r=K(!1),n=Ht(W(Et(r,e,t),fe(([s])=>s),re(([,s,a])=>Math.max(0,s-a)),$n(0),rt()),0);return{alignToBottom:r,paddingTopAddition:n}},tt(Wt,Ox),{singleton:!0}),_x=He(()=>({context:K(null)})),Yj=({itemBottom:e,itemTop:t,locationParams:{align:r,behavior:n,...s},viewportBottom:a,viewportTop:o})=>t<o?{...s,align:r??"start",behavior:n}:e>a?{...s,align:r??"end",behavior:n}:null,Dx=He(([{gap:e,sizes:t,totalCount:r},{fixedFooterHeight:n,fixedHeaderHeight:s,headerHeight:a,scrollingInProgress:o,scrollTop:i,viewportHeight:c},{scrollToIndex:l}])=>{const u=Ue();return ce(W(u,Te(t,c,r,a,s,n,i),Te(e),re(([[d,f,h,y,g,E,v,w],T])=>{const{align:C,behavior:_,calculateViewLocation:z=Yj,done:S,...m}=d,b=Ex(d,f,y-1),x=cc(b,f.offsetTree,T)+g+E,A=x+Wr(f.sizeTree,b)[1],I=w+E,F=w+h-v,D=z({itemBottom:A,itemTop:x,locationParams:{align:C,behavior:_,...m},viewportBottom:F,viewportTop:I});return D?S&&Vr(W(o,fe(k=>!k),aa(at(o)?1:2)),S):S&&S(),D}),fe(d=>d!==null)),l),{scrollIntoView:u}},tt(un,Wt,lc,ca,ms),{singleton:!0});function Mx(e){return e?e==="smooth"?"smooth":"auto":!1}const Kj=(e,t)=>typeof e=="function"?Mx(e(t)):t&&Mx(e),Zj=He(([{listRefresh:e,totalCount:t,fixedItemSize:r,data:n},{atBottomState:s,isAtBottom:a},{scrollToIndex:o},{scrolledToInitialItem:i},{didMount:c,propsReady:l},{log:u},{scrollingInProgress:d},{context:f},{scrollIntoView:h}])=>{const y=K(!1),g=Ue();let E=null;function v(_){Ce(o,{align:"end",behavior:_,index:"LAST"})}Ve(W(Et(W(he(t),aa(1)),c),Te(he(y),a,i,d),re(([[_,z],S,m,b,x])=>{let A=z&&b,I="auto";return A&&(I=Kj(S,m||x),A=A&&!!I),{followOutputBehavior:I,shouldFollow:A,totalCount:_}}),fe(({shouldFollow:_})=>_)),({followOutputBehavior:_,totalCount:z})=>{E&&(E(),E=null),at(r)?requestAnimationFrame(()=>{at(u)("following output to ",{totalCount:z},nr.DEBUG),v(_)}):E=Vr(e,()=>{at(u)("following output to ",{totalCount:z},nr.DEBUG),v(_),E=null})});function w(_){const z=Vr(s,S=>{_&&!S.atBottom&&S.notAtBottomBecause==="SIZE_INCREASED"&&!E&&(at(u)("scrolling to bottom due to increased size",{},nr.DEBUG),v("auto"))});setTimeout(z,100)}Ve(W(Et(he(y),t,l),fe(([_,,z])=>_&&z),ln(({value:_},[,z])=>({refreshed:_===z,value:z}),{refreshed:!1,value:0}),fe(({refreshed:_})=>_),Te(y,t)),([,_])=>{at(i)&&w(_!==!1)}),Ve(g,()=>{w(at(y)!==!1)}),Ve(Et(he(y),s),([_,z])=>{_&&!z.atBottom&&z.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&v("auto")});const T=K(null),C=Ue();return ce(X0(W(he(n),re(_=>{var z;return(z=_==null?void 0:_.length)!=null?z:0})),W(he(t))),C),Ve(W(Et(W(C,aa(1)),c),Te(he(T),i,d,f),re(([[_,z],S,m,b,x])=>z&&m&&(S==null?void 0:S({context:x,totalCount:_,scrollingInProgress:b}))),fe(_=>!!_),$n(0)),_=>{E&&(E(),E=null),at(r)?requestAnimationFrame(()=>{at(u)("scrolling into view",{}),Ce(h,_)}):E=Vr(e,()=>{at(u)("scrolling into view",{}),Ce(h,_),E=null})}),{autoscrollToBottom:g,followOutput:y,scrollIntoViewOnChange:T}},tt(un,fc,lc,uc,ys,ms,Wt,_x,Dx)),Xj=He(([{data:e,firstItemIndex:t,gap:r,sizes:n},{initialTopMostItemIndex:s},{initialItemCount:a,listState:o},{didMount:i}])=>(ce(W(i,Te(a),fe(([,c])=>c!==0),Te(s,n,t,r,e),re(([[,c],l,u,d,f,h=[]])=>Bx(c,l,u,d,f,h))),o),{}),tt(un,uc,ca,ys),{singleton:!0}),Qj=He(([{didMount:e},{scrollTo:t},{listState:r}])=>{const n=K(0);return Ve(W(e,Te(n),fe(([,s])=>s!==0),re(([,s])=>({top:s}))),s=>{Vr(W(r,aa(1),fe(a=>a.items.length>1)),()=>{requestAnimationFrame(()=>{Ce(t,s)})})}),{initialScrollTop:n}},tt(ys,Wt,ca),{singleton:!0}),Nx=He(([{scrollVelocity:e}])=>{const t=K(!1),r=Ue(),n=K(!1);return ce(W(e,Te(n,t,r),fe(([s,a])=>!!a),re(([s,a,o,i])=>{const{enter:c,exit:l}=a;if(o){if(l(s,i))return!1}else if(c(s,i))return!0;return o}),rt()),t),Ve(W(Et(t,e,r),Te(n)),([[s,a,o],i])=>{s&&i&&i.change&&i.change(a,o)}),{isSeeking:t,scrollSeekConfiguration:n,scrollSeekRangeChanged:r,scrollVelocity:e}},tt(fc),{singleton:!0}),uh=He(([{scrollContainerState:e,scrollTo:t}])=>{const r=Ue(),n=Ue(),s=Ue(),a=K(!1),o=K(void 0);return ce(W(Et(r,n),re(([{scrollHeight:i,scrollTop:c,viewportHeight:l},{offsetTop:u}])=>({scrollHeight:i,scrollTop:Math.max(0,c-u),viewportHeight:l}))),e),ce(W(t,Te(n),re(([i,{offsetTop:c}])=>({...i,top:i.top+c}))),s),{customScrollParent:o,useWindowScroll:a,windowScrollContainerState:r,windowScrollTo:s,windowViewportRect:n}},tt(Wt)),Jj=He(([{sizeRanges:e,sizes:t},{headerHeight:r,scrollTop:n},{initialTopMostItemIndex:s},{didMount:a},{useWindowScroll:o,windowScrollContainerState:i,windowViewportRect:c}])=>{const l=Ue(),u=K(void 0),d=K(null),f=K(null);return ce(i,d),ce(c,f),Ve(W(l,Te(t,n,o,d,f,r)),([h,y,g,E,v,w,T])=>{const C=Mj(y.sizeTree);E&&v!==null&&w!==null&&(g=v.scrollTop-w.offsetTop),g-=T,h({ranges:C,scrollTop:g})}),ce(W(u,fe(K0),re(eV)),s),ce(W(a,Te(u),fe(([,h])=>h!==void 0),rt(),re(([,h])=>h.ranges)),e),{getState:l,restoreStateFrom:u}},tt(un,Wt,uc,ys,uh));function eV(e){return{align:"start",index:0,offset:e.scrollTop}}const tV=He(([{topItemsIndexes:e}])=>{const t=K(0);return ce(W(t,fe(r=>r>=0),re(r=>Array.from({length:r}).map((n,s)=>s))),e),{topItemCount:t}},tt(ca));function Lx(e){let t=!1,r;return()=>(t||(t=!0,r=e()),r)}const rV=Lx(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),nV=He(([{deviation:e,scrollBy:t,scrollingInProgress:r,scrollTop:n},{isAtBottom:s,isScrolling:a,lastJumpDueToItemResize:o,scrollDirection:i},{listState:c},{beforeUnshiftWith:l,gap:u,shiftWithOffset:d,sizes:f},{log:h},{recalcInProgress:y}])=>{const g=mr(W(c,Te(o),ln(([,v,w,T],[{bottom:C,items:_,offsetBottom:z,totalCount:S},m])=>{const b=C+z;let x=0;return w===S&&v.length>0&&_.length>0&&(_[0].originalIndex===0&&v[0].originalIndex===0||(x=b-T,x!==0&&(x+=m))),[x,_,S,b]},[0,[],0,0]),fe(([v])=>v!==0),Te(n,i,r,s,h,y),fe(([,v,w,T,,,C])=>!C&&!T&&v!==0&&w===dc),re(([[v],,,,,w])=>(w("Upward scrolling compensation",{amount:v},nr.DEBUG),v))));function E(v){v>0?(Ce(t,{behavior:"auto",top:-v}),Ce(e,0)):(Ce(e,0),Ce(t,{behavior:"auto",top:-v}))}return Ve(W(g,Te(e,a)),([v,w,T])=>{T&&rV()?Ce(e,w-v):E(-v)}),Ve(W(Et(Ht(a,!1),e,y),fe(([v,w,T])=>!v&&!T&&w!==0),re(([v,w])=>w),$n(1)),E),ce(W(d,re(v=>({top:-v}))),t),Ve(W(l,Te(f,u),re(([v,{groupIndices:w,lastSize:T,sizeTree:C},_])=>{function z(S){return S*(T+_)}if(w.length===0)return z(v);{let S=0;const m=oc(C,0);let b=0,x=0;for(;b<v;){b++,S+=m;let A=w.length===x+1?1/0:w[x+1]-w[x]-1;b+A>v&&(S-=m,A=v-b+1),b+=A,S+=z(A),x++}return S}})),v=>{Ce(e,v),requestAnimationFrame(()=>{Ce(t,{top:v}),requestAnimationFrame(()=>{Ce(e,0),Ce(y,!1)})})}),{deviation:e}},tt(Wt,fc,ca,un,ms,nh)),sV=He(([e,t,r,n,s,a,o,i,c,l,u])=>({...e,...t,...r,...n,...s,...a,...o,...i,...c,...l,...u}),tt(ch,Xj,ys,Nx,Ox,Qj,qj,uh,Dx,ms,_x)),zx=He(([{data:e,defaultItemSize:t,firstItemIndex:r,fixedItemSize:n,fixedGroupSize:s,gap:a,groupIndices:o,heightEstimates:i,itemSize:c,sizeRanges:l,sizes:u,statefulTotalCount:d,totalCount:f,trackItemSizes:h},{initialItemFinalLocationReached:y,initialTopMostItemIndex:g,scrolledToInitialItem:E},v,w,T,C,{scrollToIndex:_},z,{topItemCount:S},{groupCounts:m},b])=>{const{listState:x,minOverscanItemCount:A,topItemsIndexes:I,rangeChanged:F,...D}=C;return ce(F,b.scrollSeekRangeChanged),ce(W(b.windowViewportRect,re(k=>k.visibleHeight)),v.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:r,fixedItemHeight:n,fixedGroupHeight:s,gap:a,groupCounts:m,heightEstimates:i,initialItemFinalLocationReached:y,initialTopMostItemIndex:g,scrolledToInitialItem:E,sizeRanges:l,topItemCount:S,topItemsIndexes:I,totalCount:f,...T,groupIndices:o,itemSize:c,listState:x,minOverscanItemCount:A,scrollToIndex:_,statefulTotalCount:d,trackItemSizes:h,rangeChanged:F,...D,...b,...v,sizes:u,...w}},tt(un,uc,Wt,Jj,Zj,ca,lc,nV,tV,Cx,sV));function aV(e,t){const r={},n={};let s=0;const a=e.length;for(;s<a;)n[e[s]]=1,s+=1;for(const o in t)Object.hasOwn(n,o)||(r[o]=t[o]);return r}const Hu=typeof document<"u"?N.useLayoutEffect:N.useEffect;function Rx(e,t,r){const n=Object.keys(t.required||{}),s=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),i=N.createContext({});function c(E,v){E.propsReady&&Ce(E.propsReady,!1);for(const w of n){const T=E[t.required[w]];Ce(T,v[w])}for(const w of s)if(w in v){const T=E[t.optional[w]];Ce(T,v[w])}E.propsReady&&Ce(E.propsReady,!0)}function l(E){return a.reduce((v,w)=>(v[w]=T=>{const C=E[t.methods[w]];Ce(C,T)},v),{})}function u(E){return o.reduce((v,w)=>(v[w]=vj(E[t.events[w]]),v),{})}const d=N.forwardRef((E,v)=>{const{children:w,...T}=E,[C]=N.useState(()=>Mu(kj(e),S=>{c(S,T)})),[_]=N.useState(cx(u,C));Hu(()=>{for(const S of o)S in T&&Ve(_[S],T[S]);return()=>{Object.values(_).map(Z0)}},[T,_,C]),Hu(()=>{c(C,T)}),N.useImperativeHandle(v,ox(l(C)));const z=r;return B.jsx(i.Provider,{value:C,children:r?B.jsx(z,{...aV([...n,...s,...o],T),children:w}):w})}),f=E=>{const v=N.useContext(i);return N.useCallback(w=>{Ce(v[E],w)},[v,E])},h=E=>{const v=N.useContext(i)[E],w=N.useCallback(T=>Ve(v,T),[v]);return N.useSyncExternalStore(w,()=>at(v),()=>at(v))},y=E=>{const v=N.useContext(i)[E],[w,T]=N.useState(cx(at,v));return Hu(()=>Ve(v,C=>{C!==w&&T(ox(C))}),[v,w]),w},g=N.version.startsWith("18")?h:y;return{Component:d,useEmitter:(E,v)=>{const w=N.useContext(i)[E];Hu(()=>Ve(w,v),[v,w])},useEmitterValue:g,usePublisher:f}}const Hx=N.createContext(void 0),$x=N.createContext(void 0),Gx=typeof document<"u"?N.useLayoutEffect:N.useEffect;function dh(e){return"self"in e}function oV(e){return"body"in e}function jx(e,t,r,n=mo,s,a){const o=N.useRef(null),i=N.useRef(null),c=N.useRef(null),l=N.useCallback(f=>{let h,y,g;const E=f.target;if(oV(E)||dh(E)){const w=dh(E)?E:E.defaultView;g=a?w.scrollX:w.scrollY,h=a?w.document.documentElement.scrollWidth:w.document.documentElement.scrollHeight,y=a?w.innerWidth:w.innerHeight}else g=a?E.scrollLeft:E.scrollTop,h=a?E.scrollWidth:E.scrollHeight,y=a?E.offsetWidth:E.offsetHeight;const v=()=>{e({scrollHeight:h,scrollTop:Math.max(g,0),viewportHeight:y})};f.suppressFlushSync?v():Ea.flushSync(v),i.current!==null&&(g===i.current||g<=0||g===h-y)&&(i.current=null,t(!0),c.current&&(clearTimeout(c.current),c.current=null))},[e,t,a]);N.useEffect(()=>{const f=s||o.current;return n(s||o.current),l({suppressFlushSync:!0,target:f}),f.addEventListener("scroll",l,{passive:!0}),()=>{n(null),f.removeEventListener("scroll",l)}},[o,l,r,n,s]);function u(f){const h=o.current;if(!h||(a?"offsetWidth"in h&&h.offsetWidth===0:"offsetHeight"in h&&h.offsetHeight===0))return;const y=f.behavior==="smooth";let g,E,v;dh(h)?(E=Math.max(bs(h.document.documentElement,a?"width":"height"),a?h.document.documentElement.scrollWidth:h.document.documentElement.scrollHeight),g=a?h.innerWidth:h.innerHeight,v=a?window.scrollX:window.scrollY):(E=h[a?"scrollWidth":"scrollHeight"],g=bs(h,a?"width":"height"),v=h[a?"scrollLeft":"scrollTop"]);const w=E-g;if(f.top=Math.ceil(Math.max(Math.min(w,f.top),0)),Sx(g,E)||f.top===v){e({scrollHeight:E,scrollTop:v,viewportHeight:g}),y&&t(!0);return}y?(i.current=f.top,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,i.current=null,t(!0)},1e3)):i.current=null,a&&(f={behavior:f.behavior,left:f.top}),h.scrollTo(f)}function d(f){a&&(f={behavior:f.behavior,left:f.top}),o.current.scrollBy(f)}return{scrollByCallback:d,scrollerRef:o,scrollToCallback:u}}const ph="-webkit-sticky",Vx="sticky",fh=Lx(()=>{if(typeof document>"u")return Vx;const e=document.createElement("div");return e.style.position=ph,e.style.position===ph?ph:Vx});function hh(e){return e}const iV=He(()=>{const e=K(i=>`Item ${i}`),t=K(i=>`Group ${i}`),r=K({}),n=K(hh),s=K("div"),a=K(mo),o=(i,c=null)=>Ht(W(r,re(l=>l[i]),rt()),c);return{components:r,computeItemKey:n,EmptyPlaceholder:o("EmptyPlaceholder"),FooterComponent:o("Footer"),GroupComponent:o("Group","div"),groupContent:t,HeaderComponent:o("Header"),HeaderFooterTag:s,ItemComponent:o("Item","div"),itemContent:e,ListComponent:o("List","div"),ScrollerComponent:o("Scroller","div"),scrollerRef:a,ScrollSeekPlaceholder:o("ScrollSeekPlaceholder"),TopItemListComponent:o("TopItemList")}}),cV=He(([e,t])=>({...e,...t}),tt(zx,iV)),lV=({height:e})=>B.jsx("div",{style:{height:e}}),uV={overflowAnchor:"none",position:fh(),zIndex:1},Wx={overflowAnchor:"none"},dV={...Wx,display:"inline-block",height:"100%"},qx=N.memo(function({showTopList:e=!1}){const t=ge("listState"),r=Pr("sizeRanges"),n=ge("useWindowScroll"),s=ge("customScrollParent"),a=Pr("windowScrollContainerState"),o=Pr("scrollContainerState"),i=s||n?a:o,c=ge("itemContent"),l=ge("context"),u=ge("groupContent"),d=ge("trackItemSizes"),f=ge("itemSize"),h=ge("log"),y=Pr("gap"),g=ge("horizontalDirection"),{callbackRef:E}=Sj(r,f,d,e?mo:i,h,y,s,g,ge("skipAnimationFrameInResizeObserver")),[v,w]=N.useState(0);mh("deviation",D=>{v!==D&&w(D)});const T=ge("EmptyPlaceholder"),C=ge("ScrollSeekPlaceholder")||lV,_=ge("ListComponent"),z=ge("ItemComponent"),S=ge("GroupComponent"),m=ge("computeItemKey"),b=ge("isSeeking"),x=ge("groupIndices").length>0,A=ge("alignToBottom"),I=ge("initialItemFinalLocationReached"),F=e?{}:{boxSizing:"border-box",...g?{display:"inline-block",height:"100%",marginLeft:v!==0?v:A?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:v!==0?v:A?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...I?{}:{visibility:"hidden"}};return!e&&t.totalCount===0&&T?B.jsx(T,{...$t(T,l)}):B.jsx(_,{...$t(_,l),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:E,style:F,children:(e?t.topItems:t.items).map(D=>{const k=D.originalIndex,P=m(k+t.firstItemIndex,D.data,l);return b?N.createElement(C,{...$t(C,l),height:D.size,index:D.index,key:P,type:D.type||"item",...D.type==="group"?{}:{groupIndex:D.groupIndex}}):D.type==="group"?N.createElement(S,{...$t(S,l),"data-index":k,"data-item-index":D.index,"data-known-size":D.size,key:P,style:uV},u(D.index,l)):N.createElement(z,{...$t(z,l),...mV(z,D.data),"data-index":k,"data-item-group-index":D.groupIndex,"data-item-index":D.index,"data-known-size":D.size,key:P,style:g?dV:Wx},x?c(D.index,D.groupIndex,D.data,l):c(D.index,D.data,l))})})}),pV={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},fV={outline:"none",overflowX:"auto",position:"relative"},$u=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:{}}),hV={position:fh(),top:0,width:"100%",zIndex:1};function $t(e,t){if(typeof e!="string")return{context:t}}function mV(e,t){return{item:typeof e=="string"?void 0:t}}const bV=N.memo(function(){const e=ge("HeaderComponent"),t=Pr("headerHeight"),r=ge("HeaderFooterTag"),n=oa(N.useMemo(()=>a=>{t(bs(a,"height"))},[t]),!0,ge("skipAnimationFrameInResizeObserver")),s=ge("context");return e?B.jsx(r,{ref:n,children:B.jsx(e,{...$t(e,s)})}):null}),yV=N.memo(function(){const e=ge("FooterComponent"),t=Pr("footerHeight"),r=ge("HeaderFooterTag"),n=oa(N.useMemo(()=>a=>{t(bs(a,"height"))},[t]),!0,ge("skipAnimationFrameInResizeObserver")),s=ge("context");return e?B.jsx(r,{ref:n,children:B.jsx(e,{...$t(e,s)})}):null});function Yx({useEmitter:e,useEmitterValue:t,usePublisher:r}){return N.memo(function({children:n,style:s,context:a,...o}){const i=r("scrollContainerState"),c=t("ScrollerComponent"),l=r("smoothScrollTargetReached"),u=t("scrollerRef"),d=t("horizontalDirection")||!1,{scrollByCallback:f,scrollerRef:h,scrollToCallback:y}=jx(i,l,c,u,void 0,d);return e("scrollTo",y),e("scrollBy",f),B.jsx(c,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:h,style:{...d?fV:pV,...s},tabIndex:0,...o,...$t(c,a),children:n})})}function Kx({useEmitter:e,useEmitterValue:t,usePublisher:r}){return N.memo(function({children:n,style:s,context:a,...o}){const i=r("windowScrollContainerState"),c=t("ScrollerComponent"),l=r("smoothScrollTargetReached"),u=t("totalListHeight"),d=t("deviation"),f=t("customScrollParent"),h=N.useRef(null),y=t("scrollerRef"),{scrollByCallback:g,scrollerRef:E,scrollToCallback:v}=jx(i,l,c,y,f);return Gx(()=>{var w;return E.current=f||((w=h.current)==null?void 0:w.ownerDocument.defaultView),()=>{E.current=null}},[E,f]),e("windowScrollTo",v),e("scrollBy",g),B.jsx(c,{ref:h,"data-virtuoso-scroller":!0,style:{position:"relative",...s,...u!==0?{height:u+d}:{}},...o,...$t(c,a),children:n})})}const gV=({children:e})=>{const t=N.useContext(Hx),r=Pr("viewportHeight"),n=Pr("fixedItemHeight"),s=ge("alignToBottom"),a=ge("horizontalDirection"),o=N.useMemo(()=>ix(r,c=>bs(c,a?"width":"height")),[r,a]),i=oa(o,!0,ge("skipAnimationFrameInResizeObserver"));return N.useEffect(()=>{t&&(r(t.viewportHeight),n(t.itemHeight))},[t,r,n]),B.jsx("div",{"data-viewport-type":"element",ref:i,style:$u(s),children:e})},xV=({children:e})=>{const t=N.useContext(Hx),r=Pr("windowViewportRect"),n=Pr("fixedItemHeight"),s=ge("customScrollParent"),a=px(r,s,ge("skipAnimationFrameInResizeObserver")),o=ge("alignToBottom");return N.useEffect(()=>{t&&(n(t.itemHeight),r({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,r,n]),B.jsx("div",{"data-viewport-type":"window",ref:a,style:$u(o),children:e})},wV=({children:e})=>{const t=ge("TopItemListComponent")||"div",r=ge("headerHeight"),n={...hV,marginTop:`${r}px`},s=ge("context");return B.jsx(t,{style:n,...$t(t,s),children:e})},vV=N.memo(function(e){const t=ge("useWindowScroll"),r=ge("topItemsIndexes").length>0,n=ge("customScrollParent"),s=ge("context");return B.jsxs(n||t?CV:kV,{...e,context:s,children:[r&&B.jsx(wV,{children:B.jsx(qx,{showTopList:!0})}),B.jsxs(n||t?xV:gV,{children:[B.jsx(bV,{}),B.jsx(qx,{}),B.jsx(yV,{})]})]})}),{Component:EV,useEmitter:mh,useEmitterValue:ge,usePublisher:Pr}=Rx(cV,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},vV),kV=Yx({useEmitter:mh,useEmitterValue:ge,usePublisher:Pr}),CV=Kx({useEmitter:mh,useEmitterValue:ge,usePublisher:Pr}),TV=EV;tt(zx,He(()=>{const e=K(l=>B.jsxs("td",{children:["Item $",l]})),t=K(null),r=K(l=>B.jsxs("td",{colSpan:1e3,children:["Group ",l]})),n=K(null),s=K(null),a=K({}),o=K(hh),i=K(mo),c=(l,u=null)=>Ht(W(a,re(d=>d[l]),rt()),u);return{components:a,computeItemKey:o,context:t,EmptyPlaceholder:c("EmptyPlaceholder"),FillerRow:c("FillerRow"),fixedFooterContent:s,fixedHeaderContent:n,itemContent:e,groupContent:r,ScrollerComponent:c("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:c("ScrollSeekPlaceholder"),TableBodyComponent:c("TableBody","tbody"),TableComponent:c("Table","table"),TableFooterComponent:c("TableFoot","tfoot"),TableHeadComponent:c("TableHead","thead"),TableRowComponent:c("TableRow","tr"),GroupComponent:c("Group","tr")}})),fh();const Zx={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},SV={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:Xx,floor:Gu,max:bc,min:bh,round:Qx}=Math;function Jx(e,t,r){return Array.from({length:t-e+1}).map((n,s)=>({data:r===null?null:r[s+e],index:s+e}))}function AV(e){return{...SV,items:e}}function ju(e,t){return e&&e.width===t.width&&e.height===t.height}function PV(e,t){return e&&e.column===t.column&&e.row===t.row}const IV=He(([{increaseViewportBy:e,listBoundary:t,overscan:r,visibleRange:n},{footerHeight:s,headerHeight:a,scrollBy:o,scrollContainerState:i,scrollTo:c,scrollTop:l,smoothScrollTargetReached:u,viewportHeight:d},f,h,{didMount:y,propsReady:g},{customScrollParent:E,useWindowScroll:v,windowScrollContainerState:w,windowScrollTo:T,windowViewportRect:C},_])=>{const z=K(0),S=K(0),m=K(Zx),b=K({height:0,width:0}),x=K({height:0,width:0}),A=Ue(),I=Ue(),F=K(0),D=K(null),k=K({column:0,row:0}),P=Ue(),O=Ue(),U=K(!1),L=K(0),H=K(!0),G=K(!1),Q=K(!1);Ve(W(y,Te(L),fe(([X,we])=>!!we)),()=>{Ce(H,!1)}),Ve(W(Et(y,H,x,b,L,G),fe(([X,we,_e,$e,,it])=>X&&!we&&_e.height!==0&&$e.height!==0&&!it)),([,,,,X])=>{Ce(G,!0),oh(1,()=>{Ce(A,X)}),Vr(W(l),()=>{Ce(t,[0,0]),Ce(H,!0)})}),ce(W(O,fe(X=>X!=null&&X.scrollTop>0),cn(0)),S),Ve(W(y,Te(O),fe(([,X])=>X!=null)),([,X])=>{X&&(Ce(b,X.viewport),Ce(x,X.item),Ce(k,X.gap),X.scrollTop>0&&(Ce(U,!0),Vr(W(l,aa(1)),we=>{Ce(U,!1)}),Ce(c,{top:X.scrollTop})))}),ce(W(b,re(({height:X})=>X)),d),ce(W(Et(he(b,ju),he(x,ju),he(k,(X,we)=>X&&X.column===we.column&&X.row===we.row),he(l)),re(([X,we,_e,$e])=>({gap:_e,item:we,scrollTop:$e,viewport:X}))),P),ce(W(Et(he(z),n,he(k,PV),he(x,ju),he(b,ju),he(D),he(S),he(U),he(H),he(L)),fe(([,,,,,,,X])=>!X),re(([X,[we,_e],$e,it,Se,ve,be,,Xe,Ke])=>{const{column:Qe,row:Fr}=$e,{height:Ot,width:Eh}=it,{width:S5}=Se;if(be===0&&(X===0||S5===0))return Zx;if(Eh===0){const F5=ih(Ke,X),DW=F5+Math.max(be-1,0);return AV(Jx(F5,DW,ve))}const qu=e5(S5,Eh,Qe);let Bo,va;Xe?we===0&&_e===0&&be>0?(Bo=0,va=be-1):(Bo=qu*Gu((we+Fr)/(Ot+Fr)),va=qu*Xx((_e+Fr)/(Ot+Fr))-1,va=bh(X-1,bc(va,qu-1)),Bo=bh(va,bc(0,Bo))):(Bo=0,va=-1);const A5=Jx(Bo,va,ve),{bottom:P5,top:I5}=t5(Se,$e,it,A5),B5=Xx(X/qu),_W=B5*Ot+(B5-1)*Fr-P5;return{bottom:P5,itemHeight:Ot,items:A5,itemWidth:Eh,offsetBottom:_W,offsetTop:I5,top:I5}})),m),ce(W(D,fe(X=>X!==null),re(X=>X.length)),z),ce(W(Et(b,x,m,k),fe(([X,we,{items:_e}])=>_e.length>0&&we.height!==0&&X.height!==0),re(([X,we,{items:_e},$e])=>{const{bottom:it,top:Se}=t5(X,$e,we,_e);return[Se,it]}),rt(ic)),t);const pe=K(!1);ce(W(l,Te(pe),re(([X,we])=>we||X!==0)),pe);const me=mr(W(Et(m,z),fe(([{items:X}])=>X.length>0),Te(pe),fe(([[X,we],_e])=>{const $e=X.items[X.items.length-1].index===we-1;return(_e||X.bottom>0&&X.itemHeight>0&&X.offsetBottom===0&&X.items.length===we)&&$e}),re(([[,X]])=>X-1),rt())),ie=mr(W(he(m),fe(({items:X})=>X.length>0&&X[0].index===0),cn(0),rt())),de=mr(W(he(m),Te(U),fe(([{items:X},we])=>X.length>0&&!we),re(([{items:X}])=>({endIndex:X[X.length-1].index,startIndex:X[0].index})),rt(xx),$n(0)));ce(de,h.scrollSeekRangeChanged),ce(W(A,Te(b,x,z,k),re(([X,we,_e,$e,it])=>{const Se=Tx(X),{align:ve,behavior:be,offset:Xe}=Se;let Ke=Se.index;Ke==="LAST"&&(Ke=$e-1),Ke=bc(0,Ke,bh($e-1,Ke));let Qe=yh(we,it,_e,Ke);return ve==="end"?Qe=Qx(Qe-we.height+_e.height):ve==="center"&&(Qe=Qx(Qe-we.height/2+_e.height/2)),Xe&&(Qe+=Xe),{behavior:be,top:Qe}})),c);const Be=Ht(W(m,re(X=>X.offsetBottom+X.bottom)),0);return ce(W(C,re(X=>({height:X.visibleHeight,width:X.visibleWidth}))),b),{customScrollParent:E,data:D,deviation:F,footerHeight:s,gap:k,headerHeight:a,increaseViewportBy:e,initialItemCount:S,itemDimensions:x,overscan:r,restoreStateFrom:O,scrollBy:o,scrollContainerState:i,scrollHeight:I,scrollTo:c,scrollToIndex:A,scrollTop:l,smoothScrollTargetReached:u,totalCount:z,useWindowScroll:v,viewportDimensions:b,windowScrollContainerState:w,windowScrollTo:T,windowViewportRect:C,...h,gridState:m,horizontalDirection:Q,initialTopMostItemIndex:L,totalListHeight:Be,...f,endReached:me,propsReady:g,rangeChanged:de,startReached:ie,stateChanged:P,stateRestoreInProgress:U,..._}},tt(ch,Wt,fc,Nx,ys,uh,ms));function e5(e,t,r){return bc(1,Gu((e+r)/(Gu(t)+r)))}function t5(e,t,r,n){const{height:s}=r;if(s===void 0||n.length===0)return{bottom:0,top:0};const a=yh(e,t,r,n[0].index);return{bottom:yh(e,t,r,n[n.length-1].index)+s,top:a}}function yh(e,t,r,n){const s=e5(e.width,r.width,t.column),a=Gu(n/s),o=a*r.height+bc(0,a-1)*t.row;return o>0?o+t.row:o}const BV=He(()=>{const e=K(d=>`Item ${d}`),t=K({}),r=K(null),n=K("virtuoso-grid-item"),s=K("virtuoso-grid-list"),a=K(hh),o=K("div"),i=K(mo),c=(d,f=null)=>Ht(W(t,re(h=>h[d]),rt()),f),l=K(!1),u=K(!1);return ce(he(u),l),{components:t,computeItemKey:a,context:r,FooterComponent:c("Footer"),HeaderComponent:c("Header"),headerFooterTag:o,itemClassName:n,ItemComponent:c("Item","div"),itemContent:e,listClassName:s,ListComponent:c("List","div"),readyStateChanged:l,reportReadyState:u,ScrollerComponent:c("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}}),FV=He(([e,t])=>({...e,...t}),tt(IV,BV)),UV=N.memo(function(){const e=ot("gridState"),t=ot("listClassName"),r=ot("itemClassName"),n=ot("itemContent"),s=ot("computeItemKey"),a=ot("isSeeking"),o=Ir("scrollHeight"),i=ot("ItemComponent"),c=ot("ListComponent"),l=ot("ScrollSeekPlaceholder"),u=ot("context"),d=Ir("itemDimensions"),f=Ir("gap"),h=ot("log"),y=ot("stateRestoreInProgress"),g=Ir("reportReadyState"),E=oa(N.useMemo(()=>v=>{const w=v.parentElement.parentElement.scrollHeight;o(w);const T=v.firstChild;if(T){const{height:C,width:_}=T.getBoundingClientRect();d({height:C,width:_})}f({column:n5("column-gap",getComputedStyle(v).columnGap,h),row:n5("row-gap",getComputedStyle(v).rowGap,h)})},[o,d,f,h]),!0,!1);return Gx(()=>{e.itemHeight>0&&e.itemWidth>0&&g(!0)},[e]),y?null:B.jsx(c,{className:t,ref:E,...$t(c,u),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(v=>{const w=s(v.index,v.data,u);return a?B.jsx(l,{...$t(l,u),height:e.itemHeight,index:v.index,width:e.itemWidth},w):N.createElement(i,{...$t(i,u),className:r,"data-index":v.index,key:w},n(v.index,v.data,u))})})}),OV=N.memo(function(){const e=ot("HeaderComponent"),t=Ir("headerHeight"),r=ot("headerFooterTag"),n=oa(N.useMemo(()=>a=>{t(bs(a,"height"))},[t]),!0,!1),s=ot("context");return e?B.jsx(r,{ref:n,children:B.jsx(e,{...$t(e,s)})}):null}),_V=N.memo(function(){const e=ot("FooterComponent"),t=Ir("footerHeight"),r=ot("headerFooterTag"),n=oa(N.useMemo(()=>a=>{t(bs(a,"height"))},[t]),!0,!1),s=ot("context");return e?B.jsx(r,{ref:n,children:B.jsx(e,{...$t(e,s)})}):null}),DV=({children:e})=>{const t=N.useContext($x),r=Ir("itemDimensions"),n=Ir("viewportDimensions"),s=oa(N.useMemo(()=>a=>{n(a.getBoundingClientRect())},[n]),!0,!1);return N.useEffect(()=>{t&&(n({height:t.viewportHeight,width:t.viewportWidth}),r({height:t.itemHeight,width:t.itemWidth}))},[t,n,r]),B.jsx("div",{ref:s,style:$u(!1),children:e})},MV=({children:e})=>{const t=N.useContext($x),r=Ir("windowViewportRect"),n=Ir("itemDimensions"),s=ot("customScrollParent"),a=px(r,s,!1);return N.useEffect(()=>{t&&(n({height:t.itemHeight,width:t.itemWidth}),r({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,r,n]),B.jsx("div",{ref:a,style:$u(!1),children:e})},NV=N.memo(function({...e}){const t=ot("useWindowScroll"),r=ot("customScrollParent"),n=r||t?zV:LV,s=r||t?MV:DV,a=ot("context");return B.jsx(n,{...e,...$t(n,a),children:B.jsxs(s,{children:[B.jsx(OV,{}),B.jsx(UV,{}),B.jsx(_V,{})]})})}),{useEmitter:r5,useEmitterValue:ot,usePublisher:Ir}=Rx(FV,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},NV),LV=Yx({useEmitter:r5,useEmitterValue:ot,usePublisher:Ir}),zV=Kx({useEmitter:r5,useEmitterValue:ot,usePublisher:Ir});function n5(e,t,r){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&r(`${e} was not resolved to pixel value correctly`,t,nr.WARN),t==="normal"?0:parseInt(t??"0",10)}var gh={},s5;function RV(){if(s5)return gh;s5=1;var e=lu.GenIcon;return gh.AiFillQuestionCircle=function(r){return e({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]})(r)},gh}var HV=RV();function $V({logo:e,className:t="",style:r={},alt:n="Token logo"}){const[s,a]=N.useState(!1);return N.useEffect(()=>{a(!1)},[e]),e&&!s?B.jsx("img",{alt:n,style:r,onError:()=>a(!0),className:`twap-token-logo ${t}`,src:e}):B.jsx(HV.AiFillQuestionCircle,{style:{width:20,height:20},className:"twap-token-svg"})}const GV=()=>B.jsx("div",{className:"twap-orders__loader",children:B.jsx("p",{children:"Loading..."})}),jV=()=>{const{isLoading:e}=Ou(),t=ex(),r=te(a=>a.state.orderIdsToCancel),n=te(a=>a.state.cancelOrdersMode),s=tx();return B.jsx(B.Fragment,{children:e?B.jsx(GV,{}):t!=null&&t.length?B.jsx("div",{className:`twap-orders__list ${n?"twap-orders__list-select-mode":""}`,children:B.jsx(TV,{style:{height:"100%"},data:t,itemContent:(a,o)=>B.jsx(VV,{cancelOrdersMode:!!n,selected:(r==null?void 0:r.includes(o.id))||!1,selectOrder:s,order:o},a)})}):B.jsx(WV,{})})},VV=({order:e,selectOrder:t,selected:r,cancelOrdersMode:n})=>{const s=te(i=>i.updateState),a=xt.useCallback(()=>{s({selectedOrderID:e==null?void 0:e.id})},[s,e==null?void 0:e.id]),o=xt.useCallback(()=>{n?t(e==null?void 0:e.id):a()},[n,t,a,e==null?void 0:e.id]);return B.jsx("div",{className:`twap-orders__list-item twap-orders__list-item-${e.status} ${n?"twap-orders__list-item-select-mode":""} ${r?"twap-orders__list-item-selected":""}`,onClick:o,children:B.jsxs("div",{className:"twap-orders__list-item-content",children:[B.jsx(qV,{order:e}),B.jsx(YV,{value:e.progress||0}),B.jsxs("div",{className:"twap-orders__list-item-tokens",children:[B.jsx(a5,{address:e.srcTokenAddress}),B.jsx(mj.HiArrowRight,{className:"twap-orders__list-item-tokens-arrow"}),B.jsx(a5,{address:e.dstTokenAddress})]})]})})},WV=()=>{const e=te(n=>n.state.orderHistoryStatusFilter),t=Me(),r=xt.useMemo(()=>e||"",[e]);return B.jsx("div",{className:"twap-orders__list-empty",children:B.jsx("p",{children:t("noOrders",{status:r})})})},qV=({order:e})=>{const t=e&&e.status,r=Q2(e),n=j0(e.createdAt);return B.jsxs("div",{className:"twap-orders__list-item-header",children:[B.jsxs("p",{className:"twap-orders__list-item-header-title",children:[r," ",B.jsx("span",{children:`(${n})`})]}),B.jsx("p",{className:"twap-orders__list-item-header-status",children:t})]})},a5=e=>{const{useToken:t,components:r}=ne(),n=t==null?void 0:t(e.address);return B.jsx("div",{className:"twap-orders__list-item-token",children:n?B.jsxs(B.Fragment,{children:[B.jsx("div",{className:"twap-orders__list-item-token-logo",children:r.TokenLogo?B.jsx(r.TokenLogo,{token:n}):B.jsx($V,{logo:n==null?void 0:n.logoUrl})}),B.jsx("p",{className:"twap-orders__list-item-token-symbol",children:n==null?void 0:n.symbol})]}):B.jsx("div",{})})};function YV(e){return B.jsxs("div",{className:"twap-orders__list-item-progress",children:[B.jsx("div",{className:"twap-orders__list-item-progress-bar",children:B.jsx("div",{className:"twap-orders__list-item-progress-bar-filled",style:{width:`${e.value}%`}})}),B.jsx("div",{className:"twap-orders__list-item-token-progress-label",children:B.jsx("p",{children:`${Math.round(e.value)}%`})})]})}const KV=()=>{const e=te(r=>r.state.selectedOrderID),t=e!==void 0;return B.jsx("div",{className:`twap-orders ${e!==void 0?"twap-orders__show-selected":""}`,children:t?B.jsx(YG,{}):B.jsx(jV,{})})},ZV=e=>{const t=Me(),{marketPrice:r,typedInputAmount:n}=ne();return N.useMemo(()=>{const{isError:a,value:o}=xm(e);if(!(!a||j(n||"0").isZero()||!r))return{type:Mt.MIN_FILL_DELAY,value:o,message:t("minFillDelayError",{fillDelay:`${Id(o)} ${t("minutes")}`})}},[e,t,n,r])},la=()=>{const{callbacks:e}=ne(),t=te(a=>a.state.typedFillDelay),r=te(a=>a.updateState),n=N.useMemo(()=>t||Bc,[t]),s=ZV(n);return{fillDelay:n,onChange:N.useCallback(a=>{var o;r({typedFillDelay:a}),(o=e==null?void 0:e.onFillDelayChange)==null||o.call(e,a)},[r,e]),error:s,milliseconds:n.unit*n.value}},XV=()=>{const{onChange:e,fillDelay:t,error:r}=la(),n=Me(),s=N.useCallback(o=>e({unit:t.unit,value:Number(o)}),[e,t]),a=N.useCallback(o=>e({unit:o,value:t.value}),[e,t]);return{onInputChange:s,onUnitSelect:a,onChange:e,milliseconds:t.unit*t.value,fillDelay:t,error:r,label:n("tradeIntervalTitle"),tooltip:n("tradeIntervalTootlip")}},dn=()=>{const{srcToken:e,typedInputAmount:t}=ne(),r=Me(),s=te(a=>a.state.acceptedSrcAmount)||t;return{amountWei:W2(e==null?void 0:e.decimals,s),amountUI:s,error:j(s||0).isZero()?r("enterAmount"):void 0}},QV=(e,t)=>{const{module:r,srcUsd1Token:n,marketPrice:s,minChunkSizeUsd:a,typedInputAmount:o}=ne(),i=Me();return N.useMemo(()=>{if(j(o||"0").isZero()||!s)return;if(!e)return{type:Mt.MIN_CHUNKS,value:1,message:i("minChunksError",{minChunks:"1"})};const{isError:c}=vm(e,t,r);if(c)return{type:Mt.MAX_CHUNKS,value:t,message:i("maxChunksError",{maxChunks:`${t}`})};const{isError:l,value:u}=wm(o||"",n||"",a||0);if(l)return{type:Mt.MIN_TRADE_SIZE,value:u,message:i("minTradeSizeError",{minTradeSize:`${u}`})}},[e,t,r,o,n,a,i,s])},pn=()=>{const{srcToken:e,srcUsd1Token:t,module:r,minChunkSizeUsd:n}=ne(),s=te(g=>g.state.typedChunks),a=la().fillDelay,o=te(g=>g.updateState),{amountWei:i,amountUI:c}=dn(),l=N.useMemo(()=>um(a,c||"",t||"",n||0),[c,t,n,a]),u=N.useMemo(()=>lm(l,r,s),[l,s,r]),d=N.useCallback(g=>o({typedChunks:g}),[o]),f=N.useMemo(()=>pm(i||"",u),[i,u]),h=on(e==null?void 0:e.decimals,f),y=N.useMemo(()=>t?j(h||"0").times(t||0).toString():"0",[h,t]);return{totalTrades:u,maxTrades:l,amountPerTradeUI:h,amountPerTradeWei:f,amountPerTradeUsd:y,onChange:d,error:QV(u,l)}},JV=()=>{const{srcToken:e,dstToken:t}=ne(),r=Me(),{onChange:n,totalTrades:s,amountPerTradeUsd:a,amountPerTradeUI:o,error:i,maxTrades:c,amountPerTradeWei:l}=pn(),u=je({value:o}),d=je({value:a});return{error:i,maxTrades:c,totalTrades:s,amountPerTrade:u,amountPerTradeWei:l,onChange:n,label:r("tradesAmountTitle"),tooltip:r("totalTradesTooltip"),amountPerTradeUsd:d,fromToken:e,toToken:t}},eW=e=>{const{module:t,marketPrice:r}=ne(),n=Me();return N.useMemo(()=>{const s=ym(t,e),a=gm(e);if(r){if(s.isError)return{type:Mt.MAX_ORDER_DURATION,value:s.value,message:n("maxDurationError",{duration:`${Math.floor(d1(s.value)).toFixed(0)} ${n("days")}`})};if(a.isError)return{type:Mt.MIN_ORDER_DURATION,value:a.value,message:n("minDurationError",{duration:`${Math.floor(Id(a.value)).toFixed(0)} ${n("minutes")}`})}}},[e,n,t,r])},xh=()=>{const{module:e,callbacks:t}=ne(),r=te(c=>c.state.typedDuration),n=te(c=>c.updateState),s=pn().totalTrades,a=la().fillDelay,o=N.useMemo(()=>cm(e,s,a,r),[s,a,r,e]),i=eW(o);return{duration:o,setDuration:N.useCallback(c=>{var l;n({typedDuration:c}),(l=t==null?void 0:t.onDurationChange)==null||l.call(t,c)},[n,t]),error:i}},tW=()=>{const{module:e}=ne(),t=Me(),{duration:r,setDuration:n,error:s}=xh(),a=N.useCallback(c=>{n({unit:r.unit,value:Number(c)})},[n,r]),o=N.useCallback(c=>{n({unit:c,value:r.value})},[n,r]),i=N.useMemo(()=>e===ye.STOP_LOSS?t("stopLossDurationTooltip"):t("maxDurationTooltip"),[t,e]);return{duration:r,onChange:n,milliseconds:r.unit*r.value,onInputChange:a,onUnitSelect:o,label:t("expiry"),tooltip:i,error:s}},rW=()=>{const e=te(a=>a.state.isMarketOrder),{module:t}=ne(),r=Me(),n=N.useMemo(()=>{if(e&&t===ye.STOP_LOSS)return{text:r("triggerMarketPriceDisclaimer"),url:od}},[e,r,t]),s=N.useMemo(()=>{if(!(t!==ye.LIMIT&&t!==ye.TWAP))return{text:r(e?"marketOrderWarning":"limitPriceMessage"),url:"https://www.orbs.com/dtwap-and-dlimit-faq/"}},[e,r,t]);return n||s},Vu=()=>{const{srcToken:e,dstToken:t,marketPriceLoading:r}=ne(),n=te(l=>l.updateState),s=te(l=>l.state.isInvertedTrade),a=te(l=>l.state.typedTriggerPrice),o=te(l=>l.state.typedLimitPrice),i=te(l=>l.state.isMarketOrder);return{onInvert:N.useCallback(()=>{a!==void 0&&n({typedTriggerPrice:j(1).div(a).toFixed()}),o!==void 0&&n({typedLimitPrice:j(1).div(o).toFixed()}),n({isInvertedTrade:!s})},[n,s,a,o,r]),isInverted:s,fromToken:s?t:e,toToken:s?e:t,isMarketPrice:i}},o5=({typedValue:e,tokenDecimals:t=18,initialPrice:r="0",percentage:n,setValue:s,setPercentage:a})=>{const{srcUsd1Token:o,dstUsd1Token:i}=ne(),{isInverted:c}=Vu(),l=N.useMemo(()=>{if(e!==void 0){const g=c?j(e).isZero()?j(0):j(1).div(e):j(e);return Ac(t,g.toFixed())}if(n!==void 0&&j(r||"0").gt(0)&&!j(r||"0").isNaN()){const g=j(r||"0"),E=j(n||0).div(100);return g.plus(g.multipliedBy(E)).decimalPlaces(0).toFixed()}return j(r).gt(0)?r:""},[e,n,t,r,c]),u=N.useCallback(g=>{s(g),a(null)},[s,a]),d=N.useCallback(g=>{s(void 0),a(g)},[s,a]),f=N.useMemo(()=>{if(!r||j(r).isZero())return"";if(n!=null)return n;if(l){const g=j(r),v=j(l).minus(g).div(g).multipliedBy(100).decimalPlaces(2).toString();return j(v||"0").isZero()?"":v}return""},[l,r,n]),h=N.useMemo(()=>{let g="";if(e!==void 0)g=e;else{const E=gn(t,l);if(j(E||"0").isZero())return"";g=c?j(1).div(E).toFixed():E}return Ad(g,6,t)},[e,t,l,c]),y=fo(c?o:i,h||"0");return{amountWei:j(l).isNaN()?"":l,amountUI:j(h).isNaN()?"":h,selectedPercentage:f,onChange:u,onPercentageChange:d,isInverted:c,usd:j(y).isNaN()?"":y}},nW=()=>{const{module:e}=ne();return N.useMemo(()=>e===ye.STOP_LOSS?Jh:em,[e])},wh=()=>{const{module:e}=ne(),t=te(r=>r.state.isMarketOrder);return N.useMemo(()=>e!==ye.STOP_LOSS&&e!==ye.TAKE_PROFIT||t?void 0:e===ye.STOP_LOSS?tm:rm,[e,t])},sW=(e="")=>{const{module:t,marketPrice:r,typedInputAmount:n}=ne(),s=Me();return N.useMemo(()=>{if(j(n||"0").isZero()||!r||t!==ye.STOP_LOSS&&t!==ye.TAKE_PROFIT)return;const a=fm(r||"",e||"",t);if(a!=null&&a.isError)return{type:Mt.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE,value:a.value,message:s("StopLossTriggerPriceError")||""};const o=hm(r||"",e||"",t);if(o!=null&&o.isError)return{type:Mt.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE,value:o.value,message:s("TakeProfitTriggerPriceError")||""};if(!e||j(e||0).isZero())return{type:Mt.EMPTY_TRIGGER_PRICE,value:e,message:s("emptyTriggerPrice")||""}},[r,e,t,s,n])},aW=e=>{const{srcToken:t,dstToken:r,module:n}=ne(),s=pn().amountPerTradeWei,a=te(i=>i.state.isMarketOrder),o=N.useMemo(()=>im(n,s,e,(t==null?void 0:t.decimals)||0),[e,s,a,t==null?void 0:t.decimals,n]);return{amountWei:o,amountUI:on((r==null?void 0:r.decimals)||0,o)}},ua=()=>{const{dstToken:e,marketPrice:t,module:r,callbacks:n}=ne(),s=te(h=>h.updateState),a=nW(),o=te(h=>h.state.triggerPricePercent),i=o===void 0?a:o,c=r===ye.STOP_LOSS||r===ye.TAKE_PROFIT,l=o5({typedValue:te(h=>h.state.typedTriggerPrice),percentage:i,tokenDecimals:e==null?void 0:e.decimals,initialPrice:c?t:void 0,setValue:N.useCallback(h=>{var y;s({typedTriggerPrice:h}),(y=n==null?void 0:n.onTriggerPriceChange)==null||y.call(n,h||"")},[s,n]),setPercentage:N.useCallback(h=>{var y;s({triggerPricePercent:h}),(y=n==null?void 0:n.onTriggerPricePercentChange)==null||y.call(n,h||"")},[s,n])}),u=sW(l.amountWei),{amountWei:d,amountUI:f}=aW(l.amountWei);return N.useMemo(()=>({...l,error:u,pricePerChunkWei:d,pricePerChunkUI:f}),[l,u,d,f])},oW=()=>{const{module:e,marketPrice:t,marketPriceLoading:r}=ne(),n=Me(),{amountUI:s,onChange:a,onPercentageChange:o,usd:i,selectedPercentage:c,error:l,pricePerChunkUI:u}=ua(),d=te(T=>T.state.isMarketOrder),f=te(T=>T.updateState),{isInverted:h,onInvert:y,fromToken:g,toToken:E}=Vu(),v=N.useCallback(()=>{f({triggerPricePercent:void 0,typedTriggerPrice:void 0})},[f]),w=e!==ye.STOP_LOSS&&e!==ye.TAKE_PROFIT;return{price:s,amountPerChunk:u,error:l,label:n("stopLossLabel"),tooltip:e===ye.STOP_LOSS?n("stopLossTooltip"):n("takeProfitTooltip"),onChange:a,onPercentageChange:o,percentage:c,isActive:!d,onReset:v,usd:i,fromToken:g,toToken:E,prefix:"",isLoading:r||!t,isInverted:h,hide:w,onInvert:y}},iW=e=>{const{module:t,marketPrice:r,typedInputAmount:n}=ne(),s=Me(),{amountWei:a}=ua(),o=te(i=>i.state.isMarketOrder);return N.useMemo(()=>{if(j(n||"0").isZero()||!a||!r)return;const i=mm(a,e,o,t),c=bm(a,e,o,t);if(i!=null&&i.isError)return{type:Mt.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE,message:s("triggerLimitPriceError")||"",value:i.value};if(c!=null&&c.isError)return{type:Mt.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE,message:s("triggerLimitPriceError")||"",value:c.value};if(e&&j(e||0).isZero())return{type:Mt.MISSING_LIMIT_PRICE,message:s("emptyLimitPrice")||"",value:e||""}},[e,s,a,t,o,n,r])},yc=()=>{const{dstToken:e,marketPrice:t,callbacks:r}=ne(),n=te(l=>l.updateState),s=wh(),a=te(l=>l.state.limitPricePercent),o=a===void 0?s:a,i=o5({typedValue:te(l=>l.state.typedLimitPrice),percentage:o,tokenDecimals:e==null?void 0:e.decimals,initialPrice:t,setValue:N.useCallback(l=>{var u;n({typedLimitPrice:l}),(u=r==null?void 0:r.onLimitPriceChange)==null||u.call(r,l||"")},[n,r]),setPercentage:N.useCallback(l=>{var u;n({limitPricePercent:l}),(u=r==null?void 0:r.onLimitPricePercentChange)==null||u.call(r,l||"")},[n,r])}),c=iW(i.amountWei);return N.useMemo(()=>({...i,error:c}),[i,c])},cW=()=>{const{module:e}=ne(),t=te(i=>i.updateState),r=te(i=>i.state.isMarketOrder),n=wh(),s=te(i=>i.state.triggerPricePercent)||0,a=e===ye.LIMIT,o=N.useCallback(()=>{!r&&e===ye.STOP_LOSS&&t({limitPricePercent:n}),t({isMarketOrder:!r})},[t,s,e,r,n]);return{isLimitPrice:!r,toggleLimitPrice:o,hide:a}},i5=()=>{const{module:e,marketPrice:t}=ne(),r=yc().amountWei,n=ua().amountWei,s=te(a=>a.state.isMarketOrder);return e===ye.LIMIT||!s?r||"":e===ye.STOP_LOSS||e===ye.TAKE_PROFIT?n||"":t||""},gc=()=>{const{srcToken:e,dstToken:t,dstUsd1Token:r}=ne(),n=i5(),s=dn().amountWei,a=N.useMemo(()=>am(s||"",n,(e==null?void 0:e.decimals)||0),[s,n,e==null?void 0:e.decimals]),o=on(t==null?void 0:t.decimals,a);return{amountWei:a,amountUI:o,usd:fo(o,r)}},Wu=()=>{const{srcToken:e,dstToken:t,dstUsd1Token:r}=ne(),n=i5(),s=pn().amountPerTradeWei,a=te(c=>c.state.isMarketOrder),o=N.useMemo(()=>om(s,n,!!a,(e==null?void 0:e.decimals)||0),[s,n,a,e==null?void 0:e.decimals]),i=on(t==null?void 0:t.decimals,o);return{amountWei:o,amountUI:i,usd:fo(i,r)}},lW=()=>{const{typedInputAmount:e,marketPriceLoading:t,dstToken:r}=ne(),{amountUI:n,usd:s}=gc(),o=SG()?e:n;return{value:q2(o,7),valueWei:W2(r==null?void 0:r.decimals,o),isLoading:t,usd:s}},uW=()=>{const{module:e,marketPriceLoading:t}=ne(),r=Me(),{amountUI:n,onChange:s,onPercentageChange:a,usd:o,selectedPercentage:i,error:c}=yc(),l=te(T=>T.updateState),u=wh(),{isLimitPrice:d,toggleLimitPrice:f}=cW(),{isInverted:h,onInvert:y,fromToken:g,toToken:E}=Vu(),v=N.useCallback(()=>{l({typedLimitPrice:void 0}),l({limitPricePercent:u})},[l,e,u]),w=N.useMemo(()=>e===ye.STOP_LOSS?r("stopLossLimitPriceTooltip"):r("limitPriceTooltip"),[r,e]);return{price:n,amountPerChunk:Wu().amountUI,error:c,label:r("limitPrice"),tooltip:w,onChange:s,onPercentageChange:a,onReset:v,usd:o,fromToken:g,tradesAmount:pn().totalTrades,toToken:E,percentage:i,isInverted:h,isLoading:t,isLimitPrice:d,toggleLimitPrice:f,onInvert:y}},dW=()=>{const{srcBalance:e,chainId:t}=ne(),r=Me(),n=dn().amountWei;return N.useMemo(()=>{if(e&&j(n).gt(e))return{type:Mt.INSUFFICIENT_BALANCE,message:r("insufficientFunds"),value:e||""}},[e,n,r,t])};function c5(){const{marketPrice:e,marketPriceLoading:t,typedInputAmount:r}=ne(),n=te(u=>u.state.swapExecution.status),s=dW(),{error:a}=ua(),{error:o}=yc(),{error:i}=pn(),{error:c}=la(),{error:l}=xh();return N.useMemo(()=>{const u=Fo("ignore-errors");if(n!==pt.LOADING&&!(j(e||0).isZero()||j(r||0).isZero()||t||u))return a||o||i||c||l||s},[e,t,r,a,o,i,c,l,s,n])}const pW=()=>{const e=te(n=>n.state.isMarketOrder),t=te(n=>n.updateState),r=N.useCallback(()=>{t({isMarketOrder:!e})},[t,e]);return{isMarketPrice:!e,togglePrice:r}},vh=()=>{const e=te(r=>r.state.currentTime),t=xh().duration;return N.useMemo(()=>dm(e,t),[e,t])},fW=()=>{const{srcUsd1Token:e,dstUsd1Token:t}=ne(),r=dn().amountUI,n=gc().amountUI,s=fo(r,e),a=fo(n,t);return{srcAmountUsd:s,dstAmountUsd:a}},hW=()=>{const{fees:e,dstUsd1Token:t}=ne(),{amountUI:r}=gc(),n=N.useMemo(()=>!e||!r?"":j(r).multipliedBy(e).dividedBy(100).toFixed(),[r,e]);return{amount:n,percent:e,usd:fo(n,t)}},l5=()=>{const{srcToken:e,dstToken:t,account:r,chainId:n,slippage:s,config:a,module:o}=ne(),{amountWei:i}=dn(),{amountWei:c}=yc(),{amountPerTradeWei:l,totalTrades:u}=pn(),d=vh(),{amountWei:f}=Wu(),{pricePerChunkWei:h}=ua(),{milliseconds:y}=la();return N.useMemo(()=>{var g;return{srcToken:e,dstToken:t,limitPrice:c,deadline:d,srcAmount:i,srcAmountPerTrade:l,totalTrades:u,minDestAmountPerTrade:f,tradeInterval:y,triggerPricePerTrade:h,maker:r,rePermitData:km({chainId:n,srcToken:Is((e==null?void 0:e.address)||"")?((g=Bs(n))==null?void 0:g.wToken.address)||"":(e==null?void 0:e.address)||"",dstToken:(t==null?void 0:t.address)||"",srcAmount:i,deadlineMillis:d,fillDelayMillis:!u||u===1?0:y,slippage:s*100,account:r,srcAmountPerTrade:l,dstMinAmountPerTrade:f,triggerAmountPerTrade:h,config:a,module:o})}},[e,t,c,d,i,l,u,f,h,r,y,s,n,a,o])},u5=()=>{const{srcToken:e,dstToken:t,account:r}=ne(),n=Me(),{amountUI:s,usd:a}=Wu(),{amountPerTradeUI:o,amountPerTradeUsd:i,totalTrades:c}=pn(),{amountUI:l,usd:u}=ua(),d=vh(),{amountUI:f,usd:h}=yc(),{amount:y,percent:g,usd:E}=hW(),{milliseconds:v}=la(),{amountUI:w}=gc(),{srcAmountUsd:T,dstAmountUsd:C}=fW(),_=dn().amountUI,z=te(x=>x.state.isMarketOrder),S=Y2({srcToken:e,dstToken:t,account:r,limitPrice:z?void 0:f,limitPriceUsd:z?void 0:h,deadline:d,tradeInterval:v,srcAmount:_,totalTrades:c,srcAmountPerTrade:o,srcAmountPerTradeUsd:i,minDestAmountPerTrade:s,minDestAmountPerTradeUsd:a,triggerPrice:l,triggerPriceUsd:u,srcUsd:T,dstUsd:C,dstAmount:w}),m=je({value:y}),b=je({value:E});return N.useMemo(()=>({...S,fees:{label:n("fees",{value:`${g}%`}),amount:m,usd:b||"",percentage:g}}),[S,m,b,g])},d5=N.createContext({}),mW=({children:e,...t})=>B.jsx(d5.Provider,{value:t,children:e}),bW=()=>N.useContext(d5),p5=()=>{var s,a;const e=Me(),{wrapTxHash:t,srcToken:r}=te(o=>o.state.swapExecution),n=(a=(s=sc())==null?void 0:s.wToken)==null?void 0:a.symbol;return t?B.jsx("p",{className:"twap-error-wrap-msg",children:e("wrapMsg",{symbol:(r==null?void 0:r.symbol)||"",wSymbol:n||""})}):null},f5=()=>{const e=Me(),t=te(n=>n.state.swapExecution.status),r=X2();return t===pt.SUCCESS?e("createOrderActionSuccess",{name:r}):e("createOrderAction",{name:r})},yW=()=>{const e=te(y=>y.state.swapExecution.srcToken),t=Me(),{step:r,wrapTxHash:n,approveTxHash:s}=te(y=>y.state.swapExecution),a=sc(),o=G0(n),i=G0(n),c=G0(s),l=te(y=>y.state.swapExecution.status),d=Is((e==null?void 0:e.address)||"")?(a==null?void 0:a.native.symbol)||"":(e==null?void 0:e.symbol)||"",f=a==null?void 0:a.wToken.symbol,h=f5();return N.useMemo(()=>r===_s.WRAP?{title:t("wrapAction",{symbol:d}),footerLink:o,footerText:t(o?"viewOnExplorer":"proceedInWallet")}:r===_s.APPROVE?{title:t("approveAction",{symbol:d}),footerLink:c,footerText:t(c?"viewOnExplorer":"proceedInWallet")}:{title:h,footerText:l===pt.LOADING?t("proceedInWallet"):void 0},[r,c,d,h,t,o,i,f,l])},gW=({error:e})=>B.jsxs("div",{className:"twap-error",children:[B.jsx("h2",{className:"twap-error-title",children:"Transaction failed"}),(e==null?void 0:e.code)&&B.jsxs("p",{className:"twap-error-code",children:["Error code: ",e==null?void 0:e.code]}),B.jsx(p5,{})]});function xW({error:e}){const{components:t}=ne(),r=Me(),n=te(o=>{var i;return(i=o.state.swapExecution)==null?void 0:i.wrapTxHash}),s=t.SubmitOrderErrorView,a=B.jsx(Qn.Failed,{error:B.jsx(gW,{error:e}),footerLink:od,footerText:r("viewOnExplorer")});return s?B.jsx(s,{wrapTxHash:n,error:e,children:a}):a}const wW=()=>{const{components:e}=ne(),t=te(u=>u.state.swapExecution.srcToken),r=te(u=>u.state.swapExecution.dstToken),{reviewDetails:n}=bW(),s=Me(),a=te(u=>{var d;return!!((d=u.state.swapExecution)!=null&&d.status)}),o=u5(),i=e.USD,c=e.SubmitOrderMainView,l=B.jsxs(B.Fragment,{children:[B.jsx(Qn.Main,{fromTitle:s("from"),toTitle:s("to"),inUsd:i?B.jsx(i,{value:o.srcUsd,isLoading:!1}):`$${o.srcUsd}`,outUsd:i?B.jsx(i,{value:o.dstUsd,isLoading:!1}):`$${o.dstUsd}`}),!a&&B.jsxs("div",{className:"twap-create-order-bottom",children:[B.jsx(Ee.Container,{children:B.jsxs("div",{className:"twap-create-order-details",children:[B.jsx(Ee.Deadline,{deadline:o.deadline.value,label:o.deadline.label,tooltip:o.deadline.tooltip||""}),B.jsx(Ee.Price,{srcToken:t,price:o.triggerPrice.value,dstToken:r,label:o.triggerPrice.label,tooltip:o.triggerPrice.tooltip,usd:o.triggerPrice.usd}),B.jsx(Ee.Price,{srcToken:t,price:o.limitPrice.value,dstToken:r,label:o.limitPrice.label,usd:o.limitPrice.usd,tooltip:o.limitPrice.tooltip}),B.jsx(Ee.MinDestAmount,{dstToken:r,dstMinAmountOut:o.minDestAmountPerTrade.value,label:o.minDestAmountPerTrade.label,tooltip:o.minDestAmountPerTrade.tooltip||"",usd:o.minDestAmountPerTrade.usd}),B.jsx(Ee.TradeSize,{tradeSize:o.sizePerTrade.value,trades:o.totalTrades.value,srcToken:t,label:o.sizePerTrade.label,tooltip:o.sizePerTrade.tooltip}),B.jsx(Ee.TradesAmount,{trades:o.totalTrades.value,label:o.totalTrades.label,tooltip:o.totalTrades.tooltip}),B.jsx(Ee.TradeInterval,{chunks:o.totalTrades.value,fillDelayMillis:o.tradeInterval.value,label:o.tradeInterval.label,tooltip:o.tradeInterval.tooltip}),B.jsx(Ee.Recipient,{}),o.fees.amount&&B.jsx(Ee.Fees,{fees:o.fees.amount,label:o.fees.label,usd:o.fees.usd,dstTokenSymbol:r==null?void 0:r.symbol})]})}),n]})]});return c?B.jsx(c,{children:l}):l},vW=e=>{const{status:t,stepIndex:r,totalSteps:n,parsedError:s}=te(w=>w.state.swapExecution),{components:a}=ne(),o=a.Spinner,i=a.SuccessIcon,c=a.ErrorIcon,l=a.TokenLogo,{srcToken:u,dstToken:d}=ne(),f=dn().amountUI,h=gc().amountUI,y=je({value:f,decimalScale:2}),g=je({value:h,decimalScale:2}),E=N.useMemo(()=>({symbol:u==null?void 0:u.symbol,logoUrl:u==null?void 0:u.logoUrl}),[u]),v=N.useMemo(()=>({symbol:d==null?void 0:d.symbol,logoUrl:d==null?void 0:d.logoUrl}),[d]);return B.jsx(mW,{...e,children:B.jsx(Qn,{inAmount:y,outAmount:g,swapStatus:t,totalSteps:n,currentStep:yW(),currentStepIndex:r,inToken:E,outToken:v,components:{SrcTokenLogo:l&&B.jsx(l,{token:u}),DstTokenLogo:l&&B.jsx(l,{token:d}),Failed:B.jsx(xW,{error:s}),Success:B.jsx(EW,{}),Main:B.jsx(wW,{}),Loader:o,SuccessIcon:i,FailedIcon:c}})})},EW=()=>{const e=f5(),{components:t}=ne(),r=te(a=>a.state.swapExecution.orderId),n=t.SubmitOrderSuccessView,s=B.jsxs(B.Fragment,{children:[B.jsx(Qn.Success,{title:e}),B.jsx(p5,{})]});return n?B.jsx(n,{newOrderId:r,children:s}):s},kW=()=>{const{supportedChains:e}=ne();return N.useMemo(()=>e,[e])},CW=()=>{const{config:e}=ne();return N.useMemo(()=>({spender:e.repermit}),[e])},TW=()=>{var c;const{account:e,walletClient:t,overrides:r,refetchBalances:n,callbacks:s,chainId:a}=ne(),o=(c=sc())==null?void 0:c.wToken,i=V0();return Kr({mutationFn:async({onHash:l,srcAmountWei:u})=>{var h,y;if(!e)throw new Error("missing account");if(!t)throw new Error("missing walletClient");if(!o)throw new Error("tokenAddress is not defined");let d;dt.onWrapRequest(),(h=s==null?void 0:s.onWrapRequest)==null||h.call(s),r!=null&&r.wrap?d=await r.wrap(u):d=await t.writeContract({abi:_h,functionName:"deposit",account:e,address:o.address,value:BigInt(u),chain:t.chain}),l==null||l(d);const f=await i(d);if(!f)throw new Error("failed to get transaction receipt");if(f.status==="reverted")throw new Error("failed to wrap token");return dt.onWrapSuccess(d),(y=s==null?void 0:s.onWrapSuccess)==null||y.call(s,{txHash:f.transactionHash,explorerUrl:_o(f.transactionHash,a),amount:gn(o.decimals,u)}),n==null||n(),f},onError:l=>{throw dt.onWrapError(l),l}})},SW=()=>{const{account:e,walletClient:t,chainId:r,callbacks:n}=ne(),s=l5().rePermitData,a=$G();return Kr({mutationFn:async()=>{var y,g,E,v;if(!e)throw new Error("missing account");if(!t)throw new Error("missing walletClient");if(!r)throw new Error("missing chainId");const{order:o,domain:i,types:c,primaryType:l}=s;dt.onSignOrderRequest(o),(y=n==null?void 0:n.onSignOrderRequest)==null||y.call(n),console.log({domain:i,types:c,primaryType:l,message:o,account:e}),console.log("Using domain:",i),console.log("Using types:",c),console.log("Order data to sign:",JSON.stringify(o,null,2)),console.log(`Account address: ${e}`);let u;try{u=await(t==null?void 0:t.signTypedData({domain:i,types:c,primaryType:l,message:o,account:e}))}catch(w){throw(g=n==null?void 0:n.onSignOrderError)==null||g.call(n,w),dt.onSignOrderError(w),w}dt.onSignOrderSuccess(u),(E=n==null?void 0:n.onSignOrderSuccess)==null||E.call(n,u);const d=HL(u),f={v:q(d.v||0),r:d.r,s:d.s},h=await Am(o,f);return(v=n==null?void 0:n.onOrderCreated)==null||v.call(n,h),a(h),h}})},h5=()=>{const{account:e,publicClient:t,config:r}=ne();return Kr({mutationFn:async({tokenAddress:n,srcAmountWei:s})=>{if(!t)throw new Error("missing publicClient");if(!e)throw new Error("missing account");if(!r)throw new Error("missing config");const a=await t.readContract({address:n,abi:wg,functionName:"allowance",args:[e,r.repermit]}).then(i=>i.toString()),o=j(a||"0").lt(j(s).toString());return{allowance:a,approvalRequired:o}}})},AW=()=>{const{account:e,walletClient:t,overrides:r,config:n,chainId:s,callbacks:a}=ne(),o=V0(),{mutateAsync:i}=h5();return Kr({onError:c=>{dt.onApproveError(c)},mutationFn:async({token:c,onHash:l,srcAmountWei:u})=>{var y,g;if(!e)throw new Error("missing account");if(!t)throw new Error("missing walletClient");if(!n)throw new Error("missing config");(y=a==null?void 0:a.onApproveRequest)==null||y.call(a),dt.onApproveRequest();let d;if(r!=null&&r.approveOrder?d=await r.approveOrder({tokenAddress:c.address,spenderAddress:n.repermit,amount:Ls}):d=await t.writeContract({abi:wg,functionName:"approve",account:e,address:c.address,args:[n.repermit,Ls],chain:t.chain}),!d)throw new Error("failed to approve token");l(d);const f=await o(d);if(!f)throw new Error("failed to get transaction receipt");if(f.status==="reverted")throw new Error("failed to approve token");let h=!1;for(let E=0;E<3;E++){const{approvalRequired:v}=await i({tokenAddress:c.address,srcAmountWei:u});if(!v){h=!0;break}E<2&&await new Promise(w=>setTimeout(w,3e3))}if(!h)throw new Error(`Insufficient ${c.symbol} allowance to perform the swap. Please approve the token first.`);return dt.onApproveSuccess(f.transactionHash),(g=a==null?void 0:a.onApproveSuccess)==null||g.call(a,{txHash:f.transactionHash,explorerUrl:_o(f.transactionHash,s),token:c,amount:gn(c.decimals,u)}),f}})},PW=()=>{const{account:e,chainId:t,srcToken:r,dstToken:n,module:s,slippage:a}=ne(),o=ua(),i=dn().amountWei,c=pn().amountPerTradeWei,l=vh(),u=pn().totalTrades,d=la().fillDelay,f=Wu().amountWei,h=te(y=>y.state.isMarketOrder);return Kr({mutationFn:async()=>{dt.onRequestOrder({account:e,chainId:t,module:s,srcToken:r,dstToken:n,fromTokenAmount:i,srcChunkAmount:c,triggerPricePerTrade:o.pricePerChunkWei,deadline:l,fillDelay:d.unit*d.value,minDstAmountOutPerTrade:f,slippage:a,isMarketOrder:h||!1,chunksAmount:u})}})};function IW(e){const t=e.message,r=t.match(/,\s*code\s*:\s*(\d+)/i);return{message:t.replace(/^error\s*:/i,"").replace(/,\s*code\s*:\s*\d+/i,"").trim()||"",code:r?Number(r[1]):0}}const BW=()=>{const{srcToken:e,dstToken:t,chainId:r,callbacks:n}=ne(),s=AW().mutateAsync,a=TW().mutateAsync,o=SW().mutateAsync,{mutateAsync:i}=h5(),c=te(d=>d.updateSwapExecution),{amountWei:l}=dn(),u=PW().mutate;return Kr({mutationFn:async()=>{var f,h;const d=Is((e==null?void 0:e.address)||" ");try{if(!e)throw new Error("missing srcToken");if(!t)throw new Error("missing dstToken");if(!r)throw new Error("missing chainId");const y=u1(e,r);c({allowanceLoading:!0});const{approvalRequired:g}=await i({tokenAddress:y.address,srcAmountWei:l});let E=0,v=1;d&&v++,g&&v++,c({totalSteps:v,stepIndex:E,allowanceLoading:!1,status:pt.LOADING}),u(),d&&(c({step:_s.WRAP}),await a({onHash:T=>c({wrapTxHash:T}),srcAmountWei:l}),E++,c({stepIndex:E})),g&&(c({step:_s.APPROVE}),await s({token:y,onHash:T=>c({approveTxHash:T}),srcAmountWei:l}),E++,c({stepIndex:E})),c({step:_s.CREATE});const w=await o();return c({status:pt.SUCCESS,orderId:w.id}),w}catch(y){if(Pd(y))(f=n==null?void 0:n.onSubmitOrderRejected)==null||f.call(n),c({step:void 0,status:void 0,stepIndex:void 0,error:y});else{const g=IW(y);(h=n==null?void 0:n.onSubmitOrderFailed)==null||h.call(n,g),c({status:pt.FAILED,parsedError:g,error:y})}throw y}}})},FW=()=>{const{marketPrice:e,srcToken:t,dstToken:r,resetTypedInputAmount:n}=ne(),s=BW(),a=te(g=>g.updateState),{amountUI:o}=dn(),i=te(g=>g.resetState),c=te(g=>g.state.swapExecution),l=te(g=>g.updateSwapExecution),u=X2(),d=N.useCallback(()=>{(c==null?void 0:c.status)===pt.SUCCESS&&(n(),i())},[c==null?void 0:c.status,i,n]),f=N.useCallback(()=>{(c==null?void 0:c.status)!==pt.LOADING&&(a({acceptedSrcAmount:void 0,acceptedMarketPrice:void 0}),l({srcToken:t,dstToken:r,error:void 0,parsedError:void 0,status:void 0}))},[a,t,r]),h=Kr({mutationFn:async()=>(a({acceptedSrcAmount:o,acceptedMarketPrice:e}),await s.mutateAsync())}),y=N.useCallback(()=>h.mutateAsync(),[h]);return N.useMemo(()=>({reset:i,onCloseModal:d,onOpenModal:f,onSubmit:y,orderTitle:u,...c,isLoading:(c==null?void 0:c.status)===pt.LOADING,isSuccess:(c==null?void 0:c.status)===pt.SUCCESS,isFailed:(c==null?void 0:c.status)===pt.FAILED}),[i,d,y,c,u])},UW=()=>{const e=Me(),{marketPrice:t,srcToken:r,dstToken:n,marketPriceLoading:s,srcBalance:a,srcUsd1Token:o,noLiquidity:i,typedInputAmount:c}=ne(),l=s||j(o||"0").isZero()||a===void 0||j(t||"0").isZero(),u=!!(r&&n&&c&&l),d=c5(),f=N.useMemo(()=>i?e("noLiquidity"):j(c||"0").isZero()?e("enterAmount"):(d==null?void 0:d.type)===Mt.INSUFFICIENT_BALANCE?e("insufficientFunds"):e("placeOrder"),[d,e,c,i]),h=!!(d||i||u||j(c||"0").isZero()||!r||!n);return N.useMemo(()=>({disabled:h,text:f,loading:u}),[h,f,u])};Tm(Iw.version);const OW={SubmitOrderPanel:vW,Orders:KV};R.CRASH_ERROR_MESSAGE=tw,R.Components=OW,R.Configs=_t,R.DEFAULT_DURATION_OPTIONS=QL,R.DEFAULT_FILL_DELAY=Bc,R.DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE=tm,R.DEFAULT_STOP_LOSS_PERCENTAGE=Jh,R.DEFAULT_TAKE_PROFIT_LIMIT_PERCENTAGE=rm,R.DEFAULT_TAKE_PROFIT_PERCENTAGE=em,R.DISCLAIMER_URL=ew,R.EIP712_TYPES=Qh,R.ERC20_ABI=L5,R.EXCLUSIVITY_OVERRIDE_BPS=K5,R.FEES=Y5,R.IWETH_ABI=_h,R.InputErrors=Mt,R.LEGACY_EXCHANGES_MAP=Zh,R.MAX_ORDER_DURATION_MILLIS=ka,R.MIN_CHUNKS=q5,R.MIN_FILL_DELAY_MILLIS=Pc,R.MIN_FILL_DELAY_MINUTES=Vh,R.MIN_ORDER_DURATION_MILLIS=ad,R.Module=ye,R.ORBS_LOGO=X5,R.ORBS_LOGO_FALLBACK=Q5,R.ORBS_SLTP_FAQ_URL=Z5,R.ORBS_TWAP_FAQ_URL=od,R.ORBS_WEBSITE_URL=J5,R.OrderStatus=ct,R.OrderType=Ge,R.PRICE_PROTECTION_SETTINGS=JL,R.Partners=Nh,R.QUERY_PARAMS=Fc,R.REPERMIT_ABI=Dh,R.REPERMIT_PRIMARY_TYPE=Xh,R.SUGGEST_CHUNK_VALUE=W5,R.SpotProvider=ZL,R.Steps=_s,R.SwapStatus=pt,R.THE_GRAPH_ORDERS_API=qh,R.TWAP_ABI=Mh,R.TimeUnit=Gt,R.amountBN=Ac,R.amountUi=gn,R.analytics=dt,R.buildRePermitOrderData=km,R.buildV2Order=pd,R.copy=M3,R.ensureWrappedToken=u1,R.eqIgnoreCase=Ps,R.fillDelayText=l1,R.formatDecimals=Ad,R.getAccountOrders=Fm,R.getApiEndpoint=sd,R.getChunks=lm,R.getConfig=ld,R.getDeadline=dm,R.getDestTokenAmount=am,R.getDestTokenMinAmountPerChunk=om,R.getDuration=cm,R.getEstimatedDelayBetweenChunksMillis=cd,R.getExplorerUrl=_o,R.getMaxChunksError=vm,R.getMaxFillDelayError=iw,R.getMaxOrderDurationError=ym,R.getMaxPossibleChunks=um,R.getMinFillDelayError=xm,R.getMinNativeBalance=L3,R.getMinOrderDurationError=gm,R.getMinTradeSizeError=wm,R.getMinimumDelayMinutes=ow,R.getNetwork=Bs,R.getOrderExcecutionRate=$h,R.getOrderFillDelayMillis=td,R.getOrderLimitPriceRate=Gh,R.getOrderType=z3,R.getPartnerChains=Hh,R.getPartnerIdentifier=Dt,R.getPartners=Em,R.getQueryParam=Fo,R.getSrcTokenChunkAmount=pm,R.getStopLossLimitPriceError=mm,R.getStopLossPriceError=fm,R.getTakeProfitLimitPriceError=bm,R.getTakeProfitPriceError=hm,R.getTriggerPricePerChunk=im,R.isNativeAddress=Is,R.isTxRejected=Pd,R.makeElipsisAddress=Sd,R.maxUint256=Ic,R.millisToDays=d1,R.millisToMinutes=Id,R.nativeTokenAddresses=Kh,R.networks=Ft,R.parseError=N3,R.removeCommas=D3,R.setApiMode=V5,R.setUIVersion=Tm,R.shouldUnwrapOnly=Fd,R.shouldWrapOnly=Bd,R.submitOrder=Am,R.useAddresses=CW,R.useDisclaimerPanel=rW,R.useDstTokenPanel=lW,R.useDurationPanel=tW,R.useFillDelayPanel=XV,R.useFormatNumber=je,R.useInputErrors=c5,R.useInvertTradePanel=Vu,R.useLimitPricePanel=uW,R.useOrder=l5,R.useOrderHistoryPanel=WG,R.useOrderInfo=u5,R.usePartnerChains=kW,R.useSubmitOrderButton=UW,R.useSubmitOrderPanel=FW,R.useTogglePricePanel=pW,R.useTradesPanel=JV,R.useTranslations=Me,R.useTriggerPricePanel=oW,R.zeroAddress=Yh,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
126
+ `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function kG(e){e=EG(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,s=e.onKeyDown;s===void 0&&(s=H0);var a=e.onBlur;a===void 0&&(a=H0);var o=e.thousandSeparator,i=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l="");var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,h=e.onValueChange,y=iG(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=Fu(e),E=g.decimalSeparator,v=g.allowedDecimalSeparators,w=function(P){return V2(P,e)},T=function(P,O){return wG(P,O,e)},C=po(d)?u:d,_=f??xG(C,l,t);po(d)?po(u)||(_=_||typeof u=="number"):_=_||typeof d=="number";var z=function(P){return z2(P)?P:(typeof P=="number"&&(P=G2(P)),_&&typeof i=="number"?j2(P,i,!!c):P)},S=bG(z(d),z(u),!!_,w,T,h),m=S[0],b=m.numAsString,x=m.formattedValue,A=S[1],I=function(P){var O=P.target,U=P.key,L=O.selectionStart,H=O.selectionEnd,G=O.value;if(G===void 0&&(G=""),(U==="Backspace"||U==="Delete")&&H<l.length){P.preventDefault();return}if(L!==H){s(P);return}U==="Backspace"&&G[0]==="-"&&L===l.length+1&&r&&nc(O,1),i&&c&&(U==="Backspace"&&G[L-1]===E?(nc(O,L-1),P.preventDefault()):U==="Delete"&&G[L]===E&&P.preventDefault()),v!=null&&v.includes(U)&&G[L]===E&&nc(O,L+1);var Q=o===!0?",":o;U==="Backspace"&&G[L-1]===Q&&nc(O,L-1),U==="Delete"&&G[L]===Q&&nc(O,L+1),s(P)},F=function(P){var O=b;if(O.match(/\d/g)||(O=""),n||(O=fG(O)),c&&i&&(O=j2(O,i,c)),O!==b){var U=V2(O,e);A({formattedValue:U,value:O,floatValue:parseFloat(O)},{event:P,source:R0.event})}a(P)},D=function(P){return P===E?!0:L2(P)},k=function(P){var O=P.currentValue,U=P.lastValue,L=P.formattedValue,H=P.currentValueIndex,G=P.formattedValueIndex,Q=O[H],pe=L[G],me=hG(U,O),ie=me.to,de=function(Be){return T(Be).indexOf(".")+l.length};return d===0&&c&&i&&O[ie.start]===E&&de(O)<H&&de(L)>G?!1:H>=ie.start&&H<ie.end&&v&&v.includes(Q)&&pe===E?!0:Q===pe};return Object.assign(Object.assign({},y),{value:x,valueIsNumericString:!1,isValidInputCharacter:D,isCharacterSame:k,onValueChange:A,format:w,removeFormatting:T,getCaretBoundary:function(P){return vG(P,e)},onKeyDown:I,onBlur:F})}const W2=(e,t)=>N.useMemo(()=>Ac(e,t),[e,t]),cn=(e,t)=>N.useMemo(()=>gn(e,t),[e,t]),sc=()=>{const{chainId:e}=ne();return N.useMemo(()=>Bs(e),[e])},G0=e=>{const t=sc();return N.useMemo(()=>{if(!(!e||!t))return _o(e,t.id)},[e,t])},fo=(e,t)=>N.useMemo(()=>!e||!t||j(e||"0").isZero()||j(t||"0").isZero()?"":j(e||"0").times(t).toFixed(),[e,t]),CG=()=>{const{srcToken:e,dstToken:t,chainId:r}=ne();return N.useMemo(()=>Bd(e,t,r),[e,t,r])},TG=()=>{const{srcToken:e,dstToken:t,chainId:r}=ne();return N.useMemo(()=>Fd(e,t,r),[e,t,r])},SG=()=>{const e=CG(),t=TG();return e||t},j0=e=>{const{overrides:t}=ne();return N.useMemo(()=>t!=null&&t.dateFormat?t.dateFormat(e||0):ee(e).format("DD/MM/YYYY HH:mm"),[e,t==null?void 0:t.dateFormat])};function AG(){const{callbacks:e}=ne();return N.useCallback(async t=>{var r;try{await navigator.clipboard.writeText(t),(r=e==null?void 0:e.onCopy)==null||r.call(e)}catch(n){console.error("Copy failed:",n)}},[e==null?void 0:e.onCopy])}const q2=(e,t)=>N.useMemo(()=>Ad(e==null?void 0:e.toString(),t),[e,t]),je=({value:e,decimalScale:t=3,prefix:r,suffix:n})=>{var c;const s=q2(e,t),{overrides:a}=ne(),o=a==null?void 0:a.numberFormat,i=kG({allowLeadingZeros:!0,thousandSeparator:",",displayType:"text",value:s||"",decimalScale:18,prefix:r,suffix:n});return o?o(e||""):(c=i.value)==null?void 0:c.toString()},PG={expirationTooltip:"This is the date and time marking the end of the period which you have selected for your order to be executed.",tradeSizeTooltip:"The number of input tokens that will be removed from your balance and swapped for the output token in each individual trade.",totalTradesTooltip:"The total number of individual trades that will be scheduled as part of your order. Note that in limit orders, not all trades that are scheduled will be executed.",minDstAmountTooltip:" This is the minimum number of tokens that may be received. NOTE: This minimum only refers to executed trades. Some trades may not be executed if the limit price is higher than the available market prices and your order may only be partially filled.",limitPriceTooltip:"Trades will only execute if the available market price is better than the limit price, potentially resulting in partial fills or orders remaining unfilled upon expiration.",maxDurationTooltip:"This is the time period during which the order will be active. Please note that orders may be completed earlier than this time, partially filled, or remain unfilled based on the specified parameters.",tradeIntervalTootlip:"The estimated time that will elapse between each trade in your order. Note that as this time includes an allowance of two minutes for bidder auction and block settlement, which cannot be predicted exactly, actual time may vary.",triggerPriceTooltip:"The price at which the order will be executed. If the market price is higher than the trigger price, the order will be executed at the market price.",placeOrder:"Place order",enterAmount:"Enter an amount",emptyLimitPrice:"Limit price is required",insufficientFunds:"Insufficient Balance",tradeIntervalLabel:"Trade interval",expirationLabel:"Expiration",limitPrice:"Limit Price",finalExcecutionPrice:"Final execution price",marketPrice:"Market price",from:"From",to:"To (estimated)",Open:"Open",Completed:"Completed",Expired:"Expired",Canceled:"Canceled",cancelOrder:"Cancel Order",minReceivedPerTrade:"Min. received per trade",triggerPricePerChunk:"Trigger Price per trade",maxChunksError:"Max. trades amount is {maxChunks}",minChunksError:"Min. trades amount is {minChunks}",minTradeSizeError:"Min. trade size is ${minTradeSize}",allOrders:"All",minFillDelayError:"Min. trade interval is {fillDelay}",maxFillDelayError:"Max. trade interval is {fillDelay}",recipient:"Recipient",marketOrderWarning:"Each individual trade in this order will be filled at the current market price at the time of execution.",limitPriceMessage:"Limit orders may not execute when the token's price is equal or close to the limit price, due to gas and standard swap fees.",limit:"Limit",maxDurationError:"Max. expiry is {duration}",minDurationError:"Min. expiry is {duration}",expiry:"Expiry",individualTradeSize:"Individual trade size",numberOfTrades:"No. of trades",averageExecutionPrice:"Avg. execution price",twapMarket:"TWAP-market",twapLimit:"TWAP-limit",stopLoss:"Stop-loss",stopLossMarket:"Stop-loss market",stopLossLimit:"Stop-loss limit",takeProfit:"Take-profit",minReceived:"Min. received",noOrders:"No {status} Orders",noLiquidity:"No liquidity for this pair",excecutionSummary:"Execution summary",orderInfo:"Order info",wrapAction:"Wrap {symbol}",approveAction:"Approve {symbol}",createOrderAction:"Create {name} order",amountReceived:"Amount received",createdAt:"Created at",amountOut:"Amount out",status:"Status",progress:"Progress",minutes:"minutes",days:"days",tradeIntervalTitle:"Every",tradesAmountTitle:"Over",stopLossTooltip:"The trigger price at which your stop-loss order will be activated.",takeProfitTooltip:"The trigger price at which your take-profit order will be activated.",stopLossLabel:"Trigger Price",StopLossTriggerPriceError:"Trigger price must be less than market price",TakeProfitTriggerPriceError:"Trigger price must be greater than market price",triggerLimitPriceError:"Limit price must be less than trigger price",triggerPrice:"Trigger Price",tradePrice:"Trade Price",triggerMarketPriceDisclaimer:" In extreme market movements, slippage may occur and the executed price of the market order may be worse than the specified trigger price.",stopLossLimitPriceTooltip:"The stop loss order will execute at the specified limit price or better, once the stop price is triggered.",stopLossDurationTooltip:"This is the time period during which the order will be active. Please note that orders may be completed earlier than this time, or remain unfilled based on the specified parameters.",emptyTriggerPrice:"Trigger price is required",id:"ID",fees:"Fees {value}",version:"Version",maxOrderSizeError:"Max. trade size is {maxOrderSize} USD",viewOnExplorer:"View on explorer",proceedInWallet:"Proceed in wallet",wrapMsg:"Note: {symbol} was wrapped to {wSymbol}",createOrderActionSuccess:"{name} order placed"};function IG(e){let t=e;const r=/\{[^{}]*\}/g;for(;r.test(t);)t=t.replace(r,"");return t}const Me=()=>{const e=ne();return N.useCallback((r,n)=>{var o,i;const s=(o=e.getTranslation)==null?void 0:o.call(e,r,n);if(s&&s!==r)return s;const a=((i=e.translations)==null?void 0:i[r])||PG[r];return IG(a.replace(/{(\w+)}/g,(c,l)=>(n==null?void 0:n[l])||c))},[e.getTranslation,e.translations])},Uu=({value:e})=>{const t=je({value:e,decimalScale:2});return t?B.jsx("small",{className:"twap-order-details__detail-row-value-usd",children:` ($${t})`}):null},BG=({deadline:e,label:t,tooltip:r})=>{const n=j0(e);return B.jsx(Ar,{title:t,tooltip:r,children:n})},FG=({price:e,dstToken:t,label:r,tooltip:n,usd:s,srcToken:a})=>{const o=je({value:e});return j(e||0).isZero()?null:B.jsx(Ar,{title:r,tooltip:n,children:B.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:["1 ",a==null?void 0:a.symbol," = ",`${o||"-"} ${t==null?void 0:t.symbol}`,B.jsx(Uu,{value:s})]})})},UG=({tradeSize:e,srcToken:t,trades:r,label:n,tooltip:s})=>r===1?null:B.jsx(Ar,{title:n,tooltip:s,children:`${e||"-"} ${(t==null?void 0:t.symbol)||""}`}),OG=({dstToken:e,dstMinAmountOut:t,label:r,tooltip:n,usd:s})=>{const a=je({value:t});return j(t||0).isZero()?null:B.jsxs(Ar,{title:r,tooltip:n,children:[`${t?a:"-"} ${e==null?void 0:e.symbol}`,B.jsx(Uu,{value:s})]})},_G=({trades:e,label:t,tooltip:r})=>e===1?null:B.jsx(Ar,{title:t,tooltip:r,children:e}),DG=()=>{var s;const e=Me(),{account:t}=ne(),r=(s=sc())==null?void 0:s.explorer,n=Sd(t);return B.jsx(Ar,{title:e("recipient")||"",children:r?B.jsx("a",{href:`${r}/address/${t}`,target:"_blank",children:n}):n})},MG=({fillDelayMillis:e,chunks:t=0,label:r,tooltip:n})=>{const s=N.useMemo(()=>l1(e),[e]);return t===1?null:B.jsx(Ar,{title:r,tooltip:n,children:s})},Ar=({title:e,tooltip:t,children:r,className:n="",onClick:s,style:a})=>{const{components:o}=ne(),i=o.Tooltip;return B.jsxs("div",{className:`${n} twap-order-details__detail-row`,onClick:s,style:a,children:[B.jsxs("div",{className:"twap-order-details__detail-row-label",children:[B.jsx("p",{className:"twap-order-details__detail-row-label-value",children:e}),t&&i&&B.jsx(i,{tooltipText:t})]}),B.jsx("div",{className:"twap-order-details__detail-row-value",children:r})]})},NG=({id:e})=>{const{components:t}=ne(),r=t==null?void 0:t.Tooltip,n=AG();return e.startsWith("0x")?B.jsx(Ar,{title:"ID",onClick:()=>n(e),style:{cursor:"pointer"},children:r&&B.jsx(r,{tooltipText:e,children:B.jsxs("div",{className:"twap-order-details__detail-row-value-id",children:[B.jsx("p",{children:Sd(e)}),B.jsx(oz.AiOutlineCopy,{})]})})}):B.jsx(Ar,{title:"ID",children:e})},LG=({version:e})=>B.jsx(Ar,{title:"Version",children:e});function Ee({children:e,className:t=""}){return B.jsx("div",{className:`${t} twap-order-details`,children:e})}const zG=({children:e})=>e,RG=({fees:e,label:t,usd:r,dstTokenSymbol:n})=>{const s=je({value:e});return B.jsxs(Ar,{title:t,children:[`${e?s:"-"} ${n}`,B.jsx(Uu,{value:r})]})};Ee.Deadline=BG,Ee.Fees=RG,Ee.TradeSize=UG,Ee.MinDestAmount=OG,Ee.TradesAmount=_G,Ee.Recipient=DG,Ee.TradeInterval=MG,Ee.DetailRow=Ar,Ee.Price=FG,Ee.OrderID=NG,Ee.Container=zG,Ee.OrderVersion=LG,Ee.USD=Uu;const V0=()=>{const{publicClient:e}=ne();return Zr({mutationFn:async t=>{if(!e)throw new Error("publicClient is not defined");const r=10;let n=0,s=1e3;for(;n<r;)try{return await e.waitForTransactionReceipt({hash:t,confirmations:2,retryDelay:s})}catch(a){if(n++,n>=r)throw new Error(`Failed after ${r} attempts: ${a}`);await new Promise(o=>setTimeout(o,s)),s*=2}}}).mutateAsync},Y2=e=>{const t=Me(),r=je({value:e.srcAmount}),n=je({value:e.limitPrice}),s=je({value:e.limitPriceUsd}),a=je({value:e.srcAmountPerTrade}),o=je({value:e.srcAmountPerTradeUsd,decimalScale:2}),i=je({value:e.minDestAmountPerTrade}),c=je({value:e.minDestAmountPerTradeUsd,decimalScale:2}),l=je({value:e.triggerPrice}),u=je({value:e.triggerPriceUsd,decimalScale:2}),d=je({value:e.srcUsd,decimalScale:2}),f=je({value:e.dstUsd,decimalScale:2}),h=je({value:e.dstAmount});return N.useMemo(()=>({srcToken:e.srcToken,dstToken:e.dstToken,srcUsd:d||"",dstUsd:f||"",limitPrice:{label:t("limitPrice"),tooltip:t("limitPriceTooltip"),value:n||"",usd:s||""},deadline:{tooltip:t("expirationTooltip"),label:t("expirationLabel"),value:e.deadline||0},srcAmount:{label:t("amountOut"),value:r||"",usd:d||""},dstAmount:{value:h||"",usd:f||""},sizePerTrade:{tooltip:t("tradeSizeTooltip"),label:t("individualTradeSize"),value:a||"",usd:o},totalTrades:{tooltip:t("totalTradesTooltip"),label:t("numberOfTrades"),value:e.totalTrades||0},minDestAmountPerTrade:{tooltip:t("minDstAmountTooltip"),label:t(e.totalTrades&&e.totalTrades>1?"minReceivedPerTrade":"minReceived"),value:i||"",usd:c},tradeInterval:{tooltip:t("tradeIntervalTootlip"),label:t("tradeIntervalLabel"),value:e.tradeInterval||0},triggerPrice:{tooltip:t("triggerPriceTooltip"),label:t("triggerPrice"),value:l||"",usd:u},recipient:{label:t("recipient"),value:e.account||""}}),[d,f,n,r,a,o,i,l,u,n,s,h,f,c])},K2=e=>{const{orders:t}=Ou(),{useToken:r,config:n}=ne(),s=Me(),a=N.useMemo(()=>t==null?void 0:t.all.find(C=>C.id===e),[t,e])||{},o=Q2(a),i=r==null?void 0:r(a==null?void 0:a.srcTokenAddress),c=r==null?void 0:r(a==null?void 0:a.dstTokenAddress),l=cn(i==null?void 0:i.decimals,a==null?void 0:a.srcAmount),u=jG(i,c,a),d=je({value:VG(i,c,a)}),f=je({value:cn(i==null?void 0:i.decimals,a==null?void 0:a.srcAmountFilled)}),h=je({value:cn(c==null?void 0:c.decimals,a==null?void 0:a.dstAmountFilled)}),y=je({value:a==null?void 0:a.progress,decimalScale:2}),g=cn(i==null?void 0:i.decimals,a==null?void 0:a.srcAmountPerTrade),E=cn(c==null?void 0:c.decimals,a==null?void 0:a.dstMinAmountPerTrade),v=cn(c==null?void 0:c.decimals,j(a==null?void 0:a.triggerPricePerTrade).multipliedBy(a==null?void 0:a.totalTradesAmount).toFixed()),w=N.useMemo(()=>a?a.version===2?a.fillDelay:n.twapConfig?td(a,n.twapConfig):0:0,[a,n]),T=Y2({srcToken:i,dstToken:c,account:a==null?void 0:a.maker,limitPrice:u,deadline:a==null?void 0:a.deadline,tradeInterval:w,srcAmount:l,totalTrades:a==null?void 0:a.totalTradesAmount,srcAmountPerTrade:g,minDestAmountPerTrade:E,triggerPrice:v});return N.useMemo(()=>({original:a,title:o,...T,createdAt:{label:s("createdAt"),value:a==null?void 0:a.createdAt},id:{label:s("id"),value:a==null?void 0:a.id},amountInFilled:{label:s("amountOut"),value:f},amountOutFilled:{label:s("amountReceived"),value:h,token:c},progress:{label:s("progress"),value:y},excecutionPrice:{label:s((a==null?void 0:a.totalTradesAmount)===1?"finalExcecutionPrice":"averageExecutionPrice"),value:d},version:{label:s("version"),value:a==null?void 0:a.version}}),[a,s,d,f,h,y,o,i,c,T])},Z2=e=>{const t=Me();return N.useMemo(()=>{switch(e){case Ge.TWAP_MARKET:return t("twapMarket");case Ge.TWAP_LIMIT:return t("twapLimit");case Ge.STOP_LOSS_MARKET:return t("stopLossMarket");case Ge.STOP_LOSS_LIMIT:return t("stopLossLimit");case Ge.TAKE_PROFIT:return t("takeProfit");default:return t("twapMarket")}},[t,e])},HG=()=>{const{module:e}=ne(),t=te(r=>r.state.isMarketOrder);return N.useMemo(()=>e===ye.TWAP?t?Ge.TWAP_MARKET:Ge.TWAP_LIMIT:e===ye.LIMIT?t?Ge.LIMIT:Ge.TWAP_LIMIT:e===ye.STOP_LOSS?t?Ge.STOP_LOSS_MARKET:Ge.STOP_LOSS_LIMIT:e===ye.TAKE_PROFIT?Ge.TAKE_PROFIT:Ge.TWAP_MARKET,[e,t])},X2=()=>{const e=HG();return Z2(e)},Q2=e=>Z2(e==null?void 0:e.type),W0=()=>{const{account:e,config:t,chainId:r}=ne();return N.useMemo(()=>["useTwapOrderHistoryManager",e,t==null?void 0:t.adapter,r],[e,t,r])},$G=()=>{const e=Mc(),{account:t}=ne(),r=W0();return N.useCallback(n=>{e.setQueryData(r,s=>s?s!=null&&s.some(a=>a.id===n.id)?s:[n,...s]:[n])},[e,r,t])},GG=()=>{const{callbacks:e,refetchBalances:t}=ne(),r=Mc(),n=W0();return N.useCallback(s=>{var c;const a=r.getQueryData(n);let o=!1;const i=[];a&&a.forEach(l=>{var d;const u=s.find(f=>f.id===l.id);u&&u.progress!==l.progress&&(o=!0,i.push(u),u.status===ct.Completed&&((d=e==null?void 0:e.onOrderFilled)==null||d.call(e,u)))}),o&&((c=e==null?void 0:e.onOrdersProgressUpdate)==null||c.call(e,i),t==null||t())},[r,n,e,t])},J2=()=>{const{account:e,config:t,chainId:r}=ne(),n=W0(),s=GG();return d3({refetchInterval:XL,refetchOnWindowFocus:!0,retry:!1,staleTime:1/0,queryKey:n,queryFn:async({signal:o})=>{if(!e||!r||!t)return[];const i=await Fm({signal:o,chainId:r,config:t,account:e});return s(i),i.map(c=>t!=null&&t.twapConfig?{...c,fillDelayMillis:td(c,t.twapConfig)}:c)}})},Ou=()=>{const{data:e,isLoading:t,error:r,refetch:n,isRefetching:s}=J2(),{mutateAsync:a}=q0();return N.useMemo(()=>({orders:{all:e??[],open:_u(e??[],ct.Open),completed:_u(e??[],ct.Completed),expired:_u(e??[],ct.Expired),canceled:_u(e??[],ct.Canceled)},isLoading:t,error:r,refetch:()=>n().then(o=>o.data),cancelOrder:a,isRefetching:s}),[e,t,r,n,a,s])},ex=()=>{const e=te(r=>r.state.orderHistoryStatusFilter),{orders:t}=Ou();return N.useMemo(()=>e?t.all.filter(r=>r.status.toLowerCase()===e.toLowerCase())||[]:t.all,[e,t])},_u=(e,t)=>e.filter(r=>r.status===t).sort((r,n)=>n.createdAt-r.createdAt),jG=(e,t,r)=>N.useMemo(()=>{if(!(!e||!t||!r||r!=null&&r.isMarketPrice))return Gh(r,e==null?void 0:e.decimals,t==null?void 0:t.decimals)},[r,e,t]),VG=(e,t,r)=>N.useMemo(()=>{if(!(!e||!t||!r))return $h(r,e.decimals,t.decimals)},[r,e,t]),tx=()=>{const e=te(r=>r.updateState),t=te(r=>r.state.orderIdsToCancel);return N.useCallback(r=>{t!=null&&t.includes(r)?e({orderIdsToCancel:t==null?void 0:t.filter(n=>n!==r)}):e({orderIdsToCancel:[...t||[],r]})},[e,t])},WG=()=>{var S,m;const e=Me(),{orders:t,isLoading:r,refetch:n,isRefetching:s}=Ou(),{mutateAsync:a,isPending:o}=q0(),i=ex(),c=te(b=>b.updateState),l=te(b=>b.state.orderHistoryStatusFilter),u=te(b=>b.state.cancelOrdersMode),d=te(b=>b.state.orderIdsToCancel),f=N.useCallback(b=>c({cancelOrdersMode:b,orderIdsToCancel:[]}),[c]),h=N.useCallback(()=>c({selectedOrderID:void 0}),[c]),y=N.useCallback(b=>a({orders:b}),[a]),g=N.useCallback(b=>c({orderHistoryStatusFilter:b}),[]),E=N.useMemo(()=>{const b=Object.keys(ct).map(x=>({text:x,value:x}));return[{text:e("allOrders"),value:""},...b]},[e]),v=tx(),w=te(b=>b.state.selectedOrderID),T=K2(w),C=N.useMemo(()=>t.all.filter(b=>d==null?void 0:d.includes(b.id)),[t,d]),_=N.useCallback(()=>c({orderIdsToCancel:t.open.map(b=>b.id)}),[c,t]),z=N.useCallback(b=>a({orders:[b]}).then(x=>(x==null?void 0:x[0])||""),[a]);return{refetch:n,onHideSelectedOrder:h,onCancelOrders:y,onCancelOrder:z,onSelectStatus:g,onToggleCancelOrdersMode:f,onSelectOrder:v,isRefetching:s,orders:t,ordersToDisplay:i,isLoading:r,selectedOrder:w?T:void 0,openOrdersCount:((S=t==null?void 0:t.open)==null?void 0:S.length)||0,isCancelOrdersLoading:o,selectedStatus:l||((m=E[0])==null?void 0:m.value)||"",statuses:E,cancelOrdersMode:u,ordersToCancel:C,onSelectAllOrdersToCancel:_}},qG=()=>{const{refetch:e}=J2();return Zr({mutationFn:async t=>{var r;for(;;){const n=(r=await e())==null?void 0:r.data;if(!n)throw new Error("orders not found");if(t.every(a=>{const o=n.find(i=>i.id===a);return(o==null?void 0:o.status)===ct.Canceled}))break;await new Promise(a=>setTimeout(a,1e3))}}})},q0=()=>{const{account:e,walletClient:t,publicClient:r,config:n,callbacks:s,chainId:a}=ne(),o=V0(),i=qG().mutateAsync,c=te(d=>d.updateState),l=async d=>{dt.onCancelOrderRequest(d.map(f=>f.id.toString()),1);try{return(await Promise.all(d.map(h=>t.writeContract({account:e,address:h.twapAddress,abi:Mh,functionName:"cancel",args:[h.id],chain:t.chain}))))[0]}catch(f){throw dt.onCancelOrderError(f),f}},u=async d=>{var f;try{dt.onCancelOrderRequest(d.map(g=>g.hash),2);const h=await t.writeContract({account:e,address:n.repermit,abi:Dh,functionName:"cancel",args:[d.map(g=>g.hash)],chain:t.chain}),y=await o(h);if(!y)throw new Error("failed to get transaction receipt");if(y.status==="reverted")throw new Error("failed to cancel order");return dt.onCancelOrderSuccess(h),(f=s==null?void 0:s.onCancelOrderSuccess)==null||f.call(s,{orders:d,txHash:h,explorerUrl:_o(h,a)}),y.transactionHash}catch(h){throw dt.onCancelOrderError(h),h}};return Zr({mutationFn:async({orders:d})=>{var f,h;if(!e||!t||!r||!n)throw new Error("missing required parameters");try{(f=s==null?void 0:s.onCancelOrderRequest)==null||f.call(s,d),c({cancelOrderStatus:pt.LOADING,cancelOrderTxHash:void 0,cancelOrderError:void 0});const y=d.filter(w=>w.version===1),g=d.filter(w=>w.version===2),[E,v]=await Promise.all([y.length?l(y):Promise.resolve(""),g.length?u(g):Promise.resolve("")]);return await i(d.map(w=>w.id)),c({cancelOrderStatus:pt.SUCCESS,orderIdsToCancel:[]}),[...E||[],v]}catch(y){console.error("cancel order error",y),(h=s==null?void 0:s.onCancelOrderFailed)==null||h.call(s,y),Pd(y)?c({cancelOrderStatus:void 0}):(c({cancelOrderStatus:pt.FAILED}),dt.onCancelOrderError(y))}}})},rx=N.createContext({}),Rt=()=>N.useContext(rx),YG=()=>{const e=te(c=>c.state.selectedOrderID),t=K2(e),r=Me(),[n,s]=N.useState("panel1"),{components:a}=ne(),o=a.TokenLogo;N.useEffect(()=>{s("panel1")},[t.id.value]);const i=c=>{s(n===c?!1:c)};return t?B.jsx(rx.Provider,{value:{order:t},children:B.jsxs("div",{className:"twap-orders__selected-order",children:[B.jsx(c1,{SrcTokenLogo:o&&B.jsx(o,{token:t.srcToken}),DstTokenLogo:o&&B.jsx(o,{token:t.dstToken}),fromTitle:r("from"),inToken:t.srcToken,toTitle:r("to"),outToken:t.dstToken}),B.jsx(Ee.Container,{children:B.jsxs("div",{className:"twap-orders__selected-order-bottom",children:[B.jsxs("div",{className:"twap-orders__selected-order-accordions",children:[B.jsx(nx,{title:r("excecutionSummary"),onClick:()=>i("panel1"),expanded:n==="panel1",children:B.jsx(nj,{})}),B.jsx(nx,{title:r("orderInfo"),expanded:n==="panel2",onClick:()=>i("panel2"),children:B.jsx(KG,{})})]}),B.jsx(aj,{})]})})]})}):null},nx=({expanded:e,onClick:t,children:r,title:n})=>B.jsxs("div",{className:"twap-orders__selected-order-accordion",children:[B.jsxs("div",{onClick:t,className:"twap-orders__selected-order-accordion-trigger",children:[B.jsx("p",{children:n}),B.jsx(sz.IoIosArrowDown,{style:{transform:e?"rotate(180deg)":"rotate(0deg)"}})]}),e&&B.jsx("div",{className:"twap-orders__selected-order-accordion-details",children:r})]}),KG=()=>B.jsxs(Ee,{children:[B.jsx(rj,{}),B.jsx(oj,{}),B.jsx(JG,{}),B.jsx(ij,{}),B.jsx(ZG,{}),B.jsx(XG,{}),B.jsx(QG,{}),B.jsx(ej,{}),B.jsx(tj,{}),B.jsx(pj,{}),B.jsx(Ee.Recipient,{})]}),ZG=()=>{const{order:e}=Rt();return B.jsx(Ee.TradeSize,{tradeSize:e.sizePerTrade.value,srcToken:e.srcToken,label:e.sizePerTrade.label,tooltip:e.sizePerTrade.tooltip,trades:e.totalTrades.value})},XG=()=>{const{order:e}=Rt();return B.jsx(Ee.TradesAmount,{trades:e.totalTrades.value,label:e.totalTrades.label,tooltip:e.totalTrades.tooltip})},QG=()=>{const{order:e}=Rt();return B.jsx(Ee.MinDestAmount,{dstToken:e.dstToken,dstMinAmountOut:e.minDestAmountPerTrade.value,label:e.minDestAmountPerTrade.label,tooltip:e.minDestAmountPerTrade.tooltip})},JG=()=>{const{order:e}=Rt();return B.jsx(Ee.Deadline,{deadline:e.deadline.value,label:e.deadline.label,tooltip:e.deadline.tooltip})},ej=()=>{const{order:e}=Rt();return B.jsx(Ee.TradeInterval,{fillDelayMillis:e.tradeInterval.value,chunks:e.totalTrades.value,label:e.tradeInterval.label,tooltip:e.tradeInterval.tooltip})},tj=()=>{const{order:e}=Rt();return B.jsx(Ee.Price,{srcToken:e.srcToken,dstToken:e.dstToken,price:e.triggerPrice.value,label:e.triggerPrice.label,tooltip:e.triggerPrice.tooltip})},rj=()=>{const{order:e}=Rt();return B.jsx(Ee.OrderID,{id:e.id.value||""})},nj=()=>B.jsxs(Ee,{children:[B.jsx(uj,{}),B.jsx(cj,{}),B.jsx(sj,{}),B.jsx(dj,{}),B.jsx(fj,{})]}),sj=()=>{var r;const{order:e}=Rt(),t=je({value:e.amountOutFilled.value,decimalScale:3});return e.amountOutFilled.value?B.jsx(Ee.DetailRow,{title:e.amountOutFilled.label,children:B.jsxs("p",{children:[t||"-"," ",(r=e.dstToken)==null?void 0:r.symbol]})}):null},aj=()=>{const{order:e}=Rt(),t=Me(),{mutateAsync:r,isPending:n}=q0(),{components:s}=ne(),a=s.Button,o=N.useCallback(async()=>r({orders:[e.original]}),[r,e]);return!e||e.original.status!==ct.Open||!a?null:B.jsx(a,{loading:n,onClick:o,disabled:n,className:"twap-cancel-order",text:t("cancelOrder"),children:t("cancelOrder")})},oj=()=>{const{order:e}=Rt(),t=Me(),r=j0(e.createdAt.value);return B.jsx(Ee.DetailRow,{title:t("createdAt")||"",children:B.jsx("p",{children:r})})},ij=()=>{var n;const{order:e}=Rt(),t=Me(),r=je({value:e.srcAmount.value,decimalScale:3});return B.jsx(Ee.DetailRow,{title:t("amountOut")||"",children:B.jsxs("p",{children:[r||0," ",(n=e.srcToken)==null?void 0:n.symbol]})})},cj=()=>{var r;const{order:e}=Rt(),t=je({value:e.amountInFilled.value,decimalScale:3});return B.jsx(Ee.DetailRow,{title:e.amountInFilled.label,children:B.jsxs("p",{children:[t||"-"," ",(r=e.srcToken)==null?void 0:r.symbol]})})},lj=()=>{const{order:e}=Rt(),t=Me();return N.useMemo(()=>{switch(e.original.status){case ct.Open:return t("Open")||"";case ct.Completed:return t("Completed")||"";case ct.Expired:return t("Expired")||"";case ct.Canceled:return t("Canceled")||""}},[e.original.status,t])},uj=()=>{const e=Me(),t=lj();return B.jsx(Ee.DetailRow,{title:e("status")||"",children:B.jsx("p",{children:t})})},dj=()=>{const{order:e}=Rt(),t=je({value:e.progress.value,decimalScale:2});return B.jsx(Ee.DetailRow,{title:e.progress.label,children:B.jsxs("p",{children:[t||0,"%"]})})},pj=()=>{const{order:e}=Rt(),t=Me();return e.limitPrice.value?B.jsx(Ee.Price,{label:t("limitPrice")||"",price:e.limitPrice.value,srcToken:e.srcToken,dstToken:e.dstToken,tooltip:e.limitPrice.tooltip}):null},fj=()=>{const{order:e}=Rt();return e.excecutionPrice.value?B.jsx(Ee.Price,{label:e.excecutionPrice.label,price:e.excecutionPrice.value,srcToken:e.srcToken,dstToken:e.dstToken}):null};var Y0={},sx;function hj(){if(sx)return Y0;sx=1;var e=lu.GenIcon;return Y0.HiArrowRight=function(r){return e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(r)},Y0}var mj=hj();const Du=0,hs=1,ho=2,ax=4;function ox(e){return()=>e}function bj(e){e()}function ix(e,t){return r=>e(t(r))}function cx(e,t){return()=>e(t)}function yj(e,t){return r=>e(t,r)}function K0(e){return e!==void 0}function gj(...e){return()=>{e.map(bj)}}function mo(){}function Mu(e,t){return t(e),e}function xj(e,t){return t(e)}function tt(...e){return e}function Ve(e,t){return e(hs,t)}function Ce(e,t){e(Du,t)}function Z0(e){e(ho)}function at(e){return e(ax)}function ce(e,t){return Ve(e,yj(t,Du))}function Vr(e,t){const r=e(hs,n=>{r(),t(n)});return r}function lx(e){let t,r;return n=>s=>{t=s,r&&clearTimeout(r),r=setTimeout(()=>{n(t)},e)}}function ux(e,t){return e===t}function rt(e=ux){let t;return r=>n=>{e(t,n)||(t=n,r(n))}}function fe(e){return t=>r=>{e(r)&&t(r)}}function re(e){return t=>ix(t,e)}function ln(e){return t=>()=>{t(e)}}function W(e,...t){const r=wj(...t);return(n,s)=>{switch(n){case ho:Z0(e);return;case hs:return Ve(e,r(s))}}}function un(e,t){return r=>n=>{r(t=e(t,n))}}function aa(e){return t=>r=>{e>0?e--:t(r)}}function $n(e){let t=null,r;return n=>s=>{t=s,!r&&(r=setTimeout(()=>{r=void 0,n(t)},e))}}function Te(...e){const t=new Array(e.length);let r=0,n=null;const s=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const i=Math.pow(2,o);Ve(a,c=>{const l=r;r=r|i,t[o]=c,l!==s&&r===s&&n&&(n(),n=null)})}),a=>o=>{const i=()=>{a([o].concat(t))};r===s?i():n=i}}function wj(...e){return t=>e.reduceRight(xj,t)}function vj(e){let t,r;const n=()=>t==null?void 0:t();return function(s,a){switch(s){case hs:return a?r===a?void 0:(n(),r=a,t=Ve(e,a),t):(n(),mo);case ho:n(),r=null;return}}}function K(e){let t=e;const r=Ue();return(n,s)=>{switch(n){case Du:t=s;break;case hs:{s(t);break}case ax:return t}return r(n,s)}}function Ht(e,t){return Mu(K(t),r=>ce(e,r))}function Ue(){const e=[];return(t,r)=>{switch(t){case Du:e.slice().forEach(n=>{n(r)});return;case ho:e.splice(0,e.length);return;case hs:return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}}}function mr(e){return Mu(Ue(),t=>ce(e,t))}function He(e,t=[],{singleton:r}={singleton:!0}){return{constructor:e,dependencies:t,id:Ej(),singleton:r}}const Ej=()=>Symbol();function kj(e){const t=new Map,r=({constructor:n,dependencies:s,id:a,singleton:o})=>{if(o&&t.has(a))return t.get(a);const i=n(s.map(c=>r(c)));return o&&t.set(a,i),i};return r(e)}function Et(...e){const t=Ue(),r=new Array(e.length);let n=0;const s=Math.pow(2,e.length)-1;return e.forEach((a,o)=>{const i=Math.pow(2,o);Ve(a,c=>{r[o]=c,n=n|i,n===s&&Ce(t,r)})}),function(a,o){switch(a){case ho:{Z0(t);return}case hs:return n===s&&o(r),Ve(t,o)}}}function he(e,t=ux){return W(e,rt(t))}function X0(...e){return function(t,r){switch(t){case ho:return;case hs:return gj(...e.map(n=>Ve(n,r)))}}}var nr=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(nr||{});const Cj={0:"debug",3:"error",1:"log",2:"warn"},Tj=()=>typeof globalThis>"u"?window:globalThis,ms=He(()=>{const e=K(3);return{log:K((t,r,n=1)=>{var s;const a=(s=Tj().VIRTUOSO_LOG_LEVEL)!=null?s:at(e);n>=a&&console[Cj[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,r)}),logLevel:e}},[],{singleton:!0});function oa(e,t,r){return Q0(e,t,r).callbackRef}function Q0(e,t,r){const n=N.useRef(null);let s=o=>{};const a=N.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(o=>{const i=()=>{const c=o[0].target;c.offsetParent!==null&&e(c)};r?i():requestAnimationFrame(i)}):null,[e,r]);return s=o=>{o&&t?(a==null||a.observe(o),n.current=o):(n.current&&(a==null||a.unobserve(n.current)),n.current=null)},{callbackRef:s,ref:n}}function Sj(e,t,r,n,s,a,o,i,c){const l=N.useCallback(u=>{const d=Aj(u.children,t,i?"offsetWidth":"offsetHeight",s);let f=u.parentElement;for(;!f.dataset.virtuosoScroller;)f=f.parentElement;const h=f.lastElementChild.dataset.viewportType==="window";let y;h&&(y=f.ownerDocument.defaultView);const g=o?i?o.scrollLeft:o.scrollTop:h?i?y.scrollX||y.document.documentElement.scrollLeft:y.scrollY||y.document.documentElement.scrollTop:i?f.scrollLeft:f.scrollTop,E=o?i?o.scrollWidth:o.scrollHeight:h?i?y.document.documentElement.scrollWidth:y.document.documentElement.scrollHeight:i?f.scrollWidth:f.scrollHeight,v=o?i?o.offsetWidth:o.offsetHeight:h?i?y.innerWidth:y.innerHeight:i?f.offsetWidth:f.offsetHeight;n({scrollHeight:E,scrollTop:Math.max(g,0),viewportHeight:v}),a==null||a(i?dx("column-gap",getComputedStyle(u).columnGap,s):dx("row-gap",getComputedStyle(u).rowGap,s)),d!==null&&e(d)},[e,t,s,a,o,n,i]);return Q0(l,r,c)}function Aj(e,t,r,n){const s=e.length;if(s===0)return null;const a=[];for(let o=0;o<s;o++){const i=e.item(o);if(i.dataset.index===void 0)continue;const c=parseInt(i.dataset.index),l=parseFloat(i.dataset.knownSize),u=t(i,r);if(u===0&&n("Zero-sized element, this should not happen",{child:i},nr.ERROR),u===l)continue;const d=a[a.length-1];a.length===0||d.size!==u||d.endIndex!==c-1?a.push({endIndex:c,size:u,startIndex:c}):a[a.length-1].endIndex++}return a}function dx(e,t,r){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&r(`${e} was not resolved to pixel value correctly`,t,nr.WARN),t==="normal"?0:parseInt(t??"0",10)}function px(e,t,r){const n=N.useRef(null),s=N.useCallback(c=>{if(!(c!=null&&c.offsetParent))return;const l=c.getBoundingClientRect(),u=l.width;let d,f;if(t){const h=t.getBoundingClientRect(),y=l.top-h.top;f=h.height-Math.max(0,y),d=y+t.scrollTop}else{const h=o.current.ownerDocument.defaultView;f=h.innerHeight-Math.max(0,l.top),d=l.top+h.scrollY}n.current={offsetTop:d,visibleHeight:f,visibleWidth:u},e(n.current)},[e,t]),{callbackRef:a,ref:o}=Q0(s,!0,r),i=N.useCallback(()=>{s(o.current)},[s,o]);return N.useEffect(()=>{var c;if(t){t.addEventListener("scroll",i);const l=new ResizeObserver(()=>{requestAnimationFrame(i)});return l.observe(t),()=>{t.removeEventListener("scroll",i),l.unobserve(t)}}else{const l=(c=o.current)==null?void 0:c.ownerDocument.defaultView;return l==null||l.addEventListener("scroll",i),l==null||l.addEventListener("resize",i),()=>{l==null||l.removeEventListener("scroll",i),l==null||l.removeEventListener("resize",i)}}},[i,t,o]),a}const Wt=He(()=>{const e=Ue(),t=Ue(),r=K(0),n=Ue(),s=K(0),a=Ue(),o=Ue(),i=K(0),c=K(0),l=K(0),u=K(0),d=Ue(),f=Ue(),h=K(!1),y=K(!1),g=K(!1);return ce(W(e,re(({scrollTop:E})=>E)),t),ce(W(e,re(({scrollHeight:E})=>E)),o),ce(t,s),{deviation:r,fixedFooterHeight:l,fixedHeaderHeight:c,footerHeight:u,headerHeight:i,horizontalDirection:y,scrollBy:f,scrollContainerState:e,scrollHeight:o,scrollingInProgress:h,scrollTo:d,scrollTop:t,skipAnimationFrameInResizeObserver:g,smoothScrollTargetReached:n,statefulScrollTop:s,viewportHeight:a}},[],{singleton:!0}),ac={lvl:0};function fx(e,t){const r=e.length;if(r===0)return[];let{index:n,value:s}=t(e[0]);const a=[];for(let o=1;o<r;o++){const{index:i,value:c}=t(e[o]);a.push({end:i-1,start:n,value:s}),n=i,s=c}return a.push({end:1/0,start:n,value:s}),a}function Ye(e){return e===ac}function oc(e,t){if(!Ye(e))return t===e.k?e.v:t<e.k?oc(e.l,t):oc(e.r,t)}function Wr(e,t,r="k"){if(Ye(e))return[-1/0,void 0];if(Number(e[r])===t)return[e.k,e.v];if(Number(e[r])<t){const n=Wr(e.r,t,r);return n[0]===-1/0?[e.k,e.v]:n}return Wr(e.l,t,r)}function br(e,t,r){return Ye(e)?bx(t,r,1):t===e.k?St(e,{k:t,v:r}):t<e.k?yx(St(e,{l:br(e.l,t,r)})):yx(St(e,{r:br(e.r,t,r)}))}function bo(){return ac}function yo(e,t,r){if(Ye(e))return[];const n=Wr(e,t)[0];return Pj(eh(e,n,r))}function J0(e,t){if(Ye(e))return ac;const{k:r,l:n,r:s}=e;if(t===r){if(Ye(n))return s;if(Ye(s))return n;{const[a,o]=mx(n);return Nu(St(e,{k:a,l:hx(n),v:o}))}}else return t<r?Nu(St(e,{l:J0(n,t)})):Nu(St(e,{r:J0(s,t)}))}function ia(e){return Ye(e)?[]:[...ia(e.l),{k:e.k,v:e.v},...ia(e.r)]}function eh(e,t,r){if(Ye(e))return[];const{k:n,l:s,r:a,v:o}=e;let i=[];return n>t&&(i=i.concat(eh(s,t,r))),n>=t&&n<=r&&i.push({k:n,v:o}),n<=r&&(i=i.concat(eh(a,t,r))),i}function Nu(e){const{l:t,lvl:r,r:n}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(th(t))return gx(St(e,{lvl:r-1}));if(!Ye(t)&&!Ye(t.r))return St(t.r,{l:St(t,{r:t.r.l}),lvl:r,r:St(e,{l:t.r.r,lvl:r-1})});throw new Error("Unexpected empty nodes")}else{if(th(e))return rh(St(e,{lvl:r-1}));if(!Ye(n)&&!Ye(n.l)){const s=n.l,a=th(s)?n.lvl-1:n.lvl;return St(s,{l:St(e,{lvl:r-1,r:s.l}),lvl:s.lvl+1,r:rh(St(n,{l:s.r,lvl:a}))})}else throw new Error("Unexpected empty nodes")}}function St(e,t){return bx(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function hx(e){return Ye(e.r)?e.l:Nu(St(e,{r:hx(e.r)}))}function th(e){return Ye(e)||e.lvl>e.r.lvl}function mx(e){return Ye(e.r)?[e.k,e.v]:mx(e.r)}function bx(e,t,r,n=ac,s=ac){return{k:e,l:n,lvl:r,r:s,v:t}}function yx(e){return rh(gx(e))}function gx(e){const{l:t}=e;return!Ye(t)&&t.lvl===e.lvl?St(t,{r:St(e,{l:t.r})}):e}function rh(e){const{lvl:t,r}=e;return!Ye(r)&&!Ye(r.r)&&r.lvl===t&&r.r.lvl===t?St(r,{l:St(e,{r:r.l}),lvl:t+1}):e}function Pj(e){return fx(e,({k:t,v:r})=>({index:t,value:r}))}function xx(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function ic(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}const nh=He(()=>({recalcInProgress:K(!1)}),[],{singleton:!0});function wx(e,t,r){return e[Lu(e,t,r)]}function Lu(e,t,r,n=0){let s=e.length-1;for(;n<=s;){const a=Math.floor((n+s)/2),o=e[a],i=r(o,t);if(i===0)return a;if(i===-1){if(s-n<2)return a-1;s=a-1}else{if(s===n)return a;n=a+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function Ij(e,t,r,n){const s=Lu(e,t,n),a=Lu(e,r,n,s);return e.slice(s,a+1)}function bs(e,t){return Math.round(e.getBoundingClientRect()[t])}function zu(e){return!Ye(e.groupOffsetTree)}function sh({index:e},t){return t===e?0:t<e?-1:1}function Bj(){return{groupIndices:[],groupOffsetTree:bo(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:bo()}}function Fj(e,t){let r=Ye(e)?0:1/0;for(const n of t){const{endIndex:s,size:a,startIndex:o}=n;if(r=Math.min(r,o),Ye(e)){e=br(e,0,a);continue}const i=yo(e,o-1,s+1);if(i.some(Lj(n)))continue;let c=!1,l=!1;for(const{end:u,start:d,value:f}of i)c?(s>=d||a===f)&&(e=J0(e,d)):(l=f!==a,c=!0),u>s&&s>=d&&f!==a&&(e=br(e,s+1,f));l&&(e=br(e,o,a))}return[e,r]}function Uj(e){return typeof e.groupIndex<"u"}function Oj({offset:e},t){return t===e?0:t<e?-1:1}function cc(e,t,r){if(t.length===0)return 0;const{index:n,offset:s,size:a}=wx(t,e,sh),o=e-n,i=a*o+(o-1)*r+s;return i>0?i+r:i}function vx(e,t){if(!zu(t))return e;let r=0;for(;t.groupIndices[r]<=e+r;)r++;return e+r}function Ex(e,t,r){if(Uj(e))return t.groupIndices[e.groupIndex]+1;{const n=e.index==="LAST"?r:e.index;let s=vx(n,t);return s=Math.max(0,s,Math.min(r,s)),s}}function _j(e,t,r,n=0){return n>0&&(t=Math.max(t,wx(e,n,sh).offset)),fx(Ij(e,t,r,Oj),Nj)}function Dj(e,[t,r,n,s]){t.length>0&&n("received item sizes",t,nr.DEBUG);const a=e.sizeTree;let o=a,i=0;if(r.length>0&&Ye(a)&&t.length===2){const f=t[0].size,h=t[1].size;o=r.reduce((y,g)=>br(br(y,g,f),g+1,h),o)}else[o,i]=Fj(o,t);if(o===a)return e;const{lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d}=ah(e.offsetTree,i,o,s);return{groupIndices:r,groupOffsetTree:r.reduce((f,h)=>br(f,h,cc(h,d,s)),bo()),lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d,sizeTree:o}}function Mj(e){return ia(e).map(({k:t,v:r},n,s)=>{const a=s[n+1];return{endIndex:a?a.k-1:1/0,size:r,startIndex:t}})}function kx(e,t){let r=0,n=0;for(;r<e;)r+=t[n+1]-t[n]-1,n++;return n-(r===e?0:1)}function ah(e,t,r,n){let s=e,a=0,o=0,i=0,c=0;if(t!==0){c=Lu(s,t-1,sh),i=s[c].offset;const l=Wr(r,t-1);a=l[0],o=l[1],s.length&&s[c].size===Wr(r,t)[1]&&(c-=1),s=s.slice(0,c+1)}else s=[];for(const{start:l,value:u}of yo(r,t,1/0)){const d=l-a,f=d*o+i+d*n;s.push({index:l,offset:f,size:u}),a=l,i=f,o=u}return{lastIndex:a,lastOffset:i,lastSize:o,offsetTree:s}}function Nj(e){return{index:e.index,value:e}}function Lj(e){const{endIndex:t,size:r,startIndex:n}=e;return s=>s.start===n&&(s.end===t||s.end===1/0)&&s.value===r}const zj={offsetHeight:"height",offsetWidth:"width"},dn=He(([{log:e},{recalcInProgress:t}])=>{const r=Ue(),n=Ue(),s=Ht(n,0),a=Ue(),o=Ue(),i=K(0),c=K([]),l=K(void 0),u=K(void 0),d=K(void 0),f=K(void 0),h=K((S,m)=>bs(S,zj[m])),y=K(void 0),g=K(0),E=Bj(),v=Ht(W(r,Te(c,e,g),un(Dj,E),rt()),E),w=Ht(W(c,rt(),un((S,m)=>({current:m,prev:S.current}),{current:[],prev:[]}),re(({prev:S})=>S)),[]);ce(W(c,fe(S=>S.length>0),Te(v,g),re(([S,m,b])=>{const x=S.reduce((A,I,F)=>br(A,I,cc(I,m.offsetTree,b)||F),bo());return{...m,groupIndices:S,groupOffsetTree:x}})),v),ce(W(n,Te(v),fe(([S,{lastIndex:m}])=>S<m),re(([S,{lastIndex:m,lastSize:b}])=>[{endIndex:m,size:b,startIndex:S}])),r),ce(l,u);const T=Ht(W(l,re(S=>S===void 0)),!0);ce(W(u,fe(S=>S!==void 0&&Ye(at(v).sizeTree)),re(S=>{const m=at(d),b=at(c).length>0;return m?b?[{endIndex:0,size:m,startIndex:0},{endIndex:1,size:S,startIndex:1}]:[]:[{endIndex:0,size:S,startIndex:0}]})),r),ce(W(f,fe(S=>S!==void 0&&S.length>0&&Ye(at(v).sizeTree)),re(S=>{const m=[];let b=S[0],x=0;for(let A=1;A<S.length;A++){const I=S[A];I!==b&&(m.push({endIndex:A-1,size:b,startIndex:x}),b=I,x=A)}return m.push({endIndex:S.length-1,size:b,startIndex:x}),m})),r),ce(W(c,Te(d,u),fe(([,S,m])=>S!==void 0&&m!==void 0),re(([S,m,b])=>{const x=[];for(let A=0;A<S.length;A++){const I=S[A],F=S[A+1];x.push({startIndex:I,endIndex:I,size:m}),F!==void 0&&x.push({startIndex:I+1,endIndex:F-1,size:b})}return x})),r);const C=mr(W(r,Te(v),un(({sizes:S},[m,b])=>({changed:b!==S,sizes:b}),{changed:!1,sizes:E}),re(S=>S.changed)));Ve(W(i,un((S,m)=>({diff:S.prev-m,prev:m}),{diff:0,prev:0}),re(S=>S.diff)),S=>{const{groupIndices:m}=at(v);if(S>0)Ce(t,!0),Ce(a,S+kx(S,m));else if(S<0){const b=at(w);b.length>0&&(S-=kx(-S,b)),Ce(o,S)}}),Ve(W(i,Te(e)),([S,m])=>{S<0&&m("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:i},nr.ERROR)});const _=mr(a);ce(W(a,Te(v),re(([S,m])=>{const b=m.groupIndices.length>0,x=[],A=m.lastSize;if(b){const I=oc(m.sizeTree,0);let F=0,D=0;for(;F<S;){const P=m.groupIndices[D],O=m.groupIndices.length===D+1?1/0:m.groupIndices[D+1]-P-1;x.push({endIndex:P,size:I,startIndex:P}),x.push({endIndex:P+1+O-1,size:A,startIndex:P+1}),D++,F+=O+1}const k=ia(m.sizeTree);return F!==S&&k.shift(),k.reduce((P,{k:O,v:U})=>{let L=P.ranges;return P.prevSize!==0&&(L=[...P.ranges,{endIndex:O+S-1,size:P.prevSize,startIndex:P.prevIndex}]),{prevIndex:O+S,prevSize:U,ranges:L}},{prevIndex:S,prevSize:0,ranges:x}).ranges}return ia(m.sizeTree).reduce((I,{k:F,v:D})=>({prevIndex:F+S,prevSize:D,ranges:[...I.ranges,{endIndex:F+S-1,size:I.prevSize,startIndex:I.prevIndex}]}),{prevIndex:0,prevSize:A,ranges:[]}).ranges})),r);const z=mr(W(o,Te(v,g),re(([S,{offsetTree:m},b])=>{const x=-S;return cc(x,m,b)})));return ce(W(o,Te(v,g),re(([S,m,b])=>{if(m.groupIndices.length>0){if(Ye(m.sizeTree))return m;let x=bo();const A=at(w);let I=0,F=0,D=0;for(;I<-S;){D=A[F];const k=A[F+1]-D-1;F++,I+=k+1}if(x=ia(m.sizeTree).reduce((k,{k:P,v:O})=>br(k,Math.max(0,P+S),O),x),I!==-S){const k=oc(m.sizeTree,D);x=br(x,0,k);const P=Wr(m.sizeTree,-S+1)[1];x=br(x,1,P)}return{...m,sizeTree:x,...ah(m.offsetTree,0,x,b)}}else{const x=ia(m.sizeTree).reduce((A,{k:I,v:F})=>br(A,Math.max(0,I+S),F),bo());return{...m,sizeTree:x,...ah(m.offsetTree,0,x,b)}}})),v),{beforeUnshiftWith:_,data:y,defaultItemSize:u,firstItemIndex:i,fixedItemSize:l,fixedGroupSize:d,gap:g,groupIndices:c,heightEstimates:f,itemSize:h,listRefresh:C,shiftWith:o,shiftWithOffset:z,sizeRanges:r,sizes:v,statefulTotalCount:s,totalCount:n,trackItemSizes:T,unshiftWith:a}},tt(ms,nh),{singleton:!0});function Rj(e){return e.reduce((t,r)=>(t.groupIndices.push(t.totalCount),t.totalCount+=r+1,t),{groupIndices:[],totalCount:0})}const Cx=He(([{groupIndices:e,sizes:t,totalCount:r},{headerHeight:n,scrollTop:s}])=>{const a=Ue(),o=Ue(),i=mr(W(a,re(Rj)));return ce(W(i,re(c=>c.totalCount)),r),ce(W(i,re(c=>c.groupIndices)),e),ce(W(Et(s,t,n),fe(([c,l])=>zu(l)),re(([c,l,u])=>Wr(l.groupOffsetTree,Math.max(c-u,0),"v")[0]),rt(),re(c=>[c])),o),{groupCounts:a,topItemsIndexes:o}},tt(dn,Wt)),ys=He(([{log:e}])=>{const t=K(!1),r=mr(W(t,fe(n=>n),rt()));return Ve(t,n=>{n&&at(e)("props updated",{},nr.DEBUG)}),{didMount:r,propsReady:t}},tt(ms),{singleton:!0}),Hj=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function Tx(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!Hj)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const lc=He(([{gap:e,listRefresh:t,sizes:r,totalCount:n},{fixedFooterHeight:s,fixedHeaderHeight:a,footerHeight:o,headerHeight:i,scrollingInProgress:c,scrollTo:l,smoothScrollTargetReached:u,viewportHeight:d},{log:f}])=>{const h=Ue(),y=Ue(),g=K(0);let E=null,v=null,w=null;function T(){E&&(E(),E=null),w&&(w(),w=null),v&&(clearTimeout(v),v=null),Ce(c,!1)}return ce(W(h,Te(r,d,n,g,i,o,f),Te(e,a,s),re(([[C,_,z,S,m,b,x,A],I,F,D])=>{const k=Tx(C),{align:P,behavior:O,offset:U}=k,L=S-1,H=Ex(k,_,L);let G=cc(H,_.offsetTree,I)+b;P==="end"?(G+=F+Wr(_.sizeTree,H)[1]-z+D,H===L&&(G+=x)):P==="center"?G+=(F+Wr(_.sizeTree,H)[1]-z+D)/2:G-=m,U&&(G+=U);const Q=pe=>{T(),pe?(A("retrying to scroll to",{location:C},nr.DEBUG),Ce(h,C)):(Ce(y,!0),A("list did not change, scroll successful",{},nr.DEBUG))};if(T(),O==="smooth"){let pe=!1;w=Ve(t,me=>{pe=pe||me}),E=Vr(u,()=>{Q(pe)})}else E=Vr(W(t,$j(150)),Q);return v=setTimeout(()=>{T()},1200),Ce(c,!0),A("scrolling from index to",{behavior:O,index:H,top:G},nr.DEBUG),{behavior:O,top:G}})),l),{scrollTargetReached:y,scrollToIndex:h,topListHeight:g}},tt(dn,Wt,ms),{singleton:!0});function $j(e){return t=>{const r=setTimeout(()=>{t(!1)},e);return n=>{n&&(t(!0),clearTimeout(r))}}}function oh(e,t){e==0?t():requestAnimationFrame(()=>{oh(e-1,t)})}function ih(e,t){const r=t-1;return typeof e=="number"?e:e.index==="LAST"?r:e.index}const uc=He(([{defaultItemSize:e,listRefresh:t,sizes:r},{scrollTop:n},{scrollTargetReached:s,scrollToIndex:a},{didMount:o}])=>{const i=K(!0),c=K(0),l=K(!0);return ce(W(o,Te(c),fe(([u,d])=>!!d),ln(!1)),i),ce(W(o,Te(c),fe(([u,d])=>!!d),ln(!1)),l),Ve(W(Et(t,o),Te(i,r,e,l),fe(([[,u],d,{sizeTree:f},h,y])=>u&&(!Ye(f)||K0(h))&&!d&&!y),Te(c)),([,u])=>{Vr(s,()=>{Ce(l,!0)}),oh(4,()=>{Vr(n,()=>{Ce(i,!0)}),Ce(a,u)})}),{initialItemFinalLocationReached:l,initialTopMostItemIndex:c,scrolledToInitialItem:i}},tt(dn,Wt,lc,ys),{singleton:!0});function Sx(e,t){return Math.abs(e-t)<1.01}const dc="up",pc="down",Gj="none",jj={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},Vj=0,fc=He(([{footerHeight:e,headerHeight:t,scrollBy:r,scrollContainerState:n,scrollTop:s,viewportHeight:a}])=>{const o=K(!1),i=K(!0),c=Ue(),l=Ue(),u=K(4),d=K(Vj),f=Ht(W(X0(W(he(s),aa(1),ln(!0)),W(he(s),aa(1),ln(!1),lx(100))),rt()),!1),h=Ht(W(X0(W(r,ln(!0)),W(r,ln(!1),lx(200))),rt()),!1);ce(W(Et(he(s),he(d)),re(([w,T])=>w<=T),rt()),i),ce(W(i,$n(50)),l);const y=mr(W(Et(n,he(a),he(t),he(e),he(u)),un((w,[{scrollHeight:T,scrollTop:C},_,z,S,m])=>{const b=C+_-T>-m,x={scrollHeight:T,scrollTop:C,viewportHeight:_};if(b){let I,F;return C>w.state.scrollTop?(I="SCROLLED_DOWN",F=w.state.scrollTop-C):(I="SIZE_DECREASED",F=w.state.scrollTop-C||w.scrollTopDelta),{atBottom:!0,atBottomBecause:I,scrollTopDelta:F,state:x}}let A;return x.scrollHeight>w.state.scrollHeight?A="SIZE_INCREASED":_<w.state.viewportHeight?A="VIEWPORT_HEIGHT_DECREASING":C<w.state.scrollTop?A="SCROLLING_UPWARDS":A="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:A,state:x}},jj),rt((w,T)=>w&&w.atBottom===T.atBottom))),g=Ht(W(n,un((w,{scrollHeight:T,scrollTop:C,viewportHeight:_})=>{if(Sx(w.scrollHeight,T))return{changed:!1,jump:0,scrollHeight:T,scrollTop:C};{const z=T-(C+_)<1;return w.scrollTop!==C&&z?{changed:!0,jump:w.scrollTop-C,scrollHeight:T,scrollTop:C}:{changed:!0,jump:0,scrollHeight:T,scrollTop:C}}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),fe(w=>w.changed),re(w=>w.jump)),0);ce(W(y,re(w=>w.atBottom)),o),ce(W(o,$n(50)),c);const E=K(pc);ce(W(n,re(({scrollTop:w})=>w),rt(),un((w,T)=>at(h)?{direction:w.direction,prevScrollTop:T}:{direction:T<w.prevScrollTop?dc:pc,prevScrollTop:T},{direction:pc,prevScrollTop:0}),re(w=>w.direction)),E),ce(W(n,$n(50),ln(Gj)),E);const v=K(0);return ce(W(f,fe(w=>!w),ln(0)),v),ce(W(s,$n(100),Te(f),fe(([w,T])=>!!T),un(([w,T],[C])=>[T,C],[0,0]),re(([w,T])=>T-w)),v),{atBottomState:y,atBottomStateChange:c,atBottomThreshold:u,atTopStateChange:l,atTopThreshold:d,isAtBottom:o,isAtTop:i,isScrolling:f,lastJumpDueToItemResize:g,scrollDirection:E,scrollVelocity:v}},tt(Wt)),hc="top",mc="bottom",Ax="none";function Px(e,t,r){return typeof e=="number"?r===dc&&t===hc||r===pc&&t===mc?e:0:r===dc?t===hc?e.main:e.reverse:t===mc?e.main:e.reverse}function Ix(e,t){var r;return typeof e=="number"?e:(r=e[t])!=null?r:0}const ch=He(([{deviation:e,fixedHeaderHeight:t,headerHeight:r,scrollTop:n,viewportHeight:s}])=>{const a=Ue(),o=K(0),i=K(0),c=K(0),l=Ht(W(Et(he(n),he(s),he(r),he(a,ic),he(c),he(o),he(t),he(e),he(i)),re(([u,d,f,[h,y],g,E,v,w,T])=>{const C=u-w,_=E+v,z=Math.max(f-C,0);let S=Ax;const m=Ix(T,hc),b=Ix(T,mc);return h-=w,h+=f+v,y+=f+v,y-=w,h>u+_-m&&(S=dc),y<u-z+d+b&&(S=pc),S!==Ax?[Math.max(C-f-Px(g,hc,S)-m,0),C-z-v+d+Px(g,mc,S)+b]:null}),fe(u=>u!=null),rt(ic)),[0,0]);return{increaseViewportBy:i,listBoundary:a,overscan:c,topListHeight:o,visibleRange:l}},tt(Wt),{singleton:!0});function Wj(e,t,r){if(zu(t)){const n=vx(e,t);return[{index:Wr(t.groupOffsetTree,n)[0],offset:0,size:0},{data:r==null?void 0:r[0],index:n,offset:0,size:0}]}return[{data:r==null?void 0:r[0],index:e,offset:0,size:0}]}const lh={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function Ru(e,t,r,n,s,a){const{lastIndex:o,lastOffset:i,lastSize:c}=s;let l=0,u=0;if(e.length>0){l=e[0].offset;const g=e[e.length-1];u=g.offset+g.size}const d=r-o,f=i+d*c+(d-1)*n,h=l,y=f-u;return{bottom:u,firstItemIndex:a,items:Fx(e,s,a),offsetBottom:y,offsetTop:l,top:h,topItems:Fx(t,s,a),topListHeight:t.reduce((g,E)=>E.size+g,0),totalCount:r}}function Bx(e,t,r,n,s,a){let o=0;if(r.groupIndices.length>0)for(const u of r.groupIndices){if(u-o>=e)break;o++}const i=e+o,c=ih(t,i),l=Array.from({length:i}).map((u,d)=>({data:a[d+c],index:d+c,offset:0,size:0}));return Ru(l,[],i,s,r,n)}function Fx(e,t,r){if(e.length===0)return[];if(!zu(t))return e.map(l=>({...l,index:l.index+r,originalIndex:l.index}));const n=e[0].index,s=e[e.length-1].index,a=[],o=yo(t.groupOffsetTree,n,s);let i,c=0;for(const l of e){(!i||i.end<l.index)&&(i=o.shift(),c=t.groupIndices.indexOf(i.start));let u;l.index===i.start?u={index:c,type:"group"}:u={groupIndex:c,index:l.index-(c+1)+r},a.push({...u,data:l.data,offset:l.offset,originalIndex:l.index,size:l.size})}return a}function Ux(e,t){var r;return e===void 0?0:typeof e=="number"?e:(r=e[t])!=null?r:0}const ca=He(([{data:e,firstItemIndex:t,gap:r,sizes:n,totalCount:s},a,{listBoundary:o,topListHeight:i,visibleRange:c},{initialTopMostItemIndex:l,scrolledToInitialItem:u},{topListHeight:d},f,{didMount:h},{recalcInProgress:y}])=>{const g=K([]),E=K(0),v=Ue(),w=K(0);ce(a.topItemsIndexes,g);const T=Ht(W(Et(h,y,he(c,ic),he(s),he(n),he(l),u,he(g),he(t),he(r),he(w),e),fe(([S,m,,b,,,,,,,,x])=>{const A=x&&x.length!==b;return S&&!m&&!A}),re(([,,[S,m],b,x,A,I,F,D,k,P,O])=>{var U,L,H,G;const Q=x,{offsetTree:pe,sizeTree:me}=Q,ie=at(E);if(b===0)return{...lh,totalCount:b};if(S===0&&m===0)return ie===0?{...lh,totalCount:b}:Bx(ie,A,x,D,k,O||[]);if(Ye(me))return ie>0?null:Ru(Wj(ih(A,b),Q,O),[],b,k,Q,D);const de=[];if(F.length>0){const Se=F[0],ve=F[F.length-1];let be=0;for(const Xe of yo(me,Se,ve)){const Ke=Xe.value,Qe=Math.max(Xe.start,Se),Fr=Math.min(Xe.end,ve);for(let Ot=Qe;Ot<=Fr;Ot++)de.push({data:O==null?void 0:O[Ot],index:Ot,offset:be,size:Ke}),be+=Ke}}if(!I)return Ru([],de,b,k,Q,D);const Be=F.length>0?F[F.length-1]+1:0,X=_j(pe,S,m,Be);if(X.length===0)return null;const we=b-1,_e=Mu([],Se=>{for(const ve of X){const be=ve.value;let Xe=be.offset,Ke=ve.start;const Qe=be.size;if(be.offset<S){Ke+=Math.floor((S-be.offset+k)/(Qe+k));const Ot=Ke-ve.start;Xe+=Ot*Qe+Ot*k}Ke<Be&&(Xe+=(Be-Ke)*Qe,Ke=Be);const Fr=Math.min(ve.end,we);for(let Ot=Ke;Ot<=Fr&&!(Xe>=m);Ot++)Se.push({data:O==null?void 0:O[Ot],index:Ot,offset:Xe,size:Qe}),Xe+=Qe+k}}),$e=Ux(P,hc),it=Ux(P,mc);if(_e.length>0&&($e>0||it>0)){const Se=_e[0],ve=_e[_e.length-1];if($e>0&&Se.index>Be){const be=Math.min($e,Se.index-Be),Xe=[];let Ke=Se.offset;for(let Qe=Se.index-1;Qe>=Se.index-be;Qe--){const Fr=(L=(U=yo(me,Qe,Qe)[0])==null?void 0:U.value)!=null?L:Se.size;Ke-=Fr+k,Xe.unshift({data:O==null?void 0:O[Qe],index:Qe,offset:Ke,size:Fr})}_e.unshift(...Xe)}if(it>0&&ve.index<we){const be=Math.min(it,we-ve.index);let Xe=ve.offset+ve.size+k;for(let Ke=ve.index+1;Ke<=ve.index+be;Ke++){const Qe=(G=(H=yo(me,Ke,Ke)[0])==null?void 0:H.value)!=null?G:ve.size;_e.push({data:O==null?void 0:O[Ke],index:Ke,offset:Xe,size:Qe}),Xe+=Qe+k}}}return Ru(_e,de,b,k,Q,D)}),fe(S=>S!==null),rt()),lh);ce(W(e,fe(K0),re(S=>S==null?void 0:S.length)),s),ce(W(T,re(S=>S.topListHeight)),d),ce(d,i),ce(W(T,re(S=>[S.top,S.bottom])),o),ce(W(T,re(S=>S.items)),v);const C=mr(W(T,fe(({items:S})=>S.length>0),Te(s,e),fe(([{items:S},m])=>S[S.length-1].originalIndex===m-1),re(([,S,m])=>[S-1,m]),rt(ic),re(([S])=>S))),_=mr(W(T,$n(200),fe(({items:S,topItems:m})=>S.length>0&&S[0].originalIndex===m.length),re(({items:S})=>S[0].index),rt())),z=mr(W(T,fe(({items:S})=>S.length>0),re(({items:S})=>{let m=0,b=S.length-1;for(;S[m].type==="group"&&m<b;)m++;for(;S[b].type==="group"&&b>m;)b--;return{endIndex:S[b].index,startIndex:S[m].index}}),rt(xx)));return{endReached:C,initialItemCount:E,itemsRendered:v,listState:T,minOverscanItemCount:w,rangeChanged:z,startReached:_,topItemsIndexes:g,...f}},tt(dn,Cx,ch,uc,lc,fc,ys,nh),{singleton:!0}),Ox=He(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:r,headerHeight:n},{listState:s}])=>{const a=Ue(),o=Ht(W(Et(r,e,n,t,s),re(([i,c,l,u,d])=>i+c+l+u+d.offsetBottom+d.bottom)),0);return ce(he(o),a),{totalListHeight:o,totalListHeightChanged:a}},tt(Wt,ca),{singleton:!0}),qj=He(([{viewportHeight:e},{totalListHeight:t}])=>{const r=K(!1),n=Ht(W(Et(r,e,t),fe(([s])=>s),re(([,s,a])=>Math.max(0,s-a)),$n(0),rt()),0);return{alignToBottom:r,paddingTopAddition:n}},tt(Wt,Ox),{singleton:!0}),_x=He(()=>({context:K(null)})),Yj=({itemBottom:e,itemTop:t,locationParams:{align:r,behavior:n,...s},viewportBottom:a,viewportTop:o})=>t<o?{...s,align:r??"start",behavior:n}:e>a?{...s,align:r??"end",behavior:n}:null,Dx=He(([{gap:e,sizes:t,totalCount:r},{fixedFooterHeight:n,fixedHeaderHeight:s,headerHeight:a,scrollingInProgress:o,scrollTop:i,viewportHeight:c},{scrollToIndex:l}])=>{const u=Ue();return ce(W(u,Te(t,c,r,a,s,n,i),Te(e),re(([[d,f,h,y,g,E,v,w],T])=>{const{align:C,behavior:_,calculateViewLocation:z=Yj,done:S,...m}=d,b=Ex(d,f,y-1),x=cc(b,f.offsetTree,T)+g+E,A=x+Wr(f.sizeTree,b)[1],I=w+E,F=w+h-v,D=z({itemBottom:A,itemTop:x,locationParams:{align:C,behavior:_,...m},viewportBottom:F,viewportTop:I});return D?S&&Vr(W(o,fe(k=>!k),aa(at(o)?1:2)),S):S&&S(),D}),fe(d=>d!==null)),l),{scrollIntoView:u}},tt(dn,Wt,lc,ca,ms),{singleton:!0});function Mx(e){return e?e==="smooth"?"smooth":"auto":!1}const Kj=(e,t)=>typeof e=="function"?Mx(e(t)):t&&Mx(e),Zj=He(([{listRefresh:e,totalCount:t,fixedItemSize:r,data:n},{atBottomState:s,isAtBottom:a},{scrollToIndex:o},{scrolledToInitialItem:i},{didMount:c,propsReady:l},{log:u},{scrollingInProgress:d},{context:f},{scrollIntoView:h}])=>{const y=K(!1),g=Ue();let E=null;function v(_){Ce(o,{align:"end",behavior:_,index:"LAST"})}Ve(W(Et(W(he(t),aa(1)),c),Te(he(y),a,i,d),re(([[_,z],S,m,b,x])=>{let A=z&&b,I="auto";return A&&(I=Kj(S,m||x),A=A&&!!I),{followOutputBehavior:I,shouldFollow:A,totalCount:_}}),fe(({shouldFollow:_})=>_)),({followOutputBehavior:_,totalCount:z})=>{E&&(E(),E=null),at(r)?requestAnimationFrame(()=>{at(u)("following output to ",{totalCount:z},nr.DEBUG),v(_)}):E=Vr(e,()=>{at(u)("following output to ",{totalCount:z},nr.DEBUG),v(_),E=null})});function w(_){const z=Vr(s,S=>{_&&!S.atBottom&&S.notAtBottomBecause==="SIZE_INCREASED"&&!E&&(at(u)("scrolling to bottom due to increased size",{},nr.DEBUG),v("auto"))});setTimeout(z,100)}Ve(W(Et(he(y),t,l),fe(([_,,z])=>_&&z),un(({value:_},[,z])=>({refreshed:_===z,value:z}),{refreshed:!1,value:0}),fe(({refreshed:_})=>_),Te(y,t)),([,_])=>{at(i)&&w(_!==!1)}),Ve(g,()=>{w(at(y)!==!1)}),Ve(Et(he(y),s),([_,z])=>{_&&!z.atBottom&&z.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&v("auto")});const T=K(null),C=Ue();return ce(X0(W(he(n),re(_=>{var z;return(z=_==null?void 0:_.length)!=null?z:0})),W(he(t))),C),Ve(W(Et(W(C,aa(1)),c),Te(he(T),i,d,f),re(([[_,z],S,m,b,x])=>z&&m&&(S==null?void 0:S({context:x,totalCount:_,scrollingInProgress:b}))),fe(_=>!!_),$n(0)),_=>{E&&(E(),E=null),at(r)?requestAnimationFrame(()=>{at(u)("scrolling into view",{}),Ce(h,_)}):E=Vr(e,()=>{at(u)("scrolling into view",{}),Ce(h,_),E=null})}),{autoscrollToBottom:g,followOutput:y,scrollIntoViewOnChange:T}},tt(dn,fc,lc,uc,ys,ms,Wt,_x,Dx)),Xj=He(([{data:e,firstItemIndex:t,gap:r,sizes:n},{initialTopMostItemIndex:s},{initialItemCount:a,listState:o},{didMount:i}])=>(ce(W(i,Te(a),fe(([,c])=>c!==0),Te(s,n,t,r,e),re(([[,c],l,u,d,f,h=[]])=>Bx(c,l,u,d,f,h))),o),{}),tt(dn,uc,ca,ys),{singleton:!0}),Qj=He(([{didMount:e},{scrollTo:t},{listState:r}])=>{const n=K(0);return Ve(W(e,Te(n),fe(([,s])=>s!==0),re(([,s])=>({top:s}))),s=>{Vr(W(r,aa(1),fe(a=>a.items.length>1)),()=>{requestAnimationFrame(()=>{Ce(t,s)})})}),{initialScrollTop:n}},tt(ys,Wt,ca),{singleton:!0}),Nx=He(([{scrollVelocity:e}])=>{const t=K(!1),r=Ue(),n=K(!1);return ce(W(e,Te(n,t,r),fe(([s,a])=>!!a),re(([s,a,o,i])=>{const{enter:c,exit:l}=a;if(o){if(l(s,i))return!1}else if(c(s,i))return!0;return o}),rt()),t),Ve(W(Et(t,e,r),Te(n)),([[s,a,o],i])=>{s&&i&&i.change&&i.change(a,o)}),{isSeeking:t,scrollSeekConfiguration:n,scrollSeekRangeChanged:r,scrollVelocity:e}},tt(fc),{singleton:!0}),uh=He(([{scrollContainerState:e,scrollTo:t}])=>{const r=Ue(),n=Ue(),s=Ue(),a=K(!1),o=K(void 0);return ce(W(Et(r,n),re(([{scrollHeight:i,scrollTop:c,viewportHeight:l},{offsetTop:u}])=>({scrollHeight:i,scrollTop:Math.max(0,c-u),viewportHeight:l}))),e),ce(W(t,Te(n),re(([i,{offsetTop:c}])=>({...i,top:i.top+c}))),s),{customScrollParent:o,useWindowScroll:a,windowScrollContainerState:r,windowScrollTo:s,windowViewportRect:n}},tt(Wt)),Jj=He(([{sizeRanges:e,sizes:t},{headerHeight:r,scrollTop:n},{initialTopMostItemIndex:s},{didMount:a},{useWindowScroll:o,windowScrollContainerState:i,windowViewportRect:c}])=>{const l=Ue(),u=K(void 0),d=K(null),f=K(null);return ce(i,d),ce(c,f),Ve(W(l,Te(t,n,o,d,f,r)),([h,y,g,E,v,w,T])=>{const C=Mj(y.sizeTree);E&&v!==null&&w!==null&&(g=v.scrollTop-w.offsetTop),g-=T,h({ranges:C,scrollTop:g})}),ce(W(u,fe(K0),re(eV)),s),ce(W(a,Te(u),fe(([,h])=>h!==void 0),rt(),re(([,h])=>h.ranges)),e),{getState:l,restoreStateFrom:u}},tt(dn,Wt,uc,ys,uh));function eV(e){return{align:"start",index:0,offset:e.scrollTop}}const tV=He(([{topItemsIndexes:e}])=>{const t=K(0);return ce(W(t,fe(r=>r>=0),re(r=>Array.from({length:r}).map((n,s)=>s))),e),{topItemCount:t}},tt(ca));function Lx(e){let t=!1,r;return()=>(t||(t=!0,r=e()),r)}const rV=Lx(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),nV=He(([{deviation:e,scrollBy:t,scrollingInProgress:r,scrollTop:n},{isAtBottom:s,isScrolling:a,lastJumpDueToItemResize:o,scrollDirection:i},{listState:c},{beforeUnshiftWith:l,gap:u,shiftWithOffset:d,sizes:f},{log:h},{recalcInProgress:y}])=>{const g=mr(W(c,Te(o),un(([,v,w,T],[{bottom:C,items:_,offsetBottom:z,totalCount:S},m])=>{const b=C+z;let x=0;return w===S&&v.length>0&&_.length>0&&(_[0].originalIndex===0&&v[0].originalIndex===0||(x=b-T,x!==0&&(x+=m))),[x,_,S,b]},[0,[],0,0]),fe(([v])=>v!==0),Te(n,i,r,s,h,y),fe(([,v,w,T,,,C])=>!C&&!T&&v!==0&&w===dc),re(([[v],,,,,w])=>(w("Upward scrolling compensation",{amount:v},nr.DEBUG),v))));function E(v){v>0?(Ce(t,{behavior:"auto",top:-v}),Ce(e,0)):(Ce(e,0),Ce(t,{behavior:"auto",top:-v}))}return Ve(W(g,Te(e,a)),([v,w,T])=>{T&&rV()?Ce(e,w-v):E(-v)}),Ve(W(Et(Ht(a,!1),e,y),fe(([v,w,T])=>!v&&!T&&w!==0),re(([v,w])=>w),$n(1)),E),ce(W(d,re(v=>({top:-v}))),t),Ve(W(l,Te(f,u),re(([v,{groupIndices:w,lastSize:T,sizeTree:C},_])=>{function z(S){return S*(T+_)}if(w.length===0)return z(v);{let S=0;const m=oc(C,0);let b=0,x=0;for(;b<v;){b++,S+=m;let A=w.length===x+1?1/0:w[x+1]-w[x]-1;b+A>v&&(S-=m,A=v-b+1),b+=A,S+=z(A),x++}return S}})),v=>{Ce(e,v),requestAnimationFrame(()=>{Ce(t,{top:v}),requestAnimationFrame(()=>{Ce(e,0),Ce(y,!1)})})}),{deviation:e}},tt(Wt,fc,ca,dn,ms,nh)),sV=He(([e,t,r,n,s,a,o,i,c,l,u])=>({...e,...t,...r,...n,...s,...a,...o,...i,...c,...l,...u}),tt(ch,Xj,ys,Nx,Ox,Qj,qj,uh,Dx,ms,_x)),zx=He(([{data:e,defaultItemSize:t,firstItemIndex:r,fixedItemSize:n,fixedGroupSize:s,gap:a,groupIndices:o,heightEstimates:i,itemSize:c,sizeRanges:l,sizes:u,statefulTotalCount:d,totalCount:f,trackItemSizes:h},{initialItemFinalLocationReached:y,initialTopMostItemIndex:g,scrolledToInitialItem:E},v,w,T,C,{scrollToIndex:_},z,{topItemCount:S},{groupCounts:m},b])=>{const{listState:x,minOverscanItemCount:A,topItemsIndexes:I,rangeChanged:F,...D}=C;return ce(F,b.scrollSeekRangeChanged),ce(W(b.windowViewportRect,re(k=>k.visibleHeight)),v.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:r,fixedItemHeight:n,fixedGroupHeight:s,gap:a,groupCounts:m,heightEstimates:i,initialItemFinalLocationReached:y,initialTopMostItemIndex:g,scrolledToInitialItem:E,sizeRanges:l,topItemCount:S,topItemsIndexes:I,totalCount:f,...T,groupIndices:o,itemSize:c,listState:x,minOverscanItemCount:A,scrollToIndex:_,statefulTotalCount:d,trackItemSizes:h,rangeChanged:F,...D,...b,...v,sizes:u,...w}},tt(dn,uc,Wt,Jj,Zj,ca,lc,nV,tV,Cx,sV));function aV(e,t){const r={},n={};let s=0;const a=e.length;for(;s<a;)n[e[s]]=1,s+=1;for(const o in t)Object.hasOwn(n,o)||(r[o]=t[o]);return r}const Hu=typeof document<"u"?N.useLayoutEffect:N.useEffect;function Rx(e,t,r){const n=Object.keys(t.required||{}),s=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),i=N.createContext({});function c(E,v){E.propsReady&&Ce(E.propsReady,!1);for(const w of n){const T=E[t.required[w]];Ce(T,v[w])}for(const w of s)if(w in v){const T=E[t.optional[w]];Ce(T,v[w])}E.propsReady&&Ce(E.propsReady,!0)}function l(E){return a.reduce((v,w)=>(v[w]=T=>{const C=E[t.methods[w]];Ce(C,T)},v),{})}function u(E){return o.reduce((v,w)=>(v[w]=vj(E[t.events[w]]),v),{})}const d=N.forwardRef((E,v)=>{const{children:w,...T}=E,[C]=N.useState(()=>Mu(kj(e),S=>{c(S,T)})),[_]=N.useState(cx(u,C));Hu(()=>{for(const S of o)S in T&&Ve(_[S],T[S]);return()=>{Object.values(_).map(Z0)}},[T,_,C]),Hu(()=>{c(C,T)}),N.useImperativeHandle(v,ox(l(C)));const z=r;return B.jsx(i.Provider,{value:C,children:r?B.jsx(z,{...aV([...n,...s,...o],T),children:w}):w})}),f=E=>{const v=N.useContext(i);return N.useCallback(w=>{Ce(v[E],w)},[v,E])},h=E=>{const v=N.useContext(i)[E],w=N.useCallback(T=>Ve(v,T),[v]);return N.useSyncExternalStore(w,()=>at(v),()=>at(v))},y=E=>{const v=N.useContext(i)[E],[w,T]=N.useState(cx(at,v));return Hu(()=>Ve(v,C=>{C!==w&&T(ox(C))}),[v,w]),w},g=N.version.startsWith("18")?h:y;return{Component:d,useEmitter:(E,v)=>{const w=N.useContext(i)[E];Hu(()=>Ve(w,v),[v,w])},useEmitterValue:g,usePublisher:f}}const Hx=N.createContext(void 0),$x=N.createContext(void 0),Gx=typeof document<"u"?N.useLayoutEffect:N.useEffect;function dh(e){return"self"in e}function oV(e){return"body"in e}function jx(e,t,r,n=mo,s,a){const o=N.useRef(null),i=N.useRef(null),c=N.useRef(null),l=N.useCallback(f=>{let h,y,g;const E=f.target;if(oV(E)||dh(E)){const w=dh(E)?E:E.defaultView;g=a?w.scrollX:w.scrollY,h=a?w.document.documentElement.scrollWidth:w.document.documentElement.scrollHeight,y=a?w.innerWidth:w.innerHeight}else g=a?E.scrollLeft:E.scrollTop,h=a?E.scrollWidth:E.scrollHeight,y=a?E.offsetWidth:E.offsetHeight;const v=()=>{e({scrollHeight:h,scrollTop:Math.max(g,0),viewportHeight:y})};f.suppressFlushSync?v():Ea.flushSync(v),i.current!==null&&(g===i.current||g<=0||g===h-y)&&(i.current=null,t(!0),c.current&&(clearTimeout(c.current),c.current=null))},[e,t,a]);N.useEffect(()=>{const f=s||o.current;return n(s||o.current),l({suppressFlushSync:!0,target:f}),f.addEventListener("scroll",l,{passive:!0}),()=>{n(null),f.removeEventListener("scroll",l)}},[o,l,r,n,s]);function u(f){const h=o.current;if(!h||(a?"offsetWidth"in h&&h.offsetWidth===0:"offsetHeight"in h&&h.offsetHeight===0))return;const y=f.behavior==="smooth";let g,E,v;dh(h)?(E=Math.max(bs(h.document.documentElement,a?"width":"height"),a?h.document.documentElement.scrollWidth:h.document.documentElement.scrollHeight),g=a?h.innerWidth:h.innerHeight,v=a?window.scrollX:window.scrollY):(E=h[a?"scrollWidth":"scrollHeight"],g=bs(h,a?"width":"height"),v=h[a?"scrollLeft":"scrollTop"]);const w=E-g;if(f.top=Math.ceil(Math.max(Math.min(w,f.top),0)),Sx(g,E)||f.top===v){e({scrollHeight:E,scrollTop:v,viewportHeight:g}),y&&t(!0);return}y?(i.current=f.top,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,i.current=null,t(!0)},1e3)):i.current=null,a&&(f={behavior:f.behavior,left:f.top}),h.scrollTo(f)}function d(f){a&&(f={behavior:f.behavior,left:f.top}),o.current.scrollBy(f)}return{scrollByCallback:d,scrollerRef:o,scrollToCallback:u}}const ph="-webkit-sticky",Vx="sticky",fh=Lx(()=>{if(typeof document>"u")return Vx;const e=document.createElement("div");return e.style.position=ph,e.style.position===ph?ph:Vx});function hh(e){return e}const iV=He(()=>{const e=K(i=>`Item ${i}`),t=K(i=>`Group ${i}`),r=K({}),n=K(hh),s=K("div"),a=K(mo),o=(i,c=null)=>Ht(W(r,re(l=>l[i]),rt()),c);return{components:r,computeItemKey:n,EmptyPlaceholder:o("EmptyPlaceholder"),FooterComponent:o("Footer"),GroupComponent:o("Group","div"),groupContent:t,HeaderComponent:o("Header"),HeaderFooterTag:s,ItemComponent:o("Item","div"),itemContent:e,ListComponent:o("List","div"),ScrollerComponent:o("Scroller","div"),scrollerRef:a,ScrollSeekPlaceholder:o("ScrollSeekPlaceholder"),TopItemListComponent:o("TopItemList")}}),cV=He(([e,t])=>({...e,...t}),tt(zx,iV)),lV=({height:e})=>B.jsx("div",{style:{height:e}}),uV={overflowAnchor:"none",position:fh(),zIndex:1},Wx={overflowAnchor:"none"},dV={...Wx,display:"inline-block",height:"100%"},qx=N.memo(function({showTopList:e=!1}){const t=ge("listState"),r=Pr("sizeRanges"),n=ge("useWindowScroll"),s=ge("customScrollParent"),a=Pr("windowScrollContainerState"),o=Pr("scrollContainerState"),i=s||n?a:o,c=ge("itemContent"),l=ge("context"),u=ge("groupContent"),d=ge("trackItemSizes"),f=ge("itemSize"),h=ge("log"),y=Pr("gap"),g=ge("horizontalDirection"),{callbackRef:E}=Sj(r,f,d,e?mo:i,h,y,s,g,ge("skipAnimationFrameInResizeObserver")),[v,w]=N.useState(0);mh("deviation",D=>{v!==D&&w(D)});const T=ge("EmptyPlaceholder"),C=ge("ScrollSeekPlaceholder")||lV,_=ge("ListComponent"),z=ge("ItemComponent"),S=ge("GroupComponent"),m=ge("computeItemKey"),b=ge("isSeeking"),x=ge("groupIndices").length>0,A=ge("alignToBottom"),I=ge("initialItemFinalLocationReached"),F=e?{}:{boxSizing:"border-box",...g?{display:"inline-block",height:"100%",marginLeft:v!==0?v:A?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:v!==0?v:A?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...I?{}:{visibility:"hidden"}};return!e&&t.totalCount===0&&T?B.jsx(T,{...$t(T,l)}):B.jsx(_,{...$t(_,l),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:E,style:F,children:(e?t.topItems:t.items).map(D=>{const k=D.originalIndex,P=m(k+t.firstItemIndex,D.data,l);return b?N.createElement(C,{...$t(C,l),height:D.size,index:D.index,key:P,type:D.type||"item",...D.type==="group"?{}:{groupIndex:D.groupIndex}}):D.type==="group"?N.createElement(S,{...$t(S,l),"data-index":k,"data-item-index":D.index,"data-known-size":D.size,key:P,style:uV},u(D.index,l)):N.createElement(z,{...$t(z,l),...mV(z,D.data),"data-index":k,"data-item-group-index":D.groupIndex,"data-item-index":D.index,"data-known-size":D.size,key:P,style:g?dV:Wx},x?c(D.index,D.groupIndex,D.data,l):c(D.index,D.data,l))})})}),pV={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},fV={outline:"none",overflowX:"auto",position:"relative"},$u=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:{}}),hV={position:fh(),top:0,width:"100%",zIndex:1};function $t(e,t){if(typeof e!="string")return{context:t}}function mV(e,t){return{item:typeof e=="string"?void 0:t}}const bV=N.memo(function(){const e=ge("HeaderComponent"),t=Pr("headerHeight"),r=ge("HeaderFooterTag"),n=oa(N.useMemo(()=>a=>{t(bs(a,"height"))},[t]),!0,ge("skipAnimationFrameInResizeObserver")),s=ge("context");return e?B.jsx(r,{ref:n,children:B.jsx(e,{...$t(e,s)})}):null}),yV=N.memo(function(){const e=ge("FooterComponent"),t=Pr("footerHeight"),r=ge("HeaderFooterTag"),n=oa(N.useMemo(()=>a=>{t(bs(a,"height"))},[t]),!0,ge("skipAnimationFrameInResizeObserver")),s=ge("context");return e?B.jsx(r,{ref:n,children:B.jsx(e,{...$t(e,s)})}):null});function Yx({useEmitter:e,useEmitterValue:t,usePublisher:r}){return N.memo(function({children:n,style:s,context:a,...o}){const i=r("scrollContainerState"),c=t("ScrollerComponent"),l=r("smoothScrollTargetReached"),u=t("scrollerRef"),d=t("horizontalDirection")||!1,{scrollByCallback:f,scrollerRef:h,scrollToCallback:y}=jx(i,l,c,u,void 0,d);return e("scrollTo",y),e("scrollBy",f),B.jsx(c,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:h,style:{...d?fV:pV,...s},tabIndex:0,...o,...$t(c,a),children:n})})}function Kx({useEmitter:e,useEmitterValue:t,usePublisher:r}){return N.memo(function({children:n,style:s,context:a,...o}){const i=r("windowScrollContainerState"),c=t("ScrollerComponent"),l=r("smoothScrollTargetReached"),u=t("totalListHeight"),d=t("deviation"),f=t("customScrollParent"),h=N.useRef(null),y=t("scrollerRef"),{scrollByCallback:g,scrollerRef:E,scrollToCallback:v}=jx(i,l,c,y,f);return Gx(()=>{var w;return E.current=f||((w=h.current)==null?void 0:w.ownerDocument.defaultView),()=>{E.current=null}},[E,f]),e("windowScrollTo",v),e("scrollBy",g),B.jsx(c,{ref:h,"data-virtuoso-scroller":!0,style:{position:"relative",...s,...u!==0?{height:u+d}:{}},...o,...$t(c,a),children:n})})}const gV=({children:e})=>{const t=N.useContext(Hx),r=Pr("viewportHeight"),n=Pr("fixedItemHeight"),s=ge("alignToBottom"),a=ge("horizontalDirection"),o=N.useMemo(()=>ix(r,c=>bs(c,a?"width":"height")),[r,a]),i=oa(o,!0,ge("skipAnimationFrameInResizeObserver"));return N.useEffect(()=>{t&&(r(t.viewportHeight),n(t.itemHeight))},[t,r,n]),B.jsx("div",{"data-viewport-type":"element",ref:i,style:$u(s),children:e})},xV=({children:e})=>{const t=N.useContext(Hx),r=Pr("windowViewportRect"),n=Pr("fixedItemHeight"),s=ge("customScrollParent"),a=px(r,s,ge("skipAnimationFrameInResizeObserver")),o=ge("alignToBottom");return N.useEffect(()=>{t&&(n(t.itemHeight),r({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,r,n]),B.jsx("div",{"data-viewport-type":"window",ref:a,style:$u(o),children:e})},wV=({children:e})=>{const t=ge("TopItemListComponent")||"div",r=ge("headerHeight"),n={...hV,marginTop:`${r}px`},s=ge("context");return B.jsx(t,{style:n,...$t(t,s),children:e})},vV=N.memo(function(e){const t=ge("useWindowScroll"),r=ge("topItemsIndexes").length>0,n=ge("customScrollParent"),s=ge("context");return B.jsxs(n||t?CV:kV,{...e,context:s,children:[r&&B.jsx(wV,{children:B.jsx(qx,{showTopList:!0})}),B.jsxs(n||t?xV:gV,{children:[B.jsx(bV,{}),B.jsx(qx,{}),B.jsx(yV,{})]})]})}),{Component:EV,useEmitter:mh,useEmitterValue:ge,usePublisher:Pr}=Rx(cV,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},vV),kV=Yx({useEmitter:mh,useEmitterValue:ge,usePublisher:Pr}),CV=Kx({useEmitter:mh,useEmitterValue:ge,usePublisher:Pr}),TV=EV;tt(zx,He(()=>{const e=K(l=>B.jsxs("td",{children:["Item $",l]})),t=K(null),r=K(l=>B.jsxs("td",{colSpan:1e3,children:["Group ",l]})),n=K(null),s=K(null),a=K({}),o=K(hh),i=K(mo),c=(l,u=null)=>Ht(W(a,re(d=>d[l]),rt()),u);return{components:a,computeItemKey:o,context:t,EmptyPlaceholder:c("EmptyPlaceholder"),FillerRow:c("FillerRow"),fixedFooterContent:s,fixedHeaderContent:n,itemContent:e,groupContent:r,ScrollerComponent:c("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:c("ScrollSeekPlaceholder"),TableBodyComponent:c("TableBody","tbody"),TableComponent:c("Table","table"),TableFooterComponent:c("TableFoot","tfoot"),TableHeadComponent:c("TableHead","thead"),TableRowComponent:c("TableRow","tr"),GroupComponent:c("Group","tr")}})),fh();const Zx={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},SV={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:Xx,floor:Gu,max:bc,min:bh,round:Qx}=Math;function Jx(e,t,r){return Array.from({length:t-e+1}).map((n,s)=>({data:r===null?null:r[s+e],index:s+e}))}function AV(e){return{...SV,items:e}}function ju(e,t){return e&&e.width===t.width&&e.height===t.height}function PV(e,t){return e&&e.column===t.column&&e.row===t.row}const IV=He(([{increaseViewportBy:e,listBoundary:t,overscan:r,visibleRange:n},{footerHeight:s,headerHeight:a,scrollBy:o,scrollContainerState:i,scrollTo:c,scrollTop:l,smoothScrollTargetReached:u,viewportHeight:d},f,h,{didMount:y,propsReady:g},{customScrollParent:E,useWindowScroll:v,windowScrollContainerState:w,windowScrollTo:T,windowViewportRect:C},_])=>{const z=K(0),S=K(0),m=K(Zx),b=K({height:0,width:0}),x=K({height:0,width:0}),A=Ue(),I=Ue(),F=K(0),D=K(null),k=K({column:0,row:0}),P=Ue(),O=Ue(),U=K(!1),L=K(0),H=K(!0),G=K(!1),Q=K(!1);Ve(W(y,Te(L),fe(([X,we])=>!!we)),()=>{Ce(H,!1)}),Ve(W(Et(y,H,x,b,L,G),fe(([X,we,_e,$e,,it])=>X&&!we&&_e.height!==0&&$e.height!==0&&!it)),([,,,,X])=>{Ce(G,!0),oh(1,()=>{Ce(A,X)}),Vr(W(l),()=>{Ce(t,[0,0]),Ce(H,!0)})}),ce(W(O,fe(X=>X!=null&&X.scrollTop>0),ln(0)),S),Ve(W(y,Te(O),fe(([,X])=>X!=null)),([,X])=>{X&&(Ce(b,X.viewport),Ce(x,X.item),Ce(k,X.gap),X.scrollTop>0&&(Ce(U,!0),Vr(W(l,aa(1)),we=>{Ce(U,!1)}),Ce(c,{top:X.scrollTop})))}),ce(W(b,re(({height:X})=>X)),d),ce(W(Et(he(b,ju),he(x,ju),he(k,(X,we)=>X&&X.column===we.column&&X.row===we.row),he(l)),re(([X,we,_e,$e])=>({gap:_e,item:we,scrollTop:$e,viewport:X}))),P),ce(W(Et(he(z),n,he(k,PV),he(x,ju),he(b,ju),he(D),he(S),he(U),he(H),he(L)),fe(([,,,,,,,X])=>!X),re(([X,[we,_e],$e,it,Se,ve,be,,Xe,Ke])=>{const{column:Qe,row:Fr}=$e,{height:Ot,width:Eh}=it,{width:S5}=Se;if(be===0&&(X===0||S5===0))return Zx;if(Eh===0){const F5=ih(Ke,X),DW=F5+Math.max(be-1,0);return AV(Jx(F5,DW,ve))}const qu=e5(S5,Eh,Qe);let Bo,va;Xe?we===0&&_e===0&&be>0?(Bo=0,va=be-1):(Bo=qu*Gu((we+Fr)/(Ot+Fr)),va=qu*Xx((_e+Fr)/(Ot+Fr))-1,va=bh(X-1,bc(va,qu-1)),Bo=bh(va,bc(0,Bo))):(Bo=0,va=-1);const A5=Jx(Bo,va,ve),{bottom:P5,top:I5}=t5(Se,$e,it,A5),B5=Xx(X/qu),_W=B5*Ot+(B5-1)*Fr-P5;return{bottom:P5,itemHeight:Ot,items:A5,itemWidth:Eh,offsetBottom:_W,offsetTop:I5,top:I5}})),m),ce(W(D,fe(X=>X!==null),re(X=>X.length)),z),ce(W(Et(b,x,m,k),fe(([X,we,{items:_e}])=>_e.length>0&&we.height!==0&&X.height!==0),re(([X,we,{items:_e},$e])=>{const{bottom:it,top:Se}=t5(X,$e,we,_e);return[Se,it]}),rt(ic)),t);const pe=K(!1);ce(W(l,Te(pe),re(([X,we])=>we||X!==0)),pe);const me=mr(W(Et(m,z),fe(([{items:X}])=>X.length>0),Te(pe),fe(([[X,we],_e])=>{const $e=X.items[X.items.length-1].index===we-1;return(_e||X.bottom>0&&X.itemHeight>0&&X.offsetBottom===0&&X.items.length===we)&&$e}),re(([[,X]])=>X-1),rt())),ie=mr(W(he(m),fe(({items:X})=>X.length>0&&X[0].index===0),ln(0),rt())),de=mr(W(he(m),Te(U),fe(([{items:X},we])=>X.length>0&&!we),re(([{items:X}])=>({endIndex:X[X.length-1].index,startIndex:X[0].index})),rt(xx),$n(0)));ce(de,h.scrollSeekRangeChanged),ce(W(A,Te(b,x,z,k),re(([X,we,_e,$e,it])=>{const Se=Tx(X),{align:ve,behavior:be,offset:Xe}=Se;let Ke=Se.index;Ke==="LAST"&&(Ke=$e-1),Ke=bc(0,Ke,bh($e-1,Ke));let Qe=yh(we,it,_e,Ke);return ve==="end"?Qe=Qx(Qe-we.height+_e.height):ve==="center"&&(Qe=Qx(Qe-we.height/2+_e.height/2)),Xe&&(Qe+=Xe),{behavior:be,top:Qe}})),c);const Be=Ht(W(m,re(X=>X.offsetBottom+X.bottom)),0);return ce(W(C,re(X=>({height:X.visibleHeight,width:X.visibleWidth}))),b),{customScrollParent:E,data:D,deviation:F,footerHeight:s,gap:k,headerHeight:a,increaseViewportBy:e,initialItemCount:S,itemDimensions:x,overscan:r,restoreStateFrom:O,scrollBy:o,scrollContainerState:i,scrollHeight:I,scrollTo:c,scrollToIndex:A,scrollTop:l,smoothScrollTargetReached:u,totalCount:z,useWindowScroll:v,viewportDimensions:b,windowScrollContainerState:w,windowScrollTo:T,windowViewportRect:C,...h,gridState:m,horizontalDirection:Q,initialTopMostItemIndex:L,totalListHeight:Be,...f,endReached:me,propsReady:g,rangeChanged:de,startReached:ie,stateChanged:P,stateRestoreInProgress:U,..._}},tt(ch,Wt,fc,Nx,ys,uh,ms));function e5(e,t,r){return bc(1,Gu((e+r)/(Gu(t)+r)))}function t5(e,t,r,n){const{height:s}=r;if(s===void 0||n.length===0)return{bottom:0,top:0};const a=yh(e,t,r,n[0].index);return{bottom:yh(e,t,r,n[n.length-1].index)+s,top:a}}function yh(e,t,r,n){const s=e5(e.width,r.width,t.column),a=Gu(n/s),o=a*r.height+bc(0,a-1)*t.row;return o>0?o+t.row:o}const BV=He(()=>{const e=K(d=>`Item ${d}`),t=K({}),r=K(null),n=K("virtuoso-grid-item"),s=K("virtuoso-grid-list"),a=K(hh),o=K("div"),i=K(mo),c=(d,f=null)=>Ht(W(t,re(h=>h[d]),rt()),f),l=K(!1),u=K(!1);return ce(he(u),l),{components:t,computeItemKey:a,context:r,FooterComponent:c("Footer"),HeaderComponent:c("Header"),headerFooterTag:o,itemClassName:n,ItemComponent:c("Item","div"),itemContent:e,listClassName:s,ListComponent:c("List","div"),readyStateChanged:l,reportReadyState:u,ScrollerComponent:c("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}}),FV=He(([e,t])=>({...e,...t}),tt(IV,BV)),UV=N.memo(function(){const e=ot("gridState"),t=ot("listClassName"),r=ot("itemClassName"),n=ot("itemContent"),s=ot("computeItemKey"),a=ot("isSeeking"),o=Ir("scrollHeight"),i=ot("ItemComponent"),c=ot("ListComponent"),l=ot("ScrollSeekPlaceholder"),u=ot("context"),d=Ir("itemDimensions"),f=Ir("gap"),h=ot("log"),y=ot("stateRestoreInProgress"),g=Ir("reportReadyState"),E=oa(N.useMemo(()=>v=>{const w=v.parentElement.parentElement.scrollHeight;o(w);const T=v.firstChild;if(T){const{height:C,width:_}=T.getBoundingClientRect();d({height:C,width:_})}f({column:n5("column-gap",getComputedStyle(v).columnGap,h),row:n5("row-gap",getComputedStyle(v).rowGap,h)})},[o,d,f,h]),!0,!1);return Gx(()=>{e.itemHeight>0&&e.itemWidth>0&&g(!0)},[e]),y?null:B.jsx(c,{className:t,ref:E,...$t(c,u),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(v=>{const w=s(v.index,v.data,u);return a?B.jsx(l,{...$t(l,u),height:e.itemHeight,index:v.index,width:e.itemWidth},w):N.createElement(i,{...$t(i,u),className:r,"data-index":v.index,key:w},n(v.index,v.data,u))})})}),OV=N.memo(function(){const e=ot("HeaderComponent"),t=Ir("headerHeight"),r=ot("headerFooterTag"),n=oa(N.useMemo(()=>a=>{t(bs(a,"height"))},[t]),!0,!1),s=ot("context");return e?B.jsx(r,{ref:n,children:B.jsx(e,{...$t(e,s)})}):null}),_V=N.memo(function(){const e=ot("FooterComponent"),t=Ir("footerHeight"),r=ot("headerFooterTag"),n=oa(N.useMemo(()=>a=>{t(bs(a,"height"))},[t]),!0,!1),s=ot("context");return e?B.jsx(r,{ref:n,children:B.jsx(e,{...$t(e,s)})}):null}),DV=({children:e})=>{const t=N.useContext($x),r=Ir("itemDimensions"),n=Ir("viewportDimensions"),s=oa(N.useMemo(()=>a=>{n(a.getBoundingClientRect())},[n]),!0,!1);return N.useEffect(()=>{t&&(n({height:t.viewportHeight,width:t.viewportWidth}),r({height:t.itemHeight,width:t.itemWidth}))},[t,n,r]),B.jsx("div",{ref:s,style:$u(!1),children:e})},MV=({children:e})=>{const t=N.useContext($x),r=Ir("windowViewportRect"),n=Ir("itemDimensions"),s=ot("customScrollParent"),a=px(r,s,!1);return N.useEffect(()=>{t&&(n({height:t.itemHeight,width:t.itemWidth}),r({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,r,n]),B.jsx("div",{ref:a,style:$u(!1),children:e})},NV=N.memo(function({...e}){const t=ot("useWindowScroll"),r=ot("customScrollParent"),n=r||t?zV:LV,s=r||t?MV:DV,a=ot("context");return B.jsx(n,{...e,...$t(n,a),children:B.jsxs(s,{children:[B.jsx(OV,{}),B.jsx(UV,{}),B.jsx(_V,{})]})})}),{useEmitter:r5,useEmitterValue:ot,usePublisher:Ir}=Rx(FV,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},NV),LV=Yx({useEmitter:r5,useEmitterValue:ot,usePublisher:Ir}),zV=Kx({useEmitter:r5,useEmitterValue:ot,usePublisher:Ir});function n5(e,t,r){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&r(`${e} was not resolved to pixel value correctly`,t,nr.WARN),t==="normal"?0:parseInt(t??"0",10)}var gh={},s5;function RV(){if(s5)return gh;s5=1;var e=lu.GenIcon;return gh.AiFillQuestionCircle=function(r){return e({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]})(r)},gh}var HV=RV();function $V({logo:e,className:t="",style:r={},alt:n="Token logo"}){const[s,a]=N.useState(!1);return N.useEffect(()=>{a(!1)},[e]),e&&!s?B.jsx("img",{alt:n,style:r,onError:()=>a(!0),className:`twap-token-logo ${t}`,src:e}):B.jsx(HV.AiFillQuestionCircle,{style:{width:20,height:20},className:"twap-token-svg"})}const GV=()=>B.jsx("div",{className:"twap-orders__loader",children:B.jsx("p",{children:"Loading..."})}),jV=()=>{const{isLoading:e}=Ou(),t=ex(),r=te(a=>a.state.orderIdsToCancel),n=te(a=>a.state.cancelOrdersMode),s=tx();return B.jsx(B.Fragment,{children:e?B.jsx(GV,{}):t!=null&&t.length?B.jsx("div",{className:`twap-orders__list ${n?"twap-orders__list-select-mode":""}`,children:B.jsx(TV,{style:{height:"100%"},data:t,itemContent:(a,o)=>B.jsx(VV,{cancelOrdersMode:!!n,selected:(r==null?void 0:r.includes(o.id))||!1,selectOrder:s,order:o},a)})}):B.jsx(WV,{})})},VV=({order:e,selectOrder:t,selected:r,cancelOrdersMode:n})=>{const s=te(i=>i.updateState),a=xt.useCallback(()=>{s({selectedOrderID:e==null?void 0:e.id})},[s,e==null?void 0:e.id]),o=xt.useCallback(()=>{n?t(e==null?void 0:e.id):a()},[n,t,a,e==null?void 0:e.id]);return B.jsx("div",{className:`twap-orders__list-item twap-orders__list-item-${e.status} ${n?"twap-orders__list-item-select-mode":""} ${r?"twap-orders__list-item-selected":""}`,onClick:o,children:B.jsxs("div",{className:"twap-orders__list-item-content",children:[B.jsx(qV,{order:e}),B.jsx(YV,{value:e.progress||0}),B.jsxs("div",{className:"twap-orders__list-item-tokens",children:[B.jsx(a5,{address:e.srcTokenAddress}),B.jsx(mj.HiArrowRight,{className:"twap-orders__list-item-tokens-arrow"}),B.jsx(a5,{address:e.dstTokenAddress})]})]})})},WV=()=>{const e=te(n=>n.state.orderHistoryStatusFilter),t=Me(),r=xt.useMemo(()=>e||"",[e]);return B.jsx("div",{className:"twap-orders__list-empty",children:B.jsx("p",{children:t("noOrders",{status:r})})})},qV=({order:e})=>{const t=e&&e.status,r=Q2(e),n=j0(e.createdAt);return B.jsxs("div",{className:"twap-orders__list-item-header",children:[B.jsxs("p",{className:"twap-orders__list-item-header-title",children:[r," ",B.jsx("span",{children:`(${n})`})]}),B.jsx("p",{className:"twap-orders__list-item-header-status",children:t})]})},a5=e=>{const{useToken:t,components:r}=ne(),n=t==null?void 0:t(e.address);return B.jsx("div",{className:"twap-orders__list-item-token",children:n?B.jsxs(B.Fragment,{children:[B.jsx("div",{className:"twap-orders__list-item-token-logo",children:r.TokenLogo?B.jsx(r.TokenLogo,{token:n}):B.jsx($V,{logo:n==null?void 0:n.logoUrl})}),B.jsx("p",{className:"twap-orders__list-item-token-symbol",children:n==null?void 0:n.symbol})]}):B.jsx("div",{})})};function YV(e){return B.jsxs("div",{className:"twap-orders__list-item-progress",children:[B.jsx("div",{className:"twap-orders__list-item-progress-bar",children:B.jsx("div",{className:"twap-orders__list-item-progress-bar-filled",style:{width:`${e.value}%`}})}),B.jsx("div",{className:"twap-orders__list-item-token-progress-label",children:B.jsx("p",{children:`${Math.round(e.value)}%`})})]})}const KV=()=>{const e=te(r=>r.state.selectedOrderID),t=e!==void 0;return B.jsx("div",{className:`twap-orders ${e!==void 0?"twap-orders__show-selected":""}`,children:t?B.jsx(YG,{}):B.jsx(jV,{})})},ZV=e=>{const t=Me(),{marketPrice:r,typedInputAmount:n}=ne();return N.useMemo(()=>{const{isError:a,value:o}=xm(e);if(!(!a||j(n||"0").isZero()||!r))return{type:Mt.MIN_FILL_DELAY,value:o,message:t("minFillDelayError",{fillDelay:`${Id(o)} ${t("minutes")}`})}},[e,t,n,r])},la=()=>{const{callbacks:e}=ne(),t=te(a=>a.state.typedFillDelay),r=te(a=>a.updateState),n=N.useMemo(()=>t||Bc,[t]),s=ZV(n);return{fillDelay:n,onChange:N.useCallback(a=>{var o;r({typedFillDelay:a}),(o=e==null?void 0:e.onFillDelayChange)==null||o.call(e,a)},[r,e]),error:s,milliseconds:n.unit*n.value}},XV=()=>{const{onChange:e,fillDelay:t,error:r}=la(),n=Me(),s=N.useCallback(o=>e({unit:t.unit,value:Number(o)}),[e,t]),a=N.useCallback(o=>e({unit:o,value:t.value}),[e,t]);return{onInputChange:s,onUnitSelect:a,onChange:e,milliseconds:t.unit*t.value,fillDelay:t,error:r,label:n("tradeIntervalTitle"),tooltip:n("tradeIntervalTootlip")}},pn=()=>{const{srcToken:e,typedInputAmount:t}=ne(),r=Me(),s=te(a=>a.state.acceptedSrcAmount)||t;return{amountWei:W2(e==null?void 0:e.decimals,s),amountUI:s,error:j(s||0).isZero()?r("enterAmount"):void 0}},QV=(e,t)=>{const{module:r,srcUsd1Token:n,marketPrice:s,minChunkSizeUsd:a,typedInputAmount:o}=ne(),i=Me();return N.useMemo(()=>{if(j(o||"0").isZero()||!s)return;if(!e)return{type:Mt.MIN_CHUNKS,value:1,message:i("minChunksError",{minChunks:"1"})};const{isError:c}=vm(e,t,r);if(c)return{type:Mt.MAX_CHUNKS,value:t,message:i("maxChunksError",{maxChunks:`${t}`})};const{isError:l,value:u}=wm(o||"",n||"",a||0);if(l)return{type:Mt.MIN_TRADE_SIZE,value:u,message:i("minTradeSizeError",{minTradeSize:`${u}`})}},[e,t,r,o,n,a,i,s])},qr=()=>{const{srcToken:e,srcUsd1Token:t,module:r,minChunkSizeUsd:n}=ne(),s=te(g=>g.state.typedChunks),a=la().fillDelay,o=te(g=>g.updateState),{amountWei:i,amountUI:c}=pn(),l=N.useMemo(()=>um(a,c||"",t||"",n||0),[c,t,n,a]),u=N.useMemo(()=>lm(l,r,s),[l,s,r]),d=N.useCallback(g=>o({typedChunks:g}),[o]),f=N.useMemo(()=>pm(i||"",u),[i,u]),h=cn(e==null?void 0:e.decimals,f),y=N.useMemo(()=>t?j(h||"0").times(t||0).toString():"0",[h,t]);return{totalTrades:u,maxTrades:l,amountPerTradeUI:h,amountPerTradeWei:f,amountPerTradeUsd:y,onChange:d,error:QV(u,l)}},JV=()=>{const{srcToken:e,dstToken:t}=ne(),r=Me(),{onChange:n,totalTrades:s,amountPerTradeUsd:a,amountPerTradeUI:o,error:i,maxTrades:c,amountPerTradeWei:l}=qr(),u=je({value:o}),d=je({value:a});return{error:i,maxTrades:c,totalTrades:s,amountPerTrade:u,amountPerTradeWei:l,onChange:n,label:r("tradesAmountTitle"),tooltip:r("totalTradesTooltip"),amountPerTradeUsd:d,fromToken:e,toToken:t}},eW=e=>{const{module:t,marketPrice:r}=ne(),n=Me();return N.useMemo(()=>{const s=ym(t,e),a=gm(e);if(r){if(s.isError)return{type:Mt.MAX_ORDER_DURATION,value:s.value,message:n("maxDurationError",{duration:`${Math.floor(d1(s.value)).toFixed(0)} ${n("days")}`})};if(a.isError)return{type:Mt.MIN_ORDER_DURATION,value:a.value,message:n("minDurationError",{duration:`${Math.floor(Id(a.value)).toFixed(0)} ${n("minutes")}`})}}},[e,n,t,r])},xh=()=>{const{module:e,callbacks:t}=ne(),r=te(c=>c.state.typedDuration),n=te(c=>c.updateState),s=qr().totalTrades,a=la().fillDelay,o=N.useMemo(()=>cm(e,s,a,r),[s,a,r,e]),i=eW(o);return{duration:o,setDuration:N.useCallback(c=>{var l;n({typedDuration:c}),(l=t==null?void 0:t.onDurationChange)==null||l.call(t,c)},[n,t]),error:i}},tW=()=>{const{module:e}=ne(),t=Me(),{duration:r,setDuration:n,error:s}=xh(),a=N.useCallback(c=>{n({unit:r.unit,value:Number(c)})},[n,r]),o=N.useCallback(c=>{n({unit:c,value:r.value})},[n,r]),i=N.useMemo(()=>e===ye.STOP_LOSS?t("stopLossDurationTooltip"):t("maxDurationTooltip"),[t,e]);return{duration:r,onChange:n,milliseconds:r.unit*r.value,onInputChange:a,onUnitSelect:o,label:t("expiry"),tooltip:i,error:s}},rW=()=>{const e=te(a=>a.state.isMarketOrder),{module:t}=ne(),r=Me(),n=N.useMemo(()=>{if(e&&t===ye.STOP_LOSS)return{text:r("triggerMarketPriceDisclaimer"),url:od}},[e,r,t]),s=N.useMemo(()=>{if(!(t!==ye.LIMIT&&t!==ye.TWAP))return{text:r(e?"marketOrderWarning":"limitPriceMessage"),url:"https://www.orbs.com/dtwap-and-dlimit-faq/"}},[e,r,t]);return n||s},Vu=()=>{const{srcToken:e,dstToken:t,marketPriceLoading:r}=ne(),n=te(l=>l.updateState),s=te(l=>l.state.isInvertedTrade),a=te(l=>l.state.typedTriggerPrice),o=te(l=>l.state.typedLimitPrice),i=te(l=>l.state.isMarketOrder);return{onInvert:N.useCallback(()=>{a!==void 0&&n({typedTriggerPrice:j(1).div(a).toFixed()}),o!==void 0&&n({typedLimitPrice:j(1).div(o).toFixed()}),n({isInvertedTrade:!s})},[n,s,a,o,r]),isInverted:s,fromToken:s?t:e,toToken:s?e:t,isMarketPrice:i}},o5=({typedValue:e,tokenDecimals:t=18,initialPrice:r="0",percentage:n,setValue:s,setPercentage:a})=>{const{srcUsd1Token:o,dstUsd1Token:i}=ne(),{isInverted:c}=Vu(),l=N.useMemo(()=>{if(e!==void 0){const g=c?j(e).isZero()?j(0):j(1).div(e):j(e);return Ac(t,g.toFixed())}if(n!==void 0&&j(r||"0").gt(0)&&!j(r||"0").isNaN()){const g=j(r||"0"),E=j(n||0).div(100);return g.plus(g.multipliedBy(E)).decimalPlaces(0).toFixed()}return j(r).gt(0)?r:""},[e,n,t,r,c]),u=N.useCallback(g=>{s(g),a(null)},[s,a]),d=N.useCallback(g=>{s(void 0),a(g)},[s,a]),f=N.useMemo(()=>{if(!r||j(r).isZero())return"";if(n!=null)return n;if(l){const g=j(r),v=j(l).minus(g).div(g).multipliedBy(100).decimalPlaces(2).toString();return j(v||"0").isZero()?"":v}return""},[l,r,n]),h=N.useMemo(()=>{let g="";if(e!==void 0)g=e;else{const E=gn(t,l);if(j(E||"0").isZero())return"";g=c?j(1).div(E).toFixed():E}return Ad(g,6,t)},[e,t,l,c]),y=fo(c?o:i,h||"0");return{amountWei:j(l).isNaN()?"":l,amountUI:j(h).isNaN()?"":h,selectedPercentage:f,onChange:u,onPercentageChange:d,isInverted:c,usd:j(y).isNaN()?"":y}},nW=()=>{const{module:e}=ne();return N.useMemo(()=>e===ye.STOP_LOSS?Jh:em,[e])},wh=()=>{const{module:e}=ne(),t=te(r=>r.state.isMarketOrder);return N.useMemo(()=>e!==ye.STOP_LOSS&&e!==ye.TAKE_PROFIT||t?void 0:e===ye.STOP_LOSS?tm:rm,[e,t])},sW=(e="")=>{const{module:t,marketPrice:r,typedInputAmount:n}=ne(),s=Me();return N.useMemo(()=>{if(j(n||"0").isZero()||!r||t!==ye.STOP_LOSS&&t!==ye.TAKE_PROFIT)return;const a=fm(r||"",e||"",t);if(a!=null&&a.isError)return{type:Mt.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE,value:a.value,message:s("StopLossTriggerPriceError")||""};const o=hm(r||"",e||"",t);if(o!=null&&o.isError)return{type:Mt.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE,value:o.value,message:s("TakeProfitTriggerPriceError")||""};if(!e||j(e||0).isZero())return{type:Mt.EMPTY_TRIGGER_PRICE,value:e,message:s("emptyTriggerPrice")||""}},[r,e,t,s,n])},aW=e=>{const{srcToken:t,dstToken:r,module:n}=ne(),s=qr().amountPerTradeWei,a=te(i=>i.state.isMarketOrder),o=N.useMemo(()=>im(n,s,e,(t==null?void 0:t.decimals)||0),[e,s,a,t==null?void 0:t.decimals,n]);return{amountWei:o,amountUI:cn((r==null?void 0:r.decimals)||0,o)}},ua=()=>{const{dstToken:e,marketPrice:t,module:r,callbacks:n}=ne(),s=te(h=>h.updateState),a=nW(),o=te(h=>h.state.triggerPricePercent),i=o===void 0?a:o,c=r===ye.STOP_LOSS||r===ye.TAKE_PROFIT,l=o5({typedValue:te(h=>h.state.typedTriggerPrice),percentage:i,tokenDecimals:e==null?void 0:e.decimals,initialPrice:c?t:void 0,setValue:N.useCallback(h=>{var y;s({typedTriggerPrice:h}),(y=n==null?void 0:n.onTriggerPriceChange)==null||y.call(n,h||"")},[s,n]),setPercentage:N.useCallback(h=>{var y;s({triggerPricePercent:h}),(y=n==null?void 0:n.onTriggerPricePercentChange)==null||y.call(n,h||"")},[s,n])}),u=sW(l.amountWei),{amountWei:d,amountUI:f}=aW(l.amountWei);return N.useMemo(()=>({...l,error:u,pricePerChunkWei:d,pricePerChunkUI:f}),[l,u,d,f])},oW=()=>{const{module:e,marketPrice:t,marketPriceLoading:r}=ne(),n=Me(),{amountUI:s,onChange:a,onPercentageChange:o,usd:i,selectedPercentage:c,error:l,pricePerChunkUI:u}=ua(),d=te(T=>T.state.isMarketOrder),f=te(T=>T.updateState),{isInverted:h,onInvert:y,fromToken:g,toToken:E}=Vu(),v=N.useCallback(()=>{f({triggerPricePercent:void 0,typedTriggerPrice:void 0})},[f]),w=e!==ye.STOP_LOSS&&e!==ye.TAKE_PROFIT;return{price:s,amountPerChunk:u,error:l,label:n("stopLossLabel"),tooltip:e===ye.STOP_LOSS?n("stopLossTooltip"):n("takeProfitTooltip"),onChange:a,onPercentageChange:o,percentage:c,isActive:!d,onReset:v,usd:i,fromToken:g,toToken:E,prefix:"",isLoading:r||!t,isInverted:h,hide:w,onInvert:y,totalTrades:qr().totalTrades}},iW=e=>{const{module:t,marketPrice:r,typedInputAmount:n}=ne(),s=Me(),{amountWei:a}=ua(),o=te(i=>i.state.isMarketOrder);return N.useMemo(()=>{if(j(n||"0").isZero()||!a||!r)return;const i=mm(a,e,o,t),c=bm(a,e,o,t);if(i!=null&&i.isError)return{type:Mt.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE,message:s("triggerLimitPriceError")||"",value:i.value};if(c!=null&&c.isError)return{type:Mt.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE,message:s("triggerLimitPriceError")||"",value:c.value};if(e&&j(e||0).isZero())return{type:Mt.MISSING_LIMIT_PRICE,message:s("emptyLimitPrice")||"",value:e||""}},[e,s,a,t,o,n,r])},yc=()=>{const{dstToken:e,marketPrice:t,callbacks:r}=ne(),n=te(l=>l.updateState),s=wh(),a=te(l=>l.state.limitPricePercent),o=a===void 0?s:a,i=o5({typedValue:te(l=>l.state.typedLimitPrice),percentage:o,tokenDecimals:e==null?void 0:e.decimals,initialPrice:t,setValue:N.useCallback(l=>{var u;n({typedLimitPrice:l}),(u=r==null?void 0:r.onLimitPriceChange)==null||u.call(r,l||"")},[n,r]),setPercentage:N.useCallback(l=>{var u;n({limitPricePercent:l}),(u=r==null?void 0:r.onLimitPricePercentChange)==null||u.call(r,l||"")},[n,r])}),c=iW(i.amountWei);return N.useMemo(()=>({...i,error:c}),[i,c])},cW=()=>{const{module:e}=ne(),t=te(i=>i.updateState),r=te(i=>i.state.isMarketOrder),n=wh(),s=te(i=>i.state.triggerPricePercent)||0,a=e===ye.LIMIT,o=N.useCallback(()=>{!r&&e===ye.STOP_LOSS&&t({limitPricePercent:n}),t({isMarketOrder:!r})},[t,s,e,r,n]);return{isLimitPrice:!r,toggleLimitPrice:o,hide:a}},i5=()=>{const{module:e,marketPrice:t}=ne(),r=yc().amountWei,n=ua().amountWei,s=te(a=>a.state.isMarketOrder);return e===ye.LIMIT||!s?r||"":e===ye.STOP_LOSS||e===ye.TAKE_PROFIT?n||"":t||""},gc=()=>{const{srcToken:e,dstToken:t,dstUsd1Token:r}=ne(),n=i5(),s=pn().amountWei,a=N.useMemo(()=>am(s||"",n,(e==null?void 0:e.decimals)||0),[s,n,e==null?void 0:e.decimals]),o=cn(t==null?void 0:t.decimals,a);return{amountWei:a,amountUI:o,usd:fo(o,r)}},Wu=()=>{const{srcToken:e,dstToken:t,dstUsd1Token:r}=ne(),n=i5(),s=qr().amountPerTradeWei,a=te(c=>c.state.isMarketOrder),o=N.useMemo(()=>om(s,n,!!a,(e==null?void 0:e.decimals)||0),[s,n,a,e==null?void 0:e.decimals]),i=cn(t==null?void 0:t.decimals,o);return{amountWei:o,amountUI:i,usd:fo(i,r)}},lW=()=>{const{typedInputAmount:e,marketPriceLoading:t,dstToken:r}=ne(),{amountUI:n,usd:s}=gc(),o=SG()?e:n;return{value:q2(o,7),valueWei:W2(r==null?void 0:r.decimals,o),isLoading:t,usd:s}},uW=()=>{const{module:e,marketPriceLoading:t}=ne(),r=Me(),{amountUI:n,onChange:s,onPercentageChange:a,usd:o,selectedPercentage:i,error:c}=yc(),l=te(T=>T.updateState),u=wh(),{isLimitPrice:d,toggleLimitPrice:f}=cW(),{isInverted:h,onInvert:y,fromToken:g,toToken:E}=Vu(),v=N.useCallback(()=>{l({typedLimitPrice:void 0}),l({limitPricePercent:u})},[l,e,u]),w=N.useMemo(()=>e===ye.STOP_LOSS?r("stopLossLimitPriceTooltip"):r("limitPriceTooltip"),[r,e]);return{price:n,amountPerChunk:Wu().amountUI,error:c,label:r("limitPrice"),tooltip:w,onChange:s,onPercentageChange:a,onReset:v,usd:o,fromToken:g,tradesAmount:qr().totalTrades,toToken:E,percentage:i,isInverted:h,isLoading:t,isLimitPrice:d,toggleLimitPrice:f,onInvert:y}},dW=()=>{const{srcBalance:e,chainId:t}=ne(),r=Me(),n=pn().amountWei;return N.useMemo(()=>{if(e&&j(n).gt(e))return{type:Mt.INSUFFICIENT_BALANCE,message:r("insufficientFunds"),value:e||""}},[e,n,r,t])};function c5(){const{marketPrice:e,marketPriceLoading:t,typedInputAmount:r}=ne(),n=te(u=>u.state.swapExecution.status),s=dW(),{error:a}=ua(),{error:o}=yc(),{error:i}=qr(),{error:c}=la(),{error:l}=xh();return N.useMemo(()=>{const u=Fo("ignore-errors");if(n!==pt.LOADING&&!(j(e||0).isZero()||j(r||0).isZero()||t||u))return a||o||i||c||l||s},[e,t,r,a,o,i,c,l,s,n])}const pW=()=>{const e=te(n=>n.state.isMarketOrder),t=te(n=>n.updateState),r=N.useCallback(()=>{t({isMarketOrder:!e})},[t,e]);return{isMarketPrice:!e,togglePrice:r}},vh=()=>{const e=te(r=>r.state.currentTime),t=xh().duration;return N.useMemo(()=>dm(e,t),[e,t])},fW=()=>{const{srcUsd1Token:e,dstUsd1Token:t}=ne(),r=pn().amountUI,n=gc().amountUI,s=fo(r,e),a=fo(n,t);return{srcAmountUsd:s,dstAmountUsd:a}},hW=()=>{const{fees:e,dstUsd1Token:t}=ne(),{amountUI:r}=gc(),n=N.useMemo(()=>!e||!r?"":j(r).multipliedBy(e).dividedBy(100).toFixed(),[r,e]);return{amount:n,percent:e,usd:fo(n,t)}},l5=()=>{const{srcToken:e,dstToken:t,account:r,chainId:n,slippage:s,config:a,module:o}=ne(),{amountWei:i}=pn(),{amountWei:c}=yc(),{amountPerTradeWei:l,totalTrades:u}=qr(),d=vh(),{amountWei:f}=Wu(),{pricePerChunkWei:h}=ua(),{milliseconds:y}=la();return N.useMemo(()=>{var g;return{srcToken:e,dstToken:t,limitPrice:c,deadline:d,srcAmount:i,srcAmountPerTrade:l,totalTrades:u,minDestAmountPerTrade:f,tradeInterval:y,triggerPricePerTrade:h,maker:r,rePermitData:km({chainId:n,srcToken:Is((e==null?void 0:e.address)||"")?((g=Bs(n))==null?void 0:g.wToken.address)||"":(e==null?void 0:e.address)||"",dstToken:(t==null?void 0:t.address)||"",srcAmount:i,deadlineMillis:d,fillDelayMillis:!u||u===1?0:y,slippage:s*100,account:r,srcAmountPerTrade:l,dstMinAmountPerTrade:f,triggerAmountPerTrade:h,config:a,module:o})}},[e,t,c,d,i,l,u,f,h,r,y,s,n,a,o])},u5=()=>{const{srcToken:e,dstToken:t,account:r}=ne(),n=Me(),{amountUI:s,usd:a}=Wu(),{amountPerTradeUI:o,amountPerTradeUsd:i,totalTrades:c}=qr(),{amountUI:l,usd:u}=ua(),d=vh(),{amountUI:f,usd:h}=yc(),{amount:y,percent:g,usd:E}=hW(),{milliseconds:v}=la(),{amountUI:w}=gc(),{srcAmountUsd:T,dstAmountUsd:C}=fW(),_=pn().amountUI,z=te(x=>x.state.isMarketOrder),S=Y2({srcToken:e,dstToken:t,account:r,limitPrice:z?void 0:f,limitPriceUsd:z?void 0:h,deadline:d,tradeInterval:v,srcAmount:_,totalTrades:c,srcAmountPerTrade:o,srcAmountPerTradeUsd:i,minDestAmountPerTrade:s,minDestAmountPerTradeUsd:a,triggerPrice:l,triggerPriceUsd:u,srcUsd:T,dstUsd:C,dstAmount:w}),m=je({value:y}),b=je({value:E});return N.useMemo(()=>({...S,fees:{label:n("fees",{value:`${g}%`}),amount:m,usd:b||"",percentage:g}}),[S,m,b,g])},d5=N.createContext({}),mW=({children:e,...t})=>B.jsx(d5.Provider,{value:t,children:e}),bW=()=>N.useContext(d5),p5=()=>{var s,a;const e=Me(),{wrapTxHash:t,srcToken:r}=te(o=>o.state.swapExecution),n=(a=(s=sc())==null?void 0:s.wToken)==null?void 0:a.symbol;return t?B.jsx("p",{className:"twap-error-wrap-msg",children:e("wrapMsg",{symbol:(r==null?void 0:r.symbol)||"",wSymbol:n||""})}):null},f5=()=>{const e=Me(),t=te(n=>n.state.swapExecution.status),r=X2();return t===pt.SUCCESS?e("createOrderActionSuccess",{name:r}):e("createOrderAction",{name:r})},yW=()=>{const e=te(y=>y.state.swapExecution.srcToken),t=Me(),{step:r,wrapTxHash:n,approveTxHash:s}=te(y=>y.state.swapExecution),a=sc(),o=G0(n),i=G0(n),c=G0(s),l=te(y=>y.state.swapExecution.status),d=Is((e==null?void 0:e.address)||"")?(a==null?void 0:a.native.symbol)||"":(e==null?void 0:e.symbol)||"",f=a==null?void 0:a.wToken.symbol,h=f5();return N.useMemo(()=>r===_s.WRAP?{title:t("wrapAction",{symbol:d}),footerLink:o,footerText:t(o?"viewOnExplorer":"proceedInWallet")}:r===_s.APPROVE?{title:t("approveAction",{symbol:d}),footerLink:c,footerText:t(c?"viewOnExplorer":"proceedInWallet")}:{title:h,footerText:l===pt.LOADING?t("proceedInWallet"):void 0},[r,c,d,h,t,o,i,f,l])},gW=({error:e})=>B.jsxs("div",{className:"twap-error",children:[B.jsx("h2",{className:"twap-error-title",children:"Transaction failed"}),(e==null?void 0:e.code)&&B.jsxs("p",{className:"twap-error-code",children:["Error code: ",e==null?void 0:e.code]}),B.jsx(p5,{})]});function xW({error:e}){const{components:t}=ne(),r=Me(),n=te(o=>{var i;return(i=o.state.swapExecution)==null?void 0:i.wrapTxHash}),s=t.SubmitOrderErrorView,a=B.jsx(Qn.Failed,{error:B.jsx(gW,{error:e}),footerLink:od,footerText:r("viewOnExplorer")});return s?B.jsx(s,{wrapTxHash:n,error:e,children:a}):a}const wW=()=>{const{components:e}=ne(),t=te(u=>u.state.swapExecution.srcToken),r=te(u=>u.state.swapExecution.dstToken),{reviewDetails:n}=bW(),s=Me(),a=te(u=>{var d;return!!((d=u.state.swapExecution)!=null&&d.status)}),o=u5(),i=e.USD,c=e.SubmitOrderMainView,l=B.jsxs(B.Fragment,{children:[B.jsx(Qn.Main,{fromTitle:s("from"),toTitle:s("to"),inUsd:i?B.jsx(i,{value:o.srcUsd,isLoading:!1}):`$${o.srcUsd}`,outUsd:i?B.jsx(i,{value:o.dstUsd,isLoading:!1}):`$${o.dstUsd}`}),!a&&B.jsxs("div",{className:"twap-create-order-bottom",children:[B.jsx(Ee.Container,{children:B.jsxs("div",{className:"twap-create-order-details",children:[B.jsx(Ee.Deadline,{deadline:o.deadline.value,label:o.deadline.label,tooltip:o.deadline.tooltip||""}),B.jsx(Ee.Price,{srcToken:t,price:o.triggerPrice.value,dstToken:r,label:o.triggerPrice.label,tooltip:o.triggerPrice.tooltip,usd:o.triggerPrice.usd}),B.jsx(Ee.Price,{srcToken:t,price:o.limitPrice.value,dstToken:r,label:o.limitPrice.label,usd:o.limitPrice.usd,tooltip:o.limitPrice.tooltip}),B.jsx(Ee.MinDestAmount,{dstToken:r,dstMinAmountOut:o.minDestAmountPerTrade.value,label:o.minDestAmountPerTrade.label,tooltip:o.minDestAmountPerTrade.tooltip||"",usd:o.minDestAmountPerTrade.usd}),B.jsx(Ee.TradeSize,{tradeSize:o.sizePerTrade.value,trades:o.totalTrades.value,srcToken:t,label:o.sizePerTrade.label,tooltip:o.sizePerTrade.tooltip}),B.jsx(Ee.TradesAmount,{trades:o.totalTrades.value,label:o.totalTrades.label,tooltip:o.totalTrades.tooltip}),B.jsx(Ee.TradeInterval,{chunks:o.totalTrades.value,fillDelayMillis:o.tradeInterval.value,label:o.tradeInterval.label,tooltip:o.tradeInterval.tooltip}),B.jsx(Ee.Recipient,{}),o.fees.amount&&B.jsx(Ee.Fees,{fees:o.fees.amount,label:o.fees.label,usd:o.fees.usd,dstTokenSymbol:r==null?void 0:r.symbol})]})}),n]})]});return c?B.jsx(c,{children:l}):l},vW=e=>{const{status:t,stepIndex:r,totalSteps:n,parsedError:s}=te(w=>w.state.swapExecution),{components:a}=ne(),o=a.Spinner,i=a.SuccessIcon,c=a.ErrorIcon,l=a.TokenLogo,{srcToken:u,dstToken:d}=ne(),f=pn().amountUI,h=gc().amountUI,y=je({value:f,decimalScale:2}),g=je({value:h,decimalScale:2}),E=N.useMemo(()=>({symbol:u==null?void 0:u.symbol,logoUrl:u==null?void 0:u.logoUrl}),[u]),v=N.useMemo(()=>({symbol:d==null?void 0:d.symbol,logoUrl:d==null?void 0:d.logoUrl}),[d]);return B.jsx(mW,{...e,children:B.jsx(Qn,{inAmount:y,outAmount:g,swapStatus:t,totalSteps:n,currentStep:yW(),currentStepIndex:r,inToken:E,outToken:v,components:{SrcTokenLogo:l&&B.jsx(l,{token:u}),DstTokenLogo:l&&B.jsx(l,{token:d}),Failed:B.jsx(xW,{error:s}),Success:B.jsx(EW,{}),Main:B.jsx(wW,{}),Loader:o,SuccessIcon:i,FailedIcon:c}})})},EW=()=>{const e=f5(),{components:t}=ne(),r=te(a=>a.state.swapExecution.orderId),n=t.SubmitOrderSuccessView,s=B.jsxs(B.Fragment,{children:[B.jsx(Qn.Success,{title:e}),B.jsx(p5,{})]});return n?B.jsx(n,{newOrderId:r,children:s}):s},kW=()=>{const{supportedChains:e}=ne();return N.useMemo(()=>e,[e])},CW=()=>{const{config:e}=ne();return N.useMemo(()=>({spender:e.repermit}),[e])},TW=()=>{var c;const{account:e,walletClient:t,overrides:r,refetchBalances:n,callbacks:s,chainId:a}=ne(),o=(c=sc())==null?void 0:c.wToken,i=V0();return Zr({mutationFn:async({onHash:l,srcAmountWei:u})=>{var h,y;if(!e)throw new Error("missing account");if(!t)throw new Error("missing walletClient");if(!o)throw new Error("tokenAddress is not defined");let d;dt.onWrapRequest(),(h=s==null?void 0:s.onWrapRequest)==null||h.call(s),r!=null&&r.wrap?d=await r.wrap(u):d=await t.writeContract({abi:_h,functionName:"deposit",account:e,address:o.address,value:BigInt(u),chain:t.chain}),l==null||l(d);const f=await i(d);if(!f)throw new Error("failed to get transaction receipt");if(f.status==="reverted")throw new Error("failed to wrap token");return dt.onWrapSuccess(d),(y=s==null?void 0:s.onWrapSuccess)==null||y.call(s,{txHash:f.transactionHash,explorerUrl:_o(f.transactionHash,a),amount:gn(o.decimals,u)}),n==null||n(),f},onError:l=>{throw dt.onWrapError(l),l}})},SW=()=>{const{account:e,walletClient:t,chainId:r,callbacks:n}=ne(),s=l5().rePermitData,a=$G();return Zr({mutationFn:async()=>{var y,g,E,v;if(!e)throw new Error("missing account");if(!t)throw new Error("missing walletClient");if(!r)throw new Error("missing chainId");const{order:o,domain:i,types:c,primaryType:l}=s;dt.onSignOrderRequest(o),(y=n==null?void 0:n.onSignOrderRequest)==null||y.call(n),console.log({domain:i,types:c,primaryType:l,message:o,account:e}),console.log("Using domain:",i),console.log("Using types:",c),console.log("Order data to sign:",JSON.stringify(o,null,2)),console.log(`Account address: ${e}`);let u;try{u=await(t==null?void 0:t.signTypedData({domain:i,types:c,primaryType:l,message:o,account:e}))}catch(w){throw(g=n==null?void 0:n.onSignOrderError)==null||g.call(n,w),dt.onSignOrderError(w),w}dt.onSignOrderSuccess(u),(E=n==null?void 0:n.onSignOrderSuccess)==null||E.call(n,u);const d=HL(u),f={v:q(d.v||0),r:d.r,s:d.s},h=await Am(o,f);return(v=n==null?void 0:n.onOrderCreated)==null||v.call(n,h),a(h),h}})},h5=()=>{const{account:e,publicClient:t,config:r}=ne();return Zr({mutationFn:async({tokenAddress:n,srcAmountWei:s})=>{if(!t)throw new Error("missing publicClient");if(!e)throw new Error("missing account");if(!r)throw new Error("missing config");const a=await t.readContract({address:n,abi:wg,functionName:"allowance",args:[e,r.repermit]}).then(i=>i.toString()),o=j(a||"0").lt(j(s).toString());return{allowance:a,approvalRequired:o}}})},AW=()=>{const{account:e,walletClient:t,overrides:r,config:n,chainId:s,callbacks:a}=ne(),o=V0(),{mutateAsync:i}=h5();return Zr({onError:c=>{dt.onApproveError(c)},mutationFn:async({token:c,onHash:l,srcAmountWei:u})=>{var y,g;if(!e)throw new Error("missing account");if(!t)throw new Error("missing walletClient");if(!n)throw new Error("missing config");(y=a==null?void 0:a.onApproveRequest)==null||y.call(a),dt.onApproveRequest();let d;if(r!=null&&r.approveOrder?d=await r.approveOrder({tokenAddress:c.address,spenderAddress:n.repermit,amount:Ls}):d=await t.writeContract({abi:wg,functionName:"approve",account:e,address:c.address,args:[n.repermit,Ls],chain:t.chain}),!d)throw new Error("failed to approve token");l(d);const f=await o(d);if(!f)throw new Error("failed to get transaction receipt");if(f.status==="reverted")throw new Error("failed to approve token");let h=!1;for(let E=0;E<3;E++){const{approvalRequired:v}=await i({tokenAddress:c.address,srcAmountWei:u});if(!v){h=!0;break}E<2&&await new Promise(w=>setTimeout(w,3e3))}if(!h)throw new Error(`Insufficient ${c.symbol} allowance to perform the swap. Please approve the token first.`);return dt.onApproveSuccess(f.transactionHash),(g=a==null?void 0:a.onApproveSuccess)==null||g.call(a,{txHash:f.transactionHash,explorerUrl:_o(f.transactionHash,s),token:c,amount:gn(c.decimals,u)}),f}})},PW=()=>{const{account:e,chainId:t,srcToken:r,dstToken:n,module:s,slippage:a}=ne(),o=ua(),i=pn().amountWei,c=qr().amountPerTradeWei,l=vh(),u=qr().totalTrades,d=la().fillDelay,f=Wu().amountWei,h=te(y=>y.state.isMarketOrder);return Zr({mutationFn:async()=>{dt.onRequestOrder({account:e,chainId:t,module:s,srcToken:r,dstToken:n,fromTokenAmount:i,srcChunkAmount:c,triggerPricePerTrade:o.pricePerChunkWei,deadline:l,fillDelay:d.unit*d.value,minDstAmountOutPerTrade:f,slippage:a,isMarketOrder:h||!1,chunksAmount:u})}})};function IW(e){const t=e.message,r=t.match(/,\s*code\s*:\s*(\d+)/i);return{message:t.replace(/^error\s*:/i,"").replace(/,\s*code\s*:\s*\d+/i,"").trim()||"",code:r?Number(r[1]):0}}const BW=()=>{const{srcToken:e,dstToken:t,chainId:r,callbacks:n}=ne(),s=AW().mutateAsync,a=TW().mutateAsync,o=SW().mutateAsync,{mutateAsync:i}=h5(),c=te(d=>d.updateSwapExecution),{amountWei:l}=pn(),u=PW().mutate;return Zr({mutationFn:async()=>{var f,h;const d=Is((e==null?void 0:e.address)||" ");try{if(!e)throw new Error("missing srcToken");if(!t)throw new Error("missing dstToken");if(!r)throw new Error("missing chainId");const y=u1(e,r);c({allowanceLoading:!0});const{approvalRequired:g}=await i({tokenAddress:y.address,srcAmountWei:l});let E=0,v=1;d&&v++,g&&v++,c({totalSteps:v,stepIndex:E,allowanceLoading:!1,status:pt.LOADING}),u(),d&&(c({step:_s.WRAP}),await a({onHash:T=>c({wrapTxHash:T}),srcAmountWei:l}),E++,c({stepIndex:E})),g&&(c({step:_s.APPROVE}),await s({token:y,onHash:T=>c({approveTxHash:T}),srcAmountWei:l}),E++,c({stepIndex:E})),c({step:_s.CREATE});const w=await o();return c({status:pt.SUCCESS,orderId:w.id}),w}catch(y){if(Pd(y))(f=n==null?void 0:n.onSubmitOrderRejected)==null||f.call(n),c({step:void 0,status:void 0,stepIndex:void 0,error:y});else{const g=IW(y);(h=n==null?void 0:n.onSubmitOrderFailed)==null||h.call(n,g),c({status:pt.FAILED,parsedError:g,error:y})}throw y}}})},FW=()=>{const{marketPrice:e,srcToken:t,dstToken:r,resetTypedInputAmount:n}=ne(),s=BW(),a=te(g=>g.updateState),{amountUI:o}=pn(),i=te(g=>g.resetState),c=te(g=>g.state.swapExecution),l=te(g=>g.updateSwapExecution),u=X2(),d=N.useCallback(()=>{(c==null?void 0:c.status)===pt.SUCCESS&&(n(),i())},[c==null?void 0:c.status,i,n]),f=N.useCallback(()=>{(c==null?void 0:c.status)!==pt.LOADING&&(a({acceptedSrcAmount:void 0,acceptedMarketPrice:void 0}),l({srcToken:t,dstToken:r,error:void 0,parsedError:void 0,status:void 0}))},[a,t,r]),h=Zr({mutationFn:async()=>(a({acceptedSrcAmount:o,acceptedMarketPrice:e}),await s.mutateAsync())}),y=N.useCallback(()=>h.mutateAsync(),[h]);return N.useMemo(()=>({reset:i,onCloseModal:d,onOpenModal:f,onSubmit:y,orderTitle:u,...c,isLoading:(c==null?void 0:c.status)===pt.LOADING,isSuccess:(c==null?void 0:c.status)===pt.SUCCESS,isFailed:(c==null?void 0:c.status)===pt.FAILED}),[i,d,y,c,u])},UW=()=>{const e=Me(),{marketPrice:t,srcToken:r,dstToken:n,marketPriceLoading:s,srcBalance:a,srcUsd1Token:o,noLiquidity:i,typedInputAmount:c}=ne(),l=s||j(o||"0").isZero()||a===void 0||j(t||"0").isZero(),u=!!(r&&n&&c&&l),d=c5(),f=N.useMemo(()=>i?e("noLiquidity"):j(c||"0").isZero()?e("enterAmount"):(d==null?void 0:d.type)===Mt.INSUFFICIENT_BALANCE?e("insufficientFunds"):e("placeOrder"),[d,e,c,i]),h=!!(d||i||u||j(c||"0").isZero()||!r||!n);return N.useMemo(()=>({disabled:h,text:f,loading:u}),[h,f,u])};Tm(Iw.version);const OW={SubmitOrderPanel:vW,Orders:KV};R.CRASH_ERROR_MESSAGE=tw,R.Components=OW,R.Configs=_t,R.DEFAULT_DURATION_OPTIONS=QL,R.DEFAULT_FILL_DELAY=Bc,R.DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE=tm,R.DEFAULT_STOP_LOSS_PERCENTAGE=Jh,R.DEFAULT_TAKE_PROFIT_LIMIT_PERCENTAGE=rm,R.DEFAULT_TAKE_PROFIT_PERCENTAGE=em,R.DISCLAIMER_URL=ew,R.EIP712_TYPES=Qh,R.ERC20_ABI=L5,R.EXCLUSIVITY_OVERRIDE_BPS=K5,R.FEES=Y5,R.IWETH_ABI=_h,R.InputErrors=Mt,R.LEGACY_EXCHANGES_MAP=Zh,R.MAX_ORDER_DURATION_MILLIS=ka,R.MIN_CHUNKS=q5,R.MIN_FILL_DELAY_MILLIS=Pc,R.MIN_FILL_DELAY_MINUTES=Vh,R.MIN_ORDER_DURATION_MILLIS=ad,R.Module=ye,R.ORBS_LOGO=X5,R.ORBS_LOGO_FALLBACK=Q5,R.ORBS_SLTP_FAQ_URL=Z5,R.ORBS_TWAP_FAQ_URL=od,R.ORBS_WEBSITE_URL=J5,R.OrderStatus=ct,R.OrderType=Ge,R.PRICE_PROTECTION_SETTINGS=JL,R.Partners=Nh,R.QUERY_PARAMS=Fc,R.REPERMIT_ABI=Dh,R.REPERMIT_PRIMARY_TYPE=Xh,R.SUGGEST_CHUNK_VALUE=W5,R.SpotProvider=ZL,R.Steps=_s,R.SwapStatus=pt,R.THE_GRAPH_ORDERS_API=qh,R.TWAP_ABI=Mh,R.TimeUnit=Gt,R.amountBN=Ac,R.amountUi=gn,R.analytics=dt,R.buildRePermitOrderData=km,R.buildV2Order=pd,R.copy=M3,R.ensureWrappedToken=u1,R.eqIgnoreCase=Ps,R.fillDelayText=l1,R.formatDecimals=Ad,R.getAccountOrders=Fm,R.getApiEndpoint=sd,R.getChunks=lm,R.getConfig=ld,R.getDeadline=dm,R.getDestTokenAmount=am,R.getDestTokenMinAmountPerChunk=om,R.getDuration=cm,R.getEstimatedDelayBetweenChunksMillis=cd,R.getExplorerUrl=_o,R.getMaxChunksError=vm,R.getMaxFillDelayError=iw,R.getMaxOrderDurationError=ym,R.getMaxPossibleChunks=um,R.getMinFillDelayError=xm,R.getMinNativeBalance=L3,R.getMinOrderDurationError=gm,R.getMinTradeSizeError=wm,R.getMinimumDelayMinutes=ow,R.getNetwork=Bs,R.getOrderExcecutionRate=$h,R.getOrderFillDelayMillis=td,R.getOrderLimitPriceRate=Gh,R.getOrderType=z3,R.getPartnerChains=Hh,R.getPartnerIdentifier=Dt,R.getPartners=Em,R.getQueryParam=Fo,R.getSrcTokenChunkAmount=pm,R.getStopLossLimitPriceError=mm,R.getStopLossPriceError=fm,R.getTakeProfitLimitPriceError=bm,R.getTakeProfitPriceError=hm,R.getTriggerPricePerChunk=im,R.isNativeAddress=Is,R.isTxRejected=Pd,R.makeElipsisAddress=Sd,R.maxUint256=Ic,R.millisToDays=d1,R.millisToMinutes=Id,R.nativeTokenAddresses=Kh,R.networks=Ft,R.parseError=N3,R.removeCommas=D3,R.setApiMode=V5,R.setUIVersion=Tm,R.shouldUnwrapOnly=Fd,R.shouldWrapOnly=Bd,R.submitOrder=Am,R.useAddresses=CW,R.useDisclaimerPanel=rW,R.useDstTokenPanel=lW,R.useDurationPanel=tW,R.useFillDelayPanel=XV,R.useFormatNumber=je,R.useInputErrors=c5,R.useInvertTradePanel=Vu,R.useLimitPricePanel=uW,R.useOrder=l5,R.useOrderHistoryPanel=WG,R.useOrderInfo=u5,R.usePartnerChains=kW,R.useSubmitOrderButton=UW,R.useSubmitOrderPanel=FW,R.useTogglePricePanel=pW,R.useTradesPanel=JV,R.useTranslations=Me,R.useTriggerPricePanel=oW,R.zeroAddress=Yh,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));