@vue/compiler-sfc 3.6.0-rc.1 → 3.6.0-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-sfc v3.6.0-rc.1
2
+ * @vue/compiler-sfc v3.6.0-rc.10
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -25,7 +25,7 @@ var __copyProps = (to, from, except, desc) => {
25
25
  }
26
26
  return to;
27
27
  };
28
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
29
29
  value: mod,
30
30
  enumerable: true
31
31
  }) : target, mod));
@@ -44,10 +44,10 @@ let _vue_compiler_ssr = require("@vue/compiler-ssr");
44
44
  _vue_compiler_ssr = __toESM(_vue_compiler_ssr);
45
45
  let postcss = require("postcss");
46
46
  postcss = __toESM(postcss);
47
+ let _babel_parser = require("@babel/parser");
47
48
  let estree_walker = require("estree-walker");
48
49
  let magic_string = require("magic-string");
49
50
  magic_string = __toESM(magic_string);
50
- let _babel_parser = require("@babel/parser");
51
51
  let process$1 = require("process");
52
52
  process$1 = __toESM(process$1);
53
53
  //#endregion
@@ -121,7 +121,7 @@ function parseCssVars(sfc) {
121
121
  const vars = [];
122
122
  sfc.styles.forEach((style) => {
123
123
  let match;
124
- const content = style.content.replace(/\/\*([\s\S]*?)\*\/|\/\/.*/g, "");
124
+ const content = stripComments(style.content);
125
125
  while (match = vBindRE.exec(content)) {
126
126
  const start = match.index + match[0].length;
127
127
  const end = lexBinding(content, start);
@@ -133,6 +133,70 @@ function parseCssVars(sfc) {
133
133
  });
134
134
  return vars;
135
135
  }
136
+ const cssSpecialRE = /[/"'\\(]/g;
137
+ function stripComments(content) {
138
+ const len = content.length;
139
+ let out = "";
140
+ let last = 0;
141
+ let i = 0;
142
+ cssSpecialRE.lastIndex = 0;
143
+ while (cssSpecialRE.test(content)) {
144
+ i = cssSpecialRE.lastIndex - 1;
145
+ const c = content.charCodeAt(i);
146
+ if (c === 47) {
147
+ const next = content.charCodeAt(i + 1);
148
+ if (next === 42) {
149
+ out += content.slice(last, i);
150
+ const end = content.indexOf("*/", i + 2);
151
+ i = last = end === -1 ? len : end + 2;
152
+ } else if (next === 47) {
153
+ out += content.slice(last, i);
154
+ i += 2;
155
+ while (i < len && !isNewline(content.charCodeAt(i))) i++;
156
+ last = i;
157
+ } else i++;
158
+ } else if (c === 34 || c === 39) i = skipString(content, i + 1, c);
159
+ else if (c === 92) i += 2;
160
+ else if (isUrlFunction(content, i)) i = skipUrl(content, i + 1);
161
+ else i++;
162
+ cssSpecialRE.lastIndex = i;
163
+ }
164
+ return last === 0 ? content : out + content.slice(last);
165
+ }
166
+ function skipString(s, i, quote) {
167
+ while (i < s.length) {
168
+ const c = s.charCodeAt(i);
169
+ if (c === quote) return i + 1;
170
+ if (isNewline(c)) return i;
171
+ if (c === 92) i += s.charCodeAt(i + 1) === 13 && s.charCodeAt(i + 2) === 10 ? 3 : 2;
172
+ else i++;
173
+ }
174
+ return i;
175
+ }
176
+ function isUrlFunction(s, i) {
177
+ const prev = s.charCodeAt(i - 4);
178
+ return (s.charCodeAt(i - 3) | 32) === 117 && (s.charCodeAt(i - 2) | 32) === 114 && (s.charCodeAt(i - 1) | 32) === 108 && prev !== 92 && !isIdentChar(prev);
179
+ }
180
+ function skipUrl(s, i) {
181
+ while (isWhitespace(s.charCodeAt(i))) i++;
182
+ const c = s.charCodeAt(i);
183
+ if (c === 34 || c === 39) return i;
184
+ while (i < s.length) {
185
+ const c = s.charCodeAt(i);
186
+ if (c === 41) return i + 1;
187
+ i += c === 92 ? 2 : 1;
188
+ }
189
+ return i;
190
+ }
191
+ function isIdentChar(c) {
192
+ return c >= 97 && c <= 122 || c >= 65 && c <= 90 || c >= 48 && c <= 57 || c === 45 || c === 95 || c >= 128;
193
+ }
194
+ function isNewline(c) {
195
+ return c === 10 || c === 13;
196
+ }
197
+ function isWhitespace(c) {
198
+ return c === 32 || c === 9 || c === 12 || isNewline(c);
199
+ }
136
200
  function lexBinding(content, start) {
137
201
  let state = 0;
138
202
  let parenDepth = 0;
@@ -143,15 +207,15 @@ function lexBinding(content, start) {
143
207
  if (char === `'`) state = 1;
144
208
  else if (char === `"`) state = 2;
145
209
  else if (char === `(`) parenDepth++;
146
- else if (char === `)`) if (parenDepth > 0) parenDepth--;
147
- else return i;
210
+ else if (char === `)`) {
211
+ if (parenDepth > 0) parenDepth--;
212
+ else return i;
213
+ }
148
214
  break;
149
215
  case 1:
150
216
  if (char === `'`) state = 0;
151
217
  break;
152
- case 2:
153
- if (char === `"`) state = 0;
154
- break;
218
+ case 2: if (char === `"`) state = 0;
155
219
  }
156
220
  }
157
221
  return null;
@@ -183,11 +247,14 @@ const cssVarsPlugin = (opts) => {
183
247
  };
184
248
  cssVarsPlugin.postcss = true;
185
249
  function genCssVarsCode(vars, bindings, id, isProd, vapor) {
186
- const transformed = (0, _vue_compiler_dom.processExpression)((0, _vue_compiler_dom.createSimpleExpression)(genCssVarsFromList(vars, id, isProd), false), (0, _vue_compiler_dom.createTransformContext)((0, _vue_compiler_dom.createRoot)([]), {
250
+ const varsExp = genCssVarsFromList(vars, id, isProd);
251
+ const exp = (0, _vue_compiler_dom.createSimpleExpression)(varsExp, false);
252
+ const context = (0, _vue_compiler_dom.createTransformContext)((0, _vue_compiler_dom.createRoot)([]), {
187
253
  prefixIdentifiers: true,
188
254
  inline: true,
189
255
  bindingMetadata: bindings.__isScriptSetup === false ? void 0 : bindings
190
- }));
256
+ });
257
+ const transformed = (0, _vue_compiler_dom.processExpression)(exp, context);
191
258
  const transformedString = transformed.type === 4 ? transformed.content : transformed.children.map((c) => {
192
259
  return typeof c === "string" ? c : c.content;
193
260
  }).join("");
@@ -197,33 +264,71 @@ function genNormalScriptCssVarsCode(cssVars, bindings, id, isProd, defaultVar) {
197
264
  return `\nimport { ${CSS_VARS_HELPER} as _${CSS_VARS_HELPER} } from 'vue'\nconst __injectCSSVars__ = () => {\n${genCssVarsCode(cssVars, bindings, id, isProd)}}\nconst __setup__ = ${defaultVar}.setup\n${defaultVar}.setup = __setup__\n ? (props, ctx) => { __injectCSSVars__();return __setup__(props, ctx) }\n : __injectCSSVars__\n`;
198
265
  }
199
266
  //#endregion
200
- //#region \0@oxc-project+runtime@0.129.0/helpers/checkPrivateRedeclaration.js
267
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/typeof.js
268
+ function _typeof(o) {
269
+ "@babel/helpers - typeof";
270
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
271
+ return typeof o;
272
+ } : function(o) {
273
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
274
+ }, _typeof(o);
275
+ }
276
+ //#endregion
277
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPrimitive.js
278
+ function toPrimitive(t, r) {
279
+ if ("object" != _typeof(t) || !t) return t;
280
+ var e = t[Symbol.toPrimitive];
281
+ if (void 0 !== e) {
282
+ var i = e.call(t, r || "default");
283
+ if ("object" != _typeof(i)) return i;
284
+ throw new TypeError("@@toPrimitive must return a primitive value.");
285
+ }
286
+ return ("string" === r ? String : Number)(t);
287
+ }
288
+ //#endregion
289
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPropertyKey.js
290
+ function toPropertyKey(t) {
291
+ var i = toPrimitive(t, "string");
292
+ return "symbol" == _typeof(i) ? i : i + "";
293
+ }
294
+ //#endregion
295
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/defineProperty.js
296
+ function _defineProperty(e, r, t) {
297
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
298
+ value: t,
299
+ enumerable: !0,
300
+ configurable: !0,
301
+ writable: !0
302
+ }) : e[r] = t, e;
303
+ }
304
+ //#endregion
305
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/checkPrivateRedeclaration.js
201
306
  function _checkPrivateRedeclaration(e, t) {
202
307
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
203
308
  }
204
309
  //#endregion
205
- //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateMethodInitSpec.js
310
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/classPrivateMethodInitSpec.js
206
311
  function _classPrivateMethodInitSpec(e, a) {
207
312
  _checkPrivateRedeclaration(e, a), a.add(e);
208
313
  }
209
314
  //#endregion
210
- //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldInitSpec.js
315
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/classPrivateFieldInitSpec.js
211
316
  function _classPrivateFieldInitSpec(e, t, a) {
212
317
  _checkPrivateRedeclaration(e, t), t.set(e, a);
213
318
  }
214
319
  //#endregion
215
- //#region \0@oxc-project+runtime@0.129.0/helpers/assertClassBrand.js
320
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/assertClassBrand.js
216
321
  function _assertClassBrand(e, t, n) {
217
322
  if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
218
323
  throw new TypeError("Private element is not present on this object");
219
324
  }
220
325
  //#endregion
221
- //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldGet2.js
326
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/classPrivateFieldGet2.js
222
327
  function _classPrivateFieldGet2(s, a) {
223
328
  return s.get(_assertClassBrand(s, a));
224
329
  }
225
330
  //#endregion
226
- //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldSet2.js
331
+ //#region \0@oxc-project+runtime@0.146.0/helpers/esm/classPrivateFieldSet2.js
227
332
  function _classPrivateFieldSet2(s, a, r) {
228
333
  return s.set(_assertClassBrand(s, a), r), r;
229
334
  }
@@ -248,8 +353,10 @@ if (typeof AC === "undefined") {
248
353
  var _PROCESS$env;
249
354
  AS = class AbortSignal {
250
355
  constructor() {
251
- this._onabort = [];
252
- this.aborted = false;
356
+ _defineProperty(this, "onabort", void 0);
357
+ _defineProperty(this, "_onabort", []);
358
+ _defineProperty(this, "reason", void 0);
359
+ _defineProperty(this, "aborted", false);
253
360
  }
254
361
  addEventListener(_, fn) {
255
362
  this._onabort.push(fn);
@@ -257,7 +364,7 @@ if (typeof AC === "undefined") {
257
364
  };
258
365
  AC = class AbortController {
259
366
  constructor() {
260
- this.signal = new AS();
367
+ _defineProperty(this, "signal", new AS());
261
368
  warnACPolyfill();
262
369
  }
263
370
  abort(reason) {
@@ -298,6 +405,8 @@ var Stack = class Stack {
298
405
  return s;
299
406
  }
300
407
  constructor(max, HeapCls) {
408
+ _defineProperty(this, "heap", void 0);
409
+ _defineProperty(this, "length", void 0);
301
410
  /* c8 ignore start */
302
411
  if (!_constructing._) throw new TypeError("instantiate Stack using Stack.create(n)");
303
412
  /* c8 ignore stop */
@@ -436,6 +545,126 @@ var LRUCache = class LRUCache {
436
545
  _classPrivateFieldInitSpec(this, _dispose, void 0);
437
546
  _classPrivateFieldInitSpec(this, _disposeAfter, void 0);
438
547
  _classPrivateFieldInitSpec(this, _fetchMethod, void 0);
548
+ _defineProperty(
549
+ this,
550
+ /**
551
+ * {@link LRUCache.OptionsBase.ttl}
552
+ */
553
+ "ttl",
554
+ void 0
555
+ );
556
+ _defineProperty(
557
+ this,
558
+ /**
559
+ * {@link LRUCache.OptionsBase.ttlResolution}
560
+ */
561
+ "ttlResolution",
562
+ void 0
563
+ );
564
+ _defineProperty(
565
+ this,
566
+ /**
567
+ * {@link LRUCache.OptionsBase.ttlAutopurge}
568
+ */
569
+ "ttlAutopurge",
570
+ void 0
571
+ );
572
+ _defineProperty(
573
+ this,
574
+ /**
575
+ * {@link LRUCache.OptionsBase.updateAgeOnGet}
576
+ */
577
+ "updateAgeOnGet",
578
+ void 0
579
+ );
580
+ _defineProperty(
581
+ this,
582
+ /**
583
+ * {@link LRUCache.OptionsBase.updateAgeOnHas}
584
+ */
585
+ "updateAgeOnHas",
586
+ void 0
587
+ );
588
+ _defineProperty(
589
+ this,
590
+ /**
591
+ * {@link LRUCache.OptionsBase.allowStale}
592
+ */
593
+ "allowStale",
594
+ void 0
595
+ );
596
+ _defineProperty(
597
+ this,
598
+ /**
599
+ * {@link LRUCache.OptionsBase.noDisposeOnSet}
600
+ */
601
+ "noDisposeOnSet",
602
+ void 0
603
+ );
604
+ _defineProperty(
605
+ this,
606
+ /**
607
+ * {@link LRUCache.OptionsBase.noUpdateTTL}
608
+ */
609
+ "noUpdateTTL",
610
+ void 0
611
+ );
612
+ _defineProperty(
613
+ this,
614
+ /**
615
+ * {@link LRUCache.OptionsBase.maxEntrySize}
616
+ */
617
+ "maxEntrySize",
618
+ void 0
619
+ );
620
+ _defineProperty(
621
+ this,
622
+ /**
623
+ * {@link LRUCache.OptionsBase.sizeCalculation}
624
+ */
625
+ "sizeCalculation",
626
+ void 0
627
+ );
628
+ _defineProperty(
629
+ this,
630
+ /**
631
+ * {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}
632
+ */
633
+ "noDeleteOnFetchRejection",
634
+ void 0
635
+ );
636
+ _defineProperty(
637
+ this,
638
+ /**
639
+ * {@link LRUCache.OptionsBase.noDeleteOnStaleGet}
640
+ */
641
+ "noDeleteOnStaleGet",
642
+ void 0
643
+ );
644
+ _defineProperty(
645
+ this,
646
+ /**
647
+ * {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}
648
+ */
649
+ "allowStaleOnFetchAbort",
650
+ void 0
651
+ );
652
+ _defineProperty(
653
+ this,
654
+ /**
655
+ * {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}
656
+ */
657
+ "allowStaleOnFetchRejection",
658
+ void 0
659
+ );
660
+ _defineProperty(
661
+ this,
662
+ /**
663
+ * {@link LRUCache.OptionsBase.ignoreFetchAbort}
664
+ */
665
+ "ignoreFetchAbort",
666
+ void 0
667
+ );
439
668
  _classPrivateFieldInitSpec(this, _size, void 0);
440
669
  _classPrivateFieldInitSpec(this, _calculatedSize, void 0);
441
670
  _classPrivateFieldInitSpec(this, _keyMap, void 0);
@@ -1131,11 +1360,13 @@ function _initializeSizeTracking() {
1131
1360
  });
1132
1361
  _classPrivateFieldSet2(_requireSize, this, (k, v, size, sizeCalculation) => {
1133
1362
  if (_assertClassBrand(_LRUCache_brand, this, _isBackgroundFetch).call(this, v)) return 0;
1134
- if (!isPosInt(size)) if (sizeCalculation) {
1135
- if (typeof sizeCalculation !== "function") throw new TypeError("sizeCalculation must be a function");
1136
- size = sizeCalculation(v, k);
1137
- if (!isPosInt(size)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
1138
- } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
1363
+ if (!isPosInt(size)) {
1364
+ if (sizeCalculation) {
1365
+ if (typeof sizeCalculation !== "function") throw new TypeError("sizeCalculation must be a function");
1366
+ size = sizeCalculation(v, k);
1367
+ if (!isPosInt(size)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
1368
+ } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
1369
+ }
1139
1370
  return size;
1140
1371
  });
1141
1372
  _classPrivateFieldSet2(_addItemSize, this, (index, size, status) => {
@@ -1218,18 +1449,23 @@ function _backgroundFetch(k, index, options, context) {
1218
1449
  const cb = (v, updateCache = false) => {
1219
1450
  const { aborted } = ac.signal;
1220
1451
  const ignoreAbort = options.ignoreFetchAbort && v !== void 0;
1221
- if (options.status) if (aborted && !updateCache) {
1222
- options.status.fetchAborted = true;
1223
- options.status.fetchError = ac.signal.reason;
1224
- if (ignoreAbort) options.status.fetchAbortIgnored = true;
1225
- } else options.status.fetchResolved = true;
1452
+ if (options.status) {
1453
+ if (aborted && !updateCache) {
1454
+ options.status.fetchAborted = true;
1455
+ options.status.fetchError = ac.signal.reason;
1456
+ if (ignoreAbort) options.status.fetchAbortIgnored = true;
1457
+ } else options.status.fetchResolved = true;
1458
+ }
1226
1459
  if (aborted && !ignoreAbort && !updateCache) return fetchFail(ac.signal.reason);
1227
1460
  const bf = p;
1228
- if (_classPrivateFieldGet2(_valList, this)[index] === p) if (v === void 0) if (bf.__staleWhileFetching) _classPrivateFieldGet2(_valList, this)[index] = bf.__staleWhileFetching;
1229
- else this.delete(k);
1230
- else {
1231
- if (options.status) options.status.fetchUpdated = true;
1232
- this.set(k, v, fetchOpts.options);
1461
+ if (_classPrivateFieldGet2(_valList, this)[index] === p) {
1462
+ if (v === void 0) {
1463
+ if (bf.__staleWhileFetching) _classPrivateFieldGet2(_valList, this)[index] = bf.__staleWhileFetching;
1464
+ else this.delete(k);
1465
+ } else {
1466
+ if (options.status) options.status.fetchUpdated = true;
1467
+ this.set(k, v, fetchOpts.options);
1468
+ }
1233
1469
  }
1234
1470
  return v;
1235
1471
  };
@@ -1305,6 +1541,19 @@ function createCache(max = 500) {
1305
1541
  return new LRUCache({ max });
1306
1542
  }
1307
1543
  //#endregion
1544
+ //#region packages/compiler-sfc/src/template/resolveTemplateAST.ts
1545
+ function resolveTemplateAST(inAST, options) {
1546
+ if (!(inAST === null || inAST === void 0 ? void 0 : inAST.transformed)) return inAST;
1547
+ const { compiler = _vue_compiler_dom, compilerOptions, ssr, onError } = options;
1548
+ const template = (ssr ? _vue_compiler_dom : compiler).parse(inAST.source, {
1549
+ prefixIdentifiers: true,
1550
+ ...compilerOptions,
1551
+ parseMode: "sfc",
1552
+ onError
1553
+ }).children.find((node) => node.type === 1 && node.tag === "template");
1554
+ return (0, _vue_compiler_core.createRoot)(template.children, inAST.source);
1555
+ }
1556
+ //#endregion
1308
1557
  //#region packages/compiler-sfc/src/script/importUsageCheck.ts
1309
1558
  /**
1310
1559
  * Check if an identifier is used in the SFC's template.
@@ -1312,23 +1561,28 @@ function createCache(max = 500) {
1312
1561
  * when not using inline mode.
1313
1562
  * - 2.check whether the built-in properties such as $attrs, $slots, $emit are used in the template
1314
1563
  */
1315
- function isUsedInTemplate(identifier, sfc) {
1316
- return resolveTemplateUsedIdentifiers(sfc).has(identifier);
1564
+ function isUsedInTemplate(identifier, sfc, options) {
1565
+ return resolveTemplateUsedIdentifiers(sfc, options).has(identifier);
1317
1566
  }
1318
1567
  const templateAnalysisCache = createCache();
1319
- function resolveTemplateVModelIdentifiers(sfc) {
1320
- return resolveTemplateAnalysisResult(sfc, false).vModelIds;
1568
+ function resolveTemplateVModelIdentifiers(sfc, options) {
1569
+ return resolveTemplateAnalysisResult(sfc, false, options).vModelIds;
1321
1570
  }
1322
- function resolveTemplateUsedIdentifiers(sfc) {
1323
- return resolveTemplateAnalysisResult(sfc).usedIds;
1571
+ function resolveTemplateUsedIdentifiers(sfc, options) {
1572
+ return resolveTemplateAnalysisResult(sfc, true, options).usedIds;
1324
1573
  }
1325
- function resolveTemplateAnalysisResult(sfc, collectUsedIds = true) {
1574
+ function resolveTemplateAnalysisResult(sfc, collectUsedIds = true, options) {
1326
1575
  const { content, ast } = sfc.template;
1327
1576
  const cached = templateAnalysisCache.get(content);
1328
1577
  if (cached && (!collectUsedIds || cached.usedIds)) return cached;
1329
1578
  const ids = collectUsedIds ? /* @__PURE__ */ new Set() : void 0;
1330
1579
  const vModelIds = /* @__PURE__ */ new Set();
1331
- ast.children.forEach(walk);
1580
+ resolveTemplateAST(ast, {
1581
+ compiler: options === null || options === void 0 ? void 0 : options.compiler,
1582
+ compilerOptions: options === null || options === void 0 ? void 0 : options.compilerOptions,
1583
+ ssr: options === null || options === void 0 ? void 0 : options.ssr,
1584
+ onError: () => {}
1585
+ }).children.forEach(walk);
1332
1586
  function walk(node) {
1333
1587
  switch (node.type) {
1334
1588
  case 1:
@@ -1365,9 +1619,7 @@ function resolveTemplateAnalysisResult(sfc, collectUsedIds = true) {
1365
1619
  }
1366
1620
  node.children.forEach(walk);
1367
1621
  break;
1368
- case 5:
1369
- if (ids) extractIdentifiers$2(ids, node.content);
1370
- break;
1622
+ case 5: if (ids) extractIdentifiers$2(ids, node.content);
1371
1623
  }
1372
1624
  }
1373
1625
  const result = {
@@ -1453,9 +1705,7 @@ function parse(source, options = {}) {
1453
1705
  if (styleBlock.attrs.vars) errors.push(/* @__PURE__ */ new SyntaxError("<style vars> has been replaced by a new proposal: https://github.com/vuejs/rfcs/pull/231"));
1454
1706
  descriptor.styles.push(styleBlock);
1455
1707
  break;
1456
- default:
1457
- descriptor.customBlocks.push(createBlock(node, source, pad));
1458
- break;
1708
+ default: descriptor.customBlocks.push(createBlock(node, source, pad));
1459
1709
  }
1460
1710
  });
1461
1711
  if (!descriptor.template && !descriptor.script && !descriptor.scriptSetup) errors.push(/* @__PURE__ */ new SyntaxError(`At least one <template> or <script> is required in a single file component. ${descriptor.filename}`));
@@ -2018,9 +2268,10 @@ var require_consolidate$1 = /* @__PURE__ */ __commonJSMin(((exports, module) =>
2018
2268
  var partialPath = options.partials[key];
2019
2269
  if (partialPath === void 0 || partialPath === null || partialPath === false) return next(++index);
2020
2270
  var file;
2021
- if (isAbsolute(partialPath)) if (extname(partialPath) !== "") file = partialPath;
2022
- else file = join(partialPath + extname(path$9));
2023
- else file = join(dirname(path$9), partialPath + extname(path$9));
2271
+ if (isAbsolute(partialPath)) {
2272
+ if (extname(partialPath) !== "") file = partialPath;
2273
+ else file = join(partialPath + extname(path$9));
2274
+ } else file = join(dirname(path$9), partialPath + extname(path$9));
2024
2275
  read(file, options, function(err, str) {
2025
2276
  if (err) return cb(err);
2026
2277
  partials[key] = str;
@@ -2914,8 +3165,10 @@ var require_consolidate$1 = /* @__PURE__ */ __commonJSMin(((exports, module) =>
2914
3165
  else if (options.nunjucks && options.nunjucks.configure) env = engine.configure.apply(engine, options.nunjucks.configure);
2915
3166
  if (options.loader) env = new engine.Environment(options.loader);
2916
3167
  else if (options.settings && options.settings.views) env = new engine.Environment(new engine.FileSystemLoader(options.settings.views));
2917
- else if (options.nunjucks && options.nunjucks.loader) if (typeof options.nunjucks.loader === "string") env = new engine.Environment(new engine.FileSystemLoader(options.nunjucks.loader));
2918
- else env = new engine.Environment(new engine.FileSystemLoader(options.nunjucks.loader[0], options.nunjucks.loader[1]));
3168
+ else if (options.nunjucks && options.nunjucks.loader) {
3169
+ if (typeof options.nunjucks.loader === "string") env = new engine.Environment(new engine.FileSystemLoader(options.nunjucks.loader));
3170
+ else env = new engine.Environment(new engine.FileSystemLoader(options.nunjucks.loader[0], options.nunjucks.loader[1]));
3171
+ }
2919
3172
  env.renderString(str, options, cb);
2920
3173
  } catch (err) {
2921
3174
  throw cb(err);
@@ -3296,12 +3549,12 @@ function doCompileTemplate({ filename, id, scoped, slotted, inMap, source, ast:
3296
3549
  const defaultCompiler = ssr ? _vue_compiler_ssr : vapor ? _vue_compiler_vapor : _vue_compiler_dom;
3297
3550
  compiler = compiler || defaultCompiler;
3298
3551
  if (compiler !== defaultCompiler) inAST = void 0;
3299
- if (inAST === null || inAST === void 0 ? void 0 : inAST.transformed) inAST = (0, _vue_compiler_core.createRoot)((ssr ? _vue_compiler_dom : compiler).parse(inAST.source, {
3300
- prefixIdentifiers: true,
3301
- ...compilerOptions,
3302
- parseMode: "sfc",
3552
+ inAST = resolveTemplateAST(inAST, {
3553
+ compiler,
3554
+ compilerOptions,
3555
+ ssr,
3303
3556
  onError: (e) => errors.push(e)
3304
- }).children.find((node) => node.type === 1 && node.tag === "template").children, inAST.source);
3557
+ });
3305
3558
  let { code, ast, preamble, map, helpers } = compiler.compile(inAST || source, {
3306
3559
  mode: "module",
3307
3560
  prefixIdentifiers: true,
@@ -3311,6 +3564,7 @@ function doCompileTemplate({ filename, id, scoped, slotted, inMap, source, ast:
3311
3564
  scopeId: scoped ? longId : void 0,
3312
3565
  slotted,
3313
3566
  sourceMap: true,
3567
+ vapor: ssr && vapor,
3314
3568
  ...compilerOptions,
3315
3569
  bindingMetadata: vapor && !ssr && compilerOptions.bindingMetadata == null ? {} : compilerOptions.bindingMetadata,
3316
3570
  hmr: !isProd,
@@ -3408,7 +3662,7 @@ const trimPlugin = () => {
3408
3662
  };
3409
3663
  trimPlugin.postcss = true;
3410
3664
  //#endregion
3411
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/unesc.js
3665
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/util/unesc.js
3412
3666
  var require_unesc = /* @__PURE__ */ __commonJSMin(((exports) => {
3413
3667
  Object.defineProperty(exports, "__esModule", { value: true });
3414
3668
  exports.default = unesc;
@@ -3459,7 +3713,7 @@ var require_unesc = /* @__PURE__ */ __commonJSMin(((exports) => {
3459
3713
  }
3460
3714
  }));
3461
3715
  //#endregion
3462
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/getProp.js
3716
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/util/getProp.js
3463
3717
  var require_getProp = /* @__PURE__ */ __commonJSMin(((exports) => {
3464
3718
  Object.defineProperty(exports, "__esModule", { value: true });
3465
3719
  exports.default = getProp;
@@ -3475,7 +3729,7 @@ var require_getProp = /* @__PURE__ */ __commonJSMin(((exports) => {
3475
3729
  }
3476
3730
  }));
3477
3731
  //#endregion
3478
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/ensureObject.js
3732
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/util/ensureObject.js
3479
3733
  var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports) => {
3480
3734
  Object.defineProperty(exports, "__esModule", { value: true });
3481
3735
  exports.default = ensureObject;
@@ -3490,7 +3744,7 @@ var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports) => {
3490
3744
  }
3491
3745
  }));
3492
3746
  //#endregion
3493
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/stripComments.js
3747
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/util/stripComments.js
3494
3748
  var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports) => {
3495
3749
  Object.defineProperty(exports, "__esModule", { value: true });
3496
3750
  exports.default = stripComments;
@@ -3510,7 +3764,7 @@ var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports) => {
3510
3764
  }
3511
3765
  }));
3512
3766
  //#endregion
3513
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js
3767
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js
3514
3768
  var require_maxNestingDepth = /* @__PURE__ */ __commonJSMin(((exports) => {
3515
3769
  Object.defineProperty(exports, "__esModule", { value: true });
3516
3770
  exports.MAX_NESTING_DEPTH = void 0;
@@ -3537,7 +3791,7 @@ var require_maxNestingDepth = /* @__PURE__ */ __commonJSMin(((exports) => {
3537
3791
  }
3538
3792
  }));
3539
3793
  //#endregion
3540
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/index.js
3794
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/util/index.js
3541
3795
  var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
3542
3796
  var __importDefault = exports && exports.__importDefault || function(mod) {
3543
3797
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -3587,7 +3841,7 @@ var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
3587
3841
  });
3588
3842
  }));
3589
3843
  //#endregion
3590
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/node.js
3844
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/node.js
3591
3845
  var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
3592
3846
  Object.defineProperty(exports, "__esModule", { value: true });
3593
3847
  var util_1 = require_util$1();
@@ -3741,7 +3995,7 @@ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
3741
3995
  }();
3742
3996
  }));
3743
3997
  //#endregion
3744
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/types.js
3998
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/types.js
3745
3999
  var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
3746
4000
  Object.defineProperty(exports, "__esModule", { value: true });
3747
4001
  exports.UNIVERSAL = exports.ATTRIBUTE = exports.CLASS = exports.COMBINATOR = exports.COMMENT = exports.ID = exports.NESTING = exports.PSEUDO = exports.ROOT = exports.SELECTOR = exports.STRING = exports.TAG = void 0;
@@ -3759,7 +4013,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
3759
4013
  exports.UNIVERSAL = "universal";
3760
4014
  }));
3761
4015
  //#endregion
3762
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/container.js
4016
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/container.js
3763
4017
  var require_container = /* @__PURE__ */ __commonJSMin(((exports) => {
3764
4018
  var __extends = exports && exports.__extends || (function() {
3765
4019
  var extendStatics = function(d, b) {
@@ -4150,7 +4404,7 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports) => {
4150
4404
  }(node_1.default);
4151
4405
  }));
4152
4406
  //#endregion
4153
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/root.js
4407
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/root.js
4154
4408
  var require_root = /* @__PURE__ */ __commonJSMin(((exports) => {
4155
4409
  var __extends = exports && exports.__extends || (function() {
4156
4410
  var extendStatics = function(d, b) {
@@ -4206,7 +4460,7 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports) => {
4206
4460
  }(container_1.default);
4207
4461
  }));
4208
4462
  //#endregion
4209
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/selector.js
4463
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/selector.js
4210
4464
  var require_selector = /* @__PURE__ */ __commonJSMin(((exports) => {
4211
4465
  var __extends = exports && exports.__extends || (function() {
4212
4466
  var extendStatics = function(d, b) {
@@ -4276,9 +4530,10 @@ var require_cssesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4276
4530
  else counter--;
4277
4531
  }
4278
4532
  value = "\\" + codePoint.toString(16).toUpperCase() + " ";
4279
- } else if (options.escapeEverything) if (regexAnySingleEscape.test(character)) value = "\\" + character;
4280
- else value = "\\" + codePoint.toString(16).toUpperCase() + " ";
4281
- else if (/[\t\n\f\r\x0B]/.test(character)) value = "\\" + codePoint.toString(16).toUpperCase() + " ";
4533
+ } else if (options.escapeEverything) {
4534
+ if (regexAnySingleEscape.test(character)) value = "\\" + character;
4535
+ else value = "\\" + codePoint.toString(16).toUpperCase() + " ";
4536
+ } else if (/[\t\n\f\r\x0B]/.test(character)) value = "\\" + codePoint.toString(16).toUpperCase() + " ";
4282
4537
  else if (character == "\\" || !isIdentifier && (character == "\"" && quote == character || character == "'" && quote == character) || isIdentifier && regexSingleEscape.test(character)) value = "\\" + character;
4283
4538
  else value = character;
4284
4539
  output += value;
@@ -4304,7 +4559,7 @@ var require_cssesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4304
4559
  module.exports = cssesc;
4305
4560
  }));
4306
4561
  //#endregion
4307
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/className.js
4562
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/className.js
4308
4563
  var require_className = /* @__PURE__ */ __commonJSMin(((exports) => {
4309
4564
  var __extends = exports && exports.__extends || (function() {
4310
4565
  var extendStatics = function(d, b) {
@@ -4364,7 +4619,7 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports) => {
4364
4619
  }(node_1.default);
4365
4620
  }));
4366
4621
  //#endregion
4367
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/comment.js
4622
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/comment.js
4368
4623
  var require_comment = /* @__PURE__ */ __commonJSMin(((exports) => {
4369
4624
  var __extends = exports && exports.__extends || (function() {
4370
4625
  var extendStatics = function(d, b) {
@@ -4401,7 +4656,7 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports) => {
4401
4656
  }(node_1.default);
4402
4657
  }));
4403
4658
  //#endregion
4404
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/id.js
4659
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/id.js
4405
4660
  var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
4406
4661
  var __extends = exports && exports.__extends || (function() {
4407
4662
  var extendStatics = function(d, b) {
@@ -4441,7 +4696,7 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
4441
4696
  }(node_1.default);
4442
4697
  }));
4443
4698
  //#endregion
4444
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/namespace.js
4699
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/namespace.js
4445
4700
  var require_namespace = /* @__PURE__ */ __commonJSMin(((exports) => {
4446
4701
  var __extends = exports && exports.__extends || (function() {
4447
4702
  var extendStatics = function(d, b) {
@@ -4524,7 +4779,7 @@ var require_namespace = /* @__PURE__ */ __commonJSMin(((exports) => {
4524
4779
  }(__importDefault(require_node$1()).default);
4525
4780
  }));
4526
4781
  //#endregion
4527
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/tag.js
4782
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/tag.js
4528
4783
  var require_tag = /* @__PURE__ */ __commonJSMin(((exports) => {
4529
4784
  var __extends = exports && exports.__extends || (function() {
4530
4785
  var extendStatics = function(d, b) {
@@ -4561,7 +4816,7 @@ var require_tag = /* @__PURE__ */ __commonJSMin(((exports) => {
4561
4816
  }(namespace_1.default);
4562
4817
  }));
4563
4818
  //#endregion
4564
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/string.js
4819
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/string.js
4565
4820
  var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
4566
4821
  var __extends = exports && exports.__extends || (function() {
4567
4822
  var extendStatics = function(d, b) {
@@ -4599,7 +4854,7 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
4599
4854
  exports.default = String;
4600
4855
  }));
4601
4856
  //#endregion
4602
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/pseudo.js
4857
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/pseudo.js
4603
4858
  var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports) => {
4604
4859
  var __extends = exports && exports.__extends || (function() {
4605
4860
  var extendStatics = function(d, b) {
@@ -4657,7 +4912,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4657
4912
  module.exports = require("util").deprecate;
4658
4913
  }));
4659
4914
  //#endregion
4660
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/attribute.js
4915
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/attribute.js
4661
4916
  var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
4662
4917
  var __extends = exports && exports.__extends || (function() {
4663
4918
  var extendStatics = function(d, b) {
@@ -5043,7 +5298,7 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
5043
5298
  }
5044
5299
  }));
5045
5300
  //#endregion
5046
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/universal.js
5301
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/universal.js
5047
5302
  var require_universal = /* @__PURE__ */ __commonJSMin(((exports) => {
5048
5303
  var __extends = exports && exports.__extends || (function() {
5049
5304
  var extendStatics = function(d, b) {
@@ -5081,7 +5336,7 @@ var require_universal = /* @__PURE__ */ __commonJSMin(((exports) => {
5081
5336
  }(namespace_1.default);
5082
5337
  }));
5083
5338
  //#endregion
5084
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/combinator.js
5339
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/combinator.js
5085
5340
  var require_combinator = /* @__PURE__ */ __commonJSMin(((exports) => {
5086
5341
  var __extends = exports && exports.__extends || (function() {
5087
5342
  var extendStatics = function(d, b) {
@@ -5118,7 +5373,7 @@ var require_combinator = /* @__PURE__ */ __commonJSMin(((exports) => {
5118
5373
  }(node_1.default);
5119
5374
  }));
5120
5375
  //#endregion
5121
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/nesting.js
5376
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/nesting.js
5122
5377
  var require_nesting = /* @__PURE__ */ __commonJSMin(((exports) => {
5123
5378
  var __extends = exports && exports.__extends || (function() {
5124
5379
  var extendStatics = function(d, b) {
@@ -5156,7 +5411,7 @@ var require_nesting = /* @__PURE__ */ __commonJSMin(((exports) => {
5156
5411
  }(node_1.default);
5157
5412
  }));
5158
5413
  //#endregion
5159
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/sortAscending.js
5414
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/sortAscending.js
5160
5415
  var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports) => {
5161
5416
  Object.defineProperty(exports, "__esModule", { value: true });
5162
5417
  exports.default = sortAscending;
@@ -5167,7 +5422,7 @@ var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports) => {
5167
5422
  }
5168
5423
  }));
5169
5424
  //#endregion
5170
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/tokenTypes.js
5425
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/tokenTypes.js
5171
5426
  var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
5172
5427
  Object.defineProperty(exports, "__esModule", { value: true });
5173
5428
  exports.combinator = exports.word = exports.comment = exports.str = exports.tab = exports.newline = exports.feed = exports.cr = exports.backslash = exports.bang = exports.slash = exports.doubleQuote = exports.singleQuote = exports.space = exports.greaterThan = exports.pipe = exports.equals = exports.plus = exports.caret = exports.tilde = exports.dollar = exports.closeSquare = exports.openSquare = exports.closeParenthesis = exports.openParenthesis = exports.semicolon = exports.colon = exports.comma = exports.at = exports.asterisk = exports.ampersand = void 0;
@@ -5204,7 +5459,7 @@ var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
5204
5459
  exports.combinator = -3;
5205
5460
  }));
5206
5461
  //#endregion
5207
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/tokenize.js
5462
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/tokenize.js
5208
5463
  var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
5209
5464
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
5210
5465
  if (k2 === void 0) k2 = k;
@@ -5247,7 +5502,8 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
5247
5502
  return result;
5248
5503
  };
5249
5504
  })();
5250
- var _a, _b;
5505
+ var _a;
5506
+ var _b;
5251
5507
  Object.defineProperty(exports, "__esModule", { value: true });
5252
5508
  exports.FIELDS = void 0;
5253
5509
  exports.default = tokenize;
@@ -5425,7 +5681,6 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
5425
5681
  endColumn = next - offset;
5426
5682
  }
5427
5683
  end = next + 1;
5428
- break;
5429
5684
  }
5430
5685
  tokens.push([
5431
5686
  tokenType,
@@ -5446,7 +5701,7 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
5446
5701
  }
5447
5702
  }));
5448
5703
  //#endregion
5449
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/parser.js
5704
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/parser.js
5450
5705
  var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
5451
5706
  var __assign = exports && exports.__assign || function() {
5452
5707
  __assign = Object.assign || function(t) {
@@ -5528,7 +5783,8 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
5528
5783
  var __importDefault = exports && exports.__importDefault || function(mod) {
5529
5784
  return mod && mod.__esModule ? mod : { "default": mod };
5530
5785
  };
5531
- var _a, _b;
5786
+ var _a;
5787
+ var _b;
5532
5788
  Object.defineProperty(exports, "__esModule", { value: true });
5533
5789
  var root_1 = __importDefault(require_root());
5534
5790
  var selector_1 = __importDefault(require_selector());
@@ -5597,10 +5853,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
5597
5853
  return indexes;
5598
5854
  }
5599
5855
  function uniqs() {
5600
- var list = Array.prototype.concat.apply([], arguments);
5601
- return list.filter(function(item, i) {
5602
- return i === list.indexOf(item);
5603
- });
5856
+ return Array.from(new Set(Array.prototype.concat.apply([], arguments)));
5604
5857
  }
5605
5858
  exports.default = function() {
5606
5859
  function Parser(rule, options) {
@@ -5648,6 +5901,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
5648
5901
  attr.push(this.currToken);
5649
5902
  this.position++;
5650
5903
  }
5904
+ if (!this.currToken) return this.expected("closing square bracket", startingToken[tokenize_1.FIELDS.START_POS]);
5651
5905
  if (this.currToken[tokenize_1.FIELDS.TYPE] !== tokens.closeSquare) return this.expected("closing square bracket", this.currToken[tokenize_1.FIELDS.START_POS]);
5652
5906
  var len = attr.length;
5653
5907
  var node = {
@@ -5691,7 +5945,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
5691
5945
  }
5692
5946
  if (commentBefore) {
5693
5947
  (0, util_1.ensureObject)(node, "raws", "spaces", "attribute");
5694
- node.raws.spaces.attribute.before = spaceBefore;
5948
+ node.raws.spaces.attribute.before = commentBefore;
5695
5949
  commentBefore = "";
5696
5950
  }
5697
5951
  node.namespace = (node.namespace || "") + content;
@@ -5804,18 +6058,19 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
5804
6058
  spaceAfterMeaningfulToken = false;
5805
6059
  break;
5806
6060
  case tokens.comment:
5807
- if (lastAdded) if (spaceAfterMeaningfulToken || next && next[tokenize_1.FIELDS.TYPE] === tokens.space || lastAdded === "insensitive") {
5808
- var lastComment = (0, util_1.getProp)(node, "spaces", lastAdded, "after") || "";
5809
- var rawLastComment = (0, util_1.getProp)(node, "raws", "spaces", lastAdded, "after") || lastComment;
5810
- (0, util_1.ensureObject)(node, "raws", "spaces", lastAdded);
5811
- node.raws.spaces[lastAdded].after = rawLastComment + content;
5812
- } else {
5813
- var lastValue = node[lastAdded] || "";
5814
- var rawLastValue = (0, util_1.getProp)(node, "raws", lastAdded) || lastValue;
5815
- (0, util_1.ensureObject)(node, "raws");
5816
- node.raws[lastAdded] = rawLastValue + content;
5817
- }
5818
- else commentBefore = commentBefore + content;
6061
+ if (lastAdded) {
6062
+ if (spaceAfterMeaningfulToken || next && next[tokenize_1.FIELDS.TYPE] === tokens.space || lastAdded === "insensitive") {
6063
+ var lastComment = (0, util_1.getProp)(node, "spaces", lastAdded, "after") || "";
6064
+ var rawLastComment = (0, util_1.getProp)(node, "raws", "spaces", lastAdded, "after") || lastComment;
6065
+ (0, util_1.ensureObject)(node, "raws", "spaces", lastAdded);
6066
+ node.raws.spaces[lastAdded].after = rawLastComment + content;
6067
+ } else {
6068
+ var lastValue = node[lastAdded] || "";
6069
+ var rawLastValue = (0, util_1.getProp)(node, "raws", lastAdded) || lastValue;
6070
+ (0, util_1.ensureObject)(node, "raws");
6071
+ node.raws[lastAdded] = rawLastValue + content;
6072
+ }
6073
+ } else commentBefore = commentBefore + content;
5819
6074
  break;
5820
6075
  default: return this.error("Unexpected \"".concat(content, "\" found."), { index: token[tokenize_1.FIELDS.START_POS] });
5821
6076
  }
@@ -6027,7 +6282,9 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
6027
6282
  return this.error("Unexpected '|'.", this.currToken[tokenize_1.FIELDS.START_POS]);
6028
6283
  };
6029
6284
  Parser.prototype.namespace = function() {
6030
- var before = this.prevToken && this.content(this.prevToken) || true;
6285
+ var prev = this.prevToken;
6286
+ var before = prev && (prev[tokenize_1.FIELDS.TYPE] === tokens.word || prev[tokenize_1.FIELDS.TYPE] === tokens.asterisk || prev[tokenize_1.FIELDS.TYPE] === tokens.ampersand) ? this.content(prev) : true;
6287
+ if (!this.nextToken) return this.unexpectedPipe();
6031
6288
  if (this.nextToken[tokenize_1.FIELDS.TYPE] === tokens.word) {
6032
6289
  this.position++;
6033
6290
  return this.word(before);
@@ -6055,6 +6312,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
6055
6312
  Parser.prototype.parentheses = function() {
6056
6313
  var last = this.current.last;
6057
6314
  var unbalanced = 1;
6315
+ var openingToken = this.currToken;
6058
6316
  this.position++;
6059
6317
  if (last && last.type === types.PSEUDO) {
6060
6318
  var selector = new selector_1.default({
@@ -6099,7 +6357,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
6099
6357
  sourceIndex: parenStart[tokenize_1.FIELDS.START_POS]
6100
6358
  }));
6101
6359
  }
6102
- if (unbalanced) return this.expected("closing parenthesis", this.currToken[tokenize_1.FIELDS.START_POS]);
6360
+ if (unbalanced) return this.expected("closing parenthesis", (this.currToken || openingToken)[tokenize_1.FIELDS.START_POS]);
6103
6361
  };
6104
6362
  Parser.prototype.pseudo = function() {
6105
6363
  var _this = this;
@@ -6187,9 +6445,14 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
6187
6445
  return word[i - 1] !== "\\";
6188
6446
  });
6189
6447
  var interpolations = indexesOf(word, "#{");
6190
- if (interpolations.length) hasId = hasId.filter(function(hashIndex) {
6191
- return !~interpolations.indexOf(hashIndex);
6192
- });
6448
+ if (interpolations.length) {
6449
+ var interpolationIndexes_1 = new Set(interpolations);
6450
+ hasId = hasId.filter(function(hashIndex) {
6451
+ return !interpolationIndexes_1.has(hashIndex);
6452
+ });
6453
+ }
6454
+ var classIndexes = new Set(hasClass);
6455
+ var idIndexes = new Set(hasId);
6193
6456
  var indices = (0, sortAscending_1.default)(uniqs(__spreadArray(__spreadArray([0], __read(hasClass), false), __read(hasId), false)));
6194
6457
  indices.forEach(function(ind, i) {
6195
6458
  var index = indices[i + 1] || word.length;
@@ -6199,14 +6462,14 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
6199
6462
  var current = _this.currToken;
6200
6463
  var sourceIndex = current[tokenize_1.FIELDS.START_POS] + indices[i];
6201
6464
  var source = getSource(current[1], current[2] + ind, current[3], current[2] + (index - 1));
6202
- if (~hasClass.indexOf(ind)) {
6465
+ if (classIndexes.has(ind)) {
6203
6466
  var classNameOpts = {
6204
6467
  value: value.slice(1),
6205
6468
  source,
6206
6469
  sourceIndex
6207
6470
  };
6208
6471
  node = new className_1.default(unescapeProp(classNameOpts, "value"));
6209
- } else if (~hasId.indexOf(ind)) {
6472
+ } else if (idIndexes.has(ind)) {
6210
6473
  var idOpts = {
6211
6474
  value: value.slice(1),
6212
6475
  source,
@@ -6371,7 +6634,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
6371
6634
  }();
6372
6635
  }));
6373
6636
  //#endregion
6374
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/processor.js
6637
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/processor.js
6375
6638
  var require_processor = /* @__PURE__ */ __commonJSMin(((exports) => {
6376
6639
  var __importDefault = exports && exports.__importDefault || function(mod) {
6377
6640
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -6520,7 +6783,7 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports) => {
6520
6783
  }();
6521
6784
  }));
6522
6785
  //#endregion
6523
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/constructors.js
6786
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/constructors.js
6524
6787
  var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
6525
6788
  var __importDefault = exports && exports.__importDefault || function(mod) {
6526
6789
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -6589,7 +6852,7 @@ var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
6589
6852
  exports.universal = universal;
6590
6853
  }));
6591
6854
  //#endregion
6592
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/guards.js
6855
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/guards.js
6593
6856
  var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
6594
6857
  var _a;
6595
6858
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6633,7 +6896,7 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
6633
6896
  }
6634
6897
  }));
6635
6898
  //#endregion
6636
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/index.js
6899
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/selectors/index.js
6637
6900
  var require_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
6638
6901
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
6639
6902
  if (k2 === void 0) k2 = k;
@@ -6658,7 +6921,7 @@ var require_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
6658
6921
  __exportStar(require_guards(), exports);
6659
6922
  }));
6660
6923
  //#endregion
6661
- //#region node_modules/.pnpm/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/index.js
6924
+ //#region node_modules/.pnpm/postcss-selector-parser@7.1.6/node_modules/postcss-selector-parser/dist/index.js
6662
6925
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6663
6926
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
6664
6927
  if (k2 === void 0) k2 = k;
@@ -6834,15 +7097,17 @@ function rewriteSelector(id, rule, selector, selectorRoot, deep, slotted = false
6834
7097
  if (n.type === "universal") {
6835
7098
  const prev = selector.at(selector.index(n) - 1);
6836
7099
  const next = selector.at(selector.index(n) + 1);
6837
- if (!prev) if (next) {
6838
- if (next.type === "combinator" && next.value === " ") selector.removeChild(next);
6839
- selector.removeChild(n);
6840
- return;
6841
- } else {
6842
- node = import_dist.default.combinator({ value: "" });
6843
- selector.insertBefore(n, node);
6844
- selector.removeChild(n);
6845
- return false;
7100
+ if (!prev) {
7101
+ if (next) {
7102
+ if (next.type === "combinator" && next.value === " ") selector.removeChild(next);
7103
+ selector.removeChild(n);
7104
+ return;
7105
+ } else {
7106
+ node = import_dist.default.combinator({ value: "" });
7107
+ selector.insertBefore(n, node);
7108
+ selector.removeChild(n);
7109
+ return false;
7110
+ }
6846
7111
  }
6847
7112
  if (node) return;
6848
7113
  }
@@ -7086,12 +7351,14 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
7086
7351
  part = parts[i];
7087
7352
  if (part === ".") parts.splice(i, 1);
7088
7353
  else if (part === "..") up++;
7089
- else if (up > 0) if (part === "") {
7090
- parts.splice(i + 1, up);
7091
- up = 0;
7092
- } else {
7093
- parts.splice(i, 2);
7094
- up--;
7354
+ else if (up > 0) {
7355
+ if (part === "") {
7356
+ parts.splice(i + 1, up);
7357
+ up = 0;
7358
+ } else {
7359
+ parts.splice(i, 2);
7360
+ up--;
7361
+ }
7095
7362
  }
7096
7363
  }
7097
7364
  path = parts.join("/");
@@ -7343,8 +7610,10 @@ var require_array_set = /* @__PURE__ */ __commonJSMin(((exports) => {
7343
7610
  var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
7344
7611
  var idx = this._array.length;
7345
7612
  if (!isDuplicate || aAllowDuplicates) this._array.push(aStr);
7346
- if (!isDuplicate) if (hasNativeMap) this._set.set(aStr, idx);
7347
- else this._set[sStr] = idx;
7613
+ if (!isDuplicate) {
7614
+ if (hasNativeMap) this._set.set(aStr, idx);
7615
+ else this._set[sStr] = idx;
7616
+ }
7348
7617
  };
7349
7618
  /**
7350
7619
  * Is the given string a member of this set?
@@ -8660,18 +8929,20 @@ var require_source_node = /* @__PURE__ */ __commonJSMin(((exports) => {
8660
8929
  var lastGeneratedLine = 1, lastGeneratedColumn = 0;
8661
8930
  var lastMapping = null;
8662
8931
  aSourceMapConsumer.eachMapping(function(mapping) {
8663
- if (lastMapping !== null) if (lastGeneratedLine < mapping.generatedLine) {
8664
- addMappingWithCode(lastMapping, shiftNextLine());
8665
- lastGeneratedLine++;
8666
- lastGeneratedColumn = 0;
8667
- } else {
8668
- var nextLine = remainingLines[remainingLinesIndex] || "";
8669
- var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
8670
- remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
8671
- lastGeneratedColumn = mapping.generatedColumn;
8672
- addMappingWithCode(lastMapping, code);
8673
- lastMapping = mapping;
8674
- return;
8932
+ if (lastMapping !== null) {
8933
+ if (lastGeneratedLine < mapping.generatedLine) {
8934
+ addMappingWithCode(lastMapping, shiftNextLine());
8935
+ lastGeneratedLine++;
8936
+ lastGeneratedColumn = 0;
8937
+ } else {
8938
+ var nextLine = remainingLines[remainingLinesIndex] || "";
8939
+ var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
8940
+ remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
8941
+ lastGeneratedColumn = mapping.generatedColumn;
8942
+ addMappingWithCode(lastMapping, code);
8943
+ lastMapping = mapping;
8944
+ return;
8945
+ }
8675
8946
  }
8676
8947
  while (lastGeneratedLine < mapping.generatedLine) {
8677
8948
  node.add(shiftNextLine());
@@ -9076,7 +9347,7 @@ const processors = {
9076
9347
  stylus: styl
9077
9348
  };
9078
9349
  //#endregion
9079
- //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.19/node_modules/postcss-modules/build/fs.js
9350
+ //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/fs.js
9080
9351
  var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
9081
9352
  Object.defineProperty(exports, "__esModule", { value: true });
9082
9353
  exports.getFileSystem = getFileSystem;
@@ -9098,7 +9369,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
9098
9369
  }
9099
9370
  }));
9100
9371
  //#endregion
9101
- //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.19/node_modules/postcss-modules/build/unquote.js
9372
+ //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/unquote.js
9102
9373
  var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
9103
9374
  Object.defineProperty(exports, "__esModule", { value: true });
9104
9375
  exports.default = unquote;
@@ -9111,7 +9382,7 @@ var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
9111
9382
  }
9112
9383
  }));
9113
9384
  //#endregion
9114
- //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.19/node_modules/icss-utils/src/replaceValueSymbols.js
9385
+ //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/replaceValueSymbols.js
9115
9386
  var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9116
9387
  const matchValueName = /[$]?[\w-]+/g;
9117
9388
  const replaceValueSymbols = (value, replacements) => {
@@ -9128,7 +9399,7 @@ var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, modul
9128
9399
  module.exports = replaceValueSymbols;
9129
9400
  }));
9130
9401
  //#endregion
9131
- //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.19/node_modules/icss-utils/src/replaceSymbols.js
9402
+ //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/replaceSymbols.js
9132
9403
  var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9133
9404
  const replaceValueSymbols = require_replaceValueSymbols();
9134
9405
  const replaceSymbols = (css, replacements) => {
@@ -9141,7 +9412,7 @@ var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) =>
9141
9412
  module.exports = replaceSymbols;
9142
9413
  }));
9143
9414
  //#endregion
9144
- //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.19/node_modules/icss-utils/src/extractICSS.js
9415
+ //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/extractICSS.js
9145
9416
  var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9146
9417
  const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
9147
9418
  const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
@@ -9195,7 +9466,7 @@ var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9195
9466
  module.exports = extractICSS;
9196
9467
  }));
9197
9468
  //#endregion
9198
- //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.19/node_modules/icss-utils/src/createICSSRules.js
9469
+ //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/createICSSRules.js
9199
9470
  var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9200
9471
  const createImports = (imports, postcss, mode = "rule") => {
9201
9472
  return Object.keys(imports).map((path) => {
@@ -9239,7 +9510,7 @@ var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) =
9239
9510
  module.exports = createICSSRules;
9240
9511
  }));
9241
9512
  //#endregion
9242
- //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.19/node_modules/icss-utils/src/index.js
9513
+ //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.28/node_modules/icss-utils/src/index.js
9243
9514
  var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9244
9515
  module.exports = {
9245
9516
  replaceValueSymbols: require_replaceValueSymbols(),
@@ -9249,7 +9520,7 @@ var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9249
9520
  };
9250
9521
  }));
9251
9522
  //#endregion
9252
- //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.19/node_modules/postcss-modules/build/Parser.js
9523
+ //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/Parser.js
9253
9524
  var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
9254
9525
  Object.defineProperty(exports, "__esModule", { value: true });
9255
9526
  exports.default = void 0;
@@ -9317,7 +9588,7 @@ var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
9317
9588
  exports.default = Parser;
9318
9589
  }));
9319
9590
  //#endregion
9320
- //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.19/node_modules/postcss-modules/build/saveJSON.js
9591
+ //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/saveJSON.js
9321
9592
  var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
9322
9593
  Object.defineProperty(exports, "__esModule", { value: true });
9323
9594
  exports.default = saveJSON;
@@ -9332,16 +9603,6 @@ var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
9332
9603
  //#endregion
9333
9604
  //#region node_modules/.pnpm/lodash.camelcase@4.3.0/node_modules/lodash.camelcase/index.js
9334
9605
  var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9335
- /**
9336
- * lodash (Custom Build) <https://lodash.com/>
9337
- * Build: `lodash modularize exports="npm" -o ./`
9338
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
9339
- * Released under MIT license <https://lodash.com/license>
9340
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
9341
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
9342
- */
9343
- /** Used as references for various `Number` constants. */
9344
- var INFINITY = Infinity;
9345
9606
  /** `Object#toString` result references. */
9346
9607
  var symbolTag = "[object Symbol]";
9347
9608
  /** Used to match words composed of alphanumeric characters. */
@@ -9349,19 +9610,53 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
9349
9610
  /** Used to match Latin Unicode letters (excluding mathematical operators). */
9350
9611
  var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
9351
9612
  /** Used to compose unicode character classes. */
9352
- var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f\\ufe20-\\ufe23", rsComboSymbolsRange = "\\u20d0-\\u20f0", rsDingbatRange = "\\u2700-\\u27bf", rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rsPunctuationRange = "\\u2000-\\u206f", rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", rsVarRange = "\\ufe0e\\ufe0f", rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
9613
+ var rsAstralRange = "\\ud800-\\udfff";
9614
+ var rsComboMarksRange = "\\u0300-\\u036f\\ufe20-\\ufe23";
9615
+ var rsComboSymbolsRange = "\\u20d0-\\u20f0";
9616
+ var rsDingbatRange = "\\u2700-\\u27bf";
9617
+ var rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff";
9618
+ var rsMathOpRange = "\\xac\\xb1\\xd7\\xf7";
9619
+ var rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf";
9620
+ var rsPunctuationRange = "\\u2000-\\u206f";
9621
+ var rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000";
9622
+ var rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde";
9623
+ var rsVarRange = "\\ufe0e\\ufe0f";
9624
+ var rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
9353
9625
  /** Used to compose unicode capture groups. */
9354
- var rsApos = "['’]", rsAstral = "[" + rsAstralRange + "]", rsBreak = "[" + rsBreakRange + "]", rsCombo = "[" + rsComboMarksRange + rsComboSymbolsRange + "]", rsDigits = "\\d+", rsDingbat = "[" + rsDingbatRange + "]", rsLower = "[" + rsLowerRange + "]", rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsUpper = "[" + rsUpperRange + "]", rsZWJ = "\\u200d";
9626
+ var rsApos = "['’]";
9627
+ var rsAstral = "[" + rsAstralRange + "]";
9628
+ var rsBreak = "[" + rsBreakRange + "]";
9629
+ var rsCombo = "[" + rsComboMarksRange + rsComboSymbolsRange + "]";
9630
+ var rsDigits = "\\d+";
9631
+ var rsDingbat = "[" + rsDingbatRange + "]";
9632
+ var rsLower = "[" + rsLowerRange + "]";
9633
+ var rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]";
9634
+ var rsFitz = "\\ud83c[\\udffb-\\udfff]";
9635
+ var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
9636
+ var rsNonAstral = "[^" + rsAstralRange + "]";
9637
+ var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
9638
+ var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
9639
+ var rsUpper = "[" + rsUpperRange + "]";
9640
+ var rsZWJ = "\\u200d";
9355
9641
  /** Used to compose unicode regexes. */
9356
- var rsLowerMisc = "(?:" + rsLower + "|" + rsMisc + ")", rsUpperMisc = "(?:" + rsUpper + "|" + rsMisc + ")", rsOptLowerContr = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?", rsOptUpperContr = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [
9642
+ var rsLowerMisc = "(?:" + rsLower + "|" + rsMisc + ")";
9643
+ var rsUpperMisc = "(?:" + rsUpper + "|" + rsMisc + ")";
9644
+ var rsOptLowerContr = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?";
9645
+ var rsOptUpperContr = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?";
9646
+ var reOptMod = rsModifier + "?";
9647
+ var rsOptVar = "[" + rsVarRange + "]?";
9648
+ var rsOptJoin = "(?:" + rsZWJ + "(?:" + [
9357
9649
  rsNonAstral,
9358
9650
  rsRegional,
9359
9651
  rsSurrPair
9360
- ].join("|") + ")" + rsOptVar + reOptMod + ")*", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = "(?:" + [
9652
+ ].join("|") + ")" + rsOptVar + reOptMod + ")*";
9653
+ var rsSeq = rsOptVar + reOptMod + rsOptJoin;
9654
+ var rsEmoji = "(?:" + [
9361
9655
  rsDingbat,
9362
9656
  rsRegional,
9363
9657
  rsSurrPair
9364
- ].join("|") + ")" + rsSeq, rsSymbol = "(?:" + [
9658
+ ].join("|") + ")" + rsSeq;
9659
+ var rsSymbol = "(?:" + [
9365
9660
  rsNonAstral + rsCombo + "?",
9366
9661
  rsCombo,
9367
9662
  rsRegional,
@@ -9715,7 +10010,8 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
9715
10010
  /** Built-in value references. */
9716
10011
  var Symbol = root.Symbol;
9717
10012
  /** Used to convert symbols to primitives and strings. */
9718
- var symbolProto = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
10013
+ var symbolProto = Symbol ? Symbol.prototype : void 0;
10014
+ var symbolToString = symbolProto ? symbolProto.toString : void 0;
9719
10015
  /**
9720
10016
  * The base implementation of `_.slice` without an iteratee call guard.
9721
10017
  *
@@ -9748,7 +10044,7 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
9748
10044
  if (typeof value == "string") return value;
9749
10045
  if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
9750
10046
  var result = value + "";
9751
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
10047
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
9752
10048
  }
9753
10049
  /**
9754
10050
  * Casts `array` to a slice if it's needed.
@@ -9973,7 +10269,7 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
9973
10269
  module.exports = camelCase;
9974
10270
  }));
9975
10271
  //#endregion
9976
- //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.19/node_modules/postcss-modules/build/localsConvention.js
10272
+ //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/localsConvention.js
9977
10273
  var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
9978
10274
  Object.defineProperty(exports, "__esModule", { value: true });
9979
10275
  exports.makeLocalsConventionReducer = makeLocalsConventionReducer;
@@ -10004,16 +10300,14 @@ var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
10004
10300
  tokens[className] = value;
10005
10301
  tokens[dashesCamelCase(className)] = value;
10006
10302
  break;
10007
- case "dashesOnly":
10008
- tokens[dashesCamelCase(className)] = value;
10009
- break;
10303
+ case "dashesOnly": tokens[dashesCamelCase(className)] = value;
10010
10304
  }
10011
10305
  return tokens;
10012
10306
  };
10013
10307
  }
10014
10308
  }));
10015
10309
  //#endregion
10016
- //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.19/node_modules/postcss-modules/build/FileSystemLoader.js
10310
+ //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/FileSystemLoader.js
10017
10311
  var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
10018
10312
  Object.defineProperty(exports, "__esModule", { value: true });
10019
10313
  exports.default = void 0;
@@ -10098,7 +10392,7 @@ var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
10098
10392
  exports.default = FileSystemLoader;
10099
10393
  }));
10100
10394
  //#endregion
10101
- //#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.19/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
10395
+ //#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.28/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
10102
10396
  var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10103
10397
  const PERMANENT_MARKER = 2;
10104
10398
  const TEMPORARY_MARKER = 1;
@@ -10137,7 +10431,7 @@ var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) =
10137
10431
  module.exports = topologicalSort;
10138
10432
  }));
10139
10433
  //#endregion
10140
- //#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.19/node_modules/postcss-modules-extract-imports/src/index.js
10434
+ //#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.28/node_modules/postcss-modules-extract-imports/src/index.js
10141
10435
  var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10142
10436
  const topologicalSort = require_topologicalSort();
10143
10437
  const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
@@ -10232,10 +10526,13 @@ var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10232
10526
  declaration.value = values.join(", ");
10233
10527
  });
10234
10528
  const importsOrder = topologicalSort(graph, failOnWrongOrder);
10235
- if (importsOrder instanceof Error) throw importDecls[importsOrder.nodes.find((importPath) => importDecls.hasOwnProperty(importPath))].error("Failed to resolve order of composed modules " + importsOrder.nodes.map((importPath) => "`" + importPath + "`").join(", ") + ".", {
10236
- plugin: "postcss-modules-extract-imports",
10237
- word: "composes"
10238
- });
10529
+ if (importsOrder instanceof Error) {
10530
+ const importPath = importsOrder.nodes.find((importPath) => importDecls.hasOwnProperty(importPath));
10531
+ throw importDecls[importPath].error("Failed to resolve order of composed modules " + importsOrder.nodes.map((importPath) => "`" + importPath + "`").join(", ") + ".", {
10532
+ plugin: "postcss-modules-extract-imports",
10533
+ word: "composes"
10534
+ });
10535
+ }
10239
10536
  let lastImportRule;
10240
10537
  importsOrder.forEach((path) => {
10241
10538
  const importedSymbols = imports[path];
@@ -10267,7 +10564,7 @@ var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10267
10564
  //#endregion
10268
10565
  //#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/wasm-hash.js
10269
10566
  var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10270
- const MAX_SHORT_STRING = Math.floor(65472 / 4) & -4;
10567
+ const MAX_SHORT_STRING = Math.floor(16368) & -4;
10271
10568
  var WasmHash = class {
10272
10569
  /**
10273
10570
  * @param {WebAssembly.Instance} instance wasm instance
@@ -10314,28 +10611,29 @@ var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10314
10611
  _updateWithShortString(data, encoding) {
10315
10612
  const { exports: exports$3, buffered, mem, chunkSize } = this;
10316
10613
  let endPos;
10317
- if (data.length < 70) if (!encoding || encoding === "utf-8" || encoding === "utf8") {
10318
- endPos = buffered;
10319
- for (let i = 0; i < data.length; i++) {
10320
- const cc = data.charCodeAt(i);
10321
- if (cc < 128) mem[endPos++] = cc;
10322
- else if (cc < 2048) {
10323
- mem[endPos] = cc >> 6 | 192;
10324
- mem[endPos + 1] = cc & 63 | 128;
10325
- endPos += 2;
10326
- } else {
10327
- endPos += mem.write(data.slice(i), endPos, encoding);
10328
- break;
10614
+ if (data.length < 70) {
10615
+ if (!encoding || encoding === "utf-8" || encoding === "utf8") {
10616
+ endPos = buffered;
10617
+ for (let i = 0; i < data.length; i++) {
10618
+ const cc = data.charCodeAt(i);
10619
+ if (cc < 128) mem[endPos++] = cc;
10620
+ else if (cc < 2048) {
10621
+ mem[endPos] = cc >> 6 | 192;
10622
+ mem[endPos + 1] = cc & 63 | 128;
10623
+ endPos += 2;
10624
+ } else {
10625
+ endPos += mem.write(data.slice(i), endPos, encoding);
10626
+ break;
10627
+ }
10329
10628
  }
10330
- }
10331
- } else if (encoding === "latin1") {
10332
- endPos = buffered;
10333
- for (let i = 0; i < data.length; i++) {
10334
- const cc = data.charCodeAt(i);
10335
- mem[endPos++] = cc;
10336
- }
10629
+ } else if (encoding === "latin1") {
10630
+ endPos = buffered;
10631
+ for (let i = 0; i < data.length; i++) {
10632
+ const cc = data.charCodeAt(i);
10633
+ mem[endPos++] = cc;
10634
+ }
10635
+ } else endPos = buffered + mem.write(data, buffered, encoding);
10337
10636
  } else endPos = buffered + mem.write(data, buffered, encoding);
10338
- else endPos = buffered + mem.write(data, buffered, encoding);
10339
10637
  if (endPos < chunkSize) this.buffered = endPos;
10340
10638
  else {
10341
10639
  const l = endPos & ~(this.chunkSize - 1);
@@ -10430,11 +10728,12 @@ var require_BatchedHash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10430
10728
  this.hash.update(this.string, this.encoding);
10431
10729
  this.string = void 0;
10432
10730
  }
10433
- if (typeof data === "string") if (data.length < MAX_SHORT_STRING && (!inputEncoding || !inputEncoding.startsWith("ba"))) {
10434
- this.string = data;
10435
- this.encoding = inputEncoding;
10436
- } else this.hash.update(data, inputEncoding);
10437
- else this.hash.update(data);
10731
+ if (typeof data === "string") {
10732
+ if (data.length < MAX_SHORT_STRING && (!inputEncoding || !inputEncoding.startsWith("ba"))) {
10733
+ this.string = data;
10734
+ this.encoding = inputEncoding;
10735
+ } else this.hash.update(data, inputEncoding);
10736
+ } else this.hash.update(data);
10438
10737
  return this;
10439
10738
  }
10440
10739
  /**
@@ -11055,7 +11354,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11055
11354
  module.exports = ValueParser;
11056
11355
  }));
11057
11356
  //#endregion
11058
- //#region node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.19/node_modules/postcss-modules-local-by-default/src/index.js
11357
+ //#region node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.28/node_modules/postcss-modules-local-by-default/src/index.js
11059
11358
  var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11060
11359
  const selectorParser = require_dist();
11061
11360
  const valueParser = require_lib();
@@ -11250,22 +11549,18 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11250
11549
  }
11251
11550
  }
11252
11551
  break;
11253
- case "function":
11254
- if (context.options && context.options.rewriteUrl && node.value.toLowerCase() === "url") node.nodes.map((nestedNode) => {
11255
- if (nestedNode.type !== "string" && nestedNode.type !== "word") return;
11256
- let newUrl = context.options.rewriteUrl(context.global, nestedNode.value);
11257
- switch (nestedNode.type) {
11258
- case "string":
11259
- if (nestedNode.quote === "'") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/'/g, "\\'");
11260
- if (nestedNode.quote === "\"") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/"/g, "\\\"");
11261
- break;
11262
- case "word":
11263
- newUrl = newUrl.replace(/("|'|\)|\\)/g, "\\$1");
11264
- break;
11265
- }
11266
- nestedNode.value = newUrl;
11267
- });
11268
- break;
11552
+ case "function": if (context.options && context.options.rewriteUrl && node.value.toLowerCase() === "url") node.nodes.map((nestedNode) => {
11553
+ if (nestedNode.type !== "string" && nestedNode.type !== "word") return;
11554
+ let newUrl = context.options.rewriteUrl(context.global, nestedNode.value);
11555
+ switch (nestedNode.type) {
11556
+ case "string":
11557
+ if (nestedNode.quote === "'") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/'/g, "\\'");
11558
+ if (nestedNode.quote === "\"") newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/"/g, "\\\"");
11559
+ break;
11560
+ case "word": newUrl = newUrl.replace(/("|'|\)|\\)/g, "\\$1");
11561
+ }
11562
+ nestedNode.value = newUrl;
11563
+ });
11269
11564
  }
11270
11565
  return node;
11271
11566
  }
@@ -11342,10 +11637,12 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11342
11637
  } else if (node.type !== "word") return;
11343
11638
  const value = node.type === "word" ? node.value.toLowerCase() : null;
11344
11639
  let shouldParseAnimationName = false;
11345
- if (value && validIdent.test(value)) if ("$" + value in animationKeywords) {
11346
- parsedAnimationKeywords["$" + value] = "$" + value in parsedAnimationKeywords ? parsedAnimationKeywords["$" + value] + 1 : 0;
11347
- shouldParseAnimationName = parsedAnimationKeywords["$" + value] >= animationKeywords["$" + value];
11348
- } else shouldParseAnimationName = true;
11640
+ if (value && validIdent.test(value)) {
11641
+ if ("$" + value in animationKeywords) {
11642
+ parsedAnimationKeywords["$" + value] = "$" + value in parsedAnimationKeywords ? parsedAnimationKeywords["$" + value] + 1 : 0;
11643
+ shouldParseAnimationName = parsedAnimationKeywords["$" + value] >= animationKeywords["$" + value];
11644
+ } else shouldParseAnimationName = true;
11645
+ }
11349
11646
  return localizeDeclNode(node, {
11350
11647
  options: context.options,
11351
11648
  global: context.global,
@@ -11454,7 +11751,7 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11454
11751
  module.exports.postcss = true;
11455
11752
  }));
11456
11753
  //#endregion
11457
- //#region node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.19/node_modules/postcss-modules-scope/src/index.js
11754
+ //#region node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.28/node_modules/postcss-modules-scope/src/index.js
11458
11755
  var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11459
11756
  const selectorParser = require_dist();
11460
11757
  const hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -11530,9 +11827,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11530
11827
  node.each((item) => traverseNode(item));
11531
11828
  break;
11532
11829
  case "id":
11533
- case "class":
11534
- if (exportGlobals) exports$1[node.value] = [node.value];
11535
- break;
11830
+ case "class": if (exportGlobals) exports$1[node.value] = [node.value];
11536
11831
  }
11537
11832
  return node;
11538
11833
  }
@@ -11634,7 +11929,7 @@ var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11634
11929
  module.exports = hash;
11635
11930
  }));
11636
11931
  //#endregion
11637
- //#region node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.19/node_modules/postcss-modules-values/src/index.js
11932
+ //#region node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.28/node_modules/postcss-modules-values/src/index.js
11638
11933
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11639
11934
  const ICSSUtils = require_src$4();
11640
11935
  const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
@@ -11721,7 +12016,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11721
12016
  module.exports.postcss = true;
11722
12017
  }));
11723
12018
  //#endregion
11724
- //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.19/node_modules/postcss-modules/build/scoping.js
12019
+ //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/scoping.js
11725
12020
  var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
11726
12021
  Object.defineProperty(exports, "__esModule", { value: true });
11727
12022
  exports.behaviours = void 0;
@@ -11783,7 +12078,7 @@ var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
11783
12078
  }
11784
12079
  }));
11785
12080
  //#endregion
11786
- //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.19/node_modules/postcss-modules/build/pluginFactory.js
12081
+ //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.28/node_modules/postcss-modules/build/pluginFactory.js
11787
12082
  var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
11788
12083
  Object.defineProperty(exports, "__esModule", { value: true });
11789
12084
  exports.makePlugin = makePlugin;
@@ -12173,25 +12468,28 @@ function rewriteDefaultAST(ast, s, as) {
12173
12468
  return;
12174
12469
  }
12175
12470
  ast.forEach((node) => {
12176
- if (node.type === "ExportDefaultDeclaration") if (node.declaration.type === "ClassDeclaration" && node.declaration.id) {
12177
- const start = node.declaration.decorators && node.declaration.decorators.length > 0 ? node.declaration.decorators[node.declaration.decorators.length - 1].end : node.start;
12178
- s.overwrite(start, node.declaration.id.start, ` class `);
12179
- s.append(`\nconst ${as} = ${node.declaration.id.name}`);
12180
- } else s.overwrite(node.start, node.declaration.start, `const ${as} = `);
12181
- else if (node.type === "ExportNamedDeclaration") {
12471
+ if (node.type === "ExportDefaultDeclaration") {
12472
+ if (node.declaration.type === "ClassDeclaration" && node.declaration.id) {
12473
+ const start = node.declaration.decorators && node.declaration.decorators.length > 0 ? node.declaration.decorators[node.declaration.decorators.length - 1].end : node.start;
12474
+ s.overwrite(start, node.declaration.id.start, ` class `);
12475
+ s.append(`\nconst ${as} = ${node.declaration.id.name}`);
12476
+ } else s.overwrite(node.start, node.declaration.start, `const ${as} = `);
12477
+ } else if (node.type === "ExportNamedDeclaration") {
12182
12478
  for (const specifier of node.specifiers) if (specifier.type === "ExportSpecifier" && specifier.exported.type === "Identifier" && specifier.exported.name === "default") {
12183
- if (node.source) if (specifier.local.name === "default") {
12184
- s.prepend(`import { default as __VUE_DEFAULT__ } from '${node.source.value}'\n`);
12185
- const end = specifierEnd(s, specifier.local.end, node.end);
12186
- s.remove(specifier.start, end);
12187
- s.append(`\nconst ${as} = __VUE_DEFAULT__`);
12188
- continue;
12189
- } else {
12190
- s.prepend(`import { ${s.slice(specifier.local.start, specifier.local.end)} as __VUE_DEFAULT__ } from '${node.source.value}'\n`);
12191
- const end = specifierEnd(s, specifier.exported.end, node.end);
12192
- s.remove(specifier.start, end);
12193
- s.append(`\nconst ${as} = __VUE_DEFAULT__`);
12194
- continue;
12479
+ if (node.source) {
12480
+ if (specifier.local.name === "default") {
12481
+ s.prepend(`import { default as __VUE_DEFAULT__ } from '${node.source.value}'\n`);
12482
+ const end = specifierEnd(s, specifier.local.end, node.end);
12483
+ s.remove(specifier.start, end);
12484
+ s.append(`\nconst ${as} = __VUE_DEFAULT__`);
12485
+ continue;
12486
+ } else {
12487
+ s.prepend(`import { ${s.slice(specifier.local.start, specifier.local.end)} as __VUE_DEFAULT__ } from '${node.source.value}'\n`);
12488
+ const end = specifierEnd(s, specifier.exported.end, node.end);
12489
+ s.remove(specifier.start, end);
12490
+ s.append(`\nconst ${as} = __VUE_DEFAULT__`);
12491
+ continue;
12492
+ }
12195
12493
  }
12196
12494
  const end = specifierEnd(s, specifier.end, node.end);
12197
12495
  s.remove(specifier.start, end);
@@ -12297,7 +12595,7 @@ const range = (a, b, str) => {
12297
12595
  return result;
12298
12596
  };
12299
12597
  //#endregion
12300
- //#region node_modules/.pnpm/brace-expansion@5.0.5/node_modules/brace-expansion/dist/esm/index.js
12598
+ //#region node_modules/.pnpm/brace-expansion@5.0.9/node_modules/brace-expansion/dist/esm/index.js
12301
12599
  const escSlash = "\0SLASH" + Math.random() + "\0";
12302
12600
  const escOpen = "\0OPEN" + Math.random() + "\0";
12303
12601
  const escClose = "\0CLOSE" + Math.random() + "\0";
@@ -12314,6 +12612,7 @@ const closePattern = /\\}/g;
12314
12612
  const commaPattern = /\\,/g;
12315
12613
  const periodPattern = /\\\./g;
12316
12614
  const EXPANSION_MAX = 1e5;
12615
+ const EXPANSION_MAX_LENGTH = 4e6;
12317
12616
  function numeric(str) {
12318
12617
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
12319
12618
  }
@@ -12346,9 +12645,9 @@ function parseCommaParts(str) {
12346
12645
  }
12347
12646
  function expand(str, options = {}) {
12348
12647
  if (!str) return [];
12349
- const { max = EXPANSION_MAX } = options;
12648
+ const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
12350
12649
  if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
12351
- return expand_(escapeBraces(str), max, true).map(unescapeBraces);
12650
+ return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
12352
12651
  }
12353
12652
  function embrace(str) {
12354
12653
  return "{" + str + "}";
@@ -12362,18 +12661,73 @@ function lte(i, y) {
12362
12661
  function gte(i, y) {
12363
12662
  return i >= y;
12364
12663
  }
12365
- function expand_(str, max, isTop) {
12366
- /** @type {string[]} */
12367
- const expansions = [];
12368
- const m = balanced("{", "}", str);
12369
- if (!m) return [str];
12370
- const pre = m.pre;
12371
- const post = m.post.length ? expand_(m.post, max, false) : [""];
12372
- if (/\$$/.test(m.pre)) for (let k = 0; k < post.length && k < max; k++) {
12373
- const expansion = pre + "{" + m.body + "}" + post[k];
12374
- expansions.push(expansion);
12375
- }
12376
- else {
12664
+ function combine(acc, pre, values, max, maxLength, dropEmpties) {
12665
+ const out = [];
12666
+ let length = 0;
12667
+ for (let a = 0; a < acc.length; a++) for (let v = 0; v < values.length; v++) {
12668
+ if (out.length >= max) return out;
12669
+ const expansion = acc[a] + pre + values[v];
12670
+ if (dropEmpties && !expansion) continue;
12671
+ if (length + expansion.length > maxLength) return out;
12672
+ out.push(expansion);
12673
+ length += expansion.length;
12674
+ }
12675
+ return out;
12676
+ }
12677
+ function expandSequence(body, isAlphaSequence, max, maxLength) {
12678
+ const n = body.split(/\.\./);
12679
+ const N = [];
12680
+ /* c8 ignore start */
12681
+ if (n[0] === void 0 || n[1] === void 0) return N;
12682
+ /* c8 ignore stop */
12683
+ const x = numeric(n[0]);
12684
+ const y = numeric(n[1]);
12685
+ const width = Math.max(n[0].length, n[1].length);
12686
+ let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
12687
+ let test = lte;
12688
+ if (y < x) {
12689
+ incr *= -1;
12690
+ test = gte;
12691
+ }
12692
+ const pad = n.some(isPadded);
12693
+ let length = 0;
12694
+ for (let i = x; test(i, y) && N.length < max; i += incr) {
12695
+ let c;
12696
+ if (isAlphaSequence) {
12697
+ c = String.fromCharCode(i);
12698
+ if (c === "\\") c = "";
12699
+ } else {
12700
+ c = String(i);
12701
+ if (pad) {
12702
+ const need = width - c.length;
12703
+ if (need > 0) {
12704
+ const z = new Array(need + 1).join("0");
12705
+ if (i < 0) c = "-" + z + c.slice(1);
12706
+ else c = z + c;
12707
+ }
12708
+ }
12709
+ }
12710
+ if (length + c.length > maxLength) break;
12711
+ N.push(c);
12712
+ length += c.length;
12713
+ }
12714
+ return N;
12715
+ }
12716
+ function expand_(str, max, maxLength, isTop) {
12717
+ let acc = [""];
12718
+ let dropEmpties = false;
12719
+ let firstGroup = true;
12720
+ for (;;) {
12721
+ const m = balanced("{", "}", str);
12722
+ if (!m) return combine(acc, str, [""], max, maxLength, dropEmpties);
12723
+ const pre = m.pre;
12724
+ if (/\$$/.test(pre)) {
12725
+ acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
12726
+ firstGroup = false;
12727
+ if (!m.post.length) break;
12728
+ str = m.post;
12729
+ continue;
12730
+ }
12377
12731
  const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
12378
12732
  const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
12379
12733
  const isSequence = isNumericSequence || isAlphaSequence;
@@ -12381,71 +12735,59 @@ function expand_(str, max, isTop) {
12381
12735
  if (!isSequence && !isOptions) {
12382
12736
  if (m.post.match(/,(?!,).*\}/)) {
12383
12737
  str = m.pre + "{" + m.body + escClose + m.post;
12384
- return expand_(str, max, true);
12738
+ isTop = true;
12739
+ continue;
12385
12740
  }
12386
- return [str];
12741
+ return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
12387
12742
  }
12388
- let n;
12389
- if (isSequence) n = m.body.split(/\.\./);
12743
+ if (firstGroup) {
12744
+ dropEmpties = isTop && !isSequence;
12745
+ firstGroup = false;
12746
+ }
12747
+ let values;
12748
+ if (isSequence) values = expandSequence(m.body, isAlphaSequence, max, maxLength);
12390
12749
  else {
12391
- n = parseCommaParts(m.body);
12750
+ let n = parseCommaParts(m.body);
12392
12751
  if (n.length === 1 && n[0] !== void 0) {
12393
- n = expand_(n[0], max, false).map(embrace);
12752
+ n = expand_(n[0], max, maxLength, false).map(embrace);
12394
12753
  /* c8 ignore start */
12395
- if (n.length === 1) return post.map((p) => m.pre + n[0] + p);
12396
- }
12397
- }
12398
- let N;
12399
- if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
12400
- const x = numeric(n[0]);
12401
- const y = numeric(n[1]);
12402
- const width = Math.max(n[0].length, n[1].length);
12403
- let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
12404
- let test = lte;
12405
- if (y < x) {
12406
- incr *= -1;
12407
- test = gte;
12408
- }
12409
- const pad = n.some(isPadded);
12410
- N = [];
12411
- for (let i = x; test(i, y); i += incr) {
12412
- let c;
12413
- if (isAlphaSequence) {
12414
- c = String.fromCharCode(i);
12415
- if (c === "\\") c = "";
12416
- } else {
12417
- c = String(i);
12418
- if (pad) {
12419
- const need = width - c.length;
12420
- if (need > 0) {
12421
- const z = new Array(need + 1).join("0");
12422
- if (i < 0) c = "-" + z + c.slice(1);
12423
- else c = z + c;
12424
- }
12425
- }
12754
+ if (n.length === 1) {
12755
+ acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
12756
+ if (!m.post.length) break;
12757
+ str = m.post;
12758
+ continue;
12759
+ }
12760
+ }
12761
+ let dropsEmpties = dropEmpties && !m.post.length && !pre;
12762
+ for (let d = 0; dropsEmpties && d < acc.length; d++) if (acc[d]) dropsEmpties = false;
12763
+ values = [];
12764
+ let valuesLength = 0;
12765
+ outer: for (let j = 0; j < n.length; j++) {
12766
+ const expanded = expand_(n[j], max, maxLength, false);
12767
+ for (let k = 0; k < expanded.length; k++) {
12768
+ const v = expanded[k];
12769
+ if (dropsEmpties && !v) continue;
12770
+ if (values.length >= max || valuesLength + v.length > maxLength) break outer;
12771
+ values.push(v);
12772
+ valuesLength += v.length;
12426
12773
  }
12427
- N.push(c);
12428
12774
  }
12429
- } else {
12430
- N = [];
12431
- for (let j = 0; j < n.length; j++) N.push.apply(N, expand_(n[j], max, false));
12432
- }
12433
- for (let j = 0; j < N.length; j++) for (let k = 0; k < post.length && expansions.length < max; k++) {
12434
- const expansion = pre + N[j] + post[k];
12435
- if (!isTop || isSequence || expansion) expansions.push(expansion);
12436
12775
  }
12776
+ acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
12777
+ if (!m.post.length) break;
12778
+ str = m.post;
12437
12779
  }
12438
- return expansions;
12780
+ return acc;
12439
12781
  }
12440
12782
  //#endregion
12441
- //#region node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
12442
- const MAX_PATTERN_LENGTH = 1024 * 64;
12783
+ //#region node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
12784
+ const MAX_PATTERN_LENGTH = 65536;
12443
12785
  const assertValidPattern = (pattern) => {
12444
12786
  if (typeof pattern !== "string") throw new TypeError("invalid pattern");
12445
12787
  if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
12446
12788
  };
12447
12789
  //#endregion
12448
- //#region node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/brace-expressions.js
12790
+ //#region node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
12449
12791
  const posixClasses = {
12450
12792
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
12451
12793
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -12550,12 +12892,15 @@ const parseClass = (glob, position) => {
12550
12892
  glob.length - pos,
12551
12893
  true
12552
12894
  ];
12553
- if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) return [
12554
- regexpEscape(ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0]),
12555
- false,
12556
- endPos - pos,
12557
- false
12558
- ];
12895
+ if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
12896
+ const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
12897
+ return [
12898
+ regexpEscape(r),
12899
+ false,
12900
+ endPos - pos,
12901
+ false
12902
+ ];
12903
+ }
12559
12904
  const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
12560
12905
  const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
12561
12906
  return [
@@ -12566,7 +12911,7 @@ const parseClass = (glob, position) => {
12566
12911
  ];
12567
12912
  };
12568
12913
  //#endregion
12569
- //#region node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/unescape.js
12914
+ //#region node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
12570
12915
  /**
12571
12916
  * Un-escape a string that has been escaped with {@link escape}.
12572
12917
  *
@@ -12591,11 +12936,11 @@ const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}
12591
12936
  return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
12592
12937
  };
12593
12938
  //#endregion
12594
- //#region node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/ast.js
12939
+ //#region node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
12595
12940
  var _AST;
12596
12941
  let _Symbol$for;
12597
12942
  var _a;
12598
- const types = new Set([
12943
+ const types = /* @__PURE__ */ new Set([
12599
12944
  "!",
12600
12945
  "?",
12601
12946
  "+",
@@ -12604,7 +12949,7 @@ const types = new Set([
12604
12949
  ]);
12605
12950
  const isExtglobType = (c) => types.has(c);
12606
12951
  const isExtglobAST = (c) => isExtglobType(c.type);
12607
- const adoptionMap = new Map([
12952
+ const adoptionMap = /* @__PURE__ */ new Map([
12608
12953
  ["!", ["@"]],
12609
12954
  ["?", ["?", "@"]],
12610
12955
  ["@", ["@"]],
@@ -12616,12 +12961,12 @@ const adoptionMap = new Map([
12616
12961
  ]],
12617
12962
  ["+", ["+", "@"]]
12618
12963
  ]);
12619
- const adoptionWithSpaceMap = new Map([
12964
+ const adoptionWithSpaceMap = /* @__PURE__ */ new Map([
12620
12965
  ["!", ["?"]],
12621
12966
  ["@", ["?"]],
12622
12967
  ["+", ["?", "*"]]
12623
12968
  ]);
12624
- const adoptionAnyMap = new Map([
12969
+ const adoptionAnyMap = /* @__PURE__ */ new Map([
12625
12970
  ["!", ["?", "@"]],
12626
12971
  ["?", ["?", "@"]],
12627
12972
  ["@", ["?", "@"]],
@@ -12638,27 +12983,27 @@ const adoptionAnyMap = new Map([
12638
12983
  "*"
12639
12984
  ]]
12640
12985
  ]);
12641
- const usurpMap = new Map([
12642
- ["!", new Map([["!", "@"]])],
12643
- ["?", new Map([["*", "*"], ["+", "*"]])],
12644
- ["@", new Map([
12986
+ const usurpMap = /* @__PURE__ */ new Map([
12987
+ ["!", /* @__PURE__ */ new Map([["!", "@"]])],
12988
+ ["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
12989
+ ["@", /* @__PURE__ */ new Map([
12645
12990
  ["!", "!"],
12646
12991
  ["?", "?"],
12647
12992
  ["@", "@"],
12648
12993
  ["*", "*"],
12649
12994
  ["+", "+"]
12650
12995
  ])],
12651
- ["+", new Map([["?", "*"], ["*", "*"]])]
12996
+ ["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
12652
12997
  ]);
12653
12998
  const startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
12654
12999
  const startNoDot = "(?!\\.)";
12655
- const addPatternStart = new Set(["[", "."]);
12656
- const justDots = new Set(["..", "."]);
13000
+ const addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
13001
+ const justDots = /* @__PURE__ */ new Set(["..", "."]);
12657
13002
  const reSpecials = /* @__PURE__ */ new Set("().*{}+?[]^$\\!");
12658
13003
  const regExpEscape$1 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
12659
13004
  const qmark = "[^/]";
12660
- const star$1 = qmark + "*?";
12661
- const starNoEmpty = qmark + "+?";
13005
+ const star$1 = "[^/]*?";
13006
+ const starNoEmpty = "[^/]+?";
12662
13007
  let ID = 0;
12663
13008
  var _root = /* @__PURE__ */ new WeakMap();
12664
13009
  var _hasMagic2 = /* @__PURE__ */ new WeakMap();
@@ -12693,6 +13038,7 @@ var AST = class AST {
12693
13038
  }
12694
13039
  constructor(type, parent, options = {}) {
12695
13040
  _classPrivateMethodInitSpec(this, _AST_brand);
13041
+ _defineProperty(this, "type", void 0);
12696
13042
  _classPrivateFieldInitSpec(this, _root, void 0);
12697
13043
  _classPrivateFieldInitSpec(this, _hasMagic2, void 0);
12698
13044
  _classPrivateFieldInitSpec(this, _uflag, false);
@@ -12704,7 +13050,7 @@ var AST = class AST {
12704
13050
  _classPrivateFieldInitSpec(this, _options, void 0);
12705
13051
  _classPrivateFieldInitSpec(this, _toString, void 0);
12706
13052
  _classPrivateFieldInitSpec(this, _emptyExt, false);
12707
- this.id = ++ID;
13053
+ _defineProperty(this, "id", ++ID);
12708
13054
  this.type = type;
12709
13055
  if (type) _classPrivateFieldSet2(_hasMagic2, this, true);
12710
13056
  _classPrivateFieldSet2(_parent, this, parent);
@@ -12853,7 +13199,7 @@ var AST = class AST {
12853
13199
  let final = "";
12854
13200
  if (this.type === "!" && _classPrivateFieldGet2(_emptyExt, this)) final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
12855
13201
  else {
12856
- const close = this.type === "!" ? "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star$1 + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
13202
+ const close = this.type === "!" ? "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + "[^/]*?)" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
12857
13203
  final = start + body + close;
12858
13204
  }
12859
13205
  return [
@@ -13125,7 +13471,7 @@ function _parseGlob(glob, hasMagic, noEmpty = false) {
13125
13471
  }
13126
13472
  _a = AST;
13127
13473
  //#endregion
13128
- //#region node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/escape.js
13474
+ //#region node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
13129
13475
  /**
13130
13476
  * Escape all magic characters in a glob pattern.
13131
13477
  *
@@ -13143,7 +13489,7 @@ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {})
13143
13489
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
13144
13490
  };
13145
13491
  //#endregion
13146
- //#region node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
13492
+ //#region node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
13147
13493
  const minimatch = (p, pattern, options = {}) => {
13148
13494
  assertValidPattern(pattern);
13149
13495
  if (!options.nocomment && pattern.charAt(0) === "#") return false;
@@ -13269,6 +13615,24 @@ var Minimatch = class {
13269
13615
  constructor(pattern, options = {}) {
13270
13616
  var _options$maxGlobstarR;
13271
13617
  _classPrivateMethodInitSpec(this, _Minimatch_brand);
13618
+ _defineProperty(this, "options", void 0);
13619
+ _defineProperty(this, "set", void 0);
13620
+ _defineProperty(this, "pattern", void 0);
13621
+ _defineProperty(this, "windowsPathsNoEscape", void 0);
13622
+ _defineProperty(this, "nonegate", void 0);
13623
+ _defineProperty(this, "negate", void 0);
13624
+ _defineProperty(this, "comment", void 0);
13625
+ _defineProperty(this, "empty", void 0);
13626
+ _defineProperty(this, "preserveMultipleSlashes", void 0);
13627
+ _defineProperty(this, "partial", void 0);
13628
+ _defineProperty(this, "globSet", void 0);
13629
+ _defineProperty(this, "globParts", void 0);
13630
+ _defineProperty(this, "nocase", void 0);
13631
+ _defineProperty(this, "isWindows", void 0);
13632
+ _defineProperty(this, "platform", void 0);
13633
+ _defineProperty(this, "windowsNoMagicRoot", void 0);
13634
+ _defineProperty(this, "maxGlobstarRecursion", void 0);
13635
+ _defineProperty(this, "regexp", void 0);
13272
13636
  assertValidPattern(pattern);
13273
13637
  options = options || {};
13274
13638
  this.options = options;
@@ -13573,9 +13937,10 @@ var Minimatch = class {
13573
13937
  const next = pp[i + 1];
13574
13938
  const prev = pp[i - 1];
13575
13939
  if (p !== GLOBSTAR || prev === GLOBSTAR) return;
13576
- if (prev === void 0) if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
13577
- else pp[i] = twoStar;
13578
- else if (next === void 0) pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
13940
+ if (prev === void 0) {
13941
+ if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
13942
+ else pp[i] = twoStar;
13943
+ } else if (next === void 0) pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
13579
13944
  else if (next !== GLOBSTAR) {
13580
13945
  pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
13581
13946
  pp[i + 1] = GLOBSTAR;
@@ -13836,12 +14201,10 @@ function innerResolveTypeElements(ctx, node, scope, typeParameters) {
13836
14201
  if (resolved) return resolveTypeElements(ctx, resolved, resolved._ownerScope);
13837
14202
  break;
13838
14203
  }
13839
- case "TSTypeQuery":
13840
- {
13841
- const resolved = resolveTypeReference(ctx, node, scope);
13842
- if (resolved) return resolveTypeElements(ctx, resolved, resolved._ownerScope);
13843
- }
13844
- break;
14204
+ case "TSTypeQuery": {
14205
+ const resolved = resolveTypeReference(ctx, node, scope);
14206
+ if (resolved) return resolveTypeElements(ctx, resolved, resolved._ownerScope);
14207
+ }
13845
14208
  }
13846
14209
  return ctx.error(`Unresolvable type: ${node.type}`, node, scope);
13847
14210
  }
@@ -13945,10 +14308,12 @@ function resolveIndexType(ctx, node, scope) {
13945
14308
  function resolveArrayElementType(ctx, node, scope) {
13946
14309
  if (node.type === "TSArrayType") return [node.elementType];
13947
14310
  if (node.type === "TSTupleType") return node.elementTypes.map((t) => t.type === "TSNamedTupleMember" ? t.elementType : t);
13948
- if (node.type === "TSTypeReference") if (getReferenceName(node) === "Array" && node.typeParameters) return node.typeParameters.params;
13949
- else {
13950
- const resolved = resolveTypeReference(ctx, node, scope);
13951
- if (resolved) return resolveArrayElementType(ctx, resolved, scope);
14311
+ if (node.type === "TSTypeReference") {
14312
+ if (getReferenceName(node) === "Array" && node.typeParameters) return node.typeParameters.params;
14313
+ else {
14314
+ const resolved = resolveTypeReference(ctx, node, scope);
14315
+ if (resolved) return resolveArrayElementType(ctx, resolved, scope);
14316
+ }
13952
14317
  }
13953
14318
  return ctx.error("Failed to resolve element type from target type", node, scope);
13954
14319
  }
@@ -13997,7 +14362,7 @@ function resolveTemplateKeys(ctx, node, scope) {
13997
14362
  for (const r of resolved) for (const rr of restResolved) res.push(leading + r + rr);
13998
14363
  return res;
13999
14364
  }
14000
- const SupportedBuiltinsSet = new Set([
14365
+ const SupportedBuiltinsSet = /* @__PURE__ */ new Set([
14001
14366
  "Partial",
14002
14367
  "Required",
14003
14368
  "Readonly",
@@ -14060,27 +14425,34 @@ function resolveTypeReference(ctx, node, scope, name, onlyExported = false) {
14060
14425
  return node._resolvedReference;
14061
14426
  }
14062
14427
  const resolved = innerResolveTypeReference(ctx, scope || ctxToScope(ctx), name || getReferenceName(node), node, onlyExported);
14063
- return canCache ? node._resolvedReference = resolved : resolved;
14428
+ if (canCache) Object.defineProperty(node, "_resolvedReference", {
14429
+ value: resolved,
14430
+ writable: true,
14431
+ configurable: true,
14432
+ enumerable: false
14433
+ });
14434
+ return resolved;
14064
14435
  }
14065
14436
  function innerResolveTypeReference(ctx, scope, name, node, onlyExported) {
14066
- if (typeof name === "string") if (scope.imports[name]) return resolveTypeFromImport(ctx, node, name, scope);
14067
- else {
14068
- const lookupSource = node.type === "TSTypeQuery" ? onlyExported ? scope.exportedDeclares : scope.declares : onlyExported ? scope.exportedTypes : scope.types;
14069
- if (lookupSource[name]) return lookupSource[name];
14437
+ if (typeof name === "string") {
14438
+ if (scope.imports[name]) return resolveTypeFromImport(ctx, node, name, scope);
14070
14439
  else {
14071
- const globalScopes = resolveGlobalScope(ctx);
14072
- if (globalScopes) for (const s of globalScopes) {
14073
- const src = node.type === "TSTypeQuery" ? s.declares : s.types;
14074
- if (src[name]) {
14075
- (ctx.deps || (ctx.deps = /* @__PURE__ */ new Set())).add(s.filename);
14076
- const resolved = src[name];
14077
- if (resolved._ownerScope && resolved._ownerScope !== s) ctx.deps.add(resolved._ownerScope.filename);
14078
- return resolved;
14440
+ const lookupSource = node.type === "TSTypeQuery" ? onlyExported ? scope.exportedDeclares : scope.declares : onlyExported ? scope.exportedTypes : scope.types;
14441
+ if (lookupSource[name]) return lookupSource[name];
14442
+ else {
14443
+ const globalScopes = resolveGlobalScope(ctx);
14444
+ if (globalScopes) for (const s of globalScopes) {
14445
+ const src = node.type === "TSTypeQuery" ? s.declares : s.types;
14446
+ if (src[name]) {
14447
+ (ctx.deps || (ctx.deps = /* @__PURE__ */ new Set())).add(s.filename);
14448
+ const resolved = src[name];
14449
+ if (resolved._ownerScope && resolved._ownerScope !== s) ctx.deps.add(resolved._ownerScope.filename);
14450
+ return resolved;
14451
+ }
14079
14452
  }
14080
14453
  }
14081
14454
  }
14082
- }
14083
- else {
14455
+ } else {
14084
14456
  let ns = innerResolveTypeReference(ctx, scope, name[0], node, onlyExported);
14085
14457
  if (ns) {
14086
14458
  if (ns.type !== "TSModuleDeclaration") ns = ns._ns;
@@ -14187,6 +14559,7 @@ function resolveExt(filename, fs) {
14187
14559
  }
14188
14560
  const tsConfigCache = createCache();
14189
14561
  const tsConfigRefMap = /* @__PURE__ */ new Map();
14562
+ const extendedConfigCache = /* @__PURE__ */ new Map();
14190
14563
  function resolveWithTS(containingFile, source, ts, fs) {
14191
14564
  const configPath = ts.findConfigFile(containingFile, fs.fileExists);
14192
14565
  let tsCompilerOptions;
@@ -14232,7 +14605,7 @@ function resolveWithTS(containingFile, source, ts, fs) {
14232
14605
  }
14233
14606
  function loadTSConfig(configPath, ts, fs, visited = /* @__PURE__ */ new Set()) {
14234
14607
  const parseConfigHost = ts.sys;
14235
- const config = ts.parseJsonConfigFileContent(ts.readConfigFile(configPath, fs.readFile).config, parseConfigHost, (0, path.dirname)(configPath), void 0, configPath);
14608
+ const config = ts.parseJsonConfigFileContent(ts.readConfigFile(configPath, fs.readFile).config, parseConfigHost, (0, path.dirname)(configPath), void 0, configPath, void 0, void 0, extendedConfigCache);
14236
14609
  const res = [config];
14237
14610
  visited.add(configPath);
14238
14611
  if (config.projectReferences) for (const ref of config.projectReferences) {
@@ -14253,6 +14626,10 @@ function invalidateTypeCache(filename) {
14253
14626
  fileToScopeCache.delete(filename);
14254
14627
  fileToGlobalScopeCache.delete(filename);
14255
14628
  tsConfigCache.delete(filename);
14629
+ if (filename.endsWith(".json")) {
14630
+ extendedConfigCache.clear();
14631
+ tsConfigCache.clear();
14632
+ }
14256
14633
  const affectedConfig = tsConfigRefMap.get(filename);
14257
14634
  if (affectedConfig) tsConfigCache.delete(affectedConfig);
14258
14635
  }
@@ -14421,24 +14798,23 @@ function recordType(node, types, declares, overwriteId) {
14421
14798
  case "TSDeclareFunction":
14422
14799
  if (node.id) declares[node.id.name] = node;
14423
14800
  break;
14424
- case "VariableDeclaration":
14425
- if (node.declare) {
14426
- for (const decl of node.declarations) if (decl.id.type === "Identifier" && decl.id.typeAnnotation) declares[decl.id.name] = decl.id.typeAnnotation.typeAnnotation;
14427
- }
14428
- break;
14801
+ case "VariableDeclaration": if (node.declare) {
14802
+ for (const decl of node.declarations) if (decl.id.type === "Identifier" && decl.id.typeAnnotation) declares[decl.id.name] = decl.id.typeAnnotation.typeAnnotation;
14803
+ }
14429
14804
  }
14430
14805
  }
14431
14806
  function mergeNamespaces(to, from) {
14432
14807
  const toBody = to.body;
14433
14808
  const fromBody = from.body;
14434
- if (toBody.type === "TSModuleDeclaration") if (fromBody.type === "TSModuleDeclaration") mergeNamespaces(toBody, fromBody);
14435
- else fromBody.body.push({
14436
- type: "ExportNamedDeclaration",
14437
- declaration: toBody,
14438
- exportKind: "type",
14439
- specifiers: []
14440
- });
14441
- else if (fromBody.type === "TSModuleDeclaration") toBody.body.push({
14809
+ if (toBody.type === "TSModuleDeclaration") {
14810
+ if (fromBody.type === "TSModuleDeclaration") mergeNamespaces(toBody, fromBody);
14811
+ else fromBody.body.push({
14812
+ type: "ExportNamedDeclaration",
14813
+ declaration: toBody,
14814
+ exportKind: "type",
14815
+ specifiers: []
14816
+ });
14817
+ } else if (fromBody.type === "TSModuleDeclaration") toBody.body.push({
14442
14818
  type: "ExportNamedDeclaration",
14443
14819
  declaration: fromBody,
14444
14820
  exportKind: "type",
@@ -14477,16 +14853,17 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
14477
14853
  case "TSInterfaceDeclaration": {
14478
14854
  const types = /* @__PURE__ */ new Set();
14479
14855
  const members = node.type === "TSTypeLiteral" ? node.members : node.body.body;
14480
- for (const m of members) if (isKeyOf) if (m.type === "TSPropertySignature" && m.key.type === "NumericLiteral") types.add("Number");
14481
- else if (m.type === "TSIndexSignature") {
14482
- const annotation = m.parameters[0].typeAnnotation;
14483
- if (annotation && annotation.type !== "Noop") {
14484
- const type = inferRuntimeType(ctx, annotation.typeAnnotation, scope)[0];
14485
- if (type === "Unknown") return [UNKNOWN_TYPE];
14486
- types.add(type);
14487
- }
14488
- } else types.add("String");
14489
- else if (m.type === "TSCallSignatureDeclaration" || m.type === "TSConstructSignatureDeclaration") types.add("Function");
14856
+ for (const m of members) if (isKeyOf) {
14857
+ if (m.type === "TSPropertySignature" && m.key.type === "NumericLiteral") types.add("Number");
14858
+ else if (m.type === "TSIndexSignature") {
14859
+ const annotation = m.parameters[0].typeAnnotation;
14860
+ if (annotation && annotation.type !== "Noop") {
14861
+ const type = inferRuntimeType(ctx, annotation.typeAnnotation, scope)[0];
14862
+ if (type === "Unknown") return [UNKNOWN_TYPE];
14863
+ types.add(type);
14864
+ }
14865
+ } else types.add("String");
14866
+ } else if (m.type === "TSCallSignatureDeclaration" || m.type === "TSConstructSignatureDeclaration") types.add("Function");
14490
14867
  else types.add("Object");
14491
14868
  return types.size ? Array.from(types) : [isKeyOf ? UNKNOWN_TYPE : "Object"];
14492
14869
  }
@@ -14590,7 +14967,7 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
14590
14967
  case "WritableComputedRef": return ["Object"];
14591
14968
  case "MaybeRef":
14592
14969
  case "MaybeRefOrGetter": {
14593
- const types = new Set(["Object"]);
14970
+ const types = /* @__PURE__ */ new Set(["Object"]);
14594
14971
  if (node.typeName.name === "MaybeRefOrGetter") types.add("Function");
14595
14972
  if (node.typeParameters && node.typeParameters.params[0]) for (const t of inferRuntimeType(ctx, node.typeParameters.params[0], scope, false, typeParameters)) types.add(t);
14596
14973
  return Array.from(types);
@@ -14602,9 +14979,7 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
14602
14979
  if (node.typeParameters && node.typeParameters.params[1]) return inferRuntimeType(ctx, node.typeParameters.params[1], scope);
14603
14980
  break;
14604
14981
  case "Exclude":
14605
- case "OmitThisParameter":
14606
- if (node.typeParameters && node.typeParameters.params[0]) return inferRuntimeType(ctx, node.typeParameters.params[0], scope);
14607
- break;
14982
+ case "OmitThisParameter": if (node.typeParameters && node.typeParameters.params[0]) return inferRuntimeType(ctx, node.typeParameters.params[0], scope);
14608
14983
  }
14609
14984
  }
14610
14985
  break;
@@ -14646,13 +15021,11 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
14646
15021
  break;
14647
15022
  }
14648
15023
  case "TSTypeOperator": return inferRuntimeType(ctx, node.typeAnnotation, scope, node.operator === "keyof");
14649
- case "TSAnyKeyword":
14650
- if (isKeyOf) return [
14651
- "String",
14652
- "Number",
14653
- "Symbol"
14654
- ];
14655
- break;
15024
+ case "TSAnyKeyword": if (isKeyOf) return [
15025
+ "String",
15026
+ "Number",
15027
+ "Symbol"
15028
+ ];
14656
15029
  }
14657
15030
  } catch (e) {} finally {
14658
15031
  ctx.silentOnExtendsFailure = prevSilent;
@@ -14669,9 +15042,7 @@ function inferEnumType(node) {
14669
15042
  case "StringLiteral":
14670
15043
  types.add("String");
14671
15044
  break;
14672
- case "NumericLiteral":
14673
- types.add("Number");
14674
- break;
15045
+ case "NumericLiteral": types.add("Number");
14675
15046
  }
14676
15047
  return types.size ? [...types] : ["Number"];
14677
15048
  }
@@ -14815,10 +15186,12 @@ function genModelProps(ctx) {
14815
15186
  if (runtimeTypes) {
14816
15187
  const hasBoolean = runtimeTypes.includes("Boolean");
14817
15188
  const hasFunction = runtimeTypes.includes("Function");
14818
- if (runtimeTypes.includes("Unknown")) if (hasBoolean || hasFunction) {
14819
- runtimeTypes = runtimeTypes.filter((t) => t !== UNKNOWN_TYPE);
14820
- skipCheck = true;
14821
- } else runtimeTypes = ["null"];
15189
+ if (runtimeTypes.includes("Unknown")) {
15190
+ if (hasBoolean || hasFunction) {
15191
+ runtimeTypes = runtimeTypes.filter((t) => t !== UNKNOWN_TYPE);
15192
+ skipCheck = true;
15193
+ } else runtimeTypes = ["null"];
15194
+ }
14822
15195
  if (!isProd) codegenOptions = `type: ${toRuntimeTypeString(runtimeTypes)}` + (skipCheck ? ", skipCheck: true" : "");
14823
15196
  else if (hasBoolean || runtimeOptions && hasFunction) codegenOptions = `type: ${toRuntimeTypeString(runtimeTypes)}`;
14824
15197
  }
@@ -14904,10 +15277,12 @@ function resolveRuntimePropsFromType(ctx, node) {
14904
15277
  const e = elements.props[key];
14905
15278
  let type = inferRuntimeType(ctx, e);
14906
15279
  let skipCheck = false;
14907
- if (type.includes("Unknown")) if (type.includes("Boolean") || type.includes("Function")) {
14908
- type = type.filter((t) => t !== UNKNOWN_TYPE);
14909
- skipCheck = true;
14910
- } else type = ["null"];
15280
+ if (type.includes("Unknown")) {
15281
+ if (type.includes("Boolean") || type.includes("Function")) {
15282
+ type = type.filter((t) => t !== UNKNOWN_TYPE);
15283
+ skipCheck = true;
15284
+ } else type = ["null"];
15285
+ }
14911
15286
  props.push({
14912
15287
  key,
14913
15288
  required: !e.optional,
@@ -14926,18 +15301,20 @@ function genRuntimePropFromType(ctx, { key, required, type, skipCheck }, hasStat
14926
15301
  if (node.type === "SpreadElement") return false;
14927
15302
  return resolveObjectKey(node.key, node.computed) === key;
14928
15303
  });
14929
- if (prop) if (prop.type === "ObjectProperty") defaultString = `default: ${ctx.getString(prop.value)}`;
14930
- else {
14931
- let paramsString = "";
14932
- if (prop.params.length) {
14933
- const start = prop.params[0].start;
14934
- const end = prop.params[prop.params.length - 1].end;
14935
- paramsString = ctx.getString({
14936
- start,
14937
- end
14938
- });
15304
+ if (prop) {
15305
+ if (prop.type === "ObjectProperty") defaultString = `default: ${ctx.getString(prop.value)}`;
15306
+ else {
15307
+ let paramsString = "";
15308
+ if (prop.params.length) {
15309
+ const start = prop.params[0].start;
15310
+ const end = prop.params[prop.params.length - 1].end;
15311
+ paramsString = ctx.getString({
15312
+ start,
15313
+ end
15314
+ });
15315
+ }
15316
+ defaultString = `${prop.async ? "async " : ""}${prop.kind !== "method" ? `${prop.kind} ` : ""}default(${paramsString}) ${ctx.getString(prop.body)}`;
14939
15317
  }
14940
- defaultString = `${prop.async ? "async " : ""}${prop.kind !== "method" ? `${prop.kind} ` : ""}default(${paramsString}) ${ctx.getString(prop.body)}`;
14941
15318
  }
14942
15319
  }
14943
15320
  const finalKey = getEscapedPropName(key);
@@ -14949,8 +15326,10 @@ function genRuntimePropFromType(ctx, { key, required, type, skipCheck }, hasStat
14949
15326
  ])} }`;
14950
15327
  else if (type.some((el) => el === "Boolean" || (!hasStaticDefaults || defaultString) && el === "Function")) return `${finalKey}: { ${concatStrings([`type: ${toRuntimeTypeString(type)}`, defaultString])} }`;
14951
15328
  else {
14952
- if (ctx.isCE) if (defaultString) return `${finalKey}: ${`{ ${defaultString}, type: ${toRuntimeTypeString(type)} }`}`;
14953
- else return `${finalKey}: {type: ${toRuntimeTypeString(type)}}`;
15329
+ if (ctx.isCE) {
15330
+ if (defaultString) return `${finalKey}: ${`{ ${defaultString}, type: ${toRuntimeTypeString(type)} }`}`;
15331
+ else return `${finalKey}: {type: ${toRuntimeTypeString(type)}}`;
15332
+ }
14954
15333
  return `${finalKey}: ${defaultString ? `{ ${defaultString} }` : `{}`}`;
14955
15334
  }
14956
15335
  }
@@ -15237,9 +15616,7 @@ function processDefineOptions(ctx, node) {
15237
15616
  case "expose":
15238
15617
  exposeOption = prop;
15239
15618
  break;
15240
- case "slots":
15241
- slotsOption = prop;
15242
- break;
15619
+ case "slots": slotsOption = prop;
15243
15620
  }
15244
15621
  }
15245
15622
  if (propsOption) ctx.error(`${DEFINE_OPTIONS}() cannot be used to declare props. Use ${DEFINE_PROPS}() instead.`, propsOption);
@@ -15318,6 +15695,8 @@ function compileScript(sfc, options) {
15318
15695
  const vapor = sfc.vapor || options.vapor;
15319
15696
  const ssr = (_options$templateOpti = options.templateOptions) === null || _options$templateOpti === void 0 ? void 0 : _options$templateOpti.ssr;
15320
15697
  const setupPreambleLines = [];
15698
+ const cssModuleBindings = [];
15699
+ let cssModuleHelper = "_useCssModule";
15321
15700
  const isJSOrTS = isJS(scriptLang, scriptSetupLang) || isTS(scriptLang, scriptSetupLang);
15322
15701
  if (script && scriptSetup && scriptLang !== scriptSetupLang) throw new Error("[@vue/compiler-sfc] <script> and <script setup> must have the same language type.");
15323
15702
  if (!scriptSetup) {
@@ -15348,7 +15727,7 @@ function compileScript(sfc, options) {
15348
15727
  }
15349
15728
  function registerUserImport(source, local, imported, isType, isFromSetup, needTemplateUsageCheck) {
15350
15729
  let isImportUsed = needTemplateUsageCheck;
15351
- if (needTemplateUsageCheck && ctx.isTS && sfc.template && !sfc.template.src && !sfc.template.lang) isImportUsed = isUsedInTemplate(local, sfc);
15730
+ if (needTemplateUsageCheck && ctx.isTS && sfc.template && !sfc.template.src && !sfc.template.lang) isImportUsed = isUsedInTemplate(local, sfc, options.templateOptions);
15352
15731
  ctx.userImports[local] = {
15353
15732
  isType,
15354
15733
  imported,
@@ -15390,6 +15769,32 @@ function compileScript(sfc, options) {
15390
15769
  ctx.bindingMetadata[name] = config.bindingType;
15391
15770
  }
15392
15771
  }
15772
+ /**
15773
+ * vapor resolves template expressions against setup scope instead of a
15774
+ * `_ctx` render proxy, so `<style module>` names need explicit bindings.
15775
+ */
15776
+ function declareTemplateCssModules() {
15777
+ if (!sfc.template) return;
15778
+ while (ctx.bindingMetadata[cssModuleHelper] || inlineMode && sfc.styles.some((style) => style.module === cssModuleHelper)) cssModuleHelper += "_";
15779
+ for (const style of sfc.styles) {
15780
+ var _options$templateOpti2;
15781
+ if (!style.module) continue;
15782
+ const name = style.module === true ? `$style` : style.module;
15783
+ if (!(0, _vue_compiler_dom.isSimpleIdentifier)(name) || ctx.bindingMetadata[name] || inlineMode && sfc.template.ast && !sfc.template.lang && !((_options$templateOpti2 = options.templateOptions) === null || _options$templateOpti2 === void 0 ? void 0 : _options$templateOpti2.preprocessLang) && !isUsedInTemplate(name, sfc, options.templateOptions)) continue;
15784
+ if (inlineMode) {
15785
+ if (name === "__props" || name === "_useCssModule" || name[0] === "_" && ctx.helperImports.has(name.slice(1))) continue;
15786
+ try {
15787
+ (0, _babel_parser.parse)(`const ${name} = null`, { sourceType: "module" });
15788
+ } catch {
15789
+ continue;
15790
+ }
15791
+ }
15792
+ ctx.helperImports.add("useCssModule");
15793
+ const value = `${cssModuleHelper}(${JSON.stringify(name)})`;
15794
+ cssModuleBindings.push(inlineMode ? `const ${name} = ${value}` : `${JSON.stringify(name)}: ${value}`);
15795
+ ctx.bindingMetadata[name] = "setup-const";
15796
+ }
15797
+ }
15393
15798
  const scriptAst = ctx.scriptAst;
15394
15799
  const scriptSetupAst = ctx.scriptSetupAst;
15395
15800
  const inlineMode = options.inlineTemplate;
@@ -15419,9 +15824,10 @@ function compileScript(sfc, options) {
15419
15824
  if (local === imported) warnOnce(`\`${imported}\` is a compiler macro and no longer needs to be imported.`);
15420
15825
  else ctx.error(`\`${imported}\` is a compiler macro and cannot be aliased to a different name.`, specifier);
15421
15826
  removeSpecifier(i);
15422
- } else if (existing) if (existing.source === source && existing.imported === imported) removeSpecifier(i);
15423
- else ctx.error(`different imports aliased to same local name.`, specifier);
15424
- else registerUserImport(source, local, imported, node.importKind === "type" || specifier.type === "ImportSpecifier" && specifier.importKind === "type", true, !inlineMode);
15827
+ } else if (existing) {
15828
+ if (existing.source === source && existing.imported === imported) removeSpecifier(i);
15829
+ else ctx.error(`different imports aliased to same local name.`, specifier);
15830
+ } else registerUserImport(source, local, imported, node.importKind === "type" || specifier.type === "ImportSpecifier" && specifier.importKind === "type", true, !inlineMode);
15425
15831
  }
15426
15832
  if (node.specifiers.length && removed === node.specifiers.length) ctx.s.remove(node.start + startOffset, node.end + startOffset);
15427
15833
  }
@@ -15481,16 +15887,17 @@ function compileScript(sfc, options) {
15481
15887
  if (ctx.propsDestructureRestId) setupBindings[ctx.propsDestructureRestId] = "setup-reactive-const";
15482
15888
  const isDefineEmits = !isDefineProps && processDefineEmits(ctx, init, decl.id);
15483
15889
  !isDefineEmits && (processDefineSlots(ctx, init, decl.id) || processDefineModel(ctx, init, decl.id));
15484
- if (isDefineProps && !ctx.propsDestructureRestId && ctx.propsDestructureDecl) if (left === 1) ctx.s.remove(node.start + startOffset, node.end + startOffset);
15485
- else {
15486
- let start = decl.start + startOffset;
15487
- let end = decl.end + startOffset;
15488
- if (i === total - 1) start = node.declarations[lastNonRemoved].end + startOffset;
15489
- else end = node.declarations[i + 1].start + startOffset;
15490
- ctx.s.remove(start, end);
15491
- left--;
15492
- }
15493
- else if (isDefineEmits) ctx.s.overwrite(startOffset + init.start, startOffset + init.end, "__emit");
15890
+ if (isDefineProps && !ctx.propsDestructureRestId && ctx.propsDestructureDecl) {
15891
+ if (left === 1) ctx.s.remove(node.start + startOffset, node.end + startOffset);
15892
+ else {
15893
+ let start = decl.start + startOffset;
15894
+ let end = decl.end + startOffset;
15895
+ if (i === total - 1) start = node.declarations[lastNonRemoved].end + startOffset;
15896
+ else end = node.declarations[i + 1].start + startOffset;
15897
+ ctx.s.remove(start, end);
15898
+ left--;
15899
+ }
15900
+ } else if (isDefineEmits) ctx.s.overwrite(startOffset + init.start, startOffset + init.end, "__emit");
15494
15901
  else lastNonRemoved = i;
15495
15902
  }
15496
15903
  }
@@ -15504,15 +15911,17 @@ function compileScript(sfc, options) {
15504
15911
  enter(child, parent) {
15505
15912
  if ((0, _vue_compiler_dom.isFunctionType)(child)) this.skip();
15506
15913
  if (child.type === "BlockStatement") scope.push(child.body);
15914
+ else if (child.type === "SwitchCase") scope.push(child.consequent);
15507
15915
  if (child.type === "AwaitExpression") {
15508
15916
  hasAwait = true;
15509
- processAwait(ctx, child, scope[scope.length - 1].some((n, i) => {
15917
+ const needsSemi = scope[scope.length - 1].some((n, i) => {
15510
15918
  return (scope.length === 1 || i > 0) && n.type === "ExpressionStatement" && n.start === child.start;
15511
- }), parent.type === "ExpressionStatement");
15919
+ });
15920
+ processAwait(ctx, child, needsSemi, parent.type === "ExpressionStatement");
15512
15921
  }
15513
15922
  },
15514
- exit(node) {
15515
- if (node.type === "BlockStatement") scope.pop();
15923
+ leave(node) {
15924
+ if (node.type === "BlockStatement" || node.type === "SwitchCase") scope.pop();
15516
15925
  }
15517
15926
  });
15518
15927
  }
@@ -15530,16 +15939,17 @@ function compileScript(sfc, options) {
15530
15939
  checkInvalidScopeReference(ctx.emitsRuntimeDecl, DEFINE_EMITS);
15531
15940
  checkInvalidScopeReference(ctx.optionsRuntimeDecl, DEFINE_OPTIONS);
15532
15941
  for (const { runtimeOptionNodes } of Object.values(ctx.modelDecls)) for (const node of runtimeOptionNodes) checkInvalidScopeReference(node, DEFINE_MODEL);
15533
- if (script) if (startOffset < scriptStartOffset) {
15534
- ctx.s.remove(0, startOffset);
15535
- ctx.s.remove(endOffset, scriptStartOffset);
15536
- ctx.s.remove(scriptEndOffset, source.length);
15942
+ if (script) {
15943
+ if (startOffset < scriptStartOffset) {
15944
+ ctx.s.remove(0, startOffset);
15945
+ ctx.s.remove(endOffset, scriptStartOffset);
15946
+ ctx.s.remove(scriptEndOffset, source.length);
15947
+ } else {
15948
+ ctx.s.remove(0, scriptStartOffset);
15949
+ ctx.s.remove(scriptEndOffset, startOffset);
15950
+ ctx.s.remove(endOffset, source.length);
15951
+ }
15537
15952
  } else {
15538
- ctx.s.remove(0, scriptStartOffset);
15539
- ctx.s.remove(scriptEndOffset, startOffset);
15540
- ctx.s.remove(endOffset, source.length);
15541
- }
15542
- else {
15543
15953
  ctx.s.remove(0, startOffset);
15544
15954
  ctx.s.remove(endOffset, source.length);
15545
15955
  }
@@ -15551,7 +15961,7 @@ function compileScript(sfc, options) {
15551
15961
  for (const key in scriptBindings) ctx.bindingMetadata[key] = scriptBindings[key];
15552
15962
  for (const key in setupBindings) ctx.bindingMetadata[key] = setupBindings[key];
15553
15963
  if (sfc.template && !sfc.template.src && sfc.template.ast) {
15554
- const vModelIds = resolveTemplateVModelIdentifiers(sfc);
15964
+ const vModelIds = resolveTemplateVModelIdentifiers(sfc, options.templateOptions);
15555
15965
  if (vModelIds.size) {
15556
15966
  const toDemote = /* @__PURE__ */ new Set();
15557
15967
  for (const id of vModelIds) if (setupBindings[id] === "setup-reactive-const") toDemote.add(id);
@@ -15591,8 +16001,10 @@ function compileScript(sfc, options) {
15591
16001
  const destructureElements = ctx.hasDefineExposeCall || !inlineMode ? [`expose: __expose`] : [];
15592
16002
  if (ctx.emitDecl) destructureElements.push(`emit: __emit`);
15593
16003
  if (inlineMode) buildDestructureElements();
16004
+ if (vapor && !ssr) declareTemplateCssModules();
15594
16005
  if (destructureElements.length) args += `, { ${destructureElements.join(", ")} }`;
15595
16006
  let templateMap;
16007
+ let templateCode;
15596
16008
  let returned;
15597
16009
  const propsDecl = genRuntimeProps(ctx);
15598
16010
  if (!inlineMode || !sfc.template && ctx.hasDefaultExportRender) {
@@ -15607,6 +16019,7 @@ function compileScript(sfc, options) {
15607
16019
  const setArg = key === "v" ? `_v` : `v`;
15608
16020
  returned += `get ${key}() { return ${key} }, set ${key}(${setArg}) { ${key} = ${setArg} }, `;
15609
16021
  } else returned += `${key}, `;
16022
+ returned += cssModuleBindings.join(", ");
15610
16023
  returned = returned.replace(/, $/, "") + ` }`;
15611
16024
  } else if (sfc.template && !sfc.template.src) {
15612
16025
  if (ssr) hasInlinedSsrRenderFn = true;
@@ -15629,6 +16042,7 @@ function compileScript(sfc, options) {
15629
16042
  }
15630
16043
  });
15631
16044
  templateMap = map;
16045
+ templateCode = code;
15632
16046
  if (tips.length) tips.forEach(warnOnce);
15633
16047
  const err = errors[0];
15634
16048
  if (typeof err === "string") throw new Error(err);
@@ -15638,10 +16052,11 @@ function compileScript(sfc, options) {
15638
16052
  }
15639
16053
  if (preamble) ctx.s.prepend(preamble);
15640
16054
  if (helpers && (helpers.has(_vue_compiler_dom.UNREF) || helpers.has("unref"))) ctx.helperImports.delete("unref");
15641
- returned = code;
16055
+ returned = vapor && !ssr && hasAwait ? `return () => {${code}}` : code;
16056
+ if (cssModuleBindings.length) returned = `{\n${cssModuleBindings.join("\n")}\n${returned}\n}`;
15642
16057
  } else returned = `() => {}`;
15643
16058
  if (!inlineMode && true) ctx.s.appendRight(endOffset, `\nconst __returned__ = ${returned}\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n`);
15644
- else ctx.s.appendRight(endOffset, `\n${vapor && !ssr ? `` : `return `}${returned}\n}\n\n`);
16059
+ else ctx.s.appendRight(endOffset, `\n${vapor && !ssr && inlineMode ? `` : `return `}${returned}\n}\n\n`);
15645
16060
  const genDefaultAs = options.genDefaultAs ? `const ${options.genDefaultAs} =` : `export default`;
15646
16061
  let runtimeOptions = ``;
15647
16062
  if (!ctx.hasDefaultExportName && filename && filename !== "anonymous.vue") {
@@ -15653,8 +16068,8 @@ function compileScript(sfc, options) {
15653
16068
  const emitsDecl = genRuntimeEmits(ctx);
15654
16069
  if (emitsDecl) runtimeOptions += `\n emits: ${emitsDecl},`;
15655
16070
  if (vapor && !ssr && sfc.template && !sfc.template.src) {
15656
- var _options$templateOpti2;
15657
- if (isMultiRoot(sfc.template.ast, (_options$templateOpti2 = options.templateOptions) === null || _options$templateOpti2 === void 0 ? void 0 : _options$templateOpti2.compilerOptions)) runtimeOptions += `\n __multiRoot: true,`;
16071
+ var _options$templateOpti3;
16072
+ if (isMultiRoot(sfc.template.ast, (_options$templateOpti3 = options.templateOptions) === null || _options$templateOpti3 === void 0 ? void 0 : _options$templateOpti3.compilerOptions)) runtimeOptions += `\n __multiRoot: true,`;
15658
16073
  }
15659
16074
  let definedOptions = "";
15660
16075
  if (ctx.optionsRuntimeDecl) definedOptions = scriptSetup.content.slice(ctx.optionsRuntimeDecl.start, ctx.optionsRuntimeDecl.end).trim();
@@ -15676,10 +16091,10 @@ function compileScript(sfc, options) {
15676
16091
  }
15677
16092
  }
15678
16093
  if (ctx.helperImports.size > 0) {
15679
- var _options$templateOpti3;
15680
- const runtimeModuleName = (_options$templateOpti3 = options.templateOptions) === null || _options$templateOpti3 === void 0 || (_options$templateOpti3 = _options$templateOpti3.compilerOptions) === null || _options$templateOpti3 === void 0 ? void 0 : _options$templateOpti3.runtimeModuleName;
16094
+ var _options$templateOpti4;
16095
+ const runtimeModuleName = (_options$templateOpti4 = options.templateOptions) === null || _options$templateOpti4 === void 0 || (_options$templateOpti4 = _options$templateOpti4.compilerOptions) === null || _options$templateOpti4 === void 0 ? void 0 : _options$templateOpti4.runtimeModuleName;
15681
16096
  const importSrc = runtimeModuleName ? JSON.stringify(runtimeModuleName) : `'vue'`;
15682
- ctx.s.prepend(`import { ${[...ctx.helperImports].map((h) => `${h} as _${h}`).join(", ")} } from ${importSrc}\n`);
16097
+ ctx.s.prepend(`import { ${[...ctx.helperImports].map((h) => `${h} as ${h === "useCssModule" ? cssModuleHelper : `_${h}`}`).join(", ")} } from ${importSrc}\n`);
15683
16098
  }
15684
16099
  const content = ctx.s.toString();
15685
16100
  let map = options.sourceMap !== false ? ctx.s.generateMap({
@@ -15688,7 +16103,7 @@ function compileScript(sfc, options) {
15688
16103
  includeContent: true
15689
16104
  }) : void 0;
15690
16105
  if (templateMap && map) {
15691
- const offset = content.indexOf(returned);
16106
+ const offset = content.indexOf(templateCode);
15692
16107
  const templateLineOffset = content.slice(0, offset).split(/\r?\n/).length - 1;
15693
16108
  map = mergeSourceMaps(map, templateMap, templateLineOffset);
15694
16109
  }
@@ -15720,9 +16135,10 @@ function walkDeclaration(from, node, bindings, userImportAliases, hoistStatic, i
15720
16135
  if ((hoistStatic || from === "script") && (isAllLiteral || isConst && (0, _vue_compiler_dom.isStaticNode)(init))) bindingType = "literal-const";
15721
16136
  else if (isCallOf(init, userReactiveBinding)) bindingType = isConst ? "setup-reactive-const" : "setup-let";
15722
16137
  else if (isConstMacroCall || isConst && canNeverBeRef(init, userReactiveBinding)) bindingType = isCallOf(init, "defineProps") ? "setup-reactive-const" : "setup-const";
15723
- else if (isConst) if (isCallOf(init, (m) => m === userImportAliases["ref"] || m === userImportAliases["computed"] || m === userImportAliases["shallowRef"] || m === userImportAliases["customRef"] || m === userImportAliases["toRef"] || m === userImportAliases["useTemplateRef"] || m === "defineModel")) bindingType = "setup-ref";
15724
- else bindingType = "setup-maybe-ref";
15725
- else bindingType = "setup-let";
16138
+ else if (isConst) {
16139
+ if (isCallOf(init, (m) => m === userImportAliases["ref"] || m === userImportAliases["computed"] || m === userImportAliases["shallowRef"] || m === userImportAliases["customRef"] || m === userImportAliases["toRef"] || m === userImportAliases["useTemplateRef"] || m === "defineModel")) bindingType = "setup-ref";
16140
+ else bindingType = "setup-maybe-ref";
16141
+ } else bindingType = "setup-let";
15726
16142
  registerBinding(bindings, id, bindingType);
15727
16143
  } else {
15728
16144
  if (isCallOf(init, "defineProps") && isPropsDestructureEnabled) continue;
@@ -15737,11 +16153,12 @@ function walkDeclaration(from, node, bindings, userImportAliases, hoistStatic, i
15737
16153
  return isAllLiteral;
15738
16154
  }
15739
16155
  function walkObjectPattern(node, bindings, isConst, isDefineCall = false) {
15740
- for (const p of node.properties) if (p.type === "ObjectProperty") if (p.key.type === "Identifier" && p.key === p.value) {
15741
- const type = isDefineCall ? "setup-const" : isConst ? "setup-maybe-ref" : "setup-let";
15742
- registerBinding(bindings, p.key, type);
15743
- } else walkPattern(p.value, bindings, isConst, isDefineCall);
15744
- else {
16156
+ for (const p of node.properties) if (p.type === "ObjectProperty") {
16157
+ if (p.key.type === "Identifier" && p.key === p.value) {
16158
+ const type = isDefineCall ? "setup-const" : isConst ? "setup-maybe-ref" : "setup-let";
16159
+ registerBinding(bindings, p.key, type);
16160
+ } else walkPattern(p.value, bindings, isConst, isDefineCall);
16161
+ } else {
15745
16162
  const type = isConst ? "setup-const" : "setup-let";
15746
16163
  registerBinding(bindings, p.argument, type);
15747
16164
  }
@@ -15756,10 +16173,12 @@ function walkPattern(node, bindings, isConst, isDefineCall = false) {
15756
16173
  registerBinding(bindings, node.argument, type);
15757
16174
  } else if (node.type === "ObjectPattern") walkObjectPattern(node, bindings, isConst);
15758
16175
  else if (node.type === "ArrayPattern") walkArrayPattern(node, bindings, isConst);
15759
- else if (node.type === "AssignmentPattern") if (node.left.type === "Identifier") {
15760
- const type = isDefineCall ? "setup-const" : isConst ? "setup-maybe-ref" : "setup-let";
15761
- registerBinding(bindings, node.left, type);
15762
- } else walkPattern(node.left, bindings, isConst);
16176
+ else if (node.type === "AssignmentPattern") {
16177
+ if (node.left.type === "Identifier") {
16178
+ const type = isDefineCall ? "setup-const" : isConst ? "setup-maybe-ref" : "setup-let";
16179
+ registerBinding(bindings, node.left, type);
16180
+ } else walkPattern(node.left, bindings, isConst);
16181
+ }
15763
16182
  }
15764
16183
  function canNeverBeRef(node, userReactiveImport) {
15765
16184
  if (isCallOf(node, userReactiveImport)) return true;
@@ -15812,7 +16231,7 @@ function mergeSourceMaps(scriptMap, templateMap, templateLineOffset) {
15812
16231
  }
15813
16232
  //#endregion
15814
16233
  //#region packages/compiler-sfc/src/index.ts
15815
- const version = "3.6.0-rc.1";
16234
+ const version = "3.6.0-rc.10";
15816
16235
  const parseCache = parseCache$1;
15817
16236
  const errorMessages = {
15818
16237
  ..._vue_compiler_dom.errorMessages,