@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
|
@@ -39,17 +39,47 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
39
39
|
}
|
|
40
40
|
return to;
|
|
41
41
|
};
|
|
42
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
42
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
43
43
|
value: mod,
|
|
44
44
|
enumerable: true
|
|
45
45
|
}) : target, mod));
|
|
46
46
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
48
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
|
|
49
|
+
function stringReplaceAll(string, substring, postfix) {
|
|
50
|
+
let index = string.indexOf(substring);
|
|
51
|
+
if (index === -1) return string;
|
|
52
|
+
const substringLength = substring.length;
|
|
53
|
+
let endIndex = 0;
|
|
54
|
+
let returnValue = "";
|
|
55
|
+
do {
|
|
56
|
+
returnValue += string.slice(endIndex, index) + substring + postfix;
|
|
57
|
+
endIndex = index + substringLength;
|
|
58
|
+
index = string.indexOf(substring, endIndex);
|
|
59
|
+
} while (index !== -1);
|
|
60
|
+
returnValue += string.slice(endIndex);
|
|
61
|
+
return returnValue;
|
|
62
|
+
}
|
|
63
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
64
|
+
let endIndex = 0;
|
|
65
|
+
let returnValue = "";
|
|
66
|
+
do {
|
|
67
|
+
const isGotCR = string[index - 1] === "\r";
|
|
68
|
+
returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
|
|
69
|
+
endIndex = index + 1;
|
|
70
|
+
index = string.indexOf("\n", endIndex);
|
|
71
|
+
} while (index !== -1);
|
|
72
|
+
returnValue += string.slice(endIndex);
|
|
73
|
+
return returnValue;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
49
77
|
const ANSI_BACKGROUND_OFFSET = 10;
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const
|
|
78
|
+
const ANSI_UNDERLINE_OFFSET = 20;
|
|
79
|
+
const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
|
|
80
|
+
const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
|
|
81
|
+
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
|
|
82
|
+
const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
|
|
53
83
|
const styles$1 = {
|
|
54
84
|
modifier: {
|
|
55
85
|
reset: [0, 0],
|
|
@@ -57,6 +87,10 @@ const styles$1 = {
|
|
|
57
87
|
dim: [2, 22],
|
|
58
88
|
italic: [3, 23],
|
|
59
89
|
underline: [4, 24],
|
|
90
|
+
underlineDouble: ["4:2", 24],
|
|
91
|
+
underlineCurly: ["4:3", 24],
|
|
92
|
+
underlineDotted: ["4:4", 24],
|
|
93
|
+
underlineDashed: ["4:5", 24],
|
|
60
94
|
overline: [53, 55],
|
|
61
95
|
inverse: [7, 27],
|
|
62
96
|
hidden: [8, 28],
|
|
@@ -101,22 +135,43 @@ const styles$1 = {
|
|
|
101
135
|
bgMagentaBright: [105, 49],
|
|
102
136
|
bgCyanBright: [106, 49],
|
|
103
137
|
bgWhiteBright: [107, 49]
|
|
138
|
+
},
|
|
139
|
+
underlineColor: {
|
|
140
|
+
underlineBlack: ["58;5;0", 59],
|
|
141
|
+
underlineRed: ["58;5;1", 59],
|
|
142
|
+
underlineGreen: ["58;5;2", 59],
|
|
143
|
+
underlineYellow: ["58;5;3", 59],
|
|
144
|
+
underlineBlue: ["58;5;4", 59],
|
|
145
|
+
underlineMagenta: ["58;5;5", 59],
|
|
146
|
+
underlineCyan: ["58;5;6", 59],
|
|
147
|
+
underlineWhite: ["58;5;7", 59],
|
|
148
|
+
underlineBlackBright: ["58;5;8", 59],
|
|
149
|
+
underlineGray: ["58;5;8", 59],
|
|
150
|
+
underlineGrey: ["58;5;8", 59],
|
|
151
|
+
underlineRedBright: ["58;5;9", 59],
|
|
152
|
+
underlineGreenBright: ["58;5;10", 59],
|
|
153
|
+
underlineYellowBright: ["58;5;11", 59],
|
|
154
|
+
underlineBlueBright: ["58;5;12", 59],
|
|
155
|
+
underlineMagentaBright: ["58;5;13", 59],
|
|
156
|
+
underlineCyanBright: ["58;5;14", 59],
|
|
157
|
+
underlineWhiteBright: ["58;5;15", 59]
|
|
104
158
|
}
|
|
105
159
|
};
|
|
106
160
|
Object.keys(styles$1.modifier);
|
|
107
161
|
const foregroundColorNames = Object.keys(styles$1.color);
|
|
108
162
|
const backgroundColorNames = Object.keys(styles$1.bgColor);
|
|
163
|
+
Object.keys(styles$1.underlineColor);
|
|
109
164
|
[...foregroundColorNames, ...backgroundColorNames];
|
|
110
165
|
function assembleStyles() {
|
|
111
166
|
const codes = /* @__PURE__ */ new Map();
|
|
112
167
|
for (const [groupName, group] of Object.entries(styles$1)) {
|
|
113
168
|
for (const [styleName, style] of Object.entries(group)) {
|
|
114
169
|
styles$1[styleName] = {
|
|
115
|
-
open: `\
|
|
116
|
-
close: `\
|
|
170
|
+
open: `\u{1B}[${style[0]}m`,
|
|
171
|
+
close: `\u{1B}[${style[1]}m`
|
|
117
172
|
};
|
|
118
173
|
group[styleName] = styles$1[styleName];
|
|
119
|
-
codes.set(style[0], style[1]);
|
|
174
|
+
codes.set(Number.parseInt(style[0], 10), style[1]);
|
|
120
175
|
}
|
|
121
176
|
Object.defineProperty(styles$1, groupName, {
|
|
122
177
|
value: group,
|
|
@@ -129,12 +184,16 @@ function assembleStyles() {
|
|
|
129
184
|
});
|
|
130
185
|
styles$1.color.close = "\x1B[39m";
|
|
131
186
|
styles$1.bgColor.close = "\x1B[49m";
|
|
187
|
+
styles$1.underlineColor.close = "\x1B[59m";
|
|
132
188
|
styles$1.color.ansi = wrapAnsi16();
|
|
133
189
|
styles$1.color.ansi256 = wrapAnsi256();
|
|
134
190
|
styles$1.color.ansi16m = wrapAnsi16m();
|
|
135
191
|
styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
136
192
|
styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
137
193
|
styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
194
|
+
styles$1.underlineColor.ansi = wrapUnderlineAnsi;
|
|
195
|
+
styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
|
|
196
|
+
styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
|
|
138
197
|
Object.defineProperties(styles$1, {
|
|
139
198
|
rgbToAnsi256: {
|
|
140
199
|
value(red, green, blue) {
|
|
@@ -149,7 +208,7 @@ function assembleStyles() {
|
|
|
149
208
|
},
|
|
150
209
|
hexToRgb: {
|
|
151
210
|
value(hex) {
|
|
152
|
-
const matches = /[
|
|
211
|
+
const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
|
|
153
212
|
if (!matches) return [
|
|
154
213
|
0,
|
|
155
214
|
0,
|
|
@@ -209,7 +268,7 @@ function assembleStyles() {
|
|
|
209
268
|
}
|
|
210
269
|
const ansiStyles = assembleStyles();
|
|
211
270
|
//#endregion
|
|
212
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
271
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
213
272
|
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
214
273
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
215
274
|
const position = argv.indexOf(prefix + flag);
|
|
@@ -220,12 +279,15 @@ const { env } = process$1;
|
|
|
220
279
|
let flagForceColor;
|
|
221
280
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
222
281
|
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
282
|
+
function hasNumericForceColor() {
|
|
283
|
+
return /^\d+$/.test(env.FORCE_COLOR);
|
|
284
|
+
}
|
|
223
285
|
function envForceColor() {
|
|
224
|
-
if ("FORCE_COLOR" in env)
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
286
|
+
if (!("FORCE_COLOR" in env)) return;
|
|
287
|
+
if (env.FORCE_COLOR === "false") return 0;
|
|
288
|
+
if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
|
|
289
|
+
if (!hasNumericForceColor()) return;
|
|
290
|
+
return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
229
291
|
}
|
|
230
292
|
function translateLevel(level) {
|
|
231
293
|
if (level === 0) return false;
|
|
@@ -245,6 +307,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
245
307
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
246
308
|
if (hasFlag("color=256")) return 2;
|
|
247
309
|
}
|
|
310
|
+
if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
|
|
248
311
|
if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
|
|
249
312
|
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
250
313
|
const min = forceColor || 0;
|
|
@@ -269,19 +332,19 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
269
332
|
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
270
333
|
return min;
|
|
271
334
|
}
|
|
272
|
-
if ("TEAMCITY_VERSION" in env) return /^(9\.
|
|
335
|
+
if ("TEAMCITY_VERSION" in env) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
273
336
|
if (env.COLORTERM === "truecolor") return 3;
|
|
274
337
|
if (env.TERM === "xterm-kitty") return 3;
|
|
275
338
|
if (env.TERM === "xterm-ghostty") return 3;
|
|
276
339
|
if (env.TERM === "wezterm") return 3;
|
|
277
340
|
if ("TERM_PROGRAM" in env) {
|
|
278
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
341
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
|
|
279
342
|
switch (env.TERM_PROGRAM) {
|
|
280
343
|
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
281
344
|
case "Apple_Terminal": return 2;
|
|
282
345
|
}
|
|
283
346
|
}
|
|
284
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
347
|
+
if (/-256(?:color)?$/i.test(env.TERM)) return 2;
|
|
285
348
|
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
286
349
|
if ("COLORTERM" in env) return 1;
|
|
287
350
|
return min;
|
|
@@ -292,55 +355,34 @@ function createSupportsColor(stream, options = {}) {
|
|
|
292
355
|
...options
|
|
293
356
|
}));
|
|
294
357
|
}
|
|
295
|
-
|
|
358
|
+
//#endregion
|
|
359
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
|
|
360
|
+
const { stdout: stdoutColor, stderr: stderrColor } = {
|
|
296
361
|
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
297
362
|
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
298
363
|
};
|
|
299
|
-
//#endregion
|
|
300
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
301
|
-
function stringReplaceAll(string, substring, replacer) {
|
|
302
|
-
let index = string.indexOf(substring);
|
|
303
|
-
if (index === -1) return string;
|
|
304
|
-
const substringLength = substring.length;
|
|
305
|
-
let endIndex = 0;
|
|
306
|
-
let returnValue = "";
|
|
307
|
-
do {
|
|
308
|
-
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
309
|
-
endIndex = index + substringLength;
|
|
310
|
-
index = string.indexOf(substring, endIndex);
|
|
311
|
-
} while (index !== -1);
|
|
312
|
-
returnValue += string.slice(endIndex);
|
|
313
|
-
return returnValue;
|
|
314
|
-
}
|
|
315
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
316
|
-
let endIndex = 0;
|
|
317
|
-
let returnValue = "";
|
|
318
|
-
do {
|
|
319
|
-
const gotCR = string[index - 1] === "\r";
|
|
320
|
-
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
321
|
-
endIndex = index + 1;
|
|
322
|
-
index = string.indexOf("\n", endIndex);
|
|
323
|
-
} while (index !== -1);
|
|
324
|
-
returnValue += string.slice(endIndex);
|
|
325
|
-
return returnValue;
|
|
326
|
-
}
|
|
327
|
-
//#endregion
|
|
328
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
329
|
-
const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
|
|
330
364
|
const GENERATOR = Symbol("GENERATOR");
|
|
331
365
|
const STYLER = Symbol("STYLER");
|
|
332
366
|
const IS_EMPTY = Symbol("IS_EMPTY");
|
|
333
|
-
const
|
|
334
|
-
"ansi",
|
|
335
|
-
"ansi",
|
|
336
|
-
"ansi256",
|
|
337
|
-
"ansi16m"
|
|
338
|
-
];
|
|
367
|
+
const LEVEL = Symbol("LEVEL");
|
|
339
368
|
const styles = Object.create(null);
|
|
369
|
+
const assertValidLevel = (level) => {
|
|
370
|
+
if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
|
|
371
|
+
};
|
|
372
|
+
const levelDescriptor = {
|
|
373
|
+
enumerable: true,
|
|
374
|
+
get() {
|
|
375
|
+
return this[LEVEL];
|
|
376
|
+
},
|
|
377
|
+
set(level) {
|
|
378
|
+
assertValidLevel(level);
|
|
379
|
+
this[LEVEL] = level;
|
|
380
|
+
}
|
|
381
|
+
};
|
|
340
382
|
const applyOptions = (object, options = {}) => {
|
|
341
|
-
if (options.level
|
|
383
|
+
if (options.level !== void 0) assertValidLevel(options.level);
|
|
342
384
|
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
343
|
-
object
|
|
385
|
+
object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
|
|
344
386
|
};
|
|
345
387
|
const chalkFactory = (options) => {
|
|
346
388
|
const chalk = (...strings) => strings.join(" ");
|
|
@@ -362,35 +404,58 @@ styles.visible = { get() {
|
|
|
362
404
|
Object.defineProperty(this, "visible", { value: builder });
|
|
363
405
|
return builder;
|
|
364
406
|
} };
|
|
365
|
-
const
|
|
407
|
+
const createModelConverters = (model, type) => {
|
|
408
|
+
const style = ansiStyles[type];
|
|
366
409
|
if (model === "rgb") {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
return
|
|
410
|
+
const ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));
|
|
411
|
+
const ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));
|
|
412
|
+
return [
|
|
413
|
+
ansi,
|
|
414
|
+
ansi,
|
|
415
|
+
ansi256,
|
|
416
|
+
style.ansi16m
|
|
417
|
+
];
|
|
418
|
+
}
|
|
419
|
+
if (model === "hex") {
|
|
420
|
+
const ansi = (hex) => style.ansi(ansiStyles.hexToAnsi(hex));
|
|
421
|
+
const ansi256 = (hex) => style.ansi256(ansiStyles.hexToAnsi256(hex));
|
|
422
|
+
return [
|
|
423
|
+
ansi,
|
|
424
|
+
ansi,
|
|
425
|
+
ansi256,
|
|
426
|
+
(hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
|
|
427
|
+
];
|
|
370
428
|
}
|
|
371
|
-
|
|
372
|
-
return
|
|
429
|
+
const ansi = (code) => style.ansi(ansiStyles.ansi256ToAnsi(code));
|
|
430
|
+
return [
|
|
431
|
+
ansi,
|
|
432
|
+
ansi,
|
|
433
|
+
style.ansi256,
|
|
434
|
+
style.ansi256
|
|
435
|
+
];
|
|
373
436
|
};
|
|
374
437
|
for (const model of [
|
|
375
438
|
"rgb",
|
|
376
439
|
"hex",
|
|
377
440
|
"ansi256"
|
|
378
441
|
]) {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
442
|
+
const capitalizedModel = model[0].toUpperCase() + model.slice(1);
|
|
443
|
+
for (const [styleName, type] of [
|
|
444
|
+
[model, "color"],
|
|
445
|
+
["bg" + capitalizedModel, "bgColor"],
|
|
446
|
+
["underline" + capitalizedModel, "underlineColor"]
|
|
447
|
+
]) {
|
|
448
|
+
const { close } = ansiStyles[type];
|
|
449
|
+
const converters = createModelConverters(model, type);
|
|
450
|
+
styles[styleName] = { get() {
|
|
451
|
+
const styleFunction = function(first, second, third) {
|
|
452
|
+
const open = converters[this.level](first, second, third);
|
|
453
|
+
return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
|
|
454
|
+
};
|
|
455
|
+
Object.defineProperty(this, styleName, { value: styleFunction });
|
|
456
|
+
return styleFunction;
|
|
457
|
+
} };
|
|
458
|
+
}
|
|
394
459
|
}
|
|
395
460
|
const proto = Object.defineProperties(() => {}, {
|
|
396
461
|
...styles,
|
|
@@ -423,15 +488,19 @@ const createStyler = (open, close, parent) => {
|
|
|
423
488
|
};
|
|
424
489
|
};
|
|
425
490
|
const createBuilder = (self, _styler, _isEmpty) => {
|
|
426
|
-
const builder = (...arguments_) =>
|
|
491
|
+
const builder = (...arguments_) => {
|
|
492
|
+
if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
|
|
493
|
+
if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
|
|
494
|
+
return applyStyle(builder, arguments_.join(" "));
|
|
495
|
+
};
|
|
427
496
|
Object.setPrototypeOf(builder, proto);
|
|
428
|
-
builder[GENERATOR] = self;
|
|
497
|
+
builder[GENERATOR] = self[GENERATOR] ?? self;
|
|
429
498
|
builder[STYLER] = _styler;
|
|
430
499
|
builder[IS_EMPTY] = _isEmpty;
|
|
431
500
|
return builder;
|
|
432
501
|
};
|
|
433
502
|
const applyStyle = (self, string) => {
|
|
434
|
-
if (self
|
|
503
|
+
if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
|
|
435
504
|
let styler = self[STYLER];
|
|
436
505
|
if (styler === void 0) return string;
|
|
437
506
|
const { openAll, closeAll } = styler;
|
|
@@ -443,7 +512,10 @@ const applyStyle = (self, string) => {
|
|
|
443
512
|
if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
444
513
|
return openAll + string + closeAll;
|
|
445
514
|
};
|
|
446
|
-
Object.defineProperties(createChalk.prototype,
|
|
515
|
+
Object.defineProperties(createChalk.prototype, {
|
|
516
|
+
...styles,
|
|
517
|
+
level: levelDescriptor
|
|
518
|
+
});
|
|
447
519
|
const chalk = createChalk();
|
|
448
520
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
449
521
|
//#endregion
|
|
@@ -452,7 +524,7 @@ function Ht(n) {
|
|
|
452
524
|
return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
|
|
453
525
|
}
|
|
454
526
|
function ps(n) {
|
|
455
|
-
return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$
|
|
527
|
+
return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$4, de).replace(us, pe);
|
|
456
528
|
}
|
|
457
529
|
function ms(n) {
|
|
458
530
|
return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os$2, ",").replace(hs, ".");
|
|
@@ -544,7 +616,7 @@ function Ut(n, t = {}) {
|
|
|
544
616
|
function es(n, t = {}) {
|
|
545
617
|
return new I(n, t).iterate();
|
|
546
618
|
}
|
|
547
|
-
var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$2, hs, as, ls, cs, fs$
|
|
619
|
+
var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$2, hs, as, ls, cs, fs$4, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, A, Vs, Ys, Xs, Js, N, Zs, ke, Qs, ti, ve, ei, D, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P, et, v, dt, st, C, F, T, Yt, Ft, k, x, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, vi, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _, gt, se, je, yt, j, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I, le, ji, Ii, zi, Bi, Ui, Ze;
|
|
548
620
|
var init_index_min = __esmMin((() => {
|
|
549
621
|
Gt = (n, t, e) => {
|
|
550
622
|
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);
|
|
@@ -589,7 +661,7 @@ var init_index_min = __esmMin((() => {
|
|
|
589
661
|
as = /\\\\/g;
|
|
590
662
|
ls = /\\{/g;
|
|
591
663
|
cs = /\\}/g;
|
|
592
|
-
fs$
|
|
664
|
+
fs$4 = /\\,/g;
|
|
593
665
|
us = /\\./g;
|
|
594
666
|
ds = 1e5;
|
|
595
667
|
at = (n) => {
|
|
@@ -1519,7 +1591,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1519
1591
|
}
|
|
1520
1592
|
}
|
|
1521
1593
|
getRemainingTTL(t) {
|
|
1522
|
-
return this.#f.has(t) ?
|
|
1594
|
+
return this.#f.has(t) ? 1 / 0 : 0;
|
|
1523
1595
|
}
|
|
1524
1596
|
#M() {
|
|
1525
1597
|
let t = new Tt(this.#t), e = new Tt(this.#t);
|
|
@@ -1555,7 +1627,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1555
1627
|
let h = this.#f.get(o);
|
|
1556
1628
|
if (h === void 0) return 0;
|
|
1557
1629
|
let a = t[h], l = e[h];
|
|
1558
|
-
if (!a || !l) return
|
|
1630
|
+
if (!a || !l) return 1 / 0;
|
|
1559
1631
|
return a - ((i || r()) - l);
|
|
1560
1632
|
}, this.#v = (o) => {
|
|
1561
1633
|
let h = e[o], a = t[o];
|
|
@@ -2299,12 +2371,13 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2299
2371
|
return oi;
|
|
2300
2372
|
}
|
|
2301
2373
|
};
|
|
2374
|
+
vi = realpathSync.native;
|
|
2302
2375
|
wt = {
|
|
2303
2376
|
lstatSync,
|
|
2304
2377
|
readdir,
|
|
2305
2378
|
readdirSync,
|
|
2306
2379
|
readlinkSync,
|
|
2307
|
-
realpathSync:
|
|
2380
|
+
realpathSync: vi,
|
|
2308
2381
|
promises: {
|
|
2309
2382
|
lstat,
|
|
2310
2383
|
readdir: readdir$1,
|
|
@@ -2342,14 +2415,14 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2342
2415
|
Ie = yt | j | Lt;
|
|
2343
2416
|
Fi = 1023;
|
|
2344
2417
|
ie = (n) => n.isFile() ? Ke : n.isDirectory() ? U : n.isSymbolicLink() ? X : n.isCharacterDevice() ? He : n.isBlockDevice() ? qe : n.isSocket() ? Ve : n.isFIFO() ? Ge : L;
|
|
2345
|
-
ze = new ft({ max:
|
|
2418
|
+
ze = new ft({ max: 4096 });
|
|
2346
2419
|
bt = (n) => {
|
|
2347
2420
|
let t = ze.get(n);
|
|
2348
2421
|
if (t) return t;
|
|
2349
2422
|
let e = n.normalize("NFKD");
|
|
2350
2423
|
return ze.set(n, e), e;
|
|
2351
2424
|
};
|
|
2352
|
-
Be = new ft({ max:
|
|
2425
|
+
Be = new ft({ max: 4096 });
|
|
2353
2426
|
_t = (n) => {
|
|
2354
2427
|
let t = Be.get(n);
|
|
2355
2428
|
if (t) return t;
|
|
@@ -2362,7 +2435,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2362
2435
|
}
|
|
2363
2436
|
};
|
|
2364
2437
|
ne = class extends ft {
|
|
2365
|
-
constructor(t =
|
|
2438
|
+
constructor(t = 16384) {
|
|
2366
2439
|
super({
|
|
2367
2440
|
maxSize: t,
|
|
2368
2441
|
sizeCalculation: (e) => e.length + 1
|
|
@@ -2831,7 +2904,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2831
2904
|
#n;
|
|
2832
2905
|
nocase;
|
|
2833
2906
|
#r;
|
|
2834
|
-
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r =
|
|
2907
|
+
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16384, fs: o = wt } = {}) {
|
|
2835
2908
|
this.#r = Ue(o), (t instanceof URL || t.startsWith("file://")) && (t = fileURLToPath(t));
|
|
2836
2909
|
let h = e.resolve(t);
|
|
2837
2910
|
this.roots = Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne(r);
|
|
@@ -3399,7 +3472,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3399
3472
|
includeChildMatches;
|
|
3400
3473
|
constructor(t, e, s) {
|
|
3401
3474
|
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.");
|
|
3402
|
-
this.maxDepth = s.maxDepth ||
|
|
3475
|
+
this.maxDepth = s.maxDepth || 1 / 0, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
|
|
3403
3476
|
this.#t.length = 0;
|
|
3404
3477
|
}));
|
|
3405
3478
|
}
|
|
@@ -3436,7 +3509,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3436
3509
|
return this.matchCheckTest(r, e);
|
|
3437
3510
|
}
|
|
3438
3511
|
matchCheckTest(t, e) {
|
|
3439
|
-
return t && (this.maxDepth ===
|
|
3512
|
+
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;
|
|
3440
3513
|
}
|
|
3441
3514
|
matchCheckSync(t, e) {
|
|
3442
3515
|
if (e && this.opts.nodir) return;
|
|
@@ -3493,7 +3566,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3493
3566
|
};
|
|
3494
3567
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
|
|
3495
3568
|
for (let h of s.subwalkTargets()) {
|
|
3496
|
-
if (this.maxDepth !==
|
|
3569
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3497
3570
|
r++;
|
|
3498
3571
|
let a = h.readdirCached();
|
|
3499
3572
|
h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), !0);
|
|
@@ -3524,7 +3597,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3524
3597
|
};
|
|
3525
3598
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
|
|
3526
3599
|
for (let h of s.subwalkTargets()) {
|
|
3527
|
-
if (this.maxDepth !==
|
|
3600
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3528
3601
|
r++;
|
|
3529
3602
|
let a = h.readdirSync();
|
|
3530
3603
|
this.walkCB3Sync(h, a, s, o);
|
|
@@ -3616,7 +3689,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3616
3689
|
patterns;
|
|
3617
3690
|
constructor(t, e) {
|
|
3618
3691
|
if (!e) throw new TypeError("glob options required");
|
|
3619
|
-
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 :
|
|
3692
|
+
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");
|
|
3620
3693
|
if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === !1, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
|
|
3621
3694
|
if (e.noglobstar) throw new TypeError("base matching requires globstar");
|
|
3622
3695
|
t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
|
|
@@ -3659,7 +3732,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3659
3732
|
async walk() {
|
|
3660
3733
|
return [...await new xt(this.patterns, this.scurry.cwd, {
|
|
3661
3734
|
...this.opts,
|
|
3662
|
-
maxDepth: this.maxDepth !==
|
|
3735
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3663
3736
|
platform: this.platform,
|
|
3664
3737
|
nocase: this.nocase,
|
|
3665
3738
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3668,7 +3741,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3668
3741
|
walkSync() {
|
|
3669
3742
|
return [...new xt(this.patterns, this.scurry.cwd, {
|
|
3670
3743
|
...this.opts,
|
|
3671
|
-
maxDepth: this.maxDepth !==
|
|
3744
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3672
3745
|
platform: this.platform,
|
|
3673
3746
|
nocase: this.nocase,
|
|
3674
3747
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3677,7 +3750,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3677
3750
|
stream() {
|
|
3678
3751
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3679
3752
|
...this.opts,
|
|
3680
|
-
maxDepth: this.maxDepth !==
|
|
3753
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3681
3754
|
platform: this.platform,
|
|
3682
3755
|
nocase: this.nocase,
|
|
3683
3756
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3686,7 +3759,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3686
3759
|
streamSync() {
|
|
3687
3760
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3688
3761
|
...this.opts,
|
|
3689
|
-
maxDepth: this.maxDepth !==
|
|
3762
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3690
3763
|
platform: this.platform,
|
|
3691
3764
|
nocase: this.nocase,
|
|
3692
3765
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3742,7 +3815,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3742
3815
|
var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3743
3816
|
module.exports = isexe;
|
|
3744
3817
|
isexe.sync = sync;
|
|
3745
|
-
var fs$
|
|
3818
|
+
var fs$3 = __require("fs");
|
|
3746
3819
|
function checkPathExt(path, options) {
|
|
3747
3820
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
3748
3821
|
if (!pathext) return true;
|
|
@@ -3759,12 +3832,12 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3759
3832
|
return checkPathExt(path, options);
|
|
3760
3833
|
}
|
|
3761
3834
|
function isexe(path, options, cb) {
|
|
3762
|
-
fs$
|
|
3835
|
+
fs$3.stat(path, function(er, stat) {
|
|
3763
3836
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
3764
3837
|
});
|
|
3765
3838
|
}
|
|
3766
3839
|
function sync(path, options) {
|
|
3767
|
-
return checkStat(fs$
|
|
3840
|
+
return checkStat(fs$3.statSync(path), path, options);
|
|
3768
3841
|
}
|
|
3769
3842
|
}));
|
|
3770
3843
|
//#endregion
|
|
@@ -3772,14 +3845,14 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3772
3845
|
var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3773
3846
|
module.exports = isexe;
|
|
3774
3847
|
isexe.sync = sync;
|
|
3775
|
-
var fs$
|
|
3848
|
+
var fs$2 = __require("fs");
|
|
3776
3849
|
function isexe(path, options, cb) {
|
|
3777
|
-
fs$
|
|
3850
|
+
fs$2.stat(path, function(er, stat) {
|
|
3778
3851
|
cb(er, er ? false : checkStat(stat, options));
|
|
3779
3852
|
});
|
|
3780
3853
|
}
|
|
3781
3854
|
function sync(path, options) {
|
|
3782
|
-
return checkStat(fs$
|
|
3855
|
+
return checkStat(fs$2.statSync(path), options);
|
|
3783
3856
|
}
|
|
3784
3857
|
function checkStat(stat, options) {
|
|
3785
3858
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -3843,13 +3916,14 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3843
3916
|
//#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
3844
3917
|
var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3845
3918
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
3846
|
-
const path$
|
|
3919
|
+
const path$4 = __require("path");
|
|
3847
3920
|
const COLON = isWindows ? ";" : ":";
|
|
3848
3921
|
const isexe = require_isexe();
|
|
3849
3922
|
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
3850
3923
|
const getPathInfo = (cmd, opt) => {
|
|
3851
3924
|
const colon = opt.colon || COLON;
|
|
3852
|
-
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH ||
|
|
3925
|
+
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH ||
|
|
3926
|
+
/* istanbul ignore next: very unusual */ "").split(colon)];
|
|
3853
3927
|
const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
3854
3928
|
const pathExt = isWindows ? pathExtExe.split(colon) : [""];
|
|
3855
3929
|
if (isWindows) {
|
|
@@ -3873,7 +3947,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3873
3947
|
if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
3874
3948
|
const ppRaw = pathEnv[i];
|
|
3875
3949
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
3876
|
-
const pCmd = path$
|
|
3950
|
+
const pCmd = path$4.join(pathPart, cmd);
|
|
3877
3951
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
3878
3952
|
resolve(subStep(p, i, 0));
|
|
3879
3953
|
});
|
|
@@ -3881,8 +3955,10 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3881
3955
|
if (ii === pathExt.length) return resolve(step(i + 1));
|
|
3882
3956
|
const ext = pathExt[ii];
|
|
3883
3957
|
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
3884
|
-
if (!er && is)
|
|
3885
|
-
|
|
3958
|
+
if (!er && is) {
|
|
3959
|
+
if (opt.all) found.push(p + ext);
|
|
3960
|
+
else return resolve(p + ext);
|
|
3961
|
+
}
|
|
3886
3962
|
return resolve(subStep(p, i, ii + 1));
|
|
3887
3963
|
});
|
|
3888
3964
|
});
|
|
@@ -3895,13 +3971,15 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3895
3971
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
3896
3972
|
const ppRaw = pathEnv[i];
|
|
3897
3973
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
3898
|
-
const pCmd = path$
|
|
3974
|
+
const pCmd = path$4.join(pathPart, cmd);
|
|
3899
3975
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
3900
3976
|
for (let j = 0; j < pathExt.length; j++) {
|
|
3901
3977
|
const cur = p + pathExt[j];
|
|
3902
3978
|
try {
|
|
3903
|
-
if (isexe.sync(cur, { pathExt: pathExtExe }))
|
|
3904
|
-
|
|
3979
|
+
if (isexe.sync(cur, { pathExt: pathExtExe })) {
|
|
3980
|
+
if (opt.all) found.push(cur);
|
|
3981
|
+
else return cur;
|
|
3982
|
+
}
|
|
3905
3983
|
} catch (ex) {}
|
|
3906
3984
|
}
|
|
3907
3985
|
}
|
|
@@ -3926,7 +4004,7 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3926
4004
|
//#endregion
|
|
3927
4005
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
3928
4006
|
var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3929
|
-
const path$
|
|
4007
|
+
const path$3 = __require("path");
|
|
3930
4008
|
const which = require_which();
|
|
3931
4009
|
const getPathKey = require_path_key();
|
|
3932
4010
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -3941,12 +4019,12 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3941
4019
|
try {
|
|
3942
4020
|
resolved = which.sync(parsed.command, {
|
|
3943
4021
|
path: env[getPathKey({ env })],
|
|
3944
|
-
pathExt: withoutPathExt ? path$
|
|
4022
|
+
pathExt: withoutPathExt ? path$3.delimiter : void 0
|
|
3945
4023
|
});
|
|
3946
4024
|
} catch (e) {} finally {
|
|
3947
4025
|
if (shouldSwitchCwd) process.chdir(cwd);
|
|
3948
4026
|
}
|
|
3949
|
-
if (resolved) resolved = path$
|
|
4027
|
+
if (resolved) resolved = path$3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
3950
4028
|
return resolved;
|
|
3951
4029
|
}
|
|
3952
4030
|
function resolveCommand(parsed) {
|
|
@@ -3995,16 +4073,16 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
3995
4073
|
//#endregion
|
|
3996
4074
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
3997
4075
|
var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3998
|
-
const fs$
|
|
4076
|
+
const fs$1 = __require("fs");
|
|
3999
4077
|
const shebangCommand = require_shebang_command();
|
|
4000
4078
|
function readShebang(command) {
|
|
4001
4079
|
const size = 150;
|
|
4002
4080
|
const buffer = Buffer.alloc(size);
|
|
4003
4081
|
let fd;
|
|
4004
4082
|
try {
|
|
4005
|
-
fd = fs$
|
|
4006
|
-
fs$
|
|
4007
|
-
fs$
|
|
4083
|
+
fd = fs$1.openSync(command, "r");
|
|
4084
|
+
fs$1.readSync(fd, buffer, 0, size, 0);
|
|
4085
|
+
fs$1.closeSync(fd);
|
|
4008
4086
|
} catch (e) {}
|
|
4009
4087
|
return shebangCommand(buffer.toString());
|
|
4010
4088
|
}
|
|
@@ -4013,7 +4091,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4013
4091
|
//#endregion
|
|
4014
4092
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
4015
4093
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4016
|
-
const path$
|
|
4094
|
+
const path$2 = __require("path");
|
|
4017
4095
|
const resolveCommand = require_resolveCommand();
|
|
4018
4096
|
const escape = require_escape();
|
|
4019
4097
|
const readShebang = require_readShebang();
|
|
@@ -4036,7 +4114,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4036
4114
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
4037
4115
|
if (parsed.options.forceShell || needsShell) {
|
|
4038
4116
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
4039
|
-
parsed.command = path$
|
|
4117
|
+
parsed.command = path$2.normalize(parsed.command);
|
|
4040
4118
|
parsed.command = escape.command(parsed.command);
|
|
4041
4119
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
4042
4120
|
parsed.args = [
|
|
@@ -4251,1768 +4329,6 @@ function INIT_CWD() {
|
|
|
4251
4329
|
return process.env.INIT_CWD ?? process.cwd();
|
|
4252
4330
|
}
|
|
4253
4331
|
//#endregion
|
|
4254
|
-
//#region ../../node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js
|
|
4255
|
-
var require_resolve_from = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4256
|
-
const path$3 = __require("path");
|
|
4257
|
-
const Module = __require("module");
|
|
4258
|
-
const fs$1 = __require("fs");
|
|
4259
|
-
const resolveFrom = (fromDir, moduleId, silent) => {
|
|
4260
|
-
if (typeof fromDir !== "string") throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
|
|
4261
|
-
if (typeof moduleId !== "string") throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
|
|
4262
|
-
try {
|
|
4263
|
-
fromDir = fs$1.realpathSync(fromDir);
|
|
4264
|
-
} catch (err) {
|
|
4265
|
-
if (err.code === "ENOENT") fromDir = path$3.resolve(fromDir);
|
|
4266
|
-
else if (silent) return null;
|
|
4267
|
-
else throw err;
|
|
4268
|
-
}
|
|
4269
|
-
const fromFile = path$3.join(fromDir, "noop.js");
|
|
4270
|
-
const resolveFileName = () => Module._resolveFilename(moduleId, {
|
|
4271
|
-
id: fromFile,
|
|
4272
|
-
filename: fromFile,
|
|
4273
|
-
paths: Module._nodeModulePaths(fromDir)
|
|
4274
|
-
});
|
|
4275
|
-
if (silent) try {
|
|
4276
|
-
return resolveFileName();
|
|
4277
|
-
} catch (err) {
|
|
4278
|
-
return null;
|
|
4279
|
-
}
|
|
4280
|
-
return resolveFileName();
|
|
4281
|
-
};
|
|
4282
|
-
module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId);
|
|
4283
|
-
module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true);
|
|
4284
|
-
}));
|
|
4285
|
-
//#endregion
|
|
4286
|
-
//#region ../../node_modules/.pnpm/callsites@3.1.0/node_modules/callsites/index.js
|
|
4287
|
-
var require_callsites = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4288
|
-
const callsites = () => {
|
|
4289
|
-
const _prepareStackTrace = Error.prepareStackTrace;
|
|
4290
|
-
Error.prepareStackTrace = (_, stack) => stack;
|
|
4291
|
-
const stack = (/* @__PURE__ */ new Error()).stack.slice(1);
|
|
4292
|
-
Error.prepareStackTrace = _prepareStackTrace;
|
|
4293
|
-
return stack;
|
|
4294
|
-
};
|
|
4295
|
-
module.exports = callsites;
|
|
4296
|
-
module.exports.default = callsites;
|
|
4297
|
-
}));
|
|
4298
|
-
//#endregion
|
|
4299
|
-
//#region ../../node_modules/.pnpm/parent-module@1.0.1/node_modules/parent-module/index.js
|
|
4300
|
-
var require_parent_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4301
|
-
const callsites = require_callsites();
|
|
4302
|
-
module.exports = (filepath) => {
|
|
4303
|
-
const stacks = callsites();
|
|
4304
|
-
if (!filepath) return stacks[2].getFileName();
|
|
4305
|
-
let seenVal = false;
|
|
4306
|
-
stacks.shift();
|
|
4307
|
-
for (const stack of stacks) {
|
|
4308
|
-
const parentFilepath = stack.getFileName();
|
|
4309
|
-
if (typeof parentFilepath !== "string") continue;
|
|
4310
|
-
if (parentFilepath === filepath) {
|
|
4311
|
-
seenVal = true;
|
|
4312
|
-
continue;
|
|
4313
|
-
}
|
|
4314
|
-
if (parentFilepath === "module.js") continue;
|
|
4315
|
-
if (seenVal && parentFilepath !== filepath) return parentFilepath;
|
|
4316
|
-
}
|
|
4317
|
-
};
|
|
4318
|
-
}));
|
|
4319
|
-
//#endregion
|
|
4320
|
-
//#region ../../node_modules/.pnpm/import-fresh@3.3.1/node_modules/import-fresh/index.js
|
|
4321
|
-
var require_import_fresh = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4322
|
-
const path$2 = __require("path");
|
|
4323
|
-
const resolveFrom = require_resolve_from();
|
|
4324
|
-
const parentModule = require_parent_module();
|
|
4325
|
-
module.exports = (moduleId) => {
|
|
4326
|
-
if (typeof moduleId !== "string") throw new TypeError("Expected a string");
|
|
4327
|
-
const parentPath = parentModule(__filename);
|
|
4328
|
-
const cwd = parentPath ? path$2.dirname(parentPath) : __dirname;
|
|
4329
|
-
const filePath = resolveFrom(cwd, moduleId);
|
|
4330
|
-
const oldModule = __require.cache[filePath];
|
|
4331
|
-
if (oldModule && oldModule.parent) {
|
|
4332
|
-
let i = oldModule.parent.children.length;
|
|
4333
|
-
while (i--) if (oldModule.parent.children[i].id === filePath) oldModule.parent.children.splice(i, 1);
|
|
4334
|
-
}
|
|
4335
|
-
delete __require.cache[filePath];
|
|
4336
|
-
const parent = __require.cache[parentPath];
|
|
4337
|
-
return parent === void 0 || parent.require === void 0 ? __require(filePath) : parent.require(filePath);
|
|
4338
|
-
};
|
|
4339
|
-
}));
|
|
4340
|
-
//#endregion
|
|
4341
|
-
//#region ../../node_modules/.pnpm/is-arrayish@0.2.1/node_modules/is-arrayish/index.js
|
|
4342
|
-
var require_is_arrayish = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4343
|
-
module.exports = function isArrayish(obj) {
|
|
4344
|
-
if (!obj) return false;
|
|
4345
|
-
return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && obj.splice instanceof Function;
|
|
4346
|
-
};
|
|
4347
|
-
}));
|
|
4348
|
-
//#endregion
|
|
4349
|
-
//#region ../../node_modules/.pnpm/error-ex@1.3.4/node_modules/error-ex/index.js
|
|
4350
|
-
var require_error_ex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4351
|
-
var util = __require("util");
|
|
4352
|
-
var isArrayish = require_is_arrayish();
|
|
4353
|
-
var errorEx = function errorEx(name, properties) {
|
|
4354
|
-
if (!name || name.constructor !== String) {
|
|
4355
|
-
properties = name || {};
|
|
4356
|
-
name = Error.name;
|
|
4357
|
-
}
|
|
4358
|
-
var errorExError = function ErrorEXError(message) {
|
|
4359
|
-
if (!this) return new ErrorEXError(message);
|
|
4360
|
-
message = message instanceof Error ? message.message : message || this.message;
|
|
4361
|
-
Error.call(this, message);
|
|
4362
|
-
Error.captureStackTrace(this, errorExError);
|
|
4363
|
-
this.name = name;
|
|
4364
|
-
Object.defineProperty(this, "message", {
|
|
4365
|
-
configurable: true,
|
|
4366
|
-
enumerable: false,
|
|
4367
|
-
get: function() {
|
|
4368
|
-
var newMessage = message.split(/\r?\n/g);
|
|
4369
|
-
for (var key in properties) {
|
|
4370
|
-
if (!properties.hasOwnProperty(key)) continue;
|
|
4371
|
-
var modifier = properties[key];
|
|
4372
|
-
if ("message" in modifier) {
|
|
4373
|
-
newMessage = modifier.message(this[key], newMessage) || newMessage;
|
|
4374
|
-
if (!isArrayish(newMessage)) newMessage = [newMessage];
|
|
4375
|
-
}
|
|
4376
|
-
}
|
|
4377
|
-
return newMessage.join("\n");
|
|
4378
|
-
},
|
|
4379
|
-
set: function(v) {
|
|
4380
|
-
message = v;
|
|
4381
|
-
}
|
|
4382
|
-
});
|
|
4383
|
-
var overwrittenStack = null;
|
|
4384
|
-
var stackDescriptor = Object.getOwnPropertyDescriptor(this, "stack");
|
|
4385
|
-
var stackGetter = stackDescriptor.get;
|
|
4386
|
-
var stackValue = stackDescriptor.value;
|
|
4387
|
-
delete stackDescriptor.value;
|
|
4388
|
-
delete stackDescriptor.writable;
|
|
4389
|
-
stackDescriptor.set = function(newstack) {
|
|
4390
|
-
overwrittenStack = newstack;
|
|
4391
|
-
};
|
|
4392
|
-
stackDescriptor.get = function() {
|
|
4393
|
-
var stack = (overwrittenStack || (stackGetter ? stackGetter.call(this) : stackValue)).split(/\r?\n+/g);
|
|
4394
|
-
if (!overwrittenStack) stack[0] = this.name + ": " + this.message;
|
|
4395
|
-
var lineCount = 1;
|
|
4396
|
-
for (var key in properties) {
|
|
4397
|
-
if (!properties.hasOwnProperty(key)) continue;
|
|
4398
|
-
var modifier = properties[key];
|
|
4399
|
-
if ("line" in modifier) {
|
|
4400
|
-
var line = modifier.line(this[key]);
|
|
4401
|
-
if (line) stack.splice(lineCount++, 0, " " + line);
|
|
4402
|
-
}
|
|
4403
|
-
if ("stack" in modifier) modifier.stack(this[key], stack);
|
|
4404
|
-
}
|
|
4405
|
-
return stack.join("\n");
|
|
4406
|
-
};
|
|
4407
|
-
Object.defineProperty(this, "stack", stackDescriptor);
|
|
4408
|
-
};
|
|
4409
|
-
if (Object.setPrototypeOf) {
|
|
4410
|
-
Object.setPrototypeOf(errorExError.prototype, Error.prototype);
|
|
4411
|
-
Object.setPrototypeOf(errorExError, Error);
|
|
4412
|
-
} else util.inherits(errorExError, Error);
|
|
4413
|
-
return errorExError;
|
|
4414
|
-
};
|
|
4415
|
-
errorEx.append = function(str, def) {
|
|
4416
|
-
return { message: function(v, message) {
|
|
4417
|
-
v = v || def;
|
|
4418
|
-
if (v) message[0] += " " + str.replace("%s", v.toString());
|
|
4419
|
-
return message;
|
|
4420
|
-
} };
|
|
4421
|
-
};
|
|
4422
|
-
errorEx.line = function(str, def) {
|
|
4423
|
-
return { line: function(v) {
|
|
4424
|
-
v = v || def;
|
|
4425
|
-
if (v) return str.replace("%s", v.toString());
|
|
4426
|
-
return null;
|
|
4427
|
-
} };
|
|
4428
|
-
};
|
|
4429
|
-
module.exports = errorEx;
|
|
4430
|
-
}));
|
|
4431
|
-
//#endregion
|
|
4432
|
-
//#region ../../node_modules/.pnpm/json-parse-even-better-errors@2.3.1/node_modules/json-parse-even-better-errors/index.js
|
|
4433
|
-
var require_json_parse_even_better_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4434
|
-
const hexify = (char) => {
|
|
4435
|
-
const h = char.charCodeAt(0).toString(16).toUpperCase();
|
|
4436
|
-
return "0x" + (h.length % 2 ? "0" : "") + h;
|
|
4437
|
-
};
|
|
4438
|
-
const parseError = (e, txt, context) => {
|
|
4439
|
-
if (!txt) return {
|
|
4440
|
-
message: e.message + " while parsing empty string",
|
|
4441
|
-
position: 0
|
|
4442
|
-
};
|
|
4443
|
-
const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);
|
|
4444
|
-
const errIdx = badToken ? +badToken[2] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
|
|
4445
|
-
const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${JSON.stringify(badToken[1])} (${hexify(badToken[1])})`) : e.message;
|
|
4446
|
-
if (errIdx !== null && errIdx !== void 0) {
|
|
4447
|
-
const start = errIdx <= context ? 0 : errIdx - context;
|
|
4448
|
-
const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
|
|
4449
|
-
const slice = (start === 0 ? "" : "...") + txt.slice(start, end) + (end === txt.length ? "" : "...");
|
|
4450
|
-
return {
|
|
4451
|
-
message: msg + ` while parsing ${txt === slice ? "" : "near "}${JSON.stringify(slice)}`,
|
|
4452
|
-
position: errIdx
|
|
4453
|
-
};
|
|
4454
|
-
} else return {
|
|
4455
|
-
message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
|
|
4456
|
-
position: 0
|
|
4457
|
-
};
|
|
4458
|
-
};
|
|
4459
|
-
var JSONParseError = class extends SyntaxError {
|
|
4460
|
-
constructor(er, txt, context, caller) {
|
|
4461
|
-
context = context || 20;
|
|
4462
|
-
const metadata = parseError(er, txt, context);
|
|
4463
|
-
super(metadata.message);
|
|
4464
|
-
Object.assign(this, metadata);
|
|
4465
|
-
this.code = "EJSONPARSE";
|
|
4466
|
-
this.systemError = er;
|
|
4467
|
-
Error.captureStackTrace(this, caller || this.constructor);
|
|
4468
|
-
}
|
|
4469
|
-
get name() {
|
|
4470
|
-
return this.constructor.name;
|
|
4471
|
-
}
|
|
4472
|
-
set name(n) {}
|
|
4473
|
-
get [Symbol.toStringTag]() {
|
|
4474
|
-
return this.constructor.name;
|
|
4475
|
-
}
|
|
4476
|
-
};
|
|
4477
|
-
const kIndent = Symbol.for("indent");
|
|
4478
|
-
const kNewline = Symbol.for("newline");
|
|
4479
|
-
const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;
|
|
4480
|
-
const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
|
|
4481
|
-
const parseJson = (txt, reviver, context) => {
|
|
4482
|
-
const parseText = stripBOM(txt);
|
|
4483
|
-
context = context || 20;
|
|
4484
|
-
try {
|
|
4485
|
-
const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [
|
|
4486
|
-
,
|
|
4487
|
-
"",
|
|
4488
|
-
""
|
|
4489
|
-
];
|
|
4490
|
-
const result = JSON.parse(parseText, reviver);
|
|
4491
|
-
if (result && typeof result === "object") {
|
|
4492
|
-
result[kNewline] = newline;
|
|
4493
|
-
result[kIndent] = indent;
|
|
4494
|
-
}
|
|
4495
|
-
return result;
|
|
4496
|
-
} catch (e) {
|
|
4497
|
-
if (typeof txt !== "string" && !Buffer.isBuffer(txt)) {
|
|
4498
|
-
const isEmptyArray = Array.isArray(txt) && txt.length === 0;
|
|
4499
|
-
throw Object.assign(/* @__PURE__ */ new TypeError(`Cannot parse ${isEmptyArray ? "an empty array" : String(txt)}`), {
|
|
4500
|
-
code: "EJSONPARSE",
|
|
4501
|
-
systemError: e
|
|
4502
|
-
});
|
|
4503
|
-
}
|
|
4504
|
-
throw new JSONParseError(e, parseText, context, parseJson);
|
|
4505
|
-
}
|
|
4506
|
-
};
|
|
4507
|
-
const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
|
|
4508
|
-
module.exports = parseJson;
|
|
4509
|
-
parseJson.JSONParseError = JSONParseError;
|
|
4510
|
-
parseJson.noExceptions = (txt, reviver) => {
|
|
4511
|
-
try {
|
|
4512
|
-
return JSON.parse(stripBOM(txt), reviver);
|
|
4513
|
-
} catch (e) {}
|
|
4514
|
-
};
|
|
4515
|
-
}));
|
|
4516
|
-
//#endregion
|
|
4517
|
-
//#region ../../node_modules/.pnpm/lines-and-columns@1.2.4/node_modules/lines-and-columns/build/index.js
|
|
4518
|
-
var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4519
|
-
exports.__esModule = true;
|
|
4520
|
-
exports.LinesAndColumns = void 0;
|
|
4521
|
-
var LF = "\n";
|
|
4522
|
-
var CR = "\r";
|
|
4523
|
-
var LinesAndColumns = function() {
|
|
4524
|
-
function LinesAndColumns(string) {
|
|
4525
|
-
this.string = string;
|
|
4526
|
-
var offsets = [0];
|
|
4527
|
-
for (var offset = 0; offset < string.length;) switch (string[offset]) {
|
|
4528
|
-
case LF:
|
|
4529
|
-
offset += LF.length;
|
|
4530
|
-
offsets.push(offset);
|
|
4531
|
-
break;
|
|
4532
|
-
case CR:
|
|
4533
|
-
offset += CR.length;
|
|
4534
|
-
if (string[offset] === LF) offset += LF.length;
|
|
4535
|
-
offsets.push(offset);
|
|
4536
|
-
break;
|
|
4537
|
-
default:
|
|
4538
|
-
offset++;
|
|
4539
|
-
break;
|
|
4540
|
-
}
|
|
4541
|
-
this.offsets = offsets;
|
|
4542
|
-
}
|
|
4543
|
-
LinesAndColumns.prototype.locationForIndex = function(index) {
|
|
4544
|
-
if (index < 0 || index > this.string.length) return null;
|
|
4545
|
-
var line = 0;
|
|
4546
|
-
var offsets = this.offsets;
|
|
4547
|
-
while (offsets[line + 1] <= index) line++;
|
|
4548
|
-
var column = index - offsets[line];
|
|
4549
|
-
return {
|
|
4550
|
-
line,
|
|
4551
|
-
column
|
|
4552
|
-
};
|
|
4553
|
-
};
|
|
4554
|
-
LinesAndColumns.prototype.indexForLocation = function(location) {
|
|
4555
|
-
var line = location.line, column = location.column;
|
|
4556
|
-
if (line < 0 || line >= this.offsets.length) return null;
|
|
4557
|
-
if (column < 0 || column > this.lengthOfLine(line)) return null;
|
|
4558
|
-
return this.offsets[line] + column;
|
|
4559
|
-
};
|
|
4560
|
-
LinesAndColumns.prototype.lengthOfLine = function(line) {
|
|
4561
|
-
var offset = this.offsets[line];
|
|
4562
|
-
return (line === this.offsets.length - 1 ? this.string.length : this.offsets[line + 1]) - offset;
|
|
4563
|
-
};
|
|
4564
|
-
return LinesAndColumns;
|
|
4565
|
-
}();
|
|
4566
|
-
exports.LinesAndColumns = LinesAndColumns;
|
|
4567
|
-
exports["default"] = LinesAndColumns;
|
|
4568
|
-
}));
|
|
4569
|
-
//#endregion
|
|
4570
|
-
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
4571
|
-
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4572
|
-
let p = process || {};
|
|
4573
|
-
let argv = p.argv || [];
|
|
4574
|
-
let env = p.env || {};
|
|
4575
|
-
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);
|
|
4576
|
-
let formatter = (open, close, replace = open) => (input) => {
|
|
4577
|
-
let string = "" + input, index = string.indexOf(close, open.length);
|
|
4578
|
-
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
4579
|
-
};
|
|
4580
|
-
let replaceClose = (string, close, replace, index) => {
|
|
4581
|
-
let result = "", cursor = 0;
|
|
4582
|
-
do {
|
|
4583
|
-
result += string.substring(cursor, index) + replace;
|
|
4584
|
-
cursor = index + close.length;
|
|
4585
|
-
index = string.indexOf(close, cursor);
|
|
4586
|
-
} while (~index);
|
|
4587
|
-
return result + string.substring(cursor);
|
|
4588
|
-
};
|
|
4589
|
-
let createColors = (enabled = isColorSupported) => {
|
|
4590
|
-
let f = enabled ? formatter : () => String;
|
|
4591
|
-
return {
|
|
4592
|
-
isColorSupported: enabled,
|
|
4593
|
-
reset: f("\x1B[0m", "\x1B[0m"),
|
|
4594
|
-
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
4595
|
-
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
4596
|
-
italic: f("\x1B[3m", "\x1B[23m"),
|
|
4597
|
-
underline: f("\x1B[4m", "\x1B[24m"),
|
|
4598
|
-
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
4599
|
-
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
4600
|
-
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
4601
|
-
black: f("\x1B[30m", "\x1B[39m"),
|
|
4602
|
-
red: f("\x1B[31m", "\x1B[39m"),
|
|
4603
|
-
green: f("\x1B[32m", "\x1B[39m"),
|
|
4604
|
-
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
4605
|
-
blue: f("\x1B[34m", "\x1B[39m"),
|
|
4606
|
-
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
4607
|
-
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
4608
|
-
white: f("\x1B[37m", "\x1B[39m"),
|
|
4609
|
-
gray: f("\x1B[90m", "\x1B[39m"),
|
|
4610
|
-
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
4611
|
-
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
4612
|
-
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
4613
|
-
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
4614
|
-
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
4615
|
-
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
4616
|
-
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
4617
|
-
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
4618
|
-
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
4619
|
-
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
4620
|
-
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
4621
|
-
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
4622
|
-
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
4623
|
-
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
4624
|
-
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
4625
|
-
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
4626
|
-
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
4627
|
-
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
4628
|
-
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
4629
|
-
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
4630
|
-
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
4631
|
-
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
4632
|
-
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
4633
|
-
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
4634
|
-
};
|
|
4635
|
-
};
|
|
4636
|
-
module.exports = createColors();
|
|
4637
|
-
module.exports.createColors = createColors;
|
|
4638
|
-
}));
|
|
4639
|
-
//#endregion
|
|
4640
|
-
//#region ../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js
|
|
4641
|
-
var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4642
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4643
|
-
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;
|
|
4644
|
-
exports.matchToToken = function(match) {
|
|
4645
|
-
var token = {
|
|
4646
|
-
type: "invalid",
|
|
4647
|
-
value: match[0],
|
|
4648
|
-
closed: void 0
|
|
4649
|
-
};
|
|
4650
|
-
if (match[1]) token.type = "string", token.closed = !!(match[3] || match[4]);
|
|
4651
|
-
else if (match[5]) token.type = "comment";
|
|
4652
|
-
else if (match[6]) token.type = "comment", token.closed = !!match[7];
|
|
4653
|
-
else if (match[8]) token.type = "regex";
|
|
4654
|
-
else if (match[9]) token.type = "number";
|
|
4655
|
-
else if (match[10]) token.type = "name";
|
|
4656
|
-
else if (match[11]) token.type = "punctuator";
|
|
4657
|
-
else if (match[12]) token.type = "whitespace";
|
|
4658
|
-
return token;
|
|
4659
|
-
};
|
|
4660
|
-
}));
|
|
4661
|
-
//#endregion
|
|
4662
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
|
|
4663
|
-
var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4664
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4665
|
-
exports.isIdentifierChar = isIdentifierChar;
|
|
4666
|
-
exports.isIdentifierName = isIdentifierName;
|
|
4667
|
-
exports.isIdentifierStart = isIdentifierStart;
|
|
4668
|
-
let nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
|
|
4669
|
-
let nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
|
|
4670
|
-
const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
4671
|
-
const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
4672
|
-
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
4673
|
-
const astralIdentifierStartCodes = [
|
|
4674
|
-
0,
|
|
4675
|
-
11,
|
|
4676
|
-
2,
|
|
4677
|
-
25,
|
|
4678
|
-
2,
|
|
4679
|
-
18,
|
|
4680
|
-
2,
|
|
4681
|
-
1,
|
|
4682
|
-
2,
|
|
4683
|
-
14,
|
|
4684
|
-
3,
|
|
4685
|
-
13,
|
|
4686
|
-
35,
|
|
4687
|
-
122,
|
|
4688
|
-
70,
|
|
4689
|
-
52,
|
|
4690
|
-
268,
|
|
4691
|
-
28,
|
|
4692
|
-
4,
|
|
4693
|
-
48,
|
|
4694
|
-
48,
|
|
4695
|
-
31,
|
|
4696
|
-
14,
|
|
4697
|
-
29,
|
|
4698
|
-
6,
|
|
4699
|
-
37,
|
|
4700
|
-
11,
|
|
4701
|
-
29,
|
|
4702
|
-
3,
|
|
4703
|
-
35,
|
|
4704
|
-
5,
|
|
4705
|
-
7,
|
|
4706
|
-
2,
|
|
4707
|
-
4,
|
|
4708
|
-
43,
|
|
4709
|
-
157,
|
|
4710
|
-
19,
|
|
4711
|
-
35,
|
|
4712
|
-
5,
|
|
4713
|
-
35,
|
|
4714
|
-
5,
|
|
4715
|
-
39,
|
|
4716
|
-
9,
|
|
4717
|
-
51,
|
|
4718
|
-
13,
|
|
4719
|
-
10,
|
|
4720
|
-
2,
|
|
4721
|
-
14,
|
|
4722
|
-
2,
|
|
4723
|
-
6,
|
|
4724
|
-
2,
|
|
4725
|
-
1,
|
|
4726
|
-
2,
|
|
4727
|
-
10,
|
|
4728
|
-
2,
|
|
4729
|
-
14,
|
|
4730
|
-
2,
|
|
4731
|
-
6,
|
|
4732
|
-
2,
|
|
4733
|
-
1,
|
|
4734
|
-
4,
|
|
4735
|
-
51,
|
|
4736
|
-
13,
|
|
4737
|
-
310,
|
|
4738
|
-
10,
|
|
4739
|
-
21,
|
|
4740
|
-
11,
|
|
4741
|
-
7,
|
|
4742
|
-
25,
|
|
4743
|
-
5,
|
|
4744
|
-
2,
|
|
4745
|
-
41,
|
|
4746
|
-
2,
|
|
4747
|
-
8,
|
|
4748
|
-
70,
|
|
4749
|
-
5,
|
|
4750
|
-
3,
|
|
4751
|
-
0,
|
|
4752
|
-
2,
|
|
4753
|
-
43,
|
|
4754
|
-
2,
|
|
4755
|
-
1,
|
|
4756
|
-
4,
|
|
4757
|
-
0,
|
|
4758
|
-
3,
|
|
4759
|
-
22,
|
|
4760
|
-
11,
|
|
4761
|
-
22,
|
|
4762
|
-
10,
|
|
4763
|
-
30,
|
|
4764
|
-
66,
|
|
4765
|
-
18,
|
|
4766
|
-
2,
|
|
4767
|
-
1,
|
|
4768
|
-
11,
|
|
4769
|
-
21,
|
|
4770
|
-
11,
|
|
4771
|
-
25,
|
|
4772
|
-
7,
|
|
4773
|
-
25,
|
|
4774
|
-
39,
|
|
4775
|
-
55,
|
|
4776
|
-
7,
|
|
4777
|
-
1,
|
|
4778
|
-
65,
|
|
4779
|
-
0,
|
|
4780
|
-
16,
|
|
4781
|
-
3,
|
|
4782
|
-
2,
|
|
4783
|
-
2,
|
|
4784
|
-
2,
|
|
4785
|
-
28,
|
|
4786
|
-
43,
|
|
4787
|
-
28,
|
|
4788
|
-
4,
|
|
4789
|
-
28,
|
|
4790
|
-
36,
|
|
4791
|
-
7,
|
|
4792
|
-
2,
|
|
4793
|
-
27,
|
|
4794
|
-
28,
|
|
4795
|
-
53,
|
|
4796
|
-
11,
|
|
4797
|
-
21,
|
|
4798
|
-
11,
|
|
4799
|
-
18,
|
|
4800
|
-
14,
|
|
4801
|
-
17,
|
|
4802
|
-
111,
|
|
4803
|
-
72,
|
|
4804
|
-
56,
|
|
4805
|
-
50,
|
|
4806
|
-
14,
|
|
4807
|
-
50,
|
|
4808
|
-
14,
|
|
4809
|
-
35,
|
|
4810
|
-
39,
|
|
4811
|
-
27,
|
|
4812
|
-
10,
|
|
4813
|
-
22,
|
|
4814
|
-
251,
|
|
4815
|
-
41,
|
|
4816
|
-
7,
|
|
4817
|
-
1,
|
|
4818
|
-
17,
|
|
4819
|
-
5,
|
|
4820
|
-
57,
|
|
4821
|
-
28,
|
|
4822
|
-
11,
|
|
4823
|
-
0,
|
|
4824
|
-
9,
|
|
4825
|
-
21,
|
|
4826
|
-
43,
|
|
4827
|
-
17,
|
|
4828
|
-
47,
|
|
4829
|
-
20,
|
|
4830
|
-
28,
|
|
4831
|
-
22,
|
|
4832
|
-
13,
|
|
4833
|
-
52,
|
|
4834
|
-
58,
|
|
4835
|
-
1,
|
|
4836
|
-
3,
|
|
4837
|
-
0,
|
|
4838
|
-
14,
|
|
4839
|
-
44,
|
|
4840
|
-
33,
|
|
4841
|
-
24,
|
|
4842
|
-
27,
|
|
4843
|
-
35,
|
|
4844
|
-
30,
|
|
4845
|
-
0,
|
|
4846
|
-
3,
|
|
4847
|
-
0,
|
|
4848
|
-
9,
|
|
4849
|
-
34,
|
|
4850
|
-
4,
|
|
4851
|
-
0,
|
|
4852
|
-
13,
|
|
4853
|
-
47,
|
|
4854
|
-
15,
|
|
4855
|
-
3,
|
|
4856
|
-
22,
|
|
4857
|
-
0,
|
|
4858
|
-
2,
|
|
4859
|
-
0,
|
|
4860
|
-
36,
|
|
4861
|
-
17,
|
|
4862
|
-
2,
|
|
4863
|
-
24,
|
|
4864
|
-
20,
|
|
4865
|
-
1,
|
|
4866
|
-
64,
|
|
4867
|
-
6,
|
|
4868
|
-
2,
|
|
4869
|
-
0,
|
|
4870
|
-
2,
|
|
4871
|
-
3,
|
|
4872
|
-
2,
|
|
4873
|
-
14,
|
|
4874
|
-
2,
|
|
4875
|
-
9,
|
|
4876
|
-
8,
|
|
4877
|
-
46,
|
|
4878
|
-
39,
|
|
4879
|
-
7,
|
|
4880
|
-
3,
|
|
4881
|
-
1,
|
|
4882
|
-
3,
|
|
4883
|
-
21,
|
|
4884
|
-
2,
|
|
4885
|
-
6,
|
|
4886
|
-
2,
|
|
4887
|
-
1,
|
|
4888
|
-
2,
|
|
4889
|
-
4,
|
|
4890
|
-
4,
|
|
4891
|
-
0,
|
|
4892
|
-
19,
|
|
4893
|
-
0,
|
|
4894
|
-
13,
|
|
4895
|
-
4,
|
|
4896
|
-
31,
|
|
4897
|
-
9,
|
|
4898
|
-
2,
|
|
4899
|
-
0,
|
|
4900
|
-
3,
|
|
4901
|
-
0,
|
|
4902
|
-
2,
|
|
4903
|
-
37,
|
|
4904
|
-
2,
|
|
4905
|
-
0,
|
|
4906
|
-
26,
|
|
4907
|
-
0,
|
|
4908
|
-
2,
|
|
4909
|
-
0,
|
|
4910
|
-
45,
|
|
4911
|
-
52,
|
|
4912
|
-
19,
|
|
4913
|
-
3,
|
|
4914
|
-
21,
|
|
4915
|
-
2,
|
|
4916
|
-
31,
|
|
4917
|
-
47,
|
|
4918
|
-
21,
|
|
4919
|
-
1,
|
|
4920
|
-
2,
|
|
4921
|
-
0,
|
|
4922
|
-
185,
|
|
4923
|
-
46,
|
|
4924
|
-
42,
|
|
4925
|
-
3,
|
|
4926
|
-
37,
|
|
4927
|
-
47,
|
|
4928
|
-
21,
|
|
4929
|
-
0,
|
|
4930
|
-
60,
|
|
4931
|
-
42,
|
|
4932
|
-
14,
|
|
4933
|
-
0,
|
|
4934
|
-
72,
|
|
4935
|
-
26,
|
|
4936
|
-
38,
|
|
4937
|
-
6,
|
|
4938
|
-
186,
|
|
4939
|
-
43,
|
|
4940
|
-
117,
|
|
4941
|
-
63,
|
|
4942
|
-
32,
|
|
4943
|
-
7,
|
|
4944
|
-
3,
|
|
4945
|
-
0,
|
|
4946
|
-
3,
|
|
4947
|
-
7,
|
|
4948
|
-
2,
|
|
4949
|
-
1,
|
|
4950
|
-
2,
|
|
4951
|
-
23,
|
|
4952
|
-
16,
|
|
4953
|
-
0,
|
|
4954
|
-
2,
|
|
4955
|
-
0,
|
|
4956
|
-
95,
|
|
4957
|
-
7,
|
|
4958
|
-
3,
|
|
4959
|
-
38,
|
|
4960
|
-
17,
|
|
4961
|
-
0,
|
|
4962
|
-
2,
|
|
4963
|
-
0,
|
|
4964
|
-
29,
|
|
4965
|
-
0,
|
|
4966
|
-
11,
|
|
4967
|
-
39,
|
|
4968
|
-
8,
|
|
4969
|
-
0,
|
|
4970
|
-
22,
|
|
4971
|
-
0,
|
|
4972
|
-
12,
|
|
4973
|
-
45,
|
|
4974
|
-
20,
|
|
4975
|
-
0,
|
|
4976
|
-
19,
|
|
4977
|
-
72,
|
|
4978
|
-
200,
|
|
4979
|
-
32,
|
|
4980
|
-
32,
|
|
4981
|
-
8,
|
|
4982
|
-
2,
|
|
4983
|
-
36,
|
|
4984
|
-
18,
|
|
4985
|
-
0,
|
|
4986
|
-
50,
|
|
4987
|
-
29,
|
|
4988
|
-
113,
|
|
4989
|
-
6,
|
|
4990
|
-
2,
|
|
4991
|
-
1,
|
|
4992
|
-
2,
|
|
4993
|
-
37,
|
|
4994
|
-
22,
|
|
4995
|
-
0,
|
|
4996
|
-
26,
|
|
4997
|
-
5,
|
|
4998
|
-
2,
|
|
4999
|
-
1,
|
|
5000
|
-
2,
|
|
5001
|
-
31,
|
|
5002
|
-
15,
|
|
5003
|
-
0,
|
|
5004
|
-
24,
|
|
5005
|
-
43,
|
|
5006
|
-
261,
|
|
5007
|
-
18,
|
|
5008
|
-
16,
|
|
5009
|
-
0,
|
|
5010
|
-
2,
|
|
5011
|
-
12,
|
|
5012
|
-
2,
|
|
5013
|
-
33,
|
|
5014
|
-
125,
|
|
5015
|
-
0,
|
|
5016
|
-
80,
|
|
5017
|
-
921,
|
|
5018
|
-
103,
|
|
5019
|
-
110,
|
|
5020
|
-
18,
|
|
5021
|
-
195,
|
|
5022
|
-
2637,
|
|
5023
|
-
96,
|
|
5024
|
-
16,
|
|
5025
|
-
1071,
|
|
5026
|
-
18,
|
|
5027
|
-
5,
|
|
5028
|
-
26,
|
|
5029
|
-
3994,
|
|
5030
|
-
6,
|
|
5031
|
-
582,
|
|
5032
|
-
6842,
|
|
5033
|
-
29,
|
|
5034
|
-
1763,
|
|
5035
|
-
568,
|
|
5036
|
-
8,
|
|
5037
|
-
30,
|
|
5038
|
-
18,
|
|
5039
|
-
78,
|
|
5040
|
-
18,
|
|
5041
|
-
29,
|
|
5042
|
-
19,
|
|
5043
|
-
47,
|
|
5044
|
-
17,
|
|
5045
|
-
3,
|
|
5046
|
-
32,
|
|
5047
|
-
20,
|
|
5048
|
-
6,
|
|
5049
|
-
18,
|
|
5050
|
-
433,
|
|
5051
|
-
44,
|
|
5052
|
-
212,
|
|
5053
|
-
63,
|
|
5054
|
-
33,
|
|
5055
|
-
24,
|
|
5056
|
-
3,
|
|
5057
|
-
24,
|
|
5058
|
-
45,
|
|
5059
|
-
74,
|
|
5060
|
-
6,
|
|
5061
|
-
0,
|
|
5062
|
-
67,
|
|
5063
|
-
12,
|
|
5064
|
-
65,
|
|
5065
|
-
1,
|
|
5066
|
-
2,
|
|
5067
|
-
0,
|
|
5068
|
-
15,
|
|
5069
|
-
4,
|
|
5070
|
-
10,
|
|
5071
|
-
7381,
|
|
5072
|
-
42,
|
|
5073
|
-
31,
|
|
5074
|
-
98,
|
|
5075
|
-
114,
|
|
5076
|
-
8702,
|
|
5077
|
-
3,
|
|
5078
|
-
2,
|
|
5079
|
-
6,
|
|
5080
|
-
2,
|
|
5081
|
-
1,
|
|
5082
|
-
2,
|
|
5083
|
-
290,
|
|
5084
|
-
16,
|
|
5085
|
-
0,
|
|
5086
|
-
30,
|
|
5087
|
-
2,
|
|
5088
|
-
3,
|
|
5089
|
-
0,
|
|
5090
|
-
15,
|
|
5091
|
-
3,
|
|
5092
|
-
9,
|
|
5093
|
-
395,
|
|
5094
|
-
2309,
|
|
5095
|
-
106,
|
|
5096
|
-
6,
|
|
5097
|
-
12,
|
|
5098
|
-
4,
|
|
5099
|
-
8,
|
|
5100
|
-
8,
|
|
5101
|
-
9,
|
|
5102
|
-
5991,
|
|
5103
|
-
84,
|
|
5104
|
-
2,
|
|
5105
|
-
70,
|
|
5106
|
-
2,
|
|
5107
|
-
1,
|
|
5108
|
-
3,
|
|
5109
|
-
0,
|
|
5110
|
-
3,
|
|
5111
|
-
1,
|
|
5112
|
-
3,
|
|
5113
|
-
3,
|
|
5114
|
-
2,
|
|
5115
|
-
11,
|
|
5116
|
-
2,
|
|
5117
|
-
0,
|
|
5118
|
-
2,
|
|
5119
|
-
6,
|
|
5120
|
-
2,
|
|
5121
|
-
64,
|
|
5122
|
-
2,
|
|
5123
|
-
3,
|
|
5124
|
-
3,
|
|
5125
|
-
7,
|
|
5126
|
-
2,
|
|
5127
|
-
6,
|
|
5128
|
-
2,
|
|
5129
|
-
27,
|
|
5130
|
-
2,
|
|
5131
|
-
3,
|
|
5132
|
-
2,
|
|
5133
|
-
4,
|
|
5134
|
-
2,
|
|
5135
|
-
0,
|
|
5136
|
-
4,
|
|
5137
|
-
6,
|
|
5138
|
-
2,
|
|
5139
|
-
339,
|
|
5140
|
-
3,
|
|
5141
|
-
24,
|
|
5142
|
-
2,
|
|
5143
|
-
24,
|
|
5144
|
-
2,
|
|
5145
|
-
30,
|
|
5146
|
-
2,
|
|
5147
|
-
24,
|
|
5148
|
-
2,
|
|
5149
|
-
30,
|
|
5150
|
-
2,
|
|
5151
|
-
24,
|
|
5152
|
-
2,
|
|
5153
|
-
30,
|
|
5154
|
-
2,
|
|
5155
|
-
24,
|
|
5156
|
-
2,
|
|
5157
|
-
30,
|
|
5158
|
-
2,
|
|
5159
|
-
24,
|
|
5160
|
-
2,
|
|
5161
|
-
7,
|
|
5162
|
-
1845,
|
|
5163
|
-
30,
|
|
5164
|
-
7,
|
|
5165
|
-
5,
|
|
5166
|
-
262,
|
|
5167
|
-
61,
|
|
5168
|
-
147,
|
|
5169
|
-
44,
|
|
5170
|
-
11,
|
|
5171
|
-
6,
|
|
5172
|
-
17,
|
|
5173
|
-
0,
|
|
5174
|
-
322,
|
|
5175
|
-
29,
|
|
5176
|
-
19,
|
|
5177
|
-
43,
|
|
5178
|
-
485,
|
|
5179
|
-
27,
|
|
5180
|
-
229,
|
|
5181
|
-
29,
|
|
5182
|
-
3,
|
|
5183
|
-
0,
|
|
5184
|
-
208,
|
|
5185
|
-
30,
|
|
5186
|
-
2,
|
|
5187
|
-
2,
|
|
5188
|
-
2,
|
|
5189
|
-
1,
|
|
5190
|
-
2,
|
|
5191
|
-
6,
|
|
5192
|
-
3,
|
|
5193
|
-
4,
|
|
5194
|
-
10,
|
|
5195
|
-
1,
|
|
5196
|
-
225,
|
|
5197
|
-
6,
|
|
5198
|
-
2,
|
|
5199
|
-
3,
|
|
5200
|
-
2,
|
|
5201
|
-
1,
|
|
5202
|
-
2,
|
|
5203
|
-
14,
|
|
5204
|
-
2,
|
|
5205
|
-
196,
|
|
5206
|
-
60,
|
|
5207
|
-
67,
|
|
5208
|
-
8,
|
|
5209
|
-
0,
|
|
5210
|
-
1205,
|
|
5211
|
-
3,
|
|
5212
|
-
2,
|
|
5213
|
-
26,
|
|
5214
|
-
2,
|
|
5215
|
-
1,
|
|
5216
|
-
2,
|
|
5217
|
-
0,
|
|
5218
|
-
3,
|
|
5219
|
-
0,
|
|
5220
|
-
2,
|
|
5221
|
-
9,
|
|
5222
|
-
2,
|
|
5223
|
-
3,
|
|
5224
|
-
2,
|
|
5225
|
-
0,
|
|
5226
|
-
2,
|
|
5227
|
-
0,
|
|
5228
|
-
7,
|
|
5229
|
-
0,
|
|
5230
|
-
5,
|
|
5231
|
-
0,
|
|
5232
|
-
2,
|
|
5233
|
-
0,
|
|
5234
|
-
2,
|
|
5235
|
-
0,
|
|
5236
|
-
2,
|
|
5237
|
-
2,
|
|
5238
|
-
2,
|
|
5239
|
-
1,
|
|
5240
|
-
2,
|
|
5241
|
-
0,
|
|
5242
|
-
3,
|
|
5243
|
-
0,
|
|
5244
|
-
2,
|
|
5245
|
-
0,
|
|
5246
|
-
2,
|
|
5247
|
-
0,
|
|
5248
|
-
2,
|
|
5249
|
-
0,
|
|
5250
|
-
2,
|
|
5251
|
-
0,
|
|
5252
|
-
2,
|
|
5253
|
-
1,
|
|
5254
|
-
2,
|
|
5255
|
-
0,
|
|
5256
|
-
3,
|
|
5257
|
-
3,
|
|
5258
|
-
2,
|
|
5259
|
-
6,
|
|
5260
|
-
2,
|
|
5261
|
-
3,
|
|
5262
|
-
2,
|
|
5263
|
-
3,
|
|
5264
|
-
2,
|
|
5265
|
-
0,
|
|
5266
|
-
2,
|
|
5267
|
-
9,
|
|
5268
|
-
2,
|
|
5269
|
-
16,
|
|
5270
|
-
6,
|
|
5271
|
-
2,
|
|
5272
|
-
2,
|
|
5273
|
-
4,
|
|
5274
|
-
2,
|
|
5275
|
-
16,
|
|
5276
|
-
4421,
|
|
5277
|
-
42719,
|
|
5278
|
-
33,
|
|
5279
|
-
4381,
|
|
5280
|
-
3,
|
|
5281
|
-
5773,
|
|
5282
|
-
3,
|
|
5283
|
-
7472,
|
|
5284
|
-
16,
|
|
5285
|
-
621,
|
|
5286
|
-
2467,
|
|
5287
|
-
541,
|
|
5288
|
-
1507,
|
|
5289
|
-
4938,
|
|
5290
|
-
6,
|
|
5291
|
-
8489
|
|
5292
|
-
];
|
|
5293
|
-
const astralIdentifierCodes = [
|
|
5294
|
-
509,
|
|
5295
|
-
0,
|
|
5296
|
-
227,
|
|
5297
|
-
0,
|
|
5298
|
-
150,
|
|
5299
|
-
4,
|
|
5300
|
-
294,
|
|
5301
|
-
9,
|
|
5302
|
-
1368,
|
|
5303
|
-
2,
|
|
5304
|
-
2,
|
|
5305
|
-
1,
|
|
5306
|
-
6,
|
|
5307
|
-
3,
|
|
5308
|
-
41,
|
|
5309
|
-
2,
|
|
5310
|
-
5,
|
|
5311
|
-
0,
|
|
5312
|
-
166,
|
|
5313
|
-
1,
|
|
5314
|
-
574,
|
|
5315
|
-
3,
|
|
5316
|
-
9,
|
|
5317
|
-
9,
|
|
5318
|
-
7,
|
|
5319
|
-
9,
|
|
5320
|
-
32,
|
|
5321
|
-
4,
|
|
5322
|
-
318,
|
|
5323
|
-
1,
|
|
5324
|
-
78,
|
|
5325
|
-
5,
|
|
5326
|
-
71,
|
|
5327
|
-
10,
|
|
5328
|
-
50,
|
|
5329
|
-
3,
|
|
5330
|
-
123,
|
|
5331
|
-
2,
|
|
5332
|
-
54,
|
|
5333
|
-
14,
|
|
5334
|
-
32,
|
|
5335
|
-
10,
|
|
5336
|
-
3,
|
|
5337
|
-
1,
|
|
5338
|
-
11,
|
|
5339
|
-
3,
|
|
5340
|
-
46,
|
|
5341
|
-
10,
|
|
5342
|
-
8,
|
|
5343
|
-
0,
|
|
5344
|
-
46,
|
|
5345
|
-
9,
|
|
5346
|
-
7,
|
|
5347
|
-
2,
|
|
5348
|
-
37,
|
|
5349
|
-
13,
|
|
5350
|
-
2,
|
|
5351
|
-
9,
|
|
5352
|
-
6,
|
|
5353
|
-
1,
|
|
5354
|
-
45,
|
|
5355
|
-
0,
|
|
5356
|
-
13,
|
|
5357
|
-
2,
|
|
5358
|
-
49,
|
|
5359
|
-
13,
|
|
5360
|
-
9,
|
|
5361
|
-
3,
|
|
5362
|
-
2,
|
|
5363
|
-
11,
|
|
5364
|
-
83,
|
|
5365
|
-
11,
|
|
5366
|
-
7,
|
|
5367
|
-
0,
|
|
5368
|
-
3,
|
|
5369
|
-
0,
|
|
5370
|
-
158,
|
|
5371
|
-
11,
|
|
5372
|
-
6,
|
|
5373
|
-
9,
|
|
5374
|
-
7,
|
|
5375
|
-
3,
|
|
5376
|
-
56,
|
|
5377
|
-
1,
|
|
5378
|
-
2,
|
|
5379
|
-
6,
|
|
5380
|
-
3,
|
|
5381
|
-
1,
|
|
5382
|
-
3,
|
|
5383
|
-
2,
|
|
5384
|
-
10,
|
|
5385
|
-
0,
|
|
5386
|
-
11,
|
|
5387
|
-
1,
|
|
5388
|
-
3,
|
|
5389
|
-
6,
|
|
5390
|
-
4,
|
|
5391
|
-
4,
|
|
5392
|
-
68,
|
|
5393
|
-
8,
|
|
5394
|
-
2,
|
|
5395
|
-
0,
|
|
5396
|
-
3,
|
|
5397
|
-
0,
|
|
5398
|
-
2,
|
|
5399
|
-
3,
|
|
5400
|
-
2,
|
|
5401
|
-
4,
|
|
5402
|
-
2,
|
|
5403
|
-
0,
|
|
5404
|
-
15,
|
|
5405
|
-
1,
|
|
5406
|
-
83,
|
|
5407
|
-
17,
|
|
5408
|
-
10,
|
|
5409
|
-
9,
|
|
5410
|
-
5,
|
|
5411
|
-
0,
|
|
5412
|
-
82,
|
|
5413
|
-
19,
|
|
5414
|
-
13,
|
|
5415
|
-
9,
|
|
5416
|
-
214,
|
|
5417
|
-
6,
|
|
5418
|
-
3,
|
|
5419
|
-
8,
|
|
5420
|
-
28,
|
|
5421
|
-
1,
|
|
5422
|
-
83,
|
|
5423
|
-
16,
|
|
5424
|
-
16,
|
|
5425
|
-
9,
|
|
5426
|
-
82,
|
|
5427
|
-
12,
|
|
5428
|
-
9,
|
|
5429
|
-
9,
|
|
5430
|
-
7,
|
|
5431
|
-
19,
|
|
5432
|
-
58,
|
|
5433
|
-
14,
|
|
5434
|
-
5,
|
|
5435
|
-
9,
|
|
5436
|
-
243,
|
|
5437
|
-
14,
|
|
5438
|
-
166,
|
|
5439
|
-
9,
|
|
5440
|
-
71,
|
|
5441
|
-
5,
|
|
5442
|
-
2,
|
|
5443
|
-
1,
|
|
5444
|
-
3,
|
|
5445
|
-
3,
|
|
5446
|
-
2,
|
|
5447
|
-
0,
|
|
5448
|
-
2,
|
|
5449
|
-
1,
|
|
5450
|
-
13,
|
|
5451
|
-
9,
|
|
5452
|
-
120,
|
|
5453
|
-
6,
|
|
5454
|
-
3,
|
|
5455
|
-
6,
|
|
5456
|
-
4,
|
|
5457
|
-
0,
|
|
5458
|
-
29,
|
|
5459
|
-
9,
|
|
5460
|
-
41,
|
|
5461
|
-
6,
|
|
5462
|
-
2,
|
|
5463
|
-
3,
|
|
5464
|
-
9,
|
|
5465
|
-
0,
|
|
5466
|
-
10,
|
|
5467
|
-
10,
|
|
5468
|
-
47,
|
|
5469
|
-
15,
|
|
5470
|
-
199,
|
|
5471
|
-
7,
|
|
5472
|
-
137,
|
|
5473
|
-
9,
|
|
5474
|
-
54,
|
|
5475
|
-
7,
|
|
5476
|
-
2,
|
|
5477
|
-
7,
|
|
5478
|
-
17,
|
|
5479
|
-
9,
|
|
5480
|
-
57,
|
|
5481
|
-
21,
|
|
5482
|
-
2,
|
|
5483
|
-
13,
|
|
5484
|
-
123,
|
|
5485
|
-
5,
|
|
5486
|
-
4,
|
|
5487
|
-
0,
|
|
5488
|
-
2,
|
|
5489
|
-
1,
|
|
5490
|
-
2,
|
|
5491
|
-
6,
|
|
5492
|
-
2,
|
|
5493
|
-
0,
|
|
5494
|
-
9,
|
|
5495
|
-
9,
|
|
5496
|
-
49,
|
|
5497
|
-
4,
|
|
5498
|
-
2,
|
|
5499
|
-
1,
|
|
5500
|
-
2,
|
|
5501
|
-
4,
|
|
5502
|
-
9,
|
|
5503
|
-
9,
|
|
5504
|
-
55,
|
|
5505
|
-
9,
|
|
5506
|
-
266,
|
|
5507
|
-
3,
|
|
5508
|
-
10,
|
|
5509
|
-
1,
|
|
5510
|
-
2,
|
|
5511
|
-
0,
|
|
5512
|
-
49,
|
|
5513
|
-
6,
|
|
5514
|
-
4,
|
|
5515
|
-
4,
|
|
5516
|
-
14,
|
|
5517
|
-
10,
|
|
5518
|
-
5350,
|
|
5519
|
-
0,
|
|
5520
|
-
7,
|
|
5521
|
-
14,
|
|
5522
|
-
11465,
|
|
5523
|
-
27,
|
|
5524
|
-
2343,
|
|
5525
|
-
9,
|
|
5526
|
-
87,
|
|
5527
|
-
9,
|
|
5528
|
-
39,
|
|
5529
|
-
4,
|
|
5530
|
-
60,
|
|
5531
|
-
6,
|
|
5532
|
-
26,
|
|
5533
|
-
9,
|
|
5534
|
-
535,
|
|
5535
|
-
9,
|
|
5536
|
-
470,
|
|
5537
|
-
0,
|
|
5538
|
-
2,
|
|
5539
|
-
54,
|
|
5540
|
-
8,
|
|
5541
|
-
3,
|
|
5542
|
-
82,
|
|
5543
|
-
0,
|
|
5544
|
-
12,
|
|
5545
|
-
1,
|
|
5546
|
-
19628,
|
|
5547
|
-
1,
|
|
5548
|
-
4178,
|
|
5549
|
-
9,
|
|
5550
|
-
519,
|
|
5551
|
-
45,
|
|
5552
|
-
3,
|
|
5553
|
-
22,
|
|
5554
|
-
543,
|
|
5555
|
-
4,
|
|
5556
|
-
4,
|
|
5557
|
-
5,
|
|
5558
|
-
9,
|
|
5559
|
-
7,
|
|
5560
|
-
3,
|
|
5561
|
-
6,
|
|
5562
|
-
31,
|
|
5563
|
-
3,
|
|
5564
|
-
149,
|
|
5565
|
-
2,
|
|
5566
|
-
1418,
|
|
5567
|
-
49,
|
|
5568
|
-
513,
|
|
5569
|
-
54,
|
|
5570
|
-
5,
|
|
5571
|
-
49,
|
|
5572
|
-
9,
|
|
5573
|
-
0,
|
|
5574
|
-
15,
|
|
5575
|
-
0,
|
|
5576
|
-
23,
|
|
5577
|
-
4,
|
|
5578
|
-
2,
|
|
5579
|
-
14,
|
|
5580
|
-
1361,
|
|
5581
|
-
6,
|
|
5582
|
-
2,
|
|
5583
|
-
16,
|
|
5584
|
-
3,
|
|
5585
|
-
6,
|
|
5586
|
-
2,
|
|
5587
|
-
1,
|
|
5588
|
-
2,
|
|
5589
|
-
4,
|
|
5590
|
-
101,
|
|
5591
|
-
0,
|
|
5592
|
-
161,
|
|
5593
|
-
6,
|
|
5594
|
-
10,
|
|
5595
|
-
9,
|
|
5596
|
-
357,
|
|
5597
|
-
0,
|
|
5598
|
-
62,
|
|
5599
|
-
13,
|
|
5600
|
-
499,
|
|
5601
|
-
13,
|
|
5602
|
-
245,
|
|
5603
|
-
1,
|
|
5604
|
-
2,
|
|
5605
|
-
9,
|
|
5606
|
-
233,
|
|
5607
|
-
0,
|
|
5608
|
-
3,
|
|
5609
|
-
0,
|
|
5610
|
-
8,
|
|
5611
|
-
1,
|
|
5612
|
-
6,
|
|
5613
|
-
0,
|
|
5614
|
-
475,
|
|
5615
|
-
6,
|
|
5616
|
-
110,
|
|
5617
|
-
6,
|
|
5618
|
-
6,
|
|
5619
|
-
9,
|
|
5620
|
-
4759,
|
|
5621
|
-
9,
|
|
5622
|
-
787719,
|
|
5623
|
-
239
|
|
5624
|
-
];
|
|
5625
|
-
function isInAstralSet(code, set) {
|
|
5626
|
-
let pos = 65536;
|
|
5627
|
-
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
5628
|
-
pos += set[i];
|
|
5629
|
-
if (pos > code) return false;
|
|
5630
|
-
pos += set[i + 1];
|
|
5631
|
-
if (pos >= code) return true;
|
|
5632
|
-
}
|
|
5633
|
-
return false;
|
|
5634
|
-
}
|
|
5635
|
-
function isIdentifierStart(code) {
|
|
5636
|
-
if (code < 65) return code === 36;
|
|
5637
|
-
if (code <= 90) return true;
|
|
5638
|
-
if (code < 97) return code === 95;
|
|
5639
|
-
if (code <= 122) return true;
|
|
5640
|
-
if (code <= 65535) return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
|
|
5641
|
-
return isInAstralSet(code, astralIdentifierStartCodes);
|
|
5642
|
-
}
|
|
5643
|
-
function isIdentifierChar(code) {
|
|
5644
|
-
if (code < 48) return code === 36;
|
|
5645
|
-
if (code < 58) return true;
|
|
5646
|
-
if (code < 65) return false;
|
|
5647
|
-
if (code <= 90) return true;
|
|
5648
|
-
if (code < 97) return code === 95;
|
|
5649
|
-
if (code <= 122) return true;
|
|
5650
|
-
if (code <= 65535) return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
|
|
5651
|
-
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
5652
|
-
}
|
|
5653
|
-
function isIdentifierName(name) {
|
|
5654
|
-
let isFirst = true;
|
|
5655
|
-
for (let i = 0; i < name.length; i++) {
|
|
5656
|
-
let cp = name.charCodeAt(i);
|
|
5657
|
-
if ((cp & 64512) === 55296 && i + 1 < name.length) {
|
|
5658
|
-
const trail = name.charCodeAt(++i);
|
|
5659
|
-
if ((trail & 64512) === 56320) cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
|
|
5660
|
-
}
|
|
5661
|
-
if (isFirst) {
|
|
5662
|
-
isFirst = false;
|
|
5663
|
-
if (!isIdentifierStart(cp)) return false;
|
|
5664
|
-
} else if (!isIdentifierChar(cp)) return false;
|
|
5665
|
-
}
|
|
5666
|
-
return !isFirst;
|
|
5667
|
-
}
|
|
5668
|
-
}));
|
|
5669
|
-
//#endregion
|
|
5670
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
|
|
5671
|
-
var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5672
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5673
|
-
exports.isKeyword = isKeyword;
|
|
5674
|
-
exports.isReservedWord = isReservedWord;
|
|
5675
|
-
exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
|
|
5676
|
-
exports.isStrictBindReservedWord = isStrictBindReservedWord;
|
|
5677
|
-
exports.isStrictReservedWord = isStrictReservedWord;
|
|
5678
|
-
const reservedWords = {
|
|
5679
|
-
keyword: [
|
|
5680
|
-
"break",
|
|
5681
|
-
"case",
|
|
5682
|
-
"catch",
|
|
5683
|
-
"continue",
|
|
5684
|
-
"debugger",
|
|
5685
|
-
"default",
|
|
5686
|
-
"do",
|
|
5687
|
-
"else",
|
|
5688
|
-
"finally",
|
|
5689
|
-
"for",
|
|
5690
|
-
"function",
|
|
5691
|
-
"if",
|
|
5692
|
-
"return",
|
|
5693
|
-
"switch",
|
|
5694
|
-
"throw",
|
|
5695
|
-
"try",
|
|
5696
|
-
"var",
|
|
5697
|
-
"const",
|
|
5698
|
-
"while",
|
|
5699
|
-
"with",
|
|
5700
|
-
"new",
|
|
5701
|
-
"this",
|
|
5702
|
-
"super",
|
|
5703
|
-
"class",
|
|
5704
|
-
"extends",
|
|
5705
|
-
"export",
|
|
5706
|
-
"import",
|
|
5707
|
-
"null",
|
|
5708
|
-
"true",
|
|
5709
|
-
"false",
|
|
5710
|
-
"in",
|
|
5711
|
-
"instanceof",
|
|
5712
|
-
"typeof",
|
|
5713
|
-
"void",
|
|
5714
|
-
"delete"
|
|
5715
|
-
],
|
|
5716
|
-
strict: [
|
|
5717
|
-
"implements",
|
|
5718
|
-
"interface",
|
|
5719
|
-
"let",
|
|
5720
|
-
"package",
|
|
5721
|
-
"private",
|
|
5722
|
-
"protected",
|
|
5723
|
-
"public",
|
|
5724
|
-
"static",
|
|
5725
|
-
"yield"
|
|
5726
|
-
],
|
|
5727
|
-
strictBind: ["eval", "arguments"]
|
|
5728
|
-
};
|
|
5729
|
-
const keywords = new Set(reservedWords.keyword);
|
|
5730
|
-
const reservedWordsStrictSet = new Set(reservedWords.strict);
|
|
5731
|
-
const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
|
|
5732
|
-
function isReservedWord(word, inModule) {
|
|
5733
|
-
return inModule && word === "await" || word === "enum";
|
|
5734
|
-
}
|
|
5735
|
-
function isStrictReservedWord(word, inModule) {
|
|
5736
|
-
return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
|
|
5737
|
-
}
|
|
5738
|
-
function isStrictBindOnlyReservedWord(word) {
|
|
5739
|
-
return reservedWordsStrictBindSet.has(word);
|
|
5740
|
-
}
|
|
5741
|
-
function isStrictBindReservedWord(word, inModule) {
|
|
5742
|
-
return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
|
|
5743
|
-
}
|
|
5744
|
-
function isKeyword(word) {
|
|
5745
|
-
return keywords.has(word);
|
|
5746
|
-
}
|
|
5747
|
-
}));
|
|
5748
|
-
//#endregion
|
|
5749
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
5750
|
-
var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5751
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5752
|
-
Object.defineProperty(exports, "isIdentifierChar", {
|
|
5753
|
-
enumerable: true,
|
|
5754
|
-
get: function() {
|
|
5755
|
-
return _identifier.isIdentifierChar;
|
|
5756
|
-
}
|
|
5757
|
-
});
|
|
5758
|
-
Object.defineProperty(exports, "isIdentifierName", {
|
|
5759
|
-
enumerable: true,
|
|
5760
|
-
get: function() {
|
|
5761
|
-
return _identifier.isIdentifierName;
|
|
5762
|
-
}
|
|
5763
|
-
});
|
|
5764
|
-
Object.defineProperty(exports, "isIdentifierStart", {
|
|
5765
|
-
enumerable: true,
|
|
5766
|
-
get: function() {
|
|
5767
|
-
return _identifier.isIdentifierStart;
|
|
5768
|
-
}
|
|
5769
|
-
});
|
|
5770
|
-
Object.defineProperty(exports, "isKeyword", {
|
|
5771
|
-
enumerable: true,
|
|
5772
|
-
get: function() {
|
|
5773
|
-
return _keyword.isKeyword;
|
|
5774
|
-
}
|
|
5775
|
-
});
|
|
5776
|
-
Object.defineProperty(exports, "isReservedWord", {
|
|
5777
|
-
enumerable: true,
|
|
5778
|
-
get: function() {
|
|
5779
|
-
return _keyword.isReservedWord;
|
|
5780
|
-
}
|
|
5781
|
-
});
|
|
5782
|
-
Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
|
|
5783
|
-
enumerable: true,
|
|
5784
|
-
get: function() {
|
|
5785
|
-
return _keyword.isStrictBindOnlyReservedWord;
|
|
5786
|
-
}
|
|
5787
|
-
});
|
|
5788
|
-
Object.defineProperty(exports, "isStrictBindReservedWord", {
|
|
5789
|
-
enumerable: true,
|
|
5790
|
-
get: function() {
|
|
5791
|
-
return _keyword.isStrictBindReservedWord;
|
|
5792
|
-
}
|
|
5793
|
-
});
|
|
5794
|
-
Object.defineProperty(exports, "isStrictReservedWord", {
|
|
5795
|
-
enumerable: true,
|
|
5796
|
-
get: function() {
|
|
5797
|
-
return _keyword.isStrictReservedWord;
|
|
5798
|
-
}
|
|
5799
|
-
});
|
|
5800
|
-
var _identifier = require_identifier();
|
|
5801
|
-
var _keyword = require_keyword();
|
|
5802
|
-
}));
|
|
5803
|
-
//#endregion
|
|
5804
|
-
//#region ../../node_modules/.pnpm/@babel+code-frame@7.29.7/node_modules/@babel/code-frame/lib/index.js
|
|
5805
|
-
var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5806
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5807
|
-
var picocolors = require_picocolors();
|
|
5808
|
-
var jsTokens = require_js_tokens();
|
|
5809
|
-
var helperValidatorIdentifier = require_lib$1();
|
|
5810
|
-
function isColorSupported() {
|
|
5811
|
-
return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
|
|
5812
|
-
}
|
|
5813
|
-
const compose = (f, g) => (v) => f(g(v));
|
|
5814
|
-
function buildDefs(colors) {
|
|
5815
|
-
return {
|
|
5816
|
-
keyword: colors.cyan,
|
|
5817
|
-
capitalized: colors.yellow,
|
|
5818
|
-
jsxIdentifier: colors.yellow,
|
|
5819
|
-
punctuator: colors.yellow,
|
|
5820
|
-
number: colors.magenta,
|
|
5821
|
-
string: colors.green,
|
|
5822
|
-
regex: colors.magenta,
|
|
5823
|
-
comment: colors.gray,
|
|
5824
|
-
invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
|
|
5825
|
-
gutter: colors.gray,
|
|
5826
|
-
marker: compose(colors.red, colors.bold),
|
|
5827
|
-
message: compose(colors.red, colors.bold),
|
|
5828
|
-
reset: colors.reset
|
|
5829
|
-
};
|
|
5830
|
-
}
|
|
5831
|
-
const defsOn = buildDefs(picocolors.createColors(true));
|
|
5832
|
-
const defsOff = buildDefs(picocolors.createColors(false));
|
|
5833
|
-
function getDefs(enabled) {
|
|
5834
|
-
return enabled ? defsOn : defsOff;
|
|
5835
|
-
}
|
|
5836
|
-
const sometimesKeywords = /* @__PURE__ */ new Set([
|
|
5837
|
-
"as",
|
|
5838
|
-
"async",
|
|
5839
|
-
"from",
|
|
5840
|
-
"get",
|
|
5841
|
-
"of",
|
|
5842
|
-
"set"
|
|
5843
|
-
]);
|
|
5844
|
-
const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
|
|
5845
|
-
const BRACKET = /^[()[\]{}]$/;
|
|
5846
|
-
let tokenize;
|
|
5847
|
-
const JSX_TAG = /^[a-z][\w-]*$/i;
|
|
5848
|
-
const getTokenType = function(token, offset, text) {
|
|
5849
|
-
if (token.type === "name") {
|
|
5850
|
-
const tokenValue = token.value;
|
|
5851
|
-
if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) return "keyword";
|
|
5852
|
-
if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) return "jsxIdentifier";
|
|
5853
|
-
const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
|
|
5854
|
-
if (firstChar !== firstChar.toLowerCase()) return "capitalized";
|
|
5855
|
-
}
|
|
5856
|
-
if (token.type === "punctuator" && BRACKET.test(token.value)) return "bracket";
|
|
5857
|
-
if (token.type === "invalid" && (token.value === "@" || token.value === "#")) return "punctuator";
|
|
5858
|
-
return token.type;
|
|
5859
|
-
};
|
|
5860
|
-
tokenize = function* (text) {
|
|
5861
|
-
let match;
|
|
5862
|
-
while (match = jsTokens.default.exec(text)) {
|
|
5863
|
-
const token = jsTokens.matchToToken(match);
|
|
5864
|
-
yield {
|
|
5865
|
-
type: getTokenType(token, match.index, text),
|
|
5866
|
-
value: token.value
|
|
5867
|
-
};
|
|
5868
|
-
}
|
|
5869
|
-
};
|
|
5870
|
-
function highlight(text) {
|
|
5871
|
-
if (text === "") return "";
|
|
5872
|
-
const defs = getDefs(true);
|
|
5873
|
-
let highlighted = "";
|
|
5874
|
-
for (const { type, value } of tokenize(text)) if (type in defs) highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join("\n");
|
|
5875
|
-
else highlighted += value;
|
|
5876
|
-
return highlighted;
|
|
5877
|
-
}
|
|
5878
|
-
let deprecationWarningShown = false;
|
|
5879
|
-
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
5880
|
-
function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
|
5881
|
-
const startLoc = Object.assign({
|
|
5882
|
-
column: 0,
|
|
5883
|
-
line: -1
|
|
5884
|
-
}, loc.start);
|
|
5885
|
-
const endLoc = Object.assign({}, startLoc, loc.end);
|
|
5886
|
-
const { linesAbove = 2, linesBelow = 3 } = opts || {};
|
|
5887
|
-
const startLine = startLoc.line - startLineBaseZero;
|
|
5888
|
-
const startColumn = startLoc.column;
|
|
5889
|
-
const endLine = endLoc.line - startLineBaseZero;
|
|
5890
|
-
const endColumn = endLoc.column;
|
|
5891
|
-
let start = Math.max(startLine - (linesAbove + 1), 0);
|
|
5892
|
-
let end = Math.min(source.length, endLine + linesBelow);
|
|
5893
|
-
if (startLine === -1) start = 0;
|
|
5894
|
-
if (endLine === -1) end = source.length;
|
|
5895
|
-
const lineDiff = endLine - startLine;
|
|
5896
|
-
const markerLines = {};
|
|
5897
|
-
if (lineDiff) for (let i = 0; i <= lineDiff; i++) {
|
|
5898
|
-
const lineNumber = i + startLine;
|
|
5899
|
-
if (!startColumn) markerLines[lineNumber] = true;
|
|
5900
|
-
else if (i === 0) markerLines[lineNumber] = [startColumn, source[lineNumber - 1].length - startColumn + 1];
|
|
5901
|
-
else if (i === lineDiff) markerLines[lineNumber] = [0, endColumn];
|
|
5902
|
-
else markerLines[lineNumber] = [0, source[lineNumber - i].length];
|
|
5903
|
-
}
|
|
5904
|
-
else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [startColumn, 0];
|
|
5905
|
-
else markerLines[startLine] = true;
|
|
5906
|
-
else markerLines[startLine] = [startColumn, endColumn - startColumn];
|
|
5907
|
-
return {
|
|
5908
|
-
start,
|
|
5909
|
-
end,
|
|
5910
|
-
markerLines
|
|
5911
|
-
};
|
|
5912
|
-
}
|
|
5913
|
-
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
5914
|
-
const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
|
5915
|
-
const startLineBaseZero = (opts.startLine || 1) - 1;
|
|
5916
|
-
const defs = getDefs(shouldHighlight);
|
|
5917
|
-
const { start, end, markerLines } = getMarkerLines(loc, rawLines.split(NEWLINE), opts, startLineBaseZero);
|
|
5918
|
-
const hasColumns = loc.start && typeof loc.start.column === "number";
|
|
5919
|
-
const numberMaxWidth = String(end + startLineBaseZero).length;
|
|
5920
|
-
let frame = (shouldHighlight ? highlight(rawLines) : rawLines).split(NEWLINE, end).slice(start, end).map((line, index) => {
|
|
5921
|
-
const number = start + 1 + index;
|
|
5922
|
-
const gutter = ` ${` ${number + startLineBaseZero}`.slice(-numberMaxWidth)} |`;
|
|
5923
|
-
const hasMarker = markerLines[number];
|
|
5924
|
-
const lastMarkerLine = !markerLines[number + 1];
|
|
5925
|
-
if (hasMarker) {
|
|
5926
|
-
let markerLine = "";
|
|
5927
|
-
if (Array.isArray(hasMarker)) {
|
|
5928
|
-
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
|
5929
|
-
const numberOfMarkers = hasMarker[1] || 1;
|
|
5930
|
-
markerLine = [
|
|
5931
|
-
"\n ",
|
|
5932
|
-
defs.gutter(gutter.replace(/\d/g, " ")),
|
|
5933
|
-
" ",
|
|
5934
|
-
markerSpacing,
|
|
5935
|
-
defs.marker("^").repeat(numberOfMarkers)
|
|
5936
|
-
].join("");
|
|
5937
|
-
if (lastMarkerLine && opts.message) markerLine += " " + defs.message(opts.message);
|
|
5938
|
-
}
|
|
5939
|
-
return [
|
|
5940
|
-
defs.marker(">"),
|
|
5941
|
-
defs.gutter(gutter),
|
|
5942
|
-
line.length > 0 ? ` ${line}` : "",
|
|
5943
|
-
markerLine
|
|
5944
|
-
].join("");
|
|
5945
|
-
} else return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
|
5946
|
-
}).join("\n");
|
|
5947
|
-
if (opts.message && !hasColumns) frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
|
5948
|
-
if (shouldHighlight) return defs.reset(frame);
|
|
5949
|
-
else return frame;
|
|
5950
|
-
}
|
|
5951
|
-
function index(rawLines, lineNumber, colNumber, opts = {}) {
|
|
5952
|
-
if (!deprecationWarningShown) {
|
|
5953
|
-
deprecationWarningShown = true;
|
|
5954
|
-
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
|
5955
|
-
if (process.emitWarning) process.emitWarning(message, "DeprecationWarning");
|
|
5956
|
-
else {
|
|
5957
|
-
const deprecationError = /* @__PURE__ */ new Error(message);
|
|
5958
|
-
deprecationError.name = "DeprecationWarning";
|
|
5959
|
-
console.warn(/* @__PURE__ */ new Error(message));
|
|
5960
|
-
}
|
|
5961
|
-
}
|
|
5962
|
-
colNumber = Math.max(colNumber, 0);
|
|
5963
|
-
return codeFrameColumns(rawLines, { start: {
|
|
5964
|
-
column: colNumber,
|
|
5965
|
-
line: lineNumber
|
|
5966
|
-
} }, opts);
|
|
5967
|
-
}
|
|
5968
|
-
exports.codeFrameColumns = codeFrameColumns;
|
|
5969
|
-
exports.default = index;
|
|
5970
|
-
exports.highlight = highlight;
|
|
5971
|
-
}));
|
|
5972
|
-
//#endregion
|
|
5973
|
-
//#region ../../node_modules/.pnpm/parse-json@5.2.0/node_modules/parse-json/index.js
|
|
5974
|
-
var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5975
|
-
const errorEx = require_error_ex();
|
|
5976
|
-
const fallback = require_json_parse_even_better_errors();
|
|
5977
|
-
const { default: LinesAndColumns } = require_build();
|
|
5978
|
-
const { codeFrameColumns } = require_lib();
|
|
5979
|
-
const JSONError = errorEx("JSONError", {
|
|
5980
|
-
fileName: errorEx.append("in %s"),
|
|
5981
|
-
codeFrame: errorEx.append("\n\n%s\n")
|
|
5982
|
-
});
|
|
5983
|
-
const parseJson = (string, reviver, filename) => {
|
|
5984
|
-
if (typeof reviver === "string") {
|
|
5985
|
-
filename = reviver;
|
|
5986
|
-
reviver = null;
|
|
5987
|
-
}
|
|
5988
|
-
try {
|
|
5989
|
-
try {
|
|
5990
|
-
return JSON.parse(string, reviver);
|
|
5991
|
-
} catch (error) {
|
|
5992
|
-
fallback(string, reviver);
|
|
5993
|
-
throw error;
|
|
5994
|
-
}
|
|
5995
|
-
} catch (error) {
|
|
5996
|
-
error.message = error.message.replace(/\n/g, "");
|
|
5997
|
-
const indexMatch = error.message.match(/in JSON at position (\d+) while parsing/);
|
|
5998
|
-
const jsonError = new JSONError(error);
|
|
5999
|
-
if (filename) jsonError.fileName = filename;
|
|
6000
|
-
if (indexMatch && indexMatch.length > 0) {
|
|
6001
|
-
const lines = new LinesAndColumns(string);
|
|
6002
|
-
const index = Number(indexMatch[1]);
|
|
6003
|
-
const location = lines.locationForIndex(index);
|
|
6004
|
-
jsonError.codeFrame = codeFrameColumns(string, { start: {
|
|
6005
|
-
line: location.line + 1,
|
|
6006
|
-
column: location.column + 1
|
|
6007
|
-
} }, { highlightCode: true });
|
|
6008
|
-
}
|
|
6009
|
-
throw jsonError;
|
|
6010
|
-
}
|
|
6011
|
-
};
|
|
6012
|
-
parseJson.JSONError = JSONError;
|
|
6013
|
-
module.exports = parseJson;
|
|
6014
|
-
}));
|
|
6015
|
-
//#endregion
|
|
6016
4332
|
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
|
|
6017
4333
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6018
4334
|
function isNothing(subject) {
|
|
@@ -6720,8 +5036,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6720
5036
|
let pairHasKey = false;
|
|
6721
5037
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
6722
5038
|
let pairKey;
|
|
6723
|
-
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey))
|
|
6724
|
-
|
|
5039
|
+
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) {
|
|
5040
|
+
if (!pairHasKey) pairHasKey = true;
|
|
5041
|
+
else return false;
|
|
5042
|
+
}
|
|
6725
5043
|
if (!pairHasKey) return false;
|
|
6726
5044
|
if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
|
|
6727
5045
|
else return false;
|
|
@@ -7061,9 +5379,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7061
5379
|
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
|
|
7062
5380
|
keyNode = String(keyNode);
|
|
7063
5381
|
if (_result === null) _result = {};
|
|
7064
|
-
if (keyTag === "tag:yaml.org,2002:merge")
|
|
7065
|
-
|
|
7066
|
-
|
|
5382
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
5383
|
+
if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
5384
|
+
else mergeMappings(state, _result, valueNode, overridableKeys);
|
|
5385
|
+
} else {
|
|
7067
5386
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
7068
5387
|
state.line = startLine || state.line;
|
|
7069
5388
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -7348,14 +5667,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7348
5667
|
state.result = "";
|
|
7349
5668
|
while (ch !== 0) {
|
|
7350
5669
|
ch = state.input.charCodeAt(++state.position);
|
|
7351
|
-
if (ch === 43 || ch === 45)
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
else if (
|
|
7355
|
-
|
|
7356
|
-
detectedIndent
|
|
7357
|
-
|
|
7358
|
-
|
|
5670
|
+
if (ch === 43 || ch === 45) {
|
|
5671
|
+
if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
5672
|
+
else throwError(state, "repeat of a chomping mode identifier");
|
|
5673
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
5674
|
+
if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
5675
|
+
else if (!detectedIndent) {
|
|
5676
|
+
textIndent = nodeIndent + tmp - 1;
|
|
5677
|
+
detectedIndent = true;
|
|
5678
|
+
} else throwError(state, "repeat of an indentation width identifier");
|
|
5679
|
+
} else break;
|
|
7359
5680
|
}
|
|
7360
5681
|
if (isWhiteSpace(ch)) {
|
|
7361
5682
|
do
|
|
@@ -7386,16 +5707,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7386
5707
|
}
|
|
7387
5708
|
break;
|
|
7388
5709
|
}
|
|
7389
|
-
if (folding)
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
atMoreIndented
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
if (
|
|
7397
|
-
|
|
7398
|
-
|
|
5710
|
+
if (folding) {
|
|
5711
|
+
if (isWhiteSpace(ch)) {
|
|
5712
|
+
atMoreIndented = true;
|
|
5713
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
5714
|
+
} else if (atMoreIndented) {
|
|
5715
|
+
atMoreIndented = false;
|
|
5716
|
+
state.result += common.repeat("\n", emptyLines + 1);
|
|
5717
|
+
} else if (emptyLines === 0) {
|
|
5718
|
+
if (didReadContent) state.result += " ";
|
|
5719
|
+
} else state.result += common.repeat("\n", emptyLines);
|
|
5720
|
+
} else state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
7399
5721
|
didReadContent = true;
|
|
7400
5722
|
detectedIndent = true;
|
|
7401
5723
|
emptyLines = 0;
|
|
@@ -7524,8 +5846,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7524
5846
|
_keyLineStart = state.lineStart;
|
|
7525
5847
|
_keyPos = state.position;
|
|
7526
5848
|
}
|
|
7527
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
7528
|
-
|
|
5849
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
5850
|
+
if (atExplicitKey) keyNode = state.result;
|
|
5851
|
+
else valueNode = state.result;
|
|
5852
|
+
}
|
|
7529
5853
|
if (!atExplicitKey) {
|
|
7530
5854
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
7531
5855
|
keyTag = keyNode = valueNode = null;
|
|
@@ -7573,12 +5897,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7573
5897
|
} else throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
7574
5898
|
} else {
|
|
7575
5899
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
7576
|
-
if (ch === 33)
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
5900
|
+
if (ch === 33) {
|
|
5901
|
+
if (!isNamed) {
|
|
5902
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
5903
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
|
|
5904
|
+
isNamed = true;
|
|
5905
|
+
_position = state.position + 1;
|
|
5906
|
+
} else throwError(state, "tag suffix cannot contain exclamation marks");
|
|
5907
|
+
}
|
|
7582
5908
|
ch = state.input.charCodeAt(++state.position);
|
|
7583
5909
|
}
|
|
7584
5910
|
tagName = state.input.slice(_position, state.position);
|
|
@@ -7682,21 +6008,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7682
6008
|
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
|
|
7683
6009
|
else flowIndent = parentIndent + 1;
|
|
7684
6010
|
blockIndent = state.position - state.lineStart;
|
|
7685
|
-
if (indentStatus === 1)
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
6011
|
+
if (indentStatus === 1) {
|
|
6012
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
|
|
6013
|
+
else {
|
|
6014
|
+
const ch = state.input.charCodeAt(state.position);
|
|
6015
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
|
|
6016
|
+
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
|
|
6017
|
+
else if (readAlias(state)) {
|
|
6018
|
+
hasContent = true;
|
|
6019
|
+
if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
|
|
6020
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
6021
|
+
hasContent = true;
|
|
6022
|
+
if (state.tag === null) state.tag = "?";
|
|
6023
|
+
}
|
|
6024
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7696
6025
|
}
|
|
7697
|
-
|
|
7698
|
-
}
|
|
7699
|
-
else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
6026
|
+
} else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
7700
6027
|
}
|
|
7701
6028
|
if (state.tag === null) {
|
|
7702
6029
|
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
@@ -8202,8 +6529,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8202
6529
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
8203
6530
|
if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
|
|
8204
6531
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
8205
|
-
if (explicitPair)
|
|
8206
|
-
|
|
6532
|
+
if (explicitPair) {
|
|
6533
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
|
|
6534
|
+
else pairBuffer += "? ";
|
|
6535
|
+
}
|
|
8207
6536
|
pairBuffer += state.dump;
|
|
8208
6537
|
if (explicitPair) pairBuffer += generateNextLine(state, level);
|
|
8209
6538
|
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue;
|
|
@@ -8220,9 +6549,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8220
6549
|
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
8221
6550
|
const type = typeList[index];
|
|
8222
6551
|
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
8223
|
-
if (explicit)
|
|
8224
|
-
|
|
8225
|
-
|
|
6552
|
+
if (explicit) {
|
|
6553
|
+
if (type.multi && type.representName) state.tag = type.representName(object);
|
|
6554
|
+
else state.tag = type.tag;
|
|
6555
|
+
} else state.tag = "?";
|
|
8226
6556
|
if (type.represent) {
|
|
8227
6557
|
const style = state.styleMap[type.tag] || type.defaultStyle;
|
|
8228
6558
|
let _result;
|
|
@@ -8254,22 +6584,24 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8254
6584
|
if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex;
|
|
8255
6585
|
else {
|
|
8256
6586
|
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
|
|
8257
|
-
if (type === "[object Object]")
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
6587
|
+
if (type === "[object Object]") {
|
|
6588
|
+
if (block && Object.keys(state.dump).length !== 0) {
|
|
6589
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
6590
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6591
|
+
} else {
|
|
6592
|
+
writeFlowMapping(state, level, state.dump);
|
|
6593
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6594
|
+
}
|
|
6595
|
+
} else if (type === "[object Array]") {
|
|
6596
|
+
if (block && state.dump.length !== 0) {
|
|
6597
|
+
if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
|
|
6598
|
+
else writeBlockSequence(state, level, state.dump, compact);
|
|
6599
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6600
|
+
} else {
|
|
6601
|
+
writeFlowSequence(state, level, state.dump);
|
|
6602
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6603
|
+
}
|
|
6604
|
+
} else if (type === "[object String]") {
|
|
8273
6605
|
if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock);
|
|
8274
6606
|
} else if (type === "[object Undefined]") return false;
|
|
8275
6607
|
else {
|
|
@@ -8360,22 +6692,15 @@ var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8360
6692
|
module.exports.safeDump = renamed("safeDump", "dump");
|
|
8361
6693
|
}));
|
|
8362
6694
|
//#endregion
|
|
8363
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
6695
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/loaders.js
|
|
8364
6696
|
var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8365
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
8366
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
8367
|
-
};
|
|
8368
6697
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8369
|
-
exports.
|
|
8370
|
-
const fs_1$2 = __require("fs");
|
|
6698
|
+
exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
|
|
8371
6699
|
const promises_1$1 = __require("fs/promises");
|
|
8372
|
-
const path_1$3 = __importDefault(__require("path"));
|
|
8373
6700
|
const url_1 = __require("url");
|
|
8374
|
-
const crypto_1 = __require("crypto");
|
|
8375
|
-
let importFresh;
|
|
8376
6701
|
exports.loadJsSync = function loadJsSync(filepath) {
|
|
8377
|
-
|
|
8378
|
-
return
|
|
6702
|
+
delete __require.cache[__require.resolve(filepath)];
|
|
6703
|
+
return __require(filepath);
|
|
8379
6704
|
};
|
|
8380
6705
|
exports.loadJs = async function loadJs(filepath) {
|
|
8381
6706
|
try {
|
|
@@ -8391,11 +6716,9 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8391
6716
|
}
|
|
8392
6717
|
}
|
|
8393
6718
|
};
|
|
8394
|
-
let parseJson;
|
|
8395
6719
|
exports.loadJson = function loadJson(filepath, content) {
|
|
8396
|
-
if (parseJson === void 0) parseJson = require_parse_json();
|
|
8397
6720
|
try {
|
|
8398
|
-
return
|
|
6721
|
+
return JSON.parse(content);
|
|
8399
6722
|
} catch (error) {
|
|
8400
6723
|
error.message = `JSON Error in ${filepath}:\n${error.message}`;
|
|
8401
6724
|
throw error;
|
|
@@ -8411,73 +6734,12 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8411
6734
|
throw error;
|
|
8412
6735
|
}
|
|
8413
6736
|
};
|
|
8414
|
-
let typescript;
|
|
8415
|
-
exports.loadTsSync = function loadTsSync(filepath, content) {
|
|
8416
|
-
/* istanbul ignore next -- @preserve */
|
|
8417
|
-
if (typescript === void 0) typescript = __require("typescript");
|
|
8418
|
-
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.cjs`;
|
|
8419
|
-
try {
|
|
8420
|
-
const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
|
|
8421
|
-
config.compilerOptions = {
|
|
8422
|
-
...config.compilerOptions,
|
|
8423
|
-
module: typescript.ModuleKind.NodeNext,
|
|
8424
|
-
moduleResolution: typescript.ModuleResolutionKind.NodeNext,
|
|
8425
|
-
target: typescript.ScriptTarget.ES2022,
|
|
8426
|
-
noEmit: false
|
|
8427
|
-
};
|
|
8428
|
-
content = typescript.transpileModule(content, config).outputText;
|
|
8429
|
-
(0, fs_1$2.writeFileSync)(compiledFilepath, content);
|
|
8430
|
-
return (0, exports.loadJsSync)(compiledFilepath, content).default;
|
|
8431
|
-
} catch (error) {
|
|
8432
|
-
error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
|
|
8433
|
-
throw error;
|
|
8434
|
-
} finally {
|
|
8435
|
-
if ((0, fs_1$2.existsSync)(compiledFilepath)) (0, fs_1$2.rmSync)(compiledFilepath);
|
|
8436
|
-
}
|
|
8437
|
-
};
|
|
8438
|
-
exports.loadTs = async function loadTs(filepath, content) {
|
|
8439
|
-
if (typescript === void 0) typescript = (await import("typescript")).default;
|
|
8440
|
-
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.mjs`;
|
|
8441
|
-
let transpiledContent;
|
|
8442
|
-
try {
|
|
8443
|
-
try {
|
|
8444
|
-
const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
|
|
8445
|
-
config.compilerOptions = {
|
|
8446
|
-
...config.compilerOptions,
|
|
8447
|
-
module: typescript.ModuleKind.ES2022,
|
|
8448
|
-
moduleResolution: typescript.ModuleResolutionKind.Bundler,
|
|
8449
|
-
target: typescript.ScriptTarget.ES2022,
|
|
8450
|
-
noEmit: false
|
|
8451
|
-
};
|
|
8452
|
-
transpiledContent = typescript.transpileModule(content, config).outputText;
|
|
8453
|
-
await (0, promises_1$1.writeFile)(compiledFilepath, transpiledContent);
|
|
8454
|
-
} catch (error) {
|
|
8455
|
-
error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
|
|
8456
|
-
throw error;
|
|
8457
|
-
}
|
|
8458
|
-
return await (0, exports.loadJs)(compiledFilepath, transpiledContent);
|
|
8459
|
-
} finally {
|
|
8460
|
-
if ((0, fs_1$2.existsSync)(compiledFilepath)) await (0, promises_1$1.rm)(compiledFilepath);
|
|
8461
|
-
}
|
|
8462
|
-
};
|
|
8463
|
-
function resolveTsConfig(directory) {
|
|
8464
|
-
const filePath = typescript.findConfigFile(directory, (fileName) => {
|
|
8465
|
-
return typescript.sys.fileExists(fileName);
|
|
8466
|
-
});
|
|
8467
|
-
if (filePath !== void 0) {
|
|
8468
|
-
const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
|
|
8469
|
-
if (error) throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
|
|
8470
|
-
return config;
|
|
8471
|
-
}
|
|
8472
|
-
}
|
|
8473
6737
|
}));
|
|
8474
6738
|
//#endregion
|
|
8475
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
6739
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/defaults.js
|
|
8476
6740
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8477
6741
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8478
|
-
exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = void 0;
|
|
8479
|
-
exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
|
|
8480
|
-
exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
|
|
6742
|
+
exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
|
|
8481
6743
|
const loaders_1 = require_loaders();
|
|
8482
6744
|
function getDefaultSearchPlaces(moduleName) {
|
|
8483
6745
|
return [
|
|
@@ -8504,6 +6766,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8504
6766
|
`${moduleName}.config.mjs`
|
|
8505
6767
|
];
|
|
8506
6768
|
}
|
|
6769
|
+
exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
|
|
8507
6770
|
function getDefaultSearchPlacesSync(moduleName) {
|
|
8508
6771
|
return [
|
|
8509
6772
|
"package.json",
|
|
@@ -8526,6 +6789,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8526
6789
|
`${moduleName}.config.cjs`
|
|
8527
6790
|
];
|
|
8528
6791
|
}
|
|
6792
|
+
exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
|
|
8529
6793
|
exports.globalConfigSearchPlaces = [
|
|
8530
6794
|
"config",
|
|
8531
6795
|
"config.json",
|
|
@@ -8560,7 +6824,9 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8560
6824
|
".mjs": loaders_1.loadJs,
|
|
8561
6825
|
".cjs": loaders_1.loadJs,
|
|
8562
6826
|
".js": loaders_1.loadJs,
|
|
8563
|
-
".ts": loaders_1.
|
|
6827
|
+
".ts": loaders_1.loadJs,
|
|
6828
|
+
".cts": loaders_1.loadJs,
|
|
6829
|
+
".mts": loaders_1.loadJs,
|
|
8564
6830
|
".json": loaders_1.loadJson,
|
|
8565
6831
|
".yaml": loaders_1.loadYaml,
|
|
8566
6832
|
".yml": loaders_1.loadYaml,
|
|
@@ -8569,7 +6835,8 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8569
6835
|
exports.defaultLoadersSync = Object.freeze({
|
|
8570
6836
|
".cjs": loaders_1.loadJsSync,
|
|
8571
6837
|
".js": loaders_1.loadJsSync,
|
|
8572
|
-
".
|
|
6838
|
+
".cts": loaders_1.loadJsSync,
|
|
6839
|
+
".ts": loaders_1.loadJsSync,
|
|
8573
6840
|
".json": loaders_1.loadJson,
|
|
8574
6841
|
".yaml": loaders_1.loadYaml,
|
|
8575
6842
|
".yml": loaders_1.loadYaml,
|
|
@@ -8627,7 +6894,7 @@ var require_env_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8627
6894
|
module.exports.default = envPaths;
|
|
8628
6895
|
}));
|
|
8629
6896
|
//#endregion
|
|
8630
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
6897
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/util.js
|
|
8631
6898
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8632
6899
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
8633
6900
|
if (k2 === void 0) k2 = k;
|
|
@@ -8651,31 +6918,17 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8651
6918
|
}) : function(o, v) {
|
|
8652
6919
|
o["default"] = v;
|
|
8653
6920
|
});
|
|
8654
|
-
var __importStar = exports && exports.__importStar ||
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
return function(mod) {
|
|
8664
|
-
if (mod && mod.__esModule) return mod;
|
|
8665
|
-
var result = {};
|
|
8666
|
-
if (mod != null) {
|
|
8667
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
8668
|
-
}
|
|
8669
|
-
__setModuleDefault(result, mod);
|
|
8670
|
-
return result;
|
|
8671
|
-
};
|
|
8672
|
-
})();
|
|
6921
|
+
var __importStar = exports && exports.__importStar || function(mod) {
|
|
6922
|
+
if (mod && mod.__esModule) return mod;
|
|
6923
|
+
var result = {};
|
|
6924
|
+
if (mod != null) {
|
|
6925
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
6926
|
+
}
|
|
6927
|
+
__setModuleDefault(result, mod);
|
|
6928
|
+
return result;
|
|
6929
|
+
};
|
|
8673
6930
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8674
|
-
exports.emplace =
|
|
8675
|
-
exports.getPropertyByPath = getPropertyByPath;
|
|
8676
|
-
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
8677
|
-
exports.isDirectory = isDirectory;
|
|
8678
|
-
exports.isDirectorySync = isDirectorySync;
|
|
6931
|
+
exports.isDirectorySync = exports.isDirectory = exports.removeUndefinedValuesFromObject = exports.decodeFileContent = exports.getPropertyByPath = exports.emplace = void 0;
|
|
8679
6932
|
const fs_1$1 = __importStar(__require("fs"));
|
|
8680
6933
|
/**
|
|
8681
6934
|
* @internal
|
|
@@ -8687,6 +6940,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8687
6940
|
map.set(key, result);
|
|
8688
6941
|
return result;
|
|
8689
6942
|
}
|
|
6943
|
+
exports.emplace = emplace;
|
|
8690
6944
|
/**
|
|
8691
6945
|
* @internal
|
|
8692
6946
|
*/
|
|
@@ -8697,10 +6951,19 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8697
6951
|
return previous[key];
|
|
8698
6952
|
}, source);
|
|
8699
6953
|
}
|
|
6954
|
+
exports.getPropertyByPath = getPropertyByPath;
|
|
6955
|
+
/** @internal */
|
|
6956
|
+
function decodeFileContent(buffer) {
|
|
6957
|
+
if (buffer[0] === 255 && buffer[1] === 254) return new TextDecoder("utf-16le").decode(buffer);
|
|
6958
|
+
if (buffer[0] === 254 && buffer[1] === 255) return new TextDecoder("utf-16be").decode(buffer);
|
|
6959
|
+
return buffer.toString("utf-8");
|
|
6960
|
+
}
|
|
6961
|
+
exports.decodeFileContent = decodeFileContent;
|
|
8700
6962
|
/** @internal */
|
|
8701
6963
|
function removeUndefinedValuesFromObject(options) {
|
|
8702
6964
|
return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
|
|
8703
6965
|
}
|
|
6966
|
+
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
8704
6967
|
/** @internal */
|
|
8705
6968
|
/* istanbul ignore next -- @preserve */
|
|
8706
6969
|
async function isDirectory(path) {
|
|
@@ -8711,6 +6974,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8711
6974
|
throw e;
|
|
8712
6975
|
}
|
|
8713
6976
|
}
|
|
6977
|
+
exports.isDirectory = isDirectory;
|
|
8714
6978
|
/** @internal */
|
|
8715
6979
|
/* istanbul ignore next -- @preserve */
|
|
8716
6980
|
function isDirectorySync(path) {
|
|
@@ -8721,16 +6985,16 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8721
6985
|
throw e;
|
|
8722
6986
|
}
|
|
8723
6987
|
}
|
|
6988
|
+
exports.isDirectorySync = isDirectorySync;
|
|
8724
6989
|
}));
|
|
8725
6990
|
//#endregion
|
|
8726
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
6991
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerBase.js
|
|
8727
6992
|
var require_ExplorerBase = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8728
6993
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
8729
6994
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
8730
6995
|
};
|
|
8731
6996
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8732
|
-
exports.ExplorerBase = void 0;
|
|
8733
|
-
exports.getExtensionDescription = getExtensionDescription;
|
|
6997
|
+
exports.getExtensionDescription = exports.ExplorerBase = void 0;
|
|
8734
6998
|
const env_paths_1 = __importDefault(require_env_paths());
|
|
8735
6999
|
const os_1 = __importDefault(__require("os"));
|
|
8736
7000
|
const path_1$2 = __importDefault(__require("path"));
|
|
@@ -8842,13 +7106,13 @@ ${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (
|
|
|
8842
7106
|
/* istanbul ignore next -- @preserve */
|
|
8843
7107
|
return extension ? `extension "${extension}"` : "files without extensions";
|
|
8844
7108
|
}
|
|
7109
|
+
exports.getExtensionDescription = getExtensionDescription;
|
|
8845
7110
|
}));
|
|
8846
7111
|
//#endregion
|
|
8847
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7112
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/merge.js
|
|
8848
7113
|
var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8849
7114
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8850
|
-
exports.hasOwn = void 0;
|
|
8851
|
-
exports.mergeAll = mergeAll;
|
|
7115
|
+
exports.mergeAll = exports.hasOwn = void 0;
|
|
8852
7116
|
exports.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
|
|
8853
7117
|
const objToString = Function.prototype.call.bind(Object.prototype.toString);
|
|
8854
7118
|
function isPlainObject(obj) {
|
|
@@ -8880,9 +7144,10 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8880
7144
|
function mergeAll(objects, options) {
|
|
8881
7145
|
return objects.reduce((target, source) => merge(target, source, options), {});
|
|
8882
7146
|
}
|
|
7147
|
+
exports.mergeAll = mergeAll;
|
|
8883
7148
|
}));
|
|
8884
7149
|
//#endregion
|
|
8885
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7150
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/Explorer.js
|
|
8886
7151
|
var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8887
7152
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
8888
7153
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -8941,7 +7206,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8941
7206
|
return await search();
|
|
8942
7207
|
}
|
|
8943
7208
|
async #readConfiguration(filepath, importStack = []) {
|
|
8944
|
-
const contents = await promises_1.default.readFile(filepath
|
|
7209
|
+
const contents = (0, util_js_1.decodeFileContent)(await promises_1.default.readFile(filepath));
|
|
8945
7210
|
return this.toCosmiconfigResult(filepath, await this.#loadConfigFileWithImports(filepath, contents, importStack));
|
|
8946
7211
|
}
|
|
8947
7212
|
async #loadConfigFileWithImports(filepath, contents, importStack) {
|
|
@@ -9017,7 +7282,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9017
7282
|
exports.Explorer = Explorer;
|
|
9018
7283
|
}));
|
|
9019
7284
|
//#endregion
|
|
9020
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7285
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerSync.js
|
|
9021
7286
|
var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9022
7287
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
9023
7288
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -9076,7 +7341,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9076
7341
|
return search();
|
|
9077
7342
|
}
|
|
9078
7343
|
#readConfiguration(filepath, importStack = []) {
|
|
9079
|
-
const contents = fs_1.default.readFileSync(filepath
|
|
7344
|
+
const contents = (0, util_js_1.decodeFileContent)(fs_1.default.readFileSync(filepath));
|
|
9080
7345
|
return this.toCosmiconfigResult(filepath, this.#loadConfigFileWithImports(filepath, contents, importStack));
|
|
9081
7346
|
}
|
|
9082
7347
|
#loadConfigFileWithImports(filepath, contents, importStack) {
|
|
@@ -9166,11 +7431,10 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9166
7431
|
exports.ExplorerSync = ExplorerSync;
|
|
9167
7432
|
}));
|
|
9168
7433
|
//#endregion
|
|
9169
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7434
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/index.js
|
|
9170
7435
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9171
7436
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9172
|
-
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
|
|
9173
|
-
exports.cosmiconfig = cosmiconfig;
|
|
7437
|
+
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
|
|
9174
7438
|
const defaults_1 = require_defaults();
|
|
9175
7439
|
Object.defineProperty(exports, "defaultLoaders", {
|
|
9176
7440
|
enumerable: true,
|
|
@@ -9244,7 +7508,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9244
7508
|
function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
|
|
9245
7509
|
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
|
|
9246
7510
|
if (userConfiguredOptions.mergeSearchPlaces) return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
|
|
9247
|
-
return userConfiguredSearchPlaces ??
|
|
7511
|
+
return userConfiguredSearchPlaces ??
|
|
7512
|
+
/* istanbul ignore next */ toolDefinedSearchPlaces;
|
|
9248
7513
|
}
|
|
9249
7514
|
function mergeOptionsBase(moduleName, defaults, options) {
|
|
9250
7515
|
const userDefinedConfig = getUserDefinedOptionsFromMetaConfig();
|
|
@@ -9288,6 +7553,21 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9288
7553
|
searchStrategy: options.stopDir ? "global" : "none"
|
|
9289
7554
|
}, options);
|
|
9290
7555
|
}
|
|
7556
|
+
function mergeOptionsSync(moduleName, options) {
|
|
7557
|
+
validateOptions(options);
|
|
7558
|
+
return mergeOptionsBase(moduleName, {
|
|
7559
|
+
moduleName,
|
|
7560
|
+
searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
|
|
7561
|
+
ignoreEmptySearchPlaces: true,
|
|
7562
|
+
cache: true,
|
|
7563
|
+
transform: identity,
|
|
7564
|
+
loaders: defaults_1.defaultLoadersSync,
|
|
7565
|
+
metaConfigFilePath: null,
|
|
7566
|
+
mergeImportArrays: true,
|
|
7567
|
+
mergeSearchPlaces: true,
|
|
7568
|
+
searchStrategy: options.stopDir ? "global" : "none"
|
|
7569
|
+
}, options);
|
|
7570
|
+
}
|
|
9291
7571
|
function cosmiconfig(moduleName, options = {}) {
|
|
9292
7572
|
const normalizedOptions = mergeOptions(moduleName, options);
|
|
9293
7573
|
const explorer = new Explorer_js_1.Explorer(normalizedOptions);
|
|
@@ -9299,6 +7579,19 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9299
7579
|
clearCaches: explorer.clearCaches.bind(explorer)
|
|
9300
7580
|
};
|
|
9301
7581
|
}
|
|
7582
|
+
exports.cosmiconfig = cosmiconfig;
|
|
7583
|
+
function cosmiconfigSync(moduleName, options = {}) {
|
|
7584
|
+
const normalizedOptions = mergeOptionsSync(moduleName, options);
|
|
7585
|
+
const explorerSync = new ExplorerSync_js_1.ExplorerSync(normalizedOptions);
|
|
7586
|
+
return {
|
|
7587
|
+
search: explorerSync.search.bind(explorerSync),
|
|
7588
|
+
load: explorerSync.load.bind(explorerSync),
|
|
7589
|
+
clearLoadCache: explorerSync.clearLoadCache.bind(explorerSync),
|
|
7590
|
+
clearSearchCache: explorerSync.clearSearchCache.bind(explorerSync),
|
|
7591
|
+
clearCaches: explorerSync.clearCaches.bind(explorerSync)
|
|
7592
|
+
};
|
|
7593
|
+
}
|
|
7594
|
+
exports.cosmiconfigSync = cosmiconfigSync;
|
|
9302
7595
|
}));
|
|
9303
7596
|
//#endregion
|
|
9304
7597
|
//#region src/lib/ruleCommandRegistry.ts
|
|
@@ -9418,12 +7711,16 @@ function deprecatedRuleConfigAliases(configKey) {
|
|
|
9418
7711
|
var import_dist = require_dist();
|
|
9419
7712
|
const configState = {
|
|
9420
7713
|
config: void 0,
|
|
9421
|
-
/**
|
|
7714
|
+
/**
|
|
7715
|
+
In-flight root load so concurrent callers share one cosmiconfig search.
|
|
7716
|
+
*/
|
|
9422
7717
|
loadPromise: void 0,
|
|
9423
7718
|
rootConfigPath: void 0
|
|
9424
7719
|
};
|
|
9425
7720
|
const workspaceConfigCache = /* @__PURE__ */ new Map();
|
|
9426
|
-
/**
|
|
7721
|
+
/**
|
|
7722
|
+
In-flight workspace loads — concurrent jobs for the same dir share one search.
|
|
7723
|
+
*/
|
|
9427
7724
|
const workspaceConfigLoadPromises = /* @__PURE__ */ new Map();
|
|
9428
7725
|
const deprecationWarned = /* @__PURE__ */ new Set();
|
|
9429
7726
|
function isRecord(value) {
|
|
@@ -9491,7 +7788,9 @@ async function loadWorkspaceConfig(workspaceDir) {
|
|
|
9491
7788
|
workspaceConfigLoadPromises.delete(workspaceDir);
|
|
9492
7789
|
}
|
|
9493
7790
|
}
|
|
9494
|
-
/**
|
|
7791
|
+
/**
|
|
7792
|
+
Deprecated top-level fields that should be under `commands`.
|
|
7793
|
+
*/
|
|
9495
7794
|
const DEPRECATED_COMMAND_FIELDS = /* @__PURE__ */ new Set(["deplint", "publint"]);
|
|
9496
7795
|
function warnOnce(key, message) {
|
|
9497
7796
|
if (deprecationWarned.has(key)) return;
|
|
@@ -9606,7 +7905,7 @@ const range = (a, b, str) => {
|
|
|
9606
7905
|
return result;
|
|
9607
7906
|
};
|
|
9608
7907
|
//#endregion
|
|
9609
|
-
//#region ../../node_modules/.pnpm/brace-expansion@5.0.
|
|
7908
|
+
//#region ../../node_modules/.pnpm/brace-expansion@5.0.9/node_modules/brace-expansion/dist/esm/index.js
|
|
9610
7909
|
const escSlash = "\0SLASH" + Math.random() + "\0";
|
|
9611
7910
|
const escOpen = "\0OPEN" + Math.random() + "\0";
|
|
9612
7911
|
const escClose = "\0CLOSE" + Math.random() + "\0";
|
|
@@ -9623,6 +7922,7 @@ const closePattern = /\\}/g;
|
|
|
9623
7922
|
const commaPattern = /\\,/g;
|
|
9624
7923
|
const periodPattern = /\\\./g;
|
|
9625
7924
|
const EXPANSION_MAX = 1e5;
|
|
7925
|
+
const EXPANSION_MAX_LENGTH = 4e6;
|
|
9626
7926
|
function numeric(str) {
|
|
9627
7927
|
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
|
9628
7928
|
}
|
|
@@ -9655,9 +7955,9 @@ function parseCommaParts(str) {
|
|
|
9655
7955
|
}
|
|
9656
7956
|
function expand(str, options = {}) {
|
|
9657
7957
|
if (!str) return [];
|
|
9658
|
-
const { max = EXPANSION_MAX } = options;
|
|
7958
|
+
const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
|
|
9659
7959
|
if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
|
|
9660
|
-
return expand_(escapeBraces(str), max, true).map(unescapeBraces);
|
|
7960
|
+
return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
|
|
9661
7961
|
}
|
|
9662
7962
|
function embrace(str) {
|
|
9663
7963
|
return "{" + str + "}";
|
|
@@ -9671,20 +7971,72 @@ function lte(i, y) {
|
|
|
9671
7971
|
function gte(i, y) {
|
|
9672
7972
|
return i >= y;
|
|
9673
7973
|
}
|
|
9674
|
-
function
|
|
9675
|
-
|
|
9676
|
-
|
|
7974
|
+
function combine(acc, pre, values, max, maxLength, dropEmpties) {
|
|
7975
|
+
const out = [];
|
|
7976
|
+
let length = 0;
|
|
7977
|
+
for (let a = 0; a < acc.length; a++) for (let v = 0; v < values.length; v++) {
|
|
7978
|
+
if (out.length >= max) return out;
|
|
7979
|
+
const expansion = acc[a] + pre + values[v];
|
|
7980
|
+
if (dropEmpties && !expansion) continue;
|
|
7981
|
+
if (length + expansion.length > maxLength) return out;
|
|
7982
|
+
out.push(expansion);
|
|
7983
|
+
length += expansion.length;
|
|
7984
|
+
}
|
|
7985
|
+
return out;
|
|
7986
|
+
}
|
|
7987
|
+
function expandSequence(body, isAlphaSequence, max, maxLength) {
|
|
7988
|
+
const n = body.split(/\.\./);
|
|
7989
|
+
const N = [];
|
|
7990
|
+
/* c8 ignore start */
|
|
7991
|
+
if (n[0] === void 0 || n[1] === void 0) return N;
|
|
7992
|
+
/* c8 ignore stop */
|
|
7993
|
+
const x = numeric(n[0]);
|
|
7994
|
+
const y = numeric(n[1]);
|
|
7995
|
+
const width = Math.max(n[0].length, n[1].length);
|
|
7996
|
+
let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
7997
|
+
let test = lte;
|
|
7998
|
+
if (y < x) {
|
|
7999
|
+
incr *= -1;
|
|
8000
|
+
test = gte;
|
|
8001
|
+
}
|
|
8002
|
+
const pad = n.some(isPadded);
|
|
8003
|
+
let length = 0;
|
|
8004
|
+
for (let i = x; test(i, y) && N.length < max; i += incr) {
|
|
8005
|
+
let c;
|
|
8006
|
+
if (isAlphaSequence) {
|
|
8007
|
+
c = String.fromCharCode(i);
|
|
8008
|
+
if (c === "\\") c = "";
|
|
8009
|
+
} else {
|
|
8010
|
+
c = String(i);
|
|
8011
|
+
if (pad) {
|
|
8012
|
+
const need = width - c.length;
|
|
8013
|
+
if (need > 0) {
|
|
8014
|
+
const z = new Array(need + 1).join("0");
|
|
8015
|
+
if (i < 0) c = "-" + z + c.slice(1);
|
|
8016
|
+
else c = z + c;
|
|
8017
|
+
}
|
|
8018
|
+
}
|
|
8019
|
+
}
|
|
8020
|
+
if (length + c.length > maxLength) break;
|
|
8021
|
+
N.push(c);
|
|
8022
|
+
length += c.length;
|
|
8023
|
+
}
|
|
8024
|
+
return N;
|
|
8025
|
+
}
|
|
8026
|
+
function expand_(str, max, maxLength, isTop) {
|
|
8027
|
+
let acc = [""];
|
|
8028
|
+
let dropEmpties = false;
|
|
8029
|
+
let firstGroup = true;
|
|
9677
8030
|
for (;;) {
|
|
9678
8031
|
const m = balanced("{", "}", str);
|
|
9679
|
-
if (!m) return [
|
|
8032
|
+
if (!m) return combine(acc, str, [""], max, maxLength, dropEmpties);
|
|
9680
8033
|
const pre = m.pre;
|
|
9681
|
-
if (/\$$/.test(
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
return expansions;
|
|
8034
|
+
if (/\$$/.test(pre)) {
|
|
8035
|
+
acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
|
|
8036
|
+
firstGroup = false;
|
|
8037
|
+
if (!m.post.length) break;
|
|
8038
|
+
str = m.post;
|
|
8039
|
+
continue;
|
|
9688
8040
|
}
|
|
9689
8041
|
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
9690
8042
|
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
@@ -9696,70 +8048,56 @@ function expand_(str, max, isTop) {
|
|
|
9696
8048
|
isTop = true;
|
|
9697
8049
|
continue;
|
|
9698
8050
|
}
|
|
9699
|
-
return [
|
|
8051
|
+
return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
|
|
9700
8052
|
}
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
|
|
8053
|
+
if (firstGroup) {
|
|
8054
|
+
dropEmpties = isTop && !isSequence;
|
|
8055
|
+
firstGroup = false;
|
|
8056
|
+
}
|
|
8057
|
+
let values;
|
|
8058
|
+
if (isSequence) values = expandSequence(m.body, isAlphaSequence, max, maxLength);
|
|
9704
8059
|
else {
|
|
9705
|
-
n = parseCommaParts(m.body);
|
|
8060
|
+
let n = parseCommaParts(m.body);
|
|
9706
8061
|
if (n.length === 1 && n[0] !== void 0) {
|
|
9707
|
-
n = expand_(n[0], max, false).map(embrace);
|
|
8062
|
+
n = expand_(n[0], max, maxLength, false).map(embrace);
|
|
9708
8063
|
/* c8 ignore start */
|
|
9709
|
-
if (n.length === 1)
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
let
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
c = String.fromCharCode(i);
|
|
9729
|
-
if (c === "\\") c = "";
|
|
9730
|
-
} else {
|
|
9731
|
-
c = String(i);
|
|
9732
|
-
if (pad) {
|
|
9733
|
-
const need = width - c.length;
|
|
9734
|
-
if (need > 0) {
|
|
9735
|
-
const z = new Array(need + 1).join("0");
|
|
9736
|
-
if (i < 0) c = "-" + z + c.slice(1);
|
|
9737
|
-
else c = z + c;
|
|
9738
|
-
}
|
|
9739
|
-
}
|
|
8064
|
+
if (n.length === 1) {
|
|
8065
|
+
acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
|
|
8066
|
+
if (!m.post.length) break;
|
|
8067
|
+
str = m.post;
|
|
8068
|
+
continue;
|
|
8069
|
+
}
|
|
8070
|
+
}
|
|
8071
|
+
let dropsEmpties = dropEmpties && !m.post.length && !pre;
|
|
8072
|
+
for (let d = 0; dropsEmpties && d < acc.length; d++) if (acc[d]) dropsEmpties = false;
|
|
8073
|
+
values = [];
|
|
8074
|
+
let valuesLength = 0;
|
|
8075
|
+
outer: for (let j = 0; j < n.length; j++) {
|
|
8076
|
+
const expanded = expand_(n[j], max, maxLength, false);
|
|
8077
|
+
for (let k = 0; k < expanded.length; k++) {
|
|
8078
|
+
const v = expanded[k];
|
|
8079
|
+
if (dropsEmpties && !v) continue;
|
|
8080
|
+
if (values.length >= max || valuesLength + v.length > maxLength) break outer;
|
|
8081
|
+
values.push(v);
|
|
8082
|
+
valuesLength += v.length;
|
|
9740
8083
|
}
|
|
9741
|
-
N.push(c);
|
|
9742
8084
|
}
|
|
9743
|
-
} else {
|
|
9744
|
-
N = [];
|
|
9745
|
-
for (let j = 0; j < n.length; j++) N.push.apply(N, expand_(n[j], max, false));
|
|
9746
|
-
}
|
|
9747
|
-
for (let j = 0; j < N.length; j++) for (let k = 0; k < post.length && expansions.length < max; k++) {
|
|
9748
|
-
const expansion = pre + N[j] + post[k];
|
|
9749
|
-
if (!isTop || isSequence || expansion) expansions.push(expansion);
|
|
9750
8085
|
}
|
|
9751
|
-
|
|
8086
|
+
acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
|
|
8087
|
+
if (!m.post.length) break;
|
|
8088
|
+
str = m.post;
|
|
9752
8089
|
}
|
|
8090
|
+
return acc;
|
|
9753
8091
|
}
|
|
9754
8092
|
//#endregion
|
|
9755
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
9756
|
-
const MAX_PATTERN_LENGTH =
|
|
8093
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
8094
|
+
const MAX_PATTERN_LENGTH = 65536;
|
|
9757
8095
|
const assertValidPattern = (pattern) => {
|
|
9758
8096
|
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
9759
8097
|
if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
|
|
9760
8098
|
};
|
|
9761
8099
|
//#endregion
|
|
9762
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
8100
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
9763
8101
|
const posixClasses = {
|
|
9764
8102
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
9765
8103
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -9883,7 +8221,7 @@ const parseClass = (glob, position) => {
|
|
|
9883
8221
|
];
|
|
9884
8222
|
};
|
|
9885
8223
|
//#endregion
|
|
9886
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
8224
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
|
|
9887
8225
|
/**
|
|
9888
8226
|
* Un-escape a string that has been escaped with {@link escape}.
|
|
9889
8227
|
*
|
|
@@ -9908,7 +8246,7 @@ const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}
|
|
|
9908
8246
|
return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
|
|
9909
8247
|
};
|
|
9910
8248
|
//#endregion
|
|
9911
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
8249
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
|
|
9912
8250
|
var _a;
|
|
9913
8251
|
const types = /* @__PURE__ */ new Set([
|
|
9914
8252
|
"!",
|
|
@@ -10417,7 +8755,7 @@ var AST = class {
|
|
|
10417
8755
|
};
|
|
10418
8756
|
_a = AST;
|
|
10419
8757
|
//#endregion
|
|
10420
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
8758
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
|
|
10421
8759
|
/**
|
|
10422
8760
|
* Escape all magic characters in a glob pattern.
|
|
10423
8761
|
*
|
|
@@ -10435,7 +8773,7 @@ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {})
|
|
|
10435
8773
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
10436
8774
|
};
|
|
10437
8775
|
//#endregion
|
|
10438
|
-
//#region ../../node_modules/.pnpm/minimatch@10.2.
|
|
8776
|
+
//#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
|
|
10439
8777
|
const minimatch = (p, pattern, options = {}) => {
|
|
10440
8778
|
assertValidPattern(pattern);
|
|
10441
8779
|
if (!options.nocomment && pattern.charAt(0) === "#") return false;
|
|
@@ -10987,9 +9325,10 @@ var Minimatch = class {
|
|
|
10987
9325
|
const next = pp[i + 1];
|
|
10988
9326
|
const prev = pp[i - 1];
|
|
10989
9327
|
if (p !== GLOBSTAR || prev === GLOBSTAR) return;
|
|
10990
|
-
if (prev === void 0)
|
|
10991
|
-
|
|
10992
|
-
|
|
9328
|
+
if (prev === void 0) {
|
|
9329
|
+
if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
|
|
9330
|
+
else pp[i] = twoStar;
|
|
9331
|
+
} else if (next === void 0) pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
|
|
10993
9332
|
else if (next !== GLOBSTAR) {
|
|
10994
9333
|
pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
10995
9334
|
pp[i + 1] = GLOBSTAR;
|
|
@@ -11063,7 +9402,9 @@ function makeMatcher(pattern, options = {}) {
|
|
|
11063
9402
|
const patterns = Array.isArray(pattern) ? pattern : [pattern];
|
|
11064
9403
|
return (input) => patterns.some((p) => minimatch(input, p, options));
|
|
11065
9404
|
}
|
|
11066
|
-
/**
|
|
9405
|
+
/**
|
|
9406
|
+
Convenience one-shot test: `isMatch(input, pattern)`.
|
|
9407
|
+
*/
|
|
11067
9408
|
function isMatch(input, pattern, options = {}) {
|
|
11068
9409
|
return makeMatcher(pattern, options)(input);
|
|
11069
9410
|
}
|
|
@@ -11103,7 +9444,7 @@ function runGit(rootDir, args) {
|
|
|
11103
9444
|
...args
|
|
11104
9445
|
], {
|
|
11105
9446
|
encoding: "utf8",
|
|
11106
|
-
maxBuffer:
|
|
9447
|
+
maxBuffer: 33554432
|
|
11107
9448
|
});
|
|
11108
9449
|
return {
|
|
11109
9450
|
status: result.status,
|
|
@@ -11154,7 +9495,9 @@ const gitCleanGitignoreBackend = {
|
|
|
11154
9495
|
return paths;
|
|
11155
9496
|
}
|
|
11156
9497
|
};
|
|
11157
|
-
/**
|
|
9498
|
+
/**
|
|
9499
|
+
Batch-check which absolute paths are gitignored.
|
|
9500
|
+
*/
|
|
11158
9501
|
function filterGitIgnoredPaths(rootDir, absPaths, backend = gitCleanGitignoreBackend) {
|
|
11159
9502
|
const ignored = [];
|
|
11160
9503
|
const notIgnored = [];
|
|
@@ -11234,7 +9577,9 @@ function parseCleanRuleLevel(location, setting, defaultLevel) {
|
|
|
11234
9577
|
if (typeof setting === "object" && setting !== null && !Array.isArray(setting)) return levelFromObject(location, setting, defaultLevel);
|
|
11235
9578
|
throw new TypeError(`${location} must be a rule level, boolean, [level, options], or { level?, enabled? } object`);
|
|
11236
9579
|
}
|
|
11237
|
-
/**
|
|
9580
|
+
/**
|
|
9581
|
+
Hard safety rules — always enforced; cannot be disabled via config.
|
|
9582
|
+
*/
|
|
11238
9583
|
const CLEAN_HARD_RULES = [{
|
|
11239
9584
|
description: "Patterns must resolve strictly inside the monorepo root (never the root itself or outside it)",
|
|
11240
9585
|
id: "clean.inside-root"
|
|
@@ -11256,7 +9601,9 @@ const CLEAN_CONFIGURABLE_RULES = [{
|
|
|
11256
9601
|
}];
|
|
11257
9602
|
const CONFIGURABLE_RULE_IDS = new Set(CLEAN_CONFIGURABLE_RULES.map((rule) => rule.id));
|
|
11258
9603
|
const HARD_RULE_IDS = new Set(CLEAN_HARD_RULES.map((rule) => rule.id));
|
|
11259
|
-
/**
|
|
9604
|
+
/**
|
|
9605
|
+
Immutable exclude entries — always skipped by clean, cannot be overridden.
|
|
9606
|
+
*/
|
|
11260
9607
|
const CLEAN_IMMUTABLE_EXCLUDE = [
|
|
11261
9608
|
".git",
|
|
11262
9609
|
"**/.git",
|
|
@@ -11295,7 +9642,9 @@ function resolveCleanRules(config) {
|
|
|
11295
9642
|
gitignoredOnly: level("clean.gitignored-only", rules["clean.gitignored-only"])
|
|
11296
9643
|
};
|
|
11297
9644
|
}
|
|
11298
|
-
/**
|
|
9645
|
+
/**
|
|
9646
|
+
Merge exclude patterns (deduped, order preserved).
|
|
9647
|
+
*/
|
|
11299
9648
|
function resolveCleanExclude(config, mode = "normal") {
|
|
11300
9649
|
if (mode === "immutable-only") return [...CLEAN_IMMUTABLE_EXCLUDE];
|
|
11301
9650
|
const merged = [
|
|
@@ -11318,7 +9667,9 @@ function resolveCleanPatterns(config) {
|
|
|
11318
9667
|
//#endregion
|
|
11319
9668
|
//#region src/actions/package/cleanPlan.ts
|
|
11320
9669
|
init_index_min();
|
|
11321
|
-
/**
|
|
9670
|
+
/**
|
|
9671
|
+
Built-in clean targets — always cleaned (bypass gitignored-only).
|
|
9672
|
+
*/
|
|
11322
9673
|
const BUILTIN_CLEAN_PATTERNS = ["dist", "build"];
|
|
11323
9674
|
function excludeModeForFull(fullMode) {
|
|
11324
9675
|
return fullMode === "full-all" ? "immutable-only" : "normal";
|
|
@@ -11498,7 +9849,9 @@ const packageCleanOutputs = async (options = {}) => {
|
|
|
11498
9849
|
};
|
|
11499
9850
|
//#endregion
|
|
11500
9851
|
//#region src/actions/package/clean-typescript.ts
|
|
11501
|
-
/**
|
|
9852
|
+
/**
|
|
9853
|
+
Cleans TypeScript build info and local lint caches for a package.
|
|
9854
|
+
*/
|
|
11502
9855
|
const packageCleanTypescript = (options = {}) => {
|
|
11503
9856
|
const pkg = options.pkg ?? INIT_CWD();
|
|
11504
9857
|
const pkgName = options.pkgName ?? packageName();
|