@blockend/widget 1.0.60 → 1.0.61-beta.2

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.
Files changed (115) hide show
  1. package/dist/AdvancedSettings-DMVTMB1Z.js +60 -0
  2. package/dist/{AllRoutes-Bi2Qb6vT.js → AllRoutes-DIWsY_7s.js} +201 -198
  3. package/dist/{Box-DofFTOO9.js → Box-CSkOh5pT.js} +1 -1
  4. package/dist/EstGas-D0lMj040.js +1695 -0
  5. package/dist/{Grow-C7qv-xx7.js → Grow-DArf5BOf.js} +196 -192
  6. package/dist/{InputComp-B7JBOOCL.js → InputComp-BpwhlO5B.js} +3 -3
  7. package/dist/{LoadRoute-KBCAhdb3.js → LoadRoute-Dqk83p2o.js} +4 -4
  8. package/dist/{QuotesProgress-DaVjqEE8.js → QuotesProgress-D-bhAdY6.js} +1 -1
  9. package/dist/{SwapAsset-ClNXL1XN.js → SwapAsset-CeJghqM4.js} +1 -1
  10. package/dist/{Tooltip-BfAqBg9y.js → Tooltip-Bo6E3Ppn.js} +9 -6
  11. package/dist/{TxnButton-41zPru_N.js → TxnButton-06UcI8vZ.js} +75 -72
  12. package/dist/{add-Dtd6YmCJ.js → add-CnnoTaOE.js} +1 -1
  13. package/dist/{all-wallets-fWl6fl6Y.js → all-wallets-77I8A1dR.js} +1 -1
  14. package/dist/{app-store-DSLOwXZY.js → app-store-BHbNWU5O.js} +1 -1
  15. package/dist/{apple-BMDEkk8X.js → apple-BUqoJ3h4.js} +1 -1
  16. package/dist/{arrow-bottom-BWURPGva.js → arrow-bottom-BKIkvLUW.js} +1 -1
  17. package/dist/{arrow-bottom-circle-BR18TdWN.js → arrow-bottom-circle-CmtY1Go0.js} +1 -1
  18. package/dist/{arrow-left-DSHPaT9f.js → arrow-left-B1RmdyFf.js} +1 -1
  19. package/dist/{arrow-right-BQyfcxHk.js → arrow-right-DAGdMwrS.js} +1 -1
  20. package/dist/{arrow-top-RP3srPoV.js → arrow-top-DL8aloED.js} +1 -1
  21. package/dist/{bank-C9VWqird.js → bank-Cho2fj04.js} +1 -1
  22. package/dist/{basic-ChmJK0Xt.js → basic-Hq9EE7JN.js} +4 -4
  23. package/dist/{browser-CSkm7gnt.js → browser-B1tFXGo3.js} +1 -1
  24. package/dist/{card-qLWgu9c8.js → card-CAIekfsW.js} +1 -1
  25. package/dist/{ccip-QF_uXtAt.js → ccip-CQW-OT50.js} +1 -1
  26. package/dist/{checkmark-BmzqmMw0.js → checkmark-CMNFl8gr.js} +1 -1
  27. package/dist/{checkmark-bold-B6aImdAf.js → checkmark-bold-jZ_-Wln9.js} +1 -1
  28. package/dist/{chevron-bottom-t4h4eaxS.js → chevron-bottom-BXlfv0v_.js} +1 -1
  29. package/dist/{chevron-left-D3susSgC.js → chevron-left-CR6Vk7-R.js} +1 -1
  30. package/dist/{chevron-right-W13sAkua.js → chevron-right-CK7kmFE0.js} +1 -1
  31. package/dist/{chevron-top-Bx-QdB_J.js → chevron-top-5bB353uT.js} +1 -1
  32. package/dist/{chrome-store-CGxM7IYK.js → chrome-store-3zRMRPZ3.js} +1 -1
  33. package/dist/{clock-DLxk1mp4.js → clock-C9VfcQU_.js} +1 -1
  34. package/dist/{close-XyT_Ei7X.js → close-Dp60_0UW.js} +1 -1
  35. package/dist/{coinPlaceholder-COnVP39c.js → coinPlaceholder-B9q-Q9nc.js} +1 -1
  36. package/dist/{compass-B7Ua__ME.js → compass-D1YdDLDZ.js} +1 -1
  37. package/dist/{copy-CwqmRN0X.js → copy-wpPbMuG7.js} +1 -1
  38. package/dist/{core-HN_b3jpG.js → core-f2H2Z9Sf.js} +6190 -4570
  39. package/dist/{cursor-CZUzCZDa.js → cursor-BGD-Vp6U.js} +1 -1
  40. package/dist/{cursor-transparent-C-iNJp5e.js → cursor-transparent-Df_S-DGP.js} +1 -1
  41. package/dist/{desktop-CKvUvwiO.js → desktop-xGzb89jl.js} +1 -1
  42. package/dist/{disconnect-Baq1ttCe.js → disconnect-C-l5x3f5.js} +1 -1
  43. package/dist/{discord-D8jJPT-u.js → discord-BMihtS7L.js} +1 -1
  44. package/dist/{down-CbXkinMO.js → down-IP3JFhRv.js} +4 -3
  45. package/dist/{etherscan-DmvsfmlR.js → etherscan-BIDZ39Go.js} +1 -1
  46. package/dist/{exclamation-triangle-B5sVL0Op.js → exclamation-triangle-DtY9538O.js} +1 -1
  47. package/dist/{extension-DTURW9PD.js → extension-nyPuSGEb.js} +1 -1
  48. package/dist/{external-link-BhiyYwAM.js → external-link-CWQ6mRkJ.js} +1 -1
  49. package/dist/{facebook-BKU8pCSU.js → facebook-C9YV_9Ud.js} +1 -1
  50. package/dist/{farcaster-aPuBoT-f.js → farcaster-Bk5tC5cR.js} +1 -1
  51. package/dist/{filters-Dhcy_bWD.js → filters-Boj-Safw.js} +1 -1
  52. package/dist/{getChainIds-hFBaLC3P.js → getChainIds-DVwNZAc5.js} +6 -4
  53. package/dist/{getCosmosAddress-wW2QvGf4.js → getCosmosAddress-DGjk1iF-.js} +2653 -2587
  54. package/dist/{github-DpOcHBpK.js → github-CqlLNrtO.js} +1 -1
  55. package/dist/{google-Dlr5X4XZ.js → google-DWRbHt_B.js} +1 -1
  56. package/dist/{hamburger-CbTP1z8e.js → hamburger-CCqMn9nd.js} +436 -427
  57. package/dist/{help-circle-DfsreI1-.js → help-circle-Cv5722_F.js} +1 -1
  58. package/dist/{id-CgVrDv4g.js → id-BpuE8i1h.js} +1 -1
  59. package/dist/{image-BgZMfISb.js → image-BLabe1u_.js} +1 -1
  60. package/dist/{index-Doq8prid.js → index-3TDndzHy.js} +1 -1
  61. package/dist/{index-cmkdh21h.js → index-B7xlfFYR.js} +4 -4
  62. package/dist/{index-D-h2D2T4.js → index-BMaOhhWB.js} +2 -2
  63. package/dist/{index-ij8WLtCK.js → index-Bf3Fkna6.js} +32 -18
  64. package/dist/{index-DTish3yr.js → index-Bl2UpALc.js} +3 -1
  65. package/dist/{index-BzlNNUJC.js → index-BmPN76Lg.js} +5110 -5034
  66. package/dist/{index-CzIE4OVR.js → index-C0l8Ijyj.js} +1 -1
  67. package/dist/{index-W17Yun1B.js → index-DIsRIvWS.js} +78 -78
  68. package/dist/{index-DEzMTwnP.js → index-DtPZUylH.js} +32 -21
  69. package/dist/{index-CQef3aFT.js → index-X1wa5bpP.js} +19 -14
  70. package/dist/{index-Dfnahm9u.js → index-a8BP6V0o.js} +1151 -1134
  71. package/dist/{index-BNAc3BNQ.js → index-lJKy2Bhi.js} +345 -343
  72. package/dist/index.es-BvE3zZVY.js +14924 -0
  73. package/dist/{index.es-DznYPOeF.js → index.es-DLS0SSoV.js} +1 -1
  74. package/dist/index.es.js +1 -1
  75. package/dist/{info-CZQMmcBD.js → info-BROBzEn3.js} +1 -1
  76. package/dist/{info-circle-CA3WSSRD.js → info-circle-BhnTaYwQ.js} +1 -1
  77. package/dist/{lightbulb-8ISYXfUt.js → lightbulb-BMm8pAvQ.js} +1 -1
  78. package/dist/{mail-CHIth09p.js → mail-BBH0_xPX.js} +1 -1
  79. package/dist/{mobile-CrFtClXb.js → mobile-BKmYB0js.js} +1 -1
  80. package/dist/{more-mHern-4V.js → more-BgKFZ5_N.js} +1 -1
  81. package/dist/{network-placeholder-CoODkTLk.js → network-placeholder-Bx4Pd_VA.js} +1 -1
  82. package/dist/{nftPlaceholder-CG7DC4DT.js → nftPlaceholder-CjhjYlRs.js} +1 -1
  83. package/dist/{off-CrgcN-zp.js → off-CNWZ7rAK.js} +1 -1
  84. package/dist/{play-store-CQP9kqkp.js → play-store-CLp2fzCO.js} +1 -1
  85. package/dist/{plus-DHA7xDuc.js → plus-BUG6XdxV.js} +1 -1
  86. package/dist/{qr-code-zibhnzKq.js → qr-code-C-JVP33d.js} +1 -1
  87. package/dist/{recycle-horizontal-DywyCULr.js → recycle-horizontal-C0QxOqzM.js} +1 -1
  88. package/dist/{refresh-e2GocWQK.js → refresh-CyabrC0p.js} +1 -1
  89. package/dist/{reown-logo-BU64qOXz.js → reown-logo-ULFpSpZD.js} +1 -1
  90. package/dist/{search-DzxpvkH-.js → search-CzhkDgzL.js} +1 -1
  91. package/dist/{send-r9Pjl4vo.js → send-3zcoBLqV.js} +1 -1
  92. package/dist/{swapHorizontal-BTrXWq48.js → swapHorizontal-DkBtpUHQ.js} +1 -1
  93. package/dist/{swapHorizontalBold-CJqWkgp6.js → swapHorizontalBold-CwigaZ5c.js} +1 -1
  94. package/dist/{swapHorizontalMedium-DX7hDgRK.js → swapHorizontalMedium-CzzR3-0y.js} +1 -1
  95. package/dist/{swapHorizontalRoundedBold-C51tXWKa.js → swapHorizontalRoundedBold-C055Y8zs.js} +1 -1
  96. package/dist/{swapVertical-Crddwuzr.js → swapVertical-d-A3bfm6.js} +1 -1
  97. package/dist/{telegram-BC6rpZd8.js → telegram--pfczlkG.js} +1 -1
  98. package/dist/{three-dots-DC9iZV71.js → three-dots-CIEdgWJT.js} +1 -1
  99. package/dist/{twitch-Dqthmddu.js → twitch-CbcHu1ns.js} +1 -1
  100. package/dist/{twitterIcon-DIWxOs67.js → twitterIcon-DB90mhmN.js} +1 -1
  101. package/dist/{unsupportedProp-BW6bMgdV.js → unsupportedProp-BQSrS0LI.js} +1 -1
  102. package/dist/useRegisterError-NuUdpWyD.js +8923 -0
  103. package/dist/{verify-GrViE51Y.js → verify-C8Ud6dXo.js} +1 -1
  104. package/dist/{verify-filled-Cws_QO3X.js → verify-filled-CAbxeIrk.js} +1 -1
  105. package/dist/{w3m-modal-n7hzVP_I.js → w3m-modal-7qD9ca_a.js} +2 -2
  106. package/dist/{wallet-Cd1ruTUh.js → wallet-CALjCWYW.js} +1 -1
  107. package/dist/{wallet-placeholder-Ce4gGswZ.js → wallet-placeholder-2GP-1vJb.js} +1 -1
  108. package/dist/{walletconnect-CqpJhu9-.js → walletconnect-BuMmu4SH.js} +1 -1
  109. package/dist/{warning-circle-DQ6ZS1NO.js → warning-circle-CNQ1oGvz.js} +1 -1
  110. package/dist/widget.css +1 -1
  111. package/dist/{x-CR749er2.js → x-Bg_5LCup.js} +1 -1
  112. package/package.json +1 -1
  113. package/dist/EstGas-w0MeYkJr.js +0 -1574
  114. package/dist/index.es-C8qSCFHh.js +0 -13234
  115. package/dist/useRegisterError-D0oAcJrb.js +0 -8918
@@ -0,0 +1,1695 @@
1
+ import { jsx as o, jsxs as y, Fragment as H } from "react/jsx-runtime";
2
+ import { aE as Xt, aF as Yt, aG as te, aH as ee, aI as ne, aJ as re, u as d, l as rt, S as yt, a as _t, aA as Gt, aB as it } from "./index-BmPN76Lg.js";
3
+ import { O as ft } from "./index-C0l8Ijyj.js";
4
+ import kt, { useState as ot, useContext as K, useRef as pt, useEffect as M, createContext as oe, useMemo as se } from "react";
5
+ import { u as Mt, W as ie, B as ae, C as le, L as ce, i as Lt, f as xe, c as Ht, d as de, F as lt } from "./useRegisterError-NuUdpWyD.js";
6
+ import { useAccount as St, useConfig as ue, useSwitchChain as be } from "wagmi";
7
+ import { S as me } from "./shareicon-CG3v7iKI.js";
8
+ import { T as Ot } from "./Tooltip-Bo6E3Ppn.js";
9
+ import { L as we } from "./index.es-DLS0SSoV.js";
10
+ import { useStargateSigningClient as Rt, useAccount as pe } from "graz";
11
+ import { l as he, S as ye, D as fe } from "./down-IP3JFhRv.js";
12
+ import { u as ke, g as Dt, V as ge } from "./getCosmosAddress-DGjk1iF-.js";
13
+ import { useDynamicContext as zt } from "@dynamic-labs/sdk-react-core";
14
+ import { v as gt } from "./validError-CDlJpg_f.js";
15
+ import { getNextTxn as Se, createTransaction as Te, checkStatus as Ee, pollTransactionStatus as Ce, executeTransaction as ve } from "@blockend/compass-sdk";
16
+ import { useMutation as Ne, useQuery as Ae } from "@tanstack/react-query";
17
+ import { createClient as Ie, custom as De, walletActions as Fe } from "viem";
18
+ import { e as Be } from "./ethertousd-CC_ezooz.js";
19
+ async function $e(e, r = {}) {
20
+ let t;
21
+ if (r.connector) {
22
+ const { connector: l } = r;
23
+ if (e.state.status === "reconnecting" && !l.getAccounts && !l.getChainId)
24
+ throw new Xt({ connector: l });
25
+ const [f, h] = await Promise.all([
26
+ l.getAccounts().catch((v) => {
27
+ if (r.account === null)
28
+ return [];
29
+ throw v;
30
+ }),
31
+ l.getChainId()
32
+ ]);
33
+ t = {
34
+ accounts: f,
35
+ chainId: h,
36
+ connector: l
37
+ };
38
+ } else
39
+ t = e.state.connections.get(e.state.current);
40
+ if (!t)
41
+ throw new Yt();
42
+ const n = r.chainId ?? t.chainId, s = await t.connector.getChainId();
43
+ if (s !== t.chainId)
44
+ throw new te({
45
+ connectionChainId: t.chainId,
46
+ connectorChainId: s
47
+ });
48
+ const x = t.connector;
49
+ if (x.getClient)
50
+ return x.getClient({ chainId: n });
51
+ const a = ee(r.account ?? t.accounts[0]);
52
+ if (a && (a.address = ne(a.address)), r.account && !t.accounts.some((l) => l.toLowerCase() === a.address.toLowerCase()))
53
+ throw new re({
54
+ address: a.address,
55
+ connector: x
56
+ });
57
+ const b = e.chains.find((l) => l.id === n), p = await t.connector.getProvider({ chainId: n });
58
+ return Ie({
59
+ account: a,
60
+ chain: b,
61
+ name: "Connector Client",
62
+ transport: (l) => De(p)({ ...l, retryCount: 0 })
63
+ });
64
+ }
65
+ async function Ve(e, r = {}) {
66
+ return (await $e(e, r)).extend(Fe);
67
+ }
68
+ function je({ field: e }) {
69
+ var x, a, b;
70
+ const r = d((p) => p.persist), { getWallet: t } = Mt({ chainData: (r == null ? void 0 : r.fromChain) || {} }), n = ((x = t(r == null ? void 0 : r.fromChain)) == null ? void 0 : x.address) || null, s = e == "from" ? n && ((a = r == null ? void 0 : r.route) == null ? void 0 : a.userWalletAddress) || "" : ((b = r == null ? void 0 : r.route) == null ? void 0 : b.recipient) || "";
71
+ return /* @__PURE__ */ o("button", { style: { fontSize: "12px" }, className: "bw-bg-background-container bw-flex bw-items-center bw-justify-center bw-gap-x-2 bw-mb-[4px] bw-w-[100px] bw-h-[25px] bw-rounded-xl bw-border bw-border-border-primary", children: s ? /* @__PURE__ */ y(H, { children: [
72
+ /* @__PURE__ */ o("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: ((s == null ? void 0 : s.substring(0, 4)) || "") + "..." + ((s == null ? void 0 : s.substring(s.length - 4, s.length)) || "") }),
73
+ /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(ie, { fill: "var(--tw-text-primary)" }) })
74
+ ] }) : /* @__PURE__ */ o("div", { className: "bw-w-[10px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[10px]", children: "Connect " }) });
75
+ }
76
+ function w0({ chainData: e, coinData: r, amount: t, field: n }) {
77
+ var a, b, p, l, f;
78
+ const s = d((h) => h.configuration), x = d((h) => h.persist);
79
+ return /* @__PURE__ */ y(
80
+ "div",
81
+ {
82
+ style: {
83
+ boxShadow: s && s.customTheme && ((b = (a = s.customTheme) == null ? void 0 : a.shadow) == null ? void 0 : b.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
84
+ },
85
+ className: `bw-bg-background-container bw-relative bw-z-10 bw-min-w-[50%] bw-px-2 md:bw-min-w-[153px] bw-flex bw-flex-col bw-items-center bw-justify-start bw-pt-2 bw-rounded-lg bw-h-[75px] bw-border ${(((p = x.statusData) == null ? void 0 : p.status) == "partial-success" || ((l = x.statusData) == null ? void 0 : l.status) == "refunded") && n == "to" ? "bw-border-text-redtext" : "bw-border-border-primary"} `,
86
+ children: [
87
+ /* @__PURE__ */ y("div", { className: `${((f = r == null ? void 0 : r.symbol) == null ? void 0 : f.length) > 6 ? "bw-text-base" : "bw-text-lg"} bw-text-center bw-font-medium bw-text-text-primary`, children: [
88
+ /* @__PURE__ */ o("span", { children: t ? /* @__PURE__ */ o(ft, { value: t == null ? void 0 : t.toString(), decimal: 8 }) : 0 }),
89
+ " ",
90
+ /* @__PURE__ */ o("span", { children: (r == null ? void 0 : r.symbol) || "" }),
91
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: `on ${e == null ? void 0 : e.name}` })
92
+ ] }),
93
+ /* @__PURE__ */ o("div", { className: "bw-absolute -bw-bottom-4", children: /* @__PURE__ */ o(je, { field: n }) })
94
+ ]
95
+ }
96
+ );
97
+ }
98
+ function p0({ handleBack: e }) {
99
+ return /* @__PURE__ */ o("div", { className: "bw-flex bw-z-20 bw-relative bw-justify-center bw-mb-5", children: /* @__PURE__ */ o(
100
+ "button",
101
+ {
102
+ onClick: () => {
103
+ e();
104
+ },
105
+ className: "bw-absolute bw-left-0 bw-top-[25%]",
106
+ children: /* @__PURE__ */ o(ae, { fill: "var(--tw-text-secondary)" })
107
+ }
108
+ ) });
109
+ }
110
+ const Pe = "_loader_1g6xv_1", Ue = {
111
+ loader: Pe
112
+ };
113
+ function Ft() {
114
+ return /* @__PURE__ */ y("div", { className: Ue.loader, children: [
115
+ /* @__PURE__ */ o("span", {}),
116
+ /* @__PURE__ */ o("span", {}),
117
+ /* @__PURE__ */ o("span", {})
118
+ ] });
119
+ }
120
+ const ct = kt.createContext(!1);
121
+ function _e({ children: e }) {
122
+ return /* @__PURE__ */ o(
123
+ Ot,
124
+ {
125
+ onClose: () => {
126
+ },
127
+ disableInteractive: !0,
128
+ onClick: () => {
129
+ },
130
+ slotProps: {
131
+ popper: {
132
+ modifiers: [
133
+ {
134
+ name: "offset",
135
+ options: {
136
+ offset: [0, -10]
137
+ }
138
+ }
139
+ ]
140
+ }
141
+ },
142
+ className: "bw-text-text-button",
143
+ title: "Transaction Link",
144
+ children: e
145
+ }
146
+ );
147
+ }
148
+ function Ge({ fill: e }) {
149
+ return /* @__PURE__ */ y("svg", { width: "18", height: "9", viewBox: "0 0 18 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
150
+ /* @__PURE__ */ o("path", { d: "M6.34375 4.49902H11.4231", stroke: e, "stroke-width": "2", "stroke-linecap": "round" }),
151
+ /* @__PURE__ */ o("path", { d: "M4.81007 1C-0.269325 1 -0.270722 8 4.81007 8", stroke: e, "stroke-width": "2", "stroke-linecap": "round" }),
152
+ /* @__PURE__ */ o("path", { d: "M13.1899 1C18.2693 1 18.2707 8 13.1899 8", stroke: e, "stroke-width": "2", "stroke-linecap": "round" })
153
+ ] });
154
+ }
155
+ function Tt({ txnHash: e, children: r }) {
156
+ const [t, n] = ot(!1);
157
+ return /* @__PURE__ */ o(
158
+ Ot,
159
+ {
160
+ onClose: () => {
161
+ setTimeout(() => {
162
+ n(!1);
163
+ }, [1e3]);
164
+ },
165
+ disableInteractive: !0,
166
+ onClick: () => {
167
+ navigator.clipboard.writeText(e).then(() => {
168
+ n(!0);
169
+ });
170
+ },
171
+ slotProps: {
172
+ popper: {
173
+ modifiers: [
174
+ {
175
+ name: "offset",
176
+ options: {
177
+ offset: [0, -10]
178
+ }
179
+ }
180
+ ]
181
+ }
182
+ },
183
+ className: "bw-text-text-button",
184
+ title: `${t ? "Copied!" : "Copy"}`,
185
+ children: r
186
+ }
187
+ );
188
+ }
189
+ function Et({ fill: e }) {
190
+ return /* @__PURE__ */ y("svg", { width: "11", height: "13", viewBox: "0 0 11 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
191
+ /* @__PURE__ */ o("rect", { x: "0.5", y: "3.5", width: "7", height: "9", rx: "1.5", stroke: e }),
192
+ /* @__PURE__ */ o("path", { d: "M3 1H8C9.10457 1 10 1.89543 10 3V10", stroke: e, "stroke-linecap": "round" })
193
+ ] });
194
+ }
195
+ const Me = "6.13.5";
196
+ function Bt(e, r, t) {
197
+ for (let n in r) {
198
+ let s = r[n];
199
+ Object.defineProperty(e, n, { enumerable: !0, value: s, writable: !1 });
200
+ }
201
+ }
202
+ function at(e) {
203
+ if (e == null)
204
+ return "null";
205
+ if (Array.isArray(e))
206
+ return "[ " + e.map(at).join(", ") + " ]";
207
+ if (e instanceof Uint8Array) {
208
+ const r = "0123456789abcdef";
209
+ let t = "0x";
210
+ for (let n = 0; n < e.length; n++)
211
+ t += r[e[n] >> 4], t += r[e[n] & 15];
212
+ return t;
213
+ }
214
+ if (typeof e == "object" && typeof e.toJSON == "function")
215
+ return at(e.toJSON());
216
+ switch (typeof e) {
217
+ case "boolean":
218
+ case "symbol":
219
+ return e.toString();
220
+ case "bigint":
221
+ return BigInt(e).toString();
222
+ case "number":
223
+ return e.toString();
224
+ case "string":
225
+ return JSON.stringify(e);
226
+ case "object": {
227
+ const r = Object.keys(e);
228
+ return r.sort(), "{ " + r.map((t) => `${at(t)}: ${at(e[t])}`).join(", ") + " }";
229
+ }
230
+ }
231
+ return "[ COULD NOT SERIALIZE ]";
232
+ }
233
+ function Le(e, r, t) {
234
+ let n = e;
235
+ {
236
+ const x = [];
237
+ if (t) {
238
+ if ("message" in t || "code" in t || "name" in t)
239
+ throw new Error(`value will overwrite populated values: ${at(t)}`);
240
+ for (const a in t) {
241
+ if (a === "shortMessage")
242
+ continue;
243
+ const b = t[a];
244
+ x.push(a + "=" + at(b));
245
+ }
246
+ }
247
+ x.push(`code=${r}`), x.push(`version=${Me}`), x.length && (e += " (" + x.join(", ") + ")");
248
+ }
249
+ let s;
250
+ switch (r) {
251
+ case "INVALID_ARGUMENT":
252
+ s = new TypeError(e);
253
+ break;
254
+ case "NUMERIC_FAULT":
255
+ case "BUFFER_OVERRUN":
256
+ s = new RangeError(e);
257
+ break;
258
+ default:
259
+ s = new Error(e);
260
+ }
261
+ return Bt(s, { code: r }), t && Object.assign(s, t), s.shortMessage == null && Bt(s, { shortMessage: n }), s;
262
+ }
263
+ function He(e, r, t, n) {
264
+ throw Le(r, t, n);
265
+ }
266
+ function Oe(e, r, t, n) {
267
+ He(e, r, "INVALID_ARGUMENT", { argument: t, value: n });
268
+ }
269
+ ["NFD", "NFC", "NFKD", "NFKC"].reduce((e, r) => {
270
+ try {
271
+ if ("test".normalize(r) !== "test")
272
+ throw new Error("bad");
273
+ if (r === "NFD" && "é".normalize("NFD") !== "é")
274
+ throw new Error("broken");
275
+ e.push(r);
276
+ } catch {
277
+ }
278
+ return e;
279
+ }, []);
280
+ function Re(e, r, t) {
281
+ if (e instanceof Uint8Array)
282
+ return e;
283
+ if (typeof e == "string" && e.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)) {
284
+ const n = new Uint8Array((e.length - 2) / 2);
285
+ let s = 2;
286
+ for (let x = 0; x < n.length; x++)
287
+ n[x] = parseInt(e.substring(s, s + 2), 16), s += 2;
288
+ return n;
289
+ }
290
+ Oe(!1, "invalid BytesLike value", "value", e);
291
+ }
292
+ function ze(e, r) {
293
+ return Re(e);
294
+ }
295
+ function We(e) {
296
+ e = atob(e);
297
+ const r = new Uint8Array(e.length);
298
+ for (let t = 0; t < e.length; t++)
299
+ r[t] = e.charCodeAt(t);
300
+ return ze(r);
301
+ }
302
+ const Qe = "4.8.0", qe = { g: "LottieFiles AE 3.5.7", a: "", k: "", d: "", tc: "" }, Je = 30, Ke = 0, Ze = 54, Xe = 512, Ye = 512, tn = "Comp 1", en = 0, nn = /* @__PURE__ */ JSON.parse('[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Outer Line Effect End Sphere 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35,"s":[100]},{"t":44,"s":[18]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":35,"s":[256,256,0],"to":[4.86,0.612,0],"ti":[-4.86,-0.612,0]},{"t":44,"s":[285.162,259.669,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[6.875,6.875],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[49.625,-52.688],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":35,"op":44,"st":-5,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Outer Line Effect End Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35,"s":[100]},{"t":44,"s":[18]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":35,"s":[256,256,0],"to":[2.124,2.897,0],"ti":[-2.124,-2.897,0]},{"t":44,"s":[268.746,273.381,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[3.75,3.75],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[45.875,-50.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":35,"op":44,"st":-5,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Tick End Effect Sphere 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":13,"s":[100]},{"t":19,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[310.847,201.925,0],"to":[1.674,-2.382,0],"ti":[-1.674,2.382,0]},{"t":19,"s":[320.89,187.634,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[216.3,216.3,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":13,"op":19,"st":-5,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Tick End Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":13,"s":[100]},{"t":19,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[256,256,0],"to":[-0.515,-3.058,0],"ti":[0.515,3.058,0]},{"t":19,"s":[252.91,237.653,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":13,"op":19,"st":-5,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Tick Mid Effect Sphere 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[100]},{"t":18,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[257.448,257.835,0],"to":[-1.577,2.543,0],"ti":[1.577,-2.543,0]},{"t":18,"s":[247.985,273.092,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.759,0],[0,-0.759],[-0.759,0],[0,0.759]],"o":[[-0.759,0],[0,0.759],[0.759,0],[0,-0.759]],"v":[[0,-1.375],[-1.375,0],[0,1.375],[1.375,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-12.406,36.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":18,"st":-5,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Tick Mid Effect Sphere 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[100]},{"t":18,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[256,256,0],"to":[-1.481,3.734,0],"ti":[1.481,-3.734,0]},{"t":18,"s":[247.116,278.403,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[6.375,6.375],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-7.594,40.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":18,"st":-5,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Tick Mid Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[100]},{"t":18,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[256,256,0],"to":[3.251,2.768,0],"ti":[-3.251,-2.768,0]},{"t":18,"s":[275.506,272.609,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.484,0],[0,-1.484],[-1.484,0],[0,1.484]],"o":[[-1.484,0],[0,1.484],[1.484,0],[0,-1.484]],"v":[[0,-2.688],[-2.688,0],[0,2.688],[2.688,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.156,37.688],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":18,"st":-5,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Intro Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":3,"s":[100]},{"t":11,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[55.247,114.922,0],"to":[-0.161,-1.899,0],"ti":[1.159,2.993,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[54.281,103.528,0],"to":[-1.159,-2.993,0],"ti":[0.998,1.094,0]},{"t":11,"s":[48.294,96.962,0]}],"ix":2},"a":{"a":0,"k":[-54.781,-49.094,0],"ix":1},"s":{"a":0,"k":[185.4,185.4,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[4.688,4.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-54.781,-49.094],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":3,"op":11,"st":-5,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Intro Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":3,"s":[100]},{"t":11,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[78.035,105.266,0],"to":[0.483,-1.996,0],"ti":[-1.642,2.8,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[80.932,93.292,0],"to":[1.642,-2.8,0],"ti":[-1.159,0.805,0]},{"t":11,"s":[87.885,88.464,0]}],"ix":2},"a":{"a":0,"k":[-54.781,-49.094,0],"ix":1},"s":{"a":0,"k":[185.4,185.4,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[4.688,4.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-54.781,-49.094],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":3,"op":11,"st":-5,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Tick Thin Line","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256,256,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-34.25,11],[-7,37.75],[35.5,-21]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":5,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":9,"s":[3]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[12]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":11,"s":[28]},{"t":12,"s":[57]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":5,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[22]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":9,"s":[43]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[77]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":11,"s":[100]},{"t":12,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":5,"op":12,"st":-5,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Ball","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[32]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":3,"s":[32]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[45]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[47]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[-57]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":14,"s":[-57]},{"i":{"x":[0.583],"y":[0.795]},"o":{"x":[0.167],"y":[0]},"t":20,"s":[-57]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.417],"y":[-1.147]},"t":21,"s":[-104.5]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":22,"s":[-96]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":23,"s":[-53]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":24,"s":[-19]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":25,"s":[34]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":26,"s":[111]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":27,"s":[174]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":28,"s":[201]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":29,"s":[214]},{"t":30,"s":[226]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[34.486,166.197,0],"to":[5.794,-6.438,0],"ti":[-18.669,-10.429,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":3,"s":[69.248,127.572,0],"to":[18.669,10.429,0],"ti":[-22.016,-28.84,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":5,"s":[146.498,228.769,0],"to":[22.016,28.84,0],"ti":[-19.57,-8.755,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":6,"s":[201.346,300.612,0],"to":[19.57,8.755,0],"ti":[-17.381,13.004,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":7,"s":[263.918,281.299,0],"to":[17.381,-13.004,0],"ti":[-12.36,17.253,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[305.633,222.589,0],"to":[12.36,-17.253,0],"ti":[-12.875,17.381,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":9,"s":[338.078,177.784,0],"to":[12.875,-17.381,0],"ti":[-7.468,9.914,0]},{"i":{"x":0.667,"y":0.667},"o":{"x":0.333,"y":0.333},"t":13,"s":[382.883,118.302,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":14,"s":[382.883,118.302,0],"to":[10.557,9.399,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":15,"s":[382.883,118.302,0],"to":[10.557,9.399,0],"ti":[-21.91,-41.023,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":20,"s":[434.641,186.282,0],"to":[16.555,30.997,0],"ti":[-0.386,-0.772,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":22,"s":[451.056,263.146,0],"to":[0.386,0.772,0],"ti":[0,-1.416,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":23,"s":[395.436,388.291,0],"to":[0,1.416,0],"ti":[0.386,-0.644,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":24,"s":[300.419,445.456,0],"to":[-0.386,0.644,0],"ti":[1.288,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":25,"s":[136.649,407.603,0],"to":[-1.288,0,0],"ti":[1.288,1.545,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":26,"s":[84.891,170.446,0],"to":[-1.288,-1.545,0],"ti":[-1.03,0.772,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":27,"s":[248.661,66.158,0],"to":[1.03,-0.772,0],"ti":[-1.931,0.129,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":28,"s":[335.954,87.016,0],"to":[1.931,-0.129,0],"ti":[-0.129,-0.386,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":29,"s":[369.171,107.101,0],"to":[0.129,0.386,0],"ti":[-0.193,-0.064,0]},{"t":30,"s":[380.759,115.598,0]}],"ix":2},"a":{"a":0,"k":[-59.688,-42.062,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[309,309,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":3,"s":[309,309,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":5,"s":[302.82,250.29,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":6,"s":[358.44,213.21,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":7,"s":[358.44,213.21,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":9,"s":[284.28,213.21,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":13,"s":[244.11,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":14,"s":[244.11,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":20,"s":[244.11,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":22,"s":[342.99,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":23,"s":[342.99,210.12,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":24,"s":[342.99,222.48,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":25,"s":[373.89,207.03,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":26,"s":[373.89,207.03,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":27,"s":[315.18,176.13,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":28,"s":[216.3,117.42,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":29,"s":[163.77,86.52,100]},{"t":30,"s":[71.07,55.62,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[21.375,21.375],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-60.562,-43.562],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":30,"st":-5,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"Tick Main","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256.386,247.116,0],"ix":2},"a":{"a":0,"k":[0.125,-2.875,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-27.375,2.625],[-7.75,21.5],[27.625,-27.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[11]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[51]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":8,"s":[79]},{"t":11,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":5,"op":49,"st":-5,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"Main Outer Line","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":40,"ix":10},"p":{"a":0,"k":[254.455,259.863,0],"ix":2},"a":{"a":0,"k":[-0.5,1.25,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[123.5,123.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":21,"s":[11]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[27]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24,"s":[35]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":25,"s":[50]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":26,"s":[73]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[89]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":28,"s":[96]},{"t":29,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":7,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[98.384,97.558],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":16,"op":49,"st":-5,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"Outer Thin Stroke","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":40,"ix":10},"p":{"a":0,"k":[254.455,259.863,0],"ix":2},"a":{"a":0,"k":[-0.5,1.25,0],"ix":1},"s":{"a":0,"k":[355.35,355.35,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[123.5,123.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":16,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":21,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":25,"s":[6]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":26,"s":[20]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":29,"s":[23]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":30,"s":[29]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":31,"s":[45]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":32,"s":[69]},{"t":35,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":16,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":21,"s":[11]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":25,"s":[29]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":28,"s":[50]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":29,"s":[57]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":31,"s":[81]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":32,"s":[100]},{"t":35,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[98.384,97.558],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":16,"op":35,"st":-5,"bm":0}]}]'), rn = [{ ddd: 0, ind: 1, ty: 3, nm: "Null 1", sr: 1, ks: { o: { a: 0, k: 0, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [0, 0, 0], ix: 1 }, s: { a: 0, k: [309, 309, 100], ix: 6 } }, ao: 0, ip: 0, op: 54, st: 0, bm: 0 }, { ddd: 0, ind: 2, ty: 0, nm: "Pre-comp 1", refId: "comp_0", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [256, 256, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, ef: [{ ty: 21, nm: "Fill", np: 9, mn: "ADBE Fill", ix: 1, en: 1, ef: [{ ty: 10, nm: "Fill Mask", mn: "ADBE Fill-0001", ix: 1, v: { a: 0, k: 0, ix: 1 } }, { ty: 7, nm: "All Masks", mn: "ADBE Fill-0007", ix: 2, v: { a: 0, k: 0, ix: 2 } }, { ty: 2, nm: "Color", mn: "ADBE Fill-0002", ix: 3, v: { a: 0, k: [0.289119571447, 0.784313738346, 0.731881439686, 1], ix: 3 } }, { ty: 7, nm: "Invert", mn: "ADBE Fill-0006", ix: 4, v: { a: 0, k: 0, ix: 4 } }, { ty: 0, nm: "Horizontal Feather", mn: "ADBE Fill-0003", ix: 5, v: { a: 0, k: 0, ix: 5 } }, { ty: 0, nm: "Vertical Feather", mn: "ADBE Fill-0004", ix: 6, v: { a: 0, k: 0, ix: 6 } }, { ty: 0, nm: "Opacity", mn: "ADBE Fill-0005", ix: 7, v: { a: 0, k: 1, ix: 7 } }] }], w: 512, h: 512, ip: 5, op: 54, st: 5, bm: 0 }], on = [], sn = {
303
+ v: Qe,
304
+ meta: qe,
305
+ fr: Je,
306
+ ip: Ke,
307
+ op: Ze,
308
+ w: Xe,
309
+ h: Ye,
310
+ nm: tn,
311
+ ddd: en,
312
+ assets: nn,
313
+ layers: rn,
314
+ markers: on
315
+ }, an = "_gradienttext_uc65n_6", ln = "_gradientbutton_uc65n_19", st = {
316
+ gradienttext: an,
317
+ gradientbutton: ln
318
+ };
319
+ function cn({ handleBack: e }) {
320
+ var u, S, I, N, k, w, g;
321
+ const r = d((A) => A.gradient), t = d((A) => A.persist), n = d((A) => A.configuration), s = t == null ? void 0 : t.stepData.stepType, a = ((t == null ? void 0 : t.txnHashObj) || [])[(u = t == null ? void 0 : t.stepData) == null ? void 0 : u.stepId] || {}, b = s === "bridge" ? (a == null ? void 0 : a.destTxnHash) || (a == null ? void 0 : a.srcTxnHash) : (a == null ? void 0 : a.srcTxnHash) || "", p = (S = t == null ? void 0 : t.historyData) == null ? void 0 : S.finalTxnHash, l = b || p || "", f = s === "bridge" ? (a == null ? void 0 : a.destTxnUrl) || (a == null ? void 0 : a.srcTxnUrl) : (a == null ? void 0 : a.srcTxnUrl) || "", h = (I = t == null ? void 0 : t.historyData) == null ? void 0 : I.finalTxnUrl, v = f || h || "", $ = t.toCoin || {}, C = t.route || {}, _ = t.toChain || {};
322
+ let i = ((N = t == null ? void 0 : t.statusData) == null ? void 0 : N.outputAmountDisplay) || 0, c = (Number(i) ? i : Number(i)) || (C == null ? void 0 : C.outputAmountDisplay) || 0;
323
+ return /* @__PURE__ */ y("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-z-50 bw-items-center bw-justify-center bw-bottom-0", children: [
324
+ /* @__PURE__ */ y(
325
+ "div",
326
+ {
327
+ style: {
328
+ boxShadow: n && n.customTheme && ((w = (k = n.customTheme) == null ? void 0 : k.shadow) == null ? void 0 : w.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
329
+ },
330
+ className: "bw-flex bw-items-center bw-rounded-xl bw-w-full bw-justify-between bw-bg-background-container bw-border bw-border-border-primary bw-p-2",
331
+ children: [
332
+ /* @__PURE__ */ y("div", { children: [
333
+ /* @__PURE__ */ o(
334
+ "p",
335
+ {
336
+ style: { ...n.gradientStyle, backgroundClip: "text" },
337
+ className: `bw-text-lg ${r || `${(g = n == null ? void 0 : n.gradientStyle) != null && g.background ? "" : "bw-bg-gradient-to-l bw-from-[#2CFFE4] bw-to-[#A45EFF]"}`} bw-bg-clip-text bw-font-medium bw-text-transparent`,
338
+ children: "Transaction Successful"
339
+ }
340
+ ),
341
+ /* @__PURE__ */ y("p", { className: "bw-text-2xl bw-font-medium bw-text-text-primary", children: [
342
+ /* @__PURE__ */ o(ft, { value: c, decimal: 10 }),
343
+ " ",
344
+ $.symbol
345
+ ] }),
346
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-mb-2 bw-font-normal bw-text-text-secondary", children: `Received on ${_.name || _.blockchain} chain` }),
347
+ /* @__PURE__ */ y("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
348
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: `Tx id: ${l ? `${l.substring(0, 5)}...${l.substring(
349
+ l.length - 5,
350
+ l.length
351
+ )}` : ""}` }),
352
+ /* @__PURE__ */ o("div", { className: "bw-cursor-pointer", children: /* @__PURE__ */ o(Tt, { txnHash: l, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(Et, { fill: "var(--tw-text-secondary)" }) }) }) }),
353
+ /* @__PURE__ */ o("a", { href: v, target: "_blank", children: /* @__PURE__ */ o("div", { className: "bw-cursor-pointer", children: /* @__PURE__ */ o(me, { fill: "var(--tw-text-secondary)" }) }) })
354
+ ] })
355
+ ] }),
356
+ /* @__PURE__ */ o("div", { className: " bw-flex bw-justify-center bw-items-center bw-w-[105px] bw-h-[105px]", children: /* @__PURE__ */ o(we, { animationData: sn, loop: !0 }) })
357
+ ]
358
+ }
359
+ ),
360
+ /* @__PURE__ */ o(
361
+ "button",
362
+ {
363
+ onClick: e,
364
+ style: { ...n == null ? void 0 : n.gradientStyle },
365
+ className: `bw-w-full ${st.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`,
366
+ children: /* @__PURE__ */ o(
367
+ "div",
368
+ {
369
+ onClick: e,
370
+ className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full",
371
+ children: "Start Again"
372
+ }
373
+ )
374
+ }
375
+ )
376
+ ] });
377
+ }
378
+ const Wt = kt.createContext(!1);
379
+ function xn({ disableButton: e, handleStep: r, txnProcessType: t, txnTextObj: n }) {
380
+ var h, v, $;
381
+ const s = d((C) => C.persist), x = d((C) => C.configuration);
382
+ d((C) => C.cosmosChainIds);
383
+ const a = d((C) => C.fromChain);
384
+ let b = e ? {} : { ...x == null ? void 0 : x.gradientStyle };
385
+ const { data: p, isLoading: l } = Rt({
386
+ chainId: [a.chainId],
387
+ multiChain: !0
388
+ });
389
+ let f = ((h = s == null ? void 0 : s.fromChain) == null ? void 0 : h.networkType) == "cosmos" ? l : !1;
390
+ return !rt.isEmpty(s == null ? void 0 : s.stepData) && !f ? /* @__PURE__ */ o(
391
+ "button",
392
+ {
393
+ disabled: e || !n,
394
+ className: `bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-full bw-rounded-sm ${e ? "bw-bg-border-primary bw-p-[1px]" : st.gradientbutton + " bw-p-[3px]"}`,
395
+ onClick: r,
396
+ style: {
397
+ ...b,
398
+ boxShadow: x && x.customTheme && (($ = (v = x.customTheme) == null ? void 0 : v.shadow) == null ? void 0 : $.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
399
+ },
400
+ children: /* @__PURE__ */ y("div", { className: "bw-bg-background-container bw-w-full bw-h-full bw-flex bw-items-center bw-justify-center", children: [
401
+ e || !n && /* @__PURE__ */ o("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ o(le, { size: 22, thickness: 5, color: "inherit" }) }),
402
+ /* @__PURE__ */ o(
403
+ "p",
404
+ {
405
+ className: ` ${e ? "bw-text-text-secondary bw-font-normal" : "bw-text-text-primary bw-font-bold"} bw-text-2xl `,
406
+ children: n == null ? void 0 : n[t == "process" ? "processingCta" : "preCta"]
407
+ }
408
+ )
409
+ ] })
410
+ }
411
+ ) : /* @__PURE__ */ o(yt, { className: "bw-bg-background-secondary bw-rounded-sm bw-w-full", animation: "wave", height: 50 });
412
+ }
413
+ function Qt({ errorText: e, heading: r = "Transaction Failed" }) {
414
+ const t = d((n) => n.persist);
415
+ return /* @__PURE__ */ y(H, { children: [
416
+ /* @__PURE__ */ o("p", { className: "bw-text-lg bw-font-medium bw-text-text-primary bw-mb-1 bw-text-center", children: r }),
417
+ /* @__PURE__ */ y("div", { className: "bw-w-full bw-mb-2 ", children: [
418
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-font-bold bw-text-text-primary ", children: "Route Id" }),
419
+ /* @__PURE__ */ y("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
420
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: t == null ? void 0 : t.routeId }),
421
+ /* @__PURE__ */ o(Tt, { txnHash: t == null ? void 0 : t.routeId, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(Et, { fill: "var(--tw-text-secondary)" }) }) })
422
+ ] })
423
+ ] }),
424
+ /* @__PURE__ */ y("div", { className: "bw-text-left bw-w-full bw-mb-2 ", children: [
425
+ e != null && e.length ? /* @__PURE__ */ o("p", { className: "bw-text-sm bw-font-bold bw-text-text-primary ", children: "Error" }) : /* @__PURE__ */ o(H, {}),
426
+ /* @__PURE__ */ o("div", { className: "bw-text-left bw-max-h-[60px] bw-overflow-auto ", children: /* @__PURE__ */ o("p", { style: { wordBreak: "break-all" }, className: "bw-text-xs bw-leading-5 bw-pr-2 bw-w-full md:bw-max-w-[420px] bw-font-normal bw-mb-2 bw-text-left bw-text-text-redtext", children: e }) })
427
+ ] })
428
+ ] });
429
+ }
430
+ function dn({ handleGoBack: e, errorText: r, txnTextObj: t, handleExeTxn: n, handleDisable: s }) {
431
+ var b, p, l, f;
432
+ const x = d((h) => h.configuration), a = d((h) => h.persist);
433
+ return /* @__PURE__ */ y("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-border-border-primary bw-pt-3 bw-w-full bw-bottom-0 bw-flex bw-flex-col bw-justify-center bw-items-center", children: [
434
+ /* @__PURE__ */ o(Qt, { errorText: r }),
435
+ a.isHistory ? /* @__PURE__ */ o(H, {}) : /* @__PURE__ */ y("div", { className: "bw-w-full bw-flex bw-items-center bw-gap-x-2", children: [
436
+ /* @__PURE__ */ o(
437
+ "button",
438
+ {
439
+ style: {
440
+ boxShadow: x && x.customTheme && ((p = (b = x.customTheme) == null ? void 0 : b.shadow) == null ? void 0 : p.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
441
+ },
442
+ className: "bw-border bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-[50%] bw-bg-background-container bw-border-border-primary",
443
+ onClick: () => {
444
+ e();
445
+ },
446
+ children: /* @__PURE__ */ o(
447
+ "p",
448
+ {
449
+ style: {
450
+ ...x.gradientStyle,
451
+ backgroundClip: "text"
452
+ },
453
+ className: ` ${st.gradienttext} bw-text-2xl bw-font-normal`,
454
+ children: "Home"
455
+ }
456
+ )
457
+ }
458
+ ),
459
+ /* @__PURE__ */ o(
460
+ "button",
461
+ {
462
+ style: {
463
+ ...x == null ? void 0 : x.gradientStyle,
464
+ boxShadow: x && x.customTheme && ((f = (l = x.customTheme) == null ? void 0 : l.shadow) == null ? void 0 : f.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
465
+ },
466
+ className: ` bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-[50%] ${st.gradientbutton} bw-rounded-sm bw-p-[3px] `,
467
+ onClick: () => {
468
+ n(), s(!0);
469
+ },
470
+ children: /* @__PURE__ */ o("div", { className: " bw-bg-background-container bw-w-full bw-h-full bw-flex bw-items-center bw-justify-center", children: /* @__PURE__ */ o(
471
+ "p",
472
+ {
473
+ style: {
474
+ ...x.gradientStyle,
475
+ backgroundClip: "text"
476
+ },
477
+ className: " bw-text-text-primary bw-text-2xl bw-font-bold",
478
+ children: "Try Again"
479
+ }
480
+ ) })
481
+ }
482
+ )
483
+ ] })
484
+ ] });
485
+ }
486
+ function un({ txnTextObj: e, txnProcessType: r, errorText: t, allSteps: n }) {
487
+ var x, a, b;
488
+ const s = d((p) => p.persist);
489
+ return /* @__PURE__ */ y(H, { children: [
490
+ /* @__PURE__ */ o("p", { className: "bw-text-lg bw-font-medium bw-mb-1 bw-text-text-primary", children: s != null && s.stepStatus && (s != null && s.stepStatus[n == null ? void 0 : n.currentStep]) ? ((a = e == null ? void 0 : e.status) == null ? void 0 : a[(x = s == null ? void 0 : s.stepStatus[n == null ? void 0 : n.currentStep]) == null ? void 0 : x.status]) || (e == null ? void 0 : e[(b = s == null ? void 0 : s.stepStatus[n == null ? void 0 : n.currentStep]) == null ? void 0 : b.type]) : "" }),
491
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-text-center bw-font-medium bw-mb-4 bw-text-text-secondary", children: e == null ? void 0 : e[r == "process" ? "processingDescription" : r == "loading" ? "loadingDescription" : "preDescription"] }),
492
+ /* @__PURE__ */ o("p", { className: "bw-text-xs bw-font-normal bw-text-center bw-text-text-redtext ", children: t })
493
+ ] });
494
+ }
495
+ function bn({ i: e, item: r }) {
496
+ var b, p, l, f;
497
+ const t = d((h) => h.persist), n = (t == null ? void 0 : t.txnHashObj) || [], s = (p = (b = n[r.stepId]) == null ? void 0 : b.destTxnUrl) != null && p.length ? (l = n[r.stepId]) == null ? void 0 : l.destTxnUrl : (f = n[r.stepId]) == null ? void 0 : f.srcTxnUrl, x = r.destTxnUrl || r.srcTxnUrl, a = s || x;
498
+ return a != null && a.length ? /* @__PURE__ */ o("a", { target: "_blank", className: "bw-relative bw-z-50 bw-mt-1", href: a, children: /* @__PURE__ */ o(_e, { children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(Ge, { fill: "var(--tw-text-primary)" }) }) }) }) : /* @__PURE__ */ o(H, {});
499
+ }
500
+ function mn({ item: e, i: r }) {
501
+ var x, a, b, p, l, f, h, v, $, C, _;
502
+ const { isErrorMessage: t, handleErrorMessage: n } = K(ct), s = d((i) => i.persist);
503
+ return s == null || s.allSteps, /* @__PURE__ */ y("div", { children: [
504
+ /* @__PURE__ */ o("h1", { className: ` ${((a = (x = e == null ? void 0 : e.texts) == null ? void 0 : x.heading) == null ? void 0 : a.length) > 34 ? "bw-text-base" : "bw-text-lg"} ${((b = s == null ? void 0 : s.allSteps) == null ? void 0 : b.currentStep) == r ? "bw-text-text-primary" : "bw-text-text-secondary"} bw-leading-none bw-mt-[-2px]`, children: (p = e == null ? void 0 : e.texts) == null ? void 0 : p.heading }),
505
+ s != null && s.stepStatus && (s != null && s.stepStatus[r]) ? /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o("p", { className: "bw-text-sm bw-text-text-secondary bw-ml-3 bw-mt-1", children: t && ((l = s == null ? void 0 : s.stepStatus[r]) == null ? void 0 : l.status) !== "failed" && r == ((f = s == null ? void 0 : s.allSteps) == null ? void 0 : f.currentStep) ? "Failed" : (($ = (h = e == null ? void 0 : e.texts) == null ? void 0 : h.status) == null ? void 0 : $[(v = s == null ? void 0 : s.stepStatus[r]) == null ? void 0 : v.status]) || ((_ = e == null ? void 0 : e.texts) == null ? void 0 : _[(C = s == null ? void 0 : s.stepStatus[r]) == null ? void 0 : C.type]) }) }) : r == 0 ? /* @__PURE__ */ o("div", { className: "bw-h-[20px] bw-mt-[4px] bw-w-full", children: /* @__PURE__ */ o(yt, { className: "bw-bg-background-secondary bw-rounded-lg bw-w-full", animation: "wave" }) }) : /* @__PURE__ */ o(H, {})
506
+ ] });
507
+ }
508
+ function $t({ spinnerColor: e, stopColor: r }) {
509
+ return /* @__PURE__ */ y(
510
+ "svg",
511
+ {
512
+ width: "17",
513
+ height: "18",
514
+ viewBox: "0 0 17 18",
515
+ fill: "none",
516
+ xmlns: "http://www.w3.org/2000/svg",
517
+ children: [
518
+ /* @__PURE__ */ o(
519
+ "path",
520
+ {
521
+ d: "M5.23438 8.90997L7.625 11.1346L12.0948 5.18945",
522
+ stroke: "url(#paint0_linear_2764_26377)",
523
+ "stroke-width": "1.5"
524
+ }
525
+ ),
526
+ /* @__PURE__ */ o(
527
+ "path",
528
+ {
529
+ d: "M16.0563 13.3423C14.5038 15.802 11.778 17.4336 8.67473 17.4336C5.16232 17.4336 2.1335 15.3435 0.742188 12.3281",
530
+ stroke: "#8A8F8E",
531
+ "stroke-width": "0.25"
532
+ }
533
+ ),
534
+ /* @__PURE__ */ o(
535
+ "path",
536
+ {
537
+ d: "M16.0563 13.3423C14.5038 15.802 11.778 17.4336 8.67473 17.4336C5.16232 17.4336 2.1335 15.3435 0.742188 12.3281",
538
+ stroke: "#8A8F8E",
539
+ "stroke-width": "0.25"
540
+ }
541
+ ),
542
+ /* @__PURE__ */ o("circle", { cx: "8.68848", cy: "8.7041", r: "7.48535", stroke: "#8A8F8E" }),
543
+ /* @__PURE__ */ o("defs", { children: /* @__PURE__ */ y(
544
+ "linearGradient",
545
+ {
546
+ id: "paint0_linear_2764_26377",
547
+ x1: "13.3956",
548
+ y1: "7.30551",
549
+ x2: "0.983954",
550
+ y2: "7.29133",
551
+ gradientUnits: "userSpaceOnUse",
552
+ children: [
553
+ /* @__PURE__ */ o("stop", { "stop-color": e || "#2CFFE4" }),
554
+ /* @__PURE__ */ o("stop", { offset: "1", "stop-color": r || "#A45EFF" })
555
+ ]
556
+ }
557
+ ) })
558
+ ]
559
+ }
560
+ );
561
+ }
562
+ const wn = "4.8.0", pn = { g: "LottieFiles AE 3.5.7", a: "", k: "", d: "", tc: "" }, hn = 25, yn = 0, fn = 51, kn = 512, gn = 512, Sn = "Comp 1", Tn = 0, En = [], Cn = [{ ddd: 0, ind: 1, ty: 4, nm: "Shape Layer 1", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [-7, -8, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ d: 1, ty: "el", s: { a: 0, k: [214, 214], ix: 2 }, p: { a: 0, k: [0, 0], ix: 3 }, nm: "Ellipse Path 1", mn: "ADBE Vector Shape - Ellipse", hd: !1 }, { ty: "fl", c: { a: 0, k: [1, 1, 1, 1], ix: 4 }, o: { a: 0, k: 100, ix: 5 }, r: 1, bm: 2, nm: "Fill 1", mn: "ADBE Vector Graphic - Fill", hd: !1 }, { ty: "tr", p: { a: 0, k: [-7, -8], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "Ellipse 1", np: 3, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: !1 }], ip: 0, op: 51, st: 0, bm: 0 }, { ddd: 0, ind: 2, ty: 4, nm: "Shape Layer 2", sr: 1, ks: { o: { a: 1, k: [{ i: { x: [0.667], y: [1] }, o: { x: [0.333], y: [0] }, t: 11, s: [100] }, { i: { x: [0.667], y: [1] }, o: { x: [0.333], y: [0] }, t: 25, s: [0] }, { i: { x: [0.667], y: [1] }, o: { x: [0.333], y: [0] }, t: 37, s: [100] }, { t: 51, s: [0] }], ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [-7, -8, 0], ix: 1 }, s: { a: 1, k: [{ i: { x: [0.667, 0.667, 0.667], y: [1, 1, 1] }, o: { x: [0.333, 0.333, 0.333], y: [0, 0, 0] }, t: 0, s: [59, 59, 100] }, { i: { x: [0.667, 0.667, 0.667], y: [1, 1, 1] }, o: { x: [0.333, 0.333, 0.333], y: [0, 0, 0] }, t: 25, s: [228, 228, 100] }, { i: { x: [0.667, 0.667, 0.667], y: [1, 1, 1] }, o: { x: [0.333, 0.333, 0.333], y: [0, 0, 0] }, t: 26, s: [59, 59, 100] }, { t: 51, s: [228, 228, 100] }], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ d: 1, ty: "el", s: { a: 0, k: [214, 214], ix: 2 }, p: { a: 0, k: [0, 0], ix: 3 }, nm: "Ellipse Path 1", mn: "ADBE Vector Shape - Ellipse", hd: !1 }, { ty: "fl", c: { a: 0, k: [1, 1, 1, 1], ix: 4 }, o: { a: 0, k: 100, ix: 5 }, r: 1, bm: 2, nm: "Fill 1", mn: "ADBE Vector Graphic - Fill", hd: !1 }, { ty: "tr", p: { a: 0, k: [-7, -8], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "Ellipse 1", np: 3, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: !1 }], ip: 0, op: 51, st: 0, bm: 0 }], vn = [], Nn = {
563
+ v: wn,
564
+ meta: pn,
565
+ fr: hn,
566
+ ip: yn,
567
+ op: fn,
568
+ w: kn,
569
+ h: gn,
570
+ nm: Sn,
571
+ ddd: Tn,
572
+ assets: En,
573
+ layers: Cn,
574
+ markers: vn
575
+ };
576
+ function An() {
577
+ const e = pt(null), r = d((t) => t.configuration);
578
+ return M(() => {
579
+ var n, s;
580
+ const t = ce.loadAnimation({
581
+ container: e.current,
582
+ animationData: he.flatten(
583
+ (n = r == null ? void 0 : r.gradientStyle) != null && n.spinnerColor ? (s = r == null ? void 0 : r.gradientStyle) == null ? void 0 : s.spinnerColor : "#2CFFE4",
584
+ Nn
585
+ )
586
+ });
587
+ return () => t.destroy();
588
+ }, []), /* @__PURE__ */ o("div", { style: { width: "100%", height: "100%" }, ref: e });
589
+ }
590
+ function In({ allSteps: e, disableButton: r, i: t, arr: n }) {
591
+ var f, h, v, $;
592
+ const s = d((C) => C.configuration), { txnupdate: x } = Lt, { isErrorMessage: a } = K(ct), b = d((C) => C.persist), p = b == null ? void 0 : b.historyData, l = (p == null ? void 0 : p.currentStepStatus) || "";
593
+ return /* @__PURE__ */ y("div", { className: "bw-w-[18px] bw-min-h-full bw-relative bw-flex bw-flex-col bw-justify-center bw-items-center ", children: [
594
+ (e == null ? void 0 : e.currentStep) < t ? /* @__PURE__ */ o("div", { className: "bw-w-[18px] bw-rounded-[50%] bw-h-[18px] bw-bg-background-container bw-border bw-border-border-primary " }) : (e == null ? void 0 : e.currentStep) == t ? r ? /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o("div", { className: " bw-w-[18px] bw-h-[18px] ", children: /* @__PURE__ */ o(ye, {}) }) }) : a ? (
595
+ // <CloseIcon width={18} height={18} fill={"var(--tw-text-primary)"} />
596
+ /* @__PURE__ */ o("img", { src: x, width: 27, height: 27, alt: "img" })
597
+ ) : l == "success" ? /* @__PURE__ */ o(
598
+ $t,
599
+ {
600
+ spinnerColor: (f = s == null ? void 0 : s.gradientStyle) == null ? void 0 : f.spinnerColor,
601
+ stopColor: (h = s == null ? void 0 : s.gradientStyle) == null ? void 0 : h.stopColor
602
+ }
603
+ ) : l == "failed" ? /* @__PURE__ */ o("img", { src: x, width: 27, height: 27, alt: "img" }) : /* @__PURE__ */ o("div", { className: "bw-w-[18px] bw-h-[18px]", children: /* @__PURE__ */ o(An, {}) }) : /* @__PURE__ */ o(
604
+ $t,
605
+ {
606
+ spinnerColor: (v = s == null ? void 0 : s.gradientStyle) == null ? void 0 : v.spinnerColor,
607
+ stopColor: ($ = s == null ? void 0 : s.gradientStyle) == null ? void 0 : $.stopColor
608
+ }
609
+ ),
610
+ t !== n.length - 1 ? /* @__PURE__ */ o(
611
+ "div",
612
+ {
613
+ className: "bw-h-[30px] bw-absolute bw-w-[1px] bw-bottom-[-200%] bw-bg-background-secondary"
614
+ }
615
+ ) : /* @__PURE__ */ o(H, {})
616
+ ] });
617
+ }
618
+ const Dn = "_container_1e7nb_1", Fn = "_dash_1e7nb_9", Bn = "_uno_1e7nb_17", $n = "_dos_1e7nb_23", Vn = "_tres_1e7nb_29", jn = "_cuatro_1e7nb_35", J = {
619
+ container: Dn,
620
+ dash: Fn,
621
+ uno: Bn,
622
+ dos: $n,
623
+ tres: Vn,
624
+ cuatro: jn
625
+ };
626
+ function Pn() {
627
+ return /* @__PURE__ */ y("div", { className: J.container, children: [
628
+ /* @__PURE__ */ o("div", { className: `${J.dash} ${J.uno}` }),
629
+ /* @__PURE__ */ o("div", { className: `${J.dash} ${J.dos}` }),
630
+ /* @__PURE__ */ o("div", { className: `${J.dash} ${J.tres}` }),
631
+ /* @__PURE__ */ o("div", { className: `${J.dash} ${J.cuatro}` })
632
+ ] });
633
+ }
634
+ function Un({ handleUpdate: e }) {
635
+ var P, E, B, F, L, z, U, R, W, Q, Z, X, Y, tt, et, xt, dt, ut, bt, mt;
636
+ const r = d((V) => V.configuration), t = d((V) => V.persist), { address: n } = St(), { address: s } = _t(), { primaryWallet: x } = zt(), { getWallet: a } = Mt({}), b = d((V) => V.setPersist), p = d((V) => V.customWallet), l = d((V) => V.customFee), f = d((V) => V.broadCastMode), h = d((V) => V.evmGas), v = d((V) => V.evmSpeed), $ = d((V) => V.slippage), C = d((V) => V.option), _ = d((V) => V.gasless), i = d((V) => V.direct), m = d((V) => V.maxAccounts), { data: c } = pe(), u = ["routesTxn", n, t == null ? void 0 : t.fromChain, t == null ? void 0 : t.toChain, t == null ? void 0 : t.fromCoin, t == null ? void 0 : t.toCoin, (t == null ? void 0 : t.amount) || ((P = t == null ? void 0 : t.route) == null ? void 0 : P.inputAmountDisplay) || 0, x == null ? void 0 : x.address, s, p, c == null ? void 0 : c.bech32Address, l, h, v, $, f, C.value, "", _, i, m];
637
+ let S = (f === "Priority Fee" || f === "Both") && (l != null && l.length) ? l : C.value, I = (f === "Jito Tip" || f === "Both") && (l != null && l.length) ? l : C.value, N = h != null && h.length ? h : v.value;
638
+ const k = ((E = t == null ? void 0 : t.fromChain) == null ? void 0 : E.networkType) === "sol" ? f === "Priority Fee" ? `&solanaPriorityFee=${S}` : f === "Jito Tip" ? `&solanaJitoTip=${I}` : `&solanaPriorityFee=${S}&solanaJitoTip=${I}` : ((B = t == null ? void 0 : t.fromChain) == null ? void 0 : B.networkType) === "evm" ? `&evmPriorityFee=${N}` : "", { routes: w, routesData: g } = ke({
639
+ enabled: !0,
640
+ dependency: u,
641
+ payload: [
642
+ ((F = t == null ? void 0 : t.fromChain) == null ? void 0 : F.networkType) === "cosmos" ? Dt(c == null ? void 0 : c.bech32Address, (z = (L = t == null ? void 0 : t.fromChain) == null ? void 0 : L.chainInfo) == null ? void 0 : z.bech32Config.bech32PrefixAccAddr) : ((U = t == null ? void 0 : t.route) == null ? void 0 : U.userWalletAddress) || ((R = a(t == null ? void 0 : t.fromChain)) == null ? void 0 : R.address) || "",
643
+ t == null ? void 0 : t.fromChain,
644
+ t == null ? void 0 : t.toChain,
645
+ t == null ? void 0 : t.fromCoin,
646
+ t == null ? void 0 : t.toCoin,
647
+ (t == null ? void 0 : t.amount) || ((W = t == null ? void 0 : t.route) == null ? void 0 : W.inputAmountDisplay) || 0,
648
+ Number($) * 100,
649
+ (p == null ? void 0 : p.length) > 30 ? ((Q = t == null ? void 0 : t.route) == null ? void 0 : Q.recipient) || ((Z = a({})) == null ? void 0 : Z.address) || "" : ((X = t == null ? void 0 : t.toChain) == null ? void 0 : X.networkType) === "cosmos" ? Dt(c == null ? void 0 : c.bech32Address, (tt = (Y = t == null ? void 0 : t.toChain) == null ? void 0 : Y.chainInfo) == null ? void 0 : tt.bech32Config.bech32PrefixAccAddr) : ((et = t == null ? void 0 : t.route) == null ? void 0 : et.recipient) || ((xt = a(t == null ? void 0 : t.toChain)) == null ? void 0 : xt.address) || "",
650
+ k,
651
+ 1,
652
+ _
653
+ ]
654
+ });
655
+ let A = (g == null ? void 0 : g.outputAmountDisplay) || "";
656
+ async function D() {
657
+ if (t.isQuoteTimer === !1) {
658
+ let V = await w.refetch();
659
+ V.status === "success" && V.data.status === "success" && b({
660
+ ...d.getState().persist,
661
+ isQuoteTimer: !0
662
+ });
663
+ }
664
+ }
665
+ M(() => {
666
+ D();
667
+ }, [t.isQuoteTimer]);
668
+ function G() {
669
+ e(), b({
670
+ stepData: {},
671
+ quote: "enable",
672
+ isTimerStarted: !1,
673
+ routeId: (g == null ? void 0 : g.routeId) || "",
674
+ route: g,
675
+ toChain: (t == null ? void 0 : t.toChain) || {},
676
+ toCoin: (t == null ? void 0 : t.toCoin) || {},
677
+ fromChain: (t == null ? void 0 : t.fromChain) || {},
678
+ fromCoin: (t == null ? void 0 : t.fromCoin) || {},
679
+ amount: t == null ? void 0 : t.amount,
680
+ openAt: (/* @__PURE__ */ new Date()).getTime(),
681
+ nextTx: null,
682
+ startTime: (/* @__PURE__ */ new Date()).getTime(),
683
+ showAcceptQuote: !1,
684
+ loading: !0
685
+ });
686
+ }
687
+ return /* @__PURE__ */ y("div", { className: "bw-w-full bw-absolute bw-border-t bw-border-border-primary bw-pt-3 bw-bottom-0 bw-flex bw-flex-col bw-justify-center bw-items-center", children: [
688
+ /* @__PURE__ */ o("p", { className: "bw-text-text-primary bw-text-lg bw-font-semibold", children: "Quote Expired!" }),
689
+ /* @__PURE__ */ o("p", { className: "bw-text-text-secondary bw-text-sm bw-font-medium", children: "Please accept the new quote, or go back to select manually" }),
690
+ /* @__PURE__ */ y("div", { className: "bw-w-full bw-mt-4 bw-px-2 bw-flex bw-items-center ba-gap-x-2 bw-justify-between", children: [
691
+ /* @__PURE__ */ y("div", { children: [
692
+ w.isLoading || w.isFetching ? /* @__PURE__ */ o(yt, { className: "bw-bg-background-secondary bw-mb-1 bw-rounded-lg bw-h-[20px] bw-w-[150px] bw-min-h-[20px]", variant: "rectangular", animation: "wave", height: 20, width: 100 }) : /* @__PURE__ */ y("p", { className: "bw-text-text-lg bw-font-bold bw-text-text-primary", children: [
693
+ /* @__PURE__ */ o(ft, { value: A == null ? void 0 : A.toString(), decimal: 12 }),
694
+ " ",
695
+ ((dt = g == null ? void 0 : g.to) == null ? void 0 : dt.symbol) || ""
696
+ ] }),
697
+ w.isLoading || w.isFetching ? /* @__PURE__ */ o(yt, { className: "bw-bg-background-secondary bw-rounded-lg bw-h-[20px] bw-w-[70px] bw-min-h-[20px]", variant: "rectangular", animation: "wave", height: 20, width: 70 }) : /* @__PURE__ */ y("p", { className: "bw-text-text-sm bw-font-normal bw-text-text-secondary", children: [
698
+ "$ ",
699
+ /* @__PURE__ */ o(ft, { value: xe(((g == null ? void 0 : g.outputAmountDisplay) || "") * ((ut = g == null ? void 0 : g.to) == null ? void 0 : ut.lastPrice) || 0, 10), decimal: 12 })
700
+ ] })
701
+ ] }),
702
+ /* @__PURE__ */ o(
703
+ "button",
704
+ {
705
+ disabled: w.isFetching || w.isLoading,
706
+ className: `bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-1/2 bw-rounded-sm ${st.gradientbutton + " bw-p-[3px]"}`,
707
+ onClick: G,
708
+ style: {
709
+ ...r == null ? void 0 : r.gradientStyle,
710
+ boxShadow: r && r.customTheme && ((mt = (bt = r.customTheme) == null ? void 0 : bt.shadow) == null ? void 0 : mt.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
711
+ },
712
+ children: /* @__PURE__ */ o("p", { className: "bw-w-full bw-h-full bw-bg-background-container bw-text-text-primary bw-font-bold bw-flex bw-items-center bw-justify-center", children: "Accept Quote" })
713
+ }
714
+ )
715
+ ] })
716
+ ] });
717
+ }
718
+ function _n({ handleBack: e }) {
719
+ var f, h, v, $, C, _, i, m, c, u;
720
+ const { txnupdate: r } = Lt, t = d((S) => S.persist), n = d((S) => S.configuration), s = t == null ? void 0 : t.stepData.stepType, a = ((t == null ? void 0 : t.txnHashObj) || [])[(f = t == null ? void 0 : t.stepData) == null ? void 0 : f.stepId] || {}, b = s === "bridge" ? (a == null ? void 0 : a.destTxnHash) || (a == null ? void 0 : a.srcTxnHash) : (a == null ? void 0 : a.srcTxnHash) || "", p = (h = t == null ? void 0 : t.historyData) == null ? void 0 : h.finalTxnHash, l = b || p || "";
721
+ return s === "bridge" ? a != null && a.destTxnUrl || (a == null || a.srcTxnUrl) : a != null && a.srcTxnUrl, (v = t == null ? void 0 : t.historyData) == null || v.finalTxnUrl, t.toCoin, t.route, t.toChain, /* @__PURE__ */ y("div", { className: "bw-absolute bw-bg-background-container bw-bottom-0", children: [
722
+ /* @__PURE__ */ y("div", { className: "bw-w-full bw-flex bw-items-center bw-p-3 bw-h-[141px] bw-rounded-xl bw-border bw-border-border-primary", children: [
723
+ /* @__PURE__ */ y("div", { className: "bw-w-[60%]", children: [
724
+ /* @__PURE__ */ o("p", { className: "bw-text-text-secondary bw-mb-2 bw-text-lg bw-font-medium", children: "Transaction Update" }),
725
+ /* @__PURE__ */ y("p", { className: "bw-text-text-primary bw-text-2xl bw-font-bold", children: [
726
+ Ht((($ = t == null ? void 0 : t.statusData) == null ? void 0 : $.outputAmountDisplay) || "", 10),
727
+ " ",
728
+ ((_ = (C = t == null ? void 0 : t.statusData) == null ? void 0 : C.outputToken) == null ? void 0 : _.symbol) || "",
729
+ " ",
730
+ /* @__PURE__ */ o("br", {})
731
+ ] }),
732
+ /* @__PURE__ */ y("p", { className: "bw-text-text-secondary bw-mb-2 bw-text-sm bw-font-normal", children: [
733
+ "Received on ",
734
+ t.toChain.name,
735
+ " chain",
736
+ " "
737
+ ] }),
738
+ /* @__PURE__ */ y("div", { className: "bw-text-text-secondary bw-flex bw-items-center bw-gap-x-1 bw-mb-2 bw-text-sm bw-font-medium", children: [
739
+ `Txn Id:${l ? `${l.substring(0, 5)}...${l.substring(
740
+ l.length - 5,
741
+ l.length
742
+ )}` : ""}`,
743
+ /* @__PURE__ */ o("div", { className: "bw-cursor-pointer ", children: /* @__PURE__ */ o(Tt, { txnHash: l, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(Et, { fill: "var(--tw-text-secondary)" }) }) }) })
744
+ ] })
745
+ ] }),
746
+ /* @__PURE__ */ o("div", { className: "bw-w-[40%] bw-flex bw-items-center bw-justify-center", children: /* @__PURE__ */ o("img", { src: r, width: 108, height: 100, alt: "img" }) })
747
+ ] }),
748
+ /* @__PURE__ */ y("p", { className: "bw-text-sm bw-text-center bw-text-text-secondary bw-font-normal bw-mt-3", children: [
749
+ "Due to liquidity error on providers end your",
750
+ " ",
751
+ /* @__PURE__ */ y("b", { className: "bw-text-text-primary", children: [
752
+ "receiving token has been changed to",
753
+ " ",
754
+ ((m = (i = t == null ? void 0 : t.statusData) == null ? void 0 : i.outputToken) == null ? void 0 : m.symbol) || "",
755
+ " on",
756
+ " ",
757
+ (u = (c = t == null ? void 0 : t.statusData) == null ? void 0 : c.outputToken) == null ? void 0 : u.blockchain
758
+ ] })
759
+ ] }),
760
+ /* @__PURE__ */ o(
761
+ "button",
762
+ {
763
+ onClick: e,
764
+ style: { ...n == null ? void 0 : n.gradientStyle },
765
+ className: `bw-w-full ${st.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`,
766
+ children: /* @__PURE__ */ o(
767
+ "div",
768
+ {
769
+ onClick: e,
770
+ className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full",
771
+ children: "Start Again"
772
+ }
773
+ )
774
+ }
775
+ )
776
+ ] });
777
+ }
778
+ function Vt({ handleBack: e, errorText: r }) {
779
+ const t = d((n) => n.configuration);
780
+ return /* @__PURE__ */ y(H, { children: [
781
+ /* @__PURE__ */ o(Qt, { errorText: r, heading: "Transaction Expired" }),
782
+ /* @__PURE__ */ o("button", { onClick: e, style: { ...t == null ? void 0 : t.gradientStyle }, className: `bw-w-full ${st.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`, children: /* @__PURE__ */ o("div", { onClick: e, className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full", children: "Start a New Transaction" }) })
783
+ ] });
784
+ }
785
+ function Gn({ fill: e, stroke: r }) {
786
+ return /* @__PURE__ */ y(
787
+ "svg",
788
+ {
789
+ width: "113",
790
+ height: "62",
791
+ viewBox: "0 0 113 62",
792
+ fill: "none",
793
+ xmlns: "http://www.w3.org/2000/svg",
794
+ children: [
795
+ /* @__PURE__ */ o(
796
+ "rect",
797
+ {
798
+ x: "8.4375",
799
+ y: "24.9023",
800
+ width: "78.9692",
801
+ height: "36.4567",
802
+ rx: "9.5",
803
+ fill: e,
804
+ stroke: r
805
+ }
806
+ ),
807
+ /* @__PURE__ */ o(
808
+ "rect",
809
+ {
810
+ x: "15.5742",
811
+ y: "32.5957",
812
+ width: "42.7954",
813
+ height: "14.5366",
814
+ rx: "4",
815
+ fill: r
816
+ }
817
+ ),
818
+ /* @__PURE__ */ o(
819
+ "rect",
820
+ {
821
+ x: "38.8398",
822
+ y: "50.0684",
823
+ width: "42.7954",
824
+ height: "6.99623",
825
+ rx: "3.49811",
826
+ fill: r
827
+ }
828
+ ),
829
+ /* @__PURE__ */ o(
830
+ "rect",
831
+ {
832
+ x: "1.25",
833
+ y: "19.043",
834
+ width: "15.3647",
835
+ height: "15.2004",
836
+ rx: "4.5",
837
+ fill: e,
838
+ stroke: r
839
+ }
840
+ ),
841
+ /* @__PURE__ */ y("g", { filter: "url(#filter0_d_8010_16559)", children: [
842
+ /* @__PURE__ */ o(
843
+ "path",
844
+ {
845
+ d: "M87.8168 13.1918L101.18 36.3366C102.795 39.134 100.776 42.6307 97.5456 42.6307H70.8202C67.5901 42.6307 65.5713 39.134 67.1864 36.3366L80.549 13.1918C82.1641 10.3944 86.2018 10.3944 87.8168 13.1918Z",
846
+ fill: e,
847
+ stroke: r
848
+ }
849
+ ),
850
+ /* @__PURE__ */ o(
851
+ "path",
852
+ {
853
+ d: "M85.6358 19.2969V26.2041C85.6358 26.9367 85.5995 27.6572 85.5271 28.3656C85.4546 29.066 85.362 29.8107 85.2493 30.5996H83.2206C83.1079 29.8107 83.0154 29.066 82.9429 28.3656C82.8705 27.6572 82.8342 26.9367 82.8342 26.2041V19.2969H85.6358ZM82.3633 35.1159C82.3633 34.8663 82.4076 34.6288 82.4961 34.4034C82.5927 34.178 82.7215 33.9848 82.8825 33.8238C83.0516 33.6628 83.2488 33.534 83.4742 33.4374C83.6996 33.3408 83.9412 33.2925 84.1988 33.2925C84.4483 33.2925 84.6858 33.3408 84.9112 33.4374C85.1366 33.534 85.3298 33.6628 85.4909 33.8238C85.6599 33.9848 85.7927 34.178 85.8893 34.4034C85.986 34.6288 86.0343 34.8663 86.0343 35.1159C86.0343 35.3735 85.986 35.615 85.8893 35.8404C85.7927 36.0578 85.6599 36.247 85.4909 36.408C85.3298 36.569 85.1366 36.6938 84.9112 36.7823C84.6858 36.8789 84.4483 36.9272 84.1988 36.9272C83.9412 36.9272 83.6996 36.8789 83.4742 36.7823C83.2488 36.6938 83.0516 36.569 82.8825 36.408C82.7215 36.247 82.5927 36.0578 82.4961 35.8404C82.4076 35.615 82.3633 35.3735 82.3633 35.1159Z",
854
+ fill: r
855
+ }
856
+ )
857
+ ] }),
858
+ /* @__PURE__ */ o("defs", { children: /* @__PURE__ */ y(
859
+ "filter",
860
+ {
861
+ id: "filter0_d_8010_16559",
862
+ x: "56.1172",
863
+ y: "0.59375",
864
+ width: "56.1328",
865
+ height: "52.5371",
866
+ filterUnits: "userSpaceOnUse",
867
+ "color-interpolation-filters": "sRGB",
868
+ children: [
869
+ /* @__PURE__ */ o("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
870
+ /* @__PURE__ */ o(
871
+ "feColorMatrix",
872
+ {
873
+ in: "SourceAlpha",
874
+ type: "matrix",
875
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
876
+ result: "hardAlpha"
877
+ }
878
+ ),
879
+ /* @__PURE__ */ o("feOffset", {}),
880
+ /* @__PURE__ */ o("feGaussianBlur", { stdDeviation: "5" }),
881
+ /* @__PURE__ */ o("feComposite", { in2: "hardAlpha", operator: "out" }),
882
+ /* @__PURE__ */ o(
883
+ "feColorMatrix",
884
+ {
885
+ type: "matrix",
886
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
887
+ }
888
+ ),
889
+ /* @__PURE__ */ o(
890
+ "feBlend",
891
+ {
892
+ mode: "normal",
893
+ in2: "BackgroundImageFix",
894
+ result: "effect1_dropShadow_8010_16559"
895
+ }
896
+ ),
897
+ /* @__PURE__ */ o(
898
+ "feBlend",
899
+ {
900
+ mode: "normal",
901
+ in: "SourceGraphic",
902
+ in2: "effect1_dropShadow_8010_16559",
903
+ result: "shape"
904
+ }
905
+ )
906
+ ]
907
+ }
908
+ ) })
909
+ ]
910
+ }
911
+ );
912
+ }
913
+ function jt({ text: e }) {
914
+ return /* @__PURE__ */ y("div", { style: { wordBreak: "break-all" }, className: "bw-text-text-error bw-mb-12 bw-w-full bw-text-sm bw-flex bw-flex-col bw-justify-center bw-items-center bw-text-center bw-text-text-redtext", children: [
915
+ /* @__PURE__ */ o(Gn, { fill: "var(--tw-background-networkcard)", stroke: "var(--tw-border-primary)" }),
916
+ /* @__PURE__ */ o("p", { className: "bw-text-2xl bw-mt-3 bw-text-text-primary", children: e }),
917
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-mt-2 bw-font-normal bw-text-text-secondary", children: "Please start your transaction again" })
918
+ ] });
919
+ }
920
+ function Ct(e) {
921
+ var $, C, _;
922
+ const r = d((i) => i.setPersist), t = d((i) => i.persist), n = Gt(), { setErrorMessage: s } = K(ct), x = pt(!1), a = t.isHistory, b = !rt.isEmpty((C = ($ = d.getState()) == null ? void 0 : $.persist) == null ? void 0 : C.historyData);
923
+ M(() => (x.current = !0, () => {
924
+ x.current = !1;
925
+ }), []);
926
+ const p = Ne({
927
+ mutationKey: "nexttx",
928
+ mutationFn: async ({ id: i, routeId: m }) => await Se({ stepId: i, routeId: m }),
929
+ refetchOnWindowFocus: !1,
930
+ refetchOnMount: !1,
931
+ cacheTime: 1e3,
932
+ onSuccess: (i, m) => {
933
+ var c, u, S, I, N, k, w, g, A, D, G, P;
934
+ if ((S = (u = (c = i == null ? void 0 : i.data) == null ? void 0 : c.txnData) == null ? void 0 : u.txnSol) != null && S.data) {
935
+ let E = We(i.data.txnData.txnSol.data);
936
+ const B = ge.deserialize(E);
937
+ console.log(B, "deserializedTx");
938
+ const F = B.message.staticAccountKeys.length + (((I = B.message.addressTableLookups) == null ? void 0 : I.length) || 0);
939
+ console.log(`Transaction accounts: ${F} (static: ${B.message.staticAccountKeys.length}, lookup: ${((N = B.message.addressTableLookups) == null ? void 0 : N.length) || 0}),size:${B.serialize().length}`);
940
+ }
941
+ x.current && (i.status == "error" ? s(i) : s({ error: "" }), n.emit(it.TransactionData, {
942
+ ...i
943
+ }), f(i), r({
944
+ ...(k = d.getState()) == null ? void 0 : k.persist,
945
+ loading: !1,
946
+ txnEvm: (g = (w = i == null ? void 0 : i.data) == null ? void 0 : w.txnData) == null ? void 0 : g.txnEvm,
947
+ nextTx: i,
948
+ hash: null,
949
+ txnType: ((D = (A = i == null ? void 0 : i.data) == null ? void 0 : A.txnData) == null ? void 0 : D.txnType) || null,
950
+ gasless: (P = (G = i == null ? void 0 : i.data) == null ? void 0 : G.txnData) == null ? void 0 : P.gasless
951
+ }));
952
+ },
953
+ onError: (i) => {
954
+ var c;
955
+ let m = i.details || i.message || "";
956
+ s({ error: m }), n.emit(it.TransactionData, {
957
+ error: m,
958
+ routeId: (t == null ? void 0 : t.routeId) || "",
959
+ stepId: ((c = t == null ? void 0 : t.stepData) == null ? void 0 : c.stepId) || ""
960
+ });
961
+ }
962
+ });
963
+ async function l(i, m, c) {
964
+ r({
965
+ ...d.getState().persist,
966
+ loading: !0
967
+ });
968
+ try {
969
+ await p.mutateAsync({
970
+ id: i == null ? void 0 : i.stepId,
971
+ routeId: m
972
+ }), r({
973
+ ...d.getState().persist,
974
+ stepData: i
975
+ });
976
+ } catch (u) {
977
+ r({
978
+ ...d.getState().persist,
979
+ loading: !1
980
+ }), console.log(u);
981
+ }
982
+ }
983
+ function f(i) {
984
+ var m, c, u, S, I, N, k;
985
+ if (((m = i == null ? void 0 : i.data) == null ? void 0 : m.skipTxn) === !0) {
986
+ let w = ((S = (u = (c = v == null ? void 0 : v.data) == null ? void 0 : c.data) == null ? void 0 : u.steps) == null ? void 0 : S[t.allSteps.currentStep + 1]) || ((N = (I = t == null ? void 0 : t.allSteps) == null ? void 0 : I.steps) == null ? void 0 : N[t.allSteps.currentStep + 1]) || {};
987
+ !rt.isEmpty(w) && ((k = i == null ? void 0 : i.data) != null && k.routeId) && setTimeout(() => {
988
+ var g;
989
+ h(), l(w, (g = i == null ? void 0 : i.data) == null ? void 0 : g.routeId);
990
+ }, 0);
991
+ } else
992
+ return;
993
+ }
994
+ function h() {
995
+ var i;
996
+ r({
997
+ ...d.getState().persist,
998
+ loading: !0,
999
+ allSteps: {
1000
+ ...d.getState().persist.allSteps,
1001
+ steps: ((i = t == null ? void 0 : t.allSteps) == null ? void 0 : i.steps) || [],
1002
+ currentStep: t.allSteps.currentStep + 1,
1003
+ type: "preText"
1004
+ }
1005
+ });
1006
+ }
1007
+ const v = Ae({
1008
+ queryKey: ["txnbody", t == null ? void 0 : t.routeId],
1009
+ queryFn: async () => await Te({ routeId: t == null ? void 0 : t.routeId }),
1010
+ refetchOnWindowFocus: !1,
1011
+ refetchOnMount: !1,
1012
+ enabled: !!((_ = t.routeId) != null && _.length && !t.nextTx && !a)
1013
+ });
1014
+ return M(() => {
1015
+ var i, m, c, u, S, I, N;
1016
+ if (v.data && !(t != null && t.nextTx) && e) {
1017
+ console.log(p, "nextTx");
1018
+ let k = v.data;
1019
+ k.status == "error" ? (s(k), n.emit(it.TransactionSteps, {
1020
+ ...k
1021
+ })) : (n.emit(it.TransactionSteps, {
1022
+ routeId: ((i = k == null ? void 0 : k.data) == null ? void 0 : i.routeId) || "",
1023
+ steps: ((m = k == null ? void 0 : k.data) == null ? void 0 : m.steps) || [],
1024
+ numOfSteps: ((u = (c = k == null ? void 0 : k.data) == null ? void 0 : c.steps) == null ? void 0 : u.length) || 0
1025
+ }), s({ error: "" })), typeof (k == null ? void 0 : k.data) < "u" && !b && (l((S = k == null ? void 0 : k.data) == null ? void 0 : S.steps[0], (I = k == null ? void 0 : k.data) == null ? void 0 : I.routeId), setTimeout(() => {
1026
+ var w, g, A;
1027
+ r({
1028
+ ...d.getState().persist,
1029
+ stepData: (w = k == null ? void 0 : k.data) == null ? void 0 : w.steps[0]
1030
+ }), r({
1031
+ ...d.getState().persist,
1032
+ allSteps: {
1033
+ steps: ((g = k == null ? void 0 : k.data) == null ? void 0 : g.steps) || ((A = t == null ? void 0 : t.allSteps) == null ? void 0 : A.steps) || [],
1034
+ currentStep: 0,
1035
+ type: "preText"
1036
+ }
1037
+ });
1038
+ }, 1200), ((N = k == null ? void 0 : k.data) == null ? void 0 : N.status) == "error" && s({ ...k.data }));
1039
+ }
1040
+ }, [v.data, t == null ? void 0 : t.nextTx, b, e]), M(() => {
1041
+ if (v.error) {
1042
+ let i = v.error, m = i.details || i.message || "";
1043
+ n.emit(it.TransactionSteps, {
1044
+ error: m,
1045
+ routeId: (t == null ? void 0 : t.routeId) || ""
1046
+ }), s({ error: m });
1047
+ }
1048
+ }, [v.error]), M(() => {
1049
+ var i;
1050
+ t.routeId && r({ ...(i = d.getState()) == null ? void 0 : i.persist, isSuccess: !0 });
1051
+ }, [t.routeId]), { nextTx: p, callNextTx: l, handleSkipTxn: f, setNextStep: h, txnBody: v };
1052
+ }
1053
+ function qt() {
1054
+ var C, _;
1055
+ const e = d((i) => i.persist), r = d((i) => i.setPersist), { registerError: t } = de(), { handleErrorMessage: n, setErrorMessage: s } = K(ct), x = (e == null ? void 0 : e.showAcceptQuote) && !e.hash && ((C = e == null ? void 0 : e.allSteps) == null ? void 0 : C.currentStep) == 0 && ((_ = e == null ? void 0 : e.nextTx) == null ? void 0 : _.status) === "success", { txnBody: a, callNextTx: b } = Ct();
1056
+ function p(i) {
1057
+ var c, u, S, I, N, k, w, g, A;
1058
+ let m = [...((u = (c = d.getState()) == null ? void 0 : c.persist) == null ? void 0 : u.stepStatus) || []];
1059
+ return m.length ? m[(S = e.allSteps) == null ? void 0 : S.currentStep] = {
1060
+ ...m[(I = e.allSteps) == null ? void 0 : I.currentStep],
1061
+ type: (N = e.allSteps) == null ? void 0 : N.type
1062
+ } : m[0] = {
1063
+ ...m[(k = e.allSteps) == null ? void 0 : k.currentStep],
1064
+ type: (w = e.allSteps) == null ? void 0 : w.type
1065
+ }, i && (m[(g = e.allSteps) == null ? void 0 : g.currentStep] = {
1066
+ ...m[(A = e.allSteps) == null ? void 0 : A.currentStep],
1067
+ ...i
1068
+ }), m;
1069
+ }
1070
+ function l() {
1071
+ r({
1072
+ ...d.getState().persist,
1073
+ stepData: {},
1074
+ allSteps: {
1075
+ steps: null,
1076
+ currentStep: 0
1077
+ }
1078
+ });
1079
+ }
1080
+ function f() {
1081
+ s({ error: "" });
1082
+ }
1083
+ function h(i, m) {
1084
+ var c, u;
1085
+ t({
1086
+ module: i,
1087
+ routeId: (e == null ? void 0 : e.routeId) || "",
1088
+ stepId: ((c = e == null ? void 0 : e.stepData) == null ? void 0 : c.stepId) || "",
1089
+ error: m.error,
1090
+ userWalletAddress: (u = e == null ? void 0 : e.route) == null ? void 0 : u.userWalletAddress
1091
+ });
1092
+ }
1093
+ function v(i) {
1094
+ var u, S, I, N, k, w, g, A, D, G, P, E, B, F, L, z, U, R;
1095
+ let c = { ...((I = (S = (u = d) == null ? void 0 : u.getState()) == null ? void 0 : S.persist) == null ? void 0 : I.txnHashObj) || {} };
1096
+ rt.isEmpty(c[(N = i == null ? void 0 : i.data) == null ? void 0 : N.stepId]) ? c[(P = i == null ? void 0 : i.data) == null ? void 0 : P.stepId] = {
1097
+ srcTxnUrl: ((E = i == null ? void 0 : i.data) == null ? void 0 : E.srcTxnUrl) || "",
1098
+ stepId: ((B = i == null ? void 0 : i.data) == null ? void 0 : B.stepId) || "",
1099
+ srcTxnHash: ((F = i == null ? void 0 : i.data) == null ? void 0 : F.srcTxnHash) || "",
1100
+ destTxnUrl: ((L = i == null ? void 0 : i.data) == null ? void 0 : L.destTxnUrl) || "",
1101
+ destTxnHash: ((z = i == null ? void 0 : i.data) == null ? void 0 : z.destTxnHash) || ""
1102
+ } : c[(k = i == null ? void 0 : i.data) == null ? void 0 : k.stepId] = {
1103
+ ...c[(w = i == null ? void 0 : i.data) == null ? void 0 : w.stepId],
1104
+ destTxnHash: ((g = i == null ? void 0 : i.data) == null ? void 0 : g.destTxnHash) || (i == null ? void 0 : i.destTxnHash) || "",
1105
+ destTxnUrl: ((A = i == null ? void 0 : i.data) == null ? void 0 : A.destTxnUrl) || (i == null ? void 0 : i.destTxnUrl) || "",
1106
+ srcTxnUrl: ((D = i == null ? void 0 : i.data) == null ? void 0 : D.srcTxnUrl) || (i == null ? void 0 : i.srcTxnUrl) || "",
1107
+ srcTxnHash: ((G = i == null ? void 0 : i.data) == null ? void 0 : G.srcTxnHash) || (i == null ? void 0 : i.srcTxnHash) || ""
1108
+ }, r({
1109
+ ...(R = (U = d) == null ? void 0 : U.getState()) == null ? void 0 : R.persist,
1110
+ txnHashObj: c
1111
+ });
1112
+ }
1113
+ function $() {
1114
+ var i, m, c, u;
1115
+ r({
1116
+ ...(i = d.getState()) == null ? void 0 : i.persist,
1117
+ stepStatus: p({ status: "loadingText" }),
1118
+ isTryAgain: !0,
1119
+ loading: !0,
1120
+ hash: null
1121
+ }), n(!1), f(), b(((m = e == null ? void 0 : e.allSteps) == null ? void 0 : m.steps[e.allSteps.currentStep]) || {}, (e == null ? void 0 : e.routeId) || ((u = (c = a.data) == null ? void 0 : c.data) == null ? void 0 : u.routeId), !0);
1122
+ }
1123
+ return { handleStepStatus: p, handleUpdate: l, handleErrorReset: f, isShowNewQuote: x, handleTxnObj: v, callRegisterError: h, handleTryAgain: $ };
1124
+ }
1125
+ const Jt = oe(new AbortController());
1126
+ function h0({ children: e }) {
1127
+ const r = pt(new AbortController());
1128
+ return M(() => (r.current = new AbortController(), () => {
1129
+ var t;
1130
+ (t = r.current) == null || t.abort();
1131
+ }), []), /* @__PURE__ */ o(Jt.Provider, { value: r.current, children: e });
1132
+ }
1133
+ function Kt(e) {
1134
+ return typeof e != "string" || e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
1135
+ }
1136
+ function Mn({ enabled: e }) {
1137
+ const [r, t] = ot(), { connector: n, chainId: s, chain: x, isConnected: a } = St(), b = ue(), [p, l] = ot(!1);
1138
+ async function f() {
1139
+ try {
1140
+ l(!0);
1141
+ let h = await Ve(b, { connector: n, chainId: s });
1142
+ t(h), l(!1);
1143
+ } catch (h) {
1144
+ console.log(h, "ERR CLIENT"), l(!1);
1145
+ }
1146
+ }
1147
+ return M(() => {
1148
+ e && (console.log("called custom"), f());
1149
+ }, [b, n, s, x, e, a]), { walletClient: r, isLoading: p, isAbs: n && n.id === "xyz.abs.privy" };
1150
+ }
1151
+ function Ln() {
1152
+ var N, k;
1153
+ const e = d((w) => w.setPersist), r = d((w) => w.persist), { callRegisterError: t, handleTxnObj: n, handleStepStatus: s } = qt(), { errorMessage: x, setErrorMessage: a } = K(ct), b = K(Jt), { walletClient: p, isLoading: l, isAbs: f } = Mn({ enabled: ((N = r == null ? void 0 : r.fromChain) == null ? void 0 : N.networkType) === "evm" }), { primaryWallet: h } = zt(), { setNextStep: v, callNextTx: $ } = Ct(), C = Gt(), { wallet: _ } = _t(), i = pt(), { data: m } = Rt({
1154
+ chainId: [(k = r == null ? void 0 : r.fromChain) == null ? void 0 : k.chainId],
1155
+ multiChain: !0
1156
+ });
1157
+ M(() => {
1158
+ e(l ? { ...d.getState().persist, loading: !0 } : { ...d.getState().persist, loading: !1 });
1159
+ }, [l]);
1160
+ function c(w) {
1161
+ var A;
1162
+ if (!{
1163
+ sol: h,
1164
+ evm: p,
1165
+ cosmos: m == null ? void 0 : m[(A = r == null ? void 0 : r.fromChain) == null ? void 0 : A.chainId],
1166
+ tron: _,
1167
+ bitcoin: h
1168
+ }[w])
1169
+ throw new Error("Please connect your wallet");
1170
+ }
1171
+ async function u() {
1172
+ var w, g, A, D, G, P;
1173
+ try {
1174
+ let E, B;
1175
+ c((w = r == null ? void 0 : r.fromChain) == null ? void 0 : w.networkType), ((g = r == null ? void 0 : r.fromChain) == null ? void 0 : g.networkType) == "sol" && (B = await h.connector.getSigner());
1176
+ let F = (r == null ? void 0 : r.nextTx) || {};
1177
+ f && ((G = (D = (A = F == null ? void 0 : F.data) == null ? void 0 : A.txnData) == null ? void 0 : D.txnEvm) != null && G.gasPrice) && delete F.data.txnData.txnEvm.gasPrice, E = await ve({
1178
+ txDataResponse: F,
1179
+ quote: r.route,
1180
+ step: r.stepData,
1181
+ provider: p || null,
1182
+ cosmosClient: (m == null ? void 0 : m[(P = r == null ? void 0 : r.fromChain) == null ? void 0 : P.chainId]) || null,
1183
+ walletAdapter: B || null,
1184
+ signTransaction: (B == null ? void 0 : B.signTransaction) || null,
1185
+ tronAdapter: _,
1186
+ bitcoinWallet: h
1187
+ }), typeof E == "object" && (E = E.signature), e({
1188
+ ...d.getState().persist,
1189
+ hash: E
1190
+ }), S(E);
1191
+ } catch (E) {
1192
+ console.log(E, "err123");
1193
+ const B = gt(E.message || E.details || E), F = E.message || E.details || E;
1194
+ B && (F != null && F.length) && i.current && t("/wallet error", {
1195
+ error: F
1196
+ }), a({ error: F, type: "wallet" });
1197
+ }
1198
+ }
1199
+ async function S(w) {
1200
+ var g, A;
1201
+ try {
1202
+ console.log(b, "abortref");
1203
+ let D = await Ee({ routeId: r.routeId, stepId: (g = r == null ? void 0 : r.stepData) == null ? void 0 : g.stepId, txnHash: w }), G = await Ce({
1204
+ routeId: r.routeId,
1205
+ stepId: (A = r == null ? void 0 : r.stepData) == null ? void 0 : A.stepId,
1206
+ txnHash: w,
1207
+ signal: b.signal,
1208
+ pollingIntervalMs: 2e3,
1209
+ onStatusUpdate: (P, E) => {
1210
+ var F, L, z, U, R, W, Q;
1211
+ e({
1212
+ ...(L = (F = d) == null ? void 0 : F.getState()) == null ? void 0 : L.persist,
1213
+ stepStatus: s({
1214
+ status: "pending"
1215
+ })
1216
+ });
1217
+ let B = ((z = r == null ? void 0 : r.allSteps) == null ? void 0 : z.currentStep) === ((R = (U = r == null ? void 0 : r.allSteps) == null ? void 0 : U.steps) == null ? void 0 : R.length) - 1;
1218
+ C.emit(it.TransactionStatus, {
1219
+ ...E,
1220
+ status: !B && ((W = E == null ? void 0 : E.data) == null ? void 0 : W.status) === "success" ? "in-progress" : (Q = E == null ? void 0 : E.data) == null ? void 0 : Q.status,
1221
+ isLastStep: B
1222
+ }), E && I(E);
1223
+ }
1224
+ });
1225
+ } catch (D) {
1226
+ console.log(D, "err123");
1227
+ const G = gt(D.message || D.details || D), P = D.message || D.details || D;
1228
+ G && (P != null && P.length) && i.current && t("/wallet error", {
1229
+ error: P
1230
+ }), a({ error: P, type: "wallet" });
1231
+ }
1232
+ }
1233
+ function I(w) {
1234
+ var g, A, D, G, P, E, B, F, L, z, U, R, W, Q, Z, X, Y, tt;
1235
+ if ((g = w == null ? void 0 : w.data) != null && g.status && i.current && e({
1236
+ ...(D = (A = d) == null ? void 0 : A.getState()) == null ? void 0 : D.persist,
1237
+ statusData: w == null ? void 0 : w.data,
1238
+ stepStatus: s({
1239
+ status: ((G = w == null ? void 0 : w.data) == null ? void 0 : G.status) == "in-progress" ? "pending" : (P = w == null ? void 0 : w.data) == null ? void 0 : P.status
1240
+ })
1241
+ }), n(w), w.status == "error" && a(w), ((E = w.data) == null ? void 0 : E.status) == "success") {
1242
+ let et = r.allSteps.steps[r.allSteps.currentStep + 1];
1243
+ if (a({ error: "" }), e({
1244
+ ...d.getState().persist,
1245
+ stepData: et || d.getState().persist.stepData
1246
+ }), r.allSteps.currentStep == ((F = (B = r.allSteps) == null ? void 0 : B.steps) == null ? void 0 : F.length) - 1)
1247
+ e({
1248
+ ...d.getState().persist,
1249
+ allSteps: {
1250
+ ...d.getState().persist.allSteps,
1251
+ currentStep: r.allSteps.currentStep + 1,
1252
+ type: "preText"
1253
+ }
1254
+ });
1255
+ else if (r.allSteps.currentStep <= ((z = (L = r.allSteps) == null ? void 0 : L.steps) == null ? void 0 : z.length) - 1)
1256
+ v(), $(r.allSteps.steps[r.allSteps.currentStep + 1], (r == null ? void 0 : r.routeId) || ((R = (U = txnBody.data) == null ? void 0 : U.data) == null ? void 0 : R.routeId));
1257
+ else
1258
+ return;
1259
+ } else ((W = w.data) == null ? void 0 : W.status) == "failed" || (((Q = w.data) == null ? void 0 : Q.status) == "refunded" ? a({ error: `${Kt(((Z = r == null ? void 0 : r.stepData) == null ? void 0 : Z.stepType) || "")} failed! Tokens have been refunded to the source chain.` }) : ((X = w.data) == null ? void 0 : X.status) == "in-progress" && (Y = x == null ? void 0 : x.error) != null && Y.length && (e({ ...(tt = d.getState()) == null ? void 0 : tt.persist, loading: !0 }), a({ error: "" })));
1260
+ }
1261
+ return M(() => (r.hash && S(r.hash), () => {
1262
+ b.abort();
1263
+ }), []), M(() => (i.current = !0, () => {
1264
+ i.current = !1;
1265
+ }), []), { handleExeTxn: u };
1266
+ }
1267
+ function y0({ setExchange: e, startTimer: r, handleBack: t }) {
1268
+ var E, B, F, L, z, U, R, W, Q, Z, X, Y, tt, et, xt, dt, ut, bt, mt, V, vt, Nt, At;
1269
+ const n = d((T) => T.persist), s = d((T) => T.setPersist), [x, a] = ot(!1), { handleTxnSuccess: b } = K(Wt), { isErrorMessage: p, handleErrorMessage: l, errorMessage: f } = K(ct), { chain: h } = St(), v = n.isHistory, { handleStepStatus: $, handleUpdate: C, handleTryAgain: _, isShowNewQuote: i, callRegisterError: m } = qt(), { handleExeTxn: c } = Ln(), { nextTx: u, handleSkipTxn: S, callNextTx: I, txnBody: N } = Ct(!0), { switchChain: k } = be({
1270
+ chainId: Number(((B = (E = n == null ? void 0 : n.stepData) == null ? void 0 : E.from) == null ? void 0 : B.chainId) || "0"),
1271
+ throwForSwitchChainNotSupported: !0,
1272
+ onError(T) {
1273
+ console.log("Error", T), gt(T.message) && m("wallet-error-switch", { data: { error: T.message } });
1274
+ }
1275
+ }), w = !rt.isEmpty((L = (F = d.getState()) == null ? void 0 : F.persist) == null ? void 0 : L.historyData);
1276
+ let g = (Q = (W = (z = n == null ? void 0 : n.allSteps) == null ? void 0 : z.steps) == null ? void 0 : W[((U = n.allSteps) == null ? void 0 : U.currentStep) || ((R = n == null ? void 0 : n.allSteps) == null ? void 0 : R.currentStep)]) == null ? void 0 : Q.texts, A = n != null && n.loading ? n.hash ? "process" : "loading" : "pre", D = (Z = f == null ? void 0 : f.error) != null && Z.length ? f.error : null;
1277
+ M(() => {
1278
+ var T, j, O;
1279
+ w && typeof ((T = n == null ? void 0 : n.historyData) == null ? void 0 : T.currentStepIndex) < "u" && ((j = n == null ? void 0 : n.historyData) == null ? void 0 : j.currentStepStatus) == "not-started" ? I(n == null ? void 0 : n.stepData, n == null ? void 0 : n.routeId) : ((O = n == null ? void 0 : n.historyData) == null ? void 0 : O.currentStepStatus) == "in-progress" && r(!0);
1280
+ }, [w]), M(() => {
1281
+ var T;
1282
+ if (((T = n == null ? void 0 : n.allSteps) == null ? void 0 : T.currentStep) === 0 && u.data) {
1283
+ let j = u.data;
1284
+ s({
1285
+ ...d.getState().persist,
1286
+ isQuoteTimer: !(j.status == "error" || n != null && n.isTryAgain),
1287
+ quote: j.status == "error" || n != null && n.isTryAgain ? "disable" : "enable",
1288
+ quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
1289
+ });
1290
+ } else
1291
+ s({
1292
+ ...d.getState().persist,
1293
+ isQuoteTimer: !1,
1294
+ quote: "disable"
1295
+ });
1296
+ }, [(X = n == null ? void 0 : n.allSteps) == null ? void 0 : X.steps, u.data]), M(() => {
1297
+ var T, j;
1298
+ ((T = n.statusData) == null ? void 0 : T.status) == "success" && n.allSteps.currentStep === ((j = n.allSteps.steps) == null ? void 0 : j.length) && (N.isSuccess || n.isSuccess) ? b(!0) : b(!1);
1299
+ }, [n.allSteps, N.isSuccess, n.isSuccess, n == null ? void 0 : n.statusData]), M(() => {
1300
+ var T, j, O, q, nt;
1301
+ (T = f == null ? void 0 : f.error) != null && T.length || ((j = n.statusData) == null ? void 0 : j.status) == "failed" || ((O = n.statusData) == null ? void 0 : O.status) == "partial-success" || ((q = n.statusData) == null ? void 0 : q.status) == "txn-expired" || ((nt = n.statusData) == null ? void 0 : nt.status) == "refunded" ? l(!0) : l(!1);
1302
+ }, [f, n == null ? void 0 : n.statusData]), M(() => {
1303
+ var T, j;
1304
+ !((T = f == null ? void 0 : f.error) != null && T.length) && (n != null && n.hash) && ((j = n == null ? void 0 : n.statusData) == null ? void 0 : j.srcTxnHash) !== (n == null ? void 0 : n.hash) && s({
1305
+ ...d.getState().persist,
1306
+ allSteps: {
1307
+ ...d.getState().persist.allSteps,
1308
+ type: "postText"
1309
+ }
1310
+ });
1311
+ }, [f == null ? void 0 : f.error, n == null ? void 0 : n.hash]), M(() => {
1312
+ var j, O, q;
1313
+ let T = { ...(j = d.getState()) == null ? void 0 : j.persist };
1314
+ ((O = n == null ? void 0 : n.allSteps) == null ? void 0 : O.steps) !== null && (console.log((q = n == null ? void 0 : n.allSteps) == null ? void 0 : q.steps, "Called"), T = {
1315
+ ...T,
1316
+ stepStatus: $()
1317
+ }, s(T));
1318
+ }, [n.allSteps]), M(() => {
1319
+ var T;
1320
+ rt.isEmpty(n == null ? void 0 : n.allSteps) || n.hash || s({
1321
+ ...d.getState().persist,
1322
+ allSteps: { ...d.getState().persist.allSteps, type: "preText" },
1323
+ loading: !1
1324
+ }), n != null && n.routeId && !v && e(), S(n == null ? void 0 : n.nextTx), ((T = n == null ? void 0 : n.nextTx) == null ? void 0 : T.status) === "error" && (s({
1325
+ ...d.getState().persist,
1326
+ loading: !0
1327
+ }), I(n == null ? void 0 : n.stepData, n == null ? void 0 : n.routeId));
1328
+ }, []), M(() => {
1329
+ var T;
1330
+ p && !x && s({ ...(T = d.getState()) == null ? void 0 : T.persist, loading: !1 });
1331
+ }, [p, x]), M(() => {
1332
+ var T, j, O;
1333
+ (O = (j = (T = d.getState()) == null ? void 0 : T.persist) == null ? void 0 : j.nextTx) != null && O.data && x && (P(), a(!1));
1334
+ }, [(et = (tt = (Y = d.getState()) == null ? void 0 : Y.persist) == null ? void 0 : tt.nextTx) == null ? void 0 : et.data]);
1335
+ function G(T) {
1336
+ a(T);
1337
+ }
1338
+ async function P() {
1339
+ var T, j, O, q, nt, wt;
1340
+ (j = n.allSteps.steps) != null && j[((T = n.allSteps) == null ? void 0 : T.currentStep) || 0] && (s({
1341
+ ...(O = d.getState()) == null ? void 0 : O.persist,
1342
+ loading: !0,
1343
+ isTimerStarted: !0,
1344
+ statusData: null,
1345
+ isQuoteTimer: !1,
1346
+ showAcceptQuote: !1,
1347
+ quote: "disable",
1348
+ startTime: ((wt = (nt = (q = d) == null ? void 0 : q.getState()) == null ? void 0 : nt.persist) == null ? void 0 : wt.startTime) || (/* @__PURE__ */ new Date()).getTime()
1349
+ }), r(!0), c(), s({
1350
+ ...d.getState().persist,
1351
+ allSteps: {
1352
+ ...d.getState().persist.allSteps,
1353
+ type: "loadingText"
1354
+ }
1355
+ }));
1356
+ }
1357
+ return M(() => {
1358
+ var T, j, O, q, nt, wt, It;
1359
+ if ((j = (T = n == null ? void 0 : n.stepData) == null ? void 0 : T.from) != null && j.chainId)
1360
+ Number((q = (O = n == null ? void 0 : n.stepData) == null ? void 0 : O.from) == null ? void 0 : q.chainId) !== (h == null ? void 0 : h.chainId) && ((nt = n == null ? void 0 : n.fromChain) == null ? void 0 : nt.networkType) === "evm" && k({
1361
+ chainId: Number(((It = (wt = n == null ? void 0 : n.stepData) == null ? void 0 : wt.from) == null ? void 0 : It.chainId) || "0")
1362
+ });
1363
+ else return;
1364
+ }, [n == null ? void 0 : n.stepData]), /* @__PURE__ */ y(H, { children: [
1365
+ ((xt = n == null ? void 0 : n.statusData) == null ? void 0 : xt.status) !== "txn-expired" ? /* @__PURE__ */ o("div", { className: `bw-pt-4 bw-h-[80%] bw-mt-2 bw-relative ${i ? "bw-pointer-events-none bw-opacity-60" : ""}`, children: !N.isFetching && !rt.isEmpty(n == null ? void 0 : n.stepData) ? N.isSuccess && N.data || n != null && n.routeId ? (mt = ((dt = n == null ? void 0 : n.allSteps) == null ? void 0 : dt.steps) || ((bt = (ut = N.data) == null ? void 0 : ut.data) == null ? void 0 : bt.steps)) == null ? void 0 : mt.map((T, j, O) => /* @__PURE__ */ y(H, { children: [
1366
+ " ",
1367
+ /* @__PURE__ */ y("div", { className: "bw-flex bw-items-start bw-mb-4 bw-justify-between", children: [
1368
+ /* @__PURE__ */ y("div", { className: "bw-flex bw-relative bw-items-start bw-w-max bw-justify-center bw-gap-x-3", children: [
1369
+ /* @__PURE__ */ o(In, { allSteps: n.allSteps, disableButton: n == null ? void 0 : n.loading, i: j, arr: O }),
1370
+ /* @__PURE__ */ o(mn, { item: T, i: j })
1371
+ ] }),
1372
+ /* @__PURE__ */ o(bn, { i: j, item: T })
1373
+ ] })
1374
+ ] })) : /* @__PURE__ */ o(H, {}) : /* @__PURE__ */ o("div", { className: "bw-w-full bw-flex-1 bw-h-full bw-mt-[-5%] bw-flex bw-flex-col bw-justify-center bw-items-center ", children: D ? /* @__PURE__ */ o(jt, { text: "Unable to complete the request!" }) : /* @__PURE__ */ y(H, { children: [
1375
+ /* @__PURE__ */ o("div", { className: "bw-relative bw-pb-4", children: /* @__PURE__ */ o(Pn, {}) }),
1376
+ /* @__PURE__ */ o("p", { className: "bw-text-2xl bw-text-center bw-font-medium bw-text-text-secondary", children: "Initializing Transaction..." })
1377
+ ] }) }) }) : /* @__PURE__ */ o(H, {}),
1378
+ !N.isFetching && !rt.isEmpty(n == null ? void 0 : n.stepData) ? i ? /* @__PURE__ */ o(Un, { handleUpdate: C }) : ((V = n == null ? void 0 : n.statusData) == null ? void 0 : V.status) == "success" && n.allSteps.currentStep == ((vt = n.allSteps.steps) == null ? void 0 : vt.length) ? /* @__PURE__ */ o(cn, { handleBack: t }) : p ? ((Nt = n.statusData) == null ? void 0 : Nt.status) == "partial-success" ? /* @__PURE__ */ o(_n, { handleBack: t }) : ((At = n == null ? void 0 : n.statusData) == null ? void 0 : At.status) == "txn-expired" ? /* @__PURE__ */ y("div", { className: "bw-mt-6", children: [
1379
+ /* @__PURE__ */ o(jt, { text: "Transaction expired!" }),
1380
+ /* @__PURE__ */ o("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-items-center bw-justify-center bw-bottom-0", children: /* @__PURE__ */ o(Vt, { handleBack: t, errorText: D }) })
1381
+ ] }) : /* @__PURE__ */ o(dn, { errorText: D, handleGoBack: t, txnTextObj: g, handleExeTxn: _, handleDisable: G }) : /* @__PURE__ */ y("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-items-center bw-justify-center bw-bottom-0", children: [
1382
+ /* @__PURE__ */ o(un, { txnProcessType: A, txnTextObj: g, errorText: D, allSteps: n == null ? void 0 : n.allSteps }),
1383
+ /* @__PURE__ */ o(xn, { txnProcessType: A, txnTextObj: g, disableButton: n.loading, handleStep: P })
1384
+ ] }) : D != null && D.length ? /* @__PURE__ */ o("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-items-center bw-justify-center bw-bottom-0", children: /* @__PURE__ */ o(Vt, { handleBack: t, errorText: D }) }) : /* @__PURE__ */ o(H, {})
1385
+ ] });
1386
+ }
1387
+ var ht = { exports: {} }, Hn = ht.exports, Pt;
1388
+ function On() {
1389
+ return Pt || (Pt = 1, function(e, r) {
1390
+ (function(t, n) {
1391
+ e.exports = n(kt);
1392
+ })(typeof self < "u" ? self : Hn, (t) => (() => {
1393
+ var n = { 155: (m) => {
1394
+ m.exports = t;
1395
+ } }, s = {};
1396
+ function x(m) {
1397
+ var c = s[m];
1398
+ if (c !== void 0) return c.exports;
1399
+ var u = s[m] = { exports: {} };
1400
+ return n[m](u, u.exports, x), u.exports;
1401
+ }
1402
+ x.d = (m, c) => {
1403
+ for (var u in c) x.o(c, u) && !x.o(m, u) && Object.defineProperty(m, u, { enumerable: !0, get: c[u] });
1404
+ }, x.o = (m, c) => Object.prototype.hasOwnProperty.call(m, c), x.r = (m) => {
1405
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
1406
+ };
1407
+ var a = {};
1408
+ x.r(a), x.d(a, { default: () => i, useStopwatch: () => C, useTime: () => _, useTimer: () => $ });
1409
+ var b = x(155);
1410
+ class p {
1411
+ static expiryTimestamp(c) {
1412
+ const u = new Date(c).getTime() > 0;
1413
+ return u || console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings", c), u;
1414
+ }
1415
+ static onExpire(c) {
1416
+ const u = c && typeof c == "function";
1417
+ return c && !u && console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function", c), u;
1418
+ }
1419
+ }
1420
+ class l {
1421
+ static getTimeFromSeconds(c) {
1422
+ const u = Math.ceil(c), S = Math.floor(u / 86400), I = Math.floor(u % 86400 / 3600), N = Math.floor(u % 3600 / 60);
1423
+ return { totalSeconds: u, seconds: Math.floor(u % 60), minutes: N, hours: I, days: S };
1424
+ }
1425
+ static getSecondsFromExpiry(c, u) {
1426
+ const S = c - (/* @__PURE__ */ new Date()).getTime();
1427
+ if (S > 0) {
1428
+ const I = S / 1e3;
1429
+ return u ? Math.round(I) : I;
1430
+ }
1431
+ return 0;
1432
+ }
1433
+ static getSecondsFromPrevTime(c, u) {
1434
+ const S = (/* @__PURE__ */ new Date()).getTime() - c;
1435
+ if (S > 0) {
1436
+ const I = S / 1e3;
1437
+ return u ? Math.round(I) : I;
1438
+ }
1439
+ return 0;
1440
+ }
1441
+ static getSecondsFromTimeNow() {
1442
+ const c = /* @__PURE__ */ new Date();
1443
+ return c.getTime() / 1e3 - 60 * c.getTimezoneOffset();
1444
+ }
1445
+ static getFormattedTimeFromSeconds(c, u) {
1446
+ const { seconds: S, minutes: I, hours: N } = l.getTimeFromSeconds(c);
1447
+ let k = "", w = N;
1448
+ return u === "12-hour" && (k = N >= 12 ? "pm" : "am", w = N % 12), { seconds: S, minutes: I, hours: w, ampm: k };
1449
+ }
1450
+ }
1451
+ function f(m, c) {
1452
+ const u = (0, b.useRef)();
1453
+ (0, b.useEffect)(() => {
1454
+ u.current = m;
1455
+ }), (0, b.useEffect)(() => {
1456
+ if (!c) return () => {
1457
+ };
1458
+ const S = setInterval(() => {
1459
+ u.current && u.current();
1460
+ }, c);
1461
+ return () => clearInterval(S);
1462
+ }, [c]);
1463
+ }
1464
+ const h = 1e3;
1465
+ function v(m) {
1466
+ if (!p.expiryTimestamp(m)) return null;
1467
+ const c = l.getSecondsFromExpiry(m), u = Math.floor(1e3 * (c - Math.floor(c)));
1468
+ return u > 0 ? u : h;
1469
+ }
1470
+ function $() {
1471
+ let { expiryTimestamp: m, onExpire: c, autoStart: u = !0 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1472
+ const [S, I] = (0, b.useState)(m), [N, k] = (0, b.useState)(l.getSecondsFromExpiry(S)), [w, g] = (0, b.useState)(u), [A, D] = (0, b.useState)(u), [G, P] = (0, b.useState)(v(S)), E = (0, b.useCallback)(() => {
1473
+ p.onExpire(c) && c(), g(!1), P(null);
1474
+ }, [c]), B = (0, b.useCallback)(() => {
1475
+ g(!1);
1476
+ }, []), F = (0, b.useCallback)(function(U) {
1477
+ let R = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
1478
+ P(v(U)), D(R), g(R), I(U), k(l.getSecondsFromExpiry(U));
1479
+ }, []), L = (0, b.useCallback)(() => {
1480
+ const U = /* @__PURE__ */ new Date();
1481
+ U.setMilliseconds(U.getMilliseconds() + 1e3 * N), F(U);
1482
+ }, [N, F]), z = (0, b.useCallback)(() => {
1483
+ A ? (k(l.getSecondsFromExpiry(S)), g(!0)) : L();
1484
+ }, [S, A, L]);
1485
+ return f(() => {
1486
+ G !== h && P(h);
1487
+ const U = l.getSecondsFromExpiry(S);
1488
+ k(U), U <= 0 && E();
1489
+ }, w ? G : null), { ...l.getTimeFromSeconds(N), start: z, pause: B, resume: L, restart: F, isRunning: w };
1490
+ }
1491
+ function C() {
1492
+ let { autoStart: m, offsetTimestamp: c } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1493
+ const [u, S] = (0, b.useState)(l.getSecondsFromExpiry(c, !0) || 0), [I, N] = (0, b.useState)(/* @__PURE__ */ new Date()), [k, w] = (0, b.useState)(u + l.getSecondsFromPrevTime(I || 0, !0)), [g, A] = (0, b.useState)(m);
1494
+ f(() => {
1495
+ w(u + l.getSecondsFromPrevTime(I, !0));
1496
+ }, g ? 1e3 : null);
1497
+ const D = (0, b.useCallback)(() => {
1498
+ const E = /* @__PURE__ */ new Date();
1499
+ N(E), A(!0), w(u + l.getSecondsFromPrevTime(E, !0));
1500
+ }, [u]), G = (0, b.useCallback)(() => {
1501
+ S(k), A(!1);
1502
+ }, [k]), P = (0, b.useCallback)(function() {
1503
+ let E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, B = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
1504
+ const F = l.getSecondsFromExpiry(E, !0) || 0, L = /* @__PURE__ */ new Date();
1505
+ N(L), S(F), A(B), w(F + l.getSecondsFromPrevTime(L, !0));
1506
+ }, []);
1507
+ return { ...l.getTimeFromSeconds(k), start: D, pause: G, reset: P, isRunning: g };
1508
+ }
1509
+ function _() {
1510
+ let { format: m } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1511
+ const [c, u] = (0, b.useState)(l.getSecondsFromTimeNow());
1512
+ return f(() => {
1513
+ u(l.getSecondsFromTimeNow());
1514
+ }, 1e3), { ...l.getFormattedTimeFromSeconds(c, m) };
1515
+ }
1516
+ function i(m) {
1517
+ if ((0, b.useEffect)(() => {
1518
+ console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead");
1519
+ }, []), m.expiryTimestamp) {
1520
+ const u = $(m);
1521
+ return { ...u, startTimer: u.start, stopTimer: u.pause, resetTimer: () => {
1522
+ } };
1523
+ }
1524
+ const c = C(m);
1525
+ return { ...c, startTimer: c.start, stopTimer: c.pause, resetTimer: c.reset };
1526
+ }
1527
+ return a;
1528
+ })());
1529
+ }(ht)), ht.exports;
1530
+ }
1531
+ var Rn = On();
1532
+ function Ut(e) {
1533
+ return e > 9 || e < 0 ? e : `0${e}`;
1534
+ }
1535
+ function zn({ handleExpiry: e }) {
1536
+ var a;
1537
+ const r = d((b) => b.persist), t = (r == null ? void 0 : r.route) || {};
1538
+ let n = (r == null ? void 0 : r.startTime) || ((a = r == null ? void 0 : r.historyData) == null ? void 0 : a.createdAt);
1539
+ const { minutes: s, seconds: x } = Rn.useTimer({
1540
+ expiryTimestamp: n + (t == null ? void 0 : t.estimatedTimeInSeconds) * 1e3,
1541
+ onExpire: () => {
1542
+ e();
1543
+ }
1544
+ });
1545
+ return `${Ut(s)}:${Ut(x)}`;
1546
+ }
1547
+ const f0 = kt.memo(function({ route: r, isTimerStarted: t, startTimer: n, isErrorMessage: s }) {
1548
+ const [x, a] = ot(!1), { isTxnSuccessful: b } = K(Wt), l = !d((h) => h.persist).stepData;
1549
+ function f() {
1550
+ a(!0), n(!1);
1551
+ }
1552
+ return /* @__PURE__ */ o("div", { className: "bw-border bw-w-[65px] bw-mt-5 bw-h-[65px] bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-container bw-relative bw-z-10 hover:bw-opacity-100 bw-border-border-primary ", children: /* @__PURE__ */ o("p", { className: " bw-text-sm bw-text-center bw-font-medium bw-text-text-primary", children: l ? /* @__PURE__ */ o(Ft, {}) : b ? "Done" : t && !x ? /* @__PURE__ */ o(zn, { route: r, handleExpiry: f }) : x ? /* @__PURE__ */ o(Ft, {}) : "Start Txn" }) });
1553
+ });
1554
+ function Zt(e, r) {
1555
+ return Be(e, r) || 0;
1556
+ }
1557
+ function Wn() {
1558
+ var r, t, n, s, x, a, b;
1559
+ const e = d((p) => p.persist);
1560
+ return /* @__PURE__ */ y("div", { className: "bw-w-full bw-px-3 bw-py-2 bw-border-t bw-border-border-primary", children: [
1561
+ /* @__PURE__ */ o("div", { children: (t = (r = e == null ? void 0 : e.route) == null ? void 0 : r.fee) == null ? void 0 : t.filter((p, l) => p.source == "FROM_SOURCE_WALLET").map((p, l) => (console.log(p, "item"), p.amountInUSD ? /* @__PURE__ */ y("div", { className: "bw-flex bw-mb-1 bw-items-center bw-justify-between", children: [
1562
+ /* @__PURE__ */ o("p", { className: "bw-text-text-secondary bw-text-sm bw-font-semibold", children: `${Kt(p.type)} Fee` }),
1563
+ /* @__PURE__ */ y("span", { className: "bw-text-text-secondary bw-text-sm bw-font-bold", children: [
1564
+ /* @__PURE__ */ o(lt, { value: Zt(p.amountInToken, p.token.decimals).toFixed(20) || 0, options: { maxDecimals: 8 } }),
1565
+ ` ${p.token.symbol} ${p.amountInUSD ? " ($" : ""}`,
1566
+ p.amountInUSD ? /* @__PURE__ */ y(H, { children: [
1567
+ /* @__PURE__ */ o(lt, { value: p.amountInUSD || 0, options: { maxDecimals: 8 } }),
1568
+ ")"
1569
+ ] }) : ""
1570
+ ] })
1571
+ ] }, l) : /* @__PURE__ */ o(H, {}))) }),
1572
+ /* @__PURE__ */ o("div", { className: "bw-w-full bw-h-[1px] bw-border-b bw-my-2 bw-border-border-primary" }),
1573
+ /* @__PURE__ */ y("div", { className: "bw-w-full", children: [
1574
+ /* @__PURE__ */ y("div", { className: "bw-flex bw-items-center bw-mb-2 bw-justify-between", children: [
1575
+ /* @__PURE__ */ o("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Max Slippage" }),
1576
+ /* @__PURE__ */ y("span", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: [
1577
+ (((n = e == null ? void 0 : e.route) == null ? void 0 : n.slippage) || 0) / 100,
1578
+ "%"
1579
+ ] })
1580
+ ] }),
1581
+ /* @__PURE__ */ y("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
1582
+ /* @__PURE__ */ o("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Minimum Received" }),
1583
+ /* @__PURE__ */ o("span", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: (s = e == null ? void 0 : e.route) != null && s.minOutputAmountDisplay || (x = e == null ? void 0 : e.route) != null && x.minOutputAmount ? `${Ht(e.route.minOutputAmountDisplay || e.route.minOutputAmount, 10)} ${(b = (a = e == null ? void 0 : e.route) == null ? void 0 : a.to) == null ? void 0 : b.symbol}` : "" })
1584
+ ] })
1585
+ ] })
1586
+ ] });
1587
+ }
1588
+ function Qn({ isShowFull: e }) {
1589
+ return /* @__PURE__ */ o("button", { className: "bw-w-[20px] bw-h-[20px] bw-flex bw-items-center bw-justify-center bw-border bw-border-border-primary bw-rounded-full bw-text-text-secondary bw-text-lg bw-font-normal", children: /* @__PURE__ */ o("div", { className: `bw-mt-[1px] ${e ? "bw-rotate-180" : ""}`, children: /* @__PURE__ */ o(fe, { fill: "var(--tw-text-primary)" }) }) });
1590
+ }
1591
+ function qn({ gasData: e }) {
1592
+ var t;
1593
+ const r = d((n) => n.persist);
1594
+ return /* @__PURE__ */ y("div", { className: "bw-flex bw-w-full bw-h-full bw-items-center", children: [
1595
+ /* @__PURE__ */ o("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Max Slippage:" }),
1596
+ /* @__PURE__ */ y("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
1597
+ (((t = r == null ? void 0 : r.route) == null ? void 0 : t.slippage) || 0) / 100,
1598
+ "%"
1599
+ ] }),
1600
+ /* @__PURE__ */ o("div", { className: "bw-w-[2px] bw-h-[24px] bw-mx-3 bw-bg-text-secondary" }),
1601
+ /* @__PURE__ */ o("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Fees:" }),
1602
+ /* @__PURE__ */ y("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
1603
+ /* @__PURE__ */ o(lt, { value: (e == null ? void 0 : e.payableInToken) || 0, options: { maxDecimals: 8 } }),
1604
+ ` ${e == null ? void 0 : e.symbol} ${e != null && e.payableInUSD ? " ($" : ""}`,
1605
+ e != null && e.payableInUSD ? /* @__PURE__ */ y(H, { children: [
1606
+ /* @__PURE__ */ o(lt, { value: (e == null ? void 0 : e.payableInUSD) || 0, options: { maxDecimals: 8 } }),
1607
+ ")"
1608
+ ] }) : ""
1609
+ ] })
1610
+ ] });
1611
+ }
1612
+ function Jn({ gasData: e }) {
1613
+ return /* @__PURE__ */ y("div", { className: "bw-w-full bw-flex bw-items-center bw-justify-between bw-border-border-primary", children: [
1614
+ /* @__PURE__ */ o("span", { className: "bw-text-sm bw-font-bold bw-text-text-primary", children: "Fees" }),
1615
+ /* @__PURE__ */ y("span", { className: "bw-text-sm bw-ml-[3px] bw-font-bold bw-text-text-primary", children: [
1616
+ /* @__PURE__ */ o(lt, { value: (e == null ? void 0 : e.payableInToken) || 0, options: { maxDecimals: 8 } }),
1617
+ ` ${e == null ? void 0 : e.symbol} ${e != null && e.payableInUSD ? " ($" : ""}`,
1618
+ e != null && e.payableInUSD ? /* @__PURE__ */ y(H, { children: [
1619
+ /* @__PURE__ */ o(lt, { value: (e == null ? void 0 : e.payableInUSD) || 0, options: { maxDecimals: 8 } }),
1620
+ ")"
1621
+ ] }) : ""
1622
+ ] })
1623
+ ] });
1624
+ }
1625
+ function Kn({ gasData: e, isShowFull: r }) {
1626
+ return /* @__PURE__ */ y("div", { className: "bw-flex bw-items-center bw-justify-between bw-gap-x-2 bw-h-[35px] bw-px-3", children: [
1627
+ r ? /* @__PURE__ */ o(Jn, { gasData: e }) : /* @__PURE__ */ o(qn, { gasData: e }),
1628
+ /* @__PURE__ */ o(Qn, { isShowFull: r })
1629
+ ] });
1630
+ }
1631
+ function k0() {
1632
+ var l, f;
1633
+ const e = d((h) => h.persist), [r, t] = ot(!1), n = d((h) => h.configuration), s = pt(null), [x, a] = ot(0);
1634
+ console.log(x, "content"), M(() => {
1635
+ if (s.current) {
1636
+ const h = setTimeout(() => {
1637
+ const v = s.current.scrollHeight;
1638
+ a(v);
1639
+ }, 50);
1640
+ return () => clearTimeout(h);
1641
+ }
1642
+ }, [e == null ? void 0 : e.route, r]);
1643
+ function b() {
1644
+ t(!r);
1645
+ }
1646
+ const p = se(() => {
1647
+ var v, $;
1648
+ let h = {
1649
+ payableInUSD: 0,
1650
+ payableInToken: 0,
1651
+ symbol: ""
1652
+ };
1653
+ return ($ = (v = e == null ? void 0 : e.route) == null ? void 0 : v.fee) == null || $.forEach((C) => {
1654
+ C.source == "FROM_SOURCE_WALLET" && (h.payableInUSD += Number(C.amountInUSD), h.payableInToken += Zt(Number(C.amountInToken), C.token.decimals), h.symbol = C.token.symbol);
1655
+ }), h;
1656
+ }, [e == null ? void 0 : e.route]);
1657
+ return /* @__PURE__ */ y(
1658
+ "div",
1659
+ {
1660
+ onClick: () => {
1661
+ b();
1662
+ },
1663
+ style: {
1664
+ boxShadow: n && n.customTheme && ((f = (l = n.customTheme) == null ? void 0 : l.shadow) == null ? void 0 : f.boxShadow) || "0px 0px 5.8px 0px #00000026"
1665
+ },
1666
+ className: "bw-w-full bw-sticky bw-top-0 bw-z-20 bw-select-none bw-cursor-pointer bw-bg-background-container bw-rounded-lg bw-min-h-max bw-border bw-border-border-primary bw-overflow-hidden",
1667
+ children: [
1668
+ /* @__PURE__ */ o(Kn, { gasData: p, isShowFull: r }),
1669
+ /* @__PURE__ */ o(
1670
+ "div",
1671
+ {
1672
+ ref: s,
1673
+ style: {
1674
+ height: r ? `${x}px` : "0",
1675
+ transition: "height 0.3s ease-in-out",
1676
+ overflow: "hidden",
1677
+ visibility: x === 0 ? "hidden" : "visible"
1678
+ },
1679
+ children: /* @__PURE__ */ o("div", { className: "bw-h-auto", children: /* @__PURE__ */ o(Wn, { showFull: r }) })
1680
+ }
1681
+ )
1682
+ ]
1683
+ }
1684
+ );
1685
+ }
1686
+ export {
1687
+ k0 as E,
1688
+ p0 as H,
1689
+ Wt as T,
1690
+ ct as a,
1691
+ w0 as b,
1692
+ f0 as c,
1693
+ y0 as d,
1694
+ h0 as e
1695
+ };