@nktkas/hyperliquid 0.13.1 → 0.14.0
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/LICENSE +20 -20
- package/README.md +334 -107
- package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +9 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.js +2 -0
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.d.ts +3 -1
- package/esm/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +9 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.js +2 -0
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.js +1 -1
- package/{script/deps/jsr.io/@std/encoding/1.0.6 → esm/deps/jsr.io/@std/encoding/1.0.7}/hex.d.ts +3 -1
- package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/hex.js +1 -1
- package/esm/deps/jsr.io/@std/msgpack/1.0.3/_types.d.ts +9 -0
- package/esm/deps/jsr.io/@std/msgpack/1.0.3/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/msgpack/1.0.3/_types.js +2 -0
- package/esm/deps/jsr.io/@std/msgpack/{1.0.2 → 1.0.3}/encode.d.ts +3 -1
- package/esm/deps/jsr.io/@std/msgpack/1.0.3/encode.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/msgpack/{1.0.2 → 1.0.3}/encode.js +2 -2
- package/esm/mod.d.ts +4 -12
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +2 -2
- package/{script/src/transports → esm/src}/base.d.ts +10 -13
- package/esm/src/base.d.ts.map +1 -0
- package/esm/src/base.js +14 -0
- package/esm/src/clients/event.d.ts +59 -18
- package/esm/src/clients/event.d.ts.map +1 -1
- package/esm/src/clients/event.js +74 -18
- package/esm/src/clients/public.d.ts +348 -53
- package/esm/src/clients/public.d.ts.map +1 -1
- package/esm/src/clients/public.js +349 -50
- package/esm/src/clients/wallet.d.ts +345 -73
- package/esm/src/clients/wallet.d.ts.map +1 -1
- package/esm/src/clients/wallet.js +979 -229
- package/esm/src/signing.d.ts +135 -0
- package/esm/src/signing.d.ts.map +1 -0
- package/esm/src/signing.js +188 -0
- package/esm/src/transports/http/http_transport.d.ts +1 -1
- package/esm/src/transports/http/http_transport.d.ts.map +1 -1
- package/esm/src/transports/http/http_transport.js +1 -1
- package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts +64 -0
- package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -0
- package/esm/src/transports/websocket/_hyperliquid_event_target.js +52 -0
- package/esm/src/transports/websocket/{reconnecting_websocket.d.ts → _reconnecting_websocket.d.ts} +26 -26
- package/esm/src/transports/websocket/_reconnecting_websocket.d.ts.map +1 -0
- package/esm/src/transports/websocket/{reconnecting_websocket.js → _reconnecting_websocket.js} +91 -76
- package/{script/src/transports/websocket/websocket_request_dispatcher.d.ts → esm/src/transports/websocket/_websocket_request_dispatcher.d.ts} +3 -7
- package/esm/src/transports/websocket/_websocket_request_dispatcher.d.ts.map +1 -0
- package/esm/src/transports/websocket/{websocket_request_dispatcher.js → _websocket_request_dispatcher.js} +6 -10
- package/esm/src/transports/websocket/websocket_transport.d.ts +15 -21
- package/esm/src/transports/websocket/websocket_transport.d.ts.map +1 -1
- package/esm/src/transports/websocket/websocket_transport.js +55 -52
- package/esm/src/types/exchange/requests.d.ts +298 -79
- package/esm/src/types/exchange/requests.d.ts.map +1 -1
- package/esm/src/types/exchange/responses.d.ts +38 -38
- package/esm/src/types/exchange/responses.d.ts.map +1 -1
- package/esm/src/types/explorer/requests.d.ts +23 -10
- package/esm/src/types/explorer/requests.d.ts.map +1 -1
- package/esm/src/types/explorer/responses.d.ts +45 -3
- package/esm/src/types/explorer/responses.d.ts.map +1 -1
- package/esm/src/types/info/accounts.d.ts +279 -189
- package/esm/src/types/info/accounts.d.ts.map +1 -1
- package/esm/src/types/info/assets.d.ts +191 -185
- package/esm/src/types/info/assets.d.ts.map +1 -1
- package/esm/src/types/info/delegations.d.ts +117 -0
- package/esm/src/types/info/delegations.d.ts.map +1 -0
- package/esm/src/types/info/orders.d.ts +94 -94
- package/esm/src/types/info/orders.d.ts.map +1 -1
- package/esm/src/types/info/requests.d.ts +192 -64
- package/esm/src/types/info/requests.d.ts.map +1 -1
- package/esm/src/types/info/vaults.d.ts +42 -85
- package/esm/src/types/info/vaults.d.ts.map +1 -1
- package/esm/src/types/mod.d.ts +14 -0
- package/esm/src/types/mod.d.ts.map +1 -0
- package/esm/src/types/subscriptions/requests.d.ts +11 -1
- package/esm/src/types/subscriptions/requests.d.ts.map +1 -1
- package/{script/src/types/subscriptions/common.d.ts → esm/src/types/subscriptions/responses.d.ts} +18 -3
- package/esm/src/types/subscriptions/responses.d.ts.map +1 -0
- package/package.json +20 -4
- package/script/deps/jsr.io/@derzade/typescript-event-target/1.1.1/mod.js +13 -3
- package/script/deps/jsr.io/@derzade/typescript-event-target/1.1.1/src/TypedEventTarget.js +23 -13
- package/script/deps/jsr.io/@noble/hashes/1.7.1/src/_assert.js +55 -45
- package/script/deps/jsr.io/@noble/hashes/1.7.1/src/_u64.js +97 -87
- package/script/deps/jsr.io/@noble/hashes/1.7.1/src/crypto.js +14 -4
- package/script/deps/jsr.io/@noble/hashes/1.7.1/src/sha3.js +288 -278
- package/script/deps/jsr.io/@noble/hashes/1.7.1/src/utils.js +238 -228
- package/script/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +9 -0
- package/script/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.5/_types.js +13 -0
- package/script/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.d.ts +3 -1
- package/script/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.5/concat.js +45 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +9 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/_types.js +13 -0
- package/script/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.js +39 -0
- package/{esm/deps/jsr.io/@std/encoding/1.0.6 → script/deps/jsr.io/@std/encoding/1.0.7}/hex.d.ts +3 -1
- package/script/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/hex.js +123 -0
- package/script/deps/jsr.io/@std/msgpack/1.0.3/_types.d.ts +9 -0
- package/script/deps/jsr.io/@std/msgpack/1.0.3/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/msgpack/1.0.3/_types.js +13 -0
- package/script/deps/jsr.io/@std/msgpack/{1.0.2 → 1.0.3}/encode.d.ts +3 -1
- package/script/deps/jsr.io/@std/msgpack/1.0.3/encode.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/msgpack/1.0.3/encode.js +250 -0
- package/script/mod.d.ts +4 -12
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +21 -13
- package/{esm/src/transports → script/src}/base.d.ts +10 -13
- package/script/src/base.d.ts.map +1 -0
- package/script/src/base.js +29 -0
- package/script/src/clients/event.d.ts +59 -18
- package/script/src/clients/event.d.ts.map +1 -1
- package/script/src/clients/event.js +551 -485
- package/script/src/clients/public.d.ts +348 -53
- package/script/src/clients/public.d.ts.map +1 -1
- package/script/src/clients/public.js +1017 -708
- package/script/src/clients/wallet.d.ts +345 -73
- package/script/src/clients/wallet.d.ts.map +1 -1
- package/script/src/clients/wallet.js +1737 -977
- package/script/src/signing.d.ts +135 -0
- package/script/src/signing.d.ts.map +1 -0
- package/script/src/signing.js +203 -0
- package/script/src/transports/http/http_transport.d.ts +1 -1
- package/script/src/transports/http/http_transport.d.ts.map +1 -1
- package/script/src/transports/http/http_transport.js +174 -164
- package/script/src/transports/websocket/_hyperliquid_event_target.d.ts +64 -0
- package/script/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -0
- package/script/src/transports/websocket/_hyperliquid_event_target.js +66 -0
- package/script/src/transports/websocket/{reconnecting_websocket.d.ts → _reconnecting_websocket.d.ts} +26 -26
- package/script/src/transports/websocket/_reconnecting_websocket.d.ts.map +1 -0
- package/script/src/transports/websocket/_reconnecting_websocket.js +400 -0
- package/{esm/src/transports/websocket/websocket_request_dispatcher.d.ts → script/src/transports/websocket/_websocket_request_dispatcher.d.ts} +3 -7
- package/script/src/transports/websocket/_websocket_request_dispatcher.d.ts.map +1 -0
- package/script/src/transports/websocket/_websocket_request_dispatcher.js +212 -0
- package/script/src/transports/websocket/websocket_transport.d.ts +15 -21
- package/script/src/transports/websocket/websocket_transport.d.ts.map +1 -1
- package/script/src/transports/websocket/websocket_transport.js +235 -222
- package/script/src/types/exchange/requests.d.ts +298 -79
- package/script/src/types/exchange/requests.d.ts.map +1 -1
- package/script/src/types/exchange/requests.js +12 -2
- package/script/src/types/exchange/responses.d.ts +38 -38
- package/script/src/types/exchange/responses.d.ts.map +1 -1
- package/script/src/types/exchange/responses.js +12 -2
- package/script/src/types/explorer/requests.d.ts +23 -10
- package/script/src/types/explorer/requests.d.ts.map +1 -1
- package/script/src/types/explorer/requests.js +12 -2
- package/script/src/types/explorer/responses.d.ts +45 -3
- package/script/src/types/explorer/responses.d.ts.map +1 -1
- package/script/src/types/explorer/responses.js +12 -2
- package/script/src/types/info/accounts.d.ts +279 -189
- package/script/src/types/info/accounts.d.ts.map +1 -1
- package/script/src/types/info/accounts.js +12 -2
- package/script/src/types/info/assets.d.ts +191 -185
- package/script/src/types/info/assets.d.ts.map +1 -1
- package/script/src/types/info/assets.js +12 -2
- package/script/src/types/info/delegations.d.ts +117 -0
- package/script/src/types/info/delegations.d.ts.map +1 -0
- package/script/src/types/info/delegations.js +12 -0
- package/script/src/types/info/orders.d.ts +94 -94
- package/script/src/types/info/orders.d.ts.map +1 -1
- package/script/src/types/info/orders.js +12 -2
- package/script/src/types/info/requests.d.ts +192 -64
- package/script/src/types/info/requests.d.ts.map +1 -1
- package/script/src/types/info/requests.js +12 -2
- package/script/src/types/info/vaults.d.ts +42 -85
- package/script/src/types/info/vaults.d.ts.map +1 -1
- package/script/src/types/info/vaults.js +12 -2
- package/script/src/types/mod.d.ts +14 -0
- package/script/src/types/mod.d.ts.map +1 -0
- package/script/src/types/mod.js +12 -0
- package/script/src/types/subscriptions/requests.d.ts +11 -1
- package/script/src/types/subscriptions/requests.d.ts.map +1 -1
- package/script/src/types/subscriptions/requests.js +12 -2
- package/{esm/src/types/subscriptions/common.d.ts → script/src/types/subscriptions/responses.d.ts} +18 -3
- package/script/src/types/subscriptions/responses.d.ts.map +1 -0
- package/script/src/types/subscriptions/responses.js +12 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.4/concat.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/msgpack/1.0.2/encode.d.ts.map +0 -1
- package/esm/src/transports/base.d.ts.map +0 -1
- package/esm/src/transports/base.js +0 -14
- package/esm/src/transports/websocket/hyperliquid_event_target.d.ts +0 -66
- package/esm/src/transports/websocket/hyperliquid_event_target.d.ts.map +0 -1
- package/esm/src/transports/websocket/hyperliquid_event_target.js +0 -33
- package/esm/src/transports/websocket/reconnecting_websocket.d.ts.map +0 -1
- package/esm/src/transports/websocket/websocket_request_dispatcher.d.ts.map +0 -1
- package/esm/src/types/common.d.ts +0 -3
- package/esm/src/types/common.d.ts.map +0 -1
- package/esm/src/types/exchange/common.d.ts +0 -36
- package/esm/src/types/exchange/common.d.ts.map +0 -1
- package/esm/src/types/explorer/common.d.ts +0 -37
- package/esm/src/types/explorer/common.d.ts.map +0 -1
- package/esm/src/types/subscriptions/common.d.ts.map +0 -1
- package/esm/src/types/subscriptions/common.js +0 -1
- package/esm/src/utils/key_sort.d.ts +0 -21
- package/esm/src/utils/key_sort.d.ts.map +0 -1
- package/esm/src/utils/key_sort.js +0 -124
- package/esm/src/utils/signing.d.ts +0 -109
- package/esm/src/utils/signing.d.ts.map +0 -1
- package/esm/src/utils/signing.js +0 -164
- package/script/deps/jsr.io/@std/bytes/1.0.4/concat.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/bytes/1.0.4/concat.js +0 -35
- package/script/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +0 -29
- package/script/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/encoding/1.0.6/hex.js +0 -113
- package/script/deps/jsr.io/@std/msgpack/1.0.2/encode.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/msgpack/1.0.2/encode.js +0 -240
- package/script/src/transports/base.d.ts.map +0 -1
- package/script/src/transports/base.js +0 -18
- package/script/src/transports/websocket/hyperliquid_event_target.d.ts +0 -66
- package/script/src/transports/websocket/hyperliquid_event_target.d.ts.map +0 -1
- package/script/src/transports/websocket/hyperliquid_event_target.js +0 -37
- package/script/src/transports/websocket/reconnecting_websocket.d.ts.map +0 -1
- package/script/src/transports/websocket/reconnecting_websocket.js +0 -374
- package/script/src/transports/websocket/websocket_request_dispatcher.d.ts.map +0 -1
- package/script/src/transports/websocket/websocket_request_dispatcher.js +0 -206
- package/script/src/types/common.d.ts +0 -3
- package/script/src/types/common.d.ts.map +0 -1
- package/script/src/types/common.js +0 -2
- package/script/src/types/exchange/common.d.ts +0 -36
- package/script/src/types/exchange/common.d.ts.map +0 -1
- package/script/src/types/exchange/common.js +0 -2
- package/script/src/types/explorer/common.d.ts +0 -37
- package/script/src/types/explorer/common.d.ts.map +0 -1
- package/script/src/types/explorer/common.js +0 -2
- package/script/src/types/subscriptions/common.d.ts.map +0 -1
- package/script/src/types/subscriptions/common.js +0 -2
- package/script/src/utils/key_sort.d.ts +0 -21
- package/script/src/utils/key_sort.d.ts.map +0 -1
- package/script/src/utils/key_sort.js +0 -127
- package/script/src/utils/signing.d.ts +0 -109
- package/script/src/utils/signing.d.ts.map +0 -1
- package/script/src/utils/signing.js +0 -172
- /package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts +0 -0
- /package/esm/src/types/{common.js → info/delegations.js} +0 -0
- /package/esm/src/types/{exchange/common.js → mod.js} +0 -0
- /package/esm/src/types/{explorer/common.js → subscriptions/responses.js} +0 -0
- /package/script/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts +0 -0
|
@@ -1,235 +1,245 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Utilities for hex, bytes, CSPRNG.
|
|
4
3
|
* @module
|
|
5
4
|
*/
|
|
6
5
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.
|
|
14
|
-
|
|
15
|
-
exports
|
|
16
|
-
|
|
17
|
-
exports
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
//
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
function
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
// pre-caching improves the speed 6x
|
|
88
|
-
let hex = '';
|
|
89
|
-
for (let i = 0; i < bytes.length; i++) {
|
|
90
|
-
hex += hexes[bytes[i]];
|
|
91
|
-
}
|
|
92
|
-
return hex;
|
|
93
|
-
}
|
|
94
|
-
// We use optimized technique to convert hex string to byte array
|
|
95
|
-
const asciis = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
|
|
96
|
-
function asciiToBase16(ch) {
|
|
97
|
-
if (ch >= asciis._0 && ch <= asciis._9)
|
|
98
|
-
return ch - asciis._0; // '2' => 50-48
|
|
99
|
-
if (ch >= asciis.A && ch <= asciis.F)
|
|
100
|
-
return ch - (asciis.A - 10); // 'B' => 66-(65-10)
|
|
101
|
-
if (ch >= asciis.a && ch <= asciis.f)
|
|
102
|
-
return ch - (asciis.a - 10); // 'b' => 98-(97-10)
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Convert hex string to byte array.
|
|
107
|
-
* @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23])
|
|
108
|
-
*/
|
|
109
|
-
function hexToBytes(hex) {
|
|
110
|
-
if (typeof hex !== 'string')
|
|
111
|
-
throw new Error('hex string expected, got ' + typeof hex);
|
|
112
|
-
const hl = hex.length;
|
|
113
|
-
const al = hl / 2;
|
|
114
|
-
if (hl % 2)
|
|
115
|
-
throw new Error('hex string expected, got unpadded hex of length ' + hl);
|
|
116
|
-
const array = new Uint8Array(al);
|
|
117
|
-
for (let ai = 0, hi = 0; ai < al; ai++, hi += 2) {
|
|
118
|
-
const n1 = asciiToBase16(hex.charCodeAt(hi));
|
|
119
|
-
const n2 = asciiToBase16(hex.charCodeAt(hi + 1));
|
|
120
|
-
if (n1 === undefined || n2 === undefined) {
|
|
121
|
-
const char = hex[hi] + hex[hi + 1];
|
|
122
|
-
throw new Error('hex string expected, got non-hex character "' + char + '" at index ' + hi);
|
|
6
|
+
(function (factory) {
|
|
7
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
8
|
+
var v = factory(require, exports);
|
|
9
|
+
if (v !== undefined) module.exports = v;
|
|
10
|
+
}
|
|
11
|
+
else if (typeof define === "function" && define.amd) {
|
|
12
|
+
define(["require", "exports", "./crypto.js", "./_assert.js"], factory);
|
|
13
|
+
}
|
|
14
|
+
})(function (require, exports) {
|
|
15
|
+
"use strict";
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Hash = exports.nextTick = exports.byteSwapIfBE = exports.isLE = void 0;
|
|
18
|
+
exports.isBytes = isBytes;
|
|
19
|
+
exports.u8 = u8;
|
|
20
|
+
exports.u32 = u32;
|
|
21
|
+
exports.createView = createView;
|
|
22
|
+
exports.rotr = rotr;
|
|
23
|
+
exports.rotl = rotl;
|
|
24
|
+
exports.byteSwap = byteSwap;
|
|
25
|
+
exports.byteSwap32 = byteSwap32;
|
|
26
|
+
exports.bytesToHex = bytesToHex;
|
|
27
|
+
exports.hexToBytes = hexToBytes;
|
|
28
|
+
exports.asyncLoop = asyncLoop;
|
|
29
|
+
exports.utf8ToBytes = utf8ToBytes;
|
|
30
|
+
exports.toBytes = toBytes;
|
|
31
|
+
exports.concatBytes = concatBytes;
|
|
32
|
+
exports.checkOpts = checkOpts;
|
|
33
|
+
exports.wrapConstructor = wrapConstructor;
|
|
34
|
+
exports.wrapConstructorWithOpts = wrapConstructorWithOpts;
|
|
35
|
+
exports.wrapXOFConstructorWithOpts = wrapXOFConstructorWithOpts;
|
|
36
|
+
exports.randomBytes = randomBytes;
|
|
37
|
+
// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+.
|
|
38
|
+
// node.js versions earlier than v19 don't declare it in global scope.
|
|
39
|
+
// For node.js, package.json#exports field mapping rewrites import
|
|
40
|
+
// from `crypto` to `cryptoNode`, which imports native module.
|
|
41
|
+
// Makes the utils un-importable in browsers without a bundler.
|
|
42
|
+
// Once node.js 18 is deprecated (2025-04-30), we can just drop the import.
|
|
43
|
+
const crypto_js_1 = require("./crypto.js");
|
|
44
|
+
const _assert_js_1 = require("./_assert.js");
|
|
45
|
+
// export { isBytes } from './_assert.js';
|
|
46
|
+
// We can't reuse isBytes from _assert, because somehow this causes huge perf issues
|
|
47
|
+
function isBytes(a) {
|
|
48
|
+
return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array');
|
|
49
|
+
}
|
|
50
|
+
// Cast array to different type
|
|
51
|
+
function u8(arr) {
|
|
52
|
+
return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
53
|
+
}
|
|
54
|
+
function u32(arr) {
|
|
55
|
+
return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
56
|
+
}
|
|
57
|
+
// Cast array to view
|
|
58
|
+
function createView(arr) {
|
|
59
|
+
return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
60
|
+
}
|
|
61
|
+
/** The rotate right (circular right shift) operation for uint32 */
|
|
62
|
+
function rotr(word, shift) {
|
|
63
|
+
return (word << (32 - shift)) | (word >>> shift);
|
|
64
|
+
}
|
|
65
|
+
/** The rotate left (circular left shift) operation for uint32 */
|
|
66
|
+
function rotl(word, shift) {
|
|
67
|
+
return (word << shift) | ((word >>> (32 - shift)) >>> 0);
|
|
68
|
+
}
|
|
69
|
+
/** Is current platform little-endian? Most are. Big-Endian platform: IBM */
|
|
70
|
+
exports.isLE = (() => new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44)();
|
|
71
|
+
// The byte swap operation for uint32
|
|
72
|
+
function byteSwap(word) {
|
|
73
|
+
return (((word << 24) & 0xff000000) |
|
|
74
|
+
((word << 8) & 0xff0000) |
|
|
75
|
+
((word >>> 8) & 0xff00) |
|
|
76
|
+
((word >>> 24) & 0xff));
|
|
77
|
+
}
|
|
78
|
+
/** Conditionally byte swap if on a big-endian platform */
|
|
79
|
+
exports.byteSwapIfBE = exports.isLE
|
|
80
|
+
? (n) => n
|
|
81
|
+
: (n) => byteSwap(n);
|
|
82
|
+
/** In place byte swap for Uint32Array */
|
|
83
|
+
function byteSwap32(arr) {
|
|
84
|
+
for (let i = 0; i < arr.length; i++) {
|
|
85
|
+
arr[i] = byteSwap(arr[i]);
|
|
123
86
|
}
|
|
124
|
-
array[ai] = n1 * 16 + n2; // multiply first octet, e.g. 'a3' => 10*16+3 => 160 + 3 => 163
|
|
125
87
|
}
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
function
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
88
|
+
// Array where index 0xf0 (240) is mapped to string 'f0'
|
|
89
|
+
const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, '0'));
|
|
90
|
+
/**
|
|
91
|
+
* Convert byte array to hex string.
|
|
92
|
+
* @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123'
|
|
93
|
+
*/
|
|
94
|
+
function bytesToHex(bytes) {
|
|
95
|
+
(0, _assert_js_1.abytes)(bytes);
|
|
96
|
+
// pre-caching improves the speed 6x
|
|
97
|
+
let hex = '';
|
|
98
|
+
for (let i = 0; i < bytes.length; i++) {
|
|
99
|
+
hex += hexes[bytes[i]];
|
|
100
|
+
}
|
|
101
|
+
return hex;
|
|
102
|
+
}
|
|
103
|
+
// We use optimized technique to convert hex string to byte array
|
|
104
|
+
const asciis = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
|
|
105
|
+
function asciiToBase16(ch) {
|
|
106
|
+
if (ch >= asciis._0 && ch <= asciis._9)
|
|
107
|
+
return ch - asciis._0; // '2' => 50-48
|
|
108
|
+
if (ch >= asciis.A && ch <= asciis.F)
|
|
109
|
+
return ch - (asciis.A - 10); // 'B' => 66-(65-10)
|
|
110
|
+
if (ch >= asciis.a && ch <= asciis.f)
|
|
111
|
+
return ch - (asciis.a - 10); // 'b' => 98-(97-10)
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Convert hex string to byte array.
|
|
116
|
+
* @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23])
|
|
117
|
+
*/
|
|
118
|
+
function hexToBytes(hex) {
|
|
119
|
+
if (typeof hex !== 'string')
|
|
120
|
+
throw new Error('hex string expected, got ' + typeof hex);
|
|
121
|
+
const hl = hex.length;
|
|
122
|
+
const al = hl / 2;
|
|
123
|
+
if (hl % 2)
|
|
124
|
+
throw new Error('hex string expected, got unpadded hex of length ' + hl);
|
|
125
|
+
const array = new Uint8Array(al);
|
|
126
|
+
for (let ai = 0, hi = 0; ai < al; ai++, hi += 2) {
|
|
127
|
+
const n1 = asciiToBase16(hex.charCodeAt(hi));
|
|
128
|
+
const n2 = asciiToBase16(hex.charCodeAt(hi + 1));
|
|
129
|
+
if (n1 === undefined || n2 === undefined) {
|
|
130
|
+
const char = hex[hi] + hex[hi + 1];
|
|
131
|
+
throw new Error('hex string expected, got non-hex character "' + char + '" at index ' + hi);
|
|
132
|
+
}
|
|
133
|
+
array[ai] = n1 * 16 + n2; // multiply first octet, e.g. 'a3' => 10*16+3 => 160 + 3 => 163
|
|
134
|
+
}
|
|
135
|
+
return array;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* There is no setImmediate in browser and setTimeout is slow.
|
|
139
|
+
* Call of async fn will return Promise, which will be fullfiled only on
|
|
140
|
+
* next scheduler queue processing step and this is exactly what we need.
|
|
141
|
+
*/
|
|
142
|
+
const nextTick = async () => { };
|
|
143
|
+
exports.nextTick = nextTick;
|
|
144
|
+
/** Returns control to thread each 'tick' ms to avoid blocking. */
|
|
145
|
+
async function asyncLoop(iters, tick, cb) {
|
|
146
|
+
let ts = Date.now();
|
|
147
|
+
for (let i = 0; i < iters; i++) {
|
|
148
|
+
cb(i);
|
|
149
|
+
// Date.now() is not monotonic, so in case if clock goes backwards we return return control too
|
|
150
|
+
const diff = Date.now() - ts;
|
|
151
|
+
if (diff >= 0 && diff < tick)
|
|
152
|
+
continue;
|
|
153
|
+
await (0, exports.nextTick)();
|
|
154
|
+
ts += diff;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Convert JS string to byte array.
|
|
159
|
+
* @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
|
|
160
|
+
*/
|
|
161
|
+
function utf8ToBytes(str) {
|
|
162
|
+
if (typeof str !== 'string')
|
|
163
|
+
throw new Error('utf8ToBytes expected string, got ' + typeof str);
|
|
164
|
+
return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Normalizes (non-hex) string or Uint8Array to Uint8Array.
|
|
168
|
+
* Warning: when Uint8Array is passed, it would NOT get copied.
|
|
169
|
+
* Keep in mind for future mutable operations.
|
|
170
|
+
*/
|
|
171
|
+
function toBytes(data) {
|
|
172
|
+
if (typeof data === 'string')
|
|
173
|
+
data = utf8ToBytes(data);
|
|
174
|
+
(0, _assert_js_1.abytes)(data);
|
|
175
|
+
return data;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Copies several Uint8Arrays into one.
|
|
179
|
+
*/
|
|
180
|
+
function concatBytes(...arrays) {
|
|
181
|
+
let sum = 0;
|
|
182
|
+
for (let i = 0; i < arrays.length; i++) {
|
|
183
|
+
const a = arrays[i];
|
|
184
|
+
(0, _assert_js_1.abytes)(a);
|
|
185
|
+
sum += a.length;
|
|
186
|
+
}
|
|
187
|
+
const res = new Uint8Array(sum);
|
|
188
|
+
for (let i = 0, pad = 0; i < arrays.length; i++) {
|
|
189
|
+
const a = arrays[i];
|
|
190
|
+
res.set(a, pad);
|
|
191
|
+
pad += a.length;
|
|
192
|
+
}
|
|
193
|
+
return res;
|
|
194
|
+
}
|
|
195
|
+
/** For runtime check if class implements interface */
|
|
196
|
+
class Hash {
|
|
197
|
+
// Safe version that clones internal state
|
|
198
|
+
clone() {
|
|
199
|
+
return this._cloneInto();
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
exports.Hash = Hash;
|
|
203
|
+
function checkOpts(defaults, opts) {
|
|
204
|
+
if (opts !== undefined && {}.toString.call(opts) !== '[object Object]')
|
|
205
|
+
throw new Error('Options should be object or undefined');
|
|
206
|
+
const merged = Object.assign(defaults, opts);
|
|
207
|
+
return merged;
|
|
208
|
+
}
|
|
209
|
+
/** Wraps hash function, creating an interface on top of it */
|
|
210
|
+
function wrapConstructor(hashCons) {
|
|
211
|
+
const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
|
|
212
|
+
const tmp = hashCons();
|
|
213
|
+
hashC.outputLen = tmp.outputLen;
|
|
214
|
+
hashC.blockLen = tmp.blockLen;
|
|
215
|
+
hashC.create = () => hashCons();
|
|
216
|
+
return hashC;
|
|
217
|
+
}
|
|
218
|
+
function wrapConstructorWithOpts(hashCons) {
|
|
219
|
+
const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();
|
|
220
|
+
const tmp = hashCons({});
|
|
221
|
+
hashC.outputLen = tmp.outputLen;
|
|
222
|
+
hashC.blockLen = tmp.blockLen;
|
|
223
|
+
hashC.create = (opts) => hashCons(opts);
|
|
224
|
+
return hashC;
|
|
225
|
+
}
|
|
226
|
+
function wrapXOFConstructorWithOpts(hashCons) {
|
|
227
|
+
const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();
|
|
228
|
+
const tmp = hashCons({});
|
|
229
|
+
hashC.outputLen = tmp.outputLen;
|
|
230
|
+
hashC.blockLen = tmp.blockLen;
|
|
231
|
+
hashC.create = (opts) => hashCons(opts);
|
|
232
|
+
return hashC;
|
|
233
|
+
}
|
|
234
|
+
/** Cryptographically secure PRNG. Uses internal OS-level `crypto.getRandomValues`. */
|
|
235
|
+
function randomBytes(bytesLength = 32) {
|
|
236
|
+
if (crypto_js_1.crypto && typeof crypto_js_1.crypto.getRandomValues === 'function') {
|
|
237
|
+
return crypto_js_1.crypto.getRandomValues(new Uint8Array(bytesLength));
|
|
238
|
+
}
|
|
239
|
+
// Legacy Node.js compatibility
|
|
240
|
+
if (crypto_js_1.crypto && typeof crypto_js_1.crypto.randomBytes === 'function') {
|
|
241
|
+
return crypto_js_1.crypto.randomBytes(bytesLength);
|
|
242
|
+
}
|
|
243
|
+
throw new Error('crypto.getRandomValues must be defined');
|
|
244
|
+
}
|
|
245
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Proxy type of {@code Uint8Array<ArrayBuffer} or {@code Uint8Array} in TypeScript 5.7 or below respectively.
|
|
3
|
+
*
|
|
4
|
+
* This type is internal utility type and should not be used directly.
|
|
5
|
+
*
|
|
6
|
+
* @internal @private
|
|
7
|
+
*/
|
|
8
|
+
export type Uint8Array_ = ReturnType<Uint8Array["slice"]>;
|
|
9
|
+
//# sourceMappingURL=_types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.5/_types.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
(function (factory) {
|
|
3
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
+
var v = factory(require, exports);
|
|
5
|
+
if (v !== undefined) module.exports = v;
|
|
6
|
+
}
|
|
7
|
+
else if (typeof define === "function" && define.amd) {
|
|
8
|
+
define(["require", "exports"], factory);
|
|
9
|
+
}
|
|
10
|
+
})(function (require, exports) {
|
|
11
|
+
"use strict";
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { Uint8Array_ } from "./_types.js";
|
|
2
|
+
export type { Uint8Array_ };
|
|
1
3
|
/**
|
|
2
4
|
* Concatenate an array of byte slices into a single slice.
|
|
3
5
|
*
|
|
@@ -15,5 +17,5 @@
|
|
|
15
17
|
* assertEquals(concat([a, b]), new Uint8Array([0, 1, 2, 3, 4, 5]));
|
|
16
18
|
* ```
|
|
17
19
|
*/
|
|
18
|
-
export declare function concat(buffers: Uint8Array[]):
|
|
20
|
+
export declare function concat(buffers: Uint8Array[]): Uint8Array_;
|
|
19
21
|
//# sourceMappingURL=concat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.5/concat.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,WAAW,CAazD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
(function (factory) {
|
|
4
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
5
|
+
var v = factory(require, exports);
|
|
6
|
+
if (v !== undefined) module.exports = v;
|
|
7
|
+
}
|
|
8
|
+
else if (typeof define === "function" && define.amd) {
|
|
9
|
+
define(["require", "exports"], factory);
|
|
10
|
+
}
|
|
11
|
+
})(function (require, exports) {
|
|
12
|
+
"use strict";
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.concat = concat;
|
|
15
|
+
/**
|
|
16
|
+
* Concatenate an array of byte slices into a single slice.
|
|
17
|
+
*
|
|
18
|
+
* @param buffers Array of byte slices to concatenate.
|
|
19
|
+
* @returns A new byte slice containing all the input slices concatenated.
|
|
20
|
+
*
|
|
21
|
+
* @example Basic usage
|
|
22
|
+
* ```ts
|
|
23
|
+
* import { concat } from "@std/bytes/concat";
|
|
24
|
+
* import { assertEquals } from "@std/assert";
|
|
25
|
+
*
|
|
26
|
+
* const a = new Uint8Array([0, 1, 2]);
|
|
27
|
+
* const b = new Uint8Array([3, 4, 5]);
|
|
28
|
+
*
|
|
29
|
+
* assertEquals(concat([a, b]), new Uint8Array([0, 1, 2, 3, 4, 5]));
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
function concat(buffers) {
|
|
33
|
+
let length = 0;
|
|
34
|
+
for (const buffer of buffers) {
|
|
35
|
+
length += buffer.length;
|
|
36
|
+
}
|
|
37
|
+
const output = new Uint8Array(length);
|
|
38
|
+
let index = 0;
|
|
39
|
+
for (const buffer of buffers) {
|
|
40
|
+
output.set(buffer, index);
|
|
41
|
+
index += buffer.length;
|
|
42
|
+
}
|
|
43
|
+
return output;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Proxy type of {@code Uint8Array<ArrayBuffer} or {@code Uint8Array} in TypeScript 5.7 or below respectively.
|
|
3
|
+
*
|
|
4
|
+
* This type is internal utility type and should not be used directly.
|
|
5
|
+
*
|
|
6
|
+
* @internal @private
|
|
7
|
+
*/
|
|
8
|
+
export type Uint8Array_ = ReturnType<Uint8Array["slice"]>;
|
|
9
|
+
//# sourceMappingURL=_types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.7/_types.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
(function (factory) {
|
|
3
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
+
var v = factory(require, exports);
|
|
5
|
+
if (v !== undefined) module.exports = v;
|
|
6
|
+
}
|
|
7
|
+
else if (typeof define === "function" && define.amd) {
|
|
8
|
+
define(["require", "exports"], factory);
|
|
9
|
+
}
|
|
10
|
+
})(function (require, exports) {
|
|
11
|
+
"use strict";
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_validate_binary_like.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.
|
|
1
|
+
{"version":3,"file":"_validate_binary_like.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.ts"],"names":[],"mappings":"AAeA,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAa9D"}
|