@capxul/cli 4.20.0-beta.1
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/README.md +107 -0
- package/dist/esm-DUNJOL6b.mjs +4092 -0
- package/dist/esm-DUNJOL6b.mjs.map +1 -0
- package/dist/lib-BOge5QZP.mjs +2154 -0
- package/dist/lib-BOge5QZP.mjs.map +1 -0
- package/dist/lib-C4fpnzyy.mjs +6991 -0
- package/dist/lib-C4fpnzyy.mjs.map +1 -0
- package/dist/lib-C8ENT9j6.mjs +1764 -0
- package/dist/lib-C8ENT9j6.mjs.map +1 -0
- package/dist/lib-DH_xJGSE.mjs +3642 -0
- package/dist/lib-DH_xJGSE.mjs.map +1 -0
- package/dist/lib-DVGoRCJN.mjs +12226 -0
- package/dist/lib-DVGoRCJN.mjs.map +1 -0
- package/dist/main.mjs +49748 -0
- package/dist/main.mjs.map +1 -0
- package/dist/secp256k1-Cc9JhcTQ.mjs +2219 -0
- package/dist/secp256k1-Cc9JhcTQ.mjs.map +1 -0
- package/package.json +51 -0
|
@@ -0,0 +1,1764 @@
|
|
|
1
|
+
import { _ as __commonJSMin, n as require_lib$4, r as require_lib$5, t as require_lib$6 } from "./main.mjs";
|
|
2
|
+
import { a as require_lib$9, i as require_lib$10, n as require_lib$8, t as require_lib$7 } from "./lib-DH_xJGSE.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@ethersproject+strings@5.8.0/node_modules/@ethersproject/strings/lib/_version.js
|
|
4
|
+
var require__version$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.version = void 0;
|
|
7
|
+
exports.version = "strings/5.8.0";
|
|
8
|
+
}));
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ../../node_modules/.pnpm/@ethersproject+strings@5.8.0/node_modules/@ethersproject/strings/lib/utf8.js
|
|
11
|
+
var require_utf8 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.toUtf8CodePoints = exports.toUtf8String = exports._toUtf8String = exports._toEscapedUtf8String = exports.toUtf8Bytes = exports.Utf8ErrorFuncs = exports.Utf8ErrorReason = exports.UnicodeNormalizationForm = void 0;
|
|
14
|
+
var bytes_1 = require_lib$4();
|
|
15
|
+
var logger_1 = require_lib$5();
|
|
16
|
+
var _version_1 = require__version$1();
|
|
17
|
+
var logger = new logger_1.Logger(_version_1.version);
|
|
18
|
+
var UnicodeNormalizationForm;
|
|
19
|
+
(function(UnicodeNormalizationForm) {
|
|
20
|
+
UnicodeNormalizationForm["current"] = "";
|
|
21
|
+
UnicodeNormalizationForm["NFC"] = "NFC";
|
|
22
|
+
UnicodeNormalizationForm["NFD"] = "NFD";
|
|
23
|
+
UnicodeNormalizationForm["NFKC"] = "NFKC";
|
|
24
|
+
UnicodeNormalizationForm["NFKD"] = "NFKD";
|
|
25
|
+
})(UnicodeNormalizationForm = exports.UnicodeNormalizationForm || (exports.UnicodeNormalizationForm = {}));
|
|
26
|
+
var Utf8ErrorReason;
|
|
27
|
+
(function(Utf8ErrorReason) {
|
|
28
|
+
Utf8ErrorReason["UNEXPECTED_CONTINUE"] = "unexpected continuation byte";
|
|
29
|
+
Utf8ErrorReason["BAD_PREFIX"] = "bad codepoint prefix";
|
|
30
|
+
Utf8ErrorReason["OVERRUN"] = "string overrun";
|
|
31
|
+
Utf8ErrorReason["MISSING_CONTINUE"] = "missing continuation byte";
|
|
32
|
+
Utf8ErrorReason["OUT_OF_RANGE"] = "out of UTF-8 range";
|
|
33
|
+
Utf8ErrorReason["UTF16_SURROGATE"] = "UTF-16 surrogate";
|
|
34
|
+
Utf8ErrorReason["OVERLONG"] = "overlong representation";
|
|
35
|
+
})(Utf8ErrorReason = exports.Utf8ErrorReason || (exports.Utf8ErrorReason = {}));
|
|
36
|
+
function errorFunc(reason, offset, bytes, output, badCodepoint) {
|
|
37
|
+
return logger.throwArgumentError("invalid codepoint at offset " + offset + "; " + reason, "bytes", bytes);
|
|
38
|
+
}
|
|
39
|
+
function ignoreFunc(reason, offset, bytes, output, badCodepoint) {
|
|
40
|
+
if (reason === Utf8ErrorReason.BAD_PREFIX || reason === Utf8ErrorReason.UNEXPECTED_CONTINUE) {
|
|
41
|
+
var i = 0;
|
|
42
|
+
for (var o = offset + 1; o < bytes.length; o++) {
|
|
43
|
+
if (bytes[o] >> 6 !== 2) break;
|
|
44
|
+
i++;
|
|
45
|
+
}
|
|
46
|
+
return i;
|
|
47
|
+
}
|
|
48
|
+
if (reason === Utf8ErrorReason.OVERRUN) return bytes.length - offset - 1;
|
|
49
|
+
return 0;
|
|
50
|
+
}
|
|
51
|
+
function replaceFunc(reason, offset, bytes, output, badCodepoint) {
|
|
52
|
+
if (reason === Utf8ErrorReason.OVERLONG) {
|
|
53
|
+
output.push(badCodepoint);
|
|
54
|
+
return 0;
|
|
55
|
+
}
|
|
56
|
+
output.push(65533);
|
|
57
|
+
return ignoreFunc(reason, offset, bytes, output, badCodepoint);
|
|
58
|
+
}
|
|
59
|
+
exports.Utf8ErrorFuncs = Object.freeze({
|
|
60
|
+
error: errorFunc,
|
|
61
|
+
ignore: ignoreFunc,
|
|
62
|
+
replace: replaceFunc
|
|
63
|
+
});
|
|
64
|
+
function getUtf8CodePoints(bytes, onError) {
|
|
65
|
+
if (onError == null) onError = exports.Utf8ErrorFuncs.error;
|
|
66
|
+
bytes = (0, bytes_1.arrayify)(bytes);
|
|
67
|
+
var result = [];
|
|
68
|
+
var i = 0;
|
|
69
|
+
while (i < bytes.length) {
|
|
70
|
+
var c = bytes[i++];
|
|
71
|
+
if (c >> 7 === 0) {
|
|
72
|
+
result.push(c);
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
var extraLength = null;
|
|
76
|
+
var overlongMask = null;
|
|
77
|
+
if ((c & 224) === 192) {
|
|
78
|
+
extraLength = 1;
|
|
79
|
+
overlongMask = 127;
|
|
80
|
+
} else if ((c & 240) === 224) {
|
|
81
|
+
extraLength = 2;
|
|
82
|
+
overlongMask = 2047;
|
|
83
|
+
} else if ((c & 248) === 240) {
|
|
84
|
+
extraLength = 3;
|
|
85
|
+
overlongMask = 65535;
|
|
86
|
+
} else {
|
|
87
|
+
if ((c & 192) === 128) i += onError(Utf8ErrorReason.UNEXPECTED_CONTINUE, i - 1, bytes, result);
|
|
88
|
+
else i += onError(Utf8ErrorReason.BAD_PREFIX, i - 1, bytes, result);
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
if (i - 1 + extraLength >= bytes.length) {
|
|
92
|
+
i += onError(Utf8ErrorReason.OVERRUN, i - 1, bytes, result);
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
var res = c & (1 << 8 - extraLength - 1) - 1;
|
|
96
|
+
for (var j = 0; j < extraLength; j++) {
|
|
97
|
+
var nextChar = bytes[i];
|
|
98
|
+
if ((nextChar & 192) != 128) {
|
|
99
|
+
i += onError(Utf8ErrorReason.MISSING_CONTINUE, i, bytes, result);
|
|
100
|
+
res = null;
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
res = res << 6 | nextChar & 63;
|
|
104
|
+
i++;
|
|
105
|
+
}
|
|
106
|
+
if (res === null) continue;
|
|
107
|
+
if (res > 1114111) {
|
|
108
|
+
i += onError(Utf8ErrorReason.OUT_OF_RANGE, i - 1 - extraLength, bytes, result, res);
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
if (res >= 55296 && res <= 57343) {
|
|
112
|
+
i += onError(Utf8ErrorReason.UTF16_SURROGATE, i - 1 - extraLength, bytes, result, res);
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
if (res <= overlongMask) {
|
|
116
|
+
i += onError(Utf8ErrorReason.OVERLONG, i - 1 - extraLength, bytes, result, res);
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
result.push(res);
|
|
120
|
+
}
|
|
121
|
+
return result;
|
|
122
|
+
}
|
|
123
|
+
function toUtf8Bytes(str, form) {
|
|
124
|
+
if (form === void 0) form = UnicodeNormalizationForm.current;
|
|
125
|
+
if (form != UnicodeNormalizationForm.current) {
|
|
126
|
+
logger.checkNormalize();
|
|
127
|
+
str = str.normalize(form);
|
|
128
|
+
}
|
|
129
|
+
var result = [];
|
|
130
|
+
for (var i = 0; i < str.length; i++) {
|
|
131
|
+
var c = str.charCodeAt(i);
|
|
132
|
+
if (c < 128) result.push(c);
|
|
133
|
+
else if (c < 2048) {
|
|
134
|
+
result.push(c >> 6 | 192);
|
|
135
|
+
result.push(c & 63 | 128);
|
|
136
|
+
} else if ((c & 64512) == 55296) {
|
|
137
|
+
i++;
|
|
138
|
+
var c2 = str.charCodeAt(i);
|
|
139
|
+
if (i >= str.length || (c2 & 64512) !== 56320) throw new Error("invalid utf-8 string");
|
|
140
|
+
var pair = 65536 + ((c & 1023) << 10) + (c2 & 1023);
|
|
141
|
+
result.push(pair >> 18 | 240);
|
|
142
|
+
result.push(pair >> 12 & 63 | 128);
|
|
143
|
+
result.push(pair >> 6 & 63 | 128);
|
|
144
|
+
result.push(pair & 63 | 128);
|
|
145
|
+
} else {
|
|
146
|
+
result.push(c >> 12 | 224);
|
|
147
|
+
result.push(c >> 6 & 63 | 128);
|
|
148
|
+
result.push(c & 63 | 128);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return (0, bytes_1.arrayify)(result);
|
|
152
|
+
}
|
|
153
|
+
exports.toUtf8Bytes = toUtf8Bytes;
|
|
154
|
+
function escapeChar(value) {
|
|
155
|
+
var hex = "0000" + value.toString(16);
|
|
156
|
+
return "\\u" + hex.substring(hex.length - 4);
|
|
157
|
+
}
|
|
158
|
+
function _toEscapedUtf8String(bytes, onError) {
|
|
159
|
+
return "\"" + getUtf8CodePoints(bytes, onError).map(function(codePoint) {
|
|
160
|
+
if (codePoint < 256) {
|
|
161
|
+
switch (codePoint) {
|
|
162
|
+
case 8: return "\\b";
|
|
163
|
+
case 9: return "\\t";
|
|
164
|
+
case 10: return "\\n";
|
|
165
|
+
case 13: return "\\r";
|
|
166
|
+
case 34: return "\\\"";
|
|
167
|
+
case 92: return "\\\\";
|
|
168
|
+
}
|
|
169
|
+
if (codePoint >= 32 && codePoint < 127) return String.fromCharCode(codePoint);
|
|
170
|
+
}
|
|
171
|
+
if (codePoint <= 65535) return escapeChar(codePoint);
|
|
172
|
+
codePoint -= 65536;
|
|
173
|
+
return escapeChar((codePoint >> 10 & 1023) + 55296) + escapeChar((codePoint & 1023) + 56320);
|
|
174
|
+
}).join("") + "\"";
|
|
175
|
+
}
|
|
176
|
+
exports._toEscapedUtf8String = _toEscapedUtf8String;
|
|
177
|
+
function _toUtf8String(codePoints) {
|
|
178
|
+
return codePoints.map(function(codePoint) {
|
|
179
|
+
if (codePoint <= 65535) return String.fromCharCode(codePoint);
|
|
180
|
+
codePoint -= 65536;
|
|
181
|
+
return String.fromCharCode((codePoint >> 10 & 1023) + 55296, (codePoint & 1023) + 56320);
|
|
182
|
+
}).join("");
|
|
183
|
+
}
|
|
184
|
+
exports._toUtf8String = _toUtf8String;
|
|
185
|
+
function toUtf8String(bytes, onError) {
|
|
186
|
+
return _toUtf8String(getUtf8CodePoints(bytes, onError));
|
|
187
|
+
}
|
|
188
|
+
exports.toUtf8String = toUtf8String;
|
|
189
|
+
function toUtf8CodePoints(str, form) {
|
|
190
|
+
if (form === void 0) form = UnicodeNormalizationForm.current;
|
|
191
|
+
return getUtf8CodePoints(toUtf8Bytes(str, form));
|
|
192
|
+
}
|
|
193
|
+
exports.toUtf8CodePoints = toUtf8CodePoints;
|
|
194
|
+
}));
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region ../../node_modules/.pnpm/@ethersproject+strings@5.8.0/node_modules/@ethersproject/strings/lib/bytes32.js
|
|
197
|
+
var require_bytes32 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
198
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
199
|
+
exports.parseBytes32String = exports.formatBytes32String = void 0;
|
|
200
|
+
var constants_1 = require_lib$7();
|
|
201
|
+
var bytes_1 = require_lib$4();
|
|
202
|
+
var utf8_1 = require_utf8();
|
|
203
|
+
function formatBytes32String(text) {
|
|
204
|
+
var bytes = (0, utf8_1.toUtf8Bytes)(text);
|
|
205
|
+
if (bytes.length > 31) throw new Error("bytes32 string must be less than 32 bytes");
|
|
206
|
+
return (0, bytes_1.hexlify)((0, bytes_1.concat)([bytes, constants_1.HashZero]).slice(0, 32));
|
|
207
|
+
}
|
|
208
|
+
exports.formatBytes32String = formatBytes32String;
|
|
209
|
+
function parseBytes32String(bytes) {
|
|
210
|
+
var data = (0, bytes_1.arrayify)(bytes);
|
|
211
|
+
if (data.length !== 32) throw new Error("invalid bytes32 - not 32 bytes long");
|
|
212
|
+
if (data[31] !== 0) throw new Error("invalid bytes32 string - no null terminator");
|
|
213
|
+
var length = 31;
|
|
214
|
+
while (data[length - 1] === 0) length--;
|
|
215
|
+
return (0, utf8_1.toUtf8String)(data.slice(0, length));
|
|
216
|
+
}
|
|
217
|
+
exports.parseBytes32String = parseBytes32String;
|
|
218
|
+
}));
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region ../../node_modules/.pnpm/@ethersproject+strings@5.8.0/node_modules/@ethersproject/strings/lib/idna.js
|
|
221
|
+
var require_idna = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
222
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
223
|
+
exports.nameprep = exports._nameprepTableC = exports._nameprepTableB2 = exports._nameprepTableA1 = void 0;
|
|
224
|
+
var utf8_1 = require_utf8();
|
|
225
|
+
function bytes2(data) {
|
|
226
|
+
if (data.length % 4 !== 0) throw new Error("bad data");
|
|
227
|
+
var result = [];
|
|
228
|
+
for (var i = 0; i < data.length; i += 4) result.push(parseInt(data.substring(i, i + 4), 16));
|
|
229
|
+
return result;
|
|
230
|
+
}
|
|
231
|
+
function createTable(data, func) {
|
|
232
|
+
if (!func) func = function(value) {
|
|
233
|
+
return [parseInt(value, 16)];
|
|
234
|
+
};
|
|
235
|
+
var lo = 0;
|
|
236
|
+
var result = {};
|
|
237
|
+
data.split(",").forEach(function(pair) {
|
|
238
|
+
var comps = pair.split(":");
|
|
239
|
+
lo += parseInt(comps[0], 16);
|
|
240
|
+
result[lo] = func(comps[1]);
|
|
241
|
+
});
|
|
242
|
+
return result;
|
|
243
|
+
}
|
|
244
|
+
function createRangeTable(data) {
|
|
245
|
+
var hi = 0;
|
|
246
|
+
return data.split(",").map(function(v) {
|
|
247
|
+
var comps = v.split("-");
|
|
248
|
+
if (comps.length === 1) comps[1] = "0";
|
|
249
|
+
else if (comps[1] === "") comps[1] = "1";
|
|
250
|
+
var lo = hi + parseInt(comps[0], 16);
|
|
251
|
+
hi = parseInt(comps[1], 16);
|
|
252
|
+
return {
|
|
253
|
+
l: lo,
|
|
254
|
+
h: hi
|
|
255
|
+
};
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
function matchMap(value, ranges) {
|
|
259
|
+
var lo = 0;
|
|
260
|
+
for (var i = 0; i < ranges.length; i++) {
|
|
261
|
+
var range = ranges[i];
|
|
262
|
+
lo += range.l;
|
|
263
|
+
if (value >= lo && value <= lo + range.h && (value - lo) % (range.d || 1) === 0) {
|
|
264
|
+
if (range.e && range.e.indexOf(value - lo) !== -1) continue;
|
|
265
|
+
return range;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return null;
|
|
269
|
+
}
|
|
270
|
+
var Table_A_1_ranges = createRangeTable("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d");
|
|
271
|
+
var Table_B_1_flags = "ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(v) {
|
|
272
|
+
return parseInt(v, 16);
|
|
273
|
+
});
|
|
274
|
+
var Table_B_2_ranges = [
|
|
275
|
+
{
|
|
276
|
+
h: 25,
|
|
277
|
+
s: 32,
|
|
278
|
+
l: 65
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
h: 30,
|
|
282
|
+
s: 32,
|
|
283
|
+
e: [23],
|
|
284
|
+
l: 127
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
h: 54,
|
|
288
|
+
s: 1,
|
|
289
|
+
e: [48],
|
|
290
|
+
l: 64,
|
|
291
|
+
d: 2
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
h: 14,
|
|
295
|
+
s: 1,
|
|
296
|
+
l: 57,
|
|
297
|
+
d: 2
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
h: 44,
|
|
301
|
+
s: 1,
|
|
302
|
+
l: 17,
|
|
303
|
+
d: 2
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
h: 10,
|
|
307
|
+
s: 1,
|
|
308
|
+
e: [
|
|
309
|
+
2,
|
|
310
|
+
6,
|
|
311
|
+
8
|
|
312
|
+
],
|
|
313
|
+
l: 61,
|
|
314
|
+
d: 2
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
h: 16,
|
|
318
|
+
s: 1,
|
|
319
|
+
l: 68,
|
|
320
|
+
d: 2
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
h: 84,
|
|
324
|
+
s: 1,
|
|
325
|
+
e: [
|
|
326
|
+
18,
|
|
327
|
+
24,
|
|
328
|
+
66
|
|
329
|
+
],
|
|
330
|
+
l: 19,
|
|
331
|
+
d: 2
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
h: 26,
|
|
335
|
+
s: 32,
|
|
336
|
+
e: [17],
|
|
337
|
+
l: 435
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
h: 22,
|
|
341
|
+
s: 1,
|
|
342
|
+
l: 71,
|
|
343
|
+
d: 2
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
h: 15,
|
|
347
|
+
s: 80,
|
|
348
|
+
l: 40
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
h: 31,
|
|
352
|
+
s: 32,
|
|
353
|
+
l: 16
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
h: 32,
|
|
357
|
+
s: 1,
|
|
358
|
+
l: 80,
|
|
359
|
+
d: 2
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
h: 52,
|
|
363
|
+
s: 1,
|
|
364
|
+
l: 42,
|
|
365
|
+
d: 2
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
h: 12,
|
|
369
|
+
s: 1,
|
|
370
|
+
l: 55,
|
|
371
|
+
d: 2
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
h: 40,
|
|
375
|
+
s: 1,
|
|
376
|
+
e: [38],
|
|
377
|
+
l: 15,
|
|
378
|
+
d: 2
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
h: 14,
|
|
382
|
+
s: 1,
|
|
383
|
+
l: 48,
|
|
384
|
+
d: 2
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
h: 37,
|
|
388
|
+
s: 48,
|
|
389
|
+
l: 49
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
h: 148,
|
|
393
|
+
s: 1,
|
|
394
|
+
l: 6351,
|
|
395
|
+
d: 2
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
h: 88,
|
|
399
|
+
s: 1,
|
|
400
|
+
l: 160,
|
|
401
|
+
d: 2
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
h: 15,
|
|
405
|
+
s: 16,
|
|
406
|
+
l: 704
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
h: 25,
|
|
410
|
+
s: 26,
|
|
411
|
+
l: 854
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
h: 25,
|
|
415
|
+
s: 32,
|
|
416
|
+
l: 55915
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
h: 37,
|
|
420
|
+
s: 40,
|
|
421
|
+
l: 1247
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
h: 25,
|
|
425
|
+
s: -119711,
|
|
426
|
+
l: 53248
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
h: 25,
|
|
430
|
+
s: -119763,
|
|
431
|
+
l: 52
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
h: 25,
|
|
435
|
+
s: -119815,
|
|
436
|
+
l: 52
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
h: 25,
|
|
440
|
+
s: -119867,
|
|
441
|
+
e: [
|
|
442
|
+
1,
|
|
443
|
+
4,
|
|
444
|
+
5,
|
|
445
|
+
7,
|
|
446
|
+
8,
|
|
447
|
+
11,
|
|
448
|
+
12,
|
|
449
|
+
17
|
|
450
|
+
],
|
|
451
|
+
l: 52
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
h: 25,
|
|
455
|
+
s: -119919,
|
|
456
|
+
l: 52
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
h: 24,
|
|
460
|
+
s: -119971,
|
|
461
|
+
e: [
|
|
462
|
+
2,
|
|
463
|
+
7,
|
|
464
|
+
8,
|
|
465
|
+
17
|
|
466
|
+
],
|
|
467
|
+
l: 52
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
h: 24,
|
|
471
|
+
s: -120023,
|
|
472
|
+
e: [
|
|
473
|
+
2,
|
|
474
|
+
7,
|
|
475
|
+
13,
|
|
476
|
+
15,
|
|
477
|
+
16,
|
|
478
|
+
17
|
|
479
|
+
],
|
|
480
|
+
l: 52
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
h: 25,
|
|
484
|
+
s: -120075,
|
|
485
|
+
l: 52
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
h: 25,
|
|
489
|
+
s: -120127,
|
|
490
|
+
l: 52
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
h: 25,
|
|
494
|
+
s: -120179,
|
|
495
|
+
l: 52
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
h: 25,
|
|
499
|
+
s: -120231,
|
|
500
|
+
l: 52
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
h: 25,
|
|
504
|
+
s: -120283,
|
|
505
|
+
l: 52
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
h: 25,
|
|
509
|
+
s: -120335,
|
|
510
|
+
l: 52
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
h: 24,
|
|
514
|
+
s: -119543,
|
|
515
|
+
e: [17],
|
|
516
|
+
l: 56
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
h: 24,
|
|
520
|
+
s: -119601,
|
|
521
|
+
e: [17],
|
|
522
|
+
l: 58
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
h: 24,
|
|
526
|
+
s: -119659,
|
|
527
|
+
e: [17],
|
|
528
|
+
l: 58
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
h: 24,
|
|
532
|
+
s: -119717,
|
|
533
|
+
e: [17],
|
|
534
|
+
l: 58
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
h: 24,
|
|
538
|
+
s: -119775,
|
|
539
|
+
e: [17],
|
|
540
|
+
l: 58
|
|
541
|
+
}
|
|
542
|
+
];
|
|
543
|
+
var Table_B_2_lut_abs = createTable("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3");
|
|
544
|
+
var Table_B_2_lut_rel = createTable("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7");
|
|
545
|
+
var Table_B_2_complex = createTable("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D", bytes2);
|
|
546
|
+
var Table_C_ranges = createRangeTable("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");
|
|
547
|
+
function flatten(values) {
|
|
548
|
+
return values.reduce(function(accum, value) {
|
|
549
|
+
value.forEach(function(value) {
|
|
550
|
+
accum.push(value);
|
|
551
|
+
});
|
|
552
|
+
return accum;
|
|
553
|
+
}, []);
|
|
554
|
+
}
|
|
555
|
+
function _nameprepTableA1(codepoint) {
|
|
556
|
+
return !!matchMap(codepoint, Table_A_1_ranges);
|
|
557
|
+
}
|
|
558
|
+
exports._nameprepTableA1 = _nameprepTableA1;
|
|
559
|
+
function _nameprepTableB2(codepoint) {
|
|
560
|
+
var range = matchMap(codepoint, Table_B_2_ranges);
|
|
561
|
+
if (range) return [codepoint + range.s];
|
|
562
|
+
var codes = Table_B_2_lut_abs[codepoint];
|
|
563
|
+
if (codes) return codes;
|
|
564
|
+
var shift = Table_B_2_lut_rel[codepoint];
|
|
565
|
+
if (shift) return [codepoint + shift[0]];
|
|
566
|
+
var complex = Table_B_2_complex[codepoint];
|
|
567
|
+
if (complex) return complex;
|
|
568
|
+
return null;
|
|
569
|
+
}
|
|
570
|
+
exports._nameprepTableB2 = _nameprepTableB2;
|
|
571
|
+
function _nameprepTableC(codepoint) {
|
|
572
|
+
return !!matchMap(codepoint, Table_C_ranges);
|
|
573
|
+
}
|
|
574
|
+
exports._nameprepTableC = _nameprepTableC;
|
|
575
|
+
function nameprep(value) {
|
|
576
|
+
if (value.match(/^[a-z0-9-]*$/i) && value.length <= 59) return value.toLowerCase();
|
|
577
|
+
var codes = (0, utf8_1.toUtf8CodePoints)(value);
|
|
578
|
+
codes = flatten(codes.map(function(code) {
|
|
579
|
+
if (Table_B_1_flags.indexOf(code) >= 0) return [];
|
|
580
|
+
if (code >= 65024 && code <= 65039) return [];
|
|
581
|
+
var codesTableB2 = _nameprepTableB2(code);
|
|
582
|
+
if (codesTableB2) return codesTableB2;
|
|
583
|
+
return [code];
|
|
584
|
+
}));
|
|
585
|
+
codes = (0, utf8_1.toUtf8CodePoints)((0, utf8_1._toUtf8String)(codes), utf8_1.UnicodeNormalizationForm.NFKC);
|
|
586
|
+
codes.forEach(function(code) {
|
|
587
|
+
if (_nameprepTableC(code)) throw new Error("STRINGPREP_CONTAINS_PROHIBITED");
|
|
588
|
+
});
|
|
589
|
+
codes.forEach(function(code) {
|
|
590
|
+
if (_nameprepTableA1(code)) throw new Error("STRINGPREP_CONTAINS_UNASSIGNED");
|
|
591
|
+
});
|
|
592
|
+
var name = (0, utf8_1._toUtf8String)(codes);
|
|
593
|
+
if (name.substring(0, 1) === "-" || name.substring(2, 4) === "--" || name.substring(name.length - 1) === "-") throw new Error("invalid hyphen");
|
|
594
|
+
return name;
|
|
595
|
+
}
|
|
596
|
+
exports.nameprep = nameprep;
|
|
597
|
+
}));
|
|
598
|
+
//#endregion
|
|
599
|
+
//#region ../../node_modules/.pnpm/@ethersproject+strings@5.8.0/node_modules/@ethersproject/strings/lib/index.js
|
|
600
|
+
var require_lib$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
601
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
602
|
+
exports.nameprep = exports.parseBytes32String = exports.formatBytes32String = exports.UnicodeNormalizationForm = exports.Utf8ErrorReason = exports.Utf8ErrorFuncs = exports.toUtf8String = exports.toUtf8CodePoints = exports.toUtf8Bytes = exports._toEscapedUtf8String = void 0;
|
|
603
|
+
var bytes32_1 = require_bytes32();
|
|
604
|
+
Object.defineProperty(exports, "formatBytes32String", {
|
|
605
|
+
enumerable: true,
|
|
606
|
+
get: function() {
|
|
607
|
+
return bytes32_1.formatBytes32String;
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
Object.defineProperty(exports, "parseBytes32String", {
|
|
611
|
+
enumerable: true,
|
|
612
|
+
get: function() {
|
|
613
|
+
return bytes32_1.parseBytes32String;
|
|
614
|
+
}
|
|
615
|
+
});
|
|
616
|
+
var idna_1 = require_idna();
|
|
617
|
+
Object.defineProperty(exports, "nameprep", {
|
|
618
|
+
enumerable: true,
|
|
619
|
+
get: function() {
|
|
620
|
+
return idna_1.nameprep;
|
|
621
|
+
}
|
|
622
|
+
});
|
|
623
|
+
var utf8_1 = require_utf8();
|
|
624
|
+
Object.defineProperty(exports, "_toEscapedUtf8String", {
|
|
625
|
+
enumerable: true,
|
|
626
|
+
get: function() {
|
|
627
|
+
return utf8_1._toEscapedUtf8String;
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
Object.defineProperty(exports, "toUtf8Bytes", {
|
|
631
|
+
enumerable: true,
|
|
632
|
+
get: function() {
|
|
633
|
+
return utf8_1.toUtf8Bytes;
|
|
634
|
+
}
|
|
635
|
+
});
|
|
636
|
+
Object.defineProperty(exports, "toUtf8CodePoints", {
|
|
637
|
+
enumerable: true,
|
|
638
|
+
get: function() {
|
|
639
|
+
return utf8_1.toUtf8CodePoints;
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
Object.defineProperty(exports, "toUtf8String", {
|
|
643
|
+
enumerable: true,
|
|
644
|
+
get: function() {
|
|
645
|
+
return utf8_1.toUtf8String;
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
Object.defineProperty(exports, "UnicodeNormalizationForm", {
|
|
649
|
+
enumerable: true,
|
|
650
|
+
get: function() {
|
|
651
|
+
return utf8_1.UnicodeNormalizationForm;
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
Object.defineProperty(exports, "Utf8ErrorFuncs", {
|
|
655
|
+
enumerable: true,
|
|
656
|
+
get: function() {
|
|
657
|
+
return utf8_1.Utf8ErrorFuncs;
|
|
658
|
+
}
|
|
659
|
+
});
|
|
660
|
+
Object.defineProperty(exports, "Utf8ErrorReason", {
|
|
661
|
+
enumerable: true,
|
|
662
|
+
get: function() {
|
|
663
|
+
return utf8_1.Utf8ErrorReason;
|
|
664
|
+
}
|
|
665
|
+
});
|
|
666
|
+
}));
|
|
667
|
+
//#endregion
|
|
668
|
+
//#region ../../node_modules/.pnpm/@ethersproject+hash@5.8.0/node_modules/@ethersproject/hash/lib/id.js
|
|
669
|
+
var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
670
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
671
|
+
exports.id = void 0;
|
|
672
|
+
var keccak256_1 = require_lib$6();
|
|
673
|
+
var strings_1 = require_lib$3();
|
|
674
|
+
function id(text) {
|
|
675
|
+
return (0, keccak256_1.keccak256)((0, strings_1.toUtf8Bytes)(text));
|
|
676
|
+
}
|
|
677
|
+
exports.id = id;
|
|
678
|
+
}));
|
|
679
|
+
//#endregion
|
|
680
|
+
//#region ../../node_modules/.pnpm/@ethersproject+hash@5.8.0/node_modules/@ethersproject/hash/lib/_version.js
|
|
681
|
+
var require__version = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
682
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
683
|
+
exports.version = void 0;
|
|
684
|
+
exports.version = "hash/5.8.0";
|
|
685
|
+
}));
|
|
686
|
+
//#endregion
|
|
687
|
+
//#region ../../node_modules/.pnpm/@ethersproject+base64@5.8.0/node_modules/@ethersproject/base64/lib/base64.js
|
|
688
|
+
var require_base64 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
689
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
690
|
+
exports.encode = exports.decode = void 0;
|
|
691
|
+
var bytes_1 = require_lib$4();
|
|
692
|
+
function decode(textData) {
|
|
693
|
+
return (0, bytes_1.arrayify)(new Uint8Array(Buffer.from(textData, "base64")));
|
|
694
|
+
}
|
|
695
|
+
exports.decode = decode;
|
|
696
|
+
function encode(data) {
|
|
697
|
+
return Buffer.from((0, bytes_1.arrayify)(data)).toString("base64");
|
|
698
|
+
}
|
|
699
|
+
exports.encode = encode;
|
|
700
|
+
}));
|
|
701
|
+
//#endregion
|
|
702
|
+
//#region ../../node_modules/.pnpm/@ethersproject+base64@5.8.0/node_modules/@ethersproject/base64/lib/index.js
|
|
703
|
+
var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
704
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
705
|
+
exports.encode = exports.decode = void 0;
|
|
706
|
+
var base64_1 = require_base64();
|
|
707
|
+
Object.defineProperty(exports, "decode", {
|
|
708
|
+
enumerable: true,
|
|
709
|
+
get: function() {
|
|
710
|
+
return base64_1.decode;
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
Object.defineProperty(exports, "encode", {
|
|
714
|
+
enumerable: true,
|
|
715
|
+
get: function() {
|
|
716
|
+
return base64_1.encode;
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
}));
|
|
720
|
+
//#endregion
|
|
721
|
+
//#region ../../node_modules/.pnpm/@ethersproject+hash@5.8.0/node_modules/@ethersproject/hash/lib/ens-normalize/decoder.js
|
|
722
|
+
var require_decoder = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
723
|
+
/**
|
|
724
|
+
* MIT License
|
|
725
|
+
*
|
|
726
|
+
* Copyright (c) 2021 Andrew Raffensperger
|
|
727
|
+
*
|
|
728
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
729
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
730
|
+
* in the Software without restriction, including without limitation the rights
|
|
731
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
732
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
733
|
+
* furnished to do so, subject to the following conditions:
|
|
734
|
+
*
|
|
735
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
736
|
+
* copies or substantial portions of the Software.
|
|
737
|
+
*
|
|
738
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
739
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
740
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
741
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
742
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
743
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
744
|
+
* SOFTWARE.
|
|
745
|
+
*
|
|
746
|
+
* This is a near carbon-copy of the original source (link below) with the
|
|
747
|
+
* TypeScript typings added and a few tweaks to make it ES3-compatible.
|
|
748
|
+
*
|
|
749
|
+
* See: https://github.com/adraffy/ens-normalize.js
|
|
750
|
+
*/
|
|
751
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
752
|
+
exports.read_emoji_trie = exports.read_zero_terminated_array = exports.read_mapped_map = exports.read_member_array = exports.signed = exports.read_compressed_payload = exports.read_payload = exports.decode_arithmetic = void 0;
|
|
753
|
+
function flat(array, depth) {
|
|
754
|
+
if (depth == null) depth = 1;
|
|
755
|
+
var result = [];
|
|
756
|
+
var forEach = result.forEach;
|
|
757
|
+
var flatDeep = function(arr, depth) {
|
|
758
|
+
forEach.call(arr, function(val) {
|
|
759
|
+
if (depth > 0 && Array.isArray(val)) flatDeep(val, depth - 1);
|
|
760
|
+
else result.push(val);
|
|
761
|
+
});
|
|
762
|
+
};
|
|
763
|
+
flatDeep(array, depth);
|
|
764
|
+
return result;
|
|
765
|
+
}
|
|
766
|
+
function fromEntries(array) {
|
|
767
|
+
var result = {};
|
|
768
|
+
for (var i = 0; i < array.length; i++) {
|
|
769
|
+
var value = array[i];
|
|
770
|
+
result[value[0]] = value[1];
|
|
771
|
+
}
|
|
772
|
+
return result;
|
|
773
|
+
}
|
|
774
|
+
function decode_arithmetic(bytes) {
|
|
775
|
+
var pos = 0;
|
|
776
|
+
function u16() {
|
|
777
|
+
return bytes[pos++] << 8 | bytes[pos++];
|
|
778
|
+
}
|
|
779
|
+
var symbol_count = u16();
|
|
780
|
+
var total = 1;
|
|
781
|
+
var acc = [0, 1];
|
|
782
|
+
for (var i = 1; i < symbol_count; i++) acc.push(total += u16());
|
|
783
|
+
var skip = u16();
|
|
784
|
+
var pos_payload = pos;
|
|
785
|
+
pos += skip;
|
|
786
|
+
var read_width = 0;
|
|
787
|
+
var read_buffer = 0;
|
|
788
|
+
function read_bit() {
|
|
789
|
+
if (read_width == 0) {
|
|
790
|
+
read_buffer = read_buffer << 8 | bytes[pos++];
|
|
791
|
+
read_width = 8;
|
|
792
|
+
}
|
|
793
|
+
return read_buffer >> --read_width & 1;
|
|
794
|
+
}
|
|
795
|
+
var N = 31;
|
|
796
|
+
var FULL = Math.pow(2, N);
|
|
797
|
+
var HALF = FULL >>> 1;
|
|
798
|
+
var QRTR = HALF >> 1;
|
|
799
|
+
var MASK = FULL - 1;
|
|
800
|
+
var register = 0;
|
|
801
|
+
for (var i = 0; i < N; i++) register = register << 1 | read_bit();
|
|
802
|
+
var symbols = [];
|
|
803
|
+
var low = 0;
|
|
804
|
+
var range = FULL;
|
|
805
|
+
while (true) {
|
|
806
|
+
var value = Math.floor(((register - low + 1) * total - 1) / range);
|
|
807
|
+
var start = 0;
|
|
808
|
+
var end = symbol_count;
|
|
809
|
+
while (end - start > 1) {
|
|
810
|
+
var mid = start + end >>> 1;
|
|
811
|
+
if (value < acc[mid]) end = mid;
|
|
812
|
+
else start = mid;
|
|
813
|
+
}
|
|
814
|
+
if (start == 0) break;
|
|
815
|
+
symbols.push(start);
|
|
816
|
+
var a = low + Math.floor(range * acc[start] / total);
|
|
817
|
+
var b = low + Math.floor(range * acc[start + 1] / total) - 1;
|
|
818
|
+
while (((a ^ b) & HALF) == 0) {
|
|
819
|
+
register = register << 1 & MASK | read_bit();
|
|
820
|
+
a = a << 1 & MASK;
|
|
821
|
+
b = b << 1 & MASK | 1;
|
|
822
|
+
}
|
|
823
|
+
while (a & ~b & QRTR) {
|
|
824
|
+
register = register & HALF | register << 1 & MASK >>> 1 | read_bit();
|
|
825
|
+
a = a << 1 ^ HALF;
|
|
826
|
+
b = (b ^ HALF) << 1 | HALF | 1;
|
|
827
|
+
}
|
|
828
|
+
low = a;
|
|
829
|
+
range = 1 + b - a;
|
|
830
|
+
}
|
|
831
|
+
var offset = symbol_count - 4;
|
|
832
|
+
return symbols.map(function(x) {
|
|
833
|
+
switch (x - offset) {
|
|
834
|
+
case 3: return offset + 65792 + (bytes[pos_payload++] << 16 | bytes[pos_payload++] << 8 | bytes[pos_payload++]);
|
|
835
|
+
case 2: return offset + 256 + (bytes[pos_payload++] << 8 | bytes[pos_payload++]);
|
|
836
|
+
case 1: return offset + bytes[pos_payload++];
|
|
837
|
+
default: return x - 1;
|
|
838
|
+
}
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
exports.decode_arithmetic = decode_arithmetic;
|
|
842
|
+
function read_payload(v) {
|
|
843
|
+
var pos = 0;
|
|
844
|
+
return function() {
|
|
845
|
+
return v[pos++];
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
exports.read_payload = read_payload;
|
|
849
|
+
function read_compressed_payload(bytes) {
|
|
850
|
+
return read_payload(decode_arithmetic(bytes));
|
|
851
|
+
}
|
|
852
|
+
exports.read_compressed_payload = read_compressed_payload;
|
|
853
|
+
function signed(i) {
|
|
854
|
+
return i & 1 ? ~i >> 1 : i >> 1;
|
|
855
|
+
}
|
|
856
|
+
exports.signed = signed;
|
|
857
|
+
function read_counts(n, next) {
|
|
858
|
+
var v = Array(n);
|
|
859
|
+
for (var i = 0; i < n; i++) v[i] = 1 + next();
|
|
860
|
+
return v;
|
|
861
|
+
}
|
|
862
|
+
function read_ascending(n, next) {
|
|
863
|
+
var v = Array(n);
|
|
864
|
+
for (var i = 0, x = -1; i < n; i++) v[i] = x += 1 + next();
|
|
865
|
+
return v;
|
|
866
|
+
}
|
|
867
|
+
function read_deltas(n, next) {
|
|
868
|
+
var v = Array(n);
|
|
869
|
+
for (var i = 0, x = 0; i < n; i++) v[i] = x += signed(next());
|
|
870
|
+
return v;
|
|
871
|
+
}
|
|
872
|
+
function read_member_array(next, lookup) {
|
|
873
|
+
var v = read_ascending(next(), next);
|
|
874
|
+
var n = next();
|
|
875
|
+
var vX = read_ascending(n, next);
|
|
876
|
+
var vN = read_counts(n, next);
|
|
877
|
+
for (var i = 0; i < n; i++) for (var j = 0; j < vN[i]; j++) v.push(vX[i] + j);
|
|
878
|
+
return lookup ? v.map(function(x) {
|
|
879
|
+
return lookup[x];
|
|
880
|
+
}) : v;
|
|
881
|
+
}
|
|
882
|
+
exports.read_member_array = read_member_array;
|
|
883
|
+
function read_mapped_map(next) {
|
|
884
|
+
var ret = [];
|
|
885
|
+
while (true) {
|
|
886
|
+
var w = next();
|
|
887
|
+
if (w == 0) break;
|
|
888
|
+
ret.push(read_linear_table(w, next));
|
|
889
|
+
}
|
|
890
|
+
while (true) {
|
|
891
|
+
var w = next() - 1;
|
|
892
|
+
if (w < 0) break;
|
|
893
|
+
ret.push(read_replacement_table(w, next));
|
|
894
|
+
}
|
|
895
|
+
return fromEntries(flat(ret));
|
|
896
|
+
}
|
|
897
|
+
exports.read_mapped_map = read_mapped_map;
|
|
898
|
+
function read_zero_terminated_array(next) {
|
|
899
|
+
var v = [];
|
|
900
|
+
while (true) {
|
|
901
|
+
var i = next();
|
|
902
|
+
if (i == 0) break;
|
|
903
|
+
v.push(i);
|
|
904
|
+
}
|
|
905
|
+
return v;
|
|
906
|
+
}
|
|
907
|
+
exports.read_zero_terminated_array = read_zero_terminated_array;
|
|
908
|
+
function read_transposed(n, w, next) {
|
|
909
|
+
var m = Array(n).fill(void 0).map(function() {
|
|
910
|
+
return [];
|
|
911
|
+
});
|
|
912
|
+
for (var i = 0; i < w; i++) read_deltas(n, next).forEach(function(x, j) {
|
|
913
|
+
return m[j].push(x);
|
|
914
|
+
});
|
|
915
|
+
return m;
|
|
916
|
+
}
|
|
917
|
+
function read_linear_table(w, next) {
|
|
918
|
+
var dx = 1 + next();
|
|
919
|
+
var dy = next();
|
|
920
|
+
var vN = read_zero_terminated_array(next);
|
|
921
|
+
return flat(read_transposed(vN.length, 1 + w, next).map(function(v, i) {
|
|
922
|
+
var x = v[0], ys = v.slice(1);
|
|
923
|
+
return Array(vN[i]).fill(void 0).map(function(_, j) {
|
|
924
|
+
var j_dy = j * dy;
|
|
925
|
+
return [x + j * dx, ys.map(function(y) {
|
|
926
|
+
return y + j_dy;
|
|
927
|
+
})];
|
|
928
|
+
});
|
|
929
|
+
}));
|
|
930
|
+
}
|
|
931
|
+
function read_replacement_table(w, next) {
|
|
932
|
+
return read_transposed(1 + next(), 1 + w, next).map(function(v) {
|
|
933
|
+
return [v[0], v.slice(1)];
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
function read_emoji_trie(next) {
|
|
937
|
+
var sorted = read_member_array(next).sort(function(a, b) {
|
|
938
|
+
return a - b;
|
|
939
|
+
});
|
|
940
|
+
return read();
|
|
941
|
+
function read() {
|
|
942
|
+
var branches = [];
|
|
943
|
+
while (true) {
|
|
944
|
+
var keys = read_member_array(next, sorted);
|
|
945
|
+
if (keys.length == 0) break;
|
|
946
|
+
branches.push({
|
|
947
|
+
set: new Set(keys),
|
|
948
|
+
node: read()
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
branches.sort(function(a, b) {
|
|
952
|
+
return b.set.size - a.set.size;
|
|
953
|
+
});
|
|
954
|
+
var temp = next();
|
|
955
|
+
var valid = temp % 3;
|
|
956
|
+
temp = temp / 3 | 0;
|
|
957
|
+
var fe0f = !!(temp & 1);
|
|
958
|
+
temp >>= 1;
|
|
959
|
+
return {
|
|
960
|
+
branches,
|
|
961
|
+
valid,
|
|
962
|
+
fe0f,
|
|
963
|
+
save: temp == 1,
|
|
964
|
+
check: temp == 2
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
exports.read_emoji_trie = read_emoji_trie;
|
|
969
|
+
}));
|
|
970
|
+
//#endregion
|
|
971
|
+
//#region ../../node_modules/.pnpm/@ethersproject+hash@5.8.0/node_modules/@ethersproject/hash/lib/ens-normalize/include.js
|
|
972
|
+
var require_include = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
973
|
+
/**
|
|
974
|
+
* MIT License
|
|
975
|
+
*
|
|
976
|
+
* Copyright (c) 2021 Andrew Raffensperger
|
|
977
|
+
*
|
|
978
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
979
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
980
|
+
* in the Software without restriction, including without limitation the rights
|
|
981
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
982
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
983
|
+
* furnished to do so, subject to the following conditions:
|
|
984
|
+
*
|
|
985
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
986
|
+
* copies or substantial portions of the Software.
|
|
987
|
+
*
|
|
988
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
989
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
990
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
991
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
992
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
993
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
994
|
+
* SOFTWARE.
|
|
995
|
+
*
|
|
996
|
+
* This is a near carbon-copy of the original source (link below) with the
|
|
997
|
+
* TypeScript typings added and a few tweaks to make it ES3-compatible.
|
|
998
|
+
*
|
|
999
|
+
* See: https://github.com/adraffy/ens-normalize.js
|
|
1000
|
+
*/
|
|
1001
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1002
|
+
exports.getData = void 0;
|
|
1003
|
+
var base64_1 = require_lib$2();
|
|
1004
|
+
var decoder_js_1 = require_decoder();
|
|
1005
|
+
function getData() {
|
|
1006
|
+
return (0, decoder_js_1.read_compressed_payload)((0, base64_1.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Kl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s99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="));
|
|
1007
|
+
}
|
|
1008
|
+
exports.getData = getData;
|
|
1009
|
+
}));
|
|
1010
|
+
//#endregion
|
|
1011
|
+
//#region ../../node_modules/.pnpm/@ethersproject+hash@5.8.0/node_modules/@ethersproject/hash/lib/ens-normalize/lib.js
|
|
1012
|
+
var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1013
|
+
/**
|
|
1014
|
+
* MIT License
|
|
1015
|
+
*
|
|
1016
|
+
* Copyright (c) 2021 Andrew Raffensperger
|
|
1017
|
+
*
|
|
1018
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1019
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
1020
|
+
* in the Software without restriction, including without limitation the rights
|
|
1021
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1022
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
1023
|
+
* furnished to do so, subject to the following conditions:
|
|
1024
|
+
*
|
|
1025
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
1026
|
+
* copies or substantial portions of the Software.
|
|
1027
|
+
*
|
|
1028
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1029
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1030
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1031
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1032
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1033
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1034
|
+
* SOFTWARE.
|
|
1035
|
+
*
|
|
1036
|
+
* This is a near carbon-copy of the original source (link below) with the
|
|
1037
|
+
* TypeScript typings added and a few tweaks to make it ES3-compatible.
|
|
1038
|
+
*
|
|
1039
|
+
* See: https://github.com/adraffy/ens-normalize.js
|
|
1040
|
+
*/
|
|
1041
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1042
|
+
exports.ens_normalize = exports.ens_normalize_post_check = void 0;
|
|
1043
|
+
var strings_1 = require_lib$3();
|
|
1044
|
+
var r = (0, require_include().getData)();
|
|
1045
|
+
var decoder_js_1 = require_decoder();
|
|
1046
|
+
var VALID = new Set((0, decoder_js_1.read_member_array)(r));
|
|
1047
|
+
var IGNORED = new Set((0, decoder_js_1.read_member_array)(r));
|
|
1048
|
+
var MAPPED = (0, decoder_js_1.read_mapped_map)(r);
|
|
1049
|
+
var EMOJI_ROOT = (0, decoder_js_1.read_emoji_trie)(r);
|
|
1050
|
+
var HYPHEN = 45;
|
|
1051
|
+
var UNDERSCORE = 95;
|
|
1052
|
+
function explode_cp(name) {
|
|
1053
|
+
return (0, strings_1.toUtf8CodePoints)(name);
|
|
1054
|
+
}
|
|
1055
|
+
function filter_fe0f(cps) {
|
|
1056
|
+
return cps.filter(function(cp) {
|
|
1057
|
+
return cp != 65039;
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
function ens_normalize_post_check(name) {
|
|
1061
|
+
for (var _i = 0, _a = name.split("."); _i < _a.length; _i++) {
|
|
1062
|
+
var label = _a[_i];
|
|
1063
|
+
var cps = explode_cp(label);
|
|
1064
|
+
try {
|
|
1065
|
+
for (var i = cps.lastIndexOf(UNDERSCORE) - 1; i >= 0; i--) if (cps[i] !== UNDERSCORE) throw new Error("underscore only allowed at start");
|
|
1066
|
+
if (cps.length >= 4 && cps.every(function(cp) {
|
|
1067
|
+
return cp < 128;
|
|
1068
|
+
}) && cps[2] === HYPHEN && cps[3] === HYPHEN) throw new Error("invalid label extension");
|
|
1069
|
+
} catch (err) {
|
|
1070
|
+
throw new Error("Invalid label \"" + label + "\": " + err.message);
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
return name;
|
|
1074
|
+
}
|
|
1075
|
+
exports.ens_normalize_post_check = ens_normalize_post_check;
|
|
1076
|
+
function ens_normalize(name) {
|
|
1077
|
+
return ens_normalize_post_check(normalize(name, filter_fe0f));
|
|
1078
|
+
}
|
|
1079
|
+
exports.ens_normalize = ens_normalize;
|
|
1080
|
+
function normalize(name, emoji_filter) {
|
|
1081
|
+
var input = explode_cp(name).reverse();
|
|
1082
|
+
var output = [];
|
|
1083
|
+
while (input.length) {
|
|
1084
|
+
var emoji = consume_emoji_reversed(input);
|
|
1085
|
+
if (emoji) {
|
|
1086
|
+
output.push.apply(output, emoji_filter(emoji));
|
|
1087
|
+
continue;
|
|
1088
|
+
}
|
|
1089
|
+
var cp = input.pop();
|
|
1090
|
+
if (VALID.has(cp)) {
|
|
1091
|
+
output.push(cp);
|
|
1092
|
+
continue;
|
|
1093
|
+
}
|
|
1094
|
+
if (IGNORED.has(cp)) continue;
|
|
1095
|
+
var cps = MAPPED[cp];
|
|
1096
|
+
if (cps) {
|
|
1097
|
+
output.push.apply(output, cps);
|
|
1098
|
+
continue;
|
|
1099
|
+
}
|
|
1100
|
+
throw new Error("Disallowed codepoint: 0x" + cp.toString(16).toUpperCase());
|
|
1101
|
+
}
|
|
1102
|
+
return ens_normalize_post_check(nfc(String.fromCodePoint.apply(String, output)));
|
|
1103
|
+
}
|
|
1104
|
+
function nfc(s) {
|
|
1105
|
+
return s.normalize("NFC");
|
|
1106
|
+
}
|
|
1107
|
+
function consume_emoji_reversed(cps, eaten) {
|
|
1108
|
+
var _a;
|
|
1109
|
+
var node = EMOJI_ROOT;
|
|
1110
|
+
var emoji;
|
|
1111
|
+
var saved;
|
|
1112
|
+
var stack = [];
|
|
1113
|
+
var pos = cps.length;
|
|
1114
|
+
if (eaten) eaten.length = 0;
|
|
1115
|
+
var _loop_1 = function() {
|
|
1116
|
+
var cp = cps[--pos];
|
|
1117
|
+
node = (_a = node.branches.find(function(x) {
|
|
1118
|
+
return x.set.has(cp);
|
|
1119
|
+
})) === null || _a === void 0 ? void 0 : _a.node;
|
|
1120
|
+
if (!node) return "break";
|
|
1121
|
+
if (node.save) saved = cp;
|
|
1122
|
+
else if (node.check) {
|
|
1123
|
+
if (cp === saved) return "break";
|
|
1124
|
+
}
|
|
1125
|
+
stack.push(cp);
|
|
1126
|
+
if (node.fe0f) {
|
|
1127
|
+
stack.push(65039);
|
|
1128
|
+
if (pos > 0 && cps[pos - 1] == 65039) pos--;
|
|
1129
|
+
}
|
|
1130
|
+
if (node.valid) {
|
|
1131
|
+
emoji = stack.slice();
|
|
1132
|
+
if (node.valid == 2) emoji.splice(1, 1);
|
|
1133
|
+
if (eaten) eaten.push.apply(eaten, cps.slice(pos).reverse());
|
|
1134
|
+
cps.length = pos;
|
|
1135
|
+
}
|
|
1136
|
+
};
|
|
1137
|
+
while (pos) if (_loop_1() === "break") break;
|
|
1138
|
+
return emoji;
|
|
1139
|
+
}
|
|
1140
|
+
}));
|
|
1141
|
+
//#endregion
|
|
1142
|
+
//#region ../../node_modules/.pnpm/@ethersproject+hash@5.8.0/node_modules/@ethersproject/hash/lib/namehash.js
|
|
1143
|
+
var require_namehash = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1144
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1145
|
+
exports.dnsEncode = exports.namehash = exports.isValidName = exports.ensNormalize = void 0;
|
|
1146
|
+
var bytes_1 = require_lib$4();
|
|
1147
|
+
var strings_1 = require_lib$3();
|
|
1148
|
+
var keccak256_1 = require_lib$6();
|
|
1149
|
+
var logger_1 = require_lib$5();
|
|
1150
|
+
var _version_1 = require__version();
|
|
1151
|
+
var logger = new logger_1.Logger(_version_1.version);
|
|
1152
|
+
var lib_1 = require_lib$1();
|
|
1153
|
+
var Zeros = /* @__PURE__ */ new Uint8Array(32);
|
|
1154
|
+
Zeros.fill(0);
|
|
1155
|
+
function checkComponent(comp) {
|
|
1156
|
+
if (comp.length === 0) throw new Error("invalid ENS name; empty component");
|
|
1157
|
+
return comp;
|
|
1158
|
+
}
|
|
1159
|
+
function ensNameSplit(name) {
|
|
1160
|
+
var bytes = (0, strings_1.toUtf8Bytes)((0, lib_1.ens_normalize)(name));
|
|
1161
|
+
var comps = [];
|
|
1162
|
+
if (name.length === 0) return comps;
|
|
1163
|
+
var last = 0;
|
|
1164
|
+
for (var i = 0; i < bytes.length; i++) if (bytes[i] === 46) {
|
|
1165
|
+
comps.push(checkComponent(bytes.slice(last, i)));
|
|
1166
|
+
last = i + 1;
|
|
1167
|
+
}
|
|
1168
|
+
if (last >= bytes.length) throw new Error("invalid ENS name; empty component");
|
|
1169
|
+
comps.push(checkComponent(bytes.slice(last)));
|
|
1170
|
+
return comps;
|
|
1171
|
+
}
|
|
1172
|
+
function ensNormalize(name) {
|
|
1173
|
+
return ensNameSplit(name).map(function(comp) {
|
|
1174
|
+
return (0, strings_1.toUtf8String)(comp);
|
|
1175
|
+
}).join(".");
|
|
1176
|
+
}
|
|
1177
|
+
exports.ensNormalize = ensNormalize;
|
|
1178
|
+
function isValidName(name) {
|
|
1179
|
+
try {
|
|
1180
|
+
return ensNameSplit(name).length !== 0;
|
|
1181
|
+
} catch (error) {}
|
|
1182
|
+
return false;
|
|
1183
|
+
}
|
|
1184
|
+
exports.isValidName = isValidName;
|
|
1185
|
+
function namehash(name) {
|
|
1186
|
+
/* istanbul ignore if */
|
|
1187
|
+
if (typeof name !== "string") logger.throwArgumentError("invalid ENS name; not a string", "name", name);
|
|
1188
|
+
var result = Zeros;
|
|
1189
|
+
var comps = ensNameSplit(name);
|
|
1190
|
+
while (comps.length) result = (0, keccak256_1.keccak256)((0, bytes_1.concat)([result, (0, keccak256_1.keccak256)(comps.pop())]));
|
|
1191
|
+
return (0, bytes_1.hexlify)(result);
|
|
1192
|
+
}
|
|
1193
|
+
exports.namehash = namehash;
|
|
1194
|
+
function dnsEncode(name) {
|
|
1195
|
+
return (0, bytes_1.hexlify)((0, bytes_1.concat)(ensNameSplit(name).map(function(comp) {
|
|
1196
|
+
if (comp.length > 63) throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");
|
|
1197
|
+
var bytes = new Uint8Array(comp.length + 1);
|
|
1198
|
+
bytes.set(comp, 1);
|
|
1199
|
+
bytes[0] = bytes.length - 1;
|
|
1200
|
+
return bytes;
|
|
1201
|
+
}))) + "00";
|
|
1202
|
+
}
|
|
1203
|
+
exports.dnsEncode = dnsEncode;
|
|
1204
|
+
}));
|
|
1205
|
+
//#endregion
|
|
1206
|
+
//#region ../../node_modules/.pnpm/@ethersproject+hash@5.8.0/node_modules/@ethersproject/hash/lib/message.js
|
|
1207
|
+
var require_message = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1208
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1209
|
+
exports.hashMessage = exports.messagePrefix = void 0;
|
|
1210
|
+
var bytes_1 = require_lib$4();
|
|
1211
|
+
var keccak256_1 = require_lib$6();
|
|
1212
|
+
var strings_1 = require_lib$3();
|
|
1213
|
+
exports.messagePrefix = "Ethereum Signed Message:\n";
|
|
1214
|
+
function hashMessage(message) {
|
|
1215
|
+
if (typeof message === "string") message = (0, strings_1.toUtf8Bytes)(message);
|
|
1216
|
+
return (0, keccak256_1.keccak256)((0, bytes_1.concat)([
|
|
1217
|
+
(0, strings_1.toUtf8Bytes)(exports.messagePrefix),
|
|
1218
|
+
(0, strings_1.toUtf8Bytes)(String(message.length)),
|
|
1219
|
+
message
|
|
1220
|
+
]));
|
|
1221
|
+
}
|
|
1222
|
+
exports.hashMessage = hashMessage;
|
|
1223
|
+
}));
|
|
1224
|
+
//#endregion
|
|
1225
|
+
//#region ../../node_modules/.pnpm/@ethersproject+hash@5.8.0/node_modules/@ethersproject/hash/lib/typed-data.js
|
|
1226
|
+
var require_typed_data = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1227
|
+
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
1228
|
+
function adopt(value) {
|
|
1229
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
1230
|
+
resolve(value);
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
1234
|
+
function fulfilled(value) {
|
|
1235
|
+
try {
|
|
1236
|
+
step(generator.next(value));
|
|
1237
|
+
} catch (e) {
|
|
1238
|
+
reject(e);
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
function rejected(value) {
|
|
1242
|
+
try {
|
|
1243
|
+
step(generator["throw"](value));
|
|
1244
|
+
} catch (e) {
|
|
1245
|
+
reject(e);
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
function step(result) {
|
|
1249
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1250
|
+
}
|
|
1251
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1252
|
+
});
|
|
1253
|
+
};
|
|
1254
|
+
var __generator = exports && exports.__generator || function(thisArg, body) {
|
|
1255
|
+
var _ = {
|
|
1256
|
+
label: 0,
|
|
1257
|
+
sent: function() {
|
|
1258
|
+
if (t[0] & 1) throw t[1];
|
|
1259
|
+
return t[1];
|
|
1260
|
+
},
|
|
1261
|
+
trys: [],
|
|
1262
|
+
ops: []
|
|
1263
|
+
}, f, y, t, g;
|
|
1264
|
+
return g = {
|
|
1265
|
+
next: verb(0),
|
|
1266
|
+
"throw": verb(1),
|
|
1267
|
+
"return": verb(2)
|
|
1268
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
1269
|
+
return this;
|
|
1270
|
+
}), g;
|
|
1271
|
+
function verb(n) {
|
|
1272
|
+
return function(v) {
|
|
1273
|
+
return step([n, v]);
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
function step(op) {
|
|
1277
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
1278
|
+
while (_) try {
|
|
1279
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
1280
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
1281
|
+
switch (op[0]) {
|
|
1282
|
+
case 0:
|
|
1283
|
+
case 1:
|
|
1284
|
+
t = op;
|
|
1285
|
+
break;
|
|
1286
|
+
case 4:
|
|
1287
|
+
_.label++;
|
|
1288
|
+
return {
|
|
1289
|
+
value: op[1],
|
|
1290
|
+
done: false
|
|
1291
|
+
};
|
|
1292
|
+
case 5:
|
|
1293
|
+
_.label++;
|
|
1294
|
+
y = op[1];
|
|
1295
|
+
op = [0];
|
|
1296
|
+
continue;
|
|
1297
|
+
case 7:
|
|
1298
|
+
op = _.ops.pop();
|
|
1299
|
+
_.trys.pop();
|
|
1300
|
+
continue;
|
|
1301
|
+
default:
|
|
1302
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
1303
|
+
_ = 0;
|
|
1304
|
+
continue;
|
|
1305
|
+
}
|
|
1306
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
1307
|
+
_.label = op[1];
|
|
1308
|
+
break;
|
|
1309
|
+
}
|
|
1310
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
1311
|
+
_.label = t[1];
|
|
1312
|
+
t = op;
|
|
1313
|
+
break;
|
|
1314
|
+
}
|
|
1315
|
+
if (t && _.label < t[2]) {
|
|
1316
|
+
_.label = t[2];
|
|
1317
|
+
_.ops.push(op);
|
|
1318
|
+
break;
|
|
1319
|
+
}
|
|
1320
|
+
if (t[2]) _.ops.pop();
|
|
1321
|
+
_.trys.pop();
|
|
1322
|
+
continue;
|
|
1323
|
+
}
|
|
1324
|
+
op = body.call(thisArg, _);
|
|
1325
|
+
} catch (e) {
|
|
1326
|
+
op = [6, e];
|
|
1327
|
+
y = 0;
|
|
1328
|
+
} finally {
|
|
1329
|
+
f = t = 0;
|
|
1330
|
+
}
|
|
1331
|
+
if (op[0] & 5) throw op[1];
|
|
1332
|
+
return {
|
|
1333
|
+
value: op[0] ? op[1] : void 0,
|
|
1334
|
+
done: true
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
};
|
|
1338
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1339
|
+
exports.TypedDataEncoder = void 0;
|
|
1340
|
+
var address_1 = require_lib$8();
|
|
1341
|
+
var bignumber_1 = require_lib$9();
|
|
1342
|
+
var bytes_1 = require_lib$4();
|
|
1343
|
+
var keccak256_1 = require_lib$6();
|
|
1344
|
+
var properties_1 = require_lib$10();
|
|
1345
|
+
var logger_1 = require_lib$5();
|
|
1346
|
+
var _version_1 = require__version();
|
|
1347
|
+
var logger = new logger_1.Logger(_version_1.version);
|
|
1348
|
+
var id_1 = require_id();
|
|
1349
|
+
var padding = /* @__PURE__ */ new Uint8Array(32);
|
|
1350
|
+
padding.fill(0);
|
|
1351
|
+
var NegativeOne = bignumber_1.BigNumber.from(-1);
|
|
1352
|
+
var Zero = bignumber_1.BigNumber.from(0);
|
|
1353
|
+
var One = bignumber_1.BigNumber.from(1);
|
|
1354
|
+
var MaxUint256 = bignumber_1.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
|
1355
|
+
function hexPadRight(value) {
|
|
1356
|
+
var bytes = (0, bytes_1.arrayify)(value);
|
|
1357
|
+
var padOffset = bytes.length % 32;
|
|
1358
|
+
if (padOffset) return (0, bytes_1.hexConcat)([bytes, padding.slice(padOffset)]);
|
|
1359
|
+
return (0, bytes_1.hexlify)(bytes);
|
|
1360
|
+
}
|
|
1361
|
+
var hexTrue = (0, bytes_1.hexZeroPad)(One.toHexString(), 32);
|
|
1362
|
+
var hexFalse = (0, bytes_1.hexZeroPad)(Zero.toHexString(), 32);
|
|
1363
|
+
var domainFieldTypes = {
|
|
1364
|
+
name: "string",
|
|
1365
|
+
version: "string",
|
|
1366
|
+
chainId: "uint256",
|
|
1367
|
+
verifyingContract: "address",
|
|
1368
|
+
salt: "bytes32"
|
|
1369
|
+
};
|
|
1370
|
+
var domainFieldNames = [
|
|
1371
|
+
"name",
|
|
1372
|
+
"version",
|
|
1373
|
+
"chainId",
|
|
1374
|
+
"verifyingContract",
|
|
1375
|
+
"salt"
|
|
1376
|
+
];
|
|
1377
|
+
function checkString(key) {
|
|
1378
|
+
return function(value) {
|
|
1379
|
+
if (typeof value !== "string") logger.throwArgumentError("invalid domain value for " + JSON.stringify(key), "domain." + key, value);
|
|
1380
|
+
return value;
|
|
1381
|
+
};
|
|
1382
|
+
}
|
|
1383
|
+
var domainChecks = {
|
|
1384
|
+
name: checkString("name"),
|
|
1385
|
+
version: checkString("version"),
|
|
1386
|
+
chainId: function(value) {
|
|
1387
|
+
try {
|
|
1388
|
+
return bignumber_1.BigNumber.from(value).toString();
|
|
1389
|
+
} catch (error) {}
|
|
1390
|
+
return logger.throwArgumentError("invalid domain value for \"chainId\"", "domain.chainId", value);
|
|
1391
|
+
},
|
|
1392
|
+
verifyingContract: function(value) {
|
|
1393
|
+
try {
|
|
1394
|
+
return (0, address_1.getAddress)(value).toLowerCase();
|
|
1395
|
+
} catch (error) {}
|
|
1396
|
+
return logger.throwArgumentError("invalid domain value \"verifyingContract\"", "domain.verifyingContract", value);
|
|
1397
|
+
},
|
|
1398
|
+
salt: function(value) {
|
|
1399
|
+
try {
|
|
1400
|
+
var bytes = (0, bytes_1.arrayify)(value);
|
|
1401
|
+
if (bytes.length !== 32) throw new Error("bad length");
|
|
1402
|
+
return (0, bytes_1.hexlify)(bytes);
|
|
1403
|
+
} catch (error) {}
|
|
1404
|
+
return logger.throwArgumentError("invalid domain value \"salt\"", "domain.salt", value);
|
|
1405
|
+
}
|
|
1406
|
+
};
|
|
1407
|
+
function getBaseEncoder(type) {
|
|
1408
|
+
var match = type.match(/^(u?)int(\d*)$/);
|
|
1409
|
+
if (match) {
|
|
1410
|
+
var signed = match[1] === "";
|
|
1411
|
+
var width = parseInt(match[2] || "256");
|
|
1412
|
+
if (width % 8 !== 0 || width > 256 || match[2] && match[2] !== String(width)) logger.throwArgumentError("invalid numeric width", "type", type);
|
|
1413
|
+
var boundsUpper_1 = MaxUint256.mask(signed ? width - 1 : width);
|
|
1414
|
+
var boundsLower_1 = signed ? boundsUpper_1.add(One).mul(NegativeOne) : Zero;
|
|
1415
|
+
return function(value) {
|
|
1416
|
+
var v = bignumber_1.BigNumber.from(value);
|
|
1417
|
+
if (v.lt(boundsLower_1) || v.gt(boundsUpper_1)) logger.throwArgumentError("value out-of-bounds for " + type, "value", value);
|
|
1418
|
+
return (0, bytes_1.hexZeroPad)(v.toTwos(256).toHexString(), 32);
|
|
1419
|
+
};
|
|
1420
|
+
}
|
|
1421
|
+
var match = type.match(/^bytes(\d+)$/);
|
|
1422
|
+
if (match) {
|
|
1423
|
+
var width_1 = parseInt(match[1]);
|
|
1424
|
+
if (width_1 === 0 || width_1 > 32 || match[1] !== String(width_1)) logger.throwArgumentError("invalid bytes width", "type", type);
|
|
1425
|
+
return function(value) {
|
|
1426
|
+
if ((0, bytes_1.arrayify)(value).length !== width_1) logger.throwArgumentError("invalid length for " + type, "value", value);
|
|
1427
|
+
return hexPadRight(value);
|
|
1428
|
+
};
|
|
1429
|
+
}
|
|
1430
|
+
switch (type) {
|
|
1431
|
+
case "address": return function(value) {
|
|
1432
|
+
return (0, bytes_1.hexZeroPad)((0, address_1.getAddress)(value), 32);
|
|
1433
|
+
};
|
|
1434
|
+
case "bool": return function(value) {
|
|
1435
|
+
return !value ? hexFalse : hexTrue;
|
|
1436
|
+
};
|
|
1437
|
+
case "bytes": return function(value) {
|
|
1438
|
+
return (0, keccak256_1.keccak256)(value);
|
|
1439
|
+
};
|
|
1440
|
+
case "string": return function(value) {
|
|
1441
|
+
return (0, id_1.id)(value);
|
|
1442
|
+
};
|
|
1443
|
+
}
|
|
1444
|
+
return null;
|
|
1445
|
+
}
|
|
1446
|
+
function encodeType(name, fields) {
|
|
1447
|
+
return name + "(" + fields.map(function(_a) {
|
|
1448
|
+
var name = _a.name;
|
|
1449
|
+
return _a.type + " " + name;
|
|
1450
|
+
}).join(",") + ")";
|
|
1451
|
+
}
|
|
1452
|
+
exports.TypedDataEncoder = function() {
|
|
1453
|
+
function TypedDataEncoder(types) {
|
|
1454
|
+
(0, properties_1.defineReadOnly)(this, "types", Object.freeze((0, properties_1.deepCopy)(types)));
|
|
1455
|
+
(0, properties_1.defineReadOnly)(this, "_encoderCache", {});
|
|
1456
|
+
(0, properties_1.defineReadOnly)(this, "_types", {});
|
|
1457
|
+
var links = {};
|
|
1458
|
+
var parents = {};
|
|
1459
|
+
var subtypes = {};
|
|
1460
|
+
Object.keys(types).forEach(function(type) {
|
|
1461
|
+
links[type] = {};
|
|
1462
|
+
parents[type] = [];
|
|
1463
|
+
subtypes[type] = {};
|
|
1464
|
+
});
|
|
1465
|
+
var _loop_1 = function(name_1) {
|
|
1466
|
+
var uniqueNames = {};
|
|
1467
|
+
types[name_1].forEach(function(field) {
|
|
1468
|
+
if (uniqueNames[field.name]) logger.throwArgumentError("duplicate variable name " + JSON.stringify(field.name) + " in " + JSON.stringify(name_1), "types", types);
|
|
1469
|
+
uniqueNames[field.name] = true;
|
|
1470
|
+
var baseType = field.type.match(/^([^\x5b]*)(\x5b|$)/)[1];
|
|
1471
|
+
if (baseType === name_1) logger.throwArgumentError("circular type reference to " + JSON.stringify(baseType), "types", types);
|
|
1472
|
+
if (getBaseEncoder(baseType)) return;
|
|
1473
|
+
if (!parents[baseType]) logger.throwArgumentError("unknown type " + JSON.stringify(baseType), "types", types);
|
|
1474
|
+
parents[baseType].push(name_1);
|
|
1475
|
+
links[name_1][baseType] = true;
|
|
1476
|
+
});
|
|
1477
|
+
};
|
|
1478
|
+
for (var name_1 in types) _loop_1(name_1);
|
|
1479
|
+
var primaryTypes = Object.keys(parents).filter(function(n) {
|
|
1480
|
+
return parents[n].length === 0;
|
|
1481
|
+
});
|
|
1482
|
+
if (primaryTypes.length === 0) logger.throwArgumentError("missing primary type", "types", types);
|
|
1483
|
+
else if (primaryTypes.length > 1) logger.throwArgumentError("ambiguous primary types or unused types: " + primaryTypes.map(function(t) {
|
|
1484
|
+
return JSON.stringify(t);
|
|
1485
|
+
}).join(", "), "types", types);
|
|
1486
|
+
(0, properties_1.defineReadOnly)(this, "primaryType", primaryTypes[0]);
|
|
1487
|
+
function checkCircular(type, found) {
|
|
1488
|
+
if (found[type]) logger.throwArgumentError("circular type reference to " + JSON.stringify(type), "types", types);
|
|
1489
|
+
found[type] = true;
|
|
1490
|
+
Object.keys(links[type]).forEach(function(child) {
|
|
1491
|
+
if (!parents[child]) return;
|
|
1492
|
+
checkCircular(child, found);
|
|
1493
|
+
Object.keys(found).forEach(function(subtype) {
|
|
1494
|
+
subtypes[subtype][child] = true;
|
|
1495
|
+
});
|
|
1496
|
+
});
|
|
1497
|
+
delete found[type];
|
|
1498
|
+
}
|
|
1499
|
+
checkCircular(this.primaryType, {});
|
|
1500
|
+
for (var name_2 in subtypes) {
|
|
1501
|
+
var st = Object.keys(subtypes[name_2]);
|
|
1502
|
+
st.sort();
|
|
1503
|
+
this._types[name_2] = encodeType(name_2, types[name_2]) + st.map(function(t) {
|
|
1504
|
+
return encodeType(t, types[t]);
|
|
1505
|
+
}).join("");
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
TypedDataEncoder.prototype.getEncoder = function(type) {
|
|
1509
|
+
var encoder = this._encoderCache[type];
|
|
1510
|
+
if (!encoder) encoder = this._encoderCache[type] = this._getEncoder(type);
|
|
1511
|
+
return encoder;
|
|
1512
|
+
};
|
|
1513
|
+
TypedDataEncoder.prototype._getEncoder = function(type) {
|
|
1514
|
+
var _this = this;
|
|
1515
|
+
var encoder = getBaseEncoder(type);
|
|
1516
|
+
if (encoder) return encoder;
|
|
1517
|
+
var match = type.match(/^(.*)(\x5b(\d*)\x5d)$/);
|
|
1518
|
+
if (match) {
|
|
1519
|
+
var subtype_1 = match[1];
|
|
1520
|
+
var subEncoder_1 = this.getEncoder(subtype_1);
|
|
1521
|
+
var length_1 = parseInt(match[3]);
|
|
1522
|
+
return function(value) {
|
|
1523
|
+
if (length_1 >= 0 && value.length !== length_1) logger.throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", value);
|
|
1524
|
+
var result = value.map(subEncoder_1);
|
|
1525
|
+
if (_this._types[subtype_1]) result = result.map(keccak256_1.keccak256);
|
|
1526
|
+
return (0, keccak256_1.keccak256)((0, bytes_1.hexConcat)(result));
|
|
1527
|
+
};
|
|
1528
|
+
}
|
|
1529
|
+
var fields = this.types[type];
|
|
1530
|
+
if (fields) {
|
|
1531
|
+
var encodedType_1 = (0, id_1.id)(this._types[type]);
|
|
1532
|
+
return function(value) {
|
|
1533
|
+
var values = fields.map(function(_a) {
|
|
1534
|
+
var name = _a.name, type = _a.type;
|
|
1535
|
+
var result = _this.getEncoder(type)(value[name]);
|
|
1536
|
+
if (_this._types[type]) return (0, keccak256_1.keccak256)(result);
|
|
1537
|
+
return result;
|
|
1538
|
+
});
|
|
1539
|
+
values.unshift(encodedType_1);
|
|
1540
|
+
return (0, bytes_1.hexConcat)(values);
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
return logger.throwArgumentError("unknown type: " + type, "type", type);
|
|
1544
|
+
};
|
|
1545
|
+
TypedDataEncoder.prototype.encodeType = function(name) {
|
|
1546
|
+
var result = this._types[name];
|
|
1547
|
+
if (!result) logger.throwArgumentError("unknown type: " + JSON.stringify(name), "name", name);
|
|
1548
|
+
return result;
|
|
1549
|
+
};
|
|
1550
|
+
TypedDataEncoder.prototype.encodeData = function(type, value) {
|
|
1551
|
+
return this.getEncoder(type)(value);
|
|
1552
|
+
};
|
|
1553
|
+
TypedDataEncoder.prototype.hashStruct = function(name, value) {
|
|
1554
|
+
return (0, keccak256_1.keccak256)(this.encodeData(name, value));
|
|
1555
|
+
};
|
|
1556
|
+
TypedDataEncoder.prototype.encode = function(value) {
|
|
1557
|
+
return this.encodeData(this.primaryType, value);
|
|
1558
|
+
};
|
|
1559
|
+
TypedDataEncoder.prototype.hash = function(value) {
|
|
1560
|
+
return this.hashStruct(this.primaryType, value);
|
|
1561
|
+
};
|
|
1562
|
+
TypedDataEncoder.prototype._visit = function(type, value, callback) {
|
|
1563
|
+
var _this = this;
|
|
1564
|
+
if (getBaseEncoder(type)) return callback(type, value);
|
|
1565
|
+
var match = type.match(/^(.*)(\x5b(\d*)\x5d)$/);
|
|
1566
|
+
if (match) {
|
|
1567
|
+
var subtype_2 = match[1];
|
|
1568
|
+
var length_2 = parseInt(match[3]);
|
|
1569
|
+
if (length_2 >= 0 && value.length !== length_2) logger.throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", value);
|
|
1570
|
+
return value.map(function(v) {
|
|
1571
|
+
return _this._visit(subtype_2, v, callback);
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
var fields = this.types[type];
|
|
1575
|
+
if (fields) return fields.reduce(function(accum, _a) {
|
|
1576
|
+
var name = _a.name, type = _a.type;
|
|
1577
|
+
accum[name] = _this._visit(type, value[name], callback);
|
|
1578
|
+
return accum;
|
|
1579
|
+
}, {});
|
|
1580
|
+
return logger.throwArgumentError("unknown type: " + type, "type", type);
|
|
1581
|
+
};
|
|
1582
|
+
TypedDataEncoder.prototype.visit = function(value, callback) {
|
|
1583
|
+
return this._visit(this.primaryType, value, callback);
|
|
1584
|
+
};
|
|
1585
|
+
TypedDataEncoder.from = function(types) {
|
|
1586
|
+
return new TypedDataEncoder(types);
|
|
1587
|
+
};
|
|
1588
|
+
TypedDataEncoder.getPrimaryType = function(types) {
|
|
1589
|
+
return TypedDataEncoder.from(types).primaryType;
|
|
1590
|
+
};
|
|
1591
|
+
TypedDataEncoder.hashStruct = function(name, types, value) {
|
|
1592
|
+
return TypedDataEncoder.from(types).hashStruct(name, value);
|
|
1593
|
+
};
|
|
1594
|
+
TypedDataEncoder.hashDomain = function(domain) {
|
|
1595
|
+
var domainFields = [];
|
|
1596
|
+
for (var name_3 in domain) {
|
|
1597
|
+
var type = domainFieldTypes[name_3];
|
|
1598
|
+
if (!type) logger.throwArgumentError("invalid typed-data domain key: " + JSON.stringify(name_3), "domain", domain);
|
|
1599
|
+
domainFields.push({
|
|
1600
|
+
name: name_3,
|
|
1601
|
+
type
|
|
1602
|
+
});
|
|
1603
|
+
}
|
|
1604
|
+
domainFields.sort(function(a, b) {
|
|
1605
|
+
return domainFieldNames.indexOf(a.name) - domainFieldNames.indexOf(b.name);
|
|
1606
|
+
});
|
|
1607
|
+
return TypedDataEncoder.hashStruct("EIP712Domain", { EIP712Domain: domainFields }, domain);
|
|
1608
|
+
};
|
|
1609
|
+
TypedDataEncoder.encode = function(domain, types, value) {
|
|
1610
|
+
return (0, bytes_1.hexConcat)([
|
|
1611
|
+
"0x1901",
|
|
1612
|
+
TypedDataEncoder.hashDomain(domain),
|
|
1613
|
+
TypedDataEncoder.from(types).hash(value)
|
|
1614
|
+
]);
|
|
1615
|
+
};
|
|
1616
|
+
TypedDataEncoder.hash = function(domain, types, value) {
|
|
1617
|
+
return (0, keccak256_1.keccak256)(TypedDataEncoder.encode(domain, types, value));
|
|
1618
|
+
};
|
|
1619
|
+
TypedDataEncoder.resolveNames = function(domain, types, value, resolveName) {
|
|
1620
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
1621
|
+
var ensCache, encoder, _a, _b, _i, name_4, _c, _d;
|
|
1622
|
+
return __generator(this, function(_e) {
|
|
1623
|
+
switch (_e.label) {
|
|
1624
|
+
case 0:
|
|
1625
|
+
domain = (0, properties_1.shallowCopy)(domain);
|
|
1626
|
+
ensCache = {};
|
|
1627
|
+
if (domain.verifyingContract && !(0, bytes_1.isHexString)(domain.verifyingContract, 20)) ensCache[domain.verifyingContract] = "0x";
|
|
1628
|
+
encoder = TypedDataEncoder.from(types);
|
|
1629
|
+
encoder.visit(value, function(type, value) {
|
|
1630
|
+
if (type === "address" && !(0, bytes_1.isHexString)(value, 20)) ensCache[value] = "0x";
|
|
1631
|
+
return value;
|
|
1632
|
+
});
|
|
1633
|
+
_a = [];
|
|
1634
|
+
for (_b in ensCache) _a.push(_b);
|
|
1635
|
+
_i = 0;
|
|
1636
|
+
_e.label = 1;
|
|
1637
|
+
case 1:
|
|
1638
|
+
if (!(_i < _a.length)) return [3, 4];
|
|
1639
|
+
name_4 = _a[_i];
|
|
1640
|
+
_c = ensCache;
|
|
1641
|
+
_d = name_4;
|
|
1642
|
+
return [4, resolveName(name_4)];
|
|
1643
|
+
case 2:
|
|
1644
|
+
_c[_d] = _e.sent();
|
|
1645
|
+
_e.label = 3;
|
|
1646
|
+
case 3:
|
|
1647
|
+
_i++;
|
|
1648
|
+
return [3, 1];
|
|
1649
|
+
case 4:
|
|
1650
|
+
if (domain.verifyingContract && ensCache[domain.verifyingContract]) domain.verifyingContract = ensCache[domain.verifyingContract];
|
|
1651
|
+
value = encoder.visit(value, function(type, value) {
|
|
1652
|
+
if (type === "address" && ensCache[value]) return ensCache[value];
|
|
1653
|
+
return value;
|
|
1654
|
+
});
|
|
1655
|
+
return [2, {
|
|
1656
|
+
domain,
|
|
1657
|
+
value
|
|
1658
|
+
}];
|
|
1659
|
+
}
|
|
1660
|
+
});
|
|
1661
|
+
});
|
|
1662
|
+
};
|
|
1663
|
+
TypedDataEncoder.getPayload = function(domain, types, value) {
|
|
1664
|
+
TypedDataEncoder.hashDomain(domain);
|
|
1665
|
+
var domainValues = {};
|
|
1666
|
+
var domainTypes = [];
|
|
1667
|
+
domainFieldNames.forEach(function(name) {
|
|
1668
|
+
var value = domain[name];
|
|
1669
|
+
if (value == null) return;
|
|
1670
|
+
domainValues[name] = domainChecks[name](value);
|
|
1671
|
+
domainTypes.push({
|
|
1672
|
+
name,
|
|
1673
|
+
type: domainFieldTypes[name]
|
|
1674
|
+
});
|
|
1675
|
+
});
|
|
1676
|
+
var encoder = TypedDataEncoder.from(types);
|
|
1677
|
+
var typesWithDomain = (0, properties_1.shallowCopy)(types);
|
|
1678
|
+
if (typesWithDomain.EIP712Domain) logger.throwArgumentError("types must not contain EIP712Domain type", "types.EIP712Domain", types);
|
|
1679
|
+
else typesWithDomain.EIP712Domain = domainTypes;
|
|
1680
|
+
encoder.encode(value);
|
|
1681
|
+
return {
|
|
1682
|
+
types: typesWithDomain,
|
|
1683
|
+
domain: domainValues,
|
|
1684
|
+
primaryType: encoder.primaryType,
|
|
1685
|
+
message: encoder.visit(value, function(type, value) {
|
|
1686
|
+
if (type.match(/^bytes(\d*)/)) return (0, bytes_1.hexlify)((0, bytes_1.arrayify)(value));
|
|
1687
|
+
if (type.match(/^u?int/)) return bignumber_1.BigNumber.from(value).toString();
|
|
1688
|
+
switch (type) {
|
|
1689
|
+
case "address": return value.toLowerCase();
|
|
1690
|
+
case "bool": return !!value;
|
|
1691
|
+
case "string":
|
|
1692
|
+
if (typeof value !== "string") logger.throwArgumentError("invalid string", "value", value);
|
|
1693
|
+
return value;
|
|
1694
|
+
}
|
|
1695
|
+
return logger.throwArgumentError("unsupported type", "type", type);
|
|
1696
|
+
})
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1699
|
+
return TypedDataEncoder;
|
|
1700
|
+
}();
|
|
1701
|
+
}));
|
|
1702
|
+
//#endregion
|
|
1703
|
+
//#region ../../node_modules/.pnpm/@ethersproject+hash@5.8.0/node_modules/@ethersproject/hash/lib/index.js
|
|
1704
|
+
var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1705
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1706
|
+
exports._TypedDataEncoder = exports.hashMessage = exports.messagePrefix = exports.ensNormalize = exports.isValidName = exports.namehash = exports.dnsEncode = exports.id = void 0;
|
|
1707
|
+
var id_1 = require_id();
|
|
1708
|
+
Object.defineProperty(exports, "id", {
|
|
1709
|
+
enumerable: true,
|
|
1710
|
+
get: function() {
|
|
1711
|
+
return id_1.id;
|
|
1712
|
+
}
|
|
1713
|
+
});
|
|
1714
|
+
var namehash_1 = require_namehash();
|
|
1715
|
+
Object.defineProperty(exports, "dnsEncode", {
|
|
1716
|
+
enumerable: true,
|
|
1717
|
+
get: function() {
|
|
1718
|
+
return namehash_1.dnsEncode;
|
|
1719
|
+
}
|
|
1720
|
+
});
|
|
1721
|
+
Object.defineProperty(exports, "isValidName", {
|
|
1722
|
+
enumerable: true,
|
|
1723
|
+
get: function() {
|
|
1724
|
+
return namehash_1.isValidName;
|
|
1725
|
+
}
|
|
1726
|
+
});
|
|
1727
|
+
Object.defineProperty(exports, "namehash", {
|
|
1728
|
+
enumerable: true,
|
|
1729
|
+
get: function() {
|
|
1730
|
+
return namehash_1.namehash;
|
|
1731
|
+
}
|
|
1732
|
+
});
|
|
1733
|
+
var message_1 = require_message();
|
|
1734
|
+
Object.defineProperty(exports, "hashMessage", {
|
|
1735
|
+
enumerable: true,
|
|
1736
|
+
get: function() {
|
|
1737
|
+
return message_1.hashMessage;
|
|
1738
|
+
}
|
|
1739
|
+
});
|
|
1740
|
+
Object.defineProperty(exports, "messagePrefix", {
|
|
1741
|
+
enumerable: true,
|
|
1742
|
+
get: function() {
|
|
1743
|
+
return message_1.messagePrefix;
|
|
1744
|
+
}
|
|
1745
|
+
});
|
|
1746
|
+
var namehash_2 = require_namehash();
|
|
1747
|
+
Object.defineProperty(exports, "ensNormalize", {
|
|
1748
|
+
enumerable: true,
|
|
1749
|
+
get: function() {
|
|
1750
|
+
return namehash_2.ensNormalize;
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
var typed_data_1 = require_typed_data();
|
|
1754
|
+
Object.defineProperty(exports, "_TypedDataEncoder", {
|
|
1755
|
+
enumerable: true,
|
|
1756
|
+
get: function() {
|
|
1757
|
+
return typed_data_1.TypedDataEncoder;
|
|
1758
|
+
}
|
|
1759
|
+
});
|
|
1760
|
+
}));
|
|
1761
|
+
//#endregion
|
|
1762
|
+
export { require_lib$2 as n, require_lib$3 as r, require_lib as t };
|
|
1763
|
+
|
|
1764
|
+
//# sourceMappingURL=lib-C8ENT9j6.mjs.map
|