@naisys/erp 3.0.0-beta.21 → 3.0.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client-dist/assets/{index-CZhFlAkg.js → index-DycEn-R_.js} +184 -44
- package/client-dist/assets/{vendor-DdMxejie.js → vendor-MNFI7PUp.js} +1357 -1
- package/client-dist/index.html +2 -2
- package/dist/erpServer.js +21 -45
- package/dist/userService.js +15 -42
- package/npm-shrinkwrap.json +4537 -0
- package/package.json +7 -7
|
@@ -38396,6 +38396,1344 @@ var ZodIssueCode = {
|
|
|
38396
38396
|
var ZodFirstPartyTypeKind;
|
|
38397
38397
|
(function(ZodFirstPartyTypeKind) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
38398
38398
|
//#endregion
|
|
38399
|
+
//#region ../../../node_modules/semver/internal/constants.js
|
|
38400
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38401
|
+
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
38402
|
+
var MAX_LENGTH = 256;
|
|
38403
|
+
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
38404
|
+
module.exports = {
|
|
38405
|
+
MAX_LENGTH,
|
|
38406
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
38407
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
38408
|
+
MAX_SAFE_INTEGER,
|
|
38409
|
+
RELEASE_TYPES: [
|
|
38410
|
+
"major",
|
|
38411
|
+
"premajor",
|
|
38412
|
+
"minor",
|
|
38413
|
+
"preminor",
|
|
38414
|
+
"patch",
|
|
38415
|
+
"prepatch",
|
|
38416
|
+
"prerelease"
|
|
38417
|
+
],
|
|
38418
|
+
SEMVER_SPEC_VERSION,
|
|
38419
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
38420
|
+
FLAG_LOOSE: 2
|
|
38421
|
+
};
|
|
38422
|
+
}));
|
|
38423
|
+
//#endregion
|
|
38424
|
+
//#region ../../../node_modules/semver/internal/debug.js
|
|
38425
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38426
|
+
module.exports = typeof process === "object" && {}.NODE_DEBUG && /\bsemver\b/i.test({}.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
38427
|
+
}));
|
|
38428
|
+
//#endregion
|
|
38429
|
+
//#region ../../../node_modules/semver/internal/re.js
|
|
38430
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38431
|
+
var { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
38432
|
+
var debug = require_debug();
|
|
38433
|
+
exports = module.exports = {};
|
|
38434
|
+
var re = exports.re = [];
|
|
38435
|
+
var safeRe = exports.safeRe = [];
|
|
38436
|
+
var src = exports.src = [];
|
|
38437
|
+
var safeSrc = exports.safeSrc = [];
|
|
38438
|
+
var t = exports.t = {};
|
|
38439
|
+
var R = 0;
|
|
38440
|
+
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
38441
|
+
var safeRegexReplacements = [
|
|
38442
|
+
["\\s", 1],
|
|
38443
|
+
["\\d", MAX_LENGTH],
|
|
38444
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
38445
|
+
];
|
|
38446
|
+
var makeSafeRegex = (value) => {
|
|
38447
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
38448
|
+
return value;
|
|
38449
|
+
};
|
|
38450
|
+
var createToken = (name, value, isGlobal) => {
|
|
38451
|
+
const safe = makeSafeRegex(value);
|
|
38452
|
+
const index = R++;
|
|
38453
|
+
debug(name, index, value);
|
|
38454
|
+
t[name] = index;
|
|
38455
|
+
src[index] = value;
|
|
38456
|
+
safeSrc[index] = safe;
|
|
38457
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
38458
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
38459
|
+
};
|
|
38460
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
38461
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
38462
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
38463
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
38464
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
38465
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
38466
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
38467
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
38468
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
38469
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
38470
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
38471
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
38472
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
38473
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
38474
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
38475
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
38476
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
38477
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
38478
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
38479
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
38480
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
38481
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
38482
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
38483
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
38484
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
38485
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
38486
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
38487
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
38488
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
38489
|
+
exports.tildeTrimReplace = "$1~";
|
|
38490
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
38491
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
38492
|
+
createToken("LONECARET", "(?:\\^)");
|
|
38493
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
38494
|
+
exports.caretTrimReplace = "$1^";
|
|
38495
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
38496
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
38497
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
38498
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
38499
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
38500
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
38501
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
38502
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
38503
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
38504
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
38505
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
38506
|
+
}));
|
|
38507
|
+
//#endregion
|
|
38508
|
+
//#region ../../../node_modules/semver/internal/parse-options.js
|
|
38509
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38510
|
+
var looseOption = Object.freeze({ loose: true });
|
|
38511
|
+
var emptyOpts = Object.freeze({});
|
|
38512
|
+
var parseOptions = (options) => {
|
|
38513
|
+
if (!options) return emptyOpts;
|
|
38514
|
+
if (typeof options !== "object") return looseOption;
|
|
38515
|
+
return options;
|
|
38516
|
+
};
|
|
38517
|
+
module.exports = parseOptions;
|
|
38518
|
+
}));
|
|
38519
|
+
//#endregion
|
|
38520
|
+
//#region ../../../node_modules/semver/internal/identifiers.js
|
|
38521
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38522
|
+
var numeric = /^[0-9]+$/;
|
|
38523
|
+
var compareIdentifiers = (a, b) => {
|
|
38524
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
38525
|
+
const anum = numeric.test(a);
|
|
38526
|
+
const bnum = numeric.test(b);
|
|
38527
|
+
if (anum && bnum) {
|
|
38528
|
+
a = +a;
|
|
38529
|
+
b = +b;
|
|
38530
|
+
}
|
|
38531
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
38532
|
+
};
|
|
38533
|
+
var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
38534
|
+
module.exports = {
|
|
38535
|
+
compareIdentifiers,
|
|
38536
|
+
rcompareIdentifiers
|
|
38537
|
+
};
|
|
38538
|
+
}));
|
|
38539
|
+
//#endregion
|
|
38540
|
+
//#region ../../../node_modules/semver/classes/semver.js
|
|
38541
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38542
|
+
var debug = require_debug();
|
|
38543
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
38544
|
+
var { safeRe: re, t } = require_re();
|
|
38545
|
+
var parseOptions = require_parse_options();
|
|
38546
|
+
var { compareIdentifiers } = require_identifiers();
|
|
38547
|
+
module.exports = class SemVer {
|
|
38548
|
+
constructor(version, options) {
|
|
38549
|
+
options = parseOptions(options);
|
|
38550
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
38551
|
+
else version = version.version;
|
|
38552
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
38553
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
38554
|
+
debug("SemVer", version, options);
|
|
38555
|
+
this.options = options;
|
|
38556
|
+
this.loose = !!options.loose;
|
|
38557
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
38558
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
38559
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
38560
|
+
this.raw = version;
|
|
38561
|
+
this.major = +m[1];
|
|
38562
|
+
this.minor = +m[2];
|
|
38563
|
+
this.patch = +m[3];
|
|
38564
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
38565
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
38566
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
38567
|
+
if (!m[4]) this.prerelease = [];
|
|
38568
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
38569
|
+
if (/^[0-9]+$/.test(id)) {
|
|
38570
|
+
const num = +id;
|
|
38571
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
38572
|
+
}
|
|
38573
|
+
return id;
|
|
38574
|
+
});
|
|
38575
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
38576
|
+
this.format();
|
|
38577
|
+
}
|
|
38578
|
+
format() {
|
|
38579
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
38580
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
38581
|
+
return this.version;
|
|
38582
|
+
}
|
|
38583
|
+
toString() {
|
|
38584
|
+
return this.version;
|
|
38585
|
+
}
|
|
38586
|
+
compare(other) {
|
|
38587
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
38588
|
+
if (!(other instanceof SemVer)) {
|
|
38589
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
38590
|
+
other = new SemVer(other, this.options);
|
|
38591
|
+
}
|
|
38592
|
+
if (other.version === this.version) return 0;
|
|
38593
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
38594
|
+
}
|
|
38595
|
+
compareMain(other) {
|
|
38596
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
38597
|
+
if (this.major < other.major) return -1;
|
|
38598
|
+
if (this.major > other.major) return 1;
|
|
38599
|
+
if (this.minor < other.minor) return -1;
|
|
38600
|
+
if (this.minor > other.minor) return 1;
|
|
38601
|
+
if (this.patch < other.patch) return -1;
|
|
38602
|
+
if (this.patch > other.patch) return 1;
|
|
38603
|
+
return 0;
|
|
38604
|
+
}
|
|
38605
|
+
comparePre(other) {
|
|
38606
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
38607
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
38608
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
38609
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
38610
|
+
let i = 0;
|
|
38611
|
+
do {
|
|
38612
|
+
const a = this.prerelease[i];
|
|
38613
|
+
const b = other.prerelease[i];
|
|
38614
|
+
debug("prerelease compare", i, a, b);
|
|
38615
|
+
if (a === void 0 && b === void 0) return 0;
|
|
38616
|
+
else if (b === void 0) return 1;
|
|
38617
|
+
else if (a === void 0) return -1;
|
|
38618
|
+
else if (a === b) continue;
|
|
38619
|
+
else return compareIdentifiers(a, b);
|
|
38620
|
+
} while (++i);
|
|
38621
|
+
}
|
|
38622
|
+
compareBuild(other) {
|
|
38623
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
38624
|
+
let i = 0;
|
|
38625
|
+
do {
|
|
38626
|
+
const a = this.build[i];
|
|
38627
|
+
const b = other.build[i];
|
|
38628
|
+
debug("build compare", i, a, b);
|
|
38629
|
+
if (a === void 0 && b === void 0) return 0;
|
|
38630
|
+
else if (b === void 0) return 1;
|
|
38631
|
+
else if (a === void 0) return -1;
|
|
38632
|
+
else if (a === b) continue;
|
|
38633
|
+
else return compareIdentifiers(a, b);
|
|
38634
|
+
} while (++i);
|
|
38635
|
+
}
|
|
38636
|
+
inc(release, identifier, identifierBase) {
|
|
38637
|
+
if (release.startsWith("pre")) {
|
|
38638
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
38639
|
+
if (identifier) {
|
|
38640
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
38641
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
38642
|
+
}
|
|
38643
|
+
}
|
|
38644
|
+
switch (release) {
|
|
38645
|
+
case "premajor":
|
|
38646
|
+
this.prerelease.length = 0;
|
|
38647
|
+
this.patch = 0;
|
|
38648
|
+
this.minor = 0;
|
|
38649
|
+
this.major++;
|
|
38650
|
+
this.inc("pre", identifier, identifierBase);
|
|
38651
|
+
break;
|
|
38652
|
+
case "preminor":
|
|
38653
|
+
this.prerelease.length = 0;
|
|
38654
|
+
this.patch = 0;
|
|
38655
|
+
this.minor++;
|
|
38656
|
+
this.inc("pre", identifier, identifierBase);
|
|
38657
|
+
break;
|
|
38658
|
+
case "prepatch":
|
|
38659
|
+
this.prerelease.length = 0;
|
|
38660
|
+
this.inc("patch", identifier, identifierBase);
|
|
38661
|
+
this.inc("pre", identifier, identifierBase);
|
|
38662
|
+
break;
|
|
38663
|
+
case "prerelease":
|
|
38664
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
38665
|
+
this.inc("pre", identifier, identifierBase);
|
|
38666
|
+
break;
|
|
38667
|
+
case "release":
|
|
38668
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
38669
|
+
this.prerelease.length = 0;
|
|
38670
|
+
break;
|
|
38671
|
+
case "major":
|
|
38672
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
38673
|
+
this.minor = 0;
|
|
38674
|
+
this.patch = 0;
|
|
38675
|
+
this.prerelease = [];
|
|
38676
|
+
break;
|
|
38677
|
+
case "minor":
|
|
38678
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
38679
|
+
this.patch = 0;
|
|
38680
|
+
this.prerelease = [];
|
|
38681
|
+
break;
|
|
38682
|
+
case "patch":
|
|
38683
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
38684
|
+
this.prerelease = [];
|
|
38685
|
+
break;
|
|
38686
|
+
case "pre": {
|
|
38687
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
38688
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
38689
|
+
else {
|
|
38690
|
+
let i = this.prerelease.length;
|
|
38691
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
38692
|
+
this.prerelease[i]++;
|
|
38693
|
+
i = -2;
|
|
38694
|
+
}
|
|
38695
|
+
if (i === -1) {
|
|
38696
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
38697
|
+
this.prerelease.push(base);
|
|
38698
|
+
}
|
|
38699
|
+
}
|
|
38700
|
+
if (identifier) {
|
|
38701
|
+
let prerelease = [identifier, base];
|
|
38702
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
38703
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
38704
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
38705
|
+
} else this.prerelease = prerelease;
|
|
38706
|
+
}
|
|
38707
|
+
break;
|
|
38708
|
+
}
|
|
38709
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
38710
|
+
}
|
|
38711
|
+
this.raw = this.format();
|
|
38712
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
38713
|
+
return this;
|
|
38714
|
+
}
|
|
38715
|
+
};
|
|
38716
|
+
}));
|
|
38717
|
+
//#endregion
|
|
38718
|
+
//#region ../../../node_modules/semver/functions/parse.js
|
|
38719
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38720
|
+
var SemVer = require_semver$1();
|
|
38721
|
+
var parse = (version, options, throwErrors = false) => {
|
|
38722
|
+
if (version instanceof SemVer) return version;
|
|
38723
|
+
try {
|
|
38724
|
+
return new SemVer(version, options);
|
|
38725
|
+
} catch (er) {
|
|
38726
|
+
if (!throwErrors) return null;
|
|
38727
|
+
throw er;
|
|
38728
|
+
}
|
|
38729
|
+
};
|
|
38730
|
+
module.exports = parse;
|
|
38731
|
+
}));
|
|
38732
|
+
//#endregion
|
|
38733
|
+
//#region ../../../node_modules/semver/functions/valid.js
|
|
38734
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38735
|
+
var parse = require_parse();
|
|
38736
|
+
var valid = (version, options) => {
|
|
38737
|
+
const v = parse(version, options);
|
|
38738
|
+
return v ? v.version : null;
|
|
38739
|
+
};
|
|
38740
|
+
module.exports = valid;
|
|
38741
|
+
}));
|
|
38742
|
+
//#endregion
|
|
38743
|
+
//#region ../../../node_modules/semver/functions/clean.js
|
|
38744
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38745
|
+
var parse = require_parse();
|
|
38746
|
+
var clean = (version, options) => {
|
|
38747
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
38748
|
+
return s ? s.version : null;
|
|
38749
|
+
};
|
|
38750
|
+
module.exports = clean;
|
|
38751
|
+
}));
|
|
38752
|
+
//#endregion
|
|
38753
|
+
//#region ../../../node_modules/semver/functions/inc.js
|
|
38754
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38755
|
+
var SemVer = require_semver$1();
|
|
38756
|
+
var inc = (version, release, options, identifier, identifierBase) => {
|
|
38757
|
+
if (typeof options === "string") {
|
|
38758
|
+
identifierBase = identifier;
|
|
38759
|
+
identifier = options;
|
|
38760
|
+
options = void 0;
|
|
38761
|
+
}
|
|
38762
|
+
try {
|
|
38763
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
38764
|
+
} catch (er) {
|
|
38765
|
+
return null;
|
|
38766
|
+
}
|
|
38767
|
+
};
|
|
38768
|
+
module.exports = inc;
|
|
38769
|
+
}));
|
|
38770
|
+
//#endregion
|
|
38771
|
+
//#region ../../../node_modules/semver/functions/diff.js
|
|
38772
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38773
|
+
var parse = require_parse();
|
|
38774
|
+
var diff = (version1, version2) => {
|
|
38775
|
+
const v1 = parse(version1, null, true);
|
|
38776
|
+
const v2 = parse(version2, null, true);
|
|
38777
|
+
const comparison = v1.compare(v2);
|
|
38778
|
+
if (comparison === 0) return null;
|
|
38779
|
+
const v1Higher = comparison > 0;
|
|
38780
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
38781
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
38782
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
38783
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
38784
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
38785
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
38786
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
38787
|
+
return "patch";
|
|
38788
|
+
}
|
|
38789
|
+
}
|
|
38790
|
+
const prefix = highHasPre ? "pre" : "";
|
|
38791
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
38792
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
38793
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
38794
|
+
return "prerelease";
|
|
38795
|
+
};
|
|
38796
|
+
module.exports = diff;
|
|
38797
|
+
}));
|
|
38798
|
+
//#endregion
|
|
38799
|
+
//#region ../../../node_modules/semver/functions/major.js
|
|
38800
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38801
|
+
var SemVer = require_semver$1();
|
|
38802
|
+
var major = (a, loose) => new SemVer(a, loose).major;
|
|
38803
|
+
module.exports = major;
|
|
38804
|
+
}));
|
|
38805
|
+
//#endregion
|
|
38806
|
+
//#region ../../../node_modules/semver/functions/minor.js
|
|
38807
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38808
|
+
var SemVer = require_semver$1();
|
|
38809
|
+
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
38810
|
+
module.exports = minor;
|
|
38811
|
+
}));
|
|
38812
|
+
//#endregion
|
|
38813
|
+
//#region ../../../node_modules/semver/functions/patch.js
|
|
38814
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38815
|
+
var SemVer = require_semver$1();
|
|
38816
|
+
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
38817
|
+
module.exports = patch;
|
|
38818
|
+
}));
|
|
38819
|
+
//#endregion
|
|
38820
|
+
//#region ../../../node_modules/semver/functions/prerelease.js
|
|
38821
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38822
|
+
var parse = require_parse();
|
|
38823
|
+
var prerelease = (version, options) => {
|
|
38824
|
+
const parsed = parse(version, options);
|
|
38825
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
38826
|
+
};
|
|
38827
|
+
module.exports = prerelease;
|
|
38828
|
+
}));
|
|
38829
|
+
//#endregion
|
|
38830
|
+
//#region ../../../node_modules/semver/functions/compare.js
|
|
38831
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38832
|
+
var SemVer = require_semver$1();
|
|
38833
|
+
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
38834
|
+
module.exports = compare;
|
|
38835
|
+
}));
|
|
38836
|
+
//#endregion
|
|
38837
|
+
//#region ../../../node_modules/semver/functions/rcompare.js
|
|
38838
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38839
|
+
var compare = require_compare();
|
|
38840
|
+
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
38841
|
+
module.exports = rcompare;
|
|
38842
|
+
}));
|
|
38843
|
+
//#endregion
|
|
38844
|
+
//#region ../../../node_modules/semver/functions/compare-loose.js
|
|
38845
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38846
|
+
var compare = require_compare();
|
|
38847
|
+
var compareLoose = (a, b) => compare(a, b, true);
|
|
38848
|
+
module.exports = compareLoose;
|
|
38849
|
+
}));
|
|
38850
|
+
//#endregion
|
|
38851
|
+
//#region ../../../node_modules/semver/functions/compare-build.js
|
|
38852
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38853
|
+
var SemVer = require_semver$1();
|
|
38854
|
+
var compareBuild = (a, b, loose) => {
|
|
38855
|
+
const versionA = new SemVer(a, loose);
|
|
38856
|
+
const versionB = new SemVer(b, loose);
|
|
38857
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
38858
|
+
};
|
|
38859
|
+
module.exports = compareBuild;
|
|
38860
|
+
}));
|
|
38861
|
+
//#endregion
|
|
38862
|
+
//#region ../../../node_modules/semver/functions/sort.js
|
|
38863
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38864
|
+
var compareBuild = require_compare_build();
|
|
38865
|
+
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
38866
|
+
module.exports = sort;
|
|
38867
|
+
}));
|
|
38868
|
+
//#endregion
|
|
38869
|
+
//#region ../../../node_modules/semver/functions/rsort.js
|
|
38870
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38871
|
+
var compareBuild = require_compare_build();
|
|
38872
|
+
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
38873
|
+
module.exports = rsort;
|
|
38874
|
+
}));
|
|
38875
|
+
//#endregion
|
|
38876
|
+
//#region ../../../node_modules/semver/functions/gt.js
|
|
38877
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38878
|
+
var compare = require_compare();
|
|
38879
|
+
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
38880
|
+
module.exports = gt;
|
|
38881
|
+
}));
|
|
38882
|
+
//#endregion
|
|
38883
|
+
//#region ../../../node_modules/semver/functions/lt.js
|
|
38884
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38885
|
+
var compare = require_compare();
|
|
38886
|
+
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
38887
|
+
module.exports = lt;
|
|
38888
|
+
}));
|
|
38889
|
+
//#endregion
|
|
38890
|
+
//#region ../../../node_modules/semver/functions/eq.js
|
|
38891
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38892
|
+
var compare = require_compare();
|
|
38893
|
+
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
38894
|
+
module.exports = eq;
|
|
38895
|
+
}));
|
|
38896
|
+
//#endregion
|
|
38897
|
+
//#region ../../../node_modules/semver/functions/neq.js
|
|
38898
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38899
|
+
var compare = require_compare();
|
|
38900
|
+
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
38901
|
+
module.exports = neq;
|
|
38902
|
+
}));
|
|
38903
|
+
//#endregion
|
|
38904
|
+
//#region ../../../node_modules/semver/functions/gte.js
|
|
38905
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38906
|
+
var compare = require_compare();
|
|
38907
|
+
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
38908
|
+
module.exports = gte;
|
|
38909
|
+
}));
|
|
38910
|
+
//#endregion
|
|
38911
|
+
//#region ../../../node_modules/semver/functions/lte.js
|
|
38912
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38913
|
+
var compare = require_compare();
|
|
38914
|
+
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
38915
|
+
module.exports = lte;
|
|
38916
|
+
}));
|
|
38917
|
+
//#endregion
|
|
38918
|
+
//#region ../../../node_modules/semver/functions/cmp.js
|
|
38919
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38920
|
+
var eq = require_eq();
|
|
38921
|
+
var neq = require_neq();
|
|
38922
|
+
var gt = require_gt();
|
|
38923
|
+
var gte = require_gte();
|
|
38924
|
+
var lt = require_lt();
|
|
38925
|
+
var lte = require_lte();
|
|
38926
|
+
var cmp = (a, op, b, loose) => {
|
|
38927
|
+
switch (op) {
|
|
38928
|
+
case "===":
|
|
38929
|
+
if (typeof a === "object") a = a.version;
|
|
38930
|
+
if (typeof b === "object") b = b.version;
|
|
38931
|
+
return a === b;
|
|
38932
|
+
case "!==":
|
|
38933
|
+
if (typeof a === "object") a = a.version;
|
|
38934
|
+
if (typeof b === "object") b = b.version;
|
|
38935
|
+
return a !== b;
|
|
38936
|
+
case "":
|
|
38937
|
+
case "=":
|
|
38938
|
+
case "==": return eq(a, b, loose);
|
|
38939
|
+
case "!=": return neq(a, b, loose);
|
|
38940
|
+
case ">": return gt(a, b, loose);
|
|
38941
|
+
case ">=": return gte(a, b, loose);
|
|
38942
|
+
case "<": return lt(a, b, loose);
|
|
38943
|
+
case "<=": return lte(a, b, loose);
|
|
38944
|
+
default: throw new TypeError(`Invalid operator: ${op}`);
|
|
38945
|
+
}
|
|
38946
|
+
};
|
|
38947
|
+
module.exports = cmp;
|
|
38948
|
+
}));
|
|
38949
|
+
//#endregion
|
|
38950
|
+
//#region ../../../node_modules/semver/functions/coerce.js
|
|
38951
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38952
|
+
var SemVer = require_semver$1();
|
|
38953
|
+
var parse = require_parse();
|
|
38954
|
+
var { safeRe: re, t } = require_re();
|
|
38955
|
+
var coerce = (version, options) => {
|
|
38956
|
+
if (version instanceof SemVer) return version;
|
|
38957
|
+
if (typeof version === "number") version = String(version);
|
|
38958
|
+
if (typeof version !== "string") return null;
|
|
38959
|
+
options = options || {};
|
|
38960
|
+
let match = null;
|
|
38961
|
+
if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
38962
|
+
else {
|
|
38963
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
38964
|
+
let next;
|
|
38965
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
38966
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
38967
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
38968
|
+
}
|
|
38969
|
+
coerceRtlRegex.lastIndex = -1;
|
|
38970
|
+
}
|
|
38971
|
+
if (match === null) return null;
|
|
38972
|
+
const major = match[2];
|
|
38973
|
+
return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
38974
|
+
};
|
|
38975
|
+
module.exports = coerce;
|
|
38976
|
+
}));
|
|
38977
|
+
//#endregion
|
|
38978
|
+
//#region ../../../node_modules/semver/internal/lrucache.js
|
|
38979
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
38980
|
+
var LRUCache = class {
|
|
38981
|
+
constructor() {
|
|
38982
|
+
this.max = 1e3;
|
|
38983
|
+
this.map = /* @__PURE__ */ new Map();
|
|
38984
|
+
}
|
|
38985
|
+
get(key) {
|
|
38986
|
+
const value = this.map.get(key);
|
|
38987
|
+
if (value === void 0) return;
|
|
38988
|
+
else {
|
|
38989
|
+
this.map.delete(key);
|
|
38990
|
+
this.map.set(key, value);
|
|
38991
|
+
return value;
|
|
38992
|
+
}
|
|
38993
|
+
}
|
|
38994
|
+
delete(key) {
|
|
38995
|
+
return this.map.delete(key);
|
|
38996
|
+
}
|
|
38997
|
+
set(key, value) {
|
|
38998
|
+
if (!this.delete(key) && value !== void 0) {
|
|
38999
|
+
if (this.map.size >= this.max) {
|
|
39000
|
+
const firstKey = this.map.keys().next().value;
|
|
39001
|
+
this.delete(firstKey);
|
|
39002
|
+
}
|
|
39003
|
+
this.map.set(key, value);
|
|
39004
|
+
}
|
|
39005
|
+
return this;
|
|
39006
|
+
}
|
|
39007
|
+
};
|
|
39008
|
+
module.exports = LRUCache;
|
|
39009
|
+
}));
|
|
39010
|
+
//#endregion
|
|
39011
|
+
//#region ../../../node_modules/semver/classes/range.js
|
|
39012
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39013
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
39014
|
+
module.exports = class Range {
|
|
39015
|
+
constructor(range, options) {
|
|
39016
|
+
options = parseOptions(options);
|
|
39017
|
+
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
39018
|
+
else return new Range(range.raw, options);
|
|
39019
|
+
if (range instanceof Comparator) {
|
|
39020
|
+
this.raw = range.value;
|
|
39021
|
+
this.set = [[range]];
|
|
39022
|
+
this.formatted = void 0;
|
|
39023
|
+
return this;
|
|
39024
|
+
}
|
|
39025
|
+
this.options = options;
|
|
39026
|
+
this.loose = !!options.loose;
|
|
39027
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
39028
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
39029
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
39030
|
+
if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
39031
|
+
if (this.set.length > 1) {
|
|
39032
|
+
const first = this.set[0];
|
|
39033
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
39034
|
+
if (this.set.length === 0) this.set = [first];
|
|
39035
|
+
else if (this.set.length > 1) {
|
|
39036
|
+
for (const c of this.set) if (c.length === 1 && isAny(c[0])) {
|
|
39037
|
+
this.set = [c];
|
|
39038
|
+
break;
|
|
39039
|
+
}
|
|
39040
|
+
}
|
|
39041
|
+
}
|
|
39042
|
+
this.formatted = void 0;
|
|
39043
|
+
}
|
|
39044
|
+
get range() {
|
|
39045
|
+
if (this.formatted === void 0) {
|
|
39046
|
+
this.formatted = "";
|
|
39047
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
39048
|
+
if (i > 0) this.formatted += "||";
|
|
39049
|
+
const comps = this.set[i];
|
|
39050
|
+
for (let k = 0; k < comps.length; k++) {
|
|
39051
|
+
if (k > 0) this.formatted += " ";
|
|
39052
|
+
this.formatted += comps[k].toString().trim();
|
|
39053
|
+
}
|
|
39054
|
+
}
|
|
39055
|
+
}
|
|
39056
|
+
return this.formatted;
|
|
39057
|
+
}
|
|
39058
|
+
format() {
|
|
39059
|
+
return this.range;
|
|
39060
|
+
}
|
|
39061
|
+
toString() {
|
|
39062
|
+
return this.range;
|
|
39063
|
+
}
|
|
39064
|
+
parseRange(range) {
|
|
39065
|
+
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
39066
|
+
const cached = cache.get(memoKey);
|
|
39067
|
+
if (cached) return cached;
|
|
39068
|
+
const loose = this.options.loose;
|
|
39069
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
39070
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
39071
|
+
debug("hyphen replace", range);
|
|
39072
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
39073
|
+
debug("comparator trim", range);
|
|
39074
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
39075
|
+
debug("tilde trim", range);
|
|
39076
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
39077
|
+
debug("caret trim", range);
|
|
39078
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
39079
|
+
if (loose) rangeList = rangeList.filter((comp) => {
|
|
39080
|
+
debug("loose invalid filter", comp, this.options);
|
|
39081
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
39082
|
+
});
|
|
39083
|
+
debug("range list", rangeList);
|
|
39084
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
39085
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
39086
|
+
for (const comp of comparators) {
|
|
39087
|
+
if (isNullSet(comp)) return [comp];
|
|
39088
|
+
rangeMap.set(comp.value, comp);
|
|
39089
|
+
}
|
|
39090
|
+
if (rangeMap.size > 1 && rangeMap.has("")) rangeMap.delete("");
|
|
39091
|
+
const result = [...rangeMap.values()];
|
|
39092
|
+
cache.set(memoKey, result);
|
|
39093
|
+
return result;
|
|
39094
|
+
}
|
|
39095
|
+
intersects(range, options) {
|
|
39096
|
+
if (!(range instanceof Range)) throw new TypeError("a Range is required");
|
|
39097
|
+
return this.set.some((thisComparators) => {
|
|
39098
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
39099
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
39100
|
+
return rangeComparators.every((rangeComparator) => {
|
|
39101
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
39102
|
+
});
|
|
39103
|
+
});
|
|
39104
|
+
});
|
|
39105
|
+
});
|
|
39106
|
+
}
|
|
39107
|
+
test(version) {
|
|
39108
|
+
if (!version) return false;
|
|
39109
|
+
if (typeof version === "string") try {
|
|
39110
|
+
version = new SemVer(version, this.options);
|
|
39111
|
+
} catch (er) {
|
|
39112
|
+
return false;
|
|
39113
|
+
}
|
|
39114
|
+
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return true;
|
|
39115
|
+
return false;
|
|
39116
|
+
}
|
|
39117
|
+
};
|
|
39118
|
+
var cache = new (require_lrucache())();
|
|
39119
|
+
var parseOptions = require_parse_options();
|
|
39120
|
+
var Comparator = require_comparator();
|
|
39121
|
+
var debug = require_debug();
|
|
39122
|
+
var SemVer = require_semver$1();
|
|
39123
|
+
var { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
39124
|
+
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
39125
|
+
var isNullSet = (c) => c.value === "<0.0.0-0";
|
|
39126
|
+
var isAny = (c) => c.value === "";
|
|
39127
|
+
var isSatisfiable = (comparators, options) => {
|
|
39128
|
+
let result = true;
|
|
39129
|
+
const remainingComparators = comparators.slice();
|
|
39130
|
+
let testComparator = remainingComparators.pop();
|
|
39131
|
+
while (result && remainingComparators.length) {
|
|
39132
|
+
result = remainingComparators.every((otherComparator) => {
|
|
39133
|
+
return testComparator.intersects(otherComparator, options);
|
|
39134
|
+
});
|
|
39135
|
+
testComparator = remainingComparators.pop();
|
|
39136
|
+
}
|
|
39137
|
+
return result;
|
|
39138
|
+
};
|
|
39139
|
+
var parseComparator = (comp, options) => {
|
|
39140
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
39141
|
+
debug("comp", comp, options);
|
|
39142
|
+
comp = replaceCarets(comp, options);
|
|
39143
|
+
debug("caret", comp);
|
|
39144
|
+
comp = replaceTildes(comp, options);
|
|
39145
|
+
debug("tildes", comp);
|
|
39146
|
+
comp = replaceXRanges(comp, options);
|
|
39147
|
+
debug("xrange", comp);
|
|
39148
|
+
comp = replaceStars(comp, options);
|
|
39149
|
+
debug("stars", comp);
|
|
39150
|
+
return comp;
|
|
39151
|
+
};
|
|
39152
|
+
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
39153
|
+
var replaceTildes = (comp, options) => {
|
|
39154
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
39155
|
+
};
|
|
39156
|
+
var replaceTilde = (comp, options) => {
|
|
39157
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
39158
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
39159
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
39160
|
+
let ret;
|
|
39161
|
+
if (isX(M)) ret = "";
|
|
39162
|
+
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
39163
|
+
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
39164
|
+
else if (pr) {
|
|
39165
|
+
debug("replaceTilde pr", pr);
|
|
39166
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
39167
|
+
} else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
39168
|
+
debug("tilde return", ret);
|
|
39169
|
+
return ret;
|
|
39170
|
+
});
|
|
39171
|
+
};
|
|
39172
|
+
var replaceCarets = (comp, options) => {
|
|
39173
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
39174
|
+
};
|
|
39175
|
+
var replaceCaret = (comp, options) => {
|
|
39176
|
+
debug("caret", comp, options);
|
|
39177
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
39178
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
39179
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
39180
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
39181
|
+
let ret;
|
|
39182
|
+
if (isX(M)) ret = "";
|
|
39183
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
39184
|
+
else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
39185
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
39186
|
+
else if (pr) {
|
|
39187
|
+
debug("replaceCaret pr", pr);
|
|
39188
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
39189
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
39190
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
39191
|
+
} else {
|
|
39192
|
+
debug("no pr");
|
|
39193
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
39194
|
+
else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
39195
|
+
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
39196
|
+
}
|
|
39197
|
+
debug("caret return", ret);
|
|
39198
|
+
return ret;
|
|
39199
|
+
});
|
|
39200
|
+
};
|
|
39201
|
+
var replaceXRanges = (comp, options) => {
|
|
39202
|
+
debug("replaceXRanges", comp, options);
|
|
39203
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
39204
|
+
};
|
|
39205
|
+
var replaceXRange = (comp, options) => {
|
|
39206
|
+
comp = comp.trim();
|
|
39207
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
39208
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
39209
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
39210
|
+
const xM = isX(M);
|
|
39211
|
+
const xm = xM || isX(m);
|
|
39212
|
+
const xp = xm || isX(p);
|
|
39213
|
+
const anyX = xp;
|
|
39214
|
+
if (gtlt === "=" && anyX) gtlt = "";
|
|
39215
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
39216
|
+
if (xM) if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
39217
|
+
else ret = "*";
|
|
39218
|
+
else if (gtlt && anyX) {
|
|
39219
|
+
if (xm) m = 0;
|
|
39220
|
+
p = 0;
|
|
39221
|
+
if (gtlt === ">") {
|
|
39222
|
+
gtlt = ">=";
|
|
39223
|
+
if (xm) {
|
|
39224
|
+
M = +M + 1;
|
|
39225
|
+
m = 0;
|
|
39226
|
+
p = 0;
|
|
39227
|
+
} else {
|
|
39228
|
+
m = +m + 1;
|
|
39229
|
+
p = 0;
|
|
39230
|
+
}
|
|
39231
|
+
} else if (gtlt === "<=") {
|
|
39232
|
+
gtlt = "<";
|
|
39233
|
+
if (xm) M = +M + 1;
|
|
39234
|
+
else m = +m + 1;
|
|
39235
|
+
}
|
|
39236
|
+
if (gtlt === "<") pr = "-0";
|
|
39237
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
39238
|
+
} else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
39239
|
+
else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
39240
|
+
debug("xRange return", ret);
|
|
39241
|
+
return ret;
|
|
39242
|
+
});
|
|
39243
|
+
};
|
|
39244
|
+
var replaceStars = (comp, options) => {
|
|
39245
|
+
debug("replaceStars", comp, options);
|
|
39246
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
39247
|
+
};
|
|
39248
|
+
var replaceGTE0 = (comp, options) => {
|
|
39249
|
+
debug("replaceGTE0", comp, options);
|
|
39250
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
39251
|
+
};
|
|
39252
|
+
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
39253
|
+
if (isX(fM)) from = "";
|
|
39254
|
+
else if (isX(fm)) from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
39255
|
+
else if (isX(fp)) from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
39256
|
+
else if (fpr) from = `>=${from}`;
|
|
39257
|
+
else from = `>=${from}${incPr ? "-0" : ""}`;
|
|
39258
|
+
if (isX(tM)) to = "";
|
|
39259
|
+
else if (isX(tm)) to = `<${+tM + 1}.0.0-0`;
|
|
39260
|
+
else if (isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;
|
|
39261
|
+
else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
39262
|
+
else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
39263
|
+
else to = `<=${to}`;
|
|
39264
|
+
return `${from} ${to}`.trim();
|
|
39265
|
+
};
|
|
39266
|
+
var testSet = (set, version, options) => {
|
|
39267
|
+
for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
|
|
39268
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
39269
|
+
for (let i = 0; i < set.length; i++) {
|
|
39270
|
+
debug(set[i].semver);
|
|
39271
|
+
if (set[i].semver === Comparator.ANY) continue;
|
|
39272
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
39273
|
+
const allowed = set[i].semver;
|
|
39274
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
|
|
39275
|
+
}
|
|
39276
|
+
}
|
|
39277
|
+
return false;
|
|
39278
|
+
}
|
|
39279
|
+
return true;
|
|
39280
|
+
};
|
|
39281
|
+
}));
|
|
39282
|
+
//#endregion
|
|
39283
|
+
//#region ../../../node_modules/semver/classes/comparator.js
|
|
39284
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39285
|
+
var ANY = Symbol("SemVer ANY");
|
|
39286
|
+
module.exports = class Comparator {
|
|
39287
|
+
static get ANY() {
|
|
39288
|
+
return ANY;
|
|
39289
|
+
}
|
|
39290
|
+
constructor(comp, options) {
|
|
39291
|
+
options = parseOptions(options);
|
|
39292
|
+
if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
|
|
39293
|
+
else comp = comp.value;
|
|
39294
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
39295
|
+
debug("comparator", comp, options);
|
|
39296
|
+
this.options = options;
|
|
39297
|
+
this.loose = !!options.loose;
|
|
39298
|
+
this.parse(comp);
|
|
39299
|
+
if (this.semver === ANY) this.value = "";
|
|
39300
|
+
else this.value = this.operator + this.semver.version;
|
|
39301
|
+
debug("comp", this);
|
|
39302
|
+
}
|
|
39303
|
+
parse(comp) {
|
|
39304
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
39305
|
+
const m = comp.match(r);
|
|
39306
|
+
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
|
39307
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
39308
|
+
if (this.operator === "=") this.operator = "";
|
|
39309
|
+
if (!m[2]) this.semver = ANY;
|
|
39310
|
+
else this.semver = new SemVer(m[2], this.options.loose);
|
|
39311
|
+
}
|
|
39312
|
+
toString() {
|
|
39313
|
+
return this.value;
|
|
39314
|
+
}
|
|
39315
|
+
test(version) {
|
|
39316
|
+
debug("Comparator.test", version, this.options.loose);
|
|
39317
|
+
if (this.semver === ANY || version === ANY) return true;
|
|
39318
|
+
if (typeof version === "string") try {
|
|
39319
|
+
version = new SemVer(version, this.options);
|
|
39320
|
+
} catch (er) {
|
|
39321
|
+
return false;
|
|
39322
|
+
}
|
|
39323
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
39324
|
+
}
|
|
39325
|
+
intersects(comp, options) {
|
|
39326
|
+
if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
|
|
39327
|
+
if (this.operator === "") {
|
|
39328
|
+
if (this.value === "") return true;
|
|
39329
|
+
return new Range(comp.value, options).test(this.value);
|
|
39330
|
+
} else if (comp.operator === "") {
|
|
39331
|
+
if (comp.value === "") return true;
|
|
39332
|
+
return new Range(this.value, options).test(comp.semver);
|
|
39333
|
+
}
|
|
39334
|
+
options = parseOptions(options);
|
|
39335
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
|
|
39336
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) return false;
|
|
39337
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
|
|
39338
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
|
|
39339
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
|
|
39340
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
|
|
39341
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
|
|
39342
|
+
return false;
|
|
39343
|
+
}
|
|
39344
|
+
};
|
|
39345
|
+
var parseOptions = require_parse_options();
|
|
39346
|
+
var { safeRe: re, t } = require_re();
|
|
39347
|
+
var cmp = require_cmp();
|
|
39348
|
+
var debug = require_debug();
|
|
39349
|
+
var SemVer = require_semver$1();
|
|
39350
|
+
var Range = require_range();
|
|
39351
|
+
}));
|
|
39352
|
+
//#endregion
|
|
39353
|
+
//#region ../../../node_modules/semver/functions/satisfies.js
|
|
39354
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39355
|
+
var Range = require_range();
|
|
39356
|
+
var satisfies = (version, range, options) => {
|
|
39357
|
+
try {
|
|
39358
|
+
range = new Range(range, options);
|
|
39359
|
+
} catch (er) {
|
|
39360
|
+
return false;
|
|
39361
|
+
}
|
|
39362
|
+
return range.test(version);
|
|
39363
|
+
};
|
|
39364
|
+
module.exports = satisfies;
|
|
39365
|
+
}));
|
|
39366
|
+
//#endregion
|
|
39367
|
+
//#region ../../../node_modules/semver/ranges/to-comparators.js
|
|
39368
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39369
|
+
var Range = require_range();
|
|
39370
|
+
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
39371
|
+
module.exports = toComparators;
|
|
39372
|
+
}));
|
|
39373
|
+
//#endregion
|
|
39374
|
+
//#region ../../../node_modules/semver/ranges/max-satisfying.js
|
|
39375
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39376
|
+
var SemVer = require_semver$1();
|
|
39377
|
+
var Range = require_range();
|
|
39378
|
+
var maxSatisfying = (versions, range, options) => {
|
|
39379
|
+
let max = null;
|
|
39380
|
+
let maxSV = null;
|
|
39381
|
+
let rangeObj = null;
|
|
39382
|
+
try {
|
|
39383
|
+
rangeObj = new Range(range, options);
|
|
39384
|
+
} catch (er) {
|
|
39385
|
+
return null;
|
|
39386
|
+
}
|
|
39387
|
+
versions.forEach((v) => {
|
|
39388
|
+
if (rangeObj.test(v)) {
|
|
39389
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
39390
|
+
max = v;
|
|
39391
|
+
maxSV = new SemVer(max, options);
|
|
39392
|
+
}
|
|
39393
|
+
}
|
|
39394
|
+
});
|
|
39395
|
+
return max;
|
|
39396
|
+
};
|
|
39397
|
+
module.exports = maxSatisfying;
|
|
39398
|
+
}));
|
|
39399
|
+
//#endregion
|
|
39400
|
+
//#region ../../../node_modules/semver/ranges/min-satisfying.js
|
|
39401
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39402
|
+
var SemVer = require_semver$1();
|
|
39403
|
+
var Range = require_range();
|
|
39404
|
+
var minSatisfying = (versions, range, options) => {
|
|
39405
|
+
let min = null;
|
|
39406
|
+
let minSV = null;
|
|
39407
|
+
let rangeObj = null;
|
|
39408
|
+
try {
|
|
39409
|
+
rangeObj = new Range(range, options);
|
|
39410
|
+
} catch (er) {
|
|
39411
|
+
return null;
|
|
39412
|
+
}
|
|
39413
|
+
versions.forEach((v) => {
|
|
39414
|
+
if (rangeObj.test(v)) {
|
|
39415
|
+
if (!min || minSV.compare(v) === 1) {
|
|
39416
|
+
min = v;
|
|
39417
|
+
minSV = new SemVer(min, options);
|
|
39418
|
+
}
|
|
39419
|
+
}
|
|
39420
|
+
});
|
|
39421
|
+
return min;
|
|
39422
|
+
};
|
|
39423
|
+
module.exports = minSatisfying;
|
|
39424
|
+
}));
|
|
39425
|
+
//#endregion
|
|
39426
|
+
//#region ../../../node_modules/semver/ranges/min-version.js
|
|
39427
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39428
|
+
var SemVer = require_semver$1();
|
|
39429
|
+
var Range = require_range();
|
|
39430
|
+
var gt = require_gt();
|
|
39431
|
+
var minVersion = (range, loose) => {
|
|
39432
|
+
range = new Range(range, loose);
|
|
39433
|
+
let minver = new SemVer("0.0.0");
|
|
39434
|
+
if (range.test(minver)) return minver;
|
|
39435
|
+
minver = new SemVer("0.0.0-0");
|
|
39436
|
+
if (range.test(minver)) return minver;
|
|
39437
|
+
minver = null;
|
|
39438
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
39439
|
+
const comparators = range.set[i];
|
|
39440
|
+
let setMin = null;
|
|
39441
|
+
comparators.forEach((comparator) => {
|
|
39442
|
+
const compver = new SemVer(comparator.semver.version);
|
|
39443
|
+
switch (comparator.operator) {
|
|
39444
|
+
case ">":
|
|
39445
|
+
if (compver.prerelease.length === 0) compver.patch++;
|
|
39446
|
+
else compver.prerelease.push(0);
|
|
39447
|
+
compver.raw = compver.format();
|
|
39448
|
+
case "":
|
|
39449
|
+
case ">=":
|
|
39450
|
+
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
39451
|
+
break;
|
|
39452
|
+
case "<":
|
|
39453
|
+
case "<=": break;
|
|
39454
|
+
/* istanbul ignore next */
|
|
39455
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
39456
|
+
}
|
|
39457
|
+
});
|
|
39458
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
39459
|
+
}
|
|
39460
|
+
if (minver && range.test(minver)) return minver;
|
|
39461
|
+
return null;
|
|
39462
|
+
};
|
|
39463
|
+
module.exports = minVersion;
|
|
39464
|
+
}));
|
|
39465
|
+
//#endregion
|
|
39466
|
+
//#region ../../../node_modules/semver/ranges/valid.js
|
|
39467
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39468
|
+
var Range = require_range();
|
|
39469
|
+
var validRange = (range, options) => {
|
|
39470
|
+
try {
|
|
39471
|
+
return new Range(range, options).range || "*";
|
|
39472
|
+
} catch (er) {
|
|
39473
|
+
return null;
|
|
39474
|
+
}
|
|
39475
|
+
};
|
|
39476
|
+
module.exports = validRange;
|
|
39477
|
+
}));
|
|
39478
|
+
//#endregion
|
|
39479
|
+
//#region ../../../node_modules/semver/ranges/outside.js
|
|
39480
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39481
|
+
var SemVer = require_semver$1();
|
|
39482
|
+
var Comparator = require_comparator();
|
|
39483
|
+
var { ANY } = Comparator;
|
|
39484
|
+
var Range = require_range();
|
|
39485
|
+
var satisfies = require_satisfies();
|
|
39486
|
+
var gt = require_gt();
|
|
39487
|
+
var lt = require_lt();
|
|
39488
|
+
var lte = require_lte();
|
|
39489
|
+
var gte = require_gte();
|
|
39490
|
+
var outside = (version, range, hilo, options) => {
|
|
39491
|
+
version = new SemVer(version, options);
|
|
39492
|
+
range = new Range(range, options);
|
|
39493
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
39494
|
+
switch (hilo) {
|
|
39495
|
+
case ">":
|
|
39496
|
+
gtfn = gt;
|
|
39497
|
+
ltefn = lte;
|
|
39498
|
+
ltfn = lt;
|
|
39499
|
+
comp = ">";
|
|
39500
|
+
ecomp = ">=";
|
|
39501
|
+
break;
|
|
39502
|
+
case "<":
|
|
39503
|
+
gtfn = lt;
|
|
39504
|
+
ltefn = gte;
|
|
39505
|
+
ltfn = gt;
|
|
39506
|
+
comp = "<";
|
|
39507
|
+
ecomp = "<=";
|
|
39508
|
+
break;
|
|
39509
|
+
default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
39510
|
+
}
|
|
39511
|
+
if (satisfies(version, range, options)) return false;
|
|
39512
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
39513
|
+
const comparators = range.set[i];
|
|
39514
|
+
let high = null;
|
|
39515
|
+
let low = null;
|
|
39516
|
+
comparators.forEach((comparator) => {
|
|
39517
|
+
if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
|
|
39518
|
+
high = high || comparator;
|
|
39519
|
+
low = low || comparator;
|
|
39520
|
+
if (gtfn(comparator.semver, high.semver, options)) high = comparator;
|
|
39521
|
+
else if (ltfn(comparator.semver, low.semver, options)) low = comparator;
|
|
39522
|
+
});
|
|
39523
|
+
if (high.operator === comp || high.operator === ecomp) return false;
|
|
39524
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;
|
|
39525
|
+
else if (low.operator === ecomp && ltfn(version, low.semver)) return false;
|
|
39526
|
+
}
|
|
39527
|
+
return true;
|
|
39528
|
+
};
|
|
39529
|
+
module.exports = outside;
|
|
39530
|
+
}));
|
|
39531
|
+
//#endregion
|
|
39532
|
+
//#region ../../../node_modules/semver/ranges/gtr.js
|
|
39533
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39534
|
+
var outside = require_outside();
|
|
39535
|
+
var gtr = (version, range, options) => outside(version, range, ">", options);
|
|
39536
|
+
module.exports = gtr;
|
|
39537
|
+
}));
|
|
39538
|
+
//#endregion
|
|
39539
|
+
//#region ../../../node_modules/semver/ranges/ltr.js
|
|
39540
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39541
|
+
var outside = require_outside();
|
|
39542
|
+
var ltr = (version, range, options) => outside(version, range, "<", options);
|
|
39543
|
+
module.exports = ltr;
|
|
39544
|
+
}));
|
|
39545
|
+
//#endregion
|
|
39546
|
+
//#region ../../../node_modules/semver/ranges/intersects.js
|
|
39547
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39548
|
+
var Range = require_range();
|
|
39549
|
+
var intersects = (r1, r2, options) => {
|
|
39550
|
+
r1 = new Range(r1, options);
|
|
39551
|
+
r2 = new Range(r2, options);
|
|
39552
|
+
return r1.intersects(r2, options);
|
|
39553
|
+
};
|
|
39554
|
+
module.exports = intersects;
|
|
39555
|
+
}));
|
|
39556
|
+
//#endregion
|
|
39557
|
+
//#region ../../../node_modules/semver/ranges/simplify.js
|
|
39558
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39559
|
+
var satisfies = require_satisfies();
|
|
39560
|
+
var compare = require_compare();
|
|
39561
|
+
module.exports = (versions, range, options) => {
|
|
39562
|
+
const set = [];
|
|
39563
|
+
let first = null;
|
|
39564
|
+
let prev = null;
|
|
39565
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
39566
|
+
for (const version of v) if (satisfies(version, range, options)) {
|
|
39567
|
+
prev = version;
|
|
39568
|
+
if (!first) first = version;
|
|
39569
|
+
} else {
|
|
39570
|
+
if (prev) set.push([first, prev]);
|
|
39571
|
+
prev = null;
|
|
39572
|
+
first = null;
|
|
39573
|
+
}
|
|
39574
|
+
if (first) set.push([first, null]);
|
|
39575
|
+
const ranges = [];
|
|
39576
|
+
for (const [min, max] of set) if (min === max) ranges.push(min);
|
|
39577
|
+
else if (!max && min === v[0]) ranges.push("*");
|
|
39578
|
+
else if (!max) ranges.push(`>=${min}`);
|
|
39579
|
+
else if (min === v[0]) ranges.push(`<=${max}`);
|
|
39580
|
+
else ranges.push(`${min} - ${max}`);
|
|
39581
|
+
const simplified = ranges.join(" || ");
|
|
39582
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
39583
|
+
return simplified.length < original.length ? simplified : range;
|
|
39584
|
+
};
|
|
39585
|
+
}));
|
|
39586
|
+
//#endregion
|
|
39587
|
+
//#region ../../../node_modules/semver/ranges/subset.js
|
|
39588
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39589
|
+
var Range = require_range();
|
|
39590
|
+
var Comparator = require_comparator();
|
|
39591
|
+
var { ANY } = Comparator;
|
|
39592
|
+
var satisfies = require_satisfies();
|
|
39593
|
+
var compare = require_compare();
|
|
39594
|
+
var subset = (sub, dom, options = {}) => {
|
|
39595
|
+
if (sub === dom) return true;
|
|
39596
|
+
sub = new Range(sub, options);
|
|
39597
|
+
dom = new Range(dom, options);
|
|
39598
|
+
let sawNonNull = false;
|
|
39599
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
39600
|
+
for (const simpleDom of dom.set) {
|
|
39601
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
39602
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
39603
|
+
if (isSub) continue OUTER;
|
|
39604
|
+
}
|
|
39605
|
+
if (sawNonNull) return false;
|
|
39606
|
+
}
|
|
39607
|
+
return true;
|
|
39608
|
+
};
|
|
39609
|
+
var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
39610
|
+
var minimumVersion = [new Comparator(">=0.0.0")];
|
|
39611
|
+
var simpleSubset = (sub, dom, options) => {
|
|
39612
|
+
if (sub === dom) return true;
|
|
39613
|
+
if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
|
|
39614
|
+
else if (options.includePrerelease) sub = minimumVersionWithPreRelease;
|
|
39615
|
+
else sub = minimumVersion;
|
|
39616
|
+
if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
|
|
39617
|
+
else dom = minimumVersion;
|
|
39618
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
39619
|
+
let gt, lt;
|
|
39620
|
+
for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
|
|
39621
|
+
else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
|
|
39622
|
+
else eqSet.add(c.semver);
|
|
39623
|
+
if (eqSet.size > 1) return null;
|
|
39624
|
+
let gtltComp;
|
|
39625
|
+
if (gt && lt) {
|
|
39626
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
39627
|
+
if (gtltComp > 0) return null;
|
|
39628
|
+
else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
|
39629
|
+
}
|
|
39630
|
+
for (const eq of eqSet) {
|
|
39631
|
+
if (gt && !satisfies(eq, String(gt), options)) return null;
|
|
39632
|
+
if (lt && !satisfies(eq, String(lt), options)) return null;
|
|
39633
|
+
for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
|
|
39634
|
+
return true;
|
|
39635
|
+
}
|
|
39636
|
+
let higher, lower;
|
|
39637
|
+
let hasDomLT, hasDomGT;
|
|
39638
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
39639
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
39640
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
|
|
39641
|
+
for (const c of dom) {
|
|
39642
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
39643
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
39644
|
+
if (gt) {
|
|
39645
|
+
if (needDomGTPre) {
|
|
39646
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
|
|
39647
|
+
}
|
|
39648
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
39649
|
+
higher = higherGT(gt, c, options);
|
|
39650
|
+
if (higher === c && higher !== gt) return false;
|
|
39651
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
|
39652
|
+
}
|
|
39653
|
+
if (lt) {
|
|
39654
|
+
if (needDomLTPre) {
|
|
39655
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
|
|
39656
|
+
}
|
|
39657
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
39658
|
+
lower = lowerLT(lt, c, options);
|
|
39659
|
+
if (lower === c && lower !== lt) return false;
|
|
39660
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
|
39661
|
+
}
|
|
39662
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
39663
|
+
}
|
|
39664
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
|
|
39665
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
|
|
39666
|
+
if (needDomGTPre || needDomLTPre) return false;
|
|
39667
|
+
return true;
|
|
39668
|
+
};
|
|
39669
|
+
var higherGT = (a, b, options) => {
|
|
39670
|
+
if (!a) return b;
|
|
39671
|
+
const comp = compare(a.semver, b.semver, options);
|
|
39672
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
39673
|
+
};
|
|
39674
|
+
var lowerLT = (a, b, options) => {
|
|
39675
|
+
if (!a) return b;
|
|
39676
|
+
const comp = compare(a.semver, b.semver, options);
|
|
39677
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
39678
|
+
};
|
|
39679
|
+
module.exports = subset;
|
|
39680
|
+
}));
|
|
39681
|
+
//#endregion
|
|
39682
|
+
//#region ../../../node_modules/semver/index.js
|
|
39683
|
+
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
39684
|
+
var internalRe = require_re();
|
|
39685
|
+
var constants = require_constants();
|
|
39686
|
+
var SemVer = require_semver$1();
|
|
39687
|
+
var identifiers = require_identifiers();
|
|
39688
|
+
module.exports = {
|
|
39689
|
+
parse: require_parse(),
|
|
39690
|
+
valid: require_valid$1(),
|
|
39691
|
+
clean: require_clean(),
|
|
39692
|
+
inc: require_inc(),
|
|
39693
|
+
diff: require_diff(),
|
|
39694
|
+
major: require_major(),
|
|
39695
|
+
minor: require_minor(),
|
|
39696
|
+
patch: require_patch(),
|
|
39697
|
+
prerelease: require_prerelease(),
|
|
39698
|
+
compare: require_compare(),
|
|
39699
|
+
rcompare: require_rcompare(),
|
|
39700
|
+
compareLoose: require_compare_loose(),
|
|
39701
|
+
compareBuild: require_compare_build(),
|
|
39702
|
+
sort: require_sort(),
|
|
39703
|
+
rsort: require_rsort(),
|
|
39704
|
+
gt: require_gt(),
|
|
39705
|
+
lt: require_lt(),
|
|
39706
|
+
eq: require_eq(),
|
|
39707
|
+
neq: require_neq(),
|
|
39708
|
+
gte: require_gte(),
|
|
39709
|
+
lte: require_lte(),
|
|
39710
|
+
cmp: require_cmp(),
|
|
39711
|
+
coerce: require_coerce(),
|
|
39712
|
+
Comparator: require_comparator(),
|
|
39713
|
+
Range: require_range(),
|
|
39714
|
+
satisfies: require_satisfies(),
|
|
39715
|
+
toComparators: require_to_comparators(),
|
|
39716
|
+
maxSatisfying: require_max_satisfying(),
|
|
39717
|
+
minSatisfying: require_min_satisfying(),
|
|
39718
|
+
minVersion: require_min_version(),
|
|
39719
|
+
validRange: require_valid(),
|
|
39720
|
+
outside: require_outside(),
|
|
39721
|
+
gtr: require_gtr(),
|
|
39722
|
+
ltr: require_ltr(),
|
|
39723
|
+
intersects: require_intersects(),
|
|
39724
|
+
simplifyRange: require_simplify(),
|
|
39725
|
+
subset: require_subset(),
|
|
39726
|
+
SemVer,
|
|
39727
|
+
re: internalRe.re,
|
|
39728
|
+
src: internalRe.src,
|
|
39729
|
+
tokens: internalRe.t,
|
|
39730
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
39731
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
39732
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
39733
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
39734
|
+
};
|
|
39735
|
+
}));
|
|
39736
|
+
//#endregion
|
|
38399
39737
|
//#region ../node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs
|
|
38400
39738
|
/**
|
|
38401
39739
|
* @license @tabler/icons-react v3.40.0 - MIT
|
|
@@ -39588,6 +40926,24 @@ var IconEye = createReactComponent("outline", "eye", "Eye", [["path", {
|
|
|
39588
40926
|
"d": "M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",
|
|
39589
40927
|
"key": "svg-1"
|
|
39590
40928
|
}]]);
|
|
40929
|
+
var IconPhoto = createReactComponent("outline", "photo", "Photo", [
|
|
40930
|
+
["path", {
|
|
40931
|
+
"d": "M15 8h.01",
|
|
40932
|
+
"key": "svg-0"
|
|
40933
|
+
}],
|
|
40934
|
+
["path", {
|
|
40935
|
+
"d": "M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12",
|
|
40936
|
+
"key": "svg-1"
|
|
40937
|
+
}],
|
|
40938
|
+
["path", {
|
|
40939
|
+
"d": "M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5",
|
|
40940
|
+
"key": "svg-2"
|
|
40941
|
+
}],
|
|
40942
|
+
["path", {
|
|
40943
|
+
"d": "M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3",
|
|
40944
|
+
"key": "svg-3"
|
|
40945
|
+
}]
|
|
40946
|
+
]);
|
|
39591
40947
|
var IconRefresh = createReactComponent("outline", "refresh", "Refresh", [["path", {
|
|
39592
40948
|
"d": "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",
|
|
39593
40949
|
"key": "svg-0"
|
|
@@ -64782,4 +66138,4 @@ function number(params) {
|
|
|
64782
66138
|
return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
|
|
64783
66139
|
}
|
|
64784
66140
|
//#endregion
|
|
64785
|
-
export {
|
|
66141
|
+
export { unknown$1 as $, ScrollArea as $t, IconLogout as A, Textarea as At, IconApi as B, Badge as Bt, useForm as C, SegmentedControl as Ct, IconTrash as D, NumberInput as Dt, IconUpload as E, Pagination as Et, IconFile as F, Container as Ft, _enum$1 as G, Text as Gt, IconAlertCircle as H, Checkbox as Ht, IconEye$1 as I, Code as It, number$4 as J, Group as Jt, array$1 as K, Alert as Kt, IconChevronDown as L, Center as Lt, IconLayoutSidebarLeftExpand as M, FileButton as Mt, IconLayoutSidebarLeftCollapse as N, Drawer as Nt, IconPlus as O, Modal as Ot, IconInfoCircle as P, Divider as Pt, union$1 as Q, UnstyledButton as Qt, IconCheck as R, Card as Rt, IconCopy as S, Select as St, IconUser as T, PasswordInput as Tt, require_semver as U, AppShell as Ut, IconAlertTriangle as V, Autocomplete as Vt, ZodIssueCode as W, Anchor as Wt, record as X, Loader as Xt, object$1 as Y, ActionIcon as Yt, string$5 as Z, Popover as Zt, IconRefresh as _, TextInput as _t, _undefined as a, require_client as an, Routes as at, IconEyeOff as b, Switch as bt, boolean as c, useOutletContext as ct, object as d, Notifications as dt, Box as en, BrowserRouter as et, string$1 as f, notifications as ft, Markdown as g, Title as gt, remarkGfm as h, DatesProvider as ht, _null as i, require_jsx_runtime as in, Route as it, IconListDetails as j, Image as jt, IconNote as k, Menu as kt, literal as l, useParams as lt, datetime as m, DateInput as mt, string as n, useDisclosure as nn, Navigate as nt, any as o, require_react as on, useLocation as ot, union as p, DateTimePicker as pt, boolean$3 as q, Accordion as qt, _enum as r, useDebouncedValue as rn, Outlet as rt, array as s, useNavigate as st, number as t, MantineProvider as tn, Link as tt, number$1 as u, useSearchParams as ut, IconPhoto as v, Tabs as vt, IconX as w, Tooltip as wt, IconDownload as x, Stack as xt, IconEye as y, Table as yt, IconArrowBackUp as z, Button as zt };
|