@dcloudio/uni-cli-shared 3.0.0-5000720260410001 → 3.0.0-5010420260703001

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.
Files changed (90) hide show
  1. package/dist/constants.d.ts +1 -3
  2. package/dist/constants.js +2 -6
  3. package/dist/deps.d.ts +1 -0
  4. package/dist/deps.js +22 -13
  5. package/dist/dom2/fontFamily.d.ts +4 -0
  6. package/dist/dom2/fontFamily.js +21 -0
  7. package/dist/dom2/index.d.ts +3 -0
  8. package/dist/dom2/index.js +3 -0
  9. package/dist/dom2/rootScrollView.d.ts +47 -0
  10. package/dist/dom2/rootScrollView.js +283 -0
  11. package/dist/dom2/sharedData.d.ts +4 -0
  12. package/dist/dom2/sharedData.js +40 -5
  13. package/dist/dom2/vue.d.ts +17 -0
  14. package/dist/dom2/vue.js +50 -0
  15. package/dist/easycom.d.ts +1 -0
  16. package/dist/easycom.js +23 -9
  17. package/dist/env/define.d.ts +0 -1
  18. package/dist/env/define.js +3 -11
  19. package/dist/hbx/alias.js +66 -10
  20. package/dist/hbx/log.js +9 -2
  21. package/dist/index.d.ts +2 -1
  22. package/dist/index.js +3 -1
  23. package/dist/json/app/manifest/plus.js +9 -1
  24. package/dist/json/index.d.ts +1 -1
  25. package/dist/json/index.js +2 -1
  26. package/dist/json/uni-x/index.d.ts +6 -0
  27. package/dist/json/uni-x/index.js +54 -1
  28. package/dist/json/uni-x/manifest.d.ts +1 -1
  29. package/dist/json/uni-x/manifest.js +2 -1
  30. package/dist/json/utils.js +24 -0
  31. package/dist/messages/en.d.ts +10 -2
  32. package/dist/messages/en.js +10 -2
  33. package/dist/messages/index.d.ts +20 -4
  34. package/dist/messages/zh_CN.d.ts +10 -2
  35. package/dist/messages/zh_CN.js +10 -2
  36. package/dist/mp/style.js +6 -2
  37. package/dist/postcss/plugins/stylePluginExternal.d.ts +9 -10
  38. package/dist/postcss/plugins/stylePluginExternal.js +51 -45
  39. package/dist/uni_modules.cloud.d.ts +7 -1
  40. package/dist/uni_modules.cloud.js +131 -14
  41. package/dist/uni_modules.js +3 -2
  42. package/dist/utils.js +5 -0
  43. package/dist/uts.d.ts +1 -0
  44. package/dist/uts.js +90 -6
  45. package/dist/vite/autoImport.js +7 -4
  46. package/dist/vite/cloud.js +13 -6
  47. package/dist/vite/extApi.js +4 -1
  48. package/dist/vite/plugins/inject.js +4 -1
  49. package/dist/vite/plugins/json.js +2 -69
  50. package/dist/vite/plugins/pre.js +2 -0
  51. package/dist/vite/plugins/stats.d.ts +5 -1
  52. package/dist/vite/plugins/stats.js +74 -3
  53. package/dist/vite/plugins/uts/uni_modules.d.ts +1 -1
  54. package/dist/vite/plugins/uts/uni_modules.js +30 -12
  55. package/dist/vite/plugins/vitejs/plugins/css.d.ts +2 -2
  56. package/dist/vite/plugins/vitejs/plugins/css.js +10 -5
  57. package/dist/vue/transforms/index.d.ts +1 -0
  58. package/dist/vue/transforms/index.js +1 -0
  59. package/dist/vue/transforms/transformTeleport.d.ts +2 -0
  60. package/dist/vue/transforms/transformTeleport.js +68 -0
  61. package/dist/vue/transforms/x/transformDirection.js +33 -4
  62. package/dist/workers.d.ts +1 -0
  63. package/dist/workers.js +12 -5
  64. package/dist/x.d.ts +10 -0
  65. package/dist/x.js +39 -0
  66. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.cjs +0 -7
  67. package/lib/dom2/app/@vitejs/plugin-vue/dist/index.mjs +0 -7
  68. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +58 -63
  69. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +58 -63
  70. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +7 -1
  71. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +22 -47
  72. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +12 -23
  73. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +12 -22
  74. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +23 -74
  75. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +5 -5
  76. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +3 -20
  77. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +310 -363
  78. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.prod.js +5 -5
  79. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +810 -579
  80. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.d.ts +33 -11114
  81. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +1638 -1250
  82. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +1031 -599
  83. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +470 -328
  84. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +1154 -709
  85. package/lib/dom2/app/@vue/compiler-vapor-dom2/dist/compiler-vapor-dom2.cjs.js +1 -1
  86. package/lib/dom2/app/@vue/shared/dist/shared.cjs.js +16 -25
  87. package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +16 -25
  88. package/lib/dom2/app/@vue/shared/dist/shared.d.ts +5 -0
  89. package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +11 -23
  90. package/package.json +6 -6
@@ -1,9 +1,12 @@
1
1
  /**
2
- * @vue/compiler-sfc v3.6.0-beta.5
2
+ * @vue/compiler-sfc v3.6.0-beta.12
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
6
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
6
+ Object.defineProperties(exports, {
7
+ __esModule: { value: true },
8
+ [Symbol.toStringTag]: { value: "Module" }
9
+ });
7
10
  //#region \0rolldown/runtime.js
8
11
  var __create = Object.create;
9
12
  var __defProp = Object.defineProperty;
@@ -11,18 +14,14 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
14
  var __getOwnPropNames = Object.getOwnPropertyNames;
12
15
  var __getProtoOf = Object.getPrototypeOf;
13
16
  var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
17
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
15
18
  var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18
- key = keys[i];
19
- if (!__hasOwnProp.call(to, key) && key !== except) {
20
- __defProp(to, key, {
21
- get: ((k) => from[k]).bind(null, key),
22
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23
- });
24
- }
25
- }
19
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
20
+ key = keys[i];
21
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
22
+ get: ((k) => from[k]).bind(null, key),
23
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
24
+ });
26
25
  }
27
26
  return to;
28
27
  };
@@ -30,7 +29,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
29
  value: mod,
31
30
  enumerable: true
32
31
  }) : target, mod));
33
-
34
32
  //#endregion
35
33
  let _vue_compiler_core = require("@vue/compiler-core");
36
34
  let _vue_compiler_dom = require("@vue/compiler-dom");
@@ -53,9 +51,9 @@ magic_string = __toESM(magic_string);
53
51
  let _babel_parser = require("@babel/parser");
54
52
  let process$1 = require("process");
55
53
  process$1 = __toESM(process$1);
56
-
57
- //#region node_modules/.pnpm/hash-sum@2.0.0/node_modules/hash-sum/hash-sum.js
58
- var require_hash_sum = /* @__PURE__ */ __commonJSMin(((exports, module) => {
54
+ //#endregion
55
+ //#region packages/compiler-sfc/src/style/cssVars.ts
56
+ var import_hash_sum = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
59
57
  function pad(hash, len) {
60
58
  while (hash.length < len) hash = "0" + hash;
61
59
  return hash;
@@ -102,11 +100,7 @@ var require_hash_sum = /* @__PURE__ */ __commonJSMin(((exports, module) => {
102
100
  return pad(foldValue(0, o, "", []).toString(16), 8);
103
101
  }
104
102
  module.exports = sum;
105
- }));
106
-
107
- //#endregion
108
- //#region packages/compiler-sfc/src/style/cssVars.ts
109
- var import_hash_sum = /* @__PURE__ */ __toESM(require_hash_sum());
103
+ })))());
110
104
  const CSS_VARS_HELPER = `useCssVars`;
111
105
  function getCssVarsHelper(vapor) {
112
106
  return vapor ? `useVaporCssVars` : CSS_VARS_HELPER;
@@ -140,30 +134,24 @@ function parseCssVars(sfc) {
140
134
  });
141
135
  return vars;
142
136
  }
143
- var LexerState = /* @__PURE__ */ function(LexerState) {
144
- LexerState[LexerState["inParens"] = 0] = "inParens";
145
- LexerState[LexerState["inSingleQuoteString"] = 1] = "inSingleQuoteString";
146
- LexerState[LexerState["inDoubleQuoteString"] = 2] = "inDoubleQuoteString";
147
- return LexerState;
148
- }(LexerState || {});
149
137
  function lexBinding(content, start) {
150
- let state = LexerState.inParens;
138
+ let state = 0;
151
139
  let parenDepth = 0;
152
140
  for (let i = start; i < content.length; i++) {
153
141
  const char = content.charAt(i);
154
142
  switch (state) {
155
- case LexerState.inParens:
156
- if (char === `'`) state = LexerState.inSingleQuoteString;
157
- else if (char === `"`) state = LexerState.inDoubleQuoteString;
143
+ case 0:
144
+ if (char === `'`) state = 1;
145
+ else if (char === `"`) state = 2;
158
146
  else if (char === `(`) parenDepth++;
159
147
  else if (char === `)`) if (parenDepth > 0) parenDepth--;
160
148
  else return i;
161
149
  break;
162
- case LexerState.inSingleQuoteString:
163
- if (char === `'`) state = LexerState.inParens;
150
+ case 1:
151
+ if (char === `'`) state = 0;
164
152
  break;
165
- case LexerState.inDoubleQuoteString:
166
- if (char === `"`) state = LexerState.inParens;
153
+ case 2:
154
+ if (char === `"`) state = 0;
167
155
  break;
168
156
  }
169
157
  }
@@ -209,44 +197,37 @@ function genCssVarsCode(vars, bindings, id, isProd, vapor) {
209
197
  function genNormalScriptCssVarsCode(cssVars, bindings, id, isProd, defaultVar) {
210
198
  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`;
211
199
  }
212
-
213
200
  //#endregion
214
- //#region \0@oxc-project+runtime@0.111.0/helpers/checkPrivateRedeclaration.js
201
+ //#region \0@oxc-project+runtime@0.129.0/helpers/checkPrivateRedeclaration.js
215
202
  function _checkPrivateRedeclaration(e, t) {
216
203
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
217
204
  }
218
-
219
205
  //#endregion
220
- //#region \0@oxc-project+runtime@0.111.0/helpers/classPrivateMethodInitSpec.js
206
+ //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateMethodInitSpec.js
221
207
  function _classPrivateMethodInitSpec(e, a) {
222
208
  _checkPrivateRedeclaration(e, a), a.add(e);
223
209
  }
224
-
225
210
  //#endregion
226
- //#region \0@oxc-project+runtime@0.111.0/helpers/classPrivateFieldInitSpec.js
211
+ //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldInitSpec.js
227
212
  function _classPrivateFieldInitSpec(e, t, a) {
228
213
  _checkPrivateRedeclaration(e, t), t.set(e, a);
229
214
  }
230
-
231
215
  //#endregion
232
- //#region \0@oxc-project+runtime@0.111.0/helpers/assertClassBrand.js
216
+ //#region \0@oxc-project+runtime@0.129.0/helpers/assertClassBrand.js
233
217
  function _assertClassBrand(e, t, n) {
234
218
  if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
235
219
  throw new TypeError("Private element is not present on this object");
236
220
  }
237
-
238
221
  //#endregion
239
- //#region \0@oxc-project+runtime@0.111.0/helpers/classPrivateFieldGet2.js
222
+ //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldGet2.js
240
223
  function _classPrivateFieldGet2(s, a) {
241
224
  return s.get(_assertClassBrand(s, a));
242
225
  }
243
-
244
226
  //#endregion
245
- //#region \0@oxc-project+runtime@0.111.0/helpers/classPrivateFieldSet2.js
227
+ //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldSet2.js
246
228
  function _classPrivateFieldSet2(s, a, r) {
247
229
  return s.set(_assertClassBrand(s, a), r), r;
248
230
  }
249
-
250
231
  //#endregion
251
232
  //#region node_modules/.pnpm/lru-cache@10.1.0/node_modules/lru-cache/dist/esm/index.js
252
233
  let _Symbol$iterator;
@@ -1319,13 +1300,11 @@ function _moveToTail(index) {
1319
1300
  _classPrivateFieldSet2(_tail, this, index);
1320
1301
  }
1321
1302
  }
1322
-
1323
1303
  //#endregion
1324
1304
  //#region packages/compiler-sfc/src/cache.ts
1325
1305
  function createCache(max = 500) {
1326
1306
  return new LRUCache({ max });
1327
1307
  }
1328
-
1329
1308
  //#endregion
1330
1309
  //#region packages/compiler-sfc/src/script/importUsageCheck.ts
1331
1310
  /**
@@ -1403,7 +1382,6 @@ function extractIdentifiers$2(ids, node) {
1403
1382
  if (node.ast) (0, _vue_compiler_dom.walkIdentifiers)(node.ast, (n) => ids.add(n.name));
1404
1383
  else if (node.ast === null) ids.add(node.content);
1405
1384
  }
1406
-
1407
1385
  //#endregion
1408
1386
  //#region packages/compiler-sfc/src/script/utils.ts
1409
1387
  const UNKNOWN_TYPE = "Unknown";
@@ -1467,7 +1445,6 @@ function getEscapedPropName(key) {
1467
1445
  }
1468
1446
  const isJS = (...langs) => langs.some((lang) => lang === "js" || lang === "jsx");
1469
1447
  const isTS = (...langs) => langs.some((lang) => lang === "ts" || lang === "tsx" || lang === "uts");
1470
-
1471
1448
  //#endregion
1472
1449
  //#region packages/compiler-sfc/src/parse.ts
1473
1450
  const DEFAULT_FILENAME = "anonymous.vue";
@@ -1852,12 +1829,11 @@ function createCppBlock({ props, loc }, options) {
1852
1829
  errors
1853
1830
  };
1854
1831
  }
1855
-
1856
1832
  //#endregion
1857
1833
  //#region packages/compiler-sfc/src/template/templateUtils.ts
1858
1834
  function isRelativeUrl(url$1) {
1859
1835
  const firstChar = url$1.charAt(0);
1860
- return firstChar === "." || firstChar === "~" || firstChar === "@";
1836
+ return firstChar === "." || firstChar === "~" || firstChar === "@" || firstChar === "#";
1861
1837
  }
1862
1838
  const externalRE = /^(?:https?:)?\/\//;
1863
1839
  function isExternalUrl(url$2) {
@@ -1867,6 +1843,13 @@ const dataUrlRE = /^\s*data:/i;
1867
1843
  function isDataUrl(url$3) {
1868
1844
  return dataUrlRE.test(url$3);
1869
1845
  }
1846
+ function normalizeDecodedImportPath(source) {
1847
+ try {
1848
+ return decodeURIComponent(source);
1849
+ } catch {
1850
+ return source;
1851
+ }
1852
+ }
1870
1853
  /**
1871
1854
  * Parses string url into URL object.
1872
1855
  */
@@ -1884,16 +1867,92 @@ function parseUrl(url$4) {
1884
1867
  function parseUriParts(urlString) {
1885
1868
  return (0, url.parse)((0, _vue_shared.isString)(urlString) ? urlString : "", false, true);
1886
1869
  }
1887
-
1870
+ /**
1871
+ * Whether the current component should be treated as multi-root at the
1872
+ * component boundary.
1873
+ *
1874
+ * This is currently only attached to Vapor components. During Vapor hydration,
1875
+ * components hydrate while they are being created, so the runtime needs this
1876
+ * metadata to know whether the current SSR `<!--[--> ... <!--]-->` belongs to
1877
+ * the component itself and should be consumed before hydrating its children.
1878
+ *
1879
+ * The inference is aligned with compile-ssr's ownership semantics: it answers
1880
+ * whether the component root itself owns an outer fragment wrapper.
1881
+ */
1882
+ function isMultiRoot(template, parserOptions) {
1883
+ const preserveComments = (parserOptions === null || parserOptions === void 0 ? void 0 : parserOptions.comments) !== false;
1884
+ if (typeof template === "string") return countRootUnits(parse(`<template>${template}</template>`, {
1885
+ sourceMap: false,
1886
+ ignoreEmpty: false,
1887
+ templateParseOptions: parserOptions
1888
+ }).descriptor.template.ast, preserveComments) > 1;
1889
+ if (isTemplateBlock(template)) return countRootUnits(template.ast, preserveComments) > 1;
1890
+ return countRootUnits(template, preserveComments) > 1;
1891
+ }
1892
+ function countRootUnits(parent, preserveComments) {
1893
+ const { children } = parent;
1894
+ let count = 0;
1895
+ for (let i = 0; i < children.length; i++) {
1896
+ const child = children[i];
1897
+ if (isWhitespaceRootText(child)) continue;
1898
+ if (isIfBranchStart(child)) {
1899
+ count++;
1900
+ let lastBranchIndex = i;
1901
+ let nextIndex = i + 1;
1902
+ while (nextIndex < children.length) {
1903
+ let continuationIndex = nextIndex;
1904
+ while (continuationIndex < children.length && isIgnorableIfChainSeparator(children[continuationIndex])) continuationIndex++;
1905
+ if (continuationIndex < children.length && isIfBranchContinuation(children[continuationIndex])) {
1906
+ lastBranchIndex = continuationIndex;
1907
+ nextIndex = continuationIndex + 1;
1908
+ continue;
1909
+ }
1910
+ break;
1911
+ }
1912
+ i = lastBranchIndex;
1913
+ continue;
1914
+ }
1915
+ count += countRootUnit(child, preserveComments);
1916
+ }
1917
+ return count;
1918
+ }
1919
+ function countRootUnit(node, preserveComments) {
1920
+ if (node.type !== 1) return node.type === 3 && !preserveComments ? 0 : 1;
1921
+ if (hasStructuralDirective(node, "if") || hasStructuralDirective(node, "for")) return 1;
1922
+ if (node.tag === "slot" || node.tagType === 1) return 1;
1923
+ if (node.tagType === 3) return countRootUnits(node, preserveComments);
1924
+ return 1;
1925
+ }
1926
+ function hasStructuralDirective(node, name) {
1927
+ return !!(0, _vue_compiler_dom.findDir)(node, name);
1928
+ }
1929
+ function isIfBranchStart(node) {
1930
+ return node.type === 1 && hasStructuralDirective(node, "if");
1931
+ }
1932
+ function isIfBranchContinuation(node) {
1933
+ return node.type === 1 && !!(0, _vue_compiler_dom.findDir)(node, /^else(-if)?$/, true);
1934
+ }
1935
+ function isWhitespaceRootText(node) {
1936
+ return node.type === 2 && !node.content.trim();
1937
+ }
1938
+ function isIgnorableIfChainSeparator(node) {
1939
+ return isWhitespaceRootText(node) || node.type === 3;
1940
+ }
1941
+ function isTemplateBlock(value) {
1942
+ return "content" in value && "attrs" in value;
1943
+ }
1888
1944
  //#endregion
1889
1945
  //#region packages/compiler-sfc/src/template/transformAssetUrl.ts
1946
+ const resourceUrlTagConfig = {
1947
+ video: ["src", "poster"],
1948
+ source: ["src"],
1949
+ img: ["src"]
1950
+ };
1890
1951
  const defaultAssetUrlOptions = {
1891
1952
  base: null,
1892
1953
  includeAbsolute: false,
1893
1954
  tags: {
1894
- video: ["src", "poster"],
1895
- source: ["src"],
1896
- img: ["src"],
1955
+ ...resourceUrlTagConfig,
1897
1956
  image: ["xlink:href", "href"],
1898
1957
  use: ["xlink:href", "href"]
1899
1958
  }
@@ -1911,6 +1970,10 @@ const normalizeOptions = (options) => {
1911
1970
  const createAssetUrlTransformWithOptions = (options) => {
1912
1971
  return (node, context) => transformAssetUrl(node, context, options);
1913
1972
  };
1973
+ function canTransformHashImport(tag, attrName) {
1974
+ var _resourceUrlTagConfig;
1975
+ return !!((_resourceUrlTagConfig = resourceUrlTagConfig[tag]) === null || _resourceUrlTagConfig === void 0 ? void 0 : _resourceUrlTagConfig.includes(attrName));
1976
+ }
1914
1977
  /**
1915
1978
  * A `@vue/compiler-core` plugin that transforms relative asset urls into
1916
1979
  * either imports or absolute urls.
@@ -1933,9 +1996,12 @@ const transformAssetUrl = (node, context, options = defaultAssetUrlOptions) => {
1933
1996
  if (!attrs && !wildCardAttrs) return;
1934
1997
  const assetAttrs = (attrs || []).concat(wildCardAttrs || []);
1935
1998
  node.props.forEach((attr, index) => {
1936
- if (attr.type !== 6 || !assetAttrs.includes(attr.name) || !attr.value || isExternalUrl(attr.value.content) || isDataUrl(attr.value.content) || attr.value.content[0] === "#" || !options.includeAbsolute && !isRelativeUrl(attr.value.content)) return;
1937
- const url = parseUrl(attr.value.content);
1938
- if (options.base && attr.value.content[0] === ".") {
1999
+ if (attr.type !== 6 || !assetAttrs.includes(attr.name) || !attr.value) return;
2000
+ const urlValue = attr.value.content;
2001
+ const isHashOnlyValue = urlValue[0] === "#";
2002
+ if (isExternalUrl(urlValue) || isDataUrl(urlValue) || urlValue === "#" || isHashOnlyValue && !canTransformHashImport(node.tag, attr.name) || !options.includeAbsolute && !isRelativeUrl(urlValue)) return;
2003
+ const url = parseUrl(urlValue);
2004
+ if (options.base && urlValue[0] === ".") {
1939
2005
  const base = parseUrl(options.base);
1940
2006
  const protocol = base.protocol || "";
1941
2007
  const host = base.host ? protocol + "//" + base.host : "";
@@ -1955,34 +2021,54 @@ const transformAssetUrl = (node, context, options = defaultAssetUrlOptions) => {
1955
2021
  });
1956
2022
  }
1957
2023
  };
2024
+ /**
2025
+ * Resolves or registers an import for the given source path
2026
+ * @param source - Path to resolve import for
2027
+ * @param loc - Source location
2028
+ * @param context - Transform context
2029
+ * @returns Object containing import name and expression
2030
+ */
2031
+ function resolveOrRegisterImport(source, loc, context) {
2032
+ const normalizedSource = normalizeDecodedImportPath(source);
2033
+ const existingIndex = context.imports.findIndex((i) => i.path === normalizedSource);
2034
+ if (existingIndex > -1) return {
2035
+ name: `_imports_${existingIndex}`,
2036
+ exp: context.imports[existingIndex].exp
2037
+ };
2038
+ const name = `_imports_${context.imports.length}`;
2039
+ const exp = (0, _vue_compiler_core.createSimpleExpression)(name, false, loc, 3);
2040
+ context.imports.push({
2041
+ exp,
2042
+ path: normalizedSource
2043
+ });
2044
+ return {
2045
+ name,
2046
+ exp
2047
+ };
2048
+ }
2049
+ /**
2050
+ * Transforms asset URLs into import expressions or string literals
2051
+ */
1958
2052
  function getImportsExpressionExp(path$24, hash, loc, context) {
1959
- if (path$24) {
1960
- let name;
1961
- let exp;
1962
- const existingIndex = context.imports.findIndex((i) => i.path === path$24);
1963
- if (existingIndex > -1) {
1964
- name = `_imports_${existingIndex}`;
1965
- exp = context.imports[existingIndex].exp;
1966
- } else {
1967
- name = `_imports_${context.imports.length}`;
1968
- exp = (0, _vue_compiler_core.createSimpleExpression)(name, false, loc, 3);
1969
- context.imports.push({
1970
- exp,
1971
- path: decodeURIComponent(path$24)
1972
- });
1973
- }
1974
- if (!hash) return exp;
1975
- const hashExp = `${name} + '${hash}'`;
1976
- const finalExp = (0, _vue_compiler_core.createSimpleExpression)(hashExp, false, loc, 3);
1977
- if (!context.hoistStatic) return finalExp;
1978
- const existingHoistIndex = context.hoists.findIndex((h) => {
1979
- return h && h.type === 4 && !h.isStatic && h.content === hashExp;
1980
- });
1981
- if (existingHoistIndex > -1) return (0, _vue_compiler_core.createSimpleExpression)(`_hoisted_${existingHoistIndex + 1}`, false, loc, 3);
1982
- return context.hoist(finalExp);
1983
- } else return (0, _vue_compiler_core.createSimpleExpression)(`''`, false, loc, 3);
2053
+ if (!path$24 && !hash) return (0, _vue_compiler_core.createSimpleExpression)(`''`, false, loc, 3);
2054
+ if (!path$24 && hash) {
2055
+ const { exp } = resolveOrRegisterImport(hash, loc, context);
2056
+ return exp;
2057
+ }
2058
+ if (path$24 && !hash) {
2059
+ const { exp } = resolveOrRegisterImport(path$24, loc, context);
2060
+ return exp;
2061
+ }
2062
+ const { name } = resolveOrRegisterImport(path$24, loc, context);
2063
+ const hashExp = `${name} + '${hash}'`;
2064
+ const finalExp = (0, _vue_compiler_core.createSimpleExpression)(hashExp, false, loc, 3);
2065
+ if (!context.hoistStatic) return finalExp;
2066
+ const existingHoistIndex = context.hoists.findIndex((h) => {
2067
+ return h && h.type === 4 && !h.isStatic && h.content === hashExp;
2068
+ });
2069
+ if (existingHoistIndex > -1) return (0, _vue_compiler_core.createSimpleExpression)(`_hoisted_${existingHoistIndex + 1}`, false, loc, 3);
2070
+ return context.hoist(finalExp);
1984
2071
  }
1985
-
1986
2072
  //#endregion
1987
2073
  //#region packages/compiler-sfc/src/template/transformSrcset.ts
1988
2074
  const srcsetTags = ["img", "source"];
@@ -2036,18 +2122,21 @@ const transformSrcset = (node, context, options = defaultAssetUrlOptions) => {
2036
2122
  let content = "";
2037
2123
  imageCandidates.forEach(({ url, descriptor }, index) => {
2038
2124
  if (shouldProcessUrl(url)) {
2039
- const { path: path$23 } = parseUrl(url);
2040
- if (path$23) {
2125
+ const { path: path$23, hash } = parseUrl(url);
2126
+ const source = path$23 ? path$23 : hash;
2127
+ if (source) {
2041
2128
  let exp = "";
2042
- const existingImportsIndex = context.imports.findIndex((i) => i.path === path$23);
2129
+ const normalizedSource = normalizeDecodedImportPath(source);
2130
+ const existingImportsIndex = context.imports.findIndex((i) => i.path === normalizedSource);
2043
2131
  if (existingImportsIndex > -1) exp = `_imports_${existingImportsIndex}`;
2044
2132
  else {
2045
2133
  exp = `_imports_${context.imports.length}`;
2046
2134
  context.imports.push({
2047
2135
  exp: (0, _vue_compiler_core.createSimpleExpression)(exp, false, attr.loc, 3),
2048
- path: path$23
2136
+ path: normalizedSource
2049
2137
  });
2050
2138
  }
2139
+ if (path$23 && hash) exp = `${exp} + '${hash}'`;
2051
2140
  content += exp;
2052
2141
  }
2053
2142
  } else content += `"${url}"`;
@@ -2072,7 +2161,6 @@ const transformSrcset = (node, context, options = defaultAssetUrlOptions) => {
2072
2161
  });
2073
2162
  }
2074
2163
  };
2075
-
2076
2164
  //#endregion
2077
2165
  //#region node_modules/.pnpm/@vue+consolidate@1.0.0/node_modules/@vue/consolidate/lib/consolidate.js
2078
2166
  var require_consolidate$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3366,16 +3454,11 @@ var require_consolidate$1 = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3366
3454
  */
3367
3455
  exports.requires = requires;
3368
3456
  }));
3369
-
3370
- //#endregion
3371
- //#region node_modules/.pnpm/@vue+consolidate@1.0.0/node_modules/@vue/consolidate/index.js
3372
- var require_consolidate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3373
- module.exports = require_consolidate$1();
3374
- }));
3375
-
3376
3457
  //#endregion
3377
3458
  //#region packages/compiler-sfc/src/warn.ts
3378
- var import_consolidate = /* @__PURE__ */ __toESM(require_consolidate());
3459
+ var import_consolidate = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
3460
+ module.exports = require_consolidate$1();
3461
+ })))());
3379
3462
  const hasWarned = {};
3380
3463
  function warnOnce(msg) {
3381
3464
  if (!(typeof process !== "undefined" && process.env.NODE_ENV === "production") && !hasWarned[msg]) {
@@ -3386,7 +3469,6 @@ function warnOnce(msg) {
3386
3469
  function warn(msg) {
3387
3470
  console.warn(`\x1b[1m\x1b[33m[@vue/compiler-sfc]\x1b[0m\x1b[33m ${msg}\x1b[0m\n`);
3388
3471
  }
3389
-
3390
3472
  //#endregion
3391
3473
  //#region packages/compiler-sfc/src/compileTemplate.ts
3392
3474
  function preprocess$1({ source, filename, preprocessOptions }, preprocessor) {
@@ -3461,6 +3543,7 @@ function doCompileTemplate({ filename, id, scoped, slotted, inMap, source, ast:
3461
3543
  slotted,
3462
3544
  sourceMap: true,
3463
3545
  ...compilerOptions,
3546
+ bindingMetadata: vapor && !ssr && compilerOptions.bindingMetadata == null ? {} : compilerOptions.bindingMetadata,
3464
3547
  hmr: !isProd,
3465
3548
  nodeTransforms: nodeTransforms.concat(compilerOptions.nodeTransforms || []),
3466
3549
  filename,
@@ -3479,17 +3562,19 @@ function doCompileTemplate({ filename, id, scoped, slotted, inMap, source, ast:
3479
3562
  warnings.length = 0;
3480
3563
  }
3481
3564
  }
3565
+ const tips = warnings.map((w) => {
3566
+ let msg = w.message;
3567
+ if (w.loc) msg += `\n${(0, _vue_shared.generateCodeFrame)((inAST === null || inAST === void 0 ? void 0 : inAST.source) || source, w.loc.start.offset, w.loc.end.offset)}`;
3568
+ return msg;
3569
+ });
3482
3570
  return {
3483
3571
  code,
3484
3572
  ast,
3485
3573
  preamble,
3574
+ multiRoot: vapor ? isMultiRoot(inAST || source, compilerOptions) : void 0,
3486
3575
  source,
3487
3576
  errors,
3488
- tips: warnings.map((w) => {
3489
- let msg = w.message;
3490
- if (w.loc) msg += `\n${(0, _vue_shared.generateCodeFrame)((inAST === null || inAST === void 0 ? void 0 : inAST.source) || source, w.loc.start.offset, w.loc.end.offset)}`;
3491
- return msg;
3492
- }),
3577
+ tips,
3493
3578
  map,
3494
3579
  helpers
3495
3580
  };
@@ -3545,7 +3630,6 @@ function patchErrors(errors, source, inMap) {
3545
3630
  }
3546
3631
  });
3547
3632
  }
3548
-
3549
3633
  //#endregion
3550
3634
  //#region packages/compiler-sfc/src/style/pluginTrim.ts
3551
3635
  const trimPlugin = () => {
@@ -3562,8 +3646,6 @@ const trimPlugin = () => {
3562
3646
  };
3563
3647
  };
3564
3648
  trimPlugin.postcss = true;
3565
- var pluginTrim_default = trimPlugin;
3566
-
3567
3649
  //#endregion
3568
3650
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/util/unesc.js
3569
3651
  var require_unesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3616,7 +3698,6 @@ var require_unesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3616
3698
  }
3617
3699
  module.exports = exports.default;
3618
3700
  }));
3619
-
3620
3701
  //#endregion
3621
3702
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/util/getProp.js
3622
3703
  var require_getProp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3633,7 +3714,6 @@ var require_getProp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3633
3714
  }
3634
3715
  module.exports = exports.default;
3635
3716
  }));
3636
-
3637
3717
  //#endregion
3638
3718
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/util/ensureObject.js
3639
3719
  var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3649,7 +3729,6 @@ var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3649
3729
  }
3650
3730
  module.exports = exports.default;
3651
3731
  }));
3652
-
3653
3732
  //#endregion
3654
3733
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/util/stripComments.js
3655
3734
  var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3671,25 +3750,19 @@ var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3671
3750
  }
3672
3751
  module.exports = exports.default;
3673
3752
  }));
3674
-
3675
3753
  //#endregion
3676
3754
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/util/index.js
3677
3755
  var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
3678
3756
  exports.__esModule = true;
3679
3757
  exports.unesc = exports.stripComments = exports.getProp = exports.ensureObject = void 0;
3680
- var _unesc = _interopRequireDefault(require_unesc());
3681
- exports.unesc = _unesc["default"];
3682
- var _getProp = _interopRequireDefault(require_getProp());
3683
- exports.getProp = _getProp["default"];
3684
- var _ensureObject = _interopRequireDefault(require_ensureObject());
3685
- exports.ensureObject = _ensureObject["default"];
3686
- var _stripComments = _interopRequireDefault(require_stripComments());
3687
- exports.stripComments = _stripComments["default"];
3758
+ exports.unesc = _interopRequireDefault(require_unesc())["default"];
3759
+ exports.getProp = _interopRequireDefault(require_getProp())["default"];
3760
+ exports.ensureObject = _interopRequireDefault(require_ensureObject())["default"];
3761
+ exports.stripComments = _interopRequireDefault(require_stripComments())["default"];
3688
3762
  function _interopRequireDefault(obj) {
3689
3763
  return obj && obj.__esModule ? obj : { "default": obj };
3690
3764
  }
3691
3765
  }));
3692
-
3693
3766
  //#endregion
3694
3767
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/node.js
3695
3768
  var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3726,7 +3799,7 @@ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3726
3799
  }
3727
3800
  return cloned;
3728
3801
  };
3729
- var Node = /* @__PURE__ */ function() {
3802
+ exports["default"] = /* @__PURE__ */ function() {
3730
3803
  function Node(opts) {
3731
3804
  if (opts === void 0) opts = {};
3732
3805
  Object.assign(this, opts);
@@ -3823,41 +3896,26 @@ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3823
3896
  }]);
3824
3897
  return Node;
3825
3898
  }();
3826
- exports["default"] = Node;
3827
3899
  module.exports = exports.default;
3828
3900
  }));
3829
-
3830
3901
  //#endregion
3831
3902
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/types.js
3832
3903
  var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
3833
3904
  exports.__esModule = true;
3834
3905
  exports.UNIVERSAL = exports.TAG = exports.STRING = exports.SELECTOR = exports.ROOT = exports.PSEUDO = exports.NESTING = exports.ID = exports.COMMENT = exports.COMBINATOR = exports.CLASS = exports.ATTRIBUTE = void 0;
3835
- var TAG = "tag";
3836
- exports.TAG = TAG;
3837
- var STRING = "string";
3838
- exports.STRING = STRING;
3839
- var SELECTOR = "selector";
3840
- exports.SELECTOR = SELECTOR;
3841
- var ROOT = "root";
3842
- exports.ROOT = ROOT;
3843
- var PSEUDO = "pseudo";
3844
- exports.PSEUDO = PSEUDO;
3845
- var NESTING = "nesting";
3846
- exports.NESTING = NESTING;
3847
- var ID = "id";
3848
- exports.ID = ID;
3849
- var COMMENT = "comment";
3850
- exports.COMMENT = COMMENT;
3851
- var COMBINATOR = "combinator";
3852
- exports.COMBINATOR = COMBINATOR;
3853
- var CLASS = "class";
3854
- exports.CLASS = CLASS;
3855
- var ATTRIBUTE = "attribute";
3856
- exports.ATTRIBUTE = ATTRIBUTE;
3857
- var UNIVERSAL = "universal";
3858
- exports.UNIVERSAL = UNIVERSAL;
3906
+ exports.TAG = "tag";
3907
+ exports.STRING = "string";
3908
+ exports.SELECTOR = "selector";
3909
+ exports.ROOT = "root";
3910
+ exports.PSEUDO = "pseudo";
3911
+ exports.NESTING = "nesting";
3912
+ exports.ID = "id";
3913
+ exports.COMMENT = "comment";
3914
+ exports.COMBINATOR = "combinator";
3915
+ exports.CLASS = "class";
3916
+ exports.ATTRIBUTE = "attribute";
3917
+ exports.UNIVERSAL = "universal";
3859
3918
  }));
3860
-
3861
3919
  //#endregion
3862
3920
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/container.js
3863
3921
  var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3948,7 +4006,7 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3948
4006
  };
3949
4007
  return _setPrototypeOf(o, p);
3950
4008
  }
3951
- var Container = /* @__PURE__ */ function(_Node) {
4009
+ exports["default"] = /* @__PURE__ */ function(_Node) {
3952
4010
  _inheritsLoose(Container, _Node);
3953
4011
  function Container(opts) {
3954
4012
  var _this = _Node.call(this, opts) || this;
@@ -4195,10 +4253,8 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4195
4253
  ]);
4196
4254
  return Container;
4197
4255
  }(_node["default"]);
4198
- exports["default"] = Container;
4199
4256
  module.exports = exports.default;
4200
4257
  }));
4201
-
4202
4258
  //#endregion
4203
4259
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/root.js
4204
4260
  var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4236,7 +4292,7 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4236
4292
  };
4237
4293
  return _setPrototypeOf(o, p);
4238
4294
  }
4239
- var Root = /* @__PURE__ */ function(_Container) {
4295
+ exports["default"] = /* @__PURE__ */ function(_Container) {
4240
4296
  _inheritsLoose(Root, _Container);
4241
4297
  function Root(opts) {
4242
4298
  var _this = _Container.call(this, opts) || this;
@@ -4263,10 +4319,8 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4263
4319
  }]);
4264
4320
  return Root;
4265
4321
  }(_container["default"]);
4266
- exports["default"] = Root;
4267
4322
  module.exports = exports.default;
4268
4323
  }));
4269
-
4270
4324
  //#endregion
4271
4325
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/selector.js
4272
4326
  var require_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4289,7 +4343,7 @@ var require_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4289
4343
  };
4290
4344
  return _setPrototypeOf(o, p);
4291
4345
  }
4292
- var Selector = /* @__PURE__ */ function(_Container) {
4346
+ exports["default"] = /* @__PURE__ */ function(_Container) {
4293
4347
  _inheritsLoose(Selector, _Container);
4294
4348
  function Selector(opts) {
4295
4349
  var _this = _Container.call(this, opts) || this;
@@ -4298,10 +4352,8 @@ var require_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4298
4352
  }
4299
4353
  return Selector;
4300
4354
  }(_container["default"]);
4301
- exports["default"] = Selector;
4302
4355
  module.exports = exports.default;
4303
4356
  }));
4304
-
4305
4357
  //#endregion
4306
4358
  //#region node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js
4307
4359
  /*! https://mths.be/cssesc v3.0.0 by @mathias */
@@ -4363,7 +4415,6 @@ var require_cssesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4363
4415
  cssesc.version = "3.0.0";
4364
4416
  module.exports = cssesc;
4365
4417
  }));
4366
-
4367
4418
  //#endregion
4368
4419
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/className.js
4369
4420
  var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4403,7 +4454,7 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4403
4454
  };
4404
4455
  return _setPrototypeOf(o, p);
4405
4456
  }
4406
- var ClassName = /* @__PURE__ */ function(_Node) {
4457
+ exports["default"] = /* @__PURE__ */ function(_Node) {
4407
4458
  _inheritsLoose(ClassName, _Node);
4408
4459
  function ClassName(opts) {
4409
4460
  var _this = _Node.call(this, opts) || this;
@@ -4433,10 +4484,8 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4433
4484
  }]);
4434
4485
  return ClassName;
4435
4486
  }(_node["default"]);
4436
- exports["default"] = ClassName;
4437
4487
  module.exports = exports.default;
4438
4488
  }));
4439
-
4440
4489
  //#endregion
4441
4490
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/comment.js
4442
4491
  var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4459,7 +4508,7 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4459
4508
  };
4460
4509
  return _setPrototypeOf(o, p);
4461
4510
  }
4462
- var Comment = /* @__PURE__ */ function(_Node) {
4511
+ exports["default"] = /* @__PURE__ */ function(_Node) {
4463
4512
  _inheritsLoose(Comment, _Node);
4464
4513
  function Comment(opts) {
4465
4514
  var _this = _Node.call(this, opts) || this;
@@ -4468,10 +4517,8 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4468
4517
  }
4469
4518
  return Comment;
4470
4519
  }(_node["default"]);
4471
- exports["default"] = Comment;
4472
4520
  module.exports = exports.default;
4473
4521
  }));
4474
-
4475
4522
  //#endregion
4476
4523
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/id.js
4477
4524
  var require_id = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4494,7 +4541,7 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4494
4541
  };
4495
4542
  return _setPrototypeOf(o, p);
4496
4543
  }
4497
- var ID = /* @__PURE__ */ function(_Node) {
4544
+ exports["default"] = /* @__PURE__ */ function(_Node) {
4498
4545
  _inheritsLoose(ID, _Node);
4499
4546
  function ID(opts) {
4500
4547
  var _this = _Node.call(this, opts) || this;
@@ -4507,10 +4554,8 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4507
4554
  };
4508
4555
  return ID;
4509
4556
  }(_node["default"]);
4510
- exports["default"] = ID;
4511
4557
  module.exports = exports.default;
4512
4558
  }));
4513
-
4514
4559
  //#endregion
4515
4560
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/namespace.js
4516
4561
  var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4549,7 +4594,7 @@ var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4549
4594
  };
4550
4595
  return _setPrototypeOf(o, p);
4551
4596
  }
4552
- var Namespace = /* @__PURE__ */ function(_Node) {
4597
+ exports["default"] = /* @__PURE__ */ function(_Node) {
4553
4598
  _inheritsLoose(Namespace, _Node);
4554
4599
  function Namespace() {
4555
4600
  return _Node.apply(this, arguments) || this;
@@ -4604,10 +4649,8 @@ var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4604
4649
  ]);
4605
4650
  return Namespace;
4606
4651
  }(_node["default"]);
4607
- exports["default"] = Namespace;
4608
4652
  module.exports = exports.default;
4609
4653
  }));
4610
-
4611
4654
  //#endregion
4612
4655
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/tag.js
4613
4656
  var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4630,7 +4673,7 @@ var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4630
4673
  };
4631
4674
  return _setPrototypeOf(o, p);
4632
4675
  }
4633
- var Tag = /* @__PURE__ */ function(_Namespace) {
4676
+ exports["default"] = /* @__PURE__ */ function(_Namespace) {
4634
4677
  _inheritsLoose(Tag, _Namespace);
4635
4678
  function Tag(opts) {
4636
4679
  var _this = _Namespace.call(this, opts) || this;
@@ -4639,10 +4682,8 @@ var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4639
4682
  }
4640
4683
  return Tag;
4641
4684
  }(_namespace["default"]);
4642
- exports["default"] = Tag;
4643
4685
  module.exports = exports.default;
4644
4686
  }));
4645
-
4646
4687
  //#endregion
4647
4688
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/string.js
4648
4689
  var require_string = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4665,7 +4706,7 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4665
4706
  };
4666
4707
  return _setPrototypeOf(o, p);
4667
4708
  }
4668
- var String = /* @__PURE__ */ function(_Node) {
4709
+ exports["default"] = /* @__PURE__ */ function(_Node) {
4669
4710
  _inheritsLoose(String, _Node);
4670
4711
  function String(opts) {
4671
4712
  var _this = _Node.call(this, opts) || this;
@@ -4674,10 +4715,8 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4674
4715
  }
4675
4716
  return String;
4676
4717
  }(_node["default"]);
4677
- exports["default"] = String;
4678
4718
  module.exports = exports.default;
4679
4719
  }));
4680
-
4681
4720
  //#endregion
4682
4721
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/pseudo.js
4683
4722
  var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4700,7 +4739,7 @@ var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4700
4739
  };
4701
4740
  return _setPrototypeOf(o, p);
4702
4741
  }
4703
- var Pseudo = /* @__PURE__ */ function(_Container) {
4742
+ exports["default"] = /* @__PURE__ */ function(_Container) {
4704
4743
  _inheritsLoose(Pseudo, _Container);
4705
4744
  function Pseudo(opts) {
4706
4745
  var _this = _Container.call(this, opts) || this;
@@ -4719,10 +4758,8 @@ var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4719
4758
  };
4720
4759
  return Pseudo;
4721
4760
  }(_container["default"]);
4722
- exports["default"] = Pseudo;
4723
4761
  module.exports = exports.default;
4724
4762
  }));
4725
-
4726
4763
  //#endregion
4727
4764
  //#region node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js
4728
4765
  var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4731,7 +4768,6 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4731
4768
  */
4732
4769
  module.exports = require("util").deprecate;
4733
4770
  }));
4734
-
4735
4771
  //#endregion
4736
4772
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/attribute.js
4737
4773
  var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5058,7 +5094,6 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
5058
5094
  return "" + attrSpaces.before + attrValue + attrSpaces.after;
5059
5095
  }
5060
5096
  }));
5061
-
5062
5097
  //#endregion
5063
5098
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/universal.js
5064
5099
  var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -5081,7 +5116,7 @@ var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5081
5116
  };
5082
5117
  return _setPrototypeOf(o, p);
5083
5118
  }
5084
- var Universal = /* @__PURE__ */ function(_Namespace) {
5119
+ exports["default"] = /* @__PURE__ */ function(_Namespace) {
5085
5120
  _inheritsLoose(Universal, _Namespace);
5086
5121
  function Universal(opts) {
5087
5122
  var _this = _Namespace.call(this, opts) || this;
@@ -5091,10 +5126,8 @@ var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5091
5126
  }
5092
5127
  return Universal;
5093
5128
  }(_namespace["default"]);
5094
- exports["default"] = Universal;
5095
5129
  module.exports = exports.default;
5096
5130
  }));
5097
-
5098
5131
  //#endregion
5099
5132
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/combinator.js
5100
5133
  var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -5117,7 +5150,7 @@ var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5117
5150
  };
5118
5151
  return _setPrototypeOf(o, p);
5119
5152
  }
5120
- var Combinator = /* @__PURE__ */ function(_Node) {
5153
+ exports["default"] = /* @__PURE__ */ function(_Node) {
5121
5154
  _inheritsLoose(Combinator, _Node);
5122
5155
  function Combinator(opts) {
5123
5156
  var _this = _Node.call(this, opts) || this;
@@ -5126,10 +5159,8 @@ var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5126
5159
  }
5127
5160
  return Combinator;
5128
5161
  }(_node["default"]);
5129
- exports["default"] = Combinator;
5130
5162
  module.exports = exports.default;
5131
5163
  }));
5132
-
5133
5164
  //#endregion
5134
5165
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/nesting.js
5135
5166
  var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -5152,7 +5183,7 @@ var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5152
5183
  };
5153
5184
  return _setPrototypeOf(o, p);
5154
5185
  }
5155
- var Nesting = /* @__PURE__ */ function(_Node) {
5186
+ exports["default"] = /* @__PURE__ */ function(_Node) {
5156
5187
  _inheritsLoose(Nesting, _Node);
5157
5188
  function Nesting(opts) {
5158
5189
  var _this = _Node.call(this, opts) || this;
@@ -5162,10 +5193,8 @@ var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5162
5193
  }
5163
5194
  return Nesting;
5164
5195
  }(_node["default"]);
5165
- exports["default"] = Nesting;
5166
5196
  module.exports = exports.default;
5167
5197
  }));
5168
-
5169
5198
  //#endregion
5170
5199
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/sortAscending.js
5171
5200
  var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -5178,76 +5207,44 @@ var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports, module) =>
5178
5207
  }
5179
5208
  module.exports = exports.default;
5180
5209
  }));
5181
-
5182
5210
  //#endregion
5183
5211
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/tokenTypes.js
5184
5212
  var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
5185
5213
  exports.__esModule = true;
5186
5214
  exports.word = exports.tilde = exports.tab = exports.str = exports.space = exports.slash = exports.singleQuote = exports.semicolon = exports.plus = exports.pipe = exports.openSquare = exports.openParenthesis = exports.newline = exports.greaterThan = exports.feed = exports.equals = exports.doubleQuote = exports.dollar = exports.cr = exports.comment = exports.comma = exports.combinator = exports.colon = exports.closeSquare = exports.closeParenthesis = exports.caret = exports.bang = exports.backslash = exports.at = exports.asterisk = exports.ampersand = void 0;
5187
- var ampersand = 38;
5188
- exports.ampersand = ampersand;
5189
- var asterisk = 42;
5190
- exports.asterisk = asterisk;
5191
- var at = 64;
5192
- exports.at = at;
5193
- var comma = 44;
5194
- exports.comma = comma;
5195
- var colon = 58;
5196
- exports.colon = colon;
5197
- var semicolon = 59;
5198
- exports.semicolon = semicolon;
5199
- var openParenthesis = 40;
5200
- exports.openParenthesis = openParenthesis;
5201
- var closeParenthesis = 41;
5202
- exports.closeParenthesis = closeParenthesis;
5203
- var openSquare = 91;
5204
- exports.openSquare = openSquare;
5205
- var closeSquare = 93;
5206
- exports.closeSquare = closeSquare;
5207
- var dollar = 36;
5208
- exports.dollar = dollar;
5209
- var tilde = 126;
5210
- exports.tilde = tilde;
5211
- var caret = 94;
5212
- exports.caret = caret;
5213
- var plus = 43;
5214
- exports.plus = plus;
5215
- var equals = 61;
5216
- exports.equals = equals;
5217
- var pipe = 124;
5218
- exports.pipe = pipe;
5219
- var greaterThan = 62;
5220
- exports.greaterThan = greaterThan;
5221
- var space = 32;
5222
- exports.space = space;
5215
+ exports.ampersand = 38;
5216
+ exports.asterisk = 42;
5217
+ exports.at = 64;
5218
+ exports.comma = 44;
5219
+ exports.colon = 58;
5220
+ exports.semicolon = 59;
5221
+ exports.openParenthesis = 40;
5222
+ exports.closeParenthesis = 41;
5223
+ exports.openSquare = 91;
5224
+ exports.closeSquare = 93;
5225
+ exports.dollar = 36;
5226
+ exports.tilde = 126;
5227
+ exports.caret = 94;
5228
+ exports.plus = 43;
5229
+ exports.equals = 61;
5230
+ exports.pipe = 124;
5231
+ exports.greaterThan = 62;
5232
+ exports.space = 32;
5223
5233
  var singleQuote = 39;
5224
5234
  exports.singleQuote = singleQuote;
5225
- var doubleQuote = 34;
5226
- exports.doubleQuote = doubleQuote;
5227
- var slash = 47;
5228
- exports.slash = slash;
5229
- var bang = 33;
5230
- exports.bang = bang;
5231
- var backslash = 92;
5232
- exports.backslash = backslash;
5233
- var cr = 13;
5234
- exports.cr = cr;
5235
- var feed = 12;
5236
- exports.feed = feed;
5237
- var newline = 10;
5238
- exports.newline = newline;
5239
- var tab = 9;
5240
- exports.tab = tab;
5241
- var str = singleQuote;
5242
- exports.str = str;
5243
- var comment = -1;
5244
- exports.comment = comment;
5245
- var word = -2;
5246
- exports.word = word;
5247
- var combinator = -3;
5248
- exports.combinator = combinator;
5235
+ exports.doubleQuote = 34;
5236
+ exports.slash = 47;
5237
+ exports.bang = 33;
5238
+ exports.backslash = 92;
5239
+ exports.cr = 13;
5240
+ exports.feed = 12;
5241
+ exports.newline = 10;
5242
+ exports.tab = 9;
5243
+ exports.str = singleQuote;
5244
+ exports.comment = -1;
5245
+ exports.word = -2;
5246
+ exports.combinator = -3;
5249
5247
  }));
5250
-
5251
5248
  //#endregion
5252
5249
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/tokenize.js
5253
5250
  var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -5320,7 +5317,7 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
5320
5317
  } else next++;
5321
5318
  return next;
5322
5319
  }
5323
- var FIELDS = {
5320
+ exports.FIELDS = {
5324
5321
  TYPE: 0,
5325
5322
  START_LINE: 1,
5326
5323
  START_COL: 2,
@@ -5329,7 +5326,6 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
5329
5326
  START_POS: 5,
5330
5327
  END_POS: 6
5331
5328
  };
5332
- exports.FIELDS = FIELDS;
5333
5329
  function tokenize(input) {
5334
5330
  var tokens = [];
5335
5331
  var css = input.css.valueOf();
@@ -5474,7 +5470,6 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
5474
5470
  return tokens;
5475
5471
  }
5476
5472
  }));
5477
-
5478
5473
  //#endregion
5479
5474
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/parser.js
5480
5475
  var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -5595,7 +5590,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5595
5590
  return i === list.indexOf(item);
5596
5591
  });
5597
5592
  }
5598
- var Parser = /* @__PURE__ */ function() {
5593
+ exports["default"] = /* @__PURE__ */ function() {
5599
5594
  function Parser(rule, options) {
5600
5595
  if (options === void 0) options = {};
5601
5596
  this.rule = rule;
@@ -6333,10 +6328,8 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6333
6328
  ]);
6334
6329
  return Parser;
6335
6330
  }();
6336
- exports["default"] = Parser;
6337
6331
  module.exports = exports.default;
6338
6332
  }));
6339
-
6340
6333
  //#endregion
6341
6334
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/processor.js
6342
6335
  var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -6346,7 +6339,7 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6346
6339
  function _interopRequireDefault(obj) {
6347
6340
  return obj && obj.__esModule ? obj : { "default": obj };
6348
6341
  }
6349
- var Processor = /* @__PURE__ */ function() {
6342
+ exports["default"] = /* @__PURE__ */ function() {
6350
6343
  function Processor(func, options) {
6351
6344
  this.func = func || function noop() {};
6352
6345
  this.funcRes = null;
@@ -6437,10 +6430,8 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6437
6430
  };
6438
6431
  return Processor;
6439
6432
  }();
6440
- exports["default"] = Processor;
6441
6433
  module.exports = exports.default;
6442
6434
  }));
6443
-
6444
6435
  //#endregion
6445
6436
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/constructors.js
6446
6437
  var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6461,56 +6452,43 @@ var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
6461
6452
  function _interopRequireDefault(obj) {
6462
6453
  return obj && obj.__esModule ? obj : { "default": obj };
6463
6454
  }
6464
- var attribute = function attribute(opts) {
6455
+ exports.attribute = function attribute(opts) {
6465
6456
  return new _attribute["default"](opts);
6466
6457
  };
6467
- exports.attribute = attribute;
6468
- var className = function className(opts) {
6458
+ exports.className = function className(opts) {
6469
6459
  return new _className["default"](opts);
6470
6460
  };
6471
- exports.className = className;
6472
- var combinator = function combinator(opts) {
6461
+ exports.combinator = function combinator(opts) {
6473
6462
  return new _combinator["default"](opts);
6474
6463
  };
6475
- exports.combinator = combinator;
6476
- var comment = function comment(opts) {
6464
+ exports.comment = function comment(opts) {
6477
6465
  return new _comment["default"](opts);
6478
6466
  };
6479
- exports.comment = comment;
6480
- var id = function id(opts) {
6467
+ exports.id = function id(opts) {
6481
6468
  return new _id["default"](opts);
6482
6469
  };
6483
- exports.id = id;
6484
- var nesting = function nesting(opts) {
6470
+ exports.nesting = function nesting(opts) {
6485
6471
  return new _nesting["default"](opts);
6486
6472
  };
6487
- exports.nesting = nesting;
6488
- var pseudo = function pseudo(opts) {
6473
+ exports.pseudo = function pseudo(opts) {
6489
6474
  return new _pseudo["default"](opts);
6490
6475
  };
6491
- exports.pseudo = pseudo;
6492
- var root = function root(opts) {
6476
+ exports.root = function root(opts) {
6493
6477
  return new _root["default"](opts);
6494
6478
  };
6495
- exports.root = root;
6496
- var selector = function selector(opts) {
6479
+ exports.selector = function selector(opts) {
6497
6480
  return new _selector["default"](opts);
6498
6481
  };
6499
- exports.selector = selector;
6500
- var string = function string(opts) {
6482
+ exports.string = function string(opts) {
6501
6483
  return new _string["default"](opts);
6502
6484
  };
6503
- exports.string = string;
6504
- var tag = function tag(opts) {
6485
+ exports.tag = function tag(opts) {
6505
6486
  return new _tag["default"](opts);
6506
6487
  };
6507
- exports.tag = tag;
6508
- var universal = function universal(opts) {
6488
+ exports.universal = function universal(opts) {
6509
6489
  return new _universal["default"](opts);
6510
6490
  };
6511
- exports.universal = universal;
6512
6491
  }));
6513
-
6514
6492
  //#endregion
6515
6493
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/guards.js
6516
6494
  var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6536,28 +6514,19 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
6536
6514
  }
6537
6515
  var isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
6538
6516
  exports.isAttribute = isAttribute;
6539
- var isClassName = isNodeType.bind(null, _types.CLASS);
6540
- exports.isClassName = isClassName;
6541
- var isCombinator = isNodeType.bind(null, _types.COMBINATOR);
6542
- exports.isCombinator = isCombinator;
6543
- var isComment = isNodeType.bind(null, _types.COMMENT);
6544
- exports.isComment = isComment;
6545
- var isIdentifier = isNodeType.bind(null, _types.ID);
6546
- exports.isIdentifier = isIdentifier;
6547
- var isNesting = isNodeType.bind(null, _types.NESTING);
6548
- exports.isNesting = isNesting;
6517
+ exports.isClassName = isNodeType.bind(null, _types.CLASS);
6518
+ exports.isCombinator = isNodeType.bind(null, _types.COMBINATOR);
6519
+ exports.isComment = isNodeType.bind(null, _types.COMMENT);
6520
+ exports.isIdentifier = isNodeType.bind(null, _types.ID);
6521
+ exports.isNesting = isNodeType.bind(null, _types.NESTING);
6549
6522
  var isPseudo = isNodeType.bind(null, _types.PSEUDO);
6550
6523
  exports.isPseudo = isPseudo;
6551
- var isRoot = isNodeType.bind(null, _types.ROOT);
6552
- exports.isRoot = isRoot;
6553
- var isSelector = isNodeType.bind(null, _types.SELECTOR);
6554
- exports.isSelector = isSelector;
6555
- var isString = isNodeType.bind(null, _types.STRING);
6556
- exports.isString = isString;
6524
+ exports.isRoot = isNodeType.bind(null, _types.ROOT);
6525
+ exports.isSelector = isNodeType.bind(null, _types.SELECTOR);
6526
+ exports.isString = isNodeType.bind(null, _types.STRING);
6557
6527
  var isTag = isNodeType.bind(null, _types.TAG);
6558
6528
  exports.isTag = isTag;
6559
- var isUniversal = isNodeType.bind(null, _types.UNIVERSAL);
6560
- exports.isUniversal = isUniversal;
6529
+ exports.isUniversal = isNodeType.bind(null, _types.UNIVERSAL);
6561
6530
  function isPseudoElement(node) {
6562
6531
  return isPseudo(node) && node.value && (node.value.startsWith("::") || node.value.toLowerCase() === ":before" || node.value.toLowerCase() === ":after" || node.value.toLowerCase() === ":first-letter" || node.value.toLowerCase() === ":first-line");
6563
6532
  }
@@ -6571,7 +6540,6 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
6571
6540
  return isAttribute(node) || isTag(node);
6572
6541
  }
6573
6542
  }));
6574
-
6575
6543
  //#endregion
6576
6544
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/selectors/index.js
6577
6545
  var require_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6595,7 +6563,6 @@ var require_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
6595
6563
  exports[key] = _guards[key];
6596
6564
  });
6597
6565
  }));
6598
-
6599
6566
  //#endregion
6600
6567
  //#region node_modules/.pnpm/postcss-selector-parser@7.1.1/node_modules/postcss-selector-parser/dist/index.js
6601
6568
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -6635,11 +6602,9 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6635
6602
  };
6636
6603
  Object.assign(parser, selectors);
6637
6604
  delete parser.__esModule;
6638
- var _default = parser;
6639
- exports["default"] = _default;
6605
+ exports["default"] = parser;
6640
6606
  module.exports = exports.default;
6641
6607
  }));
6642
-
6643
6608
  //#endregion
6644
6609
  //#region packages/compiler-sfc/src/style/pluginScoped.ts
6645
6610
  var import_dist = /* @__PURE__ */ __toESM(require_dist());
@@ -6694,6 +6659,8 @@ function processRule(id, rule) {
6694
6659
  function rewriteSelector(id, rule, selector, selectorRoot, deep, slotted = false) {
6695
6660
  let node = null;
6696
6661
  let shouldInject = !deep;
6662
+ let hasNestedDeep = false;
6663
+ let splitForNestedDeep = false;
6697
6664
  selector.each((n) => {
6698
6665
  if (n.type === "combinator" && (n.value === ">>>" || n.value === "/deep/")) {
6699
6666
  n.value = " ";
@@ -6703,6 +6670,25 @@ function rewriteSelector(id, rule, selector, selectorRoot, deep, slotted = false
6703
6670
  }
6704
6671
  if (n.type === "pseudo") {
6705
6672
  const { value } = n;
6673
+ if (isDeepContainerPseudo(n)) {
6674
+ if (n.nodes.some((selector) => selector.some(isDeepSelector))) {
6675
+ const hasScopeAnchor = !!node;
6676
+ const hasMixedSelectors = n.nodes.some((selector) => !selector.some(isDeepSelector));
6677
+ const hasTrailingNodes = selector.index(n) < selector.length - 1;
6678
+ if (canSplitDeepContainerPseudo(n) && !deep && !hasScopeAnchor && hasMixedSelectors && hasTrailingNodes) {
6679
+ splitSelectorForNestedDeep(id, rule, selector, selectorRoot, n, deep, slotted);
6680
+ splitForNestedDeep = true;
6681
+ return false;
6682
+ }
6683
+ if (value === ":not" && !deep && !hasScopeAnchor && hasMixedSelectors && hasTrailingNodes) return;
6684
+ n.nodes.forEach((selector) => rewriteSelector(id, rule, selector, selectorRoot, deep || hasScopeAnchor, slotted));
6685
+ if (!hasScopeAnchor) {
6686
+ node = n;
6687
+ shouldInject = false;
6688
+ }
6689
+ hasNestedDeep = true;
6690
+ }
6691
+ }
6706
6692
  if (value === ":deep" || value === "::v-deep") {
6707
6693
  rule.__deep = true;
6708
6694
  if (n.nodes.length) {
@@ -6753,8 +6739,9 @@ function rewriteSelector(id, rule, selector, selectorRoot, deep, slotted = false
6753
6739
  }
6754
6740
  if (node) return;
6755
6741
  }
6756
- if (n.type !== "pseudo" && n.type !== "combinator" || n.type === "pseudo" && (n.value === ":is" || n.value === ":where") && !node) node = n;
6742
+ if (!hasNestedDeep && (n.type !== "pseudo" && n.type !== "combinator" || n.type === "pseudo" && (n.value === ":is" || n.value === ":where") && !node)) node = n;
6757
6743
  });
6744
+ if (splitForNestedDeep) return;
6758
6745
  if (rule.nodes.some((node) => node.type === "rule")) {
6759
6746
  const deep = rule.__deep;
6760
6747
  if (!deep) {
@@ -6764,7 +6751,7 @@ function rewriteSelector(id, rule, selector, selectorRoot, deep, slotted = false
6764
6751
  }
6765
6752
  shouldInject = deep;
6766
6753
  }
6767
- if (node) {
6754
+ if (node && !hasNestedDeep) {
6768
6755
  const { type, value } = node;
6769
6756
  if (type === "pseudo" && (value === ":is" || value === ":where")) {
6770
6757
  node.nodes.forEach((value) => rewriteSelector(id, rule, value, selectorRoot, deep, slotted));
@@ -6786,6 +6773,32 @@ function rewriteSelector(id, rule, selector, selectorRoot, deep, slotted = false
6786
6773
  function isSpaceCombinator(node) {
6787
6774
  return node.type === "combinator" && /^\s+$/.test(node.value);
6788
6775
  }
6776
+ function isDeepSelector(node) {
6777
+ var _nodes;
6778
+ if (node.type === "pseudo" && (node.value === ":deep" || node.value === "::v-deep")) return true;
6779
+ return !!((_nodes = node.nodes) === null || _nodes === void 0 ? void 0 : _nodes.some((child) => isDeepSelector(child)));
6780
+ }
6781
+ function isDeepContainerPseudo(node) {
6782
+ return node.type === "pseudo" && (node.value === ":is" || node.value === ":where" || node.value === ":has" || node.value === ":not");
6783
+ }
6784
+ function canSplitDeepContainerPseudo(node) {
6785
+ return node.value === ":is" || node.value === ":where" || node.value === ":has";
6786
+ }
6787
+ function splitSelectorForNestedDeep(id, rule, selector, selectorRoot, pseudo, deep, slotted) {
6788
+ const pseudoIndex = selector.index(pseudo);
6789
+ const selectors = pseudo.nodes.map((branch, index) => {
6790
+ const branchSelector = selector.clone();
6791
+ if (branchSelector.first) branchSelector.first.spaces.before = index === 0 ? selector.first.spaces.before : " ";
6792
+ const branchPseudo = branchSelector.at(pseudoIndex);
6793
+ const branchClone = branch.clone();
6794
+ if (branchClone.first) branchClone.first.spaces.before = "";
6795
+ branchPseudo.removeAll();
6796
+ branchPseudo.append(branchClone);
6797
+ rewriteSelector(id, rule, branchSelector, selectorRoot, deep, slotted);
6798
+ return branchSelector;
6799
+ });
6800
+ selector.replaceWith(...selectors);
6801
+ }
6789
6802
  function extractAndWrapNodes(parentNode) {
6790
6803
  if (!parentNode.nodes) return;
6791
6804
  const nodes = parentNode.nodes.filter((node) => node.type === "decl" || node.type === "comment");
@@ -6799,8 +6812,6 @@ function extractAndWrapNodes(parentNode) {
6799
6812
  }
6800
6813
  }
6801
6814
  scopedPlugin.postcss = true;
6802
- var pluginScoped_default = scopedPlugin;
6803
-
6804
6815
  //#endregion
6805
6816
  //#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js
6806
6817
  var require_base64 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6835,7 +6846,6 @@ var require_base64 = /* @__PURE__ */ __commonJSMin(((exports) => {
6835
6846
  return -1;
6836
6847
  };
6837
6848
  }));
6838
-
6839
6849
  //#endregion
6840
6850
  //#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js
6841
6851
  var require_base64_vlq = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6901,7 +6911,6 @@ var require_base64_vlq = /* @__PURE__ */ __commonJSMin(((exports) => {
6901
6911
  aOutParam.rest = aIndex;
6902
6912
  };
6903
6913
  }));
6904
-
6905
6914
  //#endregion
6906
6915
  //#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js
6907
6916
  var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7184,7 +7193,6 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
7184
7193
  }
7185
7194
  exports.computeSourceURL = computeSourceURL;
7186
7195
  }));
7187
-
7188
7196
  //#endregion
7189
7197
  //#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js
7190
7198
  var require_array_set = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7277,7 +7285,6 @@ var require_array_set = /* @__PURE__ */ __commonJSMin(((exports) => {
7277
7285
  };
7278
7286
  exports.ArraySet = ArraySet;
7279
7287
  }));
7280
-
7281
7288
  //#endregion
7282
7289
  //#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js
7283
7290
  var require_mapping_list = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7347,7 +7354,6 @@ var require_mapping_list = /* @__PURE__ */ __commonJSMin(((exports) => {
7347
7354
  };
7348
7355
  exports.MappingList = MappingList;
7349
7356
  }));
7350
-
7351
7357
  //#endregion
7352
7358
  //#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js
7353
7359
  var require_source_map_generator = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7617,7 +7623,6 @@ var require_source_map_generator = /* @__PURE__ */ __commonJSMin(((exports) => {
7617
7623
  };
7618
7624
  exports.SourceMapGenerator = SourceMapGenerator;
7619
7625
  }));
7620
-
7621
7626
  //#endregion
7622
7627
  //#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js
7623
7628
  var require_binary_search = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7679,7 +7684,6 @@ var require_binary_search = /* @__PURE__ */ __commonJSMin(((exports) => {
7679
7684
  return index;
7680
7685
  };
7681
7686
  }));
7682
-
7683
7687
  //#endregion
7684
7688
  //#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js
7685
7689
  var require_quick_sort = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7749,7 +7753,6 @@ var require_quick_sort = /* @__PURE__ */ __commonJSMin(((exports) => {
7749
7753
  doQuickSort(ary, comparator, 0, ary.length - 1);
7750
7754
  };
7751
7755
  }));
7752
-
7753
7756
  //#endregion
7754
7757
  //#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js
7755
7758
  var require_source_map_consumer = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -8499,7 +8502,6 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJSMin(((exports) => {
8499
8502
  };
8500
8503
  exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
8501
8504
  }));
8502
-
8503
8505
  //#endregion
8504
8506
  //#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js
8505
8507
  var require_source_node = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -8784,7 +8786,6 @@ var require_source_node = /* @__PURE__ */ __commonJSMin(((exports) => {
8784
8786
  };
8785
8787
  exports.SourceNode = SourceNode;
8786
8788
  }));
8787
-
8788
8789
  //#endregion
8789
8790
  //#region node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js
8790
8791
  var require_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -8792,10 +8793,9 @@ var require_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
8792
8793
  exports.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
8793
8794
  exports.SourceNode = require_source_node().SourceNode;
8794
8795
  }));
8795
-
8796
8796
  //#endregion
8797
- //#region node_modules/.pnpm/merge-source-map@1.1.0/node_modules/merge-source-map/index.js
8798
- var require_merge_source_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8797
+ //#region packages/compiler-sfc/src/style/preprocessors.ts
8798
+ var import_merge_source_map = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
8799
8799
  var sourceMap = require_source_map();
8800
8800
  var SourceMapConsumer = sourceMap.SourceMapConsumer;
8801
8801
  var SourceMapGenerator = sourceMap.SourceMapGenerator;
@@ -8845,11 +8845,7 @@ var require_merge_source_map = /* @__PURE__ */ __commonJSMin(((exports, module)
8845
8845
  mergedMapGenerator._file = oldMap.file;
8846
8846
  return JSON.parse(mergedMapGenerator.toString());
8847
8847
  }
8848
- }));
8849
-
8850
- //#endregion
8851
- //#region packages/compiler-sfc/src/style/preprocessors.ts
8852
- var import_merge_source_map = /* @__PURE__ */ __toESM(require_merge_source_map());
8848
+ })))());
8853
8849
  const scss = (source, map, options, load = require) => {
8854
8850
  const { compileString, renderSync } = load("sass");
8855
8851
  const data = getSource(source, options.filename, options.additionalData);
@@ -8972,7 +8968,6 @@ const processors = {
8972
8968
  styl,
8973
8969
  stylus: styl
8974
8970
  };
8975
-
8976
8971
  //#endregion
8977
8972
  //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js
8978
8973
  var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -8995,7 +8990,6 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
8995
8990
  return fileSystem;
8996
8991
  }
8997
8992
  }));
8998
-
8999
8993
  //#endregion
9000
8994
  //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/unquote.js
9001
8995
  var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9009,7 +9003,6 @@ var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
9009
9003
  return str;
9010
9004
  }
9011
9005
  }));
9012
-
9013
9006
  //#endregion
9014
9007
  //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceValueSymbols.js
9015
9008
  var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -9027,7 +9020,6 @@ var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, modul
9027
9020
  };
9028
9021
  module.exports = replaceValueSymbols;
9029
9022
  }));
9030
-
9031
9023
  //#endregion
9032
9024
  //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceSymbols.js
9033
9025
  var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -9041,7 +9033,6 @@ var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) =>
9041
9033
  };
9042
9034
  module.exports = replaceSymbols;
9043
9035
  }));
9044
-
9045
9036
  //#endregion
9046
9037
  //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/extractICSS.js
9047
9038
  var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -9096,7 +9087,6 @@ var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9096
9087
  };
9097
9088
  module.exports = extractICSS;
9098
9089
  }));
9099
-
9100
9090
  //#endregion
9101
9091
  //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/createICSSRules.js
9102
9092
  var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -9141,22 +9131,16 @@ var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) =
9141
9131
  const createICSSRules = (imports, exports$8, postcss, mode) => [...createImports(imports, postcss, mode), ...createExports(exports$8, postcss, mode)];
9142
9132
  module.exports = createICSSRules;
9143
9133
  }));
9144
-
9145
9134
  //#endregion
9146
9135
  //#region node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/index.js
9147
9136
  var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9148
- const replaceValueSymbols = require_replaceValueSymbols();
9149
- const replaceSymbols = require_replaceSymbols();
9150
- const extractICSS = require_extractICSS();
9151
- const createICSSRules = require_createICSSRules();
9152
9137
  module.exports = {
9153
- replaceValueSymbols,
9154
- replaceSymbols,
9155
- extractICSS,
9156
- createICSSRules
9138
+ replaceValueSymbols: require_replaceValueSymbols(),
9139
+ replaceSymbols: require_replaceSymbols(),
9140
+ extractICSS: require_extractICSS(),
9141
+ createICSSRules: require_createICSSRules()
9157
9142
  };
9158
9143
  }));
9159
-
9160
9144
  //#endregion
9161
9145
  //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js
9162
9146
  var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9225,7 +9209,6 @@ var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
9225
9209
  };
9226
9210
  exports.default = Parser;
9227
9211
  }));
9228
-
9229
9212
  //#endregion
9230
9213
  //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/saveJSON.js
9231
9214
  var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9239,7 +9222,6 @@ var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
9239
9222
  });
9240
9223
  }
9241
9224
  }));
9242
-
9243
9225
  //#endregion
9244
9226
  //#region node_modules/.pnpm/lodash.camelcase@4.3.0/node_modules/lodash.camelcase/index.js
9245
9227
  var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -9883,7 +9865,6 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
9883
9865
  }
9884
9866
  module.exports = camelCase;
9885
9867
  }));
9886
-
9887
9868
  //#endregion
9888
9869
  //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/localsConvention.js
9889
9870
  var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9924,7 +9905,6 @@ var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
9924
9905
  };
9925
9906
  }
9926
9907
  }));
9927
-
9928
9908
  //#endregion
9929
9909
  //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js
9930
9910
  var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -10010,7 +9990,6 @@ var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
10010
9990
  };
10011
9991
  exports.default = FileSystemLoader;
10012
9992
  }));
10013
-
10014
9993
  //#endregion
10015
9994
  //#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
10016
9995
  var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10050,7 +10029,6 @@ var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) =
10050
10029
  }
10051
10030
  module.exports = topologicalSort;
10052
10031
  }));
10053
-
10054
10032
  //#endregion
10055
10033
  //#region node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/index.js
10056
10034
  var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10179,7 +10157,6 @@ var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10179
10157
  };
10180
10158
  module.exports.postcss = true;
10181
10159
  }));
10182
-
10183
10160
  //#endregion
10184
10161
  //#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/wasm-hash.js
10185
10162
  var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10314,7 +10291,6 @@ var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10314
10291
  module.exports = create;
10315
10292
  module.exports.MAX_SHORT_STRING = MAX_SHORT_STRING;
10316
10293
  }));
10317
-
10318
10294
  //#endregion
10319
10295
  //#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/xxhash64.js
10320
10296
  var require_xxhash64 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10322,7 +10298,6 @@ var require_xxhash64 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10322
10298
  const xxhash64 = new WebAssembly.Module(Buffer.from("AGFzbQEAAAABCAJgAX8AYAAAAwQDAQAABQMBAAEGGgV+AUIAC34BQgALfgFCAAt+AUIAC34BQgALByIEBGluaXQAAAZ1cGRhdGUAAQVmaW5hbAACBm1lbW9yeQIACrUIAzAAQtbrgu7q/Yn14AAkAELP1tO+0ser2UIkAUIAJAJC+erQ0OfJoeThACQDQgAkBAvUAQIBfwR+IABFBEAPCyMEIACtfCQEIwAhAiMBIQMjAiEEIwMhBQNAIAIgASkDAELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiECIAMgASkDCELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEDIAQgASkDEELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEEIAUgASkDGELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEFIAAgAUEgaiIBSw0ACyACJAAgAyQBIAQkAiAFJAMLqwYCAX8EfiMEQgBSBH4jACICQgGJIwEiA0IHiXwjAiIEQgyJfCMDIgVCEol8IAJCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0gA0LP1tO+0ser2UJ+Qh+JQoeVr6+Ytt6bnn9+hUKHla+vmLbem55/fkKdo7Xqg7GNivoAfSAEQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IAVCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0FQsXP2bLx5brqJwsjBCAArXx8IQIDQCABQQhqIABNBEAgAiABKQMAQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQhuJQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IQIgAUEIaiEBDAELCyABQQRqIABNBEACfyACIAE1AgBCh5Wvr5i23puef36FQheJQs/W077Sx6vZQn5C+fPd8Zn2masWfCECIAFBBGoLIQELA0AgACABRwRAIAIgATEAAELFz9my8eW66id+hUILiUKHla+vmLbem55/fiECIAFBAWohAQwBCwtBACACIAJCIYiFQs/W077Sx6vZQn4iAiACQh2IhUL5893xmfaZqxZ+IgIgAkIgiIUiAkIgiCIDQv//A4NCIIYgA0KAgPz/D4NCEIiEIgNC/4GAgPAfg0IQhiADQoD+g4CA4D+DQgiIhCIDQo+AvIDwgcAHg0IIhiADQvCBwIeAnoD4AINCBIiEIgNChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IANCsODAgYOGjJgwhHw3AwBBCCACQv////8PgyICQv//A4NCIIYgAkKAgPz/D4NCEIiEIgJC/4GAgPAfg0IQhiACQoD+g4CA4D+DQgiIhCICQo+AvIDwgcAHg0IIhiACQvCBwIeAnoD4AINCBIiEIgJChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IAJCsODAgYOGjJgwhHw3AwAL", "base64"));
10323
10299
  module.exports = create.bind(null, xxhash64, [], 32, 16);
10324
10300
  }));
10325
-
10326
10301
  //#endregion
10327
10302
  //#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BatchedHash.js
10328
10303
  var require_BatchedHash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10367,7 +10342,6 @@ var require_BatchedHash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10367
10342
  };
10368
10343
  module.exports = BatchedHash;
10369
10344
  }));
10370
-
10371
10345
  //#endregion
10372
10346
  //#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/md4.js
10373
10347
  var require_md4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10375,7 +10349,6 @@ var require_md4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10375
10349
  const md4 = new WebAssembly.Module(Buffer.from("AGFzbQEAAAABCAJgAX8AYAAAAwUEAQAAAAUDAQABBhoFfwFBAAt/AUEAC38BQQALfwFBAAt/AUEACwciBARpbml0AAAGdXBkYXRlAAIFZmluYWwAAwZtZW1vcnkCAAqFEAQmAEGBxpS6BiQBQYnXtv5+JAJB/rnrxXkkA0H2qMmBASQEQQAkAAvMCgEYfyMBIQojAiEGIwMhByMEIQgDQCAAIAVLBEAgBSgCCCINIAcgBiAFKAIEIgsgCCAHIAUoAgAiDCAKIAggBiAHIAhzcXNqakEDdyIDIAYgB3Nxc2pqQQd3IgEgAyAGc3FzampBC3chAiAFKAIUIg8gASACIAUoAhAiCSADIAEgBSgCDCIOIAYgAyACIAEgA3Nxc2pqQRN3IgQgASACc3FzampBA3ciAyACIARzcXNqakEHdyEBIAUoAiAiEiADIAEgBSgCHCIRIAQgAyAFKAIYIhAgAiAEIAEgAyAEc3FzampBC3ciAiABIANzcXNqakETdyIEIAEgAnNxc2pqQQN3IQMgBSgCLCIVIAQgAyAFKAIoIhQgAiAEIAUoAiQiEyABIAIgAyACIARzcXNqakEHdyIBIAMgBHNxc2pqQQt3IgIgASADc3FzampBE3chBCAPIBAgCSAVIBQgEyAFKAI4IhYgAiAEIAUoAjQiFyABIAIgBSgCMCIYIAMgASAEIAEgAnNxc2pqQQN3IgEgAiAEc3FzampBB3ciAiABIARzcXNqakELdyIDIAkgAiAMIAEgBSgCPCIJIAQgASADIAEgAnNxc2pqQRN3IgEgAiADcnEgAiADcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyaiASakGZ84nUBWpBCXciAyAPIAQgCyACIBggASADIAIgBHJxIAIgBHFyampBmfOJ1AVqQQ13IgEgAyAEcnEgAyAEcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyampBmfOJ1AVqQQl3IgMgECAEIAIgFyABIAMgAiAEcnEgAiAEcXJqakGZ84nUBWpBDXciASADIARycSADIARxcmogDWpBmfOJ1AVqQQN3IgIgASADcnEgASADcXJqakGZ84nUBWpBBXciBCABIAJycSABIAJxcmpqQZnzidQFakEJdyIDIBEgBCAOIAIgFiABIAMgAiAEcnEgAiAEcXJqakGZ84nUBWpBDXciASADIARycSADIARxcmpqQZnzidQFakEDdyICIAEgA3JxIAEgA3FyampBmfOJ1AVqQQV3IgQgASACcnEgASACcXJqakGZ84nUBWpBCXciAyAMIAIgAyAJIAEgAyACIARycSACIARxcmpqQZnzidQFakENdyIBcyAEc2pqQaHX5/YGakEDdyICIAQgASACcyADc2ogEmpBodfn9gZqQQl3IgRzIAFzampBodfn9gZqQQt3IgMgAiADIBggASADIARzIAJzampBodfn9gZqQQ93IgFzIARzaiANakGh1+f2BmpBA3ciAiAUIAQgASACcyADc2pqQaHX5/YGakEJdyIEcyABc2pqQaHX5/YGakELdyIDIAsgAiADIBYgASADIARzIAJzampBodfn9gZqQQ93IgFzIARzampBodfn9gZqQQN3IgIgEyAEIAEgAnMgA3NqakGh1+f2BmpBCXciBHMgAXNqakGh1+f2BmpBC3chAyAKIA4gAiADIBcgASADIARzIAJzampBodfn9gZqQQ93IgFzIARzampBodfn9gZqQQN3IgJqIQogBiAJIAEgESADIAIgFSAEIAEgAnMgA3NqakGh1+f2BmpBCXciBHMgAXNqakGh1+f2BmpBC3ciAyAEcyACc2pqQaHX5/YGakEPd2ohBiADIAdqIQcgBCAIaiEIIAVBQGshBQwBCwsgCiQBIAYkAiAHJAMgCCQECw0AIAAQASMAIABqJAAL/wQCA38BfiMAIABqrUIDhiEEIABByABqQUBxIgJBCGshAyAAIgFBAWohACABQYABOgAAA0AgACACSUEAIABBB3EbBEAgAEEAOgAAIABBAWohAAwBCwsDQCAAIAJJBEAgAEIANwMAIABBCGohAAwBCwsgAyAENwMAIAIQAUEAIwGtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEIIwKtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEQIwOtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEYIwStIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAAs=", "base64"));
10376
10350
  module.exports = create.bind(null, md4, [], 64, 32);
10377
10351
  }));
10378
-
10379
10352
  //#endregion
10380
10353
  //#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BulkUpdateDecorator.js
10381
10354
  var require_BulkUpdateDecorator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10445,7 +10418,6 @@ var require_BulkUpdateDecorator = /* @__PURE__ */ __commonJSMin(((exports, modul
10445
10418
  };
10446
10419
  module.exports = BulkUpdateDecorator;
10447
10420
  }));
10448
-
10449
10421
  //#endregion
10450
10422
  //#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/getHashDigest.js
10451
10423
  var require_getHashDigest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10524,7 +10496,6 @@ var require_getHashDigest = /* @__PURE__ */ __commonJSMin(((exports, module) =>
10524
10496
  }
10525
10497
  module.exports = getHashDigest;
10526
10498
  }));
10527
-
10528
10499
  //#endregion
10529
10500
  //#region node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/interpolateName.js
10530
10501
  var require_interpolateName = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10577,7 +10548,6 @@ var require_interpolateName = /* @__PURE__ */ __commonJSMin(((exports, module) =
10577
10548
  }
10578
10549
  module.exports = interpolateName;
10579
10550
  }));
10580
-
10581
10551
  //#endregion
10582
10552
  //#region node_modules/.pnpm/generic-names@4.0.0/node_modules/generic-names/index.js
10583
10553
  var require_generic_names = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10608,7 +10578,6 @@ var require_generic_names = /* @__PURE__ */ __commonJSMin(((exports, module) =>
10608
10578
  };
10609
10579
  };
10610
10580
  }));
10611
-
10612
10581
  //#endregion
10613
10582
  //#region node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js
10614
10583
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10840,7 +10809,6 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10840
10809
  return stack[0].nodes;
10841
10810
  };
10842
10811
  }));
10843
-
10844
10812
  //#endregion
10845
10813
  //#region node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/walk.js
10846
10814
  var require_walk = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10854,7 +10822,6 @@ var require_walk = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10854
10822
  }
10855
10823
  };
10856
10824
  }));
10857
-
10858
10825
  //#endregion
10859
10826
  //#region node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/stringify.js
10860
10827
  var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10888,7 +10855,6 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10888
10855
  }
10889
10856
  module.exports = stringify;
10890
10857
  }));
10891
-
10892
10858
  //#endregion
10893
10859
  //#region node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/unit.js
10894
10860
  var require_unit = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10956,7 +10922,6 @@ var require_unit = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10956
10922
  };
10957
10923
  };
10958
10924
  }));
10959
-
10960
10925
  //#endregion
10961
10926
  //#region node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/index.js
10962
10927
  var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -10982,7 +10947,6 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10982
10947
  ValueParser.stringify = stringify;
10983
10948
  module.exports = ValueParser;
10984
10949
  }));
10985
-
10986
10950
  //#endregion
10987
10951
  //#region node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.6/node_modules/postcss-modules-local-by-default/src/index.js
10988
10952
  var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -11382,7 +11346,6 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11382
11346
  };
11383
11347
  module.exports.postcss = true;
11384
11348
  }));
11385
-
11386
11349
  //#endregion
11387
11350
  //#region node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.6/node_modules/postcss-modules-scope/src/index.js
11388
11351
  var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -11406,7 +11369,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11406
11369
  return node.value;
11407
11370
  });
11408
11371
  }
11409
- const unescapeRegExp = new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)", "ig");
11372
+ const unescapeRegExp = /* @__PURE__ */ new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)", "ig");
11410
11373
  function unescape(str) {
11411
11374
  return str.replace(unescapeRegExp, (_, escaped, escapedWhitespace) => {
11412
11375
  const high = "0x" + escaped - 65536;
@@ -11553,7 +11516,6 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11553
11516
  };
11554
11517
  module.exports = plugin;
11555
11518
  }));
11556
-
11557
11519
  //#endregion
11558
11520
  //#region node_modules/.pnpm/string-hash@1.1.3/node_modules/string-hash/index.js
11559
11521
  var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -11564,7 +11526,6 @@ var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11564
11526
  }
11565
11527
  module.exports = hash;
11566
11528
  }));
11567
-
11568
11529
  //#endregion
11569
11530
  //#region node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.6/node_modules/postcss-modules-values/src/index.js
11570
11531
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -11652,7 +11613,6 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11652
11613
  };
11653
11614
  module.exports.postcss = true;
11654
11615
  }));
11655
-
11656
11616
  //#endregion
11657
11617
  //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js
11658
11618
  var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -11715,7 +11675,6 @@ var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
11715
11675
  });
11716
11676
  }
11717
11677
  }));
11718
-
11719
11678
  //#endregion
11720
11679
  //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/pluginFactory.js
11721
11680
  var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -11790,10 +11749,9 @@ var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
11790
11749
  };
11791
11750
  }
11792
11751
  }));
11793
-
11794
11752
  //#endregion
11795
- //#region node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/index.js
11796
- var require_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11753
+ //#region packages/compiler-sfc/src/compileStyle.ts
11754
+ var import_build = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
11797
11755
  var _fs = require("fs");
11798
11756
  var _fs2 = require_fs();
11799
11757
  var _pluginFactory = require_pluginFactory();
@@ -11803,11 +11761,7 @@ var require_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11803
11761
  });
11804
11762
  module.exports = (opts = {}) => (0, _pluginFactory.makePlugin)(opts);
11805
11763
  module.exports.postcss = true;
11806
- }));
11807
-
11808
- //#endregion
11809
- //#region packages/compiler-sfc/src/compileStyle.ts
11810
- var import_build = /* @__PURE__ */ __toESM(require_build());
11764
+ })))());
11811
11765
  function compileStyle(options) {
11812
11766
  return doCompileStyle({
11813
11767
  ...options,
@@ -11833,8 +11787,8 @@ function doCompileStyle(options) {
11833
11787
  id: shortId,
11834
11788
  isProd
11835
11789
  }));
11836
- if (trim) plugins.push(pluginTrim_default());
11837
- if (scoped) plugins.push(pluginScoped_default(longId));
11790
+ if (trim) plugins.push(trimPlugin());
11791
+ if (scoped) plugins.push(scopedPlugin(longId));
11838
11792
  let cssModules;
11839
11793
  if (modules) {
11840
11794
  if (!options.isAsync) throw new Error("[@vue/compiler-sfc] `modules` option can only be used with compileStyleAsync().");
@@ -11904,7 +11858,6 @@ function preprocess(options, preprocessor) {
11904
11858
  ...options.preprocessOptions
11905
11859
  }, options.preprocessCustomRequire);
11906
11860
  }
11907
-
11908
11861
  //#endregion
11909
11862
  //#region packages/compiler-sfc/src/script/analyzeScriptBindings.ts
11910
11863
  /**
@@ -11950,7 +11903,6 @@ function getObjectOrArrayExpressionKeys(value) {
11950
11903
  if (value.type === "ObjectExpression") return getObjectExpressionKeys(value);
11951
11904
  return [];
11952
11905
  }
11953
-
11954
11906
  //#endregion
11955
11907
  //#region packages/compiler-sfc/src/script/context.ts
11956
11908
  var ScriptCompileContext = class {
@@ -12025,14 +11977,13 @@ function resolveParserPlugins(lang, userPlugins, dts = false) {
12025
11977
  if (!userPlugins || !userPlugins.some((p) => p === "importAssertions" || p === "importAttributes" || (0, _vue_shared.isArray)(p) && p[0] === "importAttributes")) plugins.push("importAttributes");
12026
11978
  if (lang === "jsx" || lang === "tsx" || lang === "mtsx") plugins.push("jsx");
12027
11979
  else if (userPlugins) userPlugins = userPlugins.filter((p) => p !== "jsx");
12028
- if (lang === "uts" || lang === "ts" || lang === "mts" || lang === "tsx" || lang === "mtsx") {
11980
+ if (lang === "uts" || lang === "ts" || lang === "mts" || lang === "tsx" || lang === "cts" || lang === "mtsx") {
12029
11981
  plugins.push(["typescript", { dts }], "explicitResourceManagement");
12030
11982
  if (!userPlugins || !userPlugins.includes("decorators")) plugins.push("decorators-legacy");
12031
11983
  }
12032
11984
  if (userPlugins) plugins.push(...userPlugins);
12033
11985
  return plugins;
12034
11986
  }
12035
-
12036
11987
  //#endregion
12037
11988
  //#region packages/compiler-sfc/src/rewriteDefault.ts
12038
11989
  function rewriteDefault(input, as, parserPlugins) {
@@ -12097,7 +12048,6 @@ function specifierEnd(s, end, nodeEnd) {
12097
12048
  } else if (s.slice(end, end + 1) === "}") break;
12098
12049
  return hasCommas ? end : oldEnd;
12099
12050
  }
12100
-
12101
12051
  //#endregion
12102
12052
  //#region packages/compiler-sfc/src/script/normalScript.ts
12103
12053
  const normalScriptDefaultVar = `__default__`;
@@ -12139,7 +12089,6 @@ function processNormalScript(ctx, scopeId) {
12139
12089
  return script;
12140
12090
  }
12141
12091
  }
12142
-
12143
12092
  //#endregion
12144
12093
  //#region node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/esm/index.js
12145
12094
  const balanced = (a, b, str) => {
@@ -12188,9 +12137,8 @@ const range = (a, b, str) => {
12188
12137
  }
12189
12138
  return result;
12190
12139
  };
12191
-
12192
12140
  //#endregion
12193
- //#region node_modules/.pnpm/brace-expansion@5.0.3/node_modules/brace-expansion/dist/esm/index.js
12141
+ //#region node_modules/.pnpm/brace-expansion@5.0.5/node_modules/brace-expansion/dist/esm/index.js
12194
12142
  const escSlash = "\0SLASH" + Math.random() + "\0";
12195
12143
  const escOpen = "\0OPEN" + Math.random() + "\0";
12196
12144
  const escClose = "\0CLOSE" + Math.random() + "\0";
@@ -12205,7 +12153,7 @@ const slashPattern = /\\\\/g;
12205
12153
  const openPattern = /\\{/g;
12206
12154
  const closePattern = /\\}/g;
12207
12155
  const commaPattern = /\\,/g;
12208
- const periodPattern = /\\./g;
12156
+ const periodPattern = /\\\./g;
12209
12157
  const EXPANSION_MAX = 1e5;
12210
12158
  function numeric(str) {
12211
12159
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
@@ -12293,7 +12241,7 @@ function expand_(str, max, isTop) {
12293
12241
  const x = numeric(n[0]);
12294
12242
  const y = numeric(n[1]);
12295
12243
  const width = Math.max(n[0].length, n[1].length);
12296
- let incr = n.length === 3 && n[2] !== void 0 ? Math.abs(numeric(n[2])) : 1;
12244
+ let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
12297
12245
  let test = lte;
12298
12246
  if (y < x) {
12299
12247
  incr *= -1;
@@ -12330,17 +12278,15 @@ function expand_(str, max, isTop) {
12330
12278
  }
12331
12279
  return expansions;
12332
12280
  }
12333
-
12334
12281
  //#endregion
12335
- //#region node_modules/.pnpm/minimatch@10.1.3/node_modules/minimatch/dist/esm/assert-valid-pattern.js
12282
+ //#region node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
12336
12283
  const MAX_PATTERN_LENGTH = 1024 * 64;
12337
12284
  const assertValidPattern = (pattern) => {
12338
12285
  if (typeof pattern !== "string") throw new TypeError("invalid pattern");
12339
12286
  if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
12340
12287
  };
12341
-
12342
12288
  //#endregion
12343
- //#region node_modules/.pnpm/minimatch@10.1.3/node_modules/minimatch/dist/esm/brace-expressions.js
12289
+ //#region node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/brace-expressions.js
12344
12290
  const posixClasses = {
12345
12291
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
12346
12292
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -12460,9 +12406,8 @@ const parseClass = (glob, position) => {
12460
12406
  true
12461
12407
  ];
12462
12408
  };
12463
-
12464
12409
  //#endregion
12465
- //#region node_modules/.pnpm/minimatch@10.1.3/node_modules/minimatch/dist/esm/unescape.js
12410
+ //#region node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/unescape.js
12466
12411
  /**
12467
12412
  * Un-escape a string that has been escaped with {@link escape}.
12468
12413
  *
@@ -12483,13 +12428,14 @@ const parseClass = (glob, position) => {
12483
12428
  * unescaped.
12484
12429
  */
12485
12430
  const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
12486
- if (magicalBraces) return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
12487
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
12431
+ if (magicalBraces) return windowsPathsNoEscape ? s.replace(/\[([^/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1");
12432
+ return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
12488
12433
  };
12489
-
12490
12434
  //#endregion
12491
- //#region node_modules/.pnpm/minimatch@10.1.3/node_modules/minimatch/dist/esm/ast.js
12435
+ //#region node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/ast.js
12492
12436
  var _AST;
12437
+ let _Symbol$for;
12438
+ var _a;
12493
12439
  const types = new Set([
12494
12440
  "!",
12495
12441
  "?",
@@ -12498,6 +12444,53 @@ const types = new Set([
12498
12444
  "@"
12499
12445
  ]);
12500
12446
  const isExtglobType = (c) => types.has(c);
12447
+ const isExtglobAST = (c) => isExtglobType(c.type);
12448
+ const adoptionMap = new Map([
12449
+ ["!", ["@"]],
12450
+ ["?", ["?", "@"]],
12451
+ ["@", ["@"]],
12452
+ ["*", [
12453
+ "*",
12454
+ "+",
12455
+ "?",
12456
+ "@"
12457
+ ]],
12458
+ ["+", ["+", "@"]]
12459
+ ]);
12460
+ const adoptionWithSpaceMap = new Map([
12461
+ ["!", ["?"]],
12462
+ ["@", ["?"]],
12463
+ ["+", ["?", "*"]]
12464
+ ]);
12465
+ const adoptionAnyMap = new Map([
12466
+ ["!", ["?", "@"]],
12467
+ ["?", ["?", "@"]],
12468
+ ["@", ["?", "@"]],
12469
+ ["*", [
12470
+ "*",
12471
+ "+",
12472
+ "?",
12473
+ "@"
12474
+ ]],
12475
+ ["+", [
12476
+ "+",
12477
+ "@",
12478
+ "?",
12479
+ "*"
12480
+ ]]
12481
+ ]);
12482
+ const usurpMap = new Map([
12483
+ ["!", new Map([["!", "@"]])],
12484
+ ["?", new Map([["*", "*"], ["+", "*"]])],
12485
+ ["@", new Map([
12486
+ ["!", "!"],
12487
+ ["?", "?"],
12488
+ ["@", "@"],
12489
+ ["*", "*"],
12490
+ ["+", "+"]
12491
+ ])],
12492
+ ["+", new Map([["?", "*"], ["*", "*"]])]
12493
+ ]);
12501
12494
  const startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
12502
12495
  const startNoDot = "(?!\\.)";
12503
12496
  const addPatternStart = new Set(["[", "."]);
@@ -12507,6 +12500,7 @@ const regExpEscape$1 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
12507
12500
  const qmark = "[^/]";
12508
12501
  const star$1 = qmark + "*?";
12509
12502
  const starNoEmpty = qmark + "+?";
12503
+ let ID = 0;
12510
12504
  var _root = /* @__PURE__ */ new WeakMap();
12511
12505
  var _hasMagic2 = /* @__PURE__ */ new WeakMap();
12512
12506
  var _uflag = /* @__PURE__ */ new WeakMap();
@@ -12519,7 +12513,25 @@ var _options = /* @__PURE__ */ new WeakMap();
12519
12513
  var _toString = /* @__PURE__ */ new WeakMap();
12520
12514
  var _emptyExt = /* @__PURE__ */ new WeakMap();
12521
12515
  var _AST_brand = /* @__PURE__ */ new WeakSet();
12516
+ _Symbol$for = Symbol.for("nodejs.util.inspect.custom");
12522
12517
  var AST = class AST {
12518
+ get depth() {
12519
+ var _this$parent$depth, _classPrivateFieldGet2$1;
12520
+ return ((_this$parent$depth = (_classPrivateFieldGet2$1 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet2$1 === void 0 ? void 0 : _classPrivateFieldGet2$1.depth) !== null && _this$parent$depth !== void 0 ? _this$parent$depth : -1) + 1;
12521
+ }
12522
+ [_Symbol$for]() {
12523
+ var _classPrivateFieldGet3;
12524
+ return {
12525
+ "@@type": "AST",
12526
+ id: this.id,
12527
+ type: this.type,
12528
+ root: _classPrivateFieldGet2(_root, this).id,
12529
+ parent: (_classPrivateFieldGet3 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet3 === void 0 ? void 0 : _classPrivateFieldGet3.id,
12530
+ depth: this.depth,
12531
+ partsLength: _classPrivateFieldGet2(_parts, this).length,
12532
+ parts: _classPrivateFieldGet2(_parts, this)
12533
+ };
12534
+ }
12523
12535
  constructor(type, parent, options = {}) {
12524
12536
  _classPrivateMethodInitSpec(this, _AST_brand);
12525
12537
  _classPrivateFieldInitSpec(this, _root, void 0);
@@ -12533,6 +12545,7 @@ var AST = class AST {
12533
12545
  _classPrivateFieldInitSpec(this, _options, void 0);
12534
12546
  _classPrivateFieldInitSpec(this, _toString, void 0);
12535
12547
  _classPrivateFieldInitSpec(this, _emptyExt, false);
12548
+ this.id = ++ID;
12536
12549
  this.type = type;
12537
12550
  if (type) _classPrivateFieldSet2(_hasMagic2, this, true);
12538
12551
  _classPrivateFieldSet2(_parent, this, parent);
@@ -12553,44 +12566,42 @@ var AST = class AST {
12553
12566
  return _classPrivateFieldGet2(_hasMagic2, this);
12554
12567
  }
12555
12568
  toString() {
12556
- if (_classPrivateFieldGet2(_toString, this) !== void 0) return _classPrivateFieldGet2(_toString, this);
12557
- if (!this.type) return _classPrivateFieldSet2(_toString, this, _classPrivateFieldGet2(_parts, this).map((p) => String(p)).join(""));
12558
- else return _classPrivateFieldSet2(_toString, this, this.type + "(" + _classPrivateFieldGet2(_parts, this).map((p) => String(p)).join("|") + ")");
12569
+ return _classPrivateFieldGet2(_toString, this) !== void 0 ? _classPrivateFieldGet2(_toString, this) : !this.type ? _classPrivateFieldSet2(_toString, this, _classPrivateFieldGet2(_parts, this).map((p) => String(p)).join("")) : _classPrivateFieldSet2(_toString, this, this.type + "(" + _classPrivateFieldGet2(_parts, this).map((p) => String(p)).join("|") + ")");
12559
12570
  }
12560
12571
  push(...parts) {
12561
12572
  for (const p of parts) {
12562
12573
  if (p === "") continue;
12563
12574
  /* c8 ignore start */
12564
- if (typeof p !== "string" && !(p instanceof AST && _classPrivateFieldGet2(_parent, p) === this)) throw new Error("invalid part: " + p);
12575
+ if (typeof p !== "string" && !(p instanceof _a && _classPrivateFieldGet2(_parent, p) === this)) throw new Error("invalid part: " + p);
12565
12576
  /* c8 ignore stop */
12566
12577
  _classPrivateFieldGet2(_parts, this).push(p);
12567
12578
  }
12568
12579
  }
12569
12580
  toJSON() {
12570
- var _classPrivateFieldGet2$1;
12581
+ var _classPrivateFieldGet4;
12571
12582
  const ret = this.type === null ? _classPrivateFieldGet2(_parts, this).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ..._classPrivateFieldGet2(_parts, this).map((p) => p.toJSON())];
12572
12583
  if (this.isStart() && !this.type) ret.unshift([]);
12573
- if (this.isEnd() && (this === _classPrivateFieldGet2(_root, this) || _classPrivateFieldGet2(_filledNegs, _classPrivateFieldGet2(_root, this)) && ((_classPrivateFieldGet2$1 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet2$1 === void 0 ? void 0 : _classPrivateFieldGet2$1.type) === "!")) ret.push({});
12584
+ if (this.isEnd() && (this === _classPrivateFieldGet2(_root, this) || _classPrivateFieldGet2(_filledNegs, _classPrivateFieldGet2(_root, this)) && ((_classPrivateFieldGet4 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet4 === void 0 ? void 0 : _classPrivateFieldGet4.type) === "!")) ret.push({});
12574
12585
  return ret;
12575
12586
  }
12576
12587
  isStart() {
12577
- var _classPrivateFieldGet3;
12588
+ var _classPrivateFieldGet5;
12578
12589
  if (_classPrivateFieldGet2(_root, this) === this) return true;
12579
- if (!((_classPrivateFieldGet3 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet3 === void 0 ? void 0 : _classPrivateFieldGet3.isStart())) return false;
12590
+ if (!((_classPrivateFieldGet5 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet5 === void 0 ? void 0 : _classPrivateFieldGet5.isStart())) return false;
12580
12591
  if (_classPrivateFieldGet2(_parentIndex, this) === 0) return true;
12581
12592
  const p = _classPrivateFieldGet2(_parent, this);
12582
12593
  for (let i = 0; i < _classPrivateFieldGet2(_parentIndex, this); i++) {
12583
12594
  const pp = _classPrivateFieldGet2(_parts, p)[i];
12584
- if (!(pp instanceof AST && pp.type === "!")) return false;
12595
+ if (!(pp instanceof _a && pp.type === "!")) return false;
12585
12596
  }
12586
12597
  return true;
12587
12598
  }
12588
12599
  isEnd() {
12589
- var _classPrivateFieldGet4, _classPrivateFieldGet5, _classPrivateFieldGet6;
12600
+ var _classPrivateFieldGet6, _classPrivateFieldGet7, _classPrivateFieldGet8;
12590
12601
  if (_classPrivateFieldGet2(_root, this) === this) return true;
12591
- if (((_classPrivateFieldGet4 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet4 === void 0 ? void 0 : _classPrivateFieldGet4.type) === "!") return true;
12592
- if (!((_classPrivateFieldGet5 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet5 === void 0 ? void 0 : _classPrivateFieldGet5.isEnd())) return false;
12593
- if (!this.type) return (_classPrivateFieldGet6 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet6 === void 0 ? void 0 : _classPrivateFieldGet6.isEnd();
12602
+ if (((_classPrivateFieldGet6 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet6 === void 0 ? void 0 : _classPrivateFieldGet6.type) === "!") return true;
12603
+ if (!((_classPrivateFieldGet7 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet7 === void 0 ? void 0 : _classPrivateFieldGet7.isEnd())) return false;
12604
+ if (!this.type) return (_classPrivateFieldGet8 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet8 === void 0 ? void 0 : _classPrivateFieldGet8.isEnd();
12594
12605
  /* c8 ignore start */
12595
12606
  const pl = _classPrivateFieldGet2(_parent, this) ? _classPrivateFieldGet2(_parts, _classPrivateFieldGet2(_parent, this)).length : 0;
12596
12607
  /* c8 ignore stop */
@@ -12601,13 +12612,13 @@ var AST = class AST {
12601
12612
  else this.push(part.clone(this));
12602
12613
  }
12603
12614
  clone(parent) {
12604
- const c = new AST(this.type, parent);
12615
+ const c = new _a(this.type, parent);
12605
12616
  for (const p of _classPrivateFieldGet2(_parts, this)) c.copyIn(p);
12606
12617
  return c;
12607
12618
  }
12608
12619
  static fromGlob(pattern, options = {}) {
12609
- const ast = new AST(null, void 0, options);
12610
- _parseAST.call(AST, pattern, ast, 0, options);
12620
+ const ast = new _a(null, void 0, options);
12621
+ _assertClassBrand(AST, _a, _parseAST).call(_a, pattern, ast, 0, options, 0);
12611
12622
  return ast;
12612
12623
  }
12613
12624
  toMMPattern() {
@@ -12628,12 +12639,15 @@ var AST = class AST {
12628
12639
  }
12629
12640
  toRegExpSource(allowDot) {
12630
12641
  const dot = allowDot !== null && allowDot !== void 0 ? allowDot : !!_classPrivateFieldGet2(_options, this).dot;
12631
- if (_classPrivateFieldGet2(_root, this) === this) _assertClassBrand(_AST_brand, this, _fillNegs).call(this);
12632
- if (!this.type) {
12633
- var _classPrivateFieldGet7;
12642
+ if (_classPrivateFieldGet2(_root, this) === this) {
12643
+ _assertClassBrand(_AST_brand, this, _flatten).call(this);
12644
+ _assertClassBrand(_AST_brand, this, _fillNegs).call(this);
12645
+ }
12646
+ if (!isExtglobAST(this)) {
12647
+ var _classPrivateFieldGet9;
12634
12648
  const noEmpty = this.isStart() && this.isEnd() && !_classPrivateFieldGet2(_parts, this).some((s) => typeof s !== "string");
12635
12649
  const src = _classPrivateFieldGet2(_parts, this).map((p) => {
12636
- const [re, _, hasMagic, uflag] = typeof p === "string" ? _parseGlob.call(AST, p, _classPrivateFieldGet2(_hasMagic2, this), noEmpty) : p.toRegExpSource(allowDot);
12650
+ const [re, _, hasMagic, uflag] = typeof p === "string" ? _assertClassBrand(AST, _a, _parseGlob).call(_a, p, _classPrivateFieldGet2(_hasMagic2, this), noEmpty) : p.toRegExpSource(allowDot);
12637
12651
  _classPrivateFieldSet2(_hasMagic2, this, _classPrivateFieldGet2(_hasMagic2, this) || hasMagic);
12638
12652
  _classPrivateFieldSet2(_uflag, this, _classPrivateFieldGet2(_uflag, this) || uflag);
12639
12653
  return re;
@@ -12650,7 +12664,7 @@ var AST = class AST {
12650
12664
  }
12651
12665
  }
12652
12666
  let end = "";
12653
- if (this.isEnd() && _classPrivateFieldGet2(_filledNegs, _classPrivateFieldGet2(_root, this)) && ((_classPrivateFieldGet7 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet7 === void 0 ? void 0 : _classPrivateFieldGet7.type) === "!") end = "(?:$|\\/)";
12667
+ if (this.isEnd() && _classPrivateFieldGet2(_filledNegs, _classPrivateFieldGet2(_root, this)) && ((_classPrivateFieldGet9 = _classPrivateFieldGet2(_parent, this)) === null || _classPrivateFieldGet9 === void 0 ? void 0 : _classPrivateFieldGet9.type) === "!") end = "(?:$|\\/)";
12654
12668
  return [
12655
12669
  start + src + end,
12656
12670
  unescape(src),
@@ -12663,9 +12677,10 @@ var AST = class AST {
12663
12677
  let body = _assertClassBrand(_AST_brand, this, _partsToRegExp).call(this, dot);
12664
12678
  if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
12665
12679
  const s = this.toString();
12666
- _classPrivateFieldSet2(_parts, this, [s]);
12667
- this.type = null;
12668
- _classPrivateFieldSet2(_hasMagic2, this, void 0);
12680
+ const me = this;
12681
+ _classPrivateFieldSet2(_parts, me, [s]);
12682
+ me.type = null;
12683
+ _classPrivateFieldSet2(_hasMagic2, me, void 0);
12669
12684
  return [
12670
12685
  s,
12671
12686
  unescape(this.toString()),
@@ -12716,7 +12731,9 @@ function _fillNegs() {
12716
12731
  }
12717
12732
  return this;
12718
12733
  }
12719
- function _parseAST(str, ast, pos, opt) {
12734
+ function _parseAST(str, ast, pos, opt, extDepth) {
12735
+ var _opt$maxExtglobRecurs;
12736
+ const maxDepth = (_opt$maxExtglobRecurs = opt.maxExtglobRecursion) !== null && _opt$maxExtglobRecurs !== void 0 ? _opt$maxExtglobRecurs : 2;
12720
12737
  let escaping = false;
12721
12738
  let inBrace = false;
12722
12739
  let braceStart = -1;
@@ -12744,11 +12761,11 @@ function _parseAST(str, ast, pos, opt) {
12744
12761
  acc += c;
12745
12762
  continue;
12746
12763
  }
12747
- if (!opt.noext && isExtglobType(c) && str.charAt(i) === "(") {
12764
+ if (!opt.noext && isExtglobType(c) && str.charAt(i) === "(" && extDepth <= maxDepth) {
12748
12765
  ast.push(acc);
12749
12766
  acc = "";
12750
- const ext = new _AST(c, ast);
12751
- i = _parseAST.call(_AST, str, ext, i, opt);
12767
+ const ext = new _a(c, ast);
12768
+ i = _assertClassBrand(_AST, _a, _parseAST).call(_a, str, ext, i, opt, extDepth + 1);
12752
12769
  ast.push(ext);
12753
12770
  continue;
12754
12771
  }
@@ -12758,7 +12775,7 @@ function _parseAST(str, ast, pos, opt) {
12758
12775
  return i;
12759
12776
  }
12760
12777
  let i = pos + 1;
12761
- let part = new _AST(null, ast);
12778
+ let part = new _a(null, ast);
12762
12779
  const parts = [];
12763
12780
  let acc = "";
12764
12781
  while (i < str.length) {
@@ -12781,19 +12798,21 @@ function _parseAST(str, ast, pos, opt) {
12781
12798
  acc += c;
12782
12799
  continue;
12783
12800
  }
12784
- if (isExtglobType(c) && str.charAt(i) === "(") {
12801
+ /* c8 ignore stop */
12802
+ if (!opt.noext && isExtglobType(c) && str.charAt(i) === "(" && (extDepth <= maxDepth || ast && _assertClassBrand(_AST_brand, ast, _canAdoptType).call(ast, c))) {
12803
+ const depthAdd = ast && _assertClassBrand(_AST_brand, ast, _canAdoptType).call(ast, c) ? 0 : 1;
12785
12804
  part.push(acc);
12786
12805
  acc = "";
12787
- const ext = new _AST(c, part);
12806
+ const ext = new _a(c, part);
12788
12807
  part.push(ext);
12789
- i = _parseAST.call(_AST, str, ext, i, opt);
12808
+ i = _assertClassBrand(_AST, _a, _parseAST).call(_a, str, ext, i, opt, extDepth + depthAdd);
12790
12809
  continue;
12791
12810
  }
12792
12811
  if (c === "|") {
12793
12812
  part.push(acc);
12794
12813
  acc = "";
12795
12814
  parts.push(part);
12796
- part = new _AST(null, ast);
12815
+ part = new _a(null, ast);
12797
12816
  continue;
12798
12817
  }
12799
12818
  if (c === ")") {
@@ -12810,6 +12829,83 @@ function _parseAST(str, ast, pos, opt) {
12810
12829
  _classPrivateFieldSet2(_parts, ast, [str.substring(pos - 1)]);
12811
12830
  return i;
12812
12831
  }
12832
+ function _canAdoptWithSpace(child) {
12833
+ return _assertClassBrand(_AST_brand, this, _canAdopt).call(this, child, adoptionWithSpaceMap);
12834
+ }
12835
+ function _canAdopt(child, map = adoptionMap) {
12836
+ if (!child || typeof child !== "object" || child.type !== null || _classPrivateFieldGet2(_parts, child).length !== 1 || this.type === null) return false;
12837
+ const gc = _classPrivateFieldGet2(_parts, child)[0];
12838
+ if (!gc || typeof gc !== "object" || gc.type === null) return false;
12839
+ return _assertClassBrand(_AST_brand, this, _canAdoptType).call(this, gc.type, map);
12840
+ }
12841
+ function _canAdoptType(c, map = adoptionAnyMap) {
12842
+ var _map$get;
12843
+ return !!((_map$get = map.get(this.type)) === null || _map$get === void 0 ? void 0 : _map$get.includes(c));
12844
+ }
12845
+ function _adoptWithSpace(child, index) {
12846
+ const gc = _classPrivateFieldGet2(_parts, child)[0];
12847
+ const blank = new _a(null, gc, this.options);
12848
+ _classPrivateFieldGet2(_parts, blank).push("");
12849
+ gc.push(blank);
12850
+ _assertClassBrand(_AST_brand, this, _adopt).call(this, child, index);
12851
+ }
12852
+ function _adopt(child, index) {
12853
+ const gc = _classPrivateFieldGet2(_parts, child)[0];
12854
+ _classPrivateFieldGet2(_parts, this).splice(index, 1, ..._classPrivateFieldGet2(_parts, gc));
12855
+ for (const p of _classPrivateFieldGet2(_parts, gc)) if (typeof p === "object") _classPrivateFieldSet2(_parent, p, this);
12856
+ _classPrivateFieldSet2(_toString, this, void 0);
12857
+ }
12858
+ function _canUsurpType(c) {
12859
+ const m = usurpMap.get(this.type);
12860
+ return !!(m === null || m === void 0 ? void 0 : m.has(c));
12861
+ }
12862
+ function _canUsurp(child) {
12863
+ if (!child || typeof child !== "object" || child.type !== null || _classPrivateFieldGet2(_parts, child).length !== 1 || this.type === null || _classPrivateFieldGet2(_parts, this).length !== 1) return false;
12864
+ const gc = _classPrivateFieldGet2(_parts, child)[0];
12865
+ if (!gc || typeof gc !== "object" || gc.type === null) return false;
12866
+ return _assertClassBrand(_AST_brand, this, _canUsurpType).call(this, gc.type);
12867
+ }
12868
+ function _usurp(child) {
12869
+ const m = usurpMap.get(this.type);
12870
+ const gc = _classPrivateFieldGet2(_parts, child)[0];
12871
+ const nt = m === null || m === void 0 ? void 0 : m.get(gc.type);
12872
+ /* c8 ignore start - impossible */
12873
+ if (!nt) return false;
12874
+ /* c8 ignore stop */
12875
+ _classPrivateFieldSet2(_parts, this, _classPrivateFieldGet2(_parts, gc));
12876
+ for (const p of _classPrivateFieldGet2(_parts, this)) if (typeof p === "object") _classPrivateFieldSet2(_parent, p, this);
12877
+ this.type = nt;
12878
+ _classPrivateFieldSet2(_toString, this, void 0);
12879
+ _classPrivateFieldSet2(_emptyExt, this, false);
12880
+ }
12881
+ function _flatten() {
12882
+ if (!isExtglobAST(this)) {
12883
+ for (const p of _classPrivateFieldGet2(_parts, this)) if (typeof p === "object") _assertClassBrand(_AST_brand, p, _flatten).call(p);
12884
+ } else {
12885
+ let iterations = 0;
12886
+ let done = false;
12887
+ do {
12888
+ done = true;
12889
+ for (let i = 0; i < _classPrivateFieldGet2(_parts, this).length; i++) {
12890
+ const c = _classPrivateFieldGet2(_parts, this)[i];
12891
+ if (typeof c === "object") {
12892
+ _assertClassBrand(_AST_brand, c, _flatten).call(c);
12893
+ if (_assertClassBrand(_AST_brand, this, _canAdopt).call(this, c)) {
12894
+ done = false;
12895
+ _assertClassBrand(_AST_brand, this, _adopt).call(this, c, i);
12896
+ } else if (_assertClassBrand(_AST_brand, this, _canAdoptWithSpace).call(this, c)) {
12897
+ done = false;
12898
+ _assertClassBrand(_AST_brand, this, _adoptWithSpace).call(this, c, i);
12899
+ } else if (_assertClassBrand(_AST_brand, this, _canUsurp).call(this, c)) {
12900
+ done = false;
12901
+ _assertClassBrand(_AST_brand, this, _usurp).call(this, c);
12902
+ }
12903
+ }
12904
+ }
12905
+ } while (!done && ++iterations < 10);
12906
+ }
12907
+ _classPrivateFieldSet2(_toString, this, void 0);
12908
+ }
12813
12909
  function _partsToRegExp(dot) {
12814
12910
  return _classPrivateFieldGet2(_parts, this).map((p) => {
12815
12911
  /* c8 ignore start */
@@ -12824,6 +12920,7 @@ function _parseGlob(glob, hasMagic, noEmpty = false) {
12824
12920
  let escaping = false;
12825
12921
  let re = "";
12826
12922
  let uflag = false;
12923
+ let inStar = false;
12827
12924
  for (let i = 0; i < glob.length; i++) {
12828
12925
  const c = glob.charAt(i);
12829
12926
  if (escaping) {
@@ -12831,6 +12928,13 @@ function _parseGlob(glob, hasMagic, noEmpty = false) {
12831
12928
  re += (reSpecials.has(c) ? "\\" : "") + c;
12832
12929
  continue;
12833
12930
  }
12931
+ if (c === "*") {
12932
+ if (inStar) continue;
12933
+ inStar = true;
12934
+ re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star$1;
12935
+ hasMagic = true;
12936
+ continue;
12937
+ } else inStar = false;
12834
12938
  if (c === "\\") {
12835
12939
  if (i === glob.length - 1) re += "\\\\";
12836
12940
  else escaping = true;
@@ -12846,11 +12950,6 @@ function _parseGlob(glob, hasMagic, noEmpty = false) {
12846
12950
  continue;
12847
12951
  }
12848
12952
  }
12849
- if (c === "*") {
12850
- re += noEmpty && glob === "*" ? starNoEmpty : star$1;
12851
- hasMagic = true;
12852
- continue;
12853
- }
12854
12953
  if (c === "?") {
12855
12954
  re += qmark;
12856
12955
  hasMagic = true;
@@ -12865,9 +12964,9 @@ function _parseGlob(glob, hasMagic, noEmpty = false) {
12865
12964
  uflag
12866
12965
  ];
12867
12966
  }
12868
-
12967
+ _a = AST;
12869
12968
  //#endregion
12870
- //#region node_modules/.pnpm/minimatch@10.1.3/node_modules/minimatch/dist/esm/escape.js
12969
+ //#region node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/escape.js
12871
12970
  /**
12872
12971
  * Escape all magic characters in a glob pattern.
12873
12972
  *
@@ -12884,15 +12983,14 @@ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {})
12884
12983
  if (magicalBraces) return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
12885
12984
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
12886
12985
  };
12887
-
12888
12986
  //#endregion
12889
- //#region node_modules/.pnpm/minimatch@10.1.3/node_modules/minimatch/dist/esm/index.js
12987
+ //#region node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
12890
12988
  const minimatch = (p, pattern, options = {}) => {
12891
12989
  assertValidPattern(pattern);
12892
12990
  if (!options.nocomment && pattern.charAt(0) === "#") return false;
12893
12991
  return new Minimatch(pattern, options).match(p);
12894
12992
  };
12895
- const starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
12993
+ const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
12896
12994
  const starDotExtTest = (ext) => (f) => !f.startsWith(".") && f.endsWith(ext);
12897
12995
  const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
12898
12996
  const starDotExtTestNocase = (ext) => {
@@ -12911,7 +13009,7 @@ const dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
12911
13009
  const starRE = /^\*+$/;
12912
13010
  const starTest = (f) => f.length !== 0 && !f.startsWith(".");
12913
13011
  const starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
12914
- const qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
13012
+ const qmarksRE = /^\?+([^+@!?*[(]*)?$/;
12915
13013
  const qmarksTestNocase = ([$0, ext = ""]) => {
12916
13014
  const noext = qmarksTestNoExt([$0]);
12917
13015
  if (!ext) return noext;
@@ -12946,9 +13044,7 @@ const path$1 = {
12946
13044
  win32: { sep: "\\" },
12947
13045
  posix: { sep: "/" }
12948
13046
  };
12949
- /* c8 ignore stop */
12950
- const sep = defaultPlatform === "win32" ? path$1.win32.sep : path$1.posix.sep;
12951
- minimatch.sep = sep;
13047
+ minimatch.sep = defaultPlatform === "win32" ? path$1.win32.sep : path$1.posix.sep;
12952
13048
  const GLOBSTAR = Symbol("globstar **");
12953
13049
  minimatch.GLOBSTAR = GLOBSTAR;
12954
13050
  const star = "[^/]*?";
@@ -12995,7 +13091,7 @@ minimatch.defaults = defaults;
12995
13091
  const braceExpand = (pattern, options = {}) => {
12996
13092
  assertValidPattern(pattern);
12997
13093
  if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) return [pattern];
12998
- return expand(pattern);
13094
+ return expand(pattern, { max: options.braceExpandMax });
12999
13095
  };
13000
13096
  minimatch.braceExpand = braceExpand;
13001
13097
  const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
@@ -13009,15 +13105,20 @@ const match = (list, pattern, options = {}) => {
13009
13105
  minimatch.match = match;
13010
13106
  const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
13011
13107
  const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
13108
+ var _Minimatch_brand = /* @__PURE__ */ new WeakSet();
13012
13109
  var Minimatch = class {
13013
13110
  constructor(pattern, options = {}) {
13111
+ var _options$maxGlobstarR;
13112
+ _classPrivateMethodInitSpec(this, _Minimatch_brand);
13014
13113
  assertValidPattern(pattern);
13015
13114
  options = options || {};
13016
13115
  this.options = options;
13116
+ this.maxGlobstarRecursion = (_options$maxGlobstarR = options.maxGlobstarRecursion) !== null && _options$maxGlobstarR !== void 0 ? _options$maxGlobstarR : 200;
13017
13117
  this.pattern = pattern;
13018
13118
  this.platform = options.platform || defaultPlatform;
13019
13119
  this.isWindows = this.platform === "win32";
13020
- this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
13120
+ const awe = "allowWindowsEscape";
13121
+ this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options[awe] === false;
13021
13122
  if (this.windowsPathsNoEscape) this.pattern = this.pattern.replace(/\\/g, "/");
13022
13123
  this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
13023
13124
  this.regexp = null;
@@ -13076,7 +13177,7 @@ var Minimatch = class {
13076
13177
  }
13077
13178
  preprocess(globParts) {
13078
13179
  if (this.options.noglobstar) {
13079
- for (let i = 0; i < globParts.length; i++) for (let j = 0; j < globParts[i].length; j++) if (globParts[i][j] === "**") globParts[i][j] = "*";
13180
+ for (const partset of globParts) for (let j = 0; j < partset.length; j++) if (partset[j] === "**") partset[j] = "*";
13080
13181
  }
13081
13182
  const { optimizationLevel = 1 } = this.options;
13082
13183
  if (optimizationLevel >= 2) {
@@ -13137,7 +13238,7 @@ var Minimatch = class {
13137
13238
  let dd = 0;
13138
13239
  while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
13139
13240
  const p = parts[dd - 1];
13140
- if (p && p !== "." && p !== ".." && p !== "**") {
13241
+ if (p && p !== "." && p !== ".." && p !== "**" && !(this.isWindows && /^[a-z]:$/i.test(p))) {
13141
13242
  didSomething = true;
13142
13243
  parts.splice(dd - 1, 2);
13143
13244
  dd -= 2;
@@ -13252,7 +13353,8 @@ var Minimatch = class {
13252
13353
  this.negate = negate;
13253
13354
  }
13254
13355
  matchOne(file, pattern, partial = false) {
13255
- const options = this.options;
13356
+ let fileStartIndex = 0;
13357
+ let patternStartIndex = 0;
13256
13358
  if (this.isWindows) {
13257
13359
  const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
13258
13360
  const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
@@ -13264,77 +13366,15 @@ var Minimatch = class {
13264
13366
  const [fd, pd] = [file[fdi], pattern[pdi]];
13265
13367
  if (fd.toLowerCase() === pd.toLowerCase()) {
13266
13368
  pattern[pdi] = fd;
13267
- if (pdi > fdi) pattern = pattern.slice(pdi);
13268
- else if (fdi > pdi) file = file.slice(fdi);
13369
+ patternStartIndex = pdi;
13370
+ fileStartIndex = fdi;
13269
13371
  }
13270
13372
  }
13271
13373
  }
13272
13374
  const { optimizationLevel = 1 } = this.options;
13273
13375
  if (optimizationLevel >= 2) file = this.levelTwoFileOptimize(file);
13274
- this.debug("matchOne", this, {
13275
- file,
13276
- pattern
13277
- });
13278
- this.debug("matchOne", file.length, pattern.length);
13279
- for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
13280
- this.debug("matchOne loop");
13281
- var p = pattern[pi];
13282
- var f = file[fi];
13283
- this.debug(pattern, p, f);
13284
- /* c8 ignore start */
13285
- if (p === false) return false;
13286
- /* c8 ignore stop */
13287
- if (p === GLOBSTAR) {
13288
- this.debug("GLOBSTAR", [
13289
- pattern,
13290
- p,
13291
- f
13292
- ]);
13293
- var fr = fi;
13294
- var pr = pi + 1;
13295
- if (pr === pl) {
13296
- this.debug("** at the end");
13297
- for (; fi < fl; fi++) if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") return false;
13298
- return true;
13299
- }
13300
- while (fr < fl) {
13301
- var swallowee = file[fr];
13302
- this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
13303
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
13304
- this.debug("globstar found match!", fr, fl, swallowee);
13305
- return true;
13306
- } else {
13307
- if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
13308
- this.debug("dot detected!", file, fr, pattern, pr);
13309
- break;
13310
- }
13311
- this.debug("globstar swallow a segment, and continue");
13312
- fr++;
13313
- }
13314
- }
13315
- /* c8 ignore start */
13316
- if (partial) {
13317
- this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
13318
- if (fr === fl) return true;
13319
- }
13320
- /* c8 ignore stop */
13321
- return false;
13322
- }
13323
- let hit;
13324
- if (typeof p === "string") {
13325
- hit = f === p;
13326
- this.debug("string match", p, f, hit);
13327
- } else {
13328
- hit = p.test(f);
13329
- this.debug("pattern match", p, f, hit);
13330
- }
13331
- if (!hit) return false;
13332
- }
13333
- if (fi === fl && pi === pl) return true;
13334
- else if (fi === fl) return partial;
13335
- else if (pi === pl) return fi === fl - 1 && file[fi] === "";
13336
- else throw new Error("wtf?");
13337
- /* c8 ignore stop */
13376
+ if (pattern.includes(GLOBSTAR)) return _assertClassBrand(_Minimatch_brand, this, _matchGlobstar).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
13377
+ return _assertClassBrand(_Minimatch_brand, this, _matchOne).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
13338
13378
  }
13339
13379
  braceExpand() {
13340
13380
  return braceExpand(this.pattern, this.options);
@@ -13396,7 +13436,7 @@ var Minimatch = class {
13396
13436
  if (this.negate) re = "^(?!" + re + ").+$";
13397
13437
  try {
13398
13438
  this.regexp = new RegExp(re, [...flags].join(""));
13399
- } catch (ex) {
13439
+ } catch {
13400
13440
  this.regexp = false;
13401
13441
  }
13402
13442
  /* c8 ignore stop */
@@ -13404,7 +13444,7 @@ var Minimatch = class {
13404
13444
  }
13405
13445
  slashSplit(p) {
13406
13446
  if (this.preserveMultipleSlashes) return p.split("/");
13407
- else if (this.isWindows && /^\/\/[^\/]+/.test(p)) return ["", ...p.split(/\/+/)];
13447
+ else if (this.isWindows && /^\/\/[^/]+/.test(p)) return ["", ...p.split(/\/+/)];
13408
13448
  else return p.split(/\/+/);
13409
13449
  }
13410
13450
  match(f, partial = this.partial) {
@@ -13420,8 +13460,7 @@ var Minimatch = class {
13420
13460
  this.debug(this.pattern, "set", set);
13421
13461
  let filename = ff[ff.length - 1];
13422
13462
  if (!filename) for (let i = ff.length - 2; !filename && i >= 0; i--) filename = ff[i];
13423
- for (let i = 0; i < set.length; i++) {
13424
- const pattern = set[i];
13463
+ for (const pattern of set) {
13425
13464
  let file = ff;
13426
13465
  if (options.matchBase && pattern.length === 1) file = [filename];
13427
13466
  if (this.matchOne(file, pattern, partial)) {
@@ -13436,12 +13475,118 @@ var Minimatch = class {
13436
13475
  return minimatch.defaults(def).Minimatch;
13437
13476
  }
13438
13477
  };
13478
+ function _matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
13479
+ const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
13480
+ const lastgs = pattern.lastIndexOf(GLOBSTAR);
13481
+ const [head, body, tail] = partial ? [
13482
+ pattern.slice(patternIndex, firstgs),
13483
+ pattern.slice(firstgs + 1),
13484
+ []
13485
+ ] : [
13486
+ pattern.slice(patternIndex, firstgs),
13487
+ pattern.slice(firstgs + 1, lastgs),
13488
+ pattern.slice(lastgs + 1)
13489
+ ];
13490
+ if (head.length) {
13491
+ const fileHead = file.slice(fileIndex, fileIndex + head.length);
13492
+ if (!_assertClassBrand(_Minimatch_brand, this, _matchOne).call(this, fileHead, head, partial, 0, 0)) return false;
13493
+ fileIndex += head.length;
13494
+ patternIndex += head.length;
13495
+ }
13496
+ let fileTailMatch = 0;
13497
+ if (tail.length) {
13498
+ if (tail.length + fileIndex > file.length) return false;
13499
+ let tailStart = file.length - tail.length;
13500
+ if (_assertClassBrand(_Minimatch_brand, this, _matchOne).call(this, file, tail, partial, tailStart, 0)) fileTailMatch = tail.length;
13501
+ else {
13502
+ if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) return false;
13503
+ tailStart--;
13504
+ if (!_assertClassBrand(_Minimatch_brand, this, _matchOne).call(this, file, tail, partial, tailStart, 0)) return false;
13505
+ fileTailMatch = tail.length + 1;
13506
+ }
13507
+ }
13508
+ if (!body.length) {
13509
+ let sawSome = !!fileTailMatch;
13510
+ for (let i = fileIndex; i < file.length - fileTailMatch; i++) {
13511
+ const f = String(file[i]);
13512
+ sawSome = true;
13513
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) return false;
13514
+ }
13515
+ return partial || sawSome;
13516
+ }
13517
+ const bodySegments = [[[], 0]];
13518
+ let currentBody = bodySegments[0];
13519
+ let nonGsParts = 0;
13520
+ const nonGsPartsSums = [0];
13521
+ for (const b of body) if (b === GLOBSTAR) {
13522
+ nonGsPartsSums.push(nonGsParts);
13523
+ currentBody = [[], 0];
13524
+ bodySegments.push(currentBody);
13525
+ } else {
13526
+ currentBody[0].push(b);
13527
+ nonGsParts++;
13528
+ }
13529
+ let i = bodySegments.length - 1;
13530
+ const fileLength = file.length - fileTailMatch;
13531
+ for (const b of bodySegments) b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
13532
+ return !!_assertClassBrand(_Minimatch_brand, this, _matchGlobStarBodySections).call(this, file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
13533
+ }
13534
+ function _matchGlobStarBodySections(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
13535
+ const bs = bodySegments[bodyIndex];
13536
+ if (!bs) {
13537
+ for (let i = fileIndex; i < file.length; i++) {
13538
+ sawTail = true;
13539
+ const f = file[i];
13540
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) return false;
13541
+ }
13542
+ return sawTail;
13543
+ }
13544
+ const [body, after] = bs;
13545
+ while (fileIndex <= after) {
13546
+ if (_assertClassBrand(_Minimatch_brand, this, _matchOne).call(this, file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0) && globStarDepth < this.maxGlobstarRecursion) {
13547
+ const sub = _assertClassBrand(_Minimatch_brand, this, _matchGlobStarBodySections).call(this, file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
13548
+ if (sub !== false) return sub;
13549
+ }
13550
+ const f = file[fileIndex];
13551
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) return false;
13552
+ fileIndex++;
13553
+ }
13554
+ return partial || null;
13555
+ }
13556
+ function _matchOne(file, pattern, partial, fileIndex, patternIndex) {
13557
+ let fi;
13558
+ let pi;
13559
+ let pl;
13560
+ let fl;
13561
+ for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
13562
+ this.debug("matchOne loop");
13563
+ let p = pattern[pi];
13564
+ let f = file[fi];
13565
+ this.debug(pattern, p, f);
13566
+ /* c8 ignore start */
13567
+ if (p === false || p === GLOBSTAR) return false;
13568
+ /* c8 ignore stop */
13569
+ let hit;
13570
+ if (typeof p === "string") {
13571
+ hit = f === p;
13572
+ this.debug("string match", p, f, hit);
13573
+ } else {
13574
+ hit = p.test(f);
13575
+ this.debug("pattern match", p, f, hit);
13576
+ }
13577
+ if (!hit) return false;
13578
+ }
13579
+ if (fi === fl && pi === pl) return true;
13580
+ else if (fi === fl) return partial;
13581
+ else if (pi === pl) return fi === fl - 1 && file[fi] === "";
13582
+ else throw new Error("wtf?");
13583
+ /* c8 ignore stop */
13584
+ }
13439
13585
  /* c8 ignore stop */
13440
13586
  minimatch.AST = AST;
13441
13587
  minimatch.Minimatch = Minimatch;
13442
13588
  minimatch.escape = escape;
13443
13589
  minimatch.unescape = unescape;
13444
-
13445
13590
  //#endregion
13446
13591
  //#region packages/compiler-sfc/src/script/resolveType.ts
13447
13592
  var TypeScope = class {
@@ -13458,13 +13603,22 @@ var TypeScope = class {
13458
13603
  this.exportedDeclares = Object.create(null);
13459
13604
  }
13460
13605
  };
13606
+ function recordScopeDep(ctx, scope) {
13607
+ if (scope && scope.filename !== ctx.filename) (ctx.deps || (ctx.deps = /* @__PURE__ */ new Set())).add(scope.filename);
13608
+ }
13609
+ function recordResolvedElementDeps(ctx, { props }) {
13610
+ for (const key in props) recordScopeDep(ctx, props[key]._ownerScope);
13611
+ }
13461
13612
  /**
13462
13613
  * Resolve arbitrary type node to a list of type elements that can be then
13463
13614
  * mapped to runtime props or emits.
13464
13615
  */
13465
13616
  function resolveTypeElements(ctx, node, scope, typeParameters) {
13466
13617
  const canCache = !typeParameters;
13467
- if (canCache && node._resolvedElements) return node._resolvedElements;
13618
+ if (canCache && node._resolvedElements) {
13619
+ recordResolvedElementDeps(ctx, node._resolvedElements);
13620
+ return node._resolvedElements;
13621
+ }
13468
13622
  const resolved = innerResolveTypeElements(ctx, node, node._ownerScope || scope || ctxToScope(ctx), typeParameters);
13469
13623
  return canCache ? node._resolvedElements = resolved : resolved;
13470
13624
  }
@@ -13736,7 +13890,10 @@ function resolveBuiltin(ctx, node, name, scope, typeParameters) {
13736
13890
  }
13737
13891
  function resolveTypeReference(ctx, node, scope, name, onlyExported = false) {
13738
13892
  const canCache = !(scope === null || scope === void 0 ? void 0 : scope.isGenericScope);
13739
- if (canCache && node._resolvedReference) return node._resolvedReference;
13893
+ if (canCache && node._resolvedReference) {
13894
+ recordScopeDep(ctx, node._resolvedReference._ownerScope);
13895
+ return node._resolvedReference;
13896
+ }
13740
13897
  const resolved = innerResolveTypeReference(ctx, scope || ctxToScope(ctx), name || getReferenceName(node), node, onlyExported);
13741
13898
  return canCache ? node._resolvedReference = resolved : resolved;
13742
13899
  }
@@ -13751,7 +13908,9 @@ function innerResolveTypeReference(ctx, scope, name, node, onlyExported) {
13751
13908
  const src = node.type === "TSTypeQuery" ? s.declares : s.types;
13752
13909
  if (src[name]) {
13753
13910
  (ctx.deps || (ctx.deps = /* @__PURE__ */ new Set())).add(s.filename);
13754
- return src[name];
13911
+ const resolved = src[name];
13912
+ if (resolved._ownerScope && resolved._ownerScope !== s) ctx.deps.add(resolved._ownerScope.filename);
13913
+ return resolved;
13755
13914
  }
13756
13915
  }
13757
13916
  }
@@ -13816,7 +13975,7 @@ function resolveTypeFromImport(ctx, node, name, scope) {
13816
13975
  const { source, imported } = scope.imports[name];
13817
13976
  return resolveTypeReference(ctx, node, importSourceToScope(ctx, node, scope, source), imported, true);
13818
13977
  }
13819
- function importSourceToScope(ctx, node, scope, source) {
13978
+ function importSourceToScope(ctx, node, scope, source, trackDep = true) {
13820
13979
  let fs;
13821
13980
  try {
13822
13981
  fs = resolveFS(ctx);
@@ -13836,19 +13995,31 @@ function importSourceToScope(ctx, node, scope, source) {
13836
13995
  }
13837
13996
  resolved = resolveWithTS(scope.filename, source, ts, fs);
13838
13997
  }
13998
+ if (!resolved && source[0] === "." && true) {
13999
+ if (!ts) {
14000
+ if (loadTS) ts = loadTS();
14001
+ }
14002
+ if (ts) resolved = resolveWithTS(scope.filename, source, ts, fs);
14003
+ }
13839
14004
  if (resolved) resolved = scope.resolvedImportSources[source] = normalizePath(resolved);
13840
14005
  }
13841
14006
  if (resolved) {
13842
- (ctx.deps || (ctx.deps = /* @__PURE__ */ new Set())).add(resolved);
14007
+ if (trackDep) (ctx.deps || (ctx.deps = /* @__PURE__ */ new Set())).add(resolved);
13843
14008
  return fileToScope(ctx, resolved);
13844
14009
  } else return ctx.error(`Failed to resolve import source ${JSON.stringify(source)}.`, node, scope);
13845
14010
  }
13846
14011
  function resolveExt(filename, fs) {
13847
- filename = filename.replace(/\.js$/, "");
14012
+ let moduleType = "u";
14013
+ if (filename.endsWith(".mjs")) moduleType = "m";
14014
+ else if (filename.endsWith(".cjs")) moduleType = "c";
14015
+ filename = filename.replace(/\.[cm]?jsx?$/, "");
13848
14016
  const tryResolve = (filename) => {
13849
14017
  if (fs.fileExists(filename)) return filename;
13850
14018
  };
13851
- return tryResolve(filename) || tryResolve(filename + `.ts`) || tryResolve(filename + `.tsx`) || tryResolve(filename + `.d.ts`) || tryResolve(joinPaths(filename, `index.ts`)) || tryResolve(joinPaths(filename, `index.tsx`)) || tryResolve(joinPaths(filename, `index.d.ts`));
14019
+ const resolveTs = () => tryResolve(filename + `.uts`) || tryResolve(filename + `.ts`) || tryResolve(filename + `.tsx`) || tryResolve(filename + `.d.ts`);
14020
+ const resolveMts = () => tryResolve(filename + `.mts`) || tryResolve(filename + `.d.mts`);
14021
+ const resolveCts = () => tryResolve(filename + `.cts`) || tryResolve(filename + `.d.cts`);
14022
+ return tryResolve(filename) || (moduleType === "m" ? resolveMts() || resolveTs() : moduleType === "c" ? resolveCts() || resolveTs() : resolveTs() || resolveMts() || resolveCts()) || tryResolve(joinPaths(filename, `index.uts`)) || tryResolve(joinPaths(filename, `index.ts`)) || tryResolve(joinPaths(filename, `index.tsx`)) || tryResolve(joinPaths(filename, `index.d.ts`));
13852
14023
  }
13853
14024
  const tsConfigCache = createCache();
13854
14025
  const tsConfigRefMap = /* @__PURE__ */ new Map();
@@ -13932,8 +14103,8 @@ function fileToScope(ctx, filename, asGlobal = false) {
13932
14103
  }
13933
14104
  function parseFile(filename, content, fs, parserPlugins) {
13934
14105
  const ext = (0, path.extname)(filename);
13935
- if (ext === ".uts" || ext === ".ts" || ext === ".mts" || ext === ".tsx" || ext === ".mtsx") return (0, _babel_parser.parse)(content, {
13936
- plugins: resolveParserPlugins(ext.slice(1), parserPlugins, /\.d\.m?ts$/.test(filename)),
14106
+ if (ext === ".uts" || ext === ".ts" || ext === ".mts" || ext === ".tsx" || ext === ".cts" || ext === ".mtsx") return (0, _babel_parser.parse)(content, {
14107
+ plugins: resolveParserPlugins(ext.slice(1), parserPlugins, /\.d\.[cm]?ts$/.test(filename)),
13937
14108
  sourceType: "module"
13938
14109
  }).program.body;
13939
14110
  const isUnknownTypeSource = !/\.[cm]?[tj]sx?$/.test(filename);
@@ -13987,8 +14158,22 @@ function recordTypes(ctx, body, scope, asGlobal = false) {
13987
14158
  for (const stmt of body) if (asGlobal) {
13988
14159
  if (isAmbient) {
13989
14160
  if (stmt.declare) recordType(stmt, types, declares);
13990
- } else if (stmt.type === "TSModuleDeclaration" && stmt.global) for (const s of stmt.body.body) if (s.type === "ExportNamedDeclaration" && s.declaration) recordType(s.declaration, types, declares);
13991
- else recordType(s, types, declares);
14161
+ } else if (stmt.type === "TSModuleDeclaration" && stmt.global) for (const s of stmt.body.body) if (s.type === "ExportNamedDeclaration") {
14162
+ if (s.declaration) recordType(s.declaration, types, declares);
14163
+ else if (s.source) {
14164
+ const sourceScope = importSourceToScope(ctx, s.source, scope, s.source.value, false);
14165
+ for (const spec of s.specifiers) if (spec.type === "ExportSpecifier") {
14166
+ const exported = getId(spec.exported);
14167
+ const local = spec.local.name;
14168
+ if (sourceScope.exportedTypes[local]) types[exported] = sourceScope.exportedTypes[local];
14169
+ if (sourceScope.exportedDeclares[local]) declares[exported] = sourceScope.exportedDeclares[local];
14170
+ }
14171
+ }
14172
+ } else if (s.type === "ExportAllDeclaration" && s.source) {
14173
+ const sourceScope = importSourceToScope(ctx, s.source, scope, s.source.value, false);
14174
+ Object.assign(types, sourceScope.exportedTypes);
14175
+ Object.assign(declares, sourceScope.exportedDeclares);
14176
+ } else recordType(s, types, declares);
13992
14177
  } else recordType(stmt, types, declares);
13993
14178
  if (!asGlobal) {
13994
14179
  for (const stmt of body) if (stmt.type === "ExportNamedDeclaration") {
@@ -14025,10 +14210,10 @@ function recordTypes(ctx, body, scope, asGlobal = false) {
14025
14210
  }
14026
14211
  for (const key of Object.keys(types)) {
14027
14212
  const node = types[key];
14028
- node._ownerScope = scope;
14029
- if (node._ns) node._ns._ownerScope = scope;
14213
+ if (!node._ownerScope) node._ownerScope = scope;
14214
+ if (node._ns && !node._ns._ownerScope) node._ns._ownerScope = scope;
14030
14215
  }
14031
- for (const key of Object.keys(declares)) declares[key]._ownerScope = scope;
14216
+ for (const key of Object.keys(declares)) if (!declares[key]._ownerScope) declares[key]._ownerScope = scope;
14032
14217
  }
14033
14218
  function recordType(node, types, declares, overwriteId) {
14034
14219
  switch (node.type) {
@@ -14130,7 +14315,7 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
14130
14315
  const annotation = m.parameters[0].typeAnnotation;
14131
14316
  if (annotation && annotation.type !== "Noop") {
14132
14317
  const type = inferRuntimeType(ctx, annotation.typeAnnotation, scope)[0];
14133
- if (type === UNKNOWN_TYPE) return [UNKNOWN_TYPE];
14318
+ if (type === "Unknown") return [UNKNOWN_TYPE];
14134
14319
  types.add(type);
14135
14320
  }
14136
14321
  } else types.add("String");
@@ -14153,7 +14338,10 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
14153
14338
  default: return [UNKNOWN_TYPE];
14154
14339
  }
14155
14340
  case "TSTypeReference": {
14156
- const resolved = resolveTypeReference(ctx, node, scope);
14341
+ let resolved;
14342
+ try {
14343
+ resolved = resolveTypeReference(ctx, node, scope);
14344
+ } catch {}
14157
14345
  if (resolved) {
14158
14346
  if (resolved.type === "TSTypeAliasDeclaration") {
14159
14347
  if (resolved.typeAnnotation.type === "TSFunctionType") return ["Function"];
@@ -14229,6 +14417,17 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
14229
14417
  case "ReadonlyArray": return ["Array"];
14230
14418
  case "ReadonlyMap": return ["Map"];
14231
14419
  case "ReadonlySet": return ["Set"];
14420
+ case "Ref":
14421
+ case "ShallowRef":
14422
+ case "ComputedRef":
14423
+ case "WritableComputedRef": return ["Object"];
14424
+ case "MaybeRef":
14425
+ case "MaybeRefOrGetter": {
14426
+ const types = new Set(["Object"]);
14427
+ if (node.typeName.name === "MaybeRefOrGetter") types.add("Function");
14428
+ if (node.typeParameters && node.typeParameters.params[0]) for (const t of inferRuntimeType(ctx, node.typeParameters.params[0], scope, false, typeParameters)) types.add(t);
14429
+ return Array.from(types);
14430
+ }
14232
14431
  case "NonNullable":
14233
14432
  if (node.typeParameters && node.typeParameters.params[0]) return inferRuntimeType(ctx, node.typeParameters.params[0], scope).filter((t) => t !== "null");
14234
14433
  break;
@@ -14386,20 +14585,19 @@ function resolveUnionType(ctx, node, scope) {
14386
14585
  else types = [node];
14387
14586
  return types;
14388
14587
  }
14389
-
14390
14588
  //#endregion
14391
14589
  //#region packages/compiler-sfc/src/script/defineModel.ts
14392
14590
  const DEFINE_MODEL = "defineModel";
14393
14591
  function processDefineModel(ctx, node, declId) {
14394
- if (!isCallOf(node, DEFINE_MODEL)) return false;
14592
+ if (!isCallOf(node, "defineModel")) return false;
14395
14593
  ctx.hasDefineModelCall = true;
14396
14594
  const type = node.typeParameters && node.typeParameters.params[0] || void 0;
14397
14595
  let modelName;
14398
14596
  let options;
14399
14597
  const arg0 = node.arguments[0] && (0, _vue_compiler_dom.unwrapTSNode)(node.arguments[0]);
14400
- const hasName = arg0 && arg0.type === "StringLiteral";
14598
+ const hasName = arg0 && (arg0.type === "StringLiteral" || arg0.type === "TemplateLiteral" && arg0.expressions.length === 0);
14401
14599
  if (hasName) {
14402
- modelName = arg0.value;
14600
+ modelName = arg0.type === "StringLiteral" ? arg0.value : arg0.quasis[0].value.cooked;
14403
14601
  options = node.arguments[1];
14404
14602
  } else {
14405
14603
  modelName = "modelValue";
@@ -14450,7 +14648,7 @@ function genModelProps(ctx) {
14450
14648
  if (runtimeTypes) {
14451
14649
  const hasBoolean = runtimeTypes.includes("Boolean");
14452
14650
  const hasFunction = runtimeTypes.includes("Function");
14453
- if (runtimeTypes.includes(UNKNOWN_TYPE)) if (hasBoolean || hasFunction) {
14651
+ if (runtimeTypes.includes("Unknown")) if (hasBoolean || hasFunction) {
14454
14652
  runtimeTypes = runtimeTypes.filter((t) => t !== UNKNOWN_TYPE);
14455
14653
  skipCheck = true;
14456
14654
  } else runtimeTypes = ["null"];
@@ -14468,13 +14666,12 @@ function genModelProps(ctx) {
14468
14666
  }
14469
14667
  return `{${modelPropsDecl}\n }`;
14470
14668
  }
14471
-
14472
14669
  //#endregion
14473
14670
  //#region packages/compiler-sfc/src/script/defineProps.ts
14474
14671
  const DEFINE_PROPS = "defineProps";
14475
14672
  const WITH_DEFAULTS = "withDefaults";
14476
14673
  function processDefineProps(ctx, node, declId, isWithDefaults = false) {
14477
- if (!isCallOf(node, DEFINE_PROPS)) return processWithDefaults(ctx, node, declId);
14674
+ if (!isCallOf(node, "defineProps")) return processWithDefaults(ctx, node, declId);
14478
14675
  if (ctx.hasDefinePropsCall) ctx.error(`duplicate ${DEFINE_PROPS}() call`, node);
14479
14676
  ctx.hasDefinePropsCall = true;
14480
14677
  ctx.propsRuntimeDecl = node.arguments[0];
@@ -14495,7 +14692,7 @@ function processDefineProps(ctx, node, declId, isWithDefaults = false) {
14495
14692
  return true;
14496
14693
  }
14497
14694
  function processWithDefaults(ctx, node, declId) {
14498
- if (!isCallOf(node, WITH_DEFAULTS)) return false;
14695
+ if (!isCallOf(node, "withDefaults")) return false;
14499
14696
  if (!processDefineProps(ctx, node.arguments[0], declId, true)) ctx.error(`${WITH_DEFAULTS}' first argument must be a ${DEFINE_PROPS} call.`, node.arguments[0] || node);
14500
14697
  if (ctx.propsRuntimeDecl) ctx.error(`${WITH_DEFAULTS} can only be used with type-based ${DEFINE_PROPS} declaration.`, node);
14501
14698
  if (declId && declId.type === "ObjectPattern") ctx.warn(`${WITH_DEFAULTS}() is unnecessary when using destructure with ${DEFINE_PROPS}().\nReactive destructure will be disabled when using withDefaults().\nPrefer using destructure default values, e.g. const { foo = 1 } = defineProps(...). `, node.callee);
@@ -14540,7 +14737,7 @@ function resolveRuntimePropsFromType(ctx, node) {
14540
14737
  const e = elements.props[key];
14541
14738
  let type = inferRuntimeType(ctx, e);
14542
14739
  let skipCheck = false;
14543
- if (type.includes(UNKNOWN_TYPE)) if (type.includes("Boolean") || type.includes("Function")) {
14740
+ if (type.includes("Unknown")) if (type.includes("Boolean") || type.includes("Function")) {
14544
14741
  type = type.filter((t) => t !== UNKNOWN_TYPE);
14545
14742
  skipCheck = true;
14546
14743
  } else type = ["null"];
@@ -14563,7 +14760,18 @@ function genRuntimePropFromType(ctx, { key, required, type, skipCheck }, hasStat
14563
14760
  return resolveObjectKey(node.key, node.computed) === key;
14564
14761
  });
14565
14762
  if (prop) if (prop.type === "ObjectProperty") defaultString = `default: ${ctx.getString(prop.value)}`;
14566
- else defaultString = `${prop.async ? "async " : ""}${prop.kind !== "method" ? `${prop.kind} ` : ""}default() ${ctx.getString(prop.body)}`;
14763
+ else {
14764
+ let paramsString = "";
14765
+ if (prop.params.length) {
14766
+ const start = prop.params[0].start;
14767
+ const end = prop.params[prop.params.length - 1].end;
14768
+ paramsString = ctx.getString({
14769
+ start,
14770
+ end
14771
+ });
14772
+ }
14773
+ defaultString = `${prop.async ? "async " : ""}${prop.kind !== "method" ? `${prop.kind} ` : ""}default(${paramsString}) ${ctx.getString(prop.body)}`;
14774
+ }
14567
14775
  }
14568
14776
  const finalKey = getEscapedPropName(key);
14569
14777
  if (!ctx.options.isProd) return `${finalKey}: { ${concatStrings([
@@ -14615,7 +14823,6 @@ function inferValueType(node) {
14615
14823
  case "ArrowFunctionExpression": return "Function";
14616
14824
  }
14617
14825
  }
14618
-
14619
14826
  //#endregion
14620
14827
  //#region packages/compiler-sfc/src/script/definePropsDestructure.ts
14621
14828
  function processPropsDestructure(ctx, declId) {
@@ -14743,12 +14950,11 @@ function transformDestructuredProps(ctx, vueImportAliases) {
14743
14950
  }
14744
14951
  });
14745
14952
  }
14746
-
14747
14953
  //#endregion
14748
14954
  //#region packages/compiler-sfc/src/script/defineEmits.ts
14749
14955
  const DEFINE_EMITS = "defineEmits";
14750
14956
  function processDefineEmits(ctx, node, declId) {
14751
- if (!isCallOf(node, DEFINE_EMITS)) return false;
14957
+ if (!isCallOf(node, "defineEmits")) return false;
14752
14958
  if (ctx.hasDefineEmitCall) ctx.error(`duplicate ${DEFINE_EMITS}() call`, node);
14753
14959
  ctx.hasDefineEmitCall = true;
14754
14960
  ctx.emitsRuntimeDecl = node.arguments[0];
@@ -14799,36 +15005,45 @@ function extractEventNames(ctx, eventName, emits) {
14799
15005
  }
14800
15006
  }
14801
15007
  }
14802
-
14803
15008
  //#endregion
14804
15009
  //#region packages/compiler-sfc/src/script/defineExpose.ts
14805
15010
  const DEFINE_EXPOSE = "defineExpose";
14806
15011
  function processDefineExpose(ctx, node) {
14807
- if (isCallOf(node, DEFINE_EXPOSE)) {
15012
+ if (isCallOf(node, "defineExpose")) {
14808
15013
  if (ctx.hasDefineExposeCall) ctx.error(`duplicate ${DEFINE_EXPOSE}() call`, node);
14809
15014
  ctx.hasDefineExposeCall = true;
14810
15015
  return true;
14811
15016
  }
14812
15017
  return false;
14813
15018
  }
14814
-
14815
15019
  //#endregion
14816
15020
  //#region packages/compiler-sfc/src/script/defineSlots.ts
14817
15021
  const DEFINE_SLOTS = "defineSlots";
14818
15022
  function processDefineSlots(ctx, node, declId) {
14819
- if (!isCallOf(node, DEFINE_SLOTS)) return false;
15023
+ if (!isCallOf(node, "defineSlots")) return false;
14820
15024
  if (ctx.hasDefineSlotsCall) ctx.error(`duplicate ${DEFINE_SLOTS}() call`, node);
14821
15025
  ctx.hasDefineSlotsCall = true;
14822
15026
  if (node.arguments.length > 0) ctx.error(`${DEFINE_SLOTS}() cannot accept arguments`, node);
14823
15027
  if (declId) ctx.s.overwrite(ctx.startOffset + node.start, ctx.startOffset + node.end, `${ctx.helper("useSlots")}()`);
14824
15028
  return true;
14825
15029
  }
14826
-
14827
15030
  //#endregion
14828
15031
  //#region packages/compiler-sfc/src/script/defineOptions.ts
14829
15032
  const DEFINE_OPTIONS = "defineOptions";
15033
+ function isUniModuleImportSource(source) {
15034
+ return /^@\/uni_modules?\//.test(source);
15035
+ }
15036
+ function resolveRootElementClassBindingName(node) {
15037
+ const value = (0, _vue_compiler_dom.unwrapTSNode)(node);
15038
+ if (value.type === "Identifier") return value.name;
15039
+ if (value.type !== "ObjectExpression") return;
15040
+ for (const prop of value.properties) if (prop.type === "ObjectProperty" && prop.key.type === "Identifier" && prop.key.name === "class") {
15041
+ const classValue = (0, _vue_compiler_dom.unwrapTSNode)(prop.value);
15042
+ if (classValue.type === "Identifier") return classValue.name;
15043
+ }
15044
+ }
14830
15045
  function processDefineOptions(ctx, node) {
14831
- if (!isCallOf(node, DEFINE_OPTIONS)) return false;
15046
+ if (!isCallOf(node, "defineOptions")) return false;
14832
15047
  if (ctx.hasDefineOptionsCall) ctx.error(`duplicate ${DEFINE_OPTIONS}() call`, node);
14833
15048
  if (node.typeParameters) ctx.error(`${DEFINE_OPTIONS}() cannot accept type arguments`, node);
14834
15049
  if (!node.arguments[0]) return true;
@@ -14860,6 +15075,13 @@ function processDefineOptions(ctx, node) {
14860
15075
  break;
14861
15076
  case "rootElement":
14862
15077
  hasRootElementOption = true;
15078
+ if (prop.type === "ObjectProperty") {
15079
+ const bindingName = resolveRootElementClassBindingName(prop.value);
15080
+ if (bindingName) {
15081
+ const binding = ctx.userImports[bindingName];
15082
+ if (binding && !binding.isType && isUniModuleImportSource(binding.source)) ctx.rootElementFromUniModule = true;
15083
+ }
15084
+ }
14863
15085
  break;
14864
15086
  }
14865
15087
  }
@@ -14872,7 +15094,6 @@ function processDefineOptions(ctx, node) {
14872
15094
  if (slotsOption) ctx.error(`${DEFINE_OPTIONS}() cannot be used to declare slots. Use ${DEFINE_SLOTS}() instead.`, slotsOption);
14873
15095
  return true;
14874
15096
  }
14875
-
14876
15097
  //#endregion
14877
15098
  //#region packages/compiler-sfc/src/script/topLevelAwait.ts
14878
15099
  /**
@@ -14916,7 +15137,6 @@ function processAwait(ctx, node, needSemi, isStatement) {
14916
15137
  ctx.s.overwrite(node.start + startOffset, argumentStart + startOffset, `${needSemi ? `;` : ``}(\n ([__temp,__restore] = ${ctx.helper(`withAsyncContext`)}(${containsNestedAwait ? `async ` : ``}() => `);
14917
15138
  ctx.s.appendLeft(node.end + startOffset, `)),\n ${isStatement ? `` : `__temp = `}await __temp,\n __restore()${isStatement ? `` : `,\n __temp`}\n)`);
14918
15139
  }
14919
-
14920
15140
  //#endregion
14921
15141
  //#region packages/compiler-sfc/src/compileScript.ts
14922
15142
  const MACROS = [
@@ -15262,6 +15482,8 @@ function compileScript(sfc, options) {
15262
15482
  }
15263
15483
  if (ctx.rootElementTagName) compilerOptions.rootElementTagName = ctx.rootElementTagName;
15264
15484
  else delete compilerOptions.rootElementTagName;
15485
+ if (ctx.rootElementFromUniModule) compilerOptions.rootElementFromUniModule = true;
15486
+ else delete compilerOptions.rootElementFromUniModule;
15265
15487
  const { code, ast, preamble, tips, errors, helpers, map } = compileTemplate({
15266
15488
  filename,
15267
15489
  ast: sfc.template.ast,
@@ -15274,6 +15496,7 @@ function compileScript(sfc, options) {
15274
15496
  ssrCssVars: sfc.cssVars,
15275
15497
  vapor,
15276
15498
  compilerOptions: {
15499
+ dynamicSharedData: options.dynamicSharedData,
15277
15500
  ...options.templateOptions && options.templateOptions.compilerOptions,
15278
15501
  inline: true,
15279
15502
  isTS: ctx.isTS,
@@ -15309,19 +15532,25 @@ function compileScript(sfc, options) {
15309
15532
  const optionsProps = [];
15310
15533
  if (hasScriptCpp) optionsProps.push("scriptCpp: true");
15311
15534
  const optionsCode = optionsProps.length ? `, { ${optionsProps.join(", ")} }` : "";
15535
+ const dynamicSharedDataOptionsCode = options.dynamicSharedData ? `_useSharedDataPageOptions({ bundleKey: __className, sharedDataClassId: 0 })` : `_useSharedDataPageOptions()`;
15536
+ const dynamicSharedDataComponentOptionsCode = options.dynamicSharedData ? `_useSharedDataComponentOptions({ bundleKey: __className, sharedDataClassId: 0 })` : `_useSharedDataComponentOptions()`;
15312
15537
  if (componentType === "page") {
15313
15538
  setupPreambleLines.unshift(`const __sharedDataScope = _useSharedDataScope(__sharedData)`);
15314
- setupPreambleLines.unshift(`const __sharedData = _withSharedDataPage(useSharedDataPage<__SHARED_DATA_CLASS_NAME_TYPE>(_useSharedDataRenderer() == 'component' ? _useSharedDataScope() : _useSharedDataPageId(), _useSharedDataPageOptions())${optionsCode})`);
15539
+ if (options.dynamicSharedData) {
15540
+ setupPreambleLines.unshift(`const __sharedData = __sharedDataRenderer == 'component' ? _withSharedDataComponent(useSharedDataComponent<__SHARED_DATA_CLASS_NAME_TYPE>(_useSharedDataScope(), ${dynamicSharedDataComponentOptionsCode})${optionsCode}) : _withSharedDataPage(useSharedDataPage<__SHARED_DATA_CLASS_NAME_TYPE>(_useSharedDataPageId(), ${dynamicSharedDataOptionsCode})${optionsCode})`);
15541
+ setupPreambleLines.unshift(`const __sharedDataRenderer = _useSharedDataRenderer()`);
15542
+ } else setupPreambleLines.unshift(`const __sharedData = _withSharedDataPage(useSharedDataPage<__SHARED_DATA_CLASS_NAME_TYPE>(_useSharedDataRenderer() == 'component' ? _useSharedDataScope() : _useSharedDataPageId(), ${dynamicSharedDataOptionsCode})${optionsCode})`);
15315
15543
  } else if (componentType === "component") {
15316
- setupPreambleLines.unshift(`const __sharedData = _withSharedDataComponent(useSharedDataComponent<__SHARED_DATA_CLASS_NAME_TYPE>(__sharedDataScope, _useSharedDataComponentOptions())${optionsCode})`);
15544
+ setupPreambleLines.unshift(`const __sharedData = _withSharedDataComponent(useSharedDataComponent<__SHARED_DATA_CLASS_NAME_TYPE>(__sharedDataScope, ${dynamicSharedDataComponentOptionsCode})${optionsCode})`);
15317
15545
  setupPreambleLines.unshift(`const __sharedDataScope = _useSharedDataScope()`);
15318
15546
  }
15547
+ if (options.dynamicSharedData) runtimeOptions += `\n __dynamicSharedData: true,`;
15319
15548
  if (options.isWatch && templateHash) runtimeOptions += `\n __hash: "${templateHash}",`;
15320
15549
  runtimeOptions += `\n __className,`;
15321
15550
  runtimeOptions += `\n __filename: '${((_options$templateOpti3 = options.templateOptions) === null || _options$templateOpti3 === void 0 ? void 0 : _options$templateOpti3.compilerOptions).relativeFilename || ""}',`;
15322
15551
  }
15323
15552
  }
15324
- if (!ctx.hasDefaultExportName && filename && filename !== DEFAULT_FILENAME) {
15553
+ if (!ctx.hasDefaultExportName && filename && filename !== "anonymous.vue") {
15325
15554
  const match = filename.match(/([^/\\]+)\.\w+$/);
15326
15555
  if (match) runtimeOptions += `\n __name: '${match[1]}',`;
15327
15556
  }
@@ -15329,6 +15558,10 @@ function compileScript(sfc, options) {
15329
15558
  if (propsDecl) runtimeOptions += `\n props: ${propsDecl},`;
15330
15559
  const emitsDecl = genRuntimeEmits(ctx);
15331
15560
  if (emitsDecl) runtimeOptions += `\n emits: ${emitsDecl},`;
15561
+ if (vapor && !ssr && sfc.template && !sfc.template.src && sfc.template.ast) {
15562
+ var _options$templateOpti4;
15563
+ if (isMultiRoot(sfc.template.ast, (_options$templateOpti4 = options.templateOptions) === null || _options$templateOpti4 === void 0 ? void 0 : _options$templateOpti4.compilerOptions)) runtimeOptions += `\n __multiRoot: true,`;
15564
+ }
15332
15565
  let definedOptions = "";
15333
15566
  if (ctx.optionsRuntimeDecl) definedOptions = scriptSetup.content.slice(ctx.optionsRuntimeDecl.start, ctx.optionsRuntimeDecl.end).trim();
15334
15567
  if (!ctx.hasDefineExposeCall && !inlineMode) setupPreambleLines.push(`__expose();`);
@@ -15349,8 +15582,8 @@ function compileScript(sfc, options) {
15349
15582
  }
15350
15583
  }
15351
15584
  if (ctx.helperImports.size > 0) {
15352
- var _options$templateOpti4;
15353
- 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;
15585
+ var _options$templateOpti5;
15586
+ const runtimeModuleName = (_options$templateOpti5 = options.templateOptions) === null || _options$templateOpti5 === void 0 || (_options$templateOpti5 = _options$templateOpti5.compilerOptions) === null || _options$templateOpti5 === void 0 ? void 0 : _options$templateOpti5.runtimeModuleName;
15354
15587
  const importSrc = runtimeModuleName ? JSON.stringify(runtimeModuleName) : `'vue'`;
15355
15588
  ctx.s.prepend(`import { ${[...ctx.helperImports].map((h) => `${h} as _${h}`).join(", ")} } from ${importSrc}\n`);
15356
15589
  }
@@ -15386,19 +15619,19 @@ function walkDeclaration(from, node, bindings, userImportAliases, hoistStatic, i
15386
15619
  isAllLiteral = isConst && node.declarations.every((decl) => decl.id.type === "Identifier" && (0, _vue_compiler_dom.isStaticNode)(decl.init));
15387
15620
  for (const { id, init: _init } of node.declarations) {
15388
15621
  const init = _init && (0, _vue_compiler_dom.unwrapTSNode)(_init);
15389
- const isConstMacroCall = isConst && isCallOf(init, (c) => c === DEFINE_PROPS || c === DEFINE_EMITS || c === WITH_DEFAULTS || c === DEFINE_SLOTS);
15622
+ const isConstMacroCall = isConst && isCallOf(init, (c) => c === "defineProps" || c === "defineEmits" || c === "withDefaults" || c === "defineSlots");
15390
15623
  if (id.type === "Identifier") {
15391
15624
  let bindingType;
15392
15625
  const userReactiveBinding = userImportAliases["reactive"];
15393
15626
  if ((hoistStatic || from === "script") && (isAllLiteral || isConst && (0, _vue_compiler_dom.isStaticNode)(init))) bindingType = "literal-const";
15394
15627
  else if (isCallOf(init, userReactiveBinding)) bindingType = isConst ? "setup-reactive-const" : "setup-let";
15395
- else if (isConstMacroCall || isConst && canNeverBeRef(init, userReactiveBinding)) bindingType = isCallOf(init, DEFINE_PROPS) ? "setup-reactive-const" : "setup-const";
15396
- 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 === DEFINE_MODEL)) bindingType = "setup-ref";
15628
+ else if (isConstMacroCall || isConst && canNeverBeRef(init, userReactiveBinding)) bindingType = isCallOf(init, "defineProps") ? "setup-reactive-const" : "setup-const";
15629
+ 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";
15397
15630
  else bindingType = "setup-maybe-ref";
15398
15631
  else bindingType = "setup-let";
15399
15632
  registerBinding(bindings, id, bindingType);
15400
15633
  } else {
15401
- if (isCallOf(init, DEFINE_PROPS) && isPropsDestructureEnabled) continue;
15634
+ if (isCallOf(init, "defineProps") && isPropsDestructureEnabled) continue;
15402
15635
  if (id.type === "ObjectPattern") walkObjectPattern(id, bindings, isConst, isConstMacroCall);
15403
15636
  else if (id.type === "ArrayPattern") walkArrayPattern(id, bindings, isConst, isConstMacroCall);
15404
15637
  }
@@ -15483,10 +15716,9 @@ function mergeSourceMaps(scriptMap, templateMap, templateLineOffset) {
15483
15716
  generator._file = scriptMap.file;
15484
15717
  return generator.toJSON();
15485
15718
  }
15486
-
15487
15719
  //#endregion
15488
15720
  //#region packages/compiler-sfc/src/index.ts
15489
- const version = "3.6.0-beta.5";
15721
+ const version = "3.6.0-beta.12";
15490
15722
  const parseCache = parseCache$1;
15491
15723
  const errorMessages = {
15492
15724
  ..._vue_compiler_dom.errorMessages,
@@ -15499,7 +15731,6 @@ const walk = estree_walker.walk;
15499
15731
  * ignoring the option instead of breaking.
15500
15732
  */
15501
15733
  const shouldTransformRef = () => false;
15502
-
15503
15734
  //#endregion
15504
15735
  exports.MagicString = magic_string.default;
15505
15736
  exports.babelParse = _babel_parser.parse;
@@ -15525,4 +15756,4 @@ exports.rewriteDefaultAST = rewriteDefaultAST;
15525
15756
  exports.shouldTransformRef = shouldTransformRef;
15526
15757
  exports.version = version;
15527
15758
  exports.walk = walk;
15528
- exports.walkIdentifiers = _vue_compiler_core.walkIdentifiers;
15759
+ exports.walkIdentifiers = _vue_compiler_core.walkIdentifiers;