triangulum 0.37.0 → 0.37.2
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 +188 -186
- data/lib/triangulum/js/single-validation.js +44 -41
- 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, k3, k22) {
|
|
169765
169765
|
if (k22 === undefined)
|
|
169766
|
-
k22 =
|
|
169767
|
-
var desc = Object.getOwnPropertyDescriptor(m4,
|
|
169766
|
+
k22 = k3;
|
|
169767
|
+
var desc = Object.getOwnPropertyDescriptor(m4, k3);
|
|
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[k3];
|
|
169771
169771
|
} };
|
|
169772
169772
|
}
|
|
169773
169773
|
Object.defineProperty(o3, k22, desc);
|
|
169774
|
-
} : function(o3, m4,
|
|
169774
|
+
} : function(o3, m4, k3, k22) {
|
|
169775
169775
|
if (k22 === undefined)
|
|
169776
|
-
k22 =
|
|
169777
|
-
o3[k22] = m4[
|
|
169776
|
+
k22 = k3;
|
|
169777
|
+
o3[k22] = m4[k3];
|
|
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], j3 = 0, jl = a3.length;j3 < jl; j3++,
|
|
169824
|
-
r3[
|
|
169822
|
+
for (var r3 = Array(s3), k3 = 0, i3 = 0;i3 < il; i3++)
|
|
169823
|
+
for (var a3 = arguments[i3], j3 = 0, jl = a3.length;j3 < jl; j3++, k3++)
|
|
169824
|
+
r3[k3] = 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 k3 in o4)
|
|
169935
|
+
if (Object.prototype.hasOwnProperty.call(o4, k3))
|
|
169936
|
+
ar[ar.length] = k3;
|
|
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 k3 = ownKeys(mod), i3 = 0;i3 < k3.length; i3++)
|
|
169947
|
+
if (k3[i3] !== "default")
|
|
169948
|
+
__createBinding(result, mod, k3[i3]);
|
|
169949
169949
|
}
|
|
169950
169950
|
__setModuleDefault(result, mod);
|
|
169951
169951
|
return result;
|
|
@@ -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((k3) => !opt.deprecatedKeys.has(k3)) : 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((k3) => k3 !== "init" && k3 !== "help" && k3 !== "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": {`);
|
|
@@ -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), (k3) => startsWith(k3, "."));
|
|
212398
212398
|
}
|
|
212399
212399
|
function noKeyStartsWithDot(obj) {
|
|
212400
|
-
return !some(getOwnKeys(obj), (
|
|
212400
|
+
return !some(getOwnKeys(obj), (k3) => startsWith(k3, "."));
|
|
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), (k3) => hasOneAsterisk(k3) || endsWith(k3, "/")), comparePatternKeys);
|
|
212515
212515
|
for (const potentialTarget of expandingKeys) {
|
|
212516
212516
|
if (state.features & 16 && matchesPatternWithTrailer(potentialTarget, moduleName)) {
|
|
212517
212517
|
const target = lookupTable[potentialTarget];
|
|
@@ -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), (k3) => {
|
|
216490
|
+
const subPackageName = getNormalizedAbsolutePath(combinePaths(packageName, k3), undefined);
|
|
216491
|
+
const mode = endsWith(k3, "/") ? 1 : k3.includes("*") ? 2 : 0;
|
|
216492
|
+
return tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, subPackageName, exports2[k3], 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), (k3) => {
|
|
216518
|
+
if (!startsWith(k3, "#") || k3 === "#" || startsWith(k3, "#/"))
|
|
216519
216519
|
return;
|
|
216520
|
-
const mode = endsWith(
|
|
216521
|
-
return tryGetModuleNameFromExportsOrImports(options, host, moduleFileName, ancestorDirectoryWithPackageJson,
|
|
216520
|
+
const mode = endsWith(k3, "/") ? 1 : k3.includes("*") ? 2 : 0;
|
|
216521
|
+
return tryGetModuleNameFromExportsOrImports(options, host, moduleFileName, ancestorDirectoryWithPackageJson, k3, imports[k3], conditions, mode, true, preferTsExtension);
|
|
216522
216522
|
})) == null ? undefined : _c.moduleFileToTry;
|
|
216523
216523
|
}
|
|
216524
216524
|
function tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, allowedEndings, compilerOptions) {
|
|
@@ -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: (k3) => forward.get(k3),
|
|
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: (k3) => {
|
|
280473
|
+
(deleted || (deleted = /* @__PURE__ */ new Set)).add(k3);
|
|
280474
|
+
const set = forward.get(k3);
|
|
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, k3));
|
|
280479
|
+
forward.delete(k3);
|
|
280480
280480
|
return true;
|
|
280481
280481
|
},
|
|
280482
|
-
set: (
|
|
280483
|
-
deleted == null || deleted.delete(
|
|
280484
|
-
const existingVSet = forward.get(
|
|
280485
|
-
forward.set(
|
|
280482
|
+
set: (k3, vSet) => {
|
|
280483
|
+
deleted == null || deleted.delete(k3);
|
|
280484
|
+
const existingVSet = forward.get(k3);
|
|
280485
|
+
forward.set(k3, vSet);
|
|
280486
280486
|
existingVSet == null || existingVSet.forEach((v3) => {
|
|
280487
280487
|
if (!vSet.has(v3)) {
|
|
280488
|
-
deleteFromMultimap(reverse, v3,
|
|
280488
|
+
deleteFromMultimap(reverse, v3, k3);
|
|
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, k3);
|
|
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, k3, v3) {
|
|
280505
|
+
let set = map2.get(k3);
|
|
280506
280506
|
if (!set) {
|
|
280507
280507
|
set = /* @__PURE__ */ new Set;
|
|
280508
|
-
map2.set(
|
|
280508
|
+
map2.set(k3, set);
|
|
280509
280509
|
}
|
|
280510
280510
|
set.add(v3);
|
|
280511
280511
|
}
|
|
280512
|
-
function deleteFromMultimap(map2,
|
|
280513
|
-
const set = map2.get(
|
|
280512
|
+
function deleteFromMultimap(map2, k3, v3) {
|
|
280513
|
+
const set = map2.get(k3);
|
|
280514
280514
|
if (set == null ? undefined : set.delete(v3)) {
|
|
280515
280515
|
if (!set.size) {
|
|
280516
|
-
map2.delete(
|
|
280516
|
+
map2.delete(k3);
|
|
280517
280517
|
}
|
|
280518
280518
|
return true;
|
|
280519
280519
|
}
|
|
@@ -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 k3 of Object.keys(this.languageService)) {
|
|
331045
|
+
if (!(k3 in newLS)) {
|
|
331046
|
+
this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${k3} in created LS. Patching.`);
|
|
331047
|
+
newLS[k3] = this.languageService[k3];
|
|
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 k3 of Object.keys(raw.typesMap)) {
|
|
332255
|
+
raw.typesMap[k3].match = new RegExp(raw.typesMap[k3].match, "i");
|
|
332256
332256
|
}
|
|
332257
332257
|
this.safelist = raw.typesMap;
|
|
332258
332258
|
for (const key in raw.simpleMap) {
|
|
@@ -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 k3 = this.endBranch.length - 1;k3 >= 0; k3--) {
|
|
337878
|
+
this.endBranch[k3].updateCounts();
|
|
337879
|
+
if (this.endBranch[k3].charCount() === 0) {
|
|
337880
|
+
lastZeroCount = this.endBranch[k3];
|
|
337881
|
+
if (k3 > 0) {
|
|
337882
|
+
branchParent = this.endBranch[k3 - 1];
|
|
337883
337883
|
} else {
|
|
337884
337884
|
branchParent = this.branchNode;
|
|
337885
337885
|
}
|
|
@@ -346559,11 +346559,11 @@ var require_index_min = __commonJS((exports) => {
|
|
|
346559
346559
|
Object.defineProperty(Y3, "__esModule", { value: true });
|
|
346560
346560
|
Y3.range = Y3.balanced = undefined;
|
|
346561
346561
|
var Gs = (n3, t3, e6) => {
|
|
346562
|
-
let s3 = n3 instanceof RegExp ?
|
|
346562
|
+
let s3 = n3 instanceof RegExp ? Ie3(n3, e6) : n3, i3 = t3 instanceof RegExp ? Ie3(t3, e6) : t3, r3 = s3 !== null && i3 != null && (0, Y3.range)(s3, i3, e6);
|
|
346563
346563
|
return r3 && { start: r3[0], end: r3[1], pre: e6.slice(0, r3[0]), body: e6.slice(r3[0] + s3.length, r3[1]), post: e6.slice(r3[1] + i3.length) };
|
|
346564
346564
|
};
|
|
346565
346565
|
Y3.balanced = Gs;
|
|
346566
|
-
var
|
|
346566
|
+
var Ie3 = (n3, t3) => {
|
|
346567
346567
|
let e6 = t3.match(n3);
|
|
346568
346568
|
return e6 ? e6[0] : null;
|
|
346569
346569
|
}, zs = (n3, t3, e6) => {
|
|
@@ -347006,7 +347006,7 @@ var require_index_min = __commonJS((exports) => {
|
|
|
347006
347006
|
};
|
|
347007
347007
|
Dt.AST = fe;
|
|
347008
347008
|
});
|
|
347009
|
-
var
|
|
347009
|
+
var me2 = 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 = me2(), 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]);
|
|
@@ -347399,7 +347399,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
347399
347399
|
Object.defineProperty(g4, "AST", { enumerable: true, get: function() {
|
|
347400
347400
|
return Zi.AST;
|
|
347401
347401
|
} });
|
|
347402
|
-
var Qi =
|
|
347402
|
+
var Qi = me2();
|
|
347403
347403
|
Object.defineProperty(g4, "escape", { enumerable: true, get: function() {
|
|
347404
347404
|
return Qi.escape;
|
|
347405
347405
|
} });
|
|
@@ -347415,8 +347415,8 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
347415
347415
|
var fs = R2((Wt) => {
|
|
347416
347416
|
Object.defineProperty(Wt, "__esModule", { value: true });
|
|
347417
347417
|
Wt.LRUCache = undefined;
|
|
347418
|
-
var er = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, as = new Set,
|
|
347419
|
-
typeof
|
|
347418
|
+
var er = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, as = new Set, ge3 = typeof process == "object" && process ? process : {}, ls = (n3, t3, e6, s3) => {
|
|
347419
|
+
typeof ge3.emitWarning == "function" ? ge3.emitWarning(n3, t3, e6, s3) : console.error(`[${e6}] ${t3}: ${n3}`);
|
|
347420
347420
|
}, Lt = globalThis.AbortController, os = globalThis.AbortSignal;
|
|
347421
347421
|
if (typeof Lt > "u") {
|
|
347422
347422
|
os = class {
|
|
@@ -347441,7 +347441,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
347441
347441
|
}
|
|
347442
347442
|
}
|
|
347443
347443
|
};
|
|
347444
|
-
let n3 =
|
|
347444
|
+
let n3 = ge3.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", t3 = () => {
|
|
347445
347445
|
n3 && (n3 = false, ls("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t3));
|
|
347446
347446
|
};
|
|
347447
347447
|
}
|
|
@@ -348013,7 +348013,7 @@ 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 Oe2 = R2((P2) => {
|
|
348017
348017
|
var nr = P2 && P2.__importDefault || function(n3) {
|
|
348018
348018
|
return n3 && n3.__esModule ? n3 : { default: n3 };
|
|
348019
348019
|
};
|
|
@@ -348025,7 +348025,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348025
348025
|
P2.isReadable = ar;
|
|
348026
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"), M2 = Symbol("pipes"), C3 = Symbol("bufferLength"), we2 = Symbol("bufferPush"), zt = Symbol("bufferShift"),
|
|
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"), k3 = Symbol("objectMode"), O4 = 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"), D4 = 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,7 +348040,7 @@ 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
|
+
}, Ee2 = class extends $t {
|
|
348044
348044
|
unpipe() {
|
|
348045
348045
|
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
348046
348046
|
}
|
|
@@ -348052,7 +348052,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348052
348052
|
[ct] = false;
|
|
348053
348053
|
[M2] = [];
|
|
348054
348054
|
[T3] = [];
|
|
348055
|
-
[
|
|
348055
|
+
[k3];
|
|
348056
348056
|
[L2];
|
|
348057
348057
|
[I2];
|
|
348058
348058
|
[rt];
|
|
@@ -348062,18 +348062,18 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348062
348062
|
[It] = false;
|
|
348063
348063
|
[lt] = null;
|
|
348064
348064
|
[C3] = 0;
|
|
348065
|
-
[
|
|
348065
|
+
[O4] = false;
|
|
348066
348066
|
[ut];
|
|
348067
348067
|
[Ut] = false;
|
|
348068
348068
|
[Z3] = 0;
|
|
348069
|
-
[
|
|
348069
|
+
[D4] = false;
|
|
348070
348070
|
writable = true;
|
|
348071
348071
|
readable = true;
|
|
348072
348072
|
constructor(...t3) {
|
|
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[k3] = true, this[L2] = null) : mr(e6) ? (this[L2] = e6.encoding, this[k3] = false) : (this[k3] = 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
348078
|
s3 && (this[ut] = s3, s3.aborted ? this[ve2]() : s3.addEventListener("abort", () => this[ve2]()));
|
|
348079
348079
|
}
|
|
@@ -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[k3];
|
|
348094
348094
|
}
|
|
348095
348095
|
set objectMode(t3) {
|
|
348096
348096
|
throw new Error("objectMode must be set at instantiation time");
|
|
@@ -348113,11 +348113,11 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348113
348113
|
return false;
|
|
348114
348114
|
if (this[$3])
|
|
348115
348115
|
throw new Error("write after end");
|
|
348116
|
-
if (this[
|
|
348116
|
+
if (this[O4])
|
|
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[k3] && !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[k3] ? (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
|
-
if (this[
|
|
348131
|
+
if (this[O4])
|
|
348132
348132
|
return null;
|
|
348133
|
-
if (this[
|
|
348133
|
+
if (this[D4] = false, this[C3] === 0 || t3 === 0 || t3 && t3 > this[C3])
|
|
348134
348134
|
return this[q2](), null;
|
|
348135
|
-
this[
|
|
348135
|
+
this[k3] && (t3 = null), this[T3].length > 1 && !this[k3] && (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[k3])
|
|
348141
348141
|
this[zt]();
|
|
348142
348142
|
else {
|
|
348143
348143
|
let s3 = e6;
|
|
@@ -348149,16 +348149,16 @@ 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[
|
|
348152
|
+
this[O4] || (!this[Z3] && !this[M2].length && (this[D4] = 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]();
|
|
348156
348156
|
}
|
|
348157
348157
|
pause() {
|
|
348158
|
-
this[x3] = false, this[ct] = true, this[
|
|
348158
|
+
this[x3] = false, this[ct] = true, this[D4] = false;
|
|
348159
348159
|
}
|
|
348160
348160
|
get destroyed() {
|
|
348161
|
-
return this[
|
|
348161
|
+
return this[O4];
|
|
348162
348162
|
}
|
|
348163
348163
|
get flowing() {
|
|
348164
348164
|
return this[x3];
|
|
@@ -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[k3] ? this[C3] += 1 : this[C3] += t3.length, this[T3].push(t3);
|
|
348171
348171
|
}
|
|
348172
348172
|
[zt]() {
|
|
348173
|
-
return this[
|
|
348173
|
+
return this[k3] ? this[C3] -= 1 : this[C3] -= this[T3][0].length, this[T3].shift();
|
|
348174
348174
|
}
|
|
348175
348175
|
[Gt](t3 = false) {
|
|
348176
348176
|
do
|
|
@@ -348182,11 +348182,11 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348182
348182
|
return this.emit("data", t3), this[x3];
|
|
348183
348183
|
}
|
|
348184
348184
|
pipe(t3, e6) {
|
|
348185
|
-
if (this[
|
|
348185
|
+
if (this[O4])
|
|
348186
348186
|
return t3;
|
|
348187
|
-
this[
|
|
348187
|
+
this[D4] = 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[M2].push(e6.proxyErrors ? new
|
|
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 Ee2(this, t3, e6) : new $t(this, t3, e6)), this[I2] ? ft(() => this[nt]()) : this[nt]()), t3;
|
|
348190
348190
|
}
|
|
348191
348191
|
unpipe(t3) {
|
|
348192
348192
|
let e6 = this[M2].find((s3) => s3.dest === t3);
|
|
@@ -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[
|
|
348201
|
+
this[D4] = 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,28 +348214,28 @@ 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[
|
|
348217
|
+
return t3 === "data" && (this[Z3] = this.listeners("data").length, this[Z3] === 0 && !this[D4] && !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[
|
|
348221
|
+
return (t3 === "data" || t3 === undefined) && (this[Z3] = 0, !this[D4] && !this[M2].length && (this[x3] = false)), e6;
|
|
348222
348222
|
}
|
|
348223
348223
|
get emittedEnd() {
|
|
348224
348224
|
return this[K2];
|
|
348225
348225
|
}
|
|
348226
348226
|
[q2]() {
|
|
348227
|
-
!this[Bt] && !this[K2] && !this[
|
|
348227
|
+
!this[Bt] && !this[K2] && !this[O4] && this[T3].length === 0 && this[$3] && (this[Bt] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[It] && this.emit("close"), this[Bt] = false);
|
|
348228
348228
|
}
|
|
348229
348229
|
emit(t3, ...e6) {
|
|
348230
348230
|
let s3 = e6[0];
|
|
348231
|
-
if (t3 !== "error" && t3 !== "close" && t3 !==
|
|
348231
|
+
if (t3 !== "error" && t3 !== "close" && t3 !== O4 && this[O4])
|
|
348232
348232
|
return false;
|
|
348233
348233
|
if (t3 === "data")
|
|
348234
|
-
return !this[
|
|
348234
|
+
return !this[k3] && !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") {
|
|
348238
|
-
if (this[It] = true, !this[K2] && !this[
|
|
348238
|
+
if (this[It] = true, !this[K2] && !this[O4])
|
|
348239
348239
|
return false;
|
|
348240
348240
|
let r3 = super.emit("close");
|
|
348241
348241
|
return this.removeAllListeners("close"), r3;
|
|
@@ -348256,7 +348256,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348256
348256
|
[ye2](t3) {
|
|
348257
348257
|
for (let s3 of this[M2])
|
|
348258
348258
|
s3.dest.write(t3) === false && this.pause();
|
|
348259
|
-
let e6 = this[
|
|
348259
|
+
let e6 = this[D4] ? false : super.emit("data", t3);
|
|
348260
348260
|
return this[q2](), e6;
|
|
348261
348261
|
}
|
|
348262
348262
|
[gs]() {
|
|
@@ -348268,7 +348268,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348268
348268
|
if (e6) {
|
|
348269
348269
|
for (let s3 of this[M2])
|
|
348270
348270
|
s3.dest.write(e6);
|
|
348271
|
-
this[
|
|
348271
|
+
this[D4] || super.emit("data", e6);
|
|
348272
348272
|
}
|
|
348273
348273
|
}
|
|
348274
348274
|
for (let e6 of this[M2])
|
|
@@ -348278,25 +348278,25 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348278
348278
|
}
|
|
348279
348279
|
async collect() {
|
|
348280
348280
|
let t3 = Object.assign([], { dataLength: 0 });
|
|
348281
|
-
this[
|
|
348281
|
+
this[k3] || (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[k3] || (t3.dataLength += s3.length);
|
|
348285
348285
|
}), await e6, t3;
|
|
348286
348286
|
}
|
|
348287
348287
|
async concat() {
|
|
348288
|
-
if (this[
|
|
348288
|
+
if (this[k3])
|
|
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);
|
|
348292
348292
|
}
|
|
348293
348293
|
async promise() {
|
|
348294
348294
|
return new Promise((t3, e6) => {
|
|
348295
|
-
this.on(
|
|
348295
|
+
this.on(O4, () => e6(new Error("stream destroyed"))), this.on("error", (s3) => e6(s3)), this.on("end", () => t3());
|
|
348296
348296
|
});
|
|
348297
348297
|
}
|
|
348298
348298
|
[Symbol.asyncIterator]() {
|
|
348299
|
-
this[
|
|
348299
|
+
this[D4] = false;
|
|
348300
348300
|
let t3 = false, e6 = async () => (this.pause(), t3 = true, { value: undefined, done: true });
|
|
348301
348301
|
return { next: () => {
|
|
348302
348302
|
if (t3)
|
|
@@ -348307,37 +348307,37 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
348307
348307
|
if (this[$3])
|
|
348308
348308
|
return e6();
|
|
348309
348309
|
let r3, h4, o3 = (c3) => {
|
|
348310
|
-
this.off("data", a3), this.off("end", l3), this.off(
|
|
348310
|
+
this.off("data", a3), this.off("end", l3), this.off(O4, f4), e6(), h4(c3);
|
|
348311
348311
|
}, a3 = (c3) => {
|
|
348312
|
-
this.off("error", o3), this.off("end", l3), this.off(
|
|
348312
|
+
this.off("error", o3), this.off("end", l3), this.off(O4, f4), this.pause(), r3({ value: c3, done: !!this[$3] });
|
|
348313
348313
|
}, l3 = () => {
|
|
348314
|
-
this.off("error", o3), this.off("data", a3), this.off(
|
|
348314
|
+
this.off("error", o3), this.off("data", a3), this.off(O4, f4), e6(), r3({ done: true, value: undefined });
|
|
348315
348315
|
}, f4 = () => o3(new Error("stream destroyed"));
|
|
348316
348316
|
return new Promise((c3, d4) => {
|
|
348317
|
-
h4 = d4, r3 = c3, this.once(
|
|
348317
|
+
h4 = d4, r3 = c3, this.once(O4, f4), this.once("error", o3), this.once("end", l3), this.once("data", a3);
|
|
348318
348318
|
});
|
|
348319
348319
|
}, throw: e6, return: e6, [Symbol.asyncIterator]() {
|
|
348320
348320
|
return this;
|
|
348321
348321
|
}, [Symbol.asyncDispose]: async () => {} };
|
|
348322
348322
|
}
|
|
348323
348323
|
[Symbol.iterator]() {
|
|
348324
|
-
this[
|
|
348325
|
-
let t3 = false, e6 = () => (this.pause(), this.off(be2, e6), this.off(
|
|
348324
|
+
this[D4] = false;
|
|
348325
|
+
let t3 = false, e6 = () => (this.pause(), this.off(be2, e6), this.off(O4, 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(be2, e6), this.once(
|
|
348331
|
+
return this.once("end", e6), this.once(be2, e6), this.once(O4, e6), { next: s3, throw: e6, return: e6, [Symbol.iterator]() {
|
|
348332
348332
|
return this;
|
|
348333
348333
|
}, [Symbol.dispose]: () => {} };
|
|
348334
348334
|
}
|
|
348335
348335
|
destroy(t3) {
|
|
348336
|
-
if (this[
|
|
348337
|
-
return t3 ? this.emit("error", t3) : this.emit(
|
|
348338
|
-
this[
|
|
348336
|
+
if (this[O4])
|
|
348337
|
+
return t3 ? this.emit("error", t3) : this.emit(O4), this;
|
|
348338
|
+
this[O4] = true, this[D4] = true, this[T3].length = 0, this[C3] = 0;
|
|
348339
348339
|
let e6 = this;
|
|
348340
|
-
return typeof e6.close == "function" && !this[It] && e6.close(), t3 ? this.emit("error", t3) : this.emit(
|
|
348340
|
+
return typeof e6.close == "function" && !this[It] && e6.close(), t3 ? this.emit("error", t3) : this.emit(O4), this;
|
|
348341
348341
|
}
|
|
348342
348342
|
static get isStream() {
|
|
348343
348343
|
return P2.isStream;
|
|
@@ -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 = Oe2(), 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, Te2 = (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"), A3 = class {
|
|
348397
348397
|
name;
|
|
348398
348398
|
root;
|
|
348399
348399
|
roots;
|
|
@@ -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 = Te2(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 | Te2(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 = Te2(t3);
|
|
348738
348738
|
this.#e = this.#e & dt | y3 | ys, y3 !== N2 && y3 !== G2 && y3 !== Q3 && (this.#e |= gt);
|
|
348739
348739
|
}
|
|
348740
348740
|
#N = [];
|
|
@@ -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 = A3;
|
|
348856
|
+
var yt = class n3 extends A3 {
|
|
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 A3 {
|
|
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 A3 || (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 A3 || (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 A3 || (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 A3 || (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 A3 || (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 A3 || (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 A3 || (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 A3 || (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 A3 || (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 A3 || (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 A3 || (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 A3 || (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,7 +349287,7 @@ 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 ke2 = R2((ee2) => {
|
|
349291
349291
|
Object.defineProperty(ee2, "__esModule", { value: true });
|
|
349292
349292
|
ee2.Ignore = undefined;
|
|
349293
349293
|
var Ps = H2(), Ar = Re2(), kr = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", Ae3 = class {
|
|
@@ -349484,7 +349484,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
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 = Oe2(), js = ke2(), 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;
|
|
@@ -349663,7 +349663,7 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349663
349663
|
}
|
|
349664
349664
|
};
|
|
349665
349665
|
X3.GlobUtil = Ot;
|
|
349666
|
-
var
|
|
349666
|
+
var Pe3 = class extends Ot {
|
|
349667
349667
|
matches = new Set;
|
|
349668
349668
|
constructor(t3, e6, s3) {
|
|
349669
349669
|
super(t3, e6, s3);
|
|
@@ -349689,8 +349689,8 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349689
349689
|
}), this.matches;
|
|
349690
349690
|
}
|
|
349691
349691
|
};
|
|
349692
|
-
X3.GlobWalker =
|
|
349693
|
-
var
|
|
349692
|
+
X3.GlobWalker = Pe3;
|
|
349693
|
+
var De2 = 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,12 +349708,12 @@ 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 = De2;
|
|
349712
349712
|
});
|
|
349713
349713
|
var je3 = R2((oe2) => {
|
|
349714
349714
|
Object.defineProperty(oe2, "__esModule", { value: true });
|
|
349715
349715
|
oe2.Glob = undefined;
|
|
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",
|
|
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", Fe3 = class {
|
|
349717
349717
|
absolute;
|
|
349718
349718
|
cwd;
|
|
349719
349719
|
root;
|
|
@@ -349792,9 +349792,9 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349792
349792
|
return this.iterate();
|
|
349793
349793
|
}
|
|
349794
349794
|
};
|
|
349795
|
-
oe2.Glob =
|
|
349795
|
+
oe2.Glob = Fe3;
|
|
349796
349796
|
});
|
|
349797
|
-
var
|
|
349797
|
+
var Ne3 = R2((ae2) => {
|
|
349798
349798
|
Object.defineProperty(ae2, "__esModule", { value: true });
|
|
349799
349799
|
ae2.hasMagic = undefined;
|
|
349800
349800
|
var Lr = H2(), Wr = (n3, t3 = {}) => {
|
|
@@ -349809,13 +349809,13 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349809
349809
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
349810
349810
|
exports.glob = exports.sync = exports.iterate = exports.iterateSync = exports.stream = exports.streamSync = exports.Ignore = exports.hasMagic = exports.Glob = exports.unescape = exports.escape = undefined;
|
|
349811
349811
|
exports.globStreamSync = xt;
|
|
349812
|
-
exports.globStream =
|
|
349812
|
+
exports.globStream = Le3;
|
|
349813
349813
|
exports.globSync = We2;
|
|
349814
349814
|
exports.globIterateSync = Tt;
|
|
349815
349815
|
exports.globIterate = Be2;
|
|
349816
349816
|
var Ws = H2();
|
|
349817
349817
|
var tt = je3();
|
|
349818
|
-
var Br =
|
|
349818
|
+
var Br = Ne3();
|
|
349819
349819
|
var Is = H2();
|
|
349820
349820
|
Object.defineProperty(exports, "escape", { enumerable: true, get: function() {
|
|
349821
349821
|
return Is.escape;
|
|
@@ -349827,18 +349827,18 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349827
349827
|
Object.defineProperty(exports, "Glob", { enumerable: true, get: function() {
|
|
349828
349828
|
return Ir.Glob;
|
|
349829
349829
|
} });
|
|
349830
|
-
var Gr =
|
|
349830
|
+
var Gr = Ne3();
|
|
349831
349831
|
Object.defineProperty(exports, "hasMagic", { enumerable: true, get: function() {
|
|
349832
349832
|
return Gr.hasMagic;
|
|
349833
349833
|
} });
|
|
349834
|
-
var zr =
|
|
349834
|
+
var zr = ke2();
|
|
349835
349835
|
Object.defineProperty(exports, "Ignore", { enumerable: true, get: function() {
|
|
349836
349836
|
return zr.Ignore;
|
|
349837
349837
|
} });
|
|
349838
349838
|
function xt(n3, t3 = {}) {
|
|
349839
349839
|
return new tt.Glob(n3, t3).streamSync();
|
|
349840
349840
|
}
|
|
349841
|
-
function
|
|
349841
|
+
function Le3(n3, t3 = {}) {
|
|
349842
349842
|
return new tt.Glob(n3, t3).stream();
|
|
349843
349843
|
}
|
|
349844
349844
|
function We2(n3, t3 = {}) {
|
|
@@ -349854,11 +349854,11 @@ globstar while`, t3, d4, e6, u4, m4), this.matchOne(t3.slice(d4), e6.slice(u4),
|
|
|
349854
349854
|
return new tt.Glob(n3, t3).iterate();
|
|
349855
349855
|
}
|
|
349856
349856
|
exports.streamSync = xt;
|
|
349857
|
-
exports.stream = Object.assign(
|
|
349857
|
+
exports.stream = Object.assign(Le3, { sync: xt });
|
|
349858
349858
|
exports.iterateSync = Tt;
|
|
349859
349859
|
exports.iterate = Object.assign(Be2, { sync: Tt });
|
|
349860
349860
|
exports.sync = Object.assign(We2, { stream: xt, iterate: Tt });
|
|
349861
|
-
exports.glob = Object.assign(Bs, { glob: Bs, globSync: We2, sync: exports.sync, globStream:
|
|
349861
|
+
exports.glob = Object.assign(Bs, { glob: Bs, globSync: We2, sync: exports.sync, globStream: Le3, stream: exports.stream, globStreamSync: xt, streamSync: exports.streamSync, globIterate: Be2, iterate: exports.iterate, globIterateSync: Tt, iterateSync: exports.iterateSync, Glob: tt.Glob, hasMagic: Br.hasMagic, escape: Ws.escape, unescape: Ws.unescape });
|
|
349862
349862
|
exports.glob.glob = exports.glob;
|
|
349863
349863
|
});
|
|
349864
349864
|
|
|
@@ -356115,7 +356115,8 @@ function mapFlowSetting(flowSetting) {
|
|
|
356115
356115
|
__typename: "FlowSetting",
|
|
356116
356116
|
id: gid("FlowSetting", flowSetting.databaseId),
|
|
356117
356117
|
flowSettingIdentifier: flowSetting.flowSettingId,
|
|
356118
|
-
value: flowSetting.value ? e4(flowSetting.value) : null
|
|
356118
|
+
value: flowSetting.value ? e4(flowSetting.value) : null,
|
|
356119
|
+
cast: flowSetting.cast
|
|
356119
356120
|
};
|
|
356120
356121
|
}
|
|
356121
356122
|
function mapNodeFunction(nodeFunction) {
|
|
@@ -356134,7 +356135,8 @@ function mapNodeParameter(nodeParameter) {
|
|
|
356134
356135
|
const value = mapNodeValue(nodeParameter.value);
|
|
356135
356136
|
return {
|
|
356136
356137
|
id: gid("NodeParameter", nodeParameter.databaseId),
|
|
356137
|
-
value
|
|
356138
|
+
value,
|
|
356139
|
+
cast: nodeParameter.cast
|
|
356138
356140
|
};
|
|
356139
356141
|
}
|
|
356140
356142
|
function mapNodeValue(tucanaNodeValue) {
|
|
@@ -356217,7 +356219,7 @@ function mapDataType(dataType) {
|
|
|
356217
356219
|
};
|
|
356218
356220
|
}
|
|
356219
356221
|
|
|
356220
|
-
// ../dist/utils-
|
|
356222
|
+
// ../dist/utils-DSmUMJiO.js
|
|
356221
356223
|
var import_typescript = __toESM(require_typescript(), 1);
|
|
356222
356224
|
function t2() {
|
|
356223
356225
|
return t2 = Object.assign ? Object.assign.bind() : function(e6) {
|
|
@@ -356479,13 +356481,13 @@ function g3(e6) {
|
|
|
356479
356481
|
if (typeof e6 == "string" && e6 !== "")
|
|
356480
356482
|
return e6;
|
|
356481
356483
|
}
|
|
356482
|
-
var
|
|
356484
|
+
var D3 = {
|
|
356483
356485
|
DATE: "date",
|
|
356484
356486
|
TYPE: "type"
|
|
356485
356487
|
};
|
|
356486
|
-
var
|
|
356487
|
-
var
|
|
356488
|
-
var
|
|
356488
|
+
var O3 = (e6) => e6 != null && (e6 in D3);
|
|
356489
|
+
var ge2 = new Set(Object.values(D3));
|
|
356490
|
+
var Ae2 = `
|
|
356489
356491
|
interface Array<T> {
|
|
356490
356492
|
[n: number]: T;
|
|
356491
356493
|
length: number;
|
|
@@ -356506,17 +356508,17 @@ var Te2 = `
|
|
|
356506
356508
|
|
|
356507
356509
|
import ReturnType = Utils.ReturnType;
|
|
356508
356510
|
`;
|
|
356509
|
-
function
|
|
356511
|
+
function je2(t3, n3) {
|
|
356510
356512
|
let r3 = /* @__PURE__ */ new Map;
|
|
356511
|
-
return r3.set(t3, n3), r3.set("lib.codezero.d.ts",
|
|
356513
|
+
return r3.set(t3, n3), r3.set("lib.codezero.d.ts", Ae2), a2(u3(r3), [t3, "lib.codezero.d.ts"], import_typescript.default, Me2);
|
|
356512
356514
|
}
|
|
356513
|
-
var
|
|
356515
|
+
var Me2 = {
|
|
356514
356516
|
target: import_typescript.default.ScriptTarget.Latest,
|
|
356515
356517
|
lib: ["lib.codezero.d.ts"],
|
|
356516
356518
|
noEmit: true,
|
|
356517
356519
|
strictNullChecks: true
|
|
356518
356520
|
};
|
|
356519
|
-
function
|
|
356521
|
+
function Ne2(e6) {
|
|
356520
356522
|
let t3 = [], n3 = 0, r3 = null, i3 = "";
|
|
356521
356523
|
for (let a3 of e6) {
|
|
356522
356524
|
if (r3)
|
|
@@ -356535,15 +356537,15 @@ function De2(e6) {
|
|
|
356535
356537
|
}
|
|
356536
356538
|
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);
|
|
356537
356539
|
}
|
|
356538
|
-
var
|
|
356540
|
+
var J2 = /* @__PURE__ */ new Set([
|
|
356539
356541
|
"number",
|
|
356540
356542
|
"string",
|
|
356541
356543
|
"boolean"
|
|
356542
356544
|
]);
|
|
356543
356545
|
function Y2(e6, t3 = "any", n3 = true) {
|
|
356544
|
-
let r3 = Array.from(new Set(e6?.flatMap((e7) => e7.genericKeys || []).flatMap(
|
|
356546
|
+
let r3 = Array.from(new Set(e6?.flatMap((e7) => e7.genericKeys || []).flatMap(Ne2))).map((e7) => `type ${e7} = ${t3};`).join(`
|
|
356545
356547
|
`), i3 = e6?.map((e7) => {
|
|
356546
|
-
let t4 =
|
|
356548
|
+
let t4 = O3(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 ? J2.has(r4) ? `${e7.type} & {}` : "{}" : e7.type;
|
|
356547
356549
|
return `type ${e7.identifier}${n4} = ${i4};`;
|
|
356548
356550
|
}).join(`
|
|
356549
356551
|
`), a3 = e6?.filter((e7) => (e7.genericKeys?.length ?? 0) > 0).map((e7) => `declare const __widen_${e7.identifier}: ${e7.identifier}<${e7.genericKeys.map(() => "any").join(", ")}>;`).join(`
|
|
@@ -356552,9 +356554,9 @@ function Y2(e6, t3 = "any", n3 = true) {
|
|
|
356552
356554
|
${i3}
|
|
356553
356555
|
${a3}`;
|
|
356554
356556
|
}
|
|
356555
|
-
var
|
|
356556
|
-
var
|
|
356557
|
-
if (!
|
|
356557
|
+
var Pe2 = /^[A-Za-z0-9_$<>\[\]{}(),.:?|&+\-'"\s]+$/;
|
|
356558
|
+
var Fe2 = (e6) => {
|
|
356559
|
+
if (!Pe2.test(e6))
|
|
356558
356560
|
return false;
|
|
356559
356561
|
let t3 = {
|
|
356560
356562
|
"<": ">",
|
|
@@ -356578,11 +356580,11 @@ var Ae2 = (e6) => {
|
|
|
356578
356580
|
};
|
|
356579
356581
|
var X2 = (e6, t3) => {
|
|
356580
356582
|
let n3 = t3?.trim();
|
|
356581
|
-
return !n3 || !
|
|
356583
|
+
return !n3 || !Fe2(n3) ? e6 : `(${e6}) as unknown as ${n3}`;
|
|
356582
356584
|
};
|
|
356583
356585
|
var Z2 = (e6) => e6?.replace(/[^a-zA-Z0-9]/g, "_");
|
|
356584
356586
|
var Q2 = (e6) => e6.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${");
|
|
356585
|
-
var
|
|
356587
|
+
var Ie2 = (e6, t3) => {
|
|
356586
356588
|
let n3 = e6.match(/^\$\{([^}]+)\}$/);
|
|
356587
356589
|
if (n3 && t3.has(n3[1]))
|
|
356588
356590
|
return t3.get(n3[1]);
|
|
@@ -356601,8 +356603,8 @@ var je2 = (e6, t3) => {
|
|
|
356601
356603
|
}
|
|
356602
356604
|
return a3 += Q2(e6.slice(o3)), "`" + a3 + "`";
|
|
356603
356605
|
};
|
|
356604
|
-
var $2 = (e6, t3) => typeof e6 == "string" ?
|
|
356605
|
-
function
|
|
356606
|
+
var $2 = (e6, t3) => typeof e6 == "string" ? Ie2(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";
|
|
356607
|
+
function Le2(e6, t3, n3, r3 = false, i3 = true) {
|
|
356606
356608
|
let a3 = e6?.nodes?.nodes || [], o3 = new Map(t3?.map((e7) => [e7.identifier, e7])), s3 = /* @__PURE__ */ new Set, c3 = (t4) => {
|
|
356607
356609
|
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")}`;
|
|
356608
356610
|
return t4.referencePath?.forEach((e7) => {
|
|
@@ -356715,7 +356717,7 @@ var d4 = (e6, t3) => {
|
|
|
356715
356717
|
${r3}`;
|
|
356716
356718
|
};
|
|
356717
356719
|
var f4 = (e6) => {
|
|
356718
|
-
let t3 =
|
|
356720
|
+
let t3 = je2("index.ts", e6).languageService.getProgram();
|
|
356719
356721
|
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);
|
|
356720
356722
|
};
|
|
356721
356723
|
var p4 = (e6) => {
|
|
@@ -356728,7 +356730,7 @@ var p4 = (e6) => {
|
|
|
356728
356730
|
var m4 = (e6, n3, i4) => {
|
|
356729
356731
|
if (!e6)
|
|
356730
356732
|
return;
|
|
356731
|
-
let a4 = "index.ts", o4 =
|
|
356733
|
+
let a4 = "index.ts", o4 = Le2(e6, n3, i4), s4 = je2(a4, o4), c4 = s4.getSourceFile(a4), l4 = s4.languageService.getProgram().getTypeChecker(), d5 = u4({
|
|
356732
356734
|
...v3(l4, c4),
|
|
356733
356735
|
...y3(l4, c4, e6)
|
|
356734
356736
|
}, i4), f5 = (e6.nodes?.nodes ?? []).map((e7) => e7 && E3(e7, d5));
|
|
@@ -356759,16 +356761,16 @@ var v3 = (e6, t3) => {
|
|
|
356759
356761
|
};
|
|
356760
356762
|
};
|
|
356761
356763
|
var y3 = (e6, t3, n3) => {
|
|
356762
|
-
let r3 =
|
|
356764
|
+
let r3 = A3(t3), i4 = {};
|
|
356763
356765
|
for (let t4 of n3.nodes?.nodes ?? []) {
|
|
356764
356766
|
if (!t4?.id)
|
|
356765
356767
|
continue;
|
|
356766
356768
|
let n4 = t4.parameters?.nodes;
|
|
356767
|
-
if (!n4?.some(
|
|
356769
|
+
if (!n4?.some(D4))
|
|
356768
356770
|
continue;
|
|
356769
|
-
let a4 =
|
|
356771
|
+
let a4 = k3(r3, t4);
|
|
356770
356772
|
a4 && n4.forEach((n5, r4) => {
|
|
356771
|
-
if (!
|
|
356773
|
+
if (!D4(n5))
|
|
356772
356774
|
return;
|
|
356773
356775
|
let o4 = a4.arguments[r4], s4 = o4 ? e6.getTypeAtLocation(o4).getCallSignatures()[0] : undefined;
|
|
356774
356776
|
if (!s4)
|
|
@@ -356791,7 +356793,7 @@ var x3 = (e6, t3, n3) => {
|
|
|
356791
356793
|
return t4;
|
|
356792
356794
|
}
|
|
356793
356795
|
return a4.map((t4) => {
|
|
356794
|
-
let i4 = e6.getTypeOfSymbolAtLocation(t4, t4.valueDeclaration ?? n3), a5 =
|
|
356796
|
+
let i4 = e6.getTypeOfSymbolAtLocation(t4, t4.valueDeclaration ?? n3), a5 = O4(t4) ? "?" : "";
|
|
356795
356797
|
return `${t4.getName()}${a5}: ${r3(i4)}`;
|
|
356796
356798
|
});
|
|
356797
356799
|
};
|
|
@@ -356807,7 +356809,7 @@ var C3 = (e6, t3, n3) => {
|
|
|
356807
356809
|
let r3 = (t4) => e6.typeToString(t4, n3, import_typescript2.default.TypeFormatFlags.NoTruncation);
|
|
356808
356810
|
return {
|
|
356809
356811
|
input: `{ ${t3.parameters.map((t4) => {
|
|
356810
|
-
let i4 = e6.getTypeOfSymbolAtLocation(t4, t4.valueDeclaration ?? n3), a4 =
|
|
356812
|
+
let i4 = e6.getTypeOfSymbolAtLocation(t4, t4.valueDeclaration ?? n3), a4 = O4(t4) ? "?" : "";
|
|
356811
356813
|
return `${t4.getName()}${a4}: ${r3(i4)}`;
|
|
356812
356814
|
}).join("; ")} }`,
|
|
356813
356815
|
output: r3(e6.getReturnTypeOfSignature(t3))
|
|
@@ -356817,10 +356819,10 @@ var w3 = () => ({ type: "object" });
|
|
|
356817
356819
|
var T3 = () => ({});
|
|
356818
356820
|
var E3 = (e6, t3) => {
|
|
356819
356821
|
let n3 = e6.parameters?.nodes;
|
|
356820
|
-
if (!n3?.some(
|
|
356822
|
+
if (!n3?.some(D4))
|
|
356821
356823
|
return e6;
|
|
356822
356824
|
let r3 = n3.map((n4, r4) => {
|
|
356823
|
-
if (!
|
|
356825
|
+
if (!D4(n4))
|
|
356824
356826
|
return n4;
|
|
356825
356827
|
let i4 = {
|
|
356826
356828
|
...n4.value,
|
|
@@ -356840,16 +356842,16 @@ var E3 = (e6, t3) => {
|
|
|
356840
356842
|
}
|
|
356841
356843
|
};
|
|
356842
356844
|
};
|
|
356843
|
-
var
|
|
356844
|
-
var
|
|
356845
|
+
var D4 = (e6) => e6?.value?.__typename === "SubFlowValue";
|
|
356846
|
+
var O4 = (e6) => {
|
|
356845
356847
|
let t3 = e6.valueDeclaration;
|
|
356846
356848
|
return !!t3 && import_typescript2.default.isParameter(t3) && (!!t3.questionToken || !!t3.initializer || !!t3.dotDotDotToken);
|
|
356847
356849
|
};
|
|
356848
|
-
var
|
|
356850
|
+
var k3 = (t3, n3) => {
|
|
356849
356851
|
let r3 = t3.get(`node_${Z2(n3.id)}`)?.initializer;
|
|
356850
356852
|
return r3 && import_typescript2.default.isCallExpression(r3) ? r3 : undefined;
|
|
356851
356853
|
};
|
|
356852
|
-
var
|
|
356854
|
+
var A3 = (e6) => {
|
|
356853
356855
|
let t3 = /* @__PURE__ */ new Map;
|
|
356854
356856
|
return e6.statements.forEach((e7) => {
|
|
356855
356857
|
e7.forEachChild(function e8(n3) {
|