@orbs-network/spot-react 1.1.44 → 1.1.45

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.
@@ -4,7 +4,7 @@ var Pr = (e) => {
4
4
  };
5
5
  var zs = (e, t, n) => t in e ? $s(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
6
  var kt = (e, t, n) => zs(e, typeof t != "symbol" ? t + "" : t, n), qn = (e, t, n) => t.has(e) || Pr("Cannot " + n);
7
- var l = (e, t, n) => (qn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), L = (e, t, n) => t.has(e) ? Pr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), k = (e, t, n, r) => (qn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), W = (e, t, n) => (qn(e, t, "access private method"), n);
7
+ var l = (e, t, n) => (qn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), L = (e, t, n) => t.has(e) ? Pr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), k = (e, t, n, r) => (qn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), z = (e, t, n) => (qn(e, t, "access private method"), n);
8
8
  var pn = (e, t, n, r) => ({
9
9
  set _(s) {
10
10
  k(e, t, s, n);
@@ -16,7 +16,7 @@ var pn = (e, t, n, r) => ({
16
16
  import { jsx as Ne, jsxs as Qs, Fragment as Ws } from "react/jsx-runtime";
17
17
  import * as he from "react";
18
18
  import mn, { useMemo as U, useCallback as ne, useEffect as st, createContext as hr, useContext as cs, Component as Vs, createElement as Or } from "react";
19
- const js = { 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: "" }, Gs = { 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: "" }, Xs = { 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" }, Zs = { 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: "" }, Ys = { 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" }, Js = { 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: "" }, ea = { 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: "" }, ta = { 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: "" }, na = { 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: "" }, ra = { 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" }, sa = { 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: "" }, aa = { 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: "" }, ia = { 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: "" }, oa = { 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: "" }, ca = { chainId: 1329, name: "DragonSwap" }, ua = { 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: "" }, da = { 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" }, Q = {
19
+ const js = { 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: "" }, Gs = { 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: "" }, Xs = { 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" }, Zs = { 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: "" }, Ys = { 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" }, Js = { 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: "" }, ea = { 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: "" }, ta = { 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: "" }, na = { 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: "" }, ra = { 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" }, sa = { 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: "" }, aa = { 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: "" }, ia = { 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: "" }, oa = { 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: "" }, ca = { chainId: 1329, name: "DragonSwap" }, ua = { 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: "" }, da = { 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" }, $ = {
20
20
  SpookySwap: js,
21
21
  SpookySwapSonic: Gs,
22
22
  QuickSwap: Xs,
@@ -970,61 +970,61 @@ const te = "0x0000000000000000000000000000000000000000", ge = {
970
970
  "0x000000000000000000000000000000000000800A",
971
971
  "0x000000000000000000000000000000000000800a"
972
972
  ], us = "115792089237316195423570985008687907853269984665640564039457584007913129639935", me = (e) => `${e.name}_${e.chainId}`, Da = {
973
- [me(Q.SushiArb)]: [
973
+ [me($.SushiArb)]: [
974
974
  "0x846F2B29ef314bF3D667981b4ffdADc5B858312a",
975
975
  "0x08c41f5D1C844061f6D952E25827eeAA576c6536"
976
976
  ],
977
- [me(Q.SushiBase)]: [
977
+ [me($.SushiBase)]: [
978
978
  "0x846F2B29ef314bF3D667981b4ffdADc5B858312a",
979
979
  "0x08c41f5D1C844061f6D952E25827eeAA576c6536"
980
980
  ],
981
- [me(Q.SushiEth)]: [
981
+ [me($.SushiEth)]: [
982
982
  "0xc55943Fa6509004B2903ED8F8ab7347BfC47D0bA",
983
983
  "0x08c41f5D1C844061f6D952E25827eeAA576c6536"
984
984
  ],
985
- [me(Q.PancakeSwap)]: [
985
+ [me($.PancakeSwap)]: [
986
986
  "0xb2BAFe188faD927240038cC4FfF2d771d8A58905",
987
987
  "0xE2a0c3b9aD19A18c4bBa7fffBe5bC1b0E58Db1CE"
988
988
  ],
989
- [me(Q.PancakeSwapArbitrum)]: [
989
+ [me($.PancakeSwapArbitrum)]: [
990
990
  "0xE20167871dB616DdfFD0Fd870d9bC068C350DD1F",
991
991
  "0x807488ADAD033e95C438F998277bE654152594dc"
992
992
  ],
993
- [me(Q.PancakeSwapBase)]: [
993
+ [me($.PancakeSwapBase)]: [
994
994
  "0x10ed1F36e4eBE76E161c9AADDa20BE841bc0082c",
995
995
  "0x3A9df3eE209b802D0337383f5abCe3204d623588"
996
996
  ],
997
- [me(Q.PancakeSwapLinea)]: [
997
+ [me($.PancakeSwapLinea)]: [
998
998
  "0x3A9df3eE209b802D0337383f5abCe3204d623588"
999
999
  ],
1000
- [me(Q.QuickSwap)]: [
1000
+ [me($.QuickSwap)]: [
1001
1001
  "0x26D0ec4Be402BCE03AAa8aAf0CF67e9428ba54eF"
1002
1002
  ],
1003
- [me(Q.Thena)]: [
1003
+ [me($.Thena)]: [
1004
1004
  "0xc2aBC02acd77Bb2407efA22348dA9afC8B375290"
1005
1005
  ],
1006
- [me(Q.Lynex)]: [
1006
+ [me($.Lynex)]: [
1007
1007
  "0x72e3e1fD5D2Ee2F1C2Eb695206D490a1D45C3835"
1008
1008
  ],
1009
- [me(Q.DragonSwap)]: [
1009
+ [me($.DragonSwap)]: [
1010
1010
  "0x101e1B65Bb516FB5f4547C80BAe0b51f1b8D7a22"
1011
1011
  ],
1012
- [me(Q.SpookySwapSonic)]: [
1012
+ [me($.SpookySwapSonic)]: [
1013
1013
  "0xAd97B770ad64aE47fc7d64B3bD820dCDbF9ff7DA"
1014
1014
  ],
1015
- [me(Q.SpookySwap)]: [
1015
+ [me($.SpookySwap)]: [
1016
1016
  "0x3924d62219483015f982b160d48c0fa5Fd436Cba"
1017
1017
  ],
1018
- [me(Q.SwapX)]: [
1018
+ [me($.SwapX)]: [
1019
1019
  "0xE5012eBDe5e26EE3Ea41992154731a03023CF274"
1020
1020
  ],
1021
- [me(Q.SushiKatana)]: [
1021
+ [me($.SushiKatana)]: [
1022
1022
  "0x92209481507e6B2d14C9b5b70Ed287024177220E"
1023
1023
  ]
1024
1024
  }, Gn = {
1025
1025
  unit: Le.Minutes,
1026
1026
  value: Ta
1027
- }, Mc = "https://www.orbs.com/dtwap-and-dlimit-faq/", Lc = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", Nc = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", Kc = "https://www.orbs.com/", qc = "https://www.orbs.com/dtwap-dlimit-disclaimer";
1027
+ }, _c = "https://www.orbs.com/dtwap-and-dlimit-faq/", Mc = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", Lc = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", Nc = "https://www.orbs.com/", Kc = "https://www.orbs.com/dtwap-dlimit-disclaimer";
1028
1028
  var un = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_USD = "minChunkSizeUsd", e.ENV = "env", e.DURATION = "duration", e.IGNORE_ERRORS = "ignore-errors", e))(un || {});
1029
1029
  const va = "-5", Sa = "10", Pa = "-10", Oa = "5";
1030
1030
  var Ia = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, $n = Math.ceil, Oe = Math.floor, we = "[BigNumber Error] ", Br = we + "Number primitive has more than 15 significant digits: ", Ue = 1e14, H = 14, zn = 9007199254740991, Qn = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], nt = 1e7, de = 1e9;
@@ -1062,7 +1062,7 @@ function ds(e) {
1062
1062
  (y = T.indexOf(".")) > -1 && (T = T.replace(".", "")), (w = T.search(/e/i)) > 0 ? (y < 0 && (y = w), y += +T.slice(w + 1), T = T.substring(0, w)) : y < 0 && (y = T.length);
1063
1063
  } else {
1064
1064
  if (re(c, 2, O.length, "Base"), c == 10 && R)
1065
- return x = new F(o), $(x, i + x.e + 1, u);
1065
+ return x = new F(o), W(x, i + x.e + 1, u);
1066
1066
  if (T = String(o), p = typeof o == "number") {
1067
1067
  if (o * 0 != 0) return r(x, T, p, c);
1068
1068
  if (x.s = 1 / o < 0 ? (T = T.slice(1), -1) : 1, F.DEBUG && T.replace(/^0\.0*|\./, "").length > 15)
@@ -1295,7 +1295,7 @@ function ds(e) {
1295
1295
  }
1296
1296
  if (p == Ue) {
1297
1297
  for (x = 1, Se = oe[0]; Se >= 10; Se /= 10, x++) ;
1298
- $(se, y + (se.e = x + T * H - 1) + 1, w, S);
1298
+ W(se, y + (se.e = x + T * H - 1) + 1, w, S);
1299
1299
  } else
1300
1300
  se.e = T, se.r = +S;
1301
1301
  return se;
@@ -1306,7 +1306,7 @@ function ds(e) {
1306
1306
  if (d == null ? d = u : re(d, 0, 8), !o.c) return o.toString();
1307
1307
  if (m = o.c[0], w = o.e, c == null)
1308
1308
  A = Pe(o.c), A = g == 1 || g == 2 && (w <= f || w >= h) ? An(A, w) : je(A, w, "0");
1309
- else if (o = $(new F(o), c, d), y = o.e, A = Pe(o.c), p = A.length, g == 1 || g == 2 && (c <= y || y <= f)) {
1309
+ else if (o = W(new F(o), c, d), y = o.e, A = Pe(o.c), p = A.length, g == 1 || g == 2 && (c <= y || y <= f)) {
1310
1310
  for (; p < c; A += "0", p++) ;
1311
1311
  A = An(A, y);
1312
1312
  } else if (c -= w + (g === 2 && y > w), A = je(A, y, "0"), y + 1 > p) {
@@ -1320,7 +1320,7 @@ function ds(e) {
1320
1320
  g = new F(o[m]), (!g.s || (d = yt(y, g)) === c || d === 0 && y.s === c) && (y = g);
1321
1321
  return y;
1322
1322
  }
1323
- function z(o, c, d) {
1323
+ function Q(o, c, d) {
1324
1324
  for (var g = 1, m = c.length; !c[--m]; c.pop()) ;
1325
1325
  for (m = c[0]; m >= 10; m /= 10, g++) ;
1326
1326
  return (d = g + d * H - 1) > b ? o.c = o.e = null : d < C ? o.c = [o.e = 0] : (o.e = d, o.c = c), o;
@@ -1343,7 +1343,7 @@ function ds(e) {
1343
1343
  y.c = y.e = null;
1344
1344
  };
1345
1345
  })();
1346
- function $(o, c, d, g) {
1346
+ function W(o, c, d, g) {
1347
1347
  var m, y, w, p, A, T, x, S = o.c, _ = Qn;
1348
1348
  if (S) {
1349
1349
  e: {
@@ -1395,7 +1395,7 @@ function ds(e) {
1395
1395
  }, s.decimalPlaces = s.dp = function(o, c) {
1396
1396
  var d, g, m, y = this;
1397
1397
  if (o != null)
1398
- return re(o, 0, de), c == null ? c = u : re(c, 0, 8), $(new F(y), o + y.e + 1, c);
1398
+ return re(o, 0, de), c == null ? c = u : re(c, 0, 8), W(new F(y), o + y.e + 1, c);
1399
1399
  if (!(d = y.c)) return null;
1400
1400
  if (g = ((m = d.length - 1) - Ie(this.e / H)) * H, m = d[m]) for (; m % 10 == 0; m /= 10, g--) ;
1401
1401
  return g < 0 && (g = 0), g;
@@ -1425,7 +1425,7 @@ function ds(e) {
1425
1425
  if (m) {
1426
1426
  if (m = Oe(m / 2), m === 0) break;
1427
1427
  T = m % 2;
1428
- } else if (o = o.times(d), $(o, o.e + 1, 1), o.e > 14)
1428
+ } else if (o = o.times(d), W(o, o.e + 1, 1), o.e > 14)
1429
1429
  T = yn(o);
1430
1430
  else {
1431
1431
  if (m = +ee(o), m === 0) break;
@@ -1433,10 +1433,10 @@ function ds(e) {
1433
1433
  }
1434
1434
  S = S.times(S), y ? S.c && S.c.length > y && (S.c.length = y) : g && (S = S.mod(c));
1435
1435
  }
1436
- return g ? x : (A && (x = a.div(x)), c ? x.mod(c) : y ? $(x, P, u, w) : x);
1436
+ return g ? x : (A && (x = a.div(x)), c ? x.mod(c) : y ? W(x, P, u, w) : x);
1437
1437
  }, s.integerValue = function(o) {
1438
1438
  var c = new F(this);
1439
- return o == null ? o = u : re(o, 0, 8), $(c, c.e + 1, o);
1439
+ return o == null ? o = u : re(o, 0, 8), W(c, c.e + 1, o);
1440
1440
  }, s.isEqualTo = s.eq = function(o, c) {
1441
1441
  return yt(this, new F(o, c)) === 0;
1442
1442
  }, s.isFinite = function() {
@@ -1491,7 +1491,7 @@ function ds(e) {
1491
1491
  x[g] -= S[g];
1492
1492
  }
1493
1493
  for (; x[0] == 0; x.splice(0, 1), --T) ;
1494
- return x[0] ? z(o, x, T) : (o.s = u == 3 ? -1 : 1, o.c = [o.e = 0], o);
1494
+ return x[0] ? Q(o, x, T) : (o.s = u == 3 ? -1 : 1, o.c = [o.e = 0], o);
1495
1495
  }, s.modulo = s.mod = function(o, c) {
1496
1496
  var d, g, m = this;
1497
1497
  return o = new F(o, c), !m.c || !o.s || o.c && !o.c[0] ? new F(NaN) : !o.c || m.c && !m.c[0] ? new F(m) : (v == 9 ? (g = o.s, o.s = 1, d = t(m, o, 0, 3), o.s = g, d.s *= g) : d = t(m, o, 0, v), o = m.minus(d.times(o)), !o.c[0] && v == 1 && (o.s = m.s), o);
@@ -1505,7 +1505,7 @@ function ds(e) {
1505
1505
  T = J[--w] % oe, x = J[w] / oe | 0, p = M * T + x * _, T = _ * T + p % oe * oe + j[y] + d, d = (T / se | 0) + (p / oe | 0) + M * x, j[y--] = T % se;
1506
1506
  j[y] = d;
1507
1507
  }
1508
- return d ? ++g : j.splice(0, 1), z(o, j, g);
1508
+ return d ? ++g : j.splice(0, 1), Q(o, j, g);
1509
1509
  }, s.negated = function() {
1510
1510
  var o = new F(this);
1511
1511
  return o.s = -o.s || null, o;
@@ -1525,11 +1525,11 @@ function ds(e) {
1525
1525
  }
1526
1526
  for (m = p.length, c = A.length, m - c < 0 && (d = A, A = p, p = d, c = m), m = 0; c; )
1527
1527
  m = (p[--c] = p[c] + A[c] + m) / Ue | 0, p[c] = Ue === p[c] ? 0 : p[c] % Ue;
1528
- return m && (p = [m].concat(p), ++w), z(o, p, w);
1528
+ return m && (p = [m].concat(p), ++w), Q(o, p, w);
1529
1529
  }, s.precision = s.sd = function(o, c) {
1530
1530
  var d, g, m, y = this;
1531
1531
  if (o != null && o !== !!o)
1532
- return re(o, 1, de), c == null ? c = u : re(c, 0, 8), $(new F(y), o, c);
1532
+ return re(o, 1, de), c == null ? c = u : re(c, 0, 8), W(new F(y), o, c);
1533
1533
  if (!(d = y.c)) return null;
1534
1534
  if (m = d.length - 1, g = m * H + 1, m = d[m]) {
1535
1535
  for (; m % 10 == 0; m /= 10, g--) ;
@@ -1546,17 +1546,17 @@ function ds(e) {
1546
1546
  for (A = d.e, p = A + T, p < 3 && (p = 0); ; )
1547
1547
  if (m = d, d = x.times(m.plus(t(y, m, T, 1))), Pe(m.c).slice(0, p) === (c = Pe(d.c)).slice(0, p))
1548
1548
  if (d.e < A && --p, c = c.slice(p - 3, p + 1), c == "9999" || !g && c == "4999") {
1549
- if (!g && ($(m, m.e + i + 2, 0), m.times(m).eq(y))) {
1549
+ if (!g && (W(m, m.e + i + 2, 0), m.times(m).eq(y))) {
1550
1550
  d = m;
1551
1551
  break;
1552
1552
  }
1553
1553
  T += 4, p += 4, g = 1;
1554
1554
  } else {
1555
- (!+c || !+c.slice(1) && c.charAt(0) == "5") && ($(d, d.e + i + 2, 1), o = !d.times(d).eq(y));
1555
+ (!+c || !+c.slice(1) && c.charAt(0) == "5") && (W(d, d.e + i + 2, 1), o = !d.times(d).eq(y));
1556
1556
  break;
1557
1557
  }
1558
1558
  }
1559
- return $(d, d.e + i + 1, u, o);
1559
+ return W(d, d.e + i + 1, u, o);
1560
1560
  }, s.toExponential = function(o, c) {
1561
1561
  return o != null && (re(o, 0, de), o++), K(this, o, c, 1);
1562
1562
  }, s.toFixed = function(o, c) {
@@ -1595,7 +1595,7 @@ function ds(e) {
1595
1595
  return o != null && re(o, 1, de), K(this, o, c, 2);
1596
1596
  }, s.toString = function(o) {
1597
1597
  var c, d = this, g = d.s, m = d.e;
1598
- return m === null ? g ? (c = "Infinity", g < 0 && (c = "-" + c)) : c = "NaN" : (o == null ? c = m <= f || m >= h ? An(Pe(d.c), m) : je(Pe(d.c), m, "0") : o === 10 && R ? (d = $(new F(d), i + m + 1, u), c = je(Pe(d.c), d.e, "0")) : (re(o, 2, O.length, "Base"), c = n(je(Pe(d.c), m, "0"), 10, o, g, !0)), g < 0 && d.c[0] && (c = "-" + c)), c;
1598
+ return m === null ? g ? (c = "Infinity", g < 0 && (c = "-" + c)) : c = "NaN" : (o == null ? c = m <= f || m >= h ? An(Pe(d.c), m) : je(Pe(d.c), m, "0") : o === 10 && R ? (d = W(new F(d), i + m + 1, u), c = je(Pe(d.c), d.e, "0")) : (re(o, 2, O.length, "Base"), c = n(je(Pe(d.c), m, "0"), 10, o, g, !0)), g < 0 && d.c[0] && (c = "-" + c)), c;
1599
1599
  }, s.valueOf = s.toJSON = function() {
1600
1600
  return ee(this);
1601
1601
  }, s._isBigNumber = !0, s[Symbol.toStringTag] = "BigNumber", s[Symbol.for("nodejs.util.inspect.custom")] = s.valueOf, e != null && F.set(e), F;
@@ -1816,81 +1816,81 @@ const Ot = (e) => e ? e.value * e.unit : 0, _a = (e) => !e || e === "NaN" ? "0"
1816
1816
  if (e === ve.Pancake)
1817
1817
  switch (t) {
1818
1818
  case 56:
1819
- return Q.PancakeSwap;
1819
+ return $.PancakeSwap;
1820
1820
  case 42161:
1821
- return Q.PancakeSwapArbitrum;
1821
+ return $.PancakeSwapArbitrum;
1822
1822
  case 8453:
1823
- return Q.PancakeSwapBase;
1823
+ return $.PancakeSwapBase;
1824
1824
  case 59144:
1825
- return Q.PancakeSwapLinea;
1825
+ return $.PancakeSwapLinea;
1826
1826
  default:
1827
- return Q.PancakeSwap;
1827
+ return $.PancakeSwap;
1828
1828
  }
1829
1829
  if (e === ve.Sushiswap)
1830
1830
  switch (t) {
1831
1831
  case 1:
1832
- return Q.SushiEth;
1832
+ return $.SushiEth;
1833
1833
  case 42161:
1834
- return Q.SushiArb;
1834
+ return $.SushiArb;
1835
1835
  case 8453:
1836
- return Q.SushiBase;
1836
+ return $.SushiBase;
1837
1837
  case 747474:
1838
- return Q.SushiKatana;
1838
+ return $.SushiKatana;
1839
1839
  default:
1840
- return Q.SushiEth;
1840
+ return $.SushiEth;
1841
1841
  }
1842
1842
  if (e === ve.Quick)
1843
1843
  switch (t) {
1844
1844
  case 137:
1845
- return Q.QuickSwap;
1845
+ return $.QuickSwap;
1846
1846
  case 8453:
1847
- return Q.QuickSwapBase;
1847
+ return $.QuickSwapBase;
1848
1848
  default:
1849
- return Q.QuickSwap;
1849
+ return $.QuickSwap;
1850
1850
  }
1851
1851
  if (e === ve.Thena)
1852
1852
  switch (t) {
1853
1853
  case 56:
1854
- return Q.Thena;
1854
+ return $.Thena;
1855
1855
  default:
1856
- return Q.Thena;
1856
+ return $.Thena;
1857
1857
  }
1858
1858
  if (e === ve.Spooky)
1859
1859
  switch (t) {
1860
1860
  case 250:
1861
- return Q.SpookySwap;
1861
+ return $.SpookySwap;
1862
1862
  case 146:
1863
- return Q.SpookySwapSonic;
1863
+ return $.SpookySwapSonic;
1864
1864
  default:
1865
- return Q.SpookySwap;
1865
+ return $.SpookySwap;
1866
1866
  }
1867
1867
  if (e === ve.Lynex)
1868
1868
  switch (t) {
1869
1869
  case 59144:
1870
- return Q.Lynex;
1870
+ return $.Lynex;
1871
1871
  default:
1872
- return Q.Lynex;
1872
+ return $.Lynex;
1873
1873
  }
1874
1874
  if (e === ve.Swapx)
1875
1875
  switch (t) {
1876
1876
  case 146:
1877
- return Q.SwapX;
1877
+ return $.SwapX;
1878
1878
  default:
1879
- return Q.SwapX;
1879
+ return $.SwapX;
1880
1880
  }
1881
1881
  if (e === ve.Blackhole)
1882
1882
  switch (t) {
1883
1883
  case 43114:
1884
- return Q.BlackholeAvax;
1884
+ return $.BlackholeAvax;
1885
1885
  default:
1886
- return Q.BlackholeAvax;
1886
+ return $.BlackholeAvax;
1887
1887
  }
1888
1888
  if (e === ve.Katana)
1889
1889
  switch (t) {
1890
1890
  case 747474:
1891
- return Q.SushiKatana;
1891
+ return $.SushiKatana;
1892
1892
  default:
1893
- return Q.SushiKatana;
1893
+ return $.SushiKatana;
1894
1894
  }
1895
1895
  }, ci = () => {
1896
1896
  var n;
@@ -1954,7 +1954,7 @@ const Ot = (e) => e ? e.value * e.unit : 0, _a = (e) => !e || e === "NaN" ? "0"
1954
1954
  module: P
1955
1955
  }) => {
1956
1956
  var d;
1957
- const I = s.toString(), O = !u || u === 1 ? 0 : parseInt((i / 1e3).toFixed(0)), R = _a(a / 1e3), F = kn(un.FRESHNESS), K = F ? parseInt(F) : 60, B = Math.floor(s / 1e3).toString(), z = dn(t) ? ((d = Gt(e)) == null ? void 0 : d.wToken.address) || "" : t, $ = D(b || 0).toFixed(), ee = D(
1957
+ const I = s.toString(), O = !u || u === 1 ? 0 : parseInt((i / 1e3).toFixed(0)), R = _a(a / 1e3), F = kn(un.FRESHNESS), K = F ? parseInt(F) : 60, B = Math.floor(s / 1e3).toString(), Q = dn(t) ? ((d = Gt(e)) == null ? void 0 : d.wToken.address) || "" : t, W = D(b || 0).toFixed(), ee = D(
1958
1958
  P === V.STOP_LOSS && E || 0
1959
1959
  ).toFixed(), o = D(
1960
1960
  P === V.TAKE_PROFIT && E || 0
@@ -1962,7 +1962,7 @@ const Ot = (e) => e ? e.value * e.unit : 0, _a = (e) => !e || e === "NaN" ? "0"
1962
1962
  ...v.order,
1963
1963
  permitted: {
1964
1964
  ...v.order.permitted,
1965
- token: z,
1965
+ token: Q,
1966
1966
  amount: r
1967
1967
  },
1968
1968
  nonce: I,
@@ -1978,14 +1978,14 @@ const Ot = (e) => e ? e.value * e.unit : 0, _a = (e) => !e || e === "NaN" ? "0"
1978
1978
  freshness: K,
1979
1979
  input: {
1980
1980
  ...v.order.witness.input,
1981
- token: z,
1981
+ token: Q,
1982
1982
  amount: C,
1983
1983
  maxAmount: r
1984
1984
  },
1985
1985
  output: {
1986
1986
  ...v.order.witness.output,
1987
1987
  token: n,
1988
- limit: $,
1988
+ limit: W,
1989
1989
  triggerLower: ee,
1990
1990
  triggerUpper: o,
1991
1991
  recipient: h
@@ -2770,7 +2770,7 @@ const Mi = async ({
2770
2770
  partner: a,
2771
2771
  isDev: f
2772
2772
  }) : Promise.resolve([])
2773
- ]).then(([v, P]) => [...v, ...P])).sort((v, P) => P.createdAt - v.createdAt), qi = "1.1.44", Hi = {
2773
+ ]).then(([v, P]) => [...v, ...P])).sort((v, P) => P.createdAt - v.createdAt), qi = "1.1.45", Hi = {
2774
2774
  version: qi
2775
2775
  }, Ur = (e) => {
2776
2776
  let t;
@@ -2833,7 +2833,7 @@ const Pt = (e, t) => t == null || !e || D(e).isNaN() ? "" : D(e).multipliedBy(D(
2833
2833
  } catch (n) {
2834
2834
  return console.error(n), "";
2835
2835
  }
2836
- }, Hc = (e) => {
2836
+ }, qc = (e) => {
2837
2837
  const t = "An error occurred.";
2838
2838
  if (!e || !e.message) return t;
2839
2839
  try {
@@ -2855,7 +2855,7 @@ function gs(e) {
2855
2855
  function Zn(e) {
2856
2856
  return e ? e / 6e4 : 0;
2857
2857
  }
2858
- const $c = (e, t) => e ? X.TWAP_MARKET : t === 1 ? X.LIMIT : X.TWAP_LIMIT, bs = (e, t, n) => {
2858
+ const Hc = (e, t) => e ? X.TWAP_MARKET : t === 1 ? X.LIMIT : X.TWAP_LIMIT, bs = (e, t, n) => {
2859
2859
  const r = Gt(n);
2860
2860
  return dn((e == null ? void 0 : e.address) || "") && jt((t == null ? void 0 : t.address) || "", (r == null ? void 0 : r.wToken.address) || "");
2861
2861
  }, Es = (e, t, n) => {
@@ -2868,7 +2868,7 @@ const $c = (e, t) => e ? X.TWAP_MARKET : t === 1 ? X.LIMIT : X.TWAP_LIMIT, bs =
2868
2868
  }, br = (e, t) => U(() => Pt(t, e), [e, t]), Xt = (e, t) => U(() => Ce(t, e), [e, t]), Er = () => {
2869
2869
  const { chainId: e } = N();
2870
2870
  return U(() => Gt(e), [e]);
2871
- }, zc = (e) => {
2871
+ }, $c = (e) => {
2872
2872
  const t = Er();
2873
2873
  return U(() => {
2874
2874
  if (!(!e || !t))
@@ -3258,7 +3258,7 @@ const $c = (e, t) => e ? X.TWAP_MARKET : t === 1 ? X.LIMIT : X.TWAP_LIMIT, bs =
3258
3258
  hide: a
3259
3259
  };
3260
3260
  }, uo = () => {
3261
- const { module: e, marketPriceLoading: t, srcToken: n, dstToken: r, srcUsd1Token: s, dstUsd1Token: a } = N(), { amount: i, typedValue: u, onChange: f, onPercentageChange: h, selectedPercentage: C, error: b, isTypedValue: E } = _n(), v = q(($) => $.updateState), P = Tr(), { isLimitPrice: I, toggleLimitPrice: O } = co(), { fromToken: R, toToken: F, isInverted: K } = Un(), B = xs({
3261
+ const { module: e, marketPriceLoading: t, srcToken: n, dstToken: r, srcUsd1Token: s, dstUsd1Token: a } = N(), { amount: i, typedValue: u, onChange: f, onPercentageChange: h, selectedPercentage: C, error: b, isTypedValue: E } = _n(), v = q((W) => W.updateState), P = Tr(), { isLimitPrice: I, toggleLimitPrice: O } = co(), { fromToken: R, toToken: F, isInverted: K } = Un(), B = xs({
3262
3262
  amount: i,
3263
3263
  typedValue: u,
3264
3264
  amountDecimals: (r == null ? void 0 : r.decimals) || 18,
@@ -3266,7 +3266,7 @@ const $c = (e, t) => e ? X.TWAP_MARKET : t === 1 ? X.LIMIT : X.TWAP_LIMIT, bs =
3266
3266
  amountUsd: a,
3267
3267
  invertedAmountUsd: s,
3268
3268
  isInverted: K
3269
- }), z = ne(() => {
3269
+ }), Q = ne(() => {
3270
3270
  v({ typedLimitPrice: void 0 }), v({ limitPricePercent: P });
3271
3271
  }, [v, e, P]);
3272
3272
  return {
@@ -3275,7 +3275,7 @@ const $c = (e, t) => e ? X.TWAP_MARKET : t === 1 ? X.LIMIT : X.TWAP_LIMIT, bs =
3275
3275
  error: b,
3276
3276
  onInputChange: f,
3277
3277
  onPercentageChange: h,
3278
- onReset: z,
3278
+ onReset: Q,
3279
3279
  usd: B.usd,
3280
3280
  srcToken: n,
3281
3281
  dstToken: r,
@@ -3288,7 +3288,7 @@ const $c = (e, t) => e ? X.TWAP_MARKET : t === 1 ? X.LIMIT : X.TWAP_LIMIT, bs =
3288
3288
  isTypedValue: E
3289
3289
  };
3290
3290
  }, lo = () => {
3291
- const { marketPrice: e, marketPriceLoading: t, srcToken: n, dstToken: r, srcUsd1Token: s, dstUsd1Token: a } = N(), { amount: i, typedValue: u, onChange: f, onPercentageChange: h, selectedPercentage: C, error: b, pricePerChunk: E, pricePerChunkUI: v, pricePerChunkUsd: P, isTypedValue: I } = Rt(), O = q(($) => $.updateState), { fromToken: R, toToken: F, isInverted: K } = Un(), B = xs({
3291
+ const { marketPrice: e, marketPriceLoading: t, srcToken: n, dstToken: r, srcUsd1Token: s, dstUsd1Token: a } = N(), { amount: i, typedValue: u, onChange: f, onPercentageChange: h, selectedPercentage: C, error: b, pricePerChunk: E, pricePerChunkUI: v, pricePerChunkUsd: P, isTypedValue: I } = Rt(), O = q((W) => W.updateState), { fromToken: R, toToken: F, isInverted: K } = Un(), B = xs({
3292
3292
  amount: i,
3293
3293
  typedValue: u,
3294
3294
  amountDecimals: (r == null ? void 0 : r.decimals) || 18,
@@ -3296,7 +3296,7 @@ const $c = (e, t) => e ? X.TWAP_MARKET : t === 1 ? X.LIMIT : X.TWAP_LIMIT, bs =
3296
3296
  amountUsd: a,
3297
3297
  invertedAmountUsd: s,
3298
3298
  isInverted: K
3299
- }), z = ne(() => {
3299
+ }), Q = ne(() => {
3300
3300
  O({ triggerPricePercent: void 0, typedTriggerPrice: void 0 });
3301
3301
  }, [O]);
3302
3302
  return {
@@ -3309,7 +3309,7 @@ const $c = (e, t) => e ? X.TWAP_MARKET : t === 1 ? X.LIMIT : X.TWAP_LIMIT, bs =
3309
3309
  onInputChange: f,
3310
3310
  onPercentageChange: h,
3311
3311
  percentage: C,
3312
- onReset: z,
3312
+ onReset: Q,
3313
3313
  usd: B.usd,
3314
3314
  srcToken: n,
3315
3315
  dstToken: r,
@@ -3826,15 +3826,15 @@ function Ps(e) {
3826
3826
  I = Promise.reject(R);
3827
3827
  }
3828
3828
  Promise.resolve(I).then(b).catch((R) => {
3829
- var $;
3829
+ var W;
3830
3830
  if (a())
3831
3831
  return;
3832
- const F = e.retry ?? (It ? 0 : 3), K = e.retryDelay ?? vo, B = typeof K == "function" ? K(n, R) : K, z = F === !0 || typeof F == "number" && n < F || typeof F == "function" && F(n, R);
3833
- if (t || !z) {
3832
+ const F = e.retry ?? (It ? 0 : 3), K = e.retryDelay ?? vo, B = typeof K == "function" ? K(n, R) : K, Q = F === !0 || typeof F == "number" && n < F || typeof F == "function" && F(n, R);
3833
+ if (t || !Q) {
3834
3834
  E(R);
3835
3835
  return;
3836
3836
  }
3837
- n++, ($ = e.onFail) == null || $.call(e, n, R), Eo(B).then(() => h() ? void 0 : v()).then(() => {
3837
+ n++, (W = e.onFail) == null || W.call(e, n, R), Eo(B).then(() => h() ? void 0 : v()).then(() => {
3838
3838
  t ? E(R) : P();
3839
3839
  });
3840
3840
  });
@@ -3904,7 +3904,7 @@ var xt, es, Os = (es = class {
3904
3904
  }
3905
3905
  setData(t, n) {
3906
3906
  const r = tr(this.state.data, t, this.options);
3907
- return W(this, _e, Xe).call(this, {
3907
+ return z(this, _e, Xe).call(this, {
3908
3908
  data: r,
3909
3909
  type: "success",
3910
3910
  dataUpdatedAt: n == null ? void 0 : n.updatedAt,
@@ -3912,7 +3912,7 @@ var xt, es, Os = (es = class {
3912
3912
  }), r;
3913
3913
  }
3914
3914
  setState(t, n) {
3915
- W(this, _e, Xe).call(this, { type: "setState", state: t, setStateOptions: n });
3915
+ z(this, _e, Xe).call(this, { type: "setState", state: t, setStateOptions: n });
3916
3916
  }
3917
3917
  cancel(t) {
3918
3918
  var r, s;
@@ -3966,7 +3966,7 @@ var xt, es, Os = (es = class {
3966
3966
  return this.observers.length;
3967
3967
  }
3968
3968
  invalidate() {
3969
- this.state.isInvalidated || W(this, _e, Xe).call(this, { type: "invalidate" });
3969
+ this.state.isInvalidated || z(this, _e, Xe).call(this, { type: "invalidate" });
3970
3970
  }
3971
3971
  async fetch(t, n) {
3972
3972
  var f, h, C, b, E, v, P, I, O, R, F, K;
@@ -3980,7 +3980,7 @@ var xt, es, Os = (es = class {
3980
3980
  return l(this, le).continueRetry(), l(this, le).promise;
3981
3981
  }
3982
3982
  if (t && this.setOptions(t), !this.options.queryFn) {
3983
- const B = this.observers.find((z) => z.options.queryFn);
3983
+ const B = this.observers.find((Q) => Q.options.queryFn);
3984
3984
  B && this.setOptions(B.options);
3985
3985
  }
3986
3986
  process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
@@ -3992,7 +3992,7 @@ var xt, es, Os = (es = class {
3992
3992
  get: () => (k(this, wt, !0), r.signal)
3993
3993
  });
3994
3994
  }, a = () => {
3995
- const B = Ds(this.options, n), $ = (() => {
3995
+ const B = Ds(this.options, n), W = (() => {
3996
3996
  const ee = {
3997
3997
  client: l(this, Ct),
3998
3998
  queryKey: this.queryKey,
@@ -4002,9 +4002,9 @@ var xt, es, Os = (es = class {
4002
4002
  })();
4003
4003
  return k(this, wt, !1), this.options.persister ? this.options.persister(
4004
4004
  B,
4005
- $,
4005
+ W,
4006
4006
  this
4007
- ) : B($);
4007
+ ) : B(W);
4008
4008
  }, u = (() => {
4009
4009
  const B = {
4010
4010
  fetchOptions: n,
@@ -4016,7 +4016,7 @@ var xt, es, Os = (es = class {
4016
4016
  };
4017
4017
  return s(B), B;
4018
4018
  })();
4019
- (h = this.options.behavior) == null || h.onFetch(u, this), k(this, Lt, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((C = u.fetchOptions) == null ? void 0 : C.meta)) && W(this, _e, Xe).call(this, { type: "fetch", meta: (b = u.fetchOptions) == null ? void 0 : b.meta }), k(this, le, Ps({
4019
+ (h = this.options.behavior) == null || h.onFetch(u, this), k(this, Lt, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((C = u.fetchOptions) == null ? void 0 : C.meta)) && z(this, _e, Xe).call(this, { type: "fetch", meta: (b = u.fetchOptions) == null ? void 0 : b.meta }), k(this, le, Ps({
4020
4020
  initialPromise: n == null ? void 0 : n.initialPromise,
4021
4021
  fn: u.fetchFn,
4022
4022
  onCancel: (B) => {
@@ -4025,14 +4025,14 @@ var xt, es, Os = (es = class {
4025
4025
  fetchStatus: "idle"
4026
4026
  }), r.abort();
4027
4027
  },
4028
- onFail: (B, z) => {
4029
- W(this, _e, Xe).call(this, { type: "failed", failureCount: B, error: z });
4028
+ onFail: (B, Q) => {
4029
+ z(this, _e, Xe).call(this, { type: "failed", failureCount: B, error: Q });
4030
4030
  },
4031
4031
  onPause: () => {
4032
- W(this, _e, Xe).call(this, { type: "pause" });
4032
+ z(this, _e, Xe).call(this, { type: "pause" });
4033
4033
  },
4034
4034
  onContinue: () => {
4035
- W(this, _e, Xe).call(this, { type: "continue" });
4035
+ z(this, _e, Xe).call(this, { type: "continue" });
4036
4036
  },
4037
4037
  retry: u.options.retry,
4038
4038
  retryDelay: u.options.retryDelay,
@@ -4061,7 +4061,7 @@ var xt, es, Os = (es = class {
4061
4061
  return this.state.data;
4062
4062
  }
4063
4063
  }
4064
- throw W(this, _e, Xe).call(this, {
4064
+ throw z(this, _e, Xe).call(this, {
4065
4065
  type: "error",
4066
4066
  error: B
4067
4067
  }), (R = (O = l(this, Be).config).onError) == null || R.call(
@@ -4209,7 +4209,7 @@ var Fe, G, sn, be, Ft, Nt, Ze, ot, an, Kt, qt, Dt, vt, ct, Ht, Y, tn, sr, ar, ir
4209
4209
  this.refetch = this.refetch.bind(this);
4210
4210
  }
4211
4211
  onSubscribe() {
4212
- this.listeners.size === 1 && (l(this, G).addObserver(this), Wr(l(this, G), this.options) ? W(this, Y, tn).call(this) : this.updateResult(), W(this, Y, or).call(this));
4212
+ this.listeners.size === 1 && (l(this, G).addObserver(this), Wr(l(this, G), this.options) ? z(this, Y, tn).call(this) : this.updateResult(), z(this, Y, or).call(this));
4213
4213
  }
4214
4214
  onUnsubscribe() {
4215
4215
  this.hasListeners() || this.destroy();
@@ -4229,7 +4229,7 @@ var Fe, G, sn, be, Ft, Nt, Ze, ot, an, Kt, qt, Dt, vt, ct, Ht, Y, tn, sr, ar, ir
4229
4229
  );
4230
4230
  }
4231
4231
  destroy() {
4232
- this.listeners = /* @__PURE__ */ new Set(), W(this, Y, cr).call(this), W(this, Y, ur).call(this), l(this, G).removeObserver(this);
4232
+ this.listeners = /* @__PURE__ */ new Set(), z(this, Y, cr).call(this), z(this, Y, ur).call(this), l(this, G).removeObserver(this);
4233
4233
  }
4234
4234
  setOptions(t) {
4235
4235
  const n = this.options, r = l(this, G);
@@ -4237,7 +4237,7 @@ var Fe, G, sn, be, Ft, Nt, Ze, ot, an, Kt, qt, Dt, vt, ct, Ht, Y, tn, sr, ar, ir
4237
4237
  throw new Error(
4238
4238
  "Expected enabled to be a boolean or a callback that returns a boolean"
4239
4239
  );
4240
- W(this, Y, dr).call(this), l(this, G).setOptions(this.options), n._defaulted && !Pn(this.options, n) && l(this, Fe).getQueryCache().notify({
4240
+ z(this, Y, dr).call(this), l(this, G).setOptions(this.options), n._defaulted && !Pn(this.options, n) && l(this, Fe).getQueryCache().notify({
4241
4241
  type: "observerOptionsUpdated",
4242
4242
  query: l(this, G),
4243
4243
  observer: this
@@ -4248,9 +4248,9 @@ var Fe, G, sn, be, Ft, Nt, Ze, ot, an, Kt, qt, Dt, vt, ct, Ht, Y, tn, sr, ar, ir
4248
4248
  r,
4249
4249
  this.options,
4250
4250
  n
4251
- ) && W(this, Y, tn).call(this), this.updateResult(), s && (l(this, G) !== r || Re(this.options.enabled, l(this, G)) !== Re(n.enabled, l(this, G)) || ht(this.options.staleTime, l(this, G)) !== ht(n.staleTime, l(this, G))) && W(this, Y, sr).call(this);
4252
- const a = W(this, Y, ar).call(this);
4253
- s && (l(this, G) !== r || Re(this.options.enabled, l(this, G)) !== Re(n.enabled, l(this, G)) || a !== l(this, ct)) && W(this, Y, ir).call(this, a);
4251
+ ) && z(this, Y, tn).call(this), this.updateResult(), s && (l(this, G) !== r || Re(this.options.enabled, l(this, G)) !== Re(n.enabled, l(this, G)) || ht(this.options.staleTime, l(this, G)) !== ht(n.staleTime, l(this, G))) && z(this, Y, sr).call(this);
4252
+ const a = z(this, Y, ar).call(this);
4253
+ s && (l(this, G) !== r || Re(this.options.enabled, l(this, G)) !== Re(n.enabled, l(this, G)) || a !== l(this, ct)) && z(this, Y, ir).call(this, a);
4254
4254
  }
4255
4255
  getOptimisticResult(t) {
4256
4256
  const n = l(this, Fe).getQueryCache().build(l(this, Fe), t), r = this.createResult(n, t);
@@ -4284,7 +4284,7 @@ var Fe, G, sn, be, Ft, Nt, Ze, ot, an, Kt, qt, Dt, vt, ct, Ht, Y, tn, sr, ar, ir
4284
4284
  return r.fetch().then(() => this.createResult(r, n));
4285
4285
  }
4286
4286
  fetch(t) {
4287
- return W(this, Y, tn).call(this, {
4287
+ return z(this, Y, tn).call(this, {
4288
4288
  ...t,
4289
4289
  cancelRefetch: t.cancelRefetch ?? !0
4290
4290
  }).then(() => (this.updateResult(), l(this, be)));
@@ -4324,14 +4324,14 @@ var Fe, G, sn, be, Ft, Nt, Ze, ot, an, Kt, qt, Dt, vt, ct, Ht, Y, tn, sr, ar, ir
4324
4324
  k(this, ot, d);
4325
4325
  }
4326
4326
  l(this, ot) && (P = l(this, ot), v = l(this, Kt), I = Date.now(), O = "error");
4327
- const F = b.fetchStatus === "fetching", K = O === "pending", B = O === "error", z = K && F, $ = v !== void 0, o = {
4327
+ const F = b.fetchStatus === "fetching", K = O === "pending", B = O === "error", Q = K && F, W = v !== void 0, o = {
4328
4328
  status: O,
4329
4329
  fetchStatus: b.fetchStatus,
4330
4330
  isPending: K,
4331
4331
  isSuccess: O === "success",
4332
4332
  isError: B,
4333
- isInitialLoading: z,
4334
- isLoading: z,
4333
+ isInitialLoading: Q,
4334
+ isLoading: Q,
4335
4335
  data: v,
4336
4336
  dataUpdatedAt: b.dataUpdatedAt,
4337
4337
  error: P,
@@ -4343,10 +4343,10 @@ var Fe, G, sn, be, Ft, Nt, Ze, ot, an, Kt, qt, Dt, vt, ct, Ht, Y, tn, sr, ar, ir
4343
4343
  isFetchedAfterMount: b.dataUpdateCount > h.dataUpdateCount || b.errorUpdateCount > h.errorUpdateCount,
4344
4344
  isFetching: F,
4345
4345
  isRefetching: F && !K,
4346
- isLoadingError: B && !$,
4346
+ isLoadingError: B && !W,
4347
4347
  isPaused: b.fetchStatus === "paused",
4348
4348
  isPlaceholderData: E,
4349
- isRefetchError: B && $,
4349
+ isRefetchError: B && W,
4350
4350
  isStale: Dr(t, n),
4351
4351
  refetch: this.refetch,
4352
4352
  promise: l(this, Ze),
@@ -4392,20 +4392,20 @@ var Fe, G, sn, be, Ft, Nt, Ze, ot, an, Kt, qt, Dt, vt, ct, Ht, Y, tn, sr, ar, ir
4392
4392
  return l(this, be)[f] !== t[f] && i.has(f);
4393
4393
  });
4394
4394
  };
4395
- W(this, Y, Bs).call(this, { listeners: r() });
4395
+ z(this, Y, Bs).call(this, { listeners: r() });
4396
4396
  }
4397
4397
  onQueryUpdate() {
4398
- this.updateResult(), this.hasListeners() && W(this, Y, or).call(this);
4398
+ this.updateResult(), this.hasListeners() && z(this, Y, or).call(this);
4399
4399
  }
4400
4400
  }, Fe = new WeakMap(), G = new WeakMap(), sn = new WeakMap(), be = new WeakMap(), Ft = new WeakMap(), Nt = new WeakMap(), Ze = new WeakMap(), ot = new WeakMap(), an = new WeakMap(), Kt = new WeakMap(), qt = new WeakMap(), Dt = new WeakMap(), vt = new WeakMap(), ct = new WeakMap(), Ht = new WeakMap(), Y = new WeakSet(), tn = function(t) {
4401
- W(this, Y, dr).call(this);
4401
+ z(this, Y, dr).call(this);
4402
4402
  let n = l(this, G).fetch(
4403
4403
  this.options,
4404
4404
  t
4405
4405
  );
4406
4406
  return t != null && t.throwOnError || (n = n.catch(xe)), n;
4407
4407
  }, sr = function() {
4408
- W(this, Y, cr).call(this);
4408
+ z(this, Y, cr).call(this);
4409
4409
  const t = ht(
4410
4410
  this.options.staleTime,
4411
4411
  l(this, G)
@@ -4419,11 +4419,11 @@ var Fe, G, sn, be, Ft, Nt, Ze, ot, an, Kt, qt, Dt, vt, ct, Ht, Y, tn, sr, ar, ir
4419
4419
  }, ar = function() {
4420
4420
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(l(this, G)) : this.options.refetchInterval) ?? !1;
4421
4421
  }, ir = function(t) {
4422
- W(this, Y, ur).call(this), k(this, ct, t), !(It || Re(this.options.enabled, l(this, G)) === !1 || !Yn(l(this, ct)) || l(this, ct) === 0) && k(this, vt, gt.setInterval(() => {
4423
- (this.options.refetchIntervalInBackground || Fr.isFocused()) && W(this, Y, tn).call(this);
4422
+ z(this, Y, ur).call(this), k(this, ct, t), !(It || Re(this.options.enabled, l(this, G)) === !1 || !Yn(l(this, ct)) || l(this, ct) === 0) && k(this, vt, gt.setInterval(() => {
4423
+ (this.options.refetchIntervalInBackground || Fr.isFocused()) && z(this, Y, tn).call(this);
4424
4424
  }, l(this, ct)));
4425
4425
  }, or = function() {
4426
- W(this, Y, sr).call(this), W(this, Y, ir).call(this, W(this, Y, ar).call(this));
4426
+ z(this, Y, sr).call(this), z(this, Y, ir).call(this, z(this, Y, ar).call(this));
4427
4427
  }, cr = function() {
4428
4428
  l(this, Dt) && (gt.clearTimeout(l(this, Dt)), k(this, Dt, void 0));
4429
4429
  }, ur = function() {
@@ -4481,7 +4481,7 @@ function jr(e) {
4481
4481
  I = !0;
4482
4482
  }), t.signal)
4483
4483
  });
4484
- }, R = Ds(t.options, t.fetchOptions), F = async (K, B, z) => {
4484
+ }, R = Ds(t.options, t.fetchOptions), F = async (K, B, Q) => {
4485
4485
  if (I)
4486
4486
  return Promise.reject();
4487
4487
  if (B == null && K.pages.length)
@@ -4491,22 +4491,22 @@ function jr(e) {
4491
4491
  client: t.client,
4492
4492
  queryKey: t.queryKey,
4493
4493
  pageParam: B,
4494
- direction: z ? "backward" : "forward",
4494
+ direction: Q ? "backward" : "forward",
4495
4495
  meta: t.options.meta
4496
4496
  };
4497
4497
  return O(g), g;
4498
- })(), o = await R(ee), { maxPages: c } = t.options, d = z ? To : xo;
4498
+ })(), o = await R(ee), { maxPages: c } = t.options, d = Q ? To : xo;
4499
4499
  return {
4500
4500
  pages: d(K.pages, o, c),
4501
4501
  pageParams: d(K.pageParams, B, c)
4502
4502
  };
4503
4503
  };
4504
4504
  if (s && a.length) {
4505
- const K = s === "backward", B = K ? Bo : Gr, z = {
4505
+ const K = s === "backward", B = K ? Bo : Gr, Q = {
4506
4506
  pages: a,
4507
4507
  pageParams: i
4508
- }, $ = B(r, z);
4509
- u = await F(z, $, K);
4508
+ }, W = B(r, Q);
4509
+ u = await F(Q, W, K);
4510
4510
  } else {
4511
4511
  const K = e ?? a.length;
4512
4512
  do {
@@ -4587,9 +4587,9 @@ var on, He, Ee, St, $e, rt, rs, Ro = (rs = class extends Os {
4587
4587
  this.execute(this.state.variables);
4588
4588
  }
4589
4589
  async execute(t) {
4590
- var i, u, f, h, C, b, E, v, P, I, O, R, F, K, B, z, $, ee, o, c;
4590
+ var i, u, f, h, C, b, E, v, P, I, O, R, F, K, B, Q, W, ee, o, c;
4591
4591
  const n = () => {
4592
- W(this, $e, rt).call(this, { type: "continue" });
4592
+ z(this, $e, rt).call(this, { type: "continue" });
4593
4593
  }, r = {
4594
4594
  client: l(this, on),
4595
4595
  meta: this.options.meta,
@@ -4598,10 +4598,10 @@ var on, He, Ee, St, $e, rt, rs, Ro = (rs = class extends Os {
4598
4598
  k(this, St, Ps({
4599
4599
  fn: () => this.options.mutationFn ? this.options.mutationFn(t, r) : Promise.reject(new Error("No mutationFn found")),
4600
4600
  onFail: (d, g) => {
4601
- W(this, $e, rt).call(this, { type: "failed", failureCount: d, error: g });
4601
+ z(this, $e, rt).call(this, { type: "failed", failureCount: d, error: g });
4602
4602
  },
4603
4603
  onPause: () => {
4604
- W(this, $e, rt).call(this, { type: "pause" });
4604
+ z(this, $e, rt).call(this, { type: "pause" });
4605
4605
  },
4606
4606
  onContinue: n,
4607
4607
  retry: this.options.retry ?? 0,
@@ -4614,7 +4614,7 @@ var on, He, Ee, St, $e, rt, rs, Ro = (rs = class extends Os {
4614
4614
  if (s)
4615
4615
  n();
4616
4616
  else {
4617
- W(this, $e, rt).call(this, { type: "pending", variables: t, isPaused: a }), await ((u = (i = l(this, Ee).config).onMutate) == null ? void 0 : u.call(
4617
+ z(this, $e, rt).call(this, { type: "pending", variables: t, isPaused: a }), await ((u = (i = l(this, Ee).config).onMutate) == null ? void 0 : u.call(
4618
4618
  i,
4619
4619
  t,
4620
4620
  this,
@@ -4625,7 +4625,7 @@ var on, He, Ee, St, $e, rt, rs, Ro = (rs = class extends Os {
4625
4625
  t,
4626
4626
  r
4627
4627
  ));
4628
- g !== this.state.context && W(this, $e, rt).call(this, {
4628
+ g !== this.state.context && z(this, $e, rt).call(this, {
4629
4629
  type: "pending",
4630
4630
  context: g,
4631
4631
  variables: t,
@@ -4661,7 +4661,7 @@ var on, He, Ee, St, $e, rt, rs, Ro = (rs = class extends Os {
4661
4661
  t,
4662
4662
  this.state.context,
4663
4663
  r
4664
- )), W(this, $e, rt).call(this, { type: "success", data: d }), d;
4664
+ )), z(this, $e, rt).call(this, { type: "success", data: d }), d;
4665
4665
  } catch (d) {
4666
4666
  try {
4667
4667
  throw await ((K = (F = l(this, Ee).config).onError) == null ? void 0 : K.call(
@@ -4671,14 +4671,14 @@ var on, He, Ee, St, $e, rt, rs, Ro = (rs = class extends Os {
4671
4671
  this.state.context,
4672
4672
  this,
4673
4673
  r
4674
- )), await ((z = (B = this.options).onError) == null ? void 0 : z.call(
4674
+ )), await ((Q = (B = this.options).onError) == null ? void 0 : Q.call(
4675
4675
  B,
4676
4676
  d,
4677
4677
  t,
4678
4678
  this.state.context,
4679
4679
  r
4680
- )), await ((ee = ($ = l(this, Ee).config).onSettled) == null ? void 0 : ee.call(
4681
- $,
4680
+ )), await ((ee = (W = l(this, Ee).config).onSettled) == null ? void 0 : ee.call(
4681
+ W,
4682
4682
  void 0,
4683
4683
  d,
4684
4684
  this.state.variables,
@@ -4694,7 +4694,7 @@ var on, He, Ee, St, $e, rt, rs, Ro = (rs = class extends Os {
4694
4694
  r
4695
4695
  )), d;
4696
4696
  } finally {
4697
- W(this, $e, rt).call(this, { type: "error", error: d });
4697
+ z(this, $e, rt).call(this, { type: "error", error: d });
4698
4698
  }
4699
4699
  } finally {
4700
4700
  l(this, Ee).runNext(this);
@@ -4884,7 +4884,7 @@ var Je, ut, De, et, tt, Dn, fr, as, Uo = (as = class extends Yt {
4884
4884
  L(this, ut);
4885
4885
  L(this, De);
4886
4886
  L(this, et);
4887
- k(this, Je, t), this.setOptions(n), this.bindMethods(), W(this, tt, Dn).call(this);
4887
+ k(this, Je, t), this.setOptions(n), this.bindMethods(), z(this, tt, Dn).call(this);
4888
4888
  }
4889
4889
  bindMethods() {
4890
4890
  this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
@@ -4903,14 +4903,14 @@ var Je, ut, De, et, tt, Dn, fr, as, Uo = (as = class extends Yt {
4903
4903
  this.hasListeners() || (t = l(this, De)) == null || t.removeObserver(this);
4904
4904
  }
4905
4905
  onMutationUpdate(t) {
4906
- W(this, tt, Dn).call(this), W(this, tt, fr).call(this, t);
4906
+ z(this, tt, Dn).call(this), z(this, tt, fr).call(this, t);
4907
4907
  }
4908
4908
  getCurrentResult() {
4909
4909
  return l(this, ut);
4910
4910
  }
4911
4911
  reset() {
4912
4912
  var t;
4913
- (t = l(this, De)) == null || t.removeObserver(this), k(this, De, void 0), W(this, tt, Dn).call(this), W(this, tt, fr).call(this);
4913
+ (t = l(this, De)) == null || t.removeObserver(this), k(this, De, void 0), z(this, tt, Dn).call(this), z(this, tt, fr).call(this);
4914
4914
  }
4915
4915
  mutate(t, n) {
4916
4916
  var r;
@@ -5600,17 +5600,7 @@ const Xo = 2e4, Ve = () => {
5600
5600
  () => ({ data: R, error: I, isLoading: O }),
5601
5601
  [R, I, O]
5602
5602
  );
5603
- };
5604
- function oc(e) {
5605
- const t = e.slice(2);
5606
- if (t.length === 128) {
5607
- const a = `0x${t.slice(0, 64)}`, i = parseInt(t.charAt(64), 16), u = (i >> 3) + 27, f = `0x${(i & 7).toString(16)}${t.slice(65, 128)}`;
5608
- return { r: a, s: f, v: u };
5609
- }
5610
- const n = `0x${t.slice(0, 64)}`, r = `0x${t.slice(64, 128)}`, s = parseInt(t.slice(128, 130), 16);
5611
- return { r: n, s: r, v: s };
5612
- }
5613
- const cc = () => {
5603
+ }, oc = () => {
5614
5604
  var a;
5615
5605
  const { account: e, walletInteractions: t, callbacks: n, chainId: r } = N(), s = (a = Er()) == null ? void 0 : a.wToken;
5616
5606
  return mt({
@@ -5637,7 +5627,7 @@ const cc = () => {
5637
5627
  throw ue.onWrapError(i), i;
5638
5628
  }
5639
5629
  });
5640
- }, uc = () => {
5630
+ }, cc = () => {
5641
5631
  const { account: e, walletInteractions: t, chainId: n, callbacks: r, isDev: s } = N(), {
5642
5632
  data: a,
5643
5633
  error: i,
@@ -5645,7 +5635,7 @@ const cc = () => {
5645
5635
  } = Ls(), { refetch: f } = vr(), h = Jo();
5646
5636
  return mt({
5647
5637
  mutationFn: async () => {
5648
- var F, K, B, z;
5638
+ var O, R, F, K;
5649
5639
  if (!e)
5650
5640
  throw new Error("missing account");
5651
5641
  if (!t)
@@ -5667,18 +5657,12 @@ const cc = () => {
5667
5657
  message: C,
5668
5658
  account: e
5669
5659
  });
5670
- } catch ($) {
5671
- throw (F = r == null ? void 0 : r.onSignOrderError) == null || F.call(r, $), ue.onSignOrderError($), $;
5660
+ } catch (B) {
5661
+ throw (O = r == null ? void 0 : r.onSignOrderError) == null || O.call(r, B), ue.onSignOrderError(B), B;
5672
5662
  }
5673
- ue.onSignOrderSuccess(P), (K = r == null ? void 0 : r.onSignOrderSuccess) == null || K.call(r, P);
5674
- const I = oc(P), O = {
5675
- v: `0x${I.v.toString(16)}`,
5676
- r: I.r,
5677
- s: I.s
5678
- };
5679
- (B = r == null ? void 0 : r.onSignOrderRequest) == null || B.call(r);
5680
- const R = await Pi(C, O, s);
5681
- return (z = r == null ? void 0 : r.onOrderCreated) == null || z.call(r, R), h(R), f(), R;
5663
+ ue.onSignOrderSuccess(P), (R = r == null ? void 0 : r.onSignOrderSuccess) == null || R.call(r, P), (F = r == null ? void 0 : r.onSignOrderRequest) == null || F.call(r);
5664
+ const I = await Pi(C, P, s);
5665
+ return (K = r == null ? void 0 : r.onOrderCreated) == null || K.call(r, I), h(I), f(), I;
5682
5666
  }
5683
5667
  });
5684
5668
  }, Ns = () => {
@@ -5703,7 +5687,7 @@ const cc = () => {
5703
5687
  return { allowance: a, approvalRequired: i };
5704
5688
  }
5705
5689
  });
5706
- }, dc = () => {
5690
+ }, uc = () => {
5707
5691
  const { account: e, walletInteractions: t, chainId: n, callbacks: r } = N(), { data: s } = Ve(), { mutateAsync: a } = Ns();
5708
5692
  return mt({
5709
5693
  onError: (i) => {
@@ -5754,7 +5738,7 @@ const cc = () => {
5754
5738
  }), h;
5755
5739
  }
5756
5740
  });
5757
- }, lc = () => {
5741
+ }, dc = () => {
5758
5742
  const { account: e, chainId: t, srcToken: n, dstToken: r, module: s, slippage: a } = N(), i = Rt(), u = pt().amount, f = We().amountPerTrade, h = Sr(), C = We().totalTrades, b = Zt().fillDelay, E = Cr().amount, v = q((P) => P.state.isMarketOrder);
5759
5743
  return mt({
5760
5744
  mutationFn: async () => {
@@ -5777,15 +5761,15 @@ const cc = () => {
5777
5761
  }
5778
5762
  });
5779
5763
  };
5780
- function fc(e) {
5764
+ function lc(e) {
5781
5765
  const t = e.message, n = t.match(/,\s*code\s*:\s*(\d+)/i);
5782
5766
  return {
5783
5767
  message: t.replace(/^error\s*:/i, "").replace(/,\s*code\s*:\s*\d+/i, "").trim() || "",
5784
5768
  code: n ? Number(n[1]) : 0
5785
5769
  };
5786
5770
  }
5787
- const hc = () => {
5788
- const { srcToken: e, dstToken: t, chainId: n, callbacks: r, marketPrice: s } = N(), a = dc().mutateAsync, i = cc().mutateAsync, u = uc().mutateAsync, { mutateAsync: f } = Ns(), { update: h } = fn(), { amount: C } = pt(), b = lc().mutate, { isLoading: E } = Ve();
5771
+ const fc = () => {
5772
+ const { srcToken: e, dstToken: t, chainId: n, callbacks: r, marketPrice: s } = N(), a = uc().mutateAsync, i = oc().mutateAsync, u = cc().mutateAsync, { mutateAsync: f } = Ns(), { update: h } = fn(), { amount: C } = pt(), b = dc().mutate, { isLoading: E } = Ve();
5789
5773
  return mt({
5790
5774
  mutationFn: async () => {
5791
5775
  var I, O;
@@ -5823,8 +5807,8 @@ const hc = () => {
5823
5807
  hasApproval: !F,
5824
5808
  status: Te.LOADING
5825
5809
  }), b();
5826
- let z = [];
5827
- P && z.push(At.WRAP), F && z.push(At.APPROVE), z.push(At.CREATE), h({ pendingSteps: z }), P && (h({ step: At.WRAP }), await i({
5810
+ let Q = [];
5811
+ P && Q.push(At.WRAP), F && Q.push(At.APPROVE), Q.push(At.CREATE), h({ pendingSteps: Q }), P && (h({ step: At.WRAP }), await i({
5828
5812
  onHash: (ee) => h({ wrapTxHash: ee }),
5829
5813
  srcAmountWei: C
5830
5814
  }), K++, h({ stepIndex: K })), F && (h({ step: At.APPROVE }), await a({
@@ -5832,8 +5816,8 @@ const hc = () => {
5832
5816
  onHash: (ee) => h({ approveTxHash: ee }),
5833
5817
  srcAmountWei: C
5834
5818
  }), K++, h({ stepIndex: K })), h({ step: At.CREATE });
5835
- const $ = await u();
5836
- return h({ status: Te.SUCCESS, orderId: $.id }), $;
5819
+ const W = await u();
5820
+ return h({ status: Te.SUCCESS, orderId: W.id }), W;
5837
5821
  } catch (R) {
5838
5822
  if (As(R))
5839
5823
  (I = r == null ? void 0 : r.onSubmitOrderRejected) == null || I.call(r), h({
@@ -5844,7 +5828,7 @@ const hc = () => {
5844
5828
  error: R
5845
5829
  });
5846
5830
  else {
5847
- const F = fc(R);
5831
+ const F = lc(R);
5848
5832
  (O = r == null ? void 0 : r.onSubmitOrderFailed) == null || O.call(r, F), h({
5849
5833
  status: Te.FAILED,
5850
5834
  allowanceLoading: !1,
@@ -5856,8 +5840,8 @@ const hc = () => {
5856
5840
  }
5857
5841
  }
5858
5842
  });
5859
- }, pc = () => {
5860
- const e = fn(), { srcToken: t, dstToken: n } = N(), { isLoading: r } = Ve(), s = hc(), a = q((C) => C.resetState), i = ne(
5843
+ }, hc = () => {
5844
+ const e = fn(), { srcToken: t, dstToken: n } = N(), { isLoading: r } = Ve(), s = fc(), a = q((C) => C.resetState), i = ne(
5861
5845
  () => s.mutateAsync(),
5862
5846
  [s]
5863
5847
  ), { update: u, resetSwap: f, ...h } = e;
@@ -5889,7 +5873,7 @@ const hc = () => {
5889
5873
  n,
5890
5874
  r
5891
5875
  ]);
5892
- }, mc = () => {
5876
+ }, pc = () => {
5893
5877
  const {
5894
5878
  marketPrice: e,
5895
5879
  srcToken: t,
@@ -5910,10 +5894,10 @@ const hc = () => {
5910
5894
  loading: E,
5911
5895
  retry: C
5912
5896
  }), [P, E, f, C]);
5913
- }, yc = () => {
5897
+ }, mc = () => {
5914
5898
  const { srcUsd1Token: e, dstUsd1Token: t } = N(), n = pt().amountUI, r = Mn().amountUI, s = Qe(n, e), a = Qe(r, t);
5915
5899
  return { srcAmountUsd: s, dstAmountUsd: a };
5916
- }, Ac = () => {
5900
+ }, yc = () => {
5917
5901
  const { fees: e, dstToken: t, dstUsd1Token: n } = N(), { amountUI: r } = Mn(), s = U(() => !e || !r ? "" : D(r).multipliedBy(e).dividedBy(100).toFixed(), [r, e]), a = br((t == null ? void 0 : t.decimals) || 0, s);
5918
5902
  return {
5919
5903
  amountUI: s,
@@ -5921,7 +5905,7 @@ const hc = () => {
5921
5905
  percent: e,
5922
5906
  usd: Qe(s, n)
5923
5907
  };
5924
- }, gc = (e) => {
5908
+ }, Ac = (e) => {
5925
5909
  const t = U(() => !e.minDestAmountPerTrade || !e.totalTrades ? "" : D(e.minDestAmountPerTrade).multipliedBy(e.totalTrades).decimalPlaces(0).toFixed(), [e.minDestAmountPerTrade, e.totalTrades]), n = U(() => !e.minDestAmountPerTradeUI || !e.totalTrades ? "" : D(e.minDestAmountPerTradeUI).multipliedBy(e.totalTrades).toFixed(), [e.minDestAmountPerTradeUI, e.totalTrades]), r = U(() => !e.minDestAmountPerTradeUsd || !e.totalTrades ? "" : D(e.minDestAmountPerTradeUsd).multipliedBy(e.totalTrades).decimalPlaces(2).toFixed(), [e.minDestAmountPerTradeUsd, e.totalTrades]);
5926
5910
  return U(() => ({
5927
5911
  srcToken: e.srcToken,
@@ -5984,7 +5968,7 @@ const hc = () => {
5984
5968
  e.triggerPriceUI,
5985
5969
  e.triggerPriceUsd
5986
5970
  ]);
5987
- }, bc = () => {
5971
+ }, gc = () => {
5988
5972
  const { srcToken: e, dstToken: t, account: n, marketPrice: r } = N(), { amount: s } = pt(), {
5989
5973
  amount: a,
5990
5974
  amountUI: i,
@@ -6002,7 +5986,7 @@ const hc = () => {
6002
5986
  amountUI: O,
6003
5987
  amount: R,
6004
5988
  usd: F
6005
- } = Rt(), { milliseconds: K } = Zt(), { amount: B, amountUI: z } = Mn(), { srcAmountUsd: $, dstAmountUsd: ee } = yc(), { amount: o, amountUI: c, percent: d, usd: g } = Ac(), { data: m } = Ls(), { data: y } = Ve(), w = q((j) => j.state.isMarketOrder), p = q((j) => j.state.currentTime), A = fn(), T = Zo(), x = A.acceptedSrcAmount || s, S = Ce(r, (t == null ? void 0 : t.decimals) || 0), _ = U(() => T === X.TAKE_PROFIT_MARKET || T === X.TAKE_PROFIT_LIMIT || T === X.STOP_LOSS_LIMIT || T === X.STOP_LOSS_MARKET, [T]), M = gc({
5989
+ } = Rt(), { milliseconds: K } = Zt(), { amount: B, amountUI: Q } = Mn(), { srcAmountUsd: W, dstAmountUsd: ee } = mc(), { amount: o, amountUI: c, percent: d, usd: g } = yc(), { data: m } = Ls(), { data: y } = Ve(), w = q((j) => j.state.isMarketOrder), p = q((j) => j.state.currentTime), A = fn(), T = Zo(), x = A.acceptedSrcAmount || s, S = Ce(r, (t == null ? void 0 : t.decimals) || 0), _ = U(() => T === X.TAKE_PROFIT_MARKET || T === X.TAKE_PROFIT_LIMIT || T === X.STOP_LOSS_LIMIT || T === X.STOP_LOSS_MARKET, [T]), M = Ac({
6006
5990
  srcToken: e,
6007
5991
  dstToken: t,
6008
5992
  account: n,
@@ -6013,9 +5997,9 @@ const hc = () => {
6013
5997
  tradeInterval: K,
6014
5998
  srcAmount: x,
6015
5999
  srcAmountUI: Ce(x, (e == null ? void 0 : e.decimals) || 0),
6016
- srcAmountUsd: $,
6000
+ srcAmountUsd: W,
6017
6001
  dstAmount: B,
6018
- dstAmountUI: z,
6002
+ dstAmountUI: Q,
6019
6003
  dstAmountUsd: ee,
6020
6004
  limitPrice: w ? void 0 : a,
6021
6005
  limitPriceUI: w ? void 0 : i,
@@ -6055,15 +6039,15 @@ const hc = () => {
6055
6039
  S,
6056
6040
  y
6057
6041
  ]);
6058
- }, Ec = () => {
6042
+ }, bc = () => {
6059
6043
  const { supportedChains: e } = N();
6060
6044
  return U(() => e, [e]);
6061
- }, xc = 60, Ks = () => {
6045
+ }, Ec = 60, Ks = () => {
6062
6046
  const { refetch: e } = vr();
6063
6047
  return mt({
6064
6048
  mutationFn: async (t) => {
6065
6049
  var n;
6066
- for (let r = 0; r < xc; r++) {
6050
+ for (let r = 0; r < Ec; r++) {
6067
6051
  const s = (n = await e()) == null ? void 0 : n.data;
6068
6052
  if (!s)
6069
6053
  throw new Error("orders not found");
@@ -6077,7 +6061,7 @@ const hc = () => {
6077
6061
  );
6078
6062
  }
6079
6063
  });
6080
- }, Tc = () => {
6064
+ }, xc = () => {
6081
6065
  const e = q((n) => n.updateState);
6082
6066
  return {
6083
6067
  cancelOrders: q((n) => n.state.cancelOrders),
@@ -6092,7 +6076,7 @@ const hc = () => {
6092
6076
  e({ cancelOrders: a });
6093
6077
  }
6094
6078
  };
6095
- }, Qc = (e) => {
6079
+ }, zc = (e) => {
6096
6080
  const { account: t, walletInteractions: n, callbacks: r, chainId: s } = N(), {
6097
6081
  data: a,
6098
6082
  error: i,
@@ -6101,7 +6085,7 @@ const hc = () => {
6101
6085
  cancelOrders: C,
6102
6086
  setCancelOrder: b,
6103
6087
  clearCancelOrder: E
6104
- } = Tc(), { mutateAsync: v } = mt({
6088
+ } = xc(), { mutateAsync: v } = mt({
6105
6089
  mutationFn: async () => {
6106
6090
  var R, F, K;
6107
6091
  if (!t || !n)
@@ -6126,8 +6110,8 @@ const hc = () => {
6126
6110
  if (ue.onCancelOrderSuccess(B), h(e.id, fe.Cancelled), e.version !== 1)
6127
6111
  try {
6128
6112
  await f(e.id);
6129
- } catch (z) {
6130
- console.warn("cancel status sync lagging", z);
6113
+ } catch (Q) {
6114
+ console.warn("cancel status sync lagging", Q);
6131
6115
  }
6132
6116
  return (F = r == null ? void 0 : r.onCancelOrderSuccess) == null || F.call(r, {
6133
6117
  order: e.version === 1 ? { ...e, status: fe.Cancelled } : e,
@@ -6159,10 +6143,10 @@ const hc = () => {
6159
6143
  u
6160
6144
  ]), I = ne(async () => v(), [v]);
6161
6145
  return U(() => ({ cancelOrder: I, ...P }), [I, P]);
6162
- }, qs = hr(null), Cc = ({
6146
+ }, qs = hr(null), Tc = ({
6163
6147
  children: e
6164
6148
  }) => {
6165
- const t = Ji(), n = ro(), r = to(), s = uo(), a = lo(), i = Un(), u = fo(), f = ho(), h = ws(), C = mc(), b = bc(), E = ic(), v = pc(), P = Ec(), I = Ks(), { module: O } = N(), R = U(
6149
+ const t = Ji(), n = ro(), r = to(), s = uo(), a = lo(), i = Un(), u = fo(), f = ho(), h = ws(), C = pc(), b = gc(), E = ic(), v = hc(), P = bc(), I = Ks(), { module: O } = N(), R = U(
6166
6150
  () => ({
6167
6151
  tradesAmountPanel: t,
6168
6152
  durationPanel: n,
@@ -6201,16 +6185,16 @@ const hc = () => {
6201
6185
  ]
6202
6186
  );
6203
6187
  return /* @__PURE__ */ Ne(qs.Provider, { value: R, children: e });
6204
- }, Wc = () => {
6188
+ }, Qc = () => {
6205
6189
  const e = cs(qs);
6206
6190
  if (e === null)
6207
6191
  throw new Error("useSpot must be used within SpotProvider");
6208
6192
  return e;
6209
- }, wc = hr(null), Vn = {
6193
+ }, Cc = hr(null), Vn = {
6210
6194
  didCatch: !1,
6211
6195
  error: null
6212
6196
  };
6213
- class Fc extends Vs {
6197
+ class wc extends Vs {
6214
6198
  constructor(t) {
6215
6199
  super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Vn;
6216
6200
  }
@@ -6243,7 +6227,7 @@ class Fc extends Vs {
6243
6227
  } = this.state, {
6244
6228
  resetKeys: s
6245
6229
  } = this.props;
6246
- if (r && n.error !== null && Dc(t.resetKeys, s)) {
6230
+ if (r && n.error !== null && Fc(t.resetKeys, s)) {
6247
6231
  var a, i;
6248
6232
  (a = (i = this.props).onReset) === null || a === void 0 || a.call(i, {
6249
6233
  next: s,
@@ -6277,7 +6261,7 @@ class Fc extends Vs {
6277
6261
  else
6278
6262
  throw i;
6279
6263
  }
6280
- return Or(wc.Provider, {
6264
+ return Or(Cc.Provider, {
6281
6265
  value: {
6282
6266
  didCatch: a,
6283
6267
  error: i,
@@ -6286,11 +6270,11 @@ class Fc extends Vs {
6286
6270
  }, u);
6287
6271
  }
6288
6272
  }
6289
- function Dc() {
6273
+ function Fc() {
6290
6274
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
6291
6275
  return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
6292
6276
  }
6293
- const vc = () => /* @__PURE__ */ Ne("div", { className: "twap-error-fallback", children: /* @__PURE__ */ Ne(
6277
+ const Dc = () => /* @__PURE__ */ Ne("div", { className: "twap-error-fallback", children: /* @__PURE__ */ Ne(
6294
6278
  "p",
6295
6279
  {
6296
6280
  style: {
@@ -6303,23 +6287,23 @@ const vc = () => /* @__PURE__ */ Ne("div", { className: "twap-error-fallback", c
6303
6287
  children: "Something went wrong"
6304
6288
  }
6305
6289
  ) });
6306
- function Sc({ children: e }) {
6290
+ function vc({ children: e }) {
6307
6291
  return /* @__PURE__ */ Ne(
6308
- Fc,
6292
+ wc,
6309
6293
  {
6310
- FallbackComponent: vc,
6294
+ FallbackComponent: Dc,
6311
6295
  onError: (t) => ue.onCrash(t),
6312
6296
  children: /* @__PURE__ */ Ne(Ws, { children: e })
6313
6297
  }
6314
6298
  );
6315
6299
  }
6316
- const Hs = hr(null), Pc = new Mo({
6300
+ const Hs = hr(null), Sc = new Mo({
6317
6301
  defaultOptions: {
6318
6302
  queries: {
6319
6303
  refetchOnWindowFocus: !1
6320
6304
  }
6321
6305
  }
6322
- }), Oc = (e) => {
6306
+ }), Pc = (e) => {
6323
6307
  var E, v, P;
6324
6308
  const t = q((I) => I.updateState), n = q((I) => I.state.isMarketOrder);
6325
6309
  st(() => {
@@ -6373,7 +6357,7 @@ const Hs = hr(null), Pc = new Mo({
6373
6357
  }, [n]), st(() => {
6374
6358
  t({ typedChunks: void 0 });
6375
6359
  }, [e.typedInputAmount]), null;
6376
- }, Ic = ({
6360
+ }, Oc = ({
6377
6361
  marketReferencePrice: e,
6378
6362
  srcToken: t,
6379
6363
  dstToken: n,
@@ -6393,14 +6377,14 @@ const Hs = hr(null), Pc = new Mo({
6393
6377
  ...e,
6394
6378
  value: a
6395
6379
  };
6396
- }, [e, s, t, n, r]), Bc = (e) => {
6380
+ }, [e, s, t, n, r]), Ic = (e) => {
6397
6381
  const t = fn(), n = U(
6398
6382
  () => fs(e.partner),
6399
6383
  [e.partner]
6400
6384
  ), r = U(() => {
6401
6385
  const u = n[0];
6402
6386
  return e.chainId && n.includes(e.chainId) ? e.chainId : u;
6403
- }, [e.chainId, n]), s = Ic(e), a = U(
6387
+ }, [e.chainId, n]), s = Oc(e), a = U(
6404
6388
  () => ui(e.minChunkSizeUsd),
6405
6389
  [e.minChunkSizeUsd]
6406
6390
  );
@@ -6463,15 +6447,15 @@ const Hs = hr(null), Pc = new Mo({
6463
6447
  ]
6464
6448
  );
6465
6449
  return /* @__PURE__ */ Qs(Hs.Provider, { value: i, children: [
6466
- /* @__PURE__ */ Ne(Oc, { ...e }),
6467
- /* @__PURE__ */ Ne(Cc, { children: /* @__PURE__ */ Ne(Sc, { children: e.children }) })
6450
+ /* @__PURE__ */ Ne(Pc, { ...e }),
6451
+ /* @__PURE__ */ Ne(Tc, { children: /* @__PURE__ */ Ne(vc, { children: e.children }) })
6468
6452
  ] });
6469
- }, Vc = (e) => /* @__PURE__ */ Ne(Lo, { client: Pc, children: /* @__PURE__ */ Ne(Bc, { ...e }) }), N = () => {
6453
+ }, Wc = (e) => /* @__PURE__ */ Ne(Lo, { client: Sc, children: /* @__PURE__ */ Ne(Ic, { ...e }) }), N = () => {
6470
6454
  const e = cs(Hs);
6471
6455
  if (e === null)
6472
6456
  throw new Error("useSpotContext must be used within SpotProvider");
6473
6457
  return e;
6474
- }, Rc = (e, t, n) => {
6458
+ }, Bc = (e, t, n) => {
6475
6459
  const r = Er();
6476
6460
  return U(() => e == null ? void 0 : e.map((s) => ({
6477
6461
  rawFill: s,
@@ -6491,8 +6475,8 @@ const Hs = hr(null), Pc = new Mo({
6491
6475
  })).filter(
6492
6476
  (s) => s.srcToken !== void 0 && s.dstToken !== void 0
6493
6477
  ), [e, t, n, r]);
6494
- }, jc = (e, t, n) => {
6495
- const { chainId: r, partner: s } = N(), a = rc(t, n, e), i = sc(t, n, e), u = ac(t, n, e), f = U(() => e ? e.version === 2 ? e.fillDelay : La(e, yr(s, r)) : 0, [e, s, r]), h = Rc(e == null ? void 0 : e.fills, t, n) ?? [];
6478
+ }, Vc = (e, t, n) => {
6479
+ const { chainId: r, partner: s } = N(), a = rc(t, n, e), i = sc(t, n, e), u = ac(t, n, e), f = U(() => e ? e.version === 2 ? e.fillDelay : La(e, yr(s, r)) : 0, [e, s, r]), h = Bc(e == null ? void 0 : e.fills, t, n) ?? [];
6496
6480
  return U(() => {
6497
6481
  if (e != null && e.id)
6498
6482
  return {
@@ -6544,20 +6528,20 @@ const Hs = hr(null), Pc = new Mo({
6544
6528
  };
6545
6529
  mi(Hi.version);
6546
6530
  export {
6547
- qc as DISCLAIMER_URL,
6531
+ Kc as DISCLAIMER_URL,
6548
6532
  Fn as Disclaimer,
6549
6533
  ye as InputErrors,
6550
6534
  V as Module,
6551
- Nc as ORBS_LOGO,
6552
- Lc as ORBS_SLTP_FAQ_URL,
6553
- Mc as ORBS_TWAP_FAQ_URL,
6554
- Kc as ORBS_WEBSITE_URL,
6535
+ Lc as ORBS_LOGO,
6536
+ Mc as ORBS_SLTP_FAQ_URL,
6537
+ _c as ORBS_TWAP_FAQ_URL,
6538
+ Nc as ORBS_WEBSITE_URL,
6555
6539
  ma as OrderFilter,
6556
6540
  fe as OrderStatus,
6557
6541
  X as OrderType,
6558
6542
  ve as Partners,
6559
6543
  mr as SPOT_VERSION,
6560
- Vc as SpotProvider,
6544
+ Wc as SpotProvider,
6561
6545
  At as Steps,
6562
6546
  Te as SwapStatus,
6563
6547
  Le as TimeUnit,
@@ -6571,7 +6555,7 @@ export {
6571
6555
  hs as getOrderExecutionRate,
6572
6556
  La as getOrderFillDelayMillis,
6573
6557
  Na as getOrderLimitPriceRate,
6574
- $c as getOrderType,
6558
+ Hc as getOrderType,
6575
6559
  fs as getPartnerChains,
6576
6560
  ci as getPartners,
6577
6561
  Ka as getTriggerPriceRate,
@@ -6580,20 +6564,20 @@ export {
6580
6564
  gs as millisToDays,
6581
6565
  Zn as millisToMinutes,
6582
6566
  ge as networks,
6583
- Hc as parseError,
6567
+ qc as parseError,
6584
6568
  Es as shouldUnwrapOnly,
6585
6569
  bs as shouldWrapOnly,
6586
6570
  Pi as submitOrder,
6587
6571
  Ce as toAmountUi,
6588
6572
  Pt as toAmountWei,
6589
6573
  Xt as useAmountUi,
6590
- Qc as useCancelOrder,
6591
- jc as useDerivedHistoryOrder,
6592
- zc as useExplorerLink,
6574
+ zc as useCancelOrder,
6575
+ Vc as useDerivedHistoryOrder,
6576
+ $c as useExplorerLink,
6593
6577
  Er as useNetwork,
6594
6578
  Ve as useRePermitData,
6595
- uc as useSignOrder,
6596
- Wc as useSpot,
6597
- hc as useSubmitOrder,
6579
+ cc as useSignOrder,
6580
+ Qc as useSpot,
6581
+ fc as useSubmitOrder,
6598
6582
  fn as useSwapExecution
6599
6583
  };