@storm-software/git-tools 2.83.4 → 2.84.1
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/README.md +1 -1
- package/bin/git/index.cjs +779 -605
- package/bin/git/index.js +806 -632
- package/bin/post-checkout/index.cjs +620 -446
- package/bin/post-checkout/index.js +631 -457
- package/bin/post-commit/index.cjs +620 -446
- package/bin/post-commit/index.js +631 -457
- package/bin/post-merge/index.cjs +620 -446
- package/bin/post-merge/index.js +631 -457
- package/bin/pre-commit/index.cjs +618 -444
- package/bin/pre-commit/index.js +629 -455
- package/bin/pre-install/index.cjs +620 -446
- package/bin/pre-install/index.js +631 -457
- package/bin/pre-push/index.cjs +620 -446
- package/bin/pre-push/index.js +631 -457
- package/bin/prepare/index.cjs +620 -446
- package/bin/prepare/index.js +631 -457
- package/bin/version-warning/index.cjs +618 -444
- package/bin/version-warning/index.js +629 -455
- package/package.json +1 -1
package/bin/git/index.cjs
CHANGED
|
@@ -34,9 +34,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
34
|
));
|
|
35
35
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
36
|
|
|
37
|
-
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.
|
|
37
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/cjs_shims.js
|
|
38
38
|
var init_cjs_shims = __esm({
|
|
39
|
-
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
|
|
@@ -2346,30 +2346,30 @@ var require_jiti = __commonJS({
|
|
|
2346
2346
|
__name(dist_joinURL, "dist_joinURL");
|
|
2347
2347
|
Symbol.for("ufo:protocolRelative");
|
|
2348
2348
|
Object.defineProperty;
|
|
2349
|
-
const
|
|
2350
|
-
function
|
|
2351
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
2349
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
2350
|
+
function normalizeWindowsPath3(input = "") {
|
|
2351
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
2352
2352
|
}
|
|
2353
|
-
__name(
|
|
2354
|
-
const
|
|
2353
|
+
__name(normalizeWindowsPath3, "normalizeWindowsPath");
|
|
2354
|
+
const _UNC_REGEX3 = /^[/\\]{2}/, _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/, pathe_ff20891b_normalize = /* @__PURE__ */ __name(function(path6) {
|
|
2355
2355
|
if (0 === path6.length) return ".";
|
|
2356
|
-
const isUNCPath = (path6 =
|
|
2357
|
-
return 0 === (path6 =
|
|
2358
|
-
}, "pathe_ff20891b_normalize"),
|
|
2356
|
+
const isUNCPath = (path6 = normalizeWindowsPath3(path6)).match(_UNC_REGEX3), isPathAbsolute = isAbsolute4(path6), trailingSeparator = "/" === path6[path6.length - 1];
|
|
2357
|
+
return 0 === (path6 = normalizeString3(path6, !isPathAbsolute)).length ? isPathAbsolute ? "/" : trailingSeparator ? "./" : "." : (trailingSeparator && (path6 += "/"), _DRIVE_LETTER_RE3.test(path6) && (path6 += "/"), isUNCPath ? isPathAbsolute ? `//${path6}` : `//./${path6}` : isPathAbsolute && !isAbsolute4(path6) ? `/${path6}` : path6);
|
|
2358
|
+
}, "pathe_ff20891b_normalize"), join10 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
2359
2359
|
if (0 === arguments_.length) return ".";
|
|
2360
2360
|
let joined;
|
|
2361
2361
|
for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
|
|
2362
2362
|
return void 0 === joined ? "." : pathe_ff20891b_normalize(joined.replace(/\/\/+/g, "/"));
|
|
2363
2363
|
}, "join");
|
|
2364
|
-
const
|
|
2364
|
+
const resolve4 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
2365
2365
|
let resolvedPath = "", resolvedAbsolute = false;
|
|
2366
|
-
for (let index = (arguments_ = arguments_.map((argument) =>
|
|
2366
|
+
for (let index = (arguments_ = arguments_.map((argument) => normalizeWindowsPath3(argument))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
2367
2367
|
const path6 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
|
|
2368
|
-
path6 && 0 !== path6.length && (resolvedPath = `${path6}/${resolvedPath}`, resolvedAbsolute =
|
|
2368
|
+
path6 && 0 !== path6.length && (resolvedPath = `${path6}/${resolvedPath}`, resolvedAbsolute = isAbsolute4(path6));
|
|
2369
2369
|
}
|
|
2370
|
-
return resolvedPath =
|
|
2370
|
+
return resolvedPath = normalizeString3(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute4(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
2371
2371
|
}, "resolve");
|
|
2372
|
-
function
|
|
2372
|
+
function normalizeString3(path6, allowAboveRoot) {
|
|
2373
2373
|
let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
|
|
2374
2374
|
for (let index = 0; index <= path6.length; ++index) {
|
|
2375
2375
|
if (index < path6.length) char = path6[index];
|
|
@@ -2398,17 +2398,17 @@ var require_jiti = __commonJS({
|
|
|
2398
2398
|
}
|
|
2399
2399
|
return res;
|
|
2400
2400
|
}
|
|
2401
|
-
__name(
|
|
2402
|
-
const
|
|
2403
|
-
return
|
|
2404
|
-
}, "isAbsolute"), _EXTNAME_RE2 = /.(\.[^./]+)$/,
|
|
2405
|
-
const match = _EXTNAME_RE2.exec(
|
|
2401
|
+
__name(normalizeString3, "normalizeString");
|
|
2402
|
+
const isAbsolute4 = /* @__PURE__ */ __name(function(p2) {
|
|
2403
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
2404
|
+
}, "isAbsolute"), _EXTNAME_RE2 = /.(\.[^./]+)$/, extname5 = /* @__PURE__ */ __name(function(p2) {
|
|
2405
|
+
const match = _EXTNAME_RE2.exec(normalizeWindowsPath3(p2));
|
|
2406
2406
|
return match && match[1] || "";
|
|
2407
2407
|
}, "extname"), pathe_ff20891b_dirname = /* @__PURE__ */ __name(function(p2) {
|
|
2408
|
-
const segments =
|
|
2409
|
-
return 1 === segments.length &&
|
|
2410
|
-
}, "pathe_ff20891b_dirname"),
|
|
2411
|
-
const lastSegment =
|
|
2408
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
2409
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute4(p2) ? "/" : ".");
|
|
2410
|
+
}, "pathe_ff20891b_dirname"), basename3 = /* @__PURE__ */ __name(function(p2, extension) {
|
|
2411
|
+
const lastSegment = normalizeWindowsPath3(p2).split("/").pop();
|
|
2412
2412
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
2413
2413
|
}, "basename"), external_node_url_namespaceObject = require("url"), external_node_assert_namespaceObject = require("assert"), external_node_process_namespaceObject = require("process"), external_node_path_namespaceObject = require("path"), external_node_v8_namespaceObject = require("v8"), external_node_util_namespaceObject = require("util"), BUILTIN_MODULES2 = new Set(external_node_module_namespaceObject.builtinModules);
|
|
2414
2414
|
function normalizeSlash2(path6) {
|
|
@@ -2559,8 +2559,8 @@ var require_jiti = __commonJS({
|
|
|
2559
2559
|
const packageType = getPackageType2(url);
|
|
2560
2560
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
2561
2561
|
}
|
|
2562
|
-
const
|
|
2563
|
-
if (
|
|
2562
|
+
const format4 = extensionFormatMap2[value2];
|
|
2563
|
+
if (format4) return format4;
|
|
2564
2564
|
if (ignoreErrors) return;
|
|
2565
2565
|
const filepath = (0, external_node_url_namespaceObject.fileURLToPath)(url);
|
|
2566
2566
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -2577,11 +2577,11 @@ var require_jiti = __commonJS({
|
|
|
2577
2577
|
__name(emitInvalidSegmentDeprecation2, "emitInvalidSegmentDeprecation");
|
|
2578
2578
|
function emitLegacyIndexDeprecation2(url, packageJsonUrl, base, main) {
|
|
2579
2579
|
if (external_node_process_namespaceObject.noDeprecation) return;
|
|
2580
|
-
const
|
|
2580
|
+
const format4 = function(url2, context) {
|
|
2581
2581
|
const protocol = url2.protocol;
|
|
2582
2582
|
return dist_hasOwnProperty.call(protocolHandlers2, protocol) && protocolHandlers2[protocol](url2, context, true) || null;
|
|
2583
2583
|
}(url, { parentURL: base.href });
|
|
2584
|
-
if ("module" !==
|
|
2584
|
+
if ("module" !== format4) return;
|
|
2585
2585
|
const urlPath = (0, external_node_url_namespaceObject.fileURLToPath)(url.href), packagePath = (0, external_node_url_namespaceObject.fileURLToPath)(new external_node_url_namespaceObject.URL(".", packageJsonUrl)), basePath = (0, external_node_url_namespaceObject.fileURLToPath)(base);
|
|
2586
2586
|
main ? external_node_path_namespaceObject.resolve(packagePath, main) !== urlPath && external_node_process_namespaceObject.emitWarning(`Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(packagePath.length)}", imported from ${basePath}.
|
|
2587
2587
|
Automatic extension resolution of the "main" field is deprecated for ES modules.`, "DeprecationWarning", "DEP0151") : external_node_process_namespaceObject.emitWarning(`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(packagePath.length)}", imported from ${basePath}.
|
|
@@ -2896,7 +2896,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2896
2896
|
}
|
|
2897
2897
|
if (/(node|data|http|https):/.test(id)) return id;
|
|
2898
2898
|
if (BUILTIN_MODULES2.has(id)) return "node:" + id;
|
|
2899
|
-
if (id.startsWith("file://") && (id = fileURLToPath4(id)),
|
|
2899
|
+
if (id.startsWith("file://") && (id = fileURLToPath4(id)), isAbsolute4(id)) try {
|
|
2900
2900
|
if ((0, external_node_fs_namespaceObject.statSync)(id).isFile()) return pathToFileURL2(id);
|
|
2901
2901
|
} catch (error) {
|
|
2902
2902
|
if ("ENOENT" !== error?.code) throw error;
|
|
@@ -3010,8 +3010,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3010
3010
|
const debugMap = { true: green("true"), false: yellow("false"), "[esm]": blue("[esm]"), "[cjs]": green("[cjs]"), "[import]": blue("[import]"), "[require]": green("[require]"), "[native]": cyan("[native]"), "[transpile]": yellow("[transpile]"), "[fallback]": red("[fallback]"), "[unknown]": red("[unknown]"), "[hit]": green("[hit]"), "[miss]": yellow("[miss]"), "[json]": green("[json]"), "[data]": green("[data]") };
|
|
3011
3011
|
function debug3(ctx, ...args) {
|
|
3012
3012
|
if (!ctx.opts.debug) return;
|
|
3013
|
-
const
|
|
3014
|
-
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(
|
|
3013
|
+
const cwd3 = process.cwd();
|
|
3014
|
+
console.log(gray(["[jiti]", ...args.map((arg) => arg in debugMap ? debugMap[arg] : "string" != typeof arg ? JSON.stringify(arg) : arg.replace(cwd3, "."))].join(" ")));
|
|
3015
3015
|
}
|
|
3016
3016
|
__name(debug3, "debug");
|
|
3017
3017
|
function jitiInteropDefault(ctx, mod) {
|
|
@@ -3053,17 +3053,17 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3053
3053
|
let resolved, lastError;
|
|
3054
3054
|
if (ctx.isNativeRe.test(id)) return id;
|
|
3055
3055
|
ctx.alias && (id = function(path6, aliases2) {
|
|
3056
|
-
const _path =
|
|
3056
|
+
const _path = normalizeWindowsPath3(path6);
|
|
3057
3057
|
aliases2 = normalizeAliases(aliases2);
|
|
3058
3058
|
for (const [alias, to] of Object.entries(aliases2)) {
|
|
3059
3059
|
if (!_path.startsWith(alias)) continue;
|
|
3060
3060
|
const _alias = utils_hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
|
|
3061
|
-
if (utils_hasTrailingSlash(_path[_alias.length])) return
|
|
3061
|
+
if (utils_hasTrailingSlash(_path[_alias.length])) return join10(to, _path.slice(alias.length));
|
|
3062
3062
|
}
|
|
3063
3063
|
return _path;
|
|
3064
3064
|
}(id, ctx.alias));
|
|
3065
3065
|
let parentURL = options?.parentURL || ctx.url;
|
|
3066
|
-
isDir(parentURL) && (parentURL =
|
|
3066
|
+
isDir(parentURL) && (parentURL = join10(parentURL, "_index.js"));
|
|
3067
3067
|
const conditionSets = (options?.async ? [options?.conditions, ["node", "import"], ["node", "require"]] : [options?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
|
|
3068
3068
|
for (const conditions of conditionSets) {
|
|
3069
3069
|
try {
|
|
@@ -3115,7 +3115,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3115
3115
|
}
|
|
3116
3116
|
const filename = jitiResolve(ctx, id, opts);
|
|
3117
3117
|
if (!filename && opts.try) return;
|
|
3118
|
-
const ext =
|
|
3118
|
+
const ext = extname5(filename);
|
|
3119
3119
|
if (".json" === ext) {
|
|
3120
3120
|
debug3(ctx, "[json]", filename);
|
|
3121
3121
|
const jsonModule = ctx.nativeRequire(filename);
|
|
@@ -3134,7 +3134,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3134
3134
|
__name(jitiRequire, "jitiRequire");
|
|
3135
3135
|
function nativeImportOrRequire(ctx, id, async) {
|
|
3136
3136
|
return async && ctx.nativeImport ? ctx.nativeImport(function(id2) {
|
|
3137
|
-
return _7 &&
|
|
3137
|
+
return _7 && isAbsolute4(id2) ? pathToFileURL2(id2) : id2;
|
|
3138
3138
|
}(id)).then((m3) => jitiInteropDefault(ctx, m3)) : jitiInteropDefault(ctx, ctx.nativeRequire(id));
|
|
3139
3139
|
}
|
|
3140
3140
|
__name(nativeImportOrRequire, "nativeImportOrRequire");
|
|
@@ -3143,11 +3143,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3143
3143
|
if (!ctx.opts.fsCache || !topts.filename) return get2();
|
|
3144
3144
|
const sourceHash = ` /* v${CACHE_VERSION}-${md5(topts.source, 16)} */
|
|
3145
3145
|
`;
|
|
3146
|
-
let cacheName = `${
|
|
3146
|
+
let cacheName = `${basename3(pathe_ff20891b_dirname(topts.filename))}-${function(path6) {
|
|
3147
3147
|
return path6.match(FILENAME_RE)?.[2];
|
|
3148
3148
|
}(topts.filename)}` + (ctx.opts.sourceMaps ? "+map" : "") + (topts.interopDefault ? ".i" : "") + `.${md5(topts.filename)}` + (topts.async ? ".mjs" : ".cjs");
|
|
3149
3149
|
topts.jsx && topts.filename.endsWith("x") && (cacheName += "x");
|
|
3150
|
-
const cacheDir = ctx.opts.fsCache, cacheFilePath =
|
|
3150
|
+
const cacheDir = ctx.opts.fsCache, cacheFilePath = join10(cacheDir, cacheName);
|
|
3151
3151
|
if ((0, external_node_fs_namespaceObject.existsSync)(cacheFilePath)) {
|
|
3152
3152
|
const cacheSource = (0, external_node_fs_namespaceObject.readFileSync)(cacheFilePath, "utf8");
|
|
3153
3153
|
if (cacheSource.endsWith(sourceHash)) return debug3(ctx, "[cache]", "[hit]", topts.filename, "~>", cacheFilePath), cacheSource;
|
|
@@ -3159,14 +3159,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3159
3159
|
__name(getCache, "getCache");
|
|
3160
3160
|
function prepareCacheDir(ctx) {
|
|
3161
3161
|
if (true === ctx.opts.fsCache && (ctx.opts.fsCache = function(ctx2) {
|
|
3162
|
-
const nmDir = ctx2.filename &&
|
|
3163
|
-
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return
|
|
3162
|
+
const nmDir = ctx2.filename && resolve4(ctx2.filename, "../node_modules");
|
|
3163
|
+
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join10(nmDir, ".cache/jiti");
|
|
3164
3164
|
let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
|
|
3165
3165
|
if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
|
|
3166
3166
|
const _env = process.env.TMPDIR;
|
|
3167
3167
|
delete process.env.TMPDIR, _tmpDir = (0, external_node_os_namespaceObject.tmpdir)(), process.env.TMPDIR = _env;
|
|
3168
3168
|
}
|
|
3169
|
-
return
|
|
3169
|
+
return join10(_tmpDir, "jiti");
|
|
3170
3170
|
}(ctx)), ctx.opts.fsCache) try {
|
|
3171
3171
|
if ((0, external_node_fs_namespaceObject.mkdirSync)(ctx.opts.fsCache, { recursive: true }), !function(filename) {
|
|
3172
3172
|
try {
|
|
@@ -3189,11 +3189,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3189
3189
|
}
|
|
3190
3190
|
__name(transform3, "transform");
|
|
3191
3191
|
function eval_evalModule(ctx, source, evalOptions = {}) {
|
|
3192
|
-
const id = evalOptions.id || (evalOptions.filename ?
|
|
3192
|
+
const id = evalOptions.id || (evalOptions.filename ? basename3(evalOptions.filename) : `_jitiEval.${evalOptions.ext || (evalOptions.async ? "mjs" : "js")}`), filename = evalOptions.filename || jitiResolve(ctx, id, { async: evalOptions.async }), ext = evalOptions.ext || extname5(filename), cache3 = evalOptions.cache || ctx.parentCache || {}, isTypescript = /\.[cm]?tsx?$/.test(ext), isESM = ".mjs" === ext || ".js" === ext && "module" === function(path6) {
|
|
3193
3193
|
for (; path6 && "." !== path6 && "/" !== path6; ) {
|
|
3194
|
-
path6 =
|
|
3194
|
+
path6 = join10(path6, "..");
|
|
3195
3195
|
try {
|
|
3196
|
-
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(
|
|
3196
|
+
const pkg = (0, external_node_fs_namespaceObject.readFileSync)(join10(path6, "package.json"), "utf8");
|
|
3197
3197
|
try {
|
|
3198
3198
|
return JSON.parse(pkg);
|
|
3199
3199
|
} catch {
|
|
@@ -3259,7 +3259,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3259
3259
|
const deprecatOverrides = {};
|
|
3260
3260
|
return void 0 !== userOptions2.cache && (deprecatOverrides.fsCache = userOptions2.cache), void 0 !== userOptions2.requireCache && (deprecatOverrides.moduleCache = userOptions2.requireCache), { ...jitiDefaults, ...deprecatOverrides, ...userOptions2 };
|
|
3261
3261
|
}(userOptions), alias = opts.alias && Object.keys(opts.alias).length > 0 ? normalizeAliases(opts.alias || {}) : void 0, nativeModules = ["typescript", "jiti", ...opts.nativeModules || []], isNativeRe = new RegExp(`node_modules/(${nativeModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`), transformModules = [...opts.transformModules || []], isTransformRe = new RegExp(`node_modules/(${transformModules.map((m3) => escapeStringRegexp(m3)).join("|")})/`);
|
|
3262
|
-
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename =
|
|
3262
|
+
filename || (filename = process.cwd()), !isNested && isDir(filename) && (filename = join10(filename, "_index.js"));
|
|
3263
3263
|
const url = pathToFileURL2(filename), additionalExts = [...opts.extensions].filter((ext) => ".js" !== ext), nativeRequire = parentContext.createRequire(isWindows ? filename.replace(/\//g, "\\") : filename), ctx = { filename, url, opts, alias, nativeModules, transformModules, isNativeRe, isTransformRe, additionalExts, nativeRequire, onError: parentContext.onError, parentModule: parentContext.parentModule, parentCache: parentContext.parentCache, nativeImport: parentContext.nativeImport, createRequire: parentContext.createRequire };
|
|
3264
3264
|
isNested || debug3(ctx, "[init]", ...[["version:", package_namespaceObject.rE], ["module-cache:", opts.moduleCache], ["fs-cache:", opts.fsCache], ["interop-defaults:", opts.interopDefault]].flat()), isNested || prepareCacheDir(ctx);
|
|
3265
3265
|
const jiti = Object.assign(function(id) {
|
|
@@ -3583,7 +3583,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3583
3583
|
(!path6 || addTrailingSlash && !path6.endsWith("/..")) && (path6 += "/"), url.path = path6;
|
|
3584
3584
|
}
|
|
3585
3585
|
__name(normalizePath, "normalizePath");
|
|
3586
|
-
function
|
|
3586
|
+
function resolve4(input, base) {
|
|
3587
3587
|
if (!input && !base) return "";
|
|
3588
3588
|
const url = parseUrl(input);
|
|
3589
3589
|
let inputType = url.type;
|
|
@@ -3620,8 +3620,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3620
3620
|
return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
3621
3621
|
}
|
|
3622
3622
|
}
|
|
3623
|
-
__name(
|
|
3624
|
-
return
|
|
3623
|
+
__name(resolve4, "resolve");
|
|
3624
|
+
return resolve4;
|
|
3625
3625
|
}();
|
|
3626
3626
|
}, "./node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"), "./node_modules/.pnpm/@jridgewell+set-array@1.2.1/node_modules/@jridgewell/set-array/dist/set-array.umd.js": /* @__PURE__ */ __name(function(__unused_webpack_module, exports3) {
|
|
3627
3627
|
!function(exports4) {
|
|
@@ -3675,18 +3675,18 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3675
3675
|
const c = chars.charCodeAt(i2);
|
|
3676
3676
|
intToChar[i2] = c, charToInt[c] = i2;
|
|
3677
3677
|
}
|
|
3678
|
-
function decodeInteger(reader,
|
|
3678
|
+
function decodeInteger(reader, relative4) {
|
|
3679
3679
|
let value2 = 0, shift = 0, integer = 0;
|
|
3680
3680
|
do {
|
|
3681
3681
|
const c = reader.next();
|
|
3682
3682
|
integer = charToInt[c], value2 |= (31 & integer) << shift, shift += 5;
|
|
3683
3683
|
} while (32 & integer);
|
|
3684
3684
|
const shouldNegate = 1 & value2;
|
|
3685
|
-
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2),
|
|
3685
|
+
return value2 >>>= 1, shouldNegate && (value2 = -2147483648 | -value2), relative4 + value2;
|
|
3686
3686
|
}
|
|
3687
3687
|
__name(decodeInteger, "decodeInteger");
|
|
3688
|
-
function encodeInteger(builder, num,
|
|
3689
|
-
let delta = num -
|
|
3688
|
+
function encodeInteger(builder, num, relative4) {
|
|
3689
|
+
let delta = num - relative4;
|
|
3690
3690
|
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
3691
3691
|
do {
|
|
3692
3692
|
let clamped = 31 & delta;
|
|
@@ -3913,10 +3913,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
3913
3913
|
}, "./node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"), "./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.25/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js": /* @__PURE__ */ __name(function(__unused_webpack_module, exports3, __webpack_require__2) {
|
|
3914
3914
|
!function(exports4, sourcemapCodec, resolveUri) {
|
|
3915
3915
|
"use strict";
|
|
3916
|
-
function
|
|
3916
|
+
function resolve4(input, base) {
|
|
3917
3917
|
return base && !base.endsWith("/") && (base += "/"), resolveUri(input, base);
|
|
3918
3918
|
}
|
|
3919
|
-
__name(
|
|
3919
|
+
__name(resolve4, "resolve");
|
|
3920
3920
|
function stripFilename(path6) {
|
|
3921
3921
|
if (!path6) return "";
|
|
3922
3922
|
const index = path6.lastIndexOf("/");
|
|
@@ -4009,15 +4009,15 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4009
4009
|
}
|
|
4010
4010
|
__name(buildNullArray, "buildNullArray");
|
|
4011
4011
|
const AnyMap = /* @__PURE__ */ __name(function(map2, mapUrl) {
|
|
4012
|
-
const parsed =
|
|
4012
|
+
const parsed = parse8(map2);
|
|
4013
4013
|
if (!("sections" in parsed)) return new TraceMap(parsed, mapUrl);
|
|
4014
4014
|
const mappings = [], sources = [], sourcesContent = [], names = [], ignoreList = [];
|
|
4015
4015
|
return recurse(parsed, mapUrl, mappings, sources, sourcesContent, names, ignoreList, 0, 0, 1 / 0, 1 / 0), presortedDecodedMap({ version: 3, file: parsed.file, names, sources, sourcesContent, mappings, ignoreList });
|
|
4016
4016
|
}, "AnyMap");
|
|
4017
|
-
function
|
|
4017
|
+
function parse8(map2) {
|
|
4018
4018
|
return "string" == typeof map2 ? JSON.parse(map2) : map2;
|
|
4019
4019
|
}
|
|
4020
|
-
__name(
|
|
4020
|
+
__name(parse8, "parse");
|
|
4021
4021
|
function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
4022
4022
|
const { sections } = input;
|
|
4023
4023
|
for (let i2 = 0; i2 < sections.length; i2++) {
|
|
@@ -4032,7 +4032,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4032
4032
|
}
|
|
4033
4033
|
__name(recurse, "recurse");
|
|
4034
4034
|
function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
|
|
4035
|
-
const parsed =
|
|
4035
|
+
const parsed = parse8(input);
|
|
4036
4036
|
if ("sections" in parsed) return recurse(...arguments);
|
|
4037
4037
|
const map2 = new TraceMap(parsed, mapUrl), sourcesOffset = sources.length, namesOffset = names.length, decoded = decodedMappings(map2), { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map2;
|
|
4038
4038
|
if (append(sources, resolvedSources), append(names, map2.names), contents) append(sourcesContent, contents);
|
|
@@ -4074,8 +4074,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4074
4074
|
if (!isString && map2._decodedMemo) return map2;
|
|
4075
4075
|
const parsed = isString ? JSON.parse(map2) : map2, { version: version2, file, names, sourceRoot, sources, sourcesContent } = parsed;
|
|
4076
4076
|
this.version = version2, this.file = file, this.names = names || [], this.sourceRoot = sourceRoot, this.sources = sources, this.sourcesContent = sourcesContent, this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
|
|
4077
|
-
const from =
|
|
4078
|
-
this.resolvedSources = sources.map((s2) =>
|
|
4077
|
+
const from = resolve4(sourceRoot || "", stripFilename(mapUrl));
|
|
4078
|
+
this.resolvedSources = sources.map((s2) => resolve4(s2 || "", from));
|
|
4079
4079
|
const { mappings } = parsed;
|
|
4080
4080
|
"string" == typeof mappings ? (this._encoded = mappings, this._decoded = void 0) : (this._encoded = void 0, this._decoded = maybeSort(mappings, isString)), this._decodedMemo = memoizedState(), this._bySources = void 0, this._bySourceMemos = void 0;
|
|
4081
4081
|
}
|
|
@@ -4516,10 +4516,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4516
4516
|
const self2 = debug3, curr = Number(/* @__PURE__ */ new Date()), ms = curr - (prevTime || curr);
|
|
4517
4517
|
self2.diff = ms, self2.prev = prevTime, self2.curr = curr, prevTime = curr, args[0] = createDebug.coerce(args[0]), "string" != typeof args[0] && args.unshift("%O");
|
|
4518
4518
|
let index = 0;
|
|
4519
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match,
|
|
4519
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format4) => {
|
|
4520
4520
|
if ("%%" === match) return "%";
|
|
4521
4521
|
index++;
|
|
4522
|
-
const formatter = createDebug.formatters[
|
|
4522
|
+
const formatter = createDebug.formatters[format4];
|
|
4523
4523
|
if ("function" == typeof formatter) {
|
|
4524
4524
|
const val = args[index];
|
|
4525
4525
|
match = formatter.call(self2, val), args.splice(index, 1), index--;
|
|
@@ -4657,7 +4657,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4657
4657
|
return value2;
|
|
4658
4658
|
}
|
|
4659
4659
|
__name(evaluateSync, "evaluateSync");
|
|
4660
|
-
function evaluateAsync(gen,
|
|
4660
|
+
function evaluateAsync(gen, resolve4, reject2) {
|
|
4661
4661
|
!(/* @__PURE__ */ __name(function step() {
|
|
4662
4662
|
try {
|
|
4663
4663
|
let value2;
|
|
@@ -4669,7 +4669,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4669
4669
|
});
|
|
4670
4670
|
if (sync = false, assertSuspend(out, gen), !didSyncResume) return;
|
|
4671
4671
|
}
|
|
4672
|
-
return
|
|
4672
|
+
return resolve4(value2);
|
|
4673
4673
|
} catch (err) {
|
|
4674
4674
|
return reject2(err);
|
|
4675
4675
|
}
|
|
@@ -4711,10 +4711,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4711
4711
|
"number" != typeof arity && (arity = sync.length);
|
|
4712
4712
|
return buildOperation({ name, arity, sync: /* @__PURE__ */ __name(function(args) {
|
|
4713
4713
|
return sync.apply(this, args);
|
|
4714
|
-
}, "sync"), async: /* @__PURE__ */ __name(function(args,
|
|
4715
|
-
async ? async.apply(this, args).then(
|
|
4716
|
-
null == err ?
|
|
4717
|
-
}) :
|
|
4714
|
+
}, "sync"), async: /* @__PURE__ */ __name(function(args, resolve4, reject2) {
|
|
4715
|
+
async ? async.apply(this, args).then(resolve4, reject2) : errback ? errback.call(this, ...args, (err, value2) => {
|
|
4716
|
+
null == err ? resolve4(value2) : reject2(err);
|
|
4717
|
+
}) : resolve4(sync.apply(this, args));
|
|
4718
4718
|
}, "async") });
|
|
4719
4719
|
}(optsOrFn) : function(genFn2) {
|
|
4720
4720
|
return setFunctionMetadata(genFn2.name, genFn2.length, function(...args) {
|
|
@@ -4724,8 +4724,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4724
4724
|
const fns = { sync: /* @__PURE__ */ __name(function(...args) {
|
|
4725
4725
|
return evaluateSync(genFn2.apply(this, args));
|
|
4726
4726
|
}, "sync"), async: /* @__PURE__ */ __name(function(...args) {
|
|
4727
|
-
return new Promise((
|
|
4728
|
-
evaluateAsync(genFn2.apply(this, args),
|
|
4727
|
+
return new Promise((resolve4, reject2) => {
|
|
4728
|
+
evaluateAsync(genFn2.apply(this, args), resolve4, reject2);
|
|
4729
4729
|
});
|
|
4730
4730
|
}, "async"), errback: /* @__PURE__ */ __name(function(...args) {
|
|
4731
4731
|
const cb2 = args.pop();
|
|
@@ -4742,25 +4742,25 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4742
4742
|
}(genFn));
|
|
4743
4743
|
}, { all: buildOperation({ name: "all", arity: 1, sync: /* @__PURE__ */ __name(function(args) {
|
|
4744
4744
|
return Array.from(args[0]).map((item) => evaluateSync(item));
|
|
4745
|
-
}, "sync"), async: /* @__PURE__ */ __name(function(args,
|
|
4745
|
+
}, "sync"), async: /* @__PURE__ */ __name(function(args, resolve4, reject2) {
|
|
4746
4746
|
const items = Array.from(args[0]);
|
|
4747
|
-
if (0 === items.length) return void Promise.resolve().then(() =>
|
|
4747
|
+
if (0 === items.length) return void Promise.resolve().then(() => resolve4([]));
|
|
4748
4748
|
let count = 0;
|
|
4749
4749
|
const results = items.map(() => {
|
|
4750
4750
|
});
|
|
4751
4751
|
items.forEach((item, i2) => {
|
|
4752
4752
|
evaluateAsync(item, (val) => {
|
|
4753
|
-
results[i2] = val, count += 1, count === results.length &&
|
|
4753
|
+
results[i2] = val, count += 1, count === results.length && resolve4(results);
|
|
4754
4754
|
}, reject2);
|
|
4755
4755
|
});
|
|
4756
4756
|
}, "async") }), race: buildOperation({ name: "race", arity: 1, sync: /* @__PURE__ */ __name(function(args) {
|
|
4757
4757
|
const items = Array.from(args[0]);
|
|
4758
4758
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
4759
4759
|
return evaluateSync(items[0]);
|
|
4760
|
-
}, "sync"), async: /* @__PURE__ */ __name(function(args,
|
|
4760
|
+
}, "sync"), async: /* @__PURE__ */ __name(function(args, resolve4, reject2) {
|
|
4761
4761
|
const items = Array.from(args[0]);
|
|
4762
4762
|
if (0 === items.length) throw makeError2("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
4763
|
-
for (const item of items) evaluateAsync(item,
|
|
4763
|
+
for (const item of items) evaluateAsync(item, resolve4, reject2);
|
|
4764
4764
|
}, "async") }) });
|
|
4765
4765
|
}, "./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js"), "./node_modules/.pnpm/globals@11.12.0/node_modules/globals/index.js": /* @__PURE__ */ __name((module3, __unused_webpack_exports, __webpack_require__2) => {
|
|
4766
4766
|
"use strict";
|
|
@@ -4946,7 +4946,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4946
4946
|
tok("CARET"), src[t2.CARET] = "^" + src[t2.LONECARET] + src[t2.XRANGEPLAIN] + "$", tok("CARETLOOSE"), src[t2.CARETLOOSE] = "^" + src[t2.LONECARET] + src[t2.XRANGEPLAINLOOSE] + "$", tok("COMPARATORLOOSE"), src[t2.COMPARATORLOOSE] = "^" + src[t2.GTLT] + "\\s*(" + src[t2.LOOSEPLAIN] + ")$|^$", tok("COMPARATOR"), src[t2.COMPARATOR] = "^" + src[t2.GTLT] + "\\s*(" + src[t2.FULLPLAIN] + ")$|^$", tok("COMPARATORTRIM"), src[t2.COMPARATORTRIM] = "(\\s*)" + src[t2.GTLT] + "\\s*(" + src[t2.LOOSEPLAIN] + "|" + src[t2.XRANGEPLAIN] + ")", re3[t2.COMPARATORTRIM] = new RegExp(src[t2.COMPARATORTRIM], "g"), safeRe[t2.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t2.COMPARATORTRIM]), "g");
|
|
4947
4947
|
tok("HYPHENRANGE"), src[t2.HYPHENRANGE] = "^\\s*(" + src[t2.XRANGEPLAIN] + ")\\s+-\\s+(" + src[t2.XRANGEPLAIN] + ")\\s*$", tok("HYPHENRANGELOOSE"), src[t2.HYPHENRANGELOOSE] = "^\\s*(" + src[t2.XRANGEPLAINLOOSE] + ")\\s+-\\s+(" + src[t2.XRANGEPLAINLOOSE] + ")\\s*$", tok("STAR"), src[t2.STAR] = "(<|>)?=?\\s*\\*";
|
|
4948
4948
|
for (var i2 = 0; i2 < R3; i2++) debug3(i2, src[i2]), re3[i2] || (re3[i2] = new RegExp(src[i2]), safeRe[i2] = new RegExp(makeSafeRe(src[i2])));
|
|
4949
|
-
function
|
|
4949
|
+
function parse8(version2, options) {
|
|
4950
4950
|
if (options && "object" == typeof options || (options = { loose: !!options, includePrerelease: false }), version2 instanceof SemVer) return version2;
|
|
4951
4951
|
if ("string" != typeof version2) return null;
|
|
4952
4952
|
if (version2.length > MAX_LENGTH) return null;
|
|
@@ -4957,7 +4957,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4957
4957
|
return null;
|
|
4958
4958
|
}
|
|
4959
4959
|
}
|
|
4960
|
-
__name(
|
|
4960
|
+
__name(parse8, "parse");
|
|
4961
4961
|
function SemVer(version2, options) {
|
|
4962
4962
|
if (options && "object" == typeof options || (options = { loose: !!options, includePrerelease: false }), version2 instanceof SemVer) {
|
|
4963
4963
|
if (version2.loose === options.loose) return version2;
|
|
@@ -4980,11 +4980,11 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
4980
4980
|
}) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format();
|
|
4981
4981
|
}
|
|
4982
4982
|
__name(SemVer, "SemVer");
|
|
4983
|
-
exports3.parse =
|
|
4984
|
-
var v4 =
|
|
4983
|
+
exports3.parse = parse8, exports3.valid = function(version2, options) {
|
|
4984
|
+
var v4 = parse8(version2, options);
|
|
4985
4985
|
return v4 ? v4.version : null;
|
|
4986
4986
|
}, exports3.clean = function(version2, options) {
|
|
4987
|
-
var s2 =
|
|
4987
|
+
var s2 = parse8(version2.trim().replace(/^[=v]+/, ""), options);
|
|
4988
4988
|
return s2 ? s2.version : null;
|
|
4989
4989
|
}, exports3.SemVer = SemVer, SemVer.prototype.format = function() {
|
|
4990
4990
|
return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version;
|
|
@@ -5060,7 +5060,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5060
5060
|
}
|
|
5061
5061
|
}, exports3.diff = function(version1, version2) {
|
|
5062
5062
|
if (eq2(version1, version2)) return null;
|
|
5063
|
-
var v1 =
|
|
5063
|
+
var v1 = parse8(version1), v22 = parse8(version2), prefix = "";
|
|
5064
5064
|
if (v1.prerelease.length || v22.prerelease.length) {
|
|
5065
5065
|
prefix = "pre";
|
|
5066
5066
|
var defaultResult = "prerelease";
|
|
@@ -5391,7 +5391,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5391
5391
|
}, exports3.gtr = function(version2, range2, options) {
|
|
5392
5392
|
return outside(version2, range2, ">", options);
|
|
5393
5393
|
}, exports3.outside = outside, exports3.prerelease = function(version2, options) {
|
|
5394
|
-
var parsed =
|
|
5394
|
+
var parsed = parse8(version2, options);
|
|
5395
5395
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
5396
5396
|
}, exports3.intersects = function(r1, r22, options) {
|
|
5397
5397
|
return r1 = new Range(r1, options), r22 = new Range(r22, options), r1.intersects(r22);
|
|
@@ -5405,7 +5405,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5405
5405
|
safeRe[t2.COERCERTL].lastIndex = -1;
|
|
5406
5406
|
} else match = version2.match(safeRe[t2.COERCE]);
|
|
5407
5407
|
if (null === match) return null;
|
|
5408
|
-
return
|
|
5408
|
+
return parse8(match[2] + "." + (match[3] || "0") + "." + (match[4] || "0"), options);
|
|
5409
5409
|
};
|
|
5410
5410
|
}, "./node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js"), "./node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js": /* @__PURE__ */ __name((module3, __unused_webpack_exports, __webpack_require__2) => {
|
|
5411
5411
|
"use strict";
|
|
@@ -5616,8 +5616,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5616
5616
|
__name(this, "Lock");
|
|
5617
5617
|
}
|
|
5618
5618
|
constructor() {
|
|
5619
|
-
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((
|
|
5620
|
-
this._resolve =
|
|
5619
|
+
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((resolve4) => {
|
|
5620
|
+
this._resolve = resolve4;
|
|
5621
5621
|
});
|
|
5622
5622
|
}
|
|
5623
5623
|
release(value2) {
|
|
@@ -5702,59 +5702,59 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
5702
5702
|
}
|
|
5703
5703
|
__name(loadFileChain, "loadFileChain");
|
|
5704
5704
|
const loadFileDescriptors = (0, _caching.makeWeakCacheSync)((file) => buildRootDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors)), loadFileEnvDescriptors = (0, _caching.makeWeakCacheSync)((file) => (0, _caching.makeStrongCacheSync)((envName) => buildEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, envName))), loadFileOverridesDescriptors = (0, _caching.makeWeakCacheSync)((file) => (0, _caching.makeStrongCacheSync)((index) => buildOverrideDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index))), loadFileOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)((file) => (0, _caching.makeStrongCacheSync)((index) => (0, _caching.makeStrongCacheSync)((envName) => buildOverrideEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index, envName))));
|
|
5705
|
-
function buildRootDescriptors({ dirname:
|
|
5706
|
-
return descriptors2(
|
|
5705
|
+
function buildRootDescriptors({ dirname: dirname5, options }, alias, descriptors2) {
|
|
5706
|
+
return descriptors2(dirname5, options, alias);
|
|
5707
5707
|
}
|
|
5708
5708
|
__name(buildRootDescriptors, "buildRootDescriptors");
|
|
5709
|
-
function buildEnvDescriptors({ dirname:
|
|
5709
|
+
function buildEnvDescriptors({ dirname: dirname5, options }, alias, descriptors2, envName) {
|
|
5710
5710
|
var _options$env;
|
|
5711
5711
|
const opts = null == (_options$env = options.env) ? void 0 : _options$env[envName];
|
|
5712
|
-
return opts ? descriptors2(
|
|
5712
|
+
return opts ? descriptors2(dirname5, opts, `${alias}.env["${envName}"]`) : null;
|
|
5713
5713
|
}
|
|
5714
5714
|
__name(buildEnvDescriptors, "buildEnvDescriptors");
|
|
5715
|
-
function buildOverrideDescriptors({ dirname:
|
|
5715
|
+
function buildOverrideDescriptors({ dirname: dirname5, options }, alias, descriptors2, index) {
|
|
5716
5716
|
var _options$overrides;
|
|
5717
5717
|
const opts = null == (_options$overrides = options.overrides) ? void 0 : _options$overrides[index];
|
|
5718
5718
|
if (!opts) throw new Error("Assertion failure - missing override");
|
|
5719
|
-
return descriptors2(
|
|
5719
|
+
return descriptors2(dirname5, opts, `${alias}.overrides[${index}]`);
|
|
5720
5720
|
}
|
|
5721
5721
|
__name(buildOverrideDescriptors, "buildOverrideDescriptors");
|
|
5722
|
-
function buildOverrideEnvDescriptors({ dirname:
|
|
5722
|
+
function buildOverrideEnvDescriptors({ dirname: dirname5, options }, alias, descriptors2, index, envName) {
|
|
5723
5723
|
var _options$overrides2, _override$env;
|
|
5724
5724
|
const override = null == (_options$overrides2 = options.overrides) ? void 0 : _options$overrides2[index];
|
|
5725
5725
|
if (!override) throw new Error("Assertion failure - missing override");
|
|
5726
5726
|
const opts = null == (_override$env = override.env) ? void 0 : _override$env[envName];
|
|
5727
|
-
return opts ? descriptors2(
|
|
5727
|
+
return opts ? descriptors2(dirname5, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
|
|
5728
5728
|
}
|
|
5729
5729
|
__name(buildOverrideEnvDescriptors, "buildOverrideEnvDescriptors");
|
|
5730
5730
|
function makeChainWalker({ root: root2, env: env2, overrides, overridesEnv, createLogger }) {
|
|
5731
5731
|
return function* (input, context, files = /* @__PURE__ */ new Set(), baseLogger) {
|
|
5732
|
-
const { dirname:
|
|
5733
|
-
if (configIsApplicable(rootOpts,
|
|
5732
|
+
const { dirname: dirname5 } = input, flattenedConfigs = [], rootOpts = root2(input);
|
|
5733
|
+
if (configIsApplicable(rootOpts, dirname5, context, input.filepath)) {
|
|
5734
5734
|
flattenedConfigs.push({ config: rootOpts, envName: void 0, index: void 0 });
|
|
5735
5735
|
const envOpts = env2(input, context.envName);
|
|
5736
|
-
envOpts && configIsApplicable(envOpts,
|
|
5736
|
+
envOpts && configIsApplicable(envOpts, dirname5, context, input.filepath) && flattenedConfigs.push({ config: envOpts, envName: context.envName, index: void 0 }), (rootOpts.options.overrides || []).forEach((_7, index) => {
|
|
5737
5737
|
const overrideOps = overrides(input, index);
|
|
5738
|
-
if (configIsApplicable(overrideOps,
|
|
5738
|
+
if (configIsApplicable(overrideOps, dirname5, context, input.filepath)) {
|
|
5739
5739
|
flattenedConfigs.push({ config: overrideOps, index, envName: void 0 });
|
|
5740
5740
|
const overrideEnvOpts = overridesEnv(input, index, context.envName);
|
|
5741
|
-
overrideEnvOpts && configIsApplicable(overrideEnvOpts,
|
|
5741
|
+
overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname5, context, input.filepath) && flattenedConfigs.push({ config: overrideEnvOpts, index, envName: context.envName });
|
|
5742
5742
|
}
|
|
5743
5743
|
});
|
|
5744
5744
|
}
|
|
5745
|
-
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only,
|
|
5745
|
+
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only, dirname5))) return null;
|
|
5746
5746
|
const chain2 = emptyChain(), logger = createLogger(input, context, baseLogger);
|
|
5747
5747
|
for (const { config, index, envName } of flattenedConfigs) {
|
|
5748
|
-
if (!(yield* mergeExtendsChain(chain2, config.options,
|
|
5748
|
+
if (!(yield* mergeExtendsChain(chain2, config.options, dirname5, context, files, baseLogger))) return null;
|
|
5749
5749
|
logger(config, index, envName), yield* mergeChainOpts(chain2, config);
|
|
5750
5750
|
}
|
|
5751
5751
|
return chain2;
|
|
5752
5752
|
};
|
|
5753
5753
|
}
|
|
5754
5754
|
__name(makeChainWalker, "makeChainWalker");
|
|
5755
|
-
function* mergeExtendsChain(chain2, opts,
|
|
5755
|
+
function* mergeExtendsChain(chain2, opts, dirname5, context, files, baseLogger) {
|
|
5756
5756
|
if (void 0 === opts.extends) return true;
|
|
5757
|
-
const file = yield* (0, _index.loadConfig)(opts.extends,
|
|
5757
|
+
const file = yield* (0, _index.loadConfig)(opts.extends, dirname5, context.envName, context.caller);
|
|
5758
5758
|
if (files.has(file)) throw new Error(`Configuration cycle detected loading ${file.filepath}.
|
|
5759
5759
|
File already loaded following the config chain:
|
|
5760
5760
|
` + Array.from(files, (file2) => ` - ${file2.filepath}`).join("\n"));
|
|
@@ -5794,40 +5794,40 @@ File already loaded following the config chain:
|
|
|
5794
5794
|
return descriptors2.reduce((acc, desc) => (acc.push(desc.value), acc), []);
|
|
5795
5795
|
}
|
|
5796
5796
|
__name(dedupDescriptors, "dedupDescriptors");
|
|
5797
|
-
function configIsApplicable({ options },
|
|
5798
|
-
return (void 0 === options.test || configFieldIsApplicable(context, options.test,
|
|
5797
|
+
function configIsApplicable({ options }, dirname5, context, configName) {
|
|
5798
|
+
return (void 0 === options.test || configFieldIsApplicable(context, options.test, dirname5, configName)) && (void 0 === options.include || configFieldIsApplicable(context, options.include, dirname5, configName)) && (void 0 === options.exclude || !configFieldIsApplicable(context, options.exclude, dirname5, configName));
|
|
5799
5799
|
}
|
|
5800
5800
|
__name(configIsApplicable, "configIsApplicable");
|
|
5801
|
-
function configFieldIsApplicable(context, test,
|
|
5802
|
-
return matchesPatterns(context, Array.isArray(test) ? test : [test],
|
|
5801
|
+
function configFieldIsApplicable(context, test, dirname5, configName) {
|
|
5802
|
+
return matchesPatterns(context, Array.isArray(test) ? test : [test], dirname5, configName);
|
|
5803
5803
|
}
|
|
5804
5804
|
__name(configFieldIsApplicable, "configFieldIsApplicable");
|
|
5805
5805
|
function ignoreListReplacer(_key, value2) {
|
|
5806
5806
|
return value2 instanceof RegExp ? String(value2) : value2;
|
|
5807
5807
|
}
|
|
5808
5808
|
__name(ignoreListReplacer, "ignoreListReplacer");
|
|
5809
|
-
function shouldIgnore(context, ignore, only,
|
|
5810
|
-
if (ignore && matchesPatterns(context, ignore,
|
|
5809
|
+
function shouldIgnore(context, ignore, only, dirname5) {
|
|
5810
|
+
if (ignore && matchesPatterns(context, ignore, dirname5)) {
|
|
5811
5811
|
var _context$filename;
|
|
5812
|
-
const message2 = `No config is applied to "${null != (_context$filename = context.filename) ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${
|
|
5812
|
+
const message2 = `No config is applied to "${null != (_context$filename = context.filename) ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname5}"`;
|
|
5813
5813
|
return debug3(message2), context.showConfig && console.log(message2), true;
|
|
5814
5814
|
}
|
|
5815
|
-
if (only && !matchesPatterns(context, only,
|
|
5815
|
+
if (only && !matchesPatterns(context, only, dirname5)) {
|
|
5816
5816
|
var _context$filename2;
|
|
5817
|
-
const message2 = `No config is applied to "${null != (_context$filename2 = context.filename) ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${
|
|
5817
|
+
const message2 = `No config is applied to "${null != (_context$filename2 = context.filename) ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname5}"`;
|
|
5818
5818
|
return debug3(message2), context.showConfig && console.log(message2), true;
|
|
5819
5819
|
}
|
|
5820
5820
|
return false;
|
|
5821
5821
|
}
|
|
5822
5822
|
__name(shouldIgnore, "shouldIgnore");
|
|
5823
|
-
function matchesPatterns(context, patterns,
|
|
5824
|
-
return patterns.some((pattern) => matchPattern(pattern,
|
|
5823
|
+
function matchesPatterns(context, patterns, dirname5, configName) {
|
|
5824
|
+
return patterns.some((pattern) => matchPattern(pattern, dirname5, context.filename, context, configName));
|
|
5825
5825
|
}
|
|
5826
5826
|
__name(matchesPatterns, "matchesPatterns");
|
|
5827
|
-
function matchPattern(pattern,
|
|
5828
|
-
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname:
|
|
5827
|
+
function matchPattern(pattern, dirname5, pathToTest, context, configName) {
|
|
5828
|
+
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname: dirname5, envName: context.envName, caller: context.caller });
|
|
5829
5829
|
if ("string" != typeof pathToTest) throw new _configError.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel", configName);
|
|
5830
|
-
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern,
|
|
5830
|
+
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern, dirname5)), pattern.test(pathToTest);
|
|
5831
5831
|
}
|
|
5832
5832
|
__name(matchPattern, "matchPattern");
|
|
5833
5833
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-chain.js"), "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-descriptors.js": /* @__PURE__ */ __name((__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
@@ -5839,30 +5839,30 @@ File already loaded following the config chain:
|
|
|
5839
5839
|
}, "_gensync"), data2;
|
|
5840
5840
|
}
|
|
5841
5841
|
__name(_gensync, "_gensync");
|
|
5842
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createCachedDescriptors = function(
|
|
5842
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createCachedDescriptors = function(dirname5, options, alias) {
|
|
5843
5843
|
const { plugins, presets, passPerPreset } = options;
|
|
5844
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
5845
|
-
}, exports3.createDescriptor = createDescriptor, exports3.createUncachedDescriptors = function(
|
|
5846
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
5844
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname5), plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname5)(alias) : () => handlerOf([]), presets: presets ? () => createCachedPresetDescriptors(presets, dirname5)(alias)(!!passPerPreset) : () => handlerOf([]) };
|
|
5845
|
+
}, exports3.createDescriptor = createDescriptor, exports3.createUncachedDescriptors = function(dirname5, options, alias) {
|
|
5846
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname5), plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname5, alias)), presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname5, alias, !!options.passPerPreset)) };
|
|
5847
5847
|
};
|
|
5848
5848
|
var _functional = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/gensync-utils/functional.js"), _index = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/index.js"), _item = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/item.js"), _caching = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/caching.js"), _resolveTargets = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/resolve-targets.js");
|
|
5849
5849
|
function* handlerOf(value2) {
|
|
5850
5850
|
return value2;
|
|
5851
5851
|
}
|
|
5852
5852
|
__name(handlerOf, "handlerOf");
|
|
5853
|
-
function optionsWithResolvedBrowserslistConfigFile(options,
|
|
5854
|
-
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile,
|
|
5853
|
+
function optionsWithResolvedBrowserslistConfigFile(options, dirname5) {
|
|
5854
|
+
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname5)), options;
|
|
5855
5855
|
}
|
|
5856
5856
|
__name(optionsWithResolvedBrowserslistConfigFile, "optionsWithResolvedBrowserslistConfigFile");
|
|
5857
5857
|
const PRESET_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
5858
|
-
const
|
|
5858
|
+
const dirname5 = cache2.using((dir) => dir);
|
|
5859
5859
|
return (0, _caching.makeStrongCacheSync)((alias) => (0, _caching.makeStrongCache)(function* (passPerPreset) {
|
|
5860
|
-
return (yield* createPresetDescriptors(items,
|
|
5860
|
+
return (yield* createPresetDescriptors(items, dirname5, alias, passPerPreset)).map((desc) => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc));
|
|
5861
5861
|
}));
|
|
5862
5862
|
}), PLUGIN_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache2) => {
|
|
5863
|
-
const
|
|
5863
|
+
const dirname5 = cache2.using((dir) => dir);
|
|
5864
5864
|
return (0, _caching.makeStrongCache)(function* (alias) {
|
|
5865
|
-
return (yield* createPluginDescriptors(items,
|
|
5865
|
+
return (yield* createPluginDescriptors(items, dirname5, alias)).map((desc) => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc));
|
|
5866
5866
|
});
|
|
5867
5867
|
}), DEFAULT_OPTIONS = {};
|
|
5868
5868
|
function loadCachedDescriptor(cache2, desc) {
|
|
@@ -5882,16 +5882,16 @@ File already loaded following the config chain:
|
|
|
5882
5882
|
return desc;
|
|
5883
5883
|
}
|
|
5884
5884
|
__name(loadCachedDescriptor, "loadCachedDescriptor");
|
|
5885
|
-
function* createPresetDescriptors(items,
|
|
5886
|
-
return yield* createDescriptors("preset", items,
|
|
5885
|
+
function* createPresetDescriptors(items, dirname5, alias, passPerPreset) {
|
|
5886
|
+
return yield* createDescriptors("preset", items, dirname5, alias, passPerPreset);
|
|
5887
5887
|
}
|
|
5888
5888
|
__name(createPresetDescriptors, "createPresetDescriptors");
|
|
5889
|
-
function* createPluginDescriptors(items,
|
|
5890
|
-
return yield* createDescriptors("plugin", items,
|
|
5889
|
+
function* createPluginDescriptors(items, dirname5, alias) {
|
|
5890
|
+
return yield* createDescriptors("plugin", items, dirname5, alias);
|
|
5891
5891
|
}
|
|
5892
5892
|
__name(createPluginDescriptors, "createPluginDescriptors");
|
|
5893
|
-
function* createDescriptors(type, items,
|
|
5894
|
-
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item,
|
|
5893
|
+
function* createDescriptors(type, items, dirname5, alias, ownPass) {
|
|
5894
|
+
const descriptors2 = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname5, { type, alias: `${alias}$${index}`, ownPass: !!ownPass })));
|
|
5895
5895
|
return function(items2) {
|
|
5896
5896
|
const map2 = /* @__PURE__ */ new Map();
|
|
5897
5897
|
for (const item of items2) {
|
|
@@ -5906,7 +5906,7 @@ File already loaded following the config chain:
|
|
|
5906
5906
|
}(descriptors2), descriptors2;
|
|
5907
5907
|
}
|
|
5908
5908
|
__name(createDescriptors, "createDescriptors");
|
|
5909
|
-
function* createDescriptor(pair,
|
|
5909
|
+
function* createDescriptor(pair, dirname5, { type, alias, ownPass }) {
|
|
5910
5910
|
const desc = (0, _item.getItemDescriptor)(pair);
|
|
5911
5911
|
if (desc) return desc;
|
|
5912
5912
|
let name, options, file, value2 = pair;
|
|
@@ -5915,7 +5915,7 @@ File already loaded following the config chain:
|
|
|
5915
5915
|
if ("string" == typeof value2) {
|
|
5916
5916
|
if ("string" != typeof type) throw new Error("To resolve a string-based item, the type of item must be given");
|
|
5917
5917
|
const resolver = "plugin" === type ? _index.loadPlugin : _index.loadPreset, request = value2;
|
|
5918
|
-
({ filepath, value: value2 } = yield* resolver(value2,
|
|
5918
|
+
({ filepath, value: value2 } = yield* resolver(value2, dirname5)), file = { request, resolved: filepath };
|
|
5919
5919
|
}
|
|
5920
5920
|
if (!value2) throw new Error(`Unexpected falsy value: ${String(value2)}`);
|
|
5921
5921
|
if ("object" == typeof value2 && value2.__esModule) {
|
|
@@ -5924,7 +5924,7 @@ File already loaded following the config chain:
|
|
|
5924
5924
|
}
|
|
5925
5925
|
if ("object" != typeof value2 && "function" != typeof value2) throw new Error(`Unsupported format: ${typeof value2}. Expected an object or a function.`);
|
|
5926
5926
|
if (null !== filepath && "object" == typeof value2 && value2) throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);
|
|
5927
|
-
return { name, alias: filepath || alias, value: value2, options, dirname:
|
|
5927
|
+
return { name, alias: filepath || alias, value: value2, options, dirname: dirname5, ownPass, file };
|
|
5928
5928
|
}
|
|
5929
5929
|
__name(createDescriptor, "createDescriptor");
|
|
5930
5930
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-descriptors.js"), "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/configuration.js": /* @__PURE__ */ __name((__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
@@ -5965,41 +5965,41 @@ File already loaded following the config chain:
|
|
|
5965
5965
|
}
|
|
5966
5966
|
__name(_gensync, "_gensync");
|
|
5967
5967
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.ROOT_CONFIG_FILENAMES = void 0, exports3.findConfigUpwards = function(rootDir) {
|
|
5968
|
-
let
|
|
5968
|
+
let dirname5 = rootDir;
|
|
5969
5969
|
for (; ; ) {
|
|
5970
|
-
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(
|
|
5971
|
-
const nextDir = _path().dirname(
|
|
5972
|
-
if (
|
|
5973
|
-
|
|
5970
|
+
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(dirname5, filename))) return dirname5;
|
|
5971
|
+
const nextDir = _path().dirname(dirname5);
|
|
5972
|
+
if (dirname5 === nextDir) break;
|
|
5973
|
+
dirname5 = nextDir;
|
|
5974
5974
|
}
|
|
5975
5975
|
return null;
|
|
5976
5976
|
}, exports3.findRelativeConfig = function* (packageData, envName, caller) {
|
|
5977
5977
|
let config = null, ignore = null;
|
|
5978
|
-
const
|
|
5978
|
+
const dirname5 = _path().dirname(packageData.filepath);
|
|
5979
5979
|
for (const loc of packageData.directories) {
|
|
5980
5980
|
var _packageData$pkg;
|
|
5981
5981
|
if (!config) config = yield* loadOneConfig(RELATIVE_CONFIG_FILENAMES, loc, envName, caller, (null == (_packageData$pkg = packageData.pkg) ? void 0 : _packageData$pkg.dirname) === loc ? packageToBabelConfig(packageData.pkg) : null);
|
|
5982
5982
|
if (!ignore) {
|
|
5983
5983
|
const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
|
|
5984
|
-
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug3("Found ignore %o from %o.", ignore.filepath,
|
|
5984
|
+
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug3("Found ignore %o from %o.", ignore.filepath, dirname5);
|
|
5985
5985
|
}
|
|
5986
5986
|
}
|
|
5987
5987
|
return { config, ignore };
|
|
5988
|
-
}, exports3.findRootConfig = function(
|
|
5989
|
-
return loadOneConfig(ROOT_CONFIG_FILENAMES,
|
|
5990
|
-
}, exports3.loadConfig = function* (name,
|
|
5988
|
+
}, exports3.findRootConfig = function(dirname5, envName, caller) {
|
|
5989
|
+
return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname5, envName, caller);
|
|
5990
|
+
}, exports3.loadConfig = function* (name, dirname5, envName, caller) {
|
|
5991
5991
|
const filepath = (v4 = process.versions.node, w5 = "8.9", v4 = v4.split("."), w5 = w5.split("."), +v4[0] > +w5[0] || v4[0] == w5[0] && +v4[1] >= +w5[1] ? __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve : (r4, { paths: [b6] }, M4 = __webpack_require__2("module")) => {
|
|
5992
5992
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
5993
5993
|
if (f2) return f2;
|
|
5994
5994
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
5995
|
-
})(name, { paths: [
|
|
5995
|
+
})(name, { paths: [dirname5] }), conf = yield* readConfig(filepath, envName, caller);
|
|
5996
5996
|
var v4, w5;
|
|
5997
5997
|
if (!conf) throw new _configError.default("Config file contains no configuration data", filepath);
|
|
5998
|
-
return debug3("Loaded config %o from %o.", name,
|
|
5999
|
-
}, exports3.resolveShowConfigPath = function* (
|
|
5998
|
+
return debug3("Loaded config %o from %o.", name, dirname5), conf;
|
|
5999
|
+
}, exports3.resolveShowConfigPath = function* (dirname5) {
|
|
6000
6000
|
const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
|
|
6001
6001
|
if (null != targetPath) {
|
|
6002
|
-
const absolutePath = _path().resolve(
|
|
6002
|
+
const absolutePath = _path().resolve(dirname5, targetPath);
|
|
6003
6003
|
if (!(yield* fs3.stat(absolutePath)).isFile()) throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
|
|
6004
6004
|
return absolutePath;
|
|
6005
6005
|
}
|
|
@@ -6080,15 +6080,15 @@ module.exports = function(api) {
|
|
|
6080
6080
|
for (const pattern of ignorePatterns) if ("!" === pattern[0]) throw new _configError.default("Negation of file paths is not supported.", filepath);
|
|
6081
6081
|
return { filepath, dirname: _path().dirname(filepath), ignore: ignorePatterns.map((pattern) => (0, _patternToRegex.default)(pattern, ignoreDir)) };
|
|
6082
6082
|
});
|
|
6083
|
-
function* loadOneConfig(names,
|
|
6084
|
-
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(
|
|
6083
|
+
function* loadOneConfig(names, dirname5, envName, caller, previousConfig = null) {
|
|
6084
|
+
const config = (yield* _gensync().all(names.map((filename) => readConfig(_path().join(dirname5, filename), envName, caller)))).reduce((previousConfig2, config2) => {
|
|
6085
6085
|
if (config2 && previousConfig2) throw new _configError.default(`Multiple configuration files found. Please remove one:
|
|
6086
6086
|
- ${_path().basename(previousConfig2.filepath)}
|
|
6087
6087
|
- ${config2.filepath}
|
|
6088
|
-
from ${
|
|
6088
|
+
from ${dirname5}`);
|
|
6089
6089
|
return config2 || previousConfig2;
|
|
6090
6090
|
}, previousConfig);
|
|
6091
|
-
return config && debug3("Found configuration %o from %o.", config.filepath,
|
|
6091
|
+
return config && debug3("Found configuration %o from %o.", config.filepath, dirname5), config;
|
|
6092
6092
|
}
|
|
6093
6093
|
__name(loadOneConfig, "loadOneConfig");
|
|
6094
6094
|
function readConfig(filepath, envName, caller) {
|
|
@@ -6296,15 +6296,15 @@ packageExtensions:
|
|
|
6296
6296
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.findPackageData = function* (filepath) {
|
|
6297
6297
|
let pkg = null;
|
|
6298
6298
|
const directories = [];
|
|
6299
|
-
let isPackage = true,
|
|
6300
|
-
for (; !pkg && "node_modules" !== _path().basename(
|
|
6301
|
-
directories.push(
|
|
6302
|
-
const nextLoc = _path().dirname(
|
|
6303
|
-
if (
|
|
6299
|
+
let isPackage = true, dirname5 = _path().dirname(filepath);
|
|
6300
|
+
for (; !pkg && "node_modules" !== _path().basename(dirname5); ) {
|
|
6301
|
+
directories.push(dirname5), pkg = yield* readConfigPackage(_path().join(dirname5, PACKAGE_FILENAME));
|
|
6302
|
+
const nextLoc = _path().dirname(dirname5);
|
|
6303
|
+
if (dirname5 === nextLoc) {
|
|
6304
6304
|
isPackage = false;
|
|
6305
6305
|
break;
|
|
6306
6306
|
}
|
|
6307
|
-
|
|
6307
|
+
dirname5 = nextLoc;
|
|
6308
6308
|
}
|
|
6309
6309
|
return { filepath, directories, pkg, isPackage };
|
|
6310
6310
|
};
|
|
@@ -6337,12 +6337,12 @@ packageExtensions:
|
|
|
6337
6337
|
}, "_path"), data2;
|
|
6338
6338
|
}
|
|
6339
6339
|
__name(_path, "_path");
|
|
6340
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.loadPlugin = function* (name,
|
|
6341
|
-
const { filepath, loader } = resolvePlugin(name,
|
|
6342
|
-
return debug3("Loaded plugin %o from %o.", name,
|
|
6343
|
-
}, exports3.loadPreset = function* (name,
|
|
6344
|
-
const { filepath, loader } = resolvePreset(name,
|
|
6345
|
-
return debug3("Loaded preset %o from %o.", name,
|
|
6340
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.loadPlugin = function* (name, dirname5) {
|
|
6341
|
+
const { filepath, loader } = resolvePlugin(name, dirname5, yield* (0, _async.isAsync)()), value2 = yield* requireModule("plugin", loader, filepath);
|
|
6342
|
+
return debug3("Loaded plugin %o from %o.", name, dirname5), { filepath, value: value2 };
|
|
6343
|
+
}, exports3.loadPreset = function* (name, dirname5) {
|
|
6344
|
+
const { filepath, loader } = resolvePreset(name, dirname5, yield* (0, _async.isAsync)()), value2 = yield* requireModule("preset", loader, filepath);
|
|
6345
|
+
return debug3("Loaded preset %o from %o.", name, dirname5), { filepath, value: value2 };
|
|
6346
6346
|
}, exports3.resolvePreset = exports3.resolvePlugin = void 0;
|
|
6347
6347
|
var _async = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/gensync-utils/async.js"), _moduleTypes = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/module-types.js");
|
|
6348
6348
|
function _url() {
|
|
@@ -6384,13 +6384,13 @@ packageExtensions:
|
|
|
6384
6384
|
throw error.message += "\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n", error;
|
|
6385
6385
|
}
|
|
6386
6386
|
__name(resolveAlternativesHelper, "resolveAlternativesHelper");
|
|
6387
|
-
function tryRequireResolve(id,
|
|
6387
|
+
function tryRequireResolve(id, dirname5) {
|
|
6388
6388
|
try {
|
|
6389
|
-
return
|
|
6389
|
+
return dirname5 ? { error: null, value: (v4 = process.versions.node, w5 = "8.9", v4 = v4.split("."), w5 = w5.split("."), +v4[0] > +w5[0] || v4[0] == w5[0] && +v4[1] >= +w5[1] ? __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve : (r4, { paths: [b6] }, M4 = __webpack_require__2("module")) => {
|
|
6390
6390
|
let f2 = M4._findPath(r4, M4._nodeModulePaths(b6).concat(b6));
|
|
6391
6391
|
if (f2) return f2;
|
|
6392
6392
|
throw f2 = new Error(`Cannot resolve module '${r4}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
6393
|
-
})(id, { paths: [
|
|
6393
|
+
})(id, { paths: [dirname5] }) } : { error: null, value: __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve(id) };
|
|
6394
6394
|
} catch (error) {
|
|
6395
6395
|
return { error, value: null };
|
|
6396
6396
|
}
|
|
@@ -6405,27 +6405,27 @@ packageExtensions:
|
|
|
6405
6405
|
}
|
|
6406
6406
|
}
|
|
6407
6407
|
__name(tryImportMetaResolve, "tryImportMetaResolve");
|
|
6408
|
-
function resolveStandardizedNameForRequire(type, name,
|
|
6408
|
+
function resolveStandardizedNameForRequire(type, name, dirname5) {
|
|
6409
6409
|
const it = resolveAlternativesHelper(type, name);
|
|
6410
6410
|
let res = it.next();
|
|
6411
|
-
for (; !res.done; ) res = it.next(tryRequireResolve(res.value,
|
|
6411
|
+
for (; !res.done; ) res = it.next(tryRequireResolve(res.value, dirname5));
|
|
6412
6412
|
return { loader: "require", filepath: res.value };
|
|
6413
6413
|
}
|
|
6414
6414
|
__name(resolveStandardizedNameForRequire, "resolveStandardizedNameForRequire");
|
|
6415
|
-
function resolveStandardizedName(type, name,
|
|
6416
|
-
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name,
|
|
6415
|
+
function resolveStandardizedName(type, name, dirname5, allowAsync) {
|
|
6416
|
+
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name, dirname5);
|
|
6417
6417
|
try {
|
|
6418
|
-
const resolved = function(type2, name2,
|
|
6419
|
-
const parentUrl = (0, _url().pathToFileURL)(_path().join(
|
|
6418
|
+
const resolved = function(type2, name2, dirname6) {
|
|
6419
|
+
const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname6, "./babel-virtual-resolve-base.js")).href, it = resolveAlternativesHelper(type2, name2);
|
|
6420
6420
|
let res = it.next();
|
|
6421
6421
|
for (; !res.done; ) res = it.next(tryImportMetaResolve(res.value, parentUrl));
|
|
6422
6422
|
return { loader: "auto", filepath: (0, _url().fileURLToPath)(res.value) };
|
|
6423
|
-
}(type, name,
|
|
6424
|
-
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${
|
|
6423
|
+
}(type, name, dirname5);
|
|
6424
|
+
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname5}.`), { type: "MODULE_NOT_FOUND" });
|
|
6425
6425
|
return resolved;
|
|
6426
6426
|
} catch (e2) {
|
|
6427
6427
|
try {
|
|
6428
|
-
return resolveStandardizedNameForRequire(type, name,
|
|
6428
|
+
return resolveStandardizedNameForRequire(type, name, dirname5);
|
|
6429
6429
|
} catch (e22) {
|
|
6430
6430
|
if ("MODULE_NOT_FOUND" === e2.type) throw e2;
|
|
6431
6431
|
if ("MODULE_NOT_FOUND" === e22.type) throw e22;
|
|
@@ -6561,7 +6561,7 @@ packageExtensions:
|
|
|
6561
6561
|
};
|
|
6562
6562
|
}
|
|
6563
6563
|
__name(enhanceError, "enhanceError");
|
|
6564
|
-
const makeDescriptorLoader = /* @__PURE__ */ __name((apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
6564
|
+
const makeDescriptorLoader = /* @__PURE__ */ __name((apiFactory) => (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname5, alias }, cache2) {
|
|
6565
6565
|
if (false === options) throw new Error("Assertion failure");
|
|
6566
6566
|
options = options || {};
|
|
6567
6567
|
const externalDependencies = [];
|
|
@@ -6569,7 +6569,7 @@ packageExtensions:
|
|
|
6569
6569
|
if ("function" == typeof value2) {
|
|
6570
6570
|
const factory = (0, _async.maybeAsync)(value2, "You appear to be using an async plugin/preset, but Babel has been called synchronously"), api = Object.assign({}, context, apiFactory(cache2, externalDependencies));
|
|
6571
6571
|
try {
|
|
6572
|
-
item = yield* factory(api, options,
|
|
6572
|
+
item = yield* factory(api, options, dirname5);
|
|
6573
6573
|
} catch (e2) {
|
|
6574
6574
|
throw alias && (e2.message += ` (While processing: ${JSON.stringify(alias)})`), e2;
|
|
6575
6575
|
}
|
|
@@ -6581,11 +6581,11 @@ packageExtensions:
|
|
|
6581
6581
|
throw cache2.configured() ? error += " has been configured to never be invalidated. " : error += "has not been configured to be invalidated when the external dependencies change. ", error += `Plugins/presets should configure their cache to be invalidated when the external dependencies change, for example using \`api.cache.invalidate(() => statSync(filepath).mtimeMs)\` or \`api.cache.never()\`
|
|
6582
6582
|
(While processing: ${JSON.stringify(alias)})`, new Error(error);
|
|
6583
6583
|
}
|
|
6584
|
-
return { value: item, options, dirname:
|
|
6585
|
-
}), "makeDescriptorLoader"), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname:
|
|
6584
|
+
return { value: item, options, dirname: dirname5, alias, externalDependencies: (0, _deepArray.finalize)(externalDependencies) };
|
|
6585
|
+
}), "makeDescriptorLoader"), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ value: value2, options, dirname: dirname5, alias, externalDependencies }, cache2) {
|
|
6586
6586
|
const pluginObj = (0, _plugins.validatePluginObject)(value2), plugin = Object.assign({}, pluginObj);
|
|
6587
6587
|
if (plugin.visitor && (plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor))), plugin.inherits) {
|
|
6588
|
-
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname:
|
|
6588
|
+
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname: dirname5 }, inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, (run2) => cache2.invalidate((data2) => run2(inheritsDescriptor, data2)));
|
|
6589
6589
|
plugin.pre = chainMaybeAsync(inherits.pre, plugin.pre), plugin.post = chainMaybeAsync(inherits.post, plugin.post), plugin.manipulateOptions = chainMaybeAsync(inherits.manipulateOptions, plugin.manipulateOptions), plugin.visitor = _traverse().default.visitors.merge([inherits.visitor || {}, plugin.visitor || {}]), inherits.externalDependencies.length > 0 && (externalDependencies = 0 === externalDependencies.length ? inherits.externalDependencies : (0, _deepArray.finalize)([externalDependencies, inherits.externalDependencies]));
|
|
6590
6590
|
}
|
|
6591
6591
|
return new _plugin.default(plugin, options, alias, externalDependencies);
|
|
@@ -6609,7 +6609,7 @@ packageExtensions:
|
|
|
6609
6609
|
const { options } = preset;
|
|
6610
6610
|
validateIfOptionNeedsFilename(options, descriptor), null == (_options$overrides = options.overrides) || _options$overrides.forEach((overrideOptions) => validateIfOptionNeedsFilename(overrideOptions, descriptor));
|
|
6611
6611
|
}
|
|
6612
|
-
}, "validatePreset"), instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname:
|
|
6612
|
+
}, "validatePreset"), instantiatePreset = (0, _caching.makeWeakCacheSync)(({ value: value2, dirname: dirname5, alias, externalDependencies }) => ({ options: (0, _options2.validate)("preset", value2), alias, dirname: dirname5, externalDependencies }));
|
|
6613
6613
|
function* loadPresetDescriptor(descriptor, context2) {
|
|
6614
6614
|
const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context2));
|
|
6615
6615
|
return validatePreset(preset, context2, descriptor), { chain: yield* (0, _configChain.buildPresetChain)(preset, context2), externalDependencies: preset.externalDependencies };
|
|
@@ -6740,8 +6740,8 @@ packageExtensions:
|
|
|
6740
6740
|
}, "_path"), data2;
|
|
6741
6741
|
}
|
|
6742
6742
|
__name(_path, "_path");
|
|
6743
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createConfigItem = function* (value2, { dirname:
|
|
6744
|
-
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(
|
|
6743
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.createConfigItem = function* (value2, { dirname: dirname5 = ".", type } = {}) {
|
|
6744
|
+
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(dirname5), { type, alias: "programmatic item" }));
|
|
6745
6745
|
}, exports3.createItemFromDescriptor = createItemFromDescriptor, exports3.getItemDescriptor = function(item) {
|
|
6746
6746
|
if (null != item && item[CONFIG_ITEM_BRAND]) return item._descriptor;
|
|
6747
6747
|
return;
|
|
@@ -6796,7 +6796,7 @@ packageExtensions:
|
|
|
6796
6796
|
const _excluded = ["showIgnoredFiles"];
|
|
6797
6797
|
function* loadPrivatePartialConfig(inputOpts) {
|
|
6798
6798
|
if (null != inputOpts && ("object" != typeof inputOpts || Array.isArray(inputOpts))) throw new Error("Babel options must be an object, null, or undefined");
|
|
6799
|
-
const args = inputOpts ? (0, _options2.validate)("arguments", inputOpts) : {}, { envName = (0, _environment.getEnv)(), cwd:
|
|
6799
|
+
const args = inputOpts ? (0, _options2.validate)("arguments", inputOpts) : {}, { envName = (0, _environment.getEnv)(), cwd: cwd3 = ".", root: rootDir = ".", rootMode = "root", caller, cloneInputAst = true } = args, absoluteCwd = _path().resolve(cwd3), absoluteRootDir = function(rootDir2, rootMode2) {
|
|
6800
6800
|
switch (rootMode2) {
|
|
6801
6801
|
case "root":
|
|
6802
6802
|
return rootDir2;
|
|
@@ -6813,7 +6813,7 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
6813
6813
|
default:
|
|
6814
6814
|
throw new Error("Assertion failure - unknown rootMode value.");
|
|
6815
6815
|
}
|
|
6816
|
-
}(_path().resolve(absoluteCwd, rootDir), rootMode), filename = "string" == typeof args.filename ? _path().resolve(
|
|
6816
|
+
}(_path().resolve(absoluteCwd, rootDir), rootMode), filename = "string" == typeof args.filename ? _path().resolve(cwd3, args.filename) : void 0, context = { filename, cwd: absoluteCwd, root: absoluteRootDir, envName, caller, showConfig: (yield* (0, _index.resolveShowConfigPath)(absoluteCwd)) === filename }, configChain = yield* (0, _configChain.buildRootChain)(args, context);
|
|
6817
6817
|
if (!configChain) return null;
|
|
6818
6818
|
const merged = { assumptions: {} };
|
|
6819
6819
|
configChain.options.forEach((opts) => {
|
|
@@ -6843,14 +6843,14 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
6843
6843
|
}, "_path"), data2;
|
|
6844
6844
|
}
|
|
6845
6845
|
__name(_path, "_path");
|
|
6846
|
-
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(pattern,
|
|
6847
|
-
const parts = _path().resolve(
|
|
6846
|
+
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(pattern, dirname5) {
|
|
6847
|
+
const parts = _path().resolve(dirname5, pattern).split(_path().sep);
|
|
6848
6848
|
return new RegExp(["^", ...parts.map((part, i2) => {
|
|
6849
6849
|
const last2 = i2 === parts.length - 1;
|
|
6850
|
-
return "**" === part ? last2 ? starStarPatLast : starStarPat : "*" === part ? last2 ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp2(part.slice(1)) + (last2 ? endSep :
|
|
6850
|
+
return "**" === part ? last2 ? starStarPatLast : starStarPat : "*" === part ? last2 ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp2(part.slice(1)) + (last2 ? endSep : sep3) : escapeRegExp2(part) + (last2 ? endSep : sep3);
|
|
6851
6851
|
})].join(""));
|
|
6852
6852
|
};
|
|
6853
|
-
const
|
|
6853
|
+
const sep3 = `\\${_path().sep}`, endSep = `(?:${sep3}|$)`, substitution = `[^${sep3}]+`, starPat = `(?:${substitution}${sep3})`, starPatLast = `(?:${substitution}${endSep})`, starStarPat = `${starPat}*?`, starStarPatLast = `${starPat}*?${starPatLast}?`;
|
|
6854
6854
|
function escapeRegExp2(string) {
|
|
6855
6855
|
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
|
|
6856
6856
|
}
|
|
@@ -7412,12 +7412,12 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
7412
7412
|
if (!result2) {
|
|
7413
7413
|
if (resultP) return promiseReferenced = true, yield* (0, _async.waitFor)(resultP);
|
|
7414
7414
|
if (yield* (0, _async.isAsync)()) {
|
|
7415
|
-
let
|
|
7415
|
+
let resolve4, reject2;
|
|
7416
7416
|
resultP = new Promise((res, rej) => {
|
|
7417
|
-
|
|
7417
|
+
resolve4 = res, reject2 = rej;
|
|
7418
7418
|
});
|
|
7419
7419
|
try {
|
|
7420
|
-
result2 = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced &&
|
|
7420
|
+
result2 = { ok: true, value: yield* fn2() }, resultP = null, promiseReferenced && resolve4(result2.value);
|
|
7421
7421
|
} catch (error) {
|
|
7422
7422
|
result2 = { ok: false, value: error }, resultP = null, promiseReferenced && reject2(error);
|
|
7423
7423
|
}
|
|
@@ -7524,8 +7524,8 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
7524
7524
|
var _index2 = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/index.js"), _transform = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform.js"), _transformFile = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform-file.js"), _transformAst = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform-ast.js"), _parse = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/parse.js");
|
|
7525
7525
|
__webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/index.js");
|
|
7526
7526
|
exports3.version = "7.26.0";
|
|
7527
|
-
exports3.resolvePlugin = (name,
|
|
7528
|
-
exports3.resolvePreset = (name,
|
|
7527
|
+
exports3.resolvePlugin = (name, dirname5) => resolvers.resolvePlugin(name, dirname5, false).filepath;
|
|
7528
|
+
exports3.resolvePreset = (name, dirname5) => resolvers.resolvePreset(name, dirname5, false).filepath;
|
|
7529
7529
|
exports3.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
|
|
7530
7530
|
exports3.OptionManager = class {
|
|
7531
7531
|
init(opts) {
|
|
@@ -8177,7 +8177,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8177
8177
|
}
|
|
8178
8178
|
__name(_path, "_path");
|
|
8179
8179
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(config) {
|
|
8180
|
-
const { filename, cwd:
|
|
8180
|
+
const { filename, cwd: cwd3, filenameRelative = "string" == typeof filename ? _path().relative(cwd3, filename) : "unknown", sourceType = "module", inputSourceMap, sourceMaps = !!inputSourceMap, sourceRoot = config.options.moduleRoot, sourceFileName = _path().basename(filenameRelative), comments = true, compact: compact2 = "auto" } = config.options, opts = config.options, options = Object.assign({}, opts, { parserOpts: Object.assign({ sourceType: ".mjs" === _path().extname(filenameRelative) ? "module" : sourceType, sourceFileName: filename, plugins: [] }, opts.parserOpts), generatorOpts: Object.assign({ filename, auxiliaryCommentBefore: opts.auxiliaryCommentBefore, auxiliaryCommentAfter: opts.auxiliaryCommentAfter, retainLines: opts.retainLines, comments, shouldPrintComment: opts.shouldPrintComment, compact: compact2, minified: opts.minified, sourceMaps, sourceRoot, sourceFileName }, opts.generatorOpts) });
|
|
8181
8181
|
for (const plugins of config.passes) for (const plugin of plugins) plugin.manipulateOptions && plugin.manipulateOptions(options, options.parserOpts);
|
|
8182
8182
|
return options;
|
|
8183
8183
|
};
|
|
@@ -8509,8 +8509,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
8509
8509
|
const packageType = getPackageType2(url);
|
|
8510
8510
|
return "none" === packageType || "commonjs" === packageType ? "commonjs" : "module";
|
|
8511
8511
|
}
|
|
8512
|
-
const
|
|
8513
|
-
if (
|
|
8512
|
+
const format4 = extensionFormatMap2[value2];
|
|
8513
|
+
if (format4) return format4;
|
|
8514
8514
|
if (ignoreErrors) return;
|
|
8515
8515
|
const filepath = (0, _url().fileURLToPath)(url);
|
|
8516
8516
|
throw new ERR_UNKNOWN_FILE_EXTENSION2(value2, filepath);
|
|
@@ -9878,11 +9878,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
9878
9878
|
printer.tokenMap && node.start && node.end ? printer.tokenMap.endMatches(node, ",") ? printer.token(",") : printer.tokenMap.endMatches(node, ";") && printer.semicolon() : printer.semicolon();
|
|
9879
9879
|
}
|
|
9880
9880
|
__name(maybePrintTrailingCommaOrSemicolon, "maybePrintTrailingCommaOrSemicolon");
|
|
9881
|
-
function tsPrintUnionOrIntersectionType(printer, node,
|
|
9881
|
+
function tsPrintUnionOrIntersectionType(printer, node, sep3) {
|
|
9882
9882
|
var _printer$tokenMap;
|
|
9883
9883
|
let hasLeadingToken = 0;
|
|
9884
|
-
null != (_printer$tokenMap = printer.tokenMap) && _printer$tokenMap.startMatches(node,
|
|
9885
|
-
this.space(), this.token(
|
|
9884
|
+
null != (_printer$tokenMap = printer.tokenMap) && _printer$tokenMap.startMatches(node, sep3) && (hasLeadingToken = 1, printer.token(sep3)), printer.printJoin(node.types, void 0, void 0, function(i2) {
|
|
9885
|
+
this.space(), this.token(sep3, null, i2 + hasLeadingToken), this.space();
|
|
9886
9886
|
});
|
|
9887
9887
|
}
|
|
9888
9888
|
__name(tsPrintUnionOrIntersectionType, "tsPrintUnionOrIntersectionType");
|
|
@@ -10106,8 +10106,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10106
10106
|
}, "./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/generators/typescript.js"), "./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/index.js": /* @__PURE__ */ __name((__unused_webpack_module, exports3, __webpack_require__2) => {
|
|
10107
10107
|
"use strict";
|
|
10108
10108
|
Object.defineProperty(exports3, "__esModule", { value: true }), exports3.default = function(ast, opts = {}, code) {
|
|
10109
|
-
const
|
|
10110
|
-
return new _printer.default(
|
|
10109
|
+
const format4 = normalizeOptions(code, opts, ast), map2 = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
|
|
10110
|
+
return new _printer.default(format4, map2, ast.tokens, "string" == typeof code ? code : null).generate(ast);
|
|
10111
10111
|
};
|
|
10112
10112
|
var _sourceMap = __webpack_require__2("./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/source-map.js"), _printer = __webpack_require__2("./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/printer.js");
|
|
10113
10113
|
function normalizeOptions(code, opts, ast) {
|
|
@@ -10119,11 +10119,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10119
10119
|
if (opts.jsescOption) throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");
|
|
10120
10120
|
if (!Array.isArray(ast.tokens)) throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.");
|
|
10121
10121
|
}
|
|
10122
|
-
const
|
|
10122
|
+
const format4 = { auxiliaryCommentBefore: opts.auxiliaryCommentBefore, auxiliaryCommentAfter: opts.auxiliaryCommentAfter, shouldPrintComment: opts.shouldPrintComment, preserveFormat: opts.experimental_preserveFormat, retainLines: opts.retainLines, retainFunctionParens: opts.retainFunctionParens, comments: null == opts.comments || opts.comments, compact: opts.compact, minified: opts.minified, concise: opts.concise, indent: { adjustMultilineComment: true, style: " " }, jsescOption: Object.assign({ quotes: "double", wrap: true, minimal: false }, opts.jsescOption), topicToken: opts.topicToken, importAttributesKeyword: opts.importAttributesKeyword };
|
|
10123
10123
|
var _opts$recordAndTupleS;
|
|
10124
|
-
|
|
10125
|
-
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } =
|
|
10126
|
-
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (
|
|
10124
|
+
format4.decoratorsBeforeExport = opts.decoratorsBeforeExport, format4.jsescOption.json = opts.jsonCompatibleStrings, format4.recordAndTupleSyntaxType = null != (_opts$recordAndTupleS = opts.recordAndTupleSyntaxType) ? _opts$recordAndTupleS : "hash", format4.minified ? (format4.compact = true, format4.shouldPrintComment = format4.shouldPrintComment || (() => format4.comments)) : format4.shouldPrintComment = format4.shouldPrintComment || ((value2) => format4.comments || value2.includes("@license") || value2.includes("@preserve")), "auto" === format4.compact && (format4.compact = "string" == typeof code && code.length > 5e5, format4.compact && console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${opts.filename} as it exceeds the max of 500KB.`)), (format4.compact || format4.preserveFormat) && (format4.indent.adjustMultilineComment = false);
|
|
10125
|
+
const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } = format4;
|
|
10126
|
+
return auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore) && (format4.auxiliaryCommentBefore = void 0), auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter) && (format4.auxiliaryCommentAfter = void 0), format4;
|
|
10127
10127
|
}
|
|
10128
10128
|
__name(normalizeOptions, "normalizeOptions");
|
|
10129
10129
|
exports3.CodeGenerator = class {
|
|
@@ -10399,8 +10399,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10399
10399
|
static {
|
|
10400
10400
|
__name(this, "Printer");
|
|
10401
10401
|
}
|
|
10402
|
-
constructor(
|
|
10403
|
-
this.inForStatementInit = false, this.tokenContext = 0, this._tokens = null, this._originalCode = null, this._currentNode = null, this._indent = 0, this._indentRepeat = 0, this._insideAux = false, this._noLineTerminator = false, this._noLineTerminatorAfterNode = null, this._printAuxAfterOnNextUserNode = false, this._printedComments = /* @__PURE__ */ new Set(), this._endsWithInteger = false, this._endsWithWord = false, this._endsWithDiv = false, this._lastCommentLine = 0, this._endsWithInnerRaw = false, this._indentInnerComments = true, this.tokenMap = null, this._boundGetRawIdentifier = this._getRawIdentifier.bind(this), this._printSemicolonBeforeNextNode = -1, this._printSemicolonBeforeNextToken = -1, this.format =
|
|
10402
|
+
constructor(format4, map2, tokens, originalCode) {
|
|
10403
|
+
this.inForStatementInit = false, this.tokenContext = 0, this._tokens = null, this._originalCode = null, this._currentNode = null, this._indent = 0, this._indentRepeat = 0, this._insideAux = false, this._noLineTerminator = false, this._noLineTerminatorAfterNode = null, this._printAuxAfterOnNextUserNode = false, this._printedComments = /* @__PURE__ */ new Set(), this._endsWithInteger = false, this._endsWithWord = false, this._endsWithDiv = false, this._lastCommentLine = 0, this._endsWithInnerRaw = false, this._indentInnerComments = true, this.tokenMap = null, this._boundGetRawIdentifier = this._getRawIdentifier.bind(this), this._printSemicolonBeforeNextNode = -1, this._printSemicolonBeforeNextToken = -1, this.format = format4, this._tokens = tokens, this._originalCode = originalCode, this._indentRepeat = format4.indent.style.length, this._inputMap = null == map2 ? void 0 : map2._inputMap, this._buf = new _buffer.default(map2, format4.indent.style[0]);
|
|
10404
10404
|
}
|
|
10405
10405
|
enterForStatementInit() {
|
|
10406
10406
|
return this.inForStatementInit ? () => {
|
|
@@ -10419,12 +10419,12 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10419
10419
|
return this.format.preserveFormat && (this.tokenMap = new _tokenMap.TokenMap(ast, this._tokens, this._originalCode)), this.print(ast), this._maybeAddAuxComment(), this._buf.get();
|
|
10420
10420
|
}
|
|
10421
10421
|
indent() {
|
|
10422
|
-
const { format:
|
|
10423
|
-
|
|
10422
|
+
const { format: format4 } = this;
|
|
10423
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent++;
|
|
10424
10424
|
}
|
|
10425
10425
|
dedent() {
|
|
10426
|
-
const { format:
|
|
10427
|
-
|
|
10426
|
+
const { format: format4 } = this;
|
|
10427
|
+
format4.preserveFormat || format4.compact || format4.concise || this._indent--;
|
|
10428
10428
|
}
|
|
10429
10429
|
semicolon(force = false) {
|
|
10430
10430
|
if (this._maybeAddAuxComment(), force) return this._appendChar(59), void (this._noLineTerminator = false);
|
|
@@ -10445,8 +10445,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10445
10445
|
this.sourceWithOffset("end", node.loc, -1), this.tokenChar(41);
|
|
10446
10446
|
}
|
|
10447
10447
|
space(force = false) {
|
|
10448
|
-
const { format:
|
|
10449
|
-
if (!
|
|
10448
|
+
const { format: format4 } = this;
|
|
10449
|
+
if (!format4.compact && !format4.preserveFormat) {
|
|
10450
10450
|
if (force) this._space();
|
|
10451
10451
|
else if (this._buf.hasContent()) {
|
|
10452
10452
|
const lastCp = this.getLastChar();
|
|
@@ -10545,8 +10545,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10545
10545
|
for (let i2 = 0; i2 < count; i2++) this._newline();
|
|
10546
10546
|
}
|
|
10547
10547
|
_catchUp(prop, loc) {
|
|
10548
|
-
const { format:
|
|
10549
|
-
if (!
|
|
10548
|
+
const { format: format4 } = this;
|
|
10549
|
+
if (!format4.preserveFormat) return void (format4.retainLines && null != loc && loc[prop] && this.catchUp(loc[prop].line));
|
|
10550
10550
|
const pos = null == loc ? void 0 : loc[prop];
|
|
10551
10551
|
null != pos && this._catchUpTo(pos);
|
|
10552
10552
|
}
|
|
@@ -10570,8 +10570,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10570
10570
|
var _node$extra, _node$leadingComments, _node$leadingComments2;
|
|
10571
10571
|
if (!node) return;
|
|
10572
10572
|
this._endsWithInnerRaw = false;
|
|
10573
|
-
const nodeType = node.type,
|
|
10574
|
-
node._compact && (
|
|
10573
|
+
const nodeType = node.type, format4 = this.format, oldConcise = format4.concise;
|
|
10574
|
+
node._compact && (format4.concise = true);
|
|
10575
10575
|
const printMethod = this[nodeType];
|
|
10576
10576
|
if (void 0 === printMethod) throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`);
|
|
10577
10577
|
const parent = this._currentNode;
|
|
@@ -10579,7 +10579,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10579
10579
|
const oldInAux = this._insideAux;
|
|
10580
10580
|
this._insideAux = null == node.loc, this._maybeAddAuxComment(this._insideAux && !oldInAux);
|
|
10581
10581
|
const parenthesized = null == (_node$extra = node.extra) ? void 0 : _node$extra.parenthesized;
|
|
10582
|
-
let shouldPrintParens = parenthesized &&
|
|
10582
|
+
let shouldPrintParens = parenthesized && format4.preserveFormat || parenthesized && format4.retainFunctionParens && "FunctionExpression" === nodeType || needsParens(node, parent, this.tokenContext, this.inForStatementInit, format4.preserveFormat ? this._boundGetRawIdentifier : void 0);
|
|
10583
10583
|
if (!shouldPrintParens && parenthesized && null != (_node$leadingComments = node.leadingComments) && _node$leadingComments.length && "CommentBlock" === node.leadingComments[0].type) {
|
|
10584
10584
|
switch (null == parent ? void 0 : parent.type) {
|
|
10585
10585
|
case "ExpressionStatement":
|
|
@@ -10600,7 +10600,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10600
10600
|
(!shouldPrintParens && this._noLineTerminator && (null != (_node$leadingComments2 = node.leadingComments) && _node$leadingComments2.some(commentIsNewline) || this.format.retainLines && node.loc && node.loc.start.line > this._buf.getCurrentLine()) && (shouldPrintParens = true, indentParenthesized = true), shouldPrintParens) || (noLineTerminatorAfter || (noLineTerminatorAfter = parent && this._noLineTerminatorAfterNode === parent && n.isLastChild(parent, node)), noLineTerminatorAfter && (null != (_node$trailingComment = node.trailingComments) && _node$trailingComment.some(commentIsNewline) ? isExpression(node) && (shouldPrintParens = true) : (oldNoLineTerminatorAfterNode = this._noLineTerminatorAfterNode, this._noLineTerminatorAfterNode = node)));
|
|
10601
10601
|
shouldPrintParens && (this.tokenChar(40), indentParenthesized && this.indent(), this._endsWithInnerRaw = false, this.inForStatementInit && (oldInForStatementInitWasTrue = true, this.inForStatementInit = false), oldNoLineTerminatorAfterNode = this._noLineTerminatorAfterNode, this._noLineTerminatorAfterNode = null), this._lastCommentLine = 0, this._printLeadingComments(node, parent);
|
|
10602
10602
|
const loc = "Program" === nodeType || "File" === nodeType ? null : node.loc;
|
|
10603
|
-
this.exactSource(loc, printMethod.bind(this, node, parent)), shouldPrintParens ? (this._printTrailingComments(node, parent), indentParenthesized && (this.dedent(), this.newline()), this.tokenChar(41), this._noLineTerminator = noLineTerminatorAfter, oldInForStatementInitWasTrue && (this.inForStatementInit = true)) : noLineTerminatorAfter && !this._noLineTerminator ? (this._noLineTerminator = true, this._printTrailingComments(node, parent)) : this._printTrailingComments(node, parent, trailingCommentsLineOffset), this._currentNode = parent,
|
|
10603
|
+
this.exactSource(loc, printMethod.bind(this, node, parent)), shouldPrintParens ? (this._printTrailingComments(node, parent), indentParenthesized && (this.dedent(), this.newline()), this.tokenChar(41), this._noLineTerminator = noLineTerminatorAfter, oldInForStatementInitWasTrue && (this.inForStatementInit = true)) : noLineTerminatorAfter && !this._noLineTerminator ? (this._noLineTerminator = true, this._printTrailingComments(node, parent)) : this._printTrailingComments(node, parent, trailingCommentsLineOffset), this._currentNode = parent, format4.concise = oldConcise, this._insideAux = oldInAux, void 0 !== oldNoLineTerminatorAfterNode && (this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode), this._endsWithInnerRaw = false;
|
|
10604
10604
|
}
|
|
10605
10605
|
_maybeAddAuxComment(enteredPositionlessNode) {
|
|
10606
10606
|
enteredPositionlessNode && this._printAuxBeforeComment(), this._insideAux || this._printAuxAfterComment();
|
|
@@ -10686,9 +10686,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10686
10686
|
return listEndIndex <= 0 ? null : this.tokenMap.matchesOriginal(this._tokens[listEndIndex - 1], ",");
|
|
10687
10687
|
}
|
|
10688
10688
|
_printNewline(newLine, opts) {
|
|
10689
|
-
const
|
|
10690
|
-
if (
|
|
10691
|
-
if (
|
|
10689
|
+
const format4 = this.format;
|
|
10690
|
+
if (format4.retainLines || format4.compact) return;
|
|
10691
|
+
if (format4.concise) return void this.space();
|
|
10692
10692
|
if (!newLine) return;
|
|
10693
10693
|
const startLine = opts.nextNodeStartLine, lastCommentLine = this._lastCommentLine;
|
|
10694
10694
|
if (startLine > 0 && lastCommentLine > 0) {
|
|
@@ -13255,13 +13255,13 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
13255
13255
|
}(range2, api.version);
|
|
13256
13256
|
}, "assertVersion") };
|
|
13257
13257
|
function declare(builder) {
|
|
13258
|
-
return (api, options,
|
|
13258
|
+
return (api, options, dirname5) => {
|
|
13259
13259
|
var _clonedApi2;
|
|
13260
13260
|
let clonedApi;
|
|
13261
13261
|
for (const name of Object.keys(apiPolyfills)) {
|
|
13262
13262
|
api[name] || (null != clonedApi || (clonedApi = copyApiObject(api)), clonedApi[name] = apiPolyfills[name](clonedApi));
|
|
13263
13263
|
}
|
|
13264
|
-
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {},
|
|
13264
|
+
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {}, dirname5);
|
|
13265
13265
|
};
|
|
13266
13266
|
}
|
|
13267
13267
|
__name(declare, "declare");
|
|
@@ -16621,9 +16621,9 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
16621
16621
|
var _node$extra;
|
|
16622
16622
|
this.toAssignableList(node.params, null == (_node$extra = node.extra) ? void 0 : _node$extra.trailingCommaLoc, false), this.scope.enter(6), super.checkParams(node, false, true), this.scope.exit();
|
|
16623
16623
|
}
|
|
16624
|
-
forwardNoArrowParamsConversionAt(node,
|
|
16624
|
+
forwardNoArrowParamsConversionAt(node, parse8) {
|
|
16625
16625
|
let result2;
|
|
16626
|
-
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result2 =
|
|
16626
|
+
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(node.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), result2 = parse8(), this.state.noArrowParamsConversionAt.pop()) : result2 = parse8(), result2;
|
|
16627
16627
|
}
|
|
16628
16628
|
parseParenItem(node, startLoc) {
|
|
16629
16629
|
const newNode = super.parseParenItem(node, startLoc);
|
|
@@ -23945,8 +23945,8 @@ ${str}
|
|
|
23945
23945
|
}
|
|
23946
23946
|
}
|
|
23947
23947
|
dump() {
|
|
23948
|
-
const
|
|
23949
|
-
console.log(
|
|
23948
|
+
const sep3 = "-".repeat(60);
|
|
23949
|
+
console.log(sep3);
|
|
23950
23950
|
let scope = this;
|
|
23951
23951
|
do {
|
|
23952
23952
|
console.log("#", scope.block.type);
|
|
@@ -23955,7 +23955,7 @@ ${str}
|
|
|
23955
23955
|
console.log(" -", name, { constant: binding.constant, references: binding.references, violations: binding.constantViolations.length, kind: binding.kind });
|
|
23956
23956
|
}
|
|
23957
23957
|
} while (scope = scope.parent);
|
|
23958
|
-
console.log(
|
|
23958
|
+
console.log(sep3);
|
|
23959
23959
|
}
|
|
23960
23960
|
hasLabel(name) {
|
|
23961
23961
|
return !!this.getLabel(name);
|
|
@@ -30248,17 +30248,17 @@ ${trace}`);
|
|
|
30248
30248
|
}
|
|
30249
30249
|
__name(importMetaResolvePlugin, "importMetaResolvePlugin");
|
|
30250
30250
|
var template_lib = __webpack_require__("./node_modules/.pnpm/@babel+template@7.25.9/node_modules/@babel/template/lib/index.js");
|
|
30251
|
-
const
|
|
30252
|
-
function
|
|
30253
|
-
return input ? input.replace(/\\/g, "/").replace(
|
|
30251
|
+
const _DRIVE_LETTER_START_RE3 = /^[A-Za-z]:\//;
|
|
30252
|
+
function normalizeWindowsPath3(input = "") {
|
|
30253
|
+
return input ? input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE3, (r4) => r4.toUpperCase()) : input;
|
|
30254
30254
|
}
|
|
30255
|
-
__name(
|
|
30256
|
-
const
|
|
30255
|
+
__name(normalizeWindowsPath3, "normalizeWindowsPath");
|
|
30256
|
+
const _IS_ABSOLUTE_RE3 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE3 = /^[A-Za-z]:$/;
|
|
30257
30257
|
const pathe_ff20891b_isAbsolute = /* @__PURE__ */ __name(function(p2) {
|
|
30258
|
-
return
|
|
30258
|
+
return _IS_ABSOLUTE_RE3.test(p2);
|
|
30259
30259
|
}, "pathe_ff20891b_isAbsolute"), pathe_ff20891b_dirname = /* @__PURE__ */ __name(function(p2) {
|
|
30260
|
-
const segments =
|
|
30261
|
-
return 1 === segments.length &&
|
|
30260
|
+
const segments = normalizeWindowsPath3(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
30261
|
+
return 1 === segments.length && _DRIVE_LETTER_RE3.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (pathe_ff20891b_isAbsolute(p2) ? "/" : ".");
|
|
30262
30262
|
}, "pathe_ff20891b_dirname");
|
|
30263
30263
|
var astralIdentifierCodes2 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], astralIdentifierStartCodes2 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], nonASCIIidentifierStartChars2 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", reservedWords2 = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, ecma5AndLessKeywords2 = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", keywords$12 = { 5: ecma5AndLessKeywords2, "5module": ecma5AndLessKeywords2 + " export import", 6: ecma5AndLessKeywords2 + " const class extends export import super" }, keywordRelationalOperator2 = /^in(stanceof)?$/, nonASCIIidentifierStart2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "]"), nonASCIIidentifier2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");
|
|
30264
30264
|
function isInAstralSet2(code, set) {
|
|
@@ -38176,6 +38176,179 @@ var init_dist2 = __esm({
|
|
|
38176
38176
|
}
|
|
38177
38177
|
});
|
|
38178
38178
|
|
|
38179
|
+
// ../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs
|
|
38180
|
+
function normalizeWindowsPath2(input = "") {
|
|
38181
|
+
if (!input) {
|
|
38182
|
+
return input;
|
|
38183
|
+
}
|
|
38184
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r4) => r4.toUpperCase());
|
|
38185
|
+
}
|
|
38186
|
+
function cwd2() {
|
|
38187
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
38188
|
+
return process.cwd().replace(/\\/g, "/");
|
|
38189
|
+
}
|
|
38190
|
+
return "/";
|
|
38191
|
+
}
|
|
38192
|
+
function normalizeString2(path6, allowAboveRoot) {
|
|
38193
|
+
let res = "";
|
|
38194
|
+
let lastSegmentLength = 0;
|
|
38195
|
+
let lastSlash = -1;
|
|
38196
|
+
let dots = 0;
|
|
38197
|
+
let char = null;
|
|
38198
|
+
for (let index = 0; index <= path6.length; ++index) {
|
|
38199
|
+
if (index < path6.length) {
|
|
38200
|
+
char = path6[index];
|
|
38201
|
+
} else if (char === "/") {
|
|
38202
|
+
break;
|
|
38203
|
+
} else {
|
|
38204
|
+
char = "/";
|
|
38205
|
+
}
|
|
38206
|
+
if (char === "/") {
|
|
38207
|
+
if (lastSlash === index - 1 || dots === 1) ;
|
|
38208
|
+
else if (dots === 2) {
|
|
38209
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
38210
|
+
if (res.length > 2) {
|
|
38211
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
38212
|
+
if (lastSlashIndex === -1) {
|
|
38213
|
+
res = "";
|
|
38214
|
+
lastSegmentLength = 0;
|
|
38215
|
+
} else {
|
|
38216
|
+
res = res.slice(0, lastSlashIndex);
|
|
38217
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
38218
|
+
}
|
|
38219
|
+
lastSlash = index;
|
|
38220
|
+
dots = 0;
|
|
38221
|
+
continue;
|
|
38222
|
+
} else if (res.length > 0) {
|
|
38223
|
+
res = "";
|
|
38224
|
+
lastSegmentLength = 0;
|
|
38225
|
+
lastSlash = index;
|
|
38226
|
+
dots = 0;
|
|
38227
|
+
continue;
|
|
38228
|
+
}
|
|
38229
|
+
}
|
|
38230
|
+
if (allowAboveRoot) {
|
|
38231
|
+
res += res.length > 0 ? "/.." : "..";
|
|
38232
|
+
lastSegmentLength = 2;
|
|
38233
|
+
}
|
|
38234
|
+
} else {
|
|
38235
|
+
if (res.length > 0) {
|
|
38236
|
+
res += `/${path6.slice(lastSlash + 1, index)}`;
|
|
38237
|
+
} else {
|
|
38238
|
+
res = path6.slice(lastSlash + 1, index);
|
|
38239
|
+
}
|
|
38240
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
38241
|
+
}
|
|
38242
|
+
lastSlash = index;
|
|
38243
|
+
dots = 0;
|
|
38244
|
+
} else if (char === "." && dots !== -1) {
|
|
38245
|
+
++dots;
|
|
38246
|
+
} else {
|
|
38247
|
+
dots = -1;
|
|
38248
|
+
}
|
|
38249
|
+
}
|
|
38250
|
+
return res;
|
|
38251
|
+
}
|
|
38252
|
+
var _DRIVE_LETTER_START_RE2, _UNC_REGEX2, _IS_ABSOLUTE_RE2, _DRIVE_LETTER_RE2, normalize2, join2, resolve2, isAbsolute2, dirname2;
|
|
38253
|
+
var init_pathe_BLwDEnA5 = __esm({
|
|
38254
|
+
"../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs"() {
|
|
38255
|
+
init_cjs_shims();
|
|
38256
|
+
_DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
38257
|
+
__name(normalizeWindowsPath2, "normalizeWindowsPath");
|
|
38258
|
+
_UNC_REGEX2 = /^[/\\]{2}/;
|
|
38259
|
+
_IS_ABSOLUTE_RE2 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
38260
|
+
_DRIVE_LETTER_RE2 = /^[A-Za-z]:$/;
|
|
38261
|
+
normalize2 = /* @__PURE__ */ __name(function(path6) {
|
|
38262
|
+
if (path6.length === 0) {
|
|
38263
|
+
return ".";
|
|
38264
|
+
}
|
|
38265
|
+
path6 = normalizeWindowsPath2(path6);
|
|
38266
|
+
const isUNCPath = path6.match(_UNC_REGEX2);
|
|
38267
|
+
const isPathAbsolute = isAbsolute2(path6);
|
|
38268
|
+
const trailingSeparator = path6[path6.length - 1] === "/";
|
|
38269
|
+
path6 = normalizeString2(path6, !isPathAbsolute);
|
|
38270
|
+
if (path6.length === 0) {
|
|
38271
|
+
if (isPathAbsolute) {
|
|
38272
|
+
return "/";
|
|
38273
|
+
}
|
|
38274
|
+
return trailingSeparator ? "./" : ".";
|
|
38275
|
+
}
|
|
38276
|
+
if (trailingSeparator) {
|
|
38277
|
+
path6 += "/";
|
|
38278
|
+
}
|
|
38279
|
+
if (_DRIVE_LETTER_RE2.test(path6)) {
|
|
38280
|
+
path6 += "/";
|
|
38281
|
+
}
|
|
38282
|
+
if (isUNCPath) {
|
|
38283
|
+
if (!isPathAbsolute) {
|
|
38284
|
+
return `//./${path6}`;
|
|
38285
|
+
}
|
|
38286
|
+
return `//${path6}`;
|
|
38287
|
+
}
|
|
38288
|
+
return isPathAbsolute && !isAbsolute2(path6) ? `/${path6}` : path6;
|
|
38289
|
+
}, "normalize");
|
|
38290
|
+
join2 = /* @__PURE__ */ __name(function(...segments) {
|
|
38291
|
+
let path6 = "";
|
|
38292
|
+
for (const seg of segments) {
|
|
38293
|
+
if (!seg) {
|
|
38294
|
+
continue;
|
|
38295
|
+
}
|
|
38296
|
+
if (path6.length > 0) {
|
|
38297
|
+
const pathTrailing = path6[path6.length - 1] === "/";
|
|
38298
|
+
const segLeading = seg[0] === "/";
|
|
38299
|
+
const both = pathTrailing && segLeading;
|
|
38300
|
+
if (both) {
|
|
38301
|
+
path6 += seg.slice(1);
|
|
38302
|
+
} else {
|
|
38303
|
+
path6 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
38304
|
+
}
|
|
38305
|
+
} else {
|
|
38306
|
+
path6 += seg;
|
|
38307
|
+
}
|
|
38308
|
+
}
|
|
38309
|
+
return normalize2(path6);
|
|
38310
|
+
}, "join");
|
|
38311
|
+
__name(cwd2, "cwd");
|
|
38312
|
+
resolve2 = /* @__PURE__ */ __name(function(...arguments_) {
|
|
38313
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument));
|
|
38314
|
+
let resolvedPath = "";
|
|
38315
|
+
let resolvedAbsolute = false;
|
|
38316
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
38317
|
+
const path6 = index >= 0 ? arguments_[index] : cwd2();
|
|
38318
|
+
if (!path6 || path6.length === 0) {
|
|
38319
|
+
continue;
|
|
38320
|
+
}
|
|
38321
|
+
resolvedPath = `${path6}/${resolvedPath}`;
|
|
38322
|
+
resolvedAbsolute = isAbsolute2(path6);
|
|
38323
|
+
}
|
|
38324
|
+
resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute);
|
|
38325
|
+
if (resolvedAbsolute && !isAbsolute2(resolvedPath)) {
|
|
38326
|
+
return `/${resolvedPath}`;
|
|
38327
|
+
}
|
|
38328
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
38329
|
+
}, "resolve");
|
|
38330
|
+
__name(normalizeString2, "normalizeString");
|
|
38331
|
+
isAbsolute2 = /* @__PURE__ */ __name(function(p2) {
|
|
38332
|
+
return _IS_ABSOLUTE_RE2.test(p2);
|
|
38333
|
+
}, "isAbsolute");
|
|
38334
|
+
dirname2 = /* @__PURE__ */ __name(function(p2) {
|
|
38335
|
+
const segments = normalizeWindowsPath2(p2).replace(/\/$/, "").split("/").slice(0, -1);
|
|
38336
|
+
if (segments.length === 1 && _DRIVE_LETTER_RE2.test(segments[0])) {
|
|
38337
|
+
segments[0] += "/";
|
|
38338
|
+
}
|
|
38339
|
+
return segments.join("/") || (isAbsolute2(p2) ? "/" : ".");
|
|
38340
|
+
}, "dirname");
|
|
38341
|
+
}
|
|
38342
|
+
});
|
|
38343
|
+
|
|
38344
|
+
// ../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs
|
|
38345
|
+
var init_dist3 = __esm({
|
|
38346
|
+
"../../node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/index.mjs"() {
|
|
38347
|
+
init_cjs_shims();
|
|
38348
|
+
init_pathe_BLwDEnA5();
|
|
38349
|
+
}
|
|
38350
|
+
});
|
|
38351
|
+
|
|
38179
38352
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
|
|
38180
38353
|
function g(e2, t2) {
|
|
38181
38354
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -41028,18 +41201,18 @@ ${f2}`, i2);
|
|
|
41028
41201
|
});
|
|
41029
41202
|
|
|
41030
41203
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs
|
|
41031
|
-
var
|
|
41204
|
+
var init_dist4 = __esm({
|
|
41032
41205
|
"../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs"() {
|
|
41033
41206
|
init_cjs_shims();
|
|
41034
41207
|
init_confbox_f9f03f05();
|
|
41035
41208
|
}
|
|
41036
41209
|
});
|
|
41037
41210
|
|
|
41038
|
-
// ../../node_modules/.pnpm/pkg-types@1.3.
|
|
41211
|
+
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
41039
41212
|
async function findFile(filename, _options2 = {}) {
|
|
41040
41213
|
const filenames = Array.isArray(filename) ? filename : [filename];
|
|
41041
41214
|
const options = { ...defaultFindOptions, ..._options2 };
|
|
41042
|
-
const basePath =
|
|
41215
|
+
const basePath = resolve2(options.startingFrom);
|
|
41043
41216
|
const leadingSlash = basePath[0] === "/";
|
|
41044
41217
|
const segments = basePath.split("/").filter(Boolean);
|
|
41045
41218
|
if (leadingSlash) {
|
|
@@ -41052,7 +41225,7 @@ async function findFile(filename, _options2 = {}) {
|
|
|
41052
41225
|
if (options.reverse) {
|
|
41053
41226
|
for (let index = root2 + 1; index <= segments.length; index++) {
|
|
41054
41227
|
for (const filename2 of filenames) {
|
|
41055
|
-
const filePath =
|
|
41228
|
+
const filePath = join2(...segments.slice(0, index), filename2);
|
|
41056
41229
|
if (await options.test(filePath)) {
|
|
41057
41230
|
return filePath;
|
|
41058
41231
|
}
|
|
@@ -41061,7 +41234,7 @@ async function findFile(filename, _options2 = {}) {
|
|
|
41061
41234
|
} else {
|
|
41062
41235
|
for (let index = segments.length; index > root2; index--) {
|
|
41063
41236
|
for (const filename2 of filenames) {
|
|
41064
|
-
const filePath =
|
|
41237
|
+
const filePath = join2(...segments.slice(0, index), filename2);
|
|
41065
41238
|
if (await options.test(filePath)) {
|
|
41066
41239
|
return filePath;
|
|
41067
41240
|
}
|
|
@@ -41092,14 +41265,14 @@ async function readPackageJSON(id, options = {}) {
|
|
|
41092
41265
|
return parsed;
|
|
41093
41266
|
}
|
|
41094
41267
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
41095
|
-
const resolvedPath =
|
|
41268
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
41096
41269
|
return findNearestFile("package.json", {
|
|
41097
41270
|
startingFrom: resolvedPath,
|
|
41098
41271
|
...options
|
|
41099
41272
|
});
|
|
41100
41273
|
}
|
|
41101
41274
|
async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
41102
|
-
const resolvedPath =
|
|
41275
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
41103
41276
|
const _options2 = { startingFrom: resolvedPath, ...options };
|
|
41104
41277
|
try {
|
|
41105
41278
|
return await findNearestFile(lockFiles, _options2);
|
|
@@ -41108,11 +41281,11 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
41108
41281
|
throw new Error("No lockfile found from " + id);
|
|
41109
41282
|
}
|
|
41110
41283
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
41111
|
-
const resolvedPath =
|
|
41284
|
+
const resolvedPath = isAbsolute2(id) ? id : await resolvePath(id, options);
|
|
41112
41285
|
const _options2 = { startingFrom: resolvedPath, ...options };
|
|
41113
41286
|
try {
|
|
41114
41287
|
const r4 = await findNearestFile(".git/config", _options2);
|
|
41115
|
-
return
|
|
41288
|
+
return resolve2(r4, "../..");
|
|
41116
41289
|
} catch {
|
|
41117
41290
|
}
|
|
41118
41291
|
try {
|
|
@@ -41120,24 +41293,24 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
41120
41293
|
..._options2,
|
|
41121
41294
|
reverse: true
|
|
41122
41295
|
});
|
|
41123
|
-
return
|
|
41296
|
+
return dirname2(r4);
|
|
41124
41297
|
} catch {
|
|
41125
41298
|
}
|
|
41126
41299
|
try {
|
|
41127
41300
|
const r4 = await findFile(resolvedPath, _options2);
|
|
41128
|
-
return
|
|
41301
|
+
return dirname2(r4);
|
|
41129
41302
|
} catch {
|
|
41130
41303
|
}
|
|
41131
41304
|
throw new Error("Cannot detect workspace root from " + id);
|
|
41132
41305
|
}
|
|
41133
41306
|
var import_node_fs, defaultFindOptions, FileCache, lockFiles;
|
|
41134
|
-
var
|
|
41135
|
-
"../../node_modules/.pnpm/pkg-types@1.3.
|
|
41307
|
+
var init_dist5 = __esm({
|
|
41308
|
+
"../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs"() {
|
|
41136
41309
|
init_cjs_shims();
|
|
41137
41310
|
import_node_fs = require("fs");
|
|
41138
|
-
init_dist();
|
|
41139
|
-
init_dist5();
|
|
41140
41311
|
init_dist3();
|
|
41312
|
+
init_dist6();
|
|
41313
|
+
init_dist4();
|
|
41141
41314
|
defaultFindOptions = {
|
|
41142
41315
|
startingFrom: ".",
|
|
41143
41316
|
rootPattern: /^node_modules$/,
|
|
@@ -41161,14 +41334,15 @@ var init_dist4 = __esm({
|
|
|
41161
41334
|
"package-lock.json",
|
|
41162
41335
|
"pnpm-lock.yaml",
|
|
41163
41336
|
"npm-shrinkwrap.json",
|
|
41164
|
-
"bun.lockb"
|
|
41337
|
+
"bun.lockb",
|
|
41338
|
+
"bun.lock"
|
|
41165
41339
|
];
|
|
41166
41340
|
__name(resolveLockfile, "resolveLockfile");
|
|
41167
41341
|
__name(findWorkspaceDir, "findWorkspaceDir");
|
|
41168
41342
|
}
|
|
41169
41343
|
});
|
|
41170
41344
|
|
|
41171
|
-
// ../../node_modules/.pnpm/mlly@1.7.
|
|
41345
|
+
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
41172
41346
|
function normalizeSlash(path6) {
|
|
41173
41347
|
return path6.replace(/\\/g, "/");
|
|
41174
41348
|
}
|
|
@@ -41376,7 +41550,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
41376
41550
|
) || [null, null, null];
|
|
41377
41551
|
return mimeToFormat(mime);
|
|
41378
41552
|
}
|
|
41379
|
-
function
|
|
41553
|
+
function extname3(url) {
|
|
41380
41554
|
const pathname = url.pathname;
|
|
41381
41555
|
let index = pathname.length;
|
|
41382
41556
|
while (index--) {
|
|
@@ -41391,7 +41565,7 @@ function extname2(url) {
|
|
|
41391
41565
|
return "";
|
|
41392
41566
|
}
|
|
41393
41567
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
41394
|
-
const value2 =
|
|
41568
|
+
const value2 = extname3(url);
|
|
41395
41569
|
if (value2 === ".js") {
|
|
41396
41570
|
const packageType = getPackageType(url);
|
|
41397
41571
|
if (packageType !== "none") {
|
|
@@ -41406,8 +41580,8 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
41406
41580
|
}
|
|
41407
41581
|
return "module";
|
|
41408
41582
|
}
|
|
41409
|
-
const
|
|
41410
|
-
if (
|
|
41583
|
+
const format4 = extensionFormatMap[value2];
|
|
41584
|
+
if (format4) return format4;
|
|
41411
41585
|
if (ignoreErrors) {
|
|
41412
41586
|
return void 0;
|
|
41413
41587
|
}
|
|
@@ -41439,8 +41613,8 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
41439
41613
|
if (import_node_process.default.noDeprecation) {
|
|
41440
41614
|
return;
|
|
41441
41615
|
}
|
|
41442
|
-
const
|
|
41443
|
-
if (
|
|
41616
|
+
const format4 = defaultGetFormatWithoutErrors(url, { parentURL: base.href });
|
|
41617
|
+
if (format4 !== "module") return;
|
|
41444
41618
|
const urlPath = (0, import_node_url.fileURLToPath)(url.href);
|
|
41445
41619
|
const packagePath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
|
|
41446
41620
|
const basePath = (0, import_node_url.fileURLToPath)(base);
|
|
@@ -41557,7 +41731,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
41557
41731
|
error.url = String(resolved);
|
|
41558
41732
|
throw error;
|
|
41559
41733
|
}
|
|
41560
|
-
|
|
41734
|
+
{
|
|
41561
41735
|
const real = (0, import_node_fs2.realpathSync)(filePath);
|
|
41562
41736
|
const { search, hash: hash2 } = resolved;
|
|
41563
41737
|
resolved = (0, import_node_url.pathToFileURL)(real + (filePath.endsWith(import_node_path.default.sep) ? "/" : ""));
|
|
@@ -42104,7 +42278,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
42104
42278
|
if (resolved.protocol !== "file:") {
|
|
42105
42279
|
return resolved;
|
|
42106
42280
|
}
|
|
42107
|
-
return finalizeResolution(resolved, base
|
|
42281
|
+
return finalizeResolution(resolved, base);
|
|
42108
42282
|
}
|
|
42109
42283
|
function fileURLToPath(id) {
|
|
42110
42284
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
@@ -42153,7 +42327,7 @@ function _resolve(id, options = {}) {
|
|
|
42153
42327
|
if (id.startsWith("file://")) {
|
|
42154
42328
|
id = fileURLToPath(id);
|
|
42155
42329
|
}
|
|
42156
|
-
if (
|
|
42330
|
+
if (isAbsolute2(id)) {
|
|
42157
42331
|
try {
|
|
42158
42332
|
const stat = (0, import_node_fs2.statSync)(id);
|
|
42159
42333
|
if (stat.isFile()) {
|
|
@@ -42230,14 +42404,14 @@ function resolvePath(id, options) {
|
|
|
42230
42404
|
}
|
|
42231
42405
|
}
|
|
42232
42406
|
var import_node_module2, import_node_fs2, import_node_url, import_node_assert, import_node_process, import_node_path, import_node_v8, import_node_util, BUILTIN_MODULES, own$1, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, hasOwnProperty$1, ERR_INVALID_PACKAGE_CONFIG$1, cache, ERR_UNKNOWN_FILE_EXTENSION, hasOwnProperty3, extensionFormatMap, protocolHandlers, RegExpPrototypeSymbolReplace, ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST, own, invalidSegmentRegEx, deprecatedInvalidSegmentRegEx, invalidPackageNameRegEx, patternRegEx, encodedSeparatorRegEx, emittedPackageWarnings, doubleSlashRegEx, DEFAULT_CONDITIONS_SET, DEFAULT_EXTENSIONS, NOT_FOUND_ERRORS;
|
|
42233
|
-
var
|
|
42234
|
-
"../../node_modules/.pnpm/mlly@1.7.
|
|
42407
|
+
var init_dist6 = __esm({
|
|
42408
|
+
"../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs"() {
|
|
42235
42409
|
init_cjs_shims();
|
|
42236
42410
|
init_acorn();
|
|
42237
42411
|
import_node_module2 = require("module");
|
|
42238
42412
|
import_node_fs2 = __toESM(require("fs"), 1);
|
|
42239
42413
|
init_dist2();
|
|
42240
|
-
|
|
42414
|
+
init_dist3();
|
|
42241
42415
|
import_node_url = require("url");
|
|
42242
42416
|
import_node_assert = __toESM(require("assert"), 1);
|
|
42243
42417
|
import_node_process = __toESM(require("process"), 1);
|
|
@@ -42515,7 +42689,7 @@ var init_dist5 = __esm({
|
|
|
42515
42689
|
}
|
|
42516
42690
|
};
|
|
42517
42691
|
__name(getDataProtocolModuleFormat, "getDataProtocolModuleFormat");
|
|
42518
|
-
__name(
|
|
42692
|
+
__name(extname3, "extname");
|
|
42519
42693
|
__name(getFileProtocolModuleFormat, "getFileProtocolModuleFormat");
|
|
42520
42694
|
__name(getHttpProtocolModuleFormat, "getHttpProtocolModuleFormat");
|
|
42521
42695
|
__name(defaultGetFormatWithoutErrors, "defaultGetFormatWithoutErrors");
|
|
@@ -42736,7 +42910,7 @@ var require_main = __commonJS({
|
|
|
42736
42910
|
var packageJson = require_package();
|
|
42737
42911
|
var version2 = packageJson.version;
|
|
42738
42912
|
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
42739
|
-
function
|
|
42913
|
+
function parse8(src) {
|
|
42740
42914
|
const obj = {};
|
|
42741
42915
|
let lines2 = src.toString();
|
|
42742
42916
|
lines2 = lines2.replace(/\r\n?/mg, "\n");
|
|
@@ -42755,7 +42929,7 @@ var require_main = __commonJS({
|
|
|
42755
42929
|
}
|
|
42756
42930
|
return obj;
|
|
42757
42931
|
}
|
|
42758
|
-
__name(
|
|
42932
|
+
__name(parse8, "parse");
|
|
42759
42933
|
function _parseVault(options) {
|
|
42760
42934
|
const vaultPath = _vaultPath(options);
|
|
42761
42935
|
const result2 = DotenvModule.configDotenv({
|
|
@@ -43011,7 +43185,7 @@ var require_main = __commonJS({
|
|
|
43011
43185
|
_parseVault,
|
|
43012
43186
|
config,
|
|
43013
43187
|
decrypt,
|
|
43014
|
-
parse:
|
|
43188
|
+
parse: parse8,
|
|
43015
43189
|
populate
|
|
43016
43190
|
};
|
|
43017
43191
|
module2.exports.configDotenv = DotenvModule.configDotenv;
|
|
@@ -43558,10 +43732,10 @@ var require_minipass = __commonJS({
|
|
|
43558
43732
|
}
|
|
43559
43733
|
// stream.promise().then(() => done, er => emitted error)
|
|
43560
43734
|
promise() {
|
|
43561
|
-
return new Promise((
|
|
43735
|
+
return new Promise((resolve4, reject2) => {
|
|
43562
43736
|
this.on(DESTROYED, () => reject2(new Error("stream destroyed")));
|
|
43563
43737
|
this.on("error", (er2) => reject2(er2));
|
|
43564
|
-
this.on("end", () =>
|
|
43738
|
+
this.on("end", () => resolve4());
|
|
43565
43739
|
});
|
|
43566
43740
|
}
|
|
43567
43741
|
// for await (let chunk of stream)
|
|
@@ -43582,7 +43756,7 @@ var require_minipass = __commonJS({
|
|
|
43582
43756
|
value: res
|
|
43583
43757
|
});
|
|
43584
43758
|
if (this[EOF]) return stop();
|
|
43585
|
-
let
|
|
43759
|
+
let resolve4 = null;
|
|
43586
43760
|
let reject2 = null;
|
|
43587
43761
|
const onerr = /* @__PURE__ */ __name((er2) => {
|
|
43588
43762
|
this.removeListener("data", ondata);
|
|
@@ -43596,7 +43770,7 @@ var require_minipass = __commonJS({
|
|
|
43596
43770
|
this.removeListener("end", onend);
|
|
43597
43771
|
this.removeListener(DESTROYED, ondestroy);
|
|
43598
43772
|
this.pause();
|
|
43599
|
-
|
|
43773
|
+
resolve4({
|
|
43600
43774
|
value: value2,
|
|
43601
43775
|
done: !!this[EOF]
|
|
43602
43776
|
});
|
|
@@ -43606,14 +43780,14 @@ var require_minipass = __commonJS({
|
|
|
43606
43780
|
this.removeListener("data", ondata);
|
|
43607
43781
|
this.removeListener(DESTROYED, ondestroy);
|
|
43608
43782
|
stop();
|
|
43609
|
-
|
|
43783
|
+
resolve4({
|
|
43610
43784
|
done: true
|
|
43611
43785
|
});
|
|
43612
43786
|
}, "onend");
|
|
43613
43787
|
const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
|
|
43614
43788
|
return new Promise((res2, rej) => {
|
|
43615
43789
|
reject2 = rej;
|
|
43616
|
-
|
|
43790
|
+
resolve4 = res2;
|
|
43617
43791
|
this.once(DESTROYED, ondestroy);
|
|
43618
43792
|
this.once("error", onerr);
|
|
43619
43793
|
this.once("end", onend);
|
|
@@ -44197,10 +44371,10 @@ var require_minipass2 = __commonJS({
|
|
|
44197
44371
|
}
|
|
44198
44372
|
// stream.promise().then(() => done, er => emitted error)
|
|
44199
44373
|
promise() {
|
|
44200
|
-
return new Promise((
|
|
44374
|
+
return new Promise((resolve4, reject2) => {
|
|
44201
44375
|
this.on(DESTROYED, () => reject2(new Error("stream destroyed")));
|
|
44202
44376
|
this.on("error", (er2) => reject2(er2));
|
|
44203
|
-
this.on("end", () =>
|
|
44377
|
+
this.on("end", () => resolve4());
|
|
44204
44378
|
});
|
|
44205
44379
|
}
|
|
44206
44380
|
// for await (let chunk of stream)
|
|
@@ -44214,7 +44388,7 @@ var require_minipass2 = __commonJS({
|
|
|
44214
44388
|
if (this[EOF]) return Promise.resolve({
|
|
44215
44389
|
done: true
|
|
44216
44390
|
});
|
|
44217
|
-
let
|
|
44391
|
+
let resolve4 = null;
|
|
44218
44392
|
let reject2 = null;
|
|
44219
44393
|
const onerr = /* @__PURE__ */ __name((er2) => {
|
|
44220
44394
|
this.removeListener("data", ondata);
|
|
@@ -44225,7 +44399,7 @@ var require_minipass2 = __commonJS({
|
|
|
44225
44399
|
this.removeListener("error", onerr);
|
|
44226
44400
|
this.removeListener("end", onend);
|
|
44227
44401
|
this.pause();
|
|
44228
|
-
|
|
44402
|
+
resolve4({
|
|
44229
44403
|
value: value2,
|
|
44230
44404
|
done: !!this[EOF]
|
|
44231
44405
|
});
|
|
@@ -44233,14 +44407,14 @@ var require_minipass2 = __commonJS({
|
|
|
44233
44407
|
const onend = /* @__PURE__ */ __name(() => {
|
|
44234
44408
|
this.removeListener("error", onerr);
|
|
44235
44409
|
this.removeListener("data", ondata);
|
|
44236
|
-
|
|
44410
|
+
resolve4({
|
|
44237
44411
|
done: true
|
|
44238
44412
|
});
|
|
44239
44413
|
}, "onend");
|
|
44240
44414
|
const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
|
|
44241
44415
|
return new Promise((res2, rej) => {
|
|
44242
44416
|
reject2 = rej;
|
|
44243
|
-
|
|
44417
|
+
resolve4 = res2;
|
|
44244
44418
|
this.once(DESTROYED, ondestroy);
|
|
44245
44419
|
this.once("error", onerr);
|
|
44246
44420
|
this.once("end", onend);
|
|
@@ -44840,7 +45014,7 @@ var require_large_numbers = __commonJS({
|
|
|
44840
45014
|
}
|
|
44841
45015
|
}
|
|
44842
45016
|
}, "encodeNegative");
|
|
44843
|
-
var
|
|
45017
|
+
var parse8 = /* @__PURE__ */ __name((buf) => {
|
|
44844
45018
|
const pre = buf[0];
|
|
44845
45019
|
const value2 = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
|
44846
45020
|
if (value2 === null) {
|
|
@@ -44887,7 +45061,7 @@ var require_large_numbers = __commonJS({
|
|
|
44887
45061
|
var twosComp = /* @__PURE__ */ __name((byte) => (255 ^ byte) + 1 & 255, "twosComp");
|
|
44888
45062
|
module2.exports = {
|
|
44889
45063
|
encode,
|
|
44890
|
-
parse:
|
|
45064
|
+
parse: parse8
|
|
44891
45065
|
};
|
|
44892
45066
|
}
|
|
44893
45067
|
});
|
|
@@ -45313,15 +45487,15 @@ var require_winchars = __commonJS({
|
|
|
45313
45487
|
var require_strip_absolute_path = __commonJS({
|
|
45314
45488
|
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/strip-absolute-path.js"(exports2, module2) {
|
|
45315
45489
|
init_cjs_shims();
|
|
45316
|
-
var { isAbsolute:
|
|
45490
|
+
var { isAbsolute: isAbsolute4, parse: parse8 } = require("path").win32;
|
|
45317
45491
|
module2.exports = (path6) => {
|
|
45318
45492
|
let r4 = "";
|
|
45319
|
-
let parsed =
|
|
45320
|
-
while (
|
|
45493
|
+
let parsed = parse8(path6);
|
|
45494
|
+
while (isAbsolute4(path6) || parsed.root) {
|
|
45321
45495
|
const root2 = path6.charAt(0) === "/" && path6.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
45322
45496
|
path6 = path6.slice(root2.length);
|
|
45323
45497
|
r4 += root2;
|
|
45324
|
-
parsed =
|
|
45498
|
+
parsed = parse8(path6);
|
|
45325
45499
|
}
|
|
45326
45500
|
return [
|
|
45327
45501
|
r4,
|
|
@@ -47500,12 +47674,12 @@ var require_list = __commonJS({
|
|
|
47500
47674
|
}
|
|
47501
47675
|
}, "listFileSync");
|
|
47502
47676
|
var listFile = /* @__PURE__ */ __name((opt, cb2) => {
|
|
47503
|
-
const
|
|
47677
|
+
const parse8 = new Parser4(opt);
|
|
47504
47678
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
47505
47679
|
const file = opt.file;
|
|
47506
|
-
const p2 = new Promise((
|
|
47507
|
-
|
|
47508
|
-
|
|
47680
|
+
const p2 = new Promise((resolve4, reject2) => {
|
|
47681
|
+
parse8.on("error", reject2);
|
|
47682
|
+
parse8.on("end", resolve4);
|
|
47509
47683
|
fs3.stat(file, (er2, stat) => {
|
|
47510
47684
|
if (er2) {
|
|
47511
47685
|
reject2(er2);
|
|
@@ -47515,7 +47689,7 @@ var require_list = __commonJS({
|
|
|
47515
47689
|
size: stat.size
|
|
47516
47690
|
});
|
|
47517
47691
|
stream.on("error", reject2);
|
|
47518
|
-
stream.pipe(
|
|
47692
|
+
stream.pipe(parse8);
|
|
47519
47693
|
}
|
|
47520
47694
|
});
|
|
47521
47695
|
});
|
|
@@ -47756,7 +47930,7 @@ var require_replace = __commonJS({
|
|
|
47756
47930
|
}, "onread");
|
|
47757
47931
|
fs3.read(fd, headBuf, 0, 512, position, onread);
|
|
47758
47932
|
}, "getPos");
|
|
47759
|
-
const promise = new Promise((
|
|
47933
|
+
const promise = new Promise((resolve4, reject2) => {
|
|
47760
47934
|
p2.on("error", reject2);
|
|
47761
47935
|
let flag = "r+";
|
|
47762
47936
|
const onopen = /* @__PURE__ */ __name((er2, fd) => {
|
|
@@ -47781,7 +47955,7 @@ var require_replace = __commonJS({
|
|
|
47781
47955
|
});
|
|
47782
47956
|
p2.pipe(stream);
|
|
47783
47957
|
stream.on("error", reject2);
|
|
47784
|
-
stream.on("close",
|
|
47958
|
+
stream.on("close", resolve4);
|
|
47785
47959
|
addFilesAsync(p2, files);
|
|
47786
47960
|
});
|
|
47787
47961
|
});
|
|
@@ -47897,7 +48071,7 @@ var require_path_arg = __commonJS({
|
|
|
47897
48071
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"(exports2, module2) {
|
|
47898
48072
|
init_cjs_shims();
|
|
47899
48073
|
var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
47900
|
-
var { resolve:
|
|
48074
|
+
var { resolve: resolve4, parse: parse8 } = require("path");
|
|
47901
48075
|
var pathArg = /* @__PURE__ */ __name((path6) => {
|
|
47902
48076
|
if (/\0/.test(path6)) {
|
|
47903
48077
|
throw Object.assign(new TypeError("path must be a string without null bytes"), {
|
|
@@ -47905,10 +48079,10 @@ var require_path_arg = __commonJS({
|
|
|
47905
48079
|
code: "ERR_INVALID_ARG_VALUE"
|
|
47906
48080
|
});
|
|
47907
48081
|
}
|
|
47908
|
-
path6 =
|
|
48082
|
+
path6 = resolve4(path6);
|
|
47909
48083
|
if (platform === "win32") {
|
|
47910
48084
|
const badWinChars = /[*|"<>?:]/;
|
|
47911
|
-
const { root: root2 } =
|
|
48085
|
+
const { root: root2 } = parse8(path6);
|
|
47912
48086
|
if (badWinChars.test(path6.substr(root2.length))) {
|
|
47913
48087
|
throw Object.assign(new Error("Illegal characters in path."), {
|
|
47914
48088
|
path: path6,
|
|
@@ -47926,17 +48100,17 @@ var require_path_arg = __commonJS({
|
|
|
47926
48100
|
var require_find_made = __commonJS({
|
|
47927
48101
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"(exports2, module2) {
|
|
47928
48102
|
init_cjs_shims();
|
|
47929
|
-
var { dirname:
|
|
48103
|
+
var { dirname: dirname5 } = require("path");
|
|
47930
48104
|
var findMade = /* @__PURE__ */ __name((opts, parent, path6 = void 0) => {
|
|
47931
48105
|
if (path6 === parent) return Promise.resolve();
|
|
47932
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path6 : void 0, (er2) => er2.code === "ENOENT" ? findMade(opts,
|
|
48106
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path6 : void 0, (er2) => er2.code === "ENOENT" ? findMade(opts, dirname5(parent), parent) : void 0);
|
|
47933
48107
|
}, "findMade");
|
|
47934
48108
|
var findMadeSync = /* @__PURE__ */ __name((opts, parent, path6 = void 0) => {
|
|
47935
48109
|
if (path6 === parent) return void 0;
|
|
47936
48110
|
try {
|
|
47937
48111
|
return opts.statSync(parent).isDirectory() ? path6 : void 0;
|
|
47938
48112
|
} catch (er2) {
|
|
47939
|
-
return er2.code === "ENOENT" ? findMadeSync(opts,
|
|
48113
|
+
return er2.code === "ENOENT" ? findMadeSync(opts, dirname5(parent), parent) : void 0;
|
|
47940
48114
|
}
|
|
47941
48115
|
}, "findMadeSync");
|
|
47942
48116
|
module2.exports = {
|
|
@@ -47950,10 +48124,10 @@ var require_find_made = __commonJS({
|
|
|
47950
48124
|
var require_mkdirp_manual = __commonJS({
|
|
47951
48125
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"(exports2, module2) {
|
|
47952
48126
|
init_cjs_shims();
|
|
47953
|
-
var { dirname:
|
|
48127
|
+
var { dirname: dirname5 } = require("path");
|
|
47954
48128
|
var mkdirpManual = /* @__PURE__ */ __name((path6, opts, made) => {
|
|
47955
48129
|
opts.recursive = false;
|
|
47956
|
-
const parent =
|
|
48130
|
+
const parent = dirname5(path6);
|
|
47957
48131
|
if (parent === path6) {
|
|
47958
48132
|
return opts.mkdirAsync(path6, opts).catch((er2) => {
|
|
47959
48133
|
if (er2.code !== "EISDIR") throw er2;
|
|
@@ -47971,7 +48145,7 @@ var require_mkdirp_manual = __commonJS({
|
|
|
47971
48145
|
});
|
|
47972
48146
|
}, "mkdirpManual");
|
|
47973
48147
|
var mkdirpManualSync = /* @__PURE__ */ __name((path6, opts, made) => {
|
|
47974
|
-
const parent =
|
|
48148
|
+
const parent = dirname5(path6);
|
|
47975
48149
|
opts.recursive = false;
|
|
47976
48150
|
if (parent === path6) {
|
|
47977
48151
|
try {
|
|
@@ -48005,12 +48179,12 @@ var require_mkdirp_manual = __commonJS({
|
|
|
48005
48179
|
var require_mkdirp_native = __commonJS({
|
|
48006
48180
|
"../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js"(exports2, module2) {
|
|
48007
48181
|
init_cjs_shims();
|
|
48008
|
-
var { dirname:
|
|
48182
|
+
var { dirname: dirname5 } = require("path");
|
|
48009
48183
|
var { findMade, findMadeSync } = require_find_made();
|
|
48010
48184
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
48011
48185
|
var mkdirpNative = /* @__PURE__ */ __name((path6, opts) => {
|
|
48012
48186
|
opts.recursive = true;
|
|
48013
|
-
const parent =
|
|
48187
|
+
const parent = dirname5(path6);
|
|
48014
48188
|
if (parent === path6) return opts.mkdirAsync(path6, opts);
|
|
48015
48189
|
return findMade(opts, path6).then((made) => opts.mkdirAsync(path6, opts).then(() => made).catch((er2) => {
|
|
48016
48190
|
if (er2.code === "ENOENT") return mkdirpManual(path6, opts);
|
|
@@ -48019,7 +48193,7 @@ var require_mkdirp_native = __commonJS({
|
|
|
48019
48193
|
}, "mkdirpNative");
|
|
48020
48194
|
var mkdirpNativeSync = /* @__PURE__ */ __name((path6, opts) => {
|
|
48021
48195
|
opts.recursive = true;
|
|
48022
|
-
const parent =
|
|
48196
|
+
const parent = dirname5(path6);
|
|
48023
48197
|
if (parent === path6) return opts.mkdirSync(path6, opts);
|
|
48024
48198
|
const made = findMadeSync(opts, path6);
|
|
48025
48199
|
try {
|
|
@@ -48253,7 +48427,7 @@ var require_mkdir = __commonJS({
|
|
|
48253
48427
|
const preserve = opt.preserve;
|
|
48254
48428
|
const unlink = opt.unlink;
|
|
48255
48429
|
const cache2 = opt.cache;
|
|
48256
|
-
const
|
|
48430
|
+
const cwd3 = normPath(opt.cwd);
|
|
48257
48431
|
const done = /* @__PURE__ */ __name((er2, created) => {
|
|
48258
48432
|
if (er2) {
|
|
48259
48433
|
cb2(er2);
|
|
@@ -48271,7 +48445,7 @@ var require_mkdir = __commonJS({
|
|
|
48271
48445
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
48272
48446
|
return done();
|
|
48273
48447
|
}
|
|
48274
|
-
if (dir ===
|
|
48448
|
+
if (dir === cwd3) {
|
|
48275
48449
|
return checkCwd(dir, done);
|
|
48276
48450
|
}
|
|
48277
48451
|
if (preserve) {
|
|
@@ -48279,35 +48453,35 @@ var require_mkdir = __commonJS({
|
|
|
48279
48453
|
mode
|
|
48280
48454
|
}).then((made) => done(null, made), done);
|
|
48281
48455
|
}
|
|
48282
|
-
const sub = normPath(path6.relative(
|
|
48456
|
+
const sub = normPath(path6.relative(cwd3, dir));
|
|
48283
48457
|
const parts = sub.split("/");
|
|
48284
|
-
mkdir_(
|
|
48458
|
+
mkdir_(cwd3, parts, mode, cache2, unlink, cwd3, null, done);
|
|
48285
48459
|
};
|
|
48286
|
-
var mkdir_ = /* @__PURE__ */ __name((base, parts, mode, cache2, unlink,
|
|
48460
|
+
var mkdir_ = /* @__PURE__ */ __name((base, parts, mode, cache2, unlink, cwd3, created, cb2) => {
|
|
48287
48461
|
if (!parts.length) {
|
|
48288
48462
|
return cb2(null, created);
|
|
48289
48463
|
}
|
|
48290
48464
|
const p2 = parts.shift();
|
|
48291
48465
|
const part = normPath(path6.resolve(base + "/" + p2));
|
|
48292
48466
|
if (cGet(cache2, part)) {
|
|
48293
|
-
return mkdir_(part, parts, mode, cache2, unlink,
|
|
48467
|
+
return mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb2);
|
|
48294
48468
|
}
|
|
48295
|
-
fs3.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
48469
|
+
fs3.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb2));
|
|
48296
48470
|
}, "mkdir_");
|
|
48297
|
-
var onmkdir = /* @__PURE__ */ __name((part, parts, mode, cache2, unlink,
|
|
48471
|
+
var onmkdir = /* @__PURE__ */ __name((part, parts, mode, cache2, unlink, cwd3, created, cb2) => (er2) => {
|
|
48298
48472
|
if (er2) {
|
|
48299
48473
|
fs3.lstat(part, (statEr, st) => {
|
|
48300
48474
|
if (statEr) {
|
|
48301
48475
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
48302
48476
|
cb2(statEr);
|
|
48303
48477
|
} else if (st.isDirectory()) {
|
|
48304
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
48478
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb2);
|
|
48305
48479
|
} else if (unlink) {
|
|
48306
48480
|
fs3.unlink(part, (er3) => {
|
|
48307
48481
|
if (er3) {
|
|
48308
48482
|
return cb2(er3);
|
|
48309
48483
|
}
|
|
48310
|
-
fs3.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink,
|
|
48484
|
+
fs3.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd3, created, cb2));
|
|
48311
48485
|
});
|
|
48312
48486
|
} else if (st.isSymbolicLink()) {
|
|
48313
48487
|
return cb2(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
@@ -48317,7 +48491,7 @@ var require_mkdir = __commonJS({
|
|
|
48317
48491
|
});
|
|
48318
48492
|
} else {
|
|
48319
48493
|
created = created || part;
|
|
48320
|
-
mkdir_(part, parts, mode, cache2, unlink,
|
|
48494
|
+
mkdir_(part, parts, mode, cache2, unlink, cwd3, created, cb2);
|
|
48321
48495
|
}
|
|
48322
48496
|
}, "onmkdir");
|
|
48323
48497
|
var checkCwdSync = /* @__PURE__ */ __name((dir) => {
|
|
@@ -48344,7 +48518,7 @@ var require_mkdir = __commonJS({
|
|
|
48344
48518
|
const preserve = opt.preserve;
|
|
48345
48519
|
const unlink = opt.unlink;
|
|
48346
48520
|
const cache2 = opt.cache;
|
|
48347
|
-
const
|
|
48521
|
+
const cwd3 = normPath(opt.cwd);
|
|
48348
48522
|
const done = /* @__PURE__ */ __name((created2) => {
|
|
48349
48523
|
cSet(cache2, dir, true);
|
|
48350
48524
|
if (created2 && doChown) {
|
|
@@ -48357,17 +48531,17 @@ var require_mkdir = __commonJS({
|
|
|
48357
48531
|
if (cache2 && cGet(cache2, dir) === true) {
|
|
48358
48532
|
return done();
|
|
48359
48533
|
}
|
|
48360
|
-
if (dir ===
|
|
48361
|
-
checkCwdSync(
|
|
48534
|
+
if (dir === cwd3) {
|
|
48535
|
+
checkCwdSync(cwd3);
|
|
48362
48536
|
return done();
|
|
48363
48537
|
}
|
|
48364
48538
|
if (preserve) {
|
|
48365
48539
|
return done(mkdirp.sync(dir, mode));
|
|
48366
48540
|
}
|
|
48367
|
-
const sub = normPath(path6.relative(
|
|
48541
|
+
const sub = normPath(path6.relative(cwd3, dir));
|
|
48368
48542
|
const parts = sub.split("/");
|
|
48369
48543
|
let created = null;
|
|
48370
|
-
for (let p2 = parts.shift(), part =
|
|
48544
|
+
for (let p2 = parts.shift(), part = cwd3; p2 && (part += "/" + p2); p2 = parts.shift()) {
|
|
48371
48545
|
part = normPath(path6.resolve(part));
|
|
48372
48546
|
if (cGet(cache2, part)) {
|
|
48373
48547
|
continue;
|
|
@@ -48417,9 +48591,9 @@ var require_path_reservations = __commonJS({
|
|
|
48417
48591
|
"../../node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/path-reservations.js"(exports2, module2) {
|
|
48418
48592
|
init_cjs_shims();
|
|
48419
48593
|
var assert2 = require("assert");
|
|
48420
|
-
var
|
|
48594
|
+
var normalize3 = require_normalize_unicode();
|
|
48421
48595
|
var stripSlashes = require_strip_trailing_slashes();
|
|
48422
|
-
var { join:
|
|
48596
|
+
var { join: join10 } = require("path");
|
|
48423
48597
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
48424
48598
|
var isWindows = platform === "win32";
|
|
48425
48599
|
module2.exports = () => {
|
|
@@ -48428,7 +48602,7 @@ var require_path_reservations = __commonJS({
|
|
|
48428
48602
|
const getDirs = /* @__PURE__ */ __name((path6) => {
|
|
48429
48603
|
const dirs = path6.split("/").slice(0, -1).reduce((set, path7) => {
|
|
48430
48604
|
if (set.length) {
|
|
48431
|
-
path7 =
|
|
48605
|
+
path7 = join10(set[set.length - 1], path7);
|
|
48432
48606
|
}
|
|
48433
48607
|
set.push(path7 || "/");
|
|
48434
48608
|
return set;
|
|
@@ -48500,7 +48674,7 @@ var require_path_reservations = __commonJS({
|
|
|
48500
48674
|
paths = isWindows ? [
|
|
48501
48675
|
"win32 parallelization disabled"
|
|
48502
48676
|
] : paths.map((p2) => {
|
|
48503
|
-
return stripSlashes(
|
|
48677
|
+
return stripSlashes(join10(normalize3(p2))).toLowerCase();
|
|
48504
48678
|
});
|
|
48505
48679
|
const dirs = new Set(paths.map((path6) => getDirs(path6)).reduce((a2, b6) => a2.concat(b6)));
|
|
48506
48680
|
reservations.set(fn2, {
|
|
@@ -48574,7 +48748,7 @@ var require_unpack = __commonJS({
|
|
|
48574
48748
|
var stripAbsolutePath = require_strip_absolute_path();
|
|
48575
48749
|
var normPath = require_normalize_windows_path();
|
|
48576
48750
|
var stripSlash = require_strip_trailing_slashes();
|
|
48577
|
-
var
|
|
48751
|
+
var normalize3 = require_normalize_unicode();
|
|
48578
48752
|
var ONENTRY = Symbol("onEntry");
|
|
48579
48753
|
var CHECKFS = Symbol("checkFs");
|
|
48580
48754
|
var CHECKFS2 = Symbol("checkFs2");
|
|
@@ -48626,7 +48800,7 @@ var require_unpack = __commonJS({
|
|
|
48626
48800
|
fs3.unlinkSync(name);
|
|
48627
48801
|
}, "unlinkFileSync");
|
|
48628
48802
|
var uint32 = /* @__PURE__ */ __name((a2, b6, c) => a2 === a2 >>> 0 ? a2 : b6 === b6 >>> 0 ? b6 : c, "uint32");
|
|
48629
|
-
var cacheKeyNormalize = /* @__PURE__ */ __name((path7) => stripSlash(normPath(
|
|
48803
|
+
var cacheKeyNormalize = /* @__PURE__ */ __name((path7) => stripSlash(normPath(normalize3(path7))).toLowerCase(), "cacheKeyNormalize");
|
|
48630
48804
|
var pruneCache = /* @__PURE__ */ __name((cache2, abs) => {
|
|
48631
48805
|
abs = cacheKeyNormalize(abs);
|
|
48632
48806
|
for (const path7 of cache2.keys()) {
|
|
@@ -49331,9 +49505,9 @@ var require_extract = __commonJS({
|
|
|
49331
49505
|
const u3 = new Unpack(opt);
|
|
49332
49506
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
49333
49507
|
const file = opt.file;
|
|
49334
|
-
const p2 = new Promise((
|
|
49508
|
+
const p2 = new Promise((resolve4, reject2) => {
|
|
49335
49509
|
u3.on("error", reject2);
|
|
49336
|
-
u3.on("close",
|
|
49510
|
+
u3.on("close", resolve4);
|
|
49337
49511
|
fs3.stat(file, (er2, stat) => {
|
|
49338
49512
|
if (er2) {
|
|
49339
49513
|
reject2(er2);
|
|
@@ -49480,12 +49654,12 @@ var require_isexe = __commonJS({
|
|
|
49480
49654
|
if (typeof Promise !== "function") {
|
|
49481
49655
|
throw new TypeError("callback not provided");
|
|
49482
49656
|
}
|
|
49483
|
-
return new Promise(function(
|
|
49657
|
+
return new Promise(function(resolve4, reject2) {
|
|
49484
49658
|
isexe(path6, options || {}, function(er2, is) {
|
|
49485
49659
|
if (er2) {
|
|
49486
49660
|
reject2(er2);
|
|
49487
49661
|
} else {
|
|
49488
|
-
|
|
49662
|
+
resolve4(is);
|
|
49489
49663
|
}
|
|
49490
49664
|
});
|
|
49491
49665
|
});
|
|
@@ -49560,25 +49734,25 @@ var require_which = __commonJS({
|
|
|
49560
49734
|
if (!opt) opt = {};
|
|
49561
49735
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
49562
49736
|
const found = [];
|
|
49563
|
-
const step = /* @__PURE__ */ __name((i2) => new Promise((
|
|
49564
|
-
if (i2 === pathEnv.length) return opt.all && found.length ?
|
|
49737
|
+
const step = /* @__PURE__ */ __name((i2) => new Promise((resolve4, reject2) => {
|
|
49738
|
+
if (i2 === pathEnv.length) return opt.all && found.length ? resolve4(found) : reject2(getNotFoundError(cmd));
|
|
49565
49739
|
const ppRaw = pathEnv[i2];
|
|
49566
49740
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
49567
49741
|
const pCmd = path6.join(pathPart, cmd);
|
|
49568
49742
|
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
49569
|
-
|
|
49743
|
+
resolve4(subStep(p2, i2, 0));
|
|
49570
49744
|
}), "step");
|
|
49571
|
-
const subStep = /* @__PURE__ */ __name((p2, i2, ii2) => new Promise((
|
|
49572
|
-
if (ii2 === pathExt.length) return
|
|
49745
|
+
const subStep = /* @__PURE__ */ __name((p2, i2, ii2) => new Promise((resolve4, reject2) => {
|
|
49746
|
+
if (ii2 === pathExt.length) return resolve4(step(i2 + 1));
|
|
49573
49747
|
const ext = pathExt[ii2];
|
|
49574
49748
|
isexe(p2 + ext, {
|
|
49575
49749
|
pathExt: pathExtExe
|
|
49576
49750
|
}, (er2, is) => {
|
|
49577
49751
|
if (!er2 && is) {
|
|
49578
49752
|
if (opt.all) found.push(p2 + ext);
|
|
49579
|
-
else return
|
|
49753
|
+
else return resolve4(p2 + ext);
|
|
49580
49754
|
}
|
|
49581
|
-
return
|
|
49755
|
+
return resolve4(subStep(p2, i2, ii2 + 1));
|
|
49582
49756
|
});
|
|
49583
49757
|
}), "subStep");
|
|
49584
49758
|
return cb2 ? step(0).then((res) => cb2(null, res), cb2) : step(0);
|
|
@@ -49643,7 +49817,7 @@ var require_resolveCommand = __commonJS({
|
|
|
49643
49817
|
var getPathKey = require_path_key();
|
|
49644
49818
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
49645
49819
|
const env2 = parsed.options.env || process.env;
|
|
49646
|
-
const
|
|
49820
|
+
const cwd3 = process.cwd();
|
|
49647
49821
|
const hasCustomCwd = parsed.options.cwd != null;
|
|
49648
49822
|
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
49649
49823
|
if (shouldSwitchCwd) {
|
|
@@ -49663,7 +49837,7 @@ var require_resolveCommand = __commonJS({
|
|
|
49663
49837
|
} catch (e2) {
|
|
49664
49838
|
} finally {
|
|
49665
49839
|
if (shouldSwitchCwd) {
|
|
49666
|
-
process.chdir(
|
|
49840
|
+
process.chdir(cwd3);
|
|
49667
49841
|
}
|
|
49668
49842
|
}
|
|
49669
49843
|
if (resolved) {
|
|
@@ -49811,7 +49985,7 @@ var require_parse2 = __commonJS({
|
|
|
49811
49985
|
return parsed;
|
|
49812
49986
|
}
|
|
49813
49987
|
__name(parseNonShell, "parseNonShell");
|
|
49814
|
-
function
|
|
49988
|
+
function parse8(command, args, options) {
|
|
49815
49989
|
if (args && !Array.isArray(args)) {
|
|
49816
49990
|
options = args;
|
|
49817
49991
|
args = null;
|
|
@@ -49830,8 +50004,8 @@ var require_parse2 = __commonJS({
|
|
|
49830
50004
|
};
|
|
49831
50005
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
49832
50006
|
}
|
|
49833
|
-
__name(
|
|
49834
|
-
module2.exports =
|
|
50007
|
+
__name(parse8, "parse");
|
|
50008
|
+
module2.exports = parse8;
|
|
49835
50009
|
}
|
|
49836
50010
|
});
|
|
49837
50011
|
|
|
@@ -49896,17 +50070,17 @@ var require_cross_spawn = __commonJS({
|
|
|
49896
50070
|
"use strict";
|
|
49897
50071
|
init_cjs_shims();
|
|
49898
50072
|
var cp = require("child_process");
|
|
49899
|
-
var
|
|
50073
|
+
var parse8 = require_parse2();
|
|
49900
50074
|
var enoent = require_enoent();
|
|
49901
50075
|
function spawn(command, args, options) {
|
|
49902
|
-
const parsed =
|
|
50076
|
+
const parsed = parse8(command, args, options);
|
|
49903
50077
|
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
49904
50078
|
enoent.hookChildProcess(spawned, parsed);
|
|
49905
50079
|
return spawned;
|
|
49906
50080
|
}
|
|
49907
50081
|
__name(spawn, "spawn");
|
|
49908
50082
|
function spawnSync3(command, args, options) {
|
|
49909
|
-
const parsed =
|
|
50083
|
+
const parsed = parse8(command, args, options);
|
|
49910
50084
|
const result2 = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
49911
50085
|
result2.error = result2.error || enoent.verifyENOENTSync(result2.status, parsed);
|
|
49912
50086
|
return result2;
|
|
@@ -49915,7 +50089,7 @@ var require_cross_spawn = __commonJS({
|
|
|
49915
50089
|
module2.exports = spawn;
|
|
49916
50090
|
module2.exports.spawn = spawn;
|
|
49917
50091
|
module2.exports.sync = spawnSync3;
|
|
49918
|
-
module2.exports._parse =
|
|
50092
|
+
module2.exports._parse = parse8;
|
|
49919
50093
|
module2.exports._enoent = enoent;
|
|
49920
50094
|
}
|
|
49921
50095
|
});
|
|
@@ -49963,8 +50137,8 @@ var init_npm_run_path = __esm({
|
|
|
49963
50137
|
import_node_path3 = __toESM(require("path"), 1);
|
|
49964
50138
|
import_node_url2 = require("url");
|
|
49965
50139
|
init_path_key();
|
|
49966
|
-
npmRunPath = /* @__PURE__ */ __name(({ cwd:
|
|
49967
|
-
const cwdString =
|
|
50140
|
+
npmRunPath = /* @__PURE__ */ __name(({ cwd: cwd3 = import_node_process2.default.cwd(), path: pathOption = import_node_process2.default.env[pathKey()], preferLocal = true, execPath = import_node_process2.default.execPath, addExecPath = true } = {}) => {
|
|
50141
|
+
const cwdString = cwd3 instanceof URL ? (0, import_node_url2.fileURLToPath)(cwd3) : cwd3;
|
|
49968
50142
|
const cwdPath = import_node_path3.default.resolve(cwdString);
|
|
49969
50143
|
const result2 = [];
|
|
49970
50144
|
if (preferLocal) {
|
|
@@ -50519,7 +50693,7 @@ var init_error = __esm({
|
|
|
50519
50693
|
}
|
|
50520
50694
|
return "failed";
|
|
50521
50695
|
}, "getErrorPrefix");
|
|
50522
|
-
makeError = /* @__PURE__ */ __name(({ stdout, stderr, all, error, signal, exitCode, command, escapedCommand, timedOut, isCanceled, killed, parsed: { options: { timeout, cwd:
|
|
50696
|
+
makeError = /* @__PURE__ */ __name(({ stdout, stderr, all, error, signal, exitCode, command, escapedCommand, timedOut, isCanceled, killed, parsed: { options: { timeout, cwd: cwd3 = import_node_process3.default.cwd() } } }) => {
|
|
50523
50697
|
exitCode = exitCode === null ? void 0 : exitCode;
|
|
50524
50698
|
signal = signal === null ? void 0 : signal;
|
|
50525
50699
|
const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
|
|
@@ -50556,7 +50730,7 @@ ${error.message}` : execaMessage;
|
|
|
50556
50730
|
error.signalDescription = signalDescription;
|
|
50557
50731
|
error.stdout = stdout;
|
|
50558
50732
|
error.stderr = stderr;
|
|
50559
|
-
error.cwd =
|
|
50733
|
+
error.cwd = cwd3;
|
|
50560
50734
|
if (all !== void 0) {
|
|
50561
50735
|
error.all = all;
|
|
50562
50736
|
}
|
|
@@ -50949,7 +51123,7 @@ var init_kill = __esm({
|
|
|
50949
51123
|
return spawnedPromise;
|
|
50950
51124
|
}
|
|
50951
51125
|
let timeoutId;
|
|
50952
|
-
const timeoutPromise = new Promise((
|
|
51126
|
+
const timeoutPromise = new Promise((resolve4, reject2) => {
|
|
50953
51127
|
timeoutId = setTimeout(() => {
|
|
50954
51128
|
timeoutKill(spawned, killSignal, reject2);
|
|
50955
51129
|
}, timeout);
|
|
@@ -51517,9 +51691,9 @@ var init_promise = __esm({
|
|
|
51517
51691
|
});
|
|
51518
51692
|
}
|
|
51519
51693
|
}, "mergePromise");
|
|
51520
|
-
getSpawnedPromise = /* @__PURE__ */ __name((spawned) => new Promise((
|
|
51694
|
+
getSpawnedPromise = /* @__PURE__ */ __name((spawned) => new Promise((resolve4, reject2) => {
|
|
51521
51695
|
spawned.on("exit", (exitCode, signal) => {
|
|
51522
|
-
|
|
51696
|
+
resolve4({
|
|
51523
51697
|
exitCode,
|
|
51524
51698
|
signal
|
|
51525
51699
|
});
|
|
@@ -51950,8 +52124,8 @@ var init_execa = __esm({
|
|
|
51950
52124
|
});
|
|
51951
52125
|
|
|
51952
52126
|
// ../../node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs
|
|
51953
|
-
async function findup(
|
|
51954
|
-
const segments = normalize(
|
|
52127
|
+
async function findup(cwd3, match, options = {}) {
|
|
52128
|
+
const segments = normalize(cwd3).split("/");
|
|
51955
52129
|
while (segments.length > 0) {
|
|
51956
52130
|
const path6 = segments.join("/") || "/";
|
|
51957
52131
|
const result2 = await match(path6);
|
|
@@ -51982,13 +52156,13 @@ async function executeCommand(command, args, options = {}) {
|
|
|
51982
52156
|
});
|
|
51983
52157
|
}
|
|
51984
52158
|
async function resolveOperationOptions(options = {}) {
|
|
51985
|
-
const
|
|
52159
|
+
const cwd3 = options.cwd || process.cwd();
|
|
51986
52160
|
const packageManager = (typeof options.packageManager === "string" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());
|
|
51987
52161
|
if (!packageManager) {
|
|
51988
52162
|
throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);
|
|
51989
52163
|
}
|
|
51990
52164
|
return {
|
|
51991
|
-
cwd:
|
|
52165
|
+
cwd: cwd3,
|
|
51992
52166
|
silent: options.silent ?? false,
|
|
51993
52167
|
packageManager,
|
|
51994
52168
|
dev: options.dev ?? false,
|
|
@@ -51996,9 +52170,9 @@ async function resolveOperationOptions(options = {}) {
|
|
|
51996
52170
|
global: options.global ?? false
|
|
51997
52171
|
};
|
|
51998
52172
|
}
|
|
51999
|
-
async function detectPackageManager(
|
|
52173
|
+
async function detectPackageManager(cwd3, options = {}) {
|
|
52000
52174
|
const detected = await findup(
|
|
52001
|
-
resolve(
|
|
52175
|
+
resolve(cwd3 || "."),
|
|
52002
52176
|
async (path6) => {
|
|
52003
52177
|
if (!options.ignorePackageJSON) {
|
|
52004
52178
|
const packageJSONPath = join(path6, "package.json");
|
|
@@ -52068,7 +52242,7 @@ async function installDependencies(options = {}) {
|
|
|
52068
52242
|
});
|
|
52069
52243
|
}
|
|
52070
52244
|
var import_node_fs6, import_promises2, import_node_module3, importExeca, hasCorepack, NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG, packageManagers;
|
|
52071
|
-
var
|
|
52245
|
+
var init_dist7 = __esm({
|
|
52072
52246
|
"../../node_modules/.pnpm/nypm@0.3.12/node_modules/nypm/dist/index.mjs"() {
|
|
52073
52247
|
init_cjs_shims();
|
|
52074
52248
|
import_node_fs6 = require("fs");
|
|
@@ -63149,10 +63323,10 @@ ${f2.toString(16)}\r
|
|
|
63149
63323
|
}
|
|
63150
63324
|
__name(requireUtil$2, "requireUtil$2");
|
|
63151
63325
|
Q5(requireUtil$2, "requireUtil$2");
|
|
63152
|
-
var
|
|
63326
|
+
var parse8;
|
|
63153
63327
|
var hasRequiredParse;
|
|
63154
63328
|
function requireParse() {
|
|
63155
|
-
if (hasRequiredParse) return
|
|
63329
|
+
if (hasRequiredParse) return parse8;
|
|
63156
63330
|
hasRequiredParse = 1;
|
|
63157
63331
|
const { maxNameValuePairSize: e2, maxAttributeValueSize: A2 } = requireConstants$1(), { isCTLExcludingHtab: t2 } = requireUtil$2(), { collectASequenceOfCodePointsFast: r4 } = requireDataUrl(), n = require$$0__default;
|
|
63158
63332
|
function o(l2) {
|
|
@@ -63207,7 +63381,7 @@ ${f2.toString(16)}\r
|
|
|
63207
63381
|
return B3(l2, C4);
|
|
63208
63382
|
}
|
|
63209
63383
|
__name(B3, "B");
|
|
63210
|
-
return Q5(B3, "parseUnparsedAttributes"),
|
|
63384
|
+
return Q5(B3, "parseUnparsedAttributes"), parse8 = { parseSetCookie: o, parseUnparsedAttributes: B3 }, parse8;
|
|
63211
63385
|
}
|
|
63212
63386
|
__name(requireParse, "requireParse");
|
|
63213
63387
|
Q5(requireParse, "requireParse");
|
|
@@ -65018,14 +65192,14 @@ function currentShell() {
|
|
|
65018
65192
|
}
|
|
65019
65193
|
return "/bin/bash";
|
|
65020
65194
|
}
|
|
65021
|
-
function startShell(
|
|
65022
|
-
|
|
65195
|
+
function startShell(cwd3) {
|
|
65196
|
+
cwd3 = resolve(cwd3);
|
|
65023
65197
|
const shell = currentShell();
|
|
65024
65198
|
console.info(
|
|
65025
|
-
`(experimental) Opening shell in ${relative(process.cwd(),
|
|
65199
|
+
`(experimental) Opening shell in ${relative(process.cwd(), cwd3)}...`
|
|
65026
65200
|
);
|
|
65027
65201
|
(0, import_node_child_process4.spawnSync)(shell, [], {
|
|
65028
|
-
cwd:
|
|
65202
|
+
cwd: cwd3,
|
|
65029
65203
|
shell: true,
|
|
65030
65204
|
stdio: "inherit"
|
|
65031
65205
|
});
|
|
@@ -65100,8 +65274,8 @@ async function downloadTemplate(input, options = {}) {
|
|
|
65100
65274
|
`Tarball not found: ${tarPath} (offline: ${options.offline})`
|
|
65101
65275
|
);
|
|
65102
65276
|
}
|
|
65103
|
-
const
|
|
65104
|
-
const extractPath = resolve(
|
|
65277
|
+
const cwd3 = resolve(options.cwd || ".");
|
|
65278
|
+
const extractPath = resolve(cwd3, options.dir || template3.defaultDir);
|
|
65105
65279
|
if (options.forceClean) {
|
|
65106
65280
|
await (0, import_promises3.rm)(extractPath, { recursive: true, force: true });
|
|
65107
65281
|
}
|
|
@@ -65140,7 +65314,7 @@ async function downloadTemplate(input, options = {}) {
|
|
|
65140
65314
|
};
|
|
65141
65315
|
}
|
|
65142
65316
|
var import_promises3, import_node_fs7, import_tar, import_node_stream, import_node_child_process4, import_node_os5, import_node_util3, import_proxy, inputRegex, http, _httpJSON, github, gitlab, bitbucket, sourcehut, providers, DEFAULT_REGISTRY, registryProvider, sourceProtoRe;
|
|
65143
|
-
var
|
|
65317
|
+
var init_dist8 = __esm({
|
|
65144
65318
|
"../../node_modules/.pnpm/giget@1.2.3/node_modules/giget/dist/index.mjs"() {
|
|
65145
65319
|
init_cjs_shims();
|
|
65146
65320
|
import_promises3 = require("fs/promises");
|
|
@@ -65148,7 +65322,7 @@ var init_dist7 = __esm({
|
|
|
65148
65322
|
import_tar = __toESM(require_tar(), 1);
|
|
65149
65323
|
init_dist();
|
|
65150
65324
|
init_defu();
|
|
65151
|
-
|
|
65325
|
+
init_dist7();
|
|
65152
65326
|
import_node_stream = require("stream");
|
|
65153
65327
|
import_node_child_process4 = require("child_process");
|
|
65154
65328
|
import_node_os5 = require("os");
|
|
@@ -65434,12 +65608,12 @@ function __metadata(metadataKey, metadataValue) {
|
|
|
65434
65608
|
}
|
|
65435
65609
|
function __awaiter(thisArg, _arguments, P5, generator) {
|
|
65436
65610
|
function adopt(value2) {
|
|
65437
|
-
return value2 instanceof P5 ? value2 : new P5(function(
|
|
65438
|
-
|
|
65611
|
+
return value2 instanceof P5 ? value2 : new P5(function(resolve4) {
|
|
65612
|
+
resolve4(value2);
|
|
65439
65613
|
});
|
|
65440
65614
|
}
|
|
65441
65615
|
__name(adopt, "adopt");
|
|
65442
|
-
return new (P5 || (P5 = Promise))(function(
|
|
65616
|
+
return new (P5 || (P5 = Promise))(function(resolve4, reject2) {
|
|
65443
65617
|
function fulfilled(value2) {
|
|
65444
65618
|
try {
|
|
65445
65619
|
step(generator.next(value2));
|
|
@@ -65457,7 +65631,7 @@ function __awaiter(thisArg, _arguments, P5, generator) {
|
|
|
65457
65631
|
}
|
|
65458
65632
|
__name(rejected, "rejected");
|
|
65459
65633
|
function step(result2) {
|
|
65460
|
-
result2.done ?
|
|
65634
|
+
result2.done ? resolve4(result2.value) : adopt(result2.value).then(fulfilled, rejected);
|
|
65461
65635
|
}
|
|
65462
65636
|
__name(step, "step");
|
|
65463
65637
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
@@ -65659,15 +65833,15 @@ function __asyncValues(o) {
|
|
|
65659
65833
|
}, i2);
|
|
65660
65834
|
function verb(n) {
|
|
65661
65835
|
i2[n] = o[n] && function(v4) {
|
|
65662
|
-
return new Promise(function(
|
|
65663
|
-
v4 = o[n](v4), settle(
|
|
65836
|
+
return new Promise(function(resolve4, reject2) {
|
|
65837
|
+
v4 = o[n](v4), settle(resolve4, reject2, v4.done, v4.value);
|
|
65664
65838
|
});
|
|
65665
65839
|
};
|
|
65666
65840
|
}
|
|
65667
65841
|
__name(verb, "verb");
|
|
65668
|
-
function settle(
|
|
65842
|
+
function settle(resolve4, reject2, d4, v4) {
|
|
65669
65843
|
Promise.resolve(v4).then(function(v5) {
|
|
65670
|
-
|
|
65844
|
+
resolve4({ value: v5, done: d4 });
|
|
65671
65845
|
}, reject2);
|
|
65672
65846
|
}
|
|
65673
65847
|
__name(settle, "settle");
|
|
@@ -66510,11 +66684,11 @@ var require_ejs = __commonJS({
|
|
|
66510
66684
|
exports2.localsName = _DEFAULT_LOCALS_NAME;
|
|
66511
66685
|
exports2.promiseImpl = new Function("return this;")().Promise;
|
|
66512
66686
|
exports2.resolveInclude = function(name, filename, isDir) {
|
|
66513
|
-
var
|
|
66514
|
-
var
|
|
66515
|
-
var
|
|
66516
|
-
var includePath =
|
|
66517
|
-
var ext =
|
|
66687
|
+
var dirname5 = path6.dirname;
|
|
66688
|
+
var extname5 = path6.extname;
|
|
66689
|
+
var resolve4 = path6.resolve;
|
|
66690
|
+
var includePath = resolve4(isDir ? filename : dirname5(filename), name);
|
|
66691
|
+
var ext = extname5(name);
|
|
66518
66692
|
if (!ext) {
|
|
66519
66693
|
includePath += ".ejs";
|
|
66520
66694
|
}
|
|
@@ -66591,10 +66765,10 @@ var require_ejs = __commonJS({
|
|
|
66591
66765
|
var result2;
|
|
66592
66766
|
if (!cb2) {
|
|
66593
66767
|
if (typeof exports2.promiseImpl == "function") {
|
|
66594
|
-
return new exports2.promiseImpl(function(
|
|
66768
|
+
return new exports2.promiseImpl(function(resolve4, reject2) {
|
|
66595
66769
|
try {
|
|
66596
66770
|
result2 = handleCache(options)(data2);
|
|
66597
|
-
|
|
66771
|
+
resolve4(result2);
|
|
66598
66772
|
} catch (err) {
|
|
66599
66773
|
reject2(err);
|
|
66600
66774
|
}
|
|
@@ -66877,10 +67051,10 @@ var require_ejs = __commonJS({
|
|
|
66877
67051
|
}, "anonymous");
|
|
66878
67052
|
if (opts.filename && typeof Object.defineProperty === "function") {
|
|
66879
67053
|
var filename = opts.filename;
|
|
66880
|
-
var
|
|
67054
|
+
var basename3 = path6.basename(filename, path6.extname(filename));
|
|
66881
67055
|
try {
|
|
66882
67056
|
Object.defineProperty(returnedFn, "name", {
|
|
66883
|
-
value:
|
|
67057
|
+
value: basename3,
|
|
66884
67058
|
writable: false,
|
|
66885
67059
|
enumerable: false,
|
|
66886
67060
|
configurable: true
|
|
@@ -67582,7 +67756,7 @@ var require_parse3 = __commonJS({
|
|
|
67582
67756
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
67583
67757
|
init_cjs_shims();
|
|
67584
67758
|
var SemVer = require_semver();
|
|
67585
|
-
var
|
|
67759
|
+
var parse8 = /* @__PURE__ */ __name((version2, options, throwErrors = false) => {
|
|
67586
67760
|
if (version2 instanceof SemVer) {
|
|
67587
67761
|
return version2;
|
|
67588
67762
|
}
|
|
@@ -67595,7 +67769,7 @@ var require_parse3 = __commonJS({
|
|
|
67595
67769
|
throw er2;
|
|
67596
67770
|
}
|
|
67597
67771
|
}, "parse");
|
|
67598
|
-
module2.exports =
|
|
67772
|
+
module2.exports = parse8;
|
|
67599
67773
|
}
|
|
67600
67774
|
});
|
|
67601
67775
|
|
|
@@ -67603,9 +67777,9 @@ var require_parse3 = __commonJS({
|
|
|
67603
67777
|
var require_valid = __commonJS({
|
|
67604
67778
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
67605
67779
|
init_cjs_shims();
|
|
67606
|
-
var
|
|
67780
|
+
var parse8 = require_parse3();
|
|
67607
67781
|
var valid = /* @__PURE__ */ __name((version2, options) => {
|
|
67608
|
-
const v4 =
|
|
67782
|
+
const v4 = parse8(version2, options);
|
|
67609
67783
|
return v4 ? v4.version : null;
|
|
67610
67784
|
}, "valid");
|
|
67611
67785
|
module2.exports = valid;
|
|
@@ -67616,9 +67790,9 @@ var require_valid = __commonJS({
|
|
|
67616
67790
|
var require_clean = __commonJS({
|
|
67617
67791
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
67618
67792
|
init_cjs_shims();
|
|
67619
|
-
var
|
|
67793
|
+
var parse8 = require_parse3();
|
|
67620
67794
|
var clean = /* @__PURE__ */ __name((version2, options) => {
|
|
67621
|
-
const s2 =
|
|
67795
|
+
const s2 = parse8(version2.trim().replace(/^[=v]+/, ""), options);
|
|
67622
67796
|
return s2 ? s2.version : null;
|
|
67623
67797
|
}, "clean");
|
|
67624
67798
|
module2.exports = clean;
|
|
@@ -67650,10 +67824,10 @@ var require_inc = __commonJS({
|
|
|
67650
67824
|
var require_diff = __commonJS({
|
|
67651
67825
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
67652
67826
|
init_cjs_shims();
|
|
67653
|
-
var
|
|
67827
|
+
var parse8 = require_parse3();
|
|
67654
67828
|
var diff = /* @__PURE__ */ __name((version1, version2) => {
|
|
67655
|
-
const v1 =
|
|
67656
|
-
const v22 =
|
|
67829
|
+
const v1 = parse8(version1, null, true);
|
|
67830
|
+
const v22 = parse8(version2, null, true);
|
|
67657
67831
|
const comparison = v1.compare(v22);
|
|
67658
67832
|
if (comparison === 0) {
|
|
67659
67833
|
return null;
|
|
@@ -67725,9 +67899,9 @@ var require_patch = __commonJS({
|
|
|
67725
67899
|
var require_prerelease = __commonJS({
|
|
67726
67900
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
67727
67901
|
init_cjs_shims();
|
|
67728
|
-
var
|
|
67902
|
+
var parse8 = require_parse3();
|
|
67729
67903
|
var prerelease = /* @__PURE__ */ __name((version2, options) => {
|
|
67730
|
-
const parsed =
|
|
67904
|
+
const parsed = parse8(version2, options);
|
|
67731
67905
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
67732
67906
|
}, "prerelease");
|
|
67733
67907
|
module2.exports = prerelease;
|
|
@@ -67913,7 +68087,7 @@ var require_coerce = __commonJS({
|
|
|
67913
68087
|
"../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/coerce.js"(exports2, module2) {
|
|
67914
68088
|
init_cjs_shims();
|
|
67915
68089
|
var SemVer = require_semver();
|
|
67916
|
-
var
|
|
68090
|
+
var parse8 = require_parse3();
|
|
67917
68091
|
var { safeRe: re3, t: t2 } = require_re();
|
|
67918
68092
|
var coerce2 = /* @__PURE__ */ __name((version2, options) => {
|
|
67919
68093
|
if (version2 instanceof SemVer) {
|
|
@@ -67948,7 +68122,7 @@ var require_coerce = __commonJS({
|
|
|
67948
68122
|
const patch = match[4] || "0";
|
|
67949
68123
|
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
67950
68124
|
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
67951
|
-
return
|
|
68125
|
+
return parse8(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
67952
68126
|
}, "coerce");
|
|
67953
68127
|
module2.exports = coerce2;
|
|
67954
68128
|
}
|
|
@@ -68971,7 +69145,7 @@ var require_semver2 = __commonJS({
|
|
|
68971
69145
|
var constants3 = require_constants2();
|
|
68972
69146
|
var SemVer = require_semver();
|
|
68973
69147
|
var identifiers = require_identifiers();
|
|
68974
|
-
var
|
|
69148
|
+
var parse8 = require_parse3();
|
|
68975
69149
|
var valid = require_valid();
|
|
68976
69150
|
var clean = require_clean();
|
|
68977
69151
|
var inc = require_inc();
|
|
@@ -69009,7 +69183,7 @@ var require_semver2 = __commonJS({
|
|
|
69009
69183
|
var simplifyRange = require_simplify();
|
|
69010
69184
|
var subset = require_subset();
|
|
69011
69185
|
module2.exports = {
|
|
69012
|
-
parse:
|
|
69186
|
+
parse: parse8,
|
|
69013
69187
|
valid,
|
|
69014
69188
|
clean,
|
|
69015
69189
|
inc,
|
|
@@ -69070,17 +69244,17 @@ var require_install_packages_task = __commonJS({
|
|
|
69070
69244
|
var child_process_1 = require("child_process");
|
|
69071
69245
|
var path_1 = require("path");
|
|
69072
69246
|
var devkit_exports_1 = require("nx/src/devkit-exports");
|
|
69073
|
-
function installPackagesTask(tree, alwaysRun = false,
|
|
69074
|
-
if (!tree.listChanges().find((f2) => f2.path === (0, devkit_exports_1.joinPathFragments)(
|
|
69247
|
+
function installPackagesTask(tree, alwaysRun = false, cwd3 = "", packageManager = (0, devkit_exports_1.detectPackageManager)((0, path_1.join)(tree.root, cwd3))) {
|
|
69248
|
+
if (!tree.listChanges().find((f2) => f2.path === (0, devkit_exports_1.joinPathFragments)(cwd3, "package.json")) && !alwaysRun) {
|
|
69075
69249
|
return;
|
|
69076
69250
|
}
|
|
69077
|
-
const packageJsonValue = tree.read((0, devkit_exports_1.joinPathFragments)(
|
|
69251
|
+
const packageJsonValue = tree.read((0, devkit_exports_1.joinPathFragments)(cwd3, "package.json"), "utf-8");
|
|
69078
69252
|
let storedPackageJsonValue = global["__packageJsonInstallCache__"];
|
|
69079
69253
|
if (storedPackageJsonValue != packageJsonValue || alwaysRun) {
|
|
69080
69254
|
global["__packageJsonInstallCache__"] = packageJsonValue;
|
|
69081
69255
|
const pmc = (0, devkit_exports_1.getPackageManagerCommand)(packageManager);
|
|
69082
69256
|
const execSyncOptions = {
|
|
69083
|
-
cwd: (0, path_1.join)(tree.root,
|
|
69257
|
+
cwd: (0, path_1.join)(tree.root, cwd3),
|
|
69084
69258
|
stdio: process.env.NX_GENERATE_QUIET === "true" ? "ignore" : "inherit",
|
|
69085
69259
|
windowsHide: false
|
|
69086
69260
|
};
|
|
@@ -69399,8 +69573,8 @@ var require_tmp = __commonJS({
|
|
|
69399
69573
|
function _assertIsRelative(name, option, tmpDir) {
|
|
69400
69574
|
if (option === "name") {
|
|
69401
69575
|
if (path6.isAbsolute(name)) throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
|
|
69402
|
-
let
|
|
69403
|
-
if (
|
|
69576
|
+
let basename3 = path6.basename(name);
|
|
69577
|
+
if (basename3 === ".." || basename3 === "." || basename3 !== name) throw new Error(`${option} option must not contain a path, found "${name}".`);
|
|
69404
69578
|
} else {
|
|
69405
69579
|
if (path6.isAbsolute(name) && !name.startsWith(tmpDir)) {
|
|
69406
69580
|
throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
|
|
@@ -71568,7 +71742,7 @@ var require_Observable = __commonJS({
|
|
|
71568
71742
|
Observable2.prototype.forEach = function(next, promiseCtor) {
|
|
71569
71743
|
var _this = this;
|
|
71570
71744
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
71571
|
-
return new promiseCtor(function(
|
|
71745
|
+
return new promiseCtor(function(resolve4, reject2) {
|
|
71572
71746
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
71573
71747
|
next: /* @__PURE__ */ __name(function(value2) {
|
|
71574
71748
|
try {
|
|
@@ -71579,7 +71753,7 @@ var require_Observable = __commonJS({
|
|
|
71579
71753
|
}
|
|
71580
71754
|
}, "next"),
|
|
71581
71755
|
error: reject2,
|
|
71582
|
-
complete:
|
|
71756
|
+
complete: resolve4
|
|
71583
71757
|
});
|
|
71584
71758
|
_this.subscribe(subscriber);
|
|
71585
71759
|
});
|
|
@@ -71601,14 +71775,14 @@ var require_Observable = __commonJS({
|
|
|
71601
71775
|
Observable2.prototype.toPromise = function(promiseCtor) {
|
|
71602
71776
|
var _this = this;
|
|
71603
71777
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
71604
|
-
return new promiseCtor(function(
|
|
71778
|
+
return new promiseCtor(function(resolve4, reject2) {
|
|
71605
71779
|
var value2;
|
|
71606
71780
|
_this.subscribe(function(x4) {
|
|
71607
71781
|
return value2 = x4;
|
|
71608
71782
|
}, function(err) {
|
|
71609
71783
|
return reject2(err);
|
|
71610
71784
|
}, function() {
|
|
71611
|
-
return
|
|
71785
|
+
return resolve4(value2);
|
|
71612
71786
|
});
|
|
71613
71787
|
});
|
|
71614
71788
|
};
|
|
@@ -73991,12 +74165,12 @@ var require_innerFrom = __commonJS({
|
|
|
73991
74165
|
init_cjs_shims();
|
|
73992
74166
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
73993
74167
|
function adopt(value2) {
|
|
73994
|
-
return value2 instanceof P5 ? value2 : new P5(function(
|
|
73995
|
-
|
|
74168
|
+
return value2 instanceof P5 ? value2 : new P5(function(resolve4) {
|
|
74169
|
+
resolve4(value2);
|
|
73996
74170
|
});
|
|
73997
74171
|
}
|
|
73998
74172
|
__name(adopt, "adopt");
|
|
73999
|
-
return new (P5 || (P5 = Promise))(function(
|
|
74173
|
+
return new (P5 || (P5 = Promise))(function(resolve4, reject2) {
|
|
74000
74174
|
function fulfilled(value2) {
|
|
74001
74175
|
try {
|
|
74002
74176
|
step(generator.next(value2));
|
|
@@ -74014,7 +74188,7 @@ var require_innerFrom = __commonJS({
|
|
|
74014
74188
|
}
|
|
74015
74189
|
__name(rejected, "rejected");
|
|
74016
74190
|
function step(result2) {
|
|
74017
|
-
result2.done ?
|
|
74191
|
+
result2.done ? resolve4(result2.value) : adopt(result2.value).then(fulfilled, rejected);
|
|
74018
74192
|
}
|
|
74019
74193
|
__name(step, "step");
|
|
74020
74194
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
@@ -74125,15 +74299,15 @@ var require_innerFrom = __commonJS({
|
|
|
74125
74299
|
}, i2);
|
|
74126
74300
|
function verb(n) {
|
|
74127
74301
|
i2[n] = o[n] && function(v4) {
|
|
74128
|
-
return new Promise(function(
|
|
74129
|
-
v4 = o[n](v4), settle(
|
|
74302
|
+
return new Promise(function(resolve4, reject2) {
|
|
74303
|
+
v4 = o[n](v4), settle(resolve4, reject2, v4.done, v4.value);
|
|
74130
74304
|
});
|
|
74131
74305
|
};
|
|
74132
74306
|
}
|
|
74133
74307
|
__name(verb, "verb");
|
|
74134
|
-
function settle(
|
|
74308
|
+
function settle(resolve4, reject2, d4, v4) {
|
|
74135
74309
|
Promise.resolve(v4).then(function(v5) {
|
|
74136
|
-
|
|
74310
|
+
resolve4({
|
|
74137
74311
|
value: v5,
|
|
74138
74312
|
done: d4
|
|
74139
74313
|
});
|
|
@@ -74882,7 +75056,7 @@ var require_lastValueFrom = __commonJS({
|
|
|
74882
75056
|
var EmptyError_1 = require_EmptyError();
|
|
74883
75057
|
function lastValueFrom(source, config) {
|
|
74884
75058
|
var hasConfig = typeof config === "object";
|
|
74885
|
-
return new Promise(function(
|
|
75059
|
+
return new Promise(function(resolve4, reject2) {
|
|
74886
75060
|
var _hasValue = false;
|
|
74887
75061
|
var _value2;
|
|
74888
75062
|
source.subscribe({
|
|
@@ -74893,9 +75067,9 @@ var require_lastValueFrom = __commonJS({
|
|
|
74893
75067
|
error: reject2,
|
|
74894
75068
|
complete: /* @__PURE__ */ __name(function() {
|
|
74895
75069
|
if (_hasValue) {
|
|
74896
|
-
|
|
75070
|
+
resolve4(_value2);
|
|
74897
75071
|
} else if (hasConfig) {
|
|
74898
|
-
|
|
75072
|
+
resolve4(config.defaultValue);
|
|
74899
75073
|
} else {
|
|
74900
75074
|
reject2(new EmptyError_1.EmptyError());
|
|
74901
75075
|
}
|
|
@@ -74921,16 +75095,16 @@ var require_firstValueFrom = __commonJS({
|
|
|
74921
75095
|
var Subscriber_1 = require_Subscriber();
|
|
74922
75096
|
function firstValueFrom(source, config) {
|
|
74923
75097
|
var hasConfig = typeof config === "object";
|
|
74924
|
-
return new Promise(function(
|
|
75098
|
+
return new Promise(function(resolve4, reject2) {
|
|
74925
75099
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
74926
75100
|
next: /* @__PURE__ */ __name(function(value2) {
|
|
74927
|
-
|
|
75101
|
+
resolve4(value2);
|
|
74928
75102
|
subscriber.unsubscribe();
|
|
74929
75103
|
}, "next"),
|
|
74930
75104
|
error: reject2,
|
|
74931
75105
|
complete: /* @__PURE__ */ __name(function() {
|
|
74932
75106
|
if (hasConfig) {
|
|
74933
|
-
|
|
75107
|
+
resolve4(config.defaultValue);
|
|
74934
75108
|
} else {
|
|
74935
75109
|
reject2(new EmptyError_1.EmptyError());
|
|
74936
75110
|
}
|
|
@@ -87868,7 +88042,7 @@ var require_yoctocolors_cjs = __commonJS({
|
|
|
87868
88042
|
init_cjs_shims();
|
|
87869
88043
|
var tty2 = require("tty");
|
|
87870
88044
|
var hasColors = tty2?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
87871
|
-
var
|
|
88045
|
+
var format4 = /* @__PURE__ */ __name((open, close) => {
|
|
87872
88046
|
if (!hasColors) {
|
|
87873
88047
|
return (input) => input;
|
|
87874
88048
|
}
|
|
@@ -87892,47 +88066,47 @@ var require_yoctocolors_cjs = __commonJS({
|
|
|
87892
88066
|
};
|
|
87893
88067
|
}, "format");
|
|
87894
88068
|
var colors8 = {};
|
|
87895
|
-
colors8.reset =
|
|
87896
|
-
colors8.bold =
|
|
87897
|
-
colors8.dim =
|
|
87898
|
-
colors8.italic =
|
|
87899
|
-
colors8.underline =
|
|
87900
|
-
colors8.overline =
|
|
87901
|
-
colors8.inverse =
|
|
87902
|
-
colors8.hidden =
|
|
87903
|
-
colors8.strikethrough =
|
|
87904
|
-
colors8.black =
|
|
87905
|
-
colors8.red =
|
|
87906
|
-
colors8.green =
|
|
87907
|
-
colors8.yellow =
|
|
87908
|
-
colors8.blue =
|
|
87909
|
-
colors8.magenta =
|
|
87910
|
-
colors8.cyan =
|
|
87911
|
-
colors8.white =
|
|
87912
|
-
colors8.gray =
|
|
87913
|
-
colors8.bgBlack =
|
|
87914
|
-
colors8.bgRed =
|
|
87915
|
-
colors8.bgGreen =
|
|
87916
|
-
colors8.bgYellow =
|
|
87917
|
-
colors8.bgBlue =
|
|
87918
|
-
colors8.bgMagenta =
|
|
87919
|
-
colors8.bgCyan =
|
|
87920
|
-
colors8.bgWhite =
|
|
87921
|
-
colors8.bgGray =
|
|
87922
|
-
colors8.redBright =
|
|
87923
|
-
colors8.greenBright =
|
|
87924
|
-
colors8.yellowBright =
|
|
87925
|
-
colors8.blueBright =
|
|
87926
|
-
colors8.magentaBright =
|
|
87927
|
-
colors8.cyanBright =
|
|
87928
|
-
colors8.whiteBright =
|
|
87929
|
-
colors8.bgRedBright =
|
|
87930
|
-
colors8.bgGreenBright =
|
|
87931
|
-
colors8.bgYellowBright =
|
|
87932
|
-
colors8.bgBlueBright =
|
|
87933
|
-
colors8.bgMagentaBright =
|
|
87934
|
-
colors8.bgCyanBright =
|
|
87935
|
-
colors8.bgWhiteBright =
|
|
88069
|
+
colors8.reset = format4(0, 0);
|
|
88070
|
+
colors8.bold = format4(1, 22);
|
|
88071
|
+
colors8.dim = format4(2, 22);
|
|
88072
|
+
colors8.italic = format4(3, 23);
|
|
88073
|
+
colors8.underline = format4(4, 24);
|
|
88074
|
+
colors8.overline = format4(53, 55);
|
|
88075
|
+
colors8.inverse = format4(7, 27);
|
|
88076
|
+
colors8.hidden = format4(8, 28);
|
|
88077
|
+
colors8.strikethrough = format4(9, 29);
|
|
88078
|
+
colors8.black = format4(30, 39);
|
|
88079
|
+
colors8.red = format4(31, 39);
|
|
88080
|
+
colors8.green = format4(32, 39);
|
|
88081
|
+
colors8.yellow = format4(33, 39);
|
|
88082
|
+
colors8.blue = format4(34, 39);
|
|
88083
|
+
colors8.magenta = format4(35, 39);
|
|
88084
|
+
colors8.cyan = format4(36, 39);
|
|
88085
|
+
colors8.white = format4(37, 39);
|
|
88086
|
+
colors8.gray = format4(90, 39);
|
|
88087
|
+
colors8.bgBlack = format4(40, 49);
|
|
88088
|
+
colors8.bgRed = format4(41, 49);
|
|
88089
|
+
colors8.bgGreen = format4(42, 49);
|
|
88090
|
+
colors8.bgYellow = format4(43, 49);
|
|
88091
|
+
colors8.bgBlue = format4(44, 49);
|
|
88092
|
+
colors8.bgMagenta = format4(45, 49);
|
|
88093
|
+
colors8.bgCyan = format4(46, 49);
|
|
88094
|
+
colors8.bgWhite = format4(47, 49);
|
|
88095
|
+
colors8.bgGray = format4(100, 49);
|
|
88096
|
+
colors8.redBright = format4(91, 39);
|
|
88097
|
+
colors8.greenBright = format4(92, 39);
|
|
88098
|
+
colors8.yellowBright = format4(93, 39);
|
|
88099
|
+
colors8.blueBright = format4(94, 39);
|
|
88100
|
+
colors8.magentaBright = format4(95, 39);
|
|
88101
|
+
colors8.cyanBright = format4(96, 39);
|
|
88102
|
+
colors8.whiteBright = format4(97, 39);
|
|
88103
|
+
colors8.bgRedBright = format4(101, 49);
|
|
88104
|
+
colors8.bgGreenBright = format4(102, 49);
|
|
88105
|
+
colors8.bgYellowBright = format4(103, 49);
|
|
88106
|
+
colors8.bgBlueBright = format4(104, 49);
|
|
88107
|
+
colors8.bgMagentaBright = format4(105, 49);
|
|
88108
|
+
colors8.bgCyanBright = format4(106, 49);
|
|
88109
|
+
colors8.bgWhiteBright = format4(107, 49);
|
|
87936
88110
|
module2.exports = colors8;
|
|
87937
88111
|
}
|
|
87938
88112
|
});
|
|
@@ -88464,7 +88638,7 @@ var require_ansi_escapes = __commonJS({
|
|
|
88464
88638
|
return ret + ":" + buffer.toString("base64") + BEL;
|
|
88465
88639
|
};
|
|
88466
88640
|
ansiEscapes5.iTerm = {
|
|
88467
|
-
setCwd: /* @__PURE__ */ __name((
|
|
88641
|
+
setCwd: /* @__PURE__ */ __name((cwd3 = process.cwd()) => `${OSC}50;CurrentDir=${cwd3}${BEL}`, "setCwd"),
|
|
88468
88642
|
annotation: /* @__PURE__ */ __name((message2, options = {}) => {
|
|
88469
88643
|
let ret = `${OSC}1337;`;
|
|
88470
88644
|
const hasX = typeof options.x !== "undefined";
|
|
@@ -99949,13 +100123,13 @@ var require_ms = __commonJS({
|
|
|
99949
100123
|
options = options || {};
|
|
99950
100124
|
var type = typeof val;
|
|
99951
100125
|
if (type === "string" && val.length > 0) {
|
|
99952
|
-
return
|
|
100126
|
+
return parse8(val);
|
|
99953
100127
|
} else if (type === "number" && isFinite(val)) {
|
|
99954
100128
|
return options.long ? fmtLong(val) : fmtShort(val);
|
|
99955
100129
|
}
|
|
99956
100130
|
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
|
|
99957
100131
|
};
|
|
99958
|
-
function
|
|
100132
|
+
function parse8(str) {
|
|
99959
100133
|
str = String(str);
|
|
99960
100134
|
if (str.length > 100) {
|
|
99961
100135
|
return;
|
|
@@ -100009,7 +100183,7 @@ var require_ms = __commonJS({
|
|
|
100009
100183
|
return void 0;
|
|
100010
100184
|
}
|
|
100011
100185
|
}
|
|
100012
|
-
__name(
|
|
100186
|
+
__name(parse8, "parse");
|
|
100013
100187
|
function fmtShort(ms) {
|
|
100014
100188
|
var msAbs = Math.abs(ms);
|
|
100015
100189
|
if (msAbs >= d4) {
|
|
@@ -100102,12 +100276,12 @@ var require_common = __commonJS({
|
|
|
100102
100276
|
args.unshift("%O");
|
|
100103
100277
|
}
|
|
100104
100278
|
let index = 0;
|
|
100105
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match,
|
|
100279
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format4) => {
|
|
100106
100280
|
if (match === "%%") {
|
|
100107
100281
|
return "%";
|
|
100108
100282
|
}
|
|
100109
100283
|
index++;
|
|
100110
|
-
const formatter = createDebug.formatters[
|
|
100284
|
+
const formatter = createDebug.formatters[format4];
|
|
100111
100285
|
if (typeof formatter === "function") {
|
|
100112
100286
|
const val = args[index];
|
|
100113
100287
|
match = formatter.call(self2, val);
|
|
@@ -101106,37 +101280,37 @@ var require_core = __commonJS({
|
|
|
101106
101280
|
return typeof this.path === "string" ? p2.dirname(this.path) : void 0;
|
|
101107
101281
|
}
|
|
101108
101282
|
__name(getDirname, "getDirname");
|
|
101109
|
-
function setDirname(
|
|
101283
|
+
function setDirname(dirname5) {
|
|
101110
101284
|
assertPath(this.path, "dirname");
|
|
101111
|
-
this.path = p2.join(
|
|
101285
|
+
this.path = p2.join(dirname5 || "", this.basename);
|
|
101112
101286
|
}
|
|
101113
101287
|
__name(setDirname, "setDirname");
|
|
101114
101288
|
function getBasename() {
|
|
101115
101289
|
return typeof this.path === "string" ? p2.basename(this.path) : void 0;
|
|
101116
101290
|
}
|
|
101117
101291
|
__name(getBasename, "getBasename");
|
|
101118
|
-
function setBasename(
|
|
101119
|
-
assertNonEmpty(
|
|
101120
|
-
assertPart(
|
|
101121
|
-
this.path = p2.join(this.dirname || "",
|
|
101292
|
+
function setBasename(basename3) {
|
|
101293
|
+
assertNonEmpty(basename3, "basename");
|
|
101294
|
+
assertPart(basename3, "basename");
|
|
101295
|
+
this.path = p2.join(this.dirname || "", basename3);
|
|
101122
101296
|
}
|
|
101123
101297
|
__name(setBasename, "setBasename");
|
|
101124
101298
|
function getExtname() {
|
|
101125
101299
|
return typeof this.path === "string" ? p2.extname(this.path) : void 0;
|
|
101126
101300
|
}
|
|
101127
101301
|
__name(getExtname, "getExtname");
|
|
101128
|
-
function setExtname(
|
|
101129
|
-
assertPart(
|
|
101302
|
+
function setExtname(extname5) {
|
|
101303
|
+
assertPart(extname5, "extname");
|
|
101130
101304
|
assertPath(this.path, "extname");
|
|
101131
|
-
if (
|
|
101132
|
-
if (
|
|
101305
|
+
if (extname5) {
|
|
101306
|
+
if (extname5.charCodeAt(0) !== 46) {
|
|
101133
101307
|
throw new Error("`extname` must start with `.`");
|
|
101134
101308
|
}
|
|
101135
|
-
if (
|
|
101309
|
+
if (extname5.indexOf(".", 1) > -1) {
|
|
101136
101310
|
throw new Error("`extname` cannot contain multiple dots");
|
|
101137
101311
|
}
|
|
101138
101312
|
}
|
|
101139
|
-
this.path = p2.join(this.dirname, this.stem + (
|
|
101313
|
+
this.path = p2.join(this.dirname, this.stem + (extname5 || ""));
|
|
101140
101314
|
}
|
|
101141
101315
|
__name(setExtname, "setExtname");
|
|
101142
101316
|
function getStem() {
|
|
@@ -101276,7 +101450,7 @@ var require_unified = __commonJS({
|
|
|
101276
101450
|
processor.freeze = freeze;
|
|
101277
101451
|
processor.attachers = attachers;
|
|
101278
101452
|
processor.use = use;
|
|
101279
|
-
processor.parse =
|
|
101453
|
+
processor.parse = parse8;
|
|
101280
101454
|
processor.stringify = stringify;
|
|
101281
101455
|
processor.run = run2;
|
|
101282
101456
|
processor.runSync = runSync;
|
|
@@ -101409,7 +101583,7 @@ var require_unified = __commonJS({
|
|
|
101409
101583
|
}
|
|
101410
101584
|
}
|
|
101411
101585
|
__name(find2, "find");
|
|
101412
|
-
function
|
|
101586
|
+
function parse8(doc) {
|
|
101413
101587
|
var file = vfile(doc);
|
|
101414
101588
|
var Parser4;
|
|
101415
101589
|
freeze();
|
|
@@ -101420,7 +101594,7 @@ var require_unified = __commonJS({
|
|
|
101420
101594
|
}
|
|
101421
101595
|
return Parser4(String(file), file);
|
|
101422
101596
|
}
|
|
101423
|
-
__name(
|
|
101597
|
+
__name(parse8, "parse");
|
|
101424
101598
|
function run2(node, file, cb2) {
|
|
101425
101599
|
assertNode(node);
|
|
101426
101600
|
freeze();
|
|
@@ -101432,14 +101606,14 @@ var require_unified = __commonJS({
|
|
|
101432
101606
|
return new Promise(executor);
|
|
101433
101607
|
}
|
|
101434
101608
|
executor(null, cb2);
|
|
101435
|
-
function executor(
|
|
101609
|
+
function executor(resolve4, reject2) {
|
|
101436
101610
|
transformers.run(node, vfile(file), done);
|
|
101437
101611
|
function done(error, tree, file2) {
|
|
101438
101612
|
tree = tree || node;
|
|
101439
101613
|
if (error) {
|
|
101440
101614
|
reject2(error);
|
|
101441
|
-
} else if (
|
|
101442
|
-
|
|
101615
|
+
} else if (resolve4) {
|
|
101616
|
+
resolve4(tree);
|
|
101443
101617
|
} else {
|
|
101444
101618
|
cb2(null, tree, file2);
|
|
101445
101619
|
}
|
|
@@ -101484,7 +101658,7 @@ var require_unified = __commonJS({
|
|
|
101484
101658
|
return new Promise(executor);
|
|
101485
101659
|
}
|
|
101486
101660
|
executor(null, cb2);
|
|
101487
|
-
function executor(
|
|
101661
|
+
function executor(resolve4, reject2) {
|
|
101488
101662
|
var file = vfile(doc);
|
|
101489
101663
|
pipeline2.run(processor, {
|
|
101490
101664
|
file
|
|
@@ -101492,8 +101666,8 @@ var require_unified = __commonJS({
|
|
|
101492
101666
|
function done(error) {
|
|
101493
101667
|
if (error) {
|
|
101494
101668
|
reject2(error);
|
|
101495
|
-
} else if (
|
|
101496
|
-
|
|
101669
|
+
} else if (resolve4) {
|
|
101670
|
+
resolve4(file);
|
|
101497
101671
|
} else {
|
|
101498
101672
|
cb2(null, file);
|
|
101499
101673
|
}
|
|
@@ -102839,12 +103013,12 @@ var require_resolve_all = __commonJS({
|
|
|
102839
103013
|
function resolveAll(constructs, events, context) {
|
|
102840
103014
|
var called = [];
|
|
102841
103015
|
var index = -1;
|
|
102842
|
-
var
|
|
103016
|
+
var resolve4;
|
|
102843
103017
|
while (++index < constructs.length) {
|
|
102844
|
-
|
|
102845
|
-
if (
|
|
102846
|
-
events =
|
|
102847
|
-
called.push(
|
|
103018
|
+
resolve4 = constructs[index].resolveAll;
|
|
103019
|
+
if (resolve4 && called.indexOf(resolve4) < 0) {
|
|
103020
|
+
events = resolve4(events, context);
|
|
103021
|
+
called.push(resolve4);
|
|
102848
103022
|
}
|
|
102849
103023
|
}
|
|
102850
103024
|
return events;
|
|
@@ -111209,7 +111383,7 @@ var require_parse4 = __commonJS({
|
|
|
111209
111383
|
var createTokenizer = require_create_tokenizer();
|
|
111210
111384
|
var miniflat = require_miniflat();
|
|
111211
111385
|
var constructs = require_constructs();
|
|
111212
|
-
function
|
|
111386
|
+
function parse8(options) {
|
|
111213
111387
|
var settings = options || {};
|
|
111214
111388
|
var parser = {
|
|
111215
111389
|
defined: [],
|
|
@@ -111232,8 +111406,8 @@ var require_parse4 = __commonJS({
|
|
|
111232
111406
|
}
|
|
111233
111407
|
__name(create2, "create");
|
|
111234
111408
|
}
|
|
111235
|
-
__name(
|
|
111236
|
-
module2.exports =
|
|
111409
|
+
__name(parse8, "parse");
|
|
111410
|
+
module2.exports = parse8;
|
|
111237
111411
|
}
|
|
111238
111412
|
});
|
|
111239
111413
|
|
|
@@ -112081,12 +112255,12 @@ var require_remark_parse = __commonJS({
|
|
|
112081
112255
|
"../../node_modules/.pnpm/remark-parse@9.0.0/node_modules/remark-parse/index.js"(exports2, module2) {
|
|
112082
112256
|
"use strict";
|
|
112083
112257
|
init_cjs_shims();
|
|
112084
|
-
module2.exports =
|
|
112258
|
+
module2.exports = parse8;
|
|
112085
112259
|
var fromMarkdown = require_mdast_util_from_markdown();
|
|
112086
|
-
function
|
|
112260
|
+
function parse8(options) {
|
|
112087
112261
|
var self2 = this;
|
|
112088
|
-
this.Parser =
|
|
112089
|
-
function
|
|
112262
|
+
this.Parser = parse9;
|
|
112263
|
+
function parse9(doc) {
|
|
112090
112264
|
return fromMarkdown(doc, Object.assign({}, self2.data("settings"), options, {
|
|
112091
112265
|
// Note: these options are not in the readme.
|
|
112092
112266
|
// The goal is for them to be set by plugins on `data` instead of being
|
|
@@ -112095,9 +112269,9 @@ var require_remark_parse = __commonJS({
|
|
|
112095
112269
|
mdastExtensions: self2.data("fromMarkdownExtensions") || []
|
|
112096
112270
|
}));
|
|
112097
112271
|
}
|
|
112098
|
-
__name(
|
|
112272
|
+
__name(parse9, "parse");
|
|
112099
112273
|
}
|
|
112100
|
-
__name(
|
|
112274
|
+
__name(parse8, "parse");
|
|
112101
112275
|
}
|
|
112102
112276
|
});
|
|
112103
112277
|
|
|
@@ -112108,28 +112282,28 @@ var require_format = __commonJS({
|
|
|
112108
112282
|
(function() {
|
|
112109
112283
|
var namespace;
|
|
112110
112284
|
if (typeof module2 !== "undefined") {
|
|
112111
|
-
namespace = module2.exports =
|
|
112285
|
+
namespace = module2.exports = format4;
|
|
112112
112286
|
} else {
|
|
112113
112287
|
namespace = function() {
|
|
112114
112288
|
return this || (1, eval)("this");
|
|
112115
112289
|
}();
|
|
112116
112290
|
}
|
|
112117
|
-
namespace.format =
|
|
112291
|
+
namespace.format = format4;
|
|
112118
112292
|
namespace.vsprintf = vsprintf;
|
|
112119
112293
|
if (typeof console !== "undefined" && typeof console.log === "function") {
|
|
112120
112294
|
namespace.printf = printf;
|
|
112121
112295
|
}
|
|
112122
112296
|
function printf() {
|
|
112123
|
-
console.log(
|
|
112297
|
+
console.log(format4.apply(null, arguments));
|
|
112124
112298
|
}
|
|
112125
112299
|
__name(printf, "printf");
|
|
112126
112300
|
function vsprintf(fmt, replacements2) {
|
|
112127
|
-
return
|
|
112301
|
+
return format4.apply(null, [
|
|
112128
112302
|
fmt
|
|
112129
112303
|
].concat(replacements2));
|
|
112130
112304
|
}
|
|
112131
112305
|
__name(vsprintf, "vsprintf");
|
|
112132
|
-
function
|
|
112306
|
+
function format4(fmt) {
|
|
112133
112307
|
var argIndex = 1, args = [].slice.call(arguments), i2 = 0, n = fmt.length, result2 = "", c, escaped = false, arg, tmp, leadingZero = false, precision, nextArg = /* @__PURE__ */ __name(function() {
|
|
112134
112308
|
return args[argIndex++];
|
|
112135
112309
|
}, "nextArg"), slurpNumber = /* @__PURE__ */ __name(function() {
|
|
@@ -112198,7 +112372,7 @@ var require_format = __commonJS({
|
|
|
112198
112372
|
}
|
|
112199
112373
|
return result2;
|
|
112200
112374
|
}
|
|
112201
|
-
__name(
|
|
112375
|
+
__name(format4, "format");
|
|
112202
112376
|
})();
|
|
112203
112377
|
}
|
|
112204
112378
|
});
|
|
@@ -112221,11 +112395,11 @@ var require_fault = __commonJS({
|
|
|
112221
112395
|
function create2(EConstructor) {
|
|
112222
112396
|
FormattedError.displayName = EConstructor.displayName || EConstructor.name;
|
|
112223
112397
|
return FormattedError;
|
|
112224
|
-
function FormattedError(
|
|
112225
|
-
if (
|
|
112226
|
-
|
|
112398
|
+
function FormattedError(format4) {
|
|
112399
|
+
if (format4) {
|
|
112400
|
+
format4 = formatter.apply(null, arguments);
|
|
112227
112401
|
}
|
|
112228
|
-
return new EConstructor(
|
|
112402
|
+
return new EConstructor(format4);
|
|
112229
112403
|
}
|
|
112230
112404
|
__name(FormattedError, "FormattedError");
|
|
112231
112405
|
}
|
|
@@ -112303,10 +112477,10 @@ var require_syntax5 = __commonJS({
|
|
|
112303
112477
|
matter = settings[index];
|
|
112304
112478
|
code = fence(matter, "open").charCodeAt(0);
|
|
112305
112479
|
if (code in flow) {
|
|
112306
|
-
flow[code].push(
|
|
112480
|
+
flow[code].push(parse8(matter));
|
|
112307
112481
|
} else {
|
|
112308
112482
|
flow[code] = [
|
|
112309
|
-
|
|
112483
|
+
parse8(matter)
|
|
112310
112484
|
];
|
|
112311
112485
|
}
|
|
112312
112486
|
}
|
|
@@ -112315,7 +112489,7 @@ var require_syntax5 = __commonJS({
|
|
|
112315
112489
|
};
|
|
112316
112490
|
}
|
|
112317
112491
|
__name(create2, "create");
|
|
112318
|
-
function
|
|
112492
|
+
function parse8(matter) {
|
|
112319
112493
|
var name = matter.type;
|
|
112320
112494
|
var anywhere = matter.anywhere;
|
|
112321
112495
|
var valueType = name + "Value";
|
|
@@ -112431,7 +112605,7 @@ var require_syntax5 = __commonJS({
|
|
|
112431
112605
|
}
|
|
112432
112606
|
__name(tokenizeFence, "tokenizeFence");
|
|
112433
112607
|
}
|
|
112434
|
-
__name(
|
|
112608
|
+
__name(parse8, "parse");
|
|
112435
112609
|
function fence(matter, prop) {
|
|
112436
112610
|
var marker;
|
|
112437
112611
|
if (matter.marker) {
|
|
@@ -113487,7 +113661,7 @@ var require_update_section = __commonJS({
|
|
|
113487
113661
|
"../../node_modules/.pnpm/update-section@0.3.3/node_modules/update-section/update-section.js"(exports2, module2) {
|
|
113488
113662
|
"use strict";
|
|
113489
113663
|
init_cjs_shims();
|
|
113490
|
-
function
|
|
113664
|
+
function parse8(lines2, matchesStart2, matchesEnd2) {
|
|
113491
113665
|
var startIdx = -1, endIdx = -1, hasStart = false, hasEnd = false, line;
|
|
113492
113666
|
for (var i2 = 0; i2 < lines2.length; i2++) {
|
|
113493
113667
|
line = lines2[i2];
|
|
@@ -113511,12 +113685,12 @@ var require_update_section = __commonJS({
|
|
|
113511
113685
|
endIdx
|
|
113512
113686
|
};
|
|
113513
113687
|
}
|
|
113514
|
-
__name(
|
|
113688
|
+
__name(parse8, "parse");
|
|
113515
113689
|
exports2 = module2.exports = /* @__PURE__ */ __name(function updateSection2(content, section, matchesStart2, matchesEnd2, top) {
|
|
113516
113690
|
if (!content) return section;
|
|
113517
113691
|
var lines2 = content.split("\n");
|
|
113518
113692
|
if (!lines2.length) return section;
|
|
113519
|
-
var info =
|
|
113693
|
+
var info = parse8(lines2, matchesStart2, matchesEnd2);
|
|
113520
113694
|
if (!info.hasStart) return top ? section + "\n\n" + content : content + "\n\n" + section;
|
|
113521
113695
|
var sectionLines = section.split("\n"), dropN = info.endIdx - info.startIdx + 1;
|
|
113522
113696
|
[].splice.apply(lines2, [
|
|
@@ -113525,7 +113699,7 @@ var require_update_section = __commonJS({
|
|
|
113525
113699
|
].concat(sectionLines));
|
|
113526
113700
|
return lines2.join("\n");
|
|
113527
113701
|
}, "updateSection");
|
|
113528
|
-
exports2.parse =
|
|
113702
|
+
exports2.parse = parse8;
|
|
113529
113703
|
}
|
|
113530
113704
|
});
|
|
113531
113705
|
|
|
@@ -113568,7 +113742,7 @@ function createJiti(id, opts = {}) {
|
|
|
113568
113742
|
__name(createJiti, "createJiti");
|
|
113569
113743
|
|
|
113570
113744
|
// ../../node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
113571
|
-
|
|
113745
|
+
init_dist6();
|
|
113572
113746
|
|
|
113573
113747
|
// ../../node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
|
|
113574
113748
|
init_cjs_shims();
|
|
@@ -113778,7 +113952,7 @@ function withDefaults(options) {
|
|
|
113778
113952
|
return { ...defaults, ...options };
|
|
113779
113953
|
}
|
|
113780
113954
|
__name(withDefaults, "withDefaults");
|
|
113781
|
-
function
|
|
113955
|
+
function parse5(contents, options = {}) {
|
|
113782
113956
|
const config = {};
|
|
113783
113957
|
const lines2 = contents.split(RE_LINES);
|
|
113784
113958
|
for (const line of lines2) {
|
|
@@ -113803,12 +113977,12 @@ function parse4(contents, options = {}) {
|
|
|
113803
113977
|
}
|
|
113804
113978
|
return options.flat ? config : unflatten(config, { overwrite: true });
|
|
113805
113979
|
}
|
|
113806
|
-
__name(
|
|
113980
|
+
__name(parse5, "parse");
|
|
113807
113981
|
function parseFile(path6, options) {
|
|
113808
113982
|
if (!(0, import_node_fs3.existsSync)(path6)) {
|
|
113809
113983
|
return {};
|
|
113810
113984
|
}
|
|
113811
|
-
return
|
|
113985
|
+
return parse5((0, import_node_fs3.readFileSync)(path6, "utf8"), options);
|
|
113812
113986
|
}
|
|
113813
113987
|
__name(parseFile, "parseFile");
|
|
113814
113988
|
function read2(options) {
|
|
@@ -114469,7 +114643,7 @@ function hash(object2, options = {}) {
|
|
|
114469
114643
|
__name(hash, "hash");
|
|
114470
114644
|
|
|
114471
114645
|
// ../../node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs
|
|
114472
|
-
|
|
114646
|
+
init_dist5();
|
|
114473
114647
|
var dotenv = __toESM(require_main(), 1);
|
|
114474
114648
|
async function setupDotenv(options) {
|
|
114475
114649
|
const targetEnvironment = options.env ?? process.env;
|
|
@@ -114504,7 +114678,7 @@ async function loadDotenv(options) {
|
|
|
114504
114678
|
return environment;
|
|
114505
114679
|
}
|
|
114506
114680
|
__name(loadDotenv, "loadDotenv");
|
|
114507
|
-
function interpolate(target, source = {},
|
|
114681
|
+
function interpolate(target, source = {}, parse8 = (v4) => v4) {
|
|
114508
114682
|
function getValue(key) {
|
|
114509
114683
|
return source[key] === void 0 ? target[key] : source[key];
|
|
114510
114684
|
}
|
|
@@ -114514,7 +114688,7 @@ function interpolate(target, source = {}, parse7 = (v4) => v4) {
|
|
|
114514
114688
|
return value2;
|
|
114515
114689
|
}
|
|
114516
114690
|
const matches = value2.match(/(.?\${?(?:[\w:]+)?}?)/g) || [];
|
|
114517
|
-
return
|
|
114691
|
+
return parse8(
|
|
114518
114692
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
114519
114693
|
matches.reduce((newValue, match) => {
|
|
114520
114694
|
const parts = /(.?)\${?([\w:]+)?}?/g.exec(match) || [];
|
|
@@ -114752,7 +114926,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
114752
114926
|
}
|
|
114753
114927
|
const _merger = options.merger || defu;
|
|
114754
114928
|
if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
|
|
114755
|
-
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (
|
|
114929
|
+
const { downloadTemplate: downloadTemplate2 } = await Promise.resolve().then(() => (init_dist8(), dist_exports));
|
|
114756
114930
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
|
|
114757
114931
|
let cloneDir;
|
|
114758
114932
|
const localNodeModules = resolve(options.cwd, "node_modules");
|
|
@@ -114786,18 +114960,18 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
114786
114960
|
}
|
|
114787
114961
|
const ext = extname(source);
|
|
114788
114962
|
const isDir = !ext || ext === basename(source);
|
|
114789
|
-
const
|
|
114963
|
+
const cwd3 = resolve(options.cwd, isDir ? source : dirname(source));
|
|
114790
114964
|
if (isDir) {
|
|
114791
114965
|
source = options.configFile;
|
|
114792
114966
|
}
|
|
114793
114967
|
const res = {
|
|
114794
114968
|
config: void 0,
|
|
114795
114969
|
configFile: void 0,
|
|
114796
|
-
cwd:
|
|
114970
|
+
cwd: cwd3,
|
|
114797
114971
|
source,
|
|
114798
114972
|
sourceOptions
|
|
114799
114973
|
};
|
|
114800
|
-
res.configFile = tryResolve(resolve(
|
|
114974
|
+
res.configFile = tryResolve(resolve(cwd3, source)) || tryResolve(resolve(cwd3, ".config", source.replace(/\.config$/, ""))) || tryResolve(resolve(cwd3, ".config", source)) || source;
|
|
114801
114975
|
if (!(0, import_node_fs8.existsSync)(res.configFile)) {
|
|
114802
114976
|
return res;
|
|
114803
114977
|
}
|
|
@@ -119614,9 +119788,9 @@ Stacktrace: ${error.stack}`, config);
|
|
|
119614
119788
|
init_cjs_shims();
|
|
119615
119789
|
var import_node_child_process5 = require("child_process");
|
|
119616
119790
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
119617
|
-
var run = /* @__PURE__ */ __name((config, command,
|
|
119791
|
+
var run = /* @__PURE__ */ __name((config, command, cwd3 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env2 = process.env) => {
|
|
119618
119792
|
return (0, import_node_child_process5.execSync)(command, {
|
|
119619
|
-
cwd:
|
|
119793
|
+
cwd: cwd3,
|
|
119620
119794
|
env: {
|
|
119621
119795
|
...process.env,
|
|
119622
119796
|
...env2,
|
|
@@ -120132,16 +120306,16 @@ var {
|
|
|
120132
120306
|
// src/commit/run.ts
|
|
120133
120307
|
init_cjs_shims();
|
|
120134
120308
|
|
|
120135
|
-
// ../../node_modules/.pnpm/@inquirer+prompts@7.2.1_@types+node@22.10.
|
|
120309
|
+
// ../../node_modules/.pnpm/@inquirer+prompts@7.2.1_@types+node@22.10.7/node_modules/@inquirer/prompts/dist/esm/index.js
|
|
120136
120310
|
init_cjs_shims();
|
|
120137
120311
|
|
|
120138
|
-
// ../../node_modules/.pnpm/@inquirer+checkbox@4.0.4_@types+node@22.10.
|
|
120312
|
+
// ../../node_modules/.pnpm/@inquirer+checkbox@4.0.4_@types+node@22.10.7/node_modules/@inquirer/checkbox/dist/esm/index.js
|
|
120139
120313
|
init_cjs_shims();
|
|
120140
120314
|
|
|
120141
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120315
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/index.js
|
|
120142
120316
|
init_cjs_shims();
|
|
120143
120317
|
|
|
120144
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120318
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
120145
120319
|
init_cjs_shims();
|
|
120146
120320
|
var isUpKey = /* @__PURE__ */ __name((key) => (
|
|
120147
120321
|
// The up key
|
|
@@ -120160,7 +120334,7 @@ var isBackspaceKey = /* @__PURE__ */ __name((key) => key.name === "backspace", "
|
|
|
120160
120334
|
var isNumberKey = /* @__PURE__ */ __name((key) => "123456789".includes(key.name), "isNumberKey");
|
|
120161
120335
|
var isEnterKey = /* @__PURE__ */ __name((key) => key.name === "enter" || key.name === "return", "isEnterKey");
|
|
120162
120336
|
|
|
120163
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120337
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
120164
120338
|
init_cjs_shims();
|
|
120165
120339
|
var AbortPromptError = class extends Error {
|
|
120166
120340
|
static {
|
|
@@ -120199,14 +120373,14 @@ var ValidationError = class extends Error {
|
|
|
120199
120373
|
name = "ValidationError";
|
|
120200
120374
|
};
|
|
120201
120375
|
|
|
120202
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120376
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
120203
120377
|
init_cjs_shims();
|
|
120204
120378
|
var import_node_async_hooks2 = require("async_hooks");
|
|
120205
120379
|
|
|
120206
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120380
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
120207
120381
|
init_cjs_shims();
|
|
120208
120382
|
|
|
120209
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120383
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
120210
120384
|
init_cjs_shims();
|
|
120211
120385
|
var import_node_async_hooks = require("async_hooks");
|
|
120212
120386
|
var hookStorage = new import_node_async_hooks.AsyncLocalStorage();
|
|
@@ -120321,7 +120495,7 @@ var effectScheduler = {
|
|
|
120321
120495
|
}
|
|
120322
120496
|
};
|
|
120323
120497
|
|
|
120324
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120498
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
120325
120499
|
function useState(defaultValue) {
|
|
120326
120500
|
return withPointer((pointer) => {
|
|
120327
120501
|
const setFn = /* @__PURE__ */ __name((newValue) => {
|
|
@@ -120346,7 +120520,7 @@ function useState(defaultValue) {
|
|
|
120346
120520
|
}
|
|
120347
120521
|
__name(useState, "useState");
|
|
120348
120522
|
|
|
120349
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120523
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
120350
120524
|
init_cjs_shims();
|
|
120351
120525
|
function useEffect(cb2, depArray) {
|
|
120352
120526
|
withPointer((pointer) => {
|
|
@@ -120360,10 +120534,10 @@ function useEffect(cb2, depArray) {
|
|
|
120360
120534
|
}
|
|
120361
120535
|
__name(useEffect, "useEffect");
|
|
120362
120536
|
|
|
120363
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120537
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
120364
120538
|
init_cjs_shims();
|
|
120365
120539
|
|
|
120366
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120540
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
120367
120541
|
init_cjs_shims();
|
|
120368
120542
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
|
120369
120543
|
|
|
@@ -120661,7 +120835,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
120661
120835
|
var esm_default = figures;
|
|
120662
120836
|
var replacements = Object.entries(specialMainSymbols);
|
|
120663
120837
|
|
|
120664
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120838
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
120665
120839
|
var defaultTheme = {
|
|
120666
120840
|
prefix: {
|
|
120667
120841
|
idle: import_yoctocolors_cjs.default.blue("?"),
|
|
@@ -120694,7 +120868,7 @@ var defaultTheme = {
|
|
|
120694
120868
|
}
|
|
120695
120869
|
};
|
|
120696
120870
|
|
|
120697
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120871
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
120698
120872
|
function isPlainObject2(value2) {
|
|
120699
120873
|
if (typeof value2 !== "object" || value2 === null) return false;
|
|
120700
120874
|
let proto2 = value2;
|
|
@@ -120724,7 +120898,7 @@ function makeTheme(...themes) {
|
|
|
120724
120898
|
}
|
|
120725
120899
|
__name(makeTheme, "makeTheme");
|
|
120726
120900
|
|
|
120727
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120901
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
120728
120902
|
function usePrefix({ status = "idle", theme }) {
|
|
120729
120903
|
const [showLoader, setShowLoader] = useState(false);
|
|
120730
120904
|
const [tick, setTick] = useState(0);
|
|
@@ -120758,7 +120932,7 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
120758
120932
|
}
|
|
120759
120933
|
__name(usePrefix, "usePrefix");
|
|
120760
120934
|
|
|
120761
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120935
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
|
120762
120936
|
init_cjs_shims();
|
|
120763
120937
|
function useMemo(fn2, dependencies) {
|
|
120764
120938
|
return withPointer((pointer) => {
|
|
@@ -120776,7 +120950,7 @@ function useMemo(fn2, dependencies) {
|
|
|
120776
120950
|
}
|
|
120777
120951
|
__name(useMemo, "useMemo");
|
|
120778
120952
|
|
|
120779
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120953
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
120780
120954
|
init_cjs_shims();
|
|
120781
120955
|
function useRef(val) {
|
|
120782
120956
|
return useState({
|
|
@@ -120785,7 +120959,7 @@ function useRef(val) {
|
|
|
120785
120959
|
}
|
|
120786
120960
|
__name(useRef, "useRef");
|
|
120787
120961
|
|
|
120788
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120962
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
120789
120963
|
init_cjs_shims();
|
|
120790
120964
|
function useKeypress(userHandler) {
|
|
120791
120965
|
const signal = useRef(userHandler);
|
|
@@ -120805,10 +120979,10 @@ function useKeypress(userHandler) {
|
|
|
120805
120979
|
}
|
|
120806
120980
|
__name(useKeypress, "useKeypress");
|
|
120807
120981
|
|
|
120808
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120982
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
120809
120983
|
init_cjs_shims();
|
|
120810
120984
|
|
|
120811
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
120985
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
120812
120986
|
init_cjs_shims();
|
|
120813
120987
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
120814
120988
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
|
@@ -120827,7 +121001,7 @@ function readlineWidth() {
|
|
|
120827
121001
|
}
|
|
120828
121002
|
__name(readlineWidth, "readlineWidth");
|
|
120829
121003
|
|
|
120830
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121004
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
|
|
120831
121005
|
init_cjs_shims();
|
|
120832
121006
|
function split(content, width) {
|
|
120833
121007
|
return breakLines(content, width).split("\n");
|
|
@@ -120878,7 +121052,7 @@ function lines({ items, width, renderItem, active, position: requested, pageSize
|
|
|
120878
121052
|
}
|
|
120879
121053
|
__name(lines, "lines");
|
|
120880
121054
|
|
|
120881
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121055
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
|
|
120882
121056
|
init_cjs_shims();
|
|
120883
121057
|
function finite({ active, pageSize, total }) {
|
|
120884
121058
|
const middle = Math.floor(pageSize / 2);
|
|
@@ -120896,7 +121070,7 @@ function infinite({ active, lastActive, total, pageSize, pointer }) {
|
|
|
120896
121070
|
}
|
|
120897
121071
|
__name(infinite, "infinite");
|
|
120898
121072
|
|
|
120899
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121073
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
120900
121074
|
function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
120901
121075
|
const state = useRef({
|
|
120902
121076
|
position: 0,
|
|
@@ -120926,14 +121100,14 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
120926
121100
|
}
|
|
120927
121101
|
__name(usePagination, "usePagination");
|
|
120928
121102
|
|
|
120929
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121103
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
120930
121104
|
init_cjs_shims();
|
|
120931
121105
|
var readline2 = __toESM(require("readline"), 1);
|
|
120932
121106
|
var import_node_async_hooks3 = require("async_hooks");
|
|
120933
121107
|
var import_mute_stream = __toESM(require_lib2(), 1);
|
|
120934
121108
|
init_mjs();
|
|
120935
121109
|
|
|
120936
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121110
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
120937
121111
|
init_cjs_shims();
|
|
120938
121112
|
var import_strip_ansi = __toESM(require_strip_ansi(), 1);
|
|
120939
121113
|
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
|
@@ -121003,7 +121177,7 @@ var ScreenManager = class {
|
|
|
121003
121177
|
}
|
|
121004
121178
|
};
|
|
121005
121179
|
|
|
121006
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121180
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
121007
121181
|
init_cjs_shims();
|
|
121008
121182
|
var PromisePolyfill = class extends Promise {
|
|
121009
121183
|
static {
|
|
@@ -121012,21 +121186,21 @@ var PromisePolyfill = class extends Promise {
|
|
|
121012
121186
|
// Available starting from Node 22
|
|
121013
121187
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
|
|
121014
121188
|
static withResolver() {
|
|
121015
|
-
let
|
|
121189
|
+
let resolve4;
|
|
121016
121190
|
let reject2;
|
|
121017
121191
|
const promise = new Promise((res, rej) => {
|
|
121018
|
-
|
|
121192
|
+
resolve4 = res;
|
|
121019
121193
|
reject2 = rej;
|
|
121020
121194
|
});
|
|
121021
121195
|
return {
|
|
121022
121196
|
promise,
|
|
121023
|
-
resolve:
|
|
121197
|
+
resolve: resolve4,
|
|
121024
121198
|
reject: reject2
|
|
121025
121199
|
};
|
|
121026
121200
|
}
|
|
121027
121201
|
};
|
|
121028
121202
|
|
|
121029
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121203
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
121030
121204
|
function getCallSites() {
|
|
121031
121205
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
121032
121206
|
try {
|
|
@@ -121057,7 +121231,7 @@ function createPrompt(view) {
|
|
|
121057
121231
|
output
|
|
121058
121232
|
});
|
|
121059
121233
|
const screen = new ScreenManager(rl);
|
|
121060
|
-
const { promise, resolve:
|
|
121234
|
+
const { promise, resolve: resolve4, reject: reject2 } = PromisePolyfill.withResolver();
|
|
121061
121235
|
const cancel = /* @__PURE__ */ __name(() => reject2(new CancelPromptError()), "cancel");
|
|
121062
121236
|
if (signal) {
|
|
121063
121237
|
const abort = /* @__PURE__ */ __name(() => reject2(new AbortPromptError({
|
|
@@ -121085,7 +121259,7 @@ function createPrompt(view) {
|
|
|
121085
121259
|
cycle(() => {
|
|
121086
121260
|
try {
|
|
121087
121261
|
const nextView = view(config, (value2) => {
|
|
121088
|
-
setImmediate(() =>
|
|
121262
|
+
setImmediate(() => resolve4(value2));
|
|
121089
121263
|
});
|
|
121090
121264
|
if (nextView === void 0) {
|
|
121091
121265
|
throw new Error(`Prompt functions must return a string.
|
|
@@ -121121,7 +121295,7 @@ function createPrompt(view) {
|
|
|
121121
121295
|
}
|
|
121122
121296
|
__name(createPrompt, "createPrompt");
|
|
121123
121297
|
|
|
121124
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.
|
|
121298
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.2_@types+node@22.10.7/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
121125
121299
|
init_cjs_shims();
|
|
121126
121300
|
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
121127
121301
|
var Separator = class {
|
|
@@ -121142,7 +121316,7 @@ var Separator = class {
|
|
|
121142
121316
|
}
|
|
121143
121317
|
};
|
|
121144
121318
|
|
|
121145
|
-
// ../../node_modules/.pnpm/@inquirer+checkbox@4.0.4_@types+node@22.10.
|
|
121319
|
+
// ../../node_modules/.pnpm/@inquirer+checkbox@4.0.4_@types+node@22.10.7/node_modules/@inquirer/checkbox/dist/esm/index.js
|
|
121146
121320
|
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
|
121147
121321
|
var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
|
|
121148
121322
|
var checkboxTheme = {
|
|
@@ -121334,7 +121508,7 @@ ${theme.style.error(errorMsg)}`;
|
|
|
121334
121508
|
${page}${helpTipBottom}${choiceDescription}${error}${import_ansi_escapes2.default.cursorHide}`;
|
|
121335
121509
|
});
|
|
121336
121510
|
|
|
121337
|
-
// ../../node_modules/.pnpm/@inquirer+editor@4.2.1_@types+node@22.10.
|
|
121511
|
+
// ../../node_modules/.pnpm/@inquirer+editor@4.2.1_@types+node@22.10.7/node_modules/@inquirer/editor/dist/esm/index.js
|
|
121338
121512
|
init_cjs_shims();
|
|
121339
121513
|
var import_node_async_hooks4 = require("async_hooks");
|
|
121340
121514
|
var import_external_editor = __toESM(require_main2(), 1);
|
|
@@ -121416,7 +121590,7 @@ var esm_default3 = createPrompt((config, done) => {
|
|
|
121416
121590
|
];
|
|
121417
121591
|
});
|
|
121418
121592
|
|
|
121419
|
-
// ../../node_modules/.pnpm/@inquirer+confirm@5.1.1_@types+node@22.10.
|
|
121593
|
+
// ../../node_modules/.pnpm/@inquirer+confirm@5.1.1_@types+node@22.10.7/node_modules/@inquirer/confirm/dist/esm/index.js
|
|
121420
121594
|
init_cjs_shims();
|
|
121421
121595
|
function getBooleanValue(value2, defaultValue) {
|
|
121422
121596
|
let answer = defaultValue !== false;
|
|
@@ -121464,7 +121638,7 @@ var esm_default4 = createPrompt((config, done) => {
|
|
|
121464
121638
|
return `${prefix} ${message2}${defaultValue} ${formattedValue}`;
|
|
121465
121639
|
});
|
|
121466
121640
|
|
|
121467
|
-
// ../../node_modules/.pnpm/@inquirer+input@4.1.1_@types+node@22.10.
|
|
121641
|
+
// ../../node_modules/.pnpm/@inquirer+input@4.1.1_@types+node@22.10.7/node_modules/@inquirer/input/dist/esm/index.js
|
|
121468
121642
|
init_cjs_shims();
|
|
121469
121643
|
var inputTheme = {
|
|
121470
121644
|
validationFailureMode: "keep"
|
|
@@ -121541,7 +121715,7 @@ var esm_default5 = createPrompt((config, done) => {
|
|
|
121541
121715
|
];
|
|
121542
121716
|
});
|
|
121543
121717
|
|
|
121544
|
-
// ../../node_modules/.pnpm/@inquirer+number@3.0.4_@types+node@22.10.
|
|
121718
|
+
// ../../node_modules/.pnpm/@inquirer+number@3.0.4_@types+node@22.10.7/node_modules/@inquirer/number/dist/esm/index.js
|
|
121545
121719
|
init_cjs_shims();
|
|
121546
121720
|
function isStepOf(value2, step, min2) {
|
|
121547
121721
|
const valuePow = value2 * Math.pow(10, 6);
|
|
@@ -121641,7 +121815,7 @@ var esm_default6 = createPrompt((config, done) => {
|
|
|
121641
121815
|
];
|
|
121642
121816
|
});
|
|
121643
121817
|
|
|
121644
|
-
// ../../node_modules/.pnpm/@inquirer+expand@4.0.4_@types+node@22.10.
|
|
121818
|
+
// ../../node_modules/.pnpm/@inquirer+expand@4.0.4_@types+node@22.10.7/node_modules/@inquirer/expand/dist/esm/index.js
|
|
121645
121819
|
init_cjs_shims();
|
|
121646
121820
|
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
121647
121821
|
function normalizeChoices2(choices) {
|
|
@@ -121750,7 +121924,7 @@ var esm_default7 = createPrompt((config, done) => {
|
|
|
121750
121924
|
];
|
|
121751
121925
|
});
|
|
121752
121926
|
|
|
121753
|
-
// ../../node_modules/.pnpm/@inquirer+rawlist@4.0.4_@types+node@22.10.
|
|
121927
|
+
// ../../node_modules/.pnpm/@inquirer+rawlist@4.0.4_@types+node@22.10.7/node_modules/@inquirer/rawlist/dist/esm/index.js
|
|
121754
121928
|
init_cjs_shims();
|
|
121755
121929
|
var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
|
|
121756
121930
|
var numberRegex = /\d+/;
|
|
@@ -121843,7 +122017,7 @@ var esm_default8 = createPrompt((config, done) => {
|
|
|
121843
122017
|
];
|
|
121844
122018
|
});
|
|
121845
122019
|
|
|
121846
|
-
// ../../node_modules/.pnpm/@inquirer+password@4.0.4_@types+node@22.10.
|
|
122020
|
+
// ../../node_modules/.pnpm/@inquirer+password@4.0.4_@types+node@22.10.7/node_modules/@inquirer/password/dist/esm/index.js
|
|
121847
122021
|
init_cjs_shims();
|
|
121848
122022
|
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
|
121849
122023
|
var esm_default9 = createPrompt((config, done) => {
|
|
@@ -121904,7 +122078,7 @@ var esm_default9 = createPrompt((config, done) => {
|
|
|
121904
122078
|
];
|
|
121905
122079
|
});
|
|
121906
122080
|
|
|
121907
|
-
// ../../node_modules/.pnpm/@inquirer+search@3.0.4_@types+node@22.10.
|
|
122081
|
+
// ../../node_modules/.pnpm/@inquirer+search@3.0.4_@types+node@22.10.7/node_modules/@inquirer/search/dist/esm/index.js
|
|
121908
122082
|
init_cjs_shims();
|
|
121909
122083
|
var import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);
|
|
121910
122084
|
var searchTheme = {
|
|
@@ -122085,7 +122259,7 @@ ${theme.style.description(selectedChoice.description)}` : ``;
|
|
|
122085
122259
|
];
|
|
122086
122260
|
});
|
|
122087
122261
|
|
|
122088
|
-
// ../../node_modules/.pnpm/@inquirer+select@4.0.4_@types+node@22.10.
|
|
122262
|
+
// ../../node_modules/.pnpm/@inquirer+select@4.0.4_@types+node@22.10.7/node_modules/@inquirer/select/dist/esm/index.js
|
|
122089
122263
|
init_cjs_shims();
|
|
122090
122264
|
var import_yoctocolors_cjs7 = __toESM(require_yoctocolors_cjs(), 1);
|
|
122091
122265
|
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
|
@@ -124363,15 +124537,15 @@ init_cjs_shims();
|
|
|
124363
124537
|
// ../../node_modules/.pnpm/conventional-commits-parser@6.0.0/node_modules/conventional-commits-parser/dist/regex.js
|
|
124364
124538
|
init_cjs_shims();
|
|
124365
124539
|
var nomatchRegex = /(?!.*)/;
|
|
124366
|
-
function
|
|
124540
|
+
function join5(parts, joiner) {
|
|
124367
124541
|
return parts.map((val) => val.trim()).filter(Boolean).join(joiner);
|
|
124368
124542
|
}
|
|
124369
|
-
__name(
|
|
124543
|
+
__name(join5, "join");
|
|
124370
124544
|
function getNotesRegex(noteKeywords, notesPattern) {
|
|
124371
124545
|
if (!noteKeywords) {
|
|
124372
124546
|
return nomatchRegex;
|
|
124373
124547
|
}
|
|
124374
|
-
const noteKeywordsSelection =
|
|
124548
|
+
const noteKeywordsSelection = join5(noteKeywords, "|");
|
|
124375
124549
|
if (!notesPattern) {
|
|
124376
124550
|
return new RegExp(`^[\\s|*]*(${noteKeywordsSelection})[:\\s]+(.*)`, "i");
|
|
124377
124551
|
}
|
|
@@ -124383,14 +124557,14 @@ function getReferencePartsRegex(issuePrefixes, issuePrefixesCaseSensitive) {
|
|
|
124383
124557
|
return nomatchRegex;
|
|
124384
124558
|
}
|
|
124385
124559
|
const flags = issuePrefixesCaseSensitive ? "g" : "gi";
|
|
124386
|
-
return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${
|
|
124560
|
+
return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${join5(issuePrefixes, "|")})([\\w-]*\\d+)`, flags);
|
|
124387
124561
|
}
|
|
124388
124562
|
__name(getReferencePartsRegex, "getReferencePartsRegex");
|
|
124389
124563
|
function getReferencesRegex(referenceActions) {
|
|
124390
124564
|
if (!referenceActions) {
|
|
124391
124565
|
return /()(.+)/gi;
|
|
124392
124566
|
}
|
|
124393
|
-
const joinedKeywords =
|
|
124567
|
+
const joinedKeywords = join5(referenceActions, "|");
|
|
124394
124568
|
return new RegExp(`(${joinedKeywords})(?:\\s+(.*?))(?=(?:${joinedKeywords})|$)`, "gi");
|
|
124395
124569
|
}
|
|
124396
124570
|
__name(getReferencesRegex, "getReferencesRegex");
|
|
@@ -125631,12 +125805,12 @@ var RetryTask = class RetryTask2 {
|
|
|
125631
125805
|
* @param {Function} reject The reject function for the promise.
|
|
125632
125806
|
* @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation.
|
|
125633
125807
|
*/
|
|
125634
|
-
constructor(fn2, error,
|
|
125808
|
+
constructor(fn2, error, resolve4, reject2, signal) {
|
|
125635
125809
|
this.fn = fn2;
|
|
125636
125810
|
this.error = error;
|
|
125637
125811
|
this.timestamp = Date.now();
|
|
125638
125812
|
this.lastAttempt = Date.now();
|
|
125639
|
-
this.resolve =
|
|
125813
|
+
this.resolve = resolve4;
|
|
125640
125814
|
this.reject = reject2;
|
|
125641
125815
|
this.signal = signal;
|
|
125642
125816
|
}
|
|
@@ -125718,8 +125892,8 @@ var Retrier = class Retrier2 {
|
|
|
125718
125892
|
if (!this.#check(error)) {
|
|
125719
125893
|
throw error;
|
|
125720
125894
|
}
|
|
125721
|
-
return new Promise((
|
|
125722
|
-
this.#queue.push(new RetryTask(fn2, error,
|
|
125895
|
+
return new Promise((resolve4, reject2) => {
|
|
125896
|
+
this.#queue.push(new RetryTask(fn2, error, resolve4, reject2, signal));
|
|
125723
125897
|
signal?.addEventListener("abort", () => {
|
|
125724
125898
|
reject2(signal.reason);
|
|
125725
125899
|
});
|
|
@@ -126242,11 +126416,11 @@ var formatCommitMessage = /* @__PURE__ */ __name((state) => {
|
|
|
126242
126416
|
const scope = answers.scope ? answers.scope.trim() : "";
|
|
126243
126417
|
const subject = answers.subject?.trim();
|
|
126244
126418
|
const type = answers.type;
|
|
126245
|
-
const
|
|
126419
|
+
const format4 = config.prompt.settings.format || "{type}({scope}): {emoji}{subject}";
|
|
126246
126420
|
const body = answers.body && typeof answers.body === "string" ? (0, import_word_wrap.default)(answers.body || "", wrapOptions) : "";
|
|
126247
126421
|
const breaking = answers.breakingBody && typeof answers.breakingBody === "string" ? (0, import_word_wrap.default)(answers.breakingBody || "", wrapOptions) : "";
|
|
126248
126422
|
const issues = answers.issuesBody && typeof answers.issuesBody === "string" ? (0, import_word_wrap.default)(answers.issuesBody || "", wrapOptions) : "";
|
|
126249
|
-
const head =
|
|
126423
|
+
const head = format4.replace(/\{emoji\}/g, config.prompt.settings.disableEmoji ? "" : `${emoji} `).replace(/\{scope\}/g, scope).replace(/\{subject\}/g, subject || "").replace(/\{type\}/g, type || "");
|
|
126250
126424
|
let msg = head;
|
|
126251
126425
|
if (body) {
|
|
126252
126426
|
msg += `
|
|
@@ -127086,7 +127260,7 @@ var parseMarkdown = /* @__PURE__ */ __name((text) => {
|
|
|
127086
127260
|
|
|
127087
127261
|
// ../../node_modules/.pnpm/@textlint+markdown-to-ast@14.4.2/node_modules/@textlint/markdown-to-ast/module/src/index.js
|
|
127088
127262
|
var debug2 = (0, import_debug.default)("@textlint/markdown-to-ast");
|
|
127089
|
-
function
|
|
127263
|
+
function parse7(text) {
|
|
127090
127264
|
const hasBOM = text.charCodeAt(0) === 65279;
|
|
127091
127265
|
const textWithoutBOM = hasBOM ? text.slice(1) : text;
|
|
127092
127266
|
const ast = parseMarkdown(textWithoutBOM);
|
|
@@ -127130,7 +127304,7 @@ function parse6(text) {
|
|
|
127130
127304
|
});
|
|
127131
127305
|
return ast;
|
|
127132
127306
|
}
|
|
127133
|
-
__name(
|
|
127307
|
+
__name(parse7, "parse");
|
|
127134
127308
|
|
|
127135
127309
|
// src/readme/transform.ts
|
|
127136
127310
|
var import_anchor_markdown_header = __toESM(require_anchor_markdown_header(), 1);
|
|
@@ -138045,7 +138219,7 @@ function getMarkdownHeaders(lines2, maxHeaderLevel) {
|
|
|
138045
138219
|
}).join("");
|
|
138046
138220
|
}
|
|
138047
138221
|
__name(extractText, "extractText");
|
|
138048
|
-
return
|
|
138222
|
+
return parse7(lines2.join("\n")).children.filter(function(x4) {
|
|
138049
138223
|
return x4.type === ASTNodeTypes.Header;
|
|
138050
138224
|
}).map(function(x4) {
|
|
138051
138225
|
return !maxHeaderLevel || x4.depth <= maxHeaderLevel ? {
|
|
@@ -138166,7 +138340,7 @@ function rankify(headers, max2) {
|
|
|
138166
138340
|
}
|
|
138167
138341
|
__name(rankify, "rankify");
|
|
138168
138342
|
function getHtmlHeaders(lines2, maxHeaderLevel) {
|
|
138169
|
-
const source =
|
|
138343
|
+
const source = parse7(lines2.join("\n")).children.filter(function(node) {
|
|
138170
138344
|
return node.type === ASTNodeTypes.Html;
|
|
138171
138345
|
}).map(function(node) {
|
|
138172
138346
|
return node.raw;
|