create-cloudflare 2.51.3 → 2.51.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -265,7 +265,7 @@ var require_signal_exit = __commonJS({
265
265
  };
266
266
  };
267
267
  } else {
268
- assert4 = require("assert");
268
+ assert5 = require("assert");
269
269
  signals = require_signals();
270
270
  isWin = /^win/i.test(process6.platform);
271
271
  EE = require("events");
@@ -288,7 +288,7 @@ var require_signal_exit = __commonJS({
288
288
  return function() {
289
289
  };
290
290
  }
291
- assert4.equal(typeof cb, "function", "a callback must be provided for exit handler");
291
+ assert5.equal(typeof cb, "function", "a callback must be provided for exit handler");
292
292
  if (loaded === false) {
293
293
  load();
294
294
  }
@@ -394,7 +394,7 @@ var require_signal_exit = __commonJS({
394
394
  }
395
395
  };
396
396
  }
397
- var assert4;
397
+ var assert5;
398
398
  var signals;
399
399
  var isWin;
400
400
  var EE;
@@ -4180,7 +4180,7 @@ var require_tree = __commonJS({
4180
4180
  var require_util = __commonJS({
4181
4181
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/core/util.js"(exports2, module2) {
4182
4182
  "use strict";
4183
- var assert4 = require("node:assert");
4183
+ var assert5 = require("node:assert");
4184
4184
  var { kDestroyed, kBodyUsed, kListeners, kBody } = require_symbols();
4185
4185
  var { IncomingMessage } = require("node:http");
4186
4186
  var stream = require("node:stream");
@@ -4199,7 +4199,7 @@ var require_util = __commonJS({
4199
4199
  this[kBodyUsed] = false;
4200
4200
  }
4201
4201
  async *[Symbol.asyncIterator]() {
4202
- assert4(!this[kBodyUsed], "disturbed");
4202
+ assert5(!this[kBodyUsed], "disturbed");
4203
4203
  this[kBodyUsed] = true;
4204
4204
  yield* this[kBody];
4205
4205
  }
@@ -4210,7 +4210,7 @@ var require_util = __commonJS({
4210
4210
  if (isStream(body)) {
4211
4211
  if (bodyLength(body) === 0) {
4212
4212
  body.on("data", function() {
4213
- assert4(false);
4213
+ assert5(false);
4214
4214
  });
4215
4215
  }
4216
4216
  if (typeof body.readableDidRead !== "boolean") {
@@ -4316,7 +4316,7 @@ var require_util = __commonJS({
4316
4316
  function getHostname(host) {
4317
4317
  if (host[0] === "[") {
4318
4318
  const idx2 = host.indexOf("]");
4319
- assert4(idx2 !== -1);
4319
+ assert5(idx2 !== -1);
4320
4320
  return host.substring(1, idx2);
4321
4321
  }
4322
4322
  const idx = host.indexOf(":");
@@ -4327,7 +4327,7 @@ var require_util = __commonJS({
4327
4327
  if (!host) {
4328
4328
  return null;
4329
4329
  }
4330
- assert4(typeof host === "string");
4330
+ assert5(typeof host === "string");
4331
4331
  const servername = getHostname(host);
4332
4332
  if (net.isIP(servername)) {
4333
4333
  return "";
@@ -4607,7 +4607,7 @@ var require_util = __commonJS({
4607
4607
  function errorRequest(client, request2, err) {
4608
4608
  try {
4609
4609
  request2.onError(err);
4610
- assert4(request2.aborted);
4610
+ assert5(request2.aborted);
4611
4611
  } catch (err2) {
4612
4612
  client.emit("error", err2);
4613
4613
  }
@@ -4969,7 +4969,7 @@ var require_request = __commonJS({
4969
4969
  InvalidArgumentError,
4970
4970
  NotSupportedError
4971
4971
  } = require_errors();
4972
- var assert4 = require("node:assert");
4972
+ var assert5 = require("node:assert");
4973
4973
  var {
4974
4974
  isValidHTTPToken,
4975
4975
  isValidHeaderValue,
@@ -5140,8 +5140,8 @@ var require_request = __commonJS({
5140
5140
  }
5141
5141
  }
5142
5142
  onConnect(abort) {
5143
- assert4(!this.aborted);
5144
- assert4(!this.completed);
5143
+ assert5(!this.aborted);
5144
+ assert5(!this.completed);
5145
5145
  if (this.error) {
5146
5146
  abort(this.error);
5147
5147
  } else {
@@ -5153,8 +5153,8 @@ var require_request = __commonJS({
5153
5153
  return this[kHandler].onResponseStarted?.();
5154
5154
  }
5155
5155
  onHeaders(statusCode, headers, resume, statusText) {
5156
- assert4(!this.aborted);
5157
- assert4(!this.completed);
5156
+ assert5(!this.aborted);
5157
+ assert5(!this.completed);
5158
5158
  if (channels.headers.hasSubscribers) {
5159
5159
  channels.headers.publish({ request: this, response: { statusCode, headers, statusText } });
5160
5160
  }
@@ -5165,8 +5165,8 @@ var require_request = __commonJS({
5165
5165
  }
5166
5166
  }
5167
5167
  onData(chunk) {
5168
- assert4(!this.aborted);
5169
- assert4(!this.completed);
5168
+ assert5(!this.aborted);
5169
+ assert5(!this.completed);
5170
5170
  if (channels.bodyChunkReceived.hasSubscribers) {
5171
5171
  channels.bodyChunkReceived.publish({ request: this, chunk });
5172
5172
  }
@@ -5178,14 +5178,14 @@ var require_request = __commonJS({
5178
5178
  }
5179
5179
  }
5180
5180
  onUpgrade(statusCode, headers, socket) {
5181
- assert4(!this.aborted);
5182
- assert4(!this.completed);
5181
+ assert5(!this.aborted);
5182
+ assert5(!this.completed);
5183
5183
  return this[kHandler].onUpgrade(statusCode, headers, socket);
5184
5184
  }
5185
5185
  onComplete(trailers) {
5186
5186
  this.onFinally();
5187
- assert4(!this.aborted);
5188
- assert4(!this.completed);
5187
+ assert5(!this.aborted);
5188
+ assert5(!this.completed);
5189
5189
  this.completed = true;
5190
5190
  if (channels.trailers.hasSubscribers) {
5191
5191
  channels.trailers.publish({ request: this, trailers });
@@ -5634,7 +5634,7 @@ var require_connect = __commonJS({
5634
5634
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/core/connect.js"(exports2, module2) {
5635
5635
  "use strict";
5636
5636
  var net = require("node:net");
5637
- var assert4 = require("node:assert");
5637
+ var assert5 = require("node:assert");
5638
5638
  var util = require_util();
5639
5639
  var { InvalidArgumentError } = require_errors();
5640
5640
  var tls;
@@ -5680,7 +5680,7 @@ var require_connect = __commonJS({
5680
5680
  }
5681
5681
  servername = servername || options.servername || util.getServerName(host) || null;
5682
5682
  const sessionKey = servername || hostname;
5683
- assert4(sessionKey);
5683
+ assert5(sessionKey);
5684
5684
  const session = customSession || sessionCache.get(sessionKey) || null;
5685
5685
  port = port || 443;
5686
5686
  socket = tls.connect({
@@ -5700,7 +5700,7 @@ var require_connect = __commonJS({
5700
5700
  sessionCache.set(sessionKey, session2);
5701
5701
  });
5702
5702
  } else {
5703
- assert4(!httpSocket, "httpSocket can only be sent on TLS update");
5703
+ assert5(!httpSocket, "httpSocket can only be sent on TLS update");
5704
5704
  port = port || 80;
5705
5705
  socket = net.connect({
5706
5706
  highWaterMark: 64 * 1024,
@@ -6639,14 +6639,14 @@ var require_global = __commonJS({
6639
6639
  var require_data_url = __commonJS({
6640
6640
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/web/fetch/data-url.js"(exports2, module2) {
6641
6641
  "use strict";
6642
- var assert4 = require("node:assert");
6642
+ var assert5 = require("node:assert");
6643
6643
  var encoder = new TextEncoder();
6644
6644
  var HTTP_TOKEN_CODEPOINTS = /^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;
6645
6645
  var HTTP_WHITESPACE_REGEX = /[\u000A\u000D\u0009\u0020]/;
6646
6646
  var ASCII_WHITESPACE_REPLACE_REGEX = /[\u0009\u000A\u000C\u000D\u0020]/g;
6647
6647
  var HTTP_QUOTED_STRING_TOKENS = /^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;
6648
6648
  function dataURLProcessor(dataURL) {
6649
- assert4(dataURL.protocol === "data:");
6649
+ assert5(dataURL.protocol === "data:");
6650
6650
  let input = URLSerializer(dataURL, true);
6651
6651
  input = input.slice(5);
6652
6652
  const position = { position: 0 };
@@ -6847,7 +6847,7 @@ var require_data_url = __commonJS({
6847
6847
  function collectAnHTTPQuotedString(input, position, extractValue = false) {
6848
6848
  const positionStart = position.position;
6849
6849
  let value = "";
6850
- assert4(input[position.position] === '"');
6850
+ assert5(input[position.position] === '"');
6851
6851
  position.position++;
6852
6852
  while (true) {
6853
6853
  value += collectASequenceOfCodePoints(
@@ -6868,7 +6868,7 @@ var require_data_url = __commonJS({
6868
6868
  value += input[position.position];
6869
6869
  position.position++;
6870
6870
  } else {
6871
- assert4(quoteOrBackslash === '"');
6871
+ assert5(quoteOrBackslash === '"');
6872
6872
  break;
6873
6873
  }
6874
6874
  }
@@ -6878,7 +6878,7 @@ var require_data_url = __commonJS({
6878
6878
  return input.slice(positionStart, position.position);
6879
6879
  }
6880
6880
  function serializeAMimeType(mimeType) {
6881
- assert4(mimeType !== "failure");
6881
+ assert5(mimeType !== "failure");
6882
6882
  const { parameters, essence } = mimeType;
6883
6883
  let serialization = essence;
6884
6884
  for (let [name3, value] of parameters.entries()) {
@@ -7472,7 +7472,7 @@ var require_util2 = __commonJS({
7472
7472
  var { collectASequenceOfCodePoints, collectAnHTTPQuotedString, removeChars, parseMIMEType } = require_data_url();
7473
7473
  var { performance: performance2 } = require("node:perf_hooks");
7474
7474
  var { ReadableStreamFrom, isValidHTTPToken, normalizedMethodRecordsBase } = require_util();
7475
- var assert4 = require("node:assert");
7475
+ var assert5 = require("node:assert");
7476
7476
  var { isUint8Array } = require("node:util/types");
7477
7477
  var { webidl } = require_webidl();
7478
7478
  var supportedHashes = [];
@@ -7661,7 +7661,7 @@ var require_util2 = __commonJS({
7661
7661
  }
7662
7662
  function determineRequestsReferrer(request2) {
7663
7663
  const policy = request2.referrerPolicy;
7664
- assert4(policy);
7664
+ assert5(policy);
7665
7665
  let referrerSource = null;
7666
7666
  if (request2.referrer === "client") {
7667
7667
  const globalOrigin = getGlobalOrigin();
@@ -7724,7 +7724,7 @@ var require_util2 = __commonJS({
7724
7724
  }
7725
7725
  }
7726
7726
  function stripURLForReferrer(url, originOnly = false) {
7727
- assert4(webidl.is.URL(url));
7727
+ assert5(webidl.is.URL(url));
7728
7728
  url = new URL(url);
7729
7729
  if (urlIsLocal(url)) {
7730
7730
  return "no-referrer";
@@ -7911,7 +7911,7 @@ var require_util2 = __commonJS({
7911
7911
  if (result === void 0) {
7912
7912
  throw new TypeError("Value is not JSON serializable");
7913
7913
  }
7914
- assert4(typeof result === "string");
7914
+ assert5(typeof result === "string");
7915
7915
  return result;
7916
7916
  }
7917
7917
  var esIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));
@@ -8065,7 +8065,7 @@ var require_util2 = __commonJS({
8065
8065
  }
8066
8066
  var invalidIsomorphicEncodeValueRegex = /[^\x00-\xFF]/;
8067
8067
  function isomorphicEncode(input) {
8068
- assert4(!invalidIsomorphicEncodeValueRegex.test(input));
8068
+ assert5(!invalidIsomorphicEncodeValueRegex.test(input));
8069
8069
  return input;
8070
8070
  }
8071
8071
  async function readAllBytes(reader, successSteps, failureSteps) {
@@ -8090,7 +8090,7 @@ var require_util2 = __commonJS({
8090
8090
  }
8091
8091
  }
8092
8092
  function urlIsLocal(url) {
8093
- assert4("protocol" in url);
8093
+ assert5("protocol" in url);
8094
8094
  const protocol = url.protocol;
8095
8095
  return protocol === "about:" || protocol === "blob:" || protocol === "data:";
8096
8096
  }
@@ -8098,7 +8098,7 @@ var require_util2 = __commonJS({
8098
8098
  return typeof url === "string" && url[5] === ":" && url[0] === "h" && url[1] === "t" && url[2] === "t" && url[3] === "p" && url[4] === "s" || url.protocol === "https:";
8099
8099
  }
8100
8100
  function urlIsHttpHttpsScheme(url) {
8101
- assert4("protocol" in url);
8101
+ assert5("protocol" in url);
8102
8102
  const protocol = url.protocol;
8103
8103
  return protocol === "http:" || protocol === "https:";
8104
8104
  }
@@ -8263,7 +8263,7 @@ var require_util2 = __commonJS({
8263
8263
  continue;
8264
8264
  }
8265
8265
  } else {
8266
- assert4(input.charCodeAt(position.position) === 44);
8266
+ assert5(input.charCodeAt(position.position) === 44);
8267
8267
  position.position++;
8268
8268
  }
8269
8269
  }
@@ -8532,7 +8532,7 @@ var require_formdata_parser = __commonJS({
8532
8532
  var { HTTP_TOKEN_CODEPOINTS, isomorphicDecode } = require_data_url();
8533
8533
  var { makeEntry } = require_formdata();
8534
8534
  var { webidl } = require_webidl();
8535
- var assert4 = require("node:assert");
8535
+ var assert5 = require("node:assert");
8536
8536
  var { File: NodeFile } = require("node:buffer");
8537
8537
  var File = globalThis.File ?? NodeFile;
8538
8538
  var formDataNameBuffer = Buffer.from('form-data; name="');
@@ -8561,7 +8561,7 @@ var require_formdata_parser = __commonJS({
8561
8561
  return true;
8562
8562
  }
8563
8563
  function multipartFormDataParser(input, mimeType) {
8564
- assert4(mimeType !== "failure" && mimeType.essence === "multipart/form-data");
8564
+ assert5(mimeType !== "failure" && mimeType.essence === "multipart/form-data");
8565
8565
  const boundaryString = mimeType.parameters.get("boundary");
8566
8566
  if (boundaryString === void 0) {
8567
8567
  throw parsingError("missing boundary in content-type header");
@@ -8622,8 +8622,8 @@ var require_formdata_parser = __commonJS({
8622
8622
  } else {
8623
8623
  value = utf8DecodeBytes(Buffer.from(body));
8624
8624
  }
8625
- assert4(webidl.is.USVString(name3));
8626
- assert4(typeof value === "string" && webidl.is.USVString(value) || webidl.is.File(value));
8625
+ assert5(webidl.is.USVString(name3));
8626
+ assert5(typeof value === "string" && webidl.is.USVString(value) || webidl.is.File(value));
8627
8627
  entryList.push(makeEntry(name3, value, filename));
8628
8628
  }
8629
8629
  }
@@ -8740,7 +8740,7 @@ var require_formdata_parser = __commonJS({
8740
8740
  }
8741
8741
  }
8742
8742
  function parseMultipartFormDataName(input, position) {
8743
- assert4(input[position.position - 1] === 34);
8743
+ assert5(input[position.position - 1] === 34);
8744
8744
  let name3 = collectASequenceOfBytes(
8745
8745
  (char) => char !== 10 && char !== 13 && char !== 34,
8746
8746
  input,
@@ -8809,7 +8809,7 @@ var require_body = __commonJS({
8809
8809
  var { FormData, setFormDataState } = require_formdata();
8810
8810
  var { webidl } = require_webidl();
8811
8811
  var { Blob: Blob2 } = require("node:buffer");
8812
- var assert4 = require("node:assert");
8812
+ var assert5 = require("node:assert");
8813
8813
  var { isErrored, isDisturbed } = require("node:stream");
8814
8814
  var { isArrayBuffer } = require("node:util/types");
8815
8815
  var { serializeAMimeType } = require_data_url();
@@ -8854,7 +8854,7 @@ var require_body = __commonJS({
8854
8854
  type: "bytes"
8855
8855
  });
8856
8856
  }
8857
- assert4(webidl.is.ReadableStream(stream));
8857
+ assert5(webidl.is.ReadableStream(stream));
8858
8858
  let action = null;
8859
8859
  let source = null;
8860
8860
  let length = null;
@@ -8972,8 +8972,8 @@ Content-Type: ${value.type || "application/octet-stream"}\r
8972
8972
  }
8973
8973
  function safelyExtractBody(object, keepalive = false) {
8974
8974
  if (webidl.is.ReadableStream(object)) {
8975
- assert4(!util.isDisturbed(object), "The body has already been consumed.");
8976
- assert4(!object.locked, "The stream is locked.");
8975
+ assert5(!util.isDisturbed(object), "The body has already been consumed.");
8976
+ assert5(!object.locked, "The stream is locked.");
8977
8977
  }
8978
8978
  return extractBody(object, keepalive);
8979
8979
  }
@@ -9109,7 +9109,7 @@ Content-Type: ${value.type || "application/octet-stream"}\r
9109
9109
  var require_client_h1 = __commonJS({
9110
9110
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/dispatcher/client-h1.js"(exports2, module2) {
9111
9111
  "use strict";
9112
- var assert4 = require("node:assert");
9112
+ var assert5 = require("node:assert");
9113
9113
  var util = require_util();
9114
9114
  var { channels } = require_diagnostics();
9115
9115
  var timers = require_timers();
@@ -9190,7 +9190,7 @@ var require_client_h1 = __commonJS({
9190
9190
  * @returns {number}
9191
9191
  */
9192
9192
  wasm_on_status: (p2, at, len) => {
9193
- assert4(currentParser.ptr === p2);
9193
+ assert5(currentParser.ptr === p2);
9194
9194
  const start = at - currentBufferPtr + currentBufferRef.byteOffset;
9195
9195
  return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len));
9196
9196
  },
@@ -9199,7 +9199,7 @@ var require_client_h1 = __commonJS({
9199
9199
  * @returns {number}
9200
9200
  */
9201
9201
  wasm_on_message_begin: (p2) => {
9202
- assert4(currentParser.ptr === p2);
9202
+ assert5(currentParser.ptr === p2);
9203
9203
  return currentParser.onMessageBegin();
9204
9204
  },
9205
9205
  /**
@@ -9209,7 +9209,7 @@ var require_client_h1 = __commonJS({
9209
9209
  * @returns {number}
9210
9210
  */
9211
9211
  wasm_on_header_field: (p2, at, len) => {
9212
- assert4(currentParser.ptr === p2);
9212
+ assert5(currentParser.ptr === p2);
9213
9213
  const start = at - currentBufferPtr + currentBufferRef.byteOffset;
9214
9214
  return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len));
9215
9215
  },
@@ -9220,7 +9220,7 @@ var require_client_h1 = __commonJS({
9220
9220
  * @returns {number}
9221
9221
  */
9222
9222
  wasm_on_header_value: (p2, at, len) => {
9223
- assert4(currentParser.ptr === p2);
9223
+ assert5(currentParser.ptr === p2);
9224
9224
  const start = at - currentBufferPtr + currentBufferRef.byteOffset;
9225
9225
  return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len));
9226
9226
  },
@@ -9232,7 +9232,7 @@ var require_client_h1 = __commonJS({
9232
9232
  * @returns {number}
9233
9233
  */
9234
9234
  wasm_on_headers_complete: (p2, statusCode, upgrade, shouldKeepAlive) => {
9235
- assert4(currentParser.ptr === p2);
9235
+ assert5(currentParser.ptr === p2);
9236
9236
  return currentParser.onHeadersComplete(statusCode, upgrade === 1, shouldKeepAlive === 1);
9237
9237
  },
9238
9238
  /**
@@ -9242,7 +9242,7 @@ var require_client_h1 = __commonJS({
9242
9242
  * @returns {number}
9243
9243
  */
9244
9244
  wasm_on_body: (p2, at, len) => {
9245
- assert4(currentParser.ptr === p2);
9245
+ assert5(currentParser.ptr === p2);
9246
9246
  const start = at - currentBufferPtr + currentBufferRef.byteOffset;
9247
9247
  return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len));
9248
9248
  },
@@ -9251,7 +9251,7 @@ var require_client_h1 = __commonJS({
9251
9251
  * @returns {number}
9252
9252
  */
9253
9253
  wasm_on_message_complete: (p2) => {
9254
- assert4(currentParser.ptr === p2);
9254
+ assert5(currentParser.ptr === p2);
9255
9255
  return currentParser.onMessageComplete();
9256
9256
  }
9257
9257
  }
@@ -9324,10 +9324,10 @@ var require_client_h1 = __commonJS({
9324
9324
  if (this.socket.destroyed || !this.paused) {
9325
9325
  return;
9326
9326
  }
9327
- assert4(this.ptr != null);
9328
- assert4(currentParser === null);
9327
+ assert5(this.ptr != null);
9328
+ assert5(currentParser === null);
9329
9329
  this.llhttp.llhttp_resume(this.ptr);
9330
- assert4(this.timeoutType === TIMEOUT_BODY);
9330
+ assert5(this.timeoutType === TIMEOUT_BODY);
9331
9331
  if (this.timeout) {
9332
9332
  if (this.timeout.refresh) {
9333
9333
  this.timeout.refresh();
@@ -9350,9 +9350,9 @@ var require_client_h1 = __commonJS({
9350
9350
  * @param {Buffer} chunk
9351
9351
  */
9352
9352
  execute(chunk) {
9353
- assert4(currentParser === null);
9354
- assert4(this.ptr != null);
9355
- assert4(!this.paused);
9353
+ assert5(currentParser === null);
9354
+ assert5(this.ptr != null);
9355
+ assert5(!this.paused);
9356
9356
  const { socket, llhttp } = this;
9357
9357
  if (chunk.length > currentBufferSize) {
9358
9358
  if (currentBufferPtr) {
@@ -9396,8 +9396,8 @@ var require_client_h1 = __commonJS({
9396
9396
  }
9397
9397
  }
9398
9398
  destroy() {
9399
- assert4(currentParser === null);
9400
- assert4(this.ptr != null);
9399
+ assert5(currentParser === null);
9400
+ assert5(this.ptr != null);
9401
9401
  this.llhttp.llhttp_free(this.ptr);
9402
9402
  this.ptr = null;
9403
9403
  this.timeout && timers.clearTimeout(this.timeout);
@@ -9483,14 +9483,14 @@ var require_client_h1 = __commonJS({
9483
9483
  */
9484
9484
  onUpgrade(head) {
9485
9485
  const { upgrade, client, socket, headers, statusCode } = this;
9486
- assert4(upgrade);
9487
- assert4(client[kSocket] === socket);
9488
- assert4(!socket.destroyed);
9489
- assert4(!this.paused);
9490
- assert4((headers.length & 1) === 0);
9486
+ assert5(upgrade);
9487
+ assert5(client[kSocket] === socket);
9488
+ assert5(!socket.destroyed);
9489
+ assert5(!this.paused);
9490
+ assert5((headers.length & 1) === 0);
9491
9491
  const request2 = client[kQueue][client[kRunningIdx]];
9492
- assert4(request2);
9493
- assert4(request2.upgrade || request2.method === "CONNECT");
9492
+ assert5(request2);
9493
+ assert5(request2.upgrade || request2.method === "CONNECT");
9494
9494
  this.statusCode = 0;
9495
9495
  this.statusText = "";
9496
9496
  this.shouldKeepAlive = false;
@@ -9528,8 +9528,8 @@ var require_client_h1 = __commonJS({
9528
9528
  if (!request2) {
9529
9529
  return -1;
9530
9530
  }
9531
- assert4(!this.upgrade);
9532
- assert4(this.statusCode < 200);
9531
+ assert5(!this.upgrade);
9532
+ assert5(this.statusCode < 200);
9533
9533
  if (statusCode === 100) {
9534
9534
  util.destroy(socket, new SocketError("bad response", util.getSocketInfo(socket)));
9535
9535
  return -1;
@@ -9538,7 +9538,7 @@ var require_client_h1 = __commonJS({
9538
9538
  util.destroy(socket, new SocketError("bad upgrade", util.getSocketInfo(socket)));
9539
9539
  return -1;
9540
9540
  }
9541
- assert4(this.timeoutType === TIMEOUT_HEADERS);
9541
+ assert5(this.timeoutType === TIMEOUT_HEADERS);
9542
9542
  this.statusCode = statusCode;
9543
9543
  this.shouldKeepAlive = shouldKeepAlive || // Override llhttp value which does not allow keepAlive for HEAD.
9544
9544
  request2.method === "HEAD" && !socket[kReset2] && this.connection.toLowerCase() === "keep-alive";
@@ -9551,16 +9551,16 @@ var require_client_h1 = __commonJS({
9551
9551
  }
9552
9552
  }
9553
9553
  if (request2.method === "CONNECT") {
9554
- assert4(client[kRunning] === 1);
9554
+ assert5(client[kRunning] === 1);
9555
9555
  this.upgrade = true;
9556
9556
  return 2;
9557
9557
  }
9558
9558
  if (upgrade) {
9559
- assert4(client[kRunning] === 1);
9559
+ assert5(client[kRunning] === 1);
9560
9560
  this.upgrade = true;
9561
9561
  return 2;
9562
9562
  }
9563
- assert4((this.headers.length & 1) === 0);
9563
+ assert5((this.headers.length & 1) === 0);
9564
9564
  this.headers = [];
9565
9565
  this.headersSize = 0;
9566
9566
  if (this.shouldKeepAlive && client[kPipelining]) {
@@ -9607,14 +9607,14 @@ var require_client_h1 = __commonJS({
9607
9607
  return -1;
9608
9608
  }
9609
9609
  const request2 = client[kQueue][client[kRunningIdx]];
9610
- assert4(request2);
9611
- assert4(this.timeoutType === TIMEOUT_BODY);
9610
+ assert5(request2);
9611
+ assert5(this.timeoutType === TIMEOUT_BODY);
9612
9612
  if (this.timeout) {
9613
9613
  if (this.timeout.refresh) {
9614
9614
  this.timeout.refresh();
9615
9615
  }
9616
9616
  }
9617
- assert4(statusCode >= 200);
9617
+ assert5(statusCode >= 200);
9618
9618
  if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {
9619
9619
  util.destroy(socket, new ResponseExceededMaxSizeError());
9620
9620
  return -1;
@@ -9636,10 +9636,10 @@ var require_client_h1 = __commonJS({
9636
9636
  if (upgrade) {
9637
9637
  return 0;
9638
9638
  }
9639
- assert4(statusCode >= 100);
9640
- assert4((this.headers.length & 1) === 0);
9639
+ assert5(statusCode >= 100);
9640
+ assert5((this.headers.length & 1) === 0);
9641
9641
  const request2 = client[kQueue][client[kRunningIdx]];
9642
- assert4(request2);
9642
+ assert5(request2);
9643
9643
  this.statusCode = 0;
9644
9644
  this.statusText = "";
9645
9645
  this.bytesRead = 0;
@@ -9658,7 +9658,7 @@ var require_client_h1 = __commonJS({
9658
9658
  request2.onComplete(headers);
9659
9659
  client[kQueue][client[kRunningIdx]++] = null;
9660
9660
  if (socket[kWriting]) {
9661
- assert4(client[kRunning] === 0);
9661
+ assert5(client[kRunning] === 0);
9662
9662
  util.destroy(socket, new InformationalError("reset"));
9663
9663
  return constants.ERROR.PAUSED;
9664
9664
  } else if (!shouldKeepAlive) {
@@ -9679,7 +9679,7 @@ var require_client_h1 = __commonJS({
9679
9679
  const { socket, timeoutType, client, paused } = parser2.deref();
9680
9680
  if (timeoutType === TIMEOUT_HEADERS) {
9681
9681
  if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) {
9682
- assert4(!paused, "cannot be paused while waiting for headers");
9682
+ assert5(!paused, "cannot be paused while waiting for headers");
9683
9683
  util.destroy(socket, new HeadersTimeoutError());
9684
9684
  }
9685
9685
  } else if (timeoutType === TIMEOUT_BODY) {
@@ -9687,7 +9687,7 @@ var require_client_h1 = __commonJS({
9687
9687
  util.destroy(socket, new BodyTimeoutError());
9688
9688
  }
9689
9689
  } else if (timeoutType === TIMEOUT_KEEP_ALIVE) {
9690
- assert4(client[kRunning] === 0 && client[kKeepAliveTimeoutValue]);
9690
+ assert5(client[kRunning] === 0 && client[kKeepAliveTimeoutValue]);
9691
9691
  util.destroy(socket, new InformationalError("socket idle timeout"));
9692
9692
  }
9693
9693
  }
@@ -9769,7 +9769,7 @@ var require_client_h1 = __commonJS({
9769
9769
  };
9770
9770
  }
9771
9771
  function onHttpSocketError(err) {
9772
- assert4(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
9772
+ assert5(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
9773
9773
  const parser2 = this[kParser];
9774
9774
  if (err.code === "ECONNRESET" && parser2.statusCode && !parser2.shouldKeepAlive) {
9775
9775
  parser2.onMessageComplete();
@@ -9803,7 +9803,7 @@ var require_client_h1 = __commonJS({
9803
9803
  client[kSocket] = null;
9804
9804
  client[kHTTPContext] = null;
9805
9805
  if (client.destroyed) {
9806
- assert4(client[kPending] === 0);
9806
+ assert5(client[kPending] === 0);
9807
9807
  const requests = client[kQueue].splice(client[kRunningIdx]);
9808
9808
  for (let i = 0; i < requests.length; i++) {
9809
9809
  const request2 = requests[i];
@@ -9815,7 +9815,7 @@ var require_client_h1 = __commonJS({
9815
9815
  util.errorRequest(client, request2, err);
9816
9816
  }
9817
9817
  client[kPendingIdx] = client[kRunningIdx];
9818
- assert4(client[kRunning] === 0);
9818
+ assert5(client[kRunning] === 0);
9819
9819
  client.emit("disconnect", client[kUrl], [client], err);
9820
9820
  client[kResume]();
9821
9821
  }
@@ -9967,12 +9967,12 @@ upgrade: ${upgrade}\r
9967
9967
  } else if (util.isIterable(body)) {
9968
9968
  writeIterable(abort, body, client, request2, socket, contentLength, header, expectsPayload);
9969
9969
  } else {
9970
- assert4(false);
9970
+ assert5(false);
9971
9971
  }
9972
9972
  return true;
9973
9973
  }
9974
9974
  function writeStream(abort, body, client, request2, socket, contentLength, header, expectsPayload) {
9975
- assert4(contentLength !== 0 || client[kRunning] === 0, "stream body cannot be pipelined");
9975
+ assert5(contentLength !== 0 || client[kRunning] === 0, "stream body cannot be pipelined");
9976
9976
  let finished = false;
9977
9977
  const writer = new AsyncWriter({ abort, socket, request: request2, contentLength, client, expectsPayload, header });
9978
9978
  const onData = function(chunk) {
@@ -10009,7 +10009,7 @@ upgrade: ${upgrade}\r
10009
10009
  return;
10010
10010
  }
10011
10011
  finished = true;
10012
- assert4(socket.destroyed || socket[kWriting] && client[kRunning] <= 1);
10012
+ assert5(socket.destroyed || socket[kWriting] && client[kRunning] <= 1);
10013
10013
  socket.off("drain", onDrain).off("error", onFinished);
10014
10014
  body.removeListener("data", onData).removeListener("end", onFinished).removeListener("close", onClose);
10015
10015
  if (!err) {
@@ -10048,12 +10048,12 @@ upgrade: ${upgrade}\r
10048
10048
  \r
10049
10049
  `, "latin1");
10050
10050
  } else {
10051
- assert4(contentLength === null, "no body must not have content length");
10051
+ assert5(contentLength === null, "no body must not have content length");
10052
10052
  socket.write(`${header}\r
10053
10053
  `, "latin1");
10054
10054
  }
10055
10055
  } else if (util.isBuffer(body)) {
10056
- assert4(contentLength === body.byteLength, "buffer body must have content length");
10056
+ assert5(contentLength === body.byteLength, "buffer body must have content length");
10057
10057
  socket.cork();
10058
10058
  socket.write(`${header}content-length: ${contentLength}\r
10059
10059
  \r
@@ -10072,7 +10072,7 @@ upgrade: ${upgrade}\r
10072
10072
  }
10073
10073
  }
10074
10074
  async function writeBlob(abort, body, client, request2, socket, contentLength, header, expectsPayload) {
10075
- assert4(contentLength === body.size, "blob body must have content length");
10075
+ assert5(contentLength === body.size, "blob body must have content length");
10076
10076
  try {
10077
10077
  if (contentLength != null && contentLength !== body.size) {
10078
10078
  throw new RequestContentLengthMismatchError();
@@ -10095,7 +10095,7 @@ upgrade: ${upgrade}\r
10095
10095
  }
10096
10096
  }
10097
10097
  async function writeIterable(abort, body, client, request2, socket, contentLength, header, expectsPayload) {
10098
- assert4(contentLength !== 0 || client[kRunning] === 0, "iterator body cannot be pipelined");
10098
+ assert5(contentLength !== 0 || client[kRunning] === 0, "iterator body cannot be pipelined");
10099
10099
  let callback = null;
10100
10100
  function onDrain() {
10101
10101
  if (callback) {
@@ -10105,7 +10105,7 @@ upgrade: ${upgrade}\r
10105
10105
  }
10106
10106
  }
10107
10107
  const waitForDrain = () => new Promise((resolve12, reject) => {
10108
- assert4(callback === null);
10108
+ assert5(callback === null);
10109
10109
  if (socket[kError]) {
10110
10110
  reject(socket[kError]);
10111
10111
  } else {
@@ -10254,7 +10254,7 @@ ${len.toString(16)}\r
10254
10254
  const { socket, client, abort } = this;
10255
10255
  socket[kWriting] = false;
10256
10256
  if (err) {
10257
- assert4(client[kRunning] <= 1, "pipeline should only contain this request");
10257
+ assert5(client[kRunning] <= 1, "pipeline should only contain this request");
10258
10258
  abort(err);
10259
10259
  }
10260
10260
  }
@@ -10267,7 +10267,7 @@ ${len.toString(16)}\r
10267
10267
  var require_client_h2 = __commonJS({
10268
10268
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/dispatcher/client-h2.js"(exports2, module2) {
10269
10269
  "use strict";
10270
- var assert4 = require("node:assert");
10270
+ var assert5 = require("node:assert");
10271
10271
  var { pipeline } = require("node:stream");
10272
10272
  var util = require_util();
10273
10273
  var {
@@ -10394,7 +10394,7 @@ var require_client_h2 = __commonJS({
10394
10394
  }
10395
10395
  }
10396
10396
  function onHttp2SessionError(err) {
10397
- assert4(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
10397
+ assert5(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
10398
10398
  this[kSocket][kError] = err;
10399
10399
  this[kClient][kOnError](err);
10400
10400
  }
@@ -10424,7 +10424,7 @@ var require_client_h2 = __commonJS({
10424
10424
  util.errorRequest(client, request2, err);
10425
10425
  client[kPendingIdx] = client[kRunningIdx];
10426
10426
  }
10427
- assert4(client[kRunning] === 0);
10427
+ assert5(client[kRunning] === 0);
10428
10428
  client.emit("disconnect", client[kUrl], [client], err);
10429
10429
  client.emit("connectionError", client[kUrl], [client], err);
10430
10430
  client[kResume]();
@@ -10436,7 +10436,7 @@ var require_client_h2 = __commonJS({
10436
10436
  client[kSocket] = null;
10437
10437
  client[kHTTPContext] = null;
10438
10438
  if (client.destroyed) {
10439
- assert4(client[kPending] === 0);
10439
+ assert5(client[kPending] === 0);
10440
10440
  const requests = client[kQueue].splice(client[kRunningIdx]);
10441
10441
  for (let i = 0; i < requests.length; i++) {
10442
10442
  const request2 = requests[i];
@@ -10453,12 +10453,12 @@ var require_client_h2 = __commonJS({
10453
10453
  this[kHTTP2Session].destroy(err);
10454
10454
  }
10455
10455
  client[kPendingIdx] = client[kRunningIdx];
10456
- assert4(client[kRunning] === 0);
10456
+ assert5(client[kRunning] === 0);
10457
10457
  client.emit("disconnect", client[kUrl], [client], err);
10458
10458
  client[kResume]();
10459
10459
  }
10460
10460
  function onHttp2SocketError(err) {
10461
- assert4(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
10461
+ assert5(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
10462
10462
  this[kError] = err;
10463
10463
  this[kClient][kOnError](err);
10464
10464
  }
@@ -10573,7 +10573,7 @@ var require_client_h2 = __commonJS({
10573
10573
  process.emitWarning(new RequestContentLengthMismatchError());
10574
10574
  }
10575
10575
  if (contentLength != null) {
10576
- assert4(body, "no body must not have content length");
10576
+ assert5(body, "no body must not have content length");
10577
10577
  headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`;
10578
10578
  }
10579
10579
  session.ref();
@@ -10738,14 +10738,14 @@ var require_client_h2 = __commonJS({
10738
10738
  expectsPayload
10739
10739
  );
10740
10740
  } else {
10741
- assert4(false);
10741
+ assert5(false);
10742
10742
  }
10743
10743
  }
10744
10744
  }
10745
10745
  function writeBuffer(abort, h2stream, body, client, request2, socket, contentLength, expectsPayload) {
10746
10746
  try {
10747
10747
  if (body != null && util.isBuffer(body)) {
10748
- assert4(contentLength === body.byteLength, "buffer body must have content length");
10748
+ assert5(contentLength === body.byteLength, "buffer body must have content length");
10749
10749
  h2stream.cork();
10750
10750
  h2stream.write(body);
10751
10751
  h2stream.uncork();
@@ -10762,7 +10762,7 @@ var require_client_h2 = __commonJS({
10762
10762
  }
10763
10763
  }
10764
10764
  function writeStream(abort, socket, expectsPayload, h2stream, body, client, request2, contentLength) {
10765
- assert4(contentLength !== 0 || client[kRunning] === 0, "stream body cannot be pipelined");
10765
+ assert5(contentLength !== 0 || client[kRunning] === 0, "stream body cannot be pipelined");
10766
10766
  const pipe = pipeline(
10767
10767
  body,
10768
10768
  h2stream,
@@ -10786,7 +10786,7 @@ var require_client_h2 = __commonJS({
10786
10786
  }
10787
10787
  }
10788
10788
  async function writeBlob(abort, h2stream, body, client, request2, socket, contentLength, expectsPayload) {
10789
- assert4(contentLength === body.size, "blob body must have content length");
10789
+ assert5(contentLength === body.size, "blob body must have content length");
10790
10790
  try {
10791
10791
  if (contentLength != null && contentLength !== body.size) {
10792
10792
  throw new RequestContentLengthMismatchError();
@@ -10807,7 +10807,7 @@ var require_client_h2 = __commonJS({
10807
10807
  }
10808
10808
  }
10809
10809
  async function writeIterable(abort, h2stream, body, client, request2, socket, contentLength, expectsPayload) {
10810
- assert4(contentLength !== 0 || client[kRunning] === 0, "iterator body cannot be pipelined");
10810
+ assert5(contentLength !== 0 || client[kRunning] === 0, "iterator body cannot be pipelined");
10811
10811
  let callback = null;
10812
10812
  function onDrain() {
10813
10813
  if (callback) {
@@ -10817,7 +10817,7 @@ var require_client_h2 = __commonJS({
10817
10817
  }
10818
10818
  }
10819
10819
  const waitForDrain = () => new Promise((resolve12, reject) => {
10820
- assert4(callback === null);
10820
+ assert5(callback === null);
10821
10821
  if (socket[kError]) {
10822
10822
  reject(socket[kError]);
10823
10823
  } else {
@@ -10856,7 +10856,7 @@ var require_client_h2 = __commonJS({
10856
10856
  var require_client = __commonJS({
10857
10857
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/dispatcher/client.js"(exports2, module2) {
10858
10858
  "use strict";
10859
- var assert4 = require("node:assert");
10859
+ var assert5 = require("node:assert");
10860
10860
  var net = require("node:net");
10861
10861
  var http = require("node:http");
10862
10862
  var util = require_util();
@@ -11142,24 +11142,24 @@ var require_client = __commonJS({
11142
11142
  };
11143
11143
  function onError(client, err) {
11144
11144
  if (client[kRunning] === 0 && err.code !== "UND_ERR_INFO" && err.code !== "UND_ERR_SOCKET") {
11145
- assert4(client[kPendingIdx] === client[kRunningIdx]);
11145
+ assert5(client[kPendingIdx] === client[kRunningIdx]);
11146
11146
  const requests = client[kQueue].splice(client[kRunningIdx]);
11147
11147
  for (let i = 0; i < requests.length; i++) {
11148
11148
  const request2 = requests[i];
11149
11149
  util.errorRequest(client, request2, err);
11150
11150
  }
11151
- assert4(client[kSize] === 0);
11151
+ assert5(client[kSize] === 0);
11152
11152
  }
11153
11153
  }
11154
11154
  async function connect(client) {
11155
- assert4(!client[kConnecting]);
11156
- assert4(!client[kHTTPContext]);
11155
+ assert5(!client[kConnecting]);
11156
+ assert5(!client[kHTTPContext]);
11157
11157
  let { host, hostname, protocol, port } = client[kUrl];
11158
11158
  if (hostname[0] === "[") {
11159
11159
  const idx = hostname.indexOf("]");
11160
- assert4(idx !== -1);
11160
+ assert5(idx !== -1);
11161
11161
  const ip = hostname.substring(1, idx);
11162
- assert4(net.isIPv6(ip));
11162
+ assert5(net.isIPv6(ip));
11163
11163
  hostname = ip;
11164
11164
  }
11165
11165
  client[kConnecting] = true;
@@ -11198,7 +11198,7 @@ var require_client = __commonJS({
11198
11198
  util.destroy(socket.on("error", noop), new ClientDestroyedError());
11199
11199
  return;
11200
11200
  }
11201
- assert4(socket);
11201
+ assert5(socket);
11202
11202
  try {
11203
11203
  client[kHTTPContext] = socket.alpnProtocol === "h2" ? await connectH2(client, socket) : await connectH1(client, socket);
11204
11204
  } catch (err) {
@@ -11247,7 +11247,7 @@ var require_client = __commonJS({
11247
11247
  });
11248
11248
  }
11249
11249
  if (err.code === "ERR_TLS_CERT_ALTNAME_INVALID") {
11250
- assert4(client[kRunning] === 0);
11250
+ assert5(client[kRunning] === 0);
11251
11251
  while (client[kPending] > 0 && client[kQueue][client[kPendingIdx]].servername === client[kServerName]) {
11252
11252
  const request2 = client[kQueue][client[kPendingIdx]++];
11253
11253
  util.errorRequest(client, request2, err);
@@ -11279,7 +11279,7 @@ var require_client = __commonJS({
11279
11279
  function _resume(client, sync) {
11280
11280
  while (true) {
11281
11281
  if (client.destroyed) {
11282
- assert4(client[kPending] === 0);
11282
+ assert5(client[kPending] === 0);
11283
11283
  return;
11284
11284
  }
11285
11285
  if (client[kClosedResolve] && !client[kSize]) {
@@ -12294,7 +12294,7 @@ var require_env_http_proxy_agent = __commonJS({
12294
12294
  var require_retry_handler = __commonJS({
12295
12295
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/handler/retry-handler.js"(exports2, module2) {
12296
12296
  "use strict";
12297
- var assert4 = require("node:assert");
12297
+ var assert5 = require("node:assert");
12298
12298
  var { kRetryHandlerDefaultRetry } = require_symbols();
12299
12299
  var { RequestRetryError } = require_errors();
12300
12300
  var WrapHandler = require_wrap_handler();
@@ -12477,8 +12477,8 @@ var require_retry_handler = __commonJS({
12477
12477
  });
12478
12478
  }
12479
12479
  const { start, size, end = size ? size - 1 : null } = contentRange;
12480
- assert4(this.start === start, "content-range mismatch");
12481
- assert4(this.end == null || this.end === end, "content-range mismatch");
12480
+ assert5(this.start === start, "content-range mismatch");
12481
+ assert5(this.end == null || this.end === end, "content-range mismatch");
12482
12482
  return;
12483
12483
  }
12484
12484
  if (this.end == null) {
@@ -12495,11 +12495,11 @@ var require_retry_handler = __commonJS({
12495
12495
  return;
12496
12496
  }
12497
12497
  const { start, size, end = size ? size - 1 : null } = range;
12498
- assert4(
12498
+ assert5(
12499
12499
  start != null && Number.isFinite(start),
12500
12500
  "content-range mismatch"
12501
12501
  );
12502
- assert4(end != null && Number.isFinite(end), "invalid content-length");
12502
+ assert5(end != null && Number.isFinite(end), "invalid content-length");
12503
12503
  this.start = start;
12504
12504
  this.end = end;
12505
12505
  }
@@ -12507,8 +12507,8 @@ var require_retry_handler = __commonJS({
12507
12507
  const contentLength = headers["content-length"];
12508
12508
  this.end = contentLength != null ? Number(contentLength) - 1 : null;
12509
12509
  }
12510
- assert4(Number.isFinite(this.start));
12511
- assert4(
12510
+ assert5(Number.isFinite(this.start));
12511
+ assert5(
12512
12512
  this.end == null || Number.isFinite(this.end),
12513
12513
  "invalid content-length"
12514
12514
  );
@@ -12734,7 +12734,7 @@ var require_h2c_client = __commonJS({
12734
12734
  var require_readable = __commonJS({
12735
12735
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/api/readable.js"(exports2, module2) {
12736
12736
  "use strict";
12737
- var assert4 = require("node:assert");
12737
+ var assert5 = require("node:assert");
12738
12738
  var { Readable } = require("node:stream");
12739
12739
  var { RequestAbortedError, NotSupportedError, InvalidArgumentError, AbortError } = require_errors();
12740
12740
  var util = require_util();
@@ -12928,7 +12928,7 @@ var require_readable = __commonJS({
12928
12928
  this[kBody] = ReadableStreamFrom(this);
12929
12929
  if (this[kConsume]) {
12930
12930
  this[kBody].getReader();
12931
- assert4(this[kBody].locked);
12931
+ assert5(this[kBody].locked);
12932
12932
  }
12933
12933
  }
12934
12934
  return this[kBody];
@@ -12995,7 +12995,7 @@ var require_readable = __commonJS({
12995
12995
  return util.isDisturbed(bodyReadable) || isLocked(bodyReadable);
12996
12996
  }
12997
12997
  function consume(stream, type) {
12998
- assert4(!stream[kConsume]);
12998
+ assert5(!stream[kConsume]);
12999
12999
  return new Promise((resolve12, reject) => {
13000
13000
  if (isUnusable(stream)) {
13001
13001
  const rState = stream._readableState;
@@ -13136,7 +13136,7 @@ var require_readable = __commonJS({
13136
13136
  var require_api_request = __commonJS({
13137
13137
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/api/api-request.js"(exports2, module2) {
13138
13138
  "use strict";
13139
- var assert4 = require("node:assert");
13139
+ var assert5 = require("node:assert");
13140
13140
  var { AsyncResource } = require("node:async_hooks");
13141
13141
  var { Readable } = require_readable();
13142
13142
  var { InvalidArgumentError, RequestAbortedError } = require_errors();
@@ -13203,7 +13203,7 @@ var require_api_request = __commonJS({
13203
13203
  abort(this.reason);
13204
13204
  return;
13205
13205
  }
13206
- assert4(this.callback);
13206
+ assert5(this.callback);
13207
13207
  this.abort = abort;
13208
13208
  this.context = context;
13209
13209
  }
@@ -13357,7 +13357,7 @@ var require_abort_signal = __commonJS({
13357
13357
  var require_api_stream = __commonJS({
13358
13358
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/api/api-stream.js"(exports2, module2) {
13359
13359
  "use strict";
13360
- var assert4 = require("node:assert");
13360
+ var assert5 = require("node:assert");
13361
13361
  var { finished } = require("node:stream");
13362
13362
  var { AsyncResource } = require("node:async_hooks");
13363
13363
  var { InvalidArgumentError, InvalidReturnValueError } = require_errors();
@@ -13416,7 +13416,7 @@ var require_api_stream = __commonJS({
13416
13416
  abort(this.reason);
13417
13417
  return;
13418
13418
  }
13419
- assert4(this.callback);
13419
+ assert5(this.callback);
13420
13420
  this.abort = abort;
13421
13421
  this.context = context;
13422
13422
  }
@@ -13523,7 +13523,7 @@ var require_api_pipeline = __commonJS({
13523
13523
  Duplex,
13524
13524
  PassThrough
13525
13525
  } = require("node:stream");
13526
- var assert4 = require("node:assert");
13526
+ var assert5 = require("node:assert");
13527
13527
  var { AsyncResource } = require("node:async_hooks");
13528
13528
  var {
13529
13529
  InvalidArgumentError,
@@ -13637,7 +13637,7 @@ var require_api_pipeline = __commonJS({
13637
13637
  abort(this.reason);
13638
13638
  return;
13639
13639
  }
13640
- assert4(!res, "pipeline cannot be retried");
13640
+ assert5(!res, "pipeline cannot be retried");
13641
13641
  this.abort = abort;
13642
13642
  this.context = context;
13643
13643
  }
@@ -13721,7 +13721,7 @@ var require_api_upgrade = __commonJS({
13721
13721
  "use strict";
13722
13722
  var { InvalidArgumentError, SocketError } = require_errors();
13723
13723
  var { AsyncResource } = require("node:async_hooks");
13724
- var assert4 = require("node:assert");
13724
+ var assert5 = require("node:assert");
13725
13725
  var util = require_util();
13726
13726
  var { addSignal, removeSignal } = require_abort_signal();
13727
13727
  var UpgradeHandler = class extends AsyncResource {
@@ -13749,7 +13749,7 @@ var require_api_upgrade = __commonJS({
13749
13749
  abort(this.reason);
13750
13750
  return;
13751
13751
  }
13752
- assert4(this.callback);
13752
+ assert5(this.callback);
13753
13753
  this.abort = abort;
13754
13754
  this.context = null;
13755
13755
  }
@@ -13757,7 +13757,7 @@ var require_api_upgrade = __commonJS({
13757
13757
  throw new SocketError("bad upgrade", null);
13758
13758
  }
13759
13759
  onUpgrade(statusCode, rawHeaders, socket) {
13760
- assert4(statusCode === 101);
13760
+ assert5(statusCode === 101);
13761
13761
  const { callback, opaque, context } = this;
13762
13762
  removeSignal(this);
13763
13763
  this.callback = null;
@@ -13812,7 +13812,7 @@ var require_api_upgrade = __commonJS({
13812
13812
  var require_api_connect = __commonJS({
13813
13813
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/api/api-connect.js"(exports2, module2) {
13814
13814
  "use strict";
13815
- var assert4 = require("node:assert");
13815
+ var assert5 = require("node:assert");
13816
13816
  var { AsyncResource } = require("node:async_hooks");
13817
13817
  var { InvalidArgumentError, SocketError } = require_errors();
13818
13818
  var util = require_util();
@@ -13841,7 +13841,7 @@ var require_api_connect = __commonJS({
13841
13841
  abort(this.reason);
13842
13842
  return;
13843
13843
  }
13844
- assert4(this.callback);
13844
+ assert5(this.callback);
13845
13845
  this.abort = abort;
13846
13846
  this.context = context;
13847
13847
  }
@@ -15049,7 +15049,7 @@ var require_global2 = __commonJS({
15049
15049
  var require_decorator_handler = __commonJS({
15050
15050
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/handler/decorator-handler.js"(exports2, module2) {
15051
15051
  "use strict";
15052
- var assert4 = require("node:assert");
15052
+ var assert5 = require("node:assert");
15053
15053
  var WrapHandler = require_wrap_handler();
15054
15054
  module2.exports = class DecoratorHandler {
15055
15055
  #handler;
@@ -15066,25 +15066,25 @@ var require_decorator_handler = __commonJS({
15066
15066
  this.#handler.onRequestStart?.(...args);
15067
15067
  }
15068
15068
  onRequestUpgrade(...args) {
15069
- assert4(!this.#onCompleteCalled);
15070
- assert4(!this.#onErrorCalled);
15069
+ assert5(!this.#onCompleteCalled);
15070
+ assert5(!this.#onErrorCalled);
15071
15071
  return this.#handler.onRequestUpgrade?.(...args);
15072
15072
  }
15073
15073
  onResponseStart(...args) {
15074
- assert4(!this.#onCompleteCalled);
15075
- assert4(!this.#onErrorCalled);
15076
- assert4(!this.#onResponseStartCalled);
15074
+ assert5(!this.#onCompleteCalled);
15075
+ assert5(!this.#onErrorCalled);
15076
+ assert5(!this.#onResponseStartCalled);
15077
15077
  this.#onResponseStartCalled = true;
15078
15078
  return this.#handler.onResponseStart?.(...args);
15079
15079
  }
15080
15080
  onResponseData(...args) {
15081
- assert4(!this.#onCompleteCalled);
15082
- assert4(!this.#onErrorCalled);
15081
+ assert5(!this.#onCompleteCalled);
15082
+ assert5(!this.#onErrorCalled);
15083
15083
  return this.#handler.onResponseData?.(...args);
15084
15084
  }
15085
15085
  onResponseEnd(...args) {
15086
- assert4(!this.#onCompleteCalled);
15087
- assert4(!this.#onErrorCalled);
15086
+ assert5(!this.#onCompleteCalled);
15087
+ assert5(!this.#onErrorCalled);
15088
15088
  this.#onCompleteCalled = true;
15089
15089
  return this.#handler.onResponseEnd?.(...args);
15090
15090
  }
@@ -15107,7 +15107,7 @@ var require_redirect_handler = __commonJS({
15107
15107
  "use strict";
15108
15108
  var util = require_util();
15109
15109
  var { kBodyUsed } = require_symbols();
15110
- var assert4 = require("node:assert");
15110
+ var assert5 = require("node:assert");
15111
15111
  var { InvalidArgumentError } = require_errors();
15112
15112
  var EE = require("node:events");
15113
15113
  var redirectableStatusCodes = [300, 301, 302, 303, 307, 308];
@@ -15120,7 +15120,7 @@ var require_redirect_handler = __commonJS({
15120
15120
  this[kBodyUsed] = false;
15121
15121
  }
15122
15122
  async *[Symbol.asyncIterator]() {
15123
- assert4(!this[kBodyUsed], "disturbed");
15123
+ assert5(!this[kBodyUsed], "disturbed");
15124
15124
  this[kBodyUsed] = true;
15125
15125
  yield* this[kBody];
15126
15126
  }
@@ -15146,7 +15146,7 @@ var require_redirect_handler = __commonJS({
15146
15146
  if (util.isStream(this.opts.body)) {
15147
15147
  if (util.bodyLength(this.opts.body) === 0) {
15148
15148
  this.opts.body.on("data", function() {
15149
- assert4(false);
15149
+ assert5(false);
15150
15150
  });
15151
15151
  }
15152
15152
  if (typeof this.opts.body.readableDidRead !== "boolean") {
@@ -15247,7 +15247,7 @@ var require_redirect_handler = __commonJS({
15247
15247
  }
15248
15248
  }
15249
15249
  } else {
15250
- assert4(headers == null, "headers must be an object or an array");
15250
+ assert5(headers == null, "headers must be an object or an array");
15251
15251
  }
15252
15252
  return ret;
15253
15253
  }
@@ -16720,7 +16720,7 @@ var require_memory_cache_store = __commonJS({
16720
16720
  var require_cache_revalidation_handler = __commonJS({
16721
16721
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/handler/cache-revalidation-handler.js"(exports2, module2) {
16722
16722
  "use strict";
16723
- var assert4 = require("node:assert");
16723
+ var assert5 = require("node:assert");
16724
16724
  var CacheRevalidationHandler = class {
16725
16725
  #successful = false;
16726
16726
  /**
@@ -16757,7 +16757,7 @@ var require_cache_revalidation_handler = __commonJS({
16757
16757
  this.#handler.onRequestUpgrade?.(controller, statusCode, headers, socket);
16758
16758
  }
16759
16759
  onResponseStart(controller, statusCode, headers, statusMessage) {
16760
- assert4(this.#callback != null);
16760
+ assert5(this.#callback != null);
16761
16761
  this.#successful = statusCode === 304 || this.#allowErrorStatusCodes && statusCode >= 500 && statusCode <= 504;
16762
16762
  this.#callback(this.#successful, this.#context);
16763
16763
  this.#callback = null;
@@ -16807,7 +16807,7 @@ var require_cache_revalidation_handler = __commonJS({
16807
16807
  var require_cache2 = __commonJS({
16808
16808
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/interceptor/cache.js"(exports2, module2) {
16809
16809
  "use strict";
16810
- var assert4 = require("node:assert");
16810
+ var assert5 = require("node:assert");
16811
16811
  var { Readable } = require("node:stream");
16812
16812
  var util = require_util();
16813
16813
  var CacheHandler = require_cache_handler();
@@ -16870,8 +16870,8 @@ var require_cache2 = __commonJS({
16870
16870
  }
16871
16871
  function sendCachedValue(handler, opts, result, age, context, isStale) {
16872
16872
  const stream = util.isStream(result.body) ? result.body : Readable.from(result.body ?? []);
16873
- assert4(!stream.destroyed, "stream should not be destroyed");
16874
- assert4(!stream.readableDidRead, "stream should not be readableDidRead");
16873
+ assert5(!stream.destroyed, "stream should not be destroyed");
16874
+ assert5(!stream.readableDidRead, "stream should not be readableDidRead");
16875
16875
  const controller = {
16876
16876
  resume() {
16877
16877
  stream.resume();
@@ -17422,7 +17422,7 @@ var require_headers = __commonJS({
17422
17422
  isValidHeaderValue
17423
17423
  } = require_util2();
17424
17424
  var { webidl } = require_webidl();
17425
- var assert4 = require("node:assert");
17425
+ var assert5 = require("node:assert");
17426
17426
  var util = require("node:util");
17427
17427
  function isHTTPWhiteSpaceCharCode(code) {
17428
17428
  return code === 10 || code === 13 || code === 9 || code === 32;
@@ -17638,11 +17638,11 @@ var require_headers = __commonJS({
17638
17638
  const iterator = this.headersMap[Symbol.iterator]();
17639
17639
  const firstValue = iterator.next().value;
17640
17640
  array[0] = [firstValue[0], firstValue[1].value];
17641
- assert4(firstValue[1].value !== null);
17641
+ assert5(firstValue[1].value !== null);
17642
17642
  for (let i = 1, j2 = 0, right2 = 0, left2 = 0, pivot = 0, x2, value; i < size; ++i) {
17643
17643
  value = iterator.next().value;
17644
17644
  x2 = array[i] = [value[0], value[1].value];
17645
- assert4(x2[1] !== null);
17645
+ assert5(x2[1] !== null);
17646
17646
  left2 = 0;
17647
17647
  right2 = i;
17648
17648
  while (left2 < right2) {
@@ -17669,7 +17669,7 @@ var require_headers = __commonJS({
17669
17669
  let i = 0;
17670
17670
  for (const { 0: name3, 1: { value } } of this.headersMap) {
17671
17671
  array[i++] = [name3, value];
17672
- assert4(value !== null);
17672
+ assert5(value !== null);
17673
17673
  }
17674
17674
  return array.sort(compareHeaderName);
17675
17675
  }
@@ -17896,7 +17896,7 @@ var require_response = __commonJS({
17896
17896
  var { webidl } = require_webidl();
17897
17897
  var { URLSerializer } = require_data_url();
17898
17898
  var { kConstruct } = require_symbols();
17899
- var assert4 = require("node:assert");
17899
+ var assert5 = require("node:assert");
17900
17900
  var { types: types12 } = require("node:util");
17901
17901
  var textEncoder = new TextEncoder("utf-8");
17902
17902
  var Response = class _Response {
@@ -18150,7 +18150,7 @@ var require_response = __commonJS({
18150
18150
  return p2 in state ? state[p2] : target[p2];
18151
18151
  },
18152
18152
  set(target, p2, value) {
18153
- assert4(!(p2 in state));
18153
+ assert5(!(p2 in state));
18154
18154
  target[p2] = value;
18155
18155
  return true;
18156
18156
  }
@@ -18184,11 +18184,11 @@ var require_response = __commonJS({
18184
18184
  body: null
18185
18185
  });
18186
18186
  } else {
18187
- assert4(false);
18187
+ assert5(false);
18188
18188
  }
18189
18189
  }
18190
18190
  function makeAppropriateNetworkError(fetchParams, err = null) {
18191
- assert4(isCancelled(fetchParams));
18191
+ assert5(isCancelled(fetchParams));
18192
18192
  return isAborted(fetchParams) ? makeNetworkError(Object.assign(new DOMException("The operation was aborted.", "AbortError"), { cause: err })) : makeNetworkError(Object.assign(new DOMException("Request was cancelled."), { cause: err }));
18193
18193
  }
18194
18194
  function initializeResponse(response, init, body) {
@@ -18330,7 +18330,7 @@ var require_request2 = __commonJS({
18330
18330
  var { webidl } = require_webidl();
18331
18331
  var { URLSerializer } = require_data_url();
18332
18332
  var { kConstruct } = require_symbols();
18333
- var assert4 = require("node:assert");
18333
+ var assert5 = require("node:assert");
18334
18334
  var { getMaxListeners, setMaxListeners, defaultMaxListeners } = require("node:events");
18335
18335
  var kAbortController = Symbol("abortController");
18336
18336
  var requestFinalizer = new FinalizationRegistry2(({ signal, abort }) => {
@@ -18406,7 +18406,7 @@ var require_request2 = __commonJS({
18406
18406
  request2 = makeRequest({ urlList: [parsedURL] });
18407
18407
  fallbackMode = "cors";
18408
18408
  } else {
18409
- assert4(webidl.is.Request(input));
18409
+ assert5(webidl.is.Request(input));
18410
18410
  request2 = input.#state;
18411
18411
  signal = input.#signal;
18412
18412
  this.#dispatcher = init.dispatcher || input.#dispatcher;
@@ -19100,7 +19100,7 @@ var require_fetch = __commonJS({
19100
19100
  createInflate,
19101
19101
  extractMimeType
19102
19102
  } = require_util2();
19103
- var assert4 = require("node:assert");
19103
+ var assert5 = require("node:assert");
19104
19104
  var { safelyExtractBody, extractBody } = require_body();
19105
19105
  var {
19106
19106
  redirectStatusSet,
@@ -19178,7 +19178,7 @@ var require_fetch = __commonJS({
19178
19178
  requestObject.signal,
19179
19179
  () => {
19180
19180
  locallyAborted = true;
19181
- assert4(controller != null);
19181
+ assert5(controller != null);
19182
19182
  controller.abort(requestObject.signal.reason);
19183
19183
  const realResponse = responseObject?.deref();
19184
19184
  abortFetch(p2, request2, realResponse, requestObject.signal.reason);
@@ -19281,7 +19281,7 @@ var require_fetch = __commonJS({
19281
19281
  dispatcher = getGlobalDispatcher()
19282
19282
  // undici
19283
19283
  }) {
19284
- assert4(dispatcher);
19284
+ assert5(dispatcher);
19285
19285
  let taskDestination = null;
19286
19286
  let crossOriginIsolatedCapability = false;
19287
19287
  if (request2.client != null) {
@@ -19304,7 +19304,7 @@ var require_fetch = __commonJS({
19304
19304
  taskDestination,
19305
19305
  crossOriginIsolatedCapability
19306
19306
  };
19307
- assert4(!request2.body || request2.body.stream);
19307
+ assert5(!request2.body || request2.body.stream);
19308
19308
  if (request2.window === "client") {
19309
19309
  request2.window = request2.client?.globalObject?.constructor?.name === "Window" ? request2.client : "no-window";
19310
19310
  }
@@ -19394,7 +19394,7 @@ var require_fetch = __commonJS({
19394
19394
  } else if (request2.responseTainting === "opaque") {
19395
19395
  response = filterResponse(response, "opaque");
19396
19396
  } else {
19397
- assert4(false);
19397
+ assert5(false);
19398
19398
  }
19399
19399
  }
19400
19400
  let internalResponse = response.status === 0 ? response : response.internalResponse;
@@ -19621,7 +19621,7 @@ var require_fetch = __commonJS({
19621
19621
  } else if (request2.redirect === "follow") {
19622
19622
  response = await httpRedirectFetch(fetchParams, response);
19623
19623
  } else {
19624
- assert4(false);
19624
+ assert5(false);
19625
19625
  }
19626
19626
  }
19627
19627
  response.timingInfo = timingInfo;
@@ -19674,7 +19674,7 @@ var require_fetch = __commonJS({
19674
19674
  request2.headersList.delete("host", true);
19675
19675
  }
19676
19676
  if (request2.body != null) {
19677
- assert4(request2.body.source != null);
19677
+ assert5(request2.body.source != null);
19678
19678
  request2.body = safelyExtractBody(request2.body.source)[0];
19679
19679
  }
19680
19680
  const timingInfo = fetchParams.timingInfo;
@@ -19807,7 +19807,7 @@ var require_fetch = __commonJS({
19807
19807
  return response;
19808
19808
  }
19809
19809
  async function httpNetworkFetch(fetchParams, includeCredentials = false, forceNewConnection = false) {
19810
- assert4(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed);
19810
+ assert5(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed);
19811
19811
  fetchParams.controller.connection = {
19812
19812
  abort: null,
19813
19813
  destroyed: false,
@@ -20122,7 +20122,7 @@ var require_fetch = __commonJS({
20122
20122
  var require_util3 = __commonJS({
20123
20123
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/web/cache/util.js"(exports2, module2) {
20124
20124
  "use strict";
20125
- var assert4 = require("node:assert");
20125
+ var assert5 = require("node:assert");
20126
20126
  var { URLSerializer } = require_data_url();
20127
20127
  var { isValidHeaderName } = require_util2();
20128
20128
  function urlEquals(A, B, excludeFragment = false) {
@@ -20131,7 +20131,7 @@ var require_util3 = __commonJS({
20131
20131
  return serializedA === serializedB;
20132
20132
  }
20133
20133
  function getFieldValues(header) {
20134
- assert4(header !== null);
20134
+ assert5(header !== null);
20135
20135
  const values = [];
20136
20136
  for (let value of header.split(",")) {
20137
20137
  value = value.trim();
@@ -20160,7 +20160,7 @@ var require_cache3 = __commonJS({
20160
20160
  var { Request, fromInnerRequest, getRequestState } = require_request2();
20161
20161
  var { fetching } = require_fetch();
20162
20162
  var { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = require_util2();
20163
- var assert4 = require("node:assert");
20163
+ var assert5 = require("node:assert");
20164
20164
  var Cache = class _Cache {
20165
20165
  /**
20166
20166
  * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list
@@ -20401,7 +20401,7 @@ var require_cache3 = __commonJS({
20401
20401
  return false;
20402
20402
  }
20403
20403
  } else {
20404
- assert4(typeof request2 === "string");
20404
+ assert5(typeof request2 === "string");
20405
20405
  r2 = getRequestState(new Request(request2));
20406
20406
  }
20407
20407
  const operations = [];
@@ -20512,7 +20512,7 @@ var require_cache3 = __commonJS({
20512
20512
  }
20513
20513
  for (const requestResponse of requestResponses) {
20514
20514
  const idx = cache.indexOf(requestResponse);
20515
- assert4(idx !== -1);
20515
+ assert5(idx !== -1);
20516
20516
  cache.splice(idx, 1);
20517
20517
  }
20518
20518
  } else if (operation.type === "put") {
@@ -20544,7 +20544,7 @@ var require_cache3 = __commonJS({
20544
20544
  requestResponses = this.#queryCache(operation.request);
20545
20545
  for (const requestResponse of requestResponses) {
20546
20546
  const idx = cache.indexOf(requestResponse);
20547
- assert4(idx !== -1);
20547
+ assert5(idx !== -1);
20548
20548
  cache.splice(idx, 1);
20549
20549
  }
20550
20550
  cache.push([operation.request, operation.response]);
@@ -20996,7 +20996,7 @@ var require_parse3 = __commonJS({
20996
20996
  var { maxNameValuePairSize, maxAttributeValueSize } = require_constants5();
20997
20997
  var { isCTLExcludingHtab } = require_util4();
20998
20998
  var { collectASequenceOfCodePointsFast } = require_data_url();
20999
- var assert4 = require("node:assert");
20999
+ var assert5 = require("node:assert");
21000
21000
  var { unescape } = require("node:querystring");
21001
21001
  function parseSetCookie(header) {
21002
21002
  if (isCTLExcludingHtab(header)) {
@@ -21039,7 +21039,7 @@ var require_parse3 = __commonJS({
21039
21039
  if (unparsedAttributes.length === 0) {
21040
21040
  return cookieAttributeList;
21041
21041
  }
21042
- assert4(unparsedAttributes[0] === ";");
21042
+ assert5(unparsedAttributes[0] === ";");
21043
21043
  unparsedAttributes = unparsedAttributes.slice(1);
21044
21044
  let cookieAv = "";
21045
21045
  if (unparsedAttributes.includes(";")) {
@@ -21885,7 +21885,7 @@ var require_connection = __commonJS({
21885
21885
  var { Headers, getHeadersList } = require_headers();
21886
21886
  var { getDecodeSplit } = require_util2();
21887
21887
  var { WebsocketFrameSend } = require_frame();
21888
- var assert4 = require("node:assert");
21888
+ var assert5 = require("node:assert");
21889
21889
  var crypto;
21890
21890
  try {
21891
21891
  crypto = require("node:crypto");
@@ -21992,7 +21992,7 @@ var require_connection = __commonJS({
21992
21992
  if (reason.length !== 0 && code === null) {
21993
21993
  code = 1e3;
21994
21994
  }
21995
- assert4(code === null || Number.isInteger(code));
21995
+ assert5(code === null || Number.isInteger(code));
21996
21996
  if (code === null && reason.length === 0) {
21997
21997
  frame.frameData = emptyBuffer;
21998
21998
  } else if (code !== null && reason === null) {
@@ -22090,7 +22090,7 @@ var require_receiver = __commonJS({
22090
22090
  "../../node_modules/.pnpm/undici@7.11.0/node_modules/undici/lib/web/websocket/receiver.js"(exports2, module2) {
22091
22091
  "use strict";
22092
22092
  var { Writable } = require("node:stream");
22093
- var assert4 = require("node:assert");
22093
+ var assert5 = require("node:assert");
22094
22094
  var { parserStates, opcodes, states, emptyBuffer, sentCloseFrameState } = require_constants6();
22095
22095
  var { channels } = require_diagnostics();
22096
22096
  var {
@@ -22328,7 +22328,7 @@ var require_receiver = __commonJS({
22328
22328
  return output;
22329
22329
  }
22330
22330
  parseCloseBody(data) {
22331
- assert4(data.length !== 1);
22331
+ assert5(data.length !== 1);
22332
22332
  let code;
22333
22333
  if (data.length >= 2) {
22334
22334
  code = data.readUInt16BE(0);
@@ -24125,7 +24125,7 @@ var require_index_688c5d50 = __commonJS({
24125
24125
  var Events = require("events");
24126
24126
  var Stream$1 = require("stream");
24127
24127
  var require$$0 = require("string_decoder");
24128
- var assert4 = require("assert");
24128
+ var assert5 = require("assert");
24129
24129
  var require$$0$1 = require("buffer");
24130
24130
  var realZlib = require("zlib");
24131
24131
  var util$1 = require("util");
@@ -24146,7 +24146,7 @@ var require_index_688c5d50 = __commonJS({
24146
24146
  var Events__default = /* @__PURE__ */ _interopDefaultLegacy(Events);
24147
24147
  var Stream__default = /* @__PURE__ */ _interopDefaultLegacy(Stream$1);
24148
24148
  var require$$0__default = /* @__PURE__ */ _interopDefaultLegacy(require$$0);
24149
- var assert__default = /* @__PURE__ */ _interopDefaultLegacy(assert4);
24149
+ var assert__default = /* @__PURE__ */ _interopDefaultLegacy(assert5);
24150
24150
  var require$$0__default$1 = /* @__PURE__ */ _interopDefaultLegacy(require$$0$1);
24151
24151
  var realZlib__default = /* @__PURE__ */ _interopDefaultLegacy(realZlib);
24152
24152
  var util__default = /* @__PURE__ */ _interopDefaultLegacy(util$1);
@@ -35421,330 +35421,6 @@ var require_dist_web = __commonJS({
35421
35421
  }
35422
35422
  });
35423
35423
 
35424
- // ../../node_modules/.pnpm/is-docker@2.2.1/node_modules/is-docker/index.js
35425
- var require_is_docker = __commonJS({
35426
- "../../node_modules/.pnpm/is-docker@2.2.1/node_modules/is-docker/index.js"(exports2, module2) {
35427
- "use strict";
35428
- var fs3 = require("fs");
35429
- var isDocker;
35430
- function hasDockerEnv() {
35431
- try {
35432
- fs3.statSync("/.dockerenv");
35433
- return true;
35434
- } catch (_3) {
35435
- return false;
35436
- }
35437
- }
35438
- function hasDockerCGroup() {
35439
- try {
35440
- return fs3.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
35441
- } catch (_3) {
35442
- return false;
35443
- }
35444
- }
35445
- module2.exports = () => {
35446
- if (isDocker === void 0) {
35447
- isDocker = hasDockerEnv() || hasDockerCGroup();
35448
- }
35449
- return isDocker;
35450
- };
35451
- }
35452
- });
35453
-
35454
- // ../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js
35455
- var require_is_wsl = __commonJS({
35456
- "../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js"(exports2, module2) {
35457
- "use strict";
35458
- var os4 = require("os");
35459
- var fs3 = require("fs");
35460
- var isDocker = require_is_docker();
35461
- var isWsl = () => {
35462
- if (process.platform !== "linux") {
35463
- return false;
35464
- }
35465
- if (os4.release().toLowerCase().includes("microsoft")) {
35466
- if (isDocker()) {
35467
- return false;
35468
- }
35469
- return true;
35470
- }
35471
- try {
35472
- return fs3.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker() : false;
35473
- } catch (_3) {
35474
- return false;
35475
- }
35476
- };
35477
- if (process.env.__IS_WSL_TEST__) {
35478
- module2.exports = isWsl;
35479
- } else {
35480
- module2.exports = isWsl();
35481
- }
35482
- }
35483
- });
35484
-
35485
- // ../../node_modules/.pnpm/define-lazy-prop@2.0.0/node_modules/define-lazy-prop/index.js
35486
- var require_define_lazy_prop = __commonJS({
35487
- "../../node_modules/.pnpm/define-lazy-prop@2.0.0/node_modules/define-lazy-prop/index.js"(exports2, module2) {
35488
- "use strict";
35489
- module2.exports = (object, propertyName, fn) => {
35490
- const define2 = (value) => Object.defineProperty(object, propertyName, { value, enumerable: true, writable: true });
35491
- Object.defineProperty(object, propertyName, {
35492
- configurable: true,
35493
- enumerable: true,
35494
- get() {
35495
- const result = fn();
35496
- define2(result);
35497
- return result;
35498
- },
35499
- set(value) {
35500
- define2(value);
35501
- }
35502
- });
35503
- return object;
35504
- };
35505
- }
35506
- });
35507
-
35508
- // ../../node_modules/.pnpm/open@8.4.0/node_modules/open/index.js
35509
- var require_open = __commonJS({
35510
- "../../node_modules/.pnpm/open@8.4.0/node_modules/open/index.js"(exports2, module2) {
35511
- var path6 = require("path");
35512
- var childProcess = require("child_process");
35513
- var { promises: fs3, constants: fsConstants } = require("fs");
35514
- var isWsl = require_is_wsl();
35515
- var isDocker = require_is_docker();
35516
- var defineLazyProperty = require_define_lazy_prop();
35517
- var localXdgOpenPath = path6.join(__dirname, "xdg-open");
35518
- var { platform, arch } = process;
35519
- var getWslDrivesMountPoint = /* @__PURE__ */ (() => {
35520
- const defaultMountPoint = "/mnt/";
35521
- let mountPoint;
35522
- return async function() {
35523
- if (mountPoint) {
35524
- return mountPoint;
35525
- }
35526
- const configFilePath = "/etc/wsl.conf";
35527
- let isConfigFileExists = false;
35528
- try {
35529
- await fs3.access(configFilePath, fsConstants.F_OK);
35530
- isConfigFileExists = true;
35531
- } catch {
35532
- }
35533
- if (!isConfigFileExists) {
35534
- return defaultMountPoint;
35535
- }
35536
- const configContent = await fs3.readFile(configFilePath, { encoding: "utf8" });
35537
- const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
35538
- if (!configMountPoint) {
35539
- return defaultMountPoint;
35540
- }
35541
- mountPoint = configMountPoint.groups.mountPoint.trim();
35542
- mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
35543
- return mountPoint;
35544
- };
35545
- })();
35546
- var pTryEach = async (array, mapper) => {
35547
- let latestError;
35548
- for (const item of array) {
35549
- try {
35550
- return await mapper(item);
35551
- } catch (error2) {
35552
- latestError = error2;
35553
- }
35554
- }
35555
- throw latestError;
35556
- };
35557
- var baseOpen = async (options) => {
35558
- options = {
35559
- wait: false,
35560
- background: false,
35561
- newInstance: false,
35562
- allowNonzeroExitCode: false,
35563
- ...options
35564
- };
35565
- if (Array.isArray(options.app)) {
35566
- return pTryEach(options.app, (singleApp) => baseOpen({
35567
- ...options,
35568
- app: singleApp
35569
- }));
35570
- }
35571
- let { name: app, arguments: appArguments = [] } = options.app || {};
35572
- appArguments = [...appArguments];
35573
- if (Array.isArray(app)) {
35574
- return pTryEach(app, (appName) => baseOpen({
35575
- ...options,
35576
- app: {
35577
- name: appName,
35578
- arguments: appArguments
35579
- }
35580
- }));
35581
- }
35582
- let command2;
35583
- const cliArguments = [];
35584
- const childProcessOptions = {};
35585
- if (platform === "darwin") {
35586
- command2 = "open";
35587
- if (options.wait) {
35588
- cliArguments.push("--wait-apps");
35589
- }
35590
- if (options.background) {
35591
- cliArguments.push("--background");
35592
- }
35593
- if (options.newInstance) {
35594
- cliArguments.push("--new");
35595
- }
35596
- if (app) {
35597
- cliArguments.push("-a", app);
35598
- }
35599
- } else if (platform === "win32" || isWsl && !isDocker()) {
35600
- const mountPoint = await getWslDrivesMountPoint();
35601
- command2 = isWsl ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
35602
- cliArguments.push(
35603
- "-NoProfile",
35604
- "-NonInteractive",
35605
- "\u2013ExecutionPolicy",
35606
- "Bypass",
35607
- "-EncodedCommand"
35608
- );
35609
- if (!isWsl) {
35610
- childProcessOptions.windowsVerbatimArguments = true;
35611
- }
35612
- const encodedArguments = ["Start"];
35613
- if (options.wait) {
35614
- encodedArguments.push("-Wait");
35615
- }
35616
- if (app) {
35617
- encodedArguments.push(`"\`"${app}\`""`, "-ArgumentList");
35618
- if (options.target) {
35619
- appArguments.unshift(options.target);
35620
- }
35621
- } else if (options.target) {
35622
- encodedArguments.push(`"${options.target}"`);
35623
- }
35624
- if (appArguments.length > 0) {
35625
- appArguments = appArguments.map((arg) => `"\`"${arg}\`""`);
35626
- encodedArguments.push(appArguments.join(","));
35627
- }
35628
- options.target = Buffer.from(encodedArguments.join(" "), "utf16le").toString("base64");
35629
- } else {
35630
- if (app) {
35631
- command2 = app;
35632
- } else {
35633
- const isBundled = !__dirname || __dirname === "/";
35634
- let exeLocalXdgOpen = false;
35635
- try {
35636
- await fs3.access(localXdgOpenPath, fsConstants.X_OK);
35637
- exeLocalXdgOpen = true;
35638
- } catch {
35639
- }
35640
- const useSystemXdgOpen = process.versions.electron || platform === "android" || isBundled || !exeLocalXdgOpen;
35641
- command2 = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
35642
- }
35643
- if (appArguments.length > 0) {
35644
- cliArguments.push(...appArguments);
35645
- }
35646
- if (!options.wait) {
35647
- childProcessOptions.stdio = "ignore";
35648
- childProcessOptions.detached = true;
35649
- }
35650
- }
35651
- if (options.target) {
35652
- cliArguments.push(options.target);
35653
- }
35654
- if (platform === "darwin" && appArguments.length > 0) {
35655
- cliArguments.push("--args", ...appArguments);
35656
- }
35657
- const subprocess = childProcess.spawn(command2, cliArguments, childProcessOptions);
35658
- if (options.wait) {
35659
- return new Promise((resolve12, reject) => {
35660
- subprocess.once("error", reject);
35661
- subprocess.once("close", (exitCode) => {
35662
- if (options.allowNonzeroExitCode && exitCode > 0) {
35663
- reject(new Error(`Exited with code ${exitCode}`));
35664
- return;
35665
- }
35666
- resolve12(subprocess);
35667
- });
35668
- });
35669
- }
35670
- subprocess.unref();
35671
- return subprocess;
35672
- };
35673
- var open2 = (target, options) => {
35674
- if (typeof target !== "string") {
35675
- throw new TypeError("Expected a `target`");
35676
- }
35677
- return baseOpen({
35678
- ...options,
35679
- target
35680
- });
35681
- };
35682
- var openApp = (name3, options) => {
35683
- if (typeof name3 !== "string") {
35684
- throw new TypeError("Expected a `name`");
35685
- }
35686
- const { arguments: appArguments = [] } = options || {};
35687
- if (appArguments !== void 0 && appArguments !== null && !Array.isArray(appArguments)) {
35688
- throw new TypeError("Expected `appArguments` as Array type");
35689
- }
35690
- return baseOpen({
35691
- ...options,
35692
- app: {
35693
- name: name3,
35694
- arguments: appArguments
35695
- }
35696
- });
35697
- };
35698
- function detectArchBinary(binary) {
35699
- if (typeof binary === "string" || Array.isArray(binary)) {
35700
- return binary;
35701
- }
35702
- const { [arch]: archBinary } = binary;
35703
- if (!archBinary) {
35704
- throw new Error(`${arch} is not supported`);
35705
- }
35706
- return archBinary;
35707
- }
35708
- function detectPlatformBinary({ [platform]: platformBinary }, { wsl }) {
35709
- if (wsl && isWsl) {
35710
- return detectArchBinary(wsl);
35711
- }
35712
- if (!platformBinary) {
35713
- throw new Error(`${platform} is not supported`);
35714
- }
35715
- return detectArchBinary(platformBinary);
35716
- }
35717
- var apps = {};
35718
- defineLazyProperty(apps, "chrome", () => detectPlatformBinary({
35719
- darwin: "google chrome",
35720
- win32: "chrome",
35721
- linux: ["google-chrome", "google-chrome-stable", "chromium"]
35722
- }, {
35723
- wsl: {
35724
- ia32: "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",
35725
- x64: ["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe", "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]
35726
- }
35727
- }));
35728
- defineLazyProperty(apps, "firefox", () => detectPlatformBinary({
35729
- darwin: "firefox",
35730
- win32: "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
35731
- linux: "firefox"
35732
- }, {
35733
- wsl: "/mnt/c/Program Files/Mozilla Firefox/firefox.exe"
35734
- }));
35735
- defineLazyProperty(apps, "edge", () => detectPlatformBinary({
35736
- darwin: "microsoft edge",
35737
- win32: "msedge",
35738
- linux: ["microsoft-edge", "microsoft-edge-dev"]
35739
- }, {
35740
- wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
35741
- }));
35742
- open2.apps = apps;
35743
- open2.openApp = openApp;
35744
- module2.exports = open2;
35745
- }
35746
- });
35747
-
35748
35424
  // ../../node_modules/.pnpm/@iarna+toml@3.0.0/node_modules/@iarna/toml/lib/parser.js
35749
35425
  var require_parser = __commonJS({
35750
35426
  "../../node_modules/.pnpm/@iarna+toml@3.0.0/node_modules/@iarna/toml/lib/parser.js"(exports2, module2) {
@@ -42331,12 +42007,12 @@ var require_esprima = __commonJS({
42331
42007
  function(module3, exports3) {
42332
42008
  "use strict";
42333
42009
  Object.defineProperty(exports3, "__esModule", { value: true });
42334
- function assert4(condition, message) {
42010
+ function assert5(condition, message) {
42335
42011
  if (!condition) {
42336
42012
  throw new Error("ASSERT: " + message);
42337
42013
  }
42338
42014
  }
42339
- exports3.assert = assert4;
42015
+ exports3.assert = assert5;
42340
42016
  },
42341
42017
  /* 10 */
42342
42018
  /***/
@@ -45658,6 +45334,330 @@ var require_src3 = __commonJS({
45658
45334
  }
45659
45335
  });
45660
45336
 
45337
+ // ../../node_modules/.pnpm/is-docker@2.2.1/node_modules/is-docker/index.js
45338
+ var require_is_docker = __commonJS({
45339
+ "../../node_modules/.pnpm/is-docker@2.2.1/node_modules/is-docker/index.js"(exports2, module2) {
45340
+ "use strict";
45341
+ var fs3 = require("fs");
45342
+ var isDocker;
45343
+ function hasDockerEnv() {
45344
+ try {
45345
+ fs3.statSync("/.dockerenv");
45346
+ return true;
45347
+ } catch (_3) {
45348
+ return false;
45349
+ }
45350
+ }
45351
+ function hasDockerCGroup() {
45352
+ try {
45353
+ return fs3.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
45354
+ } catch (_3) {
45355
+ return false;
45356
+ }
45357
+ }
45358
+ module2.exports = () => {
45359
+ if (isDocker === void 0) {
45360
+ isDocker = hasDockerEnv() || hasDockerCGroup();
45361
+ }
45362
+ return isDocker;
45363
+ };
45364
+ }
45365
+ });
45366
+
45367
+ // ../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js
45368
+ var require_is_wsl = __commonJS({
45369
+ "../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js"(exports2, module2) {
45370
+ "use strict";
45371
+ var os4 = require("os");
45372
+ var fs3 = require("fs");
45373
+ var isDocker = require_is_docker();
45374
+ var isWsl = () => {
45375
+ if (process.platform !== "linux") {
45376
+ return false;
45377
+ }
45378
+ if (os4.release().toLowerCase().includes("microsoft")) {
45379
+ if (isDocker()) {
45380
+ return false;
45381
+ }
45382
+ return true;
45383
+ }
45384
+ try {
45385
+ return fs3.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker() : false;
45386
+ } catch (_3) {
45387
+ return false;
45388
+ }
45389
+ };
45390
+ if (process.env.__IS_WSL_TEST__) {
45391
+ module2.exports = isWsl;
45392
+ } else {
45393
+ module2.exports = isWsl();
45394
+ }
45395
+ }
45396
+ });
45397
+
45398
+ // ../../node_modules/.pnpm/define-lazy-prop@2.0.0/node_modules/define-lazy-prop/index.js
45399
+ var require_define_lazy_prop = __commonJS({
45400
+ "../../node_modules/.pnpm/define-lazy-prop@2.0.0/node_modules/define-lazy-prop/index.js"(exports2, module2) {
45401
+ "use strict";
45402
+ module2.exports = (object, propertyName, fn) => {
45403
+ const define2 = (value) => Object.defineProperty(object, propertyName, { value, enumerable: true, writable: true });
45404
+ Object.defineProperty(object, propertyName, {
45405
+ configurable: true,
45406
+ enumerable: true,
45407
+ get() {
45408
+ const result = fn();
45409
+ define2(result);
45410
+ return result;
45411
+ },
45412
+ set(value) {
45413
+ define2(value);
45414
+ }
45415
+ });
45416
+ return object;
45417
+ };
45418
+ }
45419
+ });
45420
+
45421
+ // ../../node_modules/.pnpm/open@8.4.0/node_modules/open/index.js
45422
+ var require_open = __commonJS({
45423
+ "../../node_modules/.pnpm/open@8.4.0/node_modules/open/index.js"(exports2, module2) {
45424
+ var path6 = require("path");
45425
+ var childProcess = require("child_process");
45426
+ var { promises: fs3, constants: fsConstants } = require("fs");
45427
+ var isWsl = require_is_wsl();
45428
+ var isDocker = require_is_docker();
45429
+ var defineLazyProperty = require_define_lazy_prop();
45430
+ var localXdgOpenPath = path6.join(__dirname, "xdg-open");
45431
+ var { platform, arch } = process;
45432
+ var getWslDrivesMountPoint = /* @__PURE__ */ (() => {
45433
+ const defaultMountPoint = "/mnt/";
45434
+ let mountPoint;
45435
+ return async function() {
45436
+ if (mountPoint) {
45437
+ return mountPoint;
45438
+ }
45439
+ const configFilePath = "/etc/wsl.conf";
45440
+ let isConfigFileExists = false;
45441
+ try {
45442
+ await fs3.access(configFilePath, fsConstants.F_OK);
45443
+ isConfigFileExists = true;
45444
+ } catch {
45445
+ }
45446
+ if (!isConfigFileExists) {
45447
+ return defaultMountPoint;
45448
+ }
45449
+ const configContent = await fs3.readFile(configFilePath, { encoding: "utf8" });
45450
+ const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
45451
+ if (!configMountPoint) {
45452
+ return defaultMountPoint;
45453
+ }
45454
+ mountPoint = configMountPoint.groups.mountPoint.trim();
45455
+ mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
45456
+ return mountPoint;
45457
+ };
45458
+ })();
45459
+ var pTryEach = async (array, mapper) => {
45460
+ let latestError;
45461
+ for (const item of array) {
45462
+ try {
45463
+ return await mapper(item);
45464
+ } catch (error2) {
45465
+ latestError = error2;
45466
+ }
45467
+ }
45468
+ throw latestError;
45469
+ };
45470
+ var baseOpen = async (options) => {
45471
+ options = {
45472
+ wait: false,
45473
+ background: false,
45474
+ newInstance: false,
45475
+ allowNonzeroExitCode: false,
45476
+ ...options
45477
+ };
45478
+ if (Array.isArray(options.app)) {
45479
+ return pTryEach(options.app, (singleApp) => baseOpen({
45480
+ ...options,
45481
+ app: singleApp
45482
+ }));
45483
+ }
45484
+ let { name: app, arguments: appArguments = [] } = options.app || {};
45485
+ appArguments = [...appArguments];
45486
+ if (Array.isArray(app)) {
45487
+ return pTryEach(app, (appName) => baseOpen({
45488
+ ...options,
45489
+ app: {
45490
+ name: appName,
45491
+ arguments: appArguments
45492
+ }
45493
+ }));
45494
+ }
45495
+ let command2;
45496
+ const cliArguments = [];
45497
+ const childProcessOptions = {};
45498
+ if (platform === "darwin") {
45499
+ command2 = "open";
45500
+ if (options.wait) {
45501
+ cliArguments.push("--wait-apps");
45502
+ }
45503
+ if (options.background) {
45504
+ cliArguments.push("--background");
45505
+ }
45506
+ if (options.newInstance) {
45507
+ cliArguments.push("--new");
45508
+ }
45509
+ if (app) {
45510
+ cliArguments.push("-a", app);
45511
+ }
45512
+ } else if (platform === "win32" || isWsl && !isDocker()) {
45513
+ const mountPoint = await getWslDrivesMountPoint();
45514
+ command2 = isWsl ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
45515
+ cliArguments.push(
45516
+ "-NoProfile",
45517
+ "-NonInteractive",
45518
+ "\u2013ExecutionPolicy",
45519
+ "Bypass",
45520
+ "-EncodedCommand"
45521
+ );
45522
+ if (!isWsl) {
45523
+ childProcessOptions.windowsVerbatimArguments = true;
45524
+ }
45525
+ const encodedArguments = ["Start"];
45526
+ if (options.wait) {
45527
+ encodedArguments.push("-Wait");
45528
+ }
45529
+ if (app) {
45530
+ encodedArguments.push(`"\`"${app}\`""`, "-ArgumentList");
45531
+ if (options.target) {
45532
+ appArguments.unshift(options.target);
45533
+ }
45534
+ } else if (options.target) {
45535
+ encodedArguments.push(`"${options.target}"`);
45536
+ }
45537
+ if (appArguments.length > 0) {
45538
+ appArguments = appArguments.map((arg) => `"\`"${arg}\`""`);
45539
+ encodedArguments.push(appArguments.join(","));
45540
+ }
45541
+ options.target = Buffer.from(encodedArguments.join(" "), "utf16le").toString("base64");
45542
+ } else {
45543
+ if (app) {
45544
+ command2 = app;
45545
+ } else {
45546
+ const isBundled = !__dirname || __dirname === "/";
45547
+ let exeLocalXdgOpen = false;
45548
+ try {
45549
+ await fs3.access(localXdgOpenPath, fsConstants.X_OK);
45550
+ exeLocalXdgOpen = true;
45551
+ } catch {
45552
+ }
45553
+ const useSystemXdgOpen = process.versions.electron || platform === "android" || isBundled || !exeLocalXdgOpen;
45554
+ command2 = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
45555
+ }
45556
+ if (appArguments.length > 0) {
45557
+ cliArguments.push(...appArguments);
45558
+ }
45559
+ if (!options.wait) {
45560
+ childProcessOptions.stdio = "ignore";
45561
+ childProcessOptions.detached = true;
45562
+ }
45563
+ }
45564
+ if (options.target) {
45565
+ cliArguments.push(options.target);
45566
+ }
45567
+ if (platform === "darwin" && appArguments.length > 0) {
45568
+ cliArguments.push("--args", ...appArguments);
45569
+ }
45570
+ const subprocess = childProcess.spawn(command2, cliArguments, childProcessOptions);
45571
+ if (options.wait) {
45572
+ return new Promise((resolve12, reject) => {
45573
+ subprocess.once("error", reject);
45574
+ subprocess.once("close", (exitCode) => {
45575
+ if (options.allowNonzeroExitCode && exitCode > 0) {
45576
+ reject(new Error(`Exited with code ${exitCode}`));
45577
+ return;
45578
+ }
45579
+ resolve12(subprocess);
45580
+ });
45581
+ });
45582
+ }
45583
+ subprocess.unref();
45584
+ return subprocess;
45585
+ };
45586
+ var open2 = (target, options) => {
45587
+ if (typeof target !== "string") {
45588
+ throw new TypeError("Expected a `target`");
45589
+ }
45590
+ return baseOpen({
45591
+ ...options,
45592
+ target
45593
+ });
45594
+ };
45595
+ var openApp = (name3, options) => {
45596
+ if (typeof name3 !== "string") {
45597
+ throw new TypeError("Expected a `name`");
45598
+ }
45599
+ const { arguments: appArguments = [] } = options || {};
45600
+ if (appArguments !== void 0 && appArguments !== null && !Array.isArray(appArguments)) {
45601
+ throw new TypeError("Expected `appArguments` as Array type");
45602
+ }
45603
+ return baseOpen({
45604
+ ...options,
45605
+ app: {
45606
+ name: name3,
45607
+ arguments: appArguments
45608
+ }
45609
+ });
45610
+ };
45611
+ function detectArchBinary(binary) {
45612
+ if (typeof binary === "string" || Array.isArray(binary)) {
45613
+ return binary;
45614
+ }
45615
+ const { [arch]: archBinary } = binary;
45616
+ if (!archBinary) {
45617
+ throw new Error(`${arch} is not supported`);
45618
+ }
45619
+ return archBinary;
45620
+ }
45621
+ function detectPlatformBinary({ [platform]: platformBinary }, { wsl }) {
45622
+ if (wsl && isWsl) {
45623
+ return detectArchBinary(wsl);
45624
+ }
45625
+ if (!platformBinary) {
45626
+ throw new Error(`${platform} is not supported`);
45627
+ }
45628
+ return detectArchBinary(platformBinary);
45629
+ }
45630
+ var apps = {};
45631
+ defineLazyProperty(apps, "chrome", () => detectPlatformBinary({
45632
+ darwin: "google chrome",
45633
+ win32: "chrome",
45634
+ linux: ["google-chrome", "google-chrome-stable", "chromium"]
45635
+ }, {
45636
+ wsl: {
45637
+ ia32: "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",
45638
+ x64: ["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe", "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]
45639
+ }
45640
+ }));
45641
+ defineLazyProperty(apps, "firefox", () => detectPlatformBinary({
45642
+ darwin: "firefox",
45643
+ win32: "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
45644
+ linux: "firefox"
45645
+ }, {
45646
+ wsl: "/mnt/c/Program Files/Mozilla Firefox/firefox.exe"
45647
+ }));
45648
+ defineLazyProperty(apps, "edge", () => detectPlatformBinary({
45649
+ darwin: "microsoft edge",
45650
+ win32: "msedge",
45651
+ linux: ["microsoft-edge", "microsoft-edge-dev"]
45652
+ }, {
45653
+ wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
45654
+ }));
45655
+ open2.apps = apps;
45656
+ open2.openApp = openApp;
45657
+ module2.exports = open2;
45658
+ }
45659
+ });
45660
+
45661
45661
  // ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
45662
45662
  var tslib_es6_exports = {};
45663
45663
  __export(tslib_es6_exports, {
@@ -63315,7 +63315,7 @@ var require_lib = __commonJS({
63315
63315
  }
63316
63316
  return x2;
63317
63317
  }
63318
- function assert4(x2) {
63318
+ function assert5(x2) {
63319
63319
  if (!x2) {
63320
63320
  throw new Error("Assert fail");
63321
63321
  }
@@ -64341,7 +64341,7 @@ var require_lib = __commonJS({
64341
64341
  return this.finishNode(t2, "TSTypeAnnotation");
64342
64342
  }
64343
64343
  tsParseType() {
64344
- assert4(this.state.inType);
64344
+ assert5(this.state.inType);
64345
64345
  const type = this.tsParseNonConditionalType();
64346
64346
  if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81)) {
64347
64347
  return type;
@@ -65389,7 +65389,7 @@ var require_lib = __commonJS({
65389
65389
  return arrow.node;
65390
65390
  }
65391
65391
  if (!jsx2) {
65392
- assert4(!this.hasPlugin("jsx"));
65392
+ assert5(!this.hasPlugin("jsx"));
65393
65393
  typeCast = this.tryParse(() => super.parseMaybeAssign(refExpressionErrors, afterLeftParse), state);
65394
65394
  if (!typeCast.error) return typeCast.node;
65395
65395
  }
@@ -73350,12 +73350,15 @@ var getTextRenderers = (config47) => {
73350
73350
  const helpText = config47.helpText ?? "";
73351
73351
  const format5 = config47.format ?? ((val) => String(val));
73352
73352
  const defaultValue = config47.defaultValue?.toString() ?? "";
73353
- const activeRenderer = ({ value }) => [
73354
- `${blCorner} ${bold(question)} ${dim(helpText)}`,
73355
- `${space(2)}${format5(value || dim(defaultValue))}`,
73356
- ``
73357
- // extra line for readability
73358
- ];
73353
+ const activeRenderer = (props) => {
73354
+ const { valueWithCursor } = props;
73355
+ return [
73356
+ `${blCorner} ${bold(question)} ${dim(helpText)}`,
73357
+ `${space(2)}${format5(valueWithCursor || dim(defaultValue))}`,
73358
+ ``
73359
+ // extra line for readability
73360
+ ];
73361
+ };
73359
73362
  return {
73360
73363
  initial: () => [
73361
73364
  `${blCorner} ${bold(question)} ${dim(helpText)}`,
@@ -78503,7 +78506,7 @@ var Yargs = YargsFactory(esm_default);
78503
78506
  var yargs_default = Yargs;
78504
78507
 
78505
78508
  // package.json
78506
- var version = "2.51.3";
78509
+ var version = "2.51.5";
78507
78510
 
78508
78511
  // src/metrics.ts
78509
78512
  var import_node_async_hooks = require("node:async_hooks");
@@ -79075,10 +79078,118 @@ var import_degit = __toESM(require_dist());
79075
79078
  var import_haikunator = __toESM(require_dist_web());
79076
79079
 
79077
79080
  // src/helpers/packages.ts
79078
- var import_fs6 = require("fs");
79079
- var import_path6 = __toESM(require("path"));
79081
+ var import_assert2 = __toESM(require("assert"));
79082
+ var import_fs7 = require("fs");
79083
+ var import_path7 = __toESM(require("path"));
79080
79084
  var import_undici2 = __toESM(require_undici());
79085
+
79086
+ // src/helpers/files.ts
79087
+ var import_fs6 = __toESM(require("fs"));
79088
+ var import_path6 = require("path");
79089
+ var import_toml = __toESM(require_toml());
79090
+ var import_comment_json = __toESM(require_src3());
79091
+ var copyFile = (path6, dest) => {
79092
+ try {
79093
+ import_fs6.default.copyFileSync(path6, dest);
79094
+ } catch (error2) {
79095
+ throw new Error(error2);
79096
+ }
79097
+ };
79098
+ var writeFile2 = (path6, content) => {
79099
+ try {
79100
+ import_fs6.default.writeFileSync(path6, content);
79101
+ } catch (error2) {
79102
+ throw new Error(error2);
79103
+ }
79104
+ };
79105
+ var appendFile = (path6, content) => {
79106
+ try {
79107
+ import_fs6.default.appendFileSync(path6, content);
79108
+ } catch (error2) {
79109
+ throw new Error(error2);
79110
+ }
79111
+ };
79112
+ var readFile = (path6) => {
79113
+ try {
79114
+ return import_fs6.default.readFileSync(path6, "utf-8");
79115
+ } catch (error2) {
79116
+ throw new Error(error2);
79117
+ }
79118
+ };
79119
+ var removeFile = (path6) => {
79120
+ try {
79121
+ import_fs6.default.rmSync(path6, { force: true });
79122
+ } catch (error2) {
79123
+ throw new Error(`Remove file failed: ${path6}`, { cause: error2 });
79124
+ }
79125
+ };
79126
+ var directoryExists = (path6) => {
79127
+ try {
79128
+ const stat = (0, import_fs6.statSync)(path6);
79129
+ return stat.isDirectory();
79130
+ } catch (error2) {
79131
+ if (error2.code === "ENOENT") {
79132
+ return false;
79133
+ }
79134
+ throw new Error(error2);
79135
+ }
79136
+ };
79137
+ var readJSON = (path6) => {
79138
+ const contents = readFile(path6);
79139
+ return contents ? (0, import_comment_json.parse)(contents) : contents;
79140
+ };
79141
+ var writeJSON = (path6, object, stringifySpace = " ") => {
79142
+ writeFile2(path6, (0, import_comment_json.stringify)(object, null, stringifySpace));
79143
+ };
79144
+ var probePaths = (paths) => {
79145
+ for (const path6 of paths) {
79146
+ if ((0, import_fs6.existsSync)(path6)) {
79147
+ return path6;
79148
+ }
79149
+ }
79150
+ return null;
79151
+ };
79152
+ var usesTypescript = (ctx) => {
79153
+ return hasTsConfig(ctx.project.path);
79154
+ };
79155
+ var hasTsConfig = (path6) => {
79156
+ return (0, import_fs6.existsSync)((0, import_path6.join)(`${path6}`, `tsconfig.json`));
79157
+ };
79158
+ var eslintRcExts = ["js", "cjs", "yaml", "yml", "json"];
79159
+ var usesEslint = (ctx) => {
79160
+ for (const ext of eslintRcExts) {
79161
+ const eslintRcFilename = `.eslintrc.${ext}`;
79162
+ if ((0, import_fs6.existsSync)(`${ctx.project.path}/${eslintRcFilename}`)) {
79163
+ return {
79164
+ used: true,
79165
+ configType: eslintRcFilename
79166
+ };
79167
+ }
79168
+ }
79169
+ if ((0, import_fs6.existsSync)(`${ctx.project.path}/eslint.config.js`)) {
79170
+ return {
79171
+ used: true,
79172
+ configType: "eslint.config.js"
79173
+ };
79174
+ }
79175
+ try {
79176
+ const pkgJson = readJSON(`${ctx.project.path}/package.json`);
79177
+ if (pkgJson?.eslintConfig) {
79178
+ return {
79179
+ used: true,
79180
+ configType: "package.json"
79181
+ };
79182
+ }
79183
+ } catch {
79184
+ }
79185
+ return { used: false };
79186
+ };
79187
+
79188
+ // src/helpers/packages.ts
79081
79189
  var installPackages = async (packages, config47 = {}) => {
79190
+ if (packages.length === 0) {
79191
+ return;
79192
+ }
79082
79193
  const { npm: npm24 } = detectPackageManager();
79083
79194
  let saveFlag;
79084
79195
  let cmd;
@@ -79114,10 +79225,27 @@ var installPackages = async (packages, config47 = {}) => {
79114
79225
  silent: true
79115
79226
  }
79116
79227
  );
79228
+ if (npm24 === "npm") {
79229
+ const pkgJsonPath = import_path7.default.join(process.cwd(), "package.json");
79230
+ const pkgJson = readJSON(pkgJsonPath);
79231
+ const deps = config47.dev ? pkgJson.devDependencies : pkgJson.dependencies;
79232
+ (0, import_assert2.default)(deps, "dependencies should be defined");
79233
+ for (const pkg of packages) {
79234
+ const versionMarker = pkg.lastIndexOf("@");
79235
+ if (versionMarker > 0) {
79236
+ const pkgName = pkg.slice(0, versionMarker);
79237
+ const pkgVersion = pkg.slice(versionMarker + 1);
79238
+ if (pkgVersion !== "latest") {
79239
+ deps[pkgName] = pkgVersion;
79240
+ }
79241
+ }
79242
+ }
79243
+ writeJSON(pkgJsonPath, pkgJson);
79244
+ }
79117
79245
  };
79118
79246
  var npmInstall = async (ctx) => {
79119
- const nodeModulesPath = import_path6.default.join(ctx.project.path, "node_modules");
79120
- if ((0, import_fs6.existsSync)(nodeModulesPath)) {
79247
+ const nodeModulesPath = import_path7.default.join(ctx.project.path, "node_modules");
79248
+ if ((0, import_fs7.existsSync)(nodeModulesPath)) {
79121
79249
  return;
79122
79250
  }
79123
79251
  const { npm: npm24 } = detectPackageManager();
@@ -79196,108 +79324,6 @@ var WRANGLER_DEFAULTS = {
79196
79324
  deploy: false
79197
79325
  };
79198
79326
 
79199
- // src/helpers/files.ts
79200
- var import_fs7 = __toESM(require("fs"));
79201
- var import_path7 = require("path");
79202
- var import_toml = __toESM(require_toml());
79203
- var import_comment_json = __toESM(require_src3());
79204
- var copyFile = (path6, dest) => {
79205
- try {
79206
- import_fs7.default.copyFileSync(path6, dest);
79207
- } catch (error2) {
79208
- throw new Error(error2);
79209
- }
79210
- };
79211
- var writeFile2 = (path6, content) => {
79212
- try {
79213
- import_fs7.default.writeFileSync(path6, content);
79214
- } catch (error2) {
79215
- throw new Error(error2);
79216
- }
79217
- };
79218
- var appendFile = (path6, content) => {
79219
- try {
79220
- import_fs7.default.appendFileSync(path6, content);
79221
- } catch (error2) {
79222
- throw new Error(error2);
79223
- }
79224
- };
79225
- var readFile = (path6) => {
79226
- try {
79227
- return import_fs7.default.readFileSync(path6, "utf-8");
79228
- } catch (error2) {
79229
- throw new Error(error2);
79230
- }
79231
- };
79232
- var removeFile = (path6) => {
79233
- try {
79234
- import_fs7.default.rmSync(path6, { force: true });
79235
- } catch (error2) {
79236
- throw new Error(`Remove file failed: ${path6}`, { cause: error2 });
79237
- }
79238
- };
79239
- var directoryExists = (path6) => {
79240
- try {
79241
- const stat = (0, import_fs7.statSync)(path6);
79242
- return stat.isDirectory();
79243
- } catch (error2) {
79244
- if (error2.code === "ENOENT") {
79245
- return false;
79246
- }
79247
- throw new Error(error2);
79248
- }
79249
- };
79250
- var readJSON = (path6) => {
79251
- const contents = readFile(path6);
79252
- return contents ? (0, import_comment_json.parse)(contents) : contents;
79253
- };
79254
- var writeJSON = (path6, object, stringifySpace = " ") => {
79255
- writeFile2(path6, (0, import_comment_json.stringify)(object, null, stringifySpace));
79256
- };
79257
- var probePaths = (paths) => {
79258
- for (const path6 of paths) {
79259
- if ((0, import_fs7.existsSync)(path6)) {
79260
- return path6;
79261
- }
79262
- }
79263
- return null;
79264
- };
79265
- var usesTypescript = (ctx) => {
79266
- return hasTsConfig(ctx.project.path);
79267
- };
79268
- var hasTsConfig = (path6) => {
79269
- return (0, import_fs7.existsSync)((0, import_path7.join)(`${path6}`, `tsconfig.json`));
79270
- };
79271
- var eslintRcExts = ["js", "cjs", "yaml", "yml", "json"];
79272
- var usesEslint = (ctx) => {
79273
- for (const ext of eslintRcExts) {
79274
- const eslintRcFilename = `.eslintrc.${ext}`;
79275
- if ((0, import_fs7.existsSync)(`${ctx.project.path}/${eslintRcFilename}`)) {
79276
- return {
79277
- used: true,
79278
- configType: eslintRcFilename
79279
- };
79280
- }
79281
- }
79282
- if ((0, import_fs7.existsSync)(`${ctx.project.path}/eslint.config.js`)) {
79283
- return {
79284
- used: true,
79285
- configType: "eslint.config.js"
79286
- };
79287
- }
79288
- try {
79289
- const pkgJson = readJSON(`${ctx.project.path}/package.json`);
79290
- if (pkgJson?.eslintConfig) {
79291
- return {
79292
- used: true,
79293
- configType: "package.json"
79294
- };
79295
- }
79296
- } catch {
79297
- }
79298
- return { used: false };
79299
- };
79300
-
79301
79327
  // src/frameworks/package.json
79302
79328
  var package_default = {
79303
79329
  name: "frameworks_clis_info",
@@ -80353,7 +80379,8 @@ var writeEslintrc = async (ctx) => {
80353
80379
  var addDevDependencies = async (installEslintPlugin) => {
80354
80380
  const packages = [
80355
80381
  "@cloudflare/next-on-pages@1",
80356
- "vercel",
80382
+ "vercel@47.0.4",
80383
+ "next@15.4.6",
80357
80384
  ...installEslintPlugin ? ["eslint-plugin-next-on-pages"] : []
80358
80385
  ];
80359
80386
  await installPackages(packages, {
@@ -81225,7 +81252,7 @@ var config33 = {
81225
81252
  var c3_default37 = config33;
81226
81253
 
81227
81254
  // templates/react/workers/c3.ts
81228
- var import_assert2 = __toESM(require("assert"));
81255
+ var import_assert3 = __toESM(require("assert"));
81229
81256
  var recast9 = __toESM(require_main2());
81230
81257
  var b2 = recast9.types.builders;
81231
81258
  var t = recast9.types.namedTypes;
@@ -81272,9 +81299,9 @@ function transformViteConfig(ctx) {
81272
81299
  return this.traverse(n);
81273
81300
  }
81274
81301
  const config47 = n.node.arguments[0];
81275
- (0, import_assert2.default)(t.ObjectExpression.check(config47));
81302
+ (0, import_assert3.default)(t.ObjectExpression.check(config47));
81276
81303
  const pluginsProp = config47.properties.find((prop) => isPluginsProp(prop));
81277
- (0, import_assert2.default)(pluginsProp && t.ArrayExpression.check(pluginsProp.value));
81304
+ (0, import_assert3.default)(pluginsProp && t.ArrayExpression.check(pluginsProp.value));
81278
81305
  pluginsProp.value.elements.push(
81279
81306
  b2.callExpression(b2.identifier("cloudflare"), [])
81280
81307
  );
@@ -81327,7 +81354,7 @@ async function getVariant() {
81327
81354
  defaultValue: variantsOptions2[0].value
81328
81355
  });
81329
81356
  const selected = variantsOptions2.find((variant) => variant.value === value);
81330
- (0, import_assert2.default)(selected, "Expected a variant to be selected");
81357
+ (0, import_assert3.default)(selected, "Expected a variant to be selected");
81331
81358
  return selected;
81332
81359
  }
81333
81360
  var config34 = {
@@ -81957,7 +81984,7 @@ var c3_default50 = config46;
81957
81984
  var import_node_assert2 = __toESM(require("node:assert"));
81958
81985
 
81959
81986
  // ../wrangler/package.json
81960
- var version2 = "4.33.2";
81987
+ var version2 = "4.35.0";
81961
81988
 
81962
81989
  // src/git.ts
81963
81990
  var offerGit = async (ctx) => {
@@ -82692,6 +82719,22 @@ var downloadRemoteTemplate = async (src, mode) => {
82692
82719
  throw new Error(`Failed to clone remote template: ${src}`);
82693
82720
  }
82694
82721
  };
82722
+ function updatePythonPackageName(path6, projectName) {
82723
+ const pyprojectTomlPath = (0, import_path13.resolve)(path6, "pyproject.toml");
82724
+ const uvLockPath = (0, import_path13.resolve)(path6, "uv.lock");
82725
+ if (!(0, import_fs11.existsSync)(pyprojectTomlPath)) {
82726
+ return;
82727
+ }
82728
+ const s = spinner();
82729
+ s.start("Updating name in `pyproject.toml`");
82730
+ let pyprojectTomlContents = readFile(pyprojectTomlPath);
82731
+ pyprojectTomlContents = pyprojectTomlContents.replace('"TBD"', projectName);
82732
+ writeFile2(pyprojectTomlPath, pyprojectTomlContents);
82733
+ let uvLockContents = readFile(uvLockPath);
82734
+ uvLockContents = uvLockContents.replace('"tbd"', projectName.toLowerCase());
82735
+ writeFile2(uvLockPath, uvLockContents);
82736
+ s.stop(`${brandColor("updated")} ${dim("`pyproject.toml`")}`);
82737
+ }
82695
82738
  var updatePackageName = async (ctx) => {
82696
82739
  const placeholderNames = ["<TBD>", "TBD", ""];
82697
82740
  const pkgJsonPath = (0, import_path13.resolve)(ctx.project.path, "package.json");
@@ -82704,6 +82747,7 @@ var updatePackageName = async (ctx) => {
82704
82747
  pkgJson.name = ctx.project.name;
82705
82748
  writeJSON(pkgJsonPath, pkgJson);
82706
82749
  s.stop(`${brandColor("updated")} ${dim("`package.json`")}`);
82750
+ updatePythonPackageName(ctx.project.path, ctx.project.name);
82707
82751
  };
82708
82752
  var updatePackageScripts = async (ctx) => {
82709
82753
  if (!ctx.template.transformPackageJson) {