@storm-software/git-tools 2.90.0 → 2.93.2
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 +1 -1
- package/bin/{chunk-VOJH3O6K.cjs → chunk-3UT6TDEW.cjs} +40 -40
- package/bin/{chunk-ZEYLUM4B.js → chunk-5DQLXYW4.js} +11 -4
- package/bin/{chunk-7JKZEVN7.js → chunk-7YMEJUZZ.js} +2 -2
- package/bin/{chunk-S3A47QIS.js → chunk-AHBDLTUH.js} +2 -2
- package/bin/{chunk-P7LQIJOK.js → chunk-CEGMBYVC.js} +2 -2
- package/bin/{chunk-NTA62AN7.cjs → chunk-DF4PCEB5.cjs} +3516 -3664
- package/bin/{chunk-4EXZWKXK.cjs → chunk-E5L4GNGP.cjs} +138 -138
- package/bin/{chunk-2I5IZB7I.js → chunk-GJHKN47J.js} +1 -1
- package/bin/{chunk-UZIBTESG.js → chunk-GUC6JFRI.js} +1 -1
- package/bin/{chunk-V65N3PBL.js → chunk-JXRAX4SP.js} +2 -2
- package/bin/{chunk-7FWXX5NN.cjs → chunk-KGTS6GV6.cjs} +3 -3
- package/bin/{chunk-4GTGG7FG.cjs → chunk-MGHHP7QE.cjs} +11 -11
- package/bin/{chunk-F6YMONH3.cjs → chunk-OXE57VZF.cjs} +162 -155
- package/bin/{chunk-EVP6BIDZ.cjs → chunk-Q3AHBZHL.cjs} +2 -2
- package/bin/{chunk-EE6YDWP4.cjs → chunk-Q53NG7LB.cjs} +44 -44
- package/bin/{chunk-D7E6FHYG.cjs → chunk-QGPJPPMC.cjs} +32 -32
- package/bin/{chunk-P2UJ7X76.cjs → chunk-TPCIOLK7.cjs} +4 -4
- package/bin/{chunk-PRYU3CEH.js → chunk-UBWFQPNH.js} +2 -2
- package/bin/{chunk-F5UAXEVI.js → chunk-VG4O4EQL.js} +1314 -1462
- package/bin/{chunk-CZZS5O6X.js → chunk-VKYGLTCI.js} +1 -1
- package/bin/{chunk-W4EY6QRJ.cjs → chunk-XUWCKCJC.cjs} +388 -388
- package/bin/{chunk-TYQRCC7E.js → chunk-YZBTQ4IC.js} +2 -2
- package/bin/{dist-EX76TC3D.js → dist-GADH6PW2.js} +8 -8
- package/bin/{dist-MDJEMGZH.cjs → dist-JA47BU7X.cjs} +1038 -1038
- package/bin/{esm-SEHCMT4E.cjs → esm-JW6D2KJK.cjs} +46 -46
- package/bin/{esm-UXKHSPHY.js → esm-UHX254WJ.js} +1 -1
- package/bin/git.cjs +3930 -3930
- package/bin/git.js +89 -89
- package/bin/json5-J7SQ5PU5.js +10 -0
- package/bin/json5-M4UXEUCA.cjs +10 -0
- package/bin/jsonc-OUBNXY2K.cjs +15 -0
- package/bin/{jsonc-TLFMS47G.js → jsonc-RSBF4WNG.js} +3 -3
- package/bin/{multipart-parser-S4YB5ALJ.cjs → multipart-parser-2INLPZP4.cjs} +11 -11
- package/bin/{multipart-parser-KCGB6E6J.js → multipart-parser-3YKLT75O.js} +2 -2
- package/bin/post-checkout.cjs +22 -22
- package/bin/post-checkout.js +10 -10
- package/bin/post-commit.cjs +22 -22
- package/bin/post-commit.js +10 -10
- package/bin/post-merge.cjs +22 -22
- package/bin/post-merge.js +10 -10
- package/bin/pre-commit.cjs +20 -20
- package/bin/pre-commit.js +9 -9
- package/bin/pre-install.cjs +19 -19
- package/bin/pre-install.js +9 -9
- package/bin/pre-push.cjs +27 -27
- package/bin/pre-push.js +10 -10
- package/bin/prepare.cjs +17 -17
- package/bin/prepare.js +9 -9
- package/bin/toml-3DSPD242.cjs +10 -0
- package/bin/toml-5URN5UOS.js +10 -0
- package/bin/version-warning.cjs +15 -15
- package/bin/version-warning.js +9 -9
- package/bin/yaml-IO4WZQRD.cjs +10 -0
- package/bin/yaml-L5V6OFSX.js +10 -0
- package/package.json +3 -3
- package/bin/json5-E6MR7H4J.cjs +0 -10
- package/bin/json5-HE6DANEW.js +0 -10
- package/bin/jsonc-CWW22DWU.cjs +0 -15
- package/bin/toml-PO23EX2W.js +0 -10
- package/bin/toml-TV5QPP5J.cjs +0 -10
- package/bin/yaml-NB7XNCSN.js +0 -10
- package/bin/yaml-WOAAZHQN.cjs +0 -10
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkQ53NG7LBcjs = require('./chunk-Q53NG7LB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQ3AHBZHLcjs = require('./chunk-Q3AHBZHL.cjs');
|
|
9
9
|
|
|
10
|
-
// ../../node_modules/.pnpm/pathe@2.0.
|
|
11
|
-
|
|
10
|
+
// ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.mjs
|
|
11
|
+
_chunkQ3AHBZHLcjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
|
|
13
|
-
// ../../node_modules/.pnpm/pathe@2.0.
|
|
14
|
-
|
|
13
|
+
// ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
14
|
+
_chunkQ3AHBZHLcjs.init_cjs_shims.call(void 0, );
|
|
15
15
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
16
16
|
function normalizeWindowsPath(input = "") {
|
|
17
17
|
if (!input) {
|
|
@@ -19,12 +19,13 @@ function normalizeWindowsPath(input = "") {
|
|
|
19
19
|
}
|
|
20
20
|
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r2) => r2.toUpperCase());
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath");
|
|
23
23
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
24
24
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
25
25
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
26
26
|
var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
27
|
-
var
|
|
27
|
+
var _EXTNAME_RE = /.(\.[^./]+|\.)$/;
|
|
28
|
+
var normalize = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function(path2) {
|
|
28
29
|
if (path2.length === 0) {
|
|
29
30
|
return ".";
|
|
30
31
|
}
|
|
@@ -53,7 +54,7 @@ var normalize = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function(p
|
|
|
53
54
|
}
|
|
54
55
|
return isPathAbsolute && !isAbsolute(path2) ? `/${path2}` : path2;
|
|
55
56
|
}, "normalize");
|
|
56
|
-
var join = /* @__PURE__ */
|
|
57
|
+
var join = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function(...segments) {
|
|
57
58
|
let path2 = "";
|
|
58
59
|
for (const seg of segments) {
|
|
59
60
|
if (!seg) {
|
|
@@ -80,8 +81,8 @@ function cwd() {
|
|
|
80
81
|
}
|
|
81
82
|
return "/";
|
|
82
83
|
}
|
|
83
|
-
|
|
84
|
-
var resolve = /* @__PURE__ */
|
|
84
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, cwd, "cwd");
|
|
85
|
+
var resolve = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function(...arguments_) {
|
|
85
86
|
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
86
87
|
let resolvedPath = "";
|
|
87
88
|
let resolvedAbsolute = false;
|
|
@@ -159,11 +160,16 @@ function normalizeString(path2, allowAboveRoot) {
|
|
|
159
160
|
}
|
|
160
161
|
return res;
|
|
161
162
|
}
|
|
162
|
-
|
|
163
|
-
var isAbsolute = /* @__PURE__ */
|
|
163
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, normalizeString, "normalizeString");
|
|
164
|
+
var isAbsolute = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function(p) {
|
|
164
165
|
return _IS_ABSOLUTE_RE.test(p);
|
|
165
166
|
}, "isAbsolute");
|
|
166
|
-
var
|
|
167
|
+
var extname = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function(p) {
|
|
168
|
+
if (p === "..") return "";
|
|
169
|
+
const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
|
|
170
|
+
return match && match[1] || "";
|
|
171
|
+
}, "extname");
|
|
172
|
+
var relative = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function(from, to) {
|
|
167
173
|
const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
168
174
|
const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
169
175
|
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
|
|
@@ -179,14 +185,14 @@ var relative = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function(fr
|
|
|
179
185
|
}
|
|
180
186
|
return [..._from.map(() => ".."), ..._to].join("/");
|
|
181
187
|
}, "relative");
|
|
182
|
-
var dirname = /* @__PURE__ */
|
|
188
|
+
var dirname = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function(p) {
|
|
183
189
|
const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
|
|
184
190
|
if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
|
|
185
191
|
segments[0] += "/";
|
|
186
192
|
}
|
|
187
193
|
return segments.join("/") || (isAbsolute(p) ? "/" : ".");
|
|
188
194
|
}, "dirname");
|
|
189
|
-
var basename = /* @__PURE__ */
|
|
195
|
+
var basename = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function(p, extension) {
|
|
190
196
|
const segments = normalizeWindowsPath(p).split("/");
|
|
191
197
|
let lastSegment = "";
|
|
192
198
|
for (let i = segments.length - 1; i >= 0; i--) {
|
|
@@ -200,7 +206,7 @@ var basename = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function(p,
|
|
|
200
206
|
}, "basename");
|
|
201
207
|
|
|
202
208
|
// ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
203
|
-
|
|
209
|
+
_chunkQ3AHBZHLcjs.init_cjs_shims.call(void 0, );
|
|
204
210
|
function isPlainObject(value) {
|
|
205
211
|
if (value === null || typeof value !== "object") {
|
|
206
212
|
return false;
|
|
@@ -217,7 +223,7 @@ function isPlainObject(value) {
|
|
|
217
223
|
}
|
|
218
224
|
return true;
|
|
219
225
|
}
|
|
220
|
-
|
|
226
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isPlainObject, "isPlainObject");
|
|
221
227
|
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
222
228
|
if (!isPlainObject(defaults)) {
|
|
223
229
|
return _defu(baseObject, {}, namespace, merger);
|
|
@@ -249,14 +255,14 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
249
255
|
}
|
|
250
256
|
return object;
|
|
251
257
|
}
|
|
252
|
-
|
|
258
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, _defu, "_defu");
|
|
253
259
|
function createDefu(merger) {
|
|
254
260
|
return (...arguments_) => (
|
|
255
261
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
256
262
|
arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
|
|
257
263
|
);
|
|
258
264
|
}
|
|
259
|
-
|
|
265
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, createDefu, "createDefu");
|
|
260
266
|
var defu = createDefu();
|
|
261
267
|
var defuFn = createDefu((object, key, currentValue) => {
|
|
262
268
|
if (object[key] !== void 0 && typeof currentValue === "function") {
|
|
@@ -272,7 +278,7 @@ var defuArrayFn = createDefu((object, key, currentValue) => {
|
|
|
272
278
|
});
|
|
273
279
|
|
|
274
280
|
// ../../node_modules/.pnpm/ufo@1.5.4/node_modules/ufo/dist/index.mjs
|
|
275
|
-
|
|
281
|
+
_chunkQ3AHBZHLcjs.init_cjs_shims.call(void 0, );
|
|
276
282
|
var r = String.fromCharCode;
|
|
277
283
|
var TRAILING_SLASH_RE = /\/$|\/\?|\/#/;
|
|
278
284
|
var JOIN_LEADING_SLASH_RE = /^\.?\//;
|
|
@@ -282,7 +288,7 @@ function hasTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
282
288
|
}
|
|
283
289
|
return TRAILING_SLASH_RE.test(input);
|
|
284
290
|
}
|
|
285
|
-
|
|
291
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, hasTrailingSlash, "hasTrailingSlash");
|
|
286
292
|
function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
287
293
|
if (!respectQueryAndFragment) {
|
|
288
294
|
return input.endsWith("/") ? input : input + "/";
|
|
@@ -303,11 +309,11 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
303
309
|
const [s0, ...s] = path2.split("?");
|
|
304
310
|
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
305
311
|
}
|
|
306
|
-
|
|
312
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, withTrailingSlash, "withTrailingSlash");
|
|
307
313
|
function isNonEmptyURL(url) {
|
|
308
314
|
return url && url !== "/";
|
|
309
315
|
}
|
|
310
|
-
|
|
316
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isNonEmptyURL, "isNonEmptyURL");
|
|
311
317
|
function joinURL(base, ...input) {
|
|
312
318
|
let url = base || "";
|
|
313
319
|
for (const segment of input.filter((url2) => isNonEmptyURL(url2))) {
|
|
@@ -320,18 +326,18 @@ function joinURL(base, ...input) {
|
|
|
320
326
|
}
|
|
321
327
|
return url;
|
|
322
328
|
}
|
|
323
|
-
|
|
329
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, joinURL, "joinURL");
|
|
324
330
|
var protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
325
331
|
|
|
326
332
|
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
327
|
-
|
|
333
|
+
_chunkQ3AHBZHLcjs.init_cjs_shims.call(void 0, );
|
|
328
334
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
329
335
|
|
|
330
336
|
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
331
|
-
|
|
337
|
+
_chunkQ3AHBZHLcjs.init_cjs_shims.call(void 0, );
|
|
332
338
|
|
|
333
339
|
// ../../node_modules/.pnpm/acorn@8.14.0/node_modules/acorn/dist/acorn.mjs
|
|
334
|
-
|
|
340
|
+
_chunkQ3AHBZHLcjs.init_cjs_shims.call(void 0, );
|
|
335
341
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
336
342
|
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
|
|
337
343
|
var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
|
|
@@ -366,7 +372,7 @@ function isInAstralSet(code, set) {
|
|
|
366
372
|
}
|
|
367
373
|
return false;
|
|
368
374
|
}
|
|
369
|
-
|
|
375
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isInAstralSet, "isInAstralSet");
|
|
370
376
|
function isIdentifierStart(code, astral) {
|
|
371
377
|
if (code < 65) {
|
|
372
378
|
return code === 36;
|
|
@@ -388,7 +394,7 @@ function isIdentifierStart(code, astral) {
|
|
|
388
394
|
}
|
|
389
395
|
return isInAstralSet(code, astralIdentifierStartCodes);
|
|
390
396
|
}
|
|
391
|
-
|
|
397
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isIdentifierStart, "isIdentifierStart");
|
|
392
398
|
function isIdentifierChar(code, astral) {
|
|
393
399
|
if (code < 48) {
|
|
394
400
|
return code === 36;
|
|
@@ -416,8 +422,8 @@ function isIdentifierChar(code, astral) {
|
|
|
416
422
|
}
|
|
417
423
|
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
418
424
|
}
|
|
419
|
-
|
|
420
|
-
var TokenType = /* @__PURE__ */
|
|
425
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isIdentifierChar, "isIdentifierChar");
|
|
426
|
+
var TokenType = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function TokenType2(label, conf) {
|
|
421
427
|
if (conf === void 0) conf = {};
|
|
422
428
|
this.label = label;
|
|
423
429
|
this.keyword = conf.keyword;
|
|
@@ -433,7 +439,7 @@ var TokenType = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function T
|
|
|
433
439
|
function binop(name, prec) {
|
|
434
440
|
return new TokenType(name, { beforeExpr: true, binop: prec });
|
|
435
441
|
}
|
|
436
|
-
|
|
442
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, binop, "binop");
|
|
437
443
|
var beforeExpr = { beforeExpr: true };
|
|
438
444
|
var startsExpr = { startsExpr: true };
|
|
439
445
|
var keywords = {};
|
|
@@ -442,7 +448,7 @@ function kw(name, options) {
|
|
|
442
448
|
options.keyword = name;
|
|
443
449
|
return keywords[name] = new TokenType(name, options);
|
|
444
450
|
}
|
|
445
|
-
|
|
451
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, kw, "kw");
|
|
446
452
|
var types$1 = {
|
|
447
453
|
num: new TokenType("num", startsExpr),
|
|
448
454
|
regexp: new TokenType("regexp", startsExpr),
|
|
@@ -542,7 +548,7 @@ var lineBreakG = new RegExp(lineBreak.source, "g");
|
|
|
542
548
|
function isNewLine(code) {
|
|
543
549
|
return code === 10 || code === 13 || code === 8232 || code === 8233;
|
|
544
550
|
}
|
|
545
|
-
|
|
551
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isNewLine, "isNewLine");
|
|
546
552
|
function nextLineBreak(code, from, end) {
|
|
547
553
|
if (end === void 0) end = code.length;
|
|
548
554
|
for (var i = from; i < end; i++) {
|
|
@@ -553,7 +559,7 @@ function nextLineBreak(code, from, end) {
|
|
|
553
559
|
}
|
|
554
560
|
return -1;
|
|
555
561
|
}
|
|
556
|
-
|
|
562
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, nextLineBreak, "nextLineBreak");
|
|
557
563
|
var nonASCIIwhitespace = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
558
564
|
var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
559
565
|
var ref = Object.prototype;
|
|
@@ -569,7 +575,7 @@ var regexpCache = /* @__PURE__ */ Object.create(null);
|
|
|
569
575
|
function wordsRegexp(words) {
|
|
570
576
|
return regexpCache[words] || (regexpCache[words] = new RegExp("^(?:" + words.replace(/ /g, "|") + ")$"));
|
|
571
577
|
}
|
|
572
|
-
|
|
578
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, wordsRegexp, "wordsRegexp");
|
|
573
579
|
function codePointToString(code) {
|
|
574
580
|
if (code <= 65535) {
|
|
575
581
|
return String.fromCharCode(code);
|
|
@@ -577,16 +583,16 @@ function codePointToString(code) {
|
|
|
577
583
|
code -= 65536;
|
|
578
584
|
return String.fromCharCode((code >> 10) + 55296, (code & 1023) + 56320);
|
|
579
585
|
}
|
|
580
|
-
|
|
586
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, codePointToString, "codePointToString");
|
|
581
587
|
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
|
582
|
-
var Position = /* @__PURE__ */
|
|
588
|
+
var Position = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function Position2(line, col) {
|
|
583
589
|
this.line = line;
|
|
584
590
|
this.column = col;
|
|
585
591
|
}, "Position");
|
|
586
|
-
Position.prototype.offset = /* @__PURE__ */
|
|
592
|
+
Position.prototype.offset = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function offset(n) {
|
|
587
593
|
return new Position(this.line, this.column + n);
|
|
588
594
|
}, "offset");
|
|
589
|
-
var SourceLocation = /* @__PURE__ */
|
|
595
|
+
var SourceLocation = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function SourceLocation2(p, start, end) {
|
|
590
596
|
this.start = start;
|
|
591
597
|
this.end = end;
|
|
592
598
|
if (p.sourceFile !== null) {
|
|
@@ -603,7 +609,7 @@ function getLineInfo(input, offset2) {
|
|
|
603
609
|
cur = nextBreak;
|
|
604
610
|
}
|
|
605
611
|
}
|
|
606
|
-
|
|
612
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, getLineInfo, "getLineInfo");
|
|
607
613
|
var defaultOptions = {
|
|
608
614
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
|
609
615
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
|
@@ -735,7 +741,7 @@ function getOptions(opts) {
|
|
|
735
741
|
}
|
|
736
742
|
return options;
|
|
737
743
|
}
|
|
738
|
-
|
|
744
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, getOptions, "getOptions");
|
|
739
745
|
function pushComment(options, array) {
|
|
740
746
|
return function(block, text, start, end, startLoc, endLoc) {
|
|
741
747
|
var comment = {
|
|
@@ -753,7 +759,7 @@ function pushComment(options, array) {
|
|
|
753
759
|
array.push(comment);
|
|
754
760
|
};
|
|
755
761
|
}
|
|
756
|
-
|
|
762
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, pushComment, "pushComment");
|
|
757
763
|
var SCOPE_TOP = 1;
|
|
758
764
|
var SCOPE_FUNCTION = 2;
|
|
759
765
|
var SCOPE_ASYNC = 4;
|
|
@@ -767,14 +773,14 @@ var SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
|
|
767
773
|
function functionFlags(async, generator) {
|
|
768
774
|
return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0);
|
|
769
775
|
}
|
|
770
|
-
|
|
776
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, functionFlags, "functionFlags");
|
|
771
777
|
var BIND_NONE = 0;
|
|
772
778
|
var BIND_VAR = 1;
|
|
773
779
|
var BIND_LEXICAL = 2;
|
|
774
780
|
var BIND_FUNCTION = 3;
|
|
775
781
|
var BIND_SIMPLE_CATCH = 4;
|
|
776
782
|
var BIND_OUTSIDE = 5;
|
|
777
|
-
var Parser = /* @__PURE__ */
|
|
783
|
+
var Parser = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function Parser2(options, input, startPos) {
|
|
778
784
|
this.options = options = getOptions(options);
|
|
779
785
|
this.sourceFile = options.sourceFile;
|
|
780
786
|
this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);
|
|
@@ -823,7 +829,7 @@ var Parser = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function Pars
|
|
|
823
829
|
this.privateNameStack = [];
|
|
824
830
|
}, "Parser");
|
|
825
831
|
var prototypeAccessors = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, inClassStaticBlock: { configurable: true } };
|
|
826
|
-
Parser.prototype.parse = /* @__PURE__ */
|
|
832
|
+
Parser.prototype.parse = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function parse2() {
|
|
827
833
|
var node = this.options.program || this.startNode();
|
|
828
834
|
this.nextToken();
|
|
829
835
|
return this.parseTopLevel(node);
|
|
@@ -870,7 +876,7 @@ prototypeAccessors.allowNewDotTarget.get = function() {
|
|
|
870
876
|
prototypeAccessors.inClassStaticBlock.get = function() {
|
|
871
877
|
return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
|
|
872
878
|
};
|
|
873
|
-
Parser.extend = /* @__PURE__ */
|
|
879
|
+
Parser.extend = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function extend() {
|
|
874
880
|
var plugins = [], len = arguments.length;
|
|
875
881
|
while (len--) plugins[len] = arguments[len];
|
|
876
882
|
var cls = this;
|
|
@@ -879,15 +885,15 @@ Parser.extend = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function e
|
|
|
879
885
|
}
|
|
880
886
|
return cls;
|
|
881
887
|
}, "extend");
|
|
882
|
-
Parser.parse = /* @__PURE__ */
|
|
888
|
+
Parser.parse = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function parse3(input, options) {
|
|
883
889
|
return new this(options, input).parse();
|
|
884
890
|
}, "parse");
|
|
885
|
-
Parser.parseExpressionAt = /* @__PURE__ */
|
|
891
|
+
Parser.parseExpressionAt = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function parseExpressionAt(input, pos, options) {
|
|
886
892
|
var parser = new this(options, input, pos);
|
|
887
893
|
parser.nextToken();
|
|
888
894
|
return parser.parseExpression();
|
|
889
895
|
}, "parseExpressionAt");
|
|
890
|
-
Parser.tokenizer = /* @__PURE__ */
|
|
896
|
+
Parser.tokenizer = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function tokenizer(input, options) {
|
|
891
897
|
return new this(options, input);
|
|
892
898
|
}, "tokenizer");
|
|
893
899
|
Object.defineProperties(Parser.prototype, prototypeAccessors);
|
|
@@ -974,7 +980,7 @@ pp$9.expect = function(type) {
|
|
|
974
980
|
pp$9.unexpected = function(pos) {
|
|
975
981
|
this.raise(pos != null ? pos : this.start, "Unexpected token");
|
|
976
982
|
};
|
|
977
|
-
var DestructuringErrors = /* @__PURE__ */
|
|
983
|
+
var DestructuringErrors = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function DestructuringErrors2() {
|
|
978
984
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
979
985
|
}, "DestructuringErrors");
|
|
980
986
|
pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
|
|
@@ -1791,13 +1797,13 @@ function isPrivateNameConflicted(privateNameMap, element) {
|
|
|
1791
1797
|
return true;
|
|
1792
1798
|
}
|
|
1793
1799
|
}
|
|
1794
|
-
|
|
1800
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isPrivateNameConflicted, "isPrivateNameConflicted");
|
|
1795
1801
|
function checkKeyName(node, name) {
|
|
1796
1802
|
var computed = node.computed;
|
|
1797
1803
|
var key = node.key;
|
|
1798
1804
|
return !computed && (key.type === "Identifier" && key.name === name || key.type === "Literal" && key.value === name);
|
|
1799
1805
|
}
|
|
1800
|
-
|
|
1806
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, checkKeyName, "checkKeyName");
|
|
1801
1807
|
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
1802
1808
|
if (this.options.ecmaVersion >= 11) {
|
|
1803
1809
|
if (this.eatContextual("as")) {
|
|
@@ -2323,7 +2329,7 @@ pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {
|
|
|
2323
2329
|
this.checkLValPattern(expr, bindingType, checkClashes);
|
|
2324
2330
|
}
|
|
2325
2331
|
};
|
|
2326
|
-
var TokContext = /* @__PURE__ */
|
|
2332
|
+
var TokContext = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function TokContext2(token, isExpr, preserveSpace, override, generator) {
|
|
2327
2333
|
this.token = token;
|
|
2328
2334
|
this.isExpr = !!isExpr;
|
|
2329
2335
|
this.preserveSpace = !!preserveSpace;
|
|
@@ -2713,11 +2719,11 @@ pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forIni
|
|
|
2713
2719
|
function isLocalVariableAccess(node) {
|
|
2714
2720
|
return node.type === "Identifier" || node.type === "ParenthesizedExpression" && isLocalVariableAccess(node.expression);
|
|
2715
2721
|
}
|
|
2716
|
-
|
|
2722
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isLocalVariableAccess, "isLocalVariableAccess");
|
|
2717
2723
|
function isPrivateFieldAccess(node) {
|
|
2718
2724
|
return node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" || node.type === "ChainExpression" && isPrivateFieldAccess(node.expression) || node.type === "ParenthesizedExpression" && isPrivateFieldAccess(node.expression);
|
|
2719
2725
|
}
|
|
2720
|
-
|
|
2726
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isPrivateFieldAccess, "isPrivateFieldAccess");
|
|
2721
2727
|
pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {
|
|
2722
2728
|
var startPos = this.start, startLoc = this.startLoc;
|
|
2723
2729
|
var expr = this.parseExprAtom(refDestructuringErrors, forInit);
|
|
@@ -3529,7 +3535,7 @@ pp$4.curPosition = function() {
|
|
|
3529
3535
|
}
|
|
3530
3536
|
};
|
|
3531
3537
|
var pp$3 = Parser.prototype;
|
|
3532
|
-
var Scope = /* @__PURE__ */
|
|
3538
|
+
var Scope = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function Scope2(flags) {
|
|
3533
3539
|
this.flags = flags;
|
|
3534
3540
|
this.var = [];
|
|
3535
3541
|
this.lexical = [];
|
|
@@ -3609,7 +3615,7 @@ pp$3.currentThisScope = function() {
|
|
|
3609
3615
|
}
|
|
3610
3616
|
}
|
|
3611
3617
|
};
|
|
3612
|
-
var Node = /* @__PURE__ */
|
|
3618
|
+
var Node = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function Node2(parser, pos, loc) {
|
|
3613
3619
|
this.type = "";
|
|
3614
3620
|
this.start = pos;
|
|
3615
3621
|
this.end = 0;
|
|
@@ -3641,7 +3647,7 @@ function finishNodeAt(node, type, pos, loc) {
|
|
|
3641
3647
|
}
|
|
3642
3648
|
return node;
|
|
3643
3649
|
}
|
|
3644
|
-
|
|
3650
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, finishNodeAt, "finishNodeAt");
|
|
3645
3651
|
pp$2.finishNode = function(node, type) {
|
|
3646
3652
|
return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);
|
|
3647
3653
|
};
|
|
@@ -3709,7 +3715,7 @@ function buildUnicodeData(ecmaVersion) {
|
|
|
3709
3715
|
d2.nonBinary.sc = d2.nonBinary.Script;
|
|
3710
3716
|
d2.nonBinary.scx = d2.nonBinary.Script_Extensions;
|
|
3711
3717
|
}
|
|
3712
|
-
|
|
3718
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, buildUnicodeData, "buildUnicodeData");
|
|
3713
3719
|
for (i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) {
|
|
3714
3720
|
ecmaVersion = list[i];
|
|
3715
3721
|
buildUnicodeData(ecmaVersion);
|
|
@@ -3718,11 +3724,11 @@ var ecmaVersion;
|
|
|
3718
3724
|
var i;
|
|
3719
3725
|
var list;
|
|
3720
3726
|
var pp$1 = Parser.prototype;
|
|
3721
|
-
var BranchID = /* @__PURE__ */
|
|
3727
|
+
var BranchID = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function BranchID2(parent, base) {
|
|
3722
3728
|
this.parent = parent;
|
|
3723
3729
|
this.base = base || this;
|
|
3724
3730
|
}, "BranchID");
|
|
3725
|
-
BranchID.prototype.separatedFrom = /* @__PURE__ */
|
|
3731
|
+
BranchID.prototype.separatedFrom = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function separatedFrom(alt) {
|
|
3726
3732
|
for (var self = this; self; self = self.parent) {
|
|
3727
3733
|
for (var other = alt; other; other = other.parent) {
|
|
3728
3734
|
if (self.base === other.base && self !== other) {
|
|
@@ -3732,10 +3738,10 @@ BranchID.prototype.separatedFrom = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call
|
|
|
3732
3738
|
}
|
|
3733
3739
|
return false;
|
|
3734
3740
|
}, "separatedFrom");
|
|
3735
|
-
BranchID.prototype.sibling = /* @__PURE__ */
|
|
3741
|
+
BranchID.prototype.sibling = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function sibling() {
|
|
3736
3742
|
return new BranchID(this.parent, this.base);
|
|
3737
3743
|
}, "sibling");
|
|
3738
|
-
var RegExpValidationState = /* @__PURE__ */
|
|
3744
|
+
var RegExpValidationState = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function RegExpValidationState2(parser) {
|
|
3739
3745
|
this.parser = parser;
|
|
3740
3746
|
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
3741
3747
|
this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
@@ -3755,7 +3761,7 @@ var RegExpValidationState = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0
|
|
|
3755
3761
|
this.backReferenceNames = [];
|
|
3756
3762
|
this.branchID = null;
|
|
3757
3763
|
}, "RegExpValidationState");
|
|
3758
|
-
RegExpValidationState.prototype.reset = /* @__PURE__ */
|
|
3764
|
+
RegExpValidationState.prototype.reset = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function reset(start, pattern, flags) {
|
|
3759
3765
|
var unicodeSets = flags.indexOf("v") !== -1;
|
|
3760
3766
|
var unicode = flags.indexOf("u") !== -1;
|
|
3761
3767
|
this.start = start | 0;
|
|
@@ -3771,10 +3777,10 @@ RegExpValidationState.prototype.reset = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name
|
|
|
3771
3777
|
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
3772
3778
|
}
|
|
3773
3779
|
}, "reset");
|
|
3774
|
-
RegExpValidationState.prototype.raise = /* @__PURE__ */
|
|
3780
|
+
RegExpValidationState.prototype.raise = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function raise(message) {
|
|
3775
3781
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
3776
3782
|
}, "raise");
|
|
3777
|
-
RegExpValidationState.prototype.at = /* @__PURE__ */
|
|
3783
|
+
RegExpValidationState.prototype.at = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function at(i, forceU) {
|
|
3778
3784
|
if (forceU === void 0) forceU = false;
|
|
3779
3785
|
var s = this.source;
|
|
3780
3786
|
var l = s.length;
|
|
@@ -3788,7 +3794,7 @@ RegExpValidationState.prototype.at = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.ca
|
|
|
3788
3794
|
var next = s.charCodeAt(i + 1);
|
|
3789
3795
|
return next >= 56320 && next <= 57343 ? (c << 10) + next - 56613888 : c;
|
|
3790
3796
|
}, "at");
|
|
3791
|
-
RegExpValidationState.prototype.nextIndex = /* @__PURE__ */
|
|
3797
|
+
RegExpValidationState.prototype.nextIndex = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function nextIndex(i, forceU) {
|
|
3792
3798
|
if (forceU === void 0) forceU = false;
|
|
3793
3799
|
var s = this.source;
|
|
3794
3800
|
var l = s.length;
|
|
@@ -3801,19 +3807,19 @@ RegExpValidationState.prototype.nextIndex = /* @__PURE__ */ _chunkEVP6BIDZcjs.__
|
|
|
3801
3807
|
}
|
|
3802
3808
|
return i + 2;
|
|
3803
3809
|
}, "nextIndex");
|
|
3804
|
-
RegExpValidationState.prototype.current = /* @__PURE__ */
|
|
3810
|
+
RegExpValidationState.prototype.current = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function current(forceU) {
|
|
3805
3811
|
if (forceU === void 0) forceU = false;
|
|
3806
3812
|
return this.at(this.pos, forceU);
|
|
3807
3813
|
}, "current");
|
|
3808
|
-
RegExpValidationState.prototype.lookahead = /* @__PURE__ */
|
|
3814
|
+
RegExpValidationState.prototype.lookahead = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function lookahead(forceU) {
|
|
3809
3815
|
if (forceU === void 0) forceU = false;
|
|
3810
3816
|
return this.at(this.nextIndex(this.pos, forceU), forceU);
|
|
3811
3817
|
}, "lookahead");
|
|
3812
|
-
RegExpValidationState.prototype.advance = /* @__PURE__ */
|
|
3818
|
+
RegExpValidationState.prototype.advance = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function advance(forceU) {
|
|
3813
3819
|
if (forceU === void 0) forceU = false;
|
|
3814
3820
|
this.pos = this.nextIndex(this.pos, forceU);
|
|
3815
3821
|
}, "advance");
|
|
3816
|
-
RegExpValidationState.prototype.eat = /* @__PURE__ */
|
|
3822
|
+
RegExpValidationState.prototype.eat = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function eat(ch, forceU) {
|
|
3817
3823
|
if (forceU === void 0) forceU = false;
|
|
3818
3824
|
if (this.current(forceU) === ch) {
|
|
3819
3825
|
this.advance(forceU);
|
|
@@ -3821,7 +3827,7 @@ RegExpValidationState.prototype.eat = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.c
|
|
|
3821
3827
|
}
|
|
3822
3828
|
return false;
|
|
3823
3829
|
}, "eat");
|
|
3824
|
-
RegExpValidationState.prototype.eatChars = /* @__PURE__ */
|
|
3830
|
+
RegExpValidationState.prototype.eatChars = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function eatChars(chs, forceU) {
|
|
3825
3831
|
if (forceU === void 0) forceU = false;
|
|
3826
3832
|
var pos = this.pos;
|
|
3827
3833
|
for (var i = 0, list = chs; i < list.length; i += 1) {
|
|
@@ -3865,7 +3871,7 @@ function hasProp(obj) {
|
|
|
3865
3871
|
}
|
|
3866
3872
|
return false;
|
|
3867
3873
|
}
|
|
3868
|
-
|
|
3874
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, hasProp, "hasProp");
|
|
3869
3875
|
pp$1.validateRegExpPattern = function(state) {
|
|
3870
3876
|
this.regexp_pattern(state);
|
|
3871
3877
|
if (!state.switchN && this.options.ecmaVersion >= 9 && hasProp(state.groupNames)) {
|
|
@@ -4183,7 +4189,7 @@ pp$1.regexp_eatModifiers = function(state) {
|
|
|
4183
4189
|
function isRegularExpressionModifier(ch) {
|
|
4184
4190
|
return ch === 105 || ch === 109 || ch === 115;
|
|
4185
4191
|
}
|
|
4186
|
-
|
|
4192
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isRegularExpressionModifier, "isRegularExpressionModifier");
|
|
4187
4193
|
pp$1.regexp_eatExtendedAtom = function(state) {
|
|
4188
4194
|
return state.eat(
|
|
4189
4195
|
46
|
|
@@ -4208,7 +4214,7 @@ pp$1.regexp_eatSyntaxCharacter = function(state) {
|
|
|
4208
4214
|
function isSyntaxCharacter(ch) {
|
|
4209
4215
|
return ch === 36 || ch >= 40 && ch <= 43 || ch === 46 || ch === 63 || ch >= 91 && ch <= 94 || ch >= 123 && ch <= 125;
|
|
4210
4216
|
}
|
|
4211
|
-
|
|
4217
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isSyntaxCharacter, "isSyntaxCharacter");
|
|
4212
4218
|
pp$1.regexp_eatPatternCharacters = function(state) {
|
|
4213
4219
|
var start = state.pos;
|
|
4214
4220
|
var ch = 0;
|
|
@@ -4299,7 +4305,7 @@ pp$1.regexp_eatRegExpIdentifierStart = function(state) {
|
|
|
4299
4305
|
function isRegExpIdentifierStart(ch) {
|
|
4300
4306
|
return isIdentifierStart(ch, true) || ch === 36 || ch === 95;
|
|
4301
4307
|
}
|
|
4302
|
-
|
|
4308
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isRegExpIdentifierStart, "isRegExpIdentifierStart");
|
|
4303
4309
|
pp$1.regexp_eatRegExpIdentifierPart = function(state) {
|
|
4304
4310
|
var start = state.pos;
|
|
4305
4311
|
var forceU = this.options.ecmaVersion >= 11;
|
|
@@ -4318,7 +4324,7 @@ pp$1.regexp_eatRegExpIdentifierPart = function(state) {
|
|
|
4318
4324
|
function isRegExpIdentifierPart(ch) {
|
|
4319
4325
|
return isIdentifierChar(ch, true) || ch === 36 || ch === 95 || ch === 8204 || ch === 8205;
|
|
4320
4326
|
}
|
|
4321
|
-
|
|
4327
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isRegExpIdentifierPart, "isRegExpIdentifierPart");
|
|
4322
4328
|
pp$1.regexp_eatAtomEscape = function(state) {
|
|
4323
4329
|
if (this.regexp_eatBackReference(state) || this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state) || state.switchN && this.regexp_eatKGroupName(state)) {
|
|
4324
4330
|
return true;
|
|
@@ -4426,7 +4432,7 @@ pp$1.regexp_eatControlLetter = function(state) {
|
|
|
4426
4432
|
function isControlLetter(ch) {
|
|
4427
4433
|
return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122;
|
|
4428
4434
|
}
|
|
4429
|
-
|
|
4435
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isControlLetter, "isControlLetter");
|
|
4430
4436
|
pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
|
|
4431
4437
|
if (forceU === void 0) forceU = false;
|
|
4432
4438
|
var start = state.pos;
|
|
@@ -4476,7 +4482,7 @@ pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
|
|
|
4476
4482
|
function isValidUnicode(ch) {
|
|
4477
4483
|
return ch >= 0 && ch <= 1114111;
|
|
4478
4484
|
}
|
|
4479
|
-
|
|
4485
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isValidUnicode, "isValidUnicode");
|
|
4480
4486
|
pp$1.regexp_eatIdentityEscape = function(state) {
|
|
4481
4487
|
if (state.switchU) {
|
|
4482
4488
|
if (this.regexp_eatSyntaxCharacter(state)) {
|
|
@@ -4545,7 +4551,7 @@ pp$1.regexp_eatCharacterClassEscape = function(state) {
|
|
|
4545
4551
|
function isCharacterClassEscape(ch) {
|
|
4546
4552
|
return ch === 100 || ch === 68 || ch === 115 || ch === 83 || ch === 119 || ch === 87;
|
|
4547
4553
|
}
|
|
4548
|
-
|
|
4554
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isCharacterClassEscape, "isCharacterClassEscape");
|
|
4549
4555
|
pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {
|
|
4550
4556
|
var start = state.pos;
|
|
4551
4557
|
if (this.regexp_eatUnicodePropertyName(state) && state.eat(
|
|
@@ -4595,7 +4601,7 @@ pp$1.regexp_eatUnicodePropertyName = function(state) {
|
|
|
4595
4601
|
function isUnicodePropertyNameCharacter(ch) {
|
|
4596
4602
|
return isControlLetter(ch) || ch === 95;
|
|
4597
4603
|
}
|
|
4598
|
-
|
|
4604
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isUnicodePropertyNameCharacter, "isUnicodePropertyNameCharacter");
|
|
4599
4605
|
pp$1.regexp_eatUnicodePropertyValue = function(state) {
|
|
4600
4606
|
var ch = 0;
|
|
4601
4607
|
state.lastStringValue = "";
|
|
@@ -4608,7 +4614,7 @@ pp$1.regexp_eatUnicodePropertyValue = function(state) {
|
|
|
4608
4614
|
function isUnicodePropertyValueCharacter(ch) {
|
|
4609
4615
|
return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch);
|
|
4610
4616
|
}
|
|
4611
|
-
|
|
4617
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isUnicodePropertyValueCharacter, "isUnicodePropertyValueCharacter");
|
|
4612
4618
|
pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {
|
|
4613
4619
|
return this.regexp_eatUnicodePropertyValue(state);
|
|
4614
4620
|
};
|
|
@@ -4900,11 +4906,11 @@ pp$1.regexp_eatClassSetCharacter = function(state) {
|
|
|
4900
4906
|
function isClassSetReservedDoublePunctuatorCharacter(ch) {
|
|
4901
4907
|
return ch === 33 || ch >= 35 && ch <= 38 || ch >= 42 && ch <= 44 || ch === 46 || ch >= 58 && ch <= 64 || ch === 94 || ch === 96 || ch === 126;
|
|
4902
4908
|
}
|
|
4903
|
-
|
|
4909
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isClassSetReservedDoublePunctuatorCharacter, "isClassSetReservedDoublePunctuatorCharacter");
|
|
4904
4910
|
function isClassSetSyntaxCharacter(ch) {
|
|
4905
4911
|
return ch === 40 || ch === 41 || ch === 45 || ch === 47 || ch >= 91 && ch <= 93 || ch >= 123 && ch <= 125;
|
|
4906
4912
|
}
|
|
4907
|
-
|
|
4913
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isClassSetSyntaxCharacter, "isClassSetSyntaxCharacter");
|
|
4908
4914
|
pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
4909
4915
|
var ch = state.current();
|
|
4910
4916
|
if (isClassSetReservedPunctuator(ch)) {
|
|
@@ -4917,7 +4923,7 @@ pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
|
4917
4923
|
function isClassSetReservedPunctuator(ch) {
|
|
4918
4924
|
return ch === 33 || ch === 35 || ch === 37 || ch === 38 || ch === 44 || ch === 45 || ch >= 58 && ch <= 62 || ch === 64 || ch === 96 || ch === 126;
|
|
4919
4925
|
}
|
|
4920
|
-
|
|
4926
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isClassSetReservedPunctuator, "isClassSetReservedPunctuator");
|
|
4921
4927
|
pp$1.regexp_eatClassControlLetter = function(state) {
|
|
4922
4928
|
var ch = state.current();
|
|
4923
4929
|
if (isDecimalDigit(ch) || ch === 95) {
|
|
@@ -4956,7 +4962,7 @@ pp$1.regexp_eatDecimalDigits = function(state) {
|
|
|
4956
4962
|
function isDecimalDigit(ch) {
|
|
4957
4963
|
return ch >= 48 && ch <= 57;
|
|
4958
4964
|
}
|
|
4959
|
-
|
|
4965
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isDecimalDigit, "isDecimalDigit");
|
|
4960
4966
|
pp$1.regexp_eatHexDigits = function(state) {
|
|
4961
4967
|
var start = state.pos;
|
|
4962
4968
|
var ch = 0;
|
|
@@ -4970,7 +4976,7 @@ pp$1.regexp_eatHexDigits = function(state) {
|
|
|
4970
4976
|
function isHexDigit(ch) {
|
|
4971
4977
|
return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102;
|
|
4972
4978
|
}
|
|
4973
|
-
|
|
4979
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isHexDigit, "isHexDigit");
|
|
4974
4980
|
function hexToInt(ch) {
|
|
4975
4981
|
if (ch >= 65 && ch <= 70) {
|
|
4976
4982
|
return 10 + (ch - 65);
|
|
@@ -4980,7 +4986,7 @@ function hexToInt(ch) {
|
|
|
4980
4986
|
}
|
|
4981
4987
|
return ch - 48;
|
|
4982
4988
|
}
|
|
4983
|
-
|
|
4989
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, hexToInt, "hexToInt");
|
|
4984
4990
|
pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {
|
|
4985
4991
|
if (this.regexp_eatOctalDigit(state)) {
|
|
4986
4992
|
var n1 = state.lastIntValue;
|
|
@@ -5011,7 +5017,7 @@ pp$1.regexp_eatOctalDigit = function(state) {
|
|
|
5011
5017
|
function isOctalDigit(ch) {
|
|
5012
5018
|
return ch >= 48 && ch <= 55;
|
|
5013
5019
|
}
|
|
5014
|
-
|
|
5020
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isOctalDigit, "isOctalDigit");
|
|
5015
5021
|
pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
5016
5022
|
var start = state.pos;
|
|
5017
5023
|
state.lastIntValue = 0;
|
|
@@ -5026,7 +5032,7 @@ pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
|
5026
5032
|
}
|
|
5027
5033
|
return true;
|
|
5028
5034
|
};
|
|
5029
|
-
var Token = /* @__PURE__ */
|
|
5035
|
+
var Token = /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function Token2(p) {
|
|
5030
5036
|
this.type = p.type;
|
|
5031
5037
|
this.value = p.value;
|
|
5032
5038
|
this.start = p.start;
|
|
@@ -5060,7 +5066,7 @@ if (typeof Symbol !== "undefined") {
|
|
|
5060
5066
|
pp[Symbol.iterator] = function() {
|
|
5061
5067
|
var this$1$1 = this;
|
|
5062
5068
|
return {
|
|
5063
|
-
next: /* @__PURE__ */
|
|
5069
|
+
next: /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, function() {
|
|
5064
5070
|
var token = this$1$1.getToken();
|
|
5065
5071
|
return {
|
|
5066
5072
|
done: token.type === types$1.eof,
|
|
@@ -5534,14 +5540,14 @@ function stringToNumber(str, isLegacyOctalNumericLiteral) {
|
|
|
5534
5540
|
}
|
|
5535
5541
|
return parseFloat(str.replace(/_/g, ""));
|
|
5536
5542
|
}
|
|
5537
|
-
|
|
5543
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, stringToNumber, "stringToNumber");
|
|
5538
5544
|
function stringToBigInt(str) {
|
|
5539
5545
|
if (typeof BigInt !== "function") {
|
|
5540
5546
|
return null;
|
|
5541
5547
|
}
|
|
5542
5548
|
return BigInt(str.replace(/_/g, ""));
|
|
5543
5549
|
}
|
|
5544
|
-
|
|
5550
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, stringToBigInt, "stringToBigInt");
|
|
5545
5551
|
pp.readRadixNumber = function(radix) {
|
|
5546
5552
|
var start = this.pos;
|
|
5547
5553
|
this.pos += 2;
|
|
@@ -5909,7 +5915,7 @@ var BUILTIN_MODULES = new Set(_module.builtinModules);
|
|
|
5909
5915
|
function normalizeSlash(path2) {
|
|
5910
5916
|
return path2.replace(/\\/g, "/");
|
|
5911
5917
|
}
|
|
5912
|
-
|
|
5918
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, normalizeSlash, "normalizeSlash");
|
|
5913
5919
|
var own$1 = {}.hasOwnProperty;
|
|
5914
5920
|
var classRegExp = /^([A-Z][a-z\d]*)+$/;
|
|
5915
5921
|
var kTypes = /* @__PURE__ */ new Set([
|
|
@@ -5928,7 +5934,7 @@ var codes = {};
|
|
|
5928
5934
|
function formatList(array, type = "and") {
|
|
5929
5935
|
return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`;
|
|
5930
5936
|
}
|
|
5931
|
-
|
|
5937
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, formatList, "formatList");
|
|
5932
5938
|
var messages = /* @__PURE__ */ new Map();
|
|
5933
5939
|
var nodeInternalPrefix = "__node_internal_";
|
|
5934
5940
|
var userStackTraceLimit;
|
|
@@ -6135,7 +6141,7 @@ function createError(sym, value, constructor) {
|
|
|
6135
6141
|
messages.set(sym, value);
|
|
6136
6142
|
return makeNodeErrorWithCode(constructor, sym);
|
|
6137
6143
|
}
|
|
6138
|
-
|
|
6144
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, createError, "createError");
|
|
6139
6145
|
function makeNodeErrorWithCode(Base, key) {
|
|
6140
6146
|
return NodeError;
|
|
6141
6147
|
function NodeError(...parameters) {
|
|
@@ -6167,9 +6173,9 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
6167
6173
|
error.code = key;
|
|
6168
6174
|
return error;
|
|
6169
6175
|
}
|
|
6170
|
-
|
|
6176
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, NodeError, "NodeError");
|
|
6171
6177
|
}
|
|
6172
|
-
|
|
6178
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, makeNodeErrorWithCode, "makeNodeErrorWithCode");
|
|
6173
6179
|
function isErrorStackTraceLimitWritable() {
|
|
6174
6180
|
try {
|
|
6175
6181
|
if (_v82.default.startupSnapshot.isBuildingSnapshot()) {
|
|
@@ -6183,13 +6189,13 @@ function isErrorStackTraceLimitWritable() {
|
|
|
6183
6189
|
}
|
|
6184
6190
|
return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
6185
6191
|
}
|
|
6186
|
-
|
|
6192
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isErrorStackTraceLimitWritable, "isErrorStackTraceLimitWritable");
|
|
6187
6193
|
function hideStackFrames(wrappedFunction) {
|
|
6188
6194
|
const hidden = nodeInternalPrefix + wrappedFunction.name;
|
|
6189
6195
|
Object.defineProperty(wrappedFunction, "name", { value: hidden });
|
|
6190
6196
|
return wrappedFunction;
|
|
6191
6197
|
}
|
|
6192
|
-
|
|
6198
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, hideStackFrames, "hideStackFrames");
|
|
6193
6199
|
var captureLargerStackTrace = hideStackFrames(
|
|
6194
6200
|
/**
|
|
6195
6201
|
* @param {Error} error
|
|
@@ -6229,7 +6235,7 @@ function getMessage(key, parameters, self) {
|
|
|
6229
6235
|
parameters.unshift(message);
|
|
6230
6236
|
return Reflect.apply(_util.format, null, parameters);
|
|
6231
6237
|
}
|
|
6232
|
-
|
|
6238
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, getMessage, "getMessage");
|
|
6233
6239
|
function determineSpecificType(value) {
|
|
6234
6240
|
if (value === null || value === void 0) {
|
|
6235
6241
|
return String(value);
|
|
@@ -6249,7 +6255,7 @@ function determineSpecificType(value) {
|
|
|
6249
6255
|
}
|
|
6250
6256
|
return `type ${typeof value} (${inspected})`;
|
|
6251
6257
|
}
|
|
6252
|
-
|
|
6258
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, determineSpecificType, "determineSpecificType");
|
|
6253
6259
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
6254
6260
|
var { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes;
|
|
6255
6261
|
var cache = /* @__PURE__ */ new Map();
|
|
@@ -6317,7 +6323,7 @@ function read(jsonPath, { base, specifier }) {
|
|
|
6317
6323
|
cache.set(jsonPath, result);
|
|
6318
6324
|
return result;
|
|
6319
6325
|
}
|
|
6320
|
-
|
|
6326
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, read, "read");
|
|
6321
6327
|
function getPackageScopeConfig(resolved) {
|
|
6322
6328
|
let packageJSONUrl = new URL("package.json", resolved);
|
|
6323
6329
|
while (true) {
|
|
@@ -6344,11 +6350,11 @@ function getPackageScopeConfig(resolved) {
|
|
|
6344
6350
|
type: "none"
|
|
6345
6351
|
};
|
|
6346
6352
|
}
|
|
6347
|
-
|
|
6353
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, getPackageScopeConfig, "getPackageScopeConfig");
|
|
6348
6354
|
function getPackageType(url) {
|
|
6349
6355
|
return getPackageScopeConfig(url).type;
|
|
6350
6356
|
}
|
|
6351
|
-
|
|
6357
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, getPackageType, "getPackageType");
|
|
6352
6358
|
var { ERR_UNKNOWN_FILE_EXTENSION } = codes;
|
|
6353
6359
|
var hasOwnProperty2 = {}.hasOwnProperty;
|
|
6354
6360
|
var extensionFormatMap = {
|
|
@@ -6365,7 +6371,7 @@ function mimeToFormat(mime) {
|
|
|
6365
6371
|
if (mime === "application/json") return "json";
|
|
6366
6372
|
return null;
|
|
6367
6373
|
}
|
|
6368
|
-
|
|
6374
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, mimeToFormat, "mimeToFormat");
|
|
6369
6375
|
var protocolHandlers = {
|
|
6370
6376
|
// @ts-expect-error: hush.
|
|
6371
6377
|
__proto__: null,
|
|
@@ -6383,7 +6389,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
6383
6389
|
) || [null, null, null];
|
|
6384
6390
|
return mimeToFormat(mime);
|
|
6385
6391
|
}
|
|
6386
|
-
|
|
6392
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, getDataProtocolModuleFormat, "getDataProtocolModuleFormat");
|
|
6387
6393
|
function extname2(url) {
|
|
6388
6394
|
const pathname = url.pathname;
|
|
6389
6395
|
let index = pathname.length;
|
|
@@ -6398,7 +6404,7 @@ function extname2(url) {
|
|
|
6398
6404
|
}
|
|
6399
6405
|
return "";
|
|
6400
6406
|
}
|
|
6401
|
-
|
|
6407
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, extname2, "extname");
|
|
6402
6408
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
6403
6409
|
const value = extname2(url);
|
|
6404
6410
|
if (value === ".js") {
|
|
@@ -6423,10 +6429,10 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
6423
6429
|
const filepath = _url.fileURLToPath.call(void 0, url);
|
|
6424
6430
|
throw new ERR_UNKNOWN_FILE_EXTENSION(value, filepath);
|
|
6425
6431
|
}
|
|
6426
|
-
|
|
6432
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, getFileProtocolModuleFormat, "getFileProtocolModuleFormat");
|
|
6427
6433
|
function getHttpProtocolModuleFormat() {
|
|
6428
6434
|
}
|
|
6429
|
-
|
|
6435
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, getHttpProtocolModuleFormat, "getHttpProtocolModuleFormat");
|
|
6430
6436
|
function defaultGetFormatWithoutErrors(url, context) {
|
|
6431
6437
|
const protocol = url.protocol;
|
|
6432
6438
|
if (!hasOwnProperty2.call(protocolHandlers, protocol)) {
|
|
@@ -6434,7 +6440,7 @@ function defaultGetFormatWithoutErrors(url, context) {
|
|
|
6434
6440
|
}
|
|
6435
6441
|
return protocolHandlers[protocol](url, context, true) || null;
|
|
6436
6442
|
}
|
|
6437
|
-
|
|
6443
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, defaultGetFormatWithoutErrors, "defaultGetFormatWithoutErrors");
|
|
6438
6444
|
var RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
|
|
6439
6445
|
var {
|
|
6440
6446
|
ERR_NETWORK_IMPORT_DISALLOWED,
|
|
@@ -6467,7 +6473,7 @@ function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, i
|
|
|
6467
6473
|
"DEP0166"
|
|
6468
6474
|
);
|
|
6469
6475
|
}
|
|
6470
|
-
|
|
6476
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, emitInvalidSegmentDeprecation, "emitInvalidSegmentDeprecation");
|
|
6471
6477
|
function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
6472
6478
|
if (_process2.default.noDeprecation) {
|
|
6473
6479
|
return;
|
|
@@ -6497,20 +6503,20 @@ Default "index" lookups for the main are deprecated for ES modules.`,
|
|
|
6497
6503
|
);
|
|
6498
6504
|
}
|
|
6499
6505
|
}
|
|
6500
|
-
|
|
6506
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, emitLegacyIndexDeprecation, "emitLegacyIndexDeprecation");
|
|
6501
6507
|
function tryStatSync(path2) {
|
|
6502
6508
|
try {
|
|
6503
6509
|
return _fs.statSync.call(void 0, path2);
|
|
6504
6510
|
} catch (e3) {
|
|
6505
6511
|
}
|
|
6506
6512
|
}
|
|
6507
|
-
|
|
6513
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, tryStatSync, "tryStatSync");
|
|
6508
6514
|
function fileExists(url) {
|
|
6509
6515
|
const stats = _fs.statSync.call(void 0, url, { throwIfNoEntry: false });
|
|
6510
6516
|
const isFile = stats ? stats.isFile() : void 0;
|
|
6511
6517
|
return isFile === null || isFile === void 0 ? false : isFile;
|
|
6512
6518
|
}
|
|
6513
|
-
|
|
6519
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, fileExists, "fileExists");
|
|
6514
6520
|
function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
6515
6521
|
let guess;
|
|
6516
6522
|
if (packageConfig.main !== void 0) {
|
|
@@ -6556,7 +6562,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
6556
6562
|
_url.fileURLToPath.call(void 0, base)
|
|
6557
6563
|
);
|
|
6558
6564
|
}
|
|
6559
|
-
|
|
6565
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, legacyMainResolve, "legacyMainResolve");
|
|
6560
6566
|
function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
6561
6567
|
if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
|
|
6562
6568
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
@@ -6603,7 +6609,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
6603
6609
|
}
|
|
6604
6610
|
return resolved;
|
|
6605
6611
|
}
|
|
6606
|
-
|
|
6612
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, finalizeResolution, "finalizeResolution");
|
|
6607
6613
|
function importNotDefined(specifier, packageJsonUrl, base) {
|
|
6608
6614
|
return new ERR_PACKAGE_IMPORT_NOT_DEFINED(
|
|
6609
6615
|
specifier,
|
|
@@ -6611,7 +6617,7 @@ function importNotDefined(specifier, packageJsonUrl, base) {
|
|
|
6611
6617
|
_url.fileURLToPath.call(void 0, base)
|
|
6612
6618
|
);
|
|
6613
6619
|
}
|
|
6614
|
-
|
|
6620
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, importNotDefined, "importNotDefined");
|
|
6615
6621
|
function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
6616
6622
|
return new ERR_PACKAGE_PATH_NOT_EXPORTED(
|
|
6617
6623
|
_url.fileURLToPath.call(void 0, new (0, _url.URL)(".", packageJsonUrl)),
|
|
@@ -6619,7 +6625,7 @@ function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
|
6619
6625
|
base && _url.fileURLToPath.call(void 0, base)
|
|
6620
6626
|
);
|
|
6621
6627
|
}
|
|
6622
|
-
|
|
6628
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, exportsNotFound, "exportsNotFound");
|
|
6623
6629
|
function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
6624
6630
|
const reason = `request is not a valid match in pattern "${match}" for the "${internal ? "imports" : "exports"}" resolution of ${_url.fileURLToPath.call(void 0, packageJsonUrl)}`;
|
|
6625
6631
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
@@ -6628,7 +6634,7 @@ function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
|
6628
6634
|
base && _url.fileURLToPath.call(void 0, base)
|
|
6629
6635
|
);
|
|
6630
6636
|
}
|
|
6631
|
-
|
|
6637
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, throwInvalidSubpath, "throwInvalidSubpath");
|
|
6632
6638
|
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
6633
6639
|
target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
|
|
6634
6640
|
return new ERR_INVALID_PACKAGE_TARGET(
|
|
@@ -6639,7 +6645,7 @@ function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
|
6639
6645
|
base && _url.fileURLToPath.call(void 0, base)
|
|
6640
6646
|
);
|
|
6641
6647
|
}
|
|
6642
|
-
|
|
6648
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, invalidPackageTarget, "invalidPackageTarget");
|
|
6643
6649
|
function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
|
|
6644
6650
|
if (subpath !== "" && !pattern && target[target.length - 1] !== "/")
|
|
6645
6651
|
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
@@ -6725,13 +6731,13 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
6725
6731
|
}
|
|
6726
6732
|
return new (0, _url.URL)(subpath, resolved);
|
|
6727
6733
|
}
|
|
6728
|
-
|
|
6734
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, resolvePackageTargetString, "resolvePackageTargetString");
|
|
6729
6735
|
function isArrayIndex(key) {
|
|
6730
6736
|
const keyNumber = Number(key);
|
|
6731
6737
|
if (`${keyNumber}` !== key) return false;
|
|
6732
6738
|
return keyNumber >= 0 && keyNumber < 4294967295;
|
|
6733
6739
|
}
|
|
6734
|
-
|
|
6740
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isArrayIndex, "isArrayIndex");
|
|
6735
6741
|
function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions) {
|
|
6736
6742
|
if (typeof target === "string") {
|
|
6737
6743
|
return resolvePackageTargetString(
|
|
@@ -6836,7 +6842,7 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
6836
6842
|
base
|
|
6837
6843
|
);
|
|
6838
6844
|
}
|
|
6839
|
-
|
|
6845
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, resolvePackageTarget, "resolvePackageTarget");
|
|
6840
6846
|
function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
6841
6847
|
if (typeof exports === "string" || Array.isArray(exports)) return true;
|
|
6842
6848
|
if (typeof exports !== "object" || exports === null) return false;
|
|
@@ -6859,7 +6865,7 @@ function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
|
6859
6865
|
}
|
|
6860
6866
|
return isConditionalSugar;
|
|
6861
6867
|
}
|
|
6862
|
-
|
|
6868
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isConditionalExportsMainSugar, "isConditionalExportsMainSugar");
|
|
6863
6869
|
function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
6864
6870
|
if (_process2.default.noDeprecation) {
|
|
6865
6871
|
return;
|
|
@@ -6873,7 +6879,7 @@ function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
|
6873
6879
|
"DEP0155"
|
|
6874
6880
|
);
|
|
6875
6881
|
}
|
|
6876
|
-
|
|
6882
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, emitTrailingSlashPatternDeprecation, "emitTrailingSlashPatternDeprecation");
|
|
6877
6883
|
function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
|
|
6878
6884
|
let exports = packageConfig.exports;
|
|
6879
6885
|
if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) {
|
|
@@ -6945,7 +6951,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
6945
6951
|
}
|
|
6946
6952
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
6947
6953
|
}
|
|
6948
|
-
|
|
6954
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, packageExportsResolve, "packageExportsResolve");
|
|
6949
6955
|
function patternKeyCompare(a, b) {
|
|
6950
6956
|
const aPatternIndex = a.indexOf("*");
|
|
6951
6957
|
const bPatternIndex = b.indexOf("*");
|
|
@@ -6959,7 +6965,7 @@ function patternKeyCompare(a, b) {
|
|
|
6959
6965
|
if (b.length > a.length) return 1;
|
|
6960
6966
|
return 0;
|
|
6961
6967
|
}
|
|
6962
|
-
|
|
6968
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, patternKeyCompare, "patternKeyCompare");
|
|
6963
6969
|
function packageImportsResolve(name, base, conditions) {
|
|
6964
6970
|
if (name === "#" || name.startsWith("#/") || name.endsWith("/")) {
|
|
6965
6971
|
const reason = "is not a valid internal imports specifier name";
|
|
@@ -7027,7 +7033,7 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
7027
7033
|
}
|
|
7028
7034
|
throw importNotDefined(name, packageJsonUrl, base);
|
|
7029
7035
|
}
|
|
7030
|
-
|
|
7036
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, packageImportsResolve, "packageImportsResolve");
|
|
7031
7037
|
function parsePackageName(specifier, base) {
|
|
7032
7038
|
let separatorIndex = specifier.indexOf("/");
|
|
7033
7039
|
let validPackageName = true;
|
|
@@ -7054,7 +7060,7 @@ function parsePackageName(specifier, base) {
|
|
|
7054
7060
|
const packageSubpath = "." + (separatorIndex === -1 ? "" : specifier.slice(separatorIndex));
|
|
7055
7061
|
return { packageName, packageSubpath, isScoped };
|
|
7056
7062
|
}
|
|
7057
|
-
|
|
7063
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, parsePackageName, "parsePackageName");
|
|
7058
7064
|
function packageResolve(specifier, base, conditions) {
|
|
7059
7065
|
if (_module.builtinModules.includes(specifier)) {
|
|
7060
7066
|
return new (0, _url.URL)("node:" + specifier);
|
|
@@ -7110,7 +7116,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
7110
7116
|
} while (packageJsonPath.length !== lastPath.length);
|
|
7111
7117
|
throw new ERR_MODULE_NOT_FOUND(packageName, _url.fileURLToPath.call(void 0, base), false);
|
|
7112
7118
|
}
|
|
7113
|
-
|
|
7119
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, packageResolve, "packageResolve");
|
|
7114
7120
|
function isRelativeSpecifier(specifier) {
|
|
7115
7121
|
if (specifier[0] === ".") {
|
|
7116
7122
|
if (specifier.length === 1 || specifier[1] === "/") return true;
|
|
@@ -7120,13 +7126,13 @@ function isRelativeSpecifier(specifier) {
|
|
|
7120
7126
|
}
|
|
7121
7127
|
return false;
|
|
7122
7128
|
}
|
|
7123
|
-
|
|
7129
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, isRelativeSpecifier, "isRelativeSpecifier");
|
|
7124
7130
|
function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
|
|
7125
7131
|
if (specifier === "") return false;
|
|
7126
7132
|
if (specifier[0] === "/") return true;
|
|
7127
7133
|
return isRelativeSpecifier(specifier);
|
|
7128
7134
|
}
|
|
7129
|
-
|
|
7135
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, shouldBeTreatedAsRelativeOrAbsolutePath, "shouldBeTreatedAsRelativeOrAbsolutePath");
|
|
7130
7136
|
function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
7131
7137
|
const protocol = base.protocol;
|
|
7132
7138
|
const isData = protocol === "data:";
|
|
@@ -7160,18 +7166,18 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
7160
7166
|
}
|
|
7161
7167
|
return finalizeResolution(resolved, base);
|
|
7162
7168
|
}
|
|
7163
|
-
|
|
7169
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, moduleResolve, "moduleResolve");
|
|
7164
7170
|
function fileURLToPath(id) {
|
|
7165
7171
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
7166
7172
|
return normalizeSlash(id);
|
|
7167
7173
|
}
|
|
7168
7174
|
return normalizeSlash(_url.fileURLToPath.call(void 0, id));
|
|
7169
7175
|
}
|
|
7170
|
-
|
|
7176
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, fileURLToPath, "fileURLToPath");
|
|
7171
7177
|
function pathToFileURL(id) {
|
|
7172
7178
|
return _url.pathToFileURL.call(void 0, fileURLToPath(id)).toString();
|
|
7173
7179
|
}
|
|
7174
|
-
|
|
7180
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, pathToFileURL, "pathToFileURL");
|
|
7175
7181
|
function normalizeid(id) {
|
|
7176
7182
|
if (typeof id !== "string") {
|
|
7177
7183
|
id = id.toString();
|
|
@@ -7184,7 +7190,7 @@ function normalizeid(id) {
|
|
|
7184
7190
|
}
|
|
7185
7191
|
return "file://" + encodeURI(normalizeSlash(id));
|
|
7186
7192
|
}
|
|
7187
|
-
|
|
7193
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, normalizeid, "normalizeid");
|
|
7188
7194
|
var DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
|
|
7189
7195
|
var DEFAULT_EXTENSIONS = [".mjs", ".cjs", ".js", ".json"];
|
|
7190
7196
|
var NOT_FOUND_ERRORS = /* @__PURE__ */ new Set([
|
|
@@ -7202,7 +7208,7 @@ function _tryModuleResolve(id, url, conditions) {
|
|
|
7202
7208
|
}
|
|
7203
7209
|
}
|
|
7204
7210
|
}
|
|
7205
|
-
|
|
7211
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, _tryModuleResolve, "_tryModuleResolve");
|
|
7206
7212
|
function _resolve(id, options = {}) {
|
|
7207
7213
|
if (typeof id !== "string") {
|
|
7208
7214
|
if (id instanceof URL) {
|
|
@@ -7283,15 +7289,15 @@ function _resolve(id, options = {}) {
|
|
|
7283
7289
|
}
|
|
7284
7290
|
return pathToFileURL(resolved);
|
|
7285
7291
|
}
|
|
7286
|
-
|
|
7292
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, _resolve, "_resolve");
|
|
7287
7293
|
function resolveSync(id, options) {
|
|
7288
7294
|
return _resolve(id, options);
|
|
7289
7295
|
}
|
|
7290
|
-
|
|
7296
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, resolveSync, "resolveSync");
|
|
7291
7297
|
function resolvePathSync(id, options) {
|
|
7292
7298
|
return fileURLToPath(resolveSync(id, options));
|
|
7293
7299
|
}
|
|
7294
|
-
|
|
7300
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, resolvePathSync, "resolvePathSync");
|
|
7295
7301
|
function resolvePath(id, options) {
|
|
7296
7302
|
try {
|
|
7297
7303
|
return Promise.resolve(resolvePathSync(id, options));
|
|
@@ -7299,17 +7305,17 @@ function resolvePath(id, options) {
|
|
|
7299
7305
|
return Promise.reject(error);
|
|
7300
7306
|
}
|
|
7301
7307
|
}
|
|
7302
|
-
|
|
7308
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, resolvePath, "resolvePath");
|
|
7303
7309
|
|
|
7304
7310
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs
|
|
7305
|
-
|
|
7311
|
+
_chunkQ3AHBZHLcjs.init_cjs_shims.call(void 0, );
|
|
7306
7312
|
|
|
7307
7313
|
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
7308
7314
|
var defaultFindOptions = {
|
|
7309
7315
|
startingFrom: ".",
|
|
7310
7316
|
rootPattern: /^node_modules$/,
|
|
7311
7317
|
reverse: false,
|
|
7312
|
-
test: /* @__PURE__ */
|
|
7318
|
+
test: /* @__PURE__ */ _chunkQ3AHBZHLcjs.__name.call(void 0, (filePath) => {
|
|
7313
7319
|
try {
|
|
7314
7320
|
if (_fs.statSync.call(void 0, filePath).isFile()) {
|
|
7315
7321
|
return true;
|
|
@@ -7354,11 +7360,11 @@ async function findFile(filename, _options = {}) {
|
|
|
7354
7360
|
`Cannot find matching ${filename} in ${options.startingFrom} or parent directories`
|
|
7355
7361
|
);
|
|
7356
7362
|
}
|
|
7357
|
-
|
|
7363
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, findFile, "findFile");
|
|
7358
7364
|
function findNearestFile(filename, _options = {}) {
|
|
7359
7365
|
return findFile(filename, _options);
|
|
7360
7366
|
}
|
|
7361
|
-
|
|
7367
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, findNearestFile, "findNearestFile");
|
|
7362
7368
|
var FileCache = /* @__PURE__ */ new Map();
|
|
7363
7369
|
async function readPackageJSON(id, options = {}) {
|
|
7364
7370
|
const resolvedPath = await resolvePackageJSON(id, options);
|
|
@@ -7369,14 +7375,14 @@ async function readPackageJSON(id, options = {}) {
|
|
|
7369
7375
|
const blob = await _fs.promises.readFile(resolvedPath, "utf8");
|
|
7370
7376
|
let parsed;
|
|
7371
7377
|
try {
|
|
7372
|
-
parsed =
|
|
7378
|
+
parsed = _chunkQ53NG7LBcjs.x.call(void 0, blob);
|
|
7373
7379
|
} catch (e6) {
|
|
7374
|
-
parsed =
|
|
7380
|
+
parsed = _chunkQ53NG7LBcjs.h.call(void 0, blob);
|
|
7375
7381
|
}
|
|
7376
7382
|
cache2.set(resolvedPath, parsed);
|
|
7377
7383
|
return parsed;
|
|
7378
7384
|
}
|
|
7379
|
-
|
|
7385
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, readPackageJSON, "readPackageJSON");
|
|
7380
7386
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
7381
7387
|
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
7382
7388
|
return findNearestFile("package.json", {
|
|
@@ -7384,7 +7390,7 @@ async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
|
7384
7390
|
...options
|
|
7385
7391
|
});
|
|
7386
7392
|
}
|
|
7387
|
-
|
|
7393
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, resolvePackageJSON, "resolvePackageJSON");
|
|
7388
7394
|
var lockFiles = [
|
|
7389
7395
|
"yarn.lock",
|
|
7390
7396
|
"package-lock.json",
|
|
@@ -7402,7 +7408,7 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
7402
7408
|
}
|
|
7403
7409
|
throw new Error("No lockfile found from " + id);
|
|
7404
7410
|
}
|
|
7405
|
-
|
|
7411
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, resolveLockfile, "resolveLockfile");
|
|
7406
7412
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
7407
7413
|
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
7408
7414
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
@@ -7426,7 +7432,7 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
7426
7432
|
}
|
|
7427
7433
|
throw new Error("Cannot detect workspace root from " + id);
|
|
7428
7434
|
}
|
|
7429
|
-
|
|
7435
|
+
_chunkQ3AHBZHLcjs.__name.call(void 0, findWorkspaceDir, "findWorkspaceDir");
|
|
7430
7436
|
|
|
7431
7437
|
|
|
7432
7438
|
|
|
@@ -7439,4 +7445,5 @@ _chunkEVP6BIDZcjs.__name.call(void 0, findWorkspaceDir, "findWorkspaceDir");
|
|
|
7439
7445
|
|
|
7440
7446
|
|
|
7441
7447
|
|
|
7442
|
-
|
|
7448
|
+
|
|
7449
|
+
exports.normalize = normalize; exports.join = join; exports.resolve = resolve; exports.extname = extname; exports.relative = relative; exports.dirname = dirname; exports.basename = basename; exports.readPackageJSON = readPackageJSON; exports.findWorkspaceDir = findWorkspaceDir; exports.fileURLToPath = fileURLToPath; exports.defu = defu;
|