@ariestools/toolchain 8.7.26 → 8.7.28
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/analyze.d.ts +27 -9
- package/dist/actions/analyze.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts +6 -2
- package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/couplingWalk.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/depSignals.d.ts +12 -4
- package/dist/actions/api-exposure/analyzer/depSignals.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts +9 -3
- package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/importedPackages.d.ts +6 -2
- package/dist/actions/api-exposure/analyzer/importedPackages.d.ts.map +1 -1
- package/dist/actions/api-exposure/apiExposure.d.ts +9 -3
- package/dist/actions/api-exposure/apiExposure.d.ts.map +1 -1
- package/dist/actions/api-exposure/config.d.ts +12 -4
- package/dist/actions/api-exposure/config.d.ts.map +1 -1
- package/dist/actions/api-exposure/installStrategy.d.ts +6 -2
- package/dist/actions/api-exposure/installStrategy.d.ts.map +1 -1
- package/dist/actions/api-exposure/reporters.d.ts +3 -1
- package/dist/actions/api-exposure/reporters.d.ts.map +1 -1
- package/dist/actions/api-exposure/scoring.d.ts +3 -1
- package/dist/actions/api-exposure/scoring.d.ts.map +1 -1
- package/dist/actions/api-exposure/types.d.ts +48 -16
- package/dist/actions/api-exposure/types.d.ts.map +1 -1
- package/dist/actions/barrel/index.d.ts +0 -1
- package/dist/actions/barrel/index.d.ts.map +1 -1
- package/dist/actions/barrel/restrictionHelpers.d.ts +0 -19
- package/dist/actions/barrel/restrictionHelpers.d.ts.map +1 -1
- package/dist/actions/compile.d.ts +9 -3
- package/dist/actions/compile.d.ts.map +1 -1
- package/dist/actions/dead/analyzePackage.d.ts +18 -6
- package/dist/actions/dead/analyzePackage.d.ts.map +1 -1
- package/dist/actions/dead/collectSymbols.d.ts +12 -4
- package/dist/actions/dead/collectSymbols.d.ts.map +1 -1
- package/dist/actions/dead/evaluateRules.d.ts +3 -1
- package/dist/actions/dead/evaluateRules.d.ts.map +1 -1
- package/dist/actions/dead/findWorkspaceFile.d.ts +3 -1
- package/dist/actions/dead/findWorkspaceFile.d.ts.map +1 -1
- package/dist/actions/dead/ruleNames.d.ts +3 -1
- package/dist/actions/dead/ruleNames.d.ts.map +1 -1
- package/dist/actions/dead/runDeadAnalysis.d.ts +3 -1
- package/dist/actions/dead/runDeadAnalysis.d.ts.map +1 -1
- package/dist/actions/dead/sourceEdits.d.ts +3 -1
- package/dist/actions/dead/sourceEdits.d.ts.map +1 -1
- package/dist/actions/deplint/checkPackage/checkPackage.d.ts +3 -1
- package/dist/actions/deplint/checkPackage/checkPackage.d.ts.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +6 -2
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -1
- package/dist/actions/deplint/collectPickRows.d.ts +24 -8
- package/dist/actions/deplint/collectPickRows.d.ts.map +1 -1
- package/dist/actions/deplint/deplint.d.ts +9 -3
- package/dist/actions/deplint/deplint.d.ts.map +1 -1
- package/dist/actions/deplint/deplintPick.d.ts +3 -1
- package/dist/actions/deplint/deplintPick.d.ts.map +1 -1
- package/dist/actions/deplint/editXyConfigPackages.d.ts +9 -3
- package/dist/actions/deplint/editXyConfigPackages.d.ts.map +1 -1
- package/dist/actions/deplint/fetchPackageManifest.d.ts +6 -2
- package/dist/actions/deplint/fetchPackageManifest.d.ts.map +1 -1
- package/dist/actions/deplint/findFiles.d.ts +7 -3
- package/dist/actions/deplint/findFiles.d.ts.map +1 -1
- package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -1
- package/dist/actions/deplint/interactivePick.d.ts +3 -1
- package/dist/actions/deplint/interactivePick.d.ts.map +1 -1
- package/dist/actions/deplint/isTerminalPackage.d.ts +13 -5
- package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
- package/dist/actions/deplint/resolvePeerBumpFixes.d.ts +3 -1
- package/dist/actions/deplint/resolvePeerBumpFixes.d.ts.map +1 -1
- package/dist/actions/deplint/snapshot.d.ts +24 -8
- package/dist/actions/deplint/snapshot.d.ts.map +1 -1
- package/dist/actions/deplint/sourceFileCache.d.ts +3 -1
- package/dist/actions/deplint/sourceFileCache.d.ts.map +1 -1
- package/dist/actions/deplint/types.d.ts +68 -25
- package/dist/actions/deplint/types.d.ts.map +1 -1
- package/dist/actions/gitignore.d.ts +3 -1
- package/dist/actions/gitignore.d.ts.map +1 -1
- package/dist/actions/lint.d.ts +15 -5
- package/dist/actions/lint.d.ts.map +1 -1
- package/dist/actions/lintNext.d.ts +6 -2
- package/dist/actions/lintNext.d.ts.map +1 -1
- package/dist/actions/lintNextWorker.d.ts +36 -12
- package/dist/actions/lintNextWorker.d.ts.map +1 -1
- package/dist/actions/lintPackageFilter.d.ts +15 -5
- package/dist/actions/lintPackageFilter.d.ts.map +1 -1
- package/dist/actions/package/clean-outputs.d.ts +3 -1
- package/dist/actions/package/clean-outputs.d.ts.map +1 -1
- package/dist/actions/package/clean-typescript.d.ts +3 -1
- package/dist/actions/package/clean-typescript.d.ts.map +1 -1
- package/dist/actions/package/cleanGitignore.d.ts +6 -2
- package/dist/actions/package/cleanGitignore.d.ts.map +1 -1
- package/dist/actions/package/cleanPlan.d.ts +6 -2
- package/dist/actions/package/cleanPlan.d.ts.map +1 -1
- package/dist/actions/package/cleanRules.d.ts +15 -5
- package/dist/actions/package/cleanRules.d.ts.map +1 -1
- package/dist/actions/package/compile/ApiExposureConfig.d.ts +24 -8
- package/dist/actions/package/compile/ApiExposureConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/CleanConfig.d.ts +3 -1
- package/dist/actions/package/compile/CleanConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/MonolithConfig.d.ts +39 -13
- package/dist/actions/package/compile/MonolithConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/PublintConfig.d.ts +6 -2
- package/dist/actions/package/compile/PublintConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/XyConfig.d.ts +162 -54
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/createProgramFromConfig.d.ts +18 -6
- package/dist/actions/package/compile/createProgramFromConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/inputs.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileDeclarations.d.ts +3 -1
- package/dist/actions/package/compile/monolithCompileDeclarations.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileEntries.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileLayout.d.ts +15 -5
- package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCopyEntries.d.ts +6 -2
- package/dist/actions/package/compile/monolithCopyEntries.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithReexport.d.ts +12 -4
- package/dist/actions/package/compile/monolithReexport.d.ts.map +1 -1
- package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
- package/dist/actions/recompile.d.ts +3 -1
- package/dist/actions/recompile.d.ts.map +1 -1
- package/dist/actions/skills/defaults.d.ts +26 -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 +14 -1
- package/dist/actions/skills/skillRules.d.ts.map +1 -1
- package/dist/actions/tsc-validate/sharedValidate.d.ts +6 -2
- package/dist/actions/tsc-validate/sharedValidate.d.ts.map +1 -1
- package/dist/actions/tsc-validate/tscValidate.d.ts.map +1 -1
- package/dist/actions/work/github.d.ts +9 -3
- package/dist/actions/work/github.d.ts.map +1 -1
- package/dist/actions/work/helpers.d.ts +3 -1
- package/dist/actions/work/helpers.d.ts.map +1 -1
- package/dist/actions/work/index.d.ts +6 -2
- package/dist/actions/work/index.d.ts.map +1 -1
- package/dist/actions/work/list.d.ts +6 -2
- package/dist/actions/work/list.d.ts.map +1 -1
- package/dist/actions/work/move.d.ts +3 -1
- package/dist/actions/work/move.d.ts.map +1 -1
- package/dist/actions/work/store.d.ts +3 -1
- package/dist/actions/work/store.d.ts.map +1 -1
- package/dist/actions/work/sync.d.ts +15 -5
- package/dist/actions/work/sync.d.ts.map +1 -1
- package/dist/actions/work/workspace.d.ts +15 -5
- package/dist/actions/work/workspace.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +1134 -2638
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +505 -2152
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +866 -2501
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +175 -100
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +175 -100
- package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
- package/dist/bin/package/fix.mjs +263 -151
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint-verbose.mjs +263 -151
- package/dist/bin/package/lint-verbose.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +263 -151
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +619 -2198
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +892 -2511
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +263 -151
- package/dist/bin/package/relint.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +329 -2032
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/run-or-exec.mjs +165 -88
- package/dist/bin/run-or-exec.mjs.map +1 -1
- package/dist/bin/skills.mjs +4828 -851
- package/dist/bin/skills.mjs.map +1 -1
- package/dist/bin/xy.mjs +3115 -4443
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/copyAssetFiles.d.ts +3 -1
- package/dist/lib/copyAssetFiles.d.ts.map +1 -1
- package/dist/lib/licenseCheck/checkLicenses.d.ts +18 -6
- package/dist/lib/licenseCheck/checkLicenses.d.ts.map +1 -1
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts +9 -3
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts.map +1 -1
- package/dist/lib/licenseCheck/readPackageLicense.d.ts +6 -2
- package/dist/lib/licenseCheck/readPackageLicense.d.ts.map +1 -1
- package/dist/lib/loadConfig.d.ts.map +1 -1
- package/dist/lib/match.d.ts +6 -2
- package/dist/lib/match.d.ts.map +1 -1
- package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts +12 -4
- package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts.map +1 -1
- package/dist/lib/safeExit.d.ts +3 -1
- package/dist/lib/safeExit.d.ts.map +1 -1
- package/dist/lib/updo/fetchRegistryInfo.d.ts.map +1 -1
- package/dist/lib/updo/interactiveSelect.d.ts +6 -2
- package/dist/lib/updo/interactiveSelect.d.ts.map +1 -1
- package/dist/lib/updo/interfaces.d.ts +15 -5
- package/dist/lib/updo/interfaces.d.ts.map +1 -1
- package/dist/lib/updo/resolveVersions.d.ts +15 -5
- package/dist/lib/updo/resolveVersions.d.ts.map +1 -1
- package/dist/lib/updo/runUpdo.d.ts +12 -4
- package/dist/lib/updo/runUpdo.d.ts.map +1 -1
- package/dist/pm/PackageManager.d.ts +45 -15
- package/dist/pm/PackageManager.d.ts.map +1 -1
- package/dist/xy/common/skills/index.d.ts.map +1 -1
- package/dist/xy/common/work/options.d.ts +3 -1
- package/dist/xy/common/work/options.d.ts.map +1 -1
- package/package.json +18 -18
|
@@ -7,15 +7,15 @@ import * as xi from "node:fs";
|
|
|
7
7
|
import fs, { existsSync, readFileSync } from "node:fs";
|
|
8
8
|
import PATH, { posix, win32 } from "node:path";
|
|
9
9
|
import { fileURLToPath } from "node:url";
|
|
10
|
-
import
|
|
10
|
+
import Ie, { lstatSync, readdir, readdirSync, readlinkSync, realpathSync } from "fs";
|
|
11
11
|
import { lstat, readdir as readdir$1, readlink, realpath } from "node:fs/promises";
|
|
12
12
|
import { EventEmitter } from "node:events";
|
|
13
13
|
import Pe from "node:stream";
|
|
14
14
|
import { StringDecoder } from "node:string_decoder";
|
|
15
15
|
import Re from "path";
|
|
16
|
-
import ts, { formatDiagnosticsWithColorAndContext, sys } from "typescript";
|
|
17
16
|
import Ue from "os";
|
|
18
17
|
import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
|
|
18
|
+
import ts, { formatDiagnosticsWithColorAndContext, sys } from "typescript";
|
|
19
19
|
import { build } from "esbuild";
|
|
20
20
|
//#region \0rolldown/runtime.js
|
|
21
21
|
var __create = Object.create;
|
|
@@ -43,17 +43,47 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
43
43
|
}
|
|
44
44
|
return to;
|
|
45
45
|
};
|
|
46
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
46
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
47
47
|
value: mod,
|
|
48
48
|
enumerable: true
|
|
49
49
|
}) : target, mod));
|
|
50
50
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
51
51
|
//#endregion
|
|
52
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
52
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
|
|
53
|
+
function stringReplaceAll(string, substring, postfix) {
|
|
54
|
+
let index = string.indexOf(substring);
|
|
55
|
+
if (index === -1) return string;
|
|
56
|
+
const substringLength = substring.length;
|
|
57
|
+
let endIndex = 0;
|
|
58
|
+
let returnValue = "";
|
|
59
|
+
do {
|
|
60
|
+
returnValue += string.slice(endIndex, index) + substring + postfix;
|
|
61
|
+
endIndex = index + substringLength;
|
|
62
|
+
index = string.indexOf(substring, endIndex);
|
|
63
|
+
} while (index !== -1);
|
|
64
|
+
returnValue += string.slice(endIndex);
|
|
65
|
+
return returnValue;
|
|
66
|
+
}
|
|
67
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
68
|
+
let endIndex = 0;
|
|
69
|
+
let returnValue = "";
|
|
70
|
+
do {
|
|
71
|
+
const isGotCR = string[index - 1] === "\r";
|
|
72
|
+
returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
|
|
73
|
+
endIndex = index + 1;
|
|
74
|
+
index = string.indexOf("\n", endIndex);
|
|
75
|
+
} while (index !== -1);
|
|
76
|
+
returnValue += string.slice(endIndex);
|
|
77
|
+
return returnValue;
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
53
81
|
const ANSI_BACKGROUND_OFFSET = 10;
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
82
|
+
const ANSI_UNDERLINE_OFFSET = 20;
|
|
83
|
+
const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
|
|
84
|
+
const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
|
|
85
|
+
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
|
|
86
|
+
const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
|
|
57
87
|
const styles$1 = {
|
|
58
88
|
modifier: {
|
|
59
89
|
reset: [0, 0],
|
|
@@ -61,6 +91,10 @@ const styles$1 = {
|
|
|
61
91
|
dim: [2, 22],
|
|
62
92
|
italic: [3, 23],
|
|
63
93
|
underline: [4, 24],
|
|
94
|
+
underlineDouble: ["4:2", 24],
|
|
95
|
+
underlineCurly: ["4:3", 24],
|
|
96
|
+
underlineDotted: ["4:4", 24],
|
|
97
|
+
underlineDashed: ["4:5", 24],
|
|
64
98
|
overline: [53, 55],
|
|
65
99
|
inverse: [7, 27],
|
|
66
100
|
hidden: [8, 28],
|
|
@@ -105,22 +139,43 @@ const styles$1 = {
|
|
|
105
139
|
bgMagentaBright: [105, 49],
|
|
106
140
|
bgCyanBright: [106, 49],
|
|
107
141
|
bgWhiteBright: [107, 49]
|
|
142
|
+
},
|
|
143
|
+
underlineColor: {
|
|
144
|
+
underlineBlack: ["58;5;0", 59],
|
|
145
|
+
underlineRed: ["58;5;1", 59],
|
|
146
|
+
underlineGreen: ["58;5;2", 59],
|
|
147
|
+
underlineYellow: ["58;5;3", 59],
|
|
148
|
+
underlineBlue: ["58;5;4", 59],
|
|
149
|
+
underlineMagenta: ["58;5;5", 59],
|
|
150
|
+
underlineCyan: ["58;5;6", 59],
|
|
151
|
+
underlineWhite: ["58;5;7", 59],
|
|
152
|
+
underlineBlackBright: ["58;5;8", 59],
|
|
153
|
+
underlineGray: ["58;5;8", 59],
|
|
154
|
+
underlineGrey: ["58;5;8", 59],
|
|
155
|
+
underlineRedBright: ["58;5;9", 59],
|
|
156
|
+
underlineGreenBright: ["58;5;10", 59],
|
|
157
|
+
underlineYellowBright: ["58;5;11", 59],
|
|
158
|
+
underlineBlueBright: ["58;5;12", 59],
|
|
159
|
+
underlineMagentaBright: ["58;5;13", 59],
|
|
160
|
+
underlineCyanBright: ["58;5;14", 59],
|
|
161
|
+
underlineWhiteBright: ["58;5;15", 59]
|
|
108
162
|
}
|
|
109
163
|
};
|
|
110
164
|
Object.keys(styles$1.modifier);
|
|
111
165
|
const foregroundColorNames = Object.keys(styles$1.color);
|
|
112
166
|
const backgroundColorNames = Object.keys(styles$1.bgColor);
|
|
167
|
+
Object.keys(styles$1.underlineColor);
|
|
113
168
|
[...foregroundColorNames, ...backgroundColorNames];
|
|
114
169
|
function assembleStyles() {
|
|
115
170
|
const codes = /* @__PURE__ */ new Map();
|
|
116
171
|
for (const [groupName, group] of Object.entries(styles$1)) {
|
|
117
172
|
for (const [styleName, style] of Object.entries(group)) {
|
|
118
173
|
styles$1[styleName] = {
|
|
119
|
-
open: `\
|
|
120
|
-
close: `\
|
|
174
|
+
open: `\u{1B}[${style[0]}m`,
|
|
175
|
+
close: `\u{1B}[${style[1]}m`
|
|
121
176
|
};
|
|
122
177
|
group[styleName] = styles$1[styleName];
|
|
123
|
-
codes.set(style[0], style[1]);
|
|
178
|
+
codes.set(Number.parseInt(style[0], 10), style[1]);
|
|
124
179
|
}
|
|
125
180
|
Object.defineProperty(styles$1, groupName, {
|
|
126
181
|
value: group,
|
|
@@ -133,12 +188,16 @@ function assembleStyles() {
|
|
|
133
188
|
});
|
|
134
189
|
styles$1.color.close = "\x1B[39m";
|
|
135
190
|
styles$1.bgColor.close = "\x1B[49m";
|
|
191
|
+
styles$1.underlineColor.close = "\x1B[59m";
|
|
136
192
|
styles$1.color.ansi = wrapAnsi16();
|
|
137
193
|
styles$1.color.ansi256 = wrapAnsi256();
|
|
138
194
|
styles$1.color.ansi16m = wrapAnsi16m();
|
|
139
195
|
styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
140
196
|
styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
141
197
|
styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
198
|
+
styles$1.underlineColor.ansi = wrapUnderlineAnsi;
|
|
199
|
+
styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
|
|
200
|
+
styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
|
|
142
201
|
Object.defineProperties(styles$1, {
|
|
143
202
|
rgbToAnsi256: {
|
|
144
203
|
value(red, green, blue) {
|
|
@@ -153,7 +212,7 @@ function assembleStyles() {
|
|
|
153
212
|
},
|
|
154
213
|
hexToRgb: {
|
|
155
214
|
value(hex) {
|
|
156
|
-
const matches = /[
|
|
215
|
+
const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
|
|
157
216
|
if (!matches) return [
|
|
158
217
|
0,
|
|
159
218
|
0,
|
|
@@ -213,7 +272,7 @@ function assembleStyles() {
|
|
|
213
272
|
}
|
|
214
273
|
const ansiStyles = assembleStyles();
|
|
215
274
|
//#endregion
|
|
216
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
275
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
217
276
|
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
218
277
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
219
278
|
const position = argv.indexOf(prefix + flag);
|
|
@@ -224,12 +283,15 @@ const { env } = process$1;
|
|
|
224
283
|
let flagForceColor;
|
|
225
284
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
226
285
|
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
286
|
+
function hasNumericForceColor() {
|
|
287
|
+
return /^\d+$/.test(env.FORCE_COLOR);
|
|
288
|
+
}
|
|
227
289
|
function envForceColor() {
|
|
228
|
-
if ("FORCE_COLOR" in env)
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
290
|
+
if (!("FORCE_COLOR" in env)) return;
|
|
291
|
+
if (env.FORCE_COLOR === "false") return 0;
|
|
292
|
+
if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
|
|
293
|
+
if (!hasNumericForceColor()) return;
|
|
294
|
+
return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
233
295
|
}
|
|
234
296
|
function translateLevel(level) {
|
|
235
297
|
if (level === 0) return false;
|
|
@@ -249,6 +311,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
249
311
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
250
312
|
if (hasFlag("color=256")) return 2;
|
|
251
313
|
}
|
|
314
|
+
if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
|
|
252
315
|
if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
|
|
253
316
|
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
254
317
|
const min = forceColor || 0;
|
|
@@ -273,19 +336,19 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
273
336
|
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
274
337
|
return min;
|
|
275
338
|
}
|
|
276
|
-
if ("TEAMCITY_VERSION" in env) return /^(9\.
|
|
339
|
+
if ("TEAMCITY_VERSION" in env) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
277
340
|
if (env.COLORTERM === "truecolor") return 3;
|
|
278
341
|
if (env.TERM === "xterm-kitty") return 3;
|
|
279
342
|
if (env.TERM === "xterm-ghostty") return 3;
|
|
280
343
|
if (env.TERM === "wezterm") return 3;
|
|
281
344
|
if ("TERM_PROGRAM" in env) {
|
|
282
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
345
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
|
|
283
346
|
switch (env.TERM_PROGRAM) {
|
|
284
347
|
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
285
348
|
case "Apple_Terminal": return 2;
|
|
286
349
|
}
|
|
287
350
|
}
|
|
288
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
351
|
+
if (/-256(?:color)?$/i.test(env.TERM)) return 2;
|
|
289
352
|
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
290
353
|
if ("COLORTERM" in env) return 1;
|
|
291
354
|
return min;
|
|
@@ -296,55 +359,34 @@ function createSupportsColor(stream, options = {}) {
|
|
|
296
359
|
...options
|
|
297
360
|
}));
|
|
298
361
|
}
|
|
299
|
-
|
|
362
|
+
//#endregion
|
|
363
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
|
|
364
|
+
const { stdout: stdoutColor, stderr: stderrColor } = {
|
|
300
365
|
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
301
366
|
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
302
367
|
};
|
|
303
|
-
//#endregion
|
|
304
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
305
|
-
function stringReplaceAll(string, substring, replacer) {
|
|
306
|
-
let index = string.indexOf(substring);
|
|
307
|
-
if (index === -1) return string;
|
|
308
|
-
const substringLength = substring.length;
|
|
309
|
-
let endIndex = 0;
|
|
310
|
-
let returnValue = "";
|
|
311
|
-
do {
|
|
312
|
-
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
313
|
-
endIndex = index + substringLength;
|
|
314
|
-
index = string.indexOf(substring, endIndex);
|
|
315
|
-
} while (index !== -1);
|
|
316
|
-
returnValue += string.slice(endIndex);
|
|
317
|
-
return returnValue;
|
|
318
|
-
}
|
|
319
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
320
|
-
let endIndex = 0;
|
|
321
|
-
let returnValue = "";
|
|
322
|
-
do {
|
|
323
|
-
const gotCR = string[index - 1] === "\r";
|
|
324
|
-
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
325
|
-
endIndex = index + 1;
|
|
326
|
-
index = string.indexOf("\n", endIndex);
|
|
327
|
-
} while (index !== -1);
|
|
328
|
-
returnValue += string.slice(endIndex);
|
|
329
|
-
return returnValue;
|
|
330
|
-
}
|
|
331
|
-
//#endregion
|
|
332
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
333
|
-
const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
|
|
334
368
|
const GENERATOR = Symbol("GENERATOR");
|
|
335
369
|
const STYLER = Symbol("STYLER");
|
|
336
370
|
const IS_EMPTY = Symbol("IS_EMPTY");
|
|
337
|
-
const
|
|
338
|
-
"ansi",
|
|
339
|
-
"ansi",
|
|
340
|
-
"ansi256",
|
|
341
|
-
"ansi16m"
|
|
342
|
-
];
|
|
371
|
+
const LEVEL = Symbol("LEVEL");
|
|
343
372
|
const styles = Object.create(null);
|
|
373
|
+
const assertValidLevel = (level) => {
|
|
374
|
+
if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
|
|
375
|
+
};
|
|
376
|
+
const levelDescriptor = {
|
|
377
|
+
enumerable: true,
|
|
378
|
+
get() {
|
|
379
|
+
return this[LEVEL];
|
|
380
|
+
},
|
|
381
|
+
set(level) {
|
|
382
|
+
assertValidLevel(level);
|
|
383
|
+
this[LEVEL] = level;
|
|
384
|
+
}
|
|
385
|
+
};
|
|
344
386
|
const applyOptions = (object, options = {}) => {
|
|
345
|
-
if (options.level
|
|
387
|
+
if (options.level !== void 0) assertValidLevel(options.level);
|
|
346
388
|
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
347
|
-
object
|
|
389
|
+
object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
|
|
348
390
|
};
|
|
349
391
|
const chalkFactory = (options) => {
|
|
350
392
|
const chalk = (...strings) => strings.join(" ");
|
|
@@ -366,35 +408,58 @@ styles.visible = { get() {
|
|
|
366
408
|
Object.defineProperty(this, "visible", { value: builder });
|
|
367
409
|
return builder;
|
|
368
410
|
} };
|
|
369
|
-
const
|
|
411
|
+
const createModelConverters = (model, type) => {
|
|
412
|
+
const style = ansiStyles[type];
|
|
370
413
|
if (model === "rgb") {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
return
|
|
414
|
+
const ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));
|
|
415
|
+
const ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));
|
|
416
|
+
return [
|
|
417
|
+
ansi,
|
|
418
|
+
ansi,
|
|
419
|
+
ansi256,
|
|
420
|
+
style.ansi16m
|
|
421
|
+
];
|
|
422
|
+
}
|
|
423
|
+
if (model === "hex") {
|
|
424
|
+
const ansi = (hex) => style.ansi(ansiStyles.hexToAnsi(hex));
|
|
425
|
+
const ansi256 = (hex) => style.ansi256(ansiStyles.hexToAnsi256(hex));
|
|
426
|
+
return [
|
|
427
|
+
ansi,
|
|
428
|
+
ansi,
|
|
429
|
+
ansi256,
|
|
430
|
+
(hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
|
|
431
|
+
];
|
|
374
432
|
}
|
|
375
|
-
|
|
376
|
-
return
|
|
433
|
+
const ansi = (code) => style.ansi(ansiStyles.ansi256ToAnsi(code));
|
|
434
|
+
return [
|
|
435
|
+
ansi,
|
|
436
|
+
ansi,
|
|
437
|
+
style.ansi256,
|
|
438
|
+
style.ansi256
|
|
439
|
+
];
|
|
377
440
|
};
|
|
378
441
|
for (const model of [
|
|
379
442
|
"rgb",
|
|
380
443
|
"hex",
|
|
381
444
|
"ansi256"
|
|
382
445
|
]) {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
446
|
+
const capitalizedModel = model[0].toUpperCase() + model.slice(1);
|
|
447
|
+
for (const [styleName, type] of [
|
|
448
|
+
[model, "color"],
|
|
449
|
+
["bg" + capitalizedModel, "bgColor"],
|
|
450
|
+
["underline" + capitalizedModel, "underlineColor"]
|
|
451
|
+
]) {
|
|
452
|
+
const { close } = ansiStyles[type];
|
|
453
|
+
const converters = createModelConverters(model, type);
|
|
454
|
+
styles[styleName] = { get() {
|
|
455
|
+
const styleFunction = function(first, second, third) {
|
|
456
|
+
const open = converters[this.level](first, second, third);
|
|
457
|
+
return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
|
|
458
|
+
};
|
|
459
|
+
Object.defineProperty(this, styleName, { value: styleFunction });
|
|
460
|
+
return styleFunction;
|
|
461
|
+
} };
|
|
462
|
+
}
|
|
398
463
|
}
|
|
399
464
|
const proto = Object.defineProperties(() => {}, {
|
|
400
465
|
...styles,
|
|
@@ -427,15 +492,19 @@ const createStyler = (open, close, parent) => {
|
|
|
427
492
|
};
|
|
428
493
|
};
|
|
429
494
|
const createBuilder = (self, _styler, _isEmpty) => {
|
|
430
|
-
const builder = (...arguments_) =>
|
|
495
|
+
const builder = (...arguments_) => {
|
|
496
|
+
if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
|
|
497
|
+
if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
|
|
498
|
+
return applyStyle(builder, arguments_.join(" "));
|
|
499
|
+
};
|
|
431
500
|
Object.setPrototypeOf(builder, proto);
|
|
432
|
-
builder[GENERATOR] = self;
|
|
501
|
+
builder[GENERATOR] = self[GENERATOR] ?? self;
|
|
433
502
|
builder[STYLER] = _styler;
|
|
434
503
|
builder[IS_EMPTY] = _isEmpty;
|
|
435
504
|
return builder;
|
|
436
505
|
};
|
|
437
506
|
const applyStyle = (self, string) => {
|
|
438
|
-
if (self
|
|
507
|
+
if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
|
|
439
508
|
let styler = self[STYLER];
|
|
440
509
|
if (styler === void 0) return string;
|
|
441
510
|
const { openAll, closeAll } = styler;
|
|
@@ -447,7 +516,10 @@ const applyStyle = (self, string) => {
|
|
|
447
516
|
if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
448
517
|
return openAll + string + closeAll;
|
|
449
518
|
};
|
|
450
|
-
Object.defineProperties(createChalk.prototype,
|
|
519
|
+
Object.defineProperties(createChalk.prototype, {
|
|
520
|
+
...styles,
|
|
521
|
+
level: levelDescriptor
|
|
522
|
+
});
|
|
451
523
|
const chalk = createChalk();
|
|
452
524
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
453
525
|
//#endregion
|
|
@@ -456,7 +528,7 @@ function Ht(n) {
|
|
|
456
528
|
return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
|
|
457
529
|
}
|
|
458
530
|
function ps(n) {
|
|
459
|
-
return n.replace(as, fe$1).replace(ls, ue$1).replace(cs, qt).replace(fs$
|
|
531
|
+
return n.replace(as, fe$1).replace(ls, ue$1).replace(cs, qt).replace(fs$4, de$1).replace(us, pe$1);
|
|
460
532
|
}
|
|
461
533
|
function ms(n) {
|
|
462
534
|
return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os$2, ",").replace(hs, ".");
|
|
@@ -548,7 +620,7 @@ function Ut(n, t = {}) {
|
|
|
548
620
|
function es(n, t = {}) {
|
|
549
621
|
return new I$1(n, t).iterate();
|
|
550
622
|
}
|
|
551
|
-
var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$
|
|
623
|
+
var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$4, us, ds, at, Ss, lt, Es, we$1, ye$1, W, xs, be$1, vs, Ct, Cs, Ts, As, ks, Kt, Se$1, Ee$1, Q$1, tt, O$2, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce$1, Te$1, Ae$1, xe$1, A$1, Vs, Ys, Xs, Js, N$1, Zs, ke$1, Qs, ti, ve$1, ei, D, si, Oe$1, Vt, Fe$1, At, Re$1, ii, q$1, De$1, Tt, ri, ft, Ne$1, oi, hi, ai, G, H$1, K$1, kt, ut, Rt, _e$1, Ot, Le$1, P, et, v$1, dt, st, C$1, F, T, Yt, Ft, k, x$1, Xt, Jt, We$1, Zt, B, Qt, Dt, pt, Y$1, M, mt, li, ci, fi, ui, Mt, te$1, di, pi, V, vi, wt, Ue$1, $e, Ri, Oi, L$1, Ge$1, He$1, U, qe$1, Ke$1, X$1, Ve$1, _$1, gt, se$1, je$1, yt, j, Nt, Lt, Ie$1, Fi, ie$1, ze$1, bt, Be$1, _t, Wt, ne$1, Ye$1, R$2, Pt, jt, It, it, rt, St, Xe$1, Di, Mi, Ni, nt, _i, ot, oe$1, he$1, ae$1, Et, Li, zt, xt, vt, Pi, I$1, le$1, ji, Ii, zi, Bi, Ui, Ze$1;
|
|
552
624
|
var init_index_min = __esmMin((() => {
|
|
553
625
|
Gt = (n, t, e) => {
|
|
554
626
|
let s = n instanceof RegExp ? ce(n, e) : n, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
|
|
@@ -593,7 +665,7 @@ var init_index_min = __esmMin((() => {
|
|
|
593
665
|
as = /\\\\/g;
|
|
594
666
|
ls = /\\{/g;
|
|
595
667
|
cs = /\\}/g;
|
|
596
|
-
fs$
|
|
668
|
+
fs$4 = /\\,/g;
|
|
597
669
|
us = /\\./g;
|
|
598
670
|
ds = 1e5;
|
|
599
671
|
at = (n) => {
|
|
@@ -1333,7 +1405,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1333
1405
|
O$2.escape = tt;
|
|
1334
1406
|
O$2.unescape = W;
|
|
1335
1407
|
si = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
1336
|
-
Oe = /* @__PURE__ */ new Set();
|
|
1408
|
+
Oe$1 = /* @__PURE__ */ new Set();
|
|
1337
1409
|
Vt = typeof process == "object" && process ? process : {};
|
|
1338
1410
|
Fe$1 = (n, t, e, s) => {
|
|
1339
1411
|
typeof Vt.emitWarning == "function" ? Vt.emitWarning(n, t, e, s) : console.error(`[${e}] ${t}: ${n}`);
|
|
@@ -1366,7 +1438,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1366
1438
|
n && (n = !1, Fe$1("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
|
|
1367
1439
|
};
|
|
1368
1440
|
}
|
|
1369
|
-
ii = (n) => !Oe.has(n);
|
|
1441
|
+
ii = (n) => !Oe$1.has(n);
|
|
1370
1442
|
q$1 = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
|
|
1371
1443
|
De$1 = (n) => q$1(n) ? n <= Math.pow(2, 8) ? Uint8Array : n <= Math.pow(2, 16) ? Uint16Array : n <= Math.pow(2, 32) ? Uint32Array : n <= Number.MAX_SAFE_INTEGER ? Tt : null : null;
|
|
1372
1444
|
Tt = class extends Array {
|
|
@@ -1519,11 +1591,11 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1519
1591
|
if (this.#t === 0 && this.ttl === 0 && this.#s === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
1520
1592
|
if (!this.ttlAutopurge && !this.#t && !this.#s) {
|
|
1521
1593
|
let $t = "LRU_CACHE_UNBOUNDED";
|
|
1522
|
-
ii($t) && (Oe.add($t), Fe$1("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $t, Me));
|
|
1594
|
+
ii($t) && (Oe$1.add($t), Fe$1("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $t, Me));
|
|
1523
1595
|
}
|
|
1524
1596
|
}
|
|
1525
1597
|
getRemainingTTL(t) {
|
|
1526
|
-
return this.#f.has(t) ?
|
|
1598
|
+
return this.#f.has(t) ? 1 / 0 : 0;
|
|
1527
1599
|
}
|
|
1528
1600
|
#M() {
|
|
1529
1601
|
let t = new Tt(this.#t), e = new Tt(this.#t);
|
|
@@ -1559,7 +1631,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1559
1631
|
let h = this.#f.get(o);
|
|
1560
1632
|
if (h === void 0) return 0;
|
|
1561
1633
|
let a = t[h], l = e[h];
|
|
1562
|
-
if (!a || !l) return
|
|
1634
|
+
if (!a || !l) return 1 / 0;
|
|
1563
1635
|
return a - ((i || r()) - l);
|
|
1564
1636
|
}, this.#v = (o) => {
|
|
1565
1637
|
let h = e[o], a = t[o];
|
|
@@ -2303,12 +2375,13 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2303
2375
|
return oi;
|
|
2304
2376
|
}
|
|
2305
2377
|
};
|
|
2378
|
+
vi = realpathSync.native;
|
|
2306
2379
|
wt = {
|
|
2307
2380
|
lstatSync,
|
|
2308
2381
|
readdir,
|
|
2309
2382
|
readdirSync,
|
|
2310
2383
|
readlinkSync,
|
|
2311
|
-
realpathSync:
|
|
2384
|
+
realpathSync: vi,
|
|
2312
2385
|
promises: {
|
|
2313
2386
|
lstat,
|
|
2314
2387
|
readdir: readdir$1,
|
|
@@ -2324,10 +2397,10 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2324
2397
|
...n.promises || {}
|
|
2325
2398
|
}
|
|
2326
2399
|
};
|
|
2327
|
-
$e
|
|
2328
|
-
Ri = (n) => n.replace(/\//g, "\\").replace($e
|
|
2400
|
+
$e = /^\\\\\?\\([a-z]:)\\?$/i;
|
|
2401
|
+
Ri = (n) => n.replace(/\//g, "\\").replace($e, "$1\\");
|
|
2329
2402
|
Oi = /[\\\/]/;
|
|
2330
|
-
L = 0;
|
|
2403
|
+
L$1 = 0;
|
|
2331
2404
|
Ge$1 = 1;
|
|
2332
2405
|
He$1 = 2;
|
|
2333
2406
|
U = 4;
|
|
@@ -2343,17 +2416,17 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2343
2416
|
j = 128;
|
|
2344
2417
|
Nt = 256;
|
|
2345
2418
|
Lt = 512;
|
|
2346
|
-
Ie = yt | j | Lt;
|
|
2419
|
+
Ie$1 = yt | j | Lt;
|
|
2347
2420
|
Fi = 1023;
|
|
2348
|
-
ie$1 = (n) => n.isFile() ? Ke$1 : n.isDirectory() ? U : n.isSymbolicLink() ? X$1 : n.isCharacterDevice() ? He$1 : n.isBlockDevice() ? qe$1 : n.isSocket() ? Ve$1 : n.isFIFO() ? Ge$1 : L;
|
|
2349
|
-
ze$1 = new ft({ max:
|
|
2421
|
+
ie$1 = (n) => n.isFile() ? Ke$1 : n.isDirectory() ? U : n.isSymbolicLink() ? X$1 : n.isCharacterDevice() ? He$1 : n.isBlockDevice() ? qe$1 : n.isSocket() ? Ve$1 : n.isFIFO() ? Ge$1 : L$1;
|
|
2422
|
+
ze$1 = new ft({ max: 4096 });
|
|
2350
2423
|
bt = (n) => {
|
|
2351
2424
|
let t = ze$1.get(n);
|
|
2352
2425
|
if (t) return t;
|
|
2353
2426
|
let e = n.normalize("NFKD");
|
|
2354
2427
|
return ze$1.set(n, e), e;
|
|
2355
2428
|
};
|
|
2356
|
-
Be$1 = new ft({ max:
|
|
2429
|
+
Be$1 = new ft({ max: 4096 });
|
|
2357
2430
|
_t = (n) => {
|
|
2358
2431
|
let t = Be$1.get(n);
|
|
2359
2432
|
if (t) return t;
|
|
@@ -2366,7 +2439,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2366
2439
|
}
|
|
2367
2440
|
};
|
|
2368
2441
|
ne$1 = class extends ft {
|
|
2369
|
-
constructor(t =
|
|
2442
|
+
constructor(t = 16384) {
|
|
2370
2443
|
super({
|
|
2371
2444
|
maxSize: t,
|
|
2372
2445
|
sizeCalculation: (e) => e.length + 1
|
|
@@ -2470,7 +2543,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2470
2543
|
get path() {
|
|
2471
2544
|
return this.parentPath;
|
|
2472
2545
|
}
|
|
2473
|
-
constructor(t, e = L, s, i, r, o, h) {
|
|
2546
|
+
constructor(t, e = L$1, s, i, r, o, h) {
|
|
2474
2547
|
this.name = t, this.#C = r ? _t(t) : bt(t), this.#e = e & Fi, this.nocase = r, this.roots = i, this.root = s || this, this.#_ = o, this.#g = h.fullpath, this.#x = h.relative, this.#A = h.relativePosix, this.parent = h.parent, this.parent ? this.#t = this.parent.#t : this.#t = Ue$1(h.fs);
|
|
2475
2548
|
}
|
|
2476
2549
|
depth() {
|
|
@@ -2500,7 +2573,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2500
2573
|
if (t === "..") return this.parent || this;
|
|
2501
2574
|
let s = this.children(), i = this.nocase ? _t(t) : bt(t);
|
|
2502
2575
|
for (let a of s) if (a.#C === i) return a;
|
|
2503
|
-
let r = this.parent ? this.sep : "", o = this.#g ? this.#g + r + t : void 0, h = this.newChild(t, L, {
|
|
2576
|
+
let r = this.parent ? this.sep : "", o = this.#g ? this.#g + r + t : void 0, h = this.newChild(t, L$1, {
|
|
2504
2577
|
...e,
|
|
2505
2578
|
parent: this,
|
|
2506
2579
|
fullpath: o
|
|
@@ -2542,7 +2615,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2542
2615
|
return this.#y = s;
|
|
2543
2616
|
}
|
|
2544
2617
|
isUnknown() {
|
|
2545
|
-
return (this.#e & _$1) === L;
|
|
2618
|
+
return (this.#e & _$1) === L$1;
|
|
2546
2619
|
}
|
|
2547
2620
|
isType(t) {
|
|
2548
2621
|
return this[`is${t}`]();
|
|
@@ -2588,7 +2661,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2588
2661
|
if (this.#M) return !0;
|
|
2589
2662
|
if (!this.parent) return !1;
|
|
2590
2663
|
let t = this.#e & _$1;
|
|
2591
|
-
return !(t !== L && t !== X$1 || this.#e & Nt || this.#e & j);
|
|
2664
|
+
return !(t !== L$1 && t !== X$1 || this.#e & Nt || this.#e & j);
|
|
2592
2665
|
}
|
|
2593
2666
|
calledReaddir() {
|
|
2594
2667
|
return !!(this.#e & se$1);
|
|
@@ -2659,7 +2732,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2659
2732
|
}
|
|
2660
2733
|
#B(t, e) {
|
|
2661
2734
|
let s = ie$1(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & _$1;
|
|
2662
|
-
return r !== U && r !== X$1 && r !== L && (i.#e |= yt), e.unshift(i), e.provisional++, i;
|
|
2735
|
+
return r !== U && r !== X$1 && r !== L$1 && (i.#e |= yt), e.unshift(i), e.provisional++, i;
|
|
2663
2736
|
}
|
|
2664
2737
|
#U(t, e) {
|
|
2665
2738
|
for (let s = e.provisional; s < e.length; s++) {
|
|
@@ -2689,7 +2762,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2689
2762
|
let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev: u, gid: c, ino: d, mode: f, mtime: m, mtimeMs: p, nlink: w, rdev: g, size: S, uid: E } = t;
|
|
2690
2763
|
this.#b = e, this.#a = s, this.#m = i, this.#E = r, this.#c = o, this.#f = h, this.#R = a, this.#d = l, this.#s = u, this.#S = c, this.#h = d, this.#n = f, this.#p = m, this.#i = p, this.#r = w, this.#w = g, this.#u = S, this.#o = E;
|
|
2691
2764
|
let y = ie$1(t);
|
|
2692
|
-
this.#e = this.#e & gt | y | je$1, y !== L && y !== U && y !== X$1 && (this.#e |= yt);
|
|
2765
|
+
this.#e = this.#e & gt | y | je$1, y !== L$1 && y !== U && y !== X$1 && (this.#e |= yt);
|
|
2693
2766
|
}
|
|
2694
2767
|
#W = [];
|
|
2695
2768
|
#O = !1;
|
|
@@ -2755,12 +2828,12 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2755
2828
|
return t.slice(0, t.provisional);
|
|
2756
2829
|
}
|
|
2757
2830
|
canReaddir() {
|
|
2758
|
-
if (this.#e & Ie) return !1;
|
|
2831
|
+
if (this.#e & Ie$1) return !1;
|
|
2759
2832
|
let t = _$1 & this.#e;
|
|
2760
|
-
return t === L || t === U || t === X$1;
|
|
2833
|
+
return t === L$1 || t === U || t === X$1;
|
|
2761
2834
|
}
|
|
2762
2835
|
shouldWalk(t, e) {
|
|
2763
|
-
return (this.#e & U) === U && !(this.#e & Ie) && !t.has(this) && (!e || e(this));
|
|
2836
|
+
return (this.#e & U) === U && !(this.#e & Ie$1) && !t.has(this) && (!e || e(this));
|
|
2764
2837
|
}
|
|
2765
2838
|
async realpath() {
|
|
2766
2839
|
if (this.#k) return this.#k;
|
|
@@ -2791,10 +2864,10 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2791
2864
|
Pt = class n extends R$2 {
|
|
2792
2865
|
sep = "\\";
|
|
2793
2866
|
splitSep = Oi;
|
|
2794
|
-
constructor(t, e = L, s, i, r, o, h) {
|
|
2867
|
+
constructor(t, e = L$1, s, i, r, o, h) {
|
|
2795
2868
|
super(t, e, s, i, r, o, h);
|
|
2796
2869
|
}
|
|
2797
|
-
newChild(t, e = L, s = {}) {
|
|
2870
|
+
newChild(t, e = L$1, s = {}) {
|
|
2798
2871
|
return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
|
|
2799
2872
|
}
|
|
2800
2873
|
getRootString(t) {
|
|
@@ -2806,13 +2879,13 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2806
2879
|
return this.roots[t] = new it(t, this).root;
|
|
2807
2880
|
}
|
|
2808
2881
|
sameRoot(t, e = this.root.name) {
|
|
2809
|
-
return t = t.toUpperCase().replace(/\//g, "\\").replace($e
|
|
2882
|
+
return t = t.toUpperCase().replace(/\//g, "\\").replace($e, "$1\\"), t === e;
|
|
2810
2883
|
}
|
|
2811
2884
|
};
|
|
2812
2885
|
jt = class n extends R$2 {
|
|
2813
2886
|
splitSep = "/";
|
|
2814
2887
|
sep = "/";
|
|
2815
|
-
constructor(t, e = L, s, i, r, o, h) {
|
|
2888
|
+
constructor(t, e = L$1, s, i, r, o, h) {
|
|
2816
2889
|
super(t, e, s, i, r, o, h);
|
|
2817
2890
|
}
|
|
2818
2891
|
getRootString(t) {
|
|
@@ -2821,7 +2894,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2821
2894
|
getRoot(t) {
|
|
2822
2895
|
return this.root;
|
|
2823
2896
|
}
|
|
2824
|
-
newChild(t, e = L, s = {}) {
|
|
2897
|
+
newChild(t, e = L$1, s = {}) {
|
|
2825
2898
|
return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
|
|
2826
2899
|
}
|
|
2827
2900
|
};
|
|
@@ -2835,7 +2908,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2835
2908
|
#n;
|
|
2836
2909
|
nocase;
|
|
2837
2910
|
#r;
|
|
2838
|
-
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r =
|
|
2911
|
+
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16384, fs: o = wt } = {}) {
|
|
2839
2912
|
this.#r = Ue$1(o), (t instanceof URL || t.startsWith("file://")) && (t = fileURLToPath(t));
|
|
2840
2913
|
let h = e.resolve(t);
|
|
2841
2914
|
this.roots = Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne$1(r);
|
|
@@ -3403,7 +3476,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3403
3476
|
includeChildMatches;
|
|
3404
3477
|
constructor(t, e, s) {
|
|
3405
3478
|
if (this.patterns = t, this.path = e, this.opts = s, this.#n = !s.posix && s.platform === "win32" ? "\\" : "/", this.includeChildMatches = s.includeChildMatches !== !1, (s.ignore || !this.includeChildMatches) && (this.#s = Li(s.ignore ?? [], s), !this.includeChildMatches && typeof this.#s.add != "function")) throw new Error("cannot ignore child matches, ignore lacks add() method.");
|
|
3406
|
-
this.maxDepth = s.maxDepth ||
|
|
3479
|
+
this.maxDepth = s.maxDepth || 1 / 0, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
|
|
3407
3480
|
this.#t.length = 0;
|
|
3408
3481
|
}));
|
|
3409
3482
|
}
|
|
@@ -3440,7 +3513,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3440
3513
|
return this.matchCheckTest(r, e);
|
|
3441
3514
|
}
|
|
3442
3515
|
matchCheckTest(t, e) {
|
|
3443
|
-
return t && (this.maxDepth ===
|
|
3516
|
+
return t && (this.maxDepth === 1 / 0 || t.depth() <= this.maxDepth) && (!e || t.canReaddir()) && (!this.opts.nodir || !t.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !t.isSymbolicLink() || !t.realpathCached()?.isDirectory()) && !this.#r(t) ? t : void 0;
|
|
3444
3517
|
}
|
|
3445
3518
|
matchCheckSync(t, e) {
|
|
3446
3519
|
if (e && this.opts.nodir) return;
|
|
@@ -3497,7 +3570,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3497
3570
|
};
|
|
3498
3571
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
|
|
3499
3572
|
for (let h of s.subwalkTargets()) {
|
|
3500
|
-
if (this.maxDepth !==
|
|
3573
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3501
3574
|
r++;
|
|
3502
3575
|
let a = h.readdirCached();
|
|
3503
3576
|
h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), !0);
|
|
@@ -3528,7 +3601,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3528
3601
|
};
|
|
3529
3602
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
|
|
3530
3603
|
for (let h of s.subwalkTargets()) {
|
|
3531
|
-
if (this.maxDepth !==
|
|
3604
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3532
3605
|
r++;
|
|
3533
3606
|
let a = h.readdirSync();
|
|
3534
3607
|
this.walkCB3Sync(h, a, s, o);
|
|
@@ -3620,7 +3693,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3620
3693
|
patterns;
|
|
3621
3694
|
constructor(t, e) {
|
|
3622
3695
|
if (!e) throw new TypeError("glob options required");
|
|
3623
|
-
if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = fileURLToPath(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth :
|
|
3696
|
+
if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = fileURLToPath(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : 1 / 0, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
|
|
3624
3697
|
if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === !1, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
|
|
3625
3698
|
if (e.noglobstar) throw new TypeError("base matching requires globstar");
|
|
3626
3699
|
t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
|
|
@@ -3663,7 +3736,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3663
3736
|
async walk() {
|
|
3664
3737
|
return [...await new xt(this.patterns, this.scurry.cwd, {
|
|
3665
3738
|
...this.opts,
|
|
3666
|
-
maxDepth: this.maxDepth !==
|
|
3739
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3667
3740
|
platform: this.platform,
|
|
3668
3741
|
nocase: this.nocase,
|
|
3669
3742
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3672,7 +3745,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3672
3745
|
walkSync() {
|
|
3673
3746
|
return [...new xt(this.patterns, this.scurry.cwd, {
|
|
3674
3747
|
...this.opts,
|
|
3675
|
-
maxDepth: this.maxDepth !==
|
|
3748
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3676
3749
|
platform: this.platform,
|
|
3677
3750
|
nocase: this.nocase,
|
|
3678
3751
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3681,7 +3754,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3681
3754
|
stream() {
|
|
3682
3755
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3683
3756
|
...this.opts,
|
|
3684
|
-
maxDepth: this.maxDepth !==
|
|
3757
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3685
3758
|
platform: this.platform,
|
|
3686
3759
|
nocase: this.nocase,
|
|
3687
3760
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3690,7 +3763,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3690
3763
|
streamSync() {
|
|
3691
3764
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3692
3765
|
...this.opts,
|
|
3693
|
-
maxDepth: this.maxDepth !==
|
|
3766
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3694
3767
|
platform: this.platform,
|
|
3695
3768
|
nocase: this.nocase,
|
|
3696
3769
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3746,7 +3819,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3746
3819
|
var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3747
3820
|
module.exports = isexe;
|
|
3748
3821
|
isexe.sync = sync;
|
|
3749
|
-
var fs$
|
|
3822
|
+
var fs$3 = __require("fs");
|
|
3750
3823
|
function checkPathExt(path, options) {
|
|
3751
3824
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
3752
3825
|
if (!pathext) return true;
|
|
@@ -3763,12 +3836,12 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3763
3836
|
return checkPathExt(path, options);
|
|
3764
3837
|
}
|
|
3765
3838
|
function isexe(path, options, cb) {
|
|
3766
|
-
fs$
|
|
3839
|
+
fs$3.stat(path, function(er, stat) {
|
|
3767
3840
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
3768
3841
|
});
|
|
3769
3842
|
}
|
|
3770
3843
|
function sync(path, options) {
|
|
3771
|
-
return checkStat(fs$
|
|
3844
|
+
return checkStat(fs$3.statSync(path), path, options);
|
|
3772
3845
|
}
|
|
3773
3846
|
}));
|
|
3774
3847
|
//#endregion
|
|
@@ -3776,14 +3849,14 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3776
3849
|
var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3777
3850
|
module.exports = isexe;
|
|
3778
3851
|
isexe.sync = sync;
|
|
3779
|
-
var fs$
|
|
3852
|
+
var fs$2 = __require("fs");
|
|
3780
3853
|
function isexe(path, options, cb) {
|
|
3781
|
-
fs$
|
|
3854
|
+
fs$2.stat(path, function(er, stat) {
|
|
3782
3855
|
cb(er, er ? false : checkStat(stat, options));
|
|
3783
3856
|
});
|
|
3784
3857
|
}
|
|
3785
3858
|
function sync(path, options) {
|
|
3786
|
-
return checkStat(fs$
|
|
3859
|
+
return checkStat(fs$2.statSync(path), options);
|
|
3787
3860
|
}
|
|
3788
3861
|
function checkStat(stat, options) {
|
|
3789
3862
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -3847,13 +3920,14 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3847
3920
|
//#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
3848
3921
|
var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3849
3922
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
3850
|
-
const path$
|
|
3923
|
+
const path$4 = __require("path");
|
|
3851
3924
|
const COLON = isWindows ? ";" : ":";
|
|
3852
3925
|
const isexe = require_isexe();
|
|
3853
3926
|
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
3854
3927
|
const getPathInfo = (cmd, opt) => {
|
|
3855
3928
|
const colon = opt.colon || COLON;
|
|
3856
|
-
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH ||
|
|
3929
|
+
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH ||
|
|
3930
|
+
/* istanbul ignore next: very unusual */ "").split(colon)];
|
|
3857
3931
|
const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
3858
3932
|
const pathExt = isWindows ? pathExtExe.split(colon) : [""];
|
|
3859
3933
|
if (isWindows) {
|
|
@@ -3877,7 +3951,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3877
3951
|
if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
3878
3952
|
const ppRaw = pathEnv[i];
|
|
3879
3953
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
3880
|
-
const pCmd = path$
|
|
3954
|
+
const pCmd = path$4.join(pathPart, cmd);
|
|
3881
3955
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
3882
3956
|
resolve(subStep(p, i, 0));
|
|
3883
3957
|
});
|
|
@@ -3885,8 +3959,10 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3885
3959
|
if (ii === pathExt.length) return resolve(step(i + 1));
|
|
3886
3960
|
const ext = pathExt[ii];
|
|
3887
3961
|
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
3888
|
-
if (!er && is)
|
|
3889
|
-
|
|
3962
|
+
if (!er && is) {
|
|
3963
|
+
if (opt.all) found.push(p + ext);
|
|
3964
|
+
else return resolve(p + ext);
|
|
3965
|
+
}
|
|
3890
3966
|
return resolve(subStep(p, i, ii + 1));
|
|
3891
3967
|
});
|
|
3892
3968
|
});
|
|
@@ -3899,13 +3975,15 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3899
3975
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
3900
3976
|
const ppRaw = pathEnv[i];
|
|
3901
3977
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
3902
|
-
const pCmd = path$
|
|
3978
|
+
const pCmd = path$4.join(pathPart, cmd);
|
|
3903
3979
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
3904
3980
|
for (let j = 0; j < pathExt.length; j++) {
|
|
3905
3981
|
const cur = p + pathExt[j];
|
|
3906
3982
|
try {
|
|
3907
|
-
if (isexe.sync(cur, { pathExt: pathExtExe }))
|
|
3908
|
-
|
|
3983
|
+
if (isexe.sync(cur, { pathExt: pathExtExe })) {
|
|
3984
|
+
if (opt.all) found.push(cur);
|
|
3985
|
+
else return cur;
|
|
3986
|
+
}
|
|
3909
3987
|
} catch (ex) {}
|
|
3910
3988
|
}
|
|
3911
3989
|
}
|
|
@@ -3930,7 +4008,7 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3930
4008
|
//#endregion
|
|
3931
4009
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
3932
4010
|
var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3933
|
-
const path$
|
|
4011
|
+
const path$3 = __require("path");
|
|
3934
4012
|
const which = require_which();
|
|
3935
4013
|
const getPathKey = require_path_key();
|
|
3936
4014
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -3945,12 +4023,12 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3945
4023
|
try {
|
|
3946
4024
|
resolved = which.sync(parsed.command, {
|
|
3947
4025
|
path: env[getPathKey({ env })],
|
|
3948
|
-
pathExt: withoutPathExt ? path$
|
|
4026
|
+
pathExt: withoutPathExt ? path$3.delimiter : void 0
|
|
3949
4027
|
});
|
|
3950
4028
|
} catch (e) {} finally {
|
|
3951
4029
|
if (shouldSwitchCwd) process.chdir(cwd);
|
|
3952
4030
|
}
|
|
3953
|
-
if (resolved) resolved = path$
|
|
4031
|
+
if (resolved) resolved = path$3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
3954
4032
|
return resolved;
|
|
3955
4033
|
}
|
|
3956
4034
|
function resolveCommand(parsed) {
|
|
@@ -3999,16 +4077,16 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
3999
4077
|
//#endregion
|
|
4000
4078
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
4001
4079
|
var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4002
|
-
const fs$
|
|
4080
|
+
const fs$1 = __require("fs");
|
|
4003
4081
|
const shebangCommand = require_shebang_command();
|
|
4004
4082
|
function readShebang(command) {
|
|
4005
4083
|
const size = 150;
|
|
4006
4084
|
const buffer = Buffer.alloc(size);
|
|
4007
4085
|
let fd;
|
|
4008
4086
|
try {
|
|
4009
|
-
fd = fs$
|
|
4010
|
-
fs$
|
|
4011
|
-
fs$
|
|
4087
|
+
fd = fs$1.openSync(command, "r");
|
|
4088
|
+
fs$1.readSync(fd, buffer, 0, size, 0);
|
|
4089
|
+
fs$1.closeSync(fd);
|
|
4012
4090
|
} catch (e) {}
|
|
4013
4091
|
return shebangCommand(buffer.toString());
|
|
4014
4092
|
}
|
|
@@ -4017,7 +4095,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4017
4095
|
//#endregion
|
|
4018
4096
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
4019
4097
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4020
|
-
const path$
|
|
4098
|
+
const path$2 = __require("path");
|
|
4021
4099
|
const resolveCommand = require_resolveCommand();
|
|
4022
4100
|
const escape = require_escape();
|
|
4023
4101
|
const readShebang = require_readShebang();
|
|
@@ -4040,7 +4118,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4040
4118
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
4041
4119
|
if (parsed.options.forceShell || needsShell) {
|
|
4042
4120
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
4043
|
-
parsed.command = path$
|
|
4121
|
+
parsed.command = path$2.normalize(parsed.command);
|
|
4044
4122
|
parsed.command = escape.command(parsed.command);
|
|
4045
4123
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
4046
4124
|
parsed.args = [
|
|
@@ -4272,1768 +4350,6 @@ function listDeclaredWorkspaces(cwd = process.cwd()) {
|
|
|
4272
4350
|
return workspaces.toSorted((a, b) => a.location.localeCompare(b.location));
|
|
4273
4351
|
}
|
|
4274
4352
|
//#endregion
|
|
4275
|
-
//#region ../../node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js
|
|
4276
|
-
var require_resolve_from = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4277
|
-
const path$3 = __require("path");
|
|
4278
|
-
const Module = __require("module");
|
|
4279
|
-
const fs$1 = __require("fs");
|
|
4280
|
-
const resolveFrom = (fromDir, moduleId, silent) => {
|
|
4281
|
-
if (typeof fromDir !== "string") throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
|
|
4282
|
-
if (typeof moduleId !== "string") throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
|
|
4283
|
-
try {
|
|
4284
|
-
fromDir = fs$1.realpathSync(fromDir);
|
|
4285
|
-
} catch (err) {
|
|
4286
|
-
if (err.code === "ENOENT") fromDir = path$3.resolve(fromDir);
|
|
4287
|
-
else if (silent) return null;
|
|
4288
|
-
else throw err;
|
|
4289
|
-
}
|
|
4290
|
-
const fromFile = path$3.join(fromDir, "noop.js");
|
|
4291
|
-
const resolveFileName = () => Module._resolveFilename(moduleId, {
|
|
4292
|
-
id: fromFile,
|
|
4293
|
-
filename: fromFile,
|
|
4294
|
-
paths: Module._nodeModulePaths(fromDir)
|
|
4295
|
-
});
|
|
4296
|
-
if (silent) try {
|
|
4297
|
-
return resolveFileName();
|
|
4298
|
-
} catch (err) {
|
|
4299
|
-
return null;
|
|
4300
|
-
}
|
|
4301
|
-
return resolveFileName();
|
|
4302
|
-
};
|
|
4303
|
-
module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId);
|
|
4304
|
-
module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true);
|
|
4305
|
-
}));
|
|
4306
|
-
//#endregion
|
|
4307
|
-
//#region ../../node_modules/.pnpm/callsites@3.1.0/node_modules/callsites/index.js
|
|
4308
|
-
var require_callsites = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4309
|
-
const callsites = () => {
|
|
4310
|
-
const _prepareStackTrace = Error.prepareStackTrace;
|
|
4311
|
-
Error.prepareStackTrace = (_, stack) => stack;
|
|
4312
|
-
const stack = (/* @__PURE__ */ new Error()).stack.slice(1);
|
|
4313
|
-
Error.prepareStackTrace = _prepareStackTrace;
|
|
4314
|
-
return stack;
|
|
4315
|
-
};
|
|
4316
|
-
module.exports = callsites;
|
|
4317
|
-
module.exports.default = callsites;
|
|
4318
|
-
}));
|
|
4319
|
-
//#endregion
|
|
4320
|
-
//#region ../../node_modules/.pnpm/parent-module@1.0.1/node_modules/parent-module/index.js
|
|
4321
|
-
var require_parent_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4322
|
-
const callsites = require_callsites();
|
|
4323
|
-
module.exports = (filepath) => {
|
|
4324
|
-
const stacks = callsites();
|
|
4325
|
-
if (!filepath) return stacks[2].getFileName();
|
|
4326
|
-
let seenVal = false;
|
|
4327
|
-
stacks.shift();
|
|
4328
|
-
for (const stack of stacks) {
|
|
4329
|
-
const parentFilepath = stack.getFileName();
|
|
4330
|
-
if (typeof parentFilepath !== "string") continue;
|
|
4331
|
-
if (parentFilepath === filepath) {
|
|
4332
|
-
seenVal = true;
|
|
4333
|
-
continue;
|
|
4334
|
-
}
|
|
4335
|
-
if (parentFilepath === "module.js") continue;
|
|
4336
|
-
if (seenVal && parentFilepath !== filepath) return parentFilepath;
|
|
4337
|
-
}
|
|
4338
|
-
};
|
|
4339
|
-
}));
|
|
4340
|
-
//#endregion
|
|
4341
|
-
//#region ../../node_modules/.pnpm/import-fresh@3.3.1/node_modules/import-fresh/index.js
|
|
4342
|
-
var require_import_fresh = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4343
|
-
const path$2 = __require("path");
|
|
4344
|
-
const resolveFrom = require_resolve_from();
|
|
4345
|
-
const parentModule = require_parent_module();
|
|
4346
|
-
module.exports = (moduleId) => {
|
|
4347
|
-
if (typeof moduleId !== "string") throw new TypeError("Expected a string");
|
|
4348
|
-
const parentPath = parentModule(__filename);
|
|
4349
|
-
const cwd = parentPath ? path$2.dirname(parentPath) : __dirname;
|
|
4350
|
-
const filePath = resolveFrom(cwd, moduleId);
|
|
4351
|
-
const oldModule = __require.cache[filePath];
|
|
4352
|
-
if (oldModule && oldModule.parent) {
|
|
4353
|
-
let i = oldModule.parent.children.length;
|
|
4354
|
-
while (i--) if (oldModule.parent.children[i].id === filePath) oldModule.parent.children.splice(i, 1);
|
|
4355
|
-
}
|
|
4356
|
-
delete __require.cache[filePath];
|
|
4357
|
-
const parent = __require.cache[parentPath];
|
|
4358
|
-
return parent === void 0 || parent.require === void 0 ? __require(filePath) : parent.require(filePath);
|
|
4359
|
-
};
|
|
4360
|
-
}));
|
|
4361
|
-
//#endregion
|
|
4362
|
-
//#region ../../node_modules/.pnpm/is-arrayish@0.2.1/node_modules/is-arrayish/index.js
|
|
4363
|
-
var require_is_arrayish = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4364
|
-
module.exports = function isArrayish(obj) {
|
|
4365
|
-
if (!obj) return false;
|
|
4366
|
-
return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && obj.splice instanceof Function;
|
|
4367
|
-
};
|
|
4368
|
-
}));
|
|
4369
|
-
//#endregion
|
|
4370
|
-
//#region ../../node_modules/.pnpm/error-ex@1.3.4/node_modules/error-ex/index.js
|
|
4371
|
-
var require_error_ex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4372
|
-
var util = __require("util");
|
|
4373
|
-
var isArrayish = require_is_arrayish();
|
|
4374
|
-
var errorEx = function errorEx(name, properties) {
|
|
4375
|
-
if (!name || name.constructor !== String) {
|
|
4376
|
-
properties = name || {};
|
|
4377
|
-
name = Error.name;
|
|
4378
|
-
}
|
|
4379
|
-
var errorExError = function ErrorEXError(message) {
|
|
4380
|
-
if (!this) return new ErrorEXError(message);
|
|
4381
|
-
message = message instanceof Error ? message.message : message || this.message;
|
|
4382
|
-
Error.call(this, message);
|
|
4383
|
-
Error.captureStackTrace(this, errorExError);
|
|
4384
|
-
this.name = name;
|
|
4385
|
-
Object.defineProperty(this, "message", {
|
|
4386
|
-
configurable: true,
|
|
4387
|
-
enumerable: false,
|
|
4388
|
-
get: function() {
|
|
4389
|
-
var newMessage = message.split(/\r?\n/g);
|
|
4390
|
-
for (var key in properties) {
|
|
4391
|
-
if (!properties.hasOwnProperty(key)) continue;
|
|
4392
|
-
var modifier = properties[key];
|
|
4393
|
-
if ("message" in modifier) {
|
|
4394
|
-
newMessage = modifier.message(this[key], newMessage) || newMessage;
|
|
4395
|
-
if (!isArrayish(newMessage)) newMessage = [newMessage];
|
|
4396
|
-
}
|
|
4397
|
-
}
|
|
4398
|
-
return newMessage.join("\n");
|
|
4399
|
-
},
|
|
4400
|
-
set: function(v) {
|
|
4401
|
-
message = v;
|
|
4402
|
-
}
|
|
4403
|
-
});
|
|
4404
|
-
var overwrittenStack = null;
|
|
4405
|
-
var stackDescriptor = Object.getOwnPropertyDescriptor(this, "stack");
|
|
4406
|
-
var stackGetter = stackDescriptor.get;
|
|
4407
|
-
var stackValue = stackDescriptor.value;
|
|
4408
|
-
delete stackDescriptor.value;
|
|
4409
|
-
delete stackDescriptor.writable;
|
|
4410
|
-
stackDescriptor.set = function(newstack) {
|
|
4411
|
-
overwrittenStack = newstack;
|
|
4412
|
-
};
|
|
4413
|
-
stackDescriptor.get = function() {
|
|
4414
|
-
var stack = (overwrittenStack || (stackGetter ? stackGetter.call(this) : stackValue)).split(/\r?\n+/g);
|
|
4415
|
-
if (!overwrittenStack) stack[0] = this.name + ": " + this.message;
|
|
4416
|
-
var lineCount = 1;
|
|
4417
|
-
for (var key in properties) {
|
|
4418
|
-
if (!properties.hasOwnProperty(key)) continue;
|
|
4419
|
-
var modifier = properties[key];
|
|
4420
|
-
if ("line" in modifier) {
|
|
4421
|
-
var line = modifier.line(this[key]);
|
|
4422
|
-
if (line) stack.splice(lineCount++, 0, " " + line);
|
|
4423
|
-
}
|
|
4424
|
-
if ("stack" in modifier) modifier.stack(this[key], stack);
|
|
4425
|
-
}
|
|
4426
|
-
return stack.join("\n");
|
|
4427
|
-
};
|
|
4428
|
-
Object.defineProperty(this, "stack", stackDescriptor);
|
|
4429
|
-
};
|
|
4430
|
-
if (Object.setPrototypeOf) {
|
|
4431
|
-
Object.setPrototypeOf(errorExError.prototype, Error.prototype);
|
|
4432
|
-
Object.setPrototypeOf(errorExError, Error);
|
|
4433
|
-
} else util.inherits(errorExError, Error);
|
|
4434
|
-
return errorExError;
|
|
4435
|
-
};
|
|
4436
|
-
errorEx.append = function(str, def) {
|
|
4437
|
-
return { message: function(v, message) {
|
|
4438
|
-
v = v || def;
|
|
4439
|
-
if (v) message[0] += " " + str.replace("%s", v.toString());
|
|
4440
|
-
return message;
|
|
4441
|
-
} };
|
|
4442
|
-
};
|
|
4443
|
-
errorEx.line = function(str, def) {
|
|
4444
|
-
return { line: function(v) {
|
|
4445
|
-
v = v || def;
|
|
4446
|
-
if (v) return str.replace("%s", v.toString());
|
|
4447
|
-
return null;
|
|
4448
|
-
} };
|
|
4449
|
-
};
|
|
4450
|
-
module.exports = errorEx;
|
|
4451
|
-
}));
|
|
4452
|
-
//#endregion
|
|
4453
|
-
//#region ../../node_modules/.pnpm/json-parse-even-better-errors@2.3.1/node_modules/json-parse-even-better-errors/index.js
|
|
4454
|
-
var require_json_parse_even_better_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4455
|
-
const hexify = (char) => {
|
|
4456
|
-
const h = char.charCodeAt(0).toString(16).toUpperCase();
|
|
4457
|
-
return "0x" + (h.length % 2 ? "0" : "") + h;
|
|
4458
|
-
};
|
|
4459
|
-
const parseError = (e, txt, context) => {
|
|
4460
|
-
if (!txt) return {
|
|
4461
|
-
message: e.message + " while parsing empty string",
|
|
4462
|
-
position: 0
|
|
4463
|
-
};
|
|
4464
|
-
const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);
|
|
4465
|
-
const errIdx = badToken ? +badToken[2] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
|
|
4466
|
-
const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${JSON.stringify(badToken[1])} (${hexify(badToken[1])})`) : e.message;
|
|
4467
|
-
if (errIdx !== null && errIdx !== void 0) {
|
|
4468
|
-
const start = errIdx <= context ? 0 : errIdx - context;
|
|
4469
|
-
const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
|
|
4470
|
-
const slice = (start === 0 ? "" : "...") + txt.slice(start, end) + (end === txt.length ? "" : "...");
|
|
4471
|
-
return {
|
|
4472
|
-
message: msg + ` while parsing ${txt === slice ? "" : "near "}${JSON.stringify(slice)}`,
|
|
4473
|
-
position: errIdx
|
|
4474
|
-
};
|
|
4475
|
-
} else return {
|
|
4476
|
-
message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
|
|
4477
|
-
position: 0
|
|
4478
|
-
};
|
|
4479
|
-
};
|
|
4480
|
-
var JSONParseError = class extends SyntaxError {
|
|
4481
|
-
constructor(er, txt, context, caller) {
|
|
4482
|
-
context = context || 20;
|
|
4483
|
-
const metadata = parseError(er, txt, context);
|
|
4484
|
-
super(metadata.message);
|
|
4485
|
-
Object.assign(this, metadata);
|
|
4486
|
-
this.code = "EJSONPARSE";
|
|
4487
|
-
this.systemError = er;
|
|
4488
|
-
Error.captureStackTrace(this, caller || this.constructor);
|
|
4489
|
-
}
|
|
4490
|
-
get name() {
|
|
4491
|
-
return this.constructor.name;
|
|
4492
|
-
}
|
|
4493
|
-
set name(n) {}
|
|
4494
|
-
get [Symbol.toStringTag]() {
|
|
4495
|
-
return this.constructor.name;
|
|
4496
|
-
}
|
|
4497
|
-
};
|
|
4498
|
-
const kIndent = Symbol.for("indent");
|
|
4499
|
-
const kNewline = Symbol.for("newline");
|
|
4500
|
-
const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;
|
|
4501
|
-
const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
|
|
4502
|
-
const parseJson = (txt, reviver, context) => {
|
|
4503
|
-
const parseText = stripBOM(txt);
|
|
4504
|
-
context = context || 20;
|
|
4505
|
-
try {
|
|
4506
|
-
const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [
|
|
4507
|
-
,
|
|
4508
|
-
"",
|
|
4509
|
-
""
|
|
4510
|
-
];
|
|
4511
|
-
const result = JSON.parse(parseText, reviver);
|
|
4512
|
-
if (result && typeof result === "object") {
|
|
4513
|
-
result[kNewline] = newline;
|
|
4514
|
-
result[kIndent] = indent;
|
|
4515
|
-
}
|
|
4516
|
-
return result;
|
|
4517
|
-
} catch (e) {
|
|
4518
|
-
if (typeof txt !== "string" && !Buffer.isBuffer(txt)) {
|
|
4519
|
-
const isEmptyArray = Array.isArray(txt) && txt.length === 0;
|
|
4520
|
-
throw Object.assign(/* @__PURE__ */ new TypeError(`Cannot parse ${isEmptyArray ? "an empty array" : String(txt)}`), {
|
|
4521
|
-
code: "EJSONPARSE",
|
|
4522
|
-
systemError: e
|
|
4523
|
-
});
|
|
4524
|
-
}
|
|
4525
|
-
throw new JSONParseError(e, parseText, context, parseJson);
|
|
4526
|
-
}
|
|
4527
|
-
};
|
|
4528
|
-
const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
|
|
4529
|
-
module.exports = parseJson;
|
|
4530
|
-
parseJson.JSONParseError = JSONParseError;
|
|
4531
|
-
parseJson.noExceptions = (txt, reviver) => {
|
|
4532
|
-
try {
|
|
4533
|
-
return JSON.parse(stripBOM(txt), reviver);
|
|
4534
|
-
} catch (e) {}
|
|
4535
|
-
};
|
|
4536
|
-
}));
|
|
4537
|
-
//#endregion
|
|
4538
|
-
//#region ../../node_modules/.pnpm/lines-and-columns@1.2.4/node_modules/lines-and-columns/build/index.js
|
|
4539
|
-
var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4540
|
-
exports.__esModule = true;
|
|
4541
|
-
exports.LinesAndColumns = void 0;
|
|
4542
|
-
var LF = "\n";
|
|
4543
|
-
var CR = "\r";
|
|
4544
|
-
var LinesAndColumns = function() {
|
|
4545
|
-
function LinesAndColumns(string) {
|
|
4546
|
-
this.string = string;
|
|
4547
|
-
var offsets = [0];
|
|
4548
|
-
for (var offset = 0; offset < string.length;) switch (string[offset]) {
|
|
4549
|
-
case LF:
|
|
4550
|
-
offset += LF.length;
|
|
4551
|
-
offsets.push(offset);
|
|
4552
|
-
break;
|
|
4553
|
-
case CR:
|
|
4554
|
-
offset += CR.length;
|
|
4555
|
-
if (string[offset] === LF) offset += LF.length;
|
|
4556
|
-
offsets.push(offset);
|
|
4557
|
-
break;
|
|
4558
|
-
default:
|
|
4559
|
-
offset++;
|
|
4560
|
-
break;
|
|
4561
|
-
}
|
|
4562
|
-
this.offsets = offsets;
|
|
4563
|
-
}
|
|
4564
|
-
LinesAndColumns.prototype.locationForIndex = function(index) {
|
|
4565
|
-
if (index < 0 || index > this.string.length) return null;
|
|
4566
|
-
var line = 0;
|
|
4567
|
-
var offsets = this.offsets;
|
|
4568
|
-
while (offsets[line + 1] <= index) line++;
|
|
4569
|
-
var column = index - offsets[line];
|
|
4570
|
-
return {
|
|
4571
|
-
line,
|
|
4572
|
-
column
|
|
4573
|
-
};
|
|
4574
|
-
};
|
|
4575
|
-
LinesAndColumns.prototype.indexForLocation = function(location) {
|
|
4576
|
-
var line = location.line, column = location.column;
|
|
4577
|
-
if (line < 0 || line >= this.offsets.length) return null;
|
|
4578
|
-
if (column < 0 || column > this.lengthOfLine(line)) return null;
|
|
4579
|
-
return this.offsets[line] + column;
|
|
4580
|
-
};
|
|
4581
|
-
LinesAndColumns.prototype.lengthOfLine = function(line) {
|
|
4582
|
-
var offset = this.offsets[line];
|
|
4583
|
-
return (line === this.offsets.length - 1 ? this.string.length : this.offsets[line + 1]) - offset;
|
|
4584
|
-
};
|
|
4585
|
-
return LinesAndColumns;
|
|
4586
|
-
}();
|
|
4587
|
-
exports.LinesAndColumns = LinesAndColumns;
|
|
4588
|
-
exports["default"] = LinesAndColumns;
|
|
4589
|
-
}));
|
|
4590
|
-
//#endregion
|
|
4591
|
-
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
4592
|
-
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4593
|
-
let p = process || {};
|
|
4594
|
-
let argv = p.argv || [];
|
|
4595
|
-
let env = p.env || {};
|
|
4596
|
-
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);
|
|
4597
|
-
let formatter = (open, close, replace = open) => (input) => {
|
|
4598
|
-
let string = "" + input, index = string.indexOf(close, open.length);
|
|
4599
|
-
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
4600
|
-
};
|
|
4601
|
-
let replaceClose = (string, close, replace, index) => {
|
|
4602
|
-
let result = "", cursor = 0;
|
|
4603
|
-
do {
|
|
4604
|
-
result += string.substring(cursor, index) + replace;
|
|
4605
|
-
cursor = index + close.length;
|
|
4606
|
-
index = string.indexOf(close, cursor);
|
|
4607
|
-
} while (~index);
|
|
4608
|
-
return result + string.substring(cursor);
|
|
4609
|
-
};
|
|
4610
|
-
let createColors = (enabled = isColorSupported) => {
|
|
4611
|
-
let f = enabled ? formatter : () => String;
|
|
4612
|
-
return {
|
|
4613
|
-
isColorSupported: enabled,
|
|
4614
|
-
reset: f("\x1B[0m", "\x1B[0m"),
|
|
4615
|
-
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
4616
|
-
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
4617
|
-
italic: f("\x1B[3m", "\x1B[23m"),
|
|
4618
|
-
underline: f("\x1B[4m", "\x1B[24m"),
|
|
4619
|
-
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
4620
|
-
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
4621
|
-
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
4622
|
-
black: f("\x1B[30m", "\x1B[39m"),
|
|
4623
|
-
red: f("\x1B[31m", "\x1B[39m"),
|
|
4624
|
-
green: f("\x1B[32m", "\x1B[39m"),
|
|
4625
|
-
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
4626
|
-
blue: f("\x1B[34m", "\x1B[39m"),
|
|
4627
|
-
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
4628
|
-
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
4629
|
-
white: f("\x1B[37m", "\x1B[39m"),
|
|
4630
|
-
gray: f("\x1B[90m", "\x1B[39m"),
|
|
4631
|
-
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
4632
|
-
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
4633
|
-
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
4634
|
-
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
4635
|
-
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
4636
|
-
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
4637
|
-
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
4638
|
-
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
4639
|
-
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
4640
|
-
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
4641
|
-
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
4642
|
-
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
4643
|
-
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
4644
|
-
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
4645
|
-
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
4646
|
-
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
4647
|
-
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
4648
|
-
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
4649
|
-
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
4650
|
-
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
4651
|
-
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
4652
|
-
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
4653
|
-
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
4654
|
-
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
4655
|
-
};
|
|
4656
|
-
};
|
|
4657
|
-
module.exports = createColors();
|
|
4658
|
-
module.exports.createColors = createColors;
|
|
4659
|
-
}));
|
|
4660
|
-
//#endregion
|
|
4661
|
-
//#region ../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js
|
|
4662
|
-
var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4663
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4664
|
-
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;
|
|
4665
|
-
exports.matchToToken = function(match) {
|
|
4666
|
-
var token = {
|
|
4667
|
-
type: "invalid",
|
|
4668
|
-
value: match[0],
|
|
4669
|
-
closed: void 0
|
|
4670
|
-
};
|
|
4671
|
-
if (match[1]) token.type = "string", token.closed = !!(match[3] || match[4]);
|
|
4672
|
-
else if (match[5]) token.type = "comment";
|
|
4673
|
-
else if (match[6]) token.type = "comment", token.closed = !!match[7];
|
|
4674
|
-
else if (match[8]) token.type = "regex";
|
|
4675
|
-
else if (match[9]) token.type = "number";
|
|
4676
|
-
else if (match[10]) token.type = "name";
|
|
4677
|
-
else if (match[11]) token.type = "punctuator";
|
|
4678
|
-
else if (match[12]) token.type = "whitespace";
|
|
4679
|
-
return token;
|
|
4680
|
-
};
|
|
4681
|
-
}));
|
|
4682
|
-
//#endregion
|
|
4683
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
|
|
4684
|
-
var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4685
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4686
|
-
exports.isIdentifierChar = isIdentifierChar;
|
|
4687
|
-
exports.isIdentifierName = isIdentifierName;
|
|
4688
|
-
exports.isIdentifierStart = isIdentifierStart;
|
|
4689
|
-
let nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
|
|
4690
|
-
let nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
|
|
4691
|
-
const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
4692
|
-
const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
4693
|
-
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
4694
|
-
const astralIdentifierStartCodes = [
|
|
4695
|
-
0,
|
|
4696
|
-
11,
|
|
4697
|
-
2,
|
|
4698
|
-
25,
|
|
4699
|
-
2,
|
|
4700
|
-
18,
|
|
4701
|
-
2,
|
|
4702
|
-
1,
|
|
4703
|
-
2,
|
|
4704
|
-
14,
|
|
4705
|
-
3,
|
|
4706
|
-
13,
|
|
4707
|
-
35,
|
|
4708
|
-
122,
|
|
4709
|
-
70,
|
|
4710
|
-
52,
|
|
4711
|
-
268,
|
|
4712
|
-
28,
|
|
4713
|
-
4,
|
|
4714
|
-
48,
|
|
4715
|
-
48,
|
|
4716
|
-
31,
|
|
4717
|
-
14,
|
|
4718
|
-
29,
|
|
4719
|
-
6,
|
|
4720
|
-
37,
|
|
4721
|
-
11,
|
|
4722
|
-
29,
|
|
4723
|
-
3,
|
|
4724
|
-
35,
|
|
4725
|
-
5,
|
|
4726
|
-
7,
|
|
4727
|
-
2,
|
|
4728
|
-
4,
|
|
4729
|
-
43,
|
|
4730
|
-
157,
|
|
4731
|
-
19,
|
|
4732
|
-
35,
|
|
4733
|
-
5,
|
|
4734
|
-
35,
|
|
4735
|
-
5,
|
|
4736
|
-
39,
|
|
4737
|
-
9,
|
|
4738
|
-
51,
|
|
4739
|
-
13,
|
|
4740
|
-
10,
|
|
4741
|
-
2,
|
|
4742
|
-
14,
|
|
4743
|
-
2,
|
|
4744
|
-
6,
|
|
4745
|
-
2,
|
|
4746
|
-
1,
|
|
4747
|
-
2,
|
|
4748
|
-
10,
|
|
4749
|
-
2,
|
|
4750
|
-
14,
|
|
4751
|
-
2,
|
|
4752
|
-
6,
|
|
4753
|
-
2,
|
|
4754
|
-
1,
|
|
4755
|
-
4,
|
|
4756
|
-
51,
|
|
4757
|
-
13,
|
|
4758
|
-
310,
|
|
4759
|
-
10,
|
|
4760
|
-
21,
|
|
4761
|
-
11,
|
|
4762
|
-
7,
|
|
4763
|
-
25,
|
|
4764
|
-
5,
|
|
4765
|
-
2,
|
|
4766
|
-
41,
|
|
4767
|
-
2,
|
|
4768
|
-
8,
|
|
4769
|
-
70,
|
|
4770
|
-
5,
|
|
4771
|
-
3,
|
|
4772
|
-
0,
|
|
4773
|
-
2,
|
|
4774
|
-
43,
|
|
4775
|
-
2,
|
|
4776
|
-
1,
|
|
4777
|
-
4,
|
|
4778
|
-
0,
|
|
4779
|
-
3,
|
|
4780
|
-
22,
|
|
4781
|
-
11,
|
|
4782
|
-
22,
|
|
4783
|
-
10,
|
|
4784
|
-
30,
|
|
4785
|
-
66,
|
|
4786
|
-
18,
|
|
4787
|
-
2,
|
|
4788
|
-
1,
|
|
4789
|
-
11,
|
|
4790
|
-
21,
|
|
4791
|
-
11,
|
|
4792
|
-
25,
|
|
4793
|
-
7,
|
|
4794
|
-
25,
|
|
4795
|
-
39,
|
|
4796
|
-
55,
|
|
4797
|
-
7,
|
|
4798
|
-
1,
|
|
4799
|
-
65,
|
|
4800
|
-
0,
|
|
4801
|
-
16,
|
|
4802
|
-
3,
|
|
4803
|
-
2,
|
|
4804
|
-
2,
|
|
4805
|
-
2,
|
|
4806
|
-
28,
|
|
4807
|
-
43,
|
|
4808
|
-
28,
|
|
4809
|
-
4,
|
|
4810
|
-
28,
|
|
4811
|
-
36,
|
|
4812
|
-
7,
|
|
4813
|
-
2,
|
|
4814
|
-
27,
|
|
4815
|
-
28,
|
|
4816
|
-
53,
|
|
4817
|
-
11,
|
|
4818
|
-
21,
|
|
4819
|
-
11,
|
|
4820
|
-
18,
|
|
4821
|
-
14,
|
|
4822
|
-
17,
|
|
4823
|
-
111,
|
|
4824
|
-
72,
|
|
4825
|
-
56,
|
|
4826
|
-
50,
|
|
4827
|
-
14,
|
|
4828
|
-
50,
|
|
4829
|
-
14,
|
|
4830
|
-
35,
|
|
4831
|
-
39,
|
|
4832
|
-
27,
|
|
4833
|
-
10,
|
|
4834
|
-
22,
|
|
4835
|
-
251,
|
|
4836
|
-
41,
|
|
4837
|
-
7,
|
|
4838
|
-
1,
|
|
4839
|
-
17,
|
|
4840
|
-
5,
|
|
4841
|
-
57,
|
|
4842
|
-
28,
|
|
4843
|
-
11,
|
|
4844
|
-
0,
|
|
4845
|
-
9,
|
|
4846
|
-
21,
|
|
4847
|
-
43,
|
|
4848
|
-
17,
|
|
4849
|
-
47,
|
|
4850
|
-
20,
|
|
4851
|
-
28,
|
|
4852
|
-
22,
|
|
4853
|
-
13,
|
|
4854
|
-
52,
|
|
4855
|
-
58,
|
|
4856
|
-
1,
|
|
4857
|
-
3,
|
|
4858
|
-
0,
|
|
4859
|
-
14,
|
|
4860
|
-
44,
|
|
4861
|
-
33,
|
|
4862
|
-
24,
|
|
4863
|
-
27,
|
|
4864
|
-
35,
|
|
4865
|
-
30,
|
|
4866
|
-
0,
|
|
4867
|
-
3,
|
|
4868
|
-
0,
|
|
4869
|
-
9,
|
|
4870
|
-
34,
|
|
4871
|
-
4,
|
|
4872
|
-
0,
|
|
4873
|
-
13,
|
|
4874
|
-
47,
|
|
4875
|
-
15,
|
|
4876
|
-
3,
|
|
4877
|
-
22,
|
|
4878
|
-
0,
|
|
4879
|
-
2,
|
|
4880
|
-
0,
|
|
4881
|
-
36,
|
|
4882
|
-
17,
|
|
4883
|
-
2,
|
|
4884
|
-
24,
|
|
4885
|
-
20,
|
|
4886
|
-
1,
|
|
4887
|
-
64,
|
|
4888
|
-
6,
|
|
4889
|
-
2,
|
|
4890
|
-
0,
|
|
4891
|
-
2,
|
|
4892
|
-
3,
|
|
4893
|
-
2,
|
|
4894
|
-
14,
|
|
4895
|
-
2,
|
|
4896
|
-
9,
|
|
4897
|
-
8,
|
|
4898
|
-
46,
|
|
4899
|
-
39,
|
|
4900
|
-
7,
|
|
4901
|
-
3,
|
|
4902
|
-
1,
|
|
4903
|
-
3,
|
|
4904
|
-
21,
|
|
4905
|
-
2,
|
|
4906
|
-
6,
|
|
4907
|
-
2,
|
|
4908
|
-
1,
|
|
4909
|
-
2,
|
|
4910
|
-
4,
|
|
4911
|
-
4,
|
|
4912
|
-
0,
|
|
4913
|
-
19,
|
|
4914
|
-
0,
|
|
4915
|
-
13,
|
|
4916
|
-
4,
|
|
4917
|
-
31,
|
|
4918
|
-
9,
|
|
4919
|
-
2,
|
|
4920
|
-
0,
|
|
4921
|
-
3,
|
|
4922
|
-
0,
|
|
4923
|
-
2,
|
|
4924
|
-
37,
|
|
4925
|
-
2,
|
|
4926
|
-
0,
|
|
4927
|
-
26,
|
|
4928
|
-
0,
|
|
4929
|
-
2,
|
|
4930
|
-
0,
|
|
4931
|
-
45,
|
|
4932
|
-
52,
|
|
4933
|
-
19,
|
|
4934
|
-
3,
|
|
4935
|
-
21,
|
|
4936
|
-
2,
|
|
4937
|
-
31,
|
|
4938
|
-
47,
|
|
4939
|
-
21,
|
|
4940
|
-
1,
|
|
4941
|
-
2,
|
|
4942
|
-
0,
|
|
4943
|
-
185,
|
|
4944
|
-
46,
|
|
4945
|
-
42,
|
|
4946
|
-
3,
|
|
4947
|
-
37,
|
|
4948
|
-
47,
|
|
4949
|
-
21,
|
|
4950
|
-
0,
|
|
4951
|
-
60,
|
|
4952
|
-
42,
|
|
4953
|
-
14,
|
|
4954
|
-
0,
|
|
4955
|
-
72,
|
|
4956
|
-
26,
|
|
4957
|
-
38,
|
|
4958
|
-
6,
|
|
4959
|
-
186,
|
|
4960
|
-
43,
|
|
4961
|
-
117,
|
|
4962
|
-
63,
|
|
4963
|
-
32,
|
|
4964
|
-
7,
|
|
4965
|
-
3,
|
|
4966
|
-
0,
|
|
4967
|
-
3,
|
|
4968
|
-
7,
|
|
4969
|
-
2,
|
|
4970
|
-
1,
|
|
4971
|
-
2,
|
|
4972
|
-
23,
|
|
4973
|
-
16,
|
|
4974
|
-
0,
|
|
4975
|
-
2,
|
|
4976
|
-
0,
|
|
4977
|
-
95,
|
|
4978
|
-
7,
|
|
4979
|
-
3,
|
|
4980
|
-
38,
|
|
4981
|
-
17,
|
|
4982
|
-
0,
|
|
4983
|
-
2,
|
|
4984
|
-
0,
|
|
4985
|
-
29,
|
|
4986
|
-
0,
|
|
4987
|
-
11,
|
|
4988
|
-
39,
|
|
4989
|
-
8,
|
|
4990
|
-
0,
|
|
4991
|
-
22,
|
|
4992
|
-
0,
|
|
4993
|
-
12,
|
|
4994
|
-
45,
|
|
4995
|
-
20,
|
|
4996
|
-
0,
|
|
4997
|
-
19,
|
|
4998
|
-
72,
|
|
4999
|
-
200,
|
|
5000
|
-
32,
|
|
5001
|
-
32,
|
|
5002
|
-
8,
|
|
5003
|
-
2,
|
|
5004
|
-
36,
|
|
5005
|
-
18,
|
|
5006
|
-
0,
|
|
5007
|
-
50,
|
|
5008
|
-
29,
|
|
5009
|
-
113,
|
|
5010
|
-
6,
|
|
5011
|
-
2,
|
|
5012
|
-
1,
|
|
5013
|
-
2,
|
|
5014
|
-
37,
|
|
5015
|
-
22,
|
|
5016
|
-
0,
|
|
5017
|
-
26,
|
|
5018
|
-
5,
|
|
5019
|
-
2,
|
|
5020
|
-
1,
|
|
5021
|
-
2,
|
|
5022
|
-
31,
|
|
5023
|
-
15,
|
|
5024
|
-
0,
|
|
5025
|
-
24,
|
|
5026
|
-
43,
|
|
5027
|
-
261,
|
|
5028
|
-
18,
|
|
5029
|
-
16,
|
|
5030
|
-
0,
|
|
5031
|
-
2,
|
|
5032
|
-
12,
|
|
5033
|
-
2,
|
|
5034
|
-
33,
|
|
5035
|
-
125,
|
|
5036
|
-
0,
|
|
5037
|
-
80,
|
|
5038
|
-
921,
|
|
5039
|
-
103,
|
|
5040
|
-
110,
|
|
5041
|
-
18,
|
|
5042
|
-
195,
|
|
5043
|
-
2637,
|
|
5044
|
-
96,
|
|
5045
|
-
16,
|
|
5046
|
-
1071,
|
|
5047
|
-
18,
|
|
5048
|
-
5,
|
|
5049
|
-
26,
|
|
5050
|
-
3994,
|
|
5051
|
-
6,
|
|
5052
|
-
582,
|
|
5053
|
-
6842,
|
|
5054
|
-
29,
|
|
5055
|
-
1763,
|
|
5056
|
-
568,
|
|
5057
|
-
8,
|
|
5058
|
-
30,
|
|
5059
|
-
18,
|
|
5060
|
-
78,
|
|
5061
|
-
18,
|
|
5062
|
-
29,
|
|
5063
|
-
19,
|
|
5064
|
-
47,
|
|
5065
|
-
17,
|
|
5066
|
-
3,
|
|
5067
|
-
32,
|
|
5068
|
-
20,
|
|
5069
|
-
6,
|
|
5070
|
-
18,
|
|
5071
|
-
433,
|
|
5072
|
-
44,
|
|
5073
|
-
212,
|
|
5074
|
-
63,
|
|
5075
|
-
33,
|
|
5076
|
-
24,
|
|
5077
|
-
3,
|
|
5078
|
-
24,
|
|
5079
|
-
45,
|
|
5080
|
-
74,
|
|
5081
|
-
6,
|
|
5082
|
-
0,
|
|
5083
|
-
67,
|
|
5084
|
-
12,
|
|
5085
|
-
65,
|
|
5086
|
-
1,
|
|
5087
|
-
2,
|
|
5088
|
-
0,
|
|
5089
|
-
15,
|
|
5090
|
-
4,
|
|
5091
|
-
10,
|
|
5092
|
-
7381,
|
|
5093
|
-
42,
|
|
5094
|
-
31,
|
|
5095
|
-
98,
|
|
5096
|
-
114,
|
|
5097
|
-
8702,
|
|
5098
|
-
3,
|
|
5099
|
-
2,
|
|
5100
|
-
6,
|
|
5101
|
-
2,
|
|
5102
|
-
1,
|
|
5103
|
-
2,
|
|
5104
|
-
290,
|
|
5105
|
-
16,
|
|
5106
|
-
0,
|
|
5107
|
-
30,
|
|
5108
|
-
2,
|
|
5109
|
-
3,
|
|
5110
|
-
0,
|
|
5111
|
-
15,
|
|
5112
|
-
3,
|
|
5113
|
-
9,
|
|
5114
|
-
395,
|
|
5115
|
-
2309,
|
|
5116
|
-
106,
|
|
5117
|
-
6,
|
|
5118
|
-
12,
|
|
5119
|
-
4,
|
|
5120
|
-
8,
|
|
5121
|
-
8,
|
|
5122
|
-
9,
|
|
5123
|
-
5991,
|
|
5124
|
-
84,
|
|
5125
|
-
2,
|
|
5126
|
-
70,
|
|
5127
|
-
2,
|
|
5128
|
-
1,
|
|
5129
|
-
3,
|
|
5130
|
-
0,
|
|
5131
|
-
3,
|
|
5132
|
-
1,
|
|
5133
|
-
3,
|
|
5134
|
-
3,
|
|
5135
|
-
2,
|
|
5136
|
-
11,
|
|
5137
|
-
2,
|
|
5138
|
-
0,
|
|
5139
|
-
2,
|
|
5140
|
-
6,
|
|
5141
|
-
2,
|
|
5142
|
-
64,
|
|
5143
|
-
2,
|
|
5144
|
-
3,
|
|
5145
|
-
3,
|
|
5146
|
-
7,
|
|
5147
|
-
2,
|
|
5148
|
-
6,
|
|
5149
|
-
2,
|
|
5150
|
-
27,
|
|
5151
|
-
2,
|
|
5152
|
-
3,
|
|
5153
|
-
2,
|
|
5154
|
-
4,
|
|
5155
|
-
2,
|
|
5156
|
-
0,
|
|
5157
|
-
4,
|
|
5158
|
-
6,
|
|
5159
|
-
2,
|
|
5160
|
-
339,
|
|
5161
|
-
3,
|
|
5162
|
-
24,
|
|
5163
|
-
2,
|
|
5164
|
-
24,
|
|
5165
|
-
2,
|
|
5166
|
-
30,
|
|
5167
|
-
2,
|
|
5168
|
-
24,
|
|
5169
|
-
2,
|
|
5170
|
-
30,
|
|
5171
|
-
2,
|
|
5172
|
-
24,
|
|
5173
|
-
2,
|
|
5174
|
-
30,
|
|
5175
|
-
2,
|
|
5176
|
-
24,
|
|
5177
|
-
2,
|
|
5178
|
-
30,
|
|
5179
|
-
2,
|
|
5180
|
-
24,
|
|
5181
|
-
2,
|
|
5182
|
-
7,
|
|
5183
|
-
1845,
|
|
5184
|
-
30,
|
|
5185
|
-
7,
|
|
5186
|
-
5,
|
|
5187
|
-
262,
|
|
5188
|
-
61,
|
|
5189
|
-
147,
|
|
5190
|
-
44,
|
|
5191
|
-
11,
|
|
5192
|
-
6,
|
|
5193
|
-
17,
|
|
5194
|
-
0,
|
|
5195
|
-
322,
|
|
5196
|
-
29,
|
|
5197
|
-
19,
|
|
5198
|
-
43,
|
|
5199
|
-
485,
|
|
5200
|
-
27,
|
|
5201
|
-
229,
|
|
5202
|
-
29,
|
|
5203
|
-
3,
|
|
5204
|
-
0,
|
|
5205
|
-
208,
|
|
5206
|
-
30,
|
|
5207
|
-
2,
|
|
5208
|
-
2,
|
|
5209
|
-
2,
|
|
5210
|
-
1,
|
|
5211
|
-
2,
|
|
5212
|
-
6,
|
|
5213
|
-
3,
|
|
5214
|
-
4,
|
|
5215
|
-
10,
|
|
5216
|
-
1,
|
|
5217
|
-
225,
|
|
5218
|
-
6,
|
|
5219
|
-
2,
|
|
5220
|
-
3,
|
|
5221
|
-
2,
|
|
5222
|
-
1,
|
|
5223
|
-
2,
|
|
5224
|
-
14,
|
|
5225
|
-
2,
|
|
5226
|
-
196,
|
|
5227
|
-
60,
|
|
5228
|
-
67,
|
|
5229
|
-
8,
|
|
5230
|
-
0,
|
|
5231
|
-
1205,
|
|
5232
|
-
3,
|
|
5233
|
-
2,
|
|
5234
|
-
26,
|
|
5235
|
-
2,
|
|
5236
|
-
1,
|
|
5237
|
-
2,
|
|
5238
|
-
0,
|
|
5239
|
-
3,
|
|
5240
|
-
0,
|
|
5241
|
-
2,
|
|
5242
|
-
9,
|
|
5243
|
-
2,
|
|
5244
|
-
3,
|
|
5245
|
-
2,
|
|
5246
|
-
0,
|
|
5247
|
-
2,
|
|
5248
|
-
0,
|
|
5249
|
-
7,
|
|
5250
|
-
0,
|
|
5251
|
-
5,
|
|
5252
|
-
0,
|
|
5253
|
-
2,
|
|
5254
|
-
0,
|
|
5255
|
-
2,
|
|
5256
|
-
0,
|
|
5257
|
-
2,
|
|
5258
|
-
2,
|
|
5259
|
-
2,
|
|
5260
|
-
1,
|
|
5261
|
-
2,
|
|
5262
|
-
0,
|
|
5263
|
-
3,
|
|
5264
|
-
0,
|
|
5265
|
-
2,
|
|
5266
|
-
0,
|
|
5267
|
-
2,
|
|
5268
|
-
0,
|
|
5269
|
-
2,
|
|
5270
|
-
0,
|
|
5271
|
-
2,
|
|
5272
|
-
0,
|
|
5273
|
-
2,
|
|
5274
|
-
1,
|
|
5275
|
-
2,
|
|
5276
|
-
0,
|
|
5277
|
-
3,
|
|
5278
|
-
3,
|
|
5279
|
-
2,
|
|
5280
|
-
6,
|
|
5281
|
-
2,
|
|
5282
|
-
3,
|
|
5283
|
-
2,
|
|
5284
|
-
3,
|
|
5285
|
-
2,
|
|
5286
|
-
0,
|
|
5287
|
-
2,
|
|
5288
|
-
9,
|
|
5289
|
-
2,
|
|
5290
|
-
16,
|
|
5291
|
-
6,
|
|
5292
|
-
2,
|
|
5293
|
-
2,
|
|
5294
|
-
4,
|
|
5295
|
-
2,
|
|
5296
|
-
16,
|
|
5297
|
-
4421,
|
|
5298
|
-
42719,
|
|
5299
|
-
33,
|
|
5300
|
-
4381,
|
|
5301
|
-
3,
|
|
5302
|
-
5773,
|
|
5303
|
-
3,
|
|
5304
|
-
7472,
|
|
5305
|
-
16,
|
|
5306
|
-
621,
|
|
5307
|
-
2467,
|
|
5308
|
-
541,
|
|
5309
|
-
1507,
|
|
5310
|
-
4938,
|
|
5311
|
-
6,
|
|
5312
|
-
8489
|
|
5313
|
-
];
|
|
5314
|
-
const astralIdentifierCodes = [
|
|
5315
|
-
509,
|
|
5316
|
-
0,
|
|
5317
|
-
227,
|
|
5318
|
-
0,
|
|
5319
|
-
150,
|
|
5320
|
-
4,
|
|
5321
|
-
294,
|
|
5322
|
-
9,
|
|
5323
|
-
1368,
|
|
5324
|
-
2,
|
|
5325
|
-
2,
|
|
5326
|
-
1,
|
|
5327
|
-
6,
|
|
5328
|
-
3,
|
|
5329
|
-
41,
|
|
5330
|
-
2,
|
|
5331
|
-
5,
|
|
5332
|
-
0,
|
|
5333
|
-
166,
|
|
5334
|
-
1,
|
|
5335
|
-
574,
|
|
5336
|
-
3,
|
|
5337
|
-
9,
|
|
5338
|
-
9,
|
|
5339
|
-
7,
|
|
5340
|
-
9,
|
|
5341
|
-
32,
|
|
5342
|
-
4,
|
|
5343
|
-
318,
|
|
5344
|
-
1,
|
|
5345
|
-
78,
|
|
5346
|
-
5,
|
|
5347
|
-
71,
|
|
5348
|
-
10,
|
|
5349
|
-
50,
|
|
5350
|
-
3,
|
|
5351
|
-
123,
|
|
5352
|
-
2,
|
|
5353
|
-
54,
|
|
5354
|
-
14,
|
|
5355
|
-
32,
|
|
5356
|
-
10,
|
|
5357
|
-
3,
|
|
5358
|
-
1,
|
|
5359
|
-
11,
|
|
5360
|
-
3,
|
|
5361
|
-
46,
|
|
5362
|
-
10,
|
|
5363
|
-
8,
|
|
5364
|
-
0,
|
|
5365
|
-
46,
|
|
5366
|
-
9,
|
|
5367
|
-
7,
|
|
5368
|
-
2,
|
|
5369
|
-
37,
|
|
5370
|
-
13,
|
|
5371
|
-
2,
|
|
5372
|
-
9,
|
|
5373
|
-
6,
|
|
5374
|
-
1,
|
|
5375
|
-
45,
|
|
5376
|
-
0,
|
|
5377
|
-
13,
|
|
5378
|
-
2,
|
|
5379
|
-
49,
|
|
5380
|
-
13,
|
|
5381
|
-
9,
|
|
5382
|
-
3,
|
|
5383
|
-
2,
|
|
5384
|
-
11,
|
|
5385
|
-
83,
|
|
5386
|
-
11,
|
|
5387
|
-
7,
|
|
5388
|
-
0,
|
|
5389
|
-
3,
|
|
5390
|
-
0,
|
|
5391
|
-
158,
|
|
5392
|
-
11,
|
|
5393
|
-
6,
|
|
5394
|
-
9,
|
|
5395
|
-
7,
|
|
5396
|
-
3,
|
|
5397
|
-
56,
|
|
5398
|
-
1,
|
|
5399
|
-
2,
|
|
5400
|
-
6,
|
|
5401
|
-
3,
|
|
5402
|
-
1,
|
|
5403
|
-
3,
|
|
5404
|
-
2,
|
|
5405
|
-
10,
|
|
5406
|
-
0,
|
|
5407
|
-
11,
|
|
5408
|
-
1,
|
|
5409
|
-
3,
|
|
5410
|
-
6,
|
|
5411
|
-
4,
|
|
5412
|
-
4,
|
|
5413
|
-
68,
|
|
5414
|
-
8,
|
|
5415
|
-
2,
|
|
5416
|
-
0,
|
|
5417
|
-
3,
|
|
5418
|
-
0,
|
|
5419
|
-
2,
|
|
5420
|
-
3,
|
|
5421
|
-
2,
|
|
5422
|
-
4,
|
|
5423
|
-
2,
|
|
5424
|
-
0,
|
|
5425
|
-
15,
|
|
5426
|
-
1,
|
|
5427
|
-
83,
|
|
5428
|
-
17,
|
|
5429
|
-
10,
|
|
5430
|
-
9,
|
|
5431
|
-
5,
|
|
5432
|
-
0,
|
|
5433
|
-
82,
|
|
5434
|
-
19,
|
|
5435
|
-
13,
|
|
5436
|
-
9,
|
|
5437
|
-
214,
|
|
5438
|
-
6,
|
|
5439
|
-
3,
|
|
5440
|
-
8,
|
|
5441
|
-
28,
|
|
5442
|
-
1,
|
|
5443
|
-
83,
|
|
5444
|
-
16,
|
|
5445
|
-
16,
|
|
5446
|
-
9,
|
|
5447
|
-
82,
|
|
5448
|
-
12,
|
|
5449
|
-
9,
|
|
5450
|
-
9,
|
|
5451
|
-
7,
|
|
5452
|
-
19,
|
|
5453
|
-
58,
|
|
5454
|
-
14,
|
|
5455
|
-
5,
|
|
5456
|
-
9,
|
|
5457
|
-
243,
|
|
5458
|
-
14,
|
|
5459
|
-
166,
|
|
5460
|
-
9,
|
|
5461
|
-
71,
|
|
5462
|
-
5,
|
|
5463
|
-
2,
|
|
5464
|
-
1,
|
|
5465
|
-
3,
|
|
5466
|
-
3,
|
|
5467
|
-
2,
|
|
5468
|
-
0,
|
|
5469
|
-
2,
|
|
5470
|
-
1,
|
|
5471
|
-
13,
|
|
5472
|
-
9,
|
|
5473
|
-
120,
|
|
5474
|
-
6,
|
|
5475
|
-
3,
|
|
5476
|
-
6,
|
|
5477
|
-
4,
|
|
5478
|
-
0,
|
|
5479
|
-
29,
|
|
5480
|
-
9,
|
|
5481
|
-
41,
|
|
5482
|
-
6,
|
|
5483
|
-
2,
|
|
5484
|
-
3,
|
|
5485
|
-
9,
|
|
5486
|
-
0,
|
|
5487
|
-
10,
|
|
5488
|
-
10,
|
|
5489
|
-
47,
|
|
5490
|
-
15,
|
|
5491
|
-
199,
|
|
5492
|
-
7,
|
|
5493
|
-
137,
|
|
5494
|
-
9,
|
|
5495
|
-
54,
|
|
5496
|
-
7,
|
|
5497
|
-
2,
|
|
5498
|
-
7,
|
|
5499
|
-
17,
|
|
5500
|
-
9,
|
|
5501
|
-
57,
|
|
5502
|
-
21,
|
|
5503
|
-
2,
|
|
5504
|
-
13,
|
|
5505
|
-
123,
|
|
5506
|
-
5,
|
|
5507
|
-
4,
|
|
5508
|
-
0,
|
|
5509
|
-
2,
|
|
5510
|
-
1,
|
|
5511
|
-
2,
|
|
5512
|
-
6,
|
|
5513
|
-
2,
|
|
5514
|
-
0,
|
|
5515
|
-
9,
|
|
5516
|
-
9,
|
|
5517
|
-
49,
|
|
5518
|
-
4,
|
|
5519
|
-
2,
|
|
5520
|
-
1,
|
|
5521
|
-
2,
|
|
5522
|
-
4,
|
|
5523
|
-
9,
|
|
5524
|
-
9,
|
|
5525
|
-
55,
|
|
5526
|
-
9,
|
|
5527
|
-
266,
|
|
5528
|
-
3,
|
|
5529
|
-
10,
|
|
5530
|
-
1,
|
|
5531
|
-
2,
|
|
5532
|
-
0,
|
|
5533
|
-
49,
|
|
5534
|
-
6,
|
|
5535
|
-
4,
|
|
5536
|
-
4,
|
|
5537
|
-
14,
|
|
5538
|
-
10,
|
|
5539
|
-
5350,
|
|
5540
|
-
0,
|
|
5541
|
-
7,
|
|
5542
|
-
14,
|
|
5543
|
-
11465,
|
|
5544
|
-
27,
|
|
5545
|
-
2343,
|
|
5546
|
-
9,
|
|
5547
|
-
87,
|
|
5548
|
-
9,
|
|
5549
|
-
39,
|
|
5550
|
-
4,
|
|
5551
|
-
60,
|
|
5552
|
-
6,
|
|
5553
|
-
26,
|
|
5554
|
-
9,
|
|
5555
|
-
535,
|
|
5556
|
-
9,
|
|
5557
|
-
470,
|
|
5558
|
-
0,
|
|
5559
|
-
2,
|
|
5560
|
-
54,
|
|
5561
|
-
8,
|
|
5562
|
-
3,
|
|
5563
|
-
82,
|
|
5564
|
-
0,
|
|
5565
|
-
12,
|
|
5566
|
-
1,
|
|
5567
|
-
19628,
|
|
5568
|
-
1,
|
|
5569
|
-
4178,
|
|
5570
|
-
9,
|
|
5571
|
-
519,
|
|
5572
|
-
45,
|
|
5573
|
-
3,
|
|
5574
|
-
22,
|
|
5575
|
-
543,
|
|
5576
|
-
4,
|
|
5577
|
-
4,
|
|
5578
|
-
5,
|
|
5579
|
-
9,
|
|
5580
|
-
7,
|
|
5581
|
-
3,
|
|
5582
|
-
6,
|
|
5583
|
-
31,
|
|
5584
|
-
3,
|
|
5585
|
-
149,
|
|
5586
|
-
2,
|
|
5587
|
-
1418,
|
|
5588
|
-
49,
|
|
5589
|
-
513,
|
|
5590
|
-
54,
|
|
5591
|
-
5,
|
|
5592
|
-
49,
|
|
5593
|
-
9,
|
|
5594
|
-
0,
|
|
5595
|
-
15,
|
|
5596
|
-
0,
|
|
5597
|
-
23,
|
|
5598
|
-
4,
|
|
5599
|
-
2,
|
|
5600
|
-
14,
|
|
5601
|
-
1361,
|
|
5602
|
-
6,
|
|
5603
|
-
2,
|
|
5604
|
-
16,
|
|
5605
|
-
3,
|
|
5606
|
-
6,
|
|
5607
|
-
2,
|
|
5608
|
-
1,
|
|
5609
|
-
2,
|
|
5610
|
-
4,
|
|
5611
|
-
101,
|
|
5612
|
-
0,
|
|
5613
|
-
161,
|
|
5614
|
-
6,
|
|
5615
|
-
10,
|
|
5616
|
-
9,
|
|
5617
|
-
357,
|
|
5618
|
-
0,
|
|
5619
|
-
62,
|
|
5620
|
-
13,
|
|
5621
|
-
499,
|
|
5622
|
-
13,
|
|
5623
|
-
245,
|
|
5624
|
-
1,
|
|
5625
|
-
2,
|
|
5626
|
-
9,
|
|
5627
|
-
233,
|
|
5628
|
-
0,
|
|
5629
|
-
3,
|
|
5630
|
-
0,
|
|
5631
|
-
8,
|
|
5632
|
-
1,
|
|
5633
|
-
6,
|
|
5634
|
-
0,
|
|
5635
|
-
475,
|
|
5636
|
-
6,
|
|
5637
|
-
110,
|
|
5638
|
-
6,
|
|
5639
|
-
6,
|
|
5640
|
-
9,
|
|
5641
|
-
4759,
|
|
5642
|
-
9,
|
|
5643
|
-
787719,
|
|
5644
|
-
239
|
|
5645
|
-
];
|
|
5646
|
-
function isInAstralSet(code, set) {
|
|
5647
|
-
let pos = 65536;
|
|
5648
|
-
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
5649
|
-
pos += set[i];
|
|
5650
|
-
if (pos > code) return false;
|
|
5651
|
-
pos += set[i + 1];
|
|
5652
|
-
if (pos >= code) return true;
|
|
5653
|
-
}
|
|
5654
|
-
return false;
|
|
5655
|
-
}
|
|
5656
|
-
function isIdentifierStart(code) {
|
|
5657
|
-
if (code < 65) return code === 36;
|
|
5658
|
-
if (code <= 90) return true;
|
|
5659
|
-
if (code < 97) return code === 95;
|
|
5660
|
-
if (code <= 122) return true;
|
|
5661
|
-
if (code <= 65535) return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
|
|
5662
|
-
return isInAstralSet(code, astralIdentifierStartCodes);
|
|
5663
|
-
}
|
|
5664
|
-
function isIdentifierChar(code) {
|
|
5665
|
-
if (code < 48) return code === 36;
|
|
5666
|
-
if (code < 58) return true;
|
|
5667
|
-
if (code < 65) return false;
|
|
5668
|
-
if (code <= 90) return true;
|
|
5669
|
-
if (code < 97) return code === 95;
|
|
5670
|
-
if (code <= 122) return true;
|
|
5671
|
-
if (code <= 65535) return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
|
|
5672
|
-
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
5673
|
-
}
|
|
5674
|
-
function isIdentifierName(name) {
|
|
5675
|
-
let isFirst = true;
|
|
5676
|
-
for (let i = 0; i < name.length; i++) {
|
|
5677
|
-
let cp = name.charCodeAt(i);
|
|
5678
|
-
if ((cp & 64512) === 55296 && i + 1 < name.length) {
|
|
5679
|
-
const trail = name.charCodeAt(++i);
|
|
5680
|
-
if ((trail & 64512) === 56320) cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
|
|
5681
|
-
}
|
|
5682
|
-
if (isFirst) {
|
|
5683
|
-
isFirst = false;
|
|
5684
|
-
if (!isIdentifierStart(cp)) return false;
|
|
5685
|
-
} else if (!isIdentifierChar(cp)) return false;
|
|
5686
|
-
}
|
|
5687
|
-
return !isFirst;
|
|
5688
|
-
}
|
|
5689
|
-
}));
|
|
5690
|
-
//#endregion
|
|
5691
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
|
|
5692
|
-
var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5693
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5694
|
-
exports.isKeyword = isKeyword;
|
|
5695
|
-
exports.isReservedWord = isReservedWord;
|
|
5696
|
-
exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
|
|
5697
|
-
exports.isStrictBindReservedWord = isStrictBindReservedWord;
|
|
5698
|
-
exports.isStrictReservedWord = isStrictReservedWord;
|
|
5699
|
-
const reservedWords = {
|
|
5700
|
-
keyword: [
|
|
5701
|
-
"break",
|
|
5702
|
-
"case",
|
|
5703
|
-
"catch",
|
|
5704
|
-
"continue",
|
|
5705
|
-
"debugger",
|
|
5706
|
-
"default",
|
|
5707
|
-
"do",
|
|
5708
|
-
"else",
|
|
5709
|
-
"finally",
|
|
5710
|
-
"for",
|
|
5711
|
-
"function",
|
|
5712
|
-
"if",
|
|
5713
|
-
"return",
|
|
5714
|
-
"switch",
|
|
5715
|
-
"throw",
|
|
5716
|
-
"try",
|
|
5717
|
-
"var",
|
|
5718
|
-
"const",
|
|
5719
|
-
"while",
|
|
5720
|
-
"with",
|
|
5721
|
-
"new",
|
|
5722
|
-
"this",
|
|
5723
|
-
"super",
|
|
5724
|
-
"class",
|
|
5725
|
-
"extends",
|
|
5726
|
-
"export",
|
|
5727
|
-
"import",
|
|
5728
|
-
"null",
|
|
5729
|
-
"true",
|
|
5730
|
-
"false",
|
|
5731
|
-
"in",
|
|
5732
|
-
"instanceof",
|
|
5733
|
-
"typeof",
|
|
5734
|
-
"void",
|
|
5735
|
-
"delete"
|
|
5736
|
-
],
|
|
5737
|
-
strict: [
|
|
5738
|
-
"implements",
|
|
5739
|
-
"interface",
|
|
5740
|
-
"let",
|
|
5741
|
-
"package",
|
|
5742
|
-
"private",
|
|
5743
|
-
"protected",
|
|
5744
|
-
"public",
|
|
5745
|
-
"static",
|
|
5746
|
-
"yield"
|
|
5747
|
-
],
|
|
5748
|
-
strictBind: ["eval", "arguments"]
|
|
5749
|
-
};
|
|
5750
|
-
const keywords = new Set(reservedWords.keyword);
|
|
5751
|
-
const reservedWordsStrictSet = new Set(reservedWords.strict);
|
|
5752
|
-
const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
|
|
5753
|
-
function isReservedWord(word, inModule) {
|
|
5754
|
-
return inModule && word === "await" || word === "enum";
|
|
5755
|
-
}
|
|
5756
|
-
function isStrictReservedWord(word, inModule) {
|
|
5757
|
-
return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
|
|
5758
|
-
}
|
|
5759
|
-
function isStrictBindOnlyReservedWord(word) {
|
|
5760
|
-
return reservedWordsStrictBindSet.has(word);
|
|
5761
|
-
}
|
|
5762
|
-
function isStrictBindReservedWord(word, inModule) {
|
|
5763
|
-
return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
|
|
5764
|
-
}
|
|
5765
|
-
function isKeyword(word) {
|
|
5766
|
-
return keywords.has(word);
|
|
5767
|
-
}
|
|
5768
|
-
}));
|
|
5769
|
-
//#endregion
|
|
5770
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
5771
|
-
var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5772
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5773
|
-
Object.defineProperty(exports, "isIdentifierChar", {
|
|
5774
|
-
enumerable: true,
|
|
5775
|
-
get: function() {
|
|
5776
|
-
return _identifier.isIdentifierChar;
|
|
5777
|
-
}
|
|
5778
|
-
});
|
|
5779
|
-
Object.defineProperty(exports, "isIdentifierName", {
|
|
5780
|
-
enumerable: true,
|
|
5781
|
-
get: function() {
|
|
5782
|
-
return _identifier.isIdentifierName;
|
|
5783
|
-
}
|
|
5784
|
-
});
|
|
5785
|
-
Object.defineProperty(exports, "isIdentifierStart", {
|
|
5786
|
-
enumerable: true,
|
|
5787
|
-
get: function() {
|
|
5788
|
-
return _identifier.isIdentifierStart;
|
|
5789
|
-
}
|
|
5790
|
-
});
|
|
5791
|
-
Object.defineProperty(exports, "isKeyword", {
|
|
5792
|
-
enumerable: true,
|
|
5793
|
-
get: function() {
|
|
5794
|
-
return _keyword.isKeyword;
|
|
5795
|
-
}
|
|
5796
|
-
});
|
|
5797
|
-
Object.defineProperty(exports, "isReservedWord", {
|
|
5798
|
-
enumerable: true,
|
|
5799
|
-
get: function() {
|
|
5800
|
-
return _keyword.isReservedWord;
|
|
5801
|
-
}
|
|
5802
|
-
});
|
|
5803
|
-
Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
|
|
5804
|
-
enumerable: true,
|
|
5805
|
-
get: function() {
|
|
5806
|
-
return _keyword.isStrictBindOnlyReservedWord;
|
|
5807
|
-
}
|
|
5808
|
-
});
|
|
5809
|
-
Object.defineProperty(exports, "isStrictBindReservedWord", {
|
|
5810
|
-
enumerable: true,
|
|
5811
|
-
get: function() {
|
|
5812
|
-
return _keyword.isStrictBindReservedWord;
|
|
5813
|
-
}
|
|
5814
|
-
});
|
|
5815
|
-
Object.defineProperty(exports, "isStrictReservedWord", {
|
|
5816
|
-
enumerable: true,
|
|
5817
|
-
get: function() {
|
|
5818
|
-
return _keyword.isStrictReservedWord;
|
|
5819
|
-
}
|
|
5820
|
-
});
|
|
5821
|
-
var _identifier = require_identifier();
|
|
5822
|
-
var _keyword = require_keyword();
|
|
5823
|
-
}));
|
|
5824
|
-
//#endregion
|
|
5825
|
-
//#region ../../node_modules/.pnpm/@babel+code-frame@7.29.7/node_modules/@babel/code-frame/lib/index.js
|
|
5826
|
-
var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5827
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5828
|
-
var picocolors = require_picocolors();
|
|
5829
|
-
var jsTokens = require_js_tokens();
|
|
5830
|
-
var helperValidatorIdentifier = require_lib$1();
|
|
5831
|
-
function isColorSupported() {
|
|
5832
|
-
return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
|
|
5833
|
-
}
|
|
5834
|
-
const compose = (f, g) => (v) => f(g(v));
|
|
5835
|
-
function buildDefs(colors) {
|
|
5836
|
-
return {
|
|
5837
|
-
keyword: colors.cyan,
|
|
5838
|
-
capitalized: colors.yellow,
|
|
5839
|
-
jsxIdentifier: colors.yellow,
|
|
5840
|
-
punctuator: colors.yellow,
|
|
5841
|
-
number: colors.magenta,
|
|
5842
|
-
string: colors.green,
|
|
5843
|
-
regex: colors.magenta,
|
|
5844
|
-
comment: colors.gray,
|
|
5845
|
-
invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
|
|
5846
|
-
gutter: colors.gray,
|
|
5847
|
-
marker: compose(colors.red, colors.bold),
|
|
5848
|
-
message: compose(colors.red, colors.bold),
|
|
5849
|
-
reset: colors.reset
|
|
5850
|
-
};
|
|
5851
|
-
}
|
|
5852
|
-
const defsOn = buildDefs(picocolors.createColors(true));
|
|
5853
|
-
const defsOff = buildDefs(picocolors.createColors(false));
|
|
5854
|
-
function getDefs(enabled) {
|
|
5855
|
-
return enabled ? defsOn : defsOff;
|
|
5856
|
-
}
|
|
5857
|
-
const sometimesKeywords = /* @__PURE__ */ new Set([
|
|
5858
|
-
"as",
|
|
5859
|
-
"async",
|
|
5860
|
-
"from",
|
|
5861
|
-
"get",
|
|
5862
|
-
"of",
|
|
5863
|
-
"set"
|
|
5864
|
-
]);
|
|
5865
|
-
const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
|
|
5866
|
-
const BRACKET = /^[()[\]{}]$/;
|
|
5867
|
-
let tokenize;
|
|
5868
|
-
const JSX_TAG = /^[a-z][\w-]*$/i;
|
|
5869
|
-
const getTokenType = function(token, offset, text) {
|
|
5870
|
-
if (token.type === "name") {
|
|
5871
|
-
const tokenValue = token.value;
|
|
5872
|
-
if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) return "keyword";
|
|
5873
|
-
if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) return "jsxIdentifier";
|
|
5874
|
-
const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
|
|
5875
|
-
if (firstChar !== firstChar.toLowerCase()) return "capitalized";
|
|
5876
|
-
}
|
|
5877
|
-
if (token.type === "punctuator" && BRACKET.test(token.value)) return "bracket";
|
|
5878
|
-
if (token.type === "invalid" && (token.value === "@" || token.value === "#")) return "punctuator";
|
|
5879
|
-
return token.type;
|
|
5880
|
-
};
|
|
5881
|
-
tokenize = function* (text) {
|
|
5882
|
-
let match;
|
|
5883
|
-
while (match = jsTokens.default.exec(text)) {
|
|
5884
|
-
const token = jsTokens.matchToToken(match);
|
|
5885
|
-
yield {
|
|
5886
|
-
type: getTokenType(token, match.index, text),
|
|
5887
|
-
value: token.value
|
|
5888
|
-
};
|
|
5889
|
-
}
|
|
5890
|
-
};
|
|
5891
|
-
function highlight(text) {
|
|
5892
|
-
if (text === "") return "";
|
|
5893
|
-
const defs = getDefs(true);
|
|
5894
|
-
let highlighted = "";
|
|
5895
|
-
for (const { type, value } of tokenize(text)) if (type in defs) highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join("\n");
|
|
5896
|
-
else highlighted += value;
|
|
5897
|
-
return highlighted;
|
|
5898
|
-
}
|
|
5899
|
-
let deprecationWarningShown = false;
|
|
5900
|
-
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
5901
|
-
function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
|
5902
|
-
const startLoc = Object.assign({
|
|
5903
|
-
column: 0,
|
|
5904
|
-
line: -1
|
|
5905
|
-
}, loc.start);
|
|
5906
|
-
const endLoc = Object.assign({}, startLoc, loc.end);
|
|
5907
|
-
const { linesAbove = 2, linesBelow = 3 } = opts || {};
|
|
5908
|
-
const startLine = startLoc.line - startLineBaseZero;
|
|
5909
|
-
const startColumn = startLoc.column;
|
|
5910
|
-
const endLine = endLoc.line - startLineBaseZero;
|
|
5911
|
-
const endColumn = endLoc.column;
|
|
5912
|
-
let start = Math.max(startLine - (linesAbove + 1), 0);
|
|
5913
|
-
let end = Math.min(source.length, endLine + linesBelow);
|
|
5914
|
-
if (startLine === -1) start = 0;
|
|
5915
|
-
if (endLine === -1) end = source.length;
|
|
5916
|
-
const lineDiff = endLine - startLine;
|
|
5917
|
-
const markerLines = {};
|
|
5918
|
-
if (lineDiff) for (let i = 0; i <= lineDiff; i++) {
|
|
5919
|
-
const lineNumber = i + startLine;
|
|
5920
|
-
if (!startColumn) markerLines[lineNumber] = true;
|
|
5921
|
-
else if (i === 0) markerLines[lineNumber] = [startColumn, source[lineNumber - 1].length - startColumn + 1];
|
|
5922
|
-
else if (i === lineDiff) markerLines[lineNumber] = [0, endColumn];
|
|
5923
|
-
else markerLines[lineNumber] = [0, source[lineNumber - i].length];
|
|
5924
|
-
}
|
|
5925
|
-
else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [startColumn, 0];
|
|
5926
|
-
else markerLines[startLine] = true;
|
|
5927
|
-
else markerLines[startLine] = [startColumn, endColumn - startColumn];
|
|
5928
|
-
return {
|
|
5929
|
-
start,
|
|
5930
|
-
end,
|
|
5931
|
-
markerLines
|
|
5932
|
-
};
|
|
5933
|
-
}
|
|
5934
|
-
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
5935
|
-
const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
|
5936
|
-
const startLineBaseZero = (opts.startLine || 1) - 1;
|
|
5937
|
-
const defs = getDefs(shouldHighlight);
|
|
5938
|
-
const { start, end, markerLines } = getMarkerLines(loc, rawLines.split(NEWLINE), opts, startLineBaseZero);
|
|
5939
|
-
const hasColumns = loc.start && typeof loc.start.column === "number";
|
|
5940
|
-
const numberMaxWidth = String(end + startLineBaseZero).length;
|
|
5941
|
-
let frame = (shouldHighlight ? highlight(rawLines) : rawLines).split(NEWLINE, end).slice(start, end).map((line, index) => {
|
|
5942
|
-
const number = start + 1 + index;
|
|
5943
|
-
const gutter = ` ${` ${number + startLineBaseZero}`.slice(-numberMaxWidth)} |`;
|
|
5944
|
-
const hasMarker = markerLines[number];
|
|
5945
|
-
const lastMarkerLine = !markerLines[number + 1];
|
|
5946
|
-
if (hasMarker) {
|
|
5947
|
-
let markerLine = "";
|
|
5948
|
-
if (Array.isArray(hasMarker)) {
|
|
5949
|
-
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
|
5950
|
-
const numberOfMarkers = hasMarker[1] || 1;
|
|
5951
|
-
markerLine = [
|
|
5952
|
-
"\n ",
|
|
5953
|
-
defs.gutter(gutter.replace(/\d/g, " ")),
|
|
5954
|
-
" ",
|
|
5955
|
-
markerSpacing,
|
|
5956
|
-
defs.marker("^").repeat(numberOfMarkers)
|
|
5957
|
-
].join("");
|
|
5958
|
-
if (lastMarkerLine && opts.message) markerLine += " " + defs.message(opts.message);
|
|
5959
|
-
}
|
|
5960
|
-
return [
|
|
5961
|
-
defs.marker(">"),
|
|
5962
|
-
defs.gutter(gutter),
|
|
5963
|
-
line.length > 0 ? ` ${line}` : "",
|
|
5964
|
-
markerLine
|
|
5965
|
-
].join("");
|
|
5966
|
-
} else return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
|
5967
|
-
}).join("\n");
|
|
5968
|
-
if (opts.message && !hasColumns) frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
|
5969
|
-
if (shouldHighlight) return defs.reset(frame);
|
|
5970
|
-
else return frame;
|
|
5971
|
-
}
|
|
5972
|
-
function index(rawLines, lineNumber, colNumber, opts = {}) {
|
|
5973
|
-
if (!deprecationWarningShown) {
|
|
5974
|
-
deprecationWarningShown = true;
|
|
5975
|
-
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
|
5976
|
-
if (process.emitWarning) process.emitWarning(message, "DeprecationWarning");
|
|
5977
|
-
else {
|
|
5978
|
-
const deprecationError = /* @__PURE__ */ new Error(message);
|
|
5979
|
-
deprecationError.name = "DeprecationWarning";
|
|
5980
|
-
console.warn(/* @__PURE__ */ new Error(message));
|
|
5981
|
-
}
|
|
5982
|
-
}
|
|
5983
|
-
colNumber = Math.max(colNumber, 0);
|
|
5984
|
-
return codeFrameColumns(rawLines, { start: {
|
|
5985
|
-
column: colNumber,
|
|
5986
|
-
line: lineNumber
|
|
5987
|
-
} }, opts);
|
|
5988
|
-
}
|
|
5989
|
-
exports.codeFrameColumns = codeFrameColumns;
|
|
5990
|
-
exports.default = index;
|
|
5991
|
-
exports.highlight = highlight;
|
|
5992
|
-
}));
|
|
5993
|
-
//#endregion
|
|
5994
|
-
//#region ../../node_modules/.pnpm/parse-json@5.2.0/node_modules/parse-json/index.js
|
|
5995
|
-
var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5996
|
-
const errorEx = require_error_ex();
|
|
5997
|
-
const fallback = require_json_parse_even_better_errors();
|
|
5998
|
-
const { default: LinesAndColumns } = require_build();
|
|
5999
|
-
const { codeFrameColumns } = require_lib();
|
|
6000
|
-
const JSONError = errorEx("JSONError", {
|
|
6001
|
-
fileName: errorEx.append("in %s"),
|
|
6002
|
-
codeFrame: errorEx.append("\n\n%s\n")
|
|
6003
|
-
});
|
|
6004
|
-
const parseJson = (string, reviver, filename) => {
|
|
6005
|
-
if (typeof reviver === "string") {
|
|
6006
|
-
filename = reviver;
|
|
6007
|
-
reviver = null;
|
|
6008
|
-
}
|
|
6009
|
-
try {
|
|
6010
|
-
try {
|
|
6011
|
-
return JSON.parse(string, reviver);
|
|
6012
|
-
} catch (error) {
|
|
6013
|
-
fallback(string, reviver);
|
|
6014
|
-
throw error;
|
|
6015
|
-
}
|
|
6016
|
-
} catch (error) {
|
|
6017
|
-
error.message = error.message.replace(/\n/g, "");
|
|
6018
|
-
const indexMatch = error.message.match(/in JSON at position (\d+) while parsing/);
|
|
6019
|
-
const jsonError = new JSONError(error);
|
|
6020
|
-
if (filename) jsonError.fileName = filename;
|
|
6021
|
-
if (indexMatch && indexMatch.length > 0) {
|
|
6022
|
-
const lines = new LinesAndColumns(string);
|
|
6023
|
-
const index = Number(indexMatch[1]);
|
|
6024
|
-
const location = lines.locationForIndex(index);
|
|
6025
|
-
jsonError.codeFrame = codeFrameColumns(string, { start: {
|
|
6026
|
-
line: location.line + 1,
|
|
6027
|
-
column: location.column + 1
|
|
6028
|
-
} }, { highlightCode: true });
|
|
6029
|
-
}
|
|
6030
|
-
throw jsonError;
|
|
6031
|
-
}
|
|
6032
|
-
};
|
|
6033
|
-
parseJson.JSONError = JSONError;
|
|
6034
|
-
module.exports = parseJson;
|
|
6035
|
-
}));
|
|
6036
|
-
//#endregion
|
|
6037
4353
|
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
|
|
6038
4354
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6039
4355
|
function isNothing(subject) {
|
|
@@ -6741,8 +5057,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6741
5057
|
let pairHasKey = false;
|
|
6742
5058
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
6743
5059
|
let pairKey;
|
|
6744
|
-
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey))
|
|
6745
|
-
|
|
5060
|
+
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) {
|
|
5061
|
+
if (!pairHasKey) pairHasKey = true;
|
|
5062
|
+
else return false;
|
|
5063
|
+
}
|
|
6746
5064
|
if (!pairHasKey) return false;
|
|
6747
5065
|
if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
|
|
6748
5066
|
else return false;
|
|
@@ -7082,9 +5400,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7082
5400
|
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
|
|
7083
5401
|
keyNode = String(keyNode);
|
|
7084
5402
|
if (_result === null) _result = {};
|
|
7085
|
-
if (keyTag === "tag:yaml.org,2002:merge")
|
|
7086
|
-
|
|
7087
|
-
|
|
5403
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
5404
|
+
if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
5405
|
+
else mergeMappings(state, _result, valueNode, overridableKeys);
|
|
5406
|
+
} else {
|
|
7088
5407
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
7089
5408
|
state.line = startLine || state.line;
|
|
7090
5409
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -7369,14 +5688,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7369
5688
|
state.result = "";
|
|
7370
5689
|
while (ch !== 0) {
|
|
7371
5690
|
ch = state.input.charCodeAt(++state.position);
|
|
7372
|
-
if (ch === 43 || ch === 45)
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
else if (
|
|
7376
|
-
|
|
7377
|
-
detectedIndent
|
|
7378
|
-
|
|
7379
|
-
|
|
5691
|
+
if (ch === 43 || ch === 45) {
|
|
5692
|
+
if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
5693
|
+
else throwError(state, "repeat of a chomping mode identifier");
|
|
5694
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
5695
|
+
if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
5696
|
+
else if (!detectedIndent) {
|
|
5697
|
+
textIndent = nodeIndent + tmp - 1;
|
|
5698
|
+
detectedIndent = true;
|
|
5699
|
+
} else throwError(state, "repeat of an indentation width identifier");
|
|
5700
|
+
} else break;
|
|
7380
5701
|
}
|
|
7381
5702
|
if (isWhiteSpace(ch)) {
|
|
7382
5703
|
do
|
|
@@ -7407,16 +5728,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7407
5728
|
}
|
|
7408
5729
|
break;
|
|
7409
5730
|
}
|
|
7410
|
-
if (folding)
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
atMoreIndented
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
if (
|
|
7418
|
-
|
|
7419
|
-
|
|
5731
|
+
if (folding) {
|
|
5732
|
+
if (isWhiteSpace(ch)) {
|
|
5733
|
+
atMoreIndented = true;
|
|
5734
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
5735
|
+
} else if (atMoreIndented) {
|
|
5736
|
+
atMoreIndented = false;
|
|
5737
|
+
state.result += common.repeat("\n", emptyLines + 1);
|
|
5738
|
+
} else if (emptyLines === 0) {
|
|
5739
|
+
if (didReadContent) state.result += " ";
|
|
5740
|
+
} else state.result += common.repeat("\n", emptyLines);
|
|
5741
|
+
} else state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
7420
5742
|
didReadContent = true;
|
|
7421
5743
|
detectedIndent = true;
|
|
7422
5744
|
emptyLines = 0;
|
|
@@ -7545,8 +5867,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7545
5867
|
_keyLineStart = state.lineStart;
|
|
7546
5868
|
_keyPos = state.position;
|
|
7547
5869
|
}
|
|
7548
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
7549
|
-
|
|
5870
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
5871
|
+
if (atExplicitKey) keyNode = state.result;
|
|
5872
|
+
else valueNode = state.result;
|
|
5873
|
+
}
|
|
7550
5874
|
if (!atExplicitKey) {
|
|
7551
5875
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
7552
5876
|
keyTag = keyNode = valueNode = null;
|
|
@@ -7594,12 +5918,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7594
5918
|
} else throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
7595
5919
|
} else {
|
|
7596
5920
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
7597
|
-
if (ch === 33)
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
5921
|
+
if (ch === 33) {
|
|
5922
|
+
if (!isNamed) {
|
|
5923
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
5924
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
|
|
5925
|
+
isNamed = true;
|
|
5926
|
+
_position = state.position + 1;
|
|
5927
|
+
} else throwError(state, "tag suffix cannot contain exclamation marks");
|
|
5928
|
+
}
|
|
7603
5929
|
ch = state.input.charCodeAt(++state.position);
|
|
7604
5930
|
}
|
|
7605
5931
|
tagName = state.input.slice(_position, state.position);
|
|
@@ -7703,21 +6029,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7703
6029
|
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
|
|
7704
6030
|
else flowIndent = parentIndent + 1;
|
|
7705
6031
|
blockIndent = state.position - state.lineStart;
|
|
7706
|
-
if (indentStatus === 1)
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
6032
|
+
if (indentStatus === 1) {
|
|
6033
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
|
|
6034
|
+
else {
|
|
6035
|
+
const ch = state.input.charCodeAt(state.position);
|
|
6036
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
|
|
6037
|
+
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
|
|
6038
|
+
else if (readAlias(state)) {
|
|
6039
|
+
hasContent = true;
|
|
6040
|
+
if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
|
|
6041
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
6042
|
+
hasContent = true;
|
|
6043
|
+
if (state.tag === null) state.tag = "?";
|
|
6044
|
+
}
|
|
6045
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7717
6046
|
}
|
|
7718
|
-
|
|
7719
|
-
}
|
|
7720
|
-
else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
6047
|
+
} else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
7721
6048
|
}
|
|
7722
6049
|
if (state.tag === null) {
|
|
7723
6050
|
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
@@ -8223,8 +6550,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8223
6550
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
8224
6551
|
if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
|
|
8225
6552
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
8226
|
-
if (explicitPair)
|
|
8227
|
-
|
|
6553
|
+
if (explicitPair) {
|
|
6554
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
|
|
6555
|
+
else pairBuffer += "? ";
|
|
6556
|
+
}
|
|
8228
6557
|
pairBuffer += state.dump;
|
|
8229
6558
|
if (explicitPair) pairBuffer += generateNextLine(state, level);
|
|
8230
6559
|
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue;
|
|
@@ -8241,9 +6570,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8241
6570
|
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
8242
6571
|
const type = typeList[index];
|
|
8243
6572
|
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
8244
|
-
if (explicit)
|
|
8245
|
-
|
|
8246
|
-
|
|
6573
|
+
if (explicit) {
|
|
6574
|
+
if (type.multi && type.representName) state.tag = type.representName(object);
|
|
6575
|
+
else state.tag = type.tag;
|
|
6576
|
+
} else state.tag = "?";
|
|
8247
6577
|
if (type.represent) {
|
|
8248
6578
|
const style = state.styleMap[type.tag] || type.defaultStyle;
|
|
8249
6579
|
let _result;
|
|
@@ -8275,22 +6605,24 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8275
6605
|
if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex;
|
|
8276
6606
|
else {
|
|
8277
6607
|
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
|
|
8278
|
-
if (type === "[object Object]")
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
6608
|
+
if (type === "[object Object]") {
|
|
6609
|
+
if (block && Object.keys(state.dump).length !== 0) {
|
|
6610
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
6611
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6612
|
+
} else {
|
|
6613
|
+
writeFlowMapping(state, level, state.dump);
|
|
6614
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6615
|
+
}
|
|
6616
|
+
} else if (type === "[object Array]") {
|
|
6617
|
+
if (block && state.dump.length !== 0) {
|
|
6618
|
+
if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
|
|
6619
|
+
else writeBlockSequence(state, level, state.dump, compact);
|
|
6620
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6621
|
+
} else {
|
|
6622
|
+
writeFlowSequence(state, level, state.dump);
|
|
6623
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6624
|
+
}
|
|
6625
|
+
} else if (type === "[object String]") {
|
|
8294
6626
|
if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock);
|
|
8295
6627
|
} else if (type === "[object Undefined]") return false;
|
|
8296
6628
|
else {
|
|
@@ -8381,22 +6713,15 @@ var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8381
6713
|
module.exports.safeDump = renamed("safeDump", "dump");
|
|
8382
6714
|
}));
|
|
8383
6715
|
//#endregion
|
|
8384
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
6716
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/loaders.js
|
|
8385
6717
|
var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8386
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
8387
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
8388
|
-
};
|
|
8389
6718
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8390
|
-
exports.
|
|
8391
|
-
const fs_1$2 = __require("fs");
|
|
6719
|
+
exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
|
|
8392
6720
|
const promises_1$1 = __require("fs/promises");
|
|
8393
|
-
const path_1$3 = __importDefault(__require("path"));
|
|
8394
6721
|
const url_1 = __require("url");
|
|
8395
|
-
const crypto_1 = __require("crypto");
|
|
8396
|
-
let importFresh;
|
|
8397
6722
|
exports.loadJsSync = function loadJsSync(filepath) {
|
|
8398
|
-
|
|
8399
|
-
return
|
|
6723
|
+
delete __require.cache[__require.resolve(filepath)];
|
|
6724
|
+
return __require(filepath);
|
|
8400
6725
|
};
|
|
8401
6726
|
exports.loadJs = async function loadJs(filepath) {
|
|
8402
6727
|
try {
|
|
@@ -8412,11 +6737,9 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8412
6737
|
}
|
|
8413
6738
|
}
|
|
8414
6739
|
};
|
|
8415
|
-
let parseJson;
|
|
8416
6740
|
exports.loadJson = function loadJson(filepath, content) {
|
|
8417
|
-
if (parseJson === void 0) parseJson = require_parse_json();
|
|
8418
6741
|
try {
|
|
8419
|
-
return
|
|
6742
|
+
return JSON.parse(content);
|
|
8420
6743
|
} catch (error) {
|
|
8421
6744
|
error.message = `JSON Error in ${filepath}:\n${error.message}`;
|
|
8422
6745
|
throw error;
|
|
@@ -8432,73 +6755,12 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8432
6755
|
throw error;
|
|
8433
6756
|
}
|
|
8434
6757
|
};
|
|
8435
|
-
let typescript;
|
|
8436
|
-
exports.loadTsSync = function loadTsSync(filepath, content) {
|
|
8437
|
-
/* istanbul ignore next -- @preserve */
|
|
8438
|
-
if (typescript === void 0) typescript = __require("typescript");
|
|
8439
|
-
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.cjs`;
|
|
8440
|
-
try {
|
|
8441
|
-
const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
|
|
8442
|
-
config.compilerOptions = {
|
|
8443
|
-
...config.compilerOptions,
|
|
8444
|
-
module: typescript.ModuleKind.NodeNext,
|
|
8445
|
-
moduleResolution: typescript.ModuleResolutionKind.NodeNext,
|
|
8446
|
-
target: typescript.ScriptTarget.ES2022,
|
|
8447
|
-
noEmit: false
|
|
8448
|
-
};
|
|
8449
|
-
content = typescript.transpileModule(content, config).outputText;
|
|
8450
|
-
(0, fs_1$2.writeFileSync)(compiledFilepath, content);
|
|
8451
|
-
return (0, exports.loadJsSync)(compiledFilepath, content).default;
|
|
8452
|
-
} catch (error) {
|
|
8453
|
-
error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
|
|
8454
|
-
throw error;
|
|
8455
|
-
} finally {
|
|
8456
|
-
if ((0, fs_1$2.existsSync)(compiledFilepath)) (0, fs_1$2.rmSync)(compiledFilepath);
|
|
8457
|
-
}
|
|
8458
|
-
};
|
|
8459
|
-
exports.loadTs = async function loadTs(filepath, content) {
|
|
8460
|
-
if (typescript === void 0) typescript = (await import("typescript")).default;
|
|
8461
|
-
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.mjs`;
|
|
8462
|
-
let transpiledContent;
|
|
8463
|
-
try {
|
|
8464
|
-
try {
|
|
8465
|
-
const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
|
|
8466
|
-
config.compilerOptions = {
|
|
8467
|
-
...config.compilerOptions,
|
|
8468
|
-
module: typescript.ModuleKind.ES2022,
|
|
8469
|
-
moduleResolution: typescript.ModuleResolutionKind.Bundler,
|
|
8470
|
-
target: typescript.ScriptTarget.ES2022,
|
|
8471
|
-
noEmit: false
|
|
8472
|
-
};
|
|
8473
|
-
transpiledContent = typescript.transpileModule(content, config).outputText;
|
|
8474
|
-
await (0, promises_1$1.writeFile)(compiledFilepath, transpiledContent);
|
|
8475
|
-
} catch (error) {
|
|
8476
|
-
error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
|
|
8477
|
-
throw error;
|
|
8478
|
-
}
|
|
8479
|
-
return await (0, exports.loadJs)(compiledFilepath, transpiledContent);
|
|
8480
|
-
} finally {
|
|
8481
|
-
if ((0, fs_1$2.existsSync)(compiledFilepath)) await (0, promises_1$1.rm)(compiledFilepath);
|
|
8482
|
-
}
|
|
8483
|
-
};
|
|
8484
|
-
function resolveTsConfig(directory) {
|
|
8485
|
-
const filePath = typescript.findConfigFile(directory, (fileName) => {
|
|
8486
|
-
return typescript.sys.fileExists(fileName);
|
|
8487
|
-
});
|
|
8488
|
-
if (filePath !== void 0) {
|
|
8489
|
-
const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
|
|
8490
|
-
if (error) throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
|
|
8491
|
-
return config;
|
|
8492
|
-
}
|
|
8493
|
-
}
|
|
8494
6758
|
}));
|
|
8495
6759
|
//#endregion
|
|
8496
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
6760
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/defaults.js
|
|
8497
6761
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8498
6762
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8499
|
-
exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = void 0;
|
|
8500
|
-
exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
|
|
8501
|
-
exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
|
|
6763
|
+
exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
|
|
8502
6764
|
const loaders_1 = require_loaders();
|
|
8503
6765
|
function getDefaultSearchPlaces(moduleName) {
|
|
8504
6766
|
return [
|
|
@@ -8525,6 +6787,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8525
6787
|
`${moduleName}.config.mjs`
|
|
8526
6788
|
];
|
|
8527
6789
|
}
|
|
6790
|
+
exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
|
|
8528
6791
|
function getDefaultSearchPlacesSync(moduleName) {
|
|
8529
6792
|
return [
|
|
8530
6793
|
"package.json",
|
|
@@ -8547,6 +6810,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8547
6810
|
`${moduleName}.config.cjs`
|
|
8548
6811
|
];
|
|
8549
6812
|
}
|
|
6813
|
+
exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
|
|
8550
6814
|
exports.globalConfigSearchPlaces = [
|
|
8551
6815
|
"config",
|
|
8552
6816
|
"config.json",
|
|
@@ -8581,7 +6845,9 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8581
6845
|
".mjs": loaders_1.loadJs,
|
|
8582
6846
|
".cjs": loaders_1.loadJs,
|
|
8583
6847
|
".js": loaders_1.loadJs,
|
|
8584
|
-
".ts": loaders_1.
|
|
6848
|
+
".ts": loaders_1.loadJs,
|
|
6849
|
+
".cts": loaders_1.loadJs,
|
|
6850
|
+
".mts": loaders_1.loadJs,
|
|
8585
6851
|
".json": loaders_1.loadJson,
|
|
8586
6852
|
".yaml": loaders_1.loadYaml,
|
|
8587
6853
|
".yml": loaders_1.loadYaml,
|
|
@@ -8590,7 +6856,8 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8590
6856
|
exports.defaultLoadersSync = Object.freeze({
|
|
8591
6857
|
".cjs": loaders_1.loadJsSync,
|
|
8592
6858
|
".js": loaders_1.loadJsSync,
|
|
8593
|
-
".
|
|
6859
|
+
".cts": loaders_1.loadJsSync,
|
|
6860
|
+
".ts": loaders_1.loadJsSync,
|
|
8594
6861
|
".json": loaders_1.loadJson,
|
|
8595
6862
|
".yaml": loaders_1.loadYaml,
|
|
8596
6863
|
".yml": loaders_1.loadYaml,
|
|
@@ -8648,7 +6915,7 @@ var require_env_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8648
6915
|
module.exports.default = envPaths;
|
|
8649
6916
|
}));
|
|
8650
6917
|
//#endregion
|
|
8651
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
6918
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/util.js
|
|
8652
6919
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8653
6920
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
8654
6921
|
if (k2 === void 0) k2 = k;
|
|
@@ -8672,31 +6939,17 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8672
6939
|
}) : function(o, v) {
|
|
8673
6940
|
o["default"] = v;
|
|
8674
6941
|
});
|
|
8675
|
-
var __importStar = exports && exports.__importStar ||
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
return function(mod) {
|
|
8685
|
-
if (mod && mod.__esModule) return mod;
|
|
8686
|
-
var result = {};
|
|
8687
|
-
if (mod != null) {
|
|
8688
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
8689
|
-
}
|
|
8690
|
-
__setModuleDefault(result, mod);
|
|
8691
|
-
return result;
|
|
8692
|
-
};
|
|
8693
|
-
})();
|
|
6942
|
+
var __importStar = exports && exports.__importStar || function(mod) {
|
|
6943
|
+
if (mod && mod.__esModule) return mod;
|
|
6944
|
+
var result = {};
|
|
6945
|
+
if (mod != null) {
|
|
6946
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
6947
|
+
}
|
|
6948
|
+
__setModuleDefault(result, mod);
|
|
6949
|
+
return result;
|
|
6950
|
+
};
|
|
8694
6951
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8695
|
-
exports.emplace =
|
|
8696
|
-
exports.getPropertyByPath = getPropertyByPath;
|
|
8697
|
-
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
8698
|
-
exports.isDirectory = isDirectory;
|
|
8699
|
-
exports.isDirectorySync = isDirectorySync;
|
|
6952
|
+
exports.isDirectorySync = exports.isDirectory = exports.removeUndefinedValuesFromObject = exports.decodeFileContent = exports.getPropertyByPath = exports.emplace = void 0;
|
|
8700
6953
|
const fs_1$1 = __importStar(__require("fs"));
|
|
8701
6954
|
/**
|
|
8702
6955
|
* @internal
|
|
@@ -8708,6 +6961,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8708
6961
|
map.set(key, result);
|
|
8709
6962
|
return result;
|
|
8710
6963
|
}
|
|
6964
|
+
exports.emplace = emplace;
|
|
8711
6965
|
/**
|
|
8712
6966
|
* @internal
|
|
8713
6967
|
*/
|
|
@@ -8718,10 +6972,19 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8718
6972
|
return previous[key];
|
|
8719
6973
|
}, source);
|
|
8720
6974
|
}
|
|
6975
|
+
exports.getPropertyByPath = getPropertyByPath;
|
|
6976
|
+
/** @internal */
|
|
6977
|
+
function decodeFileContent(buffer) {
|
|
6978
|
+
if (buffer[0] === 255 && buffer[1] === 254) return new TextDecoder("utf-16le").decode(buffer);
|
|
6979
|
+
if (buffer[0] === 254 && buffer[1] === 255) return new TextDecoder("utf-16be").decode(buffer);
|
|
6980
|
+
return buffer.toString("utf-8");
|
|
6981
|
+
}
|
|
6982
|
+
exports.decodeFileContent = decodeFileContent;
|
|
8721
6983
|
/** @internal */
|
|
8722
6984
|
function removeUndefinedValuesFromObject(options) {
|
|
8723
6985
|
return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
|
|
8724
6986
|
}
|
|
6987
|
+
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
8725
6988
|
/** @internal */
|
|
8726
6989
|
/* istanbul ignore next -- @preserve */
|
|
8727
6990
|
async function isDirectory(path) {
|
|
@@ -8732,6 +6995,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8732
6995
|
throw e;
|
|
8733
6996
|
}
|
|
8734
6997
|
}
|
|
6998
|
+
exports.isDirectory = isDirectory;
|
|
8735
6999
|
/** @internal */
|
|
8736
7000
|
/* istanbul ignore next -- @preserve */
|
|
8737
7001
|
function isDirectorySync(path) {
|
|
@@ -8742,16 +7006,16 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8742
7006
|
throw e;
|
|
8743
7007
|
}
|
|
8744
7008
|
}
|
|
7009
|
+
exports.isDirectorySync = isDirectorySync;
|
|
8745
7010
|
}));
|
|
8746
7011
|
//#endregion
|
|
8747
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7012
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerBase.js
|
|
8748
7013
|
var require_ExplorerBase = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8749
7014
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
8750
7015
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
8751
7016
|
};
|
|
8752
7017
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8753
|
-
exports.ExplorerBase = void 0;
|
|
8754
|
-
exports.getExtensionDescription = getExtensionDescription;
|
|
7018
|
+
exports.getExtensionDescription = exports.ExplorerBase = void 0;
|
|
8755
7019
|
const env_paths_1 = __importDefault(require_env_paths());
|
|
8756
7020
|
const os_1 = __importDefault(__require("os"));
|
|
8757
7021
|
const path_1$2 = __importDefault(__require("path"));
|
|
@@ -8863,13 +7127,13 @@ ${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (
|
|
|
8863
7127
|
/* istanbul ignore next -- @preserve */
|
|
8864
7128
|
return extension ? `extension "${extension}"` : "files without extensions";
|
|
8865
7129
|
}
|
|
7130
|
+
exports.getExtensionDescription = getExtensionDescription;
|
|
8866
7131
|
}));
|
|
8867
7132
|
//#endregion
|
|
8868
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7133
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/merge.js
|
|
8869
7134
|
var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8870
7135
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8871
|
-
exports.hasOwn = void 0;
|
|
8872
|
-
exports.mergeAll = mergeAll;
|
|
7136
|
+
exports.mergeAll = exports.hasOwn = void 0;
|
|
8873
7137
|
exports.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
|
|
8874
7138
|
const objToString = Function.prototype.call.bind(Object.prototype.toString);
|
|
8875
7139
|
function isPlainObject(obj) {
|
|
@@ -8901,9 +7165,10 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8901
7165
|
function mergeAll(objects, options) {
|
|
8902
7166
|
return objects.reduce((target, source) => merge(target, source, options), {});
|
|
8903
7167
|
}
|
|
7168
|
+
exports.mergeAll = mergeAll;
|
|
8904
7169
|
}));
|
|
8905
7170
|
//#endregion
|
|
8906
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7171
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/Explorer.js
|
|
8907
7172
|
var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8908
7173
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
8909
7174
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -8962,7 +7227,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8962
7227
|
return await search();
|
|
8963
7228
|
}
|
|
8964
7229
|
async #readConfiguration(filepath, importStack = []) {
|
|
8965
|
-
const contents = await promises_1.default.readFile(filepath
|
|
7230
|
+
const contents = (0, util_js_1.decodeFileContent)(await promises_1.default.readFile(filepath));
|
|
8966
7231
|
return this.toCosmiconfigResult(filepath, await this.#loadConfigFileWithImports(filepath, contents, importStack));
|
|
8967
7232
|
}
|
|
8968
7233
|
async #loadConfigFileWithImports(filepath, contents, importStack) {
|
|
@@ -9038,7 +7303,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9038
7303
|
exports.Explorer = Explorer;
|
|
9039
7304
|
}));
|
|
9040
7305
|
//#endregion
|
|
9041
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7306
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerSync.js
|
|
9042
7307
|
var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9043
7308
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
9044
7309
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -9097,7 +7362,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9097
7362
|
return search();
|
|
9098
7363
|
}
|
|
9099
7364
|
#readConfiguration(filepath, importStack = []) {
|
|
9100
|
-
const contents = fs_1.default.readFileSync(filepath
|
|
7365
|
+
const contents = (0, util_js_1.decodeFileContent)(fs_1.default.readFileSync(filepath));
|
|
9101
7366
|
return this.toCosmiconfigResult(filepath, this.#loadConfigFileWithImports(filepath, contents, importStack));
|
|
9102
7367
|
}
|
|
9103
7368
|
#loadConfigFileWithImports(filepath, contents, importStack) {
|
|
@@ -9190,8 +7455,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9190
7455
|
//#region src/lib/loadConfig.ts
|
|
9191
7456
|
var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9192
7457
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9193
|
-
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
|
|
9194
|
-
exports.cosmiconfig = cosmiconfig;
|
|
7458
|
+
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
|
|
9195
7459
|
const defaults_1 = require_defaults();
|
|
9196
7460
|
Object.defineProperty(exports, "defaultLoaders", {
|
|
9197
7461
|
enumerable: true,
|
|
@@ -9265,7 +7529,8 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9265
7529
|
function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
|
|
9266
7530
|
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
|
|
9267
7531
|
if (userConfiguredOptions.mergeSearchPlaces) return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
|
|
9268
|
-
return userConfiguredSearchPlaces ??
|
|
7532
|
+
return userConfiguredSearchPlaces ??
|
|
7533
|
+
/* istanbul ignore next */ toolDefinedSearchPlaces;
|
|
9269
7534
|
}
|
|
9270
7535
|
function mergeOptionsBase(moduleName, defaults, options) {
|
|
9271
7536
|
const userDefinedConfig = getUserDefinedOptionsFromMetaConfig();
|
|
@@ -9309,6 +7574,21 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9309
7574
|
searchStrategy: options.stopDir ? "global" : "none"
|
|
9310
7575
|
}, options);
|
|
9311
7576
|
}
|
|
7577
|
+
function mergeOptionsSync(moduleName, options) {
|
|
7578
|
+
validateOptions(options);
|
|
7579
|
+
return mergeOptionsBase(moduleName, {
|
|
7580
|
+
moduleName,
|
|
7581
|
+
searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
|
|
7582
|
+
ignoreEmptySearchPlaces: true,
|
|
7583
|
+
cache: true,
|
|
7584
|
+
transform: identity,
|
|
7585
|
+
loaders: defaults_1.defaultLoadersSync,
|
|
7586
|
+
metaConfigFilePath: null,
|
|
7587
|
+
mergeImportArrays: true,
|
|
7588
|
+
mergeSearchPlaces: true,
|
|
7589
|
+
searchStrategy: options.stopDir ? "global" : "none"
|
|
7590
|
+
}, options);
|
|
7591
|
+
}
|
|
9312
7592
|
function cosmiconfig(moduleName, options = {}) {
|
|
9313
7593
|
const normalizedOptions = mergeOptions(moduleName, options);
|
|
9314
7594
|
const explorer = new Explorer_js_1.Explorer(normalizedOptions);
|
|
@@ -9320,10 +7600,25 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9320
7600
|
clearCaches: explorer.clearCaches.bind(explorer)
|
|
9321
7601
|
};
|
|
9322
7602
|
}
|
|
7603
|
+
exports.cosmiconfig = cosmiconfig;
|
|
7604
|
+
function cosmiconfigSync(moduleName, options = {}) {
|
|
7605
|
+
const normalizedOptions = mergeOptionsSync(moduleName, options);
|
|
7606
|
+
const explorerSync = new ExplorerSync_js_1.ExplorerSync(normalizedOptions);
|
|
7607
|
+
return {
|
|
7608
|
+
search: explorerSync.search.bind(explorerSync),
|
|
7609
|
+
load: explorerSync.load.bind(explorerSync),
|
|
7610
|
+
clearLoadCache: explorerSync.clearLoadCache.bind(explorerSync),
|
|
7611
|
+
clearSearchCache: explorerSync.clearSearchCache.bind(explorerSync),
|
|
7612
|
+
clearCaches: explorerSync.clearCaches.bind(explorerSync)
|
|
7613
|
+
};
|
|
7614
|
+
}
|
|
7615
|
+
exports.cosmiconfigSync = cosmiconfigSync;
|
|
9323
7616
|
})))();
|
|
9324
7617
|
const configState = {
|
|
9325
7618
|
config: void 0,
|
|
9326
|
-
/**
|
|
7619
|
+
/**
|
|
7620
|
+
In-flight root load so concurrent callers share one cosmiconfig search.
|
|
7621
|
+
*/
|
|
9327
7622
|
loadPromise: void 0,
|
|
9328
7623
|
rootConfigPath: void 0
|
|
9329
7624
|
};
|
|
@@ -9410,7 +7705,7 @@ const range = (a, b, str) => {
|
|
|
9410
7705
|
return result;
|
|
9411
7706
|
};
|
|
9412
7707
|
//#endregion
|
|
9413
|
-
//#region ../../node_modules/.pnpm/brace-expansion@5.0.
|
|
7708
|
+
//#region ../../node_modules/.pnpm/brace-expansion@5.0.9/node_modules/brace-expansion/dist/esm/index.js
|
|
9414
7709
|
const escSlash = "\0SLASH" + Math.random() + "\0";
|
|
9415
7710
|
const escOpen = "\0OPEN" + Math.random() + "\0";
|
|
9416
7711
|
const escClose = "\0CLOSE" + Math.random() + "\0";
|
|
@@ -9427,6 +7722,7 @@ const closePattern = /\\}/g;
|
|
|
9427
7722
|
const commaPattern = /\\,/g;
|
|
9428
7723
|
const periodPattern = /\\\./g;
|
|
9429
7724
|
const EXPANSION_MAX = 1e5;
|
|
7725
|
+
const EXPANSION_MAX_LENGTH = 4e6;
|
|
9430
7726
|
function numeric(str) {
|
|
9431
7727
|
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
|
9432
7728
|
}
|
|
@@ -9459,9 +7755,9 @@ function parseCommaParts(str) {
|
|
|
9459
7755
|
}
|
|
9460
7756
|
function expand(str, options = {}) {
|
|
9461
7757
|
if (!str) return [];
|
|
9462
|
-
const { max = EXPANSION_MAX } = options;
|
|
7758
|
+
const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
|
|
9463
7759
|
if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
|
|
9464
|
-
return expand_(escapeBraces(str), max, true).map(unescapeBraces);
|
|
7760
|
+
return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
|
|
9465
7761
|
}
|
|
9466
7762
|
function embrace(str) {
|
|
9467
7763
|
return "{" + str + "}";
|
|
@@ -9475,20 +7771,72 @@ function lte(i, y) {
|
|
|
9475
7771
|
function gte(i, y) {
|
|
9476
7772
|
return i >= y;
|
|
9477
7773
|
}
|
|
9478
|
-
function
|
|
9479
|
-
|
|
9480
|
-
|
|
7774
|
+
function combine(acc, pre, values, max, maxLength, dropEmpties) {
|
|
7775
|
+
const out = [];
|
|
7776
|
+
let length = 0;
|
|
7777
|
+
for (let a = 0; a < acc.length; a++) for (let v = 0; v < values.length; v++) {
|
|
7778
|
+
if (out.length >= max) return out;
|
|
7779
|
+
const expansion = acc[a] + pre + values[v];
|
|
7780
|
+
if (dropEmpties && !expansion) continue;
|
|
7781
|
+
if (length + expansion.length > maxLength) return out;
|
|
7782
|
+
out.push(expansion);
|
|
7783
|
+
length += expansion.length;
|
|
7784
|
+
}
|
|
7785
|
+
return out;
|
|
7786
|
+
}
|
|
7787
|
+
function expandSequence(body, isAlphaSequence, max, maxLength) {
|
|
7788
|
+
const n = body.split(/\.\./);
|
|
7789
|
+
const N = [];
|
|
7790
|
+
/* c8 ignore start */
|
|
7791
|
+
if (n[0] === void 0 || n[1] === void 0) return N;
|
|
7792
|
+
/* c8 ignore stop */
|
|
7793
|
+
const x = numeric(n[0]);
|
|
7794
|
+
const y = numeric(n[1]);
|
|
7795
|
+
const width = Math.max(n[0].length, n[1].length);
|
|
7796
|
+
let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
7797
|
+
let test = lte;
|
|
7798
|
+
if (y < x) {
|
|
7799
|
+
incr *= -1;
|
|
7800
|
+
test = gte;
|
|
7801
|
+
}
|
|
7802
|
+
const pad = n.some(isPadded);
|
|
7803
|
+
let length = 0;
|
|
7804
|
+
for (let i = x; test(i, y) && N.length < max; i += incr) {
|
|
7805
|
+
let c;
|
|
7806
|
+
if (isAlphaSequence) {
|
|
7807
|
+
c = String.fromCharCode(i);
|
|
7808
|
+
if (c === "\\") c = "";
|
|
7809
|
+
} else {
|
|
7810
|
+
c = String(i);
|
|
7811
|
+
if (pad) {
|
|
7812
|
+
const need = width - c.length;
|
|
7813
|
+
if (need > 0) {
|
|
7814
|
+
const z = new Array(need + 1).join("0");
|
|
7815
|
+
if (i < 0) c = "-" + z + c.slice(1);
|
|
7816
|
+
else c = z + c;
|
|
7817
|
+
}
|
|
7818
|
+
}
|
|
7819
|
+
}
|
|
7820
|
+
if (length + c.length > maxLength) break;
|
|
7821
|
+
N.push(c);
|
|
7822
|
+
length += c.length;
|
|
7823
|
+
}
|
|
7824
|
+
return N;
|
|
7825
|
+
}
|
|
7826
|
+
function expand_(str, max, maxLength, isTop) {
|
|
7827
|
+
let acc = [""];
|
|
7828
|
+
let dropEmpties = false;
|
|
7829
|
+
let firstGroup = true;
|
|
9481
7830
|
for (;;) {
|
|
9482
7831
|
const m = balanced("{", "}", str);
|
|
9483
|
-
if (!m) return [
|
|
7832
|
+
if (!m) return combine(acc, str, [""], max, maxLength, dropEmpties);
|
|
9484
7833
|
const pre = m.pre;
|
|
9485
|
-
if (/\$$/.test(
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
return expansions;
|
|
7834
|
+
if (/\$$/.test(pre)) {
|
|
7835
|
+
acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
|
|
7836
|
+
firstGroup = false;
|
|
7837
|
+
if (!m.post.length) break;
|
|
7838
|
+
str = m.post;
|
|
7839
|
+
continue;
|
|
9492
7840
|
}
|
|
9493
7841
|
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
9494
7842
|
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
@@ -9500,70 +7848,56 @@ function expand_(str, max, isTop) {
|
|
|
9500
7848
|
isTop = true;
|
|
9501
7849
|
continue;
|
|
9502
7850
|
}
|
|
9503
|
-
return [
|
|
7851
|
+
return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
|
|
9504
7852
|
}
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
7853
|
+
if (firstGroup) {
|
|
7854
|
+
dropEmpties = isTop && !isSequence;
|
|
7855
|
+
firstGroup = false;
|
|
7856
|
+
}
|
|
7857
|
+
let values;
|
|
7858
|
+
if (isSequence) values = expandSequence(m.body, isAlphaSequence, max, maxLength);
|
|
9508
7859
|
else {
|
|
9509
|
-
n = parseCommaParts(m.body);
|
|
7860
|
+
let n = parseCommaParts(m.body);
|
|
9510
7861
|
if (n.length === 1 && n[0] !== void 0) {
|
|
9511
|
-
n = expand_(n[0], max, false).map(embrace);
|
|
7862
|
+
n = expand_(n[0], max, maxLength, false).map(embrace);
|
|
9512
7863
|
/* c8 ignore start */
|
|
9513
|
-
if (n.length === 1)
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
let
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
c = String.fromCharCode(i);
|
|
9533
|
-
if (c === "\\") c = "";
|
|
9534
|
-
} else {
|
|
9535
|
-
c = String(i);
|
|
9536
|
-
if (pad) {
|
|
9537
|
-
const need = width - c.length;
|
|
9538
|
-
if (need > 0) {
|
|
9539
|
-
const z = new Array(need + 1).join("0");
|
|
9540
|
-
if (i < 0) c = "-" + z + c.slice(1);
|
|
9541
|
-
else c = z + c;
|
|
9542
|
-
}
|
|
9543
|
-
}
|
|
7864
|
+
if (n.length === 1) {
|
|
7865
|
+
acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
|
|
7866
|
+
if (!m.post.length) break;
|
|
7867
|
+
str = m.post;
|
|
7868
|
+
continue;
|
|
7869
|
+
}
|
|
7870
|
+
}
|
|
7871
|
+
let dropsEmpties = dropEmpties && !m.post.length && !pre;
|
|
7872
|
+
for (let d = 0; dropsEmpties && d < acc.length; d++) if (acc[d]) dropsEmpties = false;
|
|
7873
|
+
values = [];
|
|
7874
|
+
let valuesLength = 0;
|
|
7875
|
+
outer: for (let j = 0; j < n.length; j++) {
|
|
7876
|
+
const expanded = expand_(n[j], max, maxLength, false);
|
|
7877
|
+
for (let k = 0; k < expanded.length; k++) {
|
|
7878
|
+
const v = expanded[k];
|
|
7879
|
+
if (dropsEmpties && !v) continue;
|
|
7880
|
+
if (values.length >= max || valuesLength + v.length > maxLength) break outer;
|
|
7881
|
+
values.push(v);
|
|
7882
|
+
valuesLength += v.length;
|
|
9544
7883
|
}
|
|
9545
|
-
N.push(c);
|
|
9546
7884
|
}
|
|
9547
|
-
} else {
|
|
9548
|
-
N = [];
|
|
9549
|
-
for (let j = 0; j < n.length; j++) N.push.apply(N, expand_(n[j], max, false));
|
|
9550
|
-
}
|
|
9551
|
-
for (let j = 0; j < N.length; j++) for (let k = 0; k < post.length && expansions.length < max; k++) {
|
|
9552
|
-
const expansion = pre + N[j] + post[k];
|
|
9553
|
-
if (!isTop || isSequence || expansion) expansions.push(expansion);
|
|
9554
7885
|
}
|
|
9555
|
-
|
|
7886
|
+
acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
|
|
7887
|
+
if (!m.post.length) break;
|
|
7888
|
+
str = m.post;
|
|
9556
7889
|
}
|
|
7890
|
+
return acc;
|
|
9557
7891
|
}
|
|
9558
7892
|
//#endregion
|
|
9559
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
9560
|
-
const MAX_PATTERN_LENGTH =
|
|
7893
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
7894
|
+
const MAX_PATTERN_LENGTH = 65536;
|
|
9561
7895
|
const assertValidPattern = (pattern) => {
|
|
9562
7896
|
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
9563
7897
|
if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
|
|
9564
7898
|
};
|
|
9565
7899
|
//#endregion
|
|
9566
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
7900
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
9567
7901
|
const posixClasses = {
|
|
9568
7902
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
9569
7903
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -9687,7 +8021,7 @@ const parseClass = (glob, position) => {
|
|
|
9687
8021
|
];
|
|
9688
8022
|
};
|
|
9689
8023
|
//#endregion
|
|
9690
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
8024
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
|
|
9691
8025
|
/**
|
|
9692
8026
|
* Un-escape a string that has been escaped with {@link escape}.
|
|
9693
8027
|
*
|
|
@@ -9712,7 +8046,7 @@ const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}
|
|
|
9712
8046
|
return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
|
|
9713
8047
|
};
|
|
9714
8048
|
//#endregion
|
|
9715
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
8049
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
|
|
9716
8050
|
var _a;
|
|
9717
8051
|
const types = /* @__PURE__ */ new Set([
|
|
9718
8052
|
"!",
|
|
@@ -10221,7 +8555,7 @@ var AST = class {
|
|
|
10221
8555
|
};
|
|
10222
8556
|
_a = AST;
|
|
10223
8557
|
//#endregion
|
|
10224
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
8558
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
|
|
10225
8559
|
/**
|
|
10226
8560
|
* Escape all magic characters in a glob pattern.
|
|
10227
8561
|
*
|
|
@@ -10239,7 +8573,7 @@ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {})
|
|
|
10239
8573
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
10240
8574
|
};
|
|
10241
8575
|
//#endregion
|
|
10242
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
8576
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
|
|
10243
8577
|
const minimatch = (p, pattern, options = {}) => {
|
|
10244
8578
|
assertValidPattern(pattern);
|
|
10245
8579
|
if (!options.nocomment && pattern.charAt(0) === "#") return false;
|
|
@@ -10791,9 +9125,10 @@ var Minimatch = class {
|
|
|
10791
9125
|
const next = pp[i + 1];
|
|
10792
9126
|
const prev = pp[i - 1];
|
|
10793
9127
|
if (p !== GLOBSTAR || prev === GLOBSTAR) return;
|
|
10794
|
-
if (prev === void 0)
|
|
10795
|
-
|
|
10796
|
-
|
|
9128
|
+
if (prev === void 0) {
|
|
9129
|
+
if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
|
|
9130
|
+
else pp[i] = twoStar;
|
|
9131
|
+
} else if (next === void 0) pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
|
|
10797
9132
|
else if (next !== GLOBSTAR) {
|
|
10798
9133
|
pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
10799
9134
|
pp[i + 1] = GLOBSTAR;
|
|
@@ -10867,7 +9202,9 @@ function makeMatcher(pattern, options = {}) {
|
|
|
10867
9202
|
const patterns = Array.isArray(pattern) ? pattern : [pattern];
|
|
10868
9203
|
return (input) => patterns.some((p) => minimatch(input, p, options));
|
|
10869
9204
|
}
|
|
10870
|
-
/**
|
|
9205
|
+
/**
|
|
9206
|
+
Convenience one-shot test: `isMatch(input, pattern)`.
|
|
9207
|
+
*/
|
|
10871
9208
|
function isMatch(input, pattern, options = {}) {
|
|
10872
9209
|
return makeMatcher(pattern, options)(input);
|
|
10873
9210
|
}
|
|
@@ -10924,9 +9261,7 @@ const buildEntries = (srcDir, entryMode = "single", options, shouldExcludeSpecAn
|
|
|
10924
9261
|
case "custom":
|
|
10925
9262
|
entries = [];
|
|
10926
9263
|
break;
|
|
10927
|
-
default:
|
|
10928
|
-
entries = ["index.ts"];
|
|
10929
|
-
break;
|
|
9264
|
+
default: entries = ["index.ts"];
|
|
10930
9265
|
}
|
|
10931
9266
|
if (typeof options !== "boolean" && Array.isArray(options?.entry)) entries.push(...options.entry);
|
|
10932
9267
|
if (isVerbose) console.log(`buildEntries [${entryMode}] ${entries.length}`);
|
|
@@ -10957,7 +9292,7 @@ const I = "ERR_PACKAGE_PATH_NOT_EXPORTED";
|
|
|
10957
9292
|
const R$1 = /^\d+$/;
|
|
10958
9293
|
const O$1 = /^(\.{1,2}|node_modules)$/i;
|
|
10959
9294
|
const w = /\/|\\/;
|
|
10960
|
-
var h
|
|
9295
|
+
var h = ((r) => (r.Export = "exports", r.Import = "imports", r))(h || {});
|
|
10961
9296
|
const f = (r, t, e, o, c) => {
|
|
10962
9297
|
if (t == null) return [];
|
|
10963
9298
|
if (typeof t == "string") {
|
|
@@ -11001,23 +9336,23 @@ const u = /^\w+:/;
|
|
|
11001
9336
|
const v = (r, t, e) => {
|
|
11002
9337
|
if (!r) throw new Error("\"exports\" is required");
|
|
11003
9338
|
t = t === "" ? "." : `./${t}`, (typeof r == "string" || Array.isArray(r) || A(r) && p(r)) && (r = { ".": r });
|
|
11004
|
-
const [o, c] = d(r, t), n = f(h
|
|
9339
|
+
const [o, c] = d(r, t), n = f(h.Export, r[o], t, e, c);
|
|
11005
9340
|
if (n.length === 0) throw a(I, t === "." ? "No \"exports\" main defined" : `Package subpath '${t}' is not defined by "exports"`);
|
|
11006
9341
|
for (const i of n) if (!i.startsWith("./") && !u.test(i)) throw a(E$1, `Invalid "exports" target "${i}" defined in the package config`);
|
|
11007
9342
|
return n;
|
|
11008
9343
|
};
|
|
11009
9344
|
//#endregion
|
|
11010
|
-
//#region ../../node_modules/.pnpm/get-tsconfig@4.14.
|
|
9345
|
+
//#region ../../node_modules/.pnpm/get-tsconfig@4.14.1/node_modules/get-tsconfig/dist/index.mjs
|
|
11011
9346
|
var xe = Object.defineProperty;
|
|
11012
|
-
var
|
|
9347
|
+
var i = (e, t) => xe(e, "name", {
|
|
11013
9348
|
value: t,
|
|
11014
9349
|
configurable: !0
|
|
11015
9350
|
});
|
|
11016
|
-
function
|
|
9351
|
+
function L(e) {
|
|
11017
9352
|
return e.startsWith("\\\\?\\") ? e : e.replace(/\\/g, "/");
|
|
11018
9353
|
}
|
|
11019
|
-
|
|
11020
|
-
const
|
|
9354
|
+
i(L, "slash");
|
|
9355
|
+
const Q = i((e) => {
|
|
11021
9356
|
const t = fs[e];
|
|
11022
9357
|
return (s, ...n) => {
|
|
11023
9358
|
const o = `${e}:${n.join(":")}`;
|
|
@@ -11025,10 +9360,16 @@ const K = r((e) => {
|
|
|
11025
9360
|
return l === void 0 && (l = Reflect.apply(t, fs, n), s?.set(o, l)), l;
|
|
11026
9361
|
};
|
|
11027
9362
|
}, "cacheFs");
|
|
11028
|
-
const x =
|
|
11029
|
-
const Se =
|
|
11030
|
-
const
|
|
11031
|
-
const
|
|
9363
|
+
const x = Q("existsSync");
|
|
9364
|
+
const Se = Q("readFileSync");
|
|
9365
|
+
const H = Q("statSync");
|
|
9366
|
+
const Ne = Q("realpathSync");
|
|
9367
|
+
const Pe$1 = i((...[e, t]) => {
|
|
9368
|
+
const s = Ne(e, t);
|
|
9369
|
+
if (typeof s != "string") throw new TypeError(`Unexpected resolved path type for ${s} in ${t}`);
|
|
9370
|
+
return s;
|
|
9371
|
+
}, "realpath");
|
|
9372
|
+
const O = i((e, t, s) => {
|
|
11032
9373
|
for (;;) {
|
|
11033
9374
|
const n = PATH.posix.join(e, t);
|
|
11034
9375
|
if (x(s, n)) return n;
|
|
@@ -11038,49 +9379,49 @@ const O = r((e, t, s) => {
|
|
|
11038
9379
|
}
|
|
11039
9380
|
}, "findUp");
|
|
11040
9381
|
const C = /^\.{1,2}(\/.*)?$/;
|
|
11041
|
-
const
|
|
11042
|
-
const t =
|
|
9382
|
+
const X = i((e) => {
|
|
9383
|
+
const t = L(e);
|
|
11043
9384
|
return C.test(t) ? t : `./${t}`;
|
|
11044
9385
|
}, "normalizeRelativePath");
|
|
11045
|
-
function
|
|
9386
|
+
function We(e, t = !1) {
|
|
11046
9387
|
const s = e.length;
|
|
11047
|
-
let n = 0, o = "", l = 0,
|
|
9388
|
+
let n = 0, o = "", l = 0, r = 16, f = 0, u = 0, g = 0, d = 0, b = 0;
|
|
11048
9389
|
function _(c, j) {
|
|
11049
|
-
let y = 0,
|
|
9390
|
+
let y = 0, A = 0;
|
|
11050
9391
|
for (; y < c;) {
|
|
11051
9392
|
let k = e.charCodeAt(n);
|
|
11052
|
-
if (k >= 48 && k <= 57)
|
|
11053
|
-
else if (k >= 65 && k <= 70)
|
|
11054
|
-
else if (k >= 97 && k <= 102)
|
|
9393
|
+
if (k >= 48 && k <= 57) A = A * 16 + k - 48;
|
|
9394
|
+
else if (k >= 65 && k <= 70) A = A * 16 + k - 65 + 10;
|
|
9395
|
+
else if (k >= 97 && k <= 102) A = A * 16 + k - 97 + 10;
|
|
11055
9396
|
else break;
|
|
11056
9397
|
n++, y++;
|
|
11057
9398
|
}
|
|
11058
|
-
return y < c && (
|
|
9399
|
+
return y < c && (A = -1), A;
|
|
11059
9400
|
}
|
|
11060
|
-
|
|
11061
|
-
function
|
|
11062
|
-
n = c, o = "", l = 0,
|
|
9401
|
+
i(_, "scanHexDigits");
|
|
9402
|
+
function h(c) {
|
|
9403
|
+
n = c, o = "", l = 0, r = 16, b = 0;
|
|
11063
9404
|
}
|
|
11064
|
-
|
|
11065
|
-
function
|
|
9405
|
+
i(h, "setPosition");
|
|
9406
|
+
function D() {
|
|
11066
9407
|
let c = n;
|
|
11067
9408
|
if (e.charCodeAt(n) === 48) n++;
|
|
11068
9409
|
else for (n++; n < e.length && R(e.charCodeAt(n));) n++;
|
|
11069
9410
|
if (n < e.length && e.charCodeAt(n) === 46) if (n++, n < e.length && R(e.charCodeAt(n))) for (n++; n < e.length && R(e.charCodeAt(n));) n++;
|
|
11070
|
-
else return
|
|
9411
|
+
else return b = 3, e.substring(c, n);
|
|
11071
9412
|
let j = n;
|
|
11072
9413
|
if (n < e.length && (e.charCodeAt(n) === 69 || e.charCodeAt(n) === 101)) if (n++, (n < e.length && e.charCodeAt(n) === 43 || e.charCodeAt(n) === 45) && n++, n < e.length && R(e.charCodeAt(n))) {
|
|
11073
9414
|
for (n++; n < e.length && R(e.charCodeAt(n));) n++;
|
|
11074
9415
|
j = n;
|
|
11075
|
-
} else
|
|
9416
|
+
} else b = 3;
|
|
11076
9417
|
return e.substring(c, j);
|
|
11077
9418
|
}
|
|
11078
|
-
|
|
11079
|
-
function
|
|
9419
|
+
i(D, "scanNumber");
|
|
9420
|
+
function T() {
|
|
11080
9421
|
let c = "", j = n;
|
|
11081
9422
|
for (;;) {
|
|
11082
9423
|
if (n >= s) {
|
|
11083
|
-
c += e.substring(j, n),
|
|
9424
|
+
c += e.substring(j, n), b = 2;
|
|
11084
9425
|
break;
|
|
11085
9426
|
}
|
|
11086
9427
|
const y = e.charCodeAt(n);
|
|
@@ -11090,7 +9431,7 @@ function Ne(e, t = !1) {
|
|
|
11090
9431
|
}
|
|
11091
9432
|
if (y === 92) {
|
|
11092
9433
|
if (c += e.substring(j, n), n++, n >= s) {
|
|
11093
|
-
|
|
9434
|
+
b = 2;
|
|
11094
9435
|
break;
|
|
11095
9436
|
}
|
|
11096
9437
|
switch (e.charCodeAt(n++)) {
|
|
@@ -11121,63 +9462,63 @@ function Ne(e, t = !1) {
|
|
|
11121
9462
|
break;
|
|
11122
9463
|
case 117:
|
|
11123
9464
|
const k = _(4);
|
|
11124
|
-
k >= 0 ? c += String.fromCharCode(k) :
|
|
9465
|
+
k >= 0 ? c += String.fromCharCode(k) : b = 4;
|
|
11125
9466
|
break;
|
|
11126
|
-
default:
|
|
9467
|
+
default: b = 5;
|
|
11127
9468
|
}
|
|
11128
9469
|
j = n;
|
|
11129
9470
|
continue;
|
|
11130
9471
|
}
|
|
11131
9472
|
if (y >= 0 && y <= 31) if (J(y)) {
|
|
11132
|
-
c += e.substring(j, n),
|
|
9473
|
+
c += e.substring(j, n), b = 2;
|
|
11133
9474
|
break;
|
|
11134
|
-
} else
|
|
9475
|
+
} else b = 6;
|
|
11135
9476
|
n++;
|
|
11136
9477
|
}
|
|
11137
9478
|
return c;
|
|
11138
9479
|
}
|
|
11139
|
-
|
|
11140
|
-
function
|
|
11141
|
-
if (o = "",
|
|
9480
|
+
i(T, "scanString");
|
|
9481
|
+
function w() {
|
|
9482
|
+
if (o = "", b = 0, l = n, u = f, d = g, n >= s) return l = s, r = 17;
|
|
11142
9483
|
let c = e.charCodeAt(n);
|
|
11143
9484
|
if (ee(c)) {
|
|
11144
9485
|
do
|
|
11145
9486
|
n++, o += String.fromCharCode(c), c = e.charCodeAt(n);
|
|
11146
9487
|
while (ee(c));
|
|
11147
|
-
return
|
|
9488
|
+
return r = 15;
|
|
11148
9489
|
}
|
|
11149
9490
|
if (J(c)) return n++, o += String.fromCharCode(c), c === 13 && e.charCodeAt(n) === 10 && (n++, o += `
|
|
11150
|
-
`), f++, g = n,
|
|
9491
|
+
`), f++, g = n, r = 14;
|
|
11151
9492
|
switch (c) {
|
|
11152
|
-
case 123: return n++,
|
|
11153
|
-
case 125: return n++,
|
|
11154
|
-
case 91: return n++,
|
|
11155
|
-
case 93: return n++,
|
|
11156
|
-
case 58: return n++,
|
|
11157
|
-
case 44: return n++,
|
|
11158
|
-
case 34: return n++, o =
|
|
9493
|
+
case 123: return n++, r = 1;
|
|
9494
|
+
case 125: return n++, r = 2;
|
|
9495
|
+
case 91: return n++, r = 3;
|
|
9496
|
+
case 93: return n++, r = 4;
|
|
9497
|
+
case 58: return n++, r = 6;
|
|
9498
|
+
case 44: return n++, r = 5;
|
|
9499
|
+
case 34: return n++, o = T(), r = 10;
|
|
11159
9500
|
case 47:
|
|
11160
9501
|
const j = n - 1;
|
|
11161
9502
|
if (e.charCodeAt(n + 1) === 47) {
|
|
11162
9503
|
for (n += 2; n < s && !J(e.charCodeAt(n));) n++;
|
|
11163
|
-
return o = e.substring(j, n),
|
|
9504
|
+
return o = e.substring(j, n), r = 12;
|
|
11164
9505
|
}
|
|
11165
9506
|
if (e.charCodeAt(n + 1) === 42) {
|
|
11166
9507
|
n += 2;
|
|
11167
9508
|
const y = s - 1;
|
|
11168
|
-
let
|
|
9509
|
+
let A = !1;
|
|
11169
9510
|
for (; n < y;) {
|
|
11170
9511
|
const k = e.charCodeAt(n);
|
|
11171
9512
|
if (k === 42 && e.charCodeAt(n + 1) === 47) {
|
|
11172
|
-
n += 2,
|
|
9513
|
+
n += 2, A = !0;
|
|
11173
9514
|
break;
|
|
11174
9515
|
}
|
|
11175
9516
|
n++, J(k) && (k === 13 && e.charCodeAt(n) === 10 && n++, f++, g = n);
|
|
11176
9517
|
}
|
|
11177
|
-
return
|
|
9518
|
+
return A || (n++, b = 1), o = e.substring(j, n), r = 13;
|
|
11178
9519
|
}
|
|
11179
|
-
return o += String.fromCharCode(c), n++,
|
|
11180
|
-
case 45: if (o += String.fromCharCode(c), n++, n === s || !R(e.charCodeAt(n))) return
|
|
9520
|
+
return o += String.fromCharCode(c), n++, r = 16;
|
|
9521
|
+
case 45: if (o += String.fromCharCode(c), n++, n === s || !R(e.charCodeAt(n))) return r = 16;
|
|
11181
9522
|
case 48:
|
|
11182
9523
|
case 49:
|
|
11183
9524
|
case 50:
|
|
@@ -11187,22 +9528,22 @@ function Ne(e, t = !1) {
|
|
|
11187
9528
|
case 54:
|
|
11188
9529
|
case 55:
|
|
11189
9530
|
case 56:
|
|
11190
|
-
case 57: return o +=
|
|
9531
|
+
case 57: return o += D(), r = 11;
|
|
11191
9532
|
default:
|
|
11192
|
-
for (; n < s &&
|
|
9533
|
+
for (; n < s && v(c);) n++, c = e.charCodeAt(n);
|
|
11193
9534
|
if (l !== n) {
|
|
11194
9535
|
switch (o = e.substring(l, n), o) {
|
|
11195
|
-
case "true": return
|
|
11196
|
-
case "false": return
|
|
11197
|
-
case "null": return
|
|
9536
|
+
case "true": return r = 8;
|
|
9537
|
+
case "false": return r = 9;
|
|
9538
|
+
case "null": return r = 7;
|
|
11198
9539
|
}
|
|
11199
|
-
return
|
|
9540
|
+
return r = 16;
|
|
11200
9541
|
}
|
|
11201
|
-
return o += String.fromCharCode(c), n++,
|
|
9542
|
+
return o += String.fromCharCode(c), n++, r = 16;
|
|
11202
9543
|
}
|
|
11203
9544
|
}
|
|
11204
|
-
|
|
11205
|
-
function
|
|
9545
|
+
i(w, "scanNext");
|
|
9546
|
+
function v(c) {
|
|
11206
9547
|
if (ee(c) || J(c)) return !1;
|
|
11207
9548
|
switch (c) {
|
|
11208
9549
|
case 125:
|
|
@@ -11216,40 +9557,40 @@ function Ne(e, t = !1) {
|
|
|
11216
9557
|
}
|
|
11217
9558
|
return !0;
|
|
11218
9559
|
}
|
|
11219
|
-
|
|
9560
|
+
i(v, "isUnknownContentCharacter");
|
|
11220
9561
|
function B() {
|
|
11221
9562
|
let c;
|
|
11222
9563
|
do
|
|
11223
|
-
c =
|
|
9564
|
+
c = w();
|
|
11224
9565
|
while (c >= 12 && c <= 15);
|
|
11225
9566
|
return c;
|
|
11226
9567
|
}
|
|
11227
|
-
return
|
|
11228
|
-
setPosition:
|
|
11229
|
-
getPosition:
|
|
11230
|
-
scan: t ? B :
|
|
11231
|
-
getToken:
|
|
11232
|
-
getTokenValue:
|
|
11233
|
-
getTokenOffset:
|
|
11234
|
-
getTokenLength:
|
|
11235
|
-
getTokenStartLine:
|
|
11236
|
-
getTokenStartCharacter:
|
|
11237
|
-
getTokenError:
|
|
9568
|
+
return i(B, "scanNextNonTrivia"), {
|
|
9569
|
+
setPosition: h,
|
|
9570
|
+
getPosition: i(() => n, "getPosition"),
|
|
9571
|
+
scan: t ? B : w,
|
|
9572
|
+
getToken: i(() => r, "getToken"),
|
|
9573
|
+
getTokenValue: i(() => o, "getTokenValue"),
|
|
9574
|
+
getTokenOffset: i(() => l, "getTokenOffset"),
|
|
9575
|
+
getTokenLength: i(() => n - l, "getTokenLength"),
|
|
9576
|
+
getTokenStartLine: i(() => u, "getTokenStartLine"),
|
|
9577
|
+
getTokenStartCharacter: i(() => l - d, "getTokenStartCharacter"),
|
|
9578
|
+
getTokenError: i(() => b, "getTokenError")
|
|
11238
9579
|
};
|
|
11239
9580
|
}
|
|
11240
|
-
|
|
9581
|
+
i(We, "createScanner");
|
|
11241
9582
|
function ee(e) {
|
|
11242
9583
|
return e === 32 || e === 9;
|
|
11243
9584
|
}
|
|
11244
|
-
|
|
9585
|
+
i(ee, "isWhiteSpace");
|
|
11245
9586
|
function J(e) {
|
|
11246
9587
|
return e === 10 || e === 13;
|
|
11247
9588
|
}
|
|
11248
|
-
|
|
9589
|
+
i(J, "isLineBreak");
|
|
11249
9590
|
function R(e) {
|
|
11250
9591
|
return e >= 48 && e <= 57;
|
|
11251
9592
|
}
|
|
11252
|
-
|
|
9593
|
+
i(R, "isDigit");
|
|
11253
9594
|
var ge;
|
|
11254
9595
|
(function(e) {
|
|
11255
9596
|
e[e.lineFeed = 10] = "lineFeed", e[e.carriageReturn = 13] = "carriageReturn", e[e.space = 32] = "space", e[e._0 = 48] = "_0", e[e._1 = 49] = "_1", e[e._2 = 50] = "_2", e[e._3 = 51] = "_3", e[e._4 = 52] = "_4", e[e._5 = 53] = "_5", e[e._6 = 54] = "_6", e[e._7 = 55] = "_7", e[e._8 = 56] = "_8", e[e._9 = 57] = "_9", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.c = 99] = "c", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.g = 103] = "g", e[e.h = 104] = "h", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.k = 107] = "k", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.p = 112] = "p", e[e.q = 113] = "q", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.v = 118] = "v", e[e.w = 119] = "w", e[e.x = 120] = "x", e[e.y = 121] = "y", e[e.z = 122] = "z", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z", e[e.asterisk = 42] = "asterisk", e[e.backslash = 92] = "backslash", e[e.closeBrace = 125] = "closeBrace", e[e.closeBracket = 93] = "closeBracket", e[e.colon = 58] = "colon", e[e.comma = 44] = "comma", e[e.dot = 46] = "dot", e[e.doubleQuote = 34] = "doubleQuote", e[e.minus = 45] = "minus", e[e.openBrace = 123] = "openBrace", e[e.openBracket = 91] = "openBracket", e[e.plus = 43] = "plus", e[e.slash = 47] = "slash", e[e.formFeed = 12] = "formFeed", e[e.tab = 9] = "tab";
|
|
@@ -11260,76 +9601,76 @@ new Array(S).fill(0).map((e, t) => `
|
|
|
11260
9601
|
` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `
|
|
11261
9602
|
` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `\r
|
|
11262
9603
|
` + " ".repeat(t));
|
|
11263
|
-
var
|
|
9604
|
+
var Y;
|
|
11264
9605
|
(function(e) {
|
|
11265
9606
|
e.DEFAULT = { allowTrailingComma: !1 };
|
|
11266
|
-
})(
|
|
11267
|
-
function
|
|
9607
|
+
})(Y || (Y = {}));
|
|
9608
|
+
function Je(e, t = [], s = Y.DEFAULT) {
|
|
11268
9609
|
let n = null, o = [];
|
|
11269
9610
|
const l = [];
|
|
11270
|
-
function
|
|
9611
|
+
function r(u) {
|
|
11271
9612
|
Array.isArray(o) ? o.push(u) : n !== null && (o[n] = u);
|
|
11272
9613
|
}
|
|
11273
|
-
return r
|
|
11274
|
-
onObjectBegin:
|
|
9614
|
+
return i(r, "onValue"), Me(e, {
|
|
9615
|
+
onObjectBegin: i(() => {
|
|
11275
9616
|
const u = {};
|
|
11276
|
-
|
|
9617
|
+
r(u), l.push(o), o = u, n = null;
|
|
11277
9618
|
}, "onObjectBegin"),
|
|
11278
|
-
onObjectProperty:
|
|
9619
|
+
onObjectProperty: i((u) => {
|
|
11279
9620
|
n = u;
|
|
11280
9621
|
}, "onObjectProperty"),
|
|
11281
|
-
onObjectEnd:
|
|
9622
|
+
onObjectEnd: i(() => {
|
|
11282
9623
|
o = l.pop();
|
|
11283
9624
|
}, "onObjectEnd"),
|
|
11284
|
-
onArrayBegin:
|
|
9625
|
+
onArrayBegin: i(() => {
|
|
11285
9626
|
const u = [];
|
|
11286
|
-
|
|
9627
|
+
r(u), l.push(o), o = u, n = null;
|
|
11287
9628
|
}, "onArrayBegin"),
|
|
11288
|
-
onArrayEnd:
|
|
9629
|
+
onArrayEnd: i(() => {
|
|
11289
9630
|
o = l.pop();
|
|
11290
9631
|
}, "onArrayEnd"),
|
|
11291
|
-
onLiteralValue:
|
|
11292
|
-
onError:
|
|
9632
|
+
onLiteralValue: r,
|
|
9633
|
+
onError: i((u, g, d) => {
|
|
11293
9634
|
t.push({
|
|
11294
9635
|
error: u,
|
|
11295
9636
|
offset: g,
|
|
11296
|
-
length:
|
|
9637
|
+
length: d
|
|
11297
9638
|
});
|
|
11298
9639
|
}, "onError")
|
|
11299
9640
|
}, s), o[0];
|
|
11300
9641
|
}
|
|
11301
|
-
|
|
11302
|
-
function
|
|
11303
|
-
const n =
|
|
9642
|
+
i(Je, "parse$1");
|
|
9643
|
+
function Me(e, t, s = Y.DEFAULT) {
|
|
9644
|
+
const n = We(e, !1), o = [];
|
|
11304
9645
|
let l = 0;
|
|
11305
|
-
function
|
|
11306
|
-
return
|
|
9646
|
+
function r(p) {
|
|
9647
|
+
return p ? () => l === 0 && p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
|
|
11307
9648
|
}
|
|
11308
|
-
r
|
|
11309
|
-
function f(
|
|
11310
|
-
return
|
|
9649
|
+
i(r, "toNoArgVisit");
|
|
9650
|
+
function f(p) {
|
|
9651
|
+
return p ? (F) => l === 0 && p(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
|
|
11311
9652
|
}
|
|
11312
|
-
|
|
11313
|
-
function u(
|
|
11314
|
-
return
|
|
9653
|
+
i(f, "toOneArgVisit");
|
|
9654
|
+
function u(p) {
|
|
9655
|
+
return p ? (F) => l === 0 && p(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) : () => !0;
|
|
11315
9656
|
}
|
|
11316
|
-
|
|
11317
|
-
function g(
|
|
11318
|
-
return
|
|
11319
|
-
l > 0 ? l++ :
|
|
9657
|
+
i(u, "toOneArgVisitWithPath");
|
|
9658
|
+
function g(p) {
|
|
9659
|
+
return p ? () => {
|
|
9660
|
+
l > 0 ? l++ : p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) === !1 && (l = 1);
|
|
11320
9661
|
} : () => !0;
|
|
11321
9662
|
}
|
|
11322
|
-
|
|
11323
|
-
function
|
|
11324
|
-
return
|
|
11325
|
-
l > 0 && l--, l === 0 &&
|
|
9663
|
+
i(g, "toBeginVisit");
|
|
9664
|
+
function d(p) {
|
|
9665
|
+
return p ? () => {
|
|
9666
|
+
l > 0 && l--, l === 0 && p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
|
|
11326
9667
|
} : () => !0;
|
|
11327
9668
|
}
|
|
11328
|
-
|
|
11329
|
-
const
|
|
11330
|
-
function
|
|
9669
|
+
i(d, "toEndVisit");
|
|
9670
|
+
const b = g(t.onObjectBegin), _ = u(t.onObjectProperty), h = d(t.onObjectEnd), D = g(t.onArrayBegin), T = d(t.onArrayEnd), w = u(t.onLiteralValue), v = f(t.onSeparator), B = r(t.onComment), c = f(t.onError), j = s && s.disallowComments, y = s && s.allowTrailingComma;
|
|
9671
|
+
function A() {
|
|
11331
9672
|
for (;;) {
|
|
11332
|
-
const
|
|
9673
|
+
const p = n.scan();
|
|
11333
9674
|
switch (n.getTokenError()) {
|
|
11334
9675
|
case 4:
|
|
11335
9676
|
k(14);
|
|
@@ -11346,11 +9687,9 @@ function We(e, t, s = X.DEFAULT) {
|
|
|
11346
9687
|
case 2:
|
|
11347
9688
|
k(12);
|
|
11348
9689
|
break;
|
|
11349
|
-
case 6:
|
|
11350
|
-
k(16);
|
|
11351
|
-
break;
|
|
9690
|
+
case 6: k(16);
|
|
11352
9691
|
}
|
|
11353
|
-
switch (
|
|
9692
|
+
switch (p) {
|
|
11354
9693
|
case 12:
|
|
11355
9694
|
case 13:
|
|
11356
9695
|
j ? k(10) : B();
|
|
@@ -11360,78 +9699,78 @@ function We(e, t, s = X.DEFAULT) {
|
|
|
11360
9699
|
break;
|
|
11361
9700
|
case 15:
|
|
11362
9701
|
case 14: break;
|
|
11363
|
-
default: return
|
|
9702
|
+
default: return p;
|
|
11364
9703
|
}
|
|
11365
9704
|
}
|
|
11366
9705
|
}
|
|
11367
|
-
|
|
11368
|
-
function k(
|
|
11369
|
-
if (c(
|
|
11370
|
-
let
|
|
11371
|
-
for (;
|
|
11372
|
-
if (F.indexOf(
|
|
11373
|
-
|
|
9706
|
+
i(A, "scanNext");
|
|
9707
|
+
function k(p, F = [], W = []) {
|
|
9708
|
+
if (c(p), F.length + W.length > 0) {
|
|
9709
|
+
let I = n.getToken();
|
|
9710
|
+
for (; I !== 17;) {
|
|
9711
|
+
if (F.indexOf(I) !== -1) {
|
|
9712
|
+
A();
|
|
11374
9713
|
break;
|
|
11375
|
-
} else if (W.indexOf(
|
|
11376
|
-
|
|
9714
|
+
} else if (W.indexOf(I) !== -1) break;
|
|
9715
|
+
I = A();
|
|
11377
9716
|
}
|
|
11378
9717
|
}
|
|
11379
9718
|
}
|
|
11380
|
-
|
|
11381
|
-
function P(
|
|
9719
|
+
i(k, "handleError");
|
|
9720
|
+
function P(p) {
|
|
11382
9721
|
const F = n.getTokenValue();
|
|
11383
|
-
return
|
|
9722
|
+
return p ? w(F) : (_(F), o.push(F)), A(), !0;
|
|
11384
9723
|
}
|
|
11385
|
-
|
|
9724
|
+
i(P, "parseString");
|
|
11386
9725
|
function M() {
|
|
11387
9726
|
switch (n.getToken()) {
|
|
11388
9727
|
case 11:
|
|
11389
|
-
const
|
|
11390
|
-
let F = Number(
|
|
11391
|
-
isNaN(F) && (k(2), F = 0),
|
|
9728
|
+
const p = n.getTokenValue();
|
|
9729
|
+
let F = Number(p);
|
|
9730
|
+
isNaN(F) && (k(2), F = 0), w(F);
|
|
11392
9731
|
break;
|
|
11393
9732
|
case 7:
|
|
11394
|
-
|
|
9733
|
+
w(null);
|
|
11395
9734
|
break;
|
|
11396
9735
|
case 8:
|
|
11397
|
-
|
|
9736
|
+
w(!0);
|
|
11398
9737
|
break;
|
|
11399
9738
|
case 9:
|
|
11400
|
-
|
|
9739
|
+
w(!1);
|
|
11401
9740
|
break;
|
|
11402
9741
|
default: return !1;
|
|
11403
9742
|
}
|
|
11404
|
-
return
|
|
9743
|
+
return A(), !0;
|
|
11405
9744
|
}
|
|
11406
|
-
|
|
9745
|
+
i(M, "parseLiteral");
|
|
11407
9746
|
function V() {
|
|
11408
|
-
return n.getToken() !== 10 ? (k(3, [], [2, 5]), !1) : (P(!1), n.getToken() === 6 ? (
|
|
9747
|
+
return n.getToken() !== 10 ? (k(3, [], [2, 5]), !1) : (P(!1), n.getToken() === 6 ? (v(":"), A(), U() || k(4, [], [2, 5])) : k(5, [], [2, 5]), o.pop(), !0);
|
|
11409
9748
|
}
|
|
11410
|
-
|
|
9749
|
+
i(V, "parseProperty");
|
|
11411
9750
|
function z() {
|
|
11412
|
-
|
|
11413
|
-
let
|
|
9751
|
+
b(), A();
|
|
9752
|
+
let p = !1;
|
|
11414
9753
|
for (; n.getToken() !== 2 && n.getToken() !== 17;) {
|
|
11415
9754
|
if (n.getToken() === 5) {
|
|
11416
|
-
if (
|
|
11417
|
-
} else
|
|
11418
|
-
V() || k(4, [], [2, 5]),
|
|
9755
|
+
if (p || k(4, [], []), v(","), A(), n.getToken() === 2 && y) break;
|
|
9756
|
+
} else p && k(6, [], []);
|
|
9757
|
+
V() || k(4, [], [2, 5]), p = !0;
|
|
11419
9758
|
}
|
|
11420
|
-
return
|
|
9759
|
+
return h(), n.getToken() !== 2 ? k(7, [2], []) : A(), !0;
|
|
11421
9760
|
}
|
|
11422
|
-
|
|
9761
|
+
i(z, "parseObject");
|
|
11423
9762
|
function G() {
|
|
11424
|
-
|
|
11425
|
-
let
|
|
9763
|
+
D(), A();
|
|
9764
|
+
let p = !0, F = !1;
|
|
11426
9765
|
for (; n.getToken() !== 4 && n.getToken() !== 17;) {
|
|
11427
9766
|
if (n.getToken() === 5) {
|
|
11428
|
-
if (F || k(4, [], []),
|
|
9767
|
+
if (F || k(4, [], []), v(","), A(), n.getToken() === 4 && y) break;
|
|
11429
9768
|
} else F && k(6, [], []);
|
|
11430
|
-
|
|
9769
|
+
p ? (o.push(0), p = !1) : o[o.length - 1]++, U() || k(4, [], [4, 5]), F = !0;
|
|
11431
9770
|
}
|
|
11432
|
-
return
|
|
9771
|
+
return T(), p || o.pop(), n.getToken() !== 4 ? k(8, [4], []) : A(), !0;
|
|
11433
9772
|
}
|
|
11434
|
-
|
|
9773
|
+
i(G, "parseArray");
|
|
11435
9774
|
function U() {
|
|
11436
9775
|
switch (n.getToken()) {
|
|
11437
9776
|
case 3: return G();
|
|
@@ -11440,9 +9779,9 @@ function We(e, t, s = X.DEFAULT) {
|
|
|
11440
9779
|
default: return M();
|
|
11441
9780
|
}
|
|
11442
9781
|
}
|
|
11443
|
-
return
|
|
9782
|
+
return i(U, "parseValue"), A(), n.getToken() === 17 ? s.allowEmptyContent ? !0 : (k(4, [], []), !1) : U() ? (n.getToken() !== 17 && k(9, [], []), !0) : (k(4, [], []), !1);
|
|
11444
9783
|
}
|
|
11445
|
-
|
|
9784
|
+
i(Me, "visit");
|
|
11446
9785
|
var ke;
|
|
11447
9786
|
(function(e) {
|
|
11448
9787
|
e[e.None = 0] = "None", e[e.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 4] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 6] = "InvalidCharacter";
|
|
@@ -11451,140 +9790,141 @@ var me;
|
|
|
11451
9790
|
(function(e) {
|
|
11452
9791
|
e[e.OpenBraceToken = 1] = "OpenBraceToken", e[e.CloseBraceToken = 2] = "CloseBraceToken", e[e.OpenBracketToken = 3] = "OpenBracketToken", e[e.CloseBracketToken = 4] = "CloseBracketToken", e[e.CommaToken = 5] = "CommaToken", e[e.ColonToken = 6] = "ColonToken", e[e.NullKeyword = 7] = "NullKeyword", e[e.TrueKeyword = 8] = "TrueKeyword", e[e.FalseKeyword = 9] = "FalseKeyword", e[e.StringLiteral = 10] = "StringLiteral", e[e.NumericLiteral = 11] = "NumericLiteral", e[e.LineCommentTrivia = 12] = "LineCommentTrivia", e[e.BlockCommentTrivia = 13] = "BlockCommentTrivia", e[e.LineBreakTrivia = 14] = "LineBreakTrivia", e[e.Trivia = 15] = "Trivia", e[e.Unknown = 16] = "Unknown", e[e.EOF = 17] = "EOF";
|
|
11453
9792
|
})(me || (me = {}));
|
|
11454
|
-
const
|
|
11455
|
-
var
|
|
9793
|
+
const Ve = Je;
|
|
9794
|
+
var we;
|
|
11456
9795
|
(function(e) {
|
|
11457
9796
|
e[e.InvalidSymbol = 1] = "InvalidSymbol", e[e.InvalidNumberFormat = 2] = "InvalidNumberFormat", e[e.PropertyNameExpected = 3] = "PropertyNameExpected", e[e.ValueExpected = 4] = "ValueExpected", e[e.ColonExpected = 5] = "ColonExpected", e[e.CommaExpected = 6] = "CommaExpected", e[e.CloseBraceExpected = 7] = "CloseBraceExpected", e[e.CloseBracketExpected = 8] = "CloseBracketExpected", e[e.EndOfFileExpected = 9] = "EndOfFileExpected", e[e.InvalidCommentToken = 10] = "InvalidCommentToken", e[e.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 14] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 16] = "InvalidCharacter";
|
|
11458
|
-
})(
|
|
11459
|
-
const
|
|
9797
|
+
})(we || (we = {}));
|
|
9798
|
+
const de = i((e, t) => Ve(Se(t, e, "utf8")), "readJsonc");
|
|
11460
9799
|
const ne = Symbol("implicitBaseUrl");
|
|
11461
9800
|
const E = "${configDir}";
|
|
11462
|
-
const
|
|
9801
|
+
const ze = i(() => {
|
|
11463
9802
|
const { findPnpApi: e } = Be;
|
|
11464
9803
|
return e && e(process.cwd());
|
|
11465
9804
|
}, "getPnpApi");
|
|
11466
|
-
const te =
|
|
9805
|
+
const te = i((e, t, s, n) => {
|
|
11467
9806
|
const o = `resolveFromPackageJsonPath:${e}:${t}:${s}`;
|
|
11468
9807
|
if (n != null && n.has(o)) return n.get(o);
|
|
11469
|
-
const l =
|
|
9808
|
+
const l = de(e, n);
|
|
11470
9809
|
if (!l) return;
|
|
11471
|
-
let
|
|
9810
|
+
let r = t || "tsconfig.json";
|
|
11472
9811
|
if (!s && l.exports) try {
|
|
11473
9812
|
const [f] = v(l.exports, t, ["require", "types"]);
|
|
11474
|
-
|
|
9813
|
+
r = f;
|
|
11475
9814
|
} catch {
|
|
11476
9815
|
return !1;
|
|
11477
9816
|
}
|
|
11478
|
-
else !t && l.tsconfig && (
|
|
11479
|
-
return
|
|
9817
|
+
else !t && l.tsconfig && (r = l.tsconfig);
|
|
9818
|
+
return r = PATH.join(e, "..", r), n?.set(o, r), r;
|
|
11480
9819
|
}, "resolveFromPackageJsonPath");
|
|
11481
9820
|
const se = "package.json";
|
|
11482
9821
|
const le = "tsconfig.json";
|
|
11483
|
-
const
|
|
11484
|
-
|
|
11485
|
-
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
|
|
9822
|
+
const Ge = i((e, t, s) => {
|
|
9823
|
+
var n;
|
|
9824
|
+
let o = e;
|
|
9825
|
+
if (e === ".." && (o = PATH.join(o, le)), e[0] === "." && (o = PATH.resolve(t, o)), PATH.isAbsolute(o)) {
|
|
9826
|
+
if (x(s, o)) {
|
|
9827
|
+
if (H(s, o).isFile()) return o;
|
|
9828
|
+
} else if (!o.endsWith(".json")) {
|
|
9829
|
+
const T = `${o}.json`;
|
|
9830
|
+
if (x(s, T)) return T;
|
|
11491
9831
|
}
|
|
11492
9832
|
return;
|
|
11493
9833
|
}
|
|
11494
|
-
const [
|
|
11495
|
-
if (
|
|
11496
|
-
const { resolveRequest:
|
|
9834
|
+
const [l, ...r] = e.split("/"), f = l[0] === "@" ? `${l}/${r.shift()}` : l, u = r.join("/"), g = ze();
|
|
9835
|
+
if (g) {
|
|
9836
|
+
const { resolveRequest: T } = g;
|
|
11497
9837
|
try {
|
|
11498
|
-
if (
|
|
11499
|
-
const
|
|
11500
|
-
if (
|
|
11501
|
-
const
|
|
11502
|
-
if (
|
|
9838
|
+
if (f === e) {
|
|
9839
|
+
const w = T(PATH.join(f, se), t);
|
|
9840
|
+
if (w) {
|
|
9841
|
+
const v = te(w, u, !1, s);
|
|
9842
|
+
if (v && x(s, v)) return v;
|
|
11503
9843
|
}
|
|
11504
9844
|
} else {
|
|
11505
|
-
let
|
|
9845
|
+
let w;
|
|
11506
9846
|
try {
|
|
11507
|
-
|
|
9847
|
+
w = T(e, t, { extensions: [".json"] });
|
|
11508
9848
|
} catch {
|
|
11509
|
-
|
|
9849
|
+
w = T(PATH.join(e, le), t);
|
|
11510
9850
|
}
|
|
11511
|
-
if (
|
|
9851
|
+
if (w) return w;
|
|
11512
9852
|
}
|
|
11513
9853
|
} catch {}
|
|
11514
9854
|
}
|
|
11515
|
-
const
|
|
11516
|
-
if (!
|
|
11517
|
-
const
|
|
11518
|
-
if (x(s,
|
|
11519
|
-
const
|
|
11520
|
-
if (
|
|
11521
|
-
if (
|
|
11522
|
-
}
|
|
11523
|
-
const
|
|
11524
|
-
if (!
|
|
11525
|
-
const
|
|
11526
|
-
if (x(s,
|
|
11527
|
-
}
|
|
11528
|
-
if (x(s,
|
|
11529
|
-
if (
|
|
11530
|
-
const
|
|
11531
|
-
if (x(s,
|
|
11532
|
-
const
|
|
11533
|
-
if (
|
|
11534
|
-
}
|
|
11535
|
-
const
|
|
11536
|
-
if (x(s,
|
|
11537
|
-
} else if (
|
|
9855
|
+
const d = O(PATH.resolve(t), PATH.join("node_modules", f), s);
|
|
9856
|
+
if (!d || !((n = H(s, d)) != null && n.isDirectory())) return;
|
|
9857
|
+
const b = Pe$1(s, d), _ = PATH.join(b, se);
|
|
9858
|
+
if (x(s, _)) {
|
|
9859
|
+
const T = te(_, u, !1, s);
|
|
9860
|
+
if (T === !1) return;
|
|
9861
|
+
if (T && x(s, T) && H(s, T).isFile()) return T;
|
|
9862
|
+
}
|
|
9863
|
+
const h = PATH.join(b, u), D = h.endsWith(".json");
|
|
9864
|
+
if (!D) {
|
|
9865
|
+
const T = `${h}.json`;
|
|
9866
|
+
if (x(s, T)) return T;
|
|
9867
|
+
}
|
|
9868
|
+
if (x(s, h)) {
|
|
9869
|
+
if (H(s, h).isDirectory()) {
|
|
9870
|
+
const T = PATH.join(h, se);
|
|
9871
|
+
if (x(s, T)) {
|
|
9872
|
+
const v = te(T, "", !0, s);
|
|
9873
|
+
if (v && x(s, v)) return v;
|
|
9874
|
+
}
|
|
9875
|
+
const w = PATH.join(h, le);
|
|
9876
|
+
if (x(s, w)) return w;
|
|
9877
|
+
} else if (D) return h;
|
|
11538
9878
|
}
|
|
11539
9879
|
}, "resolveExtendsPath");
|
|
11540
|
-
const oe =
|
|
11541
|
-
const
|
|
9880
|
+
const oe = i((e, t) => X(PATH.relative(e, t)), "pathRelative");
|
|
9881
|
+
const pe = [
|
|
11542
9882
|
"files",
|
|
11543
9883
|
"include",
|
|
11544
9884
|
"exclude"
|
|
11545
9885
|
];
|
|
11546
|
-
const N =
|
|
9886
|
+
const N = i((e, t, s) => {
|
|
11547
9887
|
const n = PATH.join(t, s);
|
|
11548
|
-
return
|
|
9888
|
+
return L(PATH.relative(e, n)) || "./";
|
|
11549
9889
|
}, "resolveAndRelativize");
|
|
11550
|
-
const
|
|
9890
|
+
const Qe = i((e, t, s) => {
|
|
11551
9891
|
const n = PATH.relative(e, t);
|
|
11552
9892
|
if (!n) return s;
|
|
11553
|
-
return
|
|
9893
|
+
return L(`${n}/${s.startsWith("./") ? s.slice(2) : s}`);
|
|
11554
9894
|
}, "prefixPattern");
|
|
11555
|
-
const
|
|
11556
|
-
const o =
|
|
9895
|
+
const He = i((e, t, s, n) => {
|
|
9896
|
+
const o = Ge(e, t, n);
|
|
11557
9897
|
if (!o) throw new Error(`File '${e}' not found.`);
|
|
11558
9898
|
if (s.has(o)) throw new Error(`Circularity detected while resolving configuration: ${o}`);
|
|
11559
9899
|
s.add(o);
|
|
11560
|
-
const l = PATH.dirname(o),
|
|
11561
|
-
delete
|
|
11562
|
-
const { compilerOptions: f } =
|
|
9900
|
+
const l = PATH.dirname(o), r = ve(o, n, s);
|
|
9901
|
+
delete r.references;
|
|
9902
|
+
const { compilerOptions: f } = r;
|
|
11563
9903
|
if (f) {
|
|
11564
9904
|
const { baseUrl: u } = f;
|
|
11565
9905
|
u && !u.startsWith(E) && (f.baseUrl = N(t, l, u));
|
|
11566
9906
|
const { outDir: g } = f;
|
|
11567
9907
|
g && !g.startsWith(E) && (f.outDir = N(t, l, g));
|
|
11568
|
-
const { declarationDir:
|
|
11569
|
-
|
|
11570
|
-
const { rootDir:
|
|
11571
|
-
|
|
9908
|
+
const { declarationDir: d } = f;
|
|
9909
|
+
d && !d.startsWith(E) && (f.declarationDir = N(t, l, d));
|
|
9910
|
+
const { rootDir: b } = f;
|
|
9911
|
+
b && !b.startsWith(E) && (f.rootDir = N(t, l, b));
|
|
11572
9912
|
const { rootDirs: _ } = f;
|
|
11573
|
-
_ && (f.rootDirs = _.map((
|
|
11574
|
-
const { typeRoots:
|
|
11575
|
-
|
|
9913
|
+
_ && (f.rootDirs = _.map((D) => D.startsWith(E) ? D : N(t, l, D)));
|
|
9914
|
+
const { typeRoots: h } = f;
|
|
9915
|
+
h && (f.typeRoots = h.map((D) => D.startsWith(E) ? D : N(t, l, D)));
|
|
11576
9916
|
}
|
|
11577
|
-
for (const u of
|
|
11578
|
-
const g =
|
|
11579
|
-
g && (
|
|
9917
|
+
for (const u of pe) {
|
|
9918
|
+
const g = r[u];
|
|
9919
|
+
g && (r[u] = g.map((d) => d.startsWith(E) ? d : Qe(t, l, d)));
|
|
11580
9920
|
}
|
|
11581
|
-
return
|
|
9921
|
+
return r;
|
|
11582
9922
|
}, "resolveExtends");
|
|
11583
|
-
const
|
|
11584
|
-
const
|
|
9923
|
+
const be = ["outDir", "declarationDir"];
|
|
9924
|
+
const ve = i((e, t, s = /* @__PURE__ */ new Set()) => {
|
|
11585
9925
|
let n;
|
|
11586
9926
|
try {
|
|
11587
|
-
n =
|
|
9927
|
+
n = de(e, t) || {};
|
|
11588
9928
|
} catch {
|
|
11589
9929
|
throw new Error(`Cannot resolve tsconfig at path: ${e}`);
|
|
11590
9930
|
}
|
|
@@ -11597,8 +9937,8 @@ const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
|
|
|
11597
9937
|
if (n.extends) {
|
|
11598
9938
|
const l = Array.isArray(n.extends) ? n.extends : [n.extends];
|
|
11599
9939
|
delete n.extends;
|
|
11600
|
-
for (const
|
|
11601
|
-
const f =
|
|
9940
|
+
for (const r of l.reverse()) {
|
|
9941
|
+
const f = He(r, o, new Set(s), t), u = {
|
|
11602
9942
|
...f,
|
|
11603
9943
|
...n,
|
|
11604
9944
|
compilerOptions: {
|
|
@@ -11621,21 +9961,21 @@ const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
|
|
|
11621
9961
|
l[f] = oe(o, g);
|
|
11622
9962
|
}
|
|
11623
9963
|
}
|
|
11624
|
-
for (const f of
|
|
9964
|
+
for (const f of be) {
|
|
11625
9965
|
let u = l[f];
|
|
11626
|
-
u && (Array.isArray(n.exclude) || (n.exclude =
|
|
9966
|
+
u && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), u.startsWith(E) || (u = X(u)), l[f] = u);
|
|
11627
9967
|
}
|
|
11628
9968
|
} else n.compilerOptions = {};
|
|
11629
|
-
if (n.include && (n.include = n.include.map(
|
|
9969
|
+
if (n.include && (n.include = n.include.map(L)), n.files && (n.files = n.files.map((l) => l.startsWith(E) ? l : X(l))), n.watchOptions) {
|
|
11630
9970
|
const { watchOptions: l } = n;
|
|
11631
|
-
l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((
|
|
9971
|
+
l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((r) => L(PATH.resolve(o, r)))), l.excludeFiles && (l.excludeFiles = l.excludeFiles.map((r) => L(PATH.resolve(o, r)))), l.watchFile && (l.watchFile = l.watchFile.toLowerCase()), l.watchDirectory && (l.watchDirectory = l.watchDirectory.toLowerCase()), l.fallbackPolling && (l.fallbackPolling = l.fallbackPolling.toLowerCase());
|
|
11632
9972
|
}
|
|
11633
9973
|
return n;
|
|
11634
9974
|
}, "_parseTsconfig");
|
|
11635
|
-
const
|
|
11636
|
-
if (e.startsWith(E)) return
|
|
9975
|
+
const Z = i((e, t) => {
|
|
9976
|
+
if (e.startsWith(E)) return L(PATH.join(t, e.slice(12)));
|
|
11637
9977
|
}, "interpolateConfigDir");
|
|
11638
|
-
const
|
|
9978
|
+
const Xe = [
|
|
11639
9979
|
"outDir",
|
|
11640
9980
|
"declarationDir",
|
|
11641
9981
|
"outFile",
|
|
@@ -11643,8 +9983,8 @@ const Qe = [
|
|
|
11643
9983
|
"baseUrl",
|
|
11644
9984
|
"tsBuildInfoFile"
|
|
11645
9985
|
];
|
|
11646
|
-
const
|
|
11647
|
-
if (e.strict) for (const
|
|
9986
|
+
const Ye = i((e) => {
|
|
9987
|
+
if (e.strict) for (const $ of [
|
|
11648
9988
|
"noImplicitAny",
|
|
11649
9989
|
"noImplicitThis",
|
|
11650
9990
|
"strictNullChecks",
|
|
@@ -11654,7 +9994,7 @@ const He = r((e) => {
|
|
|
11654
9994
|
"strictBuiltinIteratorReturn",
|
|
11655
9995
|
"alwaysStrict",
|
|
11656
9996
|
"useUnknownInCatchVariables"
|
|
11657
|
-
]) e[
|
|
9997
|
+
]) e[$] === void 0 && (e[$] = !0);
|
|
11658
9998
|
if (e.composite && (e.declaration ??= !0, e.incremental ??= !0), e.target) {
|
|
11659
9999
|
let a = e.target.toLowerCase();
|
|
11660
10000
|
a === "es2015" && (a = "es6"), e.target = a, a === "esnext" && (e.module ??= "es6", e.useDefineForClassFields ??= !0), (a === "es6" || a === "es2016" || a === "es2017" || a === "es2018" || a === "es2019" || a === "es2020" || a === "es2021" || a === "es2022" || a === "es2023" || a === "es2024") && (e.module ??= "es6"), (a === "es2022" || a === "es2023" || a === "es2024") && (e.useDefineForClassFields ??= !0);
|
|
@@ -11662,8 +10002,8 @@ const He = r((e) => {
|
|
|
11662
10002
|
if (e.module) {
|
|
11663
10003
|
let a = e.module.toLowerCase();
|
|
11664
10004
|
if (a === "es2015" && (a = "es6"), e.module = a, (a === "es6" || a === "es2020" || a === "es2022" || a === "esnext" || a === "none" || a === "system" || a === "umd" || a === "amd") && (e.moduleResolution ??= "classic"), a === "system" && (e.allowSyntheticDefaultImports ??= !0), (a === "node16" || a === "node18" || a === "node20" || a === "nodenext" || a === "preserve") && (e.esModuleInterop ??= !0, e.allowSyntheticDefaultImports ??= !0), (a === "node16" || a === "node18" || a === "node20" || a === "nodenext") && (e.moduleDetection ??= "force"), a === "node16" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), a === "node18" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), a === "node20" && (e.target ??= "es2023", e.moduleResolution ??= "node16", e.resolveJsonModule ??= !0), a === "nodenext" && (e.target ??= "esnext", e.moduleResolution ??= "nodenext", e.resolveJsonModule ??= !0), a === "node16" || a === "node18" || a === "node20" || a === "nodenext") {
|
|
11665
|
-
const
|
|
11666
|
-
(
|
|
10005
|
+
const $ = e.target;
|
|
10006
|
+
($ === "es3" || $ === "es2022" || $ === "es2023" || $ === "es2024" || $ === "esnext") && (e.useDefineForClassFields ??= !0);
|
|
11667
10007
|
}
|
|
11668
10008
|
a === "preserve" && (e.moduleResolution ??= "bundler");
|
|
11669
10009
|
}
|
|
@@ -11673,52 +10013,52 @@ const He = r((e) => {
|
|
|
11673
10013
|
}
|
|
11674
10014
|
e.jsx && (e.jsx = e.jsx.toLowerCase()), e.moduleDetection && (e.moduleDetection = e.moduleDetection.toLowerCase()), e.importsNotUsedAsValues && (e.importsNotUsedAsValues = e.importsNotUsedAsValues.toLowerCase()), e.newLine && (e.newLine = e.newLine.toLowerCase()), e.esModuleInterop && (e.allowSyntheticDefaultImports ??= !0), e.verbatimModuleSyntax && (e.isolatedModules ??= !0, e.preserveConstEnums ??= !0), e.isolatedModules && (e.preserveConstEnums ??= !0), e.rewriteRelativeImportExtensions && (e.allowImportingTsExtensions ??= !0), e.lib && (e.lib = e.lib.map((a) => a.toLowerCase())), e.checkJs && (e.allowJs ??= !0);
|
|
11675
10015
|
}, "normalizeCompilerOptions");
|
|
11676
|
-
const ie =
|
|
11677
|
-
const s = PATH.resolve(e), n =
|
|
10016
|
+
const ie = i((e, t = /* @__PURE__ */ new Map()) => {
|
|
10017
|
+
const s = PATH.resolve(e), n = ve(s, t), o = PATH.dirname(s), { compilerOptions: l } = n;
|
|
11678
10018
|
if (l) {
|
|
11679
|
-
for (const f of
|
|
10019
|
+
for (const f of Xe) {
|
|
11680
10020
|
const u = l[f];
|
|
11681
10021
|
if (u) {
|
|
11682
|
-
const g =
|
|
10022
|
+
const g = Z(u, o);
|
|
11683
10023
|
l[f] = g ? oe(o, g) : u;
|
|
11684
10024
|
}
|
|
11685
10025
|
}
|
|
11686
10026
|
for (const f of ["rootDirs", "typeRoots"]) {
|
|
11687
10027
|
const u = l[f];
|
|
11688
10028
|
u && (l[f] = u.map((g) => {
|
|
11689
|
-
const
|
|
11690
|
-
return
|
|
10029
|
+
const d = Z(g, o);
|
|
10030
|
+
return d ? oe(o, d) : X(g);
|
|
11691
10031
|
}));
|
|
11692
10032
|
}
|
|
11693
|
-
const { paths:
|
|
11694
|
-
if (
|
|
10033
|
+
const { paths: r } = l;
|
|
10034
|
+
if (r) for (const f of Object.keys(r)) r[f] = r[f].map((u) => {
|
|
11695
10035
|
var g;
|
|
11696
|
-
return (g =
|
|
10036
|
+
return (g = Z(u, o)) != null ? g : u;
|
|
11697
10037
|
});
|
|
11698
|
-
|
|
10038
|
+
Ye(l);
|
|
11699
10039
|
}
|
|
11700
|
-
for (const
|
|
11701
|
-
const f = n[
|
|
11702
|
-
f && (n[
|
|
10040
|
+
for (const r of pe) {
|
|
10041
|
+
const f = n[r];
|
|
10042
|
+
f && (n[r] = f.map((u) => {
|
|
11703
10043
|
var g;
|
|
11704
|
-
return (g =
|
|
10044
|
+
return (g = Z(u, o)) != null ? g : u;
|
|
11705
10045
|
}));
|
|
11706
10046
|
}
|
|
11707
10047
|
return n;
|
|
11708
10048
|
}, "parseTsconfig");
|
|
11709
|
-
var
|
|
11710
|
-
var
|
|
10049
|
+
var Ze = Object.defineProperty;
|
|
10050
|
+
var q = i((e, t) => Ze(e, "name", {
|
|
11711
10051
|
value: t,
|
|
11712
10052
|
configurable: !0
|
|
11713
10053
|
}), "s");
|
|
11714
|
-
const Te =
|
|
10054
|
+
const Te = q((e) => {
|
|
11715
10055
|
let t = "";
|
|
11716
10056
|
for (let s = 0; s < e.length; s += 1) {
|
|
11717
10057
|
const n = e[s], o = n.toUpperCase();
|
|
11718
10058
|
t += n === o ? n.toLowerCase() : o;
|
|
11719
10059
|
}
|
|
11720
10060
|
return t;
|
|
11721
|
-
}, "invertCase"), re = /* @__PURE__ */ new Map(), Ae =
|
|
10061
|
+
}, "invertCase"), re = /* @__PURE__ */ new Map(), Ae = q((e, t) => {
|
|
11722
10062
|
const s = Re.join(e, `.is-fs-case-sensitive-test-${process.pid}`);
|
|
11723
10063
|
try {
|
|
11724
10064
|
return t.writeFileSync(s, ""), !t.existsSync(Te(s));
|
|
@@ -11727,19 +10067,19 @@ const Te = Z((e) => {
|
|
|
11727
10067
|
t.unlinkSync(s);
|
|
11728
10068
|
} catch {}
|
|
11729
10069
|
}
|
|
11730
|
-
}, "checkDirectoryCaseWithWrite"),
|
|
10070
|
+
}, "checkDirectoryCaseWithWrite"), qe = q((e, t, s) => {
|
|
11731
10071
|
try {
|
|
11732
10072
|
return Ae(e, s);
|
|
11733
10073
|
} catch (n) {
|
|
11734
10074
|
if (t === void 0) return Ae(Ue.tmpdir(), s);
|
|
11735
10075
|
throw n;
|
|
11736
10076
|
}
|
|
11737
|
-
}, "checkDirectoryCaseWithFallback"),
|
|
10077
|
+
}, "checkDirectoryCaseWithFallback"), Ke = q((e, t = Ie, s = !0) => {
|
|
11738
10078
|
const n = e != null ? e : process.cwd();
|
|
11739
10079
|
if (s && re.has(n)) return re.get(n);
|
|
11740
10080
|
let o;
|
|
11741
10081
|
const l = Te(n);
|
|
11742
|
-
return l !== n && t.existsSync(n) ? o = !t.existsSync(l) : o =
|
|
10082
|
+
return l !== n && t.existsSync(n) ? o = !t.existsSync(l) : o = qe(n, e, t), s && re.set(n, o), o;
|
|
11743
10083
|
}, "isFsCaseSensitive"), { join: _e } = PATH.posix, ue = {
|
|
11744
10084
|
ts: [
|
|
11745
10085
|
".ts",
|
|
@@ -11748,79 +10088,79 @@ const Te = Z((e) => {
|
|
|
11748
10088
|
],
|
|
11749
10089
|
cts: [".cts", ".d.cts"],
|
|
11750
10090
|
mts: [".mts", ".d.mts"]
|
|
11751
|
-
},
|
|
10091
|
+
}, Oe = i((e) => {
|
|
11752
10092
|
const t = [...ue.ts], s = [...ue.cts], n = [...ue.mts];
|
|
11753
10093
|
return e != null && e.allowJs && (t.push(".js", ".jsx"), s.push(".cjs"), n.push(".mjs")), [
|
|
11754
10094
|
...t,
|
|
11755
10095
|
...s,
|
|
11756
10096
|
...n
|
|
11757
10097
|
];
|
|
11758
|
-
}, "getSupportedExtensions"),
|
|
10098
|
+
}, "getSupportedExtensions"), Ce = i((e) => {
|
|
11759
10099
|
const t = [];
|
|
11760
10100
|
if (!e) return t;
|
|
11761
10101
|
const { outDir: s, declarationDir: n } = e;
|
|
11762
10102
|
return s && t.push(s), n && t.push(n), t;
|
|
11763
|
-
}, "getDefaultExcludeSpec"), ye =
|
|
10103
|
+
}, "getDefaultExcludeSpec"), ye = i((e) => e.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp"), fe = `(?!(${[
|
|
11764
10104
|
"node_modules",
|
|
11765
10105
|
"bower_components",
|
|
11766
10106
|
"jspm_packages"
|
|
11767
|
-
].join("|")})(/|$))`,
|
|
10107
|
+
].join("|")})(/|$))`, nn = /(?:^|\/)[^.*?]+$/, je = "**/*", K = "[^/]", ae = "[^./]", Fe = process.platform === "win32", De = i(({ config: e, path: t }, s = Ke()) => {
|
|
11768
10108
|
if ("extends" in e) throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");
|
|
11769
10109
|
if (!PATH.isAbsolute(t)) throw new Error("The tsconfig path must be absolute");
|
|
11770
|
-
Fe && (t =
|
|
11771
|
-
const n = PATH.dirname(t), { files: o, include: l, exclude:
|
|
11772
|
-
const
|
|
11773
|
-
return new RegExp(`^${B}($|/)`,
|
|
11774
|
-
}),
|
|
11775
|
-
let
|
|
11776
|
-
|
|
11777
|
-
const B = ye(
|
|
10110
|
+
Fe && (t = L(t));
|
|
10111
|
+
const n = PATH.dirname(t), { files: o, include: l, exclude: r, compilerOptions: f } = e, u = i((w) => PATH.isAbsolute(w) ? w : _e(n, w), "resolvePattern"), g = o == null ? void 0 : o.map(u), d = Oe(f), b = s ? "" : "i", h = (r || Ce(f)).map((w) => {
|
|
10112
|
+
const v = u(w), B = ye(v).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${K}*`).replaceAll(String.raw`\?`, K);
|
|
10113
|
+
return new RegExp(`^${B}($|/)`, b);
|
|
10114
|
+
}), D = o || l ? l : [je], T = D ? D.map((w) => {
|
|
10115
|
+
let v = u(w);
|
|
10116
|
+
nn.test(v) && (v = _e(v, je));
|
|
10117
|
+
const B = ye(v).replaceAll(String.raw`/\*\*`, `(/${fe}${ae}${K}*)*?`).replaceAll(/(\/)?\\\*/g, (c, j) => {
|
|
11778
10118
|
const y = `(${ae}|(\\.(?!min\\.js$))?)*`;
|
|
11779
10119
|
return j ? `/${fe}${ae}${y}` : y;
|
|
11780
10120
|
}).replaceAll(/(\/)?\\\?/g, (c, j) => {
|
|
11781
|
-
const y =
|
|
10121
|
+
const y = K;
|
|
11782
10122
|
return j ? `/${fe}${y}` : y;
|
|
11783
10123
|
});
|
|
11784
|
-
return new RegExp(`^${B}$`,
|
|
10124
|
+
return new RegExp(`^${B}$`, b);
|
|
11785
10125
|
}) : void 0;
|
|
11786
|
-
return (
|
|
11787
|
-
if (!PATH.isAbsolute(
|
|
11788
|
-
if (Fe && (
|
|
11789
|
-
if (!(!
|
|
10126
|
+
return (w) => {
|
|
10127
|
+
if (!PATH.isAbsolute(w)) throw new Error("filePath must be absolute");
|
|
10128
|
+
if (Fe && (w = L(w)), g != null && g.includes(w)) return e;
|
|
10129
|
+
if (!(!d.some((v) => w.endsWith(v)) || h.some((v) => v.test(w))) && T && T.some((v) => v.test(w))) return e;
|
|
11790
10130
|
};
|
|
11791
|
-
}, "createFilesMatcher"),
|
|
10131
|
+
}, "createFilesMatcher"), he = i((e, t, s) => {
|
|
11792
10132
|
const n = PATH.resolve(e);
|
|
11793
|
-
let o =
|
|
10133
|
+
let o = L(e);
|
|
11794
10134
|
for (;;) {
|
|
11795
10135
|
const l = O(o, t, s);
|
|
11796
10136
|
if (!l) return;
|
|
11797
|
-
const
|
|
11798
|
-
path:
|
|
10137
|
+
const r = PATH.resolve(l), f = ie(r, s), u = {
|
|
10138
|
+
path: L(r),
|
|
11799
10139
|
config: f
|
|
11800
10140
|
};
|
|
11801
10141
|
if (De(u)(n)) return u;
|
|
11802
|
-
const
|
|
11803
|
-
if (
|
|
11804
|
-
o =
|
|
10142
|
+
const d = PATH.dirname(l), b = PATH.dirname(d);
|
|
10143
|
+
if (b === d) return;
|
|
10144
|
+
o = b;
|
|
11805
10145
|
}
|
|
11806
|
-
}, "findConfigApplicable"),
|
|
10146
|
+
}, "findConfigApplicable"), Le = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
|
|
11807
10147
|
var o;
|
|
11808
|
-
return n ? (o =
|
|
11809
|
-
}, "findTsconfig"),
|
|
10148
|
+
return n ? (o = he(e, t, s)) == null ? void 0 : o.path : O(L(e), t, s);
|
|
10149
|
+
}, "findTsconfig"), tn = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
|
|
11810
10150
|
var o;
|
|
11811
10151
|
if (!n) {
|
|
11812
|
-
const l =
|
|
10152
|
+
const l = Le(e, t, s);
|
|
11813
10153
|
if (!l) return null;
|
|
11814
10154
|
return {
|
|
11815
10155
|
path: l,
|
|
11816
10156
|
config: ie(l, s)
|
|
11817
10157
|
};
|
|
11818
10158
|
}
|
|
11819
|
-
return (o =
|
|
11820
|
-
}, "getTsconfig"),
|
|
11821
|
-
const s = e.match(
|
|
10159
|
+
return (o = he(e, t, s)) != null ? o : null;
|
|
10160
|
+
}, "getTsconfig"), sn = /\*/g, Ee = i((e, t) => {
|
|
10161
|
+
const s = e.match(sn);
|
|
11822
10162
|
if (s && s.length > 1) throw new Error(t);
|
|
11823
|
-
}, "assertStarCount"),
|
|
10163
|
+
}, "assertStarCount"), ln = i((e) => {
|
|
11824
10164
|
if (e.includes("*")) {
|
|
11825
10165
|
const [t, s] = e.split("*");
|
|
11826
10166
|
return {
|
|
@@ -11829,31 +10169,31 @@ const Te = Z((e) => {
|
|
|
11829
10169
|
};
|
|
11830
10170
|
}
|
|
11831
10171
|
return e;
|
|
11832
|
-
}, "parsePattern"),
|
|
11833
|
-
pattern:
|
|
10172
|
+
}, "parsePattern"), on = i(({ prefix: e, suffix: t }, s) => s.startsWith(e) && s.endsWith(t), "isPatternMatch"), rn = i((e, t, s) => Object.entries(e).map(([n, o]) => (Ee(n, `Pattern '${n}' can have at most one '*' character.`), {
|
|
10173
|
+
pattern: ln(n),
|
|
11834
10174
|
substitutions: o.map((l) => {
|
|
11835
10175
|
if (Ee(l, `Substitution '${l}' in pattern '${n}' can have at most one '*' character.`), !t && !C.test(l) && !PATH.isAbsolute(l)) throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");
|
|
11836
10176
|
return PATH.resolve(s, l);
|
|
11837
10177
|
})
|
|
11838
10178
|
})), "parsePaths");
|
|
11839
|
-
|
|
10179
|
+
i((e) => {
|
|
11840
10180
|
const { compilerOptions: t } = e.config;
|
|
11841
10181
|
if (!t) return null;
|
|
11842
10182
|
const { baseUrl: s, paths: n } = t;
|
|
11843
10183
|
if (!s && !n) return null;
|
|
11844
|
-
const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."),
|
|
10184
|
+
const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."), r = n ? rn(n, s, l) : [];
|
|
11845
10185
|
return (f) => {
|
|
11846
10186
|
if (C.test(f)) return [];
|
|
11847
10187
|
const u = [];
|
|
11848
|
-
for (const _ of
|
|
11849
|
-
if (_.pattern === f) return _.substitutions.map(
|
|
10188
|
+
for (const _ of r) {
|
|
10189
|
+
if (_.pattern === f) return _.substitutions.map(L);
|
|
11850
10190
|
typeof _.pattern != "string" && u.push(_);
|
|
11851
10191
|
}
|
|
11852
|
-
let g,
|
|
11853
|
-
for (const _ of u)
|
|
11854
|
-
if (!g) return s ? [
|
|
11855
|
-
const
|
|
11856
|
-
return g.substitutions.map((_) =>
|
|
10192
|
+
let g, d = -1;
|
|
10193
|
+
for (const _ of u) on(_.pattern, f) && _.pattern.prefix.length > d && (d = _.pattern.prefix.length, g = _);
|
|
10194
|
+
if (!g) return s ? [L(PATH.join(l, f))] : [];
|
|
10195
|
+
const b = f.slice(g.pattern.prefix.length, f.length - g.pattern.suffix.length);
|
|
10196
|
+
return g.substitutions.map((_) => L(_.replace("*", b)));
|
|
11857
10197
|
};
|
|
11858
10198
|
}, "createPathsMatcher");
|
|
11859
10199
|
//#endregion
|
|
@@ -11865,7 +10205,7 @@ const readRootTsconfigModule = (pkg) => {
|
|
|
11865
10205
|
return typeof module === "string" ? module : void 0;
|
|
11866
10206
|
};
|
|
11867
10207
|
const readResolvedTsconfigTypes = (pkg) => {
|
|
11868
|
-
const compilerOptions =
|
|
10208
|
+
const compilerOptions = tn(PATH.resolve(pkg), "tsconfig.json")?.config?.compilerOptions;
|
|
11869
10209
|
if (!compilerOptions || !("types" in compilerOptions)) return;
|
|
11870
10210
|
const { types } = compilerOptions;
|
|
11871
10211
|
if (!Array.isArray(types)) return;
|
|
@@ -12407,9 +10747,10 @@ function createDeclarationEmitter(isVerbose = false) {
|
|
|
12407
10747
|
let promise = declarationPromises.get(key);
|
|
12408
10748
|
if (!promise) {
|
|
12409
10749
|
promise = (async () => {
|
|
10750
|
+
const dtsConfig = writeTypescriptConfig(cwd(), platform, srcDir, true, outDir);
|
|
12410
10751
|
return {
|
|
12411
10752
|
outDir,
|
|
12412
|
-
result: runTsc(
|
|
10753
|
+
result: runTsc(dtsConfig, isVerbose)
|
|
12413
10754
|
};
|
|
12414
10755
|
})();
|
|
12415
10756
|
declarationPromises.set(key, promise);
|
|
@@ -12507,11 +10848,15 @@ function normalizeReexportTargets(value) {
|
|
|
12507
10848
|
if (value === void 0) return [];
|
|
12508
10849
|
return Array.isArray(value) ? value : [value];
|
|
12509
10850
|
}
|
|
12510
|
-
/**
|
|
10851
|
+
/**
|
|
10852
|
+
Package-like specifier: not a hash alias and not a relative/absolute path.
|
|
10853
|
+
*/
|
|
12511
10854
|
function isPackageLikeSpecifier(spec) {
|
|
12512
10855
|
return !spec.startsWith("#") && !spec.startsWith(".") && !spec.startsWith("/");
|
|
12513
10856
|
}
|
|
12514
|
-
/**
|
|
10857
|
+
/**
|
|
10858
|
+
Configured `reexport` targets for a module, if any.
|
|
10859
|
+
*/
|
|
12515
10860
|
function moduleReexportTargets(mod) {
|
|
12516
10861
|
return normalizeReexportTargets(mod.reexport);
|
|
12517
10862
|
}
|
|
@@ -12540,7 +10885,9 @@ function moduleShimTargets(mod) {
|
|
|
12540
10885
|
if (fromReexport.length > 0) return fromReexport;
|
|
12541
10886
|
return [`#${mod.name}`];
|
|
12542
10887
|
}
|
|
12543
|
-
/**
|
|
10888
|
+
/**
|
|
10889
|
+
Builds a pure star-reexport TypeScript (or mjs) source body (no header).
|
|
10890
|
+
*/
|
|
12544
10891
|
function buildStarReexportLines(targets, options = {}) {
|
|
12545
10892
|
const semi = options.semi === false ? "" : ";";
|
|
12546
10893
|
return `${targets.map((target) => `export * from '${target}'${semi}`).join("\n")}\n`;
|
|
@@ -12758,7 +11105,9 @@ function buildAliasDistPaths(aliasImports = {}) {
|
|
|
12758
11105
|
for (const [alias, srcPath] of Object.entries(aliasImports)) result[alias] = srcPathToDistPath(srcPath);
|
|
12759
11106
|
return result;
|
|
12760
11107
|
}
|
|
12761
|
-
/**
|
|
11108
|
+
/**
|
|
11109
|
+
Resolves a `#hash` import specifier to its dist path for a platform.
|
|
11110
|
+
*/
|
|
12762
11111
|
function hashToDistPath(spec, platform, config) {
|
|
12763
11112
|
const conditional = buildConditionalDistPaths(config.conditionalImports)[spec];
|
|
12764
11113
|
if (conditional?.[platform] !== void 0) return conditional[platform];
|
|
@@ -12844,7 +11193,9 @@ function buildModelTs(modules) {
|
|
|
12844
11193
|
function buildModuleShim(mod) {
|
|
12845
11194
|
return `${GENERATED_HEADER}${buildStarReexportLines(moduleShimTargets(mod), { semi: false })}`;
|
|
12846
11195
|
}
|
|
12847
|
-
/**
|
|
11196
|
+
/**
|
|
11197
|
+
Generated module body for facade modules with `reexport` targets.
|
|
11198
|
+
*/
|
|
12848
11199
|
function buildModuleReexportIndex(mod) {
|
|
12849
11200
|
return `${GENERATED_HEADER}${buildStarReexportLines(moduleReexportTargets(mod), { semi: false })}`;
|
|
12850
11201
|
}
|
|
@@ -12870,7 +11221,9 @@ function listDistPlatforms(config) {
|
|
|
12870
11221
|
...fromEntries
|
|
12871
11222
|
])];
|
|
12872
11223
|
}
|
|
12873
|
-
/**
|
|
11224
|
+
/**
|
|
11225
|
+
True when the package publishes a type-only model barrel (`src/model.ts`).
|
|
11226
|
+
*/
|
|
12874
11227
|
function monolithHasModelBarrel(config) {
|
|
12875
11228
|
return config.modules.some((mod) => mod.model ?? false);
|
|
12876
11229
|
}
|
|
@@ -12994,7 +11347,9 @@ function rewriteDtsFile(file, platform, platformDir, config) {
|
|
|
12994
11347
|
}
|
|
12995
11348
|
return false;
|
|
12996
11349
|
}
|
|
12997
|
-
/**
|
|
11350
|
+
/**
|
|
11351
|
+
Returns the number of declaration files rewritten.
|
|
11352
|
+
*/
|
|
12998
11353
|
function fixMonolithDeclarations(distDir, config) {
|
|
12999
11354
|
const platforms = listDistPlatforms(config).filter((platform) => fs.existsSync(PATH.join(distDir, platform)));
|
|
13000
11355
|
const platformShimDirs = buildPlatformShimDirs(config.platformEntries);
|
|
@@ -13096,7 +11451,9 @@ function modulesPlatformEntries(mod, config, isExternal, modulesPlatform) {
|
|
|
13096
11451
|
};
|
|
13097
11452
|
return shims;
|
|
13098
11453
|
}
|
|
13099
|
-
/**
|
|
11454
|
+
/**
|
|
11455
|
+
Master barrel entry for a platform (`index.entries` override or `./index.ts`).
|
|
11456
|
+
*/
|
|
13100
11457
|
function masterBarrelEntry(config, platform) {
|
|
13101
11458
|
return config.index?.entries?.[platform] ?? "./index.ts";
|
|
13102
11459
|
}
|
|
@@ -13159,7 +11516,9 @@ function isPathInside(parent, candidate) {
|
|
|
13159
11516
|
const relative = PATH.relative(parent, candidate);
|
|
13160
11517
|
return relative.length > 0 && relative !== ".." && !relative.startsWith(`..${PATH.sep}`) && !PATH.isAbsolute(relative);
|
|
13161
11518
|
}
|
|
13162
|
-
/**
|
|
11519
|
+
/**
|
|
11520
|
+
Resolves configured copy destinations without requiring their sources to exist.
|
|
11521
|
+
*/
|
|
13163
11522
|
function listMonolithCopyEntries(packageDir, config) {
|
|
13164
11523
|
const distDir = PATH.resolve(packageDir, "dist");
|
|
13165
11524
|
const entries = [];
|
|
@@ -13197,7 +11556,9 @@ function resolveCopySource(packageDir, source) {
|
|
|
13197
11556
|
if (!fs.existsSync(resolved) || !fs.statSync(resolved).isFile()) throw new Error(`Monolith copy entry source is not a file: "${source}" (${resolved})`);
|
|
13198
11557
|
return resolved;
|
|
13199
11558
|
}
|
|
13200
|
-
/**
|
|
11559
|
+
/**
|
|
11560
|
+
Copies configured opaque entries into their exact dist destinations.
|
|
11561
|
+
*/
|
|
13201
11562
|
function copyMonolithEntries(packageDir, config) {
|
|
13202
11563
|
const entries = listMonolithCopyEntries(packageDir, config);
|
|
13203
11564
|
for (const entry of entries) {
|
|
@@ -13221,7 +11582,9 @@ function assertNoManualEntries(compile) {
|
|
|
13221
11582
|
for (const options of Object.values(target)) if (options?.entry !== void 0) throw new Error(`monolith mode computes entries; remove compile.${platform} entry`);
|
|
13222
11583
|
}
|
|
13223
11584
|
}
|
|
13224
|
-
/**
|
|
11585
|
+
/**
|
|
11586
|
+
Merges computed entries into a platform target, preserving other options.
|
|
11587
|
+
*/
|
|
13225
11588
|
function platformTarget(existing, entry, isExternalLinkage) {
|
|
13226
11589
|
const base = typeof existing === "object" && existing !== null ? existing : {};
|
|
13227
11590
|
const src = typeof base.src === "object" && base.src !== null ? base.src : {};
|
|
@@ -13256,7 +11619,9 @@ function resolveMonolithCompile(config, mode) {
|
|
|
13256
11619
|
shouldRunFullValidation: !(mode.emitOnly ?? false) && (compile.validate ?? true)
|
|
13257
11620
|
};
|
|
13258
11621
|
}
|
|
13259
|
-
/**
|
|
11622
|
+
/**
|
|
11623
|
+
Builds the library-mode config carrying the computed monolith entries.
|
|
11624
|
+
*/
|
|
13260
11625
|
function deriveEsbuildConfig(config, compile, monolith) {
|
|
13261
11626
|
const entries = buildMonolithEntries(monolith);
|
|
13262
11627
|
const isExternalLinkage = (monolith.moduleLinkage ?? "bundle") === "external";
|