@cloudflare/vitest-plugin 1.1.9 → 1.1.11

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.
@@ -15,7 +15,6 @@ import net from "node:net";
15
15
  import http from "node:http";
16
16
  import events, { EventEmitter } from "node:events";
17
17
  import { AsyncLocalStorage } from "node:async_hooks";
18
- import { assert as assert$1 } from "node:console";
19
18
  import fs$1 from "node:fs/promises";
20
19
  import { execFileSync, spawn, spawnSync } from "node:child_process";
21
20
  import * as timersPromises from "node:timers/promises";
@@ -325,7 +324,7 @@ function createFatalError$1(message, isJson, options) {
325
324
  __name$3(createFatalError$1, "createFatalError");
326
325
 
327
326
  //#endregion
328
- //#region ../workers-utils/dist/chunk-T5JQYOMX.mjs
327
+ //#region ../workers-utils/dist/chunk-JGKSDUFK.mjs
329
328
  function hasKnownExportType(entry) {
330
329
  const type = entry?.type;
331
330
  return type === "durable-object" || type === "worker";
@@ -361,6 +360,17 @@ function getDurableObjectContainerApps(containers) {
361
360
  return Array.isArray(containers) ? containers.filter(isDurableObjectContainerApp) : [];
362
361
  }
363
362
  __name$3(getDurableObjectContainerApps, "getDurableObjectContainerApps");
363
+ function getResolvedDurableObjectContainerApps(containers, exports$1) {
364
+ return getDurableObjectContainerApps(containers).map((container) => {
365
+ const className = resolveContainerClassName(container, exports$1);
366
+ if (typeof className !== "string" || className.length === 0) throw new UserError$1(`The container "${container.name}" is not linked to a Durable Object. Either set "containers.class_name", or reference this container from a Durable Object's \`exports\` entry via its "container" field.`, { telemetryMessage: "durable object container class unresolved" });
367
+ return {
368
+ ...container,
369
+ class_name: className
370
+ };
371
+ });
372
+ }
373
+ __name$3(getResolvedDurableObjectContainerApps, "getResolvedDurableObjectContainerApps");
364
374
  function getContainerNameToClassNameMap(exports$1) {
365
375
  const containerNameToClassName = /* @__PURE__ */ new Map();
366
376
  for (const [className, entry] of Object.entries(getDurableObjectExports(exports$1))) if ("container" in entry && typeof entry.container === "string" && !containerNameToClassName.has(entry.container)) containerNameToClassName.set(entry.container, className);
@@ -415,7 +425,7 @@ function getDurableObjectClassNameToUseSQLiteMap(migrations, exports$1) {
415
425
  __name$3(getDurableObjectClassNameToUseSQLiteMap, "getDurableObjectClassNameToUseSQLiteMap");
416
426
  function validateDurableObjectContainerApplications(config$1, containers = getDurableObjectContainerApps(config$1.containers)) {
417
427
  const allDOs = getDurableObjectClassNameToUseSQLiteMap(config$1.migrations, config$1.exports);
418
- for (const container of containers) {
428
+ for (const container of getResolvedDurableObjectContainerApps(containers, config$1.exports)) {
419
429
  const maybeBoundDO = config$1.durable_objects.bindings.find((durableObject) => durableObject.class_name === container.class_name);
420
430
  const useSQLite = allDOs.get(container.class_name);
421
431
  if (useSQLite === void 0 && maybeBoundDO === void 0) throw new UserError$1(`The container class_name ${container.class_name} does not match any durable object class_name defined in your Wrangler config file. Note that the durable object must be defined in the same script as the container.`, { telemetryMessage: "no DO defined that matches container class_name" });
@@ -2383,7 +2393,12 @@ var APIError = class extends ParseError {
2383
2393
  return this.#status;
2384
2394
  }
2385
2395
  isGatewayError() {
2386
- if (this.#status !== void 0) return [524].includes(this.#status);
2396
+ if (this.#status !== void 0) return [
2397
+ 502,
2398
+ 503,
2399
+ 504,
2400
+ 524
2401
+ ].includes(this.#status);
2387
2402
  return false;
2388
2403
  }
2389
2404
  isRetryable() {
@@ -2787,8 +2802,8 @@ function formatConfigSnippet(snippet, configPath, formatted = true) {
2787
2802
  __name$3(formatConfigSnippet, "formatConfigSnippet");
2788
2803
 
2789
2804
  //#endregion
2790
- //#region ../workers-utils/dist/chunk-KBTXSRPS.mjs
2791
- var DEFAULT_COMPAT_DATE = "2026-09-11";
2805
+ //#region ../workers-utils/dist/chunk-YZWVNJ5I.mjs
2806
+ var DEFAULT_COMPAT_DATE = "2026-09-16";
2792
2807
  function assertNever(_value) {}
2793
2808
  __name$3(assertNever, "assertNever");
2794
2809
  function mapWorkerMetadataBindings(bindings) {
@@ -2960,9 +2975,6 @@ function mapWorkerMetadataBindings(bindings) {
2960
2975
  instance_name: binding.instance_name
2961
2976
  }];
2962
2977
  break;
2963
- case "websearch":
2964
- configObj.websearch = { binding: binding.name };
2965
- break;
2966
2978
  case "agent_memory":
2967
2979
  configObj.agent_memory = [...configObj.agent_memory ?? [], {
2968
2980
  binding: binding.name,
@@ -4874,7 +4886,7 @@ var require_tree = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undi
4874
4886
  //#endregion
4875
4887
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/util.js
4876
4888
  var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/util.js": ((exports, module) => {
4877
- const assert$36 = __require$1("node:assert");
4889
+ const assert$35 = __require$1("node:assert");
4878
4890
  const { kDestroyed: kDestroyed$2, kBodyUsed: kBodyUsed$1, kListeners, kBody: kBody$2 } = require_symbols();
4879
4891
  const { IncomingMessage } = __require$1("node:http");
4880
4892
  const stream$1 = __require$1("node:stream");
@@ -4892,7 +4904,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
4892
4904
  this[kBodyUsed$1] = false;
4893
4905
  }
4894
4906
  async *[Symbol.asyncIterator]() {
4895
- assert$36(!this[kBodyUsed$1], "disturbed");
4907
+ assert$35(!this[kBodyUsed$1], "disturbed");
4896
4908
  this[kBodyUsed$1] = true;
4897
4909
  yield* this[kBody$2];
4898
4910
  }
@@ -4905,7 +4917,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
4905
4917
  function wrapRequestBody$1(body) {
4906
4918
  if (isStream$1(body)) {
4907
4919
  if (bodyLength(body) === 0) body.on("data", function() {
4908
- assert$36(false);
4920
+ assert$35(false);
4909
4921
  });
4910
4922
  if (typeof body.readableDidRead !== "boolean") {
4911
4923
  body[kBodyUsed$1] = false;
@@ -5022,7 +5034,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
5022
5034
  function getHostname(host) {
5023
5035
  if (host[0] === "[") {
5024
5036
  const idx$1 = host.indexOf("]");
5025
- assert$36(idx$1 !== -1);
5037
+ assert$35(idx$1 !== -1);
5026
5038
  return host.substring(1, idx$1);
5027
5039
  }
5028
5040
  const idx = host.indexOf(":");
@@ -5037,7 +5049,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
5037
5049
  */
5038
5050
  function getServerName$1(host) {
5039
5051
  if (!host) return null;
5040
- assert$36(typeof host === "string");
5052
+ assert$35(typeof host === "string");
5041
5053
  const servername = getHostname(host);
5042
5054
  if (net$5.isIP(servername)) return "";
5043
5055
  return servername;
@@ -5657,7 +5669,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
5657
5669
  function errorRequest(client, request$1, err) {
5658
5670
  try {
5659
5671
  request$1.onError(err);
5660
- assert$36(request$1.aborted);
5672
+ assert$35(request$1.aborted);
5661
5673
  } catch (err$1) {
5662
5674
  client.emit("error", err$1);
5663
5675
  }
@@ -5944,7 +5956,7 @@ var require_diagnostics = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
5944
5956
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/request.js
5945
5957
  var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/request.js": ((exports, module) => {
5946
5958
  const { InvalidArgumentError: InvalidArgumentError$36, NotSupportedError: NotSupportedError$1 } = require_errors();
5947
- const assert$35 = __require$1("node:assert");
5959
+ const assert$34 = __require$1("node:assert");
5948
5960
  const { isValidHTTPToken: isValidHTTPToken$3, isValidHeaderValue: isValidHeaderValue$2, isStream, destroy, isBuffer, isFormDataLike, isIterable, hasSafeIterator: hasSafeIterator$2, isBlobLike, serializePathWithQuery: serializePathWithQuery$3, assertRequestHandler, getServerName, normalizedMethodRecords: normalizedMethodRecords$1, getProtocolFromUrlString } = require_util$5();
5949
5961
  const { channels: channels$6 } = require_diagnostics();
5950
5962
  const { headerNameLowerCasedRecord } = require_constants$6();
@@ -6051,8 +6063,8 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
6051
6063
  }
6052
6064
  }
6053
6065
  onConnect(abort$1) {
6054
- assert$35(!this.aborted);
6055
- assert$35(!this.completed);
6066
+ assert$34(!this.aborted);
6067
+ assert$34(!this.completed);
6056
6068
  if (this.error) abort$1(this.error);
6057
6069
  else {
6058
6070
  this.abort = abort$1;
@@ -6063,8 +6075,8 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
6063
6075
  return this[kHandler].onResponseStarted?.();
6064
6076
  }
6065
6077
  onHeaders(statusCode, headers, resume$2, statusText) {
6066
- assert$35(!this.aborted);
6067
- assert$35(!this.completed);
6078
+ assert$34(!this.aborted);
6079
+ assert$34(!this.completed);
6068
6080
  if (channels$6.headers.hasSubscribers) channels$6.headers.publish({
6069
6081
  request: this,
6070
6082
  response: {
@@ -6080,8 +6092,8 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
6080
6092
  }
6081
6093
  }
6082
6094
  onData(chunk) {
6083
- assert$35(!this.aborted);
6084
- assert$35(!this.completed);
6095
+ assert$34(!this.aborted);
6096
+ assert$34(!this.completed);
6085
6097
  if (channels$6.bodyChunkReceived.hasSubscribers) channels$6.bodyChunkReceived.publish({
6086
6098
  request: this,
6087
6099
  chunk
@@ -6094,14 +6106,14 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
6094
6106
  }
6095
6107
  }
6096
6108
  onUpgrade(statusCode, headers, socket) {
6097
- assert$35(!this.aborted);
6098
- assert$35(!this.completed);
6109
+ assert$34(!this.aborted);
6110
+ assert$34(!this.completed);
6099
6111
  return this[kHandler].onUpgrade(statusCode, headers, socket);
6100
6112
  }
6101
6113
  onComplete(trailers) {
6102
6114
  this.onFinally();
6103
- assert$35(!this.aborted);
6104
- assert$35(!this.completed);
6115
+ assert$34(!this.aborted);
6116
+ assert$34(!this.completed);
6105
6117
  this.completed = true;
6106
6118
  if (channels$6.trailers.hasSubscribers) channels$6.trailers.publish({
6107
6119
  request: this,
@@ -6492,7 +6504,7 @@ var require_dispatcher_base = /* @__PURE__ */ __commonJS$2({ "../../node_modules
6492
6504
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/connect.js
6493
6505
  var require_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/connect.js": ((exports, module) => {
6494
6506
  const net$4 = __require$1("node:net");
6495
- const assert$34 = __require$1("node:assert");
6507
+ const assert$33 = __require$1("node:assert");
6496
6508
  const util$23 = require_util$5();
6497
6509
  const { InvalidArgumentError: InvalidArgumentError$32 } = require_errors();
6498
6510
  let tls$2;
@@ -6540,7 +6552,7 @@ var require_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
6540
6552
  if (!tls$2) tls$2 = __require$1("node:tls");
6541
6553
  servername = servername || options.servername || util$23.getServerName(host) || null;
6542
6554
  const sessionKey = servername || hostname$1;
6543
- assert$34(sessionKey);
6555
+ assert$33(sessionKey);
6544
6556
  const session = customSession || sessionCache.get(sessionKey) || null;
6545
6557
  port = port || 443;
6546
6558
  socket = tls$2.connect({
@@ -6558,7 +6570,7 @@ var require_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
6558
6570
  sessionCache.set(sessionKey, session$1);
6559
6571
  });
6560
6572
  } else {
6561
- assert$34(!httpSocket, "httpSocket can only be sent on TLS update");
6573
+ assert$33(!httpSocket, "httpSocket can only be sent on TLS update");
6562
6574
  port = port || 80;
6563
6575
  socket = net$4.connect({
6564
6576
  highWaterMark: 64 * 1024,
@@ -7496,7 +7508,7 @@ var require_encoding = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
7496
7508
  //#endregion
7497
7509
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/infra/index.js
7498
7510
  var require_infra = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/infra/index.js": ((exports, module) => {
7499
- const assert$33 = __require$1("node:assert");
7511
+ const assert$32 = __require$1("node:assert");
7500
7512
  const { utf8DecodeBytes: utf8DecodeBytes$2 } = require_encoding();
7501
7513
  /**
7502
7514
  * @param {(char: string) => boolean} condition
@@ -7589,7 +7601,7 @@ var require_infra = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
7589
7601
  * @see https://infra.spec.whatwg.org/#isomorphic-encode
7590
7602
  */
7591
7603
  function isomorphicEncode$3(input) {
7592
- assert$33(!invalidIsomorphicEncodeValueRegex.test(input));
7604
+ assert$32(!invalidIsomorphicEncodeValueRegex.test(input));
7593
7605
  return input;
7594
7606
  }
7595
7607
  /**
@@ -7627,7 +7639,7 @@ var require_infra = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
7627
7639
  function serializeJavascriptValueToJSONString$1(value) {
7628
7640
  const result = JSON.stringify(value);
7629
7641
  if (result === void 0) throw new TypeError("Value is not JSON serializable");
7630
- assert$33(typeof result === "string");
7642
+ assert$32(typeof result === "string");
7631
7643
  return result;
7632
7644
  }
7633
7645
  module.exports = {
@@ -7647,7 +7659,7 @@ var require_infra = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
7647
7659
  //#endregion
7648
7660
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/fetch/data-url.js
7649
7661
  var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/fetch/data-url.js": ((exports, module) => {
7650
- const assert$32 = __require$1("node:assert");
7662
+ const assert$31 = __require$1("node:assert");
7651
7663
  const { forgivingBase64, collectASequenceOfCodePoints: collectASequenceOfCodePoints$1, collectASequenceOfCodePointsFast: collectASequenceOfCodePointsFast$2, isomorphicDecode: isomorphicDecode$1, removeASCIIWhitespace, removeChars: removeChars$2 } = require_infra();
7652
7664
  const encoder = new TextEncoder();
7653
7665
  /**
@@ -7661,7 +7673,7 @@ var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
7661
7673
  const HTTP_QUOTED_STRING_TOKENS = /^[\u0009\u0020-\u007E\u0080-\u00FF]+$/u;
7662
7674
  /** @param {URL} dataURL */
7663
7675
  function dataURLProcessor$1(dataURL) {
7664
- assert$32(dataURL.protocol === "data:");
7676
+ assert$31(dataURL.protocol === "data:");
7665
7677
  let input = URLSerializer$4(dataURL, true);
7666
7678
  input = input.slice(5);
7667
7679
  const position = { position: 0 };
@@ -7783,7 +7795,7 @@ var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
7783
7795
  function collectAnHTTPQuotedString$1(input, position, extractValue$2 = false) {
7784
7796
  const positionStart = position.position;
7785
7797
  let value = "";
7786
- assert$32(input[position.position] === "\"");
7798
+ assert$31(input[position.position] === "\"");
7787
7799
  position.position++;
7788
7800
  while (true) {
7789
7801
  value += collectASequenceOfCodePoints$1((char) => char !== "\"" && char !== "\\", input, position);
@@ -7798,7 +7810,7 @@ var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
7798
7810
  value += input[position.position];
7799
7811
  position.position++;
7800
7812
  } else {
7801
- assert$32(quoteOrBackslash === "\"");
7813
+ assert$31(quoteOrBackslash === "\"");
7802
7814
  break;
7803
7815
  }
7804
7816
  }
@@ -7809,7 +7821,7 @@ var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
7809
7821
  * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
7810
7822
  */
7811
7823
  function serializeAMimeType$3(mimeType) {
7812
- assert$32(mimeType !== "failure");
7824
+ assert$31(mimeType !== "failure");
7813
7825
  const { parameters, essence } = mimeType;
7814
7826
  let serialization = essence;
7815
7827
  for (let [name, value] of parameters.entries()) {
@@ -7988,7 +8000,7 @@ var require_runtime_features = /* @__PURE__ */ __commonJS$2({ "../../node_module
7988
8000
  //#endregion
7989
8001
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/webidl/index.js
7990
8002
  var require_webidl = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/webidl/index.js": ((exports, module) => {
7991
- const assert$31 = __require$1("node:assert");
8003
+ const assert$30 = __require$1("node:assert");
7992
8004
  const { types, inspect: inspect$1 } = __require$1("node:util");
7993
8005
  const { runtimeFeatures: runtimeFeatures$7 } = require_runtime_features();
7994
8006
  const UNDEFINED$1 = 1;
@@ -8303,7 +8315,7 @@ var require_webidl = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
8303
8315
  offset = jsBufferSource.byteOffset;
8304
8316
  length = jsBufferSource.byteLength;
8305
8317
  } else {
8306
- assert$31(types.isAnyArrayBuffer(jsBufferSource));
8318
+ assert$30(types.isAnyArrayBuffer(jsBufferSource));
8307
8319
  length = jsBufferSource.byteLength;
8308
8320
  }
8309
8321
  if (jsArrayBuffer.detached) return new Uint8Array(0);
@@ -8497,7 +8509,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
8497
8509
  const { collectAnHTTPQuotedString, parseMIMEType: parseMIMEType$2 } = require_data_url();
8498
8510
  const { performance: performance$1 } = __require$1("node:perf_hooks");
8499
8511
  const { ReadableStreamFrom: ReadableStreamFrom$2, isValidHTTPToken: isValidHTTPToken$2, normalizedMethodRecordsBase: normalizedMethodRecordsBase$1 } = require_util$5();
8500
- const assert$30 = __require$1("node:assert");
8512
+ const assert$29 = __require$1("node:assert");
8501
8513
  const { isUint8Array: isUint8Array$2 } = __require$1("node:util/types");
8502
8514
  const { webidl: webidl$15 } = require_webidl();
8503
8515
  const { isomorphicEncode: isomorphicEncode$2, collectASequenceOfCodePoints, removeChars: removeChars$1 } = require_infra();
@@ -8684,7 +8696,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
8684
8696
  */
8685
8697
  function determineRequestsReferrer$1(request$1) {
8686
8698
  const policy = request$1.referrerPolicy;
8687
- assert$30(policy);
8699
+ assert$29(policy);
8688
8700
  let referrerSource = null;
8689
8701
  if (request$1.referrer === "client") {
8690
8702
  const globalOrigin$1 = getGlobalOrigin$1();
@@ -8737,7 +8749,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
8737
8749
  * @param {boolean} [originOnly=false]
8738
8750
  */
8739
8751
  function stripURLForReferrer(url$2, originOnly = false) {
8740
- assert$30(webidl$15.is.URL(url$2));
8752
+ assert$29(webidl$15.is.URL(url$2));
8741
8753
  url$2 = new URL(url$2);
8742
8754
  if (urlIsLocal$1(url$2)) return "no-referrer";
8743
8755
  url$2.username = "";
@@ -9029,7 +9041,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
9029
9041
  * @returns {boolean}
9030
9042
  */
9031
9043
  function urlIsLocal$1(url$2) {
9032
- assert$30("protocol" in url$2);
9044
+ assert$29("protocol" in url$2);
9033
9045
  const protocol = url$2.protocol;
9034
9046
  return protocol === "about:" || protocol === "blob:" || protocol === "data:";
9035
9047
  }
@@ -9045,7 +9057,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
9045
9057
  * @param {URL} url
9046
9058
  */
9047
9059
  function urlIsHttpHttpsScheme$2(url$2) {
9048
- assert$30("protocol" in url$2);
9060
+ assert$29("protocol" in url$2);
9049
9061
  const protocol = url$2.protocol;
9050
9062
  return protocol === "http:" || protocol === "https:";
9051
9063
  }
@@ -9178,7 +9190,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
9178
9190
  temporaryValue += collectAnHTTPQuotedString(input, position);
9179
9191
  if (position.position < input.length) continue;
9180
9192
  } else {
9181
- assert$30(input.charCodeAt(position.position) === 44);
9193
+ assert$29(input.charCodeAt(position.position) === 44);
9182
9194
  position.position++;
9183
9195
  }
9184
9196
  temporaryValue = removeChars$1(temporaryValue, true, true, (char) => char === 9 || char === 32);
@@ -9432,7 +9444,7 @@ var require_formdata_parser = /* @__PURE__ */ __commonJS$2({ "../../node_modules
9432
9444
  const { HTTP_TOKEN_CODEPOINTS } = require_data_url();
9433
9445
  const { makeEntry } = require_formdata();
9434
9446
  const { webidl: webidl$13 } = require_webidl();
9435
- const assert$29 = __require$1("node:assert");
9447
+ const assert$28 = __require$1("node:assert");
9436
9448
  const { isomorphicDecode } = require_infra();
9437
9449
  const dd = Buffer.from("--");
9438
9450
  const decoder = new TextDecoder();
@@ -9463,7 +9475,7 @@ var require_formdata_parser = /* @__PURE__ */ __commonJS$2({ "../../node_modules
9463
9475
  * @param {ReturnType<import('./data-url')['parseMIMEType']>} mimeType
9464
9476
  */
9465
9477
  function multipartFormDataParser$1(input, mimeType) {
9466
- assert$29(mimeType !== "failure" && mimeType.essence === "multipart/form-data");
9478
+ assert$28(mimeType !== "failure" && mimeType.essence === "multipart/form-data");
9467
9479
  const boundaryString = mimeType.parameters.get("boundary");
9468
9480
  if (boundaryString === void 0) throw parsingError("missing boundary in content-type header");
9469
9481
  const boundary = Buffer.from(`--${boundaryString}`, "utf8");
@@ -9496,8 +9508,8 @@ var require_formdata_parser = /* @__PURE__ */ __commonJS$2({ "../../node_modules
9496
9508
  if (!isAsciiString(contentType)) contentType = "";
9497
9509
  value = new File([body], filename, { type: contentType });
9498
9510
  } else value = decoderIgnoreBOM.decode(Buffer.from(body));
9499
- assert$29(webidl$13.is.USVString(name));
9500
- assert$29(typeof value === "string" && webidl$13.is.USVString(value) || webidl$13.is.File(value));
9511
+ assert$28(webidl$13.is.USVString(name));
9512
+ assert$28(typeof value === "string" && webidl$13.is.USVString(value) || webidl$13.is.File(value));
9501
9513
  entryList.push(makeEntry(name, value, filename));
9502
9514
  }
9503
9515
  }
@@ -9709,7 +9721,7 @@ var require_body = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undi
9709
9721
  const { ReadableStreamFrom: ReadableStreamFrom$1, readableStreamClose: readableStreamClose$1, fullyReadBody: fullyReadBody$1, extractMimeType: extractMimeType$1 } = require_util$4();
9710
9722
  const { FormData: FormData$2, setFormDataState } = require_formdata();
9711
9723
  const { webidl: webidl$12 } = require_webidl();
9712
- const assert$28 = __require$1("node:assert");
9724
+ const assert$27 = __require$1("node:assert");
9713
9725
  const { isErrored: isErrored$1, isDisturbed: isDisturbed$2 } = __require$1("node:stream");
9714
9726
  const { isUint8Array: isUint8Array$1 } = __require$1("node:util/types");
9715
9727
  const { serializeAMimeType: serializeAMimeType$2 } = require_data_url();
@@ -9747,7 +9759,7 @@ var require_body = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undi
9747
9759
  cancel() {},
9748
9760
  type: "bytes"
9749
9761
  });
9750
- assert$28(webidl$12.is.ReadableStream(stream$2));
9762
+ assert$27(webidl$12.is.ReadableStream(stream$2));
9751
9763
  let action = null;
9752
9764
  let source = null;
9753
9765
  let length = null;
@@ -9836,8 +9848,8 @@ Content-Type: ${value.type || "application/octet-stream"}\r\n\r\n`);
9836
9848
  */
9837
9849
  function safelyExtractBody$1(object$1, keepalive = false) {
9838
9850
  if (webidl$12.is.ReadableStream(object$1)) {
9839
- assert$28(!util$22.isDisturbed(object$1), "The body has already been consumed.");
9840
- assert$28(!object$1.locked, "The stream is locked.");
9851
+ assert$27(!util$22.isDisturbed(object$1), "The body has already been consumed.");
9852
+ assert$27(!object$1.locked, "The stream is locked.");
9841
9853
  }
9842
9854
  return extractBody$5(object$1, keepalive);
9843
9855
  }
@@ -9964,7 +9976,7 @@ Content-Type: ${value.type || "application/octet-stream"}\r\n\r\n`);
9964
9976
  //#endregion
9965
9977
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client-h1.js
9966
9978
  var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client-h1.js": ((exports, module) => {
9967
- const assert$27 = __require$1("node:assert");
9979
+ const assert$26 = __require$1("node:assert");
9968
9980
  const util$21 = require_util$5();
9969
9981
  const { channels: channels$5 } = require_diagnostics();
9970
9982
  const timers = require_timers();
@@ -9993,35 +10005,35 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
9993
10005
  return 0;
9994
10006
  },
9995
10007
  wasm_on_status: (p$1, at$1, len) => {
9996
- assert$27(currentParser.ptr === p$1);
10008
+ assert$26(currentParser.ptr === p$1);
9997
10009
  const start = at$1 - currentBufferPtr + currentBufferRef.byteOffset;
9998
10010
  return currentParser.onStatus(new FastBuffer$3(currentBufferRef.buffer, start, len));
9999
10011
  },
10000
10012
  wasm_on_message_begin: (p$1) => {
10001
- assert$27(currentParser.ptr === p$1);
10013
+ assert$26(currentParser.ptr === p$1);
10002
10014
  return currentParser.onMessageBegin();
10003
10015
  },
10004
10016
  wasm_on_header_field: (p$1, at$1, len) => {
10005
- assert$27(currentParser.ptr === p$1);
10017
+ assert$26(currentParser.ptr === p$1);
10006
10018
  const start = at$1 - currentBufferPtr + currentBufferRef.byteOffset;
10007
10019
  return currentParser.onHeaderField(new FastBuffer$3(currentBufferRef.buffer, start, len));
10008
10020
  },
10009
10021
  wasm_on_header_value: (p$1, at$1, len) => {
10010
- assert$27(currentParser.ptr === p$1);
10022
+ assert$26(currentParser.ptr === p$1);
10011
10023
  const start = at$1 - currentBufferPtr + currentBufferRef.byteOffset;
10012
10024
  return currentParser.onHeaderValue(new FastBuffer$3(currentBufferRef.buffer, start, len));
10013
10025
  },
10014
10026
  wasm_on_headers_complete: (p$1, statusCode, upgrade$1, shouldKeepAlive) => {
10015
- assert$27(currentParser.ptr === p$1);
10027
+ assert$26(currentParser.ptr === p$1);
10016
10028
  return currentParser.onHeadersComplete(statusCode, upgrade$1 === 1, shouldKeepAlive === 1);
10017
10029
  },
10018
10030
  wasm_on_body: (p$1, at$1, len) => {
10019
- assert$27(currentParser.ptr === p$1);
10031
+ assert$26(currentParser.ptr === p$1);
10020
10032
  const start = at$1 - currentBufferPtr + currentBufferRef.byteOffset;
10021
10033
  return currentParser.onBody(new FastBuffer$3(currentBufferRef.buffer, start, len));
10022
10034
  },
10023
10035
  wasm_on_message_complete: (p$1) => {
10024
- assert$27(currentParser.ptr === p$1);
10036
+ assert$26(currentParser.ptr === p$1);
10025
10037
  return currentParser.onMessageComplete();
10026
10038
  }
10027
10039
  } });
@@ -10094,10 +10106,10 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10094
10106
  }
10095
10107
  resume() {
10096
10108
  if (this.socket.destroyed || !this.paused) return;
10097
- assert$27(this.ptr != null);
10098
- assert$27(currentParser === null);
10109
+ assert$26(this.ptr != null);
10110
+ assert$26(currentParser === null);
10099
10111
  this.llhttp.llhttp_resume(this.ptr);
10100
- assert$27(this.timeoutType === TIMEOUT_BODY);
10112
+ assert$26(this.timeoutType === TIMEOUT_BODY);
10101
10113
  if (this.timeout) {
10102
10114
  if (this.timeout.refresh) this.timeout.refresh();
10103
10115
  }
@@ -10116,9 +10128,9 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10116
10128
  * @param {Buffer} chunk
10117
10129
  */
10118
10130
  execute(chunk) {
10119
- assert$27(currentParser === null);
10120
- assert$27(this.ptr != null);
10121
- assert$27(!this.paused);
10131
+ assert$26(currentParser === null);
10132
+ assert$26(this.ptr != null);
10133
+ assert$26(!this.paused);
10122
10134
  const { socket, llhttp } = this;
10123
10135
  if (chunk.length > currentBufferSize) {
10124
10136
  if (currentBufferPtr) llhttp.free(currentBufferPtr);
@@ -10149,9 +10161,9 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10149
10161
  }
10150
10162
  }
10151
10163
  finish() {
10152
- assert$27(currentParser === null);
10153
- assert$27(this.ptr != null);
10154
- assert$27(!this.paused);
10164
+ assert$26(currentParser === null);
10165
+ assert$26(this.ptr != null);
10166
+ assert$26(!this.paused);
10155
10167
  const { llhttp } = this;
10156
10168
  let ret;
10157
10169
  try {
@@ -10179,8 +10191,8 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10179
10191
  return new HTTPParserError(message, constants$3.ERROR[ret], data);
10180
10192
  }
10181
10193
  destroy() {
10182
- assert$27(currentParser === null);
10183
- assert$27(this.ptr != null);
10194
+ assert$26(currentParser === null);
10195
+ assert$26(this.ptr != null);
10184
10196
  this.llhttp.llhttp_free(this.ptr);
10185
10197
  this.ptr = null;
10186
10198
  this.timeout && timers.clearTimeout(this.timeout);
@@ -10254,14 +10266,14 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10254
10266
  */
10255
10267
  onUpgrade(head) {
10256
10268
  const { upgrade: upgrade$1, client, socket, headers, statusCode } = this;
10257
- assert$27(upgrade$1);
10258
- assert$27(client[kSocket$1] === socket);
10259
- assert$27(!socket.destroyed);
10260
- assert$27(!this.paused);
10261
- assert$27((headers.length & 1) === 0);
10269
+ assert$26(upgrade$1);
10270
+ assert$26(client[kSocket$1] === socket);
10271
+ assert$26(!socket.destroyed);
10272
+ assert$26(!this.paused);
10273
+ assert$26((headers.length & 1) === 0);
10262
10274
  const request$1 = client[kQueue$3][client[kRunningIdx$2]];
10263
- assert$27(request$1);
10264
- assert$27(request$1.upgrade || request$1.method === "CONNECT");
10275
+ assert$26(request$1);
10276
+ assert$26(request$1.upgrade || request$1.method === "CONNECT");
10265
10277
  this.statusCode = 0;
10266
10278
  this.statusText = "";
10267
10279
  this.shouldKeepAlive = false;
@@ -10299,8 +10311,8 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10299
10311
  }
10300
10312
  const request$1 = client[kQueue$3][client[kRunningIdx$2]];
10301
10313
  if (!request$1) return -1;
10302
- assert$27(!this.upgrade);
10303
- assert$27(this.statusCode < 200);
10314
+ assert$26(!this.upgrade);
10315
+ assert$26(this.statusCode < 200);
10304
10316
  if (statusCode === 100) {
10305
10317
  util$21.destroy(socket, new SocketError$3("bad response", util$21.getSocketInfo(socket)));
10306
10318
  return -1;
@@ -10309,7 +10321,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10309
10321
  util$21.destroy(socket, new SocketError$3("bad upgrade", util$21.getSocketInfo(socket)));
10310
10322
  return -1;
10311
10323
  }
10312
- assert$27(this.timeoutType === TIMEOUT_HEADERS);
10324
+ assert$26(this.timeoutType === TIMEOUT_HEADERS);
10313
10325
  this.statusCode = statusCode;
10314
10326
  this.shouldKeepAlive = shouldKeepAlive || request$1.method === "HEAD" && !socket[kReset$1] && this.connection.toLowerCase() === "keep-alive";
10315
10327
  if (this.statusCode >= 200) {
@@ -10319,16 +10331,16 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10319
10331
  if (this.timeout.refresh) this.timeout.refresh();
10320
10332
  }
10321
10333
  if (request$1.method === "CONNECT") {
10322
- assert$27(client[kRunning$4] === 1);
10334
+ assert$26(client[kRunning$4] === 1);
10323
10335
  this.upgrade = true;
10324
10336
  return 2;
10325
10337
  }
10326
10338
  if (upgrade$1) {
10327
- assert$27(client[kRunning$4] === 1);
10339
+ assert$26(client[kRunning$4] === 1);
10328
10340
  this.upgrade = true;
10329
10341
  return 2;
10330
10342
  }
10331
- assert$27((this.headers.length & 1) === 0);
10343
+ assert$26((this.headers.length & 1) === 0);
10332
10344
  this.headers = [];
10333
10345
  this.headersSize = 0;
10334
10346
  if (this.shouldKeepAlive && client[kPipelining$1]) {
@@ -10357,12 +10369,12 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10357
10369
  const { client, socket, statusCode, maxResponseSize } = this;
10358
10370
  if (socket.destroyed) return -1;
10359
10371
  const request$1 = client[kQueue$3][client[kRunningIdx$2]];
10360
- assert$27(request$1);
10361
- assert$27(this.timeoutType === TIMEOUT_BODY);
10372
+ assert$26(request$1);
10373
+ assert$26(this.timeoutType === TIMEOUT_BODY);
10362
10374
  if (this.timeout) {
10363
10375
  if (this.timeout.refresh) this.timeout.refresh();
10364
10376
  }
10365
- assert$27(statusCode >= 200);
10377
+ assert$26(statusCode >= 200);
10366
10378
  if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {
10367
10379
  util$21.destroy(socket, new ResponseExceededMaxSizeError());
10368
10380
  return -1;
@@ -10378,10 +10390,10 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10378
10390
  const { client, socket, statusCode, upgrade: upgrade$1, headers, contentLength, bytesRead, shouldKeepAlive } = this;
10379
10391
  if (socket.destroyed && (!statusCode || shouldKeepAlive)) return -1;
10380
10392
  if (upgrade$1) return 0;
10381
- assert$27(statusCode >= 100);
10382
- assert$27((this.headers.length & 1) === 0);
10393
+ assert$26(statusCode >= 100);
10394
+ assert$26((this.headers.length & 1) === 0);
10383
10395
  const request$1 = client[kQueue$3][client[kRunningIdx$2]];
10384
- assert$27(request$1);
10396
+ assert$26(request$1);
10385
10397
  this.statusCode = 0;
10386
10398
  this.statusText = "";
10387
10399
  this.bytesRead = 0;
@@ -10399,7 +10411,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10399
10411
  client[kQueue$3][client[kRunningIdx$2]++] = null;
10400
10412
  socket[kSocketUsed] = client[kPending$3] === 0;
10401
10413
  if (socket[kWriting]) {
10402
- assert$27(client[kRunning$4] === 0);
10414
+ assert$26(client[kRunning$4] === 0);
10403
10415
  util$21.destroy(socket, new InformationalError$3("reset"));
10404
10416
  return constants$3.ERROR.PAUSED;
10405
10417
  } else if (!shouldKeepAlive) {
@@ -10419,13 +10431,13 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10419
10431
  const { socket, timeoutType, client, paused } = parser;
10420
10432
  if (timeoutType === TIMEOUT_HEADERS) {
10421
10433
  if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning$4] > 1) {
10422
- assert$27(!paused, "cannot be paused while waiting for headers");
10434
+ assert$26(!paused, "cannot be paused while waiting for headers");
10423
10435
  util$21.destroy(socket, new HeadersTimeoutError());
10424
10436
  }
10425
10437
  } else if (timeoutType === TIMEOUT_BODY) {
10426
10438
  if (!paused) util$21.destroy(socket, new BodyTimeoutError());
10427
10439
  } else if (timeoutType === TIMEOUT_KEEP_ALIVE) {
10428
- assert$27(client[kRunning$4] === 0 && client[kKeepAliveTimeoutValue$1]);
10440
+ assert$26(client[kRunning$4] === 0 && client[kKeepAliveTimeoutValue$1]);
10429
10441
  util$21.destroy(socket, new InformationalError$3("socket idle timeout"));
10430
10442
  }
10431
10443
  }
@@ -10484,7 +10496,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10484
10496
  };
10485
10497
  }
10486
10498
  function onHttpSocketError(err) {
10487
- assert$27(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
10499
+ assert$26(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
10488
10500
  const parser = this[kParser];
10489
10501
  if (err.code === "ECONNRESET" && parser.statusCode && !parser.shouldKeepAlive) {
10490
10502
  const parserErr = parser.finish();
@@ -10522,7 +10534,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10522
10534
  client[kSocket$1] = null;
10523
10535
  client[kHTTPContext$2] = null;
10524
10536
  if (client.destroyed) {
10525
- assert$27(client[kPending$3] === 0);
10537
+ assert$26(client[kPending$3] === 0);
10526
10538
  const requests = client[kQueue$3].splice(client[kRunningIdx$2]);
10527
10539
  for (let i = 0; i < requests.length; i++) {
10528
10540
  const request$1 = requests[i];
@@ -10534,7 +10546,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10534
10546
  util$21.errorRequest(client, request$1, err);
10535
10547
  }
10536
10548
  client[kPendingIdx$2] = client[kRunningIdx$2];
10537
- assert$27(client[kRunning$4] === 0);
10549
+ assert$26(client[kRunning$4] === 0);
10538
10550
  client.emit("disconnect", client[kUrl$7], [client], err);
10539
10551
  client[kResume$3]();
10540
10552
  }
@@ -10688,7 +10700,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10688
10700
  else writeBlob$1(abort$1, body, client, request$1, socket, contentLength, header, expectsPayload);
10689
10701
  else if (util$21.isStream(body)) writeStream$1(abort$1, body, client, request$1, socket, contentLength, header, expectsPayload);
10690
10702
  else if (util$21.isIterable(body)) writeIterable$1(abort$1, body, client, request$1, socket, contentLength, header, expectsPayload);
10691
- else assert$27(false);
10703
+ else assert$26(false);
10692
10704
  return true;
10693
10705
  }
10694
10706
  /**
@@ -10702,7 +10714,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10702
10714
  * @param {boolean} expectsPayload
10703
10715
  */
10704
10716
  function writeStream$1(abort$1, body, client, request$1, socket, contentLength, header, expectsPayload) {
10705
- assert$27(contentLength !== 0 || client[kRunning$4] === 0, "stream body cannot be pipelined");
10717
+ assert$26(contentLength !== 0 || client[kRunning$4] === 0, "stream body cannot be pipelined");
10706
10718
  let finished$2 = false;
10707
10719
  const writer = new AsyncWriter({
10708
10720
  abort: abort$1,
@@ -10751,7 +10763,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10751
10763
  const onFinished = function(err) {
10752
10764
  if (finished$2) return;
10753
10765
  finished$2 = true;
10754
- assert$27(socket.destroyed || socket[kWriting] && client[kRunning$4] <= 1);
10766
+ assert$26(socket.destroyed || socket[kWriting] && client[kRunning$4] <= 1);
10755
10767
  socket.off("drain", onDrain).off("error", onFinished);
10756
10768
  body.removeListener("data", onData).removeListener("end", onFinished).removeListener("close", onClose);
10757
10769
  if (!err) try {
@@ -10791,11 +10803,11 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10791
10803
  try {
10792
10804
  if (!body) if (contentLength === 0) socket.write(`${header}content-length: 0\r\n\r\n`, "latin1");
10793
10805
  else {
10794
- assert$27(contentLength === null, "no body must not have content length");
10806
+ assert$26(contentLength === null, "no body must not have content length");
10795
10807
  socket.write(`${header}\r\n`, "latin1");
10796
10808
  }
10797
10809
  else if (util$21.isBuffer(body)) {
10798
- assert$27(contentLength === body.byteLength, "buffer body must have content length");
10810
+ assert$26(contentLength === body.byteLength, "buffer body must have content length");
10799
10811
  socket.cork();
10800
10812
  socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, "latin1");
10801
10813
  socket.write(body);
@@ -10821,7 +10833,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10821
10833
  * @returns {Promise<void>}
10822
10834
  */
10823
10835
  async function writeBlob$1(abort$1, body, client, request$1, socket, contentLength, header, expectsPayload) {
10824
- assert$27(contentLength === body.size, "blob body must have content length");
10836
+ assert$26(contentLength === body.size, "blob body must have content length");
10825
10837
  try {
10826
10838
  if (contentLength != null && contentLength !== body.size) throw new RequestContentLengthMismatchError$1();
10827
10839
  const buffer$1 = Buffer.from(await body.arrayBuffer());
@@ -10849,7 +10861,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10849
10861
  * @returns {Promise<void>}
10850
10862
  */
10851
10863
  async function writeIterable$1(abort$1, body, client, request$1, socket, contentLength, header, expectsPayload) {
10852
- assert$27(contentLength !== 0 || client[kRunning$4] === 0, "iterator body cannot be pipelined");
10864
+ assert$26(contentLength !== 0 || client[kRunning$4] === 0, "iterator body cannot be pipelined");
10853
10865
  let callback = null;
10854
10866
  function onDrain() {
10855
10867
  if (callback) {
@@ -10859,7 +10871,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10859
10871
  }
10860
10872
  }
10861
10873
  const waitForDrain = () => new Promise((resolve$3, reject) => {
10862
- assert$27(callback === null);
10874
+ assert$26(callback === null);
10863
10875
  if (socket[kError$4]) reject(socket[kError$4]);
10864
10876
  else callback = resolve$3;
10865
10877
  });
@@ -10967,7 +10979,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10967
10979
  const { socket, client, abort: abort$1 } = this;
10968
10980
  socket[kWriting] = false;
10969
10981
  if (err) {
10970
- assert$27(client[kRunning$4] <= 1, "pipeline should only contain this request");
10982
+ assert$26(client[kRunning$4] <= 1, "pipeline should only contain this request");
10971
10983
  abort$1(err);
10972
10984
  }
10973
10985
  }
@@ -10978,7 +10990,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
10978
10990
  //#endregion
10979
10991
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client-h2.js
10980
10992
  var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client-h2.js": ((exports, module) => {
10981
- const assert$26 = __require$1("node:assert");
10993
+ const assert$25 = __require$1("node:assert");
10982
10994
  const { pipeline: pipeline$4 } = __require$1("node:stream");
10983
10995
  const util$20 = require_util$5();
10984
10996
  const { RequestContentLengthMismatchError, RequestAbortedError: RequestAbortedError$7, SocketError: SocketError$2, InformationalError: InformationalError$2, InvalidArgumentError: InvalidArgumentError$30 } = require_errors();
@@ -11111,7 +11123,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11111
11123
  }
11112
11124
  }
11113
11125
  function onHttp2SessionError(err) {
11114
- assert$26(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
11126
+ assert$25(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
11115
11127
  this[kSocket][kError$3] = err;
11116
11128
  this[kClient$2][kOnError$1](err);
11117
11129
  }
@@ -11149,7 +11161,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11149
11161
  util$20.errorRequest(client, request$1, err);
11150
11162
  client[kPendingIdx$1] = client[kRunningIdx$1];
11151
11163
  }
11152
- assert$26(client[kRunning$3] === 0);
11164
+ assert$25(client[kRunning$3] === 0);
11153
11165
  client.emit("disconnect", client[kUrl$6], [client], err);
11154
11166
  client.emit("connectionError", client[kUrl$6], [client], err);
11155
11167
  client[kResume$2]();
@@ -11165,7 +11177,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11165
11177
  state.ping.interval = null;
11166
11178
  }
11167
11179
  if (client.destroyed) {
11168
- assert$26(client[kPending$2] === 0);
11180
+ assert$25(client[kPending$2] === 0);
11169
11181
  const requests = client[kQueue$2].splice(client[kRunningIdx$1]);
11170
11182
  for (let i = 0; i < requests.length; i++) {
11171
11183
  const request$1 = requests[i];
@@ -11180,12 +11192,12 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11180
11192
  client[kHTTPContext$1] = null;
11181
11193
  if (this[kHTTP2Session] !== null) this[kHTTP2Session].destroy(err);
11182
11194
  client[kPendingIdx$1] = client[kRunningIdx$1];
11183
- assert$26(client[kRunning$3] === 0);
11195
+ assert$25(client[kRunning$3] === 0);
11184
11196
  client.emit("disconnect", client[kUrl$6], [client], err);
11185
11197
  client[kResume$2]();
11186
11198
  }
11187
11199
  function onHttp2SocketError(err) {
11188
- assert$26(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
11200
+ assert$25(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
11189
11201
  this[kError$3] = err;
11190
11202
  this[kClient$2][kOnError$1](err);
11191
11203
  }
@@ -11318,7 +11330,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11318
11330
  process.emitWarning(new RequestContentLengthMismatchError());
11319
11331
  }
11320
11332
  if (contentLength != null) {
11321
- assert$26(body || contentLength === 0, "no body must not have content length");
11333
+ assert$25(body || contentLength === 0, "no body must not have content length");
11322
11334
  headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`;
11323
11335
  }
11324
11336
  session.ref();
@@ -11414,13 +11426,13 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11414
11426
  else writeBlob(abort$1, stream$2, body, client, request$1, client[kSocket], contentLength, expectsPayload);
11415
11427
  else if (util$20.isStream(body)) writeStream(abort$1, client[kSocket], expectsPayload, stream$2, body, client, request$1, contentLength);
11416
11428
  else if (util$20.isIterable(body)) writeIterable(abort$1, stream$2, body, client, request$1, client[kSocket], contentLength, expectsPayload);
11417
- else assert$26(false);
11429
+ else assert$25(false);
11418
11430
  }
11419
11431
  }
11420
11432
  function writeBuffer(abort$1, h2stream, body, client, request$1, socket, contentLength, expectsPayload) {
11421
11433
  try {
11422
11434
  if (body != null && util$20.isBuffer(body)) {
11423
- assert$26(contentLength === body.byteLength, "buffer body must have content length");
11435
+ assert$25(contentLength === body.byteLength, "buffer body must have content length");
11424
11436
  h2stream.cork();
11425
11437
  h2stream.write(body);
11426
11438
  h2stream.uncork();
@@ -11435,7 +11447,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11435
11447
  }
11436
11448
  }
11437
11449
  function writeStream(abort$1, socket, expectsPayload, h2stream, body, client, request$1, contentLength) {
11438
- assert$26(contentLength !== 0 || client[kRunning$3] === 0, "stream body cannot be pipelined");
11450
+ assert$25(contentLength !== 0 || client[kRunning$3] === 0, "stream body cannot be pipelined");
11439
11451
  const pipe$1 = pipeline$4(body, h2stream, (err) => {
11440
11452
  if (err) {
11441
11453
  util$20.destroy(pipe$1, err);
@@ -11453,7 +11465,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11453
11465
  }
11454
11466
  }
11455
11467
  async function writeBlob(abort$1, h2stream, body, client, request$1, socket, contentLength, expectsPayload) {
11456
- assert$26(contentLength === body.size, "blob body must have content length");
11468
+ assert$25(contentLength === body.size, "blob body must have content length");
11457
11469
  try {
11458
11470
  if (contentLength != null && contentLength !== body.size) throw new RequestContentLengthMismatchError();
11459
11471
  const buffer$1 = Buffer.from(await body.arrayBuffer());
@@ -11470,7 +11482,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11470
11482
  }
11471
11483
  }
11472
11484
  async function writeIterable(abort$1, h2stream, body, client, request$1, socket, contentLength, expectsPayload) {
11473
- assert$26(contentLength !== 0 || client[kRunning$3] === 0, "iterator body cannot be pipelined");
11485
+ assert$25(contentLength !== 0 || client[kRunning$3] === 0, "iterator body cannot be pipelined");
11474
11486
  let callback = null;
11475
11487
  function onDrain() {
11476
11488
  if (callback) {
@@ -11480,7 +11492,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11480
11492
  }
11481
11493
  }
11482
11494
  const waitForDrain = () => new Promise((resolve$3, reject) => {
11483
- assert$26(callback === null);
11495
+ assert$25(callback === null);
11484
11496
  if (socket[kError$3]) reject(socket[kError$3]);
11485
11497
  else callback = resolve$3;
11486
11498
  });
@@ -11508,7 +11520,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
11508
11520
  //#endregion
11509
11521
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client.js
11510
11522
  var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client.js": ((exports, module) => {
11511
- const assert$25 = __require$1("node:assert");
11523
+ const assert$24 = __require$1("node:assert");
11512
11524
  const net$3 = __require$1("node:net");
11513
11525
  const http$3 = __require$1("node:http");
11514
11526
  const util$19 = require_util$5();
@@ -11686,13 +11698,13 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
11686
11698
  };
11687
11699
  function onError$1(client, err) {
11688
11700
  if (client[kRunning$2] === 0 && err.code !== "UND_ERR_INFO" && err.code !== "UND_ERR_SOCKET") {
11689
- assert$25(client[kPendingIdx] === client[kRunningIdx]);
11701
+ assert$24(client[kPendingIdx] === client[kRunningIdx]);
11690
11702
  const requests = client[kQueue$1].splice(client[kRunningIdx]);
11691
11703
  for (let i = 0; i < requests.length; i++) {
11692
11704
  const request$1 = requests[i];
11693
11705
  util$19.errorRequest(client, request$1, err);
11694
11706
  }
11695
- assert$25(client[kSize$2] === 0);
11707
+ assert$24(client[kSize$2] === 0);
11696
11708
  }
11697
11709
  }
11698
11710
  /**
@@ -11700,14 +11712,14 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
11700
11712
  * @returns {void}
11701
11713
  */
11702
11714
  function connect$1(client) {
11703
- assert$25(!client[kConnecting]);
11704
- assert$25(!client[kHTTPContext]);
11715
+ assert$24(!client[kConnecting]);
11716
+ assert$24(!client[kHTTPContext]);
11705
11717
  let { host, hostname: hostname$1, protocol, port } = client[kUrl$5];
11706
11718
  if (hostname$1[0] === "[") {
11707
11719
  const idx = hostname$1.indexOf("]");
11708
- assert$25(idx !== -1);
11720
+ assert$24(idx !== -1);
11709
11721
  const ip = hostname$1.substring(1, idx);
11710
- assert$25(net$3.isIPv6(ip));
11722
+ assert$24(net$3.isIPv6(ip));
11711
11723
  hostname$1 = ip;
11712
11724
  }
11713
11725
  client[kConnecting] = true;
@@ -11747,7 +11759,7 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
11747
11759
  client[kResume$1]();
11748
11760
  return;
11749
11761
  }
11750
- assert$25(socket);
11762
+ assert$24(socket);
11751
11763
  try {
11752
11764
  client[kHTTPContext] = socket.alpnProtocol === "h2" ? connectH2(client, socket) : connectH1(client, socket);
11753
11765
  } catch (err$1) {
@@ -11809,7 +11821,7 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
11809
11821
  error: err
11810
11822
  });
11811
11823
  if (err.code === "ERR_TLS_CERT_ALTNAME_INVALID") {
11812
- assert$25(client[kRunning$2] === 0);
11824
+ assert$24(client[kRunning$2] === 0);
11813
11825
  while (client[kPending$1] > 0 && client[kQueue$1][client[kPendingIdx]].servername === client[kServerName]) {
11814
11826
  const request$1 = client[kQueue$1][client[kPendingIdx]++];
11815
11827
  util$19.errorRequest(client, request$1, err);
@@ -11835,7 +11847,7 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
11835
11847
  function _resume(client, sync$1) {
11836
11848
  while (true) {
11837
11849
  if (client.destroyed) {
11838
- assert$25(client[kPending$1] === 0);
11850
+ assert$24(client[kPending$1] === 0);
11839
11851
  return;
11840
11852
  }
11841
11853
  if (client[kClosedResolve$1] && !client[kSize$2]) {
@@ -13437,7 +13449,7 @@ var require_env_http_proxy_agent = /* @__PURE__ */ __commonJS$2({ "../../node_mo
13437
13449
  //#endregion
13438
13450
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/retry-handler.js
13439
13451
  var require_retry_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/retry-handler.js": ((exports, module) => {
13440
- const assert$24 = __require$1("node:assert");
13452
+ const assert$23 = __require$1("node:assert");
13441
13453
  const { kRetryHandlerDefaultRetry } = require_symbols();
13442
13454
  const { RequestRetryError } = require_errors();
13443
13455
  const WrapHandler$2 = require_wrap_handler();
@@ -13604,8 +13616,8 @@ var require_retry_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.
13604
13616
  });
13605
13617
  validatePartialResponseContentLength(headers, contentRange, statusCode, this.retryCount);
13606
13618
  const { start, size, end = size ? size - 1 : null } = contentRange;
13607
- assert$24(this.start === start, "content-range mismatch");
13608
- assert$24(this.end == null || this.end === end, "content-range mismatch");
13619
+ assert$23(this.start === start, "content-range mismatch");
13620
+ assert$23(this.end == null || this.end === end, "content-range mismatch");
13609
13621
  return;
13610
13622
  }
13611
13623
  if (this.end == null) {
@@ -13618,8 +13630,8 @@ var require_retry_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.
13618
13630
  }
13619
13631
  validatePartialResponseContentLength(headers, range, statusCode, this.retryCount);
13620
13632
  const { start, size, end = size ? size - 1 : null } = range;
13621
- assert$24(start != null && Number.isFinite(start), "content-range mismatch");
13622
- assert$24(end != null && Number.isFinite(end), "invalid content-length");
13633
+ assert$23(start != null && Number.isFinite(start), "content-range mismatch");
13634
+ assert$23(end != null && Number.isFinite(end), "invalid content-length");
13623
13635
  this.start = start;
13624
13636
  this.end = end;
13625
13637
  }
@@ -13627,8 +13639,8 @@ var require_retry_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.
13627
13639
  const contentLength = headers["content-length"];
13628
13640
  this.end = contentLength != null ? Number(contentLength) - 1 : null;
13629
13641
  }
13630
- assert$24(Number.isFinite(this.start));
13631
- assert$24(this.end == null || Number.isFinite(this.end), "invalid content-length");
13642
+ assert$23(Number.isFinite(this.start));
13643
+ assert$23(this.end == null || Number.isFinite(this.end), "invalid content-length");
13632
13644
  this.resume = true;
13633
13645
  this.etag = headers.etag != null ? headers.etag : null;
13634
13646
  if (this.etag != null && this.etag[0] === "W" && this.etag[1] === "/") this.etag = null;
@@ -13760,7 +13772,7 @@ var require_h2c_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
13760
13772
  //#endregion
13761
13773
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/readable.js
13762
13774
  var require_readable = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/readable.js": ((exports, module) => {
13763
- const assert$23 = __require$1("node:assert");
13775
+ const assert$22 = __require$1("node:assert");
13764
13776
  const { Readable: Readable$5 } = __require$1("node:stream");
13765
13777
  const { RequestAbortedError: RequestAbortedError$5, NotSupportedError, InvalidArgumentError: InvalidArgumentError$19, AbortError: AbortError$1 } = require_errors();
13766
13778
  const util$14 = require_util$5();
@@ -13956,7 +13968,7 @@ var require_readable = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
13956
13968
  this[kBody$1] = ReadableStreamFrom(this);
13957
13969
  if (this[kConsume]) {
13958
13970
  this[kBody$1].getReader();
13959
- assert$23(this[kBody$1].locked);
13971
+ assert$22(this[kBody$1].locked);
13960
13972
  }
13961
13973
  }
13962
13974
  return this[kBody$1];
@@ -14046,7 +14058,7 @@ var require_readable = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
14046
14058
  * @returns {Promise<ConsumeReturnType<T>>}
14047
14059
  */
14048
14060
  function consume(stream$2, type) {
14049
- assert$23(!stream$2[kConsume]);
14061
+ assert$22(!stream$2[kConsume]);
14050
14062
  return new Promise((resolve$3, reject) => {
14051
14063
  if (isUnusable(stream$2)) {
14052
14064
  const rState = stream$2._readableState;
@@ -14174,7 +14186,7 @@ var require_readable = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
14174
14186
  //#endregion
14175
14187
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-request.js
14176
14188
  var require_api_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-request.js": ((exports, module) => {
14177
- const assert$22 = __require$1("node:assert");
14189
+ const assert$21 = __require$1("node:assert");
14178
14190
  const { AsyncResource: AsyncResource$4 } = __require$1("node:async_hooks");
14179
14191
  const { Readable: Readable$4 } = require_readable();
14180
14192
  const { InvalidArgumentError: InvalidArgumentError$18, RequestAbortedError: RequestAbortedError$4 } = require_errors();
@@ -14220,7 +14232,7 @@ var require_api_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
14220
14232
  abort$1(this.reason);
14221
14233
  return;
14222
14234
  }
14223
- assert$22(this.callback);
14235
+ assert$21(this.callback);
14224
14236
  this.abort = abort$1;
14225
14237
  this.context = context;
14226
14238
  }
@@ -14364,7 +14376,7 @@ var require_abort_signal = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.p
14364
14376
  //#endregion
14365
14377
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-stream.js
14366
14378
  var require_api_stream = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-stream.js": ((exports, module) => {
14367
- const assert$21 = __require$1("node:assert");
14379
+ const assert$20 = __require$1("node:assert");
14368
14380
  const { finished: finished$1 } = __require$1("node:stream");
14369
14381
  const { AsyncResource: AsyncResource$3 } = __require$1("node:async_hooks");
14370
14382
  const { InvalidArgumentError: InvalidArgumentError$17, InvalidReturnValueError: InvalidReturnValueError$1 } = require_errors();
@@ -14406,7 +14418,7 @@ var require_api_stream = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
14406
14418
  abort$1(this.reason);
14407
14419
  return;
14408
14420
  }
14409
- assert$21(this.callback);
14421
+ assert$20(this.callback);
14410
14422
  this.abort = abort$1;
14411
14423
  this.context = context;
14412
14424
  }
@@ -14496,7 +14508,7 @@ var require_api_stream = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
14496
14508
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-pipeline.js
14497
14509
  var require_api_pipeline = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-pipeline.js": ((exports, module) => {
14498
14510
  const { Readable: Readable$3, Duplex: Duplex$4, PassThrough } = __require$1("node:stream");
14499
- const assert$20 = __require$1("node:assert");
14511
+ const assert$19 = __require$1("node:assert");
14500
14512
  const { AsyncResource: AsyncResource$2 } = __require$1("node:async_hooks");
14501
14513
  const { InvalidArgumentError: InvalidArgumentError$16, InvalidReturnValueError, RequestAbortedError: RequestAbortedError$2 } = require_errors();
14502
14514
  const util$11 = require_util$5();
@@ -14584,7 +14596,7 @@ var require_api_pipeline = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.p
14584
14596
  abort$1(this.reason);
14585
14597
  return;
14586
14598
  }
14587
- assert$20(!res, "pipeline cannot be retried");
14599
+ assert$19(!res, "pipeline cannot be retried");
14588
14600
  this.abort = abort$1;
14589
14601
  this.context = context;
14590
14602
  }
@@ -14666,7 +14678,7 @@ var require_api_pipeline = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.p
14666
14678
  var require_api_upgrade = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-upgrade.js": ((exports, module) => {
14667
14679
  const { InvalidArgumentError: InvalidArgumentError$15, SocketError: SocketError$1 } = require_errors();
14668
14680
  const { AsyncResource: AsyncResource$1 } = __require$1("node:async_hooks");
14669
- const assert$19 = __require$1("node:assert");
14681
+ const assert$18 = __require$1("node:assert");
14670
14682
  const util$10 = require_util$5();
14671
14683
  const { kHTTP2Stream } = require_symbols();
14672
14684
  const { addSignal: addSignal$1, removeSignal: removeSignal$1 } = require_abort_signal();
@@ -14689,7 +14701,7 @@ var require_api_upgrade = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
14689
14701
  abort$1(this.reason);
14690
14702
  return;
14691
14703
  }
14692
- assert$19(this.callback);
14704
+ assert$18(this.callback);
14693
14705
  this.abort = abort$1;
14694
14706
  this.context = null;
14695
14707
  }
@@ -14697,7 +14709,7 @@ var require_api_upgrade = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
14697
14709
  throw new SocketError$1("bad upgrade", null);
14698
14710
  }
14699
14711
  onUpgrade(statusCode, rawHeaders, socket) {
14700
- assert$19(socket[kHTTP2Stream] === true ? statusCode === 200 : statusCode === 101);
14712
+ assert$18(socket[kHTTP2Stream] === true ? statusCode === 200 : statusCode === 101);
14701
14713
  const { callback, opaque, context } = this;
14702
14714
  removeSignal$1(this);
14703
14715
  this.callback = null;
@@ -14746,7 +14758,7 @@ var require_api_upgrade = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
14746
14758
  //#endregion
14747
14759
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-connect.js
14748
14760
  var require_api_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-connect.js": ((exports, module) => {
14749
- const assert$18 = __require$1("node:assert");
14761
+ const assert$17 = __require$1("node:assert");
14750
14762
  const { AsyncResource } = __require$1("node:async_hooks");
14751
14763
  const { InvalidArgumentError: InvalidArgumentError$14, SocketError } = require_errors();
14752
14764
  const util$9 = require_util$5();
@@ -14769,7 +14781,7 @@ var require_api_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
14769
14781
  abort$1(this.reason);
14770
14782
  return;
14771
14783
  }
14772
- assert$18(this.callback);
14784
+ assert$17(this.callback);
14773
14785
  this.abort = abort$1;
14774
14786
  this.context = context;
14775
14787
  }
@@ -16606,7 +16618,7 @@ var require_global = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
16606
16618
  //#endregion
16607
16619
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/decorator-handler.js
16608
16620
  var require_decorator_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/decorator-handler.js": ((exports, module) => {
16609
- const assert$17 = __require$1("node:assert");
16621
+ const assert$16 = __require$1("node:assert");
16610
16622
  const WrapHandler = require_wrap_handler();
16611
16623
  /**
16612
16624
  * @deprecated
@@ -16624,25 +16636,25 @@ var require_decorator_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modul
16624
16636
  this.#handler.onRequestStart?.(...args);
16625
16637
  }
16626
16638
  onRequestUpgrade(...args) {
16627
- assert$17(!this.#onCompleteCalled);
16628
- assert$17(!this.#onErrorCalled);
16639
+ assert$16(!this.#onCompleteCalled);
16640
+ assert$16(!this.#onErrorCalled);
16629
16641
  return this.#handler.onRequestUpgrade?.(...args);
16630
16642
  }
16631
16643
  onResponseStart(...args) {
16632
- assert$17(!this.#onCompleteCalled);
16633
- assert$17(!this.#onErrorCalled);
16634
- assert$17(!this.#onResponseStartCalled);
16644
+ assert$16(!this.#onCompleteCalled);
16645
+ assert$16(!this.#onErrorCalled);
16646
+ assert$16(!this.#onResponseStartCalled);
16635
16647
  this.#onResponseStartCalled = true;
16636
16648
  return this.#handler.onResponseStart?.(...args);
16637
16649
  }
16638
16650
  onResponseData(...args) {
16639
- assert$17(!this.#onCompleteCalled);
16640
- assert$17(!this.#onErrorCalled);
16651
+ assert$16(!this.#onCompleteCalled);
16652
+ assert$16(!this.#onErrorCalled);
16641
16653
  return this.#handler.onResponseData?.(...args);
16642
16654
  }
16643
16655
  onResponseEnd(...args) {
16644
- assert$17(!this.#onCompleteCalled);
16645
- assert$17(!this.#onErrorCalled);
16656
+ assert$16(!this.#onCompleteCalled);
16657
+ assert$16(!this.#onErrorCalled);
16646
16658
  this.#onCompleteCalled = true;
16647
16659
  return this.#handler.onResponseEnd?.(...args);
16648
16660
  }
@@ -16662,7 +16674,7 @@ var require_decorator_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modul
16662
16674
  var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/redirect-handler.js": ((exports, module) => {
16663
16675
  const util$8 = require_util$5();
16664
16676
  const { kBodyUsed } = require_symbols();
16665
- const assert$16 = __require$1("node:assert");
16677
+ const assert$15 = __require$1("node:assert");
16666
16678
  const { InvalidArgumentError: InvalidArgumentError$3 } = require_errors();
16667
16679
  const EE$2 = __require$1("node:events");
16668
16680
  const redirectableStatusCodes = [
@@ -16681,7 +16693,7 @@ var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_module
16681
16693
  this[kBodyUsed] = false;
16682
16694
  }
16683
16695
  async *[Symbol.asyncIterator]() {
16684
- assert$16(!this[kBodyUsed], "disturbed");
16696
+ assert$15(!this[kBodyUsed], "disturbed");
16685
16697
  this[kBodyUsed] = true;
16686
16698
  yield* this[kBody];
16687
16699
  }
@@ -16703,7 +16715,7 @@ var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_module
16703
16715
  this.history = [];
16704
16716
  if (util$8.isStream(this.opts.body)) {
16705
16717
  if (util$8.bodyLength(this.opts.body) === 0) this.opts.body.on("data", function() {
16706
- assert$16(false);
16718
+ assert$15(false);
16707
16719
  });
16708
16720
  if (typeof this.opts.body.readableDidRead !== "boolean") {
16709
16721
  this.opts.body[kBodyUsed] = false;
@@ -16777,7 +16789,7 @@ var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_module
16777
16789
  } else if (headers && typeof headers === "object") {
16778
16790
  const entries = util$8.hasSafeIterator(headers) ? headers : Object.entries(headers);
16779
16791
  for (const [key, value] of entries) if (!shouldRemoveHeader(key, removeContent, unknownOrigin)) ret.push(key, value);
16780
- } else assert$16(headers == null, "headers must be an object or an array");
16792
+ } else assert$15(headers == null, "headers must be an object or an array");
16781
16793
  return ret;
16782
16794
  }
16783
16795
  module.exports = RedirectHandler$2;
@@ -18670,7 +18682,7 @@ var require_memory_cache_store = /* @__PURE__ */ __commonJS$2({ "../../node_modu
18670
18682
  //#endregion
18671
18683
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/cache-revalidation-handler.js
18672
18684
  var require_cache_revalidation_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/cache-revalidation-handler.js": ((exports, module) => {
18673
- const assert$15 = __require$1("node:assert");
18685
+ const assert$14 = __require$1("node:assert");
18674
18686
  /**
18675
18687
  * This takes care of revalidation requests we send to the origin. If we get
18676
18688
  * a response indicating that what we have is cached (via a HTTP 304), we can
@@ -18718,7 +18730,7 @@ var require_cache_revalidation_handler = /* @__PURE__ */ __commonJS$2({ "../../n
18718
18730
  this.#handler.onRequestUpgrade?.(controller, statusCode, headers, socket);
18719
18731
  }
18720
18732
  onResponseStart(controller, statusCode, headers, statusMessage) {
18721
- assert$15(this.#callback != null);
18733
+ assert$14(this.#callback != null);
18722
18734
  this.#successful = statusCode === 304 || this.#allowErrorStatusCodes && statusCode >= 500 && statusCode <= 504;
18723
18735
  this.#callback(this.#successful, this.#context, statusCode, headers);
18724
18736
  this.#callback = null;
@@ -18750,7 +18762,7 @@ var require_cache_revalidation_handler = /* @__PURE__ */ __commonJS$2({ "../../n
18750
18762
  //#endregion
18751
18763
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/interceptor/cache.js
18752
18764
  var require_cache$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/interceptor/cache.js": ((exports, module) => {
18753
- const assert$14 = __require$1("node:assert");
18765
+ const assert$13 = __require$1("node:assert");
18754
18766
  const { Readable: Readable$2 } = __require$1("node:stream");
18755
18767
  const util$6 = require_util$5();
18756
18768
  const CacheHandler = require_cache_handler();
@@ -18915,8 +18927,8 @@ var require_cache$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
18915
18927
  */
18916
18928
  function sendCachedValue(handler, opts, result, age, context, isStale$1) {
18917
18929
  const stream$2 = util$6.isStream(result.body) ? result.body : Readable$2.from(result.body ?? []);
18918
- assert$14(!stream$2.destroyed, "stream should not be destroyed");
18919
- assert$14(!stream$2.readableDidRead, "stream should not be readableDidRead");
18930
+ assert$13(!stream$2.destroyed, "stream should not be destroyed");
18931
+ assert$13(!stream$2.readableDidRead, "stream should not be readableDidRead");
18920
18932
  const controller = {
18921
18933
  resume() {
18922
18934
  stream$2.resume();
@@ -20012,7 +20024,7 @@ var require_headers = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
20012
20024
  const { kEnumerableProperty: kEnumerableProperty$9 } = require_util$5();
20013
20025
  const { iteratorMixin, isValidHeaderName: isValidHeaderName$1, isValidHeaderValue } = require_util$4();
20014
20026
  const { webidl: webidl$11 } = require_webidl();
20015
- const assert$13 = __require$1("node:assert");
20027
+ const assert$12 = __require$1("node:assert");
20016
20028
  const util$4 = __require$1("node:util");
20017
20029
  /**
20018
20030
  * @param {number} code
@@ -20207,11 +20219,11 @@ var require_headers = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
20207
20219
  const iterator = this.headersMap[Symbol.iterator]();
20208
20220
  const firstValue = iterator.next().value;
20209
20221
  array$1[0] = [firstValue[0], firstValue[1].value];
20210
- assert$13(firstValue[1].value !== null);
20222
+ assert$12(firstValue[1].value !== null);
20211
20223
  for (let i = 1, j$1 = 0, right = 0, left = 0, pivot = 0, x, value; i < size; ++i) {
20212
20224
  value = iterator.next().value;
20213
20225
  x = array$1[i] = [value[0], value[1].value];
20214
- assert$13(x[1] !== null);
20226
+ assert$12(x[1] !== null);
20215
20227
  left = 0;
20216
20228
  right = i;
20217
20229
  while (left < right) {
@@ -20232,7 +20244,7 @@ var require_headers = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
20232
20244
  let i = 0;
20233
20245
  for (const { 0: name, 1: { value } } of this.headersMap) {
20234
20246
  array$1[i++] = [name, value];
20235
- assert$13(value !== null);
20247
+ assert$12(value !== null);
20236
20248
  }
20237
20249
  return array$1.sort(compareHeaderName);
20238
20250
  }
@@ -20412,7 +20424,7 @@ var require_response = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
20412
20424
  const { webidl: webidl$10 } = require_webidl();
20413
20425
  const { URLSerializer: URLSerializer$3 } = require_data_url();
20414
20426
  const { kConstruct: kConstruct$6 } = require_symbols();
20415
- const assert$12 = __require$1("node:assert");
20427
+ const assert$11 = __require$1("node:assert");
20416
20428
  const { isomorphicEncode: isomorphicEncode$1, serializeJavascriptValueToJSONString } = require_infra();
20417
20429
  const textEncoder = new TextEncoder("utf-8");
20418
20430
  var Response$2 = class Response$2 {
@@ -20634,7 +20646,7 @@ var require_response = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
20634
20646
  return p$1 in state ? state[p$1] : target[p$1];
20635
20647
  },
20636
20648
  set(target, p$1, value) {
20637
- assert$12(!(p$1 in state));
20649
+ assert$11(!(p$1 in state));
20638
20650
  target[p$1] = value;
20639
20651
  return true;
20640
20652
  }
@@ -20663,10 +20675,10 @@ var require_response = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
20663
20675
  headersList: [],
20664
20676
  body: null
20665
20677
  });
20666
- else assert$12(false);
20678
+ else assert$11(false);
20667
20679
  }
20668
20680
  function makeAppropriateNetworkError$1(fetchParams, err = null) {
20669
- assert$12(isCancelled$1(fetchParams));
20681
+ assert$11(isCancelled$1(fetchParams));
20670
20682
  return isAborted$1(fetchParams) ? makeNetworkError$1(Object.assign(new DOMException("The operation was aborted.", "AbortError"), { cause: err })) : makeNetworkError$1(Object.assign(new DOMException("Request was cancelled."), { cause: err }));
20671
20683
  }
20672
20684
  function initializeResponse(response, init$2, body) {
@@ -20758,7 +20770,7 @@ var require_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
20758
20770
  const { webidl: webidl$9 } = require_webidl();
20759
20771
  const { URLSerializer: URLSerializer$2 } = require_data_url();
20760
20772
  const { kConstruct: kConstruct$5 } = require_symbols();
20761
- const assert$11 = __require$1("node:assert");
20773
+ const assert$10 = __require$1("node:assert");
20762
20774
  const { getMaxListeners, setMaxListeners, defaultMaxListeners } = __require$1("node:events");
20763
20775
  const kAbortController = Symbol("abortController");
20764
20776
  const requestFinalizer = new FinalizationRegistry(({ signal, abort: abort$1 }) => {
@@ -20824,7 +20836,7 @@ var require_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
20824
20836
  request$1 = makeRequest$2({ urlList: [parsedURL] });
20825
20837
  fallbackMode = "cors";
20826
20838
  } else {
20827
- assert$11(webidl$9.is.Request(input));
20839
+ assert$10(webidl$9.is.Request(input));
20828
20840
  request$1 = input.#state;
20829
20841
  signal = input.#signal;
20830
20842
  this.#dispatcher = init$2.dispatcher || input.#dispatcher;
@@ -21338,7 +21350,7 @@ var require_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
21338
21350
  //#endregion
21339
21351
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js
21340
21352
  var require_subresource_integrity = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js": ((exports, module) => {
21341
- const assert$10 = __require$1("node:assert");
21353
+ const assert$9 = __require$1("node:assert");
21342
21354
  const { runtimeFeatures: runtimeFeatures$3 } = require_runtime_features();
21343
21355
  /**
21344
21356
  * @typedef {object} Metadata
@@ -21416,7 +21428,7 @@ var require_subresource_integrity = /* @__PURE__ */ __commonJS$2({ "../../node_m
21416
21428
  /** @type {Metadata|null} */
21417
21429
  let strongest = null;
21418
21430
  for (const item of metadataList) {
21419
- assert$10(isValidSRIHashAlgorithm(item.alg), "Invalid SRI hash algorithm token");
21431
+ assert$9(isValidSRIHashAlgorithm(item.alg), "Invalid SRI hash algorithm token");
21420
21432
  if (result.length === 0) {
21421
21433
  result.push(item);
21422
21434
  strongest = item;
@@ -21510,7 +21522,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
21510
21522
  const { Request: Request$2, cloneRequest, getRequestDispatcher, getRequestState: getRequestState$1 } = require_request();
21511
21523
  const zlib$1 = __require$1("node:zlib");
21512
21524
  const { makePolicyContainer, clonePolicyContainer, requestBadPort, TAOCheck, appendRequestOriginHeader, responseLocationURL, requestCurrentURL, setRequestReferrerPolicyOnRedirect, tryUpgradeRequestToAPotentiallyTrustworthyURL, createOpaqueTimingInfo, appendFetchMetadata, corsCheck, crossOriginResourcePolicyCheck, determineRequestsReferrer, coarsenedSharedCurrentTime, sameOrigin, isCancelled, isAborted, isErrorLike, fullyReadBody, readableStreamClose, urlIsLocal, urlIsHttpHttpsScheme: urlIsHttpHttpsScheme$1, urlHasHttpsScheme, clampAndCoarsenConnectionTimingInfo, simpleRangeHeaderValue, buildContentRange, createInflate, extractMimeType, hasAuthenticationEntry, includesCredentials, isTraversableNavigable } = require_util$4();
21513
- const assert$9 = __require$1("node:assert");
21525
+ const assert$8 = __require$1("node:assert");
21514
21526
  const { safelyExtractBody, extractBody } = require_body();
21515
21527
  const { redirectStatusSet, nullBodyStatus, safeMethodsSet, requestBodyHeader, subresourceSet } = require_constants$4();
21516
21528
  const EE$1 = __require$1("node:events");
@@ -21576,7 +21588,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
21576
21588
  let controller = null;
21577
21589
  addAbortListener(requestObject.signal, () => {
21578
21590
  locallyAborted = true;
21579
- assert$9(controller != null);
21591
+ assert$8(controller != null);
21580
21592
  controller.abort(requestObject.signal.reason);
21581
21593
  const realResponse = responseObject?.deref();
21582
21594
  abortFetch(p$1, request$1, realResponse, requestObject.signal.reason, controller.controller);
@@ -21632,7 +21644,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
21632
21644
  if (response.body?.stream != null && isReadable(response.body.stream)) controller.error(error$2);
21633
21645
  }
21634
21646
  function fetching$3({ request: request$1, processRequestBodyChunkLength, processRequestEndOfBody, processResponse, processResponseEndOfBody, processResponseConsumeBody, useParallelQueue = false, dispatcher = getGlobalDispatcher$2(), requestObject = null }) {
21635
- assert$9(dispatcher);
21647
+ assert$8(dispatcher);
21636
21648
  let taskDestination = null;
21637
21649
  let crossOriginIsolatedCapability = false;
21638
21650
  if (request$1.client != null) {
@@ -21653,7 +21665,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
21653
21665
  crossOriginIsolatedCapability,
21654
21666
  requestObject
21655
21667
  };
21656
- assert$9(!request$1.body || request$1.body.stream);
21668
+ assert$8(!request$1.body || request$1.body.stream);
21657
21669
  if (request$1.window === "client") request$1.window = request$1.client?.globalObject?.constructor?.name === "Window" ? request$1.client : "no-window";
21658
21670
  if (request$1.origin === "client") request$1.origin = request$1.client.origin;
21659
21671
  if (request$1.policyContainer === "client") if (request$1.client != null) request$1.policyContainer = clonePolicyContainer(request$1.client.policyContainer);
@@ -21697,7 +21709,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
21697
21709
  if (request$1.responseTainting === "basic") response = filterResponse(response, "basic");
21698
21710
  else if (request$1.responseTainting === "cors") response = filterResponse(response, "cors");
21699
21711
  else if (request$1.responseTainting === "opaque") response = filterResponse(response, "opaque");
21700
- else assert$9(false);
21712
+ else assert$8(false);
21701
21713
  }
21702
21714
  let internalResponse = response.status === 0 ? response : response.internalResponse;
21703
21715
  if (internalResponse.urlList.length === 0) internalResponse.urlList.push(...request$1.urlList);
@@ -21853,7 +21865,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
21853
21865
  if (request$1.redirect === "error") response = makeNetworkError("unexpected redirect");
21854
21866
  else if (request$1.redirect === "manual") response = actualResponse;
21855
21867
  else if (request$1.redirect === "follow") response = await httpRedirectFetch(fetchParams, response);
21856
- else assert$9(false);
21868
+ else assert$8(false);
21857
21869
  }
21858
21870
  response.timingInfo = timingInfo;
21859
21871
  return response;
@@ -21886,7 +21898,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
21886
21898
  request$1.headersList.delete("host", true);
21887
21899
  }
21888
21900
  if (request$1.body != null) {
21889
- assert$9(request$1.body.source != null);
21901
+ assert$8(request$1.body.source != null);
21890
21902
  request$1.body = safelyExtractBody(request$1.body.source)[0];
21891
21903
  }
21892
21904
  const timingInfo = fetchParams.timingInfo;
@@ -21978,7 +21990,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
21978
21990
  return response;
21979
21991
  }
21980
21992
  async function httpNetworkFetch(fetchParams, includeCredentials = false, forceNewConnection = false) {
21981
- assert$9(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed);
21993
+ assert$8(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed);
21982
21994
  fetchParams.controller.connection = {
21983
21995
  abort: null,
21984
21996
  destroyed: false,
@@ -22258,7 +22270,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
22258
22270
  //#endregion
22259
22271
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/cache/util.js
22260
22272
  var require_util$3 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/cache/util.js": ((exports, module) => {
22261
- const assert$8 = __require$1("node:assert");
22273
+ const assert$7 = __require$1("node:assert");
22262
22274
  const { URLSerializer: URLSerializer$1 } = require_data_url();
22263
22275
  const { isValidHeaderName } = require_util$4();
22264
22276
  /**
@@ -22276,7 +22288,7 @@ var require_util$3 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
22276
22288
  * @param {string} header
22277
22289
  */
22278
22290
  function getFieldValues$1(header) {
22279
- assert$8(header !== null);
22291
+ assert$7(header !== null);
22280
22292
  const values = [];
22281
22293
  for (let value of header.split(",")) {
22282
22294
  value = value.trim();
@@ -22293,7 +22305,7 @@ var require_util$3 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
22293
22305
  //#endregion
22294
22306
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/cache/cache.js
22295
22307
  var require_cache = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/cache/cache.js": ((exports, module) => {
22296
- const assert$7 = __require$1("node:assert");
22308
+ const assert$6 = __require$1("node:assert");
22297
22309
  const { kConstruct: kConstruct$4 } = require_symbols();
22298
22310
  const { urlEquals, getFieldValues } = require_util$3();
22299
22311
  const { kEnumerableProperty: kEnumerableProperty$6, isDisturbed } = require_util$5();
@@ -22508,7 +22520,7 @@ var require_cache = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
22508
22520
  r = getRequestState(request$1);
22509
22521
  if (r.method !== "GET" && !options.ignoreMethod) return false;
22510
22522
  } else {
22511
- assert$7(typeof request$1 === "string");
22523
+ assert$6(typeof request$1 === "string");
22512
22524
  r = getRequestState(new Request$1(request$1));
22513
22525
  }
22514
22526
  /** @type {CacheBatchOperation[]} */
@@ -22596,7 +22608,7 @@ var require_cache = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
22596
22608
  if (requestResponses.length === 0) return [];
22597
22609
  for (const requestResponse of requestResponses) {
22598
22610
  const idx = cache$1.indexOf(requestResponse);
22599
- assert$7(idx !== -1);
22611
+ assert$6(idx !== -1);
22600
22612
  cache$1.splice(idx, 1);
22601
22613
  }
22602
22614
  } else if (operation.type === "put") {
@@ -22620,7 +22632,7 @@ var require_cache = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
22620
22632
  requestResponses = this.#queryCache(operation.request);
22621
22633
  for (const requestResponse of requestResponses) {
22622
22634
  const idx = cache$1.indexOf(requestResponse);
22623
- assert$7(idx !== -1);
22635
+ assert$6(idx !== -1);
22624
22636
  cache$1.splice(idx, 1);
22625
22637
  }
22626
22638
  cache$1.push([operation.request, operation.response]);
@@ -23084,7 +23096,7 @@ var require_parse = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
23084
23096
  const { collectASequenceOfCodePointsFast: collectASequenceOfCodePointsFast$1 } = require_infra();
23085
23097
  const { maxNameValuePairSize, maxAttributeValueSize } = require_constants$3();
23086
23098
  const { isCTLExcludingHtab } = require_util$2();
23087
- const assert$6 = __require$1("node:assert");
23099
+ const assert$5 = __require$1("node:assert");
23088
23100
  /**
23089
23101
  * @description Parses the field-value attributes of a set-cookie header string.
23090
23102
  * @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4
@@ -23125,7 +23137,7 @@ var require_parse = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
23125
23137
  */
23126
23138
  function parseUnparsedAttributes(unparsedAttributes, cookieAttributeList = {}) {
23127
23139
  if (unparsedAttributes.length === 0) return cookieAttributeList;
23128
- assert$6(unparsedAttributes[0] === ";");
23140
+ assert$5(unparsedAttributes[0] === ";");
23129
23141
  unparsedAttributes = unparsedAttributes.slice(1);
23130
23142
  let cookieAv = "";
23131
23143
  if (unparsedAttributes.includes(";")) {
@@ -24050,7 +24062,7 @@ var require_connection = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
24050
24062
  const { Headers: Headers$1, getHeadersList } = require_headers();
24051
24063
  const { getDecodeSplit } = require_util$4();
24052
24064
  const { WebsocketFrameSend: WebsocketFrameSend$4 } = require_frame();
24053
- const assert$5 = __require$1("node:assert");
24065
+ const assert$4 = __require$1("node:assert");
24054
24066
  const { runtimeFeatures } = require_runtime_features();
24055
24067
  const crypto$2 = runtimeFeatures.has("crypto") ? __require$1("node:crypto") : null;
24056
24068
  let warningEmitted = false;
@@ -24156,7 +24168,7 @@ var require_connection = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
24156
24168
  } else if (!object$1.closeState.has(sentCloseFrameState$3.SENT) && !object$1.closeState.has(sentCloseFrameState$3.RECEIVED)) {
24157
24169
  const frame = new WebsocketFrameSend$4();
24158
24170
  if (reason.length !== 0 && code === null) code = 1e3;
24159
- assert$5(code === null || Number.isInteger(code));
24171
+ assert$4(code === null || Number.isInteger(code));
24160
24172
  if (code === null && reason.length === 0) frame.frameData = emptyBuffer$1;
24161
24173
  else if (code !== null && reason === null) {
24162
24174
  frame.frameData = Buffer.allocUnsafe(2);
@@ -24275,7 +24287,7 @@ var require_permessage_deflate$1 = /* @__PURE__ */ __commonJS$2({ "../../node_mo
24275
24287
  //#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/websocket/receiver.js
24276
24288
  var require_receiver$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/websocket/receiver.js": ((exports, module) => {
24277
24289
  const { Writable: Writable$1 } = __require$1("node:stream");
24278
- const assert$4 = __require$1("node:assert");
24290
+ const assert$3 = __require$1("node:assert");
24279
24291
  const { parserStates, opcodes: opcodes$3, states: states$2, emptyBuffer, sentCloseFrameState: sentCloseFrameState$2 } = require_constants$2();
24280
24292
  const { isValidStatusCode: isValidStatusCode$3, isValidOpcode, websocketMessageReceived, utf8Decode: utf8Decode$2, isControlFrame, isTextBinaryFrame, isContinuationFrame } = require_util$1();
24281
24293
  const { failWebsocketConnection: failWebsocketConnection$2 } = require_connection();
@@ -24513,7 +24525,7 @@ var require_receiver$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
24513
24525
  return output;
24514
24526
  }
24515
24527
  parseCloseBody(data) {
24516
- assert$4(data.length !== 1);
24528
+ assert$3(data.length !== 1);
24517
24529
  /** @type {number|undefined} */
24518
24530
  let code;
24519
24531
  if (data.length >= 2) code = data.readUInt16BE(0);
@@ -27489,7 +27501,6 @@ var defaultWranglerConfig = {
27489
27501
  vectorize: [],
27490
27502
  ai_search_namespaces: [],
27491
27503
  ai_search: [],
27492
- websearch: void 0,
27493
27504
  agent_memory: [],
27494
27505
  hyperdrive: [],
27495
27506
  workflows: [],
@@ -28166,7 +28177,7 @@ __export(util_exports, {
28166
28177
  NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
28167
28178
  aborted: () => aborted,
28168
28179
  allowsEval: () => allowsEval,
28169
- assert: () => assert$3,
28180
+ assert: () => assert$2,
28170
28181
  assertEqual: () => assertEqual,
28171
28182
  assertIs: () => assertIs,
28172
28183
  assertNever: () => assertNever2,
@@ -28239,8 +28250,8 @@ function assertNever2(_x) {
28239
28250
  throw new Error("Unexpected value in exhaustive check");
28240
28251
  }
28241
28252
  __name$3(assertNever2, "assertNever");
28242
- function assert$3(_) {}
28243
- __name$3(assert$3, "assert");
28253
+ function assert$2(_) {}
28254
+ __name$3(assert$2, "assert");
28244
28255
  function getEnumValues(entries) {
28245
28256
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
28246
28257
  return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -41567,7 +41578,6 @@ var friendlyBindingNames = {
41567
41578
  vectorize: "Vectorize Index",
41568
41579
  ai_search_namespaces: "AI Search Namespace",
41569
41580
  ai_search: "AI Search Instance",
41570
- websearch: "Web Search",
41571
41581
  agent_memory: "Agent Memory",
41572
41582
  hyperdrive: "Hyperdrive Config",
41573
41583
  r2_buckets: "R2 Bucket",
@@ -41620,7 +41630,6 @@ var bindingTypeFriendlyNames = {
41620
41630
  vectorize: "Vectorize Index",
41621
41631
  ai_search_namespace: "AI Search Namespace",
41622
41632
  ai_search: "AI Search Instance",
41623
- websearch: "Web Search",
41624
41633
  agent_memory: "Agent Memory",
41625
41634
  hyperdrive: "Hyperdrive Config",
41626
41635
  service: "Worker",
@@ -41989,45 +41998,61 @@ function validateRoutes(diagnostics, topLevelEnv, rawEnv, envName) {
41989
41998
  return result;
41990
41999
  }
41991
42000
  __name$3(validateRoutes, "validateRoutes");
41992
- function normalizeAndValidatePlacement(diagnostics, topLevelEnv, rawEnv) {
41993
- if (rawEnv.placement) {
42001
+ function normalizeAndValidatePlacement(diagnostics, topLevelEnv, rawEnv, diagnosticField = "placement") {
42002
+ if (rawEnv.placement !== void 0) {
42003
+ if (typeof rawEnv.placement !== "object" || rawEnv.placement === null || Array.isArray(rawEnv.placement)) {
42004
+ diagnostics.errors.push(`The field "${diagnosticField}" should be an object but got ${JSON.stringify(rawEnv.placement)}.`);
42005
+ return inheritable(diagnostics, topLevelEnv, rawEnv, "placement", () => true, void 0);
42006
+ }
41994
42007
  const placement = rawEnv.placement;
41995
42008
  const hasHint = "hint" in placement;
41996
- const hasRegion = "region" in placement;
41997
- const hasHost = "host" in placement;
41998
- const hasHostname = "hostname" in placement;
41999
- const hasTargetedFields = hasRegion || hasHost || hasHostname;
42009
+ const presentTargetedFields = [
42010
+ "region",
42011
+ "host",
42012
+ "hostname"
42013
+ ].filter((field) => field in placement);
42014
+ const hasTargetedFields = presentTargetedFields.length > 0;
42000
42015
  if (hasHint && hasTargetedFields) {
42001
- diagnostics.errors.push(`"placement" cannot have both "hint" (smart format) and "region"/"host"/"hostname" (targeted format) fields`);
42016
+ diagnostics.errors.push(`"${diagnosticField}" cannot have both "hint" (smart format) and "region"/"host"/"hostname" (targeted format) fields`);
42002
42017
  return inheritable(diagnostics, topLevelEnv, rawEnv, "placement", () => true, void 0);
42003
42018
  }
42004
42019
  if (hasHint) {
42005
- validateRequiredProperty(diagnostics, "placement", "mode", placement.mode, "string", ["off", "smart"]);
42020
+ validateRequiredProperty(diagnostics, diagnosticField, "mode", placement.mode, "string", ["off", "smart"]);
42006
42021
  const mode = placement.mode;
42007
42022
  const hint = placement.hint;
42008
- if (hint !== void 0 && typeof hint !== "string") diagnostics.errors.push(`"placement.hint" must be a string when "placement.mode" is "${mode}"`);
42009
- if (hint && mode !== "smart") diagnostics.errors.push(`"placement.hint" can only be set when "placement.mode" is "smart"`);
42023
+ if (hint !== void 0 && typeof hint !== "string") diagnostics.errors.push(`"${diagnosticField}.hint" must be a string when "${diagnosticField}.mode" is "${mode}"`);
42024
+ if (hint && mode !== "smart") diagnostics.errors.push(`"${diagnosticField}.hint" can only be set when "${diagnosticField}.mode" is "smart"`);
42010
42025
  } else if (hasTargetedFields) {
42011
- validateOptionalProperty(diagnostics, "placement", "mode", placement.mode, "string", ["off", "targeted"]);
42012
- if (hasRegion) validateOptionalProperty(diagnostics, "placement", "region", placement.region, "string");
42013
- if (hasHost) validateOptionalProperty(diagnostics, "placement", "host", placement.host, "string");
42014
- if (hasHostname) validateOptionalProperty(diagnostics, "placement", "hostname", placement.hostname, "string");
42015
- if ([
42016
- hasRegion,
42017
- hasHost,
42018
- hasHostname
42019
- ].filter(Boolean).length > 1) {
42020
- const presentFields = [];
42021
- if (hasRegion) presentFields.push("region");
42022
- if (hasHost) presentFields.push("host");
42023
- if (hasHostname) presentFields.push("hostname");
42024
- diagnostics.errors.push(`"placement" fields ${presentFields.map((f) => `"${f}"`).join(", ")} are mutually exclusive. Only one can be specified.`);
42025
- }
42026
- } else validateRequiredProperty(diagnostics, "placement", "mode", placement.mode, "string", [
42027
- "off",
42028
- "smart",
42029
- "targeted"
42030
- ]);
42026
+ validateOptionalProperty(diagnostics, diagnosticField, "mode", placement.mode, "string", ["targeted"]);
42027
+ for (const field of presentTargetedFields) {
42028
+ validateRequiredProperty(diagnostics, diagnosticField, field, placement[field], "string");
42029
+ if (placement[field] === "") diagnostics.errors.push(`"${diagnosticField}.${field}" must be a non-empty string.`);
42030
+ }
42031
+ if (presentTargetedFields.length > 1) diagnostics.errors.push(`"${diagnosticField}" fields ${presentTargetedFields.map((field) => `"${field}"`).join(", ")} are mutually exclusive. Only one can be specified.`);
42032
+ } else {
42033
+ validateRequiredProperty(diagnostics, diagnosticField, "mode", placement.mode, "string", [
42034
+ "off",
42035
+ "smart",
42036
+ "targeted"
42037
+ ]);
42038
+ if (placement.mode === "targeted") validateAtLeastOnePropertyRequired(diagnostics, diagnosticField, [
42039
+ {
42040
+ key: "region",
42041
+ value: placement.region,
42042
+ type: "string"
42043
+ },
42044
+ {
42045
+ key: "host",
42046
+ value: placement.host,
42047
+ type: "string"
42048
+ },
42049
+ {
42050
+ key: "hostname",
42051
+ value: placement.hostname,
42052
+ type: "string"
42053
+ }
42054
+ ]);
42055
+ }
42031
42056
  }
42032
42057
  return inheritable(diagnostics, topLevelEnv, rawEnv, "placement", () => true, void 0);
42033
42058
  }
@@ -42123,7 +42148,6 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, isDisp
42123
42148
  vectorize: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "vectorize", validateBindingArray(envName, validateVectorizeBinding), []),
42124
42149
  ai_search_namespaces: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "ai_search_namespaces", validateBindingArray(envName, validateAISearchNamespaceBinding), []),
42125
42150
  ai_search: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "ai_search", validateBindingArray(envName, validateAISearchBinding), []),
42126
- websearch: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "websearch", validateNamedSimpleBinding(envName), void 0),
42127
42151
  agent_memory: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "agent_memory", validateBindingArray(envName, validateAgentMemoryBinding), []),
42128
42152
  hyperdrive: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "hyperdrive", validateBindingArray(envName, validateHyperdriveBinding), []),
42129
42153
  services: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "services", validateBindingArray(envName, validateServiceBinding), []),
@@ -42663,7 +42687,6 @@ var validateUnsafeBinding = /* @__PURE__ */ __name$3((diagnostics, field, value)
42663
42687
  "ai",
42664
42688
  "ai_search_namespace",
42665
42689
  "ai_search",
42666
- "websearch",
42667
42690
  "agent_memory",
42668
42691
  "kv_namespace",
42669
42692
  "durable_object_namespace",
@@ -42809,7 +42832,18 @@ function validateDurableObjectContainerImages(diagnostics, field, images, compli
42809
42832
  valid = false;
42810
42833
  }
42811
42834
  }
42812
- const unsupportedFields = Object.keys(image).filter((property) => property !== "dockerfile" && property !== "image");
42835
+ const isDockerfileBuild = hasDockerfile && !hasImage;
42836
+ if (isDockerfileBuild) {
42837
+ if (image.build_context !== void 0 && (typeof image.build_context !== "string" || image.build_context.length === 0)) {
42838
+ diagnostics.errors.push(`"${imageField}.build_context" must be a non-empty string.`);
42839
+ valid = false;
42840
+ }
42841
+ if (image.build_vars !== void 0 && (typeof image.build_vars !== "object" || image.build_vars === null || Array.isArray(image.build_vars) || Object.values(image.build_vars).some((value) => typeof value !== "string"))) {
42842
+ diagnostics.errors.push(`"${imageField}.build_vars" must be an object with string values.`);
42843
+ valid = false;
42844
+ }
42845
+ }
42846
+ const unsupportedFields = Object.keys(image).filter((property) => property !== "dockerfile" && property !== "image" && !(isDockerfileBuild && (property === "build_context" || property === "build_vars")));
42813
42847
  if (unsupportedFields.length > 0) {
42814
42848
  diagnostics.errors.push(`Unexpected fields found in ${imageField} field: ${unsupportedFields.map((property) => `"${property}"`).join(", ")}`);
42815
42849
  valid = false;
@@ -42818,6 +42852,24 @@ function validateDurableObjectContainerImages(diagnostics, field, images, compli
42818
42852
  return valid;
42819
42853
  }
42820
42854
  __name$3(validateDurableObjectContainerImages, "validateDurableObjectContainerImages");
42855
+ function validateDurableObjectContainerUnsafe(diagnostics, field, value) {
42856
+ if (value === void 0) return;
42857
+ if (typeof value !== "object" || value === null || Array.isArray(value)) {
42858
+ diagnostics.errors.push(`"${field}" should be an object.`);
42859
+ return;
42860
+ }
42861
+ const unsafe = value;
42862
+ const configuration = unsafe.configuration;
42863
+ if (Object.keys(unsafe).some((key) => key !== "configuration") || configuration !== void 0 && (typeof configuration !== "object" || configuration === null || Array.isArray(configuration) || Object.keys(configuration).some((key) => key !== "experimental_flags"))) {
42864
+ diagnostics.errors.push(`Only "${field}.configuration.experimental_flags" is supported for Durable Object-managed Containers.`);
42865
+ return;
42866
+ }
42867
+ if (configuration !== void 0) {
42868
+ const flags = configuration.experimental_flags;
42869
+ if (flags !== void 0 && (!Array.isArray(flags) || flags.some((flag) => typeof flag !== "string"))) diagnostics.errors.push(`"${field}.configuration.experimental_flags" should be an array of strings.`);
42870
+ }
42871
+ }
42872
+ __name$3(validateDurableObjectContainerUnsafe, "validateDurableObjectContainerUnsafe");
42821
42873
  function validateContainerApp(envName, topLevelName, configPath, options = {}) {
42822
42874
  const { generateDefaultName = true } = options;
42823
42875
  return (diagnostics, field, value, config2) => {
@@ -42829,11 +42881,10 @@ function validateContainerApp(envName, topLevelName, configPath, options = {}) {
42829
42881
  for (const containerAppOptional of value) {
42830
42882
  const isDurableObjectManaged = containerAppOptional.scheduling_policy === "durable_object";
42831
42883
  const hasValidDurableObjectClassName = typeof containerAppOptional.class_name === "string" && containerAppOptional.class_name.length > 0;
42832
- if (isDurableObjectManaged) {
42833
- if (!hasValidDurableObjectClassName) diagnostics.errors.push(`"containers.class_name" must be a non-empty string when "containers.scheduling_policy" is "durable_object".`);
42834
- } else validateOptionalProperty(diagnostics, field, "class_name", containerAppOptional.class_name, "string");
42884
+ validateOptionalProperty(diagnostics, field, "class_name", containerAppOptional.class_name, "string");
42885
+ if (isDurableObjectManaged && containerAppOptional.class_name === "") diagnostics.errors.push(`"containers.class_name" must be a non-empty string when specified for a Durable Object-managed Container.`);
42835
42886
  validateOptionalProperty(diagnostics, field, "name", containerAppOptional.name, "string");
42836
- if (generateDefaultName && !containerAppOptional.name && (!isDurableObjectManaged || hasValidDurableObjectClassName)) if (containerAppOptional.class_name === void 0) diagnostics.errors.push(`"containers.name" is required when "containers.class_name" is not defined, because there is no class name to derive a default name from. Either name this container and reference it from a Durable Object's \`exports\` entry, or set "containers.class_name".`);
42887
+ if (generateDefaultName && !containerAppOptional.name && (!isDurableObjectManaged || containerAppOptional.class_name === void 0 || hasValidDurableObjectClassName)) if (containerAppOptional.class_name === void 0) diagnostics.errors.push(`"containers.name" is required when "containers.class_name" is not defined, because there is no class name to derive a default name from. Either name this container and reference it from a Durable Object's \`exports\` entry, or set "containers.class_name".`);
42837
42888
  else if (!topLevelName) diagnostics.errors.push(`Must have either a top level "name" and "containers.class_name" field defined, or have field "containers.name" defined.`);
42838
42889
  else {
42839
42890
  let name = `${topLevelName}-${containerAppOptional.class_name}`;
@@ -42842,13 +42893,18 @@ function validateContainerApp(envName, topLevelName, configPath, options = {}) {
42842
42893
  }
42843
42894
  if (isDurableObjectManaged) {
42844
42895
  validateDurableObjectContainerImages(diagnostics, `${field}.images`, containerAppOptional.images, options.complianceConfig);
42896
+ validateContainerObservability(diagnostics, `${field}.observability`, containerAppOptional.observability, config2);
42897
+ if (containerAppOptional.observability?.target_instance_count !== void 0 || containerAppOptional.observability?.target_instance_percentage !== void 0) diagnostics.errors.push(`"${field}.observability" only supports enabling or disabling logs for Durable Object-managed Containers; instance targeting is not supported.`);
42898
+ validateDurableObjectContainerUnsafe(diagnostics, `${field}.unsafe`, containerAppOptional.unsafe);
42845
42899
  const unsupportedFields = Object.keys(containerAppOptional).filter((key) => ![
42846
42900
  "name",
42847
42901
  "class_name",
42848
42902
  "scheduling_policy",
42849
- "images"
42903
+ "images",
42904
+ "observability",
42905
+ "unsafe"
42850
42906
  ].includes(key));
42851
- if (unsupportedFields.length > 0) diagnostics.errors.push(`Unsupported fields for Durable Object-managed Containers in ${field}: ${unsupportedFields.map((key) => `"${key}"`).join(",")}. Only "name", "class_name", "scheduling_policy", and "images" are supported.`);
42907
+ if (unsupportedFields.length > 0) diagnostics.errors.push(`Unsupported fields for Durable Object-managed Containers in ${field}: ${unsupportedFields.map((key) => `"${key}"`).join(",")}. Only "name", "class_name", "scheduling_policy", "images", "observability", and restricted "unsafe" settings are supported.`);
42852
42908
  continue;
42853
42909
  }
42854
42910
  if (!containerAppOptional.configuration?.image && !containerAppOptional.image) diagnostics.errors.push(`"containers.image" field must be defined for each container app. This should be the path to your Dockerfile or an image URI pointing to the Cloudflare registry.`);
@@ -43919,6 +43975,8 @@ var validatePreviewsConfig = /* @__PURE__ */ __name$3((envName, configPath) => (
43919
43975
  "d1_databases",
43920
43976
  "r2_buckets",
43921
43977
  "vectorize",
43978
+ "ai_search_namespaces",
43979
+ "ai_search",
43922
43980
  "hyperdrive",
43923
43981
  "services",
43924
43982
  "analytics_engine_datasets",
@@ -43945,10 +44003,12 @@ var validatePreviewsConfig = /* @__PURE__ */ __name$3((envName, configPath) => (
43945
44003
  "logpush",
43946
44004
  "observability",
43947
44005
  "limits",
44006
+ "placement",
43948
44007
  "cache"
43949
44008
  ]) && isValid;
43950
44009
  isValid = validateVars(envName)(diagnostics, `${field}.vars`, previews.vars, void 0) && isValid;
43951
44010
  isValid = validateDefines(envName)(diagnostics, `${field}.define`, previews.define, void 0) && isValid;
44011
+ normalizeAndValidatePlacement(diagnostics, void 0, previews, `${field}.placement`);
43952
44012
  isValid = validateBindingsProperty(envName, validateDurableObjectBinding)(diagnostics, `${field}.durable_objects`, previews.durable_objects, void 0) && isValid;
43953
44013
  isValid = all(validateBindingArray(envName, validateWorkflowBinding), validateUniqueNameProperty)(diagnostics, `${field}.workflows`, previews.workflows, void 0) && isValid;
43954
44014
  isValid = validateBindingArray(envName, validateKVBinding)(diagnostics, `${field}.kv_namespaces`, previews.kv_namespaces, void 0) && isValid;
@@ -43957,6 +44017,8 @@ var validatePreviewsConfig = /* @__PURE__ */ __name$3((envName, configPath) => (
43957
44017
  isValid = validateBindingArray(envName, validateD1Binding)(diagnostics, `${field}.d1_databases`, previews.d1_databases, void 0) && isValid;
43958
44018
  isValid = validateBindingArray(envName, validateR2Binding)(diagnostics, `${field}.r2_buckets`, previews.r2_buckets, void 0) && isValid;
43959
44019
  isValid = validateBindingArray(envName, validateVectorizeBinding)(diagnostics, `${field}.vectorize`, previews.vectorize, void 0) && isValid;
44020
+ isValid = validateBindingArray(envName, validateAISearchNamespaceBinding)(diagnostics, `${field}.ai_search_namespaces`, previews.ai_search_namespaces, void 0) && isValid;
44021
+ isValid = validateBindingArray(envName, validateAISearchBinding)(diagnostics, `${field}.ai_search`, previews.ai_search, void 0) && isValid;
43960
44022
  isValid = validateBindingArray(envName, validateHyperdriveBinding)(diagnostics, `${field}.hyperdrive`, previews.hyperdrive, void 0) && isValid;
43961
44023
  isValid = validateBindingArray(envName, validateServiceBinding)(diagnostics, `${field}.services`, previews.services, void 0) && isValid;
43962
44024
  isValid = validateBindingArray(envName, validateAnalyticsEngineBinding)(diagnostics, `${field}.analytics_engine_datasets`, previews.analytics_engine_datasets, void 0) && isValid;
@@ -44517,7 +44579,6 @@ var BINDING_LOCAL_SUPPORT = {
44517
44579
  flagship: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
44518
44580
  vpc_service: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
44519
44581
  vpc_network: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
44520
- websearch: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
44521
44582
  agent_memory: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator"
44522
44583
  };
44523
44584
  function getBindingLocalSupport(type) {
@@ -44875,14 +44936,6 @@ function convertConfigToBindings(config2, options) {
44875
44936
  ...x
44876
44937
  };
44877
44938
  break;
44878
- case "websearch": {
44879
- const { binding,...x } = info;
44880
- output[binding] = {
44881
- type: "websearch",
44882
- ...x
44883
- };
44884
- break;
44885
- }
44886
44939
  case "agent_memory":
44887
44940
  for (const { binding,...x } of info) output[binding] = {
44888
44941
  type: "agent_memory",
@@ -45028,7 +45081,6 @@ function printBindings(bindings, options) {
45028
45081
  const vectorize = extractBindingsOfType("vectorize", bindings);
45029
45082
  const ai_search_namespaces = extractBindingsOfType("ai_search_namespace", bindings);
45030
45083
  const ai_search = extractBindingsOfType("ai_search", bindings);
45031
- const websearch = extractBindingsOfType("websearch", bindings);
45032
45084
  const agent_memory = extractBindingsOfType("agent_memory", bindings);
45033
45085
  const hyperdrive = extractBindingsOfType("hyperdrive", bindings);
45034
45086
  const r2_buckets = extractBindingsOfType("r2_bucket", bindings);
@@ -45168,12 +45220,6 @@ function printBindings(bindings, options) {
45168
45220
  value: instance_name ? String(instance_name) : void 0,
45169
45221
  mode: getMode({ isSimulatedLocally: false })
45170
45222
  })));
45171
- if (websearch.length > 0) output.push(...websearch.map(({ binding }) => ({
45172
- name: binding,
45173
- type: getBindingTypeFriendlyName("websearch"),
45174
- value: void 0,
45175
- mode: getMode({ isSimulatedLocally: false })
45176
- })));
45177
45223
  if (agent_memory.length > 0) output.push(...agent_memory.map(({ binding, namespace }) => ({
45178
45224
  name: binding,
45179
45225
  type: getBindingTypeFriendlyName("agent_memory"),
@@ -45462,7 +45508,7 @@ ${allTailConsumers.map(({ service, streaming }) => {
45462
45508
  let containersTitle = "The following containers are available:";
45463
45509
  if (context.name && isMultiWorker) containersTitle = `The following containers are available from ${source_default.blue(context.name)}:`;
45464
45510
  log$2(`${containersTitle}
45465
- ${containers.map((container) => container.scheduling_policy === "durable_object" ? `- ${container.class_name} (durable_object)` : `- ${container.name} (${container.image})`).join("\n")}`);
45511
+ ${containers.map((container) => container.scheduling_policy === "durable_object" ? `- ${container.class_name ?? container.name} (durable_object)` : `- ${container.name} (${container.image})`).join("\n")}`);
45466
45512
  log$2("");
45467
45513
  }
45468
45514
  if (context.unsafeMetadata) {
@@ -46879,7 +46925,7 @@ function getWorkerNameFromProject(projectPath) {
46879
46925
  }
46880
46926
  __name$3(getWorkerNameFromProject, "getWorkerNameFromProject");
46881
46927
  function toUrlPath(filePath) {
46882
- assert$1(!/^[a-z]:/i.test(filePath), "Tried to convert a Windows file path with a drive to a URL path.");
46928
+ assert(!/^[a-z]:/i.test(filePath), "Tried to convert a Windows file path with a drive to a URL path.");
46883
46929
  return filePath.replace(/\\/g, "/");
46884
46930
  }
46885
46931
  __name$3(toUrlPath, "toUrlPath");
@@ -50870,7 +50916,7 @@ var require_signal_exit = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
50870
50916
  return function() {};
50871
50917
  };
50872
50918
  else {
50873
- var assert$2 = __require$1("assert");
50919
+ var assert$1 = __require$1("assert");
50874
50920
  var signals = require_signals();
50875
50921
  var isWin = /^win/i.test(process$1.platform);
50876
50922
  var EE = __require$1("events");
@@ -50890,7 +50936,7 @@ var require_signal_exit = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
50890
50936
  module.exports = function(cb, opts) {
50891
50937
  /* istanbul ignore if */
50892
50938
  if (!processOk(global.process)) return function() {};
50893
- assert$2.equal(typeof cb, "function", "a callback must be provided for exit handler");
50939
+ assert$1.equal(typeof cb, "function", "a callback must be provided for exit handler");
50894
50940
  if (loaded === false) load();
50895
50941
  var ev = "exit";
50896
50942
  if (opts && opts.alwaysLast) ev = "afterexit";
@@ -54836,7 +54882,7 @@ function scrubEncryptedCredentials(options) {
54836
54882
  __name$2(scrubEncryptedCredentials, "scrubEncryptedCredentials");
54837
54883
 
54838
54884
  //#endregion
54839
- //#region ../workers-auth/dist/chunk-YCVYA5LL.mjs
54885
+ //#region ../workers-auth/dist/chunk-T63LVVAX.mjs
54840
54886
  function createPreferences(getConfigPath) {
54841
54887
  function getUserPreferencesPath() {
54842
54888
  return path.resolve(getConfigPath(), "preferences.json");
@@ -55615,7 +55661,7 @@ Run \`${descriptor.commands.whoami}\` to check your current authentication statu
55615
55661
  return oauthFlow.requireApiToken();
55616
55662
  }
55617
55663
  __name$2(requireApiToken$1, "requireApiToken");
55618
- function withDefaultScopes(complianceConfig, props) {
55664
+ function withLoginDefaults(complianceConfig, props) {
55619
55665
  return {
55620
55666
  complianceConfig,
55621
55667
  scopes: props?.scopes ?? descriptor.getDefaultScopeKeys(),
@@ -55623,12 +55669,12 @@ Run \`${descriptor.commands.whoami}\` to check your current authentication statu
55623
55669
  callbackHost: props?.callbackHost,
55624
55670
  callbackPort: props?.callbackPort,
55625
55671
  profile: props?.profile,
55626
- device: props?.device
55672
+ device: props?.device ?? descriptor.useDeviceFlowByDefault ?? false
55627
55673
  };
55628
55674
  }
55629
- __name$2(withDefaultScopes, "withDefaultScopes");
55675
+ __name$2(withLoginDefaults, "withLoginDefaults");
55630
55676
  async function login(complianceConfig, props) {
55631
- return oauthFlow.login(withDefaultScopes(complianceConfig, props));
55677
+ return oauthFlow.login(withLoginDefaults(complianceConfig, props));
55632
55678
  }
55633
55679
  __name$2(login, "login");
55634
55680
  async function logout(profile) {
@@ -55637,7 +55683,7 @@ Run \`${descriptor.commands.whoami}\` to check your current authentication statu
55637
55683
  __name$2(logout, "logout");
55638
55684
  async function loginOrRefreshIfRequired(complianceConfig, props) {
55639
55685
  if (oauthFlow.getActiveTemporaryAccount()) return { loggedIn: true };
55640
- return oauthFlow.loginOrRefreshIfRequired(withDefaultScopes(complianceConfig, props));
55686
+ return oauthFlow.loginOrRefreshIfRequired(withLoginDefaults(complianceConfig, props));
55641
55687
  }
55642
55688
  __name$2(loginOrRefreshIfRequired, "loginOrRefreshIfRequired");
55643
55689
  async function getOAuthTokenFromLocalState() {
@@ -55670,10 +55716,7 @@ Run \`${descriptor.commands.whoami}\` to check your current authentication statu
55670
55716
  return configCache.getConfigCache(getAccountCacheFileName()).account;
55671
55717
  }
55672
55718
  __name$2(getAccountFromCache, "getAccountFromCache");
55673
- async function fetchAccountsPaged(complianceConfig, resource) {
55674
- const result = await loginOrRefreshIfRequired(complianceConfig);
55675
- if (!result.loggedIn) throw new UserError$1(`Not logged in. ${NOT_LOGGED_IN_ERROR_BODIES[result.reason]}${NOT_LOGGED_IN_WHOAMI_TIP}`, { telemetryMessage: "cfetch auth login required" });
55676
- const credentials = requireApiToken$1();
55719
+ async function fetchAccountsPaged(complianceConfig, resource, credentials) {
55677
55720
  const results = [];
55678
55721
  let getMoreResults = true;
55679
55722
  let page = 1;
@@ -55693,7 +55736,10 @@ Run \`${descriptor.commands.whoami}\` to check your current authentication statu
55693
55736
  __name$2(fetchAccountsPaged, "fetchAccountsPaged");
55694
55737
  async function fetchAllAccounts(complianceConfig, options = {}) {
55695
55738
  const { throwOnEmpty = true } = options;
55696
- const [accountsRes, membershipsRes] = await Promise.allSettled([fetchAccountsPaged(complianceConfig, `/accounts`), fetchAccountsPaged(complianceConfig, `/memberships`)]);
55739
+ const loginResult = await loginOrRefreshIfRequired(complianceConfig);
55740
+ if (!loginResult.loggedIn) throw new UserError$1(`Not logged in. ${NOT_LOGGED_IN_ERROR_BODIES[loginResult.reason]}${NOT_LOGGED_IN_WHOAMI_TIP}`, { telemetryMessage: "cfetch auth login required" });
55741
+ const credentials = requireApiToken$1();
55742
+ const [accountsRes, membershipsRes] = await Promise.allSettled([fetchAccountsPaged(complianceConfig, `/accounts`, credentials), fetchAccountsPaged(complianceConfig, `/memberships`, credentials)]);
55697
55743
  if (accountsRes.status === "rejected") throw accountsRes.reason;
55698
55744
  if (membershipsRes.status === "rejected") if (isMembershipsInaccessible(membershipsRes.reason)) {
55699
55745
  if (accountsRes.status === "fulfilled" && accountsRes.value.length > 0) return accountsRes.value;
@@ -55990,7 +56036,483 @@ function getCfConfigPath() {
55990
56036
  });
55991
56037
  }
55992
56038
  __name$2(getCfConfigPath, "getCfConfigPath");
55993
- var CF_SCOPES = [
56039
+ var CF_REGISTERED_SCOPES = [
56040
+ "access:read",
56041
+ "access:write",
56042
+ "account:read",
56043
+ "agw:read",
56044
+ "agw:run",
56045
+ "agw:write",
56046
+ "ai:read",
56047
+ "ai:write",
56048
+ "ai-search:read",
56049
+ "ai-search:run",
56050
+ "ai-search:write",
56051
+ "aiaudit:read",
56052
+ "aiaudit:write",
56053
+ "aig:read",
56054
+ "aig:write",
56055
+ "auditlogs:read",
56056
+ "billing:read",
56057
+ "billing:write",
56058
+ "browser:read",
56059
+ "browser:write",
56060
+ "cfone:read",
56061
+ "cfone:write",
56062
+ "cloudchamber:write",
56063
+ "connectivity:admin",
56064
+ "connectivity:bind",
56065
+ "connectivity:read",
56066
+ "constellation:write",
56067
+ "containers:write",
56068
+ "d1:write",
56069
+ "dex:read",
56070
+ "dex:write",
56071
+ "dns_analytics:read",
56072
+ "dns_records:edit",
56073
+ "dns_records:read",
56074
+ "dns_settings:read",
56075
+ "email_routing:read",
56076
+ "email_routing:write",
56077
+ "email_sending:read",
56078
+ "email_sending:write",
56079
+ "firstpartytags:write",
56080
+ "images:read",
56081
+ "images:write",
56082
+ "lb:edit",
56083
+ "lb:read",
56084
+ "logpush:read",
56085
+ "logpush:write",
56086
+ "mcp_portals:read",
56087
+ "mcp_portals:write",
56088
+ "notebook-examples:read",
56089
+ "notebook-managed:read",
56090
+ "notification:read",
56091
+ "notification:write",
56092
+ "oauth_account_ssl_and_certificates_write",
56093
+ "offline",
56094
+ "openid",
56095
+ "pages:read",
56096
+ "pages:write",
56097
+ "pipelines:read",
56098
+ "pipelines:setup",
56099
+ "pipelines:write",
56100
+ "query_cache:write",
56101
+ "queues:write",
56102
+ "r2_catalog:write",
56103
+ "radar:read",
56104
+ "rag:read",
56105
+ "rag:write",
56106
+ "registrar:read",
56107
+ "registrar:write",
56108
+ "secrets_store:read",
56109
+ "secrets_store:write",
56110
+ "sso-connector:read",
56111
+ "sso-connector:write",
56112
+ "ssl_certs:write",
56113
+ "teams:pii",
56114
+ "teams:read",
56115
+ "teams:secure_location",
56116
+ "teams:write",
56117
+ "url_scanner:read",
56118
+ "url_scanner:write",
56119
+ "user:read",
56120
+ "vectorize:write",
56121
+ "workers:read",
56122
+ "workers:write",
56123
+ "workers_builds:read",
56124
+ "workers_builds:write",
56125
+ "workers_deployments:read",
56126
+ "workers_kv:write",
56127
+ "workers_observability:read",
56128
+ "workers_observability:write",
56129
+ "workers_observability_telemetry:write",
56130
+ "workers_routes:write",
56131
+ "workers_scripts:write",
56132
+ "workers_tail:read",
56133
+ "zone:read",
56134
+ "account-analytics.read",
56135
+ "account-ssl-and-certificates.write",
56136
+ "ssl-and-certificates.read",
56137
+ "ssl-and-certificates.write",
56138
+ "registrar-domains.read",
56139
+ "registrar-domains.admin",
56140
+ "logs.read",
56141
+ "logs.write",
56142
+ "websearch.run",
56143
+ "snippets.read",
56144
+ "snippets.write",
56145
+ "access-acct.read",
56146
+ "access-acct.revoke",
56147
+ "access-acct.write",
56148
+ "access-app.read",
56149
+ "access-app.revoke",
56150
+ "access-app.write",
56151
+ "access-audit-log.read",
56152
+ "access-certificate.read",
56153
+ "access-certificate.write",
56154
+ "access-custom-page.read",
56155
+ "access-custom-page.write",
56156
+ "access-device-posture.read",
56157
+ "access-device-posture.write",
56158
+ "access-group.read",
56159
+ "access-group.write",
56160
+ "access-idp.read",
56161
+ "access-idp.write",
56162
+ "access-key.read",
56163
+ "access-key.write",
56164
+ "access-org.read",
56165
+ "access-org.revoke",
56166
+ "access-org.write",
56167
+ "access-policy-test.read",
56168
+ "access-policy-test.write",
56169
+ "access-policy.read",
56170
+ "access-policy.write",
56171
+ "access-population.read",
56172
+ "access-population.write",
56173
+ "access-saml-certificate.read",
56174
+ "access-saml-certificate.write",
56175
+ "access-scim-log.read",
56176
+ "access-seats.write",
56177
+ "access-service-token.read",
56178
+ "access-service-token.write",
56179
+ "access-ssh-auditing.read",
56180
+ "access-ssh-auditing.write",
56181
+ "access-tag.read",
56182
+ "access-tag.write",
56183
+ "access-users.read",
56184
+ "access-users.write",
56185
+ "access.read",
56186
+ "access.revoke",
56187
+ "access.write",
56188
+ "account-api-gateway.read",
56189
+ "account-api-gateway.write",
56190
+ "account-custom-asset.read",
56191
+ "account-custom-asset.write",
56192
+ "account-custom-error-rules.read",
56193
+ "account-custom-error-rules.write",
56194
+ "account-custom-pages.read",
56195
+ "account-custom-pages.write",
56196
+ "account-disable-esc.read",
56197
+ "account-disable-esc.write",
56198
+ "account-dns-settings.read",
56199
+ "account-dns-settings.write",
56200
+ "account-firewall-access-rules.read",
56201
+ "account-firewall-access-rules.write",
56202
+ "account-logs.read",
56203
+ "account-logs.write",
56204
+ "account-rule-lists.read",
56205
+ "account-rule-lists.write",
56206
+ "account-rulesets.read",
56207
+ "account-rulesets.write",
56208
+ "account-security-center-insights.read",
56209
+ "account-security-center-insights.write",
56210
+ "account-settings.read",
56211
+ "account-settings.write",
56212
+ "account-ssl-and-certificates.read",
56213
+ "account-waf.read",
56214
+ "account-waf.write",
56215
+ "account-waiting-rooms.read",
56216
+ "address-maps.read",
56217
+ "address-maps.write",
56218
+ "agent-memory.write",
56219
+ "agw.read",
56220
+ "agw.run",
56221
+ "agw.write",
56222
+ "ai-search.index",
56223
+ "ai-search.metadata_read",
56224
+ "ai-search.read",
56225
+ "ai-search.run",
56226
+ "ai-search.write",
56227
+ "ai.read",
56228
+ "ai.write",
56229
+ "aiaudit.read",
56230
+ "aiaudit.write",
56231
+ "aig.metadata_read",
56232
+ "aig.read",
56233
+ "aig.run",
56234
+ "aig.write",
56235
+ "analytics.read",
56236
+ "api-gateway.read",
56237
+ "api-gateway.write",
56238
+ "apps.write",
56239
+ "argotunnel.read",
56240
+ "argotunnel.write",
56241
+ "artifacts.read",
56242
+ "artifacts.write",
56243
+ "bot-management-feedback.read",
56244
+ "bot-management-feedback.write",
56245
+ "bot-management.read",
56246
+ "bot-management.write",
56247
+ "browser-rendering.read",
56248
+ "browser-rendering.write",
56249
+ "cache-settings.read",
56250
+ "cache-settings.write",
56251
+ "cache.purge",
56252
+ "calls.read",
56253
+ "calls.write",
56254
+ "casb.read",
56255
+ "casb.write",
56256
+ "cf-agents.read",
56257
+ "cf-agents.write",
56258
+ "challenge-widgets.read",
56259
+ "challenge-widgets.write",
56260
+ "chinanetwork-steering.read",
56261
+ "chinanetwork-steering.write",
56262
+ "cloud-connector.read",
56263
+ "cloud-connector.write",
56264
+ "cloud-email-security.read",
56265
+ "cloud-email-security.write",
56266
+ "cloudchamber.read",
56267
+ "cloudchamber.write",
56268
+ "cloudforce-one.read",
56269
+ "cloudforce-one.write",
56270
+ "config-settings.read",
56271
+ "config-settings.write",
56272
+ "connectivity-directory.admin",
56273
+ "connectivity-directory.bind",
56274
+ "connectivity-directory.read",
56275
+ "constellation.read",
56276
+ "constellation.write",
56277
+ "containers.read",
56278
+ "containers.write",
56279
+ "custom-errors.read",
56280
+ "custom-errors.write",
56281
+ "custom-pages.read",
56282
+ "custom-pages.write",
56283
+ "d1.metadata_read",
56284
+ "d1.read",
56285
+ "d1.write",
56286
+ "ddos-botnet-feed.read",
56287
+ "ddos-botnet-feed.write",
56288
+ "ddos-protection.read",
56289
+ "ddos-protection.write",
56290
+ "dls.read",
56291
+ "dls.write",
56292
+ "dns-firewall.read",
56293
+ "dns-firewall.write",
56294
+ "dns-view.read",
56295
+ "dns-view.write",
56296
+ "dns.read",
56297
+ "dns.write",
56298
+ "domain-page-shield.read",
56299
+ "domain-page.shield",
56300
+ "dynamic-redirect.read",
56301
+ "dynamic-redirect.write",
56302
+ "email-routing-account-rule.read",
56303
+ "email-routing-address.read",
56304
+ "email-routing-address.write",
56305
+ "email-routing-rule.read",
56306
+ "email-routing-rule.write",
56307
+ "email-routing-suppression.read",
56308
+ "email-routing-suppression.write",
56309
+ "email-security-dmarcreports.read",
56310
+ "email-security-dmarcreports.write",
56311
+ "email-sending.read",
56312
+ "email-sending.write",
56313
+ "fbm.admin",
56314
+ "fbm.read",
56315
+ "fbm.write",
56316
+ "field-extractor.read",
56317
+ "field-extractor.write",
56318
+ "firewall-for-ai.read",
56319
+ "firewall-for-ai.write",
56320
+ "firewall-services.read",
56321
+ "firewall-services.write",
56322
+ "flagship.evaluate",
56323
+ "flagship.read",
56324
+ "flagship.write",
56325
+ "fraud-detection-pii.read",
56326
+ "fraud-detection.read",
56327
+ "fraud-detection.write",
56328
+ "fraud-events.write",
56329
+ "fraud-feedback.read",
56330
+ "fraud-feedback.write",
56331
+ "healthcheck.read",
56332
+ "healthcheck.write",
56333
+ "http-applications.read",
56334
+ "http-applications.write",
56335
+ "http-ddos-managed-ruleset.read",
56336
+ "http-ddos-managed-ruleset.write",
56337
+ "images.metadata_read",
56338
+ "images.read",
56339
+ "images.write",
56340
+ "integration.write",
56341
+ "intel.read",
56342
+ "intel.write",
56343
+ "iot.read",
56344
+ "iot.write",
56345
+ "ip-prefix-bgp-on-demand.read",
56346
+ "ip-prefix-bgp-on-demand.write",
56347
+ "ip-prefix.read",
56348
+ "ip-prefix.write",
56349
+ "l4-ddos-managed-ruleset.read",
56350
+ "l4-ddos-managed-ruleset.write",
56351
+ "load-balancers-account.read",
56352
+ "load-balancers-account.write",
56353
+ "load-balancers.read",
56354
+ "load-balancers.write",
56355
+ "load-balancing-monitors-and-pools.read",
56356
+ "load-balancing-monitors-and-pools.write",
56357
+ "magic-firewall.read",
56358
+ "magic-firewall.write",
56359
+ "magic-transit.read",
56360
+ "magic-transit.write",
56361
+ "magic-wan.read",
56362
+ "magic-wan.write",
56363
+ "managed-headers.read",
56364
+ "managed-headers.write",
56365
+ "mass-url-redirects.read",
56366
+ "mass-url-redirects.write",
56367
+ "mcp-portals.read",
56368
+ "mcp-portals.write",
56369
+ "memberships.read",
56370
+ "memberships.write",
56371
+ "messaging.edit",
56372
+ "messaging.metadata_read",
56373
+ "messaging.read",
56374
+ "moq.read",
56375
+ "moq.write",
56376
+ "notifications.read",
56377
+ "notifications.write",
56378
+ "origin.read",
56379
+ "origin.write",
56380
+ "page-rules.read",
56381
+ "page-rules.write",
56382
+ "page-shield.read",
56383
+ "page.read",
56384
+ "page.shield",
56385
+ "page.write",
56386
+ "pages.metadata_read",
56387
+ "payments-gateway.read",
56388
+ "payments-gateway.write",
56389
+ "pcaps-api.read",
56390
+ "pcaps-api.write",
56391
+ "pipelines.read",
56392
+ "pipelines.send",
56393
+ "pipelines.write",
56394
+ "precursor.read",
56395
+ "precursor.write",
56396
+ "pubsub.read",
56397
+ "pubsub.write",
56398
+ "query-cache.read",
56399
+ "query-cache.write",
56400
+ "queues.metadata_read",
56401
+ "queues.read",
56402
+ "queues.write",
56403
+ "r2-catalog-sql.read",
56404
+ "r2-catalog.read",
56405
+ "r2-catalog.write",
56406
+ "radar.read",
56407
+ "rag.read",
56408
+ "rag.run",
56409
+ "rag.write",
56410
+ "realtime.admin",
56411
+ "realtime.read",
56412
+ "realtime.write",
56413
+ "registrar-sandbox-domains.admin",
56414
+ "registrar-sandbox-domains.read",
56415
+ "reports-application-security-report.read",
56416
+ "request-tracer.read",
56417
+ "resource-library.read",
56418
+ "resource-library.write",
56419
+ "resource-sharing.read",
56420
+ "response-compression.read",
56421
+ "response-compression.write",
56422
+ "sanitize.read",
56423
+ "sanitize.write",
56424
+ "secrets-store.read",
56425
+ "secrets-store.write",
56426
+ "select-configuration.read",
56427
+ "select-configuration.write",
56428
+ "stream.metadata_read",
56429
+ "stream.read",
56430
+ "stream.write",
56431
+ "tag.read",
56432
+ "tag.write",
56433
+ "teams-cds-compute-account.read",
56434
+ "teams-cds-compute-account.write",
56435
+ "teams-connector-cloudflared.monitoring",
56436
+ "teams-connector-cloudflared.read",
56437
+ "teams-connector-cloudflared.write",
56438
+ "teams-connector-warp.read",
56439
+ "teams-connector-warp.write",
56440
+ "teams-connectors.read",
56441
+ "teams-connectors.write",
56442
+ "teams-dex.read",
56443
+ "teams-dex.write",
56444
+ "teams-networks.read",
56445
+ "teams-networks.write",
56446
+ "teams-pii.read",
56447
+ "teams-resilience.read",
56448
+ "teams-resilience.write",
56449
+ "teams-secure.location",
56450
+ "teams.read",
56451
+ "teams.report",
56452
+ "teams.write",
56453
+ "transform-rules.read",
56454
+ "transform-rules.write",
56455
+ "trust-and-safety.read",
56456
+ "trust-and-safety.write",
56457
+ "url-scanner.read",
56458
+ "url-scanner.write",
56459
+ "user-details.read",
56460
+ "user-details.write",
56461
+ "vectorize.read",
56462
+ "vectorize.write",
56463
+ "waiting-rooms.read",
56464
+ "waiting-rooms.write",
56465
+ "web3-hostnames.read",
56466
+ "web3-hostnames.write",
56467
+ "websearch.metadata_read",
56468
+ "websearch.read",
56469
+ "websearch.write",
56470
+ "workers-ci.read",
56471
+ "workers-ci.write",
56472
+ "workers-kv-storage.metadata_read",
56473
+ "workers-kv-storage.read",
56474
+ "workers-kv-storage.write",
56475
+ "workers-observability-telemetry.write",
56476
+ "workers-observability.read",
56477
+ "workers-observability.write",
56478
+ "workers-r2-bucket-item.read",
56479
+ "workers-r2-bucket-item.write",
56480
+ "workers-r2.metadata_read",
56481
+ "workers-r2.read",
56482
+ "workers-r2.write",
56483
+ "workers-routes.read",
56484
+ "workers-routes.write",
56485
+ "workers-scripts.bind",
56486
+ "workers-scripts.read",
56487
+ "workers-scripts.write",
56488
+ "workers-tail.read",
56489
+ "workers_ai.metadata_read",
56490
+ "zaraz.edit",
56491
+ "zaraz.read",
56492
+ "zaraz.write",
56493
+ "zone-access.read",
56494
+ "zone-access.revoke",
56495
+ "zone-access.write",
56496
+ "zone-custom-asset.read",
56497
+ "zone-custom-asset.write",
56498
+ "zone-disable-esc.read",
56499
+ "zone-disable-esc.write",
56500
+ "zone-dns-settings.read",
56501
+ "zone-dns-settings.write",
56502
+ "zone-security-center-insights.read",
56503
+ "zone-security-center-insights.write",
56504
+ "zone-settings.read",
56505
+ "zone-settings.write",
56506
+ "zone-transform-rules.read",
56507
+ "zone-transform-rules.write",
56508
+ "zone-versioning.read",
56509
+ "zone-versioning.write",
56510
+ "zone-waf.read",
56511
+ "zone-waf.write",
56512
+ "zone.read",
56513
+ "zone.write"
56514
+ ];
56515
+ var DefaultScopeKeys$1 = [...[
55994
56516
  "openid",
55995
56517
  "offline",
55996
56518
  "user:read",
@@ -56079,13 +56601,12 @@ var CF_SCOPES = [
56079
56601
  "workers_scripts:write",
56080
56602
  "workers_tail:read",
56081
56603
  "zone:read"
56082
- ];
56083
- var DefaultScopeKeys$1 = [...CF_SCOPES];
56604
+ ]];
56084
56605
  function setLoginScopeKeys$1(scopes) {
56085
56606
  DefaultScopeKeys$1 = scopes;
56086
56607
  }
56087
56608
  __name$2(setLoginScopeKeys$1, "setLoginScopeKeys");
56088
- var CF_SCOPE_SET = new Set(CF_SCOPES);
56609
+ var CF_SCOPE_SET = new Set(CF_REGISTERED_SCOPES);
56089
56610
  function validateScopeKeys$1(scopes) {
56090
56611
  return scopes.every((scope) => CF_SCOPE_SET.has(scope));
56091
56612
  }
@@ -56114,12 +56635,13 @@ var CF_CLI = {
56114
56635
  login: "cf auth login",
56115
56636
  whoami: "cf auth whoami",
56116
56637
  createProfile: "cf auth create",
56117
- deviceLogin: "cf auth login --device"
56638
+ deviceLogin: "cf auth login"
56118
56639
  },
56119
56640
  keyringServiceName: CF_KEYRING_SERVICE_NAME,
56120
56641
  clientId: getClientIdFromEnv$1,
56121
56642
  consent: CF_CONSENT_PAGES,
56122
56643
  redirectUri: CF_OAUTH_CALLBACK_URL,
56644
+ useDeviceFlowByDefault: true,
56123
56645
  allowGlobalAuthKey: false,
56124
56646
  getConfigPath: getCfConfigPath,
56125
56647
  getTemporaryAccountConfigPath: getCfTemporaryAccountConfigPath,
@@ -56174,7 +56696,6 @@ var DefaultScopes = {
56174
56696
  "ai:write": "See and change Workers AI catalog and assets",
56175
56697
  "ai-search:write": "See and change AI Search data",
56176
56698
  "ai-search:run": "Run search queries on your AI Search instances",
56177
- "websearch.run": "Run search queries against Cloudflare Web Search",
56178
56699
  "agent-memory:write": "See and change Agent Memory data such as keys and namespaces.",
56179
56700
  "queues:write": "See and change Cloudflare Queues settings and data",
56180
56701
  "pipelines:write": "See and change Cloudflare Pipelines configurations and data",
@@ -59982,7 +60503,7 @@ var require_command_exists = /* @__PURE__ */ __commonJS$2({ "../../node_modules/
59982
60503
  }) });
59983
60504
 
59984
60505
  //#endregion
59985
- //#region ../deploy-helpers/dist/chunk-3G6JZQDH.mjs
60506
+ //#region ../deploy-helpers/dist/chunk-QBZBEHZB.mjs
59986
60507
  var import_undici$1 = require_undici();
59987
60508
  var import_command_exists = require_command_exists();
59988
60509
  function handleUnsafeCapnp(capnp) {
@@ -60059,7 +60580,6 @@ function createWorkerUploadForm(worker, bindings, options) {
60059
60580
  const vectorize = extractBindingsOfType("vectorize", bindings);
60060
60581
  const ai_search_namespaces = extractBindingsOfType("ai_search_namespace", bindings);
60061
60582
  const ai_search = extractBindingsOfType("ai_search", bindings);
60062
- const websearch = extractBindingsOfType("websearch", bindings)[0];
60063
60583
  const agent_memory = extractBindingsOfType("agent_memory", bindings);
60064
60584
  const hyperdrive = extractBindingsOfType("hyperdrive", bindings);
60065
60585
  const secrets_store_secrets = extractBindingsOfType("secrets_store_secret", bindings);
@@ -60235,10 +60755,6 @@ function createWorkerUploadForm(worker, bindings, options) {
60235
60755
  instance_name
60236
60756
  });
60237
60757
  });
60238
- if (websearch !== void 0) metadataBindings.push({
60239
- name: websearch.binding,
60240
- type: "websearch"
60241
- });
60242
60758
  agent_memory.forEach(({ binding, namespace }) => {
60243
60759
  if (options?.dryRun) namespace ??= INHERIT_SYMBOL;
60244
60760
  if (namespace === void 0) throw new UserError$1(`${binding} bindings must have a "namespace" field. Add a "namespace" field to the binding in your Worker configuration specifying the namespace to bind to.`, { telemetryMessage: false });
@@ -60542,7 +61058,7 @@ __name$1(createWorkerUploadForm, "createWorkerUploadForm");
60542
61058
  //#endregion
60543
61059
  //#region ../remote-bindings/dist/index.mjs
60544
61060
  var import_undici = require_undici();
60545
- var version = "0.0.24";
61061
+ var version = "0.0.26";
60546
61062
  var NoDefaultValueProvided = class extends UserError$1 {
60547
61063
  constructor() {
60548
61064
  super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
@@ -61647,10 +62163,6 @@ const KnownBindingSchema = z$1.discriminatedUnion("type", [
61647
62163
  const value = input;
61648
62164
  return value.tunnelId !== void 0 && value.networkId !== void 0 ? `"vpc-network" bindings must specify exactly one of "tunnelId" or "networkId", not both` : `"vpc-network" bindings must specify either "tunnelId" or "networkId"`;
61649
62165
  } }),
61650
- z$1.strictObject({
61651
- type: z$1.literal("web-search"),
61652
- dev: RemoteBindingDevSchema.optional()
61653
- }),
61654
62166
  WorkerBindingSchema,
61655
62167
  z$1.strictObject({ type: z$1.literal("worker-loader") })
61656
62168
  ]);
@@ -61689,8 +62201,7 @@ const SINGLETON_BINDING_TYPES = new Set([
61689
62201
  "images",
61690
62202
  "media",
61691
62203
  "stream",
61692
- "version-metadata",
61693
- "web-search"
62204
+ "version-metadata"
61694
62205
  ]);
61695
62206
  const listFormatter = new Intl.ListFormat("en-US");
61696
62207
  function validateSingletonBindings(env$2, ctx) {
@@ -62596,12 +63107,6 @@ function convertBindingsAndAssets(config$1, result) {
62596
63107
  remote: binding.dev?.remote
62597
63108
  }));
62598
63109
  break;
62599
- case "web-search":
62600
- result.websearch = omitUndefined({
62601
- binding: name,
62602
- remote: binding.dev?.remote
62603
- });
62604
- break;
62605
63110
  case "worker":
62606
63111
  services.push(omitUndefined({
62607
63112
  binding: name,