@terai/dev 0.0.0-dev-20251119161854 → 0.0.0-dev-20251119201326

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -975,11 +975,11 @@ var require_signal_exit = __commonJS({
975
975
  "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
976
976
  "use strict";
977
977
  init_esm_shims();
978
- var process11 = global.process;
979
- var processOk = function(process12) {
980
- return process12 && typeof process12 === "object" && typeof process12.removeListener === "function" && typeof process12.emit === "function" && typeof process12.reallyExit === "function" && typeof process12.listeners === "function" && typeof process12.kill === "function" && typeof process12.pid === "number" && typeof process12.on === "function";
978
+ var process10 = global.process;
979
+ var processOk = function(process11) {
980
+ return process11 && typeof process11 === "object" && typeof process11.removeListener === "function" && typeof process11.emit === "function" && typeof process11.reallyExit === "function" && typeof process11.listeners === "function" && typeof process11.kill === "function" && typeof process11.pid === "number" && typeof process11.on === "function";
981
981
  };
982
- if (!processOk(process11)) {
982
+ if (!processOk(process10)) {
983
983
  module2.exports = function() {
984
984
  return function() {
985
985
  };
@@ -987,15 +987,15 @@ var require_signal_exit = __commonJS({
987
987
  } else {
988
988
  assert2 = __require("assert");
989
989
  signals = require_signals();
990
- isWin = /^win/i.test(process11.platform);
990
+ isWin = /^win/i.test(process10.platform);
991
991
  EE = __require("events");
992
992
  if (typeof EE !== "function") {
993
993
  EE = EE.EventEmitter;
994
994
  }
995
- if (process11.__signal_exit_emitter__) {
996
- emitter = process11.__signal_exit_emitter__;
995
+ if (process10.__signal_exit_emitter__) {
996
+ emitter = process10.__signal_exit_emitter__;
997
997
  } else {
998
- emitter = process11.__signal_exit_emitter__ = new EE();
998
+ emitter = process10.__signal_exit_emitter__ = new EE();
999
999
  emitter.count = 0;
1000
1000
  emitter.emitted = {};
1001
1001
  }
@@ -1032,12 +1032,12 @@ var require_signal_exit = __commonJS({
1032
1032
  loaded = false;
1033
1033
  signals.forEach(function(sig) {
1034
1034
  try {
1035
- process11.removeListener(sig, sigListeners[sig]);
1035
+ process10.removeListener(sig, sigListeners[sig]);
1036
1036
  } catch (er) {
1037
1037
  }
1038
1038
  });
1039
- process11.emit = originalProcessEmit;
1040
- process11.reallyExit = originalProcessReallyExit;
1039
+ process10.emit = originalProcessEmit;
1040
+ process10.reallyExit = originalProcessReallyExit;
1041
1041
  emitter.count -= 1;
1042
1042
  };
1043
1043
  module2.exports.unload = unload;
@@ -1054,7 +1054,7 @@ var require_signal_exit = __commonJS({
1054
1054
  if (!processOk(global.process)) {
1055
1055
  return;
1056
1056
  }
1057
- var listeners = process11.listeners(sig);
1057
+ var listeners = process10.listeners(sig);
1058
1058
  if (listeners.length === emitter.count) {
1059
1059
  unload();
1060
1060
  emit("exit", null, sig);
@@ -1062,7 +1062,7 @@ var require_signal_exit = __commonJS({
1062
1062
  if (isWin && sig === "SIGHUP") {
1063
1063
  sig = "SIGINT";
1064
1064
  }
1065
- process11.kill(process11.pid, sig);
1065
+ process10.kill(process10.pid, sig);
1066
1066
  }
1067
1067
  };
1068
1068
  });
@@ -1078,36 +1078,36 @@ var require_signal_exit = __commonJS({
1078
1078
  emitter.count += 1;
1079
1079
  signals = signals.filter(function(sig) {
1080
1080
  try {
1081
- process11.on(sig, sigListeners[sig]);
1081
+ process10.on(sig, sigListeners[sig]);
1082
1082
  return true;
1083
1083
  } catch (er) {
1084
1084
  return false;
1085
1085
  }
1086
1086
  });
1087
- process11.emit = processEmit;
1088
- process11.reallyExit = processReallyExit;
1087
+ process10.emit = processEmit;
1088
+ process10.reallyExit = processReallyExit;
1089
1089
  };
1090
1090
  module2.exports.load = load;
1091
- originalProcessReallyExit = process11.reallyExit;
1091
+ originalProcessReallyExit = process10.reallyExit;
1092
1092
  processReallyExit = function processReallyExit2(code) {
1093
1093
  if (!processOk(global.process)) {
1094
1094
  return;
1095
1095
  }
1096
- process11.exitCode = code || /* istanbul ignore next */
1096
+ process10.exitCode = code || /* istanbul ignore next */
1097
1097
  0;
1098
- emit("exit", process11.exitCode, null);
1099
- emit("afterexit", process11.exitCode, null);
1100
- originalProcessReallyExit.call(process11, process11.exitCode);
1098
+ emit("exit", process10.exitCode, null);
1099
+ emit("afterexit", process10.exitCode, null);
1100
+ originalProcessReallyExit.call(process10, process10.exitCode);
1101
1101
  };
1102
- originalProcessEmit = process11.emit;
1102
+ originalProcessEmit = process10.emit;
1103
1103
  processEmit = function processEmit2(ev, arg) {
1104
1104
  if (ev === "exit" && processOk(global.process)) {
1105
1105
  if (arg !== void 0) {
1106
- process11.exitCode = arg;
1106
+ process10.exitCode = arg;
1107
1107
  }
1108
1108
  var ret = originalProcessEmit.apply(this, arguments);
1109
- emit("exit", process11.exitCode, null);
1110
- emit("afterexit", process11.exitCode, null);
1109
+ emit("exit", process10.exitCode, null);
1110
+ emit("afterexit", process10.exitCode, null);
1111
1111
  return ret;
1112
1112
  } else {
1113
1113
  return originalProcessEmit.apply(this, arguments);
@@ -9651,6 +9651,1981 @@ var require_registry_auth_token = __commonJS({
9651
9651
  }
9652
9652
  });
9653
9653
 
9654
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.js
9655
+ var require_constants2 = __commonJS({
9656
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.js"(exports, module2) {
9657
+ "use strict";
9658
+ init_esm_shims();
9659
+ var SEMVER_SPEC_VERSION = "2.0.0";
9660
+ var MAX_LENGTH = 256;
9661
+ var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
9662
+ 9007199254740991;
9663
+ var MAX_SAFE_COMPONENT_LENGTH = 16;
9664
+ var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
9665
+ var RELEASE_TYPES = [
9666
+ "major",
9667
+ "premajor",
9668
+ "minor",
9669
+ "preminor",
9670
+ "patch",
9671
+ "prepatch",
9672
+ "prerelease"
9673
+ ];
9674
+ module2.exports = {
9675
+ MAX_LENGTH,
9676
+ MAX_SAFE_COMPONENT_LENGTH,
9677
+ MAX_SAFE_BUILD_LENGTH,
9678
+ MAX_SAFE_INTEGER,
9679
+ RELEASE_TYPES,
9680
+ SEMVER_SPEC_VERSION,
9681
+ FLAG_INCLUDE_PRERELEASE: 1,
9682
+ FLAG_LOOSE: 2
9683
+ };
9684
+ }
9685
+ });
9686
+
9687
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js
9688
+ var require_debug2 = __commonJS({
9689
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js"(exports, module2) {
9690
+ "use strict";
9691
+ init_esm_shims();
9692
+ var debug2 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
9693
+ };
9694
+ module2.exports = debug2;
9695
+ }
9696
+ });
9697
+
9698
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.js
9699
+ var require_re2 = __commonJS({
9700
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.js"(exports, module2) {
9701
+ "use strict";
9702
+ init_esm_shims();
9703
+ var {
9704
+ MAX_SAFE_COMPONENT_LENGTH,
9705
+ MAX_SAFE_BUILD_LENGTH,
9706
+ MAX_LENGTH
9707
+ } = require_constants2();
9708
+ var debug2 = require_debug2();
9709
+ exports = module2.exports = {};
9710
+ var re = exports.re = [];
9711
+ var safeRe = exports.safeRe = [];
9712
+ var src = exports.src = [];
9713
+ var safeSrc = exports.safeSrc = [];
9714
+ var t = exports.t = {};
9715
+ var R = 0;
9716
+ var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
9717
+ var safeRegexReplacements = [
9718
+ ["\\s", 1],
9719
+ ["\\d", MAX_LENGTH],
9720
+ [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
9721
+ ];
9722
+ var makeSafeRegex = (value) => {
9723
+ for (const [token, max] of safeRegexReplacements) {
9724
+ value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
9725
+ }
9726
+ return value;
9727
+ };
9728
+ var createToken = (name, value, isGlobal) => {
9729
+ const safe = makeSafeRegex(value);
9730
+ const index = R++;
9731
+ debug2(name, index, value);
9732
+ t[name] = index;
9733
+ src[index] = value;
9734
+ safeSrc[index] = safe;
9735
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
9736
+ safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
9737
+ };
9738
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
9739
+ createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
9740
+ createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
9741
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
9742
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
9743
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
9744
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
9745
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
9746
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
9747
+ createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
9748
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
9749
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
9750
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
9751
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
9752
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
9753
+ createToken("GTLT", "((?:<|>)?=?)");
9754
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
9755
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
9756
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
9757
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
9758
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
9759
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
9760
+ createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
9761
+ createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
9762
+ createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
9763
+ createToken("COERCERTL", src[t.COERCE], true);
9764
+ createToken("COERCERTLFULL", src[t.COERCEFULL], true);
9765
+ createToken("LONETILDE", "(?:~>?)");
9766
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
9767
+ exports.tildeTrimReplace = "$1~";
9768
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
9769
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
9770
+ createToken("LONECARET", "(?:\\^)");
9771
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
9772
+ exports.caretTrimReplace = "$1^";
9773
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
9774
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
9775
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
9776
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
9777
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
9778
+ exports.comparatorTrimReplace = "$1$2$3";
9779
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
9780
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
9781
+ createToken("STAR", "(<|>)?=?\\s*\\*");
9782
+ createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
9783
+ createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
9784
+ }
9785
+ });
9786
+
9787
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.js
9788
+ var require_parse_options2 = __commonJS({
9789
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.js"(exports, module2) {
9790
+ "use strict";
9791
+ init_esm_shims();
9792
+ var looseOption = Object.freeze({ loose: true });
9793
+ var emptyOpts = Object.freeze({});
9794
+ var parseOptions = (options) => {
9795
+ if (!options) {
9796
+ return emptyOpts;
9797
+ }
9798
+ if (typeof options !== "object") {
9799
+ return looseOption;
9800
+ }
9801
+ return options;
9802
+ };
9803
+ module2.exports = parseOptions;
9804
+ }
9805
+ });
9806
+
9807
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.js
9808
+ var require_identifiers2 = __commonJS({
9809
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.js"(exports, module2) {
9810
+ "use strict";
9811
+ init_esm_shims();
9812
+ var numeric = /^[0-9]+$/;
9813
+ var compareIdentifiers = (a, b) => {
9814
+ if (typeof a === "number" && typeof b === "number") {
9815
+ return a === b ? 0 : a < b ? -1 : 1;
9816
+ }
9817
+ const anum = numeric.test(a);
9818
+ const bnum = numeric.test(b);
9819
+ if (anum && bnum) {
9820
+ a = +a;
9821
+ b = +b;
9822
+ }
9823
+ return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
9824
+ };
9825
+ var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
9826
+ module2.exports = {
9827
+ compareIdentifiers,
9828
+ rcompareIdentifiers
9829
+ };
9830
+ }
9831
+ });
9832
+
9833
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.js
9834
+ var require_semver3 = __commonJS({
9835
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.js"(exports, module2) {
9836
+ "use strict";
9837
+ init_esm_shims();
9838
+ var debug2 = require_debug2();
9839
+ var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants2();
9840
+ var { safeRe: re, t } = require_re2();
9841
+ var parseOptions = require_parse_options2();
9842
+ var { compareIdentifiers } = require_identifiers2();
9843
+ var SemVer = class _SemVer {
9844
+ constructor(version, options) {
9845
+ options = parseOptions(options);
9846
+ if (version instanceof _SemVer) {
9847
+ if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
9848
+ return version;
9849
+ } else {
9850
+ version = version.version;
9851
+ }
9852
+ } else if (typeof version !== "string") {
9853
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
9854
+ }
9855
+ if (version.length > MAX_LENGTH) {
9856
+ throw new TypeError(
9857
+ `version is longer than ${MAX_LENGTH} characters`
9858
+ );
9859
+ }
9860
+ debug2("SemVer", version, options);
9861
+ this.options = options;
9862
+ this.loose = !!options.loose;
9863
+ this.includePrerelease = !!options.includePrerelease;
9864
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
9865
+ if (!m) {
9866
+ throw new TypeError(`Invalid Version: ${version}`);
9867
+ }
9868
+ this.raw = version;
9869
+ this.major = +m[1];
9870
+ this.minor = +m[2];
9871
+ this.patch = +m[3];
9872
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
9873
+ throw new TypeError("Invalid major version");
9874
+ }
9875
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
9876
+ throw new TypeError("Invalid minor version");
9877
+ }
9878
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
9879
+ throw new TypeError("Invalid patch version");
9880
+ }
9881
+ if (!m[4]) {
9882
+ this.prerelease = [];
9883
+ } else {
9884
+ this.prerelease = m[4].split(".").map((id) => {
9885
+ if (/^[0-9]+$/.test(id)) {
9886
+ const num = +id;
9887
+ if (num >= 0 && num < MAX_SAFE_INTEGER) {
9888
+ return num;
9889
+ }
9890
+ }
9891
+ return id;
9892
+ });
9893
+ }
9894
+ this.build = m[5] ? m[5].split(".") : [];
9895
+ this.format();
9896
+ }
9897
+ format() {
9898
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
9899
+ if (this.prerelease.length) {
9900
+ this.version += `-${this.prerelease.join(".")}`;
9901
+ }
9902
+ return this.version;
9903
+ }
9904
+ toString() {
9905
+ return this.version;
9906
+ }
9907
+ compare(other) {
9908
+ debug2("SemVer.compare", this.version, this.options, other);
9909
+ if (!(other instanceof _SemVer)) {
9910
+ if (typeof other === "string" && other === this.version) {
9911
+ return 0;
9912
+ }
9913
+ other = new _SemVer(other, this.options);
9914
+ }
9915
+ if (other.version === this.version) {
9916
+ return 0;
9917
+ }
9918
+ return this.compareMain(other) || this.comparePre(other);
9919
+ }
9920
+ compareMain(other) {
9921
+ if (!(other instanceof _SemVer)) {
9922
+ other = new _SemVer(other, this.options);
9923
+ }
9924
+ if (this.major < other.major) {
9925
+ return -1;
9926
+ }
9927
+ if (this.major > other.major) {
9928
+ return 1;
9929
+ }
9930
+ if (this.minor < other.minor) {
9931
+ return -1;
9932
+ }
9933
+ if (this.minor > other.minor) {
9934
+ return 1;
9935
+ }
9936
+ if (this.patch < other.patch) {
9937
+ return -1;
9938
+ }
9939
+ if (this.patch > other.patch) {
9940
+ return 1;
9941
+ }
9942
+ return 0;
9943
+ }
9944
+ comparePre(other) {
9945
+ if (!(other instanceof _SemVer)) {
9946
+ other = new _SemVer(other, this.options);
9947
+ }
9948
+ if (this.prerelease.length && !other.prerelease.length) {
9949
+ return -1;
9950
+ } else if (!this.prerelease.length && other.prerelease.length) {
9951
+ return 1;
9952
+ } else if (!this.prerelease.length && !other.prerelease.length) {
9953
+ return 0;
9954
+ }
9955
+ let i = 0;
9956
+ do {
9957
+ const a = this.prerelease[i];
9958
+ const b = other.prerelease[i];
9959
+ debug2("prerelease compare", i, a, b);
9960
+ if (a === void 0 && b === void 0) {
9961
+ return 0;
9962
+ } else if (b === void 0) {
9963
+ return 1;
9964
+ } else if (a === void 0) {
9965
+ return -1;
9966
+ } else if (a === b) {
9967
+ continue;
9968
+ } else {
9969
+ return compareIdentifiers(a, b);
9970
+ }
9971
+ } while (++i);
9972
+ }
9973
+ compareBuild(other) {
9974
+ if (!(other instanceof _SemVer)) {
9975
+ other = new _SemVer(other, this.options);
9976
+ }
9977
+ let i = 0;
9978
+ do {
9979
+ const a = this.build[i];
9980
+ const b = other.build[i];
9981
+ debug2("build compare", i, a, b);
9982
+ if (a === void 0 && b === void 0) {
9983
+ return 0;
9984
+ } else if (b === void 0) {
9985
+ return 1;
9986
+ } else if (a === void 0) {
9987
+ return -1;
9988
+ } else if (a === b) {
9989
+ continue;
9990
+ } else {
9991
+ return compareIdentifiers(a, b);
9992
+ }
9993
+ } while (++i);
9994
+ }
9995
+ // preminor will bump the version up to the next minor release, and immediately
9996
+ // down to pre-release. premajor and prepatch work the same way.
9997
+ inc(release, identifier, identifierBase) {
9998
+ if (release.startsWith("pre")) {
9999
+ if (!identifier && identifierBase === false) {
10000
+ throw new Error("invalid increment argument: identifier is empty");
10001
+ }
10002
+ if (identifier) {
10003
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
10004
+ if (!match || match[1] !== identifier) {
10005
+ throw new Error(`invalid identifier: ${identifier}`);
10006
+ }
10007
+ }
10008
+ }
10009
+ switch (release) {
10010
+ case "premajor":
10011
+ this.prerelease.length = 0;
10012
+ this.patch = 0;
10013
+ this.minor = 0;
10014
+ this.major++;
10015
+ this.inc("pre", identifier, identifierBase);
10016
+ break;
10017
+ case "preminor":
10018
+ this.prerelease.length = 0;
10019
+ this.patch = 0;
10020
+ this.minor++;
10021
+ this.inc("pre", identifier, identifierBase);
10022
+ break;
10023
+ case "prepatch":
10024
+ this.prerelease.length = 0;
10025
+ this.inc("patch", identifier, identifierBase);
10026
+ this.inc("pre", identifier, identifierBase);
10027
+ break;
10028
+ // If the input is a non-prerelease version, this acts the same as
10029
+ // prepatch.
10030
+ case "prerelease":
10031
+ if (this.prerelease.length === 0) {
10032
+ this.inc("patch", identifier, identifierBase);
10033
+ }
10034
+ this.inc("pre", identifier, identifierBase);
10035
+ break;
10036
+ case "release":
10037
+ if (this.prerelease.length === 0) {
10038
+ throw new Error(`version ${this.raw} is not a prerelease`);
10039
+ }
10040
+ this.prerelease.length = 0;
10041
+ break;
10042
+ case "major":
10043
+ if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
10044
+ this.major++;
10045
+ }
10046
+ this.minor = 0;
10047
+ this.patch = 0;
10048
+ this.prerelease = [];
10049
+ break;
10050
+ case "minor":
10051
+ if (this.patch !== 0 || this.prerelease.length === 0) {
10052
+ this.minor++;
10053
+ }
10054
+ this.patch = 0;
10055
+ this.prerelease = [];
10056
+ break;
10057
+ case "patch":
10058
+ if (this.prerelease.length === 0) {
10059
+ this.patch++;
10060
+ }
10061
+ this.prerelease = [];
10062
+ break;
10063
+ // This probably shouldn't be used publicly.
10064
+ // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
10065
+ case "pre": {
10066
+ const base = Number(identifierBase) ? 1 : 0;
10067
+ if (this.prerelease.length === 0) {
10068
+ this.prerelease = [base];
10069
+ } else {
10070
+ let i = this.prerelease.length;
10071
+ while (--i >= 0) {
10072
+ if (typeof this.prerelease[i] === "number") {
10073
+ this.prerelease[i]++;
10074
+ i = -2;
10075
+ }
10076
+ }
10077
+ if (i === -1) {
10078
+ if (identifier === this.prerelease.join(".") && identifierBase === false) {
10079
+ throw new Error("invalid increment argument: identifier already exists");
10080
+ }
10081
+ this.prerelease.push(base);
10082
+ }
10083
+ }
10084
+ if (identifier) {
10085
+ let prerelease = [identifier, base];
10086
+ if (identifierBase === false) {
10087
+ prerelease = [identifier];
10088
+ }
10089
+ if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
10090
+ if (isNaN(this.prerelease[1])) {
10091
+ this.prerelease = prerelease;
10092
+ }
10093
+ } else {
10094
+ this.prerelease = prerelease;
10095
+ }
10096
+ }
10097
+ break;
10098
+ }
10099
+ default:
10100
+ throw new Error(`invalid increment argument: ${release}`);
10101
+ }
10102
+ this.raw = this.format();
10103
+ if (this.build.length) {
10104
+ this.raw += `+${this.build.join(".")}`;
10105
+ }
10106
+ return this;
10107
+ }
10108
+ };
10109
+ module2.exports = SemVer;
10110
+ }
10111
+ });
10112
+
10113
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js
10114
+ var require_parse2 = __commonJS({
10115
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js"(exports, module2) {
10116
+ "use strict";
10117
+ init_esm_shims();
10118
+ var SemVer = require_semver3();
10119
+ var parse = (version, options, throwErrors = false) => {
10120
+ if (version instanceof SemVer) {
10121
+ return version;
10122
+ }
10123
+ try {
10124
+ return new SemVer(version, options);
10125
+ } catch (er) {
10126
+ if (!throwErrors) {
10127
+ return null;
10128
+ }
10129
+ throw er;
10130
+ }
10131
+ };
10132
+ module2.exports = parse;
10133
+ }
10134
+ });
10135
+
10136
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.js
10137
+ var require_valid3 = __commonJS({
10138
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.js"(exports, module2) {
10139
+ "use strict";
10140
+ init_esm_shims();
10141
+ var parse = require_parse2();
10142
+ var valid = (version, options) => {
10143
+ const v = parse(version, options);
10144
+ return v ? v.version : null;
10145
+ };
10146
+ module2.exports = valid;
10147
+ }
10148
+ });
10149
+
10150
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.js
10151
+ var require_clean2 = __commonJS({
10152
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.js"(exports, module2) {
10153
+ "use strict";
10154
+ init_esm_shims();
10155
+ var parse = require_parse2();
10156
+ var clean = (version, options) => {
10157
+ const s = parse(version.trim().replace(/^[=v]+/, ""), options);
10158
+ return s ? s.version : null;
10159
+ };
10160
+ module2.exports = clean;
10161
+ }
10162
+ });
10163
+
10164
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.js
10165
+ var require_inc2 = __commonJS({
10166
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.js"(exports, module2) {
10167
+ "use strict";
10168
+ init_esm_shims();
10169
+ var SemVer = require_semver3();
10170
+ var inc = (version, release, options, identifier, identifierBase) => {
10171
+ if (typeof options === "string") {
10172
+ identifierBase = identifier;
10173
+ identifier = options;
10174
+ options = void 0;
10175
+ }
10176
+ try {
10177
+ return new SemVer(
10178
+ version instanceof SemVer ? version.version : version,
10179
+ options
10180
+ ).inc(release, identifier, identifierBase).version;
10181
+ } catch (er) {
10182
+ return null;
10183
+ }
10184
+ };
10185
+ module2.exports = inc;
10186
+ }
10187
+ });
10188
+
10189
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js
10190
+ var require_diff2 = __commonJS({
10191
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js"(exports, module2) {
10192
+ "use strict";
10193
+ init_esm_shims();
10194
+ var parse = require_parse2();
10195
+ var diff = (version1, version2) => {
10196
+ const v1 = parse(version1, null, true);
10197
+ const v2 = parse(version2, null, true);
10198
+ const comparison = v1.compare(v2);
10199
+ if (comparison === 0) {
10200
+ return null;
10201
+ }
10202
+ const v1Higher = comparison > 0;
10203
+ const highVersion = v1Higher ? v1 : v2;
10204
+ const lowVersion = v1Higher ? v2 : v1;
10205
+ const highHasPre = !!highVersion.prerelease.length;
10206
+ const lowHasPre = !!lowVersion.prerelease.length;
10207
+ if (lowHasPre && !highHasPre) {
10208
+ if (!lowVersion.patch && !lowVersion.minor) {
10209
+ return "major";
10210
+ }
10211
+ if (lowVersion.compareMain(highVersion) === 0) {
10212
+ if (lowVersion.minor && !lowVersion.patch) {
10213
+ return "minor";
10214
+ }
10215
+ return "patch";
10216
+ }
10217
+ }
10218
+ const prefix = highHasPre ? "pre" : "";
10219
+ if (v1.major !== v2.major) {
10220
+ return prefix + "major";
10221
+ }
10222
+ if (v1.minor !== v2.minor) {
10223
+ return prefix + "minor";
10224
+ }
10225
+ if (v1.patch !== v2.patch) {
10226
+ return prefix + "patch";
10227
+ }
10228
+ return "prerelease";
10229
+ };
10230
+ module2.exports = diff;
10231
+ }
10232
+ });
10233
+
10234
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.js
10235
+ var require_major2 = __commonJS({
10236
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.js"(exports, module2) {
10237
+ "use strict";
10238
+ init_esm_shims();
10239
+ var SemVer = require_semver3();
10240
+ var major2 = (a, loose) => new SemVer(a, loose).major;
10241
+ module2.exports = major2;
10242
+ }
10243
+ });
10244
+
10245
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.js
10246
+ var require_minor2 = __commonJS({
10247
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.js"(exports, module2) {
10248
+ "use strict";
10249
+ init_esm_shims();
10250
+ var SemVer = require_semver3();
10251
+ var minor2 = (a, loose) => new SemVer(a, loose).minor;
10252
+ module2.exports = minor2;
10253
+ }
10254
+ });
10255
+
10256
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.js
10257
+ var require_patch2 = __commonJS({
10258
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.js"(exports, module2) {
10259
+ "use strict";
10260
+ init_esm_shims();
10261
+ var SemVer = require_semver3();
10262
+ var patch = (a, loose) => new SemVer(a, loose).patch;
10263
+ module2.exports = patch;
10264
+ }
10265
+ });
10266
+
10267
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.js
10268
+ var require_prerelease2 = __commonJS({
10269
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.js"(exports, module2) {
10270
+ "use strict";
10271
+ init_esm_shims();
10272
+ var parse = require_parse2();
10273
+ var prerelease = (version, options) => {
10274
+ const parsed = parse(version, options);
10275
+ return parsed && parsed.prerelease.length ? parsed.prerelease : null;
10276
+ };
10277
+ module2.exports = prerelease;
10278
+ }
10279
+ });
10280
+
10281
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js
10282
+ var require_compare2 = __commonJS({
10283
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js"(exports, module2) {
10284
+ "use strict";
10285
+ init_esm_shims();
10286
+ var SemVer = require_semver3();
10287
+ var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
10288
+ module2.exports = compare;
10289
+ }
10290
+ });
10291
+
10292
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.js
10293
+ var require_rcompare2 = __commonJS({
10294
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.js"(exports, module2) {
10295
+ "use strict";
10296
+ init_esm_shims();
10297
+ var compare = require_compare2();
10298
+ var rcompare = (a, b, loose) => compare(b, a, loose);
10299
+ module2.exports = rcompare;
10300
+ }
10301
+ });
10302
+
10303
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.js
10304
+ var require_compare_loose2 = __commonJS({
10305
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.js"(exports, module2) {
10306
+ "use strict";
10307
+ init_esm_shims();
10308
+ var compare = require_compare2();
10309
+ var compareLoose = (a, b) => compare(a, b, true);
10310
+ module2.exports = compareLoose;
10311
+ }
10312
+ });
10313
+
10314
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.js
10315
+ var require_compare_build2 = __commonJS({
10316
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.js"(exports, module2) {
10317
+ "use strict";
10318
+ init_esm_shims();
10319
+ var SemVer = require_semver3();
10320
+ var compareBuild = (a, b, loose) => {
10321
+ const versionA = new SemVer(a, loose);
10322
+ const versionB = new SemVer(b, loose);
10323
+ return versionA.compare(versionB) || versionA.compareBuild(versionB);
10324
+ };
10325
+ module2.exports = compareBuild;
10326
+ }
10327
+ });
10328
+
10329
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.js
10330
+ var require_sort2 = __commonJS({
10331
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.js"(exports, module2) {
10332
+ "use strict";
10333
+ init_esm_shims();
10334
+ var compareBuild = require_compare_build2();
10335
+ var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
10336
+ module2.exports = sort;
10337
+ }
10338
+ });
10339
+
10340
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.js
10341
+ var require_rsort2 = __commonJS({
10342
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.js"(exports, module2) {
10343
+ "use strict";
10344
+ init_esm_shims();
10345
+ var compareBuild = require_compare_build2();
10346
+ var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
10347
+ module2.exports = rsort;
10348
+ }
10349
+ });
10350
+
10351
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.js
10352
+ var require_gt2 = __commonJS({
10353
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.js"(exports, module2) {
10354
+ "use strict";
10355
+ init_esm_shims();
10356
+ var compare = require_compare2();
10357
+ var gt = (a, b, loose) => compare(a, b, loose) > 0;
10358
+ module2.exports = gt;
10359
+ }
10360
+ });
10361
+
10362
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.js
10363
+ var require_lt2 = __commonJS({
10364
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.js"(exports, module2) {
10365
+ "use strict";
10366
+ init_esm_shims();
10367
+ var compare = require_compare2();
10368
+ var lt = (a, b, loose) => compare(a, b, loose) < 0;
10369
+ module2.exports = lt;
10370
+ }
10371
+ });
10372
+
10373
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.js
10374
+ var require_eq2 = __commonJS({
10375
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.js"(exports, module2) {
10376
+ "use strict";
10377
+ init_esm_shims();
10378
+ var compare = require_compare2();
10379
+ var eq = (a, b, loose) => compare(a, b, loose) === 0;
10380
+ module2.exports = eq;
10381
+ }
10382
+ });
10383
+
10384
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.js
10385
+ var require_neq2 = __commonJS({
10386
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.js"(exports, module2) {
10387
+ "use strict";
10388
+ init_esm_shims();
10389
+ var compare = require_compare2();
10390
+ var neq = (a, b, loose) => compare(a, b, loose) !== 0;
10391
+ module2.exports = neq;
10392
+ }
10393
+ });
10394
+
10395
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.js
10396
+ var require_gte2 = __commonJS({
10397
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.js"(exports, module2) {
10398
+ "use strict";
10399
+ init_esm_shims();
10400
+ var compare = require_compare2();
10401
+ var gte = (a, b, loose) => compare(a, b, loose) >= 0;
10402
+ module2.exports = gte;
10403
+ }
10404
+ });
10405
+
10406
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.js
10407
+ var require_lte2 = __commonJS({
10408
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.js"(exports, module2) {
10409
+ "use strict";
10410
+ init_esm_shims();
10411
+ var compare = require_compare2();
10412
+ var lte = (a, b, loose) => compare(a, b, loose) <= 0;
10413
+ module2.exports = lte;
10414
+ }
10415
+ });
10416
+
10417
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.js
10418
+ var require_cmp2 = __commonJS({
10419
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.js"(exports, module2) {
10420
+ "use strict";
10421
+ init_esm_shims();
10422
+ var eq = require_eq2();
10423
+ var neq = require_neq2();
10424
+ var gt = require_gt2();
10425
+ var gte = require_gte2();
10426
+ var lt = require_lt2();
10427
+ var lte = require_lte2();
10428
+ var cmp = (a, op, b, loose) => {
10429
+ switch (op) {
10430
+ case "===":
10431
+ if (typeof a === "object") {
10432
+ a = a.version;
10433
+ }
10434
+ if (typeof b === "object") {
10435
+ b = b.version;
10436
+ }
10437
+ return a === b;
10438
+ case "!==":
10439
+ if (typeof a === "object") {
10440
+ a = a.version;
10441
+ }
10442
+ if (typeof b === "object") {
10443
+ b = b.version;
10444
+ }
10445
+ return a !== b;
10446
+ case "":
10447
+ case "=":
10448
+ case "==":
10449
+ return eq(a, b, loose);
10450
+ case "!=":
10451
+ return neq(a, b, loose);
10452
+ case ">":
10453
+ return gt(a, b, loose);
10454
+ case ">=":
10455
+ return gte(a, b, loose);
10456
+ case "<":
10457
+ return lt(a, b, loose);
10458
+ case "<=":
10459
+ return lte(a, b, loose);
10460
+ default:
10461
+ throw new TypeError(`Invalid operator: ${op}`);
10462
+ }
10463
+ };
10464
+ module2.exports = cmp;
10465
+ }
10466
+ });
10467
+
10468
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js
10469
+ var require_coerce2 = __commonJS({
10470
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js"(exports, module2) {
10471
+ "use strict";
10472
+ init_esm_shims();
10473
+ var SemVer = require_semver3();
10474
+ var parse = require_parse2();
10475
+ var { safeRe: re, t } = require_re2();
10476
+ var coerce = (version, options) => {
10477
+ if (version instanceof SemVer) {
10478
+ return version;
10479
+ }
10480
+ if (typeof version === "number") {
10481
+ version = String(version);
10482
+ }
10483
+ if (typeof version !== "string") {
10484
+ return null;
10485
+ }
10486
+ options = options || {};
10487
+ let match = null;
10488
+ if (!options.rtl) {
10489
+ match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
10490
+ } else {
10491
+ const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
10492
+ let next;
10493
+ while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
10494
+ if (!match || next.index + next[0].length !== match.index + match[0].length) {
10495
+ match = next;
10496
+ }
10497
+ coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
10498
+ }
10499
+ coerceRtlRegex.lastIndex = -1;
10500
+ }
10501
+ if (match === null) {
10502
+ return null;
10503
+ }
10504
+ const major2 = match[2];
10505
+ const minor2 = match[3] || "0";
10506
+ const patch = match[4] || "0";
10507
+ const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
10508
+ const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
10509
+ return parse(`${major2}.${minor2}.${patch}${prerelease}${build}`, options);
10510
+ };
10511
+ module2.exports = coerce;
10512
+ }
10513
+ });
10514
+
10515
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.js
10516
+ var require_lrucache = __commonJS({
10517
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.js"(exports, module2) {
10518
+ "use strict";
10519
+ init_esm_shims();
10520
+ var LRUCache = class {
10521
+ constructor() {
10522
+ this.max = 1e3;
10523
+ this.map = /* @__PURE__ */ new Map();
10524
+ }
10525
+ get(key) {
10526
+ const value = this.map.get(key);
10527
+ if (value === void 0) {
10528
+ return void 0;
10529
+ } else {
10530
+ this.map.delete(key);
10531
+ this.map.set(key, value);
10532
+ return value;
10533
+ }
10534
+ }
10535
+ delete(key) {
10536
+ return this.map.delete(key);
10537
+ }
10538
+ set(key, value) {
10539
+ const deleted = this.delete(key);
10540
+ if (!deleted && value !== void 0) {
10541
+ if (this.map.size >= this.max) {
10542
+ const firstKey = this.map.keys().next().value;
10543
+ this.delete(firstKey);
10544
+ }
10545
+ this.map.set(key, value);
10546
+ }
10547
+ return this;
10548
+ }
10549
+ };
10550
+ module2.exports = LRUCache;
10551
+ }
10552
+ });
10553
+
10554
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.js
10555
+ var require_range2 = __commonJS({
10556
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.js"(exports, module2) {
10557
+ "use strict";
10558
+ init_esm_shims();
10559
+ var SPACE_CHARACTERS = /\s+/g;
10560
+ var Range = class _Range {
10561
+ constructor(range, options) {
10562
+ options = parseOptions(options);
10563
+ if (range instanceof _Range) {
10564
+ if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
10565
+ return range;
10566
+ } else {
10567
+ return new _Range(range.raw, options);
10568
+ }
10569
+ }
10570
+ if (range instanceof Comparator) {
10571
+ this.raw = range.value;
10572
+ this.set = [[range]];
10573
+ this.formatted = void 0;
10574
+ return this;
10575
+ }
10576
+ this.options = options;
10577
+ this.loose = !!options.loose;
10578
+ this.includePrerelease = !!options.includePrerelease;
10579
+ this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
10580
+ this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
10581
+ if (!this.set.length) {
10582
+ throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
10583
+ }
10584
+ if (this.set.length > 1) {
10585
+ const first = this.set[0];
10586
+ this.set = this.set.filter((c) => !isNullSet(c[0]));
10587
+ if (this.set.length === 0) {
10588
+ this.set = [first];
10589
+ } else if (this.set.length > 1) {
10590
+ for (const c of this.set) {
10591
+ if (c.length === 1 && isAny(c[0])) {
10592
+ this.set = [c];
10593
+ break;
10594
+ }
10595
+ }
10596
+ }
10597
+ }
10598
+ this.formatted = void 0;
10599
+ }
10600
+ get range() {
10601
+ if (this.formatted === void 0) {
10602
+ this.formatted = "";
10603
+ for (let i = 0; i < this.set.length; i++) {
10604
+ if (i > 0) {
10605
+ this.formatted += "||";
10606
+ }
10607
+ const comps = this.set[i];
10608
+ for (let k = 0; k < comps.length; k++) {
10609
+ if (k > 0) {
10610
+ this.formatted += " ";
10611
+ }
10612
+ this.formatted += comps[k].toString().trim();
10613
+ }
10614
+ }
10615
+ }
10616
+ return this.formatted;
10617
+ }
10618
+ format() {
10619
+ return this.range;
10620
+ }
10621
+ toString() {
10622
+ return this.range;
10623
+ }
10624
+ parseRange(range) {
10625
+ const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
10626
+ const memoKey = memoOpts + ":" + range;
10627
+ const cached = cache.get(memoKey);
10628
+ if (cached) {
10629
+ return cached;
10630
+ }
10631
+ const loose = this.options.loose;
10632
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
10633
+ range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
10634
+ debug2("hyphen replace", range);
10635
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
10636
+ debug2("comparator trim", range);
10637
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
10638
+ debug2("tilde trim", range);
10639
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace);
10640
+ debug2("caret trim", range);
10641
+ let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
10642
+ if (loose) {
10643
+ rangeList = rangeList.filter((comp) => {
10644
+ debug2("loose invalid filter", comp, this.options);
10645
+ return !!comp.match(re[t.COMPARATORLOOSE]);
10646
+ });
10647
+ }
10648
+ debug2("range list", rangeList);
10649
+ const rangeMap = /* @__PURE__ */ new Map();
10650
+ const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
10651
+ for (const comp of comparators) {
10652
+ if (isNullSet(comp)) {
10653
+ return [comp];
10654
+ }
10655
+ rangeMap.set(comp.value, comp);
10656
+ }
10657
+ if (rangeMap.size > 1 && rangeMap.has("")) {
10658
+ rangeMap.delete("");
10659
+ }
10660
+ const result = [...rangeMap.values()];
10661
+ cache.set(memoKey, result);
10662
+ return result;
10663
+ }
10664
+ intersects(range, options) {
10665
+ if (!(range instanceof _Range)) {
10666
+ throw new TypeError("a Range is required");
10667
+ }
10668
+ return this.set.some((thisComparators) => {
10669
+ return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
10670
+ return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
10671
+ return rangeComparators.every((rangeComparator) => {
10672
+ return thisComparator.intersects(rangeComparator, options);
10673
+ });
10674
+ });
10675
+ });
10676
+ });
10677
+ }
10678
+ // if ANY of the sets match ALL of its comparators, then pass
10679
+ test(version) {
10680
+ if (!version) {
10681
+ return false;
10682
+ }
10683
+ if (typeof version === "string") {
10684
+ try {
10685
+ version = new SemVer(version, this.options);
10686
+ } catch (er) {
10687
+ return false;
10688
+ }
10689
+ }
10690
+ for (let i = 0; i < this.set.length; i++) {
10691
+ if (testSet(this.set[i], version, this.options)) {
10692
+ return true;
10693
+ }
10694
+ }
10695
+ return false;
10696
+ }
10697
+ };
10698
+ module2.exports = Range;
10699
+ var LRU = require_lrucache();
10700
+ var cache = new LRU();
10701
+ var parseOptions = require_parse_options2();
10702
+ var Comparator = require_comparator2();
10703
+ var debug2 = require_debug2();
10704
+ var SemVer = require_semver3();
10705
+ var {
10706
+ safeRe: re,
10707
+ t,
10708
+ comparatorTrimReplace,
10709
+ tildeTrimReplace,
10710
+ caretTrimReplace
10711
+ } = require_re2();
10712
+ var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants2();
10713
+ var isNullSet = (c) => c.value === "<0.0.0-0";
10714
+ var isAny = (c) => c.value === "";
10715
+ var isSatisfiable = (comparators, options) => {
10716
+ let result = true;
10717
+ const remainingComparators = comparators.slice();
10718
+ let testComparator = remainingComparators.pop();
10719
+ while (result && remainingComparators.length) {
10720
+ result = remainingComparators.every((otherComparator) => {
10721
+ return testComparator.intersects(otherComparator, options);
10722
+ });
10723
+ testComparator = remainingComparators.pop();
10724
+ }
10725
+ return result;
10726
+ };
10727
+ var parseComparator = (comp, options) => {
10728
+ comp = comp.replace(re[t.BUILD], "");
10729
+ debug2("comp", comp, options);
10730
+ comp = replaceCarets(comp, options);
10731
+ debug2("caret", comp);
10732
+ comp = replaceTildes(comp, options);
10733
+ debug2("tildes", comp);
10734
+ comp = replaceXRanges(comp, options);
10735
+ debug2("xrange", comp);
10736
+ comp = replaceStars(comp, options);
10737
+ debug2("stars", comp);
10738
+ return comp;
10739
+ };
10740
+ var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
10741
+ var replaceTildes = (comp, options) => {
10742
+ return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
10743
+ };
10744
+ var replaceTilde = (comp, options) => {
10745
+ const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
10746
+ return comp.replace(r, (_, M, m, p, pr) => {
10747
+ debug2("tilde", comp, _, M, m, p, pr);
10748
+ let ret;
10749
+ if (isX(M)) {
10750
+ ret = "";
10751
+ } else if (isX(m)) {
10752
+ ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
10753
+ } else if (isX(p)) {
10754
+ ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
10755
+ } else if (pr) {
10756
+ debug2("replaceTilde pr", pr);
10757
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
10758
+ } else {
10759
+ ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
10760
+ }
10761
+ debug2("tilde return", ret);
10762
+ return ret;
10763
+ });
10764
+ };
10765
+ var replaceCarets = (comp, options) => {
10766
+ return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
10767
+ };
10768
+ var replaceCaret = (comp, options) => {
10769
+ debug2("caret", comp, options);
10770
+ const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
10771
+ const z = options.includePrerelease ? "-0" : "";
10772
+ return comp.replace(r, (_, M, m, p, pr) => {
10773
+ debug2("caret", comp, _, M, m, p, pr);
10774
+ let ret;
10775
+ if (isX(M)) {
10776
+ ret = "";
10777
+ } else if (isX(m)) {
10778
+ ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
10779
+ } else if (isX(p)) {
10780
+ if (M === "0") {
10781
+ ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
10782
+ } else {
10783
+ ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
10784
+ }
10785
+ } else if (pr) {
10786
+ debug2("replaceCaret pr", pr);
10787
+ if (M === "0") {
10788
+ if (m === "0") {
10789
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
10790
+ } else {
10791
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
10792
+ }
10793
+ } else {
10794
+ ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
10795
+ }
10796
+ } else {
10797
+ debug2("no pr");
10798
+ if (M === "0") {
10799
+ if (m === "0") {
10800
+ ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
10801
+ } else {
10802
+ ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
10803
+ }
10804
+ } else {
10805
+ ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
10806
+ }
10807
+ }
10808
+ debug2("caret return", ret);
10809
+ return ret;
10810
+ });
10811
+ };
10812
+ var replaceXRanges = (comp, options) => {
10813
+ debug2("replaceXRanges", comp, options);
10814
+ return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
10815
+ };
10816
+ var replaceXRange = (comp, options) => {
10817
+ comp = comp.trim();
10818
+ const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
10819
+ return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
10820
+ debug2("xRange", comp, ret, gtlt, M, m, p, pr);
10821
+ const xM = isX(M);
10822
+ const xm = xM || isX(m);
10823
+ const xp = xm || isX(p);
10824
+ const anyX = xp;
10825
+ if (gtlt === "=" && anyX) {
10826
+ gtlt = "";
10827
+ }
10828
+ pr = options.includePrerelease ? "-0" : "";
10829
+ if (xM) {
10830
+ if (gtlt === ">" || gtlt === "<") {
10831
+ ret = "<0.0.0-0";
10832
+ } else {
10833
+ ret = "*";
10834
+ }
10835
+ } else if (gtlt && anyX) {
10836
+ if (xm) {
10837
+ m = 0;
10838
+ }
10839
+ p = 0;
10840
+ if (gtlt === ">") {
10841
+ gtlt = ">=";
10842
+ if (xm) {
10843
+ M = +M + 1;
10844
+ m = 0;
10845
+ p = 0;
10846
+ } else {
10847
+ m = +m + 1;
10848
+ p = 0;
10849
+ }
10850
+ } else if (gtlt === "<=") {
10851
+ gtlt = "<";
10852
+ if (xm) {
10853
+ M = +M + 1;
10854
+ } else {
10855
+ m = +m + 1;
10856
+ }
10857
+ }
10858
+ if (gtlt === "<") {
10859
+ pr = "-0";
10860
+ }
10861
+ ret = `${gtlt + M}.${m}.${p}${pr}`;
10862
+ } else if (xm) {
10863
+ ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
10864
+ } else if (xp) {
10865
+ ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
10866
+ }
10867
+ debug2("xRange return", ret);
10868
+ return ret;
10869
+ });
10870
+ };
10871
+ var replaceStars = (comp, options) => {
10872
+ debug2("replaceStars", comp, options);
10873
+ return comp.trim().replace(re[t.STAR], "");
10874
+ };
10875
+ var replaceGTE0 = (comp, options) => {
10876
+ debug2("replaceGTE0", comp, options);
10877
+ return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
10878
+ };
10879
+ var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
10880
+ if (isX(fM)) {
10881
+ from = "";
10882
+ } else if (isX(fm)) {
10883
+ from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
10884
+ } else if (isX(fp)) {
10885
+ from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
10886
+ } else if (fpr) {
10887
+ from = `>=${from}`;
10888
+ } else {
10889
+ from = `>=${from}${incPr ? "-0" : ""}`;
10890
+ }
10891
+ if (isX(tM)) {
10892
+ to = "";
10893
+ } else if (isX(tm)) {
10894
+ to = `<${+tM + 1}.0.0-0`;
10895
+ } else if (isX(tp)) {
10896
+ to = `<${tM}.${+tm + 1}.0-0`;
10897
+ } else if (tpr) {
10898
+ to = `<=${tM}.${tm}.${tp}-${tpr}`;
10899
+ } else if (incPr) {
10900
+ to = `<${tM}.${tm}.${+tp + 1}-0`;
10901
+ } else {
10902
+ to = `<=${to}`;
10903
+ }
10904
+ return `${from} ${to}`.trim();
10905
+ };
10906
+ var testSet = (set, version, options) => {
10907
+ for (let i = 0; i < set.length; i++) {
10908
+ if (!set[i].test(version)) {
10909
+ return false;
10910
+ }
10911
+ }
10912
+ if (version.prerelease.length && !options.includePrerelease) {
10913
+ for (let i = 0; i < set.length; i++) {
10914
+ debug2(set[i].semver);
10915
+ if (set[i].semver === Comparator.ANY) {
10916
+ continue;
10917
+ }
10918
+ if (set[i].semver.prerelease.length > 0) {
10919
+ const allowed = set[i].semver;
10920
+ if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
10921
+ return true;
10922
+ }
10923
+ }
10924
+ }
10925
+ return false;
10926
+ }
10927
+ return true;
10928
+ };
10929
+ }
10930
+ });
10931
+
10932
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.js
10933
+ var require_comparator2 = __commonJS({
10934
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.js"(exports, module2) {
10935
+ "use strict";
10936
+ init_esm_shims();
10937
+ var ANY = Symbol("SemVer ANY");
10938
+ var Comparator = class _Comparator {
10939
+ static get ANY() {
10940
+ return ANY;
10941
+ }
10942
+ constructor(comp, options) {
10943
+ options = parseOptions(options);
10944
+ if (comp instanceof _Comparator) {
10945
+ if (comp.loose === !!options.loose) {
10946
+ return comp;
10947
+ } else {
10948
+ comp = comp.value;
10949
+ }
10950
+ }
10951
+ comp = comp.trim().split(/\s+/).join(" ");
10952
+ debug2("comparator", comp, options);
10953
+ this.options = options;
10954
+ this.loose = !!options.loose;
10955
+ this.parse(comp);
10956
+ if (this.semver === ANY) {
10957
+ this.value = "";
10958
+ } else {
10959
+ this.value = this.operator + this.semver.version;
10960
+ }
10961
+ debug2("comp", this);
10962
+ }
10963
+ parse(comp) {
10964
+ const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
10965
+ const m = comp.match(r);
10966
+ if (!m) {
10967
+ throw new TypeError(`Invalid comparator: ${comp}`);
10968
+ }
10969
+ this.operator = m[1] !== void 0 ? m[1] : "";
10970
+ if (this.operator === "=") {
10971
+ this.operator = "";
10972
+ }
10973
+ if (!m[2]) {
10974
+ this.semver = ANY;
10975
+ } else {
10976
+ this.semver = new SemVer(m[2], this.options.loose);
10977
+ }
10978
+ }
10979
+ toString() {
10980
+ return this.value;
10981
+ }
10982
+ test(version) {
10983
+ debug2("Comparator.test", version, this.options.loose);
10984
+ if (this.semver === ANY || version === ANY) {
10985
+ return true;
10986
+ }
10987
+ if (typeof version === "string") {
10988
+ try {
10989
+ version = new SemVer(version, this.options);
10990
+ } catch (er) {
10991
+ return false;
10992
+ }
10993
+ }
10994
+ return cmp(version, this.operator, this.semver, this.options);
10995
+ }
10996
+ intersects(comp, options) {
10997
+ if (!(comp instanceof _Comparator)) {
10998
+ throw new TypeError("a Comparator is required");
10999
+ }
11000
+ if (this.operator === "") {
11001
+ if (this.value === "") {
11002
+ return true;
11003
+ }
11004
+ return new Range(comp.value, options).test(this.value);
11005
+ } else if (comp.operator === "") {
11006
+ if (comp.value === "") {
11007
+ return true;
11008
+ }
11009
+ return new Range(this.value, options).test(comp.semver);
11010
+ }
11011
+ options = parseOptions(options);
11012
+ if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
11013
+ return false;
11014
+ }
11015
+ if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
11016
+ return false;
11017
+ }
11018
+ if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
11019
+ return true;
11020
+ }
11021
+ if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
11022
+ return true;
11023
+ }
11024
+ if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
11025
+ return true;
11026
+ }
11027
+ if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
11028
+ return true;
11029
+ }
11030
+ if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
11031
+ return true;
11032
+ }
11033
+ return false;
11034
+ }
11035
+ };
11036
+ module2.exports = Comparator;
11037
+ var parseOptions = require_parse_options2();
11038
+ var { safeRe: re, t } = require_re2();
11039
+ var cmp = require_cmp2();
11040
+ var debug2 = require_debug2();
11041
+ var SemVer = require_semver3();
11042
+ var Range = require_range2();
11043
+ }
11044
+ });
11045
+
11046
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.js
11047
+ var require_satisfies2 = __commonJS({
11048
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.js"(exports, module2) {
11049
+ "use strict";
11050
+ init_esm_shims();
11051
+ var Range = require_range2();
11052
+ var satisfies = (version, range, options) => {
11053
+ try {
11054
+ range = new Range(range, options);
11055
+ } catch (er) {
11056
+ return false;
11057
+ }
11058
+ return range.test(version);
11059
+ };
11060
+ module2.exports = satisfies;
11061
+ }
11062
+ });
11063
+
11064
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.js
11065
+ var require_to_comparators2 = __commonJS({
11066
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.js"(exports, module2) {
11067
+ "use strict";
11068
+ init_esm_shims();
11069
+ var Range = require_range2();
11070
+ var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
11071
+ module2.exports = toComparators;
11072
+ }
11073
+ });
11074
+
11075
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js
11076
+ var require_max_satisfying2 = __commonJS({
11077
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js"(exports, module2) {
11078
+ "use strict";
11079
+ init_esm_shims();
11080
+ var SemVer = require_semver3();
11081
+ var Range = require_range2();
11082
+ var maxSatisfying = (versions, range, options) => {
11083
+ let max = null;
11084
+ let maxSV = null;
11085
+ let rangeObj = null;
11086
+ try {
11087
+ rangeObj = new Range(range, options);
11088
+ } catch (er) {
11089
+ return null;
11090
+ }
11091
+ versions.forEach((v) => {
11092
+ if (rangeObj.test(v)) {
11093
+ if (!max || maxSV.compare(v) === -1) {
11094
+ max = v;
11095
+ maxSV = new SemVer(max, options);
11096
+ }
11097
+ }
11098
+ });
11099
+ return max;
11100
+ };
11101
+ module2.exports = maxSatisfying;
11102
+ }
11103
+ });
11104
+
11105
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js
11106
+ var require_min_satisfying2 = __commonJS({
11107
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js"(exports, module2) {
11108
+ "use strict";
11109
+ init_esm_shims();
11110
+ var SemVer = require_semver3();
11111
+ var Range = require_range2();
11112
+ var minSatisfying = (versions, range, options) => {
11113
+ let min = null;
11114
+ let minSV = null;
11115
+ let rangeObj = null;
11116
+ try {
11117
+ rangeObj = new Range(range, options);
11118
+ } catch (er) {
11119
+ return null;
11120
+ }
11121
+ versions.forEach((v) => {
11122
+ if (rangeObj.test(v)) {
11123
+ if (!min || minSV.compare(v) === 1) {
11124
+ min = v;
11125
+ minSV = new SemVer(min, options);
11126
+ }
11127
+ }
11128
+ });
11129
+ return min;
11130
+ };
11131
+ module2.exports = minSatisfying;
11132
+ }
11133
+ });
11134
+
11135
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js
11136
+ var require_min_version2 = __commonJS({
11137
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js"(exports, module2) {
11138
+ "use strict";
11139
+ init_esm_shims();
11140
+ var SemVer = require_semver3();
11141
+ var Range = require_range2();
11142
+ var gt = require_gt2();
11143
+ var minVersion = (range, loose) => {
11144
+ range = new Range(range, loose);
11145
+ let minver = new SemVer("0.0.0");
11146
+ if (range.test(minver)) {
11147
+ return minver;
11148
+ }
11149
+ minver = new SemVer("0.0.0-0");
11150
+ if (range.test(minver)) {
11151
+ return minver;
11152
+ }
11153
+ minver = null;
11154
+ for (let i = 0; i < range.set.length; ++i) {
11155
+ const comparators = range.set[i];
11156
+ let setMin = null;
11157
+ comparators.forEach((comparator) => {
11158
+ const compver = new SemVer(comparator.semver.version);
11159
+ switch (comparator.operator) {
11160
+ case ">":
11161
+ if (compver.prerelease.length === 0) {
11162
+ compver.patch++;
11163
+ } else {
11164
+ compver.prerelease.push(0);
11165
+ }
11166
+ compver.raw = compver.format();
11167
+ /* fallthrough */
11168
+ case "":
11169
+ case ">=":
11170
+ if (!setMin || gt(compver, setMin)) {
11171
+ setMin = compver;
11172
+ }
11173
+ break;
11174
+ case "<":
11175
+ case "<=":
11176
+ break;
11177
+ /* istanbul ignore next */
11178
+ default:
11179
+ throw new Error(`Unexpected operation: ${comparator.operator}`);
11180
+ }
11181
+ });
11182
+ if (setMin && (!minver || gt(minver, setMin))) {
11183
+ minver = setMin;
11184
+ }
11185
+ }
11186
+ if (minver && range.test(minver)) {
11187
+ return minver;
11188
+ }
11189
+ return null;
11190
+ };
11191
+ module2.exports = minVersion;
11192
+ }
11193
+ });
11194
+
11195
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.js
11196
+ var require_valid4 = __commonJS({
11197
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.js"(exports, module2) {
11198
+ "use strict";
11199
+ init_esm_shims();
11200
+ var Range = require_range2();
11201
+ var validRange = (range, options) => {
11202
+ try {
11203
+ return new Range(range, options).range || "*";
11204
+ } catch (er) {
11205
+ return null;
11206
+ }
11207
+ };
11208
+ module2.exports = validRange;
11209
+ }
11210
+ });
11211
+
11212
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.js
11213
+ var require_outside2 = __commonJS({
11214
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.js"(exports, module2) {
11215
+ "use strict";
11216
+ init_esm_shims();
11217
+ var SemVer = require_semver3();
11218
+ var Comparator = require_comparator2();
11219
+ var { ANY } = Comparator;
11220
+ var Range = require_range2();
11221
+ var satisfies = require_satisfies2();
11222
+ var gt = require_gt2();
11223
+ var lt = require_lt2();
11224
+ var lte = require_lte2();
11225
+ var gte = require_gte2();
11226
+ var outside = (version, range, hilo, options) => {
11227
+ version = new SemVer(version, options);
11228
+ range = new Range(range, options);
11229
+ let gtfn, ltefn, ltfn, comp, ecomp;
11230
+ switch (hilo) {
11231
+ case ">":
11232
+ gtfn = gt;
11233
+ ltefn = lte;
11234
+ ltfn = lt;
11235
+ comp = ">";
11236
+ ecomp = ">=";
11237
+ break;
11238
+ case "<":
11239
+ gtfn = lt;
11240
+ ltefn = gte;
11241
+ ltfn = gt;
11242
+ comp = "<";
11243
+ ecomp = "<=";
11244
+ break;
11245
+ default:
11246
+ throw new TypeError('Must provide a hilo val of "<" or ">"');
11247
+ }
11248
+ if (satisfies(version, range, options)) {
11249
+ return false;
11250
+ }
11251
+ for (let i = 0; i < range.set.length; ++i) {
11252
+ const comparators = range.set[i];
11253
+ let high = null;
11254
+ let low = null;
11255
+ comparators.forEach((comparator) => {
11256
+ if (comparator.semver === ANY) {
11257
+ comparator = new Comparator(">=0.0.0");
11258
+ }
11259
+ high = high || comparator;
11260
+ low = low || comparator;
11261
+ if (gtfn(comparator.semver, high.semver, options)) {
11262
+ high = comparator;
11263
+ } else if (ltfn(comparator.semver, low.semver, options)) {
11264
+ low = comparator;
11265
+ }
11266
+ });
11267
+ if (high.operator === comp || high.operator === ecomp) {
11268
+ return false;
11269
+ }
11270
+ if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
11271
+ return false;
11272
+ } else if (low.operator === ecomp && ltfn(version, low.semver)) {
11273
+ return false;
11274
+ }
11275
+ }
11276
+ return true;
11277
+ };
11278
+ module2.exports = outside;
11279
+ }
11280
+ });
11281
+
11282
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.js
11283
+ var require_gtr2 = __commonJS({
11284
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.js"(exports, module2) {
11285
+ "use strict";
11286
+ init_esm_shims();
11287
+ var outside = require_outside2();
11288
+ var gtr = (version, range, options) => outside(version, range, ">", options);
11289
+ module2.exports = gtr;
11290
+ }
11291
+ });
11292
+
11293
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.js
11294
+ var require_ltr2 = __commonJS({
11295
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.js"(exports, module2) {
11296
+ "use strict";
11297
+ init_esm_shims();
11298
+ var outside = require_outside2();
11299
+ var ltr = (version, range, options) => outside(version, range, "<", options);
11300
+ module2.exports = ltr;
11301
+ }
11302
+ });
11303
+
11304
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.js
11305
+ var require_intersects2 = __commonJS({
11306
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.js"(exports, module2) {
11307
+ "use strict";
11308
+ init_esm_shims();
11309
+ var Range = require_range2();
11310
+ var intersects = (r1, r2, options) => {
11311
+ r1 = new Range(r1, options);
11312
+ r2 = new Range(r2, options);
11313
+ return r1.intersects(r2, options);
11314
+ };
11315
+ module2.exports = intersects;
11316
+ }
11317
+ });
11318
+
11319
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.js
11320
+ var require_simplify2 = __commonJS({
11321
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.js"(exports, module2) {
11322
+ "use strict";
11323
+ init_esm_shims();
11324
+ var satisfies = require_satisfies2();
11325
+ var compare = require_compare2();
11326
+ module2.exports = (versions, range, options) => {
11327
+ const set = [];
11328
+ let first = null;
11329
+ let prev = null;
11330
+ const v = versions.sort((a, b) => compare(a, b, options));
11331
+ for (const version of v) {
11332
+ const included = satisfies(version, range, options);
11333
+ if (included) {
11334
+ prev = version;
11335
+ if (!first) {
11336
+ first = version;
11337
+ }
11338
+ } else {
11339
+ if (prev) {
11340
+ set.push([first, prev]);
11341
+ }
11342
+ prev = null;
11343
+ first = null;
11344
+ }
11345
+ }
11346
+ if (first) {
11347
+ set.push([first, null]);
11348
+ }
11349
+ const ranges = [];
11350
+ for (const [min, max] of set) {
11351
+ if (min === max) {
11352
+ ranges.push(min);
11353
+ } else if (!max && min === v[0]) {
11354
+ ranges.push("*");
11355
+ } else if (!max) {
11356
+ ranges.push(`>=${min}`);
11357
+ } else if (min === v[0]) {
11358
+ ranges.push(`<=${max}`);
11359
+ } else {
11360
+ ranges.push(`${min} - ${max}`);
11361
+ }
11362
+ }
11363
+ const simplified = ranges.join(" || ");
11364
+ const original = typeof range.raw === "string" ? range.raw : String(range);
11365
+ return simplified.length < original.length ? simplified : range;
11366
+ };
11367
+ }
11368
+ });
11369
+
11370
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.js
11371
+ var require_subset2 = __commonJS({
11372
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.js"(exports, module2) {
11373
+ "use strict";
11374
+ init_esm_shims();
11375
+ var Range = require_range2();
11376
+ var Comparator = require_comparator2();
11377
+ var { ANY } = Comparator;
11378
+ var satisfies = require_satisfies2();
11379
+ var compare = require_compare2();
11380
+ var subset = (sub, dom, options = {}) => {
11381
+ if (sub === dom) {
11382
+ return true;
11383
+ }
11384
+ sub = new Range(sub, options);
11385
+ dom = new Range(dom, options);
11386
+ let sawNonNull = false;
11387
+ OUTER: for (const simpleSub of sub.set) {
11388
+ for (const simpleDom of dom.set) {
11389
+ const isSub = simpleSubset(simpleSub, simpleDom, options);
11390
+ sawNonNull = sawNonNull || isSub !== null;
11391
+ if (isSub) {
11392
+ continue OUTER;
11393
+ }
11394
+ }
11395
+ if (sawNonNull) {
11396
+ return false;
11397
+ }
11398
+ }
11399
+ return true;
11400
+ };
11401
+ var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
11402
+ var minimumVersion = [new Comparator(">=0.0.0")];
11403
+ var simpleSubset = (sub, dom, options) => {
11404
+ if (sub === dom) {
11405
+ return true;
11406
+ }
11407
+ if (sub.length === 1 && sub[0].semver === ANY) {
11408
+ if (dom.length === 1 && dom[0].semver === ANY) {
11409
+ return true;
11410
+ } else if (options.includePrerelease) {
11411
+ sub = minimumVersionWithPreRelease;
11412
+ } else {
11413
+ sub = minimumVersion;
11414
+ }
11415
+ }
11416
+ if (dom.length === 1 && dom[0].semver === ANY) {
11417
+ if (options.includePrerelease) {
11418
+ return true;
11419
+ } else {
11420
+ dom = minimumVersion;
11421
+ }
11422
+ }
11423
+ const eqSet = /* @__PURE__ */ new Set();
11424
+ let gt, lt;
11425
+ for (const c of sub) {
11426
+ if (c.operator === ">" || c.operator === ">=") {
11427
+ gt = higherGT(gt, c, options);
11428
+ } else if (c.operator === "<" || c.operator === "<=") {
11429
+ lt = lowerLT(lt, c, options);
11430
+ } else {
11431
+ eqSet.add(c.semver);
11432
+ }
11433
+ }
11434
+ if (eqSet.size > 1) {
11435
+ return null;
11436
+ }
11437
+ let gtltComp;
11438
+ if (gt && lt) {
11439
+ gtltComp = compare(gt.semver, lt.semver, options);
11440
+ if (gtltComp > 0) {
11441
+ return null;
11442
+ } else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
11443
+ return null;
11444
+ }
11445
+ }
11446
+ for (const eq of eqSet) {
11447
+ if (gt && !satisfies(eq, String(gt), options)) {
11448
+ return null;
11449
+ }
11450
+ if (lt && !satisfies(eq, String(lt), options)) {
11451
+ return null;
11452
+ }
11453
+ for (const c of dom) {
11454
+ if (!satisfies(eq, String(c), options)) {
11455
+ return false;
11456
+ }
11457
+ }
11458
+ return true;
11459
+ }
11460
+ let higher, lower;
11461
+ let hasDomLT, hasDomGT;
11462
+ let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
11463
+ let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
11464
+ if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
11465
+ needDomLTPre = false;
11466
+ }
11467
+ for (const c of dom) {
11468
+ hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
11469
+ hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
11470
+ if (gt) {
11471
+ if (needDomGTPre) {
11472
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
11473
+ needDomGTPre = false;
11474
+ }
11475
+ }
11476
+ if (c.operator === ">" || c.operator === ">=") {
11477
+ higher = higherGT(gt, c, options);
11478
+ if (higher === c && higher !== gt) {
11479
+ return false;
11480
+ }
11481
+ } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
11482
+ return false;
11483
+ }
11484
+ }
11485
+ if (lt) {
11486
+ if (needDomLTPre) {
11487
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
11488
+ needDomLTPre = false;
11489
+ }
11490
+ }
11491
+ if (c.operator === "<" || c.operator === "<=") {
11492
+ lower = lowerLT(lt, c, options);
11493
+ if (lower === c && lower !== lt) {
11494
+ return false;
11495
+ }
11496
+ } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) {
11497
+ return false;
11498
+ }
11499
+ }
11500
+ if (!c.operator && (lt || gt) && gtltComp !== 0) {
11501
+ return false;
11502
+ }
11503
+ }
11504
+ if (gt && hasDomLT && !lt && gtltComp !== 0) {
11505
+ return false;
11506
+ }
11507
+ if (lt && hasDomGT && !gt && gtltComp !== 0) {
11508
+ return false;
11509
+ }
11510
+ if (needDomGTPre || needDomLTPre) {
11511
+ return false;
11512
+ }
11513
+ return true;
11514
+ };
11515
+ var higherGT = (a, b, options) => {
11516
+ if (!a) {
11517
+ return b;
11518
+ }
11519
+ const comp = compare(a.semver, b.semver, options);
11520
+ return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
11521
+ };
11522
+ var lowerLT = (a, b, options) => {
11523
+ if (!a) {
11524
+ return b;
11525
+ }
11526
+ const comp = compare(a.semver, b.semver, options);
11527
+ return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
11528
+ };
11529
+ module2.exports = subset;
11530
+ }
11531
+ });
11532
+
11533
+ // ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.js
11534
+ var require_semver4 = __commonJS({
11535
+ "../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.js"(exports, module2) {
11536
+ "use strict";
11537
+ init_esm_shims();
11538
+ var internalRe = require_re2();
11539
+ var constants = require_constants2();
11540
+ var SemVer = require_semver3();
11541
+ var identifiers = require_identifiers2();
11542
+ var parse = require_parse2();
11543
+ var valid = require_valid3();
11544
+ var clean = require_clean2();
11545
+ var inc = require_inc2();
11546
+ var diff = require_diff2();
11547
+ var major2 = require_major2();
11548
+ var minor2 = require_minor2();
11549
+ var patch = require_patch2();
11550
+ var prerelease = require_prerelease2();
11551
+ var compare = require_compare2();
11552
+ var rcompare = require_rcompare2();
11553
+ var compareLoose = require_compare_loose2();
11554
+ var compareBuild = require_compare_build2();
11555
+ var sort = require_sort2();
11556
+ var rsort = require_rsort2();
11557
+ var gt = require_gt2();
11558
+ var lt = require_lt2();
11559
+ var eq = require_eq2();
11560
+ var neq = require_neq2();
11561
+ var gte = require_gte2();
11562
+ var lte = require_lte2();
11563
+ var cmp = require_cmp2();
11564
+ var coerce = require_coerce2();
11565
+ var Comparator = require_comparator2();
11566
+ var Range = require_range2();
11567
+ var satisfies = require_satisfies2();
11568
+ var toComparators = require_to_comparators2();
11569
+ var maxSatisfying = require_max_satisfying2();
11570
+ var minSatisfying = require_min_satisfying2();
11571
+ var minVersion = require_min_version2();
11572
+ var validRange = require_valid4();
11573
+ var outside = require_outside2();
11574
+ var gtr = require_gtr2();
11575
+ var ltr = require_ltr2();
11576
+ var intersects = require_intersects2();
11577
+ var simplifyRange = require_simplify2();
11578
+ var subset = require_subset2();
11579
+ module2.exports = {
11580
+ parse,
11581
+ valid,
11582
+ clean,
11583
+ inc,
11584
+ diff,
11585
+ major: major2,
11586
+ minor: minor2,
11587
+ patch,
11588
+ prerelease,
11589
+ compare,
11590
+ rcompare,
11591
+ compareLoose,
11592
+ compareBuild,
11593
+ sort,
11594
+ rsort,
11595
+ gt,
11596
+ lt,
11597
+ eq,
11598
+ neq,
11599
+ gte,
11600
+ lte,
11601
+ cmp,
11602
+ coerce,
11603
+ Comparator,
11604
+ Range,
11605
+ satisfies,
11606
+ toComparators,
11607
+ maxSatisfying,
11608
+ minSatisfying,
11609
+ minVersion,
11610
+ validRange,
11611
+ outside,
11612
+ gtr,
11613
+ ltr,
11614
+ intersects,
11615
+ simplifyRange,
11616
+ subset,
11617
+ SemVer,
11618
+ re: internalRe.re,
11619
+ src: internalRe.src,
11620
+ tokens: internalRe.t,
11621
+ SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
11622
+ RELEASE_TYPES: constants.RELEASE_TYPES,
11623
+ compareIdentifiers: identifiers.compareIdentifiers,
11624
+ rcompareIdentifiers: identifiers.rcompareIdentifiers
11625
+ };
11626
+ }
11627
+ });
11628
+
9654
11629
  // ../../node_modules/.pnpm/ini@2.0.0/node_modules/ini/ini.js
9655
11630
  var require_ini2 = __commonJS({
9656
11631
  "../../node_modules/.pnpm/ini@2.0.0/node_modules/ini/ini.js"(exports, module2) {
@@ -10711,8 +12686,10 @@ import { runtime as runtime4 } from "@terai/runtime";
10711
12686
 
10712
12687
  // ../logger/dist/index.mjs
10713
12688
  init_esm_shims();
12689
+
12690
+ // ../logger/dist/chunk-HH7ZIRTH.mjs
12691
+ init_esm_shims();
10714
12692
  import process2 from "process";
10715
- import process3 from "process";
10716
12693
  import os from "os";
10717
12694
  import tty from "tty";
10718
12695
  var ANSI_BACKGROUND_OFFSET = 10;
@@ -10779,10 +12756,10 @@ var styles = {
10779
12756
  bgWhiteBright: [107, 49]
10780
12757
  }
10781
12758
  };
10782
- var modifierNames = Object.keys(styles.modifier);
12759
+ Object.keys(styles.modifier);
10783
12760
  var foregroundColorNames = Object.keys(styles.color);
10784
12761
  var backgroundColorNames = Object.keys(styles.bgColor);
10785
- var colorNames = [...foregroundColorNames, ...backgroundColorNames];
12762
+ [...foregroundColorNames, ...backgroundColorNames];
10786
12763
  function assembleStyles() {
10787
12764
  const codes = /* @__PURE__ */ new Map();
10788
12765
  for (const [groupName, group] of Object.entries(styles)) {
@@ -10899,13 +12876,13 @@ function assembleStyles() {
10899
12876
  }
10900
12877
  var ansiStyles = assembleStyles();
10901
12878
  var ansi_styles_default = ansiStyles;
10902
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process3.argv) {
12879
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
10903
12880
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
10904
12881
  const position = argv.indexOf(prefix + flag);
10905
12882
  const terminatorPosition = argv.indexOf("--");
10906
12883
  return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
10907
12884
  }
10908
- var { env } = process3;
12885
+ var { env } = process2;
10909
12886
  var flagForceColor;
10910
12887
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
10911
12888
  flagForceColor = 0;
@@ -10961,7 +12938,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
10961
12938
  if (env.TERM === "dumb") {
10962
12939
  return min;
10963
12940
  }
10964
- if (process3.platform === "win32") {
12941
+ if (process2.platform === "win32") {
10965
12942
  const osRelease = os.release().split(".");
10966
12943
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
10967
12944
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
@@ -11197,7 +13174,7 @@ var applyStyle = (self, string) => {
11197
13174
  };
11198
13175
  Object.defineProperties(createChalk.prototype, styles2);
11199
13176
  var chalk = createChalk();
11200
- var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
13177
+ createChalk({ level: stderrColor ? stderrColor.level : 0 });
11201
13178
  var source_default = chalk;
11202
13179
  function log(message) {
11203
13180
  return process2.stdout.write(`${message}
@@ -11270,7 +13247,7 @@ init_esm_shims();
11270
13247
 
11271
13248
  // ../../node_modules/.pnpm/update-notifier@6.0.2/node_modules/update-notifier/update-notifier.js
11272
13249
  init_esm_shims();
11273
- import process10 from "process";
13250
+ import process9 from "process";
11274
13251
  import { spawn } from "child_process";
11275
13252
  import { fileURLToPath as fileURLToPath3 } from "url";
11276
13253
  import path6 from "path";
@@ -11580,10 +13557,10 @@ var styles3 = {
11580
13557
  bgWhiteBright: [107, 49]
11581
13558
  }
11582
13559
  };
11583
- var modifierNames2 = Object.keys(styles3.modifier);
13560
+ var modifierNames = Object.keys(styles3.modifier);
11584
13561
  var foregroundColorNames2 = Object.keys(styles3.color);
11585
13562
  var backgroundColorNames2 = Object.keys(styles3.bgColor);
11586
- var colorNames2 = [...foregroundColorNames2, ...backgroundColorNames2];
13563
+ var colorNames = [...foregroundColorNames2, ...backgroundColorNames2];
11587
13564
  function assembleStyles2() {
11588
13565
  const codes = /* @__PURE__ */ new Map();
11589
13566
  for (const [groupName, group] of Object.entries(styles3)) {
@@ -11703,16 +13680,16 @@ var ansi_styles_default2 = ansiStyles2;
11703
13680
 
11704
13681
  // ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
11705
13682
  init_esm_shims();
11706
- import process4 from "process";
13683
+ import process3 from "process";
11707
13684
  import os4 from "os";
11708
13685
  import tty2 from "tty";
11709
- function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : process4.argv) {
13686
+ function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : process3.argv) {
11710
13687
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
11711
13688
  const position = argv.indexOf(prefix + flag);
11712
13689
  const terminatorPosition = argv.indexOf("--");
11713
13690
  return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
11714
13691
  }
11715
- var { env: env3 } = process4;
13692
+ var { env: env3 } = process3;
11716
13693
  var flagForceColor2;
11717
13694
  if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
11718
13695
  flagForceColor2 = 0;
@@ -11768,7 +13745,7 @@ function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
11768
13745
  if (env3.TERM === "dumb") {
11769
13746
  return min;
11770
13747
  }
11771
- if (process4.platform === "win32") {
13748
+ if (process3.platform === "win32") {
11772
13749
  const osRelease = os4.release().split(".");
11773
13750
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
11774
13751
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
@@ -12009,7 +13986,7 @@ var applyStyle2 = (self, string) => {
12009
13986
  };
12010
13987
  Object.defineProperties(createChalk2.prototype, styles4);
12011
13988
  var chalk2 = createChalk2();
12012
- var chalkStderr2 = createChalk2({ level: stderrColor2 ? stderrColor2.level : 0 });
13989
+ var chalkStderr = createChalk2({ level: stderrColor2 ? stderrColor2.level : 0 });
12013
13990
  var source_default2 = chalk2;
12014
13991
 
12015
13992
  // ../../node_modules/.pnpm/update-notifier@6.0.2/node_modules/update-notifier/update-notifier.js
@@ -12698,7 +14675,7 @@ var AbortError = class extends RequestError {
12698
14675
 
12699
14676
  // ../../node_modules/.pnpm/got@12.6.1/node_modules/got/dist/source/core/index.js
12700
14677
  init_esm_shims();
12701
- import process6 from "process";
14678
+ import process5 from "process";
12702
14679
  import { Buffer as Buffer3 } from "buffer";
12703
14680
  import { Duplex } from "stream";
12704
14681
  import { URL as URL3, URLSearchParams as URLSearchParams2 } from "url";
@@ -13914,7 +15891,7 @@ var calculate_retry_delay_default = calculateRetryDelay;
13914
15891
 
13915
15892
  // ../../node_modules/.pnpm/got@12.6.1/node_modules/got/dist/source/core/options.js
13916
15893
  init_esm_shims();
13917
- import process5 from "process";
15894
+ import process4 from "process";
13918
15895
  import { promisify as promisify4, inspect } from "util";
13919
15896
  import { URL as URL2, URLSearchParams } from "url";
13920
15897
  import { checkServerIdentity } from "tls";
@@ -14315,7 +16292,7 @@ function parseLinkHeader(link) {
14315
16292
  }
14316
16293
 
14317
16294
  // ../../node_modules/.pnpm/got@12.6.1/node_modules/got/dist/source/core/options.js
14318
- var [major, minor] = process5.versions.node.split(".").map(Number);
16295
+ var [major, minor] = process4.versions.node.split(".").map(Number);
14319
16296
  function validateSearchParameters(searchParameters) {
14320
16297
  for (const key in searchParameters) {
14321
16298
  const value = searchParameters[key];
@@ -15946,7 +17923,7 @@ function isUnixSocketURL(url) {
15946
17923
 
15947
17924
  // ../../node_modules/.pnpm/got@12.6.1/node_modules/got/dist/source/core/index.js
15948
17925
  var { buffer: getBuffer } = import_get_stream2.default;
15949
- var supportsBrotli = dist_default.string(process6.versions.brotli);
17926
+ var supportsBrotli = dist_default.string(process5.versions.brotli);
15950
17927
  var methodsWithoutBody = /* @__PURE__ */ new Set(["GET", "HEAD"]);
15951
17928
  var cacheableStore = new WeakableMap();
15952
17929
  var redirectCodes = /* @__PURE__ */ new Set([300, 301, 302, 303, 304, 307, 308]);
@@ -16294,7 +18271,7 @@ var Request = class _Request extends Duplex {
16294
18271
  this.emit("retry", this.retryCount + 1, error2, (updatedOptions) => {
16295
18272
  const request = new _Request(options.url, updatedOptions, options);
16296
18273
  request.retryCount = this.retryCount + 1;
16297
- process6.nextTick(() => {
18274
+ process5.nextTick(() => {
16298
18275
  void request.flush();
16299
18276
  });
16300
18277
  return request;
@@ -17281,7 +19258,7 @@ function registryUrl(scope) {
17281
19258
 
17282
19259
  // ../../node_modules/.pnpm/package-json@8.1.1/node_modules/package-json/index.js
17283
19260
  var import_registry_auth_token = __toESM(require_registry_auth_token(), 1);
17284
- var import_semver2 = __toESM(require_semver2(), 1);
19261
+ var import_semver2 = __toESM(require_semver4(), 1);
17285
19262
  var agentOptions = {
17286
19263
  keepAlive: true,
17287
19264
  maxSockets: 50
@@ -17372,9 +19349,9 @@ async function latestVersion(packageName, options) {
17372
19349
 
17373
19350
  // ../../node_modules/.pnpm/is-npm@6.0.0/node_modules/is-npm/index.js
17374
19351
  init_esm_shims();
17375
- import process7 from "process";
17376
- var packageJson2 = process7.env.npm_package_json;
17377
- var userAgent = process7.env.npm_config_user_agent;
19352
+ import process6 from "process";
19353
+ var packageJson2 = process6.env.npm_package_json;
19354
+ var userAgent = process6.env.npm_config_user_agent;
17378
19355
  var isNpm6 = Boolean(userAgent && userAgent.startsWith("npm"));
17379
19356
  var isNpm7 = Boolean(packageJson2 && packageJson2.endsWith("package.json"));
17380
19357
  var isNpm = isNpm6 || isNpm7;
@@ -17398,16 +19375,16 @@ var dist_default3 = isYarnGlobal;
17398
19375
 
17399
19376
  // ../../node_modules/.pnpm/has-yarn@3.0.0/node_modules/has-yarn/index.js
17400
19377
  init_esm_shims();
17401
- import process8 from "process";
19378
+ import process7 from "process";
17402
19379
  import path5 from "path";
17403
19380
  import fs2 from "fs";
17404
- function hasYarn(cwd = process8.cwd()) {
19381
+ function hasYarn(cwd = process7.cwd()) {
17405
19382
  return fs2.existsSync(path5.resolve(cwd, "yarn.lock"));
17406
19383
  }
17407
19384
 
17408
19385
  // ../../node_modules/.pnpm/boxen@7.1.1/node_modules/boxen/index.js
17409
19386
  init_esm_shims();
17410
- import process9 from "process";
19387
+ import process8 from "process";
17411
19388
 
17412
19389
  // ../../node_modules/.pnpm/string-width@5.1.2/node_modules/string-width/index.js
17413
19390
  init_esm_shims();
@@ -17644,10 +19621,10 @@ var styles5 = {
17644
19621
  bgWhiteBright: [107, 49]
17645
19622
  }
17646
19623
  };
17647
- var modifierNames3 = Object.keys(styles5.modifier);
19624
+ var modifierNames2 = Object.keys(styles5.modifier);
17648
19625
  var foregroundColorNames3 = Object.keys(styles5.color);
17649
19626
  var backgroundColorNames3 = Object.keys(styles5.bgColor);
17650
- var colorNames3 = [...foregroundColorNames3, ...backgroundColorNames3];
19627
+ var colorNames2 = [...foregroundColorNames3, ...backgroundColorNames3];
17651
19628
  function assembleStyles3() {
17652
19629
  const codes = /* @__PURE__ */ new Map();
17653
19630
  for (const [groupName, group] of Object.entries(styles5)) {
@@ -17922,7 +19899,7 @@ var NEWLINE = "\n";
17922
19899
  var PAD = " ";
17923
19900
  var NONE = "none";
17924
19901
  var terminalColumns = () => {
17925
- const { env: env4, stdout, stderr } = process9;
19902
+ const { env: env4, stdout, stderr } = process8;
17926
19903
  if (stdout?.columns) {
17927
19904
  return stdout.columns;
17928
19905
  }
@@ -18118,8 +20095,8 @@ var boxContent = (content, contentWidth, options) => {
18118
20095
  return result;
18119
20096
  };
18120
20097
  var sanitizeOptions = (options) => {
18121
- if (options.fullscreen && process9?.stdout) {
18122
- let newDimensions = [process9.stdout.columns, process9.stdout.rows];
20098
+ if (options.fullscreen && process8?.stdout) {
20099
+ let newDimensions = [process8.stdout.columns, process8.stdout.rows];
18123
20100
  if (typeof options.fullscreen === "function") {
18124
20101
  newDimensions = options.fullscreen(...newDimensions);
18125
20102
  }
@@ -18296,7 +20273,7 @@ var UpdateNotifier = class {
18296
20273
  this._packageName = options.pkg.name;
18297
20274
  this.#packageVersion = options.pkg.version;
18298
20275
  this.#updateCheckInterval = typeof options.updateCheckInterval === "number" ? options.updateCheckInterval : ONE_DAY;
18299
- this.#isDisabled = "NO_UPDATE_NOTIFIER" in process10.env || process10.env.NODE_ENV === "test" || process10.argv.includes("--no-update-notifier") || import_is_ci.default;
20276
+ this.#isDisabled = "NO_UPDATE_NOTIFIER" in process9.env || process9.env.NODE_ENV === "test" || process9.argv.includes("--no-update-notifier") || import_is_ci.default;
18300
20277
  this._shouldNotifyInNpmScript = options.shouldNotifyInNpmScript;
18301
20278
  if (!this.#isDisabled) {
18302
20279
  try {
@@ -18308,7 +20285,7 @@ var UpdateNotifier = class {
18308
20285
  });
18309
20286
  } catch {
18310
20287
  const message = source_default2.yellow(format(" %s update check failed ", options.pkg.name)) + format("\n Try running with %s or get access ", source_default2.cyan("sudo")) + "\n to the local update config store via \n" + source_default2.cyan(format(" sudo chown -R $USER:$(id -gn $USER) %s ", xdgConfig));
18311
- process10.on("exit", () => {
20288
+ process9.on("exit", () => {
18312
20289
  console.error(boxen(message, { textAlignment: "center" }));
18313
20290
  });
18314
20291
  }
@@ -18326,7 +20303,7 @@ var UpdateNotifier = class {
18326
20303
  if (Date.now() - this.config.get("lastUpdateCheck") < this.#updateCheckInterval) {
18327
20304
  return;
18328
20305
  }
18329
- spawn(process10.execPath, [path6.join(__dirname2, "check.js"), JSON.stringify(this.#options)], {
20306
+ spawn(process9.execPath, [path6.join(__dirname2, "check.js"), JSON.stringify(this.#options)], {
18330
20307
  detached: true,
18331
20308
  stdio: "ignore"
18332
20309
  }).unref();
@@ -18343,7 +20320,7 @@ var UpdateNotifier = class {
18343
20320
  }
18344
20321
  notify(options) {
18345
20322
  const suppressForNpm = !this._shouldNotifyInNpmScript && isNpmOrYarn;
18346
- if (!process10.stdout.isTTY || suppressForNpm || !this.update || !import_semver3.default.gt(this.update.latest, this.update.current)) {
20323
+ if (!process9.stdout.isTTY || suppressForNpm || !this.update || !import_semver3.default.gt(this.update.latest, this.update.current)) {
18347
20324
  return this;
18348
20325
  }
18349
20326
  options = {
@@ -18382,12 +20359,12 @@ var UpdateNotifier = class {
18382
20359
  if (options.defer === false) {
18383
20360
  console.error(message);
18384
20361
  } else {
18385
- process10.on("exit", () => {
20362
+ process9.on("exit", () => {
18386
20363
  console.error(message);
18387
20364
  });
18388
- process10.on("SIGINT", () => {
20365
+ process9.on("SIGINT", () => {
18389
20366
  console.error("");
18390
- process10.exit();
20367
+ process9.exit();
18391
20368
  });
18392
20369
  }
18393
20370
  return this;
@@ -18404,7 +20381,7 @@ function updateNotifier(options) {
18404
20381
  // package.json
18405
20382
  var package_default = {
18406
20383
  name: "@terai/dev",
18407
- version: "0.0.6",
20384
+ version: "0.0.8",
18408
20385
  description: "The user-facing package for Terai",
18409
20386
  main: "dist/index.js",
18410
20387
  module: "dist/index.mjs",
@@ -18654,6 +20631,9 @@ import { extract } from "@terai/extractor";
18654
20631
 
18655
20632
  // ../generator/dist/index.mjs
18656
20633
  init_esm_shims();
20634
+
20635
+ // ../generator/dist/chunk-N4N3TZO6.mjs
20636
+ init_esm_shims();
18657
20637
  import { runtime } from "@terai/runtime";
18658
20638
  import { stringify } from "@terai/utils";
18659
20639
  async function generate({