wrangler 3.44.0 → 3.45.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.
@@ -417,14 +417,14 @@ var require_util = __commonJS({
417
417
  }
418
418
  const port2 = url4.port != null ? url4.port : url4.protocol === "https:" ? 443 : 80;
419
419
  let origin = url4.origin != null ? url4.origin : `${url4.protocol}//${url4.hostname}:${port2}`;
420
- let path63 = url4.path != null ? url4.path : `${url4.pathname || ""}${url4.search || ""}`;
420
+ let path64 = url4.path != null ? url4.path : `${url4.pathname || ""}${url4.search || ""}`;
421
421
  if (origin.endsWith("/")) {
422
422
  origin = origin.substring(0, origin.length - 1);
423
423
  }
424
- if (path63 && !path63.startsWith("/")) {
425
- path63 = `/${path63}`;
424
+ if (path64 && !path64.startsWith("/")) {
425
+ path64 = `/${path64}`;
426
426
  }
427
- url4 = new URL(origin + path63);
427
+ url4 = new URL(origin + path64);
428
428
  }
429
429
  return url4;
430
430
  }
@@ -2083,19 +2083,19 @@ var require_basename = __commonJS({
2083
2083
  "../../node_modules/.pnpm/@fastify+busboy@2.1.0/node_modules/@fastify/busboy/lib/utils/basename.js"(exports2, module3) {
2084
2084
  "use strict";
2085
2085
  init_import_meta_url();
2086
- module3.exports = /* @__PURE__ */ __name(function basename4(path63) {
2087
- if (typeof path63 !== "string") {
2086
+ module3.exports = /* @__PURE__ */ __name(function basename4(path64) {
2087
+ if (typeof path64 !== "string") {
2088
2088
  return "";
2089
2089
  }
2090
- for (var i = path63.length - 1; i >= 0; --i) {
2091
- switch (path63.charCodeAt(i)) {
2090
+ for (var i = path64.length - 1; i >= 0; --i) {
2091
+ switch (path64.charCodeAt(i)) {
2092
2092
  case 47:
2093
2093
  case 92:
2094
- path63 = path63.slice(i + 1);
2095
- return path63 === ".." || path63 === "." ? "" : path63;
2094
+ path64 = path64.slice(i + 1);
2095
+ return path64 === ".." || path64 === "." ? "" : path64;
2096
2096
  }
2097
2097
  }
2098
- return path63 === ".." || path63 === "." ? "" : path63;
2098
+ return path64 === ".." || path64 === "." ? "" : path64;
2099
2099
  }, "basename");
2100
2100
  }
2101
2101
  });
@@ -5173,7 +5173,7 @@ var require_request = __commonJS({
5173
5173
  }
5174
5174
  var Request3 = class {
5175
5175
  constructor(origin, {
5176
- path: path63,
5176
+ path: path64,
5177
5177
  method,
5178
5178
  body,
5179
5179
  headers,
@@ -5187,11 +5187,11 @@ var require_request = __commonJS({
5187
5187
  throwOnError,
5188
5188
  expectContinue
5189
5189
  }, handler30) {
5190
- if (typeof path63 !== "string") {
5190
+ if (typeof path64 !== "string") {
5191
5191
  throw new InvalidArgumentError("path must be a string");
5192
- } else if (path63[0] !== "/" && !(path63.startsWith("http://") || path63.startsWith("https://")) && method !== "CONNECT") {
5192
+ } else if (path64[0] !== "/" && !(path64.startsWith("http://") || path64.startsWith("https://")) && method !== "CONNECT") {
5193
5193
  throw new InvalidArgumentError("path must be an absolute URL or start with a slash");
5194
- } else if (invalidPathRegex.exec(path63) !== null) {
5194
+ } else if (invalidPathRegex.exec(path64) !== null) {
5195
5195
  throw new InvalidArgumentError("invalid request path");
5196
5196
  }
5197
5197
  if (typeof method !== "string") {
@@ -5254,7 +5254,7 @@ var require_request = __commonJS({
5254
5254
  this.completed = false;
5255
5255
  this.aborted = false;
5256
5256
  this.upgrade = upgrade || null;
5257
- this.path = query ? util4.buildURL(path63, query) : path63;
5257
+ this.path = query ? util4.buildURL(path64, query) : path64;
5258
5258
  this.origin = origin;
5259
5259
  this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent;
5260
5260
  this.blocking = blocking == null ? false : blocking;
@@ -6287,9 +6287,9 @@ var require_RedirectHandler = __commonJS({
6287
6287
  return this.handler.onHeaders(statusCode, headers, resume, statusText);
6288
6288
  }
6289
6289
  const { origin, pathname, search } = util4.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
6290
- const path63 = search ? `${pathname}${search}` : pathname;
6290
+ const path64 = search ? `${pathname}${search}` : pathname;
6291
6291
  this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin);
6292
- this.opts.path = path63;
6292
+ this.opts.path = path64;
6293
6293
  this.opts.origin = origin;
6294
6294
  this.opts.maxRedirections = 0;
6295
6295
  this.opts.query = null;
@@ -7546,7 +7546,7 @@ var require_client = __commonJS({
7546
7546
  writeH2(client, client[kHTTP2Session], request3);
7547
7547
  return;
7548
7548
  }
7549
- const { body, method, path: path63, host, upgrade, headers, blocking, reset } = request3;
7549
+ const { body, method, path: path64, host, upgrade, headers, blocking, reset } = request3;
7550
7550
  const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
7551
7551
  if (body && typeof body.read === "function") {
7552
7552
  body.read(0);
@@ -7596,7 +7596,7 @@ var require_client = __commonJS({
7596
7596
  if (blocking) {
7597
7597
  socket[kBlocking] = true;
7598
7598
  }
7599
- let header = `${method} ${path63} HTTP/1.1\r
7599
+ let header = `${method} ${path64} HTTP/1.1\r
7600
7600
  `;
7601
7601
  if (typeof host === "string") {
7602
7602
  header += `host: ${host}\r
@@ -7660,7 +7660,7 @@ upgrade: ${upgrade}\r
7660
7660
  }
7661
7661
  __name(write, "write");
7662
7662
  function writeH2(client, session, request3) {
7663
- const { body, method, path: path63, host, upgrade, expectContinue, signal, headers: reqHeaders } = request3;
7663
+ const { body, method, path: path64, host, upgrade, expectContinue, signal, headers: reqHeaders } = request3;
7664
7664
  let headers;
7665
7665
  if (typeof reqHeaders === "string")
7666
7666
  headers = Request3[kHTTP2CopyHeaders](reqHeaders.trim());
@@ -7706,7 +7706,7 @@ upgrade: ${upgrade}\r
7706
7706
  });
7707
7707
  return true;
7708
7708
  }
7709
- headers[HTTP2_HEADER_PATH] = path63;
7709
+ headers[HTTP2_HEADER_PATH] = path64;
7710
7710
  headers[HTTP2_HEADER_SCHEME] = "https";
7711
7711
  const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
7712
7712
  if (body && typeof body.read === "function") {
@@ -10008,21 +10008,21 @@ var require_mock_utils = __commonJS({
10008
10008
  return true;
10009
10009
  }
10010
10010
  __name(matchHeaders, "matchHeaders");
10011
- function safeUrl(path63) {
10012
- if (typeof path63 !== "string") {
10013
- return path63;
10011
+ function safeUrl(path64) {
10012
+ if (typeof path64 !== "string") {
10013
+ return path64;
10014
10014
  }
10015
- const pathSegments = path63.split("?");
10015
+ const pathSegments = path64.split("?");
10016
10016
  if (pathSegments.length !== 2) {
10017
- return path63;
10017
+ return path64;
10018
10018
  }
10019
10019
  const qp = new URLSearchParams(pathSegments.pop());
10020
10020
  qp.sort();
10021
10021
  return [...pathSegments, qp.toString()].join("?");
10022
10022
  }
10023
10023
  __name(safeUrl, "safeUrl");
10024
- function matchKey(mockDispatch2, { path: path63, method, body, headers }) {
10025
- const pathMatch = matchValue(mockDispatch2.path, path63);
10024
+ function matchKey(mockDispatch2, { path: path64, method, body, headers }) {
10025
+ const pathMatch = matchValue(mockDispatch2.path, path64);
10026
10026
  const methodMatch = matchValue(mockDispatch2.method, method);
10027
10027
  const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true;
10028
10028
  const headersMatch = matchHeaders(mockDispatch2, headers);
@@ -10042,7 +10042,7 @@ var require_mock_utils = __commonJS({
10042
10042
  function getMockDispatch(mockDispatches, key) {
10043
10043
  const basePath = key.query ? buildURL(key.path, key.query) : key.path;
10044
10044
  const resolvedPath = typeof basePath === "string" ? safeUrl(basePath) : basePath;
10045
- let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path63 }) => matchValue(safeUrl(path63), resolvedPath));
10045
+ let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path64 }) => matchValue(safeUrl(path64), resolvedPath));
10046
10046
  if (matchedMockDispatches.length === 0) {
10047
10047
  throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`);
10048
10048
  }
@@ -10082,9 +10082,9 @@ var require_mock_utils = __commonJS({
10082
10082
  }
10083
10083
  __name(deleteMockDispatch, "deleteMockDispatch");
10084
10084
  function buildKey(opts) {
10085
- const { path: path63, method, body, headers, query } = opts;
10085
+ const { path: path64, method, body, headers, query } = opts;
10086
10086
  return {
10087
- path: path63,
10087
+ path: path64,
10088
10088
  method,
10089
10089
  body,
10090
10090
  headers,
@@ -10552,10 +10552,10 @@ var require_pending_interceptors_formatter = __commonJS({
10552
10552
  }
10553
10553
  format(pendingInterceptors) {
10554
10554
  const withPrettyHeaders = pendingInterceptors.map(
10555
- ({ method, path: path63, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
10555
+ ({ method, path: path64, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
10556
10556
  Method: method,
10557
10557
  Origin: origin,
10558
- Path: path63,
10558
+ Path: path64,
10559
10559
  "Status code": statusCode,
10560
10560
  Persistent: persist ? "\u2705" : "\u274C",
10561
10561
  Invocations: timesInvoked,
@@ -15260,8 +15260,8 @@ var require_util6 = __commonJS({
15260
15260
  }
15261
15261
  }
15262
15262
  __name(validateCookieValue, "validateCookieValue");
15263
- function validateCookiePath(path63) {
15264
- for (const char of path63) {
15263
+ function validateCookiePath(path64) {
15264
+ for (const char of path64) {
15265
15265
  const code = char.charCodeAt(0);
15266
15266
  if (code < 33 || char === ";") {
15267
15267
  throw new Error("Invalid cookie path");
@@ -16994,11 +16994,11 @@ var require_undici = __commonJS({
16994
16994
  if (typeof opts.path !== "string") {
16995
16995
  throw new InvalidArgumentError("invalid opts.path");
16996
16996
  }
16997
- let path63 = opts.path;
16997
+ let path64 = opts.path;
16998
16998
  if (!opts.path.startsWith("/")) {
16999
- path63 = `/${path63}`;
16999
+ path64 = `/${path64}`;
17000
17000
  }
17001
- url4 = new URL(util4.parseOrigin(url4).origin + path63);
17001
+ url4 = new URL(util4.parseOrigin(url4).origin + path64);
17002
17002
  } else {
17003
17003
  if (!opts) {
17004
17004
  opts = typeof url4 === "object" ? url4 : {};
@@ -19061,11 +19061,11 @@ var require_lodash = __commonJS({
19061
19061
  });
19062
19062
  }
19063
19063
  __name(baseFunctions, "baseFunctions");
19064
- function baseGet(object, path63) {
19065
- path63 = castPath(path63, object);
19066
- var index = 0, length = path63.length;
19064
+ function baseGet(object, path64) {
19065
+ path64 = castPath(path64, object);
19066
+ var index = 0, length = path64.length;
19067
19067
  while (object != null && index < length) {
19068
- object = object[toKey(path63[index++])];
19068
+ object = object[toKey(path64[index++])];
19069
19069
  }
19070
19070
  return index && index == length ? object : undefined2;
19071
19071
  }
@@ -19138,10 +19138,10 @@ var require_lodash = __commonJS({
19138
19138
  return accumulator;
19139
19139
  }
19140
19140
  __name(baseInverter, "baseInverter");
19141
- function baseInvoke(object, path63, args) {
19142
- path63 = castPath(path63, object);
19143
- object = parent(object, path63);
19144
- var func = object == null ? object : object[toKey(last(path63))];
19141
+ function baseInvoke(object, path64, args) {
19142
+ path64 = castPath(path64, object);
19143
+ object = parent(object, path64);
19144
+ var func = object == null ? object : object[toKey(last(path64))];
19145
19145
  return func == null ? undefined2 : apply(func, object, args);
19146
19146
  }
19147
19147
  __name(baseInvoke, "baseInvoke");
@@ -19315,13 +19315,13 @@ var require_lodash = __commonJS({
19315
19315
  };
19316
19316
  }
19317
19317
  __name(baseMatches, "baseMatches");
19318
- function baseMatchesProperty(path63, srcValue) {
19319
- if (isKey(path63) && isStrictComparable(srcValue)) {
19320
- return matchesStrictComparable(toKey(path63), srcValue);
19318
+ function baseMatchesProperty(path64, srcValue) {
19319
+ if (isKey(path64) && isStrictComparable(srcValue)) {
19320
+ return matchesStrictComparable(toKey(path64), srcValue);
19321
19321
  }
19322
19322
  return function(object) {
19323
- var objValue = get(object, path63);
19324
- return objValue === undefined2 && objValue === srcValue ? hasIn(object, path63) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
19323
+ var objValue = get(object, path64);
19324
+ return objValue === undefined2 && objValue === srcValue ? hasIn(object, path64) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
19325
19325
  };
19326
19326
  }
19327
19327
  __name(baseMatchesProperty, "baseMatchesProperty");
@@ -19423,25 +19423,25 @@ var require_lodash = __commonJS({
19423
19423
  }
19424
19424
  __name(baseOrderBy, "baseOrderBy");
19425
19425
  function basePick(object, paths) {
19426
- return basePickBy(object, paths, function(value, path63) {
19427
- return hasIn(object, path63);
19426
+ return basePickBy(object, paths, function(value, path64) {
19427
+ return hasIn(object, path64);
19428
19428
  });
19429
19429
  }
19430
19430
  __name(basePick, "basePick");
19431
19431
  function basePickBy(object, paths, predicate) {
19432
19432
  var index = -1, length = paths.length, result2 = {};
19433
19433
  while (++index < length) {
19434
- var path63 = paths[index], value = baseGet(object, path63);
19435
- if (predicate(value, path63)) {
19436
- baseSet(result2, castPath(path63, object), value);
19434
+ var path64 = paths[index], value = baseGet(object, path64);
19435
+ if (predicate(value, path64)) {
19436
+ baseSet(result2, castPath(path64, object), value);
19437
19437
  }
19438
19438
  }
19439
19439
  return result2;
19440
19440
  }
19441
19441
  __name(basePickBy, "basePickBy");
19442
- function basePropertyDeep(path63) {
19442
+ function basePropertyDeep(path64) {
19443
19443
  return function(object) {
19444
- return baseGet(object, path63);
19444
+ return baseGet(object, path64);
19445
19445
  };
19446
19446
  }
19447
19447
  __name(basePropertyDeep, "basePropertyDeep");
@@ -19524,14 +19524,14 @@ var require_lodash = __commonJS({
19524
19524
  return shuffleSelf(array, baseClamp(n2, 0, array.length));
19525
19525
  }
19526
19526
  __name(baseSampleSize, "baseSampleSize");
19527
- function baseSet(object, path63, value, customizer) {
19527
+ function baseSet(object, path64, value, customizer) {
19528
19528
  if (!isObject2(object)) {
19529
19529
  return object;
19530
19530
  }
19531
- path63 = castPath(path63, object);
19532
- var index = -1, length = path63.length, lastIndex = length - 1, nested = object;
19531
+ path64 = castPath(path64, object);
19532
+ var index = -1, length = path64.length, lastIndex = length - 1, nested = object;
19533
19533
  while (nested != null && ++index < length) {
19534
- var key = toKey(path63[index]), newValue = value;
19534
+ var key = toKey(path64[index]), newValue = value;
19535
19535
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
19536
19536
  return object;
19537
19537
  }
@@ -19539,7 +19539,7 @@ var require_lodash = __commonJS({
19539
19539
  var objValue = nested[key];
19540
19540
  newValue = customizer ? customizer(objValue, key, nested) : undefined2;
19541
19541
  if (newValue === undefined2) {
19542
- newValue = isObject2(objValue) ? objValue : isIndex(path63[index + 1]) ? [] : {};
19542
+ newValue = isObject2(objValue) ? objValue : isIndex(path64[index + 1]) ? [] : {};
19543
19543
  }
19544
19544
  }
19545
19545
  assignValue(nested, key, newValue);
@@ -19715,14 +19715,14 @@ var require_lodash = __commonJS({
19715
19715
  return result2;
19716
19716
  }
19717
19717
  __name(baseUniq, "baseUniq");
19718
- function baseUnset(object, path63) {
19719
- path63 = castPath(path63, object);
19720
- object = parent(object, path63);
19721
- return object == null || delete object[toKey(last(path63))];
19718
+ function baseUnset(object, path64) {
19719
+ path64 = castPath(path64, object);
19720
+ object = parent(object, path64);
19721
+ return object == null || delete object[toKey(last(path64))];
19722
19722
  }
19723
19723
  __name(baseUnset, "baseUnset");
19724
- function baseUpdate(object, path63, updater, customizer) {
19725
- return baseSet(object, path63, updater(baseGet(object, path63)), customizer);
19724
+ function baseUpdate(object, path64, updater, customizer) {
19725
+ return baseSet(object, path64, updater(baseGet(object, path64)), customizer);
19726
19726
  }
19727
19727
  __name(baseUpdate, "baseUpdate");
19728
19728
  function baseWhile(array, predicate, isDrop, fromRight) {
@@ -20673,11 +20673,11 @@ var require_lodash = __commonJS({
20673
20673
  return match ? match[1].split(reSplitDetails) : [];
20674
20674
  }
20675
20675
  __name(getWrapDetails, "getWrapDetails");
20676
- function hasPath(object, path63, hasFunc) {
20677
- path63 = castPath(path63, object);
20678
- var index = -1, length = path63.length, result2 = false;
20676
+ function hasPath(object, path64, hasFunc) {
20677
+ path64 = castPath(path64, object);
20678
+ var index = -1, length = path64.length, result2 = false;
20679
20679
  while (++index < length) {
20680
- var key = toKey(path63[index]);
20680
+ var key = toKey(path64[index]);
20681
20681
  if (!(result2 = object != null && hasFunc(object, key))) {
20682
20682
  break;
20683
20683
  }
@@ -20899,8 +20899,8 @@ var require_lodash = __commonJS({
20899
20899
  };
20900
20900
  }
20901
20901
  __name(overRest, "overRest");
20902
- function parent(object, path63) {
20903
- return path63.length < 2 ? object : baseGet(object, baseSlice(path63, 0, -1));
20902
+ function parent(object, path64) {
20903
+ return path64.length < 2 ? object : baseGet(object, baseSlice(path64, 0, -1));
20904
20904
  }
20905
20905
  __name(parent, "parent");
20906
20906
  function reorder(array, indexes) {
@@ -21610,10 +21610,10 @@ var require_lodash = __commonJS({
21610
21610
  return isString4(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
21611
21611
  }
21612
21612
  __name(includes, "includes");
21613
- var invokeMap = baseRest(function(collection, path63, args) {
21614
- var index = -1, isFunc = typeof path63 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
21613
+ var invokeMap = baseRest(function(collection, path64, args) {
21614
+ var index = -1, isFunc = typeof path64 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
21615
21615
  baseEach(collection, function(value) {
21616
- result2[++index] = isFunc ? apply(path63, value, args) : baseInvoke(value, path63, args);
21616
+ result2[++index] = isFunc ? apply(path64, value, args) : baseInvoke(value, path64, args);
21617
21617
  });
21618
21618
  return result2;
21619
21619
  });
@@ -22351,17 +22351,17 @@ var require_lodash = __commonJS({
22351
22351
  return object == null ? [] : baseFunctions(object, keysIn(object));
22352
22352
  }
22353
22353
  __name(functionsIn, "functionsIn");
22354
- function get(object, path63, defaultValue) {
22355
- var result2 = object == null ? undefined2 : baseGet(object, path63);
22354
+ function get(object, path64, defaultValue) {
22355
+ var result2 = object == null ? undefined2 : baseGet(object, path64);
22356
22356
  return result2 === undefined2 ? defaultValue : result2;
22357
22357
  }
22358
22358
  __name(get, "get");
22359
- function has(object, path63) {
22360
- return object != null && hasPath(object, path63, baseHas);
22359
+ function has(object, path64) {
22360
+ return object != null && hasPath(object, path64, baseHas);
22361
22361
  }
22362
22362
  __name(has, "has");
22363
- function hasIn(object, path63) {
22364
- return object != null && hasPath(object, path63, baseHasIn);
22363
+ function hasIn(object, path64) {
22364
+ return object != null && hasPath(object, path64, baseHasIn);
22365
22365
  }
22366
22366
  __name(hasIn, "hasIn");
22367
22367
  var invert = createInverter(function(result2, value, key) {
@@ -22419,10 +22419,10 @@ var require_lodash = __commonJS({
22419
22419
  return result2;
22420
22420
  }
22421
22421
  var isDeep = false;
22422
- paths = arrayMap(paths, function(path63) {
22423
- path63 = castPath(path63, object);
22424
- isDeep || (isDeep = path63.length > 1);
22425
- return path63;
22422
+ paths = arrayMap(paths, function(path64) {
22423
+ path64 = castPath(path64, object);
22424
+ isDeep || (isDeep = path64.length > 1);
22425
+ return path64;
22426
22426
  });
22427
22427
  copyObject(object, getAllKeysIn(object), result2);
22428
22428
  if (isDeep) {
@@ -22449,20 +22449,20 @@ var require_lodash = __commonJS({
22449
22449
  return [prop];
22450
22450
  });
22451
22451
  predicate = getIteratee(predicate);
22452
- return basePickBy(object, props, function(value, path63) {
22453
- return predicate(value, path63[0]);
22452
+ return basePickBy(object, props, function(value, path64) {
22453
+ return predicate(value, path64[0]);
22454
22454
  });
22455
22455
  }
22456
22456
  __name(pickBy, "pickBy");
22457
- function result(object, path63, defaultValue) {
22458
- path63 = castPath(path63, object);
22459
- var index = -1, length = path63.length;
22457
+ function result(object, path64, defaultValue) {
22458
+ path64 = castPath(path64, object);
22459
+ var index = -1, length = path64.length;
22460
22460
  if (!length) {
22461
22461
  length = 1;
22462
22462
  object = undefined2;
22463
22463
  }
22464
22464
  while (++index < length) {
22465
- var value = object == null ? undefined2 : object[toKey(path63[index])];
22465
+ var value = object == null ? undefined2 : object[toKey(path64[index])];
22466
22466
  if (value === undefined2) {
22467
22467
  index = length;
22468
22468
  value = defaultValue;
@@ -22472,13 +22472,13 @@ var require_lodash = __commonJS({
22472
22472
  return object;
22473
22473
  }
22474
22474
  __name(result, "result");
22475
- function set(object, path63, value) {
22476
- return object == null ? object : baseSet(object, path63, value);
22475
+ function set(object, path64, value) {
22476
+ return object == null ? object : baseSet(object, path64, value);
22477
22477
  }
22478
22478
  __name(set, "set");
22479
- function setWith(object, path63, value, customizer) {
22479
+ function setWith(object, path64, value, customizer) {
22480
22480
  customizer = typeof customizer == "function" ? customizer : undefined2;
22481
- return object == null ? object : baseSet(object, path63, value, customizer);
22481
+ return object == null ? object : baseSet(object, path64, value, customizer);
22482
22482
  }
22483
22483
  __name(setWith, "setWith");
22484
22484
  var toPairs = createToPairs(keys);
@@ -22502,17 +22502,17 @@ var require_lodash = __commonJS({
22502
22502
  return accumulator;
22503
22503
  }
22504
22504
  __name(transform, "transform");
22505
- function unset(object, path63) {
22506
- return object == null ? true : baseUnset(object, path63);
22505
+ function unset(object, path64) {
22506
+ return object == null ? true : baseUnset(object, path64);
22507
22507
  }
22508
22508
  __name(unset, "unset");
22509
- function update(object, path63, updater) {
22510
- return object == null ? object : baseUpdate(object, path63, castFunction(updater));
22509
+ function update(object, path64, updater) {
22510
+ return object == null ? object : baseUpdate(object, path64, castFunction(updater));
22511
22511
  }
22512
22512
  __name(update, "update");
22513
- function updateWith(object, path63, updater, customizer) {
22513
+ function updateWith(object, path64, updater, customizer) {
22514
22514
  customizer = typeof customizer == "function" ? customizer : undefined2;
22515
- return object == null ? object : baseUpdate(object, path63, castFunction(updater), customizer);
22515
+ return object == null ? object : baseUpdate(object, path64, castFunction(updater), customizer);
22516
22516
  }
22517
22517
  __name(updateWith, "updateWith");
22518
22518
  function values(object) {
@@ -22928,18 +22928,18 @@ var require_lodash = __commonJS({
22928
22928
  return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
22929
22929
  }
22930
22930
  __name(matches, "matches");
22931
- function matchesProperty(path63, srcValue) {
22932
- return baseMatchesProperty(path63, baseClone(srcValue, CLONE_DEEP_FLAG));
22931
+ function matchesProperty(path64, srcValue) {
22932
+ return baseMatchesProperty(path64, baseClone(srcValue, CLONE_DEEP_FLAG));
22933
22933
  }
22934
22934
  __name(matchesProperty, "matchesProperty");
22935
- var method = baseRest(function(path63, args) {
22935
+ var method = baseRest(function(path64, args) {
22936
22936
  return function(object) {
22937
- return baseInvoke(object, path63, args);
22937
+ return baseInvoke(object, path64, args);
22938
22938
  };
22939
22939
  });
22940
22940
  var methodOf = baseRest(function(object, args) {
22941
- return function(path63) {
22942
- return baseInvoke(object, path63, args);
22941
+ return function(path64) {
22942
+ return baseInvoke(object, path64, args);
22943
22943
  };
22944
22944
  });
22945
22945
  function mixin3(object, source, options29) {
@@ -22990,13 +22990,13 @@ var require_lodash = __commonJS({
22990
22990
  var over = createOver(arrayMap);
22991
22991
  var overEvery = createOver(arrayEvery);
22992
22992
  var overSome = createOver(arraySome);
22993
- function property(path63) {
22994
- return isKey(path63) ? baseProperty(toKey(path63)) : basePropertyDeep(path63);
22993
+ function property(path64) {
22994
+ return isKey(path64) ? baseProperty(toKey(path64)) : basePropertyDeep(path64);
22995
22995
  }
22996
22996
  __name(property, "property");
22997
22997
  function propertyOf(object) {
22998
- return function(path63) {
22999
- return object == null ? undefined2 : baseGet(object, path63);
22998
+ return function(path64) {
22999
+ return object == null ? undefined2 : baseGet(object, path64);
23000
23000
  };
23001
23001
  }
23002
23002
  __name(propertyOf, "propertyOf");
@@ -23466,12 +23466,12 @@ var require_lodash = __commonJS({
23466
23466
  LazyWrapper.prototype.findLast = function(predicate) {
23467
23467
  return this.reverse().find(predicate);
23468
23468
  };
23469
- LazyWrapper.prototype.invokeMap = baseRest(function(path63, args) {
23470
- if (typeof path63 == "function") {
23469
+ LazyWrapper.prototype.invokeMap = baseRest(function(path64, args) {
23470
+ if (typeof path64 == "function") {
23471
23471
  return new LazyWrapper(this);
23472
23472
  }
23473
23473
  return this.map(function(value) {
23474
- return baseInvoke(value, path63, args);
23474
+ return baseInvoke(value, path64, args);
23475
23475
  });
23476
23476
  });
23477
23477
  LazyWrapper.prototype.reject = function(predicate) {
@@ -32281,15 +32281,15 @@ var require_route = __commonJS({
32281
32281
  }
32282
32282
  __name(link, "link");
32283
32283
  function wrapConversion(toModel, graph) {
32284
- const path63 = [graph[toModel].parent, toModel];
32284
+ const path64 = [graph[toModel].parent, toModel];
32285
32285
  let fn2 = conversions[graph[toModel].parent][toModel];
32286
32286
  let cur = graph[toModel].parent;
32287
32287
  while (graph[cur].parent) {
32288
- path63.unshift(graph[cur].parent);
32288
+ path64.unshift(graph[cur].parent);
32289
32289
  fn2 = link(conversions[graph[cur].parent][cur], fn2);
32290
32290
  cur = graph[cur].parent;
32291
32291
  }
32292
- fn2.conversion = path63;
32292
+ fn2.conversion = path64;
32293
32293
  return fn2;
32294
32294
  }
32295
32295
  __name(wrapConversion, "wrapConversion");
@@ -35011,7 +35011,7 @@ var require_websocket2 = __commonJS({
35011
35011
  var http4 = require("http");
35012
35012
  var net3 = require("net");
35013
35013
  var tls = require("tls");
35014
- var { randomBytes, createHash: createHash2 } = require("crypto");
35014
+ var { randomBytes, createHash: createHash3 } = require("crypto");
35015
35015
  var { Readable: Readable2 } = require("stream");
35016
35016
  var { URL: URL7 } = require("url");
35017
35017
  var PerMessageDeflate = require_permessage_deflate();
@@ -35572,7 +35572,7 @@ var require_websocket2 = __commonJS({
35572
35572
  if (websocket.readyState !== WebSocket3.CONNECTING)
35573
35573
  return;
35574
35574
  req = websocket._req = null;
35575
- const digest = createHash2("sha1").update(key + GUID).digest("base64");
35575
+ const digest = createHash3("sha1").update(key + GUID).digest("base64");
35576
35576
  if (res.headers["sec-websocket-accept"] !== digest) {
35577
35577
  abortHandshake(websocket, socket, "Invalid Sec-WebSocket-Accept header");
35578
35578
  return;
@@ -35919,7 +35919,7 @@ var require_websocket_server = __commonJS({
35919
35919
  var https3 = require("https");
35920
35920
  var net3 = require("net");
35921
35921
  var tls = require("tls");
35922
- var { createHash: createHash2 } = require("crypto");
35922
+ var { createHash: createHash3 } = require("crypto");
35923
35923
  var PerMessageDeflate = require_permessage_deflate();
35924
35924
  var WebSocket3 = require_websocket2();
35925
35925
  var { format: format10, parse: parse5 } = require_extension();
@@ -36149,7 +36149,7 @@ var require_websocket_server = __commonJS({
36149
36149
  }
36150
36150
  if (this._state > RUNNING)
36151
36151
  return abortHandshake(socket, 503);
36152
- const digest = createHash2("sha1").update(key + GUID).digest("base64");
36152
+ const digest = createHash3("sha1").update(key + GUID).digest("base64");
36153
36153
  const headers = [
36154
36154
  "HTTP/1.1 101 Switching Protocols",
36155
36155
  "Upgrade: websocket",
@@ -37419,8 +37419,8 @@ var require_backend = __commonJS({
37419
37419
  return false;
37420
37420
  }
37421
37421
  __name(shallowDiffers, "shallowDiffers");
37422
- function getInObject(object, path63) {
37423
- return path63.reduce(function(reduced, attr) {
37422
+ function getInObject(object, path64) {
37423
+ return path64.reduce(function(reduced, attr) {
37424
37424
  if (reduced) {
37425
37425
  if (hasOwnProperty.call(reduced, attr)) {
37426
37426
  return reduced[attr];
@@ -37433,11 +37433,11 @@ var require_backend = __commonJS({
37433
37433
  }, object);
37434
37434
  }
37435
37435
  __name(getInObject, "getInObject");
37436
- function deletePathInObject(object, path63) {
37437
- var length = path63.length;
37438
- var last = path63[length - 1];
37436
+ function deletePathInObject(object, path64) {
37437
+ var length = path64.length;
37438
+ var last = path64[length - 1];
37439
37439
  if (object != null) {
37440
- var parent = getInObject(object, path63.slice(0, length - 1));
37440
+ var parent = getInObject(object, path64.slice(0, length - 1));
37441
37441
  if (parent) {
37442
37442
  if (Object(_isArray__WEBPACK_IMPORTED_MODULE_7__[
37443
37443
  /* default */
@@ -37471,11 +37471,11 @@ var require_backend = __commonJS({
37471
37471
  }
37472
37472
  }
37473
37473
  __name(renamePathInObject, "renamePathInObject");
37474
- function setInObject(object, path63, value) {
37475
- var length = path63.length;
37476
- var last = path63[length - 1];
37474
+ function setInObject(object, path64, value) {
37475
+ var length = path64.length;
37476
+ var last = path64[length - 1];
37477
37477
  if (object != null) {
37478
- var parent = getInObject(object, path63.slice(0, length - 1));
37478
+ var parent = getInObject(object, path64.slice(0, length - 1));
37479
37479
  if (parent) {
37480
37480
  parent[last] = value;
37481
37481
  }
@@ -37937,14 +37937,14 @@ var require_backend = __commonJS({
37937
37937
  }
37938
37938
  __name(_defineProperty11, "_defineProperty");
37939
37939
  function cleanForBridge(data, isPathAllowed) {
37940
- var path63 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
37940
+ var path64 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
37941
37941
  if (data !== null) {
37942
37942
  var cleanedPaths = [];
37943
37943
  var unserializablePaths = [];
37944
37944
  var cleanedData = Object(_hydration__WEBPACK_IMPORTED_MODULE_1__[
37945
37945
  /* dehydrate */
37946
37946
  "a"
37947
- ])(data, cleanedPaths, unserializablePaths, path63, isPathAllowed);
37947
+ ])(data, cleanedPaths, unserializablePaths, path64, isPathAllowed);
37948
37948
  return {
37949
37949
  data: cleanedData,
37950
37950
  cleaned: cleanedPaths,
@@ -37967,14 +37967,14 @@ var require_backend = __commonJS({
37967
37967
  }
37968
37968
  }
37969
37969
  __name(copyToClipboard, "copyToClipboard");
37970
- function copyWithDelete(obj, path63) {
37970
+ function copyWithDelete(obj, path64) {
37971
37971
  var index = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
37972
- var key = path63[index];
37972
+ var key = path64[index];
37973
37973
  var updated = Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__[
37974
37974
  /* default */
37975
37975
  "a"
37976
37976
  ])(obj) ? obj.slice() : _objectSpread11({}, obj);
37977
- if (index + 1 === path63.length) {
37977
+ if (index + 1 === path64.length) {
37978
37978
  if (Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__[
37979
37979
  /* default */
37980
37980
  "a"
@@ -37984,7 +37984,7 @@ var require_backend = __commonJS({
37984
37984
  delete updated[key];
37985
37985
  }
37986
37986
  } else {
37987
- updated[key] = copyWithDelete(obj[key], path63, index + 1);
37987
+ updated[key] = copyWithDelete(obj[key], path64, index + 1);
37988
37988
  }
37989
37989
  return updated;
37990
37990
  }
@@ -38013,17 +38013,17 @@ var require_backend = __commonJS({
38013
38013
  return updated;
38014
38014
  }
38015
38015
  __name(copyWithRename, "copyWithRename");
38016
- function copyWithSet(obj, path63, value) {
38016
+ function copyWithSet(obj, path64, value) {
38017
38017
  var index = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
38018
- if (index >= path63.length) {
38018
+ if (index >= path64.length) {
38019
38019
  return value;
38020
38020
  }
38021
- var key = path63[index];
38021
+ var key = path64[index];
38022
38022
  var updated = Object(shared_isArray__WEBPACK_IMPORTED_MODULE_2__[
38023
38023
  /* default */
38024
38024
  "a"
38025
38025
  ])(obj) ? obj.slice() : _objectSpread11({}, obj);
38026
- updated[key] = copyWithSet(obj[key], path63, value, index + 1);
38026
+ updated[key] = copyWithSet(obj[key], path64, value, index + 1);
38027
38027
  return updated;
38028
38028
  }
38029
38029
  __name(copyWithSet, "copyWithSet");
@@ -39848,8 +39848,8 @@ var require_backend = __commonJS({
39848
39848
  unserializable: Symbol("unserializable")
39849
39849
  };
39850
39850
  var LEVEL_THRESHOLD = 2;
39851
- function createDehydrated(type, inspectable, data, cleaned, path63) {
39852
- cleaned.push(path63);
39851
+ function createDehydrated(type, inspectable, data, cleaned, path64) {
39852
+ cleaned.push(path64);
39853
39853
  var dehydrated = {
39854
39854
  inspectable,
39855
39855
  type,
@@ -39874,7 +39874,7 @@ var require_backend = __commonJS({
39874
39874
  return dehydrated;
39875
39875
  }
39876
39876
  __name(createDehydrated, "createDehydrated");
39877
- function dehydrate(data, cleaned, unserializable, path63, isPathAllowed) {
39877
+ function dehydrate(data, cleaned, unserializable, path64, isPathAllowed) {
39878
39878
  var level = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
39879
39879
  var type = Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
39880
39880
  /* getDataType */
@@ -39883,7 +39883,7 @@ var require_backend = __commonJS({
39883
39883
  var isPathAllowedCheck;
39884
39884
  switch (type) {
39885
39885
  case "html_element":
39886
- cleaned.push(path63);
39886
+ cleaned.push(path64);
39887
39887
  return {
39888
39888
  inspectable: false,
39889
39889
  preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
@@ -39898,7 +39898,7 @@ var require_backend = __commonJS({
39898
39898
  type
39899
39899
  };
39900
39900
  case "function":
39901
- cleaned.push(path63);
39901
+ cleaned.push(path64);
39902
39902
  return {
39903
39903
  inspectable: false,
39904
39904
  preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
@@ -39913,14 +39913,14 @@ var require_backend = __commonJS({
39913
39913
  type
39914
39914
  };
39915
39915
  case "string":
39916
- isPathAllowedCheck = isPathAllowed(path63);
39916
+ isPathAllowedCheck = isPathAllowed(path64);
39917
39917
  if (isPathAllowedCheck) {
39918
39918
  return data;
39919
39919
  } else {
39920
39920
  return data.length <= 500 ? data : data.slice(0, 500) + "...";
39921
39921
  }
39922
39922
  case "bigint":
39923
- cleaned.push(path63);
39923
+ cleaned.push(path64);
39924
39924
  return {
39925
39925
  inspectable: false,
39926
39926
  preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
@@ -39935,7 +39935,7 @@ var require_backend = __commonJS({
39935
39935
  type
39936
39936
  };
39937
39937
  case "symbol":
39938
- cleaned.push(path63);
39938
+ cleaned.push(path64);
39939
39939
  return {
39940
39940
  inspectable: false,
39941
39941
  preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
@@ -39950,7 +39950,7 @@ var require_backend = __commonJS({
39950
39950
  type
39951
39951
  };
39952
39952
  case "react_element":
39953
- cleaned.push(path63);
39953
+ cleaned.push(path64);
39954
39954
  return {
39955
39955
  inspectable: false,
39956
39956
  preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
@@ -39969,7 +39969,7 @@ var require_backend = __commonJS({
39969
39969
  };
39970
39970
  case "array_buffer":
39971
39971
  case "data_view":
39972
- cleaned.push(path63);
39972
+ cleaned.push(path64);
39973
39973
  return {
39974
39974
  inspectable: false,
39975
39975
  preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
@@ -39985,19 +39985,19 @@ var require_backend = __commonJS({
39985
39985
  type
39986
39986
  };
39987
39987
  case "array":
39988
- isPathAllowedCheck = isPathAllowed(path63);
39988
+ isPathAllowedCheck = isPathAllowed(path64);
39989
39989
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
39990
- return createDehydrated(type, true, data, cleaned, path63);
39990
+ return createDehydrated(type, true, data, cleaned, path64);
39991
39991
  }
39992
39992
  return data.map(function(item, i) {
39993
- return dehydrate(item, cleaned, unserializable, path63.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
39993
+ return dehydrate(item, cleaned, unserializable, path64.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
39994
39994
  });
39995
39995
  case "html_all_collection":
39996
39996
  case "typed_array":
39997
39997
  case "iterator":
39998
- isPathAllowedCheck = isPathAllowed(path63);
39998
+ isPathAllowedCheck = isPathAllowed(path64);
39999
39999
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
40000
- return createDehydrated(type, true, data, cleaned, path63);
40000
+ return createDehydrated(type, true, data, cleaned, path64);
40001
40001
  } else {
40002
40002
  var unserializableValue = {
40003
40003
  unserializable: true,
@@ -40015,13 +40015,13 @@ var require_backend = __commonJS({
40015
40015
  name: !data.constructor || data.constructor.name === "Object" ? "" : data.constructor.name
40016
40016
  };
40017
40017
  Array.from(data).forEach(function(item, i) {
40018
- return unserializableValue[i] = dehydrate(item, cleaned, unserializable, path63.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
40018
+ return unserializableValue[i] = dehydrate(item, cleaned, unserializable, path64.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
40019
40019
  });
40020
- unserializable.push(path63);
40020
+ unserializable.push(path64);
40021
40021
  return unserializableValue;
40022
40022
  }
40023
40023
  case "opaque_iterator":
40024
- cleaned.push(path63);
40024
+ cleaned.push(path64);
40025
40025
  return {
40026
40026
  inspectable: false,
40027
40027
  preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
@@ -40036,7 +40036,7 @@ var require_backend = __commonJS({
40036
40036
  type
40037
40037
  };
40038
40038
  case "date":
40039
- cleaned.push(path63);
40039
+ cleaned.push(path64);
40040
40040
  return {
40041
40041
  inspectable: false,
40042
40042
  preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
@@ -40051,7 +40051,7 @@ var require_backend = __commonJS({
40051
40051
  type
40052
40052
  };
40053
40053
  case "regexp":
40054
- cleaned.push(path63);
40054
+ cleaned.push(path64);
40055
40055
  return {
40056
40056
  inspectable: false,
40057
40057
  preview_short: Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
@@ -40066,9 +40066,9 @@ var require_backend = __commonJS({
40066
40066
  type
40067
40067
  };
40068
40068
  case "object":
40069
- isPathAllowedCheck = isPathAllowed(path63);
40069
+ isPathAllowedCheck = isPathAllowed(path64);
40070
40070
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
40071
- return createDehydrated(type, true, data, cleaned, path63);
40071
+ return createDehydrated(type, true, data, cleaned, path64);
40072
40072
  } else {
40073
40073
  var object = {};
40074
40074
  Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
@@ -40076,14 +40076,14 @@ var require_backend = __commonJS({
40076
40076
  "c"
40077
40077
  ])(data).forEach(function(key) {
40078
40078
  var name = key.toString();
40079
- object[name] = dehydrate(data[key], cleaned, unserializable, path63.concat([name]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
40079
+ object[name] = dehydrate(data[key], cleaned, unserializable, path64.concat([name]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
40080
40080
  });
40081
40081
  return object;
40082
40082
  }
40083
40083
  case "infinity":
40084
40084
  case "nan":
40085
40085
  case "undefined":
40086
- cleaned.push(path63);
40086
+ cleaned.push(path64);
40087
40087
  return {
40088
40088
  type
40089
40089
  };
@@ -40092,11 +40092,11 @@ var require_backend = __commonJS({
40092
40092
  }
40093
40093
  }
40094
40094
  __name(dehydrate, "dehydrate");
40095
- function fillInPath(object, data, path63, value) {
40095
+ function fillInPath(object, data, path64, value) {
40096
40096
  var target = Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
40097
40097
  /* getInObject */
40098
40098
  "h"
40099
- ])(object, path63);
40099
+ ])(object, path64);
40100
40100
  if (target != null) {
40101
40101
  if (!target[meta.unserializable]) {
40102
40102
  delete target[meta.inspectable];
@@ -40111,9 +40111,9 @@ var require_backend = __commonJS({
40111
40111
  }
40112
40112
  if (value !== null && data.unserializable.length > 0) {
40113
40113
  var unserializablePath = data.unserializable[0];
40114
- var isMatch = unserializablePath.length === path63.length;
40115
- for (var i = 0; i < path63.length; i++) {
40116
- if (path63[i] !== unserializablePath[i]) {
40114
+ var isMatch = unserializablePath.length === path64.length;
40115
+ for (var i = 0; i < path64.length; i++) {
40116
+ if (path64[i] !== unserializablePath[i]) {
40117
40117
  isMatch = false;
40118
40118
  break;
40119
40119
  }
@@ -40125,17 +40125,17 @@ var require_backend = __commonJS({
40125
40125
  Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
40126
40126
  /* setInObject */
40127
40127
  "l"
40128
- ])(object, path63, value);
40128
+ ])(object, path64, value);
40129
40129
  }
40130
40130
  __name(fillInPath, "fillInPath");
40131
40131
  function hydrate(object, cleaned, unserializable) {
40132
- cleaned.forEach(function(path63) {
40133
- var length = path63.length;
40134
- var last = path63[length - 1];
40132
+ cleaned.forEach(function(path64) {
40133
+ var length = path64.length;
40134
+ var last = path64[length - 1];
40135
40135
  var parent = Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
40136
40136
  /* getInObject */
40137
40137
  "h"
40138
- ])(object, path63.slice(0, length - 1));
40138
+ ])(object, path64.slice(0, length - 1));
40139
40139
  if (!parent || !parent.hasOwnProperty(last)) {
40140
40140
  return;
40141
40141
  }
@@ -40161,13 +40161,13 @@ var require_backend = __commonJS({
40161
40161
  parent[last] = replaced;
40162
40162
  }
40163
40163
  });
40164
- unserializable.forEach(function(path63) {
40165
- var length = path63.length;
40166
- var last = path63[length - 1];
40164
+ unserializable.forEach(function(path64) {
40165
+ var length = path64.length;
40166
+ var last = path64[length - 1];
40167
40167
  var parent = Object(_utils__WEBPACK_IMPORTED_MODULE_0__[
40168
40168
  /* getInObject */
40169
40169
  "h"
40170
- ])(object, path63.slice(0, length - 1));
40170
+ ])(object, path64.slice(0, length - 1));
40171
40171
  if (!parent || !parent.hasOwnProperty(last)) {
40172
40172
  return;
40173
40173
  }
@@ -43325,12 +43325,12 @@ var require_backend = __commonJS({
43325
43325
  return alternate;
43326
43326
  }
43327
43327
  __name(findCurrentFiberUsingSlowPathById, "findCurrentFiberUsingSlowPathById");
43328
- function prepareViewAttributeSource(id, path63) {
43328
+ function prepareViewAttributeSource(id, path64) {
43329
43329
  if (isMostRecentlyInspectedElement(id)) {
43330
43330
  window.$attribute = Object(utils[
43331
43331
  "h"
43332
43332
  /* getInObject */
43333
- ])(mostRecentlyInspectedElement, path63);
43333
+ ])(mostRecentlyInspectedElement, path64);
43334
43334
  }
43335
43335
  }
43336
43336
  __name(prepareViewAttributeSource, "prepareViewAttributeSource");
@@ -43606,9 +43606,9 @@ var require_backend = __commonJS({
43606
43606
  return isMostRecentlyInspectedElement(id) && !hasElementUpdatedSinceLastInspected;
43607
43607
  }
43608
43608
  __name(isMostRecentlyInspectedElementCurrent, "isMostRecentlyInspectedElementCurrent");
43609
- function mergeInspectedPaths(path63) {
43609
+ function mergeInspectedPaths(path64) {
43610
43610
  var current = currentlyInspectedPaths;
43611
- path63.forEach(function(key) {
43611
+ path64.forEach(function(key) {
43612
43612
  if (!current[key]) {
43613
43613
  current[key] = {};
43614
43614
  }
@@ -43617,16 +43617,16 @@ var require_backend = __commonJS({
43617
43617
  }
43618
43618
  __name(mergeInspectedPaths, "mergeInspectedPaths");
43619
43619
  function createIsPathAllowed(key, secondaryCategory) {
43620
- return /* @__PURE__ */ __name(function isPathAllowed(path63) {
43620
+ return /* @__PURE__ */ __name(function isPathAllowed(path64) {
43621
43621
  switch (secondaryCategory) {
43622
43622
  case "hooks":
43623
- if (path63.length === 1) {
43623
+ if (path64.length === 1) {
43624
43624
  return true;
43625
43625
  }
43626
- if (path63[path63.length - 2] === "hookSource" && path63[path63.length - 1] === "fileName") {
43626
+ if (path64[path64.length - 2] === "hookSource" && path64[path64.length - 1] === "fileName") {
43627
43627
  return true;
43628
43628
  }
43629
- if (path63[path63.length - 1] === "subHooks" || path63[path63.length - 2] === "subHooks") {
43629
+ if (path64[path64.length - 1] === "subHooks" || path64[path64.length - 2] === "subHooks") {
43630
43630
  return true;
43631
43631
  }
43632
43632
  break;
@@ -43637,8 +43637,8 @@ var require_backend = __commonJS({
43637
43637
  if (!current) {
43638
43638
  return false;
43639
43639
  }
43640
- for (var i = 0; i < path63.length; i++) {
43641
- current = current[path63[i]];
43640
+ for (var i = 0; i < path64.length; i++) {
43641
+ current = current[path64[i]];
43642
43642
  if (!current) {
43643
43643
  return false;
43644
43644
  }
@@ -43689,12 +43689,12 @@ var require_backend = __commonJS({
43689
43689
  }
43690
43690
  }
43691
43691
  __name(updateSelectedElement, "updateSelectedElement");
43692
- function storeAsGlobal(id, path63, count) {
43692
+ function storeAsGlobal(id, path64, count) {
43693
43693
  if (isMostRecentlyInspectedElement(id)) {
43694
43694
  var value = Object(utils[
43695
43695
  "h"
43696
43696
  /* getInObject */
43697
- ])(mostRecentlyInspectedElement, path63);
43697
+ ])(mostRecentlyInspectedElement, path64);
43698
43698
  var key = "$reactTemp".concat(count);
43699
43699
  window[key] = value;
43700
43700
  console.log(key);
@@ -43702,7 +43702,7 @@ var require_backend = __commonJS({
43702
43702
  }
43703
43703
  }
43704
43704
  __name(storeAsGlobal, "storeAsGlobal");
43705
- function copyElementPath(id, path63) {
43705
+ function copyElementPath(id, path64) {
43706
43706
  if (isMostRecentlyInspectedElement(id)) {
43707
43707
  Object(backend_utils[
43708
43708
  "b"
@@ -43710,33 +43710,33 @@ var require_backend = __commonJS({
43710
43710
  ])(Object(utils[
43711
43711
  "h"
43712
43712
  /* getInObject */
43713
- ])(mostRecentlyInspectedElement, path63));
43713
+ ])(mostRecentlyInspectedElement, path64));
43714
43714
  }
43715
43715
  }
43716
43716
  __name(copyElementPath, "copyElementPath");
43717
- function inspectElement(requestID, id, path63, forceFullData) {
43718
- if (path63 !== null) {
43719
- mergeInspectedPaths(path63);
43717
+ function inspectElement(requestID, id, path64, forceFullData) {
43718
+ if (path64 !== null) {
43719
+ mergeInspectedPaths(path64);
43720
43720
  }
43721
43721
  if (isMostRecentlyInspectedElement(id) && !forceFullData) {
43722
43722
  if (!hasElementUpdatedSinceLastInspected) {
43723
- if (path63 !== null) {
43723
+ if (path64 !== null) {
43724
43724
  var secondaryCategory = null;
43725
- if (path63[0] === "hooks") {
43725
+ if (path64[0] === "hooks") {
43726
43726
  secondaryCategory = "hooks";
43727
43727
  }
43728
43728
  return {
43729
43729
  id,
43730
43730
  responseID: requestID,
43731
43731
  type: "hydrated-path",
43732
- path: path63,
43732
+ path: path64,
43733
43733
  value: Object(backend_utils[
43734
43734
  "a"
43735
43735
  /* cleanForBridge */
43736
43736
  ])(Object(utils[
43737
43737
  "h"
43738
43738
  /* getInObject */
43739
- ])(mostRecentlyInspectedElement, path63), createIsPathAllowed(null, secondaryCategory), path63)
43739
+ ])(mostRecentlyInspectedElement, path64), createIsPathAllowed(null, secondaryCategory), path64)
43740
43740
  };
43741
43741
  } else {
43742
43742
  return {
@@ -43833,21 +43833,21 @@ var require_backend = __commonJS({
43833
43833
  }
43834
43834
  }
43835
43835
  __name(logElementToConsole, "logElementToConsole");
43836
- function deletePath(type, id, hookID, path63) {
43836
+ function deletePath(type, id, hookID, path64) {
43837
43837
  var fiber = findCurrentFiberUsingSlowPathById(id);
43838
43838
  if (fiber !== null) {
43839
43839
  var instance = fiber.stateNode;
43840
43840
  switch (type) {
43841
43841
  case "context":
43842
- path63 = path63.slice(1);
43842
+ path64 = path64.slice(1);
43843
43843
  switch (fiber.tag) {
43844
43844
  case ClassComponent:
43845
- if (path63.length === 0) {
43845
+ if (path64.length === 0) {
43846
43846
  } else {
43847
43847
  Object(utils[
43848
43848
  "a"
43849
43849
  /* deletePathInObject */
43850
- ])(instance.context, path63);
43850
+ ])(instance.context, path64);
43851
43851
  }
43852
43852
  instance.forceUpdate();
43853
43853
  break;
@@ -43857,19 +43857,19 @@ var require_backend = __commonJS({
43857
43857
  break;
43858
43858
  case "hooks":
43859
43859
  if (typeof overrideHookStateDeletePath === "function") {
43860
- overrideHookStateDeletePath(fiber, hookID, path63);
43860
+ overrideHookStateDeletePath(fiber, hookID, path64);
43861
43861
  }
43862
43862
  break;
43863
43863
  case "props":
43864
43864
  if (instance === null) {
43865
43865
  if (typeof overridePropsDeletePath === "function") {
43866
- overridePropsDeletePath(fiber, path63);
43866
+ overridePropsDeletePath(fiber, path64);
43867
43867
  }
43868
43868
  } else {
43869
43869
  fiber.pendingProps = Object(backend_utils[
43870
43870
  "c"
43871
43871
  /* copyWithDelete */
43872
- ])(instance.props, path63);
43872
+ ])(instance.props, path64);
43873
43873
  instance.forceUpdate();
43874
43874
  }
43875
43875
  break;
@@ -43877,7 +43877,7 @@ var require_backend = __commonJS({
43877
43877
  Object(utils[
43878
43878
  "a"
43879
43879
  /* deletePathInObject */
43880
- ])(instance.state, path63);
43880
+ ])(instance.state, path64);
43881
43881
  instance.forceUpdate();
43882
43882
  break;
43883
43883
  }
@@ -43936,22 +43936,22 @@ var require_backend = __commonJS({
43936
43936
  }
43937
43937
  }
43938
43938
  __name(renamePath, "renamePath");
43939
- function overrideValueAtPath(type, id, hookID, path63, value) {
43939
+ function overrideValueAtPath(type, id, hookID, path64, value) {
43940
43940
  var fiber = findCurrentFiberUsingSlowPathById(id);
43941
43941
  if (fiber !== null) {
43942
43942
  var instance = fiber.stateNode;
43943
43943
  switch (type) {
43944
43944
  case "context":
43945
- path63 = path63.slice(1);
43945
+ path64 = path64.slice(1);
43946
43946
  switch (fiber.tag) {
43947
43947
  case ClassComponent:
43948
- if (path63.length === 0) {
43948
+ if (path64.length === 0) {
43949
43949
  instance.context = value;
43950
43950
  } else {
43951
43951
  Object(utils[
43952
43952
  "l"
43953
43953
  /* setInObject */
43954
- ])(instance.context, path63, value);
43954
+ ])(instance.context, path64, value);
43955
43955
  }
43956
43956
  instance.forceUpdate();
43957
43957
  break;
@@ -43961,7 +43961,7 @@ var require_backend = __commonJS({
43961
43961
  break;
43962
43962
  case "hooks":
43963
43963
  if (typeof overrideHookState === "function") {
43964
- overrideHookState(fiber, hookID, path63, value);
43964
+ overrideHookState(fiber, hookID, path64, value);
43965
43965
  }
43966
43966
  break;
43967
43967
  case "props":
@@ -43970,12 +43970,12 @@ var require_backend = __commonJS({
43970
43970
  fiber.pendingProps = Object(backend_utils[
43971
43971
  "e"
43972
43972
  /* copyWithSet */
43973
- ])(instance.props, path63, value);
43973
+ ])(instance.props, path64, value);
43974
43974
  instance.forceUpdate();
43975
43975
  break;
43976
43976
  default:
43977
43977
  if (typeof overrideProps === "function") {
43978
- overrideProps(fiber, path63, value);
43978
+ overrideProps(fiber, path64, value);
43979
43979
  }
43980
43980
  break;
43981
43981
  }
@@ -43986,7 +43986,7 @@ var require_backend = __commonJS({
43986
43986
  Object(utils[
43987
43987
  "l"
43988
43988
  /* setInObject */
43989
- ])(instance.state, path63, value);
43989
+ ])(instance.state, path64, value);
43990
43990
  instance.forceUpdate();
43991
43991
  break;
43992
43992
  }
@@ -44170,13 +44170,13 @@ var require_backend = __commonJS({
44170
44170
  var trackedPathMatchFiber = null;
44171
44171
  var trackedPathMatchDepth = -1;
44172
44172
  var mightBeOnTrackedPath = false;
44173
- function setTrackedPath(path63) {
44174
- if (path63 === null) {
44173
+ function setTrackedPath(path64) {
44174
+ if (path64 === null) {
44175
44175
  trackedPathMatchFiber = null;
44176
44176
  trackedPathMatchDepth = -1;
44177
44177
  mightBeOnTrackedPath = false;
44178
44178
  }
44179
- trackedPath = path63;
44179
+ trackedPath = path64;
44180
44180
  }
44181
44181
  __name(setTrackedPath, "setTrackedPath");
44182
44182
  function updateTrackedPathStateBeforeMount(fiber) {
@@ -48700,12 +48700,12 @@ var require_backend = __commonJS({
48700
48700
  }
48701
48701
  });
48702
48702
  bridge_defineProperty(_assertThisInitialized(_this), "overrideValueAtPath", function(_ref) {
48703
- var id = _ref.id, path63 = _ref.path, rendererID = _ref.rendererID, type = _ref.type, value = _ref.value;
48703
+ var id = _ref.id, path64 = _ref.path, rendererID = _ref.rendererID, type = _ref.type, value = _ref.value;
48704
48704
  switch (type) {
48705
48705
  case "context":
48706
48706
  _this.send("overrideContext", {
48707
48707
  id,
48708
- path: path63,
48708
+ path: path64,
48709
48709
  rendererID,
48710
48710
  wasForwarded: true,
48711
48711
  value
@@ -48714,7 +48714,7 @@ var require_backend = __commonJS({
48714
48714
  case "hooks":
48715
48715
  _this.send("overrideHookState", {
48716
48716
  id,
48717
- path: path63,
48717
+ path: path64,
48718
48718
  rendererID,
48719
48719
  wasForwarded: true,
48720
48720
  value
@@ -48723,7 +48723,7 @@ var require_backend = __commonJS({
48723
48723
  case "props":
48724
48724
  _this.send("overrideProps", {
48725
48725
  id,
48726
- path: path63,
48726
+ path: path64,
48727
48727
  rendererID,
48728
48728
  wasForwarded: true,
48729
48729
  value
@@ -48732,7 +48732,7 @@ var require_backend = __commonJS({
48732
48732
  case "state":
48733
48733
  _this.send("overrideState", {
48734
48734
  id,
48735
- path: path63,
48735
+ path: path64,
48736
48736
  rendererID,
48737
48737
  wasForwarded: true,
48738
48738
  value
@@ -48970,21 +48970,21 @@ var require_backend = __commonJS({
48970
48970
  }
48971
48971
  });
48972
48972
  agent_defineProperty(agent_assertThisInitialized(_this), "copyElementPath", function(_ref4) {
48973
- var id = _ref4.id, path63 = _ref4.path, rendererID = _ref4.rendererID;
48973
+ var id = _ref4.id, path64 = _ref4.path, rendererID = _ref4.rendererID;
48974
48974
  var renderer = _this._rendererInterfaces[rendererID];
48975
48975
  if (renderer == null) {
48976
48976
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
48977
48977
  } else {
48978
- renderer.copyElementPath(id, path63);
48978
+ renderer.copyElementPath(id, path64);
48979
48979
  }
48980
48980
  });
48981
48981
  agent_defineProperty(agent_assertThisInitialized(_this), "deletePath", function(_ref5) {
48982
- var hookID = _ref5.hookID, id = _ref5.id, path63 = _ref5.path, rendererID = _ref5.rendererID, type = _ref5.type;
48982
+ var hookID = _ref5.hookID, id = _ref5.id, path64 = _ref5.path, rendererID = _ref5.rendererID, type = _ref5.type;
48983
48983
  var renderer = _this._rendererInterfaces[rendererID];
48984
48984
  if (renderer == null) {
48985
48985
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
48986
48986
  } else {
48987
- renderer.deletePath(type, id, hookID, path63);
48987
+ renderer.deletePath(type, id, hookID, path64);
48988
48988
  }
48989
48989
  });
48990
48990
  agent_defineProperty(agent_assertThisInitialized(_this), "getBridgeProtocol", function() {
@@ -49015,12 +49015,12 @@ var require_backend = __commonJS({
49015
49015
  }
49016
49016
  });
49017
49017
  agent_defineProperty(agent_assertThisInitialized(_this), "inspectElement", function(_ref8) {
49018
- var forceFullData = _ref8.forceFullData, id = _ref8.id, path63 = _ref8.path, rendererID = _ref8.rendererID, requestID = _ref8.requestID;
49018
+ var forceFullData = _ref8.forceFullData, id = _ref8.id, path64 = _ref8.path, rendererID = _ref8.rendererID, requestID = _ref8.requestID;
49019
49019
  var renderer = _this._rendererInterfaces[rendererID];
49020
49020
  if (renderer == null) {
49021
49021
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
49022
49022
  } else {
49023
- _this._bridge.send("inspectedElement", renderer.inspectElement(requestID, id, path63, forceFullData));
49023
+ _this._bridge.send("inspectedElement", renderer.inspectElement(requestID, id, path64, forceFullData));
49024
49024
  if (_this._persistedSelectionMatch === null || _this._persistedSelectionMatch.id !== id) {
49025
49025
  _this._persistedSelection = null;
49026
49026
  _this._persistedSelectionMatch = null;
@@ -49057,20 +49057,20 @@ var require_backend = __commonJS({
49057
49057
  }
49058
49058
  });
49059
49059
  agent_defineProperty(agent_assertThisInitialized(_this), "overrideValueAtPath", function(_ref12) {
49060
- var hookID = _ref12.hookID, id = _ref12.id, path63 = _ref12.path, rendererID = _ref12.rendererID, type = _ref12.type, value = _ref12.value;
49060
+ var hookID = _ref12.hookID, id = _ref12.id, path64 = _ref12.path, rendererID = _ref12.rendererID, type = _ref12.type, value = _ref12.value;
49061
49061
  var renderer = _this._rendererInterfaces[rendererID];
49062
49062
  if (renderer == null) {
49063
49063
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
49064
49064
  } else {
49065
- renderer.overrideValueAtPath(type, id, hookID, path63, value);
49065
+ renderer.overrideValueAtPath(type, id, hookID, path64, value);
49066
49066
  }
49067
49067
  });
49068
49068
  agent_defineProperty(agent_assertThisInitialized(_this), "overrideContext", function(_ref13) {
49069
- var id = _ref13.id, path63 = _ref13.path, rendererID = _ref13.rendererID, wasForwarded = _ref13.wasForwarded, value = _ref13.value;
49069
+ var id = _ref13.id, path64 = _ref13.path, rendererID = _ref13.rendererID, wasForwarded = _ref13.wasForwarded, value = _ref13.value;
49070
49070
  if (!wasForwarded) {
49071
49071
  _this.overrideValueAtPath({
49072
49072
  id,
49073
- path: path63,
49073
+ path: path64,
49074
49074
  rendererID,
49075
49075
  type: "context",
49076
49076
  value
@@ -49078,11 +49078,11 @@ var require_backend = __commonJS({
49078
49078
  }
49079
49079
  });
49080
49080
  agent_defineProperty(agent_assertThisInitialized(_this), "overrideHookState", function(_ref14) {
49081
- var id = _ref14.id, hookID = _ref14.hookID, path63 = _ref14.path, rendererID = _ref14.rendererID, wasForwarded = _ref14.wasForwarded, value = _ref14.value;
49081
+ var id = _ref14.id, hookID = _ref14.hookID, path64 = _ref14.path, rendererID = _ref14.rendererID, wasForwarded = _ref14.wasForwarded, value = _ref14.value;
49082
49082
  if (!wasForwarded) {
49083
49083
  _this.overrideValueAtPath({
49084
49084
  id,
49085
- path: path63,
49085
+ path: path64,
49086
49086
  rendererID,
49087
49087
  type: "hooks",
49088
49088
  value
@@ -49090,11 +49090,11 @@ var require_backend = __commonJS({
49090
49090
  }
49091
49091
  });
49092
49092
  agent_defineProperty(agent_assertThisInitialized(_this), "overrideProps", function(_ref15) {
49093
- var id = _ref15.id, path63 = _ref15.path, rendererID = _ref15.rendererID, wasForwarded = _ref15.wasForwarded, value = _ref15.value;
49093
+ var id = _ref15.id, path64 = _ref15.path, rendererID = _ref15.rendererID, wasForwarded = _ref15.wasForwarded, value = _ref15.value;
49094
49094
  if (!wasForwarded) {
49095
49095
  _this.overrideValueAtPath({
49096
49096
  id,
49097
- path: path63,
49097
+ path: path64,
49098
49098
  rendererID,
49099
49099
  type: "props",
49100
49100
  value
@@ -49102,11 +49102,11 @@ var require_backend = __commonJS({
49102
49102
  }
49103
49103
  });
49104
49104
  agent_defineProperty(agent_assertThisInitialized(_this), "overrideState", function(_ref16) {
49105
- var id = _ref16.id, path63 = _ref16.path, rendererID = _ref16.rendererID, wasForwarded = _ref16.wasForwarded, value = _ref16.value;
49105
+ var id = _ref16.id, path64 = _ref16.path, rendererID = _ref16.rendererID, wasForwarded = _ref16.wasForwarded, value = _ref16.value;
49106
49106
  if (!wasForwarded) {
49107
49107
  _this.overrideValueAtPath({
49108
49108
  id,
49109
- path: path63,
49109
+ path: path64,
49110
49110
  rendererID,
49111
49111
  type: "state",
49112
49112
  value
@@ -49176,12 +49176,12 @@ var require_backend = __commonJS({
49176
49176
  _this._bridge.send("profilingStatus", _this._isProfiling);
49177
49177
  });
49178
49178
  agent_defineProperty(agent_assertThisInitialized(_this), "storeAsGlobal", function(_ref18) {
49179
- var count = _ref18.count, id = _ref18.id, path63 = _ref18.path, rendererID = _ref18.rendererID;
49179
+ var count = _ref18.count, id = _ref18.id, path64 = _ref18.path, rendererID = _ref18.rendererID;
49180
49180
  var renderer = _this._rendererInterfaces[rendererID];
49181
49181
  if (renderer == null) {
49182
49182
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
49183
49183
  } else {
49184
- renderer.storeAsGlobal(id, path63, count);
49184
+ renderer.storeAsGlobal(id, path64, count);
49185
49185
  }
49186
49186
  });
49187
49187
  agent_defineProperty(agent_assertThisInitialized(_this), "updateConsolePatchSettings", function(_ref19) {
@@ -49204,12 +49204,12 @@ var require_backend = __commonJS({
49204
49204
  }
49205
49205
  });
49206
49206
  agent_defineProperty(agent_assertThisInitialized(_this), "viewAttributeSource", function(_ref20) {
49207
- var id = _ref20.id, path63 = _ref20.path, rendererID = _ref20.rendererID;
49207
+ var id = _ref20.id, path64 = _ref20.path, rendererID = _ref20.rendererID;
49208
49208
  var renderer = _this._rendererInterfaces[rendererID];
49209
49209
  if (renderer == null) {
49210
49210
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
49211
49211
  } else {
49212
- renderer.prepareViewAttributeSource(id, path63);
49212
+ renderer.prepareViewAttributeSource(id, path64);
49213
49213
  }
49214
49214
  });
49215
49215
  agent_defineProperty(agent_assertThisInitialized(_this), "viewElementSource", function(_ref21) {
@@ -49269,8 +49269,8 @@ var require_backend = __commonJS({
49269
49269
  });
49270
49270
  agent_defineProperty(agent_assertThisInitialized(_this), "_throttledPersistSelection", lodash_throttle_default()(function(rendererID, id) {
49271
49271
  var renderer = _this._rendererInterfaces[rendererID];
49272
- var path63 = renderer != null ? renderer.getPathForElement(id) : null;
49273
- if (path63 !== null) {
49272
+ var path64 = renderer != null ? renderer.getPathForElement(id) : null;
49273
+ if (path64 !== null) {
49274
49274
  Object(storage[
49275
49275
  "e"
49276
49276
  /* sessionStorageSetItem */
@@ -49279,7 +49279,7 @@ var require_backend = __commonJS({
49279
49279
  /* SESSION_STORAGE_LAST_SELECTION_KEY */
49280
49280
  ], JSON.stringify({
49281
49281
  rendererID,
49282
- path: path63
49282
+ path: path64
49283
49283
  }));
49284
49284
  } else {
49285
49285
  Object(storage[
@@ -50383,9 +50383,9 @@ var require_backend = __commonJS({
50383
50383
  __name(getStringID, "getStringID");
50384
50384
  var currentlyInspectedElementID = null;
50385
50385
  var currentlyInspectedPaths = {};
50386
- function mergeInspectedPaths(path63) {
50386
+ function mergeInspectedPaths(path64) {
50387
50387
  var current = currentlyInspectedPaths;
50388
- path63.forEach(function(key) {
50388
+ path64.forEach(function(key) {
50389
50389
  if (!current[key]) {
50390
50390
  current[key] = {};
50391
50391
  }
@@ -50394,13 +50394,13 @@ var require_backend = __commonJS({
50394
50394
  }
50395
50395
  __name(mergeInspectedPaths, "mergeInspectedPaths");
50396
50396
  function createIsPathAllowed(key) {
50397
- return /* @__PURE__ */ __name(function isPathAllowed(path63) {
50397
+ return /* @__PURE__ */ __name(function isPathAllowed(path64) {
50398
50398
  var current = currentlyInspectedPaths[key];
50399
50399
  if (!current) {
50400
50400
  return false;
50401
50401
  }
50402
- for (var i = 0; i < path63.length; i++) {
50403
- current = current[path63[i]];
50402
+ for (var i = 0; i < path64.length; i++) {
50403
+ current = current[path64[i]];
50404
50404
  if (!current) {
50405
50405
  return false;
50406
50406
  }
@@ -50459,13 +50459,13 @@ var require_backend = __commonJS({
50459
50459
  }
50460
50460
  }
50461
50461
  __name(updateSelectedElement, "updateSelectedElement");
50462
- function storeAsGlobal(id, path63, count) {
50462
+ function storeAsGlobal(id, path64, count) {
50463
50463
  var inspectedElement = inspectElementRaw(id);
50464
50464
  if (inspectedElement !== null) {
50465
50465
  var value = Object(src_utils[
50466
50466
  "h"
50467
50467
  /* getInObject */
50468
- ])(inspectedElement, path63);
50468
+ ])(inspectedElement, path64);
50469
50469
  var key = "$reactTemp".concat(count);
50470
50470
  window[key] = value;
50471
50471
  console.log(key);
@@ -50473,7 +50473,7 @@ var require_backend = __commonJS({
50473
50473
  }
50474
50474
  }
50475
50475
  __name(storeAsGlobal, "storeAsGlobal");
50476
- function copyElementPath(id, path63) {
50476
+ function copyElementPath(id, path64) {
50477
50477
  var inspectedElement = inspectElementRaw(id);
50478
50478
  if (inspectedElement !== null) {
50479
50479
  Object(utils[
@@ -50482,11 +50482,11 @@ var require_backend = __commonJS({
50482
50482
  ])(Object(src_utils[
50483
50483
  "h"
50484
50484
  /* getInObject */
50485
- ])(inspectedElement, path63));
50485
+ ])(inspectedElement, path64));
50486
50486
  }
50487
50487
  }
50488
50488
  __name(copyElementPath, "copyElementPath");
50489
- function inspectElement(requestID, id, path63, forceFullData) {
50489
+ function inspectElement(requestID, id, path64, forceFullData) {
50490
50490
  if (forceFullData || currentlyInspectedElementID !== id) {
50491
50491
  currentlyInspectedElementID = id;
50492
50492
  currentlyInspectedPaths = {};
@@ -50499,8 +50499,8 @@ var require_backend = __commonJS({
50499
50499
  type: "not-found"
50500
50500
  };
50501
50501
  }
50502
- if (path63 !== null) {
50503
- mergeInspectedPaths(path63);
50502
+ if (path64 !== null) {
50503
+ mergeInspectedPaths(path64);
50504
50504
  }
50505
50505
  updateSelectedElement(id);
50506
50506
  inspectedElement.context = Object(utils[
@@ -50646,13 +50646,13 @@ var require_backend = __commonJS({
50646
50646
  }
50647
50647
  }
50648
50648
  __name(logElementToConsole, "logElementToConsole");
50649
- function prepareViewAttributeSource(id, path63) {
50649
+ function prepareViewAttributeSource(id, path64) {
50650
50650
  var inspectedElement = inspectElementRaw(id);
50651
50651
  if (inspectedElement !== null) {
50652
50652
  window.$attribute = Object(src_utils[
50653
50653
  "h"
50654
50654
  /* getInObject */
50655
- ])(inspectedElement, path63);
50655
+ ])(inspectedElement, path64);
50656
50656
  }
50657
50657
  }
50658
50658
  __name(prepareViewAttributeSource, "prepareViewAttributeSource");
@@ -50670,7 +50670,7 @@ var require_backend = __commonJS({
50670
50670
  global2.$type = element.type;
50671
50671
  }
50672
50672
  __name(prepareViewElementSource, "prepareViewElementSource");
50673
- function deletePath(type, id, hookID, path63) {
50673
+ function deletePath(type, id, hookID, path64) {
50674
50674
  var internalInstance = idToInternalInstanceMap.get(id);
50675
50675
  if (internalInstance != null) {
50676
50676
  var publicInstance = internalInstance._instance;
@@ -50680,7 +50680,7 @@ var require_backend = __commonJS({
50680
50680
  Object(src_utils[
50681
50681
  "a"
50682
50682
  /* deletePathInObject */
50683
- ])(publicInstance.context, path63);
50683
+ ])(publicInstance.context, path64);
50684
50684
  forceUpdate(publicInstance);
50685
50685
  break;
50686
50686
  case "hooks":
@@ -50691,7 +50691,7 @@ var require_backend = __commonJS({
50691
50691
  props: Object(utils[
50692
50692
  "c"
50693
50693
  /* copyWithDelete */
50694
- ])(element.props, path63)
50694
+ ])(element.props, path64)
50695
50695
  });
50696
50696
  forceUpdate(publicInstance);
50697
50697
  break;
@@ -50699,7 +50699,7 @@ var require_backend = __commonJS({
50699
50699
  Object(src_utils[
50700
50700
  "a"
50701
50701
  /* deletePathInObject */
50702
- ])(publicInstance.state, path63);
50702
+ ])(publicInstance.state, path64);
50703
50703
  forceUpdate(publicInstance);
50704
50704
  break;
50705
50705
  }
@@ -50744,7 +50744,7 @@ var require_backend = __commonJS({
50744
50744
  }
50745
50745
  }
50746
50746
  __name(renamePath, "renamePath");
50747
- function overrideValueAtPath(type, id, hookID, path63, value) {
50747
+ function overrideValueAtPath(type, id, hookID, path64, value) {
50748
50748
  var internalInstance = idToInternalInstanceMap.get(id);
50749
50749
  if (internalInstance != null) {
50750
50750
  var publicInstance = internalInstance._instance;
@@ -50754,7 +50754,7 @@ var require_backend = __commonJS({
50754
50754
  Object(src_utils[
50755
50755
  "l"
50756
50756
  /* setInObject */
50757
- ])(publicInstance.context, path63, value);
50757
+ ])(publicInstance.context, path64, value);
50758
50758
  forceUpdate(publicInstance);
50759
50759
  break;
50760
50760
  case "hooks":
@@ -50765,7 +50765,7 @@ var require_backend = __commonJS({
50765
50765
  props: Object(utils[
50766
50766
  "e"
50767
50767
  /* copyWithSet */
50768
- ])(element.props, path63, value)
50768
+ ])(element.props, path64, value)
50769
50769
  });
50770
50770
  forceUpdate(publicInstance);
50771
50771
  break;
@@ -50773,7 +50773,7 @@ var require_backend = __commonJS({
50773
50773
  Object(src_utils[
50774
50774
  "l"
50775
50775
  /* setInObject */
50776
- ])(publicInstance.state, path63, value);
50776
+ ])(publicInstance.state, path64, value);
50777
50777
  forceUpdate(publicInstance);
50778
50778
  break;
50779
50779
  }
@@ -50817,7 +50817,7 @@ var require_backend = __commonJS({
50817
50817
  function setTraceUpdatesEnabled(enabled) {
50818
50818
  }
50819
50819
  __name(setTraceUpdatesEnabled, "setTraceUpdatesEnabled");
50820
- function setTrackedPath(path63) {
50820
+ function setTrackedPath(path64) {
50821
50821
  }
50822
50822
  __name(setTrackedPath, "setTrackedPath");
50823
50823
  function getOwnersList(id) {
@@ -54264,7 +54264,7 @@ var require_main2 = __commonJS({
54264
54264
  "../../node_modules/.pnpm/dotenv@16.0.0/node_modules/dotenv/lib/main.js"(exports2, module3) {
54265
54265
  init_import_meta_url();
54266
54266
  var fs25 = require("fs");
54267
- var path63 = require("path");
54267
+ var path64 = require("path");
54268
54268
  var os10 = require("os");
54269
54269
  var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
54270
54270
  function parse5(src) {
@@ -54292,11 +54292,11 @@ var require_main2 = __commonJS({
54292
54292
  }
54293
54293
  __name(_log, "_log");
54294
54294
  function _resolveHome(envPath) {
54295
- return envPath[0] === "~" ? path63.join(os10.homedir(), envPath.slice(1)) : envPath;
54295
+ return envPath[0] === "~" ? path64.join(os10.homedir(), envPath.slice(1)) : envPath;
54296
54296
  }
54297
54297
  __name(_resolveHome, "_resolveHome");
54298
54298
  function config(options29) {
54299
- let dotenvPath = path63.resolve(process.cwd(), ".env");
54299
+ let dotenvPath = path64.resolve(process.cwd(), ".env");
54300
54300
  let encoding = "utf8";
54301
54301
  const debug = Boolean(options29 && options29.debug);
54302
54302
  const override = Boolean(options29 && options29.override);
@@ -55279,15 +55279,15 @@ var require_route2 = __commonJS({
55279
55279
  }
55280
55280
  __name(link, "link");
55281
55281
  function wrapConversion(toModel, graph) {
55282
- var path63 = [graph[toModel].parent, toModel];
55282
+ var path64 = [graph[toModel].parent, toModel];
55283
55283
  var fn2 = conversions[graph[toModel].parent][toModel];
55284
55284
  var cur = graph[toModel].parent;
55285
55285
  while (graph[cur].parent) {
55286
- path63.unshift(graph[cur].parent);
55286
+ path64.unshift(graph[cur].parent);
55287
55287
  fn2 = link(conversions[graph[cur].parent][cur], fn2);
55288
55288
  cur = graph[cur].parent;
55289
55289
  }
55290
- fn2.conversion = path63;
55290
+ fn2.conversion = path64;
55291
55291
  return fn2;
55292
55292
  }
55293
55293
  __name(wrapConversion, "wrapConversion");
@@ -57716,7 +57716,7 @@ var require_XDGAppPaths = __commonJS({
57716
57716
  }
57717
57717
  __name(typeOf, "typeOf");
57718
57718
  function Adapt(adapter_) {
57719
- var meta = adapter_.meta, path63 = adapter_.path, xdg = adapter_.xdg;
57719
+ var meta = adapter_.meta, path64 = adapter_.path, xdg = adapter_.xdg;
57720
57720
  var XDGAppPaths_ = function() {
57721
57721
  function XDGAppPaths_2(options_) {
57722
57722
  if (options_ === void 0) {
@@ -57739,7 +57739,7 @@ var require_XDGAppPaths = __commonJS({
57739
57739
  meta.mainFilename()
57740
57740
  ];
57741
57741
  var nameFallback = "$eval";
57742
- var name = path63.parse(((_c2 = namePriorityList.find(function(e3) {
57742
+ var name = path64.parse(((_c2 = namePriorityList.find(function(e3) {
57743
57743
  return isString4(e3);
57744
57744
  })) !== null && _c2 !== void 0 ? _c2 : nameFallback) + suffix).name;
57745
57745
  XDGAppPaths.$name = /* @__PURE__ */ __name(function $name() {
@@ -57760,28 +57760,28 @@ var require_XDGAppPaths = __commonJS({
57760
57760
  }
57761
57761
  __name(finalPathSegment, "finalPathSegment");
57762
57762
  XDGAppPaths.cache = /* @__PURE__ */ __name(function cache2(dirOptions) {
57763
- return path63.join(xdg.cache(), finalPathSegment(dirOptions));
57763
+ return path64.join(xdg.cache(), finalPathSegment(dirOptions));
57764
57764
  }, "cache");
57765
57765
  XDGAppPaths.config = /* @__PURE__ */ __name(function config(dirOptions) {
57766
- return path63.join(xdg.config(), finalPathSegment(dirOptions));
57766
+ return path64.join(xdg.config(), finalPathSegment(dirOptions));
57767
57767
  }, "config");
57768
57768
  XDGAppPaths.data = /* @__PURE__ */ __name(function data(dirOptions) {
57769
- return path63.join(xdg.data(), finalPathSegment(dirOptions));
57769
+ return path64.join(xdg.data(), finalPathSegment(dirOptions));
57770
57770
  }, "data");
57771
57771
  XDGAppPaths.runtime = /* @__PURE__ */ __name(function runtime(dirOptions) {
57772
- return xdg.runtime() ? path63.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
57772
+ return xdg.runtime() ? path64.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
57773
57773
  }, "runtime");
57774
57774
  XDGAppPaths.state = /* @__PURE__ */ __name(function state(dirOptions) {
57775
- return path63.join(xdg.state(), finalPathSegment(dirOptions));
57775
+ return path64.join(xdg.state(), finalPathSegment(dirOptions));
57776
57776
  }, "state");
57777
57777
  XDGAppPaths.configDirs = /* @__PURE__ */ __name(function configDirs(dirOptions) {
57778
57778
  return xdg.configDirs().map(function(s) {
57779
- return path63.join(s, finalPathSegment(dirOptions));
57779
+ return path64.join(s, finalPathSegment(dirOptions));
57780
57780
  });
57781
57781
  }, "configDirs");
57782
57782
  XDGAppPaths.dataDirs = /* @__PURE__ */ __name(function dataDirs(dirOptions) {
57783
57783
  return xdg.dataDirs().map(function(s) {
57784
- return path63.join(s, finalPathSegment(dirOptions));
57784
+ return path64.join(s, finalPathSegment(dirOptions));
57785
57785
  });
57786
57786
  }, "dataDirs");
57787
57787
  return XDGAppPaths;
@@ -57809,7 +57809,7 @@ var require_XDG = __commonJS({
57809
57809
  exports2.__esModule = true;
57810
57810
  exports2.Adapt = void 0;
57811
57811
  function Adapt(adapter_) {
57812
- var env5 = adapter_.env, osPaths = adapter_.osPaths, path63 = adapter_.path;
57812
+ var env5 = adapter_.env, osPaths = adapter_.osPaths, path64 = adapter_.path;
57813
57813
  var isMacOS = /^darwin$/i.test(adapter_.process.platform);
57814
57814
  var isWinOS = /^win/i.test(adapter_.process.platform);
57815
57815
  function baseDir() {
@@ -57817,7 +57817,7 @@ var require_XDG = __commonJS({
57817
57817
  }
57818
57818
  __name(baseDir, "baseDir");
57819
57819
  function valOrPath(val, pathSegments) {
57820
- return val || path63.join.apply(path63, pathSegments);
57820
+ return val || path64.join.apply(path64, pathSegments);
57821
57821
  }
57822
57822
  __name(valOrPath, "valOrPath");
57823
57823
  var linux = /* @__PURE__ */ __name(function() {
@@ -57896,11 +57896,11 @@ var require_XDG = __commonJS({
57896
57896
  XDG.state = extension.state;
57897
57897
  XDG.configDirs = /* @__PURE__ */ __name(function configDirs() {
57898
57898
  var pathList = env5.get("XDG_CONFIG_DIRS");
57899
- return __spreadArray([extension.config()], pathList ? pathList.split(path63.delimiter) : []);
57899
+ return __spreadArray([extension.config()], pathList ? pathList.split(path64.delimiter) : []);
57900
57900
  }, "configDirs");
57901
57901
  XDG.dataDirs = /* @__PURE__ */ __name(function dataDirs() {
57902
57902
  var pathList = env5.get("XDG_DATA_DIRS");
57903
- return __spreadArray([extension.data()], pathList ? pathList.split(path63.delimiter) : []);
57903
+ return __spreadArray([extension.data()], pathList ? pathList.split(path64.delimiter) : []);
57904
57904
  }, "dataDirs");
57905
57905
  return XDG;
57906
57906
  }
@@ -57931,7 +57931,7 @@ var require_OSPaths = __commonJS({
57931
57931
  }
57932
57932
  __name(isEmpty, "isEmpty");
57933
57933
  function Adapt(adapter_) {
57934
- var env5 = adapter_.env, os10 = adapter_.os, path63 = adapter_.path;
57934
+ var env5 = adapter_.env, os10 = adapter_.os, path64 = adapter_.path;
57935
57935
  var isWinOS = /^win/i.test(adapter_.process.platform);
57936
57936
  function normalizePath(path_) {
57937
57937
  return path_ ? adapter_.path.normalize(adapter_.path.join(path_, ".")) : void 0;
@@ -57946,7 +57946,7 @@ var require_OSPaths = __commonJS({
57946
57946
  typeof os10.homedir === "function" ? os10.homedir() : void 0,
57947
57947
  env5.get("USERPROFILE"),
57948
57948
  env5.get("HOME"),
57949
- env5.get("HOMEDRIVE") || env5.get("HOMEPATH") ? path63.join(env5.get("HOMEDRIVE") || "", env5.get("HOMEPATH") || "") : void 0
57949
+ env5.get("HOMEDRIVE") || env5.get("HOMEPATH") ? path64.join(env5.get("HOMEDRIVE") || "", env5.get("HOMEPATH") || "") : void 0
57950
57950
  ];
57951
57951
  return normalizePath(priorityList.find(function(v2) {
57952
57952
  return !isEmpty(v2);
@@ -57957,7 +57957,7 @@ var require_OSPaths = __commonJS({
57957
57957
  __name(home, "home");
57958
57958
  function temp() {
57959
57959
  function joinPathToBase(base, segments) {
57960
- return base ? path63.join.apply(path63, __spreadArray([base], segments)) : void 0;
57960
+ return base ? path64.join.apply(path64, __spreadArray([base], segments)) : void 0;
57961
57961
  }
57962
57962
  __name(joinPathToBase, "joinPathToBase");
57963
57963
  function posix2() {
@@ -58069,7 +58069,7 @@ var require_node = __commonJS({
58069
58069
  exports2.__esModule = true;
58070
58070
  exports2.adapter = void 0;
58071
58071
  var os10 = __importStar(require("os"));
58072
- var path63 = __importStar(require("path"));
58072
+ var path64 = __importStar(require("path"));
58073
58073
  exports2.adapter = {
58074
58074
  atImportPermissions: { env: true },
58075
58075
  env: {
@@ -58078,7 +58078,7 @@ var require_node = __commonJS({
58078
58078
  }
58079
58079
  },
58080
58080
  os: os10,
58081
- path: path63,
58081
+ path: path64,
58082
58082
  process
58083
58083
  };
58084
58084
  }
@@ -58133,7 +58133,7 @@ var require_node2 = __commonJS({
58133
58133
  };
58134
58134
  exports2.__esModule = true;
58135
58135
  exports2.adapter = void 0;
58136
- var path63 = __importStar(require("path"));
58136
+ var path64 = __importStar(require("path"));
58137
58137
  var os_paths_1 = __importDefault(require_mod_cjs());
58138
58138
  exports2.adapter = {
58139
58139
  atImportPermissions: { env: true },
@@ -58143,7 +58143,7 @@ var require_node2 = __commonJS({
58143
58143
  }
58144
58144
  },
58145
58145
  osPaths: os_paths_1["default"],
58146
- path: path63,
58146
+ path: path64,
58147
58147
  process
58148
58148
  };
58149
58149
  }
@@ -58198,7 +58198,7 @@ var require_node3 = __commonJS({
58198
58198
  };
58199
58199
  exports2.__esModule = true;
58200
58200
  exports2.adapter = void 0;
58201
- var path63 = __importStar(require("path"));
58201
+ var path64 = __importStar(require("path"));
58202
58202
  var xdg_portable_1 = __importDefault(require_mod_cjs2());
58203
58203
  exports2.adapter = {
58204
58204
  atImportPermissions: { env: true, read: true },
@@ -58213,7 +58213,7 @@ var require_node3 = __commonJS({
58213
58213
  return process.pkg ? process.execPath : void 0;
58214
58214
  }
58215
58215
  },
58216
- path: path63,
58216
+ path: path64,
58217
58217
  process,
58218
58218
  xdg: xdg_portable_1["default"]
58219
58219
  };
@@ -65955,13 +65955,13 @@ var require_define_lazy_prop = __commonJS({
65955
65955
  var require_open = __commonJS({
65956
65956
  "../../node_modules/.pnpm/open@8.4.0/node_modules/open/index.js"(exports2, module3) {
65957
65957
  init_import_meta_url();
65958
- var path63 = require("path");
65958
+ var path64 = require("path");
65959
65959
  var childProcess2 = require("child_process");
65960
65960
  var { promises: fs25, constants: fsConstants } = require("fs");
65961
65961
  var isWsl = require_is_wsl();
65962
65962
  var isDocker = require_is_docker();
65963
65963
  var defineLazyProperty = require_define_lazy_prop();
65964
- var localXdgOpenPath = path63.join(__dirname, "xdg-open");
65964
+ var localXdgOpenPath = path64.join(__dirname, "xdg-open");
65965
65965
  var { platform: platform2, arch: arch3 } = process;
65966
65966
  var getWslDrivesMountPoint = (() => {
65967
65967
  const defaultMountPoint = "/mnt/";
@@ -66392,8 +66392,8 @@ var require_path_parse = __commonJS({
66392
66392
  var require_node_modules_paths = __commonJS({
66393
66393
  "../../node_modules/.pnpm/resolve@1.22.8/node_modules/resolve/lib/node-modules-paths.js"(exports2, module3) {
66394
66394
  init_import_meta_url();
66395
- var path63 = require("path");
66396
- var parse5 = path63.parse || require_path_parse();
66395
+ var path64 = require("path");
66396
+ var parse5 = path64.parse || require_path_parse();
66397
66397
  var getNodeModulesDirs = /* @__PURE__ */ __name(function getNodeModulesDirs2(absoluteStart, modules) {
66398
66398
  var prefix = "/";
66399
66399
  if (/^([A-Za-z]:)/.test(absoluteStart)) {
@@ -66409,7 +66409,7 @@ var require_node_modules_paths = __commonJS({
66409
66409
  }
66410
66410
  return paths.reduce(function(dirs, aPath) {
66411
66411
  return dirs.concat(modules.map(function(moduleDir) {
66412
- return path63.resolve(prefix, aPath, moduleDir);
66412
+ return path64.resolve(prefix, aPath, moduleDir);
66413
66413
  }));
66414
66414
  }, []);
66415
66415
  }, "getNodeModulesDirs");
@@ -66749,7 +66749,7 @@ var require_async = __commonJS({
66749
66749
  init_import_meta_url();
66750
66750
  var fs25 = require("fs");
66751
66751
  var getHomedir = require_homedir();
66752
- var path63 = require("path");
66752
+ var path64 = require("path");
66753
66753
  var caller = require_caller();
66754
66754
  var nodeModulesPaths = require_node_modules_paths();
66755
66755
  var normalizeOptions = require_normalize_options();
@@ -66758,8 +66758,8 @@ var require_async = __commonJS({
66758
66758
  var homedir2 = getHomedir();
66759
66759
  var defaultPaths = /* @__PURE__ */ __name(function() {
66760
66760
  return [
66761
- path63.join(homedir2, ".node_modules"),
66762
- path63.join(homedir2, ".node_libraries")
66761
+ path64.join(homedir2, ".node_modules"),
66762
+ path64.join(homedir2, ".node_libraries")
66763
66763
  ];
66764
66764
  }, "defaultPaths");
66765
66765
  var defaultIsFile = /* @__PURE__ */ __name(function isFile(file, cb) {
@@ -66797,8 +66797,8 @@ var require_async = __commonJS({
66797
66797
  cb(null, x2);
66798
66798
  }
66799
66799
  }, "maybeRealpath");
66800
- var defaultReadPackage = /* @__PURE__ */ __name(function defaultReadPackage2(readFile10, pkgfile, cb) {
66801
- readFile10(pkgfile, function(readFileErr, body) {
66800
+ var defaultReadPackage = /* @__PURE__ */ __name(function defaultReadPackage2(readFile11, pkgfile, cb) {
66801
+ readFile11(pkgfile, function(readFileErr, body) {
66802
66802
  if (readFileErr)
66803
66803
  cb(readFileErr);
66804
66804
  else {
@@ -66814,7 +66814,7 @@ var require_async = __commonJS({
66814
66814
  var getPackageCandidates = /* @__PURE__ */ __name(function getPackageCandidates2(x2, start, opts) {
66815
66815
  var dirs = nodeModulesPaths(start, opts, x2);
66816
66816
  for (var i = 0; i < dirs.length; i++) {
66817
- dirs[i] = path63.join(dirs[i], x2);
66817
+ dirs[i] = path64.join(dirs[i], x2);
66818
66818
  }
66819
66819
  return dirs;
66820
66820
  }, "getPackageCandidates");
@@ -66834,7 +66834,7 @@ var require_async = __commonJS({
66834
66834
  opts = normalizeOptions(x2, opts);
66835
66835
  var isFile = opts.isFile || defaultIsFile;
66836
66836
  var isDirectory2 = opts.isDirectory || defaultIsDir;
66837
- var readFile10 = opts.readFile || fs25.readFile;
66837
+ var readFile11 = opts.readFile || fs25.readFile;
66838
66838
  var realpath = opts.realpath || defaultRealpath;
66839
66839
  var readPackage = opts.readPackage || defaultReadPackage;
66840
66840
  if (opts.readFile && opts.readPackage) {
@@ -66846,10 +66846,10 @@ var require_async = __commonJS({
66846
66846
  var packageIterator = opts.packageIterator;
66847
66847
  var extensions = opts.extensions || [".js"];
66848
66848
  var includeCoreModules = opts.includeCoreModules !== false;
66849
- var basedir = opts.basedir || path63.dirname(caller());
66849
+ var basedir = opts.basedir || path64.dirname(caller());
66850
66850
  var parent = opts.filename || basedir;
66851
66851
  opts.paths = opts.paths || defaultPaths();
66852
- var absoluteStart = path63.resolve(basedir);
66852
+ var absoluteStart = path64.resolve(basedir);
66853
66853
  maybeRealpath(
66854
66854
  realpath,
66855
66855
  absoluteStart,
@@ -66864,7 +66864,7 @@ var require_async = __commonJS({
66864
66864
  var res;
66865
66865
  function init2(basedir2) {
66866
66866
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x2)) {
66867
- res = path63.resolve(basedir2, x2);
66867
+ res = path64.resolve(basedir2, x2);
66868
66868
  if (x2 === "." || x2 === ".." || x2.slice(-1) === "/")
66869
66869
  res += "/";
66870
66870
  if (/\/$/.test(x2) && res === basedir2) {
@@ -66935,19 +66935,19 @@ var require_async = __commonJS({
66935
66935
  if (pkg)
66936
66936
  onpkg(null, pkg);
66937
66937
  else
66938
- loadpkg(path63.dirname(file), onpkg);
66938
+ loadpkg(path64.dirname(file), onpkg);
66939
66939
  function onpkg(err2, pkg_, dir) {
66940
66940
  pkg = pkg_;
66941
66941
  if (err2)
66942
66942
  return cb2(err2);
66943
66943
  if (dir && pkg && opts.pathFilter) {
66944
- var rfile = path63.relative(dir, file);
66944
+ var rfile = path64.relative(dir, file);
66945
66945
  var rel = rfile.slice(0, rfile.length - exts2[0].length);
66946
66946
  var r3 = opts.pathFilter(pkg, x4, rel);
66947
66947
  if (r3)
66948
66948
  return load(
66949
66949
  [""].concat(extensions.slice()),
66950
- path63.resolve(dir, r3),
66950
+ path64.resolve(dir, r3),
66951
66951
  pkg
66952
66952
  );
66953
66953
  }
@@ -66976,12 +66976,12 @@ var require_async = __commonJS({
66976
66976
  return cb2(null);
66977
66977
  maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) {
66978
66978
  if (unwrapErr)
66979
- return loadpkg(path63.dirname(dir), cb2);
66980
- var pkgfile = path63.join(pkgdir, "package.json");
66979
+ return loadpkg(path64.dirname(dir), cb2);
66980
+ var pkgfile = path64.join(pkgdir, "package.json");
66981
66981
  isFile(pkgfile, function(err2, ex) {
66982
66982
  if (!ex)
66983
- return loadpkg(path63.dirname(dir), cb2);
66984
- readPackage(readFile10, pkgfile, function(err3, pkgParam) {
66983
+ return loadpkg(path64.dirname(dir), cb2);
66984
+ readPackage(readFile11, pkgfile, function(err3, pkgParam) {
66985
66985
  if (err3)
66986
66986
  cb2(err3);
66987
66987
  var pkg = pkgParam;
@@ -67004,13 +67004,13 @@ var require_async = __commonJS({
67004
67004
  maybeRealpath(realpath, x3, opts, function(unwrapErr, pkgdir) {
67005
67005
  if (unwrapErr)
67006
67006
  return cb2(unwrapErr);
67007
- var pkgfile = path63.join(pkgdir, "package.json");
67007
+ var pkgfile = path64.join(pkgdir, "package.json");
67008
67008
  isFile(pkgfile, function(err2, ex) {
67009
67009
  if (err2)
67010
67010
  return cb2(err2);
67011
67011
  if (!ex)
67012
- return loadAsFile(path63.join(x3, "index"), fpkg, cb2);
67013
- readPackage(readFile10, pkgfile, function(err3, pkgParam) {
67012
+ return loadAsFile(path64.join(x3, "index"), fpkg, cb2);
67013
+ readPackage(readFile11, pkgfile, function(err3, pkgParam) {
67014
67014
  if (err3)
67015
67015
  return cb2(err3);
67016
67016
  var pkg = pkgParam;
@@ -67026,25 +67026,25 @@ var require_async = __commonJS({
67026
67026
  if (pkg.main === "." || pkg.main === "./") {
67027
67027
  pkg.main = "index";
67028
67028
  }
67029
- loadAsFile(path63.resolve(x3, pkg.main), pkg, function(err4, m2, pkg2) {
67029
+ loadAsFile(path64.resolve(x3, pkg.main), pkg, function(err4, m2, pkg2) {
67030
67030
  if (err4)
67031
67031
  return cb2(err4);
67032
67032
  if (m2)
67033
67033
  return cb2(null, m2, pkg2);
67034
67034
  if (!pkg2)
67035
- return loadAsFile(path63.join(x3, "index"), pkg2, cb2);
67036
- var dir = path63.resolve(x3, pkg2.main);
67035
+ return loadAsFile(path64.join(x3, "index"), pkg2, cb2);
67036
+ var dir = path64.resolve(x3, pkg2.main);
67037
67037
  loadAsDirectory(dir, pkg2, function(err5, n2, pkg3) {
67038
67038
  if (err5)
67039
67039
  return cb2(err5);
67040
67040
  if (n2)
67041
67041
  return cb2(null, n2, pkg3);
67042
- loadAsFile(path63.join(x3, "index"), pkg3, cb2);
67042
+ loadAsFile(path64.join(x3, "index"), pkg3, cb2);
67043
67043
  });
67044
67044
  });
67045
67045
  return;
67046
67046
  }
67047
- loadAsFile(path63.join(x3, "/index"), pkg, cb2);
67047
+ loadAsFile(path64.join(x3, "/index"), pkg, cb2);
67048
67048
  });
67049
67049
  });
67050
67050
  });
@@ -67054,7 +67054,7 @@ var require_async = __commonJS({
67054
67054
  if (dirs.length === 0)
67055
67055
  return cb2(null, void 0);
67056
67056
  var dir = dirs[0];
67057
- isDirectory2(path63.dirname(dir), isdir);
67057
+ isDirectory2(path64.dirname(dir), isdir);
67058
67058
  function isdir(err2, isdir2) {
67059
67059
  if (err2)
67060
67060
  return cb2(err2);
@@ -67294,7 +67294,7 @@ var require_sync = __commonJS({
67294
67294
  init_import_meta_url();
67295
67295
  var isCore = require_is_core_module();
67296
67296
  var fs25 = require("fs");
67297
- var path63 = require("path");
67297
+ var path64 = require("path");
67298
67298
  var getHomedir = require_homedir();
67299
67299
  var caller = require_caller();
67300
67300
  var nodeModulesPaths = require_node_modules_paths();
@@ -67303,8 +67303,8 @@ var require_sync = __commonJS({
67303
67303
  var homedir2 = getHomedir();
67304
67304
  var defaultPaths = /* @__PURE__ */ __name(function() {
67305
67305
  return [
67306
- path63.join(homedir2, ".node_modules"),
67307
- path63.join(homedir2, ".node_libraries")
67306
+ path64.join(homedir2, ".node_modules"),
67307
+ path64.join(homedir2, ".node_libraries")
67308
67308
  ];
67309
67309
  }, "defaultPaths");
67310
67310
  var defaultIsFile = /* @__PURE__ */ __name(function isFile(file) {
@@ -67354,7 +67354,7 @@ var require_sync = __commonJS({
67354
67354
  var getPackageCandidates = /* @__PURE__ */ __name(function getPackageCandidates2(x2, start, opts) {
67355
67355
  var dirs = nodeModulesPaths(start, opts, x2);
67356
67356
  for (var i = 0; i < dirs.length; i++) {
67357
- dirs[i] = path63.join(dirs[i], x2);
67357
+ dirs[i] = path64.join(dirs[i], x2);
67358
67358
  }
67359
67359
  return dirs;
67360
67360
  }, "getPackageCandidates");
@@ -67374,12 +67374,12 @@ var require_sync = __commonJS({
67374
67374
  var packageIterator = opts.packageIterator;
67375
67375
  var extensions = opts.extensions || [".js"];
67376
67376
  var includeCoreModules = opts.includeCoreModules !== false;
67377
- var basedir = opts.basedir || path63.dirname(caller());
67377
+ var basedir = opts.basedir || path64.dirname(caller());
67378
67378
  var parent = opts.filename || basedir;
67379
67379
  opts.paths = opts.paths || defaultPaths();
67380
- var absoluteStart = maybeRealpathSync(realpathSync3, path63.resolve(basedir), opts);
67380
+ var absoluteStart = maybeRealpathSync(realpathSync3, path64.resolve(basedir), opts);
67381
67381
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x2)) {
67382
- var res = path63.resolve(absoluteStart, x2);
67382
+ var res = path64.resolve(absoluteStart, x2);
67383
67383
  if (x2 === "." || x2 === ".." || x2.slice(-1) === "/")
67384
67384
  res += "/";
67385
67385
  var m2 = loadAsFileSync(res) || loadAsDirectorySync(res);
@@ -67396,12 +67396,12 @@ var require_sync = __commonJS({
67396
67396
  err.code = "MODULE_NOT_FOUND";
67397
67397
  throw err;
67398
67398
  function loadAsFileSync(x3) {
67399
- var pkg = loadpkg(path63.dirname(x3));
67399
+ var pkg = loadpkg(path64.dirname(x3));
67400
67400
  if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
67401
- var rfile = path63.relative(pkg.dir, x3);
67401
+ var rfile = path64.relative(pkg.dir, x3);
67402
67402
  var r3 = opts.pathFilter(pkg.pkg, x3, rfile);
67403
67403
  if (r3) {
67404
- x3 = path63.resolve(pkg.dir, r3);
67404
+ x3 = path64.resolve(pkg.dir, r3);
67405
67405
  }
67406
67406
  }
67407
67407
  if (isFile(x3)) {
@@ -67423,9 +67423,9 @@ var require_sync = __commonJS({
67423
67423
  }
67424
67424
  if (/[/\\]node_modules[/\\]*$/.test(dir))
67425
67425
  return;
67426
- var pkgfile = path63.join(maybeRealpathSync(realpathSync3, dir, opts), "package.json");
67426
+ var pkgfile = path64.join(maybeRealpathSync(realpathSync3, dir, opts), "package.json");
67427
67427
  if (!isFile(pkgfile)) {
67428
- return loadpkg(path63.dirname(dir));
67428
+ return loadpkg(path64.dirname(dir));
67429
67429
  }
67430
67430
  var pkg = readPackageSync(readFileSync25, pkgfile);
67431
67431
  if (pkg && opts.packageFilter) {
@@ -67439,7 +67439,7 @@ var require_sync = __commonJS({
67439
67439
  }
67440
67440
  __name(loadpkg, "loadpkg");
67441
67441
  function loadAsDirectorySync(x3) {
67442
- var pkgfile = path63.join(maybeRealpathSync(realpathSync3, x3, opts), "/package.json");
67442
+ var pkgfile = path64.join(maybeRealpathSync(realpathSync3, x3, opts), "/package.json");
67443
67443
  if (isFile(pkgfile)) {
67444
67444
  try {
67445
67445
  var pkg = readPackageSync(readFileSync25, pkgfile);
@@ -67462,17 +67462,17 @@ var require_sync = __commonJS({
67462
67462
  pkg.main = "index";
67463
67463
  }
67464
67464
  try {
67465
- var m3 = loadAsFileSync(path63.resolve(x3, pkg.main));
67465
+ var m3 = loadAsFileSync(path64.resolve(x3, pkg.main));
67466
67466
  if (m3)
67467
67467
  return m3;
67468
- var n3 = loadAsDirectorySync(path63.resolve(x3, pkg.main));
67468
+ var n3 = loadAsDirectorySync(path64.resolve(x3, pkg.main));
67469
67469
  if (n3)
67470
67470
  return n3;
67471
67471
  } catch (e3) {
67472
67472
  }
67473
67473
  }
67474
67474
  }
67475
- return loadAsFileSync(path63.join(x3, "/index"));
67475
+ return loadAsFileSync(path64.join(x3, "/index"));
67476
67476
  }
67477
67477
  __name(loadAsDirectorySync, "loadAsDirectorySync");
67478
67478
  function loadNodeModulesSync(x3, start) {
@@ -67482,7 +67482,7 @@ var require_sync = __commonJS({
67482
67482
  var dirs = packageIterator ? packageIterator(x3, start, thunk, opts) : thunk();
67483
67483
  for (var i = 0; i < dirs.length; i++) {
67484
67484
  var dir = dirs[i];
67485
- if (isDirectory2(path63.dirname(dir))) {
67485
+ if (isDirectory2(path64.dirname(dir))) {
67486
67486
  var m3 = loadAsFileSync(dir);
67487
67487
  if (m3)
67488
67488
  return m3;
@@ -67516,7 +67516,7 @@ var require_windows = __commonJS({
67516
67516
  module3.exports = isexe;
67517
67517
  isexe.sync = sync;
67518
67518
  var fs25 = require("fs");
67519
- function checkPathExt(path63, options29) {
67519
+ function checkPathExt(path64, options29) {
67520
67520
  var pathext = options29.pathExt !== void 0 ? options29.pathExt : process.env.PATHEXT;
67521
67521
  if (!pathext) {
67522
67522
  return true;
@@ -67527,28 +67527,28 @@ var require_windows = __commonJS({
67527
67527
  }
67528
67528
  for (var i = 0; i < pathext.length; i++) {
67529
67529
  var p2 = pathext[i].toLowerCase();
67530
- if (p2 && path63.substr(-p2.length).toLowerCase() === p2) {
67530
+ if (p2 && path64.substr(-p2.length).toLowerCase() === p2) {
67531
67531
  return true;
67532
67532
  }
67533
67533
  }
67534
67534
  return false;
67535
67535
  }
67536
67536
  __name(checkPathExt, "checkPathExt");
67537
- function checkStat(stat4, path63, options29) {
67537
+ function checkStat(stat4, path64, options29) {
67538
67538
  if (!stat4.isSymbolicLink() && !stat4.isFile()) {
67539
67539
  return false;
67540
67540
  }
67541
- return checkPathExt(path63, options29);
67541
+ return checkPathExt(path64, options29);
67542
67542
  }
67543
67543
  __name(checkStat, "checkStat");
67544
- function isexe(path63, options29, cb) {
67545
- fs25.stat(path63, function(er, stat4) {
67546
- cb(er, er ? false : checkStat(stat4, path63, options29));
67544
+ function isexe(path64, options29, cb) {
67545
+ fs25.stat(path64, function(er, stat4) {
67546
+ cb(er, er ? false : checkStat(stat4, path64, options29));
67547
67547
  });
67548
67548
  }
67549
67549
  __name(isexe, "isexe");
67550
- function sync(path63, options29) {
67551
- return checkStat(fs25.statSync(path63), path63, options29);
67550
+ function sync(path64, options29) {
67551
+ return checkStat(fs25.statSync(path64), path64, options29);
67552
67552
  }
67553
67553
  __name(sync, "sync");
67554
67554
  }
@@ -67561,14 +67561,14 @@ var require_mode = __commonJS({
67561
67561
  module3.exports = isexe;
67562
67562
  isexe.sync = sync;
67563
67563
  var fs25 = require("fs");
67564
- function isexe(path63, options29, cb) {
67565
- fs25.stat(path63, function(er, stat4) {
67564
+ function isexe(path64, options29, cb) {
67565
+ fs25.stat(path64, function(er, stat4) {
67566
67566
  cb(er, er ? false : checkStat(stat4, options29));
67567
67567
  });
67568
67568
  }
67569
67569
  __name(isexe, "isexe");
67570
- function sync(path63, options29) {
67571
- return checkStat(fs25.statSync(path63), options29);
67570
+ function sync(path64, options29) {
67571
+ return checkStat(fs25.statSync(path64), options29);
67572
67572
  }
67573
67573
  __name(sync, "sync");
67574
67574
  function checkStat(stat4, options29) {
@@ -67605,7 +67605,7 @@ var require_isexe = __commonJS({
67605
67605
  }
67606
67606
  module3.exports = isexe;
67607
67607
  isexe.sync = sync;
67608
- function isexe(path63, options29, cb) {
67608
+ function isexe(path64, options29, cb) {
67609
67609
  if (typeof options29 === "function") {
67610
67610
  cb = options29;
67611
67611
  options29 = {};
@@ -67615,7 +67615,7 @@ var require_isexe = __commonJS({
67615
67615
  throw new TypeError("callback not provided");
67616
67616
  }
67617
67617
  return new Promise(function(resolve19, reject) {
67618
- isexe(path63, options29 || {}, function(er, is2) {
67618
+ isexe(path64, options29 || {}, function(er, is2) {
67619
67619
  if (er) {
67620
67620
  reject(er);
67621
67621
  } else {
@@ -67624,7 +67624,7 @@ var require_isexe = __commonJS({
67624
67624
  });
67625
67625
  });
67626
67626
  }
67627
- core(path63, options29 || {}, function(er, is2) {
67627
+ core(path64, options29 || {}, function(er, is2) {
67628
67628
  if (er) {
67629
67629
  if (er.code === "EACCES" || options29 && options29.ignoreErrors) {
67630
67630
  er = null;
@@ -67635,9 +67635,9 @@ var require_isexe = __commonJS({
67635
67635
  });
67636
67636
  }
67637
67637
  __name(isexe, "isexe");
67638
- function sync(path63, options29) {
67638
+ function sync(path64, options29) {
67639
67639
  try {
67640
- return core.sync(path63, options29 || {});
67640
+ return core.sync(path64, options29 || {});
67641
67641
  } catch (er) {
67642
67642
  if (options29 && options29.ignoreErrors || er.code === "EACCES") {
67643
67643
  return false;
@@ -67655,7 +67655,7 @@ var require_which = __commonJS({
67655
67655
  "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module3) {
67656
67656
  init_import_meta_url();
67657
67657
  var isWindows2 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
67658
- var path63 = require("path");
67658
+ var path64 = require("path");
67659
67659
  var COLON = isWindows2 ? ";" : ":";
67660
67660
  var isexe = require_isexe();
67661
67661
  var getNotFoundError = /* @__PURE__ */ __name((cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }), "getNotFoundError");
@@ -67693,7 +67693,7 @@ var require_which = __commonJS({
67693
67693
  return opt.all && found.length ? resolve19(found) : reject(getNotFoundError(cmd));
67694
67694
  const ppRaw = pathEnv[i];
67695
67695
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
67696
- const pCmd = path63.join(pathPart, cmd);
67696
+ const pCmd = path64.join(pathPart, cmd);
67697
67697
  const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
67698
67698
  resolve19(subStep(p2, i, 0));
67699
67699
  }), "step");
@@ -67720,7 +67720,7 @@ var require_which = __commonJS({
67720
67720
  for (let i = 0; i < pathEnv.length; i++) {
67721
67721
  const ppRaw = pathEnv[i];
67722
67722
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
67723
- const pCmd = path63.join(pathPart, cmd);
67723
+ const pCmd = path64.join(pathPart, cmd);
67724
67724
  const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
67725
67725
  for (let j2 = 0; j2 < pathExt.length; j2++) {
67726
67726
  const cur = p2 + pathExt[j2];
@@ -67770,7 +67770,7 @@ var require_resolveCommand = __commonJS({
67770
67770
  "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module3) {
67771
67771
  "use strict";
67772
67772
  init_import_meta_url();
67773
- var path63 = require("path");
67773
+ var path64 = require("path");
67774
67774
  var which = require_which();
67775
67775
  var getPathKey = require_path_key();
67776
67776
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -67788,7 +67788,7 @@ var require_resolveCommand = __commonJS({
67788
67788
  try {
67789
67789
  resolved = which.sync(parsed.command, {
67790
67790
  path: env5[getPathKey({ env: env5 })],
67791
- pathExt: withoutPathExt ? path63.delimiter : void 0
67791
+ pathExt: withoutPathExt ? path64.delimiter : void 0
67792
67792
  });
67793
67793
  } catch (e3) {
67794
67794
  } finally {
@@ -67797,7 +67797,7 @@ var require_resolveCommand = __commonJS({
67797
67797
  }
67798
67798
  }
67799
67799
  if (resolved) {
67800
- resolved = path63.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
67800
+ resolved = path64.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
67801
67801
  }
67802
67802
  return resolved;
67803
67803
  }
@@ -67858,8 +67858,8 @@ var require_shebang_command = __commonJS({
67858
67858
  if (!match) {
67859
67859
  return null;
67860
67860
  }
67861
- const [path63, argument] = match[0].replace(/#! ?/, "").split(" ");
67862
- const binary = path63.split("/").pop();
67861
+ const [path64, argument] = match[0].replace(/#! ?/, "").split(" ");
67862
+ const binary = path64.split("/").pop();
67863
67863
  if (binary === "env") {
67864
67864
  return argument;
67865
67865
  }
@@ -67897,7 +67897,7 @@ var require_parse3 = __commonJS({
67897
67897
  "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module3) {
67898
67898
  "use strict";
67899
67899
  init_import_meta_url();
67900
- var path63 = require("path");
67900
+ var path64 = require("path");
67901
67901
  var resolveCommand = require_resolveCommand();
67902
67902
  var escape2 = require_escape();
67903
67903
  var readShebang = require_readShebang();
@@ -67923,7 +67923,7 @@ var require_parse3 = __commonJS({
67923
67923
  const needsShell = !isExecutableRegExp.test(commandFile);
67924
67924
  if (parsed.options.forceShell || needsShell) {
67925
67925
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
67926
- parsed.command = path63.normalize(parsed.command);
67926
+ parsed.command = path64.normalize(parsed.command);
67927
67927
  parsed.command = escape2.command(parsed.command);
67928
67928
  parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
67929
67929
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -68215,7 +68215,7 @@ var require_npm_run_path = __commonJS({
68215
68215
  "../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports2, module3) {
68216
68216
  "use strict";
68217
68217
  init_import_meta_url();
68218
- var path63 = require("path");
68218
+ var path64 = require("path");
68219
68219
  var pathKey2 = require_path_key();
68220
68220
  var npmRunPath2 = /* @__PURE__ */ __name((options29) => {
68221
68221
  options29 = {
@@ -68225,16 +68225,16 @@ var require_npm_run_path = __commonJS({
68225
68225
  ...options29
68226
68226
  };
68227
68227
  let previous;
68228
- let cwdPath = path63.resolve(options29.cwd);
68228
+ let cwdPath = path64.resolve(options29.cwd);
68229
68229
  const result = [];
68230
68230
  while (previous !== cwdPath) {
68231
- result.push(path63.join(cwdPath, "node_modules/.bin"));
68231
+ result.push(path64.join(cwdPath, "node_modules/.bin"));
68232
68232
  previous = cwdPath;
68233
- cwdPath = path63.resolve(cwdPath, "..");
68233
+ cwdPath = path64.resolve(cwdPath, "..");
68234
68234
  }
68235
- const execPathDir = path63.resolve(options29.cwd, options29.execPath, "..");
68235
+ const execPathDir = path64.resolve(options29.cwd, options29.execPath, "..");
68236
68236
  result.push(execPathDir);
68237
- return result.concat(options29.path).join(path63.delimiter);
68237
+ return result.concat(options29.path).join(path64.delimiter);
68238
68238
  }, "npmRunPath");
68239
68239
  module3.exports = npmRunPath2;
68240
68240
  module3.exports.default = npmRunPath2;
@@ -68244,9 +68244,9 @@ var require_npm_run_path = __commonJS({
68244
68244
  ...options29
68245
68245
  };
68246
68246
  const env5 = { ...options29.env };
68247
- const path64 = pathKey2({ env: env5 });
68248
- options29.path = env5[path64];
68249
- env5[path64] = module3.exports(options29);
68247
+ const path65 = pathKey2({ env: env5 });
68248
+ options29.path = env5[path65];
68249
+ env5[path65] = module3.exports(options29);
68250
68250
  return env5;
68251
68251
  };
68252
68252
  }
@@ -69051,7 +69051,7 @@ var require_execa = __commonJS({
69051
69051
  "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports2, module3) {
69052
69052
  "use strict";
69053
69053
  init_import_meta_url();
69054
- var path63 = require("path");
69054
+ var path64 = require("path");
69055
69055
  var childProcess2 = require("child_process");
69056
69056
  var crossSpawn2 = require_cross_spawn();
69057
69057
  var stripFinalNewline2 = require_strip_final_newline();
@@ -69093,7 +69093,7 @@ var require_execa = __commonJS({
69093
69093
  };
69094
69094
  options29.env = getEnv2(options29);
69095
69095
  options29.stdio = normalizeStdio2(options29);
69096
- if (process.platform === "win32" && path63.basename(file, ".exe") === "cmd") {
69096
+ if (process.platform === "win32" && path64.basename(file, ".exe") === "cmd") {
69097
69097
  args.unshift("/q");
69098
69098
  }
69099
69099
  return { file, args, options: options29, parsed };
@@ -69281,7 +69281,7 @@ var require_arch = __commonJS({
69281
69281
  init_import_meta_url();
69282
69282
  var cp2 = require("child_process");
69283
69283
  var fs25 = require("fs");
69284
- var path63 = require("path");
69284
+ var path64 = require("path");
69285
69285
  module3.exports = /* @__PURE__ */ __name(function arch3() {
69286
69286
  if (process.arch === "x64") {
69287
69287
  return "x64";
@@ -69298,7 +69298,7 @@ var require_arch = __commonJS({
69298
69298
  var sysRoot = useEnv ? process.env.SYSTEMROOT : "C:\\Windows";
69299
69299
  var isWOW64 = false;
69300
69300
  try {
69301
- isWOW64 = !!fs25.statSync(path63.join(sysRoot, "sysnative"));
69301
+ isWOW64 = !!fs25.statSync(path64.join(sysRoot, "sysnative"));
69302
69302
  } catch (err) {
69303
69303
  }
69304
69304
  return isWOW64 ? "x64" : "x86";
@@ -69320,7 +69320,7 @@ var require_command_exists = __commonJS({
69320
69320
  var exec2 = require("child_process").exec;
69321
69321
  var execSync4 = require("child_process").execSync;
69322
69322
  var fs25 = require("fs");
69323
- var path63 = require("path");
69323
+ var path64 = require("path");
69324
69324
  var access3 = fs25.access;
69325
69325
  var accessSync = fs25.accessSync;
69326
69326
  var constants3 = fs25.constants || fs25;
@@ -69424,8 +69424,8 @@ var require_command_exists = __commonJS({
69424
69424
  cleanInput = /* @__PURE__ */ __name(function(s) {
69425
69425
  var isPathName = /[\\]/.test(s);
69426
69426
  if (isPathName) {
69427
- var dirname13 = '"' + path63.dirname(s) + '"';
69428
- var basename4 = '"' + path63.basename(s) + '"';
69427
+ var dirname13 = '"' + path64.dirname(s) + '"';
69428
+ var basename4 = '"' + path64.basename(s) + '"';
69429
69429
  return dirname13 + ":" + basename4;
69430
69430
  }
69431
69431
  return '"' + s + '"';
@@ -83745,11 +83745,11 @@ var require_mime_types = __commonJS({
83745
83745
  return exts[0];
83746
83746
  }
83747
83747
  __name(extension, "extension");
83748
- function lookup(path63) {
83749
- if (!path63 || typeof path63 !== "string") {
83748
+ function lookup(path64) {
83749
+ if (!path64 || typeof path64 !== "string") {
83750
83750
  return false;
83751
83751
  }
83752
- var extension2 = extname4("x." + path63).toLowerCase().substr(1);
83752
+ var extension2 = extname4("x." + path64).toLowerCase().substr(1);
83753
83753
  if (!extension2) {
83754
83754
  return false;
83755
83755
  }
@@ -86618,7 +86618,7 @@ var require_path_to_regexp = __commonJS({
86618
86618
  init_import_meta_url();
86619
86619
  module3.exports = pathtoRegexp;
86620
86620
  var MATCHING_GROUP_REGEXP = /\((?!\?)/g;
86621
- function pathtoRegexp(path63, keys, options29) {
86621
+ function pathtoRegexp(path64, keys, options29) {
86622
86622
  options29 = options29 || {};
86623
86623
  keys = keys || [];
86624
86624
  var strict = options29.strict;
@@ -86629,23 +86629,23 @@ var require_path_to_regexp = __commonJS({
86629
86629
  var i = 0;
86630
86630
  var name = 0;
86631
86631
  var m2;
86632
- if (path63 instanceof RegExp) {
86633
- while (m2 = MATCHING_GROUP_REGEXP.exec(path63.source)) {
86632
+ if (path64 instanceof RegExp) {
86633
+ while (m2 = MATCHING_GROUP_REGEXP.exec(path64.source)) {
86634
86634
  keys.push({
86635
86635
  name: name++,
86636
86636
  optional: false,
86637
86637
  offset: m2.index
86638
86638
  });
86639
86639
  }
86640
- return path63;
86640
+ return path64;
86641
86641
  }
86642
- if (Array.isArray(path63)) {
86643
- path63 = path63.map(function(value) {
86642
+ if (Array.isArray(path64)) {
86643
+ path64 = path64.map(function(value) {
86644
86644
  return pathtoRegexp(value, keys, options29).source;
86645
86645
  });
86646
- return new RegExp("(?:" + path63.join("|") + ")", flags);
86646
+ return new RegExp("(?:" + path64.join("|") + ")", flags);
86647
86647
  }
86648
- path63 = ("^" + path63 + (strict ? "" : path63[path63.length - 1] === "/" ? "?" : "/?")).replace(/\/\(/g, "/(?:").replace(/([\/\.])/g, "\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function(match, slash, format10, key, capture, star, optional, offset) {
86648
+ path64 = ("^" + path64 + (strict ? "" : path64[path64.length - 1] === "/" ? "?" : "/?")).replace(/\/\(/g, "/(?:").replace(/([\/\.])/g, "\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function(match, slash, format10, key, capture, star, optional, offset) {
86649
86649
  slash = slash || "";
86650
86650
  format10 = format10 || "";
86651
86651
  capture = capture || "([^\\/" + format10 + "]+?)";
@@ -86665,10 +86665,10 @@ var require_path_to_regexp = __commonJS({
86665
86665
  }
86666
86666
  return "(.*)";
86667
86667
  });
86668
- while (m2 = MATCHING_GROUP_REGEXP.exec(path63)) {
86668
+ while (m2 = MATCHING_GROUP_REGEXP.exec(path64)) {
86669
86669
  var escapeCount = 0;
86670
86670
  var index = m2.index;
86671
- while (path63.charAt(--index) === "\\") {
86671
+ while (path64.charAt(--index) === "\\") {
86672
86672
  escapeCount++;
86673
86673
  }
86674
86674
  if (escapeCount % 2 === 1) {
@@ -86684,8 +86684,8 @@ var require_path_to_regexp = __commonJS({
86684
86684
  }
86685
86685
  i++;
86686
86686
  }
86687
- path63 += end ? "$" : path63[path63.length - 1] === "/" ? "" : "(?=\\/|$)";
86688
- return new RegExp(path63, flags);
86687
+ path64 += end ? "$" : path64[path64.length - 1] === "/" ? "" : "(?=\\/|$)";
86688
+ return new RegExp(path64, flags);
86689
86689
  }
86690
86690
  __name(pathtoRegexp, "pathtoRegexp");
86691
86691
  }
@@ -86700,19 +86700,19 @@ var require_layer = __commonJS({
86700
86700
  var debug = require_src3()("express:router:layer");
86701
86701
  var hasOwnProperty2 = Object.prototype.hasOwnProperty;
86702
86702
  module3.exports = Layer;
86703
- function Layer(path63, options29, fn2) {
86703
+ function Layer(path64, options29, fn2) {
86704
86704
  if (!(this instanceof Layer)) {
86705
- return new Layer(path63, options29, fn2);
86705
+ return new Layer(path64, options29, fn2);
86706
86706
  }
86707
- debug("new %o", path63);
86707
+ debug("new %o", path64);
86708
86708
  var opts = options29 || {};
86709
86709
  this.handle = fn2;
86710
86710
  this.name = fn2.name || "<anonymous>";
86711
86711
  this.params = void 0;
86712
86712
  this.path = void 0;
86713
- this.regexp = pathRegexp(path63, this.keys = [], opts);
86714
- this.regexp.fast_star = path63 === "*";
86715
- this.regexp.fast_slash = path63 === "/" && opts.end === false;
86713
+ this.regexp = pathRegexp(path64, this.keys = [], opts);
86714
+ this.regexp.fast_star = path64 === "*";
86715
+ this.regexp.fast_slash = path64 === "/" && opts.end === false;
86716
86716
  }
86717
86717
  __name(Layer, "Layer");
86718
86718
  Layer.prototype.handle_error = /* @__PURE__ */ __name(function handle_error(error2, req, res, next) {
@@ -86737,20 +86737,20 @@ var require_layer = __commonJS({
86737
86737
  next(err);
86738
86738
  }
86739
86739
  }, "handle");
86740
- Layer.prototype.match = /* @__PURE__ */ __name(function match(path63) {
86740
+ Layer.prototype.match = /* @__PURE__ */ __name(function match(path64) {
86741
86741
  var match2;
86742
- if (path63 != null) {
86742
+ if (path64 != null) {
86743
86743
  if (this.regexp.fast_slash) {
86744
86744
  this.params = {};
86745
86745
  this.path = "";
86746
86746
  return true;
86747
86747
  }
86748
86748
  if (this.regexp.fast_star) {
86749
- this.params = { "0": decode_param(path63) };
86750
- this.path = path63;
86749
+ this.params = { "0": decode_param(path64) };
86750
+ this.path = path64;
86751
86751
  return true;
86752
86752
  }
86753
- match2 = this.regexp.exec(path63);
86753
+ match2 = this.regexp.exec(path64);
86754
86754
  }
86755
86755
  if (!match2) {
86756
86756
  this.params = void 0;
@@ -86848,10 +86848,10 @@ var require_route3 = __commonJS({
86848
86848
  var slice = Array.prototype.slice;
86849
86849
  var toString = Object.prototype.toString;
86850
86850
  module3.exports = Route;
86851
- function Route(path63) {
86852
- this.path = path63;
86851
+ function Route(path64) {
86852
+ this.path = path64;
86853
86853
  this.stack = [];
86854
- debug("new %o", path63);
86854
+ debug("new %o", path64);
86855
86855
  this.methods = {};
86856
86856
  }
86857
86857
  __name(Route, "Route");
@@ -87070,8 +87070,8 @@ var require_router = __commonJS({
87070
87070
  if (++sync > 100) {
87071
87071
  return setImmediate(next, err);
87072
87072
  }
87073
- var path63 = getPathname(req);
87074
- if (path63 == null) {
87073
+ var path64 = getPathname(req);
87074
+ if (path64 == null) {
87075
87075
  return done(layerError);
87076
87076
  }
87077
87077
  var layer;
@@ -87079,7 +87079,7 @@ var require_router = __commonJS({
87079
87079
  var route2;
87080
87080
  while (match !== true && idx < stack.length) {
87081
87081
  layer = stack[idx++];
87082
- match = matchLayer(layer, path63);
87082
+ match = matchLayer(layer, path64);
87083
87083
  route2 = layer.route;
87084
87084
  if (typeof match !== "boolean") {
87085
87085
  layerError = layerError || match;
@@ -87117,19 +87117,19 @@ var require_router = __commonJS({
87117
87117
  } else if (route2) {
87118
87118
  layer.handle_request(req, res, next);
87119
87119
  } else {
87120
- trim_prefix(layer, layerError, layerPath, path63);
87120
+ trim_prefix(layer, layerError, layerPath, path64);
87121
87121
  }
87122
87122
  sync = 0;
87123
87123
  });
87124
87124
  }
87125
87125
  __name(next, "next");
87126
- function trim_prefix(layer, layerError, layerPath, path63) {
87126
+ function trim_prefix(layer, layerError, layerPath, path64) {
87127
87127
  if (layerPath.length !== 0) {
87128
- if (layerPath !== path63.slice(0, layerPath.length)) {
87128
+ if (layerPath !== path64.slice(0, layerPath.length)) {
87129
87129
  next(layerError);
87130
87130
  return;
87131
87131
  }
87132
- var c2 = path63[layerPath.length];
87132
+ var c2 = path64[layerPath.length];
87133
87133
  if (c2 && c2 !== "/" && c2 !== ".")
87134
87134
  return next(layerError);
87135
87135
  debug("trim prefix (%s) from url %s", layerPath, req.url);
@@ -87212,7 +87212,7 @@ var require_router = __commonJS({
87212
87212
  }, "process_params");
87213
87213
  proto.use = /* @__PURE__ */ __name(function use(fn2) {
87214
87214
  var offset = 0;
87215
- var path63 = "/";
87215
+ var path64 = "/";
87216
87216
  if (typeof fn2 !== "function") {
87217
87217
  var arg = fn2;
87218
87218
  while (Array.isArray(arg) && arg.length !== 0) {
@@ -87220,7 +87220,7 @@ var require_router = __commonJS({
87220
87220
  }
87221
87221
  if (typeof arg !== "function") {
87222
87222
  offset = 1;
87223
- path63 = fn2;
87223
+ path64 = fn2;
87224
87224
  }
87225
87225
  }
87226
87226
  var callbacks = flatten(slice.call(arguments, offset));
@@ -87232,8 +87232,8 @@ var require_router = __commonJS({
87232
87232
  if (typeof fn2 !== "function") {
87233
87233
  throw new TypeError("Router.use() requires a middleware function but got a " + gettype(fn2));
87234
87234
  }
87235
- debug("use %o %s", path63, fn2.name || "<anonymous>");
87236
- var layer = new Layer(path63, {
87235
+ debug("use %o %s", path64, fn2.name || "<anonymous>");
87236
+ var layer = new Layer(path64, {
87237
87237
  sensitive: this.caseSensitive,
87238
87238
  strict: false,
87239
87239
  end: false
@@ -87243,9 +87243,9 @@ var require_router = __commonJS({
87243
87243
  }
87244
87244
  return this;
87245
87245
  }, "use");
87246
- proto.route = /* @__PURE__ */ __name(function route2(path63) {
87247
- var route3 = new Route(path63);
87248
- var layer = new Layer(path63, {
87246
+ proto.route = /* @__PURE__ */ __name(function route2(path64) {
87247
+ var route3 = new Route(path64);
87248
+ var layer = new Layer(path64, {
87249
87249
  sensitive: this.caseSensitive,
87250
87250
  strict: this.strict,
87251
87251
  end: true
@@ -87255,8 +87255,8 @@ var require_router = __commonJS({
87255
87255
  return route3;
87256
87256
  }, "route");
87257
87257
  methods.concat("all").forEach(function(method) {
87258
- proto[method] = function(path63) {
87259
- var route2 = this.route(path63);
87258
+ proto[method] = function(path64) {
87259
+ var route2 = this.route(path64);
87260
87260
  route2[method].apply(route2, slice.call(arguments, 1));
87261
87261
  return this;
87262
87262
  };
@@ -87296,9 +87296,9 @@ var require_router = __commonJS({
87296
87296
  return toString.call(obj).replace(objectRegExp, "$1");
87297
87297
  }
87298
87298
  __name(gettype, "gettype");
87299
- function matchLayer(layer, path63) {
87299
+ function matchLayer(layer, path64) {
87300
87300
  try {
87301
- return layer.match(path63);
87301
+ return layer.match(path64);
87302
87302
  } catch (err) {
87303
87303
  return err;
87304
87304
  }
@@ -87425,13 +87425,13 @@ var require_view = __commonJS({
87425
87425
  "use strict";
87426
87426
  init_import_meta_url();
87427
87427
  var debug = require_src3()("express:view");
87428
- var path63 = require("path");
87428
+ var path64 = require("path");
87429
87429
  var fs25 = require("fs");
87430
- var dirname13 = path63.dirname;
87431
- var basename4 = path63.basename;
87432
- var extname4 = path63.extname;
87433
- var join15 = path63.join;
87434
- var resolve19 = path63.resolve;
87430
+ var dirname13 = path64.dirname;
87431
+ var basename4 = path64.basename;
87432
+ var extname4 = path64.extname;
87433
+ var join15 = path64.join;
87434
+ var resolve19 = path64.resolve;
87435
87435
  module3.exports = View;
87436
87436
  function View(name, options29) {
87437
87437
  var opts = options29 || {};
@@ -87461,17 +87461,17 @@ var require_view = __commonJS({
87461
87461
  }
87462
87462
  __name(View, "View");
87463
87463
  View.prototype.lookup = /* @__PURE__ */ __name(function lookup(name) {
87464
- var path64;
87464
+ var path65;
87465
87465
  var roots = [].concat(this.root);
87466
87466
  debug('lookup "%s"', name);
87467
- for (var i = 0; i < roots.length && !path64; i++) {
87467
+ for (var i = 0; i < roots.length && !path65; i++) {
87468
87468
  var root = roots[i];
87469
87469
  var loc = resolve19(root, name);
87470
87470
  var dir = dirname13(loc);
87471
87471
  var file = basename4(loc);
87472
- path64 = this.resolve(dir, file);
87472
+ path65 = this.resolve(dir, file);
87473
87473
  }
87474
- return path64;
87474
+ return path65;
87475
87475
  }, "lookup");
87476
87476
  View.prototype.render = /* @__PURE__ */ __name(function render7(options29, callback) {
87477
87477
  debug('render "%s"', this.path);
@@ -87479,21 +87479,21 @@ var require_view = __commonJS({
87479
87479
  }, "render");
87480
87480
  View.prototype.resolve = /* @__PURE__ */ __name(function resolve20(dir, file) {
87481
87481
  var ext = this.ext;
87482
- var path64 = join15(dir, file);
87483
- var stat4 = tryStat(path64);
87482
+ var path65 = join15(dir, file);
87483
+ var stat4 = tryStat(path65);
87484
87484
  if (stat4 && stat4.isFile()) {
87485
- return path64;
87485
+ return path65;
87486
87486
  }
87487
- path64 = join15(dir, basename4(file, ext), "index" + ext);
87488
- stat4 = tryStat(path64);
87487
+ path65 = join15(dir, basename4(file, ext), "index" + ext);
87488
+ stat4 = tryStat(path65);
87489
87489
  if (stat4 && stat4.isFile()) {
87490
- return path64;
87490
+ return path65;
87491
87491
  }
87492
87492
  }, "resolve");
87493
- function tryStat(path64) {
87494
- debug('stat "%s"', path64);
87493
+ function tryStat(path65) {
87494
+ debug('stat "%s"', path65);
87495
87495
  try {
87496
- return fs25.statSync(path64);
87496
+ return fs25.statSync(path65);
87497
87497
  } catch (e3) {
87498
87498
  return void 0;
87499
87499
  }
@@ -87873,7 +87873,7 @@ var require_types = __commonJS({
87873
87873
  var require_mime = __commonJS({
87874
87874
  "../../node_modules/.pnpm/mime@1.6.0/node_modules/mime/mime.js"(exports2, module3) {
87875
87875
  init_import_meta_url();
87876
- var path63 = require("path");
87876
+ var path64 = require("path");
87877
87877
  var fs25 = require("fs");
87878
87878
  function Mime() {
87879
87879
  this.types = /* @__PURE__ */ Object.create(null);
@@ -87904,8 +87904,8 @@ var require_mime = __commonJS({
87904
87904
  this.define(map);
87905
87905
  this._loading = null;
87906
87906
  };
87907
- Mime.prototype.lookup = function(path64, fallback) {
87908
- var ext = path64.replace(/^.*[\.\/\\]/, "").toLowerCase();
87907
+ Mime.prototype.lookup = function(path65, fallback) {
87908
+ var ext = path65.replace(/^.*[\.\/\\]/, "").toLowerCase();
87909
87909
  return this.types[ext] || fallback || this.default_type;
87910
87910
  };
87911
87911
  Mime.prototype.extension = function(mimeType) {
@@ -88152,29 +88152,29 @@ var require_send = __commonJS({
88152
88152
  var ms = require_ms2();
88153
88153
  var onFinished = require_on_finished();
88154
88154
  var parseRange = require_range_parser();
88155
- var path63 = require("path");
88155
+ var path64 = require("path");
88156
88156
  var statuses = require_statuses();
88157
88157
  var Stream = require("stream");
88158
88158
  var util4 = require("util");
88159
- var extname4 = path63.extname;
88160
- var join15 = path63.join;
88161
- var normalize3 = path63.normalize;
88162
- var resolve19 = path63.resolve;
88163
- var sep3 = path63.sep;
88159
+ var extname4 = path64.extname;
88160
+ var join15 = path64.join;
88161
+ var normalize3 = path64.normalize;
88162
+ var resolve19 = path64.resolve;
88163
+ var sep3 = path64.sep;
88164
88164
  var BYTES_RANGE_REGEXP = /^ *bytes=/;
88165
88165
  var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3;
88166
88166
  var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
88167
88167
  module3.exports = send;
88168
88168
  module3.exports.mime = mime;
88169
- function send(req, path64, options29) {
88170
- return new SendStream(req, path64, options29);
88169
+ function send(req, path65, options29) {
88170
+ return new SendStream(req, path65, options29);
88171
88171
  }
88172
88172
  __name(send, "send");
88173
- function SendStream(req, path64, options29) {
88173
+ function SendStream(req, path65, options29) {
88174
88174
  Stream.call(this);
88175
88175
  var opts = options29 || {};
88176
88176
  this.options = opts;
88177
- this.path = path64;
88177
+ this.path = path65;
88178
88178
  this.req = req;
88179
88179
  this._acceptRanges = opts.acceptRanges !== void 0 ? Boolean(opts.acceptRanges) : true;
88180
88180
  this._cacheControl = opts.cacheControl !== void 0 ? Boolean(opts.cacheControl) : true;
@@ -88221,8 +88221,8 @@ var require_send = __commonJS({
88221
88221
  this._index = index2;
88222
88222
  return this;
88223
88223
  }, "index"), "send.index: pass index as option");
88224
- SendStream.prototype.root = /* @__PURE__ */ __name(function root(path64) {
88225
- this._root = resolve19(String(path64));
88224
+ SendStream.prototype.root = /* @__PURE__ */ __name(function root(path65) {
88225
+ this._root = resolve19(String(path65));
88226
88226
  debug("root %s", this._root);
88227
88227
  return this;
88228
88228
  }, "root");
@@ -88335,10 +88335,10 @@ var require_send = __commonJS({
88335
88335
  var lastModified = this.res.getHeader("Last-Modified");
88336
88336
  return parseHttpDate(lastModified) <= parseHttpDate(ifRange);
88337
88337
  }, "isRangeFresh");
88338
- SendStream.prototype.redirect = /* @__PURE__ */ __name(function redirect(path64) {
88338
+ SendStream.prototype.redirect = /* @__PURE__ */ __name(function redirect(path65) {
88339
88339
  var res = this.res;
88340
88340
  if (hasListeners(this, "directory")) {
88341
- this.emit("directory", res, path64);
88341
+ this.emit("directory", res, path65);
88342
88342
  return;
88343
88343
  }
88344
88344
  if (this.hasTrailingSlash()) {
@@ -88358,42 +88358,42 @@ var require_send = __commonJS({
88358
88358
  SendStream.prototype.pipe = /* @__PURE__ */ __name(function pipe(res) {
88359
88359
  var root = this._root;
88360
88360
  this.res = res;
88361
- var path64 = decode(this.path);
88362
- if (path64 === -1) {
88361
+ var path65 = decode(this.path);
88362
+ if (path65 === -1) {
88363
88363
  this.error(400);
88364
88364
  return res;
88365
88365
  }
88366
- if (~path64.indexOf("\0")) {
88366
+ if (~path65.indexOf("\0")) {
88367
88367
  this.error(400);
88368
88368
  return res;
88369
88369
  }
88370
88370
  var parts;
88371
88371
  if (root !== null) {
88372
- if (path64) {
88373
- path64 = normalize3("." + sep3 + path64);
88372
+ if (path65) {
88373
+ path65 = normalize3("." + sep3 + path65);
88374
88374
  }
88375
- if (UP_PATH_REGEXP.test(path64)) {
88376
- debug('malicious path "%s"', path64);
88375
+ if (UP_PATH_REGEXP.test(path65)) {
88376
+ debug('malicious path "%s"', path65);
88377
88377
  this.error(403);
88378
88378
  return res;
88379
88379
  }
88380
- parts = path64.split(sep3);
88381
- path64 = normalize3(join15(root, path64));
88380
+ parts = path65.split(sep3);
88381
+ path65 = normalize3(join15(root, path65));
88382
88382
  } else {
88383
- if (UP_PATH_REGEXP.test(path64)) {
88384
- debug('malicious path "%s"', path64);
88383
+ if (UP_PATH_REGEXP.test(path65)) {
88384
+ debug('malicious path "%s"', path65);
88385
88385
  this.error(403);
88386
88386
  return res;
88387
88387
  }
88388
- parts = normalize3(path64).split(sep3);
88389
- path64 = resolve19(path64);
88388
+ parts = normalize3(path65).split(sep3);
88389
+ path65 = resolve19(path65);
88390
88390
  }
88391
88391
  if (containsDotFile(parts)) {
88392
88392
  var access3 = this._dotfiles;
88393
88393
  if (access3 === void 0) {
88394
88394
  access3 = parts[parts.length - 1][0] === "." ? this._hidden ? "allow" : "ignore" : "allow";
88395
88395
  }
88396
- debug('%s dotfile "%s"', access3, path64);
88396
+ debug('%s dotfile "%s"', access3, path65);
88397
88397
  switch (access3) {
88398
88398
  case "allow":
88399
88399
  break;
@@ -88407,13 +88407,13 @@ var require_send = __commonJS({
88407
88407
  }
88408
88408
  }
88409
88409
  if (this._index.length && this.hasTrailingSlash()) {
88410
- this.sendIndex(path64);
88410
+ this.sendIndex(path65);
88411
88411
  return res;
88412
88412
  }
88413
- this.sendFile(path64);
88413
+ this.sendFile(path65);
88414
88414
  return res;
88415
88415
  }, "pipe");
88416
- SendStream.prototype.send = /* @__PURE__ */ __name(function send2(path64, stat4) {
88416
+ SendStream.prototype.send = /* @__PURE__ */ __name(function send2(path65, stat4) {
88417
88417
  var len = stat4.size;
88418
88418
  var options29 = this.options;
88419
88419
  var opts = {};
@@ -88425,9 +88425,9 @@ var require_send = __commonJS({
88425
88425
  this.headersAlreadySent();
88426
88426
  return;
88427
88427
  }
88428
- debug('pipe "%s"', path64);
88429
- this.setHeader(path64, stat4);
88430
- this.type(path64);
88428
+ debug('pipe "%s"', path65);
88429
+ this.setHeader(path65, stat4);
88430
+ this.type(path65);
88431
88431
  if (this.isConditionalGET()) {
88432
88432
  if (this.isPreconditionFailure()) {
88433
88433
  this.error(412);
@@ -88477,28 +88477,28 @@ var require_send = __commonJS({
88477
88477
  res.end();
88478
88478
  return;
88479
88479
  }
88480
- this.stream(path64, opts);
88480
+ this.stream(path65, opts);
88481
88481
  }, "send");
88482
- SendStream.prototype.sendFile = /* @__PURE__ */ __name(function sendFile(path64) {
88482
+ SendStream.prototype.sendFile = /* @__PURE__ */ __name(function sendFile(path65) {
88483
88483
  var i = 0;
88484
88484
  var self2 = this;
88485
- debug('stat "%s"', path64);
88486
- fs25.stat(path64, /* @__PURE__ */ __name(function onstat(err, stat4) {
88487
- if (err && err.code === "ENOENT" && !extname4(path64) && path64[path64.length - 1] !== sep3) {
88485
+ debug('stat "%s"', path65);
88486
+ fs25.stat(path65, /* @__PURE__ */ __name(function onstat(err, stat4) {
88487
+ if (err && err.code === "ENOENT" && !extname4(path65) && path65[path65.length - 1] !== sep3) {
88488
88488
  return next(err);
88489
88489
  }
88490
88490
  if (err)
88491
88491
  return self2.onStatError(err);
88492
88492
  if (stat4.isDirectory())
88493
- return self2.redirect(path64);
88494
- self2.emit("file", path64, stat4);
88495
- self2.send(path64, stat4);
88493
+ return self2.redirect(path65);
88494
+ self2.emit("file", path65, stat4);
88495
+ self2.send(path65, stat4);
88496
88496
  }, "onstat"));
88497
88497
  function next(err) {
88498
88498
  if (self2._extensions.length <= i) {
88499
88499
  return err ? self2.onStatError(err) : self2.error(404);
88500
88500
  }
88501
- var p2 = path64 + "." + self2._extensions[i++];
88501
+ var p2 = path65 + "." + self2._extensions[i++];
88502
88502
  debug('stat "%s"', p2);
88503
88503
  fs25.stat(p2, function(err2, stat4) {
88504
88504
  if (err2)
@@ -88511,7 +88511,7 @@ var require_send = __commonJS({
88511
88511
  }
88512
88512
  __name(next, "next");
88513
88513
  }, "sendFile");
88514
- SendStream.prototype.sendIndex = /* @__PURE__ */ __name(function sendIndex(path64) {
88514
+ SendStream.prototype.sendIndex = /* @__PURE__ */ __name(function sendIndex(path65) {
88515
88515
  var i = -1;
88516
88516
  var self2 = this;
88517
88517
  function next(err) {
@@ -88520,7 +88520,7 @@ var require_send = __commonJS({
88520
88520
  return self2.onStatError(err);
88521
88521
  return self2.error(404);
88522
88522
  }
88523
- var p2 = join15(path64, self2._index[i]);
88523
+ var p2 = join15(path65, self2._index[i]);
88524
88524
  debug('stat "%s"', p2);
88525
88525
  fs25.stat(p2, function(err2, stat4) {
88526
88526
  if (err2)
@@ -88534,10 +88534,10 @@ var require_send = __commonJS({
88534
88534
  __name(next, "next");
88535
88535
  next();
88536
88536
  }, "sendIndex");
88537
- SendStream.prototype.stream = /* @__PURE__ */ __name(function stream2(path64, options29) {
88537
+ SendStream.prototype.stream = /* @__PURE__ */ __name(function stream2(path65, options29) {
88538
88538
  var self2 = this;
88539
88539
  var res = this.res;
88540
- var stream3 = fs25.createReadStream(path64, options29);
88540
+ var stream3 = fs25.createReadStream(path65, options29);
88541
88541
  this.emit("stream", stream3);
88542
88542
  stream3.pipe(res);
88543
88543
  function cleanup() {
@@ -88553,11 +88553,11 @@ var require_send = __commonJS({
88553
88553
  self2.emit("end");
88554
88554
  }, "onend"));
88555
88555
  }, "stream");
88556
- SendStream.prototype.type = /* @__PURE__ */ __name(function type(path64) {
88556
+ SendStream.prototype.type = /* @__PURE__ */ __name(function type(path65) {
88557
88557
  var res = this.res;
88558
88558
  if (res.getHeader("Content-Type"))
88559
88559
  return;
88560
- var type2 = mime.lookup(path64);
88560
+ var type2 = mime.lookup(path65);
88561
88561
  if (!type2) {
88562
88562
  debug("no content-type");
88563
88563
  return;
@@ -88566,9 +88566,9 @@ var require_send = __commonJS({
88566
88566
  debug("content-type %s", type2);
88567
88567
  res.setHeader("Content-Type", type2 + (charset ? "; charset=" + charset : ""));
88568
88568
  }, "type");
88569
- SendStream.prototype.setHeader = /* @__PURE__ */ __name(function setHeader(path64, stat4) {
88569
+ SendStream.prototype.setHeader = /* @__PURE__ */ __name(function setHeader(path65, stat4) {
88570
88570
  var res = this.res;
88571
- this.emit("headers", res, path64, stat4);
88571
+ this.emit("headers", res, path65, stat4);
88572
88572
  if (this._acceptRanges && !res.getHeader("Accept-Ranges")) {
88573
88573
  debug("accept ranges");
88574
88574
  res.setHeader("Accept-Ranges", "bytes");
@@ -88633,9 +88633,9 @@ var require_send = __commonJS({
88633
88633
  return err instanceof Error ? createError(status2, err, { expose: false }) : createError(status2, err);
88634
88634
  }
88635
88635
  __name(createHttpError, "createHttpError");
88636
- function decode(path64) {
88636
+ function decode(path65) {
88637
88637
  try {
88638
- return decodeURIComponent(path64);
88638
+ return decodeURIComponent(path65);
88639
88639
  } catch (err) {
88640
88640
  return -1;
88641
88641
  }
@@ -89574,12 +89574,12 @@ var require_utils4 = __commonJS({
89574
89574
  var querystring = require("querystring");
89575
89575
  exports2.etag = createETagGenerator({ weak: false });
89576
89576
  exports2.wetag = createETagGenerator({ weak: true });
89577
- exports2.isAbsolute = function(path63) {
89578
- if ("/" === path63[0])
89577
+ exports2.isAbsolute = function(path64) {
89578
+ if ("/" === path64[0])
89579
89579
  return true;
89580
- if (":" === path63[1] && ("\\" === path63[2] || "/" === path63[2]))
89580
+ if (":" === path64[1] && ("\\" === path64[2] || "/" === path64[2]))
89581
89581
  return true;
89582
- if ("\\\\" === path63.substring(0, 2))
89582
+ if ("\\\\" === path64.substring(0, 2))
89583
89583
  return true;
89584
89584
  };
89585
89585
  exports2.flatten = deprecate.function(
@@ -89797,7 +89797,7 @@ var require_application = __commonJS({
89797
89797
  }, "handle");
89798
89798
  app.use = /* @__PURE__ */ __name(function use(fn2) {
89799
89799
  var offset = 0;
89800
- var path63 = "/";
89800
+ var path64 = "/";
89801
89801
  if (typeof fn2 !== "function") {
89802
89802
  var arg = fn2;
89803
89803
  while (Array.isArray(arg) && arg.length !== 0) {
@@ -89805,7 +89805,7 @@ var require_application = __commonJS({
89805
89805
  }
89806
89806
  if (typeof arg !== "function") {
89807
89807
  offset = 1;
89808
- path63 = fn2;
89808
+ path64 = fn2;
89809
89809
  }
89810
89810
  }
89811
89811
  var fns = flatten(slice.call(arguments, offset));
@@ -89816,12 +89816,12 @@ var require_application = __commonJS({
89816
89816
  var router = this._router;
89817
89817
  fns.forEach(function(fn3) {
89818
89818
  if (!fn3 || !fn3.handle || !fn3.set) {
89819
- return router.use(path63, fn3);
89819
+ return router.use(path64, fn3);
89820
89820
  }
89821
- debug(".use app under %s", path63);
89822
- fn3.mountpath = path63;
89821
+ debug(".use app under %s", path64);
89822
+ fn3.mountpath = path64;
89823
89823
  fn3.parent = this;
89824
- router.use(path63, /* @__PURE__ */ __name(function mounted_app(req, res, next) {
89824
+ router.use(path64, /* @__PURE__ */ __name(function mounted_app(req, res, next) {
89825
89825
  var orig = req.app;
89826
89826
  fn3.handle(req, res, function(err) {
89827
89827
  setPrototypeOf(req, orig.request);
@@ -89833,9 +89833,9 @@ var require_application = __commonJS({
89833
89833
  }, this);
89834
89834
  return this;
89835
89835
  }, "use");
89836
- app.route = /* @__PURE__ */ __name(function route2(path63) {
89836
+ app.route = /* @__PURE__ */ __name(function route2(path64) {
89837
89837
  this.lazyrouter();
89838
- return this._router.route(path63);
89838
+ return this._router.route(path64);
89839
89839
  }, "route");
89840
89840
  app.engine = /* @__PURE__ */ __name(function engine(ext, fn2) {
89841
89841
  if (typeof fn2 !== "function") {
@@ -89886,7 +89886,7 @@ var require_application = __commonJS({
89886
89886
  }
89887
89887
  return this;
89888
89888
  }, "set");
89889
- app.path = /* @__PURE__ */ __name(function path63() {
89889
+ app.path = /* @__PURE__ */ __name(function path64() {
89890
89890
  return this.parent ? this.parent.path() + this.mountpath : "";
89891
89891
  }, "path");
89892
89892
  app.enabled = /* @__PURE__ */ __name(function enabled(setting) {
@@ -89902,19 +89902,19 @@ var require_application = __commonJS({
89902
89902
  return this.set(setting, false);
89903
89903
  }, "disable");
89904
89904
  methods.forEach(function(method) {
89905
- app[method] = function(path63) {
89905
+ app[method] = function(path64) {
89906
89906
  if (method === "get" && arguments.length === 1) {
89907
- return this.set(path63);
89907
+ return this.set(path64);
89908
89908
  }
89909
89909
  this.lazyrouter();
89910
- var route2 = this._router.route(path63);
89910
+ var route2 = this._router.route(path64);
89911
89911
  route2[method].apply(route2, slice.call(arguments, 1));
89912
89912
  return this;
89913
89913
  };
89914
89914
  });
89915
- app.all = /* @__PURE__ */ __name(function all2(path63) {
89915
+ app.all = /* @__PURE__ */ __name(function all2(path64) {
89916
89916
  this.lazyrouter();
89917
- var route2 = this._router.route(path63);
89917
+ var route2 = this._router.route(path64);
89918
89918
  var args = slice.call(arguments, 1);
89919
89919
  for (var i = 0; i < methods.length; i++) {
89920
89920
  route2[methods[i]].apply(route2, args);
@@ -90735,7 +90735,7 @@ var require_request3 = __commonJS({
90735
90735
  var subdomains2 = !isIP(hostname2) ? hostname2.split(".").reverse() : [hostname2];
90736
90736
  return subdomains2.slice(offset);
90737
90737
  }, "subdomains"));
90738
- defineGetter(req, "path", /* @__PURE__ */ __name(function path63() {
90738
+ defineGetter(req, "path", /* @__PURE__ */ __name(function path64() {
90739
90739
  return parse5(this).pathname;
90740
90740
  }, "path"));
90741
90741
  defineGetter(req, "hostname", /* @__PURE__ */ __name(function hostname2() {
@@ -91054,7 +91054,7 @@ var require_response2 = __commonJS({
91054
91054
  var http4 = require("http");
91055
91055
  var isAbsolute = require_utils4().isAbsolute;
91056
91056
  var onFinished = require_on_finished();
91057
- var path63 = require("path");
91057
+ var path64 = require("path");
91058
91058
  var statuses = require_statuses();
91059
91059
  var merge = require_utils_merge();
91060
91060
  var sign = require_cookie_signature().sign;
@@ -91063,9 +91063,9 @@ var require_response2 = __commonJS({
91063
91063
  var setCharset = require_utils4().setCharset;
91064
91064
  var cookie = require_cookie();
91065
91065
  var send = require_send();
91066
- var extname4 = path63.extname;
91066
+ var extname4 = path64.extname;
91067
91067
  var mime = send.mime;
91068
- var resolve19 = path63.resolve;
91068
+ var resolve19 = path64.resolve;
91069
91069
  var vary = require_vary();
91070
91070
  var res = Object.create(http4.ServerResponse.prototype);
91071
91071
  module3.exports = res;
@@ -91243,26 +91243,26 @@ var require_response2 = __commonJS({
91243
91243
  this.type("txt");
91244
91244
  return this.send(body);
91245
91245
  }, "sendStatus");
91246
- res.sendFile = /* @__PURE__ */ __name(function sendFile(path64, options29, callback) {
91246
+ res.sendFile = /* @__PURE__ */ __name(function sendFile(path65, options29, callback) {
91247
91247
  var done = callback;
91248
91248
  var req = this.req;
91249
91249
  var res2 = this;
91250
91250
  var next = req.next;
91251
91251
  var opts = options29 || {};
91252
- if (!path64) {
91252
+ if (!path65) {
91253
91253
  throw new TypeError("path argument is required to res.sendFile");
91254
91254
  }
91255
- if (typeof path64 !== "string") {
91255
+ if (typeof path65 !== "string") {
91256
91256
  throw new TypeError("path must be a string to res.sendFile");
91257
91257
  }
91258
91258
  if (typeof options29 === "function") {
91259
91259
  done = options29;
91260
91260
  opts = {};
91261
91261
  }
91262
- if (!opts.root && !isAbsolute(path64)) {
91262
+ if (!opts.root && !isAbsolute(path65)) {
91263
91263
  throw new TypeError("path must be absolute or specify root to res.sendFile");
91264
91264
  }
91265
- var pathname = encodeURI(path64);
91265
+ var pathname = encodeURI(path65);
91266
91266
  var file = send(req, pathname, opts);
91267
91267
  sendfile(res2, file, opts, function(err) {
91268
91268
  if (done)
@@ -91274,7 +91274,7 @@ var require_response2 = __commonJS({
91274
91274
  }
91275
91275
  });
91276
91276
  }, "sendFile");
91277
- res.sendfile = function(path64, options29, callback) {
91277
+ res.sendfile = function(path65, options29, callback) {
91278
91278
  var done = callback;
91279
91279
  var req = this.req;
91280
91280
  var res2 = this;
@@ -91284,7 +91284,7 @@ var require_response2 = __commonJS({
91284
91284
  done = options29;
91285
91285
  opts = {};
91286
91286
  }
91287
- var file = send(req, path64, opts);
91287
+ var file = send(req, path65, opts);
91288
91288
  sendfile(res2, file, opts, function(err) {
91289
91289
  if (done)
91290
91290
  return done(err);
@@ -91299,7 +91299,7 @@ var require_response2 = __commonJS({
91299
91299
  res.sendfile,
91300
91300
  "res.sendfile: Use res.sendFile instead"
91301
91301
  );
91302
- res.download = /* @__PURE__ */ __name(function download(path64, filename, options29, callback) {
91302
+ res.download = /* @__PURE__ */ __name(function download(path65, filename, options29, callback) {
91303
91303
  var done = callback;
91304
91304
  var name = filename;
91305
91305
  var opts = options29 || null;
@@ -91316,7 +91316,7 @@ var require_response2 = __commonJS({
91316
91316
  opts = filename;
91317
91317
  }
91318
91318
  var headers = {
91319
- "Content-Disposition": contentDisposition(name || path64)
91319
+ "Content-Disposition": contentDisposition(name || path65)
91320
91320
  };
91321
91321
  if (opts && opts.headers) {
91322
91322
  var keys = Object.keys(opts.headers);
@@ -91329,7 +91329,7 @@ var require_response2 = __commonJS({
91329
91329
  }
91330
91330
  opts = Object.create(opts);
91331
91331
  opts.headers = headers;
91332
- var fullPath = !opts.root ? resolve19(path64) : path64;
91332
+ var fullPath = !opts.root ? resolve19(path65) : path65;
91333
91333
  return this.sendFile(fullPath, opts, done);
91334
91334
  }, "download");
91335
91335
  res.contentType = res.type = /* @__PURE__ */ __name(function contentType(type) {
@@ -91638,11 +91638,11 @@ var require_serve_static = __commonJS({
91638
91638
  }
91639
91639
  var forwardError = !fallthrough;
91640
91640
  var originalUrl = parseUrl2.original(req);
91641
- var path63 = parseUrl2(req).pathname;
91642
- if (path63 === "/" && originalUrl.pathname.substr(-1) !== "/") {
91643
- path63 = "";
91641
+ var path64 = parseUrl2(req).pathname;
91642
+ if (path64 === "/" && originalUrl.pathname.substr(-1) !== "/") {
91643
+ path64 = "";
91644
91644
  }
91645
- var stream2 = send(req, path63, opts);
91645
+ var stream2 = send(req, path64, opts);
91646
91646
  stream2.on("directory", onDirectory);
91647
91647
  if (setHeaders) {
91648
91648
  stream2.on("headers", setHeaders);
@@ -92858,8 +92858,8 @@ var require_uri_all = __commonJS({
92858
92858
  wsComponents.secure = void 0;
92859
92859
  }
92860
92860
  if (wsComponents.resourceName) {
92861
- var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path63 = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
92862
- wsComponents.path = path63 && path63 !== "/" ? path63 : void 0;
92861
+ var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path64 = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
92862
+ wsComponents.path = path64 && path64 !== "/" ? path64 : void 0;
92863
92863
  wsComponents.query = query;
92864
92864
  wsComponents.resourceName = void 0;
92865
92865
  }
@@ -93278,13 +93278,13 @@ var require_util11 = __commonJS({
93278
93278
  }
93279
93279
  __name(toQuotedString, "toQuotedString");
93280
93280
  function getPathExpr(currentPath, expr, jsonPointers, isNumber) {
93281
- var path63 = jsonPointers ? "'/' + " + expr + (isNumber ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
93282
- return joinPaths(currentPath, path63);
93281
+ var path64 = jsonPointers ? "'/' + " + expr + (isNumber ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
93282
+ return joinPaths(currentPath, path64);
93283
93283
  }
93284
93284
  __name(getPathExpr, "getPathExpr");
93285
93285
  function getPath(currentPath, prop, jsonPointers) {
93286
- var path63 = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
93287
- return joinPaths(currentPath, path63);
93286
+ var path64 = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
93287
+ return joinPaths(currentPath, path64);
93288
93288
  }
93289
93289
  __name(getPath, "getPath");
93290
93290
  var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
@@ -103845,7 +103845,7 @@ var require_utils5 = __commonJS({
103845
103845
  init_import_meta_url();
103846
103846
  var fs25 = require("fs");
103847
103847
  var ini = require_ini();
103848
- var path63 = require("path");
103848
+ var path64 = require("path");
103849
103849
  var stripJsonComments = require_strip_json_comments();
103850
103850
  var parse5 = exports2.parse = function(content) {
103851
103851
  if (/^\s*{/.test(content))
@@ -103859,7 +103859,7 @@ var require_utils5 = __commonJS({
103859
103859
  for (var i in args)
103860
103860
  if ("string" !== typeof args[i])
103861
103861
  return;
103862
- var file2 = path63.join.apply(null, args);
103862
+ var file2 = path64.join.apply(null, args);
103863
103863
  var content;
103864
103864
  try {
103865
103865
  return fs25.readFileSync(file2, "utf-8");
@@ -103897,15 +103897,15 @@ var require_utils5 = __commonJS({
103897
103897
  return obj;
103898
103898
  };
103899
103899
  var find = exports2.find = function() {
103900
- var rel = path63.join.apply(null, [].slice.call(arguments));
103900
+ var rel = path64.join.apply(null, [].slice.call(arguments));
103901
103901
  function find2(start, rel2) {
103902
- var file2 = path63.join(start, rel2);
103902
+ var file2 = path64.join(start, rel2);
103903
103903
  try {
103904
103904
  fs25.statSync(file2);
103905
103905
  return file2;
103906
103906
  } catch (err) {
103907
- if (path63.dirname(start) !== start)
103908
- return find2(path63.dirname(start), rel2);
103907
+ if (path64.dirname(start) !== start)
103908
+ return find2(path64.dirname(start), rel2);
103909
103909
  }
103910
103910
  }
103911
103911
  __name(find2, "find");
@@ -104357,8 +104357,8 @@ var require_registry_auth_token = __commonJS({
104357
104357
  return void 0;
104358
104358
  }
104359
104359
  __name(getLegacyAuthInfo, "getLegacyAuthInfo");
104360
- function normalizePath(path63) {
104361
- return path63[path63.length - 1] === "/" ? path63 : path63 + "/";
104360
+ function normalizePath(path64) {
104361
+ return path64[path64.length - 1] === "/" ? path64 : path64 + "/";
104362
104362
  }
104363
104363
  __name(normalizePath, "normalizePath");
104364
104364
  function getAuthInfoForUrl(regUrl, npmrc) {
@@ -104416,7 +104416,7 @@ var require_update_check = __commonJS({
104416
104416
  var registryUrl = require_registry_url();
104417
104417
  var writeFile6 = promisify2(fs25.writeFile);
104418
104418
  var mkdir6 = promisify2(fs25.mkdir);
104419
- var readFile10 = promisify2(fs25.readFile);
104419
+ var readFile11 = promisify2(fs25.readFile);
104420
104420
  var compareVersions = /* @__PURE__ */ __name((a, b2) => a.localeCompare(b2, "en-US", { numeric: true }), "compareVersions");
104421
104421
  var encode = /* @__PURE__ */ __name((value) => encodeURIComponent(value).replace(/^%40/, "@"), "encode");
104422
104422
  var getFile = /* @__PURE__ */ __name(async (details, distTag) => {
@@ -104433,7 +104433,7 @@ var require_update_check = __commonJS({
104433
104433
  }, "getFile");
104434
104434
  var evaluateCache = /* @__PURE__ */ __name(async (file, time, interval2) => {
104435
104435
  if (fs25.existsSync(file)) {
104436
- const content = await readFile10(file, "utf8");
104436
+ const content = await readFile11(file, "utf8");
104437
104437
  const { lastUpdate, latest } = JSON.parse(content);
104438
104438
  const nextCheck = lastUpdate + interval2;
104439
104439
  if (nextCheck > time) {
@@ -104733,10 +104733,10 @@ var extractPathname, URL_REGEX, HOST_WITH_PORT_REGEX, PATH_REGEX, validateUrl;
104733
104733
  var init_validateURL = __esm({
104734
104734
  "../pages-shared/metadata-generator/validateURL.ts"() {
104735
104735
  init_import_meta_url();
104736
- extractPathname = /* @__PURE__ */ __name((path63 = "/", includeSearch, includeHash) => {
104737
- if (!path63.startsWith("/"))
104738
- path63 = `/${path63}`;
104739
- const url4 = new URL(`//${path63}`, "relative://");
104736
+ extractPathname = /* @__PURE__ */ __name((path64 = "/", includeSearch, includeHash) => {
104737
+ if (!path64.startsWith("/"))
104738
+ path64 = `/${path64}`;
104739
+ const url4 = new URL(`//${path64}`, "relative://");
104740
104740
  return `${url4.pathname}${includeSearch ? url4.search : ""}${includeHash ? url4.hash : ""}`;
104741
104741
  }, "extractPathname");
104742
104742
  URL_REGEX = /^https:\/\/+(?<host>[^/]+)\/?(?<path>.*)/;
@@ -104767,8 +104767,8 @@ var init_validateURL = __esm({
104767
104767
  } else {
104768
104768
  if (!token.startsWith("/") && onlyRelative)
104769
104769
  token = `/${token}`;
104770
- const path63 = PATH_REGEX.exec(token);
104771
- if (path63) {
104770
+ const path64 = PATH_REGEX.exec(token);
104771
+ if (path64) {
104772
104772
  try {
104773
104773
  return [extractPathname(token, includeSearch, includeHash), void 0];
104774
104774
  } catch {
@@ -104823,7 +104823,7 @@ function parseHeaders(input) {
104823
104823
  });
104824
104824
  }
104825
104825
  }
104826
- const [path63, pathError] = validateUrl(line, false, true);
104826
+ const [path64, pathError] = validateUrl(line, false, true);
104827
104827
  if (pathError) {
104828
104828
  invalid.push({
104829
104829
  line,
@@ -104834,7 +104834,7 @@ function parseHeaders(input) {
104834
104834
  continue;
104835
104835
  }
104836
104836
  rule = {
104837
- path: path63,
104837
+ path: path64,
104838
104838
  line,
104839
104839
  headers: {},
104840
104840
  unsetHeaders: []
@@ -105089,11 +105089,11 @@ var require_Mime = __commonJS({
105089
105089
  }
105090
105090
  }
105091
105091
  };
105092
- Mime.prototype.getType = function(path63) {
105093
- path63 = String(path63);
105094
- let last = path63.replace(/^.*[/\\]/, "").toLowerCase();
105092
+ Mime.prototype.getType = function(path64) {
105093
+ path64 = String(path64);
105094
+ let last = path64.replace(/^.*[/\\]/, "").toLowerCase();
105095
105095
  let ext = last.replace(/^.*\./, "").toLowerCase();
105096
- let hasPath = last.length < path63.length;
105096
+ let hasPath = last.length < path64.length;
105097
105097
  let hasDot = ext.length < last.length - 1;
105098
105098
  return (hasDot || !hasPath) && this._types[ext] || null;
105099
105099
  };
@@ -105931,8 +105931,8 @@ async function generateAssetsFetch(directory, log2) {
105931
105931
  });
105932
105932
  (0, import_chokidar.watch)([headersFile, redirectsFile], { persistent: true }).on(
105933
105933
  "change",
105934
- (path63) => {
105935
- switch (path63) {
105934
+ (path64) => {
105935
+ switch (path64) {
105936
105936
  case headersFile: {
105937
105937
  log2.log("_headers modified. Re-evaluating...");
105938
105938
  const contents = (0, import_node_fs13.readFileSync)(headersFile).toString();
@@ -105960,8 +105960,8 @@ async function generateAssetsFetch(directory, log2) {
105960
105960
  metadata,
105961
105961
  xServerEnvHeader: "dev",
105962
105962
  logError: console.error,
105963
- findAssetEntryForPath: async (path63) => {
105964
- const filepath = (0, import_node_path21.resolve)((0, import_node_path21.join)(directory, path63));
105963
+ findAssetEntryForPath: async (path64) => {
105964
+ const filepath = (0, import_node_path21.resolve)((0, import_node_path21.join)(directory, path64));
105965
105965
  if (!filepath.startsWith(directory)) {
105966
105966
  return null;
105967
105967
  }
@@ -108330,17 +108330,17 @@ var require_ignore = __commonJS({
108330
108330
  var throwError = /* @__PURE__ */ __name((message, Ctor) => {
108331
108331
  throw new Ctor(message);
108332
108332
  }, "throwError");
108333
- var checkPath = /* @__PURE__ */ __name((path63, originalPath, doThrow) => {
108334
- if (!isString4(path63)) {
108333
+ var checkPath = /* @__PURE__ */ __name((path64, originalPath, doThrow) => {
108334
+ if (!isString4(path64)) {
108335
108335
  return doThrow(
108336
108336
  `path must be a string, but got \`${originalPath}\``,
108337
108337
  TypeError
108338
108338
  );
108339
108339
  }
108340
- if (!path63) {
108340
+ if (!path64) {
108341
108341
  return doThrow(`path must not be empty`, TypeError);
108342
108342
  }
108343
- if (checkPath.isNotRelative(path63)) {
108343
+ if (checkPath.isNotRelative(path64)) {
108344
108344
  const r3 = "`path.relative()`d";
108345
108345
  return doThrow(
108346
108346
  `path should be a ${r3} string, but got "${originalPath}"`,
@@ -108349,7 +108349,7 @@ var require_ignore = __commonJS({
108349
108349
  }
108350
108350
  return true;
108351
108351
  }, "checkPath");
108352
- var isNotRelative = /* @__PURE__ */ __name((path63) => REGEX_TEST_INVALID_PATH.test(path63), "isNotRelative");
108352
+ var isNotRelative = /* @__PURE__ */ __name((path64) => REGEX_TEST_INVALID_PATH.test(path64), "isNotRelative");
108353
108353
  checkPath.isNotRelative = isNotRelative;
108354
108354
  checkPath.convert = (p2) => p2;
108355
108355
  var Ignore = class {
@@ -108408,7 +108408,7 @@ var require_ignore = __commonJS({
108408
108408
  // setting `checkUnignored` to `false` could reduce additional
108409
108409
  // path matching.
108410
108410
  // @returns {TestResult} true if a file is ignored
108411
- _testOne(path63, checkUnignored) {
108411
+ _testOne(path64, checkUnignored) {
108412
108412
  let ignored = false;
108413
108413
  let unignored = false;
108414
108414
  this._rules.forEach((rule) => {
@@ -108416,7 +108416,7 @@ var require_ignore = __commonJS({
108416
108416
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
108417
108417
  return;
108418
108418
  }
108419
- const matched = rule.regex.test(path63);
108419
+ const matched = rule.regex.test(path64);
108420
108420
  if (matched) {
108421
108421
  ignored = !negative;
108422
108422
  unignored = negative;
@@ -108429,24 +108429,24 @@ var require_ignore = __commonJS({
108429
108429
  }
108430
108430
  // @returns {TestResult}
108431
108431
  _test(originalPath, cache2, checkUnignored, slices) {
108432
- const path63 = originalPath && checkPath.convert(originalPath);
108432
+ const path64 = originalPath && checkPath.convert(originalPath);
108433
108433
  checkPath(
108434
- path63,
108434
+ path64,
108435
108435
  originalPath,
108436
108436
  this._allowRelativePaths ? RETURN_FALSE : throwError
108437
108437
  );
108438
- return this._t(path63, cache2, checkUnignored, slices);
108438
+ return this._t(path64, cache2, checkUnignored, slices);
108439
108439
  }
108440
- _t(path63, cache2, checkUnignored, slices) {
108441
- if (path63 in cache2) {
108442
- return cache2[path63];
108440
+ _t(path64, cache2, checkUnignored, slices) {
108441
+ if (path64 in cache2) {
108442
+ return cache2[path64];
108443
108443
  }
108444
108444
  if (!slices) {
108445
- slices = path63.split(SLASH);
108445
+ slices = path64.split(SLASH);
108446
108446
  }
108447
108447
  slices.pop();
108448
108448
  if (!slices.length) {
108449
- return cache2[path63] = this._testOne(path63, checkUnignored);
108449
+ return cache2[path64] = this._testOne(path64, checkUnignored);
108450
108450
  }
108451
108451
  const parent = this._t(
108452
108452
  slices.join(SLASH) + SLASH,
@@ -108454,25 +108454,25 @@ var require_ignore = __commonJS({
108454
108454
  checkUnignored,
108455
108455
  slices
108456
108456
  );
108457
- return cache2[path63] = parent.ignored ? parent : this._testOne(path63, checkUnignored);
108457
+ return cache2[path64] = parent.ignored ? parent : this._testOne(path64, checkUnignored);
108458
108458
  }
108459
- ignores(path63) {
108460
- return this._test(path63, this._ignoreCache, false).ignored;
108459
+ ignores(path64) {
108460
+ return this._test(path64, this._ignoreCache, false).ignored;
108461
108461
  }
108462
108462
  createFilter() {
108463
- return (path63) => !this.ignores(path63);
108463
+ return (path64) => !this.ignores(path64);
108464
108464
  }
108465
108465
  filter(paths) {
108466
108466
  return makeArray(paths).filter(this.createFilter());
108467
108467
  }
108468
108468
  // @returns {TestResult}
108469
- test(path63) {
108470
- return this._test(path63, this._testCache, true);
108469
+ test(path64) {
108470
+ return this._test(path64, this._testCache, true);
108471
108471
  }
108472
108472
  };
108473
108473
  __name(Ignore, "Ignore");
108474
108474
  var factory = /* @__PURE__ */ __name((options29) => new Ignore(options29), "factory");
108475
- var isPathValid = /* @__PURE__ */ __name((path63) => checkPath(path63 && checkPath.convert(path63), path63, RETURN_FALSE), "isPathValid");
108475
+ var isPathValid = /* @__PURE__ */ __name((path64) => checkPath(path64 && checkPath.convert(path64), path64, RETURN_FALSE), "isPathValid");
108476
108476
  factory.isPathValid = isPathValid;
108477
108477
  factory.default = factory;
108478
108478
  module3.exports = factory;
@@ -108483,7 +108483,7 @@ var require_ignore = __commonJS({
108483
108483
  const makePosix = /* @__PURE__ */ __name((str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"), "makePosix");
108484
108484
  checkPath.convert = makePosix;
108485
108485
  const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
108486
- checkPath.isNotRelative = (path63) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path63) || isNotRelative(path63);
108486
+ checkPath.isNotRelative = (path64) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path64) || isNotRelative(path64);
108487
108487
  }
108488
108488
  }
108489
108489
  });
@@ -110392,8 +110392,8 @@ var require_minimatch = __commonJS({
110392
110392
  return new Minimatch2(pattern, options29).match(p2);
110393
110393
  };
110394
110394
  module3.exports = minimatch;
110395
- var path63 = require_path();
110396
- minimatch.sep = path63.sep;
110395
+ var path64 = require_path();
110396
+ minimatch.sep = path64.sep;
110397
110397
  var GLOBSTAR = Symbol("globstar **");
110398
110398
  minimatch.GLOBSTAR = GLOBSTAR;
110399
110399
  var expand = require_brace_expansion();
@@ -110890,8 +110890,8 @@ var require_minimatch = __commonJS({
110890
110890
  if (f === "/" && partial)
110891
110891
  return true;
110892
110892
  const options29 = this.options;
110893
- if (path63.sep !== "/") {
110894
- f = f.split(path63.sep).join("/");
110893
+ if (path64.sep !== "/") {
110894
+ f = f.split(path64.sep).join("/");
110895
110895
  }
110896
110896
  f = f.split(slashSplit);
110897
110897
  this.debug(this.pattern, "split", f);
@@ -114251,7 +114251,7 @@ var require_websocket3 = __commonJS({
114251
114251
  var http4 = require("http");
114252
114252
  var net3 = require("net");
114253
114253
  var tls = require("tls");
114254
- var { randomBytes, createHash: createHash2 } = require("crypto");
114254
+ var { randomBytes, createHash: createHash3 } = require("crypto");
114255
114255
  var { Readable: Readable2 } = require("stream");
114256
114256
  var { URL: URL7 } = require("url");
114257
114257
  var PerMessageDeflate = require_permessage_deflate2();
@@ -114913,7 +114913,7 @@ var require_websocket3 = __commonJS({
114913
114913
  abortHandshake(websocket, socket, "Invalid Upgrade header");
114914
114914
  return;
114915
114915
  }
114916
- const digest = createHash2("sha1").update(key + GUID).digest("base64");
114916
+ const digest = createHash3("sha1").update(key + GUID).digest("base64");
114917
114917
  if (res.headers["sec-websocket-accept"] !== digest) {
114918
114918
  abortHandshake(websocket, socket, "Invalid Sec-WebSocket-Accept header");
114919
114919
  return;
@@ -115187,7 +115187,7 @@ var require_websocket_server2 = __commonJS({
115187
115187
  var https3 = require("https");
115188
115188
  var net3 = require("net");
115189
115189
  var tls = require("tls");
115190
- var { createHash: createHash2 } = require("crypto");
115190
+ var { createHash: createHash3 } = require("crypto");
115191
115191
  var extension = require_extension2();
115192
115192
  var PerMessageDeflate = require_permessage_deflate2();
115193
115193
  var subprotocol = require_subprotocol();
@@ -115484,7 +115484,7 @@ var require_websocket_server2 = __commonJS({
115484
115484
  }
115485
115485
  if (this._state > RUNNING)
115486
115486
  return abortHandshake(socket, 503);
115487
- const digest = createHash2("sha1").update(key + GUID).digest("base64");
115487
+ const digest = createHash3("sha1").update(key + GUID).digest("base64");
115488
115488
  const headers = [
115489
115489
  "HTTP/1.1 101 Switching Protocols",
115490
115490
  "Upgrade: websocket",
@@ -117176,11 +117176,11 @@ var parser = new YargsParser({
117176
117176
  resolve: import_path.resolve,
117177
117177
  // TODO: figure out a way to combine ESM and CJS coverage, such that
117178
117178
  // we can exercise all the lines below:
117179
- require: (path63) => {
117179
+ require: (path64) => {
117180
117180
  if (typeof require !== "undefined") {
117181
- return require(path63);
117182
- } else if (path63.match(/\.json$/)) {
117183
- return JSON.parse((0, import_fs.readFileSync)(path63, "utf8"));
117181
+ return require(path64);
117182
+ } else if (path64.match(/\.json$/)) {
117183
+ return JSON.parse((0, import_fs.readFileSync)(path64, "utf8"));
117184
117184
  } else {
117185
117185
  throw Error("only .json config files are supported in ESM");
117186
117186
  }
@@ -118532,7 +118532,7 @@ init_import_meta_url();
118532
118532
  init_import_meta_url();
118533
118533
 
118534
118534
  // package.json
118535
- var version = "3.44.0";
118535
+ var version = "3.45.0";
118536
118536
  var package_default = {
118537
118537
  name: "wrangler",
118538
118538
  version,
@@ -121706,9 +121706,9 @@ Please add "${field}" to "env.${envName}".`
121706
121706
  return rawEnv[field] ?? defaultValue;
121707
121707
  }
121708
121708
  __name(notInheritable, "notInheritable");
121709
- function unwindPropertyPath(root, path63) {
121709
+ function unwindPropertyPath(root, path64) {
121710
121710
  let container = root;
121711
- const parts = path63.split(".");
121711
+ const parts = path64.split(".");
121712
121712
  for (let i = 0; i < parts.length - 1; i++) {
121713
121713
  if (!hasProperty(container, parts[i])) {
121714
121714
  return;
@@ -124410,15 +124410,16 @@ var supportedPagesConfigFields = [
124410
124410
  // normalizeAndValidateConfig() sets this value
124411
124411
  "configPath"
124412
124412
  ];
124413
- function validatePagesConfig(config, envNames) {
124413
+ function validatePagesConfig(config, envNames, projectName) {
124414
124414
  if (!config.pages_build_output_dir) {
124415
- throw new FatalError(`Attempting to validate Pages configuration file, but no "pages_build_output_dir" configuration key was found.
124415
+ throw new FatalError(`Attempting to validate Pages configuration file, but "pages_build_output_dir" field was not found.
124416
124416
  "pages_build_output_dir" is required for Pages projects.`);
124417
124417
  }
124418
124418
  const diagnostics = new Diagnostics(
124419
124419
  `Running configuration file validation for Pages:`
124420
124420
  );
124421
124421
  validateMainField(config, diagnostics);
124422
+ validateProjectName(projectName, diagnostics);
124422
124423
  validatePagesEnvironmentNames(envNames, diagnostics);
124423
124424
  validateUnsupportedFields(config, diagnostics);
124424
124425
  return diagnostics;
@@ -124433,6 +124434,15 @@ Please use "main" if you are deploying a Worker, or "pages_build_output_dir" if
124433
124434
  }
124434
124435
  }
124435
124436
  __name(validateMainField, "validateMainField");
124437
+ function validateProjectName(name, diagnostics) {
124438
+ if (name === void 0 || name.trim() === "") {
124439
+ diagnostics.errors.push(
124440
+ `Missing top-level field "name" in configuration file.
124441
+ Pages requires the name of your project to be configured at the top-level of your \`wrangler.toml\` file. This is because, in Pages, environments target the same project.`
124442
+ );
124443
+ }
124444
+ }
124445
+ __name(validateProjectName, "validateProjectName");
124436
124446
  function validatePagesEnvironmentNames(envNames, diagnostics) {
124437
124447
  if (!envNames?.length)
124438
124448
  return;
@@ -124484,10 +124494,22 @@ function readConfig(configPath, args, requirePagesConfig) {
124484
124494
  if (!configPath) {
124485
124495
  configPath = findWranglerToml(process.cwd(), args.experimentalJsonConfig);
124486
124496
  }
124487
- if (configPath?.endsWith("toml")) {
124488
- rawConfig = parseTOML(readFileSync5(configPath), configPath);
124489
- } else if (configPath?.endsWith("json")) {
124490
- rawConfig = parseJSONC(readFileSync5(configPath), configPath);
124497
+ try {
124498
+ if (configPath?.endsWith("toml")) {
124499
+ rawConfig = parseTOML(readFileSync5(configPath), configPath);
124500
+ } else if (configPath?.endsWith("json")) {
124501
+ rawConfig = parseJSONC(readFileSync5(configPath), configPath);
124502
+ }
124503
+ } catch (e3) {
124504
+ if (requirePagesConfig) {
124505
+ logger.error(e3);
124506
+ throw new FatalError(
124507
+ "Your wrangler.toml is not a valid Pages config file",
124508
+ EXIT_CODE_INVALID_PAGES_CONFIG
124509
+ );
124510
+ } else {
124511
+ throw e3;
124512
+ }
124491
124513
  }
124492
124514
  const isPagesConfigFile = isPagesConfig(rawConfig);
124493
124515
  if (!isPagesConfigFile && requirePagesConfig) {
@@ -124517,7 +124539,8 @@ function readConfig(configPath, args, requirePagesConfig) {
124517
124539
  `Configuration file belonging to \u26A1\uFE0F Pages \u26A1\uFE0F project detected.`
124518
124540
  );
124519
124541
  const envNames = rawConfig.env ? Object.keys(rawConfig.env) : [];
124520
- const pagesDiagnostics = validatePagesConfig(config, envNames);
124542
+ const projectName = rawConfig?.name;
124543
+ const pagesDiagnostics = validatePagesConfig(config, envNames, projectName);
124521
124544
  if (pagesDiagnostics.hasWarnings()) {
124522
124545
  logger.warn(pagesDiagnostics.renderWarnings());
124523
124546
  }
@@ -124860,20 +124883,20 @@ function withConfig(handler30) {
124860
124883
  };
124861
124884
  }
124862
124885
  __name(withConfig, "withConfig");
124863
- function tryLoadDotEnv(path63) {
124886
+ function tryLoadDotEnv(path64) {
124864
124887
  try {
124865
- const parsed = import_dotenv.default.parse(import_node_fs4.default.readFileSync(path63));
124866
- return { path: path63, parsed };
124888
+ const parsed = import_dotenv.default.parse(import_node_fs4.default.readFileSync(path64));
124889
+ return { path: path64, parsed };
124867
124890
  } catch (e3) {
124868
- logger.debug(`Failed to load .env file "${path63}":`, e3);
124891
+ logger.debug(`Failed to load .env file "${path64}":`, e3);
124869
124892
  }
124870
124893
  }
124871
124894
  __name(tryLoadDotEnv, "tryLoadDotEnv");
124872
- function loadDotEnv(path63, env5) {
124895
+ function loadDotEnv(path64, env5) {
124873
124896
  if (env5 === void 0) {
124874
- return tryLoadDotEnv(path63);
124897
+ return tryLoadDotEnv(path64);
124875
124898
  } else {
124876
- return tryLoadDotEnv(`${path63}.${env5}`) ?? tryLoadDotEnv(path63);
124899
+ return tryLoadDotEnv(`${path64}.${env5}`) ?? tryLoadDotEnv(path64);
124877
124900
  }
124878
124901
  }
124879
124902
  __name(loadDotEnv, "loadDotEnv");
@@ -125206,21 +125229,21 @@ var nodejsCompatPlugin = /* @__PURE__ */ __name((silenceWarnings) => ({
125206
125229
  });
125207
125230
  pluginBuild.onResolve(
125208
125231
  { filter: /node:.*/ },
125209
- async ({ path: path63, kind, resolveDir, ...opts }) => {
125210
- const specifier = `${path63}:${kind}:${resolveDir}:${opts.importer}`;
125232
+ async ({ path: path64, kind, resolveDir, ...opts }) => {
125233
+ const specifier = `${path64}:${kind}:${resolveDir}:${opts.importer}`;
125211
125234
  if (seen.has(specifier)) {
125212
125235
  return;
125213
125236
  }
125214
125237
  seen.add(specifier);
125215
- const result = await pluginBuild.resolve(path63, {
125238
+ const result = await pluginBuild.resolve(path64, {
125216
125239
  kind,
125217
125240
  resolveDir,
125218
125241
  importer: opts.importer
125219
125242
  });
125220
125243
  if (result.errors.length > 0) {
125221
- let pathWarnedPackaged = warnedPackaged.get(path63);
125244
+ let pathWarnedPackaged = warnedPackaged.get(path64);
125222
125245
  if (pathWarnedPackaged === void 0) {
125223
- warnedPackaged.set(path63, pathWarnedPackaged = []);
125246
+ warnedPackaged.set(path64, pathWarnedPackaged = []);
125224
125247
  }
125225
125248
  pathWarnedPackaged.push(opts.importer);
125226
125249
  return { external: true };
@@ -125230,9 +125253,9 @@ var nodejsCompatPlugin = /* @__PURE__ */ __name((silenceWarnings) => ({
125230
125253
  );
125231
125254
  pluginBuild.onEnd(() => {
125232
125255
  if (!silenceWarnings)
125233
- warnedPackaged.forEach((importers, path63) => {
125256
+ warnedPackaged.forEach((importers, path64) => {
125234
125257
  logger.warn(
125235
- `The package "${path63}" wasn't found on the file system but is built into node.
125258
+ `The package "${path64}" wasn't found on the file system but is built into node.
125236
125259
  Your Worker may throw errors at runtime unless you enable the "nodejs_compat" compatibility flag. Refer to https://developers.cloudflare.com/workers/runtime-apis/nodejs/ for more details. Imported from:
125237
125260
  ${importers.map(
125238
125261
  (i) => ` - ${import_chalk3.default.blue(
@@ -126222,9 +126245,9 @@ function npmRunPath(options29 = {}) {
126222
126245
  __name(npmRunPath, "npmRunPath");
126223
126246
  function npmRunPathEnv({ env: env5 = import_node_process2.default.env, ...options29 } = {}) {
126224
126247
  env5 = { ...env5 };
126225
- const path63 = pathKey({ env: env5 });
126226
- options29.path = env5[path63];
126227
- env5[path63] = npmRunPath(options29);
126248
+ const path64 = pathKey({ env: env5 });
126249
+ options29.path = env5[path64];
126250
+ env5[path64] = npmRunPath(options29);
126228
126251
  return env5;
126229
126252
  }
126230
126253
  __name(npmRunPathEnv, "npmRunPathEnv");
@@ -127358,7 +127381,7 @@ __name(generateAddScriptNameExamples, "generateAddScriptNameExamples");
127358
127381
  // src/dev/dev.tsx
127359
127382
  init_import_meta_url();
127360
127383
  var import_node_child_process6 = require("node:child_process");
127361
- var path57 = __toESM(require("node:path"));
127384
+ var path58 = __toESM(require("node:path"));
127362
127385
  var util2 = __toESM(require("node:util"));
127363
127386
  var import_chokidar4 = require("chokidar");
127364
127387
 
@@ -127960,8 +127983,8 @@ function getSourceMappingPrepareStackTrace(retrieveSourceMap) {
127960
127983
  // Make sure we're using fresh copies of files each time we source map
127961
127984
  emptyCacheBetweenOperations: true,
127962
127985
  // Allow retriever to be overridden at prepare stack trace time
127963
- retrieveSourceMap(path63) {
127964
- return retrieveSourceMapOverride?.(path63) ?? null;
127986
+ retrieveSourceMap(path64) {
127987
+ return retrieveSourceMapOverride?.(path64) ?? null;
127965
127988
  }
127966
127989
  });
127967
127990
  sourceMappingPrepareStackTrace = Error.prepareStackTrace;
@@ -128693,6 +128716,10 @@ function hyperdriveEntry(hyperdrive2) {
128693
128716
  return [hyperdrive2.binding, hyperdrive2.localConnectionString ?? ""];
128694
128717
  }
128695
128718
  __name(hyperdriveEntry, "hyperdriveEntry");
128719
+ function ratelimitEntry(ratelimit) {
128720
+ return [ratelimit.name, ratelimit];
128721
+ }
128722
+ __name(ratelimitEntry, "ratelimitEntry");
128696
128723
  function queueConsumerEntry(consumer) {
128697
128724
  const options29 = {
128698
128725
  maxBatchSize: consumer.max_batch_size,
@@ -128829,6 +128856,9 @@ function buildMiniflareBindingOptions(config) {
128829
128856
  ];
128830
128857
  })
128831
128858
  ]),
128859
+ ratelimits: Object.fromEntries(
128860
+ bindings.unsafe?.bindings?.filter((b2) => b2.type == "ratelimit").map(ratelimitEntry) ?? []
128861
+ ),
128832
128862
  serviceBindings: config.serviceBindings,
128833
128863
  wrappedBindings
128834
128864
  // TODO: check multi worker service bindings also supported
@@ -129661,7 +129691,7 @@ var import_undici22 = __toESM(require_undici());
129661
129691
  // src/init.ts
129662
129692
  init_import_meta_url();
129663
129693
  var fs24 = __toESM(require("node:fs"));
129664
- var import_promises19 = require("node:fs/promises");
129694
+ var import_promises20 = require("node:fs/promises");
129665
129695
  var import_node_path49 = __toESM(require("node:path"));
129666
129696
  var import_toml6 = __toESM(require_toml());
129667
129697
 
@@ -135643,13 +135673,13 @@ var getQueryString = /* @__PURE__ */ __name((params) => {
135643
135673
  }, "getQueryString");
135644
135674
  var getUrl = /* @__PURE__ */ __name((config, options29) => {
135645
135675
  const encoder = config.ENCODE_PATH || encodeURI;
135646
- const path63 = options29.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
135676
+ const path64 = options29.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
135647
135677
  if (options29.path?.hasOwnProperty(group)) {
135648
135678
  return encoder(String(options29.path[group]));
135649
135679
  }
135650
135680
  return substring;
135651
135681
  });
135652
- const url4 = `${config.BASE}${path63}`;
135682
+ const url4 = `${config.BASE}${path64}`;
135653
135683
  if (options29.query) {
135654
135684
  return `${url4}${getQueryString(options29.query)}`;
135655
135685
  }
@@ -136536,6 +136566,7 @@ function renderDeploymentConfiguration(action, {
136536
136566
  vcpu,
136537
136567
  memory,
136538
136568
  environmentVariables,
136569
+ labels,
136539
136570
  env: env5,
136540
136571
  network
136541
136572
  }) {
@@ -136548,12 +136579,17 @@ function renderDeploymentConfiguration(action, {
136548
136579
  environmentVariablesText = `
136549
136580
  No environment variables added! You can set some under [${env5 ? "env." + env5 + "." : ""}vars] and via command line`;
136550
136581
  }
136582
+ let labelsText = "[]";
136583
+ if (labels !== void 0 && labels.length !== 0) {
136584
+ labelsText = "\n" + labels.map((ev) => "- " + dim(ev.name + ":" + ev.value)).join("\n").trim();
136585
+ }
136551
136586
  const containerInformation = [
136552
136587
  ["Image", image],
136553
136588
  ["Location", idToLocationName(location)],
136554
136589
  ["VCPU", `${vcpu}`],
136555
136590
  ["Memory", memory],
136556
136591
  ["Environment variables", environmentVariablesText],
136592
+ ["Labels", labelsText],
136557
136593
  ...network === void 0 ? [] : [
136558
136594
  ["Include IPv4", network.assign_ipv4 === "predefined" ? "yes" : "no"]
136559
136595
  ]
@@ -136687,6 +136723,82 @@ async function promptForEnvironmentVariables(environmentVariables, initiallySele
136687
136723
  return [];
136688
136724
  }
136689
136725
  __name(promptForEnvironmentVariables, "promptForEnvironmentVariables");
136726
+ function sortLabels(labels) {
136727
+ labels.sort((a, b2) => a.name.localeCompare(b2.name));
136728
+ }
136729
+ __name(sortLabels, "sortLabels");
136730
+ function collectLabels(labelArgs) {
136731
+ const labelMap = /* @__PURE__ */ new Map();
136732
+ if (labelArgs !== void 0) {
136733
+ labelArgs.forEach((v2) => {
136734
+ const [name, ...value] = v2.split(":");
136735
+ labelMap.set(name, value.join(":"));
136736
+ });
136737
+ }
136738
+ if (labelMap.size === 0) {
136739
+ return void 0;
136740
+ }
136741
+ const labels = Array.from(labelMap).map(([name, value]) => ({
136742
+ name,
136743
+ value
136744
+ }));
136745
+ sortLabels(labels);
136746
+ return labels;
136747
+ }
136748
+ __name(collectLabels, "collectLabels");
136749
+ async function promptForLabels(labels, initiallySelected, allowSkipping) {
136750
+ if (labels === void 0 || labels.length == 0) {
136751
+ return void 0;
136752
+ }
136753
+ let options29 = [
136754
+ { label: "Use all of them", value: "all" },
136755
+ { label: "Use some", value: "select" },
136756
+ { label: "Do not use any", value: "none" }
136757
+ ];
136758
+ if (allowSkipping) {
136759
+ options29 = [{ label: "Do not modify", value: "skip" }].concat(options29);
136760
+ }
136761
+ const action = await inputPrompt({
136762
+ question: "You have labels defined, what do you want to do for this deployment?",
136763
+ label: "",
136764
+ defaultValue: false,
136765
+ helpText: "",
136766
+ type: "select",
136767
+ options: options29
136768
+ });
136769
+ if (action === "skip") {
136770
+ return void 0;
136771
+ }
136772
+ if (action === "all") {
136773
+ return labels;
136774
+ }
136775
+ if (action === "select") {
136776
+ const selectedNames = await inputPrompt({
136777
+ question: "Select the labels you want to use",
136778
+ label: "",
136779
+ defaultValue: initiallySelected,
136780
+ helpText: "Use the 'space' key to select. Submit with 'enter'",
136781
+ type: "multiselect",
136782
+ options: labels.map((label) => ({
136783
+ label: label.name,
136784
+ value: label.name
136785
+ })),
136786
+ validate: (values) => {
136787
+ if (!Array.isArray(values))
136788
+ return "unknown error";
136789
+ }
136790
+ });
136791
+ const selectedNamesSet = new Set(selectedNames);
136792
+ const selectedLabels = [];
136793
+ for (const ev of labels) {
136794
+ if (selectedNamesSet.has(ev.name))
136795
+ selectedLabels.push(ev);
136796
+ }
136797
+ return selectedLabels;
136798
+ }
136799
+ return [];
136800
+ }
136801
+ __name(promptForLabels, "promptForLabels");
136690
136802
 
136691
136803
  // src/cloudchamber/create.ts
136692
136804
  init_import_meta_url();
@@ -137076,9 +137188,7 @@ async function getNetworkInput(args) {
137076
137188
  label: "Include IPv4",
137077
137189
  type: "confirm"
137078
137190
  });
137079
- return {
137080
- assign_ipv4: ipv4 ? "predefined" /* PREDEFINED */ : "none" /* NONE */
137081
- };
137191
+ return ipv4 === true ? { assign_ipv4: "predefined" /* PREDEFINED */ } : void 0;
137082
137192
  }
137083
137193
  __name(getNetworkInput, "getNetworkInput");
137084
137194
 
@@ -137225,15 +137335,15 @@ var sshCommand = /* @__PURE__ */ __name((yargs) => {
137225
137335
  }, "sshCommand");
137226
137336
  async function tryToRetrieveAllDefaultSSHKeyPaths() {
137227
137337
  const HOME = (0, import_os3.homedir)();
137228
- const path63 = `${HOME}/.ssh`;
137338
+ const path64 = `${HOME}/.ssh`;
137229
137339
  const paths = [];
137230
137340
  try {
137231
- const dirList = await (0, import_promises5.readdir)(path63);
137341
+ const dirList = await (0, import_promises5.readdir)(path64);
137232
137342
  for (const file of dirList) {
137233
137343
  if (file.endsWith(".pub")) {
137234
- const s = await (0, import_promises5.stat)(`${path63}/${file}`);
137344
+ const s = await (0, import_promises5.stat)(`${path64}/${file}`);
137235
137345
  if (s.isFile()) {
137236
- paths.push(`${path63}/${file}`);
137346
+ paths.push(`${path64}/${file}`);
137237
137347
  }
137238
137348
  }
137239
137349
  }
@@ -137245,8 +137355,8 @@ async function tryToRetrieveAllDefaultSSHKeyPaths() {
137245
137355
  __name(tryToRetrieveAllDefaultSSHKeyPaths, "tryToRetrieveAllDefaultSSHKeyPaths");
137246
137356
  async function tryToRetrieveADefaultPath() {
137247
137357
  const paths = await tryToRetrieveAllDefaultSSHKeyPaths();
137248
- const path63 = paths.pop();
137249
- return path63 ?? "";
137358
+ const path64 = paths.pop();
137359
+ return path64 ?? "";
137250
137360
  }
137251
137361
  __name(tryToRetrieveADefaultPath, "tryToRetrieveADefaultPath");
137252
137362
  function clipPublicSSHKey(value) {
@@ -137406,6 +137516,12 @@ function createCommandOptionalYargs(yargs) {
137406
137516
  demandOption: false,
137407
137517
  describe: "Container environment variables",
137408
137518
  coerce: (arg) => arg.map((a) => a?.toString() ?? "")
137519
+ }).option("label", {
137520
+ requiresArg: true,
137521
+ type: "array",
137522
+ demandOption: false,
137523
+ describe: "Deployment labels",
137524
+ coerce: (arg) => arg.map((a) => a?.toString() ?? "")
137409
137525
  }).option("all-ssh-keys", {
137410
137526
  requiresArg: false,
137411
137527
  type: "boolean",
@@ -137442,21 +137558,25 @@ async function createCommand(args, config) {
137442
137558
  config,
137443
137559
  args.var
137444
137560
  );
137561
+ const labels = collectLabels(args.label);
137445
137562
  if (!interactWithUser(args)) {
137446
137563
  const body = checkEverythingIsSet(args, ["image", "location"]);
137447
137564
  const keysToAdd = args.allSshKeys ? (await pollSSHKeysUntilCondition(() => true)).map((key) => key.id) : [];
137565
+ const network = args.ipv4 === true ? { assign_ipv4: "predefined" /* PREDEFINED */ } : void 0;
137448
137566
  const deployment = await DeploymentsService.createDeploymentV2({
137449
137567
  image: body.image,
137450
137568
  location: body.location,
137451
137569
  ssh_public_key_ids: keysToAdd,
137452
137570
  environment_variables: environmentVariables,
137571
+ labels,
137453
137572
  vcpu: args.vcpu ?? config.cloudchamber.vcpu,
137454
- memory: args.memory ?? config.cloudchamber.memory
137573
+ memory: args.memory ?? config.cloudchamber.memory,
137574
+ network
137455
137575
  });
137456
137576
  console.log(JSON.stringify(deployment, null, 4));
137457
137577
  return;
137458
137578
  }
137459
- await handleCreateCommand(args, config, environmentVariables);
137579
+ await handleCreateCommand(args, config, environmentVariables, labels);
137460
137580
  }
137461
137581
  __name(createCommand, "createCommand");
137462
137582
  async function askWhichSSHKeysDoTheyWantToAdd(args, key) {
@@ -137524,7 +137644,7 @@ async function askWhichSSHKeysDoTheyWantToAdd(args, key) {
137524
137644
  return [];
137525
137645
  }
137526
137646
  __name(askWhichSSHKeysDoTheyWantToAdd, "askWhichSSHKeysDoTheyWantToAdd");
137527
- async function handleCreateCommand(args, config, environmentVariables) {
137647
+ async function handleCreateCommand(args, config, environmentVariables, labels) {
137528
137648
  startSection("Create a Cloudflare container", "Step 1 of 2");
137529
137649
  const sshKeyID = await sshPrompts(args);
137530
137650
  const image = await processArgument({ image: args.image }, "image", {
@@ -137551,6 +137671,7 @@ async function handleCreateCommand(args, config, environmentVariables) {
137551
137671
  [],
137552
137672
  false
137553
137673
  );
137674
+ const selectedLabels = await promptForLabels(labels, [], false);
137554
137675
  const account = await loadAccount();
137555
137676
  renderDeploymentConfiguration("create", {
137556
137677
  image,
@@ -137559,6 +137680,7 @@ async function handleCreateCommand(args, config, environmentVariables) {
137559
137680
  vcpu: args.vcpu ?? config.cloudchamber.vcpu ?? account.defaults.vcpus,
137560
137681
  memory: args.memory ?? config.cloudchamber.memory ?? account.defaults.memory,
137561
137682
  environmentVariables: selectedEnvironmentVariables,
137683
+ labels: selectedLabels,
137562
137684
  env: args.env
137563
137685
  });
137564
137686
  const yes = await inputPrompt({
@@ -137578,6 +137700,7 @@ async function handleCreateCommand(args, config, environmentVariables) {
137578
137700
  location,
137579
137701
  ssh_public_key_ids: keys,
137580
137702
  environment_variables: environmentVariables,
137703
+ labels,
137581
137704
  vcpu: args.vcpu ?? config.cloudchamber.vcpu,
137582
137705
  memory: args.memory ?? config.cloudchamber.memory,
137583
137706
  network
@@ -137778,7 +137901,7 @@ async function deleteCommand(deleteArgs, config) {
137778
137901
  "there needs to be a deploymentId when you can't interact with the wrangler cli"
137779
137902
  );
137780
137903
  }
137781
- const deployment = await DeploymentsService.deleteDeployment(
137904
+ const deployment = await DeploymentsService.deleteDeploymentV2(
137782
137905
  deleteArgs.deploymentId
137783
137906
  );
137784
137907
  console.log(JSON.stringify(deployment), null, 4);
@@ -137968,6 +138091,12 @@ function listDeploymentsYargs(args) {
137968
138091
  type: "string",
137969
138092
  demandOption: false,
137970
138093
  describe: "Filter deployments by ipv4 address"
138094
+ }).option("label", {
138095
+ requiresArg: true,
138096
+ type: "array",
138097
+ demandOption: false,
138098
+ describe: "Filter deployments by labels",
138099
+ coerce: (arg) => arg.map((a) => a?.toString() ?? "")
137971
138100
  }).positional("deploymentIdPrefix", {
137972
138101
  describe: "Optional deploymentId to filter deployments\nThis means that 'list' will only showcase deployments that contain this ID prefix",
137973
138102
  type: "string"
@@ -137982,7 +138111,8 @@ async function listCommand(deploymentArgs, config) {
137982
138111
  deploymentArgs.location,
137983
138112
  deploymentArgs.image,
137984
138113
  deploymentArgs.state,
137985
- deploymentArgs.ipv4
138114
+ deploymentArgs.ipv4,
138115
+ deploymentArgs.label
137986
138116
  )).filter((deployment) => deployment.id.startsWith(prefix));
137987
138117
  if (deployments2.length === 1) {
137988
138118
  const placements = await PlacementsService.listPlacements(
@@ -138088,6 +138218,12 @@ function modifyCommandOptionalYargs(yargs) {
138088
138218
  demandOption: false,
138089
138219
  describe: "Container environment variables",
138090
138220
  coerce: (arg) => arg.map((a) => a?.toString() ?? "")
138221
+ }).option("label", {
138222
+ requiresArg: true,
138223
+ type: "array",
138224
+ demandOption: false,
138225
+ describe: "Deployment labels",
138226
+ coerce: (arg) => arg.map((a) => a?.toString() ?? "")
138091
138227
  }).option("ssh-public-key-id", {
138092
138228
  requiresArg: true,
138093
138229
  type: "string",
@@ -138130,12 +138266,14 @@ async function modifyCommand(modifyArgs, config) {
138130
138266
  config,
138131
138267
  modifyArgs.var
138132
138268
  );
138133
- const deployment = await DeploymentsService.modifyDeployment(
138269
+ const labels = collectLabels(modifyArgs.label);
138270
+ const deployment = await DeploymentsService.modifyDeploymentV2(
138134
138271
  modifyArgs.deploymentId,
138135
138272
  {
138136
138273
  image: modifyArgs.image,
138137
138274
  location: modifyArgs.location,
138138
138275
  environment_variables: environmentVariables,
138276
+ labels,
138139
138277
  ssh_public_key_ids: modifyArgs.sshPublicKeyId,
138140
138278
  vcpu: modifyArgs.vcpu ?? config.cloudchamber.vcpu,
138141
138279
  memory: modifyArgs.memory ?? config.cloudchamber.memory
@@ -138222,14 +138360,22 @@ async function handleModifyCommand(args, config) {
138222
138360
  (deployment.environment_variables ?? []).map((v2) => v2.name),
138223
138361
  true
138224
138362
  );
138363
+ const labels = collectLabels(args.label);
138364
+ const selectedLabels = await promptForLabels(
138365
+ labels,
138366
+ (deployment.labels ?? []).map((v2) => v2.name),
138367
+ true
138368
+ );
138225
138369
  renderDeploymentConfiguration("modify", {
138226
138370
  image: image ?? deployment.image,
138227
138371
  location: location ?? deployment.location.name,
138228
138372
  vcpu: args.vcpu ?? config.cloudchamber.vcpu ?? deployment.vcpu,
138229
138373
  memory: args.memory ?? config.cloudchamber.memory ?? deployment.memory,
138230
138374
  env: args.env,
138231
- environmentVariables: selectedEnvironmentVariables !== void 0 ? selectedEnvironmentVariables : deployment.environment_variables
138375
+ environmentVariables: selectedEnvironmentVariables !== void 0 ? selectedEnvironmentVariables : deployment.environment_variables,
138232
138376
  // show the existing environment variables if any
138377
+ labels: selectedLabels !== void 0 ? selectedLabels : deployment.labels
138378
+ // show the existing labels if any
138233
138379
  });
138234
138380
  const yesOrNo = await inputPrompt({
138235
138381
  question: "Want to go ahead and modify the deployment?",
@@ -145370,11 +145516,6 @@ function options12(yargs) {
145370
145516
  swr: {
145371
145517
  type: "number",
145372
145518
  describe: "Indicates the number of seconds cache may serve the response after it becomes stale, cannot be set when caching is disabled"
145373
- },
145374
- "private-host": {
145375
- type: "boolean",
145376
- describe: "Whether the provided host is part of your Cloudflare Zero Trust private network",
145377
- default: false
145378
145519
  }
145379
145520
  }).epilogue(hyperdriveBetaWarning);
145380
145521
  }
@@ -145421,13 +145562,12 @@ async function handler13(args) {
145421
145562
  scheme: url4.protocol.replace(":", ""),
145422
145563
  database: decodeURIComponent(url4.pathname.replace("/", "")),
145423
145564
  user: decodeURIComponent(url4.username),
145424
- password: decodeURIComponent(url4.password),
145425
- private_host: args.privateHost ?? false
145565
+ password: decodeURIComponent(url4.password)
145426
145566
  },
145427
145567
  caching: {
145428
145568
  disabled: args.cachingDisabled,
145429
- maxAge: args.maxAge,
145430
- staleWhileRevalidate: args.swr
145569
+ max_age: args.maxAge,
145570
+ stale_while_revalidate: args.swr
145431
145571
  }
145432
145572
  });
145433
145573
  logger.log(
@@ -145543,11 +145683,6 @@ function options16(yargs) {
145543
145683
  swr: {
145544
145684
  type: "number",
145545
145685
  describe: "Indicates the number of seconds cache may serve the response after it becomes stale, cannot be set when caching is disabled"
145546
- },
145547
- "private-host": {
145548
- type: "boolean",
145549
- describe: "Whether the provided host is part of your Cloudflare Zero Trust private network",
145550
- default: false
145551
145686
  }
145552
145687
  }).epilogue(hyperdriveBetaWarning);
145553
145688
  }
@@ -145592,14 +145727,13 @@ async function handler17(args) {
145592
145727
  port: args.originPort,
145593
145728
  database: args.database,
145594
145729
  user: args.originUser,
145595
- password: args.originPassword,
145596
- private_host: args.privateHost
145730
+ password: args.originPassword
145597
145731
  };
145598
145732
  }
145599
145733
  database.caching = {
145600
145734
  disabled: args.cachingDisabled,
145601
- maxAge: args.maxAge,
145602
- staleWhileRevalidate: args.swr
145735
+ max_age: args.maxAge,
145736
+ stale_while_revalidate: args.swr
145603
145737
  };
145604
145738
  const updated = await patchConfig(config, args.id, database);
145605
145739
  logger.log(
@@ -146948,8 +147082,8 @@ function buildPluginFromFunctions({
146948
147082
  ]
146949
147083
  };
146950
147084
  }
146951
- const path63 = `assets:./${(0, import_node_path34.relative)(outdir, directory)}`;
146952
- return { path: path63, external: true, namespace: "assets" };
147085
+ const path64 = `assets:./${(0, import_node_path34.relative)(outdir, directory)}`;
147086
+ return { path: path64, external: true, namespace: "assets" };
146953
147087
  });
146954
147088
  }
146955
147089
  },
@@ -147909,8 +148043,10 @@ var import_react13 = __toESM(require_react());
147909
148043
 
147910
148044
  // src/api/pages/deploy.tsx
147911
148045
  init_import_meta_url();
148046
+ var import_node_crypto7 = require("node:crypto");
147912
148047
  var import_node_fs28 = require("node:fs");
147913
- var import_node_path43 = require("node:path");
148048
+ var import_promises16 = require("node:fs/promises");
148049
+ var import_node_path43 = __toESM(require("node:path"));
147914
148050
  var import_node_process11 = require("node:process");
147915
148051
  var import_undici15 = __toESM(require_undici());
147916
148052
 
@@ -148773,7 +148909,8 @@ async function deploy2({
148773
148909
  commitHash,
148774
148910
  commitDirty,
148775
148911
  functionsDirectory: customFunctionsDirectory,
148776
- bundle
148912
+ bundle,
148913
+ args
148777
148914
  }) {
148778
148915
  let _headers, _redirects, _routesGenerated, _routesCustom, _workerJSIsDirectory = false, _workerJS;
148779
148916
  bundle = bundle ?? true;
@@ -148804,11 +148941,24 @@ async function deploy2({
148804
148941
  if (branch) {
148805
148942
  isProduction = project.production_branch === branch;
148806
148943
  }
148807
- const deploymentConfig = project.deployment_configs[isProduction ? "production" : "preview"];
148808
- const nodejsCompat = deploymentConfig.compatibility_flags?.includes("nodejs_compat") ?? false;
148944
+ const env5 = isProduction ? "production" : "preview";
148945
+ const deploymentConfig = project.deployment_configs[env5];
148946
+ let config;
148947
+ try {
148948
+ config = readConfig(
148949
+ void 0,
148950
+ { ...args, experimentalJsonConfig: false, env: env5 },
148951
+ true
148952
+ );
148953
+ } catch (err) {
148954
+ if (!(err instanceof FatalError && err.code === EXIT_CODE_INVALID_PAGES_CONFIG)) {
148955
+ throw err;
148956
+ }
148957
+ }
148958
+ const nodejsCompat = config !== void 0 ? config.compatibility_flags?.includes("nodejs_compat") ?? false : deploymentConfig.compatibility_flags?.includes("nodejs_compat") ?? false;
148809
148959
  const defineNavigatorUserAgent = isNavigatorDefined(
148810
- deploymentConfig.compatibility_date,
148811
- deploymentConfig.compatibility_flags
148960
+ config?.compatibility_date ?? deploymentConfig.compatibility_date,
148961
+ config?.compatibility_flags ?? deploymentConfig.compatibility_flags
148812
148962
  );
148813
148963
  let builtFunctions = void 0;
148814
148964
  let workerBundle = void 0;
@@ -148885,6 +149035,15 @@ async function deploy2({
148885
149035
  )
148886
149036
  );
148887
149037
  }
149038
+ if (config !== void 0 && config.configPath !== void 0 && config.pages_build_output_dir) {
149039
+ const configHash = (0, import_node_crypto7.createHash)("sha256").update(await (0, import_promises16.readFile)(config.configPath)).digest("hex");
149040
+ const outputDir = import_node_path43.default.relative(
149041
+ process.cwd(),
149042
+ config.pages_build_output_dir
149043
+ );
149044
+ formData.append("wrangler_config_hash", configHash);
149045
+ formData.append("pages_build_output_dir", outputDir);
149046
+ }
148888
149047
  if (_workerJSIsDirectory) {
148889
149048
  workerBundle = await traverseAndBuildWorkerJSDirectory({
148890
149049
  workerJSDirectory: _workerPath,
@@ -148925,7 +149084,7 @@ async function deploy2({
148925
149084
  if (_workerJS || _workerJSIsDirectory) {
148926
149085
  const workerBundleContents = await createUploadWorkerBundleContents(
148927
149086
  workerBundle,
148928
- void 0
149087
+ config
148929
149088
  );
148930
149089
  formData.append(
148931
149090
  "_worker.bundle",
@@ -148951,7 +149110,7 @@ async function deploy2({
148951
149110
  if (builtFunctions && !_workerJS && !_workerJSIsDirectory) {
148952
149111
  const workerBundleContents = await createUploadWorkerBundleContents(
148953
149112
  workerBundle,
148954
- void 0
149113
+ config
148955
149114
  );
148956
149115
  formData.append(
148957
149116
  "_worker.bundle",
@@ -149371,65 +149530,96 @@ function Options12(yargs) {
149371
149530
  });
149372
149531
  }
149373
149532
  __name(Options12, "Options");
149374
- var Handler12 = /* @__PURE__ */ __name(async ({
149375
- _: _3,
149376
- directory,
149377
- projectName,
149378
- branch,
149379
- commitHash,
149380
- commitMessage,
149381
- commitDirty,
149382
- skipCaching,
149383
- bundle,
149384
- noBundle,
149385
- config: wranglerConfig
149386
- }) => {
149387
- if (_3[1] === "publish") {
149533
+ var Handler12 = /* @__PURE__ */ __name(async (args) => {
149534
+ let { branch, commitHash, commitMessage, commitDirty } = args;
149535
+ if (args._[1] === "publish") {
149388
149536
  logger.warn(
149389
149537
  "`wrangler pages publish` is deprecated and will be removed in the next major version.\nPlease use `wrangler pages deploy` instead, which accepts exactly the same arguments."
149390
149538
  );
149391
149539
  }
149392
- if (wranglerConfig) {
149393
- throw new FatalError("Pages does not support wrangler.toml", 1);
149540
+ if (args.config) {
149541
+ throw new FatalError(
149542
+ "Pages does not support custom paths for the `wrangler.toml` configuration file",
149543
+ 1
149544
+ );
149545
+ }
149546
+ let config;
149547
+ const configPath = findWranglerToml(process.cwd(), false);
149548
+ try {
149549
+ config = readConfig(configPath, { ...args, env: void 0 }, true);
149550
+ } catch (err) {
149551
+ if (!(err instanceof FatalError && err.code === EXIT_CODE_INVALID_PAGES_CONFIG)) {
149552
+ throw err;
149553
+ }
149554
+ }
149555
+ if (configPath && config === void 0) {
149556
+ logger.warn(
149557
+ `Pages now has wrangler.toml support.
149558
+ We detected a configuration file at ${configPath} but it is missing the "pages_build_output_dir" field, required by Pages.
149559
+ If you would like to use this configuration file to deploy your project, please use "pages_build_output_dir" to specify the directory of static files to upload.
149560
+ Ignoring configuration file for now, and proceeding with project deploy.`
149561
+ );
149394
149562
  }
149563
+ const directory = args.directory ?? config?.pages_build_output_dir;
149395
149564
  if (!directory) {
149396
- throw new FatalError("Must specify a directory.", 1);
149565
+ throw new FatalError(
149566
+ "Must specify a directory of assets to deploy. Please specify the [<directory>] argument in the `pages deploy` command, or configure `pages_build_output_dir` in your `wrangler.toml` configuration file.",
149567
+ 1
149568
+ );
149569
+ }
149570
+ const configCache = getConfigCache(
149571
+ PAGES_CONFIG_CACHE_FILENAME
149572
+ );
149573
+ const accountId = await requireAuth(configCache);
149574
+ let projectName = args.projectName ?? config?.name ?? configCache.project_name;
149575
+ let isExistingProject = true;
149576
+ if (projectName) {
149577
+ try {
149578
+ await fetchResult(
149579
+ `/accounts/${accountId}/pages/projects/${projectName}`
149580
+ );
149581
+ } catch (err) {
149582
+ if (err.code !== 8000007) {
149583
+ throw err;
149584
+ } else {
149585
+ isExistingProject = false;
149586
+ }
149587
+ }
149397
149588
  }
149398
- const config = getConfigCache(PAGES_CONFIG_CACHE_FILENAME);
149399
- const accountId = await requireAuth(config);
149400
- projectName ??= config.project_name;
149401
149589
  const isInteractive3 = process.stdin.isTTY;
149402
- if (!projectName && isInteractive3) {
149403
- const projects = (await listProjects2({ accountId })).filter(
149404
- (project) => !project.source
149405
- );
149590
+ if ((!projectName || !isExistingProject) && isInteractive3) {
149406
149591
  let existingOrNew = "new";
149407
- if (projects.length > 0) {
149408
- existingOrNew = await new Promise((resolve19) => {
149409
- const { unmount } = (0, import_ink9.render)(
149410
- /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement(import_ink9.Text, null, "No project selected. Would you like to create one or use an existing project?"), /* @__PURE__ */ import_react13.default.createElement(
149411
- import_ink_select_input2.default,
149412
- {
149413
- items: [
149414
- {
149415
- key: "new",
149416
- label: "Create a new project",
149417
- value: "new"
149418
- },
149419
- {
149420
- key: "existing",
149421
- label: "Use an existing project",
149422
- value: "existing"
149423
- }
149424
- ],
149425
- onSelect: async (selected) => {
149426
- resolve19(selected.value);
149427
- unmount();
149428
- }
149429
- }
149430
- ))
149431
- );
149432
- });
149592
+ if (!projectName) {
149593
+ const duProjects = (await listProjects2({ accountId })).filter(
149594
+ (project) => !project.source
149595
+ );
149596
+ if (duProjects.length > 0) {
149597
+ const message = "No project specified. Would you like to create one or use an existing project?";
149598
+ const items = [
149599
+ {
149600
+ key: "new",
149601
+ label: "Create a new project",
149602
+ value: "new"
149603
+ },
149604
+ {
149605
+ key: "existing",
149606
+ label: "Use an existing project",
149607
+ value: "existing"
149608
+ }
149609
+ ];
149610
+ existingOrNew = await promptSelectExistingOrNewProject(message, items);
149611
+ }
149612
+ }
149613
+ if (projectName !== void 0 && !isExistingProject) {
149614
+ const message = `The project you specified does not exist: "${projectName}". Would you like to create it?"`;
149615
+ const items = [
149616
+ {
149617
+ key: "new",
149618
+ label: "Create a new project",
149619
+ value: "new"
149620
+ }
149621
+ ];
149622
+ existingOrNew = await promptSelectExistingOrNewProject(message, items);
149433
149623
  }
149434
149624
  switch (existingOrNew) {
149435
149625
  case "existing": {
@@ -149437,9 +149627,11 @@ var Handler12 = /* @__PURE__ */ __name(async ({
149437
149627
  break;
149438
149628
  }
149439
149629
  case "new": {
149440
- projectName = await prompt("Enter the name of your new project:");
149441
149630
  if (!projectName) {
149442
- throw new FatalError("Must specify a project name.", 1);
149631
+ projectName = await prompt("Enter the name of your new project:");
149632
+ if (!projectName) {
149633
+ throw new FatalError("Must specify a project name.", 1);
149634
+ }
149443
149635
  }
149444
149636
  let isGitDir2 = true;
149445
149637
  try {
@@ -149518,13 +149710,14 @@ To silence this warning, pass in --commit-dirty=true`
149518
149710
  accountId,
149519
149711
  projectName,
149520
149712
  branch,
149521
- skipCaching,
149522
149713
  commitMessage,
149523
149714
  commitHash,
149524
149715
  commitDirty,
149716
+ skipCaching: args.skipCaching,
149525
149717
  // TODO: Here lies a known bug. If you specify both `--bundle` and `--no-bundle`, this behavior is undefined and you will get unexpected results.
149526
149718
  // There is no sane way to get the true value out of yargs, so here we are.
149527
- bundle: bundle ?? !noBundle
149719
+ bundle: args.bundle ?? !args.noBundle,
149720
+ args
149528
149721
  });
149529
149722
  saveToConfigCache(PAGES_CONFIG_CACHE_FILENAME, {
149530
149723
  account_id: accountId,
@@ -149535,10 +149728,27 @@ To silence this warning, pass in --commit-dirty=true`
149535
149728
  );
149536
149729
  await sendMetricsEvent("create pages deployment");
149537
149730
  }, "Handler");
149731
+ function promptSelectExistingOrNewProject(message, items) {
149732
+ return new Promise((resolve19) => {
149733
+ const { unmount } = (0, import_ink9.render)(
149734
+ /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement(import_ink9.Text, null, message), /* @__PURE__ */ import_react13.default.createElement(
149735
+ import_ink_select_input2.default,
149736
+ {
149737
+ items,
149738
+ onSelect: async (selected) => {
149739
+ resolve19(selected.value);
149740
+ unmount();
149741
+ }
149742
+ }
149743
+ ))
149744
+ );
149745
+ });
149746
+ }
149747
+ __name(promptSelectExistingOrNewProject, "promptSelectExistingOrNewProject");
149538
149748
 
149539
149749
  // src/pages/deployment-tails.ts
149540
149750
  init_import_meta_url();
149541
- var import_promises16 = require("node:timers/promises");
149751
+ var import_promises17 = require("node:timers/promises");
149542
149752
  var import_signal_exit6 = __toESM(require_signal_exit());
149543
149753
 
149544
149754
  // src/tail/createTail.ts
@@ -149576,6 +149786,9 @@ function translateCLICommandToFilterMessage(cliFilters) {
149576
149786
  if (cliFilters.search) {
149577
149787
  apiFilters.push(parseQuery(cliFilters.search));
149578
149788
  }
149789
+ if (cliFilters.versionId) {
149790
+ apiFilters.push(parseScriptVersion(cliFilters.versionId));
149791
+ }
149579
149792
  return {
149580
149793
  filters: apiFilters
149581
149794
  };
@@ -149637,6 +149850,10 @@ function parseQuery(query) {
149637
149850
  return { query };
149638
149851
  }
149639
149852
  __name(parseQuery, "parseQuery");
149853
+ function parseScriptVersion(scriptVersion) {
149854
+ return { scriptVersion };
149855
+ }
149856
+ __name(parseScriptVersion, "parseScriptVersion");
149640
149857
 
149641
149858
  // src/tail/printing.ts
149642
149859
  init_import_meta_url();
@@ -150038,10 +150255,10 @@ async function Handler13({
150038
150255
  while (tail.readyState !== tail.OPEN) {
150039
150256
  switch (tail.readyState) {
150040
150257
  case tail.CONNECTING:
150041
- await (0, import_promises16.setTimeout)(100);
150258
+ await (0, import_promises17.setTimeout)(100);
150042
150259
  break;
150043
150260
  case tail.CLOSING:
150044
- await (0, import_promises16.setTimeout)(100);
150261
+ await (0, import_promises17.setTimeout)(100);
150045
150262
  break;
150046
150263
  case tail.CLOSED:
150047
150264
  await sendMetricsEvent("end log stream", {
@@ -150332,7 +150549,7 @@ var Handler14 = /* @__PURE__ */ __name(async (args) => {
150332
150549
  The Worker script should be named \`_worker.js\` and located in the build output directory of your project (specified with \`wrangler pages dev <directory>\`).`
150333
150550
  );
150334
150551
  }
150335
- const config = readConfig(void 0, args);
150552
+ const config = readConfig(void 0, { ...args, env: void 0 });
150336
150553
  const resolvedDirectory = args.directory ?? config.pages_build_output_dir;
150337
150554
  const [_pages, _dev, ...remaining] = args._;
150338
150555
  const command2 = remaining;
@@ -150927,7 +151144,7 @@ __name(getBindingsFromArgs, "getBindingsFromArgs");
150927
151144
 
150928
151145
  // src/pages/download-config.ts
150929
151146
  init_import_meta_url();
150930
- var import_promises17 = require("node:fs/promises");
151147
+ var import_promises18 = require("node:fs/promises");
150931
151148
  var import_toml4 = __toESM(require_toml());
150932
151149
  var import_chalk12 = __toESM(require_chalk());
150933
151150
  async function toEnvironment(project, accountId) {
@@ -151016,7 +151233,7 @@ async function toEnvironment(project, accountId) {
151016
151233
  }
151017
151234
  __name(toEnvironment, "toEnvironment");
151018
151235
  async function writeWranglerToml(toml) {
151019
- await (0, import_promises17.writeFile)(
151236
+ await (0, import_promises18.writeFile)(
151020
151237
  "wrangler.toml",
151021
151238
  [
151022
151239
  `# Generated by Wrangler on ${/* @__PURE__ */ new Date()}`,
@@ -152357,7 +152574,7 @@ __name(queues, "queues");
152357
152574
  init_import_meta_url();
152358
152575
  var import_node_buffer4 = require("node:buffer");
152359
152576
  var fs22 = __toESM(require("node:fs"));
152360
- var path46 = __toESM(require("node:path"));
152577
+ var path47 = __toESM(require("node:path"));
152361
152578
  var stream = __toESM(require("node:stream"));
152362
152579
  var import_web = require("node:stream/web");
152363
152580
 
@@ -153059,7 +153276,7 @@ function r22(r2Yargs) {
153059
153276
  }
153060
153277
  let output;
153061
153278
  if (file) {
153062
- fs22.mkdirSync(path46.dirname(file), { recursive: true });
153279
+ fs22.mkdirSync(path47.dirname(file), { recursive: true });
153063
153280
  output = fs22.createWriteStream(file);
153064
153281
  } else {
153065
153282
  output = process.stdout;
@@ -154208,8 +154425,8 @@ function isValidProtocol(protocol) {
154208
154425
  }
154209
154426
  __name(isValidProtocol, "isValidProtocol");
154210
154427
  function dsnToString(dsn, withPassword = false) {
154211
- const { host, path: path63, pass, port: port2, projectId, protocol, publicKey } = dsn;
154212
- return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port2 ? `:${port2}` : ""}/${path63 ? `${path63}/` : path63}${projectId}`;
154428
+ const { host, path: path64, pass, port: port2, projectId, protocol, publicKey } = dsn;
154429
+ return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port2 ? `:${port2}` : ""}/${path64 ? `${path64}/` : path64}${projectId}`;
154213
154430
  }
154214
154431
  __name(dsnToString, "dsnToString");
154215
154432
  function dsnFromString(str) {
@@ -154221,11 +154438,11 @@ function dsnFromString(str) {
154221
154438
  return void 0;
154222
154439
  }
154223
154440
  const [protocol, publicKey, pass = "", host, port2 = "", lastPath] = match.slice(1);
154224
- let path63 = "";
154441
+ let path64 = "";
154225
154442
  let projectId = lastPath;
154226
154443
  const split = projectId.split("/");
154227
154444
  if (split.length > 1) {
154228
- path63 = split.slice(0, -1).join("/");
154445
+ path64 = split.slice(0, -1).join("/");
154229
154446
  projectId = split.pop();
154230
154447
  }
154231
154448
  if (projectId) {
@@ -154234,7 +154451,7 @@ function dsnFromString(str) {
154234
154451
  projectId = projectMatch[0];
154235
154452
  }
154236
154453
  }
154237
- return dsnFromComponents({ host, pass, path: path63, projectId, port: port2, protocol, publicKey });
154454
+ return dsnFromComponents({ host, pass, path: path64, projectId, port: port2, protocol, publicKey });
154238
154455
  }
154239
154456
  __name(dsnFromString, "dsnFromString");
154240
154457
  function dsnFromComponents(components) {
@@ -155322,9 +155539,9 @@ function getNumberOfUrlSegments(url4) {
155322
155539
  }
155323
155540
  __name(getNumberOfUrlSegments, "getNumberOfUrlSegments");
155324
155541
  function getSanitizedUrlString(url4) {
155325
- const { protocol, host, path: path63 } = url4;
155542
+ const { protocol, host, path: path64 } = url4;
155326
155543
  const filteredHost = host && host.replace(/^.*@/, "[filtered]:[filtered]@").replace(/(:80)$/, "").replace(/(:443)$/, "") || "";
155327
- return `${protocol ? `${protocol}://` : ""}${filteredHost}${path63}`;
155544
+ return `${protocol ? `${protocol}://` : ""}${filteredHost}${path64}`;
155328
155545
  }
155329
155546
  __name(getSanitizedUrlString, "getSanitizedUrlString");
155330
155547
 
@@ -155339,13 +155556,13 @@ var DEFAULT_REQUEST_INCLUDES = ["cookies", "data", "headers", "method", "query_s
155339
155556
  var DEFAULT_USER_INCLUDES = ["id", "username", "email"];
155340
155557
  function extractPathForTransaction(req, options29 = {}) {
155341
155558
  const method = req.method && req.method.toUpperCase();
155342
- let path63 = "";
155559
+ let path64 = "";
155343
155560
  let source = "url";
155344
155561
  if (options29.customRoute || req.route) {
155345
- path63 = options29.customRoute || `${req.baseUrl || ""}${req.route && req.route.path}`;
155562
+ path64 = options29.customRoute || `${req.baseUrl || ""}${req.route && req.route.path}`;
155346
155563
  source = "route";
155347
155564
  } else if (req.originalUrl || req.url) {
155348
- path63 = stripUrlQueryAndFragment(req.originalUrl || req.url || "");
155565
+ path64 = stripUrlQueryAndFragment(req.originalUrl || req.url || "");
155349
155566
  }
155350
155567
  let name = "";
155351
155568
  if (options29.method && method) {
@@ -155354,8 +155571,8 @@ function extractPathForTransaction(req, options29 = {}) {
155354
155571
  if (options29.method && options29.path) {
155355
155572
  name += " ";
155356
155573
  }
155357
- if (options29.path && path63) {
155358
- name += path63;
155574
+ if (options29.path && path64) {
155575
+ name += path64;
155359
155576
  }
155360
155577
  return [name, source];
155361
155578
  }
@@ -159845,13 +160062,13 @@ function instrumentRouter(appOrRouter) {
159845
160062
  }, "process_params");
159846
160063
  }
159847
160064
  __name(instrumentRouter, "instrumentRouter");
159848
- var extractOriginalRoute = /* @__PURE__ */ __name((path63, regexp, keys) => {
159849
- if (!path63 || !regexp || !keys || Object.keys(keys).length === 0 || !_optionalChain([keys, "access", (_10) => _10[0], "optionalAccess", (_11) => _11.offset])) {
160065
+ var extractOriginalRoute = /* @__PURE__ */ __name((path64, regexp, keys) => {
160066
+ if (!path64 || !regexp || !keys || Object.keys(keys).length === 0 || !_optionalChain([keys, "access", (_10) => _10[0], "optionalAccess", (_11) => _11.offset])) {
159850
160067
  return void 0;
159851
160068
  }
159852
160069
  const orderedKeys = keys.sort((a, b2) => a.offset - b2.offset);
159853
160070
  const pathRegex = new RegExp(regexp, `${regexp.flags}d`);
159854
- const execResult = pathRegex.exec(path63);
160071
+ const execResult = pathRegex.exec(path64);
159855
160072
  if (!execResult || !execResult.indices) {
159856
160073
  return void 0;
159857
160074
  }
@@ -159859,7 +160076,7 @@ var extractOriginalRoute = /* @__PURE__ */ __name((path63, regexp, keys) => {
159859
160076
  if (paramIndices.length !== orderedKeys.length) {
159860
160077
  return void 0;
159861
160078
  }
159862
- let resultPath = path63;
160079
+ let resultPath = path64;
159863
160080
  let indexShift = 0;
159864
160081
  paramIndices.forEach((item, index) => {
159865
160082
  if (item) {
@@ -160761,8 +160978,8 @@ init_import_meta_url();
160761
160978
  init_import_meta_url();
160762
160979
  var import_path13 = require("path");
160763
160980
  var isWindowsPlatform = import_path13.sep === "\\";
160764
- function normalizeWindowsPath(path63) {
160765
- return path63.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
160981
+ function normalizeWindowsPath(path64) {
160982
+ return path64.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
160766
160983
  }
160767
160984
  __name(normalizeWindowsPath, "normalizeWindowsPath");
160768
160985
  function getModuleFromFilename(filename, normalizeWindowsPathSeparator = isWindowsPlatform) {
@@ -160951,15 +161168,15 @@ init_import_meta_url();
160951
161168
  var import_url6 = require("url");
160952
161169
  function extractRawUrl(requestOptions) {
160953
161170
  const { protocol, hostname: hostname2, port: port2 } = parseRequestOptions(requestOptions);
160954
- const path63 = requestOptions.path ? requestOptions.path : "/";
160955
- return `${protocol}//${hostname2}${port2}${path63}`;
161171
+ const path64 = requestOptions.path ? requestOptions.path : "/";
161172
+ return `${protocol}//${hostname2}${port2}${path64}`;
160956
161173
  }
160957
161174
  __name(extractRawUrl, "extractRawUrl");
160958
161175
  function extractUrl(requestOptions) {
160959
161176
  const { protocol, hostname: hostname2, port: port2 } = parseRequestOptions(requestOptions);
160960
- const path63 = requestOptions.pathname || "/";
161177
+ const path64 = requestOptions.pathname || "/";
160961
161178
  const authority = requestOptions.auth ? redactAuthority(requestOptions.auth) : "";
160962
- return `${protocol}//${authority}${hostname2}${port2}${path63}`;
161179
+ return `${protocol}//${authority}${hostname2}${port2}${path64}`;
160963
161180
  }
160964
161181
  __name(extractUrl, "extractUrl");
160965
161182
  function redactAuthority(auth) {
@@ -161500,8 +161717,8 @@ function collectModules() {
161500
161717
  const paths = getPaths();
161501
161718
  const infos = {};
161502
161719
  const seen = {};
161503
- paths.forEach((path63) => {
161504
- let dir = path63;
161720
+ paths.forEach((path64) => {
161721
+ let dir = path64;
161505
161722
  const updir = /* @__PURE__ */ __name(() => {
161506
161723
  const orig = dir;
161507
161724
  dir = (0, import_path14.dirname)(orig);
@@ -161576,9 +161793,9 @@ init_import_meta_url();
161576
161793
  var import_fs9 = require("fs");
161577
161794
  var FILE_CONTENT_CACHE = new LRUMap(100);
161578
161795
  var DEFAULT_LINES_OF_CONTEXT = 7;
161579
- function readTextFileAsync(path63) {
161796
+ function readTextFileAsync(path64) {
161580
161797
  return new Promise((resolve19, reject) => {
161581
- (0, import_fs9.readFile)(path63, "utf8", (err, data) => {
161798
+ (0, import_fs9.readFile)(path64, "utf8", (err, data) => {
161582
161799
  if (err)
161583
161800
  reject(err);
161584
161801
  else
@@ -162919,7 +163136,7 @@ __name(closeSentry, "closeSentry");
162919
163136
 
162920
163137
  // src/tail/index.ts
162921
163138
  init_import_meta_url();
162922
- var import_promises18 = require("node:timers/promises");
163139
+ var import_promises19 = require("node:timers/promises");
162923
163140
  var import_signal_exit7 = __toESM(require_signal_exit());
162924
163141
 
162925
163142
  // src/zones.ts
@@ -163095,6 +163312,10 @@ function tailOptions(yargs) {
163095
163312
  requiresArg: true,
163096
163313
  describe: 'Filter by the IP address the request originates from. Use "self" to filter for your own IP',
163097
163314
  array: true
163315
+ }).option("version-id", {
163316
+ type: "string",
163317
+ requiresArg: true,
163318
+ describe: "Filter by Worker version"
163098
163319
  }).option("debug", {
163099
163320
  type: "boolean",
163100
163321
  hidden: true,
@@ -163136,7 +163357,8 @@ async function tailHandler(args) {
163136
163357
  method: args.method,
163137
163358
  samplingRate: args.samplingRate,
163138
163359
  search: args.search,
163139
- clientIp: args.ip
163360
+ clientIp: args.ip,
163361
+ versionId: args.versionId
163140
163362
  };
163141
163363
  const scriptContent = await fetchScriptContent(
163142
163364
  (!isLegacyEnv(config) ? args.env : void 0) ? `/accounts/${accountId}/workers/services/${scriptName}/environments/${args.env}/content` : `/accounts/${accountId}/workers/scripts/${scriptName}`
@@ -163171,10 +163393,10 @@ async function tailHandler(args) {
163171
163393
  while (tail.readyState !== tail.OPEN) {
163172
163394
  switch (tail.readyState) {
163173
163395
  case tail.CONNECTING:
163174
- await (0, import_promises18.setTimeout)(100);
163396
+ await (0, import_promises19.setTimeout)(100);
163175
163397
  break;
163176
163398
  case tail.CLOSING:
163177
- await (0, import_promises18.setTimeout)(100);
163399
+ await (0, import_promises19.setTimeout)(100);
163178
163400
  break;
163179
163401
  case tail.CLOSED:
163180
163402
  await sendMetricsEvent("end log stream", {
@@ -163578,13 +163800,13 @@ var fs23 = __toESM(require("node:fs"));
163578
163800
 
163579
163801
  // src/dev/dev-vars.ts
163580
163802
  init_import_meta_url();
163581
- var path48 = __toESM(require("node:path"));
163803
+ var path49 = __toESM(require("node:path"));
163582
163804
  function getVarsForDev(config, env5, silent = false) {
163583
- const configDir = path48.resolve(path48.dirname(config.configPath ?? "."));
163584
- const devVarsPath = path48.resolve(configDir, ".dev.vars");
163805
+ const configDir = path49.resolve(path49.dirname(config.configPath ?? "."));
163806
+ const devVarsPath = path49.resolve(configDir, ".dev.vars");
163585
163807
  const loaded = loadDotEnv(devVarsPath, env5);
163586
163808
  if (loaded !== void 0) {
163587
- const devVarsRelativePath = path48.relative(process.cwd(), loaded.path);
163809
+ const devVarsRelativePath = path49.relative(process.cwd(), loaded.path);
163588
163810
  if (!silent) {
163589
163811
  logger.log(`Using vars defined in ${devVarsRelativePath}`);
163590
163812
  }
@@ -163833,13 +164055,13 @@ function writeDTSFile({
163833
164055
  modulesTypeStructure,
163834
164056
  formatType,
163835
164057
  envInterface,
163836
- path: path63
164058
+ path: path64
163837
164059
  }) {
163838
- const wranglerOverrideDTSPath = findUpSync(path63);
164060
+ const wranglerOverrideDTSPath = findUpSync(path64);
163839
164061
  try {
163840
164062
  if (wranglerOverrideDTSPath !== void 0 && !fs23.readFileSync(wranglerOverrideDTSPath, "utf8").includes("Generated by Wrangler")) {
163841
164063
  throw new UserError(
163842
- `A non-wrangler ${path63} already exists, please rename and try again.`
164064
+ `A non-wrangler ${path64} already exists, please rename and try again.`
163843
164065
  );
163844
164066
  }
163845
164067
  } catch (error2) {
@@ -163864,7 +164086,7 @@ ${modulesTypeStructure.join("\n")}`;
163864
164086
  const typesHaveBeenFound = envTypeStructure.length || modulesTypeStructure.length;
163865
164087
  if (formatType === "modules" || typesHaveBeenFound) {
163866
164088
  fs23.writeFileSync(
163867
- path63,
164089
+ path64,
163868
164090
  [
163869
164091
  `// Generated by Wrangler on ${/* @__PURE__ */ new Date()}`,
163870
164092
  `// by running \`${wranglerCommandUsed}\``,
@@ -166800,10 +167022,10 @@ The \`init\` command will be removed in a future version.`
166800
167022
  return;
166801
167023
  }
166802
167024
  }
166803
- await (0, import_promises19.mkdir)(creationDirectory, { recursive: true });
167025
+ await (0, import_promises20.mkdir)(creationDirectory, { recursive: true });
166804
167026
  const compatibilityDate = (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
166805
167027
  try {
166806
- await (0, import_promises19.writeFile)(
167028
+ await (0, import_promises20.writeFile)(
166807
167029
  wranglerTomlDestination,
166808
167030
  import_toml6.default.stringify({
166809
167031
  name: workerName,
@@ -166828,7 +167050,7 @@ ${err.message ?? err}`
166828
167050
  const shouldInitGit = yesFlag || await confirm("Would you like to use git to manage this Worker?");
166829
167051
  if (shouldInitGit) {
166830
167052
  await initializeGit(creationDirectory);
166831
- await (0, import_promises19.writeFile)(
167053
+ await (0, import_promises20.writeFile)(
166832
167054
  import_node_path49.default.join(creationDirectory, ".gitignore"),
166833
167055
  readFileSync5(import_node_path49.default.join(getBasePath(), "templates/gitignore"))
166834
167056
  );
@@ -166852,7 +167074,7 @@ ${err.message ?? err}`
166852
167074
  if (!pathToPackageJson) {
166853
167075
  shouldCreatePackageJson = yesFlag || await confirm("No package.json found. Would you like to create one?");
166854
167076
  if (shouldCreatePackageJson) {
166855
- await (0, import_promises19.writeFile)(
167077
+ await (0, import_promises20.writeFile)(
166856
167078
  import_node_path49.default.join(creationDirectory, "./package.json"),
166857
167079
  JSON.stringify(
166858
167080
  {
@@ -166902,7 +167124,7 @@ ${err.message ?? err}`
166902
167124
  if (!pathToTSConfig) {
166903
167125
  if (yesFlag || await confirm("Would you like to use TypeScript?")) {
166904
167126
  isTypescriptProject = true;
166905
- await (0, import_promises19.writeFile)(
167127
+ await (0, import_promises20.writeFile)(
166906
167128
  import_node_path49.default.join(creationDirectory, "./tsconfig.json"),
166907
167129
  readFileSync5(import_node_path49.default.join(getBasePath(), "templates/tsconfig.init.json"))
166908
167130
  );
@@ -166967,7 +167189,7 @@ ${err.message ?? err}`
166967
167189
  const isNamedWorker = isCreatingWranglerToml && import_node_path49.default.dirname(packagePath) !== process.cwd();
166968
167190
  const isAddingTestScripts = isAddingTests && !packageJsonContent.scripts?.test;
166969
167191
  if (isWritingScripts) {
166970
- await (0, import_promises19.writeFile)(
167192
+ await (0, import_promises20.writeFile)(
166971
167193
  packagePath,
166972
167194
  JSON.stringify(
166973
167195
  {
@@ -167013,10 +167235,10 @@ To start developing your Worker, run \`npx wrangler dev\`${isCreatingWranglerTom
167013
167235
  const newWorkerType = yesFlag ? "fetch" : await getNewWorkerType(newWorkerFilename);
167014
167236
  if (newWorkerType !== "none") {
167015
167237
  const template = getNewWorkerTemplate("ts", newWorkerType);
167016
- await (0, import_promises19.mkdir)(import_node_path49.default.join(creationDirectory, "./src"), {
167238
+ await (0, import_promises20.mkdir)(import_node_path49.default.join(creationDirectory, "./src"), {
167017
167239
  recursive: true
167018
167240
  });
167019
- await (0, import_promises19.writeFile)(
167241
+ await (0, import_promises20.writeFile)(
167020
167242
  import_node_path49.default.join(creationDirectory, "./src/index.ts"),
167021
167243
  readFileSync5(import_node_path49.default.join(getBasePath(), `templates/${template}`))
167022
167244
  );
@@ -167035,7 +167257,7 @@ To start developing your Worker, run \`npx wrangler dev\`${isCreatingWranglerTom
167035
167257
  }
167036
167258
  newWorkerTestType = "vitest";
167037
167259
  devDepsToInstall.push(newWorkerTestType);
167038
- await (0, import_promises19.writeFile)(
167260
+ await (0, import_promises20.writeFile)(
167039
167261
  import_node_path49.default.join(creationDirectory, "./src/index.test.ts"),
167040
167262
  readFileSync5(
167041
167263
  import_node_path49.default.join(
@@ -167076,7 +167298,7 @@ To start developing your Worker, run \`npx wrangler dev\`${isCreatingWranglerTom
167076
167298
  accountId,
167077
167299
  fromDashWorkerName
167078
167300
  );
167079
- await (0, import_promises19.mkdir)(import_node_path49.default.join(creationDirectory, "./src"), {
167301
+ await (0, import_promises20.mkdir)(import_node_path49.default.join(creationDirectory, "./src"), {
167080
167302
  recursive: true
167081
167303
  });
167082
167304
  config.main = `src/${config.main}`;
@@ -167089,8 +167311,8 @@ To start developing your Worker, run \`npx wrangler dev\`${isCreatingWranglerTom
167089
167311
  `./src/${file.name}`
167090
167312
  );
167091
167313
  const directory = (0, import_node_path49.dirname)(filepath);
167092
- await (0, import_promises19.mkdir)(directory, { recursive: true });
167093
- await (0, import_promises19.writeFile)(filepath, file.stream());
167314
+ await (0, import_promises20.mkdir)(directory, { recursive: true });
167315
+ await (0, import_promises20.writeFile)(filepath, file.stream());
167094
167316
  })
167095
167317
  );
167096
167318
  }
@@ -167106,10 +167328,10 @@ To start developing your Worker, run \`npx wrangler dev\`${isCreatingWranglerTom
167106
167328
  const newWorkerType = yesFlag ? "fetch" : await getNewWorkerType(newWorkerFilename);
167107
167329
  if (newWorkerType !== "none") {
167108
167330
  const template = getNewWorkerTemplate("js", newWorkerType);
167109
- await (0, import_promises19.mkdir)(import_node_path49.default.join(creationDirectory, "./src"), {
167331
+ await (0, import_promises20.mkdir)(import_node_path49.default.join(creationDirectory, "./src"), {
167110
167332
  recursive: true
167111
167333
  });
167112
- await (0, import_promises19.writeFile)(
167334
+ await (0, import_promises20.writeFile)(
167113
167335
  import_node_path49.default.join(creationDirectory, "./src/index.js"),
167114
167336
  readFileSync5(import_node_path49.default.join(getBasePath(), `templates/${template}`))
167115
167337
  );
@@ -167123,7 +167345,7 @@ To start developing your Worker, run \`npx wrangler dev\`${isCreatingWranglerTom
167123
167345
  if (shouldCreateTests) {
167124
167346
  newWorkerTestType = await getNewWorkerTestType(yesFlag);
167125
167347
  devDepsToInstall.push(newWorkerTestType);
167126
- await (0, import_promises19.writeFile)(
167348
+ await (0, import_promises20.writeFile)(
167127
167349
  import_node_path49.default.join(creationDirectory, "./src/index.test.js"),
167128
167350
  readFileSync5(
167129
167351
  import_node_path49.default.join(
@@ -170180,7 +170402,7 @@ function useCustomBuild(expectedEntry, build5, onBundleStart) {
170180
170402
  persistent: true,
170181
170403
  ignoreInitial: true
170182
170404
  }).on("all", (_event, filePath) => {
170183
- const relativeFile = path57.relative(expectedEntry.directory, expectedEntry.file) || ".";
170405
+ const relativeFile = path58.relative(expectedEntry.directory, expectedEntry.file) || ".";
170184
170406
  logger.log(`The file ${filePath} changed, restarting build...`);
170185
170407
  onBundleStart();
170186
170408
  runCustomBuild(expectedEntry.file, relativeFile, build5).catch((err) => {
@@ -170334,7 +170556,7 @@ var dev_default = withErrorBoundary(DevImplementation, {
170334
170556
 
170335
170557
  // src/dev/start-server.ts
170336
170558
  init_import_meta_url();
170337
- var path58 = __toESM(require("node:path"));
170559
+ var path59 = __toESM(require("node:path"));
170338
170560
  var util3 = __toESM(require("node:util"));
170339
170561
  var import_chalk18 = __toESM(require_chalk());
170340
170562
  var import_signal_exit9 = __toESM(require_signal_exit());
@@ -170342,7 +170564,7 @@ async function startDevServer(props) {
170342
170564
  let workerDefinitions = {};
170343
170565
  validateDevProps(props);
170344
170566
  if (props.build.command) {
170345
- const relativeFile = path58.relative(props.entry.directory, props.entry.file) || ".";
170567
+ const relativeFile = path59.relative(props.entry.directory, props.entry.file) || ".";
170346
170568
  await runCustomBuild(props.entry.file, relativeFile, props.build).catch(
170347
170569
  (err) => {
170348
170570
  logger.error("Custom build failed:", err);
@@ -170579,7 +170801,7 @@ async function runEsbuild({
170579
170801
  ...additionalModules
170580
170802
  ]);
170581
170803
  }
170582
- const entryDirectory = path58.dirname(entry.file);
170804
+ const entryDirectory = path59.dirname(entry.file);
170583
170805
  const moduleCollector = noBundle ? noopModuleCollector : createModuleCollector({
170584
170806
  wrangler1xLegacyModuleReferences: getWrangler1xLegacyModuleReferences(
170585
170807
  entryDirectory,
@@ -171770,7 +171992,7 @@ __name(LocalRuntimeController, "LocalRuntimeController");
171770
171992
  // src/api/startDevWorker/ProxyController.ts
171771
171993
  init_import_meta_url();
171772
171994
  var import_node_assert20 = __toESM(require("node:assert"));
171773
- var import_node_crypto7 = require("node:crypto");
171995
+ var import_node_crypto8 = require("node:crypto");
171774
171996
  var import_node_events3 = require("node:events");
171775
171997
  var import_node_path56 = __toESM(require("node:path"));
171776
171998
  var import_miniflare15 = require("miniflare");
@@ -171834,7 +172056,7 @@ var ProxyController = class extends import_node_events3.EventEmitter {
171834
172056
  inspectorProxyWorkerWebSocket;
171835
172057
  latestConfig;
171836
172058
  latestBundle;
171837
- secret = (0, import_node_crypto7.randomUUID)();
172059
+ secret = (0, import_node_crypto8.randomUUID)();
171838
172060
  createProxyWorker() {
171839
172061
  if (this._torndown)
171840
172062
  return;