aws-cdk 2.1132.0 → 2.1132.1

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/lib/index.js CHANGED
@@ -3695,7 +3695,7 @@ var require_semver2 = __commonJS({
3695
3695
  // ../@aws-cdk/cloud-assembly-schema/cli-version.json
3696
3696
  var require_cli_version = __commonJS({
3697
3697
  "../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
3698
- module2.exports = { version: "2.1132.0" };
3698
+ module2.exports = { version: "2.1132.1" };
3699
3699
  }
3700
3700
  });
3701
3701
 
@@ -8429,54 +8429,54 @@ var require_polyfills = __commonJS({
8429
8429
  }
8430
8430
  var chdir;
8431
8431
  module2.exports = patch;
8432
- function patch(fs57) {
8432
+ function patch(fs58) {
8433
8433
  if (constants3.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
8434
- patchLchmod(fs57);
8435
- }
8436
- if (!fs57.lutimes) {
8437
- patchLutimes(fs57);
8438
- }
8439
- fs57.chown = chownFix(fs57.chown);
8440
- fs57.fchown = chownFix(fs57.fchown);
8441
- fs57.lchown = chownFix(fs57.lchown);
8442
- fs57.chmod = chmodFix(fs57.chmod);
8443
- fs57.fchmod = chmodFix(fs57.fchmod);
8444
- fs57.lchmod = chmodFix(fs57.lchmod);
8445
- fs57.chownSync = chownFixSync(fs57.chownSync);
8446
- fs57.fchownSync = chownFixSync(fs57.fchownSync);
8447
- fs57.lchownSync = chownFixSync(fs57.lchownSync);
8448
- fs57.chmodSync = chmodFixSync(fs57.chmodSync);
8449
- fs57.fchmodSync = chmodFixSync(fs57.fchmodSync);
8450
- fs57.lchmodSync = chmodFixSync(fs57.lchmodSync);
8451
- fs57.stat = statFix(fs57.stat);
8452
- fs57.fstat = statFix(fs57.fstat);
8453
- fs57.lstat = statFix(fs57.lstat);
8454
- fs57.statSync = statFixSync(fs57.statSync);
8455
- fs57.fstatSync = statFixSync(fs57.fstatSync);
8456
- fs57.lstatSync = statFixSync(fs57.lstatSync);
8457
- if (fs57.chmod && !fs57.lchmod) {
8458
- fs57.lchmod = function(path54, mode, cb) {
8434
+ patchLchmod(fs58);
8435
+ }
8436
+ if (!fs58.lutimes) {
8437
+ patchLutimes(fs58);
8438
+ }
8439
+ fs58.chown = chownFix(fs58.chown);
8440
+ fs58.fchown = chownFix(fs58.fchown);
8441
+ fs58.lchown = chownFix(fs58.lchown);
8442
+ fs58.chmod = chmodFix(fs58.chmod);
8443
+ fs58.fchmod = chmodFix(fs58.fchmod);
8444
+ fs58.lchmod = chmodFix(fs58.lchmod);
8445
+ fs58.chownSync = chownFixSync(fs58.chownSync);
8446
+ fs58.fchownSync = chownFixSync(fs58.fchownSync);
8447
+ fs58.lchownSync = chownFixSync(fs58.lchownSync);
8448
+ fs58.chmodSync = chmodFixSync(fs58.chmodSync);
8449
+ fs58.fchmodSync = chmodFixSync(fs58.fchmodSync);
8450
+ fs58.lchmodSync = chmodFixSync(fs58.lchmodSync);
8451
+ fs58.stat = statFix(fs58.stat);
8452
+ fs58.fstat = statFix(fs58.fstat);
8453
+ fs58.lstat = statFix(fs58.lstat);
8454
+ fs58.statSync = statFixSync(fs58.statSync);
8455
+ fs58.fstatSync = statFixSync(fs58.fstatSync);
8456
+ fs58.lstatSync = statFixSync(fs58.lstatSync);
8457
+ if (fs58.chmod && !fs58.lchmod) {
8458
+ fs58.lchmod = function(path54, mode, cb) {
8459
8459
  if (cb) process.nextTick(cb);
8460
8460
  };
8461
- fs57.lchmodSync = function() {
8461
+ fs58.lchmodSync = function() {
8462
8462
  };
8463
8463
  }
8464
- if (fs57.chown && !fs57.lchown) {
8465
- fs57.lchown = function(path54, uid, gid, cb) {
8464
+ if (fs58.chown && !fs58.lchown) {
8465
+ fs58.lchown = function(path54, uid, gid, cb) {
8466
8466
  if (cb) process.nextTick(cb);
8467
8467
  };
8468
- fs57.lchownSync = function() {
8468
+ fs58.lchownSync = function() {
8469
8469
  };
8470
8470
  }
8471
8471
  if (platform5 === "win32") {
8472
- fs57.rename = typeof fs57.rename !== "function" ? fs57.rename : (function(fs$rename) {
8472
+ fs58.rename = typeof fs58.rename !== "function" ? fs58.rename : (function(fs$rename) {
8473
8473
  function rename(from, to, cb) {
8474
8474
  var start = Date.now();
8475
8475
  var backoff = 0;
8476
8476
  fs$rename(from, to, /* @__PURE__ */ __name(function CB(er) {
8477
8477
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
8478
8478
  setTimeout(function() {
8479
- fs57.stat(to, function(stater, st) {
8479
+ fs58.stat(to, function(stater, st) {
8480
8480
  if (stater && stater.code === "ENOENT")
8481
8481
  fs$rename(from, to, CB);
8482
8482
  else
@@ -8493,9 +8493,9 @@ var require_polyfills = __commonJS({
8493
8493
  __name(rename, "rename");
8494
8494
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
8495
8495
  return rename;
8496
- })(fs57.rename);
8496
+ })(fs58.rename);
8497
8497
  }
8498
- fs57.read = typeof fs57.read !== "function" ? fs57.read : (function(fs$read) {
8498
+ fs58.read = typeof fs58.read !== "function" ? fs58.read : (function(fs$read) {
8499
8499
  function read(fd, buffer, offset, length, position, callback_) {
8500
8500
  var callback;
8501
8501
  if (callback_ && typeof callback_ === "function") {
@@ -8503,23 +8503,23 @@ var require_polyfills = __commonJS({
8503
8503
  callback = /* @__PURE__ */ __name(function(er, _, __) {
8504
8504
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
8505
8505
  eagCounter++;
8506
- return fs$read.call(fs57, fd, buffer, offset, length, position, callback);
8506
+ return fs$read.call(fs58, fd, buffer, offset, length, position, callback);
8507
8507
  }
8508
8508
  callback_.apply(this, arguments);
8509
8509
  }, "callback");
8510
8510
  }
8511
- return fs$read.call(fs57, fd, buffer, offset, length, position, callback);
8511
+ return fs$read.call(fs58, fd, buffer, offset, length, position, callback);
8512
8512
  }
8513
8513
  __name(read, "read");
8514
8514
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
8515
8515
  return read;
8516
- })(fs57.read);
8517
- fs57.readSync = typeof fs57.readSync !== "function" ? fs57.readSync : /* @__PURE__ */ (function(fs$readSync) {
8516
+ })(fs58.read);
8517
+ fs58.readSync = typeof fs58.readSync !== "function" ? fs58.readSync : /* @__PURE__ */ (function(fs$readSync) {
8518
8518
  return function(fd, buffer, offset, length, position) {
8519
8519
  var eagCounter = 0;
8520
8520
  while (true) {
8521
8521
  try {
8522
- return fs$readSync.call(fs57, fd, buffer, offset, length, position);
8522
+ return fs$readSync.call(fs58, fd, buffer, offset, length, position);
8523
8523
  } catch (er) {
8524
8524
  if (er.code === "EAGAIN" && eagCounter < 10) {
8525
8525
  eagCounter++;
@@ -8529,10 +8529,10 @@ var require_polyfills = __commonJS({
8529
8529
  }
8530
8530
  }
8531
8531
  };
8532
- })(fs57.readSync);
8533
- function patchLchmod(fs58) {
8534
- fs58.lchmod = function(path54, mode, callback) {
8535
- fs58.open(
8532
+ })(fs58.readSync);
8533
+ function patchLchmod(fs59) {
8534
+ fs59.lchmod = function(path54, mode, callback) {
8535
+ fs59.open(
8536
8536
  path54,
8537
8537
  constants3.O_WRONLY | constants3.O_SYMLINK,
8538
8538
  mode,
@@ -8541,74 +8541,74 @@ var require_polyfills = __commonJS({
8541
8541
  if (callback) callback(err);
8542
8542
  return;
8543
8543
  }
8544
- fs58.fchmod(fd, mode, function(err2) {
8545
- fs58.close(fd, function(err22) {
8544
+ fs59.fchmod(fd, mode, function(err2) {
8545
+ fs59.close(fd, function(err22) {
8546
8546
  if (callback) callback(err2 || err22);
8547
8547
  });
8548
8548
  });
8549
8549
  }
8550
8550
  );
8551
8551
  };
8552
- fs58.lchmodSync = function(path54, mode) {
8553
- var fd = fs58.openSync(path54, constants3.O_WRONLY | constants3.O_SYMLINK, mode);
8552
+ fs59.lchmodSync = function(path54, mode) {
8553
+ var fd = fs59.openSync(path54, constants3.O_WRONLY | constants3.O_SYMLINK, mode);
8554
8554
  var threw = true;
8555
8555
  var ret;
8556
8556
  try {
8557
- ret = fs58.fchmodSync(fd, mode);
8557
+ ret = fs59.fchmodSync(fd, mode);
8558
8558
  threw = false;
8559
8559
  } finally {
8560
8560
  if (threw) {
8561
8561
  try {
8562
- fs58.closeSync(fd);
8562
+ fs59.closeSync(fd);
8563
8563
  } catch (er) {
8564
8564
  }
8565
8565
  } else {
8566
- fs58.closeSync(fd);
8566
+ fs59.closeSync(fd);
8567
8567
  }
8568
8568
  }
8569
8569
  return ret;
8570
8570
  };
8571
8571
  }
8572
8572
  __name(patchLchmod, "patchLchmod");
8573
- function patchLutimes(fs58) {
8574
- if (constants3.hasOwnProperty("O_SYMLINK") && fs58.futimes) {
8575
- fs58.lutimes = function(path54, at, mt, cb) {
8576
- fs58.open(path54, constants3.O_SYMLINK, function(er, fd) {
8573
+ function patchLutimes(fs59) {
8574
+ if (constants3.hasOwnProperty("O_SYMLINK") && fs59.futimes) {
8575
+ fs59.lutimes = function(path54, at, mt, cb) {
8576
+ fs59.open(path54, constants3.O_SYMLINK, function(er, fd) {
8577
8577
  if (er) {
8578
8578
  if (cb) cb(er);
8579
8579
  return;
8580
8580
  }
8581
- fs58.futimes(fd, at, mt, function(er2) {
8582
- fs58.close(fd, function(er22) {
8581
+ fs59.futimes(fd, at, mt, function(er2) {
8582
+ fs59.close(fd, function(er22) {
8583
8583
  if (cb) cb(er2 || er22);
8584
8584
  });
8585
8585
  });
8586
8586
  });
8587
8587
  };
8588
- fs58.lutimesSync = function(path54, at, mt) {
8589
- var fd = fs58.openSync(path54, constants3.O_SYMLINK);
8588
+ fs59.lutimesSync = function(path54, at, mt) {
8589
+ var fd = fs59.openSync(path54, constants3.O_SYMLINK);
8590
8590
  var ret;
8591
8591
  var threw = true;
8592
8592
  try {
8593
- ret = fs58.futimesSync(fd, at, mt);
8593
+ ret = fs59.futimesSync(fd, at, mt);
8594
8594
  threw = false;
8595
8595
  } finally {
8596
8596
  if (threw) {
8597
8597
  try {
8598
- fs58.closeSync(fd);
8598
+ fs59.closeSync(fd);
8599
8599
  } catch (er) {
8600
8600
  }
8601
8601
  } else {
8602
- fs58.closeSync(fd);
8602
+ fs59.closeSync(fd);
8603
8603
  }
8604
8604
  }
8605
8605
  return ret;
8606
8606
  };
8607
- } else if (fs58.futimes) {
8608
- fs58.lutimes = function(_a2, _b, _c6, cb) {
8607
+ } else if (fs59.futimes) {
8608
+ fs59.lutimes = function(_a2, _b, _c6, cb) {
8609
8609
  if (cb) process.nextTick(cb);
8610
8610
  };
8611
- fs58.lutimesSync = function() {
8611
+ fs59.lutimesSync = function() {
8612
8612
  };
8613
8613
  }
8614
8614
  }
@@ -8616,7 +8616,7 @@ var require_polyfills = __commonJS({
8616
8616
  function chmodFix(orig) {
8617
8617
  if (!orig) return orig;
8618
8618
  return function(target, mode, cb) {
8619
- return orig.call(fs57, target, mode, function(er) {
8619
+ return orig.call(fs58, target, mode, function(er) {
8620
8620
  if (chownErOk(er)) er = null;
8621
8621
  if (cb) cb.apply(this, arguments);
8622
8622
  });
@@ -8627,7 +8627,7 @@ var require_polyfills = __commonJS({
8627
8627
  if (!orig) return orig;
8628
8628
  return function(target, mode) {
8629
8629
  try {
8630
- return orig.call(fs57, target, mode);
8630
+ return orig.call(fs58, target, mode);
8631
8631
  } catch (er) {
8632
8632
  if (!chownErOk(er)) throw er;
8633
8633
  }
@@ -8637,7 +8637,7 @@ var require_polyfills = __commonJS({
8637
8637
  function chownFix(orig) {
8638
8638
  if (!orig) return orig;
8639
8639
  return function(target, uid, gid, cb) {
8640
- return orig.call(fs57, target, uid, gid, function(er) {
8640
+ return orig.call(fs58, target, uid, gid, function(er) {
8641
8641
  if (chownErOk(er)) er = null;
8642
8642
  if (cb) cb.apply(this, arguments);
8643
8643
  });
@@ -8648,7 +8648,7 @@ var require_polyfills = __commonJS({
8648
8648
  if (!orig) return orig;
8649
8649
  return function(target, uid, gid) {
8650
8650
  try {
8651
- return orig.call(fs57, target, uid, gid);
8651
+ return orig.call(fs58, target, uid, gid);
8652
8652
  } catch (er) {
8653
8653
  if (!chownErOk(er)) throw er;
8654
8654
  }
@@ -8670,14 +8670,14 @@ var require_polyfills = __commonJS({
8670
8670
  if (cb) cb.apply(this, arguments);
8671
8671
  }
8672
8672
  __name(callback, "callback");
8673
- return options ? orig.call(fs57, target, options, callback) : orig.call(fs57, target, callback);
8673
+ return options ? orig.call(fs58, target, options, callback) : orig.call(fs58, target, callback);
8674
8674
  };
8675
8675
  }
8676
8676
  __name(statFix, "statFix");
8677
8677
  function statFixSync(orig) {
8678
8678
  if (!orig) return orig;
8679
8679
  return function(target, options) {
8680
- var stats = options ? orig.call(fs57, target, options) : orig.call(fs57, target);
8680
+ var stats = options ? orig.call(fs58, target, options) : orig.call(fs58, target);
8681
8681
  if (stats) {
8682
8682
  if (stats.uid < 0) stats.uid += 4294967296;
8683
8683
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -8709,7 +8709,7 @@ var require_legacy_streams = __commonJS({
8709
8709
  "../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
8710
8710
  var Stream = require("stream").Stream;
8711
8711
  module2.exports = legacy;
8712
- function legacy(fs57) {
8712
+ function legacy(fs58) {
8713
8713
  return {
8714
8714
  ReadStream: ReadStream2,
8715
8715
  WriteStream
@@ -8752,7 +8752,7 @@ var require_legacy_streams = __commonJS({
8752
8752
  });
8753
8753
  return;
8754
8754
  }
8755
- fs57.open(this.path, this.flags, this.mode, function(err, fd) {
8755
+ fs58.open(this.path, this.flags, this.mode, function(err, fd) {
8756
8756
  if (err) {
8757
8757
  self2.emit("error", err);
8758
8758
  self2.readable = false;
@@ -8792,7 +8792,7 @@ var require_legacy_streams = __commonJS({
8792
8792
  this.busy = false;
8793
8793
  this._queue = [];
8794
8794
  if (this.fd === null) {
8795
- this._open = fs57.open;
8795
+ this._open = fs58.open;
8796
8796
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
8797
8797
  this.flush();
8798
8798
  }
@@ -8830,7 +8830,7 @@ var require_clone = __commonJS({
8830
8830
  // ../../node_modules/graceful-fs/graceful-fs.js
8831
8831
  var require_graceful_fs = __commonJS({
8832
8832
  "../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
8833
- var fs57 = require("fs");
8833
+ var fs58 = require("fs");
8834
8834
  var polyfills = require_polyfills();
8835
8835
  var legacy = require_legacy_streams();
8836
8836
  var clone = require_clone();
@@ -8864,12 +8864,12 @@ var require_graceful_fs = __commonJS({
8864
8864
  m4 = "GFS4: " + m4.split(/\n/).join("\nGFS4: ");
8865
8865
  console.error(m4);
8866
8866
  }, "debug");
8867
- if (!fs57[gracefulQueue]) {
8867
+ if (!fs58[gracefulQueue]) {
8868
8868
  queue = global[gracefulQueue] || [];
8869
- publishQueue(fs57, queue);
8870
- fs57.close = (function(fs$close) {
8869
+ publishQueue(fs58, queue);
8870
+ fs58.close = (function(fs$close) {
8871
8871
  function close(fd, cb) {
8872
- return fs$close.call(fs57, fd, function(err) {
8872
+ return fs$close.call(fs58, fd, function(err) {
8873
8873
  if (!err) {
8874
8874
  resetQueue();
8875
8875
  }
@@ -8882,10 +8882,10 @@ var require_graceful_fs = __commonJS({
8882
8882
  value: fs$close
8883
8883
  });
8884
8884
  return close;
8885
- })(fs57.close);
8886
- fs57.closeSync = (function(fs$closeSync) {
8885
+ })(fs58.close);
8886
+ fs58.closeSync = (function(fs$closeSync) {
8887
8887
  function closeSync(fd) {
8888
- fs$closeSync.apply(fs57, arguments);
8888
+ fs$closeSync.apply(fs58, arguments);
8889
8889
  resetQueue();
8890
8890
  }
8891
8891
  __name(closeSync, "closeSync");
@@ -8893,31 +8893,31 @@ var require_graceful_fs = __commonJS({
8893
8893
  value: fs$closeSync
8894
8894
  });
8895
8895
  return closeSync;
8896
- })(fs57.closeSync);
8896
+ })(fs58.closeSync);
8897
8897
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
8898
8898
  process.on("exit", function() {
8899
- debug2(fs57[gracefulQueue]);
8900
- require("assert").equal(fs57[gracefulQueue].length, 0);
8899
+ debug2(fs58[gracefulQueue]);
8900
+ require("assert").equal(fs58[gracefulQueue].length, 0);
8901
8901
  });
8902
8902
  }
8903
8903
  }
8904
8904
  var queue;
8905
8905
  if (!global[gracefulQueue]) {
8906
- publishQueue(global, fs57[gracefulQueue]);
8907
- }
8908
- module2.exports = patch(clone(fs57));
8909
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs57.__patched) {
8910
- module2.exports = patch(fs57);
8911
- fs57.__patched = true;
8912
- }
8913
- function patch(fs58) {
8914
- polyfills(fs58);
8915
- fs58.gracefulify = patch;
8916
- fs58.createReadStream = createReadStream3;
8917
- fs58.createWriteStream = createWriteStream;
8918
- var fs$readFile = fs58.readFile;
8919
- fs58.readFile = readFile11;
8920
- function readFile11(path54, options, cb) {
8906
+ publishQueue(global, fs58[gracefulQueue]);
8907
+ }
8908
+ module2.exports = patch(clone(fs58));
8909
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs58.__patched) {
8910
+ module2.exports = patch(fs58);
8911
+ fs58.__patched = true;
8912
+ }
8913
+ function patch(fs59) {
8914
+ polyfills(fs59);
8915
+ fs59.gracefulify = patch;
8916
+ fs59.createReadStream = createReadStream3;
8917
+ fs59.createWriteStream = createWriteStream;
8918
+ var fs$readFile = fs59.readFile;
8919
+ fs59.readFile = readFile12;
8920
+ function readFile12(path54, options, cb) {
8921
8921
  if (typeof options === "function")
8922
8922
  cb = options, options = null;
8923
8923
  return go$readFile(path54, options, cb);
@@ -8933,9 +8933,9 @@ var require_graceful_fs = __commonJS({
8933
8933
  }
8934
8934
  __name(go$readFile, "go$readFile");
8935
8935
  }
8936
- __name(readFile11, "readFile");
8937
- var fs$writeFile = fs58.writeFile;
8938
- fs58.writeFile = writeFile6;
8936
+ __name(readFile12, "readFile");
8937
+ var fs$writeFile = fs59.writeFile;
8938
+ fs59.writeFile = writeFile6;
8939
8939
  function writeFile6(path54, data2, options, cb) {
8940
8940
  if (typeof options === "function")
8941
8941
  cb = options, options = null;
@@ -8953,9 +8953,9 @@ var require_graceful_fs = __commonJS({
8953
8953
  __name(go$writeFile, "go$writeFile");
8954
8954
  }
8955
8955
  __name(writeFile6, "writeFile");
8956
- var fs$appendFile = fs58.appendFile;
8956
+ var fs$appendFile = fs59.appendFile;
8957
8957
  if (fs$appendFile)
8958
- fs58.appendFile = appendFile;
8958
+ fs59.appendFile = appendFile;
8959
8959
  function appendFile(path54, data2, options, cb) {
8960
8960
  if (typeof options === "function")
8961
8961
  cb = options, options = null;
@@ -8973,9 +8973,9 @@ var require_graceful_fs = __commonJS({
8973
8973
  __name(go$appendFile, "go$appendFile");
8974
8974
  }
8975
8975
  __name(appendFile, "appendFile");
8976
- var fs$copyFile = fs58.copyFile;
8976
+ var fs$copyFile = fs59.copyFile;
8977
8977
  if (fs$copyFile)
8978
- fs58.copyFile = copyFile;
8978
+ fs59.copyFile = copyFile;
8979
8979
  function copyFile(src, dest, flags, cb) {
8980
8980
  if (typeof flags === "function") {
8981
8981
  cb = flags;
@@ -8995,8 +8995,8 @@ var require_graceful_fs = __commonJS({
8995
8995
  __name(go$copyFile, "go$copyFile");
8996
8996
  }
8997
8997
  __name(copyFile, "copyFile");
8998
- var fs$readdir = fs58.readdir;
8999
- fs58.readdir = readdir5;
8998
+ var fs$readdir = fs59.readdir;
8999
+ fs59.readdir = readdir5;
9000
9000
  var noReaddirOptionVersions = /^v[0-5]\./;
9001
9001
  function readdir5(path54, options, cb) {
9002
9002
  if (typeof options === "function")
@@ -9039,21 +9039,21 @@ var require_graceful_fs = __commonJS({
9039
9039
  }
9040
9040
  __name(readdir5, "readdir");
9041
9041
  if (process.version.substr(0, 4) === "v0.8") {
9042
- var legStreams = legacy(fs58);
9042
+ var legStreams = legacy(fs59);
9043
9043
  ReadStream2 = legStreams.ReadStream;
9044
9044
  WriteStream = legStreams.WriteStream;
9045
9045
  }
9046
- var fs$ReadStream = fs58.ReadStream;
9046
+ var fs$ReadStream = fs59.ReadStream;
9047
9047
  if (fs$ReadStream) {
9048
9048
  ReadStream2.prototype = Object.create(fs$ReadStream.prototype);
9049
9049
  ReadStream2.prototype.open = ReadStream$open;
9050
9050
  }
9051
- var fs$WriteStream = fs58.WriteStream;
9051
+ var fs$WriteStream = fs59.WriteStream;
9052
9052
  if (fs$WriteStream) {
9053
9053
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
9054
9054
  WriteStream.prototype.open = WriteStream$open;
9055
9055
  }
9056
- Object.defineProperty(fs58, "ReadStream", {
9056
+ Object.defineProperty(fs59, "ReadStream", {
9057
9057
  get: /* @__PURE__ */ __name(function() {
9058
9058
  return ReadStream2;
9059
9059
  }, "get"),
@@ -9063,7 +9063,7 @@ var require_graceful_fs = __commonJS({
9063
9063
  enumerable: true,
9064
9064
  configurable: true
9065
9065
  });
9066
- Object.defineProperty(fs58, "WriteStream", {
9066
+ Object.defineProperty(fs59, "WriteStream", {
9067
9067
  get: /* @__PURE__ */ __name(function() {
9068
9068
  return WriteStream;
9069
9069
  }, "get"),
@@ -9074,7 +9074,7 @@ var require_graceful_fs = __commonJS({
9074
9074
  configurable: true
9075
9075
  });
9076
9076
  var FileReadStream = ReadStream2;
9077
- Object.defineProperty(fs58, "FileReadStream", {
9077
+ Object.defineProperty(fs59, "FileReadStream", {
9078
9078
  get: /* @__PURE__ */ __name(function() {
9079
9079
  return FileReadStream;
9080
9080
  }, "get"),
@@ -9085,7 +9085,7 @@ var require_graceful_fs = __commonJS({
9085
9085
  configurable: true
9086
9086
  });
9087
9087
  var FileWriteStream = WriteStream;
9088
- Object.defineProperty(fs58, "FileWriteStream", {
9088
+ Object.defineProperty(fs59, "FileWriteStream", {
9089
9089
  get: /* @__PURE__ */ __name(function() {
9090
9090
  return FileWriteStream;
9091
9091
  }, "get"),
@@ -9138,15 +9138,15 @@ var require_graceful_fs = __commonJS({
9138
9138
  }
9139
9139
  __name(WriteStream$open, "WriteStream$open");
9140
9140
  function createReadStream3(path54, options) {
9141
- return new fs58.ReadStream(path54, options);
9141
+ return new fs59.ReadStream(path54, options);
9142
9142
  }
9143
9143
  __name(createReadStream3, "createReadStream");
9144
9144
  function createWriteStream(path54, options) {
9145
- return new fs58.WriteStream(path54, options);
9145
+ return new fs59.WriteStream(path54, options);
9146
9146
  }
9147
9147
  __name(createWriteStream, "createWriteStream");
9148
- var fs$open = fs58.open;
9149
- fs58.open = open2;
9148
+ var fs$open = fs59.open;
9149
+ fs59.open = open2;
9150
9150
  function open2(path54, flags, mode, cb) {
9151
9151
  if (typeof mode === "function")
9152
9152
  cb = mode, mode = null;
@@ -9164,22 +9164,22 @@ var require_graceful_fs = __commonJS({
9164
9164
  __name(go$open, "go$open");
9165
9165
  }
9166
9166
  __name(open2, "open");
9167
- return fs58;
9167
+ return fs59;
9168
9168
  }
9169
9169
  __name(patch, "patch");
9170
9170
  function enqueue(elem) {
9171
9171
  debug2("ENQUEUE", elem[0].name, elem[1]);
9172
- fs57[gracefulQueue].push(elem);
9172
+ fs58[gracefulQueue].push(elem);
9173
9173
  retry();
9174
9174
  }
9175
9175
  __name(enqueue, "enqueue");
9176
9176
  var retryTimer;
9177
9177
  function resetQueue() {
9178
9178
  var now = Date.now();
9179
- for (var i6 = 0; i6 < fs57[gracefulQueue].length; ++i6) {
9180
- if (fs57[gracefulQueue][i6].length > 2) {
9181
- fs57[gracefulQueue][i6][3] = now;
9182
- fs57[gracefulQueue][i6][4] = now;
9179
+ for (var i6 = 0; i6 < fs58[gracefulQueue].length; ++i6) {
9180
+ if (fs58[gracefulQueue][i6].length > 2) {
9181
+ fs58[gracefulQueue][i6][3] = now;
9182
+ fs58[gracefulQueue][i6][4] = now;
9183
9183
  }
9184
9184
  }
9185
9185
  retry();
@@ -9188,9 +9188,9 @@ var require_graceful_fs = __commonJS({
9188
9188
  function retry() {
9189
9189
  clearTimeout(retryTimer);
9190
9190
  retryTimer = void 0;
9191
- if (fs57[gracefulQueue].length === 0)
9191
+ if (fs58[gracefulQueue].length === 0)
9192
9192
  return;
9193
- var elem = fs57[gracefulQueue].shift();
9193
+ var elem = fs58[gracefulQueue].shift();
9194
9194
  var fn = elem[0];
9195
9195
  var args = elem[1];
9196
9196
  var err = elem[2];
@@ -9212,7 +9212,7 @@ var require_graceful_fs = __commonJS({
9212
9212
  debug2("RETRY", fn.name, args);
9213
9213
  fn.apply(null, args.concat([startTime]));
9214
9214
  } else {
9215
- fs57[gracefulQueue].push(elem);
9215
+ fs58[gracefulQueue].push(elem);
9216
9216
  }
9217
9217
  }
9218
9218
  if (retryTimer === void 0) {
@@ -9228,7 +9228,7 @@ var require_fs = __commonJS({
9228
9228
  "../../node_modules/fs-extra/lib/fs/index.js"(exports2) {
9229
9229
  "use strict";
9230
9230
  var u = require_universalify().fromCallback;
9231
- var fs57 = require_graceful_fs();
9231
+ var fs58 = require_graceful_fs();
9232
9232
  var api = [
9233
9233
  "access",
9234
9234
  "appendFile",
@@ -9269,26 +9269,26 @@ var require_fs = __commonJS({
9269
9269
  "utimes",
9270
9270
  "writeFile"
9271
9271
  ].filter((key) => {
9272
- return typeof fs57[key] === "function";
9272
+ return typeof fs58[key] === "function";
9273
9273
  });
9274
- Object.assign(exports2, fs57);
9274
+ Object.assign(exports2, fs58);
9275
9275
  api.forEach((method) => {
9276
- exports2[method] = u(fs57[method]);
9276
+ exports2[method] = u(fs58[method]);
9277
9277
  });
9278
9278
  exports2.exists = function(filename, callback) {
9279
9279
  if (typeof callback === "function") {
9280
- return fs57.exists(filename, callback);
9280
+ return fs58.exists(filename, callback);
9281
9281
  }
9282
9282
  return new Promise((resolve16) => {
9283
- return fs57.exists(filename, resolve16);
9283
+ return fs58.exists(filename, resolve16);
9284
9284
  });
9285
9285
  };
9286
9286
  exports2.read = function(fd, buffer, offset, length, position, callback) {
9287
9287
  if (typeof callback === "function") {
9288
- return fs57.read(fd, buffer, offset, length, position, callback);
9288
+ return fs58.read(fd, buffer, offset, length, position, callback);
9289
9289
  }
9290
9290
  return new Promise((resolve16, reject) => {
9291
- fs57.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
9291
+ fs58.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
9292
9292
  if (err) return reject(err);
9293
9293
  resolve16({ bytesRead, buffer: buffer2 });
9294
9294
  });
@@ -9296,10 +9296,10 @@ var require_fs = __commonJS({
9296
9296
  };
9297
9297
  exports2.write = function(fd, buffer, ...args) {
9298
9298
  if (typeof args[args.length - 1] === "function") {
9299
- return fs57.write(fd, buffer, ...args);
9299
+ return fs58.write(fd, buffer, ...args);
9300
9300
  }
9301
9301
  return new Promise((resolve16, reject) => {
9302
- fs57.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
9302
+ fs58.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
9303
9303
  if (err) return reject(err);
9304
9304
  resolve16({ bytesWritten, buffer: buffer2 });
9305
9305
  });
@@ -9307,10 +9307,10 @@ var require_fs = __commonJS({
9307
9307
  };
9308
9308
  exports2.readv = function(fd, buffers, ...args) {
9309
9309
  if (typeof args[args.length - 1] === "function") {
9310
- return fs57.readv(fd, buffers, ...args);
9310
+ return fs58.readv(fd, buffers, ...args);
9311
9311
  }
9312
9312
  return new Promise((resolve16, reject) => {
9313
- fs57.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
9313
+ fs58.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
9314
9314
  if (err) return reject(err);
9315
9315
  resolve16({ bytesRead, buffers: buffers2 });
9316
9316
  });
@@ -9318,17 +9318,17 @@ var require_fs = __commonJS({
9318
9318
  };
9319
9319
  exports2.writev = function(fd, buffers, ...args) {
9320
9320
  if (typeof args[args.length - 1] === "function") {
9321
- return fs57.writev(fd, buffers, ...args);
9321
+ return fs58.writev(fd, buffers, ...args);
9322
9322
  }
9323
9323
  return new Promise((resolve16, reject) => {
9324
- fs57.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
9324
+ fs58.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
9325
9325
  if (err) return reject(err);
9326
9326
  resolve16({ bytesWritten, buffers: buffers2 });
9327
9327
  });
9328
9328
  });
9329
9329
  };
9330
- if (typeof fs57.realpath.native === "function") {
9331
- exports2.realpath.native = u(fs57.realpath.native);
9330
+ if (typeof fs58.realpath.native === "function") {
9331
+ exports2.realpath.native = u(fs58.realpath.native);
9332
9332
  } else {
9333
9333
  process.emitWarning(
9334
9334
  "fs.realpath.native is not a function. Is fs being monkey-patched?",
@@ -9361,7 +9361,7 @@ var require_utils = __commonJS({
9361
9361
  var require_make_dir = __commonJS({
9362
9362
  "../../node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
9363
9363
  "use strict";
9364
- var fs57 = require_fs();
9364
+ var fs58 = require_fs();
9365
9365
  var { checkPath } = require_utils();
9366
9366
  var getMode = /* @__PURE__ */ __name((options) => {
9367
9367
  const defaults = { mode: 511 };
@@ -9370,14 +9370,14 @@ var require_make_dir = __commonJS({
9370
9370
  }, "getMode");
9371
9371
  module2.exports.makeDir = async (dir, options) => {
9372
9372
  checkPath(dir);
9373
- return fs57.mkdir(dir, {
9373
+ return fs58.mkdir(dir, {
9374
9374
  mode: getMode(options),
9375
9375
  recursive: true
9376
9376
  });
9377
9377
  };
9378
9378
  module2.exports.makeDirSync = (dir, options) => {
9379
9379
  checkPath(dir);
9380
- return fs57.mkdirSync(dir, {
9380
+ return fs58.mkdirSync(dir, {
9381
9381
  mode: getMode(options),
9382
9382
  recursive: true
9383
9383
  });
@@ -9409,14 +9409,14 @@ var require_path_exists = __commonJS({
9409
9409
  "../../node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
9410
9410
  "use strict";
9411
9411
  var u = require_universalify().fromPromise;
9412
- var fs57 = require_fs();
9412
+ var fs58 = require_fs();
9413
9413
  function pathExists9(path54) {
9414
- return fs57.access(path54).then(() => true).catch(() => false);
9414
+ return fs58.access(path54).then(() => true).catch(() => false);
9415
9415
  }
9416
9416
  __name(pathExists9, "pathExists");
9417
9417
  module2.exports = {
9418
9418
  pathExists: u(pathExists9),
9419
- pathExistsSync: fs57.existsSync
9419
+ pathExistsSync: fs58.existsSync
9420
9420
  };
9421
9421
  }
9422
9422
  });
@@ -9425,18 +9425,18 @@ var require_path_exists = __commonJS({
9425
9425
  var require_utimes = __commonJS({
9426
9426
  "../../node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
9427
9427
  "use strict";
9428
- var fs57 = require_fs();
9428
+ var fs58 = require_fs();
9429
9429
  var u = require_universalify().fromPromise;
9430
9430
  async function utimesMillis(path54, atime, mtime) {
9431
- const fd = await fs57.open(path54, "r+");
9431
+ const fd = await fs58.open(path54, "r+");
9432
9432
  let error3 = null;
9433
9433
  try {
9434
- await fs57.futimes(fd, atime, mtime);
9434
+ await fs58.futimes(fd, atime, mtime);
9435
9435
  } catch (futimesErr) {
9436
9436
  error3 = futimesErr;
9437
9437
  } finally {
9438
9438
  try {
9439
- await fs57.close(fd);
9439
+ await fs58.close(fd);
9440
9440
  } catch (closeErr) {
9441
9441
  if (!error3) error3 = closeErr;
9442
9442
  }
@@ -9447,15 +9447,15 @@ var require_utimes = __commonJS({
9447
9447
  }
9448
9448
  __name(utimesMillis, "utimesMillis");
9449
9449
  function utimesMillisSync(path54, atime, mtime) {
9450
- const fd = fs57.openSync(path54, "r+");
9450
+ const fd = fs58.openSync(path54, "r+");
9451
9451
  let error3 = null;
9452
9452
  try {
9453
- fs57.futimesSync(fd, atime, mtime);
9453
+ fs58.futimesSync(fd, atime, mtime);
9454
9454
  } catch (futimesErr) {
9455
9455
  error3 = futimesErr;
9456
9456
  } finally {
9457
9457
  try {
9458
- fs57.closeSync(fd);
9458
+ fs58.closeSync(fd);
9459
9459
  } catch (closeErr) {
9460
9460
  if (!error3) error3 = closeErr;
9461
9461
  }
@@ -9476,11 +9476,11 @@ var require_utimes = __commonJS({
9476
9476
  var require_stat = __commonJS({
9477
9477
  "../../node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
9478
9478
  "use strict";
9479
- var fs57 = require_fs();
9479
+ var fs58 = require_fs();
9480
9480
  var path54 = require("path");
9481
9481
  var u = require_universalify().fromPromise;
9482
9482
  function getStats(src, dest, opts) {
9483
- const statFunc = opts.dereference ? (file) => fs57.stat(file, { bigint: true }) : (file) => fs57.lstat(file, { bigint: true });
9483
+ const statFunc = opts.dereference ? (file) => fs58.stat(file, { bigint: true }) : (file) => fs58.lstat(file, { bigint: true });
9484
9484
  return Promise.all([
9485
9485
  statFunc(src),
9486
9486
  statFunc(dest).catch((err) => {
@@ -9492,7 +9492,7 @@ var require_stat = __commonJS({
9492
9492
  __name(getStats, "getStats");
9493
9493
  function getStatsSync(src, dest, opts) {
9494
9494
  let destStat;
9495
- const statFunc = opts.dereference ? (file) => fs57.statSync(file, { bigint: true }) : (file) => fs57.lstatSync(file, { bigint: true });
9495
+ const statFunc = opts.dereference ? (file) => fs58.statSync(file, { bigint: true }) : (file) => fs58.lstatSync(file, { bigint: true });
9496
9496
  const srcStat = statFunc(src);
9497
9497
  try {
9498
9498
  destStat = statFunc(dest);
@@ -9557,7 +9557,7 @@ var require_stat = __commonJS({
9557
9557
  if (destParent === srcParent || destParent === path54.parse(destParent).root) return;
9558
9558
  let destStat;
9559
9559
  try {
9560
- destStat = await fs57.stat(destParent, { bigint: true });
9560
+ destStat = await fs58.stat(destParent, { bigint: true });
9561
9561
  } catch (err) {
9562
9562
  if (err.code === "ENOENT") return;
9563
9563
  throw err;
@@ -9574,7 +9574,7 @@ var require_stat = __commonJS({
9574
9574
  if (destParent === srcParent || destParent === path54.parse(destParent).root) return;
9575
9575
  let destStat;
9576
9576
  try {
9577
- destStat = fs57.statSync(destParent, { bigint: true });
9577
+ destStat = fs58.statSync(destParent, { bigint: true });
9578
9578
  } catch (err) {
9579
9579
  if (err.code === "ENOENT") return;
9580
9580
  throw err;
@@ -9646,12 +9646,12 @@ var require_async = __commonJS({
9646
9646
  var require_copy = __commonJS({
9647
9647
  "../../node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
9648
9648
  "use strict";
9649
- var fs57 = require_fs();
9649
+ var fs58 = require_fs();
9650
9650
  var path54 = require("path");
9651
9651
  var { mkdirs } = require_mkdirs();
9652
9652
  var { pathExists: pathExists9 } = require_path_exists();
9653
9653
  var { utimesMillis } = require_utimes();
9654
- var stat8 = require_stat();
9654
+ var stat9 = require_stat();
9655
9655
  var { asyncIteratorConcurrentProcess } = require_async();
9656
9656
  async function copy2(src, dest, opts = {}) {
9657
9657
  if (typeof opts === "function") {
@@ -9666,8 +9666,8 @@ var require_copy = __commonJS({
9666
9666
  "fs-extra-WARN0001"
9667
9667
  );
9668
9668
  }
9669
- const { srcStat, destStat } = await stat8.checkPaths(src, dest, "copy", opts);
9670
- await stat8.checkParentPaths(src, srcStat, dest, "copy");
9669
+ const { srcStat, destStat } = await stat9.checkPaths(src, dest, "copy", opts);
9670
+ await stat9.checkParentPaths(src, srcStat, dest, "copy");
9671
9671
  const include = await runFilter(src, dest, opts);
9672
9672
  if (!include) return;
9673
9673
  const destParent = path54.dirname(dest);
@@ -9684,7 +9684,7 @@ var require_copy = __commonJS({
9684
9684
  }
9685
9685
  __name(runFilter, "runFilter");
9686
9686
  async function getStatsAndPerformCopy(destStat, src, dest, opts) {
9687
- const statFn = opts.dereference ? fs57.stat : fs57.lstat;
9687
+ const statFn = opts.dereference ? fs58.stat : fs58.lstat;
9688
9688
  const srcStat = await statFn(src);
9689
9689
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
9690
9690
  if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -9697,7 +9697,7 @@ var require_copy = __commonJS({
9697
9697
  async function onFile(srcStat, destStat, src, dest, opts) {
9698
9698
  if (!destStat) return copyFile(srcStat, src, dest, opts);
9699
9699
  if (opts.overwrite) {
9700
- await fs57.unlink(dest);
9700
+ await fs58.unlink(dest);
9701
9701
  return copyFile(srcStat, src, dest, opts);
9702
9702
  }
9703
9703
  if (opts.errorOnExist) {
@@ -9706,15 +9706,15 @@ var require_copy = __commonJS({
9706
9706
  }
9707
9707
  __name(onFile, "onFile");
9708
9708
  async function copyFile(srcStat, src, dest, opts) {
9709
- await fs57.copyFile(src, dest);
9709
+ await fs58.copyFile(src, dest);
9710
9710
  if (opts.preserveTimestamps) {
9711
9711
  if (fileIsNotWritable(srcStat.mode)) {
9712
9712
  await makeFileWritable(dest, srcStat.mode);
9713
9713
  }
9714
- const updatedSrcStat = await fs57.stat(src);
9714
+ const updatedSrcStat = await fs58.stat(src);
9715
9715
  await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
9716
9716
  }
9717
- return fs57.chmod(dest, srcStat.mode);
9717
+ return fs58.chmod(dest, srcStat.mode);
9718
9718
  }
9719
9719
  __name(copyFile, "copyFile");
9720
9720
  function fileIsNotWritable(srcMode) {
@@ -9722,55 +9722,55 @@ var require_copy = __commonJS({
9722
9722
  }
9723
9723
  __name(fileIsNotWritable, "fileIsNotWritable");
9724
9724
  function makeFileWritable(dest, srcMode) {
9725
- return fs57.chmod(dest, srcMode | 128);
9725
+ return fs58.chmod(dest, srcMode | 128);
9726
9726
  }
9727
9727
  __name(makeFileWritable, "makeFileWritable");
9728
9728
  async function onDir(srcStat, destStat, src, dest, opts) {
9729
9729
  if (!destStat) {
9730
- await fs57.mkdir(dest);
9730
+ await fs58.mkdir(dest);
9731
9731
  }
9732
- await asyncIteratorConcurrentProcess(await fs57.opendir(src), async (item) => {
9732
+ await asyncIteratorConcurrentProcess(await fs58.opendir(src), async (item) => {
9733
9733
  const srcItem = path54.join(src, item.name);
9734
9734
  const destItem = path54.join(dest, item.name);
9735
9735
  const include = await runFilter(srcItem, destItem, opts);
9736
9736
  if (include) {
9737
- const { destStat: destStat2 } = await stat8.checkPaths(srcItem, destItem, "copy", opts);
9737
+ const { destStat: destStat2 } = await stat9.checkPaths(srcItem, destItem, "copy", opts);
9738
9738
  await getStatsAndPerformCopy(destStat2, srcItem, destItem, opts);
9739
9739
  }
9740
9740
  });
9741
9741
  if (!destStat) {
9742
- await fs57.chmod(dest, srcStat.mode);
9742
+ await fs58.chmod(dest, srcStat.mode);
9743
9743
  }
9744
9744
  }
9745
9745
  __name(onDir, "onDir");
9746
9746
  async function onLink(destStat, src, dest, opts) {
9747
- let resolvedSrc = await fs57.readlink(src);
9747
+ let resolvedSrc = await fs58.readlink(src);
9748
9748
  if (opts.dereference) {
9749
9749
  resolvedSrc = path54.resolve(process.cwd(), resolvedSrc);
9750
9750
  }
9751
9751
  if (!destStat) {
9752
- return fs57.symlink(resolvedSrc, dest);
9752
+ return fs58.symlink(resolvedSrc, dest);
9753
9753
  }
9754
9754
  let resolvedDest = null;
9755
9755
  try {
9756
- resolvedDest = await fs57.readlink(dest);
9756
+ resolvedDest = await fs58.readlink(dest);
9757
9757
  } catch (e6) {
9758
- if (e6.code === "EINVAL" || e6.code === "UNKNOWN") return fs57.symlink(resolvedSrc, dest);
9758
+ if (e6.code === "EINVAL" || e6.code === "UNKNOWN") return fs58.symlink(resolvedSrc, dest);
9759
9759
  throw e6;
9760
9760
  }
9761
9761
  if (opts.dereference) {
9762
9762
  resolvedDest = path54.resolve(process.cwd(), resolvedDest);
9763
9763
  }
9764
9764
  if (resolvedSrc !== resolvedDest) {
9765
- if (stat8.isSrcSubdir(resolvedSrc, resolvedDest)) {
9765
+ if (stat9.isSrcSubdir(resolvedSrc, resolvedDest)) {
9766
9766
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
9767
9767
  }
9768
- if (stat8.isSrcSubdir(resolvedDest, resolvedSrc)) {
9768
+ if (stat9.isSrcSubdir(resolvedDest, resolvedSrc)) {
9769
9769
  throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
9770
9770
  }
9771
9771
  }
9772
- await fs57.unlink(dest);
9773
- return fs57.symlink(resolvedSrc, dest);
9772
+ await fs58.unlink(dest);
9773
+ return fs58.symlink(resolvedSrc, dest);
9774
9774
  }
9775
9775
  __name(onLink, "onLink");
9776
9776
  module2.exports = copy2;
@@ -9781,11 +9781,11 @@ var require_copy = __commonJS({
9781
9781
  var require_copy_sync = __commonJS({
9782
9782
  "../../node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
9783
9783
  "use strict";
9784
- var fs57 = require_graceful_fs();
9784
+ var fs58 = require_graceful_fs();
9785
9785
  var path54 = require("path");
9786
9786
  var mkdirsSync2 = require_mkdirs().mkdirsSync;
9787
9787
  var utimesMillisSync = require_utimes().utimesMillisSync;
9788
- var stat8 = require_stat();
9788
+ var stat9 = require_stat();
9789
9789
  function copySync(src, dest, opts) {
9790
9790
  if (typeof opts === "function") {
9791
9791
  opts = { filter: opts };
@@ -9800,16 +9800,16 @@ var require_copy_sync = __commonJS({
9800
9800
  "fs-extra-WARN0002"
9801
9801
  );
9802
9802
  }
9803
- const { srcStat, destStat } = stat8.checkPathsSync(src, dest, "copy", opts);
9804
- stat8.checkParentPathsSync(src, srcStat, dest, "copy");
9803
+ const { srcStat, destStat } = stat9.checkPathsSync(src, dest, "copy", opts);
9804
+ stat9.checkParentPathsSync(src, srcStat, dest, "copy");
9805
9805
  if (opts.filter && !opts.filter(src, dest)) return;
9806
9806
  const destParent = path54.dirname(dest);
9807
- if (!fs57.existsSync(destParent)) mkdirsSync2(destParent);
9807
+ if (!fs58.existsSync(destParent)) mkdirsSync2(destParent);
9808
9808
  return getStats(destStat, src, dest, opts);
9809
9809
  }
9810
9810
  __name(copySync, "copySync");
9811
9811
  function getStats(destStat, src, dest, opts) {
9812
- const statSync3 = opts.dereference ? fs57.statSync : fs57.lstatSync;
9812
+ const statSync3 = opts.dereference ? fs58.statSync : fs58.lstatSync;
9813
9813
  const srcStat = statSync3(src);
9814
9814
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
9815
9815
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -9826,7 +9826,7 @@ var require_copy_sync = __commonJS({
9826
9826
  __name(onFile, "onFile");
9827
9827
  function mayCopyFile(srcStat, src, dest, opts) {
9828
9828
  if (opts.overwrite) {
9829
- fs57.unlinkSync(dest);
9829
+ fs58.unlinkSync(dest);
9830
9830
  return copyFile(srcStat, src, dest, opts);
9831
9831
  } else if (opts.errorOnExist) {
9832
9832
  throw new Error(`'${dest}' already exists`);
@@ -9834,7 +9834,7 @@ var require_copy_sync = __commonJS({
9834
9834
  }
9835
9835
  __name(mayCopyFile, "mayCopyFile");
9836
9836
  function copyFile(srcStat, src, dest, opts) {
9837
- fs57.copyFileSync(src, dest);
9837
+ fs58.copyFileSync(src, dest);
9838
9838
  if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
9839
9839
  return setDestMode(dest, srcStat.mode);
9840
9840
  }
@@ -9853,11 +9853,11 @@ var require_copy_sync = __commonJS({
9853
9853
  }
9854
9854
  __name(makeFileWritable, "makeFileWritable");
9855
9855
  function setDestMode(dest, srcMode) {
9856
- return fs57.chmodSync(dest, srcMode);
9856
+ return fs58.chmodSync(dest, srcMode);
9857
9857
  }
9858
9858
  __name(setDestMode, "setDestMode");
9859
9859
  function setDestTimestamps(src, dest) {
9860
- const updatedSrcStat = fs57.statSync(src);
9860
+ const updatedSrcStat = fs58.statSync(src);
9861
9861
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
9862
9862
  }
9863
9863
  __name(setDestTimestamps, "setDestTimestamps");
@@ -9867,13 +9867,13 @@ var require_copy_sync = __commonJS({
9867
9867
  }
9868
9868
  __name(onDir, "onDir");
9869
9869
  function mkDirAndCopy(srcMode, src, dest, opts) {
9870
- fs57.mkdirSync(dest);
9870
+ fs58.mkdirSync(dest);
9871
9871
  copyDir(src, dest, opts);
9872
9872
  return setDestMode(dest, srcMode);
9873
9873
  }
9874
9874
  __name(mkDirAndCopy, "mkDirAndCopy");
9875
9875
  function copyDir(src, dest, opts) {
9876
- const dir = fs57.opendirSync(src);
9876
+ const dir = fs58.opendirSync(src);
9877
9877
  try {
9878
9878
  let dirent;
9879
9879
  while ((dirent = dir.readSync()) !== null) {
@@ -9888,33 +9888,33 @@ var require_copy_sync = __commonJS({
9888
9888
  const srcItem = path54.join(src, item);
9889
9889
  const destItem = path54.join(dest, item);
9890
9890
  if (opts.filter && !opts.filter(srcItem, destItem)) return;
9891
- const { destStat } = stat8.checkPathsSync(srcItem, destItem, "copy", opts);
9891
+ const { destStat } = stat9.checkPathsSync(srcItem, destItem, "copy", opts);
9892
9892
  return getStats(destStat, srcItem, destItem, opts);
9893
9893
  }
9894
9894
  __name(copyDirItem, "copyDirItem");
9895
9895
  function onLink(destStat, src, dest, opts) {
9896
- let resolvedSrc = fs57.readlinkSync(src);
9896
+ let resolvedSrc = fs58.readlinkSync(src);
9897
9897
  if (opts.dereference) {
9898
9898
  resolvedSrc = path54.resolve(process.cwd(), resolvedSrc);
9899
9899
  }
9900
9900
  if (!destStat) {
9901
- return fs57.symlinkSync(resolvedSrc, dest);
9901
+ return fs58.symlinkSync(resolvedSrc, dest);
9902
9902
  } else {
9903
9903
  let resolvedDest;
9904
9904
  try {
9905
- resolvedDest = fs57.readlinkSync(dest);
9905
+ resolvedDest = fs58.readlinkSync(dest);
9906
9906
  } catch (err) {
9907
- if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs57.symlinkSync(resolvedSrc, dest);
9907
+ if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs58.symlinkSync(resolvedSrc, dest);
9908
9908
  throw err;
9909
9909
  }
9910
9910
  if (opts.dereference) {
9911
9911
  resolvedDest = path54.resolve(process.cwd(), resolvedDest);
9912
9912
  }
9913
9913
  if (resolvedSrc !== resolvedDest) {
9914
- if (stat8.isSrcSubdir(resolvedSrc, resolvedDest)) {
9914
+ if (stat9.isSrcSubdir(resolvedSrc, resolvedDest)) {
9915
9915
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
9916
9916
  }
9917
- if (stat8.isSrcSubdir(resolvedDest, resolvedSrc)) {
9917
+ if (stat9.isSrcSubdir(resolvedDest, resolvedSrc)) {
9918
9918
  throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
9919
9919
  }
9920
9920
  }
@@ -9923,8 +9923,8 @@ var require_copy_sync = __commonJS({
9923
9923
  }
9924
9924
  __name(onLink, "onLink");
9925
9925
  function copyLink(resolvedSrc, dest) {
9926
- fs57.unlinkSync(dest);
9927
- return fs57.symlinkSync(resolvedSrc, dest);
9926
+ fs58.unlinkSync(dest);
9927
+ return fs58.symlinkSync(resolvedSrc, dest);
9928
9928
  }
9929
9929
  __name(copyLink, "copyLink");
9930
9930
  module2.exports = copySync;
@@ -9947,14 +9947,14 @@ var require_copy2 = __commonJS({
9947
9947
  var require_remove = __commonJS({
9948
9948
  "../../node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
9949
9949
  "use strict";
9950
- var fs57 = require_graceful_fs();
9950
+ var fs58 = require_graceful_fs();
9951
9951
  var u = require_universalify().fromCallback;
9952
9952
  function remove2(path54, callback) {
9953
- fs57.rm(path54, { recursive: true, force: true }, callback);
9953
+ fs58.rm(path54, { recursive: true, force: true }, callback);
9954
9954
  }
9955
9955
  __name(remove2, "remove");
9956
9956
  function removeSync(path54) {
9957
- fs57.rmSync(path54, { recursive: true, force: true });
9957
+ fs58.rmSync(path54, { recursive: true, force: true });
9958
9958
  }
9959
9959
  __name(removeSync, "removeSync");
9960
9960
  module2.exports = {
@@ -9969,14 +9969,14 @@ var require_empty = __commonJS({
9969
9969
  "../../node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
9970
9970
  "use strict";
9971
9971
  var u = require_universalify().fromPromise;
9972
- var fs57 = require_fs();
9972
+ var fs58 = require_fs();
9973
9973
  var path54 = require("path");
9974
9974
  var mkdir2 = require_mkdirs();
9975
9975
  var remove2 = require_remove();
9976
9976
  var emptyDir = u(/* @__PURE__ */ __name(async function emptyDir2(dir) {
9977
9977
  let items;
9978
9978
  try {
9979
- items = await fs57.readdir(dir);
9979
+ items = await fs58.readdir(dir);
9980
9980
  } catch {
9981
9981
  return mkdir2.mkdirs(dir);
9982
9982
  }
@@ -9985,7 +9985,7 @@ var require_empty = __commonJS({
9985
9985
  function emptyDirSync(dir) {
9986
9986
  let items;
9987
9987
  try {
9988
- items = fs57.readdirSync(dir);
9988
+ items = fs58.readdirSync(dir);
9989
9989
  } catch {
9990
9990
  return mkdir2.mkdirsSync(dir);
9991
9991
  }
@@ -10010,52 +10010,52 @@ var require_file = __commonJS({
10010
10010
  "use strict";
10011
10011
  var u = require_universalify().fromPromise;
10012
10012
  var path54 = require("path");
10013
- var fs57 = require_fs();
10013
+ var fs58 = require_fs();
10014
10014
  var mkdir2 = require_mkdirs();
10015
10015
  async function createFile(file) {
10016
10016
  let stats;
10017
10017
  try {
10018
- stats = await fs57.stat(file);
10018
+ stats = await fs58.stat(file);
10019
10019
  } catch {
10020
10020
  }
10021
10021
  if (stats && stats.isFile()) return;
10022
10022
  const dir = path54.dirname(file);
10023
10023
  let dirStats = null;
10024
10024
  try {
10025
- dirStats = await fs57.stat(dir);
10025
+ dirStats = await fs58.stat(dir);
10026
10026
  } catch (err) {
10027
10027
  if (err.code === "ENOENT") {
10028
10028
  await mkdir2.mkdirs(dir);
10029
- await fs57.writeFile(file, "");
10029
+ await fs58.writeFile(file, "");
10030
10030
  return;
10031
10031
  } else {
10032
10032
  throw err;
10033
10033
  }
10034
10034
  }
10035
10035
  if (dirStats.isDirectory()) {
10036
- await fs57.writeFile(file, "");
10036
+ await fs58.writeFile(file, "");
10037
10037
  } else {
10038
- await fs57.readdir(dir);
10038
+ await fs58.readdir(dir);
10039
10039
  }
10040
10040
  }
10041
10041
  __name(createFile, "createFile");
10042
10042
  function createFileSync(file) {
10043
10043
  let stats;
10044
10044
  try {
10045
- stats = fs57.statSync(file);
10045
+ stats = fs58.statSync(file);
10046
10046
  } catch {
10047
10047
  }
10048
10048
  if (stats && stats.isFile()) return;
10049
10049
  const dir = path54.dirname(file);
10050
10050
  try {
10051
- if (!fs57.statSync(dir).isDirectory()) {
10052
- fs57.readdirSync(dir);
10051
+ if (!fs58.statSync(dir).isDirectory()) {
10052
+ fs58.readdirSync(dir);
10053
10053
  }
10054
10054
  } catch (err) {
10055
10055
  if (err && err.code === "ENOENT") mkdir2.mkdirsSync(dir);
10056
10056
  else throw err;
10057
10057
  }
10058
- fs57.writeFileSync(file, "");
10058
+ fs58.writeFileSync(file, "");
10059
10059
  }
10060
10060
  __name(createFileSync, "createFileSync");
10061
10061
  module2.exports = {
@@ -10071,19 +10071,19 @@ var require_link = __commonJS({
10071
10071
  "use strict";
10072
10072
  var u = require_universalify().fromPromise;
10073
10073
  var path54 = require("path");
10074
- var fs57 = require_fs();
10074
+ var fs58 = require_fs();
10075
10075
  var mkdir2 = require_mkdirs();
10076
10076
  var { pathExists: pathExists9 } = require_path_exists();
10077
10077
  var { areIdentical } = require_stat();
10078
10078
  async function createLink(srcpath, dstpath) {
10079
10079
  let dstStat;
10080
10080
  try {
10081
- dstStat = await fs57.lstat(dstpath, { bigint: true });
10081
+ dstStat = await fs58.lstat(dstpath, { bigint: true });
10082
10082
  } catch {
10083
10083
  }
10084
10084
  let srcStat;
10085
10085
  try {
10086
- srcStat = await fs57.lstat(srcpath, { bigint: true });
10086
+ srcStat = await fs58.lstat(srcpath, { bigint: true });
10087
10087
  } catch (err) {
10088
10088
  err.message = err.message.replace("lstat", "ensureLink");
10089
10089
  throw err;
@@ -10094,27 +10094,27 @@ var require_link = __commonJS({
10094
10094
  if (!dirExists) {
10095
10095
  await mkdir2.mkdirs(dir);
10096
10096
  }
10097
- await fs57.link(srcpath, dstpath);
10097
+ await fs58.link(srcpath, dstpath);
10098
10098
  }
10099
10099
  __name(createLink, "createLink");
10100
10100
  function createLinkSync(srcpath, dstpath) {
10101
10101
  let dstStat;
10102
10102
  try {
10103
- dstStat = fs57.lstatSync(dstpath, { bigint: true });
10103
+ dstStat = fs58.lstatSync(dstpath, { bigint: true });
10104
10104
  } catch {
10105
10105
  }
10106
10106
  try {
10107
- const srcStat = fs57.lstatSync(srcpath, { bigint: true });
10107
+ const srcStat = fs58.lstatSync(srcpath, { bigint: true });
10108
10108
  if (dstStat && areIdentical(srcStat, dstStat)) return;
10109
10109
  } catch (err) {
10110
10110
  err.message = err.message.replace("lstat", "ensureLink");
10111
10111
  throw err;
10112
10112
  }
10113
10113
  const dir = path54.dirname(dstpath);
10114
- const dirExists = fs57.existsSync(dir);
10115
- if (dirExists) return fs57.linkSync(srcpath, dstpath);
10114
+ const dirExists = fs58.existsSync(dir);
10115
+ if (dirExists) return fs58.linkSync(srcpath, dstpath);
10116
10116
  mkdir2.mkdirsSync(dir);
10117
- return fs57.linkSync(srcpath, dstpath);
10117
+ return fs58.linkSync(srcpath, dstpath);
10118
10118
  }
10119
10119
  __name(createLinkSync, "createLinkSync");
10120
10120
  module2.exports = {
@@ -10129,13 +10129,13 @@ var require_symlink_paths = __commonJS({
10129
10129
  "../../node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
10130
10130
  "use strict";
10131
10131
  var path54 = require("path");
10132
- var fs57 = require_fs();
10132
+ var fs58 = require_fs();
10133
10133
  var { pathExists: pathExists9 } = require_path_exists();
10134
10134
  var u = require_universalify().fromPromise;
10135
10135
  async function symlinkPaths(srcpath, dstpath) {
10136
10136
  if (path54.isAbsolute(srcpath)) {
10137
10137
  try {
10138
- await fs57.lstat(srcpath);
10138
+ await fs58.lstat(srcpath);
10139
10139
  } catch (err) {
10140
10140
  err.message = err.message.replace("lstat", "ensureSymlink");
10141
10141
  throw err;
@@ -10155,7 +10155,7 @@ var require_symlink_paths = __commonJS({
10155
10155
  };
10156
10156
  }
10157
10157
  try {
10158
- await fs57.lstat(srcpath);
10158
+ await fs58.lstat(srcpath);
10159
10159
  } catch (err) {
10160
10160
  err.message = err.message.replace("lstat", "ensureSymlink");
10161
10161
  throw err;
@@ -10168,7 +10168,7 @@ var require_symlink_paths = __commonJS({
10168
10168
  __name(symlinkPaths, "symlinkPaths");
10169
10169
  function symlinkPathsSync(srcpath, dstpath) {
10170
10170
  if (path54.isAbsolute(srcpath)) {
10171
- const exists2 = fs57.existsSync(srcpath);
10171
+ const exists2 = fs58.existsSync(srcpath);
10172
10172
  if (!exists2) throw new Error("absolute srcpath does not exist");
10173
10173
  return {
10174
10174
  toCwd: srcpath,
@@ -10177,14 +10177,14 @@ var require_symlink_paths = __commonJS({
10177
10177
  }
10178
10178
  const dstdir = path54.dirname(dstpath);
10179
10179
  const relativeToDst = path54.join(dstdir, srcpath);
10180
- const exists = fs57.existsSync(relativeToDst);
10180
+ const exists = fs58.existsSync(relativeToDst);
10181
10181
  if (exists) {
10182
10182
  return {
10183
10183
  toCwd: relativeToDst,
10184
10184
  toDst: srcpath
10185
10185
  };
10186
10186
  }
10187
- const srcExists = fs57.existsSync(srcpath);
10187
+ const srcExists = fs58.existsSync(srcpath);
10188
10188
  if (!srcExists) throw new Error("relative srcpath does not exist");
10189
10189
  return {
10190
10190
  toCwd: srcpath,
@@ -10203,13 +10203,13 @@ var require_symlink_paths = __commonJS({
10203
10203
  var require_symlink_type = __commonJS({
10204
10204
  "../../node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
10205
10205
  "use strict";
10206
- var fs57 = require_fs();
10206
+ var fs58 = require_fs();
10207
10207
  var u = require_universalify().fromPromise;
10208
10208
  async function symlinkType(srcpath, type) {
10209
10209
  if (type) return type;
10210
10210
  let stats;
10211
10211
  try {
10212
- stats = await fs57.lstat(srcpath);
10212
+ stats = await fs58.lstat(srcpath);
10213
10213
  } catch {
10214
10214
  return "file";
10215
10215
  }
@@ -10220,7 +10220,7 @@ var require_symlink_type = __commonJS({
10220
10220
  if (type) return type;
10221
10221
  let stats;
10222
10222
  try {
10223
- stats = fs57.lstatSync(srcpath);
10223
+ stats = fs58.lstatSync(srcpath);
10224
10224
  } catch {
10225
10225
  return "file";
10226
10226
  }
@@ -10240,7 +10240,7 @@ var require_symlink = __commonJS({
10240
10240
  "use strict";
10241
10241
  var u = require_universalify().fromPromise;
10242
10242
  var path54 = require("path");
10243
- var fs57 = require_fs();
10243
+ var fs58 = require_fs();
10244
10244
  var { mkdirs, mkdirsSync: mkdirsSync2 } = require_mkdirs();
10245
10245
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
10246
10246
  var { symlinkType, symlinkTypeSync } = require_symlink_type();
@@ -10249,23 +10249,23 @@ var require_symlink = __commonJS({
10249
10249
  async function createSymlink(srcpath, dstpath, type) {
10250
10250
  let stats;
10251
10251
  try {
10252
- stats = await fs57.lstat(dstpath);
10252
+ stats = await fs58.lstat(dstpath);
10253
10253
  } catch {
10254
10254
  }
10255
10255
  if (stats && stats.isSymbolicLink()) {
10256
10256
  let srcStat;
10257
10257
  if (path54.isAbsolute(srcpath)) {
10258
- srcStat = await fs57.stat(srcpath, { bigint: true });
10258
+ srcStat = await fs58.stat(srcpath, { bigint: true });
10259
10259
  } else {
10260
10260
  const dstdir = path54.dirname(dstpath);
10261
10261
  const relativeToDst = path54.join(dstdir, srcpath);
10262
10262
  try {
10263
- srcStat = await fs57.stat(relativeToDst, { bigint: true });
10263
+ srcStat = await fs58.stat(relativeToDst, { bigint: true });
10264
10264
  } catch {
10265
- srcStat = await fs57.stat(srcpath, { bigint: true });
10265
+ srcStat = await fs58.stat(srcpath, { bigint: true });
10266
10266
  }
10267
10267
  }
10268
- const dstStat = await fs57.stat(dstpath, { bigint: true });
10268
+ const dstStat = await fs58.stat(dstpath, { bigint: true });
10269
10269
  if (areIdentical(srcStat, dstStat)) return;
10270
10270
  }
10271
10271
  const relative6 = await symlinkPaths(srcpath, dstpath);
@@ -10275,39 +10275,39 @@ var require_symlink = __commonJS({
10275
10275
  if (!await pathExists9(dir)) {
10276
10276
  await mkdirs(dir);
10277
10277
  }
10278
- return fs57.symlink(srcpath, dstpath, toType);
10278
+ return fs58.symlink(srcpath, dstpath, toType);
10279
10279
  }
10280
10280
  __name(createSymlink, "createSymlink");
10281
10281
  function createSymlinkSync(srcpath, dstpath, type) {
10282
10282
  let stats;
10283
10283
  try {
10284
- stats = fs57.lstatSync(dstpath);
10284
+ stats = fs58.lstatSync(dstpath);
10285
10285
  } catch {
10286
10286
  }
10287
10287
  if (stats && stats.isSymbolicLink()) {
10288
10288
  let srcStat;
10289
10289
  if (path54.isAbsolute(srcpath)) {
10290
- srcStat = fs57.statSync(srcpath, { bigint: true });
10290
+ srcStat = fs58.statSync(srcpath, { bigint: true });
10291
10291
  } else {
10292
10292
  const dstdir = path54.dirname(dstpath);
10293
10293
  const relativeToDst = path54.join(dstdir, srcpath);
10294
10294
  try {
10295
- srcStat = fs57.statSync(relativeToDst, { bigint: true });
10295
+ srcStat = fs58.statSync(relativeToDst, { bigint: true });
10296
10296
  } catch {
10297
- srcStat = fs57.statSync(srcpath, { bigint: true });
10297
+ srcStat = fs58.statSync(srcpath, { bigint: true });
10298
10298
  }
10299
10299
  }
10300
- const dstStat = fs57.statSync(dstpath, { bigint: true });
10300
+ const dstStat = fs58.statSync(dstpath, { bigint: true });
10301
10301
  if (areIdentical(srcStat, dstStat)) return;
10302
10302
  }
10303
10303
  const relative6 = symlinkPathsSync(srcpath, dstpath);
10304
10304
  srcpath = relative6.toDst;
10305
10305
  type = symlinkTypeSync(relative6.toCwd, type);
10306
10306
  const dir = path54.dirname(dstpath);
10307
- const exists = fs57.existsSync(dir);
10308
- if (exists) return fs57.symlinkSync(srcpath, dstpath, type);
10307
+ const exists = fs58.existsSync(dir);
10308
+ if (exists) return fs58.symlinkSync(srcpath, dstpath, type);
10309
10309
  mkdirsSync2(dir);
10310
- return fs57.symlinkSync(srcpath, dstpath, type);
10310
+ return fs58.symlinkSync(srcpath, dstpath, type);
10311
10311
  }
10312
10312
  __name(createSymlinkSync, "createSymlinkSync");
10313
10313
  module2.exports = {
@@ -10377,9 +10377,9 @@ var require_jsonfile = __commonJS({
10377
10377
  if (typeof options === "string") {
10378
10378
  options = { encoding: options };
10379
10379
  }
10380
- const fs57 = options.fs || _fs;
10380
+ const fs58 = options.fs || _fs;
10381
10381
  const shouldThrow = "throws" in options ? options.throws : true;
10382
- let data2 = await universalify.fromCallback(fs57.readFile)(file, options);
10382
+ let data2 = await universalify.fromCallback(fs58.readFile)(file, options);
10383
10383
  data2 = stripBom(data2);
10384
10384
  let obj;
10385
10385
  try {
@@ -10395,15 +10395,15 @@ var require_jsonfile = __commonJS({
10395
10395
  return obj;
10396
10396
  }
10397
10397
  __name(_readFile, "_readFile");
10398
- var readFile11 = universalify.fromPromise(_readFile);
10399
- function readFileSync20(file, options = {}) {
10398
+ var readFile12 = universalify.fromPromise(_readFile);
10399
+ function readFileSync21(file, options = {}) {
10400
10400
  if (typeof options === "string") {
10401
10401
  options = { encoding: options };
10402
10402
  }
10403
- const fs57 = options.fs || _fs;
10403
+ const fs58 = options.fs || _fs;
10404
10404
  const shouldThrow = "throws" in options ? options.throws : true;
10405
10405
  try {
10406
- let content = fs57.readFileSync(file, options);
10406
+ let content = fs58.readFileSync(file, options);
10407
10407
  content = stripBom(content);
10408
10408
  return JSON.parse(content, options.reviver);
10409
10409
  } catch (err) {
@@ -10415,23 +10415,23 @@ var require_jsonfile = __commonJS({
10415
10415
  }
10416
10416
  }
10417
10417
  }
10418
- __name(readFileSync20, "readFileSync");
10418
+ __name(readFileSync21, "readFileSync");
10419
10419
  async function _writeFile(file, obj, options = {}) {
10420
- const fs57 = options.fs || _fs;
10420
+ const fs58 = options.fs || _fs;
10421
10421
  const str = stringify2(obj, options);
10422
- await universalify.fromCallback(fs57.writeFile)(file, str, options);
10422
+ await universalify.fromCallback(fs58.writeFile)(file, str, options);
10423
10423
  }
10424
10424
  __name(_writeFile, "_writeFile");
10425
10425
  var writeFile6 = universalify.fromPromise(_writeFile);
10426
10426
  function writeFileSync6(file, obj, options = {}) {
10427
- const fs57 = options.fs || _fs;
10427
+ const fs58 = options.fs || _fs;
10428
10428
  const str = stringify2(obj, options);
10429
- return fs57.writeFileSync(file, str, options);
10429
+ return fs58.writeFileSync(file, str, options);
10430
10430
  }
10431
10431
  __name(writeFileSync6, "writeFileSync");
10432
10432
  module2.exports = {
10433
- readFile: readFile11,
10434
- readFileSync: readFileSync20,
10433
+ readFile: readFile12,
10434
+ readFileSync: readFileSync21,
10435
10435
  writeFile: writeFile6,
10436
10436
  writeFileSync: writeFileSync6
10437
10437
  };
@@ -10458,7 +10458,7 @@ var require_output_file = __commonJS({
10458
10458
  "../../node_modules/fs-extra/lib/output-file/index.js"(exports2, module2) {
10459
10459
  "use strict";
10460
10460
  var u = require_universalify().fromPromise;
10461
- var fs57 = require_fs();
10461
+ var fs58 = require_fs();
10462
10462
  var path54 = require("path");
10463
10463
  var mkdir2 = require_mkdirs();
10464
10464
  var pathExists9 = require_path_exists().pathExists;
@@ -10467,15 +10467,15 @@ var require_output_file = __commonJS({
10467
10467
  if (!await pathExists9(dir)) {
10468
10468
  await mkdir2.mkdirs(dir);
10469
10469
  }
10470
- return fs57.writeFile(file, data2, encoding);
10470
+ return fs58.writeFile(file, data2, encoding);
10471
10471
  }
10472
10472
  __name(outputFile, "outputFile");
10473
10473
  function outputFileSync(file, ...args) {
10474
10474
  const dir = path54.dirname(file);
10475
- if (!fs57.existsSync(dir)) {
10475
+ if (!fs58.existsSync(dir)) {
10476
10476
  mkdir2.mkdirsSync(dir);
10477
10477
  }
10478
- fs57.writeFileSync(file, ...args);
10478
+ fs58.writeFileSync(file, ...args);
10479
10479
  }
10480
10480
  __name(outputFileSync, "outputFileSync");
10481
10481
  module2.exports = {
@@ -10537,17 +10537,17 @@ var require_json = __commonJS({
10537
10537
  var require_move = __commonJS({
10538
10538
  "../../node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
10539
10539
  "use strict";
10540
- var fs57 = require_fs();
10540
+ var fs58 = require_fs();
10541
10541
  var path54 = require("path");
10542
10542
  var { copy: copy2 } = require_copy2();
10543
10543
  var { remove: remove2 } = require_remove();
10544
10544
  var { mkdirp: mkdirp2 } = require_mkdirs();
10545
10545
  var { pathExists: pathExists9 } = require_path_exists();
10546
- var stat8 = require_stat();
10546
+ var stat9 = require_stat();
10547
10547
  async function move(src, dest, opts = {}) {
10548
10548
  const overwrite = opts.overwrite || opts.clobber || false;
10549
- const { srcStat, isChangingCase = false } = await stat8.checkPaths(src, dest, "move", opts);
10550
- await stat8.checkParentPaths(src, srcStat, dest, "move");
10549
+ const { srcStat, isChangingCase = false } = await stat9.checkPaths(src, dest, "move", opts);
10550
+ await stat9.checkParentPaths(src, srcStat, dest, "move");
10551
10551
  const destParent = path54.dirname(dest);
10552
10552
  const parsedParentPath = path54.parse(destParent);
10553
10553
  if (parsedParentPath.root !== destParent) {
@@ -10565,7 +10565,7 @@ var require_move = __commonJS({
10565
10565
  }
10566
10566
  }
10567
10567
  try {
10568
- await fs57.rename(src, dest);
10568
+ await fs58.rename(src, dest);
10569
10569
  } catch (err) {
10570
10570
  if (err.code !== "EXDEV") {
10571
10571
  throw err;
@@ -10592,17 +10592,17 @@ var require_move = __commonJS({
10592
10592
  var require_move_sync = __commonJS({
10593
10593
  "../../node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
10594
10594
  "use strict";
10595
- var fs57 = require_graceful_fs();
10595
+ var fs58 = require_graceful_fs();
10596
10596
  var path54 = require("path");
10597
10597
  var copySync = require_copy2().copySync;
10598
10598
  var removeSync = require_remove().removeSync;
10599
10599
  var mkdirpSync2 = require_mkdirs().mkdirpSync;
10600
- var stat8 = require_stat();
10600
+ var stat9 = require_stat();
10601
10601
  function moveSync(src, dest, opts) {
10602
10602
  opts = opts || {};
10603
10603
  const overwrite = opts.overwrite || opts.clobber || false;
10604
- const { srcStat, isChangingCase = false } = stat8.checkPathsSync(src, dest, "move", opts);
10605
- stat8.checkParentPathsSync(src, srcStat, dest, "move");
10604
+ const { srcStat, isChangingCase = false } = stat9.checkPathsSync(src, dest, "move", opts);
10605
+ stat9.checkParentPathsSync(src, srcStat, dest, "move");
10606
10606
  if (!isParentRoot(dest)) mkdirpSync2(path54.dirname(dest));
10607
10607
  return doRename(src, dest, overwrite, isChangingCase);
10608
10608
  }
@@ -10619,13 +10619,13 @@ var require_move_sync = __commonJS({
10619
10619
  removeSync(dest);
10620
10620
  return rename(src, dest, overwrite);
10621
10621
  }
10622
- if (fs57.existsSync(dest)) throw new Error("dest already exists.");
10622
+ if (fs58.existsSync(dest)) throw new Error("dest already exists.");
10623
10623
  return rename(src, dest, overwrite);
10624
10624
  }
10625
10625
  __name(doRename, "doRename");
10626
10626
  function rename(src, dest, overwrite) {
10627
10627
  try {
10628
- fs57.renameSync(src, dest);
10628
+ fs58.renameSync(src, dest);
10629
10629
  } catch (err) {
10630
10630
  if (err.code !== "EXDEV") throw err;
10631
10631
  return moveAcrossDevice(src, dest, overwrite);
@@ -11640,9 +11640,9 @@ var require_path = __commonJS({
11640
11640
  "use strict";
11641
11641
  Object.defineProperty(exports2, "__esModule", { value: true });
11642
11642
  exports2.convertPosixPathToPattern = exports2.convertWindowsPathToPattern = exports2.convertPathToPattern = exports2.escapePosixPath = exports2.escapeWindowsPath = exports2.escape = exports2.removeLeadingDotSegment = exports2.makeAbsolute = exports2.unixify = void 0;
11643
- var os14 = require("os");
11643
+ var os15 = require("os");
11644
11644
  var path54 = require("path");
11645
- var IS_WINDOWS_PLATFORM = os14.platform() === "win32";
11645
+ var IS_WINDOWS_PLATFORM = os15.platform() === "win32";
11646
11646
  var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
11647
11647
  var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
11648
11648
  var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
@@ -15243,8 +15243,8 @@ var require_utils5 = __commonJS({
15243
15243
  exports2.array = array;
15244
15244
  var errno = require_errno();
15245
15245
  exports2.errno = errno;
15246
- var fs57 = require_fs2();
15247
- exports2.fs = fs57;
15246
+ var fs58 = require_fs2();
15247
+ exports2.fs = fs58;
15248
15248
  var path54 = require_path();
15249
15249
  exports2.path = path54;
15250
15250
  var pattern = require_pattern();
@@ -15376,7 +15376,7 @@ var require_async2 = __commonJS({
15376
15376
  callSuccessCallback(callback, lstat3);
15377
15377
  return;
15378
15378
  }
15379
- settings.fs.stat(path54, (statError, stat8) => {
15379
+ settings.fs.stat(path54, (statError, stat9) => {
15380
15380
  if (statError !== null) {
15381
15381
  if (settings.throwErrorOnBrokenSymbolicLink) {
15382
15382
  callFailureCallback(callback, statError);
@@ -15386,9 +15386,9 @@ var require_async2 = __commonJS({
15386
15386
  return;
15387
15387
  }
15388
15388
  if (settings.markSymbolicLink) {
15389
- stat8.isSymbolicLink = () => true;
15389
+ stat9.isSymbolicLink = () => true;
15390
15390
  }
15391
- callSuccessCallback(callback, stat8);
15391
+ callSuccessCallback(callback, stat9);
15392
15392
  });
15393
15393
  });
15394
15394
  }
@@ -15417,11 +15417,11 @@ var require_sync = __commonJS({
15417
15417
  return lstat3;
15418
15418
  }
15419
15419
  try {
15420
- const stat8 = settings.fs.statSync(path54);
15420
+ const stat9 = settings.fs.statSync(path54);
15421
15421
  if (settings.markSymbolicLink) {
15422
- stat8.isSymbolicLink = () => true;
15422
+ stat9.isSymbolicLink = () => true;
15423
15423
  }
15424
- return stat8;
15424
+ return stat9;
15425
15425
  } catch (error3) {
15426
15426
  if (!settings.throwErrorOnBrokenSymbolicLink) {
15427
15427
  return lstat3;
@@ -15440,12 +15440,12 @@ var require_fs3 = __commonJS({
15440
15440
  "use strict";
15441
15441
  Object.defineProperty(exports2, "__esModule", { value: true });
15442
15442
  exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
15443
- var fs57 = require("fs");
15443
+ var fs58 = require("fs");
15444
15444
  exports2.FILE_SYSTEM_ADAPTER = {
15445
- lstat: fs57.lstat,
15446
- stat: fs57.stat,
15447
- lstatSync: fs57.lstatSync,
15448
- statSync: fs57.statSync
15445
+ lstat: fs58.lstat,
15446
+ stat: fs58.stat,
15447
+ lstatSync: fs58.lstatSync,
15448
+ statSync: fs58.statSync
15449
15449
  };
15450
15450
  function createFileSystemAdapter(fsMethods) {
15451
15451
  if (fsMethods === void 0) {
@@ -15463,7 +15463,7 @@ var require_settings = __commonJS({
15463
15463
  "../../node_modules/@nodelib/fs.stat/out/settings.js"(exports2) {
15464
15464
  "use strict";
15465
15465
  Object.defineProperty(exports2, "__esModule", { value: true });
15466
- var fs57 = require_fs3();
15466
+ var fs58 = require_fs3();
15467
15467
  var Settings2 = class {
15468
15468
  static {
15469
15469
  __name(this, "Settings");
@@ -15471,7 +15471,7 @@ var require_settings = __commonJS({
15471
15471
  constructor(_options = {}) {
15472
15472
  this._options = _options;
15473
15473
  this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
15474
- this.fs = fs57.createFileSystemAdapter(this._options.fs);
15474
+ this.fs = fs58.createFileSystemAdapter(this._options.fs);
15475
15475
  this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
15476
15476
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
15477
15477
  }
@@ -15493,15 +15493,15 @@ var require_out = __commonJS({
15493
15493
  var sync = require_sync();
15494
15494
  var settings_1 = require_settings();
15495
15495
  exports2.Settings = settings_1.default;
15496
- function stat8(path54, optionsOrSettingsOrCallback, callback) {
15496
+ function stat9(path54, optionsOrSettingsOrCallback, callback) {
15497
15497
  if (typeof optionsOrSettingsOrCallback === "function") {
15498
15498
  async.read(path54, getSettings(), optionsOrSettingsOrCallback);
15499
15499
  return;
15500
15500
  }
15501
15501
  async.read(path54, getSettings(optionsOrSettingsOrCallback), callback);
15502
15502
  }
15503
- __name(stat8, "stat");
15504
- exports2.stat = stat8;
15503
+ __name(stat9, "stat");
15504
+ exports2.stat = stat9;
15505
15505
  function statSync3(path54, optionsOrSettings) {
15506
15506
  const settings = getSettings(optionsOrSettings);
15507
15507
  return sync.read(path54, settings);
@@ -15637,8 +15637,8 @@ var require_utils6 = __commonJS({
15637
15637
  "use strict";
15638
15638
  Object.defineProperty(exports2, "__esModule", { value: true });
15639
15639
  exports2.fs = void 0;
15640
- var fs57 = require_fs4();
15641
- exports2.fs = fs57;
15640
+ var fs58 = require_fs4();
15641
+ exports2.fs = fs58;
15642
15642
  }
15643
15643
  });
15644
15644
 
@@ -15843,14 +15843,14 @@ var require_fs5 = __commonJS({
15843
15843
  "use strict";
15844
15844
  Object.defineProperty(exports2, "__esModule", { value: true });
15845
15845
  exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
15846
- var fs57 = require("fs");
15846
+ var fs58 = require("fs");
15847
15847
  exports2.FILE_SYSTEM_ADAPTER = {
15848
- lstat: fs57.lstat,
15849
- stat: fs57.stat,
15850
- lstatSync: fs57.lstatSync,
15851
- statSync: fs57.statSync,
15852
- readdir: fs57.readdir,
15853
- readdirSync: fs57.readdirSync
15848
+ lstat: fs58.lstat,
15849
+ stat: fs58.stat,
15850
+ lstatSync: fs58.lstatSync,
15851
+ statSync: fs58.statSync,
15852
+ readdir: fs58.readdir,
15853
+ readdirSync: fs58.readdirSync
15854
15854
  };
15855
15855
  function createFileSystemAdapter(fsMethods) {
15856
15856
  if (fsMethods === void 0) {
@@ -15870,7 +15870,7 @@ var require_settings2 = __commonJS({
15870
15870
  Object.defineProperty(exports2, "__esModule", { value: true });
15871
15871
  var path54 = require("path");
15872
15872
  var fsStat = require_out();
15873
- var fs57 = require_fs5();
15873
+ var fs58 = require_fs5();
15874
15874
  var Settings2 = class {
15875
15875
  static {
15876
15876
  __name(this, "Settings");
@@ -15878,7 +15878,7 @@ var require_settings2 = __commonJS({
15878
15878
  constructor(_options = {}) {
15879
15879
  this._options = _options;
15880
15880
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
15881
- this.fs = fs57.createFileSystemAdapter(this._options.fs);
15881
+ this.fs = fs58.createFileSystemAdapter(this._options.fs);
15882
15882
  this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path54.sep);
15883
15883
  this.stats = this._getValue(this._options.stats, false);
15884
15884
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
@@ -17359,16 +17359,16 @@ var require_settings4 = __commonJS({
17359
17359
  "use strict";
17360
17360
  Object.defineProperty(exports2, "__esModule", { value: true });
17361
17361
  exports2.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
17362
- var fs57 = require("fs");
17363
- var os14 = require("os");
17364
- var CPU_COUNT = Math.max(os14.cpus().length, 1);
17362
+ var fs58 = require("fs");
17363
+ var os15 = require("os");
17364
+ var CPU_COUNT = Math.max(os15.cpus().length, 1);
17365
17365
  exports2.DEFAULT_FILE_SYSTEM_ADAPTER = {
17366
- lstat: fs57.lstat,
17367
- lstatSync: fs57.lstatSync,
17368
- stat: fs57.stat,
17369
- statSync: fs57.statSync,
17370
- readdir: fs57.readdir,
17371
- readdirSync: fs57.readdirSync
17366
+ lstat: fs58.lstat,
17367
+ lstatSync: fs58.lstatSync,
17368
+ stat: fs58.stat,
17369
+ statSync: fs58.statSync,
17370
+ readdir: fs58.readdir,
17371
+ readdirSync: fs58.readdirSync
17372
17372
  };
17373
17373
  var Settings2 = class {
17374
17374
  static {
@@ -17846,7 +17846,7 @@ var require_dist = __commonJS({
17846
17846
  // ../../node_modules/yazl/index.js
17847
17847
  var require_yazl = __commonJS({
17848
17848
  "../../node_modules/yazl/index.js"(exports2) {
17849
- var fs57 = require("fs");
17849
+ var fs58 = require("fs");
17850
17850
  var Transform = require("stream").Transform;
17851
17851
  var PassThrough2 = require("stream").PassThrough;
17852
17852
  var zlib2 = require("zlib");
@@ -17877,14 +17877,14 @@ var require_yazl = __commonJS({
17877
17877
  if (shouldIgnoreAdding(self2)) return;
17878
17878
  var entry = new Entry(metadataPath, false, options);
17879
17879
  self2.entries.push(entry);
17880
- fs57.stat(realPath, function(err, stats) {
17880
+ fs58.stat(realPath, function(err, stats) {
17881
17881
  if (err) return self2.emit("error", err);
17882
17882
  if (!stats.isFile()) return self2.emit("error", new Error("not a file: " + realPath));
17883
17883
  entry.uncompressedSize = stats.size;
17884
17884
  if (options.mtime == null) entry.setLastModDate(stats.mtime);
17885
17885
  if (options.mode == null) entry.setFileAttributesMode(stats.mode);
17886
17886
  entry.setFileDataPumpFunction(function() {
17887
- var readStream = fs57.createReadStream(realPath);
17887
+ var readStream = fs58.createReadStream(realPath);
17888
17888
  entry.state = Entry.FILE_DATA_IN_PROGRESS;
17889
17889
  readStream.on("error", function(err2) {
17890
17890
  self2.emit("error", err2);
@@ -18603,11 +18603,11 @@ var require_zip = __commonJS({
18603
18603
  zip2.outputStream.pipe(output);
18604
18604
  for (const file of files) {
18605
18605
  const fullPath = path54.resolve(directory, file);
18606
- const [data2, stat8] = await Promise.all([fs_1.promises.readFile(fullPath), fs_1.promises.stat(fullPath)]);
18606
+ const [data2, stat9] = await Promise.all([fs_1.promises.readFile(fullPath), fs_1.promises.stat(fullPath)]);
18607
18607
  zip2.addBuffer(data2, file, {
18608
18608
  mtime: epoch(),
18609
18609
  // reset dates to get the same hash for the same content
18610
- mode: stat8.mode,
18610
+ mode: stat9.mode,
18611
18611
  // Only emit the DOS timestamp (no UTC "universal time" extended field),
18612
18612
  // so the archive bytes do not depend on the machine's timezone.
18613
18613
  forceDosTimestamp: true
@@ -35533,7 +35533,7 @@ var require_dist_cjs6 = __commonJS({
35533
35533
  var { setCredentialFeature: setCredentialFeature2 } = (init_client3(), __toCommonJS(client_exports2));
35534
35534
  var { CredentialsProviderError: CredentialsProviderError2 } = (init_config2(), __toCommonJS(config_exports));
35535
35535
  var { NodeHttpHandler } = require_dist_cjs5();
35536
- var fs57 = require("node:fs/promises");
35536
+ var fs58 = require("node:fs/promises");
35537
35537
  var { HttpRequest: HttpRequest2 } = (init_protocols(), __toCommonJS(protocols_exports));
35538
35538
  var { sdkStreamMixin: sdkStreamMixin3, parseRfc3339DateTime: parseRfc3339DateTime2 } = (init_serde(), __toCommonJS(serde_exports));
35539
35539
  var ECS_CONTAINER_HOST = "169.254.170.2";
@@ -35661,7 +35661,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
35661
35661
  if (token) {
35662
35662
  request4.headers.Authorization = token;
35663
35663
  } else if (tokenFile) {
35664
- request4.headers.Authorization = (await fs57.readFile(tokenFile)).toString();
35664
+ request4.headers.Authorization = (await fs58.readFile(tokenFile)).toString();
35665
35665
  }
35666
35666
  try {
35667
35667
  const result2 = await requestHandler.handle(request4, { requestTimeout });
@@ -42421,12 +42421,12 @@ var init_signin = __esm({
42421
42421
  var require_dist_cjs10 = __commonJS({
42422
42422
  "../../node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js"(exports2) {
42423
42423
  var { setCredentialFeature: setCredentialFeature2 } = (init_client3(), __toCommonJS(client_exports2));
42424
- var { CredentialsProviderError: CredentialsProviderError2, readFile: readFile11, parseKnownFiles: parseKnownFiles2, getProfileName: getProfileName2 } = (init_config2(), __toCommonJS(config_exports));
42424
+ var { CredentialsProviderError: CredentialsProviderError2, readFile: readFile12, parseKnownFiles: parseKnownFiles2, getProfileName: getProfileName2 } = (init_config2(), __toCommonJS(config_exports));
42425
42425
  var { HttpRequest: HttpRequest2 } = (init_protocols(), __toCommonJS(protocols_exports));
42426
42426
  var { createHash: createHash8, createPrivateKey, createPublicKey, sign: sign3 } = require("node:crypto");
42427
42427
  var { promises: promises8 } = require("node:fs");
42428
- var { homedir: homedir7 } = require("node:os");
42429
- var { dirname: dirname17, join: join54 } = require("node:path");
42428
+ var { homedir: homedir8 } = require("node:os");
42429
+ var { dirname: dirname17, join: join55 } = require("node:path");
42430
42430
  var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
42431
42431
  static {
42432
42432
  __name(this, "LoginCredentialsFetcher");
@@ -42552,7 +42552,7 @@ var require_dist_cjs10 = __commonJS({
42552
42552
  try {
42553
42553
  let tokenData;
42554
42554
  try {
42555
- tokenData = await readFile11(tokenFilePath, { ignoreCache: this.init?.ignoreCache });
42555
+ tokenData = await readFile12(tokenFilePath, { ignoreCache: this.init?.ignoreCache });
42556
42556
  } catch {
42557
42557
  tokenData = await promises8.readFile(tokenFilePath, "utf8");
42558
42558
  }
@@ -42585,10 +42585,10 @@ var require_dist_cjs10 = __commonJS({
42585
42585
  await promises8.writeFile(tokenFilePath, JSON.stringify(token, null, 2), "utf8");
42586
42586
  }
42587
42587
  getTokenFilePath() {
42588
- const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ?? join54(homedir7(), ".aws", "login", "cache");
42588
+ const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ?? join55(homedir8(), ".aws", "login", "cache");
42589
42589
  const loginSessionBytes = Buffer.from(this.loginSession, "utf8");
42590
42590
  const loginSessionSha256 = createHash8("sha256").update(loginSessionBytes).digest("hex");
42591
- return join54(directory, `${loginSessionSha256}.json`);
42591
+ return join55(directory, `${loginSessionSha256}.json`);
42592
42592
  }
42593
42593
  derToRawSignature(derSignature) {
42594
42594
  let offset = 2;
@@ -44171,7 +44171,7 @@ var require_dist_cjs13 = __commonJS({
44171
44171
  "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2) {
44172
44172
  var { setCredentialFeature: setCredentialFeature2 } = (init_client3(), __toCommonJS(client_exports2));
44173
44173
  var { CredentialsProviderError: CredentialsProviderError2, externalDataInterceptor: externalDataInterceptor2 } = (init_config2(), __toCommonJS(config_exports));
44174
- var { readFileSync: readFileSync20 } = require("node:fs");
44174
+ var { readFileSync: readFileSync21 } = require("node:fs");
44175
44175
  var fromWebToken = /* @__PURE__ */ __name((init) => async (awsIdentityProperties) => {
44176
44176
  init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
44177
44177
  const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
@@ -44212,7 +44212,7 @@ var require_dist_cjs13 = __commonJS({
44212
44212
  }
44213
44213
  const credentials = await fromWebToken({
44214
44214
  ...init,
44215
- webIdentityToken: externalDataInterceptor2?.getTokenRecord?.()[webIdentityTokenFile] ?? readFileSync20(webIdentityTokenFile, { encoding: "ascii" }),
44215
+ webIdentityToken: externalDataInterceptor2?.getTokenRecord?.()[webIdentityTokenFile] ?? readFileSync21(webIdentityTokenFile, { encoding: "ascii" }),
44216
44216
  roleArn,
44217
44217
  roleSessionName
44218
44218
  })(awsIdentityProperties);
@@ -69049,7 +69049,7 @@ var require_has_flag = __commonJS({
69049
69049
  var require_supports_color = __commonJS({
69050
69050
  "../../node_modules/supports-color/index.js"(exports2, module2) {
69051
69051
  "use strict";
69052
- var os14 = require("os");
69052
+ var os15 = require("os");
69053
69053
  var tty = require("tty");
69054
69054
  var hasFlag = require_has_flag();
69055
69055
  var { env: env3 } = process;
@@ -69098,7 +69098,7 @@ var require_supports_color = __commonJS({
69098
69098
  return min;
69099
69099
  }
69100
69100
  if (process.platform === "win32") {
69101
- const osRelease = os14.release().split(".");
69101
+ const osRelease = os15.release().split(".");
69102
69102
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
69103
69103
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
69104
69104
  }
@@ -275685,12 +275685,12 @@ function isEc2Instance() {
275685
275685
  return cachedIsEc2;
275686
275686
  }
275687
275687
  function detectEc2() {
275688
- const os14 = (0, import_node_os3.platform)();
275688
+ const os15 = (0, import_node_os3.platform)();
275689
275689
  try {
275690
- if (os14 === "linux") {
275690
+ if (os15 === "linux") {
275691
275691
  return detectEc2Linux();
275692
275692
  }
275693
- if (os14 === "win32") {
275693
+ if (os15 === "win32") {
275694
275694
  return detectEc2Windows();
275695
275695
  }
275696
275696
  return false;
@@ -278176,7 +278176,7 @@ var require_cloud_artifact = __commonJS({
278176
278176
  "use strict";
278177
278177
  Object.defineProperty(exports2, "__esModule", { value: true });
278178
278178
  exports2.CloudArtifact = void 0;
278179
- var fs57 = require("fs");
278179
+ var fs58 = require("fs");
278180
278180
  var path54 = require("path");
278181
278181
  var cxschema12 = require_lib2();
278182
278182
  var metadata_1 = require_metadata();
@@ -278199,7 +278199,7 @@ var require_cloud_artifact = __commonJS({
278199
278199
  static readMetadata(assemblyDirectory, x) {
278200
278200
  const ret = {};
278201
278201
  if (x.additionalMetadataFile) {
278202
- Object.assign(ret, JSON.parse(fs57.readFileSync(path54.join(assemblyDirectory, x.additionalMetadataFile), "utf-8")));
278202
+ Object.assign(ret, JSON.parse(fs58.readFileSync(path54.join(assemblyDirectory, x.additionalMetadataFile), "utf-8")));
278203
278203
  }
278204
278204
  for (const [p3, entries] of Object.entries(x.metadata ?? {})) {
278205
278205
  if (ret[p3]) {
@@ -278308,7 +278308,7 @@ var require_asset_manifest_artifact = __commonJS({
278308
278308
  "use strict";
278309
278309
  Object.defineProperty(exports2, "__esModule", { value: true });
278310
278310
  exports2.AssetManifestArtifact = void 0;
278311
- var fs57 = require("fs");
278311
+ var fs58 = require("fs");
278312
278312
  var path54 = require("path");
278313
278313
  var cloud_artifact_1 = require_cloud_artifact();
278314
278314
  var error_1 = require_error2();
@@ -278354,7 +278354,7 @@ var require_asset_manifest_artifact = __commonJS({
278354
278354
  if (this._contents !== void 0) {
278355
278355
  return this._contents;
278356
278356
  }
278357
- const contents = this._contents = JSON.parse(fs57.readFileSync(this.file, "utf-8"));
278357
+ const contents = this._contents = JSON.parse(fs58.readFileSync(this.file, "utf-8"));
278358
278358
  return contents;
278359
278359
  }
278360
278360
  };
@@ -278415,7 +278415,7 @@ var require_cloudformation_artifact = __commonJS({
278415
278415
  "use strict";
278416
278416
  Object.defineProperty(exports2, "__esModule", { value: true });
278417
278417
  exports2.CloudFormationStackArtifact = void 0;
278418
- var fs57 = require("fs");
278418
+ var fs58 = require("fs");
278419
278419
  var path54 = require("path");
278420
278420
  var cxschema12 = require_lib2();
278421
278421
  var cloud_artifact_1 = require_cloud_artifact();
@@ -278487,7 +278487,7 @@ var require_cloudformation_artifact = __commonJS({
278487
278487
  */
278488
278488
  get template() {
278489
278489
  if (this._template === void 0) {
278490
- this._template = JSON.parse(fs57.readFileSync(this.templateFullPath, "utf-8"));
278490
+ this._template = JSON.parse(fs58.readFileSync(this.templateFullPath, "utf-8"));
278491
278491
  }
278492
278492
  return this._template;
278493
278493
  }
@@ -278672,8 +278672,8 @@ var require_cloud_assembly = __commonJS({
278672
278672
  "use strict";
278673
278673
  Object.defineProperty(exports2, "__esModule", { value: true });
278674
278674
  exports2.CloudAssemblyBuilder = exports2.CloudAssembly = void 0;
278675
- var fs57 = require("fs");
278676
- var os14 = require("os");
278675
+ var fs58 = require("fs");
278676
+ var os15 = require("os");
278677
278677
  var path54 = require("path");
278678
278678
  var cxschema12 = require_lib2();
278679
278679
  var cloudformation_artifact_1 = require_cloudformation_artifact();
@@ -278738,7 +278738,7 @@ var require_cloud_assembly = __commonJS({
278738
278738
  */
278739
278739
  static cleanupTemporaryDirectories() {
278740
278740
  for (const dir of TEMPORARY_ASSEMBLY_DIRS2) {
278741
- fs57.rmSync(dir, { recursive: true, force: true });
278741
+ fs58.rmSync(dir, { recursive: true, force: true });
278742
278742
  }
278743
278743
  TEMPORARY_ASSEMBLY_DIRS2.splice(0, TEMPORARY_ASSEMBLY_DIRS2.length);
278744
278744
  }
@@ -278953,7 +278953,7 @@ var require_cloud_assembly = __commonJS({
278953
278953
  manifest = filterUndefined2(manifest);
278954
278954
  const manifestFilePath = path54.join(this.outdir, MANIFEST_FILE4);
278955
278955
  cxschema12.Manifest.saveAssemblyManifest(manifest, manifestFilePath);
278956
- fs57.writeFileSync(path54.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
278956
+ fs58.writeFileSync(path54.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
278957
278957
  return new CloudAssembly8(this.outdir);
278958
278958
  }
278959
278959
  /**
@@ -278979,7 +278979,7 @@ var require_cloud_assembly = __commonJS({
278979
278979
  * Delete the cloud assembly directory
278980
278980
  */
278981
278981
  delete() {
278982
- fs57.rmSync(this.outdir, { recursive: true, force: true });
278982
+ fs58.rmSync(this.outdir, { recursive: true, force: true });
278983
278983
  }
278984
278984
  };
278985
278985
  exports2.CloudAssemblyBuilder = CloudAssemblyBuilder3;
@@ -279008,18 +279008,18 @@ var require_cloud_assembly = __commonJS({
279008
279008
  if (outdir) {
279009
279009
  return outdir;
279010
279010
  }
279011
- const tmpDir = fs57.mkdtempSync(path54.join(fs57.realpathSync(os14.tmpdir()), "cdk.out"));
279011
+ const tmpDir = fs58.mkdtempSync(path54.join(fs58.realpathSync(os15.tmpdir()), "cdk.out"));
279012
279012
  TEMPORARY_ASSEMBLY_DIRS2.push(tmpDir);
279013
279013
  return outdir ?? tmpDir;
279014
279014
  }
279015
279015
  __name(determineOutputDirectory2, "determineOutputDirectory");
279016
279016
  function ensureDirSync2(dir) {
279017
- if (fs57.existsSync(dir)) {
279018
- if (!fs57.statSync(dir).isDirectory()) {
279017
+ if (fs58.existsSync(dir)) {
279018
+ if (!fs58.statSync(dir).isDirectory()) {
279019
279019
  throw new error_1.CloudAssemblyError(`${dir} must be a directory`);
279020
279020
  }
279021
279021
  } else {
279022
- fs57.mkdirSync(dir, { recursive: true });
279022
+ fs58.mkdirSync(dir, { recursive: true });
279023
279023
  }
279024
279024
  }
279025
279025
  __name(ensureDirSync2, "ensureDirSync");
@@ -283569,7 +283569,7 @@ function ensureNonEmptyResources(template) {
283569
283569
  };
283570
283570
  }
283571
283571
  }
283572
- function parseAndValidateConstructPaths(paths) {
283572
+ function resolveStackAndConstructPaths(paths, availableStackIds) {
283573
283573
  if (paths.length === 0) {
283574
283574
  throw new ToolkitError("MissingConstructPath", "At least one construct path is required (e.g. cdk orphan MyStack/MyTable)");
283575
283575
  }
@@ -283577,25 +283577,31 @@ function parseAndValidateConstructPaths(paths) {
283577
283577
  let stackId;
283578
283578
  for (const raw of paths) {
283579
283579
  const p3 = raw.replace(/^\//, "");
283580
- const slashIdx = p3.indexOf("/");
283581
- if (slashIdx < 0) {
283582
- throw new ToolkitError("InvalidConstructPath", `Construct path '${raw}' must include both a stack name and a construct path separated by '/' (e.g. MyStack/MyTable)`);
283580
+ const matchedStack = availableStackIds.filter((id) => p3 === id || p3.startsWith(`${id}/`)).sort((a6, b6) => b6.length - a6.length)[0];
283581
+ if (!matchedStack) {
283582
+ throw new ToolkitError(
283583
+ "StackNotFound",
283584
+ `No stack found for construct path '${raw}'. Available stacks: ${availableStackIds.join(", ")}`
283585
+ );
283583
283586
  }
283584
- const thisStack = p3.substring(0, slashIdx);
283585
- const constructPath = p3.substring(slashIdx + 1);
283586
- if (stackId && thisStack !== stackId) {
283587
- throw new ToolkitError("MultipleStacks", `All construct paths must reference the same stack, but got '${stackId}' and '${thisStack}'`);
283587
+ const constructPath = p3.substring(matchedStack.length + 1);
283588
+ if (constructPath === "") {
283589
+ throw new ToolkitError(
283590
+ "InvalidConstructPath",
283591
+ `Construct path '${raw}' must include a construct path within the stack (e.g. ${matchedStack}/MyTable)`
283592
+ );
283588
283593
  }
283589
- stackId = thisStack;
283594
+ if (stackId && matchedStack !== stackId) {
283595
+ throw new ToolkitError("MultipleStacks", `All construct paths must reference the same stack, but got '${stackId}' and '${matchedStack}'`);
283596
+ }
283597
+ stackId = matchedStack;
283590
283598
  constructPaths.push(constructPath);
283591
283599
  }
283592
283600
  return { stackId, constructPaths };
283593
283601
  }
283594
- var import_cloud_assembly_api13;
283595
283602
  var init_helpers2 = __esm({
283596
283603
  "../@aws-cdk/toolkit-lib/lib/api/orphan/private/helpers.ts"() {
283597
283604
  "use strict";
283598
- import_cloud_assembly_api13 = __toESM(require_lib3());
283599
283605
  init_toolkit_error();
283600
283606
  __name(walkObject, "walkObject");
283601
283607
  __name(replaceInObject, "replaceInObject");
@@ -283603,7 +283609,7 @@ var init_helpers2 = __esm({
283603
283609
  __name(removeDependsOn, "removeDependsOn");
283604
283610
  __name(assertDeploySucceeded, "assertDeploySucceeded");
283605
283611
  __name(ensureNonEmptyResources, "ensureNonEmptyResources");
283606
- __name(parseAndValidateConstructPaths, "parseAndValidateConstructPaths");
283612
+ __name(resolveStackAndConstructPaths, "resolveStackAndConstructPaths");
283607
283613
  }
283608
283614
  });
283609
283615
 
@@ -287033,8 +287039,8 @@ var init_esm2 = __esm({
287033
287039
  }
287034
287040
  return this._userIgnored(path54, stats);
287035
287041
  }
287036
- _isntIgnored(path54, stat8) {
287037
- return !this._isIgnored(path54, stat8);
287042
+ _isntIgnored(path54, stat9) {
287043
+ return !this._isIgnored(path54, stat9);
287038
287044
  }
287039
287045
  /**
287040
287046
  * Provides a set of common helpers and properties relating to symlink handling.
@@ -288803,7 +288809,7 @@ async function replaceAwsPlaceholders2(object, aws) {
288803
288809
  account = /* @__PURE__ */ __name(() => Promise.resolve(a6), "account");
288804
288810
  return a6;
288805
288811
  }, "account");
288806
- return import_cloud_assembly_api14.EnvironmentPlaceholders.replaceAsync(object, {
288812
+ return import_cloud_assembly_api13.EnvironmentPlaceholders.replaceAsync(object, {
288807
288813
  async region() {
288808
288814
  return object.region ?? aws.discoverDefaultRegion();
288809
288815
  },
@@ -288815,12 +288821,12 @@ async function replaceAwsPlaceholders2(object, aws) {
288815
288821
  }
288816
288822
  });
288817
288823
  }
288818
- var import_cdk_assets_lib5, import_cloud_assembly_api14, RefactoringContext;
288824
+ var import_cdk_assets_lib5, import_cloud_assembly_api13, RefactoringContext;
288819
288825
  var init_context3 = __esm({
288820
288826
  "../@aws-cdk/toolkit-lib/lib/api/refactoring/context.ts"() {
288821
288827
  "use strict";
288822
288828
  import_cdk_assets_lib5 = __toESM(require_lib5());
288823
- import_cloud_assembly_api14 = __toESM(require_lib3());
288829
+ import_cloud_assembly_api13 = __toESM(require_lib3());
288824
288830
  init_cloudformation4();
288825
288831
  init_digest();
288826
288832
  init_toolkit_error();
@@ -289218,8 +289224,8 @@ function countAssemblyResults(span, assembly) {
289218
289224
  const stacksRecursively = assembly.stacksRecursively;
289219
289225
  span.incCounter("stacks", stacksRecursively.length);
289220
289226
  span.incCounter("assemblies", asmCount(assembly));
289221
- span.incCounter("errorAnns", sum3(stacksRecursively.map((s) => s.messages.filter((m4) => m4.level === import_cloud_assembly_api15.SynthesisMessageLevel.ERROR).length)));
289222
- span.incCounter("warnings", sum3(stacksRecursively.map((s) => s.messages.filter((m4) => m4.level === import_cloud_assembly_api15.SynthesisMessageLevel.WARNING).length)));
289227
+ span.incCounter("errorAnns", sum3(stacksRecursively.map((s) => s.messages.filter((m4) => m4.level === import_cloud_assembly_api14.SynthesisMessageLevel.ERROR).length)));
289228
+ span.incCounter("warnings", sum3(stacksRecursively.map((s) => s.messages.filter((m4) => m4.level === import_cloud_assembly_api14.SynthesisMessageLevel.WARNING).length)));
289223
289229
  const annotationErrorCodes = stacksRecursively.flatMap((s) => Object.values(s.metadata).flatMap((ms) => ms.filter((m4) => m4.type === ANNOTATION_ERROR_CODE_TYPE)));
289224
289230
  for (const annotationErrorCode of annotationErrorCodes) {
289225
289231
  span.incCounter(`errorAnn:${annotationErrorCode.data}`);
@@ -289232,11 +289238,11 @@ function countAssemblyResults(span, assembly) {
289232
289238
  function sum3(xs) {
289233
289239
  return xs.reduce((a6, b6) => a6 + b6, 0);
289234
289240
  }
289235
- var import_cloud_assembly_api15, ANNOTATION_ERROR_CODE_TYPE;
289241
+ var import_cloud_assembly_api14, ANNOTATION_ERROR_CODE_TYPE;
289236
289242
  var init_count_assembly_results = __esm({
289237
289243
  "../@aws-cdk/toolkit-lib/lib/toolkit/private/count-assembly-results.ts"() {
289238
289244
  "use strict";
289239
- import_cloud_assembly_api15 = __toESM(require_lib3());
289245
+ import_cloud_assembly_api14 = __toESM(require_lib3());
289240
289246
  __name(countAssemblyResults, "countAssemblyResults");
289241
289247
  __name(sum3, "sum");
289242
289248
  ANNOTATION_ERROR_CODE_TYPE = "aws:cdk:error-code";
@@ -289778,6 +289784,7 @@ function formatValidationReports(fileRoot, reports) {
289778
289784
  });
289779
289785
  return [
289780
289786
  ...pluginFailures.map(formatPluginFailure),
289787
+ ...successfullyExecutedPlugins.flatMap((r6) => r6.preamble ? [`${import_chalk26.default.underline(sanitize(r6.pluginName))}: ${sanitize(r6.preamble)}`] : []),
289781
289788
  ...violations.map((v) => formatViolationBlock(fileRoot, v))
289782
289789
  ];
289783
289790
  }
@@ -289854,7 +289861,7 @@ function formatConstructInfo(fileRoot, construct) {
289854
289861
  const logicalId = sanitize(construct.cloudFormationResource?.logicalId);
289855
289862
  if (construct.constructPath) {
289856
289863
  const cPath = sanitize(construct.constructPath);
289857
- parts.push(logicalId ? `${import_chalk26.default.bold(cPath)} (${logicalId})` : import_chalk26.default.bold(cPath));
289864
+ parts.push(logicalId ? `${cPath} (${logicalId})` : cPath);
289858
289865
  } else {
289859
289866
  if (construct.cloudFormationResource?.templatePath) {
289860
289867
  parts.push(humanFriendlyFilename(fileRoot, sanitize(construct.cloudFormationResource.templatePath)));
@@ -291217,16 +291224,13 @@ ${deployResult.stackArn}`));
291217
291224
  try {
291218
291225
  this.requireUnstableFeature("orphan");
291219
291226
  const ioHelper = asIoHelper(this.ioHost, "orphan");
291220
- const parsed = parseAndValidateConstructPaths(options.constructPaths);
291221
291227
  const assembly = __using(_stack, await synthAndMeasure(ioHelper, cx, ALL_STACKS), true);
291222
291228
  const allStacks = await assembly.selectStacksV2(ALL_STACKS);
291229
+ const parsed = resolveStackAndConstructPaths(
291230
+ options.constructPaths,
291231
+ allStacks.stackArtifacts.map((s) => s.hierarchicalId)
291232
+ );
291223
291233
  const stack = allStacks.stackArtifacts.find((s) => s.hierarchicalId === parsed.stackId);
291224
- if (!stack) {
291225
- throw new ToolkitError(
291226
- "StackNotFound",
291227
- `No stack found with construct ID '${parsed.stackId}'. Available stacks: ${allStacks.stackArtifacts.map((s) => s.hierarchicalId).join(", ")}`
291228
- );
291229
- }
291230
291234
  const deployments = await this.deploymentsForAction("orphan");
291231
291235
  const orphaner = new ResourceOrphaner({
291232
291236
  deployments,
@@ -294221,11 +294225,38 @@ function isValidWrapperUserAgent(value2) {
294221
294225
  if (!VALID_USER_AGENTS.includes(name)) return false;
294222
294226
  return mode === "sandbox" || mode === "production";
294223
294227
  }
294224
- var import_node_crypto16, import_toolkit_lib3, ABORTED_ERROR_MESSAGE, VALID_USER_AGENTS, TelemetrySession;
294228
+ async function tryDetectAmznPackage() {
294229
+ try {
294230
+ await fs41.stat(pathlib.join(os11.homedir(), ".midway"));
294231
+ } catch {
294232
+ return;
294233
+ }
294234
+ try {
294235
+ const configFile = await fs41.readFile("Config", "utf-8");
294236
+ const m4 = configFile.match(/^package\.(\S+)\s*=/m);
294237
+ if (m4) {
294238
+ return m4[1];
294239
+ }
294240
+ } catch {
294241
+ }
294242
+ try {
294243
+ const ionFile = await fs41.readFile("brazil.ion", "utf-8");
294244
+ const m4 = ionFile.match(/(^|\s)name:\s*"([^"]+)"/m);
294245
+ if (m4) {
294246
+ return m4[2];
294247
+ }
294248
+ } catch {
294249
+ }
294250
+ return void 0;
294251
+ }
294252
+ var import_node_crypto16, fs41, os11, pathlib, import_toolkit_lib3, ABORTED_ERROR_MESSAGE, VALID_USER_AGENTS, TelemetrySession;
294225
294253
  var init_session = __esm({
294226
294254
  "lib/cli/telemetry/session.ts"() {
294227
294255
  "use strict";
294228
294256
  import_node_crypto16 = require("node:crypto");
294257
+ fs41 = __toESM(require("node:fs/promises"));
294258
+ os11 = __toESM(require("os"));
294259
+ pathlib = __toESM(require("path"));
294229
294260
  import_toolkit_lib3 = __toESM(require_lib12());
294230
294261
  init_installation_id();
294231
294262
  init_library_version();
@@ -294274,7 +294305,8 @@ var init_session = __esm({
294274
294305
  sessionId: (0, import_node_crypto16.randomUUID)(),
294275
294306
  telemetryVersion: "2.0",
294276
294307
  cdkCliVersion: versionNumber2(),
294277
- cdkLibraryVersion: await getLibraryVersion(this.ioHost.asIoHelper())
294308
+ cdkLibraryVersion: await getLibraryVersion(this.ioHost.asIoHelper()),
294309
+ amznPackage: await tryDetectAmznPackage()
294278
294310
  },
294279
294311
  event: {
294280
294312
  command: {
@@ -294448,6 +294480,7 @@ var init_session = __esm({
294448
294480
  __name(isAbortedError, "isAbortedError");
294449
294481
  __name(mutable, "mutable");
294450
294482
  __name(isValidWrapperUserAgent, "isValidWrapperUserAgent");
294483
+ __name(tryDetectAmznPackage, "tryDetectAmznPackage");
294451
294484
  }
294452
294485
  });
294453
294486
 
@@ -294560,12 +294593,12 @@ var init_endpoint_sink = __esm({
294560
294593
  });
294561
294594
 
294562
294595
  // lib/cli/telemetry/sink/file-sink.ts
294563
- var import_toolkit_lib5, fs41, FileTelemetrySink;
294596
+ var import_toolkit_lib5, fs42, FileTelemetrySink;
294564
294597
  var init_file_sink = __esm({
294565
294598
  "lib/cli/telemetry/sink/file-sink.ts"() {
294566
294599
  "use strict";
294567
294600
  import_toolkit_lib5 = __toESM(require_lib12());
294568
- fs41 = __toESM(require_lib4());
294601
+ fs42 = __toESM(require_lib4());
294569
294602
  init_api_private();
294570
294603
  FileTelemetrySink = class {
294571
294604
  static {
@@ -294579,20 +294612,20 @@ var init_file_sink = __esm({
294579
294612
  constructor(props) {
294580
294613
  this.ioHelper = IoHelper.fromActionAwareIoHost(props.ioHost);
294581
294614
  this.logFilePath = props.logFilePath;
294582
- if (fs41.existsSync(this.logFilePath)) {
294615
+ if (fs42.existsSync(this.logFilePath)) {
294583
294616
  throw new import_toolkit_lib5.ToolkitError("TelemetryFileExists", `Telemetry file already exists at ${this.logFilePath}`);
294584
294617
  }
294585
- fs41.ensureFileSync(this.logFilePath);
294586
- fs41.writeJsonSync(this.logFilePath, []);
294618
+ fs42.ensureFileSync(this.logFilePath);
294619
+ fs42.writeJsonSync(this.logFilePath, []);
294587
294620
  }
294588
294621
  /**
294589
294622
  * Emit an event.
294590
294623
  */
294591
294624
  async emit(event) {
294592
294625
  try {
294593
- const json = fs41.readJsonSync(this.logFilePath);
294626
+ const json = fs42.readJsonSync(this.logFilePath);
294594
294627
  json.push(event);
294595
- fs41.writeJSONSync(this.logFilePath, json, { spaces: 2 });
294628
+ fs42.writeJSONSync(this.logFilePath, json, { spaces: 2 });
294596
294629
  } catch (e6) {
294597
294630
  await this.ioHelper.defaults.trace(`Failed to add telemetry event: ${e6.message}`);
294598
294631
  }
@@ -295282,7 +295315,12 @@ var init_cli_io_host = __esm({
295282
295315
  * Formats a message for console output with optional color support
295283
295316
  */
295284
295317
  formatMessage(msg) {
295285
- let message_text = this.isTTY ? styleMap2[msg.level](msg.message) : msg.message;
295318
+ let message_text;
295319
+ if (msg.code === "CDK_TOOLKIT_E9600") {
295320
+ message_text = msg.message;
295321
+ } else {
295322
+ message_text = this.isTTY ? styleMap2[msg.level](msg.message) : msg.message;
295323
+ }
295286
295324
  return (msg.level === "debug" || msg.level === "trace" ? `[${this.formatTime(msg.time)}] ${message_text}` : message_text) + "\n";
295287
295325
  }
295288
295326
  /**
@@ -295362,8 +295400,8 @@ async function loadAndLog(ioHelper, fileName) {
295362
295400
  async function settingsFromFile2(ioHelper, fileName) {
295363
295401
  let settings;
295364
295402
  const expanded = expandHomeDir2(fileName);
295365
- if (await fs42.pathExists(expanded)) {
295366
- const data2 = await fs42.readJson(expanded);
295403
+ if (await fs43.pathExists(expanded)) {
295404
+ const data2 = await fs43.readJson(expanded);
295367
295405
  settings = new Settings(data2);
295368
295406
  } else {
295369
295407
  settings = new Settings();
@@ -295405,7 +295443,7 @@ async function warnAboutContextKey(ioHelper, settings, prefix, fileName) {
295405
295443
  }
295406
295444
  function expandHomeDir2(x) {
295407
295445
  if (x.startsWith("~")) {
295408
- return fs_path2.join(os11.homedir(), x.slice(1));
295446
+ return fs_path2.join(os12.homedir(), x.slice(1));
295409
295447
  }
295410
295448
  return x;
295411
295449
  }
@@ -295527,14 +295565,14 @@ async function parseStringTagsListToObject(ioHelper, argTags) {
295527
295565
  }
295528
295566
  return tags.length > 0 ? tags : void 0;
295529
295567
  }
295530
- var os11, fs_path2, import_toolkit_lib8, fs42, PROJECT_CONFIG, USER_DEFAULTS, CONTEXT_KEY, BUNDLING_COMMANDS, Configuration;
295568
+ var os12, fs_path2, import_toolkit_lib8, fs43, PROJECT_CONFIG, USER_DEFAULTS, CONTEXT_KEY, BUNDLING_COMMANDS, Configuration;
295531
295569
  var init_user_configuration = __esm({
295532
295570
  "lib/cli/user-configuration.ts"() {
295533
295571
  "use strict";
295534
- os11 = __toESM(require("os"));
295572
+ os12 = __toESM(require("os"));
295535
295573
  fs_path2 = __toESM(require("path"));
295536
295574
  import_toolkit_lib8 = __toESM(require_lib12());
295537
- fs42 = __toESM(require_lib4());
295575
+ fs43 = __toESM(require_lib4());
295538
295576
  init_context4();
295539
295577
  init_settings2();
295540
295578
  init_context4();
@@ -296247,7 +296285,7 @@ async function loadLocalTemplate(fromPath, templatePath) {
296247
296285
  let actualTemplatePath = fromPath;
296248
296286
  if (templatePath) {
296249
296287
  actualTemplatePath = path42.join(fromPath, templatePath);
296250
- if (!await fs43.pathExists(actualTemplatePath)) {
296288
+ if (!await fs44.pathExists(actualTemplatePath)) {
296251
296289
  throw new import_toolkit_lib11.ToolkitError("TemplatePathNotFound", `Template path does not exist: ${actualTemplatePath}`);
296252
296290
  }
296253
296291
  }
@@ -296300,7 +296338,7 @@ async function resolveLanguage(ioHelper, template, requestedLanguage, type) {
296300
296338
  })();
296301
296339
  }
296302
296340
  async function findPotentialTemplates(repositoryPath) {
296303
- const entries = await fs43.readdir(repositoryPath, { withFileTypes: true });
296341
+ const entries = await fs44.readdir(repositoryPath, { withFileTypes: true });
296304
296342
  const templateValidationPromises = entries.filter((entry) => entry.isDirectory() && !entry.name.startsWith(".")).map(async (entry) => {
296305
296343
  try {
296306
296344
  const templatePath = path42.join(repositoryPath, entry.name);
@@ -296315,7 +296353,7 @@ async function findPotentialTemplates(repositoryPath) {
296315
296353
  }
296316
296354
  async function getLanguageDirectories(templatePath) {
296317
296355
  try {
296318
- const entries = await fs43.readdir(templatePath, { withFileTypes: true });
296356
+ const entries = await fs44.readdir(templatePath, { withFileTypes: true });
296319
296357
  const languageValidationPromises = entries.filter((directoryEntry) => directoryEntry.isDirectory() && SUPPORTED_LANGUAGE_NAMES.includes(directoryEntry.name)).map(async (directoryEntry) => {
296320
296358
  const languageDirectoryPath = path42.join(templatePath, directoryEntry.name);
296321
296359
  try {
@@ -296339,7 +296377,7 @@ async function hasLanguageFiles(directoryPath, extensions) {
296339
296377
  while (dirsToCheck.length > 0) {
296340
296378
  const currentDir = dirsToCheck.pop();
296341
296379
  try {
296342
- const entries = await fs43.readdir(currentDir, { withFileTypes: true });
296380
+ const entries = await fs44.readdir(currentDir, { withFileTypes: true });
296343
296381
  for (const entry of entries) {
296344
296382
  if (entry.isFile() && extensions.some((ext) => entry.name.endsWith(ext))) {
296345
296383
  return true;
@@ -296407,7 +296445,7 @@ async function availableInitTemplates() {
296407
296445
  }
296408
296446
  }
296409
296447
  async function listDirectory(dirPath) {
296410
- return (await fs43.readdir(dirPath)).filter((p3) => !p3.startsWith(".")).filter((p3) => !(p3 === "LICENSE")).filter((p3) => !(p3 === INFO_DOT_JSON)).sort();
296448
+ return (await fs44.readdir(dirPath)).filter((p3) => !p3.startsWith(".")).filter((p3) => !(p3 === "LICENSE")).filter((p3) => !(p3 === INFO_DOT_JSON)).sort();
296411
296449
  }
296412
296450
  async function printAvailableTemplates(ioHelper, language) {
296413
296451
  await ioHelper.defaults.info("Available templates:");
@@ -296427,8 +296465,8 @@ async function initializeProject(ioHelper, template, language, canUseNetwork, ge
296427
296465
  if (migrate) {
296428
296466
  await template.addMigrateContext(workDir);
296429
296467
  }
296430
- if (await fs43.pathExists(`${workDir}/README.md`)) {
296431
- const readme = await fs43.readFile(`${workDir}/README.md`, { encoding: "utf-8" });
296468
+ if (await fs44.pathExists(`${workDir}/README.md`)) {
296469
+ const readme = await fs44.readFile(`${workDir}/README.md`, { encoding: "utf-8" });
296432
296470
  await ioHelper.defaults.info(import_chalk30.default.green(readme));
296433
296471
  }
296434
296472
  if (!generateOnly) {
@@ -296439,11 +296477,11 @@ async function initializeProject(ioHelper, template, language, canUseNetwork, ge
296439
296477
  }
296440
296478
  async function assertIsEmptyDirectory(workDir) {
296441
296479
  try {
296442
- const stats = await fs43.stat(workDir);
296480
+ const stats = await fs44.stat(workDir);
296443
296481
  if (!stats.isDirectory()) {
296444
296482
  throw new import_toolkit_lib11.ToolkitError("PathNotDirectory", `Path exists but is not a directory: ${workDir}`);
296445
296483
  }
296446
- const files = await fs43.readdir(workDir);
296484
+ const files = await fs44.readdir(workDir);
296447
296485
  const visibleFiles = files.filter((f6) => !f6.startsWith("."));
296448
296486
  if (visibleFiles.length > 0) {
296449
296487
  throw new import_toolkit_lib11.ToolkitError(
@@ -296512,8 +296550,8 @@ async function postInstallTypescript(ioHelper, canUseNetwork, cwd, packageManage
296512
296550
  }
296513
296551
  }
296514
296552
  async function postInstallJava(ioHelper, canUseNetwork, cwd) {
296515
- const hasGradleBuild = await fs43.pathExists(path42.join(cwd, "build.gradle"));
296516
- const hasMavenPom = await fs43.pathExists(path42.join(cwd, "pom.xml"));
296553
+ const hasGradleBuild = await fs44.pathExists(path42.join(cwd, "build.gradle"));
296554
+ const hasMavenPom = await fs44.pathExists(path42.join(cwd, "pom.xml"));
296517
296555
  if (hasGradleBuild) {
296518
296556
  const gradleWarning = "Please run './gradlew build'!";
296519
296557
  if (!canUseNetwork) {
@@ -296546,7 +296584,7 @@ async function postInstallJava(ioHelper, canUseNetwork, cwd) {
296546
296584
  }
296547
296585
  async function postInstallPython(ioHelper, cwd) {
296548
296586
  const python = pythonExecutable();
296549
- const hasRequirements = await fs43.pathExists(path42.join(cwd, "requirements.txt"));
296587
+ const hasRequirements = await fs44.pathExists(path42.join(cwd, "requirements.txt"));
296550
296588
  if (hasRequirements) {
296551
296589
  await ioHelper.defaults.info(`Executing ${import_chalk30.default.green("Creating virtualenv...")}`);
296552
296590
  try {
@@ -296596,7 +296634,7 @@ async function postInstallFSharp(ioHelper, canUseNetwork, cwd) {
296596
296634
  }
296597
296635
  async function isInGitRepository(dir) {
296598
296636
  while (true) {
296599
- if (await fs43.pathExists(path42.join(dir, ".git"))) {
296637
+ if (await fs44.pathExists(path42.join(dir, ".git"))) {
296600
296638
  return true;
296601
296639
  }
296602
296640
  if (isRoot(dir)) {
@@ -296632,7 +296670,7 @@ async function execute(ioHelper, cmd, args, { cwd }) {
296632
296670
  }
296633
296671
  async function loadInitVersions() {
296634
296672
  const initVersionFile = path42.join(cliRootDir(), "lib", "init-templates", ".init-version.json");
296635
- const contents = JSON.parse(await fs43.readFile(initVersionFile, { encoding: "utf-8" }));
296673
+ const contents = JSON.parse(await fs44.readFile(initVersionFile, { encoding: "utf-8" }));
296636
296674
  const ret = {
296637
296675
  "aws-cdk-lib": contents["aws-cdk-lib"],
296638
296676
  "constructs": contents.constructs,
@@ -296647,11 +296685,11 @@ async function loadInitVersions() {
296647
296685
  }
296648
296686
  async function currentlyRecommendedAwsCdkLibFlags() {
296649
296687
  const recommendedFlagsFile = path42.join(cliRootDir(), "lib", "init-templates", ".recommended-feature-flags.json");
296650
- const flags = JSON.parse(await fs43.readFile(recommendedFlagsFile, { encoding: "utf-8" }));
296688
+ const flags = JSON.parse(await fs44.readFile(recommendedFlagsFile, { encoding: "utf-8" }));
296651
296689
  const sortedKeys = Object.keys(flags).sort();
296652
296690
  return Object.fromEntries(sortedKeys.map((k6) => [k6, flags[k6]]));
296653
296691
  }
296654
- var childProcess, path42, import_toolkit_lib11, import_chalk30, fs43, camelCase, decamelize, SUPPORTED_LANGUAGE_NAMES, INFO_DOT_JSON, InitTemplate;
296692
+ var childProcess, path42, import_toolkit_lib11, import_chalk30, fs44, camelCase, decamelize, SUPPORTED_LANGUAGE_NAMES, INFO_DOT_JSON, InitTemplate;
296655
296693
  var init_init = __esm({
296656
296694
  "lib/commands/init/init.ts"() {
296657
296695
  "use strict";
@@ -296659,7 +296697,7 @@ var init_init = __esm({
296659
296697
  path42 = __toESM(require("path"));
296660
296698
  import_toolkit_lib11 = __toESM(require_lib12());
296661
296699
  import_chalk30 = __toESM(require_source());
296662
- fs43 = __toESM(require_lib4());
296700
+ fs44 = __toESM(require_lib4());
296663
296701
  init_init_hooks();
296664
296702
  init_root_dir();
296665
296703
  init_version();
@@ -296701,12 +296739,12 @@ var init_init = __esm({
296701
296739
  static async fromName(templatesDir, name) {
296702
296740
  const basePath = path42.join(templatesDir, name);
296703
296741
  const languages = await listDirectory(basePath);
296704
- const initInfo = await fs43.readJson(path42.join(basePath, INFO_DOT_JSON));
296742
+ const initInfo = await fs44.readJson(path42.join(basePath, INFO_DOT_JSON));
296705
296743
  return new _InitTemplate(basePath, name, languages, initInfo, "builtin" /* BUILT_IN */);
296706
296744
  }
296707
296745
  static async fromPath(templatePath) {
296708
296746
  const basePath = path42.resolve(templatePath);
296709
- if (!await fs43.pathExists(basePath)) {
296747
+ if (!await fs44.pathExists(basePath)) {
296710
296748
  throw new import_toolkit_lib11.ToolkitError("TemplatePathNotFound", `Template path does not exist: ${basePath}`);
296711
296749
  }
296712
296750
  let templateSourcePath = basePath;
@@ -296778,8 +296816,8 @@ var init_init = __esm({
296778
296816
  substitutePlaceholdersIn: /* @__PURE__ */ __name(async (...fileNames) => {
296779
296817
  const fileProcessingPromises = fileNames.map(async (fileName) => {
296780
296818
  const fullPath = path42.join(targetDirectory, fileName);
296781
- const template = await fs43.readFile(fullPath, { encoding: "utf-8" });
296782
- await fs43.writeFile(fullPath, expandPlaceholders(template, language, projectInfo, packageManager));
296819
+ const template = await fs44.readFile(fullPath, { encoding: "utf-8" });
296820
+ await fs44.writeFile(fullPath, expandPlaceholders(template, language, projectInfo, packageManager));
296783
296821
  });
296784
296822
  await Promise.all(fileProcessingPromises);
296785
296823
  }, "substitutePlaceholdersIn"),
@@ -296789,11 +296827,11 @@ var init_init = __esm({
296789
296827
  }
296790
296828
  }
296791
296829
  async installFiles(sourceDirectory, targetDirectory, language, project, packageManager) {
296792
- for (const file of await fs43.readdir(sourceDirectory)) {
296830
+ for (const file of await fs44.readdir(sourceDirectory)) {
296793
296831
  const fromFile = path42.join(sourceDirectory, file);
296794
296832
  const toFile = path42.join(targetDirectory, expandPlaceholders(file, language, project, packageManager));
296795
- if ((await fs43.stat(fromFile)).isDirectory()) {
296796
- await fs43.mkdir(toFile);
296833
+ if ((await fs44.stat(fromFile)).isDirectory()) {
296834
+ await fs44.mkdir(toFile);
296797
296835
  await this.installFiles(fromFile, toFile, language, project, packageManager);
296798
296836
  continue;
296799
296837
  } else if (file.match(/^.*\.template\.[^.]+$/)) {
@@ -296802,19 +296840,19 @@ var init_init = __esm({
296802
296840
  } else if (file.match(/^.*\.hook\.(d.)?[^.]+$/)) {
296803
296841
  continue;
296804
296842
  } else {
296805
- await fs43.copy(fromFile, toFile);
296843
+ await fs44.copy(fromFile, toFile);
296806
296844
  }
296807
296845
  }
296808
296846
  }
296809
296847
  async installProcessed(templatePath, toFile, language, project, packageManager) {
296810
- const template = await fs43.readFile(templatePath, { encoding: "utf-8" });
296811
- await fs43.writeFile(toFile, expandPlaceholders(template, language, project, packageManager));
296848
+ const template = await fs44.readFile(templatePath, { encoding: "utf-8" });
296849
+ await fs44.writeFile(toFile, expandPlaceholders(template, language, project, packageManager));
296812
296850
  }
296813
296851
  /**
296814
296852
  * Copy template files without processing placeholders (for custom templates)
296815
296853
  */
296816
296854
  async installFilesWithoutProcessing(sourceDirectory, targetDirectory) {
296817
- await fs43.copy(sourceDirectory, targetDirectory, {
296855
+ await fs44.copy(sourceDirectory, targetDirectory, {
296818
296856
  filter: /* @__PURE__ */ __name((src) => {
296819
296857
  const filename = path42.basename(src);
296820
296858
  return !filename.match(/^.*\.hook\.(d.)?[^.]+$/);
@@ -296827,27 +296865,27 @@ var init_init = __esm({
296827
296865
  */
296828
296866
  async applyFutureFlags(projectDir) {
296829
296867
  const cdkJson = path42.join(projectDir, "cdk.json");
296830
- if (!await fs43.pathExists(cdkJson)) {
296868
+ if (!await fs44.pathExists(cdkJson)) {
296831
296869
  return;
296832
296870
  }
296833
- const config2 = await fs43.readJson(cdkJson);
296871
+ const config2 = await fs44.readJson(cdkJson);
296834
296872
  config2.context = {
296835
296873
  ...config2.context,
296836
296874
  ...await currentlyRecommendedAwsCdkLibFlags()
296837
296875
  };
296838
- await fs43.writeJson(cdkJson, config2, { spaces: 2 });
296876
+ await fs44.writeJson(cdkJson, config2, { spaces: 2 });
296839
296877
  }
296840
296878
  async addMigrateContext(projectDir) {
296841
296879
  const cdkJson = path42.join(projectDir, "cdk.json");
296842
- if (!await fs43.pathExists(cdkJson)) {
296880
+ if (!await fs44.pathExists(cdkJson)) {
296843
296881
  return;
296844
296882
  }
296845
- const config2 = await fs43.readJson(cdkJson);
296883
+ const config2 = await fs44.readJson(cdkJson);
296846
296884
  config2.context = {
296847
296885
  ...config2.context,
296848
296886
  "cdk-migrate": true
296849
296887
  };
296850
- await fs43.writeJson(cdkJson, config2, { spaces: 2 });
296888
+ await fs44.writeJson(cdkJson, config2, { spaces: 2 });
296851
296889
  }
296852
296890
  };
296853
296891
  __name(expandPlaceholders, "expandPlaceholders");
@@ -296894,8 +296932,8 @@ async function generateCdkApp(ioHelper, stackName, stack, language, outputPath,
296894
296932
  const resolvedOutputPath = path43.join(outputPath ?? process.cwd(), stackName);
296895
296933
  const formattedStackName = decamelize2(stackName);
296896
296934
  try {
296897
- fs44.rmSync(resolvedOutputPath, { recursive: true, force: true });
296898
- fs44.mkdirSync(resolvedOutputPath, { recursive: true });
296935
+ fs45.rmSync(resolvedOutputPath, { recursive: true, force: true });
296936
+ fs45.mkdirSync(resolvedOutputPath, { recursive: true });
296899
296937
  const generateOnly = compress2;
296900
296938
  await cliInit({
296901
296939
  ioHelper,
@@ -296930,13 +296968,13 @@ async function generateCdkApp(ioHelper, stackName, stack, language, outputPath,
296930
296968
  `${language} is not supported by CDK Migrate. Please choose from: ${MIGRATE_SUPPORTED_LANGUAGES.join(", ")}`
296931
296969
  );
296932
296970
  }
296933
- fs44.writeFileSync(stackFileName, stack);
296971
+ fs45.writeFileSync(stackFileName, stack);
296934
296972
  if (compress2) {
296935
296973
  await (0, import_zip.zipDirectory)(resolvedOutputPath, `${resolvedOutputPath}.zip`);
296936
- fs44.rmSync(resolvedOutputPath, { recursive: true, force: true });
296974
+ fs45.rmSync(resolvedOutputPath, { recursive: true, force: true });
296937
296975
  }
296938
296976
  } catch (error3) {
296939
- fs44.rmSync(resolvedOutputPath, { recursive: true, force: true });
296977
+ fs45.rmSync(resolvedOutputPath, { recursive: true, force: true });
296940
296978
  throw error3;
296941
296979
  }
296942
296980
  }
@@ -296949,16 +296987,16 @@ function generateStack(template, stackName, language) {
296949
296987
  }
296950
296988
  }
296951
296989
  function readFromPath(inputPath) {
296952
- let readFile11;
296990
+ let readFile12;
296953
296991
  try {
296954
- readFile11 = fs44.readFileSync(inputPath, "utf8");
296992
+ readFile12 = fs45.readFileSync(inputPath, "utf8");
296955
296993
  } catch (e6) {
296956
296994
  throw new import_toolkit_lib12.ToolkitError("InvalidPath", `'${inputPath}' is not a valid path.`);
296957
296995
  }
296958
- if (readFile11 == "") {
296996
+ if (readFile12 == "") {
296959
296997
  throw new import_toolkit_lib12.ToolkitError("EmptyTemplateFile", `Cloudformation template filepath: '${inputPath}' is an empty file.`);
296960
296998
  }
296961
- return readFile11;
296999
+ return readFile12;
296962
297000
  }
296963
297001
  async function readFromStack(stackName, sdkProvider, environment) {
296964
297002
  const cloudFormation = (await sdkProvider.forEnvironment(environment, 0 /* ForReading */)).sdk.cloudFormation();
@@ -297073,8 +297111,8 @@ function chunks(list2, chunkSize) {
297073
297111
  }
297074
297112
  function setEnvironment(account, region) {
297075
297113
  return {
297076
- account: account ?? import_cloud_assembly_api16.UNKNOWN_ACCOUNT,
297077
- region: region ?? import_cloud_assembly_api16.UNKNOWN_REGION,
297114
+ account: account ?? import_cloud_assembly_api15.UNKNOWN_ACCOUNT,
297115
+ region: region ?? import_cloud_assembly_api15.UNKNOWN_REGION,
297078
297116
  name: "cdk-migrate-env"
297079
297117
  };
297080
297118
  }
@@ -297169,7 +297207,7 @@ function writeMigrateJsonFile(outputPath, stackName, migrateJson) {
297169
297207
  "Source": migrateJson.source,
297170
297208
  "Resources": migrateJson.resources
297171
297209
  };
297172
- fs44.writeFileSync(
297210
+ fs45.writeFileSync(
297173
297211
  `${path43.join(outputPath ?? process.cwd(), stackName)}/migrate.json`,
297174
297212
  JSON.stringify(outputToJson, null, 2)
297175
297213
  );
@@ -297222,7 +297260,7 @@ async function buildCfnClient(sdkProvider, environment) {
297222
297260
  return sdk.cloudFormation();
297223
297261
  }
297224
297262
  function appendWarningsToReadme(filepath, resources) {
297225
- const readme = fs44.readFileSync(filepath, "utf8");
297263
+ const readme = fs45.readFileSync(filepath, "utf8");
297226
297264
  const lines = readme.split("\n");
297227
297265
  const index = lines.findIndex((line) => line.trim() === "Enjoy!");
297228
297266
  let linesToAdd = ["\n## Warnings"];
@@ -297246,7 +297284,7 @@ function appendWarningsToReadme(filepath, resources) {
297246
297284
  }
297247
297285
  }
297248
297286
  lines.splice(index, 0, ...linesToAdd);
297249
- fs44.writeFileSync(filepath, lines.join("\n"));
297287
+ fs45.writeFileSync(filepath, lines.join("\n"));
297250
297288
  }
297251
297289
  function deduplicateResources(resources) {
297252
297290
  let uniqueResources = {};
@@ -297257,13 +297295,13 @@ function deduplicateResources(resources) {
297257
297295
  }
297258
297296
  return Object.values(uniqueResources);
297259
297297
  }
297260
- var fs44, path43, import_cloud_assembly_api16, import_zip, import_toolkit_lib12, cdk_from_cfn, import_chalk31, camelCase2, decamelize2, MIGRATE_SUPPORTED_LANGUAGES, FilterType, CfnTemplateGeneratorProvider;
297298
+ var fs45, path43, import_cloud_assembly_api15, import_zip, import_toolkit_lib12, cdk_from_cfn, import_chalk31, camelCase2, decamelize2, MIGRATE_SUPPORTED_LANGUAGES, FilterType, CfnTemplateGeneratorProvider;
297261
297299
  var init_migrate = __esm({
297262
297300
  "lib/commands/migrate.ts"() {
297263
297301
  "use strict";
297264
- fs44 = __toESM(require("fs"));
297302
+ fs45 = __toESM(require("fs"));
297265
297303
  path43 = __toESM(require("path"));
297266
- import_cloud_assembly_api16 = __toESM(require_lib3());
297304
+ import_cloud_assembly_api15 = __toESM(require_lib3());
297267
297305
  import_zip = __toESM(require_zip());
297268
297306
  import_toolkit_lib12 = __toESM(require_lib12());
297269
297307
  cdk_from_cfn = __toESM(require_cdk_from_cfn());
@@ -297782,7 +297820,7 @@ var init_environments = __esm({
297782
297820
  // lib/cli/util/fs-util.ts
297783
297821
  async function tryReadJson(fileName) {
297784
297822
  try {
297785
- return JSON.parse(await fs45.readFile(fileName, "utf-8"));
297823
+ return JSON.parse(await fs46.readFile(fileName, "utf-8"));
297786
297824
  } catch (e6) {
297787
297825
  if (e6.code === "ENOENT") {
297788
297826
  return void 0;
@@ -297790,11 +297828,11 @@ async function tryReadJson(fileName) {
297790
297828
  throw e6;
297791
297829
  }
297792
297830
  }
297793
- var fs45;
297831
+ var fs46;
297794
297832
  var init_fs_util = __esm({
297795
297833
  "lib/cli/util/fs-util.ts"() {
297796
297834
  "use strict";
297797
- fs45 = __toESM(require("fs/promises"));
297835
+ fs46 = __toESM(require("fs/promises"));
297798
297836
  __name(tryReadJson, "tryReadJson");
297799
297837
  }
297800
297838
  });
@@ -297826,7 +297864,7 @@ async function execProgram(aws, ioHelper, config2) {
297826
297864
  if (!app) {
297827
297865
  throw new import_toolkit_lib16.ToolkitError("AppRequired", `--app is required either in command-line, in ${PROJECT_CONFIG} or in ${USER_DEFAULTS}`);
297828
297866
  }
297829
- if (await fs46.pathExists(app) && (await fs46.stat(app)).isDirectory()) {
297867
+ if (await fs47.pathExists(app) && (await fs47.stat(app)).isDirectory()) {
297830
297868
  await debugFn("--app points to a cloud assembly, so we bypass synth");
297831
297869
  const lock = await new RWLock(app).acquireRead();
297832
297870
  return { assembly: createAssembly(app), lock };
@@ -297843,7 +297881,7 @@ async function execProgram(aws, ioHelper, config2) {
297843
297881
  throw new import_toolkit_lib16.ToolkitError("OutputNotString", `--output takes a string, got ${JSON.stringify(outdir)}`);
297844
297882
  }
297845
297883
  try {
297846
- await fs46.mkdirp(outdir);
297884
+ await fs47.mkdirp(outdir);
297847
297885
  } catch (error3) {
297848
297886
  throw new import_toolkit_lib16.ToolkitError("OutputDirCreateFailed", `Could not create output directory ${outdir} (${error3.message})`);
297849
297887
  }
@@ -297853,10 +297891,10 @@ async function execProgram(aws, ioHelper, config2) {
297853
297891
  env3[cxapi11.CLI_VERSION_ENV] = versionNumber2();
297854
297892
  const writerLock = await new RWLock(outdir).acquireWrite();
297855
297893
  errorFile = path44.join(outdir, "error.txt");
297856
- await fs46.promises.rm(errorFile, { force: true });
297894
+ await fs47.promises.rm(errorFile, { force: true });
297857
297895
  env3.CDK_ERROR_FILE = errorFile;
297858
297896
  const perfCountersFile = path44.join(outdir, "performance-counters.json");
297859
- await fs46.promises.rm(perfCountersFile, { force: true });
297897
+ await fs47.promises.rm(perfCountersFile, { force: true });
297860
297898
  env3.CDK_PERF_COUNTERS_FILE = perfCountersFile;
297861
297899
  await debugFn((0, import_util75.format)("env:", env3));
297862
297900
  const cleanupTemp = writeContextToEnv(env3, context, "add-process-env-later");
@@ -297896,7 +297934,7 @@ async function execProgram(aws, ioHelper, config2) {
297896
297934
  }
297897
297935
  function createAssembly(appDir) {
297898
297936
  try {
297899
- return new import_cloud_assembly_api17.CloudAssembly(appDir, {
297937
+ return new import_cloud_assembly_api16.CloudAssembly(appDir, {
297900
297938
  // We sort as we deploy
297901
297939
  topoSort: false
297902
297940
  });
@@ -297911,17 +297949,17 @@ function createAssembly(appDir) {
297911
297949
  function noUndefined2(xs) {
297912
297950
  return Object.fromEntries(Object.entries(xs).filter(([_, v]) => v !== void 0));
297913
297951
  }
297914
- var path44, import_util75, import_cloud_assembly_api17, cxschema11, cxapi11, import_toolkit_lib16, fs46;
297952
+ var path44, import_util75, import_cloud_assembly_api16, cxschema11, cxapi11, import_toolkit_lib16, fs47;
297915
297953
  var init_exec2 = __esm({
297916
297954
  "lib/cxapp/exec.ts"() {
297917
297955
  "use strict";
297918
297956
  path44 = __toESM(require("path"));
297919
297957
  import_util75 = require("util");
297920
- import_cloud_assembly_api17 = __toESM(require_lib3());
297958
+ import_cloud_assembly_api16 = __toESM(require_lib3());
297921
297959
  cxschema11 = __toESM(require_lib2());
297922
297960
  cxapi11 = __toESM(require_lib11());
297923
297961
  import_toolkit_lib16 = __toESM(require_lib12());
297924
- fs46 = __toESM(require_lib4());
297962
+ fs47 = __toESM(require_lib4());
297925
297963
  init_api();
297926
297964
  init_user_configuration();
297927
297965
  init_fs_util();
@@ -298546,16 +298584,16 @@ function effectiveValue(flag) {
298546
298584
  function defaultValue(flag) {
298547
298585
  return flag.unconfiguredBehavesLike?.v2 ?? false;
298548
298586
  }
298549
- var os12, path45, import_cloudformation_diff4, import_toolkit_lib17, import_chalk32, fs47, import_p_queue, FlagOperations;
298587
+ var os13, path45, import_cloudformation_diff4, import_toolkit_lib17, import_chalk32, fs48, import_p_queue, FlagOperations;
298550
298588
  var init_operations = __esm({
298551
298589
  "lib/commands/flags/operations.ts"() {
298552
298590
  "use strict";
298553
- os12 = __toESM(require("os"));
298591
+ os13 = __toESM(require("os"));
298554
298592
  path45 = __toESM(require("path"));
298555
298593
  import_cloudformation_diff4 = __toESM(require_lib9());
298556
298594
  import_toolkit_lib17 = __toESM(require_lib12());
298557
298595
  import_chalk32 = __toESM(require_source());
298558
- fs47 = __toESM(require_lib4());
298596
+ fs48 = __toESM(require_lib4());
298559
298597
  import_p_queue = __toESM(require_dist3());
298560
298598
  init_obsolete_flags();
298561
298599
  init_api();
@@ -298656,7 +298694,7 @@ var init_operations = __esm({
298656
298694
  }
298657
298695
  /** Sets flags that don't cause template changes */
298658
298696
  async setSafeFlags(params) {
298659
- const cdkJson = await JSON.parse(await fs47.readFile(path45.join(process.cwd(), "cdk.json"), "utf-8"));
298697
+ const cdkJson = await JSON.parse(await fs48.readFile(path45.join(process.cwd(), "cdk.json"), "utf-8"));
298660
298698
  this.app = params.app || cdkJson.app;
298661
298699
  const isUsingTsNode = this.app.includes("ts-node");
298662
298700
  if (isUsingTsNode && !this.app.includes("-T") && !this.app.includes("--transpileOnly")) {
@@ -298684,7 +298722,7 @@ var init_operations = __esm({
298684
298722
  async initializeSafetyCheck() {
298685
298723
  const baseContext = new import_toolkit_lib17.CdkAppMultiContext(process.cwd());
298686
298724
  this.baseContextValues = { ...await baseContext.read(), ...this.cliContextValues };
298687
- this.baselineTempDir = fs47.mkdtempSync(path45.join(os12.tmpdir(), "cdk-baseline-"));
298725
+ this.baselineTempDir = fs48.mkdtempSync(path45.join(os13.tmpdir(), "cdk-baseline-"));
298688
298726
  const mergedContext = new import_toolkit_lib17.MemoryContext(this.baseContextValues);
298689
298727
  const baseSource = await this.toolkit.fromCdkApp(this.app, {
298690
298728
  contextStore: mergedContext,
@@ -298698,7 +298736,7 @@ var init_operations = __esm({
298698
298736
  /** Cleans up temporary directories created during safety checks */
298699
298737
  async cleanupSafetyCheck() {
298700
298738
  if (this.baselineTempDir) {
298701
- await fs47.remove(this.baselineTempDir);
298739
+ await fs48.remove(this.baselineTempDir);
298702
298740
  this.baselineTempDir = void 0;
298703
298741
  }
298704
298742
  }
@@ -298716,7 +298754,7 @@ var init_operations = __esm({
298716
298754
  /** Tests if a set of context values causes template changes by synthesizing and diffing */
298717
298755
  async testBatch(contextValues) {
298718
298756
  const testContext = new import_toolkit_lib17.MemoryContext(contextValues);
298719
- const tempDir = fs47.mkdtempSync(path45.join(os12.tmpdir(), "cdk-test-"));
298757
+ const tempDir = fs48.mkdtempSync(path45.join(os13.tmpdir(), "cdk-test-"));
298720
298758
  const testSource = await this.toolkit.fromCdkApp(this.app, {
298721
298759
  contextStore: testContext,
298722
298760
  outdir: tempDir
@@ -298740,7 +298778,7 @@ var init_operations = __esm({
298740
298778
  }
298741
298779
  return true;
298742
298780
  } finally {
298743
- await fs47.remove(tempDir);
298781
+ await fs48.remove(tempDir);
298744
298782
  }
298745
298783
  }
298746
298784
  /** Uses binary search to isolate which flags are safe to set without template changes */
@@ -298778,11 +298816,11 @@ var init_operations = __esm({
298778
298816
  const baseContext = new import_toolkit_lib17.CdkAppMultiContext(process.cwd());
298779
298817
  const baseContextValues = { ...await baseContext.read(), ...this.cliContextValues };
298780
298818
  const memoryContext = new import_toolkit_lib17.MemoryContext(baseContextValues);
298781
- const cdkJson = await JSON.parse(await fs47.readFile(path45.join(process.cwd(), "cdk.json"), "utf-8"));
298819
+ const cdkJson = await JSON.parse(await fs48.readFile(path45.join(process.cwd(), "cdk.json"), "utf-8"));
298782
298820
  const app = cdkJson.app;
298783
298821
  const source = await this.toolkit.fromCdkApp(app, {
298784
298822
  contextStore: memoryContext,
298785
- outdir: fs47.mkdtempSync(path45.join(os12.tmpdir(), "cdk-original-"))
298823
+ outdir: fs48.mkdtempSync(path45.join(os13.tmpdir(), "cdk-original-"))
298786
298824
  });
298787
298825
  const updateObj = await this.buildUpdateObject(flagNames, params, baseContextValues);
298788
298826
  if (!updateObj) return false;
@@ -298791,7 +298829,7 @@ var init_operations = __esm({
298791
298829
  const assembly = cx.cloudAssembly;
298792
298830
  const modifiedSource = await this.toolkit.fromCdkApp(app, {
298793
298831
  contextStore: memoryContext,
298794
- outdir: fs47.mkdtempSync(path45.join(os12.tmpdir(), "cdk-temp-"))
298832
+ outdir: fs48.mkdtempSync(path45.join(os13.tmpdir(), "cdk-temp-"))
298795
298833
  });
298796
298834
  const modifiedCx = await this.toolkit.synth(modifiedSource);
298797
298835
  const allStacks = assembly.stacksRecursively;
@@ -298866,13 +298904,13 @@ var init_operations = __esm({
298866
298904
  async cleanupTempDirectories() {
298867
298905
  const originalDir = path45.join(process.cwd(), "original");
298868
298906
  const tempDir = path45.join(process.cwd(), "temp");
298869
- await fs47.remove(originalDir);
298870
- await fs47.remove(tempDir);
298907
+ await fs48.remove(originalDir);
298908
+ await fs48.remove(tempDir);
298871
298909
  }
298872
298910
  /** Actually modifies the cdk.json file with the new flag values */
298873
298911
  async modifyValues(flagNames, params) {
298874
298912
  const cdkJsonPath = path45.join(process.cwd(), "cdk.json");
298875
- const cdkJsonContent = await fs47.readFile(cdkJsonPath, "utf-8");
298913
+ const cdkJsonContent = await fs48.readFile(cdkJsonPath, "utf-8");
298876
298914
  const cdkJson = JSON.parse(cdkJsonContent);
298877
298915
  if (flagNames.length === 1 && !params.safe && !params.all) {
298878
298916
  const boolValue = params.value === "true";
@@ -298885,7 +298923,7 @@ var init_operations = __esm({
298885
298923
  cdkJson.context[flagName] = newValue;
298886
298924
  }
298887
298925
  }
298888
- await fs47.writeFile(cdkJsonPath, JSON.stringify(cdkJson, null, 2), "utf-8");
298926
+ await fs48.writeFile(cdkJsonPath, JSON.stringify(cdkJson, null, 2), "utf-8");
298889
298927
  }
298890
298928
  /** Displays flags in a table format, either specific flags or filtered by criteria */
298891
298929
  async displayFlags(params) {
@@ -299024,7 +299062,7 @@ async function displayFlagsMessage(ioHost, toolkit, cloudExecutable) {
299024
299062
  function requiresApproval(requireApproval, permissionChangeType) {
299025
299063
  return requireApproval === import_cloud_assembly_schema9.RequireApproval.ANYCHANGE || requireApproval === import_cloud_assembly_schema9.RequireApproval.BROADENING && permissionChangeType === import_toolkit_lib18.PermissionChangeType.BROADENING;
299026
299064
  }
299027
- var import_node_crypto17, path46, import_node_util8, cxapi12, import_cloud_assembly_schema9, import_toolkit_lib18, import_chalk33, fs48, pLimit5, FILE_EVENTS2, InternalToolkit, CdkToolkit, WorkGraphDeploymentActions;
299065
+ var import_node_crypto17, path46, import_node_util8, cxapi12, import_cloud_assembly_schema9, import_toolkit_lib18, import_chalk33, fs49, pLimit5, FILE_EVENTS2, InternalToolkit, CdkToolkit, WorkGraphDeploymentActions;
299028
299066
  var init_cdk_toolkit = __esm({
299029
299067
  "lib/cli/cdk-toolkit.ts"() {
299030
299068
  "use strict";
@@ -299037,7 +299075,7 @@ var init_cdk_toolkit = __esm({
299037
299075
  import_chalk33 = __toESM(require_source());
299038
299076
  init_esm2();
299039
299077
  init_handler();
299040
- fs48 = __toESM(require_lib4());
299078
+ fs49 = __toESM(require_lib4());
299041
299079
  init_io_host2();
299042
299080
  init_user_configuration();
299043
299081
  init_api_private();
@@ -299141,7 +299179,7 @@ var init_cdk_toolkit = __esm({
299141
299179
  "Can only select one stack when comparing to fixed template. Use --exclusively to avoid selecting multiple stacks."
299142
299180
  );
299143
299181
  }
299144
- if (!await fs48.pathExists(options.templatePath)) {
299182
+ if (!await fs49.pathExists(options.templatePath)) {
299145
299183
  throw new import_toolkit_lib18.ToolkitError("TemplateNotFound", `There is no file at ${options.templatePath}`);
299146
299184
  }
299147
299185
  if (options.importExistingResources) {
@@ -299150,7 +299188,7 @@ var init_cdk_toolkit = __esm({
299150
299188
  "Can only use --import-existing-resources flag when comparing against deployed stacks."
299151
299189
  );
299152
299190
  }
299153
- const template = deserializeStructure(await fs48.readFile(options.templatePath, { encoding: "utf-8" }));
299191
+ const template = deserializeStructure(await fs49.readFile(options.templatePath, { encoding: "utf-8" }));
299154
299192
  const formatter = new DiffFormatter({
299155
299193
  templateInfo: {
299156
299194
  oldTemplate: template,
@@ -299592,8 +299630,8 @@ var init_cdk_toolkit = __esm({
299592
299630
  }
299593
299631
  if (options.recordResourceMapping) {
299594
299632
  const outputFile = options.recordResourceMapping;
299595
- fs48.ensureFileSync(outputFile);
299596
- await fs48.writeJson(outputFile, actualImport.resourceMap, {
299633
+ fs49.ensureFileSync(outputFile);
299634
+ await fs49.writeJson(outputFile, actualImport.resourceMap, {
299597
299635
  spaces: 2,
299598
299636
  encoding: "utf8"
299599
299637
  });
@@ -299898,10 +299936,10 @@ var init_cdk_toolkit = __esm({
299898
299936
  if (filePath == null) {
299899
299937
  return [];
299900
299938
  }
299901
- if (!fs48.pathExistsSync(filePath)) {
299939
+ if (!fs49.pathExistsSync(filePath)) {
299902
299940
  throw new import_toolkit_lib18.ToolkitError("MappingFileNotFound", `The mapping file ${filePath} does not exist`);
299903
299941
  }
299904
- const groups = parseMappingGroups(fs48.readFileSync(filePath).toString("utf-8"));
299942
+ const groups = parseMappingGroups(fs49.readFileSync(filePath).toString("utf-8"));
299905
299943
  return revert ? groups.map((group4) => ({
299906
299944
  ...group4,
299907
299945
  resources: Object.fromEntries(Object.entries(group4.resources ?? {}).map(([src, dst]) => [dst, src]))
@@ -300313,8 +300351,8 @@ var init_cdk_toolkit = __esm({
300313
300351
  }
300314
300352
  }
300315
300353
  async writeOutputs(outputsFile) {
300316
- fs48.ensureFileSync(outputsFile);
300317
- await fs48.writeJson(outputsFile, this.stackOutputs, {
300354
+ fs49.ensureFileSync(outputsFile);
300355
+ await fs49.writeJson(outputsFile, this.stackOutputs, {
300318
300356
  spaces: 2,
300319
300357
  encoding: "utf8"
300320
300358
  });
@@ -300424,14 +300462,14 @@ async function displayVersionMessage(ioHelper, currentVersion = versionNumber(),
300424
300462
  await ioHelper.defaults.debug(`Could not run version check - ${err.message}`);
300425
300463
  }
300426
300464
  }
300427
- var path47, import_toolkit_lib20, import_chalk34, fs49, semver5, ONE_DAY_IN_SECONDS, UPGRADE_DOCUMENTATION_LINKS, VersionCheckTTL;
300465
+ var path47, import_toolkit_lib20, import_chalk34, fs50, semver5, ONE_DAY_IN_SECONDS, UPGRADE_DOCUMENTATION_LINKS, VersionCheckTTL;
300428
300466
  var init_display_version = __esm({
300429
300467
  "lib/cli/display-version.ts"() {
300430
300468
  "use strict";
300431
300469
  path47 = __toESM(require("path"));
300432
300470
  import_toolkit_lib20 = __toESM(require_lib12());
300433
300471
  import_chalk34 = __toESM(require_source());
300434
- fs49 = __toESM(require_lib4());
300472
+ fs50 = __toESM(require_lib4());
300435
300473
  semver5 = __toESM(require_semver4());
300436
300474
  init_util9();
300437
300475
  init_console_formatters();
@@ -300453,8 +300491,8 @@ var init_display_version = __esm({
300453
300491
  constructor(file, ttlSecs) {
300454
300492
  this.file = file || _VersionCheckTTL.timestampFilePath();
300455
300493
  try {
300456
- fs49.mkdirsSync(path47.dirname(this.file));
300457
- fs49.accessSync(path47.dirname(this.file), fs49.constants.W_OK);
300494
+ fs50.mkdirsSync(path47.dirname(this.file));
300495
+ fs50.accessSync(path47.dirname(this.file), fs50.constants.W_OK);
300458
300496
  } catch {
300459
300497
  throw new import_toolkit_lib20.ToolkitError("DirectoryNotWritable", `Directory (${path47.dirname(this.file)}) is not writable.`);
300460
300498
  }
@@ -300462,7 +300500,7 @@ var init_display_version = __esm({
300462
300500
  }
300463
300501
  async hasExpired() {
300464
300502
  try {
300465
- const lastCheckTime = (await fs49.stat(this.file)).mtimeMs;
300503
+ const lastCheckTime = (await fs50.stat(this.file)).mtimeMs;
300466
300504
  const today = (/* @__PURE__ */ new Date()).getTime();
300467
300505
  if ((today - lastCheckTime) / 1e3 > this.ttlSecs) {
300468
300506
  return true;
@@ -300480,7 +300518,7 @@ var init_display_version = __esm({
300480
300518
  if (!latestVersion) {
300481
300519
  latestVersion = "";
300482
300520
  }
300483
- await fs49.writeFile(this.file, latestVersion);
300521
+ await fs50.writeFile(this.file, latestVersion);
300484
300522
  }
300485
300523
  };
300486
300524
  __name(getVersionMessages, "getVersionMessages");
@@ -300766,8 +300804,8 @@ var require_middleware = __commonJS({
300766
300804
  var require_require_directory = __commonJS({
300767
300805
  "../../node_modules/require-directory/index.js"(exports2, module2) {
300768
300806
  "use strict";
300769
- var fs57 = require("fs");
300770
- var join54 = require("path").join;
300807
+ var fs58 = require("fs");
300808
+ var join55 = require("path").join;
300771
300809
  var resolve16 = require("path").resolve;
300772
300810
  var dirname17 = require("path").dirname;
300773
300811
  var defaultOptions2 = {
@@ -300804,9 +300842,9 @@ var require_require_directory = __commonJS({
300804
300842
  }
300805
300843
  }
300806
300844
  path54 = !path54 ? dirname17(m4.filename) : resolve16(dirname17(m4.filename), path54);
300807
- fs57.readdirSync(path54).forEach(function(filename) {
300808
- var joined = join54(path54, filename), files, key, obj;
300809
- if (fs57.statSync(joined).isDirectory() && options.recurse) {
300845
+ fs58.readdirSync(path54).forEach(function(filename) {
300846
+ var joined = join55(path54, filename), files, key, obj;
300847
+ if (fs58.statSync(joined).isDirectory() && options.recurse) {
300810
300848
  files = requireDirectory(m4, joined, options);
300811
300849
  if (Object.keys(files).length) {
300812
300850
  retval[options.rename(filename, joined, filename)] = files;
@@ -303595,7 +303633,7 @@ var require_apply_extends = __commonJS({
303595
303633
  "use strict";
303596
303634
  Object.defineProperty(exports2, "__esModule", { value: true });
303597
303635
  exports2.applyExtends = void 0;
303598
- var fs57 = require("fs");
303636
+ var fs58 = require("fs");
303599
303637
  var path54 = require("path");
303600
303638
  var yerror_1 = require_yerror();
303601
303639
  var previouslyVisitedConfigs = [];
@@ -303647,7 +303685,7 @@ var require_apply_extends = __commonJS({
303647
303685
  throw new yerror_1.YError(`Unable to find extended config '${config2.extends}' in '${cwd}'.`);
303648
303686
  checkForCircularExtends(pathToDefault);
303649
303687
  previouslyVisitedConfigs.push(pathToDefault);
303650
- defaultConfig = isPath ? JSON.parse(fs57.readFileSync(pathToDefault, "utf8")) : require(config2.extends);
303688
+ defaultConfig = isPath ? JSON.parse(fs58.readFileSync(pathToDefault, "utf8")) : require(config2.extends);
303651
303689
  delete config2.extends;
303652
303690
  defaultConfig = applyExtends(defaultConfig, path54.dirname(pathToDefault), mergeExtends);
303653
303691
  }
@@ -303695,7 +303733,7 @@ var require_process_argv = __commonJS({
303695
303733
  // node_modules/y18n/index.js
303696
303734
  var require_y18n = __commonJS({
303697
303735
  "node_modules/y18n/index.js"(exports2, module2) {
303698
- var fs57 = require("fs");
303736
+ var fs58 = require("fs");
303699
303737
  var path54 = require("path");
303700
303738
  var util11 = require("util");
303701
303739
  function Y18N(opts) {
@@ -303752,7 +303790,7 @@ var require_y18n = __commonJS({
303752
303790
  var cb = work[2];
303753
303791
  var languageFile = this._resolveLocaleFile(directory, locale);
303754
303792
  var serializedLocale = JSON.stringify(this.cache[locale], null, 2);
303755
- fs57.writeFile(languageFile, serializedLocale, "utf-8", function(err) {
303793
+ fs58.writeFile(languageFile, serializedLocale, "utf-8", function(err) {
303756
303794
  _this.writeQueue.shift();
303757
303795
  if (_this.writeQueue.length > 0) _this._processWriteQueue();
303758
303796
  cb(err);
@@ -303762,7 +303800,7 @@ var require_y18n = __commonJS({
303762
303800
  var localeLookup = {};
303763
303801
  var languageFile = this._resolveLocaleFile(this.directory, this.locale);
303764
303802
  try {
303765
- localeLookup = JSON.parse(fs57.readFileSync(languageFile, "utf-8"));
303803
+ localeLookup = JSON.parse(fs58.readFileSync(languageFile, "utf-8"));
303766
303804
  } catch (err) {
303767
303805
  if (err instanceof SyntaxError) {
303768
303806
  err.message = "syntax error in " + languageFile;
@@ -303782,7 +303820,7 @@ var require_y18n = __commonJS({
303782
303820
  };
303783
303821
  Y18N.prototype._fileExistsSync = function(file) {
303784
303822
  try {
303785
- return fs57.statSync(file).isFile();
303823
+ return fs58.statSync(file).isFile();
303786
303824
  } catch (err) {
303787
303825
  return false;
303788
303826
  }
@@ -303950,11 +303988,11 @@ var require_locate_path = __commonJS({
303950
303988
  "../../node_modules/find-up/node_modules/locate-path/index.js"(exports2, module2) {
303951
303989
  "use strict";
303952
303990
  var path54 = require("path");
303953
- var fs57 = require("fs");
303991
+ var fs58 = require("fs");
303954
303992
  var { promisify: promisify4 } = require("util");
303955
303993
  var pLocate = require_p_locate();
303956
- var fsStat = promisify4(fs57.stat);
303957
- var fsLStat = promisify4(fs57.lstat);
303994
+ var fsStat = promisify4(fs58.stat);
303995
+ var fsLStat = promisify4(fs58.lstat);
303958
303996
  var typeMappings = {
303959
303997
  directory: "isDirectory",
303960
303998
  file: "isFile"
@@ -303966,7 +304004,7 @@ var require_locate_path = __commonJS({
303966
304004
  throw new Error(`Invalid type specified: ${type}`);
303967
304005
  }
303968
304006
  __name(checkType, "checkType");
303969
- var matchType = /* @__PURE__ */ __name((type, stat8) => type === void 0 || stat8[typeMappings[type]](), "matchType");
304007
+ var matchType = /* @__PURE__ */ __name((type, stat9) => type === void 0 || stat9[typeMappings[type]](), "matchType");
303970
304008
  module2.exports = async (paths, options) => {
303971
304009
  options = {
303972
304010
  cwd: process.cwd(),
@@ -303978,8 +304016,8 @@ var require_locate_path = __commonJS({
303978
304016
  const statFn = options.allowSymlinks ? fsStat : fsLStat;
303979
304017
  return pLocate(paths, async (path_) => {
303980
304018
  try {
303981
- const stat8 = await statFn(path54.resolve(options.cwd, path_));
303982
- return matchType(options.type, stat8);
304019
+ const stat9 = await statFn(path54.resolve(options.cwd, path_));
304020
+ return matchType(options.type, stat9);
303983
304021
  } catch (_) {
303984
304022
  return false;
303985
304023
  }
@@ -303993,11 +304031,11 @@ var require_locate_path = __commonJS({
303993
304031
  ...options
303994
304032
  };
303995
304033
  checkType(options);
303996
- const statFn = options.allowSymlinks ? fs57.statSync : fs57.lstatSync;
304034
+ const statFn = options.allowSymlinks ? fs58.statSync : fs58.lstatSync;
303997
304035
  for (const path_ of paths) {
303998
304036
  try {
303999
- const stat8 = statFn(path54.resolve(options.cwd, path_));
304000
- if (matchType(options.type, stat8)) {
304037
+ const stat9 = statFn(path54.resolve(options.cwd, path_));
304038
+ if (matchType(options.type, stat9)) {
304001
304039
  return path_;
304002
304040
  }
304003
304041
  } catch (_) {
@@ -304011,9 +304049,9 @@ var require_locate_path = __commonJS({
304011
304049
  var require_path_exists2 = __commonJS({
304012
304050
  "../../node_modules/path-exists/index.js"(exports2, module2) {
304013
304051
  "use strict";
304014
- var fs57 = require("fs");
304052
+ var fs58 = require("fs");
304015
304053
  var { promisify: promisify4 } = require("util");
304016
- var pAccess = promisify4(fs57.access);
304054
+ var pAccess = promisify4(fs58.access);
304017
304055
  module2.exports = async (path54) => {
304018
304056
  try {
304019
304057
  await pAccess(path54);
@@ -304024,7 +304062,7 @@ var require_path_exists2 = __commonJS({
304024
304062
  };
304025
304063
  module2.exports.sync = (path54) => {
304026
304064
  try {
304027
- fs57.accessSync(path54);
304065
+ fs58.accessSync(path54);
304028
304066
  return true;
304029
304067
  } catch (_) {
304030
304068
  return false;
@@ -304162,7 +304200,7 @@ var require_yargs = __commonJS({
304162
304200
  var yerror_1 = require_yerror();
304163
304201
  var usage_1 = require_usage();
304164
304202
  var argsert_1 = require_argsert();
304165
- var fs57 = require("fs");
304203
+ var fs58 = require("fs");
304166
304204
  var completion_1 = require_completion();
304167
304205
  var path54 = require("path");
304168
304206
  var validation_1 = require_validation();
@@ -304659,7 +304697,7 @@ var require_yargs = __commonJS({
304659
304697
  cwd: startDir
304660
304698
  });
304661
304699
  common_types_1.assertNotStrictEqual(pkgJsonPath, void 0);
304662
- obj = JSON.parse(fs57.readFileSync(pkgJsonPath).toString());
304700
+ obj = JSON.parse(fs58.readFileSync(pkgJsonPath).toString());
304663
304701
  } catch (noop) {
304664
304702
  }
304665
304703
  pkgs[npath] = obj || {};
@@ -306300,10 +306338,10 @@ async function checkForPlatformWarnings(ioHelper) {
306300
306338
  }
306301
306339
  }
306302
306340
  async function hasDockerCopyBug() {
306303
- return await runningInDocker() && os13.platform() === "linux" && isVersionBetween(os13.release(), "5.6", "5.10");
306341
+ return await runningInDocker() && os14.platform() === "linux" && isVersionBetween(os14.release(), "5.6", "5.10");
306304
306342
  }
306305
306343
  async function runningInDocker() {
306306
- return fs50.pathExists("/.dockerenv");
306344
+ return fs51.pathExists("/.dockerenv");
306307
306345
  }
306308
306346
  function isVersionBetween(version, lower, upper) {
306309
306347
  const ver = splitVersion(version);
@@ -306329,12 +306367,12 @@ function isVersionBetween(version, lower, upper) {
306329
306367
  function splitVersion(version) {
306330
306368
  return `${version}`.split(".").map((x) => parseInt(x, 10)).map((x) => isNaN(x) ? 0 : x);
306331
306369
  }
306332
- var os13, fs50;
306370
+ var os14, fs51;
306333
306371
  var init_platform_warnings = __esm({
306334
306372
  "lib/cli/platform-warnings.ts"() {
306335
306373
  "use strict";
306336
- os13 = __toESM(require("os"));
306337
- fs50 = __toESM(require_lib4());
306374
+ os14 = __toESM(require("os"));
306375
+ fs51 = __toESM(require_lib4());
306338
306376
  __name(checkForPlatformWarnings, "checkForPlatformWarnings");
306339
306377
  __name(hasDockerCopyBug, "hasDockerCopyBug");
306340
306378
  __name(runningInDocker, "runningInDocker");
@@ -313360,8 +313398,8 @@ var require_file2 = __commonJS({
313360
313398
  debug2("Normalized pathname: %o", filepath);
313361
313399
  const fdHandle = await fs_1.promises.open(filepath, flags, mode);
313362
313400
  const fd = fdHandle.fd;
313363
- const stat8 = await fdHandle.stat();
313364
- if (cache6 && cache6.stat && stat8 && isNotModified(cache6.stat, stat8)) {
313401
+ const stat9 = await fdHandle.stat();
313402
+ if (cache6 && cache6.stat && stat9 && isNotModified(cache6.stat, stat9)) {
313365
313403
  await fdHandle.close();
313366
313404
  throw new notmodified_1.default();
313367
313405
  }
@@ -313370,7 +313408,7 @@ var require_file2 = __commonJS({
313370
313408
  ...opts,
313371
313409
  fd
313372
313410
  });
313373
- rs.stat = stat8;
313411
+ rs.stat = stat9;
313374
313412
  return rs;
313375
313413
  } catch (err) {
313376
313414
  if (err.code === "ENOENT") {
@@ -316974,7 +317012,7 @@ var require_util3 = __commonJS({
316974
317012
  }
316975
317013
  __name(normalize4, "normalize");
316976
317014
  exports2.normalize = normalize4;
316977
- function join54(aRoot, aPath) {
317015
+ function join55(aRoot, aPath) {
316978
317016
  if (aRoot === "") {
316979
317017
  aRoot = ".";
316980
317018
  }
@@ -317006,8 +317044,8 @@ var require_util3 = __commonJS({
317006
317044
  }
317007
317045
  return joined;
317008
317046
  }
317009
- __name(join54, "join");
317010
- exports2.join = join54;
317047
+ __name(join55, "join");
317048
+ exports2.join = join55;
317011
317049
  exports2.isAbsolute = function(aPath) {
317012
317050
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
317013
317051
  };
@@ -317190,7 +317228,7 @@ var require_util3 = __commonJS({
317190
317228
  parsed.path = parsed.path.substring(0, index + 1);
317191
317229
  }
317192
317230
  }
317193
- sourceURL = join54(urlGenerate(parsed), sourceURL);
317231
+ sourceURL = join55(urlGenerate(parsed), sourceURL);
317194
317232
  }
317195
317233
  return normalize4(sourceURL);
317196
317234
  }
@@ -319027,7 +319065,7 @@ var require_escodegen = __commonJS({
319027
319065
  return space ? space : " ";
319028
319066
  }
319029
319067
  __name(noEmptySpace, "noEmptySpace");
319030
- function join54(left, right) {
319068
+ function join55(left, right) {
319031
319069
  var leftSource, rightSource, leftCharCode, rightCharCode;
319032
319070
  leftSource = toSourceNodeWhenNeeded(left).toString();
319033
319071
  if (leftSource.length === 0) {
@@ -319046,7 +319084,7 @@ var require_escodegen = __commonJS({
319046
319084
  }
319047
319085
  return [left, space, right];
319048
319086
  }
319049
- __name(join54, "join");
319087
+ __name(join55, "join");
319050
319088
  function addIndent(stmt) {
319051
319089
  return [base, stmt];
319052
319090
  }
@@ -319374,8 +319412,8 @@ var require_escodegen = __commonJS({
319374
319412
  } else {
319375
319413
  result2.push(that.generateExpression(stmt.left, Precedence.Call, E_TTT));
319376
319414
  }
319377
- result2 = join54(result2, operator);
319378
- result2 = [join54(
319415
+ result2 = join55(result2, operator);
319416
+ result2 = [join55(
319379
319417
  result2,
319380
319418
  that.generateExpression(stmt.right, Precedence.Assignment, E_TTT)
319381
319419
  ), ")"];
@@ -319518,11 +319556,11 @@ var require_escodegen = __commonJS({
319518
319556
  var result2, fragment;
319519
319557
  result2 = ["class"];
319520
319558
  if (stmt.id) {
319521
- result2 = join54(result2, this.generateExpression(stmt.id, Precedence.Sequence, E_TTT));
319559
+ result2 = join55(result2, this.generateExpression(stmt.id, Precedence.Sequence, E_TTT));
319522
319560
  }
319523
319561
  if (stmt.superClass) {
319524
- fragment = join54("extends", this.generateExpression(stmt.superClass, Precedence.Unary, E_TTT));
319525
- result2 = join54(result2, fragment);
319562
+ fragment = join55("extends", this.generateExpression(stmt.superClass, Precedence.Unary, E_TTT));
319563
+ result2 = join55(result2, fragment);
319526
319564
  }
319527
319565
  result2.push(space);
319528
319566
  result2.push(this.generateStatement(stmt.body, S_TFFT));
@@ -319535,9 +319573,9 @@ var require_escodegen = __commonJS({
319535
319573
  return escapeDirective(stmt.directive) + this.semicolon(flags);
319536
319574
  }, "DirectiveStatement"),
319537
319575
  DoWhileStatement: /* @__PURE__ */ __name(function(stmt, flags) {
319538
- var result2 = join54("do", this.maybeBlock(stmt.body, S_TFFF));
319576
+ var result2 = join55("do", this.maybeBlock(stmt.body, S_TFFF));
319539
319577
  result2 = this.maybeBlockSuffix(stmt.body, result2);
319540
- return join54(result2, [
319578
+ return join55(result2, [
319541
319579
  "while" + space + "(",
319542
319580
  this.generateExpression(stmt.test, Precedence.Sequence, E_TTT),
319543
319581
  ")" + this.semicolon(flags)
@@ -319573,11 +319611,11 @@ var require_escodegen = __commonJS({
319573
319611
  ExportDefaultDeclaration: /* @__PURE__ */ __name(function(stmt, flags) {
319574
319612
  var result2 = ["export"], bodyFlags;
319575
319613
  bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF;
319576
- result2 = join54(result2, "default");
319614
+ result2 = join55(result2, "default");
319577
319615
  if (isStatement(stmt.declaration)) {
319578
- result2 = join54(result2, this.generateStatement(stmt.declaration, bodyFlags));
319616
+ result2 = join55(result2, this.generateStatement(stmt.declaration, bodyFlags));
319579
319617
  } else {
319580
- result2 = join54(result2, this.generateExpression(stmt.declaration, Precedence.Assignment, E_TTT) + this.semicolon(flags));
319618
+ result2 = join55(result2, this.generateExpression(stmt.declaration, Precedence.Assignment, E_TTT) + this.semicolon(flags));
319581
319619
  }
319582
319620
  return result2;
319583
319621
  }, "ExportDefaultDeclaration"),
@@ -319585,15 +319623,15 @@ var require_escodegen = __commonJS({
319585
319623
  var result2 = ["export"], bodyFlags, that = this;
319586
319624
  bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF;
319587
319625
  if (stmt.declaration) {
319588
- return join54(result2, this.generateStatement(stmt.declaration, bodyFlags));
319626
+ return join55(result2, this.generateStatement(stmt.declaration, bodyFlags));
319589
319627
  }
319590
319628
  if (stmt.specifiers) {
319591
319629
  if (stmt.specifiers.length === 0) {
319592
- result2 = join54(result2, "{" + space + "}");
319630
+ result2 = join55(result2, "{" + space + "}");
319593
319631
  } else if (stmt.specifiers[0].type === Syntax.ExportBatchSpecifier) {
319594
- result2 = join54(result2, this.generateExpression(stmt.specifiers[0], Precedence.Sequence, E_TTT));
319632
+ result2 = join55(result2, this.generateExpression(stmt.specifiers[0], Precedence.Sequence, E_TTT));
319595
319633
  } else {
319596
- result2 = join54(result2, "{");
319634
+ result2 = join55(result2, "{");
319597
319635
  withIndent(function(indent2) {
319598
319636
  var i6, iz;
319599
319637
  result2.push(newline);
@@ -319611,7 +319649,7 @@ var require_escodegen = __commonJS({
319611
319649
  result2.push(base + "}");
319612
319650
  }
319613
319651
  if (stmt.source) {
319614
- result2 = join54(result2, [
319652
+ result2 = join55(result2, [
319615
319653
  "from" + space,
319616
319654
  // ModuleSpecifier
319617
319655
  this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
@@ -319702,7 +319740,7 @@ var require_escodegen = __commonJS({
319702
319740
  ];
319703
319741
  cursor2 = 0;
319704
319742
  if (stmt.specifiers[cursor2].type === Syntax.ImportDefaultSpecifier) {
319705
- result2 = join54(result2, [
319743
+ result2 = join55(result2, [
319706
319744
  this.generateExpression(stmt.specifiers[cursor2], Precedence.Sequence, E_TTT)
319707
319745
  ]);
319708
319746
  ++cursor2;
@@ -319712,7 +319750,7 @@ var require_escodegen = __commonJS({
319712
319750
  result2.push(",");
319713
319751
  }
319714
319752
  if (stmt.specifiers[cursor2].type === Syntax.ImportNamespaceSpecifier) {
319715
- result2 = join54(result2, [
319753
+ result2 = join55(result2, [
319716
319754
  space,
319717
319755
  this.generateExpression(stmt.specifiers[cursor2], Precedence.Sequence, E_TTT)
319718
319756
  ]);
@@ -319741,7 +319779,7 @@ var require_escodegen = __commonJS({
319741
319779
  }
319742
319780
  }
319743
319781
  }
319744
- result2 = join54(result2, [
319782
+ result2 = join55(result2, [
319745
319783
  "from" + space,
319746
319784
  // ModuleSpecifier
319747
319785
  this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
@@ -319796,7 +319834,7 @@ var require_escodegen = __commonJS({
319796
319834
  return result2;
319797
319835
  }, "VariableDeclaration"),
319798
319836
  ThrowStatement: /* @__PURE__ */ __name(function(stmt, flags) {
319799
- return [join54(
319837
+ return [join55(
319800
319838
  "throw",
319801
319839
  this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT)
319802
319840
  ), this.semicolon(flags)];
@@ -319807,7 +319845,7 @@ var require_escodegen = __commonJS({
319807
319845
  result2 = this.maybeBlockSuffix(stmt.block, result2);
319808
319846
  if (stmt.handlers) {
319809
319847
  for (i6 = 0, iz = stmt.handlers.length; i6 < iz; ++i6) {
319810
- result2 = join54(result2, this.generateStatement(stmt.handlers[i6], S_TFFF));
319848
+ result2 = join55(result2, this.generateStatement(stmt.handlers[i6], S_TFFF));
319811
319849
  if (stmt.finalizer || i6 + 1 !== iz) {
319812
319850
  result2 = this.maybeBlockSuffix(stmt.handlers[i6].body, result2);
319813
319851
  }
@@ -319815,7 +319853,7 @@ var require_escodegen = __commonJS({
319815
319853
  } else {
319816
319854
  guardedHandlers = stmt.guardedHandlers || [];
319817
319855
  for (i6 = 0, iz = guardedHandlers.length; i6 < iz; ++i6) {
319818
- result2 = join54(result2, this.generateStatement(guardedHandlers[i6], S_TFFF));
319856
+ result2 = join55(result2, this.generateStatement(guardedHandlers[i6], S_TFFF));
319819
319857
  if (stmt.finalizer || i6 + 1 !== iz) {
319820
319858
  result2 = this.maybeBlockSuffix(guardedHandlers[i6].body, result2);
319821
319859
  }
@@ -319823,13 +319861,13 @@ var require_escodegen = __commonJS({
319823
319861
  if (stmt.handler) {
319824
319862
  if (Array.isArray(stmt.handler)) {
319825
319863
  for (i6 = 0, iz = stmt.handler.length; i6 < iz; ++i6) {
319826
- result2 = join54(result2, this.generateStatement(stmt.handler[i6], S_TFFF));
319864
+ result2 = join55(result2, this.generateStatement(stmt.handler[i6], S_TFFF));
319827
319865
  if (stmt.finalizer || i6 + 1 !== iz) {
319828
319866
  result2 = this.maybeBlockSuffix(stmt.handler[i6].body, result2);
319829
319867
  }
319830
319868
  }
319831
319869
  } else {
319832
- result2 = join54(result2, this.generateStatement(stmt.handler, S_TFFF));
319870
+ result2 = join55(result2, this.generateStatement(stmt.handler, S_TFFF));
319833
319871
  if (stmt.finalizer) {
319834
319872
  result2 = this.maybeBlockSuffix(stmt.handler.body, result2);
319835
319873
  }
@@ -319837,7 +319875,7 @@ var require_escodegen = __commonJS({
319837
319875
  }
319838
319876
  }
319839
319877
  if (stmt.finalizer) {
319840
- result2 = join54(result2, ["finally", this.maybeBlock(stmt.finalizer, S_TFFF)]);
319878
+ result2 = join55(result2, ["finally", this.maybeBlock(stmt.finalizer, S_TFFF)]);
319841
319879
  }
319842
319880
  return result2;
319843
319881
  }, "TryStatement"),
@@ -319871,7 +319909,7 @@ var require_escodegen = __commonJS({
319871
319909
  withIndent(function() {
319872
319910
  if (stmt.test) {
319873
319911
  result2 = [
319874
- join54("case", that.generateExpression(stmt.test, Precedence.Sequence, E_TTT)),
319912
+ join55("case", that.generateExpression(stmt.test, Precedence.Sequence, E_TTT)),
319875
319913
  ":"
319876
319914
  ];
319877
319915
  } else {
@@ -319919,9 +319957,9 @@ var require_escodegen = __commonJS({
319919
319957
  result2.push(this.maybeBlock(stmt.consequent, S_TFFF));
319920
319958
  result2 = this.maybeBlockSuffix(stmt.consequent, result2);
319921
319959
  if (stmt.alternate.type === Syntax.IfStatement) {
319922
- result2 = join54(result2, ["else ", this.generateStatement(stmt.alternate, bodyFlags)]);
319960
+ result2 = join55(result2, ["else ", this.generateStatement(stmt.alternate, bodyFlags)]);
319923
319961
  } else {
319924
- result2 = join54(result2, join54("else", this.maybeBlock(stmt.alternate, bodyFlags)));
319962
+ result2 = join55(result2, join55("else", this.maybeBlock(stmt.alternate, bodyFlags)));
319925
319963
  }
319926
319964
  } else {
319927
319965
  result2.push(this.maybeBlock(stmt.consequent, bodyFlags));
@@ -320022,7 +320060,7 @@ var require_escodegen = __commonJS({
320022
320060
  }, "FunctionDeclaration"),
320023
320061
  ReturnStatement: /* @__PURE__ */ __name(function(stmt, flags) {
320024
320062
  if (stmt.argument) {
320025
- return [join54(
320063
+ return [join55(
320026
320064
  "return",
320027
320065
  this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT)
320028
320066
  ), this.semicolon(flags)];
@@ -320111,14 +320149,14 @@ var require_escodegen = __commonJS({
320111
320149
  if (leftSource.charCodeAt(leftSource.length - 1) === 47 && esutils.code.isIdentifierPartES5(expr.operator.charCodeAt(0))) {
320112
320150
  result2 = [fragment, noEmptySpace(), expr.operator];
320113
320151
  } else {
320114
- result2 = join54(fragment, expr.operator);
320152
+ result2 = join55(fragment, expr.operator);
320115
320153
  }
320116
320154
  fragment = this.generateExpression(expr.right, rightPrecedence, flags);
320117
320155
  if (expr.operator === "/" && fragment.toString().charAt(0) === "/" || expr.operator.slice(-1) === "<" && fragment.toString().slice(0, 3) === "!--") {
320118
320156
  result2.push(noEmptySpace());
320119
320157
  result2.push(fragment);
320120
320158
  } else {
320121
- result2 = join54(result2, fragment);
320159
+ result2 = join55(result2, fragment);
320122
320160
  }
320123
320161
  if (expr.operator === "in" && !(flags & F_ALLOW_IN)) {
320124
320162
  return ["(", result2, ")"];
@@ -320158,7 +320196,7 @@ var require_escodegen = __commonJS({
320158
320196
  var result2, length, i6, iz, itemFlags;
320159
320197
  length = expr["arguments"].length;
320160
320198
  itemFlags = flags & F_ALLOW_UNPARATH_NEW && !parentheses && length === 0 ? E_TFT : E_TFF;
320161
- result2 = join54(
320199
+ result2 = join55(
320162
320200
  "new",
320163
320201
  this.generateExpression(expr.callee, Precedence.New, itemFlags)
320164
320202
  );
@@ -320208,11 +320246,11 @@ var require_escodegen = __commonJS({
320208
320246
  var result2, fragment, rightCharCode, leftSource, leftCharCode;
320209
320247
  fragment = this.generateExpression(expr.argument, Precedence.Unary, E_TTT);
320210
320248
  if (space === "") {
320211
- result2 = join54(expr.operator, fragment);
320249
+ result2 = join55(expr.operator, fragment);
320212
320250
  } else {
320213
320251
  result2 = [expr.operator];
320214
320252
  if (expr.operator.length > 2) {
320215
- result2 = join54(result2, fragment);
320253
+ result2 = join55(result2, fragment);
320216
320254
  } else {
320217
320255
  leftSource = toSourceNodeWhenNeeded(result2).toString();
320218
320256
  leftCharCode = leftSource.charCodeAt(leftSource.length - 1);
@@ -320235,7 +320273,7 @@ var require_escodegen = __commonJS({
320235
320273
  result2 = "yield";
320236
320274
  }
320237
320275
  if (expr.argument) {
320238
- result2 = join54(
320276
+ result2 = join55(
320239
320277
  result2,
320240
320278
  this.generateExpression(expr.argument, Precedence.Yield, E_TTT)
320241
320279
  );
@@ -320243,7 +320281,7 @@ var require_escodegen = __commonJS({
320243
320281
  return parenthesize(result2, Precedence.Yield, precedence);
320244
320282
  }, "YieldExpression"),
320245
320283
  AwaitExpression: /* @__PURE__ */ __name(function(expr, precedence, flags) {
320246
- var result2 = join54(
320284
+ var result2 = join55(
320247
320285
  expr.all ? "await*" : "await",
320248
320286
  this.generateExpression(expr.argument, Precedence.Await, E_TTT)
320249
320287
  );
@@ -320326,11 +320364,11 @@ var require_escodegen = __commonJS({
320326
320364
  var result2, fragment;
320327
320365
  result2 = ["class"];
320328
320366
  if (expr.id) {
320329
- result2 = join54(result2, this.generateExpression(expr.id, Precedence.Sequence, E_TTT));
320367
+ result2 = join55(result2, this.generateExpression(expr.id, Precedence.Sequence, E_TTT));
320330
320368
  }
320331
320369
  if (expr.superClass) {
320332
- fragment = join54("extends", this.generateExpression(expr.superClass, Precedence.Unary, E_TTT));
320333
- result2 = join54(result2, fragment);
320370
+ fragment = join55("extends", this.generateExpression(expr.superClass, Precedence.Unary, E_TTT));
320371
+ result2 = join55(result2, fragment);
320334
320372
  }
320335
320373
  result2.push(space);
320336
320374
  result2.push(this.generateStatement(expr.body, S_TFFT));
@@ -320345,7 +320383,7 @@ var require_escodegen = __commonJS({
320345
320383
  }
320346
320384
  if (expr.kind === "get" || expr.kind === "set") {
320347
320385
  fragment = [
320348
- join54(expr.kind, this.generatePropertyKey(expr.key, expr.computed)),
320386
+ join55(expr.kind, this.generatePropertyKey(expr.key, expr.computed)),
320349
320387
  this.generateFunctionBody(expr.value)
320350
320388
  ];
320351
320389
  } else {
@@ -320355,7 +320393,7 @@ var require_escodegen = __commonJS({
320355
320393
  this.generateFunctionBody(expr.value)
320356
320394
  ];
320357
320395
  }
320358
- return join54(result2, fragment);
320396
+ return join55(result2, fragment);
320359
320397
  }, "MethodDefinition"),
320360
320398
  Property: /* @__PURE__ */ __name(function(expr, precedence, flags) {
320361
320399
  if (expr.kind === "get" || expr.kind === "set") {
@@ -320550,7 +320588,7 @@ var require_escodegen = __commonJS({
320550
320588
  for (i6 = 0, iz = expr.blocks.length; i6 < iz; ++i6) {
320551
320589
  fragment = that.generateExpression(expr.blocks[i6], Precedence.Sequence, E_TTT);
320552
320590
  if (i6 > 0 || extra.moz.comprehensionExpressionStartsWithAssignment) {
320553
- result2 = join54(result2, fragment);
320591
+ result2 = join55(result2, fragment);
320554
320592
  } else {
320555
320593
  result2.push(fragment);
320556
320594
  }
@@ -320558,13 +320596,13 @@ var require_escodegen = __commonJS({
320558
320596
  });
320559
320597
  }
320560
320598
  if (expr.filter) {
320561
- result2 = join54(result2, "if" + space);
320599
+ result2 = join55(result2, "if" + space);
320562
320600
  fragment = this.generateExpression(expr.filter, Precedence.Sequence, E_TTT);
320563
- result2 = join54(result2, ["(", fragment, ")"]);
320601
+ result2 = join55(result2, ["(", fragment, ")"]);
320564
320602
  }
320565
320603
  if (!extra.moz.comprehensionExpressionStartsWithAssignment) {
320566
320604
  fragment = this.generateExpression(expr.body, Precedence.Assignment, E_TTT);
320567
- result2 = join54(result2, fragment);
320605
+ result2 = join55(result2, fragment);
320568
320606
  }
320569
320607
  result2.push(expr.type === Syntax.GeneratorExpression ? ")" : "]");
320570
320608
  return result2;
@@ -320580,8 +320618,8 @@ var require_escodegen = __commonJS({
320580
320618
  } else {
320581
320619
  fragment = this.generateExpression(expr.left, Precedence.Call, E_TTT);
320582
320620
  }
320583
- fragment = join54(fragment, expr.of ? "of" : "in");
320584
- fragment = join54(fragment, this.generateExpression(expr.right, Precedence.Sequence, E_TTT));
320621
+ fragment = join55(fragment, expr.of ? "of" : "in");
320622
+ fragment = join55(fragment, this.generateExpression(expr.right, Precedence.Sequence, E_TTT));
320585
320623
  return ["for" + space + "(", fragment, ")"];
320586
320624
  }, "ComprehensionBlock"),
320587
320625
  SpreadElement: /* @__PURE__ */ __name(function(expr, precedence, flags) {
@@ -334006,14 +334044,14 @@ var require_emscripten_module_WASM_RELEASE_SYNC = __commonJS({
334006
334044
  });
334007
334045
  var p3 = Object.assign({}, a6), t = "./this.program", u = "object" == typeof window, v = "function" == typeof importScripts, w = "object" == typeof process && "object" == typeof process.versions && "string" == typeof process.versions.node, x = "", y, z, A;
334008
334046
  if (w) {
334009
- var fs57 = require("fs"), B = require("path");
334047
+ var fs58 = require("fs"), B = require("path");
334010
334048
  x = v ? B.dirname(x) + "/" : __dirname + "/";
334011
334049
  y = /* @__PURE__ */ __name((b6, c6) => {
334012
334050
  var d6 = C(b6);
334013
334051
  if (d6)
334014
334052
  return c6 ? d6 : d6.toString();
334015
334053
  b6 = b6.startsWith("file://") ? new URL(b6) : B.normalize(b6);
334016
- return fs57.readFileSync(b6, c6 ? void 0 : "utf8");
334054
+ return fs58.readFileSync(b6, c6 ? void 0 : "utf8");
334017
334055
  }, "y");
334018
334056
  A = /* @__PURE__ */ __name((b6) => {
334019
334057
  b6 = y(b6, true);
@@ -334024,7 +334062,7 @@ var require_emscripten_module_WASM_RELEASE_SYNC = __commonJS({
334024
334062
  var e6 = C(b6);
334025
334063
  e6 && c6(e6);
334026
334064
  b6 = b6.startsWith("file://") ? new URL(b6) : B.normalize(b6);
334027
- fs57.readFile(b6, function(f6, g6) {
334065
+ fs58.readFile(b6, function(f6, g6) {
334028
334066
  f6 ? d6(f6) : c6(g6.buffer);
334029
334067
  });
334030
334068
  }, "z");
@@ -335383,11 +335421,11 @@ var require_dist14 = __commonJS({
335383
335421
  });
335384
335422
 
335385
335423
  // lib/cli/proxy-agent.ts
335386
- var fs51, import_proxy_agent, ProxyAgentProvider;
335424
+ var fs52, import_proxy_agent, ProxyAgentProvider;
335387
335425
  var init_proxy_agent = __esm({
335388
335426
  "lib/cli/proxy-agent.ts"() {
335389
335427
  "use strict";
335390
- fs51 = __toESM(require_lib4());
335428
+ fs52 = __toESM(require_lib4());
335391
335429
  import_proxy_agent = __toESM(require_dist14());
335392
335430
  ProxyAgentProvider = class {
335393
335431
  static {
@@ -335409,10 +335447,10 @@ var init_proxy_agent = __esm({
335409
335447
  if (path54) {
335410
335448
  await this.ioHelper.defaults.debug(`Using CA bundle path: ${path54}`);
335411
335449
  try {
335412
- if (!fs51.pathExistsSync(path54)) {
335450
+ if (!fs52.pathExistsSync(path54)) {
335413
335451
  return void 0;
335414
335452
  }
335415
- return fs51.readFileSync(path54, { encoding: "utf-8" });
335453
+ return fs52.readFileSync(path54, { encoding: "utf-8" });
335416
335454
  } catch (e6) {
335417
335455
  await this.ioHelper.defaults.debug(String(e6));
335418
335456
  return void 0;
@@ -341408,16 +341446,16 @@ async function isWithinRoot(root6, candidate) {
341408
341446
  }
341409
341447
  async function realOrSelf(p3) {
341410
341448
  try {
341411
- return await fs52.promises.realpath(p3);
341449
+ return await fs53.promises.realpath(p3);
341412
341450
  } catch {
341413
341451
  return p3;
341414
341452
  }
341415
341453
  }
341416
- var fs52, path48, import_url, convertSourceMap, SourceMapResolver, TS_JS_EXTENSIONS, HOST_LANGUAGE_EXTENSIONS, FRAME_RE;
341454
+ var fs53, path48, import_url, convertSourceMap, SourceMapResolver, TS_JS_EXTENSIONS, HOST_LANGUAGE_EXTENSIONS, FRAME_RE;
341417
341455
  var init_source_resolver = __esm({
341418
341456
  "../@aws-cdk/cdk-explorer/lib/core/source-resolver.ts"() {
341419
341457
  "use strict";
341420
- fs52 = __toESM(require("fs"));
341458
+ fs53 = __toESM(require("fs"));
341421
341459
  path48 = __toESM(require("path"));
341422
341460
  import_url = require("url");
341423
341461
  init_trace_mapping();
@@ -341491,7 +341529,7 @@ var init_source_resolver = __esm({
341491
341529
  async readSourceMap(jsFile) {
341492
341530
  let code;
341493
341531
  try {
341494
- code = await fs52.promises.readFile(jsFile, "utf-8");
341532
+ code = await fs53.promises.readFile(jsFile, "utf-8");
341495
341533
  } catch {
341496
341534
  return null;
341497
341535
  }
@@ -341503,7 +341541,7 @@ var init_source_resolver = __esm({
341503
341541
  throw new Error(`source map path escapes the project root: ${mapPath}`);
341504
341542
  }
341505
341543
  mapUrl = (0, import_url.pathToFileURL)(mapPath).href;
341506
- return fs52.promises.readFile(mapPath, "utf-8");
341544
+ return fs53.promises.readFile(mapPath, "utf-8");
341507
341545
  });
341508
341546
  return converter ? new TraceMap(converter.toObject(), mapUrl) : null;
341509
341547
  } catch (err) {
@@ -341529,15 +341567,15 @@ __export(assembly_reader_exports, {
341529
341567
  readAssembly: () => readAssembly
341530
341568
  });
341531
341569
  async function readAssembly(assemblyDir) {
341532
- const manifestPath = path49.join(assemblyDir, import_cloud_assembly_api18.MANIFEST_FILE);
341533
- if (!fs53.existsSync(manifestPath)) {
341570
+ const manifestPath = path49.join(assemblyDir, import_cloud_assembly_api17.MANIFEST_FILE);
341571
+ if (!fs54.existsSync(manifestPath)) {
341534
341572
  return { status: "not-found" };
341535
341573
  }
341536
341574
  try {
341537
- const assembly = new import_cloud_assembly_api18.CloudAssembly(assemblyDir);
341575
+ const assembly = new import_cloud_assembly_api17.CloudAssembly(assemblyDir);
341538
341576
  const projectRoot = path49.dirname(assemblyDir);
341539
341577
  const sourceResolver = new SourceMapResolver(projectRoot);
341540
- const tree = await (0, import_cloud_assembly_api18.buildConstructTreeAsync)(assembly, async (fields, stack, constructPath) => ({
341578
+ const tree = await (0, import_cloud_assembly_api17.buildConstructTreeAsync)(assembly, async (fields, stack, constructPath) => ({
341541
341579
  ...fields,
341542
341580
  // templateFile comes from the manifest / a nested stack's aws:asset:path,
341543
341581
  // both attacker-influenceable if cdk.out is tampered with. Drop any that
@@ -341563,16 +341601,16 @@ async function readAssembly(assemblyDir) {
341563
341601
  }
341564
341602
  function loadViolations(assemblyDir) {
341565
341603
  const reportPath = path49.join(assemblyDir, import_cloud_assembly_schema10.VALIDATION_REPORT_FILE);
341566
- if (!fs53.existsSync(reportPath)) return void 0;
341567
- return JSON.parse(fs53.readFileSync(reportPath, "utf-8"));
341604
+ if (!fs54.existsSync(reportPath)) return void 0;
341605
+ return JSON.parse(fs54.readFileSync(reportPath, "utf-8"));
341568
341606
  }
341569
- var fs53, path49, import_cloud_assembly_api18, import_cloud_assembly_schema10;
341607
+ var fs54, path49, import_cloud_assembly_api17, import_cloud_assembly_schema10;
341570
341608
  var init_assembly_reader = __esm({
341571
341609
  "../@aws-cdk/cdk-explorer/lib/core/assembly-reader.ts"() {
341572
341610
  "use strict";
341573
- fs53 = __toESM(require("fs"));
341611
+ fs54 = __toESM(require("fs"));
341574
341612
  path49 = __toESM(require("path"));
341575
- import_cloud_assembly_api18 = __toESM(require_lib3());
341613
+ import_cloud_assembly_api17 = __toESM(require_lib3());
341576
341614
  import_cloud_assembly_schema10 = __toESM(require_lib2());
341577
341615
  init_api_private2();
341578
341616
  init_source_resolver();
@@ -341740,7 +341778,7 @@ var require_messages = __commonJS({
341740
341778
  }
341741
341779
  };
341742
341780
  exports2.AbstractMessageSignature = AbstractMessageSignature;
341743
- var RequestType0 = class extends AbstractMessageSignature {
341781
+ var RequestType02 = class extends AbstractMessageSignature {
341744
341782
  static {
341745
341783
  __name(this, "RequestType0");
341746
341784
  }
@@ -341748,7 +341786,7 @@ var require_messages = __commonJS({
341748
341786
  super(method, 0);
341749
341787
  }
341750
341788
  };
341751
- exports2.RequestType0 = RequestType0;
341789
+ exports2.RequestType0 = RequestType02;
341752
341790
  var RequestType = class extends AbstractMessageSignature {
341753
341791
  static {
341754
341792
  __name(this, "RequestType");
@@ -344840,7 +344878,7 @@ var require_main2 = __commonJS({
344840
344878
  var ril_1 = require_ril();
344841
344879
  ril_1.default.install();
344842
344880
  var path54 = require("path");
344843
- var os14 = require("os");
344881
+ var os15 = require("os");
344844
344882
  var crypto_1 = require("crypto");
344845
344883
  var net_1 = require("net");
344846
344884
  var api_1 = require_api2();
@@ -345001,7 +345039,7 @@ var require_main2 = __commonJS({
345001
345039
  if (XDG_RUNTIME_DIR) {
345002
345040
  result2 = path54.join(XDG_RUNTIME_DIR, `vscode-ipc-${randomSuffix}.sock`);
345003
345041
  } else {
345004
- result2 = path54.join(os14.tmpdir(), `vscode-${randomSuffix}.sock`);
345042
+ result2 = path54.join(os15.tmpdir(), `vscode-${randomSuffix}.sock`);
345005
345043
  }
345006
345044
  const limit = safeIpcPathLengths.get(process.platform);
345007
345045
  if (limit !== void 0 && result2.length > limit) {
@@ -345291,7 +345329,7 @@ var require_messages2 = __commonJS({
345291
345329
  }
345292
345330
  };
345293
345331
  exports2.AbstractMessageSignature = AbstractMessageSignature;
345294
- var RequestType0 = class extends AbstractMessageSignature {
345332
+ var RequestType02 = class extends AbstractMessageSignature {
345295
345333
  static {
345296
345334
  __name(this, "RequestType0");
345297
345335
  }
@@ -345299,7 +345337,7 @@ var require_messages2 = __commonJS({
345299
345337
  super(method, 0);
345300
345338
  }
345301
345339
  };
345302
- exports2.RequestType0 = RequestType0;
345340
+ exports2.RequestType0 = RequestType02;
345303
345341
  var RequestType = class extends AbstractMessageSignature {
345304
345342
  static {
345305
345343
  __name(this, "RequestType");
@@ -348390,7 +348428,7 @@ var require_main3 = __commonJS({
348390
348428
  var ril_1 = require_ril2();
348391
348429
  ril_1.default.install();
348392
348430
  var path54 = require("path");
348393
- var os14 = require("os");
348431
+ var os15 = require("os");
348394
348432
  var crypto_1 = require("crypto");
348395
348433
  var net_1 = require("net");
348396
348434
  var api_1 = require_api3();
@@ -348551,7 +348589,7 @@ var require_main3 = __commonJS({
348551
348589
  if (XDG_RUNTIME_DIR) {
348552
348590
  result2 = path54.join(XDG_RUNTIME_DIR, `vscode-ipc-${randomSuffix}.sock`);
348553
348591
  } else {
348554
- result2 = path54.join(os14.tmpdir(), `vscode-${randomSuffix}.sock`);
348592
+ result2 = path54.join(os15.tmpdir(), `vscode-${randomSuffix}.sock`);
348555
348593
  }
348556
348594
  const limit = safeIpcPathLengths.get(process.platform);
348557
348595
  if (limit !== void 0 && result2.length > limit) {
@@ -353915,7 +353953,7 @@ var require_files = __commonJS({
353915
353953
  exports2.resolveModulePath = exports2.FileSystem = exports2.resolveGlobalYarnPath = exports2.resolveGlobalNodePath = exports2.resolve = exports2.uriToFilePath = void 0;
353916
353954
  var url = require("url");
353917
353955
  var path54 = require("path");
353918
- var fs57 = require("fs");
353956
+ var fs58 = require("fs");
353919
353957
  var child_process_1 = require("child_process");
353920
353958
  function uriToFilePath(uri) {
353921
353959
  let parsed = url.parse(uri);
@@ -353964,7 +354002,7 @@ var require_files = __commonJS({
353964
354002
  let env3 = process.env;
353965
354003
  let newEnv = /* @__PURE__ */ Object.create(null);
353966
354004
  Object.keys(env3).forEach((key) => newEnv[key] = env3[key]);
353967
- if (nodePath && fs57.existsSync(nodePath)) {
354005
+ if (nodePath && fs58.existsSync(nodePath)) {
353968
354006
  if (newEnv[nodePathKey]) {
353969
354007
  newEnv[nodePathKey] = nodePath + path54.delimiter + newEnv[nodePathKey];
353970
354008
  } else {
@@ -354107,7 +354145,7 @@ var require_files = __commonJS({
354107
354145
  if (process.platform === "win32") {
354108
354146
  _isCaseSensitive = false;
354109
354147
  } else {
354110
- _isCaseSensitive = !fs57.existsSync(__filename.toUpperCase()) || !fs57.existsSync(__filename.toLowerCase());
354148
+ _isCaseSensitive = !fs58.existsSync(__filename.toUpperCase()) || !fs58.existsSync(__filename.toLowerCase());
354111
354149
  }
354112
354150
  return _isCaseSensitive;
354113
354151
  }
@@ -354836,11 +354874,11 @@ async function resourceTarget(node) {
354836
354874
  }
354837
354875
  let templateText;
354838
354876
  try {
354839
- templateText = await fs54.promises.readFile(node.templateFile, "utf-8");
354877
+ templateText = await fs55.promises.readFile(node.templateFile, "utf-8");
354840
354878
  } catch {
354841
354879
  return void 0;
354842
354880
  }
354843
- const block = (0, import_cloud_assembly_api19.resolveResourceRange)(templateText, node.logicalId);
354881
+ const block = (0, import_cloud_assembly_api18.resolveResourceRange)(templateText, node.logicalId);
354844
354882
  if (block === void 0) {
354845
354883
  return void 0;
354846
354884
  }
@@ -354850,7 +354888,7 @@ async function resourceTarget(node) {
354850
354888
  };
354851
354889
  }
354852
354890
  function sourceTargetAtTemplateOffset(index, templateFile, templateText, offset) {
354853
- const logicalId = (0, import_cloud_assembly_api19.resolveLogicalIdAtOffset)(templateText, offset);
354891
+ const logicalId = (0, import_cloud_assembly_api18.resolveLogicalIdAtOffset)(templateText, offset);
354854
354892
  if (logicalId === void 0) {
354855
354893
  return void 0;
354856
354894
  }
@@ -354864,13 +354902,13 @@ function sourceTargetAtTemplateOffset(index, templateFile, templateText, offset)
354864
354902
  range: { start: position, end: position }
354865
354903
  };
354866
354904
  }
354867
- var fs54, import_url2, import_cloud_assembly_api19;
354905
+ var fs55, import_url2, import_cloud_assembly_api18;
354868
354906
  var init_template_locator = __esm({
354869
354907
  "../@aws-cdk/cdk-explorer/lib/lsp/template-locator.ts"() {
354870
354908
  "use strict";
354871
- fs54 = __toESM(require("fs"));
354909
+ fs55 = __toESM(require("fs"));
354872
354910
  import_url2 = require("url");
354873
- import_cloud_assembly_api19 = __toESM(require_lib3());
354911
+ import_cloud_assembly_api18 = __toESM(require_lib3());
354874
354912
  init_positions();
354875
354913
  __name(resourceTarget, "resourceTarget");
354876
354914
  __name(sourceTargetAtTemplateOffset, "sourceTargetAtTemplateOffset");
@@ -354959,6 +354997,17 @@ var init_codelens = __esm({
354959
354997
  }
354960
354998
  });
354961
354999
 
355000
+ // ../@aws-cdk/cdk-explorer/lib/lsp/construct-tree-request.ts
355001
+ var import_vscode_languageserver, GET_CONSTRUCT_TREE_METHOD, GetConstructTreeRequest;
355002
+ var init_construct_tree_request = __esm({
355003
+ "../@aws-cdk/cdk-explorer/lib/lsp/construct-tree-request.ts"() {
355004
+ "use strict";
355005
+ import_vscode_languageserver = __toESM(require_main6());
355006
+ GET_CONSTRUCT_TREE_METHOD = "cdk/getConstructTree";
355007
+ GetConstructTreeRequest = new import_vscode_languageserver.RequestType0(GET_CONSTRUCT_TREE_METHOD);
355008
+ }
355009
+ });
355010
+
354962
355011
  // ../@aws-cdk/cdk-explorer/lib/lsp/diagnostics.ts
354963
355012
  function mapViolationsToDiagnostics(violations, index) {
354964
355013
  const dropped = [];
@@ -355072,7 +355121,7 @@ async function resolveHoverLinks(nodes6, primary, readTemplate) {
355072
355121
  const resolveOnce = /* @__PURE__ */ __name(async (file) => {
355073
355122
  if (!templates.has(file)) {
355074
355123
  const text = await readTemplate(file);
355075
- const ranges = text === void 0 ? void 0 : (0, import_cloud_assembly_api20.indexTemplateRanges)(text);
355124
+ const ranges = text === void 0 ? void 0 : (0, import_cloud_assembly_api19.indexTemplateRanges)(text);
355076
355125
  templates.set(file, text !== void 0 && ranges !== void 0 ? { text, ranges } : void 0);
355077
355126
  }
355078
355127
  return templates.get(file);
@@ -355228,12 +355277,12 @@ function histogram(nodes6) {
355228
355277
  function truncate(text, max) {
355229
355278
  return text.length <= max ? text : `${text.slice(0, max - 1)}\u2026`;
355230
355279
  }
355231
- var import_url5, import_cloud_assembly_api20, import_node2, MAX_PROPERTIES, MAX_LINKED_AUX, MAX_STRING_LENGTH, MAX_OBJECT_KEYS, MAX_HISTOGRAM_TYPES;
355280
+ var import_url5, import_cloud_assembly_api19, import_node2, MAX_PROPERTIES, MAX_LINKED_AUX, MAX_STRING_LENGTH, MAX_OBJECT_KEYS, MAX_HISTOGRAM_TYPES;
355232
355281
  var init_hover = __esm({
355233
355282
  "../@aws-cdk/cdk-explorer/lib/lsp/hover.ts"() {
355234
355283
  "use strict";
355235
355284
  import_url5 = require("url");
355236
- import_cloud_assembly_api20 = __toESM(require_lib3());
355285
+ import_cloud_assembly_api19 = __toESM(require_lib3());
355237
355286
  import_node2 = __toESM(require_node6());
355238
355287
  init_codelens();
355239
355288
  init_positions();
@@ -355360,17 +355409,17 @@ function startAssemblyWatcher(options) {
355360
355409
  }
355361
355410
  };
355362
355411
  }
355363
- var path51, import_cloud_assembly_api21, import_cloud_assembly_schema11, TREE_FILE, ASSEMBLY_SIGNAL_FILES, DEBOUNCE_MS;
355412
+ var path51, import_cloud_assembly_api20, import_cloud_assembly_schema11, TREE_FILE, ASSEMBLY_SIGNAL_FILES, DEBOUNCE_MS;
355364
355413
  var init_assembly_watcher = __esm({
355365
355414
  "../@aws-cdk/cdk-explorer/lib/core/assembly-watcher.ts"() {
355366
355415
  "use strict";
355367
355416
  path51 = __toESM(require("path"));
355368
- import_cloud_assembly_api21 = __toESM(require_lib3());
355417
+ import_cloud_assembly_api20 = __toESM(require_lib3());
355369
355418
  import_cloud_assembly_schema11 = __toESM(require_lib2());
355370
355419
  init_esm2();
355371
355420
  TREE_FILE = "tree.json";
355372
355421
  ASSEMBLY_SIGNAL_FILES = /* @__PURE__ */ new Set([
355373
- import_cloud_assembly_api21.MANIFEST_FILE,
355422
+ import_cloud_assembly_api20.MANIFEST_FILE,
355374
355423
  TREE_FILE,
355375
355424
  import_cloud_assembly_schema11.VALIDATION_REPORT_FILE
355376
355425
  ]);
@@ -355428,7 +355477,10 @@ function createLspHandlers(options) {
355428
355477
  let autoSynthEnabled = false;
355429
355478
  let shouldIgnore = /* @__PURE__ */ __name(() => false, "shouldIgnore");
355430
355479
  let assemblyWatcher;
355431
- let cachedIndex = import_cloud_assembly_api22.ConstructIndex.fromTree([]);
355480
+ let cachedIndex = import_cloud_assembly_api21.ConstructIndex.fromTree([]);
355481
+ let cachedTree = [];
355482
+ let cachedWarnings = [];
355483
+ let cachedAssemblyDir;
355432
355484
  let publishedUris = /* @__PURE__ */ new Set();
355433
355485
  let codeLensRefreshSupported = false;
355434
355486
  function currentProjectDir() {
@@ -355471,7 +355523,10 @@ function createLspHandlers(options) {
355471
355523
  for (const warning2 of warnings) {
355472
355524
  log.warn(warning2);
355473
355525
  }
355474
- cachedIndex = import_cloud_assembly_api22.ConstructIndex.fromTree(tree);
355526
+ cachedIndex = import_cloud_assembly_api21.ConstructIndex.fromTree(tree);
355527
+ cachedTree = tree;
355528
+ cachedWarnings = warnings;
355529
+ cachedAssemblyDir = assemblyDir;
355475
355530
  const { byUri, dropped } = mapViolationsToDiagnostics(violations, cachedIndex);
355476
355531
  for (const drop of dropped) {
355477
355532
  log.warn(`Dropped diagnostic for '${drop.ruleName}' at '${drop.constructPath}': ${drop.reason}`);
@@ -355615,7 +355670,7 @@ function createLspHandlers(options) {
355615
355670
  }
355616
355671
  let templateText;
355617
355672
  try {
355618
- templateText = await fs55.promises.readFile(filePath, "utf-8");
355673
+ templateText = await fs56.promises.readFile(filePath, "utf-8");
355619
355674
  } catch {
355620
355675
  return void 0;
355621
355676
  }
@@ -355637,9 +355692,44 @@ function createLspHandlers(options) {
355637
355692
  cachedIndex,
355638
355693
  params.textDocument.uri,
355639
355694
  params.position,
355640
- (file) => fs55.promises.readFile(file, "utf-8").catch(() => void 0)
355695
+ (file) => fs56.promises.readFile(file, "utf-8").catch(() => void 0)
355641
355696
  );
355642
355697
  },
355698
+ onGetConstructTree() {
355699
+ const assemblyDir = cachedAssemblyDir ?? path52.join(currentProjectDir(), "cdk.out");
355700
+ if (cachedAssemblyDir === void 0) {
355701
+ return { status: "no-assembly", assemblyDir, entries: [], warnings: [] };
355702
+ }
355703
+ const rangesByTemplate = /* @__PURE__ */ new Map();
355704
+ const templateRangesFor = /* @__PURE__ */ __name((templateFile) => {
355705
+ if (!rangesByTemplate.has(templateFile)) {
355706
+ try {
355707
+ rangesByTemplate.set(templateFile, (0, import_cloud_assembly_api21.indexTemplateRanges)(fs56.readFileSync(templateFile, "utf-8")));
355708
+ } catch {
355709
+ rangesByTemplate.set(templateFile, void 0);
355710
+ }
355711
+ }
355712
+ return rangesByTemplate.get(templateFile);
355713
+ }, "templateRangesFor");
355714
+ const entries = [];
355715
+ const collect = /* @__PURE__ */ __name((nodes6) => {
355716
+ for (const node of nodes6) {
355717
+ const templateOffset = node.templateFile && node.logicalId ? templateRangesFor(node.templateFile)?.block(node.logicalId)?.start : void 0;
355718
+ entries.push({
355719
+ path: node.path,
355720
+ id: node.id,
355721
+ type: node.type,
355722
+ logicalId: node.logicalId,
355723
+ sourceLocation: node.sourceLocation,
355724
+ templateFile: node.templateFile,
355725
+ templateOffset
355726
+ });
355727
+ collect(node.children);
355728
+ }
355729
+ }, "collect");
355730
+ collect(cachedTree);
355731
+ return { status: "ok", assemblyDir, entries, warnings: [...cachedWarnings] };
355732
+ },
355643
355733
  onShutdown() {
355644
355734
  shutdownRequested = true;
355645
355735
  void assemblyWatcher?.close();
@@ -355702,24 +355792,26 @@ function startServer(options) {
355702
355792
  connection.onDefinition((params) => handlers.onDefinition(params));
355703
355793
  connection.onExecuteCommand((params) => handlers.onExecuteCommand(params));
355704
355794
  connection.onHover((params) => handlers.onHover(params));
355795
+ connection.onRequest(GetConstructTreeRequest, () => handlers.onGetConstructTree());
355705
355796
  connection.onShutdown(() => handlers.onShutdown());
355706
355797
  connection.onExit(() => process.exit(0));
355707
355798
  connection.listen();
355708
355799
  }
355709
- var fs55, path52, import_url7, import_cloud_assembly_api22, import_toolkit_lib22, import_node4, import_node5, REFRESH_LOCK_RETRIES, REFRESH_LOCK_RETRY_MS, SYNTH_LOCK_RETRY_BASE_MS, SYNTH_LOCK_RETRY_MAX_MS, NOOP_LOGGER;
355800
+ var fs56, path52, import_url7, import_cloud_assembly_api21, import_toolkit_lib22, import_node4, import_node5, REFRESH_LOCK_RETRIES, REFRESH_LOCK_RETRY_MS, SYNTH_LOCK_RETRY_BASE_MS, SYNTH_LOCK_RETRY_MAX_MS, NOOP_LOGGER;
355710
355801
  var init_server = __esm({
355711
355802
  "../@aws-cdk/cdk-explorer/lib/lsp/server.ts"() {
355712
355803
  "use strict";
355713
- fs55 = __toESM(require("fs"));
355804
+ fs56 = __toESM(require("fs"));
355714
355805
  path52 = __toESM(require("path"));
355715
355806
  import_url7 = require("url");
355716
- import_cloud_assembly_api22 = __toESM(require_lib3());
355807
+ import_cloud_assembly_api21 = __toESM(require_lib3());
355717
355808
  import_toolkit_lib22 = __toESM(require_lib12());
355718
355809
  import_node4 = __toESM(require_node3());
355719
355810
  import_node5 = __toESM(require_node6());
355720
355811
  init_api_private2();
355721
355812
  init_codelens();
355722
355813
  init_commands7();
355814
+ init_construct_tree_request();
355723
355815
  init_diagnostics();
355724
355816
  init_hover();
355725
355817
  init_positions();
@@ -355763,10 +355855,10 @@ var init_assembly_lock = __esm({
355763
355855
  // ../@aws-cdk/cdk-explorer/lib/core/cdk-config.ts
355764
355856
  function readCdkConfig(projectDir) {
355765
355857
  const configPath = path53.join(projectDir, "cdk.json");
355766
- if (!fs56.existsSync(configPath)) return { app: void 0 };
355858
+ if (!fs57.existsSync(configPath)) return { app: void 0 };
355767
355859
  let parsed;
355768
355860
  try {
355769
- parsed = JSON.parse(fs56.readFileSync(configPath, "utf-8"));
355861
+ parsed = JSON.parse(fs57.readFileSync(configPath, "utf-8"));
355770
355862
  } catch {
355771
355863
  return { app: void 0 };
355772
355864
  }
@@ -355774,11 +355866,11 @@ function readCdkConfig(projectDir) {
355774
355866
  const app = parsed.app;
355775
355867
  return { app: typeof app === "string" ? app : void 0 };
355776
355868
  }
355777
- var fs56, path53;
355869
+ var fs57, path53;
355778
355870
  var init_cdk_config = __esm({
355779
355871
  "../@aws-cdk/cdk-explorer/lib/core/cdk-config.ts"() {
355780
355872
  "use strict";
355781
- fs56 = __toESM(require("fs"));
355873
+ fs57 = __toESM(require("fs"));
355782
355874
  path53 = __toESM(require("path"));
355783
355875
  __name(readCdkConfig, "readCdkConfig");
355784
355876
  }