vite 7.2.4 → 7.2.6

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,4 +1,4 @@
1
- import { i as __toESM, n as __require, r as __toDynamicImportESM, t as __commonJS } from "./chunk.js";
1
+ import { a as __toCommonJS, i as __require, n as __esmMin, o as __toDynamicImportESM, r as __export, s as __toESM, t as __commonJSMin } from "./chunk.js";
2
2
  import { A as OPTIMIZABLE_ENTRY_RE, C as ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, D as JS_TYPES_RE, E as FS_PREFIX, F as defaultAllowedOrigins, I as loopbackHosts, L as wildcardHosts, M as SPECIAL_QUERY_RE, N as VERSION, O as KNOWN_ASSET_TYPES, P as VITE_PACKAGE_DIR, R as require_picocolors, S as ENV_PUBLIC_PATH, T as ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, _ as DEFAULT_SERVER_CONDITIONS, a as CLIENT_ENTRY, b as DEV_PROD_CONDITION, c as DEFAULT_ASSETS_INLINE_LIMIT, d as DEFAULT_CLIENT_MAIN_FIELDS, f as DEFAULT_CONFIG_FILES, g as DEFAULT_PREVIEW_PORT, h as DEFAULT_EXTERNAL_CONDITIONS, i as CLIENT_DIR, j as ROLLUP_HOOKS, k as METADATA_FILENAME, l as DEFAULT_ASSETS_RE, m as DEFAULT_EXTENSIONS, n as createLogger, o as CLIENT_PUBLIC_PATH, p as DEFAULT_DEV_PORT, r as printServerUrls, s as CSS_LANGS_RE, t as LogLevels, u as DEFAULT_CLIENT_CONDITIONS, v as DEFAULT_SERVER_MAIN_FIELDS, w as ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, x as ENV_ENTRY, y as DEP_VERSION_RE } from "./logger.js";
3
3
  import { builtinModules, createRequire } from "node:module";
4
4
  import { parseAst, parseAstAsync } from "rollup/parseAst";
@@ -7,7 +7,7 @@ import fs, { existsSync, promises, readFileSync } from "node:fs";
7
7
  import path, { basename, dirname, extname, isAbsolute, join, normalize, posix, relative, resolve, sep } from "node:path";
8
8
  import fsp, { constants } from "node:fs/promises";
9
9
  import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
10
- import { format, inspect, promisify, stripVTControlCharacters } from "node:util";
10
+ import { format, formatWithOptions, inspect, promisify, stripVTControlCharacters } from "node:util";
11
11
  import { performance as performance$1 } from "node:perf_hooks";
12
12
  import crypto from "node:crypto";
13
13
  import picomatch from "picomatch";
@@ -16,6 +16,7 @@ import os from "node:os";
16
16
  import net from "node:net";
17
17
  import childProcess, { exec, execFile, execSync } from "node:child_process";
18
18
  import { promises as promises$1 } from "node:dns";
19
+ import { isatty } from "node:tty";
19
20
  import path$1, { basename as basename$1, dirname as dirname$1, extname as extname$1, isAbsolute as isAbsolute$1, join as join$1, posix as posix$1, relative as relative$1, resolve as resolve$1, sep as sep$1, win32 } from "path";
20
21
  import { existsSync as existsSync$1, readFileSync as readFileSync$1, readdirSync, statSync } from "fs";
21
22
  import { fdir } from "fdir";
@@ -585,7 +586,7 @@ function memoizedBinarySearch(haystack, needle, state, key) {
585
586
  state.lastNeedle = needle;
586
587
  return state.lastIndex = binarySearch(haystack, needle, low, high);
587
588
  }
588
- function parse$16(map$1) {
589
+ function parse$14(map$1) {
589
590
  return typeof map$1 === "string" ? JSON.parse(map$1) : map$1;
590
591
  }
591
592
  var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)";
@@ -596,7 +597,7 @@ var TraceMap = class {
596
597
  constructor(map$1, mapUrl) {
597
598
  const isString$1 = typeof map$1 === "string";
598
599
  if (!isString$1 && map$1._decodedMemo) return map$1;
599
- const parsed = parse$16(map$1);
600
+ const parsed = parse$14(map$1);
600
601
  const { version: version$2, file, names, sourceRoot, sources, sourcesContent } = parsed;
601
602
  this.version = version$2;
602
603
  this.file = file;
@@ -896,7 +897,7 @@ function asArray(value$1) {
896
897
  return [value$1];
897
898
  }
898
899
  function buildSourceMapTree(input, loader$1) {
899
- const maps = asArray(input).map((m$2) => new TraceMap(m$2, ""));
900
+ const maps = asArray(input).map((m) => new TraceMap(m, ""));
900
901
  const map$1 = maps.pop();
901
902
  for (let i$1 = 0; i$1 < maps.length; i$1++) if (maps[i$1].sources.length > 1) throw new Error(`Transformation map ${i$1} must have exactly one source file.
902
903
  Did you specify these with the most recent transformation maps first?`);
@@ -946,349 +947,258 @@ function remapping(input, loader$1, options$1) {
946
947
  }
947
948
 
948
949
  //#endregion
949
- //#region ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
950
- var require_ms$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js": ((exports, module) => {
951
- /**
952
- * Helpers.
953
- */
954
- var s$1 = 1e3;
955
- var m$1 = s$1 * 60;
956
- var h$1 = m$1 * 60;
957
- var d$1 = h$1 * 24;
958
- var w = d$1 * 7;
959
- var y$1 = d$1 * 365.25;
960
- /**
961
- * Parse or format the given `val`.
962
- *
963
- * Options:
964
- *
965
- * - `long` verbose formatting [false]
966
- *
967
- * @param {String|Number} val
968
- * @param {Object} [options]
969
- * @throws {Error} throw an error if val is not a non-empty string or a number
970
- * @return {String|Number}
971
- * @api public
972
- */
973
- module.exports = function(val, options$1) {
974
- options$1 = options$1 || {};
975
- var type = typeof val;
976
- if (type === "string" && val.length > 0) return parse$15(val);
977
- else if (type === "number" && isFinite(val)) return options$1.long ? fmtLong$1(val) : fmtShort$1(val);
978
- throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
979
- };
980
- /**
981
- * Parse the given `str` and return milliseconds.
982
- *
983
- * @param {String} str
984
- * @return {Number}
985
- * @api private
986
- */
987
- function parse$15(str) {
988
- str = String(str);
989
- if (str.length > 100) return;
990
- var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
991
- if (!match) return;
992
- var n$2 = parseFloat(match[1]);
993
- switch ((match[2] || "ms").toLowerCase()) {
994
- case "years":
995
- case "year":
996
- case "yrs":
997
- case "yr":
998
- case "y": return n$2 * y$1;
999
- case "weeks":
1000
- case "week":
1001
- case "w": return n$2 * w;
1002
- case "days":
1003
- case "day":
1004
- case "d": return n$2 * d$1;
1005
- case "hours":
1006
- case "hour":
1007
- case "hrs":
1008
- case "hr":
1009
- case "h": return n$2 * h$1;
1010
- case "minutes":
1011
- case "minute":
1012
- case "mins":
1013
- case "min":
1014
- case "m": return n$2 * m$1;
1015
- case "seconds":
1016
- case "second":
1017
- case "secs":
1018
- case "sec":
1019
- case "s": return n$2 * s$1;
1020
- case "milliseconds":
1021
- case "millisecond":
1022
- case "msecs":
1023
- case "msec":
1024
- case "ms": return n$2;
1025
- default: return;
1026
- }
1027
- }
1028
- /**
1029
- * Short format for `ms`.
1030
- *
1031
- * @param {Number} ms
1032
- * @return {String}
1033
- * @api private
1034
- */
1035
- function fmtShort$1(ms) {
1036
- var msAbs = Math.abs(ms);
1037
- if (msAbs >= d$1) return Math.round(ms / d$1) + "d";
1038
- if (msAbs >= h$1) return Math.round(ms / h$1) + "h";
1039
- if (msAbs >= m$1) return Math.round(ms / m$1) + "m";
1040
- if (msAbs >= s$1) return Math.round(ms / s$1) + "s";
1041
- return ms + "ms";
1042
- }
1043
- /**
1044
- * Long format for `ms`.
1045
- *
1046
- * @param {Number} ms
1047
- * @return {String}
1048
- * @api private
1049
- */
1050
- function fmtLong$1(ms) {
1051
- var msAbs = Math.abs(ms);
1052
- if (msAbs >= d$1) return plural$1(ms, msAbs, d$1, "day");
1053
- if (msAbs >= h$1) return plural$1(ms, msAbs, h$1, "hour");
1054
- if (msAbs >= m$1) return plural$1(ms, msAbs, m$1, "minute");
1055
- if (msAbs >= s$1) return plural$1(ms, msAbs, s$1, "second");
1056
- return ms + " ms";
1057
- }
1058
- /**
1059
- * Pluralization helper.
1060
- */
1061
- function plural$1(ms, msAbs, n$2, name) {
1062
- var isPlural = msAbs >= n$2 * 1.5;
1063
- return Math.round(ms / n$2) + " " + name + (isPlural ? "s" : "");
1064
- }
1065
- }) });
1066
-
1067
- //#endregion
1068
- //#region ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
1069
- var require_common$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js": ((exports, module) => {
1070
- /**
1071
- * This is the common logic for both the Node.js and web browser
1072
- * implementations of `debug()`.
1073
- */
1074
- function setup(env$1) {
1075
- createDebug$1.debug = createDebug$1;
1076
- createDebug$1.default = createDebug$1;
1077
- createDebug$1.coerce = coerce$1;
1078
- createDebug$1.disable = disable$1;
1079
- createDebug$1.enable = enable$1;
1080
- createDebug$1.enabled = enabled$1;
1081
- createDebug$1.humanize = require_ms$1();
1082
- createDebug$1.destroy = destroy$1;
1083
- Object.keys(env$1).forEach((key) => {
1084
- createDebug$1[key] = env$1[key];
1085
- });
1086
- /**
1087
- * The currently active debug mode names, and names to skip.
1088
- */
1089
- createDebug$1.names = [];
1090
- createDebug$1.skips = [];
1091
- /**
1092
- * Map of special "%n" handling functions, for the debug "format" argument.
1093
- *
1094
- * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
1095
- */
1096
- createDebug$1.formatters = {};
1097
- /**
1098
- * Selects a color for a debug namespace
1099
- * @param {String} namespace The namespace string for the debug instance to be colored
1100
- * @return {Number|String} An ANSI color code for the given namespace
1101
- * @api private
1102
- */
1103
- function selectColor$1(namespace) {
1104
- let hash$1 = 0;
1105
- for (let i$1 = 0; i$1 < namespace.length; i$1++) {
1106
- hash$1 = (hash$1 << 5) - hash$1 + namespace.charCodeAt(i$1);
1107
- hash$1 |= 0;
1108
- }
1109
- return createDebug$1.colors[Math.abs(hash$1) % createDebug$1.colors.length];
1110
- }
1111
- createDebug$1.selectColor = selectColor$1;
1112
- /**
1113
- * Create a debugger with the given `namespace`.
1114
- *
1115
- * @param {String} namespace
1116
- * @return {Function}
1117
- * @api public
1118
- */
1119
- function createDebug$1(namespace) {
1120
- let prevTime$1;
1121
- let enableOverride = null;
1122
- let namespacesCache;
1123
- let enabledCache;
1124
- function debug$19(...args) {
1125
- if (!debug$19.enabled) return;
1126
- const self$1 = debug$19;
1127
- const curr = Number(/* @__PURE__ */ new Date());
1128
- self$1.diff = curr - (prevTime$1 || curr);
1129
- self$1.prev = prevTime$1;
1130
- self$1.curr = curr;
1131
- prevTime$1 = curr;
1132
- args[0] = createDebug$1.coerce(args[0]);
1133
- if (typeof args[0] !== "string") args.unshift("%O");
1134
- let index = 0;
1135
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format$3) => {
1136
- if (match === "%%") return "%";
1137
- index++;
1138
- const formatter = createDebug$1.formatters[format$3];
1139
- if (typeof formatter === "function") {
1140
- const val = args[index];
1141
- match = formatter.call(self$1, val);
1142
- args.splice(index, 1);
1143
- index--;
1144
- }
1145
- return match;
1146
- });
1147
- createDebug$1.formatArgs.call(self$1, args);
1148
- (self$1.log || createDebug$1.log).apply(self$1, args);
1149
- }
1150
- debug$19.namespace = namespace;
1151
- debug$19.useColors = createDebug$1.useColors();
1152
- debug$19.color = createDebug$1.selectColor(namespace);
1153
- debug$19.extend = extend;
1154
- debug$19.destroy = createDebug$1.destroy;
1155
- Object.defineProperty(debug$19, "enabled", {
1156
- enumerable: true,
1157
- configurable: false,
1158
- get: () => {
1159
- if (enableOverride !== null) return enableOverride;
1160
- if (namespacesCache !== createDebug$1.namespaces) {
1161
- namespacesCache = createDebug$1.namespaces;
1162
- enabledCache = createDebug$1.enabled(namespace);
1163
- }
1164
- return enabledCache;
1165
- },
1166
- set: (v) => {
1167
- enableOverride = v;
950
+ //#region ../../node_modules/.pnpm/obug@1.0.2_ms@2.1.3/node_modules/obug/dist/core.js
951
+ function coerce(value$1) {
952
+ if (value$1 instanceof Error) return value$1.stack || value$1.message;
953
+ return value$1;
954
+ }
955
+ function selectColor(colors$36, namespace) {
956
+ let hash$1 = 0;
957
+ for (let i$1 = 0; i$1 < namespace.length; i$1++) {
958
+ hash$1 = (hash$1 << 5) - hash$1 + namespace.charCodeAt(i$1);
959
+ hash$1 |= 0;
960
+ }
961
+ return colors$36[Math.abs(hash$1) % colors$36.length];
962
+ }
963
+ function matchesTemplate(search, template) {
964
+ let searchIndex = 0;
965
+ let templateIndex = 0;
966
+ let starIndex = -1;
967
+ let matchIndex = 0;
968
+ while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
969
+ starIndex = templateIndex;
970
+ matchIndex = searchIndex;
971
+ templateIndex++;
972
+ } else {
973
+ searchIndex++;
974
+ templateIndex++;
975
+ }
976
+ else if (starIndex !== -1) {
977
+ templateIndex = starIndex + 1;
978
+ matchIndex++;
979
+ searchIndex = matchIndex;
980
+ } else return false;
981
+ while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
982
+ return templateIndex === template.length;
983
+ }
984
+ function humanize(value$1) {
985
+ if (value$1 >= 1e3) return `${(value$1 / 1e3).toFixed(1)}s`;
986
+ return `${value$1}ms`;
987
+ }
988
+ function setup(useColors$1, colors$36, log$3, load$2, save$1, formatArgs$1, init$2) {
989
+ const createDebug$1 = (namespace) => {
990
+ let prevTime;
991
+ let enableOverride;
992
+ let namespacesCache;
993
+ let enabledCache;
994
+ const debug$18 = (...args) => {
995
+ if (!debug$18.enabled) return;
996
+ const curr = Date.now();
997
+ debug$18.diff = curr - (prevTime || curr);
998
+ debug$18.prev = prevTime;
999
+ debug$18.curr = curr;
1000
+ prevTime = curr;
1001
+ args[0] = coerce(args[0]);
1002
+ if (typeof args[0] !== "string") args.unshift("%O");
1003
+ let index = 0;
1004
+ args[0] = args[0].replace(/%([a-z%])/gi, (match, format$3) => {
1005
+ if (match === "%%") return "%";
1006
+ index++;
1007
+ const formatter = createDebug$1.formatters[format$3];
1008
+ if (typeof formatter === "function") {
1009
+ const value$1 = args[index];
1010
+ match = formatter.call(debug$18, value$1);
1011
+ args.splice(index, 1);
1012
+ index--;
1168
1013
  }
1014
+ return match;
1169
1015
  });
1170
- if (typeof createDebug$1.init === "function") createDebug$1.init(debug$19);
1171
- return debug$19;
1172
- }
1173
- function extend(namespace, delimiter) {
1174
- const newDebug = createDebug$1(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
1016
+ createDebug$1.formatArgs.call(debug$18, args);
1017
+ (debug$18.log || createDebug$1.log).apply(debug$18, args);
1018
+ };
1019
+ function extend(namespace$1, delimiter = ":") {
1020
+ const newDebug = createDebug$1(this.namespace + delimiter + namespace$1);
1175
1021
  newDebug.log = this.log;
1176
1022
  return newDebug;
1177
1023
  }
1178
- /**
1179
- * Enables a debug mode by namespaces. This can include modes
1180
- * separated by a colon and wildcards.
1181
- *
1182
- * @param {String} namespaces
1183
- * @api public
1184
- */
1185
- function enable$1(namespaces) {
1186
- createDebug$1.save(namespaces);
1187
- createDebug$1.namespaces = namespaces;
1188
- createDebug$1.names = [];
1189
- createDebug$1.skips = [];
1190
- const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
1191
- for (const ns of split) if (ns[0] === "-") createDebug$1.skips.push(ns.slice(1));
1192
- else createDebug$1.names.push(ns);
1193
- }
1194
- /**
1195
- * Checks if the given string matches a namespace template, honoring
1196
- * asterisks as wildcards.
1197
- *
1198
- * @param {String} search
1199
- * @param {String} template
1200
- * @return {Boolean}
1201
- */
1202
- function matchesTemplate(search, template) {
1203
- let searchIndex = 0;
1204
- let templateIndex = 0;
1205
- let starIndex = -1;
1206
- let matchIndex = 0;
1207
- while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
1208
- starIndex = templateIndex;
1209
- matchIndex = searchIndex;
1210
- templateIndex++;
1211
- } else {
1212
- searchIndex++;
1213
- templateIndex++;
1024
+ debug$18.namespace = namespace;
1025
+ debug$18.useColors = useColors$1;
1026
+ debug$18.color = selectColor(colors$36, namespace);
1027
+ debug$18.extend = extend;
1028
+ debug$18.log = log$3;
1029
+ Object.defineProperty(debug$18, "enabled", {
1030
+ enumerable: true,
1031
+ configurable: false,
1032
+ get: () => {
1033
+ if (enableOverride != null) return enableOverride;
1034
+ if (namespacesCache !== createDebug$1.namespaces) {
1035
+ namespacesCache = createDebug$1.namespaces;
1036
+ enabledCache = createDebug$1.enabled(namespace);
1037
+ }
1038
+ return enabledCache;
1039
+ },
1040
+ set: (v) => {
1041
+ enableOverride = v;
1214
1042
  }
1215
- else if (starIndex !== -1) {
1216
- templateIndex = starIndex + 1;
1217
- matchIndex++;
1218
- searchIndex = matchIndex;
1219
- } else return false;
1220
- while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
1221
- return templateIndex === template.length;
1222
- }
1223
- /**
1224
- * Disable debug output.
1225
- *
1226
- * @return {String} namespaces
1227
- * @api public
1228
- */
1229
- function disable$1() {
1230
- const namespaces = [...createDebug$1.names, ...createDebug$1.skips.map((namespace) => "-" + namespace)].join(",");
1231
- createDebug$1.enable("");
1232
- return namespaces;
1233
- }
1234
- /**
1235
- * Returns true if the given mode name is enabled, false otherwise.
1236
- *
1237
- * @param {String} name
1238
- * @return {Boolean}
1239
- * @api public
1240
- */
1241
- function enabled$1(name) {
1242
- for (const skip of createDebug$1.skips) if (matchesTemplate(name, skip)) return false;
1243
- for (const ns of createDebug$1.names) if (matchesTemplate(name, ns)) return true;
1244
- return false;
1245
- }
1246
- /**
1247
- * Coerce `val`.
1248
- *
1249
- * @param {Mixed} val
1250
- * @return {Mixed}
1251
- * @api private
1252
- */
1253
- function coerce$1(val) {
1254
- if (val instanceof Error) return val.stack || val.message;
1255
- return val;
1256
- }
1257
- /**
1258
- * XXX DO NOT USE. This is a temporary stub function.
1259
- * XXX It WILL be removed in the next major release.
1260
- */
1261
- function destroy$1() {
1262
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
1263
- }
1264
- createDebug$1.enable(createDebug$1.load());
1265
- return createDebug$1;
1043
+ });
1044
+ init$2 && init$2(debug$18);
1045
+ return debug$18;
1046
+ };
1047
+ function enable(namespaces) {
1048
+ save$1(namespaces);
1049
+ createDebug$1.namespaces = namespaces;
1050
+ createDebug$1.names = [];
1051
+ createDebug$1.skips = [];
1052
+ const split = namespaces.trim().replace(/\s+/g, ",").split(",").filter(Boolean);
1053
+ for (const ns of split) if (ns[0] === "-") createDebug$1.skips.push(ns.slice(1));
1054
+ else createDebug$1.names.push(ns);
1266
1055
  }
1267
- module.exports = setup;
1268
- }) });
1056
+ function disable() {
1057
+ const namespaces = [...createDebug$1.names, ...createDebug$1.skips.map((namespace) => `-${namespace}`)].join(",");
1058
+ createDebug$1.enable("");
1059
+ return namespaces;
1060
+ }
1061
+ function enabled(name) {
1062
+ for (const skip of createDebug$1.skips) if (matchesTemplate(name, skip)) return false;
1063
+ for (const ns of createDebug$1.names) if (matchesTemplate(name, ns)) return true;
1064
+ return false;
1065
+ }
1066
+ createDebug$1.namespaces = "";
1067
+ createDebug$1.formatters = {};
1068
+ createDebug$1.enable = enable;
1069
+ createDebug$1.disable = disable;
1070
+ createDebug$1.enabled = enabled;
1071
+ createDebug$1.names = [];
1072
+ createDebug$1.skips = [];
1073
+ createDebug$1.selectColor = (ns) => selectColor(colors$36, ns);
1074
+ createDebug$1.formatArgs = formatArgs$1;
1075
+ createDebug$1.log = log$3;
1076
+ createDebug$1.enable(load$2());
1077
+ return createDebug$1;
1078
+ }
1079
+ var init_core = __esmMin((() => {}));
1269
1080
 
1270
1081
  //#endregion
1271
- //#region ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
1272
- var require_node$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js": ((exports, module) => {
1273
- /**
1274
- * Module dependencies.
1275
- */
1276
- const tty$1 = __require("tty");
1277
- const util$2 = __require("util");
1278
- /**
1279
- * This is the Node.js implementation of `debug()`.
1280
- */
1281
- exports.init = init$2;
1282
- exports.log = log$3;
1283
- exports.formatArgs = formatArgs$1;
1284
- exports.save = save$1;
1285
- exports.load = load$2;
1286
- exports.useColors = useColors$1;
1287
- exports.destroy = util$2.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
1288
- /**
1289
- * Colors.
1290
- */
1291
- exports.colors = [
1082
+ //#region ../../node_modules/.pnpm/obug@1.0.2_ms@2.1.3/node_modules/obug/dist/node.js
1083
+ var node_exports = /* @__PURE__ */ __export({
1084
+ createDebug: () => createDebug,
1085
+ default: () => node_default,
1086
+ formatArgs: () => formatArgs,
1087
+ log: () => log$2,
1088
+ "module.exports": () => createDebug
1089
+ });
1090
+ function log$2(...args) {
1091
+ process.stderr.write(`${formatWithOptions(inspectOpts, ...args)}\n`);
1092
+ }
1093
+ function load$1() {
1094
+ return process.env.DEBUG || "";
1095
+ }
1096
+ function save(namespaces) {
1097
+ if (namespaces) process.env.DEBUG = namespaces;
1098
+ else delete process.env.DEBUG;
1099
+ }
1100
+ function useColors() {
1101
+ return "colors" in inspectOpts ? Boolean(inspectOpts.colors) : isatty(process.stderr.fd);
1102
+ }
1103
+ function formatArgs(args) {
1104
+ const { namespace: name, useColors: useColors$1 } = this;
1105
+ if (useColors$1) {
1106
+ const c = this.color;
1107
+ const colorCode = `\u001B[3${c < 8 ? c : `8;5;${c}`}`;
1108
+ const prefix = ` ${colorCode};1m${name} \u001B[0m`;
1109
+ args[0] = prefix + args[0].split("\n").join(`\n${prefix}`);
1110
+ args.push(`${colorCode}m+${humanize$1(this.diff)}\u001B[0m`);
1111
+ } else args[0] = `${getDate()}${name} ${args[0]}`;
1112
+ }
1113
+ function getDate() {
1114
+ if (inspectOpts.hideDate) return "";
1115
+ return `${(/* @__PURE__ */ new Date()).toISOString()} `;
1116
+ }
1117
+ function init$1(debug$18) {
1118
+ debug$18.inspectOpts = Object.assign({}, inspectOpts);
1119
+ }
1120
+ var require$1, colors$35, inspectOpts, humanize$1, createDebug, node_default;
1121
+ var init_node = __esmMin((() => {
1122
+ init_core();
1123
+ require$1 = createRequire(import.meta.url);
1124
+ colors$35 = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
1125
+ 20,
1126
+ 21,
1127
+ 26,
1128
+ 27,
1129
+ 32,
1130
+ 33,
1131
+ 38,
1132
+ 39,
1133
+ 40,
1134
+ 41,
1135
+ 42,
1136
+ 43,
1137
+ 44,
1138
+ 45,
1139
+ 56,
1140
+ 57,
1141
+ 62,
1142
+ 63,
1143
+ 68,
1144
+ 69,
1145
+ 74,
1146
+ 75,
1147
+ 76,
1148
+ 77,
1149
+ 78,
1150
+ 79,
1151
+ 80,
1152
+ 81,
1153
+ 92,
1154
+ 93,
1155
+ 98,
1156
+ 99,
1157
+ 112,
1158
+ 113,
1159
+ 128,
1160
+ 129,
1161
+ 134,
1162
+ 135,
1163
+ 148,
1164
+ 149,
1165
+ 160,
1166
+ 161,
1167
+ 162,
1168
+ 163,
1169
+ 164,
1170
+ 165,
1171
+ 166,
1172
+ 167,
1173
+ 168,
1174
+ 169,
1175
+ 170,
1176
+ 171,
1177
+ 172,
1178
+ 173,
1179
+ 178,
1180
+ 179,
1181
+ 184,
1182
+ 185,
1183
+ 196,
1184
+ 197,
1185
+ 198,
1186
+ 199,
1187
+ 200,
1188
+ 201,
1189
+ 202,
1190
+ 203,
1191
+ 204,
1192
+ 205,
1193
+ 206,
1194
+ 207,
1195
+ 208,
1196
+ 209,
1197
+ 214,
1198
+ 215,
1199
+ 220,
1200
+ 221
1201
+ ] : [
1292
1202
  6,
1293
1203
  2,
1294
1204
  3,
@@ -1296,184 +1206,38 @@ var require_node$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debu
1296
1206
  5,
1297
1207
  1
1298
1208
  ];
1299
- try {
1300
- const supportsColor = __require("supports-color");
1301
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
1302
- 20,
1303
- 21,
1304
- 26,
1305
- 27,
1306
- 32,
1307
- 33,
1308
- 38,
1309
- 39,
1310
- 40,
1311
- 41,
1312
- 42,
1313
- 43,
1314
- 44,
1315
- 45,
1316
- 56,
1317
- 57,
1318
- 62,
1319
- 63,
1320
- 68,
1321
- 69,
1322
- 74,
1323
- 75,
1324
- 76,
1325
- 77,
1326
- 78,
1327
- 79,
1328
- 80,
1329
- 81,
1330
- 92,
1331
- 93,
1332
- 98,
1333
- 99,
1334
- 112,
1335
- 113,
1336
- 128,
1337
- 129,
1338
- 134,
1339
- 135,
1340
- 148,
1341
- 149,
1342
- 160,
1343
- 161,
1344
- 162,
1345
- 163,
1346
- 164,
1347
- 165,
1348
- 166,
1349
- 167,
1350
- 168,
1351
- 169,
1352
- 170,
1353
- 171,
1354
- 172,
1355
- 173,
1356
- 178,
1357
- 179,
1358
- 184,
1359
- 185,
1360
- 196,
1361
- 197,
1362
- 198,
1363
- 199,
1364
- 200,
1365
- 201,
1366
- 202,
1367
- 203,
1368
- 204,
1369
- 205,
1370
- 206,
1371
- 207,
1372
- 208,
1373
- 209,
1374
- 214,
1375
- 215,
1376
- 220,
1377
- 221
1378
- ];
1379
- } catch (error$1) {}
1380
- /**
1381
- * Build up the default `inspectOpts` object from the environment variables.
1382
- *
1383
- * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
1384
- */
1385
- exports.inspectOpts = Object.keys(process.env).filter((key) => {
1209
+ inspectOpts = Object.keys(process.env).filter((key) => {
1386
1210
  return /^debug_/i.test(key);
1387
1211
  }).reduce((obj, key) => {
1388
- const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
1389
- return k.toUpperCase();
1390
- });
1391
- let val = process.env[key];
1392
- if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
1393
- else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
1394
- else if (val === "null") val = null;
1395
- else val = Number(val);
1396
- obj[prop] = val;
1212
+ const prop = key.slice(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase());
1213
+ let value$1 = process.env[key];
1214
+ if (value$1 === "null") value$1 = null;
1215
+ else if (/^yes|on|true|enabled$/i.test(value$1)) value$1 = true;
1216
+ else if (/^no|off|false|disabled$/i.test(value$1)) value$1 = false;
1217
+ else value$1 = Number(value$1);
1218
+ obj[prop] = value$1;
1397
1219
  return obj;
1398
1220
  }, {});
1399
- /**
1400
- * Is stdout a TTY? Colored output is enabled when `true`.
1401
- */
1402
- function useColors$1() {
1403
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty$1.isatty(process.stderr.fd);
1404
- }
1405
- /**
1406
- * Adds ANSI color escape codes if enabled.
1407
- *
1408
- * @api public
1409
- */
1410
- function formatArgs$1(args) {
1411
- const { namespace: name, useColors: useColors$2 } = this;
1412
- if (useColors$2) {
1413
- const c = this.color;
1414
- const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
1415
- const prefix = ` ${colorCode};1m${name} \u001B[0m`;
1416
- args[0] = prefix + args[0].split("\n").join("\n" + prefix);
1417
- args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
1418
- } else args[0] = getDate() + name + " " + args[0];
1419
- }
1420
- function getDate() {
1421
- if (exports.inspectOpts.hideDate) return "";
1422
- return (/* @__PURE__ */ new Date()).toISOString() + " ";
1423
- }
1424
- /**
1425
- * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
1426
- */
1427
- function log$3(...args) {
1428
- return process.stderr.write(util$2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
1429
- }
1430
- /**
1431
- * Save `namespaces`.
1432
- *
1433
- * @param {String} namespaces
1434
- * @api private
1435
- */
1436
- function save$1(namespaces) {
1437
- if (namespaces) process.env.DEBUG = namespaces;
1438
- else delete process.env.DEBUG;
1439
- }
1440
- /**
1441
- * Load `namespaces`.
1442
- *
1443
- * @return {String} returns the previously persisted debug modes
1444
- * @api private
1445
- */
1446
- function load$2() {
1447
- return process.env.DEBUG;
1448
- }
1449
- /**
1450
- * Init logic for `debug` instances.
1451
- *
1452
- * Create a new `inspectOpts` object in case `useColors` is set
1453
- * differently for a particular `debug` instance.
1454
- */
1455
- function init$2(debug$19) {
1456
- debug$19.inspectOpts = {};
1457
- const keys = Object.keys(exports.inspectOpts);
1458
- for (let i$1 = 0; i$1 < keys.length; i$1++) debug$19.inspectOpts[keys[i$1]] = exports.inspectOpts[keys[i$1]];
1221
+ ;
1222
+ try {
1223
+ humanize$1 = require$1("ms");
1224
+ } catch (_unused) {
1225
+ humanize$1 = humanize;
1459
1226
  }
1460
- module.exports = require_common$1()(exports);
1461
- const { formatters } = module.exports;
1462
- /**
1463
- * Map %o to `util.inspect()`, all on a single line.
1464
- */
1465
- formatters.o = function(v) {
1227
+ createDebug = setup(useColors(), colors$35, log$2, load$1, save, formatArgs, init$1);
1228
+ createDebug.inspectOpts = inspectOpts;
1229
+ createDebug.formatters.o = function(v) {
1466
1230
  this.inspectOpts.colors = this.useColors;
1467
- return util$2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
1231
+ return inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
1468
1232
  };
1469
- /**
1470
- * Map %O to `util.inspect()`, allowing multiple lines if needed.
1471
- */
1472
- formatters.O = function(v) {
1233
+ createDebug.formatters.O = function(v) {
1473
1234
  this.inspectOpts.colors = this.useColors;
1474
- return util$2.inspect(v, this.inspectOpts);
1235
+ return inspect(v, this.inspectOpts);
1475
1236
  };
1476
- }) });
1237
+ node_default = createDebug;
1238
+ createDebug.default = createDebug;
1239
+ createDebug.debug = createDebug;
1240
+ }));
1477
1241
 
1478
1242
  //#endregion
1479
1243
  //#region ../../node_modules/.pnpm/estree-walker@2.0.2/node_modules/estree-walker/dist/esm/estree-walker.js
@@ -2073,7 +1837,7 @@ function traverseBetweenDirs(longerDir, shorterDir, cb) {
2073
1837
  //#endregion
2074
1838
  //#region src/node/utils.ts
2075
1839
  var import_picocolors$33 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
2076
- var import_node = /* @__PURE__ */ __toESM(require_node$1(), 1);
1840
+ init_node();
2077
1841
  const createFilter = createFilter$2;
2078
1842
  const replaceSlashOrColonRE = /[/:]/g;
2079
1843
  const replaceDotRE = /\./g;
@@ -2117,7 +1881,7 @@ function isInNodeModules(id) {
2117
1881
  return id.includes("node_modules");
2118
1882
  }
2119
1883
  function moduleListContains(moduleList, id) {
2120
- return moduleList?.some((m$2) => m$2 === id || id.startsWith(withTrailingSlash(m$2)));
1884
+ return moduleList?.some((m) => m === id || id.startsWith(withTrailingSlash(m)));
2121
1885
  }
2122
1886
  function isOptimizable(id, optimizeDeps$1) {
2123
1887
  const { extensions: extensions$1 } = optimizeDeps$1;
@@ -2133,13 +1897,13 @@ const rollupVersion = resolvePackageData("rollup", _dirname, true)?.data.version
2133
1897
  const filter = process.env.VITE_DEBUG_FILTER;
2134
1898
  const DEBUG = process.env.DEBUG;
2135
1899
  function createDebugger(namespace, options$1 = {}) {
2136
- const log$4 = (0, import_node.default)(namespace);
1900
+ const log$3 = node_default(namespace);
2137
1901
  const { onlyWhenFocused, depth } = options$1;
2138
- if (depth && log$4.inspectOpts && log$4.inspectOpts.depth == null) log$4.inspectOpts.depth = options$1.depth;
2139
- let enabled$1 = log$4.enabled;
2140
- if (enabled$1 && onlyWhenFocused) enabled$1 = !!DEBUG?.includes(typeof onlyWhenFocused === "string" ? onlyWhenFocused : namespace);
2141
- if (enabled$1) return (...args) => {
2142
- if (!filter || args.some((a) => a?.includes?.(filter))) log$4(...args);
1902
+ if (depth && log$3.inspectOpts && log$3.inspectOpts.depth == null) log$3.inspectOpts.depth = options$1.depth;
1903
+ let enabled = log$3.enabled;
1904
+ if (enabled && onlyWhenFocused) enabled = !!DEBUG?.includes(typeof onlyWhenFocused === "string" ? onlyWhenFocused : namespace);
1905
+ if (enabled) return (...args) => {
1906
+ if (!filter || args.some((a) => a?.includes?.(filter))) log$3(...args);
2143
1907
  };
2144
1908
  }
2145
1909
  function testCaseInsensitiveFS() {
@@ -2467,8 +2231,8 @@ function optimizeSafeRealPathSync() {
2467
2231
  if (error$1) return;
2468
2232
  const lines = stdout.split("\n");
2469
2233
  for (const line of lines) {
2470
- const m$2 = parseNetUseRE.exec(line);
2471
- if (m$2) windowsNetworkMap.set(m$2[2], m$2[1]);
2234
+ const m = parseNetUseRE.exec(line);
2235
+ if (m) windowsNetworkMap.set(m[2], m[1]);
2472
2236
  }
2473
2237
  if (windowsNetworkMap.size === 0) safeRealpathSync = fs.realpathSync.native;
2474
2238
  else safeRealpathSync = windowsMappedRealpathSync;
@@ -2545,7 +2309,7 @@ const nullSourceMap = {
2545
2309
  * Note that the length of sourcemapList must be 2.
2546
2310
  */
2547
2311
  function combineSourcemaps(filename, sourcemapList) {
2548
- if (sourcemapList.length === 0 || sourcemapList.every((m$2) => m$2.sources.length === 0)) return { ...nullSourceMap };
2312
+ if (sourcemapList.length === 0 || sourcemapList.every((m) => m.sources.length === 0)) return { ...nullSourceMap };
2549
2313
  sourcemapList = sourcemapList.map((sourcemap) => {
2550
2314
  const newSourcemaps = { ...sourcemap };
2551
2315
  newSourcemaps.sources = sourcemap.sources.map((source) => source ? escapeToLinuxLikePath(source) : null);
@@ -2555,7 +2319,7 @@ function combineSourcemaps(filename, sourcemapList) {
2555
2319
  const escapedFilename = escapeToLinuxLikePath(filename);
2556
2320
  let map$1;
2557
2321
  let mapIndex = 1;
2558
- if (sourcemapList.slice(0, -1).find((m$2) => m$2.sources.length !== 1) === void 0) map$1 = remapping(sourcemapList, () => null);
2322
+ if (sourcemapList.slice(0, -1).find((m) => m.sources.length !== 1) === void 0) map$1 = remapping(sourcemapList, () => null);
2559
2323
  else map$1 = remapping(sourcemapList[0], function loader$1(sourcefile) {
2560
2324
  if (sourcefile === escapedFilename && sourcemapList[mapIndex]) return sourcemapList[mapIndex++];
2561
2325
  else return null;
@@ -2677,9 +2441,9 @@ const requestQuerySplitRE = /\?(?!.*[/|}])/;
2677
2441
  const requestQueryMaybeEscapedSplitRE = /\\?\?(?!.*[/|}])/;
2678
2442
  const blankReplacer = (match) => " ".repeat(match.length);
2679
2443
  function getHash(text, length = 8) {
2680
- const h$2 = crypto.hash("sha256", text, "hex").substring(0, length);
2681
- if (length <= 64) return h$2;
2682
- return h$2.padEnd(length, "_");
2444
+ const h = crypto.hash("sha256", text, "hex").substring(0, length);
2445
+ if (length <= 64) return h;
2446
+ return h.padEnd(length, "_");
2683
2447
  }
2684
2448
  function emptyCssComments(raw) {
2685
2449
  return raw.replace(multilineCommentsRE, blankReplacer);
@@ -2739,7 +2503,7 @@ function mergeConfigRecursively(defaults, overrides, rootPath) {
2739
2503
  } else if (key === "assetsInclude" && rootPath === "") {
2740
2504
  merged[key] = [].concat(existing, value$1);
2741
2505
  continue;
2742
- } else if ((key === "noExternal" && (rootPath === "ssr" || rootPath === "resolve") || key === "allowedHosts" && rootPath === "server") && (existing === true || value$1 === true)) {
2506
+ } else if (((key === "noExternal" || key === "external") && (rootPath === "ssr" || rootPath === "resolve") || key === "allowedHosts" && rootPath === "server") && (existing === true || value$1 === true)) {
2743
2507
  merged[key] = true;
2744
2508
  continue;
2745
2509
  } else if (key === "plugins" && rootPath === "worker") {
@@ -2796,10 +2560,10 @@ function normalizeSingleAlias({ find: find$1, replacement, customResolver }) {
2796
2560
  * Transforms transpiled code result where line numbers aren't altered,
2797
2561
  * so we can skip sourcemap generation during dev
2798
2562
  */
2799
- function transformStableResult(s$2, id, config$2) {
2563
+ function transformStableResult(s, id, config$2) {
2800
2564
  return {
2801
- code: s$2.toString(),
2802
- map: config$2.command === "build" && config$2.build.sourcemap ? s$2.generateMap({
2565
+ code: s.toString(),
2566
+ map: config$2.command === "build" && config$2.build.sourcemap ? s.generateMap({
2803
2567
  hires: "boundary",
2804
2568
  source: id
2805
2569
  }) : null
@@ -3018,7 +2782,7 @@ function perEnvironmentPlugin(name, applyToEnvironment) {
3018
2782
 
3019
2783
  //#endregion
3020
2784
  //#region ../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js
3021
- var require_commondir = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js": ((exports, module) => {
2785
+ var require_commondir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3022
2786
  var path$12 = __require("path");
3023
2787
  module.exports = function(basedir, relfiles) {
3024
2788
  if (relfiles) var files = relfiles.map(function(r$1) {
@@ -3033,7 +2797,7 @@ var require_commondir = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/c
3033
2797
  }, files[0].split(/\/+|\\+/));
3034
2798
  return res.length > 1 ? res.join("/") : "/";
3035
2799
  };
3036
- }) });
2800
+ }));
3037
2801
 
3038
2802
  //#endregion
3039
2803
  //#region ../../node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs
@@ -3241,9 +3005,9 @@ function getLocator(source) {
3241
3005
  let i$1 = 0;
3242
3006
  let j = lineOffsets.length;
3243
3007
  while (i$1 < j) {
3244
- const m$2 = i$1 + j >> 1;
3245
- if (index < lineOffsets[m$2]) j = m$2;
3246
- else i$1 = m$2 + 1;
3008
+ const m = i$1 + j >> 1;
3009
+ if (index < lineOffsets[m]) j = m;
3010
+ else i$1 = m + 1;
3247
3011
  }
3248
3012
  const line = i$1 - 1;
3249
3013
  return {
@@ -3973,10 +3737,11 @@ var MagicString = class MagicString {
3973
3737
 
3974
3738
  //#endregion
3975
3739
  //#region ../../node_modules/.pnpm/is-reference@1.2.1/node_modules/is-reference/dist/is-reference.js
3976
- var require_is_reference = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/is-reference@1.2.1/node_modules/is-reference/dist/is-reference.js": ((exports, module) => {
3740
+ var require_is_reference = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3977
3741
  (function(global$1, factory) {
3978
3742
  typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global$1 = global$1 || self, global$1.isReference = factory());
3979
3743
  })(exports, (function() {
3744
+ "use strict";
3980
3745
  function isReference$1(node, parent) {
3981
3746
  if (node.type === "MemberExpression") return !node.computed && isReference$1(node.object, node);
3982
3747
  if (node.type === "Identifier") {
@@ -3998,7 +3763,7 @@ var require_is_reference = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
3998
3763
  }
3999
3764
  return isReference$1;
4000
3765
  }));
4001
- }) });
3766
+ }));
4002
3767
 
4003
3768
  //#endregion
4004
3769
  //#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@29.0.0_rollup@4.43.0/node_modules/@rollup/plugin-commonjs/dist/es/index.js
@@ -4006,9 +3771,9 @@ var import_commondir = /* @__PURE__ */ __toESM(require_commondir(), 1);
4006
3771
  var import_is_reference = /* @__PURE__ */ __toESM(require_is_reference(), 1);
4007
3772
  var version$1 = "29.0.0";
4008
3773
  var peerDependencies = { rollup: "^2.68.0||^3.0.0||^4.0.0" };
4009
- function tryParse(parse$17, code, id) {
3774
+ function tryParse(parse$15, code, id) {
4010
3775
  try {
4011
- return parse$17(code, { allowReturnOutsideFunction: true });
3776
+ return parse$15(code, { allowReturnOutsideFunction: true });
4012
3777
  } catch (err$2) {
4013
3778
  err$2.message += ` in ${id}`;
4014
3779
  throw err$2;
@@ -4019,8 +3784,8 @@ const firstpassNoGlobal = /\b(?:require|module|exports)\b/;
4019
3784
  function hasCjsKeywords(code, ignoreGlobal) {
4020
3785
  return (ignoreGlobal ? firstpassNoGlobal : firstpassGlobal).test(code);
4021
3786
  }
4022
- function analyzeTopLevelStatements(parse$17, code, id) {
4023
- const ast = tryParse(parse$17, code, id);
3787
+ function analyzeTopLevelStatements(parse$15, code, id) {
3788
+ const ast = tryParse(parse$15, code, id);
4024
3789
  let isEsModule = false;
4025
3790
  let hasDefaultExport = false;
4026
3791
  let hasNamedExports = false;
@@ -4760,7 +4525,7 @@ function getRequireHandlers() {
4760
4525
  processRequireExpressions(imports, await resolveRequireSourcesAndUpdateMeta(id, needsRequireWrapper ? IS_WRAPPED_COMMONJS : !isEsModule, commonjsMeta, Object.keys(requiresBySource).map((source) => {
4761
4526
  return {
4762
4527
  source,
4763
- isConditional: requiresBySource[source].every((require$1) => require$1.isInsideConditional)
4528
+ isConditional: requiresBySource[source].every((require$2) => require$2.isInsideConditional)
4764
4529
  };
4765
4530
  })), requiresBySource, getIgnoreTryCatchRequireStatementMode, magicString);
4766
4531
  return imports.length ? `${imports.join(";\n")};\n\n` : "";
@@ -4820,8 +4585,8 @@ function getGenerateRequireName() {
4820
4585
  }
4821
4586
  const exportsPattern = /^(?:module\.)?exports(?:\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/;
4822
4587
  const functionType = /^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;
4823
- async function transformCommonjs(parse$17, code, id, isEsModule, ignoreGlobal, ignoreRequire, ignoreDynamicRequires, getIgnoreTryCatchRequireStatementMode, sourceMap, isDynamicRequireModulesEnabled, dynamicRequireModules, commonDir, astCache, defaultIsModuleExports, needsRequireWrapper, resolveRequireSourcesAndUpdateMeta, isRequired, checkDynamicRequire, commonjsMeta) {
4824
- const ast = astCache || tryParse(parse$17, code, id);
4588
+ async function transformCommonjs(parse$15, code, id, isEsModule, ignoreGlobal, ignoreRequire, ignoreDynamicRequires, getIgnoreTryCatchRequireStatementMode, sourceMap, isDynamicRequireModulesEnabled, dynamicRequireModules, commonDir, astCache, defaultIsModuleExports, needsRequireWrapper, resolveRequireSourcesAndUpdateMeta, isRequired, checkDynamicRequire, commonjsMeta) {
4589
+ const ast = astCache || tryParse(parse$15, code, id);
4825
4590
  const magicString = new MagicString(code);
4826
4591
  const uses = {
4827
4592
  module: false,
@@ -5291,7 +5056,7 @@ function buildReporterPlugin(config$2) {
5291
5056
  const displaySize = (bytes) => {
5292
5057
  return `${numberFormatter.format(bytes / 1e3)} kB`;
5293
5058
  };
5294
- const tty$2 = process.stdout.isTTY && !process.env.CI;
5059
+ const tty = process.stdout.isTTY && !process.env.CI;
5295
5060
  const shouldLogInfo = LogLevels[config$2.logLevel || "info"] >= LogLevels.info;
5296
5061
  const modulesReporter = shouldLogInfo ? perEnvironmentState((environment) => {
5297
5062
  let hasTransformed = false;
@@ -5305,7 +5070,7 @@ function buildReporterPlugin(config$2) {
5305
5070
  },
5306
5071
  register(id) {
5307
5072
  transformedCount++;
5308
- if (!tty$2) {
5073
+ if (!tty) {
5309
5074
  if (!hasTransformed) config$2.logger.info(`transforming...`);
5310
5075
  } else {
5311
5076
  if (id.includes(`?`)) return;
@@ -5314,7 +5079,7 @@ function buildReporterPlugin(config$2) {
5314
5079
  hasTransformed = true;
5315
5080
  },
5316
5081
  log() {
5317
- if (tty$2) clearLine$1();
5082
+ if (tty) clearLine$1();
5318
5083
  environment.logger.info(`${import_picocolors$32.default.green(`✓`)} ${transformedCount} modules transformed.`);
5319
5084
  }
5320
5085
  };
@@ -5327,13 +5092,13 @@ function buildReporterPlugin(config$2) {
5327
5092
  async function getCompressedSize(code) {
5328
5093
  if (environment.config.consumer !== "client" || !environment.config.build.reportCompressedSize) return null;
5329
5094
  if (shouldLogInfo && !hasCompressChunk) {
5330
- if (!tty$2) config$2.logger.info("computing gzip size...");
5095
+ if (!tty) config$2.logger.info("computing gzip size...");
5331
5096
  else writeLine("computing gzip size (0)...");
5332
5097
  hasCompressChunk = true;
5333
5098
  }
5334
5099
  const compressed = await compress(typeof code === "string" ? code : Buffer.from(code));
5335
5100
  compressedCount++;
5336
- if (shouldLogInfo && tty$2) writeLine(`computing gzip size (${compressedCount})...`);
5101
+ if (shouldLogInfo && tty) writeLine(`computing gzip size (${compressedCount})...`);
5337
5102
  return compressed.length;
5338
5103
  }
5339
5104
  return {
@@ -5344,7 +5109,7 @@ function buildReporterPlugin(config$2) {
5344
5109
  register() {
5345
5110
  chunkCount++;
5346
5111
  if (shouldLogInfo) {
5347
- if (!tty$2) {
5112
+ if (!tty) {
5348
5113
  if (!hasRenderedChunk) environment.logger.info("rendering chunks...");
5349
5114
  } else writeLine(`rendering chunks (${chunkCount})...`);
5350
5115
  hasRenderedChunk = true;
@@ -5375,7 +5140,7 @@ function buildReporterPlugin(config$2) {
5375
5140
  };
5376
5141
  }
5377
5142
  }))).filter(isDefined);
5378
- if (tty$2) clearLine$1();
5143
+ if (tty) clearLine$1();
5379
5144
  let longest = 0;
5380
5145
  let biggestSize = 0;
5381
5146
  let biggestMap = 0;
@@ -5398,12 +5163,12 @@ function buildReporterPlugin(config$2) {
5398
5163
  const isLarge = group.name === "JS" && entry.size / 1e3 > chunkLimit;
5399
5164
  if (isLarge) hasLargeChunks = true;
5400
5165
  const sizeColor = isLarge ? import_picocolors$32.default.yellow : import_picocolors$32.default.dim;
5401
- let log$4 = import_picocolors$32.default.dim(withTrailingSlash(relativeOutDir));
5402
- log$4 += !config$2.build.lib && entry.name.startsWith(withTrailingSlash(assetsDir)) ? import_picocolors$32.default.dim(assetsDir) + group.color(entry.name.slice(assetsDir.length).padEnd(longest + 2 - assetsDir.length)) : group.color(entry.name.padEnd(longest + 2));
5403
- log$4 += import_picocolors$32.default.bold(sizeColor(displaySize(entry.size).padStart(sizePad)));
5404
- if (entry.compressedSize) log$4 += import_picocolors$32.default.dim(` │ gzip: ${displaySize(entry.compressedSize).padStart(compressPad)}`);
5405
- if (entry.mapSize) log$4 += import_picocolors$32.default.dim(` │ map: ${displaySize(entry.mapSize).padStart(mapPad)}`);
5406
- config$2.logger.info(log$4);
5166
+ let log$3 = import_picocolors$32.default.dim(withTrailingSlash(relativeOutDir));
5167
+ log$3 += !config$2.build.lib && entry.name.startsWith(withTrailingSlash(assetsDir)) ? import_picocolors$32.default.dim(assetsDir) + group.color(entry.name.slice(assetsDir.length).padEnd(longest + 2 - assetsDir.length)) : group.color(entry.name.padEnd(longest + 2));
5168
+ log$3 += import_picocolors$32.default.bold(sizeColor(displaySize(entry.size).padStart(sizePad)));
5169
+ if (entry.compressedSize) log$3 += import_picocolors$32.default.dim(` │ gzip: ${displaySize(entry.compressedSize).padStart(compressPad)}`);
5170
+ if (entry.mapSize) log$3 += import_picocolors$32.default.dim(` │ map: ${displaySize(entry.mapSize).padStart(mapPad)}`);
5171
+ config$2.logger.info(log$3);
5407
5172
  }
5408
5173
  }
5409
5174
  } else hasLargeChunks = Object.values(output).some((chunk) => {
@@ -5442,7 +5207,7 @@ function buildReporterPlugin(config$2) {
5442
5207
  chunksReporter(this).register();
5443
5208
  },
5444
5209
  generateBundle() {
5445
- if (shouldLogInfo && tty$2) clearLine$1();
5210
+ if (shouldLogInfo && tty) clearLine$1();
5446
5211
  },
5447
5212
  async writeBundle({ dir }, output) {
5448
5213
  await chunksReporter(this).log(output, dir);
@@ -5893,7 +5658,7 @@ const not_found_result = {
5893
5658
  * @returns {Promise<import('./public.d.ts').TSConfckParseResult>}
5894
5659
  * @throws {TSConfckParseError}
5895
5660
  */
5896
- async function parse$14(filename, options$1) {
5661
+ async function parse$13(filename, options$1) {
5897
5662
  /** @type {import('./cache.js').TSConfckCache} */
5898
5663
  const cache$1 = options$1?.cache;
5899
5664
  if (cache$1?.hasParseResult(filename)) return getParsedDeep(filename, cache$1, options$1);
@@ -6370,9 +6135,9 @@ async function transformWithEsbuild(code, filename, options$1, inMap, config$2,
6370
6135
  debug$17?.(`esbuild error with options used: `, resolvedOptions);
6371
6136
  if (e$1.errors) {
6372
6137
  e$1.frame = "";
6373
- e$1.errors.forEach((m$2) => {
6374
- if (m$2.text === "Experimental decorators are not currently enabled" || m$2.text === "Parameter decorators only work when experimental decorators are enabled") m$2.text += ". Vite 5 now uses esbuild 0.18 and you need to enable them by adding \"experimentalDecorators\": true in your \"tsconfig.json\" file.";
6375
- e$1.frame += `\n` + prettifyMessage(m$2, code);
6138
+ e$1.errors.forEach((m) => {
6139
+ if (m.text === "Experimental decorators are not currently enabled" || m.text === "Parameter decorators only work when experimental decorators are enabled") m.text += ". Vite 5 now uses esbuild 0.18 and you need to enable them by adding \"experimentalDecorators\": true in your \"tsconfig.json\" file.";
6140
+ e$1.frame += `\n` + prettifyMessage(m, code);
6376
6141
  });
6377
6142
  e$1.loc = e$1.errors[0].location;
6378
6143
  }
@@ -6405,8 +6170,8 @@ function esbuildPlugin(config$2) {
6405
6170
  async transform(code, id) {
6406
6171
  if (filter$1(id) || filter$1(cleanUrl(id))) {
6407
6172
  const result = await transformWithEsbuild(code, id, transformOptions, void 0, config$2, server?.watcher);
6408
- if (result.warnings.length) result.warnings.forEach((m$2) => {
6409
- this.warn(prettifyMessage(m$2, code));
6173
+ if (result.warnings.length) result.warnings.forEach((m) => {
6174
+ this.warn(prettifyMessage(m, code));
6410
6175
  });
6411
6176
  if (jsxInject && jsxExtensionsRE.test(id)) result.code = jsxInject + ";" + result.code;
6412
6177
  return {
@@ -6426,7 +6191,7 @@ const injectEsbuildHelpers = (esbuildCode, format$3) => {
6426
6191
  const contentIndex = format$3 === "iife" ? Math.max(esbuildCode.search(IIFE_BEGIN_RE), 0) : format$3 === "umd" ? esbuildCode.indexOf(`(function(`) : 0;
6427
6192
  if (contentIndex > 0) {
6428
6193
  const esbuildHelpers = esbuildCode.slice(0, contentIndex);
6429
- return esbuildCode.slice(contentIndex).replace("\"use strict\";", (m$2) => m$2 + esbuildHelpers);
6194
+ return esbuildCode.slice(contentIndex).replace("\"use strict\";", (m) => m + esbuildHelpers);
6430
6195
  }
6431
6196
  return esbuildCode;
6432
6197
  };
@@ -6501,9 +6266,9 @@ function resolveEsbuildTranspileOptions(config$2, format$3) {
6501
6266
  treeShaking: true
6502
6267
  };
6503
6268
  }
6504
- function prettifyMessage(m$2, code) {
6505
- let res = import_picocolors$31.default.yellow(m$2.text);
6506
- if (m$2.location) res += `\n` + generateCodeFrame(code, m$2.location);
6269
+ function prettifyMessage(m, code) {
6270
+ let res = import_picocolors$31.default.yellow(m.text);
6271
+ if (m.location) res += `\n` + generateCodeFrame(code, m.location);
6507
6272
  return res + `\n`;
6508
6273
  }
6509
6274
  let globalTSConfckCache;
@@ -6518,7 +6283,7 @@ function getTSConfckCache(config$2) {
6518
6283
  return cache$1;
6519
6284
  }
6520
6285
  async function loadTsconfigJsonForFile(filename, config$2) {
6521
- const { tsconfig, tsconfigFile } = await parse$14(filename, {
6286
+ const { tsconfig, tsconfigFile } = await parse$13(filename, {
6522
6287
  cache: getTSConfckCache(config$2),
6523
6288
  ignoreNodeModules: true
6524
6289
  });
@@ -6585,7 +6350,7 @@ var Worker$1 = class {
6585
6350
  });
6586
6351
  }
6587
6352
  stop() {
6588
- this._pool.forEach((w$1) => w$1.unref());
6353
+ this._pool.forEach((w) => w.unref());
6589
6354
  this._queue.forEach(([, reject]) => reject(/* @__PURE__ */ new Error("Main worker pool stopped before a worker was available.")));
6590
6355
  this._pool = [];
6591
6356
  this._idlePool = [];
@@ -6886,7 +6651,7 @@ function e(e$1, n$2, r$1) {
6886
6651
  throw new Error(r$1 ? `No known conditions for "${n$2}" specifier in "${e$1}" package` : `Missing "${n$2}" specifier in "${e$1}" package`);
6887
6652
  }
6888
6653
  function n(n$2, i$1, o$1, f$1) {
6889
- let s$2, u, l = r(n$2, o$1), c = function(e$1) {
6654
+ let s, u, l = r(n$2, o$1), c = function(e$1) {
6890
6655
  let n$3 = new Set(["default", ...e$1.conditions || []]);
6891
6656
  return e$1.unsafe || n$3.add(e$1.require ? "require" : "import"), e$1.unsafe || n$3.add(e$1.browser ? "browser" : "node"), n$3;
6892
6657
  }(f$1 || {}), a = i$1[l];
@@ -6895,10 +6660,10 @@ function n(n$2, i$1, o$1, f$1) {
6895
6660
  for (t$1 in i$1) n$3 && t$1.length < n$3.length || ("/" === t$1[t$1.length - 1] && l.startsWith(t$1) ? (u = l.substring(t$1.length), n$3 = t$1) : t$1.length > 1 && (r$1 = t$1.indexOf("*", 1), ~r$1 && (e$1 = RegExp("^" + t$1.substring(0, r$1) + "(.*)" + t$1.substring(1 + r$1) + "$").exec(l), e$1 && e$1[1] && (u = e$1[1], n$3 = t$1))));
6896
6661
  a = i$1[n$3];
6897
6662
  }
6898
- return a || e(n$2, l), s$2 = t(a, c), s$2 || e(n$2, l, 1), u && function(e$1, n$3) {
6663
+ return a || e(n$2, l), s = t(a, c), s || e(n$2, l, 1), u && function(e$1, n$3) {
6899
6664
  let r$1, t$1 = 0, i$2 = e$1.length, o$2 = /[*]/g, f$2 = /[/]$/;
6900
6665
  for (; t$1 < i$2; t$1++) e$1[t$1] = o$2.test(r$1 = e$1[t$1]) ? r$1.replace(o$2, n$3) : f$2.test(r$1) ? r$1 + n$3 : r$1;
6901
- }(s$2, u), s$2;
6666
+ }(s, u), s;
6902
6667
  }
6903
6668
  function r(e$1, n$2, r$1) {
6904
6669
  if (e$1 === n$2 || "." === n$2) return ".";
@@ -7333,7 +7098,7 @@ function hasESMSyntax(code, opts = {}) {
7333
7098
  }
7334
7099
 
7335
7100
  //#endregion
7336
- //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.50/node_modules/@rolldown/pluginutils/dist/simple-filters.js
7101
+ //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.52/node_modules/@rolldown/pluginutils/dist/simple-filters.js
7337
7102
  /**
7338
7103
  * Constructs a RegExp that matches the exact string specified.
7339
7104
  *
@@ -7394,33 +7159,33 @@ var ImportType;
7394
7159
  const A = 1 === new Uint8Array(new Uint16Array([1]).buffer)[0];
7395
7160
  function parse(E$1, g = "@") {
7396
7161
  if (!C) return init.then((() => parse(E$1)));
7397
- const I = E$1.length + 1, w$1 = (C.__heap_base.value || C.__heap_base) + 4 * I - C.memory.buffer.byteLength;
7398
- w$1 > 0 && C.memory.grow(Math.ceil(w$1 / 65536));
7162
+ const I = E$1.length + 1, w = (C.__heap_base.value || C.__heap_base) + 4 * I - C.memory.buffer.byteLength;
7163
+ w > 0 && C.memory.grow(Math.ceil(w / 65536));
7399
7164
  const K = C.sa(I - 1);
7400
7165
  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() });
7401
7166
  const o$1 = [], D = [];
7402
7167
  for (; C.ri();) {
7403
- 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();
7168
+ const A$1 = C.is(), Q$1 = C.ie(), B$1 = C.it(), g$1 = C.ai(), I$1 = C.id(), w$1 = C.ss(), K$1 = C.se();
7404
7169
  let D$1;
7405
7170
  C.ip() && (D$1 = k(E$1.slice(-1 === I$1 ? A$1 - 1 : A$1, -1 === I$1 ? Q$1 + 1 : Q$1))), o$1.push({
7406
7171
  n: D$1,
7407
7172
  t: B$1,
7408
7173
  s: A$1,
7409
7174
  e: Q$1,
7410
- ss: w$2,
7175
+ ss: w$1,
7411
7176
  se: K$1,
7412
7177
  d: I$1,
7413
7178
  a: g$1
7414
7179
  });
7415
7180
  }
7416
7181
  for (; C.re();) {
7417
- const A$1 = C.es(), Q$1 = C.ee(), B$1 = C.els(), g$1 = C.ele(), I$1 = E$1.slice(A$1, Q$1), w$2 = I$1[0], K$1 = B$1 < 0 ? void 0 : E$1.slice(B$1, g$1), o$2 = K$1 ? K$1[0] : "";
7182
+ const A$1 = C.es(), Q$1 = C.ee(), B$1 = C.els(), g$1 = C.ele(), I$1 = E$1.slice(A$1, Q$1), w$1 = I$1[0], K$1 = B$1 < 0 ? void 0 : E$1.slice(B$1, g$1), o$2 = K$1 ? K$1[0] : "";
7418
7183
  D.push({
7419
7184
  s: A$1,
7420
7185
  e: Q$1,
7421
7186
  ls: B$1,
7422
7187
  le: g$1,
7423
- n: "\"" === w$2 || "'" === w$2 ? k(I$1) : I$1,
7188
+ n: "\"" === w$1 || "'" === w$1 ? k(I$1) : I$1,
7424
7189
  ln: "\"" === o$2 || "'" === o$2 ? k(K$1) : K$1
7425
7190
  });
7426
7191
  }
@@ -7460,7 +7225,7 @@ const init = WebAssembly.compile(E()).then(WebAssembly.instantiate).then((({ exp
7460
7225
 
7461
7226
  //#endregion
7462
7227
  //#region ../../node_modules/.pnpm/lilconfig@3.1.3/node_modules/lilconfig/src/index.js
7463
- var require_src$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lilconfig@3.1.3/node_modules/lilconfig/src/index.js": ((exports, module) => {
7228
+ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7464
7229
  const path$11 = __require("path");
7465
7230
  const fs$11 = __require("fs");
7466
7231
  const os$4 = __require("os");
@@ -7792,11 +7557,11 @@ var require_src$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lilco
7792
7557
  }
7793
7558
  };
7794
7559
  };
7795
- }) });
7560
+ }));
7796
7561
 
7797
7562
  //#endregion
7798
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/req.js
7799
- var require_req = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/req.js": ((exports, module) => {
7563
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_yaml@2.8.1/node_modules/postcss-load-config/src/req.js
7564
+ var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7800
7565
  const { createRequire: createRequire$2 } = __require("node:module");
7801
7566
  const { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = __require("node:url");
7802
7567
  const TS_EXT_RE = /\.[mc]?ts$/;
@@ -7835,11 +7600,11 @@ var require_req = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss
7835
7600
  throw new Error(`'tsx' or 'jiti' is required for the TypeScript configuration files. Make sure it is installed\nError: ${importError.map((error$1) => error$1.message).join("\n")}`);
7836
7601
  }
7837
7602
  module.exports = req$3;
7838
- }) });
7603
+ }));
7839
7604
 
7840
7605
  //#endregion
7841
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/options.js
7842
- var require_options = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/options.js": ((exports, module) => {
7606
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_yaml@2.8.1/node_modules/postcss-load-config/src/options.js
7607
+ var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7843
7608
  const req$2 = require_req();
7844
7609
  /**
7845
7610
  * Load Options
@@ -7870,11 +7635,11 @@ var require_options = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pos
7870
7635
  return config$2;
7871
7636
  }
7872
7637
  module.exports = options;
7873
- }) });
7638
+ }));
7874
7639
 
7875
7640
  //#endregion
7876
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/plugins.js
7877
- var require_plugins = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/plugins.js": ((exports, module) => {
7641
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_yaml@2.8.1/node_modules/postcss-load-config/src/plugins.js
7642
+ var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7878
7643
  const req$1 = require_req();
7879
7644
  /**
7880
7645
  * Plugin Loader
@@ -7887,7 +7652,7 @@ var require_plugins = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pos
7887
7652
  *
7888
7653
  * @return {Promise<Function>} PostCSS Plugin
7889
7654
  */
7890
- async function load$1(plugin, options$1, file) {
7655
+ async function load(plugin, options$1, file) {
7891
7656
  try {
7892
7657
  if (options$1 === null || options$1 === void 0 || Object.keys(options$1).length === 0) return await req$1(plugin, file);
7893
7658
  else return (await req$1(plugin, file))(options$1);
@@ -7912,7 +7677,7 @@ var require_plugins = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pos
7912
7677
  list = Object.entries(config$2.plugins).filter(([, options$1]) => {
7913
7678
  return options$1 !== false;
7914
7679
  }).map(([plugin, options$1]) => {
7915
- return load$1(plugin, options$1, file);
7680
+ return load(plugin, options$1, file);
7916
7681
  });
7917
7682
  list = await Promise.all(list);
7918
7683
  }
@@ -7925,11 +7690,11 @@ var require_plugins = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pos
7925
7690
  return list;
7926
7691
  }
7927
7692
  module.exports = plugins;
7928
- }) });
7693
+ }));
7929
7694
 
7930
7695
  //#endregion
7931
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/index.js
7932
- var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_yaml@2.8.1/node_modules/postcss-load-config/src/index.js": ((exports, module) => {
7696
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_yaml@2.8.1/node_modules/postcss-load-config/src/index.js
7697
+ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7933
7698
  const { resolve: resolve$2 } = __require("node:path");
7934
7699
  const config$1 = require_src$1();
7935
7700
  const loadOptions = require_options();
@@ -8069,11 +7834,11 @@ var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss
8069
7834
  * @requires ./plugins
8070
7835
  */
8071
7836
  module.exports = rc;
8072
- }) });
7837
+ }));
8073
7838
 
8074
7839
  //#endregion
8075
7840
  //#region ../../node_modules/.pnpm/convert-source-map@2.0.0/node_modules/convert-source-map/index.js
8076
- var require_convert_source_map = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/convert-source-map@2.0.0/node_modules/convert-source-map/index.js": ((exports) => {
7841
+ var require_convert_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
8077
7842
  Object.defineProperty(exports, "commentRegex", { get: function getCommentRegex() {
8078
7843
  return /^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/gm;
8079
7844
  } });
@@ -8181,10 +7946,10 @@ var require_convert_source_map = /* @__PURE__ */ __commonJS({ "../../node_module
8181
7946
  return new Converter(base64, { encoding: "base64" });
8182
7947
  };
8183
7948
  exports.fromComment = function(comment) {
8184
- var m$2, encoding;
7949
+ var m, encoding;
8185
7950
  comment = comment.replace(/^\/\*/g, "//").replace(/\*\/$/g, "");
8186
- m$2 = exports.commentRegex.exec(comment);
8187
- encoding = m$2 && m$2[4] || "uri";
7951
+ m = exports.commentRegex.exec(comment);
7952
+ encoding = m && m[4] || "uri";
8188
7953
  return new Converter(comment, {
8189
7954
  encoding,
8190
7955
  hasComment: true
@@ -8200,13 +7965,13 @@ var require_convert_source_map = /* @__PURE__ */ __commonJS({ "../../node_module
8200
7965
  else return makeConverter(sm);
8201
7966
  };
8202
7967
  exports.fromSource = function(content) {
8203
- var m$2 = content.match(exports.commentRegex);
8204
- return m$2 ? exports.fromComment(m$2.pop()) : null;
7968
+ var m = content.match(exports.commentRegex);
7969
+ return m ? exports.fromComment(m.pop()) : null;
8205
7970
  };
8206
7971
  exports.fromMapFileSource = function(content, read) {
8207
7972
  if (typeof read === "string") throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");
8208
- var m$2 = content.match(exports.mapFileCommentRegex);
8209
- return m$2 ? exports.fromMapFileComment(m$2.pop(), read) : null;
7973
+ var m = content.match(exports.mapFileCommentRegex);
7974
+ return m ? exports.fromMapFileComment(m.pop(), read) : null;
8210
7975
  };
8211
7976
  exports.removeComments = function(src) {
8212
7977
  return src.replace(exports.commentRegex, "");
@@ -8218,7 +7983,7 @@ var require_convert_source_map = /* @__PURE__ */ __commonJS({ "../../node_module
8218
7983
  var data = "sourceMappingURL=" + file;
8219
7984
  return options$1 && options$1.multiline ? "/*# " + data + " */" : "//# " + data;
8220
7985
  };
8221
- }) });
7986
+ }));
8222
7987
 
8223
7988
  //#endregion
8224
7989
  //#region src/node/server/sourcemap.ts
@@ -8855,27 +8620,27 @@ function renderAssetUrlInJS(pluginContext, chunk, opts, code) {
8855
8620
  const { environment } = pluginContext;
8856
8621
  const toRelativeRuntime = createToImportMetaURLBasedRelativeRuntime(opts.format, environment.config.isWorker);
8857
8622
  let match;
8858
- let s$2;
8623
+ let s;
8859
8624
  assetUrlRE.lastIndex = 0;
8860
8625
  while (match = assetUrlRE.exec(code)) {
8861
- s$2 ||= new MagicString(code);
8626
+ s ||= new MagicString(code);
8862
8627
  const [full, referenceId, postfix = ""] = match;
8863
8628
  const file = pluginContext.getFileName(referenceId);
8864
8629
  chunk.viteMetadata.importedAssets.add(cleanUrl(file));
8865
8630
  const replacement = toOutputFilePathInJS(environment, file + postfix, "asset", chunk.fileName, "js", toRelativeRuntime);
8866
8631
  const replacementString = typeof replacement === "string" ? JSON.stringify(encodeURIPath(replacement)).slice(1, -1) : `"+${replacement.runtime}+"`;
8867
- s$2.update(match.index, match.index + full.length, replacementString);
8632
+ s.update(match.index, match.index + full.length, replacementString);
8868
8633
  }
8869
8634
  const publicAssetUrlMap = publicAssetUrlCache.get(environment.getTopLevelConfig());
8870
8635
  publicAssetUrlRE.lastIndex = 0;
8871
8636
  while (match = publicAssetUrlRE.exec(code)) {
8872
- s$2 ||= new MagicString(code);
8637
+ s ||= new MagicString(code);
8873
8638
  const [full, hash$1] = match;
8874
8639
  const replacement = toOutputFilePathInJS(environment, publicAssetUrlMap.get(hash$1).slice(1), "public", chunk.fileName, "js", toRelativeRuntime);
8875
8640
  const replacementString = typeof replacement === "string" ? JSON.stringify(encodeURIPath(replacement)).slice(1, -1) : `"+${replacement.runtime}+"`;
8876
- s$2.update(match.index, match.index + full.length, replacementString);
8641
+ s.update(match.index, match.index + full.length, replacementString);
8877
8642
  }
8878
- return s$2;
8643
+ return s;
8879
8644
  }
8880
8645
  /**
8881
8646
  * Also supports loading plain strings with import text from './foo.txt?raw'
@@ -8916,10 +8681,10 @@ function assetPlugin(config$2) {
8916
8681
  }
8917
8682
  },
8918
8683
  renderChunk(code, chunk, opts) {
8919
- const s$2 = renderAssetUrlInJS(this, chunk, opts, code);
8920
- if (s$2) return {
8921
- code: s$2.toString(),
8922
- map: this.environment.config.build.sourcemap ? s$2.generateMap({ hires: "boundary" }) : null
8684
+ const s = renderAssetUrlInJS(this, chunk, opts, code);
8685
+ if (s) return {
8686
+ code: s.toString(),
8687
+ map: this.environment.config.build.sourcemap ? s.generateMap({ hires: "boundary" }) : null
8923
8688
  };
8924
8689
  else return null;
8925
8690
  },
@@ -9202,7 +8967,7 @@ function throwFileNotFoundInOptimizedDep(id) {
9202
8967
 
9203
8968
  //#endregion
9204
8969
  //#region ../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.json
9205
- var require_package = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.json": ((exports, module) => {
8970
+ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9206
8971
  module.exports = {
9207
8972
  "name": "dotenv",
9208
8973
  "version": "17.2.3",
@@ -9261,11 +9026,11 @@ var require_package = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dot
9261
9026
  "engines": { "node": ">=12" },
9262
9027
  "browser": { "fs": false }
9263
9028
  };
9264
- }) });
9029
+ }));
9265
9030
 
9266
9031
  //#endregion
9267
9032
  //#region ../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.js
9268
- var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.js": ((exports, module) => {
9033
+ var require_main$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9269
9034
  const fs$10 = __require("fs");
9270
9035
  const path$10 = __require("path");
9271
9036
  const os$3 = __require("os");
@@ -9309,7 +9074,7 @@ var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dote
9309
9074
  return supportsAnsi() ? `\x1b[2m${text}\x1b[0m` : text;
9310
9075
  }
9311
9076
  const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
9312
- function parse$13(src) {
9077
+ function parse$12(src) {
9313
9078
  const obj = {};
9314
9079
  let lines = src.toString();
9315
9080
  lines = lines.replace(/\r\n?/gm, "\n");
@@ -9413,9 +9178,9 @@ var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dote
9413
9178
  return envPath[0] === "~" ? path$10.join(os$3.homedir(), envPath.slice(1)) : envPath;
9414
9179
  }
9415
9180
  function _configVault(options$1) {
9416
- const debug$19 = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options$1 && options$1.debug);
9181
+ const debug$18 = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options$1 && options$1.debug);
9417
9182
  const quiet = parseBoolean(process.env.DOTENV_CONFIG_QUIET || options$1 && options$1.quiet);
9418
- if (debug$19 || !quiet) _log("Loading env from encrypted .env.vault");
9183
+ if (debug$18 || !quiet) _log("Loading env from encrypted .env.vault");
9419
9184
  const parsed = DotenvModule._parseVault(options$1);
9420
9185
  let processEnv = process.env;
9421
9186
  if (options$1 && options$1.processEnv != null) processEnv = options$1.processEnv;
@@ -9427,10 +9192,10 @@ var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dote
9427
9192
  let encoding = "utf8";
9428
9193
  let processEnv = process.env;
9429
9194
  if (options$1 && options$1.processEnv != null) processEnv = options$1.processEnv;
9430
- let debug$19 = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || options$1 && options$1.debug);
9195
+ let debug$18 = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || options$1 && options$1.debug);
9431
9196
  let quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || options$1 && options$1.quiet);
9432
9197
  if (options$1 && options$1.encoding) encoding = options$1.encoding;
9433
- else if (debug$19) _debug("No encoding is specified. UTF-8 is used by default");
9198
+ else if (debug$18) _debug("No encoding is specified. UTF-8 is used by default");
9434
9199
  let optionPaths = [dotenvPath];
9435
9200
  if (options$1 && options$1.path) if (!Array.isArray(options$1.path)) optionPaths = [_resolveHome(options$1.path)];
9436
9201
  else {
@@ -9443,20 +9208,20 @@ var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dote
9443
9208
  const parsed = DotenvModule.parse(fs$10.readFileSync(path$13, { encoding }));
9444
9209
  DotenvModule.populate(parsedAll, parsed, options$1);
9445
9210
  } catch (e$1) {
9446
- if (debug$19) _debug(`Failed to load ${path$13} ${e$1.message}`);
9211
+ if (debug$18) _debug(`Failed to load ${path$13} ${e$1.message}`);
9447
9212
  lastError = e$1;
9448
9213
  }
9449
9214
  const populated = DotenvModule.populate(processEnv, parsedAll, options$1);
9450
- debug$19 = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || debug$19);
9215
+ debug$18 = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || debug$18);
9451
9216
  quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || quiet);
9452
- if (debug$19 || !quiet) {
9217
+ if (debug$18 || !quiet) {
9453
9218
  const keysCount = Object.keys(populated).length;
9454
9219
  const shortPaths = [];
9455
9220
  for (const filePath of optionPaths) try {
9456
9221
  const relative$3 = path$10.relative(process.cwd(), filePath);
9457
9222
  shortPaths.push(relative$3);
9458
9223
  } catch (e$1) {
9459
- if (debug$19) _debug(`Failed to load ${filePath} ${e$1.message}`);
9224
+ if (debug$18) _debug(`Failed to load ${filePath} ${e$1.message}`);
9460
9225
  lastError = e$1;
9461
9226
  }
9462
9227
  _log(`injecting env (${keysCount}) from ${shortPaths.join(",")} ${dim(`-- tip: ${_getRandomTip()}`)}`);
@@ -9502,7 +9267,7 @@ var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dote
9502
9267
  }
9503
9268
  }
9504
9269
  function populate(processEnv, parsed, options$1 = {}) {
9505
- const debug$19 = Boolean(options$1 && options$1.debug);
9270
+ const debug$18 = Boolean(options$1 && options$1.debug);
9506
9271
  const override = Boolean(options$1 && options$1.override);
9507
9272
  const populated = {};
9508
9273
  if (typeof parsed !== "object") {
@@ -9515,7 +9280,7 @@ var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dote
9515
9280
  processEnv[key] = parsed[key];
9516
9281
  populated[key] = parsed[key];
9517
9282
  }
9518
- if (debug$19) if (override === true) _debug(`"${key}" is already defined and WAS overwritten`);
9283
+ if (debug$18) if (override === true) _debug(`"${key}" is already defined and WAS overwritten`);
9519
9284
  else _debug(`"${key}" is already defined and was NOT overwritten`);
9520
9285
  } else {
9521
9286
  processEnv[key] = parsed[key];
@@ -9529,7 +9294,7 @@ var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dote
9529
9294
  _parseVault,
9530
9295
  config,
9531
9296
  decrypt,
9532
- parse: parse$13,
9297
+ parse: parse$12,
9533
9298
  populate
9534
9299
  };
9535
9300
  module.exports.configDotenv = DotenvModule.configDotenv;
@@ -9540,11 +9305,11 @@ var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dote
9540
9305
  module.exports.parse = DotenvModule.parse;
9541
9306
  module.exports.populate = DotenvModule.populate;
9542
9307
  module.exports = DotenvModule;
9543
- }) });
9308
+ }));
9544
9309
 
9545
9310
  //#endregion
9546
9311
  //#region ../../node_modules/.pnpm/dotenv-expand@12.0.3_patch_hash=49330a663821151418e003e822a82a6a61d2f0f8a6e3cab00c1c94815a112889/node_modules/dotenv-expand/lib/main.js
9547
- var require_main = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv-expand@12.0.3_patch_hash=49330a663821151418e003e822a82a6a61d2f0f8a6e3cab00c1c94815a112889/node_modules/dotenv-expand/lib/main.js": ((exports, module) => {
9312
+ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9548
9313
  function _resolveEscapeSequences(value$1) {
9549
9314
  return value$1.replace(/\\\$/g, "$");
9550
9315
  }
@@ -9595,7 +9360,7 @@ var require_main = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv
9595
9360
  return options$1;
9596
9361
  }
9597
9362
  module.exports.expand = expand$3;
9598
- }) });
9363
+ }));
9599
9364
 
9600
9365
  //#endregion
9601
9366
  //#region src/node/env.ts
@@ -9776,430 +9541,6 @@ function errorMiddleware(server, allowNext = false) {
9776
9541
  };
9777
9542
  }
9778
9543
 
9779
- //#endregion
9780
- //#region ../../node_modules/.pnpm/ms@2.0.0/node_modules/ms/index.js
9781
- var require_ms = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ms@2.0.0/node_modules/ms/index.js": ((exports, module) => {
9782
- /**
9783
- * Helpers.
9784
- */
9785
- var s = 1e3;
9786
- var m = s * 60;
9787
- var h = m * 60;
9788
- var d = h * 24;
9789
- var y = d * 365.25;
9790
- /**
9791
- * Parse or format the given `val`.
9792
- *
9793
- * Options:
9794
- *
9795
- * - `long` verbose formatting [false]
9796
- *
9797
- * @param {String|Number} val
9798
- * @param {Object} [options]
9799
- * @throws {Error} throw an error if val is not a non-empty string or a number
9800
- * @return {String|Number}
9801
- * @api public
9802
- */
9803
- module.exports = function(val, options$1) {
9804
- options$1 = options$1 || {};
9805
- var type = typeof val;
9806
- if (type === "string" && val.length > 0) return parse$11(val);
9807
- else if (type === "number" && isNaN(val) === false) return options$1.long ? fmtLong(val) : fmtShort(val);
9808
- throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
9809
- };
9810
- /**
9811
- * Parse the given `str` and return milliseconds.
9812
- *
9813
- * @param {String} str
9814
- * @return {Number}
9815
- * @api private
9816
- */
9817
- function parse$11(str) {
9818
- str = String(str);
9819
- if (str.length > 100) return;
9820
- var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);
9821
- if (!match) return;
9822
- var n$2 = parseFloat(match[1]);
9823
- switch ((match[2] || "ms").toLowerCase()) {
9824
- case "years":
9825
- case "year":
9826
- case "yrs":
9827
- case "yr":
9828
- case "y": return n$2 * y;
9829
- case "days":
9830
- case "day":
9831
- case "d": return n$2 * d;
9832
- case "hours":
9833
- case "hour":
9834
- case "hrs":
9835
- case "hr":
9836
- case "h": return n$2 * h;
9837
- case "minutes":
9838
- case "minute":
9839
- case "mins":
9840
- case "min":
9841
- case "m": return n$2 * m;
9842
- case "seconds":
9843
- case "second":
9844
- case "secs":
9845
- case "sec":
9846
- case "s": return n$2 * s;
9847
- case "milliseconds":
9848
- case "millisecond":
9849
- case "msecs":
9850
- case "msec":
9851
- case "ms": return n$2;
9852
- default: return;
9853
- }
9854
- }
9855
- /**
9856
- * Short format for `ms`.
9857
- *
9858
- * @param {Number} ms
9859
- * @return {String}
9860
- * @api private
9861
- */
9862
- function fmtShort(ms) {
9863
- if (ms >= d) return Math.round(ms / d) + "d";
9864
- if (ms >= h) return Math.round(ms / h) + "h";
9865
- if (ms >= m) return Math.round(ms / m) + "m";
9866
- if (ms >= s) return Math.round(ms / s) + "s";
9867
- return ms + "ms";
9868
- }
9869
- /**
9870
- * Long format for `ms`.
9871
- *
9872
- * @param {Number} ms
9873
- * @return {String}
9874
- * @api private
9875
- */
9876
- function fmtLong(ms) {
9877
- return plural(ms, d, "day") || plural(ms, h, "hour") || plural(ms, m, "minute") || plural(ms, s, "second") || ms + " ms";
9878
- }
9879
- /**
9880
- * Pluralization helper.
9881
- */
9882
- function plural(ms, n$2, name) {
9883
- if (ms < n$2) return;
9884
- if (ms < n$2 * 1.5) return Math.floor(ms / n$2) + " " + name;
9885
- return Math.ceil(ms / n$2) + " " + name + "s";
9886
- }
9887
- }) });
9888
-
9889
- //#endregion
9890
- //#region ../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/debug.js
9891
- var require_debug$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/debug.js": ((exports, module) => {
9892
- /**
9893
- * This is the common logic for both the Node.js and web browser
9894
- * implementations of `debug()`.
9895
- *
9896
- * Expose `debug()` as the module.
9897
- */
9898
- exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
9899
- exports.coerce = coerce;
9900
- exports.disable = disable;
9901
- exports.enable = enable;
9902
- exports.enabled = enabled;
9903
- exports.humanize = require_ms();
9904
- /**
9905
- * The currently active debug mode names, and names to skip.
9906
- */
9907
- exports.names = [];
9908
- exports.skips = [];
9909
- /**
9910
- * Map of special "%n" handling functions, for the debug "format" argument.
9911
- *
9912
- * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
9913
- */
9914
- exports.formatters = {};
9915
- /**
9916
- * Previous log timestamp.
9917
- */
9918
- var prevTime;
9919
- /**
9920
- * Select a color.
9921
- * @param {String} namespace
9922
- * @return {Number}
9923
- * @api private
9924
- */
9925
- function selectColor(namespace) {
9926
- var hash$1 = 0, i$1;
9927
- for (i$1 in namespace) {
9928
- hash$1 = (hash$1 << 5) - hash$1 + namespace.charCodeAt(i$1);
9929
- hash$1 |= 0;
9930
- }
9931
- return exports.colors[Math.abs(hash$1) % exports.colors.length];
9932
- }
9933
- /**
9934
- * Create a debugger with the given `namespace`.
9935
- *
9936
- * @param {String} namespace
9937
- * @return {Function}
9938
- * @api public
9939
- */
9940
- function createDebug(namespace) {
9941
- function debug$19() {
9942
- if (!debug$19.enabled) return;
9943
- var self$1 = debug$19;
9944
- var curr = +/* @__PURE__ */ new Date();
9945
- self$1.diff = curr - (prevTime || curr);
9946
- self$1.prev = prevTime;
9947
- self$1.curr = curr;
9948
- prevTime = curr;
9949
- var args = new Array(arguments.length);
9950
- for (var i$1 = 0; i$1 < args.length; i$1++) args[i$1] = arguments[i$1];
9951
- args[0] = exports.coerce(args[0]);
9952
- if ("string" !== typeof args[0]) args.unshift("%O");
9953
- var index = 0;
9954
- args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format$3) {
9955
- if (match === "%%") return match;
9956
- index++;
9957
- var formatter = exports.formatters[format$3];
9958
- if ("function" === typeof formatter) {
9959
- var val = args[index];
9960
- match = formatter.call(self$1, val);
9961
- args.splice(index, 1);
9962
- index--;
9963
- }
9964
- return match;
9965
- });
9966
- exports.formatArgs.call(self$1, args);
9967
- (debug$19.log || exports.log || console.log.bind(console)).apply(self$1, args);
9968
- }
9969
- debug$19.namespace = namespace;
9970
- debug$19.enabled = exports.enabled(namespace);
9971
- debug$19.useColors = exports.useColors();
9972
- debug$19.color = selectColor(namespace);
9973
- if ("function" === typeof exports.init) exports.init(debug$19);
9974
- return debug$19;
9975
- }
9976
- /**
9977
- * Enables a debug mode by namespaces. This can include modes
9978
- * separated by a colon and wildcards.
9979
- *
9980
- * @param {String} namespaces
9981
- * @api public
9982
- */
9983
- function enable(namespaces) {
9984
- exports.save(namespaces);
9985
- exports.names = [];
9986
- exports.skips = [];
9987
- var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
9988
- var len = split.length;
9989
- for (var i$1 = 0; i$1 < len; i$1++) {
9990
- if (!split[i$1]) continue;
9991
- namespaces = split[i$1].replace(/\*/g, ".*?");
9992
- if (namespaces[0] === "-") exports.skips.push(/* @__PURE__ */ new RegExp("^" + namespaces.substr(1) + "$"));
9993
- else exports.names.push(/* @__PURE__ */ new RegExp("^" + namespaces + "$"));
9994
- }
9995
- }
9996
- /**
9997
- * Disable debug output.
9998
- *
9999
- * @api public
10000
- */
10001
- function disable() {
10002
- exports.enable("");
10003
- }
10004
- /**
10005
- * Returns true if the given mode name is enabled, false otherwise.
10006
- *
10007
- * @param {String} name
10008
- * @return {Boolean}
10009
- * @api public
10010
- */
10011
- function enabled(name) {
10012
- var i$1, len;
10013
- for (i$1 = 0, len = exports.skips.length; i$1 < len; i$1++) if (exports.skips[i$1].test(name)) return false;
10014
- for (i$1 = 0, len = exports.names.length; i$1 < len; i$1++) if (exports.names[i$1].test(name)) return true;
10015
- return false;
10016
- }
10017
- /**
10018
- * Coerce `val`.
10019
- *
10020
- * @param {Mixed} val
10021
- * @return {Mixed}
10022
- * @api private
10023
- */
10024
- function coerce(val) {
10025
- if (val instanceof Error) return val.stack || val.message;
10026
- return val;
10027
- }
10028
- }) });
10029
-
10030
- //#endregion
10031
- //#region ../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/node.js
10032
- var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/node.js": ((exports, module) => {
10033
- /**
10034
- * Module dependencies.
10035
- */
10036
- var tty = __require("tty");
10037
- var util$1 = __require("util");
10038
- /**
10039
- * This is the Node.js implementation of `debug()`.
10040
- *
10041
- * Expose `debug()` as the module.
10042
- */
10043
- exports = module.exports = require_debug$1();
10044
- exports.init = init$1;
10045
- exports.log = log$2;
10046
- exports.formatArgs = formatArgs;
10047
- exports.save = save;
10048
- exports.load = load;
10049
- exports.useColors = useColors;
10050
- /**
10051
- * Colors.
10052
- */
10053
- exports.colors = [
10054
- 6,
10055
- 2,
10056
- 3,
10057
- 4,
10058
- 5,
10059
- 1
10060
- ];
10061
- /**
10062
- * Build up the default `inspectOpts` object from the environment variables.
10063
- *
10064
- * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
10065
- */
10066
- exports.inspectOpts = Object.keys(process.env).filter(function(key) {
10067
- return /^debug_/i.test(key);
10068
- }).reduce(function(obj, key) {
10069
- var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) {
10070
- return k.toUpperCase();
10071
- });
10072
- var val = process.env[key];
10073
- if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
10074
- else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
10075
- else if (val === "null") val = null;
10076
- else val = Number(val);
10077
- obj[prop] = val;
10078
- return obj;
10079
- }, {});
10080
- /**
10081
- * The file descriptor to write the `debug()` calls to.
10082
- * Set the `DEBUG_FD` env variable to override with another value. i.e.:
10083
- *
10084
- * $ DEBUG_FD=3 node script.js 3>debug.log
10085
- */
10086
- var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
10087
- if (1 !== fd && 2 !== fd) util$1.deprecate(function() {}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
10088
- var stream$2 = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
10089
- /**
10090
- * Is stdout a TTY? Colored output is enabled when `true`.
10091
- */
10092
- function useColors() {
10093
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(fd);
10094
- }
10095
- /**
10096
- * Map %o to `util.inspect()`, all on a single line.
10097
- */
10098
- exports.formatters.o = function(v) {
10099
- this.inspectOpts.colors = this.useColors;
10100
- return util$1.inspect(v, this.inspectOpts).split("\n").map(function(str) {
10101
- return str.trim();
10102
- }).join(" ");
10103
- };
10104
- /**
10105
- * Map %o to `util.inspect()`, allowing multiple lines if needed.
10106
- */
10107
- exports.formatters.O = function(v) {
10108
- this.inspectOpts.colors = this.useColors;
10109
- return util$1.inspect(v, this.inspectOpts);
10110
- };
10111
- /**
10112
- * Adds ANSI color escape codes if enabled.
10113
- *
10114
- * @api public
10115
- */
10116
- function formatArgs(args) {
10117
- var name = this.namespace;
10118
- if (this.useColors) {
10119
- var c = this.color;
10120
- var prefix = " \x1B[3" + c + ";1m" + name + " \x1B[0m";
10121
- args[0] = prefix + args[0].split("\n").join("\n" + prefix);
10122
- args.push("\x1B[3" + c + "m+" + exports.humanize(this.diff) + "\x1B[0m");
10123
- } else args[0] = (/* @__PURE__ */ new Date()).toUTCString() + " " + name + " " + args[0];
10124
- }
10125
- /**
10126
- * Invokes `util.format()` with the specified arguments and writes to `stream`.
10127
- */
10128
- function log$2() {
10129
- return stream$2.write(util$1.format.apply(util$1, arguments) + "\n");
10130
- }
10131
- /**
10132
- * Save `namespaces`.
10133
- *
10134
- * @param {String} namespaces
10135
- * @api private
10136
- */
10137
- function save(namespaces) {
10138
- if (null == namespaces) delete process.env.DEBUG;
10139
- else process.env.DEBUG = namespaces;
10140
- }
10141
- /**
10142
- * Load `namespaces`.
10143
- *
10144
- * @return {String} returns the previously persisted debug modes
10145
- * @api private
10146
- */
10147
- function load() {
10148
- return process.env.DEBUG;
10149
- }
10150
- /**
10151
- * Copied from `node/src/node.js`.
10152
- *
10153
- * XXX: It's lame that node doesn't expose this API out-of-the-box. It also
10154
- * relies on the undocumented `tty_wrap.guessHandleType()` which is also lame.
10155
- */
10156
- function createWritableStdioStream(fd$1) {
10157
- var stream$3;
10158
- switch (process.binding("tty_wrap").guessHandleType(fd$1)) {
10159
- case "TTY":
10160
- stream$3 = new tty.WriteStream(fd$1);
10161
- stream$3._type = "tty";
10162
- if (stream$3._handle && stream$3._handle.unref) stream$3._handle.unref();
10163
- break;
10164
- case "FILE":
10165
- stream$3 = new (__require("fs")).SyncWriteStream(fd$1, { autoClose: false });
10166
- stream$3._type = "fs";
10167
- break;
10168
- case "PIPE":
10169
- case "TCP":
10170
- stream$3 = new (__require("net")).Socket({
10171
- fd: fd$1,
10172
- readable: false,
10173
- writable: true
10174
- });
10175
- stream$3.readable = false;
10176
- stream$3.read = null;
10177
- stream$3._type = "pipe";
10178
- if (stream$3._handle && stream$3._handle.unref) stream$3._handle.unref();
10179
- break;
10180
- default: throw new Error("Implement me. Unknown stream file type!");
10181
- }
10182
- stream$3.fd = fd$1;
10183
- stream$3._isStdio = true;
10184
- return stream$3;
10185
- }
10186
- /**
10187
- * Init logic for `debug` instances.
10188
- *
10189
- * Create a new `inspectOpts` object in case `useColors` is set
10190
- * differently for a particular `debug` instance.
10191
- */
10192
- function init$1(debug$19) {
10193
- debug$19.inspectOpts = {};
10194
- var keys = Object.keys(exports.inspectOpts);
10195
- for (var i$1 = 0; i$1 < keys.length; i$1++) debug$19.inspectOpts[keys[i$1]] = exports.inspectOpts[keys[i$1]];
10196
- }
10197
- /**
10198
- * Enable namespaces listed in `process.env.DEBUG` initially.
10199
- */
10200
- exports.enable(load());
10201
- }) });
10202
-
10203
9544
  //#endregion
10204
9545
  //#region ../../node_modules/.pnpm/encodeurl@1.0.2/node_modules/encodeurl/index.js
10205
9546
  /*!
@@ -10207,7 +9548,7 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/debug@
10207
9548
  * Copyright(c) 2016 Douglas Christopher Wilson
10208
9549
  * MIT Licensed
10209
9550
  */
10210
- var require_encodeurl = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/encodeurl@1.0.2/node_modules/encodeurl/index.js": ((exports, module) => {
9551
+ var require_encodeurl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10211
9552
  /**
10212
9553
  * Module exports.
10213
9554
  * @public
@@ -10249,7 +9590,7 @@ var require_encodeurl = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/e
10249
9590
  function encodeUrl$1(url$3) {
10250
9591
  return String(url$3).replace(UNMATCHED_SURROGATE_PAIR_REGEXP, UNMATCHED_SURROGATE_PAIR_REPLACE).replace(ENCODE_CHARS_REGEXP, encodeURI);
10251
9592
  }
10252
- }) });
9593
+ }));
10253
9594
 
10254
9595
  //#endregion
10255
9596
  //#region ../../node_modules/.pnpm/escape-html@1.0.3/node_modules/escape-html/index.js
@@ -10260,7 +9601,7 @@ var require_encodeurl = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/e
10260
9601
  * Copyright(c) 2015 Tiancheng "Timothy" Gu
10261
9602
  * MIT Licensed
10262
9603
  */
10263
- var require_escape_html = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/escape-html@1.0.3/node_modules/escape-html/index.js": ((exports, module) => {
9604
+ var require_escape_html = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10264
9605
  /**
10265
9606
  * Module variables.
10266
9607
  * @private
@@ -10311,7 +9652,7 @@ var require_escape_html = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
10311
9652
  }
10312
9653
  return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
10313
9654
  }
10314
- }) });
9655
+ }));
10315
9656
 
10316
9657
  //#endregion
10317
9658
  //#region ../../node_modules/.pnpm/ee-first@1.1.1/node_modules/ee-first/index.js
@@ -10320,7 +9661,7 @@ var require_escape_html = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
10320
9661
  * Copyright(c) 2014 Jonathan Ong
10321
9662
  * MIT Licensed
10322
9663
  */
10323
- var require_ee_first = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ee-first@1.1.1/node_modules/ee-first/index.js": ((exports, module) => {
9664
+ var require_ee_first = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10324
9665
  /**
10325
9666
  * Module exports.
10326
9667
  * @public
@@ -10381,7 +9722,7 @@ var require_ee_first = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ee
10381
9722
  done(err$2, ee, event, args);
10382
9723
  };
10383
9724
  }
10384
- }) });
9725
+ }));
10385
9726
 
10386
9727
  //#endregion
10387
9728
  //#region ../../node_modules/.pnpm/on-finished@2.3.0/node_modules/on-finished/index.js
@@ -10391,7 +9732,7 @@ var require_ee_first = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ee
10391
9732
  * Copyright(c) 2014 Douglas Christopher Wilson
10392
9733
  * MIT Licensed
10393
9734
  */
10394
- var require_on_finished = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/on-finished@2.3.0/node_modules/on-finished/index.js": ((exports, module) => {
9735
+ var require_on_finished = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10395
9736
  /**
10396
9737
  * Module exports.
10397
9738
  * @public
@@ -10527,7 +9868,7 @@ var require_on_finished = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
10527
9868
  callback(socket);
10528
9869
  };
10529
9870
  }
10530
- }) });
9871
+ }));
10531
9872
 
10532
9873
  //#endregion
10533
9874
  //#region ../../node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js
@@ -10537,7 +9878,7 @@ var require_on_finished = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
10537
9878
  * Copyright(c) 2014-2017 Douglas Christopher Wilson
10538
9879
  * MIT Licensed
10539
9880
  */
10540
- var require_parseurl = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js": ((exports, module) => {
9881
+ var require_parseurl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10541
9882
  /**
10542
9883
  * Module dependencies.
10543
9884
  * @private
@@ -10633,11 +9974,11 @@ var require_parseurl = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pa
10633
9974
  function fresh(url$3, parsedUrl) {
10634
9975
  return typeof parsedUrl === "object" && parsedUrl !== null && (Url === void 0 || parsedUrl instanceof Url) && parsedUrl._raw === url$3;
10635
9976
  }
10636
- }) });
9977
+ }));
10637
9978
 
10638
9979
  //#endregion
10639
9980
  //#region ../../node_modules/.pnpm/statuses@1.5.0/node_modules/statuses/codes.json
10640
- var require_codes = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/statuses@1.5.0/node_modules/statuses/codes.json": ((exports, module) => {
9981
+ var require_codes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10641
9982
  module.exports = {
10642
9983
  "100": "Continue",
10643
9984
  "101": "Switching Protocols",
@@ -10704,7 +10045,7 @@ var require_codes = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/statu
10704
10045
  "510": "Not Extended",
10705
10046
  "511": "Network Authentication Required"
10706
10047
  };
10707
- }) });
10048
+ }));
10708
10049
 
10709
10050
  //#endregion
10710
10051
  //#region ../../node_modules/.pnpm/statuses@1.5.0/node_modules/statuses/index.js
@@ -10714,7 +10055,7 @@ var require_codes = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/statu
10714
10055
  * Copyright(c) 2016 Douglas Christopher Wilson
10715
10056
  * MIT Licensed
10716
10057
  */
10717
- var require_statuses = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/statuses@1.5.0/node_modules/statuses/index.js": ((exports, module) => {
10058
+ var require_statuses = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10718
10059
  /**
10719
10060
  * Module dependencies.
10720
10061
  * @private
@@ -10790,7 +10131,7 @@ var require_statuses = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/st
10790
10131
  if (!n$2) throw new Error("invalid status message: \"" + code + "\"");
10791
10132
  return n$2;
10792
10133
  }
10793
- }) });
10134
+ }));
10794
10135
 
10795
10136
  //#endregion
10796
10137
  //#region ../../node_modules/.pnpm/unpipe@1.0.0/node_modules/unpipe/index.js
@@ -10799,7 +10140,7 @@ var require_statuses = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/st
10799
10140
  * Copyright(c) 2015 Douglas Christopher Wilson
10800
10141
  * MIT Licensed
10801
10142
  */
10802
- var require_unpipe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/unpipe@1.0.0/node_modules/unpipe/index.js": ((exports, module) => {
10143
+ var require_unpipe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10803
10144
  /**
10804
10145
  * Module exports.
10805
10146
  * @public
@@ -10809,8 +10150,8 @@ var require_unpipe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/unpi
10809
10150
  * Determine if there are Node.js pipe-like data listeners.
10810
10151
  * @private
10811
10152
  */
10812
- function hasPipeDataListeners(stream$3) {
10813
- var listeners = stream$3.listeners("data");
10153
+ function hasPipeDataListeners(stream$2) {
10154
+ var listeners = stream$2.listeners("data");
10814
10155
  for (var i$1 = 0; i$1 < listeners.length; i$1++) if (listeners[i$1].name === "ondata") return true;
10815
10156
  return false;
10816
10157
  }
@@ -10820,36 +10161,36 @@ var require_unpipe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/unpi
10820
10161
  * @param {object} stream
10821
10162
  * @public
10822
10163
  */
10823
- function unpipe$1(stream$3) {
10824
- if (!stream$3) throw new TypeError("argument stream is required");
10825
- if (typeof stream$3.unpipe === "function") {
10826
- stream$3.unpipe();
10164
+ function unpipe$1(stream$2) {
10165
+ if (!stream$2) throw new TypeError("argument stream is required");
10166
+ if (typeof stream$2.unpipe === "function") {
10167
+ stream$2.unpipe();
10827
10168
  return;
10828
10169
  }
10829
- if (!hasPipeDataListeners(stream$3)) return;
10170
+ if (!hasPipeDataListeners(stream$2)) return;
10830
10171
  var listener$1;
10831
- var listeners = stream$3.listeners("close");
10172
+ var listeners = stream$2.listeners("close");
10832
10173
  for (var i$1 = 0; i$1 < listeners.length; i$1++) {
10833
10174
  listener$1 = listeners[i$1];
10834
10175
  if (listener$1.name !== "cleanup" && listener$1.name !== "onclose") continue;
10835
- listener$1.call(stream$3);
10176
+ listener$1.call(stream$2);
10836
10177
  }
10837
10178
  }
10838
- }) });
10179
+ }));
10839
10180
 
10840
10181
  //#endregion
10841
- //#region ../../node_modules/.pnpm/finalhandler@1.1.2/node_modules/finalhandler/index.js
10182
+ //#region ../../node_modules/.pnpm/finalhandler@1.1.2_ms@2.1.3/node_modules/finalhandler/index.js
10842
10183
  /*!
10843
10184
  * finalhandler
10844
10185
  * Copyright(c) 2014-2017 Douglas Christopher Wilson
10845
10186
  * MIT Licensed
10846
10187
  */
10847
- var require_finalhandler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/finalhandler@1.1.2/node_modules/finalhandler/index.js": ((exports, module) => {
10188
+ var require_finalhandler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10848
10189
  /**
10849
10190
  * Module dependencies.
10850
10191
  * @private
10851
10192
  */
10852
- var debug$13 = require_node()("finalhandler");
10193
+ var debug$13 = (init_node(), __toCommonJS(node_exports))("finalhandler");
10853
10194
  var encodeUrl = require_encodeurl();
10854
10195
  var escapeHtml$2 = require_escape_html();
10855
10196
  var onFinished = require_on_finished();
@@ -11054,11 +10395,11 @@ var require_finalhandler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
11054
10395
  res.setHeader(key, headers[key]);
11055
10396
  }
11056
10397
  }
11057
- }) });
10398
+ }));
11058
10399
 
11059
10400
  //#endregion
11060
10401
  //#region ../../node_modules/.pnpm/utils-merge@1.0.1/node_modules/utils-merge/index.js
11061
- var require_utils_merge = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/utils-merge@1.0.1/node_modules/utils-merge/index.js": ((exports, module) => {
10402
+ var require_utils_merge = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11062
10403
  /**
11063
10404
  * Merge object b with object a.
11064
10405
  *
@@ -11077,10 +10418,10 @@ var require_utils_merge = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
11077
10418
  if (a && b) for (var key in b) a[key] = b[key];
11078
10419
  return a;
11079
10420
  };
11080
- }) });
10421
+ }));
11081
10422
 
11082
10423
  //#endregion
11083
- //#region ../../node_modules/.pnpm/connect@3.7.0/node_modules/connect/index.js
10424
+ //#region ../../node_modules/.pnpm/connect@3.7.0_ms@2.1.3/node_modules/connect/index.js
11084
10425
  /*!
11085
10426
  * connect
11086
10427
  * Copyright(c) 2010 Sencha Inc.
@@ -11088,12 +10429,12 @@ var require_utils_merge = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
11088
10429
  * Copyright(c) 2015 Douglas Christopher Wilson
11089
10430
  * MIT Licensed
11090
10431
  */
11091
- var require_connect = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/connect@3.7.0/node_modules/connect/index.js": ((exports, module) => {
10432
+ var require_connect = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11092
10433
  /**
11093
10434
  * Module dependencies.
11094
10435
  * @private
11095
10436
  */
11096
- var debug$12 = require_node()("connect:dispatcher");
10437
+ var debug$12 = (init_node(), __toCommonJS(node_exports))("connect:dispatcher");
11097
10438
  var EventEmitter$4 = __require("events").EventEmitter;
11098
10439
  var finalhandler = require_finalhandler();
11099
10440
  var http$6 = __require("http");
@@ -11288,7 +10629,7 @@ var require_connect = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/con
11288
10629
  var fqdnIndex = url$3.indexOf("://");
11289
10630
  return fqdnIndex !== -1 && url$3.lastIndexOf("?", fqdnIndex) === -1 ? url$3.substr(0, url$3.indexOf("/", 3 + fqdnIndex)) : void 0;
11290
10631
  }
11291
- }) });
10632
+ }));
11292
10633
 
11293
10634
  //#endregion
11294
10635
  //#region ../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js
@@ -11297,7 +10638,7 @@ object-assign
11297
10638
  (c) Sindre Sorhus
11298
10639
  @license MIT
11299
10640
  */
11300
- var require_object_assign = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js": ((exports, module) => {
10641
+ var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11301
10642
  var getOwnPropertySymbols = Object.getOwnPropertySymbols;
11302
10643
  var hasOwnProperty = Object.prototype.hasOwnProperty;
11303
10644
  var propIsEnumerable = Object.prototype.propertyIsEnumerable;
@@ -11330,8 +10671,8 @@ var require_object_assign = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
11330
10671
  var from;
11331
10672
  var to = toObject(target);
11332
10673
  var symbols;
11333
- for (var s$2 = 1; s$2 < arguments.length; s$2++) {
11334
- from = Object(arguments[s$2]);
10674
+ for (var s = 1; s < arguments.length; s++) {
10675
+ from = Object(arguments[s]);
11335
10676
  for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key];
11336
10677
  if (getOwnPropertySymbols) {
11337
10678
  symbols = getOwnPropertySymbols(from);
@@ -11340,7 +10681,7 @@ var require_object_assign = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
11340
10681
  }
11341
10682
  return to;
11342
10683
  };
11343
- }) });
10684
+ }));
11344
10685
 
11345
10686
  //#endregion
11346
10687
  //#region ../../node_modules/.pnpm/vary@1.1.2/node_modules/vary/index.js
@@ -11349,7 +10690,7 @@ var require_object_assign = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
11349
10690
  * Copyright(c) 2014-2017 Douglas Christopher Wilson
11350
10691
  * MIT Licensed
11351
10692
  */
11352
- var require_vary = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/vary@1.1.2/node_modules/vary/index.js": ((exports, module) => {
10693
+ var require_vary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11353
10694
  /**
11354
10695
  * Module exports.
11355
10696
  */
@@ -11430,12 +10771,13 @@ var require_vary = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/vary@1
11430
10771
  var val = res.getHeader("Vary") || "";
11431
10772
  if (val = append$1(Array.isArray(val) ? val.join(", ") : String(val), field)) res.setHeader("Vary", val);
11432
10773
  }
11433
- }) });
10774
+ }));
11434
10775
 
11435
10776
  //#endregion
11436
10777
  //#region ../../node_modules/.pnpm/cors@2.8.5/node_modules/cors/lib/index.js
11437
- var require_lib$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cors@2.8.5/node_modules/cors/lib/index.js": ((exports, module) => {
10778
+ var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11438
10779
  (function() {
10780
+ "use strict";
11439
10781
  var assign = require_object_assign();
11440
10782
  var vary$1 = require_vary();
11441
10783
  var defaults = {
@@ -11444,8 +10786,8 @@ var require_lib$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cors@
11444
10786
  preflightContinue: false,
11445
10787
  optionsSuccessStatus: 204
11446
10788
  };
11447
- function isString$1(s$2) {
11448
- return typeof s$2 === "string" || s$2 instanceof String;
10789
+ function isString$1(s) {
10790
+ return typeof s === "string" || s instanceof String;
11449
10791
  }
11450
10792
  function isOriginAllowed(origin, allowedOrigin) {
11451
10793
  if (Array.isArray(allowedOrigin)) {
@@ -11596,11 +10938,11 @@ var require_lib$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cors@
11596
10938
  }
11597
10939
  module.exports = middlewareWrapper;
11598
10940
  })();
11599
- }) });
10941
+ }));
11600
10942
 
11601
10943
  //#endregion
11602
10944
  //#region ../../node_modules/.pnpm/readdirp@3.6.0/node_modules/readdirp/index.js
11603
- var require_readdirp = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/readdirp@3.6.0/node_modules/readdirp/index.js": ((exports, module) => {
10945
+ var require_readdirp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11604
10946
  const fs$9 = __require("fs");
11605
10947
  const { Readable: Readable$1 } = __require("stream");
11606
10948
  const sysPath$3 = __require("path");
@@ -11851,11 +11193,11 @@ var require_readdirp = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/re
11851
11193
  readdirp$1.ReaddirpStream = ReaddirpStream;
11852
11194
  readdirp$1.default = readdirp$1;
11853
11195
  module.exports = readdirp$1;
11854
- }) });
11196
+ }));
11855
11197
 
11856
11198
  //#endregion
11857
11199
  //#region ../../node_modules/.pnpm/normalize-path@3.0.0/node_modules/normalize-path/index.js
11858
- var require_normalize_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/normalize-path@3.0.0/node_modules/normalize-path/index.js": ((exports, module) => {
11200
+ var require_normalize_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11859
11201
  /*!
11860
11202
  * normalize-path <https://github.com/jonschlinkert/normalize-path>
11861
11203
  *
@@ -11879,11 +11221,11 @@ var require_normalize_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
11879
11221
  if (stripTrailing !== false && segs[segs.length - 1] === "") segs.pop();
11880
11222
  return prefix + segs.join("/");
11881
11223
  };
11882
- }) });
11224
+ }));
11883
11225
 
11884
11226
  //#endregion
11885
11227
  //#region ../../node_modules/.pnpm/anymatch@3.1.3/node_modules/anymatch/index.js
11886
- var require_anymatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/anymatch@3.1.3/node_modules/anymatch/index.js": ((exports, module) => {
11228
+ var require_anymatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11887
11229
  Object.defineProperty(exports, "__esModule", { value: true });
11888
11230
  const picomatch$1 = __require("picomatch");
11889
11231
  const normalizePath$2 = require_normalize_path();
@@ -11952,11 +11294,11 @@ var require_anymatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/an
11952
11294
  };
11953
11295
  anymatch$1.default = anymatch$1;
11954
11296
  module.exports = anymatch$1;
11955
- }) });
11297
+ }));
11956
11298
 
11957
11299
  //#endregion
11958
11300
  //#region ../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js
11959
- var require_is_extglob = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js": ((exports, module) => {
11301
+ var require_is_extglob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11960
11302
  /*!
11961
11303
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
11962
11304
  *
@@ -11972,11 +11314,11 @@ var require_is_extglob = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
11972
11314
  }
11973
11315
  return false;
11974
11316
  };
11975
- }) });
11317
+ }));
11976
11318
 
11977
11319
  //#endregion
11978
11320
  //#region ../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js
11979
- var require_is_glob = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js": ((exports, module) => {
11321
+ var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11980
11322
  /*!
11981
11323
  * is-glob <https://github.com/jonschlinkert/is-glob>
11982
11324
  *
@@ -12070,11 +11412,11 @@ var require_is_glob = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/is-
12070
11412
  if (options$1 && options$1.strict === false) check = relaxedCheck;
12071
11413
  return check(str);
12072
11414
  };
12073
- }) });
11415
+ }));
12074
11416
 
12075
11417
  //#endregion
12076
11418
  //#region ../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js
12077
- var require_glob_parent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js": ((exports, module) => {
11419
+ var require_glob_parent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12078
11420
  var isGlob$1 = require_is_glob();
12079
11421
  var pathPosixDirname = __require("path").posix.dirname;
12080
11422
  var isWin32 = __require("os").platform() === "win32";
@@ -12098,11 +11440,11 @@ var require_glob_parent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
12098
11440
  while (isGlob$1(str) || globby.test(str));
12099
11441
  return str.replace(escaped, "$1");
12100
11442
  };
12101
- }) });
11443
+ }));
12102
11444
 
12103
11445
  //#endregion
12104
11446
  //#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
12105
- var require_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js": ((exports) => {
11447
+ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
12106
11448
  exports.isInteger = (num) => {
12107
11449
  if (typeof num === "number") return Number.isInteger(num);
12108
11450
  if (typeof num === "string" && num.trim() !== "") return Number.isInteger(Number(num));
@@ -12194,11 +11536,11 @@ var require_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brace
12194
11536
  flat(args);
12195
11537
  return result;
12196
11538
  };
12197
- }) });
11539
+ }));
12198
11540
 
12199
11541
  //#endregion
12200
11542
  //#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
12201
- var require_stringify = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js": ((exports, module) => {
11543
+ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12202
11544
  const utils$2 = require_utils();
12203
11545
  module.exports = (ast, options$1 = {}) => {
12204
11546
  const stringify$5 = (node, parent = {}) => {
@@ -12215,7 +11557,7 @@ var require_stringify = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/b
12215
11557
  };
12216
11558
  return stringify$5(ast);
12217
11559
  };
12218
- }) });
11560
+ }));
12219
11561
 
12220
11562
  //#endregion
12221
11563
  //#region ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
@@ -12225,13 +11567,13 @@ var require_stringify = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/b
12225
11567
  * Copyright (c) 2014-present, Jon Schlinkert.
12226
11568
  * Released under the MIT License.
12227
11569
  */
12228
- var require_is_number = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js": ((exports, module) => {
11570
+ var require_is_number = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12229
11571
  module.exports = function(num) {
12230
11572
  if (typeof num === "number") return num - num === 0;
12231
11573
  if (typeof num === "string" && num.trim() !== "") return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
12232
11574
  return false;
12233
11575
  };
12234
- }) });
11576
+ }));
12235
11577
 
12236
11578
  //#endregion
12237
11579
  //#region ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
@@ -12241,7 +11583,7 @@ var require_is_number = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/i
12241
11583
  * Copyright (c) 2015-present, Jon Schlinkert.
12242
11584
  * Released under the MIT License.
12243
11585
  */
12244
- var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js": ((exports, module) => {
11586
+ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12245
11587
  const isNumber$1 = require_is_number();
12246
11588
  const toRegexRange$1 = (min$1, max, options$1) => {
12247
11589
  if (isNumber$1(min$1) === false) throw new TypeError("toRegexRange: expected the first argument to be a number");
@@ -12431,7 +11773,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
12431
11773
  * Expose `toRegexRange`
12432
11774
  */
12433
11775
  module.exports = toRegexRange$1;
12434
- }) });
11776
+ }));
12435
11777
 
12436
11778
  //#endregion
12437
11779
  //#region ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
@@ -12441,7 +11783,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
12441
11783
  * Copyright (c) 2014-present, Jon Schlinkert.
12442
11784
  * Licensed under the MIT License.
12443
11785
  */
12444
- var require_fill_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js": ((exports, module) => {
11786
+ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12445
11787
  const util = __require("util");
12446
11788
  const toRegexRange = require_to_regex_range();
12447
11789
  const isObject$1 = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -12596,11 +11938,11 @@ var require_fill_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
12596
11938
  return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
12597
11939
  };
12598
11940
  module.exports = fill$2;
12599
- }) });
11941
+ }));
12600
11942
 
12601
11943
  //#endregion
12602
11944
  //#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
12603
- var require_compile = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js": ((exports, module) => {
11945
+ var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12604
11946
  const fill$1 = require_fill_range();
12605
11947
  const utils$1 = require_utils();
12606
11948
  const compile$1 = (ast, options$1 = {}) => {
@@ -12633,11 +11975,11 @@ var require_compile = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
12633
11975
  return walk$3(ast);
12634
11976
  };
12635
11977
  module.exports = compile$1;
12636
- }) });
11978
+ }));
12637
11979
 
12638
11980
  //#endregion
12639
11981
  //#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
12640
- var require_expand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js": ((exports, module) => {
11982
+ var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12641
11983
  const fill = require_fill_range();
12642
11984
  const stringify$2 = require_stringify();
12643
11985
  const utils = require_utils();
@@ -12710,11 +12052,11 @@ var require_expand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
12710
12052
  return utils.flatten(walk$3(ast));
12711
12053
  };
12712
12054
  module.exports = expand$1;
12713
- }) });
12055
+ }));
12714
12056
 
12715
12057
  //#endregion
12716
12058
  //#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
12717
- var require_constants$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js": ((exports, module) => {
12059
+ var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12718
12060
  module.exports = {
12719
12061
  MAX_LENGTH: 1e4,
12720
12062
  CHAR_0: "0",
@@ -12762,11 +12104,11 @@ var require_constants$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
12762
12104
  CHAR_VERTICAL_LINE: "|",
12763
12105
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: ""
12764
12106
  };
12765
- }) });
12107
+ }));
12766
12108
 
12767
12109
  //#endregion
12768
12110
  //#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
12769
- var require_parse$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js": ((exports, module) => {
12111
+ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12770
12112
  const stringify$1 = require_stringify();
12771
12113
  /**
12772
12114
  * Constants
@@ -13049,11 +12391,11 @@ var require_parse$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
13049
12391
  return ast;
13050
12392
  };
13051
12393
  module.exports = parse$8;
13052
- }) });
12394
+ }));
13053
12395
 
13054
12396
  //#endregion
13055
12397
  //#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
13056
- var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js": ((exports, module) => {
12398
+ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13057
12399
  const stringify = require_stringify();
13058
12400
  const compile = require_compile();
13059
12401
  const expand = require_expand();
@@ -13177,11 +12519,11 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
13177
12519
  * Expose "braces"
13178
12520
  */
13179
12521
  module.exports = braces$1;
13180
- }) });
12522
+ }));
13181
12523
 
13182
12524
  //#endregion
13183
12525
  //#region ../../node_modules/.pnpm/binary-extensions@2.3.0/node_modules/binary-extensions/binary-extensions.json
13184
- var require_binary_extensions$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/binary-extensions@2.3.0/node_modules/binary-extensions/binary-extensions.json": ((exports, module) => {
12526
+ var require_binary_extensions$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13185
12527
  module.exports = [
13186
12528
  "3dm",
13187
12529
  "3ds",
@@ -13445,26 +12787,26 @@ var require_binary_extensions$1 = /* @__PURE__ */ __commonJS({ "../../node_modul
13445
12787
  "zip",
13446
12788
  "zipx"
13447
12789
  ];
13448
- }) });
12790
+ }));
13449
12791
 
13450
12792
  //#endregion
13451
12793
  //#region ../../node_modules/.pnpm/binary-extensions@2.3.0/node_modules/binary-extensions/index.js
13452
- var require_binary_extensions = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/binary-extensions@2.3.0/node_modules/binary-extensions/index.js": ((exports, module) => {
12794
+ var require_binary_extensions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13453
12795
  module.exports = require_binary_extensions$1();
13454
- }) });
12796
+ }));
13455
12797
 
13456
12798
  //#endregion
13457
12799
  //#region ../../node_modules/.pnpm/is-binary-path@2.1.0/node_modules/is-binary-path/index.js
13458
- var require_is_binary_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/is-binary-path@2.1.0/node_modules/is-binary-path/index.js": ((exports, module) => {
12800
+ var require_is_binary_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13459
12801
  const path$9 = __require("path");
13460
12802
  const binaryExtensions = require_binary_extensions();
13461
12803
  const extensions = new Set(binaryExtensions);
13462
12804
  module.exports = (filePath) => extensions.has(path$9.extname(filePath).slice(1).toLowerCase());
13463
- }) });
12805
+ }));
13464
12806
 
13465
12807
  //#endregion
13466
12808
  //#region ../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/constants.js
13467
- var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/constants.js": ((exports) => {
12809
+ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
13468
12810
  const { sep: sep$2 } = __require("path");
13469
12811
  const { platform: platform$1 } = process;
13470
12812
  const os$2 = __require("os");
@@ -13525,11 +12867,11 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
13525
12867
  exports.isMacos = platform$1 === "darwin";
13526
12868
  exports.isLinux = platform$1 === "linux";
13527
12869
  exports.isIBMi = os$2.type() === "OS400";
13528
- }) });
12870
+ }));
13529
12871
 
13530
12872
  //#endregion
13531
12873
  //#region ../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/nodefs-handler.js
13532
- var require_nodefs_handler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/nodefs-handler.js": ((exports, module) => {
12874
+ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13533
12875
  const fs$8 = __require("fs");
13534
12876
  const sysPath$2 = __require("path");
13535
12877
  const { promisify: promisify$3 } = __require("util");
@@ -13849,13 +13191,13 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
13849
13191
  }
13850
13192
  const previous = this.fsw._getWatchedDir(wh.path);
13851
13193
  const current = /* @__PURE__ */ new Set();
13852
- let stream$3 = this.fsw._readdirp(directory, {
13194
+ let stream$2 = this.fsw._readdirp(directory, {
13853
13195
  fileFilter: (entry) => wh.filterPath(entry),
13854
13196
  directoryFilter: (entry) => wh.filterDir(entry),
13855
13197
  depth: 0
13856
13198
  }).on(STR_DATA$1, async (entry) => {
13857
13199
  if (this.fsw.closed) {
13858
- stream$3 = void 0;
13200
+ stream$2 = void 0;
13859
13201
  return;
13860
13202
  }
13861
13203
  const item = entry.path;
@@ -13863,7 +13205,7 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
13863
13205
  current.add(item);
13864
13206
  if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path$13, item)) return;
13865
13207
  if (this.fsw.closed) {
13866
- stream$3 = void 0;
13208
+ stream$2 = void 0;
13867
13209
  return;
13868
13210
  }
13869
13211
  if (item === target || !target && !previous.has(item)) {
@@ -13872,9 +13214,9 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
13872
13214
  this._addToNodeFs(path$13, initialAdd, wh, depth + 1);
13873
13215
  }
13874
13216
  }).on(EV_ERROR$2, this._boundHandleError);
13875
- return new Promise((resolve$4) => stream$3.once(STR_END$2, () => {
13217
+ return new Promise((resolve$4) => stream$2.once(STR_END$2, () => {
13876
13218
  if (this.fsw.closed) {
13877
- stream$3 = void 0;
13219
+ stream$2 = void 0;
13878
13220
  return;
13879
13221
  }
13880
13222
  const wasThrottled = throttler ? throttler.clear() : false;
@@ -13884,7 +13226,7 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
13884
13226
  }).forEach((item) => {
13885
13227
  this.fsw._remove(directory, item);
13886
13228
  });
13887
- stream$3 = void 0;
13229
+ stream$2 = void 0;
13888
13230
  if (wasThrottled) this._handleRead(directory, false, wh, target, dir, depth, throttler);
13889
13231
  }));
13890
13232
  }
@@ -13983,11 +13325,11 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
13983
13325
  }
13984
13326
  };
13985
13327
  module.exports = NodeFsHandler$1;
13986
- }) });
13328
+ }));
13987
13329
 
13988
13330
  //#endregion
13989
13331
  //#region ../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/fsevents-handler.js
13990
- var require_fsevents_handler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/fsevents-handler.js": ((exports, module) => {
13332
+ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13991
13333
  const fs$7 = __require("fs");
13992
13334
  const sysPath$1 = __require("path");
13993
13335
  const { promisify: promisify$2 } = __require("util");
@@ -14319,11 +13661,11 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJS({ "../../node_modules/
14319
13661
  };
14320
13662
  module.exports = FsEventsHandler$1;
14321
13663
  module.exports.canUse = canUse;
14322
- }) });
13664
+ }));
14323
13665
 
14324
13666
  //#endregion
14325
13667
  //#region ../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/index.js
14326
- var require_chokidar = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/index.js": ((exports) => {
13668
+ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
14327
13669
  const { EventEmitter: EventEmitter$3 } = __require("events");
14328
13670
  const fs$6 = __require("fs");
14329
13671
  const sysPath = __require("path");
@@ -14658,7 +14000,7 @@ var require_chokidar = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ch
14658
14000
  const promise = closer();
14659
14001
  if (promise instanceof Promise) closers.push(promise);
14660
14002
  }));
14661
- this._streams.forEach((stream$3) => stream$3.destroy());
14003
+ this._streams.forEach((stream$2) => stream$2.destroy());
14662
14004
  this._userIgnored = void 0;
14663
14005
  this._readyCount = 0;
14664
14006
  this._readyEmitted = false;
@@ -14973,23 +14315,23 @@ var require_chokidar = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ch
14973
14315
  }
14974
14316
  _readdirp(root, opts) {
14975
14317
  if (this.closed) return;
14976
- let stream$3 = readdirp(root, {
14318
+ let stream$2 = readdirp(root, {
14977
14319
  type: EV_ALL,
14978
14320
  alwaysStat: true,
14979
14321
  lstat: true,
14980
14322
  ...opts
14981
14323
  });
14982
- this._streams.add(stream$3);
14983
- stream$3.once(STR_CLOSE, () => {
14984
- stream$3 = void 0;
14324
+ this._streams.add(stream$2);
14325
+ stream$2.once(STR_CLOSE, () => {
14326
+ stream$2 = void 0;
14985
14327
  });
14986
- stream$3.once(STR_END, () => {
14987
- if (stream$3) {
14988
- this._streams.delete(stream$3);
14989
- stream$3 = void 0;
14328
+ stream$2.once(STR_END, () => {
14329
+ if (stream$2) {
14330
+ this._streams.delete(stream$2);
14331
+ stream$2 = void 0;
14990
14332
  }
14991
14333
  });
14992
- return stream$3;
14334
+ return stream$2;
14993
14335
  }
14994
14336
  };
14995
14337
  /**
@@ -15004,25 +14346,25 @@ var require_chokidar = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ch
15004
14346
  return watcher;
15005
14347
  };
15006
14348
  exports.watch = watch;
15007
- }) });
14349
+ }));
15008
14350
 
15009
14351
  //#endregion
15010
14352
  //#region ../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/quote.js
15011
- var require_quote = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/quote.js": ((exports, module) => {
14353
+ var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15012
14354
  module.exports = function quote(xs) {
15013
- return xs.map(function(s$2) {
15014
- if (s$2 === "") return "''";
15015
- if (s$2 && typeof s$2 === "object") return s$2.op.replace(/(.)/g, "\\$1");
15016
- if (/["\s\\]/.test(s$2) && !/'/.test(s$2)) return "'" + s$2.replace(/(['])/g, "\\$1") + "'";
15017
- if (/["'\s]/.test(s$2)) return "\"" + s$2.replace(/(["\\$`!])/g, "\\$1") + "\"";
15018
- return String(s$2).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g, "$1\\$2");
14355
+ return xs.map(function(s) {
14356
+ if (s === "") return "''";
14357
+ if (s && typeof s === "object") return s.op.replace(/(.)/g, "\\$1");
14358
+ if (/["\s\\]/.test(s) && !/'/.test(s)) return "'" + s.replace(/(['])/g, "\\$1") + "'";
14359
+ if (/["'\s]/.test(s)) return "\"" + s.replace(/(["\\$`!])/g, "\\$1") + "\"";
14360
+ return String(s).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g, "$1\\$2");
15019
14361
  }).join(" ");
15020
14362
  };
15021
- }) });
14363
+ }));
15022
14364
 
15023
14365
  //#endregion
15024
14366
  //#region ../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/parse.js
15025
- var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/parse.js": ((exports, module) => {
14367
+ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15026
14368
  var CONTROL = "(?:" + [
15027
14369
  "\\|\\|",
15028
14370
  "\\&\\&",
@@ -15047,11 +14389,11 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/she
15047
14389
  var mult = 4294967296;
15048
14390
  for (var i = 0; i < 4; i++) TOKEN += (mult * Math.random()).toString(16);
15049
14391
  var startsWithToken = /* @__PURE__ */ new RegExp("^" + TOKEN);
15050
- function matchAll(s$2, r$1) {
14392
+ function matchAll(s, r$1) {
15051
14393
  var origIndex = r$1.lastIndex;
15052
14394
  var matches$2 = [];
15053
14395
  var matchObj;
15054
- while (matchObj = r$1.exec(s$2)) {
14396
+ while (matchObj = r$1.exec(s)) {
15055
14397
  matches$2.push(matchObj);
15056
14398
  if (r$1.lastIndex === matchObj.index) r$1.lastIndex += 1;
15057
14399
  }
@@ -15074,9 +14416,9 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/she
15074
14416
  if (!env$1) env$1 = {};
15075
14417
  var commented = false;
15076
14418
  return matches$2.map(function(match) {
15077
- var s$2 = match[0];
15078
- if (!s$2 || commented) return;
15079
- if (controlRE.test(s$2)) return { op: s$2 };
14419
+ var s = match[0];
14420
+ if (!s || commented) return;
14421
+ if (controlRE.test(s)) return { op: s };
15080
14422
  var quote = false;
15081
14423
  var esc = false;
15082
14424
  var out = "";
@@ -15086,23 +14428,23 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/she
15086
14428
  i$1 += 1;
15087
14429
  var varend;
15088
14430
  var varname;
15089
- var char = s$2.charAt(i$1);
14431
+ var char = s.charAt(i$1);
15090
14432
  if (char === "{") {
15091
14433
  i$1 += 1;
15092
- if (s$2.charAt(i$1) === "}") throw new Error("Bad substitution: " + s$2.slice(i$1 - 2, i$1 + 1));
15093
- varend = s$2.indexOf("}", i$1);
15094
- if (varend < 0) throw new Error("Bad substitution: " + s$2.slice(i$1));
15095
- varname = s$2.slice(i$1, varend);
14434
+ if (s.charAt(i$1) === "}") throw new Error("Bad substitution: " + s.slice(i$1 - 2, i$1 + 1));
14435
+ varend = s.indexOf("}", i$1);
14436
+ if (varend < 0) throw new Error("Bad substitution: " + s.slice(i$1));
14437
+ varname = s.slice(i$1, varend);
15096
14438
  i$1 = varend;
15097
14439
  } else if (/[*@#?$!_-]/.test(char)) {
15098
14440
  varname = char;
15099
14441
  i$1 += 1;
15100
14442
  } else {
15101
- var slicedFromI = s$2.slice(i$1);
14443
+ var slicedFromI = s.slice(i$1);
15102
14444
  varend = slicedFromI.match(/[^\w\d_]/);
15103
14445
  if (!varend) {
15104
14446
  varname = slicedFromI;
15105
- i$1 = s$2.length;
14447
+ i$1 = s.length;
15106
14448
  } else {
15107
14449
  varname = slicedFromI.slice(0, varend.index);
15108
14450
  i$1 += varend.index - 1;
@@ -15110,8 +14452,8 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/she
15110
14452
  }
15111
14453
  return getVar(env$1, "", varname);
15112
14454
  }
15113
- for (i$1 = 0; i$1 < s$2.length; i$1++) {
15114
- var c = s$2.charAt(i$1);
14455
+ for (i$1 = 0; i$1 < s.length; i$1++) {
14456
+ var c = s.charAt(i$1);
15115
14457
  isGlob$2 = isGlob$2 || !quote && (c === "*" || c === "?");
15116
14458
  if (esc) {
15117
14459
  out += c;
@@ -15120,13 +14462,13 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/she
15120
14462
  else if (quote == SQ) out += c;
15121
14463
  else if (c === BS) {
15122
14464
  i$1 += 1;
15123
- c = s$2.charAt(i$1);
14465
+ c = s.charAt(i$1);
15124
14466
  if (c === DQ || c === BS || c === DS) out += c;
15125
14467
  else out += BS + c;
15126
14468
  } else if (c === DS) out += parseEnvVar();
15127
14469
  else out += c;
15128
14470
  else if (c === DQ || c === SQ) quote = c;
15129
- else if (controlRE.test(c)) return { op: s$2 };
14471
+ else if (controlRE.test(c)) return { op: s };
15130
14472
  else if (hash.test(c)) {
15131
14473
  commented = true;
15132
14474
  var commentObj = { comment: string.slice(match.index + i$1 + 1) };
@@ -15145,12 +14487,12 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/she
15145
14487
  return typeof arg === "undefined" ? prev : prev.concat(arg);
15146
14488
  }, []);
15147
14489
  }
15148
- module.exports = function parse$17(s$2, env$1, opts) {
15149
- var mapped = parseInternal(s$2, env$1, opts);
14490
+ module.exports = function parse$15(s, env$1, opts) {
14491
+ var mapped = parseInternal(s, env$1, opts);
15150
14492
  if (typeof env$1 !== "function") return mapped;
15151
- return mapped.reduce(function(acc, s$3) {
15152
- if (typeof s$3 === "object") return acc.concat(s$3);
15153
- var xs = s$3.split(RegExp("(" + TOKEN + ".*?" + TOKEN + ")", "g"));
14493
+ return mapped.reduce(function(acc, s$1) {
14494
+ if (typeof s$1 === "object") return acc.concat(s$1);
14495
+ var xs = s$1.split(RegExp("(" + TOKEN + ".*?" + TOKEN + ")", "g"));
15154
14496
  if (xs.length === 1) return acc.concat(xs[0]);
15155
14497
  return acc.concat(xs.filter(Boolean).map(function(x) {
15156
14498
  if (startsWithToken.test(x)) return JSON.parse(x.split(TOKEN)[1]);
@@ -15158,18 +14500,18 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/she
15158
14500
  }));
15159
14501
  }, []);
15160
14502
  };
15161
- }) });
14503
+ }));
15162
14504
 
15163
14505
  //#endregion
15164
14506
  //#region ../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js
15165
- var require_shell_quote = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js": ((exports) => {
14507
+ var require_shell_quote = /* @__PURE__ */ __commonJSMin(((exports) => {
15166
14508
  exports.quote = require_quote();
15167
14509
  exports.parse = require_parse$1();
15168
- }) });
14510
+ }));
15169
14511
 
15170
14512
  //#endregion
15171
14513
  //#region ../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/editor-info/macos.js
15172
- var require_macos = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/editor-info/macos.js": ((exports, module) => {
14514
+ var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15173
14515
  module.exports = {
15174
14516
  "/Applications/Atom.app/Contents/MacOS/Atom": "atom",
15175
14517
  "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta": "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta",
@@ -15198,11 +14540,11 @@ var require_macos = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
15198
14540
  "/Applications/Rider.app/Contents/MacOS/rider": "/Applications/Rider.app/Contents/MacOS/rider",
15199
14541
  "/Applications/Zed.app/Contents/MacOS/zed": "zed"
15200
14542
  };
15201
- }) });
14543
+ }));
15202
14544
 
15203
14545
  //#endregion
15204
14546
  //#region ../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/editor-info/linux.js
15205
- var require_linux = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/editor-info/linux.js": ((exports, module) => {
14547
+ var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15206
14548
  module.exports = {
15207
14549
  atom: "atom",
15208
14550
  Brackets: "brackets",
@@ -15232,11 +14574,11 @@ var require_linux = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
15232
14574
  "rider.sh": "rider",
15233
14575
  zed: "zed"
15234
14576
  };
15235
- }) });
14577
+ }));
15236
14578
 
15237
14579
  //#endregion
15238
14580
  //#region ../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/editor-info/windows.js
15239
- var require_windows$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/editor-info/windows.js": ((exports, module) => {
14581
+ var require_windows$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15240
14582
  module.exports = [
15241
14583
  "Brackets.exe",
15242
14584
  "Code.exe",
@@ -15264,11 +14606,11 @@ var require_windows$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/l
15264
14606
  "rider64.exe",
15265
14607
  "trae.exe"
15266
14608
  ];
15267
- }) });
14609
+ }));
15268
14610
 
15269
14611
  //#endregion
15270
14612
  //#region ../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/guess.js
15271
- var require_guess = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/guess.js": ((exports, module) => {
14613
+ var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15272
14614
  const path$8 = __require("path");
15273
14615
  const shellQuote = require_shell_quote();
15274
14616
  const childProcess$2 = __require("child_process");
@@ -15326,11 +14668,11 @@ var require_guess = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
15326
14668
  else if (process.env.EDITOR) return [process.env.EDITOR];
15327
14669
  return [null];
15328
14670
  };
15329
- }) });
14671
+ }));
15330
14672
 
15331
14673
  //#endregion
15332
14674
  //#region ../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/get-args.js
15333
- var require_get_args = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/get-args.js": ((exports, module) => {
14675
+ var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15334
14676
  const path$7 = __require("path");
15335
14677
  module.exports = function getArgumentsForPosition$1(editor, fileName, lineNumber, columnNumber = 1) {
15336
14678
  switch (path$7.basename(editor).replace(/\.(exe|cmd|bat)$/i, "")) {
@@ -15405,11 +14747,11 @@ var require_get_args = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/la
15405
14747
  ];
15406
14748
  return [fileName];
15407
14749
  };
15408
- }) });
14750
+ }));
15409
14751
 
15410
14752
  //#endregion
15411
14753
  //#region ../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/index.js
15412
- var require_launch_editor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.12.0/node_modules/launch-editor/index.js": ((exports, module) => {
14754
+ var require_launch_editor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15413
14755
  /**
15414
14756
  * Copyright (c) 2015-present, Facebook, Inc.
15415
14757
  *
@@ -15505,11 +14847,11 @@ var require_launch_editor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
15505
14847
  });
15506
14848
  }
15507
14849
  module.exports = launchEditor;
15508
- }) });
14850
+ }));
15509
14851
 
15510
14852
  //#endregion
15511
14853
  //#region ../../node_modules/.pnpm/launch-editor-middleware@2.12.0/node_modules/launch-editor-middleware/index.js
15512
- var require_launch_editor_middleware = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor-middleware@2.12.0/node_modules/launch-editor-middleware/index.js": ((exports, module) => {
14854
+ var require_launch_editor_middleware = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15513
14855
  const path$5 = __require("path");
15514
14856
  const launch = require_launch_editor();
15515
14857
  module.exports = (specifiedEditor, srcRoot, onErrorCallback) => {
@@ -15542,7 +14884,7 @@ var require_launch_editor_middleware = /* @__PURE__ */ __commonJS({ "../../node_
15542
14884
  }
15543
14885
  };
15544
14886
  };
15545
- }) });
14887
+ }));
15546
14888
 
15547
14889
  //#endregion
15548
14890
  //#region src/node/http.ts
@@ -16025,7 +15367,7 @@ async function ssrTransformJSON(code, inMap) {
16025
15367
  };
16026
15368
  }
16027
15369
  async function ssrTransformScript(code, inMap, url$3, originalCode) {
16028
- const s$2 = new MagicString(code);
15370
+ const s = new MagicString(code);
16029
15371
  let ast;
16030
15372
  try {
16031
15373
  ast = await parseAstAsync(code);
@@ -16055,13 +15397,13 @@ async function ssrTransformScript(code, inMap, url$3, originalCode) {
16055
15397
  const metadataArg = (metadata?.importedNames?.length ?? 0) > 0 ? `, ${JSON.stringify(metadata)}` : "";
16056
15398
  const importId = `__vite_ssr_import_${uid++}__`;
16057
15399
  const transformedImport = `const ${importId} = await ${ssrImportKey}(${JSON.stringify(source)}${metadataArg});\n`;
16058
- s$2.update(importNode.start, importNode.end, transformedImport);
15400
+ s.update(importNode.start, importNode.end, transformedImport);
16059
15401
  if (importNode.start === index) hoistIndex = importNode.end;
16060
- else s$2.move(importNode.start, importNode.end, index);
15402
+ else s.move(importNode.start, importNode.end, index);
16061
15403
  return importId;
16062
15404
  }
16063
15405
  function defineExport(name, local = name) {
16064
- s$2.appendLeft(fileStartIndex, `${ssrExportNameKey}(${JSON.stringify(name)}, () => { try { return ${local} } catch {} });\n`);
15406
+ s.appendLeft(fileStartIndex, `${ssrExportNameKey}(${JSON.stringify(name)}, () => { try { return ${local} } catch {} });\n`);
16065
15407
  }
16066
15408
  const imports = [];
16067
15409
  const exports$1 = [];
@@ -16075,7 +15417,7 @@ async function ssrTransformScript(code, inMap, url$3, originalCode) {
16075
15417
  for (const node of imports) {
16076
15418
  if (node.type === "ExportNamedDeclaration") {
16077
15419
  if (node.source) {
16078
- const importId$1 = defineImport(hoistIndex, node, { importedNames: node.specifiers.map((s$3) => getIdentifierNameOrLiteralValue$1(s$3.local)) });
15420
+ const importId$1 = defineImport(hoistIndex, node, { importedNames: node.specifiers.map((s$1) => getIdentifierNameOrLiteralValue$1(s$1.local)) });
16079
15421
  reExportImportIdMap.set(node, importId$1);
16080
15422
  }
16081
15423
  continue;
@@ -16087,9 +15429,9 @@ async function ssrTransformScript(code, inMap, url$3, originalCode) {
16087
15429
  }
16088
15430
  continue;
16089
15431
  }
16090
- const importId = defineImport(hoistIndex, node, { importedNames: node.specifiers.map((s$3) => {
16091
- if (s$3.type === "ImportSpecifier") return getIdentifierNameOrLiteralValue$1(s$3.imported);
16092
- else if (s$3.type === "ImportDefaultSpecifier") return "default";
15432
+ const importId = defineImport(hoistIndex, node, { importedNames: node.specifiers.map((s$1) => {
15433
+ if (s$1.type === "ImportSpecifier") return getIdentifierNameOrLiteralValue$1(s$1.imported);
15434
+ else if (s$1.type === "ImportDefaultSpecifier") return "default";
16093
15435
  }).filter(isDefined) });
16094
15436
  for (const spec of node.specifiers) if (spec.type === "ImportSpecifier") if (spec.imported.type === "Identifier") idToImportMap.set(spec.local.name, `${importId}.${spec.imported.name}`);
16095
15437
  else idToImportMap.set(spec.local.name, `${importId}[${JSON.stringify(spec.imported.value)}]`);
@@ -16103,7 +15445,7 @@ async function ssrTransformScript(code, inMap, url$3, originalCode) {
16103
15445
  const names = extract_names(declaration.id);
16104
15446
  for (const name of names) defineExport(name);
16105
15447
  }
16106
- s$2.remove(node.start, node.declaration.start);
15448
+ s.remove(node.start, node.declaration.start);
16107
15449
  } else if (node.source) {
16108
15450
  const importId = reExportImportIdMap.get(node);
16109
15451
  for (const spec of node.specifiers) {
@@ -16112,7 +15454,7 @@ async function ssrTransformScript(code, inMap, url$3, originalCode) {
16112
15454
  else defineExport(exportedAs, `${importId}[${JSON.stringify(spec.local.value)}]`);
16113
15455
  }
16114
15456
  } else {
16115
- s$2.remove(node.start, node.end);
15457
+ s.remove(node.start, node.end);
16116
15458
  for (const spec of node.specifiers) {
16117
15459
  const local = spec.local.name;
16118
15460
  const binding = idToImportMap.get(local);
@@ -16121,24 +15463,24 @@ async function ssrTransformScript(code, inMap, url$3, originalCode) {
16121
15463
  }
16122
15464
  if (node.type === "ExportDefaultDeclaration") if ("id" in node.declaration && node.declaration.id && !["FunctionExpression", "ClassExpression"].includes(node.declaration.type)) {
16123
15465
  const { name } = node.declaration.id;
16124
- s$2.remove(node.start, node.start + 15);
15466
+ s.remove(node.start, node.start + 15);
16125
15467
  defineExport("default", name);
16126
15468
  } else {
16127
15469
  const name = `__vite_ssr_export_default__`;
16128
- s$2.update(node.start, node.start + 14, `const ${name} =`);
15470
+ s.update(node.start, node.start + 14, `const ${name} =`);
16129
15471
  defineExport("default", name);
16130
15472
  }
16131
15473
  if (node.type === "ExportAllDeclaration") {
16132
15474
  const importId = reExportImportIdMap.get(node);
16133
15475
  if (node.exported) defineExport(getIdentifierNameOrLiteralValue$1(node.exported), `${importId}`);
16134
- else s$2.appendLeft(node.end, `${ssrExportAllKey}(${importId});\n`);
15476
+ else s.appendLeft(node.end, `${ssrExportAllKey}(${importId});\n`);
16135
15477
  }
16136
15478
  }
16137
15479
  walk$1(ast, {
16138
15480
  onStatements(statements) {
16139
15481
  for (let i$1 = 0; i$1 < statements.length - 1; i$1++) {
16140
15482
  const stmt = statements[i$1];
16141
- if (code[stmt.end - 1] !== ";" && stmt.type !== "FunctionDeclaration" && stmt.type !== "ClassDeclaration" && stmt.type !== "BlockStatement" && stmt.type !== "ImportDeclaration") s$2.appendLeft(stmt.end, ";");
15483
+ if (code[stmt.end - 1] !== ";" && stmt.type !== "FunctionDeclaration" && stmt.type !== "ClassDeclaration" && stmt.type !== "BlockStatement" && stmt.type !== "ImportDeclaration") s.appendLeft(stmt.end, ";");
16142
15484
  }
16143
15485
  },
16144
15486
  onIdentifier(id, parent, parentStack) {
@@ -16146,37 +15488,37 @@ async function ssrTransformScript(code, inMap, url$3, originalCode) {
16146
15488
  const binding = idToImportMap.get(id.name);
16147
15489
  if (!binding) return;
16148
15490
  if (isStaticProperty(parent) && parent.shorthand) {
16149
- if (!isNodeInPattern(parent) || isInDestructuringAssignment(parent, parentStack)) s$2.appendLeft(id.end, `: ${binding}`);
15491
+ if (!isNodeInPattern(parent) || isInDestructuringAssignment(parent, parentStack)) s.appendLeft(id.end, `: ${binding}`);
16150
15492
  } else if (parent.type === "PropertyDefinition" && grandparent?.type === "ClassBody" || parent.type === "ClassDeclaration" && id === parent.superClass) {
16151
15493
  if (!declaredConst.has(id.name)) {
16152
15494
  declaredConst.add(id.name);
16153
15495
  const topNode = parentStack[parentStack.length - 2];
16154
- s$2.prependRight(topNode.start, `const ${id.name} = ${binding};\n`);
15496
+ s.prependRight(topNode.start, `const ${id.name} = ${binding};\n`);
16155
15497
  }
16156
15498
  } else if (parent.type === "CallExpression") {
16157
- s$2.update(id.start, id.end, binding);
16158
- s$2.prependRight(id.start, `(0,`);
16159
- s$2.appendLeft(id.end, `)`);
16160
- } else if (!(parent.type === "ClassExpression" && id === parent.id)) s$2.update(id.start, id.end, binding);
15499
+ s.update(id.start, id.end, binding);
15500
+ s.prependRight(id.start, `(0,`);
15501
+ s.appendLeft(id.end, `)`);
15502
+ } else if (!(parent.type === "ClassExpression" && id === parent.id)) s.update(id.start, id.end, binding);
16161
15503
  },
16162
15504
  onImportMeta(node) {
16163
- s$2.update(node.start, node.end, ssrImportMetaKey);
15505
+ s.update(node.start, node.end, ssrImportMetaKey);
16164
15506
  },
16165
15507
  onDynamicImport(node) {
16166
- s$2.update(node.start, node.start + 6, ssrDynamicImportKey);
15508
+ s.update(node.start, node.start + 6, ssrDynamicImportKey);
16167
15509
  if (node.type === "ImportExpression" && node.source.type === "Literal") dynamicDeps.add(node.source.value);
16168
15510
  }
16169
15511
  });
16170
15512
  let map$1;
16171
15513
  if (inMap?.mappings === "") map$1 = inMap;
16172
15514
  else {
16173
- map$1 = s$2.generateMap({ hires: "boundary" });
15515
+ map$1 = s.generateMap({ hires: "boundary" });
16174
15516
  map$1.sources = [path.basename(url$3)];
16175
15517
  map$1.sourcesContent = [originalCode];
16176
15518
  if (inMap && inMap.mappings && "sources" in inMap && inMap.sources.length > 0) map$1 = combineSourcemaps(url$3, [map$1, inMap]);
16177
15519
  }
16178
15520
  return {
16179
- code: s$2.toString(),
15521
+ code: s.toString(),
16180
15522
  map: map$1,
16181
15523
  ssr: true,
16182
15524
  deps: [...deps],
@@ -16735,7 +16077,7 @@ var open_default = open;
16735
16077
 
16736
16078
  //#endregion
16737
16079
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
16738
- var require_windows = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js": ((exports, module) => {
16080
+ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16739
16081
  module.exports = isexe$3;
16740
16082
  isexe$3.sync = sync$2;
16741
16083
  var fs$4 = __require("fs");
@@ -16762,11 +16104,11 @@ var require_windows = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ise
16762
16104
  function sync$2(path$13, options$1) {
16763
16105
  return checkStat$1(fs$4.statSync(path$13), path$13, options$1);
16764
16106
  }
16765
- }) });
16107
+ }));
16766
16108
 
16767
16109
  //#endregion
16768
16110
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
16769
- var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js": ((exports, module) => {
16111
+ var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16770
16112
  module.exports = isexe$2;
16771
16113
  isexe$2.sync = sync$1;
16772
16114
  var fs$3 = __require("fs");
@@ -16793,11 +16135,11 @@ var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@
16793
16135
  var ug = u | g;
16794
16136
  return mod & o$1 || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
16795
16137
  }
16796
- }) });
16138
+ }));
16797
16139
 
16798
16140
  //#endregion
16799
16141
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
16800
- var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js": ((exports, module) => {
16142
+ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16801
16143
  __require("fs");
16802
16144
  var core;
16803
16145
  if (process.platform === "win32" || global.TESTING_WINDOWS) core = require_windows();
@@ -16836,11 +16178,11 @@ var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe
16836
16178
  else throw er;
16837
16179
  }
16838
16180
  }
16839
- }) });
16181
+ }));
16840
16182
 
16841
16183
  //#endregion
16842
16184
  //#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
16843
- var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js": ((exports, module) => {
16185
+ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16844
16186
  const isWindows$1 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
16845
16187
  const path$4 = __require("path");
16846
16188
  const COLON = isWindows$1 ? ";" : ":";
@@ -16909,11 +16251,11 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
16909
16251
  };
16910
16252
  module.exports = which$1;
16911
16253
  which$1.sync = whichSync;
16912
- }) });
16254
+ }));
16913
16255
 
16914
16256
  //#endregion
16915
16257
  //#region ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
16916
- var require_path_key = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js": ((exports, module) => {
16258
+ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16917
16259
  const pathKey = (options$1 = {}) => {
16918
16260
  const environment = options$1.env || process.env;
16919
16261
  if ((options$1.platform || process.platform) !== "win32") return "PATH";
@@ -16921,11 +16263,11 @@ var require_path_key = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pa
16921
16263
  };
16922
16264
  module.exports = pathKey;
16923
16265
  module.exports.default = pathKey;
16924
- }) });
16266
+ }));
16925
16267
 
16926
16268
  //#endregion
16927
16269
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
16928
- var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js": ((exports, module) => {
16270
+ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16929
16271
  const path$3 = __require("path");
16930
16272
  const which = require_which();
16931
16273
  const getPathKey = require_path_key();
@@ -16953,11 +16295,11 @@ var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
16953
16295
  return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
16954
16296
  }
16955
16297
  module.exports = resolveCommand$1;
16956
- }) });
16298
+ }));
16957
16299
 
16958
16300
  //#endregion
16959
16301
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
16960
- var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js": ((exports, module) => {
16302
+ var require_escape = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16961
16303
  const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
16962
16304
  function escapeCommand(arg) {
16963
16305
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -16974,17 +16316,17 @@ var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
16974
16316
  }
16975
16317
  module.exports.command = escapeCommand;
16976
16318
  module.exports.argument = escapeArgument;
16977
- }) });
16319
+ }));
16978
16320
 
16979
16321
  //#endregion
16980
16322
  //#region ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
16981
- var require_shebang_regex = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js": ((exports, module) => {
16323
+ var require_shebang_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16982
16324
  module.exports = /^#!(.*)/;
16983
- }) });
16325
+ }));
16984
16326
 
16985
16327
  //#endregion
16986
16328
  //#region ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
16987
- var require_shebang_command = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js": ((exports, module) => {
16329
+ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16988
16330
  const shebangRegex = require_shebang_regex();
16989
16331
  module.exports = (string = "") => {
16990
16332
  const match = string.match(shebangRegex);
@@ -16994,30 +16336,30 @@ var require_shebang_command = /* @__PURE__ */ __commonJS({ "../../node_modules/.
16994
16336
  if (binary === "env") return argument;
16995
16337
  return argument ? `${binary} ${argument}` : binary;
16996
16338
  };
16997
- }) });
16339
+ }));
16998
16340
 
16999
16341
  //#endregion
17000
16342
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
17001
- var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js": ((exports, module) => {
16343
+ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17002
16344
  const fs$2 = __require("fs");
17003
16345
  const shebangCommand = require_shebang_command();
17004
16346
  function readShebang$1(command) {
17005
16347
  const size = 150;
17006
16348
  const buffer = Buffer.alloc(size);
17007
- let fd$1;
16349
+ let fd;
17008
16350
  try {
17009
- fd$1 = fs$2.openSync(command, "r");
17010
- fs$2.readSync(fd$1, buffer, 0, size, 0);
17011
- fs$2.closeSync(fd$1);
16351
+ fd = fs$2.openSync(command, "r");
16352
+ fs$2.readSync(fd, buffer, 0, size, 0);
16353
+ fs$2.closeSync(fd);
17012
16354
  } catch (e$1) {}
17013
16355
  return shebangCommand(buffer.toString());
17014
16356
  }
17015
16357
  module.exports = readShebang$1;
17016
- }) });
16358
+ }));
17017
16359
 
17018
16360
  //#endregion
17019
16361
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
17020
- var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js": ((exports, module) => {
16362
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17021
16363
  const path$2 = __require("path");
17022
16364
  const resolveCommand = require_resolveCommand();
17023
16365
  const escape$1 = require_escape();
@@ -17075,11 +16417,11 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
17075
16417
  return options$1.shell ? parsed : parseNonShell(parsed);
17076
16418
  }
17077
16419
  module.exports = parse$6;
17078
- }) });
16420
+ }));
17079
16421
 
17080
16422
  //#endregion
17081
16423
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
17082
- var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js": ((exports, module) => {
16424
+ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17083
16425
  const isWin = process.platform === "win32";
17084
16426
  function notFoundError(original, syscall) {
17085
16427
  return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
@@ -17115,11 +16457,11 @@ var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
17115
16457
  verifyENOENTSync,
17116
16458
  notFoundError
17117
16459
  };
17118
- }) });
16460
+ }));
17119
16461
 
17120
16462
  //#endregion
17121
16463
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
17122
- var require_cross_spawn = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js": ((exports, module) => {
16464
+ var require_cross_spawn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17123
16465
  const cp = __require("child_process");
17124
16466
  const parse$5 = require_parse();
17125
16467
  const enoent = require_enoent();
@@ -17140,7 +16482,7 @@ var require_cross_spawn = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
17140
16482
  module.exports.sync = spawnSync;
17141
16483
  module.exports._parse = parse$5;
17142
16484
  module.exports._enoent = enoent;
17143
- }) });
16485
+ }));
17144
16486
 
17145
16487
  //#endregion
17146
16488
  //#region src/node/server/openBrowser.ts
@@ -17223,11 +16565,11 @@ function execAsync(command, options$1) {
17223
16565
  //#endregion
17224
16566
  //#region src/node/shortcuts.ts
17225
16567
  var import_picocolors$23 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
17226
- function bindCLIShortcuts(server, opts, enabled$1 = process.stdin.isTTY && !process.env.CI) {
17227
- if (!server.httpServer || !enabled$1) return;
16568
+ function bindCLIShortcuts(server, opts, enabled = process.stdin.isTTY && !process.env.CI) {
16569
+ if (!server.httpServer || !enabled) return;
17228
16570
  const isDev = isDevServer(server);
17229
16571
  const customShortcuts = opts?.customShortcuts ?? [];
17230
- for (const shortcut of server._shortcutsOptions?.customShortcuts ?? []) if (!customShortcuts.some((s$2) => s$2.key === shortcut.key)) customShortcuts.push(shortcut);
16572
+ for (const shortcut of server._shortcutsOptions?.customShortcuts ?? []) if (!customShortcuts.some((s) => s.key === shortcut.key)) customShortcuts.push(shortcut);
17231
16573
  server._shortcutsOptions = {
17232
16574
  ...opts,
17233
16575
  customShortcuts
@@ -17384,7 +16726,7 @@ function createNoopWatcher(options$1) {
17384
16726
 
17385
16727
  //#endregion
17386
16728
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/constants.js
17387
- var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/constants.js": ((exports, module) => {
16729
+ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17388
16730
  const BINARY_TYPES$2 = [
17389
16731
  "nodebuffer",
17390
16732
  "arraybuffer",
@@ -17403,11 +16745,11 @@ var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/w
17403
16745
  kWebSocket: Symbol("websocket"),
17404
16746
  NOOP: () => {}
17405
16747
  };
17406
- }) });
16748
+ }));
17407
16749
 
17408
16750
  //#endregion
17409
16751
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/buffer-util.js
17410
- var require_buffer_util = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/buffer-util.js": ((exports, module) => {
16752
+ var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17411
16753
  const { EMPTY_BUFFER: EMPTY_BUFFER$3 } = require_constants();
17412
16754
  const FastBuffer$2 = Buffer[Symbol.species];
17413
16755
  /**
@@ -17504,11 +16846,11 @@ var require_buffer_util = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
17504
16846
  else bufferUtil$1.unmask(buffer, mask);
17505
16847
  };
17506
16848
  } catch (e$1) {}
17507
- }) });
16849
+ }));
17508
16850
 
17509
16851
  //#endregion
17510
16852
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/limiter.js
17511
- var require_limiter = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/limiter.js": ((exports, module) => {
16853
+ var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17512
16854
  const kDone = Symbol("kDone");
17513
16855
  const kRun = Symbol("kRun");
17514
16856
  /**
@@ -17556,11 +16898,11 @@ var require_limiter = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@
17556
16898
  }
17557
16899
  };
17558
16900
  module.exports = Limiter$1;
17559
- }) });
16901
+ }));
17560
16902
 
17561
16903
  //#endregion
17562
16904
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/permessage-deflate.js
17563
- var require_permessage_deflate = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/permessage-deflate.js": ((exports, module) => {
16905
+ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17564
16906
  const zlib$1 = __require("zlib");
17565
16907
  const bufferUtil = require_buffer_util();
17566
16908
  const Limiter = require_limiter();
@@ -17890,11 +17232,11 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJS({ "../../node_module
17890
17232
  err$2[kStatusCode$2] = 1007;
17891
17233
  this[kCallback](err$2);
17892
17234
  }
17893
- }) });
17235
+ }));
17894
17236
 
17895
17237
  //#endregion
17896
17238
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/validation.js
17897
- var require_validation = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/validation.js": ((exports, module) => {
17239
+ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17898
17240
  const { isUtf8 } = __require("buffer");
17899
17241
  const { hasBlob } = require_constants();
17900
17242
  const tokenChars$2 = [
@@ -18087,11 +17429,11 @@ var require_validation = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
18087
17429
  return buf.length < 32 ? _isValidUTF8(buf) : isValidUTF8$1(buf);
18088
17430
  };
18089
17431
  } catch (e$1) {}
18090
- }) });
17432
+ }));
18091
17433
 
18092
17434
  //#endregion
18093
17435
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/receiver.js
18094
- var require_receiver = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/receiver.js": ((exports, module) => {
17436
+ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
18095
17437
  const { Writable: Writable$1 } = __require("stream");
18096
17438
  const PerMessageDeflate$3 = require_permessage_deflate();
18097
17439
  const { BINARY_TYPES: BINARY_TYPES$1, EMPTY_BUFFER: EMPTY_BUFFER$2, kStatusCode: kStatusCode$1, kWebSocket: kWebSocket$3 } = require_constants();
@@ -18535,11 +17877,11 @@ var require_receiver = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws
18535
17877
  }
18536
17878
  };
18537
17879
  module.exports = Receiver$2;
18538
- }) });
17880
+ }));
18539
17881
 
18540
17882
  //#endregion
18541
17883
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/sender.js
18542
- var require_sender = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/sender.js": ((exports, module) => {
17884
+ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
18543
17885
  const { Duplex: Duplex$3 } = __require("stream");
18544
17886
  const { randomFillSync } = __require("crypto");
18545
17887
  const PerMessageDeflate$2 = require_permessage_deflate();
@@ -19031,11 +18373,11 @@ var require_sender = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8
19031
18373
  callCallbacks(sender, err$2, cb);
19032
18374
  sender.onerror(err$2);
19033
18375
  }
19034
- }) });
18376
+ }));
19035
18377
 
19036
18378
  //#endregion
19037
18379
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/event-target.js
19038
- var require_event_target = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/event-target.js": ((exports, module) => {
18380
+ var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19039
18381
  const { kForOnEventAttribute: kForOnEventAttribute$1, kListener: kListener$1 } = require_constants();
19040
18382
  const kCode = Symbol("kCode");
19041
18383
  const kData = Symbol("kData");
@@ -19251,11 +18593,11 @@ var require_event_target = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
19251
18593
  if (typeof listener$1 === "object" && listener$1.handleEvent) listener$1.handleEvent.call(listener$1, event);
19252
18594
  else listener$1.call(thisArg, event);
19253
18595
  }
19254
- }) });
18596
+ }));
19255
18597
 
19256
18598
  //#endregion
19257
18599
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/extension.js
19258
- var require_extension = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/extension.js": ((exports, module) => {
18600
+ var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19259
18601
  const { tokenChars: tokenChars$1 } = require_validation();
19260
18602
  /**
19261
18603
  * Adds an offer to the map of extension offers or a parameter to the map of
@@ -19395,11 +18737,11 @@ var require_extension = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/w
19395
18737
  format: format$2,
19396
18738
  parse: parse$4
19397
18739
  };
19398
- }) });
18740
+ }));
19399
18741
 
19400
18742
  //#endregion
19401
18743
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/websocket.js
19402
- var require_websocket = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/websocket.js": ((exports, module) => {
18744
+ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19403
18745
  const EventEmitter$2 = __require("events");
19404
18746
  const https$3 = __require("https");
19405
18747
  const http$5 = __require("http");
@@ -20150,19 +19492,19 @@ var require_websocket = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/w
20150
19492
  * @param {String} message The error message
20151
19493
  * @private
20152
19494
  */
20153
- function abortHandshake$1(websocket, stream$3, message) {
19495
+ function abortHandshake$1(websocket, stream$2, message) {
20154
19496
  websocket._readyState = WebSocket$2.CLOSING;
20155
19497
  const err$2 = new Error(message);
20156
19498
  Error.captureStackTrace(err$2, abortHandshake$1);
20157
- if (stream$3.setHeader) {
20158
- stream$3[kAborted] = true;
20159
- stream$3.abort();
20160
- if (stream$3.socket && !stream$3.socket.destroyed) stream$3.socket.destroy();
19499
+ if (stream$2.setHeader) {
19500
+ stream$2[kAborted] = true;
19501
+ stream$2.abort();
19502
+ if (stream$2.socket && !stream$2.socket.destroyed) stream$2.socket.destroy();
20161
19503
  process.nextTick(emitErrorAndClose, websocket, err$2);
20162
19504
  } else {
20163
- stream$3.destroy(err$2);
20164
- stream$3.once("error", websocket.emit.bind(websocket, "error"));
20165
- stream$3.once("close", websocket.emitClose.bind(websocket));
19505
+ stream$2.destroy(err$2);
19506
+ stream$2.once("error", websocket.emit.bind(websocket, "error"));
19507
+ stream$2.once("close", websocket.emitClose.bind(websocket));
20166
19508
  }
20167
19509
  }
20168
19510
  /**
@@ -20274,8 +19616,8 @@ var require_websocket = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/w
20274
19616
  * @param {Readable} stream The readable stream
20275
19617
  * @private
20276
19618
  */
20277
- function resume(stream$3) {
20278
- stream$3.resume();
19619
+ function resume(stream$2) {
19620
+ stream$2.resume();
20279
19621
  }
20280
19622
  /**
20281
19623
  * The `Sender` error event handler.
@@ -20361,11 +19703,11 @@ var require_websocket = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/w
20361
19703
  this.destroy();
20362
19704
  }
20363
19705
  }
20364
- }) });
19706
+ }));
20365
19707
 
20366
19708
  //#endregion
20367
19709
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/stream.js
20368
- var require_stream = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/stream.js": ((exports, module) => {
19710
+ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20369
19711
  require_websocket();
20370
19712
  const { Duplex: Duplex$1 } = __require("stream");
20371
19713
  /**
@@ -20374,8 +19716,8 @@ var require_stream = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8
20374
19716
  * @param {Duplex} stream The stream.
20375
19717
  * @private
20376
19718
  */
20377
- function emitClose$1(stream$3) {
20378
- stream$3.emit("close");
19719
+ function emitClose$1(stream$2) {
19720
+ stream$2.emit("close");
20379
19721
  }
20380
19722
  /**
20381
19723
  * The listener of the `'end'` event.
@@ -20478,11 +19820,11 @@ var require_stream = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8
20478
19820
  return duplex;
20479
19821
  }
20480
19822
  module.exports = createWebSocketStream$1;
20481
- }) });
19823
+ }));
20482
19824
 
20483
19825
  //#endregion
20484
19826
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/subprotocol.js
20485
- var require_subprotocol = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/subprotocol.js": ((exports, module) => {
19827
+ var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20486
19828
  const { tokenChars } = require_validation();
20487
19829
  /**
20488
19830
  * Parses the `Sec-WebSocket-Protocol` header into a set of subprotocol names.
@@ -20518,11 +19860,11 @@ var require_subprotocol = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
20518
19860
  return protocols;
20519
19861
  }
20520
19862
  module.exports = { parse: parse$2 };
20521
- }) });
19863
+ }));
20522
19864
 
20523
19865
  //#endregion
20524
19866
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/websocket-server.js
20525
- var require_websocket_server = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/websocket-server.js": ((exports, module) => {
19867
+ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20526
19868
  const EventEmitter$1 = __require("events");
20527
19869
  const http$4 = __require("http");
20528
19870
  const { Duplex } = __require("stream");
@@ -20868,7 +20210,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJS({ "../../node_modules/
20868
20210
  ...headers
20869
20211
  };
20870
20212
  socket.once("finish", socket.destroy);
20871
- socket.end(`HTTP/1.1 ${code} ${http$4.STATUS_CODES[code]}\r\n` + Object.keys(headers).map((h$2) => `${h$2}: ${headers[h$2]}`).join("\r\n") + "\r\n\r\n" + message);
20213
+ socket.end(`HTTP/1.1 ${code} ${http$4.STATUS_CODES[code]}\r\n` + Object.keys(headers).map((h) => `${h}: ${headers[h]}`).join("\r\n") + "\r\n\r\n" + message);
20872
20214
  }
20873
20215
  /**
20874
20216
  * Emit a `'wsClientError'` event on a `WebSocketServer` if there is at least
@@ -20889,7 +20231,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJS({ "../../node_modules/
20889
20231
  server.emit("wsClientError", err$2, socket, req$4);
20890
20232
  } else abortHandshake(socket, code, message, headers);
20891
20233
  }
20892
- }) });
20234
+ }));
20893
20235
 
20894
20236
  //#endregion
20895
20237
  //#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/wrapper.mjs
@@ -21232,8 +20574,8 @@ function baseMiddleware(rawBase, middlewareMode) {
21232
20574
  }
21233
20575
 
21234
20576
  //#endregion
21235
- //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/common.js
21236
- var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/common.js": ((exports) => {
20577
+ //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0_patch_hash=d89dff5a0afc2cb277080ad056a3baf7feeeeac19144878abc17f4c91ad89095_ms@2.1.3/node_modules/http-proxy-3/dist/lib/http-proxy/common.js
20578
+ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
21237
20579
  Object.defineProperty(exports, "__esModule", { value: true });
21238
20580
  exports.isSSL = void 0;
21239
20581
  exports.setupOutgoing = setupOutgoing;
@@ -21270,6 +20612,7 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http
21270
20612
  ]) outgoing[e$1] = target[e$1];
21271
20613
  outgoing.method = options$1.method || req$4.method;
21272
20614
  outgoing.headers = { ...req$4.headers };
20615
+ if (req$4.headers[":authority"]) outgoing.headers.host = req$4.headers[":authority"];
21273
20616
  if (options$1.headers) outgoing.headers = {
21274
20617
  ...outgoing.headers,
21275
20618
  ...options$1.headers
@@ -21305,7 +20648,8 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http
21305
20648
  return socket;
21306
20649
  }
21307
20650
  function getPort(req$4) {
21308
- const res = req$4.headers.host ? req$4.headers.host.match(/:(\d+)/) : "";
20651
+ const hostHeader = req$4.headers[":authority"] || req$4.headers.host;
20652
+ const res = hostHeader ? hostHeader.match(/:(\d+)/) : "";
21309
20653
  return res ? res[1] : hasEncryptedConnection(req$4) ? "443" : "80";
21310
20654
  }
21311
20655
  function hasEncryptedConnection(req$4) {
@@ -21374,24 +20718,24 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http
21374
20718
  }
21375
20719
  return port !== 0;
21376
20720
  }
21377
- }) });
20721
+ }));
21378
20722
 
21379
20723
  //#endregion
21380
- //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/web-outgoing.js
21381
- var require_web_outgoing = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/web-outgoing.js": ((exports) => {
21382
- var __createBinding$3 = exports && exports.__createBinding || (Object.create ? (function(o$1, m$2, k, k2) {
20724
+ //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0_patch_hash=d89dff5a0afc2cb277080ad056a3baf7feeeeac19144878abc17f4c91ad89095_ms@2.1.3/node_modules/http-proxy-3/dist/lib/http-proxy/passes/web-outgoing.js
20725
+ var require_web_outgoing = /* @__PURE__ */ __commonJSMin(((exports) => {
20726
+ var __createBinding$3 = exports && exports.__createBinding || (Object.create ? (function(o$1, m, k, k2) {
21383
20727
  if (k2 === void 0) k2 = k;
21384
- var desc = Object.getOwnPropertyDescriptor(m$2, k);
21385
- if (!desc || ("get" in desc ? !m$2.__esModule : desc.writable || desc.configurable)) desc = {
20728
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20729
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
21386
20730
  enumerable: true,
21387
20731
  get: function() {
21388
- return m$2[k];
20732
+ return m[k];
21389
20733
  }
21390
20734
  };
21391
20735
  Object.defineProperty(o$1, k2, desc);
21392
- }) : (function(o$1, m$2, k, k2) {
20736
+ }) : (function(o$1, m, k, k2) {
21393
20737
  if (k2 === void 0) k2 = k;
21394
- o$1[k2] = m$2[k];
20738
+ o$1[k2] = m[k];
21395
20739
  }));
21396
20740
  var __setModuleDefault$3 = exports && exports.__setModuleDefault || (Object.create ? (function(o$1, v) {
21397
20741
  Object.defineProperty(o$1, "default", {
@@ -21444,7 +20788,7 @@ var require_web_outgoing = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
21444
20788
  const u = common$2.toURL(location$1);
21445
20789
  if (target.host != u.host) return;
21446
20790
  if (options$1.hostRewrite) u.host = options$1.hostRewrite;
21447
- else if (options$1.autoRewrite) u.host = req$4.headers["host"] ?? "";
20791
+ else if (options$1.autoRewrite) u.host = req$4.headers[":authority"] ?? req$4.headers["host"] ?? "";
21448
20792
  if (options$1.protocolRewrite) u.protocol = options$1.protocolRewrite;
21449
20793
  proxyRes.headers["location"] = u.toString();
21450
20794
  }
@@ -21486,26 +20830,26 @@ var require_web_outgoing = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
21486
20830
  writeHeaders,
21487
20831
  writeStatusCode
21488
20832
  };
21489
- }) });
20833
+ }));
21490
20834
 
21491
20835
  //#endregion
21492
- //#region ../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/debug.js
21493
- var require_debug = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/debug.js": ((exports, module) => {
20836
+ //#region ../../node_modules/.pnpm/follow-redirects@1.15.11_obug@1.0.2_ms@2.1.3_/node_modules/follow-redirects/debug.js
20837
+ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21494
20838
  var debug$11;
21495
20839
  module.exports = function() {
21496
20840
  if (!debug$11) {
21497
20841
  try {
21498
- debug$11 = require_node$1()("follow-redirects");
20842
+ debug$11 = (init_node(), __toCommonJS(node_exports))("follow-redirects");
21499
20843
  } catch (error$1) {}
21500
20844
  if (typeof debug$11 !== "function") debug$11 = function() {};
21501
20845
  }
21502
20846
  debug$11.apply(null, arguments);
21503
20847
  };
21504
- }) });
20848
+ }));
21505
20849
 
21506
20850
  //#endregion
21507
- //#region ../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/index.js
21508
- var require_follow_redirects = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/index.js": ((exports, module) => {
20851
+ //#region ../../node_modules/.pnpm/follow-redirects@1.15.11_obug@1.0.2_ms@2.1.3_/node_modules/follow-redirects/index.js
20852
+ var require_follow_redirects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21509
20853
  var url = __require("url");
21510
20854
  var URL$2 = url.URL;
21511
20855
  var http$3 = __require("http");
@@ -21932,24 +21276,24 @@ var require_follow_redirects = /* @__PURE__ */ __commonJS({ "../../node_modules/
21932
21276
  https: https$2
21933
21277
  });
21934
21278
  module.exports.wrap = wrap;
21935
- }) });
21279
+ }));
21936
21280
 
21937
21281
  //#endregion
21938
- //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/web-incoming.js
21939
- var require_web_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/web-incoming.js": ((exports) => {
21940
- var __createBinding$2 = exports && exports.__createBinding || (Object.create ? (function(o$1, m$2, k, k2) {
21282
+ //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0_patch_hash=d89dff5a0afc2cb277080ad056a3baf7feeeeac19144878abc17f4c91ad89095_ms@2.1.3/node_modules/http-proxy-3/dist/lib/http-proxy/passes/web-incoming.js
21283
+ var require_web_incoming = /* @__PURE__ */ __commonJSMin(((exports) => {
21284
+ var __createBinding$2 = exports && exports.__createBinding || (Object.create ? (function(o$1, m, k, k2) {
21941
21285
  if (k2 === void 0) k2 = k;
21942
- var desc = Object.getOwnPropertyDescriptor(m$2, k);
21943
- if (!desc || ("get" in desc ? !m$2.__esModule : desc.writable || desc.configurable)) desc = {
21286
+ var desc = Object.getOwnPropertyDescriptor(m, k);
21287
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
21944
21288
  enumerable: true,
21945
21289
  get: function() {
21946
- return m$2[k];
21290
+ return m[k];
21947
21291
  }
21948
21292
  };
21949
21293
  Object.defineProperty(o$1, k2, desc);
21950
- }) : (function(o$1, m$2, k, k2) {
21294
+ }) : (function(o$1, m, k, k2) {
21951
21295
  if (k2 === void 0) k2 = k;
21952
- o$1[k2] = m$2[k];
21296
+ o$1[k2] = m[k];
21953
21297
  }));
21954
21298
  var __setModuleDefault$2 = exports && exports.__setModuleDefault || (Object.create ? (function(o$1, v) {
21955
21299
  Object.defineProperty(o$1, "default", {
@@ -22016,7 +21360,7 @@ var require_web_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
22016
21360
  "port",
22017
21361
  "proto"
22018
21362
  ]) req$4.headers["x-forwarded-" + header] = (req$4.headers["x-forwarded-" + header] || "") + (req$4.headers["x-forwarded-" + header] ? "," : "") + values[header];
22019
- req$4.headers["x-forwarded-host"] = req$4.headers["x-forwarded-host"] || req$4.headers["host"] || "";
21363
+ req$4.headers["x-forwarded-host"] = req$4.headers["x-forwarded-host"] || req$4.headers[":authority"] || req$4.headers["host"] || "";
22020
21364
  }
22021
21365
  function stream$1(req$4, res, options$1, _, server, cb) {
22022
21366
  server.emit("start", req$4, res, options$1.target || options$1.forward);
@@ -22077,24 +21421,24 @@ var require_web_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
22077
21421
  XHeaders: XHeaders$1,
22078
21422
  stream: stream$1
22079
21423
  };
22080
- }) });
21424
+ }));
22081
21425
 
22082
21426
  //#endregion
22083
- //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/ws-incoming.js
22084
- var require_ws_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/ws-incoming.js": ((exports) => {
22085
- var __createBinding$1 = exports && exports.__createBinding || (Object.create ? (function(o$1, m$2, k, k2) {
21427
+ //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0_patch_hash=d89dff5a0afc2cb277080ad056a3baf7feeeeac19144878abc17f4c91ad89095_ms@2.1.3/node_modules/http-proxy-3/dist/lib/http-proxy/passes/ws-incoming.js
21428
+ var require_ws_incoming = /* @__PURE__ */ __commonJSMin(((exports) => {
21429
+ var __createBinding$1 = exports && exports.__createBinding || (Object.create ? (function(o$1, m, k, k2) {
22086
21430
  if (k2 === void 0) k2 = k;
22087
- var desc = Object.getOwnPropertyDescriptor(m$2, k);
22088
- if (!desc || ("get" in desc ? !m$2.__esModule : desc.writable || desc.configurable)) desc = {
21431
+ var desc = Object.getOwnPropertyDescriptor(m, k);
21432
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
22089
21433
  enumerable: true,
22090
21434
  get: function() {
22091
- return m$2[k];
21435
+ return m[k];
22092
21436
  }
22093
21437
  };
22094
21438
  Object.defineProperty(o$1, k2, desc);
22095
- }) : (function(o$1, m$2, k, k2) {
21439
+ }) : (function(o$1, m, k, k2) {
22096
21440
  if (k2 === void 0) k2 = k;
22097
- o$1[k2] = m$2[k];
21441
+ o$1[k2] = m[k];
22098
21442
  }));
22099
21443
  var __setModuleDefault$1 = exports && exports.__setModuleDefault || (Object.create ? (function(o$1, v) {
22100
21444
  Object.defineProperty(o$1, "default", {
@@ -22136,7 +21480,7 @@ var require_ws_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
22136
21480
  const https = __importStar$1(__require("node:https"));
22137
21481
  const common = __importStar$1(require_common());
22138
21482
  const web_outgoing_1 = require_web_outgoing();
22139
- const log$1 = (0, __importDefault$1(require_node$1()).default)("http-proxy-3:ws-incoming");
21483
+ const log$1 = (0, __importDefault$1((init_node(), __toCommonJS(node_exports))).default)("http-proxy-3:ws-incoming");
22140
21484
  const web_o = Object.values(web_outgoing_1.OUTGOING_PASSES);
22141
21485
  function createSocketCounter(name) {
22142
21486
  let sockets = /* @__PURE__ */ new Set();
@@ -22287,24 +21631,24 @@ var require_ws_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
22287
21631
  XHeaders,
22288
21632
  stream
22289
21633
  };
22290
- }) });
21634
+ }));
22291
21635
 
22292
21636
  //#endregion
22293
- //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/index.js
22294
- var require_http_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/http-proxy/index.js": ((exports) => {
22295
- var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o$1, m$2, k, k2) {
21637
+ //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0_patch_hash=d89dff5a0afc2cb277080ad056a3baf7feeeeac19144878abc17f4c91ad89095_ms@2.1.3/node_modules/http-proxy-3/dist/lib/http-proxy/index.js
21638
+ var require_http_proxy = /* @__PURE__ */ __commonJSMin(((exports) => {
21639
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o$1, m, k, k2) {
22296
21640
  if (k2 === void 0) k2 = k;
22297
- var desc = Object.getOwnPropertyDescriptor(m$2, k);
22298
- if (!desc || ("get" in desc ? !m$2.__esModule : desc.writable || desc.configurable)) desc = {
21641
+ var desc = Object.getOwnPropertyDescriptor(m, k);
21642
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
22299
21643
  enumerable: true,
22300
21644
  get: function() {
22301
- return m$2[k];
21645
+ return m[k];
22302
21646
  }
22303
21647
  };
22304
21648
  Object.defineProperty(o$1, k2, desc);
22305
- }) : (function(o$1, m$2, k, k2) {
21649
+ }) : (function(o$1, m, k, k2) {
22306
21650
  if (k2 === void 0) k2 = k;
22307
- o$1[k2] = m$2[k];
21651
+ o$1[k2] = m[k];
22308
21652
  }));
22309
21653
  var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o$1, v) {
22310
21654
  Object.defineProperty(o$1, "default", {
@@ -22343,7 +21687,7 @@ var require_http_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
22343
21687
  const web_incoming_1 = require_web_incoming();
22344
21688
  const ws_incoming_1$1 = require_ws_incoming();
22345
21689
  const node_events_1 = __require("node:events");
22346
- const debug_1 = __importDefault(require_node$1());
21690
+ const debug_1 = __importDefault((init_node(), __toCommonJS(node_exports)));
22347
21691
  const common_1 = require_common();
22348
21692
  const log = (0, debug_1.default)("http-proxy-3");
22349
21693
  var ProxyServer = class ProxyServer extends node_events_1.EventEmitter {
@@ -22498,11 +21842,11 @@ var require_http_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
22498
21842
  }
22499
21843
  };
22500
21844
  exports.ProxyServer = ProxyServer;
22501
- }) });
21845
+ }));
22502
21846
 
22503
21847
  //#endregion
22504
- //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/index.js
22505
- var require_lib = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.22.0/node_modules/http-proxy-3/dist/lib/index.js": ((exports) => {
21848
+ //#region ../../node_modules/.pnpm/http-proxy-3@1.22.0_patch_hash=d89dff5a0afc2cb277080ad056a3baf7feeeeac19144878abc17f4c91ad89095_ms@2.1.3/node_modules/http-proxy-3/dist/lib/index.js
21849
+ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
22506
21850
  Object.defineProperty(exports, "__esModule", { value: true });
22507
21851
  exports.numOpenSockets = exports.ProxyServer = void 0;
22508
21852
  exports.createProxyServer = createProxyServer;
@@ -22537,7 +21881,7 @@ var require_lib = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-pr
22537
21881
  function createProxyServer(options$1 = {}) {
22538
21882
  return new index_1.ProxyServer(options$1);
22539
21883
  }
22540
- }) });
21884
+ }));
22541
21885
 
22542
21886
  //#endregion
22543
21887
  //#region src/node/server/middlewares/proxy.ts
@@ -22711,7 +22055,7 @@ function htmlFallbackMiddleware(root, spaFallback) {
22711
22055
  * Copyright(c) 2014-2016 Douglas Christopher Wilson
22712
22056
  * MIT Licensed
22713
22057
  */
22714
- var require_etag = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/etag@1.8.1/node_modules/etag/index.js": ((exports, module) => {
22058
+ var require_etag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
22715
22059
  /**
22716
22060
  * Module exports.
22717
22061
  * @public
@@ -22779,7 +22123,7 @@ var require_etag = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/etag@1
22779
22123
  var mtime = stat$4.mtime.getTime().toString(16);
22780
22124
  return "\"" + stat$4.size.toString(16) + "-" + mtime + "\"";
22781
22125
  }
22782
- }) });
22126
+ }));
22783
22127
 
22784
22128
  //#endregion
22785
22129
  //#region src/node/server/send.ts
@@ -22926,8 +22270,8 @@ function send$1(req$4, res, file, stats, headers) {
22926
22270
  if (tmp = res.getHeader("content-type")) headers["Content-Type"] = tmp;
22927
22271
  if (req$4.headers.range) {
22928
22272
  code = 206;
22929
- let [x, y$2] = req$4.headers.range.replace("bytes=", "").split("-");
22930
- let end = opts.end = parseInt(y$2, 10) || stats.size - 1;
22273
+ let [x, y] = req$4.headers.range.replace("bytes=", "").split("-");
22274
+ let end = opts.end = parseInt(y, 10) || stats.size - 1;
22931
22275
  let start = opts.start = parseInt(x, 10) || 0;
22932
22276
  if (end >= stats.size) end = stats.size - 1;
22933
22277
  if (start >= stats.size) {
@@ -23369,7 +22713,7 @@ async function handleModuleSoftInvalidation(environment, mod, timestamp) {
23369
22713
  else {
23370
22714
  await init;
23371
22715
  const source = transformResult.code;
23372
- const s$2 = new MagicString(source);
22716
+ const s = new MagicString(source);
23373
22717
  const [imports] = parse(source, mod.id || void 0);
23374
22718
  for (const imp of imports) {
23375
22719
  let rawUrl = source.slice(imp.s, imp.e);
@@ -23384,13 +22728,13 @@ async function handleModuleSoftInvalidation(environment, mod, timestamp) {
23384
22728
  const replacedUrl = injectQuery(urlWithoutTimestamp, `t=${importedMod.lastHMRTimestamp}`);
23385
22729
  const start = hasQuotes ? imp.s + 1 : imp.s;
23386
22730
  const end = hasQuotes ? imp.e - 1 : imp.e;
23387
- s$2.overwrite(start, end, replacedUrl);
22731
+ s.overwrite(start, end, replacedUrl);
23388
22732
  }
23389
22733
  if (imp.d === -1 && environment.config.dev.preTransformRequests) environment.warmupRequest(hmrUrl);
23390
22734
  break;
23391
22735
  }
23392
22736
  }
23393
- const code = s$2.toString();
22737
+ const code = s.toString();
23394
22738
  result = {
23395
22739
  ...transformResult,
23396
22740
  code,
@@ -23403,7 +22747,7 @@ async function handleModuleSoftInvalidation(environment, mod, timestamp) {
23403
22747
 
23404
22748
  //#endregion
23405
22749
  //#region ../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js
23406
- var require_js_tokens = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js": ((exports, module) => {
22750
+ var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23407
22751
  var HashbangComment, Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace;
23408
22752
  Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;
23409
22753
  Identifier = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy;
@@ -23778,7 +23122,7 @@ var require_js_tokens = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/j
23778
23122
  };
23779
23123
  }
23780
23124
  };
23781
- }) });
23125
+ }));
23782
23126
 
23783
23127
  //#endregion
23784
23128
  //#region ../../node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.mjs
@@ -24071,8 +23415,8 @@ function buildImportAnalysisPlugin(config$2) {
24071
23415
  };
24072
23416
  }
24073
23417
  }
24074
- let s$2;
24075
- const str = () => s$2 || (s$2 = new MagicString(source));
23418
+ let s;
23419
+ const str = () => s || (s = new MagicString(source));
24076
23420
  let needPreloadHelper = false;
24077
23421
  for (let index = 0; index < imports.length; index++) {
24078
23422
  const { s: start, e: end, ss: expStart, se: expEnd, d: dynamicIndex, a: attributeIndex } = imports[index];
@@ -24089,9 +23433,9 @@ function buildImportAnalysisPlugin(config$2) {
24089
23433
  }
24090
23434
  }
24091
23435
  if (needPreloadHelper && insertPreload && !source.includes(`const ${preloadMethod} =`)) str().prepend(`import { ${preloadMethod} } from "${preloadHelperId}";`);
24092
- if (s$2) return {
24093
- code: s$2.toString(),
24094
- map: this.environment.config.build.sourcemap ? s$2.generateMap({ hires: "boundary" }) : null
23436
+ if (s) return {
23437
+ code: s.toString(),
23438
+ map: this.environment.config.build.sourcemap ? s.generateMap({ hires: "boundary" }) : null
24095
23439
  };
24096
23440
  }
24097
23441
  },
@@ -24172,7 +23516,7 @@ function buildImportAnalysisPlugin(config$2) {
24172
23516
  frame: generateCodeFrame(code, loc)
24173
23517
  });
24174
23518
  }
24175
- const s$2 = new MagicString(code);
23519
+ const s = new MagicString(code);
24176
23520
  const rewroteMarkerStartPos = /* @__PURE__ */ new Set();
24177
23521
  const fileDeps = [];
24178
23522
  const addFileDep = (url$3, runtime = false) => {
@@ -24219,7 +23563,7 @@ function buildImportAnalysisPlugin(config$2) {
24219
23563
  });
24220
23564
  hasRemovedPureCssChunk = true;
24221
23565
  }
24222
- s$2.update(expStart, expEnd, "Promise.resolve({})");
23566
+ s.update(expStart, expEnd, "Promise.resolve({})");
24223
23567
  }
24224
23568
  }
24225
23569
  };
@@ -24228,7 +23572,7 @@ function buildImportAnalysisPlugin(config$2) {
24228
23572
  let markerStartPos$1 = findPreloadMarker(code, end);
24229
23573
  if (markerStartPos$1 === -1 && imports.length === 1) markerStartPos$1 = findPreloadMarker(code);
24230
23574
  if (markerStartPos$1 > 0) {
24231
- let depsArray = deps.size > 1 || hasRemovedPureCssChunk && deps.size > 0 ? modulePreload === false ? [...deps].filter((d$2) => d$2.endsWith(".css")) : [...deps] : [];
23575
+ let depsArray = deps.size > 1 || hasRemovedPureCssChunk && deps.size > 0 ? modulePreload === false ? [...deps].filter((d) => d.endsWith(".css")) : [...deps] : [];
24232
23576
  const resolveDependencies = modulePreload ? modulePreload.resolveDependencies : void 0;
24233
23577
  if (resolveDependencies && normalizedFile) {
24234
23578
  const cssDeps = [];
@@ -24245,25 +23589,25 @@ function buildImportAnalysisPlugin(config$2) {
24245
23589
  if (typeof replacement === "string") return addFileDep(replacement);
24246
23590
  return addFileDep(replacement.runtime, true);
24247
23591
  });
24248
- else renderedDeps = depsArray.map((d$2) => isRelativeBase ? addFileDep(toRelativePath(d$2, file)) : addFileDep(d$2));
24249
- s$2.update(markerStartPos$1, markerStartPos$1 + preloadMarker.length, renderedDeps.length > 0 ? `__vite__mapDeps([${renderedDeps.join(",")}])` : `[]`);
23592
+ else renderedDeps = depsArray.map((d) => isRelativeBase ? addFileDep(toRelativePath(d, file)) : addFileDep(d));
23593
+ s.update(markerStartPos$1, markerStartPos$1 + preloadMarker.length, renderedDeps.length > 0 ? `__vite__mapDeps([${renderedDeps.join(",")}])` : `[]`);
24250
23594
  rewroteMarkerStartPos.add(markerStartPos$1);
24251
23595
  }
24252
23596
  }
24253
23597
  if (fileDeps.length > 0) {
24254
23598
  const mapDepsCode = `const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=${`[${fileDeps.map((fileDep) => fileDep.runtime ? fileDep.url : JSON.stringify(fileDep.url)).join(",")}]`})))=>i.map(i=>d[i]);\n`;
24255
- if (code.startsWith("#!")) s$2.prependLeft(code.indexOf("\n") + 1, mapDepsCode);
24256
- else s$2.prepend(mapDepsCode);
23599
+ if (code.startsWith("#!")) s.prependLeft(code.indexOf("\n") + 1, mapDepsCode);
23600
+ else s.prepend(mapDepsCode);
24257
23601
  }
24258
23602
  let markerStartPos = findPreloadMarker(code);
24259
23603
  while (markerStartPos >= 0) {
24260
- if (!rewroteMarkerStartPos.has(markerStartPos)) s$2.update(markerStartPos, markerStartPos + preloadMarker.length, "void 0");
23604
+ if (!rewroteMarkerStartPos.has(markerStartPos)) s.update(markerStartPos, markerStartPos + preloadMarker.length, "void 0");
24261
23605
  markerStartPos = findPreloadMarker(code, markerStartPos + preloadMarker.length);
24262
23606
  }
24263
- if (s$2.hasChanged()) {
24264
- chunk.code = s$2.toString();
23607
+ if (s.hasChanged()) {
23608
+ chunk.code = s.toString();
24265
23609
  if (buildSourcemap && chunk.map) {
24266
- const nextMap = s$2.generateMap({
23610
+ const nextMap = s.generateMap({
24267
23611
  source: chunk.fileName,
24268
23612
  hires: "boundary"
24269
23613
  });
@@ -24414,9 +23758,9 @@ function traverseNodes(node, visitor) {
24414
23758
  if (nodeIsElement(node) || node.nodeName === "#document" || node.nodeName === "#document-fragment") node.childNodes.forEach((childNode) => traverseNodes(childNode, visitor));
24415
23759
  }
24416
23760
  async function traverseHtml(html, filePath, warn, visitor) {
24417
- const { parse: parse$17 } = await import("./dist.js");
23761
+ const { parse: parse$15 } = await import("./dist.js");
24418
23762
  const warnings = {};
24419
- traverseNodes(parse$17(html, {
23763
+ traverseNodes(parse$15(html, {
24420
23764
  scriptingEnabled: false,
24421
23765
  sourceCodeLocationInfo: true,
24422
23766
  onParseError: (e$1) => {
@@ -24451,19 +23795,19 @@ function getScriptInfo(node) {
24451
23795
  };
24452
23796
  }
24453
23797
  const attrValueStartRE = /=\s*(.)/;
24454
- function overwriteAttrValue(s$2, sourceCodeLocation, newValue) {
24455
- const srcString = s$2.slice(sourceCodeLocation.startOffset, sourceCodeLocation.endOffset);
23798
+ function overwriteAttrValue(s, sourceCodeLocation, newValue) {
23799
+ const srcString = s.slice(sourceCodeLocation.startOffset, sourceCodeLocation.endOffset);
24456
23800
  const valueStart = attrValueStartRE.exec(srcString);
24457
23801
  if (!valueStart) throw new Error(`[vite:html] internal error, failed to overwrite attribute value`);
24458
23802
  const wrapOffset = valueStart[1] === "\"" || valueStart[1] === "'" ? 1 : 0;
24459
23803
  const valueOffset = valueStart.index + valueStart[0].length - 1;
24460
- s$2.update(sourceCodeLocation.startOffset + valueOffset + wrapOffset, sourceCodeLocation.endOffset - wrapOffset, newValue);
24461
- return s$2;
23804
+ s.update(sourceCodeLocation.startOffset + valueOffset + wrapOffset, sourceCodeLocation.endOffset - wrapOffset, newValue);
23805
+ return s;
24462
23806
  }
24463
- function removeViteIgnoreAttr(s$2, sourceCodeLocation) {
23807
+ function removeViteIgnoreAttr(s, sourceCodeLocation) {
24464
23808
  const loc = sourceCodeLocation.attrs?.["vite-ignore"];
24465
- if (loc) s$2.remove(loc.startOffset, loc.endOffset);
24466
- return s$2;
23809
+ if (loc) s.remove(loc.startOffset, loc.endOffset);
23810
+ return s;
24467
23811
  }
24468
23812
  /**
24469
23813
  * Format parse5 @type {ParserError} to @type {RollupError}
@@ -24521,7 +23865,7 @@ function buildHtmlPlugin(config$2) {
24521
23865
  const lineStartOffset = startOffset - node.sourceCodeLocation.startCol;
24522
23866
  let isLineEmpty = false;
24523
23867
  try {
24524
- isLineEmpty = !s$2.slice(Math.max(0, lineStartOffset), startOffset).trim();
23868
+ isLineEmpty = !s.slice(Math.max(0, lineStartOffset), startOffset).trim();
24525
23869
  } catch {}
24526
23870
  return isLineEmpty ? lineStartOffset : startOffset;
24527
23871
  };
@@ -24530,7 +23874,7 @@ function buildHtmlPlugin(config$2) {
24530
23874
  filename: id
24531
23875
  });
24532
23876
  let js = "";
24533
- const s$2 = new MagicString(html);
23877
+ const s = new MagicString(html);
24534
23878
  const scriptUrls = [];
24535
23879
  const styleUrls = [];
24536
23880
  let inlineModuleIndex = -1;
@@ -24553,11 +23897,11 @@ function buildHtmlPlugin(config$2) {
24553
23897
  let shouldRemove = false;
24554
23898
  if (node.nodeName === "script") {
24555
23899
  const { src, srcSourceCodeLocation, isModule, isAsync, isIgnored } = getScriptInfo(node);
24556
- if (isIgnored) removeViteIgnoreAttr(s$2, node.sourceCodeLocation);
23900
+ if (isIgnored) removeViteIgnoreAttr(s, node.sourceCodeLocation);
24557
23901
  else {
24558
23902
  const url$3 = src && src.value;
24559
23903
  const isPublicFile = !!(url$3 && checkPublicFile(url$3, config$2));
24560
- if (isPublicFile) overwriteAttrValue(s$2, srcSourceCodeLocation, partialEncodeURIPath(toOutputPublicFilePath(url$3)));
23904
+ if (isPublicFile) overwriteAttrValue(s, srcSourceCodeLocation, partialEncodeURIPath(toOutputPublicFilePath(url$3)));
24561
23905
  if (isModule) {
24562
23906
  inlineModuleIndex++;
24563
23907
  if (url$3 && !isExcludedUrl(url$3) && !isPublicFile) {
@@ -24590,7 +23934,7 @@ function buildHtmlPlugin(config$2) {
24590
23934
  }
24591
23935
  const assetAttributes = getNodeAssetAttributes(node);
24592
23936
  for (const attr of assetAttributes) if (attr.type === "remove") {
24593
- s$2.remove(attr.location.startOffset, attr.location.endOffset);
23937
+ s.remove(attr.location.startOffset, attr.location.endOffset);
24594
23938
  continue;
24595
23939
  } else if (attr.type === "srcset") assetUrlsPromises.push((async () => {
24596
23940
  const processedEncodedUrl = await processSrcSet(attr.value, async ({ url: url$3 }) => {
@@ -24601,11 +23945,11 @@ function buildHtmlPlugin(config$2) {
24601
23945
  }
24602
23946
  return url$3;
24603
23947
  });
24604
- if (processedEncodedUrl !== attr.value) overwriteAttrValue(s$2, attr.location, processedEncodedUrl);
23948
+ if (processedEncodedUrl !== attr.value) overwriteAttrValue(s, attr.location, processedEncodedUrl);
24605
23949
  })());
24606
23950
  else if (attr.type === "src") {
24607
23951
  const url$3 = decodeURIIfPossible(attr.value);
24608
- if (url$3 === void 0) {} else if (checkPublicFile(url$3, config$2)) overwriteAttrValue(s$2, attr.location, partialEncodeURIPath(toOutputPublicFilePath(url$3)));
23952
+ if (url$3 === void 0) {} else if (checkPublicFile(url$3, config$2)) overwriteAttrValue(s, attr.location, partialEncodeURIPath(toOutputPublicFilePath(url$3)));
24609
23953
  else if (!isExcludedUrl(url$3)) if (node.nodeName === "link" && isCSSRequest(url$3) && !("media" in attr.attributes || "disabled" in attr.attributes)) {
24610
23954
  const importExpression = `\nimport ${JSON.stringify(url$3)}`;
24611
23955
  styleUrls.push({
@@ -24618,7 +23962,7 @@ function buildHtmlPlugin(config$2) {
24618
23962
  const shouldInline$1 = node.nodeName === "link" && attr.attributes.rel && parseRelAttr(attr.attributes.rel).some((v) => noInlineLinkRels.has(v)) ? false : void 0;
24619
23963
  assetUrlsPromises.push((async () => {
24620
23964
  const processedUrl = await processAssetUrl(url$3, shouldInline$1);
24621
- if (processedUrl !== url$3) overwriteAttrValue(s$2, attr.location, partialEncodeURIPath(processedUrl));
23965
+ if (processedUrl !== url$3) overwriteAttrValue(s, attr.location, partialEncodeURIPath(processedUrl));
24622
23966
  })());
24623
23967
  }
24624
23968
  }
@@ -24629,7 +23973,7 @@ function buildHtmlPlugin(config$2) {
24629
23973
  addToHTMLProxyCache(config$2, id.replace(normalizePath(config$2.root), ""), inlineModuleIndex, { code });
24630
23974
  js += `\nimport "${id}?html-proxy&inline-css&style-attr&index=${inlineModuleIndex}.css"`;
24631
23975
  const hash$1 = getHash(cleanUrl(id));
24632
- overwriteAttrValue(s$2, inlineStyle.location, `__VITE_INLINE_CSS__${hash$1}_${inlineModuleIndex}__`);
23976
+ overwriteAttrValue(s, inlineStyle.location, `__VITE_INLINE_CSS__${hash$1}_${inlineModuleIndex}__`);
24633
23977
  }
24634
23978
  if (node.nodeName === "style" && node.childNodes.length) {
24635
23979
  const styleNode = node.childNodes.pop();
@@ -24638,15 +23982,15 @@ function buildHtmlPlugin(config$2) {
24638
23982
  addToHTMLProxyCache(config$2, filePath, inlineModuleIndex, { code: styleNode.value });
24639
23983
  js += `\nimport "${id}?html-proxy&inline-css&index=${inlineModuleIndex}.css"`;
24640
23984
  const hash$1 = getHash(cleanUrl(id));
24641
- s$2.update(styleNode.sourceCodeLocation.startOffset, styleNode.sourceCodeLocation.endOffset, `__VITE_INLINE_CSS__${hash$1}_${inlineModuleIndex}__`);
23985
+ s.update(styleNode.sourceCodeLocation.startOffset, styleNode.sourceCodeLocation.endOffset, `__VITE_INLINE_CSS__${hash$1}_${inlineModuleIndex}__`);
24642
23986
  }
24643
- if (shouldRemove) s$2.remove(nodeStartWithLeadingWhitespace(node), node.sourceCodeLocation.endOffset);
23987
+ if (shouldRemove) s.remove(nodeStartWithLeadingWhitespace(node), node.sourceCodeLocation.endOffset);
24644
23988
  });
24645
23989
  isAsyncScriptMap.get(config$2).set(id, everyScriptIsAsync);
24646
23990
  if (someScriptsAreAsync && someScriptsAreDefer) config$2.logger.warn(`\nMixed async and defer script modules in ${id}, output script will fallback to defer. Every script, including inline ones, need to be marked as async for your output script to be async.`);
24647
23991
  await Promise.all(assetUrlsPromises);
24648
- for (const { start, end, url: url$3 } of scriptUrls) if (checkPublicFile(url$3, config$2)) s$2.update(start, end, partialEncodeURIPath(toOutputPublicFilePath(url$3)));
24649
- else if (!isExcludedUrl(url$3)) s$2.update(start, end, partialEncodeURIPath(await urlToBuiltUrl(this, url$3, id)));
23992
+ for (const { start, end, url: url$3 } of scriptUrls) if (checkPublicFile(url$3, config$2)) s.update(start, end, partialEncodeURIPath(toOutputPublicFilePath(url$3)));
23993
+ else if (!isExcludedUrl(url$3)) s.update(start, end, partialEncodeURIPath(await urlToBuiltUrl(this, url$3, id)));
24650
23994
  const resolvedStyleUrls = await Promise.all(styleUrls.map(async (styleUrl) => ({
24651
23995
  ...styleUrl,
24652
23996
  resolved: await this.resolve(styleUrl.url, id)
@@ -24655,8 +23999,8 @@ function buildHtmlPlugin(config$2) {
24655
23999
  config$2.logger.warnOnce(`\n${url$3} doesn't exist at build time, it will remain unchanged to be resolved at runtime`);
24656
24000
  const importExpression = `\nimport ${JSON.stringify(url$3)}`;
24657
24001
  js = js.replace(importExpression, "");
24658
- } else s$2.remove(start, end);
24659
- processedHtml(this).set(id, s$2.toString());
24002
+ } else s.remove(start, end);
24003
+ processedHtml(this).set(id, s.toString());
24660
24004
  const { modulePreload } = this.environment.config.build;
24661
24005
  if (modulePreload !== false && modulePreload.polyfill && (someScriptsAreAsync || someScriptsAreDefer)) js = `import "${modulePreloadPolyfillId}";\n${js}`;
24662
24006
  await Promise.all(setModuleSideEffectPromises);
@@ -24778,15 +24122,15 @@ function buildHtmlPlugin(config$2) {
24778
24122
  }]);
24779
24123
  }
24780
24124
  let match;
24781
- let s$2;
24125
+ let s;
24782
24126
  inlineCSSRE$1.lastIndex = 0;
24783
24127
  while (match = inlineCSSRE$1.exec(result)) {
24784
- s$2 ||= new MagicString(result);
24128
+ s ||= new MagicString(result);
24785
24129
  const { 0: full, 1: scopedName } = match;
24786
24130
  const cssTransformedCode = htmlProxyResult.get(scopedName);
24787
- s$2.update(match.index, match.index + full.length, cssTransformedCode);
24131
+ s.update(match.index, match.index + full.length, cssTransformedCode);
24788
24132
  }
24789
- if (s$2) result = s$2.toString();
24133
+ if (s) result = s.toString();
24790
24134
  result = await applyHtmlTransforms(result, [...normalHooks, ...postHooks], this, {
24791
24135
  path: "/" + relativeUrlPath,
24792
24136
  filename: normalizedId,
@@ -24923,7 +24267,7 @@ function injectNonceAttributeTagHook(config$2) {
24923
24267
  return async (html, { filename }) => {
24924
24268
  const nonce = config$2.html?.cspNonce;
24925
24269
  if (!nonce) return;
24926
- const s$2 = new MagicString(html);
24270
+ const s = new MagicString(html);
24927
24271
  await traverseHtml(html, filename, config$2.logger.warn, (node) => {
24928
24272
  if (!nodeIsElement(node)) return;
24929
24273
  const { nodeName, attrs, sourceCodeLocation } = node;
@@ -24931,10 +24275,10 @@ function injectNonceAttributeTagHook(config$2) {
24931
24275
  if (attrs.some(({ name }) => name === "nonce")) return;
24932
24276
  const startTagEndOffset = sourceCodeLocation.startTag.endOffset;
24933
24277
  const appendOffset = html[startTagEndOffset - 2] === "/" ? 2 : 1;
24934
- s$2.appendRight(startTagEndOffset - appendOffset, ` nonce="${nonce}"`);
24278
+ s.appendRight(startTagEndOffset - appendOffset, ` nonce="${nonce}"`);
24935
24279
  }
24936
24280
  });
24937
- return s$2.toString();
24281
+ return s.toString();
24938
24282
  };
24939
24283
  }
24940
24284
  function resolveHtmlTransforms(plugins$1) {
@@ -25342,7 +24686,7 @@ const devHtmlHook = async (html, { path: htmlPath, filename, server, originalUrl
25342
24686
  proxyModuleUrl = wrapId(proxyModulePath);
25343
24687
  }
25344
24688
  proxyModuleUrl = joinUrlSegments(decodedBase, proxyModuleUrl);
25345
- const s$2 = new MagicString(html);
24689
+ const s = new MagicString(html);
25346
24690
  let inlineModuleIndex = -1;
25347
24691
  const proxyCacheUrl = decodeURI(cleanUrl(proxyModulePath).replace(normalizePath(config$2.root), ""));
25348
24692
  const styleUrl = [];
@@ -25364,23 +24708,23 @@ const devHtmlHook = async (html, { path: htmlPath, filename, server, originalUrl
25364
24708
  });
25365
24709
  const modulePath = `${proxyModuleUrl}?html-proxy&index=${inlineModuleIndex}.${ext}`;
25366
24710
  inlineModulePaths.push(modulePath);
25367
- s$2.update(node.sourceCodeLocation.startOffset, node.sourceCodeLocation.endOffset, `<script type="module" src="${modulePath}"><\/script>`);
24711
+ s.update(node.sourceCodeLocation.startOffset, node.sourceCodeLocation.endOffset, `<script type="module" src="${modulePath}"><\/script>`);
25368
24712
  preTransformRequest(server, modulePath, decodedBase);
25369
24713
  };
25370
24714
  await traverseHtml(html, filename, config$2.logger.warn, (node) => {
25371
24715
  if (!nodeIsElement(node)) return;
25372
24716
  if (node.nodeName === "script") {
25373
24717
  const { src, srcSourceCodeLocation, isModule, isIgnored } = getScriptInfo(node);
25374
- if (isIgnored) removeViteIgnoreAttr(s$2, node.sourceCodeLocation);
24718
+ if (isIgnored) removeViteIgnoreAttr(s, node.sourceCodeLocation);
25375
24719
  else if (src) {
25376
24720
  const processedUrl = processNodeUrl(src.value, false, config$2, htmlPath, originalUrl, server, !isModule);
25377
- if (processedUrl !== src.value) overwriteAttrValue(s$2, srcSourceCodeLocation, processedUrl);
24721
+ if (processedUrl !== src.value) overwriteAttrValue(s, srcSourceCodeLocation, processedUrl);
25378
24722
  } else if (isModule && node.childNodes.length) addInlineModule(node, "js");
25379
24723
  else if (node.childNodes.length) {
25380
24724
  const scriptNode = node.childNodes[node.childNodes.length - 1];
25381
24725
  for (const { url: url$3, start, end } of extractImportExpressionFromClassicScript(scriptNode)) {
25382
24726
  const processedUrl = processNodeUrl(url$3, false, config$2, htmlPath, originalUrl);
25383
- if (processedUrl !== url$3) s$2.update(start, end, processedUrl);
24727
+ if (processedUrl !== url$3) s.update(start, end, processedUrl);
25384
24728
  }
25385
24729
  }
25386
24730
  }
@@ -25402,10 +24746,10 @@ const devHtmlHook = async (html, { path: htmlPath, filename, server, originalUrl
25402
24746
  });
25403
24747
  }
25404
24748
  const assetAttributes = getNodeAssetAttributes(node);
25405
- for (const attr of assetAttributes) if (attr.type === "remove") s$2.remove(attr.location.startOffset, attr.location.endOffset);
24749
+ for (const attr of assetAttributes) if (attr.type === "remove") s.remove(attr.location.startOffset, attr.location.endOffset);
25406
24750
  else {
25407
24751
  const processedUrl = processNodeUrl(attr.value, attr.type === "srcset", config$2, htmlPath, originalUrl);
25408
- if (processedUrl !== attr.value) overwriteAttrValue(s$2, attr.location, processedUrl);
24752
+ if (processedUrl !== attr.value) overwriteAttrValue(s, attr.location, processedUrl);
25409
24753
  }
25410
24754
  });
25411
24755
  const clientModuelGraph = server?.environments.client.moduleGraph;
@@ -25423,16 +24767,16 @@ const devHtmlHook = async (html, { path: htmlPath, filename, server, originalUrl
25423
24767
  if (result.map.mappings) await injectSourcesContent(result.map, proxyModulePath, config$2.logger);
25424
24768
  content = getCodeWithSourcemap("css", result.code, result.map);
25425
24769
  } else content = result.code;
25426
- s$2.overwrite(start, end, content);
24770
+ s.overwrite(start, end, content);
25427
24771
  }), ...inlineStyles.map(async ({ index, location: location$1, code }) => {
25428
24772
  const url$3 = `${proxyModulePath}?html-proxy&inline-css&style-attr&index=${index}.css`;
25429
24773
  const mod = await server.environments.client.moduleGraph.ensureEntryFromUrl(url$3, false);
25430
24774
  ensureWatchedFile(watcher, mod.file, config$2.root);
25431
24775
  await server?.environments.client.pluginContainer.transform(code, mod.id);
25432
24776
  const hash$1 = getHash(cleanUrl(mod.id));
25433
- overwriteAttrValue(s$2, location$1, htmlProxyResult.get(`${hash$1}_${index}`) ?? "");
24777
+ overwriteAttrValue(s, location$1, htmlProxyResult.get(`${hash$1}_${index}`) ?? "");
25434
24778
  })]);
25435
- html = s$2.toString();
24779
+ html = s.toString();
25436
24780
  return {
25437
24781
  html,
25438
24782
  tags: [{
@@ -26072,8 +25416,8 @@ async function _createServer(inlineConfig = {}, options$1) {
26072
25416
  warnFutureDeprecation(config$2, "removeServerHot");
26073
25417
  return hot;
26074
25418
  },
26075
- set hot(h$2) {
26076
- hot = h$2;
25419
+ set hot(h) {
25420
+ hot = h;
26077
25421
  },
26078
25422
  environments,
26079
25423
  get pluginContainer() {
@@ -26325,7 +25669,7 @@ function createServerCloseFn(server) {
26325
25669
  hasListened = true;
26326
25670
  });
26327
25671
  return () => new Promise((resolve$4, reject) => {
26328
- openSockets.forEach((s$2) => s$2.destroy());
25672
+ openSockets.forEach((s) => s.destroy());
26329
25673
  if (hasListened) server.close((err$2) => {
26330
25674
  if (err$2) reject(err$2);
26331
25675
  else resolve$4();
@@ -26424,6 +25768,7 @@ async function restartServer(server) {
26424
25768
  const middlewares = server.middlewares;
26425
25769
  newServer._configServerPort = server._configServerPort;
26426
25770
  newServer._currentServerPort = server._currentServerPort;
25771
+ newServer._rl = void 0;
26427
25772
  Object.assign(server, newServer);
26428
25773
  middlewares.stack = newServer.middlewares.stack;
26429
25774
  server.middlewares = middlewares;
@@ -26435,7 +25780,7 @@ async function restartServer(server) {
26435
25780
  logger.info("server restarted.", { timestamp: true });
26436
25781
  if (shortcutsOptions) {
26437
25782
  shortcutsOptions.print = false;
26438
- bindCLIShortcuts(server, shortcutsOptions);
25783
+ bindCLIShortcuts(server, shortcutsOptions, true);
26439
25784
  }
26440
25785
  }
26441
25786
  /**
@@ -26846,7 +26191,7 @@ function isNodeWithinCircularImports(node, nodeChain, currentChain = [node], tra
26846
26191
  ...[...currentChain].reverse(),
26847
26192
  ...nodeChain.slice(importerIndex, -1).reverse()
26848
26193
  ];
26849
- debugHmr(import_picocolors$15.default.yellow(`circular imports detected: `) + importChain.map((m$2) => import_picocolors$15.default.dim(m$2.url)).join(" -> "));
26194
+ debugHmr(import_picocolors$15.default.yellow(`circular imports detected: `) + importChain.map((m) => import_picocolors$15.default.dim(m.url)).join(" -> "));
26850
26195
  }
26851
26196
  return true;
26852
26197
  }
@@ -26866,7 +26211,7 @@ function handlePrunedModules(mods, { hot }) {
26866
26211
  });
26867
26212
  hot.send({
26868
26213
  type: "prune",
26869
- paths: [...mods].map((m$2) => m$2.url)
26214
+ paths: [...mods].map((m) => m.url)
26870
26215
  });
26871
26216
  }
26872
26217
  var LexerState = /* @__PURE__ */ function(LexerState$1) {
@@ -27158,7 +26503,7 @@ function definePlugin(config$2) {
27158
26503
  }
27159
26504
  const result = await replaceDefine(this.environment, code, id, define$1);
27160
26505
  if (hasDefineImportMetaEnv) {
27161
- result.code = result.code.replaceAll(getImportMetaEnvKeyRe(marker), (m$2) => "undefined".padEnd(m$2.length));
26506
+ result.code = result.code.replaceAll(getImportMetaEnvKeyRe(marker), (m) => "undefined".padEnd(m.length));
27162
26507
  if (result.code.includes(marker)) {
27163
26508
  result.code = `const ${marker} = ${importMetaEnvVal};\n` + result.code;
27164
26509
  if (result.map) {
@@ -27316,8 +26661,8 @@ async function bundleWorkerEntry(config$2, id) {
27316
26661
  ...rollupOptions,
27317
26662
  input,
27318
26663
  plugins: workerEnvironment.plugins.map((p) => injectEnvironmentToHooks(workerEnvironment, p)),
27319
- onLog(level, log$4) {
27320
- onRollupLog(level, log$4, workerEnvironment);
26664
+ onLog(level, log$3) {
26665
+ onRollupLog(level, log$3, workerEnvironment);
27321
26666
  },
27322
26667
  preserveEntrySignatures: false
27323
26668
  });
@@ -27481,29 +26826,29 @@ function webWorkerPlugin(config$2) {
27481
26826
  injectEnv = ((environment.mode === "dev" ? environment.moduleGraph : void 0)?.getModuleById(ENV_ENTRY))?.transformResult?.code || "";
27482
26827
  }
27483
26828
  if (injectEnv) {
27484
- const s$2 = new MagicString(raw);
27485
- s$2.prepend(injectEnv + ";\n");
26829
+ const s = new MagicString(raw);
26830
+ s.prepend(injectEnv + ";\n");
27486
26831
  return {
27487
- code: s$2.toString(),
27488
- map: s$2.generateMap({ hires: "boundary" })
26832
+ code: s.toString(),
26833
+ map: s.generateMap({ hires: "boundary" })
27489
26834
  };
27490
26835
  }
27491
26836
  }
27492
26837
  }
27493
26838
  },
27494
26839
  renderChunk(code, chunk, outputOptions) {
27495
- let s$2;
26840
+ let s;
27496
26841
  const result = () => {
27497
- return s$2 && {
27498
- code: s$2.toString(),
27499
- map: this.environment.config.build.sourcemap ? s$2.generateMap({ hires: "boundary" }) : null
26842
+ return s && {
26843
+ code: s.toString(),
26844
+ map: this.environment.config.build.sourcemap ? s.generateMap({ hires: "boundary" }) : null
27500
26845
  };
27501
26846
  };
27502
26847
  workerAssetUrlRE.lastIndex = 0;
27503
26848
  if (workerAssetUrlRE.test(code)) {
27504
26849
  const toRelativeRuntime = createToImportMetaURLBasedRelativeRuntime(outputOptions.format, this.environment.config.isWorker);
27505
26850
  let match;
27506
- s$2 = new MagicString(code);
26851
+ s = new MagicString(code);
27507
26852
  workerAssetUrlRE.lastIndex = 0;
27508
26853
  const workerOutputCache = workerOutputCaches.get(config$2.mainConfig || config$2);
27509
26854
  while (match = workerAssetUrlRE.exec(code)) {
@@ -27515,7 +26860,7 @@ function webWorkerPlugin(config$2) {
27515
26860
  }
27516
26861
  const replacement = toOutputFilePathInJS(this.environment, filename, "asset", chunk.fileName, "js", toRelativeRuntime);
27517
26862
  const replacementString = typeof replacement === "string" ? JSON.stringify(encodeURIPath(replacement)).slice(1, -1) : `"+${replacement.runtime}+"`;
27518
- s$2.update(match.index, match.index + full.length, replacementString);
26863
+ s.update(match.index, match.index + full.length, replacementString);
27519
26864
  }
27520
26865
  }
27521
26866
  return result();
@@ -27741,8 +27086,8 @@ function importAnalysisPlugin(config$2) {
27741
27086
  let isSelfAccepting = false;
27742
27087
  let hasEnv = false;
27743
27088
  let needQueryInjectHelper = false;
27744
- let s$2;
27745
- const str = () => s$2 || (s$2 = new MagicString(source));
27089
+ let s;
27090
+ const str = () => s || (s = new MagicString(source));
27746
27091
  let isPartiallySelfAccepting = false;
27747
27092
  const importedBindings = enablePartialAccept ? /* @__PURE__ */ new Map() : null;
27748
27093
  const toAbsoluteUrl = (url$3) => path.posix.resolve(path.posix.dirname(importerModule.url), url$3);
@@ -27843,9 +27188,9 @@ function importAnalysisPlugin(config$2) {
27843
27188
  }
27844
27189
  if (!rewriteDone) {
27845
27190
  const rewrittenUrl = JSON.stringify(url$3);
27846
- const s$3 = isDynamicImport ? start : start - 1;
27191
+ const s$1 = isDynamicImport ? start : start - 1;
27847
27192
  const e$1 = isDynamicImport ? end : end + 1;
27848
- str().overwrite(s$3, e$1, rewrittenUrl, { contentOnly: true });
27193
+ str().overwrite(s$1, e$1, rewrittenUrl, { contentOnly: true });
27849
27194
  }
27850
27195
  }
27851
27196
  const hmrUrl = unwrapId(stripBase(url$3, base));
@@ -27915,7 +27260,7 @@ function importAnalysisPlugin(config$2) {
27915
27260
  if (prunedImports) handlePrunedModules(prunedImports, environment);
27916
27261
  }
27917
27262
  debug$5?.(`${timeFrom(msAtStart)} ${import_picocolors$13.default.dim(`[${importedUrls.size} imports rewritten] ${prettifyUrl(importer, root)}`)}`);
27918
- if (s$2) return transformStableResult(s$2, importer, config$2);
27263
+ if (s) return transformStableResult(s, importer, config$2);
27919
27264
  else return source;
27920
27265
  }
27921
27266
  };
@@ -27938,9 +27283,9 @@ function createParseErrorInfo(importer, source) {
27938
27283
  showCodeFrame: !probablyBinary
27939
27284
  };
27940
27285
  }
27941
- const interopHelper = (m$2) => m$2?.__esModule ? m$2 : {
27942
- ...typeof m$2 === "object" && !Array.isArray(m$2) || typeof m$2 === "function" ? m$2 : {},
27943
- default: m$2
27286
+ const interopHelper = (m) => m?.__esModule ? m : {
27287
+ ...typeof m === "object" && !Array.isArray(m) || typeof m === "function" ? m : {},
27288
+ default: m
27944
27289
  };
27945
27290
  const interopHelperStr = interopHelper.toString().replaceAll("\n", "");
27946
27291
  function interopNamedImports(str, importSpecifier, rewrittenUrl, importIndex, importer, config$2) {
@@ -28255,7 +27600,7 @@ function workerImportMetaUrlPlugin(config$2) {
28255
27600
  transform: {
28256
27601
  filter: { code: workerImportMetaUrlRE },
28257
27602
  async handler(code, id) {
28258
- let s$2;
27603
+ let s;
28259
27604
  const cleanString = stripLiteral(code);
28260
27605
  const workerImportMetaUrlRE$1 = /\bnew\s+(?:Worker|SharedWorker)\s*\(\s*(new\s+URL\s*\(\s*('[^']+'|"[^"]+"|`[^`]+`)\s*,\s*import\.meta\.url\s*\))/dg;
28261
27606
  let match;
@@ -28263,7 +27608,7 @@ function workerImportMetaUrlPlugin(config$2) {
28263
27608
  const [[, endIndex], [expStart, expEnd], [urlStart, urlEnd]] = match.indices;
28264
27609
  const rawUrl = code.slice(urlStart, urlEnd);
28265
27610
  if (rawUrl[0] === "`" && rawUrl.includes("${")) this.error(`\`new URL(url, import.meta.url)\` is not supported in dynamic template string.`, expStart);
28266
- s$2 ||= new MagicString(code);
27611
+ s ||= new MagicString(code);
28267
27612
  const workerType = await getWorkerType(code, cleanString, endIndex);
28268
27613
  const url$3 = rawUrl.slice(1, -1);
28269
27614
  let file;
@@ -28279,7 +27624,7 @@ function workerImportMetaUrlPlugin(config$2) {
28279
27624
  file = await workerResolver(this.environment, url$3, id);
28280
27625
  file ??= url$3[0] === "/" ? slash(path.join(config$2.publicDir, url$3)) : slash(path.resolve(path.dirname(id), url$3));
28281
27626
  }
28282
- if (isBuild && config$2.isWorker && config$2.bundleChain.at(-1) === cleanUrl(file)) s$2.update(expStart, expEnd, "self.location.href");
27627
+ if (isBuild && config$2.isWorker && config$2.bundleChain.at(-1) === cleanUrl(file)) s.update(expStart, expEnd, "self.location.href");
28283
27628
  else {
28284
27629
  let builtUrl;
28285
27630
  if (isBuild) {
@@ -28290,10 +27635,10 @@ function workerImportMetaUrlPlugin(config$2) {
28290
27635
  builtUrl = await fileToUrl$1(this, cleanUrl(file));
28291
27636
  builtUrl = injectQuery(builtUrl, `${WORKER_FILE_ID}&type=${workerType}`);
28292
27637
  }
28293
- s$2.update(expStart, expEnd, `new URL(/* @vite-ignore */ ${JSON.stringify(builtUrl)}, import.meta.url)`);
27638
+ s.update(expStart, expEnd, `new URL(/* @vite-ignore */ ${JSON.stringify(builtUrl)}, import.meta.url)`);
28294
27639
  }
28295
27640
  }
28296
- if (s$2) return transformStableResult(s$2, id, config$2);
27641
+ if (s) return transformStableResult(s, id, config$2);
28297
27642
  return null;
28298
27643
  }
28299
27644
  }
@@ -28334,7 +27679,7 @@ function assetImportMetaUrlPlugin(config$2) {
28334
27679
  code: /new\s+URL.+import\.meta\.url/s
28335
27680
  },
28336
27681
  async handler(code, id) {
28337
- let s$2;
27682
+ let s;
28338
27683
  const assetImportMetaUrlRE = /\bnew\s+URL\s*\(\s*('[^']+'|"[^"]+"|`[^`]+`)\s*,\s*import\.meta\.url\s*(?:,\s*)?\)/dg;
28339
27684
  const cleanString = stripLiteral(code);
28340
27685
  let match;
@@ -28342,7 +27687,7 @@ function assetImportMetaUrlPlugin(config$2) {
28342
27687
  const [[startIndex, endIndex], [urlStart, urlEnd]] = match.indices;
28343
27688
  if (hasViteIgnoreRE.test(code.slice(startIndex, urlStart))) continue;
28344
27689
  const rawUrl = code.slice(urlStart, urlEnd);
28345
- if (!s$2) s$2 = new MagicString(code);
27690
+ if (!s) s = new MagicString(code);
28346
27691
  if (rawUrl[0] === "`" && rawUrl.includes("${")) {
28347
27692
  const queryDelimiterIndex = getQueryDelimiterIndex(rawUrl);
28348
27693
  const hasQueryDelimiter = queryDelimiterIndex !== -1;
@@ -28357,7 +27702,7 @@ function assetImportMetaUrlPlugin(config$2) {
28357
27702
  import: "default",
28358
27703
  query: injectQuery(queryString, "url")
28359
27704
  };
28360
- s$2.update(startIndex, endIndex, `new URL((import.meta.glob(${JSON.stringify(pattern)}, ${JSON.stringify(globOptions)}))[${pureUrl}], import.meta.url)`);
27705
+ s.update(startIndex, endIndex, `new URL((import.meta.glob(${JSON.stringify(pattern)}, ${JSON.stringify(globOptions)}))[${pureUrl}], import.meta.url)`);
28361
27706
  continue;
28362
27707
  }
28363
27708
  }
@@ -28392,9 +27737,9 @@ function assetImportMetaUrlPlugin(config$2) {
28392
27737
  config$2.logger.warnOnce(`\n${rawExp} doesn't exist at build time, it will remain unchanged to be resolved at runtime. If this is intended, you can use the /* @vite-ignore */ comment to suppress this warning.`);
28393
27738
  builtUrl = url$3;
28394
27739
  }
28395
- s$2.update(startIndex, endIndex, `new URL(${JSON.stringify(builtUrl)}, import.meta.url)`);
27740
+ s.update(startIndex, endIndex, `new URL(${JSON.stringify(builtUrl)}, import.meta.url)`);
28396
27741
  }
28397
- if (s$2) return transformStableResult(s$2, id, config$2);
27742
+ if (s) return transformStableResult(s, id, config$2);
28398
27743
  }
28399
27744
  }
28400
27745
  };
@@ -28596,13 +27941,13 @@ function dynamicImportVarsPlugin(config$2) {
28596
27941
  return null;
28597
27942
  }
28598
27943
  if (!imports.length) return null;
28599
- let s$2;
27944
+ let s;
28600
27945
  let needDynamicImportHelper = false;
28601
27946
  for (let index = 0; index < imports.length; index++) {
28602
27947
  const { s: start, e: end, ss: expStart, se: expEnd, d: dynamicIndex } = imports[index];
28603
27948
  if (dynamicIndex === -1 || source[start] !== "`") continue;
28604
27949
  if (hasViteIgnoreRE.test(source.slice(expStart, expEnd))) continue;
28605
- s$2 ||= new MagicString(source);
27950
+ s ||= new MagicString(source);
28606
27951
  let result;
28607
27952
  try {
28608
27953
  result = await transformDynamicImport(source.slice(start, end), importer, (id, importer$1) => resolve$4(environment, id, importer$1), config$2.root);
@@ -28613,11 +27958,11 @@ function dynamicImportVarsPlugin(config$2) {
28613
27958
  if (!result) continue;
28614
27959
  const { rawPattern, glob: glob$1 } = result;
28615
27960
  needDynamicImportHelper = true;
28616
- s$2.overwrite(expStart, expEnd, `__variableDynamicImportRuntimeHelper(${glob$1}, \`${rawPattern}\`, ${rawPattern.split("/").length})`);
27961
+ s.overwrite(expStart, expEnd, `__variableDynamicImportRuntimeHelper(${glob$1}, \`${rawPattern}\`, ${rawPattern.split("/").length})`);
28617
27962
  }
28618
- if (s$2) {
28619
- if (needDynamicImportHelper) s$2.prepend(`import __variableDynamicImportRuntimeHelper from "${dynamicImportHelperId}";`);
28620
- return transformStableResult(s$2, importer, config$2);
27963
+ if (s) {
27964
+ if (needDynamicImportHelper) s.prepend(`import __variableDynamicImportRuntimeHelper from "${dynamicImportHelperId}";`);
27965
+ return transformStableResult(s, importer, config$2);
28621
27966
  }
28622
27967
  }
28623
27968
  }
@@ -28819,7 +28164,7 @@ async function transformGlobImport(code, id, root, resolveId, restoreQueryExtens
28819
28164
  const matches$2 = await parseImportGlob(code, isVirtual ? void 0 : id, root, resolveId, logger);
28820
28165
  const matchedFiles = /* @__PURE__ */ new Set();
28821
28166
  if (!matches$2.length) return null;
28822
- const s$2 = new MagicString(code);
28167
+ const s = new MagicString(code);
28823
28168
  const staticImports = (await Promise.all(matches$2.map(async ({ globsResolved, isRelative: isRelative$1, options: options$1, index, start, end, onlyKeys, onlyValues }) => {
28824
28169
  const files = (await glob(globsResolved, {
28825
28170
  absolute: true,
@@ -28891,12 +28236,12 @@ async function transformGlobImport(code, id, root, resolveId, restoreQueryExtens
28891
28236
  if (onlyKeys) replacement = `{${objectProps.join(",")}${lineBreaks}}`;
28892
28237
  else if (onlyValues) replacement = `[${objectProps.join(",")}${lineBreaks}]`;
28893
28238
  else replacement = `/* #__PURE__ */ Object.assign({${objectProps.join(",")}${lineBreaks}})`;
28894
- s$2.overwrite(start, end, replacement);
28239
+ s.overwrite(start, end, replacement);
28895
28240
  return staticImports$1;
28896
28241
  }))).flat();
28897
- if (staticImports.length) s$2.prepend(`${staticImports.join(";")};`);
28242
+ if (staticImports.length) s.prepend(`${staticImports.join(";")};`);
28898
28243
  return {
28899
- s: s$2,
28244
+ s,
28900
28245
  matches: matches$2,
28901
28246
  files: matchedFiles
28902
28247
  };
@@ -29487,21 +28832,21 @@ var BasicMinimalPluginContext = class {
29487
28832
  this._logger = _logger;
29488
28833
  }
29489
28834
  debug(rawLog) {
29490
- const log$4 = this._normalizeRawLog(rawLog);
29491
- const msg = buildErrorMessage(log$4, [`debug: ${log$4.message}`], false);
28835
+ const log$3 = this._normalizeRawLog(rawLog);
28836
+ const msg = buildErrorMessage(log$3, [`debug: ${log$3.message}`], false);
29492
28837
  debugPluginContainerContext?.(msg);
29493
28838
  }
29494
28839
  info(rawLog) {
29495
- const log$4 = this._normalizeRawLog(rawLog);
29496
- const msg = buildErrorMessage(log$4, [`info: ${log$4.message}`], false);
28840
+ const log$3 = this._normalizeRawLog(rawLog);
28841
+ const msg = buildErrorMessage(log$3, [`info: ${log$3.message}`], false);
29497
28842
  this._logger.info(msg, {
29498
28843
  clear: true,
29499
28844
  timestamp: true
29500
28845
  });
29501
28846
  }
29502
28847
  warn(rawLog) {
29503
- const log$4 = this._normalizeRawLog(rawLog);
29504
- const msg = buildErrorMessage(log$4, [import_picocolors$11.default.yellow(`warning: ${log$4.message}`)], false);
28848
+ const log$3 = this._normalizeRawLog(rawLog);
28849
+ const msg = buildErrorMessage(log$3, [import_picocolors$11.default.yellow(`warning: ${log$3.message}`)], false);
29505
28850
  this._logger.warn(msg, {
29506
28851
  clear: true,
29507
28852
  timestamp: true
@@ -29628,16 +28973,16 @@ var PluginContext = class extends MinimalPluginContext {
29628
28973
  this._warnIncompatibleMethod(`getFileName`);
29629
28974
  return "";
29630
28975
  }
29631
- debug(log$4) {
29632
- const err$2 = this._formatLog(typeof log$4 === "function" ? log$4() : log$4);
28976
+ debug(log$3) {
28977
+ const err$2 = this._formatLog(typeof log$3 === "function" ? log$3() : log$3);
29633
28978
  super.debug(err$2);
29634
28979
  }
29635
- info(log$4) {
29636
- const err$2 = this._formatLog(typeof log$4 === "function" ? log$4() : log$4);
28980
+ info(log$3) {
28981
+ const err$2 = this._formatLog(typeof log$3 === "function" ? log$3() : log$3);
29637
28982
  super.info(err$2);
29638
28983
  }
29639
- warn(log$4, position) {
29640
- const err$2 = this._formatLog(typeof log$4 === "function" ? log$4() : log$4, position);
28984
+ warn(log$3, position) {
28985
+ const err$2 = this._formatLog(typeof log$3 === "function" ? log$3() : log$3, position);
29641
28986
  super.warn(err$2);
29642
28987
  }
29643
28988
  error(e$1, position) {
@@ -29762,10 +29107,10 @@ var TransformPluginContext = class extends LoadPluginContext {
29762
29107
  this.sourcemapChain.length = 0;
29763
29108
  return combinedMap;
29764
29109
  }
29765
- for (let m$2 of this.sourcemapChain) {
29766
- if (typeof m$2 === "string") m$2 = JSON.parse(m$2);
29767
- if (!("version" in m$2)) {
29768
- if (m$2.mappings === "") {
29110
+ for (let m of this.sourcemapChain) {
29111
+ if (typeof m === "string") m = JSON.parse(m);
29112
+ if (!("version" in m)) {
29113
+ if (m.mappings === "") {
29769
29114
  combinedMap = { mappings: "" };
29770
29115
  break;
29771
29116
  }
@@ -29773,14 +29118,14 @@ var TransformPluginContext = class extends LoadPluginContext {
29773
29118
  break;
29774
29119
  }
29775
29120
  if (!combinedMap) {
29776
- const sm = m$2;
29121
+ const sm = m;
29777
29122
  if (sm.sources.length === 1 && !sm.sources[0]) combinedMap = {
29778
29123
  ...sm,
29779
29124
  sources: [this.filename],
29780
29125
  sourcesContent: [this.originalCode]
29781
29126
  };
29782
29127
  else combinedMap = sm;
29783
- } else combinedMap = combineSourcemaps(cleanUrl(this.filename), [m$2, combinedMap]);
29128
+ } else combinedMap = combineSourcemaps(cleanUrl(this.filename), [m, combinedMap]);
29784
29129
  }
29785
29130
  if (combinedMap !== this.combinedMap) {
29786
29131
  this.combinedMap = combinedMap;
@@ -30397,7 +29742,7 @@ function cssPostPlugin(config$2) {
30397
29742
  ext
30398
29743
  }));
30399
29744
  }
30400
- let s$2;
29745
+ let s;
30401
29746
  const urlEmitTasks = [];
30402
29747
  if (code.includes("__VITE_CSS_URL__")) {
30403
29748
  let match;
@@ -30424,7 +29769,7 @@ function cssPostPlugin(config$2) {
30424
29769
  })));
30425
29770
  if (urlEmitTasks.length > 0) {
30426
29771
  const toRelativeRuntime = createToImportMetaURLBasedRelativeRuntime(opts.format, config$2.isWorker);
30427
- s$2 ||= new MagicString(code);
29772
+ s ||= new MagicString(code);
30428
29773
  for (const { cssAssetName, originalFileName, content, start, end } of urlEmitTasks) {
30429
29774
  const referenceId = this.emitFile({
30430
29775
  type: "asset",
@@ -30436,7 +29781,7 @@ function cssPostPlugin(config$2) {
30436
29781
  chunk.viteMetadata.importedAssets.add(cleanUrl(filename));
30437
29782
  const replacement = toOutputFilePathInJS(this.environment, filename, "asset", chunk.fileName, "js", toRelativeRuntime);
30438
29783
  const replacementString = typeof replacement === "string" ? JSON.stringify(encodeURIPath(replacement)).slice(1, -1) : `"+${replacement.runtime}+"`;
30439
- s$2.update(start, end, replacementString);
29784
+ s.update(start, end, replacementString);
30440
29785
  }
30441
29786
  }
30442
29787
  if (chunkCSS !== void 0) {
@@ -30475,19 +29820,19 @@ function cssPostPlugin(config$2) {
30475
29820
  } else if (code.includes(singleQuoteUseStrict)) injectionPoint = code.indexOf(singleQuoteUseStrict) + singleQuoteUseStrict.length;
30476
29821
  else if (code.includes(doubleQuoteUseStrict)) injectionPoint = code.indexOf(doubleQuoteUseStrict) + doubleQuoteUseStrict.length;
30477
29822
  else throw new Error("Injection point for inlined CSS not found");
30478
- s$2 ||= new MagicString(code);
30479
- s$2.appendRight(injectionPoint, injectCode);
29823
+ s ||= new MagicString(code);
29824
+ s.appendRight(injectionPoint, injectCode);
30480
29825
  }
30481
29826
  } else {
30482
29827
  chunkCSS = resolveAssetUrlsInCss(chunkCSS, getCssBundleName());
30483
29828
  chunkCSSMap.set(chunk.fileName, chunkCSS);
30484
29829
  }
30485
29830
  }
30486
- if (s$2) if (config$2.build.sourcemap) return {
30487
- code: s$2.toString(),
30488
- map: s$2.generateMap({ hires: "boundary" })
29831
+ if (s) if (config$2.build.sourcemap) return {
29832
+ code: s.toString(),
29833
+ map: s.generateMap({ hires: "boundary" })
30489
29834
  };
30490
- else return { code: s$2.toString() };
29835
+ else return { code: s.toString() };
30491
29836
  return null;
30492
29837
  },
30493
29838
  augmentChunkHash(chunk) {
@@ -30593,10 +29938,10 @@ function isCssScopeToRendered(cssScopeTo, renderedModules) {
30593
29938
  function getEmptyChunkReplacer(pureCssChunkNames, outputFormat) {
30594
29939
  const emptyChunkFiles = pureCssChunkNames.map((file) => escapeRegex(path.basename(file))).join("|");
30595
29940
  const emptyChunkRE = new RegExp(outputFormat === "es" ? `\\bimport\\s*["'][^"']*(?:${emptyChunkFiles})["'];` : `(\\b|,\\s*)require\\(\\s*["'][^"']*(?:${emptyChunkFiles})["']\\)(;|,)`, "g");
30596
- return (code) => code.replace(emptyChunkRE, (m$2, p1, p2) => {
30597
- if (outputFormat === "es") return `/* empty css ${"".padEnd(m$2.length - 15)}*/`;
30598
- if (p2 === ";") return `${p2}/* empty css ${"".padEnd(m$2.length - 16)}*/`;
30599
- return `${p1}/* empty css ${"".padEnd(m$2.length - 15 - p1.length)}*/`;
29941
+ return (code) => code.replace(emptyChunkRE, (m, p1, p2) => {
29942
+ if (outputFormat === "es") return `/* empty css ${"".padEnd(m.length - 15)}*/`;
29943
+ if (p2 === ";") return `${p2}/* empty css ${"".padEnd(m.length - 16)}*/`;
29944
+ return `${p1}/* empty css ${"".padEnd(m.length - 15 - p1.length)}*/`;
30600
29945
  });
30601
29946
  }
30602
29947
  const fileURLWithWindowsDriveRE = /^file:\/\/\/[a-zA-Z]:\//;
@@ -31097,24 +30442,24 @@ function resolveMinifyCssEsbuildOptions(options$1) {
31097
30442
  const atImportRE = /@import(?:\s*(?:url\([^)]*\)|"(?:[^"]|(?<=\\)")*"|'(?:[^']|(?<=\\)')*').*?|[^;]*);/g;
31098
30443
  const atCharsetRE = /@charset(?:\s*(?:"(?:[^"]|(?<=\\)")*"|'(?:[^']|(?<=\\)')*').*?|[^;]*);/g;
31099
30444
  async function hoistAtRules(css) {
31100
- const s$2 = new MagicString(css);
30445
+ const s = new MagicString(css);
31101
30446
  const cleanCss = emptyCssComments(css);
31102
30447
  let match;
31103
30448
  atImportRE.lastIndex = 0;
31104
30449
  while (match = atImportRE.exec(cleanCss)) {
31105
- s$2.remove(match.index, match.index + match[0].length);
31106
- s$2.appendLeft(0, match[0]);
30450
+ s.remove(match.index, match.index + match[0].length);
30451
+ s.appendLeft(0, match[0]);
31107
30452
  }
31108
30453
  atCharsetRE.lastIndex = 0;
31109
30454
  let foundCharset = false;
31110
30455
  while (match = atCharsetRE.exec(cleanCss)) {
31111
- s$2.remove(match.index, match.index + match[0].length);
30456
+ s.remove(match.index, match.index + match[0].length);
31112
30457
  if (!foundCharset) {
31113
- s$2.prepend(match[0]);
30458
+ s.prepend(match[0]);
31114
30459
  foundCharset = true;
31115
30460
  }
31116
30461
  }
31117
- return s$2.toString();
30462
+ return s.toString();
31118
30463
  }
31119
30464
  const loadedPreprocessorPath = {};
31120
30465
  function loadPreprocessorPath(lang, root) {
@@ -31428,7 +30773,7 @@ const makeStylWorker = (maxWorkers) => {
31428
30773
  };
31429
30774
  }, {
31430
30775
  shouldUseFake(_stylusPath, _content, _root, options$1) {
31431
- return !!(options$1.define && Object.values(options$1.define).some((d$2) => typeof d$2 === "function"));
30776
+ return !!(options$1.define && Object.values(options$1.define).some((d) => typeof d === "function"));
31432
30777
  },
31433
30778
  max: maxWorkers
31434
30779
  });
@@ -32351,9 +31696,9 @@ function esbuildScanPlugin(environment, depImports, missing, entries) {
32351
31696
  function extractImportPaths(code) {
32352
31697
  code = code.replace(multilineCommentsRE, "/* */").replace(singlelineCommentsRE, "");
32353
31698
  let js = "";
32354
- let m$2;
31699
+ let m;
32355
31700
  importsRE.lastIndex = 0;
32356
- while ((m$2 = importsRE.exec(code)) != null) js += `\nimport ${m$2[1]}`;
31701
+ while ((m = importsRE.exec(code)) != null) js += `\nimport ${m[1]}`;
32357
31702
  return js;
32358
31703
  }
32359
31704
  function shouldExternalizeDep(resolvedId, rawId) {
@@ -32466,7 +31811,7 @@ function isDepOptimizationDisabled(optimizeDeps$1) {
32466
31811
  * @deprecated the optimization process runs automatically and does not need to be called
32467
31812
  */
32468
31813
  async function optimizeDeps(config$2, force = config$2.optimizeDeps.force, asCommand = false) {
32469
- const log$4 = asCommand ? config$2.logger.info : debug$3;
31814
+ const log$3 = asCommand ? config$2.logger.info : debug$3;
32470
31815
  config$2.logger.warn(import_picocolors$7.default.yellow("manually calling optimizeDeps is deprecated. This is done automatically and does not need to be called manually."));
32471
31816
  const environment = new ScanEnvironment("client", config$2);
32472
31817
  await environment.init();
@@ -32475,7 +31820,7 @@ async function optimizeDeps(config$2, force = config$2.optimizeDeps.force, asCom
32475
31820
  const deps = await discoverProjectDependencies(environment).result;
32476
31821
  await addManuallyIncludedOptimizeDeps(environment, deps);
32477
31822
  const depsString = depsLogString(Object.keys(deps));
32478
- log$4?.(import_picocolors$7.default.green(`Optimizing dependencies:\n ${depsString}`));
31823
+ log$3?.(import_picocolors$7.default.green(`Optimizing dependencies:\n ${depsString}`));
32479
31824
  const result = await runOptimizeDeps(environment, toDiscoveredDependencies(environment, deps)).result;
32480
31825
  await result.commit();
32481
31826
  return result.metadata;
@@ -32513,7 +31858,7 @@ let firstLoadCachedDepOptimizationMetadata = true;
32513
31858
  * if it exists and pre-bundling isn't forced
32514
31859
  */
32515
31860
  async function loadCachedDepOptimizationMetadata(environment, force = environment.config.optimizeDeps.force ?? false, asCommand = false) {
32516
- const log$4 = asCommand ? environment.logger.info : debug$3;
31861
+ const log$3 = asCommand ? environment.logger.info : debug$3;
32517
31862
  if (firstLoadCachedDepOptimizationMetadata) {
32518
31863
  firstLoadCachedDepOptimizationMetadata = false;
32519
31864
  setTimeout(() => cleanupDepsCacheStaleDirs(environment.getTopLevelConfig()), 0);
@@ -32528,7 +31873,7 @@ async function loadCachedDepOptimizationMetadata(environment, force = environmen
32528
31873
  if (cachedMetadata) if (cachedMetadata.lockfileHash !== getLockfileHash(environment)) environment.logger.info("Re-optimizing dependencies because lockfile has changed", { timestamp: true });
32529
31874
  else if (cachedMetadata.configHash !== getConfigHash(environment)) environment.logger.info("Re-optimizing dependencies because vite config has changed", { timestamp: true });
32530
31875
  else {
32531
- log$4?.(`(${environment.name}) Hash is consistent. Skipping. Use --force to override.`);
31876
+ log$3?.(`(${environment.name}) Hash is consistent. Skipping. Use --force to override.`);
32532
31877
  return cachedMetadata;
32533
31878
  }
32534
31879
  } else environment.logger.info("Forced re-optimization of dependencies", { timestamp: true });
@@ -33855,7 +33200,7 @@ function completeSystemWrapPlugin() {
33855
33200
  name: "vite:force-systemjs-wrap-complete",
33856
33201
  renderChunk(code, _chunk, opts) {
33857
33202
  if (opts.format === "system") return {
33858
- code: code.replace(SystemJSWrapRE, (s$2, s1) => s$2.replace(s1, "(exports, module)")),
33203
+ code: code.replace(SystemJSWrapRE, (s, s1) => s.replace(s1, "(exports, module)")),
33859
33204
  map: null
33860
33205
  };
33861
33206
  }
@@ -34111,8 +33456,8 @@ function resolveRollupOptions(environment) {
34111
33456
  input,
34112
33457
  plugins: plugins$1,
34113
33458
  external: options$1.rollupOptions.external,
34114
- onLog(level, log$4) {
34115
- onRollupLog(level, log$4, environment);
33459
+ onLog(level, log$3) {
33460
+ onRollupLog(level, log$3, environment);
34116
33461
  }
34117
33462
  };
34118
33463
  const isSsrTargetWebworkerEnvironment = environment.name === "ssr" && environment.getTopLevelConfig().ssr?.target === "webworker";
@@ -34273,7 +33618,7 @@ function clearLine() {
34273
33618
  process.stdout.cursorTo(0);
34274
33619
  }
34275
33620
  }
34276
- function onRollupLog(level, log$4, environment) {
33621
+ function onRollupLog(level, log$3, environment) {
34277
33622
  const debugLogger = createDebugger("vite:build");
34278
33623
  const viteLog = (logLeveling, rawLogging) => {
34279
33624
  const logging = typeof rawLogging === "object" ? rawLogging : { message: rawLogging };
@@ -34307,18 +33652,18 @@ function onRollupLog(level, log$4, environment) {
34307
33652
  clearLine();
34308
33653
  const userOnLog = environment.config.build.rollupOptions?.onLog;
34309
33654
  const userOnWarn = environment.config.build.rollupOptions?.onwarn;
34310
- if (userOnLog) if (userOnWarn) userOnLog(level, log$4, normalizeUserOnWarn(userOnWarn, viteLog));
34311
- else userOnLog(level, log$4, viteLog);
34312
- else if (userOnWarn) normalizeUserOnWarn(userOnWarn, viteLog)(level, log$4);
34313
- else viteLog(level, log$4);
33655
+ if (userOnLog) if (userOnWarn) userOnLog(level, log$3, normalizeUserOnWarn(userOnWarn, viteLog));
33656
+ else userOnLog(level, log$3, viteLog);
33657
+ else if (userOnWarn) normalizeUserOnWarn(userOnWarn, viteLog)(level, log$3);
33658
+ else viteLog(level, log$3);
34314
33659
  }
34315
33660
  function normalizeUserOnWarn(userOnWarn, defaultHandler) {
34316
33661
  return (logLevel, logging) => {
34317
- if (logLevel === "warn") userOnWarn(normalizeLog(logging), (log$4) => defaultHandler("warn", typeof log$4 === "function" ? log$4() : log$4));
33662
+ if (logLevel === "warn") userOnWarn(normalizeLog(logging), (log$3) => defaultHandler("warn", typeof log$3 === "function" ? log$3() : log$3));
34318
33663
  else defaultHandler(logLevel, logging);
34319
33664
  };
34320
33665
  }
34321
- const normalizeLog = (log$4) => typeof log$4 === "string" ? { message: log$4 } : log$4;
33666
+ const normalizeLog = (log$3) => typeof log$3 === "string" ? { message: log$3 } : log$3;
34322
33667
  function resolveUserExternal(user, id, parentId, isResolved) {
34323
33668
  if (typeof user === "function") return user(id, parentId, isResolved);
34324
33669
  else if (Array.isArray(user)) return user.some((test) => isExternal(id, test));
@@ -34329,14 +33674,14 @@ function isExternal(id, test) {
34329
33674
  else return test.test(id);
34330
33675
  }
34331
33676
  function injectEnvironmentToHooks(environment, plugin) {
34332
- const { resolveId, load: load$3, transform: transform$2 } = plugin;
33677
+ const { resolveId, load: load$2, transform: transform$2 } = plugin;
34333
33678
  const clone$1 = { ...plugin };
34334
33679
  for (const hook of Object.keys(clone$1)) switch (hook) {
34335
33680
  case "resolveId":
34336
33681
  clone$1[hook] = wrapEnvironmentResolveId(environment, resolveId, plugin.name);
34337
33682
  break;
34338
33683
  case "load":
34339
- clone$1[hook] = wrapEnvironmentLoad(environment, load$3, plugin.name);
33684
+ clone$1[hook] = wrapEnvironmentLoad(environment, load$2, plugin.name);
34340
33685
  break;
34341
33686
  case "transform":
34342
33687
  clone$1[hook] = wrapEnvironmentTransform(environment, transform$2, plugin.name);
@@ -34641,7 +33986,7 @@ async function fetchModule(environment, url$3, importer, options$1 = {}) {
34641
33986
  let result = await environment.transformRequest(url$3);
34642
33987
  if (!result) throw new Error(`[vite] transform failed for module '${url$3}'${importer ? ` imported from '${importer}'` : ""}.`);
34643
33988
  if (options$1.inlineSourceMap !== false) result = inlineSourceMap(mod, result, options$1.startOffset);
34644
- if (result.code[0] === "#") result.code = result.code.replace(/^#!.*/, (s$2) => " ".repeat(s$2.length));
33989
+ if (result.code[0] === "#") result.code = result.code.replace(/^#!.*/, (s) => " ".repeat(s.length));
34645
33990
  return {
34646
33991
  code: result.code,
34647
33992
  file: mod.file,
@@ -34680,7 +34025,7 @@ function createDepsOptimizer(environment) {
34680
34025
  const { noDiscovery, holdUntilCrawlEnd } = options$1;
34681
34026
  let metadata = initDepsOptimizerMetadata(environment, sessionTimestamp);
34682
34027
  const depsOptimizer = {
34683
- init: init$3,
34028
+ init: init$2,
34684
34029
  metadata,
34685
34030
  registerMissingImport,
34686
34031
  run: () => debouncedProcessing(0),
@@ -34728,7 +34073,7 @@ function createDepsOptimizer(environment) {
34728
34073
  ]);
34729
34074
  }
34730
34075
  let inited = false;
34731
- async function init$3() {
34076
+ async function init$2() {
34732
34077
  if (inited) return;
34733
34078
  inited = true;
34734
34079
  const cachedMetadata = await loadCachedDepOptimizationMetadata(environment);
@@ -35003,13 +34348,13 @@ function createExplicitDepsOptimizer(environment) {
35003
34348
  registerMissingImport: () => {
35004
34349
  throw new Error(`Vite Internal Error: registerMissingImport is not supported in dev ${environment.name}`);
35005
34350
  },
35006
- init: init$3,
34351
+ init: init$2,
35007
34352
  run: () => {},
35008
34353
  close: async () => {},
35009
34354
  options: environment.config.optimizeDeps
35010
34355
  };
35011
34356
  let inited = false;
35012
- async function init$3() {
34357
+ async function init$2() {
35013
34358
  if (inited) return;
35014
34359
  inited = true;
35015
34360
  depsOptimizer.metadata = await optimizeExplicitEnvironmentDeps(environment);
@@ -35265,7 +34610,7 @@ var EnvironmentModuleGraph = class {
35265
34610
  this.fileToModulesMap.set(file, fileMappedModules);
35266
34611
  }
35267
34612
  const url$3 = `${FS_PREFIX}${file}`;
35268
- for (const m$2 of fileMappedModules) if ((m$2.url === url$3 || m$2.id === file) && m$2.type === "asset") return m$2;
34613
+ for (const m of fileMappedModules) if ((m.url === url$3 || m.id === file) && m.type === "asset") return m;
35269
34614
  const mod = new EnvironmentModuleNode(url$3, this.environment);
35270
34615
  mod.type = "asset";
35271
34616
  mod.file = file;
@@ -35523,12 +34868,12 @@ var DevEnvironment = class extends BaseEnvironment {
35523
34868
  this._crawlEndFinder.registerRequestProcessing(id, done);
35524
34869
  }
35525
34870
  };
35526
- function invalidateModule(environment, m$2) {
35527
- const mod = environment.moduleGraph.urlToModuleMap.get(m$2.path);
34871
+ function invalidateModule(environment, m) {
34872
+ const mod = environment.moduleGraph.urlToModuleMap.get(m.path);
35528
34873
  if (mod && mod.isSelfAccepting && mod.lastHMRTimestamp > 0 && !mod.lastHMRInvalidationReceived) {
35529
34874
  mod.lastHMRInvalidationReceived = true;
35530
- environment.logger.info(import_picocolors$1.default.yellow(`hmr invalidate `) + import_picocolors$1.default.dim(m$2.path) + (m$2.message ? ` ${m$2.message}` : ""), { timestamp: true });
35531
- updateModules(environment, getShortName(mod.file, environment.config.root), [...mod.importers], mod.lastHMRTimestamp, m$2.firstInvalidatedBy);
34875
+ environment.logger.info(import_picocolors$1.default.yellow(`hmr invalidate `) + import_picocolors$1.default.dim(m.path) + (m.message ? ` ${m.message}` : ""), { timestamp: true });
34876
+ updateModules(environment, getShortName(mod.file, environment.config.root), [...mod.importers], mod.lastHMRTimestamp, m.firstInvalidatedBy);
35532
34877
  }
35533
34878
  }
35534
34879
  const callCrawlEndIfIdleAfterMs = 50;
@@ -35844,10 +35189,10 @@ async function runnerImport(moduleId, inlineConfig) {
35844
35189
  const module$1 = await environment.runner.import(moduleId);
35845
35190
  return {
35846
35191
  module: module$1,
35847
- dependencies: [...environment.runner.evaluatedModules.urlToIdModuleMap.values()].filter((m$2) => {
35848
- if (!m$2.meta || "externalize" in m$2.meta) return false;
35849
- return m$2.exports !== module$1;
35850
- }).map((m$2) => m$2.file)
35192
+ dependencies: [...environment.runner.evaluatedModules.urlToIdModuleMap.values()].filter((m) => {
35193
+ if (!m.meta || "externalize" in m.meta) return false;
35194
+ return m.exports !== module$1;
35195
+ }).map((m) => m.file)
35851
35196
  };
35852
35197
  } finally {
35853
35198
  await environment.close();
@@ -36516,9 +35861,15 @@ async function bundleConfigFile(fileName, isESM) {
36516
35861
  }
36517
35862
  injectValues += `const ${importMetaResolveVarName} = (specifier, importer = ${importMetaUrlVarName}) => (${importMetaResolveWithCustomHookString})(specifier, importer);`;
36518
35863
  } else injectValues += `const ${importMetaResolveVarName} = (specifier, importer = ${importMetaUrlVarName}) => { throw new Error('import.meta.resolve is not supported in CJS config files') };`;
35864
+ let injectedContents;
35865
+ if (contents.startsWith("#!")) {
35866
+ let firstLineEndIndex = contents.indexOf("\n");
35867
+ if (firstLineEndIndex < 0) firstLineEndIndex = contents.length;
35868
+ injectedContents = contents.slice(0, firstLineEndIndex + 1) + injectValues + contents.slice(firstLineEndIndex + 1);
35869
+ } else injectedContents = injectValues + contents;
36519
35870
  return {
36520
35871
  loader: args.path.endsWith("ts") ? "ts" : "js",
36521
- contents: injectValues + contents
35872
+ contents: injectedContents
36522
35873
  };
36523
35874
  });
36524
35875
  }