@capgo/cli 4.12.6 → 4.12.7

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/index.js CHANGED
@@ -967,7 +967,7 @@ var require_command = __commonJS({
967
967
  "node_modules/commander/lib/command.js"(exports2) {
968
968
  var EventEmitter = require("node:events").EventEmitter;
969
969
  var childProcess2 = require("node:child_process");
970
- var path3 = require("node:path");
970
+ var path5 = require("node:path");
971
971
  var fs6 = require("node:fs");
972
972
  var process30 = require("node:process");
973
973
  var { Argument: Argument2, humanReadableArgName } = require_argument();
@@ -1900,9 +1900,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
1900
1900
  let launchWithNode = false;
1901
1901
  const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
1902
1902
  function findFile(baseDir, baseName) {
1903
- const localBin = path3.resolve(baseDir, baseName);
1903
+ const localBin = path5.resolve(baseDir, baseName);
1904
1904
  if (fs6.existsSync(localBin)) return localBin;
1905
- if (sourceExt.includes(path3.extname(baseName))) return void 0;
1905
+ if (sourceExt.includes(path5.extname(baseName))) return void 0;
1906
1906
  const foundExt = sourceExt.find(
1907
1907
  (ext) => fs6.existsSync(`${localBin}${ext}`)
1908
1908
  );
@@ -1920,17 +1920,17 @@ Expecting one of '${allowedValues.join("', '")}'`);
1920
1920
  } catch (err) {
1921
1921
  resolvedScriptPath = this._scriptPath;
1922
1922
  }
1923
- executableDir = path3.resolve(
1924
- path3.dirname(resolvedScriptPath),
1923
+ executableDir = path5.resolve(
1924
+ path5.dirname(resolvedScriptPath),
1925
1925
  executableDir
1926
1926
  );
1927
1927
  }
1928
1928
  if (executableDir) {
1929
1929
  let localFile = findFile(executableDir, executableFile);
1930
1930
  if (!localFile && !subcommand._executableFile && this._scriptPath) {
1931
- const legacyName = path3.basename(
1931
+ const legacyName = path5.basename(
1932
1932
  this._scriptPath,
1933
- path3.extname(this._scriptPath)
1933
+ path5.extname(this._scriptPath)
1934
1934
  );
1935
1935
  if (legacyName !== this._name) {
1936
1936
  localFile = findFile(
@@ -1941,7 +1941,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1941
1941
  }
1942
1942
  executableFile = localFile || executableFile;
1943
1943
  }
1944
- launchWithNode = sourceExt.includes(path3.extname(executableFile));
1944
+ launchWithNode = sourceExt.includes(path5.extname(executableFile));
1945
1945
  let proc;
1946
1946
  if (process30.platform !== "win32") {
1947
1947
  if (launchWithNode) {
@@ -2781,7 +2781,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2781
2781
  * @return {Command}
2782
2782
  */
2783
2783
  nameFromFilename(filename) {
2784
- this._name = path3.basename(filename, path3.extname(filename));
2784
+ this._name = path5.basename(filename, path5.extname(filename));
2785
2785
  return this;
2786
2786
  }
2787
2787
  /**
@@ -2795,9 +2795,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
2795
2795
  * @param {string} [path]
2796
2796
  * @return {(string|null|Command)}
2797
2797
  */
2798
- executableDir(path4) {
2799
- if (path4 === void 0) return this._executableDir;
2800
- this._executableDir = path4;
2798
+ executableDir(path6) {
2799
+ if (path6 === void 0) return this._executableDir;
2800
+ this._executableDir = path6;
2801
2801
  return this;
2802
2802
  }
2803
2803
  /**
@@ -3695,14 +3695,14 @@ var require_polyfills = __commonJS({
3695
3695
  fs6.fstatSync = statFixSync(fs6.fstatSync);
3696
3696
  fs6.lstatSync = statFixSync(fs6.lstatSync);
3697
3697
  if (fs6.chmod && !fs6.lchmod) {
3698
- fs6.lchmod = function(path3, mode, cb) {
3698
+ fs6.lchmod = function(path5, mode, cb) {
3699
3699
  if (cb) process.nextTick(cb);
3700
3700
  };
3701
3701
  fs6.lchmodSync = function() {
3702
3702
  };
3703
3703
  }
3704
3704
  if (fs6.chown && !fs6.lchown) {
3705
- fs6.lchown = function(path3, uid, gid, cb) {
3705
+ fs6.lchown = function(path5, uid, gid, cb) {
3706
3706
  if (cb) process.nextTick(cb);
3707
3707
  };
3708
3708
  fs6.lchownSync = function() {
@@ -3769,9 +3769,9 @@ var require_polyfills = __commonJS({
3769
3769
  };
3770
3770
  }(fs6.readSync);
3771
3771
  function patchLchmod(fs7) {
3772
- fs7.lchmod = function(path3, mode, callback) {
3772
+ fs7.lchmod = function(path5, mode, callback) {
3773
3773
  fs7.open(
3774
- path3,
3774
+ path5,
3775
3775
  constants2.O_WRONLY | constants2.O_SYMLINK,
3776
3776
  mode,
3777
3777
  function(err, fd) {
@@ -3787,8 +3787,8 @@ var require_polyfills = __commonJS({
3787
3787
  }
3788
3788
  );
3789
3789
  };
3790
- fs7.lchmodSync = function(path3, mode) {
3791
- var fd = fs7.openSync(path3, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
3790
+ fs7.lchmodSync = function(path5, mode) {
3791
+ var fd = fs7.openSync(path5, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
3792
3792
  var threw = true;
3793
3793
  var ret;
3794
3794
  try {
@@ -3809,8 +3809,8 @@ var require_polyfills = __commonJS({
3809
3809
  }
3810
3810
  function patchLutimes(fs7) {
3811
3811
  if (constants2.hasOwnProperty("O_SYMLINK") && fs7.futimes) {
3812
- fs7.lutimes = function(path3, at, mt, cb) {
3813
- fs7.open(path3, constants2.O_SYMLINK, function(er, fd) {
3812
+ fs7.lutimes = function(path5, at, mt, cb) {
3813
+ fs7.open(path5, constants2.O_SYMLINK, function(er, fd) {
3814
3814
  if (er) {
3815
3815
  if (cb) cb(er);
3816
3816
  return;
@@ -3822,8 +3822,8 @@ var require_polyfills = __commonJS({
3822
3822
  });
3823
3823
  });
3824
3824
  };
3825
- fs7.lutimesSync = function(path3, at, mt) {
3826
- var fd = fs7.openSync(path3, constants2.O_SYMLINK);
3825
+ fs7.lutimesSync = function(path5, at, mt) {
3826
+ var fd = fs7.openSync(path5, constants2.O_SYMLINK);
3827
3827
  var ret;
3828
3828
  var threw = true;
3829
3829
  try {
@@ -3941,11 +3941,11 @@ var require_legacy_streams = __commonJS({
3941
3941
  ReadStream,
3942
3942
  WriteStream
3943
3943
  };
3944
- function ReadStream(path3, options) {
3945
- if (!(this instanceof ReadStream)) return new ReadStream(path3, options);
3944
+ function ReadStream(path5, options) {
3945
+ if (!(this instanceof ReadStream)) return new ReadStream(path5, options);
3946
3946
  Stream.call(this);
3947
3947
  var self2 = this;
3948
- this.path = path3;
3948
+ this.path = path5;
3949
3949
  this.fd = null;
3950
3950
  this.readable = true;
3951
3951
  this.paused = false;
@@ -3990,10 +3990,10 @@ var require_legacy_streams = __commonJS({
3990
3990
  self2._read();
3991
3991
  });
3992
3992
  }
3993
- function WriteStream(path3, options) {
3994
- if (!(this instanceof WriteStream)) return new WriteStream(path3, options);
3993
+ function WriteStream(path5, options) {
3994
+ if (!(this instanceof WriteStream)) return new WriteStream(path5, options);
3995
3995
  Stream.call(this);
3996
- this.path = path3;
3996
+ this.path = path5;
3997
3997
  this.fd = null;
3998
3998
  this.writable = true;
3999
3999
  this.flags = "w";
@@ -4136,14 +4136,14 @@ var require_graceful_fs = __commonJS({
4136
4136
  fs7.createWriteStream = createWriteStream;
4137
4137
  var fs$readFile = fs7.readFile;
4138
4138
  fs7.readFile = readFile;
4139
- function readFile(path3, options, cb) {
4139
+ function readFile(path5, options, cb) {
4140
4140
  if (typeof options === "function")
4141
4141
  cb = options, options = null;
4142
- return go$readFile(path3, options, cb);
4143
- function go$readFile(path4, options2, cb2, startTime) {
4144
- return fs$readFile(path4, options2, function(err) {
4142
+ return go$readFile(path5, options, cb);
4143
+ function go$readFile(path6, options2, cb2, startTime) {
4144
+ return fs$readFile(path6, options2, function(err) {
4145
4145
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4146
- enqueue([go$readFile, [path4, options2, cb2], err, startTime || Date.now(), Date.now()]);
4146
+ enqueue([go$readFile, [path6, options2, cb2], err, startTime || Date.now(), Date.now()]);
4147
4147
  else {
4148
4148
  if (typeof cb2 === "function")
4149
4149
  cb2.apply(this, arguments);
@@ -4153,14 +4153,14 @@ var require_graceful_fs = __commonJS({
4153
4153
  }
4154
4154
  var fs$writeFile = fs7.writeFile;
4155
4155
  fs7.writeFile = writeFile;
4156
- function writeFile(path3, data, options, cb) {
4156
+ function writeFile(path5, data, options, cb) {
4157
4157
  if (typeof options === "function")
4158
4158
  cb = options, options = null;
4159
- return go$writeFile(path3, data, options, cb);
4160
- function go$writeFile(path4, data2, options2, cb2, startTime) {
4161
- return fs$writeFile(path4, data2, options2, function(err) {
4159
+ return go$writeFile(path5, data, options, cb);
4160
+ function go$writeFile(path6, data2, options2, cb2, startTime) {
4161
+ return fs$writeFile(path6, data2, options2, function(err) {
4162
4162
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4163
- enqueue([go$writeFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
4163
+ enqueue([go$writeFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
4164
4164
  else {
4165
4165
  if (typeof cb2 === "function")
4166
4166
  cb2.apply(this, arguments);
@@ -4171,14 +4171,14 @@ var require_graceful_fs = __commonJS({
4171
4171
  var fs$appendFile = fs7.appendFile;
4172
4172
  if (fs$appendFile)
4173
4173
  fs7.appendFile = appendFile;
4174
- function appendFile(path3, data, options, cb) {
4174
+ function appendFile(path5, data, options, cb) {
4175
4175
  if (typeof options === "function")
4176
4176
  cb = options, options = null;
4177
- return go$appendFile(path3, data, options, cb);
4178
- function go$appendFile(path4, data2, options2, cb2, startTime) {
4179
- return fs$appendFile(path4, data2, options2, function(err) {
4177
+ return go$appendFile(path5, data, options, cb);
4178
+ function go$appendFile(path6, data2, options2, cb2, startTime) {
4179
+ return fs$appendFile(path6, data2, options2, function(err) {
4180
4180
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4181
- enqueue([go$appendFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
4181
+ enqueue([go$appendFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
4182
4182
  else {
4183
4183
  if (typeof cb2 === "function")
4184
4184
  cb2.apply(this, arguments);
@@ -4209,31 +4209,31 @@ var require_graceful_fs = __commonJS({
4209
4209
  var fs$readdir = fs7.readdir;
4210
4210
  fs7.readdir = readdir;
4211
4211
  var noReaddirOptionVersions = /^v[0-5]\./;
4212
- function readdir(path3, options, cb) {
4212
+ function readdir(path5, options, cb) {
4213
4213
  if (typeof options === "function")
4214
4214
  cb = options, options = null;
4215
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path4, options2, cb2, startTime) {
4216
- return fs$readdir(path4, fs$readdirCallback(
4217
- path4,
4215
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path6, options2, cb2, startTime) {
4216
+ return fs$readdir(path6, fs$readdirCallback(
4217
+ path6,
4218
4218
  options2,
4219
4219
  cb2,
4220
4220
  startTime
4221
4221
  ));
4222
- } : function go$readdir2(path4, options2, cb2, startTime) {
4223
- return fs$readdir(path4, options2, fs$readdirCallback(
4224
- path4,
4222
+ } : function go$readdir2(path6, options2, cb2, startTime) {
4223
+ return fs$readdir(path6, options2, fs$readdirCallback(
4224
+ path6,
4225
4225
  options2,
4226
4226
  cb2,
4227
4227
  startTime
4228
4228
  ));
4229
4229
  };
4230
- return go$readdir(path3, options, cb);
4231
- function fs$readdirCallback(path4, options2, cb2, startTime) {
4230
+ return go$readdir(path5, options, cb);
4231
+ function fs$readdirCallback(path6, options2, cb2, startTime) {
4232
4232
  return function(err, files) {
4233
4233
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4234
4234
  enqueue([
4235
4235
  go$readdir,
4236
- [path4, options2, cb2],
4236
+ [path6, options2, cb2],
4237
4237
  err,
4238
4238
  startTime || Date.now(),
4239
4239
  Date.now()
@@ -4304,7 +4304,7 @@ var require_graceful_fs = __commonJS({
4304
4304
  enumerable: true,
4305
4305
  configurable: true
4306
4306
  });
4307
- function ReadStream(path3, options) {
4307
+ function ReadStream(path5, options) {
4308
4308
  if (this instanceof ReadStream)
4309
4309
  return fs$ReadStream.apply(this, arguments), this;
4310
4310
  else
@@ -4324,7 +4324,7 @@ var require_graceful_fs = __commonJS({
4324
4324
  }
4325
4325
  });
4326
4326
  }
4327
- function WriteStream(path3, options) {
4327
+ function WriteStream(path5, options) {
4328
4328
  if (this instanceof WriteStream)
4329
4329
  return fs$WriteStream.apply(this, arguments), this;
4330
4330
  else
@@ -4342,22 +4342,22 @@ var require_graceful_fs = __commonJS({
4342
4342
  }
4343
4343
  });
4344
4344
  }
4345
- function createReadStream(path3, options) {
4346
- return new fs7.ReadStream(path3, options);
4345
+ function createReadStream(path5, options) {
4346
+ return new fs7.ReadStream(path5, options);
4347
4347
  }
4348
- function createWriteStream(path3, options) {
4349
- return new fs7.WriteStream(path3, options);
4348
+ function createWriteStream(path5, options) {
4349
+ return new fs7.WriteStream(path5, options);
4350
4350
  }
4351
4351
  var fs$open = fs7.open;
4352
4352
  fs7.open = open2;
4353
- function open2(path3, flags, mode, cb) {
4353
+ function open2(path5, flags, mode, cb) {
4354
4354
  if (typeof mode === "function")
4355
4355
  cb = mode, mode = null;
4356
- return go$open(path3, flags, mode, cb);
4357
- function go$open(path4, flags2, mode2, cb2, startTime) {
4358
- return fs$open(path4, flags2, mode2, function(err, fd) {
4356
+ return go$open(path5, flags, mode, cb);
4357
+ function go$open(path6, flags2, mode2, cb2, startTime) {
4358
+ return fs$open(path6, flags2, mode2, function(err, fd) {
4359
4359
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
4360
- enqueue([go$open, [path4, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
4360
+ enqueue([go$open, [path6, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
4361
4361
  else {
4362
4362
  if (typeof cb2 === "function")
4363
4363
  cb2.apply(this, arguments);
@@ -4538,12 +4538,12 @@ var require_make_dir = __commonJS({
4538
4538
  "node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
4539
4539
  "use strict";
4540
4540
  var fs6 = require_fs();
4541
- var path3 = require("path");
4541
+ var path5 = require("path");
4542
4542
  var atLeastNode = require_at_least_node();
4543
4543
  var useNativeRecursiveOption = atLeastNode("10.12.0");
4544
4544
  var checkPath = (pth) => {
4545
4545
  if (process.platform === "win32") {
4546
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path3.parse(pth).root, ""));
4546
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path5.parse(pth).root, ""));
4547
4547
  if (pathHasInvalidWinCharacters) {
4548
4548
  const error = new Error(`Path contains invalid characters: ${pth}`);
4549
4549
  error.code = "EINVAL";
@@ -4568,7 +4568,7 @@ var require_make_dir = __commonJS({
4568
4568
  checkPath(input);
4569
4569
  options = processOptions(options);
4570
4570
  if (useNativeRecursiveOption) {
4571
- const pth = path3.resolve(input);
4571
+ const pth = path5.resolve(input);
4572
4572
  return fs6.mkdir(pth, {
4573
4573
  mode: options.mode,
4574
4574
  recursive: true
@@ -4582,13 +4582,13 @@ var require_make_dir = __commonJS({
4582
4582
  throw error;
4583
4583
  }
4584
4584
  if (error.code === "ENOENT") {
4585
- if (path3.dirname(pth) === pth) {
4585
+ if (path5.dirname(pth) === pth) {
4586
4586
  throw permissionError(pth);
4587
4587
  }
4588
4588
  if (error.message.includes("null bytes")) {
4589
4589
  throw error;
4590
4590
  }
4591
- await make(path3.dirname(pth));
4591
+ await make(path5.dirname(pth));
4592
4592
  return make(pth);
4593
4593
  }
4594
4594
  try {
@@ -4601,13 +4601,13 @@ var require_make_dir = __commonJS({
4601
4601
  }
4602
4602
  }
4603
4603
  };
4604
- return make(path3.resolve(input));
4604
+ return make(path5.resolve(input));
4605
4605
  };
4606
4606
  module2.exports.makeDirSync = (input, options) => {
4607
4607
  checkPath(input);
4608
4608
  options = processOptions(options);
4609
4609
  if (useNativeRecursiveOption) {
4610
- const pth = path3.resolve(input);
4610
+ const pth = path5.resolve(input);
4611
4611
  return fs6.mkdirSync(pth, {
4612
4612
  mode: options.mode,
4613
4613
  recursive: true
@@ -4621,13 +4621,13 @@ var require_make_dir = __commonJS({
4621
4621
  throw error;
4622
4622
  }
4623
4623
  if (error.code === "ENOENT") {
4624
- if (path3.dirname(pth) === pth) {
4624
+ if (path5.dirname(pth) === pth) {
4625
4625
  throw permissionError(pth);
4626
4626
  }
4627
4627
  if (error.message.includes("null bytes")) {
4628
4628
  throw error;
4629
4629
  }
4630
- make(path3.dirname(pth));
4630
+ make(path5.dirname(pth));
4631
4631
  return make(pth);
4632
4632
  }
4633
4633
  try {
@@ -4639,7 +4639,7 @@ var require_make_dir = __commonJS({
4639
4639
  }
4640
4640
  }
4641
4641
  };
4642
- return make(path3.resolve(input));
4642
+ return make(path5.resolve(input));
4643
4643
  };
4644
4644
  }
4645
4645
  });
@@ -4668,8 +4668,8 @@ var require_utimes = __commonJS({
4668
4668
  "node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
4669
4669
  "use strict";
4670
4670
  var fs6 = require_graceful_fs();
4671
- function utimesMillis(path3, atime, mtime, callback) {
4672
- fs6.open(path3, "r+", (err, fd) => {
4671
+ function utimesMillis(path5, atime, mtime, callback) {
4672
+ fs6.open(path5, "r+", (err, fd) => {
4673
4673
  if (err) return callback(err);
4674
4674
  fs6.futimes(fd, atime, mtime, (futimesErr) => {
4675
4675
  fs6.close(fd, (closeErr) => {
@@ -4678,8 +4678,8 @@ var require_utimes = __commonJS({
4678
4678
  });
4679
4679
  });
4680
4680
  }
4681
- function utimesMillisSync(path3, atime, mtime) {
4682
- const fd = fs6.openSync(path3, "r+");
4681
+ function utimesMillisSync(path5, atime, mtime) {
4682
+ const fd = fs6.openSync(path5, "r+");
4683
4683
  fs6.futimesSync(fd, atime, mtime);
4684
4684
  return fs6.closeSync(fd);
4685
4685
  }
@@ -4695,7 +4695,7 @@ var require_stat = __commonJS({
4695
4695
  "node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
4696
4696
  "use strict";
4697
4697
  var fs6 = require_fs();
4698
- var path3 = require("path");
4698
+ var path5 = require("path");
4699
4699
  var util = require("util");
4700
4700
  var atLeastNode = require_at_least_node();
4701
4701
  var nodeSupportsBigInt = atLeastNode("10.5.0");
@@ -4745,9 +4745,9 @@ var require_stat = __commonJS({
4745
4745
  return { srcStat, destStat };
4746
4746
  }
4747
4747
  function checkParentPaths(src, srcStat, dest, funcName, cb) {
4748
- const srcParent = path3.resolve(path3.dirname(src));
4749
- const destParent = path3.resolve(path3.dirname(dest));
4750
- if (destParent === srcParent || destParent === path3.parse(destParent).root) return cb();
4748
+ const srcParent = path5.resolve(path5.dirname(src));
4749
+ const destParent = path5.resolve(path5.dirname(dest));
4750
+ if (destParent === srcParent || destParent === path5.parse(destParent).root) return cb();
4751
4751
  const callback = (err, destStat) => {
4752
4752
  if (err) {
4753
4753
  if (err.code === "ENOENT") return cb();
@@ -4762,9 +4762,9 @@ var require_stat = __commonJS({
4762
4762
  else fs6.stat(destParent, callback);
4763
4763
  }
4764
4764
  function checkParentPathsSync(src, srcStat, dest, funcName) {
4765
- const srcParent = path3.resolve(path3.dirname(src));
4766
- const destParent = path3.resolve(path3.dirname(dest));
4767
- if (destParent === srcParent || destParent === path3.parse(destParent).root) return;
4765
+ const srcParent = path5.resolve(path5.dirname(src));
4766
+ const destParent = path5.resolve(path5.dirname(dest));
4767
+ if (destParent === srcParent || destParent === path5.parse(destParent).root) return;
4768
4768
  let destStat;
4769
4769
  try {
4770
4770
  destStat = statSync2(destParent);
@@ -4789,8 +4789,8 @@ var require_stat = __commonJS({
4789
4789
  return false;
4790
4790
  }
4791
4791
  function isSrcSubdir(src, dest) {
4792
- const srcArr = path3.resolve(src).split(path3.sep).filter((i) => i);
4793
- const destArr = path3.resolve(dest).split(path3.sep).filter((i) => i);
4792
+ const srcArr = path5.resolve(src).split(path5.sep).filter((i) => i);
4793
+ const destArr = path5.resolve(dest).split(path5.sep).filter((i) => i);
4794
4794
  return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
4795
4795
  }
4796
4796
  function errMsg(src, dest, funcName) {
@@ -4811,7 +4811,7 @@ var require_copy_sync = __commonJS({
4811
4811
  "node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports2, module2) {
4812
4812
  "use strict";
4813
4813
  var fs6 = require_graceful_fs();
4814
- var path3 = require("path");
4814
+ var path5 = require("path");
4815
4815
  var mkdirsSync = require_mkdirs().mkdirsSync;
4816
4816
  var utimesMillisSync = require_utimes().utimesMillisSync;
4817
4817
  var stat = require_stat();
@@ -4833,7 +4833,7 @@ var require_copy_sync = __commonJS({
4833
4833
  }
4834
4834
  function handleFilterAndCopy(destStat, src, dest, opts) {
4835
4835
  if (opts.filter && !opts.filter(src, dest)) return;
4836
- const destParent = path3.dirname(dest);
4836
+ const destParent = path5.dirname(dest);
4837
4837
  if (!fs6.existsSync(destParent)) mkdirsSync(destParent);
4838
4838
  return startCopy(destStat, src, dest, opts);
4839
4839
  }
@@ -4898,15 +4898,15 @@ var require_copy_sync = __commonJS({
4898
4898
  fs6.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
4899
4899
  }
4900
4900
  function copyDirItem(item, src, dest, opts) {
4901
- const srcItem = path3.join(src, item);
4902
- const destItem = path3.join(dest, item);
4901
+ const srcItem = path5.join(src, item);
4902
+ const destItem = path5.join(dest, item);
4903
4903
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy");
4904
4904
  return startCopy(destStat, srcItem, destItem, opts);
4905
4905
  }
4906
4906
  function onLink(destStat, src, dest, opts) {
4907
4907
  let resolvedSrc = fs6.readlinkSync(src);
4908
4908
  if (opts.dereference) {
4909
- resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
4909
+ resolvedSrc = path5.resolve(process.cwd(), resolvedSrc);
4910
4910
  }
4911
4911
  if (!destStat) {
4912
4912
  return fs6.symlinkSync(resolvedSrc, dest);
@@ -4919,7 +4919,7 @@ var require_copy_sync = __commonJS({
4919
4919
  throw err;
4920
4920
  }
4921
4921
  if (opts.dereference) {
4922
- resolvedDest = path3.resolve(process.cwd(), resolvedDest);
4922
+ resolvedDest = path5.resolve(process.cwd(), resolvedDest);
4923
4923
  }
4924
4924
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
4925
4925
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -4954,8 +4954,8 @@ var require_path_exists = __commonJS({
4954
4954
  "use strict";
4955
4955
  var u = require_universalify().fromPromise;
4956
4956
  var fs6 = require_fs();
4957
- function pathExists(path3) {
4958
- return fs6.access(path3).then(() => true).catch(() => false);
4957
+ function pathExists(path5) {
4958
+ return fs6.access(path5).then(() => true).catch(() => false);
4959
4959
  }
4960
4960
  module2.exports = {
4961
4961
  pathExists: u(pathExists),
@@ -4969,7 +4969,7 @@ var require_copy = __commonJS({
4969
4969
  "node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
4970
4970
  "use strict";
4971
4971
  var fs6 = require_graceful_fs();
4972
- var path3 = require("path");
4972
+ var path5 = require("path");
4973
4973
  var mkdirs = require_mkdirs().mkdirs;
4974
4974
  var pathExists = require_path_exists().pathExists;
4975
4975
  var utimesMillis = require_utimes().utimesMillis;
@@ -5002,7 +5002,7 @@ var require_copy = __commonJS({
5002
5002
  });
5003
5003
  }
5004
5004
  function checkParentDir(destStat, src, dest, opts, cb) {
5005
- const destParent = path3.dirname(dest);
5005
+ const destParent = path5.dirname(dest);
5006
5006
  pathExists(destParent, (err, dirExists) => {
5007
5007
  if (err) return cb(err);
5008
5008
  if (dirExists) return startCopy(destStat, src, dest, opts, cb);
@@ -5110,8 +5110,8 @@ var require_copy = __commonJS({
5110
5110
  return copyDirItem(items, item, src, dest, opts, cb);
5111
5111
  }
5112
5112
  function copyDirItem(items, item, src, dest, opts, cb) {
5113
- const srcItem = path3.join(src, item);
5114
- const destItem = path3.join(dest, item);
5113
+ const srcItem = path5.join(src, item);
5114
+ const destItem = path5.join(dest, item);
5115
5115
  stat.checkPaths(srcItem, destItem, "copy", (err, stats) => {
5116
5116
  if (err) return cb(err);
5117
5117
  const { destStat } = stats;
@@ -5125,7 +5125,7 @@ var require_copy = __commonJS({
5125
5125
  fs6.readlink(src, (err, resolvedSrc) => {
5126
5126
  if (err) return cb(err);
5127
5127
  if (opts.dereference) {
5128
- resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
5128
+ resolvedSrc = path5.resolve(process.cwd(), resolvedSrc);
5129
5129
  }
5130
5130
  if (!destStat) {
5131
5131
  return fs6.symlink(resolvedSrc, dest, cb);
@@ -5136,7 +5136,7 @@ var require_copy = __commonJS({
5136
5136
  return cb(err2);
5137
5137
  }
5138
5138
  if (opts.dereference) {
5139
- resolvedDest = path3.resolve(process.cwd(), resolvedDest);
5139
+ resolvedDest = path5.resolve(process.cwd(), resolvedDest);
5140
5140
  }
5141
5141
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
5142
5142
  return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
@@ -5175,7 +5175,7 @@ var require_rimraf = __commonJS({
5175
5175
  "node_modules/fs-extra/lib/remove/rimraf.js"(exports2, module2) {
5176
5176
  "use strict";
5177
5177
  var fs6 = require_graceful_fs();
5178
- var path3 = require("path");
5178
+ var path5 = require("path");
5179
5179
  var assert = require("assert");
5180
5180
  var isWindows = process.platform === "win32";
5181
5181
  function defaults(options) {
@@ -5320,7 +5320,7 @@ var require_rimraf = __commonJS({
5320
5320
  let errState;
5321
5321
  if (n === 0) return options.rmdir(p2, cb);
5322
5322
  files.forEach((f3) => {
5323
- rimraf(path3.join(p2, f3), options, (er2) => {
5323
+ rimraf(path5.join(p2, f3), options, (er2) => {
5324
5324
  if (errState) {
5325
5325
  return;
5326
5326
  }
@@ -5385,7 +5385,7 @@ var require_rimraf = __commonJS({
5385
5385
  function rmkidsSync(p2, options) {
5386
5386
  assert(p2);
5387
5387
  assert(options);
5388
- options.readdirSync(p2).forEach((f3) => rimrafSync(path3.join(p2, f3), options));
5388
+ options.readdirSync(p2).forEach((f3) => rimrafSync(path5.join(p2, f3), options));
5389
5389
  if (isWindows) {
5390
5390
  const startTime = Date.now();
5391
5391
  do {
@@ -5424,7 +5424,7 @@ var require_empty = __commonJS({
5424
5424
  "use strict";
5425
5425
  var u = require_universalify().fromCallback;
5426
5426
  var fs6 = require_graceful_fs();
5427
- var path3 = require("path");
5427
+ var path5 = require("path");
5428
5428
  var mkdir = require_mkdirs();
5429
5429
  var remove = require_remove();
5430
5430
  var emptyDir = u(function emptyDir2(dir, callback) {
@@ -5432,7 +5432,7 @@ var require_empty = __commonJS({
5432
5432
  };
5433
5433
  fs6.readdir(dir, (err, items) => {
5434
5434
  if (err) return mkdir.mkdirs(dir, callback);
5435
- items = items.map((item) => path3.join(dir, item));
5435
+ items = items.map((item) => path5.join(dir, item));
5436
5436
  deleteItem();
5437
5437
  function deleteItem() {
5438
5438
  const item = items.pop();
@@ -5452,7 +5452,7 @@ var require_empty = __commonJS({
5452
5452
  return mkdir.mkdirsSync(dir);
5453
5453
  }
5454
5454
  items.forEach((item) => {
5455
- item = path3.join(dir, item);
5455
+ item = path5.join(dir, item);
5456
5456
  remove.removeSync(item);
5457
5457
  });
5458
5458
  }
@@ -5470,7 +5470,7 @@ var require_file = __commonJS({
5470
5470
  "node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
5471
5471
  "use strict";
5472
5472
  var u = require_universalify().fromCallback;
5473
- var path3 = require("path");
5473
+ var path5 = require("path");
5474
5474
  var fs6 = require_graceful_fs();
5475
5475
  var mkdir = require_mkdirs();
5476
5476
  function createFile(file, callback) {
@@ -5482,7 +5482,7 @@ var require_file = __commonJS({
5482
5482
  }
5483
5483
  fs6.stat(file, (err, stats) => {
5484
5484
  if (!err && stats.isFile()) return callback();
5485
- const dir = path3.dirname(file);
5485
+ const dir = path5.dirname(file);
5486
5486
  fs6.stat(dir, (err2, stats2) => {
5487
5487
  if (err2) {
5488
5488
  if (err2.code === "ENOENT") {
@@ -5509,7 +5509,7 @@ var require_file = __commonJS({
5509
5509
  } catch {
5510
5510
  }
5511
5511
  if (stats && stats.isFile()) return;
5512
- const dir = path3.dirname(file);
5512
+ const dir = path5.dirname(file);
5513
5513
  try {
5514
5514
  if (!fs6.statSync(dir).isDirectory()) {
5515
5515
  fs6.readdirSync(dir);
@@ -5532,7 +5532,7 @@ var require_link = __commonJS({
5532
5532
  "node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
5533
5533
  "use strict";
5534
5534
  var u = require_universalify().fromCallback;
5535
- var path3 = require("path");
5535
+ var path5 = require("path");
5536
5536
  var fs6 = require_graceful_fs();
5537
5537
  var mkdir = require_mkdirs();
5538
5538
  var pathExists = require_path_exists().pathExists;
@@ -5551,7 +5551,7 @@ var require_link = __commonJS({
5551
5551
  err2.message = err2.message.replace("lstat", "ensureLink");
5552
5552
  return callback(err2);
5553
5553
  }
5554
- const dir = path3.dirname(dstpath);
5554
+ const dir = path5.dirname(dstpath);
5555
5555
  pathExists(dir, (err3, dirExists) => {
5556
5556
  if (err3) return callback(err3);
5557
5557
  if (dirExists) return makeLink(srcpath, dstpath);
@@ -5572,7 +5572,7 @@ var require_link = __commonJS({
5572
5572
  err.message = err.message.replace("lstat", "ensureLink");
5573
5573
  throw err;
5574
5574
  }
5575
- const dir = path3.dirname(dstpath);
5575
+ const dir = path5.dirname(dstpath);
5576
5576
  const dirExists = fs6.existsSync(dir);
5577
5577
  if (dirExists) return fs6.linkSync(srcpath, dstpath);
5578
5578
  mkdir.mkdirsSync(dir);
@@ -5589,11 +5589,11 @@ var require_link = __commonJS({
5589
5589
  var require_symlink_paths = __commonJS({
5590
5590
  "node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
5591
5591
  "use strict";
5592
- var path3 = require("path");
5592
+ var path5 = require("path");
5593
5593
  var fs6 = require_graceful_fs();
5594
5594
  var pathExists = require_path_exists().pathExists;
5595
5595
  function symlinkPaths(srcpath, dstpath, callback) {
5596
- if (path3.isAbsolute(srcpath)) {
5596
+ if (path5.isAbsolute(srcpath)) {
5597
5597
  return fs6.lstat(srcpath, (err) => {
5598
5598
  if (err) {
5599
5599
  err.message = err.message.replace("lstat", "ensureSymlink");
@@ -5605,8 +5605,8 @@ var require_symlink_paths = __commonJS({
5605
5605
  });
5606
5606
  });
5607
5607
  } else {
5608
- const dstdir = path3.dirname(dstpath);
5609
- const relativeToDst = path3.join(dstdir, srcpath);
5608
+ const dstdir = path5.dirname(dstpath);
5609
+ const relativeToDst = path5.join(dstdir, srcpath);
5610
5610
  return pathExists(relativeToDst, (err, exists) => {
5611
5611
  if (err) return callback(err);
5612
5612
  if (exists) {
@@ -5622,7 +5622,7 @@ var require_symlink_paths = __commonJS({
5622
5622
  }
5623
5623
  return callback(null, {
5624
5624
  toCwd: srcpath,
5625
- toDst: path3.relative(dstdir, srcpath)
5625
+ toDst: path5.relative(dstdir, srcpath)
5626
5626
  });
5627
5627
  });
5628
5628
  }
@@ -5631,7 +5631,7 @@ var require_symlink_paths = __commonJS({
5631
5631
  }
5632
5632
  function symlinkPathsSync(srcpath, dstpath) {
5633
5633
  let exists;
5634
- if (path3.isAbsolute(srcpath)) {
5634
+ if (path5.isAbsolute(srcpath)) {
5635
5635
  exists = fs6.existsSync(srcpath);
5636
5636
  if (!exists) throw new Error("absolute srcpath does not exist");
5637
5637
  return {
@@ -5639,8 +5639,8 @@ var require_symlink_paths = __commonJS({
5639
5639
  toDst: srcpath
5640
5640
  };
5641
5641
  } else {
5642
- const dstdir = path3.dirname(dstpath);
5643
- const relativeToDst = path3.join(dstdir, srcpath);
5642
+ const dstdir = path5.dirname(dstpath);
5643
+ const relativeToDst = path5.join(dstdir, srcpath);
5644
5644
  exists = fs6.existsSync(relativeToDst);
5645
5645
  if (exists) {
5646
5646
  return {
@@ -5652,7 +5652,7 @@ var require_symlink_paths = __commonJS({
5652
5652
  if (!exists) throw new Error("relative srcpath does not exist");
5653
5653
  return {
5654
5654
  toCwd: srcpath,
5655
- toDst: path3.relative(dstdir, srcpath)
5655
+ toDst: path5.relative(dstdir, srcpath)
5656
5656
  };
5657
5657
  }
5658
5658
  }
@@ -5701,7 +5701,7 @@ var require_symlink = __commonJS({
5701
5701
  "node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
5702
5702
  "use strict";
5703
5703
  var u = require_universalify().fromCallback;
5704
- var path3 = require("path");
5704
+ var path5 = require("path");
5705
5705
  var fs6 = require_graceful_fs();
5706
5706
  var _mkdirs = require_mkdirs();
5707
5707
  var mkdirs = _mkdirs.mkdirs;
@@ -5724,7 +5724,7 @@ var require_symlink = __commonJS({
5724
5724
  srcpath = relative.toDst;
5725
5725
  symlinkType(relative.toCwd, type, (err3, type2) => {
5726
5726
  if (err3) return callback(err3);
5727
- const dir = path3.dirname(dstpath);
5727
+ const dir = path5.dirname(dstpath);
5728
5728
  pathExists(dir, (err4, dirExists) => {
5729
5729
  if (err4) return callback(err4);
5730
5730
  if (dirExists) return fs6.symlink(srcpath, dstpath, type2, callback);
@@ -5743,7 +5743,7 @@ var require_symlink = __commonJS({
5743
5743
  const relative = symlinkPathsSync(srcpath, dstpath);
5744
5744
  srcpath = relative.toDst;
5745
5745
  type = symlinkTypeSync(relative.toCwd, type);
5746
- const dir = path3.dirname(dstpath);
5746
+ const dir = path5.dirname(dstpath);
5747
5747
  const exists = fs6.existsSync(dir);
5748
5748
  if (exists) return fs6.symlinkSync(srcpath, dstpath, type);
5749
5749
  mkdirsSync(dir);
@@ -5893,7 +5893,7 @@ var require_output = __commonJS({
5893
5893
  "use strict";
5894
5894
  var u = require_universalify().fromCallback;
5895
5895
  var fs6 = require_graceful_fs();
5896
- var path3 = require("path");
5896
+ var path5 = require("path");
5897
5897
  var mkdir = require_mkdirs();
5898
5898
  var pathExists = require_path_exists().pathExists;
5899
5899
  function outputFile(file, data, encoding, callback) {
@@ -5901,7 +5901,7 @@ var require_output = __commonJS({
5901
5901
  callback = encoding;
5902
5902
  encoding = "utf8";
5903
5903
  }
5904
- const dir = path3.dirname(file);
5904
+ const dir = path5.dirname(file);
5905
5905
  pathExists(dir, (err, itDoes) => {
5906
5906
  if (err) return callback(err);
5907
5907
  if (itDoes) return fs6.writeFile(file, data, encoding, callback);
@@ -5912,7 +5912,7 @@ var require_output = __commonJS({
5912
5912
  });
5913
5913
  }
5914
5914
  function outputFileSync(file, ...args) {
5915
- const dir = path3.dirname(file);
5915
+ const dir = path5.dirname(file);
5916
5916
  if (fs6.existsSync(dir)) {
5917
5917
  return fs6.writeFileSync(file, ...args);
5918
5918
  }
@@ -5977,7 +5977,7 @@ var require_move_sync = __commonJS({
5977
5977
  "node_modules/fs-extra/lib/move-sync/move-sync.js"(exports2, module2) {
5978
5978
  "use strict";
5979
5979
  var fs6 = require_graceful_fs();
5980
- var path3 = require("path");
5980
+ var path5 = require("path");
5981
5981
  var copySync = require_copy_sync2().copySync;
5982
5982
  var removeSync = require_remove().removeSync;
5983
5983
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -5987,7 +5987,7 @@ var require_move_sync = __commonJS({
5987
5987
  const overwrite = opts.overwrite || opts.clobber || false;
5988
5988
  const { srcStat } = stat.checkPathsSync(src, dest, "move");
5989
5989
  stat.checkParentPathsSync(src, srcStat, dest, "move");
5990
- mkdirpSync(path3.dirname(dest));
5990
+ mkdirpSync(path5.dirname(dest));
5991
5991
  return doRename(src, dest, overwrite);
5992
5992
  }
5993
5993
  function doRename(src, dest, overwrite) {
@@ -6033,7 +6033,7 @@ var require_move = __commonJS({
6033
6033
  "node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
6034
6034
  "use strict";
6035
6035
  var fs6 = require_graceful_fs();
6036
- var path3 = require("path");
6036
+ var path5 = require("path");
6037
6037
  var copy = require_copy2().copy;
6038
6038
  var remove = require_remove().remove;
6039
6039
  var mkdirp = require_mkdirs().mkdirp;
@@ -6050,7 +6050,7 @@ var require_move = __commonJS({
6050
6050
  const { srcStat } = stats;
6051
6051
  stat.checkParentPaths(src, srcStat, dest, "move", (err2) => {
6052
6052
  if (err2) return cb(err2);
6053
- mkdirp(path3.dirname(dest), (err3) => {
6053
+ mkdirp(path5.dirname(dest), (err3) => {
6054
6054
  if (err3) return cb(err3);
6055
6055
  return doRename(src, dest, overwrite, cb);
6056
6056
  });
@@ -6167,7 +6167,7 @@ var require_dist = __commonJS({
6167
6167
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
6168
6168
  var fs6 = require_lib();
6169
6169
  var os3 = require("os");
6170
- var path3 = require("path");
6170
+ var path5 = require("path");
6171
6171
  var stream = require("stream");
6172
6172
  var safe = require_safe();
6173
6173
  tslib_1.__exportStar(require_lib(), exports2);
@@ -6200,7 +6200,7 @@ var require_dist = __commonJS({
6200
6200
  async function getFileTree(dir, { onError, onFileNode = (n) => n, onDirectoryNode = (n) => n, walkerOptions } = {}) {
6201
6201
  const fileMap = /* @__PURE__ */ new Map([]);
6202
6202
  const getOrCreateParent = (item) => {
6203
- const parentPath = path3.dirname(item.path);
6203
+ const parentPath = path5.dirname(item.path);
6204
6204
  const parent = fileMap.get(parentPath);
6205
6205
  if (parent && parent.type === "directory") {
6206
6206
  return parent;
@@ -6216,7 +6216,7 @@ var require_dist = __commonJS({
6216
6216
  });
6217
6217
  };
6218
6218
  return new Promise((resolve2, reject) => {
6219
- dir = path3.resolve(dir);
6219
+ dir = path5.resolve(dir);
6220
6220
  const rs = walk(dir, walkerOptions);
6221
6221
  rs.on("error", (err) => onError ? onError(err) : reject(err)).on("data", (item) => {
6222
6222
  const parent = getOrCreateParent(item);
@@ -6339,20 +6339,20 @@ var require_dist = __commonJS({
6339
6339
  exports2.findBaseDirectory = findBaseDirectory;
6340
6340
  function tmpfilepath(prefix) {
6341
6341
  const rn = Math.random().toString(16).substring(2, 8);
6342
- const p2 = path3.resolve(os3.tmpdir(), prefix ? `${prefix}-${rn}` : rn);
6342
+ const p2 = path5.resolve(os3.tmpdir(), prefix ? `${prefix}-${rn}` : rn);
6343
6343
  return p2;
6344
6344
  }
6345
6345
  exports2.tmpfilepath = tmpfilepath;
6346
6346
  function compilePaths(filePath) {
6347
- filePath = path3.normalize(filePath);
6348
- if (!path3.isAbsolute(filePath)) {
6347
+ filePath = path5.normalize(filePath);
6348
+ if (!path5.isAbsolute(filePath)) {
6349
6349
  throw new Error(`${filePath} is not an absolute path`);
6350
6350
  }
6351
- const parsed = path3.parse(filePath);
6351
+ const parsed = path5.parse(filePath);
6352
6352
  if (filePath === parsed.root) {
6353
6353
  return [filePath];
6354
6354
  }
6355
- return filePath.slice(parsed.root.length).split(path3.sep).map((segment, i, array) => parsed.root + path3.join(...array.slice(0, array.length - i))).concat(parsed.root);
6355
+ return filePath.slice(parsed.root.length).split(path5.sep).map((segment, i, array) => parsed.root + path5.join(...array.slice(0, array.length - i))).concat(parsed.root);
6356
6356
  }
6357
6357
  exports2.compilePaths = compilePaths;
6358
6358
  var Walker = class extends stream.Readable {
@@ -6381,7 +6381,7 @@ var require_dist = __commonJS({
6381
6381
  this.emit("error", err2);
6382
6382
  return;
6383
6383
  }
6384
- let paths = contents.map((file) => path3.join(p2, file));
6384
+ let paths = contents.map((file) => path5.join(p2, file));
6385
6385
  if (pathFilter) {
6386
6386
  paths = paths.filter((p3) => pathFilter(p3.substring(this.p.length + 1)));
6387
6387
  }
@@ -8473,15 +8473,15 @@ var require_route = __commonJS({
8473
8473
  };
8474
8474
  }
8475
8475
  function wrapConversion(toModel, graph) {
8476
- const path3 = [graph[toModel].parent, toModel];
8476
+ const path5 = [graph[toModel].parent, toModel];
8477
8477
  let fn = conversions[graph[toModel].parent][toModel];
8478
8478
  let cur = graph[toModel].parent;
8479
8479
  while (graph[cur].parent) {
8480
- path3.unshift(graph[cur].parent);
8480
+ path5.unshift(graph[cur].parent);
8481
8481
  fn = link(conversions[graph[cur].parent][cur], fn);
8482
8482
  cur = graph[cur].parent;
8483
8483
  }
8484
- fn.conversion = path3;
8484
+ fn.conversion = path5;
8485
8485
  return fn;
8486
8486
  }
8487
8487
  module2.exports = function(fromModel) {
@@ -9046,7 +9046,7 @@ var require_format = __commonJS({
9046
9046
  exports2.columnar = exports2.generateFillSpaceStringList = exports2.expandPath = exports2.prettyPath = exports2.wordWrap = exports2.indent = exports2.TTY_WIDTH = exports2.stripAnsi = exports2.stringWidth = exports2.sliceAnsi = void 0;
9047
9047
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
9048
9048
  var os3 = tslib_1.__importStar(require("os"));
9049
- var path3 = tslib_1.__importStar(require("path"));
9049
+ var path5 = tslib_1.__importStar(require("path"));
9050
9050
  var sliceAnsi = require_slice_ansi();
9051
9051
  exports2.sliceAnsi = sliceAnsi;
9052
9052
  var stringWidth = require_string_width();
@@ -9070,26 +9070,26 @@ ${indent(indentation)}`);
9070
9070
  function prettyPath(p2) {
9071
9071
  p2 = expandPath(p2);
9072
9072
  const cwd = process.cwd();
9073
- const d3 = path3.dirname(p2);
9073
+ const d3 = path5.dirname(p2);
9074
9074
  const h3 = os3.homedir();
9075
- const distanceFromCwd = Math.abs(d3.split(path3.sep).length - cwd.split(path3.sep).length);
9075
+ const distanceFromCwd = Math.abs(d3.split(path5.sep).length - cwd.split(path5.sep).length);
9076
9076
  if (cwd === d3) {
9077
- return "." + path3.sep + path3.basename(p2);
9077
+ return "." + path5.sep + path5.basename(p2);
9078
9078
  } else if (d3.startsWith(cwd)) {
9079
- return "." + path3.sep + p2.substring(cwd.length + 1);
9079
+ return "." + path5.sep + p2.substring(cwd.length + 1);
9080
9080
  } else if (distanceFromCwd <= 2) {
9081
- const rel = path3.relative(cwd, p2);
9081
+ const rel = path5.relative(cwd, p2);
9082
9082
  return rel ? rel : ".";
9083
9083
  } else if (p2 === h3) {
9084
9084
  return "~";
9085
9085
  } else if (p2.indexOf(h3) === 0) {
9086
- return "~" + path3.sep + p2.substring(h3.length + 1);
9086
+ return "~" + path5.sep + p2.substring(h3.length + 1);
9087
9087
  }
9088
9088
  return p2;
9089
9089
  }
9090
9090
  exports2.prettyPath = prettyPath;
9091
9091
  function expandPath(p2) {
9092
- return path3.resolve(untildify(p2));
9092
+ return path5.resolve(untildify(p2));
9093
9093
  }
9094
9094
  exports2.expandPath = expandPath;
9095
9095
  function generateFillSpaceStringList(list, optimalLength = 1, fillCharacter = " ") {
@@ -14703,9 +14703,9 @@ var require_node2 = __commonJS({
14703
14703
  try {
14704
14704
  return require.resolve(pathSegments.join("/"), { paths: [root] });
14705
14705
  } catch (e2) {
14706
- const path3 = [root, "node_modules", ...pathSegments].join("/");
14707
- if ((0, fs_1.existsSync)(path3)) {
14708
- return path3;
14706
+ const path5 = [root, "node_modules", ...pathSegments].join("/");
14707
+ if ((0, fs_1.existsSync)(path5)) {
14708
+ return path5;
14709
14709
  }
14710
14710
  return null;
14711
14711
  }
@@ -20599,17 +20599,17 @@ var require_xml = __commonJS({
20599
20599
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
20600
20600
  var utils_fs_1 = require_dist();
20601
20601
  var xml2js_1 = tslib_1.__importDefault(require_xml2js());
20602
- async function readXML(path3) {
20602
+ async function readXML(path5) {
20603
20603
  var _a;
20604
20604
  try {
20605
- const xmlStr = await (0, utils_fs_1.readFile)(path3, { encoding: "utf-8" });
20605
+ const xmlStr = await (0, utils_fs_1.readFile)(path5, { encoding: "utf-8" });
20606
20606
  try {
20607
20607
  return await xml2js_1.default.parseStringPromise(xmlStr);
20608
20608
  } catch (e2) {
20609
- throw `Error parsing: ${path3}, ${(_a = e2.stack) !== null && _a !== void 0 ? _a : e2}`;
20609
+ throw `Error parsing: ${path5}, ${(_a = e2.stack) !== null && _a !== void 0 ? _a : e2}`;
20610
20610
  }
20611
20611
  } catch (e2) {
20612
- throw `Unable to read: ${path3}`;
20612
+ throw `Unable to read: ${path5}`;
20613
20613
  }
20614
20614
  }
20615
20615
  exports2.readXML = readXML;
@@ -20796,9 +20796,9 @@ Are you sure ${colors_1.default.strong(name)} is installed?`);
20796
20796
  return getAllElements(p2, platform2, "asset");
20797
20797
  }
20798
20798
  exports2.getAssets = getAssets;
20799
- function getFilePath(config, plugin, path3) {
20800
- if (path3.startsWith("node_modules")) {
20801
- let pathSegments = path3.split("/").slice(1);
20799
+ function getFilePath(config, plugin, path5) {
20800
+ if (path5.startsWith("node_modules")) {
20801
+ let pathSegments = path5.split("/").slice(1);
20802
20802
  if (pathSegments[0].startsWith("@")) {
20803
20803
  pathSegments = [
20804
20804
  pathSegments[0] + "/" + pathSegments[1],
@@ -20811,7 +20811,7 @@ Are you sure ${colors_1.default.strong(name)} is installed?`);
20811
20811
  }
20812
20812
  return filePath;
20813
20813
  }
20814
- return (0, path_1.join)(plugin.rootPath, path3);
20814
+ return (0, path_1.join)(plugin.rootPath, path5);
20815
20815
  }
20816
20816
  exports2.getFilePath = getFilePath;
20817
20817
  function getAllElements(p2, platform2, elementName) {
@@ -21019,7 +21019,7 @@ var require_dist6 = __commonJS({
21019
21019
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
21020
21020
  var fs6 = require_lib();
21021
21021
  var os3 = require("os");
21022
- var path3 = require("path");
21022
+ var path5 = require("path");
21023
21023
  var stream = require("stream");
21024
21024
  var safe = require_safe2();
21025
21025
  tslib_1.__exportStar(require_lib(), exports2);
@@ -21052,7 +21052,7 @@ var require_dist6 = __commonJS({
21052
21052
  async function getFileTree(dir, { onError, onFileNode = (n) => n, onDirectoryNode = (n) => n, walkerOptions } = {}) {
21053
21053
  const fileMap = /* @__PURE__ */ new Map([]);
21054
21054
  const getOrCreateParent = (item) => {
21055
- const parentPath = path3.dirname(item.path);
21055
+ const parentPath = path5.dirname(item.path);
21056
21056
  const parent = fileMap.get(parentPath);
21057
21057
  if (parent && parent.type === "directory") {
21058
21058
  return parent;
@@ -21068,7 +21068,7 @@ var require_dist6 = __commonJS({
21068
21068
  });
21069
21069
  };
21070
21070
  return new Promise((resolve2, reject) => {
21071
- dir = path3.resolve(dir);
21071
+ dir = path5.resolve(dir);
21072
21072
  const rs = walk(dir, walkerOptions);
21073
21073
  rs.on("error", (err) => onError ? onError(err) : reject(err)).on("data", (item) => {
21074
21074
  const parent = getOrCreateParent(item);
@@ -21191,20 +21191,20 @@ var require_dist6 = __commonJS({
21191
21191
  exports2.findBaseDirectory = findBaseDirectory;
21192
21192
  function tmpfilepath(prefix) {
21193
21193
  const rn = Math.random().toString(16).substring(2, 8);
21194
- const p2 = path3.resolve(os3.tmpdir(), prefix ? `${prefix}-${rn}` : rn);
21194
+ const p2 = path5.resolve(os3.tmpdir(), prefix ? `${prefix}-${rn}` : rn);
21195
21195
  return p2;
21196
21196
  }
21197
21197
  exports2.tmpfilepath = tmpfilepath;
21198
21198
  function compilePaths(filePath) {
21199
- filePath = path3.normalize(filePath);
21200
- if (!path3.isAbsolute(filePath)) {
21199
+ filePath = path5.normalize(filePath);
21200
+ if (!path5.isAbsolute(filePath)) {
21201
21201
  throw new Error(`${filePath} is not an absolute path`);
21202
21202
  }
21203
- const parsed = path3.parse(filePath);
21203
+ const parsed = path5.parse(filePath);
21204
21204
  if (filePath === parsed.root) {
21205
21205
  return [filePath];
21206
21206
  }
21207
- return filePath.slice(parsed.root.length).split(path3.sep).map((segment, i, array) => parsed.root + path3.join(...array.slice(0, array.length - i))).concat(parsed.root);
21207
+ return filePath.slice(parsed.root.length).split(path5.sep).map((segment, i, array) => parsed.root + path5.join(...array.slice(0, array.length - i))).concat(parsed.root);
21208
21208
  }
21209
21209
  exports2.compilePaths = compilePaths;
21210
21210
  var Walker = class extends stream.Readable {
@@ -21233,7 +21233,7 @@ var require_dist6 = __commonJS({
21233
21233
  this.emit("error", err2);
21234
21234
  return;
21235
21235
  }
21236
- let paths = contents.map((file) => path3.join(p2, file));
21236
+ let paths = contents.map((file) => path5.join(p2, file));
21237
21237
  if (pathFilter) {
21238
21238
  paths = paths.filter((p3) => pathFilter(p3.substring(this.p.length + 1)));
21239
21239
  }
@@ -21389,7 +21389,7 @@ var require_format2 = __commonJS({
21389
21389
  Object.defineProperty(exports2, "__esModule", { value: true });
21390
21390
  exports2.columnar = exports2.generateFillSpaceStringList = exports2.expandPath = exports2.prettyPath = exports2.wordWrap = exports2.indent = exports2.TTY_WIDTH = exports2.stripAnsi = exports2.stringWidth = exports2.sliceAnsi = void 0;
21391
21391
  var os3 = require("os");
21392
- var path3 = require("path");
21392
+ var path5 = require("path");
21393
21393
  var sliceAnsi = require_slice_ansi();
21394
21394
  exports2.sliceAnsi = sliceAnsi;
21395
21395
  var stringWidth = require_string_width();
@@ -21413,26 +21413,26 @@ ${indent(indentation)}`);
21413
21413
  function prettyPath(p2) {
21414
21414
  p2 = expandPath(p2);
21415
21415
  const cwd = process.cwd();
21416
- const d3 = path3.dirname(p2);
21416
+ const d3 = path5.dirname(p2);
21417
21417
  const h3 = os3.homedir();
21418
- const distanceFromCwd = Math.abs(d3.split(path3.sep).length - cwd.split(path3.sep).length);
21418
+ const distanceFromCwd = Math.abs(d3.split(path5.sep).length - cwd.split(path5.sep).length);
21419
21419
  if (cwd === d3) {
21420
- return "." + path3.sep + path3.basename(p2);
21420
+ return "." + path5.sep + path5.basename(p2);
21421
21421
  } else if (d3.startsWith(cwd)) {
21422
- return "." + path3.sep + p2.substring(cwd.length + 1);
21422
+ return "." + path5.sep + p2.substring(cwd.length + 1);
21423
21423
  } else if (distanceFromCwd <= 2) {
21424
- const rel = path3.relative(cwd, p2);
21424
+ const rel = path5.relative(cwd, p2);
21425
21425
  return rel ? rel : ".";
21426
21426
  } else if (p2 === h3) {
21427
21427
  return "~";
21428
21428
  } else if (p2.indexOf(h3) === 0) {
21429
- return "~" + path3.sep + p2.substring(h3.length + 1);
21429
+ return "~" + path5.sep + p2.substring(h3.length + 1);
21430
21430
  }
21431
21431
  return p2;
21432
21432
  }
21433
21433
  exports2.prettyPath = prettyPath;
21434
21434
  function expandPath(p2) {
21435
- return path3.resolve(untildify(p2));
21435
+ return path5.resolve(untildify(p2));
21436
21436
  }
21437
21437
  exports2.expandPath = expandPath;
21438
21438
  function generateFillSpaceStringList(list, optimalLength = 1, fillCharacter = " ") {
@@ -21885,7 +21885,7 @@ var require_windows = __commonJS({
21885
21885
  module2.exports = isexe;
21886
21886
  isexe.sync = sync;
21887
21887
  var fs6 = require("fs");
21888
- function checkPathExt(path3, options) {
21888
+ function checkPathExt(path5, options) {
21889
21889
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
21890
21890
  if (!pathext) {
21891
21891
  return true;
@@ -21896,25 +21896,25 @@ var require_windows = __commonJS({
21896
21896
  }
21897
21897
  for (var i = 0; i < pathext.length; i++) {
21898
21898
  var p2 = pathext[i].toLowerCase();
21899
- if (p2 && path3.substr(-p2.length).toLowerCase() === p2) {
21899
+ if (p2 && path5.substr(-p2.length).toLowerCase() === p2) {
21900
21900
  return true;
21901
21901
  }
21902
21902
  }
21903
21903
  return false;
21904
21904
  }
21905
- function checkStat(stat, path3, options) {
21905
+ function checkStat(stat, path5, options) {
21906
21906
  if (!stat.isSymbolicLink() && !stat.isFile()) {
21907
21907
  return false;
21908
21908
  }
21909
- return checkPathExt(path3, options);
21909
+ return checkPathExt(path5, options);
21910
21910
  }
21911
- function isexe(path3, options, cb) {
21912
- fs6.stat(path3, function(er, stat) {
21913
- cb(er, er ? false : checkStat(stat, path3, options));
21911
+ function isexe(path5, options, cb) {
21912
+ fs6.stat(path5, function(er, stat) {
21913
+ cb(er, er ? false : checkStat(stat, path5, options));
21914
21914
  });
21915
21915
  }
21916
- function sync(path3, options) {
21917
- return checkStat(fs6.statSync(path3), path3, options);
21916
+ function sync(path5, options) {
21917
+ return checkStat(fs6.statSync(path5), path5, options);
21918
21918
  }
21919
21919
  }
21920
21920
  });
@@ -21925,13 +21925,13 @@ var require_mode = __commonJS({
21925
21925
  module2.exports = isexe;
21926
21926
  isexe.sync = sync;
21927
21927
  var fs6 = require("fs");
21928
- function isexe(path3, options, cb) {
21929
- fs6.stat(path3, function(er, stat) {
21928
+ function isexe(path5, options, cb) {
21929
+ fs6.stat(path5, function(er, stat) {
21930
21930
  cb(er, er ? false : checkStat(stat, options));
21931
21931
  });
21932
21932
  }
21933
- function sync(path3, options) {
21934
- return checkStat(fs6.statSync(path3), options);
21933
+ function sync(path5, options) {
21934
+ return checkStat(fs6.statSync(path5), options);
21935
21935
  }
21936
21936
  function checkStat(stat, options) {
21937
21937
  return stat.isFile() && checkMode(stat, options);
@@ -21964,7 +21964,7 @@ var require_isexe = __commonJS({
21964
21964
  }
21965
21965
  module2.exports = isexe;
21966
21966
  isexe.sync = sync;
21967
- function isexe(path3, options, cb) {
21967
+ function isexe(path5, options, cb) {
21968
21968
  if (typeof options === "function") {
21969
21969
  cb = options;
21970
21970
  options = {};
@@ -21974,7 +21974,7 @@ var require_isexe = __commonJS({
21974
21974
  throw new TypeError("callback not provided");
21975
21975
  }
21976
21976
  return new Promise(function(resolve2, reject) {
21977
- isexe(path3, options || {}, function(er, is) {
21977
+ isexe(path5, options || {}, function(er, is) {
21978
21978
  if (er) {
21979
21979
  reject(er);
21980
21980
  } else {
@@ -21983,7 +21983,7 @@ var require_isexe = __commonJS({
21983
21983
  });
21984
21984
  });
21985
21985
  }
21986
- core(path3, options || {}, function(er, is) {
21986
+ core(path5, options || {}, function(er, is) {
21987
21987
  if (er) {
21988
21988
  if (er.code === "EACCES" || options && options.ignoreErrors) {
21989
21989
  er = null;
@@ -21993,9 +21993,9 @@ var require_isexe = __commonJS({
21993
21993
  cb(er, is);
21994
21994
  });
21995
21995
  }
21996
- function sync(path3, options) {
21996
+ function sync(path5, options) {
21997
21997
  try {
21998
- return core.sync(path3, options || {});
21998
+ return core.sync(path5, options || {});
21999
21999
  } catch (er) {
22000
22000
  if (options && options.ignoreErrors || er.code === "EACCES") {
22001
22001
  return false;
@@ -22011,7 +22011,7 @@ var require_isexe = __commonJS({
22011
22011
  var require_which = __commonJS({
22012
22012
  "node_modules/which/which.js"(exports2, module2) {
22013
22013
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
22014
- var path3 = require("path");
22014
+ var path5 = require("path");
22015
22015
  var COLON = isWindows ? ";" : ":";
22016
22016
  var isexe = require_isexe();
22017
22017
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -22049,7 +22049,7 @@ var require_which = __commonJS({
22049
22049
  return opt.all && found.length ? resolve2(found) : reject(getNotFoundError(cmd));
22050
22050
  const ppRaw = pathEnv[i];
22051
22051
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
22052
- const pCmd = path3.join(pathPart, cmd);
22052
+ const pCmd = path5.join(pathPart, cmd);
22053
22053
  const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
22054
22054
  resolve2(subStep(p2, i, 0));
22055
22055
  });
@@ -22076,7 +22076,7 @@ var require_which = __commonJS({
22076
22076
  for (let i = 0; i < pathEnv.length; i++) {
22077
22077
  const ppRaw = pathEnv[i];
22078
22078
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
22079
- const pCmd = path3.join(pathPart, cmd);
22079
+ const pCmd = path5.join(pathPart, cmd);
22080
22080
  const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
22081
22081
  for (let j2 = 0; j2 < pathExt.length; j2++) {
22082
22082
  const cur = p2 + pathExt[j2];
@@ -22124,7 +22124,7 @@ var require_path_key = __commonJS({
22124
22124
  var require_resolveCommand = __commonJS({
22125
22125
  "node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
22126
22126
  "use strict";
22127
- var path3 = require("path");
22127
+ var path5 = require("path");
22128
22128
  var which = require_which();
22129
22129
  var getPathKey = require_path_key();
22130
22130
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -22142,7 +22142,7 @@ var require_resolveCommand = __commonJS({
22142
22142
  try {
22143
22143
  resolved = which.sync(parsed.command, {
22144
22144
  path: env[getPathKey({ env })],
22145
- pathExt: withoutPathExt ? path3.delimiter : void 0
22145
+ pathExt: withoutPathExt ? path5.delimiter : void 0
22146
22146
  });
22147
22147
  } catch (e2) {
22148
22148
  } finally {
@@ -22151,7 +22151,7 @@ var require_resolveCommand = __commonJS({
22151
22151
  }
22152
22152
  }
22153
22153
  if (resolved) {
22154
- resolved = path3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
22154
+ resolved = path5.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
22155
22155
  }
22156
22156
  return resolved;
22157
22157
  }
@@ -22205,8 +22205,8 @@ var require_shebang_command = __commonJS({
22205
22205
  if (!match) {
22206
22206
  return null;
22207
22207
  }
22208
- const [path3, argument] = match[0].replace(/#! ?/, "").split(" ");
22209
- const binary = path3.split("/").pop();
22208
+ const [path5, argument] = match[0].replace(/#! ?/, "").split(" ");
22209
+ const binary = path5.split("/").pop();
22210
22210
  if (binary === "env") {
22211
22211
  return argument;
22212
22212
  }
@@ -22241,7 +22241,7 @@ var require_readShebang = __commonJS({
22241
22241
  var require_parse = __commonJS({
22242
22242
  "node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
22243
22243
  "use strict";
22244
- var path3 = require("path");
22244
+ var path5 = require("path");
22245
22245
  var resolveCommand = require_resolveCommand();
22246
22246
  var escape = require_escape();
22247
22247
  var readShebang = require_readShebang();
@@ -22266,7 +22266,7 @@ var require_parse = __commonJS({
22266
22266
  const needsShell = !isExecutableRegExp.test(commandFile);
22267
22267
  if (parsed.options.forceShell || needsShell) {
22268
22268
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
22269
- parsed.command = path3.normalize(parsed.command);
22269
+ parsed.command = path5.normalize(parsed.command);
22270
22270
  parsed.command = escape.command(parsed.command);
22271
22271
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
22272
22272
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -22400,8 +22400,8 @@ var require_dist11 = __commonJS({
22400
22400
  return p2.replace(exports2.TILDE_PATH_REGEX, `${h3}$1`);
22401
22401
  }
22402
22402
  exports2.expandTildePath = expandTildePath;
22403
- function convertPATH(path3 = process.env.PATH || "") {
22404
- return path3.split(pathlib.delimiter).map(expandTildePath).join(pathlib.delimiter);
22403
+ function convertPATH(path5 = process.env.PATH || "") {
22404
+ return path5.split(pathlib.delimiter).map(expandTildePath).join(pathlib.delimiter);
22405
22405
  }
22406
22406
  exports2.convertPATH = convertPATH;
22407
22407
  var SubprocessError = class extends Error {
@@ -26038,14 +26038,14 @@ var require_url_state_machine = __commonJS({
26038
26038
  return url.replace(/\u0009|\u000A|\u000D/g, "");
26039
26039
  }
26040
26040
  function shortenPath(url) {
26041
- const path3 = url.path;
26042
- if (path3.length === 0) {
26041
+ const path5 = url.path;
26042
+ if (path5.length === 0) {
26043
26043
  return;
26044
26044
  }
26045
- if (url.scheme === "file" && path3.length === 1 && isNormalizedWindowsDriveLetter(path3[0])) {
26045
+ if (url.scheme === "file" && path5.length === 1 && isNormalizedWindowsDriveLetter(path5[0])) {
26046
26046
  return;
26047
26047
  }
26048
- path3.pop();
26048
+ path5.pop();
26049
26049
  }
26050
26050
  function includesCredentials(url) {
26051
26051
  return url.username !== "" || url.password !== "";
@@ -35146,7 +35146,7 @@ var require_StorageFileApi = __commonJS({
35146
35146
  * @param path The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
35147
35147
  * @param fileBody The body of the file to be stored in the bucket.
35148
35148
  */
35149
- uploadOrUpdate(method, path3, fileBody, fileOptions) {
35149
+ uploadOrUpdate(method, path5, fileBody, fileOptions) {
35150
35150
  return __awaiter2(this, void 0, void 0, function* () {
35151
35151
  try {
35152
35152
  let body;
@@ -35164,7 +35164,7 @@ var require_StorageFileApi = __commonJS({
35164
35164
  headers["cache-control"] = `max-age=${options.cacheControl}`;
35165
35165
  headers["content-type"] = options.contentType;
35166
35166
  }
35167
- const cleanPath = this._removeEmptyFolders(path3);
35167
+ const cleanPath = this._removeEmptyFolders(path5);
35168
35168
  const _path = this._getFinalPath(cleanPath);
35169
35169
  const res = yield this.fetch(`${this.url}/object/${_path}`, Object.assign({ method, body, headers }, (options === null || options === void 0 ? void 0 : options.duplex) ? { duplex: options.duplex } : {}));
35170
35170
  const data = yield res.json();
@@ -35191,9 +35191,9 @@ var require_StorageFileApi = __commonJS({
35191
35191
  * @param path The file path, including the file name. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
35192
35192
  * @param fileBody The body of the file to be stored in the bucket.
35193
35193
  */
35194
- upload(path3, fileBody, fileOptions) {
35194
+ upload(path5, fileBody, fileOptions) {
35195
35195
  return __awaiter2(this, void 0, void 0, function* () {
35196
- return this.uploadOrUpdate("POST", path3, fileBody, fileOptions);
35196
+ return this.uploadOrUpdate("POST", path5, fileBody, fileOptions);
35197
35197
  });
35198
35198
  }
35199
35199
  /**
@@ -35202,9 +35202,9 @@ var require_StorageFileApi = __commonJS({
35202
35202
  * @param token The token generated from `createSignedUploadUrl`
35203
35203
  * @param fileBody The body of the file to be stored in the bucket.
35204
35204
  */
35205
- uploadToSignedUrl(path3, token, fileBody, fileOptions) {
35205
+ uploadToSignedUrl(path5, token, fileBody, fileOptions) {
35206
35206
  return __awaiter2(this, void 0, void 0, function* () {
35207
- const cleanPath = this._removeEmptyFolders(path3);
35207
+ const cleanPath = this._removeEmptyFolders(path5);
35208
35208
  const _path = this._getFinalPath(cleanPath);
35209
35209
  const url = new URL(this.url + `/object/upload/sign/${_path}`);
35210
35210
  url.searchParams.set("token", token);
@@ -35254,10 +35254,10 @@ var require_StorageFileApi = __commonJS({
35254
35254
  * @param path The file path, including the current file name. For example `folder/image.png`.
35255
35255
  * @param options.upsert If set to true, allows the file to be overwritten if it already exists.
35256
35256
  */
35257
- createSignedUploadUrl(path3, options) {
35257
+ createSignedUploadUrl(path5, options) {
35258
35258
  return __awaiter2(this, void 0, void 0, function* () {
35259
35259
  try {
35260
- let _path = this._getFinalPath(path3);
35260
+ let _path = this._getFinalPath(path5);
35261
35261
  const headers = Object.assign({}, this.headers);
35262
35262
  if (options === null || options === void 0 ? void 0 : options.upsert) {
35263
35263
  headers["x-upsert"] = "true";
@@ -35268,7 +35268,7 @@ var require_StorageFileApi = __commonJS({
35268
35268
  if (!token) {
35269
35269
  throw new errors_1.StorageError("No token returned by API");
35270
35270
  }
35271
- return { data: { signedUrl: url.toString(), path: path3, token }, error: null };
35271
+ return { data: { signedUrl: url.toString(), path: path5, token }, error: null };
35272
35272
  } catch (error) {
35273
35273
  if ((0, errors_1.isStorageError)(error)) {
35274
35274
  return { data: null, error };
@@ -35283,9 +35283,9 @@ var require_StorageFileApi = __commonJS({
35283
35283
  * @param path The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to update.
35284
35284
  * @param fileBody The body of the file to be stored in the bucket.
35285
35285
  */
35286
- update(path3, fileBody, fileOptions) {
35286
+ update(path5, fileBody, fileOptions) {
35287
35287
  return __awaiter2(this, void 0, void 0, function* () {
35288
- return this.uploadOrUpdate("PUT", path3, fileBody, fileOptions);
35288
+ return this.uploadOrUpdate("PUT", path5, fileBody, fileOptions);
35289
35289
  });
35290
35290
  }
35291
35291
  /**
@@ -35346,10 +35346,10 @@ var require_StorageFileApi = __commonJS({
35346
35346
  * @param options.download triggers the file as a download if set to true. Set this parameter as the name of the file if you want to trigger the download with a different filename.
35347
35347
  * @param options.transform Transform the asset before serving it to the client.
35348
35348
  */
35349
- createSignedUrl(path3, expiresIn, options) {
35349
+ createSignedUrl(path5, expiresIn, options) {
35350
35350
  return __awaiter2(this, void 0, void 0, function* () {
35351
35351
  try {
35352
- let _path = this._getFinalPath(path3);
35352
+ let _path = this._getFinalPath(path5);
35353
35353
  let data = yield (0, fetch_1.post)(this.fetch, `${this.url}/object/sign/${_path}`, Object.assign({ expiresIn }, (options === null || options === void 0 ? void 0 : options.transform) ? { transform: options.transform } : {}), { headers: this.headers });
35354
35354
  const downloadQueryParam = (options === null || options === void 0 ? void 0 : options.download) ? `&download=${options.download === true ? "" : options.download}` : "";
35355
35355
  const signedUrl = encodeURI(`${this.url}${data.signedURL}${downloadQueryParam}`);
@@ -35393,14 +35393,14 @@ var require_StorageFileApi = __commonJS({
35393
35393
  * @param path The full path and file name of the file to be downloaded. For example `folder/image.png`.
35394
35394
  * @param options.transform Transform the asset before serving it to the client.
35395
35395
  */
35396
- download(path3, options) {
35396
+ download(path5, options) {
35397
35397
  return __awaiter2(this, void 0, void 0, function* () {
35398
35398
  const wantsTransformation = typeof (options === null || options === void 0 ? void 0 : options.transform) !== "undefined";
35399
35399
  const renderPath = wantsTransformation ? "render/image/authenticated" : "object";
35400
35400
  const transformationQuery = this.transformOptsToQueryString((options === null || options === void 0 ? void 0 : options.transform) || {});
35401
35401
  const queryString = transformationQuery ? `?${transformationQuery}` : "";
35402
35402
  try {
35403
- const _path = this._getFinalPath(path3);
35403
+ const _path = this._getFinalPath(path5);
35404
35404
  const res = yield (0, fetch_1.get)(this.fetch, `${this.url}/${renderPath}/${_path}${queryString}`, {
35405
35405
  headers: this.headers,
35406
35406
  noResolveJson: true
@@ -35423,8 +35423,8 @@ var require_StorageFileApi = __commonJS({
35423
35423
  * @param options.download Triggers the file as a download if set to true. Set this parameter as the name of the file if you want to trigger the download with a different filename.
35424
35424
  * @param options.transform Transform the asset before serving it to the client.
35425
35425
  */
35426
- getPublicUrl(path3, options) {
35427
- const _path = this._getFinalPath(path3);
35426
+ getPublicUrl(path5, options) {
35427
+ const _path = this._getFinalPath(path5);
35428
35428
  const _queryString = [];
35429
35429
  const downloadQueryParam = (options === null || options === void 0 ? void 0 : options.download) ? `download=${options.download === true ? "" : options.download}` : "";
35430
35430
  if (downloadQueryParam !== "") {
@@ -35525,10 +35525,10 @@ var require_StorageFileApi = __commonJS({
35525
35525
  * Lists all the files within a bucket.
35526
35526
  * @param path The folder path.
35527
35527
  */
35528
- list(path3, options, parameters) {
35528
+ list(path5, options, parameters) {
35529
35529
  return __awaiter2(this, void 0, void 0, function* () {
35530
35530
  try {
35531
- const body = Object.assign(Object.assign(Object.assign({}, DEFAULT_SEARCH_OPTIONS), options), { prefix: path3 || "" });
35531
+ const body = Object.assign(Object.assign(Object.assign({}, DEFAULT_SEARCH_OPTIONS), options), { prefix: path5 || "" });
35532
35532
  const data = yield (0, fetch_1.post)(this.fetch, `${this.url}/object/list/${this.bucketId}`, body, { headers: this.headers }, parameters);
35533
35533
  return { data, error: null };
35534
35534
  } catch (error) {
@@ -35539,11 +35539,11 @@ var require_StorageFileApi = __commonJS({
35539
35539
  }
35540
35540
  });
35541
35541
  }
35542
- _getFinalPath(path3) {
35543
- return `${this.bucketId}/${path3}`;
35542
+ _getFinalPath(path5) {
35543
+ return `${this.bucketId}/${path5}`;
35544
35544
  }
35545
- _removeEmptyFolders(path3) {
35546
- return path3.replace(/^\/|\/$/g, "").replace(/\/+/g, "/");
35545
+ _removeEmptyFolders(path5) {
35546
+ return path5.replace(/^\/|\/$/g, "").replace(/\/+/g, "/");
35547
35547
  }
35548
35548
  transformOptsToQueryString(transform) {
35549
35549
  const params = [];
@@ -45612,7 +45612,7 @@ var require_p_locate = __commonJS({
45612
45612
  var require_locate_path = __commonJS({
45613
45613
  "node_modules/@manypkg/find-root/node_modules/find-up/node_modules/locate-path/index.js"(exports2, module2) {
45614
45614
  "use strict";
45615
- var path3 = require("path");
45615
+ var path5 = require("path");
45616
45616
  var fs6 = require("fs");
45617
45617
  var { promisify: promisify5 } = require("util");
45618
45618
  var pLocate = require_p_locate();
@@ -45640,7 +45640,7 @@ var require_locate_path = __commonJS({
45640
45640
  const statFn = options.allowSymlinks ? fsStat : fsLStat;
45641
45641
  return pLocate(paths, async (path_) => {
45642
45642
  try {
45643
- const stat = await statFn(path3.resolve(options.cwd, path_));
45643
+ const stat = await statFn(path5.resolve(options.cwd, path_));
45644
45644
  return matchType(options.type, stat);
45645
45645
  } catch (_3) {
45646
45646
  return false;
@@ -45658,7 +45658,7 @@ var require_locate_path = __commonJS({
45658
45658
  const statFn = options.allowSymlinks ? fs6.statSync : fs6.lstatSync;
45659
45659
  for (const path_ of paths) {
45660
45660
  try {
45661
- const stat = statFn(path3.resolve(options.cwd, path_));
45661
+ const stat = statFn(path5.resolve(options.cwd, path_));
45662
45662
  if (matchType(options.type, stat)) {
45663
45663
  return path_;
45664
45664
  }
@@ -45676,17 +45676,17 @@ var require_path_exists2 = __commonJS({
45676
45676
  var fs6 = require("fs");
45677
45677
  var { promisify: promisify5 } = require("util");
45678
45678
  var pAccess = promisify5(fs6.access);
45679
- module2.exports = async (path3) => {
45679
+ module2.exports = async (path5) => {
45680
45680
  try {
45681
- await pAccess(path3);
45681
+ await pAccess(path5);
45682
45682
  return true;
45683
45683
  } catch (_3) {
45684
45684
  return false;
45685
45685
  }
45686
45686
  };
45687
- module2.exports.sync = (path3) => {
45687
+ module2.exports.sync = (path5) => {
45688
45688
  try {
45689
- fs6.accessSync(path3);
45689
+ fs6.accessSync(path5);
45690
45690
  return true;
45691
45691
  } catch (_3) {
45692
45692
  return false;
@@ -45699,13 +45699,13 @@ var require_path_exists2 = __commonJS({
45699
45699
  var require_find_up = __commonJS({
45700
45700
  "node_modules/@manypkg/find-root/node_modules/find-up/index.js"(exports2, module2) {
45701
45701
  "use strict";
45702
- var path3 = require("path");
45702
+ var path5 = require("path");
45703
45703
  var locatePath = require_locate_path();
45704
45704
  var pathExists = require_path_exists2();
45705
45705
  var stop2 = Symbol("findUp.stop");
45706
45706
  module2.exports = async (name, options = {}) => {
45707
- let directory = path3.resolve(options.cwd || "");
45708
- const { root } = path3.parse(directory);
45707
+ let directory = path5.resolve(options.cwd || "");
45708
+ const { root } = path5.parse(directory);
45709
45709
  const paths = [].concat(name);
45710
45710
  const runMatcher = async (locateOptions) => {
45711
45711
  if (typeof name !== "function") {
@@ -45723,17 +45723,17 @@ var require_find_up = __commonJS({
45723
45723
  return;
45724
45724
  }
45725
45725
  if (foundPath) {
45726
- return path3.resolve(directory, foundPath);
45726
+ return path5.resolve(directory, foundPath);
45727
45727
  }
45728
45728
  if (directory === root) {
45729
45729
  return;
45730
45730
  }
45731
- directory = path3.dirname(directory);
45731
+ directory = path5.dirname(directory);
45732
45732
  }
45733
45733
  };
45734
45734
  module2.exports.sync = (name, options = {}) => {
45735
- let directory = path3.resolve(options.cwd || "");
45736
- const { root } = path3.parse(directory);
45735
+ let directory = path5.resolve(options.cwd || "");
45736
+ const { root } = path5.parse(directory);
45737
45737
  const paths = [].concat(name);
45738
45738
  const runMatcher = (locateOptions) => {
45739
45739
  if (typeof name !== "function") {
@@ -45751,12 +45751,12 @@ var require_find_up = __commonJS({
45751
45751
  return;
45752
45752
  }
45753
45753
  if (foundPath) {
45754
- return path3.resolve(directory, foundPath);
45754
+ return path5.resolve(directory, foundPath);
45755
45755
  }
45756
45756
  if (directory === root) {
45757
45757
  return;
45758
45758
  }
45759
- directory = path3.dirname(directory);
45759
+ directory = path5.dirname(directory);
45760
45760
  }
45761
45761
  };
45762
45762
  module2.exports.exists = pathExists;
@@ -45885,9 +45885,9 @@ var require_fs2 = __commonJS({
45885
45885
  var require_win32 = __commonJS({
45886
45886
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/mkdirs/win32.js"(exports2, module2) {
45887
45887
  "use strict";
45888
- var path3 = require("path");
45888
+ var path5 = require("path");
45889
45889
  function getRootPath(p2) {
45890
- p2 = path3.normalize(path3.resolve(p2)).split(path3.sep);
45890
+ p2 = path5.normalize(path5.resolve(p2)).split(path5.sep);
45891
45891
  if (p2.length > 0) return p2[0];
45892
45892
  return null;
45893
45893
  }
@@ -45909,7 +45909,7 @@ var require_mkdirs2 = __commonJS({
45909
45909
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/mkdirs/mkdirs.js"(exports2, module2) {
45910
45910
  "use strict";
45911
45911
  var fs6 = require_graceful_fs();
45912
- var path3 = require("path");
45912
+ var path5 = require("path");
45913
45913
  var invalidWin32Path = require_win32().invalidWin32Path;
45914
45914
  var o777 = parseInt("0777", 8);
45915
45915
  function mkdirs(p2, opts, callback, made) {
@@ -45932,7 +45932,7 @@ var require_mkdirs2 = __commonJS({
45932
45932
  if (!made) made = null;
45933
45933
  callback = callback || function() {
45934
45934
  };
45935
- p2 = path3.resolve(p2);
45935
+ p2 = path5.resolve(p2);
45936
45936
  xfs.mkdir(p2, mode, (er) => {
45937
45937
  if (!er) {
45938
45938
  made = made || p2;
@@ -45940,8 +45940,8 @@ var require_mkdirs2 = __commonJS({
45940
45940
  }
45941
45941
  switch (er.code) {
45942
45942
  case "ENOENT":
45943
- if (path3.dirname(p2) === p2) return callback(er);
45944
- mkdirs(path3.dirname(p2), opts, (er2, made2) => {
45943
+ if (path5.dirname(p2) === p2) return callback(er);
45944
+ mkdirs(path5.dirname(p2), opts, (er2, made2) => {
45945
45945
  if (er2) callback(er2, made2);
45946
45946
  else mkdirs(p2, opts, callback, made2);
45947
45947
  });
@@ -45964,7 +45964,7 @@ var require_mkdirs_sync = __commonJS({
45964
45964
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js"(exports2, module2) {
45965
45965
  "use strict";
45966
45966
  var fs6 = require_graceful_fs();
45967
- var path3 = require("path");
45967
+ var path5 = require("path");
45968
45968
  var invalidWin32Path = require_win32().invalidWin32Path;
45969
45969
  var o777 = parseInt("0777", 8);
45970
45970
  function mkdirsSync(p2, opts, made) {
@@ -45982,14 +45982,14 @@ var require_mkdirs_sync = __commonJS({
45982
45982
  mode = o777 & ~process.umask();
45983
45983
  }
45984
45984
  if (!made) made = null;
45985
- p2 = path3.resolve(p2);
45985
+ p2 = path5.resolve(p2);
45986
45986
  try {
45987
45987
  xfs.mkdirSync(p2, mode);
45988
45988
  made = made || p2;
45989
45989
  } catch (err0) {
45990
45990
  if (err0.code === "ENOENT") {
45991
- if (path3.dirname(p2) === p2) throw err0;
45992
- made = mkdirsSync(path3.dirname(p2), opts, made);
45991
+ if (path5.dirname(p2) === p2) throw err0;
45992
+ made = mkdirsSync(path5.dirname(p2), opts, made);
45993
45993
  mkdirsSync(p2, opts, made);
45994
45994
  } else {
45995
45995
  let stat;
@@ -46032,10 +46032,10 @@ var require_utimes2 = __commonJS({
46032
46032
  "use strict";
46033
46033
  var fs6 = require_graceful_fs();
46034
46034
  var os3 = require("os");
46035
- var path3 = require("path");
46035
+ var path5 = require("path");
46036
46036
  function hasMillisResSync() {
46037
- let tmpfile = path3.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
46038
- tmpfile = path3.join(os3.tmpdir(), tmpfile);
46037
+ let tmpfile = path5.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
46038
+ tmpfile = path5.join(os3.tmpdir(), tmpfile);
46039
46039
  const d3 = /* @__PURE__ */ new Date(1435410243862);
46040
46040
  fs6.writeFileSync(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141");
46041
46041
  const fd = fs6.openSync(tmpfile, "r+");
@@ -46044,8 +46044,8 @@ var require_utimes2 = __commonJS({
46044
46044
  return fs6.statSync(tmpfile).mtime > 1435410243e3;
46045
46045
  }
46046
46046
  function hasMillisRes(callback) {
46047
- let tmpfile = path3.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
46048
- tmpfile = path3.join(os3.tmpdir(), tmpfile);
46047
+ let tmpfile = path5.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
46048
+ tmpfile = path5.join(os3.tmpdir(), tmpfile);
46049
46049
  const d3 = /* @__PURE__ */ new Date(1435410243862);
46050
46050
  fs6.writeFile(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141", (err) => {
46051
46051
  if (err) return callback(err);
@@ -46073,8 +46073,8 @@ var require_utimes2 = __commonJS({
46073
46073
  throw new Error("fs-extra: timeRemoveMillis() unknown parameter type");
46074
46074
  }
46075
46075
  }
46076
- function utimesMillis(path4, atime, mtime, callback) {
46077
- fs6.open(path4, "r+", (err, fd) => {
46076
+ function utimesMillis(path6, atime, mtime, callback) {
46077
+ fs6.open(path6, "r+", (err, fd) => {
46078
46078
  if (err) return callback(err);
46079
46079
  fs6.futimes(fd, atime, mtime, (futimesErr) => {
46080
46080
  fs6.close(fd, (closeErr) => {
@@ -46083,8 +46083,8 @@ var require_utimes2 = __commonJS({
46083
46083
  });
46084
46084
  });
46085
46085
  }
46086
- function utimesMillisSync(path4, atime, mtime) {
46087
- const fd = fs6.openSync(path4, "r+");
46086
+ function utimesMillisSync(path6, atime, mtime) {
46087
+ const fd = fs6.openSync(path6, "r+");
46088
46088
  fs6.futimesSync(fd, atime, mtime);
46089
46089
  return fs6.closeSync(fd);
46090
46090
  }
@@ -46103,7 +46103,7 @@ var require_stat2 = __commonJS({
46103
46103
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
46104
46104
  "use strict";
46105
46105
  var fs6 = require_graceful_fs();
46106
- var path3 = require("path");
46106
+ var path5 = require("path");
46107
46107
  var NODE_VERSION_MAJOR_WITH_BIGINT = 10;
46108
46108
  var NODE_VERSION_MINOR_WITH_BIGINT = 5;
46109
46109
  var NODE_VERSION_PATCH_WITH_BIGINT = 0;
@@ -46193,9 +46193,9 @@ var require_stat2 = __commonJS({
46193
46193
  return { srcStat, destStat };
46194
46194
  }
46195
46195
  function checkParentPaths(src, srcStat, dest, funcName, cb) {
46196
- const srcParent = path3.resolve(path3.dirname(src));
46197
- const destParent = path3.resolve(path3.dirname(dest));
46198
- if (destParent === srcParent || destParent === path3.parse(destParent).root) return cb();
46196
+ const srcParent = path5.resolve(path5.dirname(src));
46197
+ const destParent = path5.resolve(path5.dirname(dest));
46198
+ if (destParent === srcParent || destParent === path5.parse(destParent).root) return cb();
46199
46199
  if (nodeSupportsBigInt()) {
46200
46200
  fs6.stat(destParent, { bigint: true }, (err, destStat) => {
46201
46201
  if (err) {
@@ -46221,9 +46221,9 @@ var require_stat2 = __commonJS({
46221
46221
  }
46222
46222
  }
46223
46223
  function checkParentPathsSync(src, srcStat, dest, funcName) {
46224
- const srcParent = path3.resolve(path3.dirname(src));
46225
- const destParent = path3.resolve(path3.dirname(dest));
46226
- if (destParent === srcParent || destParent === path3.parse(destParent).root) return;
46224
+ const srcParent = path5.resolve(path5.dirname(src));
46225
+ const destParent = path5.resolve(path5.dirname(dest));
46226
+ if (destParent === srcParent || destParent === path5.parse(destParent).root) return;
46227
46227
  let destStat;
46228
46228
  try {
46229
46229
  if (nodeSupportsBigInt()) {
@@ -46241,8 +46241,8 @@ var require_stat2 = __commonJS({
46241
46241
  return checkParentPathsSync(src, srcStat, destParent, funcName);
46242
46242
  }
46243
46243
  function isSrcSubdir(src, dest) {
46244
- const srcArr = path3.resolve(src).split(path3.sep).filter((i) => i);
46245
- const destArr = path3.resolve(dest).split(path3.sep).filter((i) => i);
46244
+ const srcArr = path5.resolve(src).split(path5.sep).filter((i) => i);
46245
+ const destArr = path5.resolve(dest).split(path5.sep).filter((i) => i);
46246
46246
  return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
46247
46247
  }
46248
46248
  function errMsg(src, dest, funcName) {
@@ -46280,7 +46280,7 @@ var require_copy_sync3 = __commonJS({
46280
46280
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports2, module2) {
46281
46281
  "use strict";
46282
46282
  var fs6 = require_graceful_fs();
46283
- var path3 = require("path");
46283
+ var path5 = require("path");
46284
46284
  var mkdirpSync = require_mkdirs3().mkdirsSync;
46285
46285
  var utimesSync = require_utimes2().utimesMillisSync;
46286
46286
  var stat = require_stat2();
@@ -46302,7 +46302,7 @@ var require_copy_sync3 = __commonJS({
46302
46302
  }
46303
46303
  function handleFilterAndCopy(destStat, src, dest, opts) {
46304
46304
  if (opts.filter && !opts.filter(src, dest)) return;
46305
- const destParent = path3.dirname(dest);
46305
+ const destParent = path5.dirname(dest);
46306
46306
  if (!fs6.existsSync(destParent)) mkdirpSync(destParent);
46307
46307
  return startCopy(destStat, src, dest, opts);
46308
46308
  }
@@ -46371,15 +46371,15 @@ var require_copy_sync3 = __commonJS({
46371
46371
  fs6.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
46372
46372
  }
46373
46373
  function copyDirItem(item, src, dest, opts) {
46374
- const srcItem = path3.join(src, item);
46375
- const destItem = path3.join(dest, item);
46374
+ const srcItem = path5.join(src, item);
46375
+ const destItem = path5.join(dest, item);
46376
46376
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy");
46377
46377
  return startCopy(destStat, srcItem, destItem, opts);
46378
46378
  }
46379
46379
  function onLink(destStat, src, dest, opts) {
46380
46380
  let resolvedSrc = fs6.readlinkSync(src);
46381
46381
  if (opts.dereference) {
46382
- resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
46382
+ resolvedSrc = path5.resolve(process.cwd(), resolvedSrc);
46383
46383
  }
46384
46384
  if (!destStat) {
46385
46385
  return fs6.symlinkSync(resolvedSrc, dest);
@@ -46392,7 +46392,7 @@ var require_copy_sync3 = __commonJS({
46392
46392
  throw err;
46393
46393
  }
46394
46394
  if (opts.dereference) {
46395
- resolvedDest = path3.resolve(process.cwd(), resolvedDest);
46395
+ resolvedDest = path5.resolve(process.cwd(), resolvedDest);
46396
46396
  }
46397
46397
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
46398
46398
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -46427,8 +46427,8 @@ var require_path_exists3 = __commonJS({
46427
46427
  "use strict";
46428
46428
  var u = require_universalify2().fromPromise;
46429
46429
  var fs6 = require_fs2();
46430
- function pathExists(path3) {
46431
- return fs6.access(path3).then(() => true).catch(() => false);
46430
+ function pathExists(path5) {
46431
+ return fs6.access(path5).then(() => true).catch(() => false);
46432
46432
  }
46433
46433
  module2.exports = {
46434
46434
  pathExists: u(pathExists),
@@ -46442,7 +46442,7 @@ var require_copy3 = __commonJS({
46442
46442
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
46443
46443
  "use strict";
46444
46444
  var fs6 = require_graceful_fs();
46445
- var path3 = require("path");
46445
+ var path5 = require("path");
46446
46446
  var mkdirp = require_mkdirs3().mkdirs;
46447
46447
  var pathExists = require_path_exists3().pathExists;
46448
46448
  var utimes = require_utimes2().utimesMillis;
@@ -46475,7 +46475,7 @@ var require_copy3 = __commonJS({
46475
46475
  });
46476
46476
  }
46477
46477
  function checkParentDir(destStat, src, dest, opts, cb) {
46478
- const destParent = path3.dirname(dest);
46478
+ const destParent = path5.dirname(dest);
46479
46479
  pathExists(destParent, (err, dirExists) => {
46480
46480
  if (err) return cb(err);
46481
46481
  if (dirExists) return startCopy(destStat, src, dest, opts, cb);
@@ -46571,8 +46571,8 @@ var require_copy3 = __commonJS({
46571
46571
  return copyDirItem(items, item, src, dest, opts, cb);
46572
46572
  }
46573
46573
  function copyDirItem(items, item, src, dest, opts, cb) {
46574
- const srcItem = path3.join(src, item);
46575
- const destItem = path3.join(dest, item);
46574
+ const srcItem = path5.join(src, item);
46575
+ const destItem = path5.join(dest, item);
46576
46576
  stat.checkPaths(srcItem, destItem, "copy", (err, stats) => {
46577
46577
  if (err) return cb(err);
46578
46578
  const { destStat } = stats;
@@ -46586,7 +46586,7 @@ var require_copy3 = __commonJS({
46586
46586
  fs6.readlink(src, (err, resolvedSrc) => {
46587
46587
  if (err) return cb(err);
46588
46588
  if (opts.dereference) {
46589
- resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
46589
+ resolvedSrc = path5.resolve(process.cwd(), resolvedSrc);
46590
46590
  }
46591
46591
  if (!destStat) {
46592
46592
  return fs6.symlink(resolvedSrc, dest, cb);
@@ -46597,7 +46597,7 @@ var require_copy3 = __commonJS({
46597
46597
  return cb(err2);
46598
46598
  }
46599
46599
  if (opts.dereference) {
46600
- resolvedDest = path3.resolve(process.cwd(), resolvedDest);
46600
+ resolvedDest = path5.resolve(process.cwd(), resolvedDest);
46601
46601
  }
46602
46602
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
46603
46603
  return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
@@ -46636,7 +46636,7 @@ var require_rimraf2 = __commonJS({
46636
46636
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/remove/rimraf.js"(exports2, module2) {
46637
46637
  "use strict";
46638
46638
  var fs6 = require_graceful_fs();
46639
- var path3 = require("path");
46639
+ var path5 = require("path");
46640
46640
  var assert = require("assert");
46641
46641
  var isWindows = process.platform === "win32";
46642
46642
  function defaults(options) {
@@ -46790,7 +46790,7 @@ var require_rimraf2 = __commonJS({
46790
46790
  let errState;
46791
46791
  if (n === 0) return options.rmdir(p2, cb);
46792
46792
  files.forEach((f3) => {
46793
- rimraf(path3.join(p2, f3), options, (er2) => {
46793
+ rimraf(path5.join(p2, f3), options, (er2) => {
46794
46794
  if (errState) {
46795
46795
  return;
46796
46796
  }
@@ -46858,7 +46858,7 @@ var require_rimraf2 = __commonJS({
46858
46858
  function rmkidsSync(p2, options) {
46859
46859
  assert(p2);
46860
46860
  assert(options);
46861
- options.readdirSync(p2).forEach((f3) => rimrafSync(path3.join(p2, f3), options));
46861
+ options.readdirSync(p2).forEach((f3) => rimrafSync(path5.join(p2, f3), options));
46862
46862
  if (isWindows) {
46863
46863
  const startTime = Date.now();
46864
46864
  do {
@@ -46897,7 +46897,7 @@ var require_empty2 = __commonJS({
46897
46897
  "use strict";
46898
46898
  var u = require_universalify2().fromCallback;
46899
46899
  var fs6 = require_graceful_fs();
46900
- var path3 = require("path");
46900
+ var path5 = require("path");
46901
46901
  var mkdir = require_mkdirs3();
46902
46902
  var remove = require_remove2();
46903
46903
  var emptyDir = u(function emptyDir2(dir, callback) {
@@ -46905,7 +46905,7 @@ var require_empty2 = __commonJS({
46905
46905
  };
46906
46906
  fs6.readdir(dir, (err, items) => {
46907
46907
  if (err) return mkdir.mkdirs(dir, callback);
46908
- items = items.map((item) => path3.join(dir, item));
46908
+ items = items.map((item) => path5.join(dir, item));
46909
46909
  deleteItem();
46910
46910
  function deleteItem() {
46911
46911
  const item = items.pop();
@@ -46925,7 +46925,7 @@ var require_empty2 = __commonJS({
46925
46925
  return mkdir.mkdirsSync(dir);
46926
46926
  }
46927
46927
  items.forEach((item) => {
46928
- item = path3.join(dir, item);
46928
+ item = path5.join(dir, item);
46929
46929
  remove.removeSync(item);
46930
46930
  });
46931
46931
  }
@@ -46943,7 +46943,7 @@ var require_file2 = __commonJS({
46943
46943
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
46944
46944
  "use strict";
46945
46945
  var u = require_universalify2().fromCallback;
46946
- var path3 = require("path");
46946
+ var path5 = require("path");
46947
46947
  var fs6 = require_graceful_fs();
46948
46948
  var mkdir = require_mkdirs3();
46949
46949
  var pathExists = require_path_exists3().pathExists;
@@ -46956,7 +46956,7 @@ var require_file2 = __commonJS({
46956
46956
  }
46957
46957
  fs6.stat(file, (err, stats) => {
46958
46958
  if (!err && stats.isFile()) return callback();
46959
- const dir = path3.dirname(file);
46959
+ const dir = path5.dirname(file);
46960
46960
  pathExists(dir, (err2, dirExists) => {
46961
46961
  if (err2) return callback(err2);
46962
46962
  if (dirExists) return makeFile();
@@ -46974,7 +46974,7 @@ var require_file2 = __commonJS({
46974
46974
  } catch (e2) {
46975
46975
  }
46976
46976
  if (stats && stats.isFile()) return;
46977
- const dir = path3.dirname(file);
46977
+ const dir = path5.dirname(file);
46978
46978
  if (!fs6.existsSync(dir)) {
46979
46979
  mkdir.mkdirsSync(dir);
46980
46980
  }
@@ -46992,7 +46992,7 @@ var require_link2 = __commonJS({
46992
46992
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
46993
46993
  "use strict";
46994
46994
  var u = require_universalify2().fromCallback;
46995
- var path3 = require("path");
46995
+ var path5 = require("path");
46996
46996
  var fs6 = require_graceful_fs();
46997
46997
  var mkdir = require_mkdirs3();
46998
46998
  var pathExists = require_path_exists3().pathExists;
@@ -47011,7 +47011,7 @@ var require_link2 = __commonJS({
47011
47011
  err2.message = err2.message.replace("lstat", "ensureLink");
47012
47012
  return callback(err2);
47013
47013
  }
47014
- const dir = path3.dirname(dstpath);
47014
+ const dir = path5.dirname(dstpath);
47015
47015
  pathExists(dir, (err3, dirExists) => {
47016
47016
  if (err3) return callback(err3);
47017
47017
  if (dirExists) return makeLink(srcpath, dstpath);
@@ -47032,7 +47032,7 @@ var require_link2 = __commonJS({
47032
47032
  err.message = err.message.replace("lstat", "ensureLink");
47033
47033
  throw err;
47034
47034
  }
47035
- const dir = path3.dirname(dstpath);
47035
+ const dir = path5.dirname(dstpath);
47036
47036
  const dirExists = fs6.existsSync(dir);
47037
47037
  if (dirExists) return fs6.linkSync(srcpath, dstpath);
47038
47038
  mkdir.mkdirsSync(dir);
@@ -47049,11 +47049,11 @@ var require_link2 = __commonJS({
47049
47049
  var require_symlink_paths2 = __commonJS({
47050
47050
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
47051
47051
  "use strict";
47052
- var path3 = require("path");
47052
+ var path5 = require("path");
47053
47053
  var fs6 = require_graceful_fs();
47054
47054
  var pathExists = require_path_exists3().pathExists;
47055
47055
  function symlinkPaths(srcpath, dstpath, callback) {
47056
- if (path3.isAbsolute(srcpath)) {
47056
+ if (path5.isAbsolute(srcpath)) {
47057
47057
  return fs6.lstat(srcpath, (err) => {
47058
47058
  if (err) {
47059
47059
  err.message = err.message.replace("lstat", "ensureSymlink");
@@ -47065,8 +47065,8 @@ var require_symlink_paths2 = __commonJS({
47065
47065
  });
47066
47066
  });
47067
47067
  } else {
47068
- const dstdir = path3.dirname(dstpath);
47069
- const relativeToDst = path3.join(dstdir, srcpath);
47068
+ const dstdir = path5.dirname(dstpath);
47069
+ const relativeToDst = path5.join(dstdir, srcpath);
47070
47070
  return pathExists(relativeToDst, (err, exists) => {
47071
47071
  if (err) return callback(err);
47072
47072
  if (exists) {
@@ -47082,7 +47082,7 @@ var require_symlink_paths2 = __commonJS({
47082
47082
  }
47083
47083
  return callback(null, {
47084
47084
  "toCwd": srcpath,
47085
- "toDst": path3.relative(dstdir, srcpath)
47085
+ "toDst": path5.relative(dstdir, srcpath)
47086
47086
  });
47087
47087
  });
47088
47088
  }
@@ -47091,7 +47091,7 @@ var require_symlink_paths2 = __commonJS({
47091
47091
  }
47092
47092
  function symlinkPathsSync(srcpath, dstpath) {
47093
47093
  let exists;
47094
- if (path3.isAbsolute(srcpath)) {
47094
+ if (path5.isAbsolute(srcpath)) {
47095
47095
  exists = fs6.existsSync(srcpath);
47096
47096
  if (!exists) throw new Error("absolute srcpath does not exist");
47097
47097
  return {
@@ -47099,8 +47099,8 @@ var require_symlink_paths2 = __commonJS({
47099
47099
  "toDst": srcpath
47100
47100
  };
47101
47101
  } else {
47102
- const dstdir = path3.dirname(dstpath);
47103
- const relativeToDst = path3.join(dstdir, srcpath);
47102
+ const dstdir = path5.dirname(dstpath);
47103
+ const relativeToDst = path5.join(dstdir, srcpath);
47104
47104
  exists = fs6.existsSync(relativeToDst);
47105
47105
  if (exists) {
47106
47106
  return {
@@ -47112,7 +47112,7 @@ var require_symlink_paths2 = __commonJS({
47112
47112
  if (!exists) throw new Error("relative srcpath does not exist");
47113
47113
  return {
47114
47114
  "toCwd": srcpath,
47115
- "toDst": path3.relative(dstdir, srcpath)
47115
+ "toDst": path5.relative(dstdir, srcpath)
47116
47116
  };
47117
47117
  }
47118
47118
  }
@@ -47161,7 +47161,7 @@ var require_symlink2 = __commonJS({
47161
47161
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
47162
47162
  "use strict";
47163
47163
  var u = require_universalify2().fromCallback;
47164
- var path3 = require("path");
47164
+ var path5 = require("path");
47165
47165
  var fs6 = require_graceful_fs();
47166
47166
  var _mkdirs = require_mkdirs3();
47167
47167
  var mkdirs = _mkdirs.mkdirs;
@@ -47184,7 +47184,7 @@ var require_symlink2 = __commonJS({
47184
47184
  srcpath = relative.toDst;
47185
47185
  symlinkType(relative.toCwd, type, (err3, type2) => {
47186
47186
  if (err3) return callback(err3);
47187
- const dir = path3.dirname(dstpath);
47187
+ const dir = path5.dirname(dstpath);
47188
47188
  pathExists(dir, (err4, dirExists) => {
47189
47189
  if (err4) return callback(err4);
47190
47190
  if (dirExists) return fs6.symlink(srcpath, dstpath, type2, callback);
@@ -47203,7 +47203,7 @@ var require_symlink2 = __commonJS({
47203
47203
  const relative = symlinkPathsSync(srcpath, dstpath);
47204
47204
  srcpath = relative.toDst;
47205
47205
  type = symlinkTypeSync(relative.toCwd, type);
47206
- const dir = path3.dirname(dstpath);
47206
+ const dir = path5.dirname(dstpath);
47207
47207
  const exists = fs6.existsSync(dir);
47208
47208
  if (exists) return fs6.symlinkSync(srcpath, dstpath, type);
47209
47209
  mkdirsSync(dir);
@@ -47377,7 +47377,7 @@ var require_jsonfile4 = __commonJS({
47377
47377
  var require_output_json2 = __commonJS({
47378
47378
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/json/output-json.js"(exports2, module2) {
47379
47379
  "use strict";
47380
- var path3 = require("path");
47380
+ var path5 = require("path");
47381
47381
  var mkdir = require_mkdirs3();
47382
47382
  var pathExists = require_path_exists3().pathExists;
47383
47383
  var jsonFile = require_jsonfile4();
@@ -47386,7 +47386,7 @@ var require_output_json2 = __commonJS({
47386
47386
  callback = options;
47387
47387
  options = {};
47388
47388
  }
47389
- const dir = path3.dirname(file);
47389
+ const dir = path5.dirname(file);
47390
47390
  pathExists(dir, (err, itDoes) => {
47391
47391
  if (err) return callback(err);
47392
47392
  if (itDoes) return jsonFile.writeJson(file, data, options, callback);
@@ -47405,11 +47405,11 @@ var require_output_json_sync2 = __commonJS({
47405
47405
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/json/output-json-sync.js"(exports2, module2) {
47406
47406
  "use strict";
47407
47407
  var fs6 = require_graceful_fs();
47408
- var path3 = require("path");
47408
+ var path5 = require("path");
47409
47409
  var mkdir = require_mkdirs3();
47410
47410
  var jsonFile = require_jsonfile4();
47411
47411
  function outputJsonSync(file, data, options) {
47412
- const dir = path3.dirname(file);
47412
+ const dir = path5.dirname(file);
47413
47413
  if (!fs6.existsSync(dir)) {
47414
47414
  mkdir.mkdirsSync(dir);
47415
47415
  }
@@ -47442,7 +47442,7 @@ var require_move_sync3 = __commonJS({
47442
47442
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/move-sync/move-sync.js"(exports2, module2) {
47443
47443
  "use strict";
47444
47444
  var fs6 = require_graceful_fs();
47445
- var path3 = require("path");
47445
+ var path5 = require("path");
47446
47446
  var copySync = require_copy_sync4().copySync;
47447
47447
  var removeSync = require_remove2().removeSync;
47448
47448
  var mkdirpSync = require_mkdirs3().mkdirpSync;
@@ -47452,7 +47452,7 @@ var require_move_sync3 = __commonJS({
47452
47452
  const overwrite = opts.overwrite || opts.clobber || false;
47453
47453
  const { srcStat } = stat.checkPathsSync(src, dest, "move");
47454
47454
  stat.checkParentPathsSync(src, srcStat, dest, "move");
47455
- mkdirpSync(path3.dirname(dest));
47455
+ mkdirpSync(path5.dirname(dest));
47456
47456
  return doRename(src, dest, overwrite);
47457
47457
  }
47458
47458
  function doRename(src, dest, overwrite) {
@@ -47498,7 +47498,7 @@ var require_move3 = __commonJS({
47498
47498
  "node_modules/@manypkg/find-root/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
47499
47499
  "use strict";
47500
47500
  var fs6 = require_graceful_fs();
47501
- var path3 = require("path");
47501
+ var path5 = require("path");
47502
47502
  var copy = require_copy4().copy;
47503
47503
  var remove = require_remove2().remove;
47504
47504
  var mkdirp = require_mkdirs3().mkdirp;
@@ -47515,7 +47515,7 @@ var require_move3 = __commonJS({
47515
47515
  const { srcStat } = stats;
47516
47516
  stat.checkParentPaths(src, srcStat, dest, "move", (err2) => {
47517
47517
  if (err2) return cb(err2);
47518
- mkdirp(path3.dirname(dest), (err3) => {
47518
+ mkdirp(path5.dirname(dest), (err3) => {
47519
47519
  if (err3) return cb(err3);
47520
47520
  return doRename(src, dest, overwrite, cb);
47521
47521
  });
@@ -47573,7 +47573,7 @@ var require_output3 = __commonJS({
47573
47573
  "use strict";
47574
47574
  var u = require_universalify2().fromCallback;
47575
47575
  var fs6 = require_graceful_fs();
47576
- var path3 = require("path");
47576
+ var path5 = require("path");
47577
47577
  var mkdir = require_mkdirs3();
47578
47578
  var pathExists = require_path_exists3().pathExists;
47579
47579
  function outputFile(file, data, encoding, callback) {
@@ -47581,7 +47581,7 @@ var require_output3 = __commonJS({
47581
47581
  callback = encoding;
47582
47582
  encoding = "utf8";
47583
47583
  }
47584
- const dir = path3.dirname(file);
47584
+ const dir = path5.dirname(file);
47585
47585
  pathExists(dir, (err, itDoes) => {
47586
47586
  if (err) return callback(err);
47587
47587
  if (itDoes) return fs6.writeFile(file, data, encoding, callback);
@@ -47592,7 +47592,7 @@ var require_output3 = __commonJS({
47592
47592
  });
47593
47593
  }
47594
47594
  function outputFileSync(file, ...args) {
47595
- const dir = path3.dirname(file);
47595
+ const dir = path5.dirname(file);
47596
47596
  if (fs6.existsSync(dir)) {
47597
47597
  return fs6.writeFileSync(file, ...args);
47598
47598
  }
@@ -47758,9 +47758,9 @@ var require_fs3 = __commonJS({
47758
47758
  var require_win322 = __commonJS({
47759
47759
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/mkdirs/win32.js"(exports2, module2) {
47760
47760
  "use strict";
47761
- var path3 = require("path");
47761
+ var path5 = require("path");
47762
47762
  function getRootPath(p2) {
47763
- p2 = path3.normalize(path3.resolve(p2)).split(path3.sep);
47763
+ p2 = path5.normalize(path5.resolve(p2)).split(path5.sep);
47764
47764
  if (p2.length > 0) return p2[0];
47765
47765
  return null;
47766
47766
  }
@@ -47782,7 +47782,7 @@ var require_mkdirs4 = __commonJS({
47782
47782
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/mkdirs/mkdirs.js"(exports2, module2) {
47783
47783
  "use strict";
47784
47784
  var fs6 = require_graceful_fs();
47785
- var path3 = require("path");
47785
+ var path5 = require("path");
47786
47786
  var invalidWin32Path = require_win322().invalidWin32Path;
47787
47787
  var o777 = parseInt("0777", 8);
47788
47788
  function mkdirs(p2, opts, callback, made) {
@@ -47805,7 +47805,7 @@ var require_mkdirs4 = __commonJS({
47805
47805
  if (!made) made = null;
47806
47806
  callback = callback || function() {
47807
47807
  };
47808
- p2 = path3.resolve(p2);
47808
+ p2 = path5.resolve(p2);
47809
47809
  xfs.mkdir(p2, mode, (er) => {
47810
47810
  if (!er) {
47811
47811
  made = made || p2;
@@ -47813,8 +47813,8 @@ var require_mkdirs4 = __commonJS({
47813
47813
  }
47814
47814
  switch (er.code) {
47815
47815
  case "ENOENT":
47816
- if (path3.dirname(p2) === p2) return callback(er);
47817
- mkdirs(path3.dirname(p2), opts, (er2, made2) => {
47816
+ if (path5.dirname(p2) === p2) return callback(er);
47817
+ mkdirs(path5.dirname(p2), opts, (er2, made2) => {
47818
47818
  if (er2) callback(er2, made2);
47819
47819
  else mkdirs(p2, opts, callback, made2);
47820
47820
  });
@@ -47837,7 +47837,7 @@ var require_mkdirs_sync2 = __commonJS({
47837
47837
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js"(exports2, module2) {
47838
47838
  "use strict";
47839
47839
  var fs6 = require_graceful_fs();
47840
- var path3 = require("path");
47840
+ var path5 = require("path");
47841
47841
  var invalidWin32Path = require_win322().invalidWin32Path;
47842
47842
  var o777 = parseInt("0777", 8);
47843
47843
  function mkdirsSync(p2, opts, made) {
@@ -47855,14 +47855,14 @@ var require_mkdirs_sync2 = __commonJS({
47855
47855
  mode = o777 & ~process.umask();
47856
47856
  }
47857
47857
  if (!made) made = null;
47858
- p2 = path3.resolve(p2);
47858
+ p2 = path5.resolve(p2);
47859
47859
  try {
47860
47860
  xfs.mkdirSync(p2, mode);
47861
47861
  made = made || p2;
47862
47862
  } catch (err0) {
47863
47863
  if (err0.code === "ENOENT") {
47864
- if (path3.dirname(p2) === p2) throw err0;
47865
- made = mkdirsSync(path3.dirname(p2), opts, made);
47864
+ if (path5.dirname(p2) === p2) throw err0;
47865
+ made = mkdirsSync(path5.dirname(p2), opts, made);
47866
47866
  mkdirsSync(p2, opts, made);
47867
47867
  } else {
47868
47868
  let stat;
@@ -47905,10 +47905,10 @@ var require_utimes3 = __commonJS({
47905
47905
  "use strict";
47906
47906
  var fs6 = require_graceful_fs();
47907
47907
  var os3 = require("os");
47908
- var path3 = require("path");
47908
+ var path5 = require("path");
47909
47909
  function hasMillisResSync() {
47910
- let tmpfile = path3.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
47911
- tmpfile = path3.join(os3.tmpdir(), tmpfile);
47910
+ let tmpfile = path5.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
47911
+ tmpfile = path5.join(os3.tmpdir(), tmpfile);
47912
47912
  const d3 = /* @__PURE__ */ new Date(1435410243862);
47913
47913
  fs6.writeFileSync(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141");
47914
47914
  const fd = fs6.openSync(tmpfile, "r+");
@@ -47917,8 +47917,8 @@ var require_utimes3 = __commonJS({
47917
47917
  return fs6.statSync(tmpfile).mtime > 1435410243e3;
47918
47918
  }
47919
47919
  function hasMillisRes(callback) {
47920
- let tmpfile = path3.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
47921
- tmpfile = path3.join(os3.tmpdir(), tmpfile);
47920
+ let tmpfile = path5.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
47921
+ tmpfile = path5.join(os3.tmpdir(), tmpfile);
47922
47922
  const d3 = /* @__PURE__ */ new Date(1435410243862);
47923
47923
  fs6.writeFile(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141", (err) => {
47924
47924
  if (err) return callback(err);
@@ -47946,8 +47946,8 @@ var require_utimes3 = __commonJS({
47946
47946
  throw new Error("fs-extra: timeRemoveMillis() unknown parameter type");
47947
47947
  }
47948
47948
  }
47949
- function utimesMillis(path4, atime, mtime, callback) {
47950
- fs6.open(path4, "r+", (err, fd) => {
47949
+ function utimesMillis(path6, atime, mtime, callback) {
47950
+ fs6.open(path6, "r+", (err, fd) => {
47951
47951
  if (err) return callback(err);
47952
47952
  fs6.futimes(fd, atime, mtime, (futimesErr) => {
47953
47953
  fs6.close(fd, (closeErr) => {
@@ -47956,8 +47956,8 @@ var require_utimes3 = __commonJS({
47956
47956
  });
47957
47957
  });
47958
47958
  }
47959
- function utimesMillisSync(path4, atime, mtime) {
47960
- const fd = fs6.openSync(path4, "r+");
47959
+ function utimesMillisSync(path6, atime, mtime) {
47960
+ const fd = fs6.openSync(path6, "r+");
47961
47961
  fs6.futimesSync(fd, atime, mtime);
47962
47962
  return fs6.closeSync(fd);
47963
47963
  }
@@ -47976,7 +47976,7 @@ var require_stat3 = __commonJS({
47976
47976
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
47977
47977
  "use strict";
47978
47978
  var fs6 = require_graceful_fs();
47979
- var path3 = require("path");
47979
+ var path5 = require("path");
47980
47980
  var NODE_VERSION_MAJOR_WITH_BIGINT = 10;
47981
47981
  var NODE_VERSION_MINOR_WITH_BIGINT = 5;
47982
47982
  var NODE_VERSION_PATCH_WITH_BIGINT = 0;
@@ -48066,9 +48066,9 @@ var require_stat3 = __commonJS({
48066
48066
  return { srcStat, destStat };
48067
48067
  }
48068
48068
  function checkParentPaths(src, srcStat, dest, funcName, cb) {
48069
- const srcParent = path3.resolve(path3.dirname(src));
48070
- const destParent = path3.resolve(path3.dirname(dest));
48071
- if (destParent === srcParent || destParent === path3.parse(destParent).root) return cb();
48069
+ const srcParent = path5.resolve(path5.dirname(src));
48070
+ const destParent = path5.resolve(path5.dirname(dest));
48071
+ if (destParent === srcParent || destParent === path5.parse(destParent).root) return cb();
48072
48072
  if (nodeSupportsBigInt()) {
48073
48073
  fs6.stat(destParent, { bigint: true }, (err, destStat) => {
48074
48074
  if (err) {
@@ -48094,9 +48094,9 @@ var require_stat3 = __commonJS({
48094
48094
  }
48095
48095
  }
48096
48096
  function checkParentPathsSync(src, srcStat, dest, funcName) {
48097
- const srcParent = path3.resolve(path3.dirname(src));
48098
- const destParent = path3.resolve(path3.dirname(dest));
48099
- if (destParent === srcParent || destParent === path3.parse(destParent).root) return;
48097
+ const srcParent = path5.resolve(path5.dirname(src));
48098
+ const destParent = path5.resolve(path5.dirname(dest));
48099
+ if (destParent === srcParent || destParent === path5.parse(destParent).root) return;
48100
48100
  let destStat;
48101
48101
  try {
48102
48102
  if (nodeSupportsBigInt()) {
@@ -48114,8 +48114,8 @@ var require_stat3 = __commonJS({
48114
48114
  return checkParentPathsSync(src, srcStat, destParent, funcName);
48115
48115
  }
48116
48116
  function isSrcSubdir(src, dest) {
48117
- const srcArr = path3.resolve(src).split(path3.sep).filter((i) => i);
48118
- const destArr = path3.resolve(dest).split(path3.sep).filter((i) => i);
48117
+ const srcArr = path5.resolve(src).split(path5.sep).filter((i) => i);
48118
+ const destArr = path5.resolve(dest).split(path5.sep).filter((i) => i);
48119
48119
  return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
48120
48120
  }
48121
48121
  function errMsg(src, dest, funcName) {
@@ -48153,7 +48153,7 @@ var require_copy_sync5 = __commonJS({
48153
48153
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports2, module2) {
48154
48154
  "use strict";
48155
48155
  var fs6 = require_graceful_fs();
48156
- var path3 = require("path");
48156
+ var path5 = require("path");
48157
48157
  var mkdirpSync = require_mkdirs5().mkdirsSync;
48158
48158
  var utimesSync = require_utimes3().utimesMillisSync;
48159
48159
  var stat = require_stat3();
@@ -48175,7 +48175,7 @@ var require_copy_sync5 = __commonJS({
48175
48175
  }
48176
48176
  function handleFilterAndCopy(destStat, src, dest, opts) {
48177
48177
  if (opts.filter && !opts.filter(src, dest)) return;
48178
- const destParent = path3.dirname(dest);
48178
+ const destParent = path5.dirname(dest);
48179
48179
  if (!fs6.existsSync(destParent)) mkdirpSync(destParent);
48180
48180
  return startCopy(destStat, src, dest, opts);
48181
48181
  }
@@ -48244,15 +48244,15 @@ var require_copy_sync5 = __commonJS({
48244
48244
  fs6.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
48245
48245
  }
48246
48246
  function copyDirItem(item, src, dest, opts) {
48247
- const srcItem = path3.join(src, item);
48248
- const destItem = path3.join(dest, item);
48247
+ const srcItem = path5.join(src, item);
48248
+ const destItem = path5.join(dest, item);
48249
48249
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy");
48250
48250
  return startCopy(destStat, srcItem, destItem, opts);
48251
48251
  }
48252
48252
  function onLink(destStat, src, dest, opts) {
48253
48253
  let resolvedSrc = fs6.readlinkSync(src);
48254
48254
  if (opts.dereference) {
48255
- resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
48255
+ resolvedSrc = path5.resolve(process.cwd(), resolvedSrc);
48256
48256
  }
48257
48257
  if (!destStat) {
48258
48258
  return fs6.symlinkSync(resolvedSrc, dest);
@@ -48265,7 +48265,7 @@ var require_copy_sync5 = __commonJS({
48265
48265
  throw err;
48266
48266
  }
48267
48267
  if (opts.dereference) {
48268
- resolvedDest = path3.resolve(process.cwd(), resolvedDest);
48268
+ resolvedDest = path5.resolve(process.cwd(), resolvedDest);
48269
48269
  }
48270
48270
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
48271
48271
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -48300,8 +48300,8 @@ var require_path_exists4 = __commonJS({
48300
48300
  "use strict";
48301
48301
  var u = require_universalify3().fromPromise;
48302
48302
  var fs6 = require_fs3();
48303
- function pathExists(path3) {
48304
- return fs6.access(path3).then(() => true).catch(() => false);
48303
+ function pathExists(path5) {
48304
+ return fs6.access(path5).then(() => true).catch(() => false);
48305
48305
  }
48306
48306
  module2.exports = {
48307
48307
  pathExists: u(pathExists),
@@ -48315,7 +48315,7 @@ var require_copy5 = __commonJS({
48315
48315
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
48316
48316
  "use strict";
48317
48317
  var fs6 = require_graceful_fs();
48318
- var path3 = require("path");
48318
+ var path5 = require("path");
48319
48319
  var mkdirp = require_mkdirs5().mkdirs;
48320
48320
  var pathExists = require_path_exists4().pathExists;
48321
48321
  var utimes = require_utimes3().utimesMillis;
@@ -48348,7 +48348,7 @@ var require_copy5 = __commonJS({
48348
48348
  });
48349
48349
  }
48350
48350
  function checkParentDir(destStat, src, dest, opts, cb) {
48351
- const destParent = path3.dirname(dest);
48351
+ const destParent = path5.dirname(dest);
48352
48352
  pathExists(destParent, (err, dirExists) => {
48353
48353
  if (err) return cb(err);
48354
48354
  if (dirExists) return startCopy(destStat, src, dest, opts, cb);
@@ -48444,8 +48444,8 @@ var require_copy5 = __commonJS({
48444
48444
  return copyDirItem(items, item, src, dest, opts, cb);
48445
48445
  }
48446
48446
  function copyDirItem(items, item, src, dest, opts, cb) {
48447
- const srcItem = path3.join(src, item);
48448
- const destItem = path3.join(dest, item);
48447
+ const srcItem = path5.join(src, item);
48448
+ const destItem = path5.join(dest, item);
48449
48449
  stat.checkPaths(srcItem, destItem, "copy", (err, stats) => {
48450
48450
  if (err) return cb(err);
48451
48451
  const { destStat } = stats;
@@ -48459,7 +48459,7 @@ var require_copy5 = __commonJS({
48459
48459
  fs6.readlink(src, (err, resolvedSrc) => {
48460
48460
  if (err) return cb(err);
48461
48461
  if (opts.dereference) {
48462
- resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
48462
+ resolvedSrc = path5.resolve(process.cwd(), resolvedSrc);
48463
48463
  }
48464
48464
  if (!destStat) {
48465
48465
  return fs6.symlink(resolvedSrc, dest, cb);
@@ -48470,7 +48470,7 @@ var require_copy5 = __commonJS({
48470
48470
  return cb(err2);
48471
48471
  }
48472
48472
  if (opts.dereference) {
48473
- resolvedDest = path3.resolve(process.cwd(), resolvedDest);
48473
+ resolvedDest = path5.resolve(process.cwd(), resolvedDest);
48474
48474
  }
48475
48475
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
48476
48476
  return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
@@ -48509,7 +48509,7 @@ var require_rimraf3 = __commonJS({
48509
48509
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/remove/rimraf.js"(exports2, module2) {
48510
48510
  "use strict";
48511
48511
  var fs6 = require_graceful_fs();
48512
- var path3 = require("path");
48512
+ var path5 = require("path");
48513
48513
  var assert = require("assert");
48514
48514
  var isWindows = process.platform === "win32";
48515
48515
  function defaults(options) {
@@ -48663,7 +48663,7 @@ var require_rimraf3 = __commonJS({
48663
48663
  let errState;
48664
48664
  if (n === 0) return options.rmdir(p2, cb);
48665
48665
  files.forEach((f3) => {
48666
- rimraf(path3.join(p2, f3), options, (er2) => {
48666
+ rimraf(path5.join(p2, f3), options, (er2) => {
48667
48667
  if (errState) {
48668
48668
  return;
48669
48669
  }
@@ -48731,7 +48731,7 @@ var require_rimraf3 = __commonJS({
48731
48731
  function rmkidsSync(p2, options) {
48732
48732
  assert(p2);
48733
48733
  assert(options);
48734
- options.readdirSync(p2).forEach((f3) => rimrafSync(path3.join(p2, f3), options));
48734
+ options.readdirSync(p2).forEach((f3) => rimrafSync(path5.join(p2, f3), options));
48735
48735
  if (isWindows) {
48736
48736
  const startTime = Date.now();
48737
48737
  do {
@@ -48770,7 +48770,7 @@ var require_empty3 = __commonJS({
48770
48770
  "use strict";
48771
48771
  var u = require_universalify3().fromCallback;
48772
48772
  var fs6 = require_graceful_fs();
48773
- var path3 = require("path");
48773
+ var path5 = require("path");
48774
48774
  var mkdir = require_mkdirs5();
48775
48775
  var remove = require_remove3();
48776
48776
  var emptyDir = u(function emptyDir2(dir, callback) {
@@ -48778,7 +48778,7 @@ var require_empty3 = __commonJS({
48778
48778
  };
48779
48779
  fs6.readdir(dir, (err, items) => {
48780
48780
  if (err) return mkdir.mkdirs(dir, callback);
48781
- items = items.map((item) => path3.join(dir, item));
48781
+ items = items.map((item) => path5.join(dir, item));
48782
48782
  deleteItem();
48783
48783
  function deleteItem() {
48784
48784
  const item = items.pop();
@@ -48798,7 +48798,7 @@ var require_empty3 = __commonJS({
48798
48798
  return mkdir.mkdirsSync(dir);
48799
48799
  }
48800
48800
  items.forEach((item) => {
48801
- item = path3.join(dir, item);
48801
+ item = path5.join(dir, item);
48802
48802
  remove.removeSync(item);
48803
48803
  });
48804
48804
  }
@@ -48816,7 +48816,7 @@ var require_file3 = __commonJS({
48816
48816
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
48817
48817
  "use strict";
48818
48818
  var u = require_universalify3().fromCallback;
48819
- var path3 = require("path");
48819
+ var path5 = require("path");
48820
48820
  var fs6 = require_graceful_fs();
48821
48821
  var mkdir = require_mkdirs5();
48822
48822
  var pathExists = require_path_exists4().pathExists;
@@ -48829,7 +48829,7 @@ var require_file3 = __commonJS({
48829
48829
  }
48830
48830
  fs6.stat(file, (err, stats) => {
48831
48831
  if (!err && stats.isFile()) return callback();
48832
- const dir = path3.dirname(file);
48832
+ const dir = path5.dirname(file);
48833
48833
  pathExists(dir, (err2, dirExists) => {
48834
48834
  if (err2) return callback(err2);
48835
48835
  if (dirExists) return makeFile();
@@ -48847,7 +48847,7 @@ var require_file3 = __commonJS({
48847
48847
  } catch (e2) {
48848
48848
  }
48849
48849
  if (stats && stats.isFile()) return;
48850
- const dir = path3.dirname(file);
48850
+ const dir = path5.dirname(file);
48851
48851
  if (!fs6.existsSync(dir)) {
48852
48852
  mkdir.mkdirsSync(dir);
48853
48853
  }
@@ -48865,7 +48865,7 @@ var require_link3 = __commonJS({
48865
48865
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
48866
48866
  "use strict";
48867
48867
  var u = require_universalify3().fromCallback;
48868
- var path3 = require("path");
48868
+ var path5 = require("path");
48869
48869
  var fs6 = require_graceful_fs();
48870
48870
  var mkdir = require_mkdirs5();
48871
48871
  var pathExists = require_path_exists4().pathExists;
@@ -48884,7 +48884,7 @@ var require_link3 = __commonJS({
48884
48884
  err2.message = err2.message.replace("lstat", "ensureLink");
48885
48885
  return callback(err2);
48886
48886
  }
48887
- const dir = path3.dirname(dstpath);
48887
+ const dir = path5.dirname(dstpath);
48888
48888
  pathExists(dir, (err3, dirExists) => {
48889
48889
  if (err3) return callback(err3);
48890
48890
  if (dirExists) return makeLink(srcpath, dstpath);
@@ -48905,7 +48905,7 @@ var require_link3 = __commonJS({
48905
48905
  err.message = err.message.replace("lstat", "ensureLink");
48906
48906
  throw err;
48907
48907
  }
48908
- const dir = path3.dirname(dstpath);
48908
+ const dir = path5.dirname(dstpath);
48909
48909
  const dirExists = fs6.existsSync(dir);
48910
48910
  if (dirExists) return fs6.linkSync(srcpath, dstpath);
48911
48911
  mkdir.mkdirsSync(dir);
@@ -48922,11 +48922,11 @@ var require_link3 = __commonJS({
48922
48922
  var require_symlink_paths3 = __commonJS({
48923
48923
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
48924
48924
  "use strict";
48925
- var path3 = require("path");
48925
+ var path5 = require("path");
48926
48926
  var fs6 = require_graceful_fs();
48927
48927
  var pathExists = require_path_exists4().pathExists;
48928
48928
  function symlinkPaths(srcpath, dstpath, callback) {
48929
- if (path3.isAbsolute(srcpath)) {
48929
+ if (path5.isAbsolute(srcpath)) {
48930
48930
  return fs6.lstat(srcpath, (err) => {
48931
48931
  if (err) {
48932
48932
  err.message = err.message.replace("lstat", "ensureSymlink");
@@ -48938,8 +48938,8 @@ var require_symlink_paths3 = __commonJS({
48938
48938
  });
48939
48939
  });
48940
48940
  } else {
48941
- const dstdir = path3.dirname(dstpath);
48942
- const relativeToDst = path3.join(dstdir, srcpath);
48941
+ const dstdir = path5.dirname(dstpath);
48942
+ const relativeToDst = path5.join(dstdir, srcpath);
48943
48943
  return pathExists(relativeToDst, (err, exists) => {
48944
48944
  if (err) return callback(err);
48945
48945
  if (exists) {
@@ -48955,7 +48955,7 @@ var require_symlink_paths3 = __commonJS({
48955
48955
  }
48956
48956
  return callback(null, {
48957
48957
  "toCwd": srcpath,
48958
- "toDst": path3.relative(dstdir, srcpath)
48958
+ "toDst": path5.relative(dstdir, srcpath)
48959
48959
  });
48960
48960
  });
48961
48961
  }
@@ -48964,7 +48964,7 @@ var require_symlink_paths3 = __commonJS({
48964
48964
  }
48965
48965
  function symlinkPathsSync(srcpath, dstpath) {
48966
48966
  let exists;
48967
- if (path3.isAbsolute(srcpath)) {
48967
+ if (path5.isAbsolute(srcpath)) {
48968
48968
  exists = fs6.existsSync(srcpath);
48969
48969
  if (!exists) throw new Error("absolute srcpath does not exist");
48970
48970
  return {
@@ -48972,8 +48972,8 @@ var require_symlink_paths3 = __commonJS({
48972
48972
  "toDst": srcpath
48973
48973
  };
48974
48974
  } else {
48975
- const dstdir = path3.dirname(dstpath);
48976
- const relativeToDst = path3.join(dstdir, srcpath);
48975
+ const dstdir = path5.dirname(dstpath);
48976
+ const relativeToDst = path5.join(dstdir, srcpath);
48977
48977
  exists = fs6.existsSync(relativeToDst);
48978
48978
  if (exists) {
48979
48979
  return {
@@ -48985,7 +48985,7 @@ var require_symlink_paths3 = __commonJS({
48985
48985
  if (!exists) throw new Error("relative srcpath does not exist");
48986
48986
  return {
48987
48987
  "toCwd": srcpath,
48988
- "toDst": path3.relative(dstdir, srcpath)
48988
+ "toDst": path5.relative(dstdir, srcpath)
48989
48989
  };
48990
48990
  }
48991
48991
  }
@@ -49034,7 +49034,7 @@ var require_symlink3 = __commonJS({
49034
49034
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
49035
49035
  "use strict";
49036
49036
  var u = require_universalify3().fromCallback;
49037
- var path3 = require("path");
49037
+ var path5 = require("path");
49038
49038
  var fs6 = require_graceful_fs();
49039
49039
  var _mkdirs = require_mkdirs5();
49040
49040
  var mkdirs = _mkdirs.mkdirs;
@@ -49057,7 +49057,7 @@ var require_symlink3 = __commonJS({
49057
49057
  srcpath = relative.toDst;
49058
49058
  symlinkType(relative.toCwd, type, (err3, type2) => {
49059
49059
  if (err3) return callback(err3);
49060
- const dir = path3.dirname(dstpath);
49060
+ const dir = path5.dirname(dstpath);
49061
49061
  pathExists(dir, (err4, dirExists) => {
49062
49062
  if (err4) return callback(err4);
49063
49063
  if (dirExists) return fs6.symlink(srcpath, dstpath, type2, callback);
@@ -49076,7 +49076,7 @@ var require_symlink3 = __commonJS({
49076
49076
  const relative = symlinkPathsSync(srcpath, dstpath);
49077
49077
  srcpath = relative.toDst;
49078
49078
  type = symlinkTypeSync(relative.toCwd, type);
49079
- const dir = path3.dirname(dstpath);
49079
+ const dir = path5.dirname(dstpath);
49080
49080
  const exists = fs6.existsSync(dir);
49081
49081
  if (exists) return fs6.symlinkSync(srcpath, dstpath, type);
49082
49082
  mkdirsSync(dir);
@@ -49250,7 +49250,7 @@ var require_jsonfile6 = __commonJS({
49250
49250
  var require_output_json3 = __commonJS({
49251
49251
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/json/output-json.js"(exports2, module2) {
49252
49252
  "use strict";
49253
- var path3 = require("path");
49253
+ var path5 = require("path");
49254
49254
  var mkdir = require_mkdirs5();
49255
49255
  var pathExists = require_path_exists4().pathExists;
49256
49256
  var jsonFile = require_jsonfile6();
@@ -49259,7 +49259,7 @@ var require_output_json3 = __commonJS({
49259
49259
  callback = options;
49260
49260
  options = {};
49261
49261
  }
49262
- const dir = path3.dirname(file);
49262
+ const dir = path5.dirname(file);
49263
49263
  pathExists(dir, (err, itDoes) => {
49264
49264
  if (err) return callback(err);
49265
49265
  if (itDoes) return jsonFile.writeJson(file, data, options, callback);
@@ -49278,11 +49278,11 @@ var require_output_json_sync3 = __commonJS({
49278
49278
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/json/output-json-sync.js"(exports2, module2) {
49279
49279
  "use strict";
49280
49280
  var fs6 = require_graceful_fs();
49281
- var path3 = require("path");
49281
+ var path5 = require("path");
49282
49282
  var mkdir = require_mkdirs5();
49283
49283
  var jsonFile = require_jsonfile6();
49284
49284
  function outputJsonSync(file, data, options) {
49285
- const dir = path3.dirname(file);
49285
+ const dir = path5.dirname(file);
49286
49286
  if (!fs6.existsSync(dir)) {
49287
49287
  mkdir.mkdirsSync(dir);
49288
49288
  }
@@ -49315,7 +49315,7 @@ var require_move_sync5 = __commonJS({
49315
49315
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/move-sync/move-sync.js"(exports2, module2) {
49316
49316
  "use strict";
49317
49317
  var fs6 = require_graceful_fs();
49318
- var path3 = require("path");
49318
+ var path5 = require("path");
49319
49319
  var copySync = require_copy_sync6().copySync;
49320
49320
  var removeSync = require_remove3().removeSync;
49321
49321
  var mkdirpSync = require_mkdirs5().mkdirpSync;
@@ -49325,7 +49325,7 @@ var require_move_sync5 = __commonJS({
49325
49325
  const overwrite = opts.overwrite || opts.clobber || false;
49326
49326
  const { srcStat } = stat.checkPathsSync(src, dest, "move");
49327
49327
  stat.checkParentPathsSync(src, srcStat, dest, "move");
49328
- mkdirpSync(path3.dirname(dest));
49328
+ mkdirpSync(path5.dirname(dest));
49329
49329
  return doRename(src, dest, overwrite);
49330
49330
  }
49331
49331
  function doRename(src, dest, overwrite) {
@@ -49371,7 +49371,7 @@ var require_move5 = __commonJS({
49371
49371
  "node_modules/@manypkg/tools/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
49372
49372
  "use strict";
49373
49373
  var fs6 = require_graceful_fs();
49374
- var path3 = require("path");
49374
+ var path5 = require("path");
49375
49375
  var copy = require_copy6().copy;
49376
49376
  var remove = require_remove3().remove;
49377
49377
  var mkdirp = require_mkdirs5().mkdirp;
@@ -49388,7 +49388,7 @@ var require_move5 = __commonJS({
49388
49388
  const { srcStat } = stats;
49389
49389
  stat.checkParentPaths(src, srcStat, dest, "move", (err2) => {
49390
49390
  if (err2) return cb(err2);
49391
- mkdirp(path3.dirname(dest), (err3) => {
49391
+ mkdirp(path5.dirname(dest), (err3) => {
49392
49392
  if (err3) return cb(err3);
49393
49393
  return doRename(src, dest, overwrite, cb);
49394
49394
  });
@@ -49446,7 +49446,7 @@ var require_output4 = __commonJS({
49446
49446
  "use strict";
49447
49447
  var u = require_universalify3().fromCallback;
49448
49448
  var fs6 = require_graceful_fs();
49449
- var path3 = require("path");
49449
+ var path5 = require("path");
49450
49450
  var mkdir = require_mkdirs5();
49451
49451
  var pathExists = require_path_exists4().pathExists;
49452
49452
  function outputFile(file, data, encoding, callback) {
@@ -49454,7 +49454,7 @@ var require_output4 = __commonJS({
49454
49454
  callback = encoding;
49455
49455
  encoding = "utf8";
49456
49456
  }
49457
- const dir = path3.dirname(file);
49457
+ const dir = path5.dirname(file);
49458
49458
  pathExists(dir, (err, itDoes) => {
49459
49459
  if (err) return callback(err);
49460
49460
  if (itDoes) return fs6.writeFile(file, data, encoding, callback);
@@ -49465,7 +49465,7 @@ var require_output4 = __commonJS({
49465
49465
  });
49466
49466
  }
49467
49467
  function outputFileSync(file, ...args) {
49468
- const dir = path3.dirname(file);
49468
+ const dir = path5.dirname(file);
49469
49469
  if (fs6.existsSync(dir)) {
49470
49470
  return fs6.writeFileSync(file, ...args);
49471
49471
  }
@@ -49712,7 +49712,7 @@ var require_path = __commonJS({
49712
49712
  Object.defineProperty(exports2, "__esModule", { value: true });
49713
49713
  exports2.convertPosixPathToPattern = exports2.convertWindowsPathToPattern = exports2.convertPathToPattern = exports2.escapePosixPath = exports2.escapeWindowsPath = exports2.escape = exports2.removeLeadingDotSegment = exports2.makeAbsolute = exports2.unixify = void 0;
49714
49714
  var os3 = require("os");
49715
- var path3 = require("path");
49715
+ var path5 = require("path");
49716
49716
  var IS_WINDOWS_PLATFORM = os3.platform() === "win32";
49717
49717
  var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
49718
49718
  var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
@@ -49724,7 +49724,7 @@ var require_path = __commonJS({
49724
49724
  }
49725
49725
  exports2.unixify = unixify;
49726
49726
  function makeAbsolute(cwd, filepath) {
49727
- return path3.resolve(cwd, filepath);
49727
+ return path5.resolve(cwd, filepath);
49728
49728
  }
49729
49729
  exports2.makeAbsolute = makeAbsolute;
49730
49730
  function removeLeadingDotSegment(entry) {
@@ -51016,7 +51016,7 @@ var require_braces = __commonJS({
51016
51016
  var require_constants10 = __commonJS({
51017
51017
  "node_modules/picomatch/lib/constants.js"(exports2, module2) {
51018
51018
  "use strict";
51019
- var path3 = require("path");
51019
+ var path5 = require("path");
51020
51020
  var WIN_SLASH = "\\\\/";
51021
51021
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
51022
51022
  var DOT_LITERAL = "\\.";
@@ -51186,7 +51186,7 @@ var require_constants10 = __commonJS({
51186
51186
  /* | */
51187
51187
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
51188
51188
  /* \uFEFF */
51189
- SEP: path3.sep,
51189
+ SEP: path5.sep,
51190
51190
  /**
51191
51191
  * Create EXTGLOB_CHARS
51192
51192
  */
@@ -51213,7 +51213,7 @@ var require_constants10 = __commonJS({
51213
51213
  var require_utils6 = __commonJS({
51214
51214
  "node_modules/picomatch/lib/utils.js"(exports2) {
51215
51215
  "use strict";
51216
- var path3 = require("path");
51216
+ var path5 = require("path");
51217
51217
  var win32 = process.platform === "win32";
51218
51218
  var {
51219
51219
  REGEX_BACKSLASH,
@@ -51242,7 +51242,7 @@ var require_utils6 = __commonJS({
51242
51242
  if (options && typeof options.windows === "boolean") {
51243
51243
  return options.windows;
51244
51244
  }
51245
- return win32 === true || path3.sep === "\\";
51245
+ return win32 === true || path5.sep === "\\";
51246
51246
  };
51247
51247
  exports2.escapeLast = (input, char, lastIdx) => {
51248
51248
  const idx = input.lastIndexOf(char, lastIdx);
@@ -52377,7 +52377,7 @@ var require_parse4 = __commonJS({
52377
52377
  var require_picomatch = __commonJS({
52378
52378
  "node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
52379
52379
  "use strict";
52380
- var path3 = require("path");
52380
+ var path5 = require("path");
52381
52381
  var scan = require_scan();
52382
52382
  var parse = require_parse4();
52383
52383
  var utils = require_utils6();
@@ -52462,7 +52462,7 @@ var require_picomatch = __commonJS({
52462
52462
  };
52463
52463
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
52464
52464
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
52465
- return regex.test(path3.basename(input));
52465
+ return regex.test(path5.basename(input));
52466
52466
  };
52467
52467
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
52468
52468
  picomatch.parse = (pattern, options) => {
@@ -52684,7 +52684,7 @@ var require_pattern = __commonJS({
52684
52684
  "use strict";
52685
52685
  Object.defineProperty(exports2, "__esModule", { value: true });
52686
52686
  exports2.removeDuplicateSlashes = exports2.matchAny = exports2.convertPatternsToRe = exports2.makeRe = exports2.getPatternParts = exports2.expandBraceExpansion = exports2.expandPatternsWithBraceExpansion = exports2.isAffectDepthOfReadingPattern = exports2.endsWithSlashGlobStar = exports2.hasGlobStar = exports2.getBaseDirectory = exports2.isPatternRelatedToParentDirectory = exports2.getPatternsOutsideCurrentDirectory = exports2.getPatternsInsideCurrentDirectory = exports2.getPositivePatterns = exports2.getNegativePatterns = exports2.isPositivePattern = exports2.isNegativePattern = exports2.convertToNegativePattern = exports2.convertToPositivePattern = exports2.isDynamicPattern = exports2.isStaticPattern = void 0;
52687
- var path3 = require("path");
52687
+ var path5 = require("path");
52688
52688
  var globParent = require_glob_parent();
52689
52689
  var micromatch = require_micromatch();
52690
52690
  var GLOBSTAR = "**";
@@ -52779,7 +52779,7 @@ var require_pattern = __commonJS({
52779
52779
  }
52780
52780
  exports2.endsWithSlashGlobStar = endsWithSlashGlobStar;
52781
52781
  function isAffectDepthOfReadingPattern(pattern) {
52782
- const basename = path3.basename(pattern);
52782
+ const basename = path5.basename(pattern);
52783
52783
  return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
52784
52784
  }
52785
52785
  exports2.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
@@ -52878,8 +52878,8 @@ var require_utils7 = __commonJS({
52878
52878
  exports2.errno = errno;
52879
52879
  var fs6 = require_fs4();
52880
52880
  exports2.fs = fs6;
52881
- var path3 = require_path();
52882
- exports2.path = path3;
52881
+ var path5 = require_path();
52882
+ exports2.path = path5;
52883
52883
  var pattern = require_pattern();
52884
52884
  exports2.pattern = pattern;
52885
52885
  var stream = require_stream2();
@@ -52991,8 +52991,8 @@ var require_async = __commonJS({
52991
52991
  "use strict";
52992
52992
  Object.defineProperty(exports2, "__esModule", { value: true });
52993
52993
  exports2.read = void 0;
52994
- function read(path3, settings, callback) {
52995
- settings.fs.lstat(path3, (lstatError, lstat) => {
52994
+ function read(path5, settings, callback) {
52995
+ settings.fs.lstat(path5, (lstatError, lstat) => {
52996
52996
  if (lstatError !== null) {
52997
52997
  callFailureCallback(callback, lstatError);
52998
52998
  return;
@@ -53001,7 +53001,7 @@ var require_async = __commonJS({
53001
53001
  callSuccessCallback(callback, lstat);
53002
53002
  return;
53003
53003
  }
53004
- settings.fs.stat(path3, (statError, stat) => {
53004
+ settings.fs.stat(path5, (statError, stat) => {
53005
53005
  if (statError !== null) {
53006
53006
  if (settings.throwErrorOnBrokenSymbolicLink) {
53007
53007
  callFailureCallback(callback, statError);
@@ -53033,13 +53033,13 @@ var require_sync = __commonJS({
53033
53033
  "use strict";
53034
53034
  Object.defineProperty(exports2, "__esModule", { value: true });
53035
53035
  exports2.read = void 0;
53036
- function read(path3, settings) {
53037
- const lstat = settings.fs.lstatSync(path3);
53036
+ function read(path5, settings) {
53037
+ const lstat = settings.fs.lstatSync(path5);
53038
53038
  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
53039
53039
  return lstat;
53040
53040
  }
53041
53041
  try {
53042
- const stat = settings.fs.statSync(path3);
53042
+ const stat = settings.fs.statSync(path5);
53043
53043
  if (settings.markSymbolicLink) {
53044
53044
  stat.isSymbolicLink = () => true;
53045
53045
  }
@@ -53110,17 +53110,17 @@ var require_out = __commonJS({
53110
53110
  var sync = require_sync();
53111
53111
  var settings_1 = require_settings();
53112
53112
  exports2.Settings = settings_1.default;
53113
- function stat(path3, optionsOrSettingsOrCallback, callback) {
53113
+ function stat(path5, optionsOrSettingsOrCallback, callback) {
53114
53114
  if (typeof optionsOrSettingsOrCallback === "function") {
53115
- async.read(path3, getSettings(), optionsOrSettingsOrCallback);
53115
+ async.read(path5, getSettings(), optionsOrSettingsOrCallback);
53116
53116
  return;
53117
53117
  }
53118
- async.read(path3, getSettings(optionsOrSettingsOrCallback), callback);
53118
+ async.read(path5, getSettings(optionsOrSettingsOrCallback), callback);
53119
53119
  }
53120
53120
  exports2.stat = stat;
53121
- function statSync2(path3, optionsOrSettings) {
53121
+ function statSync2(path5, optionsOrSettings) {
53122
53122
  const settings = getSettings(optionsOrSettings);
53123
- return sync.read(path3, settings);
53123
+ return sync.read(path5, settings);
53124
53124
  }
53125
53125
  exports2.statSync = statSync2;
53126
53126
  function getSettings(settingsOrOptions = {}) {
@@ -53336,16 +53336,16 @@ var require_async2 = __commonJS({
53336
53336
  return;
53337
53337
  }
53338
53338
  const tasks = names.map((name) => {
53339
- const path3 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
53339
+ const path5 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
53340
53340
  return (done) => {
53341
- fsStat.stat(path3, settings.fsStatSettings, (error, stats) => {
53341
+ fsStat.stat(path5, settings.fsStatSettings, (error, stats) => {
53342
53342
  if (error !== null) {
53343
53343
  done(error);
53344
53344
  return;
53345
53345
  }
53346
53346
  const entry = {
53347
53347
  name,
53348
- path: path3,
53348
+ path: path5,
53349
53349
  dirent: utils.fs.createDirentFromStats(name, stats)
53350
53350
  };
53351
53351
  if (settings.stats) {
@@ -53463,7 +53463,7 @@ var require_settings2 = __commonJS({
53463
53463
  "node_modules/@nodelib/fs.scandir/out/settings.js"(exports2) {
53464
53464
  "use strict";
53465
53465
  Object.defineProperty(exports2, "__esModule", { value: true });
53466
- var path3 = require("path");
53466
+ var path5 = require("path");
53467
53467
  var fsStat = require_out();
53468
53468
  var fs6 = require_fs7();
53469
53469
  var Settings = class {
@@ -53471,7 +53471,7 @@ var require_settings2 = __commonJS({
53471
53471
  this._options = _options;
53472
53472
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
53473
53473
  this.fs = fs6.createFileSystemAdapter(this._options.fs);
53474
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path3.sep);
53474
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path5.sep);
53475
53475
  this.stats = this._getValue(this._options.stats, false);
53476
53476
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
53477
53477
  this.fsStatSettings = new fsStat.Settings({
@@ -53498,17 +53498,17 @@ var require_out2 = __commonJS({
53498
53498
  var sync = require_sync2();
53499
53499
  var settings_1 = require_settings2();
53500
53500
  exports2.Settings = settings_1.default;
53501
- function scandir(path3, optionsOrSettingsOrCallback, callback) {
53501
+ function scandir(path5, optionsOrSettingsOrCallback, callback) {
53502
53502
  if (typeof optionsOrSettingsOrCallback === "function") {
53503
- async.read(path3, getSettings(), optionsOrSettingsOrCallback);
53503
+ async.read(path5, getSettings(), optionsOrSettingsOrCallback);
53504
53504
  return;
53505
53505
  }
53506
- async.read(path3, getSettings(optionsOrSettingsOrCallback), callback);
53506
+ async.read(path5, getSettings(optionsOrSettingsOrCallback), callback);
53507
53507
  }
53508
53508
  exports2.scandir = scandir;
53509
- function scandirSync(path3, optionsOrSettings) {
53509
+ function scandirSync(path5, optionsOrSettings) {
53510
53510
  const settings = getSettings(optionsOrSettings);
53511
- return sync.read(path3, settings);
53511
+ return sync.read(path5, settings);
53512
53512
  }
53513
53513
  exports2.scandirSync = scandirSync;
53514
53514
  function getSettings(settingsOrOptions = {}) {
@@ -54112,7 +54112,7 @@ var require_settings3 = __commonJS({
54112
54112
  "node_modules/@nodelib/fs.walk/out/settings.js"(exports2) {
54113
54113
  "use strict";
54114
54114
  Object.defineProperty(exports2, "__esModule", { value: true });
54115
- var path3 = require("path");
54115
+ var path5 = require("path");
54116
54116
  var fsScandir = require_out2();
54117
54117
  var Settings = class {
54118
54118
  constructor(_options = {}) {
@@ -54122,7 +54122,7 @@ var require_settings3 = __commonJS({
54122
54122
  this.deepFilter = this._getValue(this._options.deepFilter, null);
54123
54123
  this.entryFilter = this._getValue(this._options.entryFilter, null);
54124
54124
  this.errorFilter = this._getValue(this._options.errorFilter, null);
54125
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path3.sep);
54125
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path5.sep);
54126
54126
  this.fsScandirSettings = new fsScandir.Settings({
54127
54127
  followSymbolicLinks: this._options.followSymbolicLinks,
54128
54128
  fs: this._options.fs,
@@ -54184,7 +54184,7 @@ var require_reader2 = __commonJS({
54184
54184
  "node_modules/fast-glob/out/readers/reader.js"(exports2) {
54185
54185
  "use strict";
54186
54186
  Object.defineProperty(exports2, "__esModule", { value: true });
54187
- var path3 = require("path");
54187
+ var path5 = require("path");
54188
54188
  var fsStat = require_out();
54189
54189
  var utils = require_utils7();
54190
54190
  var Reader = class {
@@ -54197,7 +54197,7 @@ var require_reader2 = __commonJS({
54197
54197
  });
54198
54198
  }
54199
54199
  _getFullEntryPath(filepath) {
54200
- return path3.resolve(this._settings.cwd, filepath);
54200
+ return path5.resolve(this._settings.cwd, filepath);
54201
54201
  }
54202
54202
  _makeEntry(stats, pattern) {
54203
54203
  const entry = {
@@ -54591,7 +54591,7 @@ var require_provider = __commonJS({
54591
54591
  "node_modules/fast-glob/out/providers/provider.js"(exports2) {
54592
54592
  "use strict";
54593
54593
  Object.defineProperty(exports2, "__esModule", { value: true });
54594
- var path3 = require("path");
54594
+ var path5 = require("path");
54595
54595
  var deep_1 = require_deep();
54596
54596
  var entry_1 = require_entry();
54597
54597
  var error_1 = require_error3();
@@ -54605,7 +54605,7 @@ var require_provider = __commonJS({
54605
54605
  this.entryTransformer = new entry_2.default(this._settings);
54606
54606
  }
54607
54607
  _getRootDirectory(task) {
54608
- return path3.resolve(this._settings.cwd, task.base);
54608
+ return path5.resolve(this._settings.cwd, task.base);
54609
54609
  }
54610
54610
  _getReaderOptions(task) {
54611
54611
  const basePath = task.base === "." ? "" : task.base;
@@ -54987,15 +54987,15 @@ var require_path_type = __commonJS({
54987
54987
  var require_dir_glob = __commonJS({
54988
54988
  "node_modules/dir-glob/index.js"(exports2, module2) {
54989
54989
  "use strict";
54990
- var path3 = require("path");
54990
+ var path5 = require("path");
54991
54991
  var pathType = require_path_type();
54992
54992
  var getExtensions = (extensions) => extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0];
54993
54993
  var getPath = (filepath, cwd) => {
54994
54994
  const pth = filepath[0] === "!" ? filepath.slice(1) : filepath;
54995
- return path3.isAbsolute(pth) ? pth : path3.join(cwd, pth);
54995
+ return path5.isAbsolute(pth) ? pth : path5.join(cwd, pth);
54996
54996
  };
54997
54997
  var addExtensions = (file, extensions) => {
54998
- if (path3.extname(file)) {
54998
+ if (path5.extname(file)) {
54999
54999
  return `**/${file}`;
55000
55000
  }
55001
55001
  return `**/${file}.${getExtensions(extensions)}`;
@@ -55008,15 +55008,15 @@ var require_dir_glob = __commonJS({
55008
55008
  throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof options.extensions}\``);
55009
55009
  }
55010
55010
  if (options.files && options.extensions) {
55011
- return options.files.map((x3) => path3.posix.join(directory, addExtensions(x3, options.extensions)));
55011
+ return options.files.map((x3) => path5.posix.join(directory, addExtensions(x3, options.extensions)));
55012
55012
  }
55013
55013
  if (options.files) {
55014
- return options.files.map((x3) => path3.posix.join(directory, `**/${x3}`));
55014
+ return options.files.map((x3) => path5.posix.join(directory, `**/${x3}`));
55015
55015
  }
55016
55016
  if (options.extensions) {
55017
- return [path3.posix.join(directory, `**/*.${getExtensions(options.extensions)}`)];
55017
+ return [path5.posix.join(directory, `**/*.${getExtensions(options.extensions)}`)];
55018
55018
  }
55019
- return [path3.posix.join(directory, "**")];
55019
+ return [path5.posix.join(directory, "**")];
55020
55020
  };
55021
55021
  module2.exports = async (input, options) => {
55022
55022
  options = {
@@ -55262,17 +55262,17 @@ var require_ignore = __commonJS({
55262
55262
  var throwError = (message, Ctor) => {
55263
55263
  throw new Ctor(message);
55264
55264
  };
55265
- var checkPath = (path3, originalPath, doThrow) => {
55266
- if (!isString(path3)) {
55265
+ var checkPath = (path5, originalPath, doThrow) => {
55266
+ if (!isString(path5)) {
55267
55267
  return doThrow(
55268
55268
  `path must be a string, but got \`${originalPath}\``,
55269
55269
  TypeError
55270
55270
  );
55271
55271
  }
55272
- if (!path3) {
55272
+ if (!path5) {
55273
55273
  return doThrow(`path must not be empty`, TypeError);
55274
55274
  }
55275
- if (checkPath.isNotRelative(path3)) {
55275
+ if (checkPath.isNotRelative(path5)) {
55276
55276
  const r2 = "`path.relative()`d";
55277
55277
  return doThrow(
55278
55278
  `path should be a ${r2} string, but got "${originalPath}"`,
@@ -55281,7 +55281,7 @@ var require_ignore = __commonJS({
55281
55281
  }
55282
55282
  return true;
55283
55283
  };
55284
- var isNotRelative = (path3) => REGEX_TEST_INVALID_PATH.test(path3);
55284
+ var isNotRelative = (path5) => REGEX_TEST_INVALID_PATH.test(path5);
55285
55285
  checkPath.isNotRelative = isNotRelative;
55286
55286
  checkPath.convert = (p2) => p2;
55287
55287
  var Ignore = class {
@@ -55340,7 +55340,7 @@ var require_ignore = __commonJS({
55340
55340
  // setting `checkUnignored` to `false` could reduce additional
55341
55341
  // path matching.
55342
55342
  // @returns {TestResult} true if a file is ignored
55343
- _testOne(path3, checkUnignored) {
55343
+ _testOne(path5, checkUnignored) {
55344
55344
  let ignored = false;
55345
55345
  let unignored = false;
55346
55346
  this._rules.forEach((rule) => {
@@ -55348,7 +55348,7 @@ var require_ignore = __commonJS({
55348
55348
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
55349
55349
  return;
55350
55350
  }
55351
- const matched = rule.regex.test(path3);
55351
+ const matched = rule.regex.test(path5);
55352
55352
  if (matched) {
55353
55353
  ignored = !negative;
55354
55354
  unignored = negative;
@@ -55361,24 +55361,24 @@ var require_ignore = __commonJS({
55361
55361
  }
55362
55362
  // @returns {TestResult}
55363
55363
  _test(originalPath, cache, checkUnignored, slices) {
55364
- const path3 = originalPath && checkPath.convert(originalPath);
55364
+ const path5 = originalPath && checkPath.convert(originalPath);
55365
55365
  checkPath(
55366
- path3,
55366
+ path5,
55367
55367
  originalPath,
55368
55368
  this._allowRelativePaths ? RETURN_FALSE : throwError
55369
55369
  );
55370
- return this._t(path3, cache, checkUnignored, slices);
55370
+ return this._t(path5, cache, checkUnignored, slices);
55371
55371
  }
55372
- _t(path3, cache, checkUnignored, slices) {
55373
- if (path3 in cache) {
55374
- return cache[path3];
55372
+ _t(path5, cache, checkUnignored, slices) {
55373
+ if (path5 in cache) {
55374
+ return cache[path5];
55375
55375
  }
55376
55376
  if (!slices) {
55377
- slices = path3.split(SLASH);
55377
+ slices = path5.split(SLASH);
55378
55378
  }
55379
55379
  slices.pop();
55380
55380
  if (!slices.length) {
55381
- return cache[path3] = this._testOne(path3, checkUnignored);
55381
+ return cache[path5] = this._testOne(path5, checkUnignored);
55382
55382
  }
55383
55383
  const parent = this._t(
55384
55384
  slices.join(SLASH) + SLASH,
@@ -55386,24 +55386,24 @@ var require_ignore = __commonJS({
55386
55386
  checkUnignored,
55387
55387
  slices
55388
55388
  );
55389
- return cache[path3] = parent.ignored ? parent : this._testOne(path3, checkUnignored);
55389
+ return cache[path5] = parent.ignored ? parent : this._testOne(path5, checkUnignored);
55390
55390
  }
55391
- ignores(path3) {
55392
- return this._test(path3, this._ignoreCache, false).ignored;
55391
+ ignores(path5) {
55392
+ return this._test(path5, this._ignoreCache, false).ignored;
55393
55393
  }
55394
55394
  createFilter() {
55395
- return (path3) => !this.ignores(path3);
55395
+ return (path5) => !this.ignores(path5);
55396
55396
  }
55397
55397
  filter(paths) {
55398
55398
  return makeArray(paths).filter(this.createFilter());
55399
55399
  }
55400
55400
  // @returns {TestResult}
55401
- test(path3) {
55402
- return this._test(path3, this._testCache, true);
55401
+ test(path5) {
55402
+ return this._test(path5, this._testCache, true);
55403
55403
  }
55404
55404
  };
55405
55405
  var factory = (options) => new Ignore(options);
55406
- var isPathValid = (path3) => checkPath(path3 && checkPath.convert(path3), path3, RETURN_FALSE);
55406
+ var isPathValid = (path5) => checkPath(path5 && checkPath.convert(path5), path5, RETURN_FALSE);
55407
55407
  factory.isPathValid = isPathValid;
55408
55408
  factory.default = factory;
55409
55409
  module2.exports = factory;
@@ -55414,7 +55414,7 @@ var require_ignore = __commonJS({
55414
55414
  const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
55415
55415
  checkPath.convert = makePosix;
55416
55416
  const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
55417
- checkPath.isNotRelative = (path3) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path3) || isNotRelative(path3);
55417
+ checkPath.isNotRelative = (path5) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path5) || isNotRelative(path5);
55418
55418
  }
55419
55419
  }
55420
55420
  });
@@ -55423,13 +55423,13 @@ var require_ignore = __commonJS({
55423
55423
  var require_slash = __commonJS({
55424
55424
  "node_modules/slash/index.js"(exports2, module2) {
55425
55425
  "use strict";
55426
- module2.exports = (path3) => {
55427
- const isExtendedLengthPath = /^\\\\\?\\/.test(path3);
55428
- const hasNonAscii = /[^\u0000-\u0080]+/.test(path3);
55426
+ module2.exports = (path5) => {
55427
+ const isExtendedLengthPath = /^\\\\\?\\/.test(path5);
55428
+ const hasNonAscii = /[^\u0000-\u0080]+/.test(path5);
55429
55429
  if (isExtendedLengthPath || hasNonAscii) {
55430
- return path3;
55430
+ return path5;
55431
55431
  }
55432
- return path3.replace(/\\/g, "/");
55432
+ return path5.replace(/\\/g, "/");
55433
55433
  };
55434
55434
  }
55435
55435
  });
@@ -55440,7 +55440,7 @@ var require_gitignore = __commonJS({
55440
55440
  "use strict";
55441
55441
  var { promisify: promisify5 } = require("util");
55442
55442
  var fs6 = require("fs");
55443
- var path3 = require("path");
55443
+ var path5 = require("path");
55444
55444
  var fastGlob = require_out4();
55445
55445
  var gitIgnore = require_ignore();
55446
55446
  var slash = require_slash();
@@ -55453,12 +55453,12 @@ var require_gitignore = __commonJS({
55453
55453
  var readFileP = promisify5(fs6.readFile);
55454
55454
  var mapGitIgnorePatternTo = (base) => (ignore) => {
55455
55455
  if (ignore.startsWith("!")) {
55456
- return "!" + path3.posix.join(base, ignore.slice(1));
55456
+ return "!" + path5.posix.join(base, ignore.slice(1));
55457
55457
  }
55458
- return path3.posix.join(base, ignore);
55458
+ return path5.posix.join(base, ignore);
55459
55459
  };
55460
55460
  var parseGitIgnore = (content, options) => {
55461
- const base = slash(path3.relative(options.cwd, path3.dirname(options.fileName)));
55461
+ const base = slash(path5.relative(options.cwd, path5.dirname(options.fileName)));
55462
55462
  return content.split(/\r?\n/).filter(Boolean).filter((line) => !line.startsWith("#")).map(mapGitIgnorePatternTo(base));
55463
55463
  };
55464
55464
  var reduceIgnore = (files) => {
@@ -55473,19 +55473,19 @@ var require_gitignore = __commonJS({
55473
55473
  };
55474
55474
  var ensureAbsolutePathForCwd = (cwd, p2) => {
55475
55475
  cwd = slash(cwd);
55476
- if (path3.isAbsolute(p2)) {
55476
+ if (path5.isAbsolute(p2)) {
55477
55477
  if (slash(p2).startsWith(cwd)) {
55478
55478
  return p2;
55479
55479
  }
55480
55480
  throw new Error(`Path ${p2} is not in cwd ${cwd}`);
55481
55481
  }
55482
- return path3.join(cwd, p2);
55482
+ return path5.join(cwd, p2);
55483
55483
  };
55484
55484
  var getIsIgnoredPredecate = (ignores, cwd) => {
55485
- return (p2) => ignores.ignores(slash(path3.relative(cwd, ensureAbsolutePathForCwd(cwd, p2.path || p2))));
55485
+ return (p2) => ignores.ignores(slash(path5.relative(cwd, ensureAbsolutePathForCwd(cwd, p2.path || p2))));
55486
55486
  };
55487
55487
  var getFile = async (file, cwd) => {
55488
- const filePath = path3.join(cwd, file);
55488
+ const filePath = path5.join(cwd, file);
55489
55489
  const content = await readFileP(filePath, "utf8");
55490
55490
  return {
55491
55491
  cwd,
@@ -55494,7 +55494,7 @@ var require_gitignore = __commonJS({
55494
55494
  };
55495
55495
  };
55496
55496
  var getFileSync = (file, cwd) => {
55497
- const filePath = path3.join(cwd, file);
55497
+ const filePath = path5.join(cwd, file);
55498
55498
  const content = fs6.readFileSync(filePath, "utf8");
55499
55499
  return {
55500
55500
  cwd,
@@ -59546,12 +59546,12 @@ var require_document = __commonJS({
59546
59546
  result.data = null;
59547
59547
  return result;
59548
59548
  }
59549
- function arg_to_path(path3) {
59550
- if (typeof path3 === "number") path3 = String(path3);
59551
- if (path3 === "") path3 = [];
59552
- if (typeof path3 === "string") path3 = path3.split(".");
59553
- if (!Array.isArray(path3)) throw Error("Invalid path type, string or array expected");
59554
- return path3;
59549
+ function arg_to_path(path5) {
59550
+ if (typeof path5 === "number") path5 = String(path5);
59551
+ if (path5 === "") path5 = [];
59552
+ if (typeof path5 === "string") path5 = path5.split(".");
59553
+ if (!Array.isArray(path5)) throw Error("Invalid path type, string or array expected");
59554
+ return path5;
59555
59555
  }
59556
59556
  function find_element_in_tokenlist(element, lvl, tokens, begin, end) {
59557
59557
  while (tokens[begin].stack[lvl] != element) {
@@ -59675,30 +59675,30 @@ var require_document = __commonJS({
59675
59675
  return true;
59676
59676
  }
59677
59677
  }
59678
- Document.prototype.set = function(path3, value) {
59679
- path3 = arg_to_path(path3);
59680
- if (path3.length === 0) {
59678
+ Document.prototype.set = function(path5, value) {
59679
+ path5 = arg_to_path(path5);
59680
+ if (path5.length === 0) {
59681
59681
  if (value === void 0) throw Error("can't remove root document");
59682
59682
  this._data = value;
59683
59683
  var new_key = false;
59684
59684
  } else {
59685
59685
  var data = this._data;
59686
- for (var i = 0; i < path3.length - 1; i++) {
59687
- check_if_can_be_placed(path3[i], data, false);
59688
- data = data[path3[i]];
59686
+ for (var i = 0; i < path5.length - 1; i++) {
59687
+ check_if_can_be_placed(path5[i], data, false);
59688
+ data = data[path5[i]];
59689
59689
  }
59690
- if (i === path3.length - 1) {
59691
- check_if_can_be_placed(path3[i], data, value === void 0);
59690
+ if (i === path5.length - 1) {
59691
+ check_if_can_be_placed(path5[i], data, value === void 0);
59692
59692
  }
59693
- var new_key = !(path3[i] in data);
59693
+ var new_key = !(path5[i] in data);
59694
59694
  if (value === void 0) {
59695
59695
  if (Array.isArray(data)) {
59696
59696
  data.pop();
59697
59697
  } else {
59698
- delete data[path3[i]];
59698
+ delete data[path5[i]];
59699
59699
  }
59700
59700
  } else {
59701
- data[path3[i]] = value;
59701
+ data[path5[i]] = value;
59702
59702
  }
59703
59703
  }
59704
59704
  if (!this._tokens.length)
@@ -59707,15 +59707,15 @@ var require_document = __commonJS({
59707
59707
  find_first_non_ws_token(this._tokens, 0, this._tokens.length - 1),
59708
59708
  find_last_non_ws_token(this._tokens, 0, this._tokens.length - 1)
59709
59709
  ];
59710
- for (var i = 0; i < path3.length - 1; i++) {
59711
- position = find_element_in_tokenlist(path3[i], i, this._tokens, position[0], position[1]);
59710
+ for (var i = 0; i < path5.length - 1; i++) {
59711
+ position = find_element_in_tokenlist(path5[i], i, this._tokens, position[0], position[1]);
59712
59712
  if (position == false) throw Error("internal error, please report this");
59713
59713
  }
59714
- if (path3.length === 0) {
59715
- var newtokens = value_to_tokenlist(value, path3, this._options);
59714
+ if (path5.length === 0) {
59715
+ var newtokens = value_to_tokenlist(value, path5, this._options);
59716
59716
  } else if (!new_key) {
59717
59717
  var pos_old = position;
59718
- position = find_element_in_tokenlist(path3[i], i, this._tokens, position[0], position[1]);
59718
+ position = find_element_in_tokenlist(path5[i], i, this._tokens, position[0], position[1]);
59719
59719
  if (value === void 0 && position !== false) {
59720
59720
  var newtokens = [];
59721
59721
  if (!Array.isArray(data)) {
@@ -59725,7 +59725,7 @@ var require_document = __commonJS({
59725
59725
  position[0] = pos2;
59726
59726
  var pos2 = find_last_non_ws_token(this._tokens, pos_old[0], position[0] - 1);
59727
59727
  assert.equal(this._tokens[pos2].type, "key");
59728
- assert.equal(this._tokens[pos2].value, path3[path3.length - 1]);
59728
+ assert.equal(this._tokens[pos2].value, path5[path5.length - 1]);
59729
59729
  position[0] = pos2;
59730
59730
  }
59731
59731
  var pos2 = find_last_non_ws_token(this._tokens, pos_old[0], position[0] - 1);
@@ -59741,21 +59741,21 @@ var require_document = __commonJS({
59741
59741
  }
59742
59742
  } else {
59743
59743
  var indent = pos2 !== false ? detect_indent_style(this._tokens, Array.isArray(data), pos_old[0], position[1] - 1, i) : {};
59744
- var newtokens = value_to_tokenlist(value, path3, this._options, false, indent);
59744
+ var newtokens = value_to_tokenlist(value, path5, this._options, false, indent);
59745
59745
  }
59746
59746
  } else {
59747
- var path_1 = path3.slice(0, i);
59747
+ var path_1 = path5.slice(0, i);
59748
59748
  var pos2 = find_last_non_ws_token(this._tokens, position[0] + 1, position[1] - 1);
59749
59749
  assert(pos2 !== false);
59750
59750
  var indent = pos2 !== false ? detect_indent_style(this._tokens, Array.isArray(data), position[0] + 1, pos2, i) : {};
59751
- var newtokens = value_to_tokenlist(value, path3, this._options, false, indent);
59751
+ var newtokens = value_to_tokenlist(value, path5, this._options, false, indent);
59752
59752
  var prefix = [];
59753
59753
  if (indent.newline && indent.newline.length)
59754
59754
  prefix = prefix.concat(indent.newline);
59755
59755
  if (indent.prefix && indent.prefix.length)
59756
59756
  prefix = prefix.concat(indent.prefix);
59757
59757
  if (!Array.isArray(data)) {
59758
- prefix = prefix.concat(value_to_tokenlist(path3[path3.length - 1], path_1, this._options, true));
59758
+ prefix = prefix.concat(value_to_tokenlist(path5[path5.length - 1], path_1, this._options, true));
59759
59759
  if (indent.sep1 && indent.sep1.length)
59760
59760
  prefix = prefix.concat(indent.sep1);
59761
59761
  prefix.push({ raw: ":", type: "separator", stack: path_1 });
@@ -59763,7 +59763,7 @@ var require_document = __commonJS({
59763
59763
  prefix = prefix.concat(indent.sep2);
59764
59764
  }
59765
59765
  newtokens.unshift.apply(newtokens, prefix);
59766
- if (this._tokens[pos2].type === "separator" && this._tokens[pos2].stack.length === path3.length - 1) {
59766
+ if (this._tokens[pos2].type === "separator" && this._tokens[pos2].stack.length === path5.length - 1) {
59767
59767
  if (this._tokens[pos2].raw === ",") {
59768
59768
  newtokens.push({ raw: ",", type: "separator", stack: path_1 });
59769
59769
  }
@@ -59781,24 +59781,24 @@ var require_document = __commonJS({
59781
59781
  this._tokens.splice.apply(this._tokens, newtokens);
59782
59782
  return this;
59783
59783
  };
59784
- Document.prototype.unset = function(path3) {
59785
- return this.set(path3, void 0);
59784
+ Document.prototype.unset = function(path5) {
59785
+ return this.set(path5, void 0);
59786
59786
  };
59787
- Document.prototype.get = function(path3) {
59788
- path3 = arg_to_path(path3);
59787
+ Document.prototype.get = function(path5) {
59788
+ path5 = arg_to_path(path5);
59789
59789
  var data = this._data;
59790
- for (var i = 0; i < path3.length; i++) {
59790
+ for (var i = 0; i < path5.length; i++) {
59791
59791
  if (!isObject2(data)) return void 0;
59792
- data = data[path3[i]];
59792
+ data = data[path5[i]];
59793
59793
  }
59794
59794
  return data;
59795
59795
  };
59796
- Document.prototype.has = function(path3) {
59797
- path3 = arg_to_path(path3);
59796
+ Document.prototype.has = function(path5) {
59797
+ path5 = arg_to_path(path5);
59798
59798
  var data = this._data;
59799
- for (var i = 0; i < path3.length; i++) {
59799
+ for (var i = 0; i < path5.length; i++) {
59800
59800
  if (!isObject2(data)) return false;
59801
- data = data[path3[i]];
59801
+ data = data[path5[i]];
59802
59802
  }
59803
59803
  return data !== void 0;
59804
59804
  };
@@ -59806,37 +59806,37 @@ var require_document = __commonJS({
59806
59806
  var self2 = this;
59807
59807
  change([], self2._data, value);
59808
59808
  return self2;
59809
- function change(path3, old_data, new_data) {
59809
+ function change(path5, old_data, new_data) {
59810
59810
  if (!isObject2(new_data) || !isObject2(old_data)) {
59811
59811
  if (new_data !== old_data)
59812
- self2.set(path3, new_data);
59812
+ self2.set(path5, new_data);
59813
59813
  } else if (Array.isArray(new_data) != Array.isArray(old_data)) {
59814
- self2.set(path3, new_data);
59814
+ self2.set(path5, new_data);
59815
59815
  } else if (Array.isArray(new_data)) {
59816
59816
  if (new_data.length > old_data.length) {
59817
59817
  for (var i = 0; i < new_data.length; i++) {
59818
- path3.push(String(i));
59819
- change(path3, old_data[i], new_data[i]);
59820
- path3.pop();
59818
+ path5.push(String(i));
59819
+ change(path5, old_data[i], new_data[i]);
59820
+ path5.pop();
59821
59821
  }
59822
59822
  } else {
59823
59823
  for (var i = old_data.length - 1; i >= 0; i--) {
59824
- path3.push(String(i));
59825
- change(path3, old_data[i], new_data[i]);
59826
- path3.pop();
59824
+ path5.push(String(i));
59825
+ change(path5, old_data[i], new_data[i]);
59826
+ path5.pop();
59827
59827
  }
59828
59828
  }
59829
59829
  } else {
59830
59830
  for (var i in new_data) {
59831
- path3.push(String(i));
59832
- change(path3, old_data[i], new_data[i]);
59833
- path3.pop();
59831
+ path5.push(String(i));
59832
+ change(path5, old_data[i], new_data[i]);
59833
+ path5.pop();
59834
59834
  }
59835
59835
  for (var i in old_data) {
59836
59836
  if (i in new_data) continue;
59837
- path3.push(String(i));
59838
- change(path3, old_data[i], new_data[i]);
59839
- path3.pop();
59837
+ path5.push(String(i));
59838
+ change(path5, old_data[i], new_data[i]);
59839
+ path5.pop();
59840
59840
  }
59841
59841
  }
59842
59842
  }
@@ -59918,7 +59918,7 @@ var require_manypkg_tools_cjs_prod = __commonJS({
59918
59918
  "node_modules/@manypkg/tools/dist/manypkg-tools.cjs.prod.js"(exports2) {
59919
59919
  "use strict";
59920
59920
  Object.defineProperty(exports2, "__esModule", { value: true });
59921
- var path3 = require("path");
59921
+ var path5 = require("path");
59922
59922
  var fs6 = require_lib9();
59923
59923
  var globby = require_globby();
59924
59924
  var readYamlFile = require_read_yaml_file();
@@ -59926,7 +59926,7 @@ var require_manypkg_tools_cjs_prod = __commonJS({
59926
59926
  function _interopDefault(e2) {
59927
59927
  return e2 && e2.__esModule ? e2 : { "default": e2 };
59928
59928
  }
59929
- var path__default = /* @__PURE__ */ _interopDefault(path3);
59929
+ var path__default = /* @__PURE__ */ _interopDefault(path5);
59930
59930
  var fs__default = /* @__PURE__ */ _interopDefault(fs6);
59931
59931
  var globby__default = /* @__PURE__ */ _interopDefault(globby);
59932
59932
  var readYamlFile__default = /* @__PURE__ */ _interopDefault(readYamlFile);
@@ -60442,7 +60442,7 @@ var require_manypkg_tools_cjs_dev = __commonJS({
60442
60442
  "node_modules/@manypkg/tools/dist/manypkg-tools.cjs.dev.js"(exports2) {
60443
60443
  "use strict";
60444
60444
  Object.defineProperty(exports2, "__esModule", { value: true });
60445
- var path3 = require("path");
60445
+ var path5 = require("path");
60446
60446
  var fs6 = require_lib9();
60447
60447
  var globby = require_globby();
60448
60448
  var readYamlFile = require_read_yaml_file();
@@ -60450,7 +60450,7 @@ var require_manypkg_tools_cjs_dev = __commonJS({
60450
60450
  function _interopDefault(e2) {
60451
60451
  return e2 && e2.__esModule ? e2 : { "default": e2 };
60452
60452
  }
60453
- var path__default = /* @__PURE__ */ _interopDefault(path3);
60453
+ var path__default = /* @__PURE__ */ _interopDefault(path5);
60454
60454
  var fs__default = /* @__PURE__ */ _interopDefault(fs6);
60455
60455
  var globby__default = /* @__PURE__ */ _interopDefault(globby);
60456
60456
  var readYamlFile__default = /* @__PURE__ */ _interopDefault(readYamlFile);
@@ -60979,14 +60979,14 @@ var require_manypkg_find_root_cjs_prod = __commonJS({
60979
60979
  "use strict";
60980
60980
  Object.defineProperty(exports2, "__esModule", { value: true });
60981
60981
  var findUp = require_find_up();
60982
- var path3 = require("path");
60982
+ var path5 = require("path");
60983
60983
  var fs6 = require_lib8();
60984
60984
  var tools = require_manypkg_tools_cjs();
60985
60985
  function _interopDefault(e2) {
60986
60986
  return e2 && e2.__esModule ? e2 : { "default": e2 };
60987
60987
  }
60988
60988
  var findUp__default = /* @__PURE__ */ _interopDefault(findUp);
60989
- var path__default = /* @__PURE__ */ _interopDefault(path3);
60989
+ var path__default = /* @__PURE__ */ _interopDefault(path5);
60990
60990
  var fs__default = /* @__PURE__ */ _interopDefault(fs6);
60991
60991
  var DEFAULT_TOOLS = [tools.YarnTool, tools.PnpmTool, tools.LernaTool, tools.RushTool, tools.BoltTool, tools.RootTool];
60992
60992
  var isNoEntryError = (err) => !!err && typeof err === "object" && "code" in err && err.code === "ENOENT";
@@ -61101,14 +61101,14 @@ var require_manypkg_find_root_cjs_dev = __commonJS({
61101
61101
  "use strict";
61102
61102
  Object.defineProperty(exports2, "__esModule", { value: true });
61103
61103
  var findUp = require_find_up();
61104
- var path3 = require("path");
61104
+ var path5 = require("path");
61105
61105
  var fs6 = require_lib8();
61106
61106
  var tools = require_manypkg_tools_cjs();
61107
61107
  function _interopDefault(e2) {
61108
61108
  return e2 && e2.__esModule ? e2 : { "default": e2 };
61109
61109
  }
61110
61110
  var findUp__default = /* @__PURE__ */ _interopDefault(findUp);
61111
- var path__default = /* @__PURE__ */ _interopDefault(path3);
61111
+ var path__default = /* @__PURE__ */ _interopDefault(path5);
61112
61112
  var fs__default = /* @__PURE__ */ _interopDefault(fs6);
61113
61113
  var DEFAULT_TOOLS = [tools.YarnTool, tools.PnpmTool, tools.LernaTool, tools.RushTool, tools.BoltTool, tools.RootTool];
61114
61114
  var isNoEntryError = (err) => !!err && typeof err === "object" && "code" in err && err.code === "ENOENT";
@@ -61536,7 +61536,7 @@ var require_utils10 = __commonJS({
61536
61536
  module2.exports = Utils;
61537
61537
  Utils.prototype.makeDir = function(folder) {
61538
61538
  const self2 = this;
61539
- function mkdirSync(fpath) {
61539
+ function mkdirSync2(fpath) {
61540
61540
  let resolvedPath = fpath.split(self2.sep)[0];
61541
61541
  fpath.split(self2.sep).forEach(function(name) {
61542
61542
  if (!name || name.substr(-1, 1) === ":") return;
@@ -61550,27 +61550,27 @@ var require_utils10 = __commonJS({
61550
61550
  if (stat && stat.isFile()) throw Errors.FILE_IN_THE_WAY.replace("%s", resolvedPath);
61551
61551
  });
61552
61552
  }
61553
- mkdirSync(folder);
61553
+ mkdirSync2(folder);
61554
61554
  };
61555
- Utils.prototype.writeFileTo = function(path3, content, overwrite, attr) {
61555
+ Utils.prototype.writeFileTo = function(path5, content, overwrite, attr) {
61556
61556
  const self2 = this;
61557
- if (self2.fs.existsSync(path3)) {
61557
+ if (self2.fs.existsSync(path5)) {
61558
61558
  if (!overwrite) return false;
61559
- var stat = self2.fs.statSync(path3);
61559
+ var stat = self2.fs.statSync(path5);
61560
61560
  if (stat.isDirectory()) {
61561
61561
  return false;
61562
61562
  }
61563
61563
  }
61564
- var folder = pth.dirname(path3);
61564
+ var folder = pth.dirname(path5);
61565
61565
  if (!self2.fs.existsSync(folder)) {
61566
61566
  self2.makeDir(folder);
61567
61567
  }
61568
61568
  var fd;
61569
61569
  try {
61570
- fd = self2.fs.openSync(path3, "w", 438);
61570
+ fd = self2.fs.openSync(path5, "w", 438);
61571
61571
  } catch (e2) {
61572
- self2.fs.chmodSync(path3, 438);
61573
- fd = self2.fs.openSync(path3, "w", 438);
61572
+ self2.fs.chmodSync(path5, 438);
61573
+ fd = self2.fs.openSync(path5, "w", 438);
61574
61574
  }
61575
61575
  if (fd) {
61576
61576
  try {
@@ -61579,31 +61579,31 @@ var require_utils10 = __commonJS({
61579
61579
  self2.fs.closeSync(fd);
61580
61580
  }
61581
61581
  }
61582
- self2.fs.chmodSync(path3, attr || 438);
61582
+ self2.fs.chmodSync(path5, attr || 438);
61583
61583
  return true;
61584
61584
  };
61585
- Utils.prototype.writeFileToAsync = function(path3, content, overwrite, attr, callback) {
61585
+ Utils.prototype.writeFileToAsync = function(path5, content, overwrite, attr, callback) {
61586
61586
  if (typeof attr === "function") {
61587
61587
  callback = attr;
61588
61588
  attr = void 0;
61589
61589
  }
61590
61590
  const self2 = this;
61591
- self2.fs.exists(path3, function(exist) {
61591
+ self2.fs.exists(path5, function(exist) {
61592
61592
  if (exist && !overwrite) return callback(false);
61593
- self2.fs.stat(path3, function(err, stat) {
61593
+ self2.fs.stat(path5, function(err, stat) {
61594
61594
  if (exist && stat.isDirectory()) {
61595
61595
  return callback(false);
61596
61596
  }
61597
- var folder = pth.dirname(path3);
61597
+ var folder = pth.dirname(path5);
61598
61598
  self2.fs.exists(folder, function(exists) {
61599
61599
  if (!exists) self2.makeDir(folder);
61600
- self2.fs.open(path3, "w", 438, function(err2, fd) {
61600
+ self2.fs.open(path5, "w", 438, function(err2, fd) {
61601
61601
  if (err2) {
61602
- self2.fs.chmod(path3, 438, function() {
61603
- self2.fs.open(path3, "w", 438, function(err3, fd2) {
61602
+ self2.fs.chmod(path5, 438, function() {
61603
+ self2.fs.open(path5, "w", 438, function(err3, fd2) {
61604
61604
  self2.fs.write(fd2, content, 0, content.length, 0, function() {
61605
61605
  self2.fs.close(fd2, function() {
61606
- self2.fs.chmod(path3, attr || 438, function() {
61606
+ self2.fs.chmod(path5, attr || 438, function() {
61607
61607
  callback(true);
61608
61608
  });
61609
61609
  });
@@ -61613,13 +61613,13 @@ var require_utils10 = __commonJS({
61613
61613
  } else if (fd) {
61614
61614
  self2.fs.write(fd, content, 0, content.length, 0, function() {
61615
61615
  self2.fs.close(fd, function() {
61616
- self2.fs.chmod(path3, attr || 438, function() {
61616
+ self2.fs.chmod(path5, attr || 438, function() {
61617
61617
  callback(true);
61618
61618
  });
61619
61619
  });
61620
61620
  });
61621
61621
  } else {
61622
- self2.fs.chmod(path3, attr || 438, function() {
61622
+ self2.fs.chmod(path5, attr || 438, function() {
61623
61623
  callback(true);
61624
61624
  });
61625
61625
  }
@@ -61628,7 +61628,7 @@ var require_utils10 = __commonJS({
61628
61628
  });
61629
61629
  });
61630
61630
  };
61631
- Utils.prototype.findFiles = function(path3) {
61631
+ Utils.prototype.findFiles = function(path5) {
61632
61632
  const self2 = this;
61633
61633
  function findSync(dir, pattern, recursive) {
61634
61634
  if (typeof pattern === "boolean") {
@@ -61637,15 +61637,15 @@ var require_utils10 = __commonJS({
61637
61637
  }
61638
61638
  let files = [];
61639
61639
  self2.fs.readdirSync(dir).forEach(function(file) {
61640
- var path4 = pth.join(dir, file);
61641
- if (self2.fs.statSync(path4).isDirectory() && recursive) files = files.concat(findSync(path4, pattern, recursive));
61642
- if (!pattern || pattern.test(path4)) {
61643
- files.push(pth.normalize(path4) + (self2.fs.statSync(path4).isDirectory() ? self2.sep : ""));
61640
+ var path6 = pth.join(dir, file);
61641
+ if (self2.fs.statSync(path6).isDirectory() && recursive) files = files.concat(findSync(path6, pattern, recursive));
61642
+ if (!pattern || pattern.test(path6)) {
61643
+ files.push(pth.normalize(path6) + (self2.fs.statSync(path6).isDirectory() ? self2.sep : ""));
61644
61644
  }
61645
61645
  });
61646
61646
  return files;
61647
61647
  }
61648
- return findSync(path3, void 0, true);
61648
+ return findSync(path5, void 0, true);
61649
61649
  };
61650
61650
  Utils.prototype.getAttributes = function() {
61651
61651
  };
@@ -61674,18 +61674,18 @@ var require_utils10 = __commonJS({
61674
61674
  return "UNSUPPORTED (" + method + ")";
61675
61675
  }
61676
61676
  };
61677
- Utils.canonical = function(path3) {
61678
- if (!path3) return "";
61679
- var safeSuffix = pth.posix.normalize("/" + path3.split("\\").join("/"));
61677
+ Utils.canonical = function(path5) {
61678
+ if (!path5) return "";
61679
+ var safeSuffix = pth.posix.normalize("/" + path5.split("\\").join("/"));
61680
61680
  return pth.join(".", safeSuffix);
61681
61681
  };
61682
61682
  Utils.sanitize = function(prefix, name) {
61683
61683
  prefix = pth.resolve(pth.normalize(prefix));
61684
61684
  var parts = name.split("/");
61685
61685
  for (var i = 0, l = parts.length; i < l; i++) {
61686
- var path3 = pth.normalize(pth.join(prefix, parts.slice(i, l).join(pth.sep)));
61687
- if (path3.indexOf(prefix) === 0) {
61688
- return path3;
61686
+ var path5 = pth.normalize(pth.join(prefix, parts.slice(i, l).join(pth.sep)));
61687
+ if (path5.indexOf(prefix) === 0) {
61688
+ return path5;
61689
61689
  }
61690
61690
  }
61691
61691
  return pth.normalize(pth.join(prefix, pth.basename(name)));
@@ -61715,8 +61715,8 @@ var require_fattr = __commonJS({
61715
61715
  var fs6 = require_fileSystem().require();
61716
61716
  var pth = require("path");
61717
61717
  fs6.existsSync = fs6.existsSync || pth.existsSync;
61718
- module2.exports = function(path3) {
61719
- var _path = path3 || "", _obj = newAttr(), _stat = null;
61718
+ module2.exports = function(path5) {
61719
+ var _path = path5 || "", _obj = newAttr(), _stat = null;
61720
61720
  function newAttr() {
61721
61721
  return {
61722
61722
  directory: false,
@@ -66449,8 +66449,8 @@ var require_utils11 = __commonJS({
66449
66449
  var result = transform[inputType][outputType](input);
66450
66450
  return result;
66451
66451
  };
66452
- exports2.resolve = function(path3) {
66453
- var parts = path3.split("/");
66452
+ exports2.resolve = function(path5) {
66453
+ var parts = path5.split("/");
66454
66454
  var result = [];
66455
66455
  for (var index = 0; index < parts.length; index++) {
66456
66456
  var part = parts[index];
@@ -72280,18 +72280,18 @@ var require_object = __commonJS({
72280
72280
  var object = new ZipObject(name, zipObjectContent, o2);
72281
72281
  this.files[name] = object;
72282
72282
  };
72283
- var parentFolder = function(path3) {
72284
- if (path3.slice(-1) === "/") {
72285
- path3 = path3.substring(0, path3.length - 1);
72283
+ var parentFolder = function(path5) {
72284
+ if (path5.slice(-1) === "/") {
72285
+ path5 = path5.substring(0, path5.length - 1);
72286
72286
  }
72287
- var lastSlash = path3.lastIndexOf("/");
72288
- return lastSlash > 0 ? path3.substring(0, lastSlash) : "";
72287
+ var lastSlash = path5.lastIndexOf("/");
72288
+ return lastSlash > 0 ? path5.substring(0, lastSlash) : "";
72289
72289
  };
72290
- var forceTrailingSlash = function(path3) {
72291
- if (path3.slice(-1) !== "/") {
72292
- path3 += "/";
72290
+ var forceTrailingSlash = function(path5) {
72291
+ if (path5.slice(-1) !== "/") {
72292
+ path5 += "/";
72293
72293
  }
72294
- return path3;
72294
+ return path5;
72295
72295
  };
72296
72296
  var folderAdd = function(name, createFolders) {
72297
72297
  createFolders = typeof createFolders !== "undefined" ? createFolders : defaults.createFolders;
@@ -76678,7 +76678,7 @@ var require_dist13 = __commonJS({
76678
76678
  var util_1 = require("util");
76679
76679
  var { CRC32Stream } = require_lib13();
76680
76680
  var pipeline = (0, util_1.promisify)(Stream.pipeline);
76681
- var checksumFile = (path3, algorithm2, encoding) => checksum(FS.createReadStream(path3), algorithm2, encoding);
76681
+ var checksumFile = (path5, algorithm2, encoding) => checksum(FS.createReadStream(path5), algorithm2, encoding);
76682
76682
  exports2.checksumFile = checksumFile;
76683
76683
  async function checksum(input, algorithm2, encoding = "hex") {
76684
76684
  const stream = toReadableStream(input);
@@ -79549,7 +79549,7 @@ var require_utils12 = __commonJS({
79549
79549
  "use strict";
79550
79550
  var fs6 = require("fs");
79551
79551
  var ini = require_ini();
79552
- var path3 = require("path");
79552
+ var path5 = require("path");
79553
79553
  var stripJsonComments = require_strip_json_comments();
79554
79554
  var parse = exports2.parse = function(content) {
79555
79555
  if (/^\s*{/.test(content))
@@ -79563,7 +79563,7 @@ var require_utils12 = __commonJS({
79563
79563
  for (var i in args)
79564
79564
  if ("string" !== typeof args[i])
79565
79565
  return;
79566
- var file2 = path3.join.apply(null, args);
79566
+ var file2 = path5.join.apply(null, args);
79567
79567
  var content;
79568
79568
  try {
79569
79569
  return fs6.readFileSync(file2, "utf-8");
@@ -79601,15 +79601,15 @@ var require_utils12 = __commonJS({
79601
79601
  return obj;
79602
79602
  };
79603
79603
  var find = exports2.find = function() {
79604
- var rel = path3.join.apply(null, [].slice.call(arguments));
79604
+ var rel = path5.join.apply(null, [].slice.call(arguments));
79605
79605
  function find2(start, rel2) {
79606
- var file2 = path3.join(start, rel2);
79606
+ var file2 = path5.join(start, rel2);
79607
79607
  try {
79608
79608
  fs6.statSync(file2);
79609
79609
  return file2;
79610
79610
  } catch (err) {
79611
- if (path3.dirname(start) !== start)
79612
- return find2(path3.dirname(start), rel2);
79611
+ if (path5.dirname(start) !== start)
79612
+ return find2(path5.dirname(start), rel2);
79613
79613
  }
79614
79614
  }
79615
79615
  return find2(process.cwd(), rel);
@@ -80039,14 +80039,14 @@ var require_polyfills3 = __commonJS({
80039
80039
  fs6.fstatSync = statFixSync(fs6.fstatSync);
80040
80040
  fs6.lstatSync = statFixSync(fs6.lstatSync);
80041
80041
  if (fs6.chmod && !fs6.lchmod) {
80042
- fs6.lchmod = function(path3, mode, cb) {
80042
+ fs6.lchmod = function(path5, mode, cb) {
80043
80043
  if (cb) process.nextTick(cb);
80044
80044
  };
80045
80045
  fs6.lchmodSync = function() {
80046
80046
  };
80047
80047
  }
80048
80048
  if (fs6.chown && !fs6.lchown) {
80049
- fs6.lchown = function(path3, uid, gid, cb) {
80049
+ fs6.lchown = function(path5, uid, gid, cb) {
80050
80050
  if (cb) process.nextTick(cb);
80051
80051
  };
80052
80052
  fs6.lchownSync = function() {
@@ -80113,9 +80113,9 @@ var require_polyfills3 = __commonJS({
80113
80113
  };
80114
80114
  }(fs6.readSync);
80115
80115
  function patchLchmod(fs7) {
80116
- fs7.lchmod = function(path3, mode, callback) {
80116
+ fs7.lchmod = function(path5, mode, callback) {
80117
80117
  fs7.open(
80118
- path3,
80118
+ path5,
80119
80119
  constants2.O_WRONLY | constants2.O_SYMLINK,
80120
80120
  mode,
80121
80121
  function(err, fd) {
@@ -80131,8 +80131,8 @@ var require_polyfills3 = __commonJS({
80131
80131
  }
80132
80132
  );
80133
80133
  };
80134
- fs7.lchmodSync = function(path3, mode) {
80135
- var fd = fs7.openSync(path3, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
80134
+ fs7.lchmodSync = function(path5, mode) {
80135
+ var fd = fs7.openSync(path5, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
80136
80136
  var threw = true;
80137
80137
  var ret;
80138
80138
  try {
@@ -80153,8 +80153,8 @@ var require_polyfills3 = __commonJS({
80153
80153
  }
80154
80154
  function patchLutimes(fs7) {
80155
80155
  if (constants2.hasOwnProperty("O_SYMLINK") && fs7.futimes) {
80156
- fs7.lutimes = function(path3, at, mt, cb) {
80157
- fs7.open(path3, constants2.O_SYMLINK, function(er, fd) {
80156
+ fs7.lutimes = function(path5, at, mt, cb) {
80157
+ fs7.open(path5, constants2.O_SYMLINK, function(er, fd) {
80158
80158
  if (er) {
80159
80159
  if (cb) cb(er);
80160
80160
  return;
@@ -80166,8 +80166,8 @@ var require_polyfills3 = __commonJS({
80166
80166
  });
80167
80167
  });
80168
80168
  };
80169
- fs7.lutimesSync = function(path3, at, mt) {
80170
- var fd = fs7.openSync(path3, constants2.O_SYMLINK);
80169
+ fs7.lutimesSync = function(path5, at, mt) {
80170
+ var fd = fs7.openSync(path5, constants2.O_SYMLINK);
80171
80171
  var ret;
80172
80172
  var threw = true;
80173
80173
  try {
@@ -80285,11 +80285,11 @@ var require_legacy_streams2 = __commonJS({
80285
80285
  ReadStream,
80286
80286
  WriteStream
80287
80287
  };
80288
- function ReadStream(path3, options) {
80289
- if (!(this instanceof ReadStream)) return new ReadStream(path3, options);
80288
+ function ReadStream(path5, options) {
80289
+ if (!(this instanceof ReadStream)) return new ReadStream(path5, options);
80290
80290
  Stream.call(this);
80291
80291
  var self2 = this;
80292
- this.path = path3;
80292
+ this.path = path5;
80293
80293
  this.fd = null;
80294
80294
  this.readable = true;
80295
80295
  this.paused = false;
@@ -80334,10 +80334,10 @@ var require_legacy_streams2 = __commonJS({
80334
80334
  self2._read();
80335
80335
  });
80336
80336
  }
80337
- function WriteStream(path3, options) {
80338
- if (!(this instanceof WriteStream)) return new WriteStream(path3, options);
80337
+ function WriteStream(path5, options) {
80338
+ if (!(this instanceof WriteStream)) return new WriteStream(path5, options);
80339
80339
  Stream.call(this);
80340
- this.path = path3;
80340
+ this.path = path5;
80341
80341
  this.fd = null;
80342
80342
  this.writable = true;
80343
80343
  this.flags = "w";
@@ -80480,14 +80480,14 @@ var require_graceful_fs2 = __commonJS({
80480
80480
  fs7.createWriteStream = createWriteStream;
80481
80481
  var fs$readFile = fs7.readFile;
80482
80482
  fs7.readFile = readFile;
80483
- function readFile(path3, options, cb) {
80483
+ function readFile(path5, options, cb) {
80484
80484
  if (typeof options === "function")
80485
80485
  cb = options, options = null;
80486
- return go$readFile(path3, options, cb);
80487
- function go$readFile(path4, options2, cb2, startTime) {
80488
- return fs$readFile(path4, options2, function(err) {
80486
+ return go$readFile(path5, options, cb);
80487
+ function go$readFile(path6, options2, cb2, startTime) {
80488
+ return fs$readFile(path6, options2, function(err) {
80489
80489
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
80490
- enqueue([go$readFile, [path4, options2, cb2], err, startTime || Date.now(), Date.now()]);
80490
+ enqueue([go$readFile, [path6, options2, cb2], err, startTime || Date.now(), Date.now()]);
80491
80491
  else {
80492
80492
  if (typeof cb2 === "function")
80493
80493
  cb2.apply(this, arguments);
@@ -80497,14 +80497,14 @@ var require_graceful_fs2 = __commonJS({
80497
80497
  }
80498
80498
  var fs$writeFile = fs7.writeFile;
80499
80499
  fs7.writeFile = writeFile;
80500
- function writeFile(path3, data, options, cb) {
80500
+ function writeFile(path5, data, options, cb) {
80501
80501
  if (typeof options === "function")
80502
80502
  cb = options, options = null;
80503
- return go$writeFile(path3, data, options, cb);
80504
- function go$writeFile(path4, data2, options2, cb2, startTime) {
80505
- return fs$writeFile(path4, data2, options2, function(err) {
80503
+ return go$writeFile(path5, data, options, cb);
80504
+ function go$writeFile(path6, data2, options2, cb2, startTime) {
80505
+ return fs$writeFile(path6, data2, options2, function(err) {
80506
80506
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
80507
- enqueue([go$writeFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
80507
+ enqueue([go$writeFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
80508
80508
  else {
80509
80509
  if (typeof cb2 === "function")
80510
80510
  cb2.apply(this, arguments);
@@ -80515,14 +80515,14 @@ var require_graceful_fs2 = __commonJS({
80515
80515
  var fs$appendFile = fs7.appendFile;
80516
80516
  if (fs$appendFile)
80517
80517
  fs7.appendFile = appendFile;
80518
- function appendFile(path3, data, options, cb) {
80518
+ function appendFile(path5, data, options, cb) {
80519
80519
  if (typeof options === "function")
80520
80520
  cb = options, options = null;
80521
- return go$appendFile(path3, data, options, cb);
80522
- function go$appendFile(path4, data2, options2, cb2, startTime) {
80523
- return fs$appendFile(path4, data2, options2, function(err) {
80521
+ return go$appendFile(path5, data, options, cb);
80522
+ function go$appendFile(path6, data2, options2, cb2, startTime) {
80523
+ return fs$appendFile(path6, data2, options2, function(err) {
80524
80524
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
80525
- enqueue([go$appendFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
80525
+ enqueue([go$appendFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
80526
80526
  else {
80527
80527
  if (typeof cb2 === "function")
80528
80528
  cb2.apply(this, arguments);
@@ -80553,31 +80553,31 @@ var require_graceful_fs2 = __commonJS({
80553
80553
  var fs$readdir = fs7.readdir;
80554
80554
  fs7.readdir = readdir;
80555
80555
  var noReaddirOptionVersions = /^v[0-5]\./;
80556
- function readdir(path3, options, cb) {
80556
+ function readdir(path5, options, cb) {
80557
80557
  if (typeof options === "function")
80558
80558
  cb = options, options = null;
80559
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path4, options2, cb2, startTime) {
80560
- return fs$readdir(path4, fs$readdirCallback(
80561
- path4,
80559
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path6, options2, cb2, startTime) {
80560
+ return fs$readdir(path6, fs$readdirCallback(
80561
+ path6,
80562
80562
  options2,
80563
80563
  cb2,
80564
80564
  startTime
80565
80565
  ));
80566
- } : function go$readdir2(path4, options2, cb2, startTime) {
80567
- return fs$readdir(path4, options2, fs$readdirCallback(
80568
- path4,
80566
+ } : function go$readdir2(path6, options2, cb2, startTime) {
80567
+ return fs$readdir(path6, options2, fs$readdirCallback(
80568
+ path6,
80569
80569
  options2,
80570
80570
  cb2,
80571
80571
  startTime
80572
80572
  ));
80573
80573
  };
80574
- return go$readdir(path3, options, cb);
80575
- function fs$readdirCallback(path4, options2, cb2, startTime) {
80574
+ return go$readdir(path5, options, cb);
80575
+ function fs$readdirCallback(path6, options2, cb2, startTime) {
80576
80576
  return function(err, files) {
80577
80577
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
80578
80578
  enqueue([
80579
80579
  go$readdir,
80580
- [path4, options2, cb2],
80580
+ [path6, options2, cb2],
80581
80581
  err,
80582
80582
  startTime || Date.now(),
80583
80583
  Date.now()
@@ -80648,7 +80648,7 @@ var require_graceful_fs2 = __commonJS({
80648
80648
  enumerable: true,
80649
80649
  configurable: true
80650
80650
  });
80651
- function ReadStream(path3, options) {
80651
+ function ReadStream(path5, options) {
80652
80652
  if (this instanceof ReadStream)
80653
80653
  return fs$ReadStream.apply(this, arguments), this;
80654
80654
  else
@@ -80668,7 +80668,7 @@ var require_graceful_fs2 = __commonJS({
80668
80668
  }
80669
80669
  });
80670
80670
  }
80671
- function WriteStream(path3, options) {
80671
+ function WriteStream(path5, options) {
80672
80672
  if (this instanceof WriteStream)
80673
80673
  return fs$WriteStream.apply(this, arguments), this;
80674
80674
  else
@@ -80686,22 +80686,22 @@ var require_graceful_fs2 = __commonJS({
80686
80686
  }
80687
80687
  });
80688
80688
  }
80689
- function createReadStream(path3, options) {
80690
- return new fs7.ReadStream(path3, options);
80689
+ function createReadStream(path5, options) {
80690
+ return new fs7.ReadStream(path5, options);
80691
80691
  }
80692
- function createWriteStream(path3, options) {
80693
- return new fs7.WriteStream(path3, options);
80692
+ function createWriteStream(path5, options) {
80693
+ return new fs7.WriteStream(path5, options);
80694
80694
  }
80695
80695
  var fs$open = fs7.open;
80696
80696
  fs7.open = open2;
80697
- function open2(path3, flags, mode, cb) {
80697
+ function open2(path5, flags, mode, cb) {
80698
80698
  if (typeof mode === "function")
80699
80699
  cb = mode, mode = null;
80700
- return go$open(path3, flags, mode, cb);
80701
- function go$open(path4, flags2, mode2, cb2, startTime) {
80702
- return fs$open(path4, flags2, mode2, function(err, fd) {
80700
+ return go$open(path5, flags, mode, cb);
80701
+ function go$open(path6, flags2, mode2, cb2, startTime) {
80702
+ return fs$open(path6, flags2, mode2, function(err, fd) {
80703
80703
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
80704
- enqueue([go$open, [path4, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
80704
+ enqueue([go$open, [path6, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
80705
80705
  else {
80706
80706
  if (typeof cb2 === "function")
80707
80707
  cb2.apply(this, arguments);
@@ -81076,7 +81076,7 @@ var require_ini2 = __commonJS({
81076
81076
  var require_config_chain = __commonJS({
81077
81077
  "node_modules/config-chain/index.js"(exports2, module2) {
81078
81078
  var ProtoList = require_proto_list();
81079
- var path3 = require("path");
81079
+ var path5 = require("path");
81080
81080
  var fs6 = require("fs");
81081
81081
  var ini = require_ini2();
81082
81082
  var EE = require("events").EventEmitter;
@@ -81091,15 +81091,15 @@ var require_config_chain = __commonJS({
81091
81091
  return conf;
81092
81092
  };
81093
81093
  var find = exports2.find = function() {
81094
- var rel = path3.join.apply(null, [].slice.call(arguments));
81094
+ var rel = path5.join.apply(null, [].slice.call(arguments));
81095
81095
  function find2(start, rel2) {
81096
- var file = path3.join(start, rel2);
81096
+ var file = path5.join(start, rel2);
81097
81097
  try {
81098
81098
  fs6.statSync(file);
81099
81099
  return file;
81100
81100
  } catch (err) {
81101
- if (path3.dirname(start) !== start)
81102
- return find2(path3.dirname(start), rel2);
81101
+ if (path5.dirname(start) !== start)
81102
+ return find2(path5.dirname(start), rel2);
81103
81103
  }
81104
81104
  }
81105
81105
  return find2(__dirname, rel);
@@ -81130,7 +81130,7 @@ var require_config_chain = __commonJS({
81130
81130
  var args = [].slice.call(arguments).filter(function(arg) {
81131
81131
  return arg != null;
81132
81132
  });
81133
- var file = path3.join.apply(null, args);
81133
+ var file = path5.join.apply(null, args);
81134
81134
  var content;
81135
81135
  try {
81136
81136
  content = fs6.readFileSync(file, "utf-8");
@@ -81392,14 +81392,14 @@ var require_util5 = __commonJS({
81392
81392
  "node_modules/@pnpm/npm-conf/lib/util.js"(exports2) {
81393
81393
  "use strict";
81394
81394
  var fs6 = require("fs");
81395
- var path3 = require("path");
81395
+ var path5 = require("path");
81396
81396
  var { envReplace } = require_dist16();
81397
81397
  var parseField = (types3, field, key2) => {
81398
81398
  if (typeof field !== "string") {
81399
81399
  return field;
81400
81400
  }
81401
81401
  const typeList = [].concat(types3[key2]);
81402
- const isPath = typeList.indexOf(path3) !== -1;
81402
+ const isPath = typeList.indexOf(path5) !== -1;
81403
81403
  const isBool = typeList.indexOf(Boolean) !== -1;
81404
81404
  const isString = typeList.indexOf(String) !== -1;
81405
81405
  const isNumber = typeList.indexOf(Number) !== -1;
@@ -81432,9 +81432,9 @@ var require_util5 = __commonJS({
81432
81432
  if (isPath) {
81433
81433
  const regex = process.platform === "win32" ? /^~(\/|\\)/ : /^~\//;
81434
81434
  if (regex.test(field) && process.env.HOME) {
81435
- field = path3.resolve(process.env.HOME, field.substr(2));
81435
+ field = path5.resolve(process.env.HOME, field.substr(2));
81436
81436
  }
81437
- field = path3.resolve(field);
81437
+ field = path5.resolve(field);
81438
81438
  }
81439
81439
  if (isNumber && !isNaN(field)) {
81440
81440
  field = Number(field);
@@ -81442,10 +81442,10 @@ var require_util5 = __commonJS({
81442
81442
  return field;
81443
81443
  };
81444
81444
  var findPrefix = (name) => {
81445
- name = path3.resolve(name);
81445
+ name = path5.resolve(name);
81446
81446
  let walkedUp = false;
81447
- while (path3.basename(name) === "node_modules") {
81448
- name = path3.dirname(name);
81447
+ while (path5.basename(name) === "node_modules") {
81448
+ name = path5.dirname(name);
81449
81449
  walkedUp = true;
81450
81450
  }
81451
81451
  if (walkedUp) {
@@ -81461,7 +81461,7 @@ var require_util5 = __commonJS({
81461
81461
  if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml")) {
81462
81462
  return name2;
81463
81463
  }
81464
- const dirname = path3.dirname(name2);
81464
+ const dirname = path5.dirname(name2);
81465
81465
  if (dirname === name2) {
81466
81466
  return original;
81467
81467
  }
@@ -81488,7 +81488,7 @@ var require_util5 = __commonJS({
81488
81488
  var require_types5 = __commonJS({
81489
81489
  "node_modules/@pnpm/npm-conf/lib/types.js"(exports2) {
81490
81490
  "use strict";
81491
- var path3 = require("path");
81491
+ var path5 = require("path");
81492
81492
  var Stream = require("stream").Stream;
81493
81493
  var url = require("url");
81494
81494
  var Umask = () => {
@@ -81506,8 +81506,8 @@ var require_types5 = __commonJS({
81506
81506
  "bin-links": Boolean,
81507
81507
  browser: [null, String],
81508
81508
  ca: [null, String, Array],
81509
- cafile: path3,
81510
- cache: path3,
81509
+ cafile: path5,
81510
+ cache: path5,
81511
81511
  "cache-lock-stale": Number,
81512
81512
  "cache-lock-retries": Number,
81513
81513
  "cache-lock-wait": Number,
@@ -81531,7 +81531,7 @@ var require_types5 = __commonJS({
81531
81531
  "git-tag-version": Boolean,
81532
81532
  "commit-hooks": Boolean,
81533
81533
  global: Boolean,
81534
- globalconfig: path3,
81534
+ globalconfig: path5,
81535
81535
  "global-style": Boolean,
81536
81536
  group: [Number, String],
81537
81537
  "https-proxy": [null, url],
@@ -81541,7 +81541,7 @@ var require_types5 = __commonJS({
81541
81541
  "if-present": Boolean,
81542
81542
  "ignore-prepublish": Boolean,
81543
81543
  "ignore-scripts": Boolean,
81544
- "init-module": path3,
81544
+ "init-module": path5,
81545
81545
  "init-author-name": String,
81546
81546
  "init-author-email": String,
81547
81547
  "init-author-url": ["", url],
@@ -81574,7 +81574,7 @@ var require_types5 = __commonJS({
81574
81574
  parseable: Boolean,
81575
81575
  "prefer-offline": Boolean,
81576
81576
  "prefer-online": Boolean,
81577
- prefix: path3,
81577
+ prefix: path5,
81578
81578
  production: Boolean,
81579
81579
  progress: Boolean,
81580
81580
  proxy: [null, false, url],
@@ -81607,12 +81607,12 @@ var require_types5 = __commonJS({
81607
81607
  "strict-ssl": Boolean,
81608
81608
  tag: String,
81609
81609
  timing: Boolean,
81610
- tmp: path3,
81610
+ tmp: path5,
81611
81611
  unicode: Boolean,
81612
81612
  "unsafe-perm": Boolean,
81613
81613
  usage: Boolean,
81614
81614
  user: [Number, String],
81615
- userconfig: path3,
81615
+ userconfig: path5,
81616
81616
  umask: Umask,
81617
81617
  version: Boolean,
81618
81618
  "tag-version-prefix": String,
@@ -81629,7 +81629,7 @@ var require_conf = __commonJS({
81629
81629
  "use strict";
81630
81630
  var { readCAFileSync } = require_dist15();
81631
81631
  var fs6 = require("fs");
81632
- var path3 = require("path");
81632
+ var path5 = require("path");
81633
81633
  var { ConfigChain } = require_config_chain();
81634
81634
  var envKeyToSetting = require_envKeyToSetting();
81635
81635
  var util = require_util5();
@@ -81701,7 +81701,7 @@ var require_conf = __commonJS({
81701
81701
  this.set("prefix", prefix);
81702
81702
  },
81703
81703
  get: () => {
81704
- return path3.resolve(this.get("prefix"));
81704
+ return path5.resolve(this.get("prefix"));
81705
81705
  }
81706
81706
  });
81707
81707
  let p2;
@@ -81715,7 +81715,7 @@ var require_conf = __commonJS({
81715
81715
  }
81716
81716
  });
81717
81717
  if (Object.prototype.hasOwnProperty.call(cli, "prefix")) {
81718
- p2 = path3.resolve(cli.prefix);
81718
+ p2 = path5.resolve(cli.prefix);
81719
81719
  } else {
81720
81720
  try {
81721
81721
  const prefix = util.findPrefix(process.cwd());
@@ -81746,7 +81746,7 @@ var require_conf = __commonJS({
81746
81746
  defConf.user = Number(process.env.SUDO_UID);
81747
81747
  return;
81748
81748
  }
81749
- const prefix = path3.resolve(this.get("prefix"));
81749
+ const prefix = path5.resolve(this.get("prefix"));
81750
81750
  try {
81751
81751
  const stats = fs6.statSync(prefix);
81752
81752
  defConf.user = stats.uid;
@@ -81767,7 +81767,7 @@ var require_defaults3 = __commonJS({
81767
81767
  "node_modules/@pnpm/npm-conf/lib/defaults.js"(exports2) {
81768
81768
  "use strict";
81769
81769
  var os3 = require("os");
81770
- var path3 = require("path");
81770
+ var path5 = require("path");
81771
81771
  var temp = os3.tmpdir();
81772
81772
  var uidOrPid = process.getuid ? process.getuid() : process.pid;
81773
81773
  var hasUnicode = () => true;
@@ -81783,11 +81783,11 @@ var require_defaults3 = __commonJS({
81783
81783
  if (home) {
81784
81784
  process.env.HOME = home;
81785
81785
  } else {
81786
- home = path3.resolve(temp, "npm-" + uidOrPid);
81786
+ home = path5.resolve(temp, "npm-" + uidOrPid);
81787
81787
  }
81788
81788
  var cacheExtra = process.platform === "win32" ? "npm-cache" : ".npm";
81789
81789
  var cacheRoot = process.platform === "win32" && process.env.APPDATA || home;
81790
- var cache = path3.resolve(cacheRoot, cacheExtra);
81790
+ var cache = path5.resolve(cacheRoot, cacheExtra);
81791
81791
  var defaults;
81792
81792
  var globalPrefix;
81793
81793
  Object.defineProperty(exports2, "defaults", {
@@ -81796,11 +81796,11 @@ var require_defaults3 = __commonJS({
81796
81796
  if (process.env.PREFIX) {
81797
81797
  globalPrefix = process.env.PREFIX;
81798
81798
  } else if (process.platform === "win32") {
81799
- globalPrefix = path3.dirname(process.execPath);
81799
+ globalPrefix = path5.dirname(process.execPath);
81800
81800
  } else {
81801
- globalPrefix = path3.dirname(path3.dirname(process.execPath));
81801
+ globalPrefix = path5.dirname(path5.dirname(process.execPath));
81802
81802
  if (process.env.DESTDIR) {
81803
- globalPrefix = path3.join(process.env.DESTDIR, globalPrefix);
81803
+ globalPrefix = path5.join(process.env.DESTDIR, globalPrefix);
81804
81804
  }
81805
81805
  }
81806
81806
  defaults = {
@@ -81838,7 +81838,7 @@ var require_defaults3 = __commonJS({
81838
81838
  "git-tag-version": true,
81839
81839
  "commit-hooks": true,
81840
81840
  global: false,
81841
- globalconfig: path3.resolve(globalPrefix, "etc", "npmrc"),
81841
+ globalconfig: path5.resolve(globalPrefix, "etc", "npmrc"),
81842
81842
  "global-style": false,
81843
81843
  group: process.platform === "win32" ? 0 : process.env.SUDO_GID || process.getgid && process.getgid(),
81844
81844
  "ham-it-up": false,
@@ -81846,7 +81846,7 @@ var require_defaults3 = __commonJS({
81846
81846
  "if-present": false,
81847
81847
  "ignore-prepublish": false,
81848
81848
  "ignore-scripts": false,
81849
- "init-module": path3.resolve(home, ".npm-init.js"),
81849
+ "init-module": path5.resolve(home, ".npm-init.js"),
81850
81850
  "init-author-name": "",
81851
81851
  "init-author-email": "",
81852
81852
  "init-author-url": "",
@@ -81917,7 +81917,7 @@ var require_defaults3 = __commonJS({
81917
81917
  "unsafe-perm": process.platform === "win32" || process.platform === "cygwin" || !(process.getuid && process.setuid && process.getgid && process.setgid) || process.getuid() !== 0,
81918
81918
  usage: false,
81919
81919
  user: process.platform === "win32" ? 0 : "nobody",
81920
- userconfig: path3.resolve(home, ".npmrc"),
81920
+ userconfig: path5.resolve(home, ".npmrc"),
81921
81921
  umask: process.umask ? process.umask() : umask.fromString("022"),
81922
81922
  version: false,
81923
81923
  versions: false,
@@ -81934,7 +81934,7 @@ var require_defaults3 = __commonJS({
81934
81934
  var require_npm_conf = __commonJS({
81935
81935
  "node_modules/@pnpm/npm-conf/index.js"(exports2, module2) {
81936
81936
  "use strict";
81937
- var path3 = require("path");
81937
+ var path5 = require("path");
81938
81938
  var Conf = require_conf();
81939
81939
  var _defaults = require_defaults3();
81940
81940
  module2.exports = (opts, types3, defaults) => {
@@ -81951,12 +81951,12 @@ var require_npm_conf = __commonJS({
81951
81951
  failedToLoadBuiltInConfig = true;
81952
81952
  }
81953
81953
  if (npmPath) {
81954
- warnings.push(conf.addFile(path3.resolve(path3.dirname(npmPath), "..", "npmrc"), "builtin"));
81954
+ warnings.push(conf.addFile(path5.resolve(path5.dirname(npmPath), "..", "npmrc"), "builtin"));
81955
81955
  }
81956
81956
  }
81957
81957
  conf.addEnv();
81958
81958
  conf.loadPrefix();
81959
- const projectConf = path3.resolve(conf.localPrefix, ".npmrc");
81959
+ const projectConf = path5.resolve(conf.localPrefix, ".npmrc");
81960
81960
  const userConf = conf.get("userconfig");
81961
81961
  if (!conf.get("global") && projectConf !== userConf) {
81962
81962
  warnings.push(conf.addFile(projectConf, "project"));
@@ -81964,14 +81964,14 @@ var require_npm_conf = __commonJS({
81964
81964
  conf.add({}, "project");
81965
81965
  }
81966
81966
  if (conf.get("workspace-prefix") && conf.get("workspace-prefix") !== projectConf) {
81967
- const workspaceConf = path3.resolve(conf.get("workspace-prefix"), ".npmrc");
81967
+ const workspaceConf = path5.resolve(conf.get("workspace-prefix"), ".npmrc");
81968
81968
  warnings.push(conf.addFile(workspaceConf, "workspace"));
81969
81969
  }
81970
81970
  warnings.push(conf.addFile(conf.get("userconfig"), "user"));
81971
81971
  if (conf.get("prefix")) {
81972
- const etc = path3.resolve(conf.get("prefix"), "etc");
81973
- conf.root.globalconfig = path3.resolve(etc, "npmrc");
81974
- conf.root.globalignorefile = path3.resolve(etc, "npmignore");
81972
+ const etc = path5.resolve(conf.get("prefix"), "etc");
81973
+ conf.root.globalconfig = path5.resolve(etc, "npmrc");
81974
+ conf.root.globalignorefile = path5.resolve(etc, "npmignore");
81975
81975
  }
81976
81976
  warnings.push(conf.addFile(conf.get("globalconfig"), "global"));
81977
81977
  conf.loadUser();
@@ -82048,8 +82048,8 @@ var require_registry_auth_token = __commonJS({
82048
82048
  const token = replaceEnvironmentVariable(npmrc.get("_auth"));
82049
82049
  return { token, type: "Basic" };
82050
82050
  }
82051
- function normalizePath(path3) {
82052
- return path3[path3.length - 1] === "/" ? path3 : path3 + "/";
82051
+ function normalizePath(path5) {
82052
+ return path5[path5.length - 1] === "/" ? path5 : path5 + "/";
82053
82053
  }
82054
82054
  function getAuthInfoForUrl(regUrl, npmrc) {
82055
82055
  const bearerAuth = getBearerToken(npmrc.get(regUrl + tokenKey) || npmrc.get(regUrl + "/" + tokenKey));
@@ -84613,7 +84613,7 @@ var require_tmp = __commonJS({
84613
84613
  "node_modules/tmp/lib/tmp.js"(exports2, module2) {
84614
84614
  var fs6 = require("fs");
84615
84615
  var os3 = require("os");
84616
- var path3 = require("path");
84616
+ var path5 = require("path");
84617
84617
  var crypto2 = require("crypto");
84618
84618
  var _c = { fs: fs6.constants, os: os3.constants };
84619
84619
  var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
@@ -84827,9 +84827,9 @@ var require_tmp = __commonJS({
84827
84827
  function _generateTmpName(opts) {
84828
84828
  const tmpDir = opts.tmpdir;
84829
84829
  if (!_isUndefined(opts.name))
84830
- return path3.join(tmpDir, opts.dir, opts.name);
84830
+ return path5.join(tmpDir, opts.dir, opts.name);
84831
84831
  if (!_isUndefined(opts.template))
84832
- return path3.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
84832
+ return path5.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
84833
84833
  const name = [
84834
84834
  opts.prefix ? opts.prefix : "tmp",
84835
84835
  "-",
@@ -84838,7 +84838,7 @@ var require_tmp = __commonJS({
84838
84838
  _randomChars(12),
84839
84839
  opts.postfix ? "-" + opts.postfix : ""
84840
84840
  ].join("");
84841
- return path3.join(tmpDir, opts.dir, name);
84841
+ return path5.join(tmpDir, opts.dir, name);
84842
84842
  }
84843
84843
  function _assertAndSanitizeOptions(options) {
84844
84844
  options.tmpdir = _getTmpDir(options);
@@ -84859,29 +84859,29 @@ var require_tmp = __commonJS({
84859
84859
  options.detachDescriptor = !!options.detachDescriptor;
84860
84860
  options.discardDescriptor = !!options.discardDescriptor;
84861
84861
  options.unsafeCleanup = !!options.unsafeCleanup;
84862
- options.dir = _isUndefined(options.dir) ? "" : path3.relative(tmpDir, _resolvePath(options.dir, tmpDir));
84863
- options.template = _isUndefined(options.template) ? void 0 : path3.relative(tmpDir, _resolvePath(options.template, tmpDir));
84864
- options.template = _isBlank(options.template) ? void 0 : path3.relative(options.dir, options.template);
84862
+ options.dir = _isUndefined(options.dir) ? "" : path5.relative(tmpDir, _resolvePath(options.dir, tmpDir));
84863
+ options.template = _isUndefined(options.template) ? void 0 : path5.relative(tmpDir, _resolvePath(options.template, tmpDir));
84864
+ options.template = _isBlank(options.template) ? void 0 : path5.relative(options.dir, options.template);
84865
84865
  options.name = _isUndefined(options.name) ? void 0 : options.name;
84866
84866
  options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
84867
84867
  options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
84868
84868
  }
84869
84869
  function _resolvePath(name, tmpDir) {
84870
84870
  if (name.startsWith(tmpDir)) {
84871
- return path3.resolve(name);
84871
+ return path5.resolve(name);
84872
84872
  } else {
84873
- return path3.resolve(path3.join(tmpDir, name));
84873
+ return path5.resolve(path5.join(tmpDir, name));
84874
84874
  }
84875
84875
  }
84876
84876
  function _assertIsRelative(name, option, tmpDir) {
84877
84877
  if (option === "name") {
84878
- if (path3.isAbsolute(name))
84878
+ if (path5.isAbsolute(name))
84879
84879
  throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
84880
- let basename = path3.basename(name);
84880
+ let basename = path5.basename(name);
84881
84881
  if (basename === ".." || basename === "." || basename !== name)
84882
84882
  throw new Error(`${option} option must not contain a path, found "${name}".`);
84883
84883
  } else {
84884
- if (path3.isAbsolute(name) && !name.startsWith(tmpDir)) {
84884
+ if (path5.isAbsolute(name) && !name.startsWith(tmpDir)) {
84885
84885
  throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
84886
84886
  }
84887
84887
  let resolvedPath = _resolvePath(name, tmpDir);
@@ -84902,7 +84902,7 @@ var require_tmp = __commonJS({
84902
84902
  _gracefulCleanup = true;
84903
84903
  }
84904
84904
  function _getTmpDir(options) {
84905
- return path3.resolve(options && options.tmpdir || os3.tmpdir());
84905
+ return path5.resolve(options && options.tmpdir || os3.tmpdir());
84906
84906
  }
84907
84907
  process.addListener(EXIT, _garbageCollector);
84908
84908
  Object.defineProperty(module2.exports, "tmpdir", {
@@ -86219,7 +86219,7 @@ var {
86219
86219
  // package.json
86220
86220
  var package_default = {
86221
86221
  name: "@capgo/cli",
86222
- version: "4.12.6",
86222
+ version: "4.12.7",
86223
86223
  description: "A CLI to upload to capgo servers",
86224
86224
  author: "github.com/riderx",
86225
86225
  license: "Apache 2.0",
@@ -86803,7 +86803,7 @@ var de = () => {
86803
86803
  // src/utils.ts
86804
86804
  var import_node_fs4 = require("node:fs");
86805
86805
  var import_node_os2 = require("node:os");
86806
- var import_node_path2 = require("node:path");
86806
+ var import_node_path2 = __toESM(require("node:path"));
86807
86807
  var import_node_process8 = __toESM(require("node:process"));
86808
86808
  var import_config = __toESM(require_config());
86809
86809
  var import_supabase_js = __toESM(require_main6());
@@ -87344,11 +87344,11 @@ var import_find_root = __toESM(require_manypkg_find_root_cjs());
87344
87344
 
87345
87345
  // node_modules/@capgo/find-package-manager/main.js
87346
87346
  var import_fs = require("fs");
87347
- var findPackageManagerType = (path3 = ".", defaultPackageManager = "unknown") => {
87348
- const bunPath = `${path3}/bun.lockb`;
87349
- const pnpmPath = `${path3}/pnpm-lock.yaml`;
87350
- const yarnPath = `${path3}/yarn.lock`;
87351
- const npmPath = `${path3}/package-lock.json`;
87347
+ var findPackageManagerType = (path5 = ".", defaultPackageManager = "unknown") => {
87348
+ const bunPath = `${path5}/bun.lockb`;
87349
+ const pnpmPath = `${path5}/pnpm-lock.yaml`;
87350
+ const yarnPath = `${path5}/yarn.lock`;
87351
+ const npmPath = `${path5}/package-lock.json`;
87352
87352
  if ((0, import_fs.existsSync)(bunPath)) {
87353
87353
  return "bun";
87354
87354
  }
@@ -87379,11 +87379,11 @@ var findInstallCommand = (packageManagerType = findPackageManagerType(), prefix
87379
87379
  return prefix ? "npm install" : "install";
87380
87380
  }
87381
87381
  };
87382
- var findPackageManagerRunner = (path3 = ".", defaultPackageManagerRunner = "npx") => {
87383
- const bunPath = `${path3}/bun.lockb`;
87384
- const pnpmPath = `${path3}/pnpm-lock.yaml`;
87385
- const yarnPath = `${path3}/yarn.lock`;
87386
- const npmPath = `${path3}/package-lock.json`;
87382
+ var findPackageManagerRunner = (path5 = ".", defaultPackageManagerRunner = "npx") => {
87383
+ const bunPath = `${path5}/bun.lockb`;
87384
+ const pnpmPath = `${path5}/pnpm-lock.yaml`;
87385
+ const yarnPath = `${path5}/yarn.lock`;
87386
+ const npmPath = `${path5}/package-lock.json`;
87387
87387
  if ((0, import_fs.existsSync)(bunPath)) {
87388
87388
  return "bunx";
87389
87389
  }
@@ -87639,35 +87639,69 @@ async function* getFiles(dir) {
87639
87639
  }
87640
87640
  async function findProjectType() {
87641
87641
  const pwd = import_node_process8.default.cwd();
87642
+ let isTypeScript = false;
87643
+ const tsConfigPath = (0, import_node_path2.resolve)(pwd, "tsconfig.json");
87644
+ if ((0, import_node_fs4.existsSync)(tsConfigPath)) {
87645
+ isTypeScript = true;
87646
+ }
87642
87647
  for await (const f3 of getFiles(pwd)) {
87643
87648
  if (f3.includes("angular.json")) {
87644
87649
  f2.info("Found angular project");
87645
- return "angular";
87650
+ return isTypeScript ? "angular-ts" : "angular-js";
87646
87651
  }
87647
87652
  if (f3.includes("nuxt.config.js")) {
87648
87653
  f2.info("Found nuxtjs project");
87649
- return "nuxtjs";
87654
+ return isTypeScript ? "nuxtjs-ts" : "nuxtjs-js";
87650
87655
  }
87651
- if (f3.includes("next.config.js")) {
87656
+ if (f3.includes("next.config.js") || f3.includes("next.config.mjs")) {
87652
87657
  f2.info("Found nextjs project");
87653
- return "nextjs";
87658
+ return isTypeScript ? "nextjs-ts" : "nextjs-js";
87654
87659
  }
87655
87660
  if (f3.includes("svelte.config.js")) {
87656
87661
  f2.info("Found sveltekit project");
87657
- return "sveltekit";
87662
+ return isTypeScript ? "sveltekit-ts" : "sveltekit-js";
87663
+ }
87664
+ if (f3.includes("rollup.config.js")) {
87665
+ f2.info("Found svelte project");
87666
+ return isTypeScript ? "svelte-ts" : "svelte-js";
87667
+ }
87668
+ if (f3.includes("vue.config.js")) {
87669
+ f2.info("Found vue project");
87670
+ return isTypeScript ? "vue-ts" : "vue-js";
87671
+ }
87672
+ if (f3.includes("package.json")) {
87673
+ const packageJsonPath = import_node_path2.default.resolve(f3);
87674
+ const packageJson = JSON.parse((0, import_node_fs4.readFileSync)(packageJsonPath, "utf8"));
87675
+ if (packageJson.dependencies) {
87676
+ if (packageJson.dependencies.react) {
87677
+ f2.info("Found react project test");
87678
+ return isTypeScript ? "react-ts" : "react-js";
87679
+ }
87680
+ if (packageJson.dependencies.vue) {
87681
+ f2.info("Found vue project");
87682
+ return isTypeScript ? "vue-ts" : "vue-js";
87683
+ }
87684
+ }
87658
87685
  }
87659
87686
  }
87660
87687
  return "unknown";
87661
87688
  }
87662
- async function findMainFileForProjectType(projectType) {
87663
- if (projectType === "angular")
87664
- return "src/main.ts";
87665
- if (projectType === "nuxtjs")
87666
- return "src/main.ts";
87667
- if (projectType === "nextjs")
87668
- return "pages/_app.tsx";
87669
- if (projectType === "sveltekit")
87670
- return "src/main.ts";
87689
+ function findMainFileForProjectType(projectType, isTypeScript) {
87690
+ if (projectType === "angular") {
87691
+ return isTypeScript ? "src/main.ts" : "src/main.js";
87692
+ }
87693
+ if (projectType === "nextjs-js" || projectType === "nextjs-ts") {
87694
+ return isTypeScript ? "src/app/layout.tsx" : "src/app/layout.js";
87695
+ }
87696
+ if (projectType === "svelte-js" || projectType === "svelte-ts") {
87697
+ return isTypeScript ? "src/main.ts" : "src/main.js";
87698
+ }
87699
+ if (projectType === "vue-js" || projectType === "vue-ts") {
87700
+ return isTypeScript ? "src/main.ts" : "src/main.js";
87701
+ }
87702
+ if (projectType === "react-js" || projectType === "react-ts") {
87703
+ return isTypeScript ? "src/index.tsx" : "src/index.js";
87704
+ }
87671
87705
  return null;
87672
87706
  }
87673
87707
  async function findBuildCommandForProjectType(projectType) {
@@ -88189,7 +88223,7 @@ function checkIndexPosition(dirPath) {
88189
88223
  var alertMb = 20;
88190
88224
  async function zipBundle(appId, options) {
88191
88225
  try {
88192
- let { bundle: bundle2, path: path3 } = options;
88226
+ let { bundle: bundle2, path: path5 } = options;
88193
88227
  const { json } = options;
88194
88228
  const snag = useLogSnag();
88195
88229
  if (!json)
@@ -88207,8 +88241,8 @@ async function zipBundle(appId, options) {
88207
88241
  console.error(formatError({ error: "invalid_semver" }));
88208
88242
  program.error("");
88209
88243
  }
88210
- path3 = path3 || config?.app?.webDir;
88211
- if (!appId || !bundle2 || !path3) {
88244
+ path5 = path5 || config?.app?.webDir;
88245
+ if (!appId || !bundle2 || !path5) {
88212
88246
  if (!json)
88213
88247
  f2.error("Missing argument, you need to provide a appId and a bundle and a path, or be in a capacitor project");
88214
88248
  else
@@ -88216,10 +88250,10 @@ async function zipBundle(appId, options) {
88216
88250
  program.error("");
88217
88251
  }
88218
88252
  if (!json)
88219
- f2.info(`Started from path "${path3}"`);
88253
+ f2.info(`Started from path "${path5}"`);
88220
88254
  const checkNotifyAppReady2 = options.codeCheck;
88221
88255
  if (typeof checkNotifyAppReady2 === "undefined" || checkNotifyAppReady2) {
88222
- const isPluginConfigured = searchInDirectory(path3, "notifyAppReady");
88256
+ const isPluginConfigured = searchInDirectory(path5, "notifyAppReady");
88223
88257
  if (!isPluginConfigured) {
88224
88258
  if (!json)
88225
88259
  f2.error(`notifyAppReady() is missing in the source code. see: https://capgo.app/docs/plugin/api/#notifyappready`);
@@ -88227,7 +88261,7 @@ async function zipBundle(appId, options) {
88227
88261
  console.error(formatError({ error: "notifyAppReady_not_in_source_code" }));
88228
88262
  program.error("");
88229
88263
  }
88230
- const foundIndex = checkIndexPosition(path3);
88264
+ const foundIndex = checkIndexPosition(path5);
88231
88265
  if (!foundIndex) {
88232
88266
  if (!json)
88233
88267
  f2.error(`index.html is missing in the root folder or in the only folder in the root folder`);
@@ -88236,7 +88270,7 @@ async function zipBundle(appId, options) {
88236
88270
  program.error("");
88237
88271
  }
88238
88272
  }
88239
- const zipped = await zipFile(path3);
88273
+ const zipped = await zipFile(path5);
88240
88274
  if (!json)
88241
88275
  f2.info(`Zipped ${zipped.byteLength} bytes`);
88242
88276
  const s = de();
@@ -88297,6 +88331,7 @@ The app size is ${mbSize} Mb, this may take a while to download for users
88297
88331
 
88298
88332
  // src/init.ts
88299
88333
  var import_node_fs11 = require("node:fs");
88334
+ var import_node_path4 = __toESM(require("node:path"));
88300
88335
  var import_node_child_process6 = require("node:child_process");
88301
88336
  var import_node_process16 = __toESM(require("node:process"));
88302
88337
  var import_semver = __toESM(require_semver2());
@@ -88859,26 +88894,26 @@ function getApikey(options) {
88859
88894
  }
88860
88895
  function getAppIdAndPath(appId, options, config) {
88861
88896
  const finalAppId = appId || config?.app?.appId;
88862
- const path3 = options.path || config?.app?.webDir;
88863
- if (!finalAppId || !path3) {
88897
+ const path5 = options.path || config?.app?.webDir;
88898
+ if (!finalAppId || !path5) {
88864
88899
  f2.error("Missing argument, you need to provide a appid and a path (--path), or be in a capacitor project");
88865
88900
  program.error("");
88866
88901
  }
88867
- if (!(0, import_node_fs8.existsSync)(path3)) {
88868
- f2.error(`Path ${path3} does not exist, build your app first, or provide a valid path`);
88902
+ if (!(0, import_node_fs8.existsSync)(path5)) {
88903
+ f2.error(`Path ${path5} does not exist, build your app first, or provide a valid path`);
88869
88904
  program.error("");
88870
88905
  }
88871
- return { appid: finalAppId, path: path3 };
88906
+ return { appid: finalAppId, path: path5 };
88872
88907
  }
88873
- function checkNotifyAppReady(options, path3) {
88908
+ function checkNotifyAppReady(options, path5) {
88874
88909
  const checkNotifyAppReady2 = options.codeCheck;
88875
88910
  if (typeof checkNotifyAppReady2 === "undefined" || checkNotifyAppReady2) {
88876
- const isPluginConfigured = searchInDirectory(path3, "notifyAppReady");
88911
+ const isPluginConfigured = searchInDirectory(path5, "notifyAppReady");
88877
88912
  if (!isPluginConfigured) {
88878
88913
  f2.error(`notifyAppReady() is missing in the source code. see: https://capgo.app/docs/plugin/api/#notifyappready`);
88879
88914
  program.error("");
88880
88915
  }
88881
- const foundIndex = checkIndexPosition(path3);
88916
+ const foundIndex = checkIndexPosition(path5);
88882
88917
  if (!foundIndex) {
88883
88918
  f2.error(`index.html is missing in the root folder or in the only folder in the root folder`);
88884
88919
  program.error("");
@@ -88962,12 +88997,12 @@ async function checkVersionExists(supabase, appid, bundle2) {
88962
88997
  program.error("");
88963
88998
  }
88964
88999
  }
88965
- async function prepareBundleFile(path3, options, localConfig, snag, orgId, appid) {
89000
+ async function prepareBundleFile(path5, options, localConfig, snag, orgId, appid) {
88966
89001
  let sessionKey;
88967
89002
  let checksum = "";
88968
89003
  let zipped = null;
88969
89004
  const key2 = options.key;
88970
- zipped = await zipFile(path3);
89005
+ zipped = await zipFile(path5);
88971
89006
  const s = de();
88972
89007
  s.start(`Calculating checksum`);
88973
89008
  checksum = await (0, import_checksum2.checksum)(zipped, "crc32");
@@ -89120,12 +89155,12 @@ async function uploadBundle(preAppid, options, shouldExit = true) {
89120
89155
  }
89121
89156
  const apikey = getApikey(options);
89122
89157
  const config = await getConfig();
89123
- const { appid, path: path3 } = getAppIdAndPath(preAppid, options, config);
89158
+ const { appid, path: path5 } = getAppIdAndPath(preAppid, options, config);
89124
89159
  const bundle2 = getBundle(config, options);
89125
89160
  const channel2 = options.channel || "dev";
89126
89161
  const snag = useLogSnag();
89127
- checkNotifyAppReady(options, path3);
89128
- f2.info(`Upload ${appid}@${bundle2} started from path "${path3}" to Capgo cloud`);
89162
+ checkNotifyAppReady(options, path5);
89163
+ f2.info(`Upload ${appid}@${bundle2} started from path "${path5}" to Capgo cloud`);
89129
89164
  const localConfig = await getLocalConfig();
89130
89165
  const supabase = await createSupabaseClient(apikey);
89131
89166
  const userId = await verifyUser(supabase, apikey, ["write", "all", "upload"]);
@@ -89154,7 +89189,7 @@ async function uploadBundle(preAppid, options, shouldExit = true) {
89154
89189
  };
89155
89190
  let zipped = null;
89156
89191
  if (!options.external) {
89157
- const { zipped: _zipped, sessionKey, checksum } = await prepareBundleFile(path3, options, localConfig, snag, orgId, appid);
89192
+ const { zipped: _zipped, sessionKey, checksum } = await prepareBundleFile(path5, options, localConfig, snag, orgId, appid);
89158
89193
  versionData.session_key = sessionKey;
89159
89194
  versionData.checksum = checksum;
89160
89195
  zipped = _zipped;
@@ -89331,12 +89366,12 @@ var Mime = class {
89331
89366
  }
89332
89367
  return this;
89333
89368
  }
89334
- getType(path3) {
89335
- if (typeof path3 !== "string")
89369
+ getType(path5) {
89370
+ if (typeof path5 !== "string")
89336
89371
  return null;
89337
- const last = path3.replace(/^.*[/\\]/, "").toLowerCase();
89372
+ const last = path5.replace(/^.*[/\\]/, "").toLowerCase();
89338
89373
  const ext = last.replace(/^.*\./, "").toLowerCase();
89339
- const hasPath = last.length < path3.length;
89374
+ const hasPath = last.length < path5.length;
89340
89375
  const hasDot = ext.length < last.length - 1;
89341
89376
  if (!hasDot && hasPath)
89342
89377
  return null;
@@ -89637,37 +89672,78 @@ async function step5(orgId, snag, apikey, appId) {
89637
89672
  const s = de();
89638
89673
  s.start(`Adding @capacitor-updater to your main file`);
89639
89674
  const projectType = await findProjectType();
89640
- let mainFilePath;
89641
- if (projectType === "unknown")
89642
- mainFilePath = await findMainFile();
89643
- else
89644
- mainFilePath = await findMainFileForProjectType(projectType);
89645
- if (!mainFilePath) {
89646
- s.stop("Error");
89647
- f2.warn("Cannot find main file, You need to add @capgo/capacitor-updater manually");
89648
- $e(`Bye \u{1F44B}`);
89649
- import_node_process16.default.exit();
89650
- }
89651
- const mainFile = (0, import_node_fs11.readFileSync)(mainFilePath);
89652
- const mainFileContent = mainFile.toString();
89653
- const matches = mainFileContent.match(regexImport);
89654
- const last = matches?.pop();
89655
- if (!last) {
89656
- s.stop("Error");
89657
- f2.warn(`Cannot find import line in main file, use manual installation: https://capgo.app/docs/plugin/installation/`);
89658
- $e(`Bye \u{1F44B}`);
89659
- import_node_process16.default.exit();
89660
- }
89661
- if (mainFileContent.includes(codeInject)) {
89662
- s.stop(`Code already added to ${mainFilePath} \u2705`);
89675
+ if (projectType === "nuxtjs-js" || projectType === "nuxtjs-ts") {
89676
+ const nuxtDir = import_node_path4.default.join("plugins");
89677
+ if (!(0, import_node_fs11.existsSync)(nuxtDir)) {
89678
+ (0, import_node_fs11.mkdirSync)(nuxtDir, { recursive: true });
89679
+ }
89680
+ let nuxtFilePath;
89681
+ if (projectType === "nuxtjs-ts") {
89682
+ nuxtFilePath = import_node_path4.default.join(nuxtDir, "capacitorUpdater.client.ts");
89683
+ } else {
89684
+ nuxtFilePath = import_node_path4.default.join(nuxtDir, "capacitorUpdater.client.js");
89685
+ }
89686
+ const nuxtFileContent = `
89687
+ import { CapacitorUpdater } from '@capgo/capacitor-updater'
89688
+
89689
+ export default defineNuxtPlugin(() => {
89690
+ CapacitorUpdater.notifyAppReady()
89691
+ })
89692
+ `;
89693
+ if ((0, import_node_fs11.existsSync)(nuxtFilePath)) {
89694
+ const currentContent = (0, import_node_fs11.readFileSync)(nuxtFilePath, "utf8");
89695
+ if (currentContent.includes("CapacitorUpdater.notifyAppReady()")) {
89696
+ s.stop("Code already added to capacitorUpdater.client.ts file inside plugins directory \u2705");
89697
+ f2.info("Plugins directory and capacitorUpdater.client.ts file already exist with required code");
89698
+ } else {
89699
+ (0, import_node_fs11.writeFileSync)(nuxtFilePath, nuxtFileContent, "utf8");
89700
+ s.stop("Code added to capacitorUpdater.client.ts file inside plugins directory \u2705");
89701
+ f2.info("Updated capacitorUpdater.client.ts file with required code");
89702
+ }
89703
+ } else {
89704
+ (0, import_node_fs11.writeFileSync)(nuxtFilePath, nuxtFileContent, "utf8");
89705
+ s.stop("Code added to capacitorUpdater.client.ts file inside plugins directory \u2705");
89706
+ f2.info("Created plugins directory and capacitorUpdater.client.ts file");
89707
+ }
89663
89708
  } else {
89664
- const newMainFileContent = mainFileContent.replace(last, `${last}
89709
+ let mainFilePath;
89710
+ if (projectType === "unknown") {
89711
+ mainFilePath = await findMainFile();
89712
+ } else {
89713
+ const isTypeScript = projectType.endsWith("-ts");
89714
+ mainFilePath = await findMainFileForProjectType(projectType, isTypeScript);
89715
+ }
89716
+ if (!mainFilePath) {
89717
+ s.stop("Error");
89718
+ if (projectType === "nextjs-js" || projectType === "nextjs-ts") {
89719
+ f2.warn(`You might not be using app router configuration or the latest version of Next.js`);
89720
+ } else {
89721
+ f2.warn(`Cannot find the latest version of ${projectType}, you might need to upgrade to the latest version of ${projectType}`);
89722
+ }
89723
+ $e(`Bye \u{1F44B}`);
89724
+ import_node_process16.default.exit();
89725
+ }
89726
+ const mainFile = (0, import_node_fs11.readFileSync)(mainFilePath, "utf8");
89727
+ const mainFileContent = mainFile.toString();
89728
+ const matches = mainFileContent.match(regexImport);
89729
+ const last = matches?.pop();
89730
+ if (!last) {
89731
+ s.stop("Error");
89732
+ f2.warn(`Cannot find import line in main file, use manual installation: https://capgo.app/docs/plugin/installation/`);
89733
+ $e(`Bye \u{1F44B}`);
89734
+ import_node_process16.default.exit();
89735
+ }
89736
+ if (mainFileContent.includes(codeInject)) {
89737
+ s.stop(`Code already added to ${mainFilePath} \u2705`);
89738
+ } else {
89739
+ const newMainFileContent = mainFileContent.replace(last, `${last}
89665
89740
  ${importInject};
89666
89741
 
89667
89742
  ${codeInject};
89668
89743
  `);
89669
- (0, import_node_fs11.writeFileSync)(mainFilePath, newMainFileContent);
89670
- s.stop(`Code added to ${mainFilePath} \u2705`);
89744
+ (0, import_node_fs11.writeFileSync)(mainFilePath, newMainFileContent, "utf8");
89745
+ s.stop(`Code added to ${mainFilePath} \u2705`);
89746
+ }
89671
89747
  }
89672
89748
  await markStep(orgId, snag, 5);
89673
89749
  } else {
@@ -90046,7 +90122,7 @@ async function encryptZip(zipPath, options) {
90046
90122
 
90047
90123
  // src/app/info.ts
90048
90124
  var import_node_fs14 = require("node:fs");
90049
- var import_node_path4 = require("node:path");
90125
+ var import_node_path5 = require("node:path");
90050
90126
  var import_node_os4 = __toESM(require("node:os"));
90051
90127
  var import_node_process21 = __toESM(require("node:process"));
90052
90128
  var import_get_latest_version2 = __toESM(require_src3());
@@ -90069,7 +90145,7 @@ async function getLatestDependencies(installedDependencies) {
90069
90145
  return latestDependencies;
90070
90146
  }
90071
90147
  async function readPackageJson() {
90072
- const packageJson = (0, import_node_fs14.readFileSync)((0, import_node_path4.join)(import_node_process21.default.cwd(), "package.json"));
90148
+ const packageJson = (0, import_node_fs14.readFileSync)((0, import_node_path5.join)(import_node_process21.default.cwd(), "package.json"));
90073
90149
  return JSON.parse(packageJson);
90074
90150
  }
90075
90151
  async function getInstalledDependencies() {