@ariestools/toolchain 8.7.25 → 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/checkPackage/getUnsatisfiedPeerDependencies.d.ts +10 -5
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -1
- package/dist/actions/deplint/engine.d.ts.map +1 -1
- package/dist/actions/deplint/findFiles.d.ts +25 -1
- package/dist/actions/deplint/findFiles.d.ts.map +1 -1
- package/dist/actions/deplint/getExternalImportsFromFiles.d.ts +8 -3
- package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -1
- package/dist/actions/deplint/isTerminalPackage.d.ts +72 -14
- package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
- package/dist/actions/deplint/rules.d.ts.map +1 -1
- package/dist/actions/deplint/snapshot.d.ts +9 -0
- package/dist/actions/deplint/snapshot.d.ts.map +1 -1
- package/dist/actions/deplint/types.d.ts +20 -2
- package/dist/actions/deplint/types.d.ts.map +1 -1
- package/dist/actions/package/compile/XyConfig.d.ts +23 -11
- package/dist/actions/package/compile/XyConfig.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 +1205 -2347
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/xy/common/skills/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -10,11 +10,41 @@ import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
|
|
|
10
10
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
11
11
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
13
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
|
|
14
|
+
function stringReplaceAll(string, substring, postfix) {
|
|
15
|
+
let index = string.indexOf(substring);
|
|
16
|
+
if (index === -1) return string;
|
|
17
|
+
const substringLength = substring.length;
|
|
18
|
+
let endIndex = 0;
|
|
19
|
+
let returnValue = "";
|
|
20
|
+
do {
|
|
21
|
+
returnValue += string.slice(endIndex, index) + substring + postfix;
|
|
22
|
+
endIndex = index + substringLength;
|
|
23
|
+
index = string.indexOf(substring, endIndex);
|
|
24
|
+
} while (index !== -1);
|
|
25
|
+
returnValue += string.slice(endIndex);
|
|
26
|
+
return returnValue;
|
|
27
|
+
}
|
|
28
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
29
|
+
let endIndex = 0;
|
|
30
|
+
let returnValue = "";
|
|
31
|
+
do {
|
|
32
|
+
const isGotCR = string[index - 1] === "\r";
|
|
33
|
+
returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
|
|
34
|
+
endIndex = index + 1;
|
|
35
|
+
index = string.indexOf("\n", endIndex);
|
|
36
|
+
} while (index !== -1);
|
|
37
|
+
returnValue += string.slice(endIndex);
|
|
38
|
+
return returnValue;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
14
42
|
const ANSI_BACKGROUND_OFFSET = 10;
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
43
|
+
const ANSI_UNDERLINE_OFFSET = 20;
|
|
44
|
+
const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
|
|
45
|
+
const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
|
|
46
|
+
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
|
|
47
|
+
const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
|
|
18
48
|
const styles$1 = {
|
|
19
49
|
modifier: {
|
|
20
50
|
reset: [0, 0],
|
|
@@ -22,6 +52,10 @@ const styles$1 = {
|
|
|
22
52
|
dim: [2, 22],
|
|
23
53
|
italic: [3, 23],
|
|
24
54
|
underline: [4, 24],
|
|
55
|
+
underlineDouble: ["4:2", 24],
|
|
56
|
+
underlineCurly: ["4:3", 24],
|
|
57
|
+
underlineDotted: ["4:4", 24],
|
|
58
|
+
underlineDashed: ["4:5", 24],
|
|
25
59
|
overline: [53, 55],
|
|
26
60
|
inverse: [7, 27],
|
|
27
61
|
hidden: [8, 28],
|
|
@@ -66,22 +100,43 @@ const styles$1 = {
|
|
|
66
100
|
bgMagentaBright: [105, 49],
|
|
67
101
|
bgCyanBright: [106, 49],
|
|
68
102
|
bgWhiteBright: [107, 49]
|
|
103
|
+
},
|
|
104
|
+
underlineColor: {
|
|
105
|
+
underlineBlack: ["58;5;0", 59],
|
|
106
|
+
underlineRed: ["58;5;1", 59],
|
|
107
|
+
underlineGreen: ["58;5;2", 59],
|
|
108
|
+
underlineYellow: ["58;5;3", 59],
|
|
109
|
+
underlineBlue: ["58;5;4", 59],
|
|
110
|
+
underlineMagenta: ["58;5;5", 59],
|
|
111
|
+
underlineCyan: ["58;5;6", 59],
|
|
112
|
+
underlineWhite: ["58;5;7", 59],
|
|
113
|
+
underlineBlackBright: ["58;5;8", 59],
|
|
114
|
+
underlineGray: ["58;5;8", 59],
|
|
115
|
+
underlineGrey: ["58;5;8", 59],
|
|
116
|
+
underlineRedBright: ["58;5;9", 59],
|
|
117
|
+
underlineGreenBright: ["58;5;10", 59],
|
|
118
|
+
underlineYellowBright: ["58;5;11", 59],
|
|
119
|
+
underlineBlueBright: ["58;5;12", 59],
|
|
120
|
+
underlineMagentaBright: ["58;5;13", 59],
|
|
121
|
+
underlineCyanBright: ["58;5;14", 59],
|
|
122
|
+
underlineWhiteBright: ["58;5;15", 59]
|
|
69
123
|
}
|
|
70
124
|
};
|
|
71
125
|
Object.keys(styles$1.modifier);
|
|
72
126
|
const foregroundColorNames = Object.keys(styles$1.color);
|
|
73
127
|
const backgroundColorNames = Object.keys(styles$1.bgColor);
|
|
128
|
+
Object.keys(styles$1.underlineColor);
|
|
74
129
|
[...foregroundColorNames, ...backgroundColorNames];
|
|
75
130
|
function assembleStyles() {
|
|
76
131
|
const codes = /* @__PURE__ */ new Map();
|
|
77
132
|
for (const [groupName, group] of Object.entries(styles$1)) {
|
|
78
133
|
for (const [styleName, style] of Object.entries(group)) {
|
|
79
134
|
styles$1[styleName] = {
|
|
80
|
-
open: `\
|
|
81
|
-
close: `\
|
|
135
|
+
open: `\u{1B}[${style[0]}m`,
|
|
136
|
+
close: `\u{1B}[${style[1]}m`
|
|
82
137
|
};
|
|
83
138
|
group[styleName] = styles$1[styleName];
|
|
84
|
-
codes.set(style[0], style[1]);
|
|
139
|
+
codes.set(Number.parseInt(style[0], 10), style[1]);
|
|
85
140
|
}
|
|
86
141
|
Object.defineProperty(styles$1, groupName, {
|
|
87
142
|
value: group,
|
|
@@ -94,12 +149,16 @@ function assembleStyles() {
|
|
|
94
149
|
});
|
|
95
150
|
styles$1.color.close = "\x1B[39m";
|
|
96
151
|
styles$1.bgColor.close = "\x1B[49m";
|
|
152
|
+
styles$1.underlineColor.close = "\x1B[59m";
|
|
97
153
|
styles$1.color.ansi = wrapAnsi16();
|
|
98
154
|
styles$1.color.ansi256 = wrapAnsi256();
|
|
99
155
|
styles$1.color.ansi16m = wrapAnsi16m();
|
|
100
156
|
styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
101
157
|
styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
102
158
|
styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
159
|
+
styles$1.underlineColor.ansi = wrapUnderlineAnsi;
|
|
160
|
+
styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
|
|
161
|
+
styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
|
|
103
162
|
Object.defineProperties(styles$1, {
|
|
104
163
|
rgbToAnsi256: {
|
|
105
164
|
value(red, green, blue) {
|
|
@@ -114,7 +173,7 @@ function assembleStyles() {
|
|
|
114
173
|
},
|
|
115
174
|
hexToRgb: {
|
|
116
175
|
value(hex) {
|
|
117
|
-
const matches = /[
|
|
176
|
+
const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
|
|
118
177
|
if (!matches) return [
|
|
119
178
|
0,
|
|
120
179
|
0,
|
|
@@ -174,7 +233,7 @@ function assembleStyles() {
|
|
|
174
233
|
}
|
|
175
234
|
const ansiStyles = assembleStyles();
|
|
176
235
|
//#endregion
|
|
177
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
236
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
178
237
|
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
179
238
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
180
239
|
const position = argv.indexOf(prefix + flag);
|
|
@@ -185,12 +244,15 @@ const { env } = process$1;
|
|
|
185
244
|
let flagForceColor;
|
|
186
245
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
187
246
|
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
247
|
+
function hasNumericForceColor() {
|
|
248
|
+
return /^\d+$/.test(env.FORCE_COLOR);
|
|
249
|
+
}
|
|
188
250
|
function envForceColor() {
|
|
189
|
-
if ("FORCE_COLOR" in env)
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
251
|
+
if (!("FORCE_COLOR" in env)) return;
|
|
252
|
+
if (env.FORCE_COLOR === "false") return 0;
|
|
253
|
+
if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
|
|
254
|
+
if (!hasNumericForceColor()) return;
|
|
255
|
+
return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
194
256
|
}
|
|
195
257
|
function translateLevel(level) {
|
|
196
258
|
if (level === 0) return false;
|
|
@@ -210,6 +272,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
210
272
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
211
273
|
if (hasFlag("color=256")) return 2;
|
|
212
274
|
}
|
|
275
|
+
if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
|
|
213
276
|
if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
|
|
214
277
|
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
215
278
|
const min = forceColor || 0;
|
|
@@ -234,19 +297,19 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
234
297
|
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
235
298
|
return min;
|
|
236
299
|
}
|
|
237
|
-
if ("TEAMCITY_VERSION" in env) return /^(9\.
|
|
300
|
+
if ("TEAMCITY_VERSION" in env) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
238
301
|
if (env.COLORTERM === "truecolor") return 3;
|
|
239
302
|
if (env.TERM === "xterm-kitty") return 3;
|
|
240
303
|
if (env.TERM === "xterm-ghostty") return 3;
|
|
241
304
|
if (env.TERM === "wezterm") return 3;
|
|
242
305
|
if ("TERM_PROGRAM" in env) {
|
|
243
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
306
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
|
|
244
307
|
switch (env.TERM_PROGRAM) {
|
|
245
308
|
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
246
309
|
case "Apple_Terminal": return 2;
|
|
247
310
|
}
|
|
248
311
|
}
|
|
249
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
312
|
+
if (/-256(?:color)?$/i.test(env.TERM)) return 2;
|
|
250
313
|
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
251
314
|
if ("COLORTERM" in env) return 1;
|
|
252
315
|
return min;
|
|
@@ -257,55 +320,34 @@ function createSupportsColor(stream, options = {}) {
|
|
|
257
320
|
...options
|
|
258
321
|
}));
|
|
259
322
|
}
|
|
260
|
-
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
|
|
325
|
+
const { stdout: stdoutColor, stderr: stderrColor } = {
|
|
261
326
|
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
262
327
|
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
263
328
|
};
|
|
264
|
-
//#endregion
|
|
265
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
266
|
-
function stringReplaceAll(string, substring, replacer) {
|
|
267
|
-
let index = string.indexOf(substring);
|
|
268
|
-
if (index === -1) return string;
|
|
269
|
-
const substringLength = substring.length;
|
|
270
|
-
let endIndex = 0;
|
|
271
|
-
let returnValue = "";
|
|
272
|
-
do {
|
|
273
|
-
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
274
|
-
endIndex = index + substringLength;
|
|
275
|
-
index = string.indexOf(substring, endIndex);
|
|
276
|
-
} while (index !== -1);
|
|
277
|
-
returnValue += string.slice(endIndex);
|
|
278
|
-
return returnValue;
|
|
279
|
-
}
|
|
280
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
281
|
-
let endIndex = 0;
|
|
282
|
-
let returnValue = "";
|
|
283
|
-
do {
|
|
284
|
-
const gotCR = string[index - 1] === "\r";
|
|
285
|
-
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
286
|
-
endIndex = index + 1;
|
|
287
|
-
index = string.indexOf("\n", endIndex);
|
|
288
|
-
} while (index !== -1);
|
|
289
|
-
returnValue += string.slice(endIndex);
|
|
290
|
-
return returnValue;
|
|
291
|
-
}
|
|
292
|
-
//#endregion
|
|
293
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
294
|
-
const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
|
|
295
329
|
const GENERATOR = Symbol("GENERATOR");
|
|
296
330
|
const STYLER = Symbol("STYLER");
|
|
297
331
|
const IS_EMPTY = Symbol("IS_EMPTY");
|
|
298
|
-
const
|
|
299
|
-
"ansi",
|
|
300
|
-
"ansi",
|
|
301
|
-
"ansi256",
|
|
302
|
-
"ansi16m"
|
|
303
|
-
];
|
|
332
|
+
const LEVEL = Symbol("LEVEL");
|
|
304
333
|
const styles = Object.create(null);
|
|
334
|
+
const assertValidLevel = (level) => {
|
|
335
|
+
if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
|
|
336
|
+
};
|
|
337
|
+
const levelDescriptor = {
|
|
338
|
+
enumerable: true,
|
|
339
|
+
get() {
|
|
340
|
+
return this[LEVEL];
|
|
341
|
+
},
|
|
342
|
+
set(level) {
|
|
343
|
+
assertValidLevel(level);
|
|
344
|
+
this[LEVEL] = level;
|
|
345
|
+
}
|
|
346
|
+
};
|
|
305
347
|
const applyOptions = (object, options = {}) => {
|
|
306
|
-
if (options.level
|
|
348
|
+
if (options.level !== void 0) assertValidLevel(options.level);
|
|
307
349
|
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
308
|
-
object
|
|
350
|
+
object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
|
|
309
351
|
};
|
|
310
352
|
const chalkFactory = (options) => {
|
|
311
353
|
const chalk = (...strings) => strings.join(" ");
|
|
@@ -327,35 +369,58 @@ styles.visible = { get() {
|
|
|
327
369
|
Object.defineProperty(this, "visible", { value: builder });
|
|
328
370
|
return builder;
|
|
329
371
|
} };
|
|
330
|
-
const
|
|
372
|
+
const createModelConverters = (model, type) => {
|
|
373
|
+
const style = ansiStyles[type];
|
|
331
374
|
if (model === "rgb") {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
return
|
|
375
|
+
const ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));
|
|
376
|
+
const ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));
|
|
377
|
+
return [
|
|
378
|
+
ansi,
|
|
379
|
+
ansi,
|
|
380
|
+
ansi256,
|
|
381
|
+
style.ansi16m
|
|
382
|
+
];
|
|
335
383
|
}
|
|
336
|
-
if (model === "hex")
|
|
337
|
-
|
|
384
|
+
if (model === "hex") {
|
|
385
|
+
const ansi = (hex) => style.ansi(ansiStyles.hexToAnsi(hex));
|
|
386
|
+
const ansi256 = (hex) => style.ansi256(ansiStyles.hexToAnsi256(hex));
|
|
387
|
+
return [
|
|
388
|
+
ansi,
|
|
389
|
+
ansi,
|
|
390
|
+
ansi256,
|
|
391
|
+
(hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
|
|
392
|
+
];
|
|
393
|
+
}
|
|
394
|
+
const ansi = (code) => style.ansi(ansiStyles.ansi256ToAnsi(code));
|
|
395
|
+
return [
|
|
396
|
+
ansi,
|
|
397
|
+
ansi,
|
|
398
|
+
style.ansi256,
|
|
399
|
+
style.ansi256
|
|
400
|
+
];
|
|
338
401
|
};
|
|
339
402
|
for (const model of [
|
|
340
403
|
"rgb",
|
|
341
404
|
"hex",
|
|
342
405
|
"ansi256"
|
|
343
406
|
]) {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
407
|
+
const capitalizedModel = model[0].toUpperCase() + model.slice(1);
|
|
408
|
+
for (const [styleName, type] of [
|
|
409
|
+
[model, "color"],
|
|
410
|
+
["bg" + capitalizedModel, "bgColor"],
|
|
411
|
+
["underline" + capitalizedModel, "underlineColor"]
|
|
412
|
+
]) {
|
|
413
|
+
const { close } = ansiStyles[type];
|
|
414
|
+
const converters = createModelConverters(model, type);
|
|
415
|
+
styles[styleName] = { get() {
|
|
416
|
+
const styleFunction = function(first, second, third) {
|
|
417
|
+
const open = converters[this.level](first, second, third);
|
|
418
|
+
return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
|
|
419
|
+
};
|
|
420
|
+
Object.defineProperty(this, styleName, { value: styleFunction });
|
|
421
|
+
return styleFunction;
|
|
422
|
+
} };
|
|
423
|
+
}
|
|
359
424
|
}
|
|
360
425
|
const proto = Object.defineProperties(() => {}, {
|
|
361
426
|
...styles,
|
|
@@ -388,15 +453,19 @@ const createStyler = (open, close, parent) => {
|
|
|
388
453
|
};
|
|
389
454
|
};
|
|
390
455
|
const createBuilder = (self, _styler, _isEmpty) => {
|
|
391
|
-
const builder = (...arguments_) =>
|
|
456
|
+
const builder = (...arguments_) => {
|
|
457
|
+
if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
|
|
458
|
+
if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
|
|
459
|
+
return applyStyle(builder, arguments_.join(" "));
|
|
460
|
+
};
|
|
392
461
|
Object.setPrototypeOf(builder, proto);
|
|
393
|
-
builder[GENERATOR] = self;
|
|
462
|
+
builder[GENERATOR] = self[GENERATOR] ?? self;
|
|
394
463
|
builder[STYLER] = _styler;
|
|
395
464
|
builder[IS_EMPTY] = _isEmpty;
|
|
396
465
|
return builder;
|
|
397
466
|
};
|
|
398
467
|
const applyStyle = (self, string) => {
|
|
399
|
-
if (self
|
|
468
|
+
if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
|
|
400
469
|
let styler = self[STYLER];
|
|
401
470
|
if (styler === void 0) return string;
|
|
402
471
|
const { openAll, closeAll } = styler;
|
|
@@ -408,7 +477,10 @@ const applyStyle = (self, string) => {
|
|
|
408
477
|
if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
409
478
|
return openAll + string + closeAll;
|
|
410
479
|
};
|
|
411
|
-
Object.defineProperties(createChalk.prototype,
|
|
480
|
+
Object.defineProperties(createChalk.prototype, {
|
|
481
|
+
...styles,
|
|
482
|
+
level: levelDescriptor
|
|
483
|
+
});
|
|
412
484
|
const chalk = createChalk();
|
|
413
485
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
414
486
|
//#endregion
|
|
@@ -458,1768 +530,6 @@ function deepMerge(target, source, options = {}) {
|
|
|
458
530
|
return mergeObject(target, source, options);
|
|
459
531
|
}
|
|
460
532
|
//#endregion
|
|
461
|
-
//#region ../../node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js
|
|
462
|
-
var require_resolve_from = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
463
|
-
const path$2 = __require("path");
|
|
464
|
-
const Module = __require("module");
|
|
465
|
-
const fs$1 = __require("fs");
|
|
466
|
-
const resolveFrom = (fromDir, moduleId, silent) => {
|
|
467
|
-
if (typeof fromDir !== "string") throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
|
|
468
|
-
if (typeof moduleId !== "string") throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
|
|
469
|
-
try {
|
|
470
|
-
fromDir = fs$1.realpathSync(fromDir);
|
|
471
|
-
} catch (err) {
|
|
472
|
-
if (err.code === "ENOENT") fromDir = path$2.resolve(fromDir);
|
|
473
|
-
else if (silent) return null;
|
|
474
|
-
else throw err;
|
|
475
|
-
}
|
|
476
|
-
const fromFile = path$2.join(fromDir, "noop.js");
|
|
477
|
-
const resolveFileName = () => Module._resolveFilename(moduleId, {
|
|
478
|
-
id: fromFile,
|
|
479
|
-
filename: fromFile,
|
|
480
|
-
paths: Module._nodeModulePaths(fromDir)
|
|
481
|
-
});
|
|
482
|
-
if (silent) try {
|
|
483
|
-
return resolveFileName();
|
|
484
|
-
} catch (err) {
|
|
485
|
-
return null;
|
|
486
|
-
}
|
|
487
|
-
return resolveFileName();
|
|
488
|
-
};
|
|
489
|
-
module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId);
|
|
490
|
-
module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true);
|
|
491
|
-
}));
|
|
492
|
-
//#endregion
|
|
493
|
-
//#region ../../node_modules/.pnpm/callsites@3.1.0/node_modules/callsites/index.js
|
|
494
|
-
var require_callsites = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
495
|
-
const callsites = () => {
|
|
496
|
-
const _prepareStackTrace = Error.prepareStackTrace;
|
|
497
|
-
Error.prepareStackTrace = (_, stack) => stack;
|
|
498
|
-
const stack = (/* @__PURE__ */ new Error()).stack.slice(1);
|
|
499
|
-
Error.prepareStackTrace = _prepareStackTrace;
|
|
500
|
-
return stack;
|
|
501
|
-
};
|
|
502
|
-
module.exports = callsites;
|
|
503
|
-
module.exports.default = callsites;
|
|
504
|
-
}));
|
|
505
|
-
//#endregion
|
|
506
|
-
//#region ../../node_modules/.pnpm/parent-module@1.0.1/node_modules/parent-module/index.js
|
|
507
|
-
var require_parent_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
508
|
-
const callsites = require_callsites();
|
|
509
|
-
module.exports = (filepath) => {
|
|
510
|
-
const stacks = callsites();
|
|
511
|
-
if (!filepath) return stacks[2].getFileName();
|
|
512
|
-
let seenVal = false;
|
|
513
|
-
stacks.shift();
|
|
514
|
-
for (const stack of stacks) {
|
|
515
|
-
const parentFilepath = stack.getFileName();
|
|
516
|
-
if (typeof parentFilepath !== "string") continue;
|
|
517
|
-
if (parentFilepath === filepath) {
|
|
518
|
-
seenVal = true;
|
|
519
|
-
continue;
|
|
520
|
-
}
|
|
521
|
-
if (parentFilepath === "module.js") continue;
|
|
522
|
-
if (seenVal && parentFilepath !== filepath) return parentFilepath;
|
|
523
|
-
}
|
|
524
|
-
};
|
|
525
|
-
}));
|
|
526
|
-
//#endregion
|
|
527
|
-
//#region ../../node_modules/.pnpm/import-fresh@3.3.1/node_modules/import-fresh/index.js
|
|
528
|
-
var require_import_fresh = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
529
|
-
const path$1 = __require("path");
|
|
530
|
-
const resolveFrom = require_resolve_from();
|
|
531
|
-
const parentModule = require_parent_module();
|
|
532
|
-
module.exports = (moduleId) => {
|
|
533
|
-
if (typeof moduleId !== "string") throw new TypeError("Expected a string");
|
|
534
|
-
const parentPath = parentModule(__filename);
|
|
535
|
-
const cwd = parentPath ? path$1.dirname(parentPath) : __dirname;
|
|
536
|
-
const filePath = resolveFrom(cwd, moduleId);
|
|
537
|
-
const oldModule = __require.cache[filePath];
|
|
538
|
-
if (oldModule && oldModule.parent) {
|
|
539
|
-
let i = oldModule.parent.children.length;
|
|
540
|
-
while (i--) if (oldModule.parent.children[i].id === filePath) oldModule.parent.children.splice(i, 1);
|
|
541
|
-
}
|
|
542
|
-
delete __require.cache[filePath];
|
|
543
|
-
const parent = __require.cache[parentPath];
|
|
544
|
-
return parent === void 0 || parent.require === void 0 ? __require(filePath) : parent.require(filePath);
|
|
545
|
-
};
|
|
546
|
-
}));
|
|
547
|
-
//#endregion
|
|
548
|
-
//#region ../../node_modules/.pnpm/is-arrayish@0.2.1/node_modules/is-arrayish/index.js
|
|
549
|
-
var require_is_arrayish = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
550
|
-
module.exports = function isArrayish(obj) {
|
|
551
|
-
if (!obj) return false;
|
|
552
|
-
return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && obj.splice instanceof Function;
|
|
553
|
-
};
|
|
554
|
-
}));
|
|
555
|
-
//#endregion
|
|
556
|
-
//#region ../../node_modules/.pnpm/error-ex@1.3.4/node_modules/error-ex/index.js
|
|
557
|
-
var require_error_ex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
558
|
-
var util = __require("util");
|
|
559
|
-
var isArrayish = require_is_arrayish();
|
|
560
|
-
var errorEx = function errorEx(name, properties) {
|
|
561
|
-
if (!name || name.constructor !== String) {
|
|
562
|
-
properties = name || {};
|
|
563
|
-
name = Error.name;
|
|
564
|
-
}
|
|
565
|
-
var errorExError = function ErrorEXError(message) {
|
|
566
|
-
if (!this) return new ErrorEXError(message);
|
|
567
|
-
message = message instanceof Error ? message.message : message || this.message;
|
|
568
|
-
Error.call(this, message);
|
|
569
|
-
Error.captureStackTrace(this, errorExError);
|
|
570
|
-
this.name = name;
|
|
571
|
-
Object.defineProperty(this, "message", {
|
|
572
|
-
configurable: true,
|
|
573
|
-
enumerable: false,
|
|
574
|
-
get: function() {
|
|
575
|
-
var newMessage = message.split(/\r?\n/g);
|
|
576
|
-
for (var key in properties) {
|
|
577
|
-
if (!properties.hasOwnProperty(key)) continue;
|
|
578
|
-
var modifier = properties[key];
|
|
579
|
-
if ("message" in modifier) {
|
|
580
|
-
newMessage = modifier.message(this[key], newMessage) || newMessage;
|
|
581
|
-
if (!isArrayish(newMessage)) newMessage = [newMessage];
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
return newMessage.join("\n");
|
|
585
|
-
},
|
|
586
|
-
set: function(v) {
|
|
587
|
-
message = v;
|
|
588
|
-
}
|
|
589
|
-
});
|
|
590
|
-
var overwrittenStack = null;
|
|
591
|
-
var stackDescriptor = Object.getOwnPropertyDescriptor(this, "stack");
|
|
592
|
-
var stackGetter = stackDescriptor.get;
|
|
593
|
-
var stackValue = stackDescriptor.value;
|
|
594
|
-
delete stackDescriptor.value;
|
|
595
|
-
delete stackDescriptor.writable;
|
|
596
|
-
stackDescriptor.set = function(newstack) {
|
|
597
|
-
overwrittenStack = newstack;
|
|
598
|
-
};
|
|
599
|
-
stackDescriptor.get = function() {
|
|
600
|
-
var stack = (overwrittenStack || (stackGetter ? stackGetter.call(this) : stackValue)).split(/\r?\n+/g);
|
|
601
|
-
if (!overwrittenStack) stack[0] = this.name + ": " + this.message;
|
|
602
|
-
var lineCount = 1;
|
|
603
|
-
for (var key in properties) {
|
|
604
|
-
if (!properties.hasOwnProperty(key)) continue;
|
|
605
|
-
var modifier = properties[key];
|
|
606
|
-
if ("line" in modifier) {
|
|
607
|
-
var line = modifier.line(this[key]);
|
|
608
|
-
if (line) stack.splice(lineCount++, 0, " " + line);
|
|
609
|
-
}
|
|
610
|
-
if ("stack" in modifier) modifier.stack(this[key], stack);
|
|
611
|
-
}
|
|
612
|
-
return stack.join("\n");
|
|
613
|
-
};
|
|
614
|
-
Object.defineProperty(this, "stack", stackDescriptor);
|
|
615
|
-
};
|
|
616
|
-
if (Object.setPrototypeOf) {
|
|
617
|
-
Object.setPrototypeOf(errorExError.prototype, Error.prototype);
|
|
618
|
-
Object.setPrototypeOf(errorExError, Error);
|
|
619
|
-
} else util.inherits(errorExError, Error);
|
|
620
|
-
return errorExError;
|
|
621
|
-
};
|
|
622
|
-
errorEx.append = function(str, def) {
|
|
623
|
-
return { message: function(v, message) {
|
|
624
|
-
v = v || def;
|
|
625
|
-
if (v) message[0] += " " + str.replace("%s", v.toString());
|
|
626
|
-
return message;
|
|
627
|
-
} };
|
|
628
|
-
};
|
|
629
|
-
errorEx.line = function(str, def) {
|
|
630
|
-
return { line: function(v) {
|
|
631
|
-
v = v || def;
|
|
632
|
-
if (v) return str.replace("%s", v.toString());
|
|
633
|
-
return null;
|
|
634
|
-
} };
|
|
635
|
-
};
|
|
636
|
-
module.exports = errorEx;
|
|
637
|
-
}));
|
|
638
|
-
//#endregion
|
|
639
|
-
//#region ../../node_modules/.pnpm/json-parse-even-better-errors@2.3.1/node_modules/json-parse-even-better-errors/index.js
|
|
640
|
-
var require_json_parse_even_better_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
641
|
-
const hexify = (char) => {
|
|
642
|
-
const h = char.charCodeAt(0).toString(16).toUpperCase();
|
|
643
|
-
return "0x" + (h.length % 2 ? "0" : "") + h;
|
|
644
|
-
};
|
|
645
|
-
const parseError = (e, txt, context) => {
|
|
646
|
-
if (!txt) return {
|
|
647
|
-
message: e.message + " while parsing empty string",
|
|
648
|
-
position: 0
|
|
649
|
-
};
|
|
650
|
-
const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);
|
|
651
|
-
const errIdx = badToken ? +badToken[2] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
|
|
652
|
-
const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${JSON.stringify(badToken[1])} (${hexify(badToken[1])})`) : e.message;
|
|
653
|
-
if (errIdx !== null && errIdx !== void 0) {
|
|
654
|
-
const start = errIdx <= context ? 0 : errIdx - context;
|
|
655
|
-
const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
|
|
656
|
-
const slice = (start === 0 ? "" : "...") + txt.slice(start, end) + (end === txt.length ? "" : "...");
|
|
657
|
-
return {
|
|
658
|
-
message: msg + ` while parsing ${txt === slice ? "" : "near "}${JSON.stringify(slice)}`,
|
|
659
|
-
position: errIdx
|
|
660
|
-
};
|
|
661
|
-
} else return {
|
|
662
|
-
message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
|
|
663
|
-
position: 0
|
|
664
|
-
};
|
|
665
|
-
};
|
|
666
|
-
var JSONParseError = class extends SyntaxError {
|
|
667
|
-
constructor(er, txt, context, caller) {
|
|
668
|
-
context = context || 20;
|
|
669
|
-
const metadata = parseError(er, txt, context);
|
|
670
|
-
super(metadata.message);
|
|
671
|
-
Object.assign(this, metadata);
|
|
672
|
-
this.code = "EJSONPARSE";
|
|
673
|
-
this.systemError = er;
|
|
674
|
-
Error.captureStackTrace(this, caller || this.constructor);
|
|
675
|
-
}
|
|
676
|
-
get name() {
|
|
677
|
-
return this.constructor.name;
|
|
678
|
-
}
|
|
679
|
-
set name(n) {}
|
|
680
|
-
get [Symbol.toStringTag]() {
|
|
681
|
-
return this.constructor.name;
|
|
682
|
-
}
|
|
683
|
-
};
|
|
684
|
-
const kIndent = Symbol.for("indent");
|
|
685
|
-
const kNewline = Symbol.for("newline");
|
|
686
|
-
const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;
|
|
687
|
-
const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
|
|
688
|
-
const parseJson = (txt, reviver, context) => {
|
|
689
|
-
const parseText = stripBOM(txt);
|
|
690
|
-
context = context || 20;
|
|
691
|
-
try {
|
|
692
|
-
const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [
|
|
693
|
-
,
|
|
694
|
-
"",
|
|
695
|
-
""
|
|
696
|
-
];
|
|
697
|
-
const result = JSON.parse(parseText, reviver);
|
|
698
|
-
if (result && typeof result === "object") {
|
|
699
|
-
result[kNewline] = newline;
|
|
700
|
-
result[kIndent] = indent;
|
|
701
|
-
}
|
|
702
|
-
return result;
|
|
703
|
-
} catch (e) {
|
|
704
|
-
if (typeof txt !== "string" && !Buffer.isBuffer(txt)) {
|
|
705
|
-
const isEmptyArray = Array.isArray(txt) && txt.length === 0;
|
|
706
|
-
throw Object.assign(/* @__PURE__ */ new TypeError(`Cannot parse ${isEmptyArray ? "an empty array" : String(txt)}`), {
|
|
707
|
-
code: "EJSONPARSE",
|
|
708
|
-
systemError: e
|
|
709
|
-
});
|
|
710
|
-
}
|
|
711
|
-
throw new JSONParseError(e, parseText, context, parseJson);
|
|
712
|
-
}
|
|
713
|
-
};
|
|
714
|
-
const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
|
|
715
|
-
module.exports = parseJson;
|
|
716
|
-
parseJson.JSONParseError = JSONParseError;
|
|
717
|
-
parseJson.noExceptions = (txt, reviver) => {
|
|
718
|
-
try {
|
|
719
|
-
return JSON.parse(stripBOM(txt), reviver);
|
|
720
|
-
} catch (e) {}
|
|
721
|
-
};
|
|
722
|
-
}));
|
|
723
|
-
//#endregion
|
|
724
|
-
//#region ../../node_modules/.pnpm/lines-and-columns@1.2.4/node_modules/lines-and-columns/build/index.js
|
|
725
|
-
var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
726
|
-
exports.__esModule = true;
|
|
727
|
-
exports.LinesAndColumns = void 0;
|
|
728
|
-
var LF = "\n";
|
|
729
|
-
var CR = "\r";
|
|
730
|
-
var LinesAndColumns = function() {
|
|
731
|
-
function LinesAndColumns(string) {
|
|
732
|
-
this.string = string;
|
|
733
|
-
var offsets = [0];
|
|
734
|
-
for (var offset = 0; offset < string.length;) switch (string[offset]) {
|
|
735
|
-
case LF:
|
|
736
|
-
offset += LF.length;
|
|
737
|
-
offsets.push(offset);
|
|
738
|
-
break;
|
|
739
|
-
case CR:
|
|
740
|
-
offset += CR.length;
|
|
741
|
-
if (string[offset] === LF) offset += LF.length;
|
|
742
|
-
offsets.push(offset);
|
|
743
|
-
break;
|
|
744
|
-
default:
|
|
745
|
-
offset++;
|
|
746
|
-
break;
|
|
747
|
-
}
|
|
748
|
-
this.offsets = offsets;
|
|
749
|
-
}
|
|
750
|
-
LinesAndColumns.prototype.locationForIndex = function(index) {
|
|
751
|
-
if (index < 0 || index > this.string.length) return null;
|
|
752
|
-
var line = 0;
|
|
753
|
-
var offsets = this.offsets;
|
|
754
|
-
while (offsets[line + 1] <= index) line++;
|
|
755
|
-
var column = index - offsets[line];
|
|
756
|
-
return {
|
|
757
|
-
line,
|
|
758
|
-
column
|
|
759
|
-
};
|
|
760
|
-
};
|
|
761
|
-
LinesAndColumns.prototype.indexForLocation = function(location) {
|
|
762
|
-
var line = location.line, column = location.column;
|
|
763
|
-
if (line < 0 || line >= this.offsets.length) return null;
|
|
764
|
-
if (column < 0 || column > this.lengthOfLine(line)) return null;
|
|
765
|
-
return this.offsets[line] + column;
|
|
766
|
-
};
|
|
767
|
-
LinesAndColumns.prototype.lengthOfLine = function(line) {
|
|
768
|
-
var offset = this.offsets[line];
|
|
769
|
-
return (line === this.offsets.length - 1 ? this.string.length : this.offsets[line + 1]) - offset;
|
|
770
|
-
};
|
|
771
|
-
return LinesAndColumns;
|
|
772
|
-
}();
|
|
773
|
-
exports.LinesAndColumns = LinesAndColumns;
|
|
774
|
-
exports["default"] = LinesAndColumns;
|
|
775
|
-
}));
|
|
776
|
-
//#endregion
|
|
777
|
-
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
778
|
-
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
779
|
-
let p = process || {};
|
|
780
|
-
let argv = p.argv || [];
|
|
781
|
-
let env = p.env || {};
|
|
782
|
-
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);
|
|
783
|
-
let formatter = (open, close, replace = open) => (input) => {
|
|
784
|
-
let string = "" + input, index = string.indexOf(close, open.length);
|
|
785
|
-
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
786
|
-
};
|
|
787
|
-
let replaceClose = (string, close, replace, index) => {
|
|
788
|
-
let result = "", cursor = 0;
|
|
789
|
-
do {
|
|
790
|
-
result += string.substring(cursor, index) + replace;
|
|
791
|
-
cursor = index + close.length;
|
|
792
|
-
index = string.indexOf(close, cursor);
|
|
793
|
-
} while (~index);
|
|
794
|
-
return result + string.substring(cursor);
|
|
795
|
-
};
|
|
796
|
-
let createColors = (enabled = isColorSupported) => {
|
|
797
|
-
let f = enabled ? formatter : () => String;
|
|
798
|
-
return {
|
|
799
|
-
isColorSupported: enabled,
|
|
800
|
-
reset: f("\x1B[0m", "\x1B[0m"),
|
|
801
|
-
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
802
|
-
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
803
|
-
italic: f("\x1B[3m", "\x1B[23m"),
|
|
804
|
-
underline: f("\x1B[4m", "\x1B[24m"),
|
|
805
|
-
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
806
|
-
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
807
|
-
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
808
|
-
black: f("\x1B[30m", "\x1B[39m"),
|
|
809
|
-
red: f("\x1B[31m", "\x1B[39m"),
|
|
810
|
-
green: f("\x1B[32m", "\x1B[39m"),
|
|
811
|
-
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
812
|
-
blue: f("\x1B[34m", "\x1B[39m"),
|
|
813
|
-
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
814
|
-
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
815
|
-
white: f("\x1B[37m", "\x1B[39m"),
|
|
816
|
-
gray: f("\x1B[90m", "\x1B[39m"),
|
|
817
|
-
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
818
|
-
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
819
|
-
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
820
|
-
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
821
|
-
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
822
|
-
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
823
|
-
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
824
|
-
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
825
|
-
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
826
|
-
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
827
|
-
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
828
|
-
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
829
|
-
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
830
|
-
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
831
|
-
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
832
|
-
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
833
|
-
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
834
|
-
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
835
|
-
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
836
|
-
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
837
|
-
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
838
|
-
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
839
|
-
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
840
|
-
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
841
|
-
};
|
|
842
|
-
};
|
|
843
|
-
module.exports = createColors();
|
|
844
|
-
module.exports.createColors = createColors;
|
|
845
|
-
}));
|
|
846
|
-
//#endregion
|
|
847
|
-
//#region ../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js
|
|
848
|
-
var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
849
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
850
|
-
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;
|
|
851
|
-
exports.matchToToken = function(match) {
|
|
852
|
-
var token = {
|
|
853
|
-
type: "invalid",
|
|
854
|
-
value: match[0],
|
|
855
|
-
closed: void 0
|
|
856
|
-
};
|
|
857
|
-
if (match[1]) token.type = "string", token.closed = !!(match[3] || match[4]);
|
|
858
|
-
else if (match[5]) token.type = "comment";
|
|
859
|
-
else if (match[6]) token.type = "comment", token.closed = !!match[7];
|
|
860
|
-
else if (match[8]) token.type = "regex";
|
|
861
|
-
else if (match[9]) token.type = "number";
|
|
862
|
-
else if (match[10]) token.type = "name";
|
|
863
|
-
else if (match[11]) token.type = "punctuator";
|
|
864
|
-
else if (match[12]) token.type = "whitespace";
|
|
865
|
-
return token;
|
|
866
|
-
};
|
|
867
|
-
}));
|
|
868
|
-
//#endregion
|
|
869
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
|
|
870
|
-
var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
871
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
872
|
-
exports.isIdentifierChar = isIdentifierChar;
|
|
873
|
-
exports.isIdentifierName = isIdentifierName;
|
|
874
|
-
exports.isIdentifierStart = isIdentifierStart;
|
|
875
|
-
let nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
|
|
876
|
-
let nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
|
|
877
|
-
const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
878
|
-
const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
879
|
-
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
880
|
-
const astralIdentifierStartCodes = [
|
|
881
|
-
0,
|
|
882
|
-
11,
|
|
883
|
-
2,
|
|
884
|
-
25,
|
|
885
|
-
2,
|
|
886
|
-
18,
|
|
887
|
-
2,
|
|
888
|
-
1,
|
|
889
|
-
2,
|
|
890
|
-
14,
|
|
891
|
-
3,
|
|
892
|
-
13,
|
|
893
|
-
35,
|
|
894
|
-
122,
|
|
895
|
-
70,
|
|
896
|
-
52,
|
|
897
|
-
268,
|
|
898
|
-
28,
|
|
899
|
-
4,
|
|
900
|
-
48,
|
|
901
|
-
48,
|
|
902
|
-
31,
|
|
903
|
-
14,
|
|
904
|
-
29,
|
|
905
|
-
6,
|
|
906
|
-
37,
|
|
907
|
-
11,
|
|
908
|
-
29,
|
|
909
|
-
3,
|
|
910
|
-
35,
|
|
911
|
-
5,
|
|
912
|
-
7,
|
|
913
|
-
2,
|
|
914
|
-
4,
|
|
915
|
-
43,
|
|
916
|
-
157,
|
|
917
|
-
19,
|
|
918
|
-
35,
|
|
919
|
-
5,
|
|
920
|
-
35,
|
|
921
|
-
5,
|
|
922
|
-
39,
|
|
923
|
-
9,
|
|
924
|
-
51,
|
|
925
|
-
13,
|
|
926
|
-
10,
|
|
927
|
-
2,
|
|
928
|
-
14,
|
|
929
|
-
2,
|
|
930
|
-
6,
|
|
931
|
-
2,
|
|
932
|
-
1,
|
|
933
|
-
2,
|
|
934
|
-
10,
|
|
935
|
-
2,
|
|
936
|
-
14,
|
|
937
|
-
2,
|
|
938
|
-
6,
|
|
939
|
-
2,
|
|
940
|
-
1,
|
|
941
|
-
4,
|
|
942
|
-
51,
|
|
943
|
-
13,
|
|
944
|
-
310,
|
|
945
|
-
10,
|
|
946
|
-
21,
|
|
947
|
-
11,
|
|
948
|
-
7,
|
|
949
|
-
25,
|
|
950
|
-
5,
|
|
951
|
-
2,
|
|
952
|
-
41,
|
|
953
|
-
2,
|
|
954
|
-
8,
|
|
955
|
-
70,
|
|
956
|
-
5,
|
|
957
|
-
3,
|
|
958
|
-
0,
|
|
959
|
-
2,
|
|
960
|
-
43,
|
|
961
|
-
2,
|
|
962
|
-
1,
|
|
963
|
-
4,
|
|
964
|
-
0,
|
|
965
|
-
3,
|
|
966
|
-
22,
|
|
967
|
-
11,
|
|
968
|
-
22,
|
|
969
|
-
10,
|
|
970
|
-
30,
|
|
971
|
-
66,
|
|
972
|
-
18,
|
|
973
|
-
2,
|
|
974
|
-
1,
|
|
975
|
-
11,
|
|
976
|
-
21,
|
|
977
|
-
11,
|
|
978
|
-
25,
|
|
979
|
-
7,
|
|
980
|
-
25,
|
|
981
|
-
39,
|
|
982
|
-
55,
|
|
983
|
-
7,
|
|
984
|
-
1,
|
|
985
|
-
65,
|
|
986
|
-
0,
|
|
987
|
-
16,
|
|
988
|
-
3,
|
|
989
|
-
2,
|
|
990
|
-
2,
|
|
991
|
-
2,
|
|
992
|
-
28,
|
|
993
|
-
43,
|
|
994
|
-
28,
|
|
995
|
-
4,
|
|
996
|
-
28,
|
|
997
|
-
36,
|
|
998
|
-
7,
|
|
999
|
-
2,
|
|
1000
|
-
27,
|
|
1001
|
-
28,
|
|
1002
|
-
53,
|
|
1003
|
-
11,
|
|
1004
|
-
21,
|
|
1005
|
-
11,
|
|
1006
|
-
18,
|
|
1007
|
-
14,
|
|
1008
|
-
17,
|
|
1009
|
-
111,
|
|
1010
|
-
72,
|
|
1011
|
-
56,
|
|
1012
|
-
50,
|
|
1013
|
-
14,
|
|
1014
|
-
50,
|
|
1015
|
-
14,
|
|
1016
|
-
35,
|
|
1017
|
-
39,
|
|
1018
|
-
27,
|
|
1019
|
-
10,
|
|
1020
|
-
22,
|
|
1021
|
-
251,
|
|
1022
|
-
41,
|
|
1023
|
-
7,
|
|
1024
|
-
1,
|
|
1025
|
-
17,
|
|
1026
|
-
5,
|
|
1027
|
-
57,
|
|
1028
|
-
28,
|
|
1029
|
-
11,
|
|
1030
|
-
0,
|
|
1031
|
-
9,
|
|
1032
|
-
21,
|
|
1033
|
-
43,
|
|
1034
|
-
17,
|
|
1035
|
-
47,
|
|
1036
|
-
20,
|
|
1037
|
-
28,
|
|
1038
|
-
22,
|
|
1039
|
-
13,
|
|
1040
|
-
52,
|
|
1041
|
-
58,
|
|
1042
|
-
1,
|
|
1043
|
-
3,
|
|
1044
|
-
0,
|
|
1045
|
-
14,
|
|
1046
|
-
44,
|
|
1047
|
-
33,
|
|
1048
|
-
24,
|
|
1049
|
-
27,
|
|
1050
|
-
35,
|
|
1051
|
-
30,
|
|
1052
|
-
0,
|
|
1053
|
-
3,
|
|
1054
|
-
0,
|
|
1055
|
-
9,
|
|
1056
|
-
34,
|
|
1057
|
-
4,
|
|
1058
|
-
0,
|
|
1059
|
-
13,
|
|
1060
|
-
47,
|
|
1061
|
-
15,
|
|
1062
|
-
3,
|
|
1063
|
-
22,
|
|
1064
|
-
0,
|
|
1065
|
-
2,
|
|
1066
|
-
0,
|
|
1067
|
-
36,
|
|
1068
|
-
17,
|
|
1069
|
-
2,
|
|
1070
|
-
24,
|
|
1071
|
-
20,
|
|
1072
|
-
1,
|
|
1073
|
-
64,
|
|
1074
|
-
6,
|
|
1075
|
-
2,
|
|
1076
|
-
0,
|
|
1077
|
-
2,
|
|
1078
|
-
3,
|
|
1079
|
-
2,
|
|
1080
|
-
14,
|
|
1081
|
-
2,
|
|
1082
|
-
9,
|
|
1083
|
-
8,
|
|
1084
|
-
46,
|
|
1085
|
-
39,
|
|
1086
|
-
7,
|
|
1087
|
-
3,
|
|
1088
|
-
1,
|
|
1089
|
-
3,
|
|
1090
|
-
21,
|
|
1091
|
-
2,
|
|
1092
|
-
6,
|
|
1093
|
-
2,
|
|
1094
|
-
1,
|
|
1095
|
-
2,
|
|
1096
|
-
4,
|
|
1097
|
-
4,
|
|
1098
|
-
0,
|
|
1099
|
-
19,
|
|
1100
|
-
0,
|
|
1101
|
-
13,
|
|
1102
|
-
4,
|
|
1103
|
-
31,
|
|
1104
|
-
9,
|
|
1105
|
-
2,
|
|
1106
|
-
0,
|
|
1107
|
-
3,
|
|
1108
|
-
0,
|
|
1109
|
-
2,
|
|
1110
|
-
37,
|
|
1111
|
-
2,
|
|
1112
|
-
0,
|
|
1113
|
-
26,
|
|
1114
|
-
0,
|
|
1115
|
-
2,
|
|
1116
|
-
0,
|
|
1117
|
-
45,
|
|
1118
|
-
52,
|
|
1119
|
-
19,
|
|
1120
|
-
3,
|
|
1121
|
-
21,
|
|
1122
|
-
2,
|
|
1123
|
-
31,
|
|
1124
|
-
47,
|
|
1125
|
-
21,
|
|
1126
|
-
1,
|
|
1127
|
-
2,
|
|
1128
|
-
0,
|
|
1129
|
-
185,
|
|
1130
|
-
46,
|
|
1131
|
-
42,
|
|
1132
|
-
3,
|
|
1133
|
-
37,
|
|
1134
|
-
47,
|
|
1135
|
-
21,
|
|
1136
|
-
0,
|
|
1137
|
-
60,
|
|
1138
|
-
42,
|
|
1139
|
-
14,
|
|
1140
|
-
0,
|
|
1141
|
-
72,
|
|
1142
|
-
26,
|
|
1143
|
-
38,
|
|
1144
|
-
6,
|
|
1145
|
-
186,
|
|
1146
|
-
43,
|
|
1147
|
-
117,
|
|
1148
|
-
63,
|
|
1149
|
-
32,
|
|
1150
|
-
7,
|
|
1151
|
-
3,
|
|
1152
|
-
0,
|
|
1153
|
-
3,
|
|
1154
|
-
7,
|
|
1155
|
-
2,
|
|
1156
|
-
1,
|
|
1157
|
-
2,
|
|
1158
|
-
23,
|
|
1159
|
-
16,
|
|
1160
|
-
0,
|
|
1161
|
-
2,
|
|
1162
|
-
0,
|
|
1163
|
-
95,
|
|
1164
|
-
7,
|
|
1165
|
-
3,
|
|
1166
|
-
38,
|
|
1167
|
-
17,
|
|
1168
|
-
0,
|
|
1169
|
-
2,
|
|
1170
|
-
0,
|
|
1171
|
-
29,
|
|
1172
|
-
0,
|
|
1173
|
-
11,
|
|
1174
|
-
39,
|
|
1175
|
-
8,
|
|
1176
|
-
0,
|
|
1177
|
-
22,
|
|
1178
|
-
0,
|
|
1179
|
-
12,
|
|
1180
|
-
45,
|
|
1181
|
-
20,
|
|
1182
|
-
0,
|
|
1183
|
-
19,
|
|
1184
|
-
72,
|
|
1185
|
-
200,
|
|
1186
|
-
32,
|
|
1187
|
-
32,
|
|
1188
|
-
8,
|
|
1189
|
-
2,
|
|
1190
|
-
36,
|
|
1191
|
-
18,
|
|
1192
|
-
0,
|
|
1193
|
-
50,
|
|
1194
|
-
29,
|
|
1195
|
-
113,
|
|
1196
|
-
6,
|
|
1197
|
-
2,
|
|
1198
|
-
1,
|
|
1199
|
-
2,
|
|
1200
|
-
37,
|
|
1201
|
-
22,
|
|
1202
|
-
0,
|
|
1203
|
-
26,
|
|
1204
|
-
5,
|
|
1205
|
-
2,
|
|
1206
|
-
1,
|
|
1207
|
-
2,
|
|
1208
|
-
31,
|
|
1209
|
-
15,
|
|
1210
|
-
0,
|
|
1211
|
-
24,
|
|
1212
|
-
43,
|
|
1213
|
-
261,
|
|
1214
|
-
18,
|
|
1215
|
-
16,
|
|
1216
|
-
0,
|
|
1217
|
-
2,
|
|
1218
|
-
12,
|
|
1219
|
-
2,
|
|
1220
|
-
33,
|
|
1221
|
-
125,
|
|
1222
|
-
0,
|
|
1223
|
-
80,
|
|
1224
|
-
921,
|
|
1225
|
-
103,
|
|
1226
|
-
110,
|
|
1227
|
-
18,
|
|
1228
|
-
195,
|
|
1229
|
-
2637,
|
|
1230
|
-
96,
|
|
1231
|
-
16,
|
|
1232
|
-
1071,
|
|
1233
|
-
18,
|
|
1234
|
-
5,
|
|
1235
|
-
26,
|
|
1236
|
-
3994,
|
|
1237
|
-
6,
|
|
1238
|
-
582,
|
|
1239
|
-
6842,
|
|
1240
|
-
29,
|
|
1241
|
-
1763,
|
|
1242
|
-
568,
|
|
1243
|
-
8,
|
|
1244
|
-
30,
|
|
1245
|
-
18,
|
|
1246
|
-
78,
|
|
1247
|
-
18,
|
|
1248
|
-
29,
|
|
1249
|
-
19,
|
|
1250
|
-
47,
|
|
1251
|
-
17,
|
|
1252
|
-
3,
|
|
1253
|
-
32,
|
|
1254
|
-
20,
|
|
1255
|
-
6,
|
|
1256
|
-
18,
|
|
1257
|
-
433,
|
|
1258
|
-
44,
|
|
1259
|
-
212,
|
|
1260
|
-
63,
|
|
1261
|
-
33,
|
|
1262
|
-
24,
|
|
1263
|
-
3,
|
|
1264
|
-
24,
|
|
1265
|
-
45,
|
|
1266
|
-
74,
|
|
1267
|
-
6,
|
|
1268
|
-
0,
|
|
1269
|
-
67,
|
|
1270
|
-
12,
|
|
1271
|
-
65,
|
|
1272
|
-
1,
|
|
1273
|
-
2,
|
|
1274
|
-
0,
|
|
1275
|
-
15,
|
|
1276
|
-
4,
|
|
1277
|
-
10,
|
|
1278
|
-
7381,
|
|
1279
|
-
42,
|
|
1280
|
-
31,
|
|
1281
|
-
98,
|
|
1282
|
-
114,
|
|
1283
|
-
8702,
|
|
1284
|
-
3,
|
|
1285
|
-
2,
|
|
1286
|
-
6,
|
|
1287
|
-
2,
|
|
1288
|
-
1,
|
|
1289
|
-
2,
|
|
1290
|
-
290,
|
|
1291
|
-
16,
|
|
1292
|
-
0,
|
|
1293
|
-
30,
|
|
1294
|
-
2,
|
|
1295
|
-
3,
|
|
1296
|
-
0,
|
|
1297
|
-
15,
|
|
1298
|
-
3,
|
|
1299
|
-
9,
|
|
1300
|
-
395,
|
|
1301
|
-
2309,
|
|
1302
|
-
106,
|
|
1303
|
-
6,
|
|
1304
|
-
12,
|
|
1305
|
-
4,
|
|
1306
|
-
8,
|
|
1307
|
-
8,
|
|
1308
|
-
9,
|
|
1309
|
-
5991,
|
|
1310
|
-
84,
|
|
1311
|
-
2,
|
|
1312
|
-
70,
|
|
1313
|
-
2,
|
|
1314
|
-
1,
|
|
1315
|
-
3,
|
|
1316
|
-
0,
|
|
1317
|
-
3,
|
|
1318
|
-
1,
|
|
1319
|
-
3,
|
|
1320
|
-
3,
|
|
1321
|
-
2,
|
|
1322
|
-
11,
|
|
1323
|
-
2,
|
|
1324
|
-
0,
|
|
1325
|
-
2,
|
|
1326
|
-
6,
|
|
1327
|
-
2,
|
|
1328
|
-
64,
|
|
1329
|
-
2,
|
|
1330
|
-
3,
|
|
1331
|
-
3,
|
|
1332
|
-
7,
|
|
1333
|
-
2,
|
|
1334
|
-
6,
|
|
1335
|
-
2,
|
|
1336
|
-
27,
|
|
1337
|
-
2,
|
|
1338
|
-
3,
|
|
1339
|
-
2,
|
|
1340
|
-
4,
|
|
1341
|
-
2,
|
|
1342
|
-
0,
|
|
1343
|
-
4,
|
|
1344
|
-
6,
|
|
1345
|
-
2,
|
|
1346
|
-
339,
|
|
1347
|
-
3,
|
|
1348
|
-
24,
|
|
1349
|
-
2,
|
|
1350
|
-
24,
|
|
1351
|
-
2,
|
|
1352
|
-
30,
|
|
1353
|
-
2,
|
|
1354
|
-
24,
|
|
1355
|
-
2,
|
|
1356
|
-
30,
|
|
1357
|
-
2,
|
|
1358
|
-
24,
|
|
1359
|
-
2,
|
|
1360
|
-
30,
|
|
1361
|
-
2,
|
|
1362
|
-
24,
|
|
1363
|
-
2,
|
|
1364
|
-
30,
|
|
1365
|
-
2,
|
|
1366
|
-
24,
|
|
1367
|
-
2,
|
|
1368
|
-
7,
|
|
1369
|
-
1845,
|
|
1370
|
-
30,
|
|
1371
|
-
7,
|
|
1372
|
-
5,
|
|
1373
|
-
262,
|
|
1374
|
-
61,
|
|
1375
|
-
147,
|
|
1376
|
-
44,
|
|
1377
|
-
11,
|
|
1378
|
-
6,
|
|
1379
|
-
17,
|
|
1380
|
-
0,
|
|
1381
|
-
322,
|
|
1382
|
-
29,
|
|
1383
|
-
19,
|
|
1384
|
-
43,
|
|
1385
|
-
485,
|
|
1386
|
-
27,
|
|
1387
|
-
229,
|
|
1388
|
-
29,
|
|
1389
|
-
3,
|
|
1390
|
-
0,
|
|
1391
|
-
208,
|
|
1392
|
-
30,
|
|
1393
|
-
2,
|
|
1394
|
-
2,
|
|
1395
|
-
2,
|
|
1396
|
-
1,
|
|
1397
|
-
2,
|
|
1398
|
-
6,
|
|
1399
|
-
3,
|
|
1400
|
-
4,
|
|
1401
|
-
10,
|
|
1402
|
-
1,
|
|
1403
|
-
225,
|
|
1404
|
-
6,
|
|
1405
|
-
2,
|
|
1406
|
-
3,
|
|
1407
|
-
2,
|
|
1408
|
-
1,
|
|
1409
|
-
2,
|
|
1410
|
-
14,
|
|
1411
|
-
2,
|
|
1412
|
-
196,
|
|
1413
|
-
60,
|
|
1414
|
-
67,
|
|
1415
|
-
8,
|
|
1416
|
-
0,
|
|
1417
|
-
1205,
|
|
1418
|
-
3,
|
|
1419
|
-
2,
|
|
1420
|
-
26,
|
|
1421
|
-
2,
|
|
1422
|
-
1,
|
|
1423
|
-
2,
|
|
1424
|
-
0,
|
|
1425
|
-
3,
|
|
1426
|
-
0,
|
|
1427
|
-
2,
|
|
1428
|
-
9,
|
|
1429
|
-
2,
|
|
1430
|
-
3,
|
|
1431
|
-
2,
|
|
1432
|
-
0,
|
|
1433
|
-
2,
|
|
1434
|
-
0,
|
|
1435
|
-
7,
|
|
1436
|
-
0,
|
|
1437
|
-
5,
|
|
1438
|
-
0,
|
|
1439
|
-
2,
|
|
1440
|
-
0,
|
|
1441
|
-
2,
|
|
1442
|
-
0,
|
|
1443
|
-
2,
|
|
1444
|
-
2,
|
|
1445
|
-
2,
|
|
1446
|
-
1,
|
|
1447
|
-
2,
|
|
1448
|
-
0,
|
|
1449
|
-
3,
|
|
1450
|
-
0,
|
|
1451
|
-
2,
|
|
1452
|
-
0,
|
|
1453
|
-
2,
|
|
1454
|
-
0,
|
|
1455
|
-
2,
|
|
1456
|
-
0,
|
|
1457
|
-
2,
|
|
1458
|
-
0,
|
|
1459
|
-
2,
|
|
1460
|
-
1,
|
|
1461
|
-
2,
|
|
1462
|
-
0,
|
|
1463
|
-
3,
|
|
1464
|
-
3,
|
|
1465
|
-
2,
|
|
1466
|
-
6,
|
|
1467
|
-
2,
|
|
1468
|
-
3,
|
|
1469
|
-
2,
|
|
1470
|
-
3,
|
|
1471
|
-
2,
|
|
1472
|
-
0,
|
|
1473
|
-
2,
|
|
1474
|
-
9,
|
|
1475
|
-
2,
|
|
1476
|
-
16,
|
|
1477
|
-
6,
|
|
1478
|
-
2,
|
|
1479
|
-
2,
|
|
1480
|
-
4,
|
|
1481
|
-
2,
|
|
1482
|
-
16,
|
|
1483
|
-
4421,
|
|
1484
|
-
42719,
|
|
1485
|
-
33,
|
|
1486
|
-
4381,
|
|
1487
|
-
3,
|
|
1488
|
-
5773,
|
|
1489
|
-
3,
|
|
1490
|
-
7472,
|
|
1491
|
-
16,
|
|
1492
|
-
621,
|
|
1493
|
-
2467,
|
|
1494
|
-
541,
|
|
1495
|
-
1507,
|
|
1496
|
-
4938,
|
|
1497
|
-
6,
|
|
1498
|
-
8489
|
|
1499
|
-
];
|
|
1500
|
-
const astralIdentifierCodes = [
|
|
1501
|
-
509,
|
|
1502
|
-
0,
|
|
1503
|
-
227,
|
|
1504
|
-
0,
|
|
1505
|
-
150,
|
|
1506
|
-
4,
|
|
1507
|
-
294,
|
|
1508
|
-
9,
|
|
1509
|
-
1368,
|
|
1510
|
-
2,
|
|
1511
|
-
2,
|
|
1512
|
-
1,
|
|
1513
|
-
6,
|
|
1514
|
-
3,
|
|
1515
|
-
41,
|
|
1516
|
-
2,
|
|
1517
|
-
5,
|
|
1518
|
-
0,
|
|
1519
|
-
166,
|
|
1520
|
-
1,
|
|
1521
|
-
574,
|
|
1522
|
-
3,
|
|
1523
|
-
9,
|
|
1524
|
-
9,
|
|
1525
|
-
7,
|
|
1526
|
-
9,
|
|
1527
|
-
32,
|
|
1528
|
-
4,
|
|
1529
|
-
318,
|
|
1530
|
-
1,
|
|
1531
|
-
78,
|
|
1532
|
-
5,
|
|
1533
|
-
71,
|
|
1534
|
-
10,
|
|
1535
|
-
50,
|
|
1536
|
-
3,
|
|
1537
|
-
123,
|
|
1538
|
-
2,
|
|
1539
|
-
54,
|
|
1540
|
-
14,
|
|
1541
|
-
32,
|
|
1542
|
-
10,
|
|
1543
|
-
3,
|
|
1544
|
-
1,
|
|
1545
|
-
11,
|
|
1546
|
-
3,
|
|
1547
|
-
46,
|
|
1548
|
-
10,
|
|
1549
|
-
8,
|
|
1550
|
-
0,
|
|
1551
|
-
46,
|
|
1552
|
-
9,
|
|
1553
|
-
7,
|
|
1554
|
-
2,
|
|
1555
|
-
37,
|
|
1556
|
-
13,
|
|
1557
|
-
2,
|
|
1558
|
-
9,
|
|
1559
|
-
6,
|
|
1560
|
-
1,
|
|
1561
|
-
45,
|
|
1562
|
-
0,
|
|
1563
|
-
13,
|
|
1564
|
-
2,
|
|
1565
|
-
49,
|
|
1566
|
-
13,
|
|
1567
|
-
9,
|
|
1568
|
-
3,
|
|
1569
|
-
2,
|
|
1570
|
-
11,
|
|
1571
|
-
83,
|
|
1572
|
-
11,
|
|
1573
|
-
7,
|
|
1574
|
-
0,
|
|
1575
|
-
3,
|
|
1576
|
-
0,
|
|
1577
|
-
158,
|
|
1578
|
-
11,
|
|
1579
|
-
6,
|
|
1580
|
-
9,
|
|
1581
|
-
7,
|
|
1582
|
-
3,
|
|
1583
|
-
56,
|
|
1584
|
-
1,
|
|
1585
|
-
2,
|
|
1586
|
-
6,
|
|
1587
|
-
3,
|
|
1588
|
-
1,
|
|
1589
|
-
3,
|
|
1590
|
-
2,
|
|
1591
|
-
10,
|
|
1592
|
-
0,
|
|
1593
|
-
11,
|
|
1594
|
-
1,
|
|
1595
|
-
3,
|
|
1596
|
-
6,
|
|
1597
|
-
4,
|
|
1598
|
-
4,
|
|
1599
|
-
68,
|
|
1600
|
-
8,
|
|
1601
|
-
2,
|
|
1602
|
-
0,
|
|
1603
|
-
3,
|
|
1604
|
-
0,
|
|
1605
|
-
2,
|
|
1606
|
-
3,
|
|
1607
|
-
2,
|
|
1608
|
-
4,
|
|
1609
|
-
2,
|
|
1610
|
-
0,
|
|
1611
|
-
15,
|
|
1612
|
-
1,
|
|
1613
|
-
83,
|
|
1614
|
-
17,
|
|
1615
|
-
10,
|
|
1616
|
-
9,
|
|
1617
|
-
5,
|
|
1618
|
-
0,
|
|
1619
|
-
82,
|
|
1620
|
-
19,
|
|
1621
|
-
13,
|
|
1622
|
-
9,
|
|
1623
|
-
214,
|
|
1624
|
-
6,
|
|
1625
|
-
3,
|
|
1626
|
-
8,
|
|
1627
|
-
28,
|
|
1628
|
-
1,
|
|
1629
|
-
83,
|
|
1630
|
-
16,
|
|
1631
|
-
16,
|
|
1632
|
-
9,
|
|
1633
|
-
82,
|
|
1634
|
-
12,
|
|
1635
|
-
9,
|
|
1636
|
-
9,
|
|
1637
|
-
7,
|
|
1638
|
-
19,
|
|
1639
|
-
58,
|
|
1640
|
-
14,
|
|
1641
|
-
5,
|
|
1642
|
-
9,
|
|
1643
|
-
243,
|
|
1644
|
-
14,
|
|
1645
|
-
166,
|
|
1646
|
-
9,
|
|
1647
|
-
71,
|
|
1648
|
-
5,
|
|
1649
|
-
2,
|
|
1650
|
-
1,
|
|
1651
|
-
3,
|
|
1652
|
-
3,
|
|
1653
|
-
2,
|
|
1654
|
-
0,
|
|
1655
|
-
2,
|
|
1656
|
-
1,
|
|
1657
|
-
13,
|
|
1658
|
-
9,
|
|
1659
|
-
120,
|
|
1660
|
-
6,
|
|
1661
|
-
3,
|
|
1662
|
-
6,
|
|
1663
|
-
4,
|
|
1664
|
-
0,
|
|
1665
|
-
29,
|
|
1666
|
-
9,
|
|
1667
|
-
41,
|
|
1668
|
-
6,
|
|
1669
|
-
2,
|
|
1670
|
-
3,
|
|
1671
|
-
9,
|
|
1672
|
-
0,
|
|
1673
|
-
10,
|
|
1674
|
-
10,
|
|
1675
|
-
47,
|
|
1676
|
-
15,
|
|
1677
|
-
199,
|
|
1678
|
-
7,
|
|
1679
|
-
137,
|
|
1680
|
-
9,
|
|
1681
|
-
54,
|
|
1682
|
-
7,
|
|
1683
|
-
2,
|
|
1684
|
-
7,
|
|
1685
|
-
17,
|
|
1686
|
-
9,
|
|
1687
|
-
57,
|
|
1688
|
-
21,
|
|
1689
|
-
2,
|
|
1690
|
-
13,
|
|
1691
|
-
123,
|
|
1692
|
-
5,
|
|
1693
|
-
4,
|
|
1694
|
-
0,
|
|
1695
|
-
2,
|
|
1696
|
-
1,
|
|
1697
|
-
2,
|
|
1698
|
-
6,
|
|
1699
|
-
2,
|
|
1700
|
-
0,
|
|
1701
|
-
9,
|
|
1702
|
-
9,
|
|
1703
|
-
49,
|
|
1704
|
-
4,
|
|
1705
|
-
2,
|
|
1706
|
-
1,
|
|
1707
|
-
2,
|
|
1708
|
-
4,
|
|
1709
|
-
9,
|
|
1710
|
-
9,
|
|
1711
|
-
55,
|
|
1712
|
-
9,
|
|
1713
|
-
266,
|
|
1714
|
-
3,
|
|
1715
|
-
10,
|
|
1716
|
-
1,
|
|
1717
|
-
2,
|
|
1718
|
-
0,
|
|
1719
|
-
49,
|
|
1720
|
-
6,
|
|
1721
|
-
4,
|
|
1722
|
-
4,
|
|
1723
|
-
14,
|
|
1724
|
-
10,
|
|
1725
|
-
5350,
|
|
1726
|
-
0,
|
|
1727
|
-
7,
|
|
1728
|
-
14,
|
|
1729
|
-
11465,
|
|
1730
|
-
27,
|
|
1731
|
-
2343,
|
|
1732
|
-
9,
|
|
1733
|
-
87,
|
|
1734
|
-
9,
|
|
1735
|
-
39,
|
|
1736
|
-
4,
|
|
1737
|
-
60,
|
|
1738
|
-
6,
|
|
1739
|
-
26,
|
|
1740
|
-
9,
|
|
1741
|
-
535,
|
|
1742
|
-
9,
|
|
1743
|
-
470,
|
|
1744
|
-
0,
|
|
1745
|
-
2,
|
|
1746
|
-
54,
|
|
1747
|
-
8,
|
|
1748
|
-
3,
|
|
1749
|
-
82,
|
|
1750
|
-
0,
|
|
1751
|
-
12,
|
|
1752
|
-
1,
|
|
1753
|
-
19628,
|
|
1754
|
-
1,
|
|
1755
|
-
4178,
|
|
1756
|
-
9,
|
|
1757
|
-
519,
|
|
1758
|
-
45,
|
|
1759
|
-
3,
|
|
1760
|
-
22,
|
|
1761
|
-
543,
|
|
1762
|
-
4,
|
|
1763
|
-
4,
|
|
1764
|
-
5,
|
|
1765
|
-
9,
|
|
1766
|
-
7,
|
|
1767
|
-
3,
|
|
1768
|
-
6,
|
|
1769
|
-
31,
|
|
1770
|
-
3,
|
|
1771
|
-
149,
|
|
1772
|
-
2,
|
|
1773
|
-
1418,
|
|
1774
|
-
49,
|
|
1775
|
-
513,
|
|
1776
|
-
54,
|
|
1777
|
-
5,
|
|
1778
|
-
49,
|
|
1779
|
-
9,
|
|
1780
|
-
0,
|
|
1781
|
-
15,
|
|
1782
|
-
0,
|
|
1783
|
-
23,
|
|
1784
|
-
4,
|
|
1785
|
-
2,
|
|
1786
|
-
14,
|
|
1787
|
-
1361,
|
|
1788
|
-
6,
|
|
1789
|
-
2,
|
|
1790
|
-
16,
|
|
1791
|
-
3,
|
|
1792
|
-
6,
|
|
1793
|
-
2,
|
|
1794
|
-
1,
|
|
1795
|
-
2,
|
|
1796
|
-
4,
|
|
1797
|
-
101,
|
|
1798
|
-
0,
|
|
1799
|
-
161,
|
|
1800
|
-
6,
|
|
1801
|
-
10,
|
|
1802
|
-
9,
|
|
1803
|
-
357,
|
|
1804
|
-
0,
|
|
1805
|
-
62,
|
|
1806
|
-
13,
|
|
1807
|
-
499,
|
|
1808
|
-
13,
|
|
1809
|
-
245,
|
|
1810
|
-
1,
|
|
1811
|
-
2,
|
|
1812
|
-
9,
|
|
1813
|
-
233,
|
|
1814
|
-
0,
|
|
1815
|
-
3,
|
|
1816
|
-
0,
|
|
1817
|
-
8,
|
|
1818
|
-
1,
|
|
1819
|
-
6,
|
|
1820
|
-
0,
|
|
1821
|
-
475,
|
|
1822
|
-
6,
|
|
1823
|
-
110,
|
|
1824
|
-
6,
|
|
1825
|
-
6,
|
|
1826
|
-
9,
|
|
1827
|
-
4759,
|
|
1828
|
-
9,
|
|
1829
|
-
787719,
|
|
1830
|
-
239
|
|
1831
|
-
];
|
|
1832
|
-
function isInAstralSet(code, set) {
|
|
1833
|
-
let pos = 65536;
|
|
1834
|
-
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
1835
|
-
pos += set[i];
|
|
1836
|
-
if (pos > code) return false;
|
|
1837
|
-
pos += set[i + 1];
|
|
1838
|
-
if (pos >= code) return true;
|
|
1839
|
-
}
|
|
1840
|
-
return false;
|
|
1841
|
-
}
|
|
1842
|
-
function isIdentifierStart(code) {
|
|
1843
|
-
if (code < 65) return code === 36;
|
|
1844
|
-
if (code <= 90) return true;
|
|
1845
|
-
if (code < 97) return code === 95;
|
|
1846
|
-
if (code <= 122) return true;
|
|
1847
|
-
if (code <= 65535) return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
|
|
1848
|
-
return isInAstralSet(code, astralIdentifierStartCodes);
|
|
1849
|
-
}
|
|
1850
|
-
function isIdentifierChar(code) {
|
|
1851
|
-
if (code < 48) return code === 36;
|
|
1852
|
-
if (code < 58) return true;
|
|
1853
|
-
if (code < 65) return false;
|
|
1854
|
-
if (code <= 90) return true;
|
|
1855
|
-
if (code < 97) return code === 95;
|
|
1856
|
-
if (code <= 122) return true;
|
|
1857
|
-
if (code <= 65535) return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
|
|
1858
|
-
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
1859
|
-
}
|
|
1860
|
-
function isIdentifierName(name) {
|
|
1861
|
-
let isFirst = true;
|
|
1862
|
-
for (let i = 0; i < name.length; i++) {
|
|
1863
|
-
let cp = name.charCodeAt(i);
|
|
1864
|
-
if ((cp & 64512) === 55296 && i + 1 < name.length) {
|
|
1865
|
-
const trail = name.charCodeAt(++i);
|
|
1866
|
-
if ((trail & 64512) === 56320) cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
|
|
1867
|
-
}
|
|
1868
|
-
if (isFirst) {
|
|
1869
|
-
isFirst = false;
|
|
1870
|
-
if (!isIdentifierStart(cp)) return false;
|
|
1871
|
-
} else if (!isIdentifierChar(cp)) return false;
|
|
1872
|
-
}
|
|
1873
|
-
return !isFirst;
|
|
1874
|
-
}
|
|
1875
|
-
}));
|
|
1876
|
-
//#endregion
|
|
1877
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
|
|
1878
|
-
var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1879
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1880
|
-
exports.isKeyword = isKeyword;
|
|
1881
|
-
exports.isReservedWord = isReservedWord;
|
|
1882
|
-
exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
|
|
1883
|
-
exports.isStrictBindReservedWord = isStrictBindReservedWord;
|
|
1884
|
-
exports.isStrictReservedWord = isStrictReservedWord;
|
|
1885
|
-
const reservedWords = {
|
|
1886
|
-
keyword: [
|
|
1887
|
-
"break",
|
|
1888
|
-
"case",
|
|
1889
|
-
"catch",
|
|
1890
|
-
"continue",
|
|
1891
|
-
"debugger",
|
|
1892
|
-
"default",
|
|
1893
|
-
"do",
|
|
1894
|
-
"else",
|
|
1895
|
-
"finally",
|
|
1896
|
-
"for",
|
|
1897
|
-
"function",
|
|
1898
|
-
"if",
|
|
1899
|
-
"return",
|
|
1900
|
-
"switch",
|
|
1901
|
-
"throw",
|
|
1902
|
-
"try",
|
|
1903
|
-
"var",
|
|
1904
|
-
"const",
|
|
1905
|
-
"while",
|
|
1906
|
-
"with",
|
|
1907
|
-
"new",
|
|
1908
|
-
"this",
|
|
1909
|
-
"super",
|
|
1910
|
-
"class",
|
|
1911
|
-
"extends",
|
|
1912
|
-
"export",
|
|
1913
|
-
"import",
|
|
1914
|
-
"null",
|
|
1915
|
-
"true",
|
|
1916
|
-
"false",
|
|
1917
|
-
"in",
|
|
1918
|
-
"instanceof",
|
|
1919
|
-
"typeof",
|
|
1920
|
-
"void",
|
|
1921
|
-
"delete"
|
|
1922
|
-
],
|
|
1923
|
-
strict: [
|
|
1924
|
-
"implements",
|
|
1925
|
-
"interface",
|
|
1926
|
-
"let",
|
|
1927
|
-
"package",
|
|
1928
|
-
"private",
|
|
1929
|
-
"protected",
|
|
1930
|
-
"public",
|
|
1931
|
-
"static",
|
|
1932
|
-
"yield"
|
|
1933
|
-
],
|
|
1934
|
-
strictBind: ["eval", "arguments"]
|
|
1935
|
-
};
|
|
1936
|
-
const keywords = new Set(reservedWords.keyword);
|
|
1937
|
-
const reservedWordsStrictSet = new Set(reservedWords.strict);
|
|
1938
|
-
const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
|
|
1939
|
-
function isReservedWord(word, inModule) {
|
|
1940
|
-
return inModule && word === "await" || word === "enum";
|
|
1941
|
-
}
|
|
1942
|
-
function isStrictReservedWord(word, inModule) {
|
|
1943
|
-
return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
|
|
1944
|
-
}
|
|
1945
|
-
function isStrictBindOnlyReservedWord(word) {
|
|
1946
|
-
return reservedWordsStrictBindSet.has(word);
|
|
1947
|
-
}
|
|
1948
|
-
function isStrictBindReservedWord(word, inModule) {
|
|
1949
|
-
return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
|
|
1950
|
-
}
|
|
1951
|
-
function isKeyword(word) {
|
|
1952
|
-
return keywords.has(word);
|
|
1953
|
-
}
|
|
1954
|
-
}));
|
|
1955
|
-
//#endregion
|
|
1956
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
1957
|
-
var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1958
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1959
|
-
Object.defineProperty(exports, "isIdentifierChar", {
|
|
1960
|
-
enumerable: true,
|
|
1961
|
-
get: function() {
|
|
1962
|
-
return _identifier.isIdentifierChar;
|
|
1963
|
-
}
|
|
1964
|
-
});
|
|
1965
|
-
Object.defineProperty(exports, "isIdentifierName", {
|
|
1966
|
-
enumerable: true,
|
|
1967
|
-
get: function() {
|
|
1968
|
-
return _identifier.isIdentifierName;
|
|
1969
|
-
}
|
|
1970
|
-
});
|
|
1971
|
-
Object.defineProperty(exports, "isIdentifierStart", {
|
|
1972
|
-
enumerable: true,
|
|
1973
|
-
get: function() {
|
|
1974
|
-
return _identifier.isIdentifierStart;
|
|
1975
|
-
}
|
|
1976
|
-
});
|
|
1977
|
-
Object.defineProperty(exports, "isKeyword", {
|
|
1978
|
-
enumerable: true,
|
|
1979
|
-
get: function() {
|
|
1980
|
-
return _keyword.isKeyword;
|
|
1981
|
-
}
|
|
1982
|
-
});
|
|
1983
|
-
Object.defineProperty(exports, "isReservedWord", {
|
|
1984
|
-
enumerable: true,
|
|
1985
|
-
get: function() {
|
|
1986
|
-
return _keyword.isReservedWord;
|
|
1987
|
-
}
|
|
1988
|
-
});
|
|
1989
|
-
Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
|
|
1990
|
-
enumerable: true,
|
|
1991
|
-
get: function() {
|
|
1992
|
-
return _keyword.isStrictBindOnlyReservedWord;
|
|
1993
|
-
}
|
|
1994
|
-
});
|
|
1995
|
-
Object.defineProperty(exports, "isStrictBindReservedWord", {
|
|
1996
|
-
enumerable: true,
|
|
1997
|
-
get: function() {
|
|
1998
|
-
return _keyword.isStrictBindReservedWord;
|
|
1999
|
-
}
|
|
2000
|
-
});
|
|
2001
|
-
Object.defineProperty(exports, "isStrictReservedWord", {
|
|
2002
|
-
enumerable: true,
|
|
2003
|
-
get: function() {
|
|
2004
|
-
return _keyword.isStrictReservedWord;
|
|
2005
|
-
}
|
|
2006
|
-
});
|
|
2007
|
-
var _identifier = require_identifier();
|
|
2008
|
-
var _keyword = require_keyword();
|
|
2009
|
-
}));
|
|
2010
|
-
//#endregion
|
|
2011
|
-
//#region ../../node_modules/.pnpm/@babel+code-frame@7.29.7/node_modules/@babel/code-frame/lib/index.js
|
|
2012
|
-
var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2013
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2014
|
-
var picocolors = require_picocolors();
|
|
2015
|
-
var jsTokens = require_js_tokens();
|
|
2016
|
-
var helperValidatorIdentifier = require_lib$1();
|
|
2017
|
-
function isColorSupported() {
|
|
2018
|
-
return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
|
|
2019
|
-
}
|
|
2020
|
-
const compose = (f, g) => (v) => f(g(v));
|
|
2021
|
-
function buildDefs(colors) {
|
|
2022
|
-
return {
|
|
2023
|
-
keyword: colors.cyan,
|
|
2024
|
-
capitalized: colors.yellow,
|
|
2025
|
-
jsxIdentifier: colors.yellow,
|
|
2026
|
-
punctuator: colors.yellow,
|
|
2027
|
-
number: colors.magenta,
|
|
2028
|
-
string: colors.green,
|
|
2029
|
-
regex: colors.magenta,
|
|
2030
|
-
comment: colors.gray,
|
|
2031
|
-
invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
|
|
2032
|
-
gutter: colors.gray,
|
|
2033
|
-
marker: compose(colors.red, colors.bold),
|
|
2034
|
-
message: compose(colors.red, colors.bold),
|
|
2035
|
-
reset: colors.reset
|
|
2036
|
-
};
|
|
2037
|
-
}
|
|
2038
|
-
const defsOn = buildDefs(picocolors.createColors(true));
|
|
2039
|
-
const defsOff = buildDefs(picocolors.createColors(false));
|
|
2040
|
-
function getDefs(enabled) {
|
|
2041
|
-
return enabled ? defsOn : defsOff;
|
|
2042
|
-
}
|
|
2043
|
-
const sometimesKeywords = /* @__PURE__ */ new Set([
|
|
2044
|
-
"as",
|
|
2045
|
-
"async",
|
|
2046
|
-
"from",
|
|
2047
|
-
"get",
|
|
2048
|
-
"of",
|
|
2049
|
-
"set"
|
|
2050
|
-
]);
|
|
2051
|
-
const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
|
|
2052
|
-
const BRACKET = /^[()[\]{}]$/;
|
|
2053
|
-
let tokenize;
|
|
2054
|
-
const JSX_TAG = /^[a-z][\w-]*$/i;
|
|
2055
|
-
const getTokenType = function(token, offset, text) {
|
|
2056
|
-
if (token.type === "name") {
|
|
2057
|
-
const tokenValue = token.value;
|
|
2058
|
-
if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) return "keyword";
|
|
2059
|
-
if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) return "jsxIdentifier";
|
|
2060
|
-
const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
|
|
2061
|
-
if (firstChar !== firstChar.toLowerCase()) return "capitalized";
|
|
2062
|
-
}
|
|
2063
|
-
if (token.type === "punctuator" && BRACKET.test(token.value)) return "bracket";
|
|
2064
|
-
if (token.type === "invalid" && (token.value === "@" || token.value === "#")) return "punctuator";
|
|
2065
|
-
return token.type;
|
|
2066
|
-
};
|
|
2067
|
-
tokenize = function* (text) {
|
|
2068
|
-
let match;
|
|
2069
|
-
while (match = jsTokens.default.exec(text)) {
|
|
2070
|
-
const token = jsTokens.matchToToken(match);
|
|
2071
|
-
yield {
|
|
2072
|
-
type: getTokenType(token, match.index, text),
|
|
2073
|
-
value: token.value
|
|
2074
|
-
};
|
|
2075
|
-
}
|
|
2076
|
-
};
|
|
2077
|
-
function highlight(text) {
|
|
2078
|
-
if (text === "") return "";
|
|
2079
|
-
const defs = getDefs(true);
|
|
2080
|
-
let highlighted = "";
|
|
2081
|
-
for (const { type, value } of tokenize(text)) if (type in defs) highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join("\n");
|
|
2082
|
-
else highlighted += value;
|
|
2083
|
-
return highlighted;
|
|
2084
|
-
}
|
|
2085
|
-
let deprecationWarningShown = false;
|
|
2086
|
-
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
2087
|
-
function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
|
2088
|
-
const startLoc = Object.assign({
|
|
2089
|
-
column: 0,
|
|
2090
|
-
line: -1
|
|
2091
|
-
}, loc.start);
|
|
2092
|
-
const endLoc = Object.assign({}, startLoc, loc.end);
|
|
2093
|
-
const { linesAbove = 2, linesBelow = 3 } = opts || {};
|
|
2094
|
-
const startLine = startLoc.line - startLineBaseZero;
|
|
2095
|
-
const startColumn = startLoc.column;
|
|
2096
|
-
const endLine = endLoc.line - startLineBaseZero;
|
|
2097
|
-
const endColumn = endLoc.column;
|
|
2098
|
-
let start = Math.max(startLine - (linesAbove + 1), 0);
|
|
2099
|
-
let end = Math.min(source.length, endLine + linesBelow);
|
|
2100
|
-
if (startLine === -1) start = 0;
|
|
2101
|
-
if (endLine === -1) end = source.length;
|
|
2102
|
-
const lineDiff = endLine - startLine;
|
|
2103
|
-
const markerLines = {};
|
|
2104
|
-
if (lineDiff) for (let i = 0; i <= lineDiff; i++) {
|
|
2105
|
-
const lineNumber = i + startLine;
|
|
2106
|
-
if (!startColumn) markerLines[lineNumber] = true;
|
|
2107
|
-
else if (i === 0) markerLines[lineNumber] = [startColumn, source[lineNumber - 1].length - startColumn + 1];
|
|
2108
|
-
else if (i === lineDiff) markerLines[lineNumber] = [0, endColumn];
|
|
2109
|
-
else markerLines[lineNumber] = [0, source[lineNumber - i].length];
|
|
2110
|
-
}
|
|
2111
|
-
else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [startColumn, 0];
|
|
2112
|
-
else markerLines[startLine] = true;
|
|
2113
|
-
else markerLines[startLine] = [startColumn, endColumn - startColumn];
|
|
2114
|
-
return {
|
|
2115
|
-
start,
|
|
2116
|
-
end,
|
|
2117
|
-
markerLines
|
|
2118
|
-
};
|
|
2119
|
-
}
|
|
2120
|
-
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
2121
|
-
const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
|
2122
|
-
const startLineBaseZero = (opts.startLine || 1) - 1;
|
|
2123
|
-
const defs = getDefs(shouldHighlight);
|
|
2124
|
-
const { start, end, markerLines } = getMarkerLines(loc, rawLines.split(NEWLINE), opts, startLineBaseZero);
|
|
2125
|
-
const hasColumns = loc.start && typeof loc.start.column === "number";
|
|
2126
|
-
const numberMaxWidth = String(end + startLineBaseZero).length;
|
|
2127
|
-
let frame = (shouldHighlight ? highlight(rawLines) : rawLines).split(NEWLINE, end).slice(start, end).map((line, index) => {
|
|
2128
|
-
const number = start + 1 + index;
|
|
2129
|
-
const gutter = ` ${` ${number + startLineBaseZero}`.slice(-numberMaxWidth)} |`;
|
|
2130
|
-
const hasMarker = markerLines[number];
|
|
2131
|
-
const lastMarkerLine = !markerLines[number + 1];
|
|
2132
|
-
if (hasMarker) {
|
|
2133
|
-
let markerLine = "";
|
|
2134
|
-
if (Array.isArray(hasMarker)) {
|
|
2135
|
-
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
|
2136
|
-
const numberOfMarkers = hasMarker[1] || 1;
|
|
2137
|
-
markerLine = [
|
|
2138
|
-
"\n ",
|
|
2139
|
-
defs.gutter(gutter.replace(/\d/g, " ")),
|
|
2140
|
-
" ",
|
|
2141
|
-
markerSpacing,
|
|
2142
|
-
defs.marker("^").repeat(numberOfMarkers)
|
|
2143
|
-
].join("");
|
|
2144
|
-
if (lastMarkerLine && opts.message) markerLine += " " + defs.message(opts.message);
|
|
2145
|
-
}
|
|
2146
|
-
return [
|
|
2147
|
-
defs.marker(">"),
|
|
2148
|
-
defs.gutter(gutter),
|
|
2149
|
-
line.length > 0 ? ` ${line}` : "",
|
|
2150
|
-
markerLine
|
|
2151
|
-
].join("");
|
|
2152
|
-
} else return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
|
2153
|
-
}).join("\n");
|
|
2154
|
-
if (opts.message && !hasColumns) frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
|
2155
|
-
if (shouldHighlight) return defs.reset(frame);
|
|
2156
|
-
else return frame;
|
|
2157
|
-
}
|
|
2158
|
-
function index(rawLines, lineNumber, colNumber, opts = {}) {
|
|
2159
|
-
if (!deprecationWarningShown) {
|
|
2160
|
-
deprecationWarningShown = true;
|
|
2161
|
-
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
|
2162
|
-
if (process.emitWarning) process.emitWarning(message, "DeprecationWarning");
|
|
2163
|
-
else {
|
|
2164
|
-
const deprecationError = /* @__PURE__ */ new Error(message);
|
|
2165
|
-
deprecationError.name = "DeprecationWarning";
|
|
2166
|
-
console.warn(/* @__PURE__ */ new Error(message));
|
|
2167
|
-
}
|
|
2168
|
-
}
|
|
2169
|
-
colNumber = Math.max(colNumber, 0);
|
|
2170
|
-
return codeFrameColumns(rawLines, { start: {
|
|
2171
|
-
column: colNumber,
|
|
2172
|
-
line: lineNumber
|
|
2173
|
-
} }, opts);
|
|
2174
|
-
}
|
|
2175
|
-
exports.codeFrameColumns = codeFrameColumns;
|
|
2176
|
-
exports.default = index;
|
|
2177
|
-
exports.highlight = highlight;
|
|
2178
|
-
}));
|
|
2179
|
-
//#endregion
|
|
2180
|
-
//#region ../../node_modules/.pnpm/parse-json@5.2.0/node_modules/parse-json/index.js
|
|
2181
|
-
var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2182
|
-
const errorEx = require_error_ex();
|
|
2183
|
-
const fallback = require_json_parse_even_better_errors();
|
|
2184
|
-
const { default: LinesAndColumns } = require_build();
|
|
2185
|
-
const { codeFrameColumns } = require_lib();
|
|
2186
|
-
const JSONError = errorEx("JSONError", {
|
|
2187
|
-
fileName: errorEx.append("in %s"),
|
|
2188
|
-
codeFrame: errorEx.append("\n\n%s\n")
|
|
2189
|
-
});
|
|
2190
|
-
const parseJson = (string, reviver, filename) => {
|
|
2191
|
-
if (typeof reviver === "string") {
|
|
2192
|
-
filename = reviver;
|
|
2193
|
-
reviver = null;
|
|
2194
|
-
}
|
|
2195
|
-
try {
|
|
2196
|
-
try {
|
|
2197
|
-
return JSON.parse(string, reviver);
|
|
2198
|
-
} catch (error) {
|
|
2199
|
-
fallback(string, reviver);
|
|
2200
|
-
throw error;
|
|
2201
|
-
}
|
|
2202
|
-
} catch (error) {
|
|
2203
|
-
error.message = error.message.replace(/\n/g, "");
|
|
2204
|
-
const indexMatch = error.message.match(/in JSON at position (\d+) while parsing/);
|
|
2205
|
-
const jsonError = new JSONError(error);
|
|
2206
|
-
if (filename) jsonError.fileName = filename;
|
|
2207
|
-
if (indexMatch && indexMatch.length > 0) {
|
|
2208
|
-
const lines = new LinesAndColumns(string);
|
|
2209
|
-
const index = Number(indexMatch[1]);
|
|
2210
|
-
const location = lines.locationForIndex(index);
|
|
2211
|
-
jsonError.codeFrame = codeFrameColumns(string, { start: {
|
|
2212
|
-
line: location.line + 1,
|
|
2213
|
-
column: location.column + 1
|
|
2214
|
-
} }, { highlightCode: true });
|
|
2215
|
-
}
|
|
2216
|
-
throw jsonError;
|
|
2217
|
-
}
|
|
2218
|
-
};
|
|
2219
|
-
parseJson.JSONError = JSONError;
|
|
2220
|
-
module.exports = parseJson;
|
|
2221
|
-
}));
|
|
2222
|
-
//#endregion
|
|
2223
533
|
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
|
|
2224
534
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2225
535
|
function isNothing(subject) {
|
|
@@ -4567,22 +2877,15 @@ var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4567
2877
|
module.exports.safeDump = renamed("safeDump", "dump");
|
|
4568
2878
|
}));
|
|
4569
2879
|
//#endregion
|
|
4570
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
2880
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/loaders.js
|
|
4571
2881
|
var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4572
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
4573
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
4574
|
-
};
|
|
4575
2882
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4576
|
-
exports.
|
|
4577
|
-
const fs_1$2 = __require("fs");
|
|
2883
|
+
exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
|
|
4578
2884
|
const promises_1$1 = __require("fs/promises");
|
|
4579
|
-
const path_1$3 = __importDefault(__require("path"));
|
|
4580
2885
|
const url_1 = __require("url");
|
|
4581
|
-
const crypto_1 = __require("crypto");
|
|
4582
|
-
let importFresh;
|
|
4583
2886
|
exports.loadJsSync = function loadJsSync(filepath) {
|
|
4584
|
-
|
|
4585
|
-
return
|
|
2887
|
+
delete __require.cache[__require.resolve(filepath)];
|
|
2888
|
+
return __require(filepath);
|
|
4586
2889
|
};
|
|
4587
2890
|
exports.loadJs = async function loadJs(filepath) {
|
|
4588
2891
|
try {
|
|
@@ -4598,11 +2901,9 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4598
2901
|
}
|
|
4599
2902
|
}
|
|
4600
2903
|
};
|
|
4601
|
-
let parseJson;
|
|
4602
2904
|
exports.loadJson = function loadJson(filepath, content) {
|
|
4603
|
-
if (parseJson === void 0) parseJson = require_parse_json();
|
|
4604
2905
|
try {
|
|
4605
|
-
return
|
|
2906
|
+
return JSON.parse(content);
|
|
4606
2907
|
} catch (error) {
|
|
4607
2908
|
error.message = `JSON Error in ${filepath}:\n${error.message}`;
|
|
4608
2909
|
throw error;
|
|
@@ -4618,73 +2919,12 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4618
2919
|
throw error;
|
|
4619
2920
|
}
|
|
4620
2921
|
};
|
|
4621
|
-
let typescript;
|
|
4622
|
-
exports.loadTsSync = function loadTsSync(filepath, content) {
|
|
4623
|
-
/* istanbul ignore next -- @preserve */
|
|
4624
|
-
if (typescript === void 0) typescript = __require("typescript");
|
|
4625
|
-
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.cjs`;
|
|
4626
|
-
try {
|
|
4627
|
-
const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
|
|
4628
|
-
config.compilerOptions = {
|
|
4629
|
-
...config.compilerOptions,
|
|
4630
|
-
module: typescript.ModuleKind.NodeNext,
|
|
4631
|
-
moduleResolution: typescript.ModuleResolutionKind.NodeNext,
|
|
4632
|
-
target: typescript.ScriptTarget.ES2022,
|
|
4633
|
-
noEmit: false
|
|
4634
|
-
};
|
|
4635
|
-
content = typescript.transpileModule(content, config).outputText;
|
|
4636
|
-
(0, fs_1$2.writeFileSync)(compiledFilepath, content);
|
|
4637
|
-
return (0, exports.loadJsSync)(compiledFilepath, content).default;
|
|
4638
|
-
} catch (error) {
|
|
4639
|
-
error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
|
|
4640
|
-
throw error;
|
|
4641
|
-
} finally {
|
|
4642
|
-
if ((0, fs_1$2.existsSync)(compiledFilepath)) (0, fs_1$2.rmSync)(compiledFilepath);
|
|
4643
|
-
}
|
|
4644
|
-
};
|
|
4645
|
-
exports.loadTs = async function loadTs(filepath, content) {
|
|
4646
|
-
if (typescript === void 0) typescript = (await import("typescript")).default;
|
|
4647
|
-
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.mjs`;
|
|
4648
|
-
let transpiledContent;
|
|
4649
|
-
try {
|
|
4650
|
-
try {
|
|
4651
|
-
const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
|
|
4652
|
-
config.compilerOptions = {
|
|
4653
|
-
...config.compilerOptions,
|
|
4654
|
-
module: typescript.ModuleKind.ES2022,
|
|
4655
|
-
moduleResolution: typescript.ModuleResolutionKind.Bundler,
|
|
4656
|
-
target: typescript.ScriptTarget.ES2022,
|
|
4657
|
-
noEmit: false
|
|
4658
|
-
};
|
|
4659
|
-
transpiledContent = typescript.transpileModule(content, config).outputText;
|
|
4660
|
-
await (0, promises_1$1.writeFile)(compiledFilepath, transpiledContent);
|
|
4661
|
-
} catch (error) {
|
|
4662
|
-
error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
|
|
4663
|
-
throw error;
|
|
4664
|
-
}
|
|
4665
|
-
return await (0, exports.loadJs)(compiledFilepath, transpiledContent);
|
|
4666
|
-
} finally {
|
|
4667
|
-
if ((0, fs_1$2.existsSync)(compiledFilepath)) await (0, promises_1$1.rm)(compiledFilepath);
|
|
4668
|
-
}
|
|
4669
|
-
};
|
|
4670
|
-
function resolveTsConfig(directory) {
|
|
4671
|
-
const filePath = typescript.findConfigFile(directory, (fileName) => {
|
|
4672
|
-
return typescript.sys.fileExists(fileName);
|
|
4673
|
-
});
|
|
4674
|
-
if (filePath !== void 0) {
|
|
4675
|
-
const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
|
|
4676
|
-
if (error) throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
|
|
4677
|
-
return config;
|
|
4678
|
-
}
|
|
4679
|
-
}
|
|
4680
2922
|
}));
|
|
4681
2923
|
//#endregion
|
|
4682
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
2924
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/defaults.js
|
|
4683
2925
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4684
2926
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4685
|
-
exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = void 0;
|
|
4686
|
-
exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
|
|
4687
|
-
exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
|
|
2927
|
+
exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
|
|
4688
2928
|
const loaders_1 = require_loaders();
|
|
4689
2929
|
function getDefaultSearchPlaces(moduleName) {
|
|
4690
2930
|
return [
|
|
@@ -4711,6 +2951,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4711
2951
|
`${moduleName}.config.mjs`
|
|
4712
2952
|
];
|
|
4713
2953
|
}
|
|
2954
|
+
exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
|
|
4714
2955
|
function getDefaultSearchPlacesSync(moduleName) {
|
|
4715
2956
|
return [
|
|
4716
2957
|
"package.json",
|
|
@@ -4733,6 +2974,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4733
2974
|
`${moduleName}.config.cjs`
|
|
4734
2975
|
];
|
|
4735
2976
|
}
|
|
2977
|
+
exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
|
|
4736
2978
|
exports.globalConfigSearchPlaces = [
|
|
4737
2979
|
"config",
|
|
4738
2980
|
"config.json",
|
|
@@ -4767,7 +3009,9 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4767
3009
|
".mjs": loaders_1.loadJs,
|
|
4768
3010
|
".cjs": loaders_1.loadJs,
|
|
4769
3011
|
".js": loaders_1.loadJs,
|
|
4770
|
-
".ts": loaders_1.
|
|
3012
|
+
".ts": loaders_1.loadJs,
|
|
3013
|
+
".cts": loaders_1.loadJs,
|
|
3014
|
+
".mts": loaders_1.loadJs,
|
|
4771
3015
|
".json": loaders_1.loadJson,
|
|
4772
3016
|
".yaml": loaders_1.loadYaml,
|
|
4773
3017
|
".yml": loaders_1.loadYaml,
|
|
@@ -4776,7 +3020,8 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4776
3020
|
exports.defaultLoadersSync = Object.freeze({
|
|
4777
3021
|
".cjs": loaders_1.loadJsSync,
|
|
4778
3022
|
".js": loaders_1.loadJsSync,
|
|
4779
|
-
".
|
|
3023
|
+
".cts": loaders_1.loadJsSync,
|
|
3024
|
+
".ts": loaders_1.loadJsSync,
|
|
4780
3025
|
".json": loaders_1.loadJson,
|
|
4781
3026
|
".yaml": loaders_1.loadYaml,
|
|
4782
3027
|
".yml": loaders_1.loadYaml,
|
|
@@ -4834,7 +3079,7 @@ var require_env_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4834
3079
|
module.exports.default = envPaths;
|
|
4835
3080
|
}));
|
|
4836
3081
|
//#endregion
|
|
4837
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
3082
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/util.js
|
|
4838
3083
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4839
3084
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
4840
3085
|
if (k2 === void 0) k2 = k;
|
|
@@ -4858,31 +3103,17 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4858
3103
|
}) : function(o, v) {
|
|
4859
3104
|
o["default"] = v;
|
|
4860
3105
|
});
|
|
4861
|
-
var __importStar = exports && exports.__importStar ||
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
return function(mod) {
|
|
4871
|
-
if (mod && mod.__esModule) return mod;
|
|
4872
|
-
var result = {};
|
|
4873
|
-
if (mod != null) {
|
|
4874
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
4875
|
-
}
|
|
4876
|
-
__setModuleDefault(result, mod);
|
|
4877
|
-
return result;
|
|
4878
|
-
};
|
|
4879
|
-
})();
|
|
3106
|
+
var __importStar = exports && exports.__importStar || function(mod) {
|
|
3107
|
+
if (mod && mod.__esModule) return mod;
|
|
3108
|
+
var result = {};
|
|
3109
|
+
if (mod != null) {
|
|
3110
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
3111
|
+
}
|
|
3112
|
+
__setModuleDefault(result, mod);
|
|
3113
|
+
return result;
|
|
3114
|
+
};
|
|
4880
3115
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4881
|
-
exports.emplace =
|
|
4882
|
-
exports.getPropertyByPath = getPropertyByPath;
|
|
4883
|
-
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
4884
|
-
exports.isDirectory = isDirectory;
|
|
4885
|
-
exports.isDirectorySync = isDirectorySync;
|
|
3116
|
+
exports.isDirectorySync = exports.isDirectory = exports.removeUndefinedValuesFromObject = exports.decodeFileContent = exports.getPropertyByPath = exports.emplace = void 0;
|
|
4886
3117
|
const fs_1$1 = __importStar(__require("fs"));
|
|
4887
3118
|
/**
|
|
4888
3119
|
* @internal
|
|
@@ -4894,6 +3125,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4894
3125
|
map.set(key, result);
|
|
4895
3126
|
return result;
|
|
4896
3127
|
}
|
|
3128
|
+
exports.emplace = emplace;
|
|
4897
3129
|
/**
|
|
4898
3130
|
* @internal
|
|
4899
3131
|
*/
|
|
@@ -4904,10 +3136,19 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4904
3136
|
return previous[key];
|
|
4905
3137
|
}, source);
|
|
4906
3138
|
}
|
|
3139
|
+
exports.getPropertyByPath = getPropertyByPath;
|
|
3140
|
+
/** @internal */
|
|
3141
|
+
function decodeFileContent(buffer) {
|
|
3142
|
+
if (buffer[0] === 255 && buffer[1] === 254) return new TextDecoder("utf-16le").decode(buffer);
|
|
3143
|
+
if (buffer[0] === 254 && buffer[1] === 255) return new TextDecoder("utf-16be").decode(buffer);
|
|
3144
|
+
return buffer.toString("utf-8");
|
|
3145
|
+
}
|
|
3146
|
+
exports.decodeFileContent = decodeFileContent;
|
|
4907
3147
|
/** @internal */
|
|
4908
3148
|
function removeUndefinedValuesFromObject(options) {
|
|
4909
3149
|
return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
|
|
4910
3150
|
}
|
|
3151
|
+
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
4911
3152
|
/** @internal */
|
|
4912
3153
|
/* istanbul ignore next -- @preserve */
|
|
4913
3154
|
async function isDirectory(path) {
|
|
@@ -4918,6 +3159,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4918
3159
|
throw e;
|
|
4919
3160
|
}
|
|
4920
3161
|
}
|
|
3162
|
+
exports.isDirectory = isDirectory;
|
|
4921
3163
|
/** @internal */
|
|
4922
3164
|
/* istanbul ignore next -- @preserve */
|
|
4923
3165
|
function isDirectorySync(path) {
|
|
@@ -4928,16 +3170,16 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4928
3170
|
throw e;
|
|
4929
3171
|
}
|
|
4930
3172
|
}
|
|
3173
|
+
exports.isDirectorySync = isDirectorySync;
|
|
4931
3174
|
}));
|
|
4932
3175
|
//#endregion
|
|
4933
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
3176
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerBase.js
|
|
4934
3177
|
var require_ExplorerBase = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4935
3178
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
4936
3179
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
4937
3180
|
};
|
|
4938
3181
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4939
|
-
exports.ExplorerBase = void 0;
|
|
4940
|
-
exports.getExtensionDescription = getExtensionDescription;
|
|
3182
|
+
exports.getExtensionDescription = exports.ExplorerBase = void 0;
|
|
4941
3183
|
const env_paths_1 = __importDefault(require_env_paths());
|
|
4942
3184
|
const os_1 = __importDefault(__require("os"));
|
|
4943
3185
|
const path_1$2 = __importDefault(__require("path"));
|
|
@@ -5049,13 +3291,13 @@ ${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (
|
|
|
5049
3291
|
/* istanbul ignore next -- @preserve */
|
|
5050
3292
|
return extension ? `extension "${extension}"` : "files without extensions";
|
|
5051
3293
|
}
|
|
3294
|
+
exports.getExtensionDescription = getExtensionDescription;
|
|
5052
3295
|
}));
|
|
5053
3296
|
//#endregion
|
|
5054
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
3297
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/merge.js
|
|
5055
3298
|
var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5056
3299
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5057
|
-
exports.hasOwn = void 0;
|
|
5058
|
-
exports.mergeAll = mergeAll;
|
|
3300
|
+
exports.mergeAll = exports.hasOwn = void 0;
|
|
5059
3301
|
exports.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
|
|
5060
3302
|
const objToString = Function.prototype.call.bind(Object.prototype.toString);
|
|
5061
3303
|
function isPlainObject(obj) {
|
|
@@ -5087,9 +3329,10 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5087
3329
|
function mergeAll(objects, options) {
|
|
5088
3330
|
return objects.reduce((target, source) => merge(target, source, options), {});
|
|
5089
3331
|
}
|
|
3332
|
+
exports.mergeAll = mergeAll;
|
|
5090
3333
|
}));
|
|
5091
3334
|
//#endregion
|
|
5092
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
3335
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/Explorer.js
|
|
5093
3336
|
var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5094
3337
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
5095
3338
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -5148,7 +3391,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5148
3391
|
return await search();
|
|
5149
3392
|
}
|
|
5150
3393
|
async #readConfiguration(filepath, importStack = []) {
|
|
5151
|
-
const contents = await promises_1.default.readFile(filepath
|
|
3394
|
+
const contents = (0, util_js_1.decodeFileContent)(await promises_1.default.readFile(filepath));
|
|
5152
3395
|
return this.toCosmiconfigResult(filepath, await this.#loadConfigFileWithImports(filepath, contents, importStack));
|
|
5153
3396
|
}
|
|
5154
3397
|
async #loadConfigFileWithImports(filepath, contents, importStack) {
|
|
@@ -5224,7 +3467,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5224
3467
|
exports.Explorer = Explorer;
|
|
5225
3468
|
}));
|
|
5226
3469
|
//#endregion
|
|
5227
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
3470
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerSync.js
|
|
5228
3471
|
var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5229
3472
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
5230
3473
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -5283,7 +3526,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5283
3526
|
return search();
|
|
5284
3527
|
}
|
|
5285
3528
|
#readConfiguration(filepath, importStack = []) {
|
|
5286
|
-
const contents = fs_1.default.readFileSync(filepath
|
|
3529
|
+
const contents = (0, util_js_1.decodeFileContent)(fs_1.default.readFileSync(filepath));
|
|
5287
3530
|
return this.toCosmiconfigResult(filepath, this.#loadConfigFileWithImports(filepath, contents, importStack));
|
|
5288
3531
|
}
|
|
5289
3532
|
#loadConfigFileWithImports(filepath, contents, importStack) {
|
|
@@ -5376,8 +3619,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5376
3619
|
//#region src/lib/loadConfig.ts
|
|
5377
3620
|
var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5378
3621
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5379
|
-
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
|
|
5380
|
-
exports.cosmiconfig = cosmiconfig;
|
|
3622
|
+
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
|
|
5381
3623
|
const defaults_1 = require_defaults();
|
|
5382
3624
|
Object.defineProperty(exports, "defaultLoaders", {
|
|
5383
3625
|
enumerable: true,
|
|
@@ -5451,7 +3693,8 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5451
3693
|
function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
|
|
5452
3694
|
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
|
|
5453
3695
|
if (userConfiguredOptions.mergeSearchPlaces) return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
|
|
5454
|
-
return userConfiguredSearchPlaces ??
|
|
3696
|
+
return userConfiguredSearchPlaces ??
|
|
3697
|
+
/* istanbul ignore next */ toolDefinedSearchPlaces;
|
|
5455
3698
|
}
|
|
5456
3699
|
function mergeOptionsBase(moduleName, defaults, options) {
|
|
5457
3700
|
const userDefinedConfig = getUserDefinedOptionsFromMetaConfig();
|
|
@@ -5495,6 +3738,21 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5495
3738
|
searchStrategy: options.stopDir ? "global" : "none"
|
|
5496
3739
|
}, options);
|
|
5497
3740
|
}
|
|
3741
|
+
function mergeOptionsSync(moduleName, options) {
|
|
3742
|
+
validateOptions(options);
|
|
3743
|
+
return mergeOptionsBase(moduleName, {
|
|
3744
|
+
moduleName,
|
|
3745
|
+
searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
|
|
3746
|
+
ignoreEmptySearchPlaces: true,
|
|
3747
|
+
cache: true,
|
|
3748
|
+
transform: identity,
|
|
3749
|
+
loaders: defaults_1.defaultLoadersSync,
|
|
3750
|
+
metaConfigFilePath: null,
|
|
3751
|
+
mergeImportArrays: true,
|
|
3752
|
+
mergeSearchPlaces: true,
|
|
3753
|
+
searchStrategy: options.stopDir ? "global" : "none"
|
|
3754
|
+
}, options);
|
|
3755
|
+
}
|
|
5498
3756
|
function cosmiconfig(moduleName, options = {}) {
|
|
5499
3757
|
const normalizedOptions = mergeOptions(moduleName, options);
|
|
5500
3758
|
const explorer = new Explorer_js_1.Explorer(normalizedOptions);
|
|
@@ -5506,6 +3764,19 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5506
3764
|
clearCaches: explorer.clearCaches.bind(explorer)
|
|
5507
3765
|
};
|
|
5508
3766
|
}
|
|
3767
|
+
exports.cosmiconfig = cosmiconfig;
|
|
3768
|
+
function cosmiconfigSync(moduleName, options = {}) {
|
|
3769
|
+
const normalizedOptions = mergeOptionsSync(moduleName, options);
|
|
3770
|
+
const explorerSync = new ExplorerSync_js_1.ExplorerSync(normalizedOptions);
|
|
3771
|
+
return {
|
|
3772
|
+
search: explorerSync.search.bind(explorerSync),
|
|
3773
|
+
load: explorerSync.load.bind(explorerSync),
|
|
3774
|
+
clearLoadCache: explorerSync.clearLoadCache.bind(explorerSync),
|
|
3775
|
+
clearSearchCache: explorerSync.clearSearchCache.bind(explorerSync),
|
|
3776
|
+
clearCaches: explorerSync.clearCaches.bind(explorerSync)
|
|
3777
|
+
};
|
|
3778
|
+
}
|
|
3779
|
+
exports.cosmiconfigSync = cosmiconfigSync;
|
|
5509
3780
|
})))();
|
|
5510
3781
|
const configState = {
|
|
5511
3782
|
config: void 0,
|