vercel 50.12.3 → 50.13.0

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.
Files changed (2) hide show
  1. package/dist/index.js +360 -205
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -712,8 +712,8 @@ var require_graceful_fs = __commonJS2({
712
712
  }
713
713
  }
714
714
  var fs$writeFile = fs16.writeFile;
715
- fs16.writeFile = writeFile6;
716
- function writeFile6(path12, data, options, cb) {
715
+ fs16.writeFile = writeFile7;
716
+ function writeFile7(path12, data, options, cb) {
717
717
  if (typeof options === "function")
718
718
  cb = options, options = null;
719
719
  return go$writeFile(path12, data, options, cb);
@@ -1990,14 +1990,14 @@ var require_empty = __commonJS2({
1990
1990
  var u = require_universalify().fromPromise;
1991
1991
  var fs15 = require_fs();
1992
1992
  var path12 = __require("path");
1993
- var mkdir5 = require_mkdirs();
1993
+ var mkdir6 = require_mkdirs();
1994
1994
  var remove7 = require_remove();
1995
1995
  var emptyDir = u(async function emptyDir2(dir) {
1996
1996
  let items;
1997
1997
  try {
1998
1998
  items = await fs15.readdir(dir);
1999
1999
  } catch {
2000
- return mkdir5.mkdirs(dir);
2000
+ return mkdir6.mkdirs(dir);
2001
2001
  }
2002
2002
  return Promise.all(items.map((item) => remove7.remove(path12.join(dir, item))));
2003
2003
  });
@@ -2006,7 +2006,7 @@ var require_empty = __commonJS2({
2006
2006
  try {
2007
2007
  items = fs15.readdirSync(dir);
2008
2008
  } catch {
2009
- return mkdir5.mkdirsSync(dir);
2009
+ return mkdir6.mkdirsSync(dir);
2010
2010
  }
2011
2011
  items.forEach((item) => {
2012
2012
  item = path12.join(dir, item);
@@ -2029,7 +2029,7 @@ var require_file = __commonJS2({
2029
2029
  var u = require_universalify().fromCallback;
2030
2030
  var path12 = __require("path");
2031
2031
  var fs15 = require_graceful_fs();
2032
- var mkdir5 = require_mkdirs();
2032
+ var mkdir6 = require_mkdirs();
2033
2033
  function createFile(file, callback) {
2034
2034
  function makeFile() {
2035
2035
  fs15.writeFile(file, "", (err) => {
@@ -2045,7 +2045,7 @@ var require_file = __commonJS2({
2045
2045
  fs15.stat(dir, (err2, stats2) => {
2046
2046
  if (err2) {
2047
2047
  if (err2.code === "ENOENT") {
2048
- return mkdir5.mkdirs(dir, (err3) => {
2048
+ return mkdir6.mkdirs(dir, (err3) => {
2049
2049
  if (err3)
2050
2050
  return callback(err3);
2051
2051
  makeFile();
@@ -2079,7 +2079,7 @@ var require_file = __commonJS2({
2079
2079
  }
2080
2080
  } catch (err) {
2081
2081
  if (err && err.code === "ENOENT")
2082
- mkdir5.mkdirsSync(dir);
2082
+ mkdir6.mkdirsSync(dir);
2083
2083
  else
2084
2084
  throw err;
2085
2085
  }
@@ -2099,7 +2099,7 @@ var require_link = __commonJS2({
2099
2099
  var u = require_universalify().fromCallback;
2100
2100
  var path12 = __require("path");
2101
2101
  var fs15 = require_graceful_fs();
2102
- var mkdir5 = require_mkdirs();
2102
+ var mkdir6 = require_mkdirs();
2103
2103
  var pathExists = require_path_exists().pathExists;
2104
2104
  var { areIdentical } = require_stat();
2105
2105
  function createLink(srcpath, dstpath, callback) {
@@ -2124,7 +2124,7 @@ var require_link = __commonJS2({
2124
2124
  return callback(err2);
2125
2125
  if (dirExists)
2126
2126
  return makeLink(srcpath, dstpath);
2127
- mkdir5.mkdirs(dir, (err3) => {
2127
+ mkdir6.mkdirs(dir, (err3) => {
2128
2128
  if (err3)
2129
2129
  return callback(err3);
2130
2130
  makeLink(srcpath, dstpath);
@@ -2151,7 +2151,7 @@ var require_link = __commonJS2({
2151
2151
  const dirExists = fs15.existsSync(dir);
2152
2152
  if (dirExists)
2153
2153
  return fs15.linkSync(srcpath, dstpath);
2154
- mkdir5.mkdirsSync(dir);
2154
+ mkdir6.mkdirsSync(dir);
2155
2155
  return fs15.linkSync(srcpath, dstpath);
2156
2156
  }
2157
2157
  module2.exports = {
@@ -2466,7 +2466,7 @@ var require_jsonfile = __commonJS2({
2466
2466
  const str = stringify2(obj, options);
2467
2467
  await universalify.fromCallback(fs15.writeFile)(file, str, options);
2468
2468
  }
2469
- var writeFile6 = universalify.fromPromise(_writeFile);
2469
+ var writeFile7 = universalify.fromPromise(_writeFile);
2470
2470
  function writeFileSync(file, obj, options = {}) {
2471
2471
  const fs15 = options.fs || _fs;
2472
2472
  const str = stringify2(obj, options);
@@ -2475,7 +2475,7 @@ var require_jsonfile = __commonJS2({
2475
2475
  var jsonfile = {
2476
2476
  readFile: readFile8,
2477
2477
  readFileSync: readFileSync4,
2478
- writeFile: writeFile6,
2478
+ writeFile: writeFile7,
2479
2479
  writeFileSync
2480
2480
  };
2481
2481
  module2.exports = jsonfile;
@@ -2504,7 +2504,7 @@ var require_output = __commonJS2({
2504
2504
  var u = require_universalify().fromCallback;
2505
2505
  var fs15 = require_graceful_fs();
2506
2506
  var path12 = __require("path");
2507
- var mkdir5 = require_mkdirs();
2507
+ var mkdir6 = require_mkdirs();
2508
2508
  var pathExists = require_path_exists().pathExists;
2509
2509
  function outputFile2(file, data, encoding, callback) {
2510
2510
  if (typeof encoding === "function") {
@@ -2517,7 +2517,7 @@ var require_output = __commonJS2({
2517
2517
  return callback(err);
2518
2518
  if (itDoes)
2519
2519
  return fs15.writeFile(file, data, encoding, callback);
2520
- mkdir5.mkdirs(dir, (err2) => {
2520
+ mkdir6.mkdirs(dir, (err2) => {
2521
2521
  if (err2)
2522
2522
  return callback(err2);
2523
2523
  fs15.writeFile(file, data, encoding, callback);
@@ -2529,7 +2529,7 @@ var require_output = __commonJS2({
2529
2529
  if (fs15.existsSync(dir)) {
2530
2530
  return fs15.writeFileSync(file, ...args2);
2531
2531
  }
2532
- mkdir5.mkdirsSync(dir);
2532
+ mkdir6.mkdirsSync(dir);
2533
2533
  fs15.writeFileSync(file, ...args2);
2534
2534
  }
2535
2535
  module2.exports = {
@@ -12050,7 +12050,7 @@ var require_instrument = __commonJS2({
12050
12050
  var logger = require_logger();
12051
12051
  var console2 = require_console();
12052
12052
  var dom = require_dom();
12053
- var fetch6 = require_fetch();
12053
+ var fetch7 = require_fetch();
12054
12054
  var globalError = require_globalError();
12055
12055
  var globalUnhandledRejection = require_globalUnhandledRejection();
12056
12056
  var history = require_history();
@@ -12064,7 +12064,7 @@ var require_instrument = __commonJS2({
12064
12064
  case "xhr":
12065
12065
  return xhr.addXhrInstrumentationHandler(callback);
12066
12066
  case "fetch":
12067
- return fetch6.addFetchInstrumentationHandler(callback);
12067
+ return fetch7.addFetchInstrumentationHandler(callback);
12068
12068
  case "history":
12069
12069
  return history.addHistoryInstrumentationHandler(callback);
12070
12070
  case "error":
@@ -12077,7 +12077,7 @@ var require_instrument = __commonJS2({
12077
12077
  }
12078
12078
  exports2.addConsoleInstrumentationHandler = console2.addConsoleInstrumentationHandler;
12079
12079
  exports2.addClickKeypressInstrumentationHandler = dom.addClickKeypressInstrumentationHandler;
12080
- exports2.addFetchInstrumentationHandler = fetch6.addFetchInstrumentationHandler;
12080
+ exports2.addFetchInstrumentationHandler = fetch7.addFetchInstrumentationHandler;
12081
12081
  exports2.addGlobalErrorInstrumentationHandler = globalError.addGlobalErrorInstrumentationHandler;
12082
12082
  exports2.addGlobalUnhandledRejectionInstrumentationHandler = globalUnhandledRejection.addGlobalUnhandledRejectionInstrumentationHandler;
12083
12083
  exports2.addHistoryInstrumentationHandler = history.addHistoryInstrumentationHandler;
@@ -12435,7 +12435,7 @@ var require_path = __commonJS2({
12435
12435
  function isAbsolute2(path12) {
12436
12436
  return path12.charAt(0) === "/";
12437
12437
  }
12438
- function join27(...args2) {
12438
+ function join28(...args2) {
12439
12439
  return normalizePath6(args2.join("/"));
12440
12440
  }
12441
12441
  function dirname9(path12) {
@@ -12460,7 +12460,7 @@ var require_path = __commonJS2({
12460
12460
  exports2.basename = basename11;
12461
12461
  exports2.dirname = dirname9;
12462
12462
  exports2.isAbsolute = isAbsolute2;
12463
- exports2.join = join27;
12463
+ exports2.join = join28;
12464
12464
  exports2.normalizePath = normalizePath6;
12465
12465
  exports2.relative = relative8;
12466
12466
  exports2.resolve = resolve15;
@@ -13964,7 +13964,7 @@ var require_cjs = __commonJS2({
13964
13964
  var console2 = require_console();
13965
13965
  var dom = require_dom();
13966
13966
  var xhr = require_xhr();
13967
- var fetch6 = require_fetch();
13967
+ var fetch7 = require_fetch();
13968
13968
  var history = require_history();
13969
13969
  var globalError = require_globalError();
13970
13970
  var globalUnhandledRejection = require_globalUnhandledRejection();
@@ -14130,7 +14130,7 @@ var require_cjs = __commonJS2({
14130
14130
  exports2.addClickKeypressInstrumentationHandler = dom.addClickKeypressInstrumentationHandler;
14131
14131
  exports2.SENTRY_XHR_DATA_KEY = xhr.SENTRY_XHR_DATA_KEY;
14132
14132
  exports2.addXhrInstrumentationHandler = xhr.addXhrInstrumentationHandler;
14133
- exports2.addFetchInstrumentationHandler = fetch6.addFetchInstrumentationHandler;
14133
+ exports2.addFetchInstrumentationHandler = fetch7.addFetchInstrumentationHandler;
14134
14134
  exports2.addHistoryInstrumentationHandler = history.addHistoryInstrumentationHandler;
14135
14135
  exports2.addGlobalErrorInstrumentationHandler = globalError.addGlobalErrorInstrumentationHandler;
14136
14136
  exports2.addGlobalUnhandledRejectionInstrumentationHandler = globalUnhandledRejection.addGlobalUnhandledRejectionInstrumentationHandler;
@@ -23259,7 +23259,7 @@ var require_request = __commonJS2({
23259
23259
  Object.defineProperty(exports2, "__esModule", { value: true });
23260
23260
  var core = require_cjs2();
23261
23261
  var utils = require_cjs();
23262
- var fetch6 = require_fetch2();
23262
+ var fetch7 = require_fetch2();
23263
23263
  var instrument = require_instrument2();
23264
23264
  var types = require_types();
23265
23265
  var DEFAULT_TRACE_PROPAGATION_TARGETS = ["localhost", /^\/(?!\/)/];
@@ -23291,7 +23291,7 @@ var require_request = __commonJS2({
23291
23291
  const spans = {};
23292
23292
  if (traceFetch) {
23293
23293
  utils.addFetchInstrumentationHandler((handlerData) => {
23294
- const createdSpan = fetch6.instrumentFetchRequest(handlerData, shouldCreateSpan, shouldAttachHeadersWithTargets, spans);
23294
+ const createdSpan = fetch7.instrumentFetchRequest(handlerData, shouldCreateSpan, shouldAttachHeadersWithTargets, spans);
23295
23295
  if (createdSpan) {
23296
23296
  const fullUrl = getFullURL(handlerData.fetchData.url);
23297
23297
  const host = fullUrl ? utils.parseUrl(fullUrl).host : void 0;
@@ -24270,7 +24270,7 @@ var require_cjs3 = __commonJS2({
24270
24270
  var browserTracingIntegration = require_browserTracingIntegration();
24271
24271
  var request = require_request();
24272
24272
  var instrument = require_instrument2();
24273
- var fetch6 = require_fetch2();
24273
+ var fetch7 = require_fetch2();
24274
24274
  var extensions = require_extensions();
24275
24275
  exports2.IdleTransaction = core.IdleTransaction;
24276
24276
  exports2.Span = core.Span;
@@ -24302,8 +24302,8 @@ var require_cjs3 = __commonJS2({
24302
24302
  exports2.addFidInstrumentationHandler = instrument.addFidInstrumentationHandler;
24303
24303
  exports2.addLcpInstrumentationHandler = instrument.addLcpInstrumentationHandler;
24304
24304
  exports2.addPerformanceInstrumentationHandler = instrument.addPerformanceInstrumentationHandler;
24305
- exports2.addTracingHeadersToFetchRequest = fetch6.addTracingHeadersToFetchRequest;
24306
- exports2.instrumentFetchRequest = fetch6.instrumentFetchRequest;
24305
+ exports2.addTracingHeadersToFetchRequest = fetch7.addTracingHeadersToFetchRequest;
24306
+ exports2.instrumentFetchRequest = fetch7.instrumentFetchRequest;
24307
24307
  exports2.addExtensionMethods = extensions.addExtensionMethods;
24308
24308
  }
24309
24309
  });
@@ -43513,12 +43513,12 @@ var require_lib7 = __commonJS2({
43513
43513
  const dest = new URL$1(destination).hostname;
43514
43514
  return orig === dest || orig[orig.length - dest.length - 1] === "." && orig.endsWith(dest);
43515
43515
  };
43516
- function fetch6(url3, opts) {
43517
- if (!fetch6.Promise) {
43516
+ function fetch7(url3, opts) {
43517
+ if (!fetch7.Promise) {
43518
43518
  throw new Error("native promise missing, set fetch.Promise to your favorite alternative");
43519
43519
  }
43520
- Body.Promise = fetch6.Promise;
43521
- return new fetch6.Promise(function(resolve15, reject) {
43520
+ Body.Promise = fetch7.Promise;
43521
+ return new fetch7.Promise(function(resolve15, reject) {
43522
43522
  const request = new Request2(url3, opts);
43523
43523
  const options = getNodeRequestOptions(request);
43524
43524
  const send = (options.protocol === "https:" ? https : http3).request;
@@ -43568,7 +43568,7 @@ var require_lib7 = __commonJS2({
43568
43568
  req.on("response", function(res) {
43569
43569
  clearTimeout(reqTimeout);
43570
43570
  const headers = createHeadersLenient(res.headers);
43571
- if (fetch6.isRedirect(res.statusCode)) {
43571
+ if (fetch7.isRedirect(res.statusCode)) {
43572
43572
  const location = headers.get("Location");
43573
43573
  let locationURL = null;
43574
43574
  try {
@@ -43630,7 +43630,7 @@ var require_lib7 = __commonJS2({
43630
43630
  requestOpts.body = void 0;
43631
43631
  requestOpts.headers.delete("content-length");
43632
43632
  }
43633
- resolve15(fetch6(new Request2(locationURL, requestOpts)));
43633
+ resolve15(fetch7(new Request2(locationURL, requestOpts)));
43634
43634
  finalize();
43635
43635
  return;
43636
43636
  }
@@ -43690,11 +43690,11 @@ var require_lib7 = __commonJS2({
43690
43690
  writeToStream(req, request);
43691
43691
  });
43692
43692
  }
43693
- fetch6.isRedirect = function(code2) {
43693
+ fetch7.isRedirect = function(code2) {
43694
43694
  return code2 === 301 || code2 === 302 || code2 === 303 || code2 === 307 || code2 === 308;
43695
43695
  };
43696
- fetch6.Promise = global.Promise;
43697
- module2.exports = exports2 = fetch6;
43696
+ fetch7.Promise = global.Promise;
43697
+ module2.exports = exports2 = fetch7;
43698
43698
  Object.defineProperty(exports2, "__esModule", { value: true });
43699
43699
  exports2.default = exports2;
43700
43700
  exports2.Headers = Headers6;
@@ -48302,7 +48302,7 @@ var require_imurmurhash = __commonJS2({
48302
48302
  var require_write_file_atomic = __commonJS2({
48303
48303
  "../../node_modules/.pnpm/write-file-atomic@2.4.3/node_modules/write-file-atomic/index.js"(exports2, module2) {
48304
48304
  "use strict";
48305
- module2.exports = writeFile6;
48305
+ module2.exports = writeFile7;
48306
48306
  module2.exports.sync = writeFileSync;
48307
48307
  module2.exports._getTmpname = getTmpname;
48308
48308
  module2.exports._cleanupOnExit = cleanupOnExit;
@@ -48331,7 +48331,7 @@ var require_write_file_atomic = __commonJS2({
48331
48331
  }
48332
48332
  };
48333
48333
  }
48334
- function writeFile6(filename, data, options, callback) {
48334
+ function writeFile7(filename, data, options, callback) {
48335
48335
  if (options) {
48336
48336
  if (options instanceof Function) {
48337
48337
  callback = options;
@@ -48684,10 +48684,10 @@ var require_make_dir2 = __commonJS2({
48684
48684
  module2.exports = (input, opts) => Promise.resolve().then(() => {
48685
48685
  checkPath(input);
48686
48686
  opts = Object.assign({}, defaults, opts);
48687
- const mkdir5 = pify(opts.fs.mkdir);
48687
+ const mkdir6 = pify(opts.fs.mkdir);
48688
48688
  const stat2 = pify(opts.fs.stat);
48689
48689
  const make = (pth) => {
48690
- return mkdir5(pth, opts.mode).then(() => pth).catch((err) => {
48690
+ return mkdir6(pth, opts.mode).then(() => pth).catch((err) => {
48691
48691
  if (err.code === "ENOENT") {
48692
48692
  if (err.message.includes("null bytes") || path12.dirname(pth) === pth) {
48693
48693
  throw err;
@@ -50086,14 +50086,14 @@ var require_empty2 = __commonJS2({
50086
50086
  var u = require_universalify2().fromCallback;
50087
50087
  var fs15 = __require("fs");
50088
50088
  var path12 = __require("path");
50089
- var mkdir5 = require_mkdirs3();
50089
+ var mkdir6 = require_mkdirs3();
50090
50090
  var remove7 = require_remove2();
50091
50091
  var emptyDir = u(function emptyDir2(dir, callback) {
50092
50092
  callback = callback || function() {
50093
50093
  };
50094
50094
  fs15.readdir(dir, (err, items) => {
50095
50095
  if (err)
50096
- return mkdir5.mkdirs(dir, callback);
50096
+ return mkdir6.mkdirs(dir, callback);
50097
50097
  items = items.map((item) => path12.join(dir, item));
50098
50098
  deleteItem();
50099
50099
  function deleteItem() {
@@ -50113,7 +50113,7 @@ var require_empty2 = __commonJS2({
50113
50113
  try {
50114
50114
  items = fs15.readdirSync(dir);
50115
50115
  } catch (err) {
50116
- return mkdir5.mkdirsSync(dir);
50116
+ return mkdir6.mkdirsSync(dir);
50117
50117
  }
50118
50118
  items.forEach((item) => {
50119
50119
  item = path12.join(dir, item);
@@ -50136,7 +50136,7 @@ var require_file2 = __commonJS2({
50136
50136
  var u = require_universalify2().fromCallback;
50137
50137
  var path12 = __require("path");
50138
50138
  var fs15 = require_graceful_fs();
50139
- var mkdir5 = require_mkdirs3();
50139
+ var mkdir6 = require_mkdirs3();
50140
50140
  var pathExists = require_path_exists2().pathExists;
50141
50141
  function createFile(file, callback) {
50142
50142
  function makeFile() {
@@ -50155,7 +50155,7 @@ var require_file2 = __commonJS2({
50155
50155
  return callback(err2);
50156
50156
  if (dirExists)
50157
50157
  return makeFile();
50158
- mkdir5.mkdirs(dir, (err3) => {
50158
+ mkdir6.mkdirs(dir, (err3) => {
50159
50159
  if (err3)
50160
50160
  return callback(err3);
50161
50161
  makeFile();
@@ -50173,7 +50173,7 @@ var require_file2 = __commonJS2({
50173
50173
  return;
50174
50174
  const dir = path12.dirname(file);
50175
50175
  if (!fs15.existsSync(dir)) {
50176
- mkdir5.mkdirsSync(dir);
50176
+ mkdir6.mkdirsSync(dir);
50177
50177
  }
50178
50178
  fs15.writeFileSync(file, "");
50179
50179
  }
@@ -50191,7 +50191,7 @@ var require_link2 = __commonJS2({
50191
50191
  var u = require_universalify2().fromCallback;
50192
50192
  var path12 = __require("path");
50193
50193
  var fs15 = require_graceful_fs();
50194
- var mkdir5 = require_mkdirs3();
50194
+ var mkdir6 = require_mkdirs3();
50195
50195
  var pathExists = require_path_exists2().pathExists;
50196
50196
  function createLink(srcpath, dstpath, callback) {
50197
50197
  function makeLink(srcpath2, dstpath2) {
@@ -50217,7 +50217,7 @@ var require_link2 = __commonJS2({
50217
50217
  return callback(err3);
50218
50218
  if (dirExists)
50219
50219
  return makeLink(srcpath, dstpath);
50220
- mkdir5.mkdirs(dir, (err4) => {
50220
+ mkdir6.mkdirs(dir, (err4) => {
50221
50221
  if (err4)
50222
50222
  return callback(err4);
50223
50223
  makeLink(srcpath, dstpath);
@@ -50240,7 +50240,7 @@ var require_link2 = __commonJS2({
50240
50240
  const dirExists = fs15.existsSync(dir);
50241
50241
  if (dirExists)
50242
50242
  return fs15.linkSync(srcpath, dstpath);
50243
- mkdir5.mkdirsSync(dir);
50243
+ mkdir6.mkdirsSync(dir);
50244
50244
  return fs15.linkSync(srcpath, dstpath);
50245
50245
  }
50246
50246
  module2.exports = {
@@ -50541,7 +50541,7 @@ var require_jsonfile3 = __commonJS2({
50541
50541
  var str = JSON.stringify(obj, options ? options.replacer : null, spaces);
50542
50542
  return str.replace(/\n/g, EOL) + EOL;
50543
50543
  }
50544
- function writeFile6(file, obj, options, callback) {
50544
+ function writeFile7(file, obj, options, callback) {
50545
50545
  if (callback == null) {
50546
50546
  callback = options;
50547
50547
  options = {};
@@ -50573,7 +50573,7 @@ var require_jsonfile3 = __commonJS2({
50573
50573
  var jsonfile = {
50574
50574
  readFile: readFile8,
50575
50575
  readFileSync: readFileSync4,
50576
- writeFile: writeFile6,
50576
+ writeFile: writeFile7,
50577
50577
  writeFileSync
50578
50578
  };
50579
50579
  module2.exports = jsonfile;
@@ -50601,7 +50601,7 @@ var require_output_json2 = __commonJS2({
50601
50601
  "../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/json/output-json.js"(exports2, module2) {
50602
50602
  "use strict";
50603
50603
  var path12 = __require("path");
50604
- var mkdir5 = require_mkdirs3();
50604
+ var mkdir6 = require_mkdirs3();
50605
50605
  var pathExists = require_path_exists2().pathExists;
50606
50606
  var jsonFile = require_jsonfile4();
50607
50607
  function outputJson2(file, data, options, callback) {
@@ -50615,7 +50615,7 @@ var require_output_json2 = __commonJS2({
50615
50615
  return callback(err);
50616
50616
  if (itDoes)
50617
50617
  return jsonFile.writeJson(file, data, options, callback);
50618
- mkdir5.mkdirs(dir, (err2) => {
50618
+ mkdir6.mkdirs(dir, (err2) => {
50619
50619
  if (err2)
50620
50620
  return callback(err2);
50621
50621
  jsonFile.writeJson(file, data, options, callback);
@@ -50632,12 +50632,12 @@ var require_output_json_sync2 = __commonJS2({
50632
50632
  "use strict";
50633
50633
  var fs15 = require_graceful_fs();
50634
50634
  var path12 = __require("path");
50635
- var mkdir5 = require_mkdirs3();
50635
+ var mkdir6 = require_mkdirs3();
50636
50636
  var jsonFile = require_jsonfile4();
50637
50637
  function outputJsonSync(file, data, options) {
50638
50638
  const dir = path12.dirname(file);
50639
50639
  if (!fs15.existsSync(dir)) {
50640
- mkdir5.mkdirsSync(dir);
50640
+ mkdir6.mkdirsSync(dir);
50641
50641
  }
50642
50642
  jsonFile.writeJsonSync(file, data, options);
50643
50643
  }
@@ -50811,7 +50811,7 @@ var require_output2 = __commonJS2({
50811
50811
  var u = require_universalify2().fromCallback;
50812
50812
  var fs15 = require_graceful_fs();
50813
50813
  var path12 = __require("path");
50814
- var mkdir5 = require_mkdirs3();
50814
+ var mkdir6 = require_mkdirs3();
50815
50815
  var pathExists = require_path_exists2().pathExists;
50816
50816
  function outputFile2(file, data, encoding, callback) {
50817
50817
  if (typeof encoding === "function") {
@@ -50824,7 +50824,7 @@ var require_output2 = __commonJS2({
50824
50824
  return callback(err);
50825
50825
  if (itDoes)
50826
50826
  return fs15.writeFile(file, data, encoding, callback);
50827
- mkdir5.mkdirs(dir, (err2) => {
50827
+ mkdir6.mkdirs(dir, (err2) => {
50828
50828
  if (err2)
50829
50829
  return callback(err2);
50830
50830
  fs15.writeFile(file, data, encoding, callback);
@@ -50836,7 +50836,7 @@ var require_output2 = __commonJS2({
50836
50836
  if (fs15.existsSync(dir)) {
50837
50837
  return fs15.writeFileSync(file, ...args2);
50838
50838
  }
50839
- mkdir5.mkdirsSync(dir);
50839
+ mkdir6.mkdirsSync(dir);
50840
50840
  fs15.writeFileSync(file, ...args2);
50841
50841
  }
50842
50842
  module2.exports = {
@@ -59888,14 +59888,14 @@ var require_utils13 = __commonJS2({
59888
59888
  });
59889
59889
  module2.exports = __toCommonJS4(utils_exports);
59890
59890
  var import_node_fs3 = __toESM4(__require("fs"), 1);
59891
- var import_node_path7 = __require("path");
59891
+ var import_node_path8 = __require("path");
59892
59892
  var CONFIGURATION_FILENAMES = [
59893
59893
  "microfrontends.jsonc",
59894
59894
  "microfrontends.json"
59895
59895
  ];
59896
59896
  function findConfig({ dir }) {
59897
59897
  for (const filename of CONFIGURATION_FILENAMES) {
59898
- const maybeConfig = (0, import_node_path7.join)(dir, filename);
59898
+ const maybeConfig = (0, import_node_path8.join)(dir, filename);
59899
59899
  if (import_node_fs3.default.existsSync(maybeConfig)) {
59900
59900
  return maybeConfig;
59901
59901
  }
@@ -60108,19 +60108,19 @@ var require_utils14 = __commonJS2({
60108
60108
  EVENTS: () => EVENTS,
60109
60109
  buildFileTree: () => buildFileTree2,
60110
60110
  createDebug: () => createDebug,
60111
- fetch: () => fetch6,
60111
+ fetch: () => fetch7,
60112
60112
  getApiDeploymentsUrl: () => getApiDeploymentsUrl,
60113
60113
  getVercelIgnore: () => getVercelIgnore5,
60114
60114
  parseVercelConfig: () => parseVercelConfig,
60115
60115
  prepareFiles: () => prepareFiles
60116
60116
  });
60117
60117
  module2.exports = __toCommonJS4(utils_exports);
60118
- var import_node_fetch7 = __toESM4(require_lib7());
60118
+ var import_node_fetch8 = __toESM4(require_lib7());
60119
60119
  var import_path46 = __require("path");
60120
60120
  var import_url20 = __require("url");
60121
60121
  var import_ignore = __toESM4(require_ignore());
60122
- var import_pkg6 = require_pkg();
60123
- var import_build_utils21 = __require("@vercel/build-utils");
60122
+ var import_pkg7 = require_pkg();
60123
+ var import_build_utils22 = __require("@vercel/build-utils");
60124
60124
  var import_async_sema = require_lib9();
60125
60125
  var import_fs_extra25 = require_lib8();
60126
60126
  var import_readdir_recursive = __toESM4(require_readdir_recursive());
@@ -60345,7 +60345,7 @@ var require_utils14 = __commonJS2({
60345
60345
  maybeRead((0, import_path46.join)(cwd2, ".nowignore"), "")
60346
60346
  ]);
60347
60347
  if (vercelignore && nowignore) {
60348
- throw new import_build_utils21.NowBuildError({
60348
+ throw new import_build_utils22.NowBuildError({
60349
60349
  code: "CONFLICTING_IGNORE_FILES",
60350
60350
  message: "Cannot use both a `.vercelignore` and `.nowignore` file. Please delete the `.nowignore` file.",
60351
60351
  link: "https://vercel.link/combining-old-and-new-config"
@@ -60363,7 +60363,7 @@ ${clearRelative(ignoreFile)}`);
60363
60363
  function clearRelative(str) {
60364
60364
  return str.replace(/(\n|^)\.\//g, "$1");
60365
60365
  }
60366
- var fetch6 = async (url3, token, opts = {}, debugEnabled) => {
60366
+ var fetch7 = async (url3, token, opts = {}, debugEnabled) => {
60367
60367
  semaphore.acquire();
60368
60368
  const debug2 = createDebug(debugEnabled);
60369
60369
  let time;
@@ -60379,7 +60379,7 @@ ${clearRelative(ignoreFile)}`);
60379
60379
  url3 = parsedUrl.toString();
60380
60380
  delete opts.teamId;
60381
60381
  }
60382
- const userAgent2 = opts.userAgent || `client-v${import_pkg6.pkgVersion}`;
60382
+ const userAgent2 = opts.userAgent || `client-v${import_pkg7.pkgVersion}`;
60383
60383
  delete opts.userAgent;
60384
60384
  opts.headers = {
60385
60385
  ...opts.headers,
@@ -60389,7 +60389,7 @@ ${clearRelative(ignoreFile)}`);
60389
60389
  };
60390
60390
  debug2(`${opts.method || "GET"} ${url3}`);
60391
60391
  time = Date.now();
60392
- const res = await (0, import_node_fetch7.default)(url3, opts);
60392
+ const res = await (0, import_node_fetch8.default)(url3, opts);
60393
60393
  debug2(`DONE in ${Date.now() - time}ms: ${opts.method || "GET"} ${url3}`);
60394
60394
  semaphore.release();
60395
60395
  return res;
@@ -61775,7 +61775,7 @@ var require_BufferList = __commonJS2({
61775
61775
  this.head = this.tail = null;
61776
61776
  this.length = 0;
61777
61777
  };
61778
- BufferList.prototype.join = function join27(s) {
61778
+ BufferList.prototype.join = function join28(s) {
61779
61779
  if (this.length === 0)
61780
61780
  return "";
61781
61781
  var p = this.head;
@@ -65536,7 +65536,7 @@ var require_create_deployment = __commonJS2({
65536
65536
  var import_utils9 = require_utils14();
65537
65537
  var import_errors6 = require_errors2();
65538
65538
  var import_error_utils38 = require_dist2();
65539
- var import_build_utils21 = __require("@vercel/build-utils");
65539
+ var import_build_utils22 = __require("@vercel/build-utils");
65540
65540
  var import_tar_fs2 = __toESM4(require_tar_fs());
65541
65541
  var import_zlib = __require("zlib");
65542
65542
  function buildCreateDeployment() {
@@ -65601,7 +65601,7 @@ var require_create_deployment = __commonJS2({
65601
65601
  const tarStream = import_tar_fs2.default.pack(workPath, {
65602
65602
  entries: fileList.map((file) => (0, import_path46.relative)(workPath, file))
65603
65603
  }).pipe((0, import_zlib.createGzip)());
65604
- const chunkedTarBuffers = await (0, import_build_utils21.streamToBufferChunks)(tarStream);
65604
+ const chunkedTarBuffers = await (0, import_build_utils22.streamToBufferChunks)(tarStream);
65605
65605
  debug2(`Packed tarball into ${chunkedTarBuffers.length} chunks`);
65606
65606
  files = new Map(
65607
65607
  chunkedTarBuffers.map((chunk, index) => [
@@ -86121,7 +86121,7 @@ var require_local_file_system_detector = __commonJS2({
86121
86121
  LocalFileSystemDetector: () => LocalFileSystemDetector6
86122
86122
  });
86123
86123
  module2.exports = __toCommonJS4(local_file_system_detector_exports);
86124
- var import_promises7 = __toESM4(__require("fs/promises"));
86124
+ var import_promises8 = __toESM4(__require("fs/promises"));
86125
86125
  var import_path46 = __require("path");
86126
86126
  var import_filesystem = require_filesystem();
86127
86127
  var import_error_utils38 = require_dist2();
@@ -86132,7 +86132,7 @@ var require_local_file_system_detector = __commonJS2({
86132
86132
  }
86133
86133
  async _hasPath(name) {
86134
86134
  try {
86135
- await import_promises7.default.stat(this.getFilePath(name));
86135
+ await import_promises8.default.stat(this.getFilePath(name));
86136
86136
  return true;
86137
86137
  } catch (err) {
86138
86138
  if ((0, import_error_utils38.isErrnoException)(err) && err.code === "ENOENT") {
@@ -86142,15 +86142,15 @@ var require_local_file_system_detector = __commonJS2({
86142
86142
  }
86143
86143
  }
86144
86144
  _readFile(name) {
86145
- return import_promises7.default.readFile(this.getFilePath(name));
86145
+ return import_promises8.default.readFile(this.getFilePath(name));
86146
86146
  }
86147
86147
  async _isFile(name) {
86148
- const stat2 = await import_promises7.default.stat(this.getFilePath(name));
86148
+ const stat2 = await import_promises8.default.stat(this.getFilePath(name));
86149
86149
  return stat2.isFile();
86150
86150
  }
86151
86151
  async _readdir(dir) {
86152
86152
  const dirPath = this.getFilePath(dir);
86153
- const entries = await import_promises7.default.readdir(dirPath, { withFileTypes: true });
86153
+ const entries = await import_promises8.default.readdir(dirPath, { withFileTypes: true });
86154
86154
  const result = [];
86155
86155
  for (const entry of entries) {
86156
86156
  let type;
@@ -86327,7 +86327,7 @@ var require_detect_builders = __commonJS2({
86327
86327
  var import_path46 = __require("path");
86328
86328
  var import_frameworks11 = __toESM4(require_frameworks());
86329
86329
  var import_is_official_runtime = require_is_official_runtime();
86330
- var import_build_utils21 = __require("@vercel/build-utils");
86330
+ var import_build_utils22 = __require("@vercel/build-utils");
86331
86331
  var import_get_services_builders = require_get_services_builders();
86332
86332
  var REGEX_MIDDLEWARE_FILES = "middleware.[jt]s";
86333
86333
  var REGEX_VERCEL_PLATFORM_FILES = `api/**,package.json,${REGEX_MIDDLEWARE_FILES}`;
@@ -86588,7 +86588,7 @@ var require_detect_builders = __commonJS2({
86588
86588
  }
86589
86589
  if (fileName.endsWith(".py") && options.workPath) {
86590
86590
  const fsPath = (0, import_path46.join)(options.workPath, fileName);
86591
- const isEntrypoint = await (0, import_build_utils21.isPythonEntrypoint)({ fsPath });
86591
+ const isEntrypoint = await (0, import_build_utils22.isPythonEntrypoint)({ fsPath });
86592
86592
  if (!isEntrypoint) {
86593
86593
  return null;
86594
86594
  }
@@ -86698,8 +86698,8 @@ var require_detect_builders = __commonJS2({
86698
86698
  const f = slugToFramework.get(framework || "");
86699
86699
  if (f && f.useRuntime) {
86700
86700
  const { src, use } = f.useRuntime;
86701
- const shouldUseUnifiedBackend = (0, import_build_utils21.isExperimentalBackendsEnabled)() && import_build_utils21.BACKEND_BUILDERS.includes(use);
86702
- const finalUse = shouldUseUnifiedBackend ? import_build_utils21.UNIFIED_BACKEND_BUILDER : use;
86701
+ const shouldUseUnifiedBackend = (0, import_build_utils22.isExperimentalBackendsEnabled)() && import_build_utils22.BACKEND_BUILDERS.includes(use);
86702
+ const finalUse = shouldUseUnifiedBackend ? import_build_utils22.UNIFIED_BACKEND_BUILDER : use;
86703
86703
  return { src, use: `${finalUse}${withTag}`, config: config2 };
86704
86704
  }
86705
86705
  const entrypoints = /* @__PURE__ */ new Set([
@@ -102626,7 +102626,7 @@ var require_util6 = __commonJS2({
102626
102626
  return path12;
102627
102627
  }
102628
102628
  exports2.normalize = normalize4;
102629
- function join27(aRoot, aPath) {
102629
+ function join28(aRoot, aPath) {
102630
102630
  if (aRoot === "") {
102631
102631
  aRoot = ".";
102632
102632
  }
@@ -102658,7 +102658,7 @@ var require_util6 = __commonJS2({
102658
102658
  }
102659
102659
  return joined;
102660
102660
  }
102661
- exports2.join = join27;
102661
+ exports2.join = join28;
102662
102662
  exports2.isAbsolute = function(aPath) {
102663
102663
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
102664
102664
  };
@@ -102831,7 +102831,7 @@ var require_util6 = __commonJS2({
102831
102831
  parsed.path = parsed.path.substring(0, index + 1);
102832
102832
  }
102833
102833
  }
102834
- sourceURL = join27(urlGenerate(parsed), sourceURL);
102834
+ sourceURL = join28(urlGenerate(parsed), sourceURL);
102835
102835
  }
102836
102836
  return normalize4(sourceURL);
102837
102837
  }
@@ -104634,7 +104634,7 @@ var require_escodegen = __commonJS2({
104634
104634
  function noEmptySpace() {
104635
104635
  return space ? space : " ";
104636
104636
  }
104637
- function join27(left, right) {
104637
+ function join28(left, right) {
104638
104638
  var leftSource, rightSource, leftCharCode, rightCharCode;
104639
104639
  leftSource = toSourceNodeWhenNeeded(left).toString();
104640
104640
  if (leftSource.length === 0) {
@@ -104965,8 +104965,8 @@ var require_escodegen = __commonJS2({
104965
104965
  } else {
104966
104966
  result.push(that.generateExpression(stmt.left, Precedence.Call, E_TTT));
104967
104967
  }
104968
- result = join27(result, operator);
104969
- result = [join27(
104968
+ result = join28(result, operator);
104969
+ result = [join28(
104970
104970
  result,
104971
104971
  that.generateExpression(stmt.right, Precedence.Assignment, E_TTT)
104972
104972
  ), ")"];
@@ -105109,11 +105109,11 @@ var require_escodegen = __commonJS2({
105109
105109
  var result, fragment;
105110
105110
  result = ["class"];
105111
105111
  if (stmt.id) {
105112
- result = join27(result, this.generateExpression(stmt.id, Precedence.Sequence, E_TTT));
105112
+ result = join28(result, this.generateExpression(stmt.id, Precedence.Sequence, E_TTT));
105113
105113
  }
105114
105114
  if (stmt.superClass) {
105115
- fragment = join27("extends", this.generateExpression(stmt.superClass, Precedence.Unary, E_TTT));
105116
- result = join27(result, fragment);
105115
+ fragment = join28("extends", this.generateExpression(stmt.superClass, Precedence.Unary, E_TTT));
105116
+ result = join28(result, fragment);
105117
105117
  }
105118
105118
  result.push(space);
105119
105119
  result.push(this.generateStatement(stmt.body, S_TFFT));
@@ -105126,9 +105126,9 @@ var require_escodegen = __commonJS2({
105126
105126
  return escapeDirective(stmt.directive) + this.semicolon(flags);
105127
105127
  },
105128
105128
  DoWhileStatement: function(stmt, flags) {
105129
- var result = join27("do", this.maybeBlock(stmt.body, S_TFFF));
105129
+ var result = join28("do", this.maybeBlock(stmt.body, S_TFFF));
105130
105130
  result = this.maybeBlockSuffix(stmt.body, result);
105131
- return join27(result, [
105131
+ return join28(result, [
105132
105132
  "while" + space + "(",
105133
105133
  this.generateExpression(stmt.test, Precedence.Sequence, E_TTT),
105134
105134
  ")" + this.semicolon(flags)
@@ -105164,11 +105164,11 @@ var require_escodegen = __commonJS2({
105164
105164
  ExportDefaultDeclaration: function(stmt, flags) {
105165
105165
  var result = ["export"], bodyFlags;
105166
105166
  bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF;
105167
- result = join27(result, "default");
105167
+ result = join28(result, "default");
105168
105168
  if (isStatement(stmt.declaration)) {
105169
- result = join27(result, this.generateStatement(stmt.declaration, bodyFlags));
105169
+ result = join28(result, this.generateStatement(stmt.declaration, bodyFlags));
105170
105170
  } else {
105171
- result = join27(result, this.generateExpression(stmt.declaration, Precedence.Assignment, E_TTT) + this.semicolon(flags));
105171
+ result = join28(result, this.generateExpression(stmt.declaration, Precedence.Assignment, E_TTT) + this.semicolon(flags));
105172
105172
  }
105173
105173
  return result;
105174
105174
  },
@@ -105176,15 +105176,15 @@ var require_escodegen = __commonJS2({
105176
105176
  var result = ["export"], bodyFlags, that = this;
105177
105177
  bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF;
105178
105178
  if (stmt.declaration) {
105179
- return join27(result, this.generateStatement(stmt.declaration, bodyFlags));
105179
+ return join28(result, this.generateStatement(stmt.declaration, bodyFlags));
105180
105180
  }
105181
105181
  if (stmt.specifiers) {
105182
105182
  if (stmt.specifiers.length === 0) {
105183
- result = join27(result, "{" + space + "}");
105183
+ result = join28(result, "{" + space + "}");
105184
105184
  } else if (stmt.specifiers[0].type === Syntax.ExportBatchSpecifier) {
105185
- result = join27(result, this.generateExpression(stmt.specifiers[0], Precedence.Sequence, E_TTT));
105185
+ result = join28(result, this.generateExpression(stmt.specifiers[0], Precedence.Sequence, E_TTT));
105186
105186
  } else {
105187
- result = join27(result, "{");
105187
+ result = join28(result, "{");
105188
105188
  withIndent(function(indent2) {
105189
105189
  var i, iz;
105190
105190
  result.push(newline);
@@ -105202,7 +105202,7 @@ var require_escodegen = __commonJS2({
105202
105202
  result.push(base + "}");
105203
105203
  }
105204
105204
  if (stmt.source) {
105205
- result = join27(result, [
105205
+ result = join28(result, [
105206
105206
  "from" + space,
105207
105207
  // ModuleSpecifier
105208
105208
  this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
@@ -105290,7 +105290,7 @@ var require_escodegen = __commonJS2({
105290
105290
  ];
105291
105291
  cursor = 0;
105292
105292
  if (stmt.specifiers[cursor].type === Syntax.ImportDefaultSpecifier) {
105293
- result = join27(result, [
105293
+ result = join28(result, [
105294
105294
  this.generateExpression(stmt.specifiers[cursor], Precedence.Sequence, E_TTT)
105295
105295
  ]);
105296
105296
  ++cursor;
@@ -105300,7 +105300,7 @@ var require_escodegen = __commonJS2({
105300
105300
  result.push(",");
105301
105301
  }
105302
105302
  if (stmt.specifiers[cursor].type === Syntax.ImportNamespaceSpecifier) {
105303
- result = join27(result, [
105303
+ result = join28(result, [
105304
105304
  space,
105305
105305
  this.generateExpression(stmt.specifiers[cursor], Precedence.Sequence, E_TTT)
105306
105306
  ]);
@@ -105329,7 +105329,7 @@ var require_escodegen = __commonJS2({
105329
105329
  }
105330
105330
  }
105331
105331
  }
105332
- result = join27(result, [
105332
+ result = join28(result, [
105333
105333
  "from" + space,
105334
105334
  // ModuleSpecifier
105335
105335
  this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
@@ -105383,7 +105383,7 @@ var require_escodegen = __commonJS2({
105383
105383
  return result;
105384
105384
  },
105385
105385
  ThrowStatement: function(stmt, flags) {
105386
- return [join27(
105386
+ return [join28(
105387
105387
  "throw",
105388
105388
  this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT)
105389
105389
  ), this.semicolon(flags)];
@@ -105394,7 +105394,7 @@ var require_escodegen = __commonJS2({
105394
105394
  result = this.maybeBlockSuffix(stmt.block, result);
105395
105395
  if (stmt.handlers) {
105396
105396
  for (i = 0, iz = stmt.handlers.length; i < iz; ++i) {
105397
- result = join27(result, this.generateStatement(stmt.handlers[i], S_TFFF));
105397
+ result = join28(result, this.generateStatement(stmt.handlers[i], S_TFFF));
105398
105398
  if (stmt.finalizer || i + 1 !== iz) {
105399
105399
  result = this.maybeBlockSuffix(stmt.handlers[i].body, result);
105400
105400
  }
@@ -105402,7 +105402,7 @@ var require_escodegen = __commonJS2({
105402
105402
  } else {
105403
105403
  guardedHandlers = stmt.guardedHandlers || [];
105404
105404
  for (i = 0, iz = guardedHandlers.length; i < iz; ++i) {
105405
- result = join27(result, this.generateStatement(guardedHandlers[i], S_TFFF));
105405
+ result = join28(result, this.generateStatement(guardedHandlers[i], S_TFFF));
105406
105406
  if (stmt.finalizer || i + 1 !== iz) {
105407
105407
  result = this.maybeBlockSuffix(guardedHandlers[i].body, result);
105408
105408
  }
@@ -105410,13 +105410,13 @@ var require_escodegen = __commonJS2({
105410
105410
  if (stmt.handler) {
105411
105411
  if (Array.isArray(stmt.handler)) {
105412
105412
  for (i = 0, iz = stmt.handler.length; i < iz; ++i) {
105413
- result = join27(result, this.generateStatement(stmt.handler[i], S_TFFF));
105413
+ result = join28(result, this.generateStatement(stmt.handler[i], S_TFFF));
105414
105414
  if (stmt.finalizer || i + 1 !== iz) {
105415
105415
  result = this.maybeBlockSuffix(stmt.handler[i].body, result);
105416
105416
  }
105417
105417
  }
105418
105418
  } else {
105419
- result = join27(result, this.generateStatement(stmt.handler, S_TFFF));
105419
+ result = join28(result, this.generateStatement(stmt.handler, S_TFFF));
105420
105420
  if (stmt.finalizer) {
105421
105421
  result = this.maybeBlockSuffix(stmt.handler.body, result);
105422
105422
  }
@@ -105424,7 +105424,7 @@ var require_escodegen = __commonJS2({
105424
105424
  }
105425
105425
  }
105426
105426
  if (stmt.finalizer) {
105427
- result = join27(result, ["finally", this.maybeBlock(stmt.finalizer, S_TFFF)]);
105427
+ result = join28(result, ["finally", this.maybeBlock(stmt.finalizer, S_TFFF)]);
105428
105428
  }
105429
105429
  return result;
105430
105430
  },
@@ -105458,7 +105458,7 @@ var require_escodegen = __commonJS2({
105458
105458
  withIndent(function() {
105459
105459
  if (stmt.test) {
105460
105460
  result = [
105461
- join27("case", that.generateExpression(stmt.test, Precedence.Sequence, E_TTT)),
105461
+ join28("case", that.generateExpression(stmt.test, Precedence.Sequence, E_TTT)),
105462
105462
  ":"
105463
105463
  ];
105464
105464
  } else {
@@ -105506,9 +105506,9 @@ var require_escodegen = __commonJS2({
105506
105506
  result.push(this.maybeBlock(stmt.consequent, S_TFFF));
105507
105507
  result = this.maybeBlockSuffix(stmt.consequent, result);
105508
105508
  if (stmt.alternate.type === Syntax.IfStatement) {
105509
- result = join27(result, ["else ", this.generateStatement(stmt.alternate, bodyFlags)]);
105509
+ result = join28(result, ["else ", this.generateStatement(stmt.alternate, bodyFlags)]);
105510
105510
  } else {
105511
- result = join27(result, join27("else", this.maybeBlock(stmt.alternate, bodyFlags)));
105511
+ result = join28(result, join28("else", this.maybeBlock(stmt.alternate, bodyFlags)));
105512
105512
  }
105513
105513
  } else {
105514
105514
  result.push(this.maybeBlock(stmt.consequent, bodyFlags));
@@ -105609,7 +105609,7 @@ var require_escodegen = __commonJS2({
105609
105609
  },
105610
105610
  ReturnStatement: function(stmt, flags) {
105611
105611
  if (stmt.argument) {
105612
- return [join27(
105612
+ return [join28(
105613
105613
  "return",
105614
105614
  this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT)
105615
105615
  ), this.semicolon(flags)];
@@ -105698,14 +105698,14 @@ var require_escodegen = __commonJS2({
105698
105698
  if (leftSource.charCodeAt(leftSource.length - 1) === 47 && esutils.code.isIdentifierPartES5(expr.operator.charCodeAt(0))) {
105699
105699
  result = [fragment, noEmptySpace(), expr.operator];
105700
105700
  } else {
105701
- result = join27(fragment, expr.operator);
105701
+ result = join28(fragment, expr.operator);
105702
105702
  }
105703
105703
  fragment = this.generateExpression(expr.right, rightPrecedence, flags);
105704
105704
  if (expr.operator === "/" && fragment.toString().charAt(0) === "/" || expr.operator.slice(-1) === "<" && fragment.toString().slice(0, 3) === "!--") {
105705
105705
  result.push(noEmptySpace());
105706
105706
  result.push(fragment);
105707
105707
  } else {
105708
- result = join27(result, fragment);
105708
+ result = join28(result, fragment);
105709
105709
  }
105710
105710
  if (expr.operator === "in" && !(flags & F_ALLOW_IN)) {
105711
105711
  return ["(", result, ")"];
@@ -105745,7 +105745,7 @@ var require_escodegen = __commonJS2({
105745
105745
  var result, length, i, iz, itemFlags;
105746
105746
  length = expr["arguments"].length;
105747
105747
  itemFlags = flags & F_ALLOW_UNPARATH_NEW && !parentheses && length === 0 ? E_TFT : E_TFF;
105748
- result = join27(
105748
+ result = join28(
105749
105749
  "new",
105750
105750
  this.generateExpression(expr.callee, Precedence.New, itemFlags)
105751
105751
  );
@@ -105795,11 +105795,11 @@ var require_escodegen = __commonJS2({
105795
105795
  var result, fragment, rightCharCode, leftSource, leftCharCode;
105796
105796
  fragment = this.generateExpression(expr.argument, Precedence.Unary, E_TTT);
105797
105797
  if (space === "") {
105798
- result = join27(expr.operator, fragment);
105798
+ result = join28(expr.operator, fragment);
105799
105799
  } else {
105800
105800
  result = [expr.operator];
105801
105801
  if (expr.operator.length > 2) {
105802
- result = join27(result, fragment);
105802
+ result = join28(result, fragment);
105803
105803
  } else {
105804
105804
  leftSource = toSourceNodeWhenNeeded(result).toString();
105805
105805
  leftCharCode = leftSource.charCodeAt(leftSource.length - 1);
@@ -105822,7 +105822,7 @@ var require_escodegen = __commonJS2({
105822
105822
  result = "yield";
105823
105823
  }
105824
105824
  if (expr.argument) {
105825
- result = join27(
105825
+ result = join28(
105826
105826
  result,
105827
105827
  this.generateExpression(expr.argument, Precedence.Yield, E_TTT)
105828
105828
  );
@@ -105830,7 +105830,7 @@ var require_escodegen = __commonJS2({
105830
105830
  return parenthesize(result, Precedence.Yield, precedence);
105831
105831
  },
105832
105832
  AwaitExpression: function(expr, precedence, flags) {
105833
- var result = join27(
105833
+ var result = join28(
105834
105834
  expr.all ? "await*" : "await",
105835
105835
  this.generateExpression(expr.argument, Precedence.Await, E_TTT)
105836
105836
  );
@@ -105913,11 +105913,11 @@ var require_escodegen = __commonJS2({
105913
105913
  var result, fragment;
105914
105914
  result = ["class"];
105915
105915
  if (expr.id) {
105916
- result = join27(result, this.generateExpression(expr.id, Precedence.Sequence, E_TTT));
105916
+ result = join28(result, this.generateExpression(expr.id, Precedence.Sequence, E_TTT));
105917
105917
  }
105918
105918
  if (expr.superClass) {
105919
- fragment = join27("extends", this.generateExpression(expr.superClass, Precedence.Unary, E_TTT));
105920
- result = join27(result, fragment);
105919
+ fragment = join28("extends", this.generateExpression(expr.superClass, Precedence.Unary, E_TTT));
105920
+ result = join28(result, fragment);
105921
105921
  }
105922
105922
  result.push(space);
105923
105923
  result.push(this.generateStatement(expr.body, S_TFFT));
@@ -105932,7 +105932,7 @@ var require_escodegen = __commonJS2({
105932
105932
  }
105933
105933
  if (expr.kind === "get" || expr.kind === "set") {
105934
105934
  fragment = [
105935
- join27(expr.kind, this.generatePropertyKey(expr.key, expr.computed)),
105935
+ join28(expr.kind, this.generatePropertyKey(expr.key, expr.computed)),
105936
105936
  this.generateFunctionBody(expr.value)
105937
105937
  ];
105938
105938
  } else {
@@ -105942,7 +105942,7 @@ var require_escodegen = __commonJS2({
105942
105942
  this.generateFunctionBody(expr.value)
105943
105943
  ];
105944
105944
  }
105945
- return join27(result, fragment);
105945
+ return join28(result, fragment);
105946
105946
  },
105947
105947
  Property: function(expr, precedence, flags) {
105948
105948
  if (expr.kind === "get" || expr.kind === "set") {
@@ -106137,7 +106137,7 @@ var require_escodegen = __commonJS2({
106137
106137
  for (i = 0, iz = expr.blocks.length; i < iz; ++i) {
106138
106138
  fragment = that.generateExpression(expr.blocks[i], Precedence.Sequence, E_TTT);
106139
106139
  if (i > 0 || extra.moz.comprehensionExpressionStartsWithAssignment) {
106140
- result = join27(result, fragment);
106140
+ result = join28(result, fragment);
106141
106141
  } else {
106142
106142
  result.push(fragment);
106143
106143
  }
@@ -106145,13 +106145,13 @@ var require_escodegen = __commonJS2({
106145
106145
  });
106146
106146
  }
106147
106147
  if (expr.filter) {
106148
- result = join27(result, "if" + space);
106148
+ result = join28(result, "if" + space);
106149
106149
  fragment = this.generateExpression(expr.filter, Precedence.Sequence, E_TTT);
106150
- result = join27(result, ["(", fragment, ")"]);
106150
+ result = join28(result, ["(", fragment, ")"]);
106151
106151
  }
106152
106152
  if (!extra.moz.comprehensionExpressionStartsWithAssignment) {
106153
106153
  fragment = this.generateExpression(expr.body, Precedence.Assignment, E_TTT);
106154
- result = join27(result, fragment);
106154
+ result = join28(result, fragment);
106155
106155
  }
106156
106156
  result.push(expr.type === Syntax.GeneratorExpression ? ")" : "]");
106157
106157
  return result;
@@ -106167,8 +106167,8 @@ var require_escodegen = __commonJS2({
106167
106167
  } else {
106168
106168
  fragment = this.generateExpression(expr.left, Precedence.Call, E_TTT);
106169
106169
  }
106170
- fragment = join27(fragment, expr.of ? "of" : "in");
106171
- fragment = join27(fragment, this.generateExpression(expr.right, Precedence.Sequence, E_TTT));
106170
+ fragment = join28(fragment, expr.of ? "of" : "in");
106171
+ fragment = join28(fragment, this.generateExpression(expr.right, Precedence.Sequence, E_TTT));
106172
106172
  return ["for" + space + "(", fragment, ")"];
106173
106173
  },
106174
106174
  SpreadElement: function(expr, precedence, flags) {
@@ -126587,7 +126587,7 @@ var require_isexe = __commonJS2({
126587
126587
  var require_lib12 = __commonJS2({
126588
126588
  "../../node_modules/.pnpm/which@3.0.0/node_modules/which/lib/index.js"(exports2, module2) {
126589
126589
  var isexe = require_isexe();
126590
- var { join: join27, delimiter: delimiter3, sep: sep3, posix: posix2 } = __require("path");
126590
+ var { join: join28, delimiter: delimiter3, sep: sep3, posix: posix2 } = __require("path");
126591
126591
  var isWindows = process.platform === "win32";
126592
126592
  var rSlash = new RegExp(`[${posix2.sep}${sep3 === posix2.sep ? "" : sep3}]`.replace(/(\\)/g, "\\$1"));
126593
126593
  var rRel = new RegExp(`^\\.${rSlash.source}`);
@@ -126616,7 +126616,7 @@ var require_lib12 = __commonJS2({
126616
126616
  var getPathPart = (raw, cmd2) => {
126617
126617
  const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
126618
126618
  const prefix = !pathPart && rRel.test(cmd2) ? cmd2.slice(0, 2) : "";
126619
- return prefix + join27(pathPart, cmd2);
126619
+ return prefix + join28(pathPart, cmd2);
126620
126620
  };
126621
126621
  var which2 = async (cmd2, opt = {}) => {
126622
126622
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd2, opt);
@@ -154163,12 +154163,163 @@ var init_pull4 = __esm({
154163
154163
  }
154164
154164
  });
154165
154165
 
154166
+ // src/commands/build/emit-flags-definitions.ts
154167
+ var emit_flags_definitions_exports = {};
154168
+ __export3(emit_flags_definitions_exports, {
154169
+ emitFlagsDefinitions: () => emitFlagsDefinitions
154170
+ });
154171
+ import { NowBuildError as NowBuildError6 } from "@vercel/build-utils";
154172
+ import { mkdir as mkdir4, writeFile as writeFile5 } from "fs/promises";
154173
+ import { join as join18 } from "path";
154174
+ function obfuscate(sdkKey, prefixLength = 18) {
154175
+ if (prefixLength >= sdkKey.length)
154176
+ return sdkKey;
154177
+ return sdkKey.slice(0, prefixLength) + "*".repeat(sdkKey.length - prefixLength);
154178
+ }
154179
+ function generateDefinitionsModule(sdkKeys, values) {
154180
+ const stringified = sdkKeys.map((_, i) => JSON.stringify(values[i]));
154181
+ const uniqueStrings = [];
154182
+ const stringToIndex = /* @__PURE__ */ new Map();
154183
+ for (const s of stringified) {
154184
+ if (!stringToIndex.has(s)) {
154185
+ stringToIndex.set(s, uniqueStrings.length);
154186
+ uniqueStrings.push(s);
154187
+ }
154188
+ }
154189
+ const keyToIndex = sdkKeys.map((_, i) => stringToIndex.get(stringified[i]));
154190
+ const lines3 = [
154191
+ "const memo = (fn) => { let cached; return () => (cached ??= fn()); };",
154192
+ ""
154193
+ ];
154194
+ for (let i = 0; i < uniqueStrings.length; i++) {
154195
+ lines3.push(
154196
+ `const _d${i} = memo(() => JSON.parse(${JSON.stringify(uniqueStrings[i])}));`
154197
+ );
154198
+ }
154199
+ lines3.push("");
154200
+ lines3.push("const map = {");
154201
+ for (let i = 0; i < sdkKeys.length; i++) {
154202
+ lines3.push(` ${JSON.stringify(sdkKeys[i])}: _d${keyToIndex[i]},`);
154203
+ }
154204
+ lines3.push("};");
154205
+ lines3.push("");
154206
+ lines3.push("export function get(sdkKey) {");
154207
+ lines3.push(" return map[sdkKey]?.() ?? null;");
154208
+ lines3.push("}");
154209
+ lines3.push("");
154210
+ lines3.push(
154211
+ `export const version = ${JSON.stringify(FLAGS_DEFINITIONS_VERSION)};`
154212
+ );
154213
+ return lines3.join("\n");
154214
+ }
154215
+ async function emitFlagsDefinitions(cwd, env) {
154216
+ output_manager_default.debug("vercel-flags: checking env vars for SDK Keys");
154217
+ const sdkKeys = Array.from(
154218
+ Object.values(env).reduce((acc, value) => {
154219
+ if (typeof value === "string") {
154220
+ if (value.startsWith("vf_")) {
154221
+ acc.add(value);
154222
+ } else if (value.startsWith("flags:")) {
154223
+ const params2 = new URLSearchParams(value.slice("flags:".length));
154224
+ const sdkKey = params2.get("sdkKey");
154225
+ if (sdkKey?.startsWith("vf_")) {
154226
+ acc.add(sdkKey);
154227
+ }
154228
+ }
154229
+ }
154230
+ return acc;
154231
+ }, /* @__PURE__ */ new Set())
154232
+ );
154233
+ output_manager_default.debug(`vercel-flags: found ${sdkKeys.length} SDK keys`);
154234
+ const fetchPromise = Promise.all(
154235
+ sdkKeys.map(async (sdkKey) => {
154236
+ const headers = {
154237
+ authorization: `Bearer ${sdkKey}`,
154238
+ "user-agent": `VercelCLI/${pkg_default.version}`
154239
+ };
154240
+ if (env.VERCEL_PROJECT_ID) {
154241
+ headers["x-vercel-project-id"] = env.VERCEL_PROJECT_ID;
154242
+ }
154243
+ if (env.VERCEL_ENV) {
154244
+ headers["x-vercel-env"] = env.VERCEL_ENV;
154245
+ }
154246
+ if (env.VERCEL_DEPLOYMENT_ID) {
154247
+ headers["x-vercel-deployment-id"] = env.VERCEL_DEPLOYMENT_ID;
154248
+ }
154249
+ if (env.VERCEL_REGION) {
154250
+ headers["x-vercel-region"] = env.VERCEL_REGION;
154251
+ }
154252
+ const res = await (0, import_node_fetch4.default)(`${FLAGS_HOST}/v1/datafile`, { headers });
154253
+ if (!res.ok) {
154254
+ throw new NowBuildError6({
154255
+ code: "VERCEL_FLAGS_DEFINITIONS_FETCH_FAILED",
154256
+ message: `Failed to fetch flag definitions for ${obfuscate(sdkKey)}: ${res.status} ${res.statusText}`,
154257
+ link: "https://vercel.com/docs/flags"
154258
+ // TODO replace with better link once we have a docs page
154259
+ });
154260
+ }
154261
+ return res.json();
154262
+ })
154263
+ );
154264
+ const values = await output_manager_default.time(
154265
+ "vercel-flags: load datafiles",
154266
+ fetchPromise
154267
+ );
154268
+ const definitionsJs = generateDefinitionsModule(sdkKeys, values);
154269
+ const storageDir = join18(cwd, "node_modules", "@vercel", "flags-definitions");
154270
+ const indexPath = join18(storageDir, "index.js");
154271
+ const dtsPath = join18(storageDir, "index.d.ts");
154272
+ const packageJsonPath = join18(storageDir, "package.json");
154273
+ const dts = [
154274
+ "export function get(sdkKey: string): Record<string, unknown> | null;",
154275
+ "export const version: string;",
154276
+ ""
154277
+ ].join("\n");
154278
+ const packageJson = {
154279
+ name: "@vercel/flags-definitions",
154280
+ version: FLAGS_DEFINITIONS_VERSION,
154281
+ type: "module",
154282
+ main: "./index.js",
154283
+ types: "./index.d.ts",
154284
+ exports: {
154285
+ ".": {
154286
+ types: "./index.d.ts",
154287
+ import: "./index.js"
154288
+ }
154289
+ }
154290
+ };
154291
+ await mkdir4(storageDir, { recursive: true });
154292
+ await Promise.all([
154293
+ writeFile5(indexPath, definitionsJs),
154294
+ writeFile5(dtsPath, dts),
154295
+ writeFile5(packageJsonPath, JSON.stringify(packageJson, null, 2))
154296
+ ]);
154297
+ output_manager_default.debug("vercel-flags: created module");
154298
+ output_manager_default.debug(` \u2192 ${indexPath}`);
154299
+ output_manager_default.debug(` \u2192 ${dtsPath}`);
154300
+ output_manager_default.debug(` \u2192 ${packageJsonPath}`);
154301
+ output_manager_default.debug(
154302
+ ` \u2192 included definitions for keys "${sdkKeys.map((key) => obfuscate(key)).join(", ")}"`
154303
+ );
154304
+ }
154305
+ var import_node_fetch4, FLAGS_HOST, FLAGS_DEFINITIONS_VERSION;
154306
+ var init_emit_flags_definitions = __esm({
154307
+ "src/commands/build/emit-flags-definitions.ts"() {
154308
+ "use strict";
154309
+ import_node_fetch4 = __toESM3(require_lib7(), 1);
154310
+ init_output_manager();
154311
+ init_pkg();
154312
+ FLAGS_HOST = "https://flags.vercel.com";
154313
+ FLAGS_DEFINITIONS_VERSION = "1.0.0";
154314
+ }
154315
+ });
154316
+
154166
154317
  // src/commands/build/index.ts
154167
154318
  var build_exports = {};
154168
154319
  __export3(build_exports, {
154169
154320
  default: () => main3
154170
154321
  });
154171
- import { join as join18, normalize as normalize3, relative as relative6, resolve as resolve10, sep as sep2 } from "path";
154322
+ import { join as join19, normalize as normalize3, relative as relative6, resolve as resolve10, sep as sep2 } from "path";
154172
154323
  import {
154173
154324
  download as download2,
154174
154325
  FileFsRef as FileFsRef2,
@@ -154176,7 +154327,7 @@ import {
154176
154327
  getInstalledPackageVersion,
154177
154328
  getServiceUrlEnvVars,
154178
154329
  normalizePath as normalizePath3,
154179
- NowBuildError as NowBuildError6,
154330
+ NowBuildError as NowBuildError7,
154180
154331
  runNpmInstall,
154181
154332
  runCustomInstallCommand,
154182
154333
  resetCustomInstallCommandSet,
@@ -154184,7 +154335,7 @@ import {
154184
154335
  validateNpmrc,
154185
154336
  isBackendBuilder as isBackendBuilder2
154186
154337
  } from "@vercel/build-utils";
154187
- import { mkdir as mkdir4, writeFile as writeFile5 } from "fs/promises";
154338
+ import { mkdir as mkdir5, writeFile as writeFile6 } from "fs/promises";
154188
154339
  async function main3(client2) {
154189
154340
  const telemetryClient = new BuildTelemetryClient({
154190
154341
  opts: {
@@ -154252,7 +154403,7 @@ async function main3(client2) {
154252
154403
  if (link4?.repoRoot) {
154253
154404
  cwd = client2.cwd = link4.repoRoot;
154254
154405
  }
154255
- const vercelDir = join18(cwd, projectRootDirectory, VERCEL_DIR);
154406
+ const vercelDir = join19(cwd, projectRootDirectory, VERCEL_DIR);
154256
154407
  let project = await readProjectSettings(vercelDir);
154257
154408
  const isTTY3 = process.stdin.isTTY;
154258
154409
  while (!project?.settings) {
@@ -154279,7 +154430,7 @@ async function main3(client2) {
154279
154430
  return 0;
154280
154431
  }
154281
154432
  const { argv: originalArgv } = client2;
154282
- client2.cwd = join18(cwd, projectRootDirectory);
154433
+ client2.cwd = join19(cwd, projectRootDirectory);
154283
154434
  client2.argv = [
154284
154435
  ...originalArgv.slice(0, 2),
154285
154436
  "pull",
@@ -154300,7 +154451,7 @@ async function main3(client2) {
154300
154451
  client2.argv = originalArgv;
154301
154452
  project = await readProjectSettings(vercelDir);
154302
154453
  }
154303
- const defaultOutputDir = join18(cwd, projectRootDirectory, OUTPUT_DIR);
154454
+ const defaultOutputDir = join19(cwd, projectRootDirectory, OUTPUT_DIR);
154304
154455
  const outputDir = parsedArgs.flags["--output"] ? resolve10(parsedArgs.flags["--output"]) : defaultOutputDir;
154305
154456
  await Promise.all([
154306
154457
  import_fs_extra18.default.remove(outputDir),
@@ -154319,7 +154470,7 @@ async function main3(client2) {
154319
154470
  }
154320
154471
  const envToUnset = /* @__PURE__ */ new Set(["VERCEL", "NOW_BUILDER"]);
154321
154472
  try {
154322
- const envPath = join18(
154473
+ const envPath = join19(
154323
154474
  cwd,
154324
154475
  projectRootDirectory,
154325
154476
  VERCEL_DIR,
@@ -154356,8 +154507,8 @@ async function main3(client2) {
154356
154507
  } catch (err) {
154357
154508
  output_manager_default.prettyError(err);
154358
154509
  buildsJson.error = toEnumerableError(err);
154359
- const buildsJsonPath = join18(outputDir, "builds.json");
154360
- const configJsonPath = join18(outputDir, "config.json");
154510
+ const buildsJsonPath = join19(outputDir, "builds.json");
154511
+ const configJsonPath = join19(outputDir, "config.json");
154361
154512
  await import_fs_extra18.default.outputJSON(buildsJsonPath, buildsJson, {
154362
154513
  spaces: 2
154363
154514
  });
@@ -154365,10 +154516,10 @@ async function main3(client2) {
154365
154516
  return 1;
154366
154517
  } finally {
154367
154518
  try {
154368
- const diagnosticsOutputPath = join18(outputDir, "diagnostics");
154369
- await mkdir4(diagnosticsOutputPath, { recursive: true });
154370
- await writeFile5(
154371
- join18(diagnosticsOutputPath, "cli_traces.json"),
154519
+ const diagnosticsOutputPath = join19(outputDir, "diagnostics");
154520
+ await mkdir5(diagnosticsOutputPath, { recursive: true });
154521
+ await writeFile6(
154522
+ join19(diagnosticsOutputPath, "cli_traces.json"),
154372
154523
  JSON.stringify(reporter.events)
154373
154524
  );
154374
154525
  } catch (err) {
@@ -154385,7 +154536,7 @@ async function main3(client2) {
154385
154536
  async function doBuild(client2, project, buildsJson, cwd, outputDir, span, standalone = false) {
154386
154537
  const { localConfigPath } = client2;
154387
154538
  const VALID_DEPLOYMENT_ID_PATTERN = /^[a-zA-Z0-9_-]+$/;
154388
- const workPath = join18(cwd, project.settings.rootDirectory || ".");
154539
+ const workPath = join19(cwd, project.settings.rootDirectory || ".");
154389
154540
  const sourceConfigFile = await findSourceVercelConfigFile(workPath);
154390
154541
  let corepackShimDir;
154391
154542
  if (sourceConfigFile) {
@@ -154416,11 +154567,11 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154416
154567
  process.env.VERCEL_INSTALL_COMPLETED = "1";
154417
154568
  }
154418
154569
  const compileResult = await compileVercelConfig(workPath);
154419
- const vercelConfigPath = localConfigPath || compileResult.configPath || join18(workPath, "vercel.json");
154570
+ const vercelConfigPath = localConfigPath || compileResult.configPath || join19(workPath, "vercel.json");
154420
154571
  const [pkg, vercelConfig, nowConfig, hasInstrumentation] = await Promise.all([
154421
- readJSONFile(join18(workPath, "package.json")),
154572
+ readJSONFile(join19(workPath, "package.json")),
154422
154573
  readJSONFile(vercelConfigPath),
154423
- readJSONFile(join18(workPath, "now.json")),
154574
+ readJSONFile(join19(workPath, "now.json")),
154424
154575
  (0, import_fs_detectors5.detectInstrumentation)(new import_fs_detectors5.LocalFileSystemDetector(workPath))
154425
154576
  ]);
154426
154577
  if (pkg instanceof CantParseJSONFile)
@@ -154455,9 +154606,9 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154455
154606
  const errorPages = typeof localConfig.customErrorPage === "string" ? [localConfig.customErrorPage] : Object.values(localConfig.customErrorPage);
154456
154607
  for (const page of errorPages) {
154457
154608
  if (page) {
154458
- const src = join18(workPath, page);
154609
+ const src = join19(workPath, page);
154459
154610
  if (!(0, import_fs_extra18.existsSync)(src)) {
154460
- throw new NowBuildError6({
154611
+ throw new NowBuildError7({
154461
154612
  code: "CUSTOM_ERROR_PAGE_NOT_FOUND",
154462
154613
  message: `The custom error page "${page}" was not found in "${workPath}".`,
154463
154614
  link: "https://vercel.com/docs/projects/project-configuration#custom-error-page"
@@ -154473,6 +154624,10 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154473
154624
  if (process.env.VERCEL_BUILD_MONOREPO_SUPPORT === "1" && pkg?.scripts?.["vercel-build"] === void 0 && projectSettings.rootDirectory !== null && projectSettings.rootDirectory !== ".") {
154474
154625
  await setMonorepoDefaultSettings(cwd, workPath, projectSettings);
154475
154626
  }
154627
+ if (process.env.VERCEL_EXPERIMENTAL_EMBED_FLAG_DEFINITIONS === "1") {
154628
+ const { emitFlagsDefinitions: emitFlagsDefinitions2 } = await Promise.resolve().then(() => (init_emit_flags_definitions(), emit_flags_definitions_exports));
154629
+ await emitFlagsDefinitions2(cwd, process.env);
154630
+ }
154476
154631
  const files = (await staticFiles(workPath, {})).map(
154477
154632
  (f) => normalizePath3(relative6(workPath, f))
154478
154633
  );
@@ -154481,7 +154636,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154481
154636
  throw routesResult.error;
154482
154637
  }
154483
154638
  if (localConfig.builds && localConfig.functions) {
154484
- throw new NowBuildError6({
154639
+ throw new NowBuildError7({
154485
154640
  code: "bad_request",
154486
154641
  message: "The `functions` property cannot be used in conjunction with the `builds` property. Please remove one of them.",
154487
154642
  link: "https://vercel.link/functions-and-builds"
@@ -154548,7 +154703,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154548
154703
  const buildersWithPkgs = await importBuilders(builderSpecs, cwd);
154549
154704
  const filesMap = {};
154550
154705
  for (const path12 of files) {
154551
- const fsPath = join18(workPath, path12);
154706
+ const fsPath = join19(workPath, path12);
154552
154707
  const { mode } = await import_fs_extra18.default.stat(fsPath);
154553
154708
  filesMap[path12] = new FileFsRef2({ mode, fsPath });
154554
154709
  }
@@ -154667,7 +154822,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154667
154822
  if (buildResult && "output" in buildResult && "runtime" in buildResult.output && "type" in buildResult.output && buildResult.output.type === "Lambda") {
154668
154823
  const lambdaRuntime = buildResult.output.runtime;
154669
154824
  if (getDiscontinuedNodeVersions().some((o) => o.runtime === lambdaRuntime)) {
154670
- throw new NowBuildError6({
154825
+ throw new NowBuildError7({
154671
154826
  code: "NODEJS_DISCONTINUED_VERSION",
154672
154827
  message: `The Runtime "${build2.use}" is using "${lambdaRuntime}", which is discontinued. Please upgrade your Runtime to a more recent version or consult the author for more details.`,
154673
154828
  link: "https://vercel.link/function-runtimes"
@@ -154675,7 +154830,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154675
154830
  }
154676
154831
  }
154677
154832
  if ("output" in buildResult && buildResult.output && (isBackendBuilder2(build2) || build2.use === "@vercel/python")) {
154678
- const routesJsonPath = join18(workPath, ".vercel", "routes.json");
154833
+ const routesJsonPath = join19(workPath, ".vercel", "routes.json");
154679
154834
  if ((0, import_fs_extra18.existsSync)(routesJsonPath)) {
154680
154835
  try {
154681
154836
  const routesJson = await readJSONFile(routesJsonPath);
@@ -154753,7 +154908,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154753
154908
  throw err;
154754
154909
  } finally {
154755
154910
  ops.push(
154756
- download2(diagnostics, join18(outputDir, "diagnostics")).then(
154911
+ download2(diagnostics, join19(outputDir, "diagnostics")).then(
154757
154912
  () => void 0,
154758
154913
  (err) => err
154759
154914
  )
@@ -154791,7 +154946,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154791
154946
  if (needBuildsJsonOverride) {
154792
154947
  await writeBuildJson(buildsJson, outputDir);
154793
154948
  }
154794
- const configPath = join18(outputDir, "config.json");
154949
+ const configPath = join19(outputDir, "config.json");
154795
154950
  const existingConfig = await readJSONFile(configPath);
154796
154951
  if (existingConfig instanceof CantParseJSONFile) {
154797
154952
  throw existingConfig;
@@ -154800,14 +154955,14 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154800
154955
  if ("deploymentId" in existingConfig && typeof existingConfig.deploymentId === "string") {
154801
154956
  const deploymentId = existingConfig.deploymentId;
154802
154957
  if (deploymentId.length > 32) {
154803
- throw new NowBuildError6({
154958
+ throw new NowBuildError7({
154804
154959
  code: "INVALID_DEPLOYMENT_ID",
154805
154960
  message: `The deploymentId "${deploymentId}" must be 32 characters or less. Please choose a shorter deploymentId in your config.`,
154806
154961
  link: "https://vercel.com/docs/skew-protection#custom-skew-protection-deployment-id"
154807
154962
  });
154808
154963
  }
154809
154964
  if (!VALID_DEPLOYMENT_ID_PATTERN.test(deploymentId)) {
154810
- throw new NowBuildError6({
154965
+ throw new NowBuildError7({
154811
154966
  code: "INVALID_DEPLOYMENT_ID",
154812
154967
  message: `The deploymentId "${deploymentId}" contains invalid characters. Only alphanumeric characters (a-z, A-Z, 0-9), hyphens (-), and underscores (_) are allowed.`,
154813
154968
  link: "https://vercel.com/docs/skew-protection#custom-skew-protection-deployment-id"
@@ -154855,14 +155010,14 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154855
155010
  );
154856
155011
  if (mergedDeploymentId) {
154857
155012
  if (mergedDeploymentId.length > 32) {
154858
- throw new NowBuildError6({
155013
+ throw new NowBuildError7({
154859
155014
  code: "INVALID_DEPLOYMENT_ID",
154860
155015
  message: `The deploymentId "${mergedDeploymentId}" must be 32 characters or less. Please choose a shorter deploymentId in your config.`,
154861
155016
  link: "https://vercel.com/docs/skew-protection#custom-skew-protection-deployment-id"
154862
155017
  });
154863
155018
  }
154864
155019
  if (!VALID_DEPLOYMENT_ID_PATTERN.test(mergedDeploymentId)) {
154865
- throw new NowBuildError6({
155020
+ throw new NowBuildError7({
154866
155021
  code: "INVALID_DEPLOYMENT_ID",
154867
155022
  message: `The deploymentId "${mergedDeploymentId}" contains invalid characters. Only alphanumeric characters (a-z, A-Z, 0-9), hyphens (-), and underscores (_) are allowed.`,
154868
155023
  link: "https://vercel.com/docs/skew-protection#custom-skew-protection-deployment-id"
@@ -154882,7 +155037,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154882
155037
  ...detectedServices && detectedServices.length > 0 && { services: detectedServices },
154883
155038
  ...mergedDeploymentId && { deploymentId: mergedDeploymentId }
154884
155039
  };
154885
- await import_fs_extra18.default.writeJSON(join18(outputDir, "config.json"), config2, { spaces: 2 });
155040
+ await import_fs_extra18.default.writeJSON(join19(outputDir, "config.json"), config2, { spaces: 2 });
154886
155041
  await writeFlagsJSON(buildResults.values(), outputDir);
154887
155042
  const relOutputDir = relative6(cwd, outputDir);
154888
155043
  output_manager_default.print(
@@ -154926,7 +155081,7 @@ async function getFramework(cwd, buildResults) {
154926
155081
  }
154927
155082
  function expandBuild(files, build2) {
154928
155083
  if (!build2.use) {
154929
- throw new NowBuildError6({
155084
+ throw new NowBuildError7({
154930
155085
  code: `invalid_build_specification`,
154931
155086
  message: "Field `use` is missing in build specification",
154932
155087
  link: "https://vercel.com/docs/concepts/projects/project-configuration#builds",
@@ -154935,7 +155090,7 @@ function expandBuild(files, build2) {
154935
155090
  }
154936
155091
  let src = normalize3(build2.src || "**").split(sep2).join("/");
154937
155092
  if (src === "." || src === "./") {
154938
- throw new NowBuildError6({
155093
+ throw new NowBuildError7({
154939
155094
  code: `invalid_build_specification`,
154940
155095
  message: "A build `src` path resolves to an empty string",
154941
155096
  link: "https://vercel.com/docs/concepts/projects/project-configuration#builds",
@@ -154992,7 +155147,7 @@ async function mergeDeploymentId(existingDeploymentId, buildResults, workPath) {
154992
155147
  }
154993
155148
  }
154994
155149
  try {
154995
- const routesManifestPath = join18(workPath, ".next", "routes-manifest.json");
155150
+ const routesManifestPath = join19(workPath, ".next", "routes-manifest.json");
154996
155151
  if (await import_fs_extra18.default.pathExists(routesManifestPath)) {
154997
155152
  const routesManifest = await readJSONFile(
154998
155153
  routesManifestPath
@@ -155008,7 +155163,7 @@ async function mergeDeploymentId(existingDeploymentId, buildResults, workPath) {
155008
155163
  return void 0;
155009
155164
  }
155010
155165
  async function writeFlagsJSON(buildResults, outputDir) {
155011
- const flagsFilePath = join18(outputDir, "flags.json");
155166
+ const flagsFilePath = join19(outputDir, "flags.json");
155012
155167
  let hasFlags = true;
155013
155168
  const flags = await import_fs_extra18.default.readJSON(flagsFilePath).catch((error3) => {
155014
155169
  if (error3.code === "ENOENT") {
@@ -155036,7 +155191,7 @@ async function writeFlagsJSON(buildResults, outputDir) {
155036
155191
  }
155037
155192
  }
155038
155193
  async function writeBuildJson(buildsJson, outputDir) {
155039
- await import_fs_extra18.default.writeJSON(join18(outputDir, "builds.json"), buildsJson, { spaces: 2 });
155194
+ await import_fs_extra18.default.writeJSON(join19(outputDir, "builds.json"), buildsJson, { spaces: 2 });
155040
155195
  }
155041
155196
  async function getFrameworkRoutes(framework, dirPrefix) {
155042
155197
  let routes2 = [];
@@ -157917,13 +158072,13 @@ var init_process_deployment = __esm({
157917
158072
  // src/util/index.ts
157918
158073
  import qs from "querystring";
157919
158074
  import { parse as parseUrl } from "url";
157920
- var import_async_retry5, import_ms10, import_node_fetch4, import_bytes5, import_chalk69, Now;
158075
+ var import_async_retry5, import_ms10, import_node_fetch5, import_bytes5, import_chalk69, Now;
157921
158076
  var init_util = __esm({
157922
158077
  "src/util/index.ts"() {
157923
158078
  "use strict";
157924
158079
  import_async_retry5 = __toESM3(require_dist5(), 1);
157925
158080
  import_ms10 = __toESM3(require_ms(), 1);
157926
- import_node_fetch4 = __toESM3(require_lib7(), 1);
158081
+ import_node_fetch5 = __toESM3(require_lib7(), 1);
157927
158082
  import_bytes5 = __toESM3(require_bytes(), 1);
157928
158083
  import_chalk69 = __toESM3(require_source(), 1);
157929
158084
  init_ua();
@@ -158151,7 +158306,7 @@ ${err.stack}`);
158151
158306
  _url = `${parsedUrl.pathname}?${qs.stringify(query)}`;
158152
158307
  delete opts.useCurrentTeam;
158153
158308
  }
158154
- opts.headers = new import_node_fetch4.Headers(opts.headers);
158309
+ opts.headers = new import_node_fetch5.Headers(opts.headers);
158155
158310
  opts.headers.set("accept", "application/json");
158156
158311
  if (this._token) {
158157
158312
  opts.headers.set("authorization", `Bearer ${this._token}`);
@@ -158166,7 +158321,7 @@ ${err.stack}`);
158166
158321
  }
158167
158322
  const res = await output_manager_default.time(
158168
158323
  `${opts.method || "GET"} ${this._apiUrl}${_url} ${opts.body || ""}`,
158169
- (0, import_node_fetch4.default)(`${this._apiUrl}${_url}`, { ...opts, body })
158324
+ (0, import_node_fetch5.default)(`${this._apiUrl}${_url}`, { ...opts, body })
158170
158325
  );
158171
158326
  printIndications(res);
158172
158327
  return res;
@@ -158356,10 +158511,10 @@ var init_get_deployment_checks = __esm({
158356
158511
  });
158357
158512
 
158358
158513
  // src/util/deploy/get-prebuilt-json.ts
158359
- import { join as join19 } from "path";
158514
+ import { join as join20 } from "path";
158360
158515
  async function getPrebuiltJson(directory) {
158361
158516
  try {
158362
- return await import_fs_extra19.default.readJSON(join19(directory, "builds.json"));
158517
+ return await import_fs_extra19.default.readJSON(join20(directory, "builds.json"));
158363
158518
  } catch (error3) {
158364
158519
  }
158365
158520
  return null;
@@ -158698,7 +158853,7 @@ import {
158698
158853
  getSupportedNodeVersion,
158699
158854
  scanParentDirs as scanParentDirs3
158700
158855
  } from "@vercel/build-utils";
158701
- import { join as join20, resolve as resolve12 } from "path";
158856
+ import { join as join21, resolve as resolve12 } from "path";
158702
158857
  import { determineAgent } from "@vercel/detect-agent";
158703
158858
  function handleCreateDeployError(error3, localConfig) {
158704
158859
  if (error3 instanceof InvalidDomain) {
@@ -158961,9 +159116,9 @@ var init_deploy2 = __esm({
158961
159116
  }
158962
159117
  let vercelOutputDir;
158963
159118
  if (parsedArguments.flags["--prebuilt"]) {
158964
- vercelOutputDir = join20(cwd, ".vercel/output");
159119
+ vercelOutputDir = join21(cwd, ".vercel/output");
158965
159120
  if (link4.repoRoot && link4.project.rootDirectory) {
158966
- vercelOutputDir = join20(cwd, link4.project.rootDirectory, ".vercel/output");
159121
+ vercelOutputDir = join21(cwd, link4.project.rootDirectory, ".vercel/output");
158967
159122
  }
158968
159123
  const prebuiltExists = await import_fs_extra20.default.pathExists(vercelOutputDir);
158969
159124
  if (!prebuiltExists) {
@@ -159007,13 +159162,13 @@ var init_deploy2 = __esm({
159007
159162
  client2.config.currentTeam = org.type === "team" ? org.id : void 0;
159008
159163
  if (rootDirectory && await validateRootDirectory(
159009
159164
  cwd,
159010
- join20(cwd, rootDirectory),
159165
+ join21(cwd, rootDirectory),
159011
159166
  project ? `To change your Project Settings, go to https://vercel.com/${org?.slug}/${project.name}/settings` : ""
159012
159167
  ) === false) {
159013
159168
  return 1;
159014
159169
  }
159015
159170
  if (rootDirectory) {
159016
- const rootDirectoryPath = join20(cwd, rootDirectory);
159171
+ const rootDirectoryPath = join21(cwd, rootDirectory);
159017
159172
  await compileVercelConfig(rootDirectoryPath);
159018
159173
  const rootDirectoryConfig = readLocalConfig(rootDirectoryPath);
159019
159174
  if (rootDirectoryConfig) {
@@ -159150,7 +159305,7 @@ var init_deploy2 = __esm({
159150
159305
  };
159151
159306
  }
159152
159307
  const { packageJson } = await scanParentDirs3(
159153
- join20(cwd, project?.rootDirectory ?? ""),
159308
+ join21(cwd, project?.rootDirectory ?? ""),
159154
159309
  true,
159155
159310
  cwd
159156
159311
  );
@@ -176195,7 +176350,7 @@ var init_tree_kill = __esm({
176195
176350
  });
176196
176351
 
176197
176352
  // src/util/dev/builder.ts
176198
- import { delimiter as delimiter2, dirname as dirname7, join as join21 } from "path";
176353
+ import { delimiter as delimiter2, dirname as dirname7, join as join22 } from "path";
176199
176354
  import { fork as fork2 } from "child_process";
176200
176355
  import { createFunction } from "@vercel/fun";
176201
176356
  import {
@@ -176208,7 +176363,7 @@ import {
176208
176363
  } from "@vercel/build-utils";
176209
176364
  async function createBuildProcess(match, envConfigs, workPath) {
176210
176365
  output_manager_default.debug(`Creating build process for "${match.entrypoint}"`);
176211
- const builderWorkerPath = join21(__dirname, "builder-worker.cjs");
176366
+ const builderWorkerPath = join22(__dirname, "builder-worker.cjs");
176212
176367
  const PATH = `${dirname7(process.execPath)}${delimiter2}${process.env.PATH}`;
176213
176368
  const env = {
176214
176369
  ...process.env,
@@ -176495,7 +176650,7 @@ async function getBuildMatches(vercelConfig, cwd, devServer, fileList) {
176495
176650
  mapToEntrypoint.set(extensionless, src);
176496
176651
  src = extensionless;
176497
176652
  }
176498
- const files = fileList.filter((name) => name === src || (0, import_minimatch3.default)(name, src, { dot: true })).map((name) => join21(cwd, name));
176653
+ const files = fileList.filter((name) => name === src || (0, import_minimatch3.default)(name, src, { dot: true })).map((name) => join22(cwd, name));
176499
176654
  if (files.length === 0) {
176500
176655
  noMatches.push(buildConfig);
176501
176656
  }
@@ -177119,7 +177274,7 @@ var init_services_orchestrator = __esm({
177119
177274
 
177120
177275
  // src/util/dev/headers.ts
177121
177276
  function nodeHeadersToFetchHeaders(nodeHeaders) {
177122
- const headers = new import_node_fetch5.Headers();
177277
+ const headers = new import_node_fetch6.Headers();
177123
177278
  for (const [name, value] of Object.entries(nodeHeaders)) {
177124
177279
  if (Array.isArray(value)) {
177125
177280
  for (const val of value) {
@@ -177163,11 +177318,11 @@ function applyOverriddenHeaders(reqHeaders, respHeaders) {
177163
177318
  respHeaders.delete(valueKey);
177164
177319
  }
177165
177320
  }
177166
- var import_node_fetch5, NONOVERRIDABLE_HEADERS;
177321
+ var import_node_fetch6, NONOVERRIDABLE_HEADERS;
177167
177322
  var init_headers = __esm({
177168
177323
  "src/util/dev/headers.ts"() {
177169
177324
  "use strict";
177170
- import_node_fetch5 = __toESM3(require_lib7(), 1);
177325
+ import_node_fetch6 = __toESM3(require_lib7(), 1);
177171
177326
  NONOVERRIDABLE_HEADERS = /* @__PURE__ */ new Set([
177172
177327
  "host",
177173
177328
  "connection",
@@ -177235,7 +177390,7 @@ import url2, { URL as URL8 } from "url";
177235
177390
  import http2 from "http";
177236
177391
  import { randomBytes } from "crypto";
177237
177392
  import { watch } from "chokidar";
177238
- import path9, { isAbsolute, basename as basename9, dirname as dirname8, extname as extname2, join as join22 } from "path";
177393
+ import path9, { isAbsolute, basename as basename9, dirname as dirname8, extname as extname2, join as join23 } from "path";
177239
177394
  import {
177240
177395
  cloneEnv as cloneEnv3,
177241
177396
  getNodeBinPaths as getNodeBinPaths2,
@@ -177443,14 +177598,14 @@ function buildMatchEquals(a, b) {
177443
177598
  return false;
177444
177599
  return true;
177445
177600
  }
177446
- var import_fs_extra21, import_ms14, import_chalk74, import_node_fetch6, import_pluralize9, import_raw_body, import_async_listen3, import_minimatch4, import_http_proxy_node16, import_serve_handler, import_dotenv3, import_once, import_directory, import_get_port2, import_fast_deep_equal, import_npm_package_arg2, import_json_parse_better_errors3, import_client12, import_routing_utils5, import_fs_detectors7, import_frameworks8, import_error_utils21, frontendRuntimeSet, DEV_SERVER_PORT_BIND_TIMEOUT, DevServer;
177601
+ var import_fs_extra21, import_ms14, import_chalk74, import_node_fetch7, import_pluralize9, import_raw_body, import_async_listen3, import_minimatch4, import_http_proxy_node16, import_serve_handler, import_dotenv3, import_once, import_directory, import_get_port2, import_fast_deep_equal, import_npm_package_arg2, import_json_parse_better_errors3, import_client12, import_routing_utils5, import_fs_detectors7, import_frameworks8, import_error_utils21, frontendRuntimeSet, DEV_SERVER_PORT_BIND_TIMEOUT, DevServer;
177447
177602
  var init_server = __esm({
177448
177603
  "src/util/dev/server.ts"() {
177449
177604
  "use strict";
177450
177605
  import_fs_extra21 = __toESM3(require_lib(), 1);
177451
177606
  import_ms14 = __toESM3(require_ms(), 1);
177452
177607
  import_chalk74 = __toESM3(require_source(), 1);
177453
- import_node_fetch6 = __toESM3(require_lib7(), 1);
177608
+ import_node_fetch7 = __toESM3(require_lib7(), 1);
177454
177609
  import_pluralize9 = __toESM3(require_pluralize(), 1);
177455
177610
  import_raw_body = __toESM3(require_raw_body(), 1);
177456
177611
  import_async_listen3 = __toESM3(require_dist6(), 1);
@@ -177657,7 +177812,7 @@ var init_server = __esm({
177657
177812
  for (const [name, value] of nodeHeadersToFetchHeaders(proxyHeaders)) {
177658
177813
  middlewareReqHeaders.set(name, value);
177659
177814
  }
177660
- const middlewareRes = await (0, import_node_fetch6.default)(
177815
+ const middlewareRes = await (0, import_node_fetch7.default)(
177661
177816
  `http://127.0.0.1:${port}${parsed.path}`,
177662
177817
  {
177663
177818
  headers: middlewareReqHeaders,
@@ -178184,7 +178339,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
178184
178339
  this.stopping = false;
178185
178340
  this.buildMatches = /* @__PURE__ */ new Map();
178186
178341
  this.inProgressBuilds = /* @__PURE__ */ new Map();
178187
- this.devCacheDir = join22(getVercelDirectory(cwd), "cache");
178342
+ this.devCacheDir = join23(getVercelDirectory(cwd), "cache");
178188
178343
  this.vercelConfigWarning = false;
178189
178344
  this.getVercelConfigPromise = null;
178190
178345
  this.blockingBuildsPromise = null;
@@ -178412,7 +178567,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
178412
178567
  );
178413
178568
  }
178414
178569
  async getLocalEnv(fileName, base) {
178415
- const filePath = join22(this.cwd, fileName);
178570
+ const filePath = join23(this.cwd, fileName);
178416
178571
  let env = {};
178417
178572
  try {
178418
178573
  const dotenv2 = await import_fs_extra21.default.readFile(filePath, "utf8");
@@ -178482,7 +178637,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
178482
178637
  if (vercelConfig.customErrorPage) {
178483
178638
  const errorPages = typeof vercelConfig.customErrorPage === "string" ? [vercelConfig.customErrorPage] : Object.values(vercelConfig.customErrorPage);
178484
178639
  for (const page of errorPages) {
178485
- if (page && !import_fs_extra21.default.existsSync(join22(this.cwd, page))) {
178640
+ if (page && !import_fs_extra21.default.existsSync(join23(this.cwd, page))) {
178486
178641
  output_manager_default.warn(
178487
178642
  `The custom error page "${page}" was not found in "${this.cwd}". This will cause deployment to fail on Vercel.`
178488
178643
  );
@@ -178617,7 +178772,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
178617
178772
  abs = filePath;
178618
178773
  } else {
178619
178774
  rel = filePath;
178620
- abs = join22(this.cwd, filePath);
178775
+ abs = join23(this.cwd, filePath);
178621
178776
  }
178622
178777
  output_manager_default.debug(`Reading \`${rel}\` file`);
178623
178778
  try {
@@ -179359,7 +179514,7 @@ var init_refresh_oidc_token = __esm({
179359
179514
  });
179360
179515
 
179361
179516
  // src/commands/dev/dev.ts
179362
- import { resolve as resolve13, join as join23 } from "path";
179517
+ import { resolve as resolve13, join as join24 } from "path";
179363
179518
  async function dev(client2, opts, args2, telemetry2) {
179364
179519
  const [dir = "."] = args2;
179365
179520
  let cwd = resolve13(dir);
@@ -179397,7 +179552,7 @@ async function dev(client2, opts, args2, telemetry2) {
179397
179552
  client2.config.currentTeam = org.type === "team" ? org.id : void 0;
179398
179553
  projectSettings = project;
179399
179554
  if (project.rootDirectory) {
179400
- cwd = join23(cwd, project.rootDirectory);
179555
+ cwd = join24(cwd, project.rootDirectory);
179401
179556
  }
179402
179557
  envValues = (await pullEnvRecords(client2, project.id, "vercel-cli:dev")).env;
179403
179558
  }
@@ -179446,7 +179601,7 @@ async function dev(client2, opts, args2, telemetry2) {
179446
179601
  devServer.stop();
179447
179602
  });
179448
179603
  if (!devServer.devCommand) {
179449
- const outputDir = join23(cwd, OUTPUT_DIR);
179604
+ const outputDir = join24(cwd, OUTPUT_DIR);
179450
179605
  if (await import_fs_extra22.default.pathExists(outputDir)) {
179451
179606
  output_manager_default.log(`Removing ${OUTPUT_DIR}`);
179452
179607
  await import_fs_extra22.default.remove(outputDir);
@@ -184405,7 +184560,7 @@ var init_connect = __esm({
184405
184560
  });
184406
184561
 
184407
184562
  // src/commands/git/connect.ts
184408
- import { join as join24 } from "path";
184563
+ import { join as join25 } from "path";
184409
184564
  async function connect(client2, argv) {
184410
184565
  let parsedArgs;
184411
184566
  const flagsSpecification = getFlagsSpecification(connectSubcommand.options);
@@ -184448,7 +184603,7 @@ async function connect(client2, argv) {
184448
184603
  const { project, org } = linkedProject;
184449
184604
  const gitProviderLink = project.link;
184450
184605
  client2.config.currentTeam = org.type === "team" ? org.id : void 0;
184451
- const gitConfigPath = join24(cwd, ".git/config");
184606
+ const gitConfigPath = join25(cwd, ".git/config");
184452
184607
  const gitConfig = await parseGitConfig(gitConfigPath);
184453
184608
  if (repoArg) {
184454
184609
  const parsedUrlArg = parseRepoUrl(repoArg);
@@ -190865,7 +191020,7 @@ var init_logout2 = __esm({
190865
191020
  });
190866
191021
 
190867
191022
  // src/commands/microfrontends/pull.ts
190868
- import { join as join25 } from "path";
191023
+ import { join as join26 } from "path";
190869
191024
  async function pull2(client2) {
190870
191025
  const link4 = await ensureLink("microfrontends", client2, client2.cwd);
190871
191026
  if (typeof link4 === "number") {
@@ -190874,7 +191029,7 @@ async function pull2(client2) {
190874
191029
  const { project, org, repoRoot } = link4;
190875
191030
  let currentDirectory;
190876
191031
  if (repoRoot) {
190877
- currentDirectory = join25(repoRoot, project.rootDirectory || "");
191032
+ currentDirectory = join26(repoRoot, project.rootDirectory || "");
190878
191033
  } else {
190879
191034
  currentDirectory = client2.cwd;
190880
191035
  }
@@ -190922,7 +191077,7 @@ async function pull2(client2) {
190922
191077
  )
190923
191078
  };
190924
191079
  output_manager_default.stopSpinner();
190925
- const path12 = join25(currentDirectory, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS);
191080
+ const path12 = join26(currentDirectory, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS);
190926
191081
  await (0, import_fs_extra23.outputJSON)(path12, sanitizedConfig, {
190927
191082
  spaces: 2
190928
191083
  });
@@ -190931,7 +191086,7 @@ async function pull2(client2) {
190931
191086
  `${prependEmoji(
190932
191087
  `Downloaded microfrontends configuration to ${import_chalk118.default.bold(
190933
191088
  humanizePath(
190934
- join25(currentDirectory, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS)
191089
+ join26(currentDirectory, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS)
190935
191090
  )
190936
191091
  )} ${import_chalk118.default.gray(microfrontendsStamp())}`,
190937
191092
  emoji("success")
@@ -197896,7 +198051,7 @@ var import_error_utils37 = __toESM3(require_dist2(), 1);
197896
198051
  var import_fs_extra24 = __toESM3(require_lib(), 1);
197897
198052
  var import_chalk150 = __toESM3(require_source(), 1);
197898
198053
  var import_epipebomb = __toESM3(require_epipebomb(), 1);
197899
- import { join as join26 } from "path";
198054
+ import { join as join27 } from "path";
197900
198055
  import { existsSync as existsSync5 } from "fs";
197901
198056
 
197902
198057
  // src/util/get-latest-version/index.ts
@@ -199095,7 +199250,7 @@ var main19 = async () => {
199095
199250
  let subcommand = void 0;
199096
199251
  let userSuppliedSubCommand = "";
199097
199252
  if (targetOrSubcommand) {
199098
- const targetPath = join26(cwd, targetOrSubcommand);
199253
+ const targetPath = join27(cwd, targetOrSubcommand);
199099
199254
  const targetPathExists = existsSync5(targetPath);
199100
199255
  const subcommandExists = GLOBAL_COMMANDS.has(targetOrSubcommand) || commands.has(targetOrSubcommand);
199101
199256
  if (targetPathExists && subcommandExists && !parsedArgs.flags["--cwd"] && !process.env.NOW_BUILDER) {