@orbs-network/spot-ui 0.0.26 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/spot-ui.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var at = Object.defineProperty;
2
2
  var st = (e, n, i) => n in e ? at(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
- var Te = (e, n, i) => st(e, typeof n != "symbol" ? n + "" : n, i);
3
+ var we = (e, n, i) => st(e, typeof n != "symbol" ? n + "" : n, i);
4
4
  const rt = { 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: "" }, it = { 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: "" }, ot = { 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" }, dt = { 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: "" }, ct = { 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" }, pt = { 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" }, lt = { 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" }, ut = { 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" }, ft = { 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: "" }, mt = { 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: "" }, yt = { 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: "" }, ht = { 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: "" }, At = { 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" }, bt = { 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" }, Et = { 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" }, gt = { 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: "" }, xt = { 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: "" }, Tt = { 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: "" }, wt = { 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: "" }, Ft = { 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: "" }, Ct = { 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" }, Dt = { 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" }, kt = { 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: "" }, St = { 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: "" }, Bt = { 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" }, _t = { 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" }, Ot = { 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" }, vt = { 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" }, Rt = { 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" }, It = { 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" }, Pt = { 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" }, H = {
5
5
  SpookySwap: rt,
6
6
  SpookySwapSonic: it,
@@ -691,7 +691,7 @@ const rt = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
691
691
  ]
692
692
  }
693
693
  ], _n = Nt, On = Mt, vn = Lt, Rn = Ut;
694
- var z = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(z || {}), re = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Canceled = "CANCELED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(re || {}), ne = /* @__PURE__ */ ((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))(ne || {}), j = /* @__PURE__ */ ((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))(j || {}), Vt = /* @__PURE__ */ ((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.Pangolin = "pangolin", e))(Vt || {}), Wt = /* @__PURE__ */ ((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))(Wt || {});
694
+ var z = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(z || {}), re = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Canceled = "CANCELED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(re || {}), ne = /* @__PURE__ */ ((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))(ne || {}), q = /* @__PURE__ */ ((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))(q || {}), Vt = /* @__PURE__ */ ((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.Pangolin = "pangolin", e))(Vt || {}), Wt = /* @__PURE__ */ ((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))(Wt || {});
695
695
  const U = "0x0000000000000000000000000000000000000000", K = {
696
696
  eth: {
697
697
  id: 1,
@@ -1142,9 +1142,9 @@ const U = "0x0000000000000000000000000000000000000000", K = {
1142
1142
  eip1559: !0
1143
1143
  }
1144
1144
  };
1145
- var zt = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Be = Math.ceil, J = Math.floor, q = "[BigNumber Error] ", ze = q + "Number primitive has more than 15 significant digits: ", te = 1e14, S = 14, _e = 9007199254740991, Oe = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ce = 1e7, V = 1e9;
1146
- function Ye(e) {
1147
- var n, i, y, p = b.prototype = { constructor: b, toString: null, valueOf: null }, A = new b(1), E = 20, x = 4, T = -7, w = 21, B = -1e7, C = 1e7, k = !1, R = 1, I = 0, ue = {
1145
+ var zt = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Be = Math.ceil, Z = Math.floor, X = "[BigNumber Error] ", $e = X + "Number primitive has more than 15 significant digits: ", ee = 1e14, S = 14, _e = 9007199254740991, Oe = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ce = 1e7, V = 1e9;
1146
+ function Qe(e) {
1147
+ var n, i, y, c = b.prototype = { constructor: b, toString: null, valueOf: null }, A = new b(1), E = 20, x = 4, T = -7, w = 21, B = -1e7, C = 1e7, k = !1, R = 1, I = 0, ue = {
1148
1148
  prefix: "",
1149
1149
  groupSize: 3,
1150
1150
  secondaryGroupSize: 0,
@@ -1154,9 +1154,9 @@ function Ye(e) {
1154
1154
  fractionGroupSeparator: " ",
1155
1155
  // non-breaking space
1156
1156
  suffix: ""
1157
- }, ae = "0123456789abcdefghijklmnopqrstuvwxyz", fe = !0;
1157
+ }, ae = "0123456789abcdefghijklmnopqrstuvwxyz", me = !0;
1158
1158
  function b(t, a) {
1159
- var s, u, o, c, m, r, d, f, l = this;
1159
+ var s, u, o, p, m, r, d, f, l = this;
1160
1160
  if (!(l instanceof b)) return new b(t, a);
1161
1161
  if (a == null) {
1162
1162
  if (t && t._isBigNumber === !0) {
@@ -1165,8 +1165,8 @@ function Ye(e) {
1165
1165
  }
1166
1166
  if ((r = typeof t == "number") && t * 0 == 0) {
1167
1167
  if (l.s = 1 / t < 0 ? (t = -t, -1) : 1, t === ~~t) {
1168
- for (c = 0, m = t; m >= 10; m /= 10, c++) ;
1169
- c > C ? l.c = l.e = null : (l.e = c, l.c = [t]);
1168
+ for (p = 0, m = t; m >= 10; m /= 10, p++) ;
1169
+ p > C ? l.c = l.e = null : (l.e = p, l.c = [t]);
1170
1170
  return;
1171
1171
  }
1172
1172
  f = String(t);
@@ -1174,42 +1174,42 @@ function Ye(e) {
1174
1174
  if (!zt.test(f = String(t))) return y(l, f, r);
1175
1175
  l.s = f.charCodeAt(0) == 45 ? (f = f.slice(1), -1) : 1;
1176
1176
  }
1177
- (c = f.indexOf(".")) > -1 && (f = f.replace(".", "")), (m = f.search(/e/i)) > 0 ? (c < 0 && (c = m), c += +f.slice(m + 1), f = f.substring(0, m)) : c < 0 && (c = f.length);
1177
+ (p = f.indexOf(".")) > -1 && (f = f.replace(".", "")), (m = f.search(/e/i)) > 0 ? (p < 0 && (p = m), p += +f.slice(m + 1), f = f.substring(0, m)) : p < 0 && (p = f.length);
1178
1178
  } else {
1179
- if (P(a, 2, ae.length, "Base"), a == 10 && fe)
1180
- return l = new b(t), X(l, E + l.e + 1, x);
1179
+ if (P(a, 2, ae.length, "Base"), a == 10 && me)
1180
+ return l = new b(t), j(l, E + l.e + 1, x);
1181
1181
  if (f = String(t), r = typeof t == "number") {
1182
1182
  if (t * 0 != 0) return y(l, f, r, a);
1183
1183
  if (l.s = 1 / t < 0 ? (f = f.slice(1), -1) : 1, b.DEBUG && f.replace(/^0\.0*|\./, "").length > 15)
1184
- throw Error(ze + t);
1184
+ throw Error($e + t);
1185
1185
  } else
1186
1186
  l.s = f.charCodeAt(0) === 45 ? (f = f.slice(1), -1) : 1;
1187
- for (s = ae.slice(0, a), c = m = 0, d = f.length; m < d; m++)
1187
+ for (s = ae.slice(0, a), p = m = 0, d = f.length; m < d; m++)
1188
1188
  if (s.indexOf(u = f.charAt(m)) < 0) {
1189
1189
  if (u == ".") {
1190
- if (m > c) {
1191
- c = d;
1190
+ if (m > p) {
1191
+ p = d;
1192
1192
  continue;
1193
1193
  }
1194
1194
  } else if (!o && (f == f.toUpperCase() && (f = f.toLowerCase()) || f == f.toLowerCase() && (f = f.toUpperCase()))) {
1195
- o = !0, m = -1, c = 0;
1195
+ o = !0, m = -1, p = 0;
1196
1196
  continue;
1197
1197
  }
1198
1198
  return y(l, String(t), r, a);
1199
1199
  }
1200
- r = !1, f = i(f, a, 10, l.s), (c = f.indexOf(".")) > -1 ? f = f.replace(".", "") : c = f.length;
1200
+ r = !1, f = i(f, a, 10, l.s), (p = f.indexOf(".")) > -1 ? f = f.replace(".", "") : p = f.length;
1201
1201
  }
1202
1202
  for (m = 0; f.charCodeAt(m) === 48; m++) ;
1203
1203
  for (d = f.length; f.charCodeAt(--d) === 48; ) ;
1204
1204
  if (f = f.slice(m, ++d)) {
1205
- if (d -= m, r && b.DEBUG && d > 15 && (t > _e || t !== J(t)))
1206
- throw Error(ze + l.s * t);
1207
- if ((c = c - m - 1) > C)
1205
+ if (d -= m, r && b.DEBUG && d > 15 && (t > _e || t !== Z(t)))
1206
+ throw Error($e + l.s * t);
1207
+ if ((p = p - m - 1) > C)
1208
1208
  l.c = l.e = null;
1209
- else if (c < B)
1209
+ else if (p < B)
1210
1210
  l.c = [l.e = 0];
1211
1211
  else {
1212
- if (l.e = c, l.c = [], m = (c + 1) % S, c < 0 && (m += S), m < d) {
1212
+ if (l.e = p, l.c = [], m = (p + 1) % S, p < 0 && (m += S), m < d) {
1213
1213
  for (m && l.c.push(+f.slice(0, m)), d -= S; m < d; )
1214
1214
  l.c.push(+f.slice(m, m += S));
1215
1215
  m = S - (f = f.slice(m)).length;
@@ -1221,7 +1221,7 @@ function Ye(e) {
1221
1221
  } else
1222
1222
  l.c = [l.e = 0];
1223
1223
  }
1224
- b.clone = Ye, b.ROUND_UP = 0, b.ROUND_DOWN = 1, b.ROUND_CEIL = 2, b.ROUND_FLOOR = 3, b.ROUND_HALF_UP = 4, b.ROUND_HALF_DOWN = 5, b.ROUND_HALF_EVEN = 6, b.ROUND_HALF_CEIL = 7, b.ROUND_HALF_FLOOR = 8, b.EUCLID = 9, b.config = b.set = function(t) {
1224
+ b.clone = Qe, b.ROUND_UP = 0, b.ROUND_DOWN = 1, b.ROUND_CEIL = 2, b.ROUND_FLOOR = 3, b.ROUND_HALF_UP = 4, b.ROUND_HALF_DOWN = 5, b.ROUND_HALF_EVEN = 6, b.ROUND_HALF_CEIL = 7, b.ROUND_HALF_FLOOR = 8, b.EUCLID = 9, b.config = b.set = function(t) {
1225
1225
  var a, s;
1226
1226
  if (t != null)
1227
1227
  if (typeof t == "object") {
@@ -1231,28 +1231,28 @@ function Ye(e) {
1231
1231
  else if (P(s, -V, V, a), s)
1232
1232
  B = -(C = s < 0 ? -s : s);
1233
1233
  else
1234
- throw Error(q + a + " cannot be zero: " + s);
1234
+ throw Error(X + a + " cannot be zero: " + s);
1235
1235
  if (t.hasOwnProperty(a = "CRYPTO"))
1236
1236
  if (s = t[a], s === !!s)
1237
1237
  if (s)
1238
1238
  if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
1239
1239
  k = s;
1240
1240
  else
1241
- throw k = !s, Error(q + "crypto unavailable");
1241
+ throw k = !s, Error(X + "crypto unavailable");
1242
1242
  else
1243
1243
  k = s;
1244
1244
  else
1245
- throw Error(q + a + " not true or false: " + s);
1245
+ throw Error(X + a + " not true or false: " + s);
1246
1246
  if (t.hasOwnProperty(a = "MODULO_MODE") && (s = t[a], P(s, 0, 9, a), R = s), t.hasOwnProperty(a = "POW_PRECISION") && (s = t[a], P(s, 0, V, a), I = s), t.hasOwnProperty(a = "FORMAT"))
1247
1247
  if (s = t[a], typeof s == "object") ue = s;
1248
- else throw Error(q + a + " not an object: " + s);
1248
+ else throw Error(X + a + " not an object: " + s);
1249
1249
  if (t.hasOwnProperty(a = "ALPHABET"))
1250
1250
  if (s = t[a], typeof s == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(s))
1251
- fe = s.slice(0, 10) == "0123456789", ae = s;
1251
+ me = s.slice(0, 10) == "0123456789", ae = s;
1252
1252
  else
1253
- throw Error(q + a + " invalid: " + s);
1253
+ throw Error(X + a + " invalid: " + s);
1254
1254
  } else
1255
- throw Error(q + "Object expected: " + t);
1255
+ throw Error(X + "Object expected: " + t);
1256
1256
  return {
1257
1257
  DECIMAL_PLACES: E,
1258
1258
  ROUNDING_MODE: x,
@@ -1267,34 +1267,34 @@ function Ye(e) {
1267
1267
  }, b.isBigNumber = function(t) {
1268
1268
  if (!t || t._isBigNumber !== !0) return !1;
1269
1269
  if (!b.DEBUG) return !0;
1270
- var a, s, u = t.c, o = t.e, c = t.s;
1270
+ var a, s, u = t.c, o = t.e, p = t.s;
1271
1271
  e: if ({}.toString.call(u) == "[object Array]") {
1272
- if ((c === 1 || c === -1) && o >= -V && o <= V && o === J(o)) {
1272
+ if ((p === 1 || p === -1) && o >= -V && o <= V && o === Z(o)) {
1273
1273
  if (u[0] === 0) {
1274
1274
  if (o === 0 && u.length === 1) return !0;
1275
1275
  break e;
1276
1276
  }
1277
1277
  if (a = (o + 1) % S, a < 1 && (a += S), String(u[0]).length == a) {
1278
1278
  for (a = 0; a < u.length; a++)
1279
- if (s = u[a], s < 0 || s >= te || s !== J(s)) break e;
1279
+ if (s = u[a], s < 0 || s >= ee || s !== Z(s)) break e;
1280
1280
  if (s !== 0) return !0;
1281
1281
  }
1282
1282
  }
1283
- } else if (u === null && o === null && (c === null || c === 1 || c === -1))
1283
+ } else if (u === null && o === null && (p === null || p === 1 || p === -1))
1284
1284
  return !0;
1285
- throw Error(q + "Invalid BigNumber: " + t);
1285
+ throw Error(X + "Invalid BigNumber: " + t);
1286
1286
  }, b.maximum = b.max = function() {
1287
- return Ee(arguments, -1);
1287
+ return ge(arguments, -1);
1288
1288
  }, b.minimum = b.min = function() {
1289
- return Ee(arguments, 1);
1289
+ return ge(arguments, 1);
1290
1290
  }, b.random = (function() {
1291
1291
  var t = 9007199254740992, a = Math.random() * t & 2097151 ? function() {
1292
- return J(Math.random() * t);
1292
+ return Z(Math.random() * t);
1293
1293
  } : function() {
1294
1294
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
1295
1295
  };
1296
1296
  return function(s) {
1297
- var u, o, c, m, r, d = 0, f = [], l = new b(A);
1297
+ var u, o, p, m, r, d = 0, f = [], l = new b(A);
1298
1298
  if (s == null ? s = E : P(s, 0, V), m = Be(s / S), k)
1299
1299
  if (crypto.getRandomValues) {
1300
1300
  for (u = crypto.getRandomValues(new Uint32Array(m *= 2)); d < m; )
@@ -1305,43 +1305,43 @@ function Ye(e) {
1305
1305
  r = (u[d] & 31) * 281474976710656 + u[d + 1] * 1099511627776 + u[d + 2] * 4294967296 + u[d + 3] * 16777216 + (u[d + 4] << 16) + (u[d + 5] << 8) + u[d + 6], r >= 9e15 ? crypto.randomBytes(7).copy(u, d) : (f.push(r % 1e14), d += 7);
1306
1306
  d = m / 7;
1307
1307
  } else
1308
- throw k = !1, Error(q + "crypto unavailable");
1308
+ throw k = !1, Error(X + "crypto unavailable");
1309
1309
  if (!k)
1310
1310
  for (; d < m; )
1311
1311
  r = a(), r < 9e15 && (f[d++] = r % 1e14);
1312
- for (m = f[--d], s %= S, m && s && (r = Oe[S - s], f[d] = J(m / r) * r); f[d] === 0; f.pop(), d--) ;
1312
+ for (m = f[--d], s %= S, m && s && (r = Oe[S - s], f[d] = Z(m / r) * r); f[d] === 0; f.pop(), d--) ;
1313
1313
  if (d < 0)
1314
- f = [c = 0];
1314
+ f = [p = 0];
1315
1315
  else {
1316
- for (c = -1; f[0] === 0; f.splice(0, 1), c -= S) ;
1316
+ for (p = -1; f[0] === 0; f.splice(0, 1), p -= S) ;
1317
1317
  for (d = 1, r = f[0]; r >= 10; r /= 10, d++) ;
1318
- d < S && (c -= S - d);
1318
+ d < S && (p -= S - d);
1319
1319
  }
1320
- return l.e = c, l.c = f, l;
1320
+ return l.e = p, l.c = f, l;
1321
1321
  };
1322
1322
  })(), b.sum = function() {
1323
1323
  for (var t = 1, a = arguments, s = new b(a[0]); t < a.length; ) s = s.plus(a[t++]);
1324
1324
  return s;
1325
1325
  }, i = /* @__PURE__ */ (function() {
1326
1326
  var t = "0123456789";
1327
- function a(s, u, o, c) {
1327
+ function a(s, u, o, p) {
1328
1328
  for (var m, r = [0], d, f = 0, l = s.length; f < l; ) {
1329
1329
  for (d = r.length; d--; r[d] *= u) ;
1330
- for (r[0] += c.indexOf(s.charAt(f++)), m = 0; m < r.length; m++)
1330
+ for (r[0] += p.indexOf(s.charAt(f++)), m = 0; m < r.length; m++)
1331
1331
  r[m] > o - 1 && (r[m + 1] == null && (r[m + 1] = 0), r[m + 1] += r[m] / o | 0, r[m] %= o);
1332
1332
  }
1333
1333
  return r.reverse();
1334
1334
  }
1335
- return function(s, u, o, c, m) {
1335
+ return function(s, u, o, p, m) {
1336
1336
  var r, d, f, l, h, F, D, O, N = s.indexOf("."), L = E, _ = x;
1337
1337
  for (N >= 0 && (l = I, I = 0, s = s.replace(".", ""), O = new b(u), F = O.pow(s.length - N), I = l, O.c = a(
1338
- oe(Q(F.c), F.e, "0"),
1338
+ oe(Y(F.c), F.e, "0"),
1339
1339
  10,
1340
1340
  o,
1341
1341
  t
1342
1342
  ), O.e = O.c.length), D = a(s, u, o, m ? (r = ae, t) : (r = t, ae)), f = l = D.length; D[--l] == 0; D.pop()) ;
1343
1343
  if (!D[0]) return r.charAt(0);
1344
- if (N < 0 ? --f : (F.c = D, F.e = f, F.s = c, F = n(F, O, L, _, o), D = F.c, h = F.r, f = F.e), d = f + L + 1, N = D[d], l = o / 2, h = h || d < 0 || D[d + 1] != null, h = _ < 4 ? (N != null || h) && (_ == 0 || _ == (F.s < 0 ? 3 : 2)) : N > l || N == l && (_ == 4 || h || _ == 6 && D[d - 1] & 1 || _ == (F.s < 0 ? 8 : 7)), d < 1 || !D[0])
1344
+ if (N < 0 ? --f : (F.c = D, F.e = f, F.s = p, F = n(F, O, L, _, o), D = F.c, h = F.r, f = F.e), d = f + L + 1, N = D[d], l = o / 2, h = h || d < 0 || D[d + 1] != null, h = _ < 4 ? (N != null || h) && (_ == 0 || _ == (F.s < 0 ? 3 : 2)) : N > l || N == l && (_ == 4 || h || _ == 6 && D[d - 1] & 1 || _ == (F.s < 0 ? 8 : 7)), d < 1 || !D[0])
1345
1345
  s = h ? oe(r.charAt(1), -L, r.charAt(0)) : r.charAt(0);
1346
1346
  else {
1347
1347
  if (D.length = d, h)
@@ -1354,145 +1354,145 @@ function Ye(e) {
1354
1354
  return s;
1355
1355
  };
1356
1356
  })(), n = /* @__PURE__ */ (function() {
1357
- function t(u, o, c) {
1357
+ function t(u, o, p) {
1358
1358
  var m, r, d, f, l = 0, h = u.length, F = o % ce, D = o / ce | 0;
1359
1359
  for (u = u.slice(); h--; )
1360
- d = u[h] % ce, f = u[h] / ce | 0, m = D * d + f * F, r = F * d + m % ce * ce + l, l = (r / c | 0) + (m / ce | 0) + D * f, u[h] = r % c;
1360
+ d = u[h] % ce, f = u[h] / ce | 0, m = D * d + f * F, r = F * d + m % ce * ce + l, l = (r / p | 0) + (m / ce | 0) + D * f, u[h] = r % p;
1361
1361
  return l && (u = [l].concat(u)), u;
1362
1362
  }
1363
- function a(u, o, c, m) {
1363
+ function a(u, o, p, m) {
1364
1364
  var r, d;
1365
- if (c != m)
1366
- d = c > m ? 1 : -1;
1365
+ if (p != m)
1366
+ d = p > m ? 1 : -1;
1367
1367
  else
1368
- for (r = d = 0; r < c; r++)
1368
+ for (r = d = 0; r < p; r++)
1369
1369
  if (u[r] != o[r]) {
1370
1370
  d = u[r] > o[r] ? 1 : -1;
1371
1371
  break;
1372
1372
  }
1373
1373
  return d;
1374
1374
  }
1375
- function s(u, o, c, m) {
1376
- for (var r = 0; c--; )
1377
- u[c] -= r, r = u[c] < o[c] ? 1 : 0, u[c] = r * m + u[c] - o[c];
1375
+ function s(u, o, p, m) {
1376
+ for (var r = 0; p--; )
1377
+ u[p] -= r, r = u[p] < o[p] ? 1 : 0, u[p] = r * m + u[p] - o[p];
1378
1378
  for (; !u[0] && u.length > 1; u.splice(0, 1)) ;
1379
1379
  }
1380
- return function(u, o, c, m, r) {
1381
- var d, f, l, h, F, D, O, N, L, _, v, W, xe, ke, Se, se, ye, Y = u.s == o.s ? 1 : -1, $ = u.c, M = o.c;
1380
+ return function(u, o, p, m, r) {
1381
+ var d, f, l, h, F, D, O, N, L, _, v, W, Te, ke, Se, se, he, Q = u.s == o.s ? 1 : -1, $ = u.c, M = o.c;
1382
1382
  if (!$ || !$[0] || !M || !M[0])
1383
1383
  return new b(
1384
1384
  // Return NaN if either NaN, or both Infinity or 0.
1385
1385
  !u.s || !o.s || ($ ? M && $[0] == M[0] : !M) ? NaN : (
1386
1386
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
1387
- $ && $[0] == 0 || !M ? Y * 0 : Y / 0
1387
+ $ && $[0] == 0 || !M ? Q * 0 : Q / 0
1388
1388
  )
1389
1389
  );
1390
- for (N = new b(Y), L = N.c = [], f = u.e - o.e, Y = c + f + 1, r || (r = te, f = ee(u.e / S) - ee(o.e / S), Y = Y / S | 0), l = 0; M[l] == ($[l] || 0); l++) ;
1391
- if (M[l] > ($[l] || 0) && f--, Y < 0)
1390
+ for (N = new b(Q), L = N.c = [], f = u.e - o.e, Q = p + f + 1, r || (r = ee, f = J(u.e / S) - J(o.e / S), Q = Q / S | 0), l = 0; M[l] == ($[l] || 0); l++) ;
1391
+ if (M[l] > ($[l] || 0) && f--, Q < 0)
1392
1392
  L.push(1), h = !0;
1393
1393
  else {
1394
- for (ke = $.length, se = M.length, l = 0, Y += 2, F = J(r / (M[0] + 1)), F > 1 && (M = t(M, F, r), $ = t($, F, r), se = M.length, ke = $.length), xe = se, _ = $.slice(0, se), v = _.length; v < se; _[v++] = 0) ;
1395
- ye = M.slice(), ye = [0].concat(ye), Se = M[0], M[1] >= r / 2 && Se++;
1394
+ for (ke = $.length, se = M.length, l = 0, Q += 2, F = Z(r / (M[0] + 1)), F > 1 && (M = t(M, F, r), $ = t($, F, r), se = M.length, ke = $.length), Te = se, _ = $.slice(0, se), v = _.length; v < se; _[v++] = 0) ;
1395
+ he = M.slice(), he = [0].concat(he), Se = M[0], M[1] >= r / 2 && Se++;
1396
1396
  do {
1397
1397
  if (F = 0, d = a(M, _, se, v), d < 0) {
1398
- if (W = _[0], se != v && (W = W * r + (_[1] || 0)), F = J(W / Se), F > 1)
1398
+ if (W = _[0], se != v && (W = W * r + (_[1] || 0)), F = Z(W / Se), F > 1)
1399
1399
  for (F >= r && (F = r - 1), D = t(M, F, r), O = D.length, v = _.length; a(D, _, O, v) == 1; )
1400
- F--, s(D, se < O ? ye : M, O, r), O = D.length, d = 1;
1400
+ F--, s(D, se < O ? he : M, O, r), O = D.length, d = 1;
1401
1401
  else
1402
1402
  F == 0 && (d = F = 1), D = M.slice(), O = D.length;
1403
1403
  if (O < v && (D = [0].concat(D)), s(_, D, v, r), v = _.length, d == -1)
1404
1404
  for (; a(M, _, se, v) < 1; )
1405
- F++, s(_, se < v ? ye : M, v, r), v = _.length;
1405
+ F++, s(_, se < v ? he : M, v, r), v = _.length;
1406
1406
  } else d === 0 && (F++, _ = [0]);
1407
- L[l++] = F, _[0] ? _[v++] = $[xe] || 0 : (_ = [$[xe]], v = 1);
1408
- } while ((xe++ < ke || _[0] != null) && Y--);
1407
+ L[l++] = F, _[0] ? _[v++] = $[Te] || 0 : (_ = [$[Te]], v = 1);
1408
+ } while ((Te++ < ke || _[0] != null) && Q--);
1409
1409
  h = _[0] != null, L[0] || L.splice(0, 1);
1410
1410
  }
1411
- if (r == te) {
1412
- for (l = 1, Y = L[0]; Y >= 10; Y /= 10, l++) ;
1413
- X(N, c + (N.e = l + f * S - 1) + 1, m, h);
1411
+ if (r == ee) {
1412
+ for (l = 1, Q = L[0]; Q >= 10; Q /= 10, l++) ;
1413
+ j(N, p + (N.e = l + f * S - 1) + 1, m, h);
1414
1414
  } else
1415
1415
  N.e = f, N.r = +h;
1416
1416
  return N;
1417
1417
  };
1418
1418
  })();
1419
- function me(t, a, s, u) {
1420
- var o, c, m, r, d;
1419
+ function ye(t, a, s, u) {
1420
+ var o, p, m, r, d;
1421
1421
  if (s == null ? s = x : P(s, 0, 8), !t.c) return t.toString();
1422
1422
  if (o = t.c[0], m = t.e, a == null)
1423
- d = Q(t.c), d = u == 1 || u == 2 && (m <= T || m >= w) ? Fe(d, m) : oe(d, m, "0");
1424
- else if (t = X(new b(t), a, s), c = t.e, d = Q(t.c), r = d.length, u == 1 || u == 2 && (a <= c || c <= T)) {
1423
+ d = Y(t.c), d = u == 1 || u == 2 && (m <= T || m >= w) ? Ce(d, m) : oe(d, m, "0");
1424
+ else if (t = j(new b(t), a, s), p = t.e, d = Y(t.c), r = d.length, u == 1 || u == 2 && (a <= p || p <= T)) {
1425
1425
  for (; r < a; d += "0", r++) ;
1426
- d = Fe(d, c);
1427
- } else if (a -= m + (u === 2 && c > m), d = oe(d, c, "0"), c + 1 > r) {
1426
+ d = Ce(d, p);
1427
+ } else if (a -= m + (u === 2 && p > m), d = oe(d, p, "0"), p + 1 > r) {
1428
1428
  if (--a > 0) for (d += "."; a--; d += "0") ;
1429
- } else if (a += c - r, a > 0)
1430
- for (c + 1 == r && (d += "."); a--; d += "0") ;
1429
+ } else if (a += p - r, a > 0)
1430
+ for (p + 1 == r && (d += "."); a--; d += "0") ;
1431
1431
  return t.s < 0 && o ? "-" + d : d;
1432
1432
  }
1433
- function Ee(t, a) {
1434
- for (var s, u, o = 1, c = new b(t[0]); o < t.length; o++)
1435
- u = new b(t[o]), (!u.s || (s = le(c, u)) === a || s === 0 && c.s === a) && (c = u);
1436
- return c;
1433
+ function ge(t, a) {
1434
+ for (var s, u, o = 1, p = new b(t[0]); o < t.length; o++)
1435
+ u = new b(t[o]), (!u.s || (s = le(p, u)) === a || s === 0 && p.s === a) && (p = u);
1436
+ return p;
1437
1437
  }
1438
- function ge(t, a, s) {
1438
+ function xe(t, a, s) {
1439
1439
  for (var u = 1, o = a.length; !a[--o]; a.pop()) ;
1440
1440
  for (o = a[0]; o >= 10; o /= 10, u++) ;
1441
1441
  return (s = u + s * S - 1) > C ? t.c = t.e = null : s < B ? t.c = [t.e = 0] : (t.e = s, t.c = a), t;
1442
1442
  }
1443
1443
  y = /* @__PURE__ */ (function() {
1444
1444
  var t = /^(-?)0([xbo])(?=\w[\w.]*$)/i, a = /^([^.]+)\.$/, s = /^\.([^.]+)$/, u = /^-?(Infinity|NaN)$/, o = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
1445
- return function(c, m, r, d) {
1445
+ return function(p, m, r, d) {
1446
1446
  var f, l = r ? m : m.replace(o, "");
1447
1447
  if (u.test(l))
1448
- c.s = isNaN(l) ? null : l < 0 ? -1 : 1;
1448
+ p.s = isNaN(l) ? null : l < 0 ? -1 : 1;
1449
1449
  else {
1450
1450
  if (!r && (l = l.replace(t, function(h, F, D) {
1451
1451
  return f = (D = D.toLowerCase()) == "x" ? 16 : D == "b" ? 2 : 8, !d || d == f ? F : h;
1452
1452
  }), d && (f = d, l = l.replace(a, "$1").replace(s, "0.$1")), m != l))
1453
1453
  return new b(l, f);
1454
1454
  if (b.DEBUG)
1455
- throw Error(q + "Not a" + (d ? " base " + d : "") + " number: " + m);
1456
- c.s = null;
1455
+ throw Error(X + "Not a" + (d ? " base " + d : "") + " number: " + m);
1456
+ p.s = null;
1457
1457
  }
1458
- c.c = c.e = null;
1458
+ p.c = p.e = null;
1459
1459
  };
1460
1460
  })();
1461
- function X(t, a, s, u) {
1462
- var o, c, m, r, d, f, l, h = t.c, F = Oe;
1461
+ function j(t, a, s, u) {
1462
+ var o, p, m, r, d, f, l, h = t.c, F = Oe;
1463
1463
  if (h) {
1464
1464
  e: {
1465
1465
  for (o = 1, r = h[0]; r >= 10; r /= 10, o++) ;
1466
- if (c = a - o, c < 0)
1467
- c += S, m = a, d = h[f = 0], l = J(d / F[o - m - 1] % 10);
1468
- else if (f = Be((c + 1) / S), f >= h.length)
1466
+ if (p = a - o, p < 0)
1467
+ p += S, m = a, d = h[f = 0], l = Z(d / F[o - m - 1] % 10);
1468
+ else if (f = Be((p + 1) / S), f >= h.length)
1469
1469
  if (u) {
1470
1470
  for (; h.length <= f; h.push(0)) ;
1471
- d = l = 0, o = 1, c %= S, m = c - S + 1;
1471
+ d = l = 0, o = 1, p %= S, m = p - S + 1;
1472
1472
  } else
1473
1473
  break e;
1474
1474
  else {
1475
1475
  for (d = r = h[f], o = 1; r >= 10; r /= 10, o++) ;
1476
- c %= S, m = c - S + o, l = m < 0 ? 0 : J(d / F[o - m - 1] % 10);
1476
+ p %= S, m = p - S + o, l = m < 0 ? 0 : Z(d / F[o - m - 1] % 10);
1477
1477
  }
1478
1478
  if (u = u || a < 0 || // Are there any non-zero digits after the rounding digit?
1479
1479
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
1480
1480
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
1481
1481
  h[f + 1] != null || (m < 0 ? d : d % F[o - m - 1]), u = s < 4 ? (l || u) && (s == 0 || s == (t.s < 0 ? 3 : 2)) : l > 5 || l == 5 && (s == 4 || u || s == 6 && // Check whether the digit to the left of the rounding digit is odd.
1482
- (c > 0 ? m > 0 ? d / F[o - m] : 0 : h[f - 1]) % 10 & 1 || s == (t.s < 0 ? 8 : 7)), a < 1 || !h[0])
1482
+ (p > 0 ? m > 0 ? d / F[o - m] : 0 : h[f - 1]) % 10 & 1 || s == (t.s < 0 ? 8 : 7)), a < 1 || !h[0])
1483
1483
  return h.length = 0, u ? (a -= t.e + 1, h[0] = F[(S - a % S) % S], t.e = -a || 0) : h[0] = t.e = 0, t;
1484
- if (c == 0 ? (h.length = f, r = 1, f--) : (h.length = f + 1, r = F[S - c], h[f] = m > 0 ? J(d / F[o - m] % F[m]) * r : 0), u)
1484
+ if (p == 0 ? (h.length = f, r = 1, f--) : (h.length = f + 1, r = F[S - p], h[f] = m > 0 ? Z(d / F[o - m] % F[m]) * r : 0), u)
1485
1485
  for (; ; )
1486
1486
  if (f == 0) {
1487
- for (c = 1, m = h[0]; m >= 10; m /= 10, c++) ;
1487
+ for (p = 1, m = h[0]; m >= 10; m /= 10, p++) ;
1488
1488
  for (m = h[0] += r, r = 1; m >= 10; m /= 10, r++) ;
1489
- c != r && (t.e++, h[0] == te && (h[0] = 1));
1489
+ p != r && (t.e++, h[0] == ee && (h[0] = 1));
1490
1490
  break;
1491
1491
  } else {
1492
- if (h[f] += r, h[f] != te) break;
1492
+ if (h[f] += r, h[f] != ee) break;
1493
1493
  h[f--] = 0, r = 1;
1494
1494
  }
1495
- for (c = h.length; h[--c] === 0; h.pop()) ;
1495
+ for (p = h.length; h[--p] === 0; h.pop()) ;
1496
1496
  }
1497
1497
  t.e > C ? t.c = t.e = null : t.e < B && (t.c = [t.e = 0]);
1498
1498
  }
@@ -1500,82 +1500,82 @@ function Ye(e) {
1500
1500
  }
1501
1501
  function ie(t) {
1502
1502
  var a, s = t.e;
1503
- return s === null ? t.toString() : (a = Q(t.c), a = s <= T || s >= w ? Fe(a, s) : oe(a, s, "0"), t.s < 0 ? "-" + a : a);
1503
+ return s === null ? t.toString() : (a = Y(t.c), a = s <= T || s >= w ? Ce(a, s) : oe(a, s, "0"), t.s < 0 ? "-" + a : a);
1504
1504
  }
1505
- return p.absoluteValue = p.abs = function() {
1505
+ return c.absoluteValue = c.abs = function() {
1506
1506
  var t = new b(this);
1507
1507
  return t.s < 0 && (t.s = 1), t;
1508
- }, p.comparedTo = function(t, a) {
1508
+ }, c.comparedTo = function(t, a) {
1509
1509
  return le(this, new b(t, a));
1510
- }, p.decimalPlaces = p.dp = function(t, a) {
1511
- var s, u, o, c = this;
1510
+ }, c.decimalPlaces = c.dp = function(t, a) {
1511
+ var s, u, o, p = this;
1512
1512
  if (t != null)
1513
- return P(t, 0, V), a == null ? a = x : P(a, 0, 8), X(new b(c), t + c.e + 1, a);
1514
- if (!(s = c.c)) return null;
1515
- if (u = ((o = s.length - 1) - ee(this.e / S)) * S, o = s[o]) for (; o % 10 == 0; o /= 10, u--) ;
1513
+ return P(t, 0, V), a == null ? a = x : P(a, 0, 8), j(new b(p), t + p.e + 1, a);
1514
+ if (!(s = p.c)) return null;
1515
+ if (u = ((o = s.length - 1) - J(this.e / S)) * S, o = s[o]) for (; o % 10 == 0; o /= 10, u--) ;
1516
1516
  return u < 0 && (u = 0), u;
1517
- }, p.dividedBy = p.div = function(t, a) {
1517
+ }, c.dividedBy = c.div = function(t, a) {
1518
1518
  return n(this, new b(t, a), E, x);
1519
- }, p.dividedToIntegerBy = p.idiv = function(t, a) {
1519
+ }, c.dividedToIntegerBy = c.idiv = function(t, a) {
1520
1520
  return n(this, new b(t, a), 0, 1);
1521
- }, p.exponentiatedBy = p.pow = function(t, a) {
1522
- var s, u, o, c, m, r, d, f, l, h = this;
1521
+ }, c.exponentiatedBy = c.pow = function(t, a) {
1522
+ var s, u, o, p, m, r, d, f, l, h = this;
1523
1523
  if (t = new b(t), t.c && !t.isInteger())
1524
- throw Error(q + "Exponent not an integer: " + ie(t));
1524
+ throw Error(X + "Exponent not an integer: " + ie(t));
1525
1525
  if (a != null && (a = new b(a)), r = t.e > 14, !h.c || !h.c[0] || h.c[0] == 1 && !h.e && h.c.length == 1 || !t.c || !t.c[0])
1526
- return l = new b(Math.pow(+ie(h), r ? t.s * (2 - we(t)) : +ie(t))), a ? l.mod(a) : l;
1526
+ return l = new b(Math.pow(+ie(h), r ? t.s * (2 - Fe(t)) : +ie(t))), a ? l.mod(a) : l;
1527
1527
  if (d = t.s < 0, a) {
1528
1528
  if (a.c ? !a.c[0] : !a.s) return new b(NaN);
1529
1529
  u = !d && h.isInteger() && a.isInteger(), u && (h = h.mod(a));
1530
1530
  } else {
1531
1531
  if (t.e > 9 && (h.e > 0 || h.e < -1 || (h.e == 0 ? h.c[0] > 1 || r && h.c[1] >= 24e7 : h.c[0] < 8e13 || r && h.c[0] <= 9999975e7)))
1532
- return c = h.s < 0 && we(t) ? -0 : 0, h.e > -1 && (c = 1 / c), new b(d ? 1 / c : c);
1533
- I && (c = Be(I / S + 2));
1532
+ return p = h.s < 0 && Fe(t) ? -0 : 0, h.e > -1 && (p = 1 / p), new b(d ? 1 / p : p);
1533
+ I && (p = Be(I / S + 2));
1534
1534
  }
1535
- for (r ? (s = new b(0.5), d && (t.s = 1), f = we(t)) : (o = Math.abs(+ie(t)), f = o % 2), l = new b(A); ; ) {
1535
+ for (r ? (s = new b(0.5), d && (t.s = 1), f = Fe(t)) : (o = Math.abs(+ie(t)), f = o % 2), l = new b(A); ; ) {
1536
1536
  if (f) {
1537
1537
  if (l = l.times(h), !l.c) break;
1538
- c ? l.c.length > c && (l.c.length = c) : u && (l = l.mod(a));
1538
+ p ? l.c.length > p && (l.c.length = p) : u && (l = l.mod(a));
1539
1539
  }
1540
1540
  if (o) {
1541
- if (o = J(o / 2), o === 0) break;
1541
+ if (o = Z(o / 2), o === 0) break;
1542
1542
  f = o % 2;
1543
- } else if (t = t.times(s), X(t, t.e + 1, 1), t.e > 14)
1544
- f = we(t);
1543
+ } else if (t = t.times(s), j(t, t.e + 1, 1), t.e > 14)
1544
+ f = Fe(t);
1545
1545
  else {
1546
1546
  if (o = +ie(t), o === 0) break;
1547
1547
  f = o % 2;
1548
1548
  }
1549
- h = h.times(h), c ? h.c && h.c.length > c && (h.c.length = c) : u && (h = h.mod(a));
1549
+ h = h.times(h), p ? h.c && h.c.length > p && (h.c.length = p) : u && (h = h.mod(a));
1550
1550
  }
1551
- return u ? l : (d && (l = A.div(l)), a ? l.mod(a) : c ? X(l, I, x, m) : l);
1552
- }, p.integerValue = function(t) {
1551
+ return u ? l : (d && (l = A.div(l)), a ? l.mod(a) : p ? j(l, I, x, m) : l);
1552
+ }, c.integerValue = function(t) {
1553
1553
  var a = new b(this);
1554
- return t == null ? t = x : P(t, 0, 8), X(a, a.e + 1, t);
1555
- }, p.isEqualTo = p.eq = function(t, a) {
1554
+ return t == null ? t = x : P(t, 0, 8), j(a, a.e + 1, t);
1555
+ }, c.isEqualTo = c.eq = function(t, a) {
1556
1556
  return le(this, new b(t, a)) === 0;
1557
- }, p.isFinite = function() {
1557
+ }, c.isFinite = function() {
1558
1558
  return !!this.c;
1559
- }, p.isGreaterThan = p.gt = function(t, a) {
1559
+ }, c.isGreaterThan = c.gt = function(t, a) {
1560
1560
  return le(this, new b(t, a)) > 0;
1561
- }, p.isGreaterThanOrEqualTo = p.gte = function(t, a) {
1561
+ }, c.isGreaterThanOrEqualTo = c.gte = function(t, a) {
1562
1562
  return (a = le(this, new b(t, a))) === 1 || a === 0;
1563
- }, p.isInteger = function() {
1564
- return !!this.c && ee(this.e / S) > this.c.length - 2;
1565
- }, p.isLessThan = p.lt = function(t, a) {
1563
+ }, c.isInteger = function() {
1564
+ return !!this.c && J(this.e / S) > this.c.length - 2;
1565
+ }, c.isLessThan = c.lt = function(t, a) {
1566
1566
  return le(this, new b(t, a)) < 0;
1567
- }, p.isLessThanOrEqualTo = p.lte = function(t, a) {
1567
+ }, c.isLessThanOrEqualTo = c.lte = function(t, a) {
1568
1568
  return (a = le(this, new b(t, a))) === -1 || a === 0;
1569
- }, p.isNaN = function() {
1569
+ }, c.isNaN = function() {
1570
1570
  return !this.s;
1571
- }, p.isNegative = function() {
1571
+ }, c.isNegative = function() {
1572
1572
  return this.s < 0;
1573
- }, p.isPositive = function() {
1573
+ }, c.isPositive = function() {
1574
1574
  return this.s > 0;
1575
- }, p.isZero = function() {
1575
+ }, c.isZero = function() {
1576
1576
  return !!this.c && this.c[0] == 0;
1577
- }, p.minus = function(t, a) {
1578
- var s, u, o, c, m = this, r = m.s;
1577
+ }, c.minus = function(t, a) {
1578
+ var s, u, o, p, m = this, r = m.s;
1579
1579
  if (t = new b(t, a), a = t.s, !r || !a) return new b(NaN);
1580
1580
  if (r != a)
1581
1581
  return t.s = -a, m.plus(t);
@@ -1588,105 +1588,105 @@ function Ye(e) {
1588
1588
  x == 3 ? -0 : 0
1589
1589
  ));
1590
1590
  }
1591
- if (d = ee(d), f = ee(f), l = l.slice(), r = d - f) {
1592
- for ((c = r < 0) ? (r = -r, o = l) : (f = d, o = h), o.reverse(), a = r; a--; o.push(0)) ;
1591
+ if (d = J(d), f = J(f), l = l.slice(), r = d - f) {
1592
+ for ((p = r < 0) ? (r = -r, o = l) : (f = d, o = h), o.reverse(), a = r; a--; o.push(0)) ;
1593
1593
  o.reverse();
1594
1594
  } else
1595
- for (u = (c = (r = l.length) < (a = h.length)) ? r : a, r = a = 0; a < u; a++)
1595
+ for (u = (p = (r = l.length) < (a = h.length)) ? r : a, r = a = 0; a < u; a++)
1596
1596
  if (l[a] != h[a]) {
1597
- c = l[a] < h[a];
1597
+ p = l[a] < h[a];
1598
1598
  break;
1599
1599
  }
1600
- if (c && (o = l, l = h, h = o, t.s = -t.s), a = (u = h.length) - (s = l.length), a > 0) for (; a--; l[s++] = 0) ;
1601
- for (a = te - 1; u > r; ) {
1600
+ if (p && (o = l, l = h, h = o, t.s = -t.s), a = (u = h.length) - (s = l.length), a > 0) for (; a--; l[s++] = 0) ;
1601
+ for (a = ee - 1; u > r; ) {
1602
1602
  if (l[--u] < h[u]) {
1603
1603
  for (s = u; s && !l[--s]; l[s] = a) ;
1604
- --l[s], l[u] += te;
1604
+ --l[s], l[u] += ee;
1605
1605
  }
1606
1606
  l[u] -= h[u];
1607
1607
  }
1608
1608
  for (; l[0] == 0; l.splice(0, 1), --f) ;
1609
- return l[0] ? ge(t, l, f) : (t.s = x == 3 ? -1 : 1, t.c = [t.e = 0], t);
1610
- }, p.modulo = p.mod = function(t, a) {
1609
+ return l[0] ? xe(t, l, f) : (t.s = x == 3 ? -1 : 1, t.c = [t.e = 0], t);
1610
+ }, c.modulo = c.mod = function(t, a) {
1611
1611
  var s, u, o = this;
1612
1612
  return t = new b(t, a), !o.c || !t.s || t.c && !t.c[0] ? new b(NaN) : !t.c || o.c && !o.c[0] ? new b(o) : (R == 9 ? (u = t.s, t.s = 1, s = n(o, t, 0, 3), t.s = u, s.s *= u) : s = n(o, t, 0, R), t = o.minus(s.times(t)), !t.c[0] && R == 1 && (t.s = o.s), t);
1613
- }, p.multipliedBy = p.times = function(t, a) {
1614
- var s, u, o, c, m, r, d, f, l, h, F, D, O, N, L, _ = this, v = _.c, W = (t = new b(t, a)).c;
1613
+ }, c.multipliedBy = c.times = function(t, a) {
1614
+ var s, u, o, p, m, r, d, f, l, h, F, D, O, N, L, _ = this, v = _.c, W = (t = new b(t, a)).c;
1615
1615
  if (!v || !W || !v[0] || !W[0])
1616
1616
  return !_.s || !t.s || v && !v[0] && !W || W && !W[0] && !v ? t.c = t.e = t.s = null : (t.s *= _.s, !v || !W ? t.c = t.e = null : (t.c = [0], t.e = 0)), t;
1617
- for (u = ee(_.e / S) + ee(t.e / S), t.s *= _.s, d = v.length, h = W.length, d < h && (O = v, v = W, W = O, o = d, d = h, h = o), o = d + h, O = []; o--; O.push(0)) ;
1618
- for (N = te, L = ce, o = h; --o >= 0; ) {
1619
- for (s = 0, F = W[o] % L, D = W[o] / L | 0, m = d, c = o + m; c > o; )
1620
- f = v[--m] % L, l = v[m] / L | 0, r = D * f + l * F, f = F * f + r % L * L + O[c] + s, s = (f / N | 0) + (r / L | 0) + D * l, O[c--] = f % N;
1621
- O[c] = s;
1617
+ for (u = J(_.e / S) + J(t.e / S), t.s *= _.s, d = v.length, h = W.length, d < h && (O = v, v = W, W = O, o = d, d = h, h = o), o = d + h, O = []; o--; O.push(0)) ;
1618
+ for (N = ee, L = ce, o = h; --o >= 0; ) {
1619
+ for (s = 0, F = W[o] % L, D = W[o] / L | 0, m = d, p = o + m; p > o; )
1620
+ f = v[--m] % L, l = v[m] / L | 0, r = D * f + l * F, f = F * f + r % L * L + O[p] + s, s = (f / N | 0) + (r / L | 0) + D * l, O[p--] = f % N;
1621
+ O[p] = s;
1622
1622
  }
1623
- return s ? ++u : O.splice(0, 1), ge(t, O, u);
1624
- }, p.negated = function() {
1623
+ return s ? ++u : O.splice(0, 1), xe(t, O, u);
1624
+ }, c.negated = function() {
1625
1625
  var t = new b(this);
1626
1626
  return t.s = -t.s || null, t;
1627
- }, p.plus = function(t, a) {
1627
+ }, c.plus = function(t, a) {
1628
1628
  var s, u = this, o = u.s;
1629
1629
  if (t = new b(t, a), a = t.s, !o || !a) return new b(NaN);
1630
1630
  if (o != a)
1631
1631
  return t.s = -a, u.minus(t);
1632
- var c = u.e / S, m = t.e / S, r = u.c, d = t.c;
1633
- if (!c || !m) {
1632
+ var p = u.e / S, m = t.e / S, r = u.c, d = t.c;
1633
+ if (!p || !m) {
1634
1634
  if (!r || !d) return new b(o / 0);
1635
1635
  if (!r[0] || !d[0]) return d[0] ? t : new b(r[0] ? u : o * 0);
1636
1636
  }
1637
- if (c = ee(c), m = ee(m), r = r.slice(), o = c - m) {
1638
- for (o > 0 ? (m = c, s = d) : (o = -o, s = r), s.reverse(); o--; s.push(0)) ;
1637
+ if (p = J(p), m = J(m), r = r.slice(), o = p - m) {
1638
+ for (o > 0 ? (m = p, s = d) : (o = -o, s = r), s.reverse(); o--; s.push(0)) ;
1639
1639
  s.reverse();
1640
1640
  }
1641
1641
  for (o = r.length, a = d.length, o - a < 0 && (s = d, d = r, r = s, a = o), o = 0; a; )
1642
- o = (r[--a] = r[a] + d[a] + o) / te | 0, r[a] = te === r[a] ? 0 : r[a] % te;
1643
- return o && (r = [o].concat(r), ++m), ge(t, r, m);
1644
- }, p.precision = p.sd = function(t, a) {
1645
- var s, u, o, c = this;
1642
+ o = (r[--a] = r[a] + d[a] + o) / ee | 0, r[a] = ee === r[a] ? 0 : r[a] % ee;
1643
+ return o && (r = [o].concat(r), ++m), xe(t, r, m);
1644
+ }, c.precision = c.sd = function(t, a) {
1645
+ var s, u, o, p = this;
1646
1646
  if (t != null && t !== !!t)
1647
- return P(t, 1, V), a == null ? a = x : P(a, 0, 8), X(new b(c), t, a);
1648
- if (!(s = c.c)) return null;
1647
+ return P(t, 1, V), a == null ? a = x : P(a, 0, 8), j(new b(p), t, a);
1648
+ if (!(s = p.c)) return null;
1649
1649
  if (o = s.length - 1, u = o * S + 1, o = s[o]) {
1650
1650
  for (; o % 10 == 0; o /= 10, u--) ;
1651
1651
  for (o = s[0]; o >= 10; o /= 10, u++) ;
1652
1652
  }
1653
- return t && c.e + 1 > u && (u = c.e + 1), u;
1654
- }, p.shiftedBy = function(t) {
1653
+ return t && p.e + 1 > u && (u = p.e + 1), u;
1654
+ }, c.shiftedBy = function(t) {
1655
1655
  return P(t, -_e, _e), this.times("1e" + t);
1656
- }, p.squareRoot = p.sqrt = function() {
1657
- var t, a, s, u, o, c = this, m = c.c, r = c.s, d = c.e, f = E + 4, l = new b("0.5");
1656
+ }, c.squareRoot = c.sqrt = function() {
1657
+ var t, a, s, u, o, p = this, m = p.c, r = p.s, d = p.e, f = E + 4, l = new b("0.5");
1658
1658
  if (r !== 1 || !m || !m[0])
1659
- return new b(!r || r < 0 && (!m || m[0]) ? NaN : m ? c : 1 / 0);
1660
- if (r = Math.sqrt(+ie(c)), r == 0 || r == 1 / 0 ? (a = Q(m), (a.length + d) % 2 == 0 && (a += "0"), r = Math.sqrt(+a), d = ee((d + 1) / 2) - (d < 0 || d % 2), r == 1 / 0 ? a = "5e" + d : (a = r.toExponential(), a = a.slice(0, a.indexOf("e") + 1) + d), s = new b(a)) : s = new b(r + ""), s.c[0]) {
1659
+ return new b(!r || r < 0 && (!m || m[0]) ? NaN : m ? p : 1 / 0);
1660
+ if (r = Math.sqrt(+ie(p)), r == 0 || r == 1 / 0 ? (a = Y(m), (a.length + d) % 2 == 0 && (a += "0"), r = Math.sqrt(+a), d = J((d + 1) / 2) - (d < 0 || d % 2), r == 1 / 0 ? a = "5e" + d : (a = r.toExponential(), a = a.slice(0, a.indexOf("e") + 1) + d), s = new b(a)) : s = new b(r + ""), s.c[0]) {
1661
1661
  for (d = s.e, r = d + f, r < 3 && (r = 0); ; )
1662
- if (o = s, s = l.times(o.plus(n(c, o, f, 1))), Q(o.c).slice(0, r) === (a = Q(s.c)).slice(0, r))
1662
+ if (o = s, s = l.times(o.plus(n(p, o, f, 1))), Y(o.c).slice(0, r) === (a = Y(s.c)).slice(0, r))
1663
1663
  if (s.e < d && --r, a = a.slice(r - 3, r + 1), a == "9999" || !u && a == "4999") {
1664
- if (!u && (X(o, o.e + E + 2, 0), o.times(o).eq(c))) {
1664
+ if (!u && (j(o, o.e + E + 2, 0), o.times(o).eq(p))) {
1665
1665
  s = o;
1666
1666
  break;
1667
1667
  }
1668
1668
  f += 4, r += 4, u = 1;
1669
1669
  } else {
1670
- (!+a || !+a.slice(1) && a.charAt(0) == "5") && (X(s, s.e + E + 2, 1), t = !s.times(s).eq(c));
1670
+ (!+a || !+a.slice(1) && a.charAt(0) == "5") && (j(s, s.e + E + 2, 1), t = !s.times(s).eq(p));
1671
1671
  break;
1672
1672
  }
1673
1673
  }
1674
- return X(s, s.e + E + 1, x, t);
1675
- }, p.toExponential = function(t, a) {
1676
- return t != null && (P(t, 0, V), t++), me(this, t, a, 1);
1677
- }, p.toFixed = function(t, a) {
1678
- return t != null && (P(t, 0, V), t = t + this.e + 1), me(this, t, a);
1679
- }, p.toFormat = function(t, a, s) {
1674
+ return j(s, s.e + E + 1, x, t);
1675
+ }, c.toExponential = function(t, a) {
1676
+ return t != null && (P(t, 0, V), t++), ye(this, t, a, 1);
1677
+ }, c.toFixed = function(t, a) {
1678
+ return t != null && (P(t, 0, V), t = t + this.e + 1), ye(this, t, a);
1679
+ }, c.toFormat = function(t, a, s) {
1680
1680
  var u, o = this;
1681
1681
  if (s == null)
1682
1682
  t != null && a && typeof a == "object" ? (s = a, a = null) : t && typeof t == "object" ? (s = t, t = a = null) : s = ue;
1683
1683
  else if (typeof s != "object")
1684
- throw Error(q + "Argument not an object: " + s);
1684
+ throw Error(X + "Argument not an object: " + s);
1685
1685
  if (u = o.toFixed(t, a), o.c) {
1686
- var c, m = u.split("."), r = +s.groupSize, d = +s.secondaryGroupSize, f = s.groupSeparator || "", l = m[0], h = m[1], F = o.s < 0, D = F ? l.slice(1) : l, O = D.length;
1687
- if (d && (c = r, r = d, d = c, O -= c), r > 0 && O > 0) {
1688
- for (c = O % r || r, l = D.substr(0, c); c < O; c += r) l += f + D.substr(c, r);
1689
- d > 0 && (l += f + D.slice(c)), F && (l = "-" + l);
1686
+ var p, m = u.split("."), r = +s.groupSize, d = +s.secondaryGroupSize, f = s.groupSeparator || "", l = m[0], h = m[1], F = o.s < 0, D = F ? l.slice(1) : l, O = D.length;
1687
+ if (d && (p = r, r = d, d = p, O -= p), r > 0 && O > 0) {
1688
+ for (p = O % r || r, l = D.substr(0, p); p < O; p += r) l += f + D.substr(p, r);
1689
+ d > 0 && (l += f + D.slice(p)), F && (l = "-" + l);
1690
1690
  }
1691
1691
  u = h ? l + (s.decimalSeparator || "") + ((d = +s.fractionGroupSize) ? h.replace(
1692
1692
  new RegExp("\\d{" + d + "}\\B", "g"),
@@ -1694,73 +1694,73 @@ function Ye(e) {
1694
1694
  ) : h) : l;
1695
1695
  }
1696
1696
  return (s.prefix || "") + u + (s.suffix || "");
1697
- }, p.toFraction = function(t) {
1698
- var a, s, u, o, c, m, r, d, f, l, h, F, D = this, O = D.c;
1697
+ }, c.toFraction = function(t) {
1698
+ var a, s, u, o, p, m, r, d, f, l, h, F, D = this, O = D.c;
1699
1699
  if (t != null && (r = new b(t), !r.isInteger() && (r.c || r.s !== 1) || r.lt(A)))
1700
- throw Error(q + "Argument " + (r.isInteger() ? "out of range: " : "not an integer: ") + ie(r));
1700
+ throw Error(X + "Argument " + (r.isInteger() ? "out of range: " : "not an integer: ") + ie(r));
1701
1701
  if (!O) return new b(D);
1702
- for (a = new b(A), f = s = new b(A), u = d = new b(A), F = Q(O), c = a.e = F.length - D.e - 1, a.c[0] = Oe[(m = c % S) < 0 ? S + m : m], t = !t || r.comparedTo(a) > 0 ? c > 0 ? a : f : r, m = C, C = 1 / 0, r = new b(F), d.c[0] = 0; l = n(r, a, 0, 1), o = s.plus(l.times(u)), o.comparedTo(t) != 1; )
1702
+ for (a = new b(A), f = s = new b(A), u = d = new b(A), F = Y(O), p = a.e = F.length - D.e - 1, a.c[0] = Oe[(m = p % S) < 0 ? S + m : m], t = !t || r.comparedTo(a) > 0 ? p > 0 ? a : f : r, m = C, C = 1 / 0, r = new b(F), d.c[0] = 0; l = n(r, a, 0, 1), o = s.plus(l.times(u)), o.comparedTo(t) != 1; )
1703
1703
  s = u, u = o, f = d.plus(l.times(o = f)), d = o, a = r.minus(l.times(o = a)), r = o;
1704
- return o = n(t.minus(s), u, 0, 1), d = d.plus(o.times(f)), s = s.plus(o.times(u)), d.s = f.s = D.s, c = c * 2, h = n(f, u, c, x).minus(D).abs().comparedTo(
1705
- n(d, s, c, x).minus(D).abs()
1704
+ return o = n(t.minus(s), u, 0, 1), d = d.plus(o.times(f)), s = s.plus(o.times(u)), d.s = f.s = D.s, p = p * 2, h = n(f, u, p, x).minus(D).abs().comparedTo(
1705
+ n(d, s, p, x).minus(D).abs()
1706
1706
  ) < 1 ? [f, u] : [d, s], C = m, h;
1707
- }, p.toNumber = function() {
1707
+ }, c.toNumber = function() {
1708
1708
  return +ie(this);
1709
- }, p.toPrecision = function(t, a) {
1710
- return t != null && P(t, 1, V), me(this, t, a, 2);
1711
- }, p.toString = function(t) {
1709
+ }, c.toPrecision = function(t, a) {
1710
+ return t != null && P(t, 1, V), ye(this, t, a, 2);
1711
+ }, c.toString = function(t) {
1712
1712
  var a, s = this, u = s.s, o = s.e;
1713
- return o === null ? u ? (a = "Infinity", u < 0 && (a = "-" + a)) : a = "NaN" : (t == null ? a = o <= T || o >= w ? Fe(Q(s.c), o) : oe(Q(s.c), o, "0") : t === 10 && fe ? (s = X(new b(s), E + o + 1, x), a = oe(Q(s.c), s.e, "0")) : (P(t, 2, ae.length, "Base"), a = i(oe(Q(s.c), o, "0"), 10, t, u, !0)), u < 0 && s.c[0] && (a = "-" + a)), a;
1714
- }, p.valueOf = p.toJSON = function() {
1713
+ return o === null ? u ? (a = "Infinity", u < 0 && (a = "-" + a)) : a = "NaN" : (t == null ? a = o <= T || o >= w ? Ce(Y(s.c), o) : oe(Y(s.c), o, "0") : t === 10 && me ? (s = j(new b(s), E + o + 1, x), a = oe(Y(s.c), s.e, "0")) : (P(t, 2, ae.length, "Base"), a = i(oe(Y(s.c), o, "0"), 10, t, u, !0)), u < 0 && s.c[0] && (a = "-" + a)), a;
1714
+ }, c.valueOf = c.toJSON = function() {
1715
1715
  return ie(this);
1716
- }, p._isBigNumber = !0, p[Symbol.toStringTag] = "BigNumber", p[Symbol.for("nodejs.util.inspect.custom")] = p.valueOf, e != null && b.set(e), b;
1716
+ }, c._isBigNumber = !0, c[Symbol.toStringTag] = "BigNumber", c[Symbol.for("nodejs.util.inspect.custom")] = c.valueOf, e != null && b.set(e), b;
1717
1717
  }
1718
- function ee(e) {
1718
+ function J(e) {
1719
1719
  var n = e | 0;
1720
1720
  return e > 0 || e === n ? n : n - 1;
1721
1721
  }
1722
- function Q(e) {
1723
- for (var n, i, y = 1, p = e.length, A = e[0] + ""; y < p; ) {
1722
+ function Y(e) {
1723
+ for (var n, i, y = 1, c = e.length, A = e[0] + ""; y < c; ) {
1724
1724
  for (n = e[y++] + "", i = S - n.length; i--; n = "0" + n) ;
1725
1725
  A += n;
1726
1726
  }
1727
- for (p = A.length; A.charCodeAt(--p) === 48; ) ;
1728
- return A.slice(0, p + 1 || 1);
1727
+ for (c = A.length; A.charCodeAt(--c) === 48; ) ;
1728
+ return A.slice(0, c + 1 || 1);
1729
1729
  }
1730
1730
  function le(e, n) {
1731
- var i, y, p = e.c, A = n.c, E = e.s, x = n.s, T = e.e, w = n.e;
1731
+ var i, y, c = e.c, A = n.c, E = e.s, x = n.s, T = e.e, w = n.e;
1732
1732
  if (!E || !x) return null;
1733
- if (i = p && !p[0], y = A && !A[0], i || y) return i ? y ? 0 : -x : E;
1733
+ if (i = c && !c[0], y = A && !A[0], i || y) return i ? y ? 0 : -x : E;
1734
1734
  if (E != x) return E;
1735
- if (i = E < 0, y = T == w, !p || !A) return y ? 0 : !p ^ i ? 1 : -1;
1735
+ if (i = E < 0, y = T == w, !c || !A) return y ? 0 : !c ^ i ? 1 : -1;
1736
1736
  if (!y) return T > w ^ i ? 1 : -1;
1737
- for (x = (T = p.length) < (w = A.length) ? T : w, E = 0; E < x; E++) if (p[E] != A[E]) return p[E] > A[E] ^ i ? 1 : -1;
1737
+ for (x = (T = c.length) < (w = A.length) ? T : w, E = 0; E < x; E++) if (c[E] != A[E]) return c[E] > A[E] ^ i ? 1 : -1;
1738
1738
  return T == w ? 0 : T > w ^ i ? 1 : -1;
1739
1739
  }
1740
1740
  function P(e, n, i, y) {
1741
- if (e < n || e > i || e !== J(e))
1742
- throw Error(q + (y || "Argument") + (typeof e == "number" ? e < n || e > i ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
1741
+ if (e < n || e > i || e !== Z(e))
1742
+ throw Error(X + (y || "Argument") + (typeof e == "number" ? e < n || e > i ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
1743
1743
  }
1744
- function we(e) {
1744
+ function Fe(e) {
1745
1745
  var n = e.c.length - 1;
1746
- return ee(e.e / S) == n && e.c[n] % 2 != 0;
1746
+ return J(e.e / S) == n && e.c[n] % 2 != 0;
1747
1747
  }
1748
- function Fe(e, n) {
1748
+ function Ce(e, n) {
1749
1749
  return (e.length > 1 ? e.charAt(0) + "." + e.slice(1) : e) + (n < 0 ? "e" : "e+") + n;
1750
1750
  }
1751
1751
  function oe(e, n, i) {
1752
- var y, p;
1752
+ var y, c;
1753
1753
  if (n < 0) {
1754
- for (p = i + "."; ++n; p += i) ;
1755
- e = p + e;
1754
+ for (c = i + "."; ++n; c += i) ;
1755
+ e = c + e;
1756
1756
  } else if (y = e.length, ++n > y) {
1757
- for (p = i, n -= y; --n; p += i) ;
1758
- e += p;
1757
+ for (c = i, n -= y; --n; c += i) ;
1758
+ e += c;
1759
1759
  } else n < y && (e = e.slice(0, n) + "." + e.slice(n));
1760
1760
  return e;
1761
1761
  }
1762
- var g = Ye();
1763
- const Ce = (e, n) => {
1762
+ var g = Qe();
1763
+ const fe = (e, n) => {
1764
1764
  if (!e || !n) return "";
1765
1765
  const i = g(10).pow(e || 0);
1766
1766
  return g(n).times(i).idiv(i).div(i).toFixed();
@@ -1772,7 +1772,7 @@ g(1e18);
1772
1772
  function De(e, n) {
1773
1773
  return e == n || e.toLowerCase() == n.toLowerCase();
1774
1774
  }
1775
- const In = (e) => !!Xt.find((n) => De(n, e || ""));
1775
+ const In = (e) => !!jt.find((n) => De(n, e || ""));
1776
1776
  function $t(e) {
1777
1777
  return [
1778
1778
  ne.Years,
@@ -1785,54 +1785,58 @@ function $t(e) {
1785
1785
  }
1786
1786
  const pe = (e) => e ? e.value * e.unit : 0, Ht = (e) => !e || e === "NaN" ? "0" : g(e).decimalPlaces(0).toFixed(), Pn = (e) => Object.values(K).find((n) => n.id === e), Kt = (e) => {
1787
1787
  if (!e) return;
1788
- const n = e.map((A) => G(A)), i = Object.entries(Yt).filter(([A]) => n.includes(A)).flatMap(([, A]) => A), y = e.map((A) => A.exchangeAddress), p = new Set(
1788
+ const n = e.map((A) => G(A)), i = Object.entries(Qt).filter(([A]) => n.includes(A)).flatMap(([, A]) => A), y = e.map((A) => A.exchangeAddress), c = new Set(
1789
1789
  [...y, ...i].map((A) => A.toLowerCase())
1790
1790
  );
1791
- return Array.from(p);
1792
- }, Nn = (e, n) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + nn(n) : (e.fillDelay || 0) * 1e3, Ae = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), Mn = (e) => sn().filter((n) => n.name === e).map((n) => n.chainId), Un = (e, n, i) => {
1791
+ return Array.from(c);
1792
+ }, Nn = (e, n) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + nn(n) : (e.fillDelay || 0) * 1e3, be = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), Mn = (e) => sn().filter((n) => n.name === e).map((n) => n.chainId), Un = (e, n, i) => {
1793
1793
  if (!g(e.srcAmountFilled || 0).gt(0) || !g(e.dstAmountFilled || 0).gt(0))
1794
1794
  return "";
1795
- const y = Ce(n, e.srcAmountFilled), p = Ce(i, e.dstAmountFilled);
1796
- return g(p).div(y).toFixed();
1795
+ const y = fe(n, e.srcAmountFilled), c = fe(i, e.dstAmountFilled);
1796
+ return g(c).div(y).toFixed();
1797
1797
  }, Ln = (e, n, i) => {
1798
- if (e.type === j.TWAP_MARKET) return "";
1799
- const y = Ce(n, e.srcAmountPerTrade), p = Ce(i, e.dstMinAmountPerTrade);
1800
- return g(p).div(y).toFixed();
1801
- }, $e = "https://order-sink-dev.orbs.network", ve = "https://order-sink.orbs.network";
1802
- let Ne;
1803
- const Vn = (e) => {
1804
- Ne = e;
1805
- }, Qe = () => {
1806
- const e = Ae(
1798
+ if (e.type === q.TWAP_MARKET) return "";
1799
+ const y = fe(n, e.srcAmountPerTrade), c = fe(i, e.dstMinAmountPerTrade);
1800
+ return g(c).div(y).toFixed();
1801
+ }, Vn = (e, n, i) => {
1802
+ if (e.type === q.TWAP_MARKET) return "";
1803
+ const y = fe(n, e.srcAmountPerTrade), c = fe(i, e.triggerPricePerTrade);
1804
+ return g(c).div(y).toFixed();
1805
+ }, He = "https://order-sink-dev.orbs.network", ve = "https://order-sink.orbs.network";
1806
+ let Me;
1807
+ const Wn = (e) => {
1808
+ Me = e;
1809
+ }, Ye = () => {
1810
+ const e = be(
1807
1811
  "env"
1808
1812
  /* ENV */
1809
1813
  );
1810
- return e === "prod" ? ve : e === "dev" ? $e : Ne === "prod" ? ve : Ne === "dev" ? $e : ve;
1811
- }, Wn = 100, zn = 1, Me = 300 * 1e3, he = 365 * 24 * 60 * 60 * 1e3, He = 300 * 1e3, Gt = new Date(
1812
- Me
1813
- ).getMinutes(), Ke = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, Z = "https://hub.orbs.network/api/apikey/subgraphs/id", qt = {
1814
- [K.eth.id]: `${Z}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
1815
- [K.bsc.id]: `${Z}/4NfXEi8rreQsnAr4aJ45RLCKgnjcWX46Lbt9SadiCcz6`,
1816
- [K.poly.id]: `${Z}/3PyRPWSvDnMowGbeBy7aNsvUkD5ZuxdXQw2RdJq4NdXi`,
1817
- [K.arb.id]: `${Z}/83bpQexEaqBjHaQbKoFTbtvCXuo5RudRkfLgtRUYqo2c`,
1818
- [K.base.id]: `${Z}/DFhaPQb3HATXkpsWNZw3gydYHehLBVEDiSk4iBdZJyps`,
1819
- [K.sei.id]: `${Z}/5zjzRnURzoddyFSZBw5E5NAM3oBgPq3NasTYbtMk6EL6`,
1820
- [K.linea.id]: `${Z}/6VsNPEYfFLPZCqdMMDadoXQjLHWJdjEwiD768GAtb7j6`,
1821
- [K.sonic.id]: `${Z}/DtBr6a5vsoDd2oAXdPszcn4gLgrr1XC68Q3AJQKXnNLV`,
1822
- [K.ftm.id]: `${Z}/DdRo1pmJkrJC9fjsjEBWnNE1uqrbh7Diz4tVKd7rfupp`,
1823
- [K.katana.id]: `${Z}/CGi9sDFMQcnBwF3C3NoCFqnaE34sssbgwPLTwiskSXmW`,
1824
- [K.avax.id]: `${Z}/FxZ1vMwE5Xy1qvKvZENUMz4vhW8Sh4vXJf9Vp7o17pTx`,
1825
- [K.bera.id]: `${Z}/H7aY53mY1hgaSURwXj3ZVirwNSifExwjgEL5GNtTqmEj`,
1826
- [K.flare.id]: Ke("flare"),
1827
- [K.cronosZkEvm.id]: Ke("cronos-zkevm")
1828
- }, jt = "0x0000000000000000000000000000000000000000", Xt = [
1829
- jt,
1814
+ return e === "prod" ? ve : e === "dev" ? He : Me === "prod" ? ve : Me === "dev" ? He : ve;
1815
+ }, zn = 100, $n = 1, Ue = 300 * 1e3, Ae = 365 * 24 * 60 * 60 * 1e3, Ke = 300 * 1e3, Gt = new Date(
1816
+ Ue
1817
+ ).getMinutes(), Re = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, te = "https://hub.orbs.network/api/apikey/subgraphs/id", qt = {
1818
+ [K.eth.id]: `${te}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
1819
+ [K.bsc.id]: `${te}/4NfXEi8rreQsnAr4aJ45RLCKgnjcWX46Lbt9SadiCcz6`,
1820
+ [K.poly.id]: `${te}/3PyRPWSvDnMowGbeBy7aNsvUkD5ZuxdXQw2RdJq4NdXi`,
1821
+ [K.arb.id]: `${te}/83bpQexEaqBjHaQbKoFTbtvCXuo5RudRkfLgtRUYqo2c`,
1822
+ [K.base.id]: `${te}/DFhaPQb3HATXkpsWNZw3gydYHehLBVEDiSk4iBdZJyps`,
1823
+ [K.sei.id]: `${te}/5zjzRnURzoddyFSZBw5E5NAM3oBgPq3NasTYbtMk6EL6`,
1824
+ [K.linea.id]: `${te}/6VsNPEYfFLPZCqdMMDadoXQjLHWJdjEwiD768GAtb7j6`,
1825
+ [K.sonic.id]: `${te}/DtBr6a5vsoDd2oAXdPszcn4gLgrr1XC68Q3AJQKXnNLV`,
1826
+ [K.ftm.id]: `${te}/DdRo1pmJkrJC9fjsjEBWnNE1uqrbh7Diz4tVKd7rfupp`,
1827
+ [K.katana.id]: `${te}/CGi9sDFMQcnBwF3C3NoCFqnaE34sssbgwPLTwiskSXmW`,
1828
+ [K.avax.id]: `${te}/FxZ1vMwE5Xy1qvKvZENUMz4vhW8Sh4vXJf9Vp7o17pTx`,
1829
+ [K.bera.id]: Re("berachain"),
1830
+ [K.flare.id]: Re("flare"),
1831
+ [K.cronosZkEvm.id]: Re("cronos-zkevm")
1832
+ }, Xt = "0x0000000000000000000000000000000000000000", jt = [
1833
+ Xt,
1830
1834
  "0x0000000000000000000000000000000000001010",
1831
1835
  "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
1832
1836
  "0x000000000000000000000000000000000000dEaD",
1833
1837
  "0x000000000000000000000000000000000000800A",
1834
1838
  "0x000000000000000000000000000000000000800a"
1835
- ], Ve = "115792089237316195423570985008687907853269984665640564039457584007913129639935", G = (e) => `${e.name}_${e.chainId}`, Yt = {
1839
+ ], We = "115792089237316195423570985008687907853269984665640564039457584007913129639935", G = (e) => `${e.name}_${e.chainId}`, Qt = {
1836
1840
  [G(H.SushiArb)]: [
1837
1841
  "0x846F2B29ef314bF3D667981b4ffdADc5B858312a",
1838
1842
  "0x08c41f5D1C844061f6D952E25827eeAA576c6536"
@@ -1884,7 +1888,7 @@ const Vn = (e) => {
1884
1888
  }, Ge = {
1885
1889
  unit: ne.Minutes,
1886
1890
  value: Gt
1887
- }, $n = 0.25, Hn = "100", Qt = "RePermitWitnessTransferFrom", Zt = {
1891
+ }, Hn = 0.25, Kn = "100", Yt = "RePermitWitnessTransferFrom", Zt = {
1888
1892
  RePermitWitnessTransferFrom: [
1889
1893
  {
1890
1894
  name: "permitted",
@@ -2009,9 +2013,9 @@ const Vn = (e) => {
2009
2013
  type: "uint256"
2010
2014
  }
2011
2015
  ]
2012
- }, Kn = "https://www.orbs.com/dtwap-and-dlimit-faq/", Gn = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", qn = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", jn = "https://www.orbs.com/assets/img/common/logo.svg", Xn = "https://www.orbs.com/", Yn = "https://www.orbs.com/dtwap-dlimit-disclaimer";
2013
- var be = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_USD = "minChunkSizeUsd", e.ENV = "env", e.DURATION = "duration", e.IGNORE_ERRORS = "ignore-errors", e))(be || {});
2014
- const Qn = "-5", Zn = "10", Jn = "-10", ea = "5", ta = "Something went wrong";
2016
+ }, Gn = "https://www.orbs.com/dtwap-and-dlimit-faq/", qn = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", Xn = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", jn = "https://www.orbs.com/assets/img/common/logo.svg", Qn = "https://www.orbs.com/", Yn = "https://www.orbs.com/dtwap-dlimit-disclaimer";
2017
+ var Ee = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_USD = "minChunkSizeUsd", e.ENV = "env", e.DURATION = "duration", e.IGNORE_ERRORS = "ignore-errors", e))(Ee || {});
2018
+ const Zn = "-5", Jn = "10", ea = "-10", ta = "5", na = "Something went wrong";
2015
2019
  function Jt(e) {
2016
2020
  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.');
2017
2021
  }
@@ -2031,11 +2035,11 @@ const en = {
2031
2035
  747474: { dex: { sushiswap: { type: "default:sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x3Ee50D79e6D0205f325928AAFb041b63E1767Bc5", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" } } },
2032
2036
  "*": { 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" } }
2033
2037
  };
2034
- var Re, qe;
2038
+ var Ie, qe;
2035
2039
  function tn() {
2036
- if (qe) return Re;
2040
+ if (qe) return Ie;
2037
2041
  qe = 1;
2038
- const e = en, n = (p) => Jt(`./out/${p}.sol/${p}.json`).abi, i = () => ({
2042
+ const e = en, n = (c) => Jt(`./out/${c}.sol/${c}.json`).abi, i = () => ({
2039
2043
  wm: n("WM"),
2040
2044
  repermit: n("RePermit"),
2041
2045
  reactor: n("OrderReactor"),
@@ -2043,94 +2047,94 @@ function tn() {
2043
2047
  refinery: n("Refinery"),
2044
2048
  adapter: n("DefaultDexAdapter")
2045
2049
  });
2046
- function y(p, A) {
2047
- if (!p || !(A != null && A.trim())) return;
2048
- const { dex: E, ...x } = e["*"] ?? {}, T = e[p];
2050
+ function y(c, A) {
2051
+ if (!c || !(A != null && A.trim())) return;
2052
+ const { dex: E, ...x } = e["*"] ?? {}, T = e[c];
2049
2053
  if (!T) return;
2050
2054
  const { dex: w, ...B } = T, C = w == null ? void 0 : w[A];
2051
2055
  if (C)
2052
2056
  return { ...x, ...B, ...C };
2053
2057
  }
2054
- return Re = { config: y, abis: i, raw: e }, Re;
2058
+ return Ie = { config: y, abis: i, raw: e }, Ie;
2055
2059
  }
2056
2060
  var Ze = tn();
2057
- const na = (e, n, i) => {
2061
+ const aa = (e, n, i) => {
2058
2062
  if (!e || !n || !i) return;
2059
- const y = g(e).times(n), p = g(10).pow(i);
2060
- return y.div(p).toFixed(0);
2061
- }, aa = (e, n, i, y) => {
2063
+ const y = g(e).times(n), c = g(10).pow(i);
2064
+ return y.div(c).toFixed(0);
2065
+ }, sa = (e, n, i, y) => {
2062
2066
  if (i || !y || !e || !n)
2063
2067
  return g(0).toString();
2064
- const p = g(e).times(g(n)), A = g(10).pow(y), E = p.div(A);
2068
+ const c = g(e).times(g(n)), A = g(10).pow(y), E = c.div(A);
2065
2069
  return g.max(1, E).integerValue(g.ROUND_FLOOR).toFixed(0);
2066
- }, sa = (e, n, i, y) => {
2070
+ }, ra = (e, n, i, y) => {
2067
2071
  if (e === z.TWAP || e === z.LIMIT)
2068
2072
  return "0";
2069
2073
  if (!y || !n || !i) return;
2070
- const p = g(n).times(g(i)), A = g(10).pow(y), E = p.div(A);
2074
+ const c = g(n).times(g(i)), A = g(10).pow(y), E = c.div(A);
2071
2075
  return g.max(1, E).integerValue(g.ROUND_FLOOR).toFixed(0) || "0";
2072
- }, ra = (e, n, i, y) => {
2073
- const p = pe(i) * 2 * n, A = Ae(be.DURATION), E = $t(A ? Number(A) : p);
2074
- return A ? { unit: E, value: Number(g(Number(A) / E).toFixed(2)) } : y || (e === z.LIMIT ? { unit: ne.Days, value: 7 } : e === z.STOP_LOSS || e === z.TAKE_PROFIT ? { unit: ne.Days, value: 1 } : { unit: E, value: Number(g(p / E).toFixed(2)) });
2075
- }, ia = (e, n, i) => n !== z.TWAP ? 1 : i !== void 0 ? i : e, oa = (e, n, i, y) => {
2076
+ }, ia = (e, n, i, y) => {
2077
+ const c = pe(i) * 2 * n, A = be(Ee.DURATION), E = $t(A ? Number(A) : c);
2078
+ return A ? { unit: E, value: Number(g(Number(A) / E).toFixed(2)) } : y || (e === z.LIMIT ? { unit: ne.Days, value: 7 } : e === z.STOP_LOSS || e === z.TAKE_PROFIT ? { unit: ne.Days, value: 1 } : { unit: E, value: Number(g(c / E).toFixed(2)) });
2079
+ }, oa = (e, n, i) => n !== z.TWAP ? 1 : i !== void 0 ? i : e, da = (e, n, i, y) => {
2076
2080
  if (!n || !i || !y) return 1;
2077
2081
  const A = g(i).times(n).div(y).integerValue(g.ROUND_FLOOR).toNumber(), E = Math.floor(
2078
- he / 2 / pe(e)
2082
+ Ae / 2 / pe(e)
2079
2083
  );
2080
2084
  return Math.max(1, Math.min(A, E));
2081
- }, da = (e, n) => e + pe(n) + 6e4, nn = (e) => e.bidDelaySeconds * 1e3 * 2, ca = (e = "", n = 0) => !e || !n ? "0" : g(e).div(n).integerValue(g.ROUND_FLOOR).toFixed(0), pa = (e, n) => ({
2082
- isError: !(e.unit === Ge.unit && e.value === Ge.value) && pe(e) * n > he,
2083
- value: Math.floor(he / n)
2084
- }), la = (e = "", n = "", i) => {
2085
+ }, ca = (e, n) => e + pe(n) + 6e4, nn = (e) => e.bidDelaySeconds * 1e3 * 2, pa = (e = "", n = 0) => !e || !n ? "0" : g(e).div(n).integerValue(g.ROUND_FLOOR).toFixed(0), la = (e, n) => ({
2086
+ isError: !(e.unit === Ge.unit && e.value === Ge.value) && pe(e) * n > Ae,
2087
+ value: Math.floor(Ae / n)
2088
+ }), ua = (e = "", n = "", i) => {
2085
2089
  if (i === z.STOP_LOSS)
2086
2090
  return {
2087
2091
  isError: g(n || 0).gte(g(e || 0)),
2088
2092
  value: e
2089
2093
  };
2090
- }, ua = (e = "", n = "", i) => {
2094
+ }, fa = (e = "", n = "", i) => {
2091
2095
  if (i === z.TAKE_PROFIT)
2092
2096
  return {
2093
2097
  isError: g(n || 0).lte(g(e || 0)),
2094
2098
  value: e
2095
2099
  };
2096
- }, fa = (e = "", n = "", i = !1, y) => {
2100
+ }, ma = (e = "", n = "", i = !1, y) => {
2097
2101
  if (!i && y === z.STOP_LOSS)
2098
2102
  return {
2099
2103
  isError: g(n || 0).gte(g(e || 0)),
2100
2104
  value: e
2101
2105
  };
2102
- }, ma = (e = "", n = "", i = !1, y) => {
2106
+ }, ya = (e = "", n = "", i = !1, y) => {
2103
2107
  if (!i && y === z.TAKE_PROFIT)
2104
2108
  return {
2105
2109
  isError: g(n || 0).gte(g(e || 0)),
2106
2110
  value: e
2107
2111
  };
2108
- }, ya = (e, n) => e === z.STOP_LOSS || e === z.TAKE_PROFIT ? {
2112
+ }, ha = (e, n) => e === z.STOP_LOSS || e === z.TAKE_PROFIT ? {
2109
2113
  isError: pe(n) > 5184e6,
2110
2114
  value: 5184e6
2111
2115
  } : {
2112
- isError: pe(n) > he,
2116
+ isError: pe(n) > Ae,
2113
2117
  // 365 days
2114
- value: he
2115
- }, ha = (e) => ({
2116
- isError: pe(e) < He,
2117
- value: He
2118
- }), Aa = (e) => ({
2119
- isError: pe(e) < Me,
2120
- value: Me
2121
- }), ba = (e, n, i) => ({
2118
+ value: Ae
2119
+ }, Aa = (e) => ({
2120
+ isError: pe(e) < Ke,
2121
+ value: Ke
2122
+ }), ba = (e) => ({
2123
+ isError: pe(e) < Ue,
2124
+ value: Ue
2125
+ }), Ea = (e, n, i) => ({
2122
2126
  isError: g(n || 0).multipliedBy(e || 0).isLessThan(i),
2123
2127
  value: i
2124
- }), Ea = (e, n, i) => ({
2128
+ }), ga = (e, n, i) => ({
2125
2129
  isError: i === z.TWAP && g(e).isGreaterThan(n),
2126
2130
  value: n
2127
2131
  }), an = (e, n = 0) => {
2128
2132
  var E;
2129
2133
  const i = (E = Object.entries(H).find(
2130
2134
  ([x, T]) => T.chainId === n && x.toLowerCase().indexOf(e.toLowerCase()) >= 0
2131
- )) == null ? void 0 : E[1], { abi: y, ...p } = Ze.config(n, e);
2135
+ )) == null ? void 0 : E[1], { abi: y, ...c } = Ze.config(n, e);
2132
2136
  return {
2133
- ...p,
2137
+ ...c,
2134
2138
  partner: e,
2135
2139
  twapConfig: i
2136
2140
  };
@@ -2138,37 +2142,37 @@ const na = (e, n, i) => {
2138
2142
  const e = Ze.raw;
2139
2143
  return Object.entries(e).filter(([n]) => n !== "*").flatMap(([n, i]) => {
2140
2144
  const y = i == null ? void 0 : i.dex;
2141
- return !y || typeof y != "object" ? [] : Object.entries(y).map(([p]) => ({
2145
+ return !y || typeof y != "object" ? [] : Object.entries(y).map(([c]) => ({
2142
2146
  chainId: Number(n),
2143
- name: p,
2144
- config: an(p, Number(n))
2147
+ name: c,
2148
+ config: an(c, Number(n))
2145
2149
  }));
2146
2150
  }).sort((n, i) => n.name.localeCompare(i.name));
2147
- }, ga = (e) => {
2148
- const n = Ae(
2149
- be.MIN_CHUNK_SIZE_USD
2151
+ }, xa = (e) => {
2152
+ const n = be(
2153
+ Ee.MIN_CHUNK_SIZE_USD
2150
2154
  );
2151
2155
  return n ? parseInt(n) : e;
2152
- }, xa = ({
2156
+ }, Ta = ({
2153
2157
  marketPrice: e,
2154
2158
  typedInputAmount: n,
2155
2159
  srcUsd1Token: i,
2156
2160
  marketPriceLoading: y,
2157
- triggerPriceError: p,
2161
+ triggerPriceError: c,
2158
2162
  limitPriceError: A,
2159
2163
  tradesError: E,
2160
2164
  fillDelayError: x,
2161
2165
  durationError: T,
2162
2166
  balanceError: w
2163
2167
  }) => {
2164
- if (!Ae(be.IGNORE_ERRORS) && !(g(e || 0).isZero() || g(n || 0).isZero() || g(i || "0").isZero() || y))
2165
- return p || A || E || x || T || w;
2166
- }, Ta = ({
2168
+ if (!be(Ee.IGNORE_ERRORS) && !(g(e || 0).isZero() || g(n || 0).isZero() || g(i || "0").isZero() || y))
2169
+ return c || A || E || x || T || w;
2170
+ }, wa = ({
2167
2171
  chainId: e,
2168
2172
  srcToken: n,
2169
2173
  dstToken: i,
2170
2174
  srcAmount: y,
2171
- deadlineMillis: p,
2175
+ deadlineMillis: c,
2172
2176
  fillDelayMillis: A,
2173
2177
  slippage: E,
2174
2178
  account: x,
@@ -2178,7 +2182,7 @@ const na = (e, n, i) => {
2178
2182
  config: C,
2179
2183
  module: k
2180
2184
  }) => {
2181
- const R = Date.now().toString(), I = parseInt((A / 1e3).toFixed(0)), ue = Ht(p / 1e3), ae = Ae(be.FRESHNESS), fe = ae ? parseInt(ae) : 60, b = k === z.TAKE_PROFIT ? Ve : B, me = k === z.TAKE_PROFIT ? B : w, Ee = {
2185
+ const R = Date.now().toString(), I = parseInt((A / 1e3).toFixed(0)), ue = Ht(c / 1e3), ae = be(Ee.FRESHNESS), me = ae ? parseInt(ae) : 60, b = k === z.TAKE_PROFIT ? We : B, ye = k === z.TAKE_PROFIT ? B : w, ge = {
2182
2186
  permitted: {
2183
2187
  token: n,
2184
2188
  amount: y
@@ -2202,7 +2206,7 @@ const na = (e, n, i) => {
2202
2206
  exclusivity: 0,
2203
2207
  epoch: I,
2204
2208
  slippage: E,
2205
- freshness: fe,
2209
+ freshness: me,
2206
2210
  input: {
2207
2211
  token: n,
2208
2212
  amount: T,
@@ -2210,7 +2214,7 @@ const na = (e, n, i) => {
2210
2214
  },
2211
2215
  output: {
2212
2216
  token: i,
2213
- limit: g(me || 0).toFixed(),
2217
+ limit: g(ye || 0).toFixed(),
2214
2218
  stop: g(b || 0).toFixed(),
2215
2219
  recipient: x
2216
2220
  }
@@ -2223,23 +2227,23 @@ const na = (e, n, i) => {
2223
2227
  chainId: e,
2224
2228
  verifyingContract: C.repermit
2225
2229
  },
2226
- order: Ee,
2230
+ order: ge,
2227
2231
  types: Zt,
2228
- primaryType: Qt
2232
+ primaryType: Yt
2229
2233
  };
2230
- }, rn = "0.0.26", on = {
2234
+ }, rn = "1.9.3", on = {
2231
2235
  version: rn
2232
2236
  }, dn = 0.7, cn = `https://bi.orbs.network/putes/twap-ui-${dn}`, Je = on.version;
2233
- let Ue = "unknown";
2234
- function wa(e) {
2235
- Ue = e;
2237
+ let Le = "unknown";
2238
+ function Fa(e) {
2239
+ Le = e;
2236
2240
  }
2237
- function Ie() {
2241
+ function Pe() {
2238
2242
  const e = Math.random().toString(36).substring(2, 16), n = Math.random().toString(36).substring(2, 16), i = Date.now().toString(36);
2239
2243
  return `id_${e + n + i}`;
2240
2244
  }
2241
2245
  const pn = (e, n, i) => {
2242
- var y, p, A, E, x, T, w, B, C;
2246
+ var y, c, A, E, x, T, w, B, C;
2243
2247
  return {
2244
2248
  spotVersion: Je,
2245
2249
  partner: e.partner,
@@ -2255,7 +2259,7 @@ const pn = (e, n, i) => {
2255
2259
  wm: e.wm,
2256
2260
  chainName: ((y = e.twapConfig) == null ? void 0 : y.chainName) || "",
2257
2261
  chainId: i || 0,
2258
- twapVersion: ((p = e.twapConfig) == null ? void 0 : p.twapVersion) || 0,
2262
+ twapVersion: ((c = e.twapConfig) == null ? void 0 : c.twapVersion) || 0,
2259
2263
  twapAddress: ((A = e.twapConfig) == null ? void 0 : A.twapAddress) || "",
2260
2264
  lensAddress: ((E = e.twapConfig) == null ? void 0 : E.lensAddress) || "",
2261
2265
  bidDelaySeconds: ((x = e.twapConfig) == null ? void 0 : x.bidDelaySeconds) || 0,
@@ -2265,7 +2269,7 @@ const pn = (e, n, i) => {
2265
2269
  exchangeType: ((B = e.twapConfig) == null ? void 0 : B.exchangeType) || "",
2266
2270
  pathfinderKey: ((C = e.twapConfig) == null ? void 0 : C.pathfinderKey) || ""
2267
2271
  };
2268
- }, je = async (e) => {
2272
+ }, Xe = async (e) => {
2269
2273
  try {
2270
2274
  await fetch(cn, {
2271
2275
  method: "POST",
@@ -2281,10 +2285,10 @@ const pn = (e, n, i) => {
2281
2285
  };
2282
2286
  class ln {
2283
2287
  constructor() {
2284
- Te(this, "timeout");
2285
- Te(this, "config");
2286
- Te(this, "data", {
2287
- _id: Ie()
2288
+ we(this, "timeout");
2289
+ we(this, "config");
2290
+ we(this, "data", {
2291
+ _id: Pe()
2288
2292
  });
2289
2293
  }
2290
2294
  async updateAndSend(n = {}, i = !1, y) {
@@ -2292,11 +2296,11 @@ class ln {
2292
2296
  this.data = {
2293
2297
  ...this.data,
2294
2298
  ...n
2295
- }, i ? (await je(this.data), y == null || y()) : (clearTimeout(this.timeout), this.timeout = setTimeout(() => {
2296
- je(this.data), y == null || y();
2299
+ }, i ? (await Xe(this.data), y == null || y()) : (clearTimeout(this.timeout), this.timeout = setTimeout(() => {
2300
+ Xe(this.data), y == null || y();
2297
2301
  }, 1e3));
2298
- } catch (p) {
2299
- console.error("Failed to update and send BI", p);
2302
+ } catch (c) {
2303
+ console.error("Failed to update and send BI", c);
2300
2304
  }
2301
2305
  }
2302
2306
  onCancelOrderRequest(n, i) {
@@ -2357,7 +2361,7 @@ class ln {
2357
2361
  account: n,
2358
2362
  chainId: i,
2359
2363
  module: y,
2360
- srcToken: p,
2364
+ srcToken: c,
2361
2365
  dstToken: A,
2362
2366
  fromTokenAmount: E,
2363
2367
  srcChunkAmount: x,
@@ -2372,8 +2376,8 @@ class ln {
2372
2376
  this.updateAndSend({
2373
2377
  toTokenAddress: A.address,
2374
2378
  toTokenSymbol: A.symbol,
2375
- fromTokenAddress: p.address,
2376
- fromTokenSymbol: p.symbol,
2379
+ fromTokenAddress: c.address,
2380
+ fromTokenSymbol: c.symbol,
2377
2381
  fromTokenAmount: E,
2378
2382
  chunksAmount: I,
2379
2383
  srcChunkAmount: x,
@@ -2405,11 +2409,11 @@ class ln {
2405
2409
  });
2406
2410
  }
2407
2411
  init(n, i, y) {
2408
- var p;
2409
- this.config = n, y !== ((p = this.data) == null ? void 0 : p.chainId) && (this.data = {
2410
- _id: Ie(),
2412
+ var c;
2413
+ this.config = n, y !== ((c = this.data) == null ? void 0 : c.chainId) && (this.data = {
2414
+ _id: Pe(),
2411
2415
  action: "module-import",
2412
- uiVersion: Ue,
2416
+ uiVersion: Le,
2413
2417
  ...pn(n, i, y),
2414
2418
  origin: window.location.origin
2415
2419
  }, this.updateAndSend(this.data));
@@ -2431,9 +2435,9 @@ class ln {
2431
2435
  void 0,
2432
2436
  () => {
2433
2437
  this.data = {
2434
- _id: Ie(),
2438
+ _id: Pe(),
2435
2439
  action: "reset",
2436
- uiVersion: Ue,
2440
+ uiVersion: Le,
2437
2441
  origin: this.data.origin,
2438
2442
  spotVersion: Je,
2439
2443
  partner: this.data.partner,
@@ -2469,13 +2473,13 @@ class ln {
2469
2473
  });
2470
2474
  }
2471
2475
  }
2472
- const Pe = new ln(), un = (e) => {
2476
+ const Ne = new ln(), un = (e) => {
2473
2477
  var E;
2474
- const n = g(e.order.witness.output.limit || 0).gt(1), i = e.order.witness.output.stop, y = g(i || 0).eq(Ve), p = g(i || 0).gt(0), A = ((E = e.metadata.chunks) == null ? void 0 : E.length) || g(e.order.witness.input.maxAmount).div(g(e.order.witness.input.amount)).toNumber();
2475
- return y ? j.TAKE_PROFIT : p ? n ? j.STOP_LOSS_LIMIT : j.STOP_LOSS_MARKET : n ? A >= 1 && n ? j.TWAP_LIMIT : n ? j.LIMIT : j.TWAP_MARKET : j.TWAP_MARKET;
2478
+ const n = g(e.order.witness.output.limit || 0).gt(1), i = e.order.witness.output.stop, y = g(i || 0).eq(We), c = g(i || 0).gt(0), A = ((E = e.metadata.chunks) == null ? void 0 : E.length) || g(e.order.witness.input.maxAmount).div(g(e.order.witness.input.amount)).toNumber();
2479
+ return y ? q.TAKE_PROFIT : c ? n ? q.STOP_LOSS_LIMIT : q.STOP_LOSS_MARKET : n ? A >= 1 && n ? q.TWAP_LIMIT : n ? q.LIMIT : q.TWAP_MARKET : q.TWAP_MARKET;
2476
2480
  }, fn = (e) => {
2477
- var p;
2478
- const n = ((p = e.metadata.chunks) == null ? void 0 : p.filter((A) => A.status === "success").length) || 0, i = e.metadata.expectedChunks || 0, y = g(n).dividedBy(i).toNumber();
2481
+ var c;
2482
+ const n = ((c = e.metadata.chunks) == null ? void 0 : c.filter((A) => A.status === "success").length) || 0, i = e.metadata.expectedChunks || 0, y = g(n).dividedBy(i).toNumber();
2479
2483
  return y >= 0.99 ? 100 : y <= 0 ? 0 : Number((y * 100).toFixed(2));
2480
2484
  }, mn = (e, n) => e.metadata.status === "completed" || n >= 99 ? re.Completed : ["pending", "eligible"].includes(e.metadata.status) ? re.Open : e.metadata.description.toLowerCase() === "cancelled by contract" ? re.Canceled : re.Expired, yn = (e) => {
2481
2485
  var i;
@@ -2490,7 +2494,7 @@ const Pe = new ln(), un = (e) => {
2490
2494
  const i = e.length;
2491
2495
  return i >= n && ((y = e[i - 1]) == null ? void 0 : y.timestamp) || 0;
2492
2496
  }, An = (e) => g(e.metadata.displayOnlyInputTokenPriceUSD).dividedBy(1e18).toFixed(), et = (e) => {
2493
- const n = fn(e), i = g(e.order.witness.output.stop || 0).eq(Ve), y = Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, p = e.metadata.expectedChunks || 1, A = yn(e);
2497
+ const n = fn(e), i = g(e.order.witness.output.stop || 0).eq(We), y = Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, c = e.metadata.expectedChunks || 1, A = yn(e);
2494
2498
  return {
2495
2499
  id: e.hash,
2496
2500
  hash: e.hash,
@@ -2510,12 +2514,12 @@ const Pe = new ln(), un = (e) => {
2510
2514
  srcAmount: e.order.witness.input.maxAmount,
2511
2515
  dstMinAmountPerTrade: i ? "" : y,
2512
2516
  triggerPricePerTrade: i ? y : g(e.order.witness.output.stop || "").toFixed(),
2513
- dstMinAmountTotal: i ? "" : g(y).multipliedBy(p).toFixed(),
2517
+ dstMinAmountTotal: i ? "" : g(y).multipliedBy(c).toFixed(),
2514
2518
  srcAmountPerTrade: e.order.witness.input.amount,
2515
- totalTradesAmount: p,
2519
+ totalTradesAmount: c,
2516
2520
  isMarketPrice: g(y || 0).lte(1),
2517
2521
  chainId: e.order.witness.chainid,
2518
- filledOrderTimestamp: hn(A, p),
2522
+ filledOrderTimestamp: hn(A, c),
2519
2523
  status: mn(e, n),
2520
2524
  rawOrder: e
2521
2525
  };
@@ -2527,9 +2531,9 @@ const Pe = new ln(), un = (e) => {
2527
2531
  }) => {
2528
2532
  try {
2529
2533
  if (!i) return [];
2530
- const p = y ? `&exchange=${y}` : "";
2534
+ const c = y ? `&exchange=${y}` : "";
2531
2535
  return (await (await fetch(
2532
- `${Qe()}/orders?swapper=${i}&chainId=${e}${p}`,
2536
+ `${Ye()}/orders?swapper=${i}&chainId=${e}${c}`,
2533
2537
  {
2534
2538
  signal: n
2535
2539
  }
@@ -2537,34 +2541,34 @@ const Pe = new ln(), un = (e) => {
2537
2541
  } catch {
2538
2542
  return [];
2539
2543
  }
2540
- }, Fa = async (e, n) => {
2544
+ }, Ca = async (e, n) => {
2541
2545
  try {
2542
2546
  const i = {
2543
2547
  signature: n,
2544
2548
  order: e,
2545
2549
  status: "pending"
2546
2550
  };
2547
- console.log("body", i), Pe.onCreateOrderRequest();
2548
- const p = await (await fetch(`${Qe()}/orders/new`, {
2551
+ console.log("body", i), Ne.onCreateOrderRequest();
2552
+ const c = await (await fetch(`${Ye()}/orders/new`, {
2549
2553
  method: "POST",
2550
2554
  body: JSON.stringify(i)
2551
2555
  })).json();
2552
- if (!p.success)
2553
- throw new Error(`error:${p.message}, code:${p.code}`);
2554
- const A = et(p.signedOrder);
2555
- return Pe.onCreateOrderSuccess(A.id), A;
2556
+ if (!c.success)
2557
+ throw new Error(`error:${c.message}, code:${c.code}`);
2558
+ const A = et(c.signedOrder);
2559
+ return Ne.onCreateOrderSuccess(A.id), A;
2556
2560
  } catch (i) {
2557
- throw Pe.onCreateOrderError(i), console.error(i), i;
2561
+ throw Ne.onCreateOrderError(i), console.error(i), i;
2558
2562
  }
2559
2563
  }, de = (e, n) => e && e.length ? e.map(n || ((i) => `${i}`)) : void 0, En = (e) => {
2560
2564
  if (e)
2561
2565
  return qt[e];
2562
- }, We = async ({
2566
+ }, ze = async ({
2563
2567
  chainId: e,
2564
2568
  buildQuery: n,
2565
2569
  extractResults: i,
2566
2570
  signal: y,
2567
- retries: p = 1,
2571
+ retries: c = 1,
2568
2572
  limit: A = 1e3,
2569
2573
  page: E
2570
2574
  }) => {
@@ -2572,7 +2576,7 @@ const Pe = new ln(), un = (e) => {
2572
2576
  if (!x) throw new Cn();
2573
2577
  const T = async (C) => {
2574
2578
  let k = 0;
2575
- for (; k <= p; )
2579
+ for (; k <= c; )
2576
2580
  try {
2577
2581
  const R = await fetch(x, {
2578
2582
  method: "POST",
@@ -2586,7 +2590,7 @@ const Pe = new ln(), un = (e) => {
2586
2590
  throw new Error(I.errors[0].message);
2587
2591
  return i(I);
2588
2592
  } catch (R) {
2589
- if (k === p) throw R;
2593
+ if (k === c) throw R;
2590
2594
  await new Promise((I) => setTimeout(I, 500 * 2 ** k)), k++;
2591
2595
  }
2592
2596
  return [];
@@ -2628,17 +2632,17 @@ const Pe = new ln(), un = (e) => {
2628
2632
  outAmount: n.dstAmountOut,
2629
2633
  timestamp: n.timestamp,
2630
2634
  txHash: n.transactionHash
2631
- })), Xe = (e, n) => {
2635
+ })), je = (e, n) => {
2632
2636
  const i = g(e || 0).gt(1);
2633
- return !i && n === 1 ? j.TWAP_MARKET : n > 1 && i ? j.TWAP_LIMIT : i ? j.LIMIT : j.TWAP_MARKET;
2637
+ return !i && n === 1 ? q.TWAP_MARKET : n > 1 && i ? q.TWAP_LIMIT : i ? q.LIMIT : q.TWAP_MARKET;
2634
2638
  }, gn = (e, n, i, y) => {
2635
2639
  var k;
2636
- const p = tt(i || []), A = new g(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(g.ROUND_FLOOR).toNumber(), x = (i == null ? void 0 : i.length) === A ? (k = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) == null ? void 0 : k.timestamp : void 0, T = p.reduce((R, I) => R.plus(I.inAmount), new g(0)).toFixed(), w = p.reduce((R, I) => R.plus(I.outAmount), new g(0)).toFixed(), B = nt(e.ask_srcAmount, T), C = Xe(e.ask_dstMinAmount, A);
2640
+ const c = tt(i || []), A = new g(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(g.ROUND_FLOOR).toNumber(), x = (i == null ? void 0 : i.length) === A ? (k = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) == null ? void 0 : k.timestamp : void 0, T = c.reduce((R, I) => R.plus(I.inAmount), new g(0)).toFixed(), w = c.reduce((R, I) => R.plus(I.outAmount), new g(0)).toFixed(), B = nt(e.ask_srcAmount, T), C = je(e.ask_dstMinAmount, A);
2637
2641
  return {
2638
2642
  version: 1,
2639
2643
  id: e.Contract_id.toString(),
2640
2644
  hash: "",
2641
- type: Xe(e.ask_dstMinAmount, A),
2645
+ type: je(e.ask_dstMinAmount, A),
2642
2646
  srcTokenAddress: e.ask_srcToken,
2643
2647
  dstTokenAddress: e.ask_dstToken,
2644
2648
  exchangeAddress: e.exchange,
@@ -2650,7 +2654,7 @@ const Pe = new ln(), un = (e) => {
2650
2654
  orderDollarValueIn: g(e.dollarValueIn || 0).toFixed(6),
2651
2655
  srcAmount: e.ask_srcAmount,
2652
2656
  dstMinAmountTotal: g(e.ask_dstMinAmount).multipliedBy(A).toString(),
2653
- fills: p,
2657
+ fills: c,
2654
2658
  fillDelay: e.ask_fillDelay,
2655
2659
  deadline: e.ask_deadline * 1e3,
2656
2660
  createdAt: new Date(e.timestamp).getTime(),
@@ -2659,7 +2663,7 @@ const Pe = new ln(), un = (e) => {
2659
2663
  srcAmountPerTrade: e.ask_srcBidAmount,
2660
2664
  txHash: e.transactionHash,
2661
2665
  totalTradesAmount: A,
2662
- isMarketPrice: [j.TWAP_MARKET].includes(C),
2666
+ isMarketPrice: [q.TWAP_MARKET].includes(C),
2663
2667
  chainId: n,
2664
2668
  filledOrderTimestamp: x || 0,
2665
2669
  status: y,
@@ -2677,7 +2681,7 @@ const Pe = new ln(), un = (e) => {
2677
2681
  ), y = de(
2678
2682
  e.inTokenSymbols,
2679
2683
  (k) => `"${k.toUpperCase()}"`
2680
- ), p = de(
2684
+ ), c = de(
2681
2685
  e.outTokenSymbols,
2682
2686
  (k) => `"${k.toUpperCase()}"`
2683
2687
  ), A = de(
@@ -2701,7 +2705,7 @@ const Pe = new ln(), un = (e) => {
2701
2705
  T ? `Contract_id_in: [${T.join(", ")}]` : "",
2702
2706
  B ? `dollarValueIn_gte: ${B}` : "",
2703
2707
  y ? `srcTokenSymbol_in: [${y.join(", ")}]` : "",
2704
- p ? `dstTokenSymbol_in: [${p.join(", ")}]` : "",
2708
+ c ? `dstTokenSymbol_in: [${c.join(", ")}]` : "",
2705
2709
  A ? `srcTokenAddress_in: [${A.join(", ")}]` : "",
2706
2710
  E ? `dstTokenAddress_in: [${E.join(", ")}]` : "",
2707
2711
  e != null && e.startDate ? `blockTimestamp_gte: ${e.startDate}` : "",
@@ -2715,10 +2719,10 @@ async function Tn({
2715
2719
  signal: n,
2716
2720
  page: i,
2717
2721
  limit: y,
2718
- filters: p
2722
+ filters: c
2719
2723
  }) {
2720
- const A = y || 1e3, E = xn(p);
2721
- return await We({
2724
+ const A = y || 1e3, E = xn(c);
2725
+ return await ze({
2722
2726
  chainId: e,
2723
2727
  signal: n,
2724
2728
  limit: A,
@@ -2770,10 +2774,10 @@ const wn = async ({
2770
2774
  signal: i
2771
2775
  }) => {
2772
2776
  if (n.length === 0) return [];
2773
- const y = Le(n.map((x) => x.Contract_id.toString()));
2777
+ const y = Ve(n.map((x) => x.Contract_id.toString()));
2774
2778
  if (!y.length) return [];
2775
2779
  const A = `where: { twapId_in: [${y.map((x) => `"${x}"`).join(", ")}]}`;
2776
- return await We({
2780
+ return await ze({
2777
2781
  chainId: e,
2778
2782
  signal: i,
2779
2783
  limit: 1e3,
@@ -2796,7 +2800,7 @@ const wn = async ({
2796
2800
  }
2797
2801
  });
2798
2802
  };
2799
- function Le(e) {
2803
+ function Ve(e) {
2800
2804
  return Array.from(new Set(e));
2801
2805
  }
2802
2806
  const Fn = async ({
@@ -2804,13 +2808,13 @@ const Fn = async ({
2804
2808
  orders: n,
2805
2809
  signal: i
2806
2810
  }) => {
2807
- const y = Le(n.map((C) => C.Contract_id)), p = Le(n.map((C) => C.twapAddress)).filter(Boolean);
2811
+ const y = Ve(n.map((C) => C.Contract_id)), c = Ve(n.map((C) => C.twapAddress)).filter(Boolean);
2808
2812
  if (y.length === 0) return [];
2809
- const A = y.join(", "), E = p.map((C) => `"${C}"`).join(", "), x = p.length ? `twapAddress_in: [${E}]` : "", w = `where: { ${[
2813
+ const A = y.join(", "), E = c.map((C) => `"${C}"`).join(", "), x = c.length ? `twapAddress_in: [${E}]` : "", w = `where: { ${[
2810
2814
  `TWAP_id_in: [${A}]`,
2811
2815
  x
2812
2816
  ].filter(Boolean).join(", ")} }`;
2813
- return await We({
2817
+ return await ze({
2814
2818
  chainId: e,
2815
2819
  signal: i,
2816
2820
  limit: 1e3,
@@ -2851,7 +2855,7 @@ const Dn = async ({
2851
2855
  signal: n,
2852
2856
  page: i,
2853
2857
  limit: y,
2854
- filters: p
2858
+ filters: c
2855
2859
  }) => {
2856
2860
  try {
2857
2861
  const A = await Tn({
@@ -2859,7 +2863,7 @@ const Dn = async ({
2859
2863
  signal: n,
2860
2864
  page: i,
2861
2865
  limit: y,
2862
- filters: p
2866
+ filters: c
2863
2867
  }), [E, x] = await Promise.all([
2864
2868
  Fn({ chainId: e, orders: A, signal: n }),
2865
2869
  wn({ chainId: e, orders: A, signal: n })
@@ -2888,76 +2892,76 @@ const Dn = async ({
2888
2892
  if (!n || !e) return 0;
2889
2893
  const i = g(n).dividedBy(e).toNumber();
2890
2894
  return i >= 0.99 ? 100 : i <= 0 ? 0 : Number((i * 100).toFixed(2));
2891
- }, Sn = (e, n, i) => e === 100 ? re.Completed : i === "CANCELED" ? re.Canceled : i === "COMPLETED" ? re.Completed : n > Date.now() ? re.Open : re.Expired, Ca = async ({
2895
+ }, Sn = (e, n, i) => e === 100 ? re.Completed : i === "CANCELED" ? re.Canceled : i === "COMPLETED" ? re.Completed : n > Date.now() ? re.Open : re.Expired, Da = async ({
2892
2896
  signal: e,
2893
2897
  page: n,
2894
2898
  chainId: i,
2895
2899
  limit: y,
2896
- config: p,
2900
+ config: c,
2897
2901
  account: A
2898
2902
  }) => (await Promise.all([
2899
- p ? Dn({ chainId: i, signal: e, page: n, limit: y, filters: { accounts: [A], configs: p.twapConfig ? [p.twapConfig] : [] } }) : Promise.resolve([]),
2900
- bn({ chainId: i, signal: e, account: A, exchange: p == null ? void 0 : p.adapter })
2903
+ c ? Dn({ chainId: i, signal: e, page: n, limit: y, filters: { accounts: [A], configs: c.twapConfig ? [c.twapConfig] : [] } }) : Promise.resolve([]),
2904
+ bn({ chainId: i, signal: e, account: A, exchange: c == null ? void 0 : c.adapter })
2901
2905
  ]).then(([T, w]) => [...T, ...w])).sort((T, w) => w.createdAt - T.createdAt);
2902
2906
  export {
2903
- ta as CRASH_ERROR_MESSAGE,
2907
+ na as CRASH_ERROR_MESSAGE,
2904
2908
  H as Configs,
2905
2909
  Ge as DEFAULT_FILL_DELAY,
2906
- Jn as DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE,
2907
- Qn as DEFAULT_STOP_LOSS_PERCENTAGE,
2908
- ea as DEFAULT_TAKE_PROFIT_LIMIT_PERCENTAGE,
2909
- Zn as DEFAULT_TAKE_PROFIT_PERCENTAGE,
2910
+ ea as DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE,
2911
+ Zn as DEFAULT_STOP_LOSS_PERCENTAGE,
2912
+ ta as DEFAULT_TAKE_PROFIT_LIMIT_PERCENTAGE,
2913
+ Jn as DEFAULT_TAKE_PROFIT_PERCENTAGE,
2910
2914
  Yn as DISCLAIMER_URL,
2911
2915
  Zt as EIP712_TYPES,
2912
2916
  On as ERC20_ABI,
2913
- Hn as EXCLUSIVITY_OVERRIDE_BPS,
2914
- $n as FEES,
2917
+ Kn as EXCLUSIVITY_OVERRIDE_BPS,
2918
+ Hn as FEES,
2915
2919
  _n as IWETH_ABI,
2916
2920
  Wt as InputErrors,
2917
- Yt as LEGACY_EXCHANGES_MAP,
2918
- he as MAX_ORDER_DURATION_MILLIS,
2919
- zn as MIN_CHUNKS,
2920
- Me as MIN_FILL_DELAY_MILLIS,
2921
+ Qt as LEGACY_EXCHANGES_MAP,
2922
+ Ae as MAX_ORDER_DURATION_MILLIS,
2923
+ $n as MIN_CHUNKS,
2924
+ Ue as MIN_FILL_DELAY_MILLIS,
2921
2925
  Gt as MIN_FILL_DELAY_MINUTES,
2922
- He as MIN_ORDER_DURATION_MILLIS,
2926
+ Ke as MIN_ORDER_DURATION_MILLIS,
2923
2927
  z as Module,
2924
- qn as ORBS_LOGO,
2928
+ Xn as ORBS_LOGO,
2925
2929
  jn as ORBS_LOGO_FALLBACK,
2926
- Gn as ORBS_SLTP_FAQ_URL,
2927
- Kn as ORBS_TWAP_FAQ_URL,
2928
- Xn as ORBS_WEBSITE_URL,
2930
+ qn as ORBS_SLTP_FAQ_URL,
2931
+ Gn as ORBS_TWAP_FAQ_URL,
2932
+ Qn as ORBS_WEBSITE_URL,
2929
2933
  re as OrderStatus,
2930
- j as OrderType,
2934
+ q as OrderType,
2931
2935
  Vt as Partners,
2932
- be as QUERY_PARAMS,
2936
+ Ee as QUERY_PARAMS,
2933
2937
  vn as REPERMIT_ABI,
2934
- Qt as REPERMIT_PRIMARY_TYPE,
2935
- Wn as SUGGEST_CHUNK_VALUE,
2938
+ Yt as REPERMIT_PRIMARY_TYPE,
2939
+ zn as SUGGEST_CHUNK_VALUE,
2936
2940
  qt as THE_GRAPH_ORDERS_API,
2937
2941
  Rn as TWAP_ABI,
2938
2942
  ne as TimeUnit,
2939
- Pe as analytics,
2940
- Ta as buildRePermitOrderData,
2943
+ Ne as analytics,
2944
+ wa as buildRePermitOrderData,
2941
2945
  et as buildV2Order,
2942
2946
  De as eqIgnoreCase,
2943
- Ca as getAccountOrders,
2944
- Qe as getApiEndpoint,
2945
- ia as getChunks,
2947
+ Da as getAccountOrders,
2948
+ Ye as getApiEndpoint,
2949
+ oa as getChunks,
2946
2950
  an as getConfig,
2947
- da as getDeadline,
2948
- na as getDestTokenAmount,
2949
- aa as getDestTokenMinAmountPerChunk,
2950
- ra as getDuration,
2951
- xa as getErrors,
2951
+ ca as getDeadline,
2952
+ aa as getDestTokenAmount,
2953
+ sa as getDestTokenMinAmountPerChunk,
2954
+ ia as getDuration,
2955
+ Ta as getErrors,
2952
2956
  nn as getEstimatedDelayBetweenChunksMillis,
2953
- Ea as getMaxChunksError,
2954
- pa as getMaxFillDelayError,
2955
- ya as getMaxOrderDurationError,
2956
- oa as getMaxPossibleChunks,
2957
- ga as getMinChunkSizeUsd,
2958
- Aa as getMinFillDelayError,
2959
- ha as getMinOrderDurationError,
2960
- ba as getMinTradeSizeError,
2957
+ ga as getMaxChunksError,
2958
+ la as getMaxFillDelayError,
2959
+ ha as getMaxOrderDurationError,
2960
+ da as getMaxPossibleChunks,
2961
+ xa as getMinChunkSizeUsd,
2962
+ ba as getMinFillDelayError,
2963
+ Aa as getMinOrderDurationError,
2964
+ Ea as getMinTradeSizeError,
2961
2965
  Pn as getNetwork,
2962
2966
  Un as getOrderExcecutionRate,
2963
2967
  Nn as getOrderFillDelayMillis,
@@ -2965,18 +2969,19 @@ export {
2965
2969
  Mn as getPartnerChains,
2966
2970
  G as getPartnerIdentifier,
2967
2971
  sn as getPartners,
2968
- ca as getSrcTokenChunkAmount,
2969
- fa as getStopLossLimitPriceError,
2970
- la as getStopLossPriceError,
2971
- ma as getTakeProfitLimitPriceError,
2972
- ua as getTakeProfitPriceError,
2973
- sa as getTriggerPricePerChunk,
2972
+ pa as getSrcTokenChunkAmount,
2973
+ ma as getStopLossLimitPriceError,
2974
+ ua as getStopLossPriceError,
2975
+ ya as getTakeProfitLimitPriceError,
2976
+ fa as getTakeProfitPriceError,
2977
+ ra as getTriggerPricePerChunk,
2978
+ Vn as getTriggerPricePerTrade,
2974
2979
  In as isNativeAddress,
2975
- Ve as maxUint256,
2976
- Xt as nativeTokenAddresses,
2980
+ We as maxUint256,
2981
+ jt as nativeTokenAddresses,
2977
2982
  K as networks,
2978
- Vn as setApiMode,
2979
- wa as setUIVersion,
2980
- Fa as submitOrder,
2981
- jt as zeroAddress
2983
+ Wn as setApiMode,
2984
+ Fa as setUIVersion,
2985
+ Ca as submitOrder,
2986
+ Xt as zeroAddress
2982
2987
  };