@pyefi/widget 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pye-widget.es.js +1471 -1396
- package/dist/pye-widget.es.js.map +1 -1
- package/package.json +9 -9
package/dist/pye-widget.es.js
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import { jsxs as f, jsx as i, Fragment as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { useWallet as
|
|
4
|
-
import { PhantomWalletAdapter as
|
|
5
|
-
import { WalletAdapterNetwork as
|
|
6
|
-
import {
|
|
7
|
-
import { useBalanceStore as
|
|
8
|
-
import { createStore as
|
|
9
|
-
import { immer as
|
|
10
|
-
import { useStore as
|
|
11
|
-
import { createPortal as
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (_e) return
|
|
15
|
-
_e = 1,
|
|
16
|
-
for (var c = [], l = [],
|
|
17
|
-
c[
|
|
1
|
+
import { jsxs as f, jsx as i, Fragment as oe } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as Et, useContext as It, useRef as ae, useState as We, useMemo as Pe, useEffect as re, useCallback as pt } from "react";
|
|
3
|
+
import { useWallet as Ve, useConnection as $e, ConnectionProvider as Ct, WalletProvider as Rt } from "@solana/wallet-adapter-react";
|
|
4
|
+
import { PhantomWalletAdapter as Ft, SolflareWalletAdapter as Lt, TorusWalletAdapter as Mt, LedgerWalletAdapter as Dt, WalletConnectWalletAdapter as Tt } from "@solana/wallet-adapter-wallets";
|
|
5
|
+
import { WalletAdapterNetwork as Pt } from "@solana/wallet-adapter-base";
|
|
6
|
+
import { getPyeConfig as Ot, validatorAvailability as ht, SELL_YIELD_CODES as ge, fetchEpochSyncedNowTs as Ze, maturities as Ee, canSellYield as ft, estimateRtFromStake as Xe, checkSellLiquidity as yt, applyTradingFee as gt, PYE_TRADING_FEE_BPS as Nt, executeStakeDeposit as Ut, executeRtSell as Ht, executeDepositAndSell as Yt, fetchBalances as mt, writeCachedWalletBalances as xt, fetchUserStakeAccounts as wt, executeRedeem as Qt, configurePyeSDK as Wt } from "@pyefi/sdk";
|
|
7
|
+
import { useBalanceStore as se, useWalletStore as xe, useLockupStore as je, useValidatorStore as Oe, useMarketStore as bt, PyeSDKProvider as Vt, WalletSyncer as jt, BalanceSyncer as Gt, ValidatorSyncer as Jt, LockupSyncer as Kt, MarketSyncer as qt, ApySyncer as zt } from "@pyefi/sdk/react";
|
|
8
|
+
import { createStore as Zt } from "zustand/vanilla";
|
|
9
|
+
import { immer as Xt } from "zustand/middleware/immer";
|
|
10
|
+
import { useStore as $t } from "zustand";
|
|
11
|
+
import { createPortal as _t } from "react-dom";
|
|
12
|
+
var qe = {}, De = {}, _e;
|
|
13
|
+
function er() {
|
|
14
|
+
if (_e) return De;
|
|
15
|
+
_e = 1, De.byteLength = o, De.toByteArray = E, De.fromByteArray = O;
|
|
16
|
+
for (var c = [], l = [], d = typeof Uint8Array < "u" ? Uint8Array : Array, w = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", g = 0, x = w.length; g < x; ++g)
|
|
17
|
+
c[g] = w[g], l[w.charCodeAt(g)] = g;
|
|
18
18
|
l[45] = 62, l[95] = 63;
|
|
19
|
-
function y(
|
|
20
|
-
var
|
|
21
|
-
if (
|
|
19
|
+
function y(k) {
|
|
20
|
+
var v = k.length;
|
|
21
|
+
if (v % 4 > 0)
|
|
22
22
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
return [
|
|
23
|
+
var D = k.indexOf("=");
|
|
24
|
+
D === -1 && (D = v);
|
|
25
|
+
var L = D === v ? 0 : 4 - D % 4;
|
|
26
|
+
return [D, L];
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
var
|
|
30
|
-
return (
|
|
28
|
+
function o(k) {
|
|
29
|
+
var v = y(k), D = v[0], L = v[1];
|
|
30
|
+
return (D + L) * 3 / 4 - L;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return (
|
|
32
|
+
function A(k, v, D) {
|
|
33
|
+
return (v + D) * 3 / 4 - D;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
var
|
|
37
|
-
for (
|
|
38
|
-
|
|
39
|
-
return
|
|
35
|
+
function E(k) {
|
|
36
|
+
var v, D = y(k), L = D[0], p = D[1], I = new d(A(k, L, p)), T = 0, C = p > 0 ? L - 4 : L, R;
|
|
37
|
+
for (R = 0; R < C; R += 4)
|
|
38
|
+
v = l[k.charCodeAt(R)] << 18 | l[k.charCodeAt(R + 1)] << 12 | l[k.charCodeAt(R + 2)] << 6 | l[k.charCodeAt(R + 3)], I[T++] = v >> 16 & 255, I[T++] = v >> 8 & 255, I[T++] = v & 255;
|
|
39
|
+
return p === 2 && (v = l[k.charCodeAt(R)] << 2 | l[k.charCodeAt(R + 1)] >> 4, I[T++] = v & 255), p === 1 && (v = l[k.charCodeAt(R)] << 10 | l[k.charCodeAt(R + 1)] << 4 | l[k.charCodeAt(R + 2)] >> 2, I[T++] = v >> 8 & 255, I[T++] = v & 255), I;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return c[
|
|
41
|
+
function b(k) {
|
|
42
|
+
return c[k >> 18 & 63] + c[k >> 12 & 63] + c[k >> 6 & 63] + c[k & 63];
|
|
43
43
|
}
|
|
44
|
-
function B(
|
|
45
|
-
for (var
|
|
46
|
-
|
|
47
|
-
return
|
|
44
|
+
function B(k, v, D) {
|
|
45
|
+
for (var L, p = [], I = v; I < D; I += 3)
|
|
46
|
+
L = (k[I] << 16 & 16711680) + (k[I + 1] << 8 & 65280) + (k[I + 2] & 255), p.push(b(L));
|
|
47
|
+
return p.join("");
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
for (var
|
|
51
|
-
|
|
52
|
-
return
|
|
53
|
-
c[
|
|
54
|
-
)) :
|
|
55
|
-
c[
|
|
56
|
-
)),
|
|
49
|
+
function O(k) {
|
|
50
|
+
for (var v, D = k.length, L = D % 3, p = [], I = 16383, T = 0, C = D - L; T < C; T += I)
|
|
51
|
+
p.push(B(k, T, T + I > C ? C : T + I));
|
|
52
|
+
return L === 1 ? (v = k[D - 1], p.push(
|
|
53
|
+
c[v >> 2] + c[v << 4 & 63] + "=="
|
|
54
|
+
)) : L === 2 && (v = (k[D - 2] << 8) + k[D - 1], p.push(
|
|
55
|
+
c[v >> 10] + c[v >> 4 & 63] + c[v << 2 & 63] + "="
|
|
56
|
+
)), p.join("");
|
|
57
57
|
}
|
|
58
|
-
return
|
|
58
|
+
return De;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
60
|
+
var Qe = {};
|
|
61
61
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
62
62
|
var et;
|
|
63
|
-
function
|
|
64
|
-
return et || (et = 1,
|
|
65
|
-
var
|
|
66
|
-
for (B +=
|
|
63
|
+
function tr() {
|
|
64
|
+
return et || (et = 1, Qe.read = function(c, l, d, w, g) {
|
|
65
|
+
var x, y, o = g * 8 - w - 1, A = (1 << o) - 1, E = A >> 1, b = -7, B = d ? g - 1 : 0, O = d ? -1 : 1, k = c[l + B];
|
|
66
|
+
for (B += O, x = k & (1 << -b) - 1, k >>= -b, b += o; b > 0; x = x * 256 + c[l + B], B += O, b -= 8)
|
|
67
67
|
;
|
|
68
|
-
for (y =
|
|
68
|
+
for (y = x & (1 << -b) - 1, x >>= -b, b += w; b > 0; y = y * 256 + c[l + B], B += O, b -= 8)
|
|
69
69
|
;
|
|
70
|
-
if (
|
|
71
|
-
|
|
70
|
+
if (x === 0)
|
|
71
|
+
x = 1 - E;
|
|
72
72
|
else {
|
|
73
|
-
if (
|
|
74
|
-
return y ? NaN : (
|
|
75
|
-
y = y + Math.pow(2, w),
|
|
76
|
-
}
|
|
77
|
-
return (
|
|
78
|
-
},
|
|
79
|
-
var y,
|
|
80
|
-
for (l = Math.abs(l), isNaN(l) || l === 1 / 0 ? (
|
|
73
|
+
if (x === A)
|
|
74
|
+
return y ? NaN : (k ? -1 : 1) * (1 / 0);
|
|
75
|
+
y = y + Math.pow(2, w), x = x - E;
|
|
76
|
+
}
|
|
77
|
+
return (k ? -1 : 1) * y * Math.pow(2, x - w);
|
|
78
|
+
}, Qe.write = function(c, l, d, w, g, x) {
|
|
79
|
+
var y, o, A, E = x * 8 - g - 1, b = (1 << E) - 1, B = b >> 1, O = g === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = w ? 0 : x - 1, v = w ? 1 : -1, D = l < 0 || l === 0 && 1 / l < 0 ? 1 : 0;
|
|
80
|
+
for (l = Math.abs(l), isNaN(l) || l === 1 / 0 ? (o = isNaN(l) ? 1 : 0, y = b) : (y = Math.floor(Math.log(l) / Math.LN2), l * (A = Math.pow(2, -y)) < 1 && (y--, A *= 2), y + B >= 1 ? l += O / A : l += O * Math.pow(2, 1 - B), l * A >= 2 && (y++, A /= 2), y + B >= b ? (o = 0, y = b) : y + B >= 1 ? (o = (l * A - 1) * Math.pow(2, g), y = y + B) : (o = l * Math.pow(2, B - 1) * Math.pow(2, g), y = 0)); g >= 8; c[d + k] = o & 255, k += v, o /= 256, g -= 8)
|
|
81
81
|
;
|
|
82
|
-
for (y = y <<
|
|
82
|
+
for (y = y << g | o, E += g; E > 0; c[d + k] = y & 255, k += v, y /= 256, E -= 8)
|
|
83
83
|
;
|
|
84
|
-
c[
|
|
85
|
-
}),
|
|
84
|
+
c[d + k - v] |= D * 128;
|
|
85
|
+
}), Qe;
|
|
86
86
|
}
|
|
87
87
|
/*!
|
|
88
88
|
* The buffer module from node.js, for the browser.
|
|
@@ -91,15 +91,15 @@ function $t() {
|
|
|
91
91
|
* @license MIT
|
|
92
92
|
*/
|
|
93
93
|
var tt;
|
|
94
|
-
function
|
|
94
|
+
function rr() {
|
|
95
95
|
return tt || (tt = 1, (function(c) {
|
|
96
|
-
const l =
|
|
97
|
-
c.Buffer =
|
|
98
|
-
const
|
|
99
|
-
c.kMaxLength =
|
|
96
|
+
const l = er(), d = tr(), w = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
97
|
+
c.Buffer = o, c.SlowBuffer = I, c.INSPECT_MAX_BYTES = 50;
|
|
98
|
+
const g = 2147483647;
|
|
99
|
+
c.kMaxLength = g, o.TYPED_ARRAY_SUPPORT = x(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
100
100
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
101
101
|
);
|
|
102
|
-
function
|
|
102
|
+
function x() {
|
|
103
103
|
try {
|
|
104
104
|
const r = new Uint8Array(1), e = { foo: function() {
|
|
105
105
|
return 42;
|
|
@@ -109,26 +109,26 @@ function _t() {
|
|
|
109
109
|
return !1;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
Object.defineProperty(
|
|
112
|
+
Object.defineProperty(o.prototype, "parent", {
|
|
113
113
|
enumerable: !0,
|
|
114
114
|
get: function() {
|
|
115
|
-
if (
|
|
115
|
+
if (o.isBuffer(this))
|
|
116
116
|
return this.buffer;
|
|
117
117
|
}
|
|
118
|
-
}), Object.defineProperty(
|
|
118
|
+
}), Object.defineProperty(o.prototype, "offset", {
|
|
119
119
|
enumerable: !0,
|
|
120
120
|
get: function() {
|
|
121
|
-
if (
|
|
121
|
+
if (o.isBuffer(this))
|
|
122
122
|
return this.byteOffset;
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
function y(r) {
|
|
126
|
-
if (r >
|
|
126
|
+
if (r > g)
|
|
127
127
|
throw new RangeError('The value "' + r + '" is invalid for option "size"');
|
|
128
128
|
const e = new Uint8Array(r);
|
|
129
|
-
return Object.setPrototypeOf(e,
|
|
129
|
+
return Object.setPrototypeOf(e, o.prototype), e;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function o(r, e, t) {
|
|
132
132
|
if (typeof r == "number") {
|
|
133
133
|
if (typeof e == "string")
|
|
134
134
|
throw new TypeError(
|
|
@@ -136,121 +136,121 @@ function _t() {
|
|
|
136
136
|
);
|
|
137
137
|
return B(r);
|
|
138
138
|
}
|
|
139
|
-
return
|
|
139
|
+
return A(r, e, t);
|
|
140
140
|
}
|
|
141
|
-
|
|
142
|
-
function
|
|
141
|
+
o.poolSize = 8192;
|
|
142
|
+
function A(r, e, t) {
|
|
143
143
|
if (typeof r == "string")
|
|
144
|
-
return
|
|
144
|
+
return O(r, e);
|
|
145
145
|
if (ArrayBuffer.isView(r))
|
|
146
|
-
return
|
|
146
|
+
return v(r);
|
|
147
147
|
if (r == null)
|
|
148
148
|
throw new TypeError(
|
|
149
149
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof r
|
|
150
150
|
);
|
|
151
|
-
if (
|
|
152
|
-
return
|
|
151
|
+
if (N(r, ArrayBuffer) || r && N(r.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (N(r, SharedArrayBuffer) || r && N(r.buffer, SharedArrayBuffer)))
|
|
152
|
+
return D(r, e, t);
|
|
153
153
|
if (typeof r == "number")
|
|
154
154
|
throw new TypeError(
|
|
155
155
|
'The "value" argument must not be of type number. Received type number'
|
|
156
156
|
);
|
|
157
157
|
const n = r.valueOf && r.valueOf();
|
|
158
158
|
if (n != null && n !== r)
|
|
159
|
-
return
|
|
160
|
-
const s =
|
|
159
|
+
return o.from(n, e, t);
|
|
160
|
+
const s = L(r);
|
|
161
161
|
if (s) return s;
|
|
162
162
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof r[Symbol.toPrimitive] == "function")
|
|
163
|
-
return
|
|
163
|
+
return o.from(r[Symbol.toPrimitive]("string"), e, t);
|
|
164
164
|
throw new TypeError(
|
|
165
165
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof r
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
|
-
|
|
169
|
-
return
|
|
170
|
-
}, Object.setPrototypeOf(
|
|
171
|
-
function
|
|
168
|
+
o.from = function(r, e, t) {
|
|
169
|
+
return A(r, e, t);
|
|
170
|
+
}, Object.setPrototypeOf(o.prototype, Uint8Array.prototype), Object.setPrototypeOf(o, Uint8Array);
|
|
171
|
+
function E(r) {
|
|
172
172
|
if (typeof r != "number")
|
|
173
173
|
throw new TypeError('"size" argument must be of type number');
|
|
174
174
|
if (r < 0)
|
|
175
175
|
throw new RangeError('The value "' + r + '" is invalid for option "size"');
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
return
|
|
177
|
+
function b(r, e, t) {
|
|
178
|
+
return E(r), r <= 0 ? y(r) : e !== void 0 ? typeof t == "string" ? y(r).fill(e, t) : y(r).fill(e) : y(r);
|
|
179
179
|
}
|
|
180
|
-
|
|
181
|
-
return
|
|
180
|
+
o.alloc = function(r, e, t) {
|
|
181
|
+
return b(r, e, t);
|
|
182
182
|
};
|
|
183
183
|
function B(r) {
|
|
184
|
-
return
|
|
184
|
+
return E(r), y(r < 0 ? 0 : p(r) | 0);
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
o.allocUnsafe = function(r) {
|
|
187
187
|
return B(r);
|
|
188
|
-
},
|
|
188
|
+
}, o.allocUnsafeSlow = function(r) {
|
|
189
189
|
return B(r);
|
|
190
190
|
};
|
|
191
|
-
function
|
|
192
|
-
if ((typeof e != "string" || e === "") && (e = "utf8"), !
|
|
191
|
+
function O(r, e) {
|
|
192
|
+
if ((typeof e != "string" || e === "") && (e = "utf8"), !o.isEncoding(e))
|
|
193
193
|
throw new TypeError("Unknown encoding: " + e);
|
|
194
|
-
const t =
|
|
194
|
+
const t = T(r, e) | 0;
|
|
195
195
|
let n = y(t);
|
|
196
196
|
const s = n.write(r, e);
|
|
197
197
|
return s !== t && (n = n.slice(0, s)), n;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
const e = r.length < 0 ? 0 :
|
|
199
|
+
function k(r) {
|
|
200
|
+
const e = r.length < 0 ? 0 : p(r.length) | 0, t = y(e);
|
|
201
201
|
for (let n = 0; n < e; n += 1)
|
|
202
202
|
t[n] = r[n] & 255;
|
|
203
203
|
return t;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
if (
|
|
205
|
+
function v(r) {
|
|
206
|
+
if (N(r, Uint8Array)) {
|
|
207
207
|
const e = new Uint8Array(r);
|
|
208
|
-
return
|
|
208
|
+
return D(e.buffer, e.byteOffset, e.byteLength);
|
|
209
209
|
}
|
|
210
|
-
return
|
|
210
|
+
return k(r);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function D(r, e, t) {
|
|
213
213
|
if (e < 0 || r.byteLength < e)
|
|
214
214
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
215
215
|
if (r.byteLength < e + (t || 0))
|
|
216
216
|
throw new RangeError('"length" is outside of buffer bounds');
|
|
217
217
|
let n;
|
|
218
|
-
return e === void 0 && t === void 0 ? n = new Uint8Array(r) : t === void 0 ? n = new Uint8Array(r, e) : n = new Uint8Array(r, e, t), Object.setPrototypeOf(n,
|
|
218
|
+
return e === void 0 && t === void 0 ? n = new Uint8Array(r) : t === void 0 ? n = new Uint8Array(r, e) : n = new Uint8Array(r, e, t), Object.setPrototypeOf(n, o.prototype), n;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
if (
|
|
222
|
-
const e =
|
|
220
|
+
function L(r) {
|
|
221
|
+
if (o.isBuffer(r)) {
|
|
222
|
+
const e = p(r.length) | 0, t = y(e);
|
|
223
223
|
return t.length === 0 || r.copy(t, 0, 0, e), t;
|
|
224
224
|
}
|
|
225
225
|
if (r.length !== void 0)
|
|
226
|
-
return typeof r.length != "number" ||
|
|
226
|
+
return typeof r.length != "number" || te(r.length) ? y(0) : k(r);
|
|
227
227
|
if (r.type === "Buffer" && Array.isArray(r.data))
|
|
228
|
-
return
|
|
228
|
+
return k(r.data);
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
if (r >=
|
|
232
|
-
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" +
|
|
230
|
+
function p(r) {
|
|
231
|
+
if (r >= g)
|
|
232
|
+
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + g.toString(16) + " bytes");
|
|
233
233
|
return r | 0;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
return +r != r && (r = 0),
|
|
235
|
+
function I(r) {
|
|
236
|
+
return +r != r && (r = 0), o.alloc(+r);
|
|
237
237
|
}
|
|
238
|
-
|
|
239
|
-
return e != null && e._isBuffer === !0 && e !==
|
|
240
|
-
},
|
|
241
|
-
if (
|
|
238
|
+
o.isBuffer = function(e) {
|
|
239
|
+
return e != null && e._isBuffer === !0 && e !== o.prototype;
|
|
240
|
+
}, o.compare = function(e, t) {
|
|
241
|
+
if (N(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), N(t, Uint8Array) && (t = o.from(t, t.offset, t.byteLength)), !o.isBuffer(e) || !o.isBuffer(t))
|
|
242
242
|
throw new TypeError(
|
|
243
243
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
244
244
|
);
|
|
245
245
|
if (e === t) return 0;
|
|
246
246
|
let n = e.length, s = t.length;
|
|
247
|
-
for (let
|
|
248
|
-
if (e[
|
|
249
|
-
n = e[
|
|
247
|
+
for (let u = 0, h = Math.min(n, s); u < h; ++u)
|
|
248
|
+
if (e[u] !== t[u]) {
|
|
249
|
+
n = e[u], s = t[u];
|
|
250
250
|
break;
|
|
251
251
|
}
|
|
252
252
|
return n < s ? -1 : s < n ? 1 : 0;
|
|
253
|
-
},
|
|
253
|
+
}, o.isEncoding = function(e) {
|
|
254
254
|
switch (String(e).toLowerCase()) {
|
|
255
255
|
case "hex":
|
|
256
256
|
case "utf8":
|
|
@@ -267,37 +267,37 @@ function _t() {
|
|
|
267
267
|
default:
|
|
268
268
|
return !1;
|
|
269
269
|
}
|
|
270
|
-
},
|
|
270
|
+
}, o.concat = function(e, t) {
|
|
271
271
|
if (!Array.isArray(e))
|
|
272
272
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
273
273
|
if (e.length === 0)
|
|
274
|
-
return
|
|
274
|
+
return o.alloc(0);
|
|
275
275
|
let n;
|
|
276
276
|
if (t === void 0)
|
|
277
277
|
for (t = 0, n = 0; n < e.length; ++n)
|
|
278
278
|
t += e[n].length;
|
|
279
|
-
const s =
|
|
280
|
-
let
|
|
279
|
+
const s = o.allocUnsafe(t);
|
|
280
|
+
let u = 0;
|
|
281
281
|
for (n = 0; n < e.length; ++n) {
|
|
282
282
|
let h = e[n];
|
|
283
|
-
if (
|
|
284
|
-
|
|
283
|
+
if (N(h, Uint8Array))
|
|
284
|
+
u + h.length > s.length ? (o.isBuffer(h) || (h = o.from(h)), h.copy(s, u)) : Uint8Array.prototype.set.call(
|
|
285
285
|
s,
|
|
286
286
|
h,
|
|
287
|
-
|
|
287
|
+
u
|
|
288
288
|
);
|
|
289
|
-
else if (
|
|
290
|
-
h.copy(s,
|
|
289
|
+
else if (o.isBuffer(h))
|
|
290
|
+
h.copy(s, u);
|
|
291
291
|
else
|
|
292
292
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
293
|
-
|
|
293
|
+
u += h.length;
|
|
294
294
|
}
|
|
295
295
|
return s;
|
|
296
296
|
};
|
|
297
|
-
function
|
|
298
|
-
if (
|
|
297
|
+
function T(r, e) {
|
|
298
|
+
if (o.isBuffer(r))
|
|
299
299
|
return r.length;
|
|
300
|
-
if (ArrayBuffer.isView(r) ||
|
|
300
|
+
if (ArrayBuffer.isView(r) || N(r, ArrayBuffer))
|
|
301
301
|
return r.byteLength;
|
|
302
302
|
if (typeof r != "string")
|
|
303
303
|
throw new TypeError(
|
|
@@ -314,7 +314,7 @@ function _t() {
|
|
|
314
314
|
return t;
|
|
315
315
|
case "utf8":
|
|
316
316
|
case "utf-8":
|
|
317
|
-
return
|
|
317
|
+
return Se(r).length;
|
|
318
318
|
case "ucs2":
|
|
319
319
|
case "ucs-2":
|
|
320
320
|
case "utf16le":
|
|
@@ -323,179 +323,179 @@ function _t() {
|
|
|
323
323
|
case "hex":
|
|
324
324
|
return t >>> 1;
|
|
325
325
|
case "base64":
|
|
326
|
-
return
|
|
326
|
+
return pe(r).length;
|
|
327
327
|
default:
|
|
328
328
|
if (s)
|
|
329
|
-
return n ? -1 :
|
|
329
|
+
return n ? -1 : Se(r).length;
|
|
330
330
|
e = ("" + e).toLowerCase(), s = !0;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
|
-
|
|
334
|
-
function
|
|
333
|
+
o.byteLength = T;
|
|
334
|
+
function C(r, e, t) {
|
|
335
335
|
let n = !1;
|
|
336
336
|
if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, e >>>= 0, t <= e))
|
|
337
337
|
return "";
|
|
338
338
|
for (r || (r = "utf8"); ; )
|
|
339
339
|
switch (r) {
|
|
340
340
|
case "hex":
|
|
341
|
-
return
|
|
341
|
+
return X(this, e, t);
|
|
342
342
|
case "utf8":
|
|
343
343
|
case "utf-8":
|
|
344
|
-
return
|
|
344
|
+
return ke(this, e, t);
|
|
345
345
|
case "ascii":
|
|
346
|
-
return
|
|
346
|
+
return _(this, e, t);
|
|
347
347
|
case "latin1":
|
|
348
348
|
case "binary":
|
|
349
|
-
return
|
|
349
|
+
return we(this, e, t);
|
|
350
350
|
case "base64":
|
|
351
|
-
return
|
|
351
|
+
return Ae(this, e, t);
|
|
352
352
|
case "ucs2":
|
|
353
353
|
case "ucs-2":
|
|
354
354
|
case "utf16le":
|
|
355
355
|
case "utf-16le":
|
|
356
|
-
return
|
|
356
|
+
return Ge(this, e, t);
|
|
357
357
|
default:
|
|
358
358
|
if (n) throw new TypeError("Unknown encoding: " + r);
|
|
359
359
|
r = (r + "").toLowerCase(), n = !0;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
|
|
363
|
-
function
|
|
362
|
+
o.prototype._isBuffer = !0;
|
|
363
|
+
function R(r, e, t) {
|
|
364
364
|
const n = r[e];
|
|
365
365
|
r[e] = r[t], r[t] = n;
|
|
366
366
|
}
|
|
367
|
-
|
|
367
|
+
o.prototype.swap16 = function() {
|
|
368
368
|
const e = this.length;
|
|
369
369
|
if (e % 2 !== 0)
|
|
370
370
|
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
371
371
|
for (let t = 0; t < e; t += 2)
|
|
372
|
-
|
|
372
|
+
R(this, t, t + 1);
|
|
373
373
|
return this;
|
|
374
|
-
},
|
|
374
|
+
}, o.prototype.swap32 = function() {
|
|
375
375
|
const e = this.length;
|
|
376
376
|
if (e % 4 !== 0)
|
|
377
377
|
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
378
378
|
for (let t = 0; t < e; t += 4)
|
|
379
|
-
|
|
379
|
+
R(this, t, t + 3), R(this, t + 1, t + 2);
|
|
380
380
|
return this;
|
|
381
|
-
},
|
|
381
|
+
}, o.prototype.swap64 = function() {
|
|
382
382
|
const e = this.length;
|
|
383
383
|
if (e % 8 !== 0)
|
|
384
384
|
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
385
385
|
for (let t = 0; t < e; t += 8)
|
|
386
|
-
|
|
386
|
+
R(this, t, t + 7), R(this, t + 1, t + 6), R(this, t + 2, t + 5), R(this, t + 3, t + 4);
|
|
387
387
|
return this;
|
|
388
|
-
},
|
|
388
|
+
}, o.prototype.toString = function() {
|
|
389
389
|
const e = this.length;
|
|
390
|
-
return e === 0 ? "" : arguments.length === 0 ?
|
|
391
|
-
},
|
|
392
|
-
if (!
|
|
393
|
-
return this === e ? !0 :
|
|
394
|
-
},
|
|
390
|
+
return e === 0 ? "" : arguments.length === 0 ? ke(this, 0, e) : C.apply(this, arguments);
|
|
391
|
+
}, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(e) {
|
|
392
|
+
if (!o.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
|
|
393
|
+
return this === e ? !0 : o.compare(this, e) === 0;
|
|
394
|
+
}, o.prototype.inspect = function() {
|
|
395
395
|
let e = "";
|
|
396
396
|
const t = c.INSPECT_MAX_BYTES;
|
|
397
397
|
return e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (e += " ... "), "<Buffer " + e + ">";
|
|
398
|
-
}, w && (
|
|
399
|
-
if (
|
|
398
|
+
}, w && (o.prototype[w] = o.prototype.inspect), o.prototype.compare = function(e, t, n, s, u) {
|
|
399
|
+
if (N(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), !o.isBuffer(e))
|
|
400
400
|
throw new TypeError(
|
|
401
401
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
|
|
402
402
|
);
|
|
403
|
-
if (t === void 0 && (t = 0), n === void 0 && (n = e ? e.length : 0), s === void 0 && (s = 0),
|
|
403
|
+
if (t === void 0 && (t = 0), n === void 0 && (n = e ? e.length : 0), s === void 0 && (s = 0), u === void 0 && (u = this.length), t < 0 || n > e.length || s < 0 || u > this.length)
|
|
404
404
|
throw new RangeError("out of range index");
|
|
405
|
-
if (s >=
|
|
405
|
+
if (s >= u && t >= n)
|
|
406
406
|
return 0;
|
|
407
|
-
if (s >=
|
|
407
|
+
if (s >= u)
|
|
408
408
|
return -1;
|
|
409
409
|
if (t >= n)
|
|
410
410
|
return 1;
|
|
411
|
-
if (t >>>= 0, n >>>= 0, s >>>= 0,
|
|
412
|
-
let h =
|
|
413
|
-
const
|
|
414
|
-
for (let
|
|
415
|
-
if (H
|
|
416
|
-
h = H
|
|
411
|
+
if (t >>>= 0, n >>>= 0, s >>>= 0, u >>>= 0, this === e) return 0;
|
|
412
|
+
let h = u - s, P = n - t;
|
|
413
|
+
const G = Math.min(h, P), V = this.slice(s, u), J = e.slice(t, n);
|
|
414
|
+
for (let H = 0; H < G; ++H)
|
|
415
|
+
if (V[H] !== J[H]) {
|
|
416
|
+
h = V[H], P = J[H];
|
|
417
417
|
break;
|
|
418
418
|
}
|
|
419
|
-
return h <
|
|
419
|
+
return h < P ? -1 : P < h ? 1 : 0;
|
|
420
420
|
};
|
|
421
|
-
function
|
|
421
|
+
function Y(r, e, t, n, s) {
|
|
422
422
|
if (r.length === 0) return -1;
|
|
423
|
-
if (typeof t == "string" ? (n = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t,
|
|
423
|
+
if (typeof t == "string" ? (n = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, te(t) && (t = s ? 0 : r.length - 1), t < 0 && (t = r.length + t), t >= r.length) {
|
|
424
424
|
if (s) return -1;
|
|
425
425
|
t = r.length - 1;
|
|
426
426
|
} else if (t < 0)
|
|
427
427
|
if (s) t = 0;
|
|
428
428
|
else return -1;
|
|
429
|
-
if (typeof e == "string" && (e =
|
|
430
|
-
return e.length === 0 ? -1 :
|
|
429
|
+
if (typeof e == "string" && (e = o.from(e, n)), o.isBuffer(e))
|
|
430
|
+
return e.length === 0 ? -1 : M(r, e, t, n, s);
|
|
431
431
|
if (typeof e == "number")
|
|
432
|
-
return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? s ? Uint8Array.prototype.indexOf.call(r, e, t) : Uint8Array.prototype.lastIndexOf.call(r, e, t) :
|
|
432
|
+
return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? s ? Uint8Array.prototype.indexOf.call(r, e, t) : Uint8Array.prototype.lastIndexOf.call(r, e, t) : M(r, [e], t, n, s);
|
|
433
433
|
throw new TypeError("val must be string, number or Buffer");
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
let
|
|
435
|
+
function M(r, e, t, n, s) {
|
|
436
|
+
let u = 1, h = r.length, P = e.length;
|
|
437
437
|
if (n !== void 0 && (n = String(n).toLowerCase(), n === "ucs2" || n === "ucs-2" || n === "utf16le" || n === "utf-16le")) {
|
|
438
438
|
if (r.length < 2 || e.length < 2)
|
|
439
439
|
return -1;
|
|
440
|
-
|
|
440
|
+
u = 2, h /= 2, P /= 2, t /= 2;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
return
|
|
442
|
+
function G(J, H) {
|
|
443
|
+
return u === 1 ? J[H] : J.readUInt16BE(H * u);
|
|
444
444
|
}
|
|
445
|
-
let
|
|
445
|
+
let V;
|
|
446
446
|
if (s) {
|
|
447
|
-
let
|
|
448
|
-
for (
|
|
449
|
-
if (
|
|
450
|
-
if (
|
|
447
|
+
let J = -1;
|
|
448
|
+
for (V = t; V < h; V++)
|
|
449
|
+
if (G(r, V) === G(e, J === -1 ? 0 : V - J)) {
|
|
450
|
+
if (J === -1 && (J = V), V - J + 1 === P) return J * u;
|
|
451
451
|
} else
|
|
452
|
-
|
|
452
|
+
J !== -1 && (V -= V - J), J = -1;
|
|
453
453
|
} else
|
|
454
|
-
for (t +
|
|
455
|
-
let
|
|
456
|
-
for (let
|
|
457
|
-
if (
|
|
458
|
-
|
|
454
|
+
for (t + P > h && (t = h - P), V = t; V >= 0; V--) {
|
|
455
|
+
let J = !0;
|
|
456
|
+
for (let H = 0; H < P; H++)
|
|
457
|
+
if (G(r, V + H) !== G(e, H)) {
|
|
458
|
+
J = !1;
|
|
459
459
|
break;
|
|
460
460
|
}
|
|
461
|
-
if (
|
|
461
|
+
if (J) return V;
|
|
462
462
|
}
|
|
463
463
|
return -1;
|
|
464
464
|
}
|
|
465
|
-
|
|
465
|
+
o.prototype.includes = function(e, t, n) {
|
|
466
466
|
return this.indexOf(e, t, n) !== -1;
|
|
467
|
-
},
|
|
468
|
-
return
|
|
469
|
-
},
|
|
470
|
-
return
|
|
467
|
+
}, o.prototype.indexOf = function(e, t, n) {
|
|
468
|
+
return Y(this, e, t, n, !0);
|
|
469
|
+
}, o.prototype.lastIndexOf = function(e, t, n) {
|
|
470
|
+
return Y(this, e, t, n, !1);
|
|
471
471
|
};
|
|
472
|
-
function
|
|
472
|
+
function Q(r, e, t, n) {
|
|
473
473
|
t = Number(t) || 0;
|
|
474
474
|
const s = r.length - t;
|
|
475
475
|
n ? (n = Number(n), n > s && (n = s)) : n = s;
|
|
476
|
-
const
|
|
477
|
-
n >
|
|
476
|
+
const u = e.length;
|
|
477
|
+
n > u / 2 && (n = u / 2);
|
|
478
478
|
let h;
|
|
479
479
|
for (h = 0; h < n; ++h) {
|
|
480
|
-
const
|
|
481
|
-
if (
|
|
482
|
-
r[t + h] =
|
|
480
|
+
const P = parseInt(e.substr(h * 2, 2), 16);
|
|
481
|
+
if (te(P)) return h;
|
|
482
|
+
r[t + h] = P;
|
|
483
483
|
}
|
|
484
484
|
return h;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
return
|
|
486
|
+
function Z(r, e, t, n) {
|
|
487
|
+
return $(Se(e, r.length - t), r, t, n);
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
return
|
|
489
|
+
function z(r, e, t, n) {
|
|
490
|
+
return $(S(e), r, t, n);
|
|
491
491
|
}
|
|
492
|
-
function
|
|
493
|
-
return
|
|
492
|
+
function W(r, e, t, n) {
|
|
493
|
+
return $(pe(e), r, t, n);
|
|
494
494
|
}
|
|
495
|
-
function
|
|
496
|
-
return
|
|
495
|
+
function K(r, e, t, n) {
|
|
496
|
+
return $(ee(e, r.length - t), r, t, n);
|
|
497
497
|
}
|
|
498
|
-
|
|
498
|
+
o.prototype.write = function(e, t, n, s) {
|
|
499
499
|
if (t === void 0)
|
|
500
500
|
s = "utf8", n = this.length, t = 0;
|
|
501
501
|
else if (n === void 0 && typeof t == "string")
|
|
@@ -506,326 +506,326 @@ function _t() {
|
|
|
506
506
|
throw new Error(
|
|
507
507
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
508
508
|
);
|
|
509
|
-
const
|
|
510
|
-
if ((n === void 0 || n >
|
|
509
|
+
const u = this.length - t;
|
|
510
|
+
if ((n === void 0 || n > u) && (n = u), e.length > 0 && (n < 0 || t < 0) || t > this.length)
|
|
511
511
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
512
512
|
s || (s = "utf8");
|
|
513
513
|
let h = !1;
|
|
514
514
|
for (; ; )
|
|
515
515
|
switch (s) {
|
|
516
516
|
case "hex":
|
|
517
|
-
return
|
|
517
|
+
return Q(this, e, t, n);
|
|
518
518
|
case "utf8":
|
|
519
519
|
case "utf-8":
|
|
520
|
-
return
|
|
520
|
+
return Z(this, e, t, n);
|
|
521
521
|
case "ascii":
|
|
522
522
|
case "latin1":
|
|
523
523
|
case "binary":
|
|
524
|
-
return
|
|
524
|
+
return z(this, e, t, n);
|
|
525
525
|
case "base64":
|
|
526
|
-
return
|
|
526
|
+
return W(this, e, t, n);
|
|
527
527
|
case "ucs2":
|
|
528
528
|
case "ucs-2":
|
|
529
529
|
case "utf16le":
|
|
530
530
|
case "utf-16le":
|
|
531
|
-
return
|
|
531
|
+
return K(this, e, t, n);
|
|
532
532
|
default:
|
|
533
533
|
if (h) throw new TypeError("Unknown encoding: " + s);
|
|
534
534
|
s = ("" + s).toLowerCase(), h = !0;
|
|
535
535
|
}
|
|
536
|
-
},
|
|
536
|
+
}, o.prototype.toJSON = function() {
|
|
537
537
|
return {
|
|
538
538
|
type: "Buffer",
|
|
539
539
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
540
540
|
};
|
|
541
541
|
};
|
|
542
|
-
function
|
|
542
|
+
function Ae(r, e, t) {
|
|
543
543
|
return e === 0 && t === r.length ? l.fromByteArray(r) : l.fromByteArray(r.slice(e, t));
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function ke(r, e, t) {
|
|
546
546
|
t = Math.min(r.length, t);
|
|
547
547
|
const n = [];
|
|
548
548
|
let s = e;
|
|
549
549
|
for (; s < t; ) {
|
|
550
|
-
const
|
|
551
|
-
let h = null,
|
|
552
|
-
if (s +
|
|
553
|
-
let
|
|
554
|
-
switch (
|
|
550
|
+
const u = r[s];
|
|
551
|
+
let h = null, P = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
|
|
552
|
+
if (s + P <= t) {
|
|
553
|
+
let G, V, J, H;
|
|
554
|
+
switch (P) {
|
|
555
555
|
case 1:
|
|
556
|
-
|
|
556
|
+
u < 128 && (h = u);
|
|
557
557
|
break;
|
|
558
558
|
case 2:
|
|
559
|
-
|
|
559
|
+
G = r[s + 1], (G & 192) === 128 && (H = (u & 31) << 6 | G & 63, H > 127 && (h = H));
|
|
560
560
|
break;
|
|
561
561
|
case 3:
|
|
562
|
-
|
|
562
|
+
G = r[s + 1], V = r[s + 2], (G & 192) === 128 && (V & 192) === 128 && (H = (u & 15) << 12 | (G & 63) << 6 | V & 63, H > 2047 && (H < 55296 || H > 57343) && (h = H));
|
|
563
563
|
break;
|
|
564
564
|
case 4:
|
|
565
|
-
|
|
565
|
+
G = r[s + 1], V = r[s + 2], J = r[s + 3], (G & 192) === 128 && (V & 192) === 128 && (J & 192) === 128 && (H = (u & 15) << 18 | (G & 63) << 12 | (V & 63) << 6 | J & 63, H > 65535 && H < 1114112 && (h = H));
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
h === null ? (h = 65533,
|
|
568
|
+
h === null ? (h = 65533, P = 1) : h > 65535 && (h -= 65536, n.push(h >>> 10 & 1023 | 55296), h = 56320 | h & 1023), n.push(h), s += P;
|
|
569
569
|
}
|
|
570
|
-
return
|
|
570
|
+
return ie(n);
|
|
571
571
|
}
|
|
572
|
-
const
|
|
573
|
-
function
|
|
572
|
+
const le = 4096;
|
|
573
|
+
function ie(r) {
|
|
574
574
|
const e = r.length;
|
|
575
|
-
if (e <=
|
|
575
|
+
if (e <= le)
|
|
576
576
|
return String.fromCharCode.apply(String, r);
|
|
577
577
|
let t = "", n = 0;
|
|
578
578
|
for (; n < e; )
|
|
579
579
|
t += String.fromCharCode.apply(
|
|
580
580
|
String,
|
|
581
|
-
r.slice(n, n +=
|
|
581
|
+
r.slice(n, n += le)
|
|
582
582
|
);
|
|
583
583
|
return t;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function _(r, e, t) {
|
|
586
586
|
let n = "";
|
|
587
587
|
t = Math.min(r.length, t);
|
|
588
588
|
for (let s = e; s < t; ++s)
|
|
589
589
|
n += String.fromCharCode(r[s] & 127);
|
|
590
590
|
return n;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function we(r, e, t) {
|
|
593
593
|
let n = "";
|
|
594
594
|
t = Math.min(r.length, t);
|
|
595
595
|
for (let s = e; s < t; ++s)
|
|
596
596
|
n += String.fromCharCode(r[s]);
|
|
597
597
|
return n;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function X(r, e, t) {
|
|
600
600
|
const n = r.length;
|
|
601
601
|
(!e || e < 0) && (e = 0), (!t || t < 0 || t > n) && (t = n);
|
|
602
602
|
let s = "";
|
|
603
|
-
for (let
|
|
604
|
-
s +=
|
|
603
|
+
for (let u = e; u < t; ++u)
|
|
604
|
+
s += vt[r[u]];
|
|
605
605
|
return s;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Ge(r, e, t) {
|
|
608
608
|
const n = r.slice(e, t);
|
|
609
609
|
let s = "";
|
|
610
|
-
for (let
|
|
611
|
-
s += String.fromCharCode(n[
|
|
610
|
+
for (let u = 0; u < n.length - 1; u += 2)
|
|
611
|
+
s += String.fromCharCode(n[u] + n[u + 1] * 256);
|
|
612
612
|
return s;
|
|
613
613
|
}
|
|
614
|
-
|
|
614
|
+
o.prototype.slice = function(e, t) {
|
|
615
615
|
const n = this.length;
|
|
616
616
|
e = ~~e, t = t === void 0 ? n : ~~t, e < 0 ? (e += n, e < 0 && (e = 0)) : e > n && (e = n), t < 0 ? (t += n, t < 0 && (t = 0)) : t > n && (t = n), t < e && (t = e);
|
|
617
617
|
const s = this.subarray(e, t);
|
|
618
|
-
return Object.setPrototypeOf(s,
|
|
618
|
+
return Object.setPrototypeOf(s, o.prototype), s;
|
|
619
619
|
};
|
|
620
|
-
function
|
|
620
|
+
function j(r, e, t) {
|
|
621
621
|
if (r % 1 !== 0 || r < 0) throw new RangeError("offset is not uint");
|
|
622
622
|
if (r + e > t) throw new RangeError("Trying to access beyond buffer length");
|
|
623
623
|
}
|
|
624
|
-
|
|
625
|
-
e = e >>> 0, t = t >>> 0, n ||
|
|
626
|
-
let s = this[e],
|
|
627
|
-
for (; ++h < t && (
|
|
628
|
-
s += this[e + h] *
|
|
624
|
+
o.prototype.readUintLE = o.prototype.readUIntLE = function(e, t, n) {
|
|
625
|
+
e = e >>> 0, t = t >>> 0, n || j(e, t, this.length);
|
|
626
|
+
let s = this[e], u = 1, h = 0;
|
|
627
|
+
for (; ++h < t && (u *= 256); )
|
|
628
|
+
s += this[e + h] * u;
|
|
629
629
|
return s;
|
|
630
|
-
},
|
|
631
|
-
e = e >>> 0, t = t >>> 0, n ||
|
|
632
|
-
let s = this[e + --t],
|
|
633
|
-
for (; t > 0 && (
|
|
634
|
-
s += this[e + --t] *
|
|
630
|
+
}, o.prototype.readUintBE = o.prototype.readUIntBE = function(e, t, n) {
|
|
631
|
+
e = e >>> 0, t = t >>> 0, n || j(e, t, this.length);
|
|
632
|
+
let s = this[e + --t], u = 1;
|
|
633
|
+
for (; t > 0 && (u *= 256); )
|
|
634
|
+
s += this[e + --t] * u;
|
|
635
635
|
return s;
|
|
636
|
-
},
|
|
637
|
-
return e = e >>> 0, t ||
|
|
638
|
-
},
|
|
639
|
-
return e = e >>> 0, t ||
|
|
640
|
-
},
|
|
641
|
-
return e = e >>> 0, t ||
|
|
642
|
-
},
|
|
643
|
-
return e = e >>> 0, t ||
|
|
644
|
-
},
|
|
645
|
-
return e = e >>> 0, t ||
|
|
646
|
-
},
|
|
647
|
-
e = e >>> 0,
|
|
636
|
+
}, o.prototype.readUint8 = o.prototype.readUInt8 = function(e, t) {
|
|
637
|
+
return e = e >>> 0, t || j(e, 1, this.length), this[e];
|
|
638
|
+
}, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(e, t) {
|
|
639
|
+
return e = e >>> 0, t || j(e, 2, this.length), this[e] | this[e + 1] << 8;
|
|
640
|
+
}, o.prototype.readUint16BE = o.prototype.readUInt16BE = function(e, t) {
|
|
641
|
+
return e = e >>> 0, t || j(e, 2, this.length), this[e] << 8 | this[e + 1];
|
|
642
|
+
}, o.prototype.readUint32LE = o.prototype.readUInt32LE = function(e, t) {
|
|
643
|
+
return e = e >>> 0, t || j(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
|
|
644
|
+
}, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(e, t) {
|
|
645
|
+
return e = e >>> 0, t || j(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
|
|
646
|
+
}, o.prototype.readBigUInt64LE = ye(function(e) {
|
|
647
|
+
e = e >>> 0, fe(e, "offset");
|
|
648
648
|
const t = this[e], n = this[e + 7];
|
|
649
|
-
(t === void 0 || n === void 0) &&
|
|
650
|
-
const s = t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24,
|
|
651
|
-
return BigInt(s) + (BigInt(
|
|
652
|
-
}),
|
|
653
|
-
e = e >>> 0,
|
|
649
|
+
(t === void 0 || n === void 0) && q(e, this.length - 8);
|
|
650
|
+
const s = t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, u = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + n * 2 ** 24;
|
|
651
|
+
return BigInt(s) + (BigInt(u) << BigInt(32));
|
|
652
|
+
}), o.prototype.readBigUInt64BE = ye(function(e) {
|
|
653
|
+
e = e >>> 0, fe(e, "offset");
|
|
654
654
|
const t = this[e], n = this[e + 7];
|
|
655
|
-
(t === void 0 || n === void 0) &&
|
|
656
|
-
const s = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e],
|
|
657
|
-
return (BigInt(s) << BigInt(32)) + BigInt(
|
|
658
|
-
}),
|
|
659
|
-
e = e >>> 0, t = t >>> 0, n ||
|
|
660
|
-
let s = this[e],
|
|
661
|
-
for (; ++h < t && (
|
|
662
|
-
s += this[e + h] *
|
|
663
|
-
return
|
|
664
|
-
},
|
|
665
|
-
e = e >>> 0, t = t >>> 0, n ||
|
|
666
|
-
let s = t,
|
|
667
|
-
for (; s > 0 && (
|
|
668
|
-
h += this[e + --s] *
|
|
669
|
-
return
|
|
670
|
-
},
|
|
671
|
-
return e = e >>> 0, t ||
|
|
672
|
-
},
|
|
673
|
-
e = e >>> 0, t ||
|
|
655
|
+
(t === void 0 || n === void 0) && q(e, this.length - 8);
|
|
656
|
+
const s = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], u = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + n;
|
|
657
|
+
return (BigInt(s) << BigInt(32)) + BigInt(u);
|
|
658
|
+
}), o.prototype.readIntLE = function(e, t, n) {
|
|
659
|
+
e = e >>> 0, t = t >>> 0, n || j(e, t, this.length);
|
|
660
|
+
let s = this[e], u = 1, h = 0;
|
|
661
|
+
for (; ++h < t && (u *= 256); )
|
|
662
|
+
s += this[e + h] * u;
|
|
663
|
+
return u *= 128, s >= u && (s -= Math.pow(2, 8 * t)), s;
|
|
664
|
+
}, o.prototype.readIntBE = function(e, t, n) {
|
|
665
|
+
e = e >>> 0, t = t >>> 0, n || j(e, t, this.length);
|
|
666
|
+
let s = t, u = 1, h = this[e + --s];
|
|
667
|
+
for (; s > 0 && (u *= 256); )
|
|
668
|
+
h += this[e + --s] * u;
|
|
669
|
+
return u *= 128, h >= u && (h -= Math.pow(2, 8 * t)), h;
|
|
670
|
+
}, o.prototype.readInt8 = function(e, t) {
|
|
671
|
+
return e = e >>> 0, t || j(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
|
|
672
|
+
}, o.prototype.readInt16LE = function(e, t) {
|
|
673
|
+
e = e >>> 0, t || j(e, 2, this.length);
|
|
674
674
|
const n = this[e] | this[e + 1] << 8;
|
|
675
675
|
return n & 32768 ? n | 4294901760 : n;
|
|
676
|
-
},
|
|
677
|
-
e = e >>> 0, t ||
|
|
676
|
+
}, o.prototype.readInt16BE = function(e, t) {
|
|
677
|
+
e = e >>> 0, t || j(e, 2, this.length);
|
|
678
678
|
const n = this[e + 1] | this[e] << 8;
|
|
679
679
|
return n & 32768 ? n | 4294901760 : n;
|
|
680
|
-
},
|
|
681
|
-
return e = e >>> 0, t ||
|
|
682
|
-
},
|
|
683
|
-
return e = e >>> 0, t ||
|
|
684
|
-
},
|
|
685
|
-
e = e >>> 0,
|
|
680
|
+
}, o.prototype.readInt32LE = function(e, t) {
|
|
681
|
+
return e = e >>> 0, t || j(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
|
|
682
|
+
}, o.prototype.readInt32BE = function(e, t) {
|
|
683
|
+
return e = e >>> 0, t || j(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
|
|
684
|
+
}, o.prototype.readBigInt64LE = ye(function(e) {
|
|
685
|
+
e = e >>> 0, fe(e, "offset");
|
|
686
686
|
const t = this[e], n = this[e + 7];
|
|
687
|
-
(t === void 0 || n === void 0) &&
|
|
687
|
+
(t === void 0 || n === void 0) && q(e, this.length - 8);
|
|
688
688
|
const s = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (n << 24);
|
|
689
689
|
return (BigInt(s) << BigInt(32)) + BigInt(t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
|
|
690
|
-
}),
|
|
691
|
-
e = e >>> 0,
|
|
690
|
+
}), o.prototype.readBigInt64BE = ye(function(e) {
|
|
691
|
+
e = e >>> 0, fe(e, "offset");
|
|
692
692
|
const t = this[e], n = this[e + 7];
|
|
693
|
-
(t === void 0 || n === void 0) &&
|
|
693
|
+
(t === void 0 || n === void 0) && q(e, this.length - 8);
|
|
694
694
|
const s = (t << 24) + // Overflow
|
|
695
695
|
this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
|
|
696
696
|
return (BigInt(s) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + n);
|
|
697
|
-
}),
|
|
698
|
-
return e = e >>> 0, t ||
|
|
699
|
-
},
|
|
700
|
-
return e = e >>> 0, t ||
|
|
701
|
-
},
|
|
702
|
-
return e = e >>> 0, t ||
|
|
703
|
-
},
|
|
704
|
-
return e = e >>> 0, t ||
|
|
697
|
+
}), o.prototype.readFloatLE = function(e, t) {
|
|
698
|
+
return e = e >>> 0, t || j(e, 4, this.length), d.read(this, e, !0, 23, 4);
|
|
699
|
+
}, o.prototype.readFloatBE = function(e, t) {
|
|
700
|
+
return e = e >>> 0, t || j(e, 4, this.length), d.read(this, e, !1, 23, 4);
|
|
701
|
+
}, o.prototype.readDoubleLE = function(e, t) {
|
|
702
|
+
return e = e >>> 0, t || j(e, 8, this.length), d.read(this, e, !0, 52, 8);
|
|
703
|
+
}, o.prototype.readDoubleBE = function(e, t) {
|
|
704
|
+
return e = e >>> 0, t || j(e, 8, this.length), d.read(this, e, !1, 52, 8);
|
|
705
705
|
};
|
|
706
|
-
function
|
|
707
|
-
if (!
|
|
708
|
-
if (e > s || e <
|
|
706
|
+
function U(r, e, t, n, s, u) {
|
|
707
|
+
if (!o.isBuffer(r)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
708
|
+
if (e > s || e < u) throw new RangeError('"value" argument is out of bounds');
|
|
709
709
|
if (t + n > r.length) throw new RangeError("Index out of range");
|
|
710
710
|
}
|
|
711
|
-
|
|
711
|
+
o.prototype.writeUintLE = o.prototype.writeUIntLE = function(e, t, n, s) {
|
|
712
712
|
if (e = +e, t = t >>> 0, n = n >>> 0, !s) {
|
|
713
|
-
const
|
|
714
|
-
|
|
713
|
+
const P = Math.pow(2, 8 * n) - 1;
|
|
714
|
+
U(this, e, t, n, P, 0);
|
|
715
715
|
}
|
|
716
|
-
let
|
|
717
|
-
for (this[t] = e & 255; ++h < n && (
|
|
718
|
-
this[t + h] = e /
|
|
716
|
+
let u = 1, h = 0;
|
|
717
|
+
for (this[t] = e & 255; ++h < n && (u *= 256); )
|
|
718
|
+
this[t + h] = e / u & 255;
|
|
719
719
|
return t + n;
|
|
720
|
-
},
|
|
720
|
+
}, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(e, t, n, s) {
|
|
721
721
|
if (e = +e, t = t >>> 0, n = n >>> 0, !s) {
|
|
722
|
-
const
|
|
723
|
-
|
|
722
|
+
const P = Math.pow(2, 8 * n) - 1;
|
|
723
|
+
U(this, e, t, n, P, 0);
|
|
724
724
|
}
|
|
725
|
-
let
|
|
726
|
-
for (this[t +
|
|
727
|
-
this[t +
|
|
725
|
+
let u = n - 1, h = 1;
|
|
726
|
+
for (this[t + u] = e & 255; --u >= 0 && (h *= 256); )
|
|
727
|
+
this[t + u] = e / h & 255;
|
|
728
728
|
return t + n;
|
|
729
|
-
},
|
|
730
|
-
return e = +e, t = t >>> 0, n ||
|
|
731
|
-
},
|
|
732
|
-
return e = +e, t = t >>> 0, n ||
|
|
733
|
-
},
|
|
734
|
-
return e = +e, t = t >>> 0, n ||
|
|
735
|
-
},
|
|
736
|
-
return e = +e, t = t >>> 0, n ||
|
|
737
|
-
},
|
|
738
|
-
return e = +e, t = t >>> 0, n ||
|
|
729
|
+
}, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(e, t, n) {
|
|
730
|
+
return e = +e, t = t >>> 0, n || U(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
|
|
731
|
+
}, o.prototype.writeUint16LE = o.prototype.writeUInt16LE = function(e, t, n) {
|
|
732
|
+
return e = +e, t = t >>> 0, n || U(this, e, t, 2, 65535, 0), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
|
|
733
|
+
}, o.prototype.writeUint16BE = o.prototype.writeUInt16BE = function(e, t, n) {
|
|
734
|
+
return e = +e, t = t >>> 0, n || U(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
|
|
735
|
+
}, o.prototype.writeUint32LE = o.prototype.writeUInt32LE = function(e, t, n) {
|
|
736
|
+
return e = +e, t = t >>> 0, n || U(this, e, t, 4, 4294967295, 0), this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e & 255, t + 4;
|
|
737
|
+
}, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(e, t, n) {
|
|
738
|
+
return e = +e, t = t >>> 0, n || U(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
739
739
|
};
|
|
740
|
-
function
|
|
741
|
-
|
|
742
|
-
let
|
|
743
|
-
r[t++] =
|
|
740
|
+
function Fe(r, e, t, n, s) {
|
|
741
|
+
He(e, n, s, r, t, 7);
|
|
742
|
+
let u = Number(e & BigInt(4294967295));
|
|
743
|
+
r[t++] = u, u = u >> 8, r[t++] = u, u = u >> 8, r[t++] = u, u = u >> 8, r[t++] = u;
|
|
744
744
|
let h = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
745
745
|
return r[t++] = h, h = h >> 8, r[t++] = h, h = h >> 8, r[t++] = h, h = h >> 8, r[t++] = h, t;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
748
|
-
|
|
749
|
-
let
|
|
750
|
-
r[t + 7] =
|
|
747
|
+
function Le(r, e, t, n, s) {
|
|
748
|
+
He(e, n, s, r, t, 7);
|
|
749
|
+
let u = Number(e & BigInt(4294967295));
|
|
750
|
+
r[t + 7] = u, u = u >> 8, r[t + 6] = u, u = u >> 8, r[t + 5] = u, u = u >> 8, r[t + 4] = u;
|
|
751
751
|
let h = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
752
752
|
return r[t + 3] = h, h = h >> 8, r[t + 2] = h, h = h >> 8, r[t + 1] = h, h = h >> 8, r[t] = h, t + 8;
|
|
753
753
|
}
|
|
754
|
-
|
|
754
|
+
o.prototype.writeBigUInt64LE = ye(function(e, t = 0) {
|
|
755
|
+
return Fe(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
756
|
+
}), o.prototype.writeBigUInt64BE = ye(function(e, t = 0) {
|
|
755
757
|
return Le(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
756
|
-
}),
|
|
757
|
-
return ie(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
758
|
-
}), a.prototype.writeIntLE = function(e, t, n, s) {
|
|
758
|
+
}), o.prototype.writeIntLE = function(e, t, n, s) {
|
|
759
759
|
if (e = +e, t = t >>> 0, !s) {
|
|
760
|
-
const
|
|
761
|
-
|
|
760
|
+
const G = Math.pow(2, 8 * n - 1);
|
|
761
|
+
U(this, e, t, n, G - 1, -G);
|
|
762
762
|
}
|
|
763
|
-
let
|
|
764
|
-
for (this[t] = e & 255; ++
|
|
765
|
-
e < 0 &&
|
|
763
|
+
let u = 0, h = 1, P = 0;
|
|
764
|
+
for (this[t] = e & 255; ++u < n && (h *= 256); )
|
|
765
|
+
e < 0 && P === 0 && this[t + u - 1] !== 0 && (P = 1), this[t + u] = (e / h >> 0) - P & 255;
|
|
766
766
|
return t + n;
|
|
767
|
-
},
|
|
767
|
+
}, o.prototype.writeIntBE = function(e, t, n, s) {
|
|
768
768
|
if (e = +e, t = t >>> 0, !s) {
|
|
769
|
-
const
|
|
770
|
-
|
|
769
|
+
const G = Math.pow(2, 8 * n - 1);
|
|
770
|
+
U(this, e, t, n, G - 1, -G);
|
|
771
771
|
}
|
|
772
|
-
let
|
|
773
|
-
for (this[t +
|
|
774
|
-
e < 0 &&
|
|
772
|
+
let u = n - 1, h = 1, P = 0;
|
|
773
|
+
for (this[t + u] = e & 255; --u >= 0 && (h *= 256); )
|
|
774
|
+
e < 0 && P === 0 && this[t + u + 1] !== 0 && (P = 1), this[t + u] = (e / h >> 0) - P & 255;
|
|
775
775
|
return t + n;
|
|
776
|
-
},
|
|
777
|
-
return e = +e, t = t >>> 0, n ||
|
|
778
|
-
},
|
|
779
|
-
return e = +e, t = t >>> 0, n ||
|
|
780
|
-
},
|
|
781
|
-
return e = +e, t = t >>> 0, n ||
|
|
782
|
-
},
|
|
783
|
-
return e = +e, t = t >>> 0, n ||
|
|
784
|
-
},
|
|
785
|
-
return e = +e, t = t >>> 0, n ||
|
|
786
|
-
},
|
|
776
|
+
}, o.prototype.writeInt8 = function(e, t, n) {
|
|
777
|
+
return e = +e, t = t >>> 0, n || U(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
|
|
778
|
+
}, o.prototype.writeInt16LE = function(e, t, n) {
|
|
779
|
+
return e = +e, t = t >>> 0, n || U(this, e, t, 2, 32767, -32768), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
|
|
780
|
+
}, o.prototype.writeInt16BE = function(e, t, n) {
|
|
781
|
+
return e = +e, t = t >>> 0, n || U(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
|
|
782
|
+
}, o.prototype.writeInt32LE = function(e, t, n) {
|
|
783
|
+
return e = +e, t = t >>> 0, n || U(this, e, t, 4, 2147483647, -2147483648), this[t] = e & 255, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24, t + 4;
|
|
784
|
+
}, o.prototype.writeInt32BE = function(e, t, n) {
|
|
785
|
+
return e = +e, t = t >>> 0, n || U(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
786
|
+
}, o.prototype.writeBigInt64LE = ye(function(e, t = 0) {
|
|
787
|
+
return Fe(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
788
|
+
}), o.prototype.writeBigInt64BE = ye(function(e, t = 0) {
|
|
787
789
|
return Le(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
788
|
-
}), a.prototype.writeBigInt64BE = fe(function(e, t = 0) {
|
|
789
|
-
return ie(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
790
790
|
});
|
|
791
|
-
function
|
|
791
|
+
function ce(r, e, t, n, s, u) {
|
|
792
792
|
if (t + n > r.length) throw new RangeError("Index out of range");
|
|
793
793
|
if (t < 0) throw new RangeError("Index out of range");
|
|
794
794
|
}
|
|
795
|
-
function
|
|
796
|
-
return e = +e, t = t >>> 0, s ||
|
|
795
|
+
function de(r, e, t, n, s) {
|
|
796
|
+
return e = +e, t = t >>> 0, s || ce(r, e, t, 4), d.write(r, e, t, n, 23, 4), t + 4;
|
|
797
797
|
}
|
|
798
|
-
|
|
799
|
-
return
|
|
800
|
-
},
|
|
801
|
-
return
|
|
798
|
+
o.prototype.writeFloatLE = function(e, t, n) {
|
|
799
|
+
return de(this, e, t, !0, n);
|
|
800
|
+
}, o.prototype.writeFloatBE = function(e, t, n) {
|
|
801
|
+
return de(this, e, t, !1, n);
|
|
802
802
|
};
|
|
803
|
-
function
|
|
804
|
-
return e = +e, t = t >>> 0, s ||
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
return
|
|
808
|
-
},
|
|
809
|
-
return
|
|
810
|
-
},
|
|
811
|
-
if (!
|
|
803
|
+
function Ue(r, e, t, n, s) {
|
|
804
|
+
return e = +e, t = t >>> 0, s || ce(r, e, t, 8), d.write(r, e, t, n, 52, 8), t + 8;
|
|
805
|
+
}
|
|
806
|
+
o.prototype.writeDoubleLE = function(e, t, n) {
|
|
807
|
+
return Ue(this, e, t, !0, n);
|
|
808
|
+
}, o.prototype.writeDoubleBE = function(e, t, n) {
|
|
809
|
+
return Ue(this, e, t, !1, n);
|
|
810
|
+
}, o.prototype.copy = function(e, t, n, s) {
|
|
811
|
+
if (!o.isBuffer(e)) throw new TypeError("argument should be a Buffer");
|
|
812
812
|
if (n || (n = 0), !s && s !== 0 && (s = this.length), t >= e.length && (t = e.length), t || (t = 0), s > 0 && s < n && (s = n), s === n || e.length === 0 || this.length === 0) return 0;
|
|
813
813
|
if (t < 0)
|
|
814
814
|
throw new RangeError("targetStart out of bounds");
|
|
815
815
|
if (n < 0 || n >= this.length) throw new RangeError("Index out of range");
|
|
816
816
|
if (s < 0) throw new RangeError("sourceEnd out of bounds");
|
|
817
817
|
s > this.length && (s = this.length), e.length - t < s - n && (s = e.length - t + n);
|
|
818
|
-
const
|
|
818
|
+
const u = s - n;
|
|
819
819
|
return this === e && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(t, n, s) : Uint8Array.prototype.set.call(
|
|
820
820
|
e,
|
|
821
821
|
this.subarray(n, s),
|
|
822
822
|
t
|
|
823
|
-
),
|
|
824
|
-
},
|
|
823
|
+
), u;
|
|
824
|
+
}, o.prototype.fill = function(e, t, n, s) {
|
|
825
825
|
if (typeof e == "string") {
|
|
826
826
|
if (typeof t == "string" ? (s = t, t = 0, n = this.length) : typeof n == "string" && (s = n, n = this.length), s !== void 0 && typeof s != "string")
|
|
827
827
|
throw new TypeError("encoding must be a string");
|
|
828
|
-
if (typeof s == "string" && !
|
|
828
|
+
if (typeof s == "string" && !o.isEncoding(s))
|
|
829
829
|
throw new TypeError("Unknown encoding: " + s);
|
|
830
830
|
if (e.length === 1) {
|
|
831
831
|
const h = e.charCodeAt(0);
|
|
@@ -837,22 +837,22 @@ function _t() {
|
|
|
837
837
|
if (n <= t)
|
|
838
838
|
return this;
|
|
839
839
|
t = t >>> 0, n = n === void 0 ? this.length : n >>> 0, e || (e = 0);
|
|
840
|
-
let
|
|
840
|
+
let u;
|
|
841
841
|
if (typeof e == "number")
|
|
842
|
-
for (
|
|
843
|
-
this[
|
|
842
|
+
for (u = t; u < n; ++u)
|
|
843
|
+
this[u] = e;
|
|
844
844
|
else {
|
|
845
|
-
const h =
|
|
846
|
-
if (
|
|
845
|
+
const h = o.isBuffer(e) ? e : o.from(e, s), P = h.length;
|
|
846
|
+
if (P === 0)
|
|
847
847
|
throw new TypeError('The value "' + e + '" is invalid for argument "value"');
|
|
848
|
-
for (
|
|
849
|
-
this[
|
|
848
|
+
for (u = 0; u < n - t; ++u)
|
|
849
|
+
this[u + t] = h[u % P];
|
|
850
850
|
}
|
|
851
851
|
return this;
|
|
852
852
|
};
|
|
853
|
-
const
|
|
854
|
-
function
|
|
855
|
-
|
|
853
|
+
const ue = {};
|
|
854
|
+
function he(r, e, t) {
|
|
855
|
+
ue[r] = class extends t {
|
|
856
856
|
constructor() {
|
|
857
857
|
super(), Object.defineProperty(this, "message", {
|
|
858
858
|
value: e.apply(this, arguments),
|
|
@@ -876,106 +876,106 @@ function _t() {
|
|
|
876
876
|
}
|
|
877
877
|
};
|
|
878
878
|
}
|
|
879
|
-
|
|
879
|
+
he(
|
|
880
880
|
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
881
881
|
function(r) {
|
|
882
882
|
return r ? `${r} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
883
883
|
},
|
|
884
884
|
RangeError
|
|
885
|
-
),
|
|
885
|
+
), he(
|
|
886
886
|
"ERR_INVALID_ARG_TYPE",
|
|
887
887
|
function(r, e) {
|
|
888
888
|
return `The "${r}" argument must be of type number. Received type ${typeof e}`;
|
|
889
889
|
},
|
|
890
890
|
TypeError
|
|
891
|
-
),
|
|
891
|
+
), he(
|
|
892
892
|
"ERR_OUT_OF_RANGE",
|
|
893
893
|
function(r, e, t) {
|
|
894
894
|
let n = `The value of "${r}" is out of range.`, s = t;
|
|
895
|
-
return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? s =
|
|
895
|
+
return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? s = Me(String(t)) : typeof t == "bigint" && (s = String(t), (t > BigInt(2) ** BigInt(32) || t < -(BigInt(2) ** BigInt(32))) && (s = Me(s)), s += "n"), n += ` It must be ${e}. Received ${s}`, n;
|
|
896
896
|
},
|
|
897
897
|
RangeError
|
|
898
898
|
);
|
|
899
|
-
function
|
|
899
|
+
function Me(r) {
|
|
900
900
|
let e = "", t = r.length;
|
|
901
901
|
const n = r[0] === "-" ? 1 : 0;
|
|
902
902
|
for (; t >= n + 4; t -= 3)
|
|
903
903
|
e = `_${r.slice(t - 3, t)}${e}`;
|
|
904
904
|
return `${r.slice(0, t)}${e}`;
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
|
|
906
|
+
function Je(r, e, t) {
|
|
907
|
+
fe(e, "offset"), (r[e] === void 0 || r[e + t] === void 0) && q(e, r.length - (t + 1));
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function He(r, e, t, n, s, u) {
|
|
910
910
|
if (r > t || r < e) {
|
|
911
911
|
const h = typeof e == "bigint" ? "n" : "";
|
|
912
|
-
let
|
|
913
|
-
throw e === 0 || e === BigInt(0) ?
|
|
912
|
+
let P;
|
|
913
|
+
throw e === 0 || e === BigInt(0) ? P = `>= 0${h} and < 2${h} ** ${(u + 1) * 8}${h}` : P = `>= -(2${h} ** ${(u + 1) * 8 - 1}${h}) and < 2 ** ${(u + 1) * 8 - 1}${h}`, new ue.ERR_OUT_OF_RANGE("value", P, r);
|
|
914
914
|
}
|
|
915
|
-
|
|
915
|
+
Je(n, s, u);
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function fe(r, e) {
|
|
918
918
|
if (typeof r != "number")
|
|
919
|
-
throw new
|
|
919
|
+
throw new ue.ERR_INVALID_ARG_TYPE(e, "number", r);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
922
|
-
throw Math.floor(r) !== r ? (
|
|
921
|
+
function q(r, e, t) {
|
|
922
|
+
throw Math.floor(r) !== r ? (fe(r, t), new ue.ERR_OUT_OF_RANGE("offset", "an integer", r)) : e < 0 ? new ue.ERR_BUFFER_OUT_OF_BOUNDS() : new ue.ERR_OUT_OF_RANGE(
|
|
923
923
|
"offset",
|
|
924
924
|
`>= 0 and <= ${e}`,
|
|
925
925
|
r
|
|
926
926
|
);
|
|
927
927
|
}
|
|
928
|
-
const
|
|
929
|
-
function
|
|
930
|
-
if (r = r.split("=")[0], r = r.trim().replace(
|
|
928
|
+
const Ke = /[^+/0-9A-Za-z-_]/g;
|
|
929
|
+
function Ye(r) {
|
|
930
|
+
if (r = r.split("=")[0], r = r.trim().replace(Ke, ""), r.length < 2) return "";
|
|
931
931
|
for (; r.length % 4 !== 0; )
|
|
932
932
|
r = r + "=";
|
|
933
933
|
return r;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function Se(r, e) {
|
|
936
936
|
e = e || 1 / 0;
|
|
937
937
|
let t;
|
|
938
938
|
const n = r.length;
|
|
939
939
|
let s = null;
|
|
940
|
-
const
|
|
940
|
+
const u = [];
|
|
941
941
|
for (let h = 0; h < n; ++h) {
|
|
942
942
|
if (t = r.charCodeAt(h), t > 55295 && t < 57344) {
|
|
943
943
|
if (!s) {
|
|
944
944
|
if (t > 56319) {
|
|
945
|
-
(e -= 3) > -1 &&
|
|
945
|
+
(e -= 3) > -1 && u.push(239, 191, 189);
|
|
946
946
|
continue;
|
|
947
947
|
} else if (h + 1 === n) {
|
|
948
|
-
(e -= 3) > -1 &&
|
|
948
|
+
(e -= 3) > -1 && u.push(239, 191, 189);
|
|
949
949
|
continue;
|
|
950
950
|
}
|
|
951
951
|
s = t;
|
|
952
952
|
continue;
|
|
953
953
|
}
|
|
954
954
|
if (t < 56320) {
|
|
955
|
-
(e -= 3) > -1 &&
|
|
955
|
+
(e -= 3) > -1 && u.push(239, 191, 189), s = t;
|
|
956
956
|
continue;
|
|
957
957
|
}
|
|
958
958
|
t = (s - 55296 << 10 | t - 56320) + 65536;
|
|
959
|
-
} else s && (e -= 3) > -1 &&
|
|
959
|
+
} else s && (e -= 3) > -1 && u.push(239, 191, 189);
|
|
960
960
|
if (s = null, t < 128) {
|
|
961
961
|
if ((e -= 1) < 0) break;
|
|
962
|
-
|
|
962
|
+
u.push(t);
|
|
963
963
|
} else if (t < 2048) {
|
|
964
964
|
if ((e -= 2) < 0) break;
|
|
965
|
-
|
|
965
|
+
u.push(
|
|
966
966
|
t >> 6 | 192,
|
|
967
967
|
t & 63 | 128
|
|
968
968
|
);
|
|
969
969
|
} else if (t < 65536) {
|
|
970
970
|
if ((e -= 3) < 0) break;
|
|
971
|
-
|
|
971
|
+
u.push(
|
|
972
972
|
t >> 12 | 224,
|
|
973
973
|
t >> 6 & 63 | 128,
|
|
974
974
|
t & 63 | 128
|
|
975
975
|
);
|
|
976
976
|
} else if (t < 1114112) {
|
|
977
977
|
if ((e -= 4) < 0) break;
|
|
978
|
-
|
|
978
|
+
u.push(
|
|
979
979
|
t >> 18 | 240,
|
|
980
980
|
t >> 12 & 63 | 128,
|
|
981
981
|
t >> 6 & 63 | 128,
|
|
@@ -984,37 +984,37 @@ function _t() {
|
|
|
984
984
|
} else
|
|
985
985
|
throw new Error("Invalid code point");
|
|
986
986
|
}
|
|
987
|
-
return
|
|
987
|
+
return u;
|
|
988
988
|
}
|
|
989
|
-
function
|
|
989
|
+
function S(r) {
|
|
990
990
|
const e = [];
|
|
991
991
|
for (let t = 0; t < r.length; ++t)
|
|
992
992
|
e.push(r.charCodeAt(t) & 255);
|
|
993
993
|
return e;
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function ee(r, e) {
|
|
996
996
|
let t, n, s;
|
|
997
|
-
const
|
|
997
|
+
const u = [];
|
|
998
998
|
for (let h = 0; h < r.length && !((e -= 2) < 0); ++h)
|
|
999
|
-
t = r.charCodeAt(h), n = t >> 8, s = t % 256,
|
|
1000
|
-
return
|
|
999
|
+
t = r.charCodeAt(h), n = t >> 8, s = t % 256, u.push(s), u.push(n);
|
|
1000
|
+
return u;
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1003
|
-
return l.toByteArray(
|
|
1002
|
+
function pe(r) {
|
|
1003
|
+
return l.toByteArray(Ye(r));
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function $(r, e, t, n) {
|
|
1006
1006
|
let s;
|
|
1007
1007
|
for (s = 0; s < n && !(s + t >= e.length || s >= r.length); ++s)
|
|
1008
1008
|
e[s + t] = r[s];
|
|
1009
1009
|
return s;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function N(r, e) {
|
|
1012
1012
|
return r instanceof e || r != null && r.constructor != null && r.constructor.name != null && r.constructor.name === e.name;
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function te(r) {
|
|
1015
1015
|
return r !== r;
|
|
1016
1016
|
}
|
|
1017
|
-
const
|
|
1017
|
+
const vt = (function() {
|
|
1018
1018
|
const r = "0123456789abcdef", e = new Array(256);
|
|
1019
1019
|
for (let t = 0; t < 16; ++t) {
|
|
1020
1020
|
const n = t * 16;
|
|
@@ -1023,17 +1023,17 @@ function _t() {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
return e;
|
|
1025
1025
|
})();
|
|
1026
|
-
function
|
|
1027
|
-
return typeof BigInt > "u" ?
|
|
1026
|
+
function ye(r) {
|
|
1027
|
+
return typeof BigInt > "u" ? Bt : r;
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function Bt() {
|
|
1030
1030
|
throw new Error("BigInt not supported");
|
|
1031
1031
|
}
|
|
1032
|
-
})(
|
|
1032
|
+
})(qe)), qe;
|
|
1033
1033
|
}
|
|
1034
|
-
var
|
|
1034
|
+
var nr = rr();
|
|
1035
1035
|
const rt = globalThis;
|
|
1036
|
-
typeof rt.Buffer > "u" && (rt.Buffer =
|
|
1036
|
+
typeof rt.Buffer > "u" && (rt.Buffer = nr.Buffer);
|
|
1037
1037
|
const nt = {
|
|
1038
1038
|
screen: "yield-forward-intro",
|
|
1039
1039
|
screenHistory: [],
|
|
@@ -1059,79 +1059,79 @@ const nt = {
|
|
|
1059
1059
|
redeemAmountSol: null,
|
|
1060
1060
|
redeemTxSignature: null
|
|
1061
1061
|
};
|
|
1062
|
-
function
|
|
1063
|
-
return
|
|
1064
|
-
|
|
1062
|
+
function ir() {
|
|
1063
|
+
return Zt()(
|
|
1064
|
+
Xt((c) => ({
|
|
1065
1065
|
...nt,
|
|
1066
1066
|
navigate(l) {
|
|
1067
|
-
c((
|
|
1068
|
-
|
|
1067
|
+
c((d) => {
|
|
1068
|
+
d.screenHistory.push(d.screen), d.screen = l;
|
|
1069
1069
|
});
|
|
1070
1070
|
},
|
|
1071
1071
|
goBack() {
|
|
1072
1072
|
c((l) => {
|
|
1073
|
-
const
|
|
1074
|
-
|
|
1073
|
+
const d = l.screenHistory.pop();
|
|
1074
|
+
d && (l.screen = d), l.txStatus === "error" && (l.txStatus = "idle", l.txStep = "idle", l.txError = null), l.redeemError = null;
|
|
1075
1075
|
});
|
|
1076
1076
|
},
|
|
1077
|
-
selectStakeAccount(l,
|
|
1078
|
-
c((
|
|
1079
|
-
|
|
1077
|
+
selectStakeAccount(l, d, w, g, x, y) {
|
|
1078
|
+
c((o) => {
|
|
1079
|
+
o.selectedStakeAccountPubkey = l, o.selectedStakeAccountBalance = d, o.selectedValidatorName = w ?? null, o.selectedValidatorIcon = g ?? null, o.selectedValidatorVoteAccount = x ?? null, o.selectedValidatorAltPubkey = y ?? null;
|
|
1080
1080
|
});
|
|
1081
1081
|
},
|
|
1082
1082
|
setDepositAmount(l) {
|
|
1083
|
-
c((
|
|
1084
|
-
|
|
1083
|
+
c((d) => {
|
|
1084
|
+
d.depositAmount = l;
|
|
1085
1085
|
});
|
|
1086
1086
|
},
|
|
1087
1087
|
setSelectedMaturity(l) {
|
|
1088
|
-
c((
|
|
1089
|
-
|
|
1088
|
+
c((d) => {
|
|
1089
|
+
d.selectedMaturityId = l;
|
|
1090
1090
|
});
|
|
1091
1091
|
},
|
|
1092
1092
|
setAdvancedOpen(l) {
|
|
1093
|
-
c((
|
|
1094
|
-
|
|
1093
|
+
c((d) => {
|
|
1094
|
+
d.advancedOpen = l;
|
|
1095
1095
|
});
|
|
1096
1096
|
},
|
|
1097
1097
|
setSlippageBps(l) {
|
|
1098
|
-
c((
|
|
1099
|
-
|
|
1098
|
+
c((d) => {
|
|
1099
|
+
d.slippageBps = l;
|
|
1100
1100
|
});
|
|
1101
1101
|
},
|
|
1102
1102
|
setSellAmountSol(l) {
|
|
1103
|
-
c((
|
|
1104
|
-
|
|
1103
|
+
c((d) => {
|
|
1104
|
+
d.sellAmountSol = l;
|
|
1105
1105
|
});
|
|
1106
1106
|
},
|
|
1107
1107
|
setRedeemingMint(l) {
|
|
1108
|
-
c((
|
|
1109
|
-
|
|
1108
|
+
c((d) => {
|
|
1109
|
+
d.redeemingMint = l;
|
|
1110
1110
|
});
|
|
1111
1111
|
},
|
|
1112
1112
|
setRedeemError(l) {
|
|
1113
|
-
c((
|
|
1114
|
-
|
|
1113
|
+
c((d) => {
|
|
1114
|
+
d.redeemError = l;
|
|
1115
1115
|
});
|
|
1116
1116
|
},
|
|
1117
1117
|
setRedeemAmountSol(l) {
|
|
1118
|
-
c((
|
|
1119
|
-
|
|
1118
|
+
c((d) => {
|
|
1119
|
+
d.redeemAmountSol = l;
|
|
1120
1120
|
});
|
|
1121
1121
|
},
|
|
1122
1122
|
setRedeemTxSignature(l) {
|
|
1123
|
-
c((
|
|
1124
|
-
|
|
1123
|
+
c((d) => {
|
|
1124
|
+
d.redeemTxSignature = l;
|
|
1125
1125
|
});
|
|
1126
1126
|
},
|
|
1127
1127
|
setTxStep(l) {
|
|
1128
|
-
c((
|
|
1129
|
-
|
|
1128
|
+
c((d) => {
|
|
1129
|
+
d.txStep = l;
|
|
1130
1130
|
});
|
|
1131
1131
|
},
|
|
1132
|
-
setTxStatus(l,
|
|
1133
|
-
c((
|
|
1134
|
-
|
|
1132
|
+
setTxStatus(l, d, w) {
|
|
1133
|
+
c((g) => {
|
|
1134
|
+
g.txStatus = l, g.txSignature = d ?? null, g.txError = w ?? null, l === "idle" && (g.txStep = "idle", g.depositTxSignature = null, g.sellTxSignature = null);
|
|
1135
1135
|
});
|
|
1136
1136
|
},
|
|
1137
1137
|
reset() {
|
|
@@ -1145,14 +1145,14 @@ function tr() {
|
|
|
1145
1145
|
}))
|
|
1146
1146
|
);
|
|
1147
1147
|
}
|
|
1148
|
-
const
|
|
1149
|
-
function
|
|
1150
|
-
const l =
|
|
1148
|
+
const At = Et(null);
|
|
1149
|
+
function F(c) {
|
|
1150
|
+
const l = It(At);
|
|
1151
1151
|
if (!l)
|
|
1152
1152
|
throw new Error("useWidgetStore must be used within WidgetStoreProvider");
|
|
1153
|
-
return
|
|
1153
|
+
return $t(l, c);
|
|
1154
1154
|
}
|
|
1155
|
-
const
|
|
1155
|
+
const a = {
|
|
1156
1156
|
bg: "var(--c-bg)",
|
|
1157
1157
|
surface: "var(--c-surface)",
|
|
1158
1158
|
raised: "var(--c-raised)",
|
|
@@ -1165,7 +1165,7 @@ const o = {
|
|
|
1165
1165
|
green: "#0d9c5e",
|
|
1166
1166
|
purple: "var(--c-brand)",
|
|
1167
1167
|
red: "#D93B3B"
|
|
1168
|
-
},
|
|
1168
|
+
}, or = `
|
|
1169
1169
|
[data-theme] *, [data-theme] *::before, [data-theme] *::after { box-sizing: border-box; }
|
|
1170
1170
|
:root, [data-theme="pye-light"] {
|
|
1171
1171
|
--c-bg: #e6e3e0;
|
|
@@ -1293,30 +1293,30 @@ const o = {
|
|
|
1293
1293
|
@media (prefers-reduced-motion: reduce) {
|
|
1294
1294
|
.pye-step-in { animation: none; }
|
|
1295
1295
|
}
|
|
1296
|
-
`,
|
|
1296
|
+
`, ar = "'Inter', sans-serif", m = (c, l = a.primary, d = 400) => ({
|
|
1297
1297
|
fontFamily: "'Inter', sans-serif",
|
|
1298
1298
|
fontSize: c,
|
|
1299
|
-
fontWeight:
|
|
1299
|
+
fontWeight: d,
|
|
1300
1300
|
color: l,
|
|
1301
1301
|
lineHeight: 1.5,
|
|
1302
1302
|
margin: 0,
|
|
1303
1303
|
fontFeatureSettings: "'zero' 1"
|
|
1304
|
-
}),
|
|
1305
|
-
fontFamily:
|
|
1304
|
+
}), Te = (c, l = a.primary, d = 400) => ({
|
|
1305
|
+
fontFamily: ar,
|
|
1306
1306
|
fontSize: c,
|
|
1307
|
-
fontWeight:
|
|
1307
|
+
fontWeight: d,
|
|
1308
1308
|
color: l,
|
|
1309
1309
|
lineHeight: 1.2,
|
|
1310
1310
|
fontFeatureSettings: "'zero' 1",
|
|
1311
1311
|
margin: 0
|
|
1312
|
-
})
|
|
1313
|
-
function
|
|
1312
|
+
});
|
|
1313
|
+
function ne(c, l = 4) {
|
|
1314
1314
|
if (c === 0) return "0";
|
|
1315
|
-
const
|
|
1316
|
-
return c.toFixed(
|
|
1315
|
+
const d = c < 1 ? Math.max(l, -Math.floor(Math.log10(Math.abs(c))) + 1) : l;
|
|
1316
|
+
return c.toFixed(d);
|
|
1317
1317
|
}
|
|
1318
|
-
const ir = !1, or = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAEDRJREFUeAHtXXmQHGUV/3X3nLuzs3eym4schpgAkUOjJRQgRYGEQygOCwxHIVJyFAIiBoo/kJKrDMo/SBRQtBAUwUIIR3EJRJBLQBIghIQsIcnuJntldnbu7va9r2eSEGY3O9s9Mz3b3y81tdnZmd7Zfr93fO+9733Kylu2mpDwLFRIeBqSAB6HJIDHIQngcUgCeBySAB6HJIDHIQngcUgCeBySAB6HJIDHIQngcUgCeBySAB6HJIDHIQngcUgCeBySAB6HJIDHIQngcUgCeBw+SDgHZfcX0WpdA/3WkgAlwmSh0iObNZDNAJmMKb5XFIUeu2WuFF5PD8MwoWlAMKQgEFShusjuSgKMARaoYQB6zkQiYcLUgUij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cKypX2YBpdsXSRDOwZkfJqG4AmfmDiHEKIrZSdEeRZR8GzIARwLh5Ccp9/8yCcBvksqsXP+3GtW8y5Pe3odQxwCKV2i2WzMi4S7Or6HGhToPwdj5KoUm99CMP0AG0S5yH9vqcug0D3DvnqeQbOvGyKXTmL4zgizpXTNkImwaiBKjomQjlMg6N03Lq+5d3XirRBzLK1IgqUhGZ4jSd3mKCOYprlCkjyUMYLIx+gYxcOAQki3VReDu6xcL8OBh8RHvTs3DnrqB0tRlijFcACjoZI6TOsrMMxSKXLVLCBTqpknVuQO1Us0CoJK+CvVQ5qmxA1pDJ8H5IYR6n0S4l2Z690Gorf2kyjbvgOlkSzv2P/+6GPixG5eQXZoXs7NE8F+gGcqnnsvikI34KbIMiQWgxJBP32bJFKemNTQ2Y9uuJ9Czcx9C4eqib4HenSSvhz+7n0eYq2EXJ1EiuyE/ekFs1GFNniZjclqoUlVsPV7jezZyXkBp4hqKt8/DaCeYb98FJZbEgzhR9F6aGh3G7aFzWJqdEPk3VQ8JI61eLRGnnPBOXCIARMlGQp/ePU+jq28AVW0+WJ/GwMlReHr6OkyyH4y+J2F0Vx8A8mlDAvAoUYEs/9ErZzBx85owFjUjVLM+vptcgSY2BYR4dVTPjt3o3/s0wvEGfBzoYyMATMyoyVvXMUZokFqYEQKgQEXtO/Ly7OY9AWw0NLXJWT+wq6bI4qNKHysB8Cm7OEsq4TymxkZENK/Wo+7Z49BDEXT2DqBvzxOINwXbduUvE30sBYDJImNtdmKUEoSFmo65FZ42IYpB8Ym27u3QQvXZFvdRo4+tAGxRMPr4KLMtqom2BOAxpy0BeMxpSwAec9oSgMectgTgMactAXjMaUsAHnPaEoDHnLYE4DGnLQF4zGlLAB5z2hKAx5z+P352FSSkh4qJAAAAAElFTkSuQmCC";
|
|
1319
|
+
function ur() {
|
|
1320
1320
|
return /* @__PURE__ */ f("svg", { width: "33", height: "16", viewBox: "0 0 33.0001 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { display: "block", flexShrink: 0 }, children: [
|
|
1321
1321
|
/* @__PURE__ */ i("path", { d: "M32.9338 2.19869V4.83327H24.0205V6.46108H32.4867V8.92786H24.0205V10.7068H33.0001V13.3918H20.707V2.19869H32.9338Z", fill: "var(--fill-0, #24201C)" }),
|
|
1322
1322
|
/* @__PURE__ */ i("path", { d: "M23.9528 1.65254C21.8438 0.595304 19.4691 0 16.9568 0C14.4445 0 12.1791 0.567895 10.1067 1.58001C9.97635 1.64385 9.89253 1.77655 9.89253 1.92329V16L24.0043 1.70335C23.9924 1.68196 23.9749 1.66424 23.9528 1.65254Z", fill: "url(#pye-radial)" }),
|
|
@@ -1341,9 +1341,9 @@ function sr() {
|
|
|
1341
1341
|
] })
|
|
1342
1342
|
] });
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1345
|
-
const
|
|
1346
|
-
return
|
|
1344
|
+
function pr({ name: c, size: l = 32 }) {
|
|
1345
|
+
const d = { Phantom: sr, Backpack: cr, Metamask: dr }, w = { Phantom: "#AB9FF2", Backpack: "#E33B3B", Metamask: "#F5841F" }, g = d[c];
|
|
1346
|
+
return g ? /* @__PURE__ */ i("img", { src: g, alt: c, style: {
|
|
1347
1347
|
width: l,
|
|
1348
1348
|
height: l,
|
|
1349
1349
|
borderRadius: 8,
|
|
@@ -1359,9 +1359,9 @@ function cr({ name: c, size: l = 32 }) {
|
|
|
1359
1359
|
display: "flex",
|
|
1360
1360
|
alignItems: "center",
|
|
1361
1361
|
justifyContent: "center"
|
|
1362
|
-
}, children: /* @__PURE__ */ i("span", { style:
|
|
1362
|
+
}, children: /* @__PURE__ */ i("span", { style: m(11, "#fff", 700), children: c[0] }) });
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function ve({ children: c }) {
|
|
1365
1365
|
return /* @__PURE__ */ i("div", { style: {
|
|
1366
1366
|
width: "min(420px, calc(100vw - 32px))",
|
|
1367
1367
|
height: 600,
|
|
@@ -1369,18 +1369,18 @@ function Ie({ children: c }) {
|
|
|
1369
1369
|
boxShadow: "0px 4px 8px rgba(0,0,0,0.07)",
|
|
1370
1370
|
display: "flex",
|
|
1371
1371
|
flexDirection: "column",
|
|
1372
|
-
background:
|
|
1372
|
+
background: a.surface
|
|
1373
1373
|
}, children: c });
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function Ie({ children: c, padding: l = 24, style: d }) {
|
|
1376
1376
|
return /* @__PURE__ */ f("div", { style: {
|
|
1377
1377
|
flex: 1,
|
|
1378
1378
|
display: "flex",
|
|
1379
1379
|
flexDirection: "column",
|
|
1380
1380
|
minHeight: 0,
|
|
1381
|
-
background:
|
|
1382
|
-
borderTop: `1px solid ${
|
|
1383
|
-
...
|
|
1381
|
+
background: a.surface,
|
|
1382
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
1383
|
+
...d
|
|
1384
1384
|
}, children: [
|
|
1385
1385
|
/* @__PURE__ */ i("div", { style: {
|
|
1386
1386
|
flex: 1,
|
|
@@ -1391,22 +1391,22 @@ function Re({ children: c, padding: l = 24, style: u }) {
|
|
|
1391
1391
|
minHeight: 0,
|
|
1392
1392
|
overflowY: "auto"
|
|
1393
1393
|
}, children: c }),
|
|
1394
|
-
/* @__PURE__ */ i("div", { style: { height: 0, borderTop: `1px solid ${
|
|
1394
|
+
/* @__PURE__ */ i("div", { style: { height: 0, borderTop: `1px solid ${a.shadow}`, flexShrink: 0 } })
|
|
1395
1395
|
] });
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function Ce() {
|
|
1398
1398
|
return /* @__PURE__ */ i("div", { style: { flex: 1 } });
|
|
1399
1399
|
}
|
|
1400
|
-
function it({ step: c, total: l, onBack:
|
|
1401
|
-
const y = !w && c != null && l != null && l > 0,
|
|
1400
|
+
function it({ step: c, total: l, onBack: d, hideStep: w, label: g, tooltipText: x }) {
|
|
1401
|
+
const y = !w && c != null && l != null && l > 0, o = y ? Math.round(c / l * 100) : 0, A = /* @__PURE__ */ i("button", { onClick: d, style: {
|
|
1402
1402
|
background: "none",
|
|
1403
1403
|
border: "none",
|
|
1404
1404
|
cursor: "pointer",
|
|
1405
1405
|
padding: 0,
|
|
1406
1406
|
display: "flex",
|
|
1407
1407
|
alignItems: "center",
|
|
1408
|
-
visibility:
|
|
1409
|
-
color:
|
|
1408
|
+
visibility: d ? "visible" : "hidden",
|
|
1409
|
+
color: a.secondary,
|
|
1410
1410
|
flexShrink: 0
|
|
1411
1411
|
}, children: /* @__PURE__ */ i("svg", { width: "18", height: "18", viewBox: "0 0 16 16", fill: "none", style: { display: "block" }, children: /* @__PURE__ */ i("path", { d: "M13 8H3M3 8L7 4M3 8L7 12", stroke: "currentColor", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) }) });
|
|
1412
1412
|
return /* @__PURE__ */ f("div", { style: {
|
|
@@ -1415,32 +1415,32 @@ function it({ step: c, total: l, onBack: u, hideStep: w, label: m, tooltipText:
|
|
|
1415
1415
|
gap: 14,
|
|
1416
1416
|
padding: "20px 24px",
|
|
1417
1417
|
flexShrink: 0,
|
|
1418
|
-
background:
|
|
1419
|
-
borderTop: `1px solid ${
|
|
1420
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
1418
|
+
background: a.surface,
|
|
1419
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
1420
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
1421
1421
|
borderRadius: "10px 10px 0 0"
|
|
1422
1422
|
}, children: [
|
|
1423
|
-
|
|
1424
|
-
!y &&
|
|
1425
|
-
/* @__PURE__ */ i("span", { style: { ...
|
|
1426
|
-
|
|
1423
|
+
A,
|
|
1424
|
+
!y && g && /* @__PURE__ */ f("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
|
|
1425
|
+
/* @__PURE__ */ i("span", { style: { ...m(15, a.primary, 500) }, children: g }),
|
|
1426
|
+
x && /* @__PURE__ */ i(be, { position: "below", text: x })
|
|
1427
1427
|
] }),
|
|
1428
1428
|
y && /* @__PURE__ */ f("div", { style: { flex: 1, display: "flex", alignItems: "center", gap: 10 }, children: [
|
|
1429
1429
|
/* @__PURE__ */ i("div", { style: {
|
|
1430
1430
|
flex: 1,
|
|
1431
1431
|
height: 3,
|
|
1432
|
-
background:
|
|
1432
|
+
background: a.shadow,
|
|
1433
1433
|
borderRadius: 2,
|
|
1434
1434
|
overflow: "hidden"
|
|
1435
1435
|
}, children: /* @__PURE__ */ i("div", { style: {
|
|
1436
1436
|
height: "100%",
|
|
1437
|
-
width: `${
|
|
1438
|
-
background:
|
|
1437
|
+
width: `${o}%`,
|
|
1438
|
+
background: a.purple,
|
|
1439
1439
|
borderRadius: 2,
|
|
1440
1440
|
transition: "width 0.25s ease"
|
|
1441
1441
|
} }) }),
|
|
1442
1442
|
/* @__PURE__ */ f("span", { style: {
|
|
1443
|
-
...
|
|
1443
|
+
...m(13, a.secondary),
|
|
1444
1444
|
lineHeight: 1,
|
|
1445
1445
|
whiteSpace: "nowrap",
|
|
1446
1446
|
fontVariantNumeric: "tabular-nums"
|
|
@@ -1452,47 +1452,47 @@ function it({ step: c, total: l, onBack: u, hideStep: w, label: m, tooltipText:
|
|
|
1452
1452
|
] })
|
|
1453
1453
|
] });
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1455
|
+
function Ne({ title: c, subtitle: l }) {
|
|
1456
1456
|
return /* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
1457
|
-
/* @__PURE__ */ i("p", { style:
|
|
1458
|
-
l && /* @__PURE__ */ i("p", { style:
|
|
1457
|
+
/* @__PURE__ */ i("p", { style: m(18, a.primary, 500), children: c }),
|
|
1458
|
+
l && /* @__PURE__ */ i("p", { style: m(14, a.secondary), children: l })
|
|
1459
1459
|
] });
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1462
|
-
const w = l ??
|
|
1463
|
-
const
|
|
1464
|
-
if (!
|
|
1465
|
-
const B =
|
|
1466
|
-
|
|
1467
|
-
top:
|
|
1461
|
+
function be({ text: c, bg: l, position: d = "above" }) {
|
|
1462
|
+
const w = l ?? a.raised, g = d === "below", x = ae(null), [y, o] = We(null), A = () => {
|
|
1463
|
+
const b = x.current;
|
|
1464
|
+
if (!b) return;
|
|
1465
|
+
const B = b.getBoundingClientRect();
|
|
1466
|
+
o({
|
|
1467
|
+
top: g ? B.bottom + 8 : B.top - 8,
|
|
1468
1468
|
left: B.left + B.width / 2
|
|
1469
1469
|
});
|
|
1470
|
-
},
|
|
1470
|
+
}, E = y ? _t(
|
|
1471
1471
|
/* @__PURE__ */ f("div", { style: {
|
|
1472
1472
|
position: "fixed",
|
|
1473
|
-
top:
|
|
1474
|
-
bottom:
|
|
1473
|
+
top: g ? y.top : void 0,
|
|
1474
|
+
bottom: g ? void 0 : `calc(100vh - ${y.top}px)`,
|
|
1475
1475
|
left: y.left,
|
|
1476
1476
|
transform: "translateX(-50%)",
|
|
1477
1477
|
width: 210,
|
|
1478
1478
|
background: w,
|
|
1479
|
-
borderTop: `1px solid ${
|
|
1480
|
-
boxShadow: `0 4px 16px rgba(0,0,0,0.15), inset 0 -1px 0 ${
|
|
1479
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
1480
|
+
boxShadow: `0 4px 16px rgba(0,0,0,0.15), inset 0 -1px 0 ${a.shadow}`,
|
|
1481
1481
|
borderRadius: 8,
|
|
1482
1482
|
padding: "8px 10px",
|
|
1483
1483
|
zIndex: 1e4,
|
|
1484
1484
|
pointerEvents: "none"
|
|
1485
1485
|
}, children: [
|
|
1486
|
-
/* @__PURE__ */ i("p", { style: { ...
|
|
1486
|
+
/* @__PURE__ */ i("p", { style: { ...m(11, a.secondary), lineHeight: 1.5 }, children: c }),
|
|
1487
1487
|
/* @__PURE__ */ i("div", { style: {
|
|
1488
1488
|
position: "absolute",
|
|
1489
|
-
...
|
|
1489
|
+
...g ? { top: -4 } : { bottom: -4 },
|
|
1490
1490
|
left: "50%",
|
|
1491
1491
|
transform: "translateX(-50%) rotate(45deg)",
|
|
1492
1492
|
width: 8,
|
|
1493
1493
|
height: 8,
|
|
1494
1494
|
background: w,
|
|
1495
|
-
boxShadow:
|
|
1495
|
+
boxShadow: g ? `-1px -1px 0 ${a.shadow}` : `1px 1px 0 ${a.shadow}`
|
|
1496
1496
|
} })
|
|
1497
1497
|
] }),
|
|
1498
1498
|
document.body
|
|
@@ -1500,9 +1500,9 @@ function Ae({ text: c, bg: l, position: u = "above" }) {
|
|
|
1500
1500
|
return /* @__PURE__ */ f(
|
|
1501
1501
|
"div",
|
|
1502
1502
|
{
|
|
1503
|
-
ref:
|
|
1504
|
-
onMouseEnter:
|
|
1505
|
-
onMouseLeave: () =>
|
|
1503
|
+
ref: x,
|
|
1504
|
+
onMouseEnter: A,
|
|
1505
|
+
onMouseLeave: () => o(null),
|
|
1506
1506
|
style: { position: "relative", display: "inline-flex", flexShrink: 0 },
|
|
1507
1507
|
children: [
|
|
1508
1508
|
/* @__PURE__ */ i(
|
|
@@ -1513,32 +1513,32 @@ function Ae({ text: c, bg: l, position: u = "above" }) {
|
|
|
1513
1513
|
height: 16,
|
|
1514
1514
|
borderRadius: "50%",
|
|
1515
1515
|
background: w,
|
|
1516
|
-
borderTop: `1px solid ${
|
|
1517
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
1516
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
1517
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
1518
1518
|
display: "flex",
|
|
1519
1519
|
alignItems: "center",
|
|
1520
1520
|
justifyContent: "center",
|
|
1521
1521
|
cursor: "default",
|
|
1522
1522
|
flexShrink: 0
|
|
1523
1523
|
},
|
|
1524
|
-
children: /* @__PURE__ */ i("span", { style: { ...
|
|
1524
|
+
children: /* @__PURE__ */ i("span", { style: { ...m(9, a.muted), lineHeight: 1, userSelect: "none", fontWeight: 500 }, children: "?" })
|
|
1525
1525
|
}
|
|
1526
1526
|
),
|
|
1527
|
-
|
|
1527
|
+
E
|
|
1528
1528
|
]
|
|
1529
1529
|
}
|
|
1530
1530
|
);
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function kt({ children: c }) {
|
|
1533
1533
|
return /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: c });
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1536
|
-
const y =
|
|
1535
|
+
function hr({ icon: c, label: l, sub: d, amount: w, selected: g, onClick: x }) {
|
|
1536
|
+
const y = g ? a.bg : a.raised, o = g ? `inset 0 1px 0 ${a.shadow}, inset 0 -1px 0 ${a.highlight}` : `inset 0 1px 0 ${a.highlight}, inset 0 -1px 0 ${a.shadow}`;
|
|
1537
1537
|
return /* @__PURE__ */ f(
|
|
1538
1538
|
"div",
|
|
1539
1539
|
{
|
|
1540
|
-
className:
|
|
1541
|
-
onClick:
|
|
1540
|
+
className: g ? void 0 : "pye-hoverable",
|
|
1541
|
+
onClick: x,
|
|
1542
1542
|
style: {
|
|
1543
1543
|
display: "flex",
|
|
1544
1544
|
alignItems: "center",
|
|
@@ -1546,7 +1546,7 @@ function dr({ icon: c, label: l, sub: u, amount: w, selected: m, onClick: p }) {
|
|
|
1546
1546
|
padding: 12,
|
|
1547
1547
|
borderRadius: 8,
|
|
1548
1548
|
background: y,
|
|
1549
|
-
boxShadow:
|
|
1549
|
+
boxShadow: o,
|
|
1550
1550
|
cursor: "pointer",
|
|
1551
1551
|
transition: "background 0.1s"
|
|
1552
1552
|
},
|
|
@@ -1554,13 +1554,13 @@ function dr({ icon: c, label: l, sub: u, amount: w, selected: m, onClick: p }) {
|
|
|
1554
1554
|
/* @__PURE__ */ f("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
|
|
1555
1555
|
c,
|
|
1556
1556
|
/* @__PURE__ */ f("div", { children: [
|
|
1557
|
-
/* @__PURE__ */ i("p", { style:
|
|
1558
|
-
/* @__PURE__ */ i("p", { style:
|
|
1557
|
+
/* @__PURE__ */ i("p", { style: m(15, a.primary), children: l }),
|
|
1558
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: d })
|
|
1559
1559
|
] })
|
|
1560
1560
|
] }),
|
|
1561
1561
|
w && /* @__PURE__ */ f("div", { style: { textAlign: "right" }, children: [
|
|
1562
|
-
/* @__PURE__ */ i("p", { style:
|
|
1563
|
-
/* @__PURE__ */ i("p", { style:
|
|
1562
|
+
/* @__PURE__ */ i("p", { style: m(15, a.primary), children: w }),
|
|
1563
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "SOL" })
|
|
1564
1564
|
] })
|
|
1565
1565
|
]
|
|
1566
1566
|
}
|
|
@@ -1574,9 +1574,9 @@ function ot() {
|
|
|
1574
1574
|
padding: 16,
|
|
1575
1575
|
borderRadius: 10,
|
|
1576
1576
|
minHeight: 76,
|
|
1577
|
-
background:
|
|
1578
|
-
borderTop: `1px solid ${
|
|
1579
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
1577
|
+
background: a.raised,
|
|
1578
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
1579
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`
|
|
1580
1580
|
}, children: [
|
|
1581
1581
|
/* @__PURE__ */ i("div", { className: "pye-skeleton", style: { width: 44, height: 44, borderRadius: 10, flexShrink: 0 } }),
|
|
1582
1582
|
/* @__PURE__ */ f("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 8, minWidth: 0 }, children: [
|
|
@@ -1585,24 +1585,24 @@ function ot() {
|
|
|
1585
1585
|
] })
|
|
1586
1586
|
] });
|
|
1587
1587
|
}
|
|
1588
|
-
function
|
|
1588
|
+
function Re({ label: c, onClick: l, disabled: d, purple: w }) {
|
|
1589
1589
|
return w ? /* @__PURE__ */ i(
|
|
1590
1590
|
"button",
|
|
1591
1591
|
{
|
|
1592
1592
|
className: "pye-cta-purple",
|
|
1593
|
-
onClick:
|
|
1594
|
-
disabled:
|
|
1593
|
+
onClick: d ? void 0 : l,
|
|
1594
|
+
disabled: d,
|
|
1595
1595
|
style: {
|
|
1596
1596
|
width: "100%",
|
|
1597
1597
|
height: 40,
|
|
1598
1598
|
borderRadius: 6,
|
|
1599
1599
|
border: "none",
|
|
1600
1600
|
borderTop: "1px solid var(--c-brand-hi)",
|
|
1601
|
-
cursor:
|
|
1602
|
-
background:
|
|
1603
|
-
...
|
|
1601
|
+
cursor: d ? "not-allowed" : "pointer",
|
|
1602
|
+
background: a.purple,
|
|
1603
|
+
...m(15, "var(--c-brand-text)"),
|
|
1604
1604
|
boxShadow: "inset 0 -1px 0 var(--c-brand-sh)",
|
|
1605
|
-
opacity:
|
|
1605
|
+
opacity: d ? 0.5 : 1,
|
|
1606
1606
|
transition: "filter 0.1s, opacity 0.1s",
|
|
1607
1607
|
flexShrink: 0
|
|
1608
1608
|
},
|
|
@@ -1613,18 +1613,18 @@ function Fe({ label: c, onClick: l, disabled: u, purple: w }) {
|
|
|
1613
1613
|
{
|
|
1614
1614
|
className: "pye-cta-default",
|
|
1615
1615
|
onClick: l,
|
|
1616
|
-
disabled:
|
|
1616
|
+
disabled: d,
|
|
1617
1617
|
style: {
|
|
1618
1618
|
width: "100%",
|
|
1619
1619
|
height: 40,
|
|
1620
1620
|
borderRadius: 6,
|
|
1621
1621
|
border: "none",
|
|
1622
|
-
borderTop: `1px solid ${
|
|
1623
|
-
cursor:
|
|
1624
|
-
background:
|
|
1625
|
-
...
|
|
1626
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
1627
|
-
opacity:
|
|
1622
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
1623
|
+
cursor: d ? "not-allowed" : "pointer",
|
|
1624
|
+
background: a.raised,
|
|
1625
|
+
...m(15, a.primary),
|
|
1626
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
1627
|
+
opacity: d ? 0.5 : 1,
|
|
1628
1628
|
transition: "background 0.1s, opacity 0.1s",
|
|
1629
1629
|
flexShrink: 0
|
|
1630
1630
|
},
|
|
@@ -1632,7 +1632,7 @@ function Fe({ label: c, onClick: l, disabled: u, purple: w }) {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
);
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1635
|
+
function St({ label: c, onClose: l }) {
|
|
1636
1636
|
return /* @__PURE__ */ f("div", { style: {
|
|
1637
1637
|
height: 48,
|
|
1638
1638
|
display: "flex",
|
|
@@ -1640,10 +1640,10 @@ function bt({ label: c, onClose: l }) {
|
|
|
1640
1640
|
padding: "0 24px",
|
|
1641
1641
|
flexShrink: 0,
|
|
1642
1642
|
gap: 8,
|
|
1643
|
-
background:
|
|
1643
|
+
background: a.surface,
|
|
1644
1644
|
borderRadius: "10px 10px 0 0",
|
|
1645
|
-
borderTop: `1px solid ${
|
|
1646
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
1645
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
1646
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`
|
|
1647
1647
|
}, children: [
|
|
1648
1648
|
/* @__PURE__ */ i("div", { style: {
|
|
1649
1649
|
width: 20,
|
|
@@ -1655,7 +1655,7 @@ function bt({ label: c, onClose: l }) {
|
|
|
1655
1655
|
alignItems: "center",
|
|
1656
1656
|
justifyContent: "center"
|
|
1657
1657
|
}, children: /* @__PURE__ */ i("svg", { width: "10", height: "10", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ i("path", { d: "M3 8.5L6.5 12L13 5", stroke: "#0d9c5e", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
1658
|
-
/* @__PURE__ */ i("p", { style: { ...
|
|
1658
|
+
/* @__PURE__ */ i("p", { style: { ...m(15, a.primary), flex: 1 }, children: c }),
|
|
1659
1659
|
/* @__PURE__ */ i("button", { onClick: l, style: {
|
|
1660
1660
|
background: "none",
|
|
1661
1661
|
border: "none",
|
|
@@ -1669,10 +1669,10 @@ function bt({ label: c, onClose: l }) {
|
|
|
1669
1669
|
justifyContent: "center",
|
|
1670
1670
|
borderRadius: 8,
|
|
1671
1671
|
flexShrink: 0
|
|
1672
|
-
}, children: /* @__PURE__ */ i("svg", { width: "12", height: "12", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ i("path", { d: "M1 1L13 13M13 1L1 13", stroke:
|
|
1672
|
+
}, children: /* @__PURE__ */ i("svg", { width: "12", height: "12", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ i("path", { d: "M1 1L13 13M13 1L1 13", stroke: a.secondary, strokeWidth: "1", strokeLinecap: "round" }) }) })
|
|
1673
1673
|
] });
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1675
|
+
function Be() {
|
|
1676
1676
|
return /* @__PURE__ */ i("div", { style: {
|
|
1677
1677
|
height: 44,
|
|
1678
1678
|
display: "flex",
|
|
@@ -1680,32 +1680,32 @@ function Ce() {
|
|
|
1680
1680
|
justifyContent: "center",
|
|
1681
1681
|
gap: 8,
|
|
1682
1682
|
flexShrink: 0,
|
|
1683
|
-
background:
|
|
1684
|
-
borderTop: `1px solid ${
|
|
1685
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
1683
|
+
background: a.surface,
|
|
1684
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
1685
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
1686
1686
|
borderRadius: "0 0 10px 10px"
|
|
1687
1687
|
}, children: /* @__PURE__ */ f("a", { href: "https://pye.fi/", target: "_blank", rel: "noopener noreferrer", style: { display: "flex", alignItems: "center", gap: 8, textDecoration: "none" }, children: [
|
|
1688
|
-
/* @__PURE__ */ i("span", { style:
|
|
1689
|
-
/* @__PURE__ */ i(
|
|
1688
|
+
/* @__PURE__ */ i("span", { style: m(15, a.secondary), children: "Powered by" }),
|
|
1689
|
+
/* @__PURE__ */ i(ur, {})
|
|
1690
1690
|
] }) });
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1693
|
-
return c ? /* @__PURE__ */ i("p", { style: { ...
|
|
1692
|
+
function fr({ message: c }) {
|
|
1693
|
+
return c ? /* @__PURE__ */ i("p", { style: { ...m(14, a.red), marginTop: 4 }, children: c }) : null;
|
|
1694
1694
|
}
|
|
1695
|
-
const
|
|
1696
|
-
function
|
|
1695
|
+
const at = 1e9;
|
|
1696
|
+
function lt({
|
|
1697
1697
|
icon: c,
|
|
1698
1698
|
label: l,
|
|
1699
|
-
sub:
|
|
1699
|
+
sub: d,
|
|
1700
1700
|
subColor: w,
|
|
1701
|
-
onClick:
|
|
1702
|
-
disabled:
|
|
1701
|
+
onClick: g,
|
|
1702
|
+
disabled: x
|
|
1703
1703
|
}) {
|
|
1704
1704
|
return /* @__PURE__ */ f(
|
|
1705
1705
|
"div",
|
|
1706
1706
|
{
|
|
1707
|
-
className:
|
|
1708
|
-
onClick:
|
|
1707
|
+
className: x ? void 0 : "pye-hoverable",
|
|
1708
|
+
onClick: x ? void 0 : g,
|
|
1709
1709
|
style: {
|
|
1710
1710
|
display: "flex",
|
|
1711
1711
|
alignItems: "center",
|
|
@@ -1713,26 +1713,26 @@ function Je({
|
|
|
1713
1713
|
padding: 16,
|
|
1714
1714
|
borderRadius: 10,
|
|
1715
1715
|
minHeight: 76,
|
|
1716
|
-
background:
|
|
1717
|
-
borderTop: `1px solid ${
|
|
1718
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
1719
|
-
cursor:
|
|
1720
|
-
opacity:
|
|
1716
|
+
background: a.raised,
|
|
1717
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
1718
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
1719
|
+
cursor: x ? "not-allowed" : "pointer",
|
|
1720
|
+
opacity: x ? 0.5 : 1,
|
|
1721
1721
|
transition: "background 0.1s"
|
|
1722
1722
|
},
|
|
1723
1723
|
children: [
|
|
1724
1724
|
c,
|
|
1725
1725
|
/* @__PURE__ */ f("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 2, minWidth: 0 }, children: [
|
|
1726
|
-
/* @__PURE__ */ i("p", { style:
|
|
1727
|
-
/* @__PURE__ */ i("p", { style:
|
|
1726
|
+
/* @__PURE__ */ i("p", { style: m(15, a.primary), children: l }),
|
|
1727
|
+
/* @__PURE__ */ i("p", { style: m(14, w ?? a.secondary), children: d })
|
|
1728
1728
|
] }),
|
|
1729
|
-
/* @__PURE__ */ i("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", style: { flexShrink: 0 }, children: /* @__PURE__ */ i("path", { d: "M6 4L10 8L6 12", stroke:
|
|
1729
|
+
/* @__PURE__ */ i("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", style: { flexShrink: 0 }, children: /* @__PURE__ */ i("path", { d: "M6 4L10 8L6 12", stroke: a.muted, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
1730
1730
|
]
|
|
1731
1731
|
}
|
|
1732
1732
|
);
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1735
|
-
const
|
|
1734
|
+
function yr({ address: c, onSwitch: l }) {
|
|
1735
|
+
const d = `${c.slice(0, 4)}...${c.slice(-4)}`;
|
|
1736
1736
|
return /* @__PURE__ */ f(
|
|
1737
1737
|
"button",
|
|
1738
1738
|
{
|
|
@@ -1745,9 +1745,9 @@ function pr({ address: c, onSwitch: l }) {
|
|
|
1745
1745
|
padding: 20,
|
|
1746
1746
|
borderRadius: 10,
|
|
1747
1747
|
width: "100%",
|
|
1748
|
-
background:
|
|
1749
|
-
borderTop: `1px solid ${
|
|
1750
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
1748
|
+
background: a.raised,
|
|
1749
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
1750
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
1751
1751
|
border: "none",
|
|
1752
1752
|
cursor: "pointer",
|
|
1753
1753
|
transition: "background 0.1s"
|
|
@@ -1758,16 +1758,16 @@ function pr({ address: c, onSwitch: l }) {
|
|
|
1758
1758
|
width: 4,
|
|
1759
1759
|
height: 4,
|
|
1760
1760
|
borderRadius: 9,
|
|
1761
|
-
background:
|
|
1761
|
+
background: a.green
|
|
1762
1762
|
} }),
|
|
1763
|
-
/* @__PURE__ */ i("span", { style: { ...
|
|
1763
|
+
/* @__PURE__ */ i("span", { style: { ...m(15, a.primary), fontVariantNumeric: "tabular-nums" }, children: d })
|
|
1764
1764
|
] }),
|
|
1765
|
-
/* @__PURE__ */ i("span", { style:
|
|
1765
|
+
/* @__PURE__ */ i("span", { style: m(15, a.secondary), children: "Switch" })
|
|
1766
1766
|
]
|
|
1767
1767
|
}
|
|
1768
1768
|
);
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1770
|
+
function gr() {
|
|
1771
1771
|
return /* @__PURE__ */ i("div", { style: {
|
|
1772
1772
|
flexShrink: 0,
|
|
1773
1773
|
width: 44,
|
|
@@ -1784,25 +1784,7 @@ function hr() {
|
|
|
1784
1784
|
/* @__PURE__ */ i("circle", { cx: "12", cy: "12", r: "5", stroke: "currentColor", strokeWidth: "1.5", fill: "none" })
|
|
1785
1785
|
] }) });
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1788
|
-
return /* @__PURE__ */ i("div", { style: {
|
|
1789
|
-
flexShrink: 0,
|
|
1790
|
-
width: 44,
|
|
1791
|
-
height: 44,
|
|
1792
|
-
borderRadius: 10,
|
|
1793
|
-
background: `color-mix(in srgb, ${o.secondary} 15%, transparent)`,
|
|
1794
|
-
borderTop: "1px solid rgba(255,255,255,0.2)",
|
|
1795
|
-
boxShadow: "0 4px 8px rgba(0,0,0,0.07), inset 0 -1px 0 rgba(0,0,0,0.2)",
|
|
1796
|
-
display: "flex",
|
|
1797
|
-
alignItems: "center",
|
|
1798
|
-
justifyContent: "center"
|
|
1799
|
-
}, children: /* @__PURE__ */ f("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", style: { color: o.secondary }, children: [
|
|
1800
|
-
/* @__PURE__ */ i("path", { d: "M4 3h8a2 2 0 0 1 2 2v12H6a2 2 0 0 1-2-2V3z", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }),
|
|
1801
|
-
/* @__PURE__ */ i("path", { d: "M4 15a2 2 0 0 1 2-2h8", stroke: "currentColor", strokeWidth: "1.5" }),
|
|
1802
|
-
/* @__PURE__ */ i("path", { d: "M7 7h4M7 10h3", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
1803
|
-
] }) });
|
|
1804
|
-
}
|
|
1805
|
-
function yr() {
|
|
1787
|
+
function mr() {
|
|
1806
1788
|
return /* @__PURE__ */ i("div", { style: {
|
|
1807
1789
|
flexShrink: 0,
|
|
1808
1790
|
width: 44,
|
|
@@ -1820,259 +1802,252 @@ function yr() {
|
|
|
1820
1802
|
/* @__PURE__ */ i("circle", { cx: "13", cy: "12.5", r: "1", fill: "currentColor" })
|
|
1821
1803
|
] }) });
|
|
1822
1804
|
}
|
|
1823
|
-
function
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
let
|
|
1839
|
-
for (const
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1805
|
+
function xr() {
|
|
1806
|
+
var T;
|
|
1807
|
+
const c = F((C) => C.navigate), l = se((C) => C.walletBalances), d = se((C) => C.userStakeAccounts), w = se((C) => C.userStakeAccountsLoading), g = xe((C) => C.publicKey), x = je((C) => C.bonds), y = Oe((C) => C.validators), { disconnect: o } = Ve(), A = (() => {
|
|
1808
|
+
try {
|
|
1809
|
+
return Ot().voteAccount;
|
|
1810
|
+
} catch {
|
|
1811
|
+
return;
|
|
1812
|
+
}
|
|
1813
|
+
})();
|
|
1814
|
+
A && ((T = y[A]) == null || T.name);
|
|
1815
|
+
const { totalPtSol: E, maturedPtSol: b } = Pe(() => {
|
|
1816
|
+
const C = /* @__PURE__ */ new Map();
|
|
1817
|
+
for (const Q of Object.values(x))
|
|
1818
|
+
C.set(Q.pt_mint, Q);
|
|
1819
|
+
const R = Date.now() / 1e3;
|
|
1820
|
+
let Y = 0, M = 0;
|
|
1821
|
+
for (const [Q, Z] of Object.entries(l)) {
|
|
1822
|
+
if (Z <= 0) continue;
|
|
1823
|
+
const z = C.get(Q);
|
|
1824
|
+
if (!z) continue;
|
|
1825
|
+
const W = Z / at;
|
|
1826
|
+
Y += W, R >= z.maturity_ts && (M += W);
|
|
1827
|
+
}
|
|
1828
|
+
return { totalPtSol: Y, maturedPtSol: M };
|
|
1829
|
+
}, [l, x]), B = Pe(() => {
|
|
1830
|
+
var R;
|
|
1831
|
+
let C = 0;
|
|
1832
|
+
for (const Y of d)
|
|
1833
|
+
Y.state === "active" && Y.validatorVoteAccount && ((R = y[Y.validatorVoteAccount]) == null ? void 0 : R.widget) === !0 && (C += Y.lamports);
|
|
1834
|
+
return C / at;
|
|
1835
|
+
}, [d, y]), O = ae(/* @__PURE__ */ new Set());
|
|
1836
|
+
re(() => {
|
|
1837
|
+
if (Object.keys(y).length !== 0)
|
|
1838
|
+
for (const C of d) {
|
|
1839
|
+
if (C.state !== "active" || !C.validatorVoteAccount) continue;
|
|
1840
|
+
const R = ht(C.validatorVoteAccount, y);
|
|
1841
|
+
if (R.ok) continue;
|
|
1842
|
+
const Y = `${R.code}:${C.validatorVoteAccount}`;
|
|
1843
|
+
O.current.has(Y) || (O.current.add(Y), console.warn(
|
|
1844
|
+
`[Pye] ${R.code}: stake ${C.pubkey} on validator ${C.validatorVoteAccount} — ${R.reason}`
|
|
1845
|
+
));
|
|
1846
|
+
}
|
|
1847
|
+
}, [d, y]);
|
|
1848
|
+
const k = E > 0, v = B > 0, D = Object.values(l).some((C) => C > 0), L = w && d.length === 0 && !D, p = k ? b > 0 ? `${ne(b)} SOL ready to redeem` : `${ne(E)} SOL locked` : "No PT positions", I = v ? `${ne(B, 2)} SOL across active stake` : "No active stake";
|
|
1849
|
+
return /* @__PURE__ */ f(Ie, { style: { borderRadius: "10px 10px 0 0" }, children: [
|
|
1850
|
+
/* @__PURE__ */ i(
|
|
1851
|
+
Ne,
|
|
1852
|
+
{
|
|
1853
|
+
title: "Manage your rewards",
|
|
1854
|
+
subtitle: "Your stake and positions at a glance. Sell future rewards or redeem SOL that has matured."
|
|
1855
|
+
}
|
|
1856
|
+
),
|
|
1857
|
+
/* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 10 }, children: L ? /* @__PURE__ */ f(oe, { children: [
|
|
1849
1858
|
/* @__PURE__ */ i(ot, {}),
|
|
1850
1859
|
/* @__PURE__ */ i(ot, {})
|
|
1851
|
-
] }) : /* @__PURE__ */ f(
|
|
1860
|
+
] }) : /* @__PURE__ */ f(oe, { children: [
|
|
1852
1861
|
/* @__PURE__ */ i(
|
|
1853
|
-
|
|
1862
|
+
lt,
|
|
1854
1863
|
{
|
|
1855
|
-
icon: /* @__PURE__ */ i(
|
|
1864
|
+
icon: /* @__PURE__ */ i(mr, {}),
|
|
1856
1865
|
label: "Sell future rewards",
|
|
1857
|
-
sub:
|
|
1858
|
-
disabled: !
|
|
1859
|
-
onClick: () =>
|
|
1866
|
+
sub: I,
|
|
1867
|
+
disabled: !v,
|
|
1868
|
+
onClick: () => c("select-position")
|
|
1860
1869
|
}
|
|
1861
1870
|
),
|
|
1862
1871
|
/* @__PURE__ */ i(
|
|
1863
|
-
|
|
1872
|
+
lt,
|
|
1864
1873
|
{
|
|
1865
|
-
icon: /* @__PURE__ */ i(
|
|
1866
|
-
label: "Redeem
|
|
1867
|
-
sub:
|
|
1868
|
-
subColor: b > 0 ?
|
|
1869
|
-
disabled: !
|
|
1870
|
-
onClick: () =>
|
|
1871
|
-
}
|
|
1872
|
-
),
|
|
1873
|
-
/* @__PURE__ */ i(
|
|
1874
|
-
Je,
|
|
1875
|
-
{
|
|
1876
|
-
icon: /* @__PURE__ */ i(fr, {}),
|
|
1877
|
-
label: "Learn more",
|
|
1878
|
-
sub: "Read the docs",
|
|
1879
|
-
onClick: () => window.open("https://docs.pye.fi/", "_blank", "noopener,noreferrer")
|
|
1874
|
+
icon: /* @__PURE__ */ i(gr, {}),
|
|
1875
|
+
label: "Redeem",
|
|
1876
|
+
sub: p,
|
|
1877
|
+
subColor: b > 0 ? a.green : void 0,
|
|
1878
|
+
disabled: !k,
|
|
1879
|
+
onClick: () => c("redeem-list")
|
|
1880
1880
|
}
|
|
1881
1881
|
)
|
|
1882
1882
|
] }) }),
|
|
1883
|
-
/* @__PURE__ */ i(
|
|
1884
|
-
|
|
1885
|
-
|
|
1883
|
+
/* @__PURE__ */ i(Ce, {}),
|
|
1884
|
+
g && /* @__PURE__ */ i(
|
|
1885
|
+
yr,
|
|
1886
1886
|
{
|
|
1887
|
-
address:
|
|
1887
|
+
address: g,
|
|
1888
1888
|
onSwitch: () => {
|
|
1889
|
-
|
|
1889
|
+
o().catch(() => {
|
|
1890
1890
|
});
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
1893
1893
|
)
|
|
1894
1894
|
] });
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1897
|
-
const
|
|
1896
|
+
function wr({ name: c, iconUrl: l, connecting: d, onConnect: w }) {
|
|
1897
|
+
const g = d === c, x = d != null && !g;
|
|
1898
1898
|
return /* @__PURE__ */ f(
|
|
1899
1899
|
"div",
|
|
1900
1900
|
{
|
|
1901
|
-
className:
|
|
1902
|
-
onClick: () => !
|
|
1901
|
+
className: d ? void 0 : "pye-hoverable",
|
|
1902
|
+
onClick: () => !d && w(c),
|
|
1903
1903
|
style: {
|
|
1904
1904
|
display: "flex",
|
|
1905
1905
|
alignItems: "center",
|
|
1906
1906
|
justifyContent: "space-between",
|
|
1907
1907
|
padding: 12,
|
|
1908
1908
|
borderRadius: 8,
|
|
1909
|
-
background:
|
|
1910
|
-
boxShadow: `inset 0 1px 0 ${
|
|
1911
|
-
cursor:
|
|
1912
|
-
opacity:
|
|
1909
|
+
background: a.raised,
|
|
1910
|
+
boxShadow: `inset 0 1px 0 ${a.highlight}, inset 0 -1px 0 ${a.shadow}`,
|
|
1911
|
+
cursor: d ? "default" : "pointer",
|
|
1912
|
+
opacity: x ? 0.4 : 1,
|
|
1913
1913
|
transition: "background 0.1s, opacity 0.2s"
|
|
1914
1914
|
},
|
|
1915
1915
|
children: [
|
|
1916
1916
|
/* @__PURE__ */ f("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
|
|
1917
|
-
l ? /* @__PURE__ */ i("img", { src: l, alt: "", style: { width: 32, height: 32, borderRadius: 8, objectFit: "cover" } }) : /* @__PURE__ */ i(
|
|
1918
|
-
/* @__PURE__ */ i("p", { style:
|
|
1917
|
+
l ? /* @__PURE__ */ i("img", { src: l, alt: "", style: { width: 32, height: 32, borderRadius: 8, objectFit: "cover" } }) : /* @__PURE__ */ i(pr, { name: c, size: 32 }),
|
|
1918
|
+
/* @__PURE__ */ i("p", { style: m(15, a.primary), children: c })
|
|
1919
1919
|
] }),
|
|
1920
|
-
/* @__PURE__ */ i("p", { style:
|
|
1920
|
+
/* @__PURE__ */ i("p", { style: m(14, g ? a.purple : a.secondary), children: g ? "Connecting…" : "Detected" })
|
|
1921
1921
|
]
|
|
1922
1922
|
}
|
|
1923
1923
|
);
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1926
|
-
const { wallets: c, wallet: l, select:
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
}, [
|
|
1930
|
-
const y = w ? (l == null ? void 0 : l.adapter.name) ?? null : null,
|
|
1931
|
-
new Map(c.map((
|
|
1932
|
-
)].sort((
|
|
1933
|
-
const
|
|
1934
|
-
return
|
|
1935
|
-
}),
|
|
1936
|
-
const B = c.find((
|
|
1937
|
-
B &&
|
|
1925
|
+
function br() {
|
|
1926
|
+
const { wallets: c, wallet: l, select: d, connecting: w } = Ve(), g = F((b) => b.navigate), x = xe((b) => b.status);
|
|
1927
|
+
re(() => {
|
|
1928
|
+
x === "connected" && g("welcome");
|
|
1929
|
+
}, [x, g]);
|
|
1930
|
+
const y = w ? (l == null ? void 0 : l.adapter.name) ?? null : null, A = [...Array.from(
|
|
1931
|
+
new Map(c.map((b) => [b.adapter.name, b])).values()
|
|
1932
|
+
)].sort((b, B) => {
|
|
1933
|
+
const O = b.readyState === "Installed" ? 0 : 1, k = B.readyState === "Installed" ? 0 : 1;
|
|
1934
|
+
return O - k;
|
|
1935
|
+
}), E = (b) => {
|
|
1936
|
+
const B = c.find((O) => O.adapter.name === b);
|
|
1937
|
+
B && d(B.adapter.name);
|
|
1938
1938
|
};
|
|
1939
|
-
return /* @__PURE__ */ f(
|
|
1939
|
+
return /* @__PURE__ */ f(oe, { children: [
|
|
1940
1940
|
/* @__PURE__ */ i(
|
|
1941
|
-
|
|
1941
|
+
Ne,
|
|
1942
1942
|
{
|
|
1943
1943
|
title: "Connect your wallet",
|
|
1944
1944
|
subtitle: "Connect to see your existing stake and SOL balance."
|
|
1945
1945
|
}
|
|
1946
1946
|
),
|
|
1947
|
-
/* @__PURE__ */ i(
|
|
1948
|
-
|
|
1947
|
+
/* @__PURE__ */ i(kt, { children: A.map((b) => /* @__PURE__ */ i(
|
|
1948
|
+
wr,
|
|
1949
1949
|
{
|
|
1950
|
-
name:
|
|
1951
|
-
iconUrl:
|
|
1950
|
+
name: b.adapter.name,
|
|
1951
|
+
iconUrl: b.adapter.icon,
|
|
1952
1952
|
connecting: y,
|
|
1953
|
-
onConnect:
|
|
1953
|
+
onConnect: E
|
|
1954
1954
|
},
|
|
1955
|
-
|
|
1955
|
+
b.adapter.name
|
|
1956
1956
|
)) }),
|
|
1957
|
-
/* @__PURE__ */ i(
|
|
1957
|
+
/* @__PURE__ */ i(Ce, {})
|
|
1958
1958
|
] });
|
|
1959
1959
|
}
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
/* @__PURE__ */ i("p", { style: { ...ke(45, o.primary), letterSpacing: "-0.02em" }, children: "Get your future staking rewards today." }),
|
|
1984
|
-
/* @__PURE__ */ i(xe, {}),
|
|
1985
|
-
/* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", gap: 24 }, children: [
|
|
1986
|
-
/* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
1987
|
-
/* @__PURE__ */ f("p", { style: A(12, o.primary), children: [
|
|
1988
|
-
"Example: Stake ",
|
|
1989
|
-
qe,
|
|
1990
|
-
" SOL for 6 months"
|
|
1991
|
-
] }),
|
|
1992
|
-
/* @__PURE__ */ f("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1993
|
-
/* @__PURE__ */ f("div", { style: {
|
|
1994
|
-
flex: 1,
|
|
1995
|
-
borderRadius: 6,
|
|
1996
|
-
padding: 12,
|
|
1997
|
-
background: o.raised,
|
|
1998
|
-
borderTop: `1px solid ${o.highlight}`,
|
|
1999
|
-
boxShadow: `0 4px 8px rgba(0,0,0,0.07), inset 0 -1px 0 ${o.shadow}`
|
|
2000
|
-
}, children: [
|
|
2001
|
-
/* @__PURE__ */ i("p", { style: A(12, o.secondary), children: "Sell rewards today" }),
|
|
2002
|
-
/* @__PURE__ */ f("p", { style: { ...ke(24, o.green), fontVariantNumeric: "lining-nums tabular-nums", lineHeight: 1.2, margin: "4px 0 2px" }, children: [
|
|
2003
|
-
"+",
|
|
2004
|
-
X(y),
|
|
2005
|
-
" SOL"
|
|
2006
|
-
] }),
|
|
2007
|
-
/* @__PURE__ */ i("p", { style: A(12, o.secondary), children: "Yours now" })
|
|
2008
|
-
] }),
|
|
2009
|
-
/* @__PURE__ */ f("div", { style: {
|
|
2010
|
-
flex: 1,
|
|
2011
|
-
borderRadius: 6,
|
|
2012
|
-
padding: 12,
|
|
2013
|
-
background: o.lowered,
|
|
2014
|
-
borderTop: `1px solid ${o.shadow}`,
|
|
2015
|
-
boxShadow: `inset 0 -1px 0 ${o.highlight}`
|
|
2016
|
-
}, children: [
|
|
2017
|
-
/* @__PURE__ */ i("p", { style: A(12, o.secondary), children: "Hold to unlock" }),
|
|
2018
|
-
/* @__PURE__ */ f("p", { style: { ...ke(24, o.primary), fontVariantNumeric: "lining-nums tabular-nums", lineHeight: 1.2, margin: "4px 0 2px" }, children: [
|
|
2019
|
-
"+",
|
|
2020
|
-
X(a)
|
|
2021
|
-
] }),
|
|
2022
|
-
/* @__PURE__ */ f("p", { style: A(12, o.secondary), children: [
|
|
2023
|
-
"Available ",
|
|
2024
|
-
v
|
|
2025
|
-
] })
|
|
2026
|
-
] })
|
|
2027
|
-
] })
|
|
2028
|
-
] }),
|
|
2029
|
-
/* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: 12 }, children: [
|
|
2030
|
-
/* @__PURE__ */ i(
|
|
2031
|
-
Fe,
|
|
2032
|
-
{
|
|
2033
|
-
label: u ? "Continue" : "Connect Wallet",
|
|
2034
|
-
onClick: () => c(u ? "select-position" : "connect-wallet"),
|
|
2035
|
-
purple: !0
|
|
2036
|
-
}
|
|
2037
|
-
),
|
|
2038
|
-
/* @__PURE__ */ i(
|
|
2039
|
-
"a",
|
|
2040
|
-
{
|
|
2041
|
-
href: "https://docs.pye.fi/",
|
|
2042
|
-
target: "_blank",
|
|
2043
|
-
rel: "noopener noreferrer",
|
|
2044
|
-
style: { ...A(12, o.secondary), textDecoration: "none" },
|
|
2045
|
-
children: "Learn more — read the docs"
|
|
2046
|
-
}
|
|
2047
|
-
)
|
|
2048
|
-
] })
|
|
1960
|
+
function ze({ icon: c, title: l, body: d }) {
|
|
1961
|
+
return /* @__PURE__ */ f("div", { style: {
|
|
1962
|
+
display: "flex",
|
|
1963
|
+
alignItems: "center",
|
|
1964
|
+
gap: 12,
|
|
1965
|
+
padding: "10px 4px"
|
|
1966
|
+
}, children: [
|
|
1967
|
+
/* @__PURE__ */ i("div", { style: {
|
|
1968
|
+
flexShrink: 0,
|
|
1969
|
+
width: 40,
|
|
1970
|
+
height: 40,
|
|
1971
|
+
borderRadius: 8,
|
|
1972
|
+
background: a.raised,
|
|
1973
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
1974
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
1975
|
+
display: "flex",
|
|
1976
|
+
alignItems: "center",
|
|
1977
|
+
justifyContent: "center",
|
|
1978
|
+
color: a.primary
|
|
1979
|
+
}, children: c }),
|
|
1980
|
+
/* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", gap: 2, minWidth: 0 }, children: [
|
|
1981
|
+
/* @__PURE__ */ i("p", { style: m(13, a.primary, 600), children: l }),
|
|
1982
|
+
/* @__PURE__ */ i("p", { style: m(12, a.secondary), children: d })
|
|
2049
1983
|
] })
|
|
2050
1984
|
] });
|
|
2051
1985
|
}
|
|
2052
|
-
const
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
1986
|
+
const Ar = /* @__PURE__ */ i("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ i("path", { d: "M13 2 3 14h9l-1 8 10-12h-9l1-8z" }) }), kr = /* @__PURE__ */ i("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ i("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }) }), Sr = /* @__PURE__ */ f("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
1987
|
+
/* @__PURE__ */ i("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1988
|
+
/* @__PURE__ */ i("path", { d: "M12 6v6l4 2" })
|
|
1989
|
+
] });
|
|
1990
|
+
function vr() {
|
|
1991
|
+
const c = F((w) => w.navigate), d = xe((w) => w.status) === "connected";
|
|
1992
|
+
return /* @__PURE__ */ f(oe, { children: [
|
|
1993
|
+
/* @__PURE__ */ i("p", { style: { ...Te(32, a.primary, 600), letterSpacing: "-0.02em", lineHeight: 1.3 }, children: "Get your future staking rewards today." }),
|
|
1994
|
+
/* @__PURE__ */ i("p", { style: m(15, a.secondary), children: "The simplest way to access your staking rewards early." }),
|
|
1995
|
+
/* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column" }, children: [
|
|
1996
|
+
/* @__PURE__ */ i(ze, { icon: Ar, title: "Instant Liquidity", body: "Get SOL today for future rewards" }),
|
|
1997
|
+
/* @__PURE__ */ i(ze, { icon: kr, title: "Non-Custodial", body: "Your stake stays with your validator" }),
|
|
1998
|
+
/* @__PURE__ */ i(ze, { icon: Sr, title: "Flexible Terms", body: "Get rewards up to 9 months in advance" })
|
|
1999
|
+
] }),
|
|
2000
|
+
/* @__PURE__ */ i("div", { style: { marginTop: "auto" }, children: /* @__PURE__ */ i(
|
|
2001
|
+
Re,
|
|
2002
|
+
{
|
|
2003
|
+
label: "Get Started",
|
|
2004
|
+
onClick: () => c(d ? "select-position" : "connect-wallet"),
|
|
2005
|
+
purple: !0
|
|
2006
|
+
}
|
|
2007
|
+
) })
|
|
2008
|
+
] });
|
|
2009
|
+
}
|
|
2010
|
+
const st = 1e9;
|
|
2011
|
+
function Br() {
|
|
2012
|
+
const c = F((o) => o.navigate), l = F((o) => o.selectStakeAccount), d = se((o) => o.userStakeAccounts), w = Oe((o) => o.validators), g = d.filter(
|
|
2013
|
+
(o) => {
|
|
2014
|
+
var A;
|
|
2015
|
+
return o.state === "active" && !!o.validatorVoteAccount && ((A = w[o.validatorVoteAccount]) == null ? void 0 : A.widget) === !0;
|
|
2016
|
+
}
|
|
2017
|
+
), x = ae(/* @__PURE__ */ new Set());
|
|
2018
|
+
re(() => {
|
|
2019
|
+
for (const o of d) {
|
|
2020
|
+
if (o.state !== "active" || !o.validatorVoteAccount) continue;
|
|
2021
|
+
const A = ht(o.validatorVoteAccount, w);
|
|
2022
|
+
if (A.ok) continue;
|
|
2023
|
+
const E = `${A.code}:${o.validatorVoteAccount}`;
|
|
2024
|
+
x.current.has(E) || (x.current.add(E), console.warn(
|
|
2025
|
+
`[Pye] ${A.code}: stake ${o.pubkey} on validator ${o.validatorVoteAccount} — ${A.reason}`
|
|
2026
|
+
));
|
|
2027
|
+
}
|
|
2028
|
+
}, [d, w]);
|
|
2029
|
+
const y = (o, A, E, b, B, O) => {
|
|
2030
|
+
l(o, A / st, E, b, B, O), c("choose-amount");
|
|
2056
2031
|
};
|
|
2057
|
-
return /* @__PURE__ */ f(
|
|
2032
|
+
return /* @__PURE__ */ f(oe, { children: [
|
|
2058
2033
|
/* @__PURE__ */ i(
|
|
2059
|
-
|
|
2034
|
+
Ne,
|
|
2060
2035
|
{
|
|
2061
2036
|
title: "Select a position",
|
|
2062
2037
|
subtitle: "We'll sell the future rewards from this position upfront."
|
|
2063
2038
|
}
|
|
2064
2039
|
),
|
|
2065
|
-
/* @__PURE__ */ i("div", { style: { flex: 1, overflowY: "auto", minHeight: 0 }, children: /* @__PURE__ */ i(
|
|
2066
|
-
|
|
2040
|
+
/* @__PURE__ */ i("div", { style: { flex: 1, overflowY: "auto", minHeight: 0 }, children: /* @__PURE__ */ i(kt, { children: g.map((o) => /* @__PURE__ */ i(
|
|
2041
|
+
hr,
|
|
2067
2042
|
{
|
|
2068
2043
|
icon: /* @__PURE__ */ i(
|
|
2069
2044
|
"img",
|
|
2070
2045
|
{
|
|
2071
|
-
src:
|
|
2072
|
-
alt:
|
|
2073
|
-
onError: (
|
|
2074
|
-
const
|
|
2075
|
-
|
|
2046
|
+
src: o.validatorLogo ?? o.validatorIcon,
|
|
2047
|
+
alt: o.validatorName,
|
|
2048
|
+
onError: (A) => {
|
|
2049
|
+
const E = A.currentTarget;
|
|
2050
|
+
E.src !== o.validatorIcon && (E.src = o.validatorIcon);
|
|
2076
2051
|
},
|
|
2077
2052
|
style: {
|
|
2078
2053
|
width: 36,
|
|
@@ -2085,15 +2060,15 @@ function Ar() {
|
|
|
2085
2060
|
}
|
|
2086
2061
|
),
|
|
2087
2062
|
label: "Staked SOL",
|
|
2088
|
-
sub:
|
|
2089
|
-
amount: (
|
|
2090
|
-
onClick: () =>
|
|
2063
|
+
sub: o.validatorName || `${o.pubkey.slice(0, 8)}...`,
|
|
2064
|
+
amount: (o.lamports / st).toFixed(4),
|
|
2065
|
+
onClick: () => y(o.pubkey, o.lamports, o.validatorName, o.validatorIcon, o.validatorVoteAccount, o.validatorAltPubkey)
|
|
2091
2066
|
},
|
|
2092
|
-
|
|
2067
|
+
o.pubkey
|
|
2093
2068
|
)) }) })
|
|
2094
2069
|
] });
|
|
2095
2070
|
}
|
|
2096
|
-
const
|
|
2071
|
+
const Er = `
|
|
2097
2072
|
.pye-amount-slider {
|
|
2098
2073
|
-webkit-appearance: none;
|
|
2099
2074
|
appearance: none;
|
|
@@ -2141,38 +2116,38 @@ const kr = `
|
|
|
2141
2116
|
cursor: pointer;
|
|
2142
2117
|
}
|
|
2143
2118
|
`;
|
|
2144
|
-
function
|
|
2145
|
-
const c =
|
|
2146
|
-
|
|
2147
|
-
|
|
2119
|
+
function Ir() {
|
|
2120
|
+
const c = F((M) => M.navigate), l = F((M) => M.depositAmount), d = F((M) => M.setDepositAmount), w = F((M) => M.selectedStakeAccountBalance), g = F((M) => M.selectedStakeAccountPubkey), x = F((M) => M.selectedValidatorName), y = w, o = parseFloat(l) || 0, A = [0.25, 0.5, 0.75, 1], E = ae(null);
|
|
2121
|
+
re(() => () => {
|
|
2122
|
+
E.current != null && cancelAnimationFrame(E.current);
|
|
2148
2123
|
}, []);
|
|
2149
|
-
const
|
|
2150
|
-
var
|
|
2151
|
-
|
|
2152
|
-
const
|
|
2153
|
-
if (Math.abs(
|
|
2154
|
-
if ((
|
|
2155
|
-
|
|
2124
|
+
const b = (M) => (Math.floor(M * 1e4) / 1e4).toFixed(4), B = (M) => {
|
|
2125
|
+
var le;
|
|
2126
|
+
E.current != null && cancelAnimationFrame(E.current);
|
|
2127
|
+
const Q = o;
|
|
2128
|
+
if (Math.abs(M - Q) < 1e-9) return;
|
|
2129
|
+
if ((le = window.matchMedia) == null ? void 0 : le.call(window, "(prefers-reduced-motion: reduce)").matches) {
|
|
2130
|
+
d(b(M));
|
|
2156
2131
|
return;
|
|
2157
2132
|
}
|
|
2158
|
-
const
|
|
2159
|
-
let
|
|
2160
|
-
const
|
|
2161
|
-
const
|
|
2162
|
-
|
|
2133
|
+
const z = 500, W = performance.now(), K = (ie) => 1 - Math.pow(1 - ie, 3);
|
|
2134
|
+
let Ae = "";
|
|
2135
|
+
const ke = (ie) => {
|
|
2136
|
+
const _ = Math.min(1, (ie - W) / z), we = Q + (M - Q) * K(_), X = b(we);
|
|
2137
|
+
X !== Ae && (Ae = X, d(X)), _ < 1 ? E.current = requestAnimationFrame(ke) : E.current = null;
|
|
2163
2138
|
};
|
|
2164
|
-
|
|
2165
|
-
},
|
|
2166
|
-
let
|
|
2167
|
-
l &&
|
|
2168
|
-
const
|
|
2169
|
-
return /* @__PURE__ */ f(
|
|
2170
|
-
/* @__PURE__ */ i("style", { children:
|
|
2171
|
-
/* @__PURE__ */ i(
|
|
2139
|
+
E.current = requestAnimationFrame(ke);
|
|
2140
|
+
}, O = g === "liquid-sol", k = 0.01;
|
|
2141
|
+
let v = null, D = null;
|
|
2142
|
+
l && o <= 0 && (v = "Amount must be greater than 0"), l && o > y && (v = `Maximum available is ${y} SOL`), !v && O && o > 0 && o >= y - k && (D = "This leaves very little SOL for transaction fees");
|
|
2143
|
+
const L = !!l && !v && o > 0, p = y > 0 ? y : 1, I = Math.min(o, p), T = y > 0 ? Math.min(100, I / y * 100) : 0, C = Math.max(1e-4, y / 1e3), R = ne(y), Y = x ? `${x} balance detected: ${R} SOL.` : `Balance detected: ${R} SOL.`;
|
|
2144
|
+
return /* @__PURE__ */ f(oe, { children: [
|
|
2145
|
+
/* @__PURE__ */ i("style", { children: Er }),
|
|
2146
|
+
/* @__PURE__ */ i(Ne, { title: "How much of your stake do you want to sell rewards for?", subtitle: Y }),
|
|
2172
2147
|
/* @__PURE__ */ f("div", { style: {
|
|
2173
|
-
background:
|
|
2174
|
-
borderTop: `1px solid ${
|
|
2175
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
2148
|
+
background: a.raised,
|
|
2149
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
2150
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
2176
2151
|
borderRadius: 8,
|
|
2177
2152
|
padding: 16,
|
|
2178
2153
|
marginTop: 8,
|
|
@@ -2184,18 +2159,18 @@ function Sr() {
|
|
|
2184
2159
|
display: "flex",
|
|
2185
2160
|
alignItems: "center",
|
|
2186
2161
|
justifyContent: "space-between",
|
|
2187
|
-
background:
|
|
2162
|
+
background: a.bg,
|
|
2188
2163
|
borderRadius: 8,
|
|
2189
2164
|
padding: "8px 16px",
|
|
2190
|
-
borderTop: `1px solid ${
|
|
2191
|
-
boxShadow:
|
|
2165
|
+
borderTop: `1px solid ${v ? a.red : a.shadow}`,
|
|
2166
|
+
boxShadow: v ? `inset 0 -1px 0 ${a.highlight}, 0 0 0 1px ${a.red}` : `inset 0 -1px 0 ${a.highlight}`
|
|
2192
2167
|
}, children: [
|
|
2193
2168
|
/* @__PURE__ */ i(
|
|
2194
2169
|
"input",
|
|
2195
2170
|
{
|
|
2196
2171
|
type: "number",
|
|
2197
2172
|
value: l,
|
|
2198
|
-
onChange: (
|
|
2173
|
+
onChange: (M) => d(M.target.value),
|
|
2199
2174
|
min: 1e-4,
|
|
2200
2175
|
max: y,
|
|
2201
2176
|
placeholder: "0",
|
|
@@ -2203,13 +2178,13 @@ function Sr() {
|
|
|
2203
2178
|
background: "none",
|
|
2204
2179
|
border: "none",
|
|
2205
2180
|
outline: "none",
|
|
2206
|
-
...
|
|
2181
|
+
...m(24, a.green, 500),
|
|
2207
2182
|
width: "100%",
|
|
2208
2183
|
fontVariantNumeric: "tabular-nums"
|
|
2209
2184
|
}
|
|
2210
2185
|
}
|
|
2211
2186
|
),
|
|
2212
|
-
/* @__PURE__ */ i("span", { style:
|
|
2187
|
+
/* @__PURE__ */ i("span", { style: m(15, a.secondary), children: "SOL" })
|
|
2213
2188
|
] }),
|
|
2214
2189
|
/* @__PURE__ */ i(
|
|
2215
2190
|
"input",
|
|
@@ -2217,63 +2192,63 @@ function Sr() {
|
|
|
2217
2192
|
type: "range",
|
|
2218
2193
|
className: "pye-amount-slider",
|
|
2219
2194
|
min: 0,
|
|
2220
|
-
max:
|
|
2221
|
-
step:
|
|
2222
|
-
value:
|
|
2223
|
-
onChange: (
|
|
2224
|
-
const
|
|
2225
|
-
|
|
2195
|
+
max: p,
|
|
2196
|
+
step: C,
|
|
2197
|
+
value: I,
|
|
2198
|
+
onChange: (M) => {
|
|
2199
|
+
const Q = b(parseFloat(M.target.value));
|
|
2200
|
+
Q !== l && d(Q);
|
|
2226
2201
|
},
|
|
2227
|
-
style: { "--pye-slider-pct": `${
|
|
2202
|
+
style: { "--pye-slider-pct": `${T}%` }
|
|
2228
2203
|
}
|
|
2229
2204
|
),
|
|
2230
|
-
/* @__PURE__ */ i("div", { style: { display: "flex", gap: 8 }, children:
|
|
2205
|
+
/* @__PURE__ */ i("div", { style: { display: "flex", gap: 8 }, children: A.map((M) => /* @__PURE__ */ f(
|
|
2231
2206
|
"button",
|
|
2232
2207
|
{
|
|
2233
2208
|
type: "button",
|
|
2234
2209
|
className: "pye-pill",
|
|
2235
2210
|
onClick: () => {
|
|
2236
|
-
const
|
|
2237
|
-
B(
|
|
2211
|
+
const Q = M === 1 ? O ? Math.max(0, y - k) : y : y * M;
|
|
2212
|
+
B(Q);
|
|
2238
2213
|
},
|
|
2239
2214
|
style: {
|
|
2240
2215
|
flex: 1,
|
|
2241
2216
|
borderRadius: 8,
|
|
2242
2217
|
border: "none",
|
|
2243
|
-
borderTop: `1px solid ${
|
|
2218
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
2244
2219
|
cursor: "pointer",
|
|
2245
|
-
background:
|
|
2246
|
-
...
|
|
2247
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
2220
|
+
background: a.surface,
|
|
2221
|
+
...m(14, a.secondary),
|
|
2222
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
2248
2223
|
padding: "8px 4px",
|
|
2249
2224
|
transition: "background 0.1s"
|
|
2250
2225
|
},
|
|
2251
2226
|
children: [
|
|
2252
|
-
|
|
2227
|
+
M * 100,
|
|
2253
2228
|
"%"
|
|
2254
2229
|
]
|
|
2255
2230
|
},
|
|
2256
|
-
|
|
2231
|
+
M
|
|
2257
2232
|
)) })
|
|
2258
2233
|
] }),
|
|
2259
|
-
/* @__PURE__ */ i(
|
|
2260
|
-
!
|
|
2261
|
-
/* @__PURE__ */ i(
|
|
2234
|
+
/* @__PURE__ */ i(fr, { message: v ?? "" }),
|
|
2235
|
+
!v && D && /* @__PURE__ */ i("p", { style: { ...m(14, a.red), marginTop: 4 }, children: D }),
|
|
2236
|
+
/* @__PURE__ */ i(Ce, {}),
|
|
2262
2237
|
/* @__PURE__ */ i(
|
|
2263
|
-
|
|
2238
|
+
Re,
|
|
2264
2239
|
{
|
|
2265
2240
|
label: "Continue",
|
|
2266
2241
|
onClick: () => c("choose-duration"),
|
|
2267
|
-
disabled: !
|
|
2242
|
+
disabled: !L,
|
|
2268
2243
|
purple: !0
|
|
2269
2244
|
}
|
|
2270
2245
|
)
|
|
2271
2246
|
] });
|
|
2272
2247
|
}
|
|
2273
|
-
const
|
|
2274
|
-
function
|
|
2275
|
-
var
|
|
2276
|
-
const
|
|
2248
|
+
const Cr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
2249
|
+
function me({ value: c, style: l, duration: d = 1200, stagger: w = 80 }) {
|
|
2250
|
+
var o;
|
|
2251
|
+
const g = typeof window < "u" && ((o = window.matchMedia) == null ? void 0 : o.call(window, "(prefers-reduced-motion: reduce)").matches), x = [...c];
|
|
2277
2252
|
let y = 0;
|
|
2278
2253
|
return /* @__PURE__ */ i(
|
|
2279
2254
|
"span",
|
|
@@ -2285,27 +2260,27 @@ function ye({ value: c, style: l, duration: u = 1200, stagger: w = 80 }) {
|
|
|
2285
2260
|
whiteSpace: "pre",
|
|
2286
2261
|
...l
|
|
2287
2262
|
},
|
|
2288
|
-
children:
|
|
2289
|
-
if (!/\d/.test(
|
|
2290
|
-
return /* @__PURE__ */ i("span", { children:
|
|
2291
|
-
const
|
|
2263
|
+
children: x.map((A, E) => {
|
|
2264
|
+
if (!/\d/.test(A))
|
|
2265
|
+
return /* @__PURE__ */ i("span", { children: A }, E);
|
|
2266
|
+
const b = g ? 0 : y * w;
|
|
2292
2267
|
return y++, /* @__PURE__ */ i(
|
|
2293
|
-
|
|
2268
|
+
Rr,
|
|
2294
2269
|
{
|
|
2295
|
-
digit: Number(
|
|
2296
|
-
delay:
|
|
2297
|
-
duration:
|
|
2270
|
+
digit: Number(A),
|
|
2271
|
+
delay: b,
|
|
2272
|
+
duration: g ? 0 : d
|
|
2298
2273
|
},
|
|
2299
|
-
|
|
2274
|
+
E
|
|
2300
2275
|
);
|
|
2301
2276
|
})
|
|
2302
2277
|
}
|
|
2303
2278
|
);
|
|
2304
2279
|
}
|
|
2305
|
-
function
|
|
2306
|
-
const [w,
|
|
2307
|
-
return
|
|
2308
|
-
|
|
2280
|
+
function Rr({ digit: c, delay: l, duration: d }) {
|
|
2281
|
+
const [w, g] = We(0), x = ae(null);
|
|
2282
|
+
return re(() => (x.current = requestAnimationFrame(() => g(c)), () => {
|
|
2283
|
+
x.current != null && cancelAnimationFrame(x.current);
|
|
2309
2284
|
}), [c]), /* @__PURE__ */ i(
|
|
2310
2285
|
"span",
|
|
2311
2286
|
{
|
|
@@ -2324,71 +2299,129 @@ function Br({ digit: c, delay: l, duration: u }) {
|
|
|
2324
2299
|
display: "flex",
|
|
2325
2300
|
flexDirection: "column",
|
|
2326
2301
|
transform: `translateY(-${w}em)`,
|
|
2327
|
-
transition:
|
|
2302
|
+
transition: d === 0 ? "none" : `transform ${d}ms cubic-bezier(0.2, 0.9, 0.2, 1) ${l}ms`,
|
|
2328
2303
|
willChange: "transform"
|
|
2329
2304
|
},
|
|
2330
|
-
children:
|
|
2305
|
+
children: Cr.map((y) => /* @__PURE__ */ i("span", { style: { height: "1em", lineHeight: 1 }, children: y }, y))
|
|
2331
2306
|
}
|
|
2332
2307
|
)
|
|
2333
2308
|
}
|
|
2334
2309
|
);
|
|
2335
2310
|
}
|
|
2336
|
-
const
|
|
2311
|
+
const ct = {
|
|
2312
|
+
[ge.VALIDATOR_NOT_CONFIGURED]: "Validator not supported",
|
|
2313
|
+
[ge.VALIDATOR_WIDGET_DISABLED]: "Validator not enabled",
|
|
2314
|
+
[ge.VALIDATOR_ALT_MISSING]: "Setup pending",
|
|
2315
|
+
[ge.BOND_MISSING]: "Not available",
|
|
2316
|
+
[ge.BOND_NOT_STANDARD]: "Setup pending",
|
|
2317
|
+
[ge.MARKET_MISSING]: "Market not open",
|
|
2318
|
+
[ge.LIQUIDITY_INSUFFICIENT]: "Insufficient liquidity"
|
|
2319
|
+
}, Fr = {
|
|
2337
2320
|
q22026: { label: "30 Jun 2026", pts: null },
|
|
2338
2321
|
q32026: { label: "30 Sep 2026", pts: "2x points" },
|
|
2339
2322
|
q42026: { label: "31 Dec 2026", pts: "3x points" },
|
|
2340
2323
|
q12026: { label: "31 Mar 2026", pts: null }
|
|
2341
|
-
},
|
|
2342
|
-
function
|
|
2324
|
+
}, Lr = ["q12026", "q22026", "q32026", "q42026"], Mr = 2880 * 60;
|
|
2325
|
+
function Dr() {
|
|
2343
2326
|
const c = Date.now() / 1e3;
|
|
2344
|
-
return
|
|
2327
|
+
return Lr.filter((l) => Number(Ee[l].maturity_timestamp) - c > Mr);
|
|
2345
2328
|
}
|
|
2346
|
-
function
|
|
2347
|
-
const { connection: c } =
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2329
|
+
function Tr() {
|
|
2330
|
+
const { connection: c } = $e(), l = F((p) => p.navigate), d = F((p) => p.selectedMaturityId), w = F((p) => p.setSelectedMaturity), g = F((p) => p.depositAmount), x = F((p) => p.selectedValidatorVoteAccount), y = bt((p) => p.markets), o = Oe((p) => p.validators), A = je((p) => p.bonds), [E, b] = We(null);
|
|
2331
|
+
re(() => {
|
|
2332
|
+
Ze(c).then(b).catch(() => {
|
|
2333
|
+
b(Date.now() / 1e3);
|
|
2351
2334
|
});
|
|
2352
2335
|
}, [c]);
|
|
2353
|
-
const
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2336
|
+
const B = Pe(() => {
|
|
2337
|
+
const p = Dr();
|
|
2338
|
+
return x ? p.filter(
|
|
2339
|
+
(I) => !!y[`${x}-${I}-RT`]
|
|
2340
|
+
) : [];
|
|
2341
|
+
}, [x, y]);
|
|
2342
|
+
re(() => {
|
|
2343
|
+
if (B.length === 0) {
|
|
2344
|
+
d && w(null);
|
|
2345
|
+
return;
|
|
2346
|
+
}
|
|
2347
|
+
(!d || !B.includes(d)) && w(B[0]);
|
|
2348
|
+
}, [d, w, B]);
|
|
2349
|
+
const O = parseFloat(g) || 0, k = E ?? Date.now() / 1e3, v = B.map((p) => {
|
|
2350
|
+
var Q, Z;
|
|
2351
|
+
const I = Fr[p] ?? {
|
|
2352
|
+
label: ((Q = Ee[p]) == null ? void 0 : Q.human_readable) ?? p,
|
|
2368
2353
|
pts: null
|
|
2369
|
-
},
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2354
|
+
}, T = Ee[p], C = x ? ft({
|
|
2355
|
+
validatorVoteAccount: x,
|
|
2356
|
+
maturityId: p,
|
|
2357
|
+
amountSol: O,
|
|
2358
|
+
nowTs: k,
|
|
2359
|
+
validators: o,
|
|
2360
|
+
bonds: A,
|
|
2361
|
+
markets: y
|
|
2362
|
+
}) : {
|
|
2363
|
+
ok: !1,
|
|
2364
|
+
code: ge.VALIDATOR_NOT_CONFIGURED,
|
|
2365
|
+
reason: "No validator selected."
|
|
2366
|
+
};
|
|
2367
|
+
let R = 0;
|
|
2368
|
+
if (C.ok) {
|
|
2369
|
+
const z = y[`${x}-${p}-RT`], W = Xe({
|
|
2370
|
+
amountSol: O,
|
|
2371
|
+
maturity: T,
|
|
2372
|
+
nowTs: k
|
|
2373
|
+
}), K = (Z = z == null ? void 0 : z.bids) != null && Z.length ? yt(z.bids, W) : null;
|
|
2374
|
+
R = ((K == null ? void 0 : K.expectedFillPrice) ?? 0) * W;
|
|
2375
|
+
}
|
|
2376
|
+
const Y = gt(R), M = Math.max(
|
|
2377
|
+
0,
|
|
2378
|
+
Math.ceil((Number(T.maturity_timestamp) - k) / 86400)
|
|
2379
|
+
);
|
|
2380
|
+
return { matId: p, ...I, status: C, grossYield: R, netYield: Y, daysToMaturity: M };
|
|
2381
|
+
}), D = ae(/* @__PURE__ */ new Set());
|
|
2382
|
+
re(() => {
|
|
2383
|
+
if (x)
|
|
2384
|
+
for (const p of v) {
|
|
2385
|
+
if (p.status.ok) continue;
|
|
2386
|
+
const I = `${p.status.code}:${x}:${p.matId}`;
|
|
2387
|
+
D.current.has(I) || (D.current.add(I), console.warn(
|
|
2388
|
+
`[Pye] ${p.status.code}: validator ${x}, maturity ${p.matId} — ${p.status.reason}`
|
|
2389
|
+
));
|
|
2390
|
+
}
|
|
2391
|
+
}, [v, x]);
|
|
2392
|
+
const L = v.find((p) => p.matId === d);
|
|
2393
|
+
return /* @__PURE__ */ f(oe, { children: [
|
|
2377
2394
|
/* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
2378
2395
|
/* @__PURE__ */ f("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
|
|
2379
|
-
/* @__PURE__ */ i("p", { style:
|
|
2380
|
-
/* @__PURE__ */ i(
|
|
2396
|
+
/* @__PURE__ */ i("p", { style: m(18, a.primary, 500), children: "Choose a staking duration" }),
|
|
2397
|
+
/* @__PURE__ */ i(be, { position: "below", text: "Lock your stake until the chosen date. All staking rewards for the period are sold to you upfront today. Your full SOL stake is returned at maturity." })
|
|
2381
2398
|
] }),
|
|
2382
|
-
/* @__PURE__ */ i("p", { style:
|
|
2399
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "All rewards for the period are paid to you today. Your stake is returned in full at the end." })
|
|
2383
2400
|
] }),
|
|
2384
2401
|
/* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
2385
|
-
/* @__PURE__ */
|
|
2386
|
-
|
|
2402
|
+
v.length === 0 && /* @__PURE__ */ f(
|
|
2403
|
+
"div",
|
|
2404
|
+
{
|
|
2405
|
+
style: {
|
|
2406
|
+
background: a.lowered,
|
|
2407
|
+
borderRadius: 8,
|
|
2408
|
+
padding: 12,
|
|
2409
|
+
borderTop: `1px solid ${a.shadow}`,
|
|
2410
|
+
boxShadow: `inset 0 -1px 0 ${a.highlight}`
|
|
2411
|
+
},
|
|
2412
|
+
children: [
|
|
2413
|
+
/* @__PURE__ */ i("p", { style: m(14, a.primary, 500), children: "No durations available" }),
|
|
2414
|
+
/* @__PURE__ */ i("p", { style: m(13, a.secondary), children: "There aren't any active markets for this validator yet. Check back soon." })
|
|
2415
|
+
]
|
|
2416
|
+
}
|
|
2417
|
+
),
|
|
2418
|
+
/* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: v.map((p) => {
|
|
2419
|
+
const I = d === p.matId, T = p.status.ok ? null : p.status.code, C = T !== null, R = C ? a.muted : I ? a.primary : a.secondary;
|
|
2387
2420
|
return /* @__PURE__ */ f(
|
|
2388
2421
|
"div",
|
|
2389
2422
|
{
|
|
2390
|
-
className:
|
|
2391
|
-
onClick: () => w(
|
|
2423
|
+
className: I ? "pye-pill pye-pill--selected" : "pye-pill",
|
|
2424
|
+
onClick: () => w(p.matId),
|
|
2392
2425
|
style: {
|
|
2393
2426
|
width: "100%",
|
|
2394
2427
|
minHeight: 48,
|
|
@@ -2398,346 +2431,386 @@ function Fr() {
|
|
|
2398
2431
|
padding: "10px 16px",
|
|
2399
2432
|
borderRadius: 8,
|
|
2400
2433
|
cursor: "pointer",
|
|
2401
|
-
background:
|
|
2402
|
-
borderTop: `1px solid ${
|
|
2403
|
-
boxShadow:
|
|
2404
|
-
transition: "background 0.1s"
|
|
2434
|
+
background: I ? a.bg : a.raised,
|
|
2435
|
+
borderTop: `1px solid ${I ? a.shadow : a.highlight}`,
|
|
2436
|
+
boxShadow: I ? `inset 0 -1px 0 ${a.highlight}` : `inset 0 -1px 0 ${a.shadow}`,
|
|
2437
|
+
transition: "background 0.1s",
|
|
2438
|
+
opacity: C ? 0.7 : 1
|
|
2405
2439
|
},
|
|
2406
2440
|
children: [
|
|
2407
|
-
/* @__PURE__ */
|
|
2408
|
-
|
|
2441
|
+
/* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
2442
|
+
/* @__PURE__ */ i("span", { style: m(15, R, I ? 500 : 400), children: p.label }),
|
|
2443
|
+
/* @__PURE__ */ f("span", { style: m(12, a.muted), children: [
|
|
2444
|
+
p.daysToMaturity,
|
|
2445
|
+
" ",
|
|
2446
|
+
p.daysToMaturity === 1 ? "day" : "days"
|
|
2447
|
+
] })
|
|
2448
|
+
] }),
|
|
2449
|
+
T ? /* @__PURE__ */ i(
|
|
2450
|
+
"span",
|
|
2451
|
+
{
|
|
2452
|
+
style: {
|
|
2453
|
+
...m(12, a.muted),
|
|
2454
|
+
padding: "2px 8px",
|
|
2455
|
+
borderRadius: 4,
|
|
2456
|
+
background: a.lowered,
|
|
2457
|
+
flexShrink: 0
|
|
2458
|
+
},
|
|
2459
|
+
children: ct[T] ?? "Not available"
|
|
2460
|
+
}
|
|
2461
|
+
) : /* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-end", gap: 2 }, children: [
|
|
2462
|
+
/* @__PURE__ */ i(
|
|
2463
|
+
"span",
|
|
2464
|
+
{
|
|
2465
|
+
style: {
|
|
2466
|
+
...m(15, a.green, 500),
|
|
2467
|
+
fontVariantNumeric: "lining-nums tabular-nums"
|
|
2468
|
+
},
|
|
2469
|
+
children: p.netYield < 1e-4 ? "< 0.0001 SOL" : `+${ne(p.netYield, 3)} SOL`
|
|
2470
|
+
}
|
|
2471
|
+
),
|
|
2472
|
+
lr
|
|
2473
|
+
] })
|
|
2409
2474
|
]
|
|
2410
2475
|
},
|
|
2411
|
-
|
|
2476
|
+
p.matId
|
|
2412
2477
|
);
|
|
2413
2478
|
}) }),
|
|
2414
|
-
|
|
2479
|
+
L && /* @__PURE__ */ f(
|
|
2415
2480
|
"div",
|
|
2416
2481
|
{
|
|
2417
2482
|
style: {
|
|
2418
|
-
background:
|
|
2483
|
+
background: a.lowered,
|
|
2419
2484
|
borderRadius: 8,
|
|
2420
2485
|
padding: 12,
|
|
2421
|
-
borderTop: `1px solid ${
|
|
2422
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
2486
|
+
borderTop: `1px solid ${a.shadow}`,
|
|
2487
|
+
boxShadow: `inset 0 -1px 0 ${a.highlight}`,
|
|
2423
2488
|
display: "flex",
|
|
2424
2489
|
flexDirection: "column",
|
|
2425
2490
|
gap: 4
|
|
2426
2491
|
},
|
|
2427
2492
|
children: [
|
|
2428
|
-
/* @__PURE__ */ i("p", { style:
|
|
2429
|
-
/* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "baseline", gap: 8 }, children:
|
|
2493
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "You receive today" }),
|
|
2494
|
+
L.status.ok ? /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "baseline", gap: 8 }, children: L.netYield < 1e-4 ? /* @__PURE__ */ i(
|
|
2430
2495
|
"p",
|
|
2431
2496
|
{
|
|
2432
2497
|
style: {
|
|
2433
|
-
...
|
|
2498
|
+
...Te(32, a.green),
|
|
2434
2499
|
lineHeight: 1.2,
|
|
2435
2500
|
fontVariantNumeric: "lining-nums tabular-nums"
|
|
2436
2501
|
},
|
|
2437
2502
|
children: "< 0.0001 SOL"
|
|
2438
2503
|
}
|
|
2439
2504
|
) : /* @__PURE__ */ i(
|
|
2440
|
-
|
|
2505
|
+
me,
|
|
2441
2506
|
{
|
|
2442
|
-
value: `+${
|
|
2443
|
-
style: { ...
|
|
2507
|
+
value: `+${ne(L.netYield, 3)} SOL`,
|
|
2508
|
+
style: { ...Te(32, a.green), lineHeight: 1.2 }
|
|
2444
2509
|
}
|
|
2445
|
-
) }),
|
|
2446
|
-
|
|
2447
|
-
"
|
|
2448
|
-
|
|
2449
|
-
"% Pye protocol fee."
|
|
2510
|
+
) }) : /* @__PURE__ */ f(oe, { children: [
|
|
2511
|
+
/* @__PURE__ */ i("p", { style: { ...Te(22, a.muted), lineHeight: 1.2 }, children: ct[L.status.code] ?? "Not available" }),
|
|
2512
|
+
/* @__PURE__ */ i("p", { style: m(12, a.muted), children: L.status.reason }),
|
|
2513
|
+
/* @__PURE__ */ i("p", { style: { ...m(10, a.muted), letterSpacing: "0.02em", marginTop: 4 }, children: L.status.code })
|
|
2450
2514
|
] })
|
|
2451
2515
|
]
|
|
2452
2516
|
}
|
|
2453
2517
|
)
|
|
2454
2518
|
] }),
|
|
2455
|
-
/* @__PURE__ */ i(xe, {}),
|
|
2456
2519
|
/* @__PURE__ */ i(
|
|
2457
|
-
|
|
2520
|
+
Re,
|
|
2458
2521
|
{
|
|
2459
2522
|
label: "Review",
|
|
2460
2523
|
onClick: () => l("review-quote"),
|
|
2461
|
-
disabled: !
|
|
2524
|
+
disabled: !d || !(L != null && L.status.ok),
|
|
2462
2525
|
purple: !0
|
|
2463
2526
|
}
|
|
2464
2527
|
)
|
|
2465
2528
|
] });
|
|
2466
2529
|
}
|
|
2467
|
-
function
|
|
2530
|
+
function Pr({
|
|
2468
2531
|
value: c,
|
|
2469
2532
|
onChange: l
|
|
2470
2533
|
}) {
|
|
2471
|
-
const
|
|
2472
|
-
const B =
|
|
2473
|
-
return Math.round(
|
|
2474
|
-
},
|
|
2475
|
-
|
|
2476
|
-
},
|
|
2477
|
-
|
|
2478
|
-
},
|
|
2534
|
+
const d = ae(null), w = 0, g = 5, x = (c - w) / (g - w) * 100, y = (b) => {
|
|
2535
|
+
const B = d.current.getBoundingClientRect(), O = Math.max(0, Math.min(b - B.left, B.width)), k = w + O / B.width * (g - w);
|
|
2536
|
+
return Math.round(k * 100) / 100;
|
|
2537
|
+
}, o = (b) => {
|
|
2538
|
+
b.preventDefault(), d.current.setPointerCapture(b.pointerId), l(y(b.clientX));
|
|
2539
|
+
}, A = (b) => {
|
|
2540
|
+
b.buttons !== 0 && l(y(b.clientX));
|
|
2541
|
+
}, E = c > 3 ? "#D93B3B" : "#0d9c5e";
|
|
2479
2542
|
return /* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
2480
2543
|
/* @__PURE__ */ f(
|
|
2481
2544
|
"div",
|
|
2482
2545
|
{
|
|
2483
|
-
ref:
|
|
2484
|
-
onPointerDown:
|
|
2485
|
-
onPointerMove:
|
|
2546
|
+
ref: d,
|
|
2547
|
+
onPointerDown: o,
|
|
2548
|
+
onPointerMove: A,
|
|
2486
2549
|
style: { position: "relative", height: 12, display: "flex", alignItems: "center", cursor: "pointer", userSelect: "none" },
|
|
2487
2550
|
children: [
|
|
2488
2551
|
/* @__PURE__ */ i("div", { style: {
|
|
2489
2552
|
position: "absolute",
|
|
2490
2553
|
left: 0,
|
|
2491
|
-
width: `${
|
|
2554
|
+
width: `${x}%`,
|
|
2492
2555
|
height: 8,
|
|
2493
|
-
background:
|
|
2494
|
-
borderRadius:
|
|
2556
|
+
background: E,
|
|
2557
|
+
borderRadius: x > 98 ? "999px" : "999px 0 0 999px",
|
|
2495
2558
|
borderTop: "1px solid rgba(255,255,255,0.3)",
|
|
2496
2559
|
boxShadow: "inset 0 -1px 0 rgba(0,0,0,0.2)",
|
|
2497
|
-
minWidth:
|
|
2560
|
+
minWidth: x > 0 ? 4 : 0
|
|
2498
2561
|
} }),
|
|
2499
2562
|
/* @__PURE__ */ i("div", { style: {
|
|
2500
2563
|
position: "absolute",
|
|
2501
|
-
left: `${
|
|
2564
|
+
left: `${x}%`,
|
|
2502
2565
|
right: 0,
|
|
2503
2566
|
height: 8,
|
|
2504
|
-
background:
|
|
2505
|
-
borderRadius:
|
|
2506
|
-
borderTop: `1px solid ${
|
|
2507
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
2567
|
+
background: a.bg,
|
|
2568
|
+
borderRadius: x < 2 ? "999px" : "0 999px 999px 0",
|
|
2569
|
+
borderTop: `1px solid ${a.shadow}`,
|
|
2570
|
+
boxShadow: `inset 0 -1px 0 ${a.highlight}`
|
|
2508
2571
|
} }),
|
|
2509
2572
|
/* @__PURE__ */ i("div", { style: {
|
|
2510
2573
|
position: "absolute",
|
|
2511
|
-
left: `calc(${
|
|
2574
|
+
left: `calc(${x}% - 8px)`,
|
|
2512
2575
|
width: 16,
|
|
2513
2576
|
height: 16,
|
|
2514
2577
|
borderRadius: "50%",
|
|
2515
2578
|
background: "#fdfcfc",
|
|
2516
|
-
borderTop: `1px solid ${
|
|
2517
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
2579
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
2580
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
2518
2581
|
zIndex: 1,
|
|
2519
2582
|
flexShrink: 0
|
|
2520
2583
|
} })
|
|
2521
2584
|
]
|
|
2522
2585
|
}
|
|
2523
2586
|
),
|
|
2524
|
-
/* @__PURE__ */ i("div", { style: { display: "flex", justifyContent: "space-between" }, children: ["0%", "1%", "2%", "3%", "4%", "5%"].map((
|
|
2525
|
-
...
|
|
2587
|
+
/* @__PURE__ */ i("div", { style: { display: "flex", justifyContent: "space-between" }, children: ["0%", "1%", "2%", "3%", "4%", "5%"].map((b) => /* @__PURE__ */ i("span", { style: {
|
|
2588
|
+
...m(14, a.secondary),
|
|
2526
2589
|
textTransform: "uppercase",
|
|
2527
2590
|
letterSpacing: "0.04em",
|
|
2528
2591
|
width: 24,
|
|
2529
|
-
textAlign:
|
|
2530
|
-
}, children:
|
|
2592
|
+
textAlign: b === "0%" ? "left" : b === "5%" ? "right" : "center"
|
|
2593
|
+
}, children: b }, b)) })
|
|
2531
2594
|
] });
|
|
2532
2595
|
}
|
|
2533
|
-
function
|
|
2534
|
-
var
|
|
2535
|
-
const l =
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
const u = l.pop(), w = l.join("-"), p = (a = Ut()[w]) == null ? void 0 : a[u];
|
|
2539
|
-
if (!p) return null;
|
|
2540
|
-
const y = Xe[w];
|
|
2541
|
-
return {
|
|
2542
|
-
validatorId: w,
|
|
2543
|
-
maturityId: u,
|
|
2544
|
-
bondPubkey: p.pubkey,
|
|
2545
|
-
principalTokenMint: p.pt_address,
|
|
2546
|
-
yieldTokenMint: p.rt_address,
|
|
2547
|
-
voteAccount: (y == null ? void 0 : y.vote_account) ?? ""
|
|
2548
|
-
};
|
|
2549
|
-
}
|
|
2550
|
-
function Dr() {
|
|
2551
|
-
var Ue, Ee;
|
|
2552
|
-
const { connection: c } = Ze(), l = Ye(), [u, w] = We(null);
|
|
2553
|
-
ae(() => {
|
|
2554
|
-
Ke(c).then(w).catch(() => {
|
|
2596
|
+
function Or() {
|
|
2597
|
+
var Ye, Se;
|
|
2598
|
+
const { connection: c } = $e(), l = Ve(), [d, w] = We(null);
|
|
2599
|
+
re(() => {
|
|
2600
|
+
Ze(c).then(w).catch(() => {
|
|
2555
2601
|
w(Date.now() / 1e3);
|
|
2556
2602
|
});
|
|
2557
2603
|
}, [c]);
|
|
2558
|
-
const
|
|
2604
|
+
const g = F((S) => S.navigate), x = F((S) => S.txStatus), y = F((S) => S.txStep), o = F((S) => S.txError), A = F((S) => S.setTxStatus), E = F((S) => S.setTxStep), b = F((S) => S.setSellAmountSol), B = F((S) => S.advancedOpen), O = F((S) => S.setAdvancedOpen), k = F((S) => S.slippageBps), v = F((S) => S.setSlippageBps), D = F((S) => S.depositAmount), L = F((S) => S.selectedMaturityId), p = F((S) => S.selectedStakeAccountPubkey), I = F((S) => S.selectedStakeAccountBalance), T = F((S) => S.selectedValidatorAltPubkey), C = bt((S) => S.markets), R = je((S) => S.bonds), Y = Oe((S) => S.validators), M = se((S) => S.userStakeAccounts), Q = se((S) => S.setWalletBalances), Z = se((S) => S.setUserStakeAccounts), z = xe((S) => S.setBalanceLamports), W = parseFloat(D) || 0, K = L ? Ee[L] : null, Ae = (K == null ? void 0 : K.human_readable) ?? "Sep 30, 2026";
|
|
2559
2605
|
K && { JUN: "Q3", SEP: "Q4", DEC: "Q1", MAR: "Q2" }[K.month];
|
|
2560
|
-
const
|
|
2561
|
-
amountSol:
|
|
2606
|
+
const le = p !== "liquid-sol" ? M.find((S) => S.pubkey === p) : null, ie = le == null ? void 0 : le.validatorVoteAccount, _ = ie && L ? R[`${ie}:${L}`] ?? null : null, we = L ? _ && ie ? `${ie}-${L}-RT` : Object.keys(C).find((S) => S.endsWith(`-${L}-RT`)) : null, X = we ? C[we] ?? null : null, Ge = d ?? Date.now() / 1e3, j = K ? Xe({
|
|
2607
|
+
amountSol: W,
|
|
2562
2608
|
maturity: K,
|
|
2563
|
-
nowTs:
|
|
2564
|
-
}) : 0,
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2609
|
+
nowTs: Ge
|
|
2610
|
+
}) : 0, U = (Ye = X == null ? void 0 : X.bids) != null && Ye.length ? yt(X.bids, j) : null, Fe = (U == null ? void 0 : U.isSufficientLiquidity) ?? !1, Le = (U == null ? void 0 : U.slippageBps) ?? 0, ce = (U == null ? void 0 : U.expectedFillPrice) != null ? U.expectedFillPrice * j : 0, de = gt(ce), Ue = ce - de, ue = (Nt / 100).toFixed(2), he = k / 100, Me = x === "loading", Je = p === "liquid-sol" || p !== null && M.some((S) => S.pubkey === p), He = !!p && !!L && !Me && Fe && Je, fe = (() => {
|
|
2611
|
+
if (_) return null;
|
|
2612
|
+
const S = we ?? (L ? Object.keys(C).find((te) => te.endsWith(`-${L}-PT`)) : null);
|
|
2613
|
+
if (!S) return null;
|
|
2614
|
+
const ee = S.split("-");
|
|
2615
|
+
ee.pop();
|
|
2616
|
+
const pe = ee.pop(), $ = ee.join("-"), N = R[`${$}:${pe}`];
|
|
2617
|
+
return N ? {
|
|
2618
|
+
bondPubkey: N.pubkey,
|
|
2619
|
+
principalTokenMint: N.pt_mint,
|
|
2620
|
+
yieldTokenMint: N.rt_mint,
|
|
2621
|
+
voteAccount: $
|
|
2622
|
+
} : null;
|
|
2623
|
+
})(), q = _ ? {
|
|
2624
|
+
bondPubkey: _.pubkey,
|
|
2625
|
+
principalTokenMint: _.pt_mint,
|
|
2626
|
+
yieldTokenMint: _.rt_mint,
|
|
2627
|
+
voteAccount: ie
|
|
2628
|
+
} : fe, Ke = pt(async () => {
|
|
2629
|
+
if (!p || !L) return;
|
|
2630
|
+
if (!q) throw new Error("Could not resolve bond data for this market");
|
|
2631
|
+
if (!X) throw new Error("No RT market found for this maturity");
|
|
2575
2632
|
if (!K) throw new Error("No maturity selected");
|
|
2576
|
-
|
|
2577
|
-
|
|
2633
|
+
const S = ft({
|
|
2634
|
+
validatorVoteAccount: q.voteAccount,
|
|
2635
|
+
maturityId: L,
|
|
2636
|
+
amountSol: W,
|
|
2637
|
+
nowTs: d ?? Date.now() / 1e3,
|
|
2638
|
+
validators: Y,
|
|
2639
|
+
bonds: R,
|
|
2640
|
+
markets: C
|
|
2641
|
+
});
|
|
2642
|
+
if (!S.ok)
|
|
2643
|
+
throw console.error(
|
|
2644
|
+
`[Pye] ${S.code}: validator ${q.voteAccount}, maturity ${L} — ${S.reason}`
|
|
2645
|
+
), new Error(`${S.reason} (${S.code})`);
|
|
2646
|
+
A("loading"), E("depositing");
|
|
2647
|
+
const ee = Math.max(ce * (1 - he / 100), 0), pe = await Ze(c).catch(
|
|
2578
2648
|
() => Date.now() / 1e3
|
|
2579
|
-
),
|
|
2580
|
-
amountSol:
|
|
2649
|
+
), $ = Xe({
|
|
2650
|
+
amountSol: W,
|
|
2581
2651
|
maturity: K,
|
|
2582
|
-
nowTs:
|
|
2652
|
+
nowTs: pe
|
|
2583
2653
|
});
|
|
2584
2654
|
try {
|
|
2585
|
-
if (
|
|
2586
|
-
await
|
|
2655
|
+
if (p === "liquid-sol") {
|
|
2656
|
+
await Ut({
|
|
2587
2657
|
connection: c,
|
|
2588
2658
|
wallet: l,
|
|
2589
|
-
bondPubkey:
|
|
2590
|
-
principalTokenMint:
|
|
2591
|
-
yieldTokenMint:
|
|
2592
|
-
validatorVoteAccount:
|
|
2593
|
-
amountSol:
|
|
2594
|
-
}),
|
|
2595
|
-
const
|
|
2659
|
+
bondPubkey: q.bondPubkey,
|
|
2660
|
+
principalTokenMint: q.principalTokenMint,
|
|
2661
|
+
yieldTokenMint: q.yieldTokenMint,
|
|
2662
|
+
validatorVoteAccount: q.voteAccount,
|
|
2663
|
+
amountSol: W
|
|
2664
|
+
}), E("selling");
|
|
2665
|
+
const N = await Ht({
|
|
2596
2666
|
connection: c,
|
|
2597
2667
|
wallet: l,
|
|
2598
|
-
marketPubkey:
|
|
2599
|
-
rtMint:
|
|
2600
|
-
orderSizeTokens:
|
|
2601
|
-
minReceiveTokens:
|
|
2602
|
-
expectedSolOut:
|
|
2668
|
+
marketPubkey: X.marketPubkey,
|
|
2669
|
+
rtMint: q.yieldTokenMint,
|
|
2670
|
+
orderSizeTokens: $,
|
|
2671
|
+
minReceiveTokens: ee,
|
|
2672
|
+
expectedSolOut: ce
|
|
2603
2673
|
});
|
|
2604
|
-
|
|
2674
|
+
E("complete"), b(de), A("success", N.signature), g("complete");
|
|
2605
2675
|
} else {
|
|
2606
|
-
|
|
2607
|
-
throw new Error(
|
|
2608
|
-
"Sell Yield is not yet enabled for this validator. An Address Lookup Table hasn't been deployed yet — please contact the Pye team."
|
|
2609
|
-
);
|
|
2610
|
-
const V = await Nt({
|
|
2676
|
+
const N = T, te = await Yt({
|
|
2611
2677
|
connection: c,
|
|
2612
2678
|
wallet: l,
|
|
2613
|
-
bondPubkey:
|
|
2614
|
-
principalTokenMint:
|
|
2615
|
-
yieldTokenMint:
|
|
2616
|
-
validatorVoteAccount:
|
|
2617
|
-
stakeAccountPubkey:
|
|
2618
|
-
amountSol:
|
|
2619
|
-
rtAmountToSell:
|
|
2620
|
-
stakeBalanceSol:
|
|
2621
|
-
marketPubkey:
|
|
2622
|
-
minReceiveTokens:
|
|
2623
|
-
expectedSolOut:
|
|
2624
|
-
altPubkey:
|
|
2679
|
+
bondPubkey: q.bondPubkey,
|
|
2680
|
+
principalTokenMint: q.principalTokenMint,
|
|
2681
|
+
yieldTokenMint: q.yieldTokenMint,
|
|
2682
|
+
validatorVoteAccount: q.voteAccount,
|
|
2683
|
+
stakeAccountPubkey: p,
|
|
2684
|
+
amountSol: W,
|
|
2685
|
+
rtAmountToSell: $,
|
|
2686
|
+
stakeBalanceSol: I,
|
|
2687
|
+
marketPubkey: X.marketPubkey,
|
|
2688
|
+
minReceiveTokens: ee,
|
|
2689
|
+
expectedSolOut: ce,
|
|
2690
|
+
altPubkey: N
|
|
2625
2691
|
});
|
|
2626
|
-
|
|
2692
|
+
E("complete"), b(de), A("success", te.signature), g("complete");
|
|
2627
2693
|
}
|
|
2628
|
-
} catch (
|
|
2629
|
-
|
|
2694
|
+
} catch (N) {
|
|
2695
|
+
A(
|
|
2630
2696
|
"error",
|
|
2631
2697
|
null,
|
|
2632
|
-
|
|
2698
|
+
N instanceof Error ? N.message : "Transaction failed"
|
|
2633
2699
|
);
|
|
2634
2700
|
} finally {
|
|
2635
|
-
const
|
|
2636
|
-
c.getBalance(
|
|
2637
|
-
}),
|
|
2638
|
-
|
|
2701
|
+
const N = l.publicKey;
|
|
2702
|
+
c.getBalance(N, "confirmed").then(z).catch(() => {
|
|
2703
|
+
}), mt(c, N).then((te) => {
|
|
2704
|
+
Q(te), xt(N.toBase58(), te);
|
|
2705
|
+
}).catch(() => {
|
|
2706
|
+
}), wt(c, N).then(Z).catch(() => {
|
|
2639
2707
|
});
|
|
2640
2708
|
}
|
|
2641
2709
|
}, [
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2710
|
+
X,
|
|
2711
|
+
q,
|
|
2712
|
+
_,
|
|
2713
|
+
R,
|
|
2714
|
+
Y,
|
|
2715
|
+
C,
|
|
2716
|
+
d,
|
|
2717
|
+
le,
|
|
2718
|
+
p,
|
|
2719
|
+
L,
|
|
2720
|
+
T,
|
|
2648
2721
|
c,
|
|
2649
2722
|
l,
|
|
2650
|
-
|
|
2723
|
+
W,
|
|
2651
2724
|
K,
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2725
|
+
I,
|
|
2726
|
+
de,
|
|
2727
|
+
ce,
|
|
2728
|
+
he,
|
|
2729
|
+
A,
|
|
2730
|
+
E,
|
|
2657
2731
|
b,
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
F
|
|
2732
|
+
g,
|
|
2733
|
+
z,
|
|
2734
|
+
Q,
|
|
2735
|
+
Z
|
|
2663
2736
|
]);
|
|
2664
|
-
return /* @__PURE__ */ f(
|
|
2665
|
-
/* @__PURE__ */ i(
|
|
2737
|
+
return /* @__PURE__ */ f(oe, { children: [
|
|
2738
|
+
/* @__PURE__ */ i(Ne, { title: "Approve in your wallet" }),
|
|
2666
2739
|
(() => {
|
|
2667
|
-
const
|
|
2740
|
+
const S = [
|
|
2668
2741
|
{
|
|
2669
2742
|
key: "receive",
|
|
2670
2743
|
left: /* @__PURE__ */ f("div", { style: { display: "flex", alignItems: "center", gap: 6, minWidth: 0 }, children: [
|
|
2671
|
-
/* @__PURE__ */ i("p", { style:
|
|
2672
|
-
/* @__PURE__ */ i(
|
|
2744
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "You receive today" }),
|
|
2745
|
+
/* @__PURE__ */ i(be, { text: "Estimated upfront payout based on current market rates, net of fees. The final amount is confirmed when your order fills on the Pye orderbook." })
|
|
2673
2746
|
] }),
|
|
2674
2747
|
right: /* @__PURE__ */ i(
|
|
2675
|
-
|
|
2748
|
+
me,
|
|
2676
2749
|
{
|
|
2677
|
-
value: `+${
|
|
2678
|
-
style: { ...
|
|
2750
|
+
value: `+${ne(de)} SOL`,
|
|
2751
|
+
style: { ...m(15, a.green, 500), whiteSpace: "nowrap", flexShrink: 0, fontVariantNumeric: "tabular-nums" }
|
|
2679
2752
|
}
|
|
2680
2753
|
)
|
|
2681
2754
|
},
|
|
2682
2755
|
{
|
|
2683
2756
|
key: "stake",
|
|
2684
|
-
left: /* @__PURE__ */ i("p", { style:
|
|
2757
|
+
left: /* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "Stake amount" }),
|
|
2685
2758
|
right: /* @__PURE__ */ i(
|
|
2686
|
-
|
|
2759
|
+
me,
|
|
2687
2760
|
{
|
|
2688
|
-
value: `${
|
|
2689
|
-
style: { ...
|
|
2761
|
+
value: `${W} SOL`,
|
|
2762
|
+
style: { ...m(14, a.primary), whiteSpace: "nowrap", flexShrink: 0, fontVariantNumeric: "tabular-nums" }
|
|
2690
2763
|
}
|
|
2691
2764
|
)
|
|
2692
2765
|
},
|
|
2693
2766
|
{
|
|
2694
2767
|
key: "pt",
|
|
2695
2768
|
left: /* @__PURE__ */ f("div", { style: { display: "flex", alignItems: "center", gap: 6, minWidth: 0 }, children: [
|
|
2696
|
-
/* @__PURE__ */ i("p", { style:
|
|
2697
|
-
/* @__PURE__ */ i(
|
|
2769
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "PTs you'll receive" }),
|
|
2770
|
+
/* @__PURE__ */ i(be, { text: "Your PT is a token receipt for your staked SOL. At the redeem date, redeem it 1:1 for your full stake." })
|
|
2698
2771
|
] }),
|
|
2699
2772
|
right: /* @__PURE__ */ i(
|
|
2700
|
-
|
|
2773
|
+
me,
|
|
2701
2774
|
{
|
|
2702
|
-
value: `${
|
|
2703
|
-
style: { ...
|
|
2775
|
+
value: `${W} PT`,
|
|
2776
|
+
style: { ...m(14, a.primary), whiteSpace: "nowrap", flexShrink: 0, fontVariantNumeric: "tabular-nums" }
|
|
2704
2777
|
}
|
|
2705
2778
|
)
|
|
2706
2779
|
},
|
|
2707
2780
|
{
|
|
2708
2781
|
key: "redeem",
|
|
2709
|
-
left: /* @__PURE__ */ i("p", { style:
|
|
2710
|
-
right: /* @__PURE__ */ i("p", { style: { ...
|
|
2782
|
+
left: /* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "Redeem date" }),
|
|
2783
|
+
right: /* @__PURE__ */ i("p", { style: { ...m(14, a.primary), whiteSpace: "nowrap", flexShrink: 0 }, children: Ae })
|
|
2711
2784
|
},
|
|
2712
2785
|
{
|
|
2713
2786
|
key: "fee",
|
|
2714
2787
|
left: /* @__PURE__ */ f("div", { style: { display: "flex", alignItems: "center", gap: 6, minWidth: 0 }, children: [
|
|
2715
|
-
/* @__PURE__ */ f("p", { style:
|
|
2788
|
+
/* @__PURE__ */ f("p", { style: m(14, a.secondary), children: [
|
|
2716
2789
|
"Pye protocol fee (",
|
|
2717
|
-
|
|
2790
|
+
ue,
|
|
2718
2791
|
"%)"
|
|
2719
2792
|
] }),
|
|
2720
|
-
/* @__PURE__ */ i(
|
|
2793
|
+
/* @__PURE__ */ i(be, { text: `A ${ue}% fee is taken from the SOL proceeds of your sale and routed to the Pye treasury.` })
|
|
2721
2794
|
] }),
|
|
2722
2795
|
right: /* @__PURE__ */ i(
|
|
2723
|
-
|
|
2796
|
+
me,
|
|
2724
2797
|
{
|
|
2725
|
-
value: `−${
|
|
2726
|
-
style: { ...
|
|
2798
|
+
value: `−${ne(Ue)} SOL`,
|
|
2799
|
+
style: { ...m(14, a.primary), whiteSpace: "nowrap", flexShrink: 0, fontVariantNumeric: "tabular-nums" }
|
|
2727
2800
|
}
|
|
2728
2801
|
)
|
|
2729
2802
|
}
|
|
2730
2803
|
];
|
|
2731
|
-
return /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 0 }, children:
|
|
2732
|
-
const
|
|
2804
|
+
return /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 0 }, children: S.map((ee, pe) => {
|
|
2805
|
+
const $ = pe === 0, N = pe === S.length - 1, te = $ && N ? 8 : $ ? "8px 8px 0 0" : N ? "0 0 8px 8px" : 0;
|
|
2733
2806
|
return /* @__PURE__ */ f(
|
|
2734
2807
|
"div",
|
|
2735
2808
|
{
|
|
2736
2809
|
style: {
|
|
2737
|
-
background:
|
|
2738
|
-
borderTop: `1px solid ${
|
|
2739
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
2740
|
-
borderRadius:
|
|
2810
|
+
background: a.lowered,
|
|
2811
|
+
borderTop: `1px solid ${a.shadow}`,
|
|
2812
|
+
boxShadow: `inset 0 -1px 0 ${a.highlight}`,
|
|
2813
|
+
borderRadius: te,
|
|
2741
2814
|
padding: "12px 12px",
|
|
2742
2815
|
display: "flex",
|
|
2743
2816
|
alignItems: "center",
|
|
@@ -2745,18 +2818,18 @@ function Dr() {
|
|
|
2745
2818
|
gap: 12
|
|
2746
2819
|
},
|
|
2747
2820
|
children: [
|
|
2748
|
-
|
|
2749
|
-
|
|
2821
|
+
ee.left,
|
|
2822
|
+
ee.right
|
|
2750
2823
|
]
|
|
2751
2824
|
},
|
|
2752
|
-
|
|
2825
|
+
ee.key
|
|
2753
2826
|
);
|
|
2754
2827
|
}) });
|
|
2755
2828
|
})(),
|
|
2756
2829
|
/* @__PURE__ */ f(
|
|
2757
2830
|
"div",
|
|
2758
2831
|
{
|
|
2759
|
-
onClick: () =>
|
|
2832
|
+
onClick: () => O(!B),
|
|
2760
2833
|
style: {
|
|
2761
2834
|
display: "flex",
|
|
2762
2835
|
alignItems: "center",
|
|
@@ -2766,11 +2839,11 @@ function Dr() {
|
|
|
2766
2839
|
userSelect: "none"
|
|
2767
2840
|
},
|
|
2768
2841
|
children: [
|
|
2769
|
-
/* @__PURE__ */ i("span", { style:
|
|
2842
|
+
/* @__PURE__ */ i("span", { style: m(14, a.secondary), children: "Advanced" }),
|
|
2770
2843
|
/* @__PURE__ */ i("svg", { width: "10", height: "6", viewBox: "0 0 10 6", fill: "none", style: {
|
|
2771
2844
|
transform: B ? "rotate(180deg)" : "none",
|
|
2772
2845
|
transition: "transform 0.2s"
|
|
2773
|
-
}, children: /* @__PURE__ */ i("path", { d: "M1 1L5 5L9 1", stroke:
|
|
2846
|
+
}, children: /* @__PURE__ */ i("path", { d: "M1 1L5 5L9 1", stroke: a.secondary, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
2774
2847
|
]
|
|
2775
2848
|
}
|
|
2776
2849
|
),
|
|
@@ -2783,33 +2856,33 @@ function Dr() {
|
|
|
2783
2856
|
opacity: B ? 1 : 0,
|
|
2784
2857
|
transition: "opacity 200ms cubic-bezier(0.2,0.9,0.2,1)"
|
|
2785
2858
|
}, children: /* @__PURE__ */ i("div", { style: {
|
|
2786
|
-
background:
|
|
2859
|
+
background: a.raised,
|
|
2787
2860
|
borderRadius: 8,
|
|
2788
2861
|
padding: 12,
|
|
2789
|
-
borderTop: `1px solid ${
|
|
2790
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
2862
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
2863
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
2791
2864
|
display: "flex",
|
|
2792
2865
|
flexDirection: "column",
|
|
2793
2866
|
gap: 16
|
|
2794
2867
|
}, children: /* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
2795
2868
|
/* @__PURE__ */ f("div", { style: { display: "flex", justifyContent: "space-between" }, children: [
|
|
2796
2869
|
/* @__PURE__ */ f("span", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
2797
|
-
/* @__PURE__ */ i("span", { style:
|
|
2798
|
-
/* @__PURE__ */ i(
|
|
2870
|
+
/* @__PURE__ */ i("span", { style: m(14, a.secondary), children: "Max slippage tolerance" }),
|
|
2871
|
+
/* @__PURE__ */ i(be, { bg: a.highlight, text: "Slippage is the maximum difference between the quoted price and the price you actually receive. A higher tolerance means your order is more likely to fill, but you may receive slightly less SOL." })
|
|
2799
2872
|
] }),
|
|
2800
|
-
Le > 0 && /* @__PURE__ */ f("span", { style:
|
|
2873
|
+
Le > 0 && /* @__PURE__ */ f("span", { style: m(14, a.secondary), children: [
|
|
2801
2874
|
"Est. slippage: ",
|
|
2802
2875
|
(Le / 100).toFixed(2),
|
|
2803
2876
|
"%"
|
|
2804
2877
|
] })
|
|
2805
2878
|
] }),
|
|
2806
2879
|
/* @__PURE__ */ f("div", { style: { display: "flex", alignItems: "baseline", gap: 4 }, children: [
|
|
2807
|
-
/* @__PURE__ */ i("span", { style: { ...
|
|
2808
|
-
/* @__PURE__ */ i("span", { style:
|
|
2880
|
+
/* @__PURE__ */ i("span", { style: { ...m(18, a.primary), transition: "color 0.15s" }, children: he.toFixed(2) }),
|
|
2881
|
+
/* @__PURE__ */ i("span", { style: m(14, a.secondary), children: "% max slippage" })
|
|
2809
2882
|
] }),
|
|
2810
|
-
/* @__PURE__ */ i(
|
|
2883
|
+
/* @__PURE__ */ i(Pr, { value: he, onChange: (S) => v(Math.round(S * 100)) })
|
|
2811
2884
|
] }) }) }) }),
|
|
2812
|
-
!
|
|
2885
|
+
!Fe && j > 0 && /* @__PURE__ */ f("div", { style: {
|
|
2813
2886
|
background: "rgba(255,181,77,0.15)",
|
|
2814
2887
|
borderTop: "1px solid rgba(255,255,255,0.2)",
|
|
2815
2888
|
boxShadow: "inset 0 -1px 0 rgba(0,0,0,0.08)",
|
|
@@ -2819,41 +2892,41 @@ function Dr() {
|
|
|
2819
2892
|
flexDirection: "column",
|
|
2820
2893
|
gap: 2
|
|
2821
2894
|
}, children: [
|
|
2822
|
-
/* @__PURE__ */ i("p", { style: { ...
|
|
2823
|
-
/* @__PURE__ */ f("p", { style:
|
|
2895
|
+
/* @__PURE__ */ i("p", { style: { ...m(14, a.primary), fontWeight: 500 }, children: "Insufficient liquidity" }),
|
|
2896
|
+
/* @__PURE__ */ f("p", { style: m(14, a.secondary), children: [
|
|
2824
2897
|
"Only ",
|
|
2825
|
-
((
|
|
2898
|
+
((Se = U == null ? void 0 : U.totalAvailableSize) == null ? void 0 : Se.toFixed(2)) ?? "0",
|
|
2826
2899
|
" RT available on the order book. Your order may partially fill or not fill at all."
|
|
2827
2900
|
] })
|
|
2828
2901
|
] }),
|
|
2829
|
-
|
|
2830
|
-
...
|
|
2831
|
-
background: `${
|
|
2902
|
+
x === "error" && o && /* @__PURE__ */ i("div", { style: {
|
|
2903
|
+
...m(14, a.red),
|
|
2904
|
+
background: `${a.red}12`,
|
|
2832
2905
|
borderRadius: 6,
|
|
2833
2906
|
padding: "8px 12px"
|
|
2834
|
-
}, children:
|
|
2835
|
-
/* @__PURE__ */ i(
|
|
2907
|
+
}, children: o }),
|
|
2908
|
+
/* @__PURE__ */ i(Ce, {}),
|
|
2836
2909
|
/* @__PURE__ */ i(
|
|
2837
|
-
|
|
2910
|
+
Re,
|
|
2838
2911
|
{
|
|
2839
|
-
label:
|
|
2840
|
-
onClick:
|
|
2841
|
-
disabled: !
|
|
2912
|
+
label: Me ? y === "selling" ? "Selling rewards..." : "Confirming..." : `Sell Rewards — get ${ne(de, 3)} SOL`,
|
|
2913
|
+
onClick: Ke,
|
|
2914
|
+
disabled: !He,
|
|
2842
2915
|
purple: !0
|
|
2843
2916
|
}
|
|
2844
2917
|
)
|
|
2845
2918
|
] });
|
|
2846
2919
|
}
|
|
2847
|
-
const
|
|
2848
|
-
function
|
|
2920
|
+
const dt = 1e9;
|
|
2921
|
+
function Nr({ position: c, onRedeem: l, isRedeeming: d }) {
|
|
2849
2922
|
return /* @__PURE__ */ f("div", { style: {
|
|
2850
2923
|
display: "flex",
|
|
2851
2924
|
alignItems: "center",
|
|
2852
2925
|
gap: 8,
|
|
2853
2926
|
padding: "12px 16px",
|
|
2854
|
-
background:
|
|
2855
|
-
borderTop: `1px solid ${
|
|
2856
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
2927
|
+
background: a.surface,
|
|
2928
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
2929
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`
|
|
2857
2930
|
}, children: [
|
|
2858
2931
|
/* @__PURE__ */ i(
|
|
2859
2932
|
"img",
|
|
@@ -2864,24 +2937,24 @@ function Tr({ position: c, onRedeem: l, isRedeeming: u }) {
|
|
|
2864
2937
|
}
|
|
2865
2938
|
),
|
|
2866
2939
|
/* @__PURE__ */ f("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
2867
|
-
/* @__PURE__ */ f("p", { style:
|
|
2868
|
-
|
|
2940
|
+
/* @__PURE__ */ f("p", { style: m(15, a.primary), children: [
|
|
2941
|
+
ne(c.ptAmount),
|
|
2869
2942
|
" PT"
|
|
2870
2943
|
] }),
|
|
2871
|
-
/* @__PURE__ */ f("p", { style:
|
|
2944
|
+
/* @__PURE__ */ f("p", { style: m(14, a.secondary), children: [
|
|
2872
2945
|
c.validatorName,
|
|
2873
2946
|
" · ",
|
|
2874
2947
|
c.maturityLabel
|
|
2875
2948
|
] })
|
|
2876
2949
|
] }),
|
|
2877
2950
|
/* @__PURE__ */ f("div", { style: { display: "flex", alignItems: "center", gap: 8, flexShrink: 0 }, children: [
|
|
2878
|
-
/* @__PURE__ */ i("p", { style: { ...
|
|
2951
|
+
/* @__PURE__ */ i("p", { style: { ...m(14, c.isMatured ? a.green : a.secondary), whiteSpace: "nowrap" }, children: c.isMatured ? "Unlocked" : `${c.daysLeft}d left` }),
|
|
2879
2952
|
/* @__PURE__ */ i(
|
|
2880
2953
|
"button",
|
|
2881
2954
|
{
|
|
2882
2955
|
className: "pye-redeem-btn",
|
|
2883
|
-
onClick: c.isMatured && !
|
|
2884
|
-
disabled: !c.isMatured ||
|
|
2956
|
+
onClick: c.isMatured && !d ? () => l(c) : void 0,
|
|
2957
|
+
disabled: !c.isMatured || d,
|
|
2885
2958
|
style: {
|
|
2886
2959
|
height: 26,
|
|
2887
2960
|
width: 72,
|
|
@@ -2889,82 +2962,88 @@ function Tr({ position: c, onRedeem: l, isRedeeming: u }) {
|
|
|
2889
2962
|
border: "none",
|
|
2890
2963
|
padding: "0 10px",
|
|
2891
2964
|
borderTop: "1px solid var(--c-brand-hi)",
|
|
2892
|
-
cursor: c.isMatured ?
|
|
2893
|
-
background:
|
|
2894
|
-
...
|
|
2965
|
+
cursor: c.isMatured ? d ? "wait" : "pointer" : "not-allowed",
|
|
2966
|
+
background: a.purple,
|
|
2967
|
+
...m(14, "var(--c-brand-text)"),
|
|
2895
2968
|
boxShadow: "inset 0 -1px 0 var(--c-brand-sh)",
|
|
2896
2969
|
transition: "filter 0.1s",
|
|
2897
|
-
opacity: c.isMatured ?
|
|
2970
|
+
opacity: c.isMatured ? d ? 0.7 : 1 : 0.5,
|
|
2898
2971
|
whiteSpace: "nowrap"
|
|
2899
2972
|
},
|
|
2900
|
-
children:
|
|
2973
|
+
children: d ? "..." : "Redeem"
|
|
2901
2974
|
}
|
|
2902
2975
|
)
|
|
2903
2976
|
] })
|
|
2904
2977
|
] });
|
|
2905
2978
|
}
|
|
2906
|
-
function
|
|
2907
|
-
const { connection: c } =
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2979
|
+
function Ur() {
|
|
2980
|
+
const { connection: c } = $e(), l = Ve(), d = se((p) => p.walletBalances), w = F((p) => p.navigate), g = je((p) => p.bonds), x = Oe((p) => p.validators), y = F((p) => p.redeemingMint), o = F((p) => p.setRedeemingMint), A = F((p) => p.redeemError), E = F((p) => p.setRedeemError), b = F((p) => p.setRedeemAmountSol), B = F((p) => p.setRedeemTxSignature), O = se((p) => p.setWalletBalances), k = se((p) => p.setUserStakeAccounts), v = xe((p) => p.setBalanceLamports), D = Pe(() => {
|
|
2981
|
+
var C;
|
|
2982
|
+
const p = /* @__PURE__ */ new Map();
|
|
2983
|
+
for (const R of Object.values(g))
|
|
2984
|
+
p.set(R.pt_mint, R);
|
|
2985
|
+
const I = Date.now() / 1e3, T = [];
|
|
2986
|
+
for (const [R, Y] of Object.entries(d)) {
|
|
2987
|
+
if (Y <= 0) continue;
|
|
2988
|
+
const M = p.get(R);
|
|
2989
|
+
if (!M) continue;
|
|
2990
|
+
const Q = M.maturity_ts, Z = I >= Q, z = Z ? 0 : Math.ceil((Q * 1e3 - Date.now()) / (1e3 * 60 * 60 * 24)), W = x[M.validator_vote_account], K = ((C = Ee[M.canonical_label]) == null ? void 0 : C.human_readable) ?? M.canonical_label;
|
|
2991
|
+
T.push({
|
|
2992
|
+
ptMint: R,
|
|
2993
|
+
voteAccount: M.validator_vote_account,
|
|
2994
|
+
canonicalLabel: M.canonical_label,
|
|
2995
|
+
bond: M,
|
|
2996
|
+
ptAmount: Y / dt,
|
|
2997
|
+
ptAmountLamports: Y,
|
|
2998
|
+
maturityTimestamp: Q,
|
|
2999
|
+
maturityLabel: K,
|
|
3000
|
+
isMatured: Z,
|
|
3001
|
+
daysLeft: z,
|
|
3002
|
+
validatorName: (W == null ? void 0 : W.name) ?? M.validator_vote_account,
|
|
3003
|
+
validatorPtIcon: (W == null ? void 0 : W.pt_image_url) ?? ""
|
|
2927
3004
|
});
|
|
2928
3005
|
}
|
|
2929
|
-
return
|
|
2930
|
-
}, [
|
|
2931
|
-
|
|
3006
|
+
return T.sort((R, Y) => R.maturityTimestamp - Y.maturityTimestamp), T;
|
|
3007
|
+
}, [d, g, x]), L = pt(async (p) => {
|
|
3008
|
+
E(null), o(p.ptMint);
|
|
2932
3009
|
try {
|
|
2933
|
-
const { signature:
|
|
3010
|
+
const { signature: I } = await Qt({
|
|
2934
3011
|
connection: c,
|
|
2935
3012
|
wallet: l,
|
|
2936
|
-
bondPubkey:
|
|
2937
|
-
principalTokenMint:
|
|
2938
|
-
yieldTokenMint:
|
|
2939
|
-
ptAmountLamports:
|
|
3013
|
+
bondPubkey: p.bond.pubkey,
|
|
3014
|
+
principalTokenMint: p.bond.pt_mint,
|
|
3015
|
+
yieldTokenMint: p.bond.rt_mint,
|
|
3016
|
+
ptAmountLamports: p.ptAmountLamports,
|
|
2940
3017
|
rtAmountLamports: 0
|
|
2941
3018
|
});
|
|
2942
|
-
|
|
2943
|
-
} catch (
|
|
2944
|
-
|
|
3019
|
+
b(p.ptAmountLamports / dt), B(I), w("redeem-complete");
|
|
3020
|
+
} catch (I) {
|
|
3021
|
+
E(I instanceof Error ? I.message : "Redeem failed");
|
|
2945
3022
|
} finally {
|
|
2946
|
-
|
|
2947
|
-
const
|
|
2948
|
-
c.getBalance(
|
|
2949
|
-
}),
|
|
2950
|
-
|
|
3023
|
+
o(null);
|
|
3024
|
+
const I = l.publicKey;
|
|
3025
|
+
c.getBalance(I, "confirmed").then(v).catch(() => {
|
|
3026
|
+
}), mt(c, I).then((T) => {
|
|
3027
|
+
O(T), xt(I.toBase58(), T);
|
|
3028
|
+
}).catch(() => {
|
|
3029
|
+
}), wt(c, I).then(k).catch(() => {
|
|
2951
3030
|
});
|
|
2952
3031
|
}
|
|
2953
|
-
}, [c, l,
|
|
2954
|
-
return /* @__PURE__ */ i(
|
|
2955
|
-
|
|
3032
|
+
}, [c, l, E, o, b, B, w, v, O, k]);
|
|
3033
|
+
return /* @__PURE__ */ i(Ie, { padding: 0, style: { borderTop: "none" }, children: /* @__PURE__ */ f("div", { style: { flex: 1, display: "flex", flexDirection: "column" }, children: [
|
|
3034
|
+
A && /* @__PURE__ */ i("div", { style: {
|
|
2956
3035
|
padding: "8px 16px",
|
|
2957
|
-
background: `${
|
|
2958
|
-
...
|
|
2959
|
-
}, children:
|
|
2960
|
-
|
|
2961
|
-
|
|
3036
|
+
background: `${a.red}12`,
|
|
3037
|
+
...m(14, a.red)
|
|
3038
|
+
}, children: A }),
|
|
3039
|
+
D.length > 0 ? /* @__PURE__ */ i("div", { style: { flex: 1, overflowY: "auto", minHeight: 0 }, children: D.map((p) => /* @__PURE__ */ i(
|
|
3040
|
+
Nr,
|
|
2962
3041
|
{
|
|
2963
|
-
position:
|
|
2964
|
-
onRedeem:
|
|
2965
|
-
isRedeeming:
|
|
3042
|
+
position: p,
|
|
3043
|
+
onRedeem: L,
|
|
3044
|
+
isRedeeming: y === p.ptMint
|
|
2966
3045
|
},
|
|
2967
|
-
|
|
3046
|
+
p.ptMint
|
|
2968
3047
|
)) }) : /* @__PURE__ */ f("div", { style: {
|
|
2969
3048
|
flex: 1,
|
|
2970
3049
|
display: "flex",
|
|
@@ -2975,59 +3054,59 @@ function Pr() {
|
|
|
2975
3054
|
padding: 24,
|
|
2976
3055
|
textAlign: "center"
|
|
2977
3056
|
}, children: [
|
|
2978
|
-
/* @__PURE__ */ i("p", { style:
|
|
2979
|
-
/* @__PURE__ */ i("p", { style:
|
|
3057
|
+
/* @__PURE__ */ i("p", { style: m(15, a.primary), children: "No active positions" }),
|
|
3058
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "Sell future rewards to create a position." })
|
|
2980
3059
|
] })
|
|
2981
3060
|
] }) });
|
|
2982
3061
|
}
|
|
2983
|
-
function
|
|
2984
|
-
const c =
|
|
2985
|
-
return /* @__PURE__ */ f(
|
|
2986
|
-
/* @__PURE__ */ i(
|
|
2987
|
-
/* @__PURE__ */ f(
|
|
2988
|
-
/* @__PURE__ */ i("p", { style:
|
|
3062
|
+
function Hr() {
|
|
3063
|
+
const c = F((b) => b.reset), l = F((b) => b.txSignature), d = F((b) => b.depositAmount), w = F((b) => b.selectedMaturityId), g = F((b) => b.sellAmountSol), x = parseFloat(d) || 0, y = g ?? 0, o = w ? Ee[w] : null, A = (o == null ? void 0 : o.human_readable) ?? "Sep 30, 2026", E = l ? `https://solscan.io/tx/${l}` : "https://solscan.io";
|
|
3064
|
+
return /* @__PURE__ */ f(oe, { children: [
|
|
3065
|
+
/* @__PURE__ */ i(St, { label: "Transaction confirmed", onClose: () => c() }),
|
|
3066
|
+
/* @__PURE__ */ f(Ie, { children: [
|
|
3067
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "Your future staking rewards have been sold upfront." }),
|
|
2989
3068
|
(() => {
|
|
2990
|
-
const
|
|
3069
|
+
const b = [
|
|
2991
3070
|
{
|
|
2992
3071
|
key: "received",
|
|
2993
|
-
left: /* @__PURE__ */ i("p", { style:
|
|
3072
|
+
left: /* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "Rewards sold upfront" }),
|
|
2994
3073
|
right: /* @__PURE__ */ i(
|
|
2995
|
-
|
|
3074
|
+
me,
|
|
2996
3075
|
{
|
|
2997
|
-
value: `+${
|
|
2998
|
-
style: { ...
|
|
3076
|
+
value: `+${ne(y)} SOL`,
|
|
3077
|
+
style: { ...m(15, a.green, 500), whiteSpace: "nowrap", flexShrink: 0, fontVariantNumeric: "tabular-nums" }
|
|
2999
3078
|
}
|
|
3000
3079
|
)
|
|
3001
3080
|
},
|
|
3002
3081
|
{
|
|
3003
3082
|
key: "pt",
|
|
3004
3083
|
left: /* @__PURE__ */ f("div", { style: { display: "flex", alignItems: "center", gap: 6, minWidth: 0 }, children: [
|
|
3005
|
-
/* @__PURE__ */ i("p", { style:
|
|
3006
|
-
/* @__PURE__ */ i(
|
|
3084
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "PT received" }),
|
|
3085
|
+
/* @__PURE__ */ i(be, { text: "A PT (Principal Token) is a 1:1 tokenised claim on your staked SOL. It accrues no rewards — those were sold upfront. Redeem it at maturity to get your full stake back." })
|
|
3007
3086
|
] }),
|
|
3008
3087
|
right: /* @__PURE__ */ i(
|
|
3009
|
-
|
|
3088
|
+
me,
|
|
3010
3089
|
{
|
|
3011
|
-
value: `+${
|
|
3012
|
-
style: { ...
|
|
3090
|
+
value: `+${x} PT`,
|
|
3091
|
+
style: { ...m(14, a.primary), whiteSpace: "nowrap", flexShrink: 0, fontVariantNumeric: "tabular-nums" }
|
|
3013
3092
|
}
|
|
3014
3093
|
)
|
|
3015
3094
|
},
|
|
3016
3095
|
{
|
|
3017
3096
|
key: "stake",
|
|
3018
|
-
left: /* @__PURE__ */ i("p", { style:
|
|
3019
|
-
right: /* @__PURE__ */ i("p", { style: { ...
|
|
3097
|
+
left: /* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "Stake returned" }),
|
|
3098
|
+
right: /* @__PURE__ */ i("p", { style: { ...m(14, a.primary), whiteSpace: "nowrap", flexShrink: 0 }, children: A })
|
|
3020
3099
|
},
|
|
3021
3100
|
{
|
|
3022
3101
|
key: "tx",
|
|
3023
|
-
left: /* @__PURE__ */ i("p", { style:
|
|
3102
|
+
left: /* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "Transaction" }),
|
|
3024
3103
|
right: /* @__PURE__ */ f(
|
|
3025
3104
|
"a",
|
|
3026
3105
|
{
|
|
3027
|
-
href:
|
|
3106
|
+
href: E,
|
|
3028
3107
|
target: "_blank",
|
|
3029
3108
|
rel: "noreferrer",
|
|
3030
|
-
style: { ...
|
|
3109
|
+
style: { ...m(14, a.purple), textDecoration: "none", display: "flex", alignItems: "center", gap: 4, flexShrink: 0 },
|
|
3031
3110
|
children: [
|
|
3032
3111
|
"Solscan",
|
|
3033
3112
|
/* @__PURE__ */ i("svg", { width: "11", height: "11", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ i("path", { d: "M7 1h4v4M11 1L5.5 6.5M5 2H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V8", stroke: "currentColor", strokeWidth: "1.2", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
@@ -3036,16 +3115,16 @@ function Or() {
|
|
|
3036
3115
|
)
|
|
3037
3116
|
}
|
|
3038
3117
|
];
|
|
3039
|
-
return /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 0 }, children:
|
|
3040
|
-
const
|
|
3118
|
+
return /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 0 }, children: b.map((B, O) => {
|
|
3119
|
+
const k = O === 0, v = O === b.length - 1, D = k && v ? 8 : k ? "8px 8px 0 0" : v ? "0 0 8px 8px" : 0;
|
|
3041
3120
|
return /* @__PURE__ */ f(
|
|
3042
3121
|
"div",
|
|
3043
3122
|
{
|
|
3044
3123
|
style: {
|
|
3045
|
-
background:
|
|
3046
|
-
borderTop: `1px solid ${
|
|
3047
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
3048
|
-
borderRadius:
|
|
3124
|
+
background: a.lowered,
|
|
3125
|
+
borderTop: `1px solid ${a.shadow}`,
|
|
3126
|
+
boxShadow: `inset 0 -1px 0 ${a.highlight}`,
|
|
3127
|
+
borderRadius: D,
|
|
3049
3128
|
padding: "12px 12px",
|
|
3050
3129
|
display: "flex",
|
|
3051
3130
|
alignItems: "center",
|
|
@@ -3062,9 +3141,9 @@ function Or() {
|
|
|
3062
3141
|
}) });
|
|
3063
3142
|
})(),
|
|
3064
3143
|
/* @__PURE__ */ f("div", { style: {
|
|
3065
|
-
background:
|
|
3066
|
-
borderTop: `1px solid ${
|
|
3067
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
3144
|
+
background: a.raised,
|
|
3145
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
3146
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
3068
3147
|
borderRadius: 8,
|
|
3069
3148
|
padding: 12,
|
|
3070
3149
|
display: "flex",
|
|
@@ -3072,20 +3151,20 @@ function Or() {
|
|
|
3072
3151
|
gap: 10
|
|
3073
3152
|
}, children: [
|
|
3074
3153
|
/* @__PURE__ */ f("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", style: { flexShrink: 0, marginTop: 2 }, children: [
|
|
3075
|
-
/* @__PURE__ */ i("circle", { cx: "8", cy: "8", r: "6.5", stroke:
|
|
3076
|
-
/* @__PURE__ */ i("path", { d: "M8 7.5v3.5M8 5v.5", stroke:
|
|
3154
|
+
/* @__PURE__ */ i("circle", { cx: "8", cy: "8", r: "6.5", stroke: a.secondary, strokeWidth: "1.2" }),
|
|
3155
|
+
/* @__PURE__ */ i("path", { d: "M8 7.5v3.5M8 5v.5", stroke: a.secondary, strokeWidth: "1.4", strokeLinecap: "round" })
|
|
3077
3156
|
] }),
|
|
3078
|
-
/* @__PURE__ */ f("p", { style:
|
|
3157
|
+
/* @__PURE__ */ f("p", { style: m(12, a.secondary), children: [
|
|
3079
3158
|
"Your PT tokens may be hidden in your wallet — enable them via ",
|
|
3080
|
-
/* @__PURE__ */ i("span", { style: { color:
|
|
3159
|
+
/* @__PURE__ */ i("span", { style: { color: a.primary }, children: "Manage Tokens" }),
|
|
3081
3160
|
" to see your balance."
|
|
3082
3161
|
] })
|
|
3083
3162
|
] }),
|
|
3084
|
-
/* @__PURE__ */ i(
|
|
3163
|
+
/* @__PURE__ */ i(Ce, {}),
|
|
3085
3164
|
/* @__PURE__ */ f("div", { style: {
|
|
3086
|
-
background:
|
|
3087
|
-
borderTop: `1px solid ${
|
|
3088
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
3165
|
+
background: a.raised,
|
|
3166
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
3167
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
3089
3168
|
borderRadius: 8,
|
|
3090
3169
|
padding: 12,
|
|
3091
3170
|
display: "flex",
|
|
@@ -3093,14 +3172,14 @@ function Or() {
|
|
|
3093
3172
|
gap: 12
|
|
3094
3173
|
}, children: [
|
|
3095
3174
|
/* @__PURE__ */ f("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
3096
|
-
/* @__PURE__ */ i("p", { style:
|
|
3175
|
+
/* @__PURE__ */ i("p", { style: m(14, a.primary), children: "Learn more about Pye" }),
|
|
3097
3176
|
/* @__PURE__ */ f(
|
|
3098
3177
|
"a",
|
|
3099
3178
|
{
|
|
3100
3179
|
href: "https://docs.pye.fi/how-pye-works",
|
|
3101
3180
|
target: "_blank",
|
|
3102
3181
|
rel: "noreferrer",
|
|
3103
|
-
style: { ...
|
|
3182
|
+
style: { ...m(11, a.secondary), textDecoration: "none", display: "flex", alignItems: "center", gap: 4 },
|
|
3104
3183
|
children: [
|
|
3105
3184
|
"Read the docs",
|
|
3106
3185
|
/* @__PURE__ */ i("svg", { width: "11", height: "11", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ i("path", { d: "M7 1h4v4M11 1L5.5 6.5M5 2H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V8", stroke: "currentColor", strokeWidth: "1.2", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
@@ -3115,8 +3194,8 @@ function Or() {
|
|
|
3115
3194
|
href: "https://t.me/pyefi",
|
|
3116
3195
|
target: "_blank",
|
|
3117
3196
|
rel: "noreferrer",
|
|
3118
|
-
style: { display: "flex", alignItems: "center", justifyContent: "center", width: 28, height: 28, borderRadius: 8, background:
|
|
3119
|
-
children: /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill:
|
|
3197
|
+
style: { display: "flex", alignItems: "center", justifyContent: "center", width: 28, height: 28, borderRadius: 8, background: a.highlight, borderTop: `1px solid ${a.highlight}`, boxShadow: `inset 0 -1px 0 ${a.shadow}`, textDecoration: "none" },
|
|
3198
|
+
children: /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: a.secondary, children: /* @__PURE__ */ i("path", { d: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z" }) })
|
|
3120
3199
|
}
|
|
3121
3200
|
),
|
|
3122
3201
|
/* @__PURE__ */ i(
|
|
@@ -3125,60 +3204,60 @@ function Or() {
|
|
|
3125
3204
|
href: "https://x.com/pyefinance",
|
|
3126
3205
|
target: "_blank",
|
|
3127
3206
|
rel: "noreferrer",
|
|
3128
|
-
style: { display: "flex", alignItems: "center", justifyContent: "center", width: 28, height: 28, borderRadius: 8, background:
|
|
3129
|
-
children: /* @__PURE__ */ i("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill:
|
|
3207
|
+
style: { display: "flex", alignItems: "center", justifyContent: "center", width: 28, height: 28, borderRadius: 8, background: a.highlight, borderTop: `1px solid ${a.highlight}`, boxShadow: `inset 0 -1px 0 ${a.shadow}`, textDecoration: "none" },
|
|
3208
|
+
children: /* @__PURE__ */ i("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: a.secondary, children: /* @__PURE__ */ i("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.73-8.835L1.254 2.25H8.08l4.253 5.622 5.912-5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z" }) })
|
|
3130
3209
|
}
|
|
3131
3210
|
)
|
|
3132
3211
|
] })
|
|
3133
3212
|
] }),
|
|
3134
|
-
/* @__PURE__ */ i(
|
|
3213
|
+
/* @__PURE__ */ i(Re, { label: "Sell more rewards", onClick: () => c() })
|
|
3135
3214
|
] })
|
|
3136
3215
|
] });
|
|
3137
3216
|
}
|
|
3138
|
-
function
|
|
3139
|
-
const c =
|
|
3140
|
-
return /* @__PURE__ */ f(
|
|
3141
|
-
/* @__PURE__ */ i(
|
|
3142
|
-
/* @__PURE__ */ f(
|
|
3143
|
-
/* @__PURE__ */ i("p", { style:
|
|
3217
|
+
function Yr() {
|
|
3218
|
+
const c = F((x) => x.reset), l = F((x) => x.redeemAmountSol), d = F((x) => x.redeemTxSignature), w = l ?? 12.5, g = d ? `https://solscan.io/tx/${d}` : "https://solscan.io";
|
|
3219
|
+
return /* @__PURE__ */ f(oe, { children: [
|
|
3220
|
+
/* @__PURE__ */ i(St, { label: "Redeem confirmed", onClose: () => c() }),
|
|
3221
|
+
/* @__PURE__ */ f(Ie, { children: [
|
|
3222
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "Your staked SOL has been returned to your wallet." }),
|
|
3144
3223
|
/* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column" }, children: [
|
|
3145
3224
|
/* @__PURE__ */ f("div", { style: {
|
|
3146
|
-
background:
|
|
3147
|
-
borderTop: `1px solid ${
|
|
3148
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
3225
|
+
background: a.lowered,
|
|
3226
|
+
borderTop: `1px solid ${a.shadow}`,
|
|
3227
|
+
boxShadow: `inset 0 -1px 0 ${a.highlight}`,
|
|
3149
3228
|
borderRadius: "8px 8px 0 0",
|
|
3150
3229
|
padding: 12,
|
|
3151
3230
|
display: "flex",
|
|
3152
3231
|
flexDirection: "column",
|
|
3153
3232
|
gap: 12
|
|
3154
3233
|
}, children: [
|
|
3155
|
-
/* @__PURE__ */ i("p", { style:
|
|
3234
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "Staked SOL returned" }),
|
|
3156
3235
|
/* @__PURE__ */ i(
|
|
3157
|
-
|
|
3236
|
+
me,
|
|
3158
3237
|
{
|
|
3159
|
-
value: `${
|
|
3160
|
-
style: { ...
|
|
3238
|
+
value: `${ne(w)} SOL`,
|
|
3239
|
+
style: { ...Te(32, a.green), lineHeight: 1.2 }
|
|
3161
3240
|
}
|
|
3162
3241
|
)
|
|
3163
3242
|
] }),
|
|
3164
3243
|
/* @__PURE__ */ f("div", { style: {
|
|
3165
|
-
background:
|
|
3166
|
-
borderTop: `1px solid ${
|
|
3167
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
3244
|
+
background: a.lowered,
|
|
3245
|
+
borderTop: `1px solid ${a.shadow}`,
|
|
3246
|
+
boxShadow: `inset 0 -1px 0 ${a.highlight}`,
|
|
3168
3247
|
borderRadius: "0 0 8px 8px",
|
|
3169
3248
|
padding: 12,
|
|
3170
3249
|
display: "flex",
|
|
3171
3250
|
justifyContent: "space-between",
|
|
3172
3251
|
alignItems: "center"
|
|
3173
3252
|
}, children: [
|
|
3174
|
-
/* @__PURE__ */ i("p", { style:
|
|
3253
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "Received as a stake account" }),
|
|
3175
3254
|
/* @__PURE__ */ f(
|
|
3176
3255
|
"a",
|
|
3177
3256
|
{
|
|
3178
|
-
href:
|
|
3257
|
+
href: g,
|
|
3179
3258
|
target: "_blank",
|
|
3180
3259
|
rel: "noreferrer",
|
|
3181
|
-
style: { ...
|
|
3260
|
+
style: { ...m(14, a.purple), textDecoration: "none", display: "flex", alignItems: "center", gap: 4 },
|
|
3182
3261
|
children: [
|
|
3183
3262
|
"Solscan",
|
|
3184
3263
|
/* @__PURE__ */ i("svg", { width: "11", height: "11", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ i("path", { d: "M7 1h4v4M11 1L5.5 6.5M5 2H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V8", stroke: "currentColor", strokeWidth: "1.2", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
@@ -3188,34 +3267,34 @@ function Nr() {
|
|
|
3188
3267
|
] })
|
|
3189
3268
|
] }),
|
|
3190
3269
|
/* @__PURE__ */ f("div", { style: {
|
|
3191
|
-
background:
|
|
3192
|
-
borderTop: `1px solid ${
|
|
3193
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
3270
|
+
background: a.raised,
|
|
3271
|
+
borderTop: `1px solid ${a.highlight}`,
|
|
3272
|
+
boxShadow: `inset 0 -1px 0 ${a.shadow}`,
|
|
3194
3273
|
borderRadius: 8,
|
|
3195
3274
|
padding: 12,
|
|
3196
3275
|
display: "flex",
|
|
3197
3276
|
flexDirection: "column",
|
|
3198
3277
|
gap: 12
|
|
3199
3278
|
}, children: [
|
|
3200
|
-
/* @__PURE__ */ i("p", { style:
|
|
3201
|
-
/* @__PURE__ */ i("p", { style:
|
|
3279
|
+
/* @__PURE__ */ i("p", { style: m(14, a.primary), children: /* @__PURE__ */ i("strong", { style: { fontWeight: 600 }, children: "What to do next" }) }),
|
|
3280
|
+
/* @__PURE__ */ i("p", { style: m(14, a.secondary), children: "Two more steps to make it liquid." }),
|
|
3202
3281
|
/* @__PURE__ */ f("div", { style: { display: "flex", gap: 10 }, children: [
|
|
3203
3282
|
/* @__PURE__ */ i("div", { style: {
|
|
3204
3283
|
width: 20,
|
|
3205
3284
|
height: 20,
|
|
3206
3285
|
borderRadius: "50%",
|
|
3207
3286
|
flexShrink: 0,
|
|
3208
|
-
background:
|
|
3209
|
-
borderTop: `1px solid ${
|
|
3210
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
3287
|
+
background: a.lowered,
|
|
3288
|
+
borderTop: `1px solid ${a.shadow}`,
|
|
3289
|
+
boxShadow: `inset 0 -1px 0 ${a.highlight}`,
|
|
3211
3290
|
display: "flex",
|
|
3212
3291
|
alignItems: "center",
|
|
3213
3292
|
justifyContent: "center",
|
|
3214
|
-
...
|
|
3293
|
+
...m(11, a.secondary)
|
|
3215
3294
|
}, children: "1" }),
|
|
3216
3295
|
/* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
3217
|
-
/* @__PURE__ */ i("p", { style:
|
|
3218
|
-
/* @__PURE__ */ i("p", { style:
|
|
3296
|
+
/* @__PURE__ */ i("p", { style: m(14, a.primary), children: "Deactivate the stake account" }),
|
|
3297
|
+
/* @__PURE__ */ i("p", { style: m(11, a.secondary), children: "Deactivate in your wallet app. Takes ~1 epoch (~2 days)." })
|
|
3219
3298
|
] })
|
|
3220
3299
|
] }),
|
|
3221
3300
|
/* @__PURE__ */ f("div", { style: { display: "flex", gap: 10 }, children: [
|
|
@@ -3224,127 +3303,121 @@ function Nr() {
|
|
|
3224
3303
|
height: 20,
|
|
3225
3304
|
borderRadius: "50%",
|
|
3226
3305
|
flexShrink: 0,
|
|
3227
|
-
background:
|
|
3228
|
-
borderTop: `1px solid ${
|
|
3229
|
-
boxShadow: `inset 0 -1px 0 ${
|
|
3306
|
+
background: a.lowered,
|
|
3307
|
+
borderTop: `1px solid ${a.shadow}`,
|
|
3308
|
+
boxShadow: `inset 0 -1px 0 ${a.highlight}`,
|
|
3230
3309
|
display: "flex",
|
|
3231
3310
|
alignItems: "center",
|
|
3232
3311
|
justifyContent: "center",
|
|
3233
|
-
...
|
|
3312
|
+
...m(11, a.secondary)
|
|
3234
3313
|
}, children: "2" }),
|
|
3235
3314
|
/* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
3236
|
-
/* @__PURE__ */ i("p", { style:
|
|
3237
|
-
/* @__PURE__ */ i("p", { style:
|
|
3315
|
+
/* @__PURE__ */ i("p", { style: m(14, a.primary), children: "Withdraw to liquid SOL" }),
|
|
3316
|
+
/* @__PURE__ */ i("p", { style: m(11, a.secondary), children: "Once deactivated, withdraw to get liquid SOL." })
|
|
3238
3317
|
] })
|
|
3239
3318
|
] })
|
|
3240
3319
|
] }),
|
|
3241
|
-
/* @__PURE__ */ i(
|
|
3242
|
-
/* @__PURE__ */ i(
|
|
3320
|
+
/* @__PURE__ */ i(Ce, {}),
|
|
3321
|
+
/* @__PURE__ */ i(Re, { label: "Done", onClick: () => c() })
|
|
3243
3322
|
] })
|
|
3244
3323
|
] });
|
|
3245
3324
|
}
|
|
3246
|
-
const
|
|
3325
|
+
const Qr = {
|
|
3247
3326
|
"select-position": { step: 1, total: 4 },
|
|
3248
3327
|
"choose-amount": { step: 2, total: 4 },
|
|
3249
3328
|
"choose-duration": { step: 3, total: 4 },
|
|
3250
3329
|
"review-quote": { step: 4, total: 4 }
|
|
3251
|
-
},
|
|
3252
|
-
function
|
|
3253
|
-
return /* @__PURE__ */ f(
|
|
3254
|
-
/* @__PURE__ */ i(
|
|
3255
|
-
/* @__PURE__ */ i(
|
|
3330
|
+
}, Wr = "Each PT (Principal Token) is a 1:1 tokenised claim on your staked SOL. It accrues no rewards — those were sold upfront. Redeem at maturity to receive your full SOL stake back.";
|
|
3331
|
+
function ut({ screen: c, children: l }) {
|
|
3332
|
+
return /* @__PURE__ */ f(ve, { children: [
|
|
3333
|
+
/* @__PURE__ */ i(Ie, { style: { borderRadius: "10px 10px 0 0", borderTop: "none" }, children: /* @__PURE__ */ i("div", { className: "pye-step-in", children: l }, c) }),
|
|
3334
|
+
/* @__PURE__ */ i(Be, {})
|
|
3256
3335
|
] });
|
|
3257
3336
|
}
|
|
3258
|
-
function
|
|
3259
|
-
const
|
|
3260
|
-
if (
|
|
3261
|
-
const
|
|
3262
|
-
|
|
3263
|
-
}, [
|
|
3264
|
-
if (!
|
|
3265
|
-
|
|
3337
|
+
function Vr() {
|
|
3338
|
+
const c = F((A) => A.screen), l = F((A) => A.goBack), d = F((A) => A.reset), w = F((A) => A.navigate), g = xe((A) => A.publicKey), x = xe((A) => A.status), y = ae(null);
|
|
3339
|
+
if (re(() => {
|
|
3340
|
+
const A = x === "connected", E = c === "yield-forward-intro" || c === "connect-wallet";
|
|
3341
|
+
A && E ? w("welcome") : !A && !E && d();
|
|
3342
|
+
}, [x, c, w, d]), re(() => {
|
|
3343
|
+
if (!g) {
|
|
3344
|
+
y.current = null;
|
|
3266
3345
|
return;
|
|
3267
3346
|
}
|
|
3268
|
-
|
|
3269
|
-
}, [
|
|
3270
|
-
return /* @__PURE__ */ f(
|
|
3271
|
-
/* @__PURE__ */ i(
|
|
3272
|
-
/* @__PURE__ */ i(
|
|
3347
|
+
y.current && y.current !== g && (d(), w("welcome")), y.current = g;
|
|
3348
|
+
}, [g, d, w]), c === "complete")
|
|
3349
|
+
return /* @__PURE__ */ f(ve, { children: [
|
|
3350
|
+
/* @__PURE__ */ i(Hr, {}),
|
|
3351
|
+
/* @__PURE__ */ i(Be, {})
|
|
3273
3352
|
] });
|
|
3274
|
-
if (
|
|
3275
|
-
return /* @__PURE__ */ f(
|
|
3276
|
-
/* @__PURE__ */ i(
|
|
3277
|
-
/* @__PURE__ */ i(
|
|
3353
|
+
if (c === "redeem-complete")
|
|
3354
|
+
return /* @__PURE__ */ f(ve, { children: [
|
|
3355
|
+
/* @__PURE__ */ i(Yr, {}),
|
|
3356
|
+
/* @__PURE__ */ i(Be, {})
|
|
3278
3357
|
] });
|
|
3279
|
-
if (
|
|
3280
|
-
return /* @__PURE__ */ f(
|
|
3281
|
-
/* @__PURE__ */ i(
|
|
3282
|
-
/* @__PURE__ */ i(
|
|
3358
|
+
if (c === "welcome")
|
|
3359
|
+
return /* @__PURE__ */ f(ve, { children: [
|
|
3360
|
+
/* @__PURE__ */ i(xr, {}),
|
|
3361
|
+
/* @__PURE__ */ i(Be, {})
|
|
3283
3362
|
] });
|
|
3284
|
-
if (
|
|
3285
|
-
return /* @__PURE__ */ i(
|
|
3286
|
-
if (
|
|
3287
|
-
return /* @__PURE__ */ i(
|
|
3288
|
-
if (
|
|
3289
|
-
return /* @__PURE__ */ f(
|
|
3290
|
-
/* @__PURE__ */ i(it, { hideStep: !0, label: "Your positions", tooltipText:
|
|
3291
|
-
/* @__PURE__ */ i(
|
|
3292
|
-
/* @__PURE__ */ i(
|
|
3363
|
+
if (c === "yield-forward-intro")
|
|
3364
|
+
return /* @__PURE__ */ i(ut, { screen: c, children: /* @__PURE__ */ i(vr, {}) });
|
|
3365
|
+
if (c === "connect-wallet")
|
|
3366
|
+
return /* @__PURE__ */ i(ut, { screen: c, children: /* @__PURE__ */ i(br, {}) });
|
|
3367
|
+
if (c === "redeem-list")
|
|
3368
|
+
return /* @__PURE__ */ f(ve, { children: [
|
|
3369
|
+
/* @__PURE__ */ i(it, { hideStep: !0, label: "Your positions", tooltipText: Wr, onBack: l }),
|
|
3370
|
+
/* @__PURE__ */ i(Ur, {}),
|
|
3371
|
+
/* @__PURE__ */ i(Be, {})
|
|
3293
3372
|
] });
|
|
3294
|
-
const
|
|
3295
|
-
return /* @__PURE__ */ f(
|
|
3373
|
+
const o = Qr[c];
|
|
3374
|
+
return /* @__PURE__ */ f(ve, { children: [
|
|
3296
3375
|
/* @__PURE__ */ i(
|
|
3297
3376
|
it,
|
|
3298
3377
|
{
|
|
3299
|
-
step:
|
|
3300
|
-
total:
|
|
3301
|
-
hideStep: !(
|
|
3302
|
-
onBack:
|
|
3378
|
+
step: o == null ? void 0 : o.step,
|
|
3379
|
+
total: o == null ? void 0 : o.total,
|
|
3380
|
+
hideStep: !(o != null && o.step),
|
|
3381
|
+
onBack: l
|
|
3303
3382
|
}
|
|
3304
3383
|
),
|
|
3305
|
-
/* @__PURE__ */ i(
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
] },
|
|
3311
|
-
/* @__PURE__ */ i(
|
|
3384
|
+
/* @__PURE__ */ i(Ie, { children: /* @__PURE__ */ f("div", { className: "pye-step-in", children: [
|
|
3385
|
+
c === "select-position" && /* @__PURE__ */ i(Br, {}),
|
|
3386
|
+
c === "choose-amount" && /* @__PURE__ */ i(Ir, {}),
|
|
3387
|
+
c === "choose-duration" && /* @__PURE__ */ i(Tr, {}),
|
|
3388
|
+
c === "review-quote" && /* @__PURE__ */ i(Or, {})
|
|
3389
|
+
] }, c) }),
|
|
3390
|
+
/* @__PURE__ */ i(Be, {})
|
|
3312
3391
|
] });
|
|
3313
3392
|
}
|
|
3314
|
-
function
|
|
3315
|
-
const c =
|
|
3316
|
-
return
|
|
3393
|
+
function jr() {
|
|
3394
|
+
const c = xe((w) => w.publicKey), l = F((w) => w.resetForWalletChange), d = ae(null);
|
|
3395
|
+
return re(() => {
|
|
3317
3396
|
const w = c ? String(c) : null;
|
|
3318
|
-
|
|
3397
|
+
d.current !== null && d.current !== w && l(), d.current = w;
|
|
3319
3398
|
}, [c, l]), null;
|
|
3320
3399
|
}
|
|
3321
|
-
const
|
|
3322
|
-
function
|
|
3323
|
-
if (c) {
|
|
3324
|
-
for (const l of Object.values(Xe))
|
|
3325
|
-
if (l.vote_account === c) return l.name;
|
|
3326
|
-
}
|
|
3327
|
-
}
|
|
3328
|
-
function rn({
|
|
3400
|
+
const Gr = "7b89b9d2ef5d0298961c3eeb879793b0";
|
|
3401
|
+
function on({
|
|
3329
3402
|
rpcUrl: c,
|
|
3330
3403
|
supabaseUrl: l,
|
|
3331
|
-
supabaseAnonKey:
|
|
3404
|
+
supabaseAnonKey: d,
|
|
3332
3405
|
voteAccount: w,
|
|
3333
|
-
theme:
|
|
3334
|
-
onClose:
|
|
3406
|
+
theme: g = "pye-light",
|
|
3407
|
+
onClose: x
|
|
3335
3408
|
}) {
|
|
3336
|
-
const y =
|
|
3337
|
-
y.current || (Wt({ rpcUrl: c, supabaseUrl: l, supabaseAnonKey:
|
|
3338
|
-
const
|
|
3409
|
+
const y = ae(!1);
|
|
3410
|
+
y.current || (Wt({ rpcUrl: c, supabaseUrl: l, supabaseAnonKey: d, voteAccount: w }), y.current = !0);
|
|
3411
|
+
const o = Pe(
|
|
3339
3412
|
() => [
|
|
3340
|
-
new It(),
|
|
3341
|
-
new Ct(),
|
|
3342
|
-
new Rt(),
|
|
3343
3413
|
new Ft(),
|
|
3344
|
-
new Lt(
|
|
3345
|
-
|
|
3414
|
+
new Lt(),
|
|
3415
|
+
new Mt(),
|
|
3416
|
+
new Dt(),
|
|
3417
|
+
new Tt({
|
|
3418
|
+
network: Pt.Mainnet,
|
|
3346
3419
|
options: {
|
|
3347
|
-
projectId:
|
|
3420
|
+
projectId: Gr,
|
|
3348
3421
|
metadata: {
|
|
3349
3422
|
name: "Pye",
|
|
3350
3423
|
description: "Earn staking rewards upfront",
|
|
@@ -3355,22 +3428,24 @@ function rn({
|
|
|
3355
3428
|
})
|
|
3356
3429
|
],
|
|
3357
3430
|
[]
|
|
3358
|
-
),
|
|
3359
|
-
return
|
|
3360
|
-
/* @__PURE__ */ i("style", { children:
|
|
3361
|
-
/* @__PURE__ */ i(
|
|
3431
|
+
), A = ae(void 0);
|
|
3432
|
+
return A.current || (A.current = ir()), /* @__PURE__ */ f("div", { "data-theme": g, children: [
|
|
3433
|
+
/* @__PURE__ */ i("style", { children: or }),
|
|
3434
|
+
/* @__PURE__ */ i(Ct, { endpoint: c, children: /* @__PURE__ */ i(Rt, { wallets: o, autoConnect: !0, children: /* @__PURE__ */ f(Vt, { children: [
|
|
3362
3435
|
/* @__PURE__ */ i(jt, {}),
|
|
3363
|
-
/* @__PURE__ */ i(Vt, {}),
|
|
3364
3436
|
/* @__PURE__ */ i(Gt, {}),
|
|
3365
3437
|
/* @__PURE__ */ i(Jt, {}),
|
|
3366
|
-
/* @__PURE__ */
|
|
3367
|
-
|
|
3368
|
-
|
|
3438
|
+
/* @__PURE__ */ i(Kt, {}),
|
|
3439
|
+
/* @__PURE__ */ i(qt, {}),
|
|
3440
|
+
/* @__PURE__ */ i(zt, {}),
|
|
3441
|
+
/* @__PURE__ */ f(At.Provider, { value: A.current, children: [
|
|
3442
|
+
/* @__PURE__ */ i(jr, {}),
|
|
3443
|
+
/* @__PURE__ */ i(Vr, {})
|
|
3369
3444
|
] })
|
|
3370
3445
|
] }) }) })
|
|
3371
3446
|
] });
|
|
3372
3447
|
}
|
|
3373
3448
|
export {
|
|
3374
|
-
|
|
3449
|
+
on as PyeWidget
|
|
3375
3450
|
};
|
|
3376
3451
|
//# sourceMappingURL=pye-widget.es.js.map
|