@antigane/wallet-adapters 0.0.8 → 0.0.9
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/ConnectButton.d.ts +2 -1
- package/dist/index.cjs +8 -8
- package/dist/index.js +110 -106
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -287,7 +287,7 @@ var Zy;
|
|
|
287
287
|
function qT() {
|
|
288
288
|
return Zy || (Zy = 1, process.env.NODE_ENV === "production" ? uu.exports = HT() : uu.exports = zT()), uu.exports;
|
|
289
289
|
}
|
|
290
|
-
var
|
|
290
|
+
var Et = qT();
|
|
291
291
|
function WT(t, e = 5, n = 4) {
|
|
292
292
|
return t ? t.length <= e + n + 3 ? t : `${t.slice(0, e)}...${t.slice(-n)}` : "-";
|
|
293
293
|
}
|
|
@@ -2239,7 +2239,7 @@ function qO({ children: t, isPresent: e, anchorX: n, root: r }) {
|
|
|
2239
2239
|
`), () => {
|
|
2240
2240
|
E.contains(b) && E.removeChild(b);
|
|
2241
2241
|
};
|
|
2242
|
-
}, [e]),
|
|
2242
|
+
}, [e]), Et.jsx(zO, { isPresent: e, childRef: s, sizeRef: o, children: Of.cloneElement(t, { ref: l }) });
|
|
2243
2243
|
}
|
|
2244
2244
|
const WO = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: s, mode: o, anchorX: a, root: c }) => {
|
|
2245
2245
|
const l = qm(GO), u = Vm();
|
|
@@ -2261,7 +2261,7 @@ const WO = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom:
|
|
|
2261
2261
|
l.forEach((g, v) => l.set(v, !1));
|
|
2262
2262
|
}, [n]), Of.useEffect(() => {
|
|
2263
2263
|
!n && !l.size && r && r();
|
|
2264
|
-
}, [n]), o === "popLayout" && (t =
|
|
2264
|
+
}, [n]), o === "popLayout" && (t = Et.jsx(qO, { isPresent: n, anchorX: a, root: c, children: t })), Et.jsx(Nf.Provider, { value: f, children: t });
|
|
2265
2265
|
};
|
|
2266
2266
|
function GO() {
|
|
2267
2267
|
return /* @__PURE__ */ new Map();
|
|
@@ -2305,7 +2305,7 @@ const YO = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, presen
|
|
|
2305
2305
|
}
|
|
2306
2306
|
process.env.NODE_ENV !== "production" && s === "wait" && S.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
2307
2307
|
const { forceRender: z } = gr(zm);
|
|
2308
|
-
return
|
|
2308
|
+
return Et.jsx(Et.Fragment, { children: S.map((X) => {
|
|
2309
2309
|
const Y = hu(X), U = o && !l ? !1 : d === S || f.includes(Y), B = () => {
|
|
2310
2310
|
if (b.current.has(Y))
|
|
2311
2311
|
return;
|
|
@@ -2318,7 +2318,7 @@ const YO = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, presen
|
|
|
2318
2318
|
V || (H = !1);
|
|
2319
2319
|
}), H && (z?.(), F(v.current), o && u?.(), r && r());
|
|
2320
2320
|
};
|
|
2321
|
-
return
|
|
2321
|
+
return Et.jsx(WO, { isPresent: U, initial: !g.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: i, mode: s, root: c, onExitComplete: U ? void 0 : B, anchorX: a, children: X }, Y);
|
|
2322
2322
|
}) });
|
|
2323
2323
|
}, dS = gc({ strict: !1 }), _w = {
|
|
2324
2324
|
animation: [
|
|
@@ -2838,7 +2838,7 @@ function Eh(t, { forwardMotionProps: e = !1, type: n } = {}, r, i) {
|
|
|
2838
2838
|
const b = I3(f);
|
|
2839
2839
|
d = b.MeasureLayout, v.visualElement = S3(t, w, f, i, b.ProjectionNode, s);
|
|
2840
2840
|
}
|
|
2841
|
-
return
|
|
2841
|
+
return Et.jsxs(Pf.Provider, { value: v, children: [d && v.visualElement ? Et.jsx(d, { visualElement: v.visualElement, ...f }) : null, m3(t, l, b3(w, v.visualElement, u), w, g, e, s)] });
|
|
2842
2842
|
}
|
|
2843
2843
|
a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
|
|
2844
2844
|
const c = VT(a);
|
|
@@ -4226,7 +4226,7 @@ class kN extends jT {
|
|
|
4226
4226
|
}
|
|
4227
4227
|
function VS(t) {
|
|
4228
4228
|
const [e, n] = uS(), r = gr(zm);
|
|
4229
|
-
return
|
|
4229
|
+
return Et.jsx(kN, { ...t, layoutGroup: r, switchLayoutGroup: gr(_S), isPresent: e, safeToRemove: n });
|
|
4230
4230
|
}
|
|
4231
4231
|
function DN(t, e, n) {
|
|
4232
4232
|
const r = vr(t) ? t : Qa(t);
|
|
@@ -5131,7 +5131,7 @@ const x6 = {
|
|
|
5131
5131
|
className: e,
|
|
5132
5132
|
// Memisahkan className agar bisa digabung jika perlu
|
|
5133
5133
|
...n
|
|
5134
|
-
}) => /* @__PURE__ */
|
|
5134
|
+
}) => /* @__PURE__ */ Et.jsx(
|
|
5135
5135
|
"button",
|
|
5136
5136
|
{
|
|
5137
5137
|
...n,
|
|
@@ -23317,7 +23317,7 @@ function wy() {
|
|
|
23317
23317
|
}
|
|
23318
23318
|
})(Np)), Np;
|
|
23319
23319
|
}
|
|
23320
|
-
var
|
|
23320
|
+
var wt = wy(), _n = /* @__PURE__ */ ((t) => (t.SOLANA_MAINNET = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", t.SOLANA_DEVNET = "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1", t.SOLANA_TESTNET = "solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z", t.ETHEREUM_MAINNET = "eip155:1", t.ETHEREUM_SEPOLIA = "eip155:11155111", t.POLYGON_MAINNET = "eip155:137", t.POLYGON_AMOY = "eip155:80002", t.BASE_MAINNET = "eip155:8453", t.BASE_SEPOLIA = "eip155:84532", t.ARBITRUM_ONE = "eip155:42161", t.ARBITRUM_SEPOLIA = "eip155:421614", t.MONAD_MAINNET = "eip155:143", t.MONAD_TESTNET = "eip155:10143", t.BITCOIN_MAINNET = "bip122:000000000019d6689c085ae165831e93", t.BITCOIN_TESTNET = "bip122:000000000933ea01ad0ee984209779ba", t.SUI_MAINNET = "sui:35834a8a", t.SUI_TESTNET = "sui:4c78adac", t.SUI_DEVNET = "sui:devnet", t))(_n || {}), ta = {
|
|
23321
23321
|
// Solana Networks
|
|
23322
23322
|
"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": {
|
|
23323
23323
|
name: "Solana Mainnet",
|
|
@@ -23698,12 +23698,12 @@ function aL() {
|
|
|
23698
23698
|
return w(K, W, G, O, 32);
|
|
23699
23699
|
}
|
|
23700
23700
|
function M(K, W, G, O) {
|
|
23701
|
-
for (var J = O[0] & 255 | (O[1] & 255) << 8 | (O[2] & 255) << 16 | (O[3] & 255) << 24, ce = G[0] & 255 | (G[1] & 255) << 8 | (G[2] & 255) << 16 | (G[3] & 255) << 24, ae = G[4] & 255 | (G[5] & 255) << 8 | (G[6] & 255) << 16 | (G[7] & 255) << 24, Ee = G[8] & 255 | (G[9] & 255) << 8 | (G[10] & 255) << 16 | (G[11] & 255) << 24, ke = G[12] & 255 | (G[13] & 255) << 8 | (G[14] & 255) << 16 | (G[15] & 255) << 24, Ve = O[4] & 255 | (O[5] & 255) << 8 | (O[6] & 255) << 16 | (O[7] & 255) << 24, De = W[0] & 255 | (W[1] & 255) << 8 | (W[2] & 255) << 16 | (W[3] & 255) << 24, Bt = W[4] & 255 | (W[5] & 255) << 8 | (W[6] & 255) << 16 | (W[7] & 255) << 24, We = W[8] & 255 | (W[9] & 255) << 8 | (W[10] & 255) << 16 | (W[11] & 255) << 24, dt = W[12] & 255 | (W[13] & 255) << 8 | (W[14] & 255) << 16 | (W[15] & 255) << 24, ft = O[8] & 255 | (O[9] & 255) << 8 | (O[10] & 255) << 16 | (O[11] & 255) << 24, _t = G[16] & 255 | (G[17] & 255) << 8 | (G[18] & 255) << 16 | (G[19] & 255) << 24,
|
|
23701
|
+
for (var J = O[0] & 255 | (O[1] & 255) << 8 | (O[2] & 255) << 16 | (O[3] & 255) << 24, ce = G[0] & 255 | (G[1] & 255) << 8 | (G[2] & 255) << 16 | (G[3] & 255) << 24, ae = G[4] & 255 | (G[5] & 255) << 8 | (G[6] & 255) << 16 | (G[7] & 255) << 24, Ee = G[8] & 255 | (G[9] & 255) << 8 | (G[10] & 255) << 16 | (G[11] & 255) << 24, ke = G[12] & 255 | (G[13] & 255) << 8 | (G[14] & 255) << 16 | (G[15] & 255) << 24, Ve = O[4] & 255 | (O[5] & 255) << 8 | (O[6] & 255) << 16 | (O[7] & 255) << 24, De = W[0] & 255 | (W[1] & 255) << 8 | (W[2] & 255) << 16 | (W[3] & 255) << 24, Bt = W[4] & 255 | (W[5] & 255) << 8 | (W[6] & 255) << 16 | (W[7] & 255) << 24, We = W[8] & 255 | (W[9] & 255) << 8 | (W[10] & 255) << 16 | (W[11] & 255) << 24, dt = W[12] & 255 | (W[13] & 255) << 8 | (W[14] & 255) << 16 | (W[15] & 255) << 24, ft = O[8] & 255 | (O[9] & 255) << 8 | (O[10] & 255) << 16 | (O[11] & 255) << 24, _t = G[16] & 255 | (G[17] & 255) << 8 | (G[18] & 255) << 16 | (G[19] & 255) << 24, vt = G[20] & 255 | (G[21] & 255) << 8 | (G[22] & 255) << 16 | (G[23] & 255) << 24, ht = G[24] & 255 | (G[25] & 255) << 8 | (G[26] & 255) << 16 | (G[27] & 255) << 24, mt = G[28] & 255 | (G[29] & 255) << 8 | (G[30] & 255) << 16 | (G[31] & 255) << 24, pt = O[12] & 255 | (O[13] & 255) << 8 | (O[14] & 255) << 16 | (O[15] & 255) << 24, Ze = J, it = ce, qe = ae, Xe = Ee, rt = ke, ze = Ve, me = De, ge = Bt, Ie = We, xe = dt, Re = ft, Me = _t, ut = vt, At = ht, Tt = mt, Rt = pt, re, Dt = 0; Dt < 20; Dt += 2)
|
|
23702
23702
|
re = Ze + ut | 0, rt ^= re << 7 | re >>> 25, re = rt + Ze | 0, Ie ^= re << 9 | re >>> 23, re = Ie + rt | 0, ut ^= re << 13 | re >>> 19, re = ut + Ie | 0, Ze ^= re << 18 | re >>> 14, re = ze + it | 0, xe ^= re << 7 | re >>> 25, re = xe + ze | 0, At ^= re << 9 | re >>> 23, re = At + xe | 0, it ^= re << 13 | re >>> 19, re = it + At | 0, ze ^= re << 18 | re >>> 14, re = Re + me | 0, Tt ^= re << 7 | re >>> 25, re = Tt + Re | 0, qe ^= re << 9 | re >>> 23, re = qe + Tt | 0, me ^= re << 13 | re >>> 19, re = me + qe | 0, Re ^= re << 18 | re >>> 14, re = Rt + Me | 0, Xe ^= re << 7 | re >>> 25, re = Xe + Rt | 0, ge ^= re << 9 | re >>> 23, re = ge + Xe | 0, Me ^= re << 13 | re >>> 19, re = Me + ge | 0, Rt ^= re << 18 | re >>> 14, re = Ze + Xe | 0, it ^= re << 7 | re >>> 25, re = it + Ze | 0, qe ^= re << 9 | re >>> 23, re = qe + it | 0, Xe ^= re << 13 | re >>> 19, re = Xe + qe | 0, Ze ^= re << 18 | re >>> 14, re = ze + rt | 0, me ^= re << 7 | re >>> 25, re = me + ze | 0, ge ^= re << 9 | re >>> 23, re = ge + me | 0, rt ^= re << 13 | re >>> 19, re = rt + ge | 0, ze ^= re << 18 | re >>> 14, re = Re + xe | 0, Me ^= re << 7 | re >>> 25, re = Me + Re | 0, Ie ^= re << 9 | re >>> 23, re = Ie + Me | 0, xe ^= re << 13 | re >>> 19, re = xe + Ie | 0, Re ^= re << 18 | re >>> 14, re = Rt + Tt | 0, ut ^= re << 7 | re >>> 25, re = ut + Rt | 0, At ^= re << 9 | re >>> 23, re = At + ut | 0, Tt ^= re << 13 | re >>> 19, re = Tt + At | 0, Rt ^= re << 18 | re >>> 14;
|
|
23703
|
-
Ze = Ze + J | 0, it = it + ce | 0, qe = qe + ae | 0, Xe = Xe + Ee | 0, rt = rt + ke | 0, ze = ze + Ve | 0, me = me + De | 0, ge = ge + Bt | 0, Ie = Ie + We | 0, xe = xe + dt | 0, Re = Re + ft | 0, Me = Me + _t | 0, ut = ut +
|
|
23703
|
+
Ze = Ze + J | 0, it = it + ce | 0, qe = qe + ae | 0, Xe = Xe + Ee | 0, rt = rt + ke | 0, ze = ze + Ve | 0, me = me + De | 0, ge = ge + Bt | 0, Ie = Ie + We | 0, xe = xe + dt | 0, Re = Re + ft | 0, Me = Me + _t | 0, ut = ut + vt | 0, At = At + ht | 0, Tt = Tt + mt | 0, Rt = Rt + pt | 0, K[0] = Ze >>> 0 & 255, K[1] = Ze >>> 8 & 255, K[2] = Ze >>> 16 & 255, K[3] = Ze >>> 24 & 255, K[4] = it >>> 0 & 255, K[5] = it >>> 8 & 255, K[6] = it >>> 16 & 255, K[7] = it >>> 24 & 255, K[8] = qe >>> 0 & 255, K[9] = qe >>> 8 & 255, K[10] = qe >>> 16 & 255, K[11] = qe >>> 24 & 255, K[12] = Xe >>> 0 & 255, K[13] = Xe >>> 8 & 255, K[14] = Xe >>> 16 & 255, K[15] = Xe >>> 24 & 255, K[16] = rt >>> 0 & 255, K[17] = rt >>> 8 & 255, K[18] = rt >>> 16 & 255, K[19] = rt >>> 24 & 255, K[20] = ze >>> 0 & 255, K[21] = ze >>> 8 & 255, K[22] = ze >>> 16 & 255, K[23] = ze >>> 24 & 255, K[24] = me >>> 0 & 255, K[25] = me >>> 8 & 255, K[26] = me >>> 16 & 255, K[27] = me >>> 24 & 255, K[28] = ge >>> 0 & 255, K[29] = ge >>> 8 & 255, K[30] = ge >>> 16 & 255, K[31] = ge >>> 24 & 255, K[32] = Ie >>> 0 & 255, K[33] = Ie >>> 8 & 255, K[34] = Ie >>> 16 & 255, K[35] = Ie >>> 24 & 255, K[36] = xe >>> 0 & 255, K[37] = xe >>> 8 & 255, K[38] = xe >>> 16 & 255, K[39] = xe >>> 24 & 255, K[40] = Re >>> 0 & 255, K[41] = Re >>> 8 & 255, K[42] = Re >>> 16 & 255, K[43] = Re >>> 24 & 255, K[44] = Me >>> 0 & 255, K[45] = Me >>> 8 & 255, K[46] = Me >>> 16 & 255, K[47] = Me >>> 24 & 255, K[48] = ut >>> 0 & 255, K[49] = ut >>> 8 & 255, K[50] = ut >>> 16 & 255, K[51] = ut >>> 24 & 255, K[52] = At >>> 0 & 255, K[53] = At >>> 8 & 255, K[54] = At >>> 16 & 255, K[55] = At >>> 24 & 255, K[56] = Tt >>> 0 & 255, K[57] = Tt >>> 8 & 255, K[58] = Tt >>> 16 & 255, K[59] = Tt >>> 24 & 255, K[60] = Rt >>> 0 & 255, K[61] = Rt >>> 8 & 255, K[62] = Rt >>> 16 & 255, K[63] = Rt >>> 24 & 255;
|
|
23704
23704
|
}
|
|
23705
23705
|
function S(K, W, G, O) {
|
|
23706
|
-
for (var J = O[0] & 255 | (O[1] & 255) << 8 | (O[2] & 255) << 16 | (O[3] & 255) << 24, ce = G[0] & 255 | (G[1] & 255) << 8 | (G[2] & 255) << 16 | (G[3] & 255) << 24, ae = G[4] & 255 | (G[5] & 255) << 8 | (G[6] & 255) << 16 | (G[7] & 255) << 24, Ee = G[8] & 255 | (G[9] & 255) << 8 | (G[10] & 255) << 16 | (G[11] & 255) << 24, ke = G[12] & 255 | (G[13] & 255) << 8 | (G[14] & 255) << 16 | (G[15] & 255) << 24, Ve = O[4] & 255 | (O[5] & 255) << 8 | (O[6] & 255) << 16 | (O[7] & 255) << 24, De = W[0] & 255 | (W[1] & 255) << 8 | (W[2] & 255) << 16 | (W[3] & 255) << 24, Bt = W[4] & 255 | (W[5] & 255) << 8 | (W[6] & 255) << 16 | (W[7] & 255) << 24, We = W[8] & 255 | (W[9] & 255) << 8 | (W[10] & 255) << 16 | (W[11] & 255) << 24, dt = W[12] & 255 | (W[13] & 255) << 8 | (W[14] & 255) << 16 | (W[15] & 255) << 24, ft = O[8] & 255 | (O[9] & 255) << 8 | (O[10] & 255) << 16 | (O[11] & 255) << 24, _t = G[16] & 255 | (G[17] & 255) << 8 | (G[18] & 255) << 16 | (G[19] & 255) << 24,
|
|
23706
|
+
for (var J = O[0] & 255 | (O[1] & 255) << 8 | (O[2] & 255) << 16 | (O[3] & 255) << 24, ce = G[0] & 255 | (G[1] & 255) << 8 | (G[2] & 255) << 16 | (G[3] & 255) << 24, ae = G[4] & 255 | (G[5] & 255) << 8 | (G[6] & 255) << 16 | (G[7] & 255) << 24, Ee = G[8] & 255 | (G[9] & 255) << 8 | (G[10] & 255) << 16 | (G[11] & 255) << 24, ke = G[12] & 255 | (G[13] & 255) << 8 | (G[14] & 255) << 16 | (G[15] & 255) << 24, Ve = O[4] & 255 | (O[5] & 255) << 8 | (O[6] & 255) << 16 | (O[7] & 255) << 24, De = W[0] & 255 | (W[1] & 255) << 8 | (W[2] & 255) << 16 | (W[3] & 255) << 24, Bt = W[4] & 255 | (W[5] & 255) << 8 | (W[6] & 255) << 16 | (W[7] & 255) << 24, We = W[8] & 255 | (W[9] & 255) << 8 | (W[10] & 255) << 16 | (W[11] & 255) << 24, dt = W[12] & 255 | (W[13] & 255) << 8 | (W[14] & 255) << 16 | (W[15] & 255) << 24, ft = O[8] & 255 | (O[9] & 255) << 8 | (O[10] & 255) << 16 | (O[11] & 255) << 24, _t = G[16] & 255 | (G[17] & 255) << 8 | (G[18] & 255) << 16 | (G[19] & 255) << 24, vt = G[20] & 255 | (G[21] & 255) << 8 | (G[22] & 255) << 16 | (G[23] & 255) << 24, ht = G[24] & 255 | (G[25] & 255) << 8 | (G[26] & 255) << 16 | (G[27] & 255) << 24, mt = G[28] & 255 | (G[29] & 255) << 8 | (G[30] & 255) << 16 | (G[31] & 255) << 24, pt = O[12] & 255 | (O[13] & 255) << 8 | (O[14] & 255) << 16 | (O[15] & 255) << 24, Ze = J, it = ce, qe = ae, Xe = Ee, rt = ke, ze = Ve, me = De, ge = Bt, Ie = We, xe = dt, Re = ft, Me = _t, ut = vt, At = ht, Tt = mt, Rt = pt, re, Dt = 0; Dt < 20; Dt += 2)
|
|
23707
23707
|
re = Ze + ut | 0, rt ^= re << 7 | re >>> 25, re = rt + Ze | 0, Ie ^= re << 9 | re >>> 23, re = Ie + rt | 0, ut ^= re << 13 | re >>> 19, re = ut + Ie | 0, Ze ^= re << 18 | re >>> 14, re = ze + it | 0, xe ^= re << 7 | re >>> 25, re = xe + ze | 0, At ^= re << 9 | re >>> 23, re = At + xe | 0, it ^= re << 13 | re >>> 19, re = it + At | 0, ze ^= re << 18 | re >>> 14, re = Re + me | 0, Tt ^= re << 7 | re >>> 25, re = Tt + Re | 0, qe ^= re << 9 | re >>> 23, re = qe + Tt | 0, me ^= re << 13 | re >>> 19, re = me + qe | 0, Re ^= re << 18 | re >>> 14, re = Rt + Me | 0, Xe ^= re << 7 | re >>> 25, re = Xe + Rt | 0, ge ^= re << 9 | re >>> 23, re = ge + Xe | 0, Me ^= re << 13 | re >>> 19, re = Me + ge | 0, Rt ^= re << 18 | re >>> 14, re = Ze + Xe | 0, it ^= re << 7 | re >>> 25, re = it + Ze | 0, qe ^= re << 9 | re >>> 23, re = qe + it | 0, Xe ^= re << 13 | re >>> 19, re = Xe + qe | 0, Ze ^= re << 18 | re >>> 14, re = ze + rt | 0, me ^= re << 7 | re >>> 25, re = me + ze | 0, ge ^= re << 9 | re >>> 23, re = ge + me | 0, rt ^= re << 13 | re >>> 19, re = rt + ge | 0, ze ^= re << 18 | re >>> 14, re = Re + xe | 0, Me ^= re << 7 | re >>> 25, re = Me + Re | 0, Ie ^= re << 9 | re >>> 23, re = Ie + Me | 0, xe ^= re << 13 | re >>> 19, re = xe + Ie | 0, Re ^= re << 18 | re >>> 14, re = Rt + Tt | 0, ut ^= re << 7 | re >>> 25, re = ut + Rt | 0, At ^= re << 9 | re >>> 23, re = At + ut | 0, Tt ^= re << 13 | re >>> 19, re = Tt + At | 0, Rt ^= re << 18 | re >>> 14;
|
|
23708
23708
|
K[0] = Ze >>> 0 & 255, K[1] = Ze >>> 8 & 255, K[2] = Ze >>> 16 & 255, K[3] = Ze >>> 24 & 255, K[4] = ze >>> 0 & 255, K[5] = ze >>> 8 & 255, K[6] = ze >>> 16 & 255, K[7] = ze >>> 24 & 255, K[8] = Re >>> 0 & 255, K[9] = Re >>> 8 & 255, K[10] = Re >>> 16 & 255, K[11] = Re >>> 24 & 255, K[12] = Rt >>> 0 & 255, K[13] = Rt >>> 8 & 255, K[14] = Rt >>> 16 & 255, K[15] = Rt >>> 24 & 255, K[16] = me >>> 0 & 255, K[17] = me >>> 8 & 255, K[18] = me >>> 16 & 255, K[19] = me >>> 24 & 255, K[20] = ge >>> 0 & 255, K[21] = ge >>> 8 & 255, K[22] = ge >>> 16 & 255, K[23] = ge >>> 24 & 255, K[24] = Ie >>> 0 & 255, K[25] = Ie >>> 8 & 255, K[26] = Ie >>> 16 & 255, K[27] = Ie >>> 24 & 255, K[28] = xe >>> 0 & 255, K[29] = xe >>> 8 & 255, K[30] = xe >>> 16 & 255, K[31] = xe >>> 24 & 255;
|
|
23709
23709
|
}
|
|
@@ -23760,8 +23760,8 @@ function aL() {
|
|
|
23760
23760
|
W = K[0] & 255 | (K[1] & 255) << 8, this.r[0] = W & 8191, G = K[2] & 255 | (K[3] & 255) << 8, this.r[1] = (W >>> 13 | G << 3) & 8191, O = K[4] & 255 | (K[5] & 255) << 8, this.r[2] = (G >>> 10 | O << 6) & 7939, J = K[6] & 255 | (K[7] & 255) << 8, this.r[3] = (O >>> 7 | J << 9) & 8191, ce = K[8] & 255 | (K[9] & 255) << 8, this.r[4] = (J >>> 4 | ce << 12) & 255, this.r[5] = ce >>> 1 & 8190, ae = K[10] & 255 | (K[11] & 255) << 8, this.r[6] = (ce >>> 14 | ae << 2) & 8191, Ee = K[12] & 255 | (K[13] & 255) << 8, this.r[7] = (ae >>> 11 | Ee << 5) & 8065, ke = K[14] & 255 | (K[15] & 255) << 8, this.r[8] = (Ee >>> 8 | ke << 8) & 8191, this.r[9] = ke >>> 5 & 127, this.pad[0] = K[16] & 255 | (K[17] & 255) << 8, this.pad[1] = K[18] & 255 | (K[19] & 255) << 8, this.pad[2] = K[20] & 255 | (K[21] & 255) << 8, this.pad[3] = K[22] & 255 | (K[23] & 255) << 8, this.pad[4] = K[24] & 255 | (K[25] & 255) << 8, this.pad[5] = K[26] & 255 | (K[27] & 255) << 8, this.pad[6] = K[28] & 255 | (K[29] & 255) << 8, this.pad[7] = K[30] & 255 | (K[31] & 255) << 8;
|
|
23761
23761
|
};
|
|
23762
23762
|
H.prototype.blocks = function(K, W, G) {
|
|
23763
|
-
for (var O = this.fin ? 0 : 2048, J, ce, ae, Ee, ke, Ve, De, Bt, We, dt, ft, _t,
|
|
23764
|
-
J = K[W + 0] & 255 | (K[W + 1] & 255) << 8, Xe += J & 8191, ce = K[W + 2] & 255 | (K[W + 3] & 255) << 8, rt += (J >>> 13 | ce << 3) & 8191, ae = K[W + 4] & 255 | (K[W + 5] & 255) << 8, ze += (ce >>> 10 | ae << 6) & 8191, Ee = K[W + 6] & 255 | (K[W + 7] & 255) << 8, me += (ae >>> 7 | Ee << 9) & 8191, ke = K[W + 8] & 255 | (K[W + 9] & 255) << 8, ge += (Ee >>> 4 | ke << 12) & 8191, Ie += ke >>> 1 & 8191, Ve = K[W + 10] & 255 | (K[W + 11] & 255) << 8, xe += (ke >>> 14 | Ve << 2) & 8191, De = K[W + 12] & 255 | (K[W + 13] & 255) << 8, Re += (Ve >>> 11 | De << 5) & 8191, Bt = K[W + 14] & 255 | (K[W + 15] & 255) << 8, Me += (De >>> 8 | Bt << 8) & 8191, ut += Bt >>> 5 | O, We = 0, dt = We, dt += Xe * At, dt += rt * (5 * Vt), dt += ze * (5 * Kt), dt += me * (5 * Ct), dt += ge * (5 * zt), We = dt >>> 13, dt &= 8191, dt += Ie * (5 * Ht), dt += xe * (5 * Dt), dt += Re * (5 * re), dt += Me * (5 * Rt), dt += ut * (5 * Tt), We += dt >>> 13, dt &= 8191, ft = We, ft += Xe * Tt, ft += rt * At, ft += ze * (5 * Vt), ft += me * (5 * Kt), ft += ge * (5 * Ct), We = ft >>> 13, ft &= 8191, ft += Ie * (5 * zt), ft += xe * (5 * Ht), ft += Re * (5 * Dt), ft += Me * (5 * re), ft += ut * (5 * Rt), We += ft >>> 13, ft &= 8191, _t = We, _t += Xe * Rt, _t += rt * Tt, _t += ze * At, _t += me * (5 * Vt), _t += ge * (5 * Kt), We = _t >>> 13, _t &= 8191, _t += Ie * (5 * Ct), _t += xe * (5 * zt), _t += Re * (5 * Ht), _t += Me * (5 * Dt), _t += ut * (5 * re), We += _t >>> 13, _t &= 8191,
|
|
23763
|
+
for (var O = this.fin ? 0 : 2048, J, ce, ae, Ee, ke, Ve, De, Bt, We, dt, ft, _t, vt, ht, mt, pt, Ze, it, qe, Xe = this.h[0], rt = this.h[1], ze = this.h[2], me = this.h[3], ge = this.h[4], Ie = this.h[5], xe = this.h[6], Re = this.h[7], Me = this.h[8], ut = this.h[9], At = this.r[0], Tt = this.r[1], Rt = this.r[2], re = this.r[3], Dt = this.r[4], Ht = this.r[5], zt = this.r[6], Ct = this.r[7], Kt = this.r[8], Vt = this.r[9]; G >= 16; )
|
|
23764
|
+
J = K[W + 0] & 255 | (K[W + 1] & 255) << 8, Xe += J & 8191, ce = K[W + 2] & 255 | (K[W + 3] & 255) << 8, rt += (J >>> 13 | ce << 3) & 8191, ae = K[W + 4] & 255 | (K[W + 5] & 255) << 8, ze += (ce >>> 10 | ae << 6) & 8191, Ee = K[W + 6] & 255 | (K[W + 7] & 255) << 8, me += (ae >>> 7 | Ee << 9) & 8191, ke = K[W + 8] & 255 | (K[W + 9] & 255) << 8, ge += (Ee >>> 4 | ke << 12) & 8191, Ie += ke >>> 1 & 8191, Ve = K[W + 10] & 255 | (K[W + 11] & 255) << 8, xe += (ke >>> 14 | Ve << 2) & 8191, De = K[W + 12] & 255 | (K[W + 13] & 255) << 8, Re += (Ve >>> 11 | De << 5) & 8191, Bt = K[W + 14] & 255 | (K[W + 15] & 255) << 8, Me += (De >>> 8 | Bt << 8) & 8191, ut += Bt >>> 5 | O, We = 0, dt = We, dt += Xe * At, dt += rt * (5 * Vt), dt += ze * (5 * Kt), dt += me * (5 * Ct), dt += ge * (5 * zt), We = dt >>> 13, dt &= 8191, dt += Ie * (5 * Ht), dt += xe * (5 * Dt), dt += Re * (5 * re), dt += Me * (5 * Rt), dt += ut * (5 * Tt), We += dt >>> 13, dt &= 8191, ft = We, ft += Xe * Tt, ft += rt * At, ft += ze * (5 * Vt), ft += me * (5 * Kt), ft += ge * (5 * Ct), We = ft >>> 13, ft &= 8191, ft += Ie * (5 * zt), ft += xe * (5 * Ht), ft += Re * (5 * Dt), ft += Me * (5 * re), ft += ut * (5 * Rt), We += ft >>> 13, ft &= 8191, _t = We, _t += Xe * Rt, _t += rt * Tt, _t += ze * At, _t += me * (5 * Vt), _t += ge * (5 * Kt), We = _t >>> 13, _t &= 8191, _t += Ie * (5 * Ct), _t += xe * (5 * zt), _t += Re * (5 * Ht), _t += Me * (5 * Dt), _t += ut * (5 * re), We += _t >>> 13, _t &= 8191, vt = We, vt += Xe * re, vt += rt * Rt, vt += ze * Tt, vt += me * At, vt += ge * (5 * Vt), We = vt >>> 13, vt &= 8191, vt += Ie * (5 * Kt), vt += xe * (5 * Ct), vt += Re * (5 * zt), vt += Me * (5 * Ht), vt += ut * (5 * Dt), We += vt >>> 13, vt &= 8191, ht = We, ht += Xe * Dt, ht += rt * re, ht += ze * Rt, ht += me * Tt, ht += ge * At, We = ht >>> 13, ht &= 8191, ht += Ie * (5 * Vt), ht += xe * (5 * Kt), ht += Re * (5 * Ct), ht += Me * (5 * zt), ht += ut * (5 * Ht), We += ht >>> 13, ht &= 8191, mt = We, mt += Xe * Ht, mt += rt * Dt, mt += ze * re, mt += me * Rt, mt += ge * Tt, We = mt >>> 13, mt &= 8191, mt += Ie * At, mt += xe * (5 * Vt), mt += Re * (5 * Kt), mt += Me * (5 * Ct), mt += ut * (5 * zt), We += mt >>> 13, mt &= 8191, pt = We, pt += Xe * zt, pt += rt * Ht, pt += ze * Dt, pt += me * re, pt += ge * Rt, We = pt >>> 13, pt &= 8191, pt += Ie * Tt, pt += xe * At, pt += Re * (5 * Vt), pt += Me * (5 * Kt), pt += ut * (5 * Ct), We += pt >>> 13, pt &= 8191, Ze = We, Ze += Xe * Ct, Ze += rt * zt, Ze += ze * Ht, Ze += me * Dt, Ze += ge * re, We = Ze >>> 13, Ze &= 8191, Ze += Ie * Rt, Ze += xe * Tt, Ze += Re * At, Ze += Me * (5 * Vt), Ze += ut * (5 * Kt), We += Ze >>> 13, Ze &= 8191, it = We, it += Xe * Kt, it += rt * Ct, it += ze * zt, it += me * Ht, it += ge * Dt, We = it >>> 13, it &= 8191, it += Ie * re, it += xe * Rt, it += Re * Tt, it += Me * At, it += ut * (5 * Vt), We += it >>> 13, it &= 8191, qe = We, qe += Xe * Vt, qe += rt * Kt, qe += ze * Ct, qe += me * zt, qe += ge * Ht, We = qe >>> 13, qe &= 8191, qe += Ie * Dt, qe += xe * re, qe += Re * Rt, qe += Me * Tt, qe += ut * At, We += qe >>> 13, qe &= 8191, We = (We << 2) + We | 0, We = We + dt | 0, dt = We & 8191, We = We >>> 13, ft += We, Xe = dt, rt = ft, ze = _t, me = vt, ge = ht, Ie = mt, xe = pt, Re = Ze, Me = it, ut = qe, W += 16, G -= 16;
|
|
23765
23765
|
this.h[0] = Xe, this.h[1] = rt, this.h[2] = ze, this.h[3] = me, this.h[4] = ge, this.h[5] = Ie, this.h[6] = xe, this.h[7] = Re, this.h[8] = Me, this.h[9] = ut;
|
|
23766
23766
|
}, H.prototype.finish = function(K, W) {
|
|
23767
23767
|
var G = new Uint16Array(10), O, J, ce, ae;
|
|
@@ -23858,8 +23858,8 @@ function aL() {
|
|
|
23858
23858
|
for (var O = 0; O < 16; O++) K[O] = W[O] - G[O];
|
|
23859
23859
|
}
|
|
23860
23860
|
function C(K, W, G) {
|
|
23861
|
-
var O, J, ce = 0, ae = 0, Ee = 0, ke = 0, Ve = 0, De = 0, Bt = 0, We = 0, dt = 0, ft = 0, _t = 0,
|
|
23862
|
-
O = W[0], ce += O * re, ae += O * Dt, Ee += O * Ht, ke += O * zt, Ve += O * Ct, De += O * Kt, Bt += O * Vt, We += O * Tn, dt += O * Xt, ft += O * vn, _t += O * En,
|
|
23861
|
+
var O, J, ce = 0, ae = 0, Ee = 0, ke = 0, Ve = 0, De = 0, Bt = 0, We = 0, dt = 0, ft = 0, _t = 0, vt = 0, ht = 0, mt = 0, pt = 0, Ze = 0, it = 0, qe = 0, Xe = 0, rt = 0, ze = 0, me = 0, ge = 0, Ie = 0, xe = 0, Re = 0, Me = 0, ut = 0, At = 0, Tt = 0, Rt = 0, re = G[0], Dt = G[1], Ht = G[2], zt = G[3], Ct = G[4], Kt = G[5], Vt = G[6], Tn = G[7], Xt = G[8], vn = G[9], En = G[10], bn = G[11], Ln = G[12], tr = G[13], nr = G[14], rr = G[15];
|
|
23862
|
+
O = W[0], ce += O * re, ae += O * Dt, Ee += O * Ht, ke += O * zt, Ve += O * Ct, De += O * Kt, Bt += O * Vt, We += O * Tn, dt += O * Xt, ft += O * vn, _t += O * En, vt += O * bn, ht += O * Ln, mt += O * tr, pt += O * nr, Ze += O * rr, O = W[1], ae += O * re, Ee += O * Dt, ke += O * Ht, Ve += O * zt, De += O * Ct, Bt += O * Kt, We += O * Vt, dt += O * Tn, ft += O * Xt, _t += O * vn, vt += O * En, ht += O * bn, mt += O * Ln, pt += O * tr, Ze += O * nr, it += O * rr, O = W[2], Ee += O * re, ke += O * Dt, Ve += O * Ht, De += O * zt, Bt += O * Ct, We += O * Kt, dt += O * Vt, ft += O * Tn, _t += O * Xt, vt += O * vn, ht += O * En, mt += O * bn, pt += O * Ln, Ze += O * tr, it += O * nr, qe += O * rr, O = W[3], ke += O * re, Ve += O * Dt, De += O * Ht, Bt += O * zt, We += O * Ct, dt += O * Kt, ft += O * Vt, _t += O * Tn, vt += O * Xt, ht += O * vn, mt += O * En, pt += O * bn, Ze += O * Ln, it += O * tr, qe += O * nr, Xe += O * rr, O = W[4], Ve += O * re, De += O * Dt, Bt += O * Ht, We += O * zt, dt += O * Ct, ft += O * Kt, _t += O * Vt, vt += O * Tn, ht += O * Xt, mt += O * vn, pt += O * En, Ze += O * bn, it += O * Ln, qe += O * tr, Xe += O * nr, rt += O * rr, O = W[5], De += O * re, Bt += O * Dt, We += O * Ht, dt += O * zt, ft += O * Ct, _t += O * Kt, vt += O * Vt, ht += O * Tn, mt += O * Xt, pt += O * vn, Ze += O * En, it += O * bn, qe += O * Ln, Xe += O * tr, rt += O * nr, ze += O * rr, O = W[6], Bt += O * re, We += O * Dt, dt += O * Ht, ft += O * zt, _t += O * Ct, vt += O * Kt, ht += O * Vt, mt += O * Tn, pt += O * Xt, Ze += O * vn, it += O * En, qe += O * bn, Xe += O * Ln, rt += O * tr, ze += O * nr, me += O * rr, O = W[7], We += O * re, dt += O * Dt, ft += O * Ht, _t += O * zt, vt += O * Ct, ht += O * Kt, mt += O * Vt, pt += O * Tn, Ze += O * Xt, it += O * vn, qe += O * En, Xe += O * bn, rt += O * Ln, ze += O * tr, me += O * nr, ge += O * rr, O = W[8], dt += O * re, ft += O * Dt, _t += O * Ht, vt += O * zt, ht += O * Ct, mt += O * Kt, pt += O * Vt, Ze += O * Tn, it += O * Xt, qe += O * vn, Xe += O * En, rt += O * bn, ze += O * Ln, me += O * tr, ge += O * nr, Ie += O * rr, O = W[9], ft += O * re, _t += O * Dt, vt += O * Ht, ht += O * zt, mt += O * Ct, pt += O * Kt, Ze += O * Vt, it += O * Tn, qe += O * Xt, Xe += O * vn, rt += O * En, ze += O * bn, me += O * Ln, ge += O * tr, Ie += O * nr, xe += O * rr, O = W[10], _t += O * re, vt += O * Dt, ht += O * Ht, mt += O * zt, pt += O * Ct, Ze += O * Kt, it += O * Vt, qe += O * Tn, Xe += O * Xt, rt += O * vn, ze += O * En, me += O * bn, ge += O * Ln, Ie += O * tr, xe += O * nr, Re += O * rr, O = W[11], vt += O * re, ht += O * Dt, mt += O * Ht, pt += O * zt, Ze += O * Ct, it += O * Kt, qe += O * Vt, Xe += O * Tn, rt += O * Xt, ze += O * vn, me += O * En, ge += O * bn, Ie += O * Ln, xe += O * tr, Re += O * nr, Me += O * rr, O = W[12], ht += O * re, mt += O * Dt, pt += O * Ht, Ze += O * zt, it += O * Ct, qe += O * Kt, Xe += O * Vt, rt += O * Tn, ze += O * Xt, me += O * vn, ge += O * En, Ie += O * bn, xe += O * Ln, Re += O * tr, Me += O * nr, ut += O * rr, O = W[13], mt += O * re, pt += O * Dt, Ze += O * Ht, it += O * zt, qe += O * Ct, Xe += O * Kt, rt += O * Vt, ze += O * Tn, me += O * Xt, ge += O * vn, Ie += O * En, xe += O * bn, Re += O * Ln, Me += O * tr, ut += O * nr, At += O * rr, O = W[14], pt += O * re, Ze += O * Dt, it += O * Ht, qe += O * zt, Xe += O * Ct, rt += O * Kt, ze += O * Vt, me += O * Tn, ge += O * Xt, Ie += O * vn, xe += O * En, Re += O * bn, Me += O * Ln, ut += O * tr, At += O * nr, Tt += O * rr, O = W[15], Ze += O * re, it += O * Dt, qe += O * Ht, Xe += O * zt, rt += O * Ct, ze += O * Kt, me += O * Vt, ge += O * Tn, Ie += O * Xt, xe += O * vn, Re += O * En, Me += O * bn, ut += O * Ln, At += O * tr, Tt += O * nr, Rt += O * rr, ce += 38 * it, ae += 38 * qe, Ee += 38 * Xe, ke += 38 * rt, Ve += 38 * ze, De += 38 * me, Bt += 38 * ge, We += 38 * Ie, dt += 38 * xe, ft += 38 * Re, _t += 38 * Me, vt += 38 * ut, ht += 38 * At, mt += 38 * Tt, pt += 38 * Rt, J = 1, O = ce + J + 65535, J = Math.floor(O / 65536), ce = O - J * 65536, O = ae + J + 65535, J = Math.floor(O / 65536), ae = O - J * 65536, O = Ee + J + 65535, J = Math.floor(O / 65536), Ee = O - J * 65536, O = ke + J + 65535, J = Math.floor(O / 65536), ke = O - J * 65536, O = Ve + J + 65535, J = Math.floor(O / 65536), Ve = O - J * 65536, O = De + J + 65535, J = Math.floor(O / 65536), De = O - J * 65536, O = Bt + J + 65535, J = Math.floor(O / 65536), Bt = O - J * 65536, O = We + J + 65535, J = Math.floor(O / 65536), We = O - J * 65536, O = dt + J + 65535, J = Math.floor(O / 65536), dt = O - J * 65536, O = ft + J + 65535, J = Math.floor(O / 65536), ft = O - J * 65536, O = _t + J + 65535, J = Math.floor(O / 65536), _t = O - J * 65536, O = vt + J + 65535, J = Math.floor(O / 65536), vt = O - J * 65536, O = ht + J + 65535, J = Math.floor(O / 65536), ht = O - J * 65536, O = mt + J + 65535, J = Math.floor(O / 65536), mt = O - J * 65536, O = pt + J + 65535, J = Math.floor(O / 65536), pt = O - J * 65536, O = Ze + J + 65535, J = Math.floor(O / 65536), Ze = O - J * 65536, ce += J - 1 + 37 * (J - 1), J = 1, O = ce + J + 65535, J = Math.floor(O / 65536), ce = O - J * 65536, O = ae + J + 65535, J = Math.floor(O / 65536), ae = O - J * 65536, O = Ee + J + 65535, J = Math.floor(O / 65536), Ee = O - J * 65536, O = ke + J + 65535, J = Math.floor(O / 65536), ke = O - J * 65536, O = Ve + J + 65535, J = Math.floor(O / 65536), Ve = O - J * 65536, O = De + J + 65535, J = Math.floor(O / 65536), De = O - J * 65536, O = Bt + J + 65535, J = Math.floor(O / 65536), Bt = O - J * 65536, O = We + J + 65535, J = Math.floor(O / 65536), We = O - J * 65536, O = dt + J + 65535, J = Math.floor(O / 65536), dt = O - J * 65536, O = ft + J + 65535, J = Math.floor(O / 65536), ft = O - J * 65536, O = _t + J + 65535, J = Math.floor(O / 65536), _t = O - J * 65536, O = vt + J + 65535, J = Math.floor(O / 65536), vt = O - J * 65536, O = ht + J + 65535, J = Math.floor(O / 65536), ht = O - J * 65536, O = mt + J + 65535, J = Math.floor(O / 65536), mt = O - J * 65536, O = pt + J + 65535, J = Math.floor(O / 65536), pt = O - J * 65536, O = Ze + J + 65535, J = Math.floor(O / 65536), Ze = O - J * 65536, ce += J - 1 + 37 * (J - 1), K[0] = ce, K[1] = ae, K[2] = Ee, K[3] = ke, K[4] = Ve, K[5] = De, K[6] = Bt, K[7] = We, K[8] = dt, K[9] = ft, K[10] = _t, K[11] = vt, K[12] = ht, K[13] = mt, K[14] = pt, K[15] = Ze;
|
|
23863
23863
|
}
|
|
23864
23864
|
function $(K, W) {
|
|
23865
23865
|
C(K, W, W);
|
|
@@ -24072,11 +24072,11 @@ function aL() {
|
|
|
24072
24072
|
1246189591
|
|
24073
24073
|
];
|
|
24074
24074
|
function Le(K, W, G, O) {
|
|
24075
|
-
for (var J = new Int32Array(16), ce = new Int32Array(16), ae, Ee, ke, Ve, De, Bt, We, dt, ft, _t,
|
|
24075
|
+
for (var J = new Int32Array(16), ce = new Int32Array(16), ae, Ee, ke, Ve, De, Bt, We, dt, ft, _t, vt, ht, mt, pt, Ze, it, qe, Xe, rt, ze, me, ge, Ie, xe, Re, Me, ut = K[0], At = K[1], Tt = K[2], Rt = K[3], re = K[4], Dt = K[5], Ht = K[6], zt = K[7], Ct = W[0], Kt = W[1], Vt = W[2], Tn = W[3], Xt = W[4], vn = W[5], En = W[6], bn = W[7], Ln = 0; O >= 128; ) {
|
|
24076
24076
|
for (rt = 0; rt < 16; rt++)
|
|
24077
24077
|
ze = 8 * rt + Ln, J[rt] = G[ze + 0] << 24 | G[ze + 1] << 16 | G[ze + 2] << 8 | G[ze + 3], ce[rt] = G[ze + 4] << 24 | G[ze + 5] << 16 | G[ze + 6] << 8 | G[ze + 7];
|
|
24078
24078
|
for (rt = 0; rt < 80; rt++)
|
|
24079
|
-
if (ae = ut, Ee = At, ke = Tt, Ve = Rt, De = re, Bt = Dt, We = Ht, dt = zt, ft = Ct, _t = Kt,
|
|
24079
|
+
if (ae = ut, Ee = At, ke = Tt, Ve = Rt, De = re, Bt = Dt, We = Ht, dt = zt, ft = Ct, _t = Kt, vt = Vt, ht = Tn, mt = Xt, pt = vn, Ze = En, it = bn, me = zt, ge = bn, Ie = ge & 65535, xe = ge >>> 16, Re = me & 65535, Me = me >>> 16, me = (re >>> 14 | Xt << 18) ^ (re >>> 18 | Xt << 14) ^ (Xt >>> 9 | re << 23), ge = (Xt >>> 14 | re << 18) ^ (Xt >>> 18 | re << 14) ^ (re >>> 9 | Xt << 23), Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, me = re & Dt ^ ~re & Ht, ge = Xt & vn ^ ~Xt & En, Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, me = Oe[rt * 2], ge = Oe[rt * 2 + 1], Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, me = J[rt % 16], ge = ce[rt % 16], Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, xe += Ie >>> 16, Re += xe >>> 16, Me += Re >>> 16, qe = Re & 65535 | Me << 16, Xe = Ie & 65535 | xe << 16, me = qe, ge = Xe, Ie = ge & 65535, xe = ge >>> 16, Re = me & 65535, Me = me >>> 16, me = (ut >>> 28 | Ct << 4) ^ (Ct >>> 2 | ut << 30) ^ (Ct >>> 7 | ut << 25), ge = (Ct >>> 28 | ut << 4) ^ (ut >>> 2 | Ct << 30) ^ (ut >>> 7 | Ct << 25), Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, me = ut & At ^ ut & Tt ^ At & Tt, ge = Ct & Kt ^ Ct & Vt ^ Kt & Vt, Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, xe += Ie >>> 16, Re += xe >>> 16, Me += Re >>> 16, dt = Re & 65535 | Me << 16, it = Ie & 65535 | xe << 16, me = Ve, ge = ht, Ie = ge & 65535, xe = ge >>> 16, Re = me & 65535, Me = me >>> 16, me = qe, ge = Xe, Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, xe += Ie >>> 16, Re += xe >>> 16, Me += Re >>> 16, Ve = Re & 65535 | Me << 16, ht = Ie & 65535 | xe << 16, At = ae, Tt = Ee, Rt = ke, re = Ve, Dt = De, Ht = Bt, zt = We, ut = dt, Kt = ft, Vt = _t, Tn = vt, Xt = ht, vn = mt, En = pt, bn = Ze, Ct = it, rt % 16 === 15)
|
|
24080
24080
|
for (ze = 0; ze < 16; ze++)
|
|
24081
24081
|
me = J[ze], ge = ce[ze], Ie = ge & 65535, xe = ge >>> 16, Re = me & 65535, Me = me >>> 16, me = J[(ze + 9) % 16], ge = ce[(ze + 9) % 16], Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, qe = J[(ze + 1) % 16], Xe = ce[(ze + 1) % 16], me = (qe >>> 1 | Xe << 31) ^ (qe >>> 8 | Xe << 24) ^ qe >>> 7, ge = (Xe >>> 1 | qe << 31) ^ (Xe >>> 8 | qe << 24) ^ (Xe >>> 7 | qe << 25), Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, qe = J[(ze + 14) % 16], Xe = ce[(ze + 14) % 16], me = (qe >>> 19 | Xe << 13) ^ (Xe >>> 29 | qe << 3) ^ qe >>> 6, ge = (Xe >>> 19 | qe << 13) ^ (qe >>> 29 | Xe << 3) ^ (Xe >>> 6 | qe << 26), Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, xe += Ie >>> 16, Re += xe >>> 16, Me += Re >>> 16, J[ze] = Re & 65535 | Me << 16, ce[ze] = Ie & 65535 | xe << 16;
|
|
24082
24082
|
me = ut, ge = Ct, Ie = ge & 65535, xe = ge >>> 16, Re = me & 65535, Me = me >>> 16, me = K[0], ge = W[0], Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, xe += Ie >>> 16, Re += xe >>> 16, Me += Re >>> 16, K[0] = ut = Re & 65535 | Me << 16, W[0] = Ct = Ie & 65535 | xe << 16, me = At, ge = Kt, Ie = ge & 65535, xe = ge >>> 16, Re = me & 65535, Me = me >>> 16, me = K[1], ge = W[1], Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, xe += Ie >>> 16, Re += xe >>> 16, Me += Re >>> 16, K[1] = At = Re & 65535 | Me << 16, W[1] = Kt = Ie & 65535 | xe << 16, me = Tt, ge = Vt, Ie = ge & 65535, xe = ge >>> 16, Re = me & 65535, Me = me >>> 16, me = K[2], ge = W[2], Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, xe += Ie >>> 16, Re += xe >>> 16, Me += Re >>> 16, K[2] = Tt = Re & 65535 | Me << 16, W[2] = Vt = Ie & 65535 | xe << 16, me = Rt, ge = Tn, Ie = ge & 65535, xe = ge >>> 16, Re = me & 65535, Me = me >>> 16, me = K[3], ge = W[3], Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, xe += Ie >>> 16, Re += xe >>> 16, Me += Re >>> 16, K[3] = Rt = Re & 65535 | Me << 16, W[3] = Tn = Ie & 65535 | xe << 16, me = re, ge = Xt, Ie = ge & 65535, xe = ge >>> 16, Re = me & 65535, Me = me >>> 16, me = K[4], ge = W[4], Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, xe += Ie >>> 16, Re += xe >>> 16, Me += Re >>> 16, K[4] = re = Re & 65535 | Me << 16, W[4] = Xt = Ie & 65535 | xe << 16, me = Dt, ge = vn, Ie = ge & 65535, xe = ge >>> 16, Re = me & 65535, Me = me >>> 16, me = K[5], ge = W[5], Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, xe += Ie >>> 16, Re += xe >>> 16, Me += Re >>> 16, K[5] = Dt = Re & 65535 | Me << 16, W[5] = vn = Ie & 65535 | xe << 16, me = Ht, ge = En, Ie = ge & 65535, xe = ge >>> 16, Re = me & 65535, Me = me >>> 16, me = K[6], ge = W[6], Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, xe += Ie >>> 16, Re += xe >>> 16, Me += Re >>> 16, K[6] = Ht = Re & 65535 | Me << 16, W[6] = En = Ie & 65535 | xe << 16, me = zt, ge = bn, Ie = ge & 65535, xe = ge >>> 16, Re = me & 65535, Me = me >>> 16, me = K[7], ge = W[7], Ie += ge & 65535, xe += ge >>> 16, Re += me & 65535, Me += me >>> 16, xe += Ie >>> 16, Re += xe >>> 16, Me += Re >>> 16, K[7] = zt = Re & 65535 | Me << 16, W[7] = bn = Ie & 65535 | xe << 16, Ln += 128, O -= 128;
|
|
@@ -25061,7 +25061,7 @@ var jR = class extends Ll {
|
|
|
25061
25061
|
* Stamp an axios request with the provided stamper
|
|
25062
25062
|
*/
|
|
25063
25063
|
async stampRequest(t, e) {
|
|
25064
|
-
const n = typeof t.data == "string" ? t.data : t.data === void 0 ? "" : JSON.stringify(t.data), r =
|
|
25064
|
+
const n = typeof t.data == "string" ? t.data : t.data === void 0 ? "" : JSON.stringify(t.data), r = wt.Buffer.from(n, "utf8"), i = await e.stamp({
|
|
25065
25065
|
data: r
|
|
25066
25066
|
});
|
|
25067
25067
|
return t.headers = t.headers || {}, t.headers["X-Phantom-Stamp"] = i, t;
|
|
@@ -31508,8 +31508,8 @@ function lT() {
|
|
|
31508
31508
|
N = (m + (h >>> 13) | 0) + (ft >>> 26) | 0, ft &= 67108863, x = Math.imul(Oe, lt), h = Math.imul(Oe, ot), h = h + Math.imul(Le, lt) | 0, m = Math.imul(Le, ot), x = x + Math.imul(Ce, st) | 0, h = h + Math.imul(Ce, en) | 0, h = h + Math.imul(Ue, st) | 0, m = m + Math.imul(Ue, en) | 0, x = x + Math.imul(ue, dn) | 0, h = h + Math.imul(ue, yn) | 0, h = h + Math.imul(de, dn) | 0, m = m + Math.imul(de, yn) | 0, x = x + Math.imul(Z, Gt) | 0, h = h + Math.imul(Z, tn) | 0, h = h + Math.imul(ne, Gt) | 0, m = m + Math.imul(ne, tn) | 0, x = x + Math.imul(C, cn) | 0, h = h + Math.imul(C, ln) | 0, h = h + Math.imul($, cn) | 0, m = m + Math.imul($, ln) | 0;
|
|
31509
31509
|
var _t = (N + x | 0) + ((h & 8191) << 13) | 0;
|
|
31510
31510
|
N = (m + (h >>> 13) | 0) + (_t >>> 26) | 0, _t &= 67108863, x = Math.imul($e, lt), h = Math.imul($e, ot), h = h + Math.imul(Je, lt) | 0, m = Math.imul(Je, ot), x = x + Math.imul(Oe, st) | 0, h = h + Math.imul(Oe, en) | 0, h = h + Math.imul(Le, st) | 0, m = m + Math.imul(Le, en) | 0, x = x + Math.imul(Ce, dn) | 0, h = h + Math.imul(Ce, yn) | 0, h = h + Math.imul(Ue, dn) | 0, m = m + Math.imul(Ue, yn) | 0, x = x + Math.imul(ue, Gt) | 0, h = h + Math.imul(ue, tn) | 0, h = h + Math.imul(de, Gt) | 0, m = m + Math.imul(de, tn) | 0, x = x + Math.imul(Z, cn) | 0, h = h + Math.imul(Z, ln) | 0, h = h + Math.imul(ne, cn) | 0, m = m + Math.imul(ne, ln) | 0, x = x + Math.imul(C, wn) | 0, h = h + Math.imul(C, Ft) | 0, h = h + Math.imul($, wn) | 0, m = m + Math.imul($, Ft) | 0;
|
|
31511
|
-
var
|
|
31512
|
-
N = (m + (h >>> 13) | 0) + (
|
|
31511
|
+
var vt = (N + x | 0) + ((h & 8191) << 13) | 0;
|
|
31512
|
+
N = (m + (h >>> 13) | 0) + (vt >>> 26) | 0, vt &= 67108863, x = Math.imul(Ke, lt), h = Math.imul(Ke, ot), h = h + Math.imul(Ge, lt) | 0, m = Math.imul(Ge, ot), x = x + Math.imul($e, st) | 0, h = h + Math.imul($e, en) | 0, h = h + Math.imul(Je, st) | 0, m = m + Math.imul(Je, en) | 0, x = x + Math.imul(Oe, dn) | 0, h = h + Math.imul(Oe, yn) | 0, h = h + Math.imul(Le, dn) | 0, m = m + Math.imul(Le, yn) | 0, x = x + Math.imul(Ce, Gt) | 0, h = h + Math.imul(Ce, tn) | 0, h = h + Math.imul(Ue, Gt) | 0, m = m + Math.imul(Ue, tn) | 0, x = x + Math.imul(ue, cn) | 0, h = h + Math.imul(ue, ln) | 0, h = h + Math.imul(de, cn) | 0, m = m + Math.imul(de, ln) | 0, x = x + Math.imul(Z, wn) | 0, h = h + Math.imul(Z, Ft) | 0, h = h + Math.imul(ne, wn) | 0, m = m + Math.imul(ne, Ft) | 0, x = x + Math.imul(C, K) | 0, h = h + Math.imul(C, W) | 0, h = h + Math.imul($, K) | 0, m = m + Math.imul($, W) | 0;
|
|
31513
31513
|
var ht = (N + x | 0) + ((h & 8191) << 13) | 0;
|
|
31514
31514
|
N = (m + (h >>> 13) | 0) + (ht >>> 26) | 0, ht &= 67108863, x = Math.imul(bt, lt), h = Math.imul(bt, ot), h = h + Math.imul(q, lt) | 0, m = Math.imul(q, ot), x = x + Math.imul(Ke, st) | 0, h = h + Math.imul(Ke, en) | 0, h = h + Math.imul(Ge, st) | 0, m = m + Math.imul(Ge, en) | 0, x = x + Math.imul($e, dn) | 0, h = h + Math.imul($e, yn) | 0, h = h + Math.imul(Je, dn) | 0, m = m + Math.imul(Je, yn) | 0, x = x + Math.imul(Oe, Gt) | 0, h = h + Math.imul(Oe, tn) | 0, h = h + Math.imul(Le, Gt) | 0, m = m + Math.imul(Le, tn) | 0, x = x + Math.imul(Ce, cn) | 0, h = h + Math.imul(Ce, ln) | 0, h = h + Math.imul(Ue, cn) | 0, m = m + Math.imul(Ue, ln) | 0, x = x + Math.imul(ue, wn) | 0, h = h + Math.imul(ue, Ft) | 0, h = h + Math.imul(de, wn) | 0, m = m + Math.imul(de, Ft) | 0, x = x + Math.imul(Z, K) | 0, h = h + Math.imul(Z, W) | 0, h = h + Math.imul(ne, K) | 0, m = m + Math.imul(ne, W) | 0, x = x + Math.imul(C, O) | 0, h = h + Math.imul(C, J) | 0, h = h + Math.imul($, O) | 0, m = m + Math.imul($, J) | 0;
|
|
31515
31515
|
var mt = (N + x | 0) + ((h & 8191) << 13) | 0;
|
|
@@ -31535,7 +31535,7 @@ function lT() {
|
|
|
31535
31535
|
var Ie = (N + x | 0) + ((h & 8191) << 13) | 0;
|
|
31536
31536
|
N = (m + (h >>> 13) | 0) + (Ie >>> 26) | 0, Ie &= 67108863, x = Math.imul(le, Ve), h = Math.imul(le, De), h = h + Math.imul(we, Ve) | 0, m = Math.imul(we, De);
|
|
31537
31537
|
var xe = (N + x | 0) + ((h & 8191) << 13) | 0;
|
|
31538
|
-
return N = (m + (h >>> 13) | 0) + (xe >>> 26) | 0, xe &= 67108863, I[0] = Bt, I[1] = We, I[2] = dt, I[3] = ft, I[4] = _t, I[5] =
|
|
31538
|
+
return N = (m + (h >>> 13) | 0) + (xe >>> 26) | 0, xe &= 67108863, I[0] = Bt, I[1] = We, I[2] = dt, I[3] = ft, I[4] = _t, I[5] = vt, I[6] = ht, I[7] = mt, I[8] = pt, I[9] = Ze, I[10] = it, I[11] = qe, I[12] = Xe, I[13] = rt, I[14] = ze, I[15] = me, I[16] = ge, I[17] = Ie, I[18] = xe, N !== 0 && (I[19] = N, R.length++), R;
|
|
31539
31539
|
};
|
|
31540
31540
|
Math.imul || (M = E);
|
|
31541
31541
|
function S(T, p, y) {
|
|
@@ -35115,13 +35115,13 @@ function i_(t) {
|
|
|
35115
35115
|
return !1;
|
|
35116
35116
|
}
|
|
35117
35117
|
}
|
|
35118
|
-
const vT = (t, e) => iu.sign(t, e.slice(0, 32)), hj = iu.verify, Ky = (t) =>
|
|
35118
|
+
const vT = (t, e) => iu.sign(t, e.slice(0, 32)), hj = iu.verify, Ky = (t) => wt.Buffer.isBuffer(t) ? t : t instanceof Uint8Array ? wt.Buffer.from(t.buffer, t.byteOffset, t.byteLength) : wt.Buffer.from(t);
|
|
35119
35119
|
class pj {
|
|
35120
35120
|
constructor(e) {
|
|
35121
35121
|
Object.assign(this, e);
|
|
35122
35122
|
}
|
|
35123
35123
|
encode() {
|
|
35124
|
-
return
|
|
35124
|
+
return wt.Buffer.from(e0.serialize(Od, this));
|
|
35125
35125
|
}
|
|
35126
35126
|
static decode(e) {
|
|
35127
35127
|
return e0.deserialize(Od, this, e);
|
|
@@ -35194,10 +35194,10 @@ class xt extends pj {
|
|
|
35194
35194
|
* Return the Buffer representation of the public key in big endian
|
|
35195
35195
|
*/
|
|
35196
35196
|
toBuffer() {
|
|
35197
|
-
const e = this._bn.toArrayLike(
|
|
35197
|
+
const e = this._bn.toArrayLike(wt.Buffer);
|
|
35198
35198
|
if (e.length === mo)
|
|
35199
35199
|
return e;
|
|
35200
|
-
const n =
|
|
35200
|
+
const n = wt.Buffer.alloc(32);
|
|
35201
35201
|
return e.copy(n, 32 - e.length), n;
|
|
35202
35202
|
}
|
|
35203
35203
|
get [Symbol.toStringTag]() {
|
|
@@ -35216,7 +35216,7 @@ class xt extends pj {
|
|
|
35216
35216
|
*/
|
|
35217
35217
|
/* eslint-disable require-await */
|
|
35218
35218
|
static async createWithSeed(e, n, r) {
|
|
35219
|
-
const i =
|
|
35219
|
+
const i = wt.Buffer.concat([e.toBuffer(), wt.Buffer.from(n), r.toBuffer()]), s = Jb(i);
|
|
35220
35220
|
return new xt(s);
|
|
35221
35221
|
}
|
|
35222
35222
|
/**
|
|
@@ -35224,12 +35224,12 @@ class xt extends pj {
|
|
|
35224
35224
|
*/
|
|
35225
35225
|
/* eslint-disable require-await */
|
|
35226
35226
|
static createProgramAddressSync(e, n) {
|
|
35227
|
-
let r =
|
|
35227
|
+
let r = wt.Buffer.alloc(0);
|
|
35228
35228
|
e.forEach(function(s) {
|
|
35229
35229
|
if (s.length > mj)
|
|
35230
35230
|
throw new TypeError("Max seed length exceeded");
|
|
35231
|
-
r =
|
|
35232
|
-
}), r =
|
|
35231
|
+
r = wt.Buffer.concat([r, Ky(s)]);
|
|
35232
|
+
}), r = wt.Buffer.concat([r, n.toBuffer(), wt.Buffer.from("ProgramDerivedAddress")]);
|
|
35233
35233
|
const i = Jb(r);
|
|
35234
35234
|
if (i_(i))
|
|
35235
35235
|
throw new Error("Invalid seeds, address must fall off the curve");
|
|
@@ -35256,7 +35256,7 @@ class xt extends pj {
|
|
|
35256
35256
|
let r = 255, i;
|
|
35257
35257
|
for (; r != 0; ) {
|
|
35258
35258
|
try {
|
|
35259
|
-
const s = e.concat(
|
|
35259
|
+
const s = e.concat(wt.Buffer.from([r]));
|
|
35260
35260
|
i = this.createProgramAddressSync(s, n);
|
|
35261
35261
|
} catch (s) {
|
|
35262
35262
|
if (s instanceof TypeError)
|
|
@@ -35334,10 +35334,10 @@ const Ut = (t = "publicKey") => ie.blob(32, t), yj = (t = "signature") => ie.blo
|
|
|
35334
35334
|
const e = ie.struct([ie.u32("length"), ie.u32("lengthPadding"), ie.blob(ie.offset(ie.u32(), -8), "chars")], t), n = e.decode.bind(e), r = e.encode.bind(e), i = e;
|
|
35335
35335
|
return i.decode = (s, o) => n(s, o).chars.toString(), i.encode = (s, o, a) => {
|
|
35336
35336
|
const c = {
|
|
35337
|
-
chars:
|
|
35337
|
+
chars: wt.Buffer.from(s, "utf8")
|
|
35338
35338
|
};
|
|
35339
35339
|
return r(c, o, a);
|
|
35340
|
-
}, i.alloc = (s) => ie.u32().span + ie.u32().span +
|
|
35340
|
+
}, i.alloc = (s) => ie.u32().span + ie.u32().span + wt.Buffer.from(s, "utf8").length, i;
|
|
35341
35341
|
}, wj = (t = "authorized") => ie.struct([Ut("staker"), Ut("withdrawer")], t), vj = (t = "lockup") => ie.struct([ie.ns64("unixTimestamp"), ie.ns64("epoch"), Ut("custodian")], t), Ej = (t = "voteInit") => ie.struct([Ut("nodePubkey"), Ut("authorizedVoter"), Ut("authorizedWithdrawer"), ie.u8("commission")], t), bj = (t = "voteAuthorizeWithSeedArgs") => ie.struct([ie.u32("voteAuthorizationType"), Ut("currentAuthorityDerivedKeyOwnerPubkey"), Va("currentAuthorityDerivedKeySeed"), Ut("newAuthorized")], t);
|
|
35342
35342
|
function Yr(t) {
|
|
35343
35343
|
let e = 0, n = 0;
|
|
@@ -35510,30 +35510,30 @@ class pc {
|
|
|
35510
35510
|
let b = [];
|
|
35511
35511
|
return Jr(b, v.length), {
|
|
35512
35512
|
programIdIndex: g,
|
|
35513
|
-
keyIndicesCount:
|
|
35513
|
+
keyIndicesCount: wt.Buffer.from(w),
|
|
35514
35514
|
keyIndices: f,
|
|
35515
|
-
dataLength:
|
|
35515
|
+
dataLength: wt.Buffer.from(b),
|
|
35516
35516
|
data: v
|
|
35517
35517
|
};
|
|
35518
35518
|
});
|
|
35519
35519
|
let i = [];
|
|
35520
35520
|
Jr(i, r.length);
|
|
35521
|
-
let s =
|
|
35522
|
-
|
|
35521
|
+
let s = wt.Buffer.alloc(Za);
|
|
35522
|
+
wt.Buffer.from(i).copy(s);
|
|
35523
35523
|
let o = i.length;
|
|
35524
35524
|
r.forEach((d) => {
|
|
35525
35525
|
const g = ie.struct([ie.u8("programIdIndex"), ie.blob(d.keyIndicesCount.length, "keyIndicesCount"), ie.seq(ie.u8("keyIndex"), d.keyIndices.length, "keyIndices"), ie.blob(d.dataLength.length, "dataLength"), ie.seq(ie.u8("userdatum"), d.data.length, "data")]).encode(d, s, o);
|
|
35526
35526
|
o += g;
|
|
35527
35527
|
}), s = s.slice(0, o);
|
|
35528
35528
|
const a = ie.struct([ie.blob(1, "numRequiredSignatures"), ie.blob(1, "numReadonlySignedAccounts"), ie.blob(1, "numReadonlyUnsignedAccounts"), ie.blob(n.length, "keyCount"), ie.seq(Ut("key"), e, "keys"), Ut("recentBlockhash")]), c = {
|
|
35529
|
-
numRequiredSignatures:
|
|
35530
|
-
numReadonlySignedAccounts:
|
|
35531
|
-
numReadonlyUnsignedAccounts:
|
|
35532
|
-
keyCount:
|
|
35529
|
+
numRequiredSignatures: wt.Buffer.from([this.header.numRequiredSignatures]),
|
|
35530
|
+
numReadonlySignedAccounts: wt.Buffer.from([this.header.numReadonlySignedAccounts]),
|
|
35531
|
+
numReadonlyUnsignedAccounts: wt.Buffer.from([this.header.numReadonlyUnsignedAccounts]),
|
|
35532
|
+
keyCount: wt.Buffer.from(n),
|
|
35533
35533
|
keys: this.accountKeys.map((d) => Ky(d.toBytes())),
|
|
35534
35534
|
recentBlockhash: Ar.decode(this.recentBlockhash)
|
|
35535
35535
|
};
|
|
35536
|
-
let l =
|
|
35536
|
+
let l = wt.Buffer.alloc(2048);
|
|
35537
35537
|
const u = a.encode(c, l);
|
|
35538
35538
|
return s.copy(l, u), l.slice(0, u + s.length);
|
|
35539
35539
|
}
|
|
@@ -35549,12 +35549,12 @@ class pc {
|
|
|
35549
35549
|
let a = [];
|
|
35550
35550
|
for (let f = 0; f < o; f++) {
|
|
35551
35551
|
const g = Zr(n, 0, mo);
|
|
35552
|
-
a.push(new xt(
|
|
35552
|
+
a.push(new xt(wt.Buffer.from(g)));
|
|
35553
35553
|
}
|
|
35554
35554
|
const c = Zr(n, 0, mo), l = Yr(n);
|
|
35555
35555
|
let u = [];
|
|
35556
35556
|
for (let f = 0; f < l; f++) {
|
|
35557
|
-
const g = ws(n), v = Yr(n), w = Zr(n, 0, v), b = Yr(n), E = Zr(n, 0, b), M = Ar.encode(
|
|
35557
|
+
const g = ws(n), v = Yr(n), w = Zr(n, 0, v), b = Yr(n), E = Zr(n, 0, b), M = Ar.encode(wt.Buffer.from(E));
|
|
35558
35558
|
u.push({
|
|
35559
35559
|
programIdIndex: g,
|
|
35560
35560
|
accounts: w,
|
|
@@ -35567,7 +35567,7 @@ class pc {
|
|
|
35567
35567
|
numReadonlySignedAccounts: i,
|
|
35568
35568
|
numReadonlyUnsignedAccounts: s
|
|
35569
35569
|
},
|
|
35570
|
-
recentBlockhash: Ar.encode(
|
|
35570
|
+
recentBlockhash: Ar.encode(wt.Buffer.from(c)),
|
|
35571
35571
|
accountKeys: a,
|
|
35572
35572
|
instructions: u
|
|
35573
35573
|
};
|
|
@@ -35772,10 +35772,10 @@ const _T = {
|
|
|
35772
35772
|
return Rf.deserialize(t);
|
|
35773
35773
|
throw new Error(`Transaction message version ${e} deserialization is not supported`);
|
|
35774
35774
|
}
|
|
35775
|
-
}, _j =
|
|
35775
|
+
}, _j = wt.Buffer.alloc(xf).fill(0);
|
|
35776
35776
|
class o_ {
|
|
35777
35777
|
constructor(e) {
|
|
35778
|
-
this.keys = void 0, this.programId = void 0, this.data =
|
|
35778
|
+
this.keys = void 0, this.programId = void 0, this.data = wt.Buffer.alloc(0), this.programId = e.programId, this.keys = e.keys, e.data && (this.data = e.data);
|
|
35779
35779
|
}
|
|
35780
35780
|
/**
|
|
35781
35781
|
* @internal
|
|
@@ -36101,7 +36101,7 @@ class If {
|
|
|
36101
36101
|
const r = this.signatures.findIndex((i) => e.equals(i.publicKey));
|
|
36102
36102
|
if (r < 0)
|
|
36103
36103
|
throw new Error(`unknown signer: ${e.toString()}`);
|
|
36104
|
-
this.signatures[r].signature =
|
|
36104
|
+
this.signatures[r].signature = wt.Buffer.from(n);
|
|
36105
36105
|
}
|
|
36106
36106
|
/**
|
|
36107
36107
|
* Verify signatures of a Transaction
|
|
@@ -36159,11 +36159,11 @@ Missing signature for public key${s.missing.length === 1 ? "" : "(s)"} [\`${s.mi
|
|
|
36159
36159
|
signatures: n
|
|
36160
36160
|
} = this, r = [];
|
|
36161
36161
|
Jr(r, n.length);
|
|
36162
|
-
const i = r.length + n.length * 64 + e.length, s =
|
|
36163
|
-
return Un(n.length < 256),
|
|
36162
|
+
const i = r.length + n.length * 64 + e.length, s = wt.Buffer.alloc(i);
|
|
36163
|
+
return Un(n.length < 256), wt.Buffer.from(r).copy(s, 0), n.forEach(({
|
|
36164
36164
|
signature: o
|
|
36165
36165
|
}, a) => {
|
|
36166
|
-
o !== null && (Un(o.length === 64, "signature has invalid length"),
|
|
36166
|
+
o !== null && (Un(o.length === 64, "signature has invalid length"), wt.Buffer.from(o).copy(s, r.length + a * 64));
|
|
36167
36167
|
}), e.copy(s, r.length + n.length * 64), Un(s.length <= Za, `Transaction too large: ${s.length} > ${Za}`), s;
|
|
36168
36168
|
}
|
|
36169
36169
|
/**
|
|
@@ -36200,7 +36200,7 @@ Missing signature for public key${s.missing.length === 1 ? "" : "(s)"} [\`${s.mi
|
|
|
36200
36200
|
let i = [];
|
|
36201
36201
|
for (let s = 0; s < r; s++) {
|
|
36202
36202
|
const o = Zr(n, 0, xf);
|
|
36203
|
-
i.push(Ar.encode(
|
|
36203
|
+
i.push(Ar.encode(wt.Buffer.from(o)));
|
|
36204
36204
|
}
|
|
36205
36205
|
return If.populate(pc.from(n), i);
|
|
36206
36206
|
}
|
|
@@ -36369,7 +36369,7 @@ ie.struct([
|
|
|
36369
36369
|
// option
|
|
36370
36370
|
ie.seq(Ut(), ie.offset(ie.u8(), -1), "authority")
|
|
36371
36371
|
]);
|
|
36372
|
-
const In = au(Uy(xt), Fe(), (t) => new xt(t)), ST = $y([Fe(), pn("base64")]), Hy = au(Uy(
|
|
36372
|
+
const In = au(Uy(xt), Fe(), (t) => new xt(t)), ST = $y([Fe(), pn("base64")]), Hy = au(Uy(wt.Buffer), ST, (t) => wt.Buffer.from(t[0], "base64"));
|
|
36373
36373
|
function xT(t) {
|
|
36374
36374
|
return Cr([Pe({
|
|
36375
36375
|
jsonrpc: pn("2.0"),
|
|
@@ -36552,7 +36552,7 @@ Pe({
|
|
|
36552
36552
|
pubkey: In,
|
|
36553
36553
|
account: zy
|
|
36554
36554
|
});
|
|
36555
|
-
const Bj = au(Cr([Uy(
|
|
36555
|
+
const Bj = au(Cr([Uy(wt.Buffer), Fm]), Cr([ST, Fm]), (t) => Array.isArray(t) ? $l(t, Hy) : t), Uj = Pe({
|
|
36556
36556
|
executable: Qi(),
|
|
36557
36557
|
owner: In,
|
|
36558
36558
|
lamports: fe(),
|
|
@@ -37156,7 +37156,7 @@ function c_(t, e, n) {
|
|
|
37156
37156
|
if (FR(e))
|
|
37157
37157
|
try {
|
|
37158
37158
|
const i = Ic(t);
|
|
37159
|
-
r = "0x" +
|
|
37159
|
+
r = "0x" + wt.Buffer.from(i).toString("hex");
|
|
37160
37160
|
} catch {
|
|
37161
37161
|
r = t.startsWith("0x") ? t : "0x" + t;
|
|
37162
37162
|
}
|
|
@@ -37185,7 +37185,7 @@ function Jj(t) {
|
|
|
37185
37185
|
function Zj(t) {
|
|
37186
37186
|
const e = Ic(t);
|
|
37187
37187
|
return {
|
|
37188
|
-
signature: "0x" +
|
|
37188
|
+
signature: "0x" + wt.Buffer.from(e).toString("hex"),
|
|
37189
37189
|
rawSignature: t
|
|
37190
37190
|
};
|
|
37191
37191
|
}
|
|
@@ -37193,7 +37193,7 @@ function Xj(t) {
|
|
|
37193
37193
|
try {
|
|
37194
37194
|
const e = Ic(t);
|
|
37195
37195
|
return {
|
|
37196
|
-
signature:
|
|
37196
|
+
signature: wt.Buffer.from(e).toString("base64"),
|
|
37197
37197
|
rawSignature: t
|
|
37198
37198
|
};
|
|
37199
37199
|
} catch {
|
|
@@ -37207,7 +37207,7 @@ function Qj(t) {
|
|
|
37207
37207
|
try {
|
|
37208
37208
|
const e = Ic(t);
|
|
37209
37209
|
return {
|
|
37210
|
-
signature:
|
|
37210
|
+
signature: wt.Buffer.from(e).toString("hex"),
|
|
37211
37211
|
rawSignature: t
|
|
37212
37212
|
};
|
|
37213
37213
|
} catch {
|
|
@@ -37277,7 +37277,7 @@ function tH(t) {
|
|
|
37277
37277
|
};
|
|
37278
37278
|
if (typeof t == "string")
|
|
37279
37279
|
try {
|
|
37280
|
-
const e =
|
|
37280
|
+
const e = wt.Buffer.from(t, "base64");
|
|
37281
37281
|
return {
|
|
37282
37282
|
parsed: $n(new Uint8Array(e)),
|
|
37283
37283
|
originalFormat: "base64"
|
|
@@ -37302,7 +37302,7 @@ function nH(t) {
|
|
|
37302
37302
|
}
|
|
37303
37303
|
if (t instanceof Uint8Array)
|
|
37304
37304
|
return {
|
|
37305
|
-
parsed: "0x" +
|
|
37305
|
+
parsed: "0x" + wt.Buffer.from(t).toString("hex"),
|
|
37306
37306
|
originalFormat: "bytes"
|
|
37307
37307
|
};
|
|
37308
37308
|
if (t && typeof t == "object" && (t.to || t.data || t.from))
|
|
@@ -37371,7 +37371,7 @@ function iH(t) {
|
|
|
37371
37371
|
originalFormat: "bytes"
|
|
37372
37372
|
};
|
|
37373
37373
|
if (typeof t == "string") {
|
|
37374
|
-
const e = new Uint8Array(
|
|
37374
|
+
const e = new Uint8Array(wt.Buffer.from(t, "hex"));
|
|
37375
37375
|
return {
|
|
37376
37376
|
parsed: $n(e),
|
|
37377
37377
|
originalFormat: "hex"
|
|
@@ -38029,7 +38029,7 @@ var cH = class {
|
|
|
38029
38029
|
const n = (c) => /^0x[0-9a-fA-F]+$/.test(c), r = (() => {
|
|
38030
38030
|
if (n(e.message)) {
|
|
38031
38031
|
const c = e.message.slice(2), l = c.length % 2 === 0 ? c : `0${c}`;
|
|
38032
|
-
return
|
|
38032
|
+
return wt.Buffer.from(l, "hex").toString("utf8");
|
|
38033
38033
|
}
|
|
38034
38034
|
return e.message;
|
|
38035
38035
|
})(), i = oB(r), o = (await this.storage.getSession())?.accountDerivationIndex ?? 0, a = await this.client.ethereumSignMessage({
|
|
@@ -38930,7 +38930,7 @@ var yH = class {
|
|
|
38930
38930
|
walletName: this.walletName,
|
|
38931
38931
|
signatureLength: r.signature.length
|
|
38932
38932
|
}), {
|
|
38933
|
-
signature: r.signature instanceof Uint8Array ? r.signature : new Uint8Array(
|
|
38933
|
+
signature: r.signature instanceof Uint8Array ? r.signature : new Uint8Array(wt.Buffer.from(r.signature, "base64")),
|
|
38934
38934
|
publicKey: r.publicKey || this._publicKey || ""
|
|
38935
38935
|
};
|
|
38936
38936
|
} catch (r) {
|
|
@@ -39623,7 +39623,7 @@ var yH = class {
|
|
|
39623
39623
|
async signMessage(t) {
|
|
39624
39624
|
const e = typeof t == "string" ? new TextEncoder().encode(t) : t, n = await this.phantom.solana.signMessage(e);
|
|
39625
39625
|
return {
|
|
39626
|
-
signature: n.signature instanceof Uint8Array ? n.signature : new Uint8Array(
|
|
39626
|
+
signature: n.signature instanceof Uint8Array ? n.signature : new Uint8Array(wt.Buffer.from(n.signature, "base64")),
|
|
39627
39627
|
publicKey: this._publicKey || ""
|
|
39628
39628
|
};
|
|
39629
39629
|
}
|
|
@@ -41503,7 +41503,7 @@ const VH = ({ open: t, onClose: e, onSigned: n }) => {
|
|
|
41503
41503
|
}
|
|
41504
41504
|
}
|
|
41505
41505
|
];
|
|
41506
|
-
return /* @__PURE__ */
|
|
41506
|
+
return /* @__PURE__ */ Et.jsx(YO, { children: t && /* @__PURE__ */ Et.jsx(
|
|
41507
41507
|
pv.div,
|
|
41508
41508
|
{
|
|
41509
41509
|
className: "backdrop-blur-sm top-0 left-0 bg-black/50 fixed z-50 w-full h-full flex justify-center items-start",
|
|
@@ -41511,7 +41511,7 @@ const VH = ({ open: t, onClose: e, onSigned: n }) => {
|
|
|
41511
41511
|
initial: { opacity: 0 },
|
|
41512
41512
|
animate: { opacity: 1 },
|
|
41513
41513
|
exit: { opacity: 0 },
|
|
41514
|
-
children: /* @__PURE__ */
|
|
41514
|
+
children: /* @__PURE__ */ Et.jsxs(
|
|
41515
41515
|
pv.div,
|
|
41516
41516
|
{
|
|
41517
41517
|
className: "bg-card rounded-b-4xl p-8 max-w-130 w-full flex flex-col gap-8 items-center border-x border-b border-foreground/20",
|
|
@@ -41528,16 +41528,16 @@ const VH = ({ open: t, onClose: e, onSigned: n }) => {
|
|
|
41528
41528
|
},
|
|
41529
41529
|
onClick: (d) => d.stopPropagation(),
|
|
41530
41530
|
children: [
|
|
41531
|
-
/* @__PURE__ */
|
|
41532
|
-
/* @__PURE__ */
|
|
41533
|
-
/* @__PURE__ */
|
|
41531
|
+
/* @__PURE__ */ Et.jsxs("div", { className: "flex flex-col items-center text-center", children: [
|
|
41532
|
+
/* @__PURE__ */ Et.jsx("h2", { className: "text-xl font-medium", children: "Connect a Wallet" }),
|
|
41533
|
+
/* @__PURE__ */ Et.jsx("p", { children: "Connect your wallet to Login PeridotVault" })
|
|
41534
41534
|
] }),
|
|
41535
|
-
/* @__PURE__ */
|
|
41536
|
-
/* @__PURE__ */
|
|
41537
|
-
/* @__PURE__ */
|
|
41538
|
-
/* @__PURE__ */
|
|
41535
|
+
/* @__PURE__ */ Et.jsx(jH, {}),
|
|
41536
|
+
/* @__PURE__ */ Et.jsxs("div", { className: "w-full flex justify-center text-center relative", children: [
|
|
41537
|
+
/* @__PURE__ */ Et.jsx("hr", { className: "border-foreground/10 absolute w-full top-1/2" }),
|
|
41538
|
+
/* @__PURE__ */ Et.jsx("span", { className: "text-sm text-muted-foreground px-4 z-10 bg-card", children: "Other wallets" })
|
|
41539
41539
|
] }),
|
|
41540
|
-
/* @__PURE__ */
|
|
41540
|
+
/* @__PURE__ */ Et.jsx("div", { className: "bg-background w-full rounded-xl overflow-hidden", children: u.map((d, f) => /* @__PURE__ */ Et.jsx(
|
|
41541
41541
|
HH,
|
|
41542
41542
|
{
|
|
41543
41543
|
isFirst: f == 0,
|
|
@@ -41546,26 +41546,26 @@ const VH = ({ open: t, onClose: e, onSigned: n }) => {
|
|
|
41546
41546
|
},
|
|
41547
41547
|
f
|
|
41548
41548
|
)) }),
|
|
41549
|
-
/* @__PURE__ */
|
|
41549
|
+
/* @__PURE__ */ Et.jsx("div", { className: "w-full flex justify-center text-center", children: /* @__PURE__ */ Et.jsx("span", { className: "text-sm text-muted-foreground", children: "By connecting a wallet, you agree to PeridotVault Terms of Service and consent to its Privacy Policy" }) })
|
|
41550
41550
|
]
|
|
41551
41551
|
}
|
|
41552
41552
|
)
|
|
41553
41553
|
}
|
|
41554
41554
|
) });
|
|
41555
|
-
}, jH = () => /* @__PURE__ */
|
|
41555
|
+
}, jH = () => /* @__PURE__ */ Et.jsxs(
|
|
41556
41556
|
ZS,
|
|
41557
41557
|
{
|
|
41558
41558
|
disabled: !0,
|
|
41559
41559
|
className: "relative overflow-hidden bg-linear-to-tr from-highlight/80 from-5% to-accent/80 rounded-xl opacity-50 cursor-not-allowed",
|
|
41560
41560
|
children: [
|
|
41561
|
-
/* @__PURE__ */
|
|
41562
|
-
/* @__PURE__ */
|
|
41563
|
-
/* @__PURE__ */
|
|
41564
|
-
/* @__PURE__ */
|
|
41565
|
-
/* @__PURE__ */
|
|
41561
|
+
/* @__PURE__ */ Et.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
41562
|
+
/* @__PURE__ */ Et.jsx("div", { className: "h-12 w-12 overflow-hidden", children: /* @__PURE__ */ Et.jsx("img", { src: "/assets/wallets/peridotwallet.svg", alt: "", className: "p-2" }) }),
|
|
41563
|
+
/* @__PURE__ */ Et.jsxs("div", { className: "flex flex-col items-start leading-tight", children: [
|
|
41564
|
+
/* @__PURE__ */ Et.jsx("span", { children: "Get Peridot Wallet" }),
|
|
41565
|
+
/* @__PURE__ */ Et.jsx("span", { className: "text-sm font-normal", children: "Comming Soon" })
|
|
41566
41566
|
] })
|
|
41567
41567
|
] }),
|
|
41568
|
-
/* @__PURE__ */
|
|
41568
|
+
/* @__PURE__ */ Et.jsx("div", { className: "" })
|
|
41569
41569
|
]
|
|
41570
41570
|
}
|
|
41571
41571
|
), HH = ({
|
|
@@ -41582,55 +41582,59 @@ const VH = ({ open: t, onClose: e, onSigned: n }) => {
|
|
|
41582
41582
|
KH(e.downloadUrl);
|
|
41583
41583
|
}
|
|
41584
41584
|
};
|
|
41585
|
-
return /* @__PURE__ */
|
|
41586
|
-
!t && /* @__PURE__ */
|
|
41587
|
-
/* @__PURE__ */
|
|
41585
|
+
return /* @__PURE__ */ Et.jsxs("div", { className: "", children: [
|
|
41586
|
+
!t && /* @__PURE__ */ Et.jsx("hr", { className: "border-foreground/10" }),
|
|
41587
|
+
/* @__PURE__ */ Et.jsxs(
|
|
41588
41588
|
ZS,
|
|
41589
41589
|
{
|
|
41590
41590
|
onClick: r,
|
|
41591
41591
|
className: "duration-300 flex items-center justify-between hover:bg-foreground/10 cursor-pointer",
|
|
41592
41592
|
children: [
|
|
41593
|
-
/* @__PURE__ */
|
|
41594
|
-
/* @__PURE__ */
|
|
41595
|
-
/* @__PURE__ */
|
|
41593
|
+
/* @__PURE__ */ Et.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
41594
|
+
/* @__PURE__ */ Et.jsx("div", { className: "h-12 w-12 aspect-square bg-foreground rounded-md overflow-hidden", children: /* @__PURE__ */ Et.jsx("img", { src: e.logoUrl, alt: "Logo" + e.title }) }),
|
|
41595
|
+
/* @__PURE__ */ Et.jsx("span", { children: e.title })
|
|
41596
41596
|
] }),
|
|
41597
|
-
/* @__PURE__ */
|
|
41597
|
+
/* @__PURE__ */ Et.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: e.detected ? "Detected" : "" })
|
|
41598
41598
|
]
|
|
41599
41599
|
}
|
|
41600
41600
|
)
|
|
41601
41601
|
] });
|
|
41602
41602
|
};
|
|
41603
|
-
function Ez({
|
|
41604
|
-
|
|
41605
|
-
|
|
41603
|
+
function Ez({
|
|
41604
|
+
onSigned: t,
|
|
41605
|
+
onChange: e,
|
|
41606
|
+
onClickAfterSigned: n
|
|
41607
|
+
}) {
|
|
41608
|
+
const [r, i] = Xa(), [s, o] = Xa(!1), a = (c) => {
|
|
41609
|
+
i(c), e?.(c), c && t?.(c);
|
|
41606
41610
|
};
|
|
41607
|
-
return
|
|
41611
|
+
return r ? /* @__PURE__ */ Et.jsxs(
|
|
41608
41612
|
"button",
|
|
41609
41613
|
{
|
|
41610
|
-
onClick: () =>
|
|
41614
|
+
onClick: () => n?.(),
|
|
41611
41615
|
className: "flex items-center gap-2 active:scale-95 duration-200 cursor-pointer",
|
|
41612
41616
|
children: [
|
|
41613
|
-
/* @__PURE__ */
|
|
41614
|
-
/* @__PURE__ */
|
|
41617
|
+
/* @__PURE__ */ Et.jsx("div", { className: "w-8 h-8 rounded-lg bg-accent flex items-center justify-center text-highlight text-xl font-black", children: /* @__PURE__ */ Et.jsx("span", { children: "@" }) }),
|
|
41618
|
+
/* @__PURE__ */ Et.jsx("span", { className: "font-medium", children: WT(r.accountId) })
|
|
41615
41619
|
]
|
|
41616
41620
|
}
|
|
41617
|
-
)
|
|
41618
|
-
/* @__PURE__ */
|
|
41621
|
+
) : /* @__PURE__ */ Et.jsxs("div", { children: [
|
|
41622
|
+
/* @__PURE__ */ Et.jsx(
|
|
41619
41623
|
"button",
|
|
41620
41624
|
{
|
|
41621
|
-
onClick: () =>
|
|
41622
|
-
disabled:
|
|
41625
|
+
onClick: () => o(!s),
|
|
41626
|
+
disabled: s,
|
|
41623
41627
|
className: `rounded px-8 py-2 duration-300 font-bold
|
|
41624
|
-
${
|
|
41625
|
-
children:
|
|
41628
|
+
${s ? "bg-white text-background cursor-not-allowed opacity-60" : "bg-accent hover:scale-105 cursor-pointer"} `,
|
|
41629
|
+
children: s ? "Connecting..." : "Connect"
|
|
41626
41630
|
}
|
|
41627
41631
|
),
|
|
41628
|
-
/* @__PURE__ */
|
|
41632
|
+
/* @__PURE__ */ Et.jsx(
|
|
41629
41633
|
VH,
|
|
41630
41634
|
{
|
|
41631
|
-
open:
|
|
41632
|
-
onClose: () =>
|
|
41633
|
-
onSigned: (
|
|
41635
|
+
open: s,
|
|
41636
|
+
onClose: () => o(!1),
|
|
41637
|
+
onSigned: (c) => a(c)
|
|
41634
41638
|
}
|
|
41635
41639
|
)
|
|
41636
41640
|
] });
|