@vercel/introspection 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hono.mjs CHANGED
@@ -268,7 +268,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
268
268
  this.head = this.tail = null;
269
269
  this.length = 0;
270
270
  };
271
- BufferList.prototype.join = function join4(s) {
271
+ BufferList.prototype.join = function join6(s) {
272
272
  if (this.length === 0) return "";
273
273
  var p = this.head;
274
274
  var ret = "" + p.data;
@@ -1990,47 +1990,47 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
1990
1990
  }
1991
1991
  var chdir;
1992
1992
  module2.exports = patch;
1993
- function patch(fs6) {
1994
- if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) patchLchmod(fs6);
1995
- if (!fs6.lutimes) patchLutimes(fs6);
1996
- fs6.chown = chownFix(fs6.chown);
1997
- fs6.fchown = chownFix(fs6.fchown);
1998
- fs6.lchown = chownFix(fs6.lchown);
1999
- fs6.chmod = chmodFix(fs6.chmod);
2000
- fs6.fchmod = chmodFix(fs6.fchmod);
2001
- fs6.lchmod = chmodFix(fs6.lchmod);
2002
- fs6.chownSync = chownFixSync(fs6.chownSync);
2003
- fs6.fchownSync = chownFixSync(fs6.fchownSync);
2004
- fs6.lchownSync = chownFixSync(fs6.lchownSync);
2005
- fs6.chmodSync = chmodFixSync(fs6.chmodSync);
2006
- fs6.fchmodSync = chmodFixSync(fs6.fchmodSync);
2007
- fs6.lchmodSync = chmodFixSync(fs6.lchmodSync);
2008
- fs6.stat = statFix(fs6.stat);
2009
- fs6.fstat = statFix(fs6.fstat);
2010
- fs6.lstat = statFix(fs6.lstat);
2011
- fs6.statSync = statFixSync(fs6.statSync);
2012
- fs6.fstatSync = statFixSync(fs6.fstatSync);
2013
- fs6.lstatSync = statFixSync(fs6.lstatSync);
2014
- if (fs6.chmod && !fs6.lchmod) {
2015
- fs6.lchmod = function(path7, mode, cb) {
1993
+ function patch(fs7) {
1994
+ if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) patchLchmod(fs7);
1995
+ if (!fs7.lutimes) patchLutimes(fs7);
1996
+ fs7.chown = chownFix(fs7.chown);
1997
+ fs7.fchown = chownFix(fs7.fchown);
1998
+ fs7.lchown = chownFix(fs7.lchown);
1999
+ fs7.chmod = chmodFix(fs7.chmod);
2000
+ fs7.fchmod = chmodFix(fs7.fchmod);
2001
+ fs7.lchmod = chmodFix(fs7.lchmod);
2002
+ fs7.chownSync = chownFixSync(fs7.chownSync);
2003
+ fs7.fchownSync = chownFixSync(fs7.fchownSync);
2004
+ fs7.lchownSync = chownFixSync(fs7.lchownSync);
2005
+ fs7.chmodSync = chmodFixSync(fs7.chmodSync);
2006
+ fs7.fchmodSync = chmodFixSync(fs7.fchmodSync);
2007
+ fs7.lchmodSync = chmodFixSync(fs7.lchmodSync);
2008
+ fs7.stat = statFix(fs7.stat);
2009
+ fs7.fstat = statFix(fs7.fstat);
2010
+ fs7.lstat = statFix(fs7.lstat);
2011
+ fs7.statSync = statFixSync(fs7.statSync);
2012
+ fs7.fstatSync = statFixSync(fs7.fstatSync);
2013
+ fs7.lstatSync = statFixSync(fs7.lstatSync);
2014
+ if (fs7.chmod && !fs7.lchmod) {
2015
+ fs7.lchmod = function(path7, mode, cb) {
2016
2016
  if (cb) process.nextTick(cb);
2017
2017
  };
2018
- fs6.lchmodSync = function() {};
2018
+ fs7.lchmodSync = function() {};
2019
2019
  }
2020
- if (fs6.chown && !fs6.lchown) {
2021
- fs6.lchown = function(path7, uid, gid, cb) {
2020
+ if (fs7.chown && !fs7.lchown) {
2021
+ fs7.lchown = function(path7, uid, gid, cb) {
2022
2022
  if (cb) process.nextTick(cb);
2023
2023
  };
2024
- fs6.lchownSync = function() {};
2024
+ fs7.lchownSync = function() {};
2025
2025
  }
2026
- if (platform === "win32") fs6.rename = typeof fs6.rename !== "function" ? fs6.rename : function(fs$rename) {
2026
+ if (platform === "win32") fs7.rename = typeof fs7.rename !== "function" ? fs7.rename : function(fs$rename) {
2027
2027
  function rename2(from, to, cb) {
2028
2028
  var start = Date.now();
2029
2029
  var backoff = 0;
2030
2030
  fs$rename(from, to, function CB(er) {
2031
2031
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
2032
2032
  setTimeout(function() {
2033
- fs6.stat(to, function(stater, st) {
2033
+ fs7.stat(to, function(stater, st) {
2034
2034
  if (stater && stater.code === "ENOENT") fs$rename(from, to, CB);
2035
2035
  else cb(er);
2036
2036
  });
@@ -2043,8 +2043,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2043
2043
  }
2044
2044
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename2, fs$rename);
2045
2045
  return rename2;
2046
- }(fs6.rename);
2047
- fs6.read = typeof fs6.read !== "function" ? fs6.read : function(fs$read) {
2046
+ }(fs7.rename);
2047
+ fs7.read = typeof fs7.read !== "function" ? fs7.read : function(fs$read) {
2048
2048
  function read(fd, buffer, offset, length, position, callback_) {
2049
2049
  var callback;
2050
2050
  if (callback_ && typeof callback_ === "function") {
@@ -2052,21 +2052,21 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2052
2052
  callback = function(er, _, __) {
2053
2053
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
2054
2054
  eagCounter++;
2055
- return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
2055
+ return fs$read.call(fs7, fd, buffer, offset, length, position, callback);
2056
2056
  }
2057
2057
  callback_.apply(this, arguments);
2058
2058
  };
2059
2059
  }
2060
- return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
2060
+ return fs$read.call(fs7, fd, buffer, offset, length, position, callback);
2061
2061
  }
2062
2062
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
2063
2063
  return read;
2064
- }(fs6.read);
2065
- fs6.readSync = typeof fs6.readSync !== "function" ? fs6.readSync : function(fs$readSync) {
2064
+ }(fs7.read);
2065
+ fs7.readSync = typeof fs7.readSync !== "function" ? fs7.readSync : function(fs$readSync) {
2066
2066
  return function(fd, buffer, offset, length, position) {
2067
2067
  var eagCounter = 0;
2068
2068
  while (true) try {
2069
- return fs$readSync.call(fs6, fd, buffer, offset, length, position);
2069
+ return fs$readSync.call(fs7, fd, buffer, offset, length, position);
2070
2070
  } catch (er) {
2071
2071
  if (er.code === "EAGAIN" && eagCounter < 10) {
2072
2072
  eagCounter++;
@@ -2075,78 +2075,78 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2075
2075
  throw er;
2076
2076
  }
2077
2077
  };
2078
- }(fs6.readSync);
2079
- function patchLchmod(fs7) {
2080
- fs7.lchmod = function(path7, mode, callback) {
2081
- fs7.open(path7, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
2078
+ }(fs7.readSync);
2079
+ function patchLchmod(fs8) {
2080
+ fs8.lchmod = function(path7, mode, callback) {
2081
+ fs8.open(path7, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
2082
2082
  if (err) {
2083
2083
  if (callback) callback(err);
2084
2084
  return;
2085
2085
  }
2086
- fs7.fchmod(fd, mode, function(err2) {
2087
- fs7.close(fd, function(err22) {
2086
+ fs8.fchmod(fd, mode, function(err2) {
2087
+ fs8.close(fd, function(err22) {
2088
2088
  if (callback) callback(err2 || err22);
2089
2089
  });
2090
2090
  });
2091
2091
  });
2092
2092
  };
2093
- fs7.lchmodSync = function(path7, mode) {
2094
- var fd = fs7.openSync(path7, constants.O_WRONLY | constants.O_SYMLINK, mode);
2093
+ fs8.lchmodSync = function(path7, mode) {
2094
+ var fd = fs8.openSync(path7, constants.O_WRONLY | constants.O_SYMLINK, mode);
2095
2095
  var threw = true;
2096
2096
  var ret;
2097
2097
  try {
2098
- ret = fs7.fchmodSync(fd, mode);
2098
+ ret = fs8.fchmodSync(fd, mode);
2099
2099
  threw = false;
2100
2100
  } finally {
2101
2101
  if (threw) try {
2102
- fs7.closeSync(fd);
2102
+ fs8.closeSync(fd);
2103
2103
  } catch (er) {}
2104
- else fs7.closeSync(fd);
2104
+ else fs8.closeSync(fd);
2105
2105
  }
2106
2106
  return ret;
2107
2107
  };
2108
2108
  }
2109
- function patchLutimes(fs7) {
2110
- if (constants.hasOwnProperty("O_SYMLINK") && fs7.futimes) {
2111
- fs7.lutimes = function(path7, at, mt, cb) {
2112
- fs7.open(path7, constants.O_SYMLINK, function(er, fd) {
2109
+ function patchLutimes(fs8) {
2110
+ if (constants.hasOwnProperty("O_SYMLINK") && fs8.futimes) {
2111
+ fs8.lutimes = function(path7, at, mt, cb) {
2112
+ fs8.open(path7, constants.O_SYMLINK, function(er, fd) {
2113
2113
  if (er) {
2114
2114
  if (cb) cb(er);
2115
2115
  return;
2116
2116
  }
2117
- fs7.futimes(fd, at, mt, function(er2) {
2118
- fs7.close(fd, function(er22) {
2117
+ fs8.futimes(fd, at, mt, function(er2) {
2118
+ fs8.close(fd, function(er22) {
2119
2119
  if (cb) cb(er2 || er22);
2120
2120
  });
2121
2121
  });
2122
2122
  });
2123
2123
  };
2124
- fs7.lutimesSync = function(path7, at, mt) {
2125
- var fd = fs7.openSync(path7, constants.O_SYMLINK);
2124
+ fs8.lutimesSync = function(path7, at, mt) {
2125
+ var fd = fs8.openSync(path7, constants.O_SYMLINK);
2126
2126
  var ret;
2127
2127
  var threw = true;
2128
2128
  try {
2129
- ret = fs7.futimesSync(fd, at, mt);
2129
+ ret = fs8.futimesSync(fd, at, mt);
2130
2130
  threw = false;
2131
2131
  } finally {
2132
2132
  if (threw) try {
2133
- fs7.closeSync(fd);
2133
+ fs8.closeSync(fd);
2134
2134
  } catch (er) {}
2135
- else fs7.closeSync(fd);
2135
+ else fs8.closeSync(fd);
2136
2136
  }
2137
2137
  return ret;
2138
2138
  };
2139
- } else if (fs7.futimes) {
2140
- fs7.lutimes = function(_a, _b, _c, cb) {
2139
+ } else if (fs8.futimes) {
2140
+ fs8.lutimes = function(_a, _b, _c, cb) {
2141
2141
  if (cb) process.nextTick(cb);
2142
2142
  };
2143
- fs7.lutimesSync = function() {};
2143
+ fs8.lutimesSync = function() {};
2144
2144
  }
2145
2145
  }
2146
2146
  function chmodFix(orig) {
2147
2147
  if (!orig) return orig;
2148
2148
  return function(target, mode, cb) {
2149
- return orig.call(fs6, target, mode, function(er) {
2149
+ return orig.call(fs7, target, mode, function(er) {
2150
2150
  if (chownErOk(er)) er = null;
2151
2151
  if (cb) cb.apply(this, arguments);
2152
2152
  });
@@ -2156,7 +2156,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2156
2156
  if (!orig) return orig;
2157
2157
  return function(target, mode) {
2158
2158
  try {
2159
- return orig.call(fs6, target, mode);
2159
+ return orig.call(fs7, target, mode);
2160
2160
  } catch (er) {
2161
2161
  if (!chownErOk(er)) throw er;
2162
2162
  }
@@ -2165,7 +2165,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2165
2165
  function chownFix(orig) {
2166
2166
  if (!orig) return orig;
2167
2167
  return function(target, uid, gid, cb) {
2168
- return orig.call(fs6, target, uid, gid, function(er) {
2168
+ return orig.call(fs7, target, uid, gid, function(er) {
2169
2169
  if (chownErOk(er)) er = null;
2170
2170
  if (cb) cb.apply(this, arguments);
2171
2171
  });
@@ -2175,7 +2175,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2175
2175
  if (!orig) return orig;
2176
2176
  return function(target, uid, gid) {
2177
2177
  try {
2178
- return orig.call(fs6, target, uid, gid);
2178
+ return orig.call(fs7, target, uid, gid);
2179
2179
  } catch (er) {
2180
2180
  if (!chownErOk(er)) throw er;
2181
2181
  }
@@ -2195,13 +2195,13 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2195
2195
  }
2196
2196
  if (cb) cb.apply(this, arguments);
2197
2197
  }
2198
- return options ? orig.call(fs6, target, options, callback) : orig.call(fs6, target, callback);
2198
+ return options ? orig.call(fs7, target, options, callback) : orig.call(fs7, target, callback);
2199
2199
  };
2200
2200
  }
2201
2201
  function statFixSync(orig) {
2202
2202
  if (!orig) return orig;
2203
2203
  return function(target, options) {
2204
- var stats = options ? orig.call(fs6, target, options) : orig.call(fs6, target);
2204
+ var stats = options ? orig.call(fs7, target, options) : orig.call(fs7, target);
2205
2205
  if (stats) {
2206
2206
  if (stats.uid < 0) stats.uid += 4294967296;
2207
2207
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -2222,7 +2222,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2222
2222
  var require_legacy_streams = __commonJS({ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
2223
2223
  var Stream = __require("stream").Stream;
2224
2224
  module2.exports = legacy;
2225
- function legacy(fs6) {
2225
+ function legacy(fs7) {
2226
2226
  return {
2227
2227
  ReadStream,
2228
2228
  WriteStream
@@ -2258,7 +2258,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2258
2258
  });
2259
2259
  return;
2260
2260
  }
2261
- fs6.open(this.path, this.flags, this.mode, function(err, fd) {
2261
+ fs7.open(this.path, this.flags, this.mode, function(err, fd) {
2262
2262
  if (err) {
2263
2263
  self2.emit("error", err);
2264
2264
  self2.readable = false;
@@ -2293,7 +2293,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2293
2293
  this.busy = false;
2294
2294
  this._queue = [];
2295
2295
  if (this.fd === null) {
2296
- this._open = fs6.open;
2296
+ this._open = fs7.open;
2297
2297
  this._queue.push([
2298
2298
  this._open,
2299
2299
  this.path,
@@ -2322,7 +2322,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2322
2322
  }
2323
2323
  } });
2324
2324
  var require_graceful_fs = __commonJS({ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
2325
- var fs6 = __require("fs");
2325
+ var fs7 = __require("fs");
2326
2326
  var polyfills = require_polyfills();
2327
2327
  var legacy = require_legacy_streams();
2328
2328
  var clone = require_clone();
@@ -2349,46 +2349,46 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2349
2349
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
2350
2350
  console.error(m);
2351
2351
  };
2352
- if (!fs6[gracefulQueue]) {
2352
+ if (!fs7[gracefulQueue]) {
2353
2353
  queue = global[gracefulQueue] || [];
2354
- publishQueue(fs6, queue);
2355
- fs6.close = function(fs$close) {
2354
+ publishQueue(fs7, queue);
2355
+ fs7.close = function(fs$close) {
2356
2356
  function close(fd, cb) {
2357
- return fs$close.call(fs6, fd, function(err) {
2357
+ return fs$close.call(fs7, fd, function(err) {
2358
2358
  if (!err) resetQueue();
2359
2359
  if (typeof cb === "function") cb.apply(this, arguments);
2360
2360
  });
2361
2361
  }
2362
2362
  Object.defineProperty(close, previousSymbol, { value: fs$close });
2363
2363
  return close;
2364
- }(fs6.close);
2365
- fs6.closeSync = function(fs$closeSync) {
2364
+ }(fs7.close);
2365
+ fs7.closeSync = function(fs$closeSync) {
2366
2366
  function closeSync(fd) {
2367
- fs$closeSync.apply(fs6, arguments);
2367
+ fs$closeSync.apply(fs7, arguments);
2368
2368
  resetQueue();
2369
2369
  }
2370
2370
  Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
2371
2371
  return closeSync;
2372
- }(fs6.closeSync);
2372
+ }(fs7.closeSync);
2373
2373
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
2374
- debug2(fs6[gracefulQueue]);
2375
- __require("assert").equal(fs6[gracefulQueue].length, 0);
2374
+ debug2(fs7[gracefulQueue]);
2375
+ __require("assert").equal(fs7[gracefulQueue].length, 0);
2376
2376
  });
2377
2377
  }
2378
2378
  var queue;
2379
- if (!global[gracefulQueue]) publishQueue(global, fs6[gracefulQueue]);
2380
- module2.exports = patch(clone(fs6));
2381
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs6.__patched) {
2382
- module2.exports = patch(fs6);
2383
- fs6.__patched = true;
2384
- }
2385
- function patch(fs7) {
2386
- polyfills(fs7);
2387
- fs7.gracefulify = patch;
2388
- fs7.createReadStream = createReadStream;
2389
- fs7.createWriteStream = createWriteStream;
2390
- var fs$readFile = fs7.readFile;
2391
- fs7.readFile = readFile4;
2379
+ if (!global[gracefulQueue]) publishQueue(global, fs7[gracefulQueue]);
2380
+ module2.exports = patch(clone(fs7));
2381
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs7.__patched) {
2382
+ module2.exports = patch(fs7);
2383
+ fs7.__patched = true;
2384
+ }
2385
+ function patch(fs8) {
2386
+ polyfills(fs8);
2387
+ fs8.gracefulify = patch;
2388
+ fs8.createReadStream = createReadStream;
2389
+ fs8.createWriteStream = createWriteStream;
2390
+ var fs$readFile = fs8.readFile;
2391
+ fs8.readFile = readFile4;
2392
2392
  function readFile4(path7, options, cb) {
2393
2393
  if (typeof options === "function") cb = options, options = null;
2394
2394
  return go$readFile(path7, options, cb);
@@ -2409,8 +2409,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2409
2409
  });
2410
2410
  }
2411
2411
  }
2412
- var fs$writeFile = fs7.writeFile;
2413
- fs7.writeFile = writeFile;
2412
+ var fs$writeFile = fs8.writeFile;
2413
+ fs8.writeFile = writeFile;
2414
2414
  function writeFile(path7, data, options, cb) {
2415
2415
  if (typeof options === "function") cb = options, options = null;
2416
2416
  return go$writeFile(path7, data, options, cb);
@@ -2432,8 +2432,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2432
2432
  });
2433
2433
  }
2434
2434
  }
2435
- var fs$appendFile = fs7.appendFile;
2436
- if (fs$appendFile) fs7.appendFile = appendFile;
2435
+ var fs$appendFile = fs8.appendFile;
2436
+ if (fs$appendFile) fs8.appendFile = appendFile;
2437
2437
  function appendFile(path7, data, options, cb) {
2438
2438
  if (typeof options === "function") cb = options, options = null;
2439
2439
  return go$appendFile(path7, data, options, cb);
@@ -2455,8 +2455,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2455
2455
  });
2456
2456
  }
2457
2457
  }
2458
- var fs$copyFile = fs7.copyFile;
2459
- if (fs$copyFile) fs7.copyFile = copyFile;
2458
+ var fs$copyFile = fs8.copyFile;
2459
+ if (fs$copyFile) fs8.copyFile = copyFile;
2460
2460
  function copyFile(src, dest, flags, cb) {
2461
2461
  if (typeof flags === "function") {
2462
2462
  cb = flags;
@@ -2481,8 +2481,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2481
2481
  });
2482
2482
  }
2483
2483
  }
2484
- var fs$readdir = fs7.readdir;
2485
- fs7.readdir = readdir;
2484
+ var fs$readdir = fs8.readdir;
2485
+ fs8.readdir = readdir;
2486
2486
  var noReaddirOptionVersions = /^v[0-5]\./;
2487
2487
  function readdir(path7, options, cb) {
2488
2488
  if (typeof options === "function") cb = options, options = null;
@@ -2513,21 +2513,21 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2513
2513
  }
2514
2514
  }
2515
2515
  if (process.version.substr(0, 4) === "v0.8") {
2516
- var legStreams = legacy(fs7);
2516
+ var legStreams = legacy(fs8);
2517
2517
  ReadStream = legStreams.ReadStream;
2518
2518
  WriteStream = legStreams.WriteStream;
2519
2519
  }
2520
- var fs$ReadStream = fs7.ReadStream;
2520
+ var fs$ReadStream = fs8.ReadStream;
2521
2521
  if (fs$ReadStream) {
2522
2522
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
2523
2523
  ReadStream.prototype.open = ReadStream$open;
2524
2524
  }
2525
- var fs$WriteStream = fs7.WriteStream;
2525
+ var fs$WriteStream = fs8.WriteStream;
2526
2526
  if (fs$WriteStream) {
2527
2527
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
2528
2528
  WriteStream.prototype.open = WriteStream$open;
2529
2529
  }
2530
- Object.defineProperty(fs7, "ReadStream", {
2530
+ Object.defineProperty(fs8, "ReadStream", {
2531
2531
  get: function() {
2532
2532
  return ReadStream;
2533
2533
  },
@@ -2537,7 +2537,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2537
2537
  enumerable: true,
2538
2538
  configurable: true
2539
2539
  });
2540
- Object.defineProperty(fs7, "WriteStream", {
2540
+ Object.defineProperty(fs8, "WriteStream", {
2541
2541
  get: function() {
2542
2542
  return WriteStream;
2543
2543
  },
@@ -2548,7 +2548,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2548
2548
  configurable: true
2549
2549
  });
2550
2550
  var FileReadStream = ReadStream;
2551
- Object.defineProperty(fs7, "FileReadStream", {
2551
+ Object.defineProperty(fs8, "FileReadStream", {
2552
2552
  get: function() {
2553
2553
  return FileReadStream;
2554
2554
  },
@@ -2559,7 +2559,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2559
2559
  configurable: true
2560
2560
  });
2561
2561
  var FileWriteStream = WriteStream;
2562
- Object.defineProperty(fs7, "FileWriteStream", {
2562
+ Object.defineProperty(fs8, "FileWriteStream", {
2563
2563
  get: function() {
2564
2564
  return FileWriteStream;
2565
2565
  },
@@ -2603,13 +2603,13 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2603
2603
  });
2604
2604
  }
2605
2605
  function createReadStream(path7, options) {
2606
- return new fs7.ReadStream(path7, options);
2606
+ return new fs8.ReadStream(path7, options);
2607
2607
  }
2608
2608
  function createWriteStream(path7, options) {
2609
- return new fs7.WriteStream(path7, options);
2609
+ return new fs8.WriteStream(path7, options);
2610
2610
  }
2611
- var fs$open = fs7.open;
2612
- fs7.open = open;
2611
+ var fs$open = fs8.open;
2612
+ fs8.open = open;
2613
2613
  function open(path7, flags, mode, cb) {
2614
2614
  if (typeof mode === "function") cb = mode, mode = null;
2615
2615
  return go$open(path7, flags, mode, cb);
@@ -2631,27 +2631,27 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2631
2631
  });
2632
2632
  }
2633
2633
  }
2634
- return fs7;
2634
+ return fs8;
2635
2635
  }
2636
2636
  function enqueue(elem) {
2637
2637
  debug2("ENQUEUE", elem[0].name, elem[1]);
2638
- fs6[gracefulQueue].push(elem);
2638
+ fs7[gracefulQueue].push(elem);
2639
2639
  retry2();
2640
2640
  }
2641
2641
  var retryTimer;
2642
2642
  function resetQueue() {
2643
2643
  var now = Date.now();
2644
- for (var i = 0; i < fs6[gracefulQueue].length; ++i) if (fs6[gracefulQueue][i].length > 2) {
2645
- fs6[gracefulQueue][i][3] = now;
2646
- fs6[gracefulQueue][i][4] = now;
2644
+ for (var i = 0; i < fs7[gracefulQueue].length; ++i) if (fs7[gracefulQueue][i].length > 2) {
2645
+ fs7[gracefulQueue][i][3] = now;
2646
+ fs7[gracefulQueue][i][4] = now;
2647
2647
  }
2648
2648
  retry2();
2649
2649
  }
2650
2650
  function retry2() {
2651
2651
  clearTimeout(retryTimer);
2652
2652
  retryTimer = void 0;
2653
- if (fs6[gracefulQueue].length === 0) return;
2654
- var elem = fs6[gracefulQueue].shift();
2653
+ if (fs7[gracefulQueue].length === 0) return;
2654
+ var elem = fs7[gracefulQueue].shift();
2655
2655
  var fn = elem[0];
2656
2656
  var args = elem[1];
2657
2657
  var err = elem[2];
@@ -2670,14 +2670,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2670
2670
  if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
2671
2671
  debug2("RETRY", fn.name, args);
2672
2672
  fn.apply(null, args.concat([startTime]));
2673
- } else fs6[gracefulQueue].push(elem);
2673
+ } else fs7[gracefulQueue].push(elem);
2674
2674
  }
2675
2675
  if (retryTimer === void 0) retryTimer = setTimeout(retry2, 0);
2676
2676
  }
2677
2677
  } });
2678
2678
  var require_fs = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/fs/index.js"(exports2) {
2679
2679
  var u = require_universalify().fromCallback;
2680
- var fs6 = require_graceful_fs();
2680
+ var fs7 = require_graceful_fs();
2681
2681
  var api = [
2682
2682
  "access",
2683
2683
  "appendFile",
@@ -2714,23 +2714,23 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2714
2714
  "utimes",
2715
2715
  "writeFile"
2716
2716
  ].filter((key) => {
2717
- return typeof fs6[key] === "function";
2717
+ return typeof fs7[key] === "function";
2718
2718
  });
2719
- Object.assign(exports2, fs6);
2719
+ Object.assign(exports2, fs7);
2720
2720
  api.forEach((method) => {
2721
- exports2[method] = u(fs6[method]);
2721
+ exports2[method] = u(fs7[method]);
2722
2722
  });
2723
- exports2.realpath.native = u(fs6.realpath.native);
2723
+ exports2.realpath.native = u(fs7.realpath.native);
2724
2724
  exports2.exists = function(filename, callback) {
2725
- if (typeof callback === "function") return fs6.exists(filename, callback);
2725
+ if (typeof callback === "function") return fs7.exists(filename, callback);
2726
2726
  return new Promise((resolve) => {
2727
- return fs6.exists(filename, resolve);
2727
+ return fs7.exists(filename, resolve);
2728
2728
  });
2729
2729
  };
2730
2730
  exports2.read = function(fd, buffer, offset, length, position, callback) {
2731
- if (typeof callback === "function") return fs6.read(fd, buffer, offset, length, position, callback);
2731
+ if (typeof callback === "function") return fs7.read(fd, buffer, offset, length, position, callback);
2732
2732
  return new Promise((resolve, reject) => {
2733
- fs6.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
2733
+ fs7.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
2734
2734
  if (err) return reject(err);
2735
2735
  resolve({
2736
2736
  bytesRead,
@@ -2740,9 +2740,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2740
2740
  });
2741
2741
  };
2742
2742
  exports2.write = function(fd, buffer, ...args) {
2743
- if (typeof args[args.length - 1] === "function") return fs6.write(fd, buffer, ...args);
2743
+ if (typeof args[args.length - 1] === "function") return fs7.write(fd, buffer, ...args);
2744
2744
  return new Promise((resolve, reject) => {
2745
- fs6.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
2745
+ fs7.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
2746
2746
  if (err) return reject(err);
2747
2747
  resolve({
2748
2748
  bytesWritten,
@@ -2751,10 +2751,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2751
2751
  });
2752
2752
  });
2753
2753
  };
2754
- if (typeof fs6.writev === "function") exports2.writev = function(fd, buffers, ...args) {
2755
- if (typeof args[args.length - 1] === "function") return fs6.writev(fd, buffers, ...args);
2754
+ if (typeof fs7.writev === "function") exports2.writev = function(fd, buffers, ...args) {
2755
+ if (typeof args[args.length - 1] === "function") return fs7.writev(fd, buffers, ...args);
2756
2756
  return new Promise((resolve, reject) => {
2757
- fs6.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
2757
+ fs7.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
2758
2758
  if (err) return reject(err);
2759
2759
  resolve({
2760
2760
  bytesWritten,
@@ -2777,7 +2777,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2777
2777
  };
2778
2778
  } });
2779
2779
  var require_make_dir = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
2780
- var fs6 = require_fs();
2780
+ var fs7 = require_fs();
2781
2781
  var { checkPath } = require_utils();
2782
2782
  var getMode = (options) => {
2783
2783
  const defaults = { mode: 511 };
@@ -2789,14 +2789,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2789
2789
  };
2790
2790
  module2.exports.makeDir = async (dir, options) => {
2791
2791
  checkPath(dir);
2792
- return fs6.mkdir(dir, {
2792
+ return fs7.mkdir(dir, {
2793
2793
  mode: getMode(options),
2794
2794
  recursive: true
2795
2795
  });
2796
2796
  };
2797
2797
  module2.exports.makeDirSync = (dir, options) => {
2798
2798
  checkPath(dir);
2799
- return fs6.mkdirSync(dir, {
2799
+ return fs7.mkdirSync(dir, {
2800
2800
  mode: getMode(options),
2801
2801
  recursive: true
2802
2802
  });
@@ -2816,21 +2816,21 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2816
2816
  };
2817
2817
  } });
2818
2818
  var require_utimes = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
2819
- var fs6 = require_graceful_fs();
2819
+ var fs7 = require_graceful_fs();
2820
2820
  function utimesMillis(path7, atime, mtime2, callback) {
2821
- fs6.open(path7, "r+", (err, fd) => {
2821
+ fs7.open(path7, "r+", (err, fd) => {
2822
2822
  if (err) return callback(err);
2823
- fs6.futimes(fd, atime, mtime2, (futimesErr) => {
2824
- fs6.close(fd, (closeErr) => {
2823
+ fs7.futimes(fd, atime, mtime2, (futimesErr) => {
2824
+ fs7.close(fd, (closeErr) => {
2825
2825
  if (callback) callback(futimesErr || closeErr);
2826
2826
  });
2827
2827
  });
2828
2828
  });
2829
2829
  }
2830
2830
  function utimesMillisSync(path7, atime, mtime2) {
2831
- const fd = fs6.openSync(path7, "r+");
2832
- fs6.futimesSync(fd, atime, mtime2);
2833
- return fs6.closeSync(fd);
2831
+ const fd = fs7.openSync(path7, "r+");
2832
+ fs7.futimesSync(fd, atime, mtime2);
2833
+ return fs7.closeSync(fd);
2834
2834
  }
2835
2835
  module2.exports = {
2836
2836
  utimesMillis,
@@ -2838,11 +2838,11 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2838
2838
  };
2839
2839
  } });
2840
2840
  var require_stat = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
2841
- var fs6 = require_fs();
2841
+ var fs7 = require_fs();
2842
2842
  var path7 = __require("path");
2843
2843
  var util = __require("util");
2844
2844
  function getStats(src, dest, opts) {
2845
- const statFunc = opts.dereference ? (file) => fs6.stat(file, { bigint: true }) : (file) => fs6.lstat(file, { bigint: true });
2845
+ const statFunc = opts.dereference ? (file) => fs7.stat(file, { bigint: true }) : (file) => fs7.lstat(file, { bigint: true });
2846
2846
  return Promise.all([statFunc(src), statFunc(dest).catch((err) => {
2847
2847
  if (err.code === "ENOENT") return null;
2848
2848
  throw err;
@@ -2853,7 +2853,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2853
2853
  }
2854
2854
  function getStatsSync(src, dest, opts) {
2855
2855
  let destStat;
2856
- const statFunc = opts.dereference ? (file) => fs6.statSync(file, { bigint: true }) : (file) => fs6.lstatSync(file, { bigint: true });
2856
+ const statFunc = opts.dereference ? (file) => fs7.statSync(file, { bigint: true }) : (file) => fs7.lstatSync(file, { bigint: true });
2857
2857
  const srcStat = statFunc(src);
2858
2858
  try {
2859
2859
  destStat = statFunc(dest);
@@ -2920,7 +2920,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2920
2920
  const srcParent = path7.resolve(path7.dirname(src));
2921
2921
  const destParent = path7.resolve(path7.dirname(dest));
2922
2922
  if (destParent === srcParent || destParent === path7.parse(destParent).root) return cb();
2923
- fs6.stat(destParent, { bigint: true }, (err, destStat) => {
2923
+ fs7.stat(destParent, { bigint: true }, (err, destStat) => {
2924
2924
  if (err) {
2925
2925
  if (err.code === "ENOENT") return cb();
2926
2926
  return cb(err);
@@ -2935,7 +2935,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2935
2935
  if (destParent === srcParent || destParent === path7.parse(destParent).root) return;
2936
2936
  let destStat;
2937
2937
  try {
2938
- destStat = fs6.statSync(destParent, { bigint: true });
2938
+ destStat = fs7.statSync(destParent, { bigint: true });
2939
2939
  } catch (err) {
2940
2940
  if (err.code === "ENOENT") return;
2941
2941
  throw err;
@@ -2964,7 +2964,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2964
2964
  };
2965
2965
  } });
2966
2966
  var require_copy_sync = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports2, module2) {
2967
- var fs6 = require_graceful_fs();
2967
+ var fs7 = require_graceful_fs();
2968
2968
  var path7 = __require("path");
2969
2969
  var mkdirsSync = require_mkdirs().mkdirsSync;
2970
2970
  var utimesMillisSync = require_utimes().utimesMillisSync;
@@ -2984,7 +2984,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2984
2984
  function handleFilterAndCopy(destStat, src, dest, opts) {
2985
2985
  if (opts.filter && !opts.filter(src, dest)) return;
2986
2986
  const destParent = path7.dirname(dest);
2987
- if (!fs6.existsSync(destParent)) mkdirsSync(destParent);
2987
+ if (!fs7.existsSync(destParent)) mkdirsSync(destParent);
2988
2988
  return getStats(destStat, src, dest, opts);
2989
2989
  }
2990
2990
  function startCopy(destStat, src, dest, opts) {
@@ -2992,7 +2992,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
2992
2992
  return getStats(destStat, src, dest, opts);
2993
2993
  }
2994
2994
  function getStats(destStat, src, dest, opts) {
2995
- const srcStat = (opts.dereference ? fs6.statSync : fs6.lstatSync)(src);
2995
+ const srcStat = (opts.dereference ? fs7.statSync : fs7.lstatSync)(src);
2996
2996
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
2997
2997
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
2998
2998
  else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts);
@@ -3006,12 +3006,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3006
3006
  }
3007
3007
  function mayCopyFile(srcStat, src, dest, opts) {
3008
3008
  if (opts.overwrite) {
3009
- fs6.unlinkSync(dest);
3009
+ fs7.unlinkSync(dest);
3010
3010
  return copyFile(srcStat, src, dest, opts);
3011
3011
  } else if (opts.errorOnExist) throw new Error(`'${dest}' already exists`);
3012
3012
  }
3013
3013
  function copyFile(srcStat, src, dest, opts) {
3014
- fs6.copyFileSync(src, dest);
3014
+ fs7.copyFileSync(src, dest);
3015
3015
  if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
3016
3016
  return setDestMode(dest, srcStat.mode);
3017
3017
  }
@@ -3026,10 +3026,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3026
3026
  return setDestMode(dest, srcMode | 128);
3027
3027
  }
3028
3028
  function setDestMode(dest, srcMode) {
3029
- return fs6.chmodSync(dest, srcMode);
3029
+ return fs7.chmodSync(dest, srcMode);
3030
3030
  }
3031
3031
  function setDestTimestamps(src, dest) {
3032
- const updatedSrcStat = fs6.statSync(src);
3032
+ const updatedSrcStat = fs7.statSync(src);
3033
3033
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
3034
3034
  }
3035
3035
  function onDir(srcStat, destStat, src, dest, opts) {
@@ -3037,12 +3037,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3037
3037
  return copyDir(src, dest, opts);
3038
3038
  }
3039
3039
  function mkDirAndCopy(srcMode, src, dest, opts) {
3040
- fs6.mkdirSync(dest);
3040
+ fs7.mkdirSync(dest);
3041
3041
  copyDir(src, dest, opts);
3042
3042
  return setDestMode(dest, srcMode);
3043
3043
  }
3044
3044
  function copyDir(src, dest, opts) {
3045
- fs6.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
3045
+ fs7.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
3046
3046
  }
3047
3047
  function copyDirItem(item, src, dest, opts) {
3048
3048
  const srcItem = path7.join(src, item);
@@ -3051,26 +3051,26 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3051
3051
  return startCopy(destStat, srcItem, destItem, opts);
3052
3052
  }
3053
3053
  function onLink(destStat, src, dest, opts) {
3054
- let resolvedSrc = fs6.readlinkSync(src);
3054
+ let resolvedSrc = fs7.readlinkSync(src);
3055
3055
  if (opts.dereference) resolvedSrc = path7.resolve(process.cwd(), resolvedSrc);
3056
- if (!destStat) return fs6.symlinkSync(resolvedSrc, dest);
3056
+ if (!destStat) return fs7.symlinkSync(resolvedSrc, dest);
3057
3057
  else {
3058
3058
  let resolvedDest;
3059
3059
  try {
3060
- resolvedDest = fs6.readlinkSync(dest);
3060
+ resolvedDest = fs7.readlinkSync(dest);
3061
3061
  } catch (err) {
3062
- if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs6.symlinkSync(resolvedSrc, dest);
3062
+ if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs7.symlinkSync(resolvedSrc, dest);
3063
3063
  throw err;
3064
3064
  }
3065
3065
  if (opts.dereference) resolvedDest = path7.resolve(process.cwd(), resolvedDest);
3066
3066
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
3067
- if (fs6.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
3067
+ if (fs7.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
3068
3068
  return copyLink(resolvedSrc, dest);
3069
3069
  }
3070
3070
  }
3071
3071
  function copyLink(resolvedSrc, dest) {
3072
- fs6.unlinkSync(dest);
3073
- return fs6.symlinkSync(resolvedSrc, dest);
3072
+ fs7.unlinkSync(dest);
3073
+ return fs7.symlinkSync(resolvedSrc, dest);
3074
3074
  }
3075
3075
  module2.exports = copySync;
3076
3076
  } });
@@ -3079,17 +3079,17 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3079
3079
  } });
3080
3080
  var require_path_exists = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
3081
3081
  var u = require_universalify().fromPromise;
3082
- var fs6 = require_fs();
3082
+ var fs7 = require_fs();
3083
3083
  function pathExists(path7) {
3084
- return fs6.access(path7).then(() => true).catch(() => false);
3084
+ return fs7.access(path7).then(() => true).catch(() => false);
3085
3085
  }
3086
3086
  module2.exports = {
3087
3087
  pathExists: u(pathExists),
3088
- pathExistsSync: fs6.existsSync
3088
+ pathExistsSync: fs7.existsSync
3089
3089
  };
3090
3090
  } });
3091
3091
  var require_copy = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
3092
- var fs6 = require_graceful_fs();
3092
+ var fs7 = require_graceful_fs();
3093
3093
  var path7 = __require("path");
3094
3094
  var mkdirs = require_mkdirs().mkdirs;
3095
3095
  var pathExists = require_path_exists().pathExists;
@@ -3139,7 +3139,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3139
3139
  return getStats(destStat, src, dest, opts, cb);
3140
3140
  }
3141
3141
  function getStats(destStat, src, dest, opts, cb) {
3142
- (opts.dereference ? fs6.stat : fs6.lstat)(src, (err, srcStat) => {
3142
+ (opts.dereference ? fs7.stat : fs7.lstat)(src, (err, srcStat) => {
3143
3143
  if (err) return cb(err);
3144
3144
  if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb);
3145
3145
  else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb);
@@ -3154,7 +3154,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3154
3154
  return mayCopyFile(srcStat, src, dest, opts, cb);
3155
3155
  }
3156
3156
  function mayCopyFile(srcStat, src, dest, opts, cb) {
3157
- if (opts.overwrite) fs6.unlink(dest, (err) => {
3157
+ if (opts.overwrite) fs7.unlink(dest, (err) => {
3158
3158
  if (err) return cb(err);
3159
3159
  return copyFile(srcStat, src, dest, opts, cb);
3160
3160
  });
@@ -3162,7 +3162,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3162
3162
  else return cb();
3163
3163
  }
3164
3164
  function copyFile(srcStat, src, dest, opts, cb) {
3165
- fs6.copyFile(src, dest, (err) => {
3165
+ fs7.copyFile(src, dest, (err) => {
3166
3166
  if (err) return cb(err);
3167
3167
  if (opts.preserveTimestamps) return handleTimestampsAndMode(srcStat.mode, src, dest, cb);
3168
3168
  return setDestMode(dest, srcStat.mode, cb);
@@ -3188,10 +3188,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3188
3188
  });
3189
3189
  }
3190
3190
  function setDestMode(dest, srcMode, cb) {
3191
- return fs6.chmod(dest, srcMode, cb);
3191
+ return fs7.chmod(dest, srcMode, cb);
3192
3192
  }
3193
3193
  function setDestTimestamps(src, dest, cb) {
3194
- fs6.stat(src, (err, updatedSrcStat) => {
3194
+ fs7.stat(src, (err, updatedSrcStat) => {
3195
3195
  if (err) return cb(err);
3196
3196
  return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb);
3197
3197
  });
@@ -3201,7 +3201,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3201
3201
  return copyDir(src, dest, opts, cb);
3202
3202
  }
3203
3203
  function mkDirAndCopy(srcMode, src, dest, opts, cb) {
3204
- fs6.mkdir(dest, (err) => {
3204
+ fs7.mkdir(dest, (err) => {
3205
3205
  if (err) return cb(err);
3206
3206
  copyDir(src, dest, opts, (err2) => {
3207
3207
  if (err2) return cb(err2);
@@ -3210,7 +3210,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3210
3210
  });
3211
3211
  }
3212
3212
  function copyDir(src, dest, opts, cb) {
3213
- fs6.readdir(src, (err, items) => {
3213
+ fs7.readdir(src, (err, items) => {
3214
3214
  if (err) return cb(err);
3215
3215
  return copyDirItems(items, src, dest, opts, cb);
3216
3216
  });
@@ -3233,13 +3233,13 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3233
3233
  });
3234
3234
  }
3235
3235
  function onLink(destStat, src, dest, opts, cb) {
3236
- fs6.readlink(src, (err, resolvedSrc) => {
3236
+ fs7.readlink(src, (err, resolvedSrc) => {
3237
3237
  if (err) return cb(err);
3238
3238
  if (opts.dereference) resolvedSrc = path7.resolve(process.cwd(), resolvedSrc);
3239
- if (!destStat) return fs6.symlink(resolvedSrc, dest, cb);
3240
- else fs6.readlink(dest, (err2, resolvedDest) => {
3239
+ if (!destStat) return fs7.symlink(resolvedSrc, dest, cb);
3240
+ else fs7.readlink(dest, (err2, resolvedDest) => {
3241
3241
  if (err2) {
3242
- if (err2.code === "EINVAL" || err2.code === "UNKNOWN") return fs6.symlink(resolvedSrc, dest, cb);
3242
+ if (err2.code === "EINVAL" || err2.code === "UNKNOWN") return fs7.symlink(resolvedSrc, dest, cb);
3243
3243
  return cb(err2);
3244
3244
  }
3245
3245
  if (opts.dereference) resolvedDest = path7.resolve(process.cwd(), resolvedDest);
@@ -3250,9 +3250,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3250
3250
  });
3251
3251
  }
3252
3252
  function copyLink(resolvedSrc, dest, cb) {
3253
- fs6.unlink(dest, (err) => {
3253
+ fs7.unlink(dest, (err) => {
3254
3254
  if (err) return cb(err);
3255
- return fs6.symlink(resolvedSrc, dest, cb);
3255
+ return fs7.symlink(resolvedSrc, dest, cb);
3256
3256
  });
3257
3257
  }
3258
3258
  module2.exports = copy;
@@ -3262,7 +3262,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3262
3262
  module2.exports = { copy: u(require_copy()) };
3263
3263
  } });
3264
3264
  var require_rimraf = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/remove/rimraf.js"(exports2, module2) {
3265
- var fs6 = require_graceful_fs();
3265
+ var fs7 = require_graceful_fs();
3266
3266
  var path7 = __require("path");
3267
3267
  var assert7 = __require("assert");
3268
3268
  var isWindows = process.platform === "win32";
@@ -3275,9 +3275,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3275
3275
  "rmdir",
3276
3276
  "readdir"
3277
3277
  ].forEach((m) => {
3278
- options[m] = options[m] || fs6[m];
3278
+ options[m] = options[m] || fs7[m];
3279
3279
  m = m + "Sync";
3280
- options[m] = options[m] || fs6[m];
3280
+ options[m] = options[m] || fs7[m];
3281
3281
  });
3282
3282
  options.maxBusyTries = options.maxBusyTries || 3;
3283
3283
  }
@@ -3435,18 +3435,18 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3435
3435
  rimraf.sync = rimrafSync;
3436
3436
  } });
3437
3437
  var require_remove = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
3438
- var fs6 = require_graceful_fs();
3438
+ var fs7 = require_graceful_fs();
3439
3439
  var u = require_universalify().fromCallback;
3440
3440
  var rimraf = require_rimraf();
3441
3441
  function remove2(path7, callback) {
3442
- if (fs6.rm) return fs6.rm(path7, {
3442
+ if (fs7.rm) return fs7.rm(path7, {
3443
3443
  recursive: true,
3444
3444
  force: true
3445
3445
  }, callback);
3446
3446
  rimraf(path7, callback);
3447
3447
  }
3448
3448
  function removeSync(path7) {
3449
- if (fs6.rmSync) return fs6.rmSync(path7, {
3449
+ if (fs7.rmSync) return fs7.rmSync(path7, {
3450
3450
  recursive: true,
3451
3451
  force: true
3452
3452
  });
@@ -3459,14 +3459,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3459
3459
  } });
3460
3460
  var require_empty = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
3461
3461
  var u = require_universalify().fromPromise;
3462
- var fs6 = require_fs();
3462
+ var fs7 = require_fs();
3463
3463
  var path7 = __require("path");
3464
3464
  var mkdir = require_mkdirs();
3465
3465
  var remove2 = require_remove();
3466
3466
  var emptyDir = u(async function emptyDir2(dir) {
3467
3467
  let items;
3468
3468
  try {
3469
- items = await fs6.readdir(dir);
3469
+ items = await fs7.readdir(dir);
3470
3470
  } catch {
3471
3471
  return mkdir.mkdirs(dir);
3472
3472
  }
@@ -3475,7 +3475,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3475
3475
  function emptyDirSync(dir) {
3476
3476
  let items;
3477
3477
  try {
3478
- items = fs6.readdirSync(dir);
3478
+ items = fs7.readdirSync(dir);
3479
3479
  } catch {
3480
3480
  return mkdir.mkdirsSync(dir);
3481
3481
  }
@@ -3494,19 +3494,19 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3494
3494
  var require_file = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
3495
3495
  var u = require_universalify().fromCallback;
3496
3496
  var path7 = __require("path");
3497
- var fs6 = require_graceful_fs();
3497
+ var fs7 = require_graceful_fs();
3498
3498
  var mkdir = require_mkdirs();
3499
3499
  function createFile(file, callback) {
3500
3500
  function makeFile() {
3501
- fs6.writeFile(file, "", (err) => {
3501
+ fs7.writeFile(file, "", (err) => {
3502
3502
  if (err) return callback(err);
3503
3503
  callback();
3504
3504
  });
3505
3505
  }
3506
- fs6.stat(file, (err, stats) => {
3506
+ fs7.stat(file, (err, stats) => {
3507
3507
  if (!err && stats.isFile()) return callback();
3508
3508
  const dir = path7.dirname(file);
3509
- fs6.stat(dir, (err2, stats2) => {
3509
+ fs7.stat(dir, (err2, stats2) => {
3510
3510
  if (err2) {
3511
3511
  if (err2.code === "ENOENT") return mkdir.mkdirs(dir, (err3) => {
3512
3512
  if (err3) return callback(err3);
@@ -3515,7 +3515,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3515
3515
  return callback(err2);
3516
3516
  }
3517
3517
  if (stats2.isDirectory()) makeFile();
3518
- else fs6.readdir(dir, (err3) => {
3518
+ else fs7.readdir(dir, (err3) => {
3519
3519
  if (err3) return callback(err3);
3520
3520
  });
3521
3521
  });
@@ -3524,17 +3524,17 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3524
3524
  function createFileSync(file) {
3525
3525
  let stats;
3526
3526
  try {
3527
- stats = fs6.statSync(file);
3527
+ stats = fs7.statSync(file);
3528
3528
  } catch {}
3529
3529
  if (stats && stats.isFile()) return;
3530
3530
  const dir = path7.dirname(file);
3531
3531
  try {
3532
- if (!fs6.statSync(dir).isDirectory()) fs6.readdirSync(dir);
3532
+ if (!fs7.statSync(dir).isDirectory()) fs7.readdirSync(dir);
3533
3533
  } catch (err) {
3534
3534
  if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir);
3535
3535
  else throw err;
3536
3536
  }
3537
- fs6.writeFileSync(file, "");
3537
+ fs7.writeFileSync(file, "");
3538
3538
  }
3539
3539
  module2.exports = {
3540
3540
  createFile: u(createFile),
@@ -3544,19 +3544,19 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3544
3544
  var require_link = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
3545
3545
  var u = require_universalify().fromCallback;
3546
3546
  var path7 = __require("path");
3547
- var fs6 = require_graceful_fs();
3547
+ var fs7 = require_graceful_fs();
3548
3548
  var mkdir = require_mkdirs();
3549
3549
  var pathExists = require_path_exists().pathExists;
3550
3550
  var { areIdentical } = require_stat();
3551
3551
  function createLink(srcpath, dstpath, callback) {
3552
3552
  function makeLink(srcpath2, dstpath2) {
3553
- fs6.link(srcpath2, dstpath2, (err) => {
3553
+ fs7.link(srcpath2, dstpath2, (err) => {
3554
3554
  if (err) return callback(err);
3555
3555
  callback(null);
3556
3556
  });
3557
3557
  }
3558
- fs6.lstat(dstpath, (_, dstStat) => {
3559
- fs6.lstat(srcpath, (err, srcStat) => {
3558
+ fs7.lstat(dstpath, (_, dstStat) => {
3559
+ fs7.lstat(srcpath, (err, srcStat) => {
3560
3560
  if (err) {
3561
3561
  err.message = err.message.replace("lstat", "ensureLink");
3562
3562
  return callback(err);
@@ -3577,19 +3577,19 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3577
3577
  function createLinkSync(srcpath, dstpath) {
3578
3578
  let dstStat;
3579
3579
  try {
3580
- dstStat = fs6.lstatSync(dstpath);
3580
+ dstStat = fs7.lstatSync(dstpath);
3581
3581
  } catch {}
3582
3582
  try {
3583
- const srcStat = fs6.lstatSync(srcpath);
3583
+ const srcStat = fs7.lstatSync(srcpath);
3584
3584
  if (dstStat && areIdentical(srcStat, dstStat)) return;
3585
3585
  } catch (err) {
3586
3586
  err.message = err.message.replace("lstat", "ensureLink");
3587
3587
  throw err;
3588
3588
  }
3589
3589
  const dir = path7.dirname(dstpath);
3590
- if (fs6.existsSync(dir)) return fs6.linkSync(srcpath, dstpath);
3590
+ if (fs7.existsSync(dir)) return fs7.linkSync(srcpath, dstpath);
3591
3591
  mkdir.mkdirsSync(dir);
3592
- return fs6.linkSync(srcpath, dstpath);
3592
+ return fs7.linkSync(srcpath, dstpath);
3593
3593
  }
3594
3594
  module2.exports = {
3595
3595
  createLink: u(createLink),
@@ -3598,10 +3598,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3598
3598
  } });
3599
3599
  var require_symlink_paths = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
3600
3600
  var path7 = __require("path");
3601
- var fs6 = require_graceful_fs();
3601
+ var fs7 = require_graceful_fs();
3602
3602
  var pathExists = require_path_exists().pathExists;
3603
3603
  function symlinkPaths(srcpath, dstpath, callback) {
3604
- if (path7.isAbsolute(srcpath)) return fs6.lstat(srcpath, (err) => {
3604
+ if (path7.isAbsolute(srcpath)) return fs7.lstat(srcpath, (err) => {
3605
3605
  if (err) {
3606
3606
  err.message = err.message.replace("lstat", "ensureSymlink");
3607
3607
  return callback(err);
@@ -3620,7 +3620,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3620
3620
  toCwd: relativeToDst,
3621
3621
  toDst: srcpath
3622
3622
  });
3623
- else return fs6.lstat(srcpath, (err2) => {
3623
+ else return fs7.lstat(srcpath, (err2) => {
3624
3624
  if (err2) {
3625
3625
  err2.message = err2.message.replace("lstat", "ensureSymlink");
3626
3626
  return callback(err2);
@@ -3636,7 +3636,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3636
3636
  function symlinkPathsSync(srcpath, dstpath) {
3637
3637
  let exists;
3638
3638
  if (path7.isAbsolute(srcpath)) {
3639
- exists = fs6.existsSync(srcpath);
3639
+ exists = fs7.existsSync(srcpath);
3640
3640
  if (!exists) throw new Error("absolute srcpath does not exist");
3641
3641
  return {
3642
3642
  toCwd: srcpath,
@@ -3645,13 +3645,13 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3645
3645
  } else {
3646
3646
  const dstdir = path7.dirname(dstpath);
3647
3647
  const relativeToDst = path7.join(dstdir, srcpath);
3648
- exists = fs6.existsSync(relativeToDst);
3648
+ exists = fs7.existsSync(relativeToDst);
3649
3649
  if (exists) return {
3650
3650
  toCwd: relativeToDst,
3651
3651
  toDst: srcpath
3652
3652
  };
3653
3653
  else {
3654
- exists = fs6.existsSync(srcpath);
3654
+ exists = fs7.existsSync(srcpath);
3655
3655
  if (!exists) throw new Error("relative srcpath does not exist");
3656
3656
  return {
3657
3657
  toCwd: srcpath,
@@ -3666,12 +3666,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3666
3666
  };
3667
3667
  } });
3668
3668
  var require_symlink_type = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
3669
- var fs6 = require_graceful_fs();
3669
+ var fs7 = require_graceful_fs();
3670
3670
  function symlinkType(srcpath, type, callback) {
3671
3671
  callback = typeof type === "function" ? type : callback;
3672
3672
  type = typeof type === "function" ? false : type;
3673
3673
  if (type) return callback(null, type);
3674
- fs6.lstat(srcpath, (err, stats) => {
3674
+ fs7.lstat(srcpath, (err, stats) => {
3675
3675
  if (err) return callback(null, "file");
3676
3676
  type = stats && stats.isDirectory() ? "dir" : "file";
3677
3677
  callback(null, type);
@@ -3681,7 +3681,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3681
3681
  let stats;
3682
3682
  if (type) return type;
3683
3683
  try {
3684
- stats = fs6.lstatSync(srcpath);
3684
+ stats = fs7.lstatSync(srcpath);
3685
3685
  } catch {
3686
3686
  return "file";
3687
3687
  }
@@ -3695,7 +3695,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3695
3695
  var require_symlink = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
3696
3696
  var u = require_universalify().fromCallback;
3697
3697
  var path7 = __require("path");
3698
- var fs6 = require_fs();
3698
+ var fs7 = require_fs();
3699
3699
  var _mkdirs = require_mkdirs();
3700
3700
  var mkdirs = _mkdirs.mkdirs;
3701
3701
  var mkdirsSync = _mkdirs.mkdirsSync;
@@ -3710,8 +3710,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3710
3710
  function createSymlink(srcpath, dstpath, type, callback) {
3711
3711
  callback = typeof type === "function" ? type : callback;
3712
3712
  type = typeof type === "function" ? false : type;
3713
- fs6.lstat(dstpath, (err, stats) => {
3714
- if (!err && stats.isSymbolicLink()) Promise.all([fs6.stat(srcpath), fs6.stat(dstpath)]).then(([srcStat, dstStat]) => {
3713
+ fs7.lstat(dstpath, (err, stats) => {
3714
+ if (!err && stats.isSymbolicLink()) Promise.all([fs7.stat(srcpath), fs7.stat(dstpath)]).then(([srcStat, dstStat]) => {
3715
3715
  if (areIdentical(srcStat, dstStat)) return callback(null);
3716
3716
  _createSymlink(srcpath, dstpath, type, callback);
3717
3717
  });
@@ -3727,10 +3727,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3727
3727
  const dir = path7.dirname(dstpath);
3728
3728
  pathExists(dir, (err3, dirExists) => {
3729
3729
  if (err3) return callback(err3);
3730
- if (dirExists) return fs6.symlink(srcpath, dstpath, type2, callback);
3730
+ if (dirExists) return fs7.symlink(srcpath, dstpath, type2, callback);
3731
3731
  mkdirs(dir, (err4) => {
3732
3732
  if (err4) return callback(err4);
3733
- fs6.symlink(srcpath, dstpath, type2, callback);
3733
+ fs7.symlink(srcpath, dstpath, type2, callback);
3734
3734
  });
3735
3735
  });
3736
3736
  });
@@ -3739,18 +3739,18 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3739
3739
  function createSymlinkSync(srcpath, dstpath, type) {
3740
3740
  let stats;
3741
3741
  try {
3742
- stats = fs6.lstatSync(dstpath);
3742
+ stats = fs7.lstatSync(dstpath);
3743
3743
  } catch {}
3744
3744
  if (stats && stats.isSymbolicLink()) {
3745
- if (areIdentical(fs6.statSync(srcpath), fs6.statSync(dstpath))) return;
3745
+ if (areIdentical(fs7.statSync(srcpath), fs7.statSync(dstpath))) return;
3746
3746
  }
3747
3747
  const relative = symlinkPathsSync(srcpath, dstpath);
3748
3748
  srcpath = relative.toDst;
3749
3749
  type = symlinkTypeSync(relative.toCwd, type);
3750
3750
  const dir = path7.dirname(dstpath);
3751
- if (fs6.existsSync(dir)) return fs6.symlinkSync(srcpath, dstpath, type);
3751
+ if (fs7.existsSync(dir)) return fs7.symlinkSync(srcpath, dstpath, type);
3752
3752
  mkdirsSync(dir);
3753
- return fs6.symlinkSync(srcpath, dstpath, type);
3753
+ return fs7.symlinkSync(srcpath, dstpath, type);
3754
3754
  }
3755
3755
  module2.exports = {
3756
3756
  createSymlink: u(createSymlink),
@@ -3801,9 +3801,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3801
3801
  var { stringify, stripBom } = require_utils2();
3802
3802
  async function _readFile(file, options = {}) {
3803
3803
  if (typeof options === "string") options = { encoding: options };
3804
- const fs6 = options.fs || _fs;
3804
+ const fs7 = options.fs || _fs;
3805
3805
  const shouldThrow = "throws" in options ? options.throws : true;
3806
- let data = await universalify.fromCallback(fs6.readFile)(file, options);
3806
+ let data = await universalify.fromCallback(fs7.readFile)(file, options);
3807
3807
  data = stripBom(data);
3808
3808
  let obj;
3809
3809
  try {
@@ -3819,10 +3819,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3819
3819
  var readFile4 = universalify.fromPromise(_readFile);
3820
3820
  function readFileSync(file, options = {}) {
3821
3821
  if (typeof options === "string") options = { encoding: options };
3822
- const fs6 = options.fs || _fs;
3822
+ const fs7 = options.fs || _fs;
3823
3823
  const shouldThrow = "throws" in options ? options.throws : true;
3824
3824
  try {
3825
- let content = fs6.readFileSync(file, options);
3825
+ let content = fs7.readFileSync(file, options);
3826
3826
  content = stripBom(content);
3827
3827
  return JSON.parse(content, options.reviver);
3828
3828
  } catch (err) {
@@ -3833,15 +3833,15 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3833
3833
  }
3834
3834
  }
3835
3835
  async function _writeFile(file, obj, options = {}) {
3836
- const fs6 = options.fs || _fs;
3836
+ const fs7 = options.fs || _fs;
3837
3837
  const str = stringify(obj, options);
3838
- await universalify.fromCallback(fs6.writeFile)(file, str, options);
3838
+ await universalify.fromCallback(fs7.writeFile)(file, str, options);
3839
3839
  }
3840
3840
  var writeFile = universalify.fromPromise(_writeFile);
3841
3841
  function writeFileSync(file, obj, options = {}) {
3842
- const fs6 = options.fs || _fs;
3842
+ const fs7 = options.fs || _fs;
3843
3843
  const str = stringify(obj, options);
3844
- return fs6.writeFileSync(file, str, options);
3844
+ return fs7.writeFileSync(file, str, options);
3845
3845
  }
3846
3846
  module2.exports = {
3847
3847
  readFile: readFile4,
@@ -3861,7 +3861,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3861
3861
  } });
3862
3862
  var require_output = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/output/index.js"(exports2, module2) {
3863
3863
  var u = require_universalify().fromCallback;
3864
- var fs6 = require_graceful_fs();
3864
+ var fs7 = require_graceful_fs();
3865
3865
  var path7 = __require("path");
3866
3866
  var mkdir = require_mkdirs();
3867
3867
  var pathExists = require_path_exists().pathExists;
@@ -3873,18 +3873,18 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3873
3873
  const dir = path7.dirname(file);
3874
3874
  pathExists(dir, (err, itDoes) => {
3875
3875
  if (err) return callback(err);
3876
- if (itDoes) return fs6.writeFile(file, data, encoding, callback);
3876
+ if (itDoes) return fs7.writeFile(file, data, encoding, callback);
3877
3877
  mkdir.mkdirs(dir, (err2) => {
3878
3878
  if (err2) return callback(err2);
3879
- fs6.writeFile(file, data, encoding, callback);
3879
+ fs7.writeFile(file, data, encoding, callback);
3880
3880
  });
3881
3881
  });
3882
3882
  }
3883
3883
  function outputFileSync(file, ...args) {
3884
3884
  const dir = path7.dirname(file);
3885
- if (fs6.existsSync(dir)) return fs6.writeFileSync(file, ...args);
3885
+ if (fs7.existsSync(dir)) return fs7.writeFileSync(file, ...args);
3886
3886
  mkdir.mkdirsSync(dir);
3887
- fs6.writeFileSync(file, ...args);
3887
+ fs7.writeFileSync(file, ...args);
3888
3888
  }
3889
3889
  module2.exports = {
3890
3890
  outputFile: u(outputFile),
@@ -3921,7 +3921,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3921
3921
  module2.exports = jsonFile;
3922
3922
  } });
3923
3923
  var require_move_sync = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/move-sync/move-sync.js"(exports2, module2) {
3924
- var fs6 = require_graceful_fs();
3924
+ var fs7 = require_graceful_fs();
3925
3925
  var path7 = __require("path");
3926
3926
  var copySync = require_copy_sync2().copySync;
3927
3927
  var removeSync = require_remove().removeSync;
@@ -3945,12 +3945,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3945
3945
  removeSync(dest);
3946
3946
  return rename2(src, dest, overwrite);
3947
3947
  }
3948
- if (fs6.existsSync(dest)) throw new Error("dest already exists.");
3948
+ if (fs7.existsSync(dest)) throw new Error("dest already exists.");
3949
3949
  return rename2(src, dest, overwrite);
3950
3950
  }
3951
3951
  function rename2(src, dest, overwrite) {
3952
3952
  try {
3953
- fs6.renameSync(src, dest);
3953
+ fs7.renameSync(src, dest);
3954
3954
  } catch (err) {
3955
3955
  if (err.code !== "EXDEV") throw err;
3956
3956
  return moveAcrossDevice(src, dest, overwrite);
@@ -3969,7 +3969,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
3969
3969
  module2.exports = { moveSync: require_move_sync() };
3970
3970
  } });
3971
3971
  var require_move = __commonJS({ "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
3972
- var fs6 = require_graceful_fs();
3972
+ var fs7 = require_graceful_fs();
3973
3973
  var path7 = __require("path");
3974
3974
  var copy = require_copy2().copy;
3975
3975
  var remove2 = require_remove().remove;
@@ -4012,7 +4012,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
4012
4012
  });
4013
4013
  }
4014
4014
  function rename2(src, dest, overwrite, cb) {
4015
- fs6.rename(src, dest, (err) => {
4015
+ fs7.rename(src, dest, (err) => {
4016
4016
  if (!err) return cb();
4017
4017
  if (err.code !== "EXDEV") return cb(err);
4018
4018
  return moveAcrossDevice(src, dest, overwrite, cb);
@@ -42863,7 +42863,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
42863
42863
  module2.exports = crc32;
42864
42864
  } });
42865
42865
  var require_yazl = __commonJS({ "../../node_modules/.pnpm/yazl@2.5.1/node_modules/yazl/index.js"(exports2) {
42866
- var fs6 = __require("fs");
42866
+ var fs7 = __require("fs");
42867
42867
  var Transform = __require("stream").Transform;
42868
42868
  var PassThrough = __require("stream").PassThrough;
42869
42869
  var zlib = __require("zlib");
@@ -42887,14 +42887,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
42887
42887
  if (options == null) options = {};
42888
42888
  var entry = new Entry(metadataPath, false, options);
42889
42889
  self2.entries.push(entry);
42890
- fs6.stat(realPath, function(err, stats) {
42890
+ fs7.stat(realPath, function(err, stats) {
42891
42891
  if (err) return self2.emit("error", err);
42892
42892
  if (!stats.isFile()) return self2.emit("error", /* @__PURE__ */ new Error("not a file: " + realPath));
42893
42893
  entry.uncompressedSize = stats.size;
42894
42894
  if (options.mtime == null) entry.setLastModDate(stats.mtime);
42895
42895
  if (options.mode == null) entry.setFileAttributesMode(stats.mode);
42896
42896
  entry.setFileDataPumpFunction(function() {
42897
- var readStream = fs6.createReadStream(realPath);
42897
+ var readStream = fs7.createReadStream(realPath);
42898
42898
  entry.state = Entry.FILE_DATA_IN_PROGRESS;
42899
42899
  readStream.on("error", function(err2) {
42900
42900
  self2.emit("error", err2);
@@ -44229,7 +44229,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44229
44229
  var require_old = __commonJS({ "../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js"(exports2) {
44230
44230
  var pathModule = __require("path");
44231
44231
  var isWindows = process.platform === "win32";
44232
- var fs6 = __require("fs");
44232
+ var fs7 = __require("fs");
44233
44233
  var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
44234
44234
  function rethrow() {
44235
44235
  var callback;
@@ -44282,7 +44282,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44282
44282
  base = m[0];
44283
44283
  previous = "";
44284
44284
  if (isWindows && !knownHard[base]) {
44285
- fs6.lstatSync(base);
44285
+ fs7.lstatSync(base);
44286
44286
  knownHard[base] = true;
44287
44287
  }
44288
44288
  }
@@ -44297,7 +44297,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44297
44297
  var resolvedLink;
44298
44298
  if (cache && Object.prototype.hasOwnProperty.call(cache, base)) resolvedLink = cache[base];
44299
44299
  else {
44300
- var stat = fs6.lstatSync(base);
44300
+ var stat = fs7.lstatSync(base);
44301
44301
  if (!stat.isSymbolicLink()) {
44302
44302
  knownHard[base] = true;
44303
44303
  if (cache) cache[base] = base;
@@ -44309,8 +44309,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44309
44309
  if (seenLinks.hasOwnProperty(id)) linkTarget = seenLinks[id];
44310
44310
  }
44311
44311
  if (linkTarget === null) {
44312
- fs6.statSync(base);
44313
- linkTarget = fs6.readlinkSync(base);
44312
+ fs7.statSync(base);
44313
+ linkTarget = fs7.readlinkSync(base);
44314
44314
  }
44315
44315
  resolvedLink = pathModule.resolve(previous, linkTarget);
44316
44316
  if (cache) cache[base] = resolvedLink;
@@ -44341,7 +44341,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44341
44341
  current = m[0];
44342
44342
  base = m[0];
44343
44343
  previous = "";
44344
- if (isWindows && !knownHard[base]) fs6.lstat(base, function(err) {
44344
+ if (isWindows && !knownHard[base]) fs7.lstat(base, function(err) {
44345
44345
  if (err) return cb(err);
44346
44346
  knownHard[base] = true;
44347
44347
  LOOP();
@@ -44361,7 +44361,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44361
44361
  pos = nextPartRe.lastIndex;
44362
44362
  if (knownHard[base] || cache && cache[base] === base) return process.nextTick(LOOP);
44363
44363
  if (cache && Object.prototype.hasOwnProperty.call(cache, base)) return gotResolvedLink(cache[base]);
44364
- return fs6.lstat(base, gotStat);
44364
+ return fs7.lstat(base, gotStat);
44365
44365
  }
44366
44366
  function gotStat(err, stat) {
44367
44367
  if (err) return cb(err);
@@ -44374,9 +44374,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44374
44374
  var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
44375
44375
  if (seenLinks.hasOwnProperty(id)) return gotTarget(null, seenLinks[id], base);
44376
44376
  }
44377
- fs6.stat(base, function(err2) {
44377
+ fs7.stat(base, function(err2) {
44378
44378
  if (err2) return cb(err2);
44379
- fs6.readlink(base, function(err3, target) {
44379
+ fs7.readlink(base, function(err3, target) {
44380
44380
  if (!isWindows) seenLinks[id] = target;
44381
44381
  gotTarget(err3, target);
44382
44382
  });
@@ -44401,9 +44401,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44401
44401
  realpath.realpathSync = realpathSync;
44402
44402
  realpath.monkeypatch = monkeypatch;
44403
44403
  realpath.unmonkeypatch = unmonkeypatch;
44404
- var fs6 = __require("fs");
44405
- var origRealpath = fs6.realpath;
44406
- var origRealpathSync = fs6.realpathSync;
44404
+ var fs7 = __require("fs");
44405
+ var origRealpath = fs7.realpath;
44406
+ var origRealpathSync = fs7.realpathSync;
44407
44407
  var version = process.version;
44408
44408
  var ok = /^v[0-5]\./.test(version);
44409
44409
  var old = require_old();
@@ -44431,12 +44431,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
44431
44431
  }
44432
44432
  }
44433
44433
  function monkeypatch() {
44434
- fs6.realpath = realpath;
44435
- fs6.realpathSync = realpathSync;
44434
+ fs7.realpath = realpath;
44435
+ fs7.realpathSync = realpathSync;
44436
44436
  }
44437
44437
  function unmonkeypatch() {
44438
- fs6.realpath = origRealpath;
44439
- fs6.realpathSync = origRealpathSync;
44438
+ fs7.realpath = origRealpath;
44439
+ fs7.realpathSync = origRealpathSync;
44440
44440
  }
44441
44441
  } });
44442
44442
  var require_path = __commonJS({ "../../node_modules/.pnpm/minimatch@5.0.1/node_modules/minimatch/lib/path.js"(exports2, module2) {
@@ -45053,7 +45053,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
45053
45053
  function ownProp(obj, field) {
45054
45054
  return Object.prototype.hasOwnProperty.call(obj, field);
45055
45055
  }
45056
- var fs6 = __require("fs");
45056
+ var fs7 = __require("fs");
45057
45057
  var path7 = __require("path");
45058
45058
  var minimatch2 = require_minimatch2();
45059
45059
  var isAbsolute = __require("path").isAbsolute;
@@ -45098,7 +45098,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
45098
45098
  self2.stat = !!options.stat;
45099
45099
  self2.noprocess = !!options.noprocess;
45100
45100
  self2.absolute = !!options.absolute;
45101
- self2.fs = options.fs || fs6;
45101
+ self2.fs = options.fs || fs7;
45102
45102
  self2.maxLength = options.maxLength || Infinity;
45103
45103
  self2.cache = options.cache || /* @__PURE__ */ Object.create(null);
45104
45104
  self2.statCache = options.statCache || /* @__PURE__ */ Object.create(null);
@@ -45961,7 +45961,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
45961
45961
  var require_windows = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports2, module2) {
45962
45962
  module2.exports = isexe;
45963
45963
  isexe.sync = sync;
45964
- var fs6 = __require("fs");
45964
+ var fs7 = __require("fs");
45965
45965
  function checkPathExt(path7, options) {
45966
45966
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
45967
45967
  if (!pathext) return true;
@@ -45978,25 +45978,25 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
45978
45978
  return checkPathExt(path7, options);
45979
45979
  }
45980
45980
  function isexe(path7, options, cb) {
45981
- fs6.stat(path7, function(er, stat) {
45981
+ fs7.stat(path7, function(er, stat) {
45982
45982
  cb(er, er ? false : checkStat(stat, path7, options));
45983
45983
  });
45984
45984
  }
45985
45985
  function sync(path7, options) {
45986
- return checkStat(fs6.statSync(path7), path7, options);
45986
+ return checkStat(fs7.statSync(path7), path7, options);
45987
45987
  }
45988
45988
  } });
45989
45989
  var require_mode = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports2, module2) {
45990
45990
  module2.exports = isexe;
45991
45991
  isexe.sync = sync;
45992
- var fs6 = __require("fs");
45992
+ var fs7 = __require("fs");
45993
45993
  function isexe(path7, options, cb) {
45994
- fs6.stat(path7, function(er, stat) {
45994
+ fs7.stat(path7, function(er, stat) {
45995
45995
  cb(er, er ? false : checkStat(stat, options));
45996
45996
  });
45997
45997
  }
45998
45998
  function sync(path7, options) {
45999
- return checkStat(fs6.statSync(path7), options);
45999
+ return checkStat(fs7.statSync(path7), options);
46000
46000
  }
46001
46001
  function checkStat(stat, options) {
46002
46002
  return stat.isFile() && checkMode(stat, options);
@@ -46015,7 +46015,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
46015
46015
  }
46016
46016
  } });
46017
46017
  var require_isexe = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
46018
- var fs6 = __require("fs");
46018
+ var fs7 = __require("fs");
46019
46019
  var core;
46020
46020
  if (process.platform === "win32" || global.TESTING_WINDOWS) core = require_windows();
46021
46021
  else core = require_mode();
@@ -46208,7 +46208,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
46208
46208
  };
46209
46209
  } });
46210
46210
  var require_readShebang = __commonJS({ "../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
46211
- var fs6 = __require("fs");
46211
+ var fs7 = __require("fs");
46212
46212
  var shebangCommand = require_shebang_command();
46213
46213
  function readShebang(command) {
46214
46214
  const size = 150;
@@ -46220,9 +46220,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
46220
46220
  }
46221
46221
  let fd;
46222
46222
  try {
46223
- fd = fs6.openSync(command, "r");
46224
- fs6.readSync(fd, buffer, 0, size, 0);
46225
- fs6.closeSync(fd);
46223
+ fd = fs7.openSync(command, "r");
46224
+ fs7.readSync(fd, buffer, 0, size, 0);
46225
+ fs7.closeSync(fd);
46226
46226
  } catch (e) {}
46227
46227
  return shebangCommand(buffer.toString());
46228
46228
  }
@@ -47062,7 +47062,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
47062
47062
  var escape = require_escape();
47063
47063
  var readShebang = require_readShebang();
47064
47064
  var semver = require_semver();
47065
- var isWin2 = process.platform === "win32";
47065
+ var isWin3 = process.platform === "win32";
47066
47066
  var isExecutableRegExp = /\.(?:com|exe)$/i;
47067
47067
  var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
47068
47068
  var supportsShellOption = niceTry(() => semver.satisfies(process.version, "^4.8.0 || ^5.7.0 || >= 6.0.0", true)) || false;
@@ -47077,7 +47077,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
47077
47077
  return parsed.file;
47078
47078
  }
47079
47079
  function parseNonShell(parsed) {
47080
- if (!isWin2) return parsed;
47080
+ if (!isWin3) return parsed;
47081
47081
  const commandFile = detectShebang(parsed);
47082
47082
  const needsShell = !isExecutableRegExp.test(commandFile);
47083
47083
  if (parsed.options.forceShell || needsShell) {
@@ -47099,7 +47099,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
47099
47099
  function parseShell(parsed) {
47100
47100
  if (supportsShellOption) return parsed;
47101
47101
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
47102
- if (isWin2) {
47102
+ if (isWin3) {
47103
47103
  parsed.command = typeof parsed.options.shell === "string" ? parsed.options.shell : process.env.comspec || "cmd.exe";
47104
47104
  parsed.args = [
47105
47105
  "/d",
@@ -47138,7 +47138,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
47138
47138
  module2.exports = parse3;
47139
47139
  } });
47140
47140
  var require_enoent = __commonJS({ "../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
47141
- var isWin2 = process.platform === "win32";
47141
+ var isWin3 = process.platform === "win32";
47142
47142
  function notFoundError(original, syscall) {
47143
47143
  return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
47144
47144
  code: "ENOENT",
@@ -47149,7 +47149,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
47149
47149
  });
47150
47150
  }
47151
47151
  function hookChildProcess(cp, parsed) {
47152
- if (!isWin2) return;
47152
+ if (!isWin3) return;
47153
47153
  const originalEmit = cp.emit;
47154
47154
  cp.emit = function(name, arg1) {
47155
47155
  if (name === "exit") {
@@ -47160,11 +47160,11 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
47160
47160
  };
47161
47161
  }
47162
47162
  function verifyENOENT(status, parsed) {
47163
- if (isWin2 && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawn");
47163
+ if (isWin3 && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawn");
47164
47164
  return null;
47165
47165
  }
47166
47166
  function verifyENOENTSync(status, parsed) {
47167
- if (isWin2 && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawnSync");
47167
+ if (isWin3 && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawnSync");
47168
47168
  return null;
47169
47169
  }
47170
47170
  module2.exports = {
@@ -52795,6 +52795,1547 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
52795
52795
  }
52796
52796
  module2.exports = (options) => new IgnoreBase(options);
52797
52797
  } });
52798
+ var require_which2 = __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) {
52799
+ var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
52800
+ var path7 = __require("path");
52801
+ var COLON = isWindows ? ";" : ":";
52802
+ var isexe = require_isexe();
52803
+ var getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
52804
+ var getPathInfo = (cmd, opt) => {
52805
+ const colon = opt.colon || COLON;
52806
+ const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH || "").split(colon)];
52807
+ const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
52808
+ const pathExt = isWindows ? pathExtExe.split(colon) : [""];
52809
+ if (isWindows) {
52810
+ if (cmd.indexOf(".") !== -1 && pathExt[0] !== "") pathExt.unshift("");
52811
+ }
52812
+ return {
52813
+ pathEnv,
52814
+ pathExt,
52815
+ pathExtExe
52816
+ };
52817
+ };
52818
+ var which = (cmd, opt, cb) => {
52819
+ if (typeof opt === "function") {
52820
+ cb = opt;
52821
+ opt = {};
52822
+ }
52823
+ if (!opt) opt = {};
52824
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
52825
+ const found = [];
52826
+ const step = (i) => new Promise((resolve, reject) => {
52827
+ if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
52828
+ const ppRaw = pathEnv[i];
52829
+ const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
52830
+ const pCmd = path7.join(pathPart, cmd);
52831
+ resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
52832
+ });
52833
+ const subStep = (p, i, ii) => new Promise((resolve, reject) => {
52834
+ if (ii === pathExt.length) return resolve(step(i + 1));
52835
+ const ext = pathExt[ii];
52836
+ isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
52837
+ if (!er && is) if (opt.all) found.push(p + ext);
52838
+ else return resolve(p + ext);
52839
+ return resolve(subStep(p, i, ii + 1));
52840
+ });
52841
+ });
52842
+ return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
52843
+ };
52844
+ var whichSync = (cmd, opt) => {
52845
+ opt = opt || {};
52846
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
52847
+ const found = [];
52848
+ for (let i = 0; i < pathEnv.length; i++) {
52849
+ const ppRaw = pathEnv[i];
52850
+ const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
52851
+ const pCmd = path7.join(pathPart, cmd);
52852
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
52853
+ for (let j = 0; j < pathExt.length; j++) {
52854
+ const cur = p + pathExt[j];
52855
+ try {
52856
+ if (isexe.sync(cur, { pathExt: pathExtExe })) if (opt.all) found.push(cur);
52857
+ else return cur;
52858
+ } catch (ex) {}
52859
+ }
52860
+ }
52861
+ if (opt.all && found.length) return found;
52862
+ if (opt.nothrow) return null;
52863
+ throw getNotFoundError(cmd);
52864
+ };
52865
+ module2.exports = which;
52866
+ which.sync = whichSync;
52867
+ } });
52868
+ var require_path_key2 = __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports2, module2) {
52869
+ var pathKey = (options = {}) => {
52870
+ const environment = options.env || process.env;
52871
+ if ((options.platform || process.platform) !== "win32") return "PATH";
52872
+ return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
52873
+ };
52874
+ module2.exports = pathKey;
52875
+ module2.exports.default = pathKey;
52876
+ } });
52877
+ var require_resolveCommand2 = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
52878
+ var path7 = __require("path");
52879
+ var which = require_which2();
52880
+ var getPathKey = require_path_key2();
52881
+ function resolveCommandAttempt(parsed, withoutPathExt) {
52882
+ const env = parsed.options.env || process.env;
52883
+ const cwd = process.cwd();
52884
+ const hasCustomCwd = parsed.options.cwd != null;
52885
+ const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
52886
+ if (shouldSwitchCwd) try {
52887
+ process.chdir(parsed.options.cwd);
52888
+ } catch (err) {}
52889
+ let resolved;
52890
+ try {
52891
+ resolved = which.sync(parsed.command, {
52892
+ path: env[getPathKey({ env })],
52893
+ pathExt: withoutPathExt ? path7.delimiter : void 0
52894
+ });
52895
+ } catch (e) {} finally {
52896
+ if (shouldSwitchCwd) process.chdir(cwd);
52897
+ }
52898
+ if (resolved) resolved = path7.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
52899
+ return resolved;
52900
+ }
52901
+ function resolveCommand(parsed) {
52902
+ return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
52903
+ }
52904
+ module2.exports = resolveCommand;
52905
+ } });
52906
+ var require_escape2 = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
52907
+ var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
52908
+ function escapeCommand(arg) {
52909
+ arg = arg.replace(metaCharsRegExp, "^$1");
52910
+ return arg;
52911
+ }
52912
+ function escapeArgument(arg, doubleEscapeMetaChars) {
52913
+ arg = `${arg}`;
52914
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
52915
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
52916
+ arg = `"${arg}"`;
52917
+ arg = arg.replace(metaCharsRegExp, "^$1");
52918
+ if (doubleEscapeMetaChars) arg = arg.replace(metaCharsRegExp, "^$1");
52919
+ return arg;
52920
+ }
52921
+ module2.exports.command = escapeCommand;
52922
+ module2.exports.argument = escapeArgument;
52923
+ } });
52924
+ var require_shebang_regex2 = __commonJS({ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports2, module2) {
52925
+ module2.exports = /^#!(.*)/;
52926
+ } });
52927
+ var require_shebang_command2 = __commonJS({ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports2, module2) {
52928
+ var shebangRegex = require_shebang_regex2();
52929
+ module2.exports = (string = "") => {
52930
+ const match = string.match(shebangRegex);
52931
+ if (!match) return null;
52932
+ const [path7, argument] = match[0].replace(/#! ?/, "").split(" ");
52933
+ const binary = path7.split("/").pop();
52934
+ if (binary === "env") return argument;
52935
+ return argument ? `${binary} ${argument}` : binary;
52936
+ };
52937
+ } });
52938
+ var require_readShebang2 = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
52939
+ var fs7 = __require("fs");
52940
+ var shebangCommand = require_shebang_command2();
52941
+ function readShebang(command) {
52942
+ const size = 150;
52943
+ const buffer = Buffer.alloc(size);
52944
+ let fd;
52945
+ try {
52946
+ fd = fs7.openSync(command, "r");
52947
+ fs7.readSync(fd, buffer, 0, size, 0);
52948
+ fs7.closeSync(fd);
52949
+ } catch (e) {}
52950
+ return shebangCommand(buffer.toString());
52951
+ }
52952
+ module2.exports = readShebang;
52953
+ } });
52954
+ var require_parse4 = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
52955
+ var path7 = __require("path");
52956
+ var resolveCommand = require_resolveCommand2();
52957
+ var escape = require_escape2();
52958
+ var readShebang = require_readShebang2();
52959
+ var isWin3 = process.platform === "win32";
52960
+ var isExecutableRegExp = /\.(?:com|exe)$/i;
52961
+ var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
52962
+ function detectShebang(parsed) {
52963
+ parsed.file = resolveCommand(parsed);
52964
+ const shebang = parsed.file && readShebang(parsed.file);
52965
+ if (shebang) {
52966
+ parsed.args.unshift(parsed.file);
52967
+ parsed.command = shebang;
52968
+ return resolveCommand(parsed);
52969
+ }
52970
+ return parsed.file;
52971
+ }
52972
+ function parseNonShell(parsed) {
52973
+ if (!isWin3) return parsed;
52974
+ const commandFile = detectShebang(parsed);
52975
+ const needsShell = !isExecutableRegExp.test(commandFile);
52976
+ if (parsed.options.forceShell || needsShell) {
52977
+ const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
52978
+ parsed.command = path7.normalize(parsed.command);
52979
+ parsed.command = escape.command(parsed.command);
52980
+ parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
52981
+ parsed.args = [
52982
+ "/d",
52983
+ "/s",
52984
+ "/c",
52985
+ `"${[parsed.command].concat(parsed.args).join(" ")}"`
52986
+ ];
52987
+ parsed.command = process.env.comspec || "cmd.exe";
52988
+ parsed.options.windowsVerbatimArguments = true;
52989
+ }
52990
+ return parsed;
52991
+ }
52992
+ function parse3(command, args, options) {
52993
+ if (args && !Array.isArray(args)) {
52994
+ options = args;
52995
+ args = null;
52996
+ }
52997
+ args = args ? args.slice(0) : [];
52998
+ options = Object.assign({}, options);
52999
+ const parsed = {
53000
+ command,
53001
+ args,
53002
+ options,
53003
+ file: void 0,
53004
+ original: {
53005
+ command,
53006
+ args
53007
+ }
53008
+ };
53009
+ return options.shell ? parsed : parseNonShell(parsed);
53010
+ }
53011
+ module2.exports = parse3;
53012
+ } });
53013
+ var require_enoent2 = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
53014
+ var isWin3 = process.platform === "win32";
53015
+ function notFoundError(original, syscall) {
53016
+ return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
53017
+ code: "ENOENT",
53018
+ errno: "ENOENT",
53019
+ syscall: `${syscall} ${original.command}`,
53020
+ path: original.command,
53021
+ spawnargs: original.args
53022
+ });
53023
+ }
53024
+ function hookChildProcess(cp, parsed) {
53025
+ if (!isWin3) return;
53026
+ const originalEmit = cp.emit;
53027
+ cp.emit = function(name, arg1) {
53028
+ if (name === "exit") {
53029
+ const err = verifyENOENT(arg1, parsed);
53030
+ if (err) return originalEmit.call(cp, "error", err);
53031
+ }
53032
+ return originalEmit.apply(cp, arguments);
53033
+ };
53034
+ }
53035
+ function verifyENOENT(status, parsed) {
53036
+ if (isWin3 && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawn");
53037
+ return null;
53038
+ }
53039
+ function verifyENOENTSync(status, parsed) {
53040
+ if (isWin3 && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawnSync");
53041
+ return null;
53042
+ }
53043
+ module2.exports = {
53044
+ hookChildProcess,
53045
+ verifyENOENT,
53046
+ verifyENOENTSync,
53047
+ notFoundError
53048
+ };
53049
+ } });
53050
+ var require_cross_spawn2 = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
53051
+ var cp = __require("child_process");
53052
+ var parse3 = require_parse4();
53053
+ var enoent = require_enoent2();
53054
+ function spawn2(command, args, options) {
53055
+ const parsed = parse3(command, args, options);
53056
+ const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
53057
+ enoent.hookChildProcess(spawned, parsed);
53058
+ return spawned;
53059
+ }
53060
+ function spawnSync(command, args, options) {
53061
+ const parsed = parse3(command, args, options);
53062
+ const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
53063
+ result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
53064
+ return result;
53065
+ }
53066
+ module2.exports = spawn2;
53067
+ module2.exports.spawn = spawn2;
53068
+ module2.exports.sync = spawnSync;
53069
+ module2.exports._parse = parse3;
53070
+ module2.exports._enoent = enoent;
53071
+ } });
53072
+ var require_strip_final_newline = __commonJS({ "../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js"(exports2, module2) {
53073
+ module2.exports = (input) => {
53074
+ const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
53075
+ const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
53076
+ if (input[input.length - 1] === LF) input = input.slice(0, input.length - 1);
53077
+ if (input[input.length - 1] === CR) input = input.slice(0, input.length - 1);
53078
+ return input;
53079
+ };
53080
+ } });
53081
+ var require_npm_run_path = __commonJS({ "../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports2, module2) {
53082
+ var path7 = __require("path");
53083
+ var pathKey = require_path_key2();
53084
+ var npmRunPath = (options) => {
53085
+ options = {
53086
+ cwd: process.cwd(),
53087
+ path: process.env[pathKey()],
53088
+ execPath: process.execPath,
53089
+ ...options
53090
+ };
53091
+ let previous;
53092
+ let cwdPath = path7.resolve(options.cwd);
53093
+ const result = [];
53094
+ while (previous !== cwdPath) {
53095
+ result.push(path7.join(cwdPath, "node_modules/.bin"));
53096
+ previous = cwdPath;
53097
+ cwdPath = path7.resolve(cwdPath, "..");
53098
+ }
53099
+ const execPathDir = path7.resolve(options.cwd, options.execPath, "..");
53100
+ result.push(execPathDir);
53101
+ return result.concat(options.path).join(path7.delimiter);
53102
+ };
53103
+ module2.exports = npmRunPath;
53104
+ module2.exports.default = npmRunPath;
53105
+ module2.exports.env = (options) => {
53106
+ options = {
53107
+ env: process.env,
53108
+ ...options
53109
+ };
53110
+ const env = { ...options.env };
53111
+ const path8 = pathKey({ env });
53112
+ options.path = env[path8];
53113
+ env[path8] = module2.exports(options);
53114
+ return env;
53115
+ };
53116
+ } });
53117
+ var require_mimic_fn = __commonJS({ "../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports2, module2) {
53118
+ var mimicFn = (to, from) => {
53119
+ for (const prop of Reflect.ownKeys(from)) Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
53120
+ return to;
53121
+ };
53122
+ module2.exports = mimicFn;
53123
+ module2.exports.default = mimicFn;
53124
+ } });
53125
+ var require_onetime = __commonJS({ "../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports2, module2) {
53126
+ var mimicFn = require_mimic_fn();
53127
+ var calledFunctions = /* @__PURE__ */ new WeakMap();
53128
+ var onetime = (function_, options = {}) => {
53129
+ if (typeof function_ !== "function") throw new TypeError("Expected a function");
53130
+ let returnValue;
53131
+ let callCount = 0;
53132
+ const functionName = function_.displayName || function_.name || "<anonymous>";
53133
+ const onetime2 = function(...arguments_) {
53134
+ calledFunctions.set(onetime2, ++callCount);
53135
+ if (callCount === 1) {
53136
+ returnValue = function_.apply(this, arguments_);
53137
+ function_ = null;
53138
+ } else if (options.throw === true) throw new Error(`Function \`${functionName}\` can only be called once`);
53139
+ return returnValue;
53140
+ };
53141
+ mimicFn(onetime2, function_);
53142
+ calledFunctions.set(onetime2, callCount);
53143
+ return onetime2;
53144
+ };
53145
+ module2.exports = onetime;
53146
+ module2.exports.default = onetime;
53147
+ module2.exports.callCount = (function_) => {
53148
+ if (!calledFunctions.has(function_)) throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
53149
+ return calledFunctions.get(function_);
53150
+ };
53151
+ } });
53152
+ var require_core2 = __commonJS({ "../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/core.js"(exports2) {
53153
+ Object.defineProperty(exports2, "__esModule", { value: true });
53154
+ exports2.SIGNALS = void 0;
53155
+ exports2.SIGNALS = [
53156
+ {
53157
+ name: "SIGHUP",
53158
+ number: 1,
53159
+ action: "terminate",
53160
+ description: "Terminal closed",
53161
+ standard: "posix"
53162
+ },
53163
+ {
53164
+ name: "SIGINT",
53165
+ number: 2,
53166
+ action: "terminate",
53167
+ description: "User interruption with CTRL-C",
53168
+ standard: "ansi"
53169
+ },
53170
+ {
53171
+ name: "SIGQUIT",
53172
+ number: 3,
53173
+ action: "core",
53174
+ description: "User interruption with CTRL-\\",
53175
+ standard: "posix"
53176
+ },
53177
+ {
53178
+ name: "SIGILL",
53179
+ number: 4,
53180
+ action: "core",
53181
+ description: "Invalid machine instruction",
53182
+ standard: "ansi"
53183
+ },
53184
+ {
53185
+ name: "SIGTRAP",
53186
+ number: 5,
53187
+ action: "core",
53188
+ description: "Debugger breakpoint",
53189
+ standard: "posix"
53190
+ },
53191
+ {
53192
+ name: "SIGABRT",
53193
+ number: 6,
53194
+ action: "core",
53195
+ description: "Aborted",
53196
+ standard: "ansi"
53197
+ },
53198
+ {
53199
+ name: "SIGIOT",
53200
+ number: 6,
53201
+ action: "core",
53202
+ description: "Aborted",
53203
+ standard: "bsd"
53204
+ },
53205
+ {
53206
+ name: "SIGBUS",
53207
+ number: 7,
53208
+ action: "core",
53209
+ description: "Bus error due to misaligned, non-existing address or paging error",
53210
+ standard: "bsd"
53211
+ },
53212
+ {
53213
+ name: "SIGEMT",
53214
+ number: 7,
53215
+ action: "terminate",
53216
+ description: "Command should be emulated but is not implemented",
53217
+ standard: "other"
53218
+ },
53219
+ {
53220
+ name: "SIGFPE",
53221
+ number: 8,
53222
+ action: "core",
53223
+ description: "Floating point arithmetic error",
53224
+ standard: "ansi"
53225
+ },
53226
+ {
53227
+ name: "SIGKILL",
53228
+ number: 9,
53229
+ action: "terminate",
53230
+ description: "Forced termination",
53231
+ standard: "posix",
53232
+ forced: true
53233
+ },
53234
+ {
53235
+ name: "SIGUSR1",
53236
+ number: 10,
53237
+ action: "terminate",
53238
+ description: "Application-specific signal",
53239
+ standard: "posix"
53240
+ },
53241
+ {
53242
+ name: "SIGSEGV",
53243
+ number: 11,
53244
+ action: "core",
53245
+ description: "Segmentation fault",
53246
+ standard: "ansi"
53247
+ },
53248
+ {
53249
+ name: "SIGUSR2",
53250
+ number: 12,
53251
+ action: "terminate",
53252
+ description: "Application-specific signal",
53253
+ standard: "posix"
53254
+ },
53255
+ {
53256
+ name: "SIGPIPE",
53257
+ number: 13,
53258
+ action: "terminate",
53259
+ description: "Broken pipe or socket",
53260
+ standard: "posix"
53261
+ },
53262
+ {
53263
+ name: "SIGALRM",
53264
+ number: 14,
53265
+ action: "terminate",
53266
+ description: "Timeout or timer",
53267
+ standard: "posix"
53268
+ },
53269
+ {
53270
+ name: "SIGTERM",
53271
+ number: 15,
53272
+ action: "terminate",
53273
+ description: "Termination",
53274
+ standard: "ansi"
53275
+ },
53276
+ {
53277
+ name: "SIGSTKFLT",
53278
+ number: 16,
53279
+ action: "terminate",
53280
+ description: "Stack is empty or overflowed",
53281
+ standard: "other"
53282
+ },
53283
+ {
53284
+ name: "SIGCHLD",
53285
+ number: 17,
53286
+ action: "ignore",
53287
+ description: "Child process terminated, paused or unpaused",
53288
+ standard: "posix"
53289
+ },
53290
+ {
53291
+ name: "SIGCLD",
53292
+ number: 17,
53293
+ action: "ignore",
53294
+ description: "Child process terminated, paused or unpaused",
53295
+ standard: "other"
53296
+ },
53297
+ {
53298
+ name: "SIGCONT",
53299
+ number: 18,
53300
+ action: "unpause",
53301
+ description: "Unpaused",
53302
+ standard: "posix",
53303
+ forced: true
53304
+ },
53305
+ {
53306
+ name: "SIGSTOP",
53307
+ number: 19,
53308
+ action: "pause",
53309
+ description: "Paused",
53310
+ standard: "posix",
53311
+ forced: true
53312
+ },
53313
+ {
53314
+ name: "SIGTSTP",
53315
+ number: 20,
53316
+ action: "pause",
53317
+ description: "Paused using CTRL-Z or \"suspend\"",
53318
+ standard: "posix"
53319
+ },
53320
+ {
53321
+ name: "SIGTTIN",
53322
+ number: 21,
53323
+ action: "pause",
53324
+ description: "Background process cannot read terminal input",
53325
+ standard: "posix"
53326
+ },
53327
+ {
53328
+ name: "SIGBREAK",
53329
+ number: 21,
53330
+ action: "terminate",
53331
+ description: "User interruption with CTRL-BREAK",
53332
+ standard: "other"
53333
+ },
53334
+ {
53335
+ name: "SIGTTOU",
53336
+ number: 22,
53337
+ action: "pause",
53338
+ description: "Background process cannot write to terminal output",
53339
+ standard: "posix"
53340
+ },
53341
+ {
53342
+ name: "SIGURG",
53343
+ number: 23,
53344
+ action: "ignore",
53345
+ description: "Socket received out-of-band data",
53346
+ standard: "bsd"
53347
+ },
53348
+ {
53349
+ name: "SIGXCPU",
53350
+ number: 24,
53351
+ action: "core",
53352
+ description: "Process timed out",
53353
+ standard: "bsd"
53354
+ },
53355
+ {
53356
+ name: "SIGXFSZ",
53357
+ number: 25,
53358
+ action: "core",
53359
+ description: "File too big",
53360
+ standard: "bsd"
53361
+ },
53362
+ {
53363
+ name: "SIGVTALRM",
53364
+ number: 26,
53365
+ action: "terminate",
53366
+ description: "Timeout or timer",
53367
+ standard: "bsd"
53368
+ },
53369
+ {
53370
+ name: "SIGPROF",
53371
+ number: 27,
53372
+ action: "terminate",
53373
+ description: "Timeout or timer",
53374
+ standard: "bsd"
53375
+ },
53376
+ {
53377
+ name: "SIGWINCH",
53378
+ number: 28,
53379
+ action: "ignore",
53380
+ description: "Terminal window size changed",
53381
+ standard: "bsd"
53382
+ },
53383
+ {
53384
+ name: "SIGIO",
53385
+ number: 29,
53386
+ action: "terminate",
53387
+ description: "I/O is available",
53388
+ standard: "other"
53389
+ },
53390
+ {
53391
+ name: "SIGPOLL",
53392
+ number: 29,
53393
+ action: "terminate",
53394
+ description: "Watched event",
53395
+ standard: "other"
53396
+ },
53397
+ {
53398
+ name: "SIGINFO",
53399
+ number: 29,
53400
+ action: "ignore",
53401
+ description: "Request for process information",
53402
+ standard: "other"
53403
+ },
53404
+ {
53405
+ name: "SIGPWR",
53406
+ number: 30,
53407
+ action: "terminate",
53408
+ description: "Device running out of power",
53409
+ standard: "systemv"
53410
+ },
53411
+ {
53412
+ name: "SIGSYS",
53413
+ number: 31,
53414
+ action: "core",
53415
+ description: "Invalid system call",
53416
+ standard: "other"
53417
+ },
53418
+ {
53419
+ name: "SIGUNUSED",
53420
+ number: 31,
53421
+ action: "terminate",
53422
+ description: "Invalid system call",
53423
+ standard: "other"
53424
+ }
53425
+ ];
53426
+ } });
53427
+ var require_realtime = __commonJS({ "../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/realtime.js"(exports2) {
53428
+ Object.defineProperty(exports2, "__esModule", { value: true });
53429
+ exports2.SIGRTMAX = exports2.getRealtimeSignals = void 0;
53430
+ var getRealtimeSignals = function() {
53431
+ const length = SIGRTMAX - SIGRTMIN + 1;
53432
+ return Array.from({ length }, getRealtimeSignal);
53433
+ };
53434
+ exports2.getRealtimeSignals = getRealtimeSignals;
53435
+ var getRealtimeSignal = function(value, index) {
53436
+ return {
53437
+ name: `SIGRT${index + 1}`,
53438
+ number: SIGRTMIN + index,
53439
+ action: "terminate",
53440
+ description: "Application-specific signal (realtime)",
53441
+ standard: "posix"
53442
+ };
53443
+ };
53444
+ var SIGRTMIN = 34;
53445
+ var SIGRTMAX = 64;
53446
+ exports2.SIGRTMAX = SIGRTMAX;
53447
+ } });
53448
+ var require_signals = __commonJS({ "../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/signals.js"(exports2) {
53449
+ Object.defineProperty(exports2, "__esModule", { value: true });
53450
+ exports2.getSignals = void 0;
53451
+ var _os = __require("os");
53452
+ var _core = require_core2();
53453
+ var _realtime = require_realtime();
53454
+ var getSignals = function() {
53455
+ const realtimeSignals = (0, _realtime.getRealtimeSignals)();
53456
+ return [..._core.SIGNALS, ...realtimeSignals].map(normalizeSignal);
53457
+ };
53458
+ exports2.getSignals = getSignals;
53459
+ var normalizeSignal = function({ name, number: defaultNumber, description, action, forced = false, standard }) {
53460
+ const { signals: { [name]: constantSignal } } = _os.constants;
53461
+ const supported = constantSignal !== void 0;
53462
+ return {
53463
+ name,
53464
+ number: supported ? constantSignal : defaultNumber,
53465
+ description,
53466
+ supported,
53467
+ action,
53468
+ forced,
53469
+ standard
53470
+ };
53471
+ };
53472
+ } });
53473
+ var require_main = __commonJS({ "../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/main.js"(exports2) {
53474
+ Object.defineProperty(exports2, "__esModule", { value: true });
53475
+ exports2.signalsByNumber = exports2.signalsByName = void 0;
53476
+ var _os = __require("os");
53477
+ var _signals = require_signals();
53478
+ var _realtime = require_realtime();
53479
+ var getSignalsByName = function() {
53480
+ return (0, _signals.getSignals)().reduce(getSignalByName, {});
53481
+ };
53482
+ var getSignalByName = function(signalByNameMemo, { name, number, description, supported, action, forced, standard }) {
53483
+ return {
53484
+ ...signalByNameMemo,
53485
+ [name]: {
53486
+ name,
53487
+ number,
53488
+ description,
53489
+ supported,
53490
+ action,
53491
+ forced,
53492
+ standard
53493
+ }
53494
+ };
53495
+ };
53496
+ exports2.signalsByName = getSignalsByName();
53497
+ var getSignalsByNumber = function() {
53498
+ const signals = (0, _signals.getSignals)();
53499
+ const length = _realtime.SIGRTMAX + 1;
53500
+ const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals));
53501
+ return Object.assign({}, ...signalsA);
53502
+ };
53503
+ var getSignalByNumber = function(number, signals) {
53504
+ const signal = findSignalByNumber(number, signals);
53505
+ if (signal === void 0) return {};
53506
+ const { name, description, supported, action, forced, standard } = signal;
53507
+ return { [number]: {
53508
+ name,
53509
+ number,
53510
+ description,
53511
+ supported,
53512
+ action,
53513
+ forced,
53514
+ standard
53515
+ } };
53516
+ };
53517
+ var findSignalByNumber = function(number, signals) {
53518
+ const signal = signals.find(({ name }) => _os.constants.signals[name] === number);
53519
+ if (signal !== void 0) return signal;
53520
+ return signals.find((signalA) => signalA.number === number);
53521
+ };
53522
+ exports2.signalsByNumber = getSignalsByNumber();
53523
+ } });
53524
+ var require_error = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/error.js"(exports2, module2) {
53525
+ var { signalsByName } = require_main();
53526
+ var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
53527
+ if (timedOut) return `timed out after ${timeout} milliseconds`;
53528
+ if (isCanceled) return "was canceled";
53529
+ if (errorCode !== void 0) return `failed with ${errorCode}`;
53530
+ if (signal !== void 0) return `was killed with ${signal} (${signalDescription})`;
53531
+ if (exitCode !== void 0) return `failed with exit code ${exitCode}`;
53532
+ return "failed";
53533
+ };
53534
+ var makeError = ({ stdout, stderr, all, error, signal, exitCode, command, timedOut, isCanceled, killed, parsed: { options: { timeout } } }) => {
53535
+ exitCode = exitCode === null ? void 0 : exitCode;
53536
+ signal = signal === null ? void 0 : signal;
53537
+ const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
53538
+ const message = `Command ${getErrorPrefix({
53539
+ timedOut,
53540
+ timeout,
53541
+ errorCode: error && error.code,
53542
+ signal,
53543
+ signalDescription,
53544
+ exitCode,
53545
+ isCanceled
53546
+ })}: ${command}`;
53547
+ if (error instanceof Error) {
53548
+ error.originalMessage = error.message;
53549
+ error.message = `${message}
53550
+ ${error.message}`;
53551
+ } else error = new Error(message);
53552
+ error.command = command;
53553
+ error.exitCode = exitCode;
53554
+ error.signal = signal;
53555
+ error.signalDescription = signalDescription;
53556
+ error.stdout = stdout;
53557
+ error.stderr = stderr;
53558
+ if (all !== void 0) error.all = all;
53559
+ if ("bufferedData" in error) delete error.bufferedData;
53560
+ error.failed = true;
53561
+ error.timedOut = Boolean(timedOut);
53562
+ error.isCanceled = isCanceled;
53563
+ error.killed = killed && !timedOut;
53564
+ return error;
53565
+ };
53566
+ module2.exports = makeError;
53567
+ } });
53568
+ var require_stdio = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/stdio.js"(exports2, module2) {
53569
+ var aliases = [
53570
+ "stdin",
53571
+ "stdout",
53572
+ "stderr"
53573
+ ];
53574
+ var hasAlias = (opts) => aliases.some((alias) => opts[alias] !== void 0);
53575
+ var normalizeStdio = (opts) => {
53576
+ if (!opts) return;
53577
+ const { stdio } = opts;
53578
+ if (stdio === void 0) return aliases.map((alias) => opts[alias]);
53579
+ if (hasAlias(opts)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
53580
+ if (typeof stdio === "string") return stdio;
53581
+ if (!Array.isArray(stdio)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
53582
+ const length = Math.max(stdio.length, aliases.length);
53583
+ return Array.from({ length }, (value, index) => stdio[index]);
53584
+ };
53585
+ module2.exports = normalizeStdio;
53586
+ module2.exports.node = (opts) => {
53587
+ const stdio = normalizeStdio(opts);
53588
+ if (stdio === "ipc") return "ipc";
53589
+ if (stdio === void 0 || typeof stdio === "string") return [
53590
+ stdio,
53591
+ stdio,
53592
+ stdio,
53593
+ "ipc"
53594
+ ];
53595
+ if (stdio.includes("ipc")) return stdio;
53596
+ return [...stdio, "ipc"];
53597
+ };
53598
+ } });
53599
+ var require_signals2 = __commonJS({ "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports2, module2) {
53600
+ module2.exports = [
53601
+ "SIGABRT",
53602
+ "SIGALRM",
53603
+ "SIGHUP",
53604
+ "SIGINT",
53605
+ "SIGTERM"
53606
+ ];
53607
+ if (process.platform !== "win32") module2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
53608
+ if (process.platform === "linux") module2.exports.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT", "SIGUNUSED");
53609
+ } });
53610
+ var require_signal_exit = __commonJS({ "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module2) {
53611
+ var process2 = global.process;
53612
+ var processOk = function(process3) {
53613
+ return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
53614
+ };
53615
+ if (!processOk(process2)) module2.exports = function() {
53616
+ return function() {};
53617
+ };
53618
+ else {
53619
+ assert7 = __require("assert");
53620
+ signals = require_signals2();
53621
+ isWin3 = /^win/i.test(process2.platform);
53622
+ EE = __require("events");
53623
+ if (typeof EE !== "function") EE = EE.EventEmitter;
53624
+ if (process2.__signal_exit_emitter__) emitter = process2.__signal_exit_emitter__;
53625
+ else {
53626
+ emitter = process2.__signal_exit_emitter__ = new EE();
53627
+ emitter.count = 0;
53628
+ emitter.emitted = {};
53629
+ }
53630
+ if (!emitter.infinite) {
53631
+ emitter.setMaxListeners(Infinity);
53632
+ emitter.infinite = true;
53633
+ }
53634
+ module2.exports = function(cb, opts) {
53635
+ if (!processOk(global.process)) return function() {};
53636
+ assert7.equal(typeof cb, "function", "a callback must be provided for exit handler");
53637
+ if (loaded === false) load();
53638
+ var ev = "exit";
53639
+ if (opts && opts.alwaysLast) ev = "afterexit";
53640
+ var remove2 = function() {
53641
+ emitter.removeListener(ev, cb);
53642
+ if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) unload();
53643
+ };
53644
+ emitter.on(ev, cb);
53645
+ return remove2;
53646
+ };
53647
+ unload = function unload2() {
53648
+ if (!loaded || !processOk(global.process)) return;
53649
+ loaded = false;
53650
+ signals.forEach(function(sig) {
53651
+ try {
53652
+ process2.removeListener(sig, sigListeners[sig]);
53653
+ } catch (er) {}
53654
+ });
53655
+ process2.emit = originalProcessEmit;
53656
+ process2.reallyExit = originalProcessReallyExit;
53657
+ emitter.count -= 1;
53658
+ };
53659
+ module2.exports.unload = unload;
53660
+ emit = function emit2(event, code, signal) {
53661
+ if (emitter.emitted[event]) return;
53662
+ emitter.emitted[event] = true;
53663
+ emitter.emit(event, code, signal);
53664
+ };
53665
+ sigListeners = {};
53666
+ signals.forEach(function(sig) {
53667
+ sigListeners[sig] = function listener() {
53668
+ if (!processOk(global.process)) return;
53669
+ if (process2.listeners(sig).length === emitter.count) {
53670
+ unload();
53671
+ emit("exit", null, sig);
53672
+ emit("afterexit", null, sig);
53673
+ if (isWin3 && sig === "SIGHUP") sig = "SIGINT";
53674
+ process2.kill(process2.pid, sig);
53675
+ }
53676
+ };
53677
+ });
53678
+ module2.exports.signals = function() {
53679
+ return signals;
53680
+ };
53681
+ loaded = false;
53682
+ load = function load2() {
53683
+ if (loaded || !processOk(global.process)) return;
53684
+ loaded = true;
53685
+ emitter.count += 1;
53686
+ signals = signals.filter(function(sig) {
53687
+ try {
53688
+ process2.on(sig, sigListeners[sig]);
53689
+ return true;
53690
+ } catch (er) {
53691
+ return false;
53692
+ }
53693
+ });
53694
+ process2.emit = processEmit;
53695
+ process2.reallyExit = processReallyExit;
53696
+ };
53697
+ module2.exports.load = load;
53698
+ originalProcessReallyExit = process2.reallyExit;
53699
+ processReallyExit = function processReallyExit2(code) {
53700
+ if (!processOk(global.process)) return;
53701
+ process2.exitCode = code || 0;
53702
+ emit("exit", process2.exitCode, null);
53703
+ emit("afterexit", process2.exitCode, null);
53704
+ originalProcessReallyExit.call(process2, process2.exitCode);
53705
+ };
53706
+ originalProcessEmit = process2.emit;
53707
+ processEmit = function processEmit2(ev, arg) {
53708
+ if (ev === "exit" && processOk(global.process)) {
53709
+ if (arg !== void 0) process2.exitCode = arg;
53710
+ var ret = originalProcessEmit.apply(this, arguments);
53711
+ emit("exit", process2.exitCode, null);
53712
+ emit("afterexit", process2.exitCode, null);
53713
+ return ret;
53714
+ } else return originalProcessEmit.apply(this, arguments);
53715
+ };
53716
+ }
53717
+ var assert7;
53718
+ var signals;
53719
+ var isWin3;
53720
+ var EE;
53721
+ var emitter;
53722
+ var unload;
53723
+ var emit;
53724
+ var sigListeners;
53725
+ var loaded;
53726
+ var load;
53727
+ var originalProcessReallyExit;
53728
+ var processReallyExit;
53729
+ var originalProcessEmit;
53730
+ var processEmit;
53731
+ } });
53732
+ var require_p_finally = __commonJS({ "../../node_modules/.pnpm/p-finally@2.0.1/node_modules/p-finally/index.js"(exports2, module2) {
53733
+ module2.exports = async (promise, onFinally = () => {}) => {
53734
+ let value;
53735
+ try {
53736
+ value = await promise;
53737
+ } catch (error) {
53738
+ await onFinally();
53739
+ throw error;
53740
+ }
53741
+ await onFinally();
53742
+ return value;
53743
+ };
53744
+ } });
53745
+ var require_kill = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/kill.js"(exports2, module2) {
53746
+ var os = __require("os");
53747
+ var onExit = require_signal_exit();
53748
+ var pFinally = require_p_finally();
53749
+ var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
53750
+ var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
53751
+ const killResult = kill(signal);
53752
+ setKillTimeout(kill, signal, options, killResult);
53753
+ return killResult;
53754
+ };
53755
+ var setKillTimeout = (kill, signal, options, killResult) => {
53756
+ if (!shouldForceKill(signal, options, killResult)) return;
53757
+ const timeout = getForceKillAfterTimeout(options);
53758
+ setTimeout(() => {
53759
+ kill("SIGKILL");
53760
+ }, timeout).unref();
53761
+ };
53762
+ var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => {
53763
+ return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
53764
+ };
53765
+ var isSigterm = (signal) => {
53766
+ return signal === os.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
53767
+ };
53768
+ var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
53769
+ if (forceKillAfterTimeout === true) return DEFAULT_FORCE_KILL_TIMEOUT;
53770
+ if (!Number.isInteger(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
53771
+ return forceKillAfterTimeout;
53772
+ };
53773
+ var spawnedCancel = (spawned, context) => {
53774
+ if (spawned.kill()) context.isCanceled = true;
53775
+ };
53776
+ var timeoutKill = (spawned, signal, reject) => {
53777
+ spawned.kill(signal);
53778
+ reject(Object.assign(/* @__PURE__ */ new Error("Timed out"), {
53779
+ timedOut: true,
53780
+ signal
53781
+ }));
53782
+ };
53783
+ var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
53784
+ if (timeout === 0 || timeout === void 0) return spawnedPromise;
53785
+ if (!Number.isInteger(timeout) || timeout < 0) throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
53786
+ let timeoutId;
53787
+ const timeoutPromise = new Promise((resolve, reject) => {
53788
+ timeoutId = setTimeout(() => {
53789
+ timeoutKill(spawned, killSignal, reject);
53790
+ }, timeout);
53791
+ });
53792
+ const safeSpawnedPromise = pFinally(spawnedPromise, () => {
53793
+ clearTimeout(timeoutId);
53794
+ });
53795
+ return Promise.race([timeoutPromise, safeSpawnedPromise]);
53796
+ };
53797
+ var setExitHandler = (spawned, { cleanup, detached }, timedPromise) => {
53798
+ if (!cleanup || detached) return timedPromise;
53799
+ return pFinally(timedPromise, onExit(() => {
53800
+ spawned.kill();
53801
+ }));
53802
+ };
53803
+ module2.exports = {
53804
+ spawnedKill,
53805
+ spawnedCancel,
53806
+ setupTimeout,
53807
+ setExitHandler
53808
+ };
53809
+ } });
53810
+ var require_is_stream = __commonJS({ "../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports2, module2) {
53811
+ var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
53812
+ isStream.writable = (stream) => isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
53813
+ isStream.readable = (stream) => isStream(stream) && stream.readable !== false && typeof stream._read === "function" && typeof stream._readableState === "object";
53814
+ isStream.duplex = (stream) => isStream.writable(stream) && isStream.readable(stream);
53815
+ isStream.transform = (stream) => isStream.duplex(stream) && typeof stream._transform === "function";
53816
+ module2.exports = isStream;
53817
+ } });
53818
+ var require_pump = __commonJS({ "../../node_modules/.pnpm/pump@3.0.2/node_modules/pump/index.js"(exports2, module2) {
53819
+ var once = require_once();
53820
+ var eos2 = require_end_of_stream();
53821
+ var fs7;
53822
+ try {
53823
+ fs7 = __require("fs");
53824
+ } catch (e) {}
53825
+ var noop = function() {};
53826
+ var ancient = /^v?\.0/.test(process.version);
53827
+ var isFn = function(fn) {
53828
+ return typeof fn === "function";
53829
+ };
53830
+ var isFS = function(stream) {
53831
+ if (!ancient) return false;
53832
+ if (!fs7) return false;
53833
+ return (stream instanceof (fs7.ReadStream || noop) || stream instanceof (fs7.WriteStream || noop)) && isFn(stream.close);
53834
+ };
53835
+ var isRequest = function(stream) {
53836
+ return stream.setHeader && isFn(stream.abort);
53837
+ };
53838
+ var destroyer = function(stream, reading, writing, callback) {
53839
+ callback = once(callback);
53840
+ var closed = false;
53841
+ stream.on("close", function() {
53842
+ closed = true;
53843
+ });
53844
+ eos2(stream, {
53845
+ readable: reading,
53846
+ writable: writing
53847
+ }, function(err) {
53848
+ if (err) return callback(err);
53849
+ closed = true;
53850
+ callback();
53851
+ });
53852
+ var destroyed = false;
53853
+ return function(err) {
53854
+ if (closed) return;
53855
+ if (destroyed) return;
53856
+ destroyed = true;
53857
+ if (isFS(stream)) return stream.close(noop);
53858
+ if (isRequest(stream)) return stream.abort();
53859
+ if (isFn(stream.destroy)) return stream.destroy();
53860
+ callback(err || /* @__PURE__ */ new Error("stream was destroyed"));
53861
+ };
53862
+ };
53863
+ var call = function(fn) {
53864
+ fn();
53865
+ };
53866
+ var pipe = function(from, to) {
53867
+ return from.pipe(to);
53868
+ };
53869
+ var pump = function() {
53870
+ var streams = Array.prototype.slice.call(arguments);
53871
+ var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop;
53872
+ if (Array.isArray(streams[0])) streams = streams[0];
53873
+ if (streams.length < 2) throw new Error("pump requires two streams per minimum");
53874
+ var error;
53875
+ var destroys = streams.map(function(stream, i) {
53876
+ var reading = i < streams.length - 1;
53877
+ return destroyer(stream, reading, i > 0, function(err) {
53878
+ if (!error) error = err;
53879
+ if (err) destroys.forEach(call);
53880
+ if (reading) return;
53881
+ destroys.forEach(call);
53882
+ callback(error);
53883
+ });
53884
+ });
53885
+ return streams.reduce(pipe);
53886
+ };
53887
+ module2.exports = pump;
53888
+ } });
53889
+ var require_buffer_stream = __commonJS({ "../../node_modules/.pnpm/get-stream@5.2.0/node_modules/get-stream/buffer-stream.js"(exports2, module2) {
53890
+ var { PassThrough: PassThroughStream } = __require("stream");
53891
+ module2.exports = (options) => {
53892
+ options = { ...options };
53893
+ const { array } = options;
53894
+ let { encoding } = options;
53895
+ const isBuffer = encoding === "buffer";
53896
+ let objectMode = false;
53897
+ if (array) objectMode = !(encoding || isBuffer);
53898
+ else encoding = encoding || "utf8";
53899
+ if (isBuffer) encoding = null;
53900
+ const stream = new PassThroughStream({ objectMode });
53901
+ if (encoding) stream.setEncoding(encoding);
53902
+ let length = 0;
53903
+ const chunks = [];
53904
+ stream.on("data", (chunk) => {
53905
+ chunks.push(chunk);
53906
+ if (objectMode) length = chunks.length;
53907
+ else length += chunk.length;
53908
+ });
53909
+ stream.getBufferedValue = () => {
53910
+ if (array) return chunks;
53911
+ return isBuffer ? Buffer.concat(chunks, length) : chunks.join("");
53912
+ };
53913
+ stream.getBufferedLength = () => length;
53914
+ return stream;
53915
+ };
53916
+ } });
53917
+ var require_get_stream = __commonJS({ "../../node_modules/.pnpm/get-stream@5.2.0/node_modules/get-stream/index.js"(exports2, module2) {
53918
+ var { constants: BufferConstants } = __require("buffer");
53919
+ var pump = require_pump();
53920
+ var bufferStream = require_buffer_stream();
53921
+ var MaxBufferError = class extends Error {
53922
+ constructor() {
53923
+ super("maxBuffer exceeded");
53924
+ this.name = "MaxBufferError";
53925
+ }
53926
+ };
53927
+ async function getStream(inputStream, options) {
53928
+ if (!inputStream) return Promise.reject(/* @__PURE__ */ new Error("Expected a stream"));
53929
+ options = {
53930
+ maxBuffer: Infinity,
53931
+ ...options
53932
+ };
53933
+ const { maxBuffer } = options;
53934
+ let stream;
53935
+ await new Promise((resolve, reject) => {
53936
+ const rejectPromise = (error) => {
53937
+ if (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) error.bufferedData = stream.getBufferedValue();
53938
+ reject(error);
53939
+ };
53940
+ stream = pump(inputStream, bufferStream(options), (error) => {
53941
+ if (error) {
53942
+ rejectPromise(error);
53943
+ return;
53944
+ }
53945
+ resolve();
53946
+ });
53947
+ stream.on("data", () => {
53948
+ if (stream.getBufferedLength() > maxBuffer) rejectPromise(new MaxBufferError());
53949
+ });
53950
+ });
53951
+ return stream.getBufferedValue();
53952
+ }
53953
+ module2.exports = getStream;
53954
+ module2.exports.default = getStream;
53955
+ module2.exports.buffer = (stream, options) => getStream(stream, {
53956
+ ...options,
53957
+ encoding: "buffer"
53958
+ });
53959
+ module2.exports.array = (stream, options) => getStream(stream, {
53960
+ ...options,
53961
+ array: true
53962
+ });
53963
+ module2.exports.MaxBufferError = MaxBufferError;
53964
+ } });
53965
+ var require_merge_stream = __commonJS({ "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports2, module2) {
53966
+ var { PassThrough } = __require("stream");
53967
+ module2.exports = function() {
53968
+ var sources = [];
53969
+ var output = new PassThrough({ objectMode: true });
53970
+ output.setMaxListeners(0);
53971
+ output.add = add;
53972
+ output.isEmpty = isEmpty;
53973
+ output.on("unpipe", remove2);
53974
+ Array.prototype.slice.call(arguments).forEach(add);
53975
+ return output;
53976
+ function add(source) {
53977
+ if (Array.isArray(source)) {
53978
+ source.forEach(add);
53979
+ return this;
53980
+ }
53981
+ sources.push(source);
53982
+ source.once("end", remove2.bind(null, source));
53983
+ source.once("error", output.emit.bind(output, "error"));
53984
+ source.pipe(output, { end: false });
53985
+ return this;
53986
+ }
53987
+ function isEmpty() {
53988
+ return sources.length == 0;
53989
+ }
53990
+ function remove2(source) {
53991
+ sources = sources.filter(function(it) {
53992
+ return it !== source;
53993
+ });
53994
+ if (!sources.length && output.readable) output.end();
53995
+ }
53996
+ };
53997
+ } });
53998
+ var require_stream2 = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/stream.js"(exports2, module2) {
53999
+ var isStream = require_is_stream();
54000
+ var getStream = require_get_stream();
54001
+ var mergeStream = require_merge_stream();
54002
+ var handleInput = (spawned, input) => {
54003
+ if (input === void 0 || spawned.stdin === void 0) return;
54004
+ if (isStream(input)) input.pipe(spawned.stdin);
54005
+ else spawned.stdin.end(input);
54006
+ };
54007
+ var makeAllStream = (spawned, { all }) => {
54008
+ if (!all || !spawned.stdout && !spawned.stderr) return;
54009
+ const mixed = mergeStream();
54010
+ if (spawned.stdout) mixed.add(spawned.stdout);
54011
+ if (spawned.stderr) mixed.add(spawned.stderr);
54012
+ return mixed;
54013
+ };
54014
+ var getBufferedData = async (stream, streamPromise) => {
54015
+ if (!stream) return;
54016
+ stream.destroy();
54017
+ try {
54018
+ return await streamPromise;
54019
+ } catch (error) {
54020
+ return error.bufferedData;
54021
+ }
54022
+ };
54023
+ var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
54024
+ if (!stream || !buffer) return;
54025
+ if (encoding) return getStream(stream, {
54026
+ encoding,
54027
+ maxBuffer
54028
+ });
54029
+ return getStream.buffer(stream, { maxBuffer });
54030
+ };
54031
+ var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
54032
+ const stdoutPromise = getStreamPromise(stdout, {
54033
+ encoding,
54034
+ buffer,
54035
+ maxBuffer
54036
+ });
54037
+ const stderrPromise = getStreamPromise(stderr, {
54038
+ encoding,
54039
+ buffer,
54040
+ maxBuffer
54041
+ });
54042
+ const allPromise = getStreamPromise(all, {
54043
+ encoding,
54044
+ buffer,
54045
+ maxBuffer: maxBuffer * 2
54046
+ });
54047
+ try {
54048
+ return await Promise.all([
54049
+ processDone,
54050
+ stdoutPromise,
54051
+ stderrPromise,
54052
+ allPromise
54053
+ ]);
54054
+ } catch (error) {
54055
+ return Promise.all([
54056
+ {
54057
+ error,
54058
+ signal: error.signal,
54059
+ timedOut: error.timedOut
54060
+ },
54061
+ getBufferedData(stdout, stdoutPromise),
54062
+ getBufferedData(stderr, stderrPromise),
54063
+ getBufferedData(all, allPromise)
54064
+ ]);
54065
+ }
54066
+ };
54067
+ var validateInputSync = ({ input }) => {
54068
+ if (isStream(input)) throw new TypeError("The `input` option cannot be a stream in sync mode");
54069
+ };
54070
+ module2.exports = {
54071
+ handleInput,
54072
+ makeAllStream,
54073
+ getSpawnedResult,
54074
+ validateInputSync
54075
+ };
54076
+ } });
54077
+ var require_promise = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/promise.js"(exports2, module2) {
54078
+ var mergePromiseProperty = (spawned, promise, property) => {
54079
+ const value = typeof promise === "function" ? (...args) => promise()[property](...args) : promise[property].bind(promise);
54080
+ Object.defineProperty(spawned, property, {
54081
+ value,
54082
+ writable: true,
54083
+ enumerable: false,
54084
+ configurable: true
54085
+ });
54086
+ };
54087
+ var mergePromise = (spawned, promise) => {
54088
+ mergePromiseProperty(spawned, promise, "then");
54089
+ mergePromiseProperty(spawned, promise, "catch");
54090
+ if (Promise.prototype.finally) mergePromiseProperty(spawned, promise, "finally");
54091
+ return spawned;
54092
+ };
54093
+ var getSpawnedPromise = (spawned) => {
54094
+ return new Promise((resolve, reject) => {
54095
+ spawned.on("exit", (exitCode, signal) => {
54096
+ resolve({
54097
+ exitCode,
54098
+ signal
54099
+ });
54100
+ });
54101
+ spawned.on("error", (error) => {
54102
+ reject(error);
54103
+ });
54104
+ if (spawned.stdin) spawned.stdin.on("error", (error) => {
54105
+ reject(error);
54106
+ });
54107
+ });
54108
+ };
54109
+ module2.exports = {
54110
+ mergePromise,
54111
+ getSpawnedPromise
54112
+ };
54113
+ } });
54114
+ var require_command = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/command.js"(exports2, module2) {
54115
+ var SPACES_REGEXP = / +/g;
54116
+ var joinCommand = (file, args = []) => {
54117
+ if (!Array.isArray(args)) return file;
54118
+ return [file, ...args].join(" ");
54119
+ };
54120
+ var handleEscaping = (tokens, token, index) => {
54121
+ if (index === 0) return [token];
54122
+ const previousToken = tokens[tokens.length - 1];
54123
+ if (previousToken.endsWith("\\")) return [...tokens.slice(0, -1), `${previousToken.slice(0, -1)} ${token}`];
54124
+ return [...tokens, token];
54125
+ };
54126
+ var parseCommand = (command) => {
54127
+ return command.trim().split(SPACES_REGEXP).reduce(handleEscaping, []);
54128
+ };
54129
+ module2.exports = {
54130
+ joinCommand,
54131
+ parseCommand
54132
+ };
54133
+ } });
54134
+ var require_execa = __commonJS({ "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/index.js"(exports2, module2) {
54135
+ var path7 = __require("path");
54136
+ var childProcess = __require("child_process");
54137
+ var crossSpawn = require_cross_spawn2();
54138
+ var stripFinalNewline = require_strip_final_newline();
54139
+ var npmRunPath = require_npm_run_path();
54140
+ var onetime = require_onetime();
54141
+ var makeError = require_error();
54142
+ var normalizeStdio = require_stdio();
54143
+ var { spawnedKill, spawnedCancel, setupTimeout, setExitHandler } = require_kill();
54144
+ var { handleInput, getSpawnedResult, makeAllStream, validateInputSync } = require_stream2();
54145
+ var { mergePromise, getSpawnedPromise } = require_promise();
54146
+ var { joinCommand, parseCommand } = require_command();
54147
+ var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
54148
+ var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
54149
+ const env = extendEnv ? {
54150
+ ...process.env,
54151
+ ...envOption
54152
+ } : envOption;
54153
+ if (preferLocal) return npmRunPath.env({
54154
+ env,
54155
+ cwd: localDir,
54156
+ execPath
54157
+ });
54158
+ return env;
54159
+ };
54160
+ var handleArgs = (file, args, options = {}) => {
54161
+ const parsed = crossSpawn._parse(file, args, options);
54162
+ file = parsed.command;
54163
+ args = parsed.args;
54164
+ options = parsed.options;
54165
+ options = {
54166
+ maxBuffer: DEFAULT_MAX_BUFFER,
54167
+ buffer: true,
54168
+ stripFinalNewline: true,
54169
+ extendEnv: true,
54170
+ preferLocal: false,
54171
+ localDir: options.cwd || process.cwd(),
54172
+ execPath: process.execPath,
54173
+ encoding: "utf8",
54174
+ reject: true,
54175
+ cleanup: true,
54176
+ all: false,
54177
+ ...options,
54178
+ windowsHide: true
54179
+ };
54180
+ options.env = getEnv(options);
54181
+ options.stdio = normalizeStdio(options);
54182
+ if (process.platform === "win32" && path7.basename(file, ".exe") === "cmd") args.unshift("/q");
54183
+ return {
54184
+ file,
54185
+ args,
54186
+ options,
54187
+ parsed
54188
+ };
54189
+ };
54190
+ var handleOutput = (options, value, error) => {
54191
+ if (typeof value !== "string" && !Buffer.isBuffer(value)) return error === void 0 ? void 0 : "";
54192
+ if (options.stripFinalNewline) return stripFinalNewline(value);
54193
+ return value;
54194
+ };
54195
+ var execa2 = (file, args, options) => {
54196
+ const parsed = handleArgs(file, args, options);
54197
+ const command = joinCommand(file, args);
54198
+ let spawned;
54199
+ try {
54200
+ spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
54201
+ } catch (error) {
54202
+ return mergePromise(new childProcess.ChildProcess(), Promise.reject(makeError({
54203
+ error,
54204
+ stdout: "",
54205
+ stderr: "",
54206
+ all: "",
54207
+ command,
54208
+ parsed,
54209
+ timedOut: false,
54210
+ isCanceled: false,
54211
+ killed: false
54212
+ })));
54213
+ }
54214
+ const spawnedPromise = getSpawnedPromise(spawned);
54215
+ const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
54216
+ const processDone = setExitHandler(spawned, parsed.options, timedPromise);
54217
+ const context = { isCanceled: false };
54218
+ spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
54219
+ spawned.cancel = spawnedCancel.bind(null, spawned, context);
54220
+ const handlePromise = async () => {
54221
+ const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
54222
+ const stdout = handleOutput(parsed.options, stdoutResult);
54223
+ const stderr = handleOutput(parsed.options, stderrResult);
54224
+ const all = handleOutput(parsed.options, allResult);
54225
+ if (error || exitCode !== 0 || signal !== null) {
54226
+ const returnedError = makeError({
54227
+ error,
54228
+ exitCode,
54229
+ signal,
54230
+ stdout,
54231
+ stderr,
54232
+ all,
54233
+ command,
54234
+ parsed,
54235
+ timedOut,
54236
+ isCanceled: context.isCanceled,
54237
+ killed: spawned.killed
54238
+ });
54239
+ if (!parsed.options.reject) return returnedError;
54240
+ throw returnedError;
54241
+ }
54242
+ return {
54243
+ command,
54244
+ exitCode: 0,
54245
+ stdout,
54246
+ stderr,
54247
+ all,
54248
+ failed: false,
54249
+ timedOut: false,
54250
+ isCanceled: false,
54251
+ killed: false
54252
+ };
54253
+ };
54254
+ const handlePromiseOnce = onetime(handlePromise);
54255
+ crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed);
54256
+ handleInput(spawned, parsed.options.input);
54257
+ spawned.all = makeAllStream(spawned, parsed.options);
54258
+ return mergePromise(spawned, handlePromiseOnce);
54259
+ };
54260
+ module2.exports = execa2;
54261
+ module2.exports.sync = (file, args, options) => {
54262
+ const parsed = handleArgs(file, args, options);
54263
+ const command = joinCommand(file, args);
54264
+ validateInputSync(parsed.options);
54265
+ let result;
54266
+ try {
54267
+ result = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);
54268
+ } catch (error) {
54269
+ throw makeError({
54270
+ error,
54271
+ stdout: "",
54272
+ stderr: "",
54273
+ all: "",
54274
+ command,
54275
+ parsed,
54276
+ timedOut: false,
54277
+ isCanceled: false,
54278
+ killed: false
54279
+ });
54280
+ }
54281
+ const stdout = handleOutput(parsed.options, result.stdout, result.error);
54282
+ const stderr = handleOutput(parsed.options, result.stderr, result.error);
54283
+ if (result.error || result.status !== 0 || result.signal !== null) {
54284
+ const error = makeError({
54285
+ stdout,
54286
+ stderr,
54287
+ error: result.error,
54288
+ signal: result.signal,
54289
+ exitCode: result.status,
54290
+ command,
54291
+ parsed,
54292
+ timedOut: result.error && result.error.code === "ETIMEDOUT",
54293
+ isCanceled: false,
54294
+ killed: result.signal !== null
54295
+ });
54296
+ if (!parsed.options.reject) return error;
54297
+ throw error;
54298
+ }
54299
+ return {
54300
+ command,
54301
+ exitCode: 0,
54302
+ stdout,
54303
+ stderr,
54304
+ failed: false,
54305
+ timedOut: false,
54306
+ isCanceled: false,
54307
+ killed: false
54308
+ };
54309
+ };
54310
+ module2.exports.command = (command, options) => {
54311
+ const [file, ...args] = parseCommand(command);
54312
+ return execa2(file, args, options);
54313
+ };
54314
+ module2.exports.commandSync = (command, options) => {
54315
+ const [file, ...args] = parseCommand(command);
54316
+ return execa2.sync(file, args, options);
54317
+ };
54318
+ module2.exports.node = (scriptPath, args, options = {}) => {
54319
+ if (args && !Array.isArray(args) && typeof args === "object") {
54320
+ options = args;
54321
+ args = [];
54322
+ }
54323
+ const stdio = normalizeStdio.node(options);
54324
+ const { nodePath = process.execPath, nodeOptions = process.execArgv } = options;
54325
+ return execa2(nodePath, [
54326
+ ...nodeOptions,
54327
+ scriptPath,
54328
+ ...Array.isArray(args) ? args : []
54329
+ ], {
54330
+ ...options,
54331
+ stdin: void 0,
54332
+ stdout: void 0,
54333
+ stderr: void 0,
54334
+ stdio,
54335
+ shell: false
54336
+ });
54337
+ };
54338
+ } });
52798
54339
  var src_exports = {};
52799
54340
  __export(src_exports, {
52800
54341
  BACKEND_FRAMEWORKS: () => BACKEND_FRAMEWORKS,
@@ -52832,13 +54373,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
52832
54373
  getLatestNodeVersion: () => getLatestNodeVersion,
52833
54374
  getNodeBinPath: () => getNodeBinPath,
52834
54375
  getNodeBinPaths: () => getNodeBinPaths,
52835
- getNodeVersion: () => getNodeVersion,
52836
54376
  getOsRelease: () => getOsRelease,
54377
+ getPackageJson: () => getPackageJson,
52837
54378
  getPathForPackageManager: () => getPathForPackageManager,
52838
54379
  getPlatformEnv: () => getPlatformEnv,
52839
54380
  getPrefixedEnvVars: () => getPrefixedEnvVars,
52840
54381
  getPrettyError: () => getPrettyError,
52841
54382
  getProvidedRuntime: () => getProvidedRuntime,
54383
+ getRuntimeNodeVersion: () => getRuntimeNodeVersion,
52842
54384
  getScriptName: () => getScriptName,
52843
54385
  getSpawnOptions: () => getSpawnOptions,
52844
54386
  getSupportedBunVersion: () => getSupportedBunVersion,
@@ -52853,16 +54395,19 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
52853
54395
  isDirectory: () => isDirectory,
52854
54396
  isExperimentalBackendsEnabled: () => isExperimentalBackendsEnabled,
52855
54397
  isExperimentalBackendsWithoutIntrospectionEnabled: () => isExperimentalBackendsWithoutIntrospectionEnabled,
54398
+ isPythonEntrypoint: () => isPythonEntrypoint,
52856
54399
  isSymbolicLink: () => isSymbolicLink,
52857
54400
  normalizePath: () => normalizePath,
52858
54401
  readConfigFile: () => readConfigFile,
52859
54402
  rename: () => rename,
54403
+ resetCustomInstallCommandSet: () => resetCustomInstallCommandSet,
52860
54404
  runBundleInstall: () => runBundleInstall,
52861
54405
  runCustomInstallCommand: () => runCustomInstallCommand,
52862
54406
  runNpmInstall: () => runNpmInstall,
52863
54407
  runPackageJsonScript: () => runPackageJsonScript,
52864
54408
  runPipInstall: () => runPipInstall,
52865
54409
  runShellScript: () => runShellScript,
54410
+ runStdlibPyScript: () => runStdlibPyScript,
52866
54411
  scanParentDirs: () => scanParentDirs,
52867
54412
  shouldServe: () => shouldServe,
52868
54413
  shouldUseExperimentalBackends: () => shouldUseExperimentalBackends,
@@ -53601,7 +55146,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53601
55146
  }
53602
55147
  var import_assert6 = __toESM(__require("assert"));
53603
55148
  var import_fs_extra7 = __toESM(require_lib());
53604
- var import_path5 = __toESM(__require("path"));
55149
+ var import_path6 = __toESM(__require("path"));
53605
55150
  var import_async_sema4 = __toESM(require_async_sema());
53606
55151
  var import_cross_spawn = __toESM(require_cross_spawn());
53607
55152
  var import_semver2 = __toESM(require_semver2());
@@ -53721,14 +55266,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53721
55266
  return (0, import_semver.intersects)(o.range, engineRange) && (availableVersions?.length ? availableVersions.includes(o.major) : true);
53722
55267
  }))) throw new NowBuildError({
53723
55268
  code: "BUILD_UTILS_NODE_VERSION_INVALID",
53724
- link: "http://vercel.link/node-version",
55269
+ link: "https://vercel.link/node-version",
53725
55270
  message: `Found invalid Node.js Version: "${engineRange}". ${getHint(isAuto, availableVersions)}`
53726
55271
  });
53727
55272
  }
53728
55273
  if (!selection) selection = getLatestNodeVersion(availableVersions);
53729
55274
  if (selection.state === "discontinued") throw new NowBuildError({
53730
55275
  code: "BUILD_UTILS_NODE_VERSION_DISCONTINUED",
53731
- link: "http://vercel.link/node-version",
55276
+ link: "https://vercel.link/node-version",
53732
55277
  message: `${`Node.js Version "${selection.range}" is discontinued and must be upgraded.`} ${getHint(isAuto)}`
53733
55278
  });
53734
55279
  debug$1(`Selected Node.js ${selection.range}`);
@@ -53762,6 +55307,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53762
55307
  var import_toml = __toESM(require_toml());
53763
55308
  var import_fs_extra6 = __toESM(require_lib());
53764
55309
  var import_error_utils = __toESM(require_dist());
55310
+ var import_path5 = __require("path");
53765
55311
  async function readFileOrNull(file) {
53766
55312
  try {
53767
55313
  return await (0, import_fs_extra6.readFile)(file);
@@ -53788,6 +55334,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53788
55334
  }
53789
55335
  return null;
53790
55336
  }
55337
+ async function getPackageJson(dir) {
55338
+ const packagePath = (0, import_path5.join)(dir, "package.json");
55339
+ try {
55340
+ return JSON.parse(await (0, import_fs_extra6.readFile)(packagePath, "utf8"));
55341
+ } catch (err) {
55342
+ return {};
55343
+ }
55344
+ }
53791
55345
  var { hasOwnProperty: hasOwnProperty2 } = Object.prototype;
53792
55346
  function cloneEnv(...envs) {
53793
55347
  return envs.reduce((obj, env) => {
@@ -53845,12 +55399,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53845
55399
  return true;
53846
55400
  }
53847
55401
  function* traverseUpDirectories({ start, base }) {
53848
- let current = import_path5.default.normalize(start);
53849
- const normalizedRoot = base ? import_path5.default.normalize(base) : void 0;
55402
+ let current = import_path6.default.normalize(start);
55403
+ const normalizedRoot = base ? import_path6.default.normalize(base) : void 0;
53850
55404
  while (current) {
53851
55405
  yield current;
53852
55406
  if (current === normalizedRoot) break;
53853
- const next = import_path5.default.join(current, "..");
55407
+ const next = import_path6.default.join(current, "..");
53854
55408
  current = next === current ? void 0 : next;
53855
55409
  }
53856
55410
  }
@@ -53860,24 +55414,24 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53860
55414
  start,
53861
55415
  base
53862
55416
  })) {
53863
- const packageJsonPath = import_path5.default.join(dir, "package.json");
55417
+ const packageJsonPath = import_path6.default.join(dir, "package.json");
53864
55418
  if (await import_fs_extra7.default.pathExists(packageJsonPath)) curRootPackageJsonPath = packageJsonPath;
53865
55419
  }
53866
55420
  return curRootPackageJsonPath ? {
53867
55421
  packageJson: await import_fs_extra7.default.readJson(curRootPackageJsonPath),
53868
- rootDir: import_path5.default.dirname(curRootPackageJsonPath)
55422
+ rootDir: import_path6.default.dirname(curRootPackageJsonPath)
53869
55423
  } : void 0;
53870
55424
  }
53871
55425
  async function getNodeBinPath({ cwd }) {
53872
55426
  const { lockfilePath } = await scanParentDirs(cwd);
53873
- const dir = import_path5.default.dirname(lockfilePath || cwd);
53874
- return import_path5.default.join(dir, "node_modules", ".bin");
55427
+ const dir = import_path6.default.dirname(lockfilePath || cwd);
55428
+ return import_path6.default.join(dir, "node_modules", ".bin");
53875
55429
  }
53876
55430
  function getNodeBinPaths({ start, base }) {
53877
55431
  return Array.from(traverseUpDirectories({
53878
55432
  start,
53879
55433
  base
53880
- })).map((dir) => import_path5.default.join(dir, "node_modules/.bin"));
55434
+ })).map((dir) => import_path6.default.join(dir, "node_modules/.bin"));
53881
55435
  }
53882
55436
  async function chmodPlusX(fsPath) {
53883
55437
  const s = await import_fs_extra7.default.stat(fsPath);
@@ -53887,10 +55441,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53887
55441
  await import_fs_extra7.default.chmod(fsPath, base8);
53888
55442
  }
53889
55443
  async function runShellScript(fsPath, args = [], spawnOpts) {
53890
- (0, import_assert6.default)(import_path5.default.isAbsolute(fsPath));
53891
- const destPath = import_path5.default.dirname(fsPath);
55444
+ (0, import_assert6.default)(import_path6.default.isAbsolute(fsPath));
55445
+ const destPath = import_path6.default.dirname(fsPath);
53892
55446
  await chmodPlusX(fsPath);
53893
- const command = `./${import_path5.default.basename(fsPath)}`;
55447
+ const command = `./${import_path6.default.basename(fsPath)}`;
53894
55448
  await spawnAsync(command, args, {
53895
55449
  ...spawnOpts,
53896
55450
  cwd: destPath,
@@ -53903,7 +55457,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53903
55457
  if (isBunVersion(nodeVersion)) return opts;
53904
55458
  if (!meta.isDev) {
53905
55459
  let found = false;
53906
- const pathSegments = (opts.env.PATH || process.env.PATH || "").split(import_path5.default.delimiter).map((segment) => {
55460
+ const pathSegments = (opts.env.PATH || process.env.PATH || "").split(import_path6.default.delimiter).map((segment) => {
53907
55461
  if (/^\/node[0-9]+\/bin/.test(segment)) {
53908
55462
  found = true;
53909
55463
  return `/node${nodeVersion.major}/bin`;
@@ -53911,11 +55465,11 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53911
55465
  return segment;
53912
55466
  });
53913
55467
  if (!found) pathSegments.unshift(`/node${nodeVersion.major}/bin`);
53914
- opts.env.PATH = pathSegments.filter(Boolean).join(import_path5.default.delimiter);
55468
+ opts.env.PATH = pathSegments.filter(Boolean).join(import_path6.default.delimiter);
53915
55469
  }
53916
55470
  return opts;
53917
55471
  }
53918
- async function getNodeVersion(destPath, fallbackVersion = process.env.VERCEL_PROJECT_SETTINGS_NODE_VERSION, config = {}, meta = {}, availableVersions = getAvailableNodeVersions()) {
55472
+ async function getRuntimeNodeVersion(destPath, fallbackVersion = process.env.VERCEL_PROJECT_SETTINGS_NODE_VERSION, config = {}, meta = {}, availableVersions = getAvailableNodeVersions()) {
53919
55473
  if (config.bunVersion) return getSupportedBunVersion(config.bunVersion);
53920
55474
  const latestVersion = getLatestNodeVersion(availableVersions);
53921
55475
  if (meta.isDev) {
@@ -53928,14 +55482,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53928
55482
  const supportedNodeVersion = await getSupportedNodeVersion(packageJsonVersion || configuredVersion, !packageJsonVersion, availableVersions);
53929
55483
  if (packageJson?.engines?.node) {
53930
55484
  const { node } = packageJson.engines;
53931
- if (configuredVersion && !(0, import_semver2.intersects)(configuredVersion, supportedNodeVersion.range)) console.warn(`Warning: Due to "engines": { "node": "${node}" } in your \`package.json\` file, the Node.js Version defined in your Project Settings ("${configuredVersion}") will not apply, Node.js Version "${supportedNodeVersion.range}" will be used instead. Learn More: http://vercel.link/node-version`);
53932
- if ((0, import_semver2.coerce)(node)?.raw === node) console.warn(`Warning: Detected "engines": { "node": "${node}" } in your \`package.json\` with major.minor.patch, but only major Node.js Version can be selected. Learn More: http://vercel.link/node-version`);
53933
- else if ((0, import_semver2.validRange)(node) && (0, import_semver2.intersects)(`${latestVersion.major + 1}.x`, node)) console.warn(`Warning: Detected "engines": { "node": "${node}" } in your \`package.json\` that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version`);
55485
+ if (configuredVersion && !(0, import_semver2.intersects)(configuredVersion, supportedNodeVersion.range)) console.warn(`Warning: Due to "engines": { "node": "${node}" } in your \`package.json\` file, the Node.js Version defined in your Project Settings ("${configuredVersion}") will not apply, Node.js Version "${supportedNodeVersion.range}" will be used instead. Learn More: https://vercel.link/node-version`);
55486
+ if ((0, import_semver2.coerce)(node)?.raw === node) console.warn(`Warning: Detected "engines": { "node": "${node}" } in your \`package.json\` with major.minor.patch, but only major Node.js Version can be selected. Learn More: https://vercel.link/node-version`);
55487
+ else if ((0, import_semver2.validRange)(node) && (0, import_semver2.intersects)(`${latestVersion.major + 1}.x`, node)) console.warn(`Warning: Detected "engines": { "node": "${node}" } in your \`package.json\` that will automatically upgrade when a new major Node.js Version is released. Learn More: https://vercel.link/node-version`);
53934
55488
  }
53935
55489
  return supportedNodeVersion;
53936
55490
  }
53937
55491
  async function scanParentDirs(destPath, readPackageJson = false, base = "/") {
53938
- (0, import_assert6.default)(import_path5.default.isAbsolute(destPath));
55492
+ (0, import_assert6.default)(import_path6.default.isAbsolute(destPath));
53939
55493
  const pkgJsonPath = await walkParentDirs({
53940
55494
  base,
53941
55495
  start: destPath,
@@ -54021,8 +55575,8 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54021
55575
  }
54022
55576
  async function checkTurboSupportsCorepack(turboVersionRange, rootDir) {
54023
55577
  if (turboVersionSpecifierSupportsCorepack(turboVersionRange)) return true;
54024
- const turboJsonPath = import_path5.default.join(rootDir, "turbo.json");
54025
- const turboJsoncPath = import_path5.default.join(rootDir, "turbo.jsonc");
55578
+ const turboJsonPath = import_path6.default.join(rootDir, "turbo.json");
55579
+ const turboJsoncPath = import_path6.default.join(rootDir, "turbo.jsonc");
54026
55580
  const [turboJsonExists, turboJsoncExists] = await Promise.all([import_fs_extra7.default.pathExists(turboJsonPath), import_fs_extra7.default.pathExists(turboJsoncPath)]);
54027
55581
  let turboJson = null;
54028
55582
  let turboConfigPath = null;
@@ -54031,7 +55585,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54031
55585
  if (turboConfigPath) try {
54032
55586
  turboJson = import_json5.default.parse(await import_fs_extra7.default.readFile(turboConfigPath, "utf8"));
54033
55587
  } catch (err) {
54034
- console.warn(`WARNING: Failed to parse ${import_path5.default.basename(turboConfigPath)}`);
55588
+ console.warn(`WARNING: Failed to parse ${import_path6.default.basename(turboConfigPath)}`);
54035
55589
  }
54036
55590
  return turboJson !== null && typeof turboJson === "object" && "globalPassThroughEnv" in turboJson && Array.isArray(turboJson.globalPassThroughEnv) && turboJson.globalPassThroughEnv.includes("COREPACK_HOME");
54037
55591
  }
@@ -54065,13 +55619,13 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54065
55619
  return true;
54066
55620
  }
54067
55621
  async function walkParentDirs({ base, start, filename }) {
54068
- (0, import_assert6.default)(import_path5.default.isAbsolute(base), "Expected \"base\" to be absolute path");
54069
- (0, import_assert6.default)(import_path5.default.isAbsolute(start), "Expected \"start\" to be absolute path");
55622
+ (0, import_assert6.default)(import_path6.default.isAbsolute(base), "Expected \"base\" to be absolute path");
55623
+ (0, import_assert6.default)(import_path6.default.isAbsolute(start), "Expected \"start\" to be absolute path");
54070
55624
  for (const dir of traverseUpDirectories({
54071
55625
  start,
54072
55626
  base
54073
55627
  })) {
54074
- const fullPath = import_path5.default.join(dir, filename);
55628
+ const fullPath = import_path6.default.join(dir, filename);
54075
55629
  if (await import_fs_extra7.default.pathExists(fullPath)) return fullPath;
54076
55630
  }
54077
55631
  return null;
@@ -54082,10 +55636,10 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54082
55636
  start,
54083
55637
  base
54084
55638
  })) {
54085
- const fullPaths = filenames.map((f) => import_path5.default.join(dir, f));
55639
+ const fullPaths = filenames.map((f) => import_path6.default.join(dir, f));
54086
55640
  const existResults = await Promise.all(fullPaths.map((f) => import_fs_extra7.default.pathExists(f)));
54087
55641
  const foundOneOrMore = existResults.some((b) => b);
54088
- const packageJsonPath = import_path5.default.join(dir, "package.json");
55642
+ const packageJsonPath = import_path6.default.join(dir, "package.json");
54089
55643
  const packageJson = await import_fs_extra7.default.readJSON(packageJsonPath).catch(() => null);
54090
55644
  if (packageJson?.packageManager) packageManager = packageJson.packageManager;
54091
55645
  if (foundOneOrMore) return {
@@ -54145,12 +55699,16 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54145
55699
  };
54146
55700
  }
54147
55701
  var runNpmInstallSema = new import_async_sema4.default(1);
55702
+ var customInstallCommandSet;
55703
+ function resetCustomInstallCommandSet() {
55704
+ customInstallCommandSet = void 0;
55705
+ }
54148
55706
  async function runNpmInstall(destPath, args = [], spawnOpts, meta, projectCreatedAt) {
54149
55707
  if (meta?.isDev) {
54150
55708
  debug$1("Skipping dependency installation because dev mode is enabled");
54151
55709
  return false;
54152
55710
  }
54153
- (0, import_assert6.default)(import_path5.default.isAbsolute(destPath));
55711
+ (0, import_assert6.default)(import_path6.default.isAbsolute(destPath));
54154
55712
  try {
54155
55713
  await runNpmInstallSema.acquire();
54156
55714
  const { cliType, packageJsonPath, packageJson, lockfileVersion, packageJsonPackageManager, turboSupportsCorepackHome } = await scanParentDirs(destPath, true);
@@ -54162,6 +55720,12 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54162
55720
  if (meta && packageJsonPath && defaultInstall) {
54163
55721
  const { alreadyInstalled, runNpmInstallSet } = checkIfAlreadyInstalled(meta.runNpmInstallSet, packageJsonPath);
54164
55722
  if (alreadyInstalled) return false;
55723
+ if (process.env.VERCEL_INSTALL_COMPLETED === "1") {
55724
+ debug$1(`Skipping dependency installation for ${packageJsonPath} because VERCEL_INSTALL_COMPLETED is set`);
55725
+ runNpmInstallSet.add(packageJsonPath);
55726
+ meta.runNpmInstallSet = runNpmInstallSet;
55727
+ return false;
55728
+ }
54165
55729
  meta.runNpmInstallSet = runNpmInstallSet;
54166
55730
  }
54167
55731
  if (cliType === "yarn") {
@@ -54217,11 +55781,11 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
54217
55781
  else debug$1(`Detected ${detectedPackageManager}. Added "${newPath}" to path. Based on assumed package manager "${cliType}", lockfile "${detectedLockfile}", and lockfileVersion "${lockfileVersion}"`);
54218
55782
  const newEnv = { ...env };
54219
55783
  const alreadyInPath = (newPath2) => {
54220
- return (env.PATH ?? "").split(import_path5.default.delimiter).includes(newPath2);
55784
+ return (env.PATH ?? "").split(import_path6.default.delimiter).includes(newPath2);
54221
55785
  };
54222
55786
  if (newPath && !alreadyInPath(newPath)) {
54223
55787
  const oldPath = env.PATH + "";
54224
- newEnv.PATH = `${newPath}${import_path5.default.delimiter}${oldPath}`;
55788
+ newEnv.PATH = `${newPath}${import_path6.default.delimiter}${oldPath}`;
54225
55789
  if (detectedLockfile && detectedPackageManager) {
54226
55790
  const detectedV9PnpmLockfile = detectedLockfile === "pnpm-lock.yaml" && lockfileVersion === 9;
54227
55791
  if (detectedPackageManager === "pnpm@10.x" && packageJsonPackageManager) {
@@ -54388,7 +55952,7 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54388
55952
  });
54389
55953
  if (corepackEnabled) overrides = NO_OVERRIDE;
54390
55954
  const alreadyInPath = (newPath) => {
54391
- return (env.PATH ?? "").split(import_path5.default.delimiter).includes(newPath);
55955
+ return (env.PATH ?? "").split(import_path6.default.delimiter).includes(newPath);
54392
55956
  };
54393
55957
  switch (true) {
54394
55958
  case cliType === "yarn" && !env.YARN_NODE_LINKER: return {
@@ -54408,6 +55972,17 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54408
55972
  }
54409
55973
  }
54410
55974
  async function runCustomInstallCommand({ destPath, installCommand, spawnOpts, projectCreatedAt }) {
55975
+ const normalizedPath = import_path6.default.normalize(destPath);
55976
+ const { alreadyInstalled, runNpmInstallSet } = checkIfAlreadyInstalled(customInstallCommandSet, normalizedPath);
55977
+ customInstallCommandSet = runNpmInstallSet;
55978
+ if (alreadyInstalled) {
55979
+ debug$1(`Skipping custom install command for ${normalizedPath} because it was already run`);
55980
+ return false;
55981
+ }
55982
+ if (process.env.VERCEL_INSTALL_COMPLETED === "1") {
55983
+ debug$1(`Skipping custom install command for ${normalizedPath} because VERCEL_INSTALL_COMPLETED is set`);
55984
+ return false;
55985
+ }
54411
55986
  console.log(`Running "install" command: \`${installCommand}\`...`);
54412
55987
  const { cliType, lockfileVersion, packageJson, packageJsonPackageManager, turboSupportsCorepackHome } = await scanParentDirs(destPath, true);
54413
55988
  const env = getEnvForPackageManager({
@@ -54425,9 +56000,10 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54425
56000
  env,
54426
56001
  cwd: destPath
54427
56002
  });
56003
+ return true;
54428
56004
  }
54429
56005
  async function runPackageJsonScript(destPath, scriptNames, spawnOpts, projectCreatedAt) {
54430
- (0, import_assert6.default)(import_path5.default.isAbsolute(destPath));
56006
+ (0, import_assert6.default)(import_path6.default.isAbsolute(destPath));
54431
56007
  const { packageJson, cliType, lockfileVersion, packageJsonPackageManager, turboSupportsCorepackHome } = await scanParentDirs(destPath, true);
54432
56008
  const scriptName = getScriptName(packageJson, typeof scriptNames === "string" ? [scriptNames] : scriptNames);
54433
56009
  if (!scriptName) return false;
@@ -54461,7 +56037,7 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54461
56037
  debug$1("Skipping dependency installation because dev mode is enabled");
54462
56038
  return;
54463
56039
  }
54464
- (0, import_assert6.default)(import_path5.default.isAbsolute(destPath));
56040
+ (0, import_assert6.default)(import_path6.default.isAbsolute(destPath));
54465
56041
  const opts = {
54466
56042
  ...spawnOpts,
54467
56043
  cwd: destPath,
@@ -54474,7 +56050,7 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54474
56050
  debug$1("Skipping dependency installation because dev mode is enabled");
54475
56051
  return;
54476
56052
  }
54477
- (0, import_assert6.default)(import_path5.default.isAbsolute(destPath));
56053
+ (0, import_assert6.default)(import_path6.default.isAbsolute(destPath));
54478
56054
  const opts = {
54479
56055
  ...spawnOpts,
54480
56056
  cwd: destPath,
@@ -54492,7 +56068,7 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54492
56068
  }
54493
56069
  }
54494
56070
  var installDependencies = (0, import_util2.deprecate)(runNpmInstall, "installDependencies() is deprecated. Please use runNpmInstall() instead.");
54495
- var import_path6 = __toESM(__require("path"));
56071
+ var import_path7 = __toESM(__require("path"));
54496
56072
  var import_fs_extra8 = __toESM(require_lib());
54497
56073
  var import_ignore = __toESM(require_ignore());
54498
56074
  function isCodedError(error) {
@@ -54510,8 +56086,8 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54510
56086
  throw error;
54511
56087
  }
54512
56088
  };
54513
- const vercelIgnorePath = import_path6.default.join(downloadPath, rootDirectory || "", ".vercelignore");
54514
- const nowIgnorePath = import_path6.default.join(downloadPath, rootDirectory || "", ".nowignore");
56089
+ const vercelIgnorePath = import_path7.default.join(downloadPath, rootDirectory || "", ".vercelignore");
56090
+ const nowIgnorePath = import_path7.default.join(downloadPath, rootDirectory || "", ".nowignore");
54515
56091
  const ignoreContents = [];
54516
56092
  try {
54517
56093
  ignoreContents.push(...(await Promise.all([readFile4(vercelIgnorePath), readFile4(nowIgnorePath)])).filter(Boolean));
@@ -54549,18 +56125,18 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54549
56125
  }
54550
56126
  return newEnvs;
54551
56127
  }
54552
- var import_path7 = __toESM(__require("path"));
56128
+ var import_path8 = __toESM(__require("path"));
54553
56129
  var import_fs2 = __require("fs");
54554
56130
  async function hardLinkDir(src, destDirs) {
54555
56131
  if (destDirs.length === 0) return;
54556
- destDirs = destDirs.filter((destDir) => import_path7.default.relative(destDir, src) !== "");
56132
+ destDirs = destDirs.filter((destDir) => import_path8.default.relative(destDir, src) !== "");
54557
56133
  const files = await import_fs2.promises.readdir(src);
54558
56134
  await Promise.all(files.map(async (file) => {
54559
56135
  if (file === "node_modules") return;
54560
- const srcFile = import_path7.default.join(src, file);
56136
+ const srcFile = import_path8.default.join(src, file);
54561
56137
  if ((await import_fs2.promises.lstat(srcFile)).isDirectory()) {
54562
56138
  await hardLinkDir(srcFile, await Promise.all(destDirs.map(async (destDir) => {
54563
- const destSubdir = import_path7.default.join(destDir, file);
56139
+ const destSubdir = import_path8.default.join(destDir, file);
54564
56140
  try {
54565
56141
  await import_fs2.promises.mkdir(destSubdir, { recursive: true });
54566
56142
  } catch (err) {
@@ -54571,7 +56147,7 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54571
56147
  return;
54572
56148
  }
54573
56149
  await Promise.all(destDirs.map(async (destDir) => {
54574
- const destFile = import_path7.default.join(destDir, file);
56150
+ const destFile = import_path8.default.join(destDir, file);
54575
56151
  try {
54576
56152
  await linkOrCopyFile(srcFile, destFile);
54577
56153
  } catch (err) {
@@ -54586,7 +56162,7 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54586
56162
  await linkOrCopy(srcFile, destFile);
54587
56163
  } catch (err) {
54588
56164
  if (err.code === "ENOENT") {
54589
- await import_fs2.promises.mkdir(import_path7.default.dirname(destFile), { recursive: true });
56165
+ await import_fs2.promises.mkdir(import_path8.default.dirname(destFile), { recursive: true });
54590
56166
  await linkOrCopy(srcFile, destFile);
54591
56167
  return;
54592
56168
  }
@@ -54601,10 +56177,10 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54601
56177
  await import_fs2.promises.copyFile(srcFile, destFile);
54602
56178
  }
54603
56179
  }
54604
- var import_path8 = __require("path");
56180
+ var import_path9 = __require("path");
54605
56181
  var import_promises = __require("fs/promises");
54606
56182
  async function validateNpmrc(cwd) {
54607
- if ((await (0, import_promises.readFile)((0, import_path8.join)(cwd, ".npmrc"), "utf-8").catch((err) => {
56183
+ if ((await (0, import_promises.readFile)((0, import_path9.join)(cwd, ".npmrc"), "utf-8").catch((err) => {
54608
56184
  if (err.code !== "ENOENT") throw err;
54609
56185
  }))?.match(/(?<!#.*)use-node-version/)) throw new Error("Detected unsupported \"use-node-version\" in your \".npmrc\". Please use \"engines\" in your \"package.json\" instead.");
54610
56186
  }
@@ -54645,12 +56221,12 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
54645
56221
  if (!os) return "provided.al2023";
54646
56222
  return os.PRETTY_NAME === "Amazon Linux 2" ? "provided.al2" : "provided.al2023";
54647
56223
  }
54648
- var import_path9 = __require("path");
56224
+ var import_path10 = __require("path");
54649
56225
  var shouldServe = ({ entrypoint, files, requestPath }) => {
54650
56226
  requestPath = requestPath.replace(/\/$/, "");
54651
56227
  entrypoint = entrypoint.replace(/\\/, "/");
54652
56228
  if (entrypoint === requestPath && hasProp(files, entrypoint)) return true;
54653
- const { dir, name } = (0, import_path9.parse)(entrypoint);
56229
+ const { dir, name } = (0, import_path10.parse)(entrypoint);
54654
56230
  if (name === "index" && dir === requestPath && hasProp(files, entrypoint)) return true;
54655
56231
  return false;
54656
56232
  };
@@ -54931,6 +56507,7 @@ ${entrypointsForMessage}`);
54931
56507
  "express",
54932
56508
  "hono",
54933
56509
  "h3",
56510
+ "koa",
54934
56511
  "nestjs",
54935
56512
  "fastify",
54936
56513
  "elysia"
@@ -54939,6 +56516,7 @@ ${entrypointsForMessage}`);
54939
56516
  "@vercel/express",
54940
56517
  "@vercel/hono",
54941
56518
  "@vercel/h3",
56519
+ "@vercel/koa",
54942
56520
  "@vercel/nestjs",
54943
56521
  "@vercel/fastify",
54944
56522
  "@vercel/elysia"
@@ -54961,6 +56539,47 @@ ${entrypointsForMessage}`);
54961
56539
  function shouldUseExperimentalBackends(framework) {
54962
56540
  return isExperimentalBackendsEnabled() && isBackendFramework(framework);
54963
56541
  }
56542
+ var import_fs3 = __toESM(__require("fs"));
56543
+ var import_path11 = __require("path");
56544
+ var import_execa = __toESM(require_execa());
56545
+ var isWin2 = process.platform === "win32";
56546
+ async function runStdlibPyScript(options) {
56547
+ const { scriptName, pythonPath, args = [], cwd } = options;
56548
+ const scriptPath = (0, import_path11.join)(__dirname, "..", "lib", "python", `${scriptName}.py`);
56549
+ if (!import_fs3.default.existsSync(scriptPath)) throw new Error(`Python script not found: ${scriptPath}`);
56550
+ const pythonCmd = pythonPath ?? (isWin2 ? "python" : "python3");
56551
+ debug$1(`Running stdlib Python script: ${pythonCmd} ${scriptPath} ${args.join(" ")}`);
56552
+ try {
56553
+ const result = await (0, import_execa.default)(pythonCmd, [scriptPath, ...args], { cwd });
56554
+ return {
56555
+ exitCode: 0,
56556
+ stdout: result.stdout,
56557
+ stderr: result.stderr
56558
+ };
56559
+ } catch (err) {
56560
+ const execaErr = err;
56561
+ return {
56562
+ exitCode: execaErr.exitCode ?? 1,
56563
+ stdout: execaErr.stdout ?? "",
56564
+ stderr: execaErr.stderr ?? ""
56565
+ };
56566
+ }
56567
+ }
56568
+ async function isPythonEntrypoint(file) {
56569
+ try {
56570
+ const fsPath = file.fsPath;
56571
+ if (!fsPath) return false;
56572
+ const content = await import_fs3.default.promises.readFile(fsPath, "utf-8");
56573
+ if (!content.includes("app") && !content.includes("handler") && !content.includes("Handler")) return false;
56574
+ return (await runStdlibPyScript({
56575
+ scriptName: "ast_parser",
56576
+ args: [fsPath]
56577
+ })).exitCode === 0;
56578
+ } catch (err) {
56579
+ debug$1(`Failed to check Python entrypoint: ${err}`);
56580
+ return false;
56581
+ }
56582
+ }
54964
56583
  }) });
54965
56584
 
54966
56585
  //#endregion