@wise/wds-codemods 1.0.0-experimental-87acc58 → 1.0.0-experimental-0db39ee

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.
@@ -31,16 +31,16 @@ let node_fs_promises = require("node:fs/promises");
31
31
  node_fs_promises = __toESM(node_fs_promises);
32
32
  let node_path = require("node:path");
33
33
  node_path = __toESM(node_path);
34
- let __inquirer_prompts = require("@inquirer/prompts");
34
+ let _inquirer_prompts = require("@inquirer/prompts");
35
35
  let node_fs = require("node:fs");
36
36
 
37
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.js
37
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js
38
38
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39
39
  const SEMVER_SPEC_VERSION = "2.0.0";
40
- const MAX_LENGTH$2 = 256;
41
- const MAX_SAFE_INTEGER$1 = Number.MAX_SAFE_INTEGER || 9007199254740991;
42
- const MAX_SAFE_COMPONENT_LENGTH$1 = 16;
43
- const MAX_SAFE_BUILD_LENGTH$1 = MAX_LENGTH$2 - 6;
40
+ const MAX_LENGTH = 256;
41
+ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
42
+ const MAX_SAFE_COMPONENT_LENGTH = 16;
43
+ const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
44
44
  const RELEASE_TYPES = [
45
45
  "major",
46
46
  "premajor",
@@ -51,10 +51,10 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51
51
  "prerelease"
52
52
  ];
53
53
  module.exports = {
54
- MAX_LENGTH: MAX_LENGTH$2,
55
- MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH$1,
56
- MAX_SAFE_BUILD_LENGTH: MAX_SAFE_BUILD_LENGTH$1,
57
- MAX_SAFE_INTEGER: MAX_SAFE_INTEGER$1,
54
+ MAX_LENGTH,
55
+ MAX_SAFE_COMPONENT_LENGTH,
56
+ MAX_SAFE_BUILD_LENGTH,
57
+ MAX_SAFE_INTEGER,
58
58
  RELEASE_TYPES,
59
59
  SEMVER_SPEC_VERSION,
60
60
  FLAG_INCLUDE_PRERELEASE: 1,
@@ -63,28 +63,28 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
63
63
  }));
64
64
 
65
65
  //#endregion
66
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js
66
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js
67
67
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
68
- const debug$4 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
69
- module.exports = debug$4;
68
+ const debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
69
+ module.exports = debug;
70
70
  }));
71
71
 
72
72
  //#endregion
73
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.js
73
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js
74
74
  var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH: MAX_LENGTH$1 } = require_constants();
76
- const debug$3 = require_debug();
75
+ const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
76
+ const debug = require_debug();
77
77
  exports = module.exports = {};
78
- const re$4 = exports.re = [];
78
+ const re = exports.re = [];
79
79
  const safeRe = exports.safeRe = [];
80
80
  const src = exports.src = [];
81
81
  const safeSrc = exports.safeSrc = [];
82
- const t$4 = exports.t = {};
82
+ const t = exports.t = {};
83
83
  let R = 0;
84
84
  const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
85
85
  const safeRegexReplacements = [
86
86
  ["\\s", 1],
87
- ["\\d", MAX_LENGTH$1],
87
+ ["\\d", MAX_LENGTH],
88
88
  [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
89
89
  ];
90
90
  const makeSafeRegex = (value) => {
@@ -94,80 +94,79 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94
94
  const createToken = (name, value, isGlobal) => {
95
95
  const safe = makeSafeRegex(value);
96
96
  const index = R++;
97
- debug$3(name, index, value);
98
- t$4[name] = index;
97
+ debug(name, index, value);
98
+ t[name] = index;
99
99
  src[index] = value;
100
100
  safeSrc[index] = safe;
101
- re$4[index] = new RegExp(value, isGlobal ? "g" : void 0);
101
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
102
102
  safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
103
103
  };
104
104
  createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
105
105
  createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
106
106
  createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
107
- createToken("MAINVERSION", `(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})`);
108
- createToken("MAINVERSIONLOOSE", `(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})`);
109
- createToken("PRERELEASEIDENTIFIER", `(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIER]})`);
110
- createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIERLOOSE]})`);
111
- createToken("PRERELEASE", `(?:-(${src[t$4.PRERELEASEIDENTIFIER]}(?:\\.${src[t$4.PRERELEASEIDENTIFIER]})*))`);
112
- createToken("PRERELEASELOOSE", `(?:-?(${src[t$4.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t$4.PRERELEASEIDENTIFIERLOOSE]})*))`);
107
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
108
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
109
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
110
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
111
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
112
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
113
113
  createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
114
- createToken("BUILD", `(?:\\+(${src[t$4.BUILDIDENTIFIER]}(?:\\.${src[t$4.BUILDIDENTIFIER]})*))`);
115
- createToken("FULLPLAIN", `v?${src[t$4.MAINVERSION]}${src[t$4.PRERELEASE]}?${src[t$4.BUILD]}?`);
116
- createToken("FULL", `^${src[t$4.FULLPLAIN]}$`);
117
- createToken("LOOSEPLAIN", `[v=\\s]*${src[t$4.MAINVERSIONLOOSE]}${src[t$4.PRERELEASELOOSE]}?${src[t$4.BUILD]}?`);
118
- createToken("LOOSE", `^${src[t$4.LOOSEPLAIN]}$`);
114
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
115
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
116
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
117
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
118
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
119
119
  createToken("GTLT", "((?:<|>)?=?)");
120
- createToken("XRANGEIDENTIFIERLOOSE", `${src[t$4.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
121
- createToken("XRANGEIDENTIFIER", `${src[t$4.NUMERICIDENTIFIER]}|x|X|\\*`);
122
- createToken("XRANGEPLAIN", `[v=\\s]*(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:${src[t$4.PRERELEASE]})?${src[t$4.BUILD]}?)?)?`);
123
- createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:${src[t$4.PRERELEASELOOSE]})?${src[t$4.BUILD]}?)?)?`);
124
- createToken("XRANGE", `^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAIN]}$`);
125
- createToken("XRANGELOOSE", `^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAINLOOSE]}$`);
120
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
121
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
122
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
123
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
124
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
125
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
126
126
  createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
127
- createToken("COERCE", `${src[t$4.COERCEPLAIN]}(?:$|[^\\d])`);
128
- createToken("COERCEFULL", src[t$4.COERCEPLAIN] + `(?:${src[t$4.PRERELEASE]})?(?:${src[t$4.BUILD]})?(?:$|[^\\d])`);
129
- createToken("COERCERTL", src[t$4.COERCE], true);
130
- createToken("COERCERTLFULL", src[t$4.COERCEFULL], true);
127
+ createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
128
+ createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
129
+ createToken("COERCERTL", src[t.COERCE], true);
130
+ createToken("COERCERTLFULL", src[t.COERCEFULL], true);
131
131
  createToken("LONETILDE", "(?:~>?)");
132
- createToken("TILDETRIM", `(\\s*)${src[t$4.LONETILDE]}\\s+`, true);
132
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
133
133
  exports.tildeTrimReplace = "$1~";
134
- createToken("TILDE", `^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAIN]}$`);
135
- createToken("TILDELOOSE", `^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAINLOOSE]}$`);
134
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
135
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
136
136
  createToken("LONECARET", "(?:\\^)");
137
- createToken("CARETTRIM", `(\\s*)${src[t$4.LONECARET]}\\s+`, true);
137
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
138
138
  exports.caretTrimReplace = "$1^";
139
- createToken("CARET", `^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAIN]}$`);
140
- createToken("CARETLOOSE", `^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAINLOOSE]}$`);
141
- createToken("COMPARATORLOOSE", `^${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]})$|^$`);
142
- createToken("COMPARATOR", `^${src[t$4.GTLT]}\\s*(${src[t$4.FULLPLAIN]})$|^$`);
143
- createToken("COMPARATORTRIM", `(\\s*)${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]}|${src[t$4.XRANGEPLAIN]})`, true);
139
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
140
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
141
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
142
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
143
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
144
144
  exports.comparatorTrimReplace = "$1$2$3";
145
- createToken("HYPHENRANGE", `^\\s*(${src[t$4.XRANGEPLAIN]})\\s+-\\s+(${src[t$4.XRANGEPLAIN]})\\s*$`);
146
- createToken("HYPHENRANGELOOSE", `^\\s*(${src[t$4.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t$4.XRANGEPLAINLOOSE]})\\s*$`);
145
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
146
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
147
147
  createToken("STAR", "(<|>)?=?\\s*\\*");
148
148
  createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
149
149
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
150
150
  }));
151
151
 
152
152
  //#endregion
153
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.js
153
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js
154
154
  var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
155
155
  const looseOption = Object.freeze({ loose: true });
156
156
  const emptyOpts = Object.freeze({});
157
- const parseOptions$3 = (options) => {
157
+ const parseOptions = (options) => {
158
158
  if (!options) return emptyOpts;
159
159
  if (typeof options !== "object") return looseOption;
160
160
  return options;
161
161
  };
162
- module.exports = parseOptions$3;
162
+ module.exports = parseOptions;
163
163
  }));
164
164
 
165
165
  //#endregion
166
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.js
166
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js
167
167
  var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
168
168
  const numeric = /^[0-9]+$/;
169
- const compareIdentifiers$1 = (a, b) => {
170
- if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
169
+ const compareIdentifiers = (a, b) => {
171
170
  const anum = numeric.test(a);
172
171
  const bnum = numeric.test(b);
173
172
  if (anum && bnum) {
@@ -176,33 +175,33 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
176
175
  }
177
176
  return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
178
177
  };
179
- const rcompareIdentifiers = (a, b) => compareIdentifiers$1(b, a);
178
+ const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
180
179
  module.exports = {
181
- compareIdentifiers: compareIdentifiers$1,
180
+ compareIdentifiers,
182
181
  rcompareIdentifiers
183
182
  };
184
183
  }));
185
184
 
186
185
  //#endregion
187
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.js
186
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js
188
187
  var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
189
- const debug$2 = require_debug();
188
+ const debug = require_debug();
190
189
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
191
- const { safeRe: re$3, t: t$3 } = require_re();
192
- const parseOptions$2 = require_parse_options();
190
+ const { safeRe: re, t } = require_re();
191
+ const parseOptions = require_parse_options();
193
192
  const { compareIdentifiers } = require_identifiers();
194
- var SemVer$15 = class SemVer$15 {
193
+ var SemVer = class SemVer {
195
194
  constructor(version, options) {
196
- options = parseOptions$2(options);
197
- if (version instanceof SemVer$15) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
195
+ options = parseOptions(options);
196
+ if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
198
197
  else version = version.version;
199
198
  else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
200
199
  if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
201
- debug$2("SemVer", version, options);
200
+ debug("SemVer", version, options);
202
201
  this.options = options;
203
202
  this.loose = !!options.loose;
204
203
  this.includePrerelease = !!options.includePrerelease;
205
- const m = version.trim().match(options.loose ? re$3[t$3.LOOSE] : re$3[t$3.FULL]);
204
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
206
205
  if (!m) throw new TypeError(`Invalid Version: ${version}`);
207
206
  this.raw = version;
208
207
  this.major = +m[1];
@@ -231,26 +230,20 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
231
230
  return this.version;
232
231
  }
233
232
  compare(other) {
234
- debug$2("SemVer.compare", this.version, this.options, other);
235
- if (!(other instanceof SemVer$15)) {
233
+ debug("SemVer.compare", this.version, this.options, other);
234
+ if (!(other instanceof SemVer)) {
236
235
  if (typeof other === "string" && other === this.version) return 0;
237
- other = new SemVer$15(other, this.options);
236
+ other = new SemVer(other, this.options);
238
237
  }
239
238
  if (other.version === this.version) return 0;
240
239
  return this.compareMain(other) || this.comparePre(other);
241
240
  }
242
241
  compareMain(other) {
243
- if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
244
- if (this.major < other.major) return -1;
245
- if (this.major > other.major) return 1;
246
- if (this.minor < other.minor) return -1;
247
- if (this.minor > other.minor) return 1;
248
- if (this.patch < other.patch) return -1;
249
- if (this.patch > other.patch) return 1;
250
- return 0;
242
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
243
+ return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
251
244
  }
252
245
  comparePre(other) {
253
- if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
246
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
254
247
  if (this.prerelease.length && !other.prerelease.length) return -1;
255
248
  else if (!this.prerelease.length && other.prerelease.length) return 1;
256
249
  else if (!this.prerelease.length && !other.prerelease.length) return 0;
@@ -258,7 +251,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
258
251
  do {
259
252
  const a = this.prerelease[i];
260
253
  const b = other.prerelease[i];
261
- debug$2("prerelease compare", i, a, b);
254
+ debug("prerelease compare", i, a, b);
262
255
  if (a === void 0 && b === void 0) return 0;
263
256
  else if (b === void 0) return 1;
264
257
  else if (a === void 0) return -1;
@@ -267,12 +260,12 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
267
260
  } while (++i);
268
261
  }
269
262
  compareBuild(other) {
270
- if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
263
+ if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
271
264
  let i = 0;
272
265
  do {
273
266
  const a = this.build[i];
274
267
  const b = other.build[i];
275
- debug$2("build compare", i, a, b);
268
+ debug("build compare", i, a, b);
276
269
  if (a === void 0 && b === void 0) return 0;
277
270
  else if (b === void 0) return 1;
278
271
  else if (a === void 0) return -1;
@@ -284,7 +277,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
284
277
  if (release.startsWith("pre")) {
285
278
  if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
286
279
  if (identifier) {
287
- const match = `-${identifier}`.match(this.options.loose ? re$3[t$3.PRERELEASELOOSE] : re$3[t$3.PRERELEASE]);
280
+ const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
288
281
  if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
289
282
  }
290
283
  }
@@ -345,11 +338,11 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
345
338
  }
346
339
  }
347
340
  if (identifier) {
348
- let prerelease$2 = [identifier, base];
349
- if (identifierBase === false) prerelease$2 = [identifier];
341
+ let prerelease = [identifier, base];
342
+ if (identifierBase === false) prerelease = [identifier];
350
343
  if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
351
- if (isNaN(this.prerelease[1])) this.prerelease = prerelease$2;
352
- } else this.prerelease = prerelease$2;
344
+ if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
345
+ } else this.prerelease = prerelease;
353
346
  }
354
347
  break;
355
348
  }
@@ -360,73 +353,73 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
360
353
  return this;
361
354
  }
362
355
  };
363
- module.exports = SemVer$15;
356
+ module.exports = SemVer;
364
357
  }));
365
358
 
366
359
  //#endregion
367
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js
360
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js
368
361
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
369
- const SemVer$14 = require_semver$1();
370
- const parse$6 = (version, options, throwErrors = false) => {
371
- if (version instanceof SemVer$14) return version;
362
+ const SemVer = require_semver$1();
363
+ const parse = (version, options, throwErrors = false) => {
364
+ if (version instanceof SemVer) return version;
372
365
  try {
373
- return new SemVer$14(version, options);
366
+ return new SemVer(version, options);
374
367
  } catch (er) {
375
368
  if (!throwErrors) return null;
376
369
  throw er;
377
370
  }
378
371
  };
379
- module.exports = parse$6;
372
+ module.exports = parse;
380
373
  }));
381
374
 
382
375
  //#endregion
383
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.js
376
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js
384
377
  var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
385
- const parse$5 = require_parse();
386
- const valid$1 = (version, options) => {
387
- const v = parse$5(version, options);
378
+ const parse = require_parse();
379
+ const valid = (version, options) => {
380
+ const v = parse(version, options);
388
381
  return v ? v.version : null;
389
382
  };
390
- module.exports = valid$1;
383
+ module.exports = valid;
391
384
  }));
392
385
 
393
386
  //#endregion
394
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.js
387
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js
395
388
  var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
396
- const parse$4 = require_parse();
397
- const clean$1 = (version, options) => {
398
- const s = parse$4(version.trim().replace(/^[=v]+/, ""), options);
389
+ const parse = require_parse();
390
+ const clean = (version, options) => {
391
+ const s = parse(version.trim().replace(/^[=v]+/, ""), options);
399
392
  return s ? s.version : null;
400
393
  };
401
- module.exports = clean$1;
394
+ module.exports = clean;
402
395
  }));
403
396
 
404
397
  //#endregion
405
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.js
398
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js
406
399
  var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
407
- const SemVer$13 = require_semver$1();
408
- const inc$1 = (version, release, options, identifier, identifierBase) => {
400
+ const SemVer = require_semver$1();
401
+ const inc = (version, release, options, identifier, identifierBase) => {
409
402
  if (typeof options === "string") {
410
403
  identifierBase = identifier;
411
404
  identifier = options;
412
405
  options = void 0;
413
406
  }
414
407
  try {
415
- return new SemVer$13(version instanceof SemVer$13 ? version.version : version, options).inc(release, identifier, identifierBase).version;
408
+ return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
416
409
  } catch (er) {
417
410
  return null;
418
411
  }
419
412
  };
420
- module.exports = inc$1;
413
+ module.exports = inc;
421
414
  }));
422
415
 
423
416
  //#endregion
424
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js
417
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js
425
418
  var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
426
- const parse$3 = require_parse();
427
- const diff$1 = (version1, version2) => {
428
- const v1 = parse$3(version1, null, true);
429
- const v2 = parse$3(version2, null, true);
419
+ const parse = require_parse();
420
+ const diff = (version1, version2) => {
421
+ const v1 = parse(version1, null, true);
422
+ const v2 = parse(version2, null, true);
430
423
  const comparison = v1.compare(v2);
431
424
  if (comparison === 0) return null;
432
425
  const v1Higher = comparison > 0;
@@ -446,154 +439,154 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
446
439
  if (v1.patch !== v2.patch) return prefix + "patch";
447
440
  return "prerelease";
448
441
  };
449
- module.exports = diff$1;
442
+ module.exports = diff;
450
443
  }));
451
444
 
452
445
  //#endregion
453
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.js
446
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js
454
447
  var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
455
- const SemVer$12 = require_semver$1();
456
- const major$1 = (a, loose) => new SemVer$12(a, loose).major;
457
- module.exports = major$1;
448
+ const SemVer = require_semver$1();
449
+ const major = (a, loose) => new SemVer(a, loose).major;
450
+ module.exports = major;
458
451
  }));
459
452
 
460
453
  //#endregion
461
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.js
454
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js
462
455
  var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
463
- const SemVer$11 = require_semver$1();
464
- const minor$1 = (a, loose) => new SemVer$11(a, loose).minor;
465
- module.exports = minor$1;
456
+ const SemVer = require_semver$1();
457
+ const minor = (a, loose) => new SemVer(a, loose).minor;
458
+ module.exports = minor;
466
459
  }));
467
460
 
468
461
  //#endregion
469
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.js
462
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js
470
463
  var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
471
- const SemVer$10 = require_semver$1();
472
- const patch$1 = (a, loose) => new SemVer$10(a, loose).patch;
473
- module.exports = patch$1;
464
+ const SemVer = require_semver$1();
465
+ const patch = (a, loose) => new SemVer(a, loose).patch;
466
+ module.exports = patch;
474
467
  }));
475
468
 
476
469
  //#endregion
477
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.js
470
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js
478
471
  var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
479
- const parse$2 = require_parse();
480
- const prerelease$1 = (version, options) => {
481
- const parsed = parse$2(version, options);
472
+ const parse = require_parse();
473
+ const prerelease = (version, options) => {
474
+ const parsed = parse(version, options);
482
475
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
483
476
  };
484
- module.exports = prerelease$1;
477
+ module.exports = prerelease;
485
478
  }));
486
479
 
487
480
  //#endregion
488
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js
481
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js
489
482
  var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
490
- const SemVer$9 = require_semver$1();
491
- const compare$11 = (a, b, loose) => new SemVer$9(a, loose).compare(new SemVer$9(b, loose));
492
- module.exports = compare$11;
483
+ const SemVer = require_semver$1();
484
+ const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
485
+ module.exports = compare;
493
486
  }));
494
487
 
495
488
  //#endregion
496
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rcompare.js
489
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js
497
490
  var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
498
- const compare$10 = require_compare();
499
- const rcompare$1 = (a, b, loose) => compare$10(b, a, loose);
500
- module.exports = rcompare$1;
491
+ const compare = require_compare();
492
+ const rcompare = (a, b, loose) => compare(b, a, loose);
493
+ module.exports = rcompare;
501
494
  }));
502
495
 
503
496
  //#endregion
504
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-loose.js
497
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js
505
498
  var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
506
- const compare$9 = require_compare();
507
- const compareLoose$1 = (a, b) => compare$9(a, b, true);
508
- module.exports = compareLoose$1;
499
+ const compare = require_compare();
500
+ const compareLoose = (a, b) => compare(a, b, true);
501
+ module.exports = compareLoose;
509
502
  }));
510
503
 
511
504
  //#endregion
512
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.js
505
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js
513
506
  var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
514
- const SemVer$8 = require_semver$1();
515
- const compareBuild$3 = (a, b, loose) => {
516
- const versionA = new SemVer$8(a, loose);
517
- const versionB = new SemVer$8(b, loose);
507
+ const SemVer = require_semver$1();
508
+ const compareBuild = (a, b, loose) => {
509
+ const versionA = new SemVer(a, loose);
510
+ const versionB = new SemVer(b, loose);
518
511
  return versionA.compare(versionB) || versionA.compareBuild(versionB);
519
512
  };
520
- module.exports = compareBuild$3;
513
+ module.exports = compareBuild;
521
514
  }));
522
515
 
523
516
  //#endregion
524
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/sort.js
517
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js
525
518
  var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
526
- const compareBuild$2 = require_compare_build();
527
- const sort$1 = (list$1, loose) => list$1.sort((a, b) => compareBuild$2(a, b, loose));
528
- module.exports = sort$1;
519
+ const compareBuild = require_compare_build();
520
+ const sort = (list$1, loose) => list$1.sort((a, b) => compareBuild(a, b, loose));
521
+ module.exports = sort;
529
522
  }));
530
523
 
531
524
  //#endregion
532
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/rsort.js
525
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js
533
526
  var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
534
- const compareBuild$1 = require_compare_build();
535
- const rsort$1 = (list$1, loose) => list$1.sort((a, b) => compareBuild$1(b, a, loose));
536
- module.exports = rsort$1;
527
+ const compareBuild = require_compare_build();
528
+ const rsort = (list$1, loose) => list$1.sort((a, b) => compareBuild(b, a, loose));
529
+ module.exports = rsort;
537
530
  }));
538
531
 
539
532
  //#endregion
540
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.js
533
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js
541
534
  var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
542
- const compare$8 = require_compare();
543
- const gt$4 = (a, b, loose) => compare$8(a, b, loose) > 0;
544
- module.exports = gt$4;
535
+ const compare = require_compare();
536
+ const gt = (a, b, loose) => compare(a, b, loose) > 0;
537
+ module.exports = gt;
545
538
  }));
546
539
 
547
540
  //#endregion
548
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lt.js
541
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js
549
542
  var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
550
- const compare$7 = require_compare();
551
- const lt$3 = (a, b, loose) => compare$7(a, b, loose) < 0;
552
- module.exports = lt$3;
543
+ const compare = require_compare();
544
+ const lt = (a, b, loose) => compare(a, b, loose) < 0;
545
+ module.exports = lt;
553
546
  }));
554
547
 
555
548
  //#endregion
556
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/eq.js
549
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js
557
550
  var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
558
- const compare$6 = require_compare();
559
- const eq$2 = (a, b, loose) => compare$6(a, b, loose) === 0;
560
- module.exports = eq$2;
551
+ const compare = require_compare();
552
+ const eq = (a, b, loose) => compare(a, b, loose) === 0;
553
+ module.exports = eq;
561
554
  }));
562
555
 
563
556
  //#endregion
564
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/neq.js
557
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js
565
558
  var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
566
- const compare$5 = require_compare();
567
- const neq$2 = (a, b, loose) => compare$5(a, b, loose) !== 0;
568
- module.exports = neq$2;
559
+ const compare = require_compare();
560
+ const neq = (a, b, loose) => compare(a, b, loose) !== 0;
561
+ module.exports = neq;
569
562
  }));
570
563
 
571
564
  //#endregion
572
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gte.js
565
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js
573
566
  var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
574
- const compare$4 = require_compare();
575
- const gte$3 = (a, b, loose) => compare$4(a, b, loose) >= 0;
576
- module.exports = gte$3;
567
+ const compare = require_compare();
568
+ const gte = (a, b, loose) => compare(a, b, loose) >= 0;
569
+ module.exports = gte;
577
570
  }));
578
571
 
579
572
  //#endregion
580
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/lte.js
573
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js
581
574
  var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
582
- const compare$3 = require_compare();
583
- const lte$3 = (a, b, loose) => compare$3(a, b, loose) <= 0;
584
- module.exports = lte$3;
575
+ const compare = require_compare();
576
+ const lte = (a, b, loose) => compare(a, b, loose) <= 0;
577
+ module.exports = lte;
585
578
  }));
586
579
 
587
580
  //#endregion
588
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/cmp.js
581
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js
589
582
  var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
590
- const eq$1 = require_eq();
591
- const neq$1 = require_neq();
592
- const gt$3 = require_gt();
593
- const gte$2 = require_gte();
594
- const lt$2 = require_lt();
595
- const lte$2 = require_lte();
596
- const cmp$2 = (a, op, b, loose) => {
583
+ const eq = require_eq();
584
+ const neq = require_neq();
585
+ const gt = require_gt();
586
+ const gte = require_gte();
587
+ const lt = require_lt();
588
+ const lte = require_lte();
589
+ const cmp = (a, op, b, loose) => {
597
590
  switch (op) {
598
591
  case "===":
599
592
  if (typeof a === "object") a = a.version;
@@ -605,33 +598,33 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
605
598
  return a !== b;
606
599
  case "":
607
600
  case "=":
608
- case "==": return eq$1(a, b, loose);
609
- case "!=": return neq$1(a, b, loose);
610
- case ">": return gt$3(a, b, loose);
611
- case ">=": return gte$2(a, b, loose);
612
- case "<": return lt$2(a, b, loose);
613
- case "<=": return lte$2(a, b, loose);
601
+ case "==": return eq(a, b, loose);
602
+ case "!=": return neq(a, b, loose);
603
+ case ">": return gt(a, b, loose);
604
+ case ">=": return gte(a, b, loose);
605
+ case "<": return lt(a, b, loose);
606
+ case "<=": return lte(a, b, loose);
614
607
  default: throw new TypeError(`Invalid operator: ${op}`);
615
608
  }
616
609
  };
617
- module.exports = cmp$2;
610
+ module.exports = cmp;
618
611
  }));
619
612
 
620
613
  //#endregion
621
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js
614
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js
622
615
  var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
623
- const SemVer$7 = require_semver$1();
624
- const parse$1 = require_parse();
625
- const { safeRe: re$2, t: t$2 } = require_re();
626
- const coerce$1 = (version, options) => {
627
- if (version instanceof SemVer$7) return version;
616
+ const SemVer = require_semver$1();
617
+ const parse = require_parse();
618
+ const { safeRe: re, t } = require_re();
619
+ const coerce = (version, options) => {
620
+ if (version instanceof SemVer) return version;
628
621
  if (typeof version === "number") version = String(version);
629
622
  if (typeof version !== "string") return null;
630
623
  options = options || {};
631
624
  let match = null;
632
- if (!options.rtl) match = version.match(options.includePrerelease ? re$2[t$2.COERCEFULL] : re$2[t$2.COERCE]);
625
+ if (!options.rtl) match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
633
626
  else {
634
- const coerceRtlRegex = options.includePrerelease ? re$2[t$2.COERCERTLFULL] : re$2[t$2.COERCERTL];
627
+ const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
635
628
  let next;
636
629
  while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
637
630
  if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
@@ -640,14 +633,14 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
640
633
  coerceRtlRegex.lastIndex = -1;
641
634
  }
642
635
  if (match === null) return null;
643
- const major$2 = match[2];
644
- return parse$1(`${major$2}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
636
+ const major = match[2];
637
+ return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
645
638
  };
646
- module.exports = coerce$1;
639
+ module.exports = coerce;
647
640
  }));
648
641
 
649
642
  //#endregion
650
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/lrucache.js
643
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js
651
644
  var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
652
645
  var LRUCache = class {
653
646
  constructor() {
@@ -681,15 +674,15 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
681
674
  }));
682
675
 
683
676
  //#endregion
684
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/range.js
677
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js
685
678
  var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
686
679
  const SPACE_CHARACTERS = /\s+/g;
687
- var Range$11 = class Range$11 {
680
+ var Range = class Range {
688
681
  constructor(range, options) {
689
- options = parseOptions$1(options);
690
- if (range instanceof Range$11) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
691
- else return new Range$11(range.raw, options);
692
- if (range instanceof Comparator$4) {
682
+ options = parseOptions(options);
683
+ if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
684
+ else return new Range(range.raw, options);
685
+ if (range instanceof Comparator) {
693
686
  this.raw = range.value;
694
687
  this.set = [[range]];
695
688
  this.formatted = void 0;
@@ -739,23 +732,23 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
739
732
  const cached = cache.get(memoKey);
740
733
  if (cached) return cached;
741
734
  const loose = this.options.loose;
742
- const hr = loose ? re$1[t$1.HYPHENRANGELOOSE] : re$1[t$1.HYPHENRANGE];
735
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
743
736
  range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
744
- debug$1("hyphen replace", range);
745
- range = range.replace(re$1[t$1.COMPARATORTRIM], comparatorTrimReplace);
746
- debug$1("comparator trim", range);
747
- range = range.replace(re$1[t$1.TILDETRIM], tildeTrimReplace);
748
- debug$1("tilde trim", range);
749
- range = range.replace(re$1[t$1.CARETTRIM], caretTrimReplace);
750
- debug$1("caret trim", range);
737
+ debug("hyphen replace", range);
738
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
739
+ debug("comparator trim", range);
740
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
741
+ debug("tilde trim", range);
742
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace);
743
+ debug("caret trim", range);
751
744
  let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
752
745
  if (loose) rangeList = rangeList.filter((comp) => {
753
- debug$1("loose invalid filter", comp, this.options);
754
- return !!comp.match(re$1[t$1.COMPARATORLOOSE]);
746
+ debug("loose invalid filter", comp, this.options);
747
+ return !!comp.match(re[t.COMPARATORLOOSE]);
755
748
  });
756
- debug$1("range list", rangeList);
749
+ debug("range list", rangeList);
757
750
  const rangeMap = /* @__PURE__ */ new Map();
758
- const comparators = rangeList.map((comp) => new Comparator$4(comp, this.options));
751
+ const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
759
752
  for (const comp of comparators) {
760
753
  if (isNullSet(comp)) return [comp];
761
754
  rangeMap.set(comp.value, comp);
@@ -766,7 +759,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
766
759
  return result;
767
760
  }
768
761
  intersects(range, options) {
769
- if (!(range instanceof Range$11)) throw new TypeError("a Range is required");
762
+ if (!(range instanceof Range)) throw new TypeError("a Range is required");
770
763
  return this.set.some((thisComparators) => {
771
764
  return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
772
765
  return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
@@ -780,7 +773,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
780
773
  test(version) {
781
774
  if (!version) return false;
782
775
  if (typeof version === "string") try {
783
- version = new SemVer$6(version, this.options);
776
+ version = new SemVer(version, this.options);
784
777
  } catch (er) {
785
778
  return false;
786
779
  }
@@ -788,13 +781,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
788
781
  return false;
789
782
  }
790
783
  };
791
- module.exports = Range$11;
784
+ module.exports = Range;
792
785
  const cache = new (require_lrucache())();
793
- const parseOptions$1 = require_parse_options();
794
- const Comparator$4 = require_comparator();
795
- const debug$1 = require_debug();
796
- const SemVer$6 = require_semver$1();
797
- const { safeRe: re$1, t: t$1, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
786
+ const parseOptions = require_parse_options();
787
+ const Comparator = require_comparator();
788
+ const debug = require_debug();
789
+ const SemVer = require_semver$1();
790
+ const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
798
791
  const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
799
792
  const isNullSet = (c) => c.value === "<0.0.0-0";
800
793
  const isAny = (c) => c.value === "";
@@ -811,16 +804,15 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
811
804
  return result;
812
805
  };
813
806
  const parseComparator = (comp, options) => {
814
- comp = comp.replace(re$1[t$1.BUILD], "");
815
- debug$1("comp", comp, options);
807
+ debug("comp", comp, options);
816
808
  comp = replaceCarets(comp, options);
817
- debug$1("caret", comp);
809
+ debug("caret", comp);
818
810
  comp = replaceTildes(comp, options);
819
- debug$1("tildes", comp);
811
+ debug("tildes", comp);
820
812
  comp = replaceXRanges(comp, options);
821
- debug$1("xrange", comp);
813
+ debug("xrange", comp);
822
814
  comp = replaceStars(comp, options);
823
- debug$1("stars", comp);
815
+ debug("stars", comp);
824
816
  return comp;
825
817
  };
826
818
  const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
@@ -828,18 +820,18 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
828
820
  return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
829
821
  };
830
822
  const replaceTilde = (comp, options) => {
831
- const r = options.loose ? re$1[t$1.TILDELOOSE] : re$1[t$1.TILDE];
823
+ const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
832
824
  return comp.replace(r, (_, M, m, p, pr) => {
833
- debug$1("tilde", comp, _, M, m, p, pr);
825
+ debug("tilde", comp, _, M, m, p, pr);
834
826
  let ret;
835
827
  if (isX(M)) ret = "";
836
828
  else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
837
829
  else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
838
830
  else if (pr) {
839
- debug$1("replaceTilde pr", pr);
831
+ debug("replaceTilde pr", pr);
840
832
  ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
841
833
  } else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
842
- debug$1("tilde return", ret);
834
+ debug("tilde return", ret);
843
835
  return ret;
844
836
  });
845
837
  };
@@ -847,40 +839,40 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
847
839
  return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
848
840
  };
849
841
  const replaceCaret = (comp, options) => {
850
- debug$1("caret", comp, options);
851
- const r = options.loose ? re$1[t$1.CARETLOOSE] : re$1[t$1.CARET];
842
+ debug("caret", comp, options);
843
+ const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
852
844
  const z = options.includePrerelease ? "-0" : "";
853
845
  return comp.replace(r, (_, M, m, p, pr) => {
854
- debug$1("caret", comp, _, M, m, p, pr);
846
+ debug("caret", comp, _, M, m, p, pr);
855
847
  let ret;
856
848
  if (isX(M)) ret = "";
857
849
  else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
858
850
  else if (isX(p)) if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
859
851
  else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
860
852
  else if (pr) {
861
- debug$1("replaceCaret pr", pr);
853
+ debug("replaceCaret pr", pr);
862
854
  if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
863
855
  else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
864
856
  else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
865
857
  } else {
866
- debug$1("no pr");
858
+ debug("no pr");
867
859
  if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
868
860
  else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
869
861
  else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
870
862
  }
871
- debug$1("caret return", ret);
863
+ debug("caret return", ret);
872
864
  return ret;
873
865
  });
874
866
  };
875
867
  const replaceXRanges = (comp, options) => {
876
- debug$1("replaceXRanges", comp, options);
868
+ debug("replaceXRanges", comp, options);
877
869
  return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
878
870
  };
879
871
  const replaceXRange = (comp, options) => {
880
872
  comp = comp.trim();
881
- const r = options.loose ? re$1[t$1.XRANGELOOSE] : re$1[t$1.XRANGE];
873
+ const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
882
874
  return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
883
- debug$1("xRange", comp, ret, gtlt, M, m, p, pr);
875
+ debug("xRange", comp, ret, gtlt, M, m, p, pr);
884
876
  const xM = isX(M);
885
877
  const xm = xM || isX(m);
886
878
  const xp = xm || isX(p);
@@ -911,17 +903,17 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
911
903
  ret = `${gtlt + M}.${m}.${p}${pr}`;
912
904
  } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
913
905
  else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
914
- debug$1("xRange return", ret);
906
+ debug("xRange return", ret);
915
907
  return ret;
916
908
  });
917
909
  };
918
910
  const replaceStars = (comp, options) => {
919
- debug$1("replaceStars", comp, options);
920
- return comp.trim().replace(re$1[t$1.STAR], "");
911
+ debug("replaceStars", comp, options);
912
+ return comp.trim().replace(re[t.STAR], "");
921
913
  };
922
914
  const replaceGTE0 = (comp, options) => {
923
- debug$1("replaceGTE0", comp, options);
924
- return comp.trim().replace(re$1[options.includePrerelease ? t$1.GTE0PRE : t$1.GTE0], "");
915
+ debug("replaceGTE0", comp, options);
916
+ return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
925
917
  };
926
918
  const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
927
919
  if (isX(fM)) from = "";
@@ -941,8 +933,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
941
933
  for (let i = 0; i < set.length; i++) if (!set[i].test(version)) return false;
942
934
  if (version.prerelease.length && !options.includePrerelease) {
943
935
  for (let i = 0; i < set.length; i++) {
944
- debug$1(set[i].semver);
945
- if (set[i].semver === Comparator$4.ANY) continue;
936
+ debug(set[i].semver);
937
+ if (set[i].semver === Comparator.ANY) continue;
946
938
  if (set[i].semver.prerelease.length > 0) {
947
939
  const allowed = set[i].semver;
948
940
  if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;
@@ -955,23 +947,23 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
955
947
  }));
956
948
 
957
949
  //#endregion
958
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/comparator.js
950
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js
959
951
  var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
960
- const ANY$2 = Symbol("SemVer ANY");
961
- var Comparator$3 = class Comparator$3 {
952
+ const ANY = Symbol("SemVer ANY");
953
+ var Comparator = class Comparator {
962
954
  static get ANY() {
963
- return ANY$2;
955
+ return ANY;
964
956
  }
965
957
  constructor(comp, options) {
966
958
  options = parseOptions(options);
967
- if (comp instanceof Comparator$3) if (comp.loose === !!options.loose) return comp;
959
+ if (comp instanceof Comparator) if (comp.loose === !!options.loose) return comp;
968
960
  else comp = comp.value;
969
961
  comp = comp.trim().split(/\s+/).join(" ");
970
962
  debug("comparator", comp, options);
971
963
  this.options = options;
972
964
  this.loose = !!options.loose;
973
965
  this.parse(comp);
974
- if (this.semver === ANY$2) this.value = "";
966
+ if (this.semver === ANY) this.value = "";
975
967
  else this.value = this.operator + this.semver.version;
976
968
  debug("comp", this);
977
969
  }
@@ -981,30 +973,30 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
981
973
  if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
982
974
  this.operator = m[1] !== void 0 ? m[1] : "";
983
975
  if (this.operator === "=") this.operator = "";
984
- if (!m[2]) this.semver = ANY$2;
985
- else this.semver = new SemVer$5(m[2], this.options.loose);
976
+ if (!m[2]) this.semver = ANY;
977
+ else this.semver = new SemVer(m[2], this.options.loose);
986
978
  }
987
979
  toString() {
988
980
  return this.value;
989
981
  }
990
982
  test(version) {
991
983
  debug("Comparator.test", version, this.options.loose);
992
- if (this.semver === ANY$2 || version === ANY$2) return true;
984
+ if (this.semver === ANY || version === ANY) return true;
993
985
  if (typeof version === "string") try {
994
- version = new SemVer$5(version, this.options);
986
+ version = new SemVer(version, this.options);
995
987
  } catch (er) {
996
988
  return false;
997
989
  }
998
- return cmp$1(version, this.operator, this.semver, this.options);
990
+ return cmp(version, this.operator, this.semver, this.options);
999
991
  }
1000
992
  intersects(comp, options) {
1001
- if (!(comp instanceof Comparator$3)) throw new TypeError("a Comparator is required");
993
+ if (!(comp instanceof Comparator)) throw new TypeError("a Comparator is required");
1002
994
  if (this.operator === "") {
1003
995
  if (this.value === "") return true;
1004
- return new Range$10(comp.value, options).test(this.value);
996
+ return new Range(comp.value, options).test(this.value);
1005
997
  } else if (comp.operator === "") {
1006
998
  if (comp.value === "") return true;
1007
- return new Range$10(this.value, options).test(comp.semver);
999
+ return new Range(this.value, options).test(comp.semver);
1008
1000
  }
1009
1001
  options = parseOptions(options);
1010
1002
  if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) return false;
@@ -1012,54 +1004,54 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1012
1004
  if (this.operator.startsWith(">") && comp.operator.startsWith(">")) return true;
1013
1005
  if (this.operator.startsWith("<") && comp.operator.startsWith("<")) return true;
1014
1006
  if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) return true;
1015
- if (cmp$1(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
1016
- if (cmp$1(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
1007
+ if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) return true;
1008
+ if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) return true;
1017
1009
  return false;
1018
1010
  }
1019
1011
  };
1020
- module.exports = Comparator$3;
1012
+ module.exports = Comparator;
1021
1013
  const parseOptions = require_parse_options();
1022
1014
  const { safeRe: re, t } = require_re();
1023
- const cmp$1 = require_cmp();
1015
+ const cmp = require_cmp();
1024
1016
  const debug = require_debug();
1025
- const SemVer$5 = require_semver$1();
1026
- const Range$10 = require_range();
1017
+ const SemVer = require_semver$1();
1018
+ const Range = require_range();
1027
1019
  }));
1028
1020
 
1029
1021
  //#endregion
1030
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/satisfies.js
1022
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js
1031
1023
  var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1032
- const Range$9 = require_range();
1033
- const satisfies$4 = (version, range, options) => {
1024
+ const Range = require_range();
1025
+ const satisfies = (version, range, options) => {
1034
1026
  try {
1035
- range = new Range$9(range, options);
1027
+ range = new Range(range, options);
1036
1028
  } catch (er) {
1037
1029
  return false;
1038
1030
  }
1039
1031
  return range.test(version);
1040
1032
  };
1041
- module.exports = satisfies$4;
1033
+ module.exports = satisfies;
1042
1034
  }));
1043
1035
 
1044
1036
  //#endregion
1045
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/to-comparators.js
1037
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js
1046
1038
  var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1047
- const Range$8 = require_range();
1048
- const toComparators$1 = (range, options) => new Range$8(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
1049
- module.exports = toComparators$1;
1039
+ const Range = require_range();
1040
+ const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
1041
+ module.exports = toComparators;
1050
1042
  }));
1051
1043
 
1052
1044
  //#endregion
1053
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js
1045
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js
1054
1046
  var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1055
- const SemVer$4 = require_semver$1();
1056
- const Range$7 = require_range();
1057
- const maxSatisfying$1 = (versions, range, options) => {
1047
+ const SemVer = require_semver$1();
1048
+ const Range = require_range();
1049
+ const maxSatisfying = (versions, range, options) => {
1058
1050
  let max = null;
1059
1051
  let maxSV = null;
1060
1052
  let rangeObj = null;
1061
1053
  try {
1062
- rangeObj = new Range$7(range, options);
1054
+ rangeObj = new Range(range, options);
1063
1055
  } catch (er) {
1064
1056
  return null;
1065
1057
  }
@@ -1067,26 +1059,26 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1067
1059
  if (rangeObj.test(v)) {
1068
1060
  if (!max || maxSV.compare(v) === -1) {
1069
1061
  max = v;
1070
- maxSV = new SemVer$4(max, options);
1062
+ maxSV = new SemVer(max, options);
1071
1063
  }
1072
1064
  }
1073
1065
  });
1074
1066
  return max;
1075
1067
  };
1076
- module.exports = maxSatisfying$1;
1068
+ module.exports = maxSatisfying;
1077
1069
  }));
1078
1070
 
1079
1071
  //#endregion
1080
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js
1072
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js
1081
1073
  var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1082
- const SemVer$3 = require_semver$1();
1083
- const Range$6 = require_range();
1084
- const minSatisfying$1 = (versions, range, options) => {
1074
+ const SemVer = require_semver$1();
1075
+ const Range = require_range();
1076
+ const minSatisfying = (versions, range, options) => {
1085
1077
  let min = null;
1086
1078
  let minSV = null;
1087
1079
  let rangeObj = null;
1088
1080
  try {
1089
- rangeObj = new Range$6(range, options);
1081
+ rangeObj = new Range(range, options);
1090
1082
  } catch (er) {
1091
1083
  return null;
1092
1084
  }
@@ -1094,33 +1086,33 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1094
1086
  if (rangeObj.test(v)) {
1095
1087
  if (!min || minSV.compare(v) === 1) {
1096
1088
  min = v;
1097
- minSV = new SemVer$3(min, options);
1089
+ minSV = new SemVer(min, options);
1098
1090
  }
1099
1091
  }
1100
1092
  });
1101
1093
  return min;
1102
1094
  };
1103
- module.exports = minSatisfying$1;
1095
+ module.exports = minSatisfying;
1104
1096
  }));
1105
1097
 
1106
1098
  //#endregion
1107
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js
1099
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js
1108
1100
  var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1109
- const SemVer$2 = require_semver$1();
1110
- const Range$5 = require_range();
1111
- const gt$2 = require_gt();
1112
- const minVersion$1 = (range, loose) => {
1113
- range = new Range$5(range, loose);
1114
- let minver = new SemVer$2("0.0.0");
1101
+ const SemVer = require_semver$1();
1102
+ const Range = require_range();
1103
+ const gt = require_gt();
1104
+ const minVersion = (range, loose) => {
1105
+ range = new Range(range, loose);
1106
+ let minver = new SemVer("0.0.0");
1115
1107
  if (range.test(minver)) return minver;
1116
- minver = new SemVer$2("0.0.0-0");
1108
+ minver = new SemVer("0.0.0-0");
1117
1109
  if (range.test(minver)) return minver;
1118
1110
  minver = null;
1119
1111
  for (let i = 0; i < range.set.length; ++i) {
1120
1112
  const comparators = range.set[i];
1121
1113
  let setMin = null;
1122
1114
  comparators.forEach((comparator) => {
1123
- const compver = new SemVer$2(comparator.semver.version);
1115
+ const compver = new SemVer(comparator.semver.version);
1124
1116
  switch (comparator.operator) {
1125
1117
  case ">":
1126
1118
  if (compver.prerelease.length === 0) compver.patch++;
@@ -1128,75 +1120,75 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1128
1120
  compver.raw = compver.format();
1129
1121
  case "":
1130
1122
  case ">=":
1131
- if (!setMin || gt$2(compver, setMin)) setMin = compver;
1123
+ if (!setMin || gt(compver, setMin)) setMin = compver;
1132
1124
  break;
1133
1125
  case "<":
1134
1126
  case "<=": break;
1135
1127
  default: throw new Error(`Unexpected operation: ${comparator.operator}`);
1136
1128
  }
1137
1129
  });
1138
- if (setMin && (!minver || gt$2(minver, setMin))) minver = setMin;
1130
+ if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
1139
1131
  }
1140
1132
  if (minver && range.test(minver)) return minver;
1141
1133
  return null;
1142
1134
  };
1143
- module.exports = minVersion$1;
1135
+ module.exports = minVersion;
1144
1136
  }));
1145
1137
 
1146
1138
  //#endregion
1147
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/valid.js
1139
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js
1148
1140
  var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1149
- const Range$4 = require_range();
1150
- const validRange$1 = (range, options) => {
1141
+ const Range = require_range();
1142
+ const validRange = (range, options) => {
1151
1143
  try {
1152
- return new Range$4(range, options).range || "*";
1144
+ return new Range(range, options).range || "*";
1153
1145
  } catch (er) {
1154
1146
  return null;
1155
1147
  }
1156
1148
  };
1157
- module.exports = validRange$1;
1149
+ module.exports = validRange;
1158
1150
  }));
1159
1151
 
1160
1152
  //#endregion
1161
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.js
1153
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js
1162
1154
  var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1163
- const SemVer$1 = require_semver$1();
1164
- const Comparator$2 = require_comparator();
1165
- const { ANY: ANY$1 } = Comparator$2;
1166
- const Range$3 = require_range();
1167
- const satisfies$3 = require_satisfies();
1168
- const gt$1 = require_gt();
1169
- const lt$1 = require_lt();
1170
- const lte$1 = require_lte();
1171
- const gte$1 = require_gte();
1172
- const outside$3 = (version, range, hilo, options) => {
1173
- version = new SemVer$1(version, options);
1174
- range = new Range$3(range, options);
1155
+ const SemVer = require_semver$1();
1156
+ const Comparator = require_comparator();
1157
+ const { ANY } = Comparator;
1158
+ const Range = require_range();
1159
+ const satisfies = require_satisfies();
1160
+ const gt = require_gt();
1161
+ const lt = require_lt();
1162
+ const lte = require_lte();
1163
+ const gte = require_gte();
1164
+ const outside = (version, range, hilo, options) => {
1165
+ version = new SemVer(version, options);
1166
+ range = new Range(range, options);
1175
1167
  let gtfn, ltefn, ltfn, comp, ecomp;
1176
1168
  switch (hilo) {
1177
1169
  case ">":
1178
- gtfn = gt$1;
1179
- ltefn = lte$1;
1180
- ltfn = lt$1;
1170
+ gtfn = gt;
1171
+ ltefn = lte;
1172
+ ltfn = lt;
1181
1173
  comp = ">";
1182
1174
  ecomp = ">=";
1183
1175
  break;
1184
1176
  case "<":
1185
- gtfn = lt$1;
1186
- ltefn = gte$1;
1187
- ltfn = gt$1;
1177
+ gtfn = lt;
1178
+ ltefn = gte;
1179
+ ltfn = gt;
1188
1180
  comp = "<";
1189
1181
  ecomp = "<=";
1190
1182
  break;
1191
1183
  default: throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
1192
1184
  }
1193
- if (satisfies$3(version, range, options)) return false;
1185
+ if (satisfies(version, range, options)) return false;
1194
1186
  for (let i = 0; i < range.set.length; ++i) {
1195
1187
  const comparators = range.set[i];
1196
1188
  let high = null;
1197
1189
  let low = null;
1198
1190
  comparators.forEach((comparator) => {
1199
- if (comparator.semver === ANY$1) comparator = new Comparator$2(">=0.0.0");
1191
+ if (comparator.semver === ANY) comparator = new Comparator(">=0.0.0");
1200
1192
  high = high || comparator;
1201
1193
  low = low || comparator;
1202
1194
  if (gtfn(comparator.semver, high.semver, options)) high = comparator;
@@ -1208,48 +1200,48 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1208
1200
  }
1209
1201
  return true;
1210
1202
  };
1211
- module.exports = outside$3;
1203
+ module.exports = outside;
1212
1204
  }));
1213
1205
 
1214
1206
  //#endregion
1215
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/gtr.js
1207
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js
1216
1208
  var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1217
- const outside$2 = require_outside();
1218
- const gtr$1 = (version, range, options) => outside$2(version, range, ">", options);
1219
- module.exports = gtr$1;
1209
+ const outside = require_outside();
1210
+ const gtr = (version, range, options) => outside(version, range, ">", options);
1211
+ module.exports = gtr;
1220
1212
  }));
1221
1213
 
1222
1214
  //#endregion
1223
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/ltr.js
1215
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js
1224
1216
  var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1225
- const outside$1 = require_outside();
1226
- const ltr$1 = (version, range, options) => outside$1(version, range, "<", options);
1227
- module.exports = ltr$1;
1217
+ const outside = require_outside();
1218
+ const ltr = (version, range, options) => outside(version, range, "<", options);
1219
+ module.exports = ltr;
1228
1220
  }));
1229
1221
 
1230
1222
  //#endregion
1231
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/intersects.js
1223
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js
1232
1224
  var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1233
- const Range$2 = require_range();
1234
- const intersects$1 = (r1, r2, options) => {
1235
- r1 = new Range$2(r1, options);
1236
- r2 = new Range$2(r2, options);
1225
+ const Range = require_range();
1226
+ const intersects = (r1, r2, options) => {
1227
+ r1 = new Range(r1, options);
1228
+ r2 = new Range(r2, options);
1237
1229
  return r1.intersects(r2, options);
1238
1230
  };
1239
- module.exports = intersects$1;
1231
+ module.exports = intersects;
1240
1232
  }));
1241
1233
 
1242
1234
  //#endregion
1243
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/simplify.js
1235
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js
1244
1236
  var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1245
- const satisfies$2 = require_satisfies();
1246
- const compare$2 = require_compare();
1237
+ const satisfies = require_satisfies();
1238
+ const compare = require_compare();
1247
1239
  module.exports = (versions, range, options) => {
1248
1240
  const set = [];
1249
1241
  let first = null;
1250
1242
  let prev = null;
1251
- const v = versions.sort((a, b) => compare$2(a, b, options));
1252
- for (const version of v) if (satisfies$2(version, range, options)) {
1243
+ const v = versions.sort((a, b) => compare(a, b, options));
1244
+ for (const version of v) if (satisfies(version, range, options)) {
1253
1245
  prev = version;
1254
1246
  if (!first) first = version;
1255
1247
  } else {
@@ -1271,17 +1263,17 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1271
1263
  }));
1272
1264
 
1273
1265
  //#endregion
1274
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/subset.js
1266
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js
1275
1267
  var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1276
- const Range$1 = require_range();
1277
- const Comparator$1 = require_comparator();
1278
- const { ANY } = Comparator$1;
1279
- const satisfies$1 = require_satisfies();
1280
- const compare$1 = require_compare();
1281
- const subset$1 = (sub, dom, options = {}) => {
1268
+ const Range = require_range();
1269
+ const Comparator = require_comparator();
1270
+ const { ANY } = Comparator;
1271
+ const satisfies = require_satisfies();
1272
+ const compare = require_compare();
1273
+ const subset = (sub, dom, options = {}) => {
1282
1274
  if (sub === dom) return true;
1283
- sub = new Range$1(sub, options);
1284
- dom = new Range$1(dom, options);
1275
+ sub = new Range(sub, options);
1276
+ dom = new Range(dom, options);
1285
1277
  let sawNonNull = false;
1286
1278
  OUTER: for (const simpleSub of sub.set) {
1287
1279
  for (const simpleDom of dom.set) {
@@ -1293,8 +1285,8 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1293
1285
  }
1294
1286
  return true;
1295
1287
  };
1296
- const minimumVersionWithPreRelease = [new Comparator$1(">=0.0.0-0")];
1297
- const minimumVersion = [new Comparator$1(">=0.0.0")];
1288
+ const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
1289
+ const minimumVersion = [new Comparator(">=0.0.0")];
1298
1290
  const simpleSubset = (sub, dom, options) => {
1299
1291
  if (sub === dom) return true;
1300
1292
  if (sub.length === 1 && sub[0].semver === ANY) if (dom.length === 1 && dom[0].semver === ANY) return true;
@@ -1303,71 +1295,71 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1303
1295
  if (dom.length === 1 && dom[0].semver === ANY) if (options.includePrerelease) return true;
1304
1296
  else dom = minimumVersion;
1305
1297
  const eqSet = /* @__PURE__ */ new Set();
1306
- let gt$5, lt$4;
1307
- for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt$5 = higherGT(gt$5, c, options);
1308
- else if (c.operator === "<" || c.operator === "<=") lt$4 = lowerLT(lt$4, c, options);
1298
+ let gt, lt;
1299
+ for (const c of sub) if (c.operator === ">" || c.operator === ">=") gt = higherGT(gt, c, options);
1300
+ else if (c.operator === "<" || c.operator === "<=") lt = lowerLT(lt, c, options);
1309
1301
  else eqSet.add(c.semver);
1310
1302
  if (eqSet.size > 1) return null;
1311
1303
  let gtltComp;
1312
- if (gt$5 && lt$4) {
1313
- gtltComp = compare$1(gt$5.semver, lt$4.semver, options);
1304
+ if (gt && lt) {
1305
+ gtltComp = compare(gt.semver, lt.semver, options);
1314
1306
  if (gtltComp > 0) return null;
1315
- else if (gtltComp === 0 && (gt$5.operator !== ">=" || lt$4.operator !== "<=")) return null;
1307
+ else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
1316
1308
  }
1317
- for (const eq$3 of eqSet) {
1318
- if (gt$5 && !satisfies$1(eq$3, String(gt$5), options)) return null;
1319
- if (lt$4 && !satisfies$1(eq$3, String(lt$4), options)) return null;
1320
- for (const c of dom) if (!satisfies$1(eq$3, String(c), options)) return false;
1309
+ for (const eq of eqSet) {
1310
+ if (gt && !satisfies(eq, String(gt), options)) return null;
1311
+ if (lt && !satisfies(eq, String(lt), options)) return null;
1312
+ for (const c of dom) if (!satisfies(eq, String(c), options)) return false;
1321
1313
  return true;
1322
1314
  }
1323
1315
  let higher, lower;
1324
1316
  let hasDomLT, hasDomGT;
1325
- let needDomLTPre = lt$4 && !options.includePrerelease && lt$4.semver.prerelease.length ? lt$4.semver : false;
1326
- let needDomGTPre = gt$5 && !options.includePrerelease && gt$5.semver.prerelease.length ? gt$5.semver : false;
1327
- if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt$4.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
1317
+ let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
1318
+ let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
1319
+ if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;
1328
1320
  for (const c of dom) {
1329
1321
  hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
1330
1322
  hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
1331
- if (gt$5) {
1323
+ if (gt) {
1332
1324
  if (needDomGTPre) {
1333
1325
  if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;
1334
1326
  }
1335
1327
  if (c.operator === ">" || c.operator === ">=") {
1336
- higher = higherGT(gt$5, c, options);
1337
- if (higher === c && higher !== gt$5) return false;
1338
- } else if (gt$5.operator === ">=" && !satisfies$1(gt$5.semver, String(c), options)) return false;
1328
+ higher = higherGT(gt, c, options);
1329
+ if (higher === c && higher !== gt) return false;
1330
+ } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
1339
1331
  }
1340
- if (lt$4) {
1332
+ if (lt) {
1341
1333
  if (needDomLTPre) {
1342
1334
  if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;
1343
1335
  }
1344
1336
  if (c.operator === "<" || c.operator === "<=") {
1345
- lower = lowerLT(lt$4, c, options);
1346
- if (lower === c && lower !== lt$4) return false;
1347
- } else if (lt$4.operator === "<=" && !satisfies$1(lt$4.semver, String(c), options)) return false;
1337
+ lower = lowerLT(lt, c, options);
1338
+ if (lower === c && lower !== lt) return false;
1339
+ } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
1348
1340
  }
1349
- if (!c.operator && (lt$4 || gt$5) && gtltComp !== 0) return false;
1341
+ if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
1350
1342
  }
1351
- if (gt$5 && hasDomLT && !lt$4 && gtltComp !== 0) return false;
1352
- if (lt$4 && hasDomGT && !gt$5 && gtltComp !== 0) return false;
1343
+ if (gt && hasDomLT && !lt && gtltComp !== 0) return false;
1344
+ if (lt && hasDomGT && !gt && gtltComp !== 0) return false;
1353
1345
  if (needDomGTPre || needDomLTPre) return false;
1354
1346
  return true;
1355
1347
  };
1356
1348
  const higherGT = (a, b, options) => {
1357
1349
  if (!a) return b;
1358
- const comp = compare$1(a.semver, b.semver, options);
1350
+ const comp = compare(a.semver, b.semver, options);
1359
1351
  return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
1360
1352
  };
1361
1353
  const lowerLT = (a, b, options) => {
1362
1354
  if (!a) return b;
1363
- const comp = compare$1(a.semver, b.semver, options);
1355
+ const comp = compare(a.semver, b.semver, options);
1364
1356
  return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
1365
1357
  };
1366
- module.exports = subset$1;
1358
+ module.exports = subset;
1367
1359
  }));
1368
1360
 
1369
1361
  //#endregion
1370
- //#region node_modules/.pnpm/semver@7.7.3/node_modules/semver/index.js
1362
+ //#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js
1371
1363
  var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1372
1364
  const internalRe = require_re();
1373
1365
  const constants = require_constants();
@@ -1714,11 +1706,11 @@ const queryPackages = async (packages) => {
1714
1706
  const message = "Path to run codemod on:";
1715
1707
  const nonRootPackages = packages.filter((pkg) => pkg !== "." && pkg !== "./");
1716
1708
  if (packages.length === 1 && (packages[0] === "." || packages[0] === "./")) {
1717
- if (await (0, __inquirer_prompts.confirm)({
1709
+ if (await (0, _inquirer_prompts.confirm)({
1718
1710
  message: "Do you want to target a specific folder instead of the entire project?",
1719
1711
  default: false
1720
1712
  })) {
1721
- const customPath = await (0, __inquirer_prompts.search)({
1713
+ const customPath = await (0, _inquirer_prompts.search)({
1722
1714
  message: "Enter the folder path (relative to project root):",
1723
1715
  source: async (searchInput) => {
1724
1716
  return getDirectoryChoices(process.cwd(), searchInput || "").map((choice) => ({
@@ -1741,7 +1733,7 @@ const queryPackages = async (packages) => {
1741
1733
  logToInquirer(message, packages[0] === "./" ? "." : packages[0]);
1742
1734
  return [packages[0] === "./" ? "." : packages[0]];
1743
1735
  }
1744
- if (nonRootPackages.length >= 1) return (0, __inquirer_prompts.checkbox)({
1736
+ if (nonRootPackages.length >= 1) return (0, _inquirer_prompts.checkbox)({
1745
1737
  required: true,
1746
1738
  message: "Select packages to transform:",
1747
1739
  choices: nonRootPackages.map((file) => ({
@@ -1761,7 +1753,7 @@ const determineTransformer = async ({ candidate, transformFiles }) => {
1761
1753
  logToInquirer(codemodMessage, candidate);
1762
1754
  return candidate;
1763
1755
  }
1764
- return (0, __inquirer_prompts.select)({
1756
+ return (0, _inquirer_prompts.select)({
1765
1757
  message: codemodMessage,
1766
1758
  choices: transformFiles.map((file) => ({
1767
1759
  name: file,
@@ -1793,7 +1785,7 @@ const determineIsDryMode = async (args) => {
1793
1785
  logToInquirer(message, "Yes");
1794
1786
  return true;
1795
1787
  }
1796
- return (0, __inquirer_prompts.confirm)({
1788
+ return (0, _inquirer_prompts.confirm)({
1797
1789
  message,
1798
1790
  default: false
1799
1791
  });
@@ -1807,7 +1799,7 @@ const determineIsPrint = async (args) => {
1807
1799
  logToInquirer(message, "Yes");
1808
1800
  return true;
1809
1801
  }
1810
- return (0, __inquirer_prompts.confirm)({
1802
+ return (0, _inquirer_prompts.confirm)({
1811
1803
  message,
1812
1804
  default: false
1813
1805
  });
@@ -1825,7 +1817,7 @@ const determineIgnorePatterns = async (args) => {
1825
1817
  if (ignorePattern) {
1826
1818
  logToInquirer(message, ignorePattern);
1827
1819
  userPatterns = ignorePattern;
1828
- } else userPatterns = await (0, __inquirer_prompts.input)({
1820
+ } else userPatterns = await (0, _inquirer_prompts.input)({
1829
1821
  message,
1830
1822
  validate: () => true
1831
1823
  });
@@ -1846,7 +1838,7 @@ const determineGitIgnore = async (args) => {
1846
1838
  logToInquirer(message, "No");
1847
1839
  return false;
1848
1840
  }
1849
- return (0, __inquirer_prompts.confirm)({
1841
+ return (0, _inquirer_prompts.confirm)({
1850
1842
  message,
1851
1843
  default: true
1852
1844
  });
@@ -1919,7 +1911,7 @@ var reportManualReview_default = reportManualReview;
1919
1911
  //#region src/controller/helpers/runTransformPrompts.ts
1920
1912
  async function askPrompt(p) {
1921
1913
  switch (p.type) {
1922
- case "select": return (0, __inquirer_prompts.select)({
1914
+ case "select": return (0, _inquirer_prompts.select)({
1923
1915
  message: p.message,
1924
1916
  choices: (p.choices ?? []).map((c) => ({
1925
1917
  name: c.name,
@@ -1927,12 +1919,12 @@ async function askPrompt(p) {
1927
1919
  })),
1928
1920
  default: p.default
1929
1921
  });
1930
- case "confirm": return (0, __inquirer_prompts.confirm)({
1922
+ case "confirm": return (0, _inquirer_prompts.confirm)({
1931
1923
  message: p.message,
1932
1924
  default: typeof p.default === "boolean" ? p.default : false
1933
1925
  });
1934
1926
  case "input":
1935
- default: return (0, __inquirer_prompts.input)({
1927
+ default: return (0, _inquirer_prompts.input)({
1936
1928
  message: p.message,
1937
1929
  default: p.default ?? ""
1938
1930
  });
@@ -2009,4 +2001,4 @@ Object.defineProperty(exports, 'runTransformPrompts', {
2009
2001
  return runTransformPrompts;
2010
2002
  }
2011
2003
  });
2012
- //# sourceMappingURL=helpers-BNLAPdMR.js.map
2004
+ //# sourceMappingURL=helpers-C6KebpWf.js.map