@storm-software/unbuild 0.17.3 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/unbuild.js +30733 -35355
- package/bin/{unbuild.cjs → unbuild.mjs} +30714 -35362
- package/dist/{build.d.cts → build.d.mts} +1 -1
- package/dist/build.js +16 -16
- package/dist/build.mjs +16 -0
- package/dist/chunk-2ML6ALMN.js +9 -9
- package/dist/{chunk-V37I6FRL.cjs → chunk-3BWHONLG.js} +287 -290
- package/dist/chunk-55B3XBWH.mjs +29 -0
- package/dist/chunk-6EUZQHAF.js +10 -10
- package/dist/{chunk-VNXPCFXP.js → chunk-ANPRZIKG.mjs} +76 -79
- package/dist/{chunk-R3YTTAZ5.js → chunk-BKBMIPZ6.mjs} +1 -1
- package/dist/chunk-C2KSDATI.mjs +33 -0
- package/dist/chunk-DX77GU2M.mjs +28 -0
- package/dist/{chunk-4XOYG7KV.cjs → chunk-FGN5X2T4.js} +2 -2
- package/dist/chunk-GGNOJ77I.js +1 -0
- package/dist/{chunk-3QBFDGR4.js → chunk-H5YLUXXE.mjs} +2 -2
- package/dist/{chunk-TMJKCWPB.cjs → chunk-HMWQVVLE.js} +46 -46
- package/dist/{chunk-E2QFB4NU.js → chunk-IYBW4IOL.mjs} +6 -6
- package/dist/chunk-KKPEE667.js +12 -12
- package/dist/{chunk-SSZ7VM2H.js → chunk-KYQEKSKC.mjs} +5172 -9801
- package/dist/chunk-PYJU2DCJ.js +10 -10
- package/dist/{chunk-SZZ6PSUY.cjs → chunk-S6U5RC6R.js} +15101 -19730
- package/dist/chunk-SRBMAPFT.js +10 -10
- package/dist/chunk-U4C3GQY2.mjs +18 -0
- package/dist/chunk-WAXGOBY2.mjs +0 -0
- package/dist/{chunk-HEEVZWS4.js → chunk-XRDEYS2Q.mjs} +1 -1
- package/dist/{chunk-C4IRH3TZ.cjs → chunk-Y65MI4DK.mjs} +10 -10
- package/dist/{chunk-2WTCOI6G.cjs → chunk-Y7B2FEG5.js} +4 -4
- package/dist/chunk-YIWBJCZO.js +31 -0
- package/dist/clean.d.mts +2 -0
- package/dist/clean.js +7 -7
- package/dist/clean.mjs +7 -0
- package/dist/{config.d.cts → config.d.mts} +1 -1
- package/dist/config.js +12 -12
- package/dist/config.mjs +12 -0
- package/dist/{dist-5FEBPCIF.js → dist-73LKVJOU.mjs} +2 -2
- package/dist/dist-G2KLYMK6.js +83 -0
- package/dist/{index.d.cts → index.d.mts} +5 -5
- package/dist/index.js +28 -28
- package/dist/index.mjs +28 -0
- package/dist/{prompt-2QA7QO2Y.cjs → prompt-5OLVTLXP.js} +120 -120
- package/dist/{prompt-CTBFX6QF.js → prompt-G22OCPDR.mjs} +2 -2
- package/dist/{sass.node-3YP74F4W.js → sass.node-3JFKIJQ4.mjs} +46 -47
- package/dist/{sass.node-2WXXYG5G.cjs → sass.node-C3IPCFGU.js} +3618 -3619
- package/dist/types.js +1 -1
- package/dist/types.mjs +1 -0
- package/package.json +1 -1
- package/dist/build.cjs +0 -16
- package/dist/chunk-IZYSCGNB.cjs +0 -28
- package/dist/chunk-KYPGHXZY.cjs +0 -31
- package/dist/chunk-PNQSAHAO.cjs +0 -18
- package/dist/chunk-QPWIL3K6.cjs +0 -33
- package/dist/chunk-SFZRYJZ2.cjs +0 -1
- package/dist/chunk-ZAHNNGDE.cjs +0 -29
- package/dist/clean.cjs +0 -7
- package/dist/clean.d.cts +0 -2
- package/dist/config.cjs +0 -12
- package/dist/dist-YYM2MCAV.cjs +0 -83
- package/dist/index.cjs +0 -28
- package/dist/types.cjs +0 -1
- /package/dist/{clean-BlXMN74D.d.cts → clean-BlXMN74D.d.mts} +0 -0
- /package/dist/{types.d.cts → types.d.mts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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
|
-
var
|
|
3
|
+
var _chunk6EUZQHAFjs = require('./chunk-6EUZQHAF.js');
|
|
4
4
|
|
|
5
5
|
// ../../node_modules/.pnpm/acorn@8.14.0/node_modules/acorn/dist/acorn.mjs
|
|
6
6
|
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];
|
|
@@ -37,7 +37,7 @@ function isInAstralSet(code, set) {
|
|
|
37
37
|
}
|
|
38
38
|
return false;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isInAstralSet, "isInAstralSet");
|
|
41
41
|
function isIdentifierStart(code, astral) {
|
|
42
42
|
if (code < 65) {
|
|
43
43
|
return code === 36;
|
|
@@ -59,7 +59,7 @@ function isIdentifierStart(code, astral) {
|
|
|
59
59
|
}
|
|
60
60
|
return isInAstralSet(code, astralIdentifierStartCodes);
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isIdentifierStart, "isIdentifierStart");
|
|
63
63
|
function isIdentifierChar(code, astral) {
|
|
64
64
|
if (code < 48) {
|
|
65
65
|
return code === 36;
|
|
@@ -87,8 +87,8 @@ function isIdentifierChar(code, astral) {
|
|
|
87
87
|
}
|
|
88
88
|
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
89
89
|
}
|
|
90
|
-
|
|
91
|
-
var TokenType = /* @__PURE__ */
|
|
90
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isIdentifierChar, "isIdentifierChar");
|
|
91
|
+
var TokenType = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function TokenType2(label, conf) {
|
|
92
92
|
if (conf === void 0) conf = {};
|
|
93
93
|
this.label = label;
|
|
94
94
|
this.keyword = conf.keyword;
|
|
@@ -104,7 +104,7 @@ var TokenType = /* @__PURE__ */ _chunkC4IRH3TZcjs.__name.call(void 0, function T
|
|
|
104
104
|
function binop(name, prec) {
|
|
105
105
|
return new TokenType(name, { beforeExpr: true, binop: prec });
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
_chunk6EUZQHAFjs.__name.call(void 0, binop, "binop");
|
|
108
108
|
var beforeExpr = { beforeExpr: true };
|
|
109
109
|
var startsExpr = { startsExpr: true };
|
|
110
110
|
var keywords = {};
|
|
@@ -113,7 +113,7 @@ function kw(name, options) {
|
|
|
113
113
|
options.keyword = name;
|
|
114
114
|
return keywords[name] = new TokenType(name, options);
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
_chunk6EUZQHAFjs.__name.call(void 0, kw, "kw");
|
|
117
117
|
var types$1 = {
|
|
118
118
|
num: new TokenType("num", startsExpr),
|
|
119
119
|
regexp: new TokenType("regexp", startsExpr),
|
|
@@ -213,7 +213,7 @@ var lineBreakG = new RegExp(lineBreak.source, "g");
|
|
|
213
213
|
function isNewLine(code) {
|
|
214
214
|
return code === 10 || code === 13 || code === 8232 || code === 8233;
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isNewLine, "isNewLine");
|
|
217
217
|
function nextLineBreak(code, from, end) {
|
|
218
218
|
if (end === void 0) end = code.length;
|
|
219
219
|
for (var i = from; i < end; i++) {
|
|
@@ -224,7 +224,7 @@ function nextLineBreak(code, from, end) {
|
|
|
224
224
|
}
|
|
225
225
|
return -1;
|
|
226
226
|
}
|
|
227
|
-
|
|
227
|
+
_chunk6EUZQHAFjs.__name.call(void 0, nextLineBreak, "nextLineBreak");
|
|
228
228
|
var nonASCIIwhitespace = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
229
229
|
var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
230
230
|
var ref = Object.prototype;
|
|
@@ -240,7 +240,7 @@ var regexpCache = /* @__PURE__ */ Object.create(null);
|
|
|
240
240
|
function wordsRegexp(words) {
|
|
241
241
|
return regexpCache[words] || (regexpCache[words] = new RegExp("^(?:" + words.replace(/ /g, "|") + ")$"));
|
|
242
242
|
}
|
|
243
|
-
|
|
243
|
+
_chunk6EUZQHAFjs.__name.call(void 0, wordsRegexp, "wordsRegexp");
|
|
244
244
|
function codePointToString(code) {
|
|
245
245
|
if (code <= 65535) {
|
|
246
246
|
return String.fromCharCode(code);
|
|
@@ -248,16 +248,16 @@ function codePointToString(code) {
|
|
|
248
248
|
code -= 65536;
|
|
249
249
|
return String.fromCharCode((code >> 10) + 55296, (code & 1023) + 56320);
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
_chunk6EUZQHAFjs.__name.call(void 0, codePointToString, "codePointToString");
|
|
252
252
|
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
|
253
|
-
var Position = /* @__PURE__ */
|
|
253
|
+
var Position = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function Position2(line, col) {
|
|
254
254
|
this.line = line;
|
|
255
255
|
this.column = col;
|
|
256
256
|
}, "Position");
|
|
257
|
-
Position.prototype.offset = /* @__PURE__ */
|
|
257
|
+
Position.prototype.offset = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function offset(n) {
|
|
258
258
|
return new Position(this.line, this.column + n);
|
|
259
259
|
}, "offset");
|
|
260
|
-
var SourceLocation = /* @__PURE__ */
|
|
260
|
+
var SourceLocation = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function SourceLocation2(p, start, end) {
|
|
261
261
|
this.start = start;
|
|
262
262
|
this.end = end;
|
|
263
263
|
if (p.sourceFile !== null) {
|
|
@@ -274,7 +274,7 @@ function getLineInfo(input, offset2) {
|
|
|
274
274
|
cur = nextBreak;
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
|
|
277
|
+
_chunk6EUZQHAFjs.__name.call(void 0, getLineInfo, "getLineInfo");
|
|
278
278
|
var defaultOptions = {
|
|
279
279
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
|
280
280
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
|
@@ -406,7 +406,7 @@ function getOptions(opts) {
|
|
|
406
406
|
}
|
|
407
407
|
return options;
|
|
408
408
|
}
|
|
409
|
-
|
|
409
|
+
_chunk6EUZQHAFjs.__name.call(void 0, getOptions, "getOptions");
|
|
410
410
|
function pushComment(options, array) {
|
|
411
411
|
return function(block, text, start, end, startLoc, endLoc) {
|
|
412
412
|
var comment = {
|
|
@@ -424,7 +424,7 @@ function pushComment(options, array) {
|
|
|
424
424
|
array.push(comment);
|
|
425
425
|
};
|
|
426
426
|
}
|
|
427
|
-
|
|
427
|
+
_chunk6EUZQHAFjs.__name.call(void 0, pushComment, "pushComment");
|
|
428
428
|
var SCOPE_TOP = 1;
|
|
429
429
|
var SCOPE_FUNCTION = 2;
|
|
430
430
|
var SCOPE_ASYNC = 4;
|
|
@@ -438,14 +438,14 @@ var SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
|
|
438
438
|
function functionFlags(async, generator) {
|
|
439
439
|
return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0);
|
|
440
440
|
}
|
|
441
|
-
|
|
441
|
+
_chunk6EUZQHAFjs.__name.call(void 0, functionFlags, "functionFlags");
|
|
442
442
|
var BIND_NONE = 0;
|
|
443
443
|
var BIND_VAR = 1;
|
|
444
444
|
var BIND_LEXICAL = 2;
|
|
445
445
|
var BIND_FUNCTION = 3;
|
|
446
446
|
var BIND_SIMPLE_CATCH = 4;
|
|
447
447
|
var BIND_OUTSIDE = 5;
|
|
448
|
-
var Parser = /* @__PURE__ */
|
|
448
|
+
var Parser = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function Parser2(options, input, startPos) {
|
|
449
449
|
this.options = options = getOptions(options);
|
|
450
450
|
this.sourceFile = options.sourceFile;
|
|
451
451
|
this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);
|
|
@@ -494,7 +494,7 @@ var Parser = /* @__PURE__ */ _chunkC4IRH3TZcjs.__name.call(void 0, function Pars
|
|
|
494
494
|
this.privateNameStack = [];
|
|
495
495
|
}, "Parser");
|
|
496
496
|
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 } };
|
|
497
|
-
Parser.prototype.parse = /* @__PURE__ */
|
|
497
|
+
Parser.prototype.parse = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function parse() {
|
|
498
498
|
var node = this.options.program || this.startNode();
|
|
499
499
|
this.nextToken();
|
|
500
500
|
return this.parseTopLevel(node);
|
|
@@ -541,7 +541,7 @@ prototypeAccessors.allowNewDotTarget.get = function() {
|
|
|
541
541
|
prototypeAccessors.inClassStaticBlock.get = function() {
|
|
542
542
|
return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
|
|
543
543
|
};
|
|
544
|
-
Parser.extend = /* @__PURE__ */
|
|
544
|
+
Parser.extend = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function extend() {
|
|
545
545
|
var plugins = [], len = arguments.length;
|
|
546
546
|
while (len--) plugins[len] = arguments[len];
|
|
547
547
|
var cls = this;
|
|
@@ -550,15 +550,15 @@ Parser.extend = /* @__PURE__ */ _chunkC4IRH3TZcjs.__name.call(void 0, function e
|
|
|
550
550
|
}
|
|
551
551
|
return cls;
|
|
552
552
|
}, "extend");
|
|
553
|
-
Parser.parse = /* @__PURE__ */
|
|
553
|
+
Parser.parse = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function parse2(input, options) {
|
|
554
554
|
return new this(options, input).parse();
|
|
555
555
|
}, "parse");
|
|
556
|
-
Parser.parseExpressionAt = /* @__PURE__ */
|
|
556
|
+
Parser.parseExpressionAt = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function parseExpressionAt(input, pos, options) {
|
|
557
557
|
var parser = new this(options, input, pos);
|
|
558
558
|
parser.nextToken();
|
|
559
559
|
return parser.parseExpression();
|
|
560
560
|
}, "parseExpressionAt");
|
|
561
|
-
Parser.tokenizer = /* @__PURE__ */
|
|
561
|
+
Parser.tokenizer = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function tokenizer(input, options) {
|
|
562
562
|
return new this(options, input);
|
|
563
563
|
}, "tokenizer");
|
|
564
564
|
Object.defineProperties(Parser.prototype, prototypeAccessors);
|
|
@@ -645,7 +645,7 @@ pp$9.expect = function(type) {
|
|
|
645
645
|
pp$9.unexpected = function(pos) {
|
|
646
646
|
this.raise(pos != null ? pos : this.start, "Unexpected token");
|
|
647
647
|
};
|
|
648
|
-
var DestructuringErrors = /* @__PURE__ */
|
|
648
|
+
var DestructuringErrors = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function DestructuringErrors2() {
|
|
649
649
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
650
650
|
}, "DestructuringErrors");
|
|
651
651
|
pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
|
|
@@ -1462,13 +1462,13 @@ function isPrivateNameConflicted(privateNameMap, element) {
|
|
|
1462
1462
|
return true;
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
|
-
|
|
1465
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isPrivateNameConflicted, "isPrivateNameConflicted");
|
|
1466
1466
|
function checkKeyName(node, name) {
|
|
1467
1467
|
var computed = node.computed;
|
|
1468
1468
|
var key = node.key;
|
|
1469
1469
|
return !computed && (key.type === "Identifier" && key.name === name || key.type === "Literal" && key.value === name);
|
|
1470
1470
|
}
|
|
1471
|
-
|
|
1471
|
+
_chunk6EUZQHAFjs.__name.call(void 0, checkKeyName, "checkKeyName");
|
|
1472
1472
|
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
1473
1473
|
if (this.options.ecmaVersion >= 11) {
|
|
1474
1474
|
if (this.eatContextual("as")) {
|
|
@@ -1994,7 +1994,7 @@ pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {
|
|
|
1994
1994
|
this.checkLValPattern(expr, bindingType, checkClashes);
|
|
1995
1995
|
}
|
|
1996
1996
|
};
|
|
1997
|
-
var TokContext = /* @__PURE__ */
|
|
1997
|
+
var TokContext = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function TokContext2(token, isExpr, preserveSpace, override, generator) {
|
|
1998
1998
|
this.token = token;
|
|
1999
1999
|
this.isExpr = !!isExpr;
|
|
2000
2000
|
this.preserveSpace = !!preserveSpace;
|
|
@@ -2384,11 +2384,11 @@ pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forIni
|
|
|
2384
2384
|
function isLocalVariableAccess(node) {
|
|
2385
2385
|
return node.type === "Identifier" || node.type === "ParenthesizedExpression" && isLocalVariableAccess(node.expression);
|
|
2386
2386
|
}
|
|
2387
|
-
|
|
2387
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isLocalVariableAccess, "isLocalVariableAccess");
|
|
2388
2388
|
function isPrivateFieldAccess(node) {
|
|
2389
2389
|
return node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" || node.type === "ChainExpression" && isPrivateFieldAccess(node.expression) || node.type === "ParenthesizedExpression" && isPrivateFieldAccess(node.expression);
|
|
2390
2390
|
}
|
|
2391
|
-
|
|
2391
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isPrivateFieldAccess, "isPrivateFieldAccess");
|
|
2392
2392
|
pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {
|
|
2393
2393
|
var startPos = this.start, startLoc = this.startLoc;
|
|
2394
2394
|
var expr = this.parseExprAtom(refDestructuringErrors, forInit);
|
|
@@ -3200,7 +3200,7 @@ pp$4.curPosition = function() {
|
|
|
3200
3200
|
}
|
|
3201
3201
|
};
|
|
3202
3202
|
var pp$3 = Parser.prototype;
|
|
3203
|
-
var Scope = /* @__PURE__ */
|
|
3203
|
+
var Scope = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function Scope2(flags) {
|
|
3204
3204
|
this.flags = flags;
|
|
3205
3205
|
this.var = [];
|
|
3206
3206
|
this.lexical = [];
|
|
@@ -3280,7 +3280,7 @@ pp$3.currentThisScope = function() {
|
|
|
3280
3280
|
}
|
|
3281
3281
|
}
|
|
3282
3282
|
};
|
|
3283
|
-
var Node = /* @__PURE__ */
|
|
3283
|
+
var Node = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function Node2(parser, pos, loc) {
|
|
3284
3284
|
this.type = "";
|
|
3285
3285
|
this.start = pos;
|
|
3286
3286
|
this.end = 0;
|
|
@@ -3312,7 +3312,7 @@ function finishNodeAt(node, type, pos, loc) {
|
|
|
3312
3312
|
}
|
|
3313
3313
|
return node;
|
|
3314
3314
|
}
|
|
3315
|
-
|
|
3315
|
+
_chunk6EUZQHAFjs.__name.call(void 0, finishNodeAt, "finishNodeAt");
|
|
3316
3316
|
pp$2.finishNode = function(node, type) {
|
|
3317
3317
|
return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);
|
|
3318
3318
|
};
|
|
@@ -3380,7 +3380,7 @@ function buildUnicodeData(ecmaVersion) {
|
|
|
3380
3380
|
d2.nonBinary.sc = d2.nonBinary.Script;
|
|
3381
3381
|
d2.nonBinary.scx = d2.nonBinary.Script_Extensions;
|
|
3382
3382
|
}
|
|
3383
|
-
|
|
3383
|
+
_chunk6EUZQHAFjs.__name.call(void 0, buildUnicodeData, "buildUnicodeData");
|
|
3384
3384
|
for (i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) {
|
|
3385
3385
|
ecmaVersion = list[i];
|
|
3386
3386
|
buildUnicodeData(ecmaVersion);
|
|
@@ -3389,11 +3389,11 @@ var ecmaVersion;
|
|
|
3389
3389
|
var i;
|
|
3390
3390
|
var list;
|
|
3391
3391
|
var pp$1 = Parser.prototype;
|
|
3392
|
-
var BranchID = /* @__PURE__ */
|
|
3392
|
+
var BranchID = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function BranchID2(parent, base) {
|
|
3393
3393
|
this.parent = parent;
|
|
3394
3394
|
this.base = base || this;
|
|
3395
3395
|
}, "BranchID");
|
|
3396
|
-
BranchID.prototype.separatedFrom = /* @__PURE__ */
|
|
3396
|
+
BranchID.prototype.separatedFrom = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function separatedFrom(alt) {
|
|
3397
3397
|
for (var self = this; self; self = self.parent) {
|
|
3398
3398
|
for (var other = alt; other; other = other.parent) {
|
|
3399
3399
|
if (self.base === other.base && self !== other) {
|
|
@@ -3403,10 +3403,10 @@ BranchID.prototype.separatedFrom = /* @__PURE__ */ _chunkC4IRH3TZcjs.__name.call
|
|
|
3403
3403
|
}
|
|
3404
3404
|
return false;
|
|
3405
3405
|
}, "separatedFrom");
|
|
3406
|
-
BranchID.prototype.sibling = /* @__PURE__ */
|
|
3406
|
+
BranchID.prototype.sibling = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function sibling() {
|
|
3407
3407
|
return new BranchID(this.parent, this.base);
|
|
3408
3408
|
}, "sibling");
|
|
3409
|
-
var RegExpValidationState = /* @__PURE__ */
|
|
3409
|
+
var RegExpValidationState = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function RegExpValidationState2(parser) {
|
|
3410
3410
|
this.parser = parser;
|
|
3411
3411
|
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
3412
3412
|
this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
@@ -3426,7 +3426,7 @@ var RegExpValidationState = /* @__PURE__ */ _chunkC4IRH3TZcjs.__name.call(void 0
|
|
|
3426
3426
|
this.backReferenceNames = [];
|
|
3427
3427
|
this.branchID = null;
|
|
3428
3428
|
}, "RegExpValidationState");
|
|
3429
|
-
RegExpValidationState.prototype.reset = /* @__PURE__ */
|
|
3429
|
+
RegExpValidationState.prototype.reset = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function reset(start, pattern, flags) {
|
|
3430
3430
|
var unicodeSets = flags.indexOf("v") !== -1;
|
|
3431
3431
|
var unicode = flags.indexOf("u") !== -1;
|
|
3432
3432
|
this.start = start | 0;
|
|
@@ -3442,10 +3442,10 @@ RegExpValidationState.prototype.reset = /* @__PURE__ */ _chunkC4IRH3TZcjs.__name
|
|
|
3442
3442
|
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
3443
3443
|
}
|
|
3444
3444
|
}, "reset");
|
|
3445
|
-
RegExpValidationState.prototype.raise = /* @__PURE__ */
|
|
3445
|
+
RegExpValidationState.prototype.raise = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function raise(message) {
|
|
3446
3446
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
3447
3447
|
}, "raise");
|
|
3448
|
-
RegExpValidationState.prototype.at = /* @__PURE__ */
|
|
3448
|
+
RegExpValidationState.prototype.at = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function at(i, forceU) {
|
|
3449
3449
|
if (forceU === void 0) forceU = false;
|
|
3450
3450
|
var s = this.source;
|
|
3451
3451
|
var l = s.length;
|
|
@@ -3459,7 +3459,7 @@ RegExpValidationState.prototype.at = /* @__PURE__ */ _chunkC4IRH3TZcjs.__name.ca
|
|
|
3459
3459
|
var next = s.charCodeAt(i + 1);
|
|
3460
3460
|
return next >= 56320 && next <= 57343 ? (c << 10) + next - 56613888 : c;
|
|
3461
3461
|
}, "at");
|
|
3462
|
-
RegExpValidationState.prototype.nextIndex = /* @__PURE__ */
|
|
3462
|
+
RegExpValidationState.prototype.nextIndex = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function nextIndex(i, forceU) {
|
|
3463
3463
|
if (forceU === void 0) forceU = false;
|
|
3464
3464
|
var s = this.source;
|
|
3465
3465
|
var l = s.length;
|
|
@@ -3472,19 +3472,19 @@ RegExpValidationState.prototype.nextIndex = /* @__PURE__ */ _chunkC4IRH3TZcjs.__
|
|
|
3472
3472
|
}
|
|
3473
3473
|
return i + 2;
|
|
3474
3474
|
}, "nextIndex");
|
|
3475
|
-
RegExpValidationState.prototype.current = /* @__PURE__ */
|
|
3475
|
+
RegExpValidationState.prototype.current = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function current(forceU) {
|
|
3476
3476
|
if (forceU === void 0) forceU = false;
|
|
3477
3477
|
return this.at(this.pos, forceU);
|
|
3478
3478
|
}, "current");
|
|
3479
|
-
RegExpValidationState.prototype.lookahead = /* @__PURE__ */
|
|
3479
|
+
RegExpValidationState.prototype.lookahead = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function lookahead(forceU) {
|
|
3480
3480
|
if (forceU === void 0) forceU = false;
|
|
3481
3481
|
return this.at(this.nextIndex(this.pos, forceU), forceU);
|
|
3482
3482
|
}, "lookahead");
|
|
3483
|
-
RegExpValidationState.prototype.advance = /* @__PURE__ */
|
|
3483
|
+
RegExpValidationState.prototype.advance = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function advance(forceU) {
|
|
3484
3484
|
if (forceU === void 0) forceU = false;
|
|
3485
3485
|
this.pos = this.nextIndex(this.pos, forceU);
|
|
3486
3486
|
}, "advance");
|
|
3487
|
-
RegExpValidationState.prototype.eat = /* @__PURE__ */
|
|
3487
|
+
RegExpValidationState.prototype.eat = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function eat(ch, forceU) {
|
|
3488
3488
|
if (forceU === void 0) forceU = false;
|
|
3489
3489
|
if (this.current(forceU) === ch) {
|
|
3490
3490
|
this.advance(forceU);
|
|
@@ -3492,7 +3492,7 @@ RegExpValidationState.prototype.eat = /* @__PURE__ */ _chunkC4IRH3TZcjs.__name.c
|
|
|
3492
3492
|
}
|
|
3493
3493
|
return false;
|
|
3494
3494
|
}, "eat");
|
|
3495
|
-
RegExpValidationState.prototype.eatChars = /* @__PURE__ */
|
|
3495
|
+
RegExpValidationState.prototype.eatChars = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function eatChars(chs, forceU) {
|
|
3496
3496
|
if (forceU === void 0) forceU = false;
|
|
3497
3497
|
var pos = this.pos;
|
|
3498
3498
|
for (var i = 0, list = chs; i < list.length; i += 1) {
|
|
@@ -3536,7 +3536,7 @@ function hasProp(obj) {
|
|
|
3536
3536
|
}
|
|
3537
3537
|
return false;
|
|
3538
3538
|
}
|
|
3539
|
-
|
|
3539
|
+
_chunk6EUZQHAFjs.__name.call(void 0, hasProp, "hasProp");
|
|
3540
3540
|
pp$1.validateRegExpPattern = function(state) {
|
|
3541
3541
|
this.regexp_pattern(state);
|
|
3542
3542
|
if (!state.switchN && this.options.ecmaVersion >= 9 && hasProp(state.groupNames)) {
|
|
@@ -3854,7 +3854,7 @@ pp$1.regexp_eatModifiers = function(state) {
|
|
|
3854
3854
|
function isRegularExpressionModifier(ch) {
|
|
3855
3855
|
return ch === 105 || ch === 109 || ch === 115;
|
|
3856
3856
|
}
|
|
3857
|
-
|
|
3857
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isRegularExpressionModifier, "isRegularExpressionModifier");
|
|
3858
3858
|
pp$1.regexp_eatExtendedAtom = function(state) {
|
|
3859
3859
|
return state.eat(
|
|
3860
3860
|
46
|
|
@@ -3879,7 +3879,7 @@ pp$1.regexp_eatSyntaxCharacter = function(state) {
|
|
|
3879
3879
|
function isSyntaxCharacter(ch) {
|
|
3880
3880
|
return ch === 36 || ch >= 40 && ch <= 43 || ch === 46 || ch === 63 || ch >= 91 && ch <= 94 || ch >= 123 && ch <= 125;
|
|
3881
3881
|
}
|
|
3882
|
-
|
|
3882
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isSyntaxCharacter, "isSyntaxCharacter");
|
|
3883
3883
|
pp$1.regexp_eatPatternCharacters = function(state) {
|
|
3884
3884
|
var start = state.pos;
|
|
3885
3885
|
var ch = 0;
|
|
@@ -3970,7 +3970,7 @@ pp$1.regexp_eatRegExpIdentifierStart = function(state) {
|
|
|
3970
3970
|
function isRegExpIdentifierStart(ch) {
|
|
3971
3971
|
return isIdentifierStart(ch, true) || ch === 36 || ch === 95;
|
|
3972
3972
|
}
|
|
3973
|
-
|
|
3973
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isRegExpIdentifierStart, "isRegExpIdentifierStart");
|
|
3974
3974
|
pp$1.regexp_eatRegExpIdentifierPart = function(state) {
|
|
3975
3975
|
var start = state.pos;
|
|
3976
3976
|
var forceU = this.options.ecmaVersion >= 11;
|
|
@@ -3989,7 +3989,7 @@ pp$1.regexp_eatRegExpIdentifierPart = function(state) {
|
|
|
3989
3989
|
function isRegExpIdentifierPart(ch) {
|
|
3990
3990
|
return isIdentifierChar(ch, true) || ch === 36 || ch === 95 || ch === 8204 || ch === 8205;
|
|
3991
3991
|
}
|
|
3992
|
-
|
|
3992
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isRegExpIdentifierPart, "isRegExpIdentifierPart");
|
|
3993
3993
|
pp$1.regexp_eatAtomEscape = function(state) {
|
|
3994
3994
|
if (this.regexp_eatBackReference(state) || this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state) || state.switchN && this.regexp_eatKGroupName(state)) {
|
|
3995
3995
|
return true;
|
|
@@ -4097,7 +4097,7 @@ pp$1.regexp_eatControlLetter = function(state) {
|
|
|
4097
4097
|
function isControlLetter(ch) {
|
|
4098
4098
|
return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122;
|
|
4099
4099
|
}
|
|
4100
|
-
|
|
4100
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isControlLetter, "isControlLetter");
|
|
4101
4101
|
pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
|
|
4102
4102
|
if (forceU === void 0) forceU = false;
|
|
4103
4103
|
var start = state.pos;
|
|
@@ -4147,7 +4147,7 @@ pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
|
|
|
4147
4147
|
function isValidUnicode(ch) {
|
|
4148
4148
|
return ch >= 0 && ch <= 1114111;
|
|
4149
4149
|
}
|
|
4150
|
-
|
|
4150
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isValidUnicode, "isValidUnicode");
|
|
4151
4151
|
pp$1.regexp_eatIdentityEscape = function(state) {
|
|
4152
4152
|
if (state.switchU) {
|
|
4153
4153
|
if (this.regexp_eatSyntaxCharacter(state)) {
|
|
@@ -4216,7 +4216,7 @@ pp$1.regexp_eatCharacterClassEscape = function(state) {
|
|
|
4216
4216
|
function isCharacterClassEscape(ch) {
|
|
4217
4217
|
return ch === 100 || ch === 68 || ch === 115 || ch === 83 || ch === 119 || ch === 87;
|
|
4218
4218
|
}
|
|
4219
|
-
|
|
4219
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isCharacterClassEscape, "isCharacterClassEscape");
|
|
4220
4220
|
pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {
|
|
4221
4221
|
var start = state.pos;
|
|
4222
4222
|
if (this.regexp_eatUnicodePropertyName(state) && state.eat(
|
|
@@ -4266,7 +4266,7 @@ pp$1.regexp_eatUnicodePropertyName = function(state) {
|
|
|
4266
4266
|
function isUnicodePropertyNameCharacter(ch) {
|
|
4267
4267
|
return isControlLetter(ch) || ch === 95;
|
|
4268
4268
|
}
|
|
4269
|
-
|
|
4269
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isUnicodePropertyNameCharacter, "isUnicodePropertyNameCharacter");
|
|
4270
4270
|
pp$1.regexp_eatUnicodePropertyValue = function(state) {
|
|
4271
4271
|
var ch = 0;
|
|
4272
4272
|
state.lastStringValue = "";
|
|
@@ -4279,7 +4279,7 @@ pp$1.regexp_eatUnicodePropertyValue = function(state) {
|
|
|
4279
4279
|
function isUnicodePropertyValueCharacter(ch) {
|
|
4280
4280
|
return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch);
|
|
4281
4281
|
}
|
|
4282
|
-
|
|
4282
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isUnicodePropertyValueCharacter, "isUnicodePropertyValueCharacter");
|
|
4283
4283
|
pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {
|
|
4284
4284
|
return this.regexp_eatUnicodePropertyValue(state);
|
|
4285
4285
|
};
|
|
@@ -4571,11 +4571,11 @@ pp$1.regexp_eatClassSetCharacter = function(state) {
|
|
|
4571
4571
|
function isClassSetReservedDoublePunctuatorCharacter(ch) {
|
|
4572
4572
|
return ch === 33 || ch >= 35 && ch <= 38 || ch >= 42 && ch <= 44 || ch === 46 || ch >= 58 && ch <= 64 || ch === 94 || ch === 96 || ch === 126;
|
|
4573
4573
|
}
|
|
4574
|
-
|
|
4574
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isClassSetReservedDoublePunctuatorCharacter, "isClassSetReservedDoublePunctuatorCharacter");
|
|
4575
4575
|
function isClassSetSyntaxCharacter(ch) {
|
|
4576
4576
|
return ch === 40 || ch === 41 || ch === 45 || ch === 47 || ch >= 91 && ch <= 93 || ch >= 123 && ch <= 125;
|
|
4577
4577
|
}
|
|
4578
|
-
|
|
4578
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isClassSetSyntaxCharacter, "isClassSetSyntaxCharacter");
|
|
4579
4579
|
pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
4580
4580
|
var ch = state.current();
|
|
4581
4581
|
if (isClassSetReservedPunctuator(ch)) {
|
|
@@ -4588,7 +4588,7 @@ pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
|
4588
4588
|
function isClassSetReservedPunctuator(ch) {
|
|
4589
4589
|
return ch === 33 || ch === 35 || ch === 37 || ch === 38 || ch === 44 || ch === 45 || ch >= 58 && ch <= 62 || ch === 64 || ch === 96 || ch === 126;
|
|
4590
4590
|
}
|
|
4591
|
-
|
|
4591
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isClassSetReservedPunctuator, "isClassSetReservedPunctuator");
|
|
4592
4592
|
pp$1.regexp_eatClassControlLetter = function(state) {
|
|
4593
4593
|
var ch = state.current();
|
|
4594
4594
|
if (isDecimalDigit(ch) || ch === 95) {
|
|
@@ -4627,7 +4627,7 @@ pp$1.regexp_eatDecimalDigits = function(state) {
|
|
|
4627
4627
|
function isDecimalDigit(ch) {
|
|
4628
4628
|
return ch >= 48 && ch <= 57;
|
|
4629
4629
|
}
|
|
4630
|
-
|
|
4630
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isDecimalDigit, "isDecimalDigit");
|
|
4631
4631
|
pp$1.regexp_eatHexDigits = function(state) {
|
|
4632
4632
|
var start = state.pos;
|
|
4633
4633
|
var ch = 0;
|
|
@@ -4641,7 +4641,7 @@ pp$1.regexp_eatHexDigits = function(state) {
|
|
|
4641
4641
|
function isHexDigit(ch) {
|
|
4642
4642
|
return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102;
|
|
4643
4643
|
}
|
|
4644
|
-
|
|
4644
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isHexDigit, "isHexDigit");
|
|
4645
4645
|
function hexToInt(ch) {
|
|
4646
4646
|
if (ch >= 65 && ch <= 70) {
|
|
4647
4647
|
return 10 + (ch - 65);
|
|
@@ -4651,7 +4651,7 @@ function hexToInt(ch) {
|
|
|
4651
4651
|
}
|
|
4652
4652
|
return ch - 48;
|
|
4653
4653
|
}
|
|
4654
|
-
|
|
4654
|
+
_chunk6EUZQHAFjs.__name.call(void 0, hexToInt, "hexToInt");
|
|
4655
4655
|
pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {
|
|
4656
4656
|
if (this.regexp_eatOctalDigit(state)) {
|
|
4657
4657
|
var n1 = state.lastIntValue;
|
|
@@ -4682,7 +4682,7 @@ pp$1.regexp_eatOctalDigit = function(state) {
|
|
|
4682
4682
|
function isOctalDigit(ch) {
|
|
4683
4683
|
return ch >= 48 && ch <= 55;
|
|
4684
4684
|
}
|
|
4685
|
-
|
|
4685
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isOctalDigit, "isOctalDigit");
|
|
4686
4686
|
pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
4687
4687
|
var start = state.pos;
|
|
4688
4688
|
state.lastIntValue = 0;
|
|
@@ -4697,7 +4697,7 @@ pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
|
4697
4697
|
}
|
|
4698
4698
|
return true;
|
|
4699
4699
|
};
|
|
4700
|
-
var Token = /* @__PURE__ */
|
|
4700
|
+
var Token = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function Token2(p) {
|
|
4701
4701
|
this.type = p.type;
|
|
4702
4702
|
this.value = p.value;
|
|
4703
4703
|
this.start = p.start;
|
|
@@ -4731,7 +4731,7 @@ if (typeof Symbol !== "undefined") {
|
|
|
4731
4731
|
pp[Symbol.iterator] = function() {
|
|
4732
4732
|
var this$1$1 = this;
|
|
4733
4733
|
return {
|
|
4734
|
-
next: /* @__PURE__ */
|
|
4734
|
+
next: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function() {
|
|
4735
4735
|
var token = this$1$1.getToken();
|
|
4736
4736
|
return {
|
|
4737
4737
|
done: token.type === types$1.eof,
|
|
@@ -5205,14 +5205,14 @@ function stringToNumber(str, isLegacyOctalNumericLiteral) {
|
|
|
5205
5205
|
}
|
|
5206
5206
|
return parseFloat(str.replace(/_/g, ""));
|
|
5207
5207
|
}
|
|
5208
|
-
|
|
5208
|
+
_chunk6EUZQHAFjs.__name.call(void 0, stringToNumber, "stringToNumber");
|
|
5209
5209
|
function stringToBigInt(str) {
|
|
5210
5210
|
if (typeof BigInt !== "function") {
|
|
5211
5211
|
return null;
|
|
5212
5212
|
}
|
|
5213
5213
|
return BigInt(str.replace(/_/g, ""));
|
|
5214
5214
|
}
|
|
5215
|
-
|
|
5215
|
+
_chunk6EUZQHAFjs.__name.call(void 0, stringToBigInt, "stringToBigInt");
|
|
5216
5216
|
pp.readRadixNumber = function(radix) {
|
|
5217
5217
|
var start = this.pos;
|
|
5218
5218
|
this.pos += 2;
|
|
@@ -5569,9 +5569,9 @@ Parser.acorn = {
|
|
|
5569
5569
|
function tokenizer2(input, options) {
|
|
5570
5570
|
return Parser.tokenizer(input, options);
|
|
5571
5571
|
}
|
|
5572
|
-
|
|
5572
|
+
_chunk6EUZQHAFjs.__name.call(void 0, tokenizer2, "tokenizer");
|
|
5573
5573
|
|
|
5574
|
-
// ../../node_modules/.pnpm/mlly@1.7.
|
|
5574
|
+
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
5575
5575
|
var _module = require('module');
|
|
5576
5576
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
5577
5577
|
|
|
@@ -5585,7 +5585,7 @@ function hasTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
5585
5585
|
}
|
|
5586
5586
|
return TRAILING_SLASH_RE.test(input);
|
|
5587
5587
|
}
|
|
5588
|
-
|
|
5588
|
+
_chunk6EUZQHAFjs.__name.call(void 0, hasTrailingSlash, "hasTrailingSlash");
|
|
5589
5589
|
function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
5590
5590
|
if (!respectQueryAndFragment) {
|
|
5591
5591
|
return input.endsWith("/") ? input : input + "/";
|
|
@@ -5593,24 +5593,24 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
5593
5593
|
if (hasTrailingSlash(input, true)) {
|
|
5594
5594
|
return input || "/";
|
|
5595
5595
|
}
|
|
5596
|
-
let
|
|
5596
|
+
let path2 = input;
|
|
5597
5597
|
let fragment = "";
|
|
5598
5598
|
const fragmentIndex = input.indexOf("#");
|
|
5599
5599
|
if (fragmentIndex >= 0) {
|
|
5600
|
-
|
|
5600
|
+
path2 = input.slice(0, fragmentIndex);
|
|
5601
5601
|
fragment = input.slice(fragmentIndex);
|
|
5602
|
-
if (!
|
|
5602
|
+
if (!path2) {
|
|
5603
5603
|
return fragment;
|
|
5604
5604
|
}
|
|
5605
5605
|
}
|
|
5606
|
-
const [s0, ...s] =
|
|
5606
|
+
const [s0, ...s] = path2.split("?");
|
|
5607
5607
|
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
5608
5608
|
}
|
|
5609
|
-
|
|
5609
|
+
_chunk6EUZQHAFjs.__name.call(void 0, withTrailingSlash, "withTrailingSlash");
|
|
5610
5610
|
function isNonEmptyURL(url) {
|
|
5611
5611
|
return url && url !== "/";
|
|
5612
5612
|
}
|
|
5613
|
-
|
|
5613
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isNonEmptyURL, "isNonEmptyURL");
|
|
5614
5614
|
function joinURL(base, ...input) {
|
|
5615
5615
|
let url = base || "";
|
|
5616
5616
|
for (const segment of input.filter((url2) => isNonEmptyURL(url2))) {
|
|
@@ -5623,10 +5623,10 @@ function joinURL(base, ...input) {
|
|
|
5623
5623
|
}
|
|
5624
5624
|
return url;
|
|
5625
5625
|
}
|
|
5626
|
-
|
|
5626
|
+
_chunk6EUZQHAFjs.__name.call(void 0, joinURL, "joinURL");
|
|
5627
5627
|
var protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
5628
5628
|
|
|
5629
|
-
// ../../node_modules/.pnpm/pathe@
|
|
5629
|
+
// ../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs
|
|
5630
5630
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
5631
5631
|
function normalizeWindowsPath(input = "") {
|
|
5632
5632
|
if (!input) {
|
|
@@ -5634,58 +5634,61 @@ function normalizeWindowsPath(input = "") {
|
|
|
5634
5634
|
}
|
|
5635
5635
|
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r3) => r3.toUpperCase());
|
|
5636
5636
|
}
|
|
5637
|
-
|
|
5637
|
+
_chunk6EUZQHAFjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath");
|
|
5638
5638
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
5639
5639
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
5640
5640
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
5641
5641
|
var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
5642
|
-
var
|
|
5643
|
-
|
|
5642
|
+
var _EXTNAME_RE = /.(\.[^./]+)$/;
|
|
5643
|
+
var normalize = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function(path2) {
|
|
5644
|
+
if (path2.length === 0) {
|
|
5644
5645
|
return ".";
|
|
5645
5646
|
}
|
|
5646
|
-
|
|
5647
|
-
const isUNCPath =
|
|
5648
|
-
const isPathAbsolute = isAbsolute(
|
|
5649
|
-
const trailingSeparator =
|
|
5650
|
-
|
|
5651
|
-
if (
|
|
5647
|
+
path2 = normalizeWindowsPath(path2);
|
|
5648
|
+
const isUNCPath = path2.match(_UNC_REGEX);
|
|
5649
|
+
const isPathAbsolute = isAbsolute(path2);
|
|
5650
|
+
const trailingSeparator = path2[path2.length - 1] === "/";
|
|
5651
|
+
path2 = normalizeString(path2, !isPathAbsolute);
|
|
5652
|
+
if (path2.length === 0) {
|
|
5652
5653
|
if (isPathAbsolute) {
|
|
5653
5654
|
return "/";
|
|
5654
5655
|
}
|
|
5655
5656
|
return trailingSeparator ? "./" : ".";
|
|
5656
5657
|
}
|
|
5657
5658
|
if (trailingSeparator) {
|
|
5658
|
-
|
|
5659
|
+
path2 += "/";
|
|
5659
5660
|
}
|
|
5660
|
-
if (_DRIVE_LETTER_RE.test(
|
|
5661
|
-
|
|
5661
|
+
if (_DRIVE_LETTER_RE.test(path2)) {
|
|
5662
|
+
path2 += "/";
|
|
5662
5663
|
}
|
|
5663
5664
|
if (isUNCPath) {
|
|
5664
5665
|
if (!isPathAbsolute) {
|
|
5665
|
-
return `//./${
|
|
5666
|
+
return `//./${path2}`;
|
|
5666
5667
|
}
|
|
5667
|
-
return `//${
|
|
5668
|
+
return `//${path2}`;
|
|
5668
5669
|
}
|
|
5669
|
-
return isPathAbsolute && !isAbsolute(
|
|
5670
|
+
return isPathAbsolute && !isAbsolute(path2) ? `/${path2}` : path2;
|
|
5670
5671
|
}, "normalize");
|
|
5671
|
-
var join = /* @__PURE__ */
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
if (
|
|
5678
|
-
|
|
5679
|
-
|
|
5672
|
+
var join = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function(...segments) {
|
|
5673
|
+
let path2 = "";
|
|
5674
|
+
for (const seg of segments) {
|
|
5675
|
+
if (!seg) {
|
|
5676
|
+
continue;
|
|
5677
|
+
}
|
|
5678
|
+
if (path2.length > 0) {
|
|
5679
|
+
const pathTrailing = path2[path2.length - 1] === "/";
|
|
5680
|
+
const segLeading = seg[0] === "/";
|
|
5681
|
+
const both = pathTrailing && segLeading;
|
|
5682
|
+
if (both) {
|
|
5683
|
+
path2 += seg.slice(1);
|
|
5680
5684
|
} else {
|
|
5681
|
-
|
|
5685
|
+
path2 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
5682
5686
|
}
|
|
5687
|
+
} else {
|
|
5688
|
+
path2 += seg;
|
|
5683
5689
|
}
|
|
5684
5690
|
}
|
|
5685
|
-
|
|
5686
|
-
return ".";
|
|
5687
|
-
}
|
|
5688
|
-
return normalize(joined.replace(/\/\/+/g, "/"));
|
|
5691
|
+
return normalize(path2);
|
|
5689
5692
|
}, "join");
|
|
5690
5693
|
function cwd() {
|
|
5691
5694
|
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
@@ -5693,18 +5696,18 @@ function cwd() {
|
|
|
5693
5696
|
}
|
|
5694
5697
|
return "/";
|
|
5695
5698
|
}
|
|
5696
|
-
|
|
5697
|
-
var resolve = /* @__PURE__ */
|
|
5699
|
+
_chunk6EUZQHAFjs.__name.call(void 0, cwd, "cwd");
|
|
5700
|
+
var resolve = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function(...arguments_) {
|
|
5698
5701
|
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
5699
5702
|
let resolvedPath = "";
|
|
5700
5703
|
let resolvedAbsolute = false;
|
|
5701
5704
|
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
5702
|
-
const
|
|
5703
|
-
if (!
|
|
5705
|
+
const path2 = index >= 0 ? arguments_[index] : cwd();
|
|
5706
|
+
if (!path2 || path2.length === 0) {
|
|
5704
5707
|
continue;
|
|
5705
5708
|
}
|
|
5706
|
-
resolvedPath = `${
|
|
5707
|
-
resolvedAbsolute = isAbsolute(
|
|
5709
|
+
resolvedPath = `${path2}/${resolvedPath}`;
|
|
5710
|
+
resolvedAbsolute = isAbsolute(path2);
|
|
5708
5711
|
}
|
|
5709
5712
|
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
5710
5713
|
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
|
|
@@ -5712,15 +5715,15 @@ var resolve = /* @__PURE__ */ _chunkC4IRH3TZcjs.__name.call(void 0, function(...
|
|
|
5712
5715
|
}
|
|
5713
5716
|
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
5714
5717
|
}, "resolve");
|
|
5715
|
-
function normalizeString(
|
|
5718
|
+
function normalizeString(path2, allowAboveRoot) {
|
|
5716
5719
|
let res = "";
|
|
5717
5720
|
let lastSegmentLength = 0;
|
|
5718
5721
|
let lastSlash = -1;
|
|
5719
5722
|
let dots = 0;
|
|
5720
5723
|
let char = null;
|
|
5721
|
-
for (let index = 0; index <=
|
|
5722
|
-
if (index <
|
|
5723
|
-
char =
|
|
5724
|
+
for (let index = 0; index <= path2.length; ++index) {
|
|
5725
|
+
if (index < path2.length) {
|
|
5726
|
+
char = path2[index];
|
|
5724
5727
|
} else if (char === "/") {
|
|
5725
5728
|
break;
|
|
5726
5729
|
} else {
|
|
@@ -5756,9 +5759,9 @@ function normalizeString(path3, allowAboveRoot) {
|
|
|
5756
5759
|
}
|
|
5757
5760
|
} else {
|
|
5758
5761
|
if (res.length > 0) {
|
|
5759
|
-
res += `/${
|
|
5762
|
+
res += `/${path2.slice(lastSlash + 1, index)}`;
|
|
5760
5763
|
} else {
|
|
5761
|
-
res =
|
|
5764
|
+
res = path2.slice(lastSlash + 1, index);
|
|
5762
5765
|
}
|
|
5763
5766
|
lastSegmentLength = index - lastSlash - 1;
|
|
5764
5767
|
}
|
|
@@ -5772,16 +5775,15 @@ function normalizeString(path3, allowAboveRoot) {
|
|
|
5772
5775
|
}
|
|
5773
5776
|
return res;
|
|
5774
5777
|
}
|
|
5775
|
-
|
|
5776
|
-
var isAbsolute = /* @__PURE__ */
|
|
5778
|
+
_chunk6EUZQHAFjs.__name.call(void 0, normalizeString, "normalizeString");
|
|
5779
|
+
var isAbsolute = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function(p) {
|
|
5777
5780
|
return _IS_ABSOLUTE_RE.test(p);
|
|
5778
5781
|
}, "isAbsolute");
|
|
5779
|
-
var
|
|
5780
|
-
var extname = /* @__PURE__ */ _chunkC4IRH3TZcjs.__name.call(void 0, function(p) {
|
|
5782
|
+
var extname = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function(p) {
|
|
5781
5783
|
const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
|
|
5782
5784
|
return match && match[1] || "";
|
|
5783
5785
|
}, "extname");
|
|
5784
|
-
var relative = /* @__PURE__ */
|
|
5786
|
+
var relative = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function(from, to) {
|
|
5785
5787
|
const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
5786
5788
|
const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
5787
5789
|
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
|
|
@@ -5797,19 +5799,15 @@ var relative = /* @__PURE__ */ _chunkC4IRH3TZcjs.__name.call(void 0, function(fr
|
|
|
5797
5799
|
}
|
|
5798
5800
|
return [..._from.map(() => ".."), ..._to].join("/");
|
|
5799
5801
|
}, "relative");
|
|
5800
|
-
var dirname = /* @__PURE__ */
|
|
5802
|
+
var dirname = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function(p) {
|
|
5801
5803
|
const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
|
|
5802
5804
|
if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
|
|
5803
5805
|
segments[0] += "/";
|
|
5804
5806
|
}
|
|
5805
5807
|
return segments.join("/") || (isAbsolute(p) ? "/" : ".");
|
|
5806
5808
|
}, "dirname");
|
|
5807
|
-
var basename = /* @__PURE__ */ _chunkC4IRH3TZcjs.__name.call(void 0, function(p, extension) {
|
|
5808
|
-
const lastSegment = normalizeWindowsPath(p).split("/").pop();
|
|
5809
|
-
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
5810
|
-
}, "basename");
|
|
5811
5809
|
|
|
5812
|
-
// ../../node_modules/.pnpm/pkg-types@1.3.
|
|
5810
|
+
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
5813
5811
|
|
|
5814
5812
|
|
|
5815
5813
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
|
|
@@ -5820,11 +5818,11 @@ function x(e, t = {}) {
|
|
|
5820
5818
|
const n = t.indent === void 0 && t.preserveIndentation !== false && e.slice(0, _optionalChain([t, 'optionalAccess', _10 => _10.sampleSize]) || 1024), i = t.preserveWhitespace === false ? void 0 : { start: _optionalChain([k, 'access', _11 => _11.exec, 'call', _12 => _12(e), 'optionalAccess', _13 => _13[0]]) || "", end: _optionalChain([v, 'access', _14 => _14.exec, 'call', _15 => _15(e), 'optionalAccess', _16 => _16[0]]) || "" };
|
|
5821
5819
|
return { sample: n, whiteSpace: i };
|
|
5822
5820
|
}
|
|
5823
|
-
|
|
5821
|
+
_chunk6EUZQHAFjs.__name.call(void 0, x, "x");
|
|
5824
5822
|
function N(e, t, n) {
|
|
5825
5823
|
!t || typeof t != "object" || Object.defineProperty(t, m, { enumerable: false, configurable: true, writable: true, value: x(e, n) });
|
|
5826
5824
|
}
|
|
5827
|
-
|
|
5825
|
+
_chunk6EUZQHAFjs.__name.call(void 0, N, "N");
|
|
5828
5826
|
|
|
5829
5827
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.f9f03f05.mjs
|
|
5830
5828
|
function $(n, l = false) {
|
|
@@ -5842,11 +5840,11 @@ function $(n, l = false) {
|
|
|
5842
5840
|
}
|
|
5843
5841
|
return s < i && (c = -1), c;
|
|
5844
5842
|
}
|
|
5845
|
-
|
|
5843
|
+
_chunk6EUZQHAFjs.__name.call(void 0, I, "I");
|
|
5846
5844
|
function V(i) {
|
|
5847
5845
|
e = i, u = "", p = 0, k2 = 16, b = 0;
|
|
5848
5846
|
}
|
|
5849
|
-
|
|
5847
|
+
_chunk6EUZQHAFjs.__name.call(void 0, V, "V");
|
|
5850
5848
|
function F() {
|
|
5851
5849
|
let i = e;
|
|
5852
5850
|
if (n.charCodeAt(e) === 48) e++;
|
|
@@ -5860,7 +5858,7 @@ function $(n, l = false) {
|
|
|
5860
5858
|
} else b = 3;
|
|
5861
5859
|
return n.substring(i, T);
|
|
5862
5860
|
}
|
|
5863
|
-
|
|
5861
|
+
_chunk6EUZQHAFjs.__name.call(void 0, F, "F");
|
|
5864
5862
|
function j() {
|
|
5865
5863
|
let i = "", T = e;
|
|
5866
5864
|
for (; ; ) {
|
|
@@ -5922,7 +5920,7 @@ function $(n, l = false) {
|
|
|
5922
5920
|
}
|
|
5923
5921
|
return i;
|
|
5924
5922
|
}
|
|
5925
|
-
|
|
5923
|
+
_chunk6EUZQHAFjs.__name.call(void 0, j, "j");
|
|
5926
5924
|
function w() {
|
|
5927
5925
|
if (u = "", b = 0, p = e, o = A, B = O, e >= g) return p = g, k2 = 17;
|
|
5928
5926
|
let i = n.charCodeAt(e);
|
|
@@ -5999,7 +5997,7 @@ function $(n, l = false) {
|
|
|
5999
5997
|
return u += String.fromCharCode(i), e++, k2 = 16;
|
|
6000
5998
|
}
|
|
6001
5999
|
}
|
|
6002
|
-
|
|
6000
|
+
_chunk6EUZQHAFjs.__name.call(void 0, w, "w");
|
|
6003
6001
|
function v2(i) {
|
|
6004
6002
|
if (J(i) || r2(i)) return false;
|
|
6005
6003
|
switch (i) {
|
|
@@ -6015,7 +6013,7 @@ function $(n, l = false) {
|
|
|
6015
6013
|
}
|
|
6016
6014
|
return true;
|
|
6017
6015
|
}
|
|
6018
|
-
|
|
6016
|
+
_chunk6EUZQHAFjs.__name.call(void 0, v2, "v");
|
|
6019
6017
|
function E() {
|
|
6020
6018
|
let i;
|
|
6021
6019
|
do
|
|
@@ -6023,22 +6021,22 @@ function $(n, l = false) {
|
|
|
6023
6021
|
while (i >= 12 && i <= 15);
|
|
6024
6022
|
return i;
|
|
6025
6023
|
}
|
|
6026
|
-
|
|
6027
|
-
return { setPosition: V, getPosition: /* @__PURE__ */
|
|
6024
|
+
_chunk6EUZQHAFjs.__name.call(void 0, E, "E");
|
|
6025
|
+
return { setPosition: V, getPosition: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => e, "getPosition"), scan: l ? E : w, getToken: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => k2, "getToken"), getTokenValue: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => u, "getTokenValue"), getTokenOffset: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => p, "getTokenOffset"), getTokenLength: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => e - p, "getTokenLength"), getTokenStartLine: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => o, "getTokenStartLine"), getTokenStartCharacter: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => p - B, "getTokenStartCharacter"), getTokenError: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => b, "getTokenError") };
|
|
6028
6026
|
}
|
|
6029
|
-
|
|
6027
|
+
_chunk6EUZQHAFjs.__name.call(void 0, $, "$");
|
|
6030
6028
|
function J(n) {
|
|
6031
6029
|
return n === 32 || n === 9;
|
|
6032
6030
|
}
|
|
6033
|
-
|
|
6031
|
+
_chunk6EUZQHAFjs.__name.call(void 0, J, "J");
|
|
6034
6032
|
function r2(n) {
|
|
6035
6033
|
return n === 10 || n === 13;
|
|
6036
6034
|
}
|
|
6037
|
-
|
|
6035
|
+
_chunk6EUZQHAFjs.__name.call(void 0, r2, "r");
|
|
6038
6036
|
function L(n) {
|
|
6039
6037
|
return n >= 48 && n <= 57;
|
|
6040
6038
|
}
|
|
6041
|
-
|
|
6039
|
+
_chunk6EUZQHAFjs.__name.call(void 0, L, "L");
|
|
6042
6040
|
var Q;
|
|
6043
6041
|
(function(n) {
|
|
6044
6042
|
n[n.lineFeed = 10] = "lineFeed", n[n.carriageReturn = 13] = "carriageReturn", n[n.space = 32] = "space", n[n._0 = 48] = "_0", n[n._1 = 49] = "_1", n[n._2 = 50] = "_2", n[n._3 = 51] = "_3", n[n._4 = 52] = "_4", n[n._5 = 53] = "_5", n[n._6 = 54] = "_6", n[n._7 = 55] = "_7", n[n._8 = 56] = "_8", n[n._9 = 57] = "_9", n[n.a = 97] = "a", n[n.b = 98] = "b", n[n.c = 99] = "c", n[n.d = 100] = "d", n[n.e = 101] = "e", n[n.f = 102] = "f", n[n.g = 103] = "g", n[n.h = 104] = "h", n[n.i = 105] = "i", n[n.j = 106] = "j", n[n.k = 107] = "k", n[n.l = 108] = "l", n[n.m = 109] = "m", n[n.n = 110] = "n", n[n.o = 111] = "o", n[n.p = 112] = "p", n[n.q = 113] = "q", n[n.r = 114] = "r", n[n.s = 115] = "s", n[n.t = 116] = "t", n[n.u = 117] = "u", n[n.v = 118] = "v", n[n.w = 119] = "w", n[n.x = 120] = "x", n[n.y = 121] = "y", n[n.z = 122] = "z", n[n.A = 65] = "A", n[n.B = 66] = "B", n[n.C = 67] = "C", n[n.D = 68] = "D", n[n.E = 69] = "E", n[n.F = 70] = "F", n[n.G = 71] = "G", n[n.H = 72] = "H", n[n.I = 73] = "I", n[n.J = 74] = "J", n[n.K = 75] = "K", n[n.L = 76] = "L", n[n.M = 77] = "M", n[n.N = 78] = "N", n[n.O = 79] = "O", n[n.P = 80] = "P", n[n.Q = 81] = "Q", n[n.R = 82] = "R", n[n.S = 83] = "S", n[n.T = 84] = "T", n[n.U = 85] = "U", n[n.V = 86] = "V", n[n.W = 87] = "W", n[n.X = 88] = "X", n[n.Y = 89] = "Y", n[n.Z = 90] = "Z", n[n.asterisk = 42] = "asterisk", n[n.backslash = 92] = "backslash", n[n.closeBrace = 125] = "closeBrace", n[n.closeBracket = 93] = "closeBracket", n[n.colon = 58] = "colon", n[n.comma = 44] = "comma", n[n.dot = 46] = "dot", n[n.doubleQuote = 34] = "doubleQuote", n[n.minus = 45] = "minus", n[n.openBrace = 123] = "openBrace", n[n.openBracket = 91] = "openBracket", n[n.plus = 43] = "plus", n[n.slash = 47] = "slash", n[n.formFeed = 12] = "formFeed", n[n.tab = 9] = "tab";
|
|
@@ -6059,51 +6057,51 @@ function S(n, l = [], g = U.DEFAULT) {
|
|
|
6059
6057
|
function k2(o) {
|
|
6060
6058
|
Array.isArray(u) ? u.push(o) : e !== null && (u[e] = o);
|
|
6061
6059
|
}
|
|
6062
|
-
|
|
6063
|
-
return P(n, { onObjectBegin: /* @__PURE__ */
|
|
6060
|
+
_chunk6EUZQHAFjs.__name.call(void 0, k2, "k");
|
|
6061
|
+
return P(n, { onObjectBegin: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => {
|
|
6064
6062
|
const o = {};
|
|
6065
6063
|
k2(o), p.push(u), u = o, e = null;
|
|
6066
|
-
}, "onObjectBegin"), onObjectProperty: /* @__PURE__ */
|
|
6064
|
+
}, "onObjectBegin"), onObjectProperty: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, (o) => {
|
|
6067
6065
|
e = o;
|
|
6068
|
-
}, "onObjectProperty"), onObjectEnd: /* @__PURE__ */
|
|
6066
|
+
}, "onObjectProperty"), onObjectEnd: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => {
|
|
6069
6067
|
u = p.pop();
|
|
6070
|
-
}, "onObjectEnd"), onArrayBegin: /* @__PURE__ */
|
|
6068
|
+
}, "onObjectEnd"), onArrayBegin: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => {
|
|
6071
6069
|
const o = [];
|
|
6072
6070
|
k2(o), p.push(u), u = o, e = null;
|
|
6073
|
-
}, "onArrayBegin"), onArrayEnd: /* @__PURE__ */
|
|
6071
|
+
}, "onArrayBegin"), onArrayEnd: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => {
|
|
6074
6072
|
u = p.pop();
|
|
6075
|
-
}, "onArrayEnd"), onLiteralValue: k2, onError: /* @__PURE__ */
|
|
6073
|
+
}, "onArrayEnd"), onLiteralValue: k2, onError: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, (o, O, B) => {
|
|
6076
6074
|
l.push({ error: o, offset: O, length: B });
|
|
6077
6075
|
}, "onError") }, g), u[0];
|
|
6078
6076
|
}
|
|
6079
|
-
|
|
6077
|
+
_chunk6EUZQHAFjs.__name.call(void 0, S, "S");
|
|
6080
6078
|
function P(n, l, g = U.DEFAULT) {
|
|
6081
6079
|
const e = $(n, false), u = [];
|
|
6082
6080
|
let p = 0;
|
|
6083
6081
|
function k2(f) {
|
|
6084
6082
|
return f ? () => p === 0 && f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter()) : () => true;
|
|
6085
6083
|
}
|
|
6086
|
-
|
|
6084
|
+
_chunk6EUZQHAFjs.__name.call(void 0, k2, "k");
|
|
6087
6085
|
function A(f) {
|
|
6088
6086
|
return f ? (m2) => p === 0 && f(m2, e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter()) : () => true;
|
|
6089
6087
|
}
|
|
6090
|
-
|
|
6088
|
+
_chunk6EUZQHAFjs.__name.call(void 0, A, "A");
|
|
6091
6089
|
function o(f) {
|
|
6092
6090
|
return f ? (m2) => p === 0 && f(m2, e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter(), () => u.slice()) : () => true;
|
|
6093
6091
|
}
|
|
6094
|
-
|
|
6092
|
+
_chunk6EUZQHAFjs.__name.call(void 0, o, "o");
|
|
6095
6093
|
function O(f) {
|
|
6096
6094
|
return f ? () => {
|
|
6097
6095
|
p > 0 ? p++ : f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter(), () => u.slice()) === false && (p = 1);
|
|
6098
6096
|
} : () => true;
|
|
6099
6097
|
}
|
|
6100
|
-
|
|
6098
|
+
_chunk6EUZQHAFjs.__name.call(void 0, O, "O");
|
|
6101
6099
|
function B(f) {
|
|
6102
6100
|
return f ? () => {
|
|
6103
6101
|
p > 0 && p--, p === 0 && f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter());
|
|
6104
6102
|
} : () => true;
|
|
6105
6103
|
}
|
|
6106
|
-
|
|
6104
|
+
_chunk6EUZQHAFjs.__name.call(void 0, B, "B");
|
|
6107
6105
|
const b = O(l.onObjectBegin), I = o(l.onObjectProperty), V = B(l.onObjectEnd), F = O(l.onArrayBegin), j = B(l.onArrayEnd), w = o(l.onLiteralValue), v2 = A(l.onSeparator), E = k2(l.onComment), i = A(l.onError), T = g && g.disallowComments, s = g && g.allowTrailingComma;
|
|
6108
6106
|
function c() {
|
|
6109
6107
|
for (; ; ) {
|
|
@@ -6144,7 +6142,7 @@ function P(n, l, g = U.DEFAULT) {
|
|
|
6144
6142
|
}
|
|
6145
6143
|
}
|
|
6146
6144
|
}
|
|
6147
|
-
|
|
6145
|
+
_chunk6EUZQHAFjs.__name.call(void 0, c, "c");
|
|
6148
6146
|
function t(f, m2 = [], y = []) {
|
|
6149
6147
|
if (i(f), m2.length + y.length > 0) {
|
|
6150
6148
|
let _ = e.getToken();
|
|
@@ -6157,12 +6155,12 @@ function P(n, l, g = U.DEFAULT) {
|
|
|
6157
6155
|
}
|
|
6158
6156
|
}
|
|
6159
6157
|
}
|
|
6160
|
-
|
|
6158
|
+
_chunk6EUZQHAFjs.__name.call(void 0, t, "t");
|
|
6161
6159
|
function D(f) {
|
|
6162
6160
|
const m2 = e.getTokenValue();
|
|
6163
6161
|
return f ? w(m2) : (I(m2), u.push(m2)), c(), true;
|
|
6164
6162
|
}
|
|
6165
|
-
|
|
6163
|
+
_chunk6EUZQHAFjs.__name.call(void 0, D, "D");
|
|
6166
6164
|
function G() {
|
|
6167
6165
|
switch (e.getToken()) {
|
|
6168
6166
|
case 11:
|
|
@@ -6184,11 +6182,11 @@ function P(n, l, g = U.DEFAULT) {
|
|
|
6184
6182
|
}
|
|
6185
6183
|
return c(), true;
|
|
6186
6184
|
}
|
|
6187
|
-
|
|
6185
|
+
_chunk6EUZQHAFjs.__name.call(void 0, G, "G");
|
|
6188
6186
|
function M() {
|
|
6189
6187
|
return e.getToken() !== 10 ? (t(3, [], [2, 5]), false) : (D(false), e.getToken() === 6 ? (v2(":"), c(), a() || t(4, [], [2, 5])) : t(5, [], [2, 5]), u.pop(), true);
|
|
6190
6188
|
}
|
|
6191
|
-
|
|
6189
|
+
_chunk6EUZQHAFjs.__name.call(void 0, M, "M");
|
|
6192
6190
|
function X() {
|
|
6193
6191
|
b(), c();
|
|
6194
6192
|
let f = false;
|
|
@@ -6200,7 +6198,7 @@ function P(n, l, g = U.DEFAULT) {
|
|
|
6200
6198
|
}
|
|
6201
6199
|
return V(), e.getToken() !== 2 ? t(7, [2], []) : c(), true;
|
|
6202
6200
|
}
|
|
6203
|
-
|
|
6201
|
+
_chunk6EUZQHAFjs.__name.call(void 0, X, "X");
|
|
6204
6202
|
function Y() {
|
|
6205
6203
|
F(), c();
|
|
6206
6204
|
let f = true, m2 = false;
|
|
@@ -6212,7 +6210,7 @@ function P(n, l, g = U.DEFAULT) {
|
|
|
6212
6210
|
}
|
|
6213
6211
|
return j(), f || u.pop(), e.getToken() !== 4 ? t(8, [4], []) : c(), true;
|
|
6214
6212
|
}
|
|
6215
|
-
|
|
6213
|
+
_chunk6EUZQHAFjs.__name.call(void 0, Y, "Y");
|
|
6216
6214
|
function a() {
|
|
6217
6215
|
switch (e.getToken()) {
|
|
6218
6216
|
case 3:
|
|
@@ -6225,10 +6223,10 @@ function P(n, l, g = U.DEFAULT) {
|
|
|
6225
6223
|
return G();
|
|
6226
6224
|
}
|
|
6227
6225
|
}
|
|
6228
|
-
|
|
6226
|
+
_chunk6EUZQHAFjs.__name.call(void 0, a, "a");
|
|
6229
6227
|
return c(), e.getToken() === 17 ? g.allowEmptyContent ? true : (t(4, [], []), false) : a() ? (e.getToken() !== 17 && t(9, [], []), true) : (t(4, [], []), false);
|
|
6230
6228
|
}
|
|
6231
|
-
|
|
6229
|
+
_chunk6EUZQHAFjs.__name.call(void 0, P, "P");
|
|
6232
6230
|
var W;
|
|
6233
6231
|
(function(n) {
|
|
6234
6232
|
n[n.None = 0] = "None", n[n.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", n[n.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", n[n.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", n[n.InvalidUnicode = 4] = "InvalidUnicode", n[n.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", n[n.InvalidCharacter = 6] = "InvalidCharacter";
|
|
@@ -6246,19 +6244,19 @@ function x2(n, l) {
|
|
|
6246
6244
|
const g = JSON.parse(n, _optionalChain([l, 'optionalAccess', _17 => _17.reviver]));
|
|
6247
6245
|
return N(n, g, l), g;
|
|
6248
6246
|
}
|
|
6249
|
-
|
|
6247
|
+
_chunk6EUZQHAFjs.__name.call(void 0, x2, "x");
|
|
6250
6248
|
function h(n, l) {
|
|
6251
6249
|
const g = K(n, _optionalChain([l, 'optionalAccess', _18 => _18.errors]), l);
|
|
6252
6250
|
return N(n, g, l), g;
|
|
6253
6251
|
}
|
|
6254
|
-
|
|
6252
|
+
_chunk6EUZQHAFjs.__name.call(void 0, h, "h");
|
|
6255
6253
|
|
|
6256
|
-
// ../../node_modules/.pnpm/pkg-types@1.3.
|
|
6254
|
+
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
6257
6255
|
var defaultFindOptions = {
|
|
6258
6256
|
startingFrom: ".",
|
|
6259
6257
|
rootPattern: /^node_modules$/,
|
|
6260
6258
|
reverse: false,
|
|
6261
|
-
test: /* @__PURE__ */
|
|
6259
|
+
test: /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, (filePath) => {
|
|
6262
6260
|
try {
|
|
6263
6261
|
if (_fs.statSync.call(void 0, filePath).isFile()) {
|
|
6264
6262
|
return true;
|
|
@@ -6303,11 +6301,11 @@ async function findFile(filename, _options = {}) {
|
|
|
6303
6301
|
`Cannot find matching ${filename} in ${options.startingFrom} or parent directories`
|
|
6304
6302
|
);
|
|
6305
6303
|
}
|
|
6306
|
-
|
|
6304
|
+
_chunk6EUZQHAFjs.__name.call(void 0, findFile, "findFile");
|
|
6307
6305
|
function findNearestFile(filename, _options = {}) {
|
|
6308
6306
|
return findFile(filename, _options);
|
|
6309
6307
|
}
|
|
6310
|
-
|
|
6308
|
+
_chunk6EUZQHAFjs.__name.call(void 0, findNearestFile, "findNearestFile");
|
|
6311
6309
|
var FileCache = /* @__PURE__ */ new Map();
|
|
6312
6310
|
async function readPackageJSON(id, options = {}) {
|
|
6313
6311
|
const resolvedPath = await resolvePackageJSON(id, options);
|
|
@@ -6325,7 +6323,7 @@ async function readPackageJSON(id, options = {}) {
|
|
|
6325
6323
|
cache2.set(resolvedPath, parsed);
|
|
6326
6324
|
return parsed;
|
|
6327
6325
|
}
|
|
6328
|
-
|
|
6326
|
+
_chunk6EUZQHAFjs.__name.call(void 0, readPackageJSON, "readPackageJSON");
|
|
6329
6327
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
6330
6328
|
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
6331
6329
|
return findNearestFile("package.json", {
|
|
@@ -6333,9 +6331,9 @@ async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
|
6333
6331
|
...options
|
|
6334
6332
|
});
|
|
6335
6333
|
}
|
|
6336
|
-
|
|
6334
|
+
_chunk6EUZQHAFjs.__name.call(void 0, resolvePackageJSON, "resolvePackageJSON");
|
|
6337
6335
|
|
|
6338
|
-
// ../../node_modules/.pnpm/mlly@1.7.
|
|
6336
|
+
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
6339
6337
|
var _url = require('url');
|
|
6340
6338
|
var _assert = require('assert'); var _assert2 = _interopRequireDefault(_assert);
|
|
6341
6339
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
@@ -6343,14 +6341,14 @@ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
|
6343
6341
|
var _v8 = require('v8'); var _v82 = _interopRequireDefault(_v8);
|
|
6344
6342
|
var _util = require('util');
|
|
6345
6343
|
var BUILTIN_MODULES = new Set(_module.builtinModules);
|
|
6346
|
-
function normalizeSlash(
|
|
6347
|
-
return
|
|
6344
|
+
function normalizeSlash(path2) {
|
|
6345
|
+
return path2.replace(/\\/g, "/");
|
|
6348
6346
|
}
|
|
6349
|
-
|
|
6347
|
+
_chunk6EUZQHAFjs.__name.call(void 0, normalizeSlash, "normalizeSlash");
|
|
6350
6348
|
function isObject(value) {
|
|
6351
6349
|
return value !== null && typeof value === "object";
|
|
6352
6350
|
}
|
|
6353
|
-
|
|
6351
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isObject, "isObject");
|
|
6354
6352
|
function matchAll(regex, string, addition) {
|
|
6355
6353
|
const matches = [];
|
|
6356
6354
|
for (const match of string.matchAll(regex)) {
|
|
@@ -6364,11 +6362,11 @@ function matchAll(regex, string, addition) {
|
|
|
6364
6362
|
}
|
|
6365
6363
|
return matches;
|
|
6366
6364
|
}
|
|
6367
|
-
|
|
6365
|
+
_chunk6EUZQHAFjs.__name.call(void 0, matchAll, "matchAll");
|
|
6368
6366
|
function clearImports(imports) {
|
|
6369
6367
|
return (imports || "").replace(/(\/\/[^\n]*\n|\/\*.*\*\/)/g, "").replace(/\s+/g, " ");
|
|
6370
6368
|
}
|
|
6371
|
-
|
|
6369
|
+
_chunk6EUZQHAFjs.__name.call(void 0, clearImports, "clearImports");
|
|
6372
6370
|
function getImportNames(cleanedImports) {
|
|
6373
6371
|
const topLevelImports = cleanedImports.replace(/{([^}]*)}/, "");
|
|
6374
6372
|
const namespacedImport = _optionalChain([topLevelImports, 'access', _19 => _19.match, 'call', _20 => _20(/\* as \s*(\S*)/), 'optionalAccess', _21 => _21[1]]);
|
|
@@ -6378,7 +6376,7 @@ function getImportNames(cleanedImports) {
|
|
|
6378
6376
|
defaultImport
|
|
6379
6377
|
};
|
|
6380
6378
|
}
|
|
6381
|
-
|
|
6379
|
+
_chunk6EUZQHAFjs.__name.call(void 0, getImportNames, "getImportNames");
|
|
6382
6380
|
var own$1 = {}.hasOwnProperty;
|
|
6383
6381
|
var classRegExp = /^([A-Z][a-z\d]*)+$/;
|
|
6384
6382
|
var kTypes = /* @__PURE__ */ new Set([
|
|
@@ -6397,7 +6395,7 @@ var codes = {};
|
|
|
6397
6395
|
function formatList(array, type = "and") {
|
|
6398
6396
|
return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`;
|
|
6399
6397
|
}
|
|
6400
|
-
|
|
6398
|
+
_chunk6EUZQHAFjs.__name.call(void 0, formatList, "formatList");
|
|
6401
6399
|
var messages = /* @__PURE__ */ new Map();
|
|
6402
6400
|
var nodeInternalPrefix = "__node_internal_";
|
|
6403
6401
|
var userStackTraceLimit;
|
|
@@ -6491,8 +6489,8 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
|
|
|
6491
6489
|
* @param {string} [base]
|
|
6492
6490
|
* @param {string} [message]
|
|
6493
6491
|
*/
|
|
6494
|
-
(
|
|
6495
|
-
return `Invalid package config ${
|
|
6492
|
+
(path2, base, message) => {
|
|
6493
|
+
return `Invalid package config ${path2}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
|
|
6496
6494
|
},
|
|
6497
6495
|
Error
|
|
6498
6496
|
);
|
|
@@ -6524,8 +6522,8 @@ codes.ERR_MODULE_NOT_FOUND = createError(
|
|
|
6524
6522
|
* @param {string} base
|
|
6525
6523
|
* @param {boolean} [exactUrl]
|
|
6526
6524
|
*/
|
|
6527
|
-
(
|
|
6528
|
-
return `Cannot find ${exactUrl ? "module" : "package"} '${
|
|
6525
|
+
(path2, base, exactUrl = false) => {
|
|
6526
|
+
return `Cannot find ${exactUrl ? "module" : "package"} '${path2}' imported from ${base}`;
|
|
6529
6527
|
},
|
|
6530
6528
|
Error
|
|
6531
6529
|
);
|
|
@@ -6576,8 +6574,8 @@ codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
|
6576
6574
|
* @param {string} extension
|
|
6577
6575
|
* @param {string} path
|
|
6578
6576
|
*/
|
|
6579
|
-
(extension,
|
|
6580
|
-
return `Unknown file extension "${extension}" for ${
|
|
6577
|
+
(extension, path2) => {
|
|
6578
|
+
return `Unknown file extension "${extension}" for ${path2}`;
|
|
6581
6579
|
},
|
|
6582
6580
|
TypeError
|
|
6583
6581
|
);
|
|
@@ -6604,7 +6602,7 @@ function createError(sym, value, constructor) {
|
|
|
6604
6602
|
messages.set(sym, value);
|
|
6605
6603
|
return makeNodeErrorWithCode(constructor, sym);
|
|
6606
6604
|
}
|
|
6607
|
-
|
|
6605
|
+
_chunk6EUZQHAFjs.__name.call(void 0, createError, "createError");
|
|
6608
6606
|
function makeNodeErrorWithCode(Base, key) {
|
|
6609
6607
|
return NodeError;
|
|
6610
6608
|
function NodeError(...parameters) {
|
|
@@ -6636,9 +6634,9 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
6636
6634
|
error.code = key;
|
|
6637
6635
|
return error;
|
|
6638
6636
|
}
|
|
6639
|
-
|
|
6637
|
+
_chunk6EUZQHAFjs.__name.call(void 0, NodeError, "NodeError");
|
|
6640
6638
|
}
|
|
6641
|
-
|
|
6639
|
+
_chunk6EUZQHAFjs.__name.call(void 0, makeNodeErrorWithCode, "makeNodeErrorWithCode");
|
|
6642
6640
|
function isErrorStackTraceLimitWritable() {
|
|
6643
6641
|
try {
|
|
6644
6642
|
if (_v82.default.startupSnapshot.isBuildingSnapshot()) {
|
|
@@ -6652,13 +6650,13 @@ function isErrorStackTraceLimitWritable() {
|
|
|
6652
6650
|
}
|
|
6653
6651
|
return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
6654
6652
|
}
|
|
6655
|
-
|
|
6653
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isErrorStackTraceLimitWritable, "isErrorStackTraceLimitWritable");
|
|
6656
6654
|
function hideStackFrames(wrappedFunction) {
|
|
6657
6655
|
const hidden = nodeInternalPrefix + wrappedFunction.name;
|
|
6658
6656
|
Object.defineProperty(wrappedFunction, "name", { value: hidden });
|
|
6659
6657
|
return wrappedFunction;
|
|
6660
6658
|
}
|
|
6661
|
-
|
|
6659
|
+
_chunk6EUZQHAFjs.__name.call(void 0, hideStackFrames, "hideStackFrames");
|
|
6662
6660
|
var captureLargerStackTrace = hideStackFrames(
|
|
6663
6661
|
/**
|
|
6664
6662
|
* @param {Error} error
|
|
@@ -6698,7 +6696,7 @@ function getMessage(key, parameters, self) {
|
|
|
6698
6696
|
parameters.unshift(message);
|
|
6699
6697
|
return Reflect.apply(_util.format, null, parameters);
|
|
6700
6698
|
}
|
|
6701
|
-
|
|
6699
|
+
_chunk6EUZQHAFjs.__name.call(void 0, getMessage, "getMessage");
|
|
6702
6700
|
function determineSpecificType(value) {
|
|
6703
6701
|
if (value === null || value === void 0) {
|
|
6704
6702
|
return String(value);
|
|
@@ -6718,7 +6716,7 @@ function determineSpecificType(value) {
|
|
|
6718
6716
|
}
|
|
6719
6717
|
return `type ${typeof value} (${inspected})`;
|
|
6720
6718
|
}
|
|
6721
|
-
|
|
6719
|
+
_chunk6EUZQHAFjs.__name.call(void 0, determineSpecificType, "determineSpecificType");
|
|
6722
6720
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
6723
6721
|
var { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes;
|
|
6724
6722
|
var cache = /* @__PURE__ */ new Map();
|
|
@@ -6786,7 +6784,7 @@ function read(jsonPath, { base, specifier }) {
|
|
|
6786
6784
|
cache.set(jsonPath, result);
|
|
6787
6785
|
return result;
|
|
6788
6786
|
}
|
|
6789
|
-
|
|
6787
|
+
_chunk6EUZQHAFjs.__name.call(void 0, read, "read");
|
|
6790
6788
|
function getPackageScopeConfig(resolved) {
|
|
6791
6789
|
let packageJSONUrl = new URL("package.json", resolved);
|
|
6792
6790
|
while (true) {
|
|
@@ -6813,11 +6811,11 @@ function getPackageScopeConfig(resolved) {
|
|
|
6813
6811
|
type: "none"
|
|
6814
6812
|
};
|
|
6815
6813
|
}
|
|
6816
|
-
|
|
6814
|
+
_chunk6EUZQHAFjs.__name.call(void 0, getPackageScopeConfig, "getPackageScopeConfig");
|
|
6817
6815
|
function getPackageType(url) {
|
|
6818
6816
|
return getPackageScopeConfig(url).type;
|
|
6819
6817
|
}
|
|
6820
|
-
|
|
6818
|
+
_chunk6EUZQHAFjs.__name.call(void 0, getPackageType, "getPackageType");
|
|
6821
6819
|
var { ERR_UNKNOWN_FILE_EXTENSION } = codes;
|
|
6822
6820
|
var hasOwnProperty2 = {}.hasOwnProperty;
|
|
6823
6821
|
var extensionFormatMap = {
|
|
@@ -6834,7 +6832,7 @@ function mimeToFormat(mime) {
|
|
|
6834
6832
|
if (mime === "application/json") return "json";
|
|
6835
6833
|
return null;
|
|
6836
6834
|
}
|
|
6837
|
-
|
|
6835
|
+
_chunk6EUZQHAFjs.__name.call(void 0, mimeToFormat, "mimeToFormat");
|
|
6838
6836
|
var protocolHandlers = {
|
|
6839
6837
|
// @ts-expect-error: hush.
|
|
6840
6838
|
__proto__: null,
|
|
@@ -6852,7 +6850,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
6852
6850
|
) || [null, null, null];
|
|
6853
6851
|
return mimeToFormat(mime);
|
|
6854
6852
|
}
|
|
6855
|
-
|
|
6853
|
+
_chunk6EUZQHAFjs.__name.call(void 0, getDataProtocolModuleFormat, "getDataProtocolModuleFormat");
|
|
6856
6854
|
function extname2(url) {
|
|
6857
6855
|
const pathname = url.pathname;
|
|
6858
6856
|
let index = pathname.length;
|
|
@@ -6867,7 +6865,7 @@ function extname2(url) {
|
|
|
6867
6865
|
}
|
|
6868
6866
|
return "";
|
|
6869
6867
|
}
|
|
6870
|
-
|
|
6868
|
+
_chunk6EUZQHAFjs.__name.call(void 0, extname2, "extname");
|
|
6871
6869
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
6872
6870
|
const value = extname2(url);
|
|
6873
6871
|
if (value === ".js") {
|
|
@@ -6892,10 +6890,10 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
6892
6890
|
const filepath = _url.fileURLToPath.call(void 0, url);
|
|
6893
6891
|
throw new ERR_UNKNOWN_FILE_EXTENSION(value, filepath);
|
|
6894
6892
|
}
|
|
6895
|
-
|
|
6893
|
+
_chunk6EUZQHAFjs.__name.call(void 0, getFileProtocolModuleFormat, "getFileProtocolModuleFormat");
|
|
6896
6894
|
function getHttpProtocolModuleFormat() {
|
|
6897
6895
|
}
|
|
6898
|
-
|
|
6896
|
+
_chunk6EUZQHAFjs.__name.call(void 0, getHttpProtocolModuleFormat, "getHttpProtocolModuleFormat");
|
|
6899
6897
|
function defaultGetFormatWithoutErrors(url, context) {
|
|
6900
6898
|
const protocol = url.protocol;
|
|
6901
6899
|
if (!hasOwnProperty2.call(protocolHandlers, protocol)) {
|
|
@@ -6903,7 +6901,7 @@ function defaultGetFormatWithoutErrors(url, context) {
|
|
|
6903
6901
|
}
|
|
6904
6902
|
return protocolHandlers[protocol](url, context, true) || null;
|
|
6905
6903
|
}
|
|
6906
|
-
|
|
6904
|
+
_chunk6EUZQHAFjs.__name.call(void 0, defaultGetFormatWithoutErrors, "defaultGetFormatWithoutErrors");
|
|
6907
6905
|
var RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
|
|
6908
6906
|
var {
|
|
6909
6907
|
ERR_NETWORK_IMPORT_DISALLOWED,
|
|
@@ -6936,7 +6934,7 @@ function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, i
|
|
|
6936
6934
|
"DEP0166"
|
|
6937
6935
|
);
|
|
6938
6936
|
}
|
|
6939
|
-
|
|
6937
|
+
_chunk6EUZQHAFjs.__name.call(void 0, emitInvalidSegmentDeprecation, "emitInvalidSegmentDeprecation");
|
|
6940
6938
|
function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
6941
6939
|
if (_process2.default.noDeprecation) {
|
|
6942
6940
|
return;
|
|
@@ -6966,20 +6964,20 @@ Default "index" lookups for the main are deprecated for ES modules.`,
|
|
|
6966
6964
|
);
|
|
6967
6965
|
}
|
|
6968
6966
|
}
|
|
6969
|
-
|
|
6970
|
-
function tryStatSync(
|
|
6967
|
+
_chunk6EUZQHAFjs.__name.call(void 0, emitLegacyIndexDeprecation, "emitLegacyIndexDeprecation");
|
|
6968
|
+
function tryStatSync(path2) {
|
|
6971
6969
|
try {
|
|
6972
|
-
return _fs.statSync.call(void 0,
|
|
6970
|
+
return _fs.statSync.call(void 0, path2);
|
|
6973
6971
|
} catch (e5) {
|
|
6974
6972
|
}
|
|
6975
6973
|
}
|
|
6976
|
-
|
|
6974
|
+
_chunk6EUZQHAFjs.__name.call(void 0, tryStatSync, "tryStatSync");
|
|
6977
6975
|
function fileExists(url) {
|
|
6978
6976
|
const stats = _fs.statSync.call(void 0, url, { throwIfNoEntry: false });
|
|
6979
6977
|
const isFile = stats ? stats.isFile() : void 0;
|
|
6980
6978
|
return isFile === null || isFile === void 0 ? false : isFile;
|
|
6981
6979
|
}
|
|
6982
|
-
|
|
6980
|
+
_chunk6EUZQHAFjs.__name.call(void 0, fileExists, "fileExists");
|
|
6983
6981
|
function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
6984
6982
|
let guess;
|
|
6985
6983
|
if (packageConfig.main !== void 0) {
|
|
@@ -7025,7 +7023,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
7025
7023
|
_url.fileURLToPath.call(void 0, base)
|
|
7026
7024
|
);
|
|
7027
7025
|
}
|
|
7028
|
-
|
|
7026
|
+
_chunk6EUZQHAFjs.__name.call(void 0, legacyMainResolve, "legacyMainResolve");
|
|
7029
7027
|
function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
7030
7028
|
if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
|
|
7031
7029
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
@@ -7063,7 +7061,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
7063
7061
|
error.url = String(resolved);
|
|
7064
7062
|
throw error;
|
|
7065
7063
|
}
|
|
7066
|
-
|
|
7064
|
+
{
|
|
7067
7065
|
const real = _fs.realpathSync.call(void 0, filePath);
|
|
7068
7066
|
const { search, hash } = resolved;
|
|
7069
7067
|
resolved = _url.pathToFileURL.call(void 0, real + (filePath.endsWith(_path2.default.sep) ? "/" : ""));
|
|
@@ -7072,7 +7070,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
7072
7070
|
}
|
|
7073
7071
|
return resolved;
|
|
7074
7072
|
}
|
|
7075
|
-
|
|
7073
|
+
_chunk6EUZQHAFjs.__name.call(void 0, finalizeResolution, "finalizeResolution");
|
|
7076
7074
|
function importNotDefined(specifier, packageJsonUrl, base) {
|
|
7077
7075
|
return new ERR_PACKAGE_IMPORT_NOT_DEFINED(
|
|
7078
7076
|
specifier,
|
|
@@ -7080,7 +7078,7 @@ function importNotDefined(specifier, packageJsonUrl, base) {
|
|
|
7080
7078
|
_url.fileURLToPath.call(void 0, base)
|
|
7081
7079
|
);
|
|
7082
7080
|
}
|
|
7083
|
-
|
|
7081
|
+
_chunk6EUZQHAFjs.__name.call(void 0, importNotDefined, "importNotDefined");
|
|
7084
7082
|
function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
7085
7083
|
return new ERR_PACKAGE_PATH_NOT_EXPORTED(
|
|
7086
7084
|
_url.fileURLToPath.call(void 0, new (0, _url.URL)(".", packageJsonUrl)),
|
|
@@ -7088,7 +7086,7 @@ function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
|
7088
7086
|
base && _url.fileURLToPath.call(void 0, base)
|
|
7089
7087
|
);
|
|
7090
7088
|
}
|
|
7091
|
-
|
|
7089
|
+
_chunk6EUZQHAFjs.__name.call(void 0, exportsNotFound, "exportsNotFound");
|
|
7092
7090
|
function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
7093
7091
|
const reason = `request is not a valid match in pattern "${match}" for the "${internal ? "imports" : "exports"}" resolution of ${_url.fileURLToPath.call(void 0, packageJsonUrl)}`;
|
|
7094
7092
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
@@ -7097,7 +7095,7 @@ function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
|
7097
7095
|
base && _url.fileURLToPath.call(void 0, base)
|
|
7098
7096
|
);
|
|
7099
7097
|
}
|
|
7100
|
-
|
|
7098
|
+
_chunk6EUZQHAFjs.__name.call(void 0, throwInvalidSubpath, "throwInvalidSubpath");
|
|
7101
7099
|
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
7102
7100
|
target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
|
|
7103
7101
|
return new ERR_INVALID_PACKAGE_TARGET(
|
|
@@ -7108,7 +7106,7 @@ function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
|
7108
7106
|
base && _url.fileURLToPath.call(void 0, base)
|
|
7109
7107
|
);
|
|
7110
7108
|
}
|
|
7111
|
-
|
|
7109
|
+
_chunk6EUZQHAFjs.__name.call(void 0, invalidPackageTarget, "invalidPackageTarget");
|
|
7112
7110
|
function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
|
|
7113
7111
|
if (subpath !== "" && !pattern && target[target.length - 1] !== "/")
|
|
7114
7112
|
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
@@ -7194,13 +7192,13 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
7194
7192
|
}
|
|
7195
7193
|
return new (0, _url.URL)(subpath, resolved);
|
|
7196
7194
|
}
|
|
7197
|
-
|
|
7195
|
+
_chunk6EUZQHAFjs.__name.call(void 0, resolvePackageTargetString, "resolvePackageTargetString");
|
|
7198
7196
|
function isArrayIndex(key) {
|
|
7199
7197
|
const keyNumber = Number(key);
|
|
7200
7198
|
if (`${keyNumber}` !== key) return false;
|
|
7201
7199
|
return keyNumber >= 0 && keyNumber < 4294967295;
|
|
7202
7200
|
}
|
|
7203
|
-
|
|
7201
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isArrayIndex, "isArrayIndex");
|
|
7204
7202
|
function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions) {
|
|
7205
7203
|
if (typeof target === "string") {
|
|
7206
7204
|
return resolvePackageTargetString(
|
|
@@ -7305,7 +7303,7 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
7305
7303
|
base
|
|
7306
7304
|
);
|
|
7307
7305
|
}
|
|
7308
|
-
|
|
7306
|
+
_chunk6EUZQHAFjs.__name.call(void 0, resolvePackageTarget, "resolvePackageTarget");
|
|
7309
7307
|
function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
7310
7308
|
if (typeof exports === "string" || Array.isArray(exports)) return true;
|
|
7311
7309
|
if (typeof exports !== "object" || exports === null) return false;
|
|
@@ -7328,7 +7326,7 @@ function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
|
7328
7326
|
}
|
|
7329
7327
|
return isConditionalSugar;
|
|
7330
7328
|
}
|
|
7331
|
-
|
|
7329
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isConditionalExportsMainSugar, "isConditionalExportsMainSugar");
|
|
7332
7330
|
function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
7333
7331
|
if (_process2.default.noDeprecation) {
|
|
7334
7332
|
return;
|
|
@@ -7342,7 +7340,7 @@ function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
|
7342
7340
|
"DEP0155"
|
|
7343
7341
|
);
|
|
7344
7342
|
}
|
|
7345
|
-
|
|
7343
|
+
_chunk6EUZQHAFjs.__name.call(void 0, emitTrailingSlashPatternDeprecation, "emitTrailingSlashPatternDeprecation");
|
|
7346
7344
|
function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
|
|
7347
7345
|
let exports = packageConfig.exports;
|
|
7348
7346
|
if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) {
|
|
@@ -7414,7 +7412,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
7414
7412
|
}
|
|
7415
7413
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
7416
7414
|
}
|
|
7417
|
-
|
|
7415
|
+
_chunk6EUZQHAFjs.__name.call(void 0, packageExportsResolve, "packageExportsResolve");
|
|
7418
7416
|
function patternKeyCompare(a, b) {
|
|
7419
7417
|
const aPatternIndex = a.indexOf("*");
|
|
7420
7418
|
const bPatternIndex = b.indexOf("*");
|
|
@@ -7428,7 +7426,7 @@ function patternKeyCompare(a, b) {
|
|
|
7428
7426
|
if (b.length > a.length) return 1;
|
|
7429
7427
|
return 0;
|
|
7430
7428
|
}
|
|
7431
|
-
|
|
7429
|
+
_chunk6EUZQHAFjs.__name.call(void 0, patternKeyCompare, "patternKeyCompare");
|
|
7432
7430
|
function packageImportsResolve(name, base, conditions) {
|
|
7433
7431
|
if (name === "#" || name.startsWith("#/") || name.endsWith("/")) {
|
|
7434
7432
|
const reason = "is not a valid internal imports specifier name";
|
|
@@ -7496,7 +7494,7 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
7496
7494
|
}
|
|
7497
7495
|
throw importNotDefined(name, packageJsonUrl, base);
|
|
7498
7496
|
}
|
|
7499
|
-
|
|
7497
|
+
_chunk6EUZQHAFjs.__name.call(void 0, packageImportsResolve, "packageImportsResolve");
|
|
7500
7498
|
function parsePackageName(specifier, base) {
|
|
7501
7499
|
let separatorIndex = specifier.indexOf("/");
|
|
7502
7500
|
let validPackageName = true;
|
|
@@ -7523,7 +7521,7 @@ function parsePackageName(specifier, base) {
|
|
|
7523
7521
|
const packageSubpath = "." + (separatorIndex === -1 ? "" : specifier.slice(separatorIndex));
|
|
7524
7522
|
return { packageName, packageSubpath, isScoped };
|
|
7525
7523
|
}
|
|
7526
|
-
|
|
7524
|
+
_chunk6EUZQHAFjs.__name.call(void 0, parsePackageName, "parsePackageName");
|
|
7527
7525
|
function packageResolve(specifier, base, conditions) {
|
|
7528
7526
|
if (_module.builtinModules.includes(specifier)) {
|
|
7529
7527
|
return new (0, _url.URL)("node:" + specifier);
|
|
@@ -7579,7 +7577,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
7579
7577
|
} while (packageJsonPath.length !== lastPath.length);
|
|
7580
7578
|
throw new ERR_MODULE_NOT_FOUND(packageName, _url.fileURLToPath.call(void 0, base), false);
|
|
7581
7579
|
}
|
|
7582
|
-
|
|
7580
|
+
_chunk6EUZQHAFjs.__name.call(void 0, packageResolve, "packageResolve");
|
|
7583
7581
|
function isRelativeSpecifier(specifier) {
|
|
7584
7582
|
if (specifier[0] === ".") {
|
|
7585
7583
|
if (specifier.length === 1 || specifier[1] === "/") return true;
|
|
@@ -7589,13 +7587,13 @@ function isRelativeSpecifier(specifier) {
|
|
|
7589
7587
|
}
|
|
7590
7588
|
return false;
|
|
7591
7589
|
}
|
|
7592
|
-
|
|
7590
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isRelativeSpecifier, "isRelativeSpecifier");
|
|
7593
7591
|
function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
|
|
7594
7592
|
if (specifier === "") return false;
|
|
7595
7593
|
if (specifier[0] === "/") return true;
|
|
7596
7594
|
return isRelativeSpecifier(specifier);
|
|
7597
7595
|
}
|
|
7598
|
-
|
|
7596
|
+
_chunk6EUZQHAFjs.__name.call(void 0, shouldBeTreatedAsRelativeOrAbsolutePath, "shouldBeTreatedAsRelativeOrAbsolutePath");
|
|
7599
7597
|
function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
7600
7598
|
const protocol = base.protocol;
|
|
7601
7599
|
const isData = protocol === "data:";
|
|
@@ -7627,29 +7625,29 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
7627
7625
|
if (resolved.protocol !== "file:") {
|
|
7628
7626
|
return resolved;
|
|
7629
7627
|
}
|
|
7630
|
-
return finalizeResolution(resolved, base
|
|
7628
|
+
return finalizeResolution(resolved, base);
|
|
7631
7629
|
}
|
|
7632
|
-
|
|
7630
|
+
_chunk6EUZQHAFjs.__name.call(void 0, moduleResolve, "moduleResolve");
|
|
7633
7631
|
function fileURLToPath(id) {
|
|
7634
7632
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
7635
7633
|
return normalizeSlash(id);
|
|
7636
7634
|
}
|
|
7637
7635
|
return normalizeSlash(_url.fileURLToPath.call(void 0, id));
|
|
7638
7636
|
}
|
|
7639
|
-
|
|
7637
|
+
_chunk6EUZQHAFjs.__name.call(void 0, fileURLToPath, "fileURLToPath");
|
|
7640
7638
|
function pathToFileURL(id) {
|
|
7641
7639
|
return _url.pathToFileURL.call(void 0, fileURLToPath(id)).toString();
|
|
7642
7640
|
}
|
|
7643
|
-
|
|
7641
|
+
_chunk6EUZQHAFjs.__name.call(void 0, pathToFileURL, "pathToFileURL");
|
|
7644
7642
|
var INVALID_CHAR_RE = /[\u0000-\u001F"#$&*+,/:;<=>?@[\]^`{|}\u007F]+/g;
|
|
7645
7643
|
function sanitizeURIComponent(name = "", replacement = "_") {
|
|
7646
7644
|
return name.replace(INVALID_CHAR_RE, replacement).replace(/%../g, replacement);
|
|
7647
7645
|
}
|
|
7648
|
-
|
|
7646
|
+
_chunk6EUZQHAFjs.__name.call(void 0, sanitizeURIComponent, "sanitizeURIComponent");
|
|
7649
7647
|
function sanitizeFilePath(filePath = "") {
|
|
7650
7648
|
return filePath.replace(/\?.*$/, "").split(/[/\\]/g).map((p) => sanitizeURIComponent(p)).join("/").replace(/^([A-Za-z])_\//, "$1:/");
|
|
7651
7649
|
}
|
|
7652
|
-
|
|
7650
|
+
_chunk6EUZQHAFjs.__name.call(void 0, sanitizeFilePath, "sanitizeFilePath");
|
|
7653
7651
|
function normalizeid(id) {
|
|
7654
7652
|
if (typeof id !== "string") {
|
|
7655
7653
|
id = id.toString();
|
|
@@ -7662,28 +7660,28 @@ function normalizeid(id) {
|
|
|
7662
7660
|
}
|
|
7663
7661
|
return "file://" + encodeURI(normalizeSlash(id));
|
|
7664
7662
|
}
|
|
7665
|
-
|
|
7663
|
+
_chunk6EUZQHAFjs.__name.call(void 0, normalizeid, "normalizeid");
|
|
7666
7664
|
async function loadURL(url) {
|
|
7667
7665
|
const code = await _fs.promises.readFile(fileURLToPath(url), "utf8");
|
|
7668
7666
|
return code;
|
|
7669
7667
|
}
|
|
7670
|
-
|
|
7668
|
+
_chunk6EUZQHAFjs.__name.call(void 0, loadURL, "loadURL");
|
|
7671
7669
|
function toDataURL(code) {
|
|
7672
7670
|
const base64 = Buffer.from(code).toString("base64");
|
|
7673
7671
|
return `data:text/javascript;base64,${base64}`;
|
|
7674
7672
|
}
|
|
7675
|
-
|
|
7673
|
+
_chunk6EUZQHAFjs.__name.call(void 0, toDataURL, "toDataURL");
|
|
7676
7674
|
function isNodeBuiltin(id = "") {
|
|
7677
7675
|
id = id.replace(/^node:/, "").split("/")[0];
|
|
7678
7676
|
return BUILTIN_MODULES.has(id);
|
|
7679
7677
|
}
|
|
7680
|
-
|
|
7678
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isNodeBuiltin, "isNodeBuiltin");
|
|
7681
7679
|
var ProtocolRegex = /^(?<proto>.{2,}?):.+$/;
|
|
7682
7680
|
function getProtocol(id) {
|
|
7683
7681
|
const proto = id.match(ProtocolRegex);
|
|
7684
7682
|
return proto ? _optionalChain([proto, 'access', _28 => _28.groups, 'optionalAccess', _29 => _29.proto]) : void 0;
|
|
7685
7683
|
}
|
|
7686
|
-
|
|
7684
|
+
_chunk6EUZQHAFjs.__name.call(void 0, getProtocol, "getProtocol");
|
|
7687
7685
|
var DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
|
|
7688
7686
|
var DEFAULT_EXTENSIONS = [".mjs", ".cjs", ".js", ".json"];
|
|
7689
7687
|
var NOT_FOUND_ERRORS = /* @__PURE__ */ new Set([
|
|
@@ -7701,7 +7699,7 @@ function _tryModuleResolve(id, url, conditions) {
|
|
|
7701
7699
|
}
|
|
7702
7700
|
}
|
|
7703
7701
|
}
|
|
7704
|
-
|
|
7702
|
+
_chunk6EUZQHAFjs.__name.call(void 0, _tryModuleResolve, "_tryModuleResolve");
|
|
7705
7703
|
function _resolve(id, options = {}) {
|
|
7706
7704
|
if (typeof id !== "string") {
|
|
7707
7705
|
if (id instanceof URL) {
|
|
@@ -7782,11 +7780,11 @@ function _resolve(id, options = {}) {
|
|
|
7782
7780
|
}
|
|
7783
7781
|
return pathToFileURL(resolved);
|
|
7784
7782
|
}
|
|
7785
|
-
|
|
7783
|
+
_chunk6EUZQHAFjs.__name.call(void 0, _resolve, "_resolve");
|
|
7786
7784
|
function resolveSync(id, options) {
|
|
7787
7785
|
return _resolve(id, options);
|
|
7788
7786
|
}
|
|
7789
|
-
|
|
7787
|
+
_chunk6EUZQHAFjs.__name.call(void 0, resolveSync, "resolveSync");
|
|
7790
7788
|
function resolve2(id, options) {
|
|
7791
7789
|
try {
|
|
7792
7790
|
return Promise.resolve(resolveSync(id, options));
|
|
@@ -7794,11 +7792,11 @@ function resolve2(id, options) {
|
|
|
7794
7792
|
return Promise.reject(error);
|
|
7795
7793
|
}
|
|
7796
7794
|
}
|
|
7797
|
-
|
|
7795
|
+
_chunk6EUZQHAFjs.__name.call(void 0, resolve2, "resolve");
|
|
7798
7796
|
function resolvePathSync(id, options) {
|
|
7799
7797
|
return fileURLToPath(resolveSync(id, options));
|
|
7800
7798
|
}
|
|
7801
|
-
|
|
7799
|
+
_chunk6EUZQHAFjs.__name.call(void 0, resolvePathSync, "resolvePathSync");
|
|
7802
7800
|
function resolvePath(id, options) {
|
|
7803
7801
|
try {
|
|
7804
7802
|
return Promise.resolve(resolvePathSync(id, options));
|
|
@@ -7806,20 +7804,20 @@ function resolvePath(id, options) {
|
|
|
7806
7804
|
return Promise.reject(error);
|
|
7807
7805
|
}
|
|
7808
7806
|
}
|
|
7809
|
-
|
|
7807
|
+
_chunk6EUZQHAFjs.__name.call(void 0, resolvePath, "resolvePath");
|
|
7810
7808
|
function createResolve(defaults) {
|
|
7811
7809
|
return (id, url) => {
|
|
7812
7810
|
return resolve2(id, { url, ...defaults });
|
|
7813
7811
|
};
|
|
7814
7812
|
}
|
|
7815
|
-
|
|
7813
|
+
_chunk6EUZQHAFjs.__name.call(void 0, createResolve, "createResolve");
|
|
7816
7814
|
var NODE_MODULES_RE = /^(.+\/node_modules\/)([^/@]+|@[^/]+\/[^/]+)(\/?.*?)?$/;
|
|
7817
|
-
function parseNodeModulePath(
|
|
7818
|
-
if (!
|
|
7815
|
+
function parseNodeModulePath(path2) {
|
|
7816
|
+
if (!path2) {
|
|
7819
7817
|
return {};
|
|
7820
7818
|
}
|
|
7821
|
-
|
|
7822
|
-
const match = NODE_MODULES_RE.exec(
|
|
7819
|
+
path2 = normalize(fileURLToPath(path2));
|
|
7820
|
+
const match = NODE_MODULES_RE.exec(path2);
|
|
7823
7821
|
if (!match) {
|
|
7824
7822
|
return {};
|
|
7825
7823
|
}
|
|
@@ -7830,14 +7828,14 @@ function parseNodeModulePath(path3) {
|
|
|
7830
7828
|
subpath: subpath ? `.${subpath}` : void 0
|
|
7831
7829
|
};
|
|
7832
7830
|
}
|
|
7833
|
-
|
|
7834
|
-
async function lookupNodeModuleSubpath(
|
|
7835
|
-
|
|
7836
|
-
const { name, subpath } = parseNodeModulePath(
|
|
7831
|
+
_chunk6EUZQHAFjs.__name.call(void 0, parseNodeModulePath, "parseNodeModulePath");
|
|
7832
|
+
async function lookupNodeModuleSubpath(path2) {
|
|
7833
|
+
path2 = normalize(fileURLToPath(path2));
|
|
7834
|
+
const { name, subpath } = parseNodeModulePath(path2);
|
|
7837
7835
|
if (!name || !subpath) {
|
|
7838
7836
|
return subpath;
|
|
7839
7837
|
}
|
|
7840
|
-
const { exports } = await readPackageJSON(
|
|
7838
|
+
const { exports } = await readPackageJSON(path2).catch(() => {
|
|
7841
7839
|
}) || {};
|
|
7842
7840
|
if (exports) {
|
|
7843
7841
|
const resolvedSubpath = _findSubpath(subpath, exports);
|
|
@@ -7847,7 +7845,7 @@ async function lookupNodeModuleSubpath(path3) {
|
|
|
7847
7845
|
}
|
|
7848
7846
|
return subpath;
|
|
7849
7847
|
}
|
|
7850
|
-
|
|
7848
|
+
_chunk6EUZQHAFjs.__name.call(void 0, lookupNodeModuleSubpath, "lookupNodeModuleSubpath");
|
|
7851
7849
|
function _findSubpath(subpath, exports) {
|
|
7852
7850
|
if (typeof exports === "string") {
|
|
7853
7851
|
exports = { ".": exports };
|
|
@@ -7860,7 +7858,7 @@ function _findSubpath(subpath, exports) {
|
|
|
7860
7858
|
}
|
|
7861
7859
|
return _optionalChain([_flattenExports, 'call', _32 => _32(exports), 'access', _33 => _33.find, 'call', _34 => _34((p) => p.fsPath === subpath), 'optionalAccess', _35 => _35.subpath]);
|
|
7862
7860
|
}
|
|
7863
|
-
|
|
7861
|
+
_chunk6EUZQHAFjs.__name.call(void 0, _findSubpath, "_findSubpath");
|
|
7864
7862
|
function _flattenExports(exports = {}, parentSubpath = "./") {
|
|
7865
7863
|
return Object.entries(exports).flatMap(([key, value]) => {
|
|
7866
7864
|
const [subpath, condition] = key.startsWith(".") ? [key.slice(1), void 0] : ["", key];
|
|
@@ -7872,7 +7870,7 @@ function _flattenExports(exports = {}, parentSubpath = "./") {
|
|
|
7872
7870
|
}
|
|
7873
7871
|
});
|
|
7874
7872
|
}
|
|
7875
|
-
|
|
7873
|
+
_chunk6EUZQHAFjs.__name.call(void 0, _flattenExports, "_flattenExports");
|
|
7876
7874
|
var ESM_STATIC_IMPORT_RE = /(?<=\s|^|;|\})import\s*([\s"']*(?<imports>[\p{L}\p{M}\w\t\n\r $*,/{}@.]+)from\s*)?["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gmu;
|
|
7877
7875
|
var DYNAMIC_IMPORT_RE = /import\s*\((?<expression>(?:[^()]+|\((?:[^()]+|\([^()]*\))*\))*)\)/gm;
|
|
7878
7876
|
var IMPORT_NAMED_TYPE_RE = /(?<=\s|^|;|})import\s*type\s+([\s"']*(?<imports>[\w\t\n\r $*,/{}]+)from\s*)?["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gm;
|
|
@@ -7890,14 +7888,14 @@ function findStaticImports(code) {
|
|
|
7890
7888
|
matchAll(ESM_STATIC_IMPORT_RE, code, { type: "static" })
|
|
7891
7889
|
);
|
|
7892
7890
|
}
|
|
7893
|
-
|
|
7891
|
+
_chunk6EUZQHAFjs.__name.call(void 0, findStaticImports, "findStaticImports");
|
|
7894
7892
|
function findDynamicImports(code) {
|
|
7895
7893
|
return _filterStatement(
|
|
7896
7894
|
_tryGetLocations(code, "import"),
|
|
7897
7895
|
matchAll(DYNAMIC_IMPORT_RE, code, { type: "dynamic" })
|
|
7898
7896
|
);
|
|
7899
7897
|
}
|
|
7900
|
-
|
|
7898
|
+
_chunk6EUZQHAFjs.__name.call(void 0, findDynamicImports, "findDynamicImports");
|
|
7901
7899
|
function findTypeImports(code) {
|
|
7902
7900
|
return [
|
|
7903
7901
|
...matchAll(IMPORT_NAMED_TYPE_RE, code, { type: "type" }),
|
|
@@ -7906,7 +7904,7 @@ function findTypeImports(code) {
|
|
|
7906
7904
|
)
|
|
7907
7905
|
];
|
|
7908
7906
|
}
|
|
7909
|
-
|
|
7907
|
+
_chunk6EUZQHAFjs.__name.call(void 0, findTypeImports, "findTypeImports");
|
|
7910
7908
|
function parseStaticImport(matched) {
|
|
7911
7909
|
const cleanedImports = clearImports(matched.imports);
|
|
7912
7910
|
const namedImports = {};
|
|
@@ -7927,7 +7925,7 @@ function parseStaticImport(matched) {
|
|
|
7927
7925
|
namedImports
|
|
7928
7926
|
};
|
|
7929
7927
|
}
|
|
7930
|
-
|
|
7928
|
+
_chunk6EUZQHAFjs.__name.call(void 0, parseStaticImport, "parseStaticImport");
|
|
7931
7929
|
function parseTypeImport(matched) {
|
|
7932
7930
|
if (matched.type === "type") {
|
|
7933
7931
|
return parseStaticImport(matched);
|
|
@@ -7951,7 +7949,7 @@ function parseTypeImport(matched) {
|
|
|
7951
7949
|
namedImports
|
|
7952
7950
|
};
|
|
7953
7951
|
}
|
|
7954
|
-
|
|
7952
|
+
_chunk6EUZQHAFjs.__name.call(void 0, parseTypeImport, "parseTypeImport");
|
|
7955
7953
|
function findExports(code) {
|
|
7956
7954
|
const declaredExports = matchAll(EXPORT_DECAL_RE, code, {
|
|
7957
7955
|
type: "declaration"
|
|
@@ -8013,7 +8011,7 @@ function findExports(code) {
|
|
|
8013
8011
|
})
|
|
8014
8012
|
);
|
|
8015
8013
|
}
|
|
8016
|
-
|
|
8014
|
+
_chunk6EUZQHAFjs.__name.call(void 0, findExports, "findExports");
|
|
8017
8015
|
function findTypeExports(code) {
|
|
8018
8016
|
const declaredExports = matchAll(
|
|
8019
8017
|
EXPORT_DECAL_TYPE_RE,
|
|
@@ -8044,7 +8042,7 @@ function findTypeExports(code) {
|
|
|
8044
8042
|
})
|
|
8045
8043
|
);
|
|
8046
8044
|
}
|
|
8047
|
-
|
|
8045
|
+
_chunk6EUZQHAFjs.__name.call(void 0, findTypeExports, "findTypeExports");
|
|
8048
8046
|
function normalizeExports(exports) {
|
|
8049
8047
|
for (const exp of exports) {
|
|
8050
8048
|
if (!exp.name && exp.names && exp.names.length === 1) {
|
|
@@ -8066,18 +8064,18 @@ function normalizeExports(exports) {
|
|
|
8066
8064
|
}
|
|
8067
8065
|
return exports;
|
|
8068
8066
|
}
|
|
8069
|
-
|
|
8067
|
+
_chunk6EUZQHAFjs.__name.call(void 0, normalizeExports, "normalizeExports");
|
|
8070
8068
|
function normalizeNamedExports(namedExports) {
|
|
8071
8069
|
for (const namedExport of namedExports) {
|
|
8072
8070
|
namedExport.names = namedExport.exports.replace(/^\r?\n?/, "").split(/\s*,\s*/g).filter((name) => !TYPE_RE.test(name)).map((name) => name.replace(/^.*?\sas\s/, "").trim());
|
|
8073
8071
|
}
|
|
8074
8072
|
return namedExports;
|
|
8075
8073
|
}
|
|
8076
|
-
|
|
8074
|
+
_chunk6EUZQHAFjs.__name.call(void 0, normalizeNamedExports, "normalizeNamedExports");
|
|
8077
8075
|
function findExportNames(code) {
|
|
8078
8076
|
return findExports(code).flatMap((exp) => exp.names).filter(Boolean);
|
|
8079
8077
|
}
|
|
8080
|
-
|
|
8078
|
+
_chunk6EUZQHAFjs.__name.call(void 0, findExportNames, "findExportNames");
|
|
8081
8079
|
async function resolveModuleExportNames(id, options) {
|
|
8082
8080
|
const url = await resolvePath(id, options);
|
|
8083
8081
|
const code = await loadURL(url);
|
|
@@ -8099,7 +8097,7 @@ async function resolveModuleExportNames(id, options) {
|
|
|
8099
8097
|
}
|
|
8100
8098
|
return [...exportNames];
|
|
8101
8099
|
}
|
|
8102
|
-
|
|
8100
|
+
_chunk6EUZQHAFjs.__name.call(void 0, resolveModuleExportNames, "resolveModuleExportNames");
|
|
8103
8101
|
function _filterStatement(locations, statements) {
|
|
8104
8102
|
return statements.filter((exp) => {
|
|
8105
8103
|
return !locations || locations.some((location) => {
|
|
@@ -8107,14 +8105,14 @@ function _filterStatement(locations, statements) {
|
|
|
8107
8105
|
});
|
|
8108
8106
|
});
|
|
8109
8107
|
}
|
|
8110
|
-
|
|
8108
|
+
_chunk6EUZQHAFjs.__name.call(void 0, _filterStatement, "_filterStatement");
|
|
8111
8109
|
function _tryGetLocations(code, label) {
|
|
8112
8110
|
try {
|
|
8113
8111
|
return _getLocations(code, label);
|
|
8114
8112
|
} catch (e7) {
|
|
8115
8113
|
}
|
|
8116
8114
|
}
|
|
8117
|
-
|
|
8115
|
+
_chunk6EUZQHAFjs.__name.call(void 0, _tryGetLocations, "_tryGetLocations");
|
|
8118
8116
|
function _getLocations(code, label) {
|
|
8119
8117
|
const tokens = tokenizer2(code, {
|
|
8120
8118
|
ecmaVersion: "latest",
|
|
@@ -8134,12 +8132,12 @@ function _getLocations(code, label) {
|
|
|
8134
8132
|
}
|
|
8135
8133
|
return locations;
|
|
8136
8134
|
}
|
|
8137
|
-
|
|
8135
|
+
_chunk6EUZQHAFjs.__name.call(void 0, _getLocations, "_getLocations");
|
|
8138
8136
|
function createCommonJS(url) {
|
|
8139
8137
|
const __filename = fileURLToPath(url);
|
|
8140
8138
|
const __dirname = _path.dirname.call(void 0, __filename);
|
|
8141
8139
|
let _nativeRequire;
|
|
8142
|
-
const getNativeRequire = /* @__PURE__ */
|
|
8140
|
+
const getNativeRequire = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, () => {
|
|
8143
8141
|
if (!_nativeRequire) {
|
|
8144
8142
|
_nativeRequire = _module.createRequire.call(void 0, url);
|
|
8145
8143
|
}
|
|
@@ -8148,8 +8146,8 @@ function createCommonJS(url) {
|
|
|
8148
8146
|
function require2(id) {
|
|
8149
8147
|
return getNativeRequire()(id);
|
|
8150
8148
|
}
|
|
8151
|
-
|
|
8152
|
-
require2.resolve = /* @__PURE__ */
|
|
8149
|
+
_chunk6EUZQHAFjs.__name.call(void 0, require2, "require");
|
|
8150
|
+
require2.resolve = /* @__PURE__ */ _chunk6EUZQHAFjs.__name.call(void 0, function requireResolve(id, options) {
|
|
8153
8151
|
return getNativeRequire().resolve(id, options);
|
|
8154
8152
|
}, "requireResolve");
|
|
8155
8153
|
return {
|
|
@@ -8158,7 +8156,7 @@ function createCommonJS(url) {
|
|
|
8158
8156
|
require: require2
|
|
8159
8157
|
};
|
|
8160
8158
|
}
|
|
8161
|
-
|
|
8159
|
+
_chunk6EUZQHAFjs.__name.call(void 0, createCommonJS, "createCommonJS");
|
|
8162
8160
|
function interopDefault(sourceModule, opts = {}) {
|
|
8163
8161
|
if (!isObject(sourceModule) || !("default" in sourceModule)) {
|
|
8164
8162
|
return sourceModule;
|
|
@@ -8187,14 +8185,14 @@ function interopDefault(sourceModule, opts = {}) {
|
|
|
8187
8185
|
}
|
|
8188
8186
|
return defaultValue;
|
|
8189
8187
|
}
|
|
8190
|
-
|
|
8188
|
+
_chunk6EUZQHAFjs.__name.call(void 0, interopDefault, "interopDefault");
|
|
8191
8189
|
var EVAL_ESM_IMPORT_RE = /(?<=import .* from ["'])([^"']+)(?=["'])|(?<=export .* from ["'])([^"']+)(?=["'])|(?<=import\s*["'])([^"']+)(?=["'])|(?<=import\s*\(["'])([^"']+)(?=["']\))/g;
|
|
8192
8190
|
async function loadModule(id, options = {}) {
|
|
8193
8191
|
const url = await resolve2(id, options);
|
|
8194
8192
|
const code = await loadURL(url);
|
|
8195
8193
|
return evalModule(code, { ...options, url });
|
|
8196
8194
|
}
|
|
8197
|
-
|
|
8195
|
+
_chunk6EUZQHAFjs.__name.call(void 0, loadModule, "loadModule");
|
|
8198
8196
|
async function evalModule(code, options = {}) {
|
|
8199
8197
|
const transformed = await transformModule(code, options);
|
|
8200
8198
|
const dataURL = toDataURL(transformed);
|
|
@@ -8206,7 +8204,7 @@ async function evalModule(code, options = {}) {
|
|
|
8206
8204
|
throw error;
|
|
8207
8205
|
});
|
|
8208
8206
|
}
|
|
8209
|
-
|
|
8207
|
+
_chunk6EUZQHAFjs.__name.call(void 0, evalModule, "evalModule");
|
|
8210
8208
|
function transformModule(code, options = {}) {
|
|
8211
8209
|
if (options.url && options.url.endsWith(".json")) {
|
|
8212
8210
|
return Promise.resolve("export default " + code);
|
|
@@ -8216,7 +8214,7 @@ function transformModule(code, options = {}) {
|
|
|
8216
8214
|
}
|
|
8217
8215
|
return Promise.resolve(code);
|
|
8218
8216
|
}
|
|
8219
|
-
|
|
8217
|
+
_chunk6EUZQHAFjs.__name.call(void 0, transformModule, "transformModule");
|
|
8220
8218
|
async function resolveImports(code, options) {
|
|
8221
8219
|
const imports = [...code.matchAll(EVAL_ESM_IMPORT_RE)].map((m2) => m2[0]);
|
|
8222
8220
|
if (imports.length === 0) {
|
|
@@ -8240,7 +8238,7 @@ async function resolveImports(code, options) {
|
|
|
8240
8238
|
);
|
|
8241
8239
|
return code.replace(re, (id) => resolved.get(id));
|
|
8242
8240
|
}
|
|
8243
|
-
|
|
8241
|
+
_chunk6EUZQHAFjs.__name.call(void 0, resolveImports, "resolveImports");
|
|
8244
8242
|
var ESM_RE = /([\s;]|^)(import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m;
|
|
8245
8243
|
var CJS_RE = /([\s;]|^)(module.exports\b|exports\.\w|require\s*\(|global\.\w)/m;
|
|
8246
8244
|
var COMMENT_RE = /\/\*.+?\*\/|\/\/.*(?=[nr])/g;
|
|
@@ -8251,14 +8249,14 @@ function hasESMSyntax(code, opts = {}) {
|
|
|
8251
8249
|
}
|
|
8252
8250
|
return ESM_RE.test(code);
|
|
8253
8251
|
}
|
|
8254
|
-
|
|
8252
|
+
_chunk6EUZQHAFjs.__name.call(void 0, hasESMSyntax, "hasESMSyntax");
|
|
8255
8253
|
function hasCJSSyntax(code, opts = {}) {
|
|
8256
8254
|
if (opts.stripComments) {
|
|
8257
8255
|
code = code.replace(COMMENT_RE, "");
|
|
8258
8256
|
}
|
|
8259
8257
|
return CJS_RE.test(code);
|
|
8260
8258
|
}
|
|
8261
|
-
|
|
8259
|
+
_chunk6EUZQHAFjs.__name.call(void 0, hasCJSSyntax, "hasCJSSyntax");
|
|
8262
8260
|
function detectSyntax(code, opts = {}) {
|
|
8263
8261
|
if (opts.stripComments) {
|
|
8264
8262
|
code = code.replace(COMMENT_RE, "");
|
|
@@ -8271,7 +8269,7 @@ function detectSyntax(code, opts = {}) {
|
|
|
8271
8269
|
isMixed: hasESM && hasCJS
|
|
8272
8270
|
};
|
|
8273
8271
|
}
|
|
8274
|
-
|
|
8272
|
+
_chunk6EUZQHAFjs.__name.call(void 0, detectSyntax, "detectSyntax");
|
|
8275
8273
|
var validNodeImportDefaults = {
|
|
8276
8274
|
allowedProtocols: ["node", "file", "data"]
|
|
8277
8275
|
};
|
|
@@ -8307,8 +8305,7 @@ async function isValidNodeImport(id, _options = {}) {
|
|
|
8307
8305
|
}) || "";
|
|
8308
8306
|
return !hasESMSyntax(code, { stripComments: options.stripComments });
|
|
8309
8307
|
}
|
|
8310
|
-
|
|
8311
|
-
|
|
8308
|
+
_chunk6EUZQHAFjs.__name.call(void 0, isValidNodeImport, "isValidNodeImport");
|
|
8312
8309
|
|
|
8313
8310
|
|
|
8314
8311
|
|
|
@@ -8359,4 +8356,4 @@ _chunkC4IRH3TZcjs.__name.call(void 0, isValidNodeImport, "isValidNodeImport");
|
|
|
8359
8356
|
|
|
8360
8357
|
|
|
8361
8358
|
|
|
8362
|
-
exports.normalize = normalize; exports.join = join; exports.resolve = resolve; exports.isAbsolute = isAbsolute; exports.extname = extname; exports.relative = relative; exports.dirname = dirname; exports.
|
|
8359
|
+
exports.normalizeWindowsPath = normalizeWindowsPath; exports.normalize = normalize; exports.join = join; exports.resolve = resolve; exports.isAbsolute = isAbsolute; exports.extname = extname; exports.relative = relative; exports.dirname = dirname; exports.readPackageJSON = readPackageJSON; exports.fileURLToPath = fileURLToPath; exports.pathToFileURL = pathToFileURL; exports.sanitizeURIComponent = sanitizeURIComponent; exports.sanitizeFilePath = sanitizeFilePath; exports.normalizeid = normalizeid; exports.loadURL = loadURL; exports.toDataURL = toDataURL; exports.isNodeBuiltin = isNodeBuiltin; exports.getProtocol = getProtocol; exports.resolveSync = resolveSync; exports.resolve2 = resolve2; exports.resolvePathSync = resolvePathSync; exports.resolvePath = resolvePath; exports.createResolve = createResolve; exports.parseNodeModulePath = parseNodeModulePath; exports.lookupNodeModuleSubpath = lookupNodeModuleSubpath; exports.ESM_STATIC_IMPORT_RE = ESM_STATIC_IMPORT_RE; exports.DYNAMIC_IMPORT_RE = DYNAMIC_IMPORT_RE; exports.EXPORT_DECAL_RE = EXPORT_DECAL_RE; exports.EXPORT_DECAL_TYPE_RE = EXPORT_DECAL_TYPE_RE; exports.findStaticImports = findStaticImports; exports.findDynamicImports = findDynamicImports; exports.findTypeImports = findTypeImports; exports.parseStaticImport = parseStaticImport; exports.parseTypeImport = parseTypeImport; exports.findExports = findExports; exports.findTypeExports = findTypeExports; exports.findExportNames = findExportNames; exports.resolveModuleExportNames = resolveModuleExportNames; exports.createCommonJS = createCommonJS; exports.interopDefault = interopDefault; exports.loadModule = loadModule; exports.evalModule = evalModule; exports.transformModule = transformModule; exports.resolveImports = resolveImports; exports.hasESMSyntax = hasESMSyntax; exports.hasCJSSyntax = hasCJSSyntax; exports.detectSyntax = detectSyntax; exports.isValidNodeImport = isValidNodeImport;
|