@coinbase/cdp-core 0.0.64 → 0.0.65
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/esm/index.native100.js +28 -364
- package/dist/esm/index.native101.js +2 -4
- package/dist/esm/index.native102.js +65 -28
- package/dist/esm/index.native103.js +364 -28
- package/dist/esm/index.native104.js +6 -6
- package/dist/esm/index.native111.js +1 -1
- package/dist/esm/index.native12.js +33 -16
- package/dist/esm/index.native120.js +4 -3
- package/dist/esm/index.native121.js +16 -18
- package/dist/esm/index.native122.js +8 -10
- package/dist/esm/index.native123.js +4 -20
- package/dist/esm/index.native124.js +19 -93
- package/dist/esm/index.native125.js +9 -21
- package/dist/esm/index.native126.js +8 -118
- package/dist/esm/index.native127.js +71 -4
- package/dist/esm/index.native128.js +12 -12
- package/dist/esm/index.native129.js +3 -7
- package/dist/esm/index.native130.js +4 -3
- package/dist/esm/index.native131.js +4 -19
- package/dist/esm/index.native132.js +4 -8
- package/dist/esm/index.native133.js +19 -7
- package/dist/esm/index.native134.js +47 -66
- package/dist/esm/index.native135.js +17 -18
- package/dist/esm/index.native136.js +20 -3
- package/dist/esm/index.native137.js +8 -4
- package/dist/esm/index.native138.js +30 -4
- package/dist/esm/index.native139.js +7 -4
- package/dist/esm/index.native140.js +11 -10
- package/dist/esm/index.native141.js +3 -52
- package/dist/esm/index.native142.js +20 -17
- package/dist/esm/index.native143.js +10 -21
- package/dist/esm/index.native144.js +20 -9
- package/dist/esm/index.native145.js +93 -30
- package/dist/esm/index.native146.js +21 -8
- package/dist/esm/index.native147.js +117 -20
- package/dist/esm/index.native169.js +1 -1
- package/dist/esm/index.native47.js +8 -9
- package/dist/esm/index.native48.js +3 -3
- package/dist/esm/index.native97.js +2 -377
- package/dist/esm/index.native98.js +379 -2
- package/dist/esm/index.native99.js +28 -65
- package/dist/esm/index.web100.js +1 -1
- package/dist/esm/index.web101.js +1 -1
- package/dist/esm/index.web103.js +6 -6
- package/dist/esm/index.web109.js +4 -20
- package/dist/esm/index.web11.js +33 -16
- package/dist/esm/index.web110.js +19 -5
- package/dist/esm/index.web111.js +7 -47
- package/dist/esm/index.web112.js +3 -19
- package/dist/esm/index.web113.js +19 -79
- package/dist/esm/index.web114.js +8 -103
- package/dist/esm/index.web115.js +7 -32
- package/dist/esm/index.web116.js +71 -6
- package/dist/esm/index.web117.js +18 -4
- package/dist/esm/index.web118.js +3 -20
- package/dist/esm/index.web119.js +5 -10
- package/dist/esm/index.web120.js +5 -20
- package/dist/esm/index.web121.js +5 -94
- package/dist/esm/index.web122.js +19 -20
- package/dist/esm/index.web123.js +51 -116
- package/dist/esm/index.web124.js +17 -78
- package/dist/esm/index.web125.js +20 -4
- package/dist/esm/index.web126.js +8 -18
- package/dist/esm/index.web127.js +30 -7
- package/dist/esm/index.web128.js +7 -3
- package/dist/esm/index.web129.js +15 -14
- package/dist/esm/index.web130.js +20 -8
- package/dist/esm/index.web131.js +5 -8
- package/dist/esm/index.web132.js +45 -69
- package/dist/esm/index.web133.js +18 -17
- package/dist/esm/index.web134.js +79 -3
- package/dist/esm/index.web135.js +103 -4
- package/dist/esm/index.web136.js +32 -4
- package/dist/esm/index.web137.js +6 -4
- package/dist/esm/index.web138.js +4 -19
- package/dist/esm/index.web139.js +17 -49
- package/dist/esm/index.web140.js +10 -18
- package/dist/esm/index.web141.js +19 -20
- package/dist/esm/index.web142.js +94 -9
- package/dist/esm/index.web143.js +20 -30
- package/dist/esm/index.web144.js +118 -8
- package/dist/esm/index.web145.js +77 -19
- package/dist/esm/index.web147.js +46 -7
- package/dist/esm/index.web148.js +8 -2
- package/dist/esm/index.web149.js +2 -378
- package/dist/esm/index.web150.js +354 -809
- package/dist/esm/index.web151.js +832 -38
- package/dist/esm/index.web152.js +39 -2
- package/dist/esm/index.web153.js +2 -70
- package/dist/esm/index.web154.js +66 -31
- package/dist/esm/index.web155.js +33 -19
- package/dist/esm/index.web156.js +21 -5
- package/dist/esm/index.web157.js +5 -2
- package/dist/esm/index.web158.js +2 -109
- package/dist/esm/index.web159.js +109 -2
- package/dist/esm/index.web160.js +2 -18
- package/dist/esm/index.web161.js +18 -28
- package/dist/esm/index.web162.js +26 -6
- package/dist/esm/index.web163.js +6 -9
- package/dist/esm/index.web164.js +11 -13
- package/dist/esm/index.web165.js +11 -8
- package/dist/esm/index.web166.js +7 -14
- package/dist/esm/index.web167.js +16 -80
- package/dist/esm/index.web168.js +79 -45
- package/dist/esm/index.web169.js +1 -1
- package/dist/esm/index.web25.js +2 -2
- package/dist/esm/index.web26.js +1 -1
- package/dist/esm/index.web37.js +12 -12
- package/dist/esm/index.web43.js +2 -2
- package/dist/esm/index.web46.js +8 -9
- package/dist/esm/index.web47.js +3 -3
- package/dist/esm/index.web57.js +2 -18
- package/dist/esm/index.web58.js +376 -45
- package/dist/esm/index.web59.js +28 -13
- package/dist/esm/index.web60.js +28 -55
- package/dist/esm/index.web61.js +17 -6
- package/dist/esm/index.web62.js +44 -20
- package/dist/esm/index.web63.js +13 -11
- package/dist/esm/index.web64.js +55 -3
- package/dist/esm/index.web65.js +6 -3
- package/dist/esm/index.web66.js +20 -33
- package/dist/esm/index.web67.js +11 -12
- package/dist/esm/index.web68.js +3 -4
- package/dist/esm/index.web69.js +3 -28
- package/dist/esm/index.web70.js +34 -6
- package/dist/esm/index.web71.js +11 -41
- package/dist/esm/index.web72.js +4 -55
- package/dist/esm/index.web73.js +28 -127
- package/dist/esm/index.web74.js +6 -23
- package/dist/esm/index.web75.js +41 -11
- package/dist/esm/index.web76.js +53 -102
- package/dist/esm/index.web77.js +127 -6
- package/dist/esm/index.web78.js +24 -3
- package/dist/esm/index.web79.js +12 -14
- package/dist/esm/index.web80.js +100 -30
- package/dist/esm/index.web81.js +6 -78
- package/dist/esm/index.web82.js +3 -2
- package/dist/esm/index.web83.js +15 -2
- package/dist/esm/index.web84.js +30 -8
- package/dist/esm/index.web85.js +74 -33
- package/dist/esm/index.web86.js +2 -7
- package/dist/esm/index.web87.js +2 -35
- package/dist/esm/index.web88.js +12 -8
- package/dist/esm/index.web89.js +36 -9
- package/dist/esm/index.web90.js +6 -11
- package/dist/esm/index.web91.js +33 -12
- package/dist/esm/index.web92.js +8 -18
- package/dist/esm/index.web93.js +10 -5
- package/dist/esm/index.web94.js +12 -5
- package/dist/esm/index.web95.js +13 -10
- package/dist/esm/index.web96.js +19 -2
- package/dist/esm/index.web97.js +5 -376
- package/dist/esm/index.web98.js +5 -29
- package/dist/esm/index.web99.js +10 -28
- package/dist/native/index.native100.js +28 -364
- package/dist/native/index.native101.js +2 -4
- package/dist/native/index.native102.js +65 -28
- package/dist/native/index.native103.js +364 -28
- package/dist/native/index.native104.js +6 -6
- package/dist/native/index.native111.js +1 -1
- package/dist/native/index.native12.js +33 -16
- package/dist/native/index.native120.js +4 -3
- package/dist/native/index.native121.js +16 -18
- package/dist/native/index.native122.js +8 -10
- package/dist/native/index.native123.js +4 -20
- package/dist/native/index.native124.js +19 -93
- package/dist/native/index.native125.js +9 -21
- package/dist/native/index.native126.js +8 -118
- package/dist/native/index.native127.js +71 -4
- package/dist/native/index.native128.js +12 -12
- package/dist/native/index.native129.js +3 -7
- package/dist/native/index.native130.js +4 -3
- package/dist/native/index.native131.js +4 -19
- package/dist/native/index.native132.js +4 -8
- package/dist/native/index.native133.js +19 -7
- package/dist/native/index.native134.js +47 -66
- package/dist/native/index.native135.js +17 -18
- package/dist/native/index.native136.js +20 -3
- package/dist/native/index.native137.js +8 -4
- package/dist/native/index.native138.js +30 -4
- package/dist/native/index.native139.js +7 -4
- package/dist/native/index.native140.js +11 -10
- package/dist/native/index.native141.js +3 -52
- package/dist/native/index.native142.js +20 -17
- package/dist/native/index.native143.js +10 -21
- package/dist/native/index.native144.js +20 -9
- package/dist/native/index.native145.js +93 -30
- package/dist/native/index.native146.js +21 -8
- package/dist/native/index.native147.js +117 -20
- package/dist/native/index.native169.js +1 -1
- package/dist/native/index.native47.js +8 -9
- package/dist/native/index.native48.js +3 -3
- package/dist/native/index.native97.js +2 -377
- package/dist/native/index.native98.js +379 -2
- package/dist/native/index.native99.js +28 -65
- package/dist/native-types/actions/fetchWithX402.d.ts +1 -1
- package/dist/native-types/version.d.ts +1 -1
- package/dist/types/actions/fetchWithX402.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index.web100.js +1 -1
- package/dist/web/index.web101.js +1 -1
- package/dist/web/index.web103.js +6 -6
- package/dist/web/index.web109.js +4 -20
- package/dist/web/index.web11.js +33 -16
- package/dist/web/index.web110.js +19 -5
- package/dist/web/index.web111.js +7 -47
- package/dist/web/index.web112.js +3 -19
- package/dist/web/index.web113.js +19 -79
- package/dist/web/index.web114.js +8 -103
- package/dist/web/index.web115.js +7 -32
- package/dist/web/index.web116.js +71 -6
- package/dist/web/index.web117.js +18 -4
- package/dist/web/index.web118.js +3 -20
- package/dist/web/index.web119.js +5 -10
- package/dist/web/index.web120.js +5 -20
- package/dist/web/index.web121.js +5 -94
- package/dist/web/index.web122.js +19 -20
- package/dist/web/index.web123.js +51 -116
- package/dist/web/index.web124.js +17 -78
- package/dist/web/index.web125.js +20 -4
- package/dist/web/index.web126.js +8 -18
- package/dist/web/index.web127.js +30 -7
- package/dist/web/index.web128.js +7 -3
- package/dist/web/index.web129.js +15 -14
- package/dist/web/index.web130.js +20 -8
- package/dist/web/index.web131.js +5 -8
- package/dist/web/index.web132.js +45 -69
- package/dist/web/index.web133.js +18 -17
- package/dist/web/index.web134.js +79 -3
- package/dist/web/index.web135.js +103 -4
- package/dist/web/index.web136.js +32 -4
- package/dist/web/index.web137.js +6 -4
- package/dist/web/index.web138.js +4 -19
- package/dist/web/index.web139.js +17 -49
- package/dist/web/index.web140.js +10 -18
- package/dist/web/index.web141.js +19 -20
- package/dist/web/index.web142.js +94 -9
- package/dist/web/index.web143.js +20 -30
- package/dist/web/index.web144.js +118 -8
- package/dist/web/index.web145.js +77 -19
- package/dist/web/index.web147.js +46 -7
- package/dist/web/index.web148.js +8 -2
- package/dist/web/index.web149.js +2 -378
- package/dist/web/index.web150.js +354 -809
- package/dist/web/index.web151.js +832 -38
- package/dist/web/index.web152.js +39 -2
- package/dist/web/index.web153.js +2 -70
- package/dist/web/index.web154.js +66 -31
- package/dist/web/index.web155.js +33 -19
- package/dist/web/index.web156.js +21 -5
- package/dist/web/index.web157.js +5 -2
- package/dist/web/index.web158.js +2 -109
- package/dist/web/index.web159.js +109 -2
- package/dist/web/index.web160.js +2 -18
- package/dist/web/index.web161.js +18 -28
- package/dist/web/index.web162.js +26 -6
- package/dist/web/index.web163.js +6 -9
- package/dist/web/index.web164.js +11 -13
- package/dist/web/index.web165.js +11 -8
- package/dist/web/index.web166.js +7 -14
- package/dist/web/index.web167.js +16 -80
- package/dist/web/index.web168.js +79 -45
- package/dist/web/index.web169.js +1 -1
- package/dist/web/index.web25.js +2 -2
- package/dist/web/index.web26.js +1 -1
- package/dist/web/index.web37.js +12 -12
- package/dist/web/index.web43.js +2 -2
- package/dist/web/index.web46.js +8 -9
- package/dist/web/index.web47.js +3 -3
- package/dist/web/index.web57.js +2 -18
- package/dist/web/index.web58.js +376 -45
- package/dist/web/index.web59.js +28 -13
- package/dist/web/index.web60.js +28 -55
- package/dist/web/index.web61.js +17 -6
- package/dist/web/index.web62.js +44 -20
- package/dist/web/index.web63.js +13 -11
- package/dist/web/index.web64.js +55 -3
- package/dist/web/index.web65.js +6 -3
- package/dist/web/index.web66.js +20 -33
- package/dist/web/index.web67.js +11 -12
- package/dist/web/index.web68.js +3 -4
- package/dist/web/index.web69.js +3 -28
- package/dist/web/index.web70.js +34 -6
- package/dist/web/index.web71.js +11 -41
- package/dist/web/index.web72.js +4 -55
- package/dist/web/index.web73.js +28 -127
- package/dist/web/index.web74.js +6 -23
- package/dist/web/index.web75.js +41 -11
- package/dist/web/index.web76.js +53 -102
- package/dist/web/index.web77.js +127 -6
- package/dist/web/index.web78.js +24 -3
- package/dist/web/index.web79.js +12 -14
- package/dist/web/index.web80.js +100 -30
- package/dist/web/index.web81.js +6 -78
- package/dist/web/index.web82.js +3 -2
- package/dist/web/index.web83.js +15 -2
- package/dist/web/index.web84.js +30 -8
- package/dist/web/index.web85.js +74 -33
- package/dist/web/index.web86.js +2 -7
- package/dist/web/index.web87.js +2 -35
- package/dist/web/index.web88.js +12 -8
- package/dist/web/index.web89.js +36 -9
- package/dist/web/index.web90.js +6 -11
- package/dist/web/index.web91.js +33 -12
- package/dist/web/index.web92.js +8 -18
- package/dist/web/index.web93.js +10 -5
- package/dist/web/index.web94.js +12 -5
- package/dist/web/index.web95.js +13 -10
- package/dist/web/index.web96.js +19 -2
- package/dist/web/index.web97.js +5 -376
- package/dist/web/index.web98.js +5 -29
- package/dist/web/index.web99.js +10 -28
- package/dist/web-types/actions/fetchWithX402.d.ts +1 -1
- package/dist/web-types/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/web/index.web144.js
CHANGED
|
@@ -1,10 +1,120 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { isJWK as p } from "./index.web167.js";
|
|
2
|
+
import { decode as m } from "./index.web139.js";
|
|
3
|
+
import y from "./index.web168.js";
|
|
4
|
+
import { isCryptoKey as S, isKeyObject as K } from "./index.web166.js";
|
|
5
|
+
let c;
|
|
6
|
+
const f = async (e, r, s, i = !1) => {
|
|
7
|
+
c ||= /* @__PURE__ */ new WeakMap();
|
|
8
|
+
let n = c.get(e);
|
|
9
|
+
if (n?.[s])
|
|
10
|
+
return n[s];
|
|
11
|
+
const t = await y({ ...r, alg: s });
|
|
12
|
+
return i && Object.freeze(e), n ? n[s] = t : c.set(e, { [s]: t }), t;
|
|
13
|
+
}, E = (e, r) => {
|
|
14
|
+
c ||= /* @__PURE__ */ new WeakMap();
|
|
15
|
+
let s = c.get(e);
|
|
16
|
+
if (s?.[r])
|
|
17
|
+
return s[r];
|
|
18
|
+
const i = e.type === "public", n = !!i;
|
|
19
|
+
let t;
|
|
20
|
+
if (e.asymmetricKeyType === "x25519") {
|
|
21
|
+
switch (r) {
|
|
22
|
+
case "ECDH-ES":
|
|
23
|
+
case "ECDH-ES+A128KW":
|
|
24
|
+
case "ECDH-ES+A192KW":
|
|
25
|
+
case "ECDH-ES+A256KW":
|
|
26
|
+
break;
|
|
27
|
+
default:
|
|
28
|
+
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
|
29
|
+
}
|
|
30
|
+
t = e.toCryptoKey(e.asymmetricKeyType, n, i ? [] : ["deriveBits"]);
|
|
31
|
+
}
|
|
32
|
+
if (e.asymmetricKeyType === "ed25519") {
|
|
33
|
+
if (r !== "EdDSA" && r !== "Ed25519")
|
|
34
|
+
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
|
35
|
+
t = e.toCryptoKey(e.asymmetricKeyType, n, [
|
|
36
|
+
i ? "verify" : "sign"
|
|
37
|
+
]);
|
|
38
|
+
}
|
|
39
|
+
if (e.asymmetricKeyType === "rsa") {
|
|
40
|
+
let a;
|
|
41
|
+
switch (r) {
|
|
42
|
+
case "RSA-OAEP":
|
|
43
|
+
a = "SHA-1";
|
|
44
|
+
break;
|
|
45
|
+
case "RS256":
|
|
46
|
+
case "PS256":
|
|
47
|
+
case "RSA-OAEP-256":
|
|
48
|
+
a = "SHA-256";
|
|
49
|
+
break;
|
|
50
|
+
case "RS384":
|
|
51
|
+
case "PS384":
|
|
52
|
+
case "RSA-OAEP-384":
|
|
53
|
+
a = "SHA-384";
|
|
54
|
+
break;
|
|
55
|
+
case "RS512":
|
|
56
|
+
case "PS512":
|
|
57
|
+
case "RSA-OAEP-512":
|
|
58
|
+
a = "SHA-512";
|
|
59
|
+
break;
|
|
60
|
+
default:
|
|
61
|
+
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
|
62
|
+
}
|
|
63
|
+
if (r.startsWith("RSA-OAEP"))
|
|
64
|
+
return e.toCryptoKey({
|
|
65
|
+
name: "RSA-OAEP",
|
|
66
|
+
hash: a
|
|
67
|
+
}, n, i ? ["encrypt"] : ["decrypt"]);
|
|
68
|
+
t = e.toCryptoKey({
|
|
69
|
+
name: r.startsWith("PS") ? "RSA-PSS" : "RSASSA-PKCS1-v1_5",
|
|
70
|
+
hash: a
|
|
71
|
+
}, n, [i ? "verify" : "sign"]);
|
|
72
|
+
}
|
|
73
|
+
if (e.asymmetricKeyType === "ec") {
|
|
74
|
+
const o = (/* @__PURE__ */ new Map([
|
|
75
|
+
["prime256v1", "P-256"],
|
|
76
|
+
["secp384r1", "P-384"],
|
|
77
|
+
["secp521r1", "P-521"]
|
|
78
|
+
])).get(e.asymmetricKeyDetails?.namedCurve);
|
|
79
|
+
if (!o)
|
|
80
|
+
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
|
81
|
+
r === "ES256" && o === "P-256" && (t = e.toCryptoKey({
|
|
82
|
+
name: "ECDSA",
|
|
83
|
+
namedCurve: o
|
|
84
|
+
}, n, [i ? "verify" : "sign"])), r === "ES384" && o === "P-384" && (t = e.toCryptoKey({
|
|
85
|
+
name: "ECDSA",
|
|
86
|
+
namedCurve: o
|
|
87
|
+
}, n, [i ? "verify" : "sign"])), r === "ES512" && o === "P-521" && (t = e.toCryptoKey({
|
|
88
|
+
name: "ECDSA",
|
|
89
|
+
namedCurve: o
|
|
90
|
+
}, n, [i ? "verify" : "sign"])), r.startsWith("ECDH-ES") && (t = e.toCryptoKey({
|
|
91
|
+
name: "ECDH",
|
|
92
|
+
namedCurve: o
|
|
93
|
+
}, n, i ? [] : ["deriveBits"]));
|
|
94
|
+
}
|
|
95
|
+
if (!t)
|
|
96
|
+
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
|
97
|
+
return s ? s[r] = t : c.set(e, { [r]: t }), t;
|
|
98
|
+
}, d = async (e, r) => {
|
|
99
|
+
if (e instanceof Uint8Array || S(e))
|
|
100
|
+
return e;
|
|
101
|
+
if (K(e)) {
|
|
102
|
+
if (e.type === "secret")
|
|
103
|
+
return e.export();
|
|
104
|
+
if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
|
|
105
|
+
try {
|
|
106
|
+
return E(e, r);
|
|
107
|
+
} catch (i) {
|
|
108
|
+
if (i instanceof TypeError)
|
|
109
|
+
throw i;
|
|
110
|
+
}
|
|
111
|
+
let s = e.export({ format: "jwk" });
|
|
112
|
+
return f(e, s, r);
|
|
113
|
+
}
|
|
114
|
+
if (p(e))
|
|
115
|
+
return e.k ? m(e.k) : f(e, e, r, !0);
|
|
116
|
+
throw new Error("unreachable");
|
|
117
|
+
};
|
|
8
118
|
export {
|
|
9
|
-
|
|
119
|
+
d as default
|
|
10
120
|
};
|
package/dist/web/index.web145.js
CHANGED
|
@@ -1,23 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { Hash as g, createView as l, aexists as b, toBytes as a, abytes as d, aoutput as x, clean as w } from "./index.web134.js";
|
|
2
|
+
function y(o, t, s, n) {
|
|
3
|
+
if (typeof o.setBigUint64 == "function")
|
|
4
|
+
return o.setBigUint64(t, s, n);
|
|
5
|
+
const i = BigInt(32), h = BigInt(4294967295), e = Number(s >> i & h), r = Number(s & h), c = n ? 4 : 0, u = n ? 0 : 4;
|
|
6
|
+
o.setUint32(t + c, e, n), o.setUint32(t + u, r, n);
|
|
7
|
+
}
|
|
8
|
+
function U(o, t, s) {
|
|
9
|
+
return o & t ^ ~o & s;
|
|
10
|
+
}
|
|
11
|
+
function _(o, t, s) {
|
|
12
|
+
return o & t ^ o & s ^ t & s;
|
|
13
|
+
}
|
|
14
|
+
class m extends g {
|
|
15
|
+
constructor(t, s, n, i) {
|
|
16
|
+
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = s, this.padOffset = n, this.isLE = i, this.buffer = new Uint8Array(t), this.view = l(this.buffer);
|
|
17
|
+
}
|
|
18
|
+
update(t) {
|
|
19
|
+
b(this), t = a(t), d(t);
|
|
20
|
+
const { view: s, buffer: n, blockLen: i } = this, h = t.length;
|
|
21
|
+
for (let e = 0; e < h; ) {
|
|
22
|
+
const r = Math.min(i - this.pos, h - e);
|
|
23
|
+
if (r === i) {
|
|
24
|
+
const c = l(t);
|
|
25
|
+
for (; i <= h - e; e += i)
|
|
26
|
+
this.process(c, e);
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
n.set(t.subarray(e, e + r), this.pos), this.pos += r, e += r, this.pos === i && (this.process(s, 0), this.pos = 0);
|
|
30
|
+
}
|
|
31
|
+
return this.length += t.length, this.roundClean(), this;
|
|
32
|
+
}
|
|
33
|
+
digestInto(t) {
|
|
34
|
+
b(this), x(t, this), this.finished = !0;
|
|
35
|
+
const { buffer: s, view: n, blockLen: i, isLE: h } = this;
|
|
36
|
+
let { pos: e } = this;
|
|
37
|
+
s[e++] = 128, w(this.buffer.subarray(e)), this.padOffset > i - e && (this.process(n, 0), e = 0);
|
|
38
|
+
for (let f = e; f < i; f++)
|
|
39
|
+
s[f] = 0;
|
|
40
|
+
y(n, i - 8, BigInt(this.length * 8), h), this.process(n, 0);
|
|
41
|
+
const r = l(t), c = this.outputLen;
|
|
42
|
+
if (c % 4)
|
|
43
|
+
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
44
|
+
const u = c / 4, p = this.get();
|
|
45
|
+
if (u > p.length)
|
|
46
|
+
throw new Error("_sha2: outputLen bigger than state");
|
|
47
|
+
for (let f = 0; f < u; f++)
|
|
48
|
+
r.setUint32(4 * f, p[f], h);
|
|
49
|
+
}
|
|
50
|
+
digest() {
|
|
51
|
+
const { buffer: t, outputLen: s } = this;
|
|
52
|
+
this.digestInto(t);
|
|
53
|
+
const n = t.slice(0, s);
|
|
54
|
+
return this.destroy(), n;
|
|
55
|
+
}
|
|
56
|
+
_cloneInto(t) {
|
|
57
|
+
t || (t = new this.constructor()), t.set(...this.get());
|
|
58
|
+
const { blockLen: s, buffer: n, length: i, finished: h, destroyed: e, pos: r } = this;
|
|
59
|
+
return t.destroyed = e, t.finished = h, t.length = i, t.pos = r, i % s && t.buffer.set(n), t;
|
|
60
|
+
}
|
|
61
|
+
clone() {
|
|
62
|
+
return this._cloneInto();
|
|
19
63
|
}
|
|
20
64
|
}
|
|
65
|
+
const B = /* @__PURE__ */ Uint32Array.from([
|
|
66
|
+
1779033703,
|
|
67
|
+
3144134277,
|
|
68
|
+
1013904242,
|
|
69
|
+
2773480762,
|
|
70
|
+
1359893119,
|
|
71
|
+
2600822924,
|
|
72
|
+
528734635,
|
|
73
|
+
1541459225
|
|
74
|
+
]);
|
|
21
75
|
export {
|
|
22
|
-
|
|
76
|
+
U as Chi,
|
|
77
|
+
m as HashMD,
|
|
78
|
+
_ as Maj,
|
|
79
|
+
B as SHA256_IV,
|
|
80
|
+
y as setBigUint64
|
|
23
81
|
};
|
package/dist/web/index.web147.js
CHANGED
|
@@ -1,10 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { BaseError as f } from "./index.web101.js";
|
|
2
|
+
import { pad as g } from "./index.web169.js";
|
|
3
|
+
function m(t, i = {}) {
|
|
4
|
+
const { signed: r, size: e } = i, o = BigInt(t);
|
|
5
|
+
let n;
|
|
6
|
+
e ? r ? n = (1n << BigInt(e) * 8n - 1n) - 1n : n = 2n ** (BigInt(e) * 8n) - 1n : typeof t == "number" && (n = BigInt(Number.MAX_SAFE_INTEGER));
|
|
7
|
+
const u = typeof n == "bigint" && r ? -n - 1n : 0;
|
|
8
|
+
if (n && o > n || o < u) {
|
|
9
|
+
const s = typeof t == "bigint" ? "n" : "";
|
|
10
|
+
throw new d({
|
|
11
|
+
max: n ? `${n}${s}` : void 0,
|
|
12
|
+
min: `${u}${s}`,
|
|
13
|
+
signed: r,
|
|
14
|
+
size: e,
|
|
15
|
+
value: `${t}${s}`
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
const a = `0x${(r && o < 0 ? (1n << BigInt(e * 8)) + BigInt(o) : o).toString(16)}`;
|
|
19
|
+
return e ? c(a, e) : a;
|
|
20
|
+
}
|
|
21
|
+
function c(t, i) {
|
|
22
|
+
return g(t, { dir: "left", size: i });
|
|
23
|
+
}
|
|
24
|
+
class d extends f {
|
|
25
|
+
constructor({ max: i, min: r, signed: e, size: o, value: n }) {
|
|
26
|
+
super(`Number \`${n}\` is not in safe${o ? ` ${o * 8}-bit` : ""}${e ? " signed" : " unsigned"} integer range ${i ? `(\`${r}\` to \`${i}\`)` : `(above \`${r}\`)`}`), Object.defineProperty(this, "name", {
|
|
27
|
+
enumerable: !0,
|
|
28
|
+
configurable: !0,
|
|
29
|
+
writable: !0,
|
|
30
|
+
value: "Hex.IntegerOutOfRangeError"
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
class p extends f {
|
|
35
|
+
constructor({ size: i, targetSize: r, type: e }) {
|
|
36
|
+
super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} size (\`${i}\`) exceeds padding size (\`${r}\`).`), Object.defineProperty(this, "name", {
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
configurable: !0,
|
|
39
|
+
writable: !0,
|
|
40
|
+
value: "Hex.SizeExceedsPaddingSizeError"
|
|
41
|
+
});
|
|
42
|
+
}
|
|
7
43
|
}
|
|
8
44
|
export {
|
|
9
|
-
|
|
45
|
+
d as IntegerOutOfRangeError,
|
|
46
|
+
p as SizeExceedsPaddingSizeError,
|
|
47
|
+
m as fromNumber,
|
|
48
|
+
c as padLeft
|
|
10
49
|
};
|
package/dist/web/index.web148.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { __module as e } from "./index.web149.js";
|
|
2
|
+
import { __require as o } from "./index.web150.js";
|
|
3
|
+
import { __require as t } from "./index.web151.js";
|
|
4
|
+
var r;
|
|
5
|
+
function s() {
|
|
6
|
+
return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
|
|
7
|
+
}
|
|
2
8
|
export {
|
|
3
|
-
|
|
9
|
+
s as __require
|
|
4
10
|
};
|
package/dist/web/index.web149.js
CHANGED
|
@@ -1,380 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
var $;
|
|
12
|
-
function X() {
|
|
13
|
-
if ($) return o;
|
|
14
|
-
$ = 1;
|
|
15
|
-
var E = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), M = Symbol.for("react.fragment"), Y = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), U = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), b = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), C = Symbol.iterator;
|
|
16
|
-
function D(t) {
|
|
17
|
-
return t === null || typeof t != "object" ? null : (t = C && t[C] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
18
|
-
}
|
|
19
|
-
var w = {
|
|
20
|
-
isMounted: function() {
|
|
21
|
-
return !1;
|
|
22
|
-
},
|
|
23
|
-
enqueueForceUpdate: function() {
|
|
24
|
-
},
|
|
25
|
-
enqueueReplaceState: function() {
|
|
26
|
-
},
|
|
27
|
-
enqueueSetState: function() {
|
|
28
|
-
}
|
|
29
|
-
}, A = Object.assign, S = {};
|
|
30
|
-
function _(t, e, n) {
|
|
31
|
-
this.props = t, this.context = e, this.refs = S, this.updater = n || w;
|
|
32
|
-
}
|
|
33
|
-
_.prototype.isReactComponent = {}, _.prototype.setState = function(t, e) {
|
|
34
|
-
if (typeof t != "object" && typeof t != "function" && t != null)
|
|
35
|
-
throw Error(
|
|
36
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
37
|
-
);
|
|
38
|
-
this.updater.enqueueSetState(this, t, e, "setState");
|
|
39
|
-
}, _.prototype.forceUpdate = function(t) {
|
|
40
|
-
this.updater.enqueueForceUpdate(this, t, "forceUpdate");
|
|
41
|
-
};
|
|
42
|
-
function h() {
|
|
43
|
-
}
|
|
44
|
-
h.prototype = _.prototype;
|
|
45
|
-
function y(t, e, n) {
|
|
46
|
-
this.props = t, this.context = e, this.refs = S, this.updater = n || w;
|
|
47
|
-
}
|
|
48
|
-
var v = y.prototype = new h();
|
|
49
|
-
v.constructor = y, A(v, _.prototype), v.isPureReactComponent = !0;
|
|
50
|
-
var g = Array.isArray, i = { H: null, A: null, T: null, S: null, V: null }, O = Object.prototype.hasOwnProperty;
|
|
51
|
-
function R(t, e, n, r, s, f) {
|
|
52
|
-
return n = f.ref, {
|
|
53
|
-
$$typeof: E,
|
|
54
|
-
type: t,
|
|
55
|
-
key: e,
|
|
56
|
-
ref: n !== void 0 ? n : null,
|
|
57
|
-
props: f
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function q(t, e) {
|
|
61
|
-
return R(
|
|
62
|
-
t.type,
|
|
63
|
-
e,
|
|
64
|
-
void 0,
|
|
65
|
-
void 0,
|
|
66
|
-
void 0,
|
|
67
|
-
t.props
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
function T(t) {
|
|
71
|
-
return typeof t == "object" && t !== null && t.$$typeof === E;
|
|
72
|
-
}
|
|
73
|
-
function z(t) {
|
|
74
|
-
var e = { "=": "=0", ":": "=2" };
|
|
75
|
-
return "$" + t.replace(/[=:]/g, function(n) {
|
|
76
|
-
return e[n];
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
var H = /\/+/g;
|
|
80
|
-
function m(t, e) {
|
|
81
|
-
return typeof t == "object" && t !== null && t.key != null ? z("" + t.key) : e.toString(36);
|
|
82
|
-
}
|
|
83
|
-
function j() {
|
|
84
|
-
}
|
|
85
|
-
function G(t) {
|
|
86
|
-
switch (t.status) {
|
|
87
|
-
case "fulfilled":
|
|
88
|
-
return t.value;
|
|
89
|
-
case "rejected":
|
|
90
|
-
throw t.reason;
|
|
91
|
-
default:
|
|
92
|
-
switch (typeof t.status == "string" ? t.then(j, j) : (t.status = "pending", t.then(
|
|
93
|
-
function(e) {
|
|
94
|
-
t.status === "pending" && (t.status = "fulfilled", t.value = e);
|
|
95
|
-
},
|
|
96
|
-
function(e) {
|
|
97
|
-
t.status === "pending" && (t.status = "rejected", t.reason = e);
|
|
98
|
-
}
|
|
99
|
-
)), t.status) {
|
|
100
|
-
case "fulfilled":
|
|
101
|
-
return t.value;
|
|
102
|
-
case "rejected":
|
|
103
|
-
throw t.reason;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
throw t;
|
|
107
|
-
}
|
|
108
|
-
function a(t, e, n, r, s) {
|
|
109
|
-
var f = typeof t;
|
|
110
|
-
(f === "undefined" || f === "boolean") && (t = null);
|
|
111
|
-
var u = !1;
|
|
112
|
-
if (t === null) u = !0;
|
|
113
|
-
else
|
|
114
|
-
switch (f) {
|
|
115
|
-
case "bigint":
|
|
116
|
-
case "string":
|
|
117
|
-
case "number":
|
|
118
|
-
u = !0;
|
|
119
|
-
break;
|
|
120
|
-
case "object":
|
|
121
|
-
switch (t.$$typeof) {
|
|
122
|
-
case E:
|
|
123
|
-
case N:
|
|
124
|
-
u = !0;
|
|
125
|
-
break;
|
|
126
|
-
case d:
|
|
127
|
-
return u = t._init, a(
|
|
128
|
-
u(t._payload),
|
|
129
|
-
e,
|
|
130
|
-
n,
|
|
131
|
-
r,
|
|
132
|
-
s
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
if (u)
|
|
137
|
-
return s = s(t), u = r === "" ? "." + m(t, 0) : r, g(s) ? (n = "", u != null && (n = u.replace(H, "$&/") + "/"), a(s, e, n, "", function(W) {
|
|
138
|
-
return W;
|
|
139
|
-
})) : s != null && (T(s) && (s = q(
|
|
140
|
-
s,
|
|
141
|
-
n + (s.key == null || t && t.key === s.key ? "" : ("" + s.key).replace(
|
|
142
|
-
H,
|
|
143
|
-
"$&/"
|
|
144
|
-
) + "/") + u
|
|
145
|
-
)), e.push(s)), 1;
|
|
146
|
-
u = 0;
|
|
147
|
-
var p = r === "" ? "." : r + ":";
|
|
148
|
-
if (g(t))
|
|
149
|
-
for (var c = 0; c < t.length; c++)
|
|
150
|
-
r = t[c], f = p + m(r, c), u += a(
|
|
151
|
-
r,
|
|
152
|
-
e,
|
|
153
|
-
n,
|
|
154
|
-
f,
|
|
155
|
-
s
|
|
156
|
-
);
|
|
157
|
-
else if (c = D(t), typeof c == "function")
|
|
158
|
-
for (t = c.call(t), c = 0; !(r = t.next()).done; )
|
|
159
|
-
r = r.value, f = p + m(r, c++), u += a(
|
|
160
|
-
r,
|
|
161
|
-
e,
|
|
162
|
-
n,
|
|
163
|
-
f,
|
|
164
|
-
s
|
|
165
|
-
);
|
|
166
|
-
else if (f === "object") {
|
|
167
|
-
if (typeof t.then == "function")
|
|
168
|
-
return a(
|
|
169
|
-
G(t),
|
|
170
|
-
e,
|
|
171
|
-
n,
|
|
172
|
-
r,
|
|
173
|
-
s
|
|
174
|
-
);
|
|
175
|
-
throw e = String(t), Error(
|
|
176
|
-
"Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead."
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
return u;
|
|
180
|
-
}
|
|
181
|
-
function l(t, e, n) {
|
|
182
|
-
if (t == null) return t;
|
|
183
|
-
var r = [], s = 0;
|
|
184
|
-
return a(t, r, "", "", function(f) {
|
|
185
|
-
return e.call(n, f, s++);
|
|
186
|
-
}), r;
|
|
187
|
-
}
|
|
188
|
-
function K(t) {
|
|
189
|
-
if (t._status === -1) {
|
|
190
|
-
var e = t._result;
|
|
191
|
-
e = e(), e.then(
|
|
192
|
-
function(n) {
|
|
193
|
-
(t._status === 0 || t._status === -1) && (t._status = 1, t._result = n);
|
|
194
|
-
},
|
|
195
|
-
function(n) {
|
|
196
|
-
(t._status === 0 || t._status === -1) && (t._status = 2, t._result = n);
|
|
197
|
-
}
|
|
198
|
-
), t._status === -1 && (t._status = 0, t._result = e);
|
|
199
|
-
}
|
|
200
|
-
if (t._status === 1) return t._result.default;
|
|
201
|
-
throw t._result;
|
|
202
|
-
}
|
|
203
|
-
var P = typeof reportError == "function" ? reportError : function(t) {
|
|
204
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
205
|
-
var e = new window.ErrorEvent("error", {
|
|
206
|
-
bubbles: !0,
|
|
207
|
-
cancelable: !0,
|
|
208
|
-
message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
|
|
209
|
-
error: t
|
|
210
|
-
});
|
|
211
|
-
if (!window.dispatchEvent(e)) return;
|
|
212
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
213
|
-
process.emit("uncaughtException", t);
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
console.error(t);
|
|
217
|
-
};
|
|
218
|
-
function B() {
|
|
219
|
-
}
|
|
220
|
-
return o.Children = {
|
|
221
|
-
map: l,
|
|
222
|
-
forEach: function(t, e, n) {
|
|
223
|
-
l(
|
|
224
|
-
t,
|
|
225
|
-
function() {
|
|
226
|
-
e.apply(this, arguments);
|
|
227
|
-
},
|
|
228
|
-
n
|
|
229
|
-
);
|
|
230
|
-
},
|
|
231
|
-
count: function(t) {
|
|
232
|
-
var e = 0;
|
|
233
|
-
return l(t, function() {
|
|
234
|
-
e++;
|
|
235
|
-
}), e;
|
|
236
|
-
},
|
|
237
|
-
toArray: function(t) {
|
|
238
|
-
return l(t, function(e) {
|
|
239
|
-
return e;
|
|
240
|
-
}) || [];
|
|
241
|
-
},
|
|
242
|
-
only: function(t) {
|
|
243
|
-
if (!T(t))
|
|
244
|
-
throw Error(
|
|
245
|
-
"React.Children.only expected to receive a single React element child."
|
|
246
|
-
);
|
|
247
|
-
return t;
|
|
248
|
-
}
|
|
249
|
-
}, o.Component = _, o.Fragment = M, o.Profiler = I, o.PureComponent = y, o.StrictMode = Y, o.Suspense = x, o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, o.__COMPILER_RUNTIME = {
|
|
250
|
-
__proto__: null,
|
|
251
|
-
c: function(t) {
|
|
252
|
-
return i.H.useMemoCache(t);
|
|
253
|
-
}
|
|
254
|
-
}, o.cache = function(t) {
|
|
255
|
-
return function() {
|
|
256
|
-
return t.apply(null, arguments);
|
|
257
|
-
};
|
|
258
|
-
}, o.cloneElement = function(t, e, n) {
|
|
259
|
-
if (t == null)
|
|
260
|
-
throw Error(
|
|
261
|
-
"The argument must be a React element, but you passed " + t + "."
|
|
262
|
-
);
|
|
263
|
-
var r = A({}, t.props), s = t.key, f = void 0;
|
|
264
|
-
if (e != null)
|
|
265
|
-
for (u in e.ref !== void 0 && (f = void 0), e.key !== void 0 && (s = "" + e.key), e)
|
|
266
|
-
!O.call(e, u) || u === "key" || u === "__self" || u === "__source" || u === "ref" && e.ref === void 0 || (r[u] = e[u]);
|
|
267
|
-
var u = arguments.length - 2;
|
|
268
|
-
if (u === 1) r.children = n;
|
|
269
|
-
else if (1 < u) {
|
|
270
|
-
for (var p = Array(u), c = 0; c < u; c++)
|
|
271
|
-
p[c] = arguments[c + 2];
|
|
272
|
-
r.children = p;
|
|
273
|
-
}
|
|
274
|
-
return R(t.type, s, void 0, void 0, f, r);
|
|
275
|
-
}, o.createContext = function(t) {
|
|
276
|
-
return t = {
|
|
277
|
-
$$typeof: U,
|
|
278
|
-
_currentValue: t,
|
|
279
|
-
_currentValue2: t,
|
|
280
|
-
_threadCount: 0,
|
|
281
|
-
Provider: null,
|
|
282
|
-
Consumer: null
|
|
283
|
-
}, t.Provider = t, t.Consumer = {
|
|
284
|
-
$$typeof: L,
|
|
285
|
-
_context: t
|
|
286
|
-
}, t;
|
|
287
|
-
}, o.createElement = function(t, e, n) {
|
|
288
|
-
var r, s = {}, f = null;
|
|
289
|
-
if (e != null)
|
|
290
|
-
for (r in e.key !== void 0 && (f = "" + e.key), e)
|
|
291
|
-
O.call(e, r) && r !== "key" && r !== "__self" && r !== "__source" && (s[r] = e[r]);
|
|
292
|
-
var u = arguments.length - 2;
|
|
293
|
-
if (u === 1) s.children = n;
|
|
294
|
-
else if (1 < u) {
|
|
295
|
-
for (var p = Array(u), c = 0; c < u; c++)
|
|
296
|
-
p[c] = arguments[c + 2];
|
|
297
|
-
s.children = p;
|
|
298
|
-
}
|
|
299
|
-
if (t && t.defaultProps)
|
|
300
|
-
for (r in u = t.defaultProps, u)
|
|
301
|
-
s[r] === void 0 && (s[r] = u[r]);
|
|
302
|
-
return R(t, f, void 0, void 0, null, s);
|
|
303
|
-
}, o.createRef = function() {
|
|
304
|
-
return { current: null };
|
|
305
|
-
}, o.forwardRef = function(t) {
|
|
306
|
-
return { $$typeof: k, render: t };
|
|
307
|
-
}, o.isValidElement = T, o.lazy = function(t) {
|
|
308
|
-
return {
|
|
309
|
-
$$typeof: d,
|
|
310
|
-
_payload: { _status: -1, _result: t },
|
|
311
|
-
_init: K
|
|
312
|
-
};
|
|
313
|
-
}, o.memo = function(t, e) {
|
|
314
|
-
return {
|
|
315
|
-
$$typeof: b,
|
|
316
|
-
type: t,
|
|
317
|
-
compare: e === void 0 ? null : e
|
|
318
|
-
};
|
|
319
|
-
}, o.startTransition = function(t) {
|
|
320
|
-
var e = i.T, n = {};
|
|
321
|
-
i.T = n;
|
|
322
|
-
try {
|
|
323
|
-
var r = t(), s = i.S;
|
|
324
|
-
s !== null && s(n, r), typeof r == "object" && r !== null && typeof r.then == "function" && r.then(B, P);
|
|
325
|
-
} catch (f) {
|
|
326
|
-
P(f);
|
|
327
|
-
} finally {
|
|
328
|
-
i.T = e;
|
|
329
|
-
}
|
|
330
|
-
}, o.unstable_useCacheRefresh = function() {
|
|
331
|
-
return i.H.useCacheRefresh();
|
|
332
|
-
}, o.use = function(t) {
|
|
333
|
-
return i.H.use(t);
|
|
334
|
-
}, o.useActionState = function(t, e, n) {
|
|
335
|
-
return i.H.useActionState(t, e, n);
|
|
336
|
-
}, o.useCallback = function(t, e) {
|
|
337
|
-
return i.H.useCallback(t, e);
|
|
338
|
-
}, o.useContext = function(t) {
|
|
339
|
-
return i.H.useContext(t);
|
|
340
|
-
}, o.useDebugValue = function() {
|
|
341
|
-
}, o.useDeferredValue = function(t, e) {
|
|
342
|
-
return i.H.useDeferredValue(t, e);
|
|
343
|
-
}, o.useEffect = function(t, e, n) {
|
|
344
|
-
var r = i.H;
|
|
345
|
-
if (typeof n == "function")
|
|
346
|
-
throw Error(
|
|
347
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
348
|
-
);
|
|
349
|
-
return r.useEffect(t, e);
|
|
350
|
-
}, o.useId = function() {
|
|
351
|
-
return i.H.useId();
|
|
352
|
-
}, o.useImperativeHandle = function(t, e, n) {
|
|
353
|
-
return i.H.useImperativeHandle(t, e, n);
|
|
354
|
-
}, o.useInsertionEffect = function(t, e) {
|
|
355
|
-
return i.H.useInsertionEffect(t, e);
|
|
356
|
-
}, o.useLayoutEffect = function(t, e) {
|
|
357
|
-
return i.H.useLayoutEffect(t, e);
|
|
358
|
-
}, o.useMemo = function(t, e) {
|
|
359
|
-
return i.H.useMemo(t, e);
|
|
360
|
-
}, o.useOptimistic = function(t, e) {
|
|
361
|
-
return i.H.useOptimistic(t, e);
|
|
362
|
-
}, o.useReducer = function(t, e, n) {
|
|
363
|
-
return i.H.useReducer(t, e, n);
|
|
364
|
-
}, o.useRef = function(t) {
|
|
365
|
-
return i.H.useRef(t);
|
|
366
|
-
}, o.useState = function(t) {
|
|
367
|
-
return i.H.useState(t);
|
|
368
|
-
}, o.useSyncExternalStore = function(t, e, n) {
|
|
369
|
-
return i.H.useSyncExternalStore(
|
|
370
|
-
t,
|
|
371
|
-
e,
|
|
372
|
-
n
|
|
373
|
-
);
|
|
374
|
-
}, o.useTransition = function() {
|
|
375
|
-
return i.H.useTransition();
|
|
376
|
-
}, o.version = "19.1.0", o;
|
|
377
|
-
}
|
|
1
|
+
var e = { exports: {} };
|
|
378
2
|
export {
|
|
379
|
-
|
|
3
|
+
e as __module
|
|
380
4
|
};
|