triangulum 0.33.0-aarch64-linux-gnu → 0.35.0-aarch64-linux-gnu
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.
- checksums.yaml +4 -4
- data/lib/triangulum/js/flow-schema-extraction.js +314 -266
- data/lib/triangulum/js/single-validation.js +95 -46
- data/lib/triangulum/version.rb +1 -1
- metadata +1 -1
|
@@ -169761,20 +169761,20 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
169761
169761
|
if (p4 !== "default" && !Object.prototype.hasOwnProperty.call(o3, p4))
|
|
169762
169762
|
__createBinding(o3, m4, p4);
|
|
169763
169763
|
};
|
|
169764
|
-
__createBinding = Object.create ? function(o3, m4,
|
|
169764
|
+
__createBinding = Object.create ? function(o3, m4, k4, k22) {
|
|
169765
169765
|
if (k22 === undefined)
|
|
169766
|
-
k22 =
|
|
169767
|
-
var desc = Object.getOwnPropertyDescriptor(m4,
|
|
169766
|
+
k22 = k4;
|
|
169767
|
+
var desc = Object.getOwnPropertyDescriptor(m4, k4);
|
|
169768
169768
|
if (!desc || ("get" in desc ? !m4.__esModule : desc.writable || desc.configurable)) {
|
|
169769
169769
|
desc = { enumerable: true, get: function() {
|
|
169770
|
-
return m4[
|
|
169770
|
+
return m4[k4];
|
|
169771
169771
|
} };
|
|
169772
169772
|
}
|
|
169773
169773
|
Object.defineProperty(o3, k22, desc);
|
|
169774
|
-
} : function(o3, m4,
|
|
169774
|
+
} : function(o3, m4, k4, k22) {
|
|
169775
169775
|
if (k22 === undefined)
|
|
169776
|
-
k22 =
|
|
169777
|
-
o3[k22] = m4[
|
|
169776
|
+
k22 = k4;
|
|
169777
|
+
o3[k22] = m4[k4];
|
|
169778
169778
|
};
|
|
169779
169779
|
__values = function(o3) {
|
|
169780
169780
|
var s3 = typeof Symbol === "function" && Symbol.iterator, m4 = s3 && o3[s3], i3 = 0;
|
|
@@ -169819,9 +169819,9 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
169819
169819
|
__spreadArrays = function() {
|
|
169820
169820
|
for (var s3 = 0, i3 = 0, il = arguments.length;i3 < il; i3++)
|
|
169821
169821
|
s3 += arguments[i3].length;
|
|
169822
|
-
for (var r3 = Array(s3),
|
|
169823
|
-
for (var a3 = arguments[i3],
|
|
169824
|
-
r3[
|
|
169822
|
+
for (var r3 = Array(s3), k4 = 0, i3 = 0;i3 < il; i3++)
|
|
169823
|
+
for (var a3 = arguments[i3], j3 = 0, jl = a3.length;j3 < jl; j3++, k4++)
|
|
169824
|
+
r3[k4] = a3[j3];
|
|
169825
169825
|
return r3;
|
|
169826
169826
|
};
|
|
169827
169827
|
__spreadArray = function(to, from, pack) {
|
|
@@ -169931,9 +169931,9 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
169931
169931
|
var ownKeys = function(o3) {
|
|
169932
169932
|
ownKeys = Object.getOwnPropertyNames || function(o4) {
|
|
169933
169933
|
var ar = [];
|
|
169934
|
-
for (var
|
|
169935
|
-
if (Object.prototype.hasOwnProperty.call(o4,
|
|
169936
|
-
ar[ar.length] =
|
|
169934
|
+
for (var k4 in o4)
|
|
169935
|
+
if (Object.prototype.hasOwnProperty.call(o4, k4))
|
|
169936
|
+
ar[ar.length] = k4;
|
|
169937
169937
|
return ar;
|
|
169938
169938
|
};
|
|
169939
169939
|
return ownKeys(o3);
|
|
@@ -169943,9 +169943,9 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
169943
169943
|
return mod;
|
|
169944
169944
|
var result = {};
|
|
169945
169945
|
if (mod != null) {
|
|
169946
|
-
for (var
|
|
169947
|
-
if (
|
|
169948
|
-
__createBinding(result, mod,
|
|
169946
|
+
for (var k4 = ownKeys(mod), i3 = 0;i3 < k4.length; i3++)
|
|
169947
|
+
if (k4[i3] !== "default")
|
|
169948
|
+
__createBinding(result, mod, k4[i3]);
|
|
169949
169949
|
}
|
|
169950
169950
|
__setModuleDefault(result, mod);
|
|
169951
169951
|
return result;
|
|
@@ -173637,17 +173637,17 @@ var require_typescript2 = __commonJS((exports, module) => {
|
|
|
173637
173637
|
const maxJ = Math.floor(s22.length > max + i3 ? max + i3 : s22.length);
|
|
173638
173638
|
current[0] = i3;
|
|
173639
173639
|
let colMin = i3;
|
|
173640
|
-
for (let
|
|
173641
|
-
current[
|
|
173640
|
+
for (let j3 = 1;j3 < minJ; j3++) {
|
|
173641
|
+
current[j3] = big;
|
|
173642
173642
|
}
|
|
173643
|
-
for (let
|
|
173644
|
-
const substitutionDistance = s1[i3 - 1].toLowerCase() === s22[
|
|
173645
|
-
const dist = c1 === s22.charCodeAt(
|
|
173646
|
-
current[
|
|
173643
|
+
for (let j3 = minJ;j3 <= maxJ; j3++) {
|
|
173644
|
+
const substitutionDistance = s1[i3 - 1].toLowerCase() === s22[j3 - 1].toLowerCase() ? previous[j3 - 1] + 0.1 : previous[j3 - 1] + 2;
|
|
173645
|
+
const dist = c1 === s22.charCodeAt(j3 - 1) ? previous[j3 - 1] : Math.min(previous[j3] + 1, current[j3 - 1] + 1, substitutionDistance);
|
|
173646
|
+
current[j3] = dist;
|
|
173647
173647
|
colMin = Math.min(colMin, dist);
|
|
173648
173648
|
}
|
|
173649
|
-
for (let
|
|
173650
|
-
current[
|
|
173649
|
+
for (let j3 = maxJ + 1;j3 <= s22.length; j3++) {
|
|
173650
|
+
current[j3] = big;
|
|
173651
173651
|
}
|
|
173652
173652
|
if (colMin > max) {
|
|
173653
173653
|
return;
|
|
@@ -175364,7 +175364,7 @@ ${lanes.join(`
|
|
|
175364
175364
|
}
|
|
175365
175365
|
}
|
|
175366
175366
|
function dumpTypes(types) {
|
|
175367
|
-
var _a, _b, _c, _d,
|
|
175367
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
175368
175368
|
mark("beginDumpTypes");
|
|
175369
175369
|
const typesPath = legend[legend.length - 1].typesPath;
|
|
175370
175370
|
const typesFd = fs.openSync(typesPath, "w");
|
|
@@ -175396,7 +175396,7 @@ ${lanes.join(`
|
|
|
175396
175396
|
const referenceType = type;
|
|
175397
175397
|
referenceProperties = {
|
|
175398
175398
|
instantiatedType: (_d = referenceType.target) == null ? undefined : _d.id,
|
|
175399
|
-
typeArguments: (
|
|
175399
|
+
typeArguments: (_e2 = referenceType.resolvedTypeArguments) == null ? undefined : _e2.map((t3) => t3.id),
|
|
175400
175400
|
referenceLocation: getLocation(referenceType.node)
|
|
175401
175401
|
};
|
|
175402
175402
|
}
|
|
@@ -184279,14 +184279,14 @@ ${lanes.join(`
|
|
|
184279
184279
|
let i3 = 0;
|
|
184280
184280
|
while (i3 < spans.length) {
|
|
184281
184281
|
let span = spans[i3];
|
|
184282
|
-
let
|
|
184283
|
-
while (
|
|
184284
|
-
const start = Math.min(span.start, spans[
|
|
184285
|
-
const end = Math.max(textSpanEnd(span), textSpanEnd(spans[
|
|
184282
|
+
let j3 = i3 + 1;
|
|
184283
|
+
while (j3 < spans.length && textSpanIntersectsWithTextSpan(span, spans[j3])) {
|
|
184284
|
+
const start = Math.min(span.start, spans[j3].start);
|
|
184285
|
+
const end = Math.max(textSpanEnd(span), textSpanEnd(spans[j3]));
|
|
184286
184286
|
span = createTextSpanFromBounds(start, end);
|
|
184287
|
-
|
|
184287
|
+
j3++;
|
|
184288
184288
|
}
|
|
184289
|
-
i3 =
|
|
184289
|
+
i3 = j3;
|
|
184290
184290
|
result.push(span);
|
|
184291
184291
|
}
|
|
184292
184292
|
return result;
|
|
@@ -184771,7 +184771,7 @@ ${lanes.join(`
|
|
|
184771
184771
|
if (tags === undefined || noCache) {
|
|
184772
184772
|
const comments = getJSDocCommentsAndTags(node, noCache);
|
|
184773
184773
|
Debug.assert(comments.length < 2 || comments[0] !== comments[1]);
|
|
184774
|
-
tags = flatMap(comments, (
|
|
184774
|
+
tags = flatMap(comments, (j3) => isJSDoc(j3) ? j3.tags : j3);
|
|
184775
184775
|
if (!noCache) {
|
|
184776
184776
|
node.jsDoc ?? (node.jsDoc = []);
|
|
184777
184777
|
node.jsDoc.jsDocCache = tags;
|
|
@@ -209254,7 +209254,7 @@ ${lanes.join(`
|
|
|
209254
209254
|
}
|
|
209255
209255
|
function createDiagnosticForInvalidCustomType(opt, createDiagnostic) {
|
|
209256
209256
|
const namesOfType = arrayFrom(opt.type.keys());
|
|
209257
|
-
const stringNames = (opt.deprecatedKeys ? namesOfType.filter((
|
|
209257
|
+
const stringNames = (opt.deprecatedKeys ? namesOfType.filter((k4) => !opt.deprecatedKeys.has(k4)) : namesOfType).map((key) => `'${key}'`).join(", ");
|
|
209258
209258
|
return createDiagnostic(Diagnostics.Argument_for_0_option_must_be_Colon_1, `--${opt.name}`, stringNames);
|
|
209259
209259
|
}
|
|
209260
209260
|
function parseCustomTypeOption(opt, value, errors) {
|
|
@@ -209904,7 +209904,7 @@ ${lanes.join(`
|
|
|
209904
209904
|
function generateTSConfig(options, newLine) {
|
|
209905
209905
|
const tab = " ";
|
|
209906
209906
|
const result = [];
|
|
209907
|
-
const allSetOptions = Object.keys(options).filter((
|
|
209907
|
+
const allSetOptions = Object.keys(options).filter((k4) => k4 !== "init" && k4 !== "help" && k4 !== "watch");
|
|
209908
209908
|
result.push(`{`);
|
|
209909
209909
|
result.push(`${tab}// ${getLocaleSpecificMessage(Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`);
|
|
209910
209910
|
result.push(`${tab}"compilerOptions": {`);
|
|
@@ -211867,7 +211867,7 @@ ${lanes.join(`
|
|
|
211867
211867
|
return nodeModuleNameResolverWorker(30, moduleName, getDirectoryPath(containingFile), { moduleResolution: 99 }, host, undefined, 8, true, undefined, undefined);
|
|
211868
211868
|
}
|
|
211869
211869
|
function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference, conditions) {
|
|
211870
|
-
var _a, _b, _c, _d,
|
|
211870
|
+
var _a, _b, _c, _d, _e2;
|
|
211871
211871
|
const traceEnabled = isTraceEnabled(compilerOptions, host);
|
|
211872
211872
|
const failedLookupLocations = [];
|
|
211873
211873
|
const affectingLocations = [];
|
|
@@ -211930,7 +211930,7 @@ ${lanes.join(`
|
|
|
211930
211930
|
}
|
|
211931
211931
|
}
|
|
211932
211932
|
}
|
|
211933
|
-
return createResolvedModuleWithFailedLookupLocationsHandlingSymlink(moduleName, (_d = result == null ? undefined : result.value) == null ? undefined : _d.resolved, (
|
|
211933
|
+
return createResolvedModuleWithFailedLookupLocationsHandlingSymlink(moduleName, (_d = result == null ? undefined : result.value) == null ? undefined : _d.resolved, (_e2 = result == null ? undefined : result.value) == null ? undefined : _e2.isExternalLibraryImport, failedLookupLocations, affectingLocations, diagnostics, state, cache, alternateResult);
|
|
211934
211934
|
function tryResolve(extensions2, state2) {
|
|
211935
211935
|
const loader = (extensions3, candidate, onlyRecordFailures, state3) => nodeLoadModuleByRelativeName(extensions3, candidate, onlyRecordFailures, state3, true);
|
|
211936
211936
|
const resolved = tryLoadModuleUsingOptionalResolutionSettings(extensions2, moduleName, containingDirectory, loader, state2);
|
|
@@ -212294,7 +212294,7 @@ ${lanes.join(`
|
|
|
212294
212294
|
return result;
|
|
212295
212295
|
}
|
|
212296
212296
|
function getPackageJsonInfo(packageDirectory, onlyRecordFailures, state) {
|
|
212297
|
-
var _a, _b, _c, _d,
|
|
212297
|
+
var _a, _b, _c, _d, _e2, _f;
|
|
212298
212298
|
const { host, traceEnabled } = state;
|
|
212299
212299
|
const packageJsonPath = combinePaths(packageDirectory, "package.json");
|
|
212300
212300
|
if (onlyRecordFailures) {
|
|
@@ -212324,7 +212324,7 @@ ${lanes.join(`
|
|
|
212324
212324
|
const result = { packageDirectory, contents: { packageJsonContent, versionPaths: undefined, resolvedEntrypoints: undefined, peerDependencies: undefined } };
|
|
212325
212325
|
if (state.packageJsonInfoCache && !state.packageJsonInfoCache.isReadonly)
|
|
212326
212326
|
state.packageJsonInfoCache.setPackageJsonInfo(packageJsonPath, result);
|
|
212327
|
-
(
|
|
212327
|
+
(_e2 = state.affectingLocations) == null || _e2.push(packageJsonPath);
|
|
212328
212328
|
return result;
|
|
212329
212329
|
} else {
|
|
212330
212330
|
if (directoryExists && traceEnabled) {
|
|
@@ -212394,10 +212394,10 @@ ${lanes.join(`
|
|
|
212394
212394
|
return idx === -1 ? { packageName: moduleName, rest: "" } : { packageName: moduleName.slice(0, idx), rest: moduleName.slice(idx + 1) };
|
|
212395
212395
|
}
|
|
212396
212396
|
function allKeysStartWithDot(obj) {
|
|
212397
|
-
return every(getOwnKeys(obj), (
|
|
212397
|
+
return every(getOwnKeys(obj), (k4) => startsWith(k4, "."));
|
|
212398
212398
|
}
|
|
212399
212399
|
function noKeyStartsWithDot(obj) {
|
|
212400
|
-
return !some(getOwnKeys(obj), (
|
|
212400
|
+
return !some(getOwnKeys(obj), (k4) => startsWith(k4, "."));
|
|
212401
212401
|
}
|
|
212402
212402
|
function loadModuleFromSelfNameReference(extensions, moduleName, directory, state, cache, redirectedReference) {
|
|
212403
212403
|
var _a, _b;
|
|
@@ -212511,7 +212511,7 @@ ${lanes.join(`
|
|
|
212511
212511
|
const target = lookupTable[moduleName];
|
|
212512
212512
|
return loadModuleFromTargetExportOrImport(target, "", false, moduleName);
|
|
212513
212513
|
}
|
|
212514
|
-
const expandingKeys = toSorted(filter(getOwnKeys(lookupTable), (
|
|
212514
|
+
const expandingKeys = toSorted(filter(getOwnKeys(lookupTable), (k4) => hasOneAsterisk(k4) || endsWith(k4, "/")), comparePatternKeys);
|
|
212515
212515
|
for (const potentialTarget of expandingKeys) {
|
|
212516
212516
|
if (state.features & 16 && matchesPatternWithTrailer(potentialTarget, moduleName)) {
|
|
212517
212517
|
const target = lookupTable[potentialTarget];
|
|
@@ -214901,13 +214901,13 @@ ${lanes.join(`
|
|
|
214901
214901
|
function bindJSDoc(node) {
|
|
214902
214902
|
if (hasJSDocNodes(node)) {
|
|
214903
214903
|
if (isInJSFile(node)) {
|
|
214904
|
-
for (const
|
|
214905
|
-
bind(
|
|
214904
|
+
for (const j3 of node.jsDoc) {
|
|
214905
|
+
bind(j3);
|
|
214906
214906
|
}
|
|
214907
214907
|
} else {
|
|
214908
|
-
for (const
|
|
214909
|
-
setParent(
|
|
214910
|
-
setParentRecursive(
|
|
214908
|
+
for (const j3 of node.jsDoc) {
|
|
214909
|
+
setParent(j3, node);
|
|
214910
|
+
setParentRecursive(j3, false);
|
|
214911
214911
|
}
|
|
214912
214912
|
}
|
|
214913
214913
|
}
|
|
@@ -216486,10 +216486,10 @@ ${lanes.join(`
|
|
|
216486
216486
|
}
|
|
216487
216487
|
function tryGetModuleNameFromExports(options, host, targetFilePath, packageDirectory, packageName, exports2, conditions) {
|
|
216488
216488
|
if (typeof exports2 === "object" && exports2 !== null && !Array.isArray(exports2) && allKeysStartWithDot(exports2)) {
|
|
216489
|
-
return forEach(getOwnKeys(exports2), (
|
|
216490
|
-
const subPackageName = getNormalizedAbsolutePath(combinePaths(packageName,
|
|
216491
|
-
const mode = endsWith(
|
|
216492
|
-
return tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, subPackageName, exports2[
|
|
216489
|
+
return forEach(getOwnKeys(exports2), (k4) => {
|
|
216490
|
+
const subPackageName = getNormalizedAbsolutePath(combinePaths(packageName, k4), undefined);
|
|
216491
|
+
const mode = endsWith(k4, "/") ? 1 : k4.includes("*") ? 2 : 0;
|
|
216492
|
+
return tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, subPackageName, exports2[k4], conditions, mode, false, false);
|
|
216493
216493
|
});
|
|
216494
216494
|
}
|
|
216495
216495
|
return tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, exports2, conditions, 0, false, false);
|
|
@@ -216514,11 +216514,11 @@ ${lanes.join(`
|
|
|
216514
216514
|
return;
|
|
216515
216515
|
}
|
|
216516
216516
|
const conditions = getConditions(options, importMode);
|
|
216517
|
-
return (_c = forEach(getOwnKeys(imports), (
|
|
216518
|
-
if (!startsWith(
|
|
216517
|
+
return (_c = forEach(getOwnKeys(imports), (k4) => {
|
|
216518
|
+
if (!startsWith(k4, "#") || k4 === "#" || startsWith(k4, "#/"))
|
|
216519
216519
|
return;
|
|
216520
|
-
const mode = endsWith(
|
|
216521
|
-
return tryGetModuleNameFromExportsOrImports(options, host, moduleFileName, ancestorDirectoryWithPackageJson,
|
|
216520
|
+
const mode = endsWith(k4, "/") ? 1 : k4.includes("*") ? 2 : 0;
|
|
216521
|
+
return tryGetModuleNameFromExportsOrImports(options, host, moduleFileName, ancestorDirectoryWithPackageJson, k4, imports[k4], conditions, mode, true, preferTsExtension);
|
|
216522
216522
|
})) == null ? undefined : _c.moduleFileToTry;
|
|
216523
216523
|
}
|
|
216524
216524
|
function tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, allowedEndings, compilerOptions) {
|
|
@@ -219308,7 +219308,7 @@ ${lanes.join(`
|
|
|
219308
219308
|
return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, !ignoreErrors ? moduleReferenceExpression : undefined, isForAugmentation) : undefined;
|
|
219309
219309
|
}
|
|
219310
219310
|
function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) {
|
|
219311
|
-
var _a, _b, _c, _d,
|
|
219311
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l;
|
|
219312
219312
|
if (errorNode && startsWith(moduleReference, "@types/")) {
|
|
219313
219313
|
const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1;
|
|
219314
219314
|
const withoutAtTypePrefix = removePrefix(moduleReference, "@types/");
|
|
@@ -219319,7 +219319,7 @@ ${lanes.join(`
|
|
|
219319
219319
|
return ambientModule;
|
|
219320
219320
|
}
|
|
219321
219321
|
const currentSourceFile = getSourceFileOfNode(location);
|
|
219322
|
-
const contextSpecifier = isStringLiteralLike(location) ? location : ((_a = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : undefined) == null ? undefined : _a.name) || ((_b = isLiteralImportTypeNode(location) ? location : undefined) == null ? undefined : _b.argument.literal) || (isVariableDeclaration(location) && location.initializer && isRequireCall(location.initializer, true) ? location.initializer.arguments[0] : undefined) || ((_c = findAncestor(location, isImportCall)) == null ? undefined : _c.arguments[0]) || ((_d = findAncestor(location, or(isImportDeclaration, isJSDocImportTag, isExportDeclaration))) == null ? undefined : _d.moduleSpecifier) || ((
|
|
219322
|
+
const contextSpecifier = isStringLiteralLike(location) ? location : ((_a = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : undefined) == null ? undefined : _a.name) || ((_b = isLiteralImportTypeNode(location) ? location : undefined) == null ? undefined : _b.argument.literal) || (isVariableDeclaration(location) && location.initializer && isRequireCall(location.initializer, true) ? location.initializer.arguments[0] : undefined) || ((_c = findAncestor(location, isImportCall)) == null ? undefined : _c.arguments[0]) || ((_d = findAncestor(location, or(isImportDeclaration, isJSDocImportTag, isExportDeclaration))) == null ? undefined : _d.moduleSpecifier) || ((_e2 = findAncestor(location, isExternalModuleImportEqualsDeclaration)) == null ? undefined : _e2.moduleReference.expression);
|
|
219323
219323
|
const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? host.getModeForUsageLocation(currentSourceFile, contextSpecifier) : host.getDefaultResolutionModeForFile(currentSourceFile);
|
|
219324
219324
|
const moduleResolutionKind = getEmitModuleResolutionKind(compilerOptions);
|
|
219325
219325
|
const resolvedModule = (_f = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? undefined : _f.resolvedModule;
|
|
@@ -222825,7 +222825,7 @@ ${lanes.join(`
|
|
|
222825
222825
|
}
|
|
222826
222826
|
}
|
|
222827
222827
|
function serializeSymbolWorker(symbol, isPrivate, propertyAsAlias, escapedSymbolName = symbol.escapedName) {
|
|
222828
|
-
var _a2, _b, _c, _d,
|
|
222828
|
+
var _a2, _b, _c, _d, _e2, _f, _g;
|
|
222829
222829
|
const symbolName2 = unescapeLeadingUnderscores(escapedSymbolName);
|
|
222830
222830
|
const isDefault = escapedSymbolName === "default";
|
|
222831
222831
|
if (isPrivate && !(context.flags & 131072) && isStringANonContextualKeyword(symbolName2) && !isDefault) {
|
|
@@ -222872,7 +222872,7 @@ ${lanes.join(`
|
|
|
222872
222872
|
if (textRange && isVariableDeclarationList(textRange.parent) && textRange.parent.declarations.length === 1) {
|
|
222873
222873
|
textRange = textRange.parent.parent;
|
|
222874
222874
|
}
|
|
222875
|
-
const propertyAccessRequire = (
|
|
222875
|
+
const propertyAccessRequire = (_e2 = symbol.declarations) == null ? undefined : _e2.find(isPropertyAccessExpression);
|
|
222876
222876
|
if (propertyAccessRequire && isBinaryExpression(propertyAccessRequire.parent) && isIdentifier(propertyAccessRequire.parent.right) && ((_f = type.symbol) == null ? undefined : _f.valueDeclaration) && isSourceFile(type.symbol.valueDeclaration)) {
|
|
222877
222877
|
const alias = localName === propertyAccessRequire.parent.right.escapedText ? undefined : propertyAccessRequire.parent.right;
|
|
222878
222878
|
context.approximateLength += 12 + (((_g = alias == null ? undefined : alias.escapedText) == null ? undefined : _g.length) ?? 0);
|
|
@@ -223284,7 +223284,7 @@ ${lanes.join(`
|
|
|
223284
223284
|
});
|
|
223285
223285
|
}
|
|
223286
223286
|
function serializeAsAlias(symbol, localName, modifierFlags) {
|
|
223287
|
-
var _a2, _b, _c, _d,
|
|
223287
|
+
var _a2, _b, _c, _d, _e2;
|
|
223288
223288
|
const node = getDeclarationOfAliasSymbol(symbol);
|
|
223289
223289
|
if (!node)
|
|
223290
223290
|
return Debug.fail();
|
|
@@ -223311,7 +223311,7 @@ ${lanes.join(`
|
|
|
223311
223311
|
Debug.failBadSyntaxKind(((_c = node.parent) == null ? undefined : _c.parent) || node, "Unhandled binding element grandparent kind in declaration serialization");
|
|
223312
223312
|
break;
|
|
223313
223313
|
case 305:
|
|
223314
|
-
if (((
|
|
223314
|
+
if (((_e2 = (_d = node.parent) == null ? undefined : _d.parent) == null ? undefined : _e2.kind) === 227) {
|
|
223315
223315
|
serializeExportSpecifier(unescapeLeadingUnderscores(symbol.escapedName), targetName);
|
|
223316
223316
|
}
|
|
223317
223317
|
break;
|
|
@@ -223475,7 +223475,7 @@ ${lanes.join(`
|
|
|
223475
223475
|
}
|
|
223476
223476
|
function makeSerializePropertySymbol(createProperty2, methodKind, useAccessors) {
|
|
223477
223477
|
return function serializePropertySymbol(p4, isStatic2, baseType) {
|
|
223478
|
-
var _a2, _b, _c, _d,
|
|
223478
|
+
var _a2, _b, _c, _d, _e2, _f;
|
|
223479
223479
|
const modifierFlags = getDeclarationModifierFlagsFromSymbol(p4);
|
|
223480
223480
|
const omitType = !!(modifierFlags & 2) && !isExpanding(context);
|
|
223481
223481
|
if (isStatic2 && p4.flags & (788968 | 1920 | 2097152)) {
|
|
@@ -223518,7 +223518,7 @@ ${lanes.join(`
|
|
|
223518
223518
|
} else if (p4.flags & (4 | 3 | 98304)) {
|
|
223519
223519
|
const modifierFlags2 = (isReadonlySymbol(p4) ? 8 : 0) | flag;
|
|
223520
223520
|
context.approximateLength += 2 + (omitType ? 0 : 2) + modifiersLength(modifierFlags2);
|
|
223521
|
-
return setTextRange2(context, createProperty2(factory.createModifiersFromModifierFlags(modifierFlags2), name, p4.flags & 16777216 ? factory.createToken(58) : undefined, omitType ? undefined : serializeTypeForDeclaration(context, (_d = p4.declarations) == null ? undefined : _d.find(isSetAccessorDeclaration), getWriteTypeOfSymbol(p4), p4), undefined), ((
|
|
223521
|
+
return setTextRange2(context, createProperty2(factory.createModifiersFromModifierFlags(modifierFlags2), name, p4.flags & 16777216 ? factory.createToken(58) : undefined, omitType ? undefined : serializeTypeForDeclaration(context, (_d = p4.declarations) == null ? undefined : _d.find(isSetAccessorDeclaration), getWriteTypeOfSymbol(p4), p4), undefined), ((_e2 = p4.declarations) == null ? undefined : _e2.find(or(isPropertyDeclaration, isVariableDeclaration))) || firstPropertyLikeDecl);
|
|
223522
223522
|
}
|
|
223523
223523
|
if (p4.flags & (8192 | 16)) {
|
|
223524
223524
|
const type = getTypeOfSymbol(p4);
|
|
@@ -229434,11 +229434,11 @@ ${lanes.join(`
|
|
|
229434
229434
|
for (let i3 = 0;i3 < count; i3++) {
|
|
229435
229435
|
const constituents = types.slice();
|
|
229436
229436
|
let n3 = i3;
|
|
229437
|
-
for (let
|
|
229438
|
-
if (types[
|
|
229439
|
-
const sourceTypes = types[
|
|
229437
|
+
for (let j3 = types.length - 1;j3 >= 0; j3--) {
|
|
229438
|
+
if (types[j3].flags & 1048576) {
|
|
229439
|
+
const sourceTypes = types[j3].types;
|
|
229440
229440
|
const length2 = sourceTypes.length;
|
|
229441
|
-
constituents[
|
|
229441
|
+
constituents[j3] = sourceTypes[n3 % length2];
|
|
229442
229442
|
n3 = Math.floor(n3 / length2);
|
|
229443
229443
|
}
|
|
229444
229444
|
}
|
|
@@ -249295,8 +249295,8 @@ ${lanes.join(`
|
|
|
249295
249295
|
} else if (seenDefault) {
|
|
249296
249296
|
error2(node, Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);
|
|
249297
249297
|
}
|
|
249298
|
-
for (let
|
|
249299
|
-
if (typeParameterDeclarations[
|
|
249298
|
+
for (let j3 = 0;j3 < i3; j3++) {
|
|
249299
|
+
if (typeParameterDeclarations[j3].symbol === node.symbol) {
|
|
249300
249300
|
error2(node.name, Diagnostics.Duplicate_identifier_0, declarationNameToString(node.name));
|
|
249301
249301
|
}
|
|
249302
249302
|
}
|
|
@@ -249662,7 +249662,7 @@ ${lanes.join(`
|
|
|
249662
249662
|
return filter(symbol.declarations, (d4) => d4.kind === 264 || d4.kind === 265);
|
|
249663
249663
|
}
|
|
249664
249664
|
function checkKindsOfPropertyMemberOverrides(type, baseType) {
|
|
249665
|
-
var _a, _b, _c, _d,
|
|
249665
|
+
var _a, _b, _c, _d, _e2;
|
|
249666
249666
|
const baseProperties = getPropertiesOfType(baseType);
|
|
249667
249667
|
const notImplementedInfo = /* @__PURE__ */ new Map;
|
|
249668
249668
|
basePropertyCheck:
|
|
@@ -249715,7 +249715,7 @@ ${lanes.join(`
|
|
|
249715
249715
|
error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type));
|
|
249716
249716
|
} else if (useDefineForClassFields) {
|
|
249717
249717
|
const uninitialized = (_d = derived.declarations) == null ? undefined : _d.find((d4) => d4.kind === 173 && !d4.initializer);
|
|
249718
|
-
if (uninitialized && !(derived.flags & 33554432) && !(baseDeclarationFlags & 64) && !(derivedDeclarationFlags & 64) && !((
|
|
249718
|
+
if (uninitialized && !(derived.flags & 33554432) && !(baseDeclarationFlags & 64) && !(derivedDeclarationFlags & 64) && !((_e2 = derived.declarations) == null ? undefined : _e2.some((d4) => !!(d4.flags & 33554432)))) {
|
|
249719
249719
|
const constructor = findConstructorDeclaration(getClassLikeDeclarationOfSymbol(type.symbol));
|
|
249720
249720
|
const propName = uninitialized.name;
|
|
249721
249721
|
if (uninitialized.exclamationToken || !constructor || !isIdentifier(propName) || !strictNullChecks || !isPropertyInitializedInConstructor(propName, type, constructor)) {
|
|
@@ -250302,7 +250302,7 @@ ${lanes.join(`
|
|
|
250302
250302
|
}
|
|
250303
250303
|
}
|
|
250304
250304
|
function checkAliasSymbol(node) {
|
|
250305
|
-
var _a, _b, _c, _d,
|
|
250305
|
+
var _a, _b, _c, _d, _e2;
|
|
250306
250306
|
let symbol = getSymbolOfDeclaration(node);
|
|
250307
250307
|
const target = resolveAlias(symbol);
|
|
250308
250308
|
if (target !== unknownSymbol) {
|
|
@@ -250375,7 +250375,7 @@ ${lanes.join(`
|
|
|
250375
250375
|
}
|
|
250376
250376
|
if (compilerOptions.verbatimModuleSyntax && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432) && targetFlags & 128) {
|
|
250377
250377
|
const constEnumDeclaration = target.valueDeclaration;
|
|
250378
|
-
const redirect = (
|
|
250378
|
+
const redirect = (_e2 = host.getRedirectFromOutput(getSourceFileOfNode(constEnumDeclaration).resolvedPath)) == null ? undefined : _e2.resolvedRef;
|
|
250379
250379
|
if (constEnumDeclaration.flags & 33554432 && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) {
|
|
250380
250380
|
error2(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName);
|
|
250381
250381
|
}
|
|
@@ -267420,8 +267420,8 @@ ${lanes.join(`
|
|
|
267420
267420
|
return block.kind === 3;
|
|
267421
267421
|
}
|
|
267422
267422
|
function hasImmediateContainingLabeledBlock(labelText, start) {
|
|
267423
|
-
for (let
|
|
267424
|
-
const containingBlock = blockStack[
|
|
267423
|
+
for (let j3 = start;j3 >= 0; j3--) {
|
|
267424
|
+
const containingBlock = blockStack[j3];
|
|
267425
267425
|
if (supportsLabeledBreakOrContinue(containingBlock)) {
|
|
267426
267426
|
if (containingBlock.labelText === labelText) {
|
|
267427
267427
|
return true;
|
|
@@ -272247,14 +272247,14 @@ ${lanes.join(`
|
|
|
272247
272247
|
sourceMaps: sourceMapDataList
|
|
272248
272248
|
};
|
|
272249
272249
|
function emitSourceFileOrBundle({ jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath }, sourceFileOrBundle) {
|
|
272250
|
-
var _a, _b, _c, _d,
|
|
272250
|
+
var _a, _b, _c, _d, _e2, _f;
|
|
272251
272251
|
(_a = tracing) == null || _a.push(tracing.Phase.Emit, "emitJsFileOrBundle", { jsFilePath });
|
|
272252
272252
|
emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath);
|
|
272253
272253
|
(_b = tracing) == null || _b.pop();
|
|
272254
272254
|
(_c = tracing) == null || _c.push(tracing.Phase.Emit, "emitDeclarationFileOrBundle", { declarationFilePath });
|
|
272255
272255
|
emitDeclarationFileOrBundle(sourceFileOrBundle, declarationFilePath, declarationMapPath);
|
|
272256
272256
|
(_d = tracing) == null || _d.pop();
|
|
272257
|
-
(
|
|
272257
|
+
(_e2 = tracing) == null || _e2.push(tracing.Phase.Emit, "emitBuildInfo", { buildInfoPath });
|
|
272258
272258
|
emitBuildInfo(buildInfoPath);
|
|
272259
272259
|
(_f = tracing) == null || _f.pop();
|
|
272260
272260
|
}
|
|
@@ -277648,7 +277648,7 @@ ${lanes.join(`
|
|
|
277648
277648
|
};
|
|
277649
277649
|
}
|
|
277650
277650
|
function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) {
|
|
277651
|
-
var _a, _b, _c, _d,
|
|
277651
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
277652
277652
|
let _createProgramOptions = isArray(_rootNamesOrOptions) ? createCreateProgramOptions(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : _rootNamesOrOptions;
|
|
277653
277653
|
const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion3, host: createProgramOptionsHost } = _createProgramOptions;
|
|
277654
277654
|
let { oldProgram } = _createProgramOptions;
|
|
@@ -277751,7 +277751,7 @@ ${lanes.join(`
|
|
|
277751
277751
|
forEachResolvedProjectReference: forEachResolvedProjectReference2
|
|
277752
277752
|
});
|
|
277753
277753
|
const readFile = host.readFile.bind(host);
|
|
277754
|
-
(
|
|
277754
|
+
(_e2 = tracing) == null || _e2.push(tracing.Phase.Program, "shouldProgramCreateNewSourceFiles", { hasOldProgram: !!oldProgram });
|
|
277755
277755
|
const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options);
|
|
277756
277756
|
(_f = tracing) == null || _f.pop();
|
|
277757
277757
|
let structureIsReused;
|
|
@@ -280466,31 +280466,31 @@ ${lanes.join(`
|
|
|
280466
280466
|
function create2(forward, reverse, deleted) {
|
|
280467
280467
|
const map2 = {
|
|
280468
280468
|
getKeys: (v3) => reverse.get(v3),
|
|
280469
|
-
getValues: (
|
|
280469
|
+
getValues: (k4) => forward.get(k4),
|
|
280470
280470
|
keys: () => forward.keys(),
|
|
280471
280471
|
size: () => forward.size,
|
|
280472
|
-
deleteKey: (
|
|
280473
|
-
(deleted || (deleted = /* @__PURE__ */ new Set)).add(
|
|
280474
|
-
const set = forward.get(
|
|
280472
|
+
deleteKey: (k4) => {
|
|
280473
|
+
(deleted || (deleted = /* @__PURE__ */ new Set)).add(k4);
|
|
280474
|
+
const set = forward.get(k4);
|
|
280475
280475
|
if (!set) {
|
|
280476
280476
|
return false;
|
|
280477
280477
|
}
|
|
280478
|
-
set.forEach((v3) => deleteFromMultimap(reverse, v3,
|
|
280479
|
-
forward.delete(
|
|
280478
|
+
set.forEach((v3) => deleteFromMultimap(reverse, v3, k4));
|
|
280479
|
+
forward.delete(k4);
|
|
280480
280480
|
return true;
|
|
280481
280481
|
},
|
|
280482
|
-
set: (
|
|
280483
|
-
deleted == null || deleted.delete(
|
|
280484
|
-
const existingVSet = forward.get(
|
|
280485
|
-
forward.set(
|
|
280482
|
+
set: (k4, vSet) => {
|
|
280483
|
+
deleted == null || deleted.delete(k4);
|
|
280484
|
+
const existingVSet = forward.get(k4);
|
|
280485
|
+
forward.set(k4, vSet);
|
|
280486
280486
|
existingVSet == null || existingVSet.forEach((v3) => {
|
|
280487
280487
|
if (!vSet.has(v3)) {
|
|
280488
|
-
deleteFromMultimap(reverse, v3,
|
|
280488
|
+
deleteFromMultimap(reverse, v3, k4);
|
|
280489
280489
|
}
|
|
280490
280490
|
});
|
|
280491
280491
|
vSet.forEach((v3) => {
|
|
280492
280492
|
if (!(existingVSet == null ? undefined : existingVSet.has(v3))) {
|
|
280493
|
-
addToMultimap(reverse, v3,
|
|
280493
|
+
addToMultimap(reverse, v3, k4);
|
|
280494
280494
|
}
|
|
280495
280495
|
});
|
|
280496
280496
|
return map2;
|
|
@@ -280501,19 +280501,19 @@ ${lanes.join(`
|
|
|
280501
280501
|
return create2(/* @__PURE__ */ new Map, /* @__PURE__ */ new Map, undefined);
|
|
280502
280502
|
}
|
|
280503
280503
|
BuilderState2.createManyToManyPathMap = createManyToManyPathMap;
|
|
280504
|
-
function addToMultimap(map2,
|
|
280505
|
-
let set = map2.get(
|
|
280504
|
+
function addToMultimap(map2, k4, v3) {
|
|
280505
|
+
let set = map2.get(k4);
|
|
280506
280506
|
if (!set) {
|
|
280507
280507
|
set = /* @__PURE__ */ new Set;
|
|
280508
|
-
map2.set(
|
|
280508
|
+
map2.set(k4, set);
|
|
280509
280509
|
}
|
|
280510
280510
|
set.add(v3);
|
|
280511
280511
|
}
|
|
280512
|
-
function deleteFromMultimap(map2,
|
|
280513
|
-
const set = map2.get(
|
|
280512
|
+
function deleteFromMultimap(map2, k4, v3) {
|
|
280513
|
+
const set = map2.get(k4);
|
|
280514
280514
|
if (set == null ? undefined : set.delete(v3)) {
|
|
280515
280515
|
if (!set.size) {
|
|
280516
|
-
map2.delete(
|
|
280516
|
+
map2.delete(k4);
|
|
280517
280517
|
}
|
|
280518
280518
|
return true;
|
|
280519
280519
|
}
|
|
@@ -285037,7 +285037,7 @@ ${lanes.join(`
|
|
|
285037
285037
|
}
|
|
285038
285038
|
}
|
|
285039
285039
|
function getUpToDateStatusWorker(state, project, resolvedPath) {
|
|
285040
|
-
var _a, _b, _c, _d,
|
|
285040
|
+
var _a, _b, _c, _d, _e2;
|
|
285041
285041
|
if (isSolutionConfig(project))
|
|
285042
285042
|
return { type: 16 };
|
|
285043
285043
|
let referenceStatuses;
|
|
@@ -285110,7 +285110,7 @@ ${lanes.join(`
|
|
|
285110
285110
|
buildInfoFile: buildInfoPath
|
|
285111
285111
|
};
|
|
285112
285112
|
}
|
|
285113
|
-
if (!project.options.noEmit && (((_d = incrementalBuildInfo.changeFileSet) == null ? undefined : _d.length) || ((
|
|
285113
|
+
if (!project.options.noEmit && (((_d = incrementalBuildInfo.changeFileSet) == null ? undefined : _d.length) || ((_e2 = incrementalBuildInfo.affectedFilesPendingEmit) == null ? undefined : _e2.length) || incrementalBuildInfo.pendingEmit !== undefined)) {
|
|
285114
285114
|
return {
|
|
285115
285115
|
type: 7,
|
|
285116
285116
|
buildInfoFile: buildInfoPath
|
|
@@ -287658,10 +287658,10 @@ ${lanes.join(`
|
|
|
287658
287658
|
addInferredTypings(packageNames, " Found package names");
|
|
287659
287659
|
}
|
|
287660
287660
|
function getTypingNamesFromSourceFileNames(fileNames2) {
|
|
287661
|
-
const fromFileNames = mapDefined(fileNames2, (
|
|
287662
|
-
if (!hasJSFileExtension(
|
|
287661
|
+
const fromFileNames = mapDefined(fileNames2, (j3) => {
|
|
287662
|
+
if (!hasJSFileExtension(j3))
|
|
287663
287663
|
return;
|
|
287664
|
-
const inferredTypingName = removeFileExtension(toFileNameLowerCase(getBaseFileName(
|
|
287664
|
+
const inferredTypingName = removeFileExtension(toFileNameLowerCase(getBaseFileName(j3)));
|
|
287665
287665
|
const cleanedTypingName = removeMinAndVersionNumbers(inferredTypingName);
|
|
287666
287666
|
return safeList.get(cleanedTypingName);
|
|
287667
287667
|
});
|
|
@@ -290977,7 +290977,7 @@ ${lanes.join(`
|
|
|
290977
290977
|
return getIsExcluded(getIsExcludedPatterns(preferences, hostUsesCaseSensitiveFileNames(host)), host);
|
|
290978
290978
|
}
|
|
290979
290979
|
function getExportInfoMap(importingFile, host, program, preferences, cancellationToken) {
|
|
290980
|
-
var _a, _b, _c, _d,
|
|
290980
|
+
var _a, _b, _c, _d, _e2;
|
|
290981
290981
|
const start = timestamp();
|
|
290982
290982
|
(_a = host.getPackageJsonAutoImportProvider) == null || _a.call(host);
|
|
290983
290983
|
const cache = ((_b = host.getCachedExportInfoMap) == null ? undefined : _b.call(host)) || createCacheableExportInfoMap({
|
|
@@ -291017,7 +291017,7 @@ ${lanes.join(`
|
|
|
291017
291017
|
cache.clear();
|
|
291018
291018
|
throw err;
|
|
291019
291019
|
}
|
|
291020
|
-
(
|
|
291020
|
+
(_e2 = host.log) == null || _e2.call(host, `getExportInfoMap: done in ${timestamp() - start} ms`);
|
|
291021
291021
|
return cache;
|
|
291022
291022
|
}
|
|
291023
291023
|
function getDefaultLikeExportInfo(moduleSymbol, checker) {
|
|
@@ -291622,7 +291622,7 @@ ${lanes.join(`
|
|
|
291622
291622
|
pushClassification(start, width, 1);
|
|
291623
291623
|
}
|
|
291624
291624
|
function classifyJSDocComment(docComment) {
|
|
291625
|
-
var _a, _b, _c, _d,
|
|
291625
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h;
|
|
291626
291626
|
let pos = docComment.pos;
|
|
291627
291627
|
if (docComment.tags) {
|
|
291628
291628
|
for (const tag of docComment.tags) {
|
|
@@ -291650,7 +291650,7 @@ ${lanes.join(`
|
|
|
291650
291650
|
break;
|
|
291651
291651
|
case 347:
|
|
291652
291652
|
const type = tag;
|
|
291653
|
-
commentStart = ((_c = type.typeExpression) == null ? undefined : _c.kind) === 310 && ((_d = type.fullName) == null ? undefined : _d.end) || ((
|
|
291653
|
+
commentStart = ((_c = type.typeExpression) == null ? undefined : _c.kind) === 310 && ((_d = type.fullName) == null ? undefined : _d.end) || ((_e2 = type.typeExpression) == null ? undefined : _e2.end) || commentStart;
|
|
291654
291654
|
break;
|
|
291655
291655
|
case 339:
|
|
291656
291656
|
commentStart = tag.typeExpression.end;
|
|
@@ -292277,8 +292277,8 @@ ${lanes.join(`
|
|
|
292277
292277
|
const elseKeyword = keywords[i3];
|
|
292278
292278
|
const ifKeyword = keywords[i3 + 1];
|
|
292279
292279
|
let shouldCombineElseAndIf = true;
|
|
292280
|
-
for (let
|
|
292281
|
-
if (!isWhiteSpaceSingleLine(sourceFile.text.charCodeAt(
|
|
292280
|
+
for (let j3 = ifKeyword.getStart(sourceFile) - 1;j3 >= elseKeyword.end; j3--) {
|
|
292281
|
+
if (!isWhiteSpaceSingleLine(sourceFile.text.charCodeAt(j3))) {
|
|
292282
292282
|
shouldCombineElseAndIf = false;
|
|
292283
292283
|
break;
|
|
292284
292284
|
}
|
|
@@ -292721,8 +292721,8 @@ ${lanes.join(`
|
|
|
292721
292721
|
return;
|
|
292722
292722
|
}
|
|
292723
292723
|
let bestMatch;
|
|
292724
|
-
for (let i3 = dotSeparatedSegments.length - 2,
|
|
292725
|
-
bestMatch = betterMatch(bestMatch, matchSegment(candidateContainers[
|
|
292724
|
+
for (let i3 = dotSeparatedSegments.length - 2, j3 = candidateContainers.length - 1;i3 >= 0; i3 -= 1, j3 -= 1) {
|
|
292725
|
+
bestMatch = betterMatch(bestMatch, matchSegment(candidateContainers[j3], dotSeparatedSegments[i3], stringToWordSpans));
|
|
292726
292726
|
}
|
|
292727
292727
|
return bestMatch;
|
|
292728
292728
|
}
|
|
@@ -295569,7 +295569,7 @@ interface Symbol {
|
|
|
295569
295569
|
}
|
|
295570
295570
|
}
|
|
295571
295571
|
function forEachAliasDeclarationInImportOrRequire(importOrRequire, cb) {
|
|
295572
|
-
var _a, _b, _c, _d,
|
|
295572
|
+
var _a, _b, _c, _d, _e2;
|
|
295573
295573
|
if (importOrRequire.kind === 273) {
|
|
295574
295574
|
if ((_a = importOrRequire.importClause) == null ? undefined : _a.name) {
|
|
295575
295575
|
cb(importOrRequire.importClause);
|
|
@@ -295577,7 +295577,7 @@ interface Symbol {
|
|
|
295577
295577
|
if (((_c = (_b = importOrRequire.importClause) == null ? undefined : _b.namedBindings) == null ? undefined : _c.kind) === 275) {
|
|
295578
295578
|
cb(importOrRequire.importClause.namedBindings);
|
|
295579
295579
|
}
|
|
295580
|
-
if (((
|
|
295580
|
+
if (((_e2 = (_d = importOrRequire.importClause) == null ? undefined : _d.namedBindings) == null ? undefined : _e2.kind) === 276) {
|
|
295581
295581
|
for (const element of importOrRequire.importClause.namedBindings.elements) {
|
|
295582
295582
|
cb(element);
|
|
295583
295583
|
}
|
|
@@ -300013,7 +300013,7 @@ ${newComment.split(`
|
|
|
300013
300013
|
this.host = host;
|
|
300014
300014
|
}
|
|
300015
300015
|
getCurrentSourceFile(fileName) {
|
|
300016
|
-
var _a, _b, _c, _d,
|
|
300016
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h;
|
|
300017
300017
|
const scriptSnapshot = this.host.getScriptSnapshot(fileName);
|
|
300018
300018
|
if (!scriptSnapshot) {
|
|
300019
300019
|
throw new Error("Could not find file: '" + fileName + "'.");
|
|
@@ -300024,7 +300024,7 @@ ${newComment.split(`
|
|
|
300024
300024
|
if (this.currentFileName !== fileName) {
|
|
300025
300025
|
const options = {
|
|
300026
300026
|
languageVersion: 99,
|
|
300027
|
-
impliedNodeFormat: getImpliedNodeFormatForFile(toPath(fileName, this.host.getCurrentDirectory(), ((_c = (_b = (_a = this.host).getCompilerHost) == null ? undefined : _b.call(_a)) == null ? undefined : _c.getCanonicalFileName) || hostGetCanonicalFileName(this.host)), (_h = (_g = (_f = (
|
|
300027
|
+
impliedNodeFormat: getImpliedNodeFormatForFile(toPath(fileName, this.host.getCurrentDirectory(), ((_c = (_b = (_a = this.host).getCompilerHost) == null ? undefined : _b.call(_a)) == null ? undefined : _c.getCanonicalFileName) || hostGetCanonicalFileName(this.host)), (_h = (_g = (_f = (_e2 = (_d = this.host).getCompilerHost) == null ? undefined : _e2.call(_d)) == null ? undefined : _f.getModuleResolutionCache) == null ? undefined : _g.call(_f)) == null ? undefined : _h.getPackageJsonInfoCache(), this.host, this.host.getCompilationSettings()),
|
|
300028
300028
|
setExternalModuleIndicator: getSetExternalModuleIndicator(this.host.getCompilationSettings()),
|
|
300029
300029
|
jsDocParsingMode: 0
|
|
300030
300030
|
};
|
|
@@ -319826,11 +319826,11 @@ ${newComment.split(`
|
|
|
319826
319826
|
case 245:
|
|
319827
319827
|
return getCommentOwnerInfoWorker(commentOwner.expression, options);
|
|
319828
319828
|
case 227: {
|
|
319829
|
-
const
|
|
319830
|
-
if (getAssignmentDeclarationKind(
|
|
319829
|
+
const be2 = commentOwner;
|
|
319830
|
+
if (getAssignmentDeclarationKind(be2) === 0) {
|
|
319831
319831
|
return "quit";
|
|
319832
319832
|
}
|
|
319833
|
-
return isFunctionLike(
|
|
319833
|
+
return isFunctionLike(be2.right) ? { commentOwner, parameters: be2.right.parameters, hasReturn: hasReturn(be2.right, options) } : { commentOwner };
|
|
319834
319834
|
}
|
|
319835
319835
|
case 173:
|
|
319836
319836
|
const init = commentOwner.initializer;
|
|
@@ -319950,7 +319950,7 @@ ${content}
|
|
|
319950
319950
|
changeTracker.insertNodesAfter(originalFile, scopeStatements[scopeStatements.length - 1], changes);
|
|
319951
319951
|
}
|
|
319952
319952
|
function matchNode(a3, b3) {
|
|
319953
|
-
var _a, _b, _c, _d,
|
|
319953
|
+
var _a, _b, _c, _d, _e2, _f;
|
|
319954
319954
|
if (a3.kind !== b3.kind) {
|
|
319955
319955
|
return false;
|
|
319956
319956
|
}
|
|
@@ -319967,7 +319967,7 @@ ${content}
|
|
|
319967
319967
|
return a3.expression.getText() === b3.expression.getText();
|
|
319968
319968
|
}
|
|
319969
319969
|
if (isForStatement(a3) && isForStatement(b3)) {
|
|
319970
|
-
return ((_a = a3.initializer) == null ? undefined : _a.getText()) === ((_b = b3.initializer) == null ? undefined : _b.getText()) && ((_c = a3.incrementor) == null ? undefined : _c.getText()) === ((_d = b3.incrementor) == null ? undefined : _d.getText()) && ((
|
|
319970
|
+
return ((_a = a3.initializer) == null ? undefined : _a.getText()) === ((_b = b3.initializer) == null ? undefined : _b.getText()) && ((_c = a3.incrementor) == null ? undefined : _c.getText()) === ((_d = b3.incrementor) == null ? undefined : _d.getText()) && ((_e2 = a3.condition) == null ? undefined : _e2.getText()) === ((_f = b3.condition) == null ? undefined : _f.getText());
|
|
319971
319971
|
}
|
|
319972
319972
|
if (isForInOrOfStatement(a3) && isForInOrOfStatement(b3)) {
|
|
319973
319973
|
return a3.expression.getText() === b3.expression.getText() && a3.initializer.getText() === b3.initializer.getText();
|
|
@@ -320439,8 +320439,8 @@ ${content}
|
|
|
320439
320439
|
}
|
|
320440
320440
|
function measureSortedness(arr, comparer) {
|
|
320441
320441
|
let i3 = 0;
|
|
320442
|
-
for (let
|
|
320443
|
-
if (comparer(arr[
|
|
320442
|
+
for (let j3 = 0;j3 < arr.length - 1; j3++) {
|
|
320443
|
+
if (comparer(arr[j3], arr[j3 + 1]) > 0) {
|
|
320444
320444
|
i3++;
|
|
320445
320445
|
}
|
|
320446
320446
|
}
|
|
@@ -322751,7 +322751,7 @@ ${content}
|
|
|
322751
322751
|
this.insertJsdocCommentBefore(sourceFile, updateJSDocHost(node), factory.createJSDocComment(this.createJSDocText(sourceFile, node), factory.createNodeArray(tags)));
|
|
322752
322752
|
}
|
|
322753
322753
|
addJSDocTags(sourceFile, parent2, newTags) {
|
|
322754
|
-
const oldTags = flatMapToMutable(parent2.jsDoc, (
|
|
322754
|
+
const oldTags = flatMapToMutable(parent2.jsDoc, (j3) => j3.tags);
|
|
322755
322755
|
const unmergedNewTags = newTags.filter((newTag) => !oldTags.some((tag, i3) => {
|
|
322756
322756
|
const merged = tryMergeJsdocTags(tag, newTag);
|
|
322757
322757
|
if (merged)
|
|
@@ -322761,7 +322761,7 @@ ${content}
|
|
|
322761
322761
|
this.replaceJSDocComment(sourceFile, parent2, [...oldTags, ...unmergedNewTags]);
|
|
322762
322762
|
}
|
|
322763
322763
|
filterJSDocTags(sourceFile, parent2, predicate) {
|
|
322764
|
-
this.replaceJSDocComment(sourceFile, parent2, filter(flatMapToMutable(parent2.jsDoc, (
|
|
322764
|
+
this.replaceJSDocComment(sourceFile, parent2, filter(flatMapToMutable(parent2.jsDoc, (j3) => j3.tags), predicate));
|
|
322765
322765
|
}
|
|
322766
322766
|
replaceRangeWithText(sourceFile, range, text) {
|
|
322767
322767
|
this.changes.push({ kind: 3, sourceFile, range, text });
|
|
@@ -331041,10 +331041,10 @@ ${options.prefix}` : `
|
|
|
331041
331041
|
};
|
|
331042
331042
|
const pluginModule = pluginModuleFactory({ typescript: ts_exports2 });
|
|
331043
331043
|
const newLS = pluginModule.create(info);
|
|
331044
|
-
for (const
|
|
331045
|
-
if (!(
|
|
331046
|
-
this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${
|
|
331047
|
-
newLS[
|
|
331044
|
+
for (const k4 of Object.keys(this.languageService)) {
|
|
331045
|
+
if (!(k4 in newLS)) {
|
|
331046
|
+
this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${k4} in created LS. Patching.`);
|
|
331047
|
+
newLS[k4] = this.languageService[k4];
|
|
331048
331048
|
}
|
|
331049
331049
|
}
|
|
331050
331050
|
this.projectService.logger.info(`Plugin validation succeeded`);
|
|
@@ -332251,8 +332251,8 @@ ${options.prefix}` : `
|
|
|
332251
332251
|
return;
|
|
332252
332252
|
}
|
|
332253
332253
|
const raw = JSON.parse(fileContent);
|
|
332254
|
-
for (const
|
|
332255
|
-
raw.typesMap[
|
|
332254
|
+
for (const k4 of Object.keys(raw.typesMap)) {
|
|
332255
|
+
raw.typesMap[k4].match = new RegExp(raw.typesMap[k4].match, "i");
|
|
332256
332256
|
}
|
|
332257
332257
|
this.safelist = raw.typesMap;
|
|
332258
332258
|
for (const key in raw.simpleMap) {
|
|
@@ -335048,7 +335048,7 @@ ${json}${newLine}`;
|
|
|
335048
335048
|
}, ms, actionType));
|
|
335049
335049
|
}
|
|
335050
335050
|
executeAction(action) {
|
|
335051
|
-
var _a, _b, _c, _d,
|
|
335051
|
+
var _a, _b, _c, _d, _e2, _f;
|
|
335052
335052
|
let stop = false;
|
|
335053
335053
|
try {
|
|
335054
335054
|
if (this.operationHost.isCancellationRequested()) {
|
|
@@ -335063,7 +335063,7 @@ ${json}${newLine}`;
|
|
|
335063
335063
|
(_d = tracing) == null || _d.popAll();
|
|
335064
335064
|
stop = true;
|
|
335065
335065
|
if (e6 instanceof OperationCanceledException) {
|
|
335066
|
-
(
|
|
335066
|
+
(_e2 = tracing) == null || _e2.instant(tracing.Phase.Session, "stepCanceled", { seq: this.requestId });
|
|
335067
335067
|
} else {
|
|
335068
335068
|
(_f = tracing) == null || _f.instant(tracing.Phase.Session, "stepError", { seq: this.requestId, message: e6.message });
|
|
335069
335069
|
this.operationHost.logError(e6, `delayed processing of request ${this.requestId}`);
|
|
@@ -337689,7 +337689,7 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
337689
337689
|
}
|
|
337690
337690
|
}
|
|
337691
337691
|
onMessage(message) {
|
|
337692
|
-
var _a, _b, _c, _d,
|
|
337692
|
+
var _a, _b, _c, _d, _e2, _f, _g;
|
|
337693
337693
|
this.gcTimer.scheduleCollect();
|
|
337694
337694
|
let start;
|
|
337695
337695
|
const currentPerformanceData = this.performanceData;
|
|
@@ -337723,7 +337723,7 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
337723
337723
|
this.doOutput(undefined, request.command, request.seq, false, performanceData, "No content available.");
|
|
337724
337724
|
}
|
|
337725
337725
|
} catch (err) {
|
|
337726
|
-
(
|
|
337726
|
+
(_e2 = tracing) == null || _e2.popAll();
|
|
337727
337727
|
if (err instanceof OperationCanceledException) {
|
|
337728
337728
|
(_f = tracing) == null || _f.instant(tracing.Phase.Session, "commandCanceled", { seq: request == null ? undefined : request.seq, command: request == null ? undefined : request.command });
|
|
337729
337729
|
this.doOutput({ canceled: true }, request.command, request.seq, true, this.performanceData);
|
|
@@ -337874,12 +337874,12 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
337874
337874
|
}
|
|
337875
337875
|
let branchParent;
|
|
337876
337876
|
let lastZeroCount;
|
|
337877
|
-
for (let
|
|
337878
|
-
this.endBranch[
|
|
337879
|
-
if (this.endBranch[
|
|
337880
|
-
lastZeroCount = this.endBranch[
|
|
337881
|
-
if (
|
|
337882
|
-
branchParent = this.endBranch[
|
|
337877
|
+
for (let k4 = this.endBranch.length - 1;k4 >= 0; k4--) {
|
|
337878
|
+
this.endBranch[k4].updateCounts();
|
|
337879
|
+
if (this.endBranch[k4].charCount() === 0) {
|
|
337880
|
+
lastZeroCount = this.endBranch[k4];
|
|
337881
|
+
if (k4 > 0) {
|
|
337882
|
+
branchParent = this.endBranch[k4 - 1];
|
|
337883
337883
|
} else {
|
|
337884
337884
|
branchParent = this.branchNode;
|
|
337885
337885
|
}
|
|
@@ -337914,15 +337914,15 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
337914
337914
|
}
|
|
337915
337915
|
this.lineIndex.root.updateCounts();
|
|
337916
337916
|
} else {
|
|
337917
|
-
for (let
|
|
337918
|
-
this.startPath[
|
|
337917
|
+
for (let j3 = this.startPath.length - 2;j3 >= 0; j3--) {
|
|
337918
|
+
this.startPath[j3].updateCounts();
|
|
337919
337919
|
}
|
|
337920
337920
|
}
|
|
337921
337921
|
} else {
|
|
337922
337922
|
const insertionNode = this.startPath[this.startPath.length - 2];
|
|
337923
337923
|
insertionNode.remove(leafNode);
|
|
337924
|
-
for (let
|
|
337925
|
-
this.startPath[
|
|
337924
|
+
for (let j3 = this.startPath.length - 2;j3 >= 0; j3--) {
|
|
337925
|
+
this.startPath[j3].updateCounts();
|
|
337926
337926
|
}
|
|
337927
337927
|
}
|
|
337928
337928
|
return this.lineIndex;
|
|
@@ -340730,8 +340730,8 @@ var require_isAssignableTo = __commonJS((exports) => {
|
|
|
340730
340730
|
if (numTarget <= numSource + 1) {
|
|
340731
340731
|
if (targetMember instanceof RestType_js_1.RestType) {
|
|
340732
340732
|
const remaining = [];
|
|
340733
|
-
for (let
|
|
340734
|
-
remaining.push(sourceMembers[
|
|
340733
|
+
for (let j3 = i3;j3 < numSource; j3++) {
|
|
340734
|
+
remaining.push(sourceMembers[j3]);
|
|
340735
340735
|
}
|
|
340736
340736
|
return isAssignableTo(targetMember.getType(), new TupleType_js_1.TupleType(remaining), inferMap, insideTypes);
|
|
340737
340737
|
} else if (numTarget < numSource) {
|
|
@@ -347006,7 +347006,7 @@ var require_index_min = __commonJS((exports) => {
|
|
|
347006
347006
|
};
|
|
347007
347007
|
Dt.AST = fe;
|
|
347008
347008
|
});
|
|
347009
|
-
var
|
|
347009
|
+
var me3 = R2((Ft) => {
|
|
347010
347010
|
Object.defineProperty(Ft, "__esModule", { value: true });
|
|
347011
347011
|
Ft.escape = undefined;
|
|
347012
347012
|
var yi = (n3, { windowsPathsNoEscape: t3 = false, magicalBraces: e6 = false } = {}) => e6 ? t3 ? n3.replace(/[?*()[\]{}]/g, "[$&]") : n3.replace(/[?*()[\]\\{}]/g, "\\$&") : t3 ? n3.replace(/[?*()[\]]/g, "[$&]") : n3.replace(/[?*()[\]\\]/g, "\\$&");
|
|
@@ -347015,7 +347015,7 @@ var require_index_min = __commonJS((exports) => {
|
|
|
347015
347015
|
var H2 = R2((g4) => {
|
|
347016
347016
|
Object.defineProperty(g4, "__esModule", { value: true });
|
|
347017
347017
|
g4.unescape = g4.escape = g4.AST = g4.Minimatch = g4.match = g4.makeRe = g4.braceExpand = g4.defaults = g4.filter = g4.GLOBSTAR = g4.sep = g4.minimatch = undefined;
|
|
347018
|
-
var Si = Ke2(), jt = Xe(), is = pe2(), vi =
|
|
347018
|
+
var Si = Ke2(), jt = Xe(), is = pe2(), vi = me3(), Ei = kt(), _i = (n3, t3, e6 = {}) => ((0, jt.assertValidPattern)(t3), !e6.nocomment && t3.charAt(0) === "#" ? false : new J3(t3, e6).match(n3));
|
|
347019
347019
|
g4.minimatch = _i;
|
|
347020
347020
|
var Oi = /^\*+([^+@!?\*\[\(]*)$/, xi = (n3) => (t3) => !t3.startsWith(".") && t3.endsWith(n3), Ti = (n3) => (t3) => t3.endsWith(n3), Ci = (n3) => (n3 = n3.toLowerCase(), (t3) => !t3.startsWith(".") && t3.toLowerCase().endsWith(n3)), Ri = (n3) => (n3 = n3.toLowerCase(), (t3) => t3.toLowerCase().endsWith(n3)), Ai = /^\*+\.\*+$/, ki = (n3) => !n3.startsWith(".") && n3.includes("."), Mi = (n3) => n3 !== "." && n3 !== ".." && n3.includes("."), Pi = /^\.\*+$/, Di = (n3) => n3 !== "." && n3 !== ".." && n3.startsWith("."), Fi = /^\*+$/, ji = (n3) => n3.length !== 0 && !n3.startsWith("."), Ni = (n3) => n3.length !== 0 && n3 !== "." && n3 !== "..", Li = /^\?+([^+@!?\*\[\(]*)?$/, Wi = ([n3, t3 = ""]) => {
|
|
347021
347021
|
let e6 = rs([n3]);
|
|
@@ -347068,16 +347068,16 @@ var require_index_min = __commonJS((exports) => {
|
|
|
347068
347068
|
var Ki = (n3, t3 = {}) => ((0, jt.assertValidPattern)(n3), t3.nobrace || !/\{(?:(?!\{).)*\}/.test(n3) ? [n3] : (0, Si.expand)(n3, { max: t3.braceExpandMax }));
|
|
347069
347069
|
g4.braceExpand = Ki;
|
|
347070
347070
|
g4.minimatch.braceExpand = g4.braceExpand;
|
|
347071
|
-
var Xi = (n3, t3 = {}) => new
|
|
347071
|
+
var Xi = (n3, t3 = {}) => new J3(n3, t3).makeRe();
|
|
347072
347072
|
g4.makeRe = Xi;
|
|
347073
347073
|
g4.minimatch.makeRe = g4.makeRe;
|
|
347074
347074
|
var Yi = (n3, t3, e6 = {}) => {
|
|
347075
|
-
let s3 = new
|
|
347075
|
+
let s3 = new J3(t3, e6);
|
|
347076
347076
|
return n3 = n3.filter((i3) => s3.match(i3)), s3.options.nonull && !n3.length && n3.push(t3), n3;
|
|
347077
347077
|
};
|
|
347078
347078
|
g4.match = Yi;
|
|
347079
347079
|
g4.minimatch.match = g4.match;
|
|
347080
|
-
var ss = /[?*]|[+@!]\(.*?\)|\[|\]/, Ji = (n3) => n3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"),
|
|
347080
|
+
var ss = /[?*]|[+@!]\(.*?\)|\[|\]/, Ji = (n3) => n3.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), J3 = class {
|
|
347081
347081
|
options;
|
|
347082
347082
|
set;
|
|
347083
347083
|
pattern;
|
|
@@ -347394,12 +347394,12 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
347394
347394
|
return g4.minimatch.defaults(t3).Minimatch;
|
|
347395
347395
|
}
|
|
347396
347396
|
};
|
|
347397
|
-
g4.Minimatch =
|
|
347397
|
+
g4.Minimatch = J3;
|
|
347398
347398
|
var Zi = pe2();
|
|
347399
347399
|
Object.defineProperty(g4, "AST", { enumerable: true, get: function() {
|
|
347400
347400
|
return Zi.AST;
|
|
347401
347401
|
} });
|
|
347402
|
-
var Qi =
|
|
347402
|
+
var Qi = me3();
|
|
347403
347403
|
Object.defineProperty(g4, "escape", { enumerable: true, get: function() {
|
|
347404
347404
|
return Qi.escape;
|
|
347405
347405
|
} });
|
|
@@ -347408,7 +347408,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
347408
347408
|
return tr.unescape;
|
|
347409
347409
|
} });
|
|
347410
347410
|
g4.minimatch.AST = is.AST;
|
|
347411
|
-
g4.minimatch.Minimatch =
|
|
347411
|
+
g4.minimatch.Minimatch = J3;
|
|
347412
347412
|
g4.minimatch.escape = vi.escape;
|
|
347413
347413
|
g4.minimatch.unescape = Ei.unescape;
|
|
347414
347414
|
});
|
|
@@ -348013,19 +348013,19 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348013
348013
|
};
|
|
348014
348014
|
Wt.LRUCache = rr;
|
|
348015
348015
|
});
|
|
348016
|
-
var
|
|
348016
|
+
var Oe3 = R2((P2) => {
|
|
348017
348017
|
var nr = P2 && P2.__importDefault || function(n3) {
|
|
348018
348018
|
return n3 && n3.__esModule ? n3 : { default: n3 };
|
|
348019
348019
|
};
|
|
348020
348020
|
Object.defineProperty(P2, "__esModule", { value: true });
|
|
348021
348021
|
P2.Minipass = P2.isWritable = P2.isReadable = P2.isStream = undefined;
|
|
348022
|
-
var ds = typeof process == "object" && process ? process : { stdout: null, stderr: null },
|
|
348022
|
+
var ds = typeof process == "object" && process ? process : { stdout: null, stderr: null }, _e2 = __require("events"), ws = nr(__require("stream")), hr = __require("string_decoder"), or = (n3) => !!n3 && typeof n3 == "object" && (n3 instanceof qt || n3 instanceof ws.default || (0, P2.isReadable)(n3) || (0, P2.isWritable)(n3));
|
|
348023
348023
|
P2.isStream = or;
|
|
348024
|
-
var ar = (n3) => !!n3 && typeof n3 == "object" && n3 instanceof
|
|
348024
|
+
var ar = (n3) => !!n3 && typeof n3 == "object" && n3 instanceof _e2.EventEmitter && typeof n3.pipe == "function" && n3.pipe !== ws.default.Writable.prototype.pipe;
|
|
348025
348025
|
P2.isReadable = ar;
|
|
348026
|
-
var lr = (n3) => !!n3 && typeof n3 == "object" && n3 instanceof
|
|
348026
|
+
var lr = (n3) => !!n3 && typeof n3 == "object" && n3 instanceof _e2.EventEmitter && typeof n3.write == "function" && typeof n3.end == "function";
|
|
348027
348027
|
P2.isWritable = lr;
|
|
348028
|
-
var $3 = Symbol("EOF"), q2 = Symbol("maybeEmitEnd"), K2 = Symbol("emittedEnd"), Bt = Symbol("emittingEnd"), lt = Symbol("emittedError"), It = Symbol("closed"), ps = Symbol("read"), Gt = Symbol("flush"), ms = Symbol("flushChunk"), L2 = Symbol("encoding"), rt = Symbol("decoder"), x3 = Symbol("flowing"), ct = Symbol("paused"), nt = Symbol("resume"), T3 = Symbol("buffer"),
|
|
348028
|
+
var $3 = Symbol("EOF"), q2 = Symbol("maybeEmitEnd"), K2 = Symbol("emittedEnd"), Bt = Symbol("emittingEnd"), lt = Symbol("emittedError"), It = Symbol("closed"), ps = Symbol("read"), Gt = Symbol("flush"), ms = Symbol("flushChunk"), L2 = Symbol("encoding"), rt = Symbol("decoder"), x3 = Symbol("flowing"), ct = Symbol("paused"), nt = Symbol("resume"), T3 = Symbol("buffer"), M2 = Symbol("pipes"), C3 = Symbol("bufferLength"), we2 = Symbol("bufferPush"), zt = Symbol("bufferShift"), k4 = Symbol("objectMode"), O3 = Symbol("destroyed"), be2 = Symbol("error"), ye2 = Symbol("emitData"), gs = Symbol("emitEnd"), Se2 = Symbol("emitEnd2"), I2 = Symbol("async"), ve2 = Symbol("abort"), Ut = Symbol("aborted"), ut = Symbol("signal"), Z3 = Symbol("dataListeners"), D3 = Symbol("discarded"), ft = (n3) => Promise.resolve().then(n3), cr = (n3) => n3(), ur = (n3) => n3 === "end" || n3 === "finish" || n3 === "prefinish", fr = (n3) => n3 instanceof ArrayBuffer || !!n3 && typeof n3 == "object" && n3.constructor && n3.constructor.name === "ArrayBuffer" && n3.byteLength >= 0, dr = (n3) => !Buffer.isBuffer(n3) && ArrayBuffer.isView(n3), $t = class {
|
|
348029
348029
|
src;
|
|
348030
348030
|
dest;
|
|
348031
348031
|
opts;
|
|
@@ -348040,19 +348040,19 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348040
348040
|
end() {
|
|
348041
348041
|
this.unpipe(), this.opts.end && this.dest.end();
|
|
348042
348042
|
}
|
|
348043
|
-
},
|
|
348043
|
+
}, Ee3 = class extends $t {
|
|
348044
348044
|
unpipe() {
|
|
348045
348045
|
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
348046
348046
|
}
|
|
348047
348047
|
constructor(t3, e6, s3) {
|
|
348048
348048
|
super(t3, e6, s3), this.proxyErrors = (i3) => this.dest.emit("error", i3), t3.on("error", this.proxyErrors);
|
|
348049
348049
|
}
|
|
348050
|
-
}, pr = (n3) => !!n3.objectMode, mr = (n3) => !n3.objectMode && !!n3.encoding && n3.encoding !== "buffer", qt = class extends
|
|
348050
|
+
}, pr = (n3) => !!n3.objectMode, mr = (n3) => !n3.objectMode && !!n3.encoding && n3.encoding !== "buffer", qt = class extends _e2.EventEmitter {
|
|
348051
348051
|
[x3] = false;
|
|
348052
348052
|
[ct] = false;
|
|
348053
|
-
[
|
|
348053
|
+
[M2] = [];
|
|
348054
348054
|
[T3] = [];
|
|
348055
|
-
[
|
|
348055
|
+
[k4];
|
|
348056
348056
|
[L2];
|
|
348057
348057
|
[I2];
|
|
348058
348058
|
[rt];
|
|
@@ -348073,9 +348073,9 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348073
348073
|
let e6 = t3[0] || {};
|
|
348074
348074
|
if (super(), e6.objectMode && typeof e6.encoding == "string")
|
|
348075
348075
|
throw new TypeError("Encoding and objectMode may not be used together");
|
|
348076
|
-
pr(e6) ? (this[
|
|
348076
|
+
pr(e6) ? (this[k4] = true, this[L2] = null) : mr(e6) ? (this[L2] = e6.encoding, this[k4] = false) : (this[k4] = false, this[L2] = null), this[I2] = !!e6.async, this[rt] = this[L2] ? new hr.StringDecoder(this[L2]) : null, e6 && e6.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[T3] }), e6 && e6.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[M2] });
|
|
348077
348077
|
let { signal: s3 } = e6;
|
|
348078
|
-
s3 && (this[ut] = s3, s3.aborted ? this[
|
|
348078
|
+
s3 && (this[ut] = s3, s3.aborted ? this[ve2]() : s3.addEventListener("abort", () => this[ve2]()));
|
|
348079
348079
|
}
|
|
348080
348080
|
get bufferLength() {
|
|
348081
348081
|
return this[C3];
|
|
@@ -348090,7 +348090,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348090
348090
|
throw new Error("Encoding must be set at instantiation time");
|
|
348091
348091
|
}
|
|
348092
348092
|
get objectMode() {
|
|
348093
|
-
return this[
|
|
348093
|
+
return this[k4];
|
|
348094
348094
|
}
|
|
348095
348095
|
set objectMode(t3) {
|
|
348096
348096
|
throw new Error("objectMode must be set at instantiation time");
|
|
@@ -348101,7 +348101,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348101
348101
|
set async(t3) {
|
|
348102
348102
|
this[I2] = this[I2] || !!t3;
|
|
348103
348103
|
}
|
|
348104
|
-
[
|
|
348104
|
+
[ve2]() {
|
|
348105
348105
|
this[Ut] = true, this.emit("abort", this[ut]?.reason), this.destroy(this[ut]?.reason);
|
|
348106
348106
|
}
|
|
348107
348107
|
get aborted() {
|
|
@@ -348117,7 +348117,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348117
348117
|
return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
|
348118
348118
|
typeof e6 == "function" && (s3 = e6, e6 = "utf8"), e6 || (e6 = "utf8");
|
|
348119
348119
|
let i3 = this[I2] ? ft : cr;
|
|
348120
|
-
if (!this[
|
|
348120
|
+
if (!this[k4] && !Buffer.isBuffer(t3)) {
|
|
348121
348121
|
if (dr(t3))
|
|
348122
348122
|
t3 = Buffer.from(t3.buffer, t3.byteOffset, t3.byteLength);
|
|
348123
348123
|
else if (fr(t3))
|
|
@@ -348125,19 +348125,19 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348125
348125
|
else if (typeof t3 != "string")
|
|
348126
348126
|
throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
348127
348127
|
}
|
|
348128
|
-
return this[
|
|
348128
|
+
return this[k4] ? (this[x3] && this[C3] !== 0 && this[Gt](true), this[x3] ? this.emit("data", t3) : this[we2](t3), this[C3] !== 0 && this.emit("readable"), s3 && i3(s3), this[x3]) : t3.length ? (typeof t3 == "string" && !(e6 === this[L2] && !this[rt]?.lastNeed) && (t3 = Buffer.from(t3, e6)), Buffer.isBuffer(t3) && this[L2] && (t3 = this[rt].write(t3)), this[x3] && this[C3] !== 0 && this[Gt](true), this[x3] ? this.emit("data", t3) : this[we2](t3), this[C3] !== 0 && this.emit("readable"), s3 && i3(s3), this[x3]) : (this[C3] !== 0 && this.emit("readable"), s3 && i3(s3), this[x3]);
|
|
348129
348129
|
}
|
|
348130
348130
|
read(t3) {
|
|
348131
348131
|
if (this[O3])
|
|
348132
348132
|
return null;
|
|
348133
348133
|
if (this[D3] = false, this[C3] === 0 || t3 === 0 || t3 && t3 > this[C3])
|
|
348134
348134
|
return this[q2](), null;
|
|
348135
|
-
this[
|
|
348135
|
+
this[k4] && (t3 = null), this[T3].length > 1 && !this[k4] && (this[T3] = [this[L2] ? this[T3].join("") : Buffer.concat(this[T3], this[C3])]);
|
|
348136
348136
|
let e6 = this[ps](t3 || null, this[T3][0]);
|
|
348137
348137
|
return this[q2](), e6;
|
|
348138
348138
|
}
|
|
348139
348139
|
[ps](t3, e6) {
|
|
348140
|
-
if (this[
|
|
348140
|
+
if (this[k4])
|
|
348141
348141
|
this[zt]();
|
|
348142
348142
|
else {
|
|
348143
348143
|
let s3 = e6;
|
|
@@ -348149,7 +348149,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348149
348149
|
return typeof t3 == "function" && (s3 = t3, t3 = undefined), typeof e6 == "function" && (s3 = e6, e6 = "utf8"), t3 !== undefined && this.write(t3, e6), s3 && this.once("end", s3), this[$3] = true, this.writable = false, (this[x3] || !this[ct]) && this[q2](), this;
|
|
348150
348150
|
}
|
|
348151
348151
|
[nt]() {
|
|
348152
|
-
this[O3] || (!this[Z3] && !this[
|
|
348152
|
+
this[O3] || (!this[Z3] && !this[M2].length && (this[D3] = true), this[ct] = false, this[x3] = true, this.emit("resume"), this[T3].length ? this[Gt]() : this[$3] ? this[q2]() : this.emit("drain"));
|
|
348153
348153
|
}
|
|
348154
348154
|
resume() {
|
|
348155
348155
|
return this[nt]();
|
|
@@ -348167,10 +348167,10 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348167
348167
|
return this[ct];
|
|
348168
348168
|
}
|
|
348169
348169
|
[we2](t3) {
|
|
348170
|
-
this[
|
|
348170
|
+
this[k4] ? this[C3] += 1 : this[C3] += t3.length, this[T3].push(t3);
|
|
348171
348171
|
}
|
|
348172
348172
|
[zt]() {
|
|
348173
|
-
return this[
|
|
348173
|
+
return this[k4] ? this[C3] -= 1 : this[C3] -= this[T3][0].length, this[T3].shift();
|
|
348174
348174
|
}
|
|
348175
348175
|
[Gt](t3 = false) {
|
|
348176
348176
|
do
|
|
@@ -348186,11 +348186,11 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348186
348186
|
return t3;
|
|
348187
348187
|
this[D3] = false;
|
|
348188
348188
|
let s3 = this[K2];
|
|
348189
|
-
return e6 = e6 || {}, t3 === ds.stdout || t3 === ds.stderr ? e6.end = false : e6.end = e6.end !== false, e6.proxyErrors = !!e6.proxyErrors, s3 ? e6.end && t3.end() : (this[
|
|
348189
|
+
return e6 = e6 || {}, t3 === ds.stdout || t3 === ds.stderr ? e6.end = false : e6.end = e6.end !== false, e6.proxyErrors = !!e6.proxyErrors, s3 ? e6.end && t3.end() : (this[M2].push(e6.proxyErrors ? new Ee3(this, t3, e6) : new $t(this, t3, e6)), this[I2] ? ft(() => this[nt]()) : this[nt]()), t3;
|
|
348190
348190
|
}
|
|
348191
348191
|
unpipe(t3) {
|
|
348192
|
-
let e6 = this[
|
|
348193
|
-
e6 && (this[
|
|
348192
|
+
let e6 = this[M2].find((s3) => s3.dest === t3);
|
|
348193
|
+
e6 && (this[M2].length === 1 ? (this[x3] && this[Z3] === 0 && (this[x3] = false), this[M2] = []) : this[M2].splice(this[M2].indexOf(e6), 1), e6.unpipe());
|
|
348194
348194
|
}
|
|
348195
348195
|
addListener(t3, e6) {
|
|
348196
348196
|
return this.on(t3, e6);
|
|
@@ -348198,7 +348198,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348198
348198
|
on(t3, e6) {
|
|
348199
348199
|
let s3 = super.on(t3, e6);
|
|
348200
348200
|
if (t3 === "data")
|
|
348201
|
-
this[D3] = false, this[Z3]++, !this[
|
|
348201
|
+
this[D3] = false, this[Z3]++, !this[M2].length && !this[x3] && this[nt]();
|
|
348202
348202
|
else if (t3 === "readable" && this[C3] !== 0)
|
|
348203
348203
|
super.emit("readable");
|
|
348204
348204
|
else if (ur(t3) && this[K2])
|
|
@@ -348214,11 +348214,11 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348214
348214
|
}
|
|
348215
348215
|
off(t3, e6) {
|
|
348216
348216
|
let s3 = super.off(t3, e6);
|
|
348217
|
-
return t3 === "data" && (this[Z3] = this.listeners("data").length, this[Z3] === 0 && !this[D3] && !this[
|
|
348217
|
+
return t3 === "data" && (this[Z3] = this.listeners("data").length, this[Z3] === 0 && !this[D3] && !this[M2].length && (this[x3] = false)), s3;
|
|
348218
348218
|
}
|
|
348219
348219
|
removeAllListeners(t3) {
|
|
348220
348220
|
let e6 = super.removeAllListeners(t3);
|
|
348221
|
-
return (t3 === "data" || t3 === undefined) && (this[Z3] = 0, !this[D3] && !this[
|
|
348221
|
+
return (t3 === "data" || t3 === undefined) && (this[Z3] = 0, !this[D3] && !this[M2].length && (this[x3] = false)), e6;
|
|
348222
348222
|
}
|
|
348223
348223
|
get emittedEnd() {
|
|
348224
348224
|
return this[K2];
|
|
@@ -348231,7 +348231,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348231
348231
|
if (t3 !== "error" && t3 !== "close" && t3 !== O3 && this[O3])
|
|
348232
348232
|
return false;
|
|
348233
348233
|
if (t3 === "data")
|
|
348234
|
-
return !this[
|
|
348234
|
+
return !this[k4] && !s3 ? false : this[I2] ? (ft(() => this[ye2](s3)), true) : this[ye2](s3);
|
|
348235
348235
|
if (t3 === "end")
|
|
348236
348236
|
return this[gs]();
|
|
348237
348237
|
if (t3 === "close") {
|
|
@@ -348240,7 +348240,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348240
348240
|
let r3 = super.emit("close");
|
|
348241
348241
|
return this.removeAllListeners("close"), r3;
|
|
348242
348242
|
} else if (t3 === "error") {
|
|
348243
|
-
this[lt] = s3, super.emit(
|
|
348243
|
+
this[lt] = s3, super.emit(be2, s3);
|
|
348244
348244
|
let r3 = !this[ut] || this.listeners("error").length ? super.emit("error", s3) : false;
|
|
348245
348245
|
return this[q2](), r3;
|
|
348246
348246
|
} else if (t3 === "resume") {
|
|
@@ -348253,8 +348253,8 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348253
348253
|
let i3 = super.emit(t3, ...e6);
|
|
348254
348254
|
return this[q2](), i3;
|
|
348255
348255
|
}
|
|
348256
|
-
[
|
|
348257
|
-
for (let s3 of this[
|
|
348256
|
+
[ye2](t3) {
|
|
348257
|
+
for (let s3 of this[M2])
|
|
348258
348258
|
s3.dest.write(t3) === false && this.pause();
|
|
348259
348259
|
let e6 = this[D3] ? false : super.emit("data", t3);
|
|
348260
348260
|
return this[q2](), e6;
|
|
@@ -348266,26 +348266,26 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348266
348266
|
if (this[rt]) {
|
|
348267
348267
|
let e6 = this[rt].end();
|
|
348268
348268
|
if (e6) {
|
|
348269
|
-
for (let s3 of this[
|
|
348269
|
+
for (let s3 of this[M2])
|
|
348270
348270
|
s3.dest.write(e6);
|
|
348271
348271
|
this[D3] || super.emit("data", e6);
|
|
348272
348272
|
}
|
|
348273
348273
|
}
|
|
348274
|
-
for (let e6 of this[
|
|
348274
|
+
for (let e6 of this[M2])
|
|
348275
348275
|
e6.end();
|
|
348276
348276
|
let t3 = super.emit("end");
|
|
348277
348277
|
return this.removeAllListeners("end"), t3;
|
|
348278
348278
|
}
|
|
348279
348279
|
async collect() {
|
|
348280
348280
|
let t3 = Object.assign([], { dataLength: 0 });
|
|
348281
|
-
this[
|
|
348281
|
+
this[k4] || (t3.dataLength = 0);
|
|
348282
348282
|
let e6 = this.promise();
|
|
348283
348283
|
return this.on("data", (s3) => {
|
|
348284
|
-
t3.push(s3), this[
|
|
348284
|
+
t3.push(s3), this[k4] || (t3.dataLength += s3.length);
|
|
348285
348285
|
}), await e6, t3;
|
|
348286
348286
|
}
|
|
348287
348287
|
async concat() {
|
|
348288
|
-
if (this[
|
|
348288
|
+
if (this[k4])
|
|
348289
348289
|
throw new Error("cannot concat in objectMode");
|
|
348290
348290
|
let t3 = await this.collect();
|
|
348291
348291
|
return this[L2] ? t3.join("") : Buffer.concat(t3, t3.dataLength);
|
|
@@ -348322,13 +348322,13 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348322
348322
|
}
|
|
348323
348323
|
[Symbol.iterator]() {
|
|
348324
348324
|
this[D3] = false;
|
|
348325
|
-
let t3 = false, e6 = () => (this.pause(), this.off(
|
|
348325
|
+
let t3 = false, e6 = () => (this.pause(), this.off(be2, e6), this.off(O3, e6), this.off("end", e6), t3 = true, { done: true, value: undefined }), s3 = () => {
|
|
348326
348326
|
if (t3)
|
|
348327
348327
|
return e6();
|
|
348328
348328
|
let i3 = this.read();
|
|
348329
348329
|
return i3 === null ? e6() : { done: false, value: i3 };
|
|
348330
348330
|
};
|
|
348331
|
-
return this.once("end", e6), this.once(
|
|
348331
|
+
return this.once("end", e6), this.once(be2, e6), this.once(O3, e6), { next: s3, throw: e6, return: e6, [Symbol.iterator]() {
|
|
348332
348332
|
return this;
|
|
348333
348333
|
}, [Symbol.dispose]: () => {} };
|
|
348334
348334
|
}
|
|
@@ -348369,7 +348369,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348369
348369
|
};
|
|
348370
348370
|
Object.defineProperty(_3, "__esModule", { value: true });
|
|
348371
348371
|
_3.PathScurry = _3.Path = _3.PathScurryDarwin = _3.PathScurryPosix = _3.PathScurryWin32 = _3.PathScurryBase = _3.PathPosix = _3.PathWin32 = _3.PathBase = _3.ChildrenCache = _3.ResolveCache = undefined;
|
|
348372
|
-
var Qt = fs(), Yt = __require("path"), yr = __require("url"), pt = __require("fs"), Sr = br(__require("fs")), vr = pt.realpathSync.native, Ht = __require("fs/promises"), bs =
|
|
348372
|
+
var Qt = fs(), Yt = __require("path"), yr = __require("url"), pt = __require("fs"), Sr = br(__require("fs")), vr = pt.realpathSync.native, Ht = __require("fs/promises"), bs = Oe3(), mt = { lstatSync: pt.lstatSync, readdir: pt.readdir, readdirSync: pt.readdirSync, readlinkSync: pt.readlinkSync, realpathSync: vr, promises: { lstat: Ht.lstat, readdir: Ht.readdir, readlink: Ht.readlink, realpath: Ht.realpath } }, _s = (n3) => !n3 || n3 === mt || n3 === Sr ? mt : { ...mt, ...n3, promises: { ...mt.promises, ...n3.promises || {} } }, Os = /^\\\\\?\\([a-z]:)\\?$/i, Er = (n3) => n3.replace(/\//g, "\\").replace(Os, "$1\\"), _r = /[\\\/]/, N2 = 0, xs = 1, Ts = 2, G2 = 4, Cs = 6, Rs = 8, Q3 = 10, As = 12, j3 = 15, dt = ~j3, xe2 = 16, ys = 32, gt = 64, W2 = 128, Vt = 256, Xt = 512, Ss = gt | W2 | Xt, Or = 1023, Te3 = (n3) => n3.isFile() ? Rs : n3.isDirectory() ? G2 : n3.isSymbolicLink() ? Q3 : n3.isCharacterDevice() ? Ts : n3.isBlockDevice() ? Cs : n3.isSocket() ? As : n3.isFIFO() ? xs : N2, vs = new Qt.LRUCache({ max: 2 ** 12 }), wt = (n3) => {
|
|
348373
348373
|
let t3 = vs.get(n3);
|
|
348374
348374
|
if (t3)
|
|
348375
348375
|
return t3;
|
|
@@ -348393,7 +348393,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348393
348393
|
}
|
|
348394
348394
|
};
|
|
348395
348395
|
_3.ChildrenCache = Jt;
|
|
348396
|
-
var ks = Symbol("PathScurry setAsCwd"),
|
|
348396
|
+
var ks = Symbol("PathScurry setAsCwd"), A4 = class {
|
|
348397
348397
|
name;
|
|
348398
348398
|
root;
|
|
348399
348399
|
roots;
|
|
@@ -348515,7 +348515,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348515
348515
|
if (t3)
|
|
348516
348516
|
return t3;
|
|
348517
348517
|
let e6 = Object.assign([], { provisional: 0 });
|
|
348518
|
-
return this.#F.set(this, e6), this.#e &= ~
|
|
348518
|
+
return this.#F.set(this, e6), this.#e &= ~xe2, e6;
|
|
348519
348519
|
}
|
|
348520
348520
|
child(t3, e6) {
|
|
348521
348521
|
if (t3 === "" || t3 === ".")
|
|
@@ -348575,7 +348575,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348575
348575
|
return this.#b = s3;
|
|
348576
348576
|
}
|
|
348577
348577
|
isUnknown() {
|
|
348578
|
-
return (this.#e &
|
|
348578
|
+
return (this.#e & j3) === N2;
|
|
348579
348579
|
}
|
|
348580
348580
|
isType(t3) {
|
|
348581
348581
|
return this[`is${t3}`]();
|
|
@@ -348584,22 +348584,22 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348584
348584
|
return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
|
|
348585
348585
|
}
|
|
348586
348586
|
isFile() {
|
|
348587
|
-
return (this.#e &
|
|
348587
|
+
return (this.#e & j3) === Rs;
|
|
348588
348588
|
}
|
|
348589
348589
|
isDirectory() {
|
|
348590
|
-
return (this.#e &
|
|
348590
|
+
return (this.#e & j3) === G2;
|
|
348591
348591
|
}
|
|
348592
348592
|
isCharacterDevice() {
|
|
348593
|
-
return (this.#e &
|
|
348593
|
+
return (this.#e & j3) === Ts;
|
|
348594
348594
|
}
|
|
348595
348595
|
isBlockDevice() {
|
|
348596
|
-
return (this.#e &
|
|
348596
|
+
return (this.#e & j3) === Cs;
|
|
348597
348597
|
}
|
|
348598
348598
|
isFIFO() {
|
|
348599
|
-
return (this.#e &
|
|
348599
|
+
return (this.#e & j3) === xs;
|
|
348600
348600
|
}
|
|
348601
348601
|
isSocket() {
|
|
348602
|
-
return (this.#e &
|
|
348602
|
+
return (this.#e & j3) === As;
|
|
348603
348603
|
}
|
|
348604
348604
|
isSymbolicLink() {
|
|
348605
348605
|
return (this.#e & Q3) === Q3;
|
|
@@ -348622,11 +348622,11 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348622
348622
|
return true;
|
|
348623
348623
|
if (!this.parent)
|
|
348624
348624
|
return false;
|
|
348625
|
-
let t3 = this.#e &
|
|
348625
|
+
let t3 = this.#e & j3;
|
|
348626
348626
|
return !(t3 !== N2 && t3 !== Q3 || this.#e & Vt || this.#e & W2);
|
|
348627
348627
|
}
|
|
348628
348628
|
calledReaddir() {
|
|
348629
|
-
return !!(this.#e &
|
|
348629
|
+
return !!(this.#e & xe2);
|
|
348630
348630
|
}
|
|
348631
348631
|
isENOENT() {
|
|
348632
348632
|
return !!(this.#e & W2);
|
|
@@ -348663,7 +348663,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348663
348663
|
}
|
|
348664
348664
|
}
|
|
348665
348665
|
#W(t3) {
|
|
348666
|
-
this.#e |=
|
|
348666
|
+
this.#e |= xe2;
|
|
348667
348667
|
for (let e6 = t3.provisional;e6 < t3.length; e6++) {
|
|
348668
348668
|
let s3 = t3[e6];
|
|
348669
348669
|
s3 && s3.#_();
|
|
@@ -348685,7 +348685,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348685
348685
|
if (this.#e & gt)
|
|
348686
348686
|
return;
|
|
348687
348687
|
let t3 = this.#e;
|
|
348688
|
-
(t3 &
|
|
348688
|
+
(t3 & j3) === G2 && (t3 &= dt), this.#e = t3 | gt, this.#$();
|
|
348689
348689
|
}
|
|
348690
348690
|
#B(t3 = "") {
|
|
348691
348691
|
t3 === "ENOTDIR" || t3 === "EPERM" ? this.#j() : t3 === "ENOENT" ? this.#_() : this.children().provisional = 0;
|
|
@@ -348701,7 +348701,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348701
348701
|
return this.#z(t3, e6) || this.#G(t3, e6);
|
|
348702
348702
|
}
|
|
348703
348703
|
#G(t3, e6) {
|
|
348704
|
-
let s3 =
|
|
348704
|
+
let s3 = Te3(t3), i3 = this.newChild(t3.name, s3, { parent: this }), r3 = i3.#e & j3;
|
|
348705
348705
|
return r3 !== G2 && r3 !== Q3 && r3 !== N2 && (i3.#e |= gt), e6.unshift(i3), e6.provisional++, i3;
|
|
348706
348706
|
}
|
|
348707
348707
|
#z(t3, e6) {
|
|
@@ -348713,7 +348713,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348713
348713
|
}
|
|
348714
348714
|
#l(t3, e6, s3, i3) {
|
|
348715
348715
|
let r3 = e6.name;
|
|
348716
|
-
return e6.#e = e6.#e & dt |
|
|
348716
|
+
return e6.#e = e6.#e & dt | Te3(t3), r3 !== t3.name && (e6.name = t3.name), s3 !== i3.provisional && (s3 === i3.length - 1 ? i3.pop() : i3.splice(s3, 1), i3.unshift(e6)), i3.provisional++, e6;
|
|
348717
348717
|
}
|
|
348718
348718
|
async lstat() {
|
|
348719
348719
|
if ((this.#e & W2) === 0)
|
|
@@ -348734,7 +348734,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348734
348734
|
#U(t3) {
|
|
348735
348735
|
let { atime: e6, atimeMs: s3, birthtime: i3, birthtimeMs: r3, blksize: h4, blocks: o3, ctime: a3, ctimeMs: l3, dev: f4, gid: c3, ino: d4, mode: u4, mtime: m4, mtimeMs: p4, nlink: b3, rdev: w3, size: v3, uid: E3 } = t3;
|
|
348736
348736
|
this.#y = e6, this.#a = s3, this.#m = i3, this.#v = r3, this.#c = h4, this.#u = o3, this.#R = a3, this.#d = l3, this.#s = f4, this.#S = c3, this.#o = d4, this.#n = u4, this.#p = m4, this.#i = p4, this.#r = b3, this.#w = w3, this.#f = v3, this.#h = E3;
|
|
348737
|
-
let y3 =
|
|
348737
|
+
let y3 = Te3(t3);
|
|
348738
348738
|
this.#e = this.#e & dt | y3 | ys, y3 !== N2 && y3 !== G2 && y3 !== Q3 && (this.#e |= gt);
|
|
348739
348739
|
}
|
|
348740
348740
|
#N = [];
|
|
@@ -348813,7 +348813,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348813
348813
|
canReaddir() {
|
|
348814
348814
|
if (this.#e & Ss)
|
|
348815
348815
|
return false;
|
|
348816
|
-
let t3 =
|
|
348816
|
+
let t3 = j3 & this.#e;
|
|
348817
348817
|
return t3 === N2 || t3 === G2 || t3 === Q3;
|
|
348818
348818
|
}
|
|
348819
348819
|
shouldWalk(t3, e6) {
|
|
@@ -348852,8 +348852,8 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348852
348852
|
i3.#E = undefined, i3.#T = undefined, i3 = i3.parent;
|
|
348853
348853
|
}
|
|
348854
348854
|
};
|
|
348855
|
-
_3.PathBase =
|
|
348856
|
-
var yt = class n3 extends
|
|
348855
|
+
_3.PathBase = A4;
|
|
348856
|
+
var yt = class n3 extends A4 {
|
|
348857
348857
|
sep = "\\";
|
|
348858
348858
|
splitSep = _r;
|
|
348859
348859
|
constructor(t3, e6 = N2, s3, i3, r3, h4, o3) {
|
|
@@ -348878,7 +348878,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348878
348878
|
}
|
|
348879
348879
|
};
|
|
348880
348880
|
_3.PathWin32 = yt;
|
|
348881
|
-
var St = class n3 extends
|
|
348881
|
+
var St = class n3 extends A4 {
|
|
348882
348882
|
splitSep = "/";
|
|
348883
348883
|
sep = "/";
|
|
348884
348884
|
constructor(t3, e6 = N2, s3, i3, r3, h4, o3) {
|
|
@@ -348965,7 +348965,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348965
348965
|
return typeof t3 == "string" && (t3 = this.cwd.resolve(t3)), (t3.parent || t3).fullpath();
|
|
348966
348966
|
}
|
|
348967
348967
|
async readdir(t3 = this.cwd, e6 = { withFileTypes: true }) {
|
|
348968
|
-
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof
|
|
348968
|
+
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof A4 || (e6 = t3, t3 = this.cwd);
|
|
348969
348969
|
let { withFileTypes: s3 } = e6;
|
|
348970
348970
|
if (t3.canReaddir()) {
|
|
348971
348971
|
let i3 = await t3.readdir();
|
|
@@ -348974,7 +348974,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348974
348974
|
return [];
|
|
348975
348975
|
}
|
|
348976
348976
|
readdirSync(t3 = this.cwd, e6 = { withFileTypes: true }) {
|
|
348977
|
-
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof
|
|
348977
|
+
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof A4 || (e6 = t3, t3 = this.cwd);
|
|
348978
348978
|
let { withFileTypes: s3 = true } = e6;
|
|
348979
348979
|
return t3.canReaddir() ? s3 ? t3.readdirSync() : t3.readdirSync().map((i3) => i3.name) : [];
|
|
348980
348980
|
}
|
|
@@ -348985,27 +348985,27 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348985
348985
|
return typeof t3 == "string" && (t3 = this.cwd.resolve(t3)), t3.lstatSync();
|
|
348986
348986
|
}
|
|
348987
348987
|
async readlink(t3 = this.cwd, { withFileTypes: e6 } = { withFileTypes: false }) {
|
|
348988
|
-
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof
|
|
348988
|
+
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof A4 || (e6 = t3.withFileTypes, t3 = this.cwd);
|
|
348989
348989
|
let s3 = await t3.readlink();
|
|
348990
348990
|
return e6 ? s3 : s3?.fullpath();
|
|
348991
348991
|
}
|
|
348992
348992
|
readlinkSync(t3 = this.cwd, { withFileTypes: e6 } = { withFileTypes: false }) {
|
|
348993
|
-
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof
|
|
348993
|
+
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof A4 || (e6 = t3.withFileTypes, t3 = this.cwd);
|
|
348994
348994
|
let s3 = t3.readlinkSync();
|
|
348995
348995
|
return e6 ? s3 : s3?.fullpath();
|
|
348996
348996
|
}
|
|
348997
348997
|
async realpath(t3 = this.cwd, { withFileTypes: e6 } = { withFileTypes: false }) {
|
|
348998
|
-
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof
|
|
348998
|
+
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof A4 || (e6 = t3.withFileTypes, t3 = this.cwd);
|
|
348999
348999
|
let s3 = await t3.realpath();
|
|
349000
349000
|
return e6 ? s3 : s3?.fullpath();
|
|
349001
349001
|
}
|
|
349002
349002
|
realpathSync(t3 = this.cwd, { withFileTypes: e6 } = { withFileTypes: false }) {
|
|
349003
|
-
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof
|
|
349003
|
+
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof A4 || (e6 = t3.withFileTypes, t3 = this.cwd);
|
|
349004
349004
|
let s3 = t3.realpathSync();
|
|
349005
349005
|
return e6 ? s3 : s3?.fullpath();
|
|
349006
349006
|
}
|
|
349007
349007
|
async walk(t3 = this.cwd, e6 = {}) {
|
|
349008
|
-
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof
|
|
349008
|
+
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof A4 || (e6 = t3, t3 = this.cwd);
|
|
349009
349009
|
let { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: h4 } = e6, o3 = [];
|
|
349010
349010
|
(!r3 || r3(t3)) && o3.push(s3 ? t3 : t3.fullpath());
|
|
349011
349011
|
let a3 = new Set, l3 = (c3, d4) => {
|
|
@@ -349031,7 +349031,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349031
349031
|
});
|
|
349032
349032
|
}
|
|
349033
349033
|
walkSync(t3 = this.cwd, e6 = {}) {
|
|
349034
|
-
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof
|
|
349034
|
+
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof A4 || (e6 = t3, t3 = this.cwd);
|
|
349035
349035
|
let { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: h4 } = e6, o3 = [];
|
|
349036
349036
|
(!r3 || r3(t3)) && o3.push(s3 ? t3 : t3.fullpath());
|
|
349037
349037
|
let a3 = new Set([t3]);
|
|
@@ -349054,13 +349054,13 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349054
349054
|
return this.iterate();
|
|
349055
349055
|
}
|
|
349056
349056
|
iterate(t3 = this.cwd, e6 = {}) {
|
|
349057
|
-
return typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof
|
|
349057
|
+
return typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof A4 || (e6 = t3, t3 = this.cwd), this.stream(t3, e6)[Symbol.asyncIterator]();
|
|
349058
349058
|
}
|
|
349059
349059
|
[Symbol.iterator]() {
|
|
349060
349060
|
return this.iterateSync();
|
|
349061
349061
|
}
|
|
349062
349062
|
*iterateSync(t3 = this.cwd, e6 = {}) {
|
|
349063
|
-
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof
|
|
349063
|
+
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof A4 || (e6 = t3, t3 = this.cwd);
|
|
349064
349064
|
let { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: h4 } = e6;
|
|
349065
349065
|
(!r3 || r3(t3)) && (yield s3 ? t3 : t3.fullpath());
|
|
349066
349066
|
let o3 = new Set([t3]);
|
|
@@ -349079,7 +349079,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349079
349079
|
}
|
|
349080
349080
|
}
|
|
349081
349081
|
stream(t3 = this.cwd, e6 = {}) {
|
|
349082
|
-
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof
|
|
349082
|
+
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof A4 || (e6 = t3, t3 = this.cwd);
|
|
349083
349083
|
let { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: h4 } = e6, o3 = new bs.Minipass({ objectMode: true });
|
|
349084
349084
|
(!r3 || r3(t3)) && o3.write(s3 ? t3 : t3.fullpath());
|
|
349085
349085
|
let a3 = new Set, l3 = [t3], f4 = 0, c3 = () => {
|
|
@@ -349118,7 +349118,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349118
349118
|
return c3(), o3;
|
|
349119
349119
|
}
|
|
349120
349120
|
streamSync(t3 = this.cwd, e6 = {}) {
|
|
349121
|
-
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof
|
|
349121
|
+
typeof t3 == "string" ? t3 = this.cwd.resolve(t3) : t3 instanceof A4 || (e6 = t3, t3 = this.cwd);
|
|
349122
349122
|
let { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: h4 } = e6, o3 = new bs.Minipass({ objectMode: true }), a3 = new Set;
|
|
349123
349123
|
(!r3 || r3(t3)) && o3.write(s3 ? t3 : t3.fullpath());
|
|
349124
349124
|
let l3 = [t3], f4 = 0, c3 = () => {
|
|
@@ -349287,10 +349287,10 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349287
349287
|
};
|
|
349288
349288
|
te2.Pattern = Ce2;
|
|
349289
349289
|
});
|
|
349290
|
-
var
|
|
349290
|
+
var ke3 = R2((ee2) => {
|
|
349291
349291
|
Object.defineProperty(ee2, "__esModule", { value: true });
|
|
349292
349292
|
ee2.Ignore = undefined;
|
|
349293
|
-
var Ps = H2(), Ar = Re2(), kr = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux",
|
|
349293
|
+
var Ps = H2(), Ar = Re2(), kr = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", Ae3 = class {
|
|
349294
349294
|
relative;
|
|
349295
349295
|
relativeChildren;
|
|
349296
349296
|
absolute;
|
|
@@ -349335,7 +349335,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349335
349335
|
return false;
|
|
349336
349336
|
}
|
|
349337
349337
|
};
|
|
349338
|
-
ee2.Ignore =
|
|
349338
|
+
ee2.Ignore = Ae3;
|
|
349339
349339
|
});
|
|
349340
349340
|
var Fs = R2((z2) => {
|
|
349341
349341
|
Object.defineProperty(z2, "__esModule", { value: true });
|
|
@@ -349390,7 +349390,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349390
349390
|
}
|
|
349391
349391
|
};
|
|
349392
349392
|
z2.SubWalks = re2;
|
|
349393
|
-
var
|
|
349393
|
+
var Me3 = class n3 {
|
|
349394
349394
|
hasWalkedCache;
|
|
349395
349395
|
matches = new ie2;
|
|
349396
349396
|
subwalks = new re2;
|
|
@@ -349479,12 +349479,12 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349479
349479
|
t3.isNamed(e6) && (s3 ? this.subwalks.add(t3, s3) : this.matches.add(t3, i3, false));
|
|
349480
349480
|
}
|
|
349481
349481
|
};
|
|
349482
|
-
z2.Processor =
|
|
349482
|
+
z2.Processor = Me3;
|
|
349483
349483
|
});
|
|
349484
349484
|
var Ls = R2((X3) => {
|
|
349485
349485
|
Object.defineProperty(X3, "__esModule", { value: true });
|
|
349486
349486
|
X3.GlobStream = X3.GlobWalker = X3.GlobUtil = undefined;
|
|
349487
|
-
var Mr =
|
|
349487
|
+
var Mr = Oe3(), js = ke3(), Ns = Fs(), Pr = (n3, t3) => typeof n3 == "string" ? new js.Ignore([n3], t3) : Array.isArray(n3) ? new js.Ignore(n3, t3) : n3, Ot = class {
|
|
349488
349488
|
path;
|
|
349489
349489
|
patterns;
|
|
349490
349490
|
opts;
|
|
@@ -349690,7 +349690,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349690
349690
|
}
|
|
349691
349691
|
};
|
|
349692
349692
|
X3.GlobWalker = Pe2;
|
|
349693
|
-
var
|
|
349693
|
+
var De3 = class extends Ot {
|
|
349694
349694
|
results;
|
|
349695
349695
|
constructor(t3, e6, s3) {
|
|
349696
349696
|
super(t3, e6, s3), this.results = new Mr.Minipass({ signal: this.signal, objectMode: true }), this.results.on("drain", () => this.resume()), this.results.on("resume", () => this.resume());
|
|
@@ -349708,9 +349708,9 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349708
349708
|
return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
|
|
349709
349709
|
}
|
|
349710
349710
|
};
|
|
349711
|
-
X3.GlobStream =
|
|
349711
|
+
X3.GlobStream = De3;
|
|
349712
349712
|
});
|
|
349713
|
-
var
|
|
349713
|
+
var je3 = R2((oe2) => {
|
|
349714
349714
|
Object.defineProperty(oe2, "__esModule", { value: true });
|
|
349715
349715
|
oe2.Glob = undefined;
|
|
349716
349716
|
var Dr = H2(), Fr = __require("url"), ne2 = Ms(), jr = Re2(), he2 = Ls(), Nr = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", Fe2 = class {
|
|
@@ -349814,7 +349814,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349814
349814
|
exports.globIterateSync = Tt;
|
|
349815
349815
|
exports.globIterate = Be2;
|
|
349816
349816
|
var Ws = H2();
|
|
349817
|
-
var tt =
|
|
349817
|
+
var tt = je3();
|
|
349818
349818
|
var Br = Ne2();
|
|
349819
349819
|
var Is = H2();
|
|
349820
349820
|
Object.defineProperty(exports, "escape", { enumerable: true, get: function() {
|
|
@@ -349823,7 +349823,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349823
349823
|
Object.defineProperty(exports, "unescape", { enumerable: true, get: function() {
|
|
349824
349824
|
return Is.unescape;
|
|
349825
349825
|
} });
|
|
349826
|
-
var Ir =
|
|
349826
|
+
var Ir = je3();
|
|
349827
349827
|
Object.defineProperty(exports, "Glob", { enumerable: true, get: function() {
|
|
349828
349828
|
return Ir.Glob;
|
|
349829
349829
|
} });
|
|
@@ -349831,7 +349831,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349831
349831
|
Object.defineProperty(exports, "hasMagic", { enumerable: true, get: function() {
|
|
349832
349832
|
return Gr.hasMagic;
|
|
349833
349833
|
} });
|
|
349834
|
-
var zr =
|
|
349834
|
+
var zr = ke3();
|
|
349835
349835
|
Object.defineProperty(exports, "Ignore", { enumerable: true, get: function() {
|
|
349836
349836
|
return zr.Ignore;
|
|
349837
349837
|
} });
|
|
@@ -356217,7 +356217,7 @@ function mapDataType(dataType) {
|
|
|
356217
356217
|
};
|
|
356218
356218
|
}
|
|
356219
356219
|
|
|
356220
|
-
// ../dist/utils-
|
|
356220
|
+
// ../dist/utils-CAOAm6k-.js
|
|
356221
356221
|
var import_typescript = __toESM(require_typescript(), 1);
|
|
356222
356222
|
function t2() {
|
|
356223
356223
|
return t2 = Object.assign ? Object.assign.bind() : function(e6) {
|
|
@@ -356479,9 +356479,13 @@ function g3(e6) {
|
|
|
356479
356479
|
if (typeof e6 == "string" && e6 !== "")
|
|
356480
356480
|
return e6;
|
|
356481
356481
|
}
|
|
356482
|
-
var
|
|
356483
|
-
|
|
356484
|
-
|
|
356482
|
+
var k3 = {
|
|
356483
|
+
DATE: "date",
|
|
356484
|
+
TYPE: "type"
|
|
356485
|
+
};
|
|
356486
|
+
var A3 = (e6) => e6 != null && (e6 in k3);
|
|
356487
|
+
var me2 = new Set(Object.values(k3));
|
|
356488
|
+
var Te2 = `
|
|
356485
356489
|
interface Array<T> {
|
|
356486
356490
|
[n: number]: T;
|
|
356487
356491
|
length: number;
|
|
@@ -356502,17 +356506,17 @@ var _e2 = `
|
|
|
356502
356506
|
|
|
356503
356507
|
import ReturnType = Utils.ReturnType;
|
|
356504
356508
|
`;
|
|
356505
|
-
function
|
|
356509
|
+
function J2(t3, n3) {
|
|
356506
356510
|
let r3 = /* @__PURE__ */ new Map;
|
|
356507
|
-
return r3.set(t3, n3), r3.set("lib.codezero.d.ts",
|
|
356511
|
+
return r3.set(t3, n3), r3.set("lib.codezero.d.ts", Te2), a2(u3(r3), [t3, "lib.codezero.d.ts"], import_typescript.default, Ee2);
|
|
356508
356512
|
}
|
|
356509
|
-
var
|
|
356513
|
+
var Ee2 = {
|
|
356510
356514
|
target: import_typescript.default.ScriptTarget.Latest,
|
|
356511
356515
|
lib: ["lib.codezero.d.ts"],
|
|
356512
356516
|
noEmit: true,
|
|
356513
356517
|
strictNullChecks: true
|
|
356514
356518
|
};
|
|
356515
|
-
function
|
|
356519
|
+
function De2(e6) {
|
|
356516
356520
|
let t3 = [], n3 = 0, r3 = null, i3 = "";
|
|
356517
356521
|
for (let a3 of e6) {
|
|
356518
356522
|
if (r3)
|
|
@@ -356531,11 +356535,16 @@ function ye2(e6) {
|
|
|
356531
356535
|
}
|
|
356532
356536
|
return t3.push(i3), t3.map((e7) => (e7.trim().split(/\s+/).find((e8) => e8 !== "const" && e8 !== "in" && e8 !== "out") ?? "").match(/^[A-Za-z_$][A-Za-z0-9_$]*/)?.[0] ?? "").filter((e7) => e7.length > 0);
|
|
356533
356537
|
}
|
|
356534
|
-
|
|
356535
|
-
|
|
356538
|
+
var Oe2 = /* @__PURE__ */ new Set([
|
|
356539
|
+
"number",
|
|
356540
|
+
"string",
|
|
356541
|
+
"boolean"
|
|
356542
|
+
]);
|
|
356543
|
+
function Y2(e6, t3 = "any", n3 = true) {
|
|
356544
|
+
let r3 = Array.from(new Set(e6?.flatMap((e7) => e7.genericKeys || []).flatMap(De2))).map((e7) => `type ${e7} = ${t3};`).join(`
|
|
356536
356545
|
`), i3 = e6?.map((e7) => {
|
|
356537
|
-
let t4 = (e7.genericKeys?.length ?? 0) > 0 ? `<${e7.genericKeys?.join(",")}>` : "",
|
|
356538
|
-
return `type ${e7.identifier}${
|
|
356546
|
+
let t4 = A3(e7.identifier), n4 = (e7.genericKeys?.length ?? 0) > 0 ? t4 ? `<${e7.genericKeys.map((e8) => e8.includes("=") ? e8 : `${e8} = any`).join(", ")}>` : `<${e7.genericKeys?.join(",")}>` : "", r4 = e7.type?.trim() ?? "", i4 = t4 ? Oe2.has(r4) ? `${e7.type} & {}` : "{}" : e7.type;
|
|
356547
|
+
return `type ${e7.identifier}${n4} = ${i4};`;
|
|
356539
356548
|
}).join(`
|
|
356540
356549
|
`), a3 = e6?.filter((e7) => (e7.genericKeys?.length ?? 0) > 0).map((e7) => `declare const __widen_${e7.identifier}: ${e7.identifier}<${e7.genericKeys.map(() => "any").join(", ")}>;`).join(`
|
|
356541
356550
|
`) ?? "";
|
|
@@ -356543,9 +356552,37 @@ function X2(e6, t3 = "any", n3 = true) {
|
|
|
356543
356552
|
${i3}
|
|
356544
356553
|
${a3}`;
|
|
356545
356554
|
}
|
|
356555
|
+
var ke2 = /^[A-Za-z0-9_$<>\[\]{}(),.:?|&+\-'"\s]+$/;
|
|
356556
|
+
var Ae2 = (e6) => {
|
|
356557
|
+
if (!ke2.test(e6))
|
|
356558
|
+
return false;
|
|
356559
|
+
let t3 = {
|
|
356560
|
+
"<": ">",
|
|
356561
|
+
"[": "]",
|
|
356562
|
+
"{": "}",
|
|
356563
|
+
"(": ")"
|
|
356564
|
+
}, n3 = [], r3 = null;
|
|
356565
|
+
for (let i3 of e6) {
|
|
356566
|
+
if (r3) {
|
|
356567
|
+
i3 === r3 && (r3 = null);
|
|
356568
|
+
continue;
|
|
356569
|
+
}
|
|
356570
|
+
if (i3 === "'" || i3 === '"')
|
|
356571
|
+
r3 = i3;
|
|
356572
|
+
else if (t3[i3])
|
|
356573
|
+
n3.push(t3[i3]);
|
|
356574
|
+
else if ((i3 === ">" || i3 === "]" || i3 === "}" || i3 === ")") && n3.pop() !== i3)
|
|
356575
|
+
return false;
|
|
356576
|
+
}
|
|
356577
|
+
return r3 === null && n3.length === 0;
|
|
356578
|
+
};
|
|
356579
|
+
var X2 = (e6, t3) => {
|
|
356580
|
+
let n3 = t3?.trim();
|
|
356581
|
+
return !n3 || !Ae2(n3) ? e6 : `(${e6}) as unknown as ${n3}`;
|
|
356582
|
+
};
|
|
356546
356583
|
var Z2 = (e6) => e6?.replace(/[^a-zA-Z0-9]/g, "_");
|
|
356547
356584
|
var Q2 = (e6) => e6.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${");
|
|
356548
|
-
var
|
|
356585
|
+
var je2 = (e6, t3) => {
|
|
356549
356586
|
let n3 = e6.match(/^\$\{([^}]+)\}$/);
|
|
356550
356587
|
if (n3 && t3.has(n3[1]))
|
|
356551
356588
|
return t3.get(n3[1]);
|
|
@@ -356564,8 +356601,8 @@ var be2 = (e6, t3) => {
|
|
|
356564
356601
|
}
|
|
356565
356602
|
return a3 += Q2(e6.slice(o3)), "`" + a3 + "`";
|
|
356566
356603
|
};
|
|
356567
|
-
var $2 = (e6, t3) => typeof e6 == "string" ?
|
|
356568
|
-
function
|
|
356604
|
+
var $2 = (e6, t3) => typeof e6 == "string" ? je2(e6, t3) : Array.isArray(e6) ? `[${e6.map((e7) => $2(e7, t3)).join(", ")}]` : typeof e6 == "object" && e6 ? `{${Object.entries(e6).map(([e7, n3]) => `${h3(e7)}: ${$2(n3, t3)}`).join(", ")}}` : h3(e6) ?? "undefined";
|
|
356605
|
+
function Me2(e6, t3, n3, r3 = false, i3 = true) {
|
|
356569
356606
|
let a3 = e6?.nodes?.nodes || [], o3 = new Map(t3?.map((e7) => [e7.identifier, e7])), s3 = /* @__PURE__ */ new Set, c3 = (t4) => {
|
|
356570
356607
|
let n4 = typeof t4.inputIndex == "number" ? `p_${Z2(t4.nodeFunctionId ?? "undefined")}_${t4.parameterIndex}[${t4.inputIndex}]` : t4.nodeFunctionId ? `node_${Z2(t4.nodeFunctionId)}` : `flow_${Z2(e6?.id ?? "undefined")}`;
|
|
356571
356608
|
return t4.referencePath?.forEach((e7) => {
|
|
@@ -356597,12 +356634,20 @@ ${d4(e7.startingNodeId || e7.functionDefinition?.id, r4 + " ")}${r4}}`, u4 =
|
|
|
356597
356634
|
return `${t4}// Error: Function ${n4.functionDefinition.identifier} not found
|
|
356598
356635
|
`;
|
|
356599
356636
|
let i4 = (n4.parameters?.nodes || []).map((n5, i5) => {
|
|
356600
|
-
let a4 = n5.value
|
|
356601
|
-
|
|
356602
|
-
|
|
356603
|
-
|
|
356604
|
-
|
|
356605
|
-
|
|
356637
|
+
let a4 = n5.value, o4 = r3 ? `/* @pos ${e7} ${i5} */ ${X2("{}", n5.cast)}` : `/* @pos ${e7} ${i5} */ undefined`;
|
|
356638
|
+
if (!a4)
|
|
356639
|
+
return o4;
|
|
356640
|
+
if (a4.__typename === "ReferenceValue")
|
|
356641
|
+
return `/* @pos ${e7} ${i5} */ ${X2(c3(a4), n5.cast)}`;
|
|
356642
|
+
if (a4.__typename === "LiteralValue") {
|
|
356643
|
+
let r4 = u4(a4.value, a4.references, {
|
|
356644
|
+
id: e7,
|
|
356645
|
+
index: i5,
|
|
356646
|
+
indent: t4
|
|
356647
|
+
});
|
|
356648
|
+
return r4 === undefined ? `/* @pos ${e7} ${i5} */ undefined` : `/* @pos ${e7} ${i5} */ ${X2(r4, n5.cast)}`;
|
|
356649
|
+
}
|
|
356650
|
+
return a4.__typename === "SubFlowValue" ? `/* @pos ${e7} ${i5} */ ${l3(a4, e7, i5, t4)}` : o4;
|
|
356606
356651
|
}), f5 = `node_${Z2(n4.id)}`, p5 = `fn_${n4?.functionDefinition?.identifier?.replace(/::/g, "_")}`;
|
|
356607
356652
|
i4.includes("undefined");
|
|
356608
356653
|
let m5 = `${t4}`;
|
|
@@ -356618,7 +356663,7 @@ ${d4(e7.startingNodeId || e7.functionDefinition?.id, r4 + " ")}${r4}}`, u4 =
|
|
|
356618
356663
|
${d4(n4.parameters?.nodes?.[2]?.value?.startingNodeId || n4.parameters?.nodes?.[2]?.value?.functionDefinition?.identifier, t4 + " ")}
|
|
356619
356664
|
}`) : m5 += `const ${f5} = /* @pos ${e7} null */ ${p5}(${i4.join(", ")}) ;
|
|
356620
356665
|
`, n4.nextNodeId && (m5 += d4(n4.nextNodeId, t4)), m5;
|
|
356621
|
-
}, f4 =
|
|
356666
|
+
}, f4 = Y2(n3), p4 = `declare function flow${e6?.signature ?? "(): void"}`, m4 = t3?.map((e7) => `declare function fn_${e7.identifier?.replace(/::/g, "_")}${e7.signature}`).join(`
|
|
356622
356667
|
`), g4 = new Set(a3.map((e7) => e7?.nextNodeId).filter((e7) => !!e7)), _3 = /* @__PURE__ */ new Set;
|
|
356623
356668
|
return a3.forEach((e7) => e7?.parameters?.nodes?.forEach((e8) => {
|
|
356624
356669
|
e8?.value?.__typename === "SubFlowValue" && (e8.value.startingNodeId || e8.value.functionDefinition?.id) && _3.add(e8.value.startingNodeId || e8.value.functionDefinition?.id);
|
|
@@ -356630,7 +356675,10 @@ ${d4(e7.startingNodeId || e7.functionDefinition?.id, r4 + " ")}${r4}}`, u4 =
|
|
|
356630
356675
|
${m4}
|
|
356631
356676
|
|
|
356632
356677
|
(() =>
|
|
356633
|
-
${e6 ? `const flow_${Z2(e6.id ?? "")} = /* @pos null null */ flow(${e6.settings?.nodes?.map((e7, t4) =>
|
|
356678
|
+
${e6 ? `const flow_${Z2(e6.id ?? "")} = /* @pos null null */ flow(${e6.settings?.nodes?.map((e7, t4) => {
|
|
356679
|
+
let n4 = e7?.value !== null && e7?.value !== undefined ? h3(e7.value) : undefined;
|
|
356680
|
+
return `/* @pos null ${t4} */ ${n4 === undefined ? "undefined" : X2(n4, e7?.cast)}`;
|
|
356681
|
+
}).join(", ") ?? ""});` : ""}
|
|
356634
356682
|
${a3.filter((e7) => e7?.id && !g4.has(e7.id) && !_3.has(e7.id)).map((e7) => d4(e7.id)).join(`
|
|
356635
356683
|
`)}
|
|
356636
356684
|
)();
|
|
@@ -356663,11 +356711,11 @@ var u4 = (e6, t3) => {
|
|
|
356663
356711
|
var d4 = (e6, t3) => {
|
|
356664
356712
|
let r3 = Object.entries(e6).map(([e7, t4]) => `export type ${e7} = ${t4};`).join(`
|
|
356665
356713
|
`);
|
|
356666
|
-
return `${
|
|
356714
|
+
return `${Y2(t3)}
|
|
356667
356715
|
${r3}`;
|
|
356668
356716
|
};
|
|
356669
356717
|
var f4 = (e6) => {
|
|
356670
|
-
let t3 =
|
|
356718
|
+
let t3 = J2("index.ts", e6).languageService.getProgram();
|
|
356671
356719
|
return new import_ts_json_schema_generator.SchemaGenerator(t3, import_ts_json_schema_generator.createParser(t3, l3), import_ts_json_schema_generator.createFormatter(l3), l3);
|
|
356672
356720
|
};
|
|
356673
356721
|
var p4 = (e6) => {
|
|
@@ -356680,7 +356728,7 @@ var p4 = (e6) => {
|
|
|
356680
356728
|
var m4 = (e6, n3, i4) => {
|
|
356681
356729
|
if (!e6)
|
|
356682
356730
|
return;
|
|
356683
|
-
let a4 = "index.ts", o4 =
|
|
356731
|
+
let a4 = "index.ts", o4 = Me2(e6, n3, i4), s4 = J2(a4, o4), c4 = s4.getSourceFile(a4), l4 = s4.languageService.getProgram().getTypeChecker(), d5 = u4({
|
|
356684
356732
|
...v3(l4, c4),
|
|
356685
356733
|
...y3(l4, c4, e6)
|
|
356686
356734
|
}, i4), f5 = (e6.nodes?.nodes ?? []).map((e7) => e7 && E3(e7, d5));
|
|
@@ -356711,14 +356759,14 @@ var v3 = (e6, t3) => {
|
|
|
356711
356759
|
};
|
|
356712
356760
|
};
|
|
356713
356761
|
var y3 = (e6, t3, n3) => {
|
|
356714
|
-
let r3 =
|
|
356762
|
+
let r3 = A4(t3), i4 = {};
|
|
356715
356763
|
for (let t4 of n3.nodes?.nodes ?? []) {
|
|
356716
356764
|
if (!t4?.id)
|
|
356717
356765
|
continue;
|
|
356718
356766
|
let n4 = t4.parameters?.nodes;
|
|
356719
356767
|
if (!n4?.some(D3))
|
|
356720
356768
|
continue;
|
|
356721
|
-
let a4 =
|
|
356769
|
+
let a4 = k4(r3, t4);
|
|
356722
356770
|
a4 && n4.forEach((n5, r4) => {
|
|
356723
356771
|
if (!D3(n5))
|
|
356724
356772
|
return;
|
|
@@ -356749,7 +356797,7 @@ var x3 = (e6, t3, n3) => {
|
|
|
356749
356797
|
};
|
|
356750
356798
|
var S3 = (e6, t3, n3) => {
|
|
356751
356799
|
let r3 = t3, a4 = r3.target;
|
|
356752
|
-
if (
|
|
356800
|
+
if (a4 && (a4.objectFlags & import_typescript2.default.ObjectFlags.Tuple) !== 0)
|
|
356753
356801
|
return e6.getTypeArguments(r3).map((t4, r4) => {
|
|
356754
356802
|
let o4 = a4.labeledElementDeclarations?.[r4];
|
|
356755
356803
|
return `${o4?.name && import_typescript2.default.isIdentifier(o4.name) ? o4.name.text : `arg${r4}`}${(a4.elementFlags[r4] & import_typescript2.default.ElementFlags.Optional) === 0 ? "" : "?"}: ${e6.typeToString(t4, n3, import_typescript2.default.TypeFormatFlags.NoTruncation)}`;
|
|
@@ -356797,11 +356845,11 @@ var O3 = (e6) => {
|
|
|
356797
356845
|
let t3 = e6.valueDeclaration;
|
|
356798
356846
|
return !!t3 && import_typescript2.default.isParameter(t3) && (!!t3.questionToken || !!t3.initializer || !!t3.dotDotDotToken);
|
|
356799
356847
|
};
|
|
356800
|
-
var
|
|
356848
|
+
var k4 = (t3, n3) => {
|
|
356801
356849
|
let r3 = t3.get(`node_${Z2(n3.id)}`)?.initializer;
|
|
356802
356850
|
return r3 && import_typescript2.default.isCallExpression(r3) ? r3 : undefined;
|
|
356803
356851
|
};
|
|
356804
|
-
var
|
|
356852
|
+
var A4 = (e6) => {
|
|
356805
356853
|
let t3 = /* @__PURE__ */ new Map;
|
|
356806
356854
|
return e6.statements.forEach((e7) => {
|
|
356807
356855
|
e7.forEachChild(function e8(n3) {
|