@ariestools/toolchain 8.7.26 → 8.7.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/deplint/findFiles.d.ts +1 -1
- package/dist/actions/deplint/findFiles.d.ts.map +1 -1
- package/dist/actions/deplint/isTerminalPackage.d.ts +1 -1
- package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
- package/dist/actions/deplint/types.d.ts +2 -3
- package/dist/actions/deplint/types.d.ts.map +1 -1
- package/dist/actions/skills/defaults.d.ts +18 -1
- package/dist/actions/skills/defaults.d.ts.map +1 -1
- package/dist/actions/skills/detectProfile.d.ts +8 -0
- package/dist/actions/skills/detectProfile.d.ts.map +1 -1
- package/dist/actions/skills/lint.d.ts.map +1 -1
- package/dist/actions/skills/skillRules.d.ts +12 -1
- package/dist/actions/skills/skillRules.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +915 -2503
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +368 -2056
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +717 -2401
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +159 -86
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +159 -86
- package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
- package/dist/bin/package/fix.mjs +259 -148
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint-verbose.mjs +259 -148
- package/dist/bin/package/lint-verbose.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +259 -148
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +393 -2027
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +719 -2403
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +259 -148
- package/dist/bin/package/relint.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +232 -1961
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/run-or-exec.mjs +157 -84
- package/dist/bin/run-or-exec.mjs.map +1 -1
- package/dist/bin/skills.mjs +4375 -670
- package/dist/bin/skills.mjs.map +1 -1
- package/dist/bin/xy.mjs +886 -2251
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/xy/common/skills/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -7,7 +7,7 @@ import * as xi from "node:fs";
|
|
|
7
7
|
import fs, { closeSync, existsSync, openSync, promises, readFileSync, readSync, statSync } from "node:fs";
|
|
8
8
|
import PATH, { basename, delimiter, dirname, normalize, posix, resolve, win32 } from "node:path";
|
|
9
9
|
import { fileURLToPath } from "node:url";
|
|
10
|
-
import
|
|
10
|
+
import Ie, { lstatSync, readdir, readdirSync, readlinkSync, realpathSync } from "fs";
|
|
11
11
|
import fs$1, { lstat, readdir as readdir$1, readlink, realpath } from "node:fs/promises";
|
|
12
12
|
import { EventEmitter } from "node:events";
|
|
13
13
|
import Pe, { PassThrough } from "node:stream";
|
|
@@ -15,10 +15,10 @@ import { StringDecoder } from "node:string_decoder";
|
|
|
15
15
|
import Re from "path";
|
|
16
16
|
import { spawn } from "node:child_process";
|
|
17
17
|
import u from "node:readline";
|
|
18
|
-
import ts, { formatDiagnosticsWithColorAndContext, sys } from "typescript";
|
|
19
18
|
import Ue from "os";
|
|
20
19
|
import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
|
|
21
20
|
import util from "node:util";
|
|
21
|
+
import ts, { formatDiagnosticsWithColorAndContext, sys } from "typescript";
|
|
22
22
|
import { build } from "esbuild";
|
|
23
23
|
import { pipeline } from "node:stream/promises";
|
|
24
24
|
import zlib from "node:zlib";
|
|
@@ -57,17 +57,47 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
57
57
|
}
|
|
58
58
|
return to;
|
|
59
59
|
};
|
|
60
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
60
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
61
61
|
value: mod,
|
|
62
62
|
enumerable: true
|
|
63
63
|
}) : target, mod));
|
|
64
64
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
65
65
|
//#endregion
|
|
66
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
66
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
|
|
67
|
+
function stringReplaceAll(string, substring, postfix) {
|
|
68
|
+
let index = string.indexOf(substring);
|
|
69
|
+
if (index === -1) return string;
|
|
70
|
+
const substringLength = substring.length;
|
|
71
|
+
let endIndex = 0;
|
|
72
|
+
let returnValue = "";
|
|
73
|
+
do {
|
|
74
|
+
returnValue += string.slice(endIndex, index) + substring + postfix;
|
|
75
|
+
endIndex = index + substringLength;
|
|
76
|
+
index = string.indexOf(substring, endIndex);
|
|
77
|
+
} while (index !== -1);
|
|
78
|
+
returnValue += string.slice(endIndex);
|
|
79
|
+
return returnValue;
|
|
80
|
+
}
|
|
81
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
82
|
+
let endIndex = 0;
|
|
83
|
+
let returnValue = "";
|
|
84
|
+
do {
|
|
85
|
+
const isGotCR = string[index - 1] === "\r";
|
|
86
|
+
returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
|
|
87
|
+
endIndex = index + 1;
|
|
88
|
+
index = string.indexOf("\n", endIndex);
|
|
89
|
+
} while (index !== -1);
|
|
90
|
+
returnValue += string.slice(endIndex);
|
|
91
|
+
return returnValue;
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
67
95
|
const ANSI_BACKGROUND_OFFSET = 10;
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
const
|
|
96
|
+
const ANSI_UNDERLINE_OFFSET = 20;
|
|
97
|
+
const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
|
|
98
|
+
const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
|
|
99
|
+
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
|
|
100
|
+
const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
|
|
71
101
|
const styles$1 = {
|
|
72
102
|
modifier: {
|
|
73
103
|
reset: [0, 0],
|
|
@@ -75,6 +105,10 @@ const styles$1 = {
|
|
|
75
105
|
dim: [2, 22],
|
|
76
106
|
italic: [3, 23],
|
|
77
107
|
underline: [4, 24],
|
|
108
|
+
underlineDouble: ["4:2", 24],
|
|
109
|
+
underlineCurly: ["4:3", 24],
|
|
110
|
+
underlineDotted: ["4:4", 24],
|
|
111
|
+
underlineDashed: ["4:5", 24],
|
|
78
112
|
overline: [53, 55],
|
|
79
113
|
inverse: [7, 27],
|
|
80
114
|
hidden: [8, 28],
|
|
@@ -119,22 +153,43 @@ const styles$1 = {
|
|
|
119
153
|
bgMagentaBright: [105, 49],
|
|
120
154
|
bgCyanBright: [106, 49],
|
|
121
155
|
bgWhiteBright: [107, 49]
|
|
156
|
+
},
|
|
157
|
+
underlineColor: {
|
|
158
|
+
underlineBlack: ["58;5;0", 59],
|
|
159
|
+
underlineRed: ["58;5;1", 59],
|
|
160
|
+
underlineGreen: ["58;5;2", 59],
|
|
161
|
+
underlineYellow: ["58;5;3", 59],
|
|
162
|
+
underlineBlue: ["58;5;4", 59],
|
|
163
|
+
underlineMagenta: ["58;5;5", 59],
|
|
164
|
+
underlineCyan: ["58;5;6", 59],
|
|
165
|
+
underlineWhite: ["58;5;7", 59],
|
|
166
|
+
underlineBlackBright: ["58;5;8", 59],
|
|
167
|
+
underlineGray: ["58;5;8", 59],
|
|
168
|
+
underlineGrey: ["58;5;8", 59],
|
|
169
|
+
underlineRedBright: ["58;5;9", 59],
|
|
170
|
+
underlineGreenBright: ["58;5;10", 59],
|
|
171
|
+
underlineYellowBright: ["58;5;11", 59],
|
|
172
|
+
underlineBlueBright: ["58;5;12", 59],
|
|
173
|
+
underlineMagentaBright: ["58;5;13", 59],
|
|
174
|
+
underlineCyanBright: ["58;5;14", 59],
|
|
175
|
+
underlineWhiteBright: ["58;5;15", 59]
|
|
122
176
|
}
|
|
123
177
|
};
|
|
124
178
|
Object.keys(styles$1.modifier);
|
|
125
179
|
const foregroundColorNames = Object.keys(styles$1.color);
|
|
126
180
|
const backgroundColorNames = Object.keys(styles$1.bgColor);
|
|
181
|
+
Object.keys(styles$1.underlineColor);
|
|
127
182
|
[...foregroundColorNames, ...backgroundColorNames];
|
|
128
183
|
function assembleStyles() {
|
|
129
184
|
const codes = /* @__PURE__ */ new Map();
|
|
130
185
|
for (const [groupName, group] of Object.entries(styles$1)) {
|
|
131
186
|
for (const [styleName, style] of Object.entries(group)) {
|
|
132
187
|
styles$1[styleName] = {
|
|
133
|
-
open: `\
|
|
134
|
-
close: `\
|
|
188
|
+
open: `\u{1B}[${style[0]}m`,
|
|
189
|
+
close: `\u{1B}[${style[1]}m`
|
|
135
190
|
};
|
|
136
191
|
group[styleName] = styles$1[styleName];
|
|
137
|
-
codes.set(style[0], style[1]);
|
|
192
|
+
codes.set(Number.parseInt(style[0], 10), style[1]);
|
|
138
193
|
}
|
|
139
194
|
Object.defineProperty(styles$1, groupName, {
|
|
140
195
|
value: group,
|
|
@@ -147,12 +202,16 @@ function assembleStyles() {
|
|
|
147
202
|
});
|
|
148
203
|
styles$1.color.close = "\x1B[39m";
|
|
149
204
|
styles$1.bgColor.close = "\x1B[49m";
|
|
205
|
+
styles$1.underlineColor.close = "\x1B[59m";
|
|
150
206
|
styles$1.color.ansi = wrapAnsi16();
|
|
151
207
|
styles$1.color.ansi256 = wrapAnsi256();
|
|
152
208
|
styles$1.color.ansi16m = wrapAnsi16m();
|
|
153
209
|
styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
154
210
|
styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
155
211
|
styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
212
|
+
styles$1.underlineColor.ansi = wrapUnderlineAnsi;
|
|
213
|
+
styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
|
|
214
|
+
styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
|
|
156
215
|
Object.defineProperties(styles$1, {
|
|
157
216
|
rgbToAnsi256: {
|
|
158
217
|
value(red, green, blue) {
|
|
@@ -167,7 +226,7 @@ function assembleStyles() {
|
|
|
167
226
|
},
|
|
168
227
|
hexToRgb: {
|
|
169
228
|
value(hex) {
|
|
170
|
-
const matches = /[
|
|
229
|
+
const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
|
|
171
230
|
if (!matches) return [
|
|
172
231
|
0,
|
|
173
232
|
0,
|
|
@@ -227,7 +286,7 @@ function assembleStyles() {
|
|
|
227
286
|
}
|
|
228
287
|
const ansiStyles = assembleStyles();
|
|
229
288
|
//#endregion
|
|
230
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
289
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
231
290
|
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
232
291
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
233
292
|
const position = argv.indexOf(prefix + flag);
|
|
@@ -238,12 +297,15 @@ const { env } = process$1;
|
|
|
238
297
|
let flagForceColor;
|
|
239
298
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
240
299
|
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
300
|
+
function hasNumericForceColor() {
|
|
301
|
+
return /^\d+$/.test(env.FORCE_COLOR);
|
|
302
|
+
}
|
|
241
303
|
function envForceColor() {
|
|
242
|
-
if ("FORCE_COLOR" in env)
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
304
|
+
if (!("FORCE_COLOR" in env)) return;
|
|
305
|
+
if (env.FORCE_COLOR === "false") return 0;
|
|
306
|
+
if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
|
|
307
|
+
if (!hasNumericForceColor()) return;
|
|
308
|
+
return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
247
309
|
}
|
|
248
310
|
function translateLevel(level) {
|
|
249
311
|
if (level === 0) return false;
|
|
@@ -263,6 +325,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
263
325
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
264
326
|
if (hasFlag("color=256")) return 2;
|
|
265
327
|
}
|
|
328
|
+
if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
|
|
266
329
|
if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
|
|
267
330
|
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
268
331
|
const min = forceColor || 0;
|
|
@@ -287,19 +350,19 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
287
350
|
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
288
351
|
return min;
|
|
289
352
|
}
|
|
290
|
-
if ("TEAMCITY_VERSION" in env) return /^(9\.
|
|
353
|
+
if ("TEAMCITY_VERSION" in env) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
291
354
|
if (env.COLORTERM === "truecolor") return 3;
|
|
292
355
|
if (env.TERM === "xterm-kitty") return 3;
|
|
293
356
|
if (env.TERM === "xterm-ghostty") return 3;
|
|
294
357
|
if (env.TERM === "wezterm") return 3;
|
|
295
358
|
if ("TERM_PROGRAM" in env) {
|
|
296
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
359
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
|
|
297
360
|
switch (env.TERM_PROGRAM) {
|
|
298
361
|
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
299
362
|
case "Apple_Terminal": return 2;
|
|
300
363
|
}
|
|
301
364
|
}
|
|
302
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
365
|
+
if (/-256(?:color)?$/i.test(env.TERM)) return 2;
|
|
303
366
|
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
304
367
|
if ("COLORTERM" in env) return 1;
|
|
305
368
|
return min;
|
|
@@ -310,55 +373,34 @@ function createSupportsColor(stream, options = {}) {
|
|
|
310
373
|
...options
|
|
311
374
|
}));
|
|
312
375
|
}
|
|
313
|
-
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
|
|
378
|
+
const { stdout: stdoutColor, stderr: stderrColor } = {
|
|
314
379
|
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
315
380
|
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
316
381
|
};
|
|
317
|
-
//#endregion
|
|
318
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
319
|
-
function stringReplaceAll(string, substring, replacer) {
|
|
320
|
-
let index = string.indexOf(substring);
|
|
321
|
-
if (index === -1) return string;
|
|
322
|
-
const substringLength = substring.length;
|
|
323
|
-
let endIndex = 0;
|
|
324
|
-
let returnValue = "";
|
|
325
|
-
do {
|
|
326
|
-
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
327
|
-
endIndex = index + substringLength;
|
|
328
|
-
index = string.indexOf(substring, endIndex);
|
|
329
|
-
} while (index !== -1);
|
|
330
|
-
returnValue += string.slice(endIndex);
|
|
331
|
-
return returnValue;
|
|
332
|
-
}
|
|
333
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
334
|
-
let endIndex = 0;
|
|
335
|
-
let returnValue = "";
|
|
336
|
-
do {
|
|
337
|
-
const gotCR = string[index - 1] === "\r";
|
|
338
|
-
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
339
|
-
endIndex = index + 1;
|
|
340
|
-
index = string.indexOf("\n", endIndex);
|
|
341
|
-
} while (index !== -1);
|
|
342
|
-
returnValue += string.slice(endIndex);
|
|
343
|
-
return returnValue;
|
|
344
|
-
}
|
|
345
|
-
//#endregion
|
|
346
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
347
|
-
const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
|
|
348
382
|
const GENERATOR = Symbol("GENERATOR");
|
|
349
383
|
const STYLER = Symbol("STYLER");
|
|
350
384
|
const IS_EMPTY = Symbol("IS_EMPTY");
|
|
351
|
-
const
|
|
352
|
-
"ansi",
|
|
353
|
-
"ansi",
|
|
354
|
-
"ansi256",
|
|
355
|
-
"ansi16m"
|
|
356
|
-
];
|
|
385
|
+
const LEVEL = Symbol("LEVEL");
|
|
357
386
|
const styles = Object.create(null);
|
|
387
|
+
const assertValidLevel = (level) => {
|
|
388
|
+
if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
|
|
389
|
+
};
|
|
390
|
+
const levelDescriptor = {
|
|
391
|
+
enumerable: true,
|
|
392
|
+
get() {
|
|
393
|
+
return this[LEVEL];
|
|
394
|
+
},
|
|
395
|
+
set(level) {
|
|
396
|
+
assertValidLevel(level);
|
|
397
|
+
this[LEVEL] = level;
|
|
398
|
+
}
|
|
399
|
+
};
|
|
358
400
|
const applyOptions = (object, options = {}) => {
|
|
359
|
-
if (options.level
|
|
401
|
+
if (options.level !== void 0) assertValidLevel(options.level);
|
|
360
402
|
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
361
|
-
object
|
|
403
|
+
object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
|
|
362
404
|
};
|
|
363
405
|
const chalkFactory = (options) => {
|
|
364
406
|
const chalk = (...strings) => strings.join(" ");
|
|
@@ -380,35 +422,58 @@ styles.visible = { get() {
|
|
|
380
422
|
Object.defineProperty(this, "visible", { value: builder });
|
|
381
423
|
return builder;
|
|
382
424
|
} };
|
|
383
|
-
const
|
|
425
|
+
const createModelConverters = (model, type) => {
|
|
426
|
+
const style = ansiStyles[type];
|
|
384
427
|
if (model === "rgb") {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
return
|
|
428
|
+
const ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));
|
|
429
|
+
const ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));
|
|
430
|
+
return [
|
|
431
|
+
ansi,
|
|
432
|
+
ansi,
|
|
433
|
+
ansi256,
|
|
434
|
+
style.ansi16m
|
|
435
|
+
];
|
|
436
|
+
}
|
|
437
|
+
if (model === "hex") {
|
|
438
|
+
const ansi = (hex) => style.ansi(ansiStyles.hexToAnsi(hex));
|
|
439
|
+
const ansi256 = (hex) => style.ansi256(ansiStyles.hexToAnsi256(hex));
|
|
440
|
+
return [
|
|
441
|
+
ansi,
|
|
442
|
+
ansi,
|
|
443
|
+
ansi256,
|
|
444
|
+
(hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
|
|
445
|
+
];
|
|
388
446
|
}
|
|
389
|
-
|
|
390
|
-
return
|
|
447
|
+
const ansi = (code) => style.ansi(ansiStyles.ansi256ToAnsi(code));
|
|
448
|
+
return [
|
|
449
|
+
ansi,
|
|
450
|
+
ansi,
|
|
451
|
+
style.ansi256,
|
|
452
|
+
style.ansi256
|
|
453
|
+
];
|
|
391
454
|
};
|
|
392
455
|
for (const model of [
|
|
393
456
|
"rgb",
|
|
394
457
|
"hex",
|
|
395
458
|
"ansi256"
|
|
396
459
|
]) {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
460
|
+
const capitalizedModel = model[0].toUpperCase() + model.slice(1);
|
|
461
|
+
for (const [styleName, type] of [
|
|
462
|
+
[model, "color"],
|
|
463
|
+
["bg" + capitalizedModel, "bgColor"],
|
|
464
|
+
["underline" + capitalizedModel, "underlineColor"]
|
|
465
|
+
]) {
|
|
466
|
+
const { close } = ansiStyles[type];
|
|
467
|
+
const converters = createModelConverters(model, type);
|
|
468
|
+
styles[styleName] = { get() {
|
|
469
|
+
const styleFunction = function(first, second, third) {
|
|
470
|
+
const open = converters[this.level](first, second, third);
|
|
471
|
+
return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
|
|
472
|
+
};
|
|
473
|
+
Object.defineProperty(this, styleName, { value: styleFunction });
|
|
474
|
+
return styleFunction;
|
|
475
|
+
} };
|
|
476
|
+
}
|
|
412
477
|
}
|
|
413
478
|
const proto = Object.defineProperties(() => {}, {
|
|
414
479
|
...styles,
|
|
@@ -441,15 +506,19 @@ const createStyler = (open, close, parent) => {
|
|
|
441
506
|
};
|
|
442
507
|
};
|
|
443
508
|
const createBuilder = (self, _styler, _isEmpty) => {
|
|
444
|
-
const builder = (...arguments_) =>
|
|
509
|
+
const builder = (...arguments_) => {
|
|
510
|
+
if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
|
|
511
|
+
if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
|
|
512
|
+
return applyStyle(builder, arguments_.join(" "));
|
|
513
|
+
};
|
|
445
514
|
Object.setPrototypeOf(builder, proto);
|
|
446
|
-
builder[GENERATOR] = self;
|
|
515
|
+
builder[GENERATOR] = self[GENERATOR] ?? self;
|
|
447
516
|
builder[STYLER] = _styler;
|
|
448
517
|
builder[IS_EMPTY] = _isEmpty;
|
|
449
518
|
return builder;
|
|
450
519
|
};
|
|
451
520
|
const applyStyle = (self, string) => {
|
|
452
|
-
if (self
|
|
521
|
+
if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
|
|
453
522
|
let styler = self[STYLER];
|
|
454
523
|
if (styler === void 0) return string;
|
|
455
524
|
const { openAll, closeAll } = styler;
|
|
@@ -461,7 +530,10 @@ const applyStyle = (self, string) => {
|
|
|
461
530
|
if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
462
531
|
return openAll + string + closeAll;
|
|
463
532
|
};
|
|
464
|
-
Object.defineProperties(createChalk.prototype,
|
|
533
|
+
Object.defineProperties(createChalk.prototype, {
|
|
534
|
+
...styles,
|
|
535
|
+
level: levelDescriptor
|
|
536
|
+
});
|
|
465
537
|
const chalk = createChalk();
|
|
466
538
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
467
539
|
//#endregion
|
|
@@ -470,7 +542,7 @@ function Ht(n) {
|
|
|
470
542
|
return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
|
|
471
543
|
}
|
|
472
544
|
function ps(n) {
|
|
473
|
-
return n.replace(as, fe$1).replace(ls, ue$1).replace(cs, qt).replace(fs$
|
|
545
|
+
return n.replace(as, fe$1).replace(ls, ue$1).replace(cs, qt).replace(fs$5, de$1).replace(us, pe$1);
|
|
474
546
|
}
|
|
475
547
|
function ms(n) {
|
|
476
548
|
return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os$2, ",").replace(hs, ".");
|
|
@@ -562,7 +634,7 @@ function Ut(n, t = {}) {
|
|
|
562
634
|
function es(n, t = {}) {
|
|
563
635
|
return new I$2(n, t).iterate();
|
|
564
636
|
}
|
|
565
|
-
var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$
|
|
637
|
+
var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$5, us, ds, at, Ss, lt, Es, we$1, ye$1, W, xs, be$1, vs, Ct, Cs, Ts, As, ks, Kt, Se$1, Ee$1, Q$1, tt, O$3, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce$1, Te$1, Ae$1, xe$1, A$1, Vs, Ys, Xs, Js, N$2, Zs, ke$1, Qs, ti, ve$1, ei, D$1, si, Oe$1, Vt, Fe$1, At, Re$1, ii, q$1, De$1, Tt, ri, ft, Ne$1, oi, hi, ai, G, H$1, K$1, kt, ut, Rt, _e$1, Ot, Le$1, P$1, et, v$2, dt, st, C$2, F$1, T$1, Yt, Ft, k$1, x$2, Xt, Jt, We$1, Zt, B, Qt, Dt, pt, Y$1, M, mt, li, ci, fi, ui, Mt, te$1, di, pi, V, vi, wt, Ue$1, $e, Ri, Oi, L$1, Ge$1, He$1, U, qe$1, Ke$1, X$1, Ve$1, _$2, gt, se$1, je$1, yt, j$1, Nt, Lt, Ie$1, Fi, ie$1, ze$1, bt, Be$1, _t, Wt, ne$1, Ye$1, R$3, Pt, jt, It, it, rt, St, Xe$1, Di, Mi, Ni, nt, _i, ot, oe$1, he$1, ae$1, Et, Li, zt, xt, vt, Pi, I$2, le$1, ji, Ii, zi, Bi, Ui, Ze$1;
|
|
566
638
|
var init_index_min = __esmMin((() => {
|
|
567
639
|
Gt = (n, t, e) => {
|
|
568
640
|
let s = n instanceof RegExp ? ce(n, e) : n, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
|
|
@@ -607,7 +679,7 @@ var init_index_min = __esmMin((() => {
|
|
|
607
679
|
as = /\\\\/g;
|
|
608
680
|
ls = /\\{/g;
|
|
609
681
|
cs = /\\}/g;
|
|
610
|
-
fs$
|
|
682
|
+
fs$5 = /\\,/g;
|
|
611
683
|
us = /\\./g;
|
|
612
684
|
ds = 1e5;
|
|
613
685
|
at = (n) => {
|
|
@@ -1347,7 +1419,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1347
1419
|
O$3.escape = tt;
|
|
1348
1420
|
O$3.unescape = W;
|
|
1349
1421
|
si = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
1350
|
-
Oe = /* @__PURE__ */ new Set();
|
|
1422
|
+
Oe$1 = /* @__PURE__ */ new Set();
|
|
1351
1423
|
Vt = typeof process == "object" && process ? process : {};
|
|
1352
1424
|
Fe$1 = (n, t, e, s) => {
|
|
1353
1425
|
typeof Vt.emitWarning == "function" ? Vt.emitWarning(n, t, e, s) : console.error(`[${e}] ${t}: ${n}`);
|
|
@@ -1380,7 +1452,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1380
1452
|
n && (n = !1, Fe$1("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
|
|
1381
1453
|
};
|
|
1382
1454
|
}
|
|
1383
|
-
ii = (n) => !Oe.has(n);
|
|
1455
|
+
ii = (n) => !Oe$1.has(n);
|
|
1384
1456
|
q$1 = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
|
|
1385
1457
|
De$1 = (n) => q$1(n) ? n <= Math.pow(2, 8) ? Uint8Array : n <= Math.pow(2, 16) ? Uint16Array : n <= Math.pow(2, 32) ? Uint32Array : n <= Number.MAX_SAFE_INTEGER ? Tt : null : null;
|
|
1386
1458
|
Tt = class extends Array {
|
|
@@ -1533,7 +1605,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1533
1605
|
if (this.#t === 0 && this.ttl === 0 && this.#s === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
1534
1606
|
if (!this.ttlAutopurge && !this.#t && !this.#s) {
|
|
1535
1607
|
let $t = "LRU_CACHE_UNBOUNDED";
|
|
1536
|
-
ii($t) && (Oe.add($t), Fe$1("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $t, Me));
|
|
1608
|
+
ii($t) && (Oe$1.add($t), Fe$1("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $t, Me));
|
|
1537
1609
|
}
|
|
1538
1610
|
}
|
|
1539
1611
|
getRemainingTTL(t) {
|
|
@@ -2317,12 +2389,13 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2317
2389
|
return oi;
|
|
2318
2390
|
}
|
|
2319
2391
|
};
|
|
2392
|
+
vi = realpathSync.native;
|
|
2320
2393
|
wt = {
|
|
2321
2394
|
lstatSync,
|
|
2322
2395
|
readdir,
|
|
2323
2396
|
readdirSync,
|
|
2324
2397
|
readlinkSync,
|
|
2325
|
-
realpathSync:
|
|
2398
|
+
realpathSync: vi,
|
|
2326
2399
|
promises: {
|
|
2327
2400
|
lstat,
|
|
2328
2401
|
readdir: readdir$1,
|
|
@@ -2338,10 +2411,10 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2338
2411
|
...n.promises || {}
|
|
2339
2412
|
}
|
|
2340
2413
|
};
|
|
2341
|
-
$e
|
|
2342
|
-
Ri = (n) => n.replace(/\//g, "\\").replace($e
|
|
2414
|
+
$e = /^\\\\\?\\([a-z]:)\\?$/i;
|
|
2415
|
+
Ri = (n) => n.replace(/\//g, "\\").replace($e, "$1\\");
|
|
2343
2416
|
Oi = /[\\\/]/;
|
|
2344
|
-
L = 0;
|
|
2417
|
+
L$1 = 0;
|
|
2345
2418
|
Ge$1 = 1;
|
|
2346
2419
|
He$1 = 2;
|
|
2347
2420
|
U = 4;
|
|
@@ -2357,9 +2430,9 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2357
2430
|
j$1 = 128;
|
|
2358
2431
|
Nt = 256;
|
|
2359
2432
|
Lt = 512;
|
|
2360
|
-
Ie = yt | j$1 | Lt;
|
|
2433
|
+
Ie$1 = yt | j$1 | Lt;
|
|
2361
2434
|
Fi = 1023;
|
|
2362
|
-
ie$1 = (n) => n.isFile() ? Ke$1 : n.isDirectory() ? U : n.isSymbolicLink() ? X$1 : n.isCharacterDevice() ? He$1 : n.isBlockDevice() ? qe$1 : n.isSocket() ? Ve$1 : n.isFIFO() ? Ge$1 : L;
|
|
2435
|
+
ie$1 = (n) => n.isFile() ? Ke$1 : n.isDirectory() ? U : n.isSymbolicLink() ? X$1 : n.isCharacterDevice() ? He$1 : n.isBlockDevice() ? qe$1 : n.isSocket() ? Ve$1 : n.isFIFO() ? Ge$1 : L$1;
|
|
2363
2436
|
ze$1 = new ft({ max: 2 ** 12 });
|
|
2364
2437
|
bt = (n) => {
|
|
2365
2438
|
let t = ze$1.get(n);
|
|
@@ -2380,7 +2453,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2380
2453
|
}
|
|
2381
2454
|
};
|
|
2382
2455
|
ne$1 = class extends ft {
|
|
2383
|
-
constructor(t =
|
|
2456
|
+
constructor(t = 16384) {
|
|
2384
2457
|
super({
|
|
2385
2458
|
maxSize: t,
|
|
2386
2459
|
sizeCalculation: (e) => e.length + 1
|
|
@@ -2484,7 +2557,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2484
2557
|
get path() {
|
|
2485
2558
|
return this.parentPath;
|
|
2486
2559
|
}
|
|
2487
|
-
constructor(t, e = L, s, i, r, o, h) {
|
|
2560
|
+
constructor(t, e = L$1, s, i, r, o, h) {
|
|
2488
2561
|
this.name = t, this.#C = r ? _t(t) : bt(t), this.#e = e & Fi, this.nocase = r, this.roots = i, this.root = s || this, this.#_ = o, this.#g = h.fullpath, this.#x = h.relative, this.#A = h.relativePosix, this.parent = h.parent, this.parent ? this.#t = this.parent.#t : this.#t = Ue$1(h.fs);
|
|
2489
2562
|
}
|
|
2490
2563
|
depth() {
|
|
@@ -2514,7 +2587,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2514
2587
|
if (t === "..") return this.parent || this;
|
|
2515
2588
|
let s = this.children(), i = this.nocase ? _t(t) : bt(t);
|
|
2516
2589
|
for (let a of s) if (a.#C === i) return a;
|
|
2517
|
-
let r = this.parent ? this.sep : "", o = this.#g ? this.#g + r + t : void 0, h = this.newChild(t, L, {
|
|
2590
|
+
let r = this.parent ? this.sep : "", o = this.#g ? this.#g + r + t : void 0, h = this.newChild(t, L$1, {
|
|
2518
2591
|
...e,
|
|
2519
2592
|
parent: this,
|
|
2520
2593
|
fullpath: o
|
|
@@ -2556,7 +2629,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2556
2629
|
return this.#y = s;
|
|
2557
2630
|
}
|
|
2558
2631
|
isUnknown() {
|
|
2559
|
-
return (this.#e & _$2) === L;
|
|
2632
|
+
return (this.#e & _$2) === L$1;
|
|
2560
2633
|
}
|
|
2561
2634
|
isType(t) {
|
|
2562
2635
|
return this[`is${t}`]();
|
|
@@ -2602,7 +2675,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2602
2675
|
if (this.#M) return !0;
|
|
2603
2676
|
if (!this.parent) return !1;
|
|
2604
2677
|
let t = this.#e & _$2;
|
|
2605
|
-
return !(t !== L && t !== X$1 || this.#e & Nt || this.#e & j$1);
|
|
2678
|
+
return !(t !== L$1 && t !== X$1 || this.#e & Nt || this.#e & j$1);
|
|
2606
2679
|
}
|
|
2607
2680
|
calledReaddir() {
|
|
2608
2681
|
return !!(this.#e & se$1);
|
|
@@ -2673,7 +2746,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2673
2746
|
}
|
|
2674
2747
|
#B(t, e) {
|
|
2675
2748
|
let s = ie$1(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & _$2;
|
|
2676
|
-
return r !== U && r !== X$1 && r !== L && (i.#e |= yt), e.unshift(i), e.provisional++, i;
|
|
2749
|
+
return r !== U && r !== X$1 && r !== L$1 && (i.#e |= yt), e.unshift(i), e.provisional++, i;
|
|
2677
2750
|
}
|
|
2678
2751
|
#U(t, e) {
|
|
2679
2752
|
for (let s = e.provisional; s < e.length; s++) {
|
|
@@ -2703,7 +2776,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2703
2776
|
let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev: u, gid: c, ino: d, mode: f, mtime: m, mtimeMs: p, nlink: w, rdev: g, size: S, uid: E } = t;
|
|
2704
2777
|
this.#b = e, this.#a = s, this.#m = i, this.#E = r, this.#c = o, this.#f = h, this.#R = a, this.#d = l, this.#s = u, this.#S = c, this.#h = d, this.#n = f, this.#p = m, this.#i = p, this.#r = w, this.#w = g, this.#u = S, this.#o = E;
|
|
2705
2778
|
let y = ie$1(t);
|
|
2706
|
-
this.#e = this.#e & gt | y | je$1, y !== L && y !== U && y !== X$1 && (this.#e |= yt);
|
|
2779
|
+
this.#e = this.#e & gt | y | je$1, y !== L$1 && y !== U && y !== X$1 && (this.#e |= yt);
|
|
2707
2780
|
}
|
|
2708
2781
|
#W = [];
|
|
2709
2782
|
#O = !1;
|
|
@@ -2769,12 +2842,12 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2769
2842
|
return t.slice(0, t.provisional);
|
|
2770
2843
|
}
|
|
2771
2844
|
canReaddir() {
|
|
2772
|
-
if (this.#e & Ie) return !1;
|
|
2845
|
+
if (this.#e & Ie$1) return !1;
|
|
2773
2846
|
let t = _$2 & this.#e;
|
|
2774
|
-
return t === L || t === U || t === X$1;
|
|
2847
|
+
return t === L$1 || t === U || t === X$1;
|
|
2775
2848
|
}
|
|
2776
2849
|
shouldWalk(t, e) {
|
|
2777
|
-
return (this.#e & U) === U && !(this.#e & Ie) && !t.has(this) && (!e || e(this));
|
|
2850
|
+
return (this.#e & U) === U && !(this.#e & Ie$1) && !t.has(this) && (!e || e(this));
|
|
2778
2851
|
}
|
|
2779
2852
|
async realpath() {
|
|
2780
2853
|
if (this.#k) return this.#k;
|
|
@@ -2805,10 +2878,10 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2805
2878
|
Pt = class n extends R$3 {
|
|
2806
2879
|
sep = "\\";
|
|
2807
2880
|
splitSep = Oi;
|
|
2808
|
-
constructor(t, e = L, s, i, r, o, h) {
|
|
2881
|
+
constructor(t, e = L$1, s, i, r, o, h) {
|
|
2809
2882
|
super(t, e, s, i, r, o, h);
|
|
2810
2883
|
}
|
|
2811
|
-
newChild(t, e = L, s = {}) {
|
|
2884
|
+
newChild(t, e = L$1, s = {}) {
|
|
2812
2885
|
return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
|
|
2813
2886
|
}
|
|
2814
2887
|
getRootString(t) {
|
|
@@ -2820,13 +2893,13 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2820
2893
|
return this.roots[t] = new it(t, this).root;
|
|
2821
2894
|
}
|
|
2822
2895
|
sameRoot(t, e = this.root.name) {
|
|
2823
|
-
return t = t.toUpperCase().replace(/\//g, "\\").replace($e
|
|
2896
|
+
return t = t.toUpperCase().replace(/\//g, "\\").replace($e, "$1\\"), t === e;
|
|
2824
2897
|
}
|
|
2825
2898
|
};
|
|
2826
2899
|
jt = class n extends R$3 {
|
|
2827
2900
|
splitSep = "/";
|
|
2828
2901
|
sep = "/";
|
|
2829
|
-
constructor(t, e = L, s, i, r, o, h) {
|
|
2902
|
+
constructor(t, e = L$1, s, i, r, o, h) {
|
|
2830
2903
|
super(t, e, s, i, r, o, h);
|
|
2831
2904
|
}
|
|
2832
2905
|
getRootString(t) {
|
|
@@ -2835,7 +2908,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2835
2908
|
getRoot(t) {
|
|
2836
2909
|
return this.root;
|
|
2837
2910
|
}
|
|
2838
|
-
newChild(t, e = L, s = {}) {
|
|
2911
|
+
newChild(t, e = L$1, s = {}) {
|
|
2839
2912
|
return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
|
|
2840
2913
|
}
|
|
2841
2914
|
};
|
|
@@ -2849,7 +2922,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2849
2922
|
#n;
|
|
2850
2923
|
nocase;
|
|
2851
2924
|
#r;
|
|
2852
|
-
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r =
|
|
2925
|
+
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16384, fs: o = wt } = {}) {
|
|
2853
2926
|
this.#r = Ue$1(o), (t instanceof URL || t.startsWith("file://")) && (t = fileURLToPath(t));
|
|
2854
2927
|
let h = e.resolve(t);
|
|
2855
2928
|
this.roots = Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne$1(r);
|
|
@@ -3760,7 +3833,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
3760
3833
|
var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3761
3834
|
module.exports = isexe;
|
|
3762
3835
|
isexe.sync = sync;
|
|
3763
|
-
var fs$
|
|
3836
|
+
var fs$4 = __require("fs");
|
|
3764
3837
|
function checkPathExt(path, options) {
|
|
3765
3838
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
3766
3839
|
if (!pathext) return true;
|
|
@@ -3777,12 +3850,12 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3777
3850
|
return checkPathExt(path, options);
|
|
3778
3851
|
}
|
|
3779
3852
|
function isexe(path, options, cb) {
|
|
3780
|
-
fs$
|
|
3853
|
+
fs$4.stat(path, function(er, stat) {
|
|
3781
3854
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
3782
3855
|
});
|
|
3783
3856
|
}
|
|
3784
3857
|
function sync(path, options) {
|
|
3785
|
-
return checkStat(fs$
|
|
3858
|
+
return checkStat(fs$4.statSync(path), path, options);
|
|
3786
3859
|
}
|
|
3787
3860
|
}));
|
|
3788
3861
|
//#endregion
|
|
@@ -3790,14 +3863,14 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3790
3863
|
var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3791
3864
|
module.exports = isexe;
|
|
3792
3865
|
isexe.sync = sync;
|
|
3793
|
-
var fs$
|
|
3866
|
+
var fs$3 = __require("fs");
|
|
3794
3867
|
function isexe(path, options, cb) {
|
|
3795
|
-
fs$
|
|
3868
|
+
fs$3.stat(path, function(er, stat) {
|
|
3796
3869
|
cb(er, er ? false : checkStat(stat, options));
|
|
3797
3870
|
});
|
|
3798
3871
|
}
|
|
3799
3872
|
function sync(path, options) {
|
|
3800
|
-
return checkStat(fs$
|
|
3873
|
+
return checkStat(fs$3.statSync(path), options);
|
|
3801
3874
|
}
|
|
3802
3875
|
function checkStat(stat, options) {
|
|
3803
3876
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -3861,13 +3934,14 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3861
3934
|
//#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
3862
3935
|
var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3863
3936
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
3864
|
-
const path$
|
|
3937
|
+
const path$4 = __require("path");
|
|
3865
3938
|
const COLON = isWindows ? ";" : ":";
|
|
3866
3939
|
const isexe = require_isexe();
|
|
3867
3940
|
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
3868
3941
|
const getPathInfo = (cmd, opt) => {
|
|
3869
3942
|
const colon = opt.colon || COLON;
|
|
3870
|
-
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH ||
|
|
3943
|
+
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH ||
|
|
3944
|
+
/* istanbul ignore next: very unusual */ "").split(colon)];
|
|
3871
3945
|
const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
3872
3946
|
const pathExt = isWindows ? pathExtExe.split(colon) : [""];
|
|
3873
3947
|
if (isWindows) {
|
|
@@ -3891,7 +3965,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3891
3965
|
if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
3892
3966
|
const ppRaw = pathEnv[i];
|
|
3893
3967
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
3894
|
-
const pCmd = path$
|
|
3968
|
+
const pCmd = path$4.join(pathPart, cmd);
|
|
3895
3969
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
3896
3970
|
resolve(subStep(p, i, 0));
|
|
3897
3971
|
});
|
|
@@ -3913,7 +3987,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3913
3987
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
3914
3988
|
const ppRaw = pathEnv[i];
|
|
3915
3989
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
3916
|
-
const pCmd = path$
|
|
3990
|
+
const pCmd = path$4.join(pathPart, cmd);
|
|
3917
3991
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
3918
3992
|
for (let j = 0; j < pathExt.length; j++) {
|
|
3919
3993
|
const cur = p + pathExt[j];
|
|
@@ -3944,7 +4018,7 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3944
4018
|
//#endregion
|
|
3945
4019
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
3946
4020
|
var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3947
|
-
const path$
|
|
4021
|
+
const path$3 = __require("path");
|
|
3948
4022
|
const which = require_which();
|
|
3949
4023
|
const getPathKey = require_path_key();
|
|
3950
4024
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -3959,12 +4033,12 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3959
4033
|
try {
|
|
3960
4034
|
resolved = which.sync(parsed.command, {
|
|
3961
4035
|
path: env[getPathKey({ env })],
|
|
3962
|
-
pathExt: withoutPathExt ? path$
|
|
4036
|
+
pathExt: withoutPathExt ? path$3.delimiter : void 0
|
|
3963
4037
|
});
|
|
3964
4038
|
} catch (e) {} finally {
|
|
3965
4039
|
if (shouldSwitchCwd) process.chdir(cwd);
|
|
3966
4040
|
}
|
|
3967
|
-
if (resolved) resolved = path$
|
|
4041
|
+
if (resolved) resolved = path$3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
3968
4042
|
return resolved;
|
|
3969
4043
|
}
|
|
3970
4044
|
function resolveCommand(parsed) {
|
|
@@ -4013,16 +4087,16 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
4013
4087
|
//#endregion
|
|
4014
4088
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
4015
4089
|
var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4016
|
-
const fs$
|
|
4090
|
+
const fs$2 = __require("fs");
|
|
4017
4091
|
const shebangCommand = require_shebang_command();
|
|
4018
4092
|
function readShebang(command) {
|
|
4019
4093
|
const size = 150;
|
|
4020
4094
|
const buffer = Buffer.alloc(size);
|
|
4021
4095
|
let fd;
|
|
4022
4096
|
try {
|
|
4023
|
-
fd = fs$
|
|
4024
|
-
fs$
|
|
4025
|
-
fs$
|
|
4097
|
+
fd = fs$2.openSync(command, "r");
|
|
4098
|
+
fs$2.readSync(fd, buffer, 0, size, 0);
|
|
4099
|
+
fs$2.closeSync(fd);
|
|
4026
4100
|
} catch (e) {}
|
|
4027
4101
|
return shebangCommand(buffer.toString());
|
|
4028
4102
|
}
|
|
@@ -4031,7 +4105,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4031
4105
|
//#endregion
|
|
4032
4106
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
4033
4107
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4034
|
-
const path$
|
|
4108
|
+
const path$2 = __require("path");
|
|
4035
4109
|
const resolveCommand = require_resolveCommand();
|
|
4036
4110
|
const escape = require_escape();
|
|
4037
4111
|
const readShebang = require_readShebang();
|
|
@@ -4054,7 +4128,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4054
4128
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
4055
4129
|
if (parsed.options.forceShell || needsShell) {
|
|
4056
4130
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
4057
|
-
parsed.command = path$
|
|
4131
|
+
parsed.command = path$2.normalize(parsed.command);
|
|
4058
4132
|
parsed.command = escape.command(parsed.command);
|
|
4059
4133
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
4060
4134
|
parsed.args = [
|
|
@@ -4288,14 +4362,12 @@ function listDeclaredWorkspaces(cwd = process.cwd()) {
|
|
|
4288
4362
|
//#endregion
|
|
4289
4363
|
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
|
|
4290
4364
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4291
|
-
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
4292
|
-
const MAX_LENGTH = 256;
|
|
4293
|
-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
4294
4365
|
module.exports = {
|
|
4295
|
-
MAX_LENGTH,
|
|
4366
|
+
MAX_LENGTH: 256,
|
|
4296
4367
|
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
4297
|
-
MAX_SAFE_BUILD_LENGTH:
|
|
4298
|
-
MAX_SAFE_INTEGER
|
|
4368
|
+
MAX_SAFE_BUILD_LENGTH: 250,
|
|
4369
|
+
MAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER ||
|
|
4370
|
+
/* istanbul ignore next */ 9007199254740991,
|
|
4299
4371
|
RELEASE_TYPES: [
|
|
4300
4372
|
"major",
|
|
4301
4373
|
"premajor",
|
|
@@ -4305,7 +4377,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4305
4377
|
"prepatch",
|
|
4306
4378
|
"prerelease"
|
|
4307
4379
|
],
|
|
4308
|
-
SEMVER_SPEC_VERSION,
|
|
4380
|
+
SEMVER_SPEC_VERSION: "2.0.0",
|
|
4309
4381
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
4310
4382
|
FLAG_LOOSE: 2
|
|
4311
4383
|
};
|
|
@@ -5064,1822 +5136,60 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5064
5136
|
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
5065
5137
|
return false;
|
|
5066
5138
|
}
|
|
5067
|
-
};
|
|
5068
|
-
const parseOptions = require_parse_options();
|
|
5069
|
-
const { safeRe: re, t } = require_re();
|
|
5070
|
-
const cmp = require_cmp();
|
|
5071
|
-
const debug = require_debug();
|
|
5072
|
-
const SemVer = require_semver();
|
|
5073
|
-
const Range = require_range();
|
|
5074
|
-
}));
|
|
5075
|
-
//#endregion
|
|
5076
|
-
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js
|
|
5077
|
-
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5078
|
-
const SemVer = require_semver();
|
|
5079
|
-
const Range = require_range();
|
|
5080
|
-
const gt = require_gt();
|
|
5081
|
-
const minVersion = (range, loose) => {
|
|
5082
|
-
range = new Range(range, loose);
|
|
5083
|
-
let minver = new SemVer("0.0.0");
|
|
5084
|
-
if (range.test(minver)) return minver;
|
|
5085
|
-
minver = new SemVer("0.0.0-0");
|
|
5086
|
-
if (range.test(minver)) return minver;
|
|
5087
|
-
minver = null;
|
|
5088
|
-
for (let i = 0; i < range.set.length; ++i) {
|
|
5089
|
-
const comparators = range.set[i];
|
|
5090
|
-
let setMin = null;
|
|
5091
|
-
comparators.forEach((comparator) => {
|
|
5092
|
-
const compver = new SemVer(comparator.semver.version);
|
|
5093
|
-
switch (comparator.operator) {
|
|
5094
|
-
case ">":
|
|
5095
|
-
if (compver.prerelease.length === 0) compver.patch++;
|
|
5096
|
-
else compver.prerelease.push(0);
|
|
5097
|
-
compver.raw = compver.format();
|
|
5098
|
-
case "":
|
|
5099
|
-
case ">=":
|
|
5100
|
-
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
5101
|
-
break;
|
|
5102
|
-
case "<":
|
|
5103
|
-
case "<=": break;
|
|
5104
|
-
/* istanbul ignore next */
|
|
5105
|
-
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
5106
|
-
}
|
|
5107
|
-
});
|
|
5108
|
-
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
5109
|
-
}
|
|
5110
|
-
if (minver && range.test(minver)) return minver;
|
|
5111
|
-
return null;
|
|
5112
|
-
};
|
|
5113
|
-
module.exports = minVersion;
|
|
5114
|
-
}));
|
|
5115
|
-
//#endregion
|
|
5116
|
-
//#region src/lib/initCwd.ts
|
|
5117
|
-
function INIT_CWD() {
|
|
5118
|
-
return process.env.INIT_CWD ?? process.cwd();
|
|
5119
|
-
}
|
|
5120
|
-
//#endregion
|
|
5121
|
-
//#region ../../node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js
|
|
5122
|
-
var require_resolve_from = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5123
|
-
const path$3 = __require("path");
|
|
5124
|
-
const Module = __require("module");
|
|
5125
|
-
const fs$2 = __require("fs");
|
|
5126
|
-
const resolveFrom = (fromDir, moduleId, silent) => {
|
|
5127
|
-
if (typeof fromDir !== "string") throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
|
|
5128
|
-
if (typeof moduleId !== "string") throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
|
|
5129
|
-
try {
|
|
5130
|
-
fromDir = fs$2.realpathSync(fromDir);
|
|
5131
|
-
} catch (err) {
|
|
5132
|
-
if (err.code === "ENOENT") fromDir = path$3.resolve(fromDir);
|
|
5133
|
-
else if (silent) return null;
|
|
5134
|
-
else throw err;
|
|
5135
|
-
}
|
|
5136
|
-
const fromFile = path$3.join(fromDir, "noop.js");
|
|
5137
|
-
const resolveFileName = () => Module._resolveFilename(moduleId, {
|
|
5138
|
-
id: fromFile,
|
|
5139
|
-
filename: fromFile,
|
|
5140
|
-
paths: Module._nodeModulePaths(fromDir)
|
|
5141
|
-
});
|
|
5142
|
-
if (silent) try {
|
|
5143
|
-
return resolveFileName();
|
|
5144
|
-
} catch (err) {
|
|
5145
|
-
return null;
|
|
5146
|
-
}
|
|
5147
|
-
return resolveFileName();
|
|
5148
|
-
};
|
|
5149
|
-
module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId);
|
|
5150
|
-
module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true);
|
|
5151
|
-
}));
|
|
5152
|
-
//#endregion
|
|
5153
|
-
//#region ../../node_modules/.pnpm/callsites@3.1.0/node_modules/callsites/index.js
|
|
5154
|
-
var require_callsites = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5155
|
-
const callsites = () => {
|
|
5156
|
-
const _prepareStackTrace = Error.prepareStackTrace;
|
|
5157
|
-
Error.prepareStackTrace = (_, stack) => stack;
|
|
5158
|
-
const stack = (/* @__PURE__ */ new Error()).stack.slice(1);
|
|
5159
|
-
Error.prepareStackTrace = _prepareStackTrace;
|
|
5160
|
-
return stack;
|
|
5161
|
-
};
|
|
5162
|
-
module.exports = callsites;
|
|
5163
|
-
module.exports.default = callsites;
|
|
5164
|
-
}));
|
|
5165
|
-
//#endregion
|
|
5166
|
-
//#region ../../node_modules/.pnpm/parent-module@1.0.1/node_modules/parent-module/index.js
|
|
5167
|
-
var require_parent_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5168
|
-
const callsites = require_callsites();
|
|
5169
|
-
module.exports = (filepath) => {
|
|
5170
|
-
const stacks = callsites();
|
|
5171
|
-
if (!filepath) return stacks[2].getFileName();
|
|
5172
|
-
let seenVal = false;
|
|
5173
|
-
stacks.shift();
|
|
5174
|
-
for (const stack of stacks) {
|
|
5175
|
-
const parentFilepath = stack.getFileName();
|
|
5176
|
-
if (typeof parentFilepath !== "string") continue;
|
|
5177
|
-
if (parentFilepath === filepath) {
|
|
5178
|
-
seenVal = true;
|
|
5179
|
-
continue;
|
|
5180
|
-
}
|
|
5181
|
-
if (parentFilepath === "module.js") continue;
|
|
5182
|
-
if (seenVal && parentFilepath !== filepath) return parentFilepath;
|
|
5183
|
-
}
|
|
5184
|
-
};
|
|
5185
|
-
}));
|
|
5186
|
-
//#endregion
|
|
5187
|
-
//#region ../../node_modules/.pnpm/import-fresh@3.3.1/node_modules/import-fresh/index.js
|
|
5188
|
-
var require_import_fresh = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5189
|
-
const path$2 = __require("path");
|
|
5190
|
-
const resolveFrom = require_resolve_from();
|
|
5191
|
-
const parentModule = require_parent_module();
|
|
5192
|
-
module.exports = (moduleId) => {
|
|
5193
|
-
if (typeof moduleId !== "string") throw new TypeError("Expected a string");
|
|
5194
|
-
const parentPath = parentModule(__filename);
|
|
5195
|
-
const cwd = parentPath ? path$2.dirname(parentPath) : __dirname;
|
|
5196
|
-
const filePath = resolveFrom(cwd, moduleId);
|
|
5197
|
-
const oldModule = __require.cache[filePath];
|
|
5198
|
-
if (oldModule && oldModule.parent) {
|
|
5199
|
-
let i = oldModule.parent.children.length;
|
|
5200
|
-
while (i--) if (oldModule.parent.children[i].id === filePath) oldModule.parent.children.splice(i, 1);
|
|
5201
|
-
}
|
|
5202
|
-
delete __require.cache[filePath];
|
|
5203
|
-
const parent = __require.cache[parentPath];
|
|
5204
|
-
return parent === void 0 || parent.require === void 0 ? __require(filePath) : parent.require(filePath);
|
|
5205
|
-
};
|
|
5206
|
-
}));
|
|
5207
|
-
//#endregion
|
|
5208
|
-
//#region ../../node_modules/.pnpm/is-arrayish@0.2.1/node_modules/is-arrayish/index.js
|
|
5209
|
-
var require_is_arrayish = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5210
|
-
module.exports = function isArrayish(obj) {
|
|
5211
|
-
if (!obj) return false;
|
|
5212
|
-
return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && obj.splice instanceof Function;
|
|
5213
|
-
};
|
|
5214
|
-
}));
|
|
5215
|
-
//#endregion
|
|
5216
|
-
//#region ../../node_modules/.pnpm/error-ex@1.3.4/node_modules/error-ex/index.js
|
|
5217
|
-
var require_error_ex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5218
|
-
var util$1 = __require("util");
|
|
5219
|
-
var isArrayish = require_is_arrayish();
|
|
5220
|
-
var errorEx = function errorEx(name, properties) {
|
|
5221
|
-
if (!name || name.constructor !== String) {
|
|
5222
|
-
properties = name || {};
|
|
5223
|
-
name = Error.name;
|
|
5224
|
-
}
|
|
5225
|
-
var errorExError = function ErrorEXError(message) {
|
|
5226
|
-
if (!this) return new ErrorEXError(message);
|
|
5227
|
-
message = message instanceof Error ? message.message : message || this.message;
|
|
5228
|
-
Error.call(this, message);
|
|
5229
|
-
Error.captureStackTrace(this, errorExError);
|
|
5230
|
-
this.name = name;
|
|
5231
|
-
Object.defineProperty(this, "message", {
|
|
5232
|
-
configurable: true,
|
|
5233
|
-
enumerable: false,
|
|
5234
|
-
get: function() {
|
|
5235
|
-
var newMessage = message.split(/\r?\n/g);
|
|
5236
|
-
for (var key in properties) {
|
|
5237
|
-
if (!properties.hasOwnProperty(key)) continue;
|
|
5238
|
-
var modifier = properties[key];
|
|
5239
|
-
if ("message" in modifier) {
|
|
5240
|
-
newMessage = modifier.message(this[key], newMessage) || newMessage;
|
|
5241
|
-
if (!isArrayish(newMessage)) newMessage = [newMessage];
|
|
5242
|
-
}
|
|
5243
|
-
}
|
|
5244
|
-
return newMessage.join("\n");
|
|
5245
|
-
},
|
|
5246
|
-
set: function(v) {
|
|
5247
|
-
message = v;
|
|
5248
|
-
}
|
|
5249
|
-
});
|
|
5250
|
-
var overwrittenStack = null;
|
|
5251
|
-
var stackDescriptor = Object.getOwnPropertyDescriptor(this, "stack");
|
|
5252
|
-
var stackGetter = stackDescriptor.get;
|
|
5253
|
-
var stackValue = stackDescriptor.value;
|
|
5254
|
-
delete stackDescriptor.value;
|
|
5255
|
-
delete stackDescriptor.writable;
|
|
5256
|
-
stackDescriptor.set = function(newstack) {
|
|
5257
|
-
overwrittenStack = newstack;
|
|
5258
|
-
};
|
|
5259
|
-
stackDescriptor.get = function() {
|
|
5260
|
-
var stack = (overwrittenStack || (stackGetter ? stackGetter.call(this) : stackValue)).split(/\r?\n+/g);
|
|
5261
|
-
if (!overwrittenStack) stack[0] = this.name + ": " + this.message;
|
|
5262
|
-
var lineCount = 1;
|
|
5263
|
-
for (var key in properties) {
|
|
5264
|
-
if (!properties.hasOwnProperty(key)) continue;
|
|
5265
|
-
var modifier = properties[key];
|
|
5266
|
-
if ("line" in modifier) {
|
|
5267
|
-
var line = modifier.line(this[key]);
|
|
5268
|
-
if (line) stack.splice(lineCount++, 0, " " + line);
|
|
5269
|
-
}
|
|
5270
|
-
if ("stack" in modifier) modifier.stack(this[key], stack);
|
|
5271
|
-
}
|
|
5272
|
-
return stack.join("\n");
|
|
5273
|
-
};
|
|
5274
|
-
Object.defineProperty(this, "stack", stackDescriptor);
|
|
5275
|
-
};
|
|
5276
|
-
if (Object.setPrototypeOf) {
|
|
5277
|
-
Object.setPrototypeOf(errorExError.prototype, Error.prototype);
|
|
5278
|
-
Object.setPrototypeOf(errorExError, Error);
|
|
5279
|
-
} else util$1.inherits(errorExError, Error);
|
|
5280
|
-
return errorExError;
|
|
5281
|
-
};
|
|
5282
|
-
errorEx.append = function(str, def) {
|
|
5283
|
-
return { message: function(v, message) {
|
|
5284
|
-
v = v || def;
|
|
5285
|
-
if (v) message[0] += " " + str.replace("%s", v.toString());
|
|
5286
|
-
return message;
|
|
5287
|
-
} };
|
|
5288
|
-
};
|
|
5289
|
-
errorEx.line = function(str, def) {
|
|
5290
|
-
return { line: function(v) {
|
|
5291
|
-
v = v || def;
|
|
5292
|
-
if (v) return str.replace("%s", v.toString());
|
|
5293
|
-
return null;
|
|
5294
|
-
} };
|
|
5295
|
-
};
|
|
5296
|
-
module.exports = errorEx;
|
|
5297
|
-
}));
|
|
5298
|
-
//#endregion
|
|
5299
|
-
//#region ../../node_modules/.pnpm/json-parse-even-better-errors@2.3.1/node_modules/json-parse-even-better-errors/index.js
|
|
5300
|
-
var require_json_parse_even_better_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5301
|
-
const hexify = (char) => {
|
|
5302
|
-
const h = char.charCodeAt(0).toString(16).toUpperCase();
|
|
5303
|
-
return "0x" + (h.length % 2 ? "0" : "") + h;
|
|
5304
|
-
};
|
|
5305
|
-
const parseError = (e, txt, context) => {
|
|
5306
|
-
if (!txt) return {
|
|
5307
|
-
message: e.message + " while parsing empty string",
|
|
5308
|
-
position: 0
|
|
5309
|
-
};
|
|
5310
|
-
const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);
|
|
5311
|
-
const errIdx = badToken ? +badToken[2] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
|
|
5312
|
-
const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${JSON.stringify(badToken[1])} (${hexify(badToken[1])})`) : e.message;
|
|
5313
|
-
if (errIdx !== null && errIdx !== void 0) {
|
|
5314
|
-
const start = errIdx <= context ? 0 : errIdx - context;
|
|
5315
|
-
const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
|
|
5316
|
-
const slice = (start === 0 ? "" : "...") + txt.slice(start, end) + (end === txt.length ? "" : "...");
|
|
5317
|
-
return {
|
|
5318
|
-
message: msg + ` while parsing ${txt === slice ? "" : "near "}${JSON.stringify(slice)}`,
|
|
5319
|
-
position: errIdx
|
|
5320
|
-
};
|
|
5321
|
-
} else return {
|
|
5322
|
-
message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
|
|
5323
|
-
position: 0
|
|
5324
|
-
};
|
|
5325
|
-
};
|
|
5326
|
-
var JSONParseError = class extends SyntaxError {
|
|
5327
|
-
constructor(er, txt, context, caller) {
|
|
5328
|
-
context = context || 20;
|
|
5329
|
-
const metadata = parseError(er, txt, context);
|
|
5330
|
-
super(metadata.message);
|
|
5331
|
-
Object.assign(this, metadata);
|
|
5332
|
-
this.code = "EJSONPARSE";
|
|
5333
|
-
this.systemError = er;
|
|
5334
|
-
Error.captureStackTrace(this, caller || this.constructor);
|
|
5335
|
-
}
|
|
5336
|
-
get name() {
|
|
5337
|
-
return this.constructor.name;
|
|
5338
|
-
}
|
|
5339
|
-
set name(n) {}
|
|
5340
|
-
get [Symbol.toStringTag]() {
|
|
5341
|
-
return this.constructor.name;
|
|
5342
|
-
}
|
|
5343
|
-
};
|
|
5344
|
-
const kIndent = Symbol.for("indent");
|
|
5345
|
-
const kNewline = Symbol.for("newline");
|
|
5346
|
-
const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;
|
|
5347
|
-
const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
|
|
5348
|
-
const parseJson = (txt, reviver, context) => {
|
|
5349
|
-
const parseText = stripBOM(txt);
|
|
5350
|
-
context = context || 20;
|
|
5351
|
-
try {
|
|
5352
|
-
const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [
|
|
5353
|
-
,
|
|
5354
|
-
"",
|
|
5355
|
-
""
|
|
5356
|
-
];
|
|
5357
|
-
const result = JSON.parse(parseText, reviver);
|
|
5358
|
-
if (result && typeof result === "object") {
|
|
5359
|
-
result[kNewline] = newline;
|
|
5360
|
-
result[kIndent] = indent;
|
|
5361
|
-
}
|
|
5362
|
-
return result;
|
|
5363
|
-
} catch (e) {
|
|
5364
|
-
if (typeof txt !== "string" && !Buffer.isBuffer(txt)) {
|
|
5365
|
-
const isEmptyArray = Array.isArray(txt) && txt.length === 0;
|
|
5366
|
-
throw Object.assign(/* @__PURE__ */ new TypeError(`Cannot parse ${isEmptyArray ? "an empty array" : String(txt)}`), {
|
|
5367
|
-
code: "EJSONPARSE",
|
|
5368
|
-
systemError: e
|
|
5369
|
-
});
|
|
5370
|
-
}
|
|
5371
|
-
throw new JSONParseError(e, parseText, context, parseJson);
|
|
5372
|
-
}
|
|
5373
|
-
};
|
|
5374
|
-
const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
|
|
5375
|
-
module.exports = parseJson;
|
|
5376
|
-
parseJson.JSONParseError = JSONParseError;
|
|
5377
|
-
parseJson.noExceptions = (txt, reviver) => {
|
|
5378
|
-
try {
|
|
5379
|
-
return JSON.parse(stripBOM(txt), reviver);
|
|
5380
|
-
} catch (e) {}
|
|
5381
|
-
};
|
|
5382
|
-
}));
|
|
5383
|
-
//#endregion
|
|
5384
|
-
//#region ../../node_modules/.pnpm/lines-and-columns@1.2.4/node_modules/lines-and-columns/build/index.js
|
|
5385
|
-
var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5386
|
-
exports.__esModule = true;
|
|
5387
|
-
exports.LinesAndColumns = void 0;
|
|
5388
|
-
var LF = "\n";
|
|
5389
|
-
var CR = "\r";
|
|
5390
|
-
var LinesAndColumns = function() {
|
|
5391
|
-
function LinesAndColumns(string) {
|
|
5392
|
-
this.string = string;
|
|
5393
|
-
var offsets = [0];
|
|
5394
|
-
for (var offset = 0; offset < string.length;) switch (string[offset]) {
|
|
5395
|
-
case LF:
|
|
5396
|
-
offset += LF.length;
|
|
5397
|
-
offsets.push(offset);
|
|
5398
|
-
break;
|
|
5399
|
-
case CR:
|
|
5400
|
-
offset += CR.length;
|
|
5401
|
-
if (string[offset] === LF) offset += LF.length;
|
|
5402
|
-
offsets.push(offset);
|
|
5403
|
-
break;
|
|
5404
|
-
default:
|
|
5405
|
-
offset++;
|
|
5406
|
-
break;
|
|
5407
|
-
}
|
|
5408
|
-
this.offsets = offsets;
|
|
5409
|
-
}
|
|
5410
|
-
LinesAndColumns.prototype.locationForIndex = function(index) {
|
|
5411
|
-
if (index < 0 || index > this.string.length) return null;
|
|
5412
|
-
var line = 0;
|
|
5413
|
-
var offsets = this.offsets;
|
|
5414
|
-
while (offsets[line + 1] <= index) line++;
|
|
5415
|
-
var column = index - offsets[line];
|
|
5416
|
-
return {
|
|
5417
|
-
line,
|
|
5418
|
-
column
|
|
5419
|
-
};
|
|
5420
|
-
};
|
|
5421
|
-
LinesAndColumns.prototype.indexForLocation = function(location) {
|
|
5422
|
-
var line = location.line, column = location.column;
|
|
5423
|
-
if (line < 0 || line >= this.offsets.length) return null;
|
|
5424
|
-
if (column < 0 || column > this.lengthOfLine(line)) return null;
|
|
5425
|
-
return this.offsets[line] + column;
|
|
5426
|
-
};
|
|
5427
|
-
LinesAndColumns.prototype.lengthOfLine = function(line) {
|
|
5428
|
-
var offset = this.offsets[line];
|
|
5429
|
-
return (line === this.offsets.length - 1 ? this.string.length : this.offsets[line + 1]) - offset;
|
|
5430
|
-
};
|
|
5431
|
-
return LinesAndColumns;
|
|
5432
|
-
}();
|
|
5433
|
-
exports.LinesAndColumns = LinesAndColumns;
|
|
5434
|
-
exports["default"] = LinesAndColumns;
|
|
5435
|
-
}));
|
|
5436
|
-
//#endregion
|
|
5437
|
-
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
5438
|
-
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5439
|
-
let p = process || {};
|
|
5440
|
-
let argv = p.argv || [];
|
|
5441
|
-
let env = p.env || {};
|
|
5442
|
-
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
5443
|
-
let formatter = (open, close, replace = open) => (input) => {
|
|
5444
|
-
let string = "" + input, index = string.indexOf(close, open.length);
|
|
5445
|
-
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
5446
|
-
};
|
|
5447
|
-
let replaceClose = (string, close, replace, index) => {
|
|
5448
|
-
let result = "", cursor = 0;
|
|
5449
|
-
do {
|
|
5450
|
-
result += string.substring(cursor, index) + replace;
|
|
5451
|
-
cursor = index + close.length;
|
|
5452
|
-
index = string.indexOf(close, cursor);
|
|
5453
|
-
} while (~index);
|
|
5454
|
-
return result + string.substring(cursor);
|
|
5455
|
-
};
|
|
5456
|
-
let createColors = (enabled = isColorSupported) => {
|
|
5457
|
-
let f = enabled ? formatter : () => String;
|
|
5458
|
-
return {
|
|
5459
|
-
isColorSupported: enabled,
|
|
5460
|
-
reset: f("\x1B[0m", "\x1B[0m"),
|
|
5461
|
-
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
5462
|
-
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
5463
|
-
italic: f("\x1B[3m", "\x1B[23m"),
|
|
5464
|
-
underline: f("\x1B[4m", "\x1B[24m"),
|
|
5465
|
-
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
5466
|
-
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
5467
|
-
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
5468
|
-
black: f("\x1B[30m", "\x1B[39m"),
|
|
5469
|
-
red: f("\x1B[31m", "\x1B[39m"),
|
|
5470
|
-
green: f("\x1B[32m", "\x1B[39m"),
|
|
5471
|
-
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
5472
|
-
blue: f("\x1B[34m", "\x1B[39m"),
|
|
5473
|
-
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
5474
|
-
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
5475
|
-
white: f("\x1B[37m", "\x1B[39m"),
|
|
5476
|
-
gray: f("\x1B[90m", "\x1B[39m"),
|
|
5477
|
-
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
5478
|
-
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
5479
|
-
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
5480
|
-
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
5481
|
-
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
5482
|
-
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
5483
|
-
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
5484
|
-
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
5485
|
-
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
5486
|
-
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
5487
|
-
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
5488
|
-
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
5489
|
-
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
5490
|
-
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
5491
|
-
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
5492
|
-
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
5493
|
-
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
5494
|
-
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
5495
|
-
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
5496
|
-
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
5497
|
-
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
5498
|
-
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
5499
|
-
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
5500
|
-
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
5501
|
-
};
|
|
5502
|
-
};
|
|
5503
|
-
module.exports = createColors();
|
|
5504
|
-
module.exports.createColors = createColors;
|
|
5505
|
-
}));
|
|
5506
|
-
//#endregion
|
|
5507
|
-
//#region ../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js
|
|
5508
|
-
var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5509
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5510
|
-
exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
|
|
5511
|
-
exports.matchToToken = function(match) {
|
|
5512
|
-
var token = {
|
|
5513
|
-
type: "invalid",
|
|
5514
|
-
value: match[0],
|
|
5515
|
-
closed: void 0
|
|
5516
|
-
};
|
|
5517
|
-
if (match[1]) token.type = "string", token.closed = !!(match[3] || match[4]);
|
|
5518
|
-
else if (match[5]) token.type = "comment";
|
|
5519
|
-
else if (match[6]) token.type = "comment", token.closed = !!match[7];
|
|
5520
|
-
else if (match[8]) token.type = "regex";
|
|
5521
|
-
else if (match[9]) token.type = "number";
|
|
5522
|
-
else if (match[10]) token.type = "name";
|
|
5523
|
-
else if (match[11]) token.type = "punctuator";
|
|
5524
|
-
else if (match[12]) token.type = "whitespace";
|
|
5525
|
-
return token;
|
|
5526
|
-
};
|
|
5527
|
-
}));
|
|
5528
|
-
//#endregion
|
|
5529
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
|
|
5530
|
-
var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5531
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5532
|
-
exports.isIdentifierChar = isIdentifierChar;
|
|
5533
|
-
exports.isIdentifierName = isIdentifierName;
|
|
5534
|
-
exports.isIdentifierStart = isIdentifierStart;
|
|
5535
|
-
let nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
|
|
5536
|
-
let nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
|
|
5537
|
-
const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
5538
|
-
const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
5539
|
-
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
5540
|
-
const astralIdentifierStartCodes = [
|
|
5541
|
-
0,
|
|
5542
|
-
11,
|
|
5543
|
-
2,
|
|
5544
|
-
25,
|
|
5545
|
-
2,
|
|
5546
|
-
18,
|
|
5547
|
-
2,
|
|
5548
|
-
1,
|
|
5549
|
-
2,
|
|
5550
|
-
14,
|
|
5551
|
-
3,
|
|
5552
|
-
13,
|
|
5553
|
-
35,
|
|
5554
|
-
122,
|
|
5555
|
-
70,
|
|
5556
|
-
52,
|
|
5557
|
-
268,
|
|
5558
|
-
28,
|
|
5559
|
-
4,
|
|
5560
|
-
48,
|
|
5561
|
-
48,
|
|
5562
|
-
31,
|
|
5563
|
-
14,
|
|
5564
|
-
29,
|
|
5565
|
-
6,
|
|
5566
|
-
37,
|
|
5567
|
-
11,
|
|
5568
|
-
29,
|
|
5569
|
-
3,
|
|
5570
|
-
35,
|
|
5571
|
-
5,
|
|
5572
|
-
7,
|
|
5573
|
-
2,
|
|
5574
|
-
4,
|
|
5575
|
-
43,
|
|
5576
|
-
157,
|
|
5577
|
-
19,
|
|
5578
|
-
35,
|
|
5579
|
-
5,
|
|
5580
|
-
35,
|
|
5581
|
-
5,
|
|
5582
|
-
39,
|
|
5583
|
-
9,
|
|
5584
|
-
51,
|
|
5585
|
-
13,
|
|
5586
|
-
10,
|
|
5587
|
-
2,
|
|
5588
|
-
14,
|
|
5589
|
-
2,
|
|
5590
|
-
6,
|
|
5591
|
-
2,
|
|
5592
|
-
1,
|
|
5593
|
-
2,
|
|
5594
|
-
10,
|
|
5595
|
-
2,
|
|
5596
|
-
14,
|
|
5597
|
-
2,
|
|
5598
|
-
6,
|
|
5599
|
-
2,
|
|
5600
|
-
1,
|
|
5601
|
-
4,
|
|
5602
|
-
51,
|
|
5603
|
-
13,
|
|
5604
|
-
310,
|
|
5605
|
-
10,
|
|
5606
|
-
21,
|
|
5607
|
-
11,
|
|
5608
|
-
7,
|
|
5609
|
-
25,
|
|
5610
|
-
5,
|
|
5611
|
-
2,
|
|
5612
|
-
41,
|
|
5613
|
-
2,
|
|
5614
|
-
8,
|
|
5615
|
-
70,
|
|
5616
|
-
5,
|
|
5617
|
-
3,
|
|
5618
|
-
0,
|
|
5619
|
-
2,
|
|
5620
|
-
43,
|
|
5621
|
-
2,
|
|
5622
|
-
1,
|
|
5623
|
-
4,
|
|
5624
|
-
0,
|
|
5625
|
-
3,
|
|
5626
|
-
22,
|
|
5627
|
-
11,
|
|
5628
|
-
22,
|
|
5629
|
-
10,
|
|
5630
|
-
30,
|
|
5631
|
-
66,
|
|
5632
|
-
18,
|
|
5633
|
-
2,
|
|
5634
|
-
1,
|
|
5635
|
-
11,
|
|
5636
|
-
21,
|
|
5637
|
-
11,
|
|
5638
|
-
25,
|
|
5639
|
-
7,
|
|
5640
|
-
25,
|
|
5641
|
-
39,
|
|
5642
|
-
55,
|
|
5643
|
-
7,
|
|
5644
|
-
1,
|
|
5645
|
-
65,
|
|
5646
|
-
0,
|
|
5647
|
-
16,
|
|
5648
|
-
3,
|
|
5649
|
-
2,
|
|
5650
|
-
2,
|
|
5651
|
-
2,
|
|
5652
|
-
28,
|
|
5653
|
-
43,
|
|
5654
|
-
28,
|
|
5655
|
-
4,
|
|
5656
|
-
28,
|
|
5657
|
-
36,
|
|
5658
|
-
7,
|
|
5659
|
-
2,
|
|
5660
|
-
27,
|
|
5661
|
-
28,
|
|
5662
|
-
53,
|
|
5663
|
-
11,
|
|
5664
|
-
21,
|
|
5665
|
-
11,
|
|
5666
|
-
18,
|
|
5667
|
-
14,
|
|
5668
|
-
17,
|
|
5669
|
-
111,
|
|
5670
|
-
72,
|
|
5671
|
-
56,
|
|
5672
|
-
50,
|
|
5673
|
-
14,
|
|
5674
|
-
50,
|
|
5675
|
-
14,
|
|
5676
|
-
35,
|
|
5677
|
-
39,
|
|
5678
|
-
27,
|
|
5679
|
-
10,
|
|
5680
|
-
22,
|
|
5681
|
-
251,
|
|
5682
|
-
41,
|
|
5683
|
-
7,
|
|
5684
|
-
1,
|
|
5685
|
-
17,
|
|
5686
|
-
5,
|
|
5687
|
-
57,
|
|
5688
|
-
28,
|
|
5689
|
-
11,
|
|
5690
|
-
0,
|
|
5691
|
-
9,
|
|
5692
|
-
21,
|
|
5693
|
-
43,
|
|
5694
|
-
17,
|
|
5695
|
-
47,
|
|
5696
|
-
20,
|
|
5697
|
-
28,
|
|
5698
|
-
22,
|
|
5699
|
-
13,
|
|
5700
|
-
52,
|
|
5701
|
-
58,
|
|
5702
|
-
1,
|
|
5703
|
-
3,
|
|
5704
|
-
0,
|
|
5705
|
-
14,
|
|
5706
|
-
44,
|
|
5707
|
-
33,
|
|
5708
|
-
24,
|
|
5709
|
-
27,
|
|
5710
|
-
35,
|
|
5711
|
-
30,
|
|
5712
|
-
0,
|
|
5713
|
-
3,
|
|
5714
|
-
0,
|
|
5715
|
-
9,
|
|
5716
|
-
34,
|
|
5717
|
-
4,
|
|
5718
|
-
0,
|
|
5719
|
-
13,
|
|
5720
|
-
47,
|
|
5721
|
-
15,
|
|
5722
|
-
3,
|
|
5723
|
-
22,
|
|
5724
|
-
0,
|
|
5725
|
-
2,
|
|
5726
|
-
0,
|
|
5727
|
-
36,
|
|
5728
|
-
17,
|
|
5729
|
-
2,
|
|
5730
|
-
24,
|
|
5731
|
-
20,
|
|
5732
|
-
1,
|
|
5733
|
-
64,
|
|
5734
|
-
6,
|
|
5735
|
-
2,
|
|
5736
|
-
0,
|
|
5737
|
-
2,
|
|
5738
|
-
3,
|
|
5739
|
-
2,
|
|
5740
|
-
14,
|
|
5741
|
-
2,
|
|
5742
|
-
9,
|
|
5743
|
-
8,
|
|
5744
|
-
46,
|
|
5745
|
-
39,
|
|
5746
|
-
7,
|
|
5747
|
-
3,
|
|
5748
|
-
1,
|
|
5749
|
-
3,
|
|
5750
|
-
21,
|
|
5751
|
-
2,
|
|
5752
|
-
6,
|
|
5753
|
-
2,
|
|
5754
|
-
1,
|
|
5755
|
-
2,
|
|
5756
|
-
4,
|
|
5757
|
-
4,
|
|
5758
|
-
0,
|
|
5759
|
-
19,
|
|
5760
|
-
0,
|
|
5761
|
-
13,
|
|
5762
|
-
4,
|
|
5763
|
-
31,
|
|
5764
|
-
9,
|
|
5765
|
-
2,
|
|
5766
|
-
0,
|
|
5767
|
-
3,
|
|
5768
|
-
0,
|
|
5769
|
-
2,
|
|
5770
|
-
37,
|
|
5771
|
-
2,
|
|
5772
|
-
0,
|
|
5773
|
-
26,
|
|
5774
|
-
0,
|
|
5775
|
-
2,
|
|
5776
|
-
0,
|
|
5777
|
-
45,
|
|
5778
|
-
52,
|
|
5779
|
-
19,
|
|
5780
|
-
3,
|
|
5781
|
-
21,
|
|
5782
|
-
2,
|
|
5783
|
-
31,
|
|
5784
|
-
47,
|
|
5785
|
-
21,
|
|
5786
|
-
1,
|
|
5787
|
-
2,
|
|
5788
|
-
0,
|
|
5789
|
-
185,
|
|
5790
|
-
46,
|
|
5791
|
-
42,
|
|
5792
|
-
3,
|
|
5793
|
-
37,
|
|
5794
|
-
47,
|
|
5795
|
-
21,
|
|
5796
|
-
0,
|
|
5797
|
-
60,
|
|
5798
|
-
42,
|
|
5799
|
-
14,
|
|
5800
|
-
0,
|
|
5801
|
-
72,
|
|
5802
|
-
26,
|
|
5803
|
-
38,
|
|
5804
|
-
6,
|
|
5805
|
-
186,
|
|
5806
|
-
43,
|
|
5807
|
-
117,
|
|
5808
|
-
63,
|
|
5809
|
-
32,
|
|
5810
|
-
7,
|
|
5811
|
-
3,
|
|
5812
|
-
0,
|
|
5813
|
-
3,
|
|
5814
|
-
7,
|
|
5815
|
-
2,
|
|
5816
|
-
1,
|
|
5817
|
-
2,
|
|
5818
|
-
23,
|
|
5819
|
-
16,
|
|
5820
|
-
0,
|
|
5821
|
-
2,
|
|
5822
|
-
0,
|
|
5823
|
-
95,
|
|
5824
|
-
7,
|
|
5825
|
-
3,
|
|
5826
|
-
38,
|
|
5827
|
-
17,
|
|
5828
|
-
0,
|
|
5829
|
-
2,
|
|
5830
|
-
0,
|
|
5831
|
-
29,
|
|
5832
|
-
0,
|
|
5833
|
-
11,
|
|
5834
|
-
39,
|
|
5835
|
-
8,
|
|
5836
|
-
0,
|
|
5837
|
-
22,
|
|
5838
|
-
0,
|
|
5839
|
-
12,
|
|
5840
|
-
45,
|
|
5841
|
-
20,
|
|
5842
|
-
0,
|
|
5843
|
-
19,
|
|
5844
|
-
72,
|
|
5845
|
-
200,
|
|
5846
|
-
32,
|
|
5847
|
-
32,
|
|
5848
|
-
8,
|
|
5849
|
-
2,
|
|
5850
|
-
36,
|
|
5851
|
-
18,
|
|
5852
|
-
0,
|
|
5853
|
-
50,
|
|
5854
|
-
29,
|
|
5855
|
-
113,
|
|
5856
|
-
6,
|
|
5857
|
-
2,
|
|
5858
|
-
1,
|
|
5859
|
-
2,
|
|
5860
|
-
37,
|
|
5861
|
-
22,
|
|
5862
|
-
0,
|
|
5863
|
-
26,
|
|
5864
|
-
5,
|
|
5865
|
-
2,
|
|
5866
|
-
1,
|
|
5867
|
-
2,
|
|
5868
|
-
31,
|
|
5869
|
-
15,
|
|
5870
|
-
0,
|
|
5871
|
-
24,
|
|
5872
|
-
43,
|
|
5873
|
-
261,
|
|
5874
|
-
18,
|
|
5875
|
-
16,
|
|
5876
|
-
0,
|
|
5877
|
-
2,
|
|
5878
|
-
12,
|
|
5879
|
-
2,
|
|
5880
|
-
33,
|
|
5881
|
-
125,
|
|
5882
|
-
0,
|
|
5883
|
-
80,
|
|
5884
|
-
921,
|
|
5885
|
-
103,
|
|
5886
|
-
110,
|
|
5887
|
-
18,
|
|
5888
|
-
195,
|
|
5889
|
-
2637,
|
|
5890
|
-
96,
|
|
5891
|
-
16,
|
|
5892
|
-
1071,
|
|
5893
|
-
18,
|
|
5894
|
-
5,
|
|
5895
|
-
26,
|
|
5896
|
-
3994,
|
|
5897
|
-
6,
|
|
5898
|
-
582,
|
|
5899
|
-
6842,
|
|
5900
|
-
29,
|
|
5901
|
-
1763,
|
|
5902
|
-
568,
|
|
5903
|
-
8,
|
|
5904
|
-
30,
|
|
5905
|
-
18,
|
|
5906
|
-
78,
|
|
5907
|
-
18,
|
|
5908
|
-
29,
|
|
5909
|
-
19,
|
|
5910
|
-
47,
|
|
5911
|
-
17,
|
|
5912
|
-
3,
|
|
5913
|
-
32,
|
|
5914
|
-
20,
|
|
5915
|
-
6,
|
|
5916
|
-
18,
|
|
5917
|
-
433,
|
|
5918
|
-
44,
|
|
5919
|
-
212,
|
|
5920
|
-
63,
|
|
5921
|
-
33,
|
|
5922
|
-
24,
|
|
5923
|
-
3,
|
|
5924
|
-
24,
|
|
5925
|
-
45,
|
|
5926
|
-
74,
|
|
5927
|
-
6,
|
|
5928
|
-
0,
|
|
5929
|
-
67,
|
|
5930
|
-
12,
|
|
5931
|
-
65,
|
|
5932
|
-
1,
|
|
5933
|
-
2,
|
|
5934
|
-
0,
|
|
5935
|
-
15,
|
|
5936
|
-
4,
|
|
5937
|
-
10,
|
|
5938
|
-
7381,
|
|
5939
|
-
42,
|
|
5940
|
-
31,
|
|
5941
|
-
98,
|
|
5942
|
-
114,
|
|
5943
|
-
8702,
|
|
5944
|
-
3,
|
|
5945
|
-
2,
|
|
5946
|
-
6,
|
|
5947
|
-
2,
|
|
5948
|
-
1,
|
|
5949
|
-
2,
|
|
5950
|
-
290,
|
|
5951
|
-
16,
|
|
5952
|
-
0,
|
|
5953
|
-
30,
|
|
5954
|
-
2,
|
|
5955
|
-
3,
|
|
5956
|
-
0,
|
|
5957
|
-
15,
|
|
5958
|
-
3,
|
|
5959
|
-
9,
|
|
5960
|
-
395,
|
|
5961
|
-
2309,
|
|
5962
|
-
106,
|
|
5963
|
-
6,
|
|
5964
|
-
12,
|
|
5965
|
-
4,
|
|
5966
|
-
8,
|
|
5967
|
-
8,
|
|
5968
|
-
9,
|
|
5969
|
-
5991,
|
|
5970
|
-
84,
|
|
5971
|
-
2,
|
|
5972
|
-
70,
|
|
5973
|
-
2,
|
|
5974
|
-
1,
|
|
5975
|
-
3,
|
|
5976
|
-
0,
|
|
5977
|
-
3,
|
|
5978
|
-
1,
|
|
5979
|
-
3,
|
|
5980
|
-
3,
|
|
5981
|
-
2,
|
|
5982
|
-
11,
|
|
5983
|
-
2,
|
|
5984
|
-
0,
|
|
5985
|
-
2,
|
|
5986
|
-
6,
|
|
5987
|
-
2,
|
|
5988
|
-
64,
|
|
5989
|
-
2,
|
|
5990
|
-
3,
|
|
5991
|
-
3,
|
|
5992
|
-
7,
|
|
5993
|
-
2,
|
|
5994
|
-
6,
|
|
5995
|
-
2,
|
|
5996
|
-
27,
|
|
5997
|
-
2,
|
|
5998
|
-
3,
|
|
5999
|
-
2,
|
|
6000
|
-
4,
|
|
6001
|
-
2,
|
|
6002
|
-
0,
|
|
6003
|
-
4,
|
|
6004
|
-
6,
|
|
6005
|
-
2,
|
|
6006
|
-
339,
|
|
6007
|
-
3,
|
|
6008
|
-
24,
|
|
6009
|
-
2,
|
|
6010
|
-
24,
|
|
6011
|
-
2,
|
|
6012
|
-
30,
|
|
6013
|
-
2,
|
|
6014
|
-
24,
|
|
6015
|
-
2,
|
|
6016
|
-
30,
|
|
6017
|
-
2,
|
|
6018
|
-
24,
|
|
6019
|
-
2,
|
|
6020
|
-
30,
|
|
6021
|
-
2,
|
|
6022
|
-
24,
|
|
6023
|
-
2,
|
|
6024
|
-
30,
|
|
6025
|
-
2,
|
|
6026
|
-
24,
|
|
6027
|
-
2,
|
|
6028
|
-
7,
|
|
6029
|
-
1845,
|
|
6030
|
-
30,
|
|
6031
|
-
7,
|
|
6032
|
-
5,
|
|
6033
|
-
262,
|
|
6034
|
-
61,
|
|
6035
|
-
147,
|
|
6036
|
-
44,
|
|
6037
|
-
11,
|
|
6038
|
-
6,
|
|
6039
|
-
17,
|
|
6040
|
-
0,
|
|
6041
|
-
322,
|
|
6042
|
-
29,
|
|
6043
|
-
19,
|
|
6044
|
-
43,
|
|
6045
|
-
485,
|
|
6046
|
-
27,
|
|
6047
|
-
229,
|
|
6048
|
-
29,
|
|
6049
|
-
3,
|
|
6050
|
-
0,
|
|
6051
|
-
208,
|
|
6052
|
-
30,
|
|
6053
|
-
2,
|
|
6054
|
-
2,
|
|
6055
|
-
2,
|
|
6056
|
-
1,
|
|
6057
|
-
2,
|
|
6058
|
-
6,
|
|
6059
|
-
3,
|
|
6060
|
-
4,
|
|
6061
|
-
10,
|
|
6062
|
-
1,
|
|
6063
|
-
225,
|
|
6064
|
-
6,
|
|
6065
|
-
2,
|
|
6066
|
-
3,
|
|
6067
|
-
2,
|
|
6068
|
-
1,
|
|
6069
|
-
2,
|
|
6070
|
-
14,
|
|
6071
|
-
2,
|
|
6072
|
-
196,
|
|
6073
|
-
60,
|
|
6074
|
-
67,
|
|
6075
|
-
8,
|
|
6076
|
-
0,
|
|
6077
|
-
1205,
|
|
6078
|
-
3,
|
|
6079
|
-
2,
|
|
6080
|
-
26,
|
|
6081
|
-
2,
|
|
6082
|
-
1,
|
|
6083
|
-
2,
|
|
6084
|
-
0,
|
|
6085
|
-
3,
|
|
6086
|
-
0,
|
|
6087
|
-
2,
|
|
6088
|
-
9,
|
|
6089
|
-
2,
|
|
6090
|
-
3,
|
|
6091
|
-
2,
|
|
6092
|
-
0,
|
|
6093
|
-
2,
|
|
6094
|
-
0,
|
|
6095
|
-
7,
|
|
6096
|
-
0,
|
|
6097
|
-
5,
|
|
6098
|
-
0,
|
|
6099
|
-
2,
|
|
6100
|
-
0,
|
|
6101
|
-
2,
|
|
6102
|
-
0,
|
|
6103
|
-
2,
|
|
6104
|
-
2,
|
|
6105
|
-
2,
|
|
6106
|
-
1,
|
|
6107
|
-
2,
|
|
6108
|
-
0,
|
|
6109
|
-
3,
|
|
6110
|
-
0,
|
|
6111
|
-
2,
|
|
6112
|
-
0,
|
|
6113
|
-
2,
|
|
6114
|
-
0,
|
|
6115
|
-
2,
|
|
6116
|
-
0,
|
|
6117
|
-
2,
|
|
6118
|
-
0,
|
|
6119
|
-
2,
|
|
6120
|
-
1,
|
|
6121
|
-
2,
|
|
6122
|
-
0,
|
|
6123
|
-
3,
|
|
6124
|
-
3,
|
|
6125
|
-
2,
|
|
6126
|
-
6,
|
|
6127
|
-
2,
|
|
6128
|
-
3,
|
|
6129
|
-
2,
|
|
6130
|
-
3,
|
|
6131
|
-
2,
|
|
6132
|
-
0,
|
|
6133
|
-
2,
|
|
6134
|
-
9,
|
|
6135
|
-
2,
|
|
6136
|
-
16,
|
|
6137
|
-
6,
|
|
6138
|
-
2,
|
|
6139
|
-
2,
|
|
6140
|
-
4,
|
|
6141
|
-
2,
|
|
6142
|
-
16,
|
|
6143
|
-
4421,
|
|
6144
|
-
42719,
|
|
6145
|
-
33,
|
|
6146
|
-
4381,
|
|
6147
|
-
3,
|
|
6148
|
-
5773,
|
|
6149
|
-
3,
|
|
6150
|
-
7472,
|
|
6151
|
-
16,
|
|
6152
|
-
621,
|
|
6153
|
-
2467,
|
|
6154
|
-
541,
|
|
6155
|
-
1507,
|
|
6156
|
-
4938,
|
|
6157
|
-
6,
|
|
6158
|
-
8489
|
|
6159
|
-
];
|
|
6160
|
-
const astralIdentifierCodes = [
|
|
6161
|
-
509,
|
|
6162
|
-
0,
|
|
6163
|
-
227,
|
|
6164
|
-
0,
|
|
6165
|
-
150,
|
|
6166
|
-
4,
|
|
6167
|
-
294,
|
|
6168
|
-
9,
|
|
6169
|
-
1368,
|
|
6170
|
-
2,
|
|
6171
|
-
2,
|
|
6172
|
-
1,
|
|
6173
|
-
6,
|
|
6174
|
-
3,
|
|
6175
|
-
41,
|
|
6176
|
-
2,
|
|
6177
|
-
5,
|
|
6178
|
-
0,
|
|
6179
|
-
166,
|
|
6180
|
-
1,
|
|
6181
|
-
574,
|
|
6182
|
-
3,
|
|
6183
|
-
9,
|
|
6184
|
-
9,
|
|
6185
|
-
7,
|
|
6186
|
-
9,
|
|
6187
|
-
32,
|
|
6188
|
-
4,
|
|
6189
|
-
318,
|
|
6190
|
-
1,
|
|
6191
|
-
78,
|
|
6192
|
-
5,
|
|
6193
|
-
71,
|
|
6194
|
-
10,
|
|
6195
|
-
50,
|
|
6196
|
-
3,
|
|
6197
|
-
123,
|
|
6198
|
-
2,
|
|
6199
|
-
54,
|
|
6200
|
-
14,
|
|
6201
|
-
32,
|
|
6202
|
-
10,
|
|
6203
|
-
3,
|
|
6204
|
-
1,
|
|
6205
|
-
11,
|
|
6206
|
-
3,
|
|
6207
|
-
46,
|
|
6208
|
-
10,
|
|
6209
|
-
8,
|
|
6210
|
-
0,
|
|
6211
|
-
46,
|
|
6212
|
-
9,
|
|
6213
|
-
7,
|
|
6214
|
-
2,
|
|
6215
|
-
37,
|
|
6216
|
-
13,
|
|
6217
|
-
2,
|
|
6218
|
-
9,
|
|
6219
|
-
6,
|
|
6220
|
-
1,
|
|
6221
|
-
45,
|
|
6222
|
-
0,
|
|
6223
|
-
13,
|
|
6224
|
-
2,
|
|
6225
|
-
49,
|
|
6226
|
-
13,
|
|
6227
|
-
9,
|
|
6228
|
-
3,
|
|
6229
|
-
2,
|
|
6230
|
-
11,
|
|
6231
|
-
83,
|
|
6232
|
-
11,
|
|
6233
|
-
7,
|
|
6234
|
-
0,
|
|
6235
|
-
3,
|
|
6236
|
-
0,
|
|
6237
|
-
158,
|
|
6238
|
-
11,
|
|
6239
|
-
6,
|
|
6240
|
-
9,
|
|
6241
|
-
7,
|
|
6242
|
-
3,
|
|
6243
|
-
56,
|
|
6244
|
-
1,
|
|
6245
|
-
2,
|
|
6246
|
-
6,
|
|
6247
|
-
3,
|
|
6248
|
-
1,
|
|
6249
|
-
3,
|
|
6250
|
-
2,
|
|
6251
|
-
10,
|
|
6252
|
-
0,
|
|
6253
|
-
11,
|
|
6254
|
-
1,
|
|
6255
|
-
3,
|
|
6256
|
-
6,
|
|
6257
|
-
4,
|
|
6258
|
-
4,
|
|
6259
|
-
68,
|
|
6260
|
-
8,
|
|
6261
|
-
2,
|
|
6262
|
-
0,
|
|
6263
|
-
3,
|
|
6264
|
-
0,
|
|
6265
|
-
2,
|
|
6266
|
-
3,
|
|
6267
|
-
2,
|
|
6268
|
-
4,
|
|
6269
|
-
2,
|
|
6270
|
-
0,
|
|
6271
|
-
15,
|
|
6272
|
-
1,
|
|
6273
|
-
83,
|
|
6274
|
-
17,
|
|
6275
|
-
10,
|
|
6276
|
-
9,
|
|
6277
|
-
5,
|
|
6278
|
-
0,
|
|
6279
|
-
82,
|
|
6280
|
-
19,
|
|
6281
|
-
13,
|
|
6282
|
-
9,
|
|
6283
|
-
214,
|
|
6284
|
-
6,
|
|
6285
|
-
3,
|
|
6286
|
-
8,
|
|
6287
|
-
28,
|
|
6288
|
-
1,
|
|
6289
|
-
83,
|
|
6290
|
-
16,
|
|
6291
|
-
16,
|
|
6292
|
-
9,
|
|
6293
|
-
82,
|
|
6294
|
-
12,
|
|
6295
|
-
9,
|
|
6296
|
-
9,
|
|
6297
|
-
7,
|
|
6298
|
-
19,
|
|
6299
|
-
58,
|
|
6300
|
-
14,
|
|
6301
|
-
5,
|
|
6302
|
-
9,
|
|
6303
|
-
243,
|
|
6304
|
-
14,
|
|
6305
|
-
166,
|
|
6306
|
-
9,
|
|
6307
|
-
71,
|
|
6308
|
-
5,
|
|
6309
|
-
2,
|
|
6310
|
-
1,
|
|
6311
|
-
3,
|
|
6312
|
-
3,
|
|
6313
|
-
2,
|
|
6314
|
-
0,
|
|
6315
|
-
2,
|
|
6316
|
-
1,
|
|
6317
|
-
13,
|
|
6318
|
-
9,
|
|
6319
|
-
120,
|
|
6320
|
-
6,
|
|
6321
|
-
3,
|
|
6322
|
-
6,
|
|
6323
|
-
4,
|
|
6324
|
-
0,
|
|
6325
|
-
29,
|
|
6326
|
-
9,
|
|
6327
|
-
41,
|
|
6328
|
-
6,
|
|
6329
|
-
2,
|
|
6330
|
-
3,
|
|
6331
|
-
9,
|
|
6332
|
-
0,
|
|
6333
|
-
10,
|
|
6334
|
-
10,
|
|
6335
|
-
47,
|
|
6336
|
-
15,
|
|
6337
|
-
199,
|
|
6338
|
-
7,
|
|
6339
|
-
137,
|
|
6340
|
-
9,
|
|
6341
|
-
54,
|
|
6342
|
-
7,
|
|
6343
|
-
2,
|
|
6344
|
-
7,
|
|
6345
|
-
17,
|
|
6346
|
-
9,
|
|
6347
|
-
57,
|
|
6348
|
-
21,
|
|
6349
|
-
2,
|
|
6350
|
-
13,
|
|
6351
|
-
123,
|
|
6352
|
-
5,
|
|
6353
|
-
4,
|
|
6354
|
-
0,
|
|
6355
|
-
2,
|
|
6356
|
-
1,
|
|
6357
|
-
2,
|
|
6358
|
-
6,
|
|
6359
|
-
2,
|
|
6360
|
-
0,
|
|
6361
|
-
9,
|
|
6362
|
-
9,
|
|
6363
|
-
49,
|
|
6364
|
-
4,
|
|
6365
|
-
2,
|
|
6366
|
-
1,
|
|
6367
|
-
2,
|
|
6368
|
-
4,
|
|
6369
|
-
9,
|
|
6370
|
-
9,
|
|
6371
|
-
55,
|
|
6372
|
-
9,
|
|
6373
|
-
266,
|
|
6374
|
-
3,
|
|
6375
|
-
10,
|
|
6376
|
-
1,
|
|
6377
|
-
2,
|
|
6378
|
-
0,
|
|
6379
|
-
49,
|
|
6380
|
-
6,
|
|
6381
|
-
4,
|
|
6382
|
-
4,
|
|
6383
|
-
14,
|
|
6384
|
-
10,
|
|
6385
|
-
5350,
|
|
6386
|
-
0,
|
|
6387
|
-
7,
|
|
6388
|
-
14,
|
|
6389
|
-
11465,
|
|
6390
|
-
27,
|
|
6391
|
-
2343,
|
|
6392
|
-
9,
|
|
6393
|
-
87,
|
|
6394
|
-
9,
|
|
6395
|
-
39,
|
|
6396
|
-
4,
|
|
6397
|
-
60,
|
|
6398
|
-
6,
|
|
6399
|
-
26,
|
|
6400
|
-
9,
|
|
6401
|
-
535,
|
|
6402
|
-
9,
|
|
6403
|
-
470,
|
|
6404
|
-
0,
|
|
6405
|
-
2,
|
|
6406
|
-
54,
|
|
6407
|
-
8,
|
|
6408
|
-
3,
|
|
6409
|
-
82,
|
|
6410
|
-
0,
|
|
6411
|
-
12,
|
|
6412
|
-
1,
|
|
6413
|
-
19628,
|
|
6414
|
-
1,
|
|
6415
|
-
4178,
|
|
6416
|
-
9,
|
|
6417
|
-
519,
|
|
6418
|
-
45,
|
|
6419
|
-
3,
|
|
6420
|
-
22,
|
|
6421
|
-
543,
|
|
6422
|
-
4,
|
|
6423
|
-
4,
|
|
6424
|
-
5,
|
|
6425
|
-
9,
|
|
6426
|
-
7,
|
|
6427
|
-
3,
|
|
6428
|
-
6,
|
|
6429
|
-
31,
|
|
6430
|
-
3,
|
|
6431
|
-
149,
|
|
6432
|
-
2,
|
|
6433
|
-
1418,
|
|
6434
|
-
49,
|
|
6435
|
-
513,
|
|
6436
|
-
54,
|
|
6437
|
-
5,
|
|
6438
|
-
49,
|
|
6439
|
-
9,
|
|
6440
|
-
0,
|
|
6441
|
-
15,
|
|
6442
|
-
0,
|
|
6443
|
-
23,
|
|
6444
|
-
4,
|
|
6445
|
-
2,
|
|
6446
|
-
14,
|
|
6447
|
-
1361,
|
|
6448
|
-
6,
|
|
6449
|
-
2,
|
|
6450
|
-
16,
|
|
6451
|
-
3,
|
|
6452
|
-
6,
|
|
6453
|
-
2,
|
|
6454
|
-
1,
|
|
6455
|
-
2,
|
|
6456
|
-
4,
|
|
6457
|
-
101,
|
|
6458
|
-
0,
|
|
6459
|
-
161,
|
|
6460
|
-
6,
|
|
6461
|
-
10,
|
|
6462
|
-
9,
|
|
6463
|
-
357,
|
|
6464
|
-
0,
|
|
6465
|
-
62,
|
|
6466
|
-
13,
|
|
6467
|
-
499,
|
|
6468
|
-
13,
|
|
6469
|
-
245,
|
|
6470
|
-
1,
|
|
6471
|
-
2,
|
|
6472
|
-
9,
|
|
6473
|
-
233,
|
|
6474
|
-
0,
|
|
6475
|
-
3,
|
|
6476
|
-
0,
|
|
6477
|
-
8,
|
|
6478
|
-
1,
|
|
6479
|
-
6,
|
|
6480
|
-
0,
|
|
6481
|
-
475,
|
|
6482
|
-
6,
|
|
6483
|
-
110,
|
|
6484
|
-
6,
|
|
6485
|
-
6,
|
|
6486
|
-
9,
|
|
6487
|
-
4759,
|
|
6488
|
-
9,
|
|
6489
|
-
787719,
|
|
6490
|
-
239
|
|
6491
|
-
];
|
|
6492
|
-
function isInAstralSet(code, set) {
|
|
6493
|
-
let pos = 65536;
|
|
6494
|
-
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
6495
|
-
pos += set[i];
|
|
6496
|
-
if (pos > code) return false;
|
|
6497
|
-
pos += set[i + 1];
|
|
6498
|
-
if (pos >= code) return true;
|
|
6499
|
-
}
|
|
6500
|
-
return false;
|
|
6501
|
-
}
|
|
6502
|
-
function isIdentifierStart(code) {
|
|
6503
|
-
if (code < 65) return code === 36;
|
|
6504
|
-
if (code <= 90) return true;
|
|
6505
|
-
if (code < 97) return code === 95;
|
|
6506
|
-
if (code <= 122) return true;
|
|
6507
|
-
if (code <= 65535) return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
|
|
6508
|
-
return isInAstralSet(code, astralIdentifierStartCodes);
|
|
6509
|
-
}
|
|
6510
|
-
function isIdentifierChar(code) {
|
|
6511
|
-
if (code < 48) return code === 36;
|
|
6512
|
-
if (code < 58) return true;
|
|
6513
|
-
if (code < 65) return false;
|
|
6514
|
-
if (code <= 90) return true;
|
|
6515
|
-
if (code < 97) return code === 95;
|
|
6516
|
-
if (code <= 122) return true;
|
|
6517
|
-
if (code <= 65535) return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
|
|
6518
|
-
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
6519
|
-
}
|
|
6520
|
-
function isIdentifierName(name) {
|
|
6521
|
-
let isFirst = true;
|
|
6522
|
-
for (let i = 0; i < name.length; i++) {
|
|
6523
|
-
let cp = name.charCodeAt(i);
|
|
6524
|
-
if ((cp & 64512) === 55296 && i + 1 < name.length) {
|
|
6525
|
-
const trail = name.charCodeAt(++i);
|
|
6526
|
-
if ((trail & 64512) === 56320) cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
|
|
6527
|
-
}
|
|
6528
|
-
if (isFirst) {
|
|
6529
|
-
isFirst = false;
|
|
6530
|
-
if (!isIdentifierStart(cp)) return false;
|
|
6531
|
-
} else if (!isIdentifierChar(cp)) return false;
|
|
6532
|
-
}
|
|
6533
|
-
return !isFirst;
|
|
6534
|
-
}
|
|
6535
|
-
}));
|
|
6536
|
-
//#endregion
|
|
6537
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
|
|
6538
|
-
var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6539
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6540
|
-
exports.isKeyword = isKeyword;
|
|
6541
|
-
exports.isReservedWord = isReservedWord;
|
|
6542
|
-
exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
|
|
6543
|
-
exports.isStrictBindReservedWord = isStrictBindReservedWord;
|
|
6544
|
-
exports.isStrictReservedWord = isStrictReservedWord;
|
|
6545
|
-
const reservedWords = {
|
|
6546
|
-
keyword: [
|
|
6547
|
-
"break",
|
|
6548
|
-
"case",
|
|
6549
|
-
"catch",
|
|
6550
|
-
"continue",
|
|
6551
|
-
"debugger",
|
|
6552
|
-
"default",
|
|
6553
|
-
"do",
|
|
6554
|
-
"else",
|
|
6555
|
-
"finally",
|
|
6556
|
-
"for",
|
|
6557
|
-
"function",
|
|
6558
|
-
"if",
|
|
6559
|
-
"return",
|
|
6560
|
-
"switch",
|
|
6561
|
-
"throw",
|
|
6562
|
-
"try",
|
|
6563
|
-
"var",
|
|
6564
|
-
"const",
|
|
6565
|
-
"while",
|
|
6566
|
-
"with",
|
|
6567
|
-
"new",
|
|
6568
|
-
"this",
|
|
6569
|
-
"super",
|
|
6570
|
-
"class",
|
|
6571
|
-
"extends",
|
|
6572
|
-
"export",
|
|
6573
|
-
"import",
|
|
6574
|
-
"null",
|
|
6575
|
-
"true",
|
|
6576
|
-
"false",
|
|
6577
|
-
"in",
|
|
6578
|
-
"instanceof",
|
|
6579
|
-
"typeof",
|
|
6580
|
-
"void",
|
|
6581
|
-
"delete"
|
|
6582
|
-
],
|
|
6583
|
-
strict: [
|
|
6584
|
-
"implements",
|
|
6585
|
-
"interface",
|
|
6586
|
-
"let",
|
|
6587
|
-
"package",
|
|
6588
|
-
"private",
|
|
6589
|
-
"protected",
|
|
6590
|
-
"public",
|
|
6591
|
-
"static",
|
|
6592
|
-
"yield"
|
|
6593
|
-
],
|
|
6594
|
-
strictBind: ["eval", "arguments"]
|
|
6595
|
-
};
|
|
6596
|
-
const keywords = new Set(reservedWords.keyword);
|
|
6597
|
-
const reservedWordsStrictSet = new Set(reservedWords.strict);
|
|
6598
|
-
const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
|
|
6599
|
-
function isReservedWord(word, inModule) {
|
|
6600
|
-
return inModule && word === "await" || word === "enum";
|
|
6601
|
-
}
|
|
6602
|
-
function isStrictReservedWord(word, inModule) {
|
|
6603
|
-
return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
|
|
6604
|
-
}
|
|
6605
|
-
function isStrictBindOnlyReservedWord(word) {
|
|
6606
|
-
return reservedWordsStrictBindSet.has(word);
|
|
6607
|
-
}
|
|
6608
|
-
function isStrictBindReservedWord(word, inModule) {
|
|
6609
|
-
return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
|
|
6610
|
-
}
|
|
6611
|
-
function isKeyword(word) {
|
|
6612
|
-
return keywords.has(word);
|
|
6613
|
-
}
|
|
6614
|
-
}));
|
|
6615
|
-
//#endregion
|
|
6616
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
6617
|
-
var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6618
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6619
|
-
Object.defineProperty(exports, "isIdentifierChar", {
|
|
6620
|
-
enumerable: true,
|
|
6621
|
-
get: function() {
|
|
6622
|
-
return _identifier.isIdentifierChar;
|
|
6623
|
-
}
|
|
6624
|
-
});
|
|
6625
|
-
Object.defineProperty(exports, "isIdentifierName", {
|
|
6626
|
-
enumerable: true,
|
|
6627
|
-
get: function() {
|
|
6628
|
-
return _identifier.isIdentifierName;
|
|
6629
|
-
}
|
|
6630
|
-
});
|
|
6631
|
-
Object.defineProperty(exports, "isIdentifierStart", {
|
|
6632
|
-
enumerable: true,
|
|
6633
|
-
get: function() {
|
|
6634
|
-
return _identifier.isIdentifierStart;
|
|
6635
|
-
}
|
|
6636
|
-
});
|
|
6637
|
-
Object.defineProperty(exports, "isKeyword", {
|
|
6638
|
-
enumerable: true,
|
|
6639
|
-
get: function() {
|
|
6640
|
-
return _keyword.isKeyword;
|
|
6641
|
-
}
|
|
6642
|
-
});
|
|
6643
|
-
Object.defineProperty(exports, "isReservedWord", {
|
|
6644
|
-
enumerable: true,
|
|
6645
|
-
get: function() {
|
|
6646
|
-
return _keyword.isReservedWord;
|
|
6647
|
-
}
|
|
6648
|
-
});
|
|
6649
|
-
Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
|
|
6650
|
-
enumerable: true,
|
|
6651
|
-
get: function() {
|
|
6652
|
-
return _keyword.isStrictBindOnlyReservedWord;
|
|
6653
|
-
}
|
|
6654
|
-
});
|
|
6655
|
-
Object.defineProperty(exports, "isStrictBindReservedWord", {
|
|
6656
|
-
enumerable: true,
|
|
6657
|
-
get: function() {
|
|
6658
|
-
return _keyword.isStrictBindReservedWord;
|
|
6659
|
-
}
|
|
6660
|
-
});
|
|
6661
|
-
Object.defineProperty(exports, "isStrictReservedWord", {
|
|
6662
|
-
enumerable: true,
|
|
6663
|
-
get: function() {
|
|
6664
|
-
return _keyword.isStrictReservedWord;
|
|
6665
|
-
}
|
|
6666
|
-
});
|
|
6667
|
-
var _identifier = require_identifier();
|
|
6668
|
-
var _keyword = require_keyword();
|
|
6669
|
-
}));
|
|
6670
|
-
//#endregion
|
|
6671
|
-
//#region ../../node_modules/.pnpm/@babel+code-frame@7.29.7/node_modules/@babel/code-frame/lib/index.js
|
|
6672
|
-
var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6673
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6674
|
-
var picocolors = require_picocolors();
|
|
6675
|
-
var jsTokens = require_js_tokens();
|
|
6676
|
-
var helperValidatorIdentifier = require_lib$1();
|
|
6677
|
-
function isColorSupported() {
|
|
6678
|
-
return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
|
|
6679
|
-
}
|
|
6680
|
-
const compose = (f, g) => (v) => f(g(v));
|
|
6681
|
-
function buildDefs(colors) {
|
|
6682
|
-
return {
|
|
6683
|
-
keyword: colors.cyan,
|
|
6684
|
-
capitalized: colors.yellow,
|
|
6685
|
-
jsxIdentifier: colors.yellow,
|
|
6686
|
-
punctuator: colors.yellow,
|
|
6687
|
-
number: colors.magenta,
|
|
6688
|
-
string: colors.green,
|
|
6689
|
-
regex: colors.magenta,
|
|
6690
|
-
comment: colors.gray,
|
|
6691
|
-
invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
|
|
6692
|
-
gutter: colors.gray,
|
|
6693
|
-
marker: compose(colors.red, colors.bold),
|
|
6694
|
-
message: compose(colors.red, colors.bold),
|
|
6695
|
-
reset: colors.reset
|
|
6696
|
-
};
|
|
6697
|
-
}
|
|
6698
|
-
const defsOn = buildDefs(picocolors.createColors(true));
|
|
6699
|
-
const defsOff = buildDefs(picocolors.createColors(false));
|
|
6700
|
-
function getDefs(enabled) {
|
|
6701
|
-
return enabled ? defsOn : defsOff;
|
|
6702
|
-
}
|
|
6703
|
-
const sometimesKeywords = /* @__PURE__ */ new Set([
|
|
6704
|
-
"as",
|
|
6705
|
-
"async",
|
|
6706
|
-
"from",
|
|
6707
|
-
"get",
|
|
6708
|
-
"of",
|
|
6709
|
-
"set"
|
|
6710
|
-
]);
|
|
6711
|
-
const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
|
|
6712
|
-
const BRACKET = /^[()[\]{}]$/;
|
|
6713
|
-
let tokenize;
|
|
6714
|
-
const JSX_TAG = /^[a-z][\w-]*$/i;
|
|
6715
|
-
const getTokenType = function(token, offset, text) {
|
|
6716
|
-
if (token.type === "name") {
|
|
6717
|
-
const tokenValue = token.value;
|
|
6718
|
-
if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) return "keyword";
|
|
6719
|
-
if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) return "jsxIdentifier";
|
|
6720
|
-
const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
|
|
6721
|
-
if (firstChar !== firstChar.toLowerCase()) return "capitalized";
|
|
6722
|
-
}
|
|
6723
|
-
if (token.type === "punctuator" && BRACKET.test(token.value)) return "bracket";
|
|
6724
|
-
if (token.type === "invalid" && (token.value === "@" || token.value === "#")) return "punctuator";
|
|
6725
|
-
return token.type;
|
|
6726
|
-
};
|
|
6727
|
-
tokenize = function* (text) {
|
|
6728
|
-
let match;
|
|
6729
|
-
while (match = jsTokens.default.exec(text)) {
|
|
6730
|
-
const token = jsTokens.matchToToken(match);
|
|
6731
|
-
yield {
|
|
6732
|
-
type: getTokenType(token, match.index, text),
|
|
6733
|
-
value: token.value
|
|
6734
|
-
};
|
|
6735
|
-
}
|
|
6736
|
-
};
|
|
6737
|
-
function highlight(text) {
|
|
6738
|
-
if (text === "") return "";
|
|
6739
|
-
const defs = getDefs(true);
|
|
6740
|
-
let highlighted = "";
|
|
6741
|
-
for (const { type, value } of tokenize(text)) if (type in defs) highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join("\n");
|
|
6742
|
-
else highlighted += value;
|
|
6743
|
-
return highlighted;
|
|
6744
|
-
}
|
|
6745
|
-
let deprecationWarningShown = false;
|
|
6746
|
-
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
6747
|
-
function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
|
6748
|
-
const startLoc = Object.assign({
|
|
6749
|
-
column: 0,
|
|
6750
|
-
line: -1
|
|
6751
|
-
}, loc.start);
|
|
6752
|
-
const endLoc = Object.assign({}, startLoc, loc.end);
|
|
6753
|
-
const { linesAbove = 2, linesBelow = 3 } = opts || {};
|
|
6754
|
-
const startLine = startLoc.line - startLineBaseZero;
|
|
6755
|
-
const startColumn = startLoc.column;
|
|
6756
|
-
const endLine = endLoc.line - startLineBaseZero;
|
|
6757
|
-
const endColumn = endLoc.column;
|
|
6758
|
-
let start = Math.max(startLine - (linesAbove + 1), 0);
|
|
6759
|
-
let end = Math.min(source.length, endLine + linesBelow);
|
|
6760
|
-
if (startLine === -1) start = 0;
|
|
6761
|
-
if (endLine === -1) end = source.length;
|
|
6762
|
-
const lineDiff = endLine - startLine;
|
|
6763
|
-
const markerLines = {};
|
|
6764
|
-
if (lineDiff) for (let i = 0; i <= lineDiff; i++) {
|
|
6765
|
-
const lineNumber = i + startLine;
|
|
6766
|
-
if (!startColumn) markerLines[lineNumber] = true;
|
|
6767
|
-
else if (i === 0) markerLines[lineNumber] = [startColumn, source[lineNumber - 1].length - startColumn + 1];
|
|
6768
|
-
else if (i === lineDiff) markerLines[lineNumber] = [0, endColumn];
|
|
6769
|
-
else markerLines[lineNumber] = [0, source[lineNumber - i].length];
|
|
6770
|
-
}
|
|
6771
|
-
else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [startColumn, 0];
|
|
6772
|
-
else markerLines[startLine] = true;
|
|
6773
|
-
else markerLines[startLine] = [startColumn, endColumn - startColumn];
|
|
6774
|
-
return {
|
|
6775
|
-
start,
|
|
6776
|
-
end,
|
|
6777
|
-
markerLines
|
|
6778
|
-
};
|
|
6779
|
-
}
|
|
6780
|
-
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
6781
|
-
const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
|
6782
|
-
const startLineBaseZero = (opts.startLine || 1) - 1;
|
|
6783
|
-
const defs = getDefs(shouldHighlight);
|
|
6784
|
-
const { start, end, markerLines } = getMarkerLines(loc, rawLines.split(NEWLINE), opts, startLineBaseZero);
|
|
6785
|
-
const hasColumns = loc.start && typeof loc.start.column === "number";
|
|
6786
|
-
const numberMaxWidth = String(end + startLineBaseZero).length;
|
|
6787
|
-
let frame = (shouldHighlight ? highlight(rawLines) : rawLines).split(NEWLINE, end).slice(start, end).map((line, index) => {
|
|
6788
|
-
const number = start + 1 + index;
|
|
6789
|
-
const gutter = ` ${` ${number + startLineBaseZero}`.slice(-numberMaxWidth)} |`;
|
|
6790
|
-
const hasMarker = markerLines[number];
|
|
6791
|
-
const lastMarkerLine = !markerLines[number + 1];
|
|
6792
|
-
if (hasMarker) {
|
|
6793
|
-
let markerLine = "";
|
|
6794
|
-
if (Array.isArray(hasMarker)) {
|
|
6795
|
-
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
|
6796
|
-
const numberOfMarkers = hasMarker[1] || 1;
|
|
6797
|
-
markerLine = [
|
|
6798
|
-
"\n ",
|
|
6799
|
-
defs.gutter(gutter.replace(/\d/g, " ")),
|
|
6800
|
-
" ",
|
|
6801
|
-
markerSpacing,
|
|
6802
|
-
defs.marker("^").repeat(numberOfMarkers)
|
|
6803
|
-
].join("");
|
|
6804
|
-
if (lastMarkerLine && opts.message) markerLine += " " + defs.message(opts.message);
|
|
6805
|
-
}
|
|
6806
|
-
return [
|
|
6807
|
-
defs.marker(">"),
|
|
6808
|
-
defs.gutter(gutter),
|
|
6809
|
-
line.length > 0 ? ` ${line}` : "",
|
|
6810
|
-
markerLine
|
|
6811
|
-
].join("");
|
|
6812
|
-
} else return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
|
6813
|
-
}).join("\n");
|
|
6814
|
-
if (opts.message && !hasColumns) frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
|
6815
|
-
if (shouldHighlight) return defs.reset(frame);
|
|
6816
|
-
else return frame;
|
|
6817
|
-
}
|
|
6818
|
-
function index(rawLines, lineNumber, colNumber, opts = {}) {
|
|
6819
|
-
if (!deprecationWarningShown) {
|
|
6820
|
-
deprecationWarningShown = true;
|
|
6821
|
-
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
|
6822
|
-
if (process.emitWarning) process.emitWarning(message, "DeprecationWarning");
|
|
6823
|
-
else {
|
|
6824
|
-
const deprecationError = /* @__PURE__ */ new Error(message);
|
|
6825
|
-
deprecationError.name = "DeprecationWarning";
|
|
6826
|
-
console.warn(/* @__PURE__ */ new Error(message));
|
|
6827
|
-
}
|
|
6828
|
-
}
|
|
6829
|
-
colNumber = Math.max(colNumber, 0);
|
|
6830
|
-
return codeFrameColumns(rawLines, { start: {
|
|
6831
|
-
column: colNumber,
|
|
6832
|
-
line: lineNumber
|
|
6833
|
-
} }, opts);
|
|
6834
|
-
}
|
|
6835
|
-
exports.codeFrameColumns = codeFrameColumns;
|
|
6836
|
-
exports.default = index;
|
|
6837
|
-
exports.highlight = highlight;
|
|
5139
|
+
};
|
|
5140
|
+
const parseOptions = require_parse_options();
|
|
5141
|
+
const { safeRe: re, t } = require_re();
|
|
5142
|
+
const cmp = require_cmp();
|
|
5143
|
+
const debug = require_debug();
|
|
5144
|
+
const SemVer = require_semver();
|
|
5145
|
+
const Range = require_range();
|
|
6838
5146
|
}));
|
|
6839
5147
|
//#endregion
|
|
6840
|
-
//#region ../../node_modules/.pnpm/
|
|
6841
|
-
var
|
|
6842
|
-
const
|
|
6843
|
-
const
|
|
6844
|
-
const
|
|
6845
|
-
const
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
column: location.column + 1
|
|
6874
|
-
} }, { highlightCode: true });
|
|
6875
|
-
}
|
|
6876
|
-
throw jsonError;
|
|
5148
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js
|
|
5149
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5150
|
+
const SemVer = require_semver();
|
|
5151
|
+
const Range = require_range();
|
|
5152
|
+
const gt = require_gt();
|
|
5153
|
+
const minVersion = (range, loose) => {
|
|
5154
|
+
range = new Range(range, loose);
|
|
5155
|
+
let minver = new SemVer("0.0.0");
|
|
5156
|
+
if (range.test(minver)) return minver;
|
|
5157
|
+
minver = new SemVer("0.0.0-0");
|
|
5158
|
+
if (range.test(minver)) return minver;
|
|
5159
|
+
minver = null;
|
|
5160
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
5161
|
+
const comparators = range.set[i];
|
|
5162
|
+
let setMin = null;
|
|
5163
|
+
comparators.forEach((comparator) => {
|
|
5164
|
+
const compver = new SemVer(comparator.semver.version);
|
|
5165
|
+
switch (comparator.operator) {
|
|
5166
|
+
case ">":
|
|
5167
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
5168
|
+
else compver.prerelease.push(0);
|
|
5169
|
+
compver.raw = compver.format();
|
|
5170
|
+
case "":
|
|
5171
|
+
case ">=":
|
|
5172
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
5173
|
+
break;
|
|
5174
|
+
case "<":
|
|
5175
|
+
case "<=": break;
|
|
5176
|
+
/* istanbul ignore next */
|
|
5177
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
5178
|
+
}
|
|
5179
|
+
});
|
|
5180
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
6877
5181
|
}
|
|
5182
|
+
if (minver && range.test(minver)) return minver;
|
|
5183
|
+
return null;
|
|
6878
5184
|
};
|
|
6879
|
-
|
|
6880
|
-
module.exports = parseJson;
|
|
5185
|
+
module.exports = minVersion;
|
|
6881
5186
|
}));
|
|
6882
5187
|
//#endregion
|
|
5188
|
+
//#region src/lib/initCwd.ts
|
|
5189
|
+
function INIT_CWD() {
|
|
5190
|
+
return process.env.INIT_CWD ?? process.cwd();
|
|
5191
|
+
}
|
|
5192
|
+
//#endregion
|
|
6883
5193
|
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
|
|
6884
5194
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6885
5195
|
function isNothing(subject) {
|
|
@@ -9227,22 +7537,15 @@ var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9227
7537
|
module.exports.safeDump = renamed("safeDump", "dump");
|
|
9228
7538
|
}));
|
|
9229
7539
|
//#endregion
|
|
9230
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7540
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/loaders.js
|
|
9231
7541
|
var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9232
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
9233
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
9234
|
-
};
|
|
9235
7542
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9236
|
-
exports.
|
|
9237
|
-
const fs_1$2 = __require("fs");
|
|
7543
|
+
exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
|
|
9238
7544
|
const promises_1$1 = __require("fs/promises");
|
|
9239
|
-
const path_1$3 = __importDefault(__require("path"));
|
|
9240
7545
|
const url_1 = __require("url");
|
|
9241
|
-
const crypto_1 = __require("crypto");
|
|
9242
|
-
let importFresh;
|
|
9243
7546
|
exports.loadJsSync = function loadJsSync(filepath) {
|
|
9244
|
-
|
|
9245
|
-
return
|
|
7547
|
+
delete __require.cache[__require.resolve(filepath)];
|
|
7548
|
+
return __require(filepath);
|
|
9246
7549
|
};
|
|
9247
7550
|
exports.loadJs = async function loadJs(filepath) {
|
|
9248
7551
|
try {
|
|
@@ -9258,11 +7561,9 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9258
7561
|
}
|
|
9259
7562
|
}
|
|
9260
7563
|
};
|
|
9261
|
-
let parseJson;
|
|
9262
7564
|
exports.loadJson = function loadJson(filepath, content) {
|
|
9263
|
-
if (parseJson === void 0) parseJson = require_parse_json();
|
|
9264
7565
|
try {
|
|
9265
|
-
return
|
|
7566
|
+
return JSON.parse(content);
|
|
9266
7567
|
} catch (error) {
|
|
9267
7568
|
error.message = `JSON Error in ${filepath}:\n${error.message}`;
|
|
9268
7569
|
throw error;
|
|
@@ -9278,73 +7579,12 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9278
7579
|
throw error;
|
|
9279
7580
|
}
|
|
9280
7581
|
};
|
|
9281
|
-
let typescript;
|
|
9282
|
-
exports.loadTsSync = function loadTsSync(filepath, content) {
|
|
9283
|
-
/* istanbul ignore next -- @preserve */
|
|
9284
|
-
if (typescript === void 0) typescript = __require("typescript");
|
|
9285
|
-
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.cjs`;
|
|
9286
|
-
try {
|
|
9287
|
-
const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
|
|
9288
|
-
config.compilerOptions = {
|
|
9289
|
-
...config.compilerOptions,
|
|
9290
|
-
module: typescript.ModuleKind.NodeNext,
|
|
9291
|
-
moduleResolution: typescript.ModuleResolutionKind.NodeNext,
|
|
9292
|
-
target: typescript.ScriptTarget.ES2022,
|
|
9293
|
-
noEmit: false
|
|
9294
|
-
};
|
|
9295
|
-
content = typescript.transpileModule(content, config).outputText;
|
|
9296
|
-
(0, fs_1$2.writeFileSync)(compiledFilepath, content);
|
|
9297
|
-
return (0, exports.loadJsSync)(compiledFilepath, content).default;
|
|
9298
|
-
} catch (error) {
|
|
9299
|
-
error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
|
|
9300
|
-
throw error;
|
|
9301
|
-
} finally {
|
|
9302
|
-
if ((0, fs_1$2.existsSync)(compiledFilepath)) (0, fs_1$2.rmSync)(compiledFilepath);
|
|
9303
|
-
}
|
|
9304
|
-
};
|
|
9305
|
-
exports.loadTs = async function loadTs(filepath, content) {
|
|
9306
|
-
if (typescript === void 0) typescript = (await import("typescript")).default;
|
|
9307
|
-
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.mjs`;
|
|
9308
|
-
let transpiledContent;
|
|
9309
|
-
try {
|
|
9310
|
-
try {
|
|
9311
|
-
const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
|
|
9312
|
-
config.compilerOptions = {
|
|
9313
|
-
...config.compilerOptions,
|
|
9314
|
-
module: typescript.ModuleKind.ES2022,
|
|
9315
|
-
moduleResolution: typescript.ModuleResolutionKind.Bundler,
|
|
9316
|
-
target: typescript.ScriptTarget.ES2022,
|
|
9317
|
-
noEmit: false
|
|
9318
|
-
};
|
|
9319
|
-
transpiledContent = typescript.transpileModule(content, config).outputText;
|
|
9320
|
-
await (0, promises_1$1.writeFile)(compiledFilepath, transpiledContent);
|
|
9321
|
-
} catch (error) {
|
|
9322
|
-
error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
|
|
9323
|
-
throw error;
|
|
9324
|
-
}
|
|
9325
|
-
return await (0, exports.loadJs)(compiledFilepath, transpiledContent);
|
|
9326
|
-
} finally {
|
|
9327
|
-
if ((0, fs_1$2.existsSync)(compiledFilepath)) await (0, promises_1$1.rm)(compiledFilepath);
|
|
9328
|
-
}
|
|
9329
|
-
};
|
|
9330
|
-
function resolveTsConfig(directory) {
|
|
9331
|
-
const filePath = typescript.findConfigFile(directory, (fileName) => {
|
|
9332
|
-
return typescript.sys.fileExists(fileName);
|
|
9333
|
-
});
|
|
9334
|
-
if (filePath !== void 0) {
|
|
9335
|
-
const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
|
|
9336
|
-
if (error) throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
|
|
9337
|
-
return config;
|
|
9338
|
-
}
|
|
9339
|
-
}
|
|
9340
7582
|
}));
|
|
9341
7583
|
//#endregion
|
|
9342
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7584
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/defaults.js
|
|
9343
7585
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9344
7586
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9345
|
-
exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = void 0;
|
|
9346
|
-
exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
|
|
9347
|
-
exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
|
|
7587
|
+
exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
|
|
9348
7588
|
const loaders_1 = require_loaders();
|
|
9349
7589
|
function getDefaultSearchPlaces(moduleName) {
|
|
9350
7590
|
return [
|
|
@@ -9371,6 +7611,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9371
7611
|
`${moduleName}.config.mjs`
|
|
9372
7612
|
];
|
|
9373
7613
|
}
|
|
7614
|
+
exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
|
|
9374
7615
|
function getDefaultSearchPlacesSync(moduleName) {
|
|
9375
7616
|
return [
|
|
9376
7617
|
"package.json",
|
|
@@ -9393,6 +7634,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9393
7634
|
`${moduleName}.config.cjs`
|
|
9394
7635
|
];
|
|
9395
7636
|
}
|
|
7637
|
+
exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
|
|
9396
7638
|
exports.globalConfigSearchPlaces = [
|
|
9397
7639
|
"config",
|
|
9398
7640
|
"config.json",
|
|
@@ -9427,7 +7669,9 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9427
7669
|
".mjs": loaders_1.loadJs,
|
|
9428
7670
|
".cjs": loaders_1.loadJs,
|
|
9429
7671
|
".js": loaders_1.loadJs,
|
|
9430
|
-
".ts": loaders_1.
|
|
7672
|
+
".ts": loaders_1.loadJs,
|
|
7673
|
+
".cts": loaders_1.loadJs,
|
|
7674
|
+
".mts": loaders_1.loadJs,
|
|
9431
7675
|
".json": loaders_1.loadJson,
|
|
9432
7676
|
".yaml": loaders_1.loadYaml,
|
|
9433
7677
|
".yml": loaders_1.loadYaml,
|
|
@@ -9436,7 +7680,8 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9436
7680
|
exports.defaultLoadersSync = Object.freeze({
|
|
9437
7681
|
".cjs": loaders_1.loadJsSync,
|
|
9438
7682
|
".js": loaders_1.loadJsSync,
|
|
9439
|
-
".
|
|
7683
|
+
".cts": loaders_1.loadJsSync,
|
|
7684
|
+
".ts": loaders_1.loadJsSync,
|
|
9440
7685
|
".json": loaders_1.loadJson,
|
|
9441
7686
|
".yaml": loaders_1.loadYaml,
|
|
9442
7687
|
".yml": loaders_1.loadYaml,
|
|
@@ -9494,7 +7739,7 @@ var require_env_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9494
7739
|
module.exports.default = envPaths;
|
|
9495
7740
|
}));
|
|
9496
7741
|
//#endregion
|
|
9497
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7742
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/util.js
|
|
9498
7743
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9499
7744
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9500
7745
|
if (k2 === void 0) k2 = k;
|
|
@@ -9518,31 +7763,17 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9518
7763
|
}) : function(o, v) {
|
|
9519
7764
|
o["default"] = v;
|
|
9520
7765
|
});
|
|
9521
|
-
var __importStar = exports && exports.__importStar ||
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
return function(mod) {
|
|
9531
|
-
if (mod && mod.__esModule) return mod;
|
|
9532
|
-
var result = {};
|
|
9533
|
-
if (mod != null) {
|
|
9534
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
9535
|
-
}
|
|
9536
|
-
__setModuleDefault(result, mod);
|
|
9537
|
-
return result;
|
|
9538
|
-
};
|
|
9539
|
-
})();
|
|
7766
|
+
var __importStar = exports && exports.__importStar || function(mod) {
|
|
7767
|
+
if (mod && mod.__esModule) return mod;
|
|
7768
|
+
var result = {};
|
|
7769
|
+
if (mod != null) {
|
|
7770
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
7771
|
+
}
|
|
7772
|
+
__setModuleDefault(result, mod);
|
|
7773
|
+
return result;
|
|
7774
|
+
};
|
|
9540
7775
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9541
|
-
exports.emplace =
|
|
9542
|
-
exports.getPropertyByPath = getPropertyByPath;
|
|
9543
|
-
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
9544
|
-
exports.isDirectory = isDirectory;
|
|
9545
|
-
exports.isDirectorySync = isDirectorySync;
|
|
7776
|
+
exports.isDirectorySync = exports.isDirectory = exports.removeUndefinedValuesFromObject = exports.decodeFileContent = exports.getPropertyByPath = exports.emplace = void 0;
|
|
9546
7777
|
const fs_1$1 = __importStar(__require("fs"));
|
|
9547
7778
|
/**
|
|
9548
7779
|
* @internal
|
|
@@ -9554,6 +7785,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9554
7785
|
map.set(key, result);
|
|
9555
7786
|
return result;
|
|
9556
7787
|
}
|
|
7788
|
+
exports.emplace = emplace;
|
|
9557
7789
|
/**
|
|
9558
7790
|
* @internal
|
|
9559
7791
|
*/
|
|
@@ -9564,10 +7796,19 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9564
7796
|
return previous[key];
|
|
9565
7797
|
}, source);
|
|
9566
7798
|
}
|
|
7799
|
+
exports.getPropertyByPath = getPropertyByPath;
|
|
7800
|
+
/** @internal */
|
|
7801
|
+
function decodeFileContent(buffer) {
|
|
7802
|
+
if (buffer[0] === 255 && buffer[1] === 254) return new TextDecoder("utf-16le").decode(buffer);
|
|
7803
|
+
if (buffer[0] === 254 && buffer[1] === 255) return new TextDecoder("utf-16be").decode(buffer);
|
|
7804
|
+
return buffer.toString("utf-8");
|
|
7805
|
+
}
|
|
7806
|
+
exports.decodeFileContent = decodeFileContent;
|
|
9567
7807
|
/** @internal */
|
|
9568
7808
|
function removeUndefinedValuesFromObject(options) {
|
|
9569
7809
|
return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
|
|
9570
7810
|
}
|
|
7811
|
+
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
9571
7812
|
/** @internal */
|
|
9572
7813
|
/* istanbul ignore next -- @preserve */
|
|
9573
7814
|
async function isDirectory(path) {
|
|
@@ -9578,6 +7819,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9578
7819
|
throw e;
|
|
9579
7820
|
}
|
|
9580
7821
|
}
|
|
7822
|
+
exports.isDirectory = isDirectory;
|
|
9581
7823
|
/** @internal */
|
|
9582
7824
|
/* istanbul ignore next -- @preserve */
|
|
9583
7825
|
function isDirectorySync(path) {
|
|
@@ -9588,16 +7830,16 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9588
7830
|
throw e;
|
|
9589
7831
|
}
|
|
9590
7832
|
}
|
|
7833
|
+
exports.isDirectorySync = isDirectorySync;
|
|
9591
7834
|
}));
|
|
9592
7835
|
//#endregion
|
|
9593
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7836
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerBase.js
|
|
9594
7837
|
var require_ExplorerBase = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9595
7838
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
9596
7839
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
9597
7840
|
};
|
|
9598
7841
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9599
|
-
exports.ExplorerBase = void 0;
|
|
9600
|
-
exports.getExtensionDescription = getExtensionDescription;
|
|
7842
|
+
exports.getExtensionDescription = exports.ExplorerBase = void 0;
|
|
9601
7843
|
const env_paths_1 = __importDefault(require_env_paths());
|
|
9602
7844
|
const os_1 = __importDefault(__require("os"));
|
|
9603
7845
|
const path_1$2 = __importDefault(__require("path"));
|
|
@@ -9709,13 +7951,13 @@ ${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (
|
|
|
9709
7951
|
/* istanbul ignore next -- @preserve */
|
|
9710
7952
|
return extension ? `extension "${extension}"` : "files without extensions";
|
|
9711
7953
|
}
|
|
7954
|
+
exports.getExtensionDescription = getExtensionDescription;
|
|
9712
7955
|
}));
|
|
9713
7956
|
//#endregion
|
|
9714
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7957
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/merge.js
|
|
9715
7958
|
var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9716
7959
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9717
|
-
exports.hasOwn = void 0;
|
|
9718
|
-
exports.mergeAll = mergeAll;
|
|
7960
|
+
exports.mergeAll = exports.hasOwn = void 0;
|
|
9719
7961
|
exports.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
|
|
9720
7962
|
const objToString = Function.prototype.call.bind(Object.prototype.toString);
|
|
9721
7963
|
function isPlainObject(obj) {
|
|
@@ -9747,9 +7989,10 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9747
7989
|
function mergeAll(objects, options) {
|
|
9748
7990
|
return objects.reduce((target, source) => merge(target, source, options), {});
|
|
9749
7991
|
}
|
|
7992
|
+
exports.mergeAll = mergeAll;
|
|
9750
7993
|
}));
|
|
9751
7994
|
//#endregion
|
|
9752
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7995
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/Explorer.js
|
|
9753
7996
|
var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9754
7997
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
9755
7998
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -9808,7 +8051,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9808
8051
|
return await search();
|
|
9809
8052
|
}
|
|
9810
8053
|
async #readConfiguration(filepath, importStack = []) {
|
|
9811
|
-
const contents = await promises_1.default.readFile(filepath
|
|
8054
|
+
const contents = (0, util_js_1.decodeFileContent)(await promises_1.default.readFile(filepath));
|
|
9812
8055
|
return this.toCosmiconfigResult(filepath, await this.#loadConfigFileWithImports(filepath, contents, importStack));
|
|
9813
8056
|
}
|
|
9814
8057
|
async #loadConfigFileWithImports(filepath, contents, importStack) {
|
|
@@ -9884,7 +8127,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9884
8127
|
exports.Explorer = Explorer;
|
|
9885
8128
|
}));
|
|
9886
8129
|
//#endregion
|
|
9887
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
8130
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerSync.js
|
|
9888
8131
|
var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9889
8132
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
9890
8133
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -9943,7 +8186,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9943
8186
|
return search();
|
|
9944
8187
|
}
|
|
9945
8188
|
#readConfiguration(filepath, importStack = []) {
|
|
9946
|
-
const contents = fs_1.default.readFileSync(filepath
|
|
8189
|
+
const contents = (0, util_js_1.decodeFileContent)(fs_1.default.readFileSync(filepath));
|
|
9947
8190
|
return this.toCosmiconfigResult(filepath, this.#loadConfigFileWithImports(filepath, contents, importStack));
|
|
9948
8191
|
}
|
|
9949
8192
|
#loadConfigFileWithImports(filepath, contents, importStack) {
|
|
@@ -10033,11 +8276,10 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10033
8276
|
exports.ExplorerSync = ExplorerSync;
|
|
10034
8277
|
}));
|
|
10035
8278
|
//#endregion
|
|
10036
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
8279
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/index.js
|
|
10037
8280
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
10038
8281
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10039
|
-
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
|
|
10040
|
-
exports.cosmiconfig = cosmiconfig;
|
|
8282
|
+
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
|
|
10041
8283
|
const defaults_1 = require_defaults();
|
|
10042
8284
|
Object.defineProperty(exports, "defaultLoaders", {
|
|
10043
8285
|
enumerable: true,
|
|
@@ -10111,7 +8353,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10111
8353
|
function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
|
|
10112
8354
|
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
|
|
10113
8355
|
if (userConfiguredOptions.mergeSearchPlaces) return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
|
|
10114
|
-
return userConfiguredSearchPlaces ??
|
|
8356
|
+
return userConfiguredSearchPlaces ??
|
|
8357
|
+
/* istanbul ignore next */ toolDefinedSearchPlaces;
|
|
10115
8358
|
}
|
|
10116
8359
|
function mergeOptionsBase(moduleName, defaults, options) {
|
|
10117
8360
|
const userDefinedConfig = getUserDefinedOptionsFromMetaConfig();
|
|
@@ -10155,6 +8398,21 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10155
8398
|
searchStrategy: options.stopDir ? "global" : "none"
|
|
10156
8399
|
}, options);
|
|
10157
8400
|
}
|
|
8401
|
+
function mergeOptionsSync(moduleName, options) {
|
|
8402
|
+
validateOptions(options);
|
|
8403
|
+
return mergeOptionsBase(moduleName, {
|
|
8404
|
+
moduleName,
|
|
8405
|
+
searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
|
|
8406
|
+
ignoreEmptySearchPlaces: true,
|
|
8407
|
+
cache: true,
|
|
8408
|
+
transform: identity,
|
|
8409
|
+
loaders: defaults_1.defaultLoadersSync,
|
|
8410
|
+
metaConfigFilePath: null,
|
|
8411
|
+
mergeImportArrays: true,
|
|
8412
|
+
mergeSearchPlaces: true,
|
|
8413
|
+
searchStrategy: options.stopDir ? "global" : "none"
|
|
8414
|
+
}, options);
|
|
8415
|
+
}
|
|
10158
8416
|
function cosmiconfig(moduleName, options = {}) {
|
|
10159
8417
|
const normalizedOptions = mergeOptions(moduleName, options);
|
|
10160
8418
|
const explorer = new Explorer_js_1.Explorer(normalizedOptions);
|
|
@@ -10166,6 +8424,19 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10166
8424
|
clearCaches: explorer.clearCaches.bind(explorer)
|
|
10167
8425
|
};
|
|
10168
8426
|
}
|
|
8427
|
+
exports.cosmiconfig = cosmiconfig;
|
|
8428
|
+
function cosmiconfigSync(moduleName, options = {}) {
|
|
8429
|
+
const normalizedOptions = mergeOptionsSync(moduleName, options);
|
|
8430
|
+
const explorerSync = new ExplorerSync_js_1.ExplorerSync(normalizedOptions);
|
|
8431
|
+
return {
|
|
8432
|
+
search: explorerSync.search.bind(explorerSync),
|
|
8433
|
+
load: explorerSync.load.bind(explorerSync),
|
|
8434
|
+
clearLoadCache: explorerSync.clearLoadCache.bind(explorerSync),
|
|
8435
|
+
clearSearchCache: explorerSync.clearSearchCache.bind(explorerSync),
|
|
8436
|
+
clearCaches: explorerSync.clearCaches.bind(explorerSync)
|
|
8437
|
+
};
|
|
8438
|
+
}
|
|
8439
|
+
exports.cosmiconfigSync = cosmiconfigSync;
|
|
10169
8440
|
}));
|
|
10170
8441
|
//#endregion
|
|
10171
8442
|
//#region src/lib/ruleCommandRegistry.ts
|
|
@@ -10473,7 +8744,7 @@ const range = (a, b, str) => {
|
|
|
10473
8744
|
return result;
|
|
10474
8745
|
};
|
|
10475
8746
|
//#endregion
|
|
10476
|
-
//#region ../../node_modules/.pnpm/brace-expansion@5.0.
|
|
8747
|
+
//#region ../../node_modules/.pnpm/brace-expansion@5.0.9/node_modules/brace-expansion/dist/esm/index.js
|
|
10477
8748
|
const escSlash = "\0SLASH" + Math.random() + "\0";
|
|
10478
8749
|
const escOpen = "\0OPEN" + Math.random() + "\0";
|
|
10479
8750
|
const escClose = "\0CLOSE" + Math.random() + "\0";
|
|
@@ -10490,6 +8761,7 @@ const closePattern = /\\}/g;
|
|
|
10490
8761
|
const commaPattern = /\\,/g;
|
|
10491
8762
|
const periodPattern = /\\\./g;
|
|
10492
8763
|
const EXPANSION_MAX = 1e5;
|
|
8764
|
+
const EXPANSION_MAX_LENGTH = 4e6;
|
|
10493
8765
|
function numeric(str) {
|
|
10494
8766
|
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
|
10495
8767
|
}
|
|
@@ -10522,9 +8794,9 @@ function parseCommaParts(str) {
|
|
|
10522
8794
|
}
|
|
10523
8795
|
function expand(str, options = {}) {
|
|
10524
8796
|
if (!str) return [];
|
|
10525
|
-
const { max = EXPANSION_MAX } = options;
|
|
8797
|
+
const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
|
|
10526
8798
|
if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
|
|
10527
|
-
return expand_(escapeBraces(str), max, true).map(unescapeBraces);
|
|
8799
|
+
return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
|
|
10528
8800
|
}
|
|
10529
8801
|
function embrace(str) {
|
|
10530
8802
|
return "{" + str + "}";
|
|
@@ -10538,20 +8810,72 @@ function lte(i, y) {
|
|
|
10538
8810
|
function gte(i, y) {
|
|
10539
8811
|
return i >= y;
|
|
10540
8812
|
}
|
|
10541
|
-
function
|
|
10542
|
-
|
|
10543
|
-
|
|
8813
|
+
function combine(acc, pre, values, max, maxLength, dropEmpties) {
|
|
8814
|
+
const out = [];
|
|
8815
|
+
let length = 0;
|
|
8816
|
+
for (let a = 0; a < acc.length; a++) for (let v = 0; v < values.length; v++) {
|
|
8817
|
+
if (out.length >= max) return out;
|
|
8818
|
+
const expansion = acc[a] + pre + values[v];
|
|
8819
|
+
if (dropEmpties && !expansion) continue;
|
|
8820
|
+
if (length + expansion.length > maxLength) return out;
|
|
8821
|
+
out.push(expansion);
|
|
8822
|
+
length += expansion.length;
|
|
8823
|
+
}
|
|
8824
|
+
return out;
|
|
8825
|
+
}
|
|
8826
|
+
function expandSequence(body, isAlphaSequence, max, maxLength) {
|
|
8827
|
+
const n = body.split(/\.\./);
|
|
8828
|
+
const N = [];
|
|
8829
|
+
/* c8 ignore start */
|
|
8830
|
+
if (n[0] === void 0 || n[1] === void 0) return N;
|
|
8831
|
+
/* c8 ignore stop */
|
|
8832
|
+
const x = numeric(n[0]);
|
|
8833
|
+
const y = numeric(n[1]);
|
|
8834
|
+
const width = Math.max(n[0].length, n[1].length);
|
|
8835
|
+
let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
8836
|
+
let test = lte;
|
|
8837
|
+
if (y < x) {
|
|
8838
|
+
incr *= -1;
|
|
8839
|
+
test = gte;
|
|
8840
|
+
}
|
|
8841
|
+
const pad = n.some(isPadded);
|
|
8842
|
+
let length = 0;
|
|
8843
|
+
for (let i = x; test(i, y) && N.length < max; i += incr) {
|
|
8844
|
+
let c;
|
|
8845
|
+
if (isAlphaSequence) {
|
|
8846
|
+
c = String.fromCharCode(i);
|
|
8847
|
+
if (c === "\\") c = "";
|
|
8848
|
+
} else {
|
|
8849
|
+
c = String(i);
|
|
8850
|
+
if (pad) {
|
|
8851
|
+
const need = width - c.length;
|
|
8852
|
+
if (need > 0) {
|
|
8853
|
+
const z = new Array(need + 1).join("0");
|
|
8854
|
+
if (i < 0) c = "-" + z + c.slice(1);
|
|
8855
|
+
else c = z + c;
|
|
8856
|
+
}
|
|
8857
|
+
}
|
|
8858
|
+
}
|
|
8859
|
+
if (length + c.length > maxLength) break;
|
|
8860
|
+
N.push(c);
|
|
8861
|
+
length += c.length;
|
|
8862
|
+
}
|
|
8863
|
+
return N;
|
|
8864
|
+
}
|
|
8865
|
+
function expand_(str, max, maxLength, isTop) {
|
|
8866
|
+
let acc = [""];
|
|
8867
|
+
let dropEmpties = false;
|
|
8868
|
+
let firstGroup = true;
|
|
10544
8869
|
for (;;) {
|
|
10545
8870
|
const m = balanced("{", "}", str);
|
|
10546
|
-
if (!m) return [
|
|
8871
|
+
if (!m) return combine(acc, str, [""], max, maxLength, dropEmpties);
|
|
10547
8872
|
const pre = m.pre;
|
|
10548
|
-
if (/\$$/.test(
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
return expansions;
|
|
8873
|
+
if (/\$$/.test(pre)) {
|
|
8874
|
+
acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
|
|
8875
|
+
firstGroup = false;
|
|
8876
|
+
if (!m.post.length) break;
|
|
8877
|
+
str = m.post;
|
|
8878
|
+
continue;
|
|
10555
8879
|
}
|
|
10556
8880
|
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
10557
8881
|
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
@@ -10563,70 +8887,56 @@ function expand_(str, max, isTop) {
|
|
|
10563
8887
|
isTop = true;
|
|
10564
8888
|
continue;
|
|
10565
8889
|
}
|
|
10566
|
-
return [
|
|
8890
|
+
return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
|
|
10567
8891
|
}
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
8892
|
+
if (firstGroup) {
|
|
8893
|
+
dropEmpties = isTop && !isSequence;
|
|
8894
|
+
firstGroup = false;
|
|
8895
|
+
}
|
|
8896
|
+
let values;
|
|
8897
|
+
if (isSequence) values = expandSequence(m.body, isAlphaSequence, max, maxLength);
|
|
10571
8898
|
else {
|
|
10572
|
-
n = parseCommaParts(m.body);
|
|
8899
|
+
let n = parseCommaParts(m.body);
|
|
10573
8900
|
if (n.length === 1 && n[0] !== void 0) {
|
|
10574
|
-
n = expand_(n[0], max, false).map(embrace);
|
|
8901
|
+
n = expand_(n[0], max, maxLength, false).map(embrace);
|
|
10575
8902
|
/* c8 ignore start */
|
|
10576
|
-
if (n.length === 1)
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
const y = numeric(n[1]);
|
|
10583
|
-
const width = Math.max(n[0].length, n[1].length);
|
|
10584
|
-
let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
10585
|
-
let test = lte;
|
|
10586
|
-
if (y < x) {
|
|
10587
|
-
incr *= -1;
|
|
10588
|
-
test = gte;
|
|
8903
|
+
if (n.length === 1) {
|
|
8904
|
+
acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
|
|
8905
|
+
if (!m.post.length) break;
|
|
8906
|
+
str = m.post;
|
|
8907
|
+
continue;
|
|
8908
|
+
}
|
|
10589
8909
|
}
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
if (
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
const z = new Array(need + 1).join("0");
|
|
10603
|
-
if (i < 0) c = "-" + z + c.slice(1);
|
|
10604
|
-
else c = z + c;
|
|
10605
|
-
}
|
|
10606
|
-
}
|
|
8910
|
+
let dropsEmpties = dropEmpties && !m.post.length && !pre;
|
|
8911
|
+
for (let d = 0; dropsEmpties && d < acc.length; d++) if (acc[d]) dropsEmpties = false;
|
|
8912
|
+
values = [];
|
|
8913
|
+
let valuesLength = 0;
|
|
8914
|
+
outer: for (let j = 0; j < n.length; j++) {
|
|
8915
|
+
const expanded = expand_(n[j], max, maxLength, false);
|
|
8916
|
+
for (let k = 0; k < expanded.length; k++) {
|
|
8917
|
+
const v = expanded[k];
|
|
8918
|
+
if (dropsEmpties && !v) continue;
|
|
8919
|
+
if (values.length >= max || valuesLength + v.length > maxLength) break outer;
|
|
8920
|
+
values.push(v);
|
|
8921
|
+
valuesLength += v.length;
|
|
10607
8922
|
}
|
|
10608
|
-
N.push(c);
|
|
10609
8923
|
}
|
|
10610
|
-
} else {
|
|
10611
|
-
N = [];
|
|
10612
|
-
for (let j = 0; j < n.length; j++) N.push.apply(N, expand_(n[j], max, false));
|
|
10613
|
-
}
|
|
10614
|
-
for (let j = 0; j < N.length; j++) for (let k = 0; k < post.length && expansions.length < max; k++) {
|
|
10615
|
-
const expansion = pre + N[j] + post[k];
|
|
10616
|
-
if (!isTop || isSequence || expansion) expansions.push(expansion);
|
|
10617
8924
|
}
|
|
10618
|
-
|
|
8925
|
+
acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
|
|
8926
|
+
if (!m.post.length) break;
|
|
8927
|
+
str = m.post;
|
|
10619
8928
|
}
|
|
8929
|
+
return acc;
|
|
10620
8930
|
}
|
|
10621
8931
|
//#endregion
|
|
10622
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
10623
|
-
const MAX_PATTERN_LENGTH =
|
|
8932
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
8933
|
+
const MAX_PATTERN_LENGTH = 65536;
|
|
10624
8934
|
const assertValidPattern = (pattern) => {
|
|
10625
8935
|
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
10626
8936
|
if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
|
|
10627
8937
|
};
|
|
10628
8938
|
//#endregion
|
|
10629
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
8939
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
10630
8940
|
const posixClasses = {
|
|
10631
8941
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
10632
8942
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -10750,7 +9060,7 @@ const parseClass = (glob, position) => {
|
|
|
10750
9060
|
];
|
|
10751
9061
|
};
|
|
10752
9062
|
//#endregion
|
|
10753
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
9063
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
|
|
10754
9064
|
/**
|
|
10755
9065
|
* Un-escape a string that has been escaped with {@link escape}.
|
|
10756
9066
|
*
|
|
@@ -10775,7 +9085,7 @@ const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}
|
|
|
10775
9085
|
return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
|
|
10776
9086
|
};
|
|
10777
9087
|
//#endregion
|
|
10778
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
9088
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
|
|
10779
9089
|
var _a;
|
|
10780
9090
|
const types = /* @__PURE__ */ new Set([
|
|
10781
9091
|
"!",
|
|
@@ -11284,7 +9594,7 @@ var AST = class {
|
|
|
11284
9594
|
};
|
|
11285
9595
|
_a = AST;
|
|
11286
9596
|
//#endregion
|
|
11287
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
9597
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
|
|
11288
9598
|
/**
|
|
11289
9599
|
* Escape all magic characters in a glob pattern.
|
|
11290
9600
|
*
|
|
@@ -11302,7 +9612,7 @@ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {})
|
|
|
11302
9612
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
11303
9613
|
};
|
|
11304
9614
|
//#endregion
|
|
11305
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
9615
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
|
|
11306
9616
|
const minimatch = (p, pattern, options = {}) => {
|
|
11307
9617
|
assertValidPattern(pattern);
|
|
11308
9618
|
if (!options.nocomment && pattern.charAt(0) === "#") return false;
|
|
@@ -12753,9 +11063,7 @@ const buildEntries = (srcDir, entryMode = "single", options, shouldExcludeSpecAn
|
|
|
12753
11063
|
case "custom":
|
|
12754
11064
|
entries = [];
|
|
12755
11065
|
break;
|
|
12756
|
-
default:
|
|
12757
|
-
entries = ["index.ts"];
|
|
12758
|
-
break;
|
|
11066
|
+
default: entries = ["index.ts"];
|
|
12759
11067
|
}
|
|
12760
11068
|
if (typeof options !== "boolean" && Array.isArray(options?.entry)) entries.push(...options.entry);
|
|
12761
11069
|
if (isVerbose) console.log(`buildEntries [${entryMode}] ${entries.length}`);
|
|
@@ -12790,7 +11098,7 @@ const I$1 = "ERR_PACKAGE_PATH_NOT_EXPORTED";
|
|
|
12790
11098
|
const R$2 = /^\d+$/;
|
|
12791
11099
|
const O$2 = /^(\.{1,2}|node_modules)$/i;
|
|
12792
11100
|
const w$1 = /\/|\\/;
|
|
12793
|
-
var h$
|
|
11101
|
+
var h$1 = ((r) => (r.Export = "exports", r.Import = "imports", r))(h$1 || {});
|
|
12794
11102
|
const f = (r, t, e, o, c) => {
|
|
12795
11103
|
if (t == null) return [];
|
|
12796
11104
|
if (typeof t == "string") {
|
|
@@ -12834,23 +11142,23 @@ const u$1 = /^\w+:/;
|
|
|
12834
11142
|
const v$1 = (r, t, e) => {
|
|
12835
11143
|
if (!r) throw new Error("\"exports\" is required");
|
|
12836
11144
|
t = t === "" ? "." : `./${t}`, (typeof r == "string" || Array.isArray(r) || A(r) && p(r)) && (r = { ".": r });
|
|
12837
|
-
const [o, c] = d(r, t), n = f(h$
|
|
11145
|
+
const [o, c] = d(r, t), n = f(h$1.Export, r[o], t, e, c);
|
|
12838
11146
|
if (n.length === 0) throw a(I$1, t === "." ? "No \"exports\" main defined" : `Package subpath '${t}' is not defined by "exports"`);
|
|
12839
11147
|
for (const i of n) if (!i.startsWith("./") && !u$1.test(i)) throw a(E$2, `Invalid "exports" target "${i}" defined in the package config`);
|
|
12840
11148
|
return n;
|
|
12841
11149
|
};
|
|
12842
11150
|
//#endregion
|
|
12843
|
-
//#region ../../node_modules/.pnpm/get-tsconfig@4.14.
|
|
11151
|
+
//#region ../../node_modules/.pnpm/get-tsconfig@4.14.1/node_modules/get-tsconfig/dist/index.mjs
|
|
12844
11152
|
var xe = Object.defineProperty;
|
|
12845
|
-
var
|
|
11153
|
+
var i = (e, t) => xe(e, "name", {
|
|
12846
11154
|
value: t,
|
|
12847
11155
|
configurable: !0
|
|
12848
11156
|
});
|
|
12849
|
-
function
|
|
11157
|
+
function L(e) {
|
|
12850
11158
|
return e.startsWith("\\\\?\\") ? e : e.replace(/\\/g, "/");
|
|
12851
11159
|
}
|
|
12852
|
-
|
|
12853
|
-
const
|
|
11160
|
+
i(L, "slash");
|
|
11161
|
+
const Q = i((e) => {
|
|
12854
11162
|
const t = fs[e];
|
|
12855
11163
|
return (s, ...n) => {
|
|
12856
11164
|
const o = `${e}:${n.join(":")}`;
|
|
@@ -12858,10 +11166,16 @@ const K = r((e) => {
|
|
|
12858
11166
|
return l === void 0 && (l = Reflect.apply(t, fs, n), s?.set(o, l)), l;
|
|
12859
11167
|
};
|
|
12860
11168
|
}, "cacheFs");
|
|
12861
|
-
const x$1 =
|
|
12862
|
-
const Se =
|
|
12863
|
-
const
|
|
12864
|
-
const
|
|
11169
|
+
const x$1 = Q("existsSync");
|
|
11170
|
+
const Se = Q("readFileSync");
|
|
11171
|
+
const H = Q("statSync");
|
|
11172
|
+
const Ne = Q("realpathSync");
|
|
11173
|
+
const Pe$1 = i((...[e, t]) => {
|
|
11174
|
+
const s = Ne(e, t);
|
|
11175
|
+
if (typeof s != "string") throw new TypeError(`Unexpected resolved path type for ${s} in ${t}`);
|
|
11176
|
+
return s;
|
|
11177
|
+
}, "realpath");
|
|
11178
|
+
const O$1 = i((e, t, s) => {
|
|
12865
11179
|
for (;;) {
|
|
12866
11180
|
const n = PATH.posix.join(e, t);
|
|
12867
11181
|
if (x$1(s, n)) return n;
|
|
@@ -12871,49 +11185,49 @@ const O$1 = r((e, t, s) => {
|
|
|
12871
11185
|
}
|
|
12872
11186
|
}, "findUp");
|
|
12873
11187
|
const C$1 = /^\.{1,2}(\/.*)?$/;
|
|
12874
|
-
const
|
|
12875
|
-
const t =
|
|
11188
|
+
const X = i((e) => {
|
|
11189
|
+
const t = L(e);
|
|
12876
11190
|
return C$1.test(t) ? t : `./${t}`;
|
|
12877
11191
|
}, "normalizeRelativePath");
|
|
12878
|
-
function
|
|
11192
|
+
function We(e, t = !1) {
|
|
12879
11193
|
const s = e.length;
|
|
12880
|
-
let n = 0, o = "", l = 0,
|
|
11194
|
+
let n = 0, o = "", l = 0, r = 16, f = 0, u = 0, g = 0, d = 0, b = 0;
|
|
12881
11195
|
function _(c, j) {
|
|
12882
|
-
let y = 0,
|
|
11196
|
+
let y = 0, A = 0;
|
|
12883
11197
|
for (; y < c;) {
|
|
12884
11198
|
let k = e.charCodeAt(n);
|
|
12885
|
-
if (k >= 48 && k <= 57)
|
|
12886
|
-
else if (k >= 65 && k <= 70)
|
|
12887
|
-
else if (k >= 97 && k <= 102)
|
|
11199
|
+
if (k >= 48 && k <= 57) A = A * 16 + k - 48;
|
|
11200
|
+
else if (k >= 65 && k <= 70) A = A * 16 + k - 65 + 10;
|
|
11201
|
+
else if (k >= 97 && k <= 102) A = A * 16 + k - 97 + 10;
|
|
12888
11202
|
else break;
|
|
12889
11203
|
n++, y++;
|
|
12890
11204
|
}
|
|
12891
|
-
return y < c && (
|
|
11205
|
+
return y < c && (A = -1), A;
|
|
12892
11206
|
}
|
|
12893
|
-
|
|
12894
|
-
function
|
|
12895
|
-
n = c, o = "", l = 0,
|
|
11207
|
+
i(_, "scanHexDigits");
|
|
11208
|
+
function h(c) {
|
|
11209
|
+
n = c, o = "", l = 0, r = 16, b = 0;
|
|
12896
11210
|
}
|
|
12897
|
-
|
|
12898
|
-
function
|
|
11211
|
+
i(h, "setPosition");
|
|
11212
|
+
function D() {
|
|
12899
11213
|
let c = n;
|
|
12900
11214
|
if (e.charCodeAt(n) === 48) n++;
|
|
12901
11215
|
else for (n++; n < e.length && R$1(e.charCodeAt(n));) n++;
|
|
12902
11216
|
if (n < e.length && e.charCodeAt(n) === 46) if (n++, n < e.length && R$1(e.charCodeAt(n))) for (n++; n < e.length && R$1(e.charCodeAt(n));) n++;
|
|
12903
|
-
else return
|
|
11217
|
+
else return b = 3, e.substring(c, n);
|
|
12904
11218
|
let j = n;
|
|
12905
11219
|
if (n < e.length && (e.charCodeAt(n) === 69 || e.charCodeAt(n) === 101)) if (n++, (n < e.length && e.charCodeAt(n) === 43 || e.charCodeAt(n) === 45) && n++, n < e.length && R$1(e.charCodeAt(n))) {
|
|
12906
11220
|
for (n++; n < e.length && R$1(e.charCodeAt(n));) n++;
|
|
12907
11221
|
j = n;
|
|
12908
|
-
} else
|
|
11222
|
+
} else b = 3;
|
|
12909
11223
|
return e.substring(c, j);
|
|
12910
11224
|
}
|
|
12911
|
-
|
|
12912
|
-
function
|
|
11225
|
+
i(D, "scanNumber");
|
|
11226
|
+
function T() {
|
|
12913
11227
|
let c = "", j = n;
|
|
12914
11228
|
for (;;) {
|
|
12915
11229
|
if (n >= s) {
|
|
12916
|
-
c += e.substring(j, n),
|
|
11230
|
+
c += e.substring(j, n), b = 2;
|
|
12917
11231
|
break;
|
|
12918
11232
|
}
|
|
12919
11233
|
const y = e.charCodeAt(n);
|
|
@@ -12923,7 +11237,7 @@ function Ne(e, t = !1) {
|
|
|
12923
11237
|
}
|
|
12924
11238
|
if (y === 92) {
|
|
12925
11239
|
if (c += e.substring(j, n), n++, n >= s) {
|
|
12926
|
-
|
|
11240
|
+
b = 2;
|
|
12927
11241
|
break;
|
|
12928
11242
|
}
|
|
12929
11243
|
switch (e.charCodeAt(n++)) {
|
|
@@ -12954,63 +11268,63 @@ function Ne(e, t = !1) {
|
|
|
12954
11268
|
break;
|
|
12955
11269
|
case 117:
|
|
12956
11270
|
const k = _(4);
|
|
12957
|
-
k >= 0 ? c += String.fromCharCode(k) :
|
|
11271
|
+
k >= 0 ? c += String.fromCharCode(k) : b = 4;
|
|
12958
11272
|
break;
|
|
12959
|
-
default:
|
|
11273
|
+
default: b = 5;
|
|
12960
11274
|
}
|
|
12961
11275
|
j = n;
|
|
12962
11276
|
continue;
|
|
12963
11277
|
}
|
|
12964
11278
|
if (y >= 0 && y <= 31) if (J(y)) {
|
|
12965
|
-
c += e.substring(j, n),
|
|
11279
|
+
c += e.substring(j, n), b = 2;
|
|
12966
11280
|
break;
|
|
12967
|
-
} else
|
|
11281
|
+
} else b = 6;
|
|
12968
11282
|
n++;
|
|
12969
11283
|
}
|
|
12970
11284
|
return c;
|
|
12971
11285
|
}
|
|
12972
|
-
|
|
12973
|
-
function
|
|
12974
|
-
if (o = "",
|
|
11286
|
+
i(T, "scanString");
|
|
11287
|
+
function w() {
|
|
11288
|
+
if (o = "", b = 0, l = n, u = f, d = g, n >= s) return l = s, r = 17;
|
|
12975
11289
|
let c = e.charCodeAt(n);
|
|
12976
11290
|
if (ee(c)) {
|
|
12977
11291
|
do
|
|
12978
11292
|
n++, o += String.fromCharCode(c), c = e.charCodeAt(n);
|
|
12979
11293
|
while (ee(c));
|
|
12980
|
-
return
|
|
11294
|
+
return r = 15;
|
|
12981
11295
|
}
|
|
12982
11296
|
if (J(c)) return n++, o += String.fromCharCode(c), c === 13 && e.charCodeAt(n) === 10 && (n++, o += `
|
|
12983
|
-
`), f++, g = n,
|
|
11297
|
+
`), f++, g = n, r = 14;
|
|
12984
11298
|
switch (c) {
|
|
12985
|
-
case 123: return n++,
|
|
12986
|
-
case 125: return n++,
|
|
12987
|
-
case 91: return n++,
|
|
12988
|
-
case 93: return n++,
|
|
12989
|
-
case 58: return n++,
|
|
12990
|
-
case 44: return n++,
|
|
12991
|
-
case 34: return n++, o =
|
|
11299
|
+
case 123: return n++, r = 1;
|
|
11300
|
+
case 125: return n++, r = 2;
|
|
11301
|
+
case 91: return n++, r = 3;
|
|
11302
|
+
case 93: return n++, r = 4;
|
|
11303
|
+
case 58: return n++, r = 6;
|
|
11304
|
+
case 44: return n++, r = 5;
|
|
11305
|
+
case 34: return n++, o = T(), r = 10;
|
|
12992
11306
|
case 47:
|
|
12993
11307
|
const j = n - 1;
|
|
12994
11308
|
if (e.charCodeAt(n + 1) === 47) {
|
|
12995
11309
|
for (n += 2; n < s && !J(e.charCodeAt(n));) n++;
|
|
12996
|
-
return o = e.substring(j, n),
|
|
11310
|
+
return o = e.substring(j, n), r = 12;
|
|
12997
11311
|
}
|
|
12998
11312
|
if (e.charCodeAt(n + 1) === 42) {
|
|
12999
11313
|
n += 2;
|
|
13000
11314
|
const y = s - 1;
|
|
13001
|
-
let
|
|
11315
|
+
let A = !1;
|
|
13002
11316
|
for (; n < y;) {
|
|
13003
11317
|
const k = e.charCodeAt(n);
|
|
13004
11318
|
if (k === 42 && e.charCodeAt(n + 1) === 47) {
|
|
13005
|
-
n += 2,
|
|
11319
|
+
n += 2, A = !0;
|
|
13006
11320
|
break;
|
|
13007
11321
|
}
|
|
13008
11322
|
n++, J(k) && (k === 13 && e.charCodeAt(n) === 10 && n++, f++, g = n);
|
|
13009
11323
|
}
|
|
13010
|
-
return
|
|
11324
|
+
return A || (n++, b = 1), o = e.substring(j, n), r = 13;
|
|
13011
11325
|
}
|
|
13012
|
-
return o += String.fromCharCode(c), n++,
|
|
13013
|
-
case 45: if (o += String.fromCharCode(c), n++, n === s || !R$1(e.charCodeAt(n))) return
|
|
11326
|
+
return o += String.fromCharCode(c), n++, r = 16;
|
|
11327
|
+
case 45: if (o += String.fromCharCode(c), n++, n === s || !R$1(e.charCodeAt(n))) return r = 16;
|
|
13014
11328
|
case 48:
|
|
13015
11329
|
case 49:
|
|
13016
11330
|
case 50:
|
|
@@ -13020,22 +11334,22 @@ function Ne(e, t = !1) {
|
|
|
13020
11334
|
case 54:
|
|
13021
11335
|
case 55:
|
|
13022
11336
|
case 56:
|
|
13023
|
-
case 57: return o +=
|
|
11337
|
+
case 57: return o += D(), r = 11;
|
|
13024
11338
|
default:
|
|
13025
|
-
for (; n < s &&
|
|
11339
|
+
for (; n < s && v(c);) n++, c = e.charCodeAt(n);
|
|
13026
11340
|
if (l !== n) {
|
|
13027
11341
|
switch (o = e.substring(l, n), o) {
|
|
13028
|
-
case "true": return
|
|
13029
|
-
case "false": return
|
|
13030
|
-
case "null": return
|
|
11342
|
+
case "true": return r = 8;
|
|
11343
|
+
case "false": return r = 9;
|
|
11344
|
+
case "null": return r = 7;
|
|
13031
11345
|
}
|
|
13032
|
-
return
|
|
11346
|
+
return r = 16;
|
|
13033
11347
|
}
|
|
13034
|
-
return o += String.fromCharCode(c), n++,
|
|
11348
|
+
return o += String.fromCharCode(c), n++, r = 16;
|
|
13035
11349
|
}
|
|
13036
11350
|
}
|
|
13037
|
-
|
|
13038
|
-
function
|
|
11351
|
+
i(w, "scanNext");
|
|
11352
|
+
function v(c) {
|
|
13039
11353
|
if (ee(c) || J(c)) return !1;
|
|
13040
11354
|
switch (c) {
|
|
13041
11355
|
case 125:
|
|
@@ -13049,40 +11363,40 @@ function Ne(e, t = !1) {
|
|
|
13049
11363
|
}
|
|
13050
11364
|
return !0;
|
|
13051
11365
|
}
|
|
13052
|
-
|
|
11366
|
+
i(v, "isUnknownContentCharacter");
|
|
13053
11367
|
function B() {
|
|
13054
11368
|
let c;
|
|
13055
11369
|
do
|
|
13056
|
-
c =
|
|
11370
|
+
c = w();
|
|
13057
11371
|
while (c >= 12 && c <= 15);
|
|
13058
11372
|
return c;
|
|
13059
11373
|
}
|
|
13060
|
-
return
|
|
13061
|
-
setPosition:
|
|
13062
|
-
getPosition:
|
|
13063
|
-
scan: t ? B :
|
|
13064
|
-
getToken:
|
|
13065
|
-
getTokenValue:
|
|
13066
|
-
getTokenOffset:
|
|
13067
|
-
getTokenLength:
|
|
13068
|
-
getTokenStartLine:
|
|
13069
|
-
getTokenStartCharacter:
|
|
13070
|
-
getTokenError:
|
|
11374
|
+
return i(B, "scanNextNonTrivia"), {
|
|
11375
|
+
setPosition: h,
|
|
11376
|
+
getPosition: i(() => n, "getPosition"),
|
|
11377
|
+
scan: t ? B : w,
|
|
11378
|
+
getToken: i(() => r, "getToken"),
|
|
11379
|
+
getTokenValue: i(() => o, "getTokenValue"),
|
|
11380
|
+
getTokenOffset: i(() => l, "getTokenOffset"),
|
|
11381
|
+
getTokenLength: i(() => n - l, "getTokenLength"),
|
|
11382
|
+
getTokenStartLine: i(() => u, "getTokenStartLine"),
|
|
11383
|
+
getTokenStartCharacter: i(() => l - d, "getTokenStartCharacter"),
|
|
11384
|
+
getTokenError: i(() => b, "getTokenError")
|
|
13071
11385
|
};
|
|
13072
11386
|
}
|
|
13073
|
-
|
|
11387
|
+
i(We, "createScanner");
|
|
13074
11388
|
function ee(e) {
|
|
13075
11389
|
return e === 32 || e === 9;
|
|
13076
11390
|
}
|
|
13077
|
-
|
|
11391
|
+
i(ee, "isWhiteSpace");
|
|
13078
11392
|
function J(e) {
|
|
13079
11393
|
return e === 10 || e === 13;
|
|
13080
11394
|
}
|
|
13081
|
-
|
|
11395
|
+
i(J, "isLineBreak");
|
|
13082
11396
|
function R$1(e) {
|
|
13083
11397
|
return e >= 48 && e <= 57;
|
|
13084
11398
|
}
|
|
13085
|
-
|
|
11399
|
+
i(R$1, "isDigit");
|
|
13086
11400
|
var ge;
|
|
13087
11401
|
(function(e) {
|
|
13088
11402
|
e[e.lineFeed = 10] = "lineFeed", e[e.carriageReturn = 13] = "carriageReturn", e[e.space = 32] = "space", e[e._0 = 48] = "_0", e[e._1 = 49] = "_1", e[e._2 = 50] = "_2", e[e._3 = 51] = "_3", e[e._4 = 52] = "_4", e[e._5 = 53] = "_5", e[e._6 = 54] = "_6", e[e._7 = 55] = "_7", e[e._8 = 56] = "_8", e[e._9 = 57] = "_9", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.c = 99] = "c", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.g = 103] = "g", e[e.h = 104] = "h", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.k = 107] = "k", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.p = 112] = "p", e[e.q = 113] = "q", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.v = 118] = "v", e[e.w = 119] = "w", e[e.x = 120] = "x", e[e.y = 121] = "y", e[e.z = 122] = "z", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z", e[e.asterisk = 42] = "asterisk", e[e.backslash = 92] = "backslash", e[e.closeBrace = 125] = "closeBrace", e[e.closeBracket = 93] = "closeBracket", e[e.colon = 58] = "colon", e[e.comma = 44] = "comma", e[e.dot = 46] = "dot", e[e.doubleQuote = 34] = "doubleQuote", e[e.minus = 45] = "minus", e[e.openBrace = 123] = "openBrace", e[e.openBracket = 91] = "openBracket", e[e.plus = 43] = "plus", e[e.slash = 47] = "slash", e[e.formFeed = 12] = "formFeed", e[e.tab = 9] = "tab";
|
|
@@ -13093,76 +11407,76 @@ new Array(S$1).fill(0).map((e, t) => `
|
|
|
13093
11407
|
` + " ".repeat(t)), new Array(S$1).fill(0).map((e, t) => `
|
|
13094
11408
|
` + " ".repeat(t)), new Array(S$1).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S$1).fill(0).map((e, t) => `\r
|
|
13095
11409
|
` + " ".repeat(t));
|
|
13096
|
-
var
|
|
11410
|
+
var Y;
|
|
13097
11411
|
(function(e) {
|
|
13098
11412
|
e.DEFAULT = { allowTrailingComma: !1 };
|
|
13099
|
-
})(
|
|
13100
|
-
function
|
|
11413
|
+
})(Y || (Y = {}));
|
|
11414
|
+
function Je(e, t = [], s = Y.DEFAULT) {
|
|
13101
11415
|
let n = null, o = [];
|
|
13102
11416
|
const l = [];
|
|
13103
|
-
function
|
|
11417
|
+
function r(u) {
|
|
13104
11418
|
Array.isArray(o) ? o.push(u) : n !== null && (o[n] = u);
|
|
13105
11419
|
}
|
|
13106
|
-
return r
|
|
13107
|
-
onObjectBegin:
|
|
11420
|
+
return i(r, "onValue"), Me(e, {
|
|
11421
|
+
onObjectBegin: i(() => {
|
|
13108
11422
|
const u = {};
|
|
13109
|
-
|
|
11423
|
+
r(u), l.push(o), o = u, n = null;
|
|
13110
11424
|
}, "onObjectBegin"),
|
|
13111
|
-
onObjectProperty:
|
|
11425
|
+
onObjectProperty: i((u) => {
|
|
13112
11426
|
n = u;
|
|
13113
11427
|
}, "onObjectProperty"),
|
|
13114
|
-
onObjectEnd:
|
|
11428
|
+
onObjectEnd: i(() => {
|
|
13115
11429
|
o = l.pop();
|
|
13116
11430
|
}, "onObjectEnd"),
|
|
13117
|
-
onArrayBegin:
|
|
11431
|
+
onArrayBegin: i(() => {
|
|
13118
11432
|
const u = [];
|
|
13119
|
-
|
|
11433
|
+
r(u), l.push(o), o = u, n = null;
|
|
13120
11434
|
}, "onArrayBegin"),
|
|
13121
|
-
onArrayEnd:
|
|
11435
|
+
onArrayEnd: i(() => {
|
|
13122
11436
|
o = l.pop();
|
|
13123
11437
|
}, "onArrayEnd"),
|
|
13124
|
-
onLiteralValue:
|
|
13125
|
-
onError:
|
|
11438
|
+
onLiteralValue: r,
|
|
11439
|
+
onError: i((u, g, d) => {
|
|
13126
11440
|
t.push({
|
|
13127
11441
|
error: u,
|
|
13128
11442
|
offset: g,
|
|
13129
|
-
length:
|
|
11443
|
+
length: d
|
|
13130
11444
|
});
|
|
13131
11445
|
}, "onError")
|
|
13132
11446
|
}, s), o[0];
|
|
13133
11447
|
}
|
|
13134
|
-
|
|
13135
|
-
function
|
|
13136
|
-
const n =
|
|
11448
|
+
i(Je, "parse$1");
|
|
11449
|
+
function Me(e, t, s = Y.DEFAULT) {
|
|
11450
|
+
const n = We(e, !1), o = [];
|
|
13137
11451
|
let l = 0;
|
|
13138
|
-
function
|
|
13139
|
-
return
|
|
11452
|
+
function r(p) {
|
|
11453
|
+
return p ? () => l === 0 && p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
|
|
13140
11454
|
}
|
|
13141
|
-
r
|
|
13142
|
-
function f(
|
|
13143
|
-
return
|
|
11455
|
+
i(r, "toNoArgVisit");
|
|
11456
|
+
function f(p) {
|
|
11457
|
+
return p ? (F) => l === 0 && p(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
|
|
13144
11458
|
}
|
|
13145
|
-
|
|
13146
|
-
function u(
|
|
13147
|
-
return
|
|
11459
|
+
i(f, "toOneArgVisit");
|
|
11460
|
+
function u(p) {
|
|
11461
|
+
return p ? (F) => l === 0 && p(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) : () => !0;
|
|
13148
11462
|
}
|
|
13149
|
-
|
|
13150
|
-
function g(
|
|
13151
|
-
return
|
|
13152
|
-
l > 0 ? l++ :
|
|
11463
|
+
i(u, "toOneArgVisitWithPath");
|
|
11464
|
+
function g(p) {
|
|
11465
|
+
return p ? () => {
|
|
11466
|
+
l > 0 ? l++ : p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) === !1 && (l = 1);
|
|
13153
11467
|
} : () => !0;
|
|
13154
11468
|
}
|
|
13155
|
-
|
|
13156
|
-
function
|
|
13157
|
-
return
|
|
13158
|
-
l > 0 && l--, l === 0 &&
|
|
11469
|
+
i(g, "toBeginVisit");
|
|
11470
|
+
function d(p) {
|
|
11471
|
+
return p ? () => {
|
|
11472
|
+
l > 0 && l--, l === 0 && p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
|
|
13159
11473
|
} : () => !0;
|
|
13160
11474
|
}
|
|
13161
|
-
|
|
13162
|
-
const
|
|
13163
|
-
function
|
|
11475
|
+
i(d, "toEndVisit");
|
|
11476
|
+
const b = g(t.onObjectBegin), _ = u(t.onObjectProperty), h = d(t.onObjectEnd), D = g(t.onArrayBegin), T = d(t.onArrayEnd), w = u(t.onLiteralValue), v = f(t.onSeparator), B = r(t.onComment), c = f(t.onError), j = s && s.disallowComments, y = s && s.allowTrailingComma;
|
|
11477
|
+
function A() {
|
|
13164
11478
|
for (;;) {
|
|
13165
|
-
const
|
|
11479
|
+
const p = n.scan();
|
|
13166
11480
|
switch (n.getTokenError()) {
|
|
13167
11481
|
case 4:
|
|
13168
11482
|
k(14);
|
|
@@ -13179,11 +11493,9 @@ function We(e, t, s = X.DEFAULT) {
|
|
|
13179
11493
|
case 2:
|
|
13180
11494
|
k(12);
|
|
13181
11495
|
break;
|
|
13182
|
-
case 6:
|
|
13183
|
-
k(16);
|
|
13184
|
-
break;
|
|
11496
|
+
case 6: k(16);
|
|
13185
11497
|
}
|
|
13186
|
-
switch (
|
|
11498
|
+
switch (p) {
|
|
13187
11499
|
case 12:
|
|
13188
11500
|
case 13:
|
|
13189
11501
|
j ? k(10) : B();
|
|
@@ -13193,78 +11505,78 @@ function We(e, t, s = X.DEFAULT) {
|
|
|
13193
11505
|
break;
|
|
13194
11506
|
case 15:
|
|
13195
11507
|
case 14: break;
|
|
13196
|
-
default: return
|
|
11508
|
+
default: return p;
|
|
13197
11509
|
}
|
|
13198
11510
|
}
|
|
13199
11511
|
}
|
|
13200
|
-
|
|
13201
|
-
function k(
|
|
13202
|
-
if (c(
|
|
13203
|
-
let
|
|
13204
|
-
for (;
|
|
13205
|
-
if (F.indexOf(
|
|
13206
|
-
|
|
11512
|
+
i(A, "scanNext");
|
|
11513
|
+
function k(p, F = [], W = []) {
|
|
11514
|
+
if (c(p), F.length + W.length > 0) {
|
|
11515
|
+
let I = n.getToken();
|
|
11516
|
+
for (; I !== 17;) {
|
|
11517
|
+
if (F.indexOf(I) !== -1) {
|
|
11518
|
+
A();
|
|
13207
11519
|
break;
|
|
13208
|
-
} else if (W.indexOf(
|
|
13209
|
-
|
|
11520
|
+
} else if (W.indexOf(I) !== -1) break;
|
|
11521
|
+
I = A();
|
|
13210
11522
|
}
|
|
13211
11523
|
}
|
|
13212
11524
|
}
|
|
13213
|
-
|
|
13214
|
-
function P(
|
|
11525
|
+
i(k, "handleError");
|
|
11526
|
+
function P(p) {
|
|
13215
11527
|
const F = n.getTokenValue();
|
|
13216
|
-
return
|
|
11528
|
+
return p ? w(F) : (_(F), o.push(F)), A(), !0;
|
|
13217
11529
|
}
|
|
13218
|
-
|
|
11530
|
+
i(P, "parseString");
|
|
13219
11531
|
function M() {
|
|
13220
11532
|
switch (n.getToken()) {
|
|
13221
11533
|
case 11:
|
|
13222
|
-
const
|
|
13223
|
-
let F = Number(
|
|
13224
|
-
isNaN(F) && (k(2), F = 0),
|
|
11534
|
+
const p = n.getTokenValue();
|
|
11535
|
+
let F = Number(p);
|
|
11536
|
+
isNaN(F) && (k(2), F = 0), w(F);
|
|
13225
11537
|
break;
|
|
13226
11538
|
case 7:
|
|
13227
|
-
|
|
11539
|
+
w(null);
|
|
13228
11540
|
break;
|
|
13229
11541
|
case 8:
|
|
13230
|
-
|
|
11542
|
+
w(!0);
|
|
13231
11543
|
break;
|
|
13232
11544
|
case 9:
|
|
13233
|
-
|
|
11545
|
+
w(!1);
|
|
13234
11546
|
break;
|
|
13235
11547
|
default: return !1;
|
|
13236
11548
|
}
|
|
13237
|
-
return
|
|
11549
|
+
return A(), !0;
|
|
13238
11550
|
}
|
|
13239
|
-
|
|
11551
|
+
i(M, "parseLiteral");
|
|
13240
11552
|
function V() {
|
|
13241
|
-
return n.getToken() !== 10 ? (k(3, [], [2, 5]), !1) : (P(!1), n.getToken() === 6 ? (
|
|
11553
|
+
return n.getToken() !== 10 ? (k(3, [], [2, 5]), !1) : (P(!1), n.getToken() === 6 ? (v(":"), A(), U() || k(4, [], [2, 5])) : k(5, [], [2, 5]), o.pop(), !0);
|
|
13242
11554
|
}
|
|
13243
|
-
|
|
11555
|
+
i(V, "parseProperty");
|
|
13244
11556
|
function z() {
|
|
13245
|
-
|
|
13246
|
-
let
|
|
11557
|
+
b(), A();
|
|
11558
|
+
let p = !1;
|
|
13247
11559
|
for (; n.getToken() !== 2 && n.getToken() !== 17;) {
|
|
13248
11560
|
if (n.getToken() === 5) {
|
|
13249
|
-
if (
|
|
13250
|
-
} else
|
|
13251
|
-
V() || k(4, [], [2, 5]),
|
|
11561
|
+
if (p || k(4, [], []), v(","), A(), n.getToken() === 2 && y) break;
|
|
11562
|
+
} else p && k(6, [], []);
|
|
11563
|
+
V() || k(4, [], [2, 5]), p = !0;
|
|
13252
11564
|
}
|
|
13253
|
-
return
|
|
11565
|
+
return h(), n.getToken() !== 2 ? k(7, [2], []) : A(), !0;
|
|
13254
11566
|
}
|
|
13255
|
-
|
|
11567
|
+
i(z, "parseObject");
|
|
13256
11568
|
function G() {
|
|
13257
|
-
|
|
13258
|
-
let
|
|
11569
|
+
D(), A();
|
|
11570
|
+
let p = !0, F = !1;
|
|
13259
11571
|
for (; n.getToken() !== 4 && n.getToken() !== 17;) {
|
|
13260
11572
|
if (n.getToken() === 5) {
|
|
13261
|
-
if (F || k(4, [], []),
|
|
11573
|
+
if (F || k(4, [], []), v(","), A(), n.getToken() === 4 && y) break;
|
|
13262
11574
|
} else F && k(6, [], []);
|
|
13263
|
-
|
|
11575
|
+
p ? (o.push(0), p = !1) : o[o.length - 1]++, U() || k(4, [], [4, 5]), F = !0;
|
|
13264
11576
|
}
|
|
13265
|
-
return
|
|
11577
|
+
return T(), p || o.pop(), n.getToken() !== 4 ? k(8, [4], []) : A(), !0;
|
|
13266
11578
|
}
|
|
13267
|
-
|
|
11579
|
+
i(G, "parseArray");
|
|
13268
11580
|
function U() {
|
|
13269
11581
|
switch (n.getToken()) {
|
|
13270
11582
|
case 3: return G();
|
|
@@ -13273,9 +11585,9 @@ function We(e, t, s = X.DEFAULT) {
|
|
|
13273
11585
|
default: return M();
|
|
13274
11586
|
}
|
|
13275
11587
|
}
|
|
13276
|
-
return
|
|
11588
|
+
return i(U, "parseValue"), A(), n.getToken() === 17 ? s.allowEmptyContent ? !0 : (k(4, [], []), !1) : U() ? (n.getToken() !== 17 && k(9, [], []), !0) : (k(4, [], []), !1);
|
|
13277
11589
|
}
|
|
13278
|
-
|
|
11590
|
+
i(Me, "visit");
|
|
13279
11591
|
var ke;
|
|
13280
11592
|
(function(e) {
|
|
13281
11593
|
e[e.None = 0] = "None", e[e.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 4] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 6] = "InvalidCharacter";
|
|
@@ -13284,140 +11596,141 @@ var me;
|
|
|
13284
11596
|
(function(e) {
|
|
13285
11597
|
e[e.OpenBraceToken = 1] = "OpenBraceToken", e[e.CloseBraceToken = 2] = "CloseBraceToken", e[e.OpenBracketToken = 3] = "OpenBracketToken", e[e.CloseBracketToken = 4] = "CloseBracketToken", e[e.CommaToken = 5] = "CommaToken", e[e.ColonToken = 6] = "ColonToken", e[e.NullKeyword = 7] = "NullKeyword", e[e.TrueKeyword = 8] = "TrueKeyword", e[e.FalseKeyword = 9] = "FalseKeyword", e[e.StringLiteral = 10] = "StringLiteral", e[e.NumericLiteral = 11] = "NumericLiteral", e[e.LineCommentTrivia = 12] = "LineCommentTrivia", e[e.BlockCommentTrivia = 13] = "BlockCommentTrivia", e[e.LineBreakTrivia = 14] = "LineBreakTrivia", e[e.Trivia = 15] = "Trivia", e[e.Unknown = 16] = "Unknown", e[e.EOF = 17] = "EOF";
|
|
13286
11598
|
})(me || (me = {}));
|
|
13287
|
-
const
|
|
13288
|
-
var
|
|
11599
|
+
const Ve = Je;
|
|
11600
|
+
var we;
|
|
13289
11601
|
(function(e) {
|
|
13290
11602
|
e[e.InvalidSymbol = 1] = "InvalidSymbol", e[e.InvalidNumberFormat = 2] = "InvalidNumberFormat", e[e.PropertyNameExpected = 3] = "PropertyNameExpected", e[e.ValueExpected = 4] = "ValueExpected", e[e.ColonExpected = 5] = "ColonExpected", e[e.CommaExpected = 6] = "CommaExpected", e[e.CloseBraceExpected = 7] = "CloseBraceExpected", e[e.CloseBracketExpected = 8] = "CloseBracketExpected", e[e.EndOfFileExpected = 9] = "EndOfFileExpected", e[e.InvalidCommentToken = 10] = "InvalidCommentToken", e[e.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 14] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 16] = "InvalidCharacter";
|
|
13291
|
-
})(
|
|
13292
|
-
const
|
|
11603
|
+
})(we || (we = {}));
|
|
11604
|
+
const de = i((e, t) => Ve(Se(t, e, "utf8")), "readJsonc");
|
|
13293
11605
|
const ne = Symbol("implicitBaseUrl");
|
|
13294
11606
|
const E$1 = "${configDir}";
|
|
13295
|
-
const
|
|
11607
|
+
const ze = i(() => {
|
|
13296
11608
|
const { findPnpApi: e } = Be;
|
|
13297
11609
|
return e && e(process.cwd());
|
|
13298
11610
|
}, "getPnpApi");
|
|
13299
|
-
const te =
|
|
11611
|
+
const te = i((e, t, s, n) => {
|
|
13300
11612
|
const o = `resolveFromPackageJsonPath:${e}:${t}:${s}`;
|
|
13301
11613
|
if (n != null && n.has(o)) return n.get(o);
|
|
13302
|
-
const l =
|
|
11614
|
+
const l = de(e, n);
|
|
13303
11615
|
if (!l) return;
|
|
13304
|
-
let
|
|
11616
|
+
let r = t || "tsconfig.json";
|
|
13305
11617
|
if (!s && l.exports) try {
|
|
13306
11618
|
const [f] = v$1(l.exports, t, ["require", "types"]);
|
|
13307
|
-
|
|
11619
|
+
r = f;
|
|
13308
11620
|
} catch {
|
|
13309
11621
|
return !1;
|
|
13310
11622
|
}
|
|
13311
|
-
else !t && l.tsconfig && (
|
|
13312
|
-
return
|
|
11623
|
+
else !t && l.tsconfig && (r = l.tsconfig);
|
|
11624
|
+
return r = PATH.join(e, "..", r), n?.set(o, r), r;
|
|
13313
11625
|
}, "resolveFromPackageJsonPath");
|
|
13314
11626
|
const se = "package.json";
|
|
13315
11627
|
const le = "tsconfig.json";
|
|
13316
|
-
const
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
|
|
13320
|
-
|
|
13321
|
-
|
|
13322
|
-
|
|
13323
|
-
|
|
11628
|
+
const Ge = i((e, t, s) => {
|
|
11629
|
+
var n;
|
|
11630
|
+
let o = e;
|
|
11631
|
+
if (e === ".." && (o = PATH.join(o, le)), e[0] === "." && (o = PATH.resolve(t, o)), PATH.isAbsolute(o)) {
|
|
11632
|
+
if (x$1(s, o)) {
|
|
11633
|
+
if (H(s, o).isFile()) return o;
|
|
11634
|
+
} else if (!o.endsWith(".json")) {
|
|
11635
|
+
const T = `${o}.json`;
|
|
11636
|
+
if (x$1(s, T)) return T;
|
|
13324
11637
|
}
|
|
13325
11638
|
return;
|
|
13326
11639
|
}
|
|
13327
|
-
const [
|
|
13328
|
-
if (
|
|
13329
|
-
const { resolveRequest:
|
|
11640
|
+
const [l, ...r] = e.split("/"), f = l[0] === "@" ? `${l}/${r.shift()}` : l, u = r.join("/"), g = ze();
|
|
11641
|
+
if (g) {
|
|
11642
|
+
const { resolveRequest: T } = g;
|
|
13330
11643
|
try {
|
|
13331
|
-
if (
|
|
13332
|
-
const
|
|
13333
|
-
if (
|
|
13334
|
-
const
|
|
13335
|
-
if (
|
|
11644
|
+
if (f === e) {
|
|
11645
|
+
const w = T(PATH.join(f, se), t);
|
|
11646
|
+
if (w) {
|
|
11647
|
+
const v = te(w, u, !1, s);
|
|
11648
|
+
if (v && x$1(s, v)) return v;
|
|
13336
11649
|
}
|
|
13337
11650
|
} else {
|
|
13338
|
-
let
|
|
11651
|
+
let w;
|
|
13339
11652
|
try {
|
|
13340
|
-
|
|
11653
|
+
w = T(e, t, { extensions: [".json"] });
|
|
13341
11654
|
} catch {
|
|
13342
|
-
|
|
11655
|
+
w = T(PATH.join(e, le), t);
|
|
13343
11656
|
}
|
|
13344
|
-
if (
|
|
11657
|
+
if (w) return w;
|
|
13345
11658
|
}
|
|
13346
11659
|
} catch {}
|
|
13347
11660
|
}
|
|
13348
|
-
const
|
|
13349
|
-
if (!
|
|
13350
|
-
const
|
|
13351
|
-
if (x$1(s,
|
|
13352
|
-
const
|
|
13353
|
-
if (
|
|
13354
|
-
if (
|
|
13355
|
-
}
|
|
13356
|
-
const
|
|
13357
|
-
if (!
|
|
13358
|
-
const
|
|
13359
|
-
if (x$1(s,
|
|
13360
|
-
}
|
|
13361
|
-
if (x$1(s,
|
|
13362
|
-
if (
|
|
13363
|
-
const
|
|
13364
|
-
if (x$1(s,
|
|
13365
|
-
const
|
|
13366
|
-
if (
|
|
13367
|
-
}
|
|
13368
|
-
const
|
|
13369
|
-
if (x$1(s,
|
|
13370
|
-
} else if (
|
|
11661
|
+
const d = O$1(PATH.resolve(t), PATH.join("node_modules", f), s);
|
|
11662
|
+
if (!d || !((n = H(s, d)) != null && n.isDirectory())) return;
|
|
11663
|
+
const b = Pe$1(s, d), _ = PATH.join(b, se);
|
|
11664
|
+
if (x$1(s, _)) {
|
|
11665
|
+
const T = te(_, u, !1, s);
|
|
11666
|
+
if (T === !1) return;
|
|
11667
|
+
if (T && x$1(s, T) && H(s, T).isFile()) return T;
|
|
11668
|
+
}
|
|
11669
|
+
const h = PATH.join(b, u), D = h.endsWith(".json");
|
|
11670
|
+
if (!D) {
|
|
11671
|
+
const T = `${h}.json`;
|
|
11672
|
+
if (x$1(s, T)) return T;
|
|
11673
|
+
}
|
|
11674
|
+
if (x$1(s, h)) {
|
|
11675
|
+
if (H(s, h).isDirectory()) {
|
|
11676
|
+
const T = PATH.join(h, se);
|
|
11677
|
+
if (x$1(s, T)) {
|
|
11678
|
+
const v = te(T, "", !0, s);
|
|
11679
|
+
if (v && x$1(s, v)) return v;
|
|
11680
|
+
}
|
|
11681
|
+
const w = PATH.join(h, le);
|
|
11682
|
+
if (x$1(s, w)) return w;
|
|
11683
|
+
} else if (D) return h;
|
|
13371
11684
|
}
|
|
13372
11685
|
}, "resolveExtendsPath");
|
|
13373
|
-
const oe =
|
|
13374
|
-
const
|
|
11686
|
+
const oe = i((e, t) => X(PATH.relative(e, t)), "pathRelative");
|
|
11687
|
+
const pe = [
|
|
13375
11688
|
"files",
|
|
13376
11689
|
"include",
|
|
13377
11690
|
"exclude"
|
|
13378
11691
|
];
|
|
13379
|
-
const N$1 =
|
|
11692
|
+
const N$1 = i((e, t, s) => {
|
|
13380
11693
|
const n = PATH.join(t, s);
|
|
13381
|
-
return
|
|
11694
|
+
return L(PATH.relative(e, n)) || "./";
|
|
13382
11695
|
}, "resolveAndRelativize");
|
|
13383
|
-
const
|
|
11696
|
+
const Qe = i((e, t, s) => {
|
|
13384
11697
|
const n = PATH.relative(e, t);
|
|
13385
11698
|
if (!n) return s;
|
|
13386
|
-
return
|
|
11699
|
+
return L(`${n}/${s.startsWith("./") ? s.slice(2) : s}`);
|
|
13387
11700
|
}, "prefixPattern");
|
|
13388
|
-
const
|
|
13389
|
-
const o =
|
|
11701
|
+
const He = i((e, t, s, n) => {
|
|
11702
|
+
const o = Ge(e, t, n);
|
|
13390
11703
|
if (!o) throw new Error(`File '${e}' not found.`);
|
|
13391
11704
|
if (s.has(o)) throw new Error(`Circularity detected while resolving configuration: ${o}`);
|
|
13392
11705
|
s.add(o);
|
|
13393
|
-
const l = PATH.dirname(o),
|
|
13394
|
-
delete
|
|
13395
|
-
const { compilerOptions: f } =
|
|
11706
|
+
const l = PATH.dirname(o), r = ve(o, n, s);
|
|
11707
|
+
delete r.references;
|
|
11708
|
+
const { compilerOptions: f } = r;
|
|
13396
11709
|
if (f) {
|
|
13397
11710
|
const { baseUrl: u } = f;
|
|
13398
11711
|
u && !u.startsWith(E$1) && (f.baseUrl = N$1(t, l, u));
|
|
13399
11712
|
const { outDir: g } = f;
|
|
13400
11713
|
g && !g.startsWith(E$1) && (f.outDir = N$1(t, l, g));
|
|
13401
|
-
const { declarationDir:
|
|
13402
|
-
|
|
13403
|
-
const { rootDir:
|
|
13404
|
-
|
|
11714
|
+
const { declarationDir: d } = f;
|
|
11715
|
+
d && !d.startsWith(E$1) && (f.declarationDir = N$1(t, l, d));
|
|
11716
|
+
const { rootDir: b } = f;
|
|
11717
|
+
b && !b.startsWith(E$1) && (f.rootDir = N$1(t, l, b));
|
|
13405
11718
|
const { rootDirs: _ } = f;
|
|
13406
|
-
_ && (f.rootDirs = _.map((
|
|
13407
|
-
const { typeRoots:
|
|
13408
|
-
|
|
11719
|
+
_ && (f.rootDirs = _.map((D) => D.startsWith(E$1) ? D : N$1(t, l, D)));
|
|
11720
|
+
const { typeRoots: h } = f;
|
|
11721
|
+
h && (f.typeRoots = h.map((D) => D.startsWith(E$1) ? D : N$1(t, l, D)));
|
|
13409
11722
|
}
|
|
13410
|
-
for (const u of
|
|
13411
|
-
const g =
|
|
13412
|
-
g && (
|
|
11723
|
+
for (const u of pe) {
|
|
11724
|
+
const g = r[u];
|
|
11725
|
+
g && (r[u] = g.map((d) => d.startsWith(E$1) ? d : Qe(t, l, d)));
|
|
13413
11726
|
}
|
|
13414
|
-
return
|
|
11727
|
+
return r;
|
|
13415
11728
|
}, "resolveExtends");
|
|
13416
|
-
const
|
|
13417
|
-
const
|
|
11729
|
+
const be = ["outDir", "declarationDir"];
|
|
11730
|
+
const ve = i((e, t, s = /* @__PURE__ */ new Set()) => {
|
|
13418
11731
|
let n;
|
|
13419
11732
|
try {
|
|
13420
|
-
n =
|
|
11733
|
+
n = de(e, t) || {};
|
|
13421
11734
|
} catch {
|
|
13422
11735
|
throw new Error(`Cannot resolve tsconfig at path: ${e}`);
|
|
13423
11736
|
}
|
|
@@ -13430,8 +11743,8 @@ const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
|
|
|
13430
11743
|
if (n.extends) {
|
|
13431
11744
|
const l = Array.isArray(n.extends) ? n.extends : [n.extends];
|
|
13432
11745
|
delete n.extends;
|
|
13433
|
-
for (const
|
|
13434
|
-
const f =
|
|
11746
|
+
for (const r of l.reverse()) {
|
|
11747
|
+
const f = He(r, o, new Set(s), t), u = {
|
|
13435
11748
|
...f,
|
|
13436
11749
|
...n,
|
|
13437
11750
|
compilerOptions: {
|
|
@@ -13454,21 +11767,21 @@ const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
|
|
|
13454
11767
|
l[f] = oe(o, g);
|
|
13455
11768
|
}
|
|
13456
11769
|
}
|
|
13457
|
-
for (const f of
|
|
11770
|
+
for (const f of be) {
|
|
13458
11771
|
let u = l[f];
|
|
13459
|
-
u && (Array.isArray(n.exclude) || (n.exclude =
|
|
11772
|
+
u && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), u.startsWith(E$1) || (u = X(u)), l[f] = u);
|
|
13460
11773
|
}
|
|
13461
11774
|
} else n.compilerOptions = {};
|
|
13462
|
-
if (n.include && (n.include = n.include.map(
|
|
11775
|
+
if (n.include && (n.include = n.include.map(L)), n.files && (n.files = n.files.map((l) => l.startsWith(E$1) ? l : X(l))), n.watchOptions) {
|
|
13463
11776
|
const { watchOptions: l } = n;
|
|
13464
|
-
l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((
|
|
11777
|
+
l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((r) => L(PATH.resolve(o, r)))), l.excludeFiles && (l.excludeFiles = l.excludeFiles.map((r) => L(PATH.resolve(o, r)))), l.watchFile && (l.watchFile = l.watchFile.toLowerCase()), l.watchDirectory && (l.watchDirectory = l.watchDirectory.toLowerCase()), l.fallbackPolling && (l.fallbackPolling = l.fallbackPolling.toLowerCase());
|
|
13465
11778
|
}
|
|
13466
11779
|
return n;
|
|
13467
11780
|
}, "_parseTsconfig");
|
|
13468
|
-
const
|
|
13469
|
-
if (e.startsWith(E$1)) return
|
|
11781
|
+
const Z = i((e, t) => {
|
|
11782
|
+
if (e.startsWith(E$1)) return L(PATH.join(t, e.slice(12)));
|
|
13470
11783
|
}, "interpolateConfigDir");
|
|
13471
|
-
const
|
|
11784
|
+
const Xe = [
|
|
13472
11785
|
"outDir",
|
|
13473
11786
|
"declarationDir",
|
|
13474
11787
|
"outFile",
|
|
@@ -13476,8 +11789,8 @@ const Qe = [
|
|
|
13476
11789
|
"baseUrl",
|
|
13477
11790
|
"tsBuildInfoFile"
|
|
13478
11791
|
];
|
|
13479
|
-
const
|
|
13480
|
-
if (e.strict) for (const
|
|
11792
|
+
const Ye = i((e) => {
|
|
11793
|
+
if (e.strict) for (const $ of [
|
|
13481
11794
|
"noImplicitAny",
|
|
13482
11795
|
"noImplicitThis",
|
|
13483
11796
|
"strictNullChecks",
|
|
@@ -13487,7 +11800,7 @@ const He = r((e) => {
|
|
|
13487
11800
|
"strictBuiltinIteratorReturn",
|
|
13488
11801
|
"alwaysStrict",
|
|
13489
11802
|
"useUnknownInCatchVariables"
|
|
13490
|
-
]) e[
|
|
11803
|
+
]) e[$] === void 0 && (e[$] = !0);
|
|
13491
11804
|
if (e.composite && (e.declaration ??= !0, e.incremental ??= !0), e.target) {
|
|
13492
11805
|
let a = e.target.toLowerCase();
|
|
13493
11806
|
a === "es2015" && (a = "es6"), e.target = a, a === "esnext" && (e.module ??= "es6", e.useDefineForClassFields ??= !0), (a === "es6" || a === "es2016" || a === "es2017" || a === "es2018" || a === "es2019" || a === "es2020" || a === "es2021" || a === "es2022" || a === "es2023" || a === "es2024") && (e.module ??= "es6"), (a === "es2022" || a === "es2023" || a === "es2024") && (e.useDefineForClassFields ??= !0);
|
|
@@ -13495,8 +11808,8 @@ const He = r((e) => {
|
|
|
13495
11808
|
if (e.module) {
|
|
13496
11809
|
let a = e.module.toLowerCase();
|
|
13497
11810
|
if (a === "es2015" && (a = "es6"), e.module = a, (a === "es6" || a === "es2020" || a === "es2022" || a === "esnext" || a === "none" || a === "system" || a === "umd" || a === "amd") && (e.moduleResolution ??= "classic"), a === "system" && (e.allowSyntheticDefaultImports ??= !0), (a === "node16" || a === "node18" || a === "node20" || a === "nodenext" || a === "preserve") && (e.esModuleInterop ??= !0, e.allowSyntheticDefaultImports ??= !0), (a === "node16" || a === "node18" || a === "node20" || a === "nodenext") && (e.moduleDetection ??= "force"), a === "node16" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), a === "node18" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), a === "node20" && (e.target ??= "es2023", e.moduleResolution ??= "node16", e.resolveJsonModule ??= !0), a === "nodenext" && (e.target ??= "esnext", e.moduleResolution ??= "nodenext", e.resolveJsonModule ??= !0), a === "node16" || a === "node18" || a === "node20" || a === "nodenext") {
|
|
13498
|
-
const
|
|
13499
|
-
(
|
|
11811
|
+
const $ = e.target;
|
|
11812
|
+
($ === "es3" || $ === "es2022" || $ === "es2023" || $ === "es2024" || $ === "esnext") && (e.useDefineForClassFields ??= !0);
|
|
13500
11813
|
}
|
|
13501
11814
|
a === "preserve" && (e.moduleResolution ??= "bundler");
|
|
13502
11815
|
}
|
|
@@ -13506,52 +11819,52 @@ const He = r((e) => {
|
|
|
13506
11819
|
}
|
|
13507
11820
|
e.jsx && (e.jsx = e.jsx.toLowerCase()), e.moduleDetection && (e.moduleDetection = e.moduleDetection.toLowerCase()), e.importsNotUsedAsValues && (e.importsNotUsedAsValues = e.importsNotUsedAsValues.toLowerCase()), e.newLine && (e.newLine = e.newLine.toLowerCase()), e.esModuleInterop && (e.allowSyntheticDefaultImports ??= !0), e.verbatimModuleSyntax && (e.isolatedModules ??= !0, e.preserveConstEnums ??= !0), e.isolatedModules && (e.preserveConstEnums ??= !0), e.rewriteRelativeImportExtensions && (e.allowImportingTsExtensions ??= !0), e.lib && (e.lib = e.lib.map((a) => a.toLowerCase())), e.checkJs && (e.allowJs ??= !0);
|
|
13508
11821
|
}, "normalizeCompilerOptions");
|
|
13509
|
-
const ie =
|
|
13510
|
-
const s = PATH.resolve(e), n =
|
|
11822
|
+
const ie = i((e, t = /* @__PURE__ */ new Map()) => {
|
|
11823
|
+
const s = PATH.resolve(e), n = ve(s, t), o = PATH.dirname(s), { compilerOptions: l } = n;
|
|
13511
11824
|
if (l) {
|
|
13512
|
-
for (const f of
|
|
11825
|
+
for (const f of Xe) {
|
|
13513
11826
|
const u = l[f];
|
|
13514
11827
|
if (u) {
|
|
13515
|
-
const g =
|
|
11828
|
+
const g = Z(u, o);
|
|
13516
11829
|
l[f] = g ? oe(o, g) : u;
|
|
13517
11830
|
}
|
|
13518
11831
|
}
|
|
13519
11832
|
for (const f of ["rootDirs", "typeRoots"]) {
|
|
13520
11833
|
const u = l[f];
|
|
13521
11834
|
u && (l[f] = u.map((g) => {
|
|
13522
|
-
const
|
|
13523
|
-
return
|
|
11835
|
+
const d = Z(g, o);
|
|
11836
|
+
return d ? oe(o, d) : X(g);
|
|
13524
11837
|
}));
|
|
13525
11838
|
}
|
|
13526
|
-
const { paths:
|
|
13527
|
-
if (
|
|
11839
|
+
const { paths: r } = l;
|
|
11840
|
+
if (r) for (const f of Object.keys(r)) r[f] = r[f].map((u) => {
|
|
13528
11841
|
var g;
|
|
13529
|
-
return (g =
|
|
11842
|
+
return (g = Z(u, o)) != null ? g : u;
|
|
13530
11843
|
});
|
|
13531
|
-
|
|
11844
|
+
Ye(l);
|
|
13532
11845
|
}
|
|
13533
|
-
for (const
|
|
13534
|
-
const f = n[
|
|
13535
|
-
f && (n[
|
|
11846
|
+
for (const r of pe) {
|
|
11847
|
+
const f = n[r];
|
|
11848
|
+
f && (n[r] = f.map((u) => {
|
|
13536
11849
|
var g;
|
|
13537
|
-
return (g =
|
|
11850
|
+
return (g = Z(u, o)) != null ? g : u;
|
|
13538
11851
|
}));
|
|
13539
11852
|
}
|
|
13540
11853
|
return n;
|
|
13541
11854
|
}, "parseTsconfig");
|
|
13542
|
-
var
|
|
13543
|
-
var
|
|
11855
|
+
var Ze = Object.defineProperty;
|
|
11856
|
+
var q = i((e, t) => Ze(e, "name", {
|
|
13544
11857
|
value: t,
|
|
13545
11858
|
configurable: !0
|
|
13546
11859
|
}), "s");
|
|
13547
|
-
const Te =
|
|
11860
|
+
const Te = q((e) => {
|
|
13548
11861
|
let t = "";
|
|
13549
11862
|
for (let s = 0; s < e.length; s += 1) {
|
|
13550
11863
|
const n = e[s], o = n.toUpperCase();
|
|
13551
11864
|
t += n === o ? n.toLowerCase() : o;
|
|
13552
11865
|
}
|
|
13553
11866
|
return t;
|
|
13554
|
-
}, "invertCase"), re = /* @__PURE__ */ new Map(), Ae =
|
|
11867
|
+
}, "invertCase"), re = /* @__PURE__ */ new Map(), Ae = q((e, t) => {
|
|
13555
11868
|
const s = Re.join(e, `.is-fs-case-sensitive-test-${process.pid}`);
|
|
13556
11869
|
try {
|
|
13557
11870
|
return t.writeFileSync(s, ""), !t.existsSync(Te(s));
|
|
@@ -13560,19 +11873,19 @@ const Te = Z((e) => {
|
|
|
13560
11873
|
t.unlinkSync(s);
|
|
13561
11874
|
} catch {}
|
|
13562
11875
|
}
|
|
13563
|
-
}, "checkDirectoryCaseWithWrite"),
|
|
11876
|
+
}, "checkDirectoryCaseWithWrite"), qe = q((e, t, s) => {
|
|
13564
11877
|
try {
|
|
13565
11878
|
return Ae(e, s);
|
|
13566
11879
|
} catch (n) {
|
|
13567
11880
|
if (t === void 0) return Ae(Ue.tmpdir(), s);
|
|
13568
11881
|
throw n;
|
|
13569
11882
|
}
|
|
13570
|
-
}, "checkDirectoryCaseWithFallback"),
|
|
11883
|
+
}, "checkDirectoryCaseWithFallback"), Ke = q((e, t = Ie, s = !0) => {
|
|
13571
11884
|
const n = e != null ? e : process.cwd();
|
|
13572
11885
|
if (s && re.has(n)) return re.get(n);
|
|
13573
11886
|
let o;
|
|
13574
11887
|
const l = Te(n);
|
|
13575
|
-
return l !== n && t.existsSync(n) ? o = !t.existsSync(l) : o =
|
|
11888
|
+
return l !== n && t.existsSync(n) ? o = !t.existsSync(l) : o = qe(n, e, t), s && re.set(n, o), o;
|
|
13576
11889
|
}, "isFsCaseSensitive"), { join: _e } = PATH.posix, ue = {
|
|
13577
11890
|
ts: [
|
|
13578
11891
|
".ts",
|
|
@@ -13581,79 +11894,79 @@ const Te = Z((e) => {
|
|
|
13581
11894
|
],
|
|
13582
11895
|
cts: [".cts", ".d.cts"],
|
|
13583
11896
|
mts: [".mts", ".d.mts"]
|
|
13584
|
-
},
|
|
11897
|
+
}, Oe = i((e) => {
|
|
13585
11898
|
const t = [...ue.ts], s = [...ue.cts], n = [...ue.mts];
|
|
13586
11899
|
return e != null && e.allowJs && (t.push(".js", ".jsx"), s.push(".cjs"), n.push(".mjs")), [
|
|
13587
11900
|
...t,
|
|
13588
11901
|
...s,
|
|
13589
11902
|
...n
|
|
13590
11903
|
];
|
|
13591
|
-
}, "getSupportedExtensions"),
|
|
11904
|
+
}, "getSupportedExtensions"), Ce = i((e) => {
|
|
13592
11905
|
const t = [];
|
|
13593
11906
|
if (!e) return t;
|
|
13594
11907
|
const { outDir: s, declarationDir: n } = e;
|
|
13595
11908
|
return s && t.push(s), n && t.push(n), t;
|
|
13596
|
-
}, "getDefaultExcludeSpec"), ye =
|
|
11909
|
+
}, "getDefaultExcludeSpec"), ye = i((e) => e.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp"), fe = `(?!(${[
|
|
13597
11910
|
"node_modules",
|
|
13598
11911
|
"bower_components",
|
|
13599
11912
|
"jspm_packages"
|
|
13600
|
-
].join("|")})(/|$))`,
|
|
11913
|
+
].join("|")})(/|$))`, nn = /(?:^|\/)[^.*?]+$/, je = "**/*", K = "[^/]", ae = "[^./]", Fe = process.platform === "win32", De = i(({ config: e, path: t }, s = Ke()) => {
|
|
13601
11914
|
if ("extends" in e) throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");
|
|
13602
11915
|
if (!PATH.isAbsolute(t)) throw new Error("The tsconfig path must be absolute");
|
|
13603
|
-
Fe && (t =
|
|
13604
|
-
const n = PATH.dirname(t), { files: o, include: l, exclude:
|
|
13605
|
-
const
|
|
13606
|
-
return new RegExp(`^${B}($|/)`,
|
|
13607
|
-
}),
|
|
13608
|
-
let
|
|
13609
|
-
|
|
13610
|
-
const B = ye(
|
|
11916
|
+
Fe && (t = L(t));
|
|
11917
|
+
const n = PATH.dirname(t), { files: o, include: l, exclude: r, compilerOptions: f } = e, u = i((w) => PATH.isAbsolute(w) ? w : _e(n, w), "resolvePattern"), g = o == null ? void 0 : o.map(u), d = Oe(f), b = s ? "" : "i", h = (r || Ce(f)).map((w) => {
|
|
11918
|
+
const v = u(w), B = ye(v).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${K}*`).replaceAll(String.raw`\?`, K);
|
|
11919
|
+
return new RegExp(`^${B}($|/)`, b);
|
|
11920
|
+
}), D = o || l ? l : [je], T = D ? D.map((w) => {
|
|
11921
|
+
let v = u(w);
|
|
11922
|
+
nn.test(v) && (v = _e(v, je));
|
|
11923
|
+
const B = ye(v).replaceAll(String.raw`/\*\*`, `(/${fe}${ae}${K}*)*?`).replaceAll(/(\/)?\\\*/g, (c, j) => {
|
|
13611
11924
|
const y = `(${ae}|(\\.(?!min\\.js$))?)*`;
|
|
13612
11925
|
return j ? `/${fe}${ae}${y}` : y;
|
|
13613
11926
|
}).replaceAll(/(\/)?\\\?/g, (c, j) => {
|
|
13614
|
-
const y =
|
|
11927
|
+
const y = K;
|
|
13615
11928
|
return j ? `/${fe}${y}` : y;
|
|
13616
11929
|
});
|
|
13617
|
-
return new RegExp(`^${B}$`,
|
|
11930
|
+
return new RegExp(`^${B}$`, b);
|
|
13618
11931
|
}) : void 0;
|
|
13619
|
-
return (
|
|
13620
|
-
if (!PATH.isAbsolute(
|
|
13621
|
-
if (Fe && (
|
|
13622
|
-
if (!(!
|
|
11932
|
+
return (w) => {
|
|
11933
|
+
if (!PATH.isAbsolute(w)) throw new Error("filePath must be absolute");
|
|
11934
|
+
if (Fe && (w = L(w)), g != null && g.includes(w)) return e;
|
|
11935
|
+
if (!(!d.some((v) => w.endsWith(v)) || h.some((v) => v.test(w))) && T && T.some((v) => v.test(w))) return e;
|
|
13623
11936
|
};
|
|
13624
|
-
}, "createFilesMatcher"),
|
|
11937
|
+
}, "createFilesMatcher"), he = i((e, t, s) => {
|
|
13625
11938
|
const n = PATH.resolve(e);
|
|
13626
|
-
let o =
|
|
11939
|
+
let o = L(e);
|
|
13627
11940
|
for (;;) {
|
|
13628
11941
|
const l = O$1(o, t, s);
|
|
13629
11942
|
if (!l) return;
|
|
13630
|
-
const
|
|
13631
|
-
path:
|
|
11943
|
+
const r = PATH.resolve(l), f = ie(r, s), u = {
|
|
11944
|
+
path: L(r),
|
|
13632
11945
|
config: f
|
|
13633
11946
|
};
|
|
13634
11947
|
if (De(u)(n)) return u;
|
|
13635
|
-
const
|
|
13636
|
-
if (
|
|
13637
|
-
o =
|
|
11948
|
+
const d = PATH.dirname(l), b = PATH.dirname(d);
|
|
11949
|
+
if (b === d) return;
|
|
11950
|
+
o = b;
|
|
13638
11951
|
}
|
|
13639
|
-
}, "findConfigApplicable"),
|
|
11952
|
+
}, "findConfigApplicable"), Le = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
|
|
13640
11953
|
var o;
|
|
13641
|
-
return n ? (o =
|
|
13642
|
-
}, "findTsconfig"),
|
|
11954
|
+
return n ? (o = he(e, t, s)) == null ? void 0 : o.path : O$1(L(e), t, s);
|
|
11955
|
+
}, "findTsconfig"), tn = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
|
|
13643
11956
|
var o;
|
|
13644
11957
|
if (!n) {
|
|
13645
|
-
const l =
|
|
11958
|
+
const l = Le(e, t, s);
|
|
13646
11959
|
if (!l) return null;
|
|
13647
11960
|
return {
|
|
13648
11961
|
path: l,
|
|
13649
11962
|
config: ie(l, s)
|
|
13650
11963
|
};
|
|
13651
11964
|
}
|
|
13652
|
-
return (o =
|
|
13653
|
-
}, "getTsconfig"),
|
|
13654
|
-
const s = e.match(
|
|
11965
|
+
return (o = he(e, t, s)) != null ? o : null;
|
|
11966
|
+
}, "getTsconfig"), sn = /\*/g, Ee = i((e, t) => {
|
|
11967
|
+
const s = e.match(sn);
|
|
13655
11968
|
if (s && s.length > 1) throw new Error(t);
|
|
13656
|
-
}, "assertStarCount"),
|
|
11969
|
+
}, "assertStarCount"), ln = i((e) => {
|
|
13657
11970
|
if (e.includes("*")) {
|
|
13658
11971
|
const [t, s] = e.split("*");
|
|
13659
11972
|
return {
|
|
@@ -13662,31 +11975,31 @@ const Te = Z((e) => {
|
|
|
13662
11975
|
};
|
|
13663
11976
|
}
|
|
13664
11977
|
return e;
|
|
13665
|
-
}, "parsePattern"),
|
|
13666
|
-
pattern:
|
|
11978
|
+
}, "parsePattern"), on = i(({ prefix: e, suffix: t }, s) => s.startsWith(e) && s.endsWith(t), "isPatternMatch"), rn = i((e, t, s) => Object.entries(e).map(([n, o]) => (Ee(n, `Pattern '${n}' can have at most one '*' character.`), {
|
|
11979
|
+
pattern: ln(n),
|
|
13667
11980
|
substitutions: o.map((l) => {
|
|
13668
11981
|
if (Ee(l, `Substitution '${l}' in pattern '${n}' can have at most one '*' character.`), !t && !C$1.test(l) && !PATH.isAbsolute(l)) throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");
|
|
13669
11982
|
return PATH.resolve(s, l);
|
|
13670
11983
|
})
|
|
13671
11984
|
})), "parsePaths");
|
|
13672
|
-
|
|
11985
|
+
i((e) => {
|
|
13673
11986
|
const { compilerOptions: t } = e.config;
|
|
13674
11987
|
if (!t) return null;
|
|
13675
11988
|
const { baseUrl: s, paths: n } = t;
|
|
13676
11989
|
if (!s && !n) return null;
|
|
13677
|
-
const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."),
|
|
11990
|
+
const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."), r = n ? rn(n, s, l) : [];
|
|
13678
11991
|
return (f) => {
|
|
13679
11992
|
if (C$1.test(f)) return [];
|
|
13680
11993
|
const u = [];
|
|
13681
|
-
for (const _ of
|
|
13682
|
-
if (_.pattern === f) return _.substitutions.map(
|
|
11994
|
+
for (const _ of r) {
|
|
11995
|
+
if (_.pattern === f) return _.substitutions.map(L);
|
|
13683
11996
|
typeof _.pattern != "string" && u.push(_);
|
|
13684
11997
|
}
|
|
13685
|
-
let g,
|
|
13686
|
-
for (const _ of u)
|
|
13687
|
-
if (!g) return s ? [
|
|
13688
|
-
const
|
|
13689
|
-
return g.substitutions.map((_) =>
|
|
11998
|
+
let g, d = -1;
|
|
11999
|
+
for (const _ of u) on(_.pattern, f) && _.pattern.prefix.length > d && (d = _.pattern.prefix.length, g = _);
|
|
12000
|
+
if (!g) return s ? [L(PATH.join(l, f))] : [];
|
|
12001
|
+
const b = f.slice(g.pattern.prefix.length, f.length - g.pattern.suffix.length);
|
|
12002
|
+
return g.substitutions.map((_) => L(_.replace("*", b)));
|
|
13690
12003
|
};
|
|
13691
12004
|
}, "createPathsMatcher");
|
|
13692
12005
|
//#endregion
|
|
@@ -13698,7 +12011,7 @@ const readRootTsconfigModule = (pkg) => {
|
|
|
13698
12011
|
return typeof module === "string" ? module : void 0;
|
|
13699
12012
|
};
|
|
13700
12013
|
const readResolvedTsconfigTypes = (pkg) => {
|
|
13701
|
-
const compilerOptions =
|
|
12014
|
+
const compilerOptions = tn(PATH.resolve(pkg), "tsconfig.json")?.config?.compilerOptions;
|
|
13702
12015
|
if (!compilerOptions || !("types" in compilerOptions)) return;
|
|
13703
12016
|
const { types } = compilerOptions;
|
|
13704
12017
|
if (!Array.isArray(types)) return;
|
|
@@ -14240,9 +12553,10 @@ function createDeclarationEmitter(isVerbose = false) {
|
|
|
14240
12553
|
let promise = declarationPromises.get(key);
|
|
14241
12554
|
if (!promise) {
|
|
14242
12555
|
promise = (async () => {
|
|
12556
|
+
const dtsConfig = writeTypescriptConfig(cwd(), platform, srcDir, true, outDir);
|
|
14243
12557
|
return {
|
|
14244
12558
|
outDir,
|
|
14245
|
-
result: runTsc(
|
|
12559
|
+
result: runTsc(dtsConfig, isVerbose)
|
|
14246
12560
|
};
|
|
14247
12561
|
})();
|
|
14248
12562
|
declarationPromises.set(key, promise);
|
|
@@ -17059,7 +15373,7 @@ var init_main = __esmMin((() => {
|
|
|
17059
15373
|
z = R;
|
|
17060
15374
|
}));
|
|
17061
15375
|
//#endregion
|
|
17062
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
15376
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/utils.js
|
|
17063
15377
|
/**
|
|
17064
15378
|
* @param {string} packageManager
|
|
17065
15379
|
* @returns {string[]}
|
|
@@ -17082,7 +15396,7 @@ async function getTempPackDir() {
|
|
|
17082
15396
|
}
|
|
17083
15397
|
var init_utils$2 = __esmMin((() => {}));
|
|
17084
15398
|
//#endregion
|
|
17085
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
15399
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack.js
|
|
17086
15400
|
/** @type {import('../index.d.ts').pack} */
|
|
17087
15401
|
async function pack(dir, opts) {
|
|
17088
15402
|
const packageManager = opts?.packageManager ?? "npm";
|
|
@@ -17096,18 +15410,14 @@ async function pack(dir, opts) {
|
|
|
17096
15410
|
case "bun":
|
|
17097
15411
|
command.push("--destination", packDestination);
|
|
17098
15412
|
break;
|
|
17099
|
-
default:
|
|
17100
|
-
command.push("--pack-destination", packDestination);
|
|
17101
|
-
break;
|
|
15413
|
+
default: command.push("--pack-destination", packDestination);
|
|
17102
15414
|
}
|
|
17103
15415
|
if (opts?.ignoreScripts) switch (packageManager) {
|
|
17104
15416
|
case "pnpm":
|
|
17105
15417
|
command.push("--config.ignore-scripts=true");
|
|
17106
15418
|
break;
|
|
17107
15419
|
case "yarn": break;
|
|
17108
|
-
default:
|
|
17109
|
-
command.push("--ignore-scripts");
|
|
17110
|
-
break;
|
|
15420
|
+
default: command.push("--ignore-scripts");
|
|
17111
15421
|
}
|
|
17112
15422
|
const output = await z(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
|
|
17113
15423
|
const tarballFile = await fs$1.readdir(packDestination).then((files) => {
|
|
@@ -17122,7 +15432,7 @@ var init_pack = __esmMin((() => {
|
|
|
17122
15432
|
init_utils$2();
|
|
17123
15433
|
}));
|
|
17124
15434
|
//#endregion
|
|
17125
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
15435
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack-as-json.js
|
|
17126
15436
|
/** @type {import('../index.d.ts').packAsJson} */
|
|
17127
15437
|
async function packAsJson(dir, opts) {
|
|
17128
15438
|
const packageManager = opts?.packageManager ?? "npm";
|
|
@@ -17142,9 +15452,7 @@ async function packAsJson(dir, opts) {
|
|
|
17142
15452
|
command.push("--config.ignore-scripts=true");
|
|
17143
15453
|
break;
|
|
17144
15454
|
case "yarn": break;
|
|
17145
|
-
default:
|
|
17146
|
-
command.push("--ignore-scripts");
|
|
17147
|
-
break;
|
|
15455
|
+
default: command.push("--ignore-scripts");
|
|
17148
15456
|
}
|
|
17149
15457
|
let { stdout } = await z(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
|
|
17150
15458
|
try {
|
|
@@ -17183,7 +15491,7 @@ var init_pack_as_json = __esmMin((() => {
|
|
|
17183
15491
|
init_utils$2();
|
|
17184
15492
|
}));
|
|
17185
15493
|
//#endregion
|
|
17186
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
15494
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/buffer-stream.js
|
|
17187
15495
|
/**
|
|
17188
15496
|
* @param {ReadableStream<Uint8Array>} readableStream
|
|
17189
15497
|
* @returns {Promise<ArrayBuffer>}
|
|
@@ -17193,7 +15501,7 @@ async function readableStreamToArrayBuffer(readableStream) {
|
|
|
17193
15501
|
}
|
|
17194
15502
|
var init_buffer_stream = __esmMin((() => {}));
|
|
17195
15503
|
//#endregion
|
|
17196
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
15504
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/parse-tar.js
|
|
17197
15505
|
/**
|
|
17198
15506
|
* @param {ArrayBuffer} buffer
|
|
17199
15507
|
* @returns {import('../index.d.ts').TarballFile[]}
|
|
@@ -17237,7 +15545,7 @@ function getFilesRootDir(files) {
|
|
|
17237
15545
|
}
|
|
17238
15546
|
var init_parse_tar = __esmMin((() => {}));
|
|
17239
15547
|
//#endregion
|
|
17240
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
15548
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/unpack.js
|
|
17241
15549
|
/** @type {import('../index.d.ts').unpack} */
|
|
17242
15550
|
async function unpack(tarball) {
|
|
17243
15551
|
/** @type {ArrayBuffer} */
|
|
@@ -17258,7 +15566,7 @@ var init_unpack = __esmMin((() => {
|
|
|
17258
15566
|
init_parse_tar();
|
|
17259
15567
|
}));
|
|
17260
15568
|
//#endregion
|
|
17261
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
15569
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack-as-list.js
|
|
17262
15570
|
/** @type {import('../index.d.ts').packAsList} */
|
|
17263
15571
|
async function packAsList(dir, opts) {
|
|
17264
15572
|
const packageManager = opts?.packageManager ?? "npm";
|
|
@@ -17316,7 +15624,8 @@ async function packAsListWithPack(dir, packageManager, ignoreScripts) {
|
|
|
17316
15624
|
* @returns {string[]}
|
|
17317
15625
|
*/
|
|
17318
15626
|
function parseNpmPackJson(stdoutJson) {
|
|
17319
|
-
return stdoutJson[0].files.map((file) => file.path);
|
|
15627
|
+
if (Array.isArray(stdoutJson)) return stdoutJson[0].files.map((file) => file.path);
|
|
15628
|
+
else return stdoutJson[Object.keys(stdoutJson)[0]].files.map((file) => file.path);
|
|
17320
15629
|
}
|
|
17321
15630
|
/**
|
|
17322
15631
|
* @param {any} stdoutJson
|
|
@@ -17341,7 +15650,7 @@ var init_pack_as_list = __esmMin((() => {
|
|
|
17341
15650
|
init_utils$2();
|
|
17342
15651
|
}));
|
|
17343
15652
|
//#endregion
|
|
17344
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
15653
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/get-pack-directory.js
|
|
17345
15654
|
/** @type {import('../index.d.ts').getPackDirectory} */
|
|
17346
15655
|
async function getPackDirectory(dir, packageManager) {
|
|
17347
15656
|
if (packageManager === "pnpm") try {
|
|
@@ -17353,16 +15662,28 @@ async function getPackDirectory(dir, packageManager) {
|
|
|
17353
15662
|
}
|
|
17354
15663
|
var init_get_pack_directory = __esmMin((() => {}));
|
|
17355
15664
|
//#endregion
|
|
17356
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
15665
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/constants.js
|
|
15666
|
+
var supportedPackageManagers;
|
|
15667
|
+
var init_constants$2 = __esmMin((() => {
|
|
15668
|
+
supportedPackageManagers = [
|
|
15669
|
+
"npm",
|
|
15670
|
+
"yarn",
|
|
15671
|
+
"pnpm",
|
|
15672
|
+
"bun"
|
|
15673
|
+
];
|
|
15674
|
+
}));
|
|
15675
|
+
//#endregion
|
|
15676
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/index-node.js
|
|
17357
15677
|
var init_index_node$1 = __esmMin((() => {
|
|
17358
15678
|
init_pack();
|
|
17359
15679
|
init_pack_as_list();
|
|
17360
15680
|
init_pack_as_json();
|
|
17361
15681
|
init_get_pack_directory();
|
|
17362
15682
|
init_unpack();
|
|
15683
|
+
init_constants$2();
|
|
17363
15684
|
}));
|
|
17364
15685
|
//#endregion
|
|
17365
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
15686
|
+
//#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/node/vfs-node.js
|
|
17366
15687
|
/**
|
|
17367
15688
|
* Creates a node-compatible Vfs object
|
|
17368
15689
|
* @returns {import('../shared/core.js').Vfs}
|
|
@@ -17401,7 +15722,7 @@ function createNodeVfs() {
|
|
|
17401
15722
|
}
|
|
17402
15723
|
var init_vfs_node = __esmMin((() => {}));
|
|
17403
15724
|
//#endregion
|
|
17404
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
15725
|
+
//#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/shared/constants.js
|
|
17405
15726
|
var lintableFileExtensions, invalidJsxExtensions, knownBrowserishConditions, commonInternalPaths, licenseFiles;
|
|
17406
15727
|
var init_constants$1 = __esmMin((() => {
|
|
17407
15728
|
lintableFileExtensions = [
|
|
@@ -17424,10 +15745,35 @@ var init_constants$1 = __esmMin((() => {
|
|
|
17424
15745
|
"test/",
|
|
17425
15746
|
"tests/",
|
|
17426
15747
|
"__tests__/",
|
|
15748
|
+
"e2e/",
|
|
15749
|
+
".circleci/",
|
|
15750
|
+
".github/",
|
|
15751
|
+
".husky/",
|
|
15752
|
+
".vscode/",
|
|
17427
15753
|
".prettierrc",
|
|
15754
|
+
".prettierignore",
|
|
17428
15755
|
"prettier.config.js",
|
|
17429
15756
|
".eslintrc",
|
|
17430
|
-
".eslintrc.js"
|
|
15757
|
+
".eslintrc.js",
|
|
15758
|
+
".eslintignore",
|
|
15759
|
+
"eslint.config.js",
|
|
15760
|
+
"eslint.config.mjs",
|
|
15761
|
+
"eslint.config.cjs",
|
|
15762
|
+
".travis.yml",
|
|
15763
|
+
"azure-pipelines.yml",
|
|
15764
|
+
"appveyor.yml",
|
|
15765
|
+
".gitattributes",
|
|
15766
|
+
".gitignore",
|
|
15767
|
+
"package-lock.json",
|
|
15768
|
+
"yarn.lock",
|
|
15769
|
+
"pnpm-lock.yaml",
|
|
15770
|
+
"bun.lock",
|
|
15771
|
+
"bun.lockb",
|
|
15772
|
+
"CONTRIBUTING.md",
|
|
15773
|
+
"CODE_OF_CONDUCT.md",
|
|
15774
|
+
"CODEOWNERS",
|
|
15775
|
+
"Dockerfile",
|
|
15776
|
+
"tsconfig.tsbuildinfo"
|
|
17431
15777
|
];
|
|
17432
15778
|
licenseFiles = [
|
|
17433
15779
|
/^copying/i,
|
|
@@ -17436,7 +15782,7 @@ var init_constants$1 = __esmMin((() => {
|
|
|
17436
15782
|
];
|
|
17437
15783
|
}));
|
|
17438
15784
|
//#endregion
|
|
17439
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
15785
|
+
//#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/shared/utils.js
|
|
17440
15786
|
/**
|
|
17441
15787
|
* @param {string} code
|
|
17442
15788
|
*/
|
|
@@ -17832,7 +16178,7 @@ var init_utils$1 = __esmMin((() => {
|
|
|
17832
16178
|
EXPORTS_DEFAULT_PATTERN_RE = /exports(?:\.default|\["default"\]|\['default'\])\s*=\s*([^\s]{7}.)/g;
|
|
17833
16179
|
MULTILINE_COMMENTS_RE = /\/\*(.|[\r\n])*?\*\//gm;
|
|
17834
16180
|
SINGLELINE_COMMENTS_RE = /\/\/.*/g;
|
|
17835
|
-
GIT_URL_RE = /^(?:(git\+https?|git\+ssh|https?|ssh|git):\/\/)?(?:[
|
|
16181
|
+
GIT_URL_RE = /^(?:(git\+https?|git\+ssh|https?|ssh|git):\/\/)?(?:[^@/]+@)?([\w.-]+)(?::([\w\d-]+))?(\/[^?#]+)\/?$/;
|
|
17836
16182
|
SHORTHAND_REPOSITORY_URL_RE = /^(?:(?:github|bitbucket|gitlab):[^/]+\/.+|gist:.+|[^/]+\/[^/]+)$/;
|
|
17837
16183
|
COMMON_CONDITIONS = [
|
|
17838
16184
|
"default",
|
|
@@ -17850,7 +16196,7 @@ var init_utils$1 = __esmMin((() => {
|
|
|
17850
16196
|
DTS_RE = /\.d\.[mc]?ts$/;
|
|
17851
16197
|
}));
|
|
17852
16198
|
//#endregion
|
|
17853
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
16199
|
+
//#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/shared/core.js
|
|
17854
16200
|
/**
|
|
17855
16201
|
* @typedef Vfs
|
|
17856
16202
|
* @property {(path: string) => Promise<string>} readFile
|
|
@@ -18717,7 +17063,7 @@ var init_core = __esmMin((() => {
|
|
|
18717
17063
|
init_utils$1();
|
|
18718
17064
|
}));
|
|
18719
17065
|
//#endregion
|
|
18720
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
17066
|
+
//#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/shared/vfs-tarball.js
|
|
18721
17067
|
/**
|
|
18722
17068
|
* @param {import("../index.d.ts").PackFile[]} files
|
|
18723
17069
|
* @return {import("./core.js").Vfs}
|
|
@@ -18862,18 +17208,16 @@ async function detect(options = {}) {
|
|
|
18862
17208
|
if (result) return result;
|
|
18863
17209
|
break;
|
|
18864
17210
|
}
|
|
18865
|
-
case "install-metadata":
|
|
18866
|
-
|
|
18867
|
-
|
|
18868
|
-
|
|
18869
|
-
|
|
18870
|
-
|
|
18871
|
-
|
|
18872
|
-
|
|
18873
|
-
};
|
|
18874
|
-
}
|
|
17211
|
+
case "install-metadata": for (const metadata of Object.keys(INSTALL_METADATA)) {
|
|
17212
|
+
const fileOrDir = metadata.endsWith("/") ? "dir" : "file";
|
|
17213
|
+
if (await pathExists(PATH.join(directory, metadata), fileOrDir)) {
|
|
17214
|
+
const name = INSTALL_METADATA[metadata];
|
|
17215
|
+
return {
|
|
17216
|
+
name,
|
|
17217
|
+
agent: name === "yarn" ? isMetadataYarnClassic(metadata) ? "yarn" : "yarn@berry" : name
|
|
17218
|
+
};
|
|
18875
17219
|
}
|
|
18876
|
-
|
|
17220
|
+
}
|
|
18877
17221
|
}
|
|
18878
17222
|
if (stopDir?.(directory)) break;
|
|
18879
17223
|
}
|
|
@@ -18937,7 +17281,7 @@ var init_detect = __esmMin((() => {
|
|
|
18937
17281
|
init_constants();
|
|
18938
17282
|
}));
|
|
18939
17283
|
//#endregion
|
|
18940
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
17284
|
+
//#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/index-node.js
|
|
18941
17285
|
var index_node_exports = /* @__PURE__ */ __exportAll({ publint: () => publint });
|
|
18942
17286
|
/**
|
|
18943
17287
|
* @typedef {T extends string ? T : never} ExtractStringLiteral
|
|
@@ -18989,14 +17333,13 @@ async function publint(options) {
|
|
|
18989
17333
|
* @return {Promise<import('@publint/pack').PackageManager>}
|
|
18990
17334
|
*/
|
|
18991
17335
|
async function detectPackageManager(pkgDir, pack) {
|
|
18992
|
-
|
|
18993
|
-
if (packageManager === "auto") {
|
|
17336
|
+
if (pack === "auto") {
|
|
18994
17337
|
const { detect } = await Promise.resolve().then(() => (init_detect(), detect_exports));
|
|
18995
|
-
|
|
18996
|
-
if (detected
|
|
18997
|
-
|
|
17338
|
+
const detected = (await detect({ cwd: pkgDir }))?.name ?? "npm";
|
|
17339
|
+
if (supportedPackageManagers.includes(detected)) return detected;
|
|
17340
|
+
else return "npm";
|
|
18998
17341
|
}
|
|
18999
|
-
return
|
|
17342
|
+
return pack;
|
|
19000
17343
|
}
|
|
19001
17344
|
/**
|
|
19002
17345
|
* @param {string} pkgDir
|
|
@@ -19019,7 +17362,77 @@ var init_index_node = __esmMin((() => {
|
|
|
19019
17362
|
init_vfs_tarball();
|
|
19020
17363
|
}));
|
|
19021
17364
|
//#endregion
|
|
19022
|
-
//#region ../../node_modules/.pnpm/
|
|
17365
|
+
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
17366
|
+
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17367
|
+
let p = process || {};
|
|
17368
|
+
let argv = p.argv || [];
|
|
17369
|
+
let env = p.env || {};
|
|
17370
|
+
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
17371
|
+
let formatter = (open, close, replace = open) => (input) => {
|
|
17372
|
+
let string = "" + input, index = string.indexOf(close, open.length);
|
|
17373
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
17374
|
+
};
|
|
17375
|
+
let replaceClose = (string, close, replace, index) => {
|
|
17376
|
+
let result = "", cursor = 0;
|
|
17377
|
+
do {
|
|
17378
|
+
result += string.substring(cursor, index) + replace;
|
|
17379
|
+
cursor = index + close.length;
|
|
17380
|
+
index = string.indexOf(close, cursor);
|
|
17381
|
+
} while (~index);
|
|
17382
|
+
return result + string.substring(cursor);
|
|
17383
|
+
};
|
|
17384
|
+
let createColors = (enabled = isColorSupported) => {
|
|
17385
|
+
let f = enabled ? formatter : () => String;
|
|
17386
|
+
return {
|
|
17387
|
+
isColorSupported: enabled,
|
|
17388
|
+
reset: f("\x1B[0m", "\x1B[0m"),
|
|
17389
|
+
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
17390
|
+
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
17391
|
+
italic: f("\x1B[3m", "\x1B[23m"),
|
|
17392
|
+
underline: f("\x1B[4m", "\x1B[24m"),
|
|
17393
|
+
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
17394
|
+
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
17395
|
+
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
17396
|
+
black: f("\x1B[30m", "\x1B[39m"),
|
|
17397
|
+
red: f("\x1B[31m", "\x1B[39m"),
|
|
17398
|
+
green: f("\x1B[32m", "\x1B[39m"),
|
|
17399
|
+
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
17400
|
+
blue: f("\x1B[34m", "\x1B[39m"),
|
|
17401
|
+
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
17402
|
+
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
17403
|
+
white: f("\x1B[37m", "\x1B[39m"),
|
|
17404
|
+
gray: f("\x1B[90m", "\x1B[39m"),
|
|
17405
|
+
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
17406
|
+
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
17407
|
+
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
17408
|
+
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
17409
|
+
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
17410
|
+
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
17411
|
+
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
17412
|
+
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
17413
|
+
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
17414
|
+
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
17415
|
+
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
17416
|
+
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
17417
|
+
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
17418
|
+
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
17419
|
+
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
17420
|
+
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
17421
|
+
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
17422
|
+
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
17423
|
+
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
17424
|
+
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
17425
|
+
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
17426
|
+
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
17427
|
+
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
17428
|
+
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
17429
|
+
};
|
|
17430
|
+
};
|
|
17431
|
+
module.exports = createColors();
|
|
17432
|
+
module.exports.createColors = createColors;
|
|
17433
|
+
}));
|
|
17434
|
+
//#endregion
|
|
17435
|
+
//#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/shared/message.js
|
|
19023
17436
|
/** @type {import('../utils.d.ts').formatMessage} */
|
|
19024
17437
|
function formatMessage(m, pkg, opts = {}) {
|
|
19025
17438
|
const h = getHighlighter(opts.color);
|
|
@@ -19161,7 +17574,6 @@ function getHighlighter(color) {
|
|
|
19161
17574
|
default:
|
|
19162
17575
|
bold = (s) => import_picocolors.default.bold(s);
|
|
19163
17576
|
warn = (s) => import_picocolors.default.yellow(s);
|
|
19164
|
-
break;
|
|
19165
17577
|
}
|
|
19166
17578
|
return {
|
|
19167
17579
|
bold,
|
|
@@ -19184,7 +17596,7 @@ var init_message = __esmMin((() => {
|
|
|
19184
17596
|
EMPTY_MSG = "<empty>";
|
|
19185
17597
|
}));
|
|
19186
17598
|
//#endregion
|
|
19187
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
17599
|
+
//#region ../../node_modules/.pnpm/publint@0.3.22/node_modules/publint/src/utils.js
|
|
19188
17600
|
var utils_exports = /* @__PURE__ */ __exportAll({
|
|
19189
17601
|
formatMessage: () => formatMessage,
|
|
19190
17602
|
formatMessagePath: () => formatMessagePath,
|