vite 7.0.0-beta.1 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
2
- import { __commonJS, __toESM } from "./dep-B4i1tHPo.js";
2
+ import { __commonJS, __toDynamicImportESM, __toESM } from "./dep-Drtntmtt.js";
3
3
  import { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_INLINE_LIMIT, DEFAULT_ASSETS_RE, DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_PREVIEW_PORT, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, DEP_VERSION_RE, DEV_PROD_CONDITION, ENV_ENTRY, ENV_PUBLIC_PATH, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, METADATA_FILENAME, OPTIMIZABLE_ENTRY_RE, ROLLUP_HOOKS, SPECIAL_QUERY_RE, VERSION, VITE_PACKAGE_DIR, defaultAllowedOrigins, loopbackHosts, wildcardHosts } from "./dep-Ctugieod.js";
4
4
  import { builtinModules, createRequire } from "node:module";
5
5
  import { parseAst, parseAstAsync } from "rollup/parseAst";
@@ -1779,7 +1779,7 @@ function walk$2(ast, { enter, leave }) {
1779
1779
  }
1780
1780
 
1781
1781
  //#endregion
1782
- //#region ../../node_modules/.pnpm/@rollup+pluginutils@5.1.4_rollup@4.40.1/node_modules/@rollup/pluginutils/dist/es/index.js
1782
+ //#region ../../node_modules/.pnpm/@rollup+pluginutils@5.2.0_rollup@4.40.1/node_modules/@rollup/pluginutils/dist/es/index.js
1783
1783
  const extractors = {
1784
1784
  ArrayPattern(names, param) {
1785
1785
  for (const element of param.elements) if (element) extractors[element.type](names, element);
@@ -2025,7 +2025,7 @@ let pnp;
2025
2025
  if (process.versions.pnp) try {
2026
2026
  pnp = createRequire(
2027
2027
  /** #__KEEP__ */
2028
- new URL("../../../src/node/packages.ts", import.meta.url)
2028
+ import.meta.url
2029
2029
  )("pnpapi");
2030
2030
  } catch {}
2031
2031
  function invalidatePackageData(packageCache, pkgPath) {
@@ -2236,8 +2236,8 @@ function traverseBetweenDirs(longerDir, shorterDir, cb) {
2236
2236
 
2237
2237
  //#endregion
2238
2238
  //#region src/node/utils.ts
2239
- var import_picocolors$33 = __toESM(require_picocolors());
2240
- var import_node = __toESM(require_node$1());
2239
+ var import_picocolors$33 = __toESM(require_picocolors(), 1);
2240
+ var import_node = __toESM(require_node$1(), 1);
2241
2241
  const createFilter = createFilter$2;
2242
2242
  const replaceSlashOrColonRE = /[/:]/g;
2243
2243
  const replaceDotRE = /\./g;
@@ -2274,9 +2274,9 @@ function createIsBuiltin(builtins$1) {
2274
2274
  }
2275
2275
  const nodeLikeBuiltins = [
2276
2276
  ...nodeBuiltins,
2277
- new RegExp(`^${NODE_BUILTIN_NAMESPACE}`),
2278
- new RegExp(`^${NPM_BUILTIN_NAMESPACE}`),
2279
- new RegExp(`^${BUN_BUILTIN_NAMESPACE}`)
2277
+ /* @__PURE__ */ new RegExp(`^${NODE_BUILTIN_NAMESPACE}`),
2278
+ /* @__PURE__ */ new RegExp(`^${NPM_BUILTIN_NAMESPACE}`),
2279
+ /* @__PURE__ */ new RegExp(`^${BUN_BUILTIN_NAMESPACE}`)
2280
2280
  ];
2281
2281
  function isNodeLikeBuiltin(id) {
2282
2282
  return isBuiltin(nodeLikeBuiltins, id);
@@ -2299,11 +2299,11 @@ const bareImportRE = /^(?![a-zA-Z]:)[\w@](?!.*:\/\/)/;
2299
2299
  const deepImportRE = /^([^@][^/]*)\/|^(@[^/]+\/[^/]+)\//;
2300
2300
  const _require$1 = createRequire(
2301
2301
  /** #__KEEP__ */
2302
- new URL("../../../src/node/utils.ts", import.meta.url)
2302
+ import.meta.url
2303
2303
  );
2304
2304
  const _dirname = path.dirname(fileURLToPath(
2305
2305
  /** #__KEEP__ */
2306
- new URL("../../../src/node/utils.ts", import.meta.url)
2306
+ import.meta.url
2307
2307
  ));
2308
2308
  const rollupVersion = resolvePackageData("rollup", _dirname, true)?.data.version ?? "";
2309
2309
  const filter = process.env.VITE_DEBUG_FILTER;
@@ -2385,7 +2385,7 @@ const internalPrefixes = [
2385
2385
  CLIENT_PUBLIC_PATH,
2386
2386
  ENV_PUBLIC_PATH
2387
2387
  ];
2388
- const InternalPrefixRE = new RegExp(`^(?:${internalPrefixes.join("|")})`);
2388
+ const InternalPrefixRE = /* @__PURE__ */ new RegExp(`^(?:${internalPrefixes.join("|")})`);
2389
2389
  const trailingSeparatorRE = /[?&]$/;
2390
2390
  const isImportRequest = (url$6) => importQueryRE.test(url$6);
2391
2391
  const isInternalRequest = (url$6) => InternalPrefixRE.test(url$6);
@@ -2488,21 +2488,10 @@ function posToNumber(source, pos) {
2488
2488
  function numberToPos(source, offset$1) {
2489
2489
  if (typeof offset$1 !== "number") return offset$1;
2490
2490
  if (offset$1 > source.length) throw new Error(`offset is longer than source length! offset ${offset$1} > length ${source.length}`);
2491
- const lines = source.split(splitRE);
2492
- let counted = 0;
2493
- let line = 0;
2494
- let column = 0;
2495
- for (; line < lines.length; line++) {
2496
- const lineLength = lines[line].length + 1;
2497
- if (counted + lineLength >= offset$1) {
2498
- column = offset$1 - counted + 1;
2499
- break;
2500
- }
2501
- counted += lineLength;
2502
- }
2491
+ const lines = source.slice(0, offset$1).split(splitRE);
2503
2492
  return {
2504
- line: line + 1,
2505
- column
2493
+ line: lines.length,
2494
+ column: lines[lines.length - 1].length
2506
2495
  };
2507
2496
  }
2508
2497
  function generateCodeFrame(source, start = 0, end) {
@@ -2598,7 +2587,7 @@ async function recursiveReaddir(dir) {
2598
2587
  throw e$1;
2599
2588
  }
2600
2589
  if (dirents.some((dirent) => dirent.isSymbolicLink())) {
2601
- const err$2 = new Error("Symbolic links are not supported in recursiveReaddir");
2590
+ const err$2 = /* @__PURE__ */ new Error("Symbolic links are not supported in recursiveReaddir");
2602
2591
  err$2.code = ERR_SYMLINK_IN_RECURSIVE_READDIR;
2603
2592
  throw err$2;
2604
2593
  }
@@ -2849,7 +2838,7 @@ function getHash(text, length = 8) {
2849
2838
  const requireResolveFromRootWithFallback = (root, id) => {
2850
2839
  const found$1 = resolvePackageData(id, root) || resolvePackageData(id, _dirname);
2851
2840
  if (!found$1) {
2852
- const error$1 = new Error(`${JSON.stringify(id)} not found.`);
2841
+ const error$1 = /* @__PURE__ */ new Error(`${JSON.stringify(id)} not found.`);
2853
2842
  error$1.code = "MODULE_NOT_FOUND";
2854
2843
  throw error$1;
2855
2844
  }
@@ -4032,7 +4021,7 @@ var MagicString = class MagicString {
4032
4021
  return this.trimStart(charType).trimEnd(charType);
4033
4022
  }
4034
4023
  trimEndAborted(charType) {
4035
- const rx = new RegExp((charType || "\\s") + "+$");
4024
+ const rx = /* @__PURE__ */ new RegExp((charType || "\\s") + "+$");
4036
4025
  this.outro = this.outro.replace(rx, "");
4037
4026
  if (this.outro.length) return true;
4038
4027
  let chunk = this.lastChunk;
@@ -4055,7 +4044,7 @@ var MagicString = class MagicString {
4055
4044
  return this;
4056
4045
  }
4057
4046
  trimStartAborted(charType) {
4058
- const rx = new RegExp("^" + (charType || "\\s") + "+");
4047
+ const rx = /* @__PURE__ */ new RegExp("^" + (charType || "\\s") + "+");
4059
4048
  this.intro = this.intro.replace(rx, "");
4060
4049
  if (this.intro.length) return true;
4061
4050
  let chunk = this.firstChunk;
@@ -4171,10 +4160,10 @@ var require_is_reference = __commonJS({ "../../node_modules/.pnpm/is-reference@1
4171
4160
  } });
4172
4161
 
4173
4162
  //#endregion
4174
- //#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@28.0.3_rollup@4.40.1/node_modules/@rollup/plugin-commonjs/dist/es/index.js
4163
+ //#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@28.0.6_rollup@4.40.1/node_modules/@rollup/plugin-commonjs/dist/es/index.js
4175
4164
  var import_commondir = __toESM(require_commondir(), 1);
4176
4165
  var import_is_reference = __toESM(require_is_reference(), 1);
4177
- var version$1 = "28.0.3";
4166
+ var version$1 = "28.0.6";
4178
4167
  var peerDependencies = { rollup: "^2.68.0||^3.0.0||^4.0.0" };
4179
4168
  function tryParse(parse$16, code, id) {
4180
4169
  try {
@@ -4289,7 +4278,7 @@ function getDynamicRequireModules(patterns, dynamicRequireRoot) {
4289
4278
  for (const pattern of !patterns || Array.isArray(patterns) ? patterns || [] : [patterns]) {
4290
4279
  const isNegated = pattern.startsWith("!");
4291
4280
  const modifyMap = (targetPath, resolvedPath) => isNegated ? dynamicRequireModules.delete(targetPath) : dynamicRequireModules.set(targetPath, resolvedPath);
4292
- for (const path$13 of new fdir().withBasePath().withDirs().glob(isNegated ? pattern.substr(1) : pattern).crawl().sync().sort((a, b) => a.localeCompare(b, "en"))) {
4281
+ for (const path$13 of new fdir().withBasePath().withDirs().glob(isNegated ? pattern.substr(1) : pattern).crawl(relative$1(".", dynamicRequireRoot)).sync().sort((a, b) => a.localeCompare(b, "en"))) {
4293
4282
  const resolvedPath = resolve$1(path$13);
4294
4283
  const requirePath = normalizePathSlashes(resolvedPath);
4295
4284
  if (isDirectory$1(resolvedPath)) {
@@ -4444,7 +4433,11 @@ export function getAugmentedNamespace(n) {
4444
4433
  var f = n.default;
4445
4434
  if (typeof f == "function") {
4446
4435
  var a = function a () {
4447
- if (this instanceof a) {
4436
+ var isInstance = false;
4437
+ try {
4438
+ isInstance = this instanceof a;
4439
+ } catch {}
4440
+ if (isInstance) {
4448
4441
  return Reflect.construct(f, arguments, this.constructor);
4449
4442
  }
4450
4443
  return f.apply(this, arguments);
@@ -4630,7 +4623,7 @@ function getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyR
4630
4623
  }
4631
4624
  const parentRequireSet = new Set((parentRequires || []).map(({ resolved: { id } }) => id));
4632
4625
  return (await Promise.all(Object.keys(resolvedSources).map((source) => resolvedSources[source]).filter(({ id, external }) => !(external || parentRequireSet.has(id))).map(async (resolved) => {
4633
- if (isWrappedId(resolved.id, ES_IMPORT_SUFFIX)) return await getTypeForImportedModule((await this.load({ id: resolved.id })).meta.commonjs.resolved, this.load) !== IS_WRAPPED_COMMONJS;
4626
+ if (isWrappedId(resolved.id, ES_IMPORT_SUFFIX)) return await getTypeForImportedModule((await this.load(resolved)).meta.commonjs.resolved, this.load) !== IS_WRAPPED_COMMONJS;
4634
4627
  return await getTypeForImportedModule(resolved, this.load) === IS_WRAPPED_COMMONJS;
4635
4628
  }))).some((shouldTransform) => shouldTransform);
4636
4629
  },
@@ -5424,7 +5417,7 @@ function perEnvironmentState(initial) {
5424
5417
 
5425
5418
  //#endregion
5426
5419
  //#region src/node/logger.ts
5427
- var import_picocolors$32 = __toESM(require_picocolors());
5420
+ var import_picocolors$32 = __toESM(require_picocolors(), 1);
5428
5421
  const LogLevels = {
5429
5422
  silent: 0,
5430
5423
  error: 1,
@@ -5523,7 +5516,7 @@ function printServerUrls(urls, optionsHost, info) {
5523
5516
 
5524
5517
  //#endregion
5525
5518
  //#region src/node/plugins/reporter.ts
5526
- var import_picocolors$31 = __toESM(require_picocolors());
5519
+ var import_picocolors$31 = __toESM(require_picocolors(), 1);
5527
5520
  const groups = [
5528
5521
  {
5529
5522
  name: "Assets",
@@ -6569,7 +6562,7 @@ var TSConfckCache = class {
6569
6562
 
6570
6563
  //#endregion
6571
6564
  //#region src/node/plugins/esbuild.ts
6572
- var import_picocolors$30 = __toESM(require_picocolors());
6565
+ var import_picocolors$30 = __toESM(require_picocolors(), 1);
6573
6566
  const debug$17 = createDebugger("vite:esbuild");
6574
6567
  const IIFE_BEGIN_RE = /(?:const|var)\s+\S+\s*=\s*function\([^()]*\)\s*\{\s*"use strict";/;
6575
6568
  const validExtensionRE = /\.\w+$/;
@@ -6872,7 +6865,7 @@ var Worker$1 = class {
6872
6865
  }
6873
6866
  stop() {
6874
6867
  this._pool.forEach((w$1) => w$1.unref());
6875
- this._queue.forEach(([, reject]) => reject(new Error("Main worker pool stopped before a worker was available.")));
6868
+ this._queue.forEach(([, reject]) => reject(/* @__PURE__ */ new Error("Main worker pool stopped before a worker was available.")));
6876
6869
  this._pool = [];
6877
6870
  this._idlePool = [];
6878
6871
  this._queue = [];
@@ -6919,7 +6912,7 @@ var Worker$1 = class {
6919
6912
  const i$1 = this._pool.indexOf(worker);
6920
6913
  if (i$1 > -1) this._pool.splice(i$1, 1);
6921
6914
  if (code !== 0 && worker.currentReject) {
6922
- worker.currentReject(new Error(`Worker stopped with non-0 exit code ${code}`));
6915
+ worker.currentReject(/* @__PURE__ */ new Error(`Worker stopped with non-0 exit code ${code}`));
6923
6916
  worker.currentReject = null;
6924
6917
  parentFunctionResponder.close();
6925
6918
  }
@@ -7162,7 +7155,7 @@ const loadTerserPath = (root) => {
7162
7155
  } catch (e$1) {
7163
7156
  if (e$1.code === "MODULE_NOT_FOUND") throw new Error("terser not found. Since Vite v3, terser has become an optional dependency. You need to install it.");
7164
7157
  else {
7165
- const message = new Error(`terser failed to load:\n${e$1.message}`);
7158
+ const message = /* @__PURE__ */ new Error(`terser failed to load:\n${e$1.message}`);
7166
7159
  message.stack = e$1.stack + "\n" + message.stack;
7167
7160
  throw message;
7168
7161
  }
@@ -7688,7 +7681,7 @@ function checkPublicFile(url$6, config$2) {
7688
7681
 
7689
7682
  //#endregion
7690
7683
  //#region src/node/plugins/asset.ts
7691
- var import_picocolors$29 = __toESM(require_picocolors());
7684
+ var import_picocolors$29 = __toESM(require_picocolors(), 1);
7692
7685
  const assetUrlRE = /__VITE_ASSET__([\w$]+)__(?:\$_(.*?)__)?/g;
7693
7686
  const jsSourceMapRE = /\.[cm]?js\.map$/;
7694
7687
  const noInlineRE = /[?&]no-inline\b/;
@@ -8081,7 +8074,7 @@ function parse(E$1, g = "@") {
8081
8074
  const I = E$1.length + 1, w$1 = (C.__heap_base.value || C.__heap_base) + 4 * I - C.memory.buffer.byteLength;
8082
8075
  w$1 > 0 && C.memory.grow(Math.ceil(w$1 / 65536));
8083
8076
  const K = C.sa(I - 1);
8084
- if ((A ? B : Q)(E$1, new Uint16Array(C.memory.buffer, K, I)), !C.parse()) throw Object.assign(new Error(`Parse error ${g}:${E$1.slice(0, C.e()).split("\n").length}:${C.e() - E$1.lastIndexOf("\n", C.e() - 1)}`), { idx: C.e() });
8077
+ if ((A ? B : Q)(E$1, new Uint16Array(C.memory.buffer, K, I)), !C.parse()) throw Object.assign(/* @__PURE__ */ new Error(`Parse error ${g}:${E$1.slice(0, C.e()).split("\n").length}:${C.e() - E$1.lastIndexOf("\n", C.e() - 1)}`), { idx: C.e() });
8085
8078
  const o$1 = [], D = [];
8086
8079
  for (; C.ri();) {
8087
8080
  const A$1 = C.is(), Q$1 = C.ie(), B$1 = C.it(), g$1 = C.ai(), I$1 = C.id(), w$2 = C.ss(), K$1 = C.se();
@@ -8293,7 +8286,7 @@ var require_convert_source_map = __commonJS({ "../../node_modules/.pnpm/convert-
8293
8286
 
8294
8287
  //#endregion
8295
8288
  //#region src/node/server/sourcemap.ts
8296
- var import_convert_source_map$2 = __toESM(require_convert_source_map());
8289
+ var import_convert_source_map$2 = __toESM(require_convert_source_map(), 1);
8297
8290
  const debug$16 = createDebugger("vite:sourcemap", { onlyWhenFocused: true });
8298
8291
  const virtualSourceRE = /^(?:dep:|browser-external:|virtual:)|\0/;
8299
8292
  async function computeSourceRoute(map$1, file) {
@@ -8353,9 +8346,9 @@ function applySourcemapIgnoreList(map$1, sourcemapPath, sourcemapIgnoreList, log
8353
8346
  }
8354
8347
  }
8355
8348
  async function extractSourcemapFromFile(code, filePath) {
8356
- const map$1 = (import_convert_source_map$2.default.fromSource(code) || await import_convert_source_map$2.default.fromMapFileSource(code, createConvertSourceMapReadMap(filePath)))?.toObject();
8349
+ const map$1 = (import_convert_source_map$2.fromSource(code) || await import_convert_source_map$2.fromMapFileSource(code, createConvertSourceMapReadMap(filePath)))?.toObject();
8357
8350
  if (map$1) return {
8358
- code: code.replace(import_convert_source_map$2.default.mapFileCommentRegex, blankReplacer),
8351
+ code: code.replace(import_convert_source_map$2.mapFileCommentRegex, blankReplacer),
8359
8352
  map: map$1
8360
8353
  };
8361
8354
  }
@@ -8714,8 +8707,8 @@ var require_src$1 = __commonJS({ "../../node_modules/.pnpm/lilconfig@3.1.3/node_
8714
8707
  } });
8715
8708
 
8716
8709
  //#endregion
8717
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.4_tsx@4.19.4_yaml@2.8.0/node_modules/postcss-load-config/src/req.js
8718
- var require_req = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.4_tsx@4.19.4_yaml@2.8.0/node_modules/postcss-load-config/src/req.js"(exports, module) {
8710
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/req.js
8711
+ var require_req = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/req.js"(exports, module) {
8719
8712
  const { createRequire: createRequire$2 } = require("node:module");
8720
8713
  const { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = require("node:url");
8721
8714
  const TS_EXT_RE = /\.[mc]?ts$/;
@@ -8757,8 +8750,8 @@ var require_req = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0
8757
8750
  } });
8758
8751
 
8759
8752
  //#endregion
8760
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.4_tsx@4.19.4_yaml@2.8.0/node_modules/postcss-load-config/src/options.js
8761
- var require_options = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.4_tsx@4.19.4_yaml@2.8.0/node_modules/postcss-load-config/src/options.js"(exports, module) {
8753
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/options.js
8754
+ var require_options = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/options.js"(exports, module) {
8762
8755
  const req$2 = require_req();
8763
8756
  /**
8764
8757
  * Load Options
@@ -8792,8 +8785,8 @@ var require_options = __commonJS({ "../../node_modules/.pnpm/postcss-load-config
8792
8785
  } });
8793
8786
 
8794
8787
  //#endregion
8795
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.4_tsx@4.19.4_yaml@2.8.0/node_modules/postcss-load-config/src/plugins.js
8796
- var require_plugins = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.4_tsx@4.19.4_yaml@2.8.0/node_modules/postcss-load-config/src/plugins.js"(exports, module) {
8788
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/plugins.js
8789
+ var require_plugins = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/plugins.js"(exports, module) {
8797
8790
  const req$1 = require_req();
8798
8791
  /**
8799
8792
  * Plugin Loader
@@ -8847,8 +8840,8 @@ var require_plugins = __commonJS({ "../../node_modules/.pnpm/postcss-load-config
8847
8840
  } });
8848
8841
 
8849
8842
  //#endregion
8850
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.4_tsx@4.19.4_yaml@2.8.0/node_modules/postcss-load-config/src/index.js
8851
- var require_src = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.4_tsx@4.19.4_yaml@2.8.0/node_modules/postcss-load-config/src/index.js"(exports, module) {
8843
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/index.js
8844
+ var require_src = __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.0/node_modules/postcss-load-config/src/index.js"(exports, module) {
8852
8845
  const { resolve: resolve$2 } = require("node:path");
8853
8846
  const config$1 = require_src$1();
8854
8847
  const loadOptions = require_options();
@@ -9656,7 +9649,7 @@ function esbuildDepPlugin(environment, qualified, external) {
9656
9649
  esmPackageCache.clear();
9657
9650
  cjsPackageCache.clear();
9658
9651
  });
9659
- build$3.onResolve({ filter: new RegExp(`\\.(` + allExternalTypes.join("|") + `)(\\?.*)?$`) }, async ({ path: id, importer, kind }) => {
9652
+ build$3.onResolve({ filter: /* @__PURE__ */ new RegExp(`\\.(` + allExternalTypes.join("|") + `)(\\?.*)?$`) }, async ({ path: id, importer, kind }) => {
9660
9653
  if (id.startsWith(convertedExternalPrefix)) return {
9661
9654
  path: id.slice(convertedExternalPrefix.length),
9662
9655
  external: true
@@ -9740,7 +9733,7 @@ function esbuildCjsExternalPlugin(externals, platform$2) {
9740
9733
  name: "cjs-external",
9741
9734
  setup(build$3) {
9742
9735
  const filter$1 = new RegExp(externals.map(matchesEntireLine).join("|"));
9743
- build$3.onResolve({ filter: new RegExp(`^${nonFacadePrefix}`) }, (args) => {
9736
+ build$3.onResolve({ filter: /* @__PURE__ */ new RegExp(`^${nonFacadePrefix}`) }, (args) => {
9744
9737
  return {
9745
9738
  path: args.path.slice(nonFacadePrefix.length),
9746
9739
  external: true
@@ -9769,7 +9762,7 @@ module.exports = ${isNodeBuiltin(args.path) ? "m.default" : "{ ...m }"};
9769
9762
 
9770
9763
  //#endregion
9771
9764
  //#region src/node/baseEnvironment.ts
9772
- var import_picocolors$28 = __toESM(require_picocolors());
9765
+ var import_picocolors$28 = __toESM(require_picocolors(), 1);
9773
9766
  const environmentColors = [
9774
9767
  import_picocolors$28.default.blue,
9775
9768
  import_picocolors$28.default.magenta,
@@ -10316,7 +10309,7 @@ function stripLiteralDetailed(code, options$1) {
10316
10309
 
10317
10310
  //#endregion
10318
10311
  //#region src/node/plugins/importMetaGlob.ts
10319
- var import_picocolors$27 = __toESM(require_picocolors());
10312
+ var import_picocolors$27 = __toESM(require_picocolors(), 1);
10320
10313
  function importGlobPlugin(config$2) {
10321
10314
  const importGlobMaps = /* @__PURE__ */ new Map();
10322
10315
  return {
@@ -10427,7 +10420,7 @@ async function parseImportGlob(code, importer, root, resolveId, logger) {
10427
10420
  const tasks = matches$2.map(async (match, index) => {
10428
10421
  const start = match.index;
10429
10422
  const err$2 = (msg) => {
10430
- const e$1 = new Error(`Invalid glob import syntax: ${msg}`);
10423
+ const e$1 = /* @__PURE__ */ new Error(`Invalid glob import syntax: ${msg}`);
10431
10424
  e$1.pos = start;
10432
10425
  return e$1;
10433
10426
  };
@@ -10652,7 +10645,7 @@ function isVirtualModule(id) {
10652
10645
 
10653
10646
  //#endregion
10654
10647
  //#region src/node/optimizer/scan.ts
10655
- var import_picocolors$26 = __toESM(require_picocolors());
10648
+ var import_picocolors$26 = __toESM(require_picocolors(), 1);
10656
10649
  var ScanEnvironment = class extends BaseEnvironment {
10657
10650
  mode = "scan";
10658
10651
  get pluginContainer() {
@@ -10992,7 +10985,7 @@ function esbuildScanPlugin(environment, depImports, missing, entries) {
10992
10985
  };
10993
10986
  setupExternalize(CSS_LANGS_RE, isUnlessEntry);
10994
10987
  setupExternalize(/\.(json|json5|wasm)$/, isUnlessEntry);
10995
- setupExternalize(new RegExp(`\\.(${KNOWN_ASSET_TYPES.join("|")})$`), isUnlessEntry);
10988
+ setupExternalize(/* @__PURE__ */ new RegExp(`\\.(${KNOWN_ASSET_TYPES.join("|")})$`), isUnlessEntry);
10996
10989
  setupExternalize(SPECIAL_QUERY_RE, () => true);
10997
10990
  build$3.onResolve({ filter: /.*/ }, async ({ path: id, importer }) => {
10998
10991
  const resolved = await resolve$5(id, importer);
@@ -11144,7 +11137,7 @@ function nestedResolveBasedir(id, basedir, preserveSymlinks = false) {
11144
11137
 
11145
11138
  //#endregion
11146
11139
  //#region src/node/optimizer/index.ts
11147
- var import_picocolors$25 = __toESM(require_picocolors());
11140
+ var import_picocolors$25 = __toESM(require_picocolors(), 1);
11148
11141
  const debug$14 = createDebugger("vite:deps");
11149
11142
  const jsExtensionRE = /\.js$/i;
11150
11143
  const jsMapExtensionRE = /\.js\.map$/i;
@@ -11861,7 +11854,7 @@ function canExternalizeFile(filePath) {
11861
11854
 
11862
11855
  //#endregion
11863
11856
  //#region src/node/plugins/resolve.ts
11864
- var import_picocolors$24 = __toESM(require_picocolors());
11857
+ var import_picocolors$24 = __toESM(require_picocolors(), 1);
11865
11858
  const normalizedClientEntry$1 = normalizePath(CLIENT_ENTRY);
11866
11859
  const normalizedEnvEntry$1 = normalizePath(ENV_ENTRY);
11867
11860
  const ERR_RESOLVE_PACKAGE_ENTRY_FAIL = "ERR_RESOLVE_PACKAGE_ENTRY_FAIL";
@@ -12222,7 +12215,7 @@ function resolvePackageEntry(id, { dir, data, setResolvedCache, getResolvedCache
12222
12215
  packageEntryFailure(id);
12223
12216
  }
12224
12217
  function packageEntryFailure(id, details) {
12225
- const err$2 = new Error(`Failed to resolve entry for package "${id}". The package may have incorrect main/module/exports specified in its package.json` + (details ? ": " + details : "."));
12218
+ const err$2 = /* @__PURE__ */ new Error(`Failed to resolve entry for package "${id}". The package may have incorrect main/module/exports specified in its package.json` + (details ? ": " + details : "."));
12226
12219
  err$2.code = ERR_RESOLVE_PACKAGE_ENTRY_FAIL;
12227
12220
  throw err$2;
12228
12221
  }
@@ -12356,7 +12349,7 @@ function isDirectory(path$13) {
12356
12349
 
12357
12350
  //#endregion
12358
12351
  //#region src/node/plugins/optimizedDeps.ts
12359
- var import_picocolors$23 = __toESM(require_picocolors());
12352
+ var import_picocolors$23 = __toESM(require_picocolors(), 1);
12360
12353
  const debug$11 = createDebugger("vite:optimize-deps");
12361
12354
  function optimizedDepsPlugin() {
12362
12355
  return {
@@ -12403,17 +12396,17 @@ function optimizedDepsPlugin() {
12403
12396
  };
12404
12397
  }
12405
12398
  function throwProcessingError(id) {
12406
- const err$2 = new Error(`Something unexpected happened while optimizing "${id}". The current page should have reloaded by now`);
12399
+ const err$2 = /* @__PURE__ */ new Error(`Something unexpected happened while optimizing "${id}". The current page should have reloaded by now`);
12407
12400
  err$2.code = ERR_OPTIMIZE_DEPS_PROCESSING_ERROR;
12408
12401
  throw err$2;
12409
12402
  }
12410
12403
  function throwOutdatedRequest(id) {
12411
- const err$2 = new Error(`There is a new version of the pre-bundle for "${id}", a page reload is going to ask for it.`);
12404
+ const err$2 = /* @__PURE__ */ new Error(`There is a new version of the pre-bundle for "${id}", a page reload is going to ask for it.`);
12412
12405
  err$2.code = ERR_OUTDATED_OPTIMIZED_DEP;
12413
12406
  throw err$2;
12414
12407
  }
12415
12408
  function throwFileNotFoundInOptimizedDep(id) {
12416
- const err$2 = new Error(`The file does not exist at "${id}" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to \`optimizeDeps.exclude\`.`);
12409
+ const err$2 = /* @__PURE__ */ new Error(`The file does not exist at "${id}" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to \`optimizeDeps.exclude\`.`);
12417
12410
  err$2.code = ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR;
12418
12411
  throw err$2;
12419
12412
  }
@@ -12514,7 +12507,7 @@ var require_main$1 = __commonJS({ "../../node_modules/.pnpm/dotenv@16.5.0/node_m
12514
12507
  const vaultPath = _vaultPath(options$1);
12515
12508
  const result = DotenvModule.configDotenv({ path: vaultPath });
12516
12509
  if (!result.parsed) {
12517
- const err$2 = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
12510
+ const err$2 = /* @__PURE__ */ new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
12518
12511
  err$2.code = "MISSING_DATA";
12519
12512
  throw err$2;
12520
12513
  }
@@ -12548,7 +12541,7 @@ var require_main$1 = __commonJS({ "../../node_modules/.pnpm/dotenv@16.5.0/node_m
12548
12541
  uri = new URL(dotenvKey);
12549
12542
  } catch (error$1) {
12550
12543
  if (error$1.code === "ERR_INVALID_URL") {
12551
- const err$2 = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
12544
+ const err$2 = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
12552
12545
  err$2.code = "INVALID_DOTENV_KEY";
12553
12546
  throw err$2;
12554
12547
  }
@@ -12556,20 +12549,20 @@ var require_main$1 = __commonJS({ "../../node_modules/.pnpm/dotenv@16.5.0/node_m
12556
12549
  }
12557
12550
  const key = uri.password;
12558
12551
  if (!key) {
12559
- const err$2 = new Error("INVALID_DOTENV_KEY: Missing key part");
12552
+ const err$2 = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing key part");
12560
12553
  err$2.code = "INVALID_DOTENV_KEY";
12561
12554
  throw err$2;
12562
12555
  }
12563
12556
  const environment = uri.searchParams.get("environment");
12564
12557
  if (!environment) {
12565
- const err$2 = new Error("INVALID_DOTENV_KEY: Missing environment part");
12558
+ const err$2 = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing environment part");
12566
12559
  err$2.code = "INVALID_DOTENV_KEY";
12567
12560
  throw err$2;
12568
12561
  }
12569
12562
  const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
12570
12563
  const ciphertext = result.parsed[environmentKey];
12571
12564
  if (!ciphertext) {
12572
- const err$2 = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
12565
+ const err$2 = /* @__PURE__ */ new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
12573
12566
  err$2.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
12574
12567
  throw err$2;
12575
12568
  }
@@ -12653,11 +12646,11 @@ var require_main$1 = __commonJS({ "../../node_modules/.pnpm/dotenv@16.5.0/node_m
12653
12646
  const invalidKeyLength = error$1.message === "Invalid key length";
12654
12647
  const decryptionFailed = error$1.message === "Unsupported state or unable to authenticate data";
12655
12648
  if (isRange || invalidKeyLength) {
12656
- const err$2 = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
12649
+ const err$2 = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
12657
12650
  err$2.code = "INVALID_DOTENV_KEY";
12658
12651
  throw err$2;
12659
12652
  } else if (decryptionFailed) {
12660
- const err$2 = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
12653
+ const err$2 = /* @__PURE__ */ new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
12661
12654
  err$2.code = "DECRYPTION_FAILED";
12662
12655
  throw err$2;
12663
12656
  } else throw error$1;
@@ -12667,7 +12660,7 @@ var require_main$1 = __commonJS({ "../../node_modules/.pnpm/dotenv@16.5.0/node_m
12667
12660
  const debug$19 = Boolean(options$1 && options$1.debug);
12668
12661
  const override = Boolean(options$1 && options$1.override);
12669
12662
  if (typeof parsed !== "object") {
12670
- const err$2 = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
12663
+ const err$2 = /* @__PURE__ */ new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
12671
12664
  err$2.code = "OBJECT_REQUIRED";
12672
12665
  throw err$2;
12673
12666
  }
@@ -12754,8 +12747,8 @@ var require_main = __commonJS({ "../../node_modules/.pnpm/dotenv-expand@12.0.2_p
12754
12747
 
12755
12748
  //#endregion
12756
12749
  //#region src/node/env.ts
12757
- var import_main = __toESM(require_main$1());
12758
- var import_main$1 = __toESM(require_main());
12750
+ var import_main = __toESM(require_main$1(), 1);
12751
+ var import_main$1 = __toESM(require_main(), 1);
12759
12752
  const debug$10 = createDebugger("vite:env");
12760
12753
  function getEnvFilesForMode(mode, envDir) {
12761
12754
  if (envDir !== false) return [
@@ -12800,7 +12793,7 @@ function resolveEnvPrefix({ envPrefix = "VITE_" }) {
12800
12793
 
12801
12794
  //#endregion
12802
12795
  //#region src/node/deprecations.ts
12803
- var import_picocolors$22 = __toESM(require_picocolors());
12796
+ var import_picocolors$22 = __toESM(require_picocolors(), 1);
12804
12797
  const docsURL = "https://vite.dev";
12805
12798
  const deprecationCode = {
12806
12799
  removePluginHookSsrArgument: "changes/this-environment-in-hooks",
@@ -12830,7 +12823,7 @@ function warnFutureDeprecation(config$2, type, extraMessage, stacktrace = true)
12830
12823
  const docs = `${docsURL}/changes/${deprecationCode[type].toLowerCase()}`;
12831
12824
  msg += import_picocolors$22.default.gray(`\n ${stacktrace ? "├" : "└"}─── `) + import_picocolors$22.default.underline(docs) + "\n";
12832
12825
  if (stacktrace) {
12833
- const stack = new Error().stack;
12826
+ const stack = (/* @__PURE__ */ new Error()).stack;
12834
12827
  if (stack) {
12835
12828
  let stacks = stack.split("\n").slice(3).filter((i$1) => !i$1.includes("/node_modules/vite/dist/"));
12836
12829
  if (stacks.length === 0) stacks.push("No stack trace found.");
@@ -12850,7 +12843,7 @@ function ignoreDeprecationWarnings(fn) {
12850
12843
 
12851
12844
  //#endregion
12852
12845
  //#region src/node/server/middlewares/error.ts
12853
- var import_picocolors$21 = __toESM(require_picocolors());
12846
+ var import_picocolors$21 = __toESM(require_picocolors(), 1);
12854
12847
  function prepareError(err$2) {
12855
12848
  return {
12856
12849
  message: stripVTControlCharacters(err$2.message),
@@ -13139,8 +13132,8 @@ var require_debug$1 = __commonJS({ "../../node_modules/.pnpm/debug@2.6.9/node_mo
13139
13132
  for (var i$1 = 0; i$1 < len; i$1++) {
13140
13133
  if (!split[i$1]) continue;
13141
13134
  namespaces = split[i$1].replace(/\*/g, ".*?");
13142
- if (namespaces[0] === "-") exports.skips.push(new RegExp("^" + namespaces.substr(1) + "$"));
13143
- else exports.names.push(new RegExp("^" + namespaces + "$"));
13135
+ if (namespaces[0] === "-") exports.skips.push(/* @__PURE__ */ new RegExp("^" + namespaces.substr(1) + "$"));
13136
+ else exports.names.push(/* @__PURE__ */ new RegExp("^" + namespaces + "$"));
13144
13137
  }
13145
13138
  }
13146
13139
  /**
@@ -14408,7 +14401,7 @@ var require_object_assign = __commonJS({ "../../node_modules/.pnpm/object-assign
14408
14401
  function shouldUseNative() {
14409
14402
  try {
14410
14403
  if (!Object.assign) return false;
14411
- var test1 = new String("abc");
14404
+ var test1 = /* @__PURE__ */ new String("abc");
14412
14405
  test1[5] = "de";
14413
14406
  if (Object.getOwnPropertyNames(test1)[0] === "5") return false;
14414
14407
  var test2 = {};
@@ -14898,7 +14891,7 @@ var require_readdirp = __commonJS({ "../../node_modules/.pnpm/readdirp@3.6.0/nod
14898
14891
  if (entryRealPathStats.isDirectory()) {
14899
14892
  const len = entryRealPath.length;
14900
14893
  if (full.startsWith(entryRealPath) && full.substr(len, 1) === sysPath$3.sep) {
14901
- const recursiveError = new Error(`Circular symlink detected: "${full}" points to "${entryRealPath}"`);
14894
+ const recursiveError = /* @__PURE__ */ new Error(`Circular symlink detected: "${full}" points to "${entryRealPath}"`);
14902
14895
  recursiveError.code = RECURSIVE_ERROR_CODE;
14903
14896
  return this._onError(recursiveError);
14904
14897
  }
@@ -15599,7 +15592,7 @@ var require_fill_range = __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1
15599
15592
  return toRegexRange(start, end, options$1);
15600
15593
  };
15601
15594
  const rangeError = (...args) => {
15602
- return new RangeError("Invalid range arguments: " + util$1.inspect(...args));
15595
+ return /* @__PURE__ */ new RangeError("Invalid range arguments: " + util$1.inspect(...args));
15603
15596
  };
15604
15597
  const invalidRange = (start, end, options$1) => {
15605
15598
  if (options$1.strictRanges === true) throw rangeError([start, end]);
@@ -18151,7 +18144,7 @@ var require_parse$1 = __commonJS({ "../../node_modules/.pnpm/shell-quote@1.8.2/n
18151
18144
  "<\\&",
18152
18145
  "[&;()|<>]"
18153
18146
  ].join("|") + ")";
18154
- var controlRE = new RegExp("^" + CONTROL + "$");
18147
+ var controlRE = /* @__PURE__ */ new RegExp("^" + CONTROL + "$");
18155
18148
  var META = "|&;()<> \\t";
18156
18149
  var SINGLE_QUOTE = "\"((\\\\\"|[^\"])*?)\"";
18157
18150
  var DOUBLE_QUOTE = "'((\\\\'|[^'])*?)'";
@@ -18162,7 +18155,7 @@ var require_parse$1 = __commonJS({ "../../node_modules/.pnpm/shell-quote@1.8.2/n
18162
18155
  var TOKEN = "";
18163
18156
  var mult = 4294967296;
18164
18157
  for (var i = 0; i < 4; i++) TOKEN += (mult * Math.random()).toString(16);
18165
- var startsWithToken = new RegExp("^" + TOKEN);
18158
+ var startsWithToken = /* @__PURE__ */ new RegExp("^" + TOKEN);
18166
18159
  function matchAll(s$2, r$2) {
18167
18160
  var origIndex = r$2.lastIndex;
18168
18161
  var matches$2 = [];
@@ -18653,7 +18646,7 @@ var require_launch_editor_middleware = __commonJS({ "../../node_modules/.pnpm/la
18653
18646
 
18654
18647
  //#endregion
18655
18648
  //#region src/node/http.ts
18656
- var import_picocolors$20 = __toESM(require_picocolors());
18649
+ var import_picocolors$20 = __toESM(require_picocolors(), 1);
18657
18650
  async function resolveHttpServer({ proxy }, app, httpsOptions) {
18658
18651
  if (!httpsOptions) {
18659
18652
  const { createServer: createServer$4 } = await import("node:http");
@@ -18697,7 +18690,7 @@ async function httpServerStart(httpServer, serverOptions) {
18697
18690
  const onError$1 = (e$1) => {
18698
18691
  if (e$1.code === "EADDRINUSE") if (strictPort) {
18699
18692
  httpServer.removeListener("error", onError$1);
18700
- reject(new Error(`Port ${port} is already in use`));
18693
+ reject(/* @__PURE__ */ new Error(`Port ${port} is already in use`));
18701
18694
  } else {
18702
18695
  logger.info(`Port ${port} is in use, trying another one...`);
18703
18696
  httpServer.listen(++port, host);
@@ -18838,7 +18831,7 @@ function createServerModuleRunner(environment, options$1 = {}) {
18838
18831
 
18839
18832
  //#endregion
18840
18833
  //#region src/node/ssr/ssrModuleLoader.ts
18841
- var import_picocolors$19 = __toESM(require_picocolors());
18834
+ var import_picocolors$19 = __toESM(require_picocolors(), 1);
18842
18835
  async function ssrLoadModule(url$6, server, fixStacktrace) {
18843
18836
  const environment = server.environments.ssr;
18844
18837
  server._ssrCompatModuleRunner ||= new SSRCompatModuleRunner(environment);
@@ -19796,7 +19789,7 @@ const baseOpen = async (options$1) => {
19796
19789
  subprocess.once("error", reject);
19797
19790
  subprocess.once("close", (exitCode) => {
19798
19791
  if (!options$1.allowNonzeroExitCode && exitCode > 0) {
19799
- reject(new Error(`Exited with code ${exitCode}`));
19792
+ reject(/* @__PURE__ */ new Error(`Exited with code ${exitCode}`));
19800
19793
  return;
19801
19794
  }
19802
19795
  resolve$5(subprocess);
@@ -19963,7 +19956,7 @@ var require_which = __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modu
19963
19956
  const path$4 = require("path");
19964
19957
  const COLON = isWindows$1 ? ";" : ":";
19965
19958
  const isexe = require_isexe();
19966
- const getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
19959
+ const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
19967
19960
  const getPathInfo = (cmd, opt) => {
19968
19961
  const colon = opt.colon || COLON;
19969
19962
  const pathEnv = cmd.match(/\//) || isWindows$1 && cmd.match(/\\/) ? [""] : [...isWindows$1 ? [process.cwd()] : [], ...(opt.path || process.env.PATH || "").split(colon)];
@@ -20204,7 +20197,7 @@ var require_parse = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/nod
20204
20197
  var require_enoent = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
20205
20198
  const isWin = process.platform === "win32";
20206
20199
  function notFoundError(original, syscall) {
20207
- return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
20200
+ return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
20208
20201
  code: "ENOENT",
20209
20202
  errno: "ENOENT",
20210
20203
  syscall: `${syscall} ${original.command}`,
@@ -20266,8 +20259,8 @@ var require_cross_spawn = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0
20266
20259
 
20267
20260
  //#endregion
20268
20261
  //#region src/node/server/openBrowser.ts
20269
- var import_cross_spawn = __toESM(require_cross_spawn());
20270
- var import_picocolors$18 = __toESM(require_picocolors());
20262
+ var import_cross_spawn = __toESM(require_cross_spawn(), 1);
20263
+ var import_picocolors$18 = __toESM(require_picocolors(), 1);
20271
20264
  /**
20272
20265
  * Reads the BROWSER environment variable and decides what to do with it.
20273
20266
  */
@@ -20340,7 +20333,7 @@ function execAsync(command, options$1) {
20340
20333
 
20341
20334
  //#endregion
20342
20335
  //#region src/node/shortcuts.ts
20343
- var import_picocolors$17 = __toESM(require_picocolors());
20336
+ var import_picocolors$17 = __toESM(require_picocolors(), 1);
20344
20337
  function bindCLIShortcuts(server, opts) {
20345
20338
  if (!server.httpServer || !process.stdin.isTTY || process.env.CI) return;
20346
20339
  const isDev = isDevServer(server);
@@ -20435,7 +20428,7 @@ const BASE_PREVIEW_SHORTCUTS = [{
20435
20428
 
20436
20429
  //#endregion
20437
20430
  //#region src/node/watch.ts
20438
- var import_picocolors$16 = __toESM(require_picocolors());
20431
+ var import_picocolors$16 = __toESM(require_picocolors(), 1);
20439
20432
  function getResolvedOutDirs(root, outDir, outputOptions) {
20440
20433
  const resolvedOutDir = path.resolve(root, outDir);
20441
20434
  if (!outputOptions) return new Set([resolvedOutDir]);
@@ -20777,7 +20770,7 @@ var require_permessage_deflate = __commonJS({ "../../node_modules/.pnpm/ws@8.18.
20777
20770
  const callback = this._deflate[kCallback];
20778
20771
  this._deflate.close();
20779
20772
  this._deflate = null;
20780
- if (callback) callback(new Error("The deflate stream was closed while data was being processed"));
20773
+ if (callback) callback(/* @__PURE__ */ new Error("The deflate stream was closed while data was being processed"));
20781
20774
  }
20782
20775
  }
20783
20776
  /**
@@ -20983,7 +20976,7 @@ var require_permessage_deflate = __commonJS({ "../../node_modules/.pnpm/ws@8.18.
20983
20976
  this[kBuffers].push(chunk);
20984
20977
  return;
20985
20978
  }
20986
- this[kError$1] = new RangeError("Max payload size exceeded");
20979
+ this[kError$1] = /* @__PURE__ */ new RangeError("Max payload size exceeded");
20987
20980
  this[kError$1].code = "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH";
20988
20981
  this[kError$1][kStatusCode$2] = 1009;
20989
20982
  this.removeListener("data", inflateOnData);
@@ -22038,7 +22031,7 @@ var require_sender = __commonJS({ "../../node_modules/.pnpm/ws@8.18.2/node_modul
22038
22031
  this._state = GET_BLOB_DATA;
22039
22032
  blob.arrayBuffer().then((arrayBuffer) => {
22040
22033
  if (this._socket.destroyed) {
22041
- const err$2 = new Error("The socket was closed while the blob was being read");
22034
+ const err$2 = /* @__PURE__ */ new Error("The socket was closed while the blob was being read");
22042
22035
  process.nextTick(callCallbacks, this, err$2, cb);
22043
22036
  return;
22044
22037
  }
@@ -22086,7 +22079,7 @@ var require_sender = __commonJS({ "../../node_modules/.pnpm/ws@8.18.2/node_modul
22086
22079
  this._state = DEFLATING;
22087
22080
  perMessageDeflate.compress(data, options$1.fin, (_, buf) => {
22088
22081
  if (this._socket.destroyed) {
22089
- const err$2 = new Error("The socket was closed while data was being compressed");
22082
+ const err$2 = /* @__PURE__ */ new Error("The socket was closed while data was being compressed");
22090
22083
  callCallbacks(this, err$2, cb);
22091
22084
  return;
22092
22085
  }
@@ -23173,7 +23166,7 @@ var require_websocket = __commonJS({ "../../node_modules/.pnpm/ws@8.18.2/node_mo
23173
23166
  try {
23174
23167
  addr = new URL$3(location$1, address);
23175
23168
  } catch (e$1) {
23176
- const err$2 = new SyntaxError(`Invalid URL: ${location$1}`);
23169
+ const err$2 = /* @__PURE__ */ new SyntaxError(`Invalid URL: ${location$1}`);
23177
23170
  emitErrorAndClose(websocket, err$2);
23178
23171
  return;
23179
23172
  }
@@ -23321,7 +23314,7 @@ var require_websocket = __commonJS({ "../../node_modules/.pnpm/ws@8.18.2/node_mo
23321
23314
  else websocket._bufferedAmount += length;
23322
23315
  }
23323
23316
  if (cb) {
23324
- const err$2 = new Error(`WebSocket is not open: readyState ${websocket.readyState} (${readyStates[websocket.readyState]})`);
23317
+ const err$2 = /* @__PURE__ */ new Error(`WebSocket is not open: readyState ${websocket.readyState} (${readyStates[websocket.readyState]})`);
23325
23318
  process.nextTick(cb, err$2);
23326
23319
  }
23327
23320
  }
@@ -23787,7 +23780,7 @@ var require_websocket_server = __commonJS({ "../../node_modules/.pnpm/ws@8.18.2/
23787
23780
  close(cb) {
23788
23781
  if (this._state === CLOSED) {
23789
23782
  if (cb) this.once("close", () => {
23790
- cb(new Error("The server is not running"));
23783
+ cb(/* @__PURE__ */ new Error("The server is not running"));
23791
23784
  });
23792
23785
  process.nextTick(emitClose, this);
23793
23786
  return;
@@ -24128,7 +24121,7 @@ function generateDefaultErrorMessage(hostname) {
24128
24121
 
24129
24122
  //#endregion
24130
24123
  //#region src/node/server/ws.ts
24131
- var import_picocolors$15 = __toESM(require_picocolors());
24124
+ var import_picocolors$15 = __toESM(require_picocolors(), 1);
24132
24125
  const WebSocketServerRaw = process.versions.bun ? import.meta.require("ws").WebSocketServer : import_websocket_server.default;
24133
24126
  const HMR_HEADER = "vite-hmr";
24134
24127
  const isWebSocketServer = Symbol("isWebSocketServer");
@@ -24162,7 +24155,7 @@ function createWebSocketServer(server, config$2, httpsOptions) {
24162
24155
  handleInvoke: async () => ({ error: {
24163
24156
  name: "TransportError",
24164
24157
  message: "handleInvoke not implemented",
24165
- stack: new Error().stack
24158
+ stack: (/* @__PURE__ */ new Error()).stack
24166
24159
  } }),
24167
24160
  listen: noop$2,
24168
24161
  send: noop$2
@@ -25532,7 +25525,7 @@ var require_http_proxy$2 = __commonJS({ "../../node_modules/.pnpm/http-proxy@1.1
25532
25525
  ["target", "forward"].forEach(function(e$1) {
25533
25526
  if (typeof requestOptions[e$1] === "string") requestOptions[e$1] = parse_url(requestOptions[e$1]);
25534
25527
  });
25535
- if (!requestOptions.target && !requestOptions.forward) return this.emit("error", new Error("Must provide a proper URL as target"));
25528
+ if (!requestOptions.target && !requestOptions.forward) return this.emit("error", /* @__PURE__ */ new Error("Must provide a proper URL as target"));
25536
25529
  for (var i$1 = 0; i$1 < passes.length; i$1++)
25537
25530
  /**
25538
25531
  * Call of passes functions
@@ -25654,8 +25647,8 @@ var require_http_proxy = __commonJS({ "../../node_modules/.pnpm/http-proxy@1.18.
25654
25647
 
25655
25648
  //#endregion
25656
25649
  //#region src/node/server/middlewares/proxy.ts
25657
- var import_http_proxy = __toESM(require_http_proxy());
25658
- var import_picocolors$14 = __toESM(require_picocolors());
25650
+ var import_http_proxy = __toESM(require_http_proxy(), 1);
25651
+ var import_picocolors$14 = __toESM(require_picocolors(), 1);
25659
25652
  const debug$5 = createDebugger("vite:proxy");
25660
25653
  const rewriteOriginHeader = (proxyReq, options$1, config$2) => {
25661
25654
  if (options$1.rewriteWsOrigin) {
@@ -25901,8 +25894,8 @@ var require_etag = __commonJS({ "../../node_modules/.pnpm/etag@1.8.1/node_module
25901
25894
 
25902
25895
  //#endregion
25903
25896
  //#region src/node/server/send.ts
25904
- var import_convert_source_map$1 = __toESM(require_convert_source_map());
25905
- var import_etag$1 = __toESM(require_etag());
25897
+ var import_convert_source_map$1 = __toESM(require_convert_source_map(), 1);
25898
+ var import_etag$1 = __toESM(require_etag(), 1);
25906
25899
  const debug$3 = createDebugger("vite:send", { onlyWhenFocused: true });
25907
25900
  const alias$1 = {
25908
25901
  js: "text/javascript",
@@ -25926,7 +25919,7 @@ function send(req$4, res, content, type, options$1) {
25926
25919
  if (type === "js" || type === "css") content = getCodeWithSourcemap(type, content.toString(), map$1);
25927
25920
  } else if (type === "js" && (!map$1 || map$1.mappings !== "")) {
25928
25921
  const code = content.toString();
25929
- if (import_convert_source_map$1.default.mapFileCommentRegex.test(code)) debug$3?.(`Skipped injecting fallback sourcemap for ${req$4.url}`);
25922
+ if (import_convert_source_map$1.mapFileCommentRegex.test(code)) debug$3?.(`Skipped injecting fallback sourcemap for ${req$4.url}`);
25930
25923
  else {
25931
25924
  const urlWithoutTimestamp = removeTimestampQuery(req$4.url);
25932
25925
  const ms = new MagicString(code);
@@ -26140,7 +26133,7 @@ function build_default(dir, opts = {}) {
26140
26133
 
26141
26134
  //#endregion
26142
26135
  //#region src/node/server/middlewares/static.ts
26143
- var import_escape_html$1 = __toESM(require_escape_html());
26136
+ var import_escape_html$1 = __toESM(require_escape_html(), 1);
26144
26137
  const knownJavascriptExtensionRE = /\.(?:[tj]sx?|[cm][tj]s)$/;
26145
26138
  const ERR_DENIED_FILE = "ERR_DENIED_FILE";
26146
26139
  const sirvOptions = ({ config: config$2, getHeaders, disableFsServeCheck }) => {
@@ -26156,7 +26149,7 @@ const sirvOptions = ({ config: config$2, getHeaders, disableFsServeCheck }) => {
26156
26149
  shouldServe: disableFsServeCheck ? void 0 : (filePath) => {
26157
26150
  const servingAccessResult = checkLoadingAccess(config$2, filePath);
26158
26151
  if (servingAccessResult === "denied") {
26159
- const error$1 = new Error("denied access");
26152
+ const error$1 = /* @__PURE__ */ new Error("denied access");
26160
26153
  error$1.code = ERR_DENIED_FILE;
26161
26154
  error$1.path = filePath;
26162
26155
  throw error$1;
@@ -26307,8 +26300,8 @@ function renderRestrictedErrorHTML(msg) {
26307
26300
 
26308
26301
  //#endregion
26309
26302
  //#region src/node/server/transformRequest.ts
26310
- var import_etag = __toESM(require_etag());
26311
- var import_picocolors$13 = __toESM(require_picocolors());
26303
+ var import_etag = __toESM(require_etag(), 1);
26304
+ var import_picocolors$13 = __toESM(require_picocolors(), 1);
26312
26305
  const ERR_LOAD_URL = "ERR_LOAD_URL";
26313
26306
  const ERR_LOAD_PUBLIC_URL = "ERR_LOAD_PUBLIC_URL";
26314
26307
  const ERR_DENIED_ID = "ERR_DENIED_ID";
@@ -26385,7 +26378,7 @@ async function loadAndTransform(environment, id, url$6, options$1, timestamp, mo
26385
26378
  const prettyUrl = debugLoad || debugTransform ? prettifyUrl(url$6, config$2.root) : "";
26386
26379
  const moduleGraph = environment.moduleGraph;
26387
26380
  if (options$1.allowId && !options$1.allowId(id)) {
26388
- const err$2 = new Error(`Denied ID ${id}`);
26381
+ const err$2 = /* @__PURE__ */ new Error(`Denied ID ${id}`);
26389
26382
  err$2.code = ERR_DENIED_ID;
26390
26383
  throw err$2;
26391
26384
  }
@@ -26431,7 +26424,7 @@ async function loadAndTransform(environment, id, url$6, options$1, timestamp, mo
26431
26424
  const msg = isPublicFile ? `This file is in ${publicDirName} and will be copied as-is during build without going through the plugin transforms, and therefore should not be imported from source code. It can only be referenced via HTML tags.` : `Does the file exist?`;
26432
26425
  const importerMod = moduleGraph.idToModuleMap.get(id)?.importers.values().next().value;
26433
26426
  const importer = importerMod?.file || importerMod?.url;
26434
- const err$2 = new Error(`Failed to load url ${url$6} (resolved id: ${id})${importer ? ` in ${importer}` : ""}. ${msg}`);
26427
+ const err$2 = /* @__PURE__ */ new Error(`Failed to load url ${url$6} (resolved id: ${id})${importer ? ` in ${importer}` : ""}. ${msg}`);
26435
26428
  err$2.code = isPublicFile ? ERR_LOAD_PUBLIC_URL : ERR_LOAD_URL;
26436
26429
  throw err$2;
26437
26430
  }
@@ -26672,8 +26665,8 @@ function polyfill() {
26672
26665
 
26673
26666
  //#endregion
26674
26667
  //#region src/node/plugins/html.ts
26675
- var import_picocolors$12 = __toESM(require_picocolors());
26676
- var import_escape_html = __toESM(require_escape_html());
26668
+ var import_picocolors$12 = __toESM(require_picocolors(), 1);
26669
+ var import_escape_html = __toESM(require_escape_html(), 1);
26677
26670
  const htmlProxyRE$1 = /[?&]html-proxy=?(?:&inline-css)?(?:&style-attr)?&index=(\d+)\.(?:js|css)$/;
26678
26671
  const isHtmlProxyRE = /[?&]html-proxy\b/;
26679
26672
  const inlineCSSRE$1 = /__VITE_INLINE_CSS__([a-z\d]{8}_\d+)__/g;
@@ -26883,7 +26876,7 @@ function buildHtmlPlugin(config$2) {
26883
26876
  inlineModuleIndex++;
26884
26877
  if (url$6 && !isExcludedUrl(url$6) && !isPublicFile) {
26885
26878
  setModuleSideEffectPromises.push(this.resolve(url$6, id).then((resolved) => {
26886
- if (!resolved) return Promise.reject(new Error(`Failed to resolve ${url$6} from ${id}`));
26879
+ if (!resolved) return Promise.reject(/* @__PURE__ */ new Error(`Failed to resolve ${url$6} from ${id}`));
26887
26880
  const moduleInfo = this.getModuleInfo(resolved.id);
26888
26881
  if (moduleInfo) moduleInfo.moduleSideEffects = true;
26889
26882
  else if (!resolved.external) return this.load(resolved).then((mod) => {
@@ -27416,7 +27409,7 @@ function decodeURIIfPossible(input) {
27416
27409
 
27417
27410
  //#endregion
27418
27411
  //#region src/node/server/middlewares/transform.ts
27419
- var import_picocolors$11 = __toESM(require_picocolors());
27412
+ var import_picocolors$11 = __toESM(require_picocolors(), 1);
27420
27413
  const debugCache = createDebugger("vite:cache");
27421
27414
  const knownIgnoreList = new Set(["/", "/favicon.ico"]);
27422
27415
  const trailingQuerySeparatorsRE = /[?&]+$/;
@@ -28325,11 +28318,11 @@ function rejectInvalidRequestMiddleware() {
28325
28318
 
28326
28319
  //#endregion
28327
28320
  //#region src/node/server/index.ts
28328
- var import_connect$1 = __toESM(require_connect());
28329
- var import_lib$1 = __toESM(require_lib());
28330
- var import_picocolors$10 = __toESM(require_picocolors());
28331
- var import_chokidar = __toESM(require_chokidar());
28332
- var import_launch_editor_middleware = __toESM(require_launch_editor_middleware());
28321
+ var import_connect$1 = __toESM(require_connect(), 1);
28322
+ var import_lib$1 = __toESM(require_lib(), 1);
28323
+ var import_picocolors$10 = __toESM(require_picocolors(), 1);
28324
+ var import_chokidar = __toESM(require_chokidar(), 1);
28325
+ var import_launch_editor_middleware = __toESM(require_launch_editor_middleware(), 1);
28333
28326
  const usedConfigs = /* @__PURE__ */ new WeakSet();
28334
28327
  function createServer$2(inlineConfig = {}) {
28335
28328
  return _createServer(inlineConfig, { listen: true });
@@ -28356,7 +28349,7 @@ async function _createServer(inlineConfig = {}, options$1) {
28356
28349
  const { publicDir } = config$2;
28357
28350
  if (httpServer) setClientErrorHandler(httpServer, config$2.logger);
28358
28351
  const watchEnabled = serverConfig.watch !== null;
28359
- const watcher = watchEnabled ? import_chokidar.default.watch([
28352
+ const watcher = watchEnabled ? import_chokidar.watch([
28360
28353
  root,
28361
28354
  ...config$2.configFileDependencies,
28362
28355
  ...getEnvFilesForMode(config$2.mode, config$2.envDir),
@@ -28557,18 +28550,18 @@ async function _createServer(inlineConfig = {}, options$1) {
28557
28550
  if (!middlewareMode && httpServer) httpServer.once("listening", () => {
28558
28551
  serverConfig.port = httpServer.address().port;
28559
28552
  });
28560
- const configureServerContext = new BasicMinimalPluginContext({
28561
- ...basePluginContextMeta,
28562
- watchMode: true
28563
- }, config$2.logger);
28564
- const postHooks = [];
28565
- for (const hook of config$2.getSortedPluginHooks("configureServer")) postHooks.push(await hook.call(configureServerContext, reflexServer));
28566
28553
  if (process.env.DEBUG) middlewares.use(timeMiddleware(root));
28567
28554
  middlewares.use(rejectInvalidRequestMiddleware());
28568
28555
  const { cors } = serverConfig;
28569
28556
  if (cors !== false) middlewares.use((0, import_lib$1.default)(typeof cors === "boolean" ? {} : cors));
28570
28557
  const { allowedHosts } = serverConfig;
28571
28558
  if (allowedHosts !== true && !serverConfig.https) middlewares.use(hostValidationMiddleware(allowedHosts, false));
28559
+ const configureServerContext = new BasicMinimalPluginContext({
28560
+ ...basePluginContextMeta,
28561
+ watchMode: true
28562
+ }, config$2.logger);
28563
+ const postHooks = [];
28564
+ for (const hook of config$2.getSortedPluginHooks("configureServer")) postHooks.push(await hook.call(configureServerContext, reflexServer));
28572
28565
  middlewares.use(cachedTransformMiddleware(server));
28573
28566
  const { proxy } = serverConfig;
28574
28567
  if (proxy) {
@@ -28781,7 +28774,7 @@ async function restartServerWithUrls(server) {
28781
28774
 
28782
28775
  //#endregion
28783
28776
  //#region src/node/server/hmr.ts
28784
- var import_picocolors$9 = __toESM(require_picocolors());
28777
+ var import_picocolors$9 = __toESM(require_picocolors(), 1);
28785
28778
  const debugHmr = createDebugger("vite:hmr");
28786
28779
  const whitespaceRE = /\s/;
28787
28780
  const normalizedClientDir = normalizePath(CLIENT_DIR);
@@ -28797,7 +28790,7 @@ const normalizeHotChannel = (channel, enableHmr, normalizeClient = true) => {
28797
28790
  if (!invokeHandlers) return { error: {
28798
28791
  name: "TransportError",
28799
28792
  message: "invokeHandlers is not set",
28800
- stack: new Error().stack
28793
+ stack: (/* @__PURE__ */ new Error()).stack
28801
28794
  } };
28802
28795
  const data = payload.data;
28803
28796
  const { name, data: args } = data;
@@ -29286,7 +29279,7 @@ function normalizeHmrUrl(url$6) {
29286
29279
  return url$6;
29287
29280
  }
29288
29281
  function error(pos) {
29289
- const err$2 = new Error("import.meta.hot.accept() can only accept string literals or an Array of string literals.");
29282
+ const err$2 = /* @__PURE__ */ new Error("import.meta.hot.accept() can only accept string literals or an Array of string literals.");
29290
29283
  err$2.pos = pos;
29291
29284
  throw err$2;
29292
29285
  }
@@ -29502,7 +29495,7 @@ function getImportMetaEnvKeyRe(marker) {
29502
29495
 
29503
29496
  //#endregion
29504
29497
  //#region src/node/plugins/worker.ts
29505
- var import_picocolors$8 = __toESM(require_picocolors());
29498
+ var import_picocolors$8 = __toESM(require_picocolors(), 1);
29506
29499
  const workerOrSharedWorkerRE = /(?:\?|&)(worker|sharedworker)(?:&|$)/;
29507
29500
  const workerFileRE = /(?:\?|&)worker_file&type=(\w+)(?:&|$)/;
29508
29501
  const inlineRE$1 = /[?&]inline\b/;
@@ -29836,7 +29829,7 @@ function getAliasPatternMatcher(entries) {
29836
29829
 
29837
29830
  //#endregion
29838
29831
  //#region src/node/plugins/importAnalysis.ts
29839
- var import_picocolors$7 = __toESM(require_picocolors());
29832
+ var import_picocolors$7 = __toESM(require_picocolors(), 1);
29840
29833
  const debug$2 = createDebugger("vite:import-analysis");
29841
29834
  const clientDir = normalizePath(CLIENT_DIR);
29842
29835
  const skipRE = /\.(?:map|json)(?:$|\?)/;
@@ -30737,7 +30730,7 @@ const dynamicImportHelper = (glob$1, path$13, segs) => {
30737
30730
  const v = glob$1[path$13];
30738
30731
  if (v) return typeof v === "function" ? v() : Promise.resolve(v);
30739
30732
  return new Promise((_, reject) => {
30740
- (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path$13 + (path$13.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : ""))));
30733
+ (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + path$13 + (path$13.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : ""))));
30741
30734
  });
30742
30735
  };
30743
30736
  function parseDynamicImportPattern(strings) {
@@ -30917,7 +30910,7 @@ function createFilterForTransform(idFilter, codeFilter, cwd) {
30917
30910
  async function resolvePlugins(config$2, prePlugins, normalPlugins, postPlugins) {
30918
30911
  const isBuild = config$2.command === "build";
30919
30912
  const isWorker = config$2.isWorker;
30920
- const buildPlugins = isBuild ? await (await import("./dep-3PhSlasG.js")).resolveBuildPlugins(config$2) : {
30913
+ const buildPlugins = isBuild ? await (await import("./dep-pyXEOwQv.js")).resolveBuildPlugins(config$2) : {
30921
30914
  pre: [],
30922
30915
  post: []
30923
30916
  };
@@ -31050,7 +31043,7 @@ const viteAliasCustomResolver = async function(id, importer, options$1) {
31050
31043
 
31051
31044
  //#endregion
31052
31045
  //#region src/node/server/pluginContainer.ts
31053
- var import_picocolors$6 = __toESM(require_picocolors());
31046
+ var import_picocolors$6 = __toESM(require_picocolors(), 1);
31054
31047
  const EMPTY_OBJECT = Object.freeze({});
31055
31048
  const debugSourcemapCombineFilter = process.env.DEBUG_VITE_SOURCEMAP_COMBINE_FILTER;
31056
31049
  const debugSourcemapCombine = createDebugger("vite:sourcemap-combine", { onlyWhenFocused: true });
@@ -31060,7 +31053,7 @@ const debugPluginTransform = createDebugger("vite:plugin-transform", { onlyWhenF
31060
31053
  const debugPluginContainerContext = createDebugger("vite:plugin-container-context");
31061
31054
  const ERR_CLOSED_SERVER = "ERR_CLOSED_SERVER";
31062
31055
  function throwClosedServerError() {
31063
- const err$2 = new Error("The server is being restarted or closed. Request is outdated");
31056
+ const err$2 = /* @__PURE__ */ new Error("The server is being restarted or closed. Request is outdated");
31064
31057
  err$2.code = ERR_CLOSED_SERVER;
31065
31058
  throw err$2;
31066
31059
  }
@@ -31730,8 +31723,8 @@ function createIdResolver(config$2, options$1) {
31730
31723
 
31731
31724
  //#endregion
31732
31725
  //#region src/node/plugins/css.ts
31733
- var import_src = __toESM(require_src());
31734
- var import_picocolors$5 = __toESM(require_picocolors());
31726
+ var import_src = __toESM(require_src(), 1);
31727
+ var import_picocolors$5 = __toESM(require_picocolors(), 1);
31735
31728
  const decoder = new TextDecoder();
31736
31729
  const cssConfigDefaults = Object.freeze({
31737
31730
  transformer: "postcss",
@@ -31746,7 +31739,7 @@ function resolveCSSOptions(options$1) {
31746
31739
  }
31747
31740
  return resolved;
31748
31741
  }
31749
- const cssModuleRE = new RegExp(`\\.module${CSS_LANGS_RE.source}`);
31742
+ const cssModuleRE = /* @__PURE__ */ new RegExp(`\\.module${CSS_LANGS_RE.source}`);
31750
31743
  const directRequestRE = /[?&]direct\b/;
31751
31744
  const htmlProxyRE = /[?&]html-proxy\b/;
31752
31745
  const htmlProxyIndexRE = /&index=(\d+)/;
@@ -32452,8 +32445,8 @@ function createCachedImport(imp) {
32452
32445
  return cached;
32453
32446
  };
32454
32447
  }
32455
- const importPostcssImport = createCachedImport(() => import("./dep-uSUFJk9A.js"));
32456
- const importPostcssModules = createCachedImport(() => import("./dep-Dg4W3IAQ.js"));
32448
+ const importPostcssImport = createCachedImport(() => import("./dep-DcjhO6Jt.js").then(__toDynamicImportESM(1)));
32449
+ const importPostcssModules = createCachedImport(() => import("./dep-Do-w1DD4.js").then(__toDynamicImportESM(1)));
32457
32450
  const importPostcss = createCachedImport(() => import("postcss"));
32458
32451
  const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
32459
32452
  let alwaysFakeWorkerWorkerControllerCache;
@@ -32735,7 +32728,7 @@ function loadPreprocessorPath(lang, root) {
32735
32728
  const installCommand = getPackageManagerCommand("install");
32736
32729
  throw new Error(`Preprocessor dependency "${lang}" not found. Did you install it? Try \`${installCommand} -D ${lang}\`.`);
32737
32730
  } else {
32738
- const message = new Error(`Preprocessor dependency "${lang}" failed to load:\n${e$1.message}`);
32731
+ const message = /* @__PURE__ */ new Error(`Preprocessor dependency "${lang}" failed to load:\n${e$1.message}`);
32739
32732
  message.stack = e$1.stack + "\n" + message.stack;
32740
32733
  throw message;
32741
32734
  }
@@ -32766,7 +32759,7 @@ function loadSss(root) {
32766
32759
  const sssPath = loadPreprocessorPath(PostCssDialectLang.sss, root);
32767
32760
  cachedSss = createRequire(
32768
32761
  /** #__KEEP__ */
32769
- new URL("../../../src/node/plugins/css.ts", import.meta.url)
32762
+ import.meta.url
32770
32763
  )(sssPath);
32771
32764
  return cachedSss;
32772
32765
  }
@@ -32998,7 +32991,7 @@ const lessProcessor = (maxWorkers) => {
32998
32991
  result = await worker.run(lessPath, content, optionsWithoutAdditionalData);
32999
32992
  } catch (e$1) {
33000
32993
  const error$1 = e$1;
33001
- const normalizedError = new Error(`[less] ${error$1.message || error$1.type}`);
32994
+ const normalizedError = /* @__PURE__ */ new Error(`[less] ${error$1.message || error$1.type}`);
33002
32995
  normalizedError.loc = {
33003
32996
  file: error$1.filename || options$1.filename,
33004
32997
  line: error$1.line,
@@ -33073,7 +33066,7 @@ const stylProcessor = (maxWorkers) => {
33073
33066
  deps: [...deps, ...importsDeps]
33074
33067
  };
33075
33068
  } catch (e$1) {
33076
- const wrapped = new Error(`[stylus] ${e$1.message}`);
33069
+ const wrapped = /* @__PURE__ */ new Error(`[stylus] ${e$1.message}`);
33077
33070
  wrapped.name = e$1.name;
33078
33071
  wrapped.stack = e$1.stack;
33079
33072
  return {
@@ -33399,7 +33392,7 @@ function resolveLibCssFilename(libOptions, root, packageCache) {
33399
33392
 
33400
33393
  //#endregion
33401
33394
  //#region src/node/plugins/importAnalysisBuild.ts
33402
- var import_convert_source_map = __toESM(require_convert_source_map());
33395
+ var import_convert_source_map = __toESM(require_convert_source_map(), 1);
33403
33396
  /**
33404
33397
  * A flag for injected helpers. This flag will be set to `false` if the output
33405
33398
  * target is not native es - so that injected helper logic can be conditionally
@@ -33465,7 +33458,7 @@ function preload(baseModule, deps, importerUrl) {
33465
33458
  document.head.appendChild(link);
33466
33459
  if (isCss) return new Promise((res, rej) => {
33467
33460
  link.addEventListener("load", res);
33468
- link.addEventListener("error", () => rej(new Error(`Unable to preload CSS for ${dep}`)));
33461
+ link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
33469
33462
  });
33470
33463
  }));
33471
33464
  }
@@ -33749,7 +33742,7 @@ function buildImportAnalysisPlugin(config$2) {
33749
33742
  const originalDebugId = chunk.map.debugId;
33750
33743
  chunk.map = map$1;
33751
33744
  if (buildSourcemap === "inline") {
33752
- chunk.code = chunk.code.replace(import_convert_source_map.default.mapFileCommentRegex, "");
33745
+ chunk.code = chunk.code.replace(import_convert_source_map.mapFileCommentRegex, "");
33753
33746
  chunk.code += `\n//# sourceMappingURL=${genSourceMapUrl(map$1)}`;
33754
33747
  } else {
33755
33748
  if (originalDebugId) map$1.debugId = originalDebugId;
@@ -33893,7 +33886,7 @@ function completeSystemWrapPlugin() {
33893
33886
 
33894
33887
  //#endregion
33895
33888
  //#region src/node/build.ts
33896
- var import_picocolors$4 = __toESM(require_picocolors());
33889
+ var import_picocolors$4 = __toESM(require_picocolors(), 1);
33897
33890
  const buildEnvironmentOptionsDefaults = Object.freeze({
33898
33891
  target: "baseline-widely-available",
33899
33892
  polyfillModulePreload: true,
@@ -34542,7 +34535,7 @@ async function fetchModule(environment, url$6, importer, options$1 = {}) {
34542
34535
  builtins: environment.config.resolve.builtins
34543
34536
  });
34544
34537
  if (!resolved) {
34545
- const err$2 = new Error(`Cannot find module '${url$6}' imported from '${importer}'`);
34538
+ const err$2 = /* @__PURE__ */ new Error(`Cannot find module '${url$6}' imported from '${importer}'`);
34546
34539
  err$2.code = "ERR_MODULE_NOT_FOUND";
34547
34540
  throw err$2;
34548
34541
  }
@@ -34583,7 +34576,7 @@ function inlineSourceMap(mod, result, startOffset) {
34583
34576
 
34584
34577
  //#endregion
34585
34578
  //#region src/node/optimizer/optimizer.ts
34586
- var import_picocolors$3 = __toESM(require_picocolors());
34579
+ var import_picocolors$3 = __toESM(require_picocolors(), 1);
34587
34580
  const debug$1 = createDebugger("vite:deps");
34588
34581
  /**
34589
34582
  * The amount to wait for requests to register newly found dependencies before triggering
@@ -35249,7 +35242,7 @@ var EnvironmentModuleGraph = class {
35249
35242
 
35250
35243
  //#endregion
35251
35244
  //#region src/node/server/warmup.ts
35252
- var import_picocolors$2 = __toESM(require_picocolors());
35245
+ var import_picocolors$2 = __toESM(require_picocolors(), 1);
35253
35246
  function warmupFiles(server, environment) {
35254
35247
  const { root } = server.config;
35255
35248
  mapFiles(environment.config.dev.warmup, root).then((files) => {
@@ -35301,7 +35294,7 @@ async function mapFiles(files, root) {
35301
35294
 
35302
35295
  //#endregion
35303
35296
  //#region src/node/server/environment.ts
35304
- var import_picocolors$1 = __toESM(require_picocolors());
35297
+ var import_picocolors$1 = __toESM(require_picocolors(), 1);
35305
35298
  var DevEnvironment = class extends BaseEnvironment {
35306
35299
  mode = "dev";
35307
35300
  moduleGraph;
@@ -35602,8 +35595,8 @@ function build_default$1({ threshold = 1024, level = -1, brotli = false, gzip: g
35602
35595
 
35603
35596
  //#endregion
35604
35597
  //#region src/node/preview.ts
35605
- var import_connect = __toESM(require_connect());
35606
- var import_lib = __toESM(require_lib());
35598
+ var import_connect = __toESM(require_connect(), 1);
35599
+ var import_lib = __toESM(require_lib(), 1);
35607
35600
  function resolvePreviewOptions(preview$1, server) {
35608
35601
  return {
35609
35602
  port: preview$1?.port ?? DEFAULT_PREVIEW_PORT,
@@ -35664,16 +35657,16 @@ async function preview(inlineConfig = {}) {
35664
35657
  }
35665
35658
  };
35666
35659
  setupSIGTERMListener(closeServerAndExit);
35660
+ const { cors } = config$2.preview;
35661
+ if (cors !== false) app.use((0, import_lib.default)(typeof cors === "boolean" ? {} : cors));
35662
+ const { allowedHosts } = config$2.preview;
35663
+ if (allowedHosts !== true && !config$2.preview.https) app.use(hostValidationMiddleware(allowedHosts, true));
35667
35664
  const configurePreviewServerContext = new BasicMinimalPluginContext({
35668
35665
  ...basePluginContextMeta,
35669
35666
  watchMode: false
35670
35667
  }, config$2.logger);
35671
35668
  const postHooks = [];
35672
35669
  for (const hook of config$2.getSortedPluginHooks("configurePreviewServer")) postHooks.push(await hook.call(configurePreviewServerContext, server));
35673
- const { cors } = config$2.preview;
35674
- if (cors !== false) app.use((0, import_lib.default)(typeof cors === "boolean" ? {} : cors));
35675
- const { allowedHosts } = config$2.preview;
35676
- if (allowedHosts !== true && !config$2.preview.https) app.use(hostValidationMiddleware(allowedHosts, true));
35677
35670
  const { proxy } = config$2.preview;
35678
35671
  if (proxy) app.use(proxyMiddleware(httpServer, proxy, config$2));
35679
35672
  app.use(build_default$1());
@@ -35772,7 +35765,7 @@ async function runnerImport(moduleId, inlineConfig) {
35772
35765
 
35773
35766
  //#endregion
35774
35767
  //#region src/node/config.ts
35775
- var import_picocolors = __toESM(require_picocolors());
35768
+ var import_picocolors = __toESM(require_picocolors(), 1);
35776
35769
  const debug = createDebugger("vite:config", { depth: 10 });
35777
35770
  const promisifiedRealpath = promisify(fs.realpath);
35778
35771
  const SYMBOL_RESOLVED_CONFIG = Symbol("vite:resolved-config");
@@ -36459,7 +36452,7 @@ async function bundleConfigFile(fileName, isESM) {
36459
36452
  }
36460
36453
  const _require = createRequire(
36461
36454
  /** #__KEEP__ */
36462
- new URL("../../../src/node/config.ts", import.meta.url)
36455
+ import.meta.url
36463
36456
  );
36464
36457
  async function loadConfigFromBundledFile(fileName, bundledCode, isESM) {
36465
36458
  if (isESM) {