wrangler 4.14.1 → 4.14.2

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.
@@ -5,8 +5,8 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
8
+ var __esm = (fn2, res) => function __init() {
9
+ return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
10
10
  };
11
11
  var __commonJS = (cb2, mod) => function __require() {
12
12
  return mod || (0, cb2[__getOwnPropNames(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
@@ -574,14 +574,14 @@ var require_util = __commonJS({
574
574
  }
575
575
  const port = url4.port != null ? url4.port : url4.protocol === "https:" ? 443 : 80;
576
576
  let origin = url4.origin != null ? url4.origin : `${url4.protocol}//${url4.hostname}:${port}`;
577
- let path69 = url4.path != null ? url4.path : `${url4.pathname || ""}${url4.search || ""}`;
577
+ let path70 = url4.path != null ? url4.path : `${url4.pathname || ""}${url4.search || ""}`;
578
578
  if (origin.endsWith("/")) {
579
579
  origin = origin.substring(0, origin.length - 1);
580
580
  }
581
- if (path69 && !path69.startsWith("/")) {
582
- path69 = `/${path69}`;
581
+ if (path70 && !path70.startsWith("/")) {
582
+ path70 = `/${path70}`;
583
583
  }
584
- url4 = new URL(origin + path69);
584
+ url4 = new URL(origin + path70);
585
585
  }
586
586
  return url4;
587
587
  }
@@ -2245,20 +2245,20 @@ var require_basename = __commonJS({
2245
2245
  "../../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/basename.js"(exports2, module3) {
2246
2246
  "use strict";
2247
2247
  init_import_meta_url();
2248
- module3.exports = /* @__PURE__ */ __name(function basename7(path69) {
2249
- if (typeof path69 !== "string") {
2248
+ module3.exports = /* @__PURE__ */ __name(function basename7(path70) {
2249
+ if (typeof path70 !== "string") {
2250
2250
  return "";
2251
2251
  }
2252
- for (var i5 = path69.length - 1; i5 >= 0; --i5) {
2253
- switch (path69.charCodeAt(i5)) {
2252
+ for (var i5 = path70.length - 1; i5 >= 0; --i5) {
2253
+ switch (path70.charCodeAt(i5)) {
2254
2254
  case 47:
2255
2255
  // '/'
2256
2256
  case 92:
2257
- path69 = path69.slice(i5 + 1);
2258
- return path69 === ".." || path69 === "." ? "" : path69;
2257
+ path70 = path70.slice(i5 + 1);
2258
+ return path70 === ".." || path70 === "." ? "" : path70;
2259
2259
  }
2260
2260
  }
2261
- return path69 === ".." || path69 === "." ? "" : path69;
2261
+ return path70 === ".." || path70 === "." ? "" : path70;
2262
2262
  }, "basename");
2263
2263
  }
2264
2264
  });
@@ -5400,7 +5400,7 @@ var require_request = __commonJS({
5400
5400
  __name(this, "Request");
5401
5401
  }
5402
5402
  constructor(origin, {
5403
- path: path69,
5403
+ path: path70,
5404
5404
  method,
5405
5405
  body,
5406
5406
  headers,
@@ -5414,11 +5414,11 @@ var require_request = __commonJS({
5414
5414
  throwOnError,
5415
5415
  expectContinue
5416
5416
  }, handler) {
5417
- if (typeof path69 !== "string") {
5417
+ if (typeof path70 !== "string") {
5418
5418
  throw new InvalidArgumentError("path must be a string");
5419
- } else if (path69[0] !== "/" && !(path69.startsWith("http://") || path69.startsWith("https://")) && method !== "CONNECT") {
5419
+ } else if (path70[0] !== "/" && !(path70.startsWith("http://") || path70.startsWith("https://")) && method !== "CONNECT") {
5420
5420
  throw new InvalidArgumentError("path must be an absolute URL or start with a slash");
5421
- } else if (invalidPathRegex.exec(path69) !== null) {
5421
+ } else if (invalidPathRegex.exec(path70) !== null) {
5422
5422
  throw new InvalidArgumentError("invalid request path");
5423
5423
  }
5424
5424
  if (typeof method !== "string") {
@@ -5481,7 +5481,7 @@ var require_request = __commonJS({
5481
5481
  this.completed = false;
5482
5482
  this.aborted = false;
5483
5483
  this.upgrade = upgrade || null;
5484
- this.path = query ? util5.buildURL(path69, query) : path69;
5484
+ this.path = query ? util5.buildURL(path70, query) : path70;
5485
5485
  this.origin = origin;
5486
5486
  this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent;
5487
5487
  this.blocking = blocking == null ? false : blocking;
@@ -6519,9 +6519,9 @@ var require_RedirectHandler = __commonJS({
6519
6519
  return this.handler.onHeaders(statusCode, headers, resume, statusText);
6520
6520
  }
6521
6521
  const { origin, pathname, search } = util5.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
6522
- const path69 = search ? `${pathname}${search}` : pathname;
6522
+ const path70 = search ? `${pathname}${search}` : pathname;
6523
6523
  this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin);
6524
- this.opts.path = path69;
6524
+ this.opts.path = path70;
6525
6525
  this.opts.origin = origin;
6526
6526
  this.opts.maxRedirections = 0;
6527
6527
  this.opts.query = null;
@@ -7791,7 +7791,7 @@ var require_client = __commonJS({
7791
7791
  writeH2(client, client[kHTTP2Session], request4);
7792
7792
  return;
7793
7793
  }
7794
- const { body, method, path: path69, host, upgrade, headers, blocking, reset } = request4;
7794
+ const { body, method, path: path70, host, upgrade, headers, blocking, reset } = request4;
7795
7795
  const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
7796
7796
  if (body && typeof body.read === "function") {
7797
7797
  body.read(0);
@@ -7841,7 +7841,7 @@ var require_client = __commonJS({
7841
7841
  if (blocking) {
7842
7842
  socket[kBlocking] = true;
7843
7843
  }
7844
- let header = `${method} ${path69} HTTP/1.1\r
7844
+ let header = `${method} ${path70} HTTP/1.1\r
7845
7845
  `;
7846
7846
  if (typeof host === "string") {
7847
7847
  header += `host: ${host}\r
@@ -7905,7 +7905,7 @@ upgrade: ${upgrade}\r
7905
7905
  }
7906
7906
  __name(write, "write");
7907
7907
  function writeH2(client, session, request4) {
7908
- const { body, method, path: path69, host, upgrade, expectContinue, signal, headers: reqHeaders } = request4;
7908
+ const { body, method, path: path70, host, upgrade, expectContinue, signal, headers: reqHeaders } = request4;
7909
7909
  let headers;
7910
7910
  if (typeof reqHeaders === "string") headers = Request4[kHTTP2CopyHeaders](reqHeaders.trim());
7911
7911
  else headers = reqHeaders;
@@ -7948,7 +7948,7 @@ upgrade: ${upgrade}\r
7948
7948
  });
7949
7949
  return true;
7950
7950
  }
7951
- headers[HTTP2_HEADER_PATH] = path69;
7951
+ headers[HTTP2_HEADER_PATH] = path70;
7952
7952
  headers[HTTP2_HEADER_SCHEME] = "https";
7953
7953
  const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
7954
7954
  if (body && typeof body.read === "function") {
@@ -10289,21 +10289,21 @@ var require_mock_utils = __commonJS({
10289
10289
  return true;
10290
10290
  }
10291
10291
  __name(matchHeaders, "matchHeaders");
10292
- function safeUrl(path69) {
10293
- if (typeof path69 !== "string") {
10294
- return path69;
10292
+ function safeUrl(path70) {
10293
+ if (typeof path70 !== "string") {
10294
+ return path70;
10295
10295
  }
10296
- const pathSegments = path69.split("?");
10296
+ const pathSegments = path70.split("?");
10297
10297
  if (pathSegments.length !== 2) {
10298
- return path69;
10298
+ return path70;
10299
10299
  }
10300
10300
  const qp = new URLSearchParams(pathSegments.pop());
10301
10301
  qp.sort();
10302
10302
  return [...pathSegments, qp.toString()].join("?");
10303
10303
  }
10304
10304
  __name(safeUrl, "safeUrl");
10305
- function matchKey(mockDispatch2, { path: path69, method, body, headers }) {
10306
- const pathMatch = matchValue(mockDispatch2.path, path69);
10305
+ function matchKey(mockDispatch2, { path: path70, method, body, headers }) {
10306
+ const pathMatch = matchValue(mockDispatch2.path, path70);
10307
10307
  const methodMatch = matchValue(mockDispatch2.method, method);
10308
10308
  const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true;
10309
10309
  const headersMatch = matchHeaders(mockDispatch2, headers);
@@ -10323,7 +10323,7 @@ var require_mock_utils = __commonJS({
10323
10323
  function getMockDispatch(mockDispatches, key) {
10324
10324
  const basePath = key.query ? buildURL(key.path, key.query) : key.path;
10325
10325
  const resolvedPath2 = typeof basePath === "string" ? safeUrl(basePath) : basePath;
10326
- let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path69 }) => matchValue(safeUrl(path69), resolvedPath2));
10326
+ let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path70 }) => matchValue(safeUrl(path70), resolvedPath2));
10327
10327
  if (matchedMockDispatches.length === 0) {
10328
10328
  throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath2}'`);
10329
10329
  }
@@ -10363,9 +10363,9 @@ var require_mock_utils = __commonJS({
10363
10363
  }
10364
10364
  __name(deleteMockDispatch, "deleteMockDispatch");
10365
10365
  function buildKey(opts) {
10366
- const { path: path69, method, body, headers, query } = opts;
10366
+ const { path: path70, method, body, headers, query } = opts;
10367
10367
  return {
10368
- path: path69,
10368
+ path: path70,
10369
10369
  method,
10370
10370
  body,
10371
10371
  headers,
@@ -10847,10 +10847,10 @@ var require_pending_interceptors_formatter = __commonJS({
10847
10847
  }
10848
10848
  format(pendingInterceptors) {
10849
10849
  const withPrettyHeaders = pendingInterceptors.map(
10850
- ({ method, path: path69, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
10850
+ ({ method, path: path70, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
10851
10851
  Method: method,
10852
10852
  Origin: origin,
10853
- Path: path69,
10853
+ Path: path70,
10854
10854
  "Status code": statusCode,
10855
10855
  Persistent: persist ? "\u2705" : "\u274C",
10856
10856
  Invocations: timesInvoked,
@@ -14702,14 +14702,14 @@ var require_filereader = __commonJS({
14702
14702
  webidl.brandCheck(this, _FileReader);
14703
14703
  return this[kEvents].loadend;
14704
14704
  }
14705
- set onloadend(fn) {
14705
+ set onloadend(fn2) {
14706
14706
  webidl.brandCheck(this, _FileReader);
14707
14707
  if (this[kEvents].loadend) {
14708
14708
  this.removeEventListener("loadend", this[kEvents].loadend);
14709
14709
  }
14710
- if (typeof fn === "function") {
14711
- this[kEvents].loadend = fn;
14712
- this.addEventListener("loadend", fn);
14710
+ if (typeof fn2 === "function") {
14711
+ this[kEvents].loadend = fn2;
14712
+ this.addEventListener("loadend", fn2);
14713
14713
  } else {
14714
14714
  this[kEvents].loadend = null;
14715
14715
  }
@@ -14718,14 +14718,14 @@ var require_filereader = __commonJS({
14718
14718
  webidl.brandCheck(this, _FileReader);
14719
14719
  return this[kEvents].error;
14720
14720
  }
14721
- set onerror(fn) {
14721
+ set onerror(fn2) {
14722
14722
  webidl.brandCheck(this, _FileReader);
14723
14723
  if (this[kEvents].error) {
14724
14724
  this.removeEventListener("error", this[kEvents].error);
14725
14725
  }
14726
- if (typeof fn === "function") {
14727
- this[kEvents].error = fn;
14728
- this.addEventListener("error", fn);
14726
+ if (typeof fn2 === "function") {
14727
+ this[kEvents].error = fn2;
14728
+ this.addEventListener("error", fn2);
14729
14729
  } else {
14730
14730
  this[kEvents].error = null;
14731
14731
  }
@@ -14734,14 +14734,14 @@ var require_filereader = __commonJS({
14734
14734
  webidl.brandCheck(this, _FileReader);
14735
14735
  return this[kEvents].loadstart;
14736
14736
  }
14737
- set onloadstart(fn) {
14737
+ set onloadstart(fn2) {
14738
14738
  webidl.brandCheck(this, _FileReader);
14739
14739
  if (this[kEvents].loadstart) {
14740
14740
  this.removeEventListener("loadstart", this[kEvents].loadstart);
14741
14741
  }
14742
- if (typeof fn === "function") {
14743
- this[kEvents].loadstart = fn;
14744
- this.addEventListener("loadstart", fn);
14742
+ if (typeof fn2 === "function") {
14743
+ this[kEvents].loadstart = fn2;
14744
+ this.addEventListener("loadstart", fn2);
14745
14745
  } else {
14746
14746
  this[kEvents].loadstart = null;
14747
14747
  }
@@ -14750,14 +14750,14 @@ var require_filereader = __commonJS({
14750
14750
  webidl.brandCheck(this, _FileReader);
14751
14751
  return this[kEvents].progress;
14752
14752
  }
14753
- set onprogress(fn) {
14753
+ set onprogress(fn2) {
14754
14754
  webidl.brandCheck(this, _FileReader);
14755
14755
  if (this[kEvents].progress) {
14756
14756
  this.removeEventListener("progress", this[kEvents].progress);
14757
14757
  }
14758
- if (typeof fn === "function") {
14759
- this[kEvents].progress = fn;
14760
- this.addEventListener("progress", fn);
14758
+ if (typeof fn2 === "function") {
14759
+ this[kEvents].progress = fn2;
14760
+ this.addEventListener("progress", fn2);
14761
14761
  } else {
14762
14762
  this[kEvents].progress = null;
14763
14763
  }
@@ -14766,14 +14766,14 @@ var require_filereader = __commonJS({
14766
14766
  webidl.brandCheck(this, _FileReader);
14767
14767
  return this[kEvents].load;
14768
14768
  }
14769
- set onload(fn) {
14769
+ set onload(fn2) {
14770
14770
  webidl.brandCheck(this, _FileReader);
14771
14771
  if (this[kEvents].load) {
14772
14772
  this.removeEventListener("load", this[kEvents].load);
14773
14773
  }
14774
- if (typeof fn === "function") {
14775
- this[kEvents].load = fn;
14776
- this.addEventListener("load", fn);
14774
+ if (typeof fn2 === "function") {
14775
+ this[kEvents].load = fn2;
14776
+ this.addEventListener("load", fn2);
14777
14777
  } else {
14778
14778
  this[kEvents].load = null;
14779
14779
  }
@@ -14782,14 +14782,14 @@ var require_filereader = __commonJS({
14782
14782
  webidl.brandCheck(this, _FileReader);
14783
14783
  return this[kEvents].abort;
14784
14784
  }
14785
- set onabort(fn) {
14785
+ set onabort(fn2) {
14786
14786
  webidl.brandCheck(this, _FileReader);
14787
14787
  if (this[kEvents].abort) {
14788
14788
  this.removeEventListener("abort", this[kEvents].abort);
14789
14789
  }
14790
- if (typeof fn === "function") {
14791
- this[kEvents].abort = fn;
14792
- this.addEventListener("abort", fn);
14790
+ if (typeof fn2 === "function") {
14791
+ this[kEvents].abort = fn2;
14792
+ this.addEventListener("abort", fn2);
14793
14793
  } else {
14794
14794
  this[kEvents].abort = null;
14795
14795
  }
@@ -15579,8 +15579,8 @@ var require_util6 = __commonJS({
15579
15579
  }
15580
15580
  }
15581
15581
  __name(validateCookieValue, "validateCookieValue");
15582
- function validateCookiePath(path69) {
15583
- for (const char of path69) {
15582
+ function validateCookiePath(path70) {
15583
+ for (const char of path70) {
15584
15584
  const code = char.charCodeAt(0);
15585
15585
  if (code < 33 || char === ";") {
15586
15586
  throw new Error("Invalid cookie path");
@@ -16620,7 +16620,7 @@ var require_receiver = __commonJS({
16620
16620
  "../../node_modules/.pnpm/undici@5.28.5/node_modules/undici/lib/websocket/receiver.js"(exports2, module3) {
16621
16621
  "use strict";
16622
16622
  init_import_meta_url();
16623
- var { Writable: Writable4 } = require("stream");
16623
+ var { Writable: Writable5 } = require("stream");
16624
16624
  var diagnosticsChannel = require("diagnostics_channel");
16625
16625
  var { parserStates, opcodes, states, emptyBuffer } = require_constants5();
16626
16626
  var { kReadyState, kSentClose, kResponse, kReceivedClose } = require_symbols5();
@@ -16629,7 +16629,7 @@ var require_receiver = __commonJS({
16629
16629
  var channels = {};
16630
16630
  channels.ping = diagnosticsChannel.channel("undici:websocket:ping");
16631
16631
  channels.pong = diagnosticsChannel.channel("undici:websocket:pong");
16632
- var ByteParser = class extends Writable4 {
16632
+ var ByteParser = class extends Writable5 {
16633
16633
  static {
16634
16634
  __name(this, "ByteParser");
16635
16635
  }
@@ -17083,14 +17083,14 @@ var require_websocket = __commonJS({
17083
17083
  webidl.brandCheck(this, _WebSocket);
17084
17084
  return this.#events.open;
17085
17085
  }
17086
- set onopen(fn) {
17086
+ set onopen(fn2) {
17087
17087
  webidl.brandCheck(this, _WebSocket);
17088
17088
  if (this.#events.open) {
17089
17089
  this.removeEventListener("open", this.#events.open);
17090
17090
  }
17091
- if (typeof fn === "function") {
17092
- this.#events.open = fn;
17093
- this.addEventListener("open", fn);
17091
+ if (typeof fn2 === "function") {
17092
+ this.#events.open = fn2;
17093
+ this.addEventListener("open", fn2);
17094
17094
  } else {
17095
17095
  this.#events.open = null;
17096
17096
  }
@@ -17099,14 +17099,14 @@ var require_websocket = __commonJS({
17099
17099
  webidl.brandCheck(this, _WebSocket);
17100
17100
  return this.#events.error;
17101
17101
  }
17102
- set onerror(fn) {
17102
+ set onerror(fn2) {
17103
17103
  webidl.brandCheck(this, _WebSocket);
17104
17104
  if (this.#events.error) {
17105
17105
  this.removeEventListener("error", this.#events.error);
17106
17106
  }
17107
- if (typeof fn === "function") {
17108
- this.#events.error = fn;
17109
- this.addEventListener("error", fn);
17107
+ if (typeof fn2 === "function") {
17108
+ this.#events.error = fn2;
17109
+ this.addEventListener("error", fn2);
17110
17110
  } else {
17111
17111
  this.#events.error = null;
17112
17112
  }
@@ -17115,14 +17115,14 @@ var require_websocket = __commonJS({
17115
17115
  webidl.brandCheck(this, _WebSocket);
17116
17116
  return this.#events.close;
17117
17117
  }
17118
- set onclose(fn) {
17118
+ set onclose(fn2) {
17119
17119
  webidl.brandCheck(this, _WebSocket);
17120
17120
  if (this.#events.close) {
17121
17121
  this.removeEventListener("close", this.#events.close);
17122
17122
  }
17123
- if (typeof fn === "function") {
17124
- this.#events.close = fn;
17125
- this.addEventListener("close", fn);
17123
+ if (typeof fn2 === "function") {
17124
+ this.#events.close = fn2;
17125
+ this.addEventListener("close", fn2);
17126
17126
  } else {
17127
17127
  this.#events.close = null;
17128
17128
  }
@@ -17131,14 +17131,14 @@ var require_websocket = __commonJS({
17131
17131
  webidl.brandCheck(this, _WebSocket);
17132
17132
  return this.#events.message;
17133
17133
  }
17134
- set onmessage(fn) {
17134
+ set onmessage(fn2) {
17135
17135
  webidl.brandCheck(this, _WebSocket);
17136
17136
  if (this.#events.message) {
17137
17137
  this.removeEventListener("message", this.#events.message);
17138
17138
  }
17139
- if (typeof fn === "function") {
17140
- this.#events.message = fn;
17141
- this.addEventListener("message", fn);
17139
+ if (typeof fn2 === "function") {
17140
+ this.#events.message = fn2;
17141
+ this.addEventListener("message", fn2);
17142
17142
  } else {
17143
17143
  this.#events.message = null;
17144
17144
  }
@@ -17309,7 +17309,7 @@ var require_undici = __commonJS({
17309
17309
  module3.exports.createRedirectInterceptor = createRedirectInterceptor;
17310
17310
  module3.exports.buildConnector = buildConnector;
17311
17311
  module3.exports.errors = errors;
17312
- function makeDispatcher(fn) {
17312
+ function makeDispatcher(fn2) {
17313
17313
  return (url4, opts, handler) => {
17314
17314
  if (typeof opts === "function") {
17315
17315
  handler = opts;
@@ -17325,11 +17325,11 @@ var require_undici = __commonJS({
17325
17325
  if (typeof opts.path !== "string") {
17326
17326
  throw new InvalidArgumentError("invalid opts.path");
17327
17327
  }
17328
- let path69 = opts.path;
17328
+ let path70 = opts.path;
17329
17329
  if (!opts.path.startsWith("/")) {
17330
- path69 = `/${path69}`;
17330
+ path70 = `/${path70}`;
17331
17331
  }
17332
- url4 = new URL(util5.parseOrigin(url4).origin + path69);
17332
+ url4 = new URL(util5.parseOrigin(url4).origin + path70);
17333
17333
  } else {
17334
17334
  if (!opts) {
17335
17335
  opts = typeof url4 === "object" ? url4 : {};
@@ -17340,7 +17340,7 @@ var require_undici = __commonJS({
17340
17340
  if (agent) {
17341
17341
  throw new InvalidArgumentError("unsupported opts.agent. Did you mean opts.client?");
17342
17342
  }
17343
- return fn.call(dispatcher, {
17343
+ return fn2.call(dispatcher, {
17344
17344
  ...opts,
17345
17345
  origin: url4.origin,
17346
17346
  path: url4.search ? `${url4.pathname}${url4.search}` : url4.pathname,
@@ -17568,7 +17568,7 @@ var require_XDGAppPaths = __commonJS({
17568
17568
  }
17569
17569
  __name(typeOf, "typeOf");
17570
17570
  function Adapt(adapter_) {
17571
- var meta = adapter_.meta, path69 = adapter_.path, xdg = adapter_.xdg;
17571
+ var meta = adapter_.meta, path70 = adapter_.path, xdg = adapter_.xdg;
17572
17572
  var XDGAppPaths_ = /* @__PURE__ */ function() {
17573
17573
  function XDGAppPaths_2(options_) {
17574
17574
  if (options_ === void 0) {
@@ -17591,7 +17591,7 @@ var require_XDGAppPaths = __commonJS({
17591
17591
  meta.mainFilename()
17592
17592
  ];
17593
17593
  var nameFallback = "$eval";
17594
- var name2 = path69.parse(((_c2 = namePriorityList.find(function(e7) {
17594
+ var name2 = path70.parse(((_c2 = namePriorityList.find(function(e7) {
17595
17595
  return isString4(e7);
17596
17596
  })) !== null && _c2 !== void 0 ? _c2 : nameFallback) + suffix).name;
17597
17597
  XDGAppPaths.$name = /* @__PURE__ */ __name(function $name() {
@@ -17612,28 +17612,28 @@ var require_XDGAppPaths = __commonJS({
17612
17612
  }
17613
17613
  __name(finalPathSegment, "finalPathSegment");
17614
17614
  XDGAppPaths.cache = /* @__PURE__ */ __name(function cache6(dirOptions) {
17615
- return path69.join(xdg.cache(), finalPathSegment(dirOptions));
17615
+ return path70.join(xdg.cache(), finalPathSegment(dirOptions));
17616
17616
  }, "cache");
17617
17617
  XDGAppPaths.config = /* @__PURE__ */ __name(function config(dirOptions) {
17618
- return path69.join(xdg.config(), finalPathSegment(dirOptions));
17618
+ return path70.join(xdg.config(), finalPathSegment(dirOptions));
17619
17619
  }, "config");
17620
17620
  XDGAppPaths.data = /* @__PURE__ */ __name(function data(dirOptions) {
17621
- return path69.join(xdg.data(), finalPathSegment(dirOptions));
17621
+ return path70.join(xdg.data(), finalPathSegment(dirOptions));
17622
17622
  }, "data");
17623
17623
  XDGAppPaths.runtime = /* @__PURE__ */ __name(function runtime(dirOptions) {
17624
- return xdg.runtime() ? path69.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
17624
+ return xdg.runtime() ? path70.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
17625
17625
  }, "runtime");
17626
17626
  XDGAppPaths.state = /* @__PURE__ */ __name(function state2(dirOptions) {
17627
- return path69.join(xdg.state(), finalPathSegment(dirOptions));
17627
+ return path70.join(xdg.state(), finalPathSegment(dirOptions));
17628
17628
  }, "state");
17629
17629
  XDGAppPaths.configDirs = /* @__PURE__ */ __name(function configDirs(dirOptions) {
17630
17630
  return xdg.configDirs().map(function(s5) {
17631
- return path69.join(s5, finalPathSegment(dirOptions));
17631
+ return path70.join(s5, finalPathSegment(dirOptions));
17632
17632
  });
17633
17633
  }, "configDirs");
17634
17634
  XDGAppPaths.dataDirs = /* @__PURE__ */ __name(function dataDirs(dirOptions) {
17635
17635
  return xdg.dataDirs().map(function(s5) {
17636
- return path69.join(s5, finalPathSegment(dirOptions));
17636
+ return path70.join(s5, finalPathSegment(dirOptions));
17637
17637
  });
17638
17638
  }, "dataDirs");
17639
17639
  return XDGAppPaths;
@@ -17661,7 +17661,7 @@ var require_XDG = __commonJS({
17661
17661
  exports2.__esModule = true;
17662
17662
  exports2.Adapt = void 0;
17663
17663
  function Adapt(adapter_) {
17664
- var env6 = adapter_.env, osPaths = adapter_.osPaths, path69 = adapter_.path;
17664
+ var env6 = adapter_.env, osPaths = adapter_.osPaths, path70 = adapter_.path;
17665
17665
  var isMacOS = /^darwin$/i.test(adapter_.process.platform);
17666
17666
  var isWinOS = /^win/i.test(adapter_.process.platform);
17667
17667
  function baseDir() {
@@ -17669,7 +17669,7 @@ var require_XDG = __commonJS({
17669
17669
  }
17670
17670
  __name(baseDir, "baseDir");
17671
17671
  function valOrPath(val2, pathSegments) {
17672
- return val2 || path69.join.apply(path69, pathSegments);
17672
+ return val2 || path70.join.apply(path70, pathSegments);
17673
17673
  }
17674
17674
  __name(valOrPath, "valOrPath");
17675
17675
  var linux = /* @__PURE__ */ __name(function() {
@@ -17748,11 +17748,11 @@ var require_XDG = __commonJS({
17748
17748
  XDG.state = extension.state;
17749
17749
  XDG.configDirs = /* @__PURE__ */ __name(function configDirs() {
17750
17750
  var pathList = env6.get("XDG_CONFIG_DIRS");
17751
- return __spreadArray([extension.config()], pathList ? pathList.split(path69.delimiter) : []);
17751
+ return __spreadArray([extension.config()], pathList ? pathList.split(path70.delimiter) : []);
17752
17752
  }, "configDirs");
17753
17753
  XDG.dataDirs = /* @__PURE__ */ __name(function dataDirs() {
17754
17754
  var pathList = env6.get("XDG_DATA_DIRS");
17755
- return __spreadArray([extension.data()], pathList ? pathList.split(path69.delimiter) : []);
17755
+ return __spreadArray([extension.data()], pathList ? pathList.split(path70.delimiter) : []);
17756
17756
  }, "dataDirs");
17757
17757
  return XDG;
17758
17758
  }
@@ -17783,7 +17783,7 @@ var require_OSPaths = __commonJS({
17783
17783
  }
17784
17784
  __name(isEmpty, "isEmpty");
17785
17785
  function Adapt(adapter_) {
17786
- var env6 = adapter_.env, os11 = adapter_.os, path69 = adapter_.path;
17786
+ var env6 = adapter_.env, os11 = adapter_.os, path70 = adapter_.path;
17787
17787
  var isWinOS = /^win/i.test(adapter_.process.platform);
17788
17788
  function normalizePath2(path_) {
17789
17789
  return path_ ? adapter_.path.normalize(adapter_.path.join(path_, ".")) : void 0;
@@ -17798,7 +17798,7 @@ var require_OSPaths = __commonJS({
17798
17798
  typeof os11.homedir === "function" ? os11.homedir() : void 0,
17799
17799
  env6.get("USERPROFILE"),
17800
17800
  env6.get("HOME"),
17801
- env6.get("HOMEDRIVE") || env6.get("HOMEPATH") ? path69.join(env6.get("HOMEDRIVE") || "", env6.get("HOMEPATH") || "") : void 0
17801
+ env6.get("HOMEDRIVE") || env6.get("HOMEPATH") ? path70.join(env6.get("HOMEDRIVE") || "", env6.get("HOMEPATH") || "") : void 0
17802
17802
  ];
17803
17803
  return normalizePath2(priorityList.find(function(v7) {
17804
17804
  return !isEmpty(v7);
@@ -17809,7 +17809,7 @@ var require_OSPaths = __commonJS({
17809
17809
  __name(home, "home");
17810
17810
  function temp() {
17811
17811
  function joinPathToBase(base, segments) {
17812
- return base ? path69.join.apply(path69, __spreadArray([base], segments)) : void 0;
17812
+ return base ? path70.join.apply(path70, __spreadArray([base], segments)) : void 0;
17813
17813
  }
17814
17814
  __name(joinPathToBase, "joinPathToBase");
17815
17815
  function posix2() {
@@ -17916,7 +17916,7 @@ var require_node = __commonJS({
17916
17916
  exports2.__esModule = true;
17917
17917
  exports2.adapter = void 0;
17918
17918
  var os11 = __importStar(require("os"));
17919
- var path69 = __importStar(require("path"));
17919
+ var path70 = __importStar(require("path"));
17920
17920
  exports2.adapter = {
17921
17921
  atImportPermissions: { env: true },
17922
17922
  env: {
@@ -17925,7 +17925,7 @@ var require_node = __commonJS({
17925
17925
  }, "get")
17926
17926
  },
17927
17927
  os: os11,
17928
- path: path69,
17928
+ path: path70,
17929
17929
  process
17930
17930
  };
17931
17931
  }
@@ -17975,7 +17975,7 @@ var require_node2 = __commonJS({
17975
17975
  };
17976
17976
  exports2.__esModule = true;
17977
17977
  exports2.adapter = void 0;
17978
- var path69 = __importStar(require("path"));
17978
+ var path70 = __importStar(require("path"));
17979
17979
  var os_paths_1 = __importDefault(require_mod_cjs());
17980
17980
  exports2.adapter = {
17981
17981
  atImportPermissions: { env: true },
@@ -17985,7 +17985,7 @@ var require_node2 = __commonJS({
17985
17985
  }, "get")
17986
17986
  },
17987
17987
  osPaths: os_paths_1["default"],
17988
- path: path69,
17988
+ path: path70,
17989
17989
  process
17990
17990
  };
17991
17991
  }
@@ -18035,7 +18035,7 @@ var require_node3 = __commonJS({
18035
18035
  };
18036
18036
  exports2.__esModule = true;
18037
18037
  exports2.adapter = void 0;
18038
- var path69 = __importStar(require("path"));
18038
+ var path70 = __importStar(require("path"));
18039
18039
  var xdg_portable_1 = __importDefault(require_mod_cjs2());
18040
18040
  exports2.adapter = {
18041
18041
  atImportPermissions: { env: true, read: true },
@@ -18050,7 +18050,7 @@ var require_node3 = __commonJS({
18050
18050
  return process.pkg ? process.execPath : void 0;
18051
18051
  }, "pkgMainFilename")
18052
18052
  },
18053
- path: path69,
18053
+ path: path70,
18054
18054
  process,
18055
18055
  xdg: xdg_portable_1["default"]
18056
18056
  };
@@ -20376,17 +20376,17 @@ var require_ignore = __commonJS({
20376
20376
  var throwError = /* @__PURE__ */ __name((message, Ctor) => {
20377
20377
  throw new Ctor(message);
20378
20378
  }, "throwError");
20379
- var checkPath2 = /* @__PURE__ */ __name((path69, originalPath, doThrow) => {
20380
- if (!isString4(path69)) {
20379
+ var checkPath2 = /* @__PURE__ */ __name((path70, originalPath, doThrow) => {
20380
+ if (!isString4(path70)) {
20381
20381
  return doThrow(
20382
20382
  `path must be a string, but got \`${originalPath}\``,
20383
20383
  TypeError
20384
20384
  );
20385
20385
  }
20386
- if (!path69) {
20386
+ if (!path70) {
20387
20387
  return doThrow(`path must not be empty`, TypeError);
20388
20388
  }
20389
- if (checkPath2.isNotRelative(path69)) {
20389
+ if (checkPath2.isNotRelative(path70)) {
20390
20390
  const r7 = "`path.relative()`d";
20391
20391
  return doThrow(
20392
20392
  `path should be a ${r7} string, but got "${originalPath}"`,
@@ -20395,7 +20395,7 @@ var require_ignore = __commonJS({
20395
20395
  }
20396
20396
  return true;
20397
20397
  }, "checkPath");
20398
- var isNotRelative = /* @__PURE__ */ __name((path69) => REGEX_TEST_INVALID_PATH.test(path69), "isNotRelative");
20398
+ var isNotRelative = /* @__PURE__ */ __name((path70) => REGEX_TEST_INVALID_PATH.test(path70), "isNotRelative");
20399
20399
  checkPath2.isNotRelative = isNotRelative;
20400
20400
  checkPath2.convert = (p6) => p6;
20401
20401
  var Ignore = class {
@@ -20457,7 +20457,7 @@ var require_ignore = __commonJS({
20457
20457
  // setting `checkUnignored` to `false` could reduce additional
20458
20458
  // path matching.
20459
20459
  // @returns {TestResult} true if a file is ignored
20460
- _testOne(path69, checkUnignored) {
20460
+ _testOne(path70, checkUnignored) {
20461
20461
  let ignored = false;
20462
20462
  let unignored = false;
20463
20463
  this._rules.forEach((rule) => {
@@ -20465,7 +20465,7 @@ var require_ignore = __commonJS({
20465
20465
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
20466
20466
  return;
20467
20467
  }
20468
- const matched = rule.regex.test(path69);
20468
+ const matched = rule.regex.test(path70);
20469
20469
  if (matched) {
20470
20470
  ignored = !negative;
20471
20471
  unignored = negative;
@@ -20478,24 +20478,24 @@ var require_ignore = __commonJS({
20478
20478
  }
20479
20479
  // @returns {TestResult}
20480
20480
  _test(originalPath, cache6, checkUnignored, slices) {
20481
- const path69 = originalPath && checkPath2.convert(originalPath);
20481
+ const path70 = originalPath && checkPath2.convert(originalPath);
20482
20482
  checkPath2(
20483
- path69,
20483
+ path70,
20484
20484
  originalPath,
20485
20485
  this._allowRelativePaths ? RETURN_FALSE : throwError
20486
20486
  );
20487
- return this._t(path69, cache6, checkUnignored, slices);
20487
+ return this._t(path70, cache6, checkUnignored, slices);
20488
20488
  }
20489
- _t(path69, cache6, checkUnignored, slices) {
20490
- if (path69 in cache6) {
20491
- return cache6[path69];
20489
+ _t(path70, cache6, checkUnignored, slices) {
20490
+ if (path70 in cache6) {
20491
+ return cache6[path70];
20492
20492
  }
20493
20493
  if (!slices) {
20494
- slices = path69.split(SLASH2);
20494
+ slices = path70.split(SLASH2);
20495
20495
  }
20496
20496
  slices.pop();
20497
20497
  if (!slices.length) {
20498
- return cache6[path69] = this._testOne(path69, checkUnignored);
20498
+ return cache6[path70] = this._testOne(path70, checkUnignored);
20499
20499
  }
20500
20500
  const parent = this._t(
20501
20501
  slices.join(SLASH2) + SLASH2,
@@ -20503,24 +20503,24 @@ var require_ignore = __commonJS({
20503
20503
  checkUnignored,
20504
20504
  slices
20505
20505
  );
20506
- return cache6[path69] = parent.ignored ? parent : this._testOne(path69, checkUnignored);
20506
+ return cache6[path70] = parent.ignored ? parent : this._testOne(path70, checkUnignored);
20507
20507
  }
20508
- ignores(path69) {
20509
- return this._test(path69, this._ignoreCache, false).ignored;
20508
+ ignores(path70) {
20509
+ return this._test(path70, this._ignoreCache, false).ignored;
20510
20510
  }
20511
20511
  createFilter() {
20512
- return (path69) => !this.ignores(path69);
20512
+ return (path70) => !this.ignores(path70);
20513
20513
  }
20514
20514
  filter(paths) {
20515
20515
  return makeArray(paths).filter(this.createFilter());
20516
20516
  }
20517
20517
  // @returns {TestResult}
20518
- test(path69) {
20519
- return this._test(path69, this._testCache, true);
20518
+ test(path70) {
20519
+ return this._test(path70, this._testCache, true);
20520
20520
  }
20521
20521
  };
20522
20522
  var factory = /* @__PURE__ */ __name((options) => new Ignore(options), "factory");
20523
- var isPathValid = /* @__PURE__ */ __name((path69) => checkPath2(path69 && checkPath2.convert(path69), path69, RETURN_FALSE), "isPathValid");
20523
+ var isPathValid = /* @__PURE__ */ __name((path70) => checkPath2(path70 && checkPath2.convert(path70), path70, RETURN_FALSE), "isPathValid");
20524
20524
  factory.isPathValid = isPathValid;
20525
20525
  factory.default = factory;
20526
20526
  module3.exports = factory;
@@ -20531,7 +20531,7 @@ var require_ignore = __commonJS({
20531
20531
  const makePosix = /* @__PURE__ */ __name((str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"), "makePosix");
20532
20532
  checkPath2.convert = makePosix;
20533
20533
  const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
20534
- checkPath2.isNotRelative = (path69) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path69) || isNotRelative(path69);
20534
+ checkPath2.isNotRelative = (path70) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path70) || isNotRelative(path70);
20535
20535
  }
20536
20536
  }
20537
20537
  });
@@ -20576,11 +20576,11 @@ var require_Mime = __commonJS({
20576
20576
  }
20577
20577
  }
20578
20578
  };
20579
- Mime.prototype.getType = function(path69) {
20580
- path69 = String(path69);
20581
- let last = path69.replace(/^.*[/\\]/, "").toLowerCase();
20579
+ Mime.prototype.getType = function(path70) {
20580
+ path70 = String(path70);
20581
+ let last = path70.replace(/^.*[/\\]/, "").toLowerCase();
20582
20582
  let ext = last.replace(/^.*\./, "").toLowerCase();
20583
- let hasPath = last.length < path69.length;
20583
+ let hasPath = last.length < path70.length;
20584
20584
  let hasDot = ext.length < last.length - 1;
20585
20585
  return (hasDot || !hasPath) && this._types[ext] || null;
20586
20586
  };
@@ -20705,21 +20705,21 @@ var require_parser = __commonJS({
20705
20705
  this._buf = null;
20706
20706
  return this.obj;
20707
20707
  }
20708
- next(fn) {
20709
- if (typeof fn !== "function") throw new ParserError("Tried to set state to non-existent state: " + JSON.stringify(fn));
20710
- this.state.parser = fn;
20708
+ next(fn2) {
20709
+ if (typeof fn2 !== "function") throw new ParserError("Tried to set state to non-existent state: " + JSON.stringify(fn2));
20710
+ this.state.parser = fn2;
20711
20711
  }
20712
- goto(fn) {
20713
- this.next(fn);
20712
+ goto(fn2) {
20713
+ this.next(fn2);
20714
20714
  return this.runOne();
20715
20715
  }
20716
- call(fn, returnWith) {
20716
+ call(fn2, returnWith) {
20717
20717
  if (returnWith) this.next(returnWith);
20718
20718
  this.stack.push(this.state);
20719
- this.state = new State(fn);
20719
+ this.state = new State(fn2);
20720
20720
  }
20721
- callNow(fn, returnWith) {
20722
- this.call(fn, returnWith);
20721
+ callNow(fn2, returnWith) {
20722
+ this.call(fn2, returnWith);
20723
20723
  return this.runOne();
20724
20724
  }
20725
20725
  return(value) {
@@ -22804,7 +22804,7 @@ var require_main2 = __commonJS({
22804
22804
  "../../node_modules/.pnpm/dotenv@16.3.1/node_modules/dotenv/lib/main.js"(exports2, module3) {
22805
22805
  init_import_meta_url();
22806
22806
  var fs23 = require("fs");
22807
- var path69 = require("path");
22807
+ var path70 = require("path");
22808
22808
  var os11 = require("os");
22809
22809
  var crypto8 = require("crypto");
22810
22810
  var packageJson = require_package();
@@ -22903,7 +22903,7 @@ var require_main2 = __commonJS({
22903
22903
  }
22904
22904
  __name(_instructions, "_instructions");
22905
22905
  function _vaultPath(options) {
22906
- let dotenvPath = path69.resolve(process.cwd(), ".env");
22906
+ let dotenvPath = path70.resolve(process.cwd(), ".env");
22907
22907
  if (options && options.path && options.path.length > 0) {
22908
22908
  dotenvPath = options.path;
22909
22909
  }
@@ -22911,7 +22911,7 @@ var require_main2 = __commonJS({
22911
22911
  }
22912
22912
  __name(_vaultPath, "_vaultPath");
22913
22913
  function _resolveHome(envPath) {
22914
- return envPath[0] === "~" ? path69.join(os11.homedir(), envPath.slice(1)) : envPath;
22914
+ return envPath[0] === "~" ? path70.join(os11.homedir(), envPath.slice(1)) : envPath;
22915
22915
  }
22916
22916
  __name(_resolveHome, "_resolveHome");
22917
22917
  function _configVault(options) {
@@ -22926,7 +22926,7 @@ var require_main2 = __commonJS({
22926
22926
  }
22927
22927
  __name(_configVault, "_configVault");
22928
22928
  function configDotenv(options) {
22929
- let dotenvPath = path69.resolve(process.cwd(), ".env");
22929
+ let dotenvPath = path70.resolve(process.cwd(), ".env");
22930
22930
  let encoding = "utf8";
22931
22931
  const debug = Boolean(options && options.debug);
22932
22932
  if (options) {
@@ -24201,11 +24201,11 @@ var require_text = __commonJS({
24201
24201
  }
24202
24202
  }
24203
24203
  __name(asyncGeneratorStep, "asyncGeneratorStep");
24204
- function _asyncToGenerator(fn) {
24204
+ function _asyncToGenerator(fn2) {
24205
24205
  return function() {
24206
24206
  var self2 = this, args = arguments;
24207
24207
  return new Promise(function(resolve24, reject) {
24208
- var gen = fn.apply(self2, args);
24208
+ var gen = fn2.apply(self2, args);
24209
24209
  function _next(value) {
24210
24210
  asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "next", value);
24211
24211
  }
@@ -24993,11 +24993,11 @@ var require_date = __commonJS({
24993
24993
  }
24994
24994
  }
24995
24995
  __name(asyncGeneratorStep, "asyncGeneratorStep");
24996
- function _asyncToGenerator(fn) {
24996
+ function _asyncToGenerator(fn2) {
24997
24997
  return function() {
24998
24998
  var self2 = this, args = arguments;
24999
24999
  return new Promise(function(resolve24, reject) {
25000
- var gen = fn.apply(self2, args);
25000
+ var gen = fn2.apply(self2, args);
25001
25001
  function _next(value) {
25002
25002
  asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "next", value);
25003
25003
  }
@@ -25227,11 +25227,11 @@ var require_number = __commonJS({
25227
25227
  }
25228
25228
  }
25229
25229
  __name(asyncGeneratorStep, "asyncGeneratorStep");
25230
- function _asyncToGenerator(fn) {
25230
+ function _asyncToGenerator(fn2) {
25231
25231
  return function() {
25232
25232
  var self2 = this, args = arguments;
25233
25233
  return new Promise(function(resolve24, reject) {
25234
- var gen = fn.apply(self2, args);
25234
+ var gen = fn2.apply(self2, args);
25235
25235
  function _next(value) {
25236
25236
  asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "next", value);
25237
25237
  }
@@ -25685,11 +25685,11 @@ var require_autocomplete = __commonJS({
25685
25685
  }
25686
25686
  }
25687
25687
  __name(asyncGeneratorStep, "asyncGeneratorStep");
25688
- function _asyncToGenerator(fn) {
25688
+ function _asyncToGenerator(fn2) {
25689
25689
  return function() {
25690
25690
  var self2 = this, args = arguments;
25691
25691
  return new Promise(function(resolve24, reject) {
25692
- var gen = fn.apply(self2, args);
25692
+ var gen = fn2.apply(self2, args);
25693
25693
  function _next(value) {
25694
25694
  asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "next", value);
25695
25695
  }
@@ -26364,11 +26364,11 @@ var require_dist2 = __commonJS({
26364
26364
  }
26365
26365
  }
26366
26366
  __name(asyncGeneratorStep, "asyncGeneratorStep");
26367
- function _asyncToGenerator(fn) {
26367
+ function _asyncToGenerator(fn2) {
26368
26368
  return function() {
26369
26369
  var self2 = this, args = arguments;
26370
26370
  return new Promise(function(resolve24, reject) {
26371
- var gen = fn.apply(self2, args);
26371
+ var gen = fn2.apply(self2, args);
26372
26372
  function _next(value) {
26373
26373
  asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "next", value);
26374
26374
  }
@@ -28816,13 +28816,13 @@ var require_define_lazy_prop = __commonJS({
28816
28816
  "../../node_modules/.pnpm/define-lazy-prop@2.0.0/node_modules/define-lazy-prop/index.js"(exports2, module3) {
28817
28817
  "use strict";
28818
28818
  init_import_meta_url();
28819
- module3.exports = (object, propertyName, fn) => {
28819
+ module3.exports = (object, propertyName, fn2) => {
28820
28820
  const define = /* @__PURE__ */ __name((value) => Object.defineProperty(object, propertyName, { value, enumerable: true, writable: true }), "define");
28821
28821
  Object.defineProperty(object, propertyName, {
28822
28822
  configurable: true,
28823
28823
  enumerable: true,
28824
28824
  get() {
28825
- const result = fn();
28825
+ const result = fn2();
28826
28826
  define(result);
28827
28827
  return result;
28828
28828
  },
@@ -28839,13 +28839,13 @@ var require_define_lazy_prop = __commonJS({
28839
28839
  var require_open = __commonJS({
28840
28840
  "../../node_modules/.pnpm/open@8.4.0/node_modules/open/index.js"(exports2, module3) {
28841
28841
  init_import_meta_url();
28842
- var path69 = require("path");
28842
+ var path70 = require("path");
28843
28843
  var childProcess2 = require("child_process");
28844
28844
  var { promises: fs23, constants: fsConstants } = require("fs");
28845
28845
  var isWsl = require_is_wsl();
28846
28846
  var isDocker = require_is_docker();
28847
28847
  var defineLazyProperty = require_define_lazy_prop();
28848
- var localXdgOpenPath = path69.join(__dirname, "xdg-open");
28848
+ var localXdgOpenPath = path70.join(__dirname, "xdg-open");
28849
28849
  var { platform: platform3, arch: arch2 } = process;
28850
28850
  var getWslDrivesMountPoint = /* @__PURE__ */ (() => {
28851
28851
  const defaultMountPoint = "/mnt/";
@@ -29276,8 +29276,8 @@ var require_path_parse = __commonJS({
29276
29276
  var require_node_modules_paths = __commonJS({
29277
29277
  "../../node_modules/.pnpm/resolve@1.22.8/node_modules/resolve/lib/node-modules-paths.js"(exports2, module3) {
29278
29278
  init_import_meta_url();
29279
- var path69 = require("path");
29280
- var parse7 = path69.parse || require_path_parse();
29279
+ var path70 = require("path");
29280
+ var parse7 = path70.parse || require_path_parse();
29281
29281
  var getNodeModulesDirs = /* @__PURE__ */ __name(function getNodeModulesDirs2(absoluteStart, modules) {
29282
29282
  var prefix = "/";
29283
29283
  if (/^([A-Za-z]:)/.test(absoluteStart)) {
@@ -29293,7 +29293,7 @@ var require_node_modules_paths = __commonJS({
29293
29293
  }
29294
29294
  return paths.reduce(function(dirs, aPath) {
29295
29295
  return dirs.concat(modules.map(function(moduleDir) {
29296
- return path69.resolve(prefix, aPath, moduleDir);
29296
+ return path70.resolve(prefix, aPath, moduleDir);
29297
29297
  }));
29298
29298
  }, []);
29299
29299
  }, "getNodeModulesDirs");
@@ -29659,7 +29659,7 @@ var require_async = __commonJS({
29659
29659
  init_import_meta_url();
29660
29660
  var fs23 = require("fs");
29661
29661
  var getHomedir = require_homedir();
29662
- var path69 = require("path");
29662
+ var path70 = require("path");
29663
29663
  var caller = require_caller();
29664
29664
  var nodeModulesPaths = require_node_modules_paths();
29665
29665
  var normalizeOptions = require_normalize_options();
@@ -29668,8 +29668,8 @@ var require_async = __commonJS({
29668
29668
  var homedir3 = getHomedir();
29669
29669
  var defaultPaths = /* @__PURE__ */ __name(function() {
29670
29670
  return [
29671
- path69.join(homedir3, ".node_modules"),
29672
- path69.join(homedir3, ".node_libraries")
29671
+ path70.join(homedir3, ".node_modules"),
29672
+ path70.join(homedir3, ".node_libraries")
29673
29673
  ];
29674
29674
  }, "defaultPaths");
29675
29675
  var defaultIsFile = /* @__PURE__ */ __name(function isFile(file, cb2) {
@@ -29719,7 +29719,7 @@ var require_async = __commonJS({
29719
29719
  var getPackageCandidates = /* @__PURE__ */ __name(function getPackageCandidates2(x6, start, opts) {
29720
29720
  var dirs = nodeModulesPaths(start, opts, x6);
29721
29721
  for (var i5 = 0; i5 < dirs.length; i5++) {
29722
- dirs[i5] = path69.join(dirs[i5], x6);
29722
+ dirs[i5] = path70.join(dirs[i5], x6);
29723
29723
  }
29724
29724
  return dirs;
29725
29725
  }, "getPackageCandidates");
@@ -29751,10 +29751,10 @@ var require_async = __commonJS({
29751
29751
  var packageIterator = opts.packageIterator;
29752
29752
  var extensions = opts.extensions || [".js"];
29753
29753
  var includeCoreModules = opts.includeCoreModules !== false;
29754
- var basedir = opts.basedir || path69.dirname(caller());
29754
+ var basedir = opts.basedir || path70.dirname(caller());
29755
29755
  var parent = opts.filename || basedir;
29756
29756
  opts.paths = opts.paths || defaultPaths();
29757
- var absoluteStart = path69.resolve(basedir);
29757
+ var absoluteStart = path70.resolve(basedir);
29758
29758
  maybeRealpath(
29759
29759
  realpath2,
29760
29760
  absoluteStart,
@@ -29767,7 +29767,7 @@ var require_async = __commonJS({
29767
29767
  var res;
29768
29768
  function init3(basedir2) {
29769
29769
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x6)) {
29770
- res = path69.resolve(basedir2, x6);
29770
+ res = path70.resolve(basedir2, x6);
29771
29771
  if (x6 === "." || x6 === ".." || x6.slice(-1) === "/") res += "/";
29772
29772
  if (/\/$/.test(x6) && res === basedir2) {
29773
29773
  loadAsDirectory(res, opts.package, onfile);
@@ -29827,17 +29827,17 @@ var require_async = __commonJS({
29827
29827
  var file = x8 + exts2[0];
29828
29828
  var pkg = loadPackage;
29829
29829
  if (pkg) onpkg(null, pkg);
29830
- else loadpkg(path69.dirname(file), onpkg);
29830
+ else loadpkg(path70.dirname(file), onpkg);
29831
29831
  function onpkg(err2, pkg_, dir) {
29832
29832
  pkg = pkg_;
29833
29833
  if (err2) return cb3(err2);
29834
29834
  if (dir && pkg && opts.pathFilter) {
29835
- var rfile = path69.relative(dir, file);
29835
+ var rfile = path70.relative(dir, file);
29836
29836
  var rel = rfile.slice(0, rfile.length - exts2[0].length);
29837
29837
  var r7 = opts.pathFilter(pkg, x8, rel);
29838
29838
  if (r7) return load(
29839
29839
  [""].concat(extensions.slice()),
29840
- path69.resolve(dir, r7),
29840
+ path70.resolve(dir, r7),
29841
29841
  pkg
29842
29842
  );
29843
29843
  }
@@ -29861,10 +29861,10 @@ var require_async = __commonJS({
29861
29861
  }
29862
29862
  if (/[/\\]node_modules[/\\]*$/.test(dir)) return cb3(null);
29863
29863
  maybeRealpath(realpath2, dir, opts, function(unwrapErr, pkgdir) {
29864
- if (unwrapErr) return loadpkg(path69.dirname(dir), cb3);
29865
- var pkgfile = path69.join(pkgdir, "package.json");
29864
+ if (unwrapErr) return loadpkg(path70.dirname(dir), cb3);
29865
+ var pkgfile = path70.join(pkgdir, "package.json");
29866
29866
  isFile(pkgfile, function(err2, ex) {
29867
- if (!ex) return loadpkg(path69.dirname(dir), cb3);
29867
+ if (!ex) return loadpkg(path70.dirname(dir), cb3);
29868
29868
  readPackage(readFile18, pkgfile, function(err3, pkgParam) {
29869
29869
  if (err3) cb3(err3);
29870
29870
  var pkg = pkgParam;
@@ -29886,10 +29886,10 @@ var require_async = __commonJS({
29886
29886
  }
29887
29887
  maybeRealpath(realpath2, x7, opts, function(unwrapErr, pkgdir) {
29888
29888
  if (unwrapErr) return cb3(unwrapErr);
29889
- var pkgfile = path69.join(pkgdir, "package.json");
29889
+ var pkgfile = path70.join(pkgdir, "package.json");
29890
29890
  isFile(pkgfile, function(err2, ex) {
29891
29891
  if (err2) return cb3(err2);
29892
- if (!ex) return loadAsFile(path69.join(x7, "index"), fpkg, cb3);
29892
+ if (!ex) return loadAsFile(path70.join(x7, "index"), fpkg, cb3);
29893
29893
  readPackage(readFile18, pkgfile, function(err3, pkgParam) {
29894
29894
  if (err3) return cb3(err3);
29895
29895
  var pkg = pkgParam;
@@ -29905,20 +29905,20 @@ var require_async = __commonJS({
29905
29905
  if (pkg.main === "." || pkg.main === "./") {
29906
29906
  pkg.main = "index";
29907
29907
  }
29908
- loadAsFile(path69.resolve(x7, pkg.main), pkg, function(err4, m6, pkg2) {
29908
+ loadAsFile(path70.resolve(x7, pkg.main), pkg, function(err4, m6, pkg2) {
29909
29909
  if (err4) return cb3(err4);
29910
29910
  if (m6) return cb3(null, m6, pkg2);
29911
- if (!pkg2) return loadAsFile(path69.join(x7, "index"), pkg2, cb3);
29912
- var dir = path69.resolve(x7, pkg2.main);
29911
+ if (!pkg2) return loadAsFile(path70.join(x7, "index"), pkg2, cb3);
29912
+ var dir = path70.resolve(x7, pkg2.main);
29913
29913
  loadAsDirectory(dir, pkg2, function(err5, n6, pkg3) {
29914
29914
  if (err5) return cb3(err5);
29915
29915
  if (n6) return cb3(null, n6, pkg3);
29916
- loadAsFile(path69.join(x7, "index"), pkg3, cb3);
29916
+ loadAsFile(path70.join(x7, "index"), pkg3, cb3);
29917
29917
  });
29918
29918
  });
29919
29919
  return;
29920
29920
  }
29921
- loadAsFile(path69.join(x7, "/index"), pkg, cb3);
29921
+ loadAsFile(path70.join(x7, "/index"), pkg, cb3);
29922
29922
  });
29923
29923
  });
29924
29924
  });
@@ -29927,7 +29927,7 @@ var require_async = __commonJS({
29927
29927
  function processDirs(cb3, dirs) {
29928
29928
  if (dirs.length === 0) return cb3(null, void 0);
29929
29929
  var dir = dirs[0];
29930
- isDirectory2(path69.dirname(dir), isdir);
29930
+ isDirectory2(path70.dirname(dir), isdir);
29931
29931
  function isdir(err2, isdir2) {
29932
29932
  if (err2) return cb3(err2);
29933
29933
  if (!isdir2) return processDirs(cb3, dirs.slice(1));
@@ -30161,7 +30161,7 @@ var require_sync = __commonJS({
30161
30161
  init_import_meta_url();
30162
30162
  var isCore = require_is_core_module();
30163
30163
  var fs23 = require("fs");
30164
- var path69 = require("path");
30164
+ var path70 = require("path");
30165
30165
  var getHomedir = require_homedir();
30166
30166
  var caller = require_caller();
30167
30167
  var nodeModulesPaths = require_node_modules_paths();
@@ -30170,8 +30170,8 @@ var require_sync = __commonJS({
30170
30170
  var homedir3 = getHomedir();
30171
30171
  var defaultPaths = /* @__PURE__ */ __name(function() {
30172
30172
  return [
30173
- path69.join(homedir3, ".node_modules"),
30174
- path69.join(homedir3, ".node_libraries")
30173
+ path70.join(homedir3, ".node_modules"),
30174
+ path70.join(homedir3, ".node_libraries")
30175
30175
  ];
30176
30176
  }, "defaultPaths");
30177
30177
  var defaultIsFile = /* @__PURE__ */ __name(function isFile(file) {
@@ -30219,7 +30219,7 @@ var require_sync = __commonJS({
30219
30219
  var getPackageCandidates = /* @__PURE__ */ __name(function getPackageCandidates2(x6, start, opts) {
30220
30220
  var dirs = nodeModulesPaths(start, opts, x6);
30221
30221
  for (var i5 = 0; i5 < dirs.length; i5++) {
30222
- dirs[i5] = path69.join(dirs[i5], x6);
30222
+ dirs[i5] = path70.join(dirs[i5], x6);
30223
30223
  }
30224
30224
  return dirs;
30225
30225
  }, "getPackageCandidates");
@@ -30239,12 +30239,12 @@ var require_sync = __commonJS({
30239
30239
  var packageIterator = opts.packageIterator;
30240
30240
  var extensions = opts.extensions || [".js"];
30241
30241
  var includeCoreModules = opts.includeCoreModules !== false;
30242
- var basedir = opts.basedir || path69.dirname(caller());
30242
+ var basedir = opts.basedir || path70.dirname(caller());
30243
30243
  var parent = opts.filename || basedir;
30244
30244
  opts.paths = opts.paths || defaultPaths();
30245
- var absoluteStart = maybeRealpathSync(realpathSync4, path69.resolve(basedir), opts);
30245
+ var absoluteStart = maybeRealpathSync(realpathSync4, path70.resolve(basedir), opts);
30246
30246
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x6)) {
30247
- var res = path69.resolve(absoluteStart, x6);
30247
+ var res = path70.resolve(absoluteStart, x6);
30248
30248
  if (x6 === "." || x6 === ".." || x6.slice(-1) === "/") res += "/";
30249
30249
  var m6 = loadAsFileSync(res) || loadAsDirectorySync(res);
30250
30250
  if (m6) return maybeRealpathSync(realpathSync4, m6, opts);
@@ -30258,12 +30258,12 @@ var require_sync = __commonJS({
30258
30258
  err.code = "MODULE_NOT_FOUND";
30259
30259
  throw err;
30260
30260
  function loadAsFileSync(x7) {
30261
- var pkg = loadpkg(path69.dirname(x7));
30261
+ var pkg = loadpkg(path70.dirname(x7));
30262
30262
  if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
30263
- var rfile = path69.relative(pkg.dir, x7);
30263
+ var rfile = path70.relative(pkg.dir, x7);
30264
30264
  var r7 = opts.pathFilter(pkg.pkg, x7, rfile);
30265
30265
  if (r7) {
30266
- x7 = path69.resolve(pkg.dir, r7);
30266
+ x7 = path70.resolve(pkg.dir, r7);
30267
30267
  }
30268
30268
  }
30269
30269
  if (isFile(x7)) {
@@ -30283,9 +30283,9 @@ var require_sync = __commonJS({
30283
30283
  return;
30284
30284
  }
30285
30285
  if (/[/\\]node_modules[/\\]*$/.test(dir)) return;
30286
- var pkgfile = path69.join(maybeRealpathSync(realpathSync4, dir, opts), "package.json");
30286
+ var pkgfile = path70.join(maybeRealpathSync(realpathSync4, dir, opts), "package.json");
30287
30287
  if (!isFile(pkgfile)) {
30288
- return loadpkg(path69.dirname(dir));
30288
+ return loadpkg(path70.dirname(dir));
30289
30289
  }
30290
30290
  var pkg = readPackageSync(readFileSync29, pkgfile);
30291
30291
  if (pkg && opts.packageFilter) {
@@ -30299,7 +30299,7 @@ var require_sync = __commonJS({
30299
30299
  }
30300
30300
  __name(loadpkg, "loadpkg");
30301
30301
  function loadAsDirectorySync(x7) {
30302
- var pkgfile = path69.join(maybeRealpathSync(realpathSync4, x7, opts), "/package.json");
30302
+ var pkgfile = path70.join(maybeRealpathSync(realpathSync4, x7, opts), "/package.json");
30303
30303
  if (isFile(pkgfile)) {
30304
30304
  try {
30305
30305
  var pkg = readPackageSync(readFileSync29, pkgfile);
@@ -30322,15 +30322,15 @@ var require_sync = __commonJS({
30322
30322
  pkg.main = "index";
30323
30323
  }
30324
30324
  try {
30325
- var m7 = loadAsFileSync(path69.resolve(x7, pkg.main));
30325
+ var m7 = loadAsFileSync(path70.resolve(x7, pkg.main));
30326
30326
  if (m7) return m7;
30327
- var n7 = loadAsDirectorySync(path69.resolve(x7, pkg.main));
30327
+ var n7 = loadAsDirectorySync(path70.resolve(x7, pkg.main));
30328
30328
  if (n7) return n7;
30329
30329
  } catch (e7) {
30330
30330
  }
30331
30331
  }
30332
30332
  }
30333
- return loadAsFileSync(path69.join(x7, "/index"));
30333
+ return loadAsFileSync(path70.join(x7, "/index"));
30334
30334
  }
30335
30335
  __name(loadAsDirectorySync, "loadAsDirectorySync");
30336
30336
  function loadNodeModulesSync(x7, start) {
@@ -30340,7 +30340,7 @@ var require_sync = __commonJS({
30340
30340
  var dirs = packageIterator ? packageIterator(x7, start, thunk, opts) : thunk();
30341
30341
  for (var i5 = 0; i5 < dirs.length; i5++) {
30342
30342
  var dir = dirs[i5];
30343
- if (isDirectory2(path69.dirname(dir))) {
30343
+ if (isDirectory2(path70.dirname(dir))) {
30344
30344
  var m7 = loadAsFileSync(dir);
30345
30345
  if (m7) return m7;
30346
30346
  var n7 = loadAsDirectorySync(dir);
@@ -30611,7 +30611,7 @@ var require_utils3 = __commonJS({
30611
30611
  init_import_meta_url();
30612
30612
  var fs23 = require("fs");
30613
30613
  var ini = require_ini();
30614
- var path69 = require("path");
30614
+ var path70 = require("path");
30615
30615
  var stripJsonComments = require_strip_json_comments();
30616
30616
  var parse7 = exports2.parse = function(content) {
30617
30617
  if (/^\s*{/.test(content))
@@ -30625,7 +30625,7 @@ var require_utils3 = __commonJS({
30625
30625
  for (var i5 in args)
30626
30626
  if ("string" !== typeof args[i5])
30627
30627
  return;
30628
- var file2 = path69.join.apply(null, args);
30628
+ var file2 = path70.join.apply(null, args);
30629
30629
  var content;
30630
30630
  try {
30631
30631
  return fs23.readFileSync(file2, "utf-8");
@@ -30663,15 +30663,15 @@ var require_utils3 = __commonJS({
30663
30663
  return obj;
30664
30664
  };
30665
30665
  var find = exports2.find = function() {
30666
- var rel = path69.join.apply(null, [].slice.call(arguments));
30666
+ var rel = path70.join.apply(null, [].slice.call(arguments));
30667
30667
  function find2(start, rel2) {
30668
- var file2 = path69.join(start, rel2);
30668
+ var file2 = path70.join(start, rel2);
30669
30669
  try {
30670
30670
  fs23.statSync(file2);
30671
30671
  return file2;
30672
30672
  } catch (err) {
30673
- if (path69.dirname(start) !== start)
30674
- return find2(path69.dirname(start), rel2);
30673
+ if (path70.dirname(start) !== start)
30674
+ return find2(path70.dirname(start), rel2);
30675
30675
  }
30676
30676
  }
30677
30677
  __name(find2, "find");
@@ -31170,8 +31170,8 @@ var require_registry_auth_token = __commonJS({
31170
31170
  return void 0;
31171
31171
  }
31172
31172
  __name(getLegacyAuthInfo, "getLegacyAuthInfo");
31173
- function normalizePath2(path69) {
31174
- return path69[path69.length - 1] === "/" ? path69 : path69 + "/";
31173
+ function normalizePath2(path70) {
31174
+ return path70[path70.length - 1] === "/" ? path70 : path70 + "/";
31175
31175
  }
31176
31176
  __name(normalizePath2, "normalizePath");
31177
31177
  function getAuthInfoForUrl(regUrl, npmrc) {
@@ -32228,7 +32228,7 @@ var require_receiver2 = __commonJS({
32228
32228
  "../../node_modules/.pnpm/ws@8.18.0/node_modules/ws/lib/receiver.js"(exports2, module3) {
32229
32229
  "use strict";
32230
32230
  init_import_meta_url();
32231
- var { Writable: Writable4 } = require("stream");
32231
+ var { Writable: Writable5 } = require("stream");
32232
32232
  var PerMessageDeflate = require_permessage_deflate();
32233
32233
  var {
32234
32234
  BINARY_TYPES,
@@ -32246,7 +32246,7 @@ var require_receiver2 = __commonJS({
32246
32246
  var GET_DATA = 4;
32247
32247
  var INFLATING = 5;
32248
32248
  var DEFER_EVENT = 6;
32249
- var Receiver2 = class extends Writable4 {
32249
+ var Receiver2 = class extends Writable5 {
32250
32250
  static {
32251
32251
  __name(this, "Receiver");
32252
32252
  }
@@ -43517,16 +43517,16 @@ var require_rsa = __commonJS({
43517
43517
  return 2;
43518
43518
  }
43519
43519
  __name(_getMillerRabinTests, "_getMillerRabinTests");
43520
- function _detectNodeCrypto(fn) {
43521
- return forge.util.isNodejs && typeof _crypto[fn] === "function";
43520
+ function _detectNodeCrypto(fn2) {
43521
+ return forge.util.isNodejs && typeof _crypto[fn2] === "function";
43522
43522
  }
43523
43523
  __name(_detectNodeCrypto, "_detectNodeCrypto");
43524
- function _detectSubtleCrypto(fn) {
43525
- return typeof util5.globalScope !== "undefined" && typeof util5.globalScope.crypto === "object" && typeof util5.globalScope.crypto.subtle === "object" && typeof util5.globalScope.crypto.subtle[fn] === "function";
43524
+ function _detectSubtleCrypto(fn2) {
43525
+ return typeof util5.globalScope !== "undefined" && typeof util5.globalScope.crypto === "object" && typeof util5.globalScope.crypto.subtle === "object" && typeof util5.globalScope.crypto.subtle[fn2] === "function";
43526
43526
  }
43527
43527
  __name(_detectSubtleCrypto, "_detectSubtleCrypto");
43528
- function _detectSubtleMsCrypto(fn) {
43529
- return typeof util5.globalScope !== "undefined" && typeof util5.globalScope.msCrypto === "object" && typeof util5.globalScope.msCrypto.subtle === "object" && typeof util5.globalScope.msCrypto.subtle[fn] === "function";
43528
+ function _detectSubtleMsCrypto(fn2) {
43529
+ return typeof util5.globalScope !== "undefined" && typeof util5.globalScope.msCrypto === "object" && typeof util5.globalScope.msCrypto.subtle === "object" && typeof util5.globalScope.msCrypto.subtle[fn2] === "function";
43530
43530
  }
43531
43531
  __name(_detectSubtleMsCrypto, "_detectSubtleMsCrypto");
43532
43532
  function _intToUint8Array(x6) {
@@ -53266,17 +53266,17 @@ var require_eventemitter3 = __commonJS({
53266
53266
  Events.prototype = /* @__PURE__ */ Object.create(null);
53267
53267
  if (!new Events().__proto__) prefix = false;
53268
53268
  }
53269
- function EE(fn, context2, once) {
53270
- this.fn = fn;
53269
+ function EE(fn2, context2, once) {
53270
+ this.fn = fn2;
53271
53271
  this.context = context2;
53272
53272
  this.once = once || false;
53273
53273
  }
53274
53274
  __name(EE, "EE");
53275
- function addListener(emitter, event, fn, context2, once) {
53276
- if (typeof fn !== "function") {
53275
+ function addListener(emitter, event, fn2, context2, once) {
53276
+ if (typeof fn2 !== "function") {
53277
53277
  throw new TypeError("The listener must be a function");
53278
53278
  }
53279
- var listener = new EE(fn, context2 || emitter, once), evt = prefix ? prefix + event : event;
53279
+ var listener = new EE(fn2, context2 || emitter, once), evt = prefix ? prefix + event : event;
53280
53280
  if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
53281
53281
  else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
53282
53282
  else emitter._events[evt] = [emitter._events[evt], listener];
@@ -53370,27 +53370,27 @@ var require_eventemitter3 = __commonJS({
53370
53370
  }
53371
53371
  return true;
53372
53372
  }, "emit");
53373
- EventEmitter5.prototype.on = /* @__PURE__ */ __name(function on(event, fn, context2) {
53374
- return addListener(this, event, fn, context2, false);
53373
+ EventEmitter5.prototype.on = /* @__PURE__ */ __name(function on(event, fn2, context2) {
53374
+ return addListener(this, event, fn2, context2, false);
53375
53375
  }, "on");
53376
- EventEmitter5.prototype.once = /* @__PURE__ */ __name(function once(event, fn, context2) {
53377
- return addListener(this, event, fn, context2, true);
53376
+ EventEmitter5.prototype.once = /* @__PURE__ */ __name(function once(event, fn2, context2) {
53377
+ return addListener(this, event, fn2, context2, true);
53378
53378
  }, "once");
53379
- EventEmitter5.prototype.removeListener = /* @__PURE__ */ __name(function removeListener(event, fn, context2, once) {
53379
+ EventEmitter5.prototype.removeListener = /* @__PURE__ */ __name(function removeListener(event, fn2, context2, once) {
53380
53380
  var evt = prefix ? prefix + event : event;
53381
53381
  if (!this._events[evt]) return this;
53382
- if (!fn) {
53382
+ if (!fn2) {
53383
53383
  clearEvent(this, evt);
53384
53384
  return this;
53385
53385
  }
53386
53386
  var listeners = this._events[evt];
53387
53387
  if (listeners.fn) {
53388
- if (listeners.fn === fn && (!once || listeners.once) && (!context2 || listeners.context === context2)) {
53388
+ if (listeners.fn === fn2 && (!once || listeners.once) && (!context2 || listeners.context === context2)) {
53389
53389
  clearEvent(this, evt);
53390
53390
  }
53391
53391
  } else {
53392
53392
  for (var i5 = 0, events6 = [], length = listeners.length; i5 < length; i5++) {
53393
- if (listeners[i5].fn !== fn || once && !listeners[i5].once || context2 && listeners[i5].context !== context2) {
53393
+ if (listeners[i5].fn !== fn2 || once && !listeners[i5].once || context2 && listeners[i5].context !== context2) {
53394
53394
  events6.push(listeners[i5]);
53395
53395
  }
53396
53396
  }
@@ -53427,7 +53427,7 @@ var require_windows = __commonJS({
53427
53427
  module3.exports = isexe;
53428
53428
  isexe.sync = sync;
53429
53429
  var fs23 = require("fs");
53430
- function checkPathExt(path69, options) {
53430
+ function checkPathExt(path70, options) {
53431
53431
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
53432
53432
  if (!pathext) {
53433
53433
  return true;
@@ -53438,28 +53438,28 @@ var require_windows = __commonJS({
53438
53438
  }
53439
53439
  for (var i5 = 0; i5 < pathext.length; i5++) {
53440
53440
  var p6 = pathext[i5].toLowerCase();
53441
- if (p6 && path69.substr(-p6.length).toLowerCase() === p6) {
53441
+ if (p6 && path70.substr(-p6.length).toLowerCase() === p6) {
53442
53442
  return true;
53443
53443
  }
53444
53444
  }
53445
53445
  return false;
53446
53446
  }
53447
53447
  __name(checkPathExt, "checkPathExt");
53448
- function checkStat(stat10, path69, options) {
53448
+ function checkStat(stat10, path70, options) {
53449
53449
  if (!stat10.isSymbolicLink() && !stat10.isFile()) {
53450
53450
  return false;
53451
53451
  }
53452
- return checkPathExt(path69, options);
53452
+ return checkPathExt(path70, options);
53453
53453
  }
53454
53454
  __name(checkStat, "checkStat");
53455
- function isexe(path69, options, cb2) {
53456
- fs23.stat(path69, function(er, stat10) {
53457
- cb2(er, er ? false : checkStat(stat10, path69, options));
53455
+ function isexe(path70, options, cb2) {
53456
+ fs23.stat(path70, function(er, stat10) {
53457
+ cb2(er, er ? false : checkStat(stat10, path70, options));
53458
53458
  });
53459
53459
  }
53460
53460
  __name(isexe, "isexe");
53461
- function sync(path69, options) {
53462
- return checkStat(fs23.statSync(path69), path69, options);
53461
+ function sync(path70, options) {
53462
+ return checkStat(fs23.statSync(path70), path70, options);
53463
53463
  }
53464
53464
  __name(sync, "sync");
53465
53465
  }
@@ -53472,14 +53472,14 @@ var require_mode = __commonJS({
53472
53472
  module3.exports = isexe;
53473
53473
  isexe.sync = sync;
53474
53474
  var fs23 = require("fs");
53475
- function isexe(path69, options, cb2) {
53476
- fs23.stat(path69, function(er, stat10) {
53475
+ function isexe(path70, options, cb2) {
53476
+ fs23.stat(path70, function(er, stat10) {
53477
53477
  cb2(er, er ? false : checkStat(stat10, options));
53478
53478
  });
53479
53479
  }
53480
53480
  __name(isexe, "isexe");
53481
- function sync(path69, options) {
53482
- return checkStat(fs23.statSync(path69), options);
53481
+ function sync(path70, options) {
53482
+ return checkStat(fs23.statSync(path70), options);
53483
53483
  }
53484
53484
  __name(sync, "sync");
53485
53485
  function checkStat(stat10, options) {
@@ -53516,7 +53516,7 @@ var require_isexe = __commonJS({
53516
53516
  }
53517
53517
  module3.exports = isexe;
53518
53518
  isexe.sync = sync;
53519
- function isexe(path69, options, cb2) {
53519
+ function isexe(path70, options, cb2) {
53520
53520
  if (typeof options === "function") {
53521
53521
  cb2 = options;
53522
53522
  options = {};
@@ -53526,7 +53526,7 @@ var require_isexe = __commonJS({
53526
53526
  throw new TypeError("callback not provided");
53527
53527
  }
53528
53528
  return new Promise(function(resolve24, reject) {
53529
- isexe(path69, options || {}, function(er, is) {
53529
+ isexe(path70, options || {}, function(er, is) {
53530
53530
  if (er) {
53531
53531
  reject(er);
53532
53532
  } else {
@@ -53535,7 +53535,7 @@ var require_isexe = __commonJS({
53535
53535
  });
53536
53536
  });
53537
53537
  }
53538
- core(path69, options || {}, function(er, is) {
53538
+ core(path70, options || {}, function(er, is) {
53539
53539
  if (er) {
53540
53540
  if (er.code === "EACCES" || options && options.ignoreErrors) {
53541
53541
  er = null;
@@ -53546,9 +53546,9 @@ var require_isexe = __commonJS({
53546
53546
  });
53547
53547
  }
53548
53548
  __name(isexe, "isexe");
53549
- function sync(path69, options) {
53549
+ function sync(path70, options) {
53550
53550
  try {
53551
- return core.sync(path69, options || {});
53551
+ return core.sync(path70, options || {});
53552
53552
  } catch (er) {
53553
53553
  if (options && options.ignoreErrors || er.code === "EACCES") {
53554
53554
  return false;
@@ -53566,7 +53566,7 @@ var require_which = __commonJS({
53566
53566
  "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module3) {
53567
53567
  init_import_meta_url();
53568
53568
  var isWindows4 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
53569
- var path69 = require("path");
53569
+ var path70 = require("path");
53570
53570
  var COLON = isWindows4 ? ";" : ":";
53571
53571
  var isexe = require_isexe();
53572
53572
  var getNotFoundError = /* @__PURE__ */ __name((cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }), "getNotFoundError");
@@ -53604,7 +53604,7 @@ var require_which = __commonJS({
53604
53604
  return opt.all && found.length ? resolve24(found) : reject(getNotFoundError(cmd));
53605
53605
  const ppRaw = pathEnv[i5];
53606
53606
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
53607
- const pCmd = path69.join(pathPart, cmd);
53607
+ const pCmd = path70.join(pathPart, cmd);
53608
53608
  const p6 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
53609
53609
  resolve24(subStep(p6, i5, 0));
53610
53610
  }), "step");
@@ -53631,7 +53631,7 @@ var require_which = __commonJS({
53631
53631
  for (let i5 = 0; i5 < pathEnv.length; i5++) {
53632
53632
  const ppRaw = pathEnv[i5];
53633
53633
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
53634
- const pCmd = path69.join(pathPart, cmd);
53634
+ const pCmd = path70.join(pathPart, cmd);
53635
53635
  const p6 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
53636
53636
  for (let j6 = 0; j6 < pathExt.length; j6++) {
53637
53637
  const cur = p6 + pathExt[j6];
@@ -53681,7 +53681,7 @@ var require_resolveCommand = __commonJS({
53681
53681
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module3) {
53682
53682
  "use strict";
53683
53683
  init_import_meta_url();
53684
- var path69 = require("path");
53684
+ var path70 = require("path");
53685
53685
  var which = require_which();
53686
53686
  var getPathKey = require_path_key();
53687
53687
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -53699,7 +53699,7 @@ var require_resolveCommand = __commonJS({
53699
53699
  try {
53700
53700
  resolved = which.sync(parsed.command, {
53701
53701
  path: env6[getPathKey({ env: env6 })],
53702
- pathExt: withoutPathExt ? path69.delimiter : void 0
53702
+ pathExt: withoutPathExt ? path70.delimiter : void 0
53703
53703
  });
53704
53704
  } catch (e7) {
53705
53705
  } finally {
@@ -53708,7 +53708,7 @@ var require_resolveCommand = __commonJS({
53708
53708
  }
53709
53709
  }
53710
53710
  if (resolved) {
53711
- resolved = path69.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
53711
+ resolved = path70.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
53712
53712
  }
53713
53713
  return resolved;
53714
53714
  }
@@ -53769,8 +53769,8 @@ var require_shebang_command = __commonJS({
53769
53769
  if (!match2) {
53770
53770
  return null;
53771
53771
  }
53772
- const [path69, argument] = match2[0].replace(/#! ?/, "").split(" ");
53773
- const binary = path69.split("/").pop();
53772
+ const [path70, argument] = match2[0].replace(/#! ?/, "").split(" ");
53773
+ const binary = path70.split("/").pop();
53774
53774
  if (binary === "env") {
53775
53775
  return argument;
53776
53776
  }
@@ -53808,7 +53808,7 @@ var require_parse3 = __commonJS({
53808
53808
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module3) {
53809
53809
  "use strict";
53810
53810
  init_import_meta_url();
53811
- var path69 = require("path");
53811
+ var path70 = require("path");
53812
53812
  var resolveCommand = require_resolveCommand();
53813
53813
  var escape2 = require_escape();
53814
53814
  var readShebang = require_readShebang();
@@ -53834,7 +53834,7 @@ var require_parse3 = __commonJS({
53834
53834
  const needsShell = !isExecutableRegExp.test(commandFile);
53835
53835
  if (parsed.options.forceShell || needsShell) {
53836
53836
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
53837
- parsed.command = path69.normalize(parsed.command);
53837
+ parsed.command = path70.normalize(parsed.command);
53838
53838
  parsed.command = escape2.command(parsed.command);
53839
53839
  parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
53840
53840
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -54112,7 +54112,7 @@ var require_command_exists = __commonJS({
54112
54112
  var exec3 = require("child_process").exec;
54113
54113
  var execSync4 = require("child_process").execSync;
54114
54114
  var fs23 = require("fs");
54115
- var path69 = require("path");
54115
+ var path70 = require("path");
54116
54116
  var access4 = fs23.access;
54117
54117
  var accessSync = fs23.accessSync;
54118
54118
  var constants4 = fs23.constants || fs23;
@@ -54216,8 +54216,8 @@ var require_command_exists = __commonJS({
54216
54216
  cleanInput = /* @__PURE__ */ __name(function(s5) {
54217
54217
  var isPathName = /[\\]/.test(s5);
54218
54218
  if (isPathName) {
54219
- var dirname17 = '"' + path69.dirname(s5) + '"';
54220
- var basename7 = '"' + path69.basename(s5) + '"';
54219
+ var dirname17 = '"' + path70.dirname(s5) + '"';
54220
+ var basename7 = '"' + path70.basename(s5) + '"';
54221
54221
  return dirname17 + ":" + basename7;
54222
54222
  }
54223
54223
  return '"' + s5 + '"';
@@ -54401,8 +54401,8 @@ var require_md5_file = __commonJS({
54401
54401
  var crypto8 = require("crypto");
54402
54402
  var fs23 = require("fs");
54403
54403
  var BUFFER_SIZE = 8192;
54404
- function md5FileSync(path69) {
54405
- const fd = fs23.openSync(path69, "r");
54404
+ function md5FileSync(path70) {
54405
+ const fd = fs23.openSync(path70, "r");
54406
54406
  const hash = crypto8.createHash("md5");
54407
54407
  const buffer = Buffer.alloc(BUFFER_SIZE);
54408
54408
  try {
@@ -54417,10 +54417,10 @@ var require_md5_file = __commonJS({
54417
54417
  return hash.digest("hex");
54418
54418
  }
54419
54419
  __name(md5FileSync, "md5FileSync");
54420
- function md5File2(path69) {
54420
+ function md5File2(path70) {
54421
54421
  return new Promise((resolve24, reject) => {
54422
54422
  const output = crypto8.createHash("md5");
54423
- const input = fs23.createReadStream(path69);
54423
+ const input = fs23.createReadStream(path70);
54424
54424
  input.on("error", (err) => {
54425
54425
  reject(err);
54426
54426
  });
@@ -54914,8 +54914,8 @@ var require_minimatch = __commonJS({
54914
54914
  return new Minimatch2(pattern, options).match(p6);
54915
54915
  };
54916
54916
  module3.exports = minimatch;
54917
- var path69 = require_path();
54918
- minimatch.sep = path69.sep;
54917
+ var path70 = require_path();
54918
+ minimatch.sep = path70.sep;
54919
54919
  var GLOBSTAR = Symbol("globstar **");
54920
54920
  minimatch.GLOBSTAR = GLOBSTAR;
54921
54921
  var expand = require_brace_expansion();
@@ -55430,8 +55430,8 @@ var require_minimatch = __commonJS({
55430
55430
  if (this.empty) return f5 === "";
55431
55431
  if (f5 === "/" && partial) return true;
55432
55432
  const options = this.options;
55433
- if (path69.sep !== "/") {
55434
- f5 = f5.split(path69.sep).join("/");
55433
+ if (path70.sep !== "/") {
55434
+ f5 = f5.split(path70.sep).join("/");
55435
55435
  }
55436
55436
  f5 = f5.split(slashSplit);
55437
55437
  this.debug(this.pattern, "split", f5);
@@ -56702,7 +56702,7 @@ var init_esm = __esm({
56702
56702
  this._directoryFilter = normalizeFilter(opts.directoryFilter);
56703
56703
  const statMethod = opts.lstat ? import_fs10.lstatSync : import_fs10.statSync;
56704
56704
  if (wantBigintFsStats) {
56705
- this._stat = (path69) => statMethod(path69, { bigint: true });
56705
+ this._stat = (path70) => statMethod(path70, { bigint: true });
56706
56706
  } else {
56707
56707
  this._stat = statMethod;
56708
56708
  }
@@ -56727,8 +56727,8 @@ var init_esm = __esm({
56727
56727
  const par = this.parent;
56728
56728
  const fil = par && par.files;
56729
56729
  if (fil && fil.length > 0) {
56730
- const { path: path69, depth } = par;
56731
- const slice = fil.splice(0, batch).map((dirent) => this._formatEntry(dirent, path69));
56730
+ const { path: path70, depth } = par;
56731
+ const slice = fil.splice(0, batch).map((dirent) => this._formatEntry(dirent, path70));
56732
56732
  for (const entry of slice) {
56733
56733
  if (!entry) {
56734
56734
  batch--;
@@ -56769,20 +56769,20 @@ var init_esm = __esm({
56769
56769
  this.reading = false;
56770
56770
  }
56771
56771
  }
56772
- async _exploreDir(path69, depth) {
56772
+ async _exploreDir(path70, depth) {
56773
56773
  let files;
56774
56774
  try {
56775
- files = await (0, import_promises24.readdir)(path69, this._rdOptions);
56775
+ files = await (0, import_promises24.readdir)(path70, this._rdOptions);
56776
56776
  } catch (error2) {
56777
56777
  this._onError(error2);
56778
56778
  }
56779
- return { files, depth, path: path69 };
56779
+ return { files, depth, path: path70 };
56780
56780
  }
56781
- _formatEntry(dirent, path69) {
56781
+ _formatEntry(dirent, path70) {
56782
56782
  let entry;
56783
56783
  const basename7 = this._isDirent ? dirent.name : dirent;
56784
56784
  try {
56785
- const fullPath = (0, import_path14.resolve)((0, import_path14.join)(path69, basename7));
56785
+ const fullPath = (0, import_path14.resolve)((0, import_path14.join)(path70, basename7));
56786
56786
  entry = { path: (0, import_path14.relative)(this._root, fullPath), fullPath, basename: basename7 };
56787
56787
  entry[this._statsProp] = this._isDirent ? dirent : this._stat(fullPath);
56788
56788
  } catch (err) {
@@ -56855,16 +56855,16 @@ var init_esm = __esm({
56855
56855
  });
56856
56856
 
56857
56857
  // ../../node_modules/.pnpm/chokidar@4.0.1/node_modules/chokidar/esm/handler.js
56858
- function createFsWatchInstance(path69, options, listener, errHandler, emitRaw) {
56858
+ function createFsWatchInstance(path70, options, listener, errHandler, emitRaw) {
56859
56859
  const handleEvent = /* @__PURE__ */ __name((rawEvent, evPath) => {
56860
- listener(path69);
56861
- emitRaw(rawEvent, evPath, { watchedPath: path69 });
56862
- if (evPath && path69 !== evPath) {
56863
- fsWatchBroadcast(sysPath.resolve(path69, evPath), KEY_LISTENERS, sysPath.join(path69, evPath));
56860
+ listener(path70);
56861
+ emitRaw(rawEvent, evPath, { watchedPath: path70 });
56862
+ if (evPath && path70 !== evPath) {
56863
+ fsWatchBroadcast(sysPath.resolve(path70, evPath), KEY_LISTENERS, sysPath.join(path70, evPath));
56864
56864
  }
56865
56865
  }, "handleEvent");
56866
56866
  try {
56867
- return (0, import_fs11.watch)(path69, {
56867
+ return (0, import_fs11.watch)(path70, {
56868
56868
  persistent: options.persistent
56869
56869
  }, handleEvent);
56870
56870
  } catch (error2) {
@@ -57172,11 +57172,11 @@ var init_handler = __esm({
57172
57172
  "zipx"
57173
57173
  ]);
57174
57174
  isBinaryPath = /* @__PURE__ */ __name((filePath) => binaryExtensions.has(sysPath.extname(filePath).slice(1).toLowerCase()), "isBinaryPath");
57175
- foreach = /* @__PURE__ */ __name((val2, fn) => {
57175
+ foreach = /* @__PURE__ */ __name((val2, fn2) => {
57176
57176
  if (val2 instanceof Set) {
57177
- val2.forEach(fn);
57177
+ val2.forEach(fn2);
57178
57178
  } else {
57179
- fn(val2);
57179
+ fn2(val2);
57180
57180
  }
57181
57181
  }, "foreach");
57182
57182
  addAndConvert = /* @__PURE__ */ __name((main2, prop, item) => {
@@ -57213,12 +57213,12 @@ var init_handler = __esm({
57213
57213
  listener(val1, val2, val3);
57214
57214
  });
57215
57215
  }, "fsWatchBroadcast");
57216
- setFsWatchListener = /* @__PURE__ */ __name((path69, fullPath, options, handlers2) => {
57216
+ setFsWatchListener = /* @__PURE__ */ __name((path70, fullPath, options, handlers2) => {
57217
57217
  const { listener, errHandler, rawEmitter } = handlers2;
57218
57218
  let cont = FsWatchInstances.get(fullPath);
57219
57219
  let watcher;
57220
57220
  if (!options.persistent) {
57221
- watcher = createFsWatchInstance(path69, options, listener, errHandler, rawEmitter);
57221
+ watcher = createFsWatchInstance(path70, options, listener, errHandler, rawEmitter);
57222
57222
  if (!watcher)
57223
57223
  return;
57224
57224
  return watcher.close.bind(watcher);
@@ -57229,7 +57229,7 @@ var init_handler = __esm({
57229
57229
  addAndConvert(cont, KEY_RAW, rawEmitter);
57230
57230
  } else {
57231
57231
  watcher = createFsWatchInstance(
57232
- path69,
57232
+ path70,
57233
57233
  options,
57234
57234
  fsWatchBroadcast.bind(null, fullPath, KEY_LISTENERS),
57235
57235
  errHandler,
@@ -57244,7 +57244,7 @@ var init_handler = __esm({
57244
57244
  cont.watcherUnusable = true;
57245
57245
  if (isWindows2 && error2.code === "EPERM") {
57246
57246
  try {
57247
- const fd = await (0, import_promises25.open)(path69, "r");
57247
+ const fd = await (0, import_promises25.open)(path70, "r");
57248
57248
  await fd.close();
57249
57249
  broadcastErr(error2);
57250
57250
  } catch (err) {
@@ -57275,7 +57275,7 @@ var init_handler = __esm({
57275
57275
  };
57276
57276
  }, "setFsWatchListener");
57277
57277
  FsWatchFileInstances = /* @__PURE__ */ new Map();
57278
- setFsWatchFileListener = /* @__PURE__ */ __name((path69, fullPath, options, handlers2) => {
57278
+ setFsWatchFileListener = /* @__PURE__ */ __name((path70, fullPath, options, handlers2) => {
57279
57279
  const { listener, rawEmitter } = handlers2;
57280
57280
  let cont = FsWatchFileInstances.get(fullPath);
57281
57281
  const copts = cont && cont.options;
@@ -57297,7 +57297,7 @@ var init_handler = __esm({
57297
57297
  });
57298
57298
  const currmtime = curr.mtimeMs;
57299
57299
  if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) {
57300
- foreach(cont.listeners, (listener2) => listener2(path69, curr));
57300
+ foreach(cont.listeners, (listener2) => listener2(path70, curr));
57301
57301
  }
57302
57302
  })
57303
57303
  };
@@ -57328,13 +57328,13 @@ var init_handler = __esm({
57328
57328
  * @param listener on fs change
57329
57329
  * @returns closer for the watcher instance
57330
57330
  */
57331
- _watchWithNodeFs(path69, listener) {
57331
+ _watchWithNodeFs(path70, listener) {
57332
57332
  const opts = this.fsw.options;
57333
- const directory = sysPath.dirname(path69);
57334
- const basename7 = sysPath.basename(path69);
57333
+ const directory = sysPath.dirname(path70);
57334
+ const basename7 = sysPath.basename(path70);
57335
57335
  const parent = this.fsw._getWatchedDir(directory);
57336
57336
  parent.add(basename7);
57337
- const absolutePath = sysPath.resolve(path69);
57337
+ const absolutePath = sysPath.resolve(path70);
57338
57338
  const options = {
57339
57339
  persistent: opts.persistent
57340
57340
  };
@@ -57344,12 +57344,12 @@ var init_handler = __esm({
57344
57344
  if (opts.usePolling) {
57345
57345
  const enableBin = opts.interval !== opts.binaryInterval;
57346
57346
  options.interval = enableBin && isBinaryPath(basename7) ? opts.binaryInterval : opts.interval;
57347
- closer = setFsWatchFileListener(path69, absolutePath, options, {
57347
+ closer = setFsWatchFileListener(path70, absolutePath, options, {
57348
57348
  listener,
57349
57349
  rawEmitter: this.fsw._emitRaw
57350
57350
  });
57351
57351
  } else {
57352
- closer = setFsWatchListener(path69, absolutePath, options, {
57352
+ closer = setFsWatchListener(path70, absolutePath, options, {
57353
57353
  listener,
57354
57354
  errHandler: this._boundHandleError,
57355
57355
  rawEmitter: this.fsw._emitRaw
@@ -57371,7 +57371,7 @@ var init_handler = __esm({
57371
57371
  let prevStats = stats;
57372
57372
  if (parent.has(basename7))
57373
57373
  return;
57374
- const listener = /* @__PURE__ */ __name(async (path69, newStats) => {
57374
+ const listener = /* @__PURE__ */ __name(async (path70, newStats) => {
57375
57375
  if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5))
57376
57376
  return;
57377
57377
  if (!newStats || newStats.mtimeMs === 0) {
@@ -57385,11 +57385,11 @@ var init_handler = __esm({
57385
57385
  this.fsw._emit(EV.CHANGE, file, newStats2);
57386
57386
  }
57387
57387
  if ((isMacos || isLinux) && prevStats.ino !== newStats2.ino) {
57388
- this.fsw._closeFile(path69);
57388
+ this.fsw._closeFile(path70);
57389
57389
  prevStats = newStats2;
57390
57390
  const closer2 = this._watchWithNodeFs(file, listener);
57391
57391
  if (closer2)
57392
- this.fsw._addPathCloser(path69, closer2);
57392
+ this.fsw._addPathCloser(path70, closer2);
57393
57393
  } else {
57394
57394
  prevStats = newStats2;
57395
57395
  }
@@ -57421,7 +57421,7 @@ var init_handler = __esm({
57421
57421
  * @param item basename of this item
57422
57422
  * @returns true if no more processing is needed for this entry.
57423
57423
  */
57424
- async _handleSymlink(entry, directory, path69, item) {
57424
+ async _handleSymlink(entry, directory, path70, item) {
57425
57425
  if (this.fsw.closed) {
57426
57426
  return;
57427
57427
  }
@@ -57431,7 +57431,7 @@ var init_handler = __esm({
57431
57431
  this.fsw._incrReadyCount();
57432
57432
  let linkPath;
57433
57433
  try {
57434
- linkPath = await (0, import_promises25.realpath)(path69);
57434
+ linkPath = await (0, import_promises25.realpath)(path70);
57435
57435
  } catch (e7) {
57436
57436
  this.fsw._emitReady();
57437
57437
  return true;
@@ -57441,12 +57441,12 @@ var init_handler = __esm({
57441
57441
  if (dir.has(item)) {
57442
57442
  if (this.fsw._symlinkPaths.get(full) !== linkPath) {
57443
57443
  this.fsw._symlinkPaths.set(full, linkPath);
57444
- this.fsw._emit(EV.CHANGE, path69, entry.stats);
57444
+ this.fsw._emit(EV.CHANGE, path70, entry.stats);
57445
57445
  }
57446
57446
  } else {
57447
57447
  dir.add(item);
57448
57448
  this.fsw._symlinkPaths.set(full, linkPath);
57449
- this.fsw._emit(EV.ADD, path69, entry.stats);
57449
+ this.fsw._emit(EV.ADD, path70, entry.stats);
57450
57450
  }
57451
57451
  this.fsw._emitReady();
57452
57452
  return true;
@@ -57475,9 +57475,9 @@ var init_handler = __esm({
57475
57475
  return;
57476
57476
  }
57477
57477
  const item = entry.path;
57478
- let path69 = sysPath.join(directory, item);
57478
+ let path70 = sysPath.join(directory, item);
57479
57479
  current.add(item);
57480
- if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path69, item)) {
57480
+ if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path70, item)) {
57481
57481
  return;
57482
57482
  }
57483
57483
  if (this.fsw.closed) {
@@ -57486,8 +57486,8 @@ var init_handler = __esm({
57486
57486
  }
57487
57487
  if (item === target || !target && !previous.has(item)) {
57488
57488
  this.fsw._incrReadyCount();
57489
- path69 = sysPath.join(dir, sysPath.relative(dir, path69));
57490
- this._addToNodeFs(path69, initialAdd, wh, depth + 1);
57489
+ path70 = sysPath.join(dir, sysPath.relative(dir, path70));
57490
+ this._addToNodeFs(path70, initialAdd, wh, depth + 1);
57491
57491
  }
57492
57492
  }).on(EV.ERROR, this._boundHandleError);
57493
57493
  return new Promise((resolve24, reject) => {
@@ -57556,13 +57556,13 @@ var init_handler = __esm({
57556
57556
  * @param depth Child path actually targeted for watch
57557
57557
  * @param target Child path actually targeted for watch
57558
57558
  */
57559
- async _addToNodeFs(path69, initialAdd, priorWh, depth, target) {
57559
+ async _addToNodeFs(path70, initialAdd, priorWh, depth, target) {
57560
57560
  const ready = this.fsw._emitReady;
57561
- if (this.fsw._isIgnored(path69) || this.fsw.closed) {
57561
+ if (this.fsw._isIgnored(path70) || this.fsw.closed) {
57562
57562
  ready();
57563
57563
  return false;
57564
57564
  }
57565
- const wh = this.fsw._getWatchHelpers(path69);
57565
+ const wh = this.fsw._getWatchHelpers(path70);
57566
57566
  if (priorWh) {
57567
57567
  wh.filterPath = (entry) => priorWh.filterPath(entry);
57568
57568
  wh.filterDir = (entry) => priorWh.filterDir(entry);
@@ -57578,8 +57578,8 @@ var init_handler = __esm({
57578
57578
  const follow = this.fsw.options.followSymlinks;
57579
57579
  let closer;
57580
57580
  if (stats.isDirectory()) {
57581
- const absPath = sysPath.resolve(path69);
57582
- const targetPath = follow ? await (0, import_promises25.realpath)(path69) : path69;
57581
+ const absPath = sysPath.resolve(path70);
57582
+ const targetPath = follow ? await (0, import_promises25.realpath)(path70) : path70;
57583
57583
  if (this.fsw.closed)
57584
57584
  return;
57585
57585
  closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
@@ -57589,29 +57589,29 @@ var init_handler = __esm({
57589
57589
  this.fsw._symlinkPaths.set(absPath, targetPath);
57590
57590
  }
57591
57591
  } else if (stats.isSymbolicLink()) {
57592
- const targetPath = follow ? await (0, import_promises25.realpath)(path69) : path69;
57592
+ const targetPath = follow ? await (0, import_promises25.realpath)(path70) : path70;
57593
57593
  if (this.fsw.closed)
57594
57594
  return;
57595
57595
  const parent = sysPath.dirname(wh.watchPath);
57596
57596
  this.fsw._getWatchedDir(parent).add(wh.watchPath);
57597
57597
  this.fsw._emit(EV.ADD, wh.watchPath, stats);
57598
- closer = await this._handleDir(parent, stats, initialAdd, depth, path69, wh, targetPath);
57598
+ closer = await this._handleDir(parent, stats, initialAdd, depth, path70, wh, targetPath);
57599
57599
  if (this.fsw.closed)
57600
57600
  return;
57601
57601
  if (targetPath !== void 0) {
57602
- this.fsw._symlinkPaths.set(sysPath.resolve(path69), targetPath);
57602
+ this.fsw._symlinkPaths.set(sysPath.resolve(path70), targetPath);
57603
57603
  }
57604
57604
  } else {
57605
57605
  closer = this._handleFile(wh.watchPath, stats, initialAdd);
57606
57606
  }
57607
57607
  ready();
57608
57608
  if (closer)
57609
- this.fsw._addPathCloser(path69, closer);
57609
+ this.fsw._addPathCloser(path70, closer);
57610
57610
  return false;
57611
57611
  } catch (error2) {
57612
57612
  if (this.fsw._handleError(error2)) {
57613
57613
  ready();
57614
- return path69;
57614
+ return path70;
57615
57615
  }
57616
57616
  }
57617
57617
  }
@@ -57646,26 +57646,26 @@ function createPattern(matcher) {
57646
57646
  }
57647
57647
  return () => false;
57648
57648
  }
57649
- function normalizePath(path69) {
57650
- if (typeof path69 !== "string")
57649
+ function normalizePath(path70) {
57650
+ if (typeof path70 !== "string")
57651
57651
  throw new Error("string expected");
57652
- path69 = sysPath2.normalize(path69);
57653
- path69 = path69.replace(/\\/g, "/");
57652
+ path70 = sysPath2.normalize(path70);
57653
+ path70 = path70.replace(/\\/g, "/");
57654
57654
  let prepend = false;
57655
- if (path69.startsWith("//"))
57655
+ if (path70.startsWith("//"))
57656
57656
  prepend = true;
57657
57657
  const DOUBLE_SLASH_RE2 = /\/\//;
57658
- while (path69.match(DOUBLE_SLASH_RE2))
57659
- path69 = path69.replace(DOUBLE_SLASH_RE2, "/");
57658
+ while (path70.match(DOUBLE_SLASH_RE2))
57659
+ path70 = path70.replace(DOUBLE_SLASH_RE2, "/");
57660
57660
  if (prepend)
57661
- path69 = "/" + path69;
57662
- return path69;
57661
+ path70 = "/" + path70;
57662
+ return path70;
57663
57663
  }
57664
57664
  function matchPatterns(patterns, testString, stats) {
57665
- const path69 = normalizePath(testString);
57665
+ const path70 = normalizePath(testString);
57666
57666
  for (let index = 0; index < patterns.length; index++) {
57667
57667
  const pattern = patterns[index];
57668
- if (pattern(path69, stats)) {
57668
+ if (pattern(path70, stats)) {
57669
57669
  return true;
57670
57670
  }
57671
57671
  }
@@ -57735,19 +57735,19 @@ var init_esm2 = __esm({
57735
57735
  }
57736
57736
  return str;
57737
57737
  }, "toUnix");
57738
- normalizePathToUnix = /* @__PURE__ */ __name((path69) => toUnix(sysPath2.normalize(toUnix(path69))), "normalizePathToUnix");
57739
- normalizeIgnored = /* @__PURE__ */ __name((cwd2 = "") => (path69) => {
57740
- if (typeof path69 === "string") {
57741
- return normalizePathToUnix(sysPath2.isAbsolute(path69) ? path69 : sysPath2.join(cwd2, path69));
57738
+ normalizePathToUnix = /* @__PURE__ */ __name((path70) => toUnix(sysPath2.normalize(toUnix(path70))), "normalizePathToUnix");
57739
+ normalizeIgnored = /* @__PURE__ */ __name((cwd2 = "") => (path70) => {
57740
+ if (typeof path70 === "string") {
57741
+ return normalizePathToUnix(sysPath2.isAbsolute(path70) ? path70 : sysPath2.join(cwd2, path70));
57742
57742
  } else {
57743
- return path69;
57743
+ return path70;
57744
57744
  }
57745
57745
  }, "normalizeIgnored");
57746
- getAbsolutePath = /* @__PURE__ */ __name((path69, cwd2) => {
57747
- if (sysPath2.isAbsolute(path69)) {
57748
- return path69;
57746
+ getAbsolutePath = /* @__PURE__ */ __name((path70, cwd2) => {
57747
+ if (sysPath2.isAbsolute(path70)) {
57748
+ return path70;
57749
57749
  }
57750
- return sysPath2.join(cwd2, path69);
57750
+ return sysPath2.join(cwd2, path70);
57751
57751
  }, "getAbsolutePath");
57752
57752
  EMPTY_SET = Object.freeze(/* @__PURE__ */ new Set());
57753
57753
  DirEntry = class {
@@ -57808,10 +57808,10 @@ var init_esm2 = __esm({
57808
57808
  static {
57809
57809
  __name(this, "WatchHelper");
57810
57810
  }
57811
- constructor(path69, follow, fsw) {
57811
+ constructor(path70, follow, fsw) {
57812
57812
  this.fsw = fsw;
57813
- const watchPath = path69;
57814
- this.path = path69 = path69.replace(REPLACER_RE, "");
57813
+ const watchPath = path70;
57814
+ this.path = path70 = path70.replace(REPLACER_RE, "");
57815
57815
  this.watchPath = watchPath;
57816
57816
  this.fullWatchPath = sysPath2.resolve(watchPath);
57817
57817
  this.dirParts = [];
@@ -57936,20 +57936,20 @@ var init_esm2 = __esm({
57936
57936
  this._closePromise = void 0;
57937
57937
  let paths = unifyPaths(paths_);
57938
57938
  if (cwd2) {
57939
- paths = paths.map((path69) => {
57940
- const absPath = getAbsolutePath(path69, cwd2);
57939
+ paths = paths.map((path70) => {
57940
+ const absPath = getAbsolutePath(path70, cwd2);
57941
57941
  return absPath;
57942
57942
  });
57943
57943
  }
57944
- paths.forEach((path69) => {
57945
- this._removeIgnoredPath(path69);
57944
+ paths.forEach((path70) => {
57945
+ this._removeIgnoredPath(path70);
57946
57946
  });
57947
57947
  this._userIgnored = void 0;
57948
57948
  if (!this._readyCount)
57949
57949
  this._readyCount = 0;
57950
57950
  this._readyCount += paths.length;
57951
- Promise.all(paths.map(async (path69) => {
57952
- const res = await this._nodeFsHandler._addToNodeFs(path69, !_internal, void 0, 0, _origAdd);
57951
+ Promise.all(paths.map(async (path70) => {
57952
+ const res = await this._nodeFsHandler._addToNodeFs(path70, !_internal, void 0, 0, _origAdd);
57953
57953
  if (res)
57954
57954
  this._emitReady();
57955
57955
  return res;
@@ -57971,17 +57971,17 @@ var init_esm2 = __esm({
57971
57971
  return this;
57972
57972
  const paths = unifyPaths(paths_);
57973
57973
  const { cwd: cwd2 } = this.options;
57974
- paths.forEach((path69) => {
57975
- if (!sysPath2.isAbsolute(path69) && !this._closers.has(path69)) {
57974
+ paths.forEach((path70) => {
57975
+ if (!sysPath2.isAbsolute(path70) && !this._closers.has(path70)) {
57976
57976
  if (cwd2)
57977
- path69 = sysPath2.join(cwd2, path69);
57978
- path69 = sysPath2.resolve(path69);
57977
+ path70 = sysPath2.join(cwd2, path70);
57978
+ path70 = sysPath2.resolve(path70);
57979
57979
  }
57980
- this._closePath(path69);
57981
- this._addIgnoredPath(path69);
57982
- if (this._watched.has(path69)) {
57980
+ this._closePath(path70);
57981
+ this._addIgnoredPath(path70);
57982
+ if (this._watched.has(path70)) {
57983
57983
  this._addIgnoredPath({
57984
- path: path69,
57984
+ path: path70,
57985
57985
  recursive: true
57986
57986
  });
57987
57987
  }
@@ -58045,38 +58045,38 @@ var init_esm2 = __esm({
58045
58045
  * @param stats arguments to be passed with event
58046
58046
  * @returns the error if defined, otherwise the value of the FSWatcher instance's `closed` flag
58047
58047
  */
58048
- async _emit(event, path69, stats) {
58048
+ async _emit(event, path70, stats) {
58049
58049
  if (this.closed)
58050
58050
  return;
58051
58051
  const opts = this.options;
58052
58052
  if (isWindows2)
58053
- path69 = sysPath2.normalize(path69);
58053
+ path70 = sysPath2.normalize(path70);
58054
58054
  if (opts.cwd)
58055
- path69 = sysPath2.relative(opts.cwd, path69);
58056
- const args = [event, path69];
58055
+ path70 = sysPath2.relative(opts.cwd, path70);
58056
+ const args = [event, path70];
58057
58057
  if (stats != null)
58058
58058
  args.push(stats);
58059
58059
  const awf = opts.awaitWriteFinish;
58060
58060
  let pw;
58061
- if (awf && (pw = this._pendingWrites.get(path69))) {
58061
+ if (awf && (pw = this._pendingWrites.get(path70))) {
58062
58062
  pw.lastChange = /* @__PURE__ */ new Date();
58063
58063
  return this;
58064
58064
  }
58065
58065
  if (opts.atomic) {
58066
58066
  if (event === EVENTS.UNLINK) {
58067
- this._pendingUnlinks.set(path69, args);
58067
+ this._pendingUnlinks.set(path70, args);
58068
58068
  setTimeout(() => {
58069
- this._pendingUnlinks.forEach((entry, path70) => {
58069
+ this._pendingUnlinks.forEach((entry, path71) => {
58070
58070
  this.emit(...entry);
58071
58071
  this.emit(EVENTS.ALL, ...entry);
58072
- this._pendingUnlinks.delete(path70);
58072
+ this._pendingUnlinks.delete(path71);
58073
58073
  });
58074
58074
  }, typeof opts.atomic === "number" ? opts.atomic : 100);
58075
58075
  return this;
58076
58076
  }
58077
- if (event === EVENTS.ADD && this._pendingUnlinks.has(path69)) {
58077
+ if (event === EVENTS.ADD && this._pendingUnlinks.has(path70)) {
58078
58078
  event = args[0] = EVENTS.CHANGE;
58079
- this._pendingUnlinks.delete(path69);
58079
+ this._pendingUnlinks.delete(path70);
58080
58080
  }
58081
58081
  }
58082
58082
  if (awf && (event === EVENTS.ADD || event === EVENTS.CHANGE) && this._readyEmitted) {
@@ -58094,16 +58094,16 @@ var init_esm2 = __esm({
58094
58094
  this.emitWithAll(event, args);
58095
58095
  }
58096
58096
  }, "awfEmit");
58097
- this._awaitWriteFinish(path69, awf.stabilityThreshold, event, awfEmit);
58097
+ this._awaitWriteFinish(path70, awf.stabilityThreshold, event, awfEmit);
58098
58098
  return this;
58099
58099
  }
58100
58100
  if (event === EVENTS.CHANGE) {
58101
- const isThrottled = !this._throttle(EVENTS.CHANGE, path69, 50);
58101
+ const isThrottled = !this._throttle(EVENTS.CHANGE, path70, 50);
58102
58102
  if (isThrottled)
58103
58103
  return this;
58104
58104
  }
58105
58105
  if (opts.alwaysStat && stats === void 0 && (event === EVENTS.ADD || event === EVENTS.ADD_DIR || event === EVENTS.CHANGE)) {
58106
- const fullPath = opts.cwd ? sysPath2.join(opts.cwd, path69) : path69;
58106
+ const fullPath = opts.cwd ? sysPath2.join(opts.cwd, path70) : path70;
58107
58107
  let stats2;
58108
58108
  try {
58109
58109
  stats2 = await (0, import_promises26.stat)(fullPath);
@@ -58134,23 +58134,23 @@ var init_esm2 = __esm({
58134
58134
  * @param timeout duration of time to suppress duplicate actions
58135
58135
  * @returns tracking object or false if action should be suppressed
58136
58136
  */
58137
- _throttle(actionType, path69, timeout2) {
58137
+ _throttle(actionType, path70, timeout2) {
58138
58138
  if (!this._throttled.has(actionType)) {
58139
58139
  this._throttled.set(actionType, /* @__PURE__ */ new Map());
58140
58140
  }
58141
58141
  const action = this._throttled.get(actionType);
58142
58142
  if (!action)
58143
58143
  throw new Error("invalid throttle");
58144
- const actionPath = action.get(path69);
58144
+ const actionPath = action.get(path70);
58145
58145
  if (actionPath) {
58146
58146
  actionPath.count++;
58147
58147
  return false;
58148
58148
  }
58149
58149
  let timeoutObject;
58150
58150
  const clear = /* @__PURE__ */ __name(() => {
58151
- const item = action.get(path69);
58151
+ const item = action.get(path70);
58152
58152
  const count = item ? item.count : 0;
58153
- action.delete(path69);
58153
+ action.delete(path70);
58154
58154
  clearTimeout(timeoutObject);
58155
58155
  if (item)
58156
58156
  clearTimeout(item.timeoutObject);
@@ -58158,7 +58158,7 @@ var init_esm2 = __esm({
58158
58158
  }, "clear");
58159
58159
  timeoutObject = setTimeout(clear, timeout2);
58160
58160
  const thr = { timeoutObject, clear, count: 0 };
58161
- action.set(path69, thr);
58161
+ action.set(path70, thr);
58162
58162
  return thr;
58163
58163
  }
58164
58164
  _incrReadyCount() {
@@ -58172,33 +58172,33 @@ var init_esm2 = __esm({
58172
58172
  * @param event
58173
58173
  * @param awfEmit Callback to be called when ready for event to be emitted.
58174
58174
  */
58175
- _awaitWriteFinish(path69, threshold, event, awfEmit) {
58175
+ _awaitWriteFinish(path70, threshold, event, awfEmit) {
58176
58176
  const awf = this.options.awaitWriteFinish;
58177
58177
  if (typeof awf !== "object")
58178
58178
  return;
58179
58179
  const pollInterval = awf.pollInterval;
58180
58180
  let timeoutHandler;
58181
- let fullPath = path69;
58182
- if (this.options.cwd && !sysPath2.isAbsolute(path69)) {
58183
- fullPath = sysPath2.join(this.options.cwd, path69);
58181
+ let fullPath = path70;
58182
+ if (this.options.cwd && !sysPath2.isAbsolute(path70)) {
58183
+ fullPath = sysPath2.join(this.options.cwd, path70);
58184
58184
  }
58185
58185
  const now = /* @__PURE__ */ new Date();
58186
58186
  const writes = this._pendingWrites;
58187
58187
  function awaitWriteFinishFn(prevStat) {
58188
58188
  (0, import_fs12.stat)(fullPath, (err, curStat) => {
58189
- if (err || !writes.has(path69)) {
58189
+ if (err || !writes.has(path70)) {
58190
58190
  if (err && err.code !== "ENOENT")
58191
58191
  awfEmit(err);
58192
58192
  return;
58193
58193
  }
58194
58194
  const now2 = Number(/* @__PURE__ */ new Date());
58195
58195
  if (prevStat && curStat.size !== prevStat.size) {
58196
- writes.get(path69).lastChange = now2;
58196
+ writes.get(path70).lastChange = now2;
58197
58197
  }
58198
- const pw = writes.get(path69);
58198
+ const pw = writes.get(path70);
58199
58199
  const df = now2 - pw.lastChange;
58200
58200
  if (df >= threshold) {
58201
- writes.delete(path69);
58201
+ writes.delete(path70);
58202
58202
  awfEmit(void 0, curStat);
58203
58203
  } else {
58204
58204
  timeoutHandler = setTimeout(awaitWriteFinishFn, pollInterval, curStat);
@@ -58206,11 +58206,11 @@ var init_esm2 = __esm({
58206
58206
  });
58207
58207
  }
58208
58208
  __name(awaitWriteFinishFn, "awaitWriteFinishFn");
58209
- if (!writes.has(path69)) {
58210
- writes.set(path69, {
58209
+ if (!writes.has(path70)) {
58210
+ writes.set(path70, {
58211
58211
  lastChange: now,
58212
58212
  cancelWait: /* @__PURE__ */ __name(() => {
58213
- writes.delete(path69);
58213
+ writes.delete(path70);
58214
58214
  clearTimeout(timeoutHandler);
58215
58215
  return event;
58216
58216
  }, "cancelWait")
@@ -58221,8 +58221,8 @@ var init_esm2 = __esm({
58221
58221
  /**
58222
58222
  * Determines whether user has asked to ignore this path.
58223
58223
  */
58224
- _isIgnored(path69, stats) {
58225
- if (this.options.atomic && DOT_RE.test(path69))
58224
+ _isIgnored(path70, stats) {
58225
+ if (this.options.atomic && DOT_RE.test(path70))
58226
58226
  return true;
58227
58227
  if (!this._userIgnored) {
58228
58228
  const { cwd: cwd2 } = this.options;
@@ -58232,17 +58232,17 @@ var init_esm2 = __esm({
58232
58232
  const list = [...ignoredPaths.map(normalizeIgnored(cwd2)), ...ignored];
58233
58233
  this._userIgnored = anymatch(list, void 0);
58234
58234
  }
58235
- return this._userIgnored(path69, stats);
58235
+ return this._userIgnored(path70, stats);
58236
58236
  }
58237
- _isntIgnored(path69, stat10) {
58238
- return !this._isIgnored(path69, stat10);
58237
+ _isntIgnored(path70, stat10) {
58238
+ return !this._isIgnored(path70, stat10);
58239
58239
  }
58240
58240
  /**
58241
58241
  * Provides a set of common helpers and properties relating to symlink handling.
58242
58242
  * @param path file or directory pattern being watched
58243
58243
  */
58244
- _getWatchHelpers(path69) {
58245
- return new WatchHelper(path69, this.options.followSymlinks, this);
58244
+ _getWatchHelpers(path70) {
58245
+ return new WatchHelper(path70, this.options.followSymlinks, this);
58246
58246
  }
58247
58247
  // Directory helpers
58248
58248
  // -----------------
@@ -58274,63 +58274,63 @@ var init_esm2 = __esm({
58274
58274
  * @param item base path of item/directory
58275
58275
  */
58276
58276
  _remove(directory, item, isDirectory2) {
58277
- const path69 = sysPath2.join(directory, item);
58278
- const fullPath = sysPath2.resolve(path69);
58279
- isDirectory2 = isDirectory2 != null ? isDirectory2 : this._watched.has(path69) || this._watched.has(fullPath);
58280
- if (!this._throttle("remove", path69, 100))
58277
+ const path70 = sysPath2.join(directory, item);
58278
+ const fullPath = sysPath2.resolve(path70);
58279
+ isDirectory2 = isDirectory2 != null ? isDirectory2 : this._watched.has(path70) || this._watched.has(fullPath);
58280
+ if (!this._throttle("remove", path70, 100))
58281
58281
  return;
58282
58282
  if (!isDirectory2 && this._watched.size === 1) {
58283
58283
  this.add(directory, item, true);
58284
58284
  }
58285
- const wp = this._getWatchedDir(path69);
58285
+ const wp = this._getWatchedDir(path70);
58286
58286
  const nestedDirectoryChildren = wp.getChildren();
58287
- nestedDirectoryChildren.forEach((nested) => this._remove(path69, nested));
58287
+ nestedDirectoryChildren.forEach((nested) => this._remove(path70, nested));
58288
58288
  const parent = this._getWatchedDir(directory);
58289
58289
  const wasTracked = parent.has(item);
58290
58290
  parent.remove(item);
58291
58291
  if (this._symlinkPaths.has(fullPath)) {
58292
58292
  this._symlinkPaths.delete(fullPath);
58293
58293
  }
58294
- let relPath = path69;
58294
+ let relPath = path70;
58295
58295
  if (this.options.cwd)
58296
- relPath = sysPath2.relative(this.options.cwd, path69);
58296
+ relPath = sysPath2.relative(this.options.cwd, path70);
58297
58297
  if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {
58298
58298
  const event = this._pendingWrites.get(relPath).cancelWait();
58299
58299
  if (event === EVENTS.ADD)
58300
58300
  return;
58301
58301
  }
58302
- this._watched.delete(path69);
58302
+ this._watched.delete(path70);
58303
58303
  this._watched.delete(fullPath);
58304
58304
  const eventName = isDirectory2 ? EVENTS.UNLINK_DIR : EVENTS.UNLINK;
58305
- if (wasTracked && !this._isIgnored(path69))
58306
- this._emit(eventName, path69);
58307
- this._closePath(path69);
58305
+ if (wasTracked && !this._isIgnored(path70))
58306
+ this._emit(eventName, path70);
58307
+ this._closePath(path70);
58308
58308
  }
58309
58309
  /**
58310
58310
  * Closes all watchers for a path
58311
58311
  */
58312
- _closePath(path69) {
58313
- this._closeFile(path69);
58314
- const dir = sysPath2.dirname(path69);
58315
- this._getWatchedDir(dir).remove(sysPath2.basename(path69));
58312
+ _closePath(path70) {
58313
+ this._closeFile(path70);
58314
+ const dir = sysPath2.dirname(path70);
58315
+ this._getWatchedDir(dir).remove(sysPath2.basename(path70));
58316
58316
  }
58317
58317
  /**
58318
58318
  * Closes only file-specific watchers
58319
58319
  */
58320
- _closeFile(path69) {
58321
- const closers = this._closers.get(path69);
58320
+ _closeFile(path70) {
58321
+ const closers = this._closers.get(path70);
58322
58322
  if (!closers)
58323
58323
  return;
58324
58324
  closers.forEach((closer) => closer());
58325
- this._closers.delete(path69);
58325
+ this._closers.delete(path70);
58326
58326
  }
58327
- _addPathCloser(path69, closer) {
58327
+ _addPathCloser(path70, closer) {
58328
58328
  if (!closer)
58329
58329
  return;
58330
- let list = this._closers.get(path69);
58330
+ let list = this._closers.get(path70);
58331
58331
  if (!list) {
58332
58332
  list = [];
58333
- this._closers.set(path69, list);
58333
+ this._closers.set(path70, list);
58334
58334
  }
58335
58335
  list.push(closer);
58336
58336
  }
@@ -59619,9 +59619,9 @@ var init_createPaginator = __esm({
59619
59619
  return await client.send(new CommandCtor(input), ...args);
59620
59620
  }, "makePagedClientRequest");
59621
59621
  __name(createPaginator, "createPaginator");
59622
- get = /* @__PURE__ */ __name((fromObject, path69) => {
59622
+ get = /* @__PURE__ */ __name((fromObject, path70) => {
59623
59623
  let cursor = fromObject;
59624
- const pathComponents = path69.split(".");
59624
+ const pathComponents = path70.split(".");
59625
59625
  for (const step of pathComponents) {
59626
59626
  if (!cursor || typeof cursor !== "object") {
59627
59627
  return void 0;
@@ -60244,12 +60244,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60244
60244
  const password = request4.password ?? "";
60245
60245
  auth = `${username}:${password}`;
60246
60246
  }
60247
- let path69 = request4.path;
60247
+ let path70 = request4.path;
60248
60248
  if (queryString) {
60249
- path69 += `?${queryString}`;
60249
+ path70 += `?${queryString}`;
60250
60250
  }
60251
60251
  if (request4.fragment) {
60252
- path69 += `#${request4.fragment}`;
60252
+ path70 += `#${request4.fragment}`;
60253
60253
  }
60254
60254
  let hostname2 = request4.hostname ?? "";
60255
60255
  if (hostname2[0] === "[" && hostname2.endsWith("]")) {
@@ -60261,7 +60261,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60261
60261
  headers: request4.headers,
60262
60262
  host: hostname2,
60263
60263
  method: request4.method,
60264
- path: path69,
60264
+ path: path70,
60265
60265
  port: request4.port,
60266
60266
  agent,
60267
60267
  auth
@@ -60995,8 +60995,8 @@ var init_requestBuilder = __esm({
60995
60995
  return this;
60996
60996
  }
60997
60997
  p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
60998
- this.resolvePathStack.push((path69) => {
60999
- this.path = resolvedPath(path69, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
60998
+ this.resolvePathStack.push((path70) => {
60999
+ this.path = resolvedPath(path70, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
61000
61000
  });
61001
61001
  return this;
61002
61002
  }
@@ -61942,10 +61942,10 @@ ${longDate}
61942
61942
  ${credentialScope}
61943
61943
  ${toHex(hashedRequest)}`;
61944
61944
  }
61945
- getCanonicalPath({ path: path69 }) {
61945
+ getCanonicalPath({ path: path70 }) {
61946
61946
  if (this.uriEscapePath) {
61947
61947
  const normalizedPathSegments = [];
61948
- for (const pathSegment of path69.split("/")) {
61948
+ for (const pathSegment of path70.split("/")) {
61949
61949
  if (pathSegment?.length === 0)
61950
61950
  continue;
61951
61951
  if (pathSegment === ".")
@@ -61956,11 +61956,11 @@ ${toHex(hashedRequest)}`;
61956
61956
  normalizedPathSegments.push(pathSegment);
61957
61957
  }
61958
61958
  }
61959
- const normalizedPath = `${path69?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path69?.endsWith("/") ? "/" : ""}`;
61959
+ const normalizedPath = `${path70?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path70?.endsWith("/") ? "/" : ""}`;
61960
61960
  const doubleEncoded = escapeUri(normalizedPath);
61961
61961
  return doubleEncoded.replace(/%2F/g, "/");
61962
61962
  }
61963
- return path69;
61963
+ return path70;
61964
61964
  }
61965
61965
  async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) {
61966
61966
  const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest);
@@ -65686,18 +65686,18 @@ var init_getAttrPathList = __esm({
65686
65686
  "../../node_modules/.pnpm/@smithy+util-endpoints@2.1.7/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js"() {
65687
65687
  init_import_meta_url();
65688
65688
  init_types3();
65689
- getAttrPathList = /* @__PURE__ */ __name((path69) => {
65690
- const parts = path69.split(".");
65689
+ getAttrPathList = /* @__PURE__ */ __name((path70) => {
65690
+ const parts = path70.split(".");
65691
65691
  const pathList = [];
65692
65692
  for (const part of parts) {
65693
65693
  const squareBracketIndex = part.indexOf("[");
65694
65694
  if (squareBracketIndex !== -1) {
65695
65695
  if (part.indexOf("]") !== part.length - 1) {
65696
- throw new EndpointError(`Path: '${path69}' does not end with ']'`);
65696
+ throw new EndpointError(`Path: '${path70}' does not end with ']'`);
65697
65697
  }
65698
65698
  const arrayIndex = part.slice(squareBracketIndex + 1, -1);
65699
65699
  if (Number.isNaN(parseInt(arrayIndex))) {
65700
- throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path69}'`);
65700
+ throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path70}'`);
65701
65701
  }
65702
65702
  if (squareBracketIndex !== 0) {
65703
65703
  pathList.push(part.slice(0, squareBracketIndex));
@@ -65719,9 +65719,9 @@ var init_getAttr = __esm({
65719
65719
  init_import_meta_url();
65720
65720
  init_types3();
65721
65721
  init_getAttrPathList();
65722
- getAttr = /* @__PURE__ */ __name((value, path69) => getAttrPathList(path69).reduce((acc, index) => {
65722
+ getAttr = /* @__PURE__ */ __name((value, path70) => getAttrPathList(path70).reduce((acc, index) => {
65723
65723
  if (typeof acc !== "object") {
65724
- throw new EndpointError(`Index '${index}' in '${path69}' not found in '${JSON.stringify(value)}'`);
65724
+ throw new EndpointError(`Index '${index}' in '${path70}' not found in '${JSON.stringify(value)}'`);
65725
65725
  } else if (Array.isArray(acc)) {
65726
65726
  return acc[parseInt(index)];
65727
65727
  }
@@ -65766,8 +65766,8 @@ var init_parseURL = __esm({
65766
65766
  return value;
65767
65767
  }
65768
65768
  if (typeof value === "object" && "hostname" in value) {
65769
- const { hostname: hostname3, port, protocol: protocol2 = "", path: path69 = "", query = {} } = value;
65770
- const url4 = new URL(`${protocol2}//${hostname3}${port ? `:${port}` : ""}${path69}`);
65769
+ const { hostname: hostname3, port, protocol: protocol2 = "", path: path70 = "", query = {} } = value;
65770
+ const url4 = new URL(`${protocol2}//${hostname3}${port ? `:${port}` : ""}${path70}`);
65771
65771
  url4.search = Object.entries(query).map(([k6, v7]) => `${k6}=${v7}`).join("&");
65772
65772
  return url4;
65773
65773
  }
@@ -65962,13 +65962,13 @@ var init_callFunction = __esm({
65962
65962
  init_customEndpointFunctions();
65963
65963
  init_endpointFunctions();
65964
65964
  init_evaluateExpression();
65965
- callFunction = /* @__PURE__ */ __name(({ fn, argv }, options) => {
65965
+ callFunction = /* @__PURE__ */ __name(({ fn: fn2, argv }, options) => {
65966
65966
  const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options));
65967
- const fnSegments = fn.split(".");
65967
+ const fnSegments = fn2.split(".");
65968
65968
  if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
65969
65969
  return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
65970
65970
  }
65971
- return endpointFunctions[fn](...evaluatedArgs);
65971
+ return endpointFunctions[fn2](...evaluatedArgs);
65972
65972
  }, "callFunction");
65973
65973
  }
65974
65974
  });
@@ -67237,8 +67237,8 @@ var init_createConfigValueProvider = __esm({
67237
67237
  return endpoint.url.href;
67238
67238
  }
67239
67239
  if ("hostname" in endpoint) {
67240
- const { protocol, hostname: hostname2, port, path: path69 } = endpoint;
67241
- return `${protocol}//${hostname2}${port ? ":" + port : ""}${path69}`;
67240
+ const { protocol, hostname: hostname2, port, path: path70 } = endpoint;
67241
+ return `${protocol}//${hostname2}${port ? ":" + port : ""}${path70}`;
67242
67242
  }
67243
67243
  }
67244
67244
  return endpoint;
@@ -67475,11 +67475,11 @@ var init_slurpFile = __esm({
67475
67475
  import_fs15 = require("fs");
67476
67476
  ({ readFile: readFile11 } = import_fs15.promises);
67477
67477
  filePromisesHash = {};
67478
- slurpFile = /* @__PURE__ */ __name((path69, options) => {
67479
- if (!filePromisesHash[path69] || options?.ignoreCache) {
67480
- filePromisesHash[path69] = readFile11(path69, "utf8");
67478
+ slurpFile = /* @__PURE__ */ __name((path70, options) => {
67479
+ if (!filePromisesHash[path70] || options?.ignoreCache) {
67480
+ filePromisesHash[path70] = readFile11(path70, "utf8");
67481
67481
  }
67482
- return filePromisesHash[path69];
67482
+ return filePromisesHash[path70];
67483
67483
  }, "slurpFile");
67484
67484
  }
67485
67485
  });
@@ -74245,14 +74245,14 @@ var init_Aws_query = __esm({
74245
74245
  cfId: output.headers["x-amz-cf-id"]
74246
74246
  }), "deserializeMetadata");
74247
74247
  throwDefaultError5 = withBaseException(STSServiceException);
74248
- buildHttpRpcRequest = /* @__PURE__ */ __name(async (context2, headers, path69, resolvedHostname, body) => {
74248
+ buildHttpRpcRequest = /* @__PURE__ */ __name(async (context2, headers, path70, resolvedHostname, body) => {
74249
74249
  const { hostname: hostname2, protocol = "https", port, path: basePath } = await context2.endpoint();
74250
74250
  const contents = {
74251
74251
  protocol,
74252
74252
  hostname: hostname2,
74253
74253
  port,
74254
74254
  method: "POST",
74255
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path69 : basePath + path69,
74255
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path70 : basePath + path70,
74256
74256
  headers
74257
74257
  };
74258
74258
  if (resolvedHostname !== void 0) {
@@ -75848,10 +75848,10 @@ var require_promisify = __commonJS({
75848
75848
  "use strict";
75849
75849
  init_import_meta_url();
75850
75850
  Object.defineProperty(exports2, "__esModule", { value: true });
75851
- function promisify3(fn) {
75851
+ function promisify3(fn2) {
75852
75852
  return function(req, opts) {
75853
75853
  return new Promise((resolve24, reject) => {
75854
- fn.call(this, req, opts, (err, rtn) => {
75854
+ fn2.call(this, req, opts, (err, rtn) => {
75855
75855
  if (err) {
75856
75856
  reject(err);
75857
75857
  } else {
@@ -75936,7 +75936,7 @@ var require_src5 = __commonJS({
75936
75936
  set protocol(v7) {
75937
75937
  this.explicitProtocol = v7;
75938
75938
  }
75939
- callback(req, opts, fn) {
75939
+ callback(req, opts, fn2) {
75940
75940
  throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
75941
75941
  }
75942
75942
  /**
@@ -76543,11 +76543,11 @@ var init_validateURL = __esm({
76543
76543
  "../workers-shared/utils/configuration/validateURL.ts"() {
76544
76544
  "use strict";
76545
76545
  init_import_meta_url();
76546
- extractPathname = /* @__PURE__ */ __name((path69 = "/", includeSearch, includeHash) => {
76547
- if (!path69.startsWith("/")) {
76548
- path69 = `/${path69}`;
76546
+ extractPathname = /* @__PURE__ */ __name((path70 = "/", includeSearch, includeHash) => {
76547
+ if (!path70.startsWith("/")) {
76548
+ path70 = `/${path70}`;
76549
76549
  }
76550
- const url4 = new URL(`//${path69}`, "relative://");
76550
+ const url4 = new URL(`//${path70}`, "relative://");
76551
76551
  return `${url4.pathname}${includeSearch ? url4.search : ""}${includeHash ? url4.hash : ""}`;
76552
76552
  }, "extractPathname");
76553
76553
  URL_REGEX = /^https:\/\/+(?<host>[^/]+)\/?(?<path>.*)/;
@@ -76580,8 +76580,8 @@ var init_validateURL = __esm({
76580
76580
  if (!token.startsWith("/") && onlyRelative) {
76581
76581
  token = `/${token}`;
76582
76582
  }
76583
- const path69 = PATH_REGEX.exec(token);
76584
- if (path69) {
76583
+ const path70 = PATH_REGEX.exec(token);
76584
+ if (path70) {
76585
76585
  try {
76586
76586
  return [extractPathname(token, includeSearch, includeHash), void 0];
76587
76587
  } catch {
@@ -76640,7 +76640,7 @@ function parseHeaders(input, {
76640
76640
  });
76641
76641
  }
76642
76642
  }
76643
- const [path69, pathError] = validateUrl(line, false, true);
76643
+ const [path70, pathError] = validateUrl(line, false, true);
76644
76644
  if (pathError) {
76645
76645
  invalid.push({
76646
76646
  line,
@@ -76651,7 +76651,7 @@ function parseHeaders(input, {
76651
76651
  continue;
76652
76652
  }
76653
76653
  rule = {
76654
- path: path69,
76654
+ path: path70,
76655
76655
  line,
76656
76656
  headers: {},
76657
76657
  unsetHeaders: []
@@ -77770,8 +77770,8 @@ ${val2.stack}`;
77770
77770
  var ret = wasm.memory;
77771
77771
  return addHeapObject(ret);
77772
77772
  };
77773
- var path69 = require("path").join(__dirname, "html_rewriter_bg.wasm");
77774
- var bytes = require("fs").readFileSync(path69);
77773
+ var path70 = require("path").join(__dirname, "html_rewriter_bg.wasm");
77774
+ var bytes = require("fs").readFileSync(path70);
77775
77775
  var wasmModule = new WebAssembly.Module(bytes);
77776
77776
  var wasmInstance = new WebAssembly.Instance(wasmModule, imports);
77777
77777
  wasm = wasmInstance.exports;
@@ -78981,8 +78981,8 @@ async function generateAssetsFetch(directory, log2) {
78981
78981
  });
78982
78982
  watch([headersFile, redirectsFile], { persistent: true }).on(
78983
78983
  "change",
78984
- (path69) => {
78985
- switch (path69) {
78984
+ (path70) => {
78985
+ switch (path70) {
78986
78986
  case headersFile: {
78987
78987
  log2.log("_headers modified. Re-evaluating...");
78988
78988
  const contents = (0, import_node_fs33.readFileSync)(headersFile).toString();
@@ -79012,8 +79012,8 @@ async function generateAssetsFetch(directory, log2) {
79012
79012
  metadata,
79013
79013
  xServerEnvHeader: "dev",
79014
79014
  logError: console.error,
79015
- findAssetEntryForPath: /* @__PURE__ */ __name(async (path69) => {
79016
- const filepath = (0, import_node_path62.resolve)((0, import_node_path62.join)(directory, path69));
79015
+ findAssetEntryForPath: /* @__PURE__ */ __name(async (path70) => {
79016
+ const filepath = (0, import_node_path62.resolve)((0, import_node_path62.join)(directory, path70));
79017
79017
  if (!filepath.startsWith(directory)) {
79018
79018
  return null;
79019
79019
  }
@@ -79129,6 +79129,7 @@ var cli_exports2 = {};
79129
79129
  __export(cli_exports2, {
79130
79130
  experimental_patchConfig: () => experimental_patchConfig,
79131
79131
  experimental_readRawConfig: () => experimental_readRawConfig,
79132
+ experimental_startMixedModeSession: () => startMixedModeSession,
79132
79133
  getPlatformProxy: () => getPlatformProxy,
79133
79134
  unstable_DevEnv: () => DevEnv,
79134
79135
  unstable_dev: () => unstable_dev,
@@ -80256,11 +80257,11 @@ var parser = new YargsParser({
80256
80257
  resolve: import_path.resolve,
80257
80258
  // TODO: figure out a way to combine ESM and CJS coverage, such that
80258
80259
  // we can exercise all the lines below:
80259
- require: /* @__PURE__ */ __name((path69) => {
80260
+ require: /* @__PURE__ */ __name((path70) => {
80260
80261
  if (typeof require !== "undefined") {
80261
- return require(path69);
80262
- } else if (path69.match(/\.json$/)) {
80263
- return JSON.parse((0, import_fs.readFileSync)(path69, "utf8"));
80262
+ return require(path70);
80263
+ } else if (path70.match(/\.json$/)) {
80264
+ return JSON.parse((0, import_fs.readFileSync)(path70, "utf8"));
80264
80265
  } else {
80265
80266
  throw Error("only .json config files are supported in ESM");
80266
80267
  }
@@ -80378,8 +80379,8 @@ var UI = class {
80378
80379
  ts += " ".repeat(wrapWidth - mixin2.stringWidth(col));
80379
80380
  }
80380
80381
  if (row[c6].align && row[c6].align !== "left" && this.wrap) {
80381
- const fn = align[row[c6].align];
80382
- ts = fn(ts, wrapWidth);
80382
+ const fn2 = align[row[c6].align];
80383
+ ts = fn2(ts, wrapWidth);
80383
80384
  if (mixin2.stringWidth(ts) < wrapWidth) {
80384
80385
  ts += " ".repeat((width || 0) - mixin2.stringWidth(ts) - 1);
80385
80386
  }
@@ -81413,7 +81414,7 @@ var import_undici3 = __toESM(require_undici());
81413
81414
 
81414
81415
  // package.json
81415
81416
  var name = "wrangler";
81416
- var version = "4.14.1";
81417
+ var version = "4.14.2";
81417
81418
 
81418
81419
  // src/environment-variables/misc-variables.ts
81419
81420
  init_import_meta_url();
@@ -82719,12 +82720,12 @@ function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
82719
82720
  return result;
82720
82721
  }
82721
82722
  __name(parseTree, "parseTree");
82722
- function findNodeAtLocation(root, path69) {
82723
+ function findNodeAtLocation(root, path70) {
82723
82724
  if (!root) {
82724
82725
  return void 0;
82725
82726
  }
82726
82727
  let node2 = root;
82727
- for (let segment of path69) {
82728
+ for (let segment of path70) {
82728
82729
  if (typeof segment === "string") {
82729
82730
  if (node2.type !== "object" || !Array.isArray(node2.children)) {
82730
82731
  return void 0;
@@ -83073,14 +83074,14 @@ __name(getNodeType, "getNodeType");
83073
83074
 
83074
83075
  // ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js
83075
83076
  function setProperty(text, originalPath, value, options) {
83076
- const path69 = originalPath.slice();
83077
+ const path70 = originalPath.slice();
83077
83078
  const errors = [];
83078
83079
  const root = parseTree(text, errors);
83079
83080
  let parent = void 0;
83080
83081
  let lastSegment = void 0;
83081
- while (path69.length > 0) {
83082
- lastSegment = path69.pop();
83083
- parent = findNodeAtLocation(root, path69);
83082
+ while (path70.length > 0) {
83083
+ lastSegment = path70.pop();
83084
+ parent = findNodeAtLocation(root, path70);
83084
83085
  if (parent === void 0 && value !== void 0) {
83085
83086
  if (typeof lastSegment === "string") {
83086
83087
  value = { [lastSegment]: value };
@@ -83311,8 +83312,8 @@ function format5(documentText, range, options) {
83311
83312
  return format4(documentText, range, options);
83312
83313
  }
83313
83314
  __name(format5, "format");
83314
- function modify(text, path69, value, options) {
83315
- return setProperty(text, path69, value, options);
83315
+ function modify(text, path70, value, options) {
83316
+ return setProperty(text, path70, value, options);
83316
83317
  }
83317
83318
  __name(modify, "modify");
83318
83319
  function applyEdits(text, edits) {
@@ -84708,9 +84709,9 @@ Please add "${field}" to "env.${envName}".`
84708
84709
  return rawEnv[field] ?? defaultValue;
84709
84710
  }
84710
84711
  __name(notInheritable, "notInheritable");
84711
- function unwindPropertyPath(root, path69) {
84712
+ function unwindPropertyPath(root, path70) {
84712
84713
  let container = root;
84713
- const parts = path69.split(".");
84714
+ const parts = path70.split(".");
84714
84715
  for (let i5 = 0; i5 < parts.length - 1; i5++) {
84715
84716
  if (!hasProperty(container, parts[i5])) {
84716
84717
  return;
@@ -92508,8 +92509,8 @@ function getSourceMappingPrepareStackTrace(retrieveSourceMap) {
92508
92509
  // Make sure we're using fresh copies of files each time we source map
92509
92510
  emptyCacheBetweenOperations: true,
92510
92511
  // Allow retriever to be overridden at prepare stack trace time
92511
- retrieveSourceMap(path69) {
92512
- return retrieveSourceMapOverride?.(path69) ?? null;
92512
+ retrieveSourceMap(path70) {
92513
+ return retrieveSourceMapOverride?.(path70) ?? null;
92513
92514
  }
92514
92515
  });
92515
92516
  sourceMappingPrepareStackTrace = Error.prepareStackTrace;
@@ -92611,7 +92612,7 @@ function lineMatchToCallSite(lineMatch) {
92611
92612
  typeName,
92612
92613
  functionName,
92613
92614
  methodName,
92614
- fileName: lineMatch[2] || null,
92615
+ fileName: lineMatch[2],
92615
92616
  lineNumber: parseInt(lineMatch[3]) || null,
92616
92617
  columnNumber: parseInt(lineMatch[4]) || null,
92617
92618
  native: isNative
@@ -92625,6 +92626,21 @@ var CallSite = class {
92625
92626
  static {
92626
92627
  __name(this, "CallSite");
92627
92628
  }
92629
+ getScriptHash() {
92630
+ throw new Error("Method not implemented.");
92631
+ }
92632
+ getEnclosingColumnNumber() {
92633
+ throw new Error("Method not implemented.");
92634
+ }
92635
+ getEnclosingLineNumber() {
92636
+ throw new Error("Method not implemented.");
92637
+ }
92638
+ getPosition() {
92639
+ throw new Error("Method not implemented.");
92640
+ }
92641
+ toString() {
92642
+ throw new Error("Method not implemented.");
92643
+ }
92628
92644
  getThis() {
92629
92645
  return null;
92630
92646
  }
@@ -95627,8 +95643,8 @@ function getErrorMap() {
95627
95643
  }
95628
95644
  __name(getErrorMap, "getErrorMap");
95629
95645
  var makeIssue = /* @__PURE__ */ __name((params) => {
95630
- const { data, path: path69, errorMaps, issueData } = params;
95631
- const fullPath = [...path69, ...issueData.path || []];
95646
+ const { data, path: path70, errorMaps, issueData } = params;
95647
+ const fullPath = [...path70, ...issueData.path || []];
95632
95648
  const fullIssue = {
95633
95649
  ...issueData,
95634
95650
  path: fullPath
@@ -95734,11 +95750,11 @@ var ParseInputLazyPath = class {
95734
95750
  static {
95735
95751
  __name(this, "ParseInputLazyPath");
95736
95752
  }
95737
- constructor(parent, value, path69, key) {
95753
+ constructor(parent, value, path70, key) {
95738
95754
  this._cachedPath = [];
95739
95755
  this.parent = parent;
95740
95756
  this.data = value;
95741
- this._path = path69;
95757
+ this._path = path70;
95742
95758
  this._key = key;
95743
95759
  }
95744
95760
  get path() {
@@ -98276,7 +98292,7 @@ var ZodFunction = class _ZodFunction extends ZodType {
98276
98292
  }
98277
98293
  __name(makeReturnsIssue, "makeReturnsIssue");
98278
98294
  const params = { errorMap: ctx.common.contextualErrorMap };
98279
- const fn = ctx.data;
98295
+ const fn2 = ctx.data;
98280
98296
  if (this._def.returns instanceof ZodPromise) {
98281
98297
  const me = this;
98282
98298
  return OK(async function(...args) {
@@ -98285,7 +98301,7 @@ var ZodFunction = class _ZodFunction extends ZodType {
98285
98301
  error2.addIssue(makeArgsIssue(args, e7));
98286
98302
  throw error2;
98287
98303
  });
98288
- const result = await Reflect.apply(fn, this, parsedArgs);
98304
+ const result = await Reflect.apply(fn2, this, parsedArgs);
98289
98305
  const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e7) => {
98290
98306
  error2.addIssue(makeReturnsIssue(result, e7));
98291
98307
  throw error2;
@@ -98299,7 +98315,7 @@ var ZodFunction = class _ZodFunction extends ZodType {
98299
98315
  if (!parsedArgs.success) {
98300
98316
  throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
98301
98317
  }
98302
- const result = Reflect.apply(fn, this, parsedArgs.data);
98318
+ const result = Reflect.apply(fn2, this, parsedArgs.data);
98303
98319
  const parsedReturns = me._def.returns.safeParse(result, params);
98304
98320
  if (!parsedReturns.success) {
98305
98321
  throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
@@ -99415,7 +99431,7 @@ var PQueue = class extends import_eventemitter3.default {
99415
99431
  /**
99416
99432
  Adds a sync or async task to the queue. Always returns a promise.
99417
99433
  */
99418
- async add(fn, options = {}) {
99434
+ async add(fn2, options = {}) {
99419
99435
  return new Promise((resolve24, reject) => {
99420
99436
  const run2 = /* @__PURE__ */ __name(async () => {
99421
99437
  var _a3;
@@ -99427,7 +99443,7 @@ var PQueue = class extends import_eventemitter3.default {
99427
99443
  reject(new AbortError("The task was aborted."));
99428
99444
  return;
99429
99445
  }
99430
- const operation = __classPrivateFieldGet2(this, _PQueue_timeout, "f") === void 0 && options.timeout === void 0 ? fn({ signal: options.signal }) : pTimeout(Promise.resolve(fn({ signal: options.signal })), options.timeout === void 0 ? __classPrivateFieldGet2(this, _PQueue_timeout, "f") : options.timeout, () => {
99446
+ const operation = __classPrivateFieldGet2(this, _PQueue_timeout, "f") === void 0 && options.timeout === void 0 ? fn2({ signal: options.signal }) : pTimeout(Promise.resolve(fn2({ signal: options.signal })), options.timeout === void 0 ? __classPrivateFieldGet2(this, _PQueue_timeout, "f") : options.timeout, () => {
99431
99447
  if (options.throwOnTimeout === void 0 ? __classPrivateFieldGet2(this, _PQueue_throwOnTimeout, "f") : options.throwOnTimeout) {
99432
99448
  reject(timeoutError);
99433
99449
  }
@@ -100342,9 +100358,9 @@ function npmRunPath(options = {}) {
100342
100358
  __name(npmRunPath, "npmRunPath");
100343
100359
  function npmRunPathEnv({ env: env6 = import_node_process7.default.env, ...options } = {}) {
100344
100360
  env6 = { ...env6 };
100345
- const path69 = pathKey({ env: env6 });
100346
- options.path = env6[path69];
100347
- env6[path69] = npmRunPath(options);
100361
+ const path70 = pathKey({ env: env6 });
100362
+ options.path = env6[path70];
100363
+ env6[path70] = npmRunPath(options);
100348
100364
  return env6;
100349
100365
  }
100350
100366
  __name(npmRunPathEnv, "npmRunPathEnv");
@@ -103579,10 +103595,10 @@ function handleRequireCallsToNodeJSBuiltins(build5) {
103579
103595
  });
103580
103596
  build5.onLoad(
103581
103597
  { filter: /.*/, namespace: REQUIRED_NODE_BUILT_IN_NAMESPACE },
103582
- ({ path: path69 }) => {
103598
+ ({ path: path70 }) => {
103583
103599
  return {
103584
103600
  contents: esm_default2`
103585
- import libDefault from '${path69}';
103601
+ import libDefault from '${path70}';
103586
103602
  module.exports = libDefault;`,
103587
103603
  loader: "js"
103588
103604
  };
@@ -103616,10 +103632,10 @@ function handleUnenvAliasedPackages(build5, alias, external) {
103616
103632
  });
103617
103633
  build5.onLoad(
103618
103634
  { filter: /.*/, namespace: REQUIRED_UNENV_ALIAS_NAMESPACE },
103619
- ({ path: path69 }) => {
103635
+ ({ path: path70 }) => {
103620
103636
  return {
103621
103637
  contents: esm_default2`
103622
- import * as esm from '${path69}';
103638
+ import * as esm from '${path70}';
103623
103639
  module.exports = Object.entries(esm)
103624
103640
  .filter(([k,]) => k !== 'default')
103625
103641
  .reduce((cjs, [k, value]) =>
@@ -103659,12 +103675,12 @@ function handleNodeJSGlobals(build5, inject, polyfill2) {
103659
103675
  // Inject the polyfills - needs an absolute path
103660
103676
  ...polyfill2.map((m6) => require.resolve(m6))
103661
103677
  ];
103662
- build5.onResolve({ filter: UNENV_VIRTUAL_MODULE_RE }, ({ path: path69 }) => ({
103663
- path: path69
103678
+ build5.onResolve({ filter: UNENV_VIRTUAL_MODULE_RE }, ({ path: path70 }) => ({
103679
+ path: path70
103664
103680
  }));
103665
- build5.onLoad({ filter: UNENV_VIRTUAL_MODULE_RE }, ({ path: path69 }) => {
103666
- const module3 = virtualModulePathToSpecifier.get(path69);
103667
- (0, import_node_assert13.default)(module3, `Expected ${path69} to be mapped to a module specifier`);
103681
+ build5.onLoad({ filter: UNENV_VIRTUAL_MODULE_RE }, ({ path: path70 }) => {
103682
+ const module3 = virtualModulePathToSpecifier.get(path70);
103683
+ (0, import_node_assert13.default)(module3, `Expected ${path70} to be mapped to a module specifier`);
103668
103684
  const injects = injectsByModule.get(module3);
103669
103685
  (0, import_node_assert13.default)(injects, `Expected ${module3} to inject values`);
103670
103686
  const imports = injects.map(
@@ -103694,21 +103710,21 @@ var nodejsCompatPlugin = /* @__PURE__ */ __name((mode) => ({
103694
103710
  });
103695
103711
  pluginBuild.onResolve(
103696
103712
  { filter: /node:.*/ },
103697
- async ({ path: path69, kind, resolveDir, importer }) => {
103698
- const specifier = `${path69}:${kind}:${resolveDir}:${importer}`;
103713
+ async ({ path: path70, kind, resolveDir, importer }) => {
103714
+ const specifier = `${path70}:${kind}:${resolveDir}:${importer}`;
103699
103715
  if (seen.has(specifier)) {
103700
103716
  return;
103701
103717
  }
103702
103718
  seen.add(specifier);
103703
- const result = await pluginBuild.resolve(path69, {
103719
+ const result = await pluginBuild.resolve(path70, {
103704
103720
  kind,
103705
103721
  resolveDir,
103706
103722
  importer
103707
103723
  });
103708
103724
  if (result.errors.length > 0) {
103709
- const pathWarnedPackages = warnedPackages.get(path69) ?? [];
103725
+ const pathWarnedPackages = warnedPackages.get(path70) ?? [];
103710
103726
  pathWarnedPackages.push(importer);
103711
- warnedPackages.set(path69, pathWarnedPackages);
103727
+ warnedPackages.set(path70, pathWarnedPackages);
103712
103728
  return { external: true };
103713
103729
  }
103714
103730
  return result;
@@ -103736,10 +103752,10 @@ var nodejsCompatPlugin = /* @__PURE__ */ __name((mode) => ({
103736
103752
  });
103737
103753
  pluginBuild.onEnd(() => {
103738
103754
  if (mode !== "v1") {
103739
- warnedPackages.forEach((importers, path69) => {
103755
+ warnedPackages.forEach((importers, path70) => {
103740
103756
  logger.warn(
103741
103757
  dedent2`
103742
- The package "${path69}" wasn't found on the file system but is built into node.
103758
+ The package "${path70}" wasn't found on the file system but is built into node.
103743
103759
  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:
103744
103760
  ${toList(importers, pluginBuild.initialOptions.absWorkingDir)}`
103745
103761
  );
@@ -106789,8 +106805,8 @@ function usage(yargs, shim3) {
106789
106805
  const emit = typeof level === "function" ? level : logger4[level];
106790
106806
  emit(self2.help());
106791
106807
  };
106792
- self2.functionDescription = (fn) => {
106793
- const description = fn.name ? shim3.Parser.decamelize(fn.name, "-") : __("generated-value");
106808
+ self2.functionDescription = (fn2) => {
106809
+ const description = fn2.name ? shim3.Parser.decamelize(fn2.name, "-") : __("generated-value");
106794
106810
  return ["(", description, ")"].join("");
106795
106811
  };
106796
106812
  self2.stringifiedValues = /* @__PURE__ */ __name(function stringifiedValues(values, separator) {
@@ -107168,8 +107184,8 @@ var Completion = class {
107168
107184
  script = script.replace(/{{completion_command}}/g, cmd);
107169
107185
  return script.replace(/{{app_path}}/g, $0);
107170
107186
  }
107171
- registerFunction(fn) {
107172
- this.customCompletionFunction = fn;
107187
+ registerFunction(fn2) {
107188
+ this.customCompletionFunction = fn2;
107173
107189
  }
107174
107190
  setParsed(parsed) {
107175
107191
  this.aliases = parsed.aliases;
@@ -107786,10 +107802,10 @@ var YargsInstance = class {
107786
107802
  });
107787
107803
  return this;
107788
107804
  }
107789
- completion(cmd, desc, fn) {
107790
- argsert("[string] [string|boolean|function] [function]", [cmd, desc, fn], arguments.length);
107805
+ completion(cmd, desc, fn2) {
107806
+ argsert("[string] [string|boolean|function] [function]", [cmd, desc, fn2], arguments.length);
107791
107807
  if (typeof desc === "function") {
107792
- fn = desc;
107808
+ fn2 = desc;
107793
107809
  desc = void 0;
107794
107810
  }
107795
107811
  __classPrivateFieldSet2(this, _YargsInstance_completionCommand, cmd || __classPrivateFieldGet3(this, _YargsInstance_completionCommand, "f") || "completion", "f");
@@ -107797,8 +107813,8 @@ var YargsInstance = class {
107797
107813
  desc = "generate completion script";
107798
107814
  }
107799
107815
  this.command(__classPrivateFieldGet3(this, _YargsInstance_completionCommand, "f"), desc);
107800
- if (fn)
107801
- __classPrivateFieldGet3(this, _YargsInstance_completion, "f").registerFunction(fn);
107816
+ if (fn2)
107817
+ __classPrivateFieldGet3(this, _YargsInstance_completion, "f").registerFunction(fn2);
107802
107818
  return this;
107803
107819
  }
107804
107820
  command(cmd, description, builder, handler, middlewares, deprecated2) {
@@ -109958,13 +109974,13 @@ var getQueryString = /* @__PURE__ */ __name((params) => {
109958
109974
  }, "getQueryString");
109959
109975
  var getUrl = /* @__PURE__ */ __name((config, options) => {
109960
109976
  const encoder = config.ENCODE_PATH || encodeURI;
109961
- const path69 = options.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring2, group) => {
109977
+ const path70 = options.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring2, group) => {
109962
109978
  if (options.path?.hasOwnProperty(group)) {
109963
109979
  return encoder(String(options.path[group]));
109964
109980
  }
109965
109981
  return substring2;
109966
109982
  });
109967
- const url4 = `${config.BASE}${path69}`;
109983
+ const url4 = `${config.BASE}${path70}`;
109968
109984
  if (options.query) {
109969
109985
  return `${url4}${getQueryString(options.query)}`;
109970
109986
  }
@@ -110922,8 +110938,8 @@ var import_process2 = require("process");
110922
110938
 
110923
110939
  // src/cloudchamber/helpers/wrap.ts
110924
110940
  init_import_meta_url();
110925
- async function wrap2(fn) {
110926
- return fn.then((data) => [data, null]).catch((err) => [null, err]);
110941
+ async function wrap2(fn2) {
110942
+ return fn2.then((data) => [data, null]).catch((err) => [null, err]);
110927
110943
  }
110928
110944
  __name(wrap2, "wrap");
110929
110945
 
@@ -111458,11 +111474,11 @@ var Diff = class {
111458
111474
  while (!execEditLength()) {
111459
111475
  }
111460
111476
  }
111461
- addToPath(path69, added, removed, oldPosInc) {
111462
- const last = path69.lastComponent;
111477
+ addToPath(path70, added, removed, oldPosInc) {
111478
+ const last = path70.lastComponent;
111463
111479
  if (last && last.added === added && last.removed === removed) {
111464
111480
  return {
111465
- oldPos: path69.oldPos + oldPosInc,
111481
+ oldPos: path70.oldPos + oldPosInc,
111466
111482
  lastComponent: {
111467
111483
  count: last.count + 1,
111468
111484
  added,
@@ -111472,7 +111488,7 @@ var Diff = class {
111472
111488
  };
111473
111489
  }
111474
111490
  return {
111475
- oldPos: path69.oldPos + oldPosInc,
111491
+ oldPos: path70.oldPos + oldPosInc,
111476
111492
  lastComponent: {
111477
111493
  count: 1,
111478
111494
  added,
@@ -112124,8 +112140,8 @@ function pushYargs(yargs) {
112124
112140
  }).positional("TAG", { type: "string", demandOption: true });
112125
112141
  }
112126
112142
  __name(pushYargs, "pushYargs");
112127
- async function isDir(path69) {
112128
- const stats = await (0, import_promises10.stat)(path69);
112143
+ async function isDir(path70) {
112144
+ const stats = await (0, import_promises10.stat)(path70);
112129
112145
  return await stats.isDirectory();
112130
112146
  }
112131
112147
  __name(isDir, "isDir");
@@ -112763,15 +112779,15 @@ var sshCommand = /* @__PURE__ */ __name((yargs) => {
112763
112779
  }, "sshCommand");
112764
112780
  async function tryToRetrieveAllDefaultSSHKeyPaths() {
112765
112781
  const HOME = (0, import_os3.homedir)();
112766
- const path69 = `${HOME}/.ssh`;
112782
+ const path70 = `${HOME}/.ssh`;
112767
112783
  const paths = [];
112768
112784
  try {
112769
- const dirList = await (0, import_promises11.readdir)(path69);
112785
+ const dirList = await (0, import_promises11.readdir)(path70);
112770
112786
  for (const file of dirList) {
112771
112787
  if (file.endsWith(".pub")) {
112772
- const s5 = await (0, import_promises11.stat)(`${path69}/${file}`);
112788
+ const s5 = await (0, import_promises11.stat)(`${path70}/${file}`);
112773
112789
  if (s5.isFile()) {
112774
- paths.push(`${path69}/${file}`);
112790
+ paths.push(`${path70}/${file}`);
112775
112791
  }
112776
112792
  }
112777
112793
  }
@@ -112783,8 +112799,8 @@ async function tryToRetrieveAllDefaultSSHKeyPaths() {
112783
112799
  __name(tryToRetrieveAllDefaultSSHKeyPaths, "tryToRetrieveAllDefaultSSHKeyPaths");
112784
112800
  async function tryToRetrieveADefaultPath() {
112785
112801
  const paths = await tryToRetrieveAllDefaultSSHKeyPaths();
112786
- const path69 = paths.pop();
112787
- return path69 ?? "";
112802
+ const path70 = paths.pop();
112803
+ return path70 ?? "";
112788
112804
  }
112789
112805
  __name(tryToRetrieveADefaultPath, "tryToRetrieveADefaultPath");
112790
112806
  function clipPublicSSHKey(value) {
@@ -115047,7 +115063,20 @@ __name(printResourceLocation, "printResourceLocation");
115047
115063
 
115048
115064
  // src/wrangler-banner.ts
115049
115065
  init_import_meta_url();
115066
+
115067
+ // ../../node_modules/.pnpm/semiver@1.1.0/node_modules/semiver/dist/semiver.mjs
115068
+ init_import_meta_url();
115069
+ var fn = new Intl.Collator(0, { numeric: 1 }).compare;
115070
+ function semiver_default(a5, b6, bool) {
115071
+ a5 = a5.split(".");
115072
+ b6 = b6.split(".");
115073
+ return fn(a5[0], b6[0]) || fn(a5[1], b6[1]) || (b6[2] = b6.slice(2).join("."), bool = /[.-]/.test(a5[2] = a5.slice(2).join(".")), bool == /[.-]/.test(b6[2]) ? fn(a5[2], b6[2]) : bool ? -1 : 1);
115074
+ }
115075
+ __name(semiver_default, "default");
115076
+
115077
+ // src/wrangler-banner.ts
115050
115078
  init_supports_color();
115079
+ var MIN_NODE_VERSION = "20.0.0";
115051
115080
  async function printWranglerBanner(performUpdateCheck = true) {
115052
115081
  let text = ` \u26C5\uFE0F wrangler ${version}`;
115053
115082
  let maybeNewVersion;
@@ -115060,6 +115089,11 @@ async function printWranglerBanner(performUpdateCheck = true) {
115060
115089
  logger.log(
115061
115090
  "\n" + text + "\n" + (supports_color_default2.stdout ? source_default.hex("#FF8800")("-".repeat(text.length)) : "-".repeat(text.length)) + "\n"
115062
115091
  );
115092
+ if (semiver_default(process.versions.node, MIN_NODE_VERSION) < 0) {
115093
+ logger.warn(
115094
+ `Wrangler requires at least Node.js v${MIN_NODE_VERSION}. You are using v${process.versions.node}. Please update your version of Node.js.`
115095
+ );
115096
+ }
115063
115097
  if (maybeNewVersion !== void 0) {
115064
115098
  const currentMajor = parseInt(version.split(".")[0]);
115065
115099
  const newMajor = parseInt(maybeNewVersion.split(".")[0]);
@@ -117345,19 +117379,40 @@ __name(resolveEntryWithAssets, "resolveEntryWithAssets");
117345
117379
  init_import_meta_url();
117346
117380
  var import_node_fs16 = require("node:fs");
117347
117381
  var import_node_path31 = __toESM(require("node:path"));
117382
+ var import_node_stream = require("node:stream");
117348
117383
  async function runCustomBuild(expectedEntryAbsolute, expectedEntryRelative, build5, configPath) {
117349
117384
  if (build5.command) {
117350
- logger.log("Running custom build:", build5.command);
117385
+ logger.log(source_default.blue("[custom build]"), "Running:", build5.command);
117351
117386
  try {
117352
- await execaCommand(build5.command, {
117387
+ const res = execaCommand(build5.command, {
117353
117388
  shell: true,
117354
- // we keep these two as "inherit" so that
117355
- // logs are still visible.
117356
- stdout: "inherit",
117357
- stderr: "inherit",
117358
117389
  ...build5.cwd && { cwd: build5.cwd }
117359
117390
  });
117391
+ res.stdout?.pipe(
117392
+ new import_node_stream.Writable({
117393
+ write(chunk, _4, callback) {
117394
+ const lines = chunk.toString().split("\n");
117395
+ for (const line of lines) {
117396
+ logger.log(source_default.blue("[custom build]"), line);
117397
+ }
117398
+ callback();
117399
+ }
117400
+ })
117401
+ );
117402
+ res.stderr?.pipe(
117403
+ new import_node_stream.Writable({
117404
+ write(chunk, _4, callback) {
117405
+ const lines = chunk.toString().split("\n");
117406
+ for (const line of lines) {
117407
+ logger.log(source_default.red("[custom build]"), line);
117408
+ }
117409
+ callback();
117410
+ }
117411
+ })
117412
+ );
117413
+ await res;
117360
117414
  } catch (e7) {
117415
+ logger.error(e7);
117361
117416
  throw new UserError(
117362
117417
  `Running custom build \`${build5.command}\` failed. There are likely more logs from your build command above.`,
117363
117418
  {
@@ -120410,14 +120465,14 @@ function getPagesTmpDir() {
120410
120465
  return tmpDirCache;
120411
120466
  }
120412
120467
  __name(getPagesTmpDir, "getPagesTmpDir");
120413
- function debounce(fn, delayMs = 100) {
120468
+ function debounce(fn2, delayMs = 100) {
120414
120469
  let crrTimeoutId;
120415
120470
  return () => {
120416
120471
  if (crrTimeoutId) {
120417
120472
  clearTimeout(crrTimeoutId);
120418
120473
  }
120419
120474
  crrTimeoutId = setTimeout(() => {
120420
- fn();
120475
+ fn2();
120421
120476
  }, delayMs);
120422
120477
  };
120423
120478
  }
@@ -120951,8 +121006,8 @@ function buildPluginFromFunctions({
120951
121006
  ]
120952
121007
  };
120953
121008
  }
120954
- const path69 = `assets:./${(0, import_node_path39.relative)(outdir, directory)}`;
120955
- return { path: path69, external: true, namespace: "assets" };
121009
+ const path70 = `assets:./${(0, import_node_path39.relative)(outdir, directory)}`;
121010
+ return { path: path70, external: true, namespace: "assets" };
120956
121011
  });
120957
121012
  }
120958
121013
  },
@@ -121116,7 +121171,7 @@ function compareRoutes({ routePath: routePathA, method: methodA }, { routePath:
121116
121171
  return routePathA.localeCompare(routePathB);
121117
121172
  }
121118
121173
  __name(compareRoutes, "compareRoutes");
121119
- async function forEachFile(baseDir, fn) {
121174
+ async function forEachFile(baseDir, fn2) {
121120
121175
  const searchPaths = [baseDir];
121121
121176
  const returnValues = [];
121122
121177
  while (isNotEmpty(searchPaths)) {
@@ -121127,7 +121182,7 @@ async function forEachFile(baseDir, fn) {
121127
121182
  if (entry.isDirectory()) {
121128
121183
  searchPaths.push(pathname);
121129
121184
  } else if (entry.isFile()) {
121130
- returnValues.push(await fn(pathname));
121185
+ returnValues.push(await fn2(pathname));
121131
121186
  }
121132
121187
  }
121133
121188
  }
@@ -132150,11 +132205,11 @@ var r2BucketCatalogEnableCommand = createCommand({
132150
132205
  const response = await enableR2Catalog(accountId, args.bucket);
132151
132206
  let catalogHost;
132152
132207
  const env6 = getCloudflareApiEnvironmentFromEnv();
132153
- const path69 = response.name.replace("_", "/");
132208
+ const path70 = response.name.replace("_", "/");
132154
132209
  if (env6 === "staging") {
132155
- catalogHost = `https://catalog-staging.cloudflarestorage.com/${path69}`;
132210
+ catalogHost = `https://catalog-staging.cloudflarestorage.com/${path70}`;
132156
132211
  } else {
132157
- catalogHost = `https://catalog.cloudflarestorage.com/${path69}`;
132212
+ catalogHost = `https://catalog.cloudflarestorage.com/${path70}`;
132158
132213
  }
132159
132214
  logger.log(
132160
132215
  `\u2728 Successfully enabled data catalog on bucket '${args.bucket}'.
@@ -132229,11 +132284,11 @@ var r2BucketCatalogGetCommand = createCommand({
132229
132284
  const catalog = await getR2Catalog(accountId, args.bucket);
132230
132285
  const env6 = getCloudflareApiEnvironmentFromEnv();
132231
132286
  let catalogHost;
132232
- const path69 = catalog.name.replace("_", "/");
132287
+ const path70 = catalog.name.replace("_", "/");
132233
132288
  if (env6 === "staging") {
132234
- catalogHost = `https://catalog-staging.cloudflarestorage.com/${path69}`;
132289
+ catalogHost = `https://catalog-staging.cloudflarestorage.com/${path70}`;
132235
132290
  } else {
132236
- catalogHost = `https://catalog.cloudflarestorage.com/${path69}`;
132291
+ catalogHost = `https://catalog.cloudflarestorage.com/${path70}`;
132237
132292
  }
132238
132293
  const output = {
132239
132294
  "Catalog URI": catalogHost,
@@ -135532,8 +135587,8 @@ function isValidProtocol(protocol) {
135532
135587
  }
135533
135588
  __name(isValidProtocol, "isValidProtocol");
135534
135589
  function dsnToString(dsn, withPassword = false) {
135535
- const { host, path: path69, pass: pass2, port, projectId, protocol, publicKey } = dsn;
135536
- return `${protocol}://${publicKey}${withPassword && pass2 ? `:${pass2}` : ""}@${host}${port ? `:${port}` : ""}/${path69 ? `${path69}/` : path69}${projectId}`;
135590
+ const { host, path: path70, pass: pass2, port, projectId, protocol, publicKey } = dsn;
135591
+ return `${protocol}://${publicKey}${withPassword && pass2 ? `:${pass2}` : ""}@${host}${port ? `:${port}` : ""}/${path70 ? `${path70}/` : path70}${projectId}`;
135537
135592
  }
135538
135593
  __name(dsnToString, "dsnToString");
135539
135594
  function dsnFromString(str) {
@@ -135545,11 +135600,11 @@ function dsnFromString(str) {
135545
135600
  return void 0;
135546
135601
  }
135547
135602
  const [protocol, publicKey, pass2 = "", host, port = "", lastPath] = match2.slice(1);
135548
- let path69 = "";
135603
+ let path70 = "";
135549
135604
  let projectId = lastPath;
135550
135605
  const split = projectId.split("/");
135551
135606
  if (split.length > 1) {
135552
- path69 = split.slice(0, -1).join("/");
135607
+ path70 = split.slice(0, -1).join("/");
135553
135608
  projectId = split.pop();
135554
135609
  }
135555
135610
  if (projectId) {
@@ -135558,7 +135613,7 @@ function dsnFromString(str) {
135558
135613
  projectId = projectMatch[0];
135559
135614
  }
135560
135615
  }
135561
- return dsnFromComponents({ host, pass: pass2, path: path69, projectId, port, protocol, publicKey });
135616
+ return dsnFromComponents({ host, pass: pass2, path: path70, projectId, port, protocol, publicKey });
135562
135617
  }
135563
135618
  __name(dsnFromString, "dsnFromString");
135564
135619
  function dsnFromComponents(components) {
@@ -135924,12 +135979,12 @@ function stripSentryFramesAndReverse(stack) {
135924
135979
  }
135925
135980
  __name(stripSentryFramesAndReverse, "stripSentryFramesAndReverse");
135926
135981
  var defaultFunctionName = "<anonymous>";
135927
- function getFunctionName(fn) {
135982
+ function getFunctionName(fn2) {
135928
135983
  try {
135929
- if (!fn || typeof fn !== "function") {
135984
+ if (!fn2 || typeof fn2 !== "function") {
135930
135985
  return defaultFunctionName;
135931
135986
  }
135932
- return fn.name || defaultFunctionName;
135987
+ return fn2.name || defaultFunctionName;
135933
135988
  } catch (e7) {
135934
135989
  return defaultFunctionName;
135935
135990
  }
@@ -136650,9 +136705,9 @@ function getNumberOfUrlSegments(url4) {
136650
136705
  }
136651
136706
  __name(getNumberOfUrlSegments, "getNumberOfUrlSegments");
136652
136707
  function getSanitizedUrlString(url4) {
136653
- const { protocol, host, path: path69 } = url4;
136708
+ const { protocol, host, path: path70 } = url4;
136654
136709
  const filteredHost = host && host.replace(/^.*@/, "[filtered]:[filtered]@").replace(/(:80)$/, "").replace(/(:443)$/, "") || "";
136655
- return `${protocol ? `${protocol}://` : ""}${filteredHost}${path69}`;
136710
+ return `${protocol ? `${protocol}://` : ""}${filteredHost}${path70}`;
136656
136711
  }
136657
136712
  __name(getSanitizedUrlString, "getSanitizedUrlString");
136658
136713
 
@@ -136667,13 +136722,13 @@ var DEFAULT_REQUEST_INCLUDES = ["cookies", "data", "headers", "method", "query_s
136667
136722
  var DEFAULT_USER_INCLUDES = ["id", "username", "email"];
136668
136723
  function extractPathForTransaction(req, options = {}) {
136669
136724
  const method = req.method && req.method.toUpperCase();
136670
- let path69 = "";
136725
+ let path70 = "";
136671
136726
  let source = "url";
136672
136727
  if (options.customRoute || req.route) {
136673
- path69 = options.customRoute || `${req.baseUrl || ""}${req.route && req.route.path}`;
136728
+ path70 = options.customRoute || `${req.baseUrl || ""}${req.route && req.route.path}`;
136674
136729
  source = "route";
136675
136730
  } else if (req.originalUrl || req.url) {
136676
- path69 = stripUrlQueryAndFragment(req.originalUrl || req.url || "");
136731
+ path70 = stripUrlQueryAndFragment(req.originalUrl || req.url || "");
136677
136732
  }
136678
136733
  let name2 = "";
136679
136734
  if (options.method && method) {
@@ -136682,8 +136737,8 @@ function extractPathForTransaction(req, options = {}) {
136682
136737
  if (options.method && options.path) {
136683
136738
  name2 += " ";
136684
136739
  }
136685
- if (options.path && path69) {
136686
- name2 += path69;
136740
+ if (options.path && path70) {
136741
+ name2 += path70;
136687
136742
  }
136688
136743
  return [name2, source];
136689
136744
  }
@@ -137374,16 +137429,16 @@ function _optionalChain(ops) {
137374
137429
  let i5 = 1;
137375
137430
  while (i5 < ops.length) {
137376
137431
  const op = ops[i5];
137377
- const fn = ops[i5 + 1];
137432
+ const fn2 = ops[i5 + 1];
137378
137433
  i5 += 2;
137379
137434
  if ((op === "optionalAccess" || op === "optionalCall") && value == null) {
137380
137435
  return;
137381
137436
  }
137382
137437
  if (op === "access" || op === "optionalAccess") {
137383
137438
  lastAccessLHS = value;
137384
- value = fn(value);
137439
+ value = fn2(value);
137385
137440
  } else if (op === "call" || op === "optionalCall") {
137386
- value = fn((...args) => value.call(lastAccessLHS, ...args));
137441
+ value = fn2((...args) => value.call(lastAccessLHS, ...args));
137387
137442
  lastAccessLHS = void 0;
137388
137443
  }
137389
137444
  }
@@ -141063,15 +141118,15 @@ var Express = class _Express {
141063
141118
  }
141064
141119
  };
141065
141120
  Express.__initStatic();
141066
- function wrap3(fn, method) {
141067
- const arity = fn.length;
141121
+ function wrap3(fn2, method) {
141122
+ const arity = fn2.length;
141068
141123
  switch (arity) {
141069
141124
  case 2: {
141070
141125
  return function(req, res) {
141071
141126
  const transaction = res.__sentry_transaction;
141072
141127
  if (transaction) {
141073
141128
  const span = transaction.startChild({
141074
- description: fn.name,
141129
+ description: fn2.name,
141075
141130
  op: `middleware.express.${method}`,
141076
141131
  origin: "auto.middleware.express"
141077
141132
  });
@@ -141079,18 +141134,18 @@ function wrap3(fn, method) {
141079
141134
  span.finish();
141080
141135
  });
141081
141136
  }
141082
- return fn.call(this, req, res);
141137
+ return fn2.call(this, req, res);
141083
141138
  };
141084
141139
  }
141085
141140
  case 3: {
141086
141141
  return function(req, res, next) {
141087
141142
  const transaction = res.__sentry_transaction;
141088
141143
  const span = _optionalChain([transaction, "optionalAccess", (_22) => _22.startChild, "call", (_32) => _32({
141089
- description: fn.name,
141144
+ description: fn2.name,
141090
141145
  op: `middleware.express.${method}`,
141091
141146
  origin: "auto.middleware.express"
141092
141147
  })]);
141093
- fn.call(this, req, res, function(...args) {
141148
+ fn2.call(this, req, res, function(...args) {
141094
141149
  _optionalChain([span, "optionalAccess", (_4) => _4.finish, "call", (_5) => _5()]);
141095
141150
  next.call(this, ...args);
141096
141151
  });
@@ -141100,11 +141155,11 @@ function wrap3(fn, method) {
141100
141155
  return function(err, req, res, next) {
141101
141156
  const transaction = res.__sentry_transaction;
141102
141157
  const span = _optionalChain([transaction, "optionalAccess", (_6) => _6.startChild, "call", (_7) => _7({
141103
- description: fn.name,
141158
+ description: fn2.name,
141104
141159
  op: `middleware.express.${method}`,
141105
141160
  origin: "auto.middleware.express"
141106
141161
  })]);
141107
- fn.call(this, err, req, res, function(...args) {
141162
+ fn2.call(this, err, req, res, function(...args) {
141108
141163
  _optionalChain([span, "optionalAccess", (_8) => _8.finish, "call", (_9) => _9()]);
141109
141164
  next.call(this, ...args);
141110
141165
  });
@@ -141194,13 +141249,13 @@ function instrumentRouter(appOrRouter) {
141194
141249
  }, "process_params");
141195
141250
  }
141196
141251
  __name(instrumentRouter, "instrumentRouter");
141197
- var extractOriginalRoute = /* @__PURE__ */ __name((path69, regexp, keys) => {
141198
- if (!path69 || !regexp || !keys || Object.keys(keys).length === 0 || !_optionalChain([keys, "access", (_10) => _10[0], "optionalAccess", (_11) => _11.offset])) {
141252
+ var extractOriginalRoute = /* @__PURE__ */ __name((path70, regexp, keys) => {
141253
+ if (!path70 || !regexp || !keys || Object.keys(keys).length === 0 || !_optionalChain([keys, "access", (_10) => _10[0], "optionalAccess", (_11) => _11.offset])) {
141199
141254
  return void 0;
141200
141255
  }
141201
141256
  const orderedKeys = keys.sort((a5, b6) => a5.offset - b6.offset);
141202
141257
  const pathRegex = new RegExp(regexp, `${regexp.flags}d`);
141203
- const execResult = pathRegex.exec(path69);
141258
+ const execResult = pathRegex.exec(path70);
141204
141259
  if (!execResult || !execResult.indices) {
141205
141260
  return void 0;
141206
141261
  }
@@ -141208,7 +141263,7 @@ var extractOriginalRoute = /* @__PURE__ */ __name((path69, regexp, keys) => {
141208
141263
  if (paramIndices.length !== orderedKeys.length) {
141209
141264
  return void 0;
141210
141265
  }
141211
- let resultPath = path69;
141266
+ let resultPath = path70;
141212
141267
  let indexShift = 0;
141213
141268
  paramIndices.forEach((item, index) => {
141214
141269
  if (item) {
@@ -142123,8 +142178,8 @@ init_import_meta_url();
142123
142178
  init_import_meta_url();
142124
142179
  var import_path20 = require("path");
142125
142180
  var isWindowsPlatform = import_path20.sep === "\\";
142126
- function normalizeWindowsPath(path69) {
142127
- return path69.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
142181
+ function normalizeWindowsPath(path70) {
142182
+ return path70.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
142128
142183
  }
142129
142184
  __name(normalizeWindowsPath, "normalizeWindowsPath");
142130
142185
  function getModuleFromFilename(filename, normalizeWindowsPathSeparator = isWindowsPlatform) {
@@ -142315,15 +142370,15 @@ init_import_meta_url();
142315
142370
  var import_url7 = require("url");
142316
142371
  function extractRawUrl(requestOptions) {
142317
142372
  const { protocol, hostname: hostname2, port } = parseRequestOptions(requestOptions);
142318
- const path69 = requestOptions.path ? requestOptions.path : "/";
142319
- return `${protocol}//${hostname2}${port}${path69}`;
142373
+ const path70 = requestOptions.path ? requestOptions.path : "/";
142374
+ return `${protocol}//${hostname2}${port}${path70}`;
142320
142375
  }
142321
142376
  __name(extractRawUrl, "extractRawUrl");
142322
142377
  function extractUrl(requestOptions) {
142323
142378
  const { protocol, hostname: hostname2, port } = parseRequestOptions(requestOptions);
142324
- const path69 = requestOptions.pathname || "/";
142379
+ const path70 = requestOptions.pathname || "/";
142325
142380
  const authority = requestOptions.auth ? redactAuthority(requestOptions.auth) : "";
142326
- return `${protocol}//${authority}${hostname2}${port}${path69}`;
142381
+ return `${protocol}//${authority}${hostname2}${port}${path70}`;
142327
142382
  }
142328
142383
  __name(extractUrl, "extractUrl");
142329
142384
  function redactAuthority(auth) {
@@ -142870,8 +142925,8 @@ function collectModules() {
142870
142925
  const paths = getPaths();
142871
142926
  const infos = {};
142872
142927
  const seen = {};
142873
- paths.forEach((path69) => {
142874
- let dir = path69;
142928
+ paths.forEach((path70) => {
142929
+ let dir = path70;
142875
142930
  const updir = /* @__PURE__ */ __name(() => {
142876
142931
  const orig = dir;
142877
142932
  dir = (0, import_path21.dirname)(orig);
@@ -142948,9 +143003,9 @@ init_import_meta_url();
142948
143003
  var import_fs20 = require("fs");
142949
143004
  var FILE_CONTENT_CACHE = new LRUMap(100);
142950
143005
  var DEFAULT_LINES_OF_CONTEXT = 7;
142951
- function readTextFileAsync(path69) {
143006
+ function readTextFileAsync(path70) {
142952
143007
  return new Promise((resolve24, reject) => {
142953
- (0, import_fs20.readFile)(path69, "utf8", (err, data) => {
143008
+ (0, import_fs20.readFile)(path70, "utf8", (err, data) => {
142954
143009
  if (err) reject(err);
142955
143010
  else resolve24(data);
142956
143011
  });
@@ -143409,8 +143464,8 @@ function createCallbackList(complete) {
143409
143464
  }
143410
143465
  __name(checkedComplete, "checkedComplete");
143411
143466
  callbacks.push(checkedComplete);
143412
- function add(fn) {
143413
- callbacks.push(fn);
143467
+ function add(fn2) {
143468
+ callbacks.push(fn2);
143414
143469
  }
143415
143470
  __name(add, "add");
143416
143471
  function next(result) {
@@ -143626,17 +143681,17 @@ var LocalVariables = class _LocalVariables {
143626
143681
  for (let i5 = 0; i5 < Math.min(callFrames.length, 5); i5++) {
143627
143682
  const { scopeChain, functionName, this: obj } = callFrames[i5];
143628
143683
  const localScope = scopeChain.find((scope) => scope.type === "local");
143629
- const fn = obj.className === "global" || !obj.className ? functionName : `${obj.className}.${functionName}`;
143684
+ const fn2 = obj.className === "global" || !obj.className ? functionName : `${obj.className}.${functionName}`;
143630
143685
  if (_optionalChain([localScope, "optionalAccess", (_39) => _39.object, "access", (_40) => _40.objectId]) === void 0) {
143631
143686
  add((frames) => {
143632
- frames[i5] = { function: fn };
143687
+ frames[i5] = { function: fn2 };
143633
143688
  next(frames);
143634
143689
  });
143635
143690
  } else {
143636
143691
  const id = localScope.object.objectId;
143637
143692
  add(
143638
143693
  (frames) => _optionalChain([this, "access", (_41) => _41._session, "optionalAccess", (_42) => _42.getLocalVariables, "call", (_43) => _43(id, (vars) => {
143639
- frames[i5] = { function: fn, vars };
143694
+ frames[i5] = { function: fn2, vars };
143640
143695
  next(frames);
143641
143696
  })])
143642
143697
  );
@@ -144664,9 +144719,9 @@ async function generate({
144664
144719
  script: worker
144665
144720
  });
144666
144721
  const flagsString = compatibilityFlags.length ? `+${compatibilityFlags.join("+")}` : "";
144667
- const path69 = `http://dummy.com/${compatibilityDate}${flagsString}`;
144722
+ const path70 = `http://dummy.com/${compatibilityDate}${flagsString}`;
144668
144723
  try {
144669
- const res = await mf.dispatchFetch(path69);
144724
+ const res = await mf.dispatchFetch(path70);
144670
144725
  const text = await res.text();
144671
144726
  if (!res.ok) {
144672
144727
  throw new Error(text);
@@ -145202,8 +145257,8 @@ async function generateEnvTypes(config, args, envInterface, outputPath, entrypoi
145202
145257
  }
145203
145258
  }
145204
145259
  __name(generateEnvTypes, "generateEnvTypes");
145205
- var checkPath = /* @__PURE__ */ __name((path69) => {
145206
- const wranglerOverrideDTSPath = findUpSync(path69);
145260
+ var checkPath = /* @__PURE__ */ __name((path70) => {
145261
+ const wranglerOverrideDTSPath = findUpSync(path70);
145207
145262
  if (wranglerOverrideDTSPath === void 0) {
145208
145263
  return;
145209
145264
  }
@@ -145211,7 +145266,7 @@ var checkPath = /* @__PURE__ */ __name((path69) => {
145211
145266
  const fileContent = fs22.readFileSync(wranglerOverrideDTSPath, "utf8");
145212
145267
  if (!fileContent.includes("Generated by Wrangler") && !fileContent.includes("Runtime types generated with workerd")) {
145213
145268
  throw new UserError(
145214
- `A non-Wrangler ${(0, import_node_path56.basename)(path69)} already exists, please rename and try again.`,
145269
+ `A non-Wrangler ${(0, import_node_path56.basename)(path70)} already exists, please rename and try again.`,
145215
145270
  { telemetryMessage: "A non-Wrangler .d.ts file already exists" }
145216
145271
  );
145217
145272
  }
@@ -145798,10 +145853,10 @@ var VECTORIZE_V1_MAX_BATCH_SIZE = 1e3;
145798
145853
  var VECTORIZE_MAX_BATCH_SIZE = 5e3;
145799
145854
  var VECTORIZE_UPSERT_BATCH_SIZE = VECTORIZE_V1_MAX_BATCH_SIZE;
145800
145855
  var VECTORIZE_MAX_UPSERT_VECTOR_RECORDS = 1e5;
145801
- async function isValidFile(path69) {
145856
+ async function isValidFile(path70) {
145802
145857
  try {
145803
- await (0, import_promises33.access)(path69, import_promises33.constants.R_OK);
145804
- const fileStat = await (0, import_promises33.stat)(path69);
145858
+ await (0, import_promises33.access)(path70, import_promises33.constants.R_OK);
145859
+ const fileStat = await (0, import_promises33.stat)(path70);
145805
145860
  return fileStat.isFile() && fileStat.size > 0;
145806
145861
  } catch (err) {
145807
145862
  return false;
@@ -154854,7 +154909,7 @@ var BundlerController = class extends Controller {
154854
154909
  (0, import_assert6.default)(pathsToWatch, "config.build.custom.watch");
154855
154910
  this.#customBuildWatcher = watch(pathsToWatch, {
154856
154911
  persistent: true,
154857
- // TODO: add comments re this ans ready
154912
+ // The initial custom build is always done in getEntry()
154858
154913
  ignoreInitial: true
154859
154914
  });
154860
154915
  this.#customBuildWatcher.on("ready", () => {
@@ -156638,6 +156693,38 @@ function unstable_getMiniflareWorkerOptions(configOrConfigPath, env6, options) {
156638
156693
  }
156639
156694
  __name(unstable_getMiniflareWorkerOptions, "unstable_getMiniflareWorkerOptions");
156640
156695
 
156696
+ // src/api/mixedMode/index.ts
156697
+ init_import_meta_url();
156698
+ var import_node_path67 = __toESM(require("node:path"));
156699
+ async function startMixedModeSession(bindings) {
156700
+ const proxyServerWorkerWranglerConfig = import_node_path67.default.resolve(
156701
+ getBasePath(),
156702
+ "templates/mixedMode/proxyServerWorker/wrangler.jsonc"
156703
+ );
156704
+ const worker = await startWorker({
156705
+ config: proxyServerWorkerWranglerConfig,
156706
+ dev: {
156707
+ remote: true,
156708
+ auth: {
156709
+ accountId: await requireAuth({}),
156710
+ apiToken: requireApiToken()
156711
+ }
156712
+ },
156713
+ bindings
156714
+ });
156715
+ const mixedModeConnectionString = await worker.url;
156716
+ const setConfig = /* @__PURE__ */ __name(async (newBindings) => {
156717
+ await worker.setConfig({ bindings: newBindings });
156718
+ }, "setConfig");
156719
+ return {
156720
+ ready: worker.ready,
156721
+ mixedModeConnectionString,
156722
+ setConfig,
156723
+ dispose: worker.dispose
156724
+ };
156725
+ }
156726
+ __name(startMixedModeSession, "startMixedModeSession");
156727
+
156641
156728
  // src/config/patch-config.ts
156642
156729
  init_import_meta_url();
156643
156730
  var import_fs25 = require("fs");
@@ -156711,6 +156798,7 @@ var generateASSETSBinding2 = (
156711
156798
  0 && (module.exports = {
156712
156799
  experimental_patchConfig,
156713
156800
  experimental_readRawConfig,
156801
+ experimental_startMixedModeSession,
156714
156802
  getPlatformProxy,
156715
156803
  unstable_DevEnv,
156716
156804
  unstable_dev,