vite 7.1.3 → 7.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/dist/node/chunks/{dep-TDFDwW_9.js → dep-BvyJBvVx.js} +2 -3
- package/dist/node/chunks/{dep-6-jTB_1O.js → dep-Cs9lwdKu.js} +2 -3
- package/dist/node/chunks/{dep-XdVlHtXy.js → dep-DCVhRpiz.js} +1 -1
- package/dist/node/chunks/{dep-C9NktISv.js → dep-DDbTn5rw.js} +1 -1
- package/dist/node/chunks/{dep-CPnzVSwg.js → dep-D_YDhiNx.js} +2 -3
- package/dist/node/chunks/{dep-Bj7gA1-0.js → dep-M_KD0XSK.js} +239 -128
- package/dist/node/chunks/{dep-D5MCzjWT.js → dep-SmwnYDP9.js} +149 -1
- package/dist/node/chunks/{dep-03SfmTdk.js → dep-cWFO4sv4.js} +2 -3
- package/dist/node/chunks/dep-yxQqhtZq.js +4 -0
- package/dist/node/cli.js +9 -10
- package/dist/node/index.d.ts +35 -28
- package/dist/node/index.js +2 -3
- package/package.json +16 -16
- package/dist/node/chunks/dep-CcFMbzqu.js +0 -150
- package/dist/node/chunks/dep-SeJl6gzM.js +0 -5
- package/dist/node/constants.js +0 -3
- /package/dist/node/chunks/{dep-CA7ICgyJ.js → dep-BuoK8Wda.js} +0 -0
- /package/dist/node/chunks/{dep-UEPspf5j.js → dep-sDKrrA4S.js} +0 -0
@@ -1,11 +1,10 @@
|
|
1
1
|
import { __commonJS, __require, __toDynamicImportESM, __toESM } from "./dep-lCKrEJQm.js";
|
2
|
-
import { LogLevels, createLogger, printServerUrls, require_picocolors } from "./dep-
|
3
|
-
import { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_INLINE_LIMIT, DEFAULT_ASSETS_RE, DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_PREVIEW_PORT, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, DEP_VERSION_RE, DEV_PROD_CONDITION, ENV_ENTRY, ENV_PUBLIC_PATH, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, METADATA_FILENAME, OPTIMIZABLE_ENTRY_RE, ROLLUP_HOOKS, SPECIAL_QUERY_RE, VERSION, VITE_PACKAGE_DIR, defaultAllowedOrigins, loopbackHosts, wildcardHosts } from "./dep-CcFMbzqu.js";
|
2
|
+
import { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_INLINE_LIMIT, DEFAULT_ASSETS_RE, DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_PREVIEW_PORT, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, DEP_VERSION_RE, DEV_PROD_CONDITION, ENV_ENTRY, ENV_PUBLIC_PATH, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, LogLevels, METADATA_FILENAME, OPTIMIZABLE_ENTRY_RE, ROLLUP_HOOKS, SPECIAL_QUERY_RE, VERSION, VITE_PACKAGE_DIR, createLogger, defaultAllowedOrigins, loopbackHosts, printServerUrls, require_picocolors, wildcardHosts } from "./dep-SmwnYDP9.js";
|
4
3
|
import { builtinModules, createRequire } from "node:module";
|
5
4
|
import { parseAst, parseAstAsync } from "rollup/parseAst";
|
6
5
|
import * as fs$1 from "node:fs";
|
7
6
|
import fs, { existsSync, promises, readFileSync } from "node:fs";
|
8
|
-
import path, { basename, dirname, extname, isAbsolute, join, normalize, posix, relative, resolve } from "node:path";
|
7
|
+
import path, { basename, dirname, extname, isAbsolute, join, normalize, posix, relative, resolve, sep } from "node:path";
|
9
8
|
import fsp, { constants } from "node:fs/promises";
|
10
9
|
import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
|
11
10
|
import { format, inspect, promisify, stripVTControlCharacters } from "node:util";
|
@@ -17,7 +16,7 @@ import os from "node:os";
|
|
17
16
|
import net from "node:net";
|
18
17
|
import childProcess, { exec, execFile, execSync } from "node:child_process";
|
19
18
|
import { promises as promises$1 } from "node:dns";
|
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, win32 } from "path";
|
19
|
+
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";
|
21
20
|
import { existsSync as existsSync$1, readFileSync as readFileSync$1, readdirSync, statSync } from "fs";
|
22
21
|
import { fdir } from "fdir";
|
23
22
|
import { gzip } from "node:zlib";
|
@@ -111,15 +110,15 @@ function promiseWithResolvers() {
|
|
111
110
|
|
112
111
|
//#endregion
|
113
112
|
//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
114
|
-
const comma = ",".charCodeAt(0);
|
115
|
-
const semicolon = ";".charCodeAt(0);
|
116
|
-
const chars$
|
117
|
-
const intToChar = new Uint8Array(64);
|
118
|
-
const charToInt = new Uint8Array(128);
|
113
|
+
const comma$1 = ",".charCodeAt(0);
|
114
|
+
const semicolon$1 = ";".charCodeAt(0);
|
115
|
+
const chars$2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
116
|
+
const intToChar$1 = new Uint8Array(64);
|
117
|
+
const charToInt$1 = new Uint8Array(128);
|
119
118
|
for (let i$1 = 0; i$1 < 64; i$1++) {
|
120
|
-
const c = chars$
|
121
|
-
intToChar[i$1] = c;
|
122
|
-
charToInt[c] = i$1;
|
119
|
+
const c = chars$2.charCodeAt(i$1);
|
120
|
+
intToChar$1[i$1] = c;
|
121
|
+
charToInt$1[c] = i$1;
|
123
122
|
}
|
124
123
|
function decodeInteger(reader, relative$3) {
|
125
124
|
let value$1 = 0;
|
@@ -127,7 +126,7 @@ function decodeInteger(reader, relative$3) {
|
|
127
126
|
let integer = 0;
|
128
127
|
do {
|
129
128
|
const c = reader.next();
|
130
|
-
integer = charToInt[c];
|
129
|
+
integer = charToInt$1[c];
|
131
130
|
value$1 |= (integer & 31) << shift;
|
132
131
|
shift += 5;
|
133
132
|
} while (integer & 32);
|
@@ -136,23 +135,23 @@ function decodeInteger(reader, relative$3) {
|
|
136
135
|
if (shouldNegate) value$1 = -2147483648 | -value$1;
|
137
136
|
return relative$3 + value$1;
|
138
137
|
}
|
139
|
-
function encodeInteger(builder, num, relative$3) {
|
138
|
+
function encodeInteger$1(builder, num, relative$3) {
|
140
139
|
let delta = num - relative$3;
|
141
140
|
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
142
141
|
do {
|
143
142
|
let clamped = delta & 31;
|
144
143
|
delta >>>= 5;
|
145
144
|
if (delta > 0) clamped |= 32;
|
146
|
-
builder.write(intToChar[clamped]);
|
145
|
+
builder.write(intToChar$1[clamped]);
|
147
146
|
} while (delta > 0);
|
148
147
|
return num;
|
149
148
|
}
|
150
149
|
function hasMoreVlq(reader, max) {
|
151
150
|
if (reader.pos >= max) return false;
|
152
|
-
return reader.peek() !== comma;
|
151
|
+
return reader.peek() !== comma$1;
|
153
152
|
}
|
154
|
-
const bufLength = 1024 * 16;
|
155
|
-
const td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
|
153
|
+
const bufLength$1 = 1024 * 16;
|
154
|
+
const td$1 = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
|
156
155
|
const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
157
156
|
return out.toString();
|
158
157
|
} } : { decode(buf) {
|
@@ -160,23 +159,23 @@ const td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder(
|
|
160
159
|
for (let i$1 = 0; i$1 < buf.length; i$1++) out += String.fromCharCode(buf[i$1]);
|
161
160
|
return out;
|
162
161
|
} };
|
163
|
-
var StringWriter = class {
|
162
|
+
var StringWriter$1 = class {
|
164
163
|
constructor() {
|
165
164
|
this.pos = 0;
|
166
165
|
this.out = "";
|
167
|
-
this.buffer = new Uint8Array(bufLength);
|
166
|
+
this.buffer = new Uint8Array(bufLength$1);
|
168
167
|
}
|
169
168
|
write(v) {
|
170
169
|
const { buffer } = this;
|
171
170
|
buffer[this.pos++] = v;
|
172
|
-
if (this.pos === bufLength) {
|
173
|
-
this.out += td.decode(buffer);
|
171
|
+
if (this.pos === bufLength$1) {
|
172
|
+
this.out += td$1.decode(buffer);
|
174
173
|
this.pos = 0;
|
175
174
|
}
|
176
175
|
}
|
177
176
|
flush() {
|
178
177
|
const { buffer, out, pos } = this;
|
179
|
-
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
178
|
+
return pos > 0 ? out + td$1.decode(buffer.subarray(0, pos)) : out;
|
180
179
|
}
|
181
180
|
};
|
182
181
|
var StringReader = class {
|
@@ -251,27 +250,27 @@ function sort(line) {
|
|
251
250
|
function sortComparator$1(a, b) {
|
252
251
|
return a[0] - b[0];
|
253
252
|
}
|
254
|
-
function encode$
|
255
|
-
const writer = new StringWriter();
|
253
|
+
function encode$2(decoded) {
|
254
|
+
const writer = new StringWriter$1();
|
256
255
|
let sourcesIndex = 0;
|
257
256
|
let sourceLine = 0;
|
258
257
|
let sourceColumn = 0;
|
259
258
|
let namesIndex = 0;
|
260
259
|
for (let i$1 = 0; i$1 < decoded.length; i$1++) {
|
261
260
|
const line = decoded[i$1];
|
262
|
-
if (i$1 > 0) writer.write(semicolon);
|
261
|
+
if (i$1 > 0) writer.write(semicolon$1);
|
263
262
|
if (line.length === 0) continue;
|
264
263
|
let genColumn = 0;
|
265
264
|
for (let j = 0; j < line.length; j++) {
|
266
265
|
const segment = line[j];
|
267
|
-
if (j > 0) writer.write(comma);
|
268
|
-
genColumn = encodeInteger(writer, segment[0], genColumn);
|
266
|
+
if (j > 0) writer.write(comma$1);
|
267
|
+
genColumn = encodeInteger$1(writer, segment[0], genColumn);
|
269
268
|
if (segment.length === 1) continue;
|
270
|
-
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
271
|
-
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
272
|
-
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
269
|
+
sourcesIndex = encodeInteger$1(writer, segment[1], sourcesIndex);
|
270
|
+
sourceLine = encodeInteger$1(writer, segment[2], sourceLine);
|
271
|
+
sourceColumn = encodeInteger$1(writer, segment[3], sourceColumn);
|
273
272
|
if (segment.length === 4) continue;
|
274
|
-
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
273
|
+
namesIndex = encodeInteger$1(writer, segment[4], namesIndex);
|
275
274
|
}
|
276
275
|
}
|
277
276
|
return writer.flush();
|
@@ -568,7 +567,7 @@ function cast$1(map$1) {
|
|
568
567
|
}
|
569
568
|
function encodedMappings(map$1) {
|
570
569
|
var _a, _b;
|
571
|
-
return (_b = (_a = cast$1(map$1))._encoded) != null ? _b : _a._encoded = encode$
|
570
|
+
return (_b = (_a = cast$1(map$1))._encoded) != null ? _b : _a._encoded = encode$2(cast$1(map$1)._decoded);
|
572
571
|
}
|
573
572
|
function decodedMappings(map$1) {
|
574
573
|
var _a;
|
@@ -714,7 +713,7 @@ function toDecodedMap(map$1) {
|
|
714
713
|
}
|
715
714
|
function toEncodedMap(map$1) {
|
716
715
|
const decoded = toDecodedMap(map$1);
|
717
|
-
return Object.assign({}, decoded, { mappings: encode$
|
716
|
+
return Object.assign({}, decoded, { mappings: encode$2(decoded.mappings) });
|
718
717
|
}
|
719
718
|
function addSegmentInternal(skipable, map$1, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
720
719
|
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names } = cast2(map$1);
|
@@ -1574,7 +1573,7 @@ function walk$2(ast, { enter, leave }) {
|
|
1574
1573
|
}
|
1575
1574
|
|
1576
1575
|
//#endregion
|
1577
|
-
//#region ../../node_modules/.pnpm/@rollup+pluginutils@5.
|
1576
|
+
//#region ../../node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.43.0/node_modules/@rollup/pluginutils/dist/es/index.js
|
1578
1577
|
const extractors = {
|
1579
1578
|
ArrayPattern(names, param) {
|
1580
1579
|
for (const element of param.elements) if (element) extractors[element.type](names, element);
|
@@ -3009,7 +3008,84 @@ var require_commondir = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/c
|
|
3009
3008
|
}) });
|
3010
3009
|
|
3011
3010
|
//#endregion
|
3012
|
-
//#region ../../node_modules/.pnpm
|
3011
|
+
//#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
3012
|
+
var comma = ",".charCodeAt(0);
|
3013
|
+
var semicolon = ";".charCodeAt(0);
|
3014
|
+
var chars$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
3015
|
+
var intToChar = new Uint8Array(64);
|
3016
|
+
var charToInt = new Uint8Array(128);
|
3017
|
+
for (let i$1 = 0; i$1 < chars$1.length; i$1++) {
|
3018
|
+
const c = chars$1.charCodeAt(i$1);
|
3019
|
+
intToChar[i$1] = c;
|
3020
|
+
charToInt[c] = i$1;
|
3021
|
+
}
|
3022
|
+
function encodeInteger(builder, num, relative$3) {
|
3023
|
+
let delta = num - relative$3;
|
3024
|
+
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
3025
|
+
do {
|
3026
|
+
let clamped = delta & 31;
|
3027
|
+
delta >>>= 5;
|
3028
|
+
if (delta > 0) clamped |= 32;
|
3029
|
+
builder.write(intToChar[clamped]);
|
3030
|
+
} while (delta > 0);
|
3031
|
+
return num;
|
3032
|
+
}
|
3033
|
+
var bufLength = 1024 * 16;
|
3034
|
+
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
|
3035
|
+
const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
3036
|
+
return out.toString();
|
3037
|
+
} } : { decode(buf) {
|
3038
|
+
let out = "";
|
3039
|
+
for (let i$1 = 0; i$1 < buf.length; i$1++) out += String.fromCharCode(buf[i$1]);
|
3040
|
+
return out;
|
3041
|
+
} };
|
3042
|
+
var StringWriter = class {
|
3043
|
+
constructor() {
|
3044
|
+
this.pos = 0;
|
3045
|
+
this.out = "";
|
3046
|
+
this.buffer = new Uint8Array(bufLength);
|
3047
|
+
}
|
3048
|
+
write(v) {
|
3049
|
+
const { buffer } = this;
|
3050
|
+
buffer[this.pos++] = v;
|
3051
|
+
if (this.pos === bufLength) {
|
3052
|
+
this.out += td.decode(buffer);
|
3053
|
+
this.pos = 0;
|
3054
|
+
}
|
3055
|
+
}
|
3056
|
+
flush() {
|
3057
|
+
const { buffer, out, pos } = this;
|
3058
|
+
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
3059
|
+
}
|
3060
|
+
};
|
3061
|
+
function encode$1(decoded) {
|
3062
|
+
const writer = new StringWriter();
|
3063
|
+
let sourcesIndex = 0;
|
3064
|
+
let sourceLine = 0;
|
3065
|
+
let sourceColumn = 0;
|
3066
|
+
let namesIndex = 0;
|
3067
|
+
for (let i$1 = 0; i$1 < decoded.length; i$1++) {
|
3068
|
+
const line = decoded[i$1];
|
3069
|
+
if (i$1 > 0) writer.write(semicolon);
|
3070
|
+
if (line.length === 0) continue;
|
3071
|
+
let genColumn = 0;
|
3072
|
+
for (let j = 0; j < line.length; j++) {
|
3073
|
+
const segment = line[j];
|
3074
|
+
if (j > 0) writer.write(comma);
|
3075
|
+
genColumn = encodeInteger(writer, segment[0], genColumn);
|
3076
|
+
if (segment.length === 1) continue;
|
3077
|
+
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
3078
|
+
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
3079
|
+
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
3080
|
+
if (segment.length === 4) continue;
|
3081
|
+
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
3082
|
+
}
|
3083
|
+
}
|
3084
|
+
return writer.flush();
|
3085
|
+
}
|
3086
|
+
|
3087
|
+
//#endregion
|
3088
|
+
//#region ../../node_modules/.pnpm/magic-string@0.30.18/node_modules/magic-string/dist/magic-string.es.mjs
|
3013
3089
|
var BitSet = class BitSet {
|
3014
3090
|
constructor(arg) {
|
3015
3091
|
this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
|
@@ -3784,10 +3860,13 @@ var MagicString = class MagicString {
|
|
3784
3860
|
_split(index) {
|
3785
3861
|
if (this.byStart[index] || this.byEnd[index]) return;
|
3786
3862
|
let chunk = this.lastSearchedChunk;
|
3863
|
+
let previousChunk = chunk;
|
3787
3864
|
const searchForward = index > chunk.end;
|
3788
3865
|
while (chunk) {
|
3789
3866
|
if (chunk.contains(index)) return this._splitChunk(chunk, index);
|
3790
3867
|
chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
|
3868
|
+
if (chunk === previousChunk) return;
|
3869
|
+
previousChunk = chunk;
|
3791
3870
|
}
|
3792
3871
|
}
|
3793
3872
|
_splitChunk(chunk, index) {
|
@@ -4315,7 +4394,7 @@ function getEsImportProxy(id, defaultIsModuleExports, moduleSideEffects) {
|
|
4315
4394
|
};
|
4316
4395
|
}
|
4317
4396
|
function getCandidatesForExtension(resolved, extension$1) {
|
4318
|
-
return [resolved + extension$1, `${resolved}${sep}index${extension$1}`];
|
4397
|
+
return [resolved + extension$1, `${resolved}${sep$1}index${extension$1}`];
|
4319
4398
|
}
|
4320
4399
|
function getCandidates(resolved, extensions$1) {
|
4321
4400
|
return extensions$1.reduce((paths, extension$1) => paths.concat(getCandidatesForExtension(resolved, extension$1)), [resolved]);
|
@@ -5735,7 +5814,7 @@ function findUp(dir, { resolve: resolve$4, reject, promise }, options$1) {
|
|
5735
5814
|
* @property {boolean} err - error flag
|
5736
5815
|
* @property {string[]} configNames - config file names
|
5737
5816
|
*/
|
5738
|
-
const sep$
|
5817
|
+
const sep$3 = path.sep;
|
5739
5818
|
|
5740
5819
|
//#endregion
|
5741
5820
|
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/to-json.js
|
@@ -6539,7 +6618,7 @@ async function reloadOnTsconfigChange(server, changedFile) {
|
|
6539
6618
|
}
|
6540
6619
|
|
6541
6620
|
//#endregion
|
6542
|
-
//#region ../../node_modules/.pnpm/artichokie@0.
|
6621
|
+
//#region ../../node_modules/.pnpm/artichokie@0.4.0/node_modules/artichokie/dist/index.js
|
6543
6622
|
const AsyncFunction = async function() {}.constructor;
|
6544
6623
|
const codeToDataUrl = (code) => `data:application/javascript,${encodeURIComponent(code + "\n//# sourceURL=[worker-eval(artichokie)]")}`;
|
6545
6624
|
const viteSsrDynamicImport = "__vite_ssr_dynamic_import__";
|
@@ -6560,7 +6639,7 @@ var Worker$1 = class {
|
|
6560
6639
|
_queue;
|
6561
6640
|
constructor(fn, options$1 = {}) {
|
6562
6641
|
this._isModule = options$1.type === "module";
|
6563
|
-
this._code = genWorkerCode(fn, this._isModule, options$1.parentFunctions ?? {});
|
6642
|
+
this._code = genWorkerCode(fn, this._isModule, 5 * 1e3, options$1.parentFunctions ?? {});
|
6564
6643
|
this._parentFunctions = options$1.parentFunctions ?? {};
|
6565
6644
|
const defaultMax = Math.max(1, (os.availableParallelism?.() ?? os.cpus().length) - 1);
|
6566
6645
|
this._max = options$1.max || defaultMax;
|
@@ -6714,15 +6793,27 @@ function createParentFunctionResponder(parentFunctions) {
|
|
6714
6793
|
}
|
6715
6794
|
};
|
6716
6795
|
}
|
6717
|
-
function genWorkerCode(fn, isModule, parentFunctions) {
|
6718
|
-
const createLock = (lockState) => {
|
6796
|
+
function genWorkerCode(fn, isModule, waitTimeout, parentFunctions) {
|
6797
|
+
const createLock = (performance$2, lockState) => {
|
6719
6798
|
return {
|
6720
6799
|
lock: () => {
|
6721
6800
|
Atomics.store(lockState, 0, 1);
|
6722
6801
|
},
|
6723
6802
|
waitUnlock: () => {
|
6724
|
-
|
6725
|
-
|
6803
|
+
let utilizationBefore;
|
6804
|
+
while (true) {
|
6805
|
+
const status$1 = Atomics.wait(lockState, 0, 1, waitTimeout);
|
6806
|
+
if (status$1 === "timed-out") {
|
6807
|
+
if (utilizationBefore === void 0) {
|
6808
|
+
utilizationBefore = performance$2.eventLoopUtilization();
|
6809
|
+
continue;
|
6810
|
+
}
|
6811
|
+
utilizationBefore = performance$2.eventLoopUtilization(utilizationBefore);
|
6812
|
+
if (utilizationBefore.utilization > .9) continue;
|
6813
|
+
throw new Error(status$1);
|
6814
|
+
}
|
6815
|
+
break;
|
6816
|
+
}
|
6726
6817
|
}
|
6727
6818
|
};
|
6728
6819
|
};
|
@@ -6768,13 +6859,15 @@ function genWorkerCode(fn, isModule, parentFunctions) {
|
|
6768
6859
|
const fnString = fn.toString().replaceAll(viteSsrDynamicImport, "import");
|
6769
6860
|
return `
|
6770
6861
|
${isModule ? "import { parentPort, receiveMessageOnPort, workerData } from 'worker_threads'" : "const { parentPort, receiveMessageOnPort, workerData } = require('worker_threads')"}
|
6862
|
+
${isModule ? "import { performance } from 'node:perf_hooks'" : "const { performance } = require('node:perf_hooks')"}
|
6771
6863
|
const [parentFunctionSyncMessagePort, parentFunctionAsyncMessagePort, lockState] = workerData
|
6864
|
+
const waitTimeout = ${waitTimeout}
|
6772
6865
|
const createLock = ${createLock.toString()}
|
6773
6866
|
const parentFunctionRequester = (${createParentFunctionRequester.toString()})(
|
6774
6867
|
parentFunctionSyncMessagePort,
|
6775
6868
|
parentFunctionAsyncMessagePort,
|
6776
6869
|
receiveMessageOnPort,
|
6777
|
-
createLock(lockState)
|
6870
|
+
createLock(performance, lockState)
|
6778
6871
|
)
|
6779
6872
|
|
6780
6873
|
const doWorkPromise = (async () => {
|
@@ -8016,7 +8109,7 @@ var require_convert_source_map = /* @__PURE__ */ __commonJS({ "../../node_module
|
|
8016
8109
|
}) });
|
8017
8110
|
|
8018
8111
|
//#endregion
|
8019
|
-
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.
|
8112
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.35/node_modules/@rolldown/pluginutils/dist/index.js
|
8020
8113
|
/**
|
8021
8114
|
* Constructs a RegExp that matches the exact string specified.
|
8022
8115
|
*
|
@@ -8492,8 +8585,8 @@ var require_src$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lilco
|
|
8492
8585
|
}) });
|
8493
8586
|
|
8494
8587
|
//#endregion
|
8495
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.
|
8496
|
-
var require_req = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.
|
8588
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/req.js
|
8589
|
+
var require_req = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/req.js": ((exports, module) => {
|
8497
8590
|
const { createRequire: createRequire$2 } = __require("node:module");
|
8498
8591
|
const { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = __require("node:url");
|
8499
8592
|
const TS_EXT_RE = /\.[mc]?ts$/;
|
@@ -8535,8 +8628,8 @@ var require_req = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss
|
|
8535
8628
|
}) });
|
8536
8629
|
|
8537
8630
|
//#endregion
|
8538
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.
|
8539
|
-
var require_options = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.
|
8631
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/options.js
|
8632
|
+
var require_options = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/options.js": ((exports, module) => {
|
8540
8633
|
const req$2 = require_req();
|
8541
8634
|
/**
|
8542
8635
|
* Load Options
|
@@ -8570,8 +8663,8 @@ var require_options = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pos
|
|
8570
8663
|
}) });
|
8571
8664
|
|
8572
8665
|
//#endregion
|
8573
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.
|
8574
|
-
var require_plugins = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.
|
8666
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/plugins.js
|
8667
|
+
var require_plugins = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/plugins.js": ((exports, module) => {
|
8575
8668
|
const req$1 = require_req();
|
8576
8669
|
/**
|
8577
8670
|
* Plugin Loader
|
@@ -8625,8 +8718,8 @@ var require_plugins = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pos
|
|
8625
8718
|
}) });
|
8626
8719
|
|
8627
8720
|
//#endregion
|
8628
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.
|
8629
|
-
var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.
|
8721
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/index.js
|
8722
|
+
var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_yaml@2.8.1/node_modules/postcss-load-config/src/index.js": ((exports, module) => {
|
8630
8723
|
const { resolve: resolve$2 } = __require("node:path");
|
8631
8724
|
const config$1 = require_src$1();
|
8632
8725
|
const loadOptions = require_options();
|
@@ -8986,13 +9079,13 @@ function stringifyQuery(query) {
|
|
8986
9079
|
const protocolRelative = Symbol.for("ufo:protocolRelative");
|
8987
9080
|
|
8988
9081
|
//#endregion
|
8989
|
-
//#region ../../node_modules/.pnpm/mlly@1.
|
9082
|
+
//#region ../../node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.mjs
|
8990
9083
|
const BUILTIN_MODULES = new Set(builtinModules);
|
8991
9084
|
function clearImports(imports) {
|
8992
|
-
return (imports || "").replace(
|
9085
|
+
return (imports || "").replace(/\/\/[^\n]*\n|\/\*.*\*\//g, "").replace(/\s+/g, " ");
|
8993
9086
|
}
|
8994
9087
|
function getImportNames(cleanedImports) {
|
8995
|
-
const topLevelImports = cleanedImports.replace(/{
|
9088
|
+
const topLevelImports = cleanedImports.replace(/{[^}]*}/, "");
|
8996
9089
|
const namespacedImport = topLevelImports.match(/\* as \s*(\S*)/)?.[1];
|
8997
9090
|
const defaultImport = topLevelImports.split(",").find((index) => !/[*{}]/.test(index))?.trim() || void 0;
|
8998
9091
|
return {
|
@@ -9337,9 +9430,9 @@ const { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes$1;
|
|
9337
9430
|
const { ERR_UNKNOWN_FILE_EXTENSION } = codes$1;
|
9338
9431
|
const hasOwnProperty$2 = {}.hasOwnProperty;
|
9339
9432
|
const RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
|
9340
|
-
const {
|
9433
|
+
const { ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST } = codes$1;
|
9341
9434
|
const own = {}.hasOwnProperty;
|
9342
|
-
const ESM_STATIC_IMPORT_RE = /(?<=\s|^|;|\})import\s*([\s"']*(?<imports>[\p{L}\p{M}\w\t\n\r $*,/{}@.]+)from\s*)?["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gmu;
|
9435
|
+
const ESM_STATIC_IMPORT_RE = /(?<=\s|^|;|\})import\s*(?:[\s"']*(?<imports>[\p{L}\p{M}\w\t\n\r $*,/{}@.]+)from\s*)?["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gmu;
|
9343
9436
|
const TYPE_RE = /^\s*?type\s/;
|
9344
9437
|
function parseStaticImport(matched) {
|
9345
9438
|
const cleanedImports = clearImports(matched.imports);
|
@@ -9359,7 +9452,7 @@ function parseStaticImport(matched) {
|
|
9359
9452
|
namedImports
|
9360
9453
|
};
|
9361
9454
|
}
|
9362
|
-
const ESM_RE = /([\s;]|^)(import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m;
|
9455
|
+
const ESM_RE = /(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m;
|
9363
9456
|
const COMMENT_RE = /\/\*.+?\*\/|\/\/.*(?=[nr])/g;
|
9364
9457
|
function hasESMSyntax(code, opts = {}) {
|
9365
9458
|
if (opts.stripComments) code = code.replace(COMMENT_RE, "");
|
@@ -12224,11 +12317,11 @@ function throwFileNotFoundInOptimizedDep(id) {
|
|
12224
12317
|
}
|
12225
12318
|
|
12226
12319
|
//#endregion
|
12227
|
-
//#region ../../node_modules/.pnpm/dotenv@17.2.
|
12228
|
-
var require_package = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv@17.2.
|
12320
|
+
//#region ../../node_modules/.pnpm/dotenv@17.2.2/node_modules/dotenv/package.json
|
12321
|
+
var require_package = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv@17.2.2/node_modules/dotenv/package.json": ((exports, module) => {
|
12229
12322
|
module.exports = {
|
12230
12323
|
"name": "dotenv",
|
12231
|
-
"version": "17.2.
|
12324
|
+
"version": "17.2.2",
|
12232
12325
|
"description": "Loads environment variables from .env file",
|
12233
12326
|
"main": "lib/main.js",
|
12234
12327
|
"types": "lib/main.d.ts",
|
@@ -12287,8 +12380,8 @@ var require_package = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dot
|
|
12287
12380
|
}) });
|
12288
12381
|
|
12289
12382
|
//#endregion
|
12290
|
-
//#region ../../node_modules/.pnpm/dotenv@17.2.
|
12291
|
-
var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv@17.2.
|
12383
|
+
//#region ../../node_modules/.pnpm/dotenv@17.2.2/node_modules/dotenv/lib/main.js
|
12384
|
+
var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv@17.2.2/node_modules/dotenv/lib/main.js": ((exports, module) => {
|
12292
12385
|
const fs$10 = __require("fs");
|
12293
12386
|
const path$10 = __require("path");
|
12294
12387
|
const os$3 = __require("os");
|
@@ -12565,8 +12658,8 @@ var require_main$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dote
|
|
12565
12658
|
}) });
|
12566
12659
|
|
12567
12660
|
//#endregion
|
12568
|
-
//#region ../../node_modules/.pnpm/dotenv-expand@12.0.
|
12569
|
-
var require_main = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dotenv-expand@12.0.
|
12661
|
+
//#region ../../node_modules/.pnpm/dotenv-expand@12.0.3_patch_hash=49330a663821151418e003e822a82a6a61d2f0f8a6e3cab00c1c94815a112889/node_modules/dotenv-expand/lib/main.js
|
12662
|
+
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) => {
|
12570
12663
|
function _resolveEscapeSequences(value$1) {
|
12571
12664
|
return value$1.replace(/\\\$/g, "$");
|
12572
12665
|
}
|
@@ -15681,7 +15774,7 @@ var require_expand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
15681
15774
|
|
15682
15775
|
//#endregion
|
15683
15776
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
15684
|
-
var require_constants$
|
15777
|
+
var require_constants$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js": ((exports, module) => {
|
15685
15778
|
module.exports = {
|
15686
15779
|
MAX_LENGTH: 1e4,
|
15687
15780
|
CHAR_0: "0",
|
@@ -15738,7 +15831,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
15738
15831
|
/**
|
15739
15832
|
* Constants
|
15740
15833
|
*/
|
15741
|
-
const { MAX_LENGTH, CHAR_BACKSLASH, CHAR_BACKTICK, CHAR_COMMA, CHAR_DOT, CHAR_LEFT_PARENTHESES, CHAR_RIGHT_PARENTHESES, CHAR_LEFT_CURLY_BRACE, CHAR_RIGHT_CURLY_BRACE, CHAR_LEFT_SQUARE_BRACKET, CHAR_RIGHT_SQUARE_BRACKET, CHAR_DOUBLE_QUOTE, CHAR_SINGLE_QUOTE, CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = require_constants$
|
15834
|
+
const { MAX_LENGTH, CHAR_BACKSLASH, CHAR_BACKTICK, CHAR_COMMA, CHAR_DOT, CHAR_LEFT_PARENTHESES, CHAR_RIGHT_PARENTHESES, CHAR_LEFT_CURLY_BRACE, CHAR_RIGHT_CURLY_BRACE, CHAR_LEFT_SQUARE_BRACKET, CHAR_RIGHT_SQUARE_BRACKET, CHAR_DOUBLE_QUOTE, CHAR_SINGLE_QUOTE, CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = require_constants$2();
|
15742
15835
|
/**
|
15743
15836
|
* parse
|
15744
15837
|
*/
|
@@ -16434,8 +16527,8 @@ var require_is_binary_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
16434
16527
|
|
16435
16528
|
//#endregion
|
16436
16529
|
//#region ../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/constants.js
|
16437
|
-
var require_constants$
|
16438
|
-
const { sep: sep$
|
16530
|
+
var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/chokidar@3.6.0_patch_hash=8a4f9e2b397e6034b91a0508faae3cecb97f222313faa129d7cb0eb71e9d0e84/node_modules/chokidar/lib/constants.js": ((exports) => {
|
16531
|
+
const { sep: sep$2 } = __require("path");
|
16439
16532
|
const { platform: platform$1 } = process;
|
16440
16533
|
const os$2 = __require("os");
|
16441
16534
|
exports.EV_ALL = "all";
|
@@ -16468,7 +16561,7 @@ var require_constants$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
16468
16561
|
exports.KEY_ERR,
|
16469
16562
|
exports.KEY_RAW
|
16470
16563
|
];
|
16471
|
-
exports.DOT_SLASH = `.${sep$
|
16564
|
+
exports.DOT_SLASH = `.${sep$2}`;
|
16472
16565
|
exports.BACK_SLASH_RE = /\\/g;
|
16473
16566
|
exports.DOUBLE_SLASH_RE = /\/\//;
|
16474
16567
|
exports.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
|
@@ -16504,7 +16597,7 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
16504
16597
|
const sysPath$2 = __require("path");
|
16505
16598
|
const { promisify: promisify$3 } = __require("util");
|
16506
16599
|
const isBinaryPath = require_is_binary_path();
|
16507
|
-
const { isWindows: isWindows$3, isLinux, EMPTY_FN: EMPTY_FN$2, EMPTY_STR: EMPTY_STR$1, KEY_LISTENERS, KEY_ERR, KEY_RAW, HANDLER_KEYS, EV_CHANGE: EV_CHANGE$2, EV_ADD: EV_ADD$2, EV_ADD_DIR: EV_ADD_DIR$2, EV_ERROR: EV_ERROR$2, STR_DATA: STR_DATA$1, STR_END: STR_END$2, BRACE_START: BRACE_START$1, STAR } = require_constants$
|
16600
|
+
const { isWindows: isWindows$3, isLinux, EMPTY_FN: EMPTY_FN$2, EMPTY_STR: EMPTY_STR$1, KEY_LISTENERS, KEY_ERR, KEY_RAW, HANDLER_KEYS, EV_CHANGE: EV_CHANGE$2, EV_ADD: EV_ADD$2, EV_ADD_DIR: EV_ADD_DIR$2, EV_ERROR: EV_ERROR$2, STR_DATA: STR_DATA$1, STR_END: STR_END$2, BRACE_START: BRACE_START$1, STAR } = require_constants$1();
|
16508
16601
|
const THROTTLE_MODE_WATCH = "watch";
|
16509
16602
|
const open$1 = promisify$3(fs$8.open);
|
16510
16603
|
const stat$2 = promisify$3(fs$8.stat);
|
@@ -16981,7 +17074,7 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
16981
17074
|
if (maj$1 === 8 && min$1 < 16) fsevents = void 0;
|
16982
17075
|
}
|
16983
17076
|
}
|
16984
|
-
const { EV_ADD: EV_ADD$1, EV_CHANGE: EV_CHANGE$1, EV_ADD_DIR: EV_ADD_DIR$1, EV_UNLINK: EV_UNLINK$1, EV_ERROR: EV_ERROR$1, STR_DATA, STR_END: STR_END$1, FSEVENT_CREATED, FSEVENT_MODIFIED, FSEVENT_DELETED, FSEVENT_MOVED, FSEVENT_UNKNOWN, FSEVENT_FLAG_MUST_SCAN_SUBDIRS, FSEVENT_TYPE_FILE, FSEVENT_TYPE_DIRECTORY, FSEVENT_TYPE_SYMLINK, ROOT_GLOBSTAR, DIR_SUFFIX, DOT_SLASH, FUNCTION_TYPE: FUNCTION_TYPE$1, EMPTY_FN: EMPTY_FN$1, IDENTITY_FN } = require_constants$
|
17077
|
+
const { EV_ADD: EV_ADD$1, EV_CHANGE: EV_CHANGE$1, EV_ADD_DIR: EV_ADD_DIR$1, EV_UNLINK: EV_UNLINK$1, EV_ERROR: EV_ERROR$1, STR_DATA, STR_END: STR_END$1, FSEVENT_CREATED, FSEVENT_MODIFIED, FSEVENT_DELETED, FSEVENT_MOVED, FSEVENT_UNKNOWN, FSEVENT_FLAG_MUST_SCAN_SUBDIRS, FSEVENT_TYPE_FILE, FSEVENT_TYPE_DIRECTORY, FSEVENT_TYPE_SYMLINK, ROOT_GLOBSTAR, DIR_SUFFIX, DOT_SLASH, FUNCTION_TYPE: FUNCTION_TYPE$1, EMPTY_FN: EMPTY_FN$1, IDENTITY_FN } = require_constants$1();
|
16985
17078
|
const Depth = (value$1) => isNaN(value$1) ? {} : { depth: value$1 };
|
16986
17079
|
const stat$1 = promisify$2(fs$7.stat);
|
16987
17080
|
const lstat = promisify$2(fs$7.lstat);
|
@@ -17315,7 +17408,7 @@ var require_chokidar = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ch
|
|
17315
17408
|
const normalizePath$1 = require_normalize_path();
|
17316
17409
|
const NodeFsHandler = require_nodefs_handler();
|
17317
17410
|
const FsEventsHandler = require_fsevents_handler();
|
17318
|
-
const { EV_ALL, EV_READY, EV_ADD, EV_CHANGE, EV_UNLINK, EV_ADD_DIR, EV_UNLINK_DIR, EV_RAW, EV_ERROR, STR_CLOSE, STR_END, BACK_SLASH_RE, DOUBLE_SLASH_RE, SLASH_OR_BACK_SLASH_RE, DOT_RE, REPLACER_RE, SLASH, SLASH_SLASH, BRACE_START, BANG, ONE_DOT, TWO_DOTS, GLOBSTAR, SLASH_GLOBSTAR, ANYMATCH_OPTS, STRING_TYPE, FUNCTION_TYPE, EMPTY_STR, EMPTY_FN, isWindows: isWindows$2, isMacos, isIBMi } = require_constants$
|
17411
|
+
const { EV_ALL, EV_READY, EV_ADD, EV_CHANGE, EV_UNLINK, EV_ADD_DIR, EV_UNLINK_DIR, EV_RAW, EV_ERROR, STR_CLOSE, STR_END, BACK_SLASH_RE, DOUBLE_SLASH_RE, SLASH_OR_BACK_SLASH_RE, DOT_RE, REPLACER_RE, SLASH, SLASH_SLASH, BRACE_START, BANG, ONE_DOT, TWO_DOTS, GLOBSTAR, SLASH_GLOBSTAR, ANYMATCH_OPTS, STRING_TYPE, FUNCTION_TYPE, EMPTY_STR, EMPTY_FN, isWindows: isWindows$2, isMacos, isIBMi } = require_constants$1();
|
17319
17412
|
const stat = promisify$1(fs$6.stat);
|
17320
17413
|
const readdir = promisify$1(fs$6.readdir);
|
17321
17414
|
/**
|
@@ -20394,7 +20487,7 @@ function createNoopWatcher(options$1) {
|
|
20394
20487
|
|
20395
20488
|
//#endregion
|
20396
20489
|
//#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/constants.js
|
20397
|
-
var require_constants
|
20490
|
+
var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/constants.js": ((exports, module) => {
|
20398
20491
|
const BINARY_TYPES$2 = [
|
20399
20492
|
"nodebuffer",
|
20400
20493
|
"arraybuffer",
|
@@ -20418,7 +20511,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
20418
20511
|
//#endregion
|
20419
20512
|
//#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/buffer-util.js
|
20420
20513
|
var require_buffer_util = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/buffer-util.js": ((exports, module) => {
|
20421
|
-
const { EMPTY_BUFFER: EMPTY_BUFFER$3 } = require_constants
|
20514
|
+
const { EMPTY_BUFFER: EMPTY_BUFFER$3 } = require_constants();
|
20422
20515
|
const FastBuffer$2 = Buffer[Symbol.species];
|
20423
20516
|
/**
|
20424
20517
|
* Merges an array of buffers into a new buffer.
|
@@ -20574,7 +20667,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJS({ "../../node_module
|
|
20574
20667
|
const zlib$1 = __require("zlib");
|
20575
20668
|
const bufferUtil = require_buffer_util();
|
20576
20669
|
const Limiter = require_limiter();
|
20577
|
-
const { kStatusCode: kStatusCode$2 } = require_constants
|
20670
|
+
const { kStatusCode: kStatusCode$2 } = require_constants();
|
20578
20671
|
const FastBuffer$1 = Buffer[Symbol.species];
|
20579
20672
|
const TRAILER = Buffer.from([
|
20580
20673
|
0,
|
@@ -20909,7 +21002,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJS({ "../../node_module
|
|
20909
21002
|
//#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/validation.js
|
20910
21003
|
var require_validation = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/validation.js": ((exports, module) => {
|
20911
21004
|
const { isUtf8 } = __require("buffer");
|
20912
|
-
const { hasBlob } = require_constants
|
21005
|
+
const { hasBlob } = require_constants();
|
20913
21006
|
const tokenChars$2 = [
|
20914
21007
|
0,
|
20915
21008
|
0,
|
@@ -21107,7 +21200,7 @@ var require_validation = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
21107
21200
|
var require_receiver = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/receiver.js": ((exports, module) => {
|
21108
21201
|
const { Writable: Writable$1 } = __require("stream");
|
21109
21202
|
const PerMessageDeflate$3 = require_permessage_deflate();
|
21110
|
-
const { BINARY_TYPES: BINARY_TYPES$1, EMPTY_BUFFER: EMPTY_BUFFER$2, kStatusCode: kStatusCode$1, kWebSocket: kWebSocket$3 } = require_constants
|
21203
|
+
const { BINARY_TYPES: BINARY_TYPES$1, EMPTY_BUFFER: EMPTY_BUFFER$2, kStatusCode: kStatusCode$1, kWebSocket: kWebSocket$3 } = require_constants();
|
21111
21204
|
const { concat, toArrayBuffer, unmask } = require_buffer_util();
|
21112
21205
|
const { isValidStatusCode: isValidStatusCode$1, isValidUTF8 } = require_validation();
|
21113
21206
|
const FastBuffer = Buffer[Symbol.species];
|
@@ -21574,7 +21667,7 @@ var require_sender = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8
|
|
21574
21667
|
const { Duplex: Duplex$3 } = __require("stream");
|
21575
21668
|
const { randomFillSync } = __require("crypto");
|
21576
21669
|
const PerMessageDeflate$2 = require_permessage_deflate();
|
21577
|
-
const { EMPTY_BUFFER: EMPTY_BUFFER$1, kWebSocket: kWebSocket$2, NOOP: NOOP$2 } = require_constants
|
21670
|
+
const { EMPTY_BUFFER: EMPTY_BUFFER$1, kWebSocket: kWebSocket$2, NOOP: NOOP$2 } = require_constants();
|
21578
21671
|
const { isBlob: isBlob$1, isValidStatusCode } = require_validation();
|
21579
21672
|
const { mask: applyMask, toBuffer: toBuffer$1 } = require_buffer_util();
|
21580
21673
|
const kByteLength = Symbol("kByteLength");
|
@@ -22068,7 +22161,7 @@ var require_sender = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8
|
|
22068
22161
|
//#endregion
|
22069
22162
|
//#region ../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/event-target.js
|
22070
22163
|
var require_event_target = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ws@8.18.3/node_modules/ws/lib/event-target.js": ((exports, module) => {
|
22071
|
-
const { kForOnEventAttribute: kForOnEventAttribute$1, kListener: kListener$1 } = require_constants
|
22164
|
+
const { kForOnEventAttribute: kForOnEventAttribute$1, kListener: kListener$1 } = require_constants();
|
22072
22165
|
const kCode = Symbol("kCode");
|
22073
22166
|
const kData = Symbol("kData");
|
22074
22167
|
const kError = Symbol("kError");
|
@@ -22444,7 +22537,7 @@ var require_websocket = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/w
|
|
22444
22537
|
const Receiver$1 = require_receiver();
|
22445
22538
|
const Sender$1 = require_sender();
|
22446
22539
|
const { isBlob } = require_validation();
|
22447
|
-
const { BINARY_TYPES, EMPTY_BUFFER, GUID: GUID$1, kForOnEventAttribute, kListener, kStatusCode, kWebSocket: kWebSocket$1, NOOP: NOOP$1 } = require_constants
|
22540
|
+
const { BINARY_TYPES, EMPTY_BUFFER, GUID: GUID$1, kForOnEventAttribute, kListener, kStatusCode, kWebSocket: kWebSocket$1, NOOP: NOOP$1 } = require_constants();
|
22448
22541
|
const { EventTarget: { addEventListener, removeEventListener } } = require_event_target();
|
22449
22542
|
const { format: format$1, parse: parse$3 } = require_extension();
|
22450
22543
|
const { toBuffer } = require_buffer_util();
|
@@ -23570,7 +23663,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
23570
23663
|
const PerMessageDeflate = require_permessage_deflate();
|
23571
23664
|
const subprotocol = require_subprotocol();
|
23572
23665
|
const WebSocket$1 = require_websocket();
|
23573
|
-
const { GUID, kWebSocket } = require_constants
|
23666
|
+
const { GUID, kWebSocket } = require_constants();
|
23574
23667
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
23575
23668
|
const RUNNING = 0;
|
23576
23669
|
const CLOSING = 1;
|
@@ -24278,8 +24371,8 @@ function baseMiddleware(rawBase, middlewareMode) {
|
|
24278
24371
|
}
|
24279
24372
|
|
24280
24373
|
//#endregion
|
24281
|
-
//#region ../../node_modules/.pnpm/http-proxy-3@1.
|
24282
|
-
var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.
|
24374
|
+
//#region ../../node_modules/.pnpm/http-proxy-3@1.21.0/node_modules/http-proxy-3/dist/lib/http-proxy/common.js
|
24375
|
+
var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.21.0/node_modules/http-proxy-3/dist/lib/http-proxy/common.js": ((exports) => {
|
24283
24376
|
Object.defineProperty(exports, "__esModule", { value: true });
|
24284
24377
|
exports.isSSL = void 0;
|
24285
24378
|
exports.setupOutgoing = setupOutgoing;
|
@@ -24289,7 +24382,7 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http
|
|
24289
24382
|
exports.urlJoin = urlJoin;
|
24290
24383
|
exports.rewriteCookieProperty = rewriteCookieProperty;
|
24291
24384
|
exports.toURL = toURL;
|
24292
|
-
const
|
24385
|
+
const node_tls_1 = __require("node:tls");
|
24293
24386
|
const upgradeHeader = /(^|,)\s*upgrade\s*($|,)/i;
|
24294
24387
|
exports.isSSL = /^https|wss/;
|
24295
24388
|
const HEADER_BLACKLIST = "trailer";
|
@@ -24318,7 +24411,10 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http
|
|
24318
24411
|
delete outgoing.headers[header];
|
24319
24412
|
break;
|
24320
24413
|
}
|
24321
|
-
if (options$1.auth)
|
24414
|
+
if (options$1.auth) {
|
24415
|
+
delete outgoing.headers.authorization;
|
24416
|
+
outgoing.auth = options$1.auth;
|
24417
|
+
}
|
24322
24418
|
if (options$1.ca) outgoing.ca = options$1.ca;
|
24323
24419
|
if (target.protocol !== void 0 && exports.isSSL.test(target.protocol)) outgoing.rejectUnauthorized = typeof options$1.secure === "undefined" ? true : options$1.secure;
|
24324
24420
|
outgoing.agent = options$1.agent || false;
|
@@ -24327,7 +24423,7 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http
|
|
24327
24423
|
outgoing.headers = outgoing.headers || {};
|
24328
24424
|
if (typeof outgoing.headers.connection !== "string" || !upgradeHeader.test(outgoing.headers.connection)) outgoing.headers.connection = "close";
|
24329
24425
|
}
|
24330
|
-
const targetPath = target && options$1.prependPath !== false && "pathname" in target ? getPath(target.pathname) : "/";
|
24426
|
+
const targetPath = target && options$1.prependPath !== false && "pathname" in target ? getPath(`${target.pathname}${target.search ?? ""}`) : "/";
|
24331
24427
|
let outgoingPath = options$1.toProxy ? req$4.url : getPath(req$4.url);
|
24332
24428
|
outgoingPath = !options$1.ignorePath ? outgoingPath : "";
|
24333
24429
|
outgoing.path = urlJoin(targetPath, outgoingPath ?? "");
|
@@ -24346,7 +24442,7 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http
|
|
24346
24442
|
}
|
24347
24443
|
function hasEncryptedConnection(req$4) {
|
24348
24444
|
const conn = req$4.connection;
|
24349
|
-
return conn instanceof
|
24445
|
+
return conn instanceof node_tls_1.TLSSocket && conn.encrypted || Boolean(conn.pair);
|
24350
24446
|
}
|
24351
24447
|
function urlJoin(...args) {
|
24352
24448
|
const queryParams = [];
|
@@ -24386,6 +24482,7 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http
|
|
24386
24482
|
return !!~host.indexOf(":");
|
24387
24483
|
}
|
24388
24484
|
function getPath(url$3) {
|
24485
|
+
if (url$3 === "" || url$3?.startsWith("?")) return url$3;
|
24389
24486
|
const u = toURL(url$3);
|
24390
24487
|
return `${u.pathname ?? ""}${u.search ?? ""}`;
|
24391
24488
|
}
|
@@ -24412,8 +24509,8 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http
|
|
24412
24509
|
}) });
|
24413
24510
|
|
24414
24511
|
//#endregion
|
24415
|
-
//#region ../../node_modules/.pnpm/http-proxy-3@1.
|
24416
|
-
var require_web_outgoing = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.
|
24512
|
+
//#region ../../node_modules/.pnpm/http-proxy-3@1.21.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/web-outgoing.js
|
24513
|
+
var require_web_outgoing = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.21.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/web-outgoing.js": ((exports) => {
|
24417
24514
|
var __createBinding$3 = exports && exports.__createBinding || (Object.create ? (function(o$1, m$2, k, k2) {
|
24418
24515
|
if (k2 === void 0) k2 = k;
|
24419
24516
|
var desc = Object.getOwnPropertyDescriptor(m$2, k);
|
@@ -24973,8 +25070,8 @@ var require_follow_redirects = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
24973
25070
|
}) });
|
24974
25071
|
|
24975
25072
|
//#endregion
|
24976
|
-
//#region ../../node_modules/.pnpm/http-proxy-3@1.
|
24977
|
-
var require_web_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.
|
25073
|
+
//#region ../../node_modules/.pnpm/http-proxy-3@1.21.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/web-incoming.js
|
25074
|
+
var require_web_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.21.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/web-incoming.js": ((exports) => {
|
24978
25075
|
var __createBinding$2 = exports && exports.__createBinding || (Object.create ? (function(o$1, m$2, k, k2) {
|
24979
25076
|
if (k2 === void 0) k2 = k;
|
24980
25077
|
var desc = Object.getOwnPropertyDescriptor(m$2, k);
|
@@ -25022,8 +25119,8 @@ var require_web_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
25022
25119
|
exports.timeout = timeout;
|
25023
25120
|
exports.XHeaders = XHeaders$1;
|
25024
25121
|
exports.stream = stream$1;
|
25025
|
-
const http$2 = __importStar$2(__require("http"));
|
25026
|
-
const https$2 = __importStar$2(__require("https"));
|
25122
|
+
const http$2 = __importStar$2(__require("node:http"));
|
25123
|
+
const https$2 = __importStar$2(__require("node:https"));
|
25027
25124
|
const web_outgoing_1 = require_web_outgoing();
|
25028
25125
|
const common$1 = __importStar$2(require_common());
|
25029
25126
|
const followRedirects = __importStar$2(require_follow_redirects());
|
@@ -25119,8 +25216,8 @@ var require_web_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
25119
25216
|
}) });
|
25120
25217
|
|
25121
25218
|
//#endregion
|
25122
|
-
//#region ../../node_modules/.pnpm/http-proxy-3@1.
|
25123
|
-
var require_ws_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.
|
25219
|
+
//#region ../../node_modules/.pnpm/http-proxy-3@1.21.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/ws-incoming.js
|
25220
|
+
var require_ws_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.21.0/node_modules/http-proxy-3/dist/lib/http-proxy/passes/ws-incoming.js": ((exports) => {
|
25124
25221
|
var __createBinding$1 = exports && exports.__createBinding || (Object.create ? (function(o$1, m$2, k, k2) {
|
25125
25222
|
if (k2 === void 0) k2 = k;
|
25126
25223
|
var desc = Object.getOwnPropertyDescriptor(m$2, k);
|
@@ -25171,8 +25268,8 @@ var require_ws_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
25171
25268
|
exports.checkMethodAndHeader = checkMethodAndHeader;
|
25172
25269
|
exports.XHeaders = XHeaders;
|
25173
25270
|
exports.stream = stream;
|
25174
|
-
const http$1 = __importStar$1(__require("http"));
|
25175
|
-
const https$1 = __importStar$1(__require("https"));
|
25271
|
+
const http$1 = __importStar$1(__require("node:http"));
|
25272
|
+
const https$1 = __importStar$1(__require("node:https"));
|
25176
25273
|
const common = __importStar$1(require_common());
|
25177
25274
|
const debug_1$1 = __importDefault$1(require_node$1());
|
25178
25275
|
const log$1 = (0, debug_1$1.default)("http-proxy-3:ws-incoming");
|
@@ -25286,8 +25383,8 @@ var require_ws_incoming = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
25286
25383
|
}) });
|
25287
25384
|
|
25288
25385
|
//#endregion
|
25289
|
-
//#region ../../node_modules/.pnpm/http-proxy-3@1.
|
25290
|
-
var require_http_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.
|
25386
|
+
//#region ../../node_modules/.pnpm/http-proxy-3@1.21.0/node_modules/http-proxy-3/dist/lib/http-proxy/index.js
|
25387
|
+
var require_http_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.21.0/node_modules/http-proxy-3/dist/lib/http-proxy/index.js": ((exports) => {
|
25291
25388
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o$1, m$2, k, k2) {
|
25292
25389
|
if (k2 === void 0) k2 = k;
|
25293
25390
|
var desc = Object.getOwnPropertyDescriptor(m$2, k);
|
@@ -25334,15 +25431,15 @@ var require_http_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
25334
25431
|
};
|
25335
25432
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25336
25433
|
exports.ProxyServer = void 0;
|
25337
|
-
const http = __importStar(__require("http"));
|
25338
|
-
const https = __importStar(__require("https"));
|
25434
|
+
const http = __importStar(__require("node:http"));
|
25435
|
+
const https = __importStar(__require("node:https"));
|
25339
25436
|
const web_incoming_1 = require_web_incoming();
|
25340
25437
|
const ws_incoming_1$1 = require_ws_incoming();
|
25341
|
-
const
|
25438
|
+
const node_events_1 = __require("node:events");
|
25342
25439
|
const debug_1 = __importDefault(require_node$1());
|
25343
25440
|
const common_1 = require_common();
|
25344
25441
|
const log = (0, debug_1.default)("http-proxy-3");
|
25345
|
-
var ProxyServer = class ProxyServer extends
|
25442
|
+
var ProxyServer = class ProxyServer extends node_events_1.EventEmitter {
|
25346
25443
|
/**
|
25347
25444
|
* Creates the proxy server with specified options.
|
25348
25445
|
* @param options - Config object passed to the proxy
|
@@ -25410,7 +25507,10 @@ var require_http_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
25410
25507
|
port,
|
25411
25508
|
hostname
|
25412
25509
|
});
|
25413
|
-
|
25510
|
+
const requestListener = (req$4, res) => {
|
25511
|
+
this.web(req$4, res);
|
25512
|
+
};
|
25513
|
+
this._server = this.options.ssl ? https.createServer(this.options.ssl, requestListener) : http.createServer(requestListener);
|
25414
25514
|
if (this.options.ws) this._server.on("upgrade", (req$4, socket, head) => {
|
25415
25515
|
this.ws(req$4, socket, head);
|
25416
25516
|
});
|
@@ -25491,8 +25591,8 @@ var require_http_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
25491
25591
|
}) });
|
25492
25592
|
|
25493
25593
|
//#endregion
|
25494
|
-
//#region ../../node_modules/.pnpm/http-proxy-3@1.
|
25495
|
-
var require_lib = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.
|
25594
|
+
//#region ../../node_modules/.pnpm/http-proxy-3@1.21.0/node_modules/http-proxy-3/dist/lib/index.js
|
25595
|
+
var require_lib = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/http-proxy-3@1.21.0/node_modules/http-proxy-3/dist/lib/index.js": ((exports) => {
|
25496
25596
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25497
25597
|
exports.numOpenSockets = exports.ProxyServer = void 0;
|
25498
25598
|
exports.createProxyServer = createProxyServer;
|
@@ -25863,7 +25963,7 @@ function parse$1(req$4) {
|
|
25863
25963
|
}
|
25864
25964
|
|
25865
25965
|
//#endregion
|
25866
|
-
//#region ../../node_modules/.pnpm/sirv@3.0.
|
25966
|
+
//#region ../../node_modules/.pnpm/sirv@3.0.2_patch_hash=c07c56eb72faea34341d465cde2314e89db472106ed378181e3447893af6bf95/node_modules/sirv/build.mjs
|
25867
25967
|
const noop = () => {};
|
25868
25968
|
function isMatch(uri, arr) {
|
25869
25969
|
for (let i$1 = 0; i$1 < arr.length; i$1++) if (arr[i$1].test(uri)) return true;
|
@@ -25985,7 +26085,7 @@ function build_default(dir, opts = {}) {
|
|
25985
26085
|
headers
|
25986
26086
|
};
|
25987
26087
|
});
|
25988
|
-
let lookup$1 = opts.dev ? viaLocal.bind(0, dir, isEtag) : viaCache.bind(0, FILES);
|
26088
|
+
let lookup$1 = opts.dev ? viaLocal.bind(0, dir.endsWith(sep) ? dir : dir + sep, isEtag) : viaCache.bind(0, FILES);
|
25989
26089
|
return function(req$4, res, next) {
|
25990
26090
|
let extns = [""];
|
25991
26091
|
let pathname = parse$1(req$4).pathname;
|
@@ -26611,7 +26711,7 @@ function traverseNodes(node, visitor) {
|
|
26611
26711
|
if (nodeIsElement(node) || node.nodeName === "#document" || node.nodeName === "#document-fragment") node.childNodes.forEach((childNode) => traverseNodes(childNode, visitor));
|
26612
26712
|
}
|
26613
26713
|
async function traverseHtml(html, filePath, warn, visitor) {
|
26614
|
-
const { parse: parse$17 } = await import("./dep-
|
26714
|
+
const { parse: parse$17 } = await import("./dep-sDKrrA4S.js");
|
26615
26715
|
const warnings = {};
|
26616
26716
|
const ast = parse$17(html, {
|
26617
26717
|
scriptingEnabled: false,
|
@@ -27660,7 +27760,12 @@ function indexHtmlMiddleware(root, server) {
|
|
27660
27760
|
if (url$3?.endsWith(".html") && req$4.headers["sec-fetch-dest"] !== "script") {
|
27661
27761
|
let filePath;
|
27662
27762
|
if (isDev && url$3.startsWith(FS_PREFIX)) filePath = decodeURIComponent(fsPathFromId(url$3));
|
27663
|
-
else filePath = path.join(root, decodeURIComponent(url$3));
|
27763
|
+
else filePath = normalizePath(path.resolve(path.join(root, decodeURIComponent(url$3))));
|
27764
|
+
if (isDev) {
|
27765
|
+
const servingAccessResult = checkLoadingAccess(server.config, filePath);
|
27766
|
+
if (servingAccessResult === "denied") return respondWithAccessDenied(filePath, server, res);
|
27767
|
+
if (servingAccessResult === "fallback") return next();
|
27768
|
+
} else if (!isParentDirectory(root, filePath)) return next();
|
27664
27769
|
if (fs.existsSync(filePath)) {
|
27665
27770
|
const headers = isDev ? server.config.server.headers : server.config.preview.headers;
|
27666
27771
|
try {
|
@@ -30833,7 +30938,7 @@ function createFilterForTransform(idFilter, codeFilter, cwd) {
|
|
30833
30938
|
async function resolvePlugins(config$2, prePlugins, normalPlugins, postPlugins) {
|
30834
30939
|
const isBuild = config$2.command === "build";
|
30835
30940
|
const isWorker = config$2.isWorker;
|
30836
|
-
const buildPlugins = isBuild ? await (await import("./dep-
|
30941
|
+
const buildPlugins = isBuild ? await (await import("./dep-BvyJBvVx.js")).resolveBuildPlugins(config$2) : {
|
30837
30942
|
pre: [],
|
30838
30943
|
post: []
|
30839
30944
|
};
|
@@ -32002,7 +32107,7 @@ function cssPostPlugin(config$2) {
|
|
32002
32107
|
}
|
32003
32108
|
}
|
32004
32109
|
await urlEmitQueue.run(async () => Promise.all(urlEmitTasks.map(async (info) => {
|
32005
|
-
info.content = await finalizeCss(info.content,
|
32110
|
+
info.content = await finalizeCss(info.content, config$2);
|
32006
32111
|
})));
|
32007
32112
|
if (urlEmitTasks.length > 0) {
|
32008
32113
|
const toRelativeRuntime = createToImportMetaURLBasedRelativeRuntime(opts.format, config$2.isWorker);
|
@@ -32031,7 +32136,7 @@ function cssPostPlugin(config$2) {
|
|
32031
32136
|
const originalFileName = getChunkOriginalFileName(chunk, config$2.root, opts.format);
|
32032
32137
|
chunkCSS = resolveAssetUrlsInCss(chunkCSS, cssAssetName);
|
32033
32138
|
chunkCSS = await codeSplitEmitQueue.run(async () => {
|
32034
|
-
return finalizeCss(chunkCSS,
|
32139
|
+
return finalizeCss(chunkCSS, config$2);
|
32035
32140
|
});
|
32036
32141
|
const referenceId = this.emitFile({
|
32037
32142
|
type: "asset",
|
@@ -32042,7 +32147,7 @@ function cssPostPlugin(config$2) {
|
|
32042
32147
|
if (isEntry) cssEntriesMap.get(this.environment).add(referenceId);
|
32043
32148
|
chunk.viteMetadata.importedCss.add(this.getFileName(referenceId));
|
32044
32149
|
} else if (this.environment.config.consumer === "client") {
|
32045
|
-
chunkCSS = await finalizeCss(chunkCSS,
|
32150
|
+
chunkCSS = await finalizeCss(chunkCSS, config$2);
|
32046
32151
|
let cssString = JSON.stringify(chunkCSS);
|
32047
32152
|
cssString = renderAssetUrlInJS(this, chunk, opts, cssString)?.toString() || cssString;
|
32048
32153
|
const style = `__vite_style__`;
|
@@ -32096,7 +32201,7 @@ function cssPostPlugin(config$2) {
|
|
32096
32201
|
for (const chunkName of dynamicImports) collect(bundle[chunkName]);
|
32097
32202
|
if (extractedCss) {
|
32098
32203
|
hasEmitted = true;
|
32099
|
-
extractedCss = await finalizeCss(extractedCss,
|
32204
|
+
extractedCss = await finalizeCss(extractedCss, config$2);
|
32100
32205
|
this.emitFile({
|
32101
32206
|
name: getCssBundleName(),
|
32102
32207
|
type: "asset",
|
@@ -32438,8 +32543,8 @@ function createCachedImport(imp) {
|
|
32438
32543
|
return cached;
|
32439
32544
|
};
|
32440
32545
|
}
|
32441
|
-
const importPostcssImport = createCachedImport(() => import("./dep-
|
32442
|
-
const importPostcssModules = createCachedImport(() => import("./dep-
|
32546
|
+
const importPostcssImport = createCachedImport(() => import("./dep-DDbTn5rw.js").then(__toDynamicImportESM(1)));
|
32547
|
+
const importPostcssModules = createCachedImport(() => import("./dep-DCVhRpiz.js").then(__toDynamicImportESM(1)));
|
32443
32548
|
const importPostcss = createCachedImport(() => import("postcss"));
|
32444
32549
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
32445
32550
|
let alwaysFakeWorkerWorkerControllerCache;
|
@@ -32478,9 +32583,9 @@ function combineSourcemapsIfExists(filename, map1, map2) {
|
|
32478
32583
|
}
|
32479
32584
|
const viteHashUpdateMarker = "/*$vite$:1*/";
|
32480
32585
|
const viteHashUpdateMarkerRE = /\/\*\$vite\$:\d+\*\//;
|
32481
|
-
async function finalizeCss(css,
|
32586
|
+
async function finalizeCss(css, config$2) {
|
32482
32587
|
if (css.includes("@import") || css.includes("@charset")) css = await hoistAtRules(css);
|
32483
|
-
if (
|
32588
|
+
if (config$2.build.cssMinify) css = await minifyCSS(css, config$2, false);
|
32484
32589
|
css += viteHashUpdateMarker;
|
32485
32590
|
return css;
|
32486
32591
|
}
|
@@ -32808,7 +32913,8 @@ const makeScssWorker = (environment, resolvers, _maxWorkers) => {
|
|
32808
32913
|
};
|
32809
32914
|
},
|
32810
32915
|
async stop() {
|
32811
|
-
|
32916
|
+
const compiler = await compilerPromise;
|
32917
|
+
await compiler?.dispose();
|
32812
32918
|
compilerPromise = void 0;
|
32813
32919
|
}
|
32814
32920
|
};
|
@@ -33078,16 +33184,16 @@ function formatStylusSourceMap(mapBefore, root) {
|
|
33078
33184
|
map$1.sources = map$1.sources.map(resolveFromRoot);
|
33079
33185
|
return map$1;
|
33080
33186
|
}
|
33081
|
-
async function getSource(source, filename, additionalData, enableSourcemap, sep$
|
33187
|
+
async function getSource(source, filename, additionalData, enableSourcemap, sep$4 = "") {
|
33082
33188
|
if (!additionalData) return { content: source };
|
33083
33189
|
if (typeof additionalData === "function") {
|
33084
33190
|
const newContent = await additionalData(source, filename);
|
33085
33191
|
if (typeof newContent === "string") return { content: newContent };
|
33086
33192
|
return newContent;
|
33087
33193
|
}
|
33088
|
-
if (!enableSourcemap) return { content: additionalData + sep$
|
33194
|
+
if (!enableSourcemap) return { content: additionalData + sep$4 + source };
|
33089
33195
|
const ms = new MagicString(source);
|
33090
|
-
ms.appendLeft(0, sep$
|
33196
|
+
ms.appendLeft(0, sep$4);
|
33091
33197
|
ms.appendLeft(0, additionalData);
|
33092
33198
|
const map$1 = ms.generateMap({ hires: "boundary" });
|
33093
33199
|
map$1.file = filename;
|
@@ -34106,11 +34212,15 @@ async function buildEnvironment(environment) {
|
|
34106
34212
|
logger.info(import_picocolors$4.default.cyan(`\nwatching for file changes...`));
|
34107
34213
|
const resolvedOutDirs = getResolvedOutDirs(root, options$1.outDir, options$1.rollupOptions.output);
|
34108
34214
|
const emptyOutDir = resolveEmptyOutDir(options$1.emptyOutDir, root, resolvedOutDirs, logger);
|
34109
|
-
const resolvedChokidarOptions = resolveChokidarOptions(
|
34215
|
+
const resolvedChokidarOptions = resolveChokidarOptions({
|
34216
|
+
...(rollupOptions.watch || {}).chokidar,
|
34217
|
+
...options$1.watch.chokidar
|
34218
|
+
}, resolvedOutDirs, emptyOutDir, environment.config.cacheDir);
|
34110
34219
|
const { watch: watch$1 } = await import("rollup");
|
34111
34220
|
const watcher = watch$1({
|
34112
34221
|
...rollupOptions,
|
34113
34222
|
watch: {
|
34223
|
+
...rollupOptions.watch,
|
34114
34224
|
...options$1.watch,
|
34115
34225
|
chokidar: resolvedChokidarOptions
|
34116
34226
|
}
|
@@ -35731,7 +35841,8 @@ async function preview(inlineConfig = {}) {
|
|
35731
35841
|
if (config$2.appType === "spa" || config$2.appType === "mpa") app.use(htmlFallbackMiddleware(distDir, config$2.appType === "spa"));
|
35732
35842
|
postHooks.forEach((fn) => fn && fn());
|
35733
35843
|
if (config$2.appType === "spa" || config$2.appType === "mpa") {
|
35734
|
-
|
35844
|
+
const normalizedDistDir = normalizePath(distDir);
|
35845
|
+
app.use(indexHtmlMiddleware(normalizedDistDir, server));
|
35735
35846
|
app.use(notFoundMiddleware());
|
35736
35847
|
}
|
35737
35848
|
const hostname = await resolveHostname(options$1.host);
|