@vercel/next 12.0.2 → 12.0.5

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.
@@ -678,54 +678,54 @@ var require_polyfills = __commonJS({
678
678
  }
679
679
  var chdir;
680
680
  module2.exports = patch;
681
- function patch(fs5) {
681
+ function patch(fs4) {
682
682
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
683
- patchLchmod(fs5);
684
- }
685
- if (!fs5.lutimes) {
686
- patchLutimes(fs5);
687
- }
688
- fs5.chown = chownFix(fs5.chown);
689
- fs5.fchown = chownFix(fs5.fchown);
690
- fs5.lchown = chownFix(fs5.lchown);
691
- fs5.chmod = chmodFix(fs5.chmod);
692
- fs5.fchmod = chmodFix(fs5.fchmod);
693
- fs5.lchmod = chmodFix(fs5.lchmod);
694
- fs5.chownSync = chownFixSync(fs5.chownSync);
695
- fs5.fchownSync = chownFixSync(fs5.fchownSync);
696
- fs5.lchownSync = chownFixSync(fs5.lchownSync);
697
- fs5.chmodSync = chmodFixSync(fs5.chmodSync);
698
- fs5.fchmodSync = chmodFixSync(fs5.fchmodSync);
699
- fs5.lchmodSync = chmodFixSync(fs5.lchmodSync);
700
- fs5.stat = statFix(fs5.stat);
701
- fs5.fstat = statFix(fs5.fstat);
702
- fs5.lstat = statFix(fs5.lstat);
703
- fs5.statSync = statFixSync(fs5.statSync);
704
- fs5.fstatSync = statFixSync(fs5.fstatSync);
705
- fs5.lstatSync = statFixSync(fs5.lstatSync);
706
- if (fs5.chmod && !fs5.lchmod) {
707
- fs5.lchmod = function(path4, mode, cb) {
683
+ patchLchmod(fs4);
684
+ }
685
+ if (!fs4.lutimes) {
686
+ patchLutimes(fs4);
687
+ }
688
+ fs4.chown = chownFix(fs4.chown);
689
+ fs4.fchown = chownFix(fs4.fchown);
690
+ fs4.lchown = chownFix(fs4.lchown);
691
+ fs4.chmod = chmodFix(fs4.chmod);
692
+ fs4.fchmod = chmodFix(fs4.fchmod);
693
+ fs4.lchmod = chmodFix(fs4.lchmod);
694
+ fs4.chownSync = chownFixSync(fs4.chownSync);
695
+ fs4.fchownSync = chownFixSync(fs4.fchownSync);
696
+ fs4.lchownSync = chownFixSync(fs4.lchownSync);
697
+ fs4.chmodSync = chmodFixSync(fs4.chmodSync);
698
+ fs4.fchmodSync = chmodFixSync(fs4.fchmodSync);
699
+ fs4.lchmodSync = chmodFixSync(fs4.lchmodSync);
700
+ fs4.stat = statFix(fs4.stat);
701
+ fs4.fstat = statFix(fs4.fstat);
702
+ fs4.lstat = statFix(fs4.lstat);
703
+ fs4.statSync = statFixSync(fs4.statSync);
704
+ fs4.fstatSync = statFixSync(fs4.fstatSync);
705
+ fs4.lstatSync = statFixSync(fs4.lstatSync);
706
+ if (fs4.chmod && !fs4.lchmod) {
707
+ fs4.lchmod = function(path3, mode, cb) {
708
708
  if (cb) process.nextTick(cb);
709
709
  };
710
- fs5.lchmodSync = function() {
710
+ fs4.lchmodSync = function() {
711
711
  };
712
712
  }
713
- if (fs5.chown && !fs5.lchown) {
714
- fs5.lchown = function(path4, uid, gid, cb) {
713
+ if (fs4.chown && !fs4.lchown) {
714
+ fs4.lchown = function(path3, uid, gid, cb) {
715
715
  if (cb) process.nextTick(cb);
716
716
  };
717
- fs5.lchownSync = function() {
717
+ fs4.lchownSync = function() {
718
718
  };
719
719
  }
720
720
  if (platform === "win32") {
721
- fs5.rename = typeof fs5.rename !== "function" ? fs5.rename : (function(fs$rename) {
721
+ fs4.rename = typeof fs4.rename !== "function" ? fs4.rename : (function(fs$rename) {
722
722
  function rename(from, to, cb) {
723
723
  var start = Date.now();
724
724
  var backoff = 0;
725
725
  fs$rename(from, to, function CB(er) {
726
726
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
727
727
  setTimeout(function() {
728
- fs5.stat(to, function(stater, st) {
728
+ fs4.stat(to, function(stater, st) {
729
729
  if (stater && stater.code === "ENOENT")
730
730
  fs$rename(from, to, CB);
731
731
  else
@@ -741,9 +741,9 @@ var require_polyfills = __commonJS({
741
741
  }
742
742
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
743
743
  return rename;
744
- })(fs5.rename);
744
+ })(fs4.rename);
745
745
  }
746
- fs5.read = typeof fs5.read !== "function" ? fs5.read : (function(fs$read) {
746
+ fs4.read = typeof fs4.read !== "function" ? fs4.read : (function(fs$read) {
747
747
  function read(fd, buffer, offset, length, position, callback_) {
748
748
  var callback;
749
749
  if (callback_ && typeof callback_ === "function") {
@@ -751,22 +751,22 @@ var require_polyfills = __commonJS({
751
751
  callback = function(er, _, __) {
752
752
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
753
753
  eagCounter++;
754
- return fs$read.call(fs5, fd, buffer, offset, length, position, callback);
754
+ return fs$read.call(fs4, fd, buffer, offset, length, position, callback);
755
755
  }
756
756
  callback_.apply(this, arguments);
757
757
  };
758
758
  }
759
- return fs$read.call(fs5, fd, buffer, offset, length, position, callback);
759
+ return fs$read.call(fs4, fd, buffer, offset, length, position, callback);
760
760
  }
761
761
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
762
762
  return read;
763
- })(fs5.read);
764
- fs5.readSync = typeof fs5.readSync !== "function" ? fs5.readSync : /* @__PURE__ */ (function(fs$readSync) {
763
+ })(fs4.read);
764
+ fs4.readSync = typeof fs4.readSync !== "function" ? fs4.readSync : /* @__PURE__ */ (function(fs$readSync) {
765
765
  return function(fd, buffer, offset, length, position) {
766
766
  var eagCounter = 0;
767
767
  while (true) {
768
768
  try {
769
- return fs$readSync.call(fs5, fd, buffer, offset, length, position);
769
+ return fs$readSync.call(fs4, fd, buffer, offset, length, position);
770
770
  } catch (er) {
771
771
  if (er.code === "EAGAIN" && eagCounter < 10) {
772
772
  eagCounter++;
@@ -776,11 +776,11 @@ var require_polyfills = __commonJS({
776
776
  }
777
777
  }
778
778
  };
779
- })(fs5.readSync);
780
- function patchLchmod(fs6) {
781
- fs6.lchmod = function(path4, mode, callback) {
782
- fs6.open(
783
- path4,
779
+ })(fs4.readSync);
780
+ function patchLchmod(fs5) {
781
+ fs5.lchmod = function(path3, mode, callback) {
782
+ fs5.open(
783
+ path3,
784
784
  constants.O_WRONLY | constants.O_SYMLINK,
785
785
  mode,
786
786
  function(err, fd) {
@@ -788,80 +788,80 @@ var require_polyfills = __commonJS({
788
788
  if (callback) callback(err);
789
789
  return;
790
790
  }
791
- fs6.fchmod(fd, mode, function(err2) {
792
- fs6.close(fd, function(err22) {
791
+ fs5.fchmod(fd, mode, function(err2) {
792
+ fs5.close(fd, function(err22) {
793
793
  if (callback) callback(err2 || err22);
794
794
  });
795
795
  });
796
796
  }
797
797
  );
798
798
  };
799
- fs6.lchmodSync = function(path4, mode) {
800
- var fd = fs6.openSync(path4, constants.O_WRONLY | constants.O_SYMLINK, mode);
799
+ fs5.lchmodSync = function(path3, mode) {
800
+ var fd = fs5.openSync(path3, constants.O_WRONLY | constants.O_SYMLINK, mode);
801
801
  var threw = true;
802
802
  var ret;
803
803
  try {
804
- ret = fs6.fchmodSync(fd, mode);
804
+ ret = fs5.fchmodSync(fd, mode);
805
805
  threw = false;
806
806
  } finally {
807
807
  if (threw) {
808
808
  try {
809
- fs6.closeSync(fd);
809
+ fs5.closeSync(fd);
810
810
  } catch (er) {
811
811
  }
812
812
  } else {
813
- fs6.closeSync(fd);
813
+ fs5.closeSync(fd);
814
814
  }
815
815
  }
816
816
  return ret;
817
817
  };
818
818
  }
819
- function patchLutimes(fs6) {
820
- if (constants.hasOwnProperty("O_SYMLINK") && fs6.futimes) {
821
- fs6.lutimes = function(path4, at, mt, cb) {
822
- fs6.open(path4, constants.O_SYMLINK, function(er, fd) {
819
+ function patchLutimes(fs5) {
820
+ if (constants.hasOwnProperty("O_SYMLINK") && fs5.futimes) {
821
+ fs5.lutimes = function(path3, at, mt, cb) {
822
+ fs5.open(path3, constants.O_SYMLINK, function(er, fd) {
823
823
  if (er) {
824
824
  if (cb) cb(er);
825
825
  return;
826
826
  }
827
- fs6.futimes(fd, at, mt, function(er2) {
828
- fs6.close(fd, function(er22) {
827
+ fs5.futimes(fd, at, mt, function(er2) {
828
+ fs5.close(fd, function(er22) {
829
829
  if (cb) cb(er2 || er22);
830
830
  });
831
831
  });
832
832
  });
833
833
  };
834
- fs6.lutimesSync = function(path4, at, mt) {
835
- var fd = fs6.openSync(path4, constants.O_SYMLINK);
834
+ fs5.lutimesSync = function(path3, at, mt) {
835
+ var fd = fs5.openSync(path3, constants.O_SYMLINK);
836
836
  var ret;
837
837
  var threw = true;
838
838
  try {
839
- ret = fs6.futimesSync(fd, at, mt);
839
+ ret = fs5.futimesSync(fd, at, mt);
840
840
  threw = false;
841
841
  } finally {
842
842
  if (threw) {
843
843
  try {
844
- fs6.closeSync(fd);
844
+ fs5.closeSync(fd);
845
845
  } catch (er) {
846
846
  }
847
847
  } else {
848
- fs6.closeSync(fd);
848
+ fs5.closeSync(fd);
849
849
  }
850
850
  }
851
851
  return ret;
852
852
  };
853
- } else if (fs6.futimes) {
854
- fs6.lutimes = function(_a, _b, _c, cb) {
853
+ } else if (fs5.futimes) {
854
+ fs5.lutimes = function(_a, _b, _c, cb) {
855
855
  if (cb) process.nextTick(cb);
856
856
  };
857
- fs6.lutimesSync = function() {
857
+ fs5.lutimesSync = function() {
858
858
  };
859
859
  }
860
860
  }
861
861
  function chmodFix(orig) {
862
862
  if (!orig) return orig;
863
863
  return function(target, mode, cb) {
864
- return orig.call(fs5, target, mode, function(er) {
864
+ return orig.call(fs4, target, mode, function(er) {
865
865
  if (chownErOk(er)) er = null;
866
866
  if (cb) cb.apply(this, arguments);
867
867
  });
@@ -871,7 +871,7 @@ var require_polyfills = __commonJS({
871
871
  if (!orig) return orig;
872
872
  return function(target, mode) {
873
873
  try {
874
- return orig.call(fs5, target, mode);
874
+ return orig.call(fs4, target, mode);
875
875
  } catch (er) {
876
876
  if (!chownErOk(er)) throw er;
877
877
  }
@@ -880,7 +880,7 @@ var require_polyfills = __commonJS({
880
880
  function chownFix(orig) {
881
881
  if (!orig) return orig;
882
882
  return function(target, uid, gid, cb) {
883
- return orig.call(fs5, target, uid, gid, function(er) {
883
+ return orig.call(fs4, target, uid, gid, function(er) {
884
884
  if (chownErOk(er)) er = null;
885
885
  if (cb) cb.apply(this, arguments);
886
886
  });
@@ -890,7 +890,7 @@ var require_polyfills = __commonJS({
890
890
  if (!orig) return orig;
891
891
  return function(target, uid, gid) {
892
892
  try {
893
- return orig.call(fs5, target, uid, gid);
893
+ return orig.call(fs4, target, uid, gid);
894
894
  } catch (er) {
895
895
  if (!chownErOk(er)) throw er;
896
896
  }
@@ -910,13 +910,13 @@ var require_polyfills = __commonJS({
910
910
  }
911
911
  if (cb) cb.apply(this, arguments);
912
912
  }
913
- return options ? orig.call(fs5, target, options, callback) : orig.call(fs5, target, callback);
913
+ return options ? orig.call(fs4, target, options, callback) : orig.call(fs4, target, callback);
914
914
  };
915
915
  }
916
916
  function statFixSync(orig) {
917
917
  if (!orig) return orig;
918
918
  return function(target, options) {
919
- var stats = options ? orig.call(fs5, target, options) : orig.call(fs5, target);
919
+ var stats = options ? orig.call(fs4, target, options) : orig.call(fs4, target);
920
920
  if (stats) {
921
921
  if (stats.uid < 0) stats.uid += 4294967296;
922
922
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -945,16 +945,16 @@ var require_legacy_streams = __commonJS({
945
945
  "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
946
946
  var Stream = require("stream").Stream;
947
947
  module2.exports = legacy;
948
- function legacy(fs5) {
948
+ function legacy(fs4) {
949
949
  return {
950
950
  ReadStream,
951
951
  WriteStream
952
952
  };
953
- function ReadStream(path4, options) {
954
- if (!(this instanceof ReadStream)) return new ReadStream(path4, options);
953
+ function ReadStream(path3, options) {
954
+ if (!(this instanceof ReadStream)) return new ReadStream(path3, options);
955
955
  Stream.call(this);
956
956
  var self = this;
957
- this.path = path4;
957
+ this.path = path3;
958
958
  this.fd = null;
959
959
  this.readable = true;
960
960
  this.paused = false;
@@ -988,7 +988,7 @@ var require_legacy_streams = __commonJS({
988
988
  });
989
989
  return;
990
990
  }
991
- fs5.open(this.path, this.flags, this.mode, function(err, fd) {
991
+ fs4.open(this.path, this.flags, this.mode, function(err, fd) {
992
992
  if (err) {
993
993
  self.emit("error", err);
994
994
  self.readable = false;
@@ -999,10 +999,10 @@ var require_legacy_streams = __commonJS({
999
999
  self._read();
1000
1000
  });
1001
1001
  }
1002
- function WriteStream(path4, options) {
1003
- if (!(this instanceof WriteStream)) return new WriteStream(path4, options);
1002
+ function WriteStream(path3, options) {
1003
+ if (!(this instanceof WriteStream)) return new WriteStream(path3, options);
1004
1004
  Stream.call(this);
1005
- this.path = path4;
1005
+ this.path = path3;
1006
1006
  this.fd = null;
1007
1007
  this.writable = true;
1008
1008
  this.flags = "w";
@@ -1027,7 +1027,7 @@ var require_legacy_streams = __commonJS({
1027
1027
  this.busy = false;
1028
1028
  this._queue = [];
1029
1029
  if (this.fd === null) {
1030
- this._open = fs5.open;
1030
+ this._open = fs4.open;
1031
1031
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
1032
1032
  this.flush();
1033
1033
  }
@@ -1062,7 +1062,7 @@ var require_clone = __commonJS({
1062
1062
  // ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
1063
1063
  var require_graceful_fs = __commonJS({
1064
1064
  "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
1065
- var fs5 = require("fs");
1065
+ var fs4 = require("fs");
1066
1066
  var polyfills = require_polyfills();
1067
1067
  var legacy = require_legacy_streams();
1068
1068
  var clone = require_clone();
@@ -1094,12 +1094,12 @@ var require_graceful_fs = __commonJS({
1094
1094
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
1095
1095
  console.error(m);
1096
1096
  };
1097
- if (!fs5[gracefulQueue]) {
1097
+ if (!fs4[gracefulQueue]) {
1098
1098
  queue = global[gracefulQueue] || [];
1099
- publishQueue(fs5, queue);
1100
- fs5.close = (function(fs$close) {
1099
+ publishQueue(fs4, queue);
1100
+ fs4.close = (function(fs$close) {
1101
1101
  function close(fd, cb) {
1102
- return fs$close.call(fs5, fd, function(err) {
1102
+ return fs$close.call(fs4, fd, function(err) {
1103
1103
  if (!err) {
1104
1104
  resetQueue();
1105
1105
  }
@@ -1111,48 +1111,48 @@ var require_graceful_fs = __commonJS({
1111
1111
  value: fs$close
1112
1112
  });
1113
1113
  return close;
1114
- })(fs5.close);
1115
- fs5.closeSync = (function(fs$closeSync) {
1114
+ })(fs4.close);
1115
+ fs4.closeSync = (function(fs$closeSync) {
1116
1116
  function closeSync(fd) {
1117
- fs$closeSync.apply(fs5, arguments);
1117
+ fs$closeSync.apply(fs4, arguments);
1118
1118
  resetQueue();
1119
1119
  }
1120
1120
  Object.defineProperty(closeSync, previousSymbol, {
1121
1121
  value: fs$closeSync
1122
1122
  });
1123
1123
  return closeSync;
1124
- })(fs5.closeSync);
1124
+ })(fs4.closeSync);
1125
1125
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
1126
1126
  process.on("exit", function() {
1127
- debug(fs5[gracefulQueue]);
1128
- require("assert").equal(fs5[gracefulQueue].length, 0);
1127
+ debug(fs4[gracefulQueue]);
1128
+ require("assert").equal(fs4[gracefulQueue].length, 0);
1129
1129
  });
1130
1130
  }
1131
1131
  }
1132
1132
  var queue;
1133
1133
  if (!global[gracefulQueue]) {
1134
- publishQueue(global, fs5[gracefulQueue]);
1135
- }
1136
- module2.exports = patch(clone(fs5));
1137
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs5.__patched) {
1138
- module2.exports = patch(fs5);
1139
- fs5.__patched = true;
1140
- }
1141
- function patch(fs6) {
1142
- polyfills(fs6);
1143
- fs6.gracefulify = patch;
1144
- fs6.createReadStream = createReadStream;
1145
- fs6.createWriteStream = createWriteStream;
1146
- var fs$readFile = fs6.readFile;
1147
- fs6.readFile = readFile2;
1148
- function readFile2(path4, options, cb) {
1134
+ publishQueue(global, fs4[gracefulQueue]);
1135
+ }
1136
+ module2.exports = patch(clone(fs4));
1137
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs4.__patched) {
1138
+ module2.exports = patch(fs4);
1139
+ fs4.__patched = true;
1140
+ }
1141
+ function patch(fs5) {
1142
+ polyfills(fs5);
1143
+ fs5.gracefulify = patch;
1144
+ fs5.createReadStream = createReadStream;
1145
+ fs5.createWriteStream = createWriteStream;
1146
+ var fs$readFile = fs5.readFile;
1147
+ fs5.readFile = readFile2;
1148
+ function readFile2(path3, options, cb) {
1149
1149
  if (typeof options === "function")
1150
1150
  cb = options, options = null;
1151
- return go$readFile(path4, options, cb);
1152
- function go$readFile(path5, options2, cb2, startTime) {
1153
- return fs$readFile(path5, options2, function(err) {
1151
+ return go$readFile(path3, options, cb);
1152
+ function go$readFile(path4, options2, cb2, startTime) {
1153
+ return fs$readFile(path4, options2, function(err) {
1154
1154
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1155
- enqueue([go$readFile, [path5, options2, cb2], err, startTime || Date.now(), Date.now()]);
1155
+ enqueue([go$readFile, [path4, options2, cb2], err, startTime || Date.now(), Date.now()]);
1156
1156
  else {
1157
1157
  if (typeof cb2 === "function")
1158
1158
  cb2.apply(this, arguments);
@@ -1160,16 +1160,16 @@ var require_graceful_fs = __commonJS({
1160
1160
  });
1161
1161
  }
1162
1162
  }
1163
- var fs$writeFile = fs6.writeFile;
1164
- fs6.writeFile = writeFile;
1165
- function writeFile(path4, data, options, cb) {
1163
+ var fs$writeFile = fs5.writeFile;
1164
+ fs5.writeFile = writeFile;
1165
+ function writeFile(path3, data, options, cb) {
1166
1166
  if (typeof options === "function")
1167
1167
  cb = options, options = null;
1168
- return go$writeFile(path4, data, options, cb);
1169
- function go$writeFile(path5, data2, options2, cb2, startTime) {
1170
- return fs$writeFile(path5, data2, options2, function(err) {
1168
+ return go$writeFile(path3, data, options, cb);
1169
+ function go$writeFile(path4, data2, options2, cb2, startTime) {
1170
+ return fs$writeFile(path4, data2, options2, function(err) {
1171
1171
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1172
- enqueue([go$writeFile, [path5, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1172
+ enqueue([go$writeFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1173
1173
  else {
1174
1174
  if (typeof cb2 === "function")
1175
1175
  cb2.apply(this, arguments);
@@ -1177,17 +1177,17 @@ var require_graceful_fs = __commonJS({
1177
1177
  });
1178
1178
  }
1179
1179
  }
1180
- var fs$appendFile = fs6.appendFile;
1180
+ var fs$appendFile = fs5.appendFile;
1181
1181
  if (fs$appendFile)
1182
- fs6.appendFile = appendFile;
1183
- function appendFile(path4, data, options, cb) {
1182
+ fs5.appendFile = appendFile;
1183
+ function appendFile(path3, data, options, cb) {
1184
1184
  if (typeof options === "function")
1185
1185
  cb = options, options = null;
1186
- return go$appendFile(path4, data, options, cb);
1187
- function go$appendFile(path5, data2, options2, cb2, startTime) {
1188
- return fs$appendFile(path5, data2, options2, function(err) {
1186
+ return go$appendFile(path3, data, options, cb);
1187
+ function go$appendFile(path4, data2, options2, cb2, startTime) {
1188
+ return fs$appendFile(path4, data2, options2, function(err) {
1189
1189
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1190
- enqueue([go$appendFile, [path5, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1190
+ enqueue([go$appendFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1191
1191
  else {
1192
1192
  if (typeof cb2 === "function")
1193
1193
  cb2.apply(this, arguments);
@@ -1195,9 +1195,9 @@ var require_graceful_fs = __commonJS({
1195
1195
  });
1196
1196
  }
1197
1197
  }
1198
- var fs$copyFile = fs6.copyFile;
1198
+ var fs$copyFile = fs5.copyFile;
1199
1199
  if (fs$copyFile)
1200
- fs6.copyFile = copyFile;
1200
+ fs5.copyFile = copyFile;
1201
1201
  function copyFile(src, dest, flags, cb) {
1202
1202
  if (typeof flags === "function") {
1203
1203
  cb = flags;
@@ -1215,34 +1215,34 @@ var require_graceful_fs = __commonJS({
1215
1215
  });
1216
1216
  }
1217
1217
  }
1218
- var fs$readdir = fs6.readdir;
1219
- fs6.readdir = readdir;
1218
+ var fs$readdir = fs5.readdir;
1219
+ fs5.readdir = readdir;
1220
1220
  var noReaddirOptionVersions = /^v[0-5]\./;
1221
- function readdir(path4, options, cb) {
1221
+ function readdir(path3, options, cb) {
1222
1222
  if (typeof options === "function")
1223
1223
  cb = options, options = null;
1224
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path5, options2, cb2, startTime) {
1225
- return fs$readdir(path5, fs$readdirCallback(
1226
- path5,
1224
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path4, options2, cb2, startTime) {
1225
+ return fs$readdir(path4, fs$readdirCallback(
1226
+ path4,
1227
1227
  options2,
1228
1228
  cb2,
1229
1229
  startTime
1230
1230
  ));
1231
- } : function go$readdir2(path5, options2, cb2, startTime) {
1232
- return fs$readdir(path5, options2, fs$readdirCallback(
1233
- path5,
1231
+ } : function go$readdir2(path4, options2, cb2, startTime) {
1232
+ return fs$readdir(path4, options2, fs$readdirCallback(
1233
+ path4,
1234
1234
  options2,
1235
1235
  cb2,
1236
1236
  startTime
1237
1237
  ));
1238
1238
  };
1239
- return go$readdir(path4, options, cb);
1240
- function fs$readdirCallback(path5, options2, cb2, startTime) {
1239
+ return go$readdir(path3, options, cb);
1240
+ function fs$readdirCallback(path4, options2, cb2, startTime) {
1241
1241
  return function(err, files) {
1242
1242
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1243
1243
  enqueue([
1244
1244
  go$readdir,
1245
- [path5, options2, cb2],
1245
+ [path4, options2, cb2],
1246
1246
  err,
1247
1247
  startTime || Date.now(),
1248
1248
  Date.now()
@@ -1257,21 +1257,21 @@ var require_graceful_fs = __commonJS({
1257
1257
  }
1258
1258
  }
1259
1259
  if (process.version.substr(0, 4) === "v0.8") {
1260
- var legStreams = legacy(fs6);
1260
+ var legStreams = legacy(fs5);
1261
1261
  ReadStream = legStreams.ReadStream;
1262
1262
  WriteStream = legStreams.WriteStream;
1263
1263
  }
1264
- var fs$ReadStream = fs6.ReadStream;
1264
+ var fs$ReadStream = fs5.ReadStream;
1265
1265
  if (fs$ReadStream) {
1266
1266
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
1267
1267
  ReadStream.prototype.open = ReadStream$open;
1268
1268
  }
1269
- var fs$WriteStream = fs6.WriteStream;
1269
+ var fs$WriteStream = fs5.WriteStream;
1270
1270
  if (fs$WriteStream) {
1271
1271
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
1272
1272
  WriteStream.prototype.open = WriteStream$open;
1273
1273
  }
1274
- Object.defineProperty(fs6, "ReadStream", {
1274
+ Object.defineProperty(fs5, "ReadStream", {
1275
1275
  get: function() {
1276
1276
  return ReadStream;
1277
1277
  },
@@ -1281,7 +1281,7 @@ var require_graceful_fs = __commonJS({
1281
1281
  enumerable: true,
1282
1282
  configurable: true
1283
1283
  });
1284
- Object.defineProperty(fs6, "WriteStream", {
1284
+ Object.defineProperty(fs5, "WriteStream", {
1285
1285
  get: function() {
1286
1286
  return WriteStream;
1287
1287
  },
@@ -1292,7 +1292,7 @@ var require_graceful_fs = __commonJS({
1292
1292
  configurable: true
1293
1293
  });
1294
1294
  var FileReadStream = ReadStream;
1295
- Object.defineProperty(fs6, "FileReadStream", {
1295
+ Object.defineProperty(fs5, "FileReadStream", {
1296
1296
  get: function() {
1297
1297
  return FileReadStream;
1298
1298
  },
@@ -1303,7 +1303,7 @@ var require_graceful_fs = __commonJS({
1303
1303
  configurable: true
1304
1304
  });
1305
1305
  var FileWriteStream = WriteStream;
1306
- Object.defineProperty(fs6, "FileWriteStream", {
1306
+ Object.defineProperty(fs5, "FileWriteStream", {
1307
1307
  get: function() {
1308
1308
  return FileWriteStream;
1309
1309
  },
@@ -1313,7 +1313,7 @@ var require_graceful_fs = __commonJS({
1313
1313
  enumerable: true,
1314
1314
  configurable: true
1315
1315
  });
1316
- function ReadStream(path4, options) {
1316
+ function ReadStream(path3, options) {
1317
1317
  if (this instanceof ReadStream)
1318
1318
  return fs$ReadStream.apply(this, arguments), this;
1319
1319
  else
@@ -1333,7 +1333,7 @@ var require_graceful_fs = __commonJS({
1333
1333
  }
1334
1334
  });
1335
1335
  }
1336
- function WriteStream(path4, options) {
1336
+ function WriteStream(path3, options) {
1337
1337
  if (this instanceof WriteStream)
1338
1338
  return fs$WriteStream.apply(this, arguments), this;
1339
1339
  else
@@ -1351,22 +1351,22 @@ var require_graceful_fs = __commonJS({
1351
1351
  }
1352
1352
  });
1353
1353
  }
1354
- function createReadStream(path4, options) {
1355
- return new fs6.ReadStream(path4, options);
1354
+ function createReadStream(path3, options) {
1355
+ return new fs5.ReadStream(path3, options);
1356
1356
  }
1357
- function createWriteStream(path4, options) {
1358
- return new fs6.WriteStream(path4, options);
1357
+ function createWriteStream(path3, options) {
1358
+ return new fs5.WriteStream(path3, options);
1359
1359
  }
1360
- var fs$open = fs6.open;
1361
- fs6.open = open;
1362
- function open(path4, flags, mode, cb) {
1360
+ var fs$open = fs5.open;
1361
+ fs5.open = open;
1362
+ function open(path3, flags, mode, cb) {
1363
1363
  if (typeof mode === "function")
1364
1364
  cb = mode, mode = null;
1365
- return go$open(path4, flags, mode, cb);
1366
- function go$open(path5, flags2, mode2, cb2, startTime) {
1367
- return fs$open(path5, flags2, mode2, function(err, fd) {
1365
+ return go$open(path3, flags, mode, cb);
1366
+ function go$open(path4, flags2, mode2, cb2, startTime) {
1367
+ return fs$open(path4, flags2, mode2, function(err, fd) {
1368
1368
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1369
- enqueue([go$open, [path5, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
1369
+ enqueue([go$open, [path4, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
1370
1370
  else {
1371
1371
  if (typeof cb2 === "function")
1372
1372
  cb2.apply(this, arguments);
@@ -1374,20 +1374,20 @@ var require_graceful_fs = __commonJS({
1374
1374
  });
1375
1375
  }
1376
1376
  }
1377
- return fs6;
1377
+ return fs5;
1378
1378
  }
1379
1379
  function enqueue(elem) {
1380
1380
  debug("ENQUEUE", elem[0].name, elem[1]);
1381
- fs5[gracefulQueue].push(elem);
1381
+ fs4[gracefulQueue].push(elem);
1382
1382
  retry();
1383
1383
  }
1384
1384
  var retryTimer;
1385
1385
  function resetQueue() {
1386
1386
  var now = Date.now();
1387
- for (var i = 0; i < fs5[gracefulQueue].length; ++i) {
1388
- if (fs5[gracefulQueue][i].length > 2) {
1389
- fs5[gracefulQueue][i][3] = now;
1390
- fs5[gracefulQueue][i][4] = now;
1387
+ for (var i = 0; i < fs4[gracefulQueue].length; ++i) {
1388
+ if (fs4[gracefulQueue][i].length > 2) {
1389
+ fs4[gracefulQueue][i][3] = now;
1390
+ fs4[gracefulQueue][i][4] = now;
1391
1391
  }
1392
1392
  }
1393
1393
  retry();
@@ -1395,9 +1395,9 @@ var require_graceful_fs = __commonJS({
1395
1395
  function retry() {
1396
1396
  clearTimeout(retryTimer);
1397
1397
  retryTimer = void 0;
1398
- if (fs5[gracefulQueue].length === 0)
1398
+ if (fs4[gracefulQueue].length === 0)
1399
1399
  return;
1400
- var elem = fs5[gracefulQueue].shift();
1400
+ var elem = fs4[gracefulQueue].shift();
1401
1401
  var fn = elem[0];
1402
1402
  var args = elem[1];
1403
1403
  var err = elem[2];
@@ -1419,7 +1419,7 @@ var require_graceful_fs = __commonJS({
1419
1419
  debug("RETRY", fn.name, args);
1420
1420
  fn.apply(null, args.concat([startTime]));
1421
1421
  } else {
1422
- fs5[gracefulQueue].push(elem);
1422
+ fs4[gracefulQueue].push(elem);
1423
1423
  }
1424
1424
  }
1425
1425
  if (retryTimer === void 0) {
@@ -1434,7 +1434,7 @@ var require_fs = __commonJS({
1434
1434
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/fs/index.js"(exports2) {
1435
1435
  "use strict";
1436
1436
  var u = require_universalify().fromCallback;
1437
- var fs5 = require_graceful_fs();
1437
+ var fs4 = require_graceful_fs();
1438
1438
  var api = [
1439
1439
  "access",
1440
1440
  "appendFile",
@@ -1471,26 +1471,26 @@ var require_fs = __commonJS({
1471
1471
  "utimes",
1472
1472
  "writeFile"
1473
1473
  ].filter((key) => {
1474
- return typeof fs5[key] === "function";
1474
+ return typeof fs4[key] === "function";
1475
1475
  });
1476
- Object.assign(exports2, fs5);
1476
+ Object.assign(exports2, fs4);
1477
1477
  api.forEach((method) => {
1478
- exports2[method] = u(fs5[method]);
1478
+ exports2[method] = u(fs4[method]);
1479
1479
  });
1480
1480
  exports2.exists = function(filename, callback) {
1481
1481
  if (typeof callback === "function") {
1482
- return fs5.exists(filename, callback);
1482
+ return fs4.exists(filename, callback);
1483
1483
  }
1484
1484
  return new Promise((resolve) => {
1485
- return fs5.exists(filename, resolve);
1485
+ return fs4.exists(filename, resolve);
1486
1486
  });
1487
1487
  };
1488
1488
  exports2.read = function(fd, buffer, offset, length, position, callback) {
1489
1489
  if (typeof callback === "function") {
1490
- return fs5.read(fd, buffer, offset, length, position, callback);
1490
+ return fs4.read(fd, buffer, offset, length, position, callback);
1491
1491
  }
1492
1492
  return new Promise((resolve, reject) => {
1493
- fs5.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
1493
+ fs4.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
1494
1494
  if (err) return reject(err);
1495
1495
  resolve({ bytesRead, buffer: buffer2 });
1496
1496
  });
@@ -1498,10 +1498,10 @@ var require_fs = __commonJS({
1498
1498
  };
1499
1499
  exports2.write = function(fd, buffer, ...args) {
1500
1500
  if (typeof args[args.length - 1] === "function") {
1501
- return fs5.write(fd, buffer, ...args);
1501
+ return fs4.write(fd, buffer, ...args);
1502
1502
  }
1503
1503
  return new Promise((resolve, reject) => {
1504
- fs5.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
1504
+ fs4.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
1505
1505
  if (err) return reject(err);
1506
1506
  resolve({ bytesWritten, buffer: buffer2 });
1507
1507
  });
@@ -1509,10 +1509,10 @@ var require_fs = __commonJS({
1509
1509
  };
1510
1510
  exports2.readv = function(fd, buffers, ...args) {
1511
1511
  if (typeof args[args.length - 1] === "function") {
1512
- return fs5.readv(fd, buffers, ...args);
1512
+ return fs4.readv(fd, buffers, ...args);
1513
1513
  }
1514
1514
  return new Promise((resolve, reject) => {
1515
- fs5.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
1515
+ fs4.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
1516
1516
  if (err) return reject(err);
1517
1517
  resolve({ bytesRead, buffers: buffers2 });
1518
1518
  });
@@ -1520,17 +1520,17 @@ var require_fs = __commonJS({
1520
1520
  };
1521
1521
  exports2.writev = function(fd, buffers, ...args) {
1522
1522
  if (typeof args[args.length - 1] === "function") {
1523
- return fs5.writev(fd, buffers, ...args);
1523
+ return fs4.writev(fd, buffers, ...args);
1524
1524
  }
1525
1525
  return new Promise((resolve, reject) => {
1526
- fs5.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
1526
+ fs4.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
1527
1527
  if (err) return reject(err);
1528
1528
  resolve({ bytesWritten, buffers: buffers2 });
1529
1529
  });
1530
1530
  });
1531
1531
  };
1532
- if (typeof fs5.realpath.native === "function") {
1533
- exports2.realpath.native = u(fs5.realpath.native);
1532
+ if (typeof fs4.realpath.native === "function") {
1533
+ exports2.realpath.native = u(fs4.realpath.native);
1534
1534
  } else {
1535
1535
  process.emitWarning(
1536
1536
  "fs.realpath.native is not a function. Is fs being monkey-patched?",
@@ -1545,10 +1545,10 @@ var require_fs = __commonJS({
1545
1545
  var require_utils = __commonJS({
1546
1546
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
1547
1547
  "use strict";
1548
- var path4 = require("path");
1548
+ var path3 = require("path");
1549
1549
  module2.exports.checkPath = function checkPath(pth) {
1550
1550
  if (process.platform === "win32") {
1551
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path4.parse(pth).root, ""));
1551
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path3.parse(pth).root, ""));
1552
1552
  if (pathHasInvalidWinCharacters) {
1553
1553
  const error = new Error(`Path contains invalid characters: ${pth}`);
1554
1554
  error.code = "EINVAL";
@@ -1563,7 +1563,7 @@ var require_utils = __commonJS({
1563
1563
  var require_make_dir = __commonJS({
1564
1564
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
1565
1565
  "use strict";
1566
- var fs5 = require_fs();
1566
+ var fs4 = require_fs();
1567
1567
  var { checkPath } = require_utils();
1568
1568
  var getMode = (options) => {
1569
1569
  const defaults = { mode: 511 };
@@ -1572,14 +1572,14 @@ var require_make_dir = __commonJS({
1572
1572
  };
1573
1573
  module2.exports.makeDir = async (dir, options) => {
1574
1574
  checkPath(dir);
1575
- return fs5.mkdir(dir, {
1575
+ return fs4.mkdir(dir, {
1576
1576
  mode: getMode(options),
1577
1577
  recursive: true
1578
1578
  });
1579
1579
  };
1580
1580
  module2.exports.makeDirSync = (dir, options) => {
1581
1581
  checkPath(dir);
1582
- return fs5.mkdirSync(dir, {
1582
+ return fs4.mkdirSync(dir, {
1583
1583
  mode: getMode(options),
1584
1584
  recursive: true
1585
1585
  });
@@ -1611,13 +1611,13 @@ var require_path_exists = __commonJS({
1611
1611
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
1612
1612
  "use strict";
1613
1613
  var u = require_universalify().fromPromise;
1614
- var fs5 = require_fs();
1615
- function pathExists(path4) {
1616
- return fs5.access(path4).then(() => true).catch(() => false);
1614
+ var fs4 = require_fs();
1615
+ function pathExists(path3) {
1616
+ return fs4.access(path3).then(() => true).catch(() => false);
1617
1617
  }
1618
1618
  module2.exports = {
1619
1619
  pathExists: u(pathExists),
1620
- pathExistsSync: fs5.existsSync
1620
+ pathExistsSync: fs4.existsSync
1621
1621
  };
1622
1622
  }
1623
1623
  });
@@ -1626,16 +1626,16 @@ var require_path_exists = __commonJS({
1626
1626
  var require_utimes = __commonJS({
1627
1627
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
1628
1628
  "use strict";
1629
- var fs5 = require_fs();
1629
+ var fs4 = require_fs();
1630
1630
  var u = require_universalify().fromPromise;
1631
- async function utimesMillis(path4, atime, mtime) {
1632
- const fd = await fs5.open(path4, "r+");
1631
+ async function utimesMillis(path3, atime, mtime) {
1632
+ const fd = await fs4.open(path3, "r+");
1633
1633
  let closeErr = null;
1634
1634
  try {
1635
- await fs5.futimes(fd, atime, mtime);
1635
+ await fs4.futimes(fd, atime, mtime);
1636
1636
  } finally {
1637
1637
  try {
1638
- await fs5.close(fd);
1638
+ await fs4.close(fd);
1639
1639
  } catch (e) {
1640
1640
  closeErr = e;
1641
1641
  }
@@ -1644,10 +1644,10 @@ var require_utimes = __commonJS({
1644
1644
  throw closeErr;
1645
1645
  }
1646
1646
  }
1647
- function utimesMillisSync(path4, atime, mtime) {
1648
- const fd = fs5.openSync(path4, "r+");
1649
- fs5.futimesSync(fd, atime, mtime);
1650
- return fs5.closeSync(fd);
1647
+ function utimesMillisSync(path3, atime, mtime) {
1648
+ const fd = fs4.openSync(path3, "r+");
1649
+ fs4.futimesSync(fd, atime, mtime);
1650
+ return fs4.closeSync(fd);
1651
1651
  }
1652
1652
  module2.exports = {
1653
1653
  utimesMillis: u(utimesMillis),
@@ -1660,11 +1660,11 @@ var require_utimes = __commonJS({
1660
1660
  var require_stat = __commonJS({
1661
1661
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
1662
1662
  "use strict";
1663
- var fs5 = require_fs();
1664
- var path4 = require("path");
1663
+ var fs4 = require_fs();
1664
+ var path3 = require("path");
1665
1665
  var u = require_universalify().fromPromise;
1666
1666
  function getStats(src, dest, opts) {
1667
- const statFunc = opts.dereference ? (file) => fs5.stat(file, { bigint: true }) : (file) => fs5.lstat(file, { bigint: true });
1667
+ const statFunc = opts.dereference ? (file) => fs4.stat(file, { bigint: true }) : (file) => fs4.lstat(file, { bigint: true });
1668
1668
  return Promise.all([
1669
1669
  statFunc(src),
1670
1670
  statFunc(dest).catch((err) => {
@@ -1675,7 +1675,7 @@ var require_stat = __commonJS({
1675
1675
  }
1676
1676
  function getStatsSync(src, dest, opts) {
1677
1677
  let destStat;
1678
- const statFunc = opts.dereference ? (file) => fs5.statSync(file, { bigint: true }) : (file) => fs5.lstatSync(file, { bigint: true });
1678
+ const statFunc = opts.dereference ? (file) => fs4.statSync(file, { bigint: true }) : (file) => fs4.lstatSync(file, { bigint: true });
1679
1679
  const srcStat = statFunc(src);
1680
1680
  try {
1681
1681
  destStat = statFunc(dest);
@@ -1689,8 +1689,8 @@ var require_stat = __commonJS({
1689
1689
  const { srcStat, destStat } = await getStats(src, dest, opts);
1690
1690
  if (destStat) {
1691
1691
  if (areIdentical(srcStat, destStat)) {
1692
- const srcBaseName = path4.basename(src);
1693
- const destBaseName = path4.basename(dest);
1692
+ const srcBaseName = path3.basename(src);
1693
+ const destBaseName = path3.basename(dest);
1694
1694
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
1695
1695
  return { srcStat, destStat, isChangingCase: true };
1696
1696
  }
@@ -1712,8 +1712,8 @@ var require_stat = __commonJS({
1712
1712
  const { srcStat, destStat } = getStatsSync(src, dest, opts);
1713
1713
  if (destStat) {
1714
1714
  if (areIdentical(srcStat, destStat)) {
1715
- const srcBaseName = path4.basename(src);
1716
- const destBaseName = path4.basename(dest);
1715
+ const srcBaseName = path3.basename(src);
1716
+ const destBaseName = path3.basename(dest);
1717
1717
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
1718
1718
  return { srcStat, destStat, isChangingCase: true };
1719
1719
  }
@@ -1732,12 +1732,12 @@ var require_stat = __commonJS({
1732
1732
  return { srcStat, destStat };
1733
1733
  }
1734
1734
  async function checkParentPaths(src, srcStat, dest, funcName) {
1735
- const srcParent = path4.resolve(path4.dirname(src));
1736
- const destParent = path4.resolve(path4.dirname(dest));
1737
- if (destParent === srcParent || destParent === path4.parse(destParent).root) return;
1735
+ const srcParent = path3.resolve(path3.dirname(src));
1736
+ const destParent = path3.resolve(path3.dirname(dest));
1737
+ if (destParent === srcParent || destParent === path3.parse(destParent).root) return;
1738
1738
  let destStat;
1739
1739
  try {
1740
- destStat = await fs5.stat(destParent, { bigint: true });
1740
+ destStat = await fs4.stat(destParent, { bigint: true });
1741
1741
  } catch (err) {
1742
1742
  if (err.code === "ENOENT") return;
1743
1743
  throw err;
@@ -1748,12 +1748,12 @@ var require_stat = __commonJS({
1748
1748
  return checkParentPaths(src, srcStat, destParent, funcName);
1749
1749
  }
1750
1750
  function checkParentPathsSync(src, srcStat, dest, funcName) {
1751
- const srcParent = path4.resolve(path4.dirname(src));
1752
- const destParent = path4.resolve(path4.dirname(dest));
1753
- if (destParent === srcParent || destParent === path4.parse(destParent).root) return;
1751
+ const srcParent = path3.resolve(path3.dirname(src));
1752
+ const destParent = path3.resolve(path3.dirname(dest));
1753
+ if (destParent === srcParent || destParent === path3.parse(destParent).root) return;
1754
1754
  let destStat;
1755
1755
  try {
1756
- destStat = fs5.statSync(destParent, { bigint: true });
1756
+ destStat = fs4.statSync(destParent, { bigint: true });
1757
1757
  } catch (err) {
1758
1758
  if (err.code === "ENOENT") return;
1759
1759
  throw err;
@@ -1767,8 +1767,8 @@ var require_stat = __commonJS({
1767
1767
  return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
1768
1768
  }
1769
1769
  function isSrcSubdir(src, dest) {
1770
- const srcArr = path4.resolve(src).split(path4.sep).filter((i) => i);
1771
- const destArr = path4.resolve(dest).split(path4.sep).filter((i) => i);
1770
+ const srcArr = path3.resolve(src).split(path3.sep).filter((i) => i);
1771
+ const destArr = path3.resolve(dest).split(path3.sep).filter((i) => i);
1772
1772
  return srcArr.every((cur, i) => destArr[i] === cur);
1773
1773
  }
1774
1774
  function errMsg(src, dest, funcName) {
@@ -1792,8 +1792,8 @@ var require_stat = __commonJS({
1792
1792
  var require_copy = __commonJS({
1793
1793
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
1794
1794
  "use strict";
1795
- var fs5 = require_fs();
1796
- var path4 = require("path");
1795
+ var fs4 = require_fs();
1796
+ var path3 = require("path");
1797
1797
  var { mkdirs } = require_mkdirs();
1798
1798
  var { pathExists } = require_path_exists();
1799
1799
  var { utimesMillis } = require_utimes();
@@ -1815,7 +1815,7 @@ var require_copy = __commonJS({
1815
1815
  await stat.checkParentPaths(src, srcStat, dest, "copy");
1816
1816
  const include = await runFilter(src, dest, opts);
1817
1817
  if (!include) return;
1818
- const destParent = path4.dirname(dest);
1818
+ const destParent = path3.dirname(dest);
1819
1819
  const dirExists = await pathExists(destParent);
1820
1820
  if (!dirExists) {
1821
1821
  await mkdirs(destParent);
@@ -1827,7 +1827,7 @@ var require_copy = __commonJS({
1827
1827
  return opts.filter(src, dest);
1828
1828
  }
1829
1829
  async function getStatsAndPerformCopy(destStat, src, dest, opts) {
1830
- const statFn = opts.dereference ? fs5.stat : fs5.lstat;
1830
+ const statFn = opts.dereference ? fs4.stat : fs4.lstat;
1831
1831
  const srcStat = await statFn(src);
1832
1832
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
1833
1833
  if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -1839,7 +1839,7 @@ var require_copy = __commonJS({
1839
1839
  async function onFile(srcStat, destStat, src, dest, opts) {
1840
1840
  if (!destStat) return copyFile(srcStat, src, dest, opts);
1841
1841
  if (opts.overwrite) {
1842
- await fs5.unlink(dest);
1842
+ await fs4.unlink(dest);
1843
1843
  return copyFile(srcStat, src, dest, opts);
1844
1844
  }
1845
1845
  if (opts.errorOnExist) {
@@ -1847,56 +1847,56 @@ var require_copy = __commonJS({
1847
1847
  }
1848
1848
  }
1849
1849
  async function copyFile(srcStat, src, dest, opts) {
1850
- await fs5.copyFile(src, dest);
1850
+ await fs4.copyFile(src, dest);
1851
1851
  if (opts.preserveTimestamps) {
1852
1852
  if (fileIsNotWritable(srcStat.mode)) {
1853
1853
  await makeFileWritable(dest, srcStat.mode);
1854
1854
  }
1855
- const updatedSrcStat = await fs5.stat(src);
1855
+ const updatedSrcStat = await fs4.stat(src);
1856
1856
  await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
1857
1857
  }
1858
- return fs5.chmod(dest, srcStat.mode);
1858
+ return fs4.chmod(dest, srcStat.mode);
1859
1859
  }
1860
1860
  function fileIsNotWritable(srcMode) {
1861
1861
  return (srcMode & 128) === 0;
1862
1862
  }
1863
1863
  function makeFileWritable(dest, srcMode) {
1864
- return fs5.chmod(dest, srcMode | 128);
1864
+ return fs4.chmod(dest, srcMode | 128);
1865
1865
  }
1866
1866
  async function onDir(srcStat, destStat, src, dest, opts) {
1867
1867
  if (!destStat) {
1868
- await fs5.mkdir(dest);
1868
+ await fs4.mkdir(dest);
1869
1869
  }
1870
- const items = await fs5.readdir(src);
1870
+ const items = await fs4.readdir(src);
1871
1871
  await Promise.all(items.map(async (item) => {
1872
- const srcItem = path4.join(src, item);
1873
- const destItem = path4.join(dest, item);
1872
+ const srcItem = path3.join(src, item);
1873
+ const destItem = path3.join(dest, item);
1874
1874
  const include = await runFilter(srcItem, destItem, opts);
1875
1875
  if (!include) return;
1876
1876
  const { destStat: destStat2 } = await stat.checkPaths(srcItem, destItem, "copy", opts);
1877
1877
  return getStatsAndPerformCopy(destStat2, srcItem, destItem, opts);
1878
1878
  }));
1879
1879
  if (!destStat) {
1880
- await fs5.chmod(dest, srcStat.mode);
1880
+ await fs4.chmod(dest, srcStat.mode);
1881
1881
  }
1882
1882
  }
1883
1883
  async function onLink(destStat, src, dest, opts) {
1884
- let resolvedSrc = await fs5.readlink(src);
1884
+ let resolvedSrc = await fs4.readlink(src);
1885
1885
  if (opts.dereference) {
1886
- resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
1886
+ resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
1887
1887
  }
1888
1888
  if (!destStat) {
1889
- return fs5.symlink(resolvedSrc, dest);
1889
+ return fs4.symlink(resolvedSrc, dest);
1890
1890
  }
1891
1891
  let resolvedDest = null;
1892
1892
  try {
1893
- resolvedDest = await fs5.readlink(dest);
1893
+ resolvedDest = await fs4.readlink(dest);
1894
1894
  } catch (e) {
1895
- if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs5.symlink(resolvedSrc, dest);
1895
+ if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs4.symlink(resolvedSrc, dest);
1896
1896
  throw e;
1897
1897
  }
1898
1898
  if (opts.dereference) {
1899
- resolvedDest = path4.resolve(process.cwd(), resolvedDest);
1899
+ resolvedDest = path3.resolve(process.cwd(), resolvedDest);
1900
1900
  }
1901
1901
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
1902
1902
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -1904,8 +1904,8 @@ var require_copy = __commonJS({
1904
1904
  if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
1905
1905
  throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
1906
1906
  }
1907
- await fs5.unlink(dest);
1908
- return fs5.symlink(resolvedSrc, dest);
1907
+ await fs4.unlink(dest);
1908
+ return fs4.symlink(resolvedSrc, dest);
1909
1909
  }
1910
1910
  module2.exports = copy2;
1911
1911
  }
@@ -1915,8 +1915,8 @@ var require_copy = __commonJS({
1915
1915
  var require_copy_sync = __commonJS({
1916
1916
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
1917
1917
  "use strict";
1918
- var fs5 = require_graceful_fs();
1919
- var path4 = require("path");
1918
+ var fs4 = require_graceful_fs();
1919
+ var path3 = require("path");
1920
1920
  var mkdirsSync = require_mkdirs().mkdirsSync;
1921
1921
  var utimesMillisSync = require_utimes().utimesMillisSync;
1922
1922
  var stat = require_stat();
@@ -1937,12 +1937,12 @@ var require_copy_sync = __commonJS({
1937
1937
  const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);
1938
1938
  stat.checkParentPathsSync(src, srcStat, dest, "copy");
1939
1939
  if (opts.filter && !opts.filter(src, dest)) return;
1940
- const destParent = path4.dirname(dest);
1941
- if (!fs5.existsSync(destParent)) mkdirsSync(destParent);
1940
+ const destParent = path3.dirname(dest);
1941
+ if (!fs4.existsSync(destParent)) mkdirsSync(destParent);
1942
1942
  return getStats(destStat, src, dest, opts);
1943
1943
  }
1944
1944
  function getStats(destStat, src, dest, opts) {
1945
- const statSync = opts.dereference ? fs5.statSync : fs5.lstatSync;
1945
+ const statSync = opts.dereference ? fs4.statSync : fs4.lstatSync;
1946
1946
  const srcStat = statSync(src);
1947
1947
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
1948
1948
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
@@ -1957,14 +1957,14 @@ var require_copy_sync = __commonJS({
1957
1957
  }
1958
1958
  function mayCopyFile(srcStat, src, dest, opts) {
1959
1959
  if (opts.overwrite) {
1960
- fs5.unlinkSync(dest);
1960
+ fs4.unlinkSync(dest);
1961
1961
  return copyFile(srcStat, src, dest, opts);
1962
1962
  } else if (opts.errorOnExist) {
1963
1963
  throw new Error(`'${dest}' already exists`);
1964
1964
  }
1965
1965
  }
1966
1966
  function copyFile(srcStat, src, dest, opts) {
1967
- fs5.copyFileSync(src, dest);
1967
+ fs4.copyFileSync(src, dest);
1968
1968
  if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
1969
1969
  return setDestMode(dest, srcStat.mode);
1970
1970
  }
@@ -1979,10 +1979,10 @@ var require_copy_sync = __commonJS({
1979
1979
  return setDestMode(dest, srcMode | 128);
1980
1980
  }
1981
1981
  function setDestMode(dest, srcMode) {
1982
- return fs5.chmodSync(dest, srcMode);
1982
+ return fs4.chmodSync(dest, srcMode);
1983
1983
  }
1984
1984
  function setDestTimestamps(src, dest) {
1985
- const updatedSrcStat = fs5.statSync(src);
1985
+ const updatedSrcStat = fs4.statSync(src);
1986
1986
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
1987
1987
  }
1988
1988
  function onDir(srcStat, destStat, src, dest, opts) {
@@ -1990,37 +1990,37 @@ var require_copy_sync = __commonJS({
1990
1990
  return copyDir(src, dest, opts);
1991
1991
  }
1992
1992
  function mkDirAndCopy(srcMode, src, dest, opts) {
1993
- fs5.mkdirSync(dest);
1993
+ fs4.mkdirSync(dest);
1994
1994
  copyDir(src, dest, opts);
1995
1995
  return setDestMode(dest, srcMode);
1996
1996
  }
1997
1997
  function copyDir(src, dest, opts) {
1998
- fs5.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
1998
+ fs4.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
1999
1999
  }
2000
2000
  function copyDirItem(item, src, dest, opts) {
2001
- const srcItem = path4.join(src, item);
2002
- const destItem = path4.join(dest, item);
2001
+ const srcItem = path3.join(src, item);
2002
+ const destItem = path3.join(dest, item);
2003
2003
  if (opts.filter && !opts.filter(srcItem, destItem)) return;
2004
2004
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
2005
2005
  return getStats(destStat, srcItem, destItem, opts);
2006
2006
  }
2007
2007
  function onLink(destStat, src, dest, opts) {
2008
- let resolvedSrc = fs5.readlinkSync(src);
2008
+ let resolvedSrc = fs4.readlinkSync(src);
2009
2009
  if (opts.dereference) {
2010
- resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
2010
+ resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
2011
2011
  }
2012
2012
  if (!destStat) {
2013
- return fs5.symlinkSync(resolvedSrc, dest);
2013
+ return fs4.symlinkSync(resolvedSrc, dest);
2014
2014
  } else {
2015
2015
  let resolvedDest;
2016
2016
  try {
2017
- resolvedDest = fs5.readlinkSync(dest);
2017
+ resolvedDest = fs4.readlinkSync(dest);
2018
2018
  } catch (err) {
2019
- if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs5.symlinkSync(resolvedSrc, dest);
2019
+ if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs4.symlinkSync(resolvedSrc, dest);
2020
2020
  throw err;
2021
2021
  }
2022
2022
  if (opts.dereference) {
2023
- resolvedDest = path4.resolve(process.cwd(), resolvedDest);
2023
+ resolvedDest = path3.resolve(process.cwd(), resolvedDest);
2024
2024
  }
2025
2025
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
2026
2026
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -2032,8 +2032,8 @@ var require_copy_sync = __commonJS({
2032
2032
  }
2033
2033
  }
2034
2034
  function copyLink(resolvedSrc, dest) {
2035
- fs5.unlinkSync(dest);
2036
- return fs5.symlinkSync(resolvedSrc, dest);
2035
+ fs4.unlinkSync(dest);
2036
+ return fs4.symlinkSync(resolvedSrc, dest);
2037
2037
  }
2038
2038
  module2.exports = copySync;
2039
2039
  }
@@ -2055,13 +2055,13 @@ var require_copy2 = __commonJS({
2055
2055
  var require_remove = __commonJS({
2056
2056
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
2057
2057
  "use strict";
2058
- var fs5 = require_graceful_fs();
2058
+ var fs4 = require_graceful_fs();
2059
2059
  var u = require_universalify().fromCallback;
2060
- function remove(path4, callback) {
2061
- fs5.rm(path4, { recursive: true, force: true }, callback);
2060
+ function remove(path3, callback) {
2061
+ fs4.rm(path3, { recursive: true, force: true }, callback);
2062
2062
  }
2063
- function removeSync(path4) {
2064
- fs5.rmSync(path4, { recursive: true, force: true });
2063
+ function removeSync(path3) {
2064
+ fs4.rmSync(path3, { recursive: true, force: true });
2065
2065
  }
2066
2066
  module2.exports = {
2067
2067
  remove: u(remove),
@@ -2075,28 +2075,28 @@ var require_empty = __commonJS({
2075
2075
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
2076
2076
  "use strict";
2077
2077
  var u = require_universalify().fromPromise;
2078
- var fs5 = require_fs();
2079
- var path4 = require("path");
2078
+ var fs4 = require_fs();
2079
+ var path3 = require("path");
2080
2080
  var mkdir = require_mkdirs();
2081
2081
  var remove = require_remove();
2082
2082
  var emptyDir = u(async function emptyDir2(dir) {
2083
2083
  let items;
2084
2084
  try {
2085
- items = await fs5.readdir(dir);
2085
+ items = await fs4.readdir(dir);
2086
2086
  } catch {
2087
2087
  return mkdir.mkdirs(dir);
2088
2088
  }
2089
- return Promise.all(items.map((item) => remove.remove(path4.join(dir, item))));
2089
+ return Promise.all(items.map((item) => remove.remove(path3.join(dir, item))));
2090
2090
  });
2091
2091
  function emptyDirSync(dir) {
2092
2092
  let items;
2093
2093
  try {
2094
- items = fs5.readdirSync(dir);
2094
+ items = fs4.readdirSync(dir);
2095
2095
  } catch {
2096
2096
  return mkdir.mkdirsSync(dir);
2097
2097
  }
2098
2098
  items.forEach((item) => {
2099
- item = path4.join(dir, item);
2099
+ item = path3.join(dir, item);
2100
2100
  remove.removeSync(item);
2101
2101
  });
2102
2102
  }
@@ -2114,52 +2114,52 @@ var require_file = __commonJS({
2114
2114
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
2115
2115
  "use strict";
2116
2116
  var u = require_universalify().fromPromise;
2117
- var path4 = require("path");
2118
- var fs5 = require_fs();
2117
+ var path3 = require("path");
2118
+ var fs4 = require_fs();
2119
2119
  var mkdir = require_mkdirs();
2120
2120
  async function createFile(file) {
2121
2121
  let stats;
2122
2122
  try {
2123
- stats = await fs5.stat(file);
2123
+ stats = await fs4.stat(file);
2124
2124
  } catch {
2125
2125
  }
2126
2126
  if (stats && stats.isFile()) return;
2127
- const dir = path4.dirname(file);
2127
+ const dir = path3.dirname(file);
2128
2128
  let dirStats = null;
2129
2129
  try {
2130
- dirStats = await fs5.stat(dir);
2130
+ dirStats = await fs4.stat(dir);
2131
2131
  } catch (err) {
2132
2132
  if (err.code === "ENOENT") {
2133
2133
  await mkdir.mkdirs(dir);
2134
- await fs5.writeFile(file, "");
2134
+ await fs4.writeFile(file, "");
2135
2135
  return;
2136
2136
  } else {
2137
2137
  throw err;
2138
2138
  }
2139
2139
  }
2140
2140
  if (dirStats.isDirectory()) {
2141
- await fs5.writeFile(file, "");
2141
+ await fs4.writeFile(file, "");
2142
2142
  } else {
2143
- await fs5.readdir(dir);
2143
+ await fs4.readdir(dir);
2144
2144
  }
2145
2145
  }
2146
2146
  function createFileSync(file) {
2147
2147
  let stats;
2148
2148
  try {
2149
- stats = fs5.statSync(file);
2149
+ stats = fs4.statSync(file);
2150
2150
  } catch {
2151
2151
  }
2152
2152
  if (stats && stats.isFile()) return;
2153
- const dir = path4.dirname(file);
2153
+ const dir = path3.dirname(file);
2154
2154
  try {
2155
- if (!fs5.statSync(dir).isDirectory()) {
2156
- fs5.readdirSync(dir);
2155
+ if (!fs4.statSync(dir).isDirectory()) {
2156
+ fs4.readdirSync(dir);
2157
2157
  }
2158
2158
  } catch (err) {
2159
2159
  if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir);
2160
2160
  else throw err;
2161
2161
  }
2162
- fs5.writeFileSync(file, "");
2162
+ fs4.writeFileSync(file, "");
2163
2163
  }
2164
2164
  module2.exports = {
2165
2165
  createFile: u(createFile),
@@ -2173,50 +2173,50 @@ var require_link = __commonJS({
2173
2173
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
2174
2174
  "use strict";
2175
2175
  var u = require_universalify().fromPromise;
2176
- var path4 = require("path");
2177
- var fs5 = require_fs();
2176
+ var path3 = require("path");
2177
+ var fs4 = require_fs();
2178
2178
  var mkdir = require_mkdirs();
2179
2179
  var { pathExists } = require_path_exists();
2180
2180
  var { areIdentical } = require_stat();
2181
2181
  async function createLink(srcpath, dstpath) {
2182
2182
  let dstStat;
2183
2183
  try {
2184
- dstStat = await fs5.lstat(dstpath);
2184
+ dstStat = await fs4.lstat(dstpath);
2185
2185
  } catch {
2186
2186
  }
2187
2187
  let srcStat;
2188
2188
  try {
2189
- srcStat = await fs5.lstat(srcpath);
2189
+ srcStat = await fs4.lstat(srcpath);
2190
2190
  } catch (err) {
2191
2191
  err.message = err.message.replace("lstat", "ensureLink");
2192
2192
  throw err;
2193
2193
  }
2194
2194
  if (dstStat && areIdentical(srcStat, dstStat)) return;
2195
- const dir = path4.dirname(dstpath);
2195
+ const dir = path3.dirname(dstpath);
2196
2196
  const dirExists = await pathExists(dir);
2197
2197
  if (!dirExists) {
2198
2198
  await mkdir.mkdirs(dir);
2199
2199
  }
2200
- await fs5.link(srcpath, dstpath);
2200
+ await fs4.link(srcpath, dstpath);
2201
2201
  }
2202
2202
  function createLinkSync(srcpath, dstpath) {
2203
2203
  let dstStat;
2204
2204
  try {
2205
- dstStat = fs5.lstatSync(dstpath);
2205
+ dstStat = fs4.lstatSync(dstpath);
2206
2206
  } catch {
2207
2207
  }
2208
2208
  try {
2209
- const srcStat = fs5.lstatSync(srcpath);
2209
+ const srcStat = fs4.lstatSync(srcpath);
2210
2210
  if (dstStat && areIdentical(srcStat, dstStat)) return;
2211
2211
  } catch (err) {
2212
2212
  err.message = err.message.replace("lstat", "ensureLink");
2213
2213
  throw err;
2214
2214
  }
2215
- const dir = path4.dirname(dstpath);
2216
- const dirExists = fs5.existsSync(dir);
2217
- if (dirExists) return fs5.linkSync(srcpath, dstpath);
2215
+ const dir = path3.dirname(dstpath);
2216
+ const dirExists = fs4.existsSync(dir);
2217
+ if (dirExists) return fs4.linkSync(srcpath, dstpath);
2218
2218
  mkdir.mkdirsSync(dir);
2219
- return fs5.linkSync(srcpath, dstpath);
2219
+ return fs4.linkSync(srcpath, dstpath);
2220
2220
  }
2221
2221
  module2.exports = {
2222
2222
  createLink: u(createLink),
@@ -2229,14 +2229,14 @@ var require_link = __commonJS({
2229
2229
  var require_symlink_paths = __commonJS({
2230
2230
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
2231
2231
  "use strict";
2232
- var path4 = require("path");
2233
- var fs5 = require_fs();
2232
+ var path3 = require("path");
2233
+ var fs4 = require_fs();
2234
2234
  var { pathExists } = require_path_exists();
2235
2235
  var u = require_universalify().fromPromise;
2236
2236
  async function symlinkPaths(srcpath, dstpath) {
2237
- if (path4.isAbsolute(srcpath)) {
2237
+ if (path3.isAbsolute(srcpath)) {
2238
2238
  try {
2239
- await fs5.lstat(srcpath);
2239
+ await fs4.lstat(srcpath);
2240
2240
  } catch (err) {
2241
2241
  err.message = err.message.replace("lstat", "ensureSymlink");
2242
2242
  throw err;
@@ -2246,8 +2246,8 @@ var require_symlink_paths = __commonJS({
2246
2246
  toDst: srcpath
2247
2247
  };
2248
2248
  }
2249
- const dstdir = path4.dirname(dstpath);
2250
- const relativeToDst = path4.join(dstdir, srcpath);
2249
+ const dstdir = path3.dirname(dstpath);
2250
+ const relativeToDst = path3.join(dstdir, srcpath);
2251
2251
  const exists = await pathExists(relativeToDst);
2252
2252
  if (exists) {
2253
2253
  return {
@@ -2256,39 +2256,39 @@ var require_symlink_paths = __commonJS({
2256
2256
  };
2257
2257
  }
2258
2258
  try {
2259
- await fs5.lstat(srcpath);
2259
+ await fs4.lstat(srcpath);
2260
2260
  } catch (err) {
2261
2261
  err.message = err.message.replace("lstat", "ensureSymlink");
2262
2262
  throw err;
2263
2263
  }
2264
2264
  return {
2265
2265
  toCwd: srcpath,
2266
- toDst: path4.relative(dstdir, srcpath)
2266
+ toDst: path3.relative(dstdir, srcpath)
2267
2267
  };
2268
2268
  }
2269
2269
  function symlinkPathsSync(srcpath, dstpath) {
2270
- if (path4.isAbsolute(srcpath)) {
2271
- const exists2 = fs5.existsSync(srcpath);
2270
+ if (path3.isAbsolute(srcpath)) {
2271
+ const exists2 = fs4.existsSync(srcpath);
2272
2272
  if (!exists2) throw new Error("absolute srcpath does not exist");
2273
2273
  return {
2274
2274
  toCwd: srcpath,
2275
2275
  toDst: srcpath
2276
2276
  };
2277
2277
  }
2278
- const dstdir = path4.dirname(dstpath);
2279
- const relativeToDst = path4.join(dstdir, srcpath);
2280
- const exists = fs5.existsSync(relativeToDst);
2278
+ const dstdir = path3.dirname(dstpath);
2279
+ const relativeToDst = path3.join(dstdir, srcpath);
2280
+ const exists = fs4.existsSync(relativeToDst);
2281
2281
  if (exists) {
2282
2282
  return {
2283
2283
  toCwd: relativeToDst,
2284
2284
  toDst: srcpath
2285
2285
  };
2286
2286
  }
2287
- const srcExists = fs5.existsSync(srcpath);
2287
+ const srcExists = fs4.existsSync(srcpath);
2288
2288
  if (!srcExists) throw new Error("relative srcpath does not exist");
2289
2289
  return {
2290
2290
  toCwd: srcpath,
2291
- toDst: path4.relative(dstdir, srcpath)
2291
+ toDst: path3.relative(dstdir, srcpath)
2292
2292
  };
2293
2293
  }
2294
2294
  module2.exports = {
@@ -2302,13 +2302,13 @@ var require_symlink_paths = __commonJS({
2302
2302
  var require_symlink_type = __commonJS({
2303
2303
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
2304
2304
  "use strict";
2305
- var fs5 = require_fs();
2305
+ var fs4 = require_fs();
2306
2306
  var u = require_universalify().fromPromise;
2307
2307
  async function symlinkType(srcpath, type) {
2308
2308
  if (type) return type;
2309
2309
  let stats;
2310
2310
  try {
2311
- stats = await fs5.lstat(srcpath);
2311
+ stats = await fs4.lstat(srcpath);
2312
2312
  } catch {
2313
2313
  return "file";
2314
2314
  }
@@ -2318,7 +2318,7 @@ var require_symlink_type = __commonJS({
2318
2318
  if (type) return type;
2319
2319
  let stats;
2320
2320
  try {
2321
- stats = fs5.lstatSync(srcpath);
2321
+ stats = fs4.lstatSync(srcpath);
2322
2322
  } catch {
2323
2323
  return "file";
2324
2324
  }
@@ -2336,8 +2336,8 @@ var require_symlink = __commonJS({
2336
2336
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
2337
2337
  "use strict";
2338
2338
  var u = require_universalify().fromPromise;
2339
- var path4 = require("path");
2340
- var fs5 = require_fs();
2339
+ var path3 = require("path");
2340
+ var fs4 = require_fs();
2341
2341
  var { mkdirs, mkdirsSync } = require_mkdirs();
2342
2342
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
2343
2343
  var { symlinkType, symlinkTypeSync } = require_symlink_type();
@@ -2346,44 +2346,44 @@ var require_symlink = __commonJS({
2346
2346
  async function createSymlink(srcpath, dstpath, type) {
2347
2347
  let stats;
2348
2348
  try {
2349
- stats = await fs5.lstat(dstpath);
2349
+ stats = await fs4.lstat(dstpath);
2350
2350
  } catch {
2351
2351
  }
2352
2352
  if (stats && stats.isSymbolicLink()) {
2353
2353
  const [srcStat, dstStat] = await Promise.all([
2354
- fs5.stat(srcpath),
2355
- fs5.stat(dstpath)
2354
+ fs4.stat(srcpath),
2355
+ fs4.stat(dstpath)
2356
2356
  ]);
2357
2357
  if (areIdentical(srcStat, dstStat)) return;
2358
2358
  }
2359
2359
  const relative = await symlinkPaths(srcpath, dstpath);
2360
2360
  srcpath = relative.toDst;
2361
2361
  const toType = await symlinkType(relative.toCwd, type);
2362
- const dir = path4.dirname(dstpath);
2362
+ const dir = path3.dirname(dstpath);
2363
2363
  if (!await pathExists(dir)) {
2364
2364
  await mkdirs(dir);
2365
2365
  }
2366
- return fs5.symlink(srcpath, dstpath, toType);
2366
+ return fs4.symlink(srcpath, dstpath, toType);
2367
2367
  }
2368
2368
  function createSymlinkSync(srcpath, dstpath, type) {
2369
2369
  let stats;
2370
2370
  try {
2371
- stats = fs5.lstatSync(dstpath);
2371
+ stats = fs4.lstatSync(dstpath);
2372
2372
  } catch {
2373
2373
  }
2374
2374
  if (stats && stats.isSymbolicLink()) {
2375
- const srcStat = fs5.statSync(srcpath);
2376
- const dstStat = fs5.statSync(dstpath);
2375
+ const srcStat = fs4.statSync(srcpath);
2376
+ const dstStat = fs4.statSync(dstpath);
2377
2377
  if (areIdentical(srcStat, dstStat)) return;
2378
2378
  }
2379
2379
  const relative = symlinkPathsSync(srcpath, dstpath);
2380
2380
  srcpath = relative.toDst;
2381
2381
  type = symlinkTypeSync(relative.toCwd, type);
2382
- const dir = path4.dirname(dstpath);
2383
- const exists = fs5.existsSync(dir);
2384
- if (exists) return fs5.symlinkSync(srcpath, dstpath, type);
2382
+ const dir = path3.dirname(dstpath);
2383
+ const exists = fs4.existsSync(dir);
2384
+ if (exists) return fs4.symlinkSync(srcpath, dstpath, type);
2385
2385
  mkdirsSync(dir);
2386
- return fs5.symlinkSync(srcpath, dstpath, type);
2386
+ return fs4.symlinkSync(srcpath, dstpath, type);
2387
2387
  }
2388
2388
  module2.exports = {
2389
2389
  createSymlink: u(createSymlink),
@@ -2450,9 +2450,9 @@ var require_jsonfile = __commonJS({
2450
2450
  if (typeof options === "string") {
2451
2451
  options = { encoding: options };
2452
2452
  }
2453
- const fs5 = options.fs || _fs;
2453
+ const fs4 = options.fs || _fs;
2454
2454
  const shouldThrow = "throws" in options ? options.throws : true;
2455
- let data = await universalify.fromCallback(fs5.readFile)(file, options);
2455
+ let data = await universalify.fromCallback(fs4.readFile)(file, options);
2456
2456
  data = stripBom(data);
2457
2457
  let obj;
2458
2458
  try {
@@ -2472,10 +2472,10 @@ var require_jsonfile = __commonJS({
2472
2472
  if (typeof options === "string") {
2473
2473
  options = { encoding: options };
2474
2474
  }
2475
- const fs5 = options.fs || _fs;
2475
+ const fs4 = options.fs || _fs;
2476
2476
  const shouldThrow = "throws" in options ? options.throws : true;
2477
2477
  try {
2478
- let content = fs5.readFileSync(file, options);
2478
+ let content = fs4.readFileSync(file, options);
2479
2479
  content = stripBom(content);
2480
2480
  return JSON.parse(content, options.reviver);
2481
2481
  } catch (err) {
@@ -2488,15 +2488,15 @@ var require_jsonfile = __commonJS({
2488
2488
  }
2489
2489
  }
2490
2490
  async function _writeFile(file, obj, options = {}) {
2491
- const fs5 = options.fs || _fs;
2491
+ const fs4 = options.fs || _fs;
2492
2492
  const str = stringify(obj, options);
2493
- await universalify.fromCallback(fs5.writeFile)(file, str, options);
2493
+ await universalify.fromCallback(fs4.writeFile)(file, str, options);
2494
2494
  }
2495
2495
  var writeFile = universalify.fromPromise(_writeFile);
2496
2496
  function writeFileSync(file, obj, options = {}) {
2497
- const fs5 = options.fs || _fs;
2497
+ const fs4 = options.fs || _fs;
2498
2498
  const str = stringify(obj, options);
2499
- return fs5.writeFileSync(file, str, options);
2499
+ return fs4.writeFileSync(file, str, options);
2500
2500
  }
2501
2501
  module2.exports = {
2502
2502
  readFile: readFile2,
@@ -2527,23 +2527,23 @@ var require_output_file = __commonJS({
2527
2527
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/output-file/index.js"(exports2, module2) {
2528
2528
  "use strict";
2529
2529
  var u = require_universalify().fromPromise;
2530
- var fs5 = require_fs();
2531
- var path4 = require("path");
2530
+ var fs4 = require_fs();
2531
+ var path3 = require("path");
2532
2532
  var mkdir = require_mkdirs();
2533
2533
  var pathExists = require_path_exists().pathExists;
2534
2534
  async function outputFile(file, data, encoding = "utf-8") {
2535
- const dir = path4.dirname(file);
2535
+ const dir = path3.dirname(file);
2536
2536
  if (!await pathExists(dir)) {
2537
2537
  await mkdir.mkdirs(dir);
2538
2538
  }
2539
- return fs5.writeFile(file, data, encoding);
2539
+ return fs4.writeFile(file, data, encoding);
2540
2540
  }
2541
2541
  function outputFileSync(file, ...args) {
2542
- const dir = path4.dirname(file);
2543
- if (!fs5.existsSync(dir)) {
2542
+ const dir = path3.dirname(file);
2543
+ if (!fs4.existsSync(dir)) {
2544
2544
  mkdir.mkdirsSync(dir);
2545
2545
  }
2546
- fs5.writeFileSync(file, ...args);
2546
+ fs4.writeFileSync(file, ...args);
2547
2547
  }
2548
2548
  module2.exports = {
2549
2549
  outputFile: u(outputFile),
@@ -2602,8 +2602,8 @@ var require_json = __commonJS({
2602
2602
  var require_move = __commonJS({
2603
2603
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
2604
2604
  "use strict";
2605
- var fs5 = require_fs();
2606
- var path4 = require("path");
2605
+ var fs4 = require_fs();
2606
+ var path3 = require("path");
2607
2607
  var { copy: copy2 } = require_copy2();
2608
2608
  var { remove } = require_remove();
2609
2609
  var { mkdirp } = require_mkdirs();
@@ -2613,8 +2613,8 @@ var require_move = __commonJS({
2613
2613
  const overwrite = opts.overwrite || opts.clobber || false;
2614
2614
  const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
2615
2615
  await stat.checkParentPaths(src, srcStat, dest, "move");
2616
- const destParent = path4.dirname(dest);
2617
- const parsedParentPath = path4.parse(destParent);
2616
+ const destParent = path3.dirname(dest);
2617
+ const parsedParentPath = path3.parse(destParent);
2618
2618
  if (parsedParentPath.root !== destParent) {
2619
2619
  await mkdirp(destParent);
2620
2620
  }
@@ -2629,7 +2629,7 @@ var require_move = __commonJS({
2629
2629
  }
2630
2630
  }
2631
2631
  try {
2632
- await fs5.rename(src, dest);
2632
+ await fs4.rename(src, dest);
2633
2633
  } catch (err) {
2634
2634
  if (err.code !== "EXDEV") {
2635
2635
  throw err;
@@ -2654,8 +2654,8 @@ var require_move = __commonJS({
2654
2654
  var require_move_sync = __commonJS({
2655
2655
  "../../node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
2656
2656
  "use strict";
2657
- var fs5 = require_graceful_fs();
2658
- var path4 = require("path");
2657
+ var fs4 = require_graceful_fs();
2658
+ var path3 = require("path");
2659
2659
  var copySync = require_copy2().copySync;
2660
2660
  var removeSync = require_remove().removeSync;
2661
2661
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -2665,12 +2665,12 @@ var require_move_sync = __commonJS({
2665
2665
  const overwrite = opts.overwrite || opts.clobber || false;
2666
2666
  const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
2667
2667
  stat.checkParentPathsSync(src, srcStat, dest, "move");
2668
- if (!isParentRoot(dest)) mkdirpSync(path4.dirname(dest));
2668
+ if (!isParentRoot(dest)) mkdirpSync(path3.dirname(dest));
2669
2669
  return doRename(src, dest, overwrite, isChangingCase);
2670
2670
  }
2671
2671
  function isParentRoot(dest) {
2672
- const parent = path4.dirname(dest);
2673
- const parsedPath = path4.parse(parent);
2672
+ const parent = path3.dirname(dest);
2673
+ const parsedPath = path3.parse(parent);
2674
2674
  return parsedPath.root === parent;
2675
2675
  }
2676
2676
  function doRename(src, dest, overwrite, isChangingCase) {
@@ -2679,12 +2679,12 @@ var require_move_sync = __commonJS({
2679
2679
  removeSync(dest);
2680
2680
  return rename(src, dest, overwrite);
2681
2681
  }
2682
- if (fs5.existsSync(dest)) throw new Error("dest already exists.");
2682
+ if (fs4.existsSync(dest)) throw new Error("dest already exists.");
2683
2683
  return rename(src, dest, overwrite);
2684
2684
  }
2685
2685
  function rename(src, dest, overwrite) {
2686
2686
  try {
2687
- fs5.renameSync(src, dest);
2687
+ fs4.renameSync(src, dest);
2688
2688
  } catch (err) {
2689
2689
  if (err.code !== "EXDEV") throw err;
2690
2690
  return moveAcrossDevice(src, dest, overwrite);
@@ -5495,8 +5495,8 @@ var require_safe_buffer = __commonJS({
5495
5495
  var require_convert_source_map = __commonJS({
5496
5496
  "../../node_modules/.pnpm/convert-source-map@1.8.0/node_modules/convert-source-map/index.js"(exports2) {
5497
5497
  "use strict";
5498
- var fs5 = require("fs");
5499
- var path4 = require("path");
5498
+ var fs4 = require("fs");
5499
+ var path3 = require("path");
5500
5500
  var SafeBuffer = require_safe_buffer();
5501
5501
  Object.defineProperty(exports2, "commentRegex", {
5502
5502
  get: function getCommentRegex() {
@@ -5517,9 +5517,9 @@ var require_convert_source_map = __commonJS({
5517
5517
  function readFromFileMap(sm, dir) {
5518
5518
  var r = exports2.mapFileCommentRegex.exec(sm);
5519
5519
  var filename = r[1] || r[2];
5520
- var filepath = path4.resolve(dir, filename);
5520
+ var filepath = path3.resolve(dir, filename);
5521
5521
  try {
5522
- return fs5.readFileSync(filepath, "utf8");
5522
+ return fs4.readFileSync(filepath, "utf8");
5523
5523
  } catch (e) {
5524
5524
  throw new Error("An error occurred while trying to read the map file at " + filepath + "\n" + e);
5525
5525
  }
@@ -5709,27 +5709,27 @@ var require_util = __commonJS({
5709
5709
  };
5710
5710
  }
5711
5711
  var normalize = lruMemoize(function normalize2(aPath) {
5712
- let path4 = aPath;
5712
+ let path3 = aPath;
5713
5713
  const url = urlParse(aPath);
5714
5714
  if (url) {
5715
5715
  if (!url.path) {
5716
5716
  return aPath;
5717
5717
  }
5718
- path4 = url.path;
5718
+ path3 = url.path;
5719
5719
  }
5720
- const isAbsolute = exports2.isAbsolute(path4);
5720
+ const isAbsolute = exports2.isAbsolute(path3);
5721
5721
  const parts = [];
5722
5722
  let start = 0;
5723
5723
  let i = 0;
5724
5724
  while (true) {
5725
5725
  start = i;
5726
- i = path4.indexOf("/", start);
5726
+ i = path3.indexOf("/", start);
5727
5727
  if (i === -1) {
5728
- parts.push(path4.slice(start));
5728
+ parts.push(path3.slice(start));
5729
5729
  break;
5730
5730
  } else {
5731
- parts.push(path4.slice(start, i));
5732
- while (i < path4.length && path4[i] === "/") {
5731
+ parts.push(path3.slice(start, i));
5732
+ while (i < path3.length && path3[i] === "/") {
5733
5733
  i++;
5734
5734
  }
5735
5735
  }
@@ -5751,15 +5751,15 @@ var require_util = __commonJS({
5751
5751
  }
5752
5752
  }
5753
5753
  }
5754
- path4 = parts.join("/");
5755
- if (path4 === "") {
5756
- path4 = isAbsolute ? "/" : ".";
5754
+ path3 = parts.join("/");
5755
+ if (path3 === "") {
5756
+ path3 = isAbsolute ? "/" : ".";
5757
5757
  }
5758
5758
  if (url) {
5759
- url.path = path4;
5759
+ url.path = path3;
5760
5760
  return urlGenerate(url);
5761
5761
  }
5762
- return path4;
5762
+ return path3;
5763
5763
  });
5764
5764
  exports2.normalize = normalize;
5765
5765
  function join2(aRoot, aPath) {
@@ -6523,12 +6523,12 @@ var require_read_wasm = __commonJS({
6523
6523
  };
6524
6524
  module2.exports.initialize = (input) => mappingsWasm = input;
6525
6525
  } else {
6526
- const fs5 = require("fs");
6527
- const path4 = require("path");
6526
+ const fs4 = require("fs");
6527
+ const path3 = require("path");
6528
6528
  module2.exports = function readWasm() {
6529
6529
  return new Promise((resolve, reject) => {
6530
- const wasmPath = path4.join(__dirname, "mappings.wasm");
6531
- fs5.readFile(wasmPath, null, (error, data) => {
6530
+ const wasmPath = path3.join(__dirname, "mappings.wasm");
6531
+ fs4.readFile(wasmPath, null, (error, data) => {
6532
6532
  if (error) {
6533
6533
  reject(error);
6534
6534
  return;
@@ -8153,8 +8153,8 @@ var require_utils3 = __commonJS({
8153
8153
  }
8154
8154
  return output;
8155
8155
  };
8156
- exports2.basename = (path4, { windows } = {}) => {
8157
- const segs = path4.split(windows ? /[\\/]/ : "/");
8156
+ exports2.basename = (path3, { windows } = {}) => {
8157
+ const segs = path3.split(windows ? /[\\/]/ : "/");
8158
8158
  const last = segs[segs.length - 1];
8159
8159
  if (last === "") {
8160
8160
  return segs[segs.length - 2];
@@ -9429,8 +9429,8 @@ var require_picomatch2 = __commonJS({
9429
9429
  });
9430
9430
 
9431
9431
  // src/index.ts
9432
- var import_promises3 = __toESM(require("node:fs/promises"));
9433
- var import_node_path3 = __toESM(require("node:path"));
9432
+ var import_promises2 = __toESM(require("node:fs/promises"));
9433
+ var import_node_path2 = __toESM(require("node:path"));
9434
9434
  var import_constants2 = __toESM(require_constants2());
9435
9435
 
9436
9436
  // src/outputs.ts
@@ -10276,8 +10276,8 @@ async function usesSrcDirectory(workPath) {
10276
10276
  }
10277
10277
  return false;
10278
10278
  }
10279
- function isDirectory(path4) {
10280
- return import_fs_extra3.default.lstatSync(path4, { throwIfNoEntry: false })?.isDirectory() ?? false;
10279
+ function isDirectory(path3) {
10280
+ return import_fs_extra3.default.lstatSync(path3, { throwIfNoEntry: false })?.isDirectory() ?? false;
10281
10281
  }
10282
10282
  async function getSourceFilePathFromPage({
10283
10283
  workPath,
@@ -10480,13 +10480,13 @@ function extractHeaders(routing) {
10480
10480
  }
10481
10481
  function normalizeNextDataRoutes(config, buildId, shouldHandleMiddlewareDataResolving, isOverride = false) {
10482
10482
  if (!shouldHandleMiddlewareDataResolving) return [];
10483
- const path4 = require("node:path");
10483
+ const path3 = require("node:path");
10484
10484
  const basePath = config.basePath || "";
10485
10485
  const trailingSlash = config.trailingSlash || false;
10486
10486
  return [
10487
10487
  // remove x-nextjs-data header for non _next/data requests
10488
10488
  {
10489
- src: path4.posix.join("/", basePath, "/(?!_next/data(?:/|$))(.*)"),
10489
+ src: path3.posix.join("/", basePath, "/(?!_next/data(?:/|$))(.*)"),
10490
10490
  has: [
10491
10491
  {
10492
10492
  type: "header",
@@ -10506,7 +10506,7 @@ function normalizeNextDataRoutes(config, buildId, shouldHandleMiddlewareDataReso
10506
10506
  },
10507
10507
  // ensure x-nextjs-data header is always present if we are doing middleware next data resolving
10508
10508
  {
10509
- src: path4.posix.join("/", basePath, "/_next/data/(.*)"),
10509
+ src: path3.posix.join("/", basePath, "/_next/data/(.*)"),
10510
10510
  missing: [
10511
10511
  {
10512
10512
  type: "header",
@@ -10527,14 +10527,14 @@ function normalizeNextDataRoutes(config, buildId, shouldHandleMiddlewareDataReso
10527
10527
  },
10528
10528
  // strip _next/data prefix for resolving
10529
10529
  {
10530
- src: `^${path4.posix.join(
10530
+ src: `^${path3.posix.join(
10531
10531
  "/",
10532
10532
  basePath,
10533
10533
  "/_next/data/",
10534
10534
  buildId.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"),
10535
10535
  "/(.*).json"
10536
10536
  )}`,
10537
- dest: `${path4.posix.join(
10537
+ dest: `${path3.posix.join(
10538
10538
  "/",
10539
10539
  basePath,
10540
10540
  "/$1",
@@ -10551,14 +10551,14 @@ function normalizeNextDataRoutes(config, buildId, shouldHandleMiddlewareDataReso
10551
10551
  },
10552
10552
  // normalize "/index" from "/_next/data/index.json" to -> just "/"
10553
10553
  {
10554
- src: path4.posix.join("^/", basePath, "/index(?:/)?"),
10554
+ src: path3.posix.join("^/", basePath, "/index(?:/)?"),
10555
10555
  has: [
10556
10556
  {
10557
10557
  type: "header",
10558
10558
  key: "x-nextjs-data"
10559
10559
  }
10560
10560
  ],
10561
- dest: path4.posix.join("/", basePath, trailingSlash ? "/" : ""),
10561
+ dest: path3.posix.join("/", basePath, trailingSlash ? "/" : ""),
10562
10562
  ...isOverride ? { override: true } : {},
10563
10563
  continue: true
10564
10564
  }
@@ -10577,12 +10577,12 @@ function extractOnMatchRoutes(routing) {
10577
10577
  }
10578
10578
  function denormalizeNextDataRoutes(config, buildId, shouldHandleMiddlewareDataResolving, isOverride = false) {
10579
10579
  if (!shouldHandleMiddlewareDataResolving) return [];
10580
- const path4 = require("node:path");
10580
+ const path3 = require("node:path");
10581
10581
  const basePath = config.basePath || "";
10582
10582
  const trailingSlash = config.trailingSlash || false;
10583
10583
  return [
10584
10584
  {
10585
- src: path4.posix.join(
10585
+ src: path3.posix.join(
10586
10586
  "^/",
10587
10587
  basePath && basePath !== "/" ? `${basePath}${trailingSlash ? "/$" : "$"}` : "$"
10588
10588
  ),
@@ -10592,7 +10592,7 @@ function denormalizeNextDataRoutes(config, buildId, shouldHandleMiddlewareDataRe
10592
10592
  key: "x-nextjs-data"
10593
10593
  }
10594
10594
  ],
10595
- dest: `${path4.posix.join(
10595
+ dest: `${path3.posix.join(
10596
10596
  "/",
10597
10597
  basePath,
10598
10598
  "/_next/data/",
@@ -10603,14 +10603,14 @@ function denormalizeNextDataRoutes(config, buildId, shouldHandleMiddlewareDataRe
10603
10603
  ...isOverride ? { override: true } : {}
10604
10604
  },
10605
10605
  {
10606
- src: path4.posix.join("^/", basePath, "((?!_next/)(?:.*[^/]|.*))/?$"),
10606
+ src: path3.posix.join("^/", basePath, "((?!_next/)(?:.*[^/]|.*))/?$"),
10607
10607
  has: [
10608
10608
  {
10609
10609
  type: "header",
10610
10610
  key: "x-nextjs-data"
10611
10611
  }
10612
10612
  ],
10613
- dest: `${path4.posix.join(
10613
+ dest: `${path3.posix.join(
10614
10614
  "/",
10615
10615
  basePath,
10616
10616
  "/_next/data/",
@@ -10623,111 +10623,6 @@ function denormalizeNextDataRoutes(config, buildId, shouldHandleMiddlewareDataRe
10623
10623
  ];
10624
10624
  }
10625
10625
 
10626
- // src/server-actions.ts
10627
- var import_promises2 = __toESM(require("node:fs/promises"));
10628
- var import_node_path2 = __toESM(require("node:path"));
10629
- var TRANSFORM_ARGS_CHARSET = /^[a-zA-Z0-9_ :;.,"'?!(){}[\]@<>=+*#$&`|~^%/-]+$/;
10630
- function sanitizeTransformArgs(value) {
10631
- let sanitized = "";
10632
- for (const char of value) {
10633
- sanitized += char === "%" || !TRANSFORM_ARGS_CHARSET.test(char) ? encodeURIComponent(char) : char;
10634
- }
10635
- return sanitized;
10636
- }
10637
- var MAX_CDN_ROUTES = 2048;
10638
- function isServerActionMetaRoute(route) {
10639
- return Boolean(
10640
- "transforms" in route && route.transforms?.some(
10641
- (transform) => transform.target.key === "x-server-action-name"
10642
- )
10643
- );
10644
- }
10645
- function trimServerActionMetaRoutesToFit(routes, maxRoutes = MAX_CDN_ROUTES) {
10646
- if (routes.length <= maxRoutes) {
10647
- return routes;
10648
- }
10649
- const overflow = routes.length - maxRoutes;
10650
- let dropped = 0;
10651
- const trimmed = routes.filter((route) => {
10652
- if (dropped >= overflow) {
10653
- return true;
10654
- }
10655
- if (isServerActionMetaRoute(route)) {
10656
- dropped += 1;
10657
- return false;
10658
- }
10659
- return true;
10660
- });
10661
- if (dropped > 0) {
10662
- console.warn(
10663
- `Dropped ${dropped} server action meta route(s) to stay under the ${maxRoutes} CDN route limit`
10664
- );
10665
- }
10666
- return trimmed;
10667
- }
10668
- async function getServerActionMetaRoutes(distDir) {
10669
- const manifestPath = import_node_path2.default.join(
10670
- distDir,
10671
- "server",
10672
- "server-reference-manifest.json"
10673
- );
10674
- let manifestContent;
10675
- try {
10676
- manifestContent = await import_promises2.default.readFile(manifestPath, "utf8");
10677
- } catch (error) {
10678
- if (error.code === "ENOENT") {
10679
- return [];
10680
- }
10681
- throw error;
10682
- }
10683
- let manifest;
10684
- try {
10685
- manifest = JSON.parse(manifestContent);
10686
- } catch {
10687
- console.warn(
10688
- `Failed to parse ${manifestPath}, skipping server action meta routes`
10689
- );
10690
- return [];
10691
- }
10692
- const routes = [];
10693
- const seenIds = /* @__PURE__ */ new Set();
10694
- for (const runtimeType of ["node", "edge"]) {
10695
- const runtime = manifest[runtimeType];
10696
- if (!runtime) continue;
10697
- for (const [id, entry] of Object.entries(runtime)) {
10698
- if (!entry.filename || !entry.exportedName) continue;
10699
- if (seenIds.has(id)) continue;
10700
- seenIds.add(id);
10701
- const exportedName = entry.exportedName.startsWith("$$RSC_SERVER_ACTION_") ? "anonymous_fn" : entry.exportedName;
10702
- const args = sanitizeTransformArgs(`${entry.filename}#${exportedName}`);
10703
- if (!args || !TRANSFORM_ARGS_CHARSET.test(args)) {
10704
- continue;
10705
- }
10706
- routes.push({
10707
- src: "/(.*)",
10708
- has: [
10709
- {
10710
- type: "header",
10711
- key: "next-action",
10712
- value: id
10713
- }
10714
- ],
10715
- transforms: [
10716
- {
10717
- type: "request.headers",
10718
- op: "append",
10719
- target: {
10720
- key: "x-server-action-name"
10721
- },
10722
- args
10723
- }
10724
- ]
10725
- });
10726
- }
10727
- }
10728
- return routes;
10729
- }
10730
-
10731
10626
  // src/toolbar.ts
10732
10627
  function generateToolbarScript(isProduction, optIn, deploymentIdExpr) {
10733
10628
  let cookieCheck = "true";
@@ -10768,10 +10663,10 @@ var myAdapter = {
10768
10663
  }
10769
10664
  if (ctx.phase === import_constants2.PHASE_PRODUCTION_BUILD && process.env.VERCEL_PREVIEW_COMMENTS_ENABLED === "1" && // Only available in newer Next.js versions
10770
10665
  typeof ctx.projectDir !== "undefined") {
10771
- const dir = import_node_path3.default.join(ctx.projectDir, ".vercel/");
10772
- await import_promises3.default.mkdir(dir, { recursive: true });
10773
- await import_promises3.default.writeFile(
10774
- import_node_path3.default.join(dir, "adapter-toolbar-script.js"),
10666
+ const dir = import_node_path2.default.join(ctx.projectDir, ".vercel/");
10667
+ await import_promises2.default.mkdir(dir, { recursive: true });
10668
+ await import_promises2.default.writeFile(
10669
+ import_node_path2.default.join(dir, "adapter-toolbar-script.js"),
10775
10670
  generateToolbarScript(
10776
10671
  process.env.VERCEL_ENV === "production",
10777
10672
  process.env.VERCEL_PREVIEW_COMMENTS_OPT_IN === "1",
@@ -10798,8 +10693,8 @@ var myAdapter = {
10798
10693
  projectDir,
10799
10694
  nextVersion
10800
10695
  }) {
10801
- const vercelOutputDir = import_node_path3.default.join(distDir, "output");
10802
- await import_promises3.default.mkdir(vercelOutputDir, { recursive: true });
10696
+ const vercelOutputDir = import_node_path2.default.join(distDir, "output");
10697
+ await import_promises2.default.mkdir(vercelOutputDir, { recursive: true });
10803
10698
  const escapedBuildId = escapeStringRegexp(buildId);
10804
10699
  const hasMiddleware = Boolean(outputs.middleware);
10805
10700
  const hasAppDir = outputs.appPages.length > 0 || outputs.appRoutes.length > 0;
@@ -10818,7 +10713,7 @@ var myAdapter = {
10818
10713
  images: getImagesConfig(config)
10819
10714
  };
10820
10715
  await handlePublicFiles(
10821
- import_node_path3.default.join(projectDir, "public"),
10716
+ import_node_path2.default.join(projectDir, "public"),
10822
10717
  vercelOutputDir,
10823
10718
  config
10824
10719
  );
@@ -10943,7 +10838,6 @@ var myAdapter = {
10943
10838
  const { priority: priorityRedirects, normal: redirects } = extractRedirects(routing);
10944
10839
  const headers = extractHeaders(routing);
10945
10840
  const onMatchRoutes = extractOnMatchRoutes(routing);
10946
- const serverActionMetaRoutes = await getServerActionMetaRoutes(distDir);
10947
10841
  const dynamicRoutes = [];
10948
10842
  let addedNextData404Route = false;
10949
10843
  for (const route of routing.dynamicRoutes) {
@@ -10951,8 +10845,8 @@ var myAdapter = {
10951
10845
  if (!route.sourceRegex.includes("_next/data") && !addedNextData404Route) {
10952
10846
  addedNextData404Route = true;
10953
10847
  dynamicRoutes.push({
10954
- src: import_node_path3.default.posix.join("/", config.basePath || "", "_next/data/(.*)"),
10955
- dest: import_node_path3.default.posix.join("/", config.basePath || "", "404"),
10848
+ src: import_node_path2.default.posix.join("/", config.basePath || "", "_next/data/(.*)"),
10849
+ dest: import_node_path2.default.posix.join("/", config.basePath || "", "404"),
10956
10850
  status: 404,
10957
10851
  check: true
10958
10852
  });
@@ -10990,31 +10884,31 @@ var myAdapter = {
10990
10884
  // $wildcard
10991
10885
  // This is split into two rules to avoid matching the `/index` route as it causes issues with trailing slash redirect
10992
10886
  {
10993
- src: `^${import_node_path3.default.posix.join(
10887
+ src: `^${import_node_path2.default.posix.join(
10994
10888
  "/",
10995
10889
  config.basePath,
10996
10890
  "/"
10997
10891
  )}(?!(?:_next/.*|${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})(?:/.*|$))$`,
10998
10892
  // we aren't able to ensure trailing slash mode here
10999
10893
  // so ensure this comes after the trailing slash redirect
11000
- dest: `${config.basePath && config.basePath !== "/" ? import_node_path3.default.posix.join("/", config.basePath) : ""}$wildcard${config.trailingSlash ? "/" : ""}`,
10894
+ dest: `${config.basePath && config.basePath !== "/" ? import_node_path2.default.posix.join("/", config.basePath) : ""}$wildcard${config.trailingSlash ? "/" : ""}`,
11001
10895
  continue: true
11002
10896
  },
11003
10897
  {
11004
- src: `^${import_node_path3.default.posix.join(
10898
+ src: `^${import_node_path2.default.posix.join(
11005
10899
  "/",
11006
10900
  config.basePath,
11007
10901
  "/"
11008
10902
  )}(?!(?:_next/.*|${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})(?:/.*|$))(.*)$`,
11009
10903
  // we aren't able to ensure trailing slash mode here
11010
10904
  // so ensure this comes after the trailing slash redirect
11011
- dest: `${config.basePath && config.basePath !== "/" ? import_node_path3.default.posix.join("/", config.basePath) : ""}$wildcard/$1`,
10905
+ dest: `${config.basePath && config.basePath !== "/" ? import_node_path2.default.posix.join("/", config.basePath) : ""}$wildcard/$1`,
11012
10906
  continue: true
11013
10907
  },
11014
10908
  // Handle redirecting to locale specific domains
11015
10909
  ...config.i18n.domains && config.i18n.domains.length > 0 && config.i18n.localeDetection !== false ? [
11016
10910
  {
11017
- src: `^${import_node_path3.default.posix.join(
10911
+ src: `^${import_node_path2.default.posix.join(
11018
10912
  "/",
11019
10913
  config.basePath
11020
10914
  )}/?(?:${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})?/?$`,
@@ -11061,8 +10955,8 @@ var myAdapter = {
11061
10955
  // when `skipDefaultLocaleRewrite` is not flagged on
11062
10956
  // and when localeDetection is enabled.
11063
10957
  {
11064
- src: `^${import_node_path3.default.posix.join("/", config.basePath)}$`,
11065
- dest: `${import_node_path3.default.posix.join(
10958
+ src: `^${import_node_path2.default.posix.join("/", config.basePath)}$`,
10959
+ dest: `${import_node_path2.default.posix.join(
11066
10960
  "/",
11067
10961
  config.basePath,
11068
10962
  config.i18n.defaultLocale
@@ -11075,12 +10969,12 @@ var myAdapter = {
11075
10969
  // e.g. for /de/posts/[slug] x-now-route-matches would have
11076
10970
  // 1=posts%2Fpost-1
11077
10971
  {
11078
- src: `^${import_node_path3.default.posix.join(
10972
+ src: `^${import_node_path2.default.posix.join(
11079
10973
  "/",
11080
10974
  config.basePath,
11081
10975
  "/"
11082
10976
  )}(?!(?:_next/.*|${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})(?:/.*|$))(.*)$`,
11083
- dest: `${import_node_path3.default.posix.join(
10977
+ dest: `${import_node_path2.default.posix.join(
11084
10978
  "/",
11085
10979
  config.basePath,
11086
10980
  config.i18n.defaultLocale
@@ -11090,14 +10984,14 @@ var myAdapter = {
11090
10984
  ] : [],
11091
10985
  ...headers,
11092
10986
  ...redirects,
11093
- ...serverActionMetaRoutes,
10987
+ // server actions name meta routes - placeholder for server actions
11094
10988
  // middleware route - placeholder for middleware configuration
11095
10989
  ...middlewareRoutes,
11096
10990
  ...convertedRewrites.beforeFiles,
11097
10991
  // add 404 handling if /404 or locale variants are requested literally
11098
10992
  ...config.i18n ? [
11099
10993
  {
11100
- src: `${import_node_path3.default.posix.join(
10994
+ src: `${import_node_path2.default.posix.join(
11101
10995
  "/",
11102
10996
  config.basePath,
11103
10997
  "/"
@@ -11113,7 +11007,7 @@ var myAdapter = {
11113
11007
  }
11114
11008
  ] : [
11115
11009
  {
11116
- src: import_node_path3.default.posix.join("/", config.basePath, "404/?"),
11010
+ src: import_node_path2.default.posix.join("/", config.basePath, "404/?"),
11117
11011
  status: 404,
11118
11012
  continue: true,
11119
11013
  missing: [
@@ -11127,7 +11021,7 @@ var myAdapter = {
11127
11021
  // add 500 handling if /500 or locale variants are requested literally
11128
11022
  ...config.i18n ? [
11129
11023
  {
11130
- src: `${import_node_path3.default.posix.join(
11024
+ src: `${import_node_path2.default.posix.join(
11131
11025
  "/",
11132
11026
  config.basePath,
11133
11027
  "/"
@@ -11137,7 +11031,7 @@ var myAdapter = {
11137
11031
  }
11138
11032
  ] : [
11139
11033
  {
11140
- src: import_node_path3.default.posix.join("/", config.basePath, "500/?"),
11034
+ src: import_node_path2.default.posix.join("/", config.basePath, "500/?"),
11141
11035
  status: 500,
11142
11036
  continue: true
11143
11037
  }
@@ -11152,12 +11046,12 @@ var myAdapter = {
11152
11046
  // RSC and prefetch request handling for App Router
11153
11047
  ...hasAppDir ? [
11154
11048
  {
11155
- src: import_node_path3.default.posix.join(
11049
+ src: import_node_path2.default.posix.join(
11156
11050
  "/",
11157
11051
  config.basePath,
11158
11052
  "/(?<path>.+?)(?:/)?$"
11159
11053
  ),
11160
- dest: import_node_path3.default.posix.join(
11054
+ dest: import_node_path2.default.posix.join(
11161
11055
  "/",
11162
11056
  config.basePath,
11163
11057
  `/$path${routing.rsc.prefetchSegmentDirSuffix}/$segmentPath${routing.rsc.prefetchSegmentSuffix}`
@@ -11183,8 +11077,8 @@ var myAdapter = {
11183
11077
  override: true
11184
11078
  },
11185
11079
  {
11186
- src: import_node_path3.default.posix.join("^/", config.basePath, "/?$"),
11187
- dest: import_node_path3.default.posix.join(
11080
+ src: import_node_path2.default.posix.join("^/", config.basePath, "/?$"),
11081
+ dest: import_node_path2.default.posix.join(
11188
11082
  "/",
11189
11083
  config.basePath,
11190
11084
  `/index${routing.rsc.prefetchSegmentDirSuffix}/$segmentPath${routing.rsc.prefetchSegmentSuffix}`
@@ -11210,7 +11104,7 @@ var myAdapter = {
11210
11104
  override: true
11211
11105
  },
11212
11106
  {
11213
- src: `^${import_node_path3.default.posix.join("/", config.basePath, "/?")}`,
11107
+ src: `^${import_node_path2.default.posix.join("/", config.basePath, "/?")}`,
11214
11108
  has: [
11215
11109
  {
11216
11110
  type: "header",
@@ -11218,7 +11112,7 @@ var myAdapter = {
11218
11112
  value: "1"
11219
11113
  }
11220
11114
  ],
11221
- dest: import_node_path3.default.posix.join("/", config.basePath, "/index.rsc"),
11115
+ dest: import_node_path2.default.posix.join("/", config.basePath, "/index.rsc"),
11222
11116
  headers: {
11223
11117
  vary: routing.rsc.varyHeader
11224
11118
  },
@@ -11226,7 +11120,7 @@ var myAdapter = {
11226
11120
  override: true
11227
11121
  },
11228
11122
  {
11229
- src: `^${import_node_path3.default.posix.join(
11123
+ src: `^${import_node_path2.default.posix.join(
11230
11124
  "/",
11231
11125
  config.basePath,
11232
11126
  "/((?!.+\\.rsc).+?)(?:/)?$"
@@ -11238,7 +11132,7 @@ var myAdapter = {
11238
11132
  value: "1"
11239
11133
  }
11240
11134
  ],
11241
- dest: import_node_path3.default.posix.join("/", config.basePath, "/$1.rsc"),
11135
+ dest: import_node_path2.default.posix.join("/", config.basePath, "/$1.rsc"),
11242
11136
  headers: {
11243
11137
  vary: routing.rsc.varyHeader
11244
11138
  },
@@ -11251,7 +11145,7 @@ var myAdapter = {
11251
11145
  // _next/image path
11252
11146
  ...config.basePath ? [
11253
11147
  {
11254
- src: import_node_path3.default.posix.join("/", config.basePath, "_next/image/?"),
11148
+ src: import_node_path2.default.posix.join("/", config.basePath, "_next/image/?"),
11255
11149
  dest: "/_next/image",
11256
11150
  check: true
11257
11151
  }
@@ -11267,20 +11161,20 @@ var myAdapter = {
11267
11161
  // No-op _next/data rewrite to trigger handle: 'rewrites' and then 404
11268
11162
  // if no match to prevent rewriting _next/data unexpectedly
11269
11163
  {
11270
- src: import_node_path3.default.posix.join("/", config.basePath, "_next/data/(.*)"),
11271
- dest: import_node_path3.default.posix.join("/", config.basePath, "_next/data/$1"),
11164
+ src: import_node_path2.default.posix.join("/", config.basePath, "_next/data/(.*)"),
11165
+ dest: import_node_path2.default.posix.join("/", config.basePath, "_next/data/$1"),
11272
11166
  check: true
11273
11167
  }
11274
11168
  ] : [],
11275
11169
  // normalize /index.rsc to just / for App Router
11276
11170
  ...hasAppDir ? [
11277
11171
  {
11278
- src: import_node_path3.default.posix.join(
11172
+ src: import_node_path2.default.posix.join(
11279
11173
  "/",
11280
11174
  config.basePath,
11281
11175
  "/index(\\.action|\\.rsc)"
11282
11176
  ),
11283
- dest: import_node_path3.default.posix.join("/", config.basePath),
11177
+ dest: import_node_path2.default.posix.join("/", config.basePath),
11284
11178
  continue: true
11285
11179
  }
11286
11180
  ] : [],
@@ -11288,13 +11182,13 @@ var myAdapter = {
11288
11182
  // ensure bad rewrites with /.rsc are fixed for App Router
11289
11183
  ...hasAppDir ? [
11290
11184
  {
11291
- src: import_node_path3.default.posix.join("/", config.basePath, "/\\.rsc$"),
11292
- dest: import_node_path3.default.posix.join("/", config.basePath, `/index.rsc`),
11185
+ src: import_node_path2.default.posix.join("/", config.basePath, "/\\.rsc$"),
11186
+ dest: import_node_path2.default.posix.join("/", config.basePath, `/index.rsc`),
11293
11187
  check: true
11294
11188
  },
11295
11189
  {
11296
- src: import_node_path3.default.posix.join("/", config.basePath, "(.+)/\\.rsc$"),
11297
- dest: import_node_path3.default.posix.join("/", config.basePath, "$1.rsc"),
11190
+ src: import_node_path2.default.posix.join("/", config.basePath, "(.+)/\\.rsc$"),
11191
+ dest: import_node_path2.default.posix.join("/", config.basePath, "$1.rsc"),
11298
11192
  check: true
11299
11193
  }
11300
11194
  ] : [],
@@ -11302,14 +11196,14 @@ var myAdapter = {
11302
11196
  ...convertedRewrites.fallback,
11303
11197
  // make sure 404 page is used when a directory is matched without
11304
11198
  // an index page
11305
- { src: import_node_path3.default.posix.join("/", config.basePath, ".*"), status: 404 },
11199
+ { src: import_node_path2.default.posix.join("/", config.basePath, ".*"), status: 404 },
11306
11200
  { handle: "miss" },
11307
11201
  // 404 to plain text file for _next/static
11308
11202
  {
11309
- src: import_node_path3.default.posix.join("/", config.basePath, "_next/static/.+"),
11203
+ src: import_node_path2.default.posix.join("/", config.basePath, "_next/static/.+"),
11310
11204
  status: 404,
11311
11205
  check: true,
11312
- dest: import_node_path3.default.posix.join(
11206
+ dest: import_node_path2.default.posix.join(
11313
11207
  "/",
11314
11208
  config.basePath,
11315
11209
  "_next/static/not-found.txt"
@@ -11326,8 +11220,8 @@ var myAdapter = {
11326
11220
  // we only want to add the rewrite as the fallback case once routing is complete.
11327
11221
  ...config.i18n?.localeDetection === false ? [
11328
11222
  {
11329
- src: `^${import_node_path3.default.posix.join("/", config.basePath)}$`,
11330
- dest: `${import_node_path3.default.posix.join(
11223
+ src: `^${import_node_path2.default.posix.join("/", config.basePath)}$`,
11224
+ dest: `${import_node_path2.default.posix.join(
11331
11225
  "/",
11332
11226
  config.basePath,
11333
11227
  config.i18n.defaultLocale
@@ -11340,12 +11234,12 @@ var myAdapter = {
11340
11234
  // e.g. for /de/posts/[slug] x-now-route-matches would have
11341
11235
  // 1=posts%2Fpost-1
11342
11236
  {
11343
- src: `^${import_node_path3.default.posix.join(
11237
+ src: `^${import_node_path2.default.posix.join(
11344
11238
  "/",
11345
11239
  config.basePath,
11346
11240
  "/"
11347
11241
  )}(?!(?:_next/.*|${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})(?:/.*|$))(.*)$`,
11348
- dest: `${import_node_path3.default.posix.join(
11242
+ dest: `${import_node_path2.default.posix.join(
11349
11243
  "/",
11350
11244
  config.basePath,
11351
11245
  config.i18n.defaultLocale
@@ -11354,7 +11248,7 @@ var myAdapter = {
11354
11248
  }
11355
11249
  ] : [],
11356
11250
  {
11357
- src: import_node_path3.default.posix.join(
11251
+ src: import_node_path2.default.posix.join(
11358
11252
  "/",
11359
11253
  config.basePath,
11360
11254
  escapeStringRegexp(config.i18n.defaultLocale)
@@ -11363,11 +11257,11 @@ var myAdapter = {
11363
11257
  check: true
11364
11258
  },
11365
11259
  {
11366
- src: `^${import_node_path3.default.posix.join(
11260
+ src: `^${import_node_path2.default.posix.join(
11367
11261
  "/",
11368
11262
  config.basePath
11369
11263
  )}/?(?:${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})/(.*)`,
11370
- dest: `${import_node_path3.default.posix.join("/", config.basePath, "/")}$1`,
11264
+ dest: `${import_node_path2.default.posix.join("/", config.basePath, "/")}$1`,
11371
11265
  check: true
11372
11266
  }
11373
11267
  ] : [],
@@ -11396,7 +11290,7 @@ var myAdapter = {
11396
11290
  // if middleware + pages - placeholder for middleware handling
11397
11291
  ...hasMiddleware ? [
11398
11292
  {
11399
- src: `^${import_node_path3.default.posix.join(
11293
+ src: `^${import_node_path2.default.posix.join(
11400
11294
  "/",
11401
11295
  config.basePath,
11402
11296
  "/_next/data/",
@@ -11412,7 +11306,7 @@ var myAdapter = {
11412
11306
  // add a catch-all data route so we don't 404 when getting
11413
11307
  // middleware effects
11414
11308
  {
11415
- src: `^${import_node_path3.default.posix.join(
11309
+ src: `^${import_node_path2.default.posix.join(
11416
11310
  "/",
11417
11311
  config.basePath,
11418
11312
  "/_next/data/",
@@ -11426,7 +11320,7 @@ var myAdapter = {
11426
11320
  ...onMatchRoutes,
11427
11321
  // add internal matched path header for function bundle mapping
11428
11322
  {
11429
- src: config.basePath && config.basePath !== "/" ? import_node_path3.default.posix.join("/", config.basePath, "/?(?:index)?(?:/)?$") : `/(?:index)?(?:/)?$`,
11323
+ src: config.basePath && config.basePath !== "/" ? import_node_path2.default.posix.join("/", config.basePath, "/?(?:index)?(?:/)?$") : `/(?:index)?(?:/)?$`,
11430
11324
  headers: {
11431
11325
  "x-matched-path": "/"
11432
11326
  },
@@ -11434,7 +11328,7 @@ var myAdapter = {
11434
11328
  important: true
11435
11329
  },
11436
11330
  {
11437
- src: import_node_path3.default.posix.join(
11331
+ src: import_node_path2.default.posix.join(
11438
11332
  "/",
11439
11333
  config.basePath || "",
11440
11334
  `/((?!index$).*?)(?:/)?$`
@@ -11449,12 +11343,12 @@ var myAdapter = {
11449
11343
  // Custom Next.js 404 page
11450
11344
  ...config.i18n ? [
11451
11345
  {
11452
- src: `${import_node_path3.default.posix.join(
11346
+ src: `${import_node_path2.default.posix.join(
11453
11347
  "/",
11454
11348
  config.basePath,
11455
11349
  "/"
11456
11350
  )}(?<nextLocale>${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})(/.*|$)`,
11457
- dest: import_node_path3.default.posix.join(
11351
+ dest: import_node_path2.default.posix.join(
11458
11352
  "/",
11459
11353
  config.basePath,
11460
11354
  "/$nextLocale",
@@ -11464,8 +11358,8 @@ var myAdapter = {
11464
11358
  caseSensitive: true
11465
11359
  },
11466
11360
  {
11467
- src: import_node_path3.default.posix.join("/", config.basePath, ".*"),
11468
- dest: import_node_path3.default.posix.join(
11361
+ src: import_node_path2.default.posix.join("/", config.basePath, ".*"),
11362
+ dest: import_node_path2.default.posix.join(
11469
11363
  "/",
11470
11364
  config.basePath,
11471
11365
  `/${config.i18n.defaultLocale}`,
@@ -11475,7 +11369,7 @@ var myAdapter = {
11475
11369
  }
11476
11370
  ] : [
11477
11371
  {
11478
- src: import_node_path3.default.posix.join(
11372
+ src: import_node_path2.default.posix.join(
11479
11373
  "/",
11480
11374
  config.basePath,
11481
11375
  // if config.basePath is populated we need to
@@ -11483,25 +11377,25 @@ var myAdapter = {
11483
11377
  // that the config.basePath (basePath) itself matches
11484
11378
  `${config.basePath && config.basePath !== "/" ? "?" : ""}.*`
11485
11379
  ),
11486
- dest: import_node_path3.default.posix.join("/", config.basePath, notFoundPath),
11380
+ dest: import_node_path2.default.posix.join("/", config.basePath, notFoundPath),
11487
11381
  status: 404
11488
11382
  }
11489
11383
  ],
11490
11384
  // custom 500 page if present
11491
11385
  ...config.i18n && has500Output ? [
11492
11386
  {
11493
- src: `${import_node_path3.default.posix.join(
11387
+ src: `${import_node_path2.default.posix.join(
11494
11388
  "/",
11495
11389
  config.basePath,
11496
11390
  "/"
11497
11391
  )}(?<nextLocale>${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})(/.*|$)`,
11498
- dest: import_node_path3.default.posix.join("/", config.basePath, "/$nextLocale/500"),
11392
+ dest: import_node_path2.default.posix.join("/", config.basePath, "/$nextLocale/500"),
11499
11393
  status: 500,
11500
11394
  caseSensitive: true
11501
11395
  },
11502
11396
  {
11503
- src: import_node_path3.default.posix.join("/", config.basePath, ".*"),
11504
- dest: import_node_path3.default.posix.join(
11397
+ src: import_node_path2.default.posix.join("/", config.basePath, ".*"),
11398
+ dest: import_node_path2.default.posix.join(
11505
11399
  "/",
11506
11400
  config.basePath,
11507
11401
  `/${config.i18n.defaultLocale}/500`
@@ -11510,7 +11404,7 @@ var myAdapter = {
11510
11404
  }
11511
11405
  ] : [
11512
11406
  {
11513
- src: import_node_path3.default.posix.join(
11407
+ src: import_node_path2.default.posix.join(
11514
11408
  "/",
11515
11409
  config.basePath,
11516
11410
  // if config.basePath is populated we need to
@@ -11518,7 +11412,7 @@ var myAdapter = {
11518
11412
  // that the config.basePath (basePath) itself matches
11519
11413
  `${config.basePath && config.basePath !== "/" ? "?" : ""}.*`
11520
11414
  ),
11521
- dest: import_node_path3.default.posix.join(
11415
+ dest: import_node_path2.default.posix.join(
11522
11416
  "/",
11523
11417
  config.basePath,
11524
11418
  has500Output ? "/500" : "/_error"
@@ -11527,9 +11421,8 @@ var myAdapter = {
11527
11421
  }
11528
11422
  ]
11529
11423
  ];
11530
- vercelConfig2.routes = trimServerActionMetaRoutesToFit(vercelConfig2.routes);
11531
- const outputConfigPath = import_node_path3.default.join(vercelOutputDir, "config.json");
11532
- await import_promises3.default.writeFile(outputConfigPath, JSON.stringify(vercelConfig2, null, 2));
11424
+ const outputConfigPath = import_node_path2.default.join(vercelOutputDir, "config.json");
11425
+ await import_promises2.default.writeFile(outputConfigPath, JSON.stringify(vercelConfig2, null, 2));
11533
11426
  }
11534
11427
  };
11535
11428
  module.exports = myAdapter;