@weapp-tailwindcss/postcss 3.1.10 → 3.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -10646,6 +10646,161 @@ function protectDynamicColorMixAlpha(css, options = {}) {
10646
10646
  };
10647
10647
  }
10648
10648
  //#endregion
10649
+ //#region src/compat/mini-program-css/cascade-layers.ts
10650
+ const LAYER_PATH_SEPARATOR = "";
10651
+ const LAYER_INSERTION_ANCHOR = "__weapp_tailwindcss_layer_anchor__";
10652
+ function splitLayerNames(params) {
10653
+ return params.split(",").map((name) => name.trim()).filter(Boolean);
10654
+ }
10655
+ function splitLayerPath(name) {
10656
+ return name.split(".").map((segment) => segment.trim()).filter(Boolean);
10657
+ }
10658
+ function createLayerPath(segments) {
10659
+ return {
10660
+ key: segments.join(LAYER_PATH_SEPARATOR),
10661
+ segments
10662
+ };
10663
+ }
10664
+ function isContainer(node) {
10665
+ return "nodes" in node && Array.isArray(node.nodes);
10666
+ }
10667
+ function cloneWrapper(node, children) {
10668
+ const wrapper = node.clone({ nodes: [] });
10669
+ wrapper.append(...children);
10670
+ return wrapper;
10671
+ }
10672
+ function wrapLayerNodes(atRule, nodes, root) {
10673
+ let wrapped = nodes;
10674
+ let parent = atRule.parent;
10675
+ while (parent && parent !== root) {
10676
+ if (parent.type !== "atrule" || parent.name !== "layer") {
10677
+ if (isContainer(parent)) wrapped = [cloneWrapper(parent, wrapped)];
10678
+ }
10679
+ parent = parent.parent;
10680
+ }
10681
+ return wrapped;
10682
+ }
10683
+ function removeEmptyLayerAncestors(node, root) {
10684
+ let parent = node.parent;
10685
+ node.remove();
10686
+ while (parent && parent !== root && parent.type === "atrule" && parent.nodes?.length === 0) {
10687
+ const nextParent = parent.parent;
10688
+ parent.remove();
10689
+ parent = nextParent;
10690
+ }
10691
+ }
10692
+ function isLayerDescendant(candidate, parent) {
10693
+ return candidate.length > parent.length && parent.every((segment, index) => candidate[index] === segment);
10694
+ }
10695
+ function findParentLayerPath(atRule, paths) {
10696
+ let parent = atRule.parent;
10697
+ while (parent) {
10698
+ if (parent.type === "atrule" && parent.name === "layer") return paths.get(parent)?.segments ?? [];
10699
+ parent = parent.parent;
10700
+ }
10701
+ return [];
10702
+ }
10703
+ function createLayerInsertionAnchor(root, atRule) {
10704
+ let topLevelNode = atRule;
10705
+ while (topLevelNode.parent && topLevelNode.parent !== root) topLevelNode = topLevelNode.parent;
10706
+ const anchor = postcss$1.comment({ text: LAYER_INSERTION_ANCHOR });
10707
+ topLevelNode.before(anchor);
10708
+ return anchor;
10709
+ }
10710
+ function insertLayeredNodes(root, anchor, nodes) {
10711
+ if (!anchor.parent) {
10712
+ root.append(nodes);
10713
+ return;
10714
+ }
10715
+ if (nodes.length === 0) {
10716
+ anchor.remove();
10717
+ return;
10718
+ }
10719
+ anchor.replaceWith(nodes);
10720
+ }
10721
+ /**
10722
+ * 按 cascade layer 声明顺序重排规则并移除 `@layer` 语法。
10723
+ *
10724
+ * 该转换只模拟 layer 的顺序语义,不通过提高选择器权重模拟完整 specificity 规则。
10725
+ */
10726
+ function consumeCascadeLayers(root) {
10727
+ const layerAtRules = [];
10728
+ const paths = /* @__PURE__ */ new WeakMap();
10729
+ const siblingOrders = /* @__PURE__ */ new Map();
10730
+ const buckets = /* @__PURE__ */ new Map();
10731
+ const topLayerOccurrences = /* @__PURE__ */ new Map();
10732
+ let anonymousLayerIndex = 0;
10733
+ const registerPath = (segments, occurrence) => {
10734
+ let parentKey = "";
10735
+ for (const [index, segment] of segments.entries()) {
10736
+ let siblings = siblingOrders.get(parentKey);
10737
+ if (!siblings) {
10738
+ siblings = /* @__PURE__ */ new Map();
10739
+ siblingOrders.set(parentKey, siblings);
10740
+ }
10741
+ if (!siblings.has(segment)) siblings.set(segment, siblings.size);
10742
+ if (index === 0 && !topLayerOccurrences.has(segment)) topLayerOccurrences.set(segment, occurrence);
10743
+ parentKey = parentKey ? `${parentKey}${LAYER_PATH_SEPARATOR}${segment}` : segment;
10744
+ }
10745
+ const path = createLayerPath(segments);
10746
+ if (!buckets.has(path.key)) buckets.set(path.key, {
10747
+ ...path,
10748
+ nodes: []
10749
+ });
10750
+ return path;
10751
+ };
10752
+ root.walkAtRules("layer", (atRule) => {
10753
+ layerAtRules.push(atRule);
10754
+ const parentLayer = findParentLayerPath(atRule, paths);
10755
+ const names = splitLayerNames(atRule.params);
10756
+ if (!atRule.nodes) {
10757
+ for (const name of names) registerPath([...parentLayer, ...splitLayerPath(name)], atRule);
10758
+ return;
10759
+ }
10760
+ const ownSegments = names[0] ? splitLayerPath(names[0]) : [`\u0000anonymous-${anonymousLayerIndex++}`];
10761
+ paths.set(atRule, registerPath([...parentLayer, ...ownSegments], atRule));
10762
+ });
10763
+ if (layerAtRules.length === 0) return;
10764
+ const insertionAnchors = /* @__PURE__ */ new Map();
10765
+ for (const [segment, occurrence] of topLayerOccurrences) insertionAnchors.set(segment, createLayerInsertionAnchor(root, occurrence));
10766
+ for (const atRule of [...layerAtRules].reverse()) {
10767
+ if (!atRule.parent) continue;
10768
+ const path = paths.get(atRule);
10769
+ if (!path || !atRule.nodes) {
10770
+ removeEmptyLayerAncestors(atRule, root);
10771
+ continue;
10772
+ }
10773
+ const nodes = atRule.nodes.map((node) => node.clone());
10774
+ if (nodes.length > 0) buckets.get(path.key)?.nodes.unshift(...wrapLayerNodes(atRule, nodes, root));
10775
+ removeEmptyLayerAncestors(atRule, root);
10776
+ }
10777
+ const compareBuckets = (left, right) => {
10778
+ if (isLayerDescendant(left.segments, right.segments)) return -1;
10779
+ if (isLayerDescendant(right.segments, left.segments)) return 1;
10780
+ const size = Math.min(left.segments.length, right.segments.length);
10781
+ let parentKey = "";
10782
+ for (let index = 0; index < size; index++) {
10783
+ const leftSegment = left.segments[index];
10784
+ const rightSegment = right.segments[index];
10785
+ if (leftSegment !== rightSegment) {
10786
+ const siblings = siblingOrders.get(parentKey);
10787
+ return (siblings?.get(leftSegment) ?? 0) - (siblings?.get(rightSegment) ?? 0);
10788
+ }
10789
+ parentKey = parentKey ? `${parentKey}${LAYER_PATH_SEPARATOR}${leftSegment}` : leftSegment;
10790
+ }
10791
+ return left.segments.length - right.segments.length;
10792
+ };
10793
+ const bucketsByTopLayer = /* @__PURE__ */ new Map();
10794
+ for (const bucket of buckets.values()) {
10795
+ const topLayer = bucket.segments[0];
10796
+ if (!topLayer || bucket.nodes.length === 0) continue;
10797
+ const group = bucketsByTopLayer.get(topLayer) ?? [];
10798
+ group.push(bucket);
10799
+ bucketsByTopLayer.set(topLayer, group);
10800
+ }
10801
+ for (const [segment, anchor] of insertionAnchors) insertLayeredNodes(root, anchor, (bucketsByTopLayer.get(segment) ?? []).sort(compareBuckets).flatMap((bucket) => bucket.nodes));
10802
+ }
10803
+ //#endregion
10649
10804
  //#region src/compat/mini-program-css/at-rules.ts
10650
10805
  const MINI_PROGRAM_UNSUPPORTED_AT_RULES = /* @__PURE__ */ new Set(["property", "supports"]);
10651
10806
  function removeAtRulesByScan(css, names) {
@@ -10703,13 +10858,7 @@ function removeUnsupportedAtSupports(css) {
10703
10858
  * 移除小程序不支持的 cascade layer 语法,同时保留 layer 内的实际规则。
10704
10859
  */
10705
10860
  function removeUnsupportedCascadeLayers(root) {
10706
- root.walkAtRules("layer", (atRule) => {
10707
- if (!atRule.nodes || atRule.nodes.length === 0) {
10708
- atRule.remove();
10709
- return;
10710
- }
10711
- atRule.replaceWith(...atRule.nodes);
10712
- });
10861
+ consumeCascadeLayers(root);
10713
10862
  }
10714
10863
  function unwrapUnsupportedCascadeLayers(css) {
10715
10864
  if (!css.includes("@layer")) return css;
@@ -11929,7 +12078,7 @@ function removeRootSpecificityPlaceholders(root) {
11929
12078
  });
11930
12079
  }
11931
12080
  function isEffectivelyEmptyContainer(container) {
11932
- return !container.nodes || container.nodes.every((node) => node.type === "comment");
12081
+ return container.nodes !== void 0 && container.nodes.every((node) => node.type === "comment");
11933
12082
  }
11934
12083
  function removeEmptyAtRules$2(root) {
11935
12084
  root.walkAtRules((atRule) => {
@@ -12132,260 +12281,6 @@ function finalizeMiniProgramCss(css, options = {}) {
12132
12281
  }
12133
12282
  }
12134
12283
  //#endregion
12135
- //#region src/compat/mini-program-css/prune-generated.ts
12136
- const DEFAULT_WEAPP_VARIABLE_SCOPE = "page,.tw-root,wx-root-portal-content,:host";
12137
- const MINI_PROGRAM_PSEUDO_CONTENT_SCOPE_SELECTOR = "::before,\n::after";
12138
- const CLASS_SELECTOR_RE = /(?:^|[^\w-])\.[_a-z\u00A0-\uFFFF\\-]/i;
12139
- function isConditionalCompilationComment(text) {
12140
- return /#(?:ifn?def|endif)\b/.test(text);
12141
- }
12142
- function hasClassSelector$1(selector) {
12143
- return CLASS_SELECTOR_RE.test(selector);
12144
- }
12145
- function removeEmptyContentInitDeclarations(rule) {
12146
- rule.walkDecls((decl) => {
12147
- if (isEmptyTwContentDeclaration(decl)) decl.remove();
12148
- });
12149
- }
12150
- function isMiniProgramElementVariableScopeRule(rule) {
12151
- const selectors = getRuleSelectors(rule);
12152
- return selectors.length > 0 && selectors.every((selector) => MINI_PROGRAM_ELEMENT_SCOPE_SELECTORS.has(selector));
12153
- }
12154
- function isMiniProgramNativeElementRule(rule) {
12155
- const selectors = getRuleSelectors(rule);
12156
- return selectors.length > 0 && selectors.every((selector) => isMiniProgramNativeElementSelector(selector)) && !isMiniProgramPreflightRule(rule);
12157
- }
12158
- function isOnlyTwContentDeclarations(rule) {
12159
- let hasDeclaration = false;
12160
- let onlyContentVariable = true;
12161
- rule.walkDecls((decl) => {
12162
- hasDeclaration = true;
12163
- if (decl.prop !== "--tw-content") onlyContentVariable = false;
12164
- });
12165
- return hasDeclaration && onlyContentVariable;
12166
- }
12167
- function isMiniProgramElementContentInitRule(rule) {
12168
- if (!isMiniProgramElementVariableScopeRule(rule)) return false;
12169
- let hasElementSelector = false;
12170
- let hasPseudoSelector = false;
12171
- for (const selector of getRuleSelectors(rule)) if (selector === "view" || selector === "text") hasElementSelector = true;
12172
- else if (selector === "::before" || selector === "::after") hasPseudoSelector = true;
12173
- return hasElementSelector && hasPseudoSelector && isOnlyTwContentDeclarations(rule);
12174
- }
12175
- function hasMiniProgramElementContentInit(root) {
12176
- let found = false;
12177
- root.walkRules((rule) => {
12178
- if (!isMiniProgramElementVariableScopeRule(rule)) return;
12179
- rule.walkDecls("--tw-content", (decl) => {
12180
- if (isEmptyTwContentDeclaration(decl)) found = true;
12181
- });
12182
- });
12183
- return found;
12184
- }
12185
- function ensureMiniProgramElementContentInit(root) {
12186
- if (hasMiniProgramElementContentInit(root)) return;
12187
- let defaultScopeRule;
12188
- root.walkRules((rule) => {
12189
- if (rule.selector === "view,text,::after,::before") {
12190
- defaultScopeRule = rule;
12191
- return false;
12192
- }
12193
- });
12194
- const declaration = postcss$1.decl({
12195
- prop: "--tw-content",
12196
- value: "\"\""
12197
- });
12198
- if (defaultScopeRule) {
12199
- defaultScopeRule.append(declaration);
12200
- return;
12201
- }
12202
- root.prepend(postcss$1.rule({
12203
- selector: MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR,
12204
- nodes: [declaration]
12205
- }));
12206
- }
12207
- function isTailwindV4GradientRuntimeDeclaration(decl) {
12208
- return decl.prop.startsWith("--tw-gradient-");
12209
- }
12210
- function moveTailwindV4GradientRuntimeDeclarations(rule) {
12211
- const gradientDeclarations = [];
12212
- rule.walkDecls((decl) => {
12213
- if (isTailwindV4GradientRuntimeDeclaration(decl)) {
12214
- gradientDeclarations.push(decl.clone());
12215
- decl.remove();
12216
- }
12217
- });
12218
- if (gradientDeclarations.length > 0) rule.before(new postcss$1.Rule({
12219
- selector: MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR,
12220
- nodes: gradientDeclarations
12221
- }));
12222
- if (rule.nodes.length === 0) rule.remove();
12223
- }
12224
- function isKeyframesRule(rule) {
12225
- let parent = rule.parent;
12226
- while (parent) {
12227
- if (parent.type === "atrule" && parent.name.endsWith("keyframes")) return true;
12228
- parent = parent.parent;
12229
- }
12230
- return false;
12231
- }
12232
- /**
12233
- * 裁剪 Tailwind 生成 CSS 中面向浏览器的 classless 规则。
12234
- */
12235
- function pruneMiniProgramGeneratedCss(css, options = {}) {
12236
- const root = postcss$1.parse(css);
12237
- const shouldPreserveContentInit = options.preservePreflight || usesTwContentVariable(root);
12238
- root.walkComments((comment) => {
12239
- if (options.preserveConditionalComments && isConditionalCompilationComment(comment.text)) return;
12240
- comment.remove();
12241
- });
12242
- removeUnsupportedCascadeLayers(root);
12243
- removeSpecificityPlaceholders(root);
12244
- removeUnsupportedModernColorDeclarations(root);
12245
- removeTailwindContainerMaxWidthMediaRules(root);
12246
- removeTailwindContainerWidthRules(root);
12247
- root.walkAtRules("supports", (atRule) => {
12248
- atRule.remove();
12249
- });
12250
- root.walkAtRules((atRule) => {
12251
- removeUnsupportedMiniProgramPrefixedAtRule(atRule);
12252
- });
12253
- root.walkDecls((decl) => {
12254
- normalizeMiniProgramPrefixedDeclaration(decl);
12255
- });
12256
- root.walkRules((rule) => {
12257
- if (isKeyframesRule(rule)) return;
12258
- if (isPseudoContentInitRule(rule)) {
12259
- if (!shouldPreserveContentInit) rule.remove();
12260
- return;
12261
- }
12262
- if (isMiniProgramElementContentInitRule(rule)) {
12263
- if (!shouldPreserveContentInit) {
12264
- rule.remove();
12265
- return;
12266
- }
12267
- rule.selector = MINI_PROGRAM_PSEUDO_CONTENT_SCOPE_SELECTOR;
12268
- return;
12269
- }
12270
- if (isCustomPropertyRule(rule) && isMiniProgramElementVariableScopeRule(rule)) {
12271
- rule.selector = MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR;
12272
- return;
12273
- }
12274
- if (isUnsupportedBrowserPreflightSelector(rule.selector)) {
12275
- rule.remove();
12276
- return;
12277
- }
12278
- if (isBrowserElementPreflightRule(rule)) {
12279
- rule.remove();
12280
- return;
12281
- }
12282
- if (isMiniProgramNativeElementRule(rule)) return;
12283
- if (isMiniProgramThemeVariableRule(rule)) {
12284
- moveTailwindV4GradientRuntimeDeclarations(rule);
12285
- if (!rule.parent) return;
12286
- rule.selector = DEFAULT_WEAPP_VARIABLE_SCOPE;
12287
- return;
12288
- }
12289
- if (hasClassSelector$1(rule.selector)) return;
12290
- if (!shouldPreserveContentInit) removeEmptyContentInitDeclarations(rule);
12291
- if (isMiniProgramPreflightRule(rule)) {
12292
- if (options.preservePreflight) return;
12293
- rule.remove();
12294
- return;
12295
- }
12296
- if (isCustomPropertyRule(rule)) {
12297
- moveTailwindV4GradientRuntimeDeclarations(rule);
12298
- if (!rule.parent) return;
12299
- rule.selector = DEFAULT_WEAPP_VARIABLE_SCOPE;
12300
- return;
12301
- }
12302
- rule.remove();
12303
- });
12304
- if (shouldPreserveContentInit) ensureMiniProgramElementContentInit(root);
12305
- root.walkAtRules((atRule) => {
12306
- if (!atRule.nodes || atRule.nodes.length === 0) atRule.remove();
12307
- });
12308
- return root.toString();
12309
- }
12310
- //#endregion
12311
- //#region src/compat/tailwindcss-rpx.ts
12312
- const LENGTH_VALUE_REGEXP = /^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?rpx$/i;
12313
- const RPX_DIMENSION_REGEXP = /^([+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)rpx$/i;
12314
- const DEFAULT_RPX_TO_REM_ROOT_VALUE = 32;
12315
- const DEFAULT_RPX_TO_REM_UNIT_PRECISION = 5;
12316
- function formatRpxToRemValue(value, precision) {
12317
- const fixed = Number(value.toFixed(precision));
12318
- return Object.is(fixed, -0) ? 0 : fixed;
12319
- }
12320
- function convertTailwindcssRpxValueToRem(value, options) {
12321
- if (!value.includes("rpx") && !value.includes("RPX")) return value;
12322
- let changed = false;
12323
- const rootValue = options?.rootValue ?? DEFAULT_RPX_TO_REM_ROOT_VALUE;
12324
- const unitPrecision = options?.unitPrecision ?? DEFAULT_RPX_TO_REM_UNIT_PRECISION;
12325
- const parsed = valueParser(value);
12326
- parsed.walk((node) => {
12327
- if (node.type !== "word") return;
12328
- const match = RPX_DIMENSION_REGEXP.exec(node.value);
12329
- if (!match) return;
12330
- node.value = `${formatRpxToRemValue(Number(match[1]) / rootValue, unitPrecision)}rem`;
12331
- changed = true;
12332
- });
12333
- return changed ? parsed.toString() : value;
12334
- }
12335
- function normalizeTailwindcssRpxDeclaration(decl, options) {
12336
- const majorVersion = options?.majorVersion;
12337
- const normalizedValue = decl.value.trim();
12338
- if (LENGTH_VALUE_REGEXP.test(normalizedValue) && (majorVersion === void 0 || majorVersion === 4)) {
12339
- const lowerProp = decl.prop.toLowerCase();
12340
- if (lowerProp === "color") {
12341
- decl.prop = "font-size";
12342
- return true;
12343
- }
12344
- if (lowerProp === "background-color") {
12345
- decl.prop = "background-size";
12346
- return true;
12347
- }
12348
- if (lowerProp === "outline-color") {
12349
- decl.prop = "outline-width";
12350
- return true;
12351
- }
12352
- if (lowerProp.startsWith("border") && lowerProp.endsWith("color")) {
12353
- decl.prop = `${decl.prop.slice(0, -5)}width`;
12354
- return true;
12355
- }
12356
- if (lowerProp === "--tw-ring-color") {
12357
- decl.prop = "--tw-ring-offset-width";
12358
- return true;
12359
- }
12360
- }
12361
- return false;
12362
- }
12363
- function normalizeTailwindcssRpxDeclarations(root, options) {
12364
- let changed = false;
12365
- root.walkDecls((decl) => {
12366
- changed = normalizeTailwindcssRpxDeclaration(decl, options) || changed;
12367
- });
12368
- return changed;
12369
- }
12370
- function convertTailwindcssRpxDeclarationToRem(decl, options) {
12371
- const value = convertTailwindcssRpxValueToRem(decl.value, options);
12372
- if (value === decl.value) return false;
12373
- decl.value = value;
12374
- return true;
12375
- }
12376
- function convertTailwindcssRpxDeclarationsToRem(root, options) {
12377
- let changed = false;
12378
- root.walkDecls((decl) => {
12379
- changed = convertTailwindcssRpxDeclarationToRem(decl, options) || changed;
12380
- });
12381
- return changed;
12382
- }
12383
- function normalizeTailwindcssWebRpxDeclarations(root, options) {
12384
- const normalized = normalizeTailwindcssRpxDeclarations(root, options);
12385
- const converted = convertTailwindcssRpxDeclarationsToRem(root, options);
12386
- return normalized || converted;
12387
- }
12388
- //#endregion
12389
12284
  //#region ../../node_modules/.pnpm/cssdb@8.9.0/node_modules/cssdb/cssdb.mjs
12390
12285
  var cssdb_default = [
12391
12286
  {
@@ -14654,7 +14549,7 @@ var cssdb_default = [
14654
14549
  }
14655
14550
  ];
14656
14551
  //#endregion
14657
- //#region ../../node_modules/.pnpm/baseline-browser-mapping@2.10.42/node_modules/baseline-browser-mapping/dist/index.cjs
14552
+ //#region ../../node_modules/.pnpm/baseline-browser-mapping@2.10.43/node_modules/baseline-browser-mapping/dist/index.cjs
14658
14553
  var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
14659
14554
  const s = {
14660
14555
  chrome: { releases: [
@@ -18278,7 +18173,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
18278
18173
  ],
18279
18174
  [
18280
18175
  "155",
18281
- "2026-09-15",
18176
+ "2026-09-01",
18282
18177
  "p",
18283
18178
  "g",
18284
18179
  "155"
@@ -19274,7 +19169,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
19274
19169
  ],
19275
19170
  [
19276
19171
  "155",
19277
- "2026-09-15",
19172
+ "2026-09-01",
19278
19173
  "p",
19279
19174
  "g",
19280
19175
  "155"
@@ -34541,7 +34436,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
34541
34436
  return g.suppressWarnings || ((s, a) => {
34542
34437
  if (n || "undefined" != typeof process && process.env && (process.env.BROWSERSLIST_IGNORE_OLD_DATA || process.env.BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA)) return;
34543
34438
  const r = /* @__PURE__ */ new Date();
34544
- r.setMonth(r.getMonth() - 2), s > r && (null != a ? a : 1783176985831) < r.getTime() && (console.warn("[baseline-browser-mapping] The data in this module is over two months old and you are targetting a recent feature cut off date of " + s.toISOString().slice(0, 10) + ". To ensure accurate Baseline data, please update to the latest version of this module using the package manager of your choice.You can suppress these warnings using the environment variables `BROWSERSLIST_IGNORE_OLD_DATA=true` or `BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA=true` or by passing `suppressWarnings: true` when you call `getCompatibleVersions()` or `getAllVersions()`."), n = !0);
34439
+ r.setMonth(r.getMonth() - 2), s > r && (null != a ? a : 1783780964428) < r.getTime() && (console.warn("[baseline-browser-mapping] The data in this module is over two months old and you are targetting a recent feature cut off date of " + s.toISOString().slice(0, 10) + ". To ensure accurate Baseline data, please update to the latest version of this module using the package manager of your choice.You can suppress these warnings using the environment variables `BROWSERSLIST_IGNORE_OLD_DATA=true` or `BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA=true` or by passing `suppressWarnings: true` when you call `getCompatibleVersions()` or `getAllVersions()`."), n = !0);
34545
34440
  })(o, g.overrideLastUpdated), !1 === g.includeDownstreamBrowsers ? t : [...t, ...y(t, g.listAllCompatibleVersions, g.includeKaiOS)];
34546
34441
  }
34547
34442
  exports._resetHasWarned = function() {
@@ -34648,7 +34543,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
34648
34543
  }, exports.getCompatibleVersions = O;
34649
34544
  }));
34650
34545
  //#endregion
34651
- //#region ../../node_modules/.pnpm/node-releases@2.0.50/node_modules/node-releases/data/processed/envs.json
34546
+ //#region ../../node_modules/.pnpm/node-releases@2.0.51/node_modules/node-releases/data/processed/envs.json
34652
34547
  var require_envs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34653
34548
  module.exports = [
34654
34549
  {
@@ -37610,6 +37505,14 @@ var require_envs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37610
37505
  "lts": false,
37611
37506
  "security": false,
37612
37507
  "v8": "14.6.202.34"
37508
+ },
37509
+ {
37510
+ "name": "nodejs",
37511
+ "version": "26.5.0",
37512
+ "date": "2026-07-08",
37513
+ "lts": false,
37514
+ "security": false,
37515
+ "v8": "14.6.202.34"
37613
37516
  }
37614
37517
  ];
37615
37518
  }));
@@ -42722,7 +42625,7 @@ var require_versions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42722
42625
  };
42723
42626
  }));
42724
42627
  //#endregion
42725
- //#region ../../node_modules/.pnpm/node-releases@2.0.50/node_modules/node-releases/data/release-schedule/release-schedule.json
42628
+ //#region ../../node_modules/.pnpm/node-releases@2.0.51/node_modules/node-releases/data/release-schedule/release-schedule.json
42726
42629
  var require_release_schedule = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42727
42630
  module.exports = {
42728
42631
  "v0.8": {
@@ -42886,7 +42789,7 @@ var require_release_schedule = /* @__PURE__ */ __commonJSMin(((exports, module)
42886
42789
  };
42887
42790
  }));
42888
42791
  //#endregion
42889
- //#region ../../node_modules/.pnpm/browserslist@4.28.5/node_modules/browserslist/error.js
42792
+ //#region ../../node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/error.js
42890
42793
  var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42891
42794
  function BrowserslistError(message) {
42892
42795
  this.name = "BrowserslistError";
@@ -44354,7 +44257,7 @@ var require_region = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44354
44257
  module.exports.default = unpackRegion;
44355
44258
  }));
44356
44259
  //#endregion
44357
- //#region ../../node_modules/.pnpm/browserslist@4.28.5/node_modules/browserslist/node.js
44260
+ //#region ../../node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/node.js
44358
44261
  var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44359
44262
  var feature = require_feature().default;
44360
44263
  var region = require_region().default;
@@ -44647,7 +44550,7 @@ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44647
44550
  };
44648
44551
  }));
44649
44552
  //#endregion
44650
- //#region ../../node_modules/.pnpm/browserslist@4.28.5/node_modules/browserslist/parse.js
44553
+ //#region ../../node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/parse.js
44651
44554
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44652
44555
  var AND_REGEXP = /^\s+and\s+(.*)/i;
44653
44556
  var OR_REGEXP = /^(?:,\s*|\s+or\s+)(.*)/i;
@@ -44713,7 +44616,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44713
44616
  };
44714
44617
  }));
44715
44618
  //#endregion
44716
- //#region ../../node_modules/.pnpm/@csstools+postcss-initial@3.0.0_postcss@8.5.16/node_modules/@csstools/postcss-initial/dist/index.mjs
44619
+ //#region ../../node_modules/.pnpm/@csstools+postcss-initial@3.0.0_postcss@8.5.17/node_modules/@csstools/postcss-initial/dist/index.mjs
44717
44620
  var import_browserslist = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
44718
44621
  var bbm = require_dist$1();
44719
44622
  var jsReleases = require_envs();
@@ -45503,10 +45406,7 @@ var import_browserslist = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
45503
45406
  var to = parseFloat(node.to);
45504
45407
  if (!e2c[fromToUse]) throw new BrowserslistError("Unknown version " + from + " of electron");
45505
45408
  if (!e2c[toToUse]) throw new BrowserslistError("Unknown version " + to + " of electron");
45506
- return Object.keys(e2c).filter(function(i) {
45507
- var parsed = parseFloat(i);
45508
- return parsed >= from && parsed <= to;
45509
- }).map(function(i) {
45409
+ return Object.keys(e2c).filter(semverFilterLoose(">=", node.from)).filter(semverFilterLoose("<=", node.to)).map(function(i) {
45510
45410
  return "chrome " + e2c[i];
45511
45411
  });
45512
45412
  }
@@ -46016,7 +45916,7 @@ const creator$52 = (a) => {
46016
45916
  };
46017
45917
  creator$52.postcss = !0;
46018
45918
  //#endregion
46019
- //#region ../../node_modules/.pnpm/@csstools+postcss-progressive-custom-properties@5.1.1_postcss@8.5.16/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs
45919
+ //#region ../../node_modules/.pnpm/@csstools+postcss-progressive-custom-properties@5.1.1_postcss@8.5.17/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs
46020
45920
  const r$7 = [
46021
45921
  "at",
46022
45922
  "bottom",
@@ -49773,7 +49673,7 @@ const creator$51 = () => ({
49773
49673
  });
49774
49674
  creator$51.postcss = !0;
49775
49675
  //#endregion
49776
- //#region ../../node_modules/.pnpm/@csstools+utilities@3.0.0_postcss@8.5.16/node_modules/@csstools/utilities/dist/index.mjs
49676
+ //#region ../../node_modules/.pnpm/@csstools+utilities@3.0.0_postcss@8.5.17/node_modules/@csstools/utilities/dist/index.mjs
49777
49677
  function hasFallback$1(e) {
49778
49678
  const t = e.parent;
49779
49679
  if (!t) return !1;
@@ -49793,7 +49693,7 @@ function hasSupportsAtRuleAncestor(e, t) {
49793
49693
  return !1;
49794
49694
  }
49795
49695
  //#endregion
49796
- //#region ../../node_modules/.pnpm/@csstools+postcss-alpha-function@2.0.7_postcss@8.5.16/node_modules/@csstools/postcss-alpha-function/dist/index.mjs
49696
+ //#region ../../node_modules/.pnpm/@csstools+postcss-alpha-function@2.0.7_postcss@8.5.17/node_modules/@csstools/postcss-alpha-function/dist/index.mjs
49797
49697
  const b$1 = /\balpha\(/i;
49798
49698
  const m$9 = /^alpha$/i;
49799
49699
  const w$3 = /* @__PURE__ */ new Set([
@@ -50020,7 +49920,7 @@ const postcssPlugin$16 = (o) => {
50020
49920
  };
50021
49921
  postcssPlugin$16.postcss = !0;
50022
49922
  //#endregion
50023
- //#region ../../node_modules/.pnpm/postcss-pseudo-class-any-link@11.0.0_postcss@8.5.16/node_modules/postcss-pseudo-class-any-link/dist/index.mjs
49923
+ //#region ../../node_modules/.pnpm/postcss-pseudo-class-any-link@11.0.0_postcss@8.5.17/node_modules/postcss-pseudo-class-any-link/dist/index.mjs
50024
49924
  const t$13 = (0, import_dist$1.default)().astSync(":link").nodes[0];
50025
49925
  const s$15 = (0, import_dist$1.default)().astSync(":visited").nodes[0];
50026
49926
  const n$10 = (0, import_dist$1.default)().astSync("area[href]").nodes[0];
@@ -50117,7 +50017,7 @@ const creator$50 = (e) => {
50117
50017
  };
50118
50018
  creator$50.postcss = !0;
50119
50019
  //#endregion
50120
- //#region ../../node_modules/.pnpm/css-blank-pseudo@8.0.1_postcss@8.5.16/node_modules/css-blank-pseudo/dist/index.mjs
50020
+ //#region ../../node_modules/.pnpm/css-blank-pseudo@8.0.1_postcss@8.5.17/node_modules/css-blank-pseudo/dist/index.mjs
50121
50021
  const s$14 = [
50122
50022
  " ",
50123
50023
  ">",
@@ -50353,7 +50253,7 @@ function selectorNodeContainsNothingOrOnlyUniversal$1(e) {
50353
50253
  return 0 === t.length || 1 === t.length && "universal" === t[0].type;
50354
50254
  }
50355
50255
  //#endregion
50356
- //#region ../../node_modules/.pnpm/@csstools+postcss-cascade-layers@6.0.0_postcss@8.5.16/node_modules/@csstools/postcss-cascade-layers/dist/index.mjs
50256
+ //#region ../../node_modules/.pnpm/@csstools+postcss-cascade-layers@6.0.0_postcss@8.5.17/node_modules/@csstools/postcss-cascade-layers/dist/index.mjs
50357
50257
  const t$11 = "csstools-invalid-layer";
50358
50258
  const a$5 = "csstools-layer-with-selector-rules";
50359
50259
  const s$13 = "6efdb677-bb05-44e5-840f-29d2175862fd";
@@ -50675,7 +50575,7 @@ const creator$48 = (a) => {
50675
50575
  };
50676
50576
  creator$48.postcss = !0;
50677
50577
  //#endregion
50678
- //#region ../../node_modules/.pnpm/postcss-attribute-case-insensitive@8.0.0_postcss@8.5.16/node_modules/postcss-attribute-case-insensitive/dist/index.mjs
50578
+ //#region ../../node_modules/.pnpm/postcss-attribute-case-insensitive@8.0.0_postcss@8.5.17/node_modules/postcss-attribute-case-insensitive/dist/index.mjs
50679
50579
  function nodeIsInsensitiveAttribute(e) {
50680
50580
  return "attribute" === e.type && (e.insensitive ?? !1);
50681
50581
  }
@@ -50749,7 +50649,7 @@ const creator$47 = (t) => {
50749
50649
  };
50750
50650
  creator$47.postcss = !0;
50751
50651
  //#endregion
50752
- //#region ../../node_modules/.pnpm/@csstools+postcss-color-function@5.0.6_postcss@8.5.16/node_modules/@csstools/postcss-color-function/dist/index.mjs
50652
+ //#region ../../node_modules/.pnpm/@csstools+postcss-color-function@5.0.6_postcss@8.5.17/node_modules/@csstools/postcss-color-function/dist/index.mjs
50753
50653
  var import_postcss_clamp = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
50754
50654
  let valueParser$1 = __require("postcss-value-parser");
50755
50655
  function parseValue(value) {
@@ -50856,7 +50756,7 @@ const postcssPlugin$15 = (o) => {
50856
50756
  };
50857
50757
  postcssPlugin$15.postcss = !0;
50858
50758
  //#endregion
50859
- //#region ../../node_modules/.pnpm/@csstools+postcss-color-function-display-p3-linear@2.0.6_postcss@8.5.16/node_modules/@csstools/postcss-color-function-display-p3-linear/dist/index.mjs
50759
+ //#region ../../node_modules/.pnpm/@csstools+postcss-color-function-display-p3-linear@2.0.6_postcss@8.5.17/node_modules/@csstools/postcss-color-function-display-p3-linear/dist/index.mjs
50860
50760
  const m$6 = /\bdisplay-p3-linear\b/i;
50861
50761
  const f$7 = /^color$/i;
50862
50762
  const basePlugin$14 = (s) => ({
@@ -50887,7 +50787,7 @@ const postcssPlugin$14 = (o) => {
50887
50787
  };
50888
50788
  postcssPlugin$14.postcss = !0;
50889
50789
  //#endregion
50890
- //#region ../../node_modules/.pnpm/postcss-color-functional-notation@8.0.6_postcss@8.5.16/node_modules/postcss-color-functional-notation/dist/index.mjs
50790
+ //#region ../../node_modules/.pnpm/postcss-color-functional-notation@8.0.6_postcss@8.5.17/node_modules/postcss-color-functional-notation/dist/index.mjs
50891
50791
  const m$5 = /^(?:rgb|hsl)a?$/i;
50892
50792
  const f$6 = /\b(?:rgb|hsl)a?\(/i;
50893
50793
  const basePlugin$13 = (s) => ({
@@ -50918,7 +50818,7 @@ const postcssPlugin$13 = (o) => {
50918
50818
  };
50919
50819
  postcssPlugin$13.postcss = !0;
50920
50820
  //#endregion
50921
- //#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-function@4.0.6_postcss@8.5.16/node_modules/@csstools/postcss-color-mix-function/dist/index.mjs
50821
+ //#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-function@4.0.6_postcss@8.5.17/node_modules/@csstools/postcss-color-mix-function/dist/index.mjs
50922
50822
  const f$5 = /\bcolor-mix\(/i;
50923
50823
  const g$6 = /^color-mix$/i;
50924
50824
  const basePlugin$12 = (s) => ({
@@ -50956,7 +50856,7 @@ const postcssPlugin$12 = (e) => {
50956
50856
  };
50957
50857
  postcssPlugin$12.postcss = !0;
50958
50858
  //#endregion
50959
- //#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-variadic-function-arguments@2.0.6_postcss@8.5.16/node_modules/@csstools/postcss-color-mix-variadic-function-arguments/dist/index.mjs
50859
+ //#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-variadic-function-arguments@2.0.6_postcss@8.5.17/node_modules/@csstools/postcss-color-mix-variadic-function-arguments/dist/index.mjs
50960
50860
  const f$4 = /\bcolor-mix\(/i;
50961
50861
  const g$5 = /^color-mix$/i;
50962
50862
  const basePlugin$11 = (s) => ({
@@ -50994,7 +50894,7 @@ const postcssPlugin$11 = (e) => {
50994
50894
  };
50995
50895
  postcssPlugin$11.postcss = !0;
50996
50896
  //#endregion
50997
- //#region ../../node_modules/.pnpm/@csstools+postcss-container-rule-prelude-list@1.0.1_postcss@8.5.16/node_modules/@csstools/postcss-container-rule-prelude-list/dist/index.mjs
50897
+ //#region ../../node_modules/.pnpm/@csstools+postcss-container-rule-prelude-list@1.0.1_postcss@8.5.17/node_modules/@csstools/postcss-container-rule-prelude-list/dist/index.mjs
50998
50898
  const t$10 = /^container$/i;
50999
50899
  const creator$46 = (o) => {
51000
50900
  const a = Object.assign({ preserve: !1 }, o);
@@ -51012,7 +50912,7 @@ const creator$46 = (o) => {
51012
50912
  };
51013
50913
  creator$46.postcss = !0;
51014
50914
  //#endregion
51015
- //#region ../../node_modules/.pnpm/@csstools+postcss-content-alt-text@3.0.2_postcss@8.5.16/node_modules/@csstools/postcss-content-alt-text/dist/index.mjs
50915
+ //#region ../../node_modules/.pnpm/@csstools+postcss-content-alt-text@3.0.2_postcss@8.5.17/node_modules/@csstools/postcss-content-alt-text/dist/index.mjs
51016
50916
  function transform$3(s, t) {
51017
50917
  const e = s[0];
51018
50918
  if (!e.length) return "";
@@ -51058,7 +50958,7 @@ const creator$45 = (t) => {
51058
50958
  };
51059
50959
  creator$45.postcss = !0;
51060
50960
  //#endregion
51061
- //#region ../../node_modules/.pnpm/@csstools+postcss-contrast-color-function@3.0.6_postcss@8.5.16/node_modules/@csstools/postcss-contrast-color-function/dist/index.mjs
50961
+ //#region ../../node_modules/.pnpm/@csstools+postcss-contrast-color-function@3.0.6_postcss@8.5.17/node_modules/@csstools/postcss-contrast-color-function/dist/index.mjs
51062
50962
  const u$6 = /\bcontrast-color\(/i;
51063
50963
  const m$4 = /^contrast-color$/i;
51064
50964
  const basePlugin$9 = (s) => ({
@@ -52994,7 +52894,7 @@ var b;
52994
52894
  e.All = "all", e.Print = "print", e.Screen = "screen", e.Tty = "tty", e.Tv = "tv", e.Projection = "projection", e.Handheld = "handheld", e.Braille = "braille", e.Embossed = "embossed", e.Aural = "aural", e.Speech = "speech";
52995
52895
  })(b || (b = {}));
52996
52896
  //#endregion
52997
- //#region ../../node_modules/.pnpm/postcss-custom-media@12.0.1_postcss@8.5.16/node_modules/postcss-custom-media/dist/index.mjs
52897
+ //#region ../../node_modules/.pnpm/postcss-custom-media@12.0.1_postcss@8.5.17/node_modules/postcss-custom-media/dist/index.mjs
52998
52898
  const C$2 = parse$1("csstools-implicit-layer")[0];
52999
52899
  function collectCascadeLayerOrder$2(t) {
53000
52900
  const n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = [];
@@ -53422,7 +53322,7 @@ const creator$44 = (e) => {
53422
53322
  };
53423
53323
  creator$44.postcss = !0;
53424
53324
  //#endregion
53425
- //#region ../../node_modules/.pnpm/postcss-custom-properties@15.0.1_postcss@8.5.16/node_modules/postcss-custom-properties/dist/index.mjs
53325
+ //#region ../../node_modules/.pnpm/postcss-custom-properties@15.0.1_postcss@8.5.17/node_modules/postcss-custom-properties/dist/index.mjs
53426
53326
  const o$20 = parse$1("csstools-implicit-layer")[0];
53427
53327
  function collectCascadeLayerOrder$1(r) {
53428
53328
  const n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), a = [];
@@ -53741,7 +53641,7 @@ const creator$43 = (e) => {
53741
53641
  };
53742
53642
  creator$43.postcss = !0;
53743
53643
  //#endregion
53744
- //#region ../../node_modules/.pnpm/postcss-custom-selectors@9.0.1_postcss@8.5.16/node_modules/postcss-custom-selectors/dist/index.mjs
53644
+ //#region ../../node_modules/.pnpm/postcss-custom-selectors@9.0.1_postcss@8.5.17/node_modules/postcss-custom-selectors/dist/index.mjs
53745
53645
  const s$11 = parse$1("csstools-implicit-layer")[0];
53746
53646
  function collectCascadeLayerOrder(e) {
53747
53647
  const o = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), a = [];
@@ -53877,7 +53777,7 @@ const creator$42 = (e) => {
53877
53777
  };
53878
53778
  creator$42.postcss = !0;
53879
53779
  //#endregion
53880
- //#region ../../node_modules/.pnpm/postcss-dir-pseudo-class@10.0.0_postcss@8.5.16/node_modules/postcss-dir-pseudo-class/dist/index.mjs
53780
+ //#region ../../node_modules/.pnpm/postcss-dir-pseudo-class@10.0.0_postcss@8.5.17/node_modules/postcss-dir-pseudo-class/dist/index.mjs
53881
53781
  const creator$41 = (t) => {
53882
53782
  const r = Object.assign({
53883
53783
  dir: null,
@@ -53948,7 +53848,7 @@ const creator$41 = (t) => {
53948
53848
  };
53949
53849
  creator$41.postcss = !0;
53950
53850
  //#endregion
53951
- //#region ../../node_modules/.pnpm/@csstools+postcss-normalize-display-values@5.0.1_postcss@8.5.16/node_modules/@csstools/postcss-normalize-display-values/dist/index.mjs
53851
+ //#region ../../node_modules/.pnpm/@csstools+postcss-normalize-display-values@5.0.1_postcss@8.5.17/node_modules/@csstools/postcss-normalize-display-values/dist/index.mjs
53952
53852
  var l$5 = /* @__PURE__ */ new Map([
53953
53853
  ["flow", "block"],
53954
53854
  ["block,flow", "block"],
@@ -54018,7 +53918,7 @@ const creator$40 = (i) => {
54018
53918
  };
54019
53919
  creator$40.postcss = !0;
54020
53920
  //#endregion
54021
- //#region ../../node_modules/.pnpm/postcss-double-position-gradients@7.0.2_postcss@8.5.16/node_modules/postcss-double-position-gradients/dist/index.mjs
53921
+ //#region ../../node_modules/.pnpm/postcss-double-position-gradients@7.0.2_postcss@8.5.17/node_modules/postcss-double-position-gradients/dist/index.mjs
54022
53922
  const o$18 = /(?:repeating-)?(?:conic|linear|radial)-gradient\(/i;
54023
53923
  const i$5 = /^(?:repeating-)?(?:conic|linear|radial)-gradient$/i;
54024
53924
  const n$7 = [
@@ -54099,7 +53999,7 @@ const postcssPlugin$9 = (t) => {
54099
53999
  };
54100
54000
  postcssPlugin$9.postcss = !0;
54101
54001
  //#endregion
54102
- //#region ../../node_modules/.pnpm/@csstools+postcss-exponential-functions@3.0.3_postcss@8.5.16/node_modules/@csstools/postcss-exponential-functions/dist/index.mjs
54002
+ //#region ../../node_modules/.pnpm/@csstools+postcss-exponential-functions@3.0.3_postcss@8.5.17/node_modules/@csstools/postcss-exponential-functions/dist/index.mjs
54103
54003
  const s$10 = /(?<![-\w])(?:exp|hypot|log|pow|sqrt)\(/i;
54104
54004
  const creator$39 = (o) => {
54105
54005
  const t = Object.assign({ preserve: !1 }, o);
@@ -54114,7 +54014,7 @@ const creator$39 = (o) => {
54114
54014
  };
54115
54015
  creator$39.postcss = !0;
54116
54016
  //#endregion
54117
- //#region ../../node_modules/.pnpm/@csstools+postcss-logical-float-and-clear@4.0.0_postcss@8.5.16/node_modules/@csstools/postcss-logical-float-and-clear/dist/index.mjs
54017
+ //#region ../../node_modules/.pnpm/@csstools+postcss-logical-float-and-clear@4.0.0_postcss@8.5.17/node_modules/@csstools/postcss-logical-float-and-clear/dist/index.mjs
54118
54018
  const t$8 = "inline-start";
54119
54019
  const o$17 = "inline-end";
54120
54020
  var e$17;
@@ -54160,7 +54060,7 @@ const creator$38 = (n) => {
54160
54060
  };
54161
54061
  creator$38.postcss = !0;
54162
54062
  //#endregion
54163
- //#region ../../node_modules/.pnpm/postcss-focus-visible@11.0.0_postcss@8.5.16/node_modules/postcss-focus-visible/dist/index.mjs
54063
+ //#region ../../node_modules/.pnpm/postcss-focus-visible@11.0.0_postcss@8.5.17/node_modules/postcss-focus-visible/dist/index.mjs
54164
54064
  const s$9 = "js-focus-visible";
54165
54065
  const o$16 = ":focus-visible";
54166
54066
  const creator$37 = (t) => {
@@ -54216,7 +54116,7 @@ const creator$37 = (t) => {
54216
54116
  };
54217
54117
  creator$37.postcss = !0;
54218
54118
  //#endregion
54219
- //#region ../../node_modules/.pnpm/postcss-focus-within@10.0.0_postcss@8.5.16/node_modules/postcss-focus-within/dist/index.mjs
54119
+ //#region ../../node_modules/.pnpm/postcss-focus-within@10.0.0_postcss@8.5.17/node_modules/postcss-focus-within/dist/index.mjs
54220
54120
  const s$8 = [
54221
54121
  " ",
54222
54122
  ">",
@@ -54293,7 +54193,7 @@ const creator$36 = (s) => {
54293
54193
  };
54294
54194
  creator$36.postcss = !0;
54295
54195
  //#endregion
54296
- //#region ../../node_modules/.pnpm/@csstools+postcss-font-format-keywords@5.0.0_postcss@8.5.16/node_modules/@csstools/postcss-font-format-keywords/dist/index.mjs
54196
+ //#region ../../node_modules/.pnpm/@csstools+postcss-font-format-keywords@5.0.0_postcss@8.5.17/node_modules/@csstools/postcss-font-format-keywords/dist/index.mjs
54297
54197
  const t$6 = [
54298
54198
  "woff",
54299
54199
  "truetype",
@@ -54329,7 +54229,7 @@ const creator$35 = (r) => {
54329
54229
  };
54330
54230
  creator$35.postcss = !0;
54331
54231
  //#endregion
54332
- //#region ../../node_modules/.pnpm/@csstools+postcss-font-width-property@1.0.0_postcss@8.5.16/node_modules/@csstools/postcss-font-width-property/dist/index.mjs
54232
+ //#region ../../node_modules/.pnpm/@csstools+postcss-font-width-property@1.0.0_postcss@8.5.17/node_modules/@csstools/postcss-font-width-property/dist/index.mjs
54333
54233
  var import_postcss_font_variant = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
54334
54234
  /**
54335
54235
  * font variant convertion map
@@ -54443,7 +54343,7 @@ function hasFallback(t) {
54443
54343
  }
54444
54344
  creator$34.postcss = !0;
54445
54345
  //#endregion
54446
- //#region ../../node_modules/.pnpm/@csstools+postcss-gamut-mapping@3.0.6_postcss@8.5.16/node_modules/@csstools/postcss-gamut-mapping/dist/index.mjs
54346
+ //#region ../../node_modules/.pnpm/@csstools+postcss-gamut-mapping@3.0.6_postcss@8.5.17/node_modules/@csstools/postcss-gamut-mapping/dist/index.mjs
54447
54347
  const p = /\bcolor-gamut\b/i;
54448
54348
  function hasConditionalAncestor(e) {
54449
54349
  let o = e.parent;
@@ -54540,7 +54440,7 @@ const creator$33 = () => ({
54540
54440
  });
54541
54441
  creator$33.postcss = !0;
54542
54442
  //#endregion
54543
- //#region ../../node_modules/.pnpm/postcss-gap-properties@7.0.0_postcss@8.5.16/node_modules/postcss-gap-properties/dist/index.mjs
54443
+ //#region ../../node_modules/.pnpm/postcss-gap-properties@7.0.0_postcss@8.5.17/node_modules/postcss-gap-properties/dist/index.mjs
54544
54444
  const e$13 = [
54545
54445
  "column-gap",
54546
54446
  "gap",
@@ -54560,7 +54460,7 @@ const creator$32 = (o) => {
54560
54460
  };
54561
54461
  creator$32.postcss = !0;
54562
54462
  //#endregion
54563
- //#region ../../node_modules/.pnpm/@csstools+postcss-gradients-interpolation-method@6.0.6_postcss@8.5.16/node_modules/@csstools/postcss-gradients-interpolation-method/dist/index.mjs
54463
+ //#region ../../node_modules/.pnpm/@csstools+postcss-gradients-interpolation-method@6.0.6_postcss@8.5.17/node_modules/@csstools/postcss-gradients-interpolation-method/dist/index.mjs
54564
54464
  const x = /(?:repeating-)?(?:linear|radial|conic)-gradient\(/i;
54565
54465
  const W = /\bin\b/i;
54566
54466
  const P$1 = { test: (o) => x.test(o) && W.test(o) };
@@ -54855,7 +54755,7 @@ const postcssPlugin$8 = (e) => {
54855
54755
  };
54856
54756
  postcssPlugin$8.postcss = !0;
54857
54757
  //#endregion
54858
- //#region ../../node_modules/.pnpm/css-has-pseudo@8.0.0_postcss@8.5.16/node_modules/css-has-pseudo/dist/index.mjs
54758
+ //#region ../../node_modules/.pnpm/css-has-pseudo@8.0.0_postcss@8.5.17/node_modules/css-has-pseudo/dist/index.mjs
54859
54759
  function encodeCSS(e) {
54860
54760
  if ("" === e) return "";
54861
54761
  let t, s = "";
@@ -54966,7 +54866,7 @@ function isWithinSupportCheck(e) {
54966
54866
  }
54967
54867
  creator$31.postcss = !0;
54968
54868
  //#endregion
54969
- //#region ../../node_modules/.pnpm/postcss-color-hex-alpha@11.0.0_postcss@8.5.16/node_modules/postcss-color-hex-alpha/dist/index.mjs
54869
+ //#region ../../node_modules/.pnpm/postcss-color-hex-alpha@11.0.0_postcss@8.5.17/node_modules/postcss-color-hex-alpha/dist/index.mjs
54970
54870
  const creator$30 = (a) => {
54971
54871
  const o = Object.assign({ preserve: !1 }, a);
54972
54872
  return {
@@ -54999,7 +54899,7 @@ function hexa2rgba(e) {
54999
54899
  e.value = `rgba(${r},${l},${n},${c})`;
55000
54900
  }
55001
54901
  //#endregion
55002
- //#region ../../node_modules/.pnpm/@csstools+postcss-hwb-function@5.0.6_postcss@8.5.16/node_modules/@csstools/postcss-hwb-function/dist/index.mjs
54902
+ //#region ../../node_modules/.pnpm/@csstools+postcss-hwb-function@5.0.6_postcss@8.5.17/node_modules/@csstools/postcss-hwb-function/dist/index.mjs
55003
54903
  const u$3 = /\bhwb\(/i;
55004
54904
  const m$2 = /^hwb$/i;
55005
54905
  const basePlugin$6 = (s) => ({
@@ -55030,7 +54930,7 @@ const postcssPlugin$7 = (o) => {
55030
54930
  };
55031
54931
  postcssPlugin$7.postcss = !0;
55032
54932
  //#endregion
55033
- //#region ../../node_modules/.pnpm/@csstools+postcss-ic-unit@5.0.2_postcss@8.5.16/node_modules/@csstools/postcss-ic-unit/dist/index.mjs
54933
+ //#region ../../node_modules/.pnpm/@csstools+postcss-ic-unit@5.0.2_postcss@8.5.17/node_modules/@csstools/postcss-ic-unit/dist/index.mjs
55034
54934
  const o$13 = /ic\b/i;
55035
54935
  const i$4 = /\(font-size: \d+ic\)/i;
55036
54936
  const basePlugin$5 = (s) => ({
@@ -55062,7 +54962,7 @@ const postcssPlugin$6 = (e) => {
55062
54962
  };
55063
54963
  postcssPlugin$6.postcss = !0;
55064
54964
  //#endregion
55065
- //#region ../../node_modules/.pnpm/@csstools+postcss-image-function@1.0.1_postcss@8.5.16/node_modules/@csstools/postcss-image-function/dist/index.mjs
54965
+ //#region ../../node_modules/.pnpm/@csstools+postcss-image-function@1.0.1_postcss@8.5.17/node_modules/@csstools/postcss-image-function/dist/index.mjs
55066
54966
  const u$2 = /\bimage\(/i;
55067
54967
  const g$3 = /^image$/i;
55068
54968
  const basePlugin$4 = (e) => ({
@@ -55107,7 +55007,7 @@ const postcssPlugin$5 = (s) => {
55107
55007
  };
55108
55008
  postcssPlugin$5.postcss = !0;
55109
55009
  //#endregion
55110
- //#region ../../node_modules/.pnpm/postcss-image-set-function@8.0.0_postcss@8.5.16/node_modules/postcss-image-set-function/dist/index.mjs
55010
+ //#region ../../node_modules/.pnpm/postcss-image-set-function@8.0.0_postcss@8.5.17/node_modules/postcss-image-set-function/dist/index.mjs
55111
55011
  function isComma$1(e) {
55112
55012
  return !!e && "div" === e.type && "," === e.value;
55113
55013
  }
@@ -58293,7 +58193,7 @@ function selectorNodeContainsNothingOrOnlyUniversal(e) {
58293
58193
  return 0 === t.length || 1 === t.length && "universal" === t[0].type;
58294
58194
  }
58295
58195
  //#endregion
58296
- //#region ../../node_modules/.pnpm/@csstools+postcss-is-pseudo-class@6.0.0_postcss@8.5.16/node_modules/@csstools/postcss-is-pseudo-class/dist/index.mjs
58196
+ //#region ../../node_modules/.pnpm/@csstools+postcss-is-pseudo-class@6.0.0_postcss@8.5.17/node_modules/@csstools/postcss-is-pseudo-class/dist/index.mjs
58297
58197
  function alwaysValidSelector(s) {
58298
58198
  const o = (0, import_dist.default)().astSync(s);
58299
58199
  let n = !0;
@@ -58563,7 +58463,7 @@ const creator$28 = (e) => {
58563
58463
  };
58564
58464
  creator$28.postcss = !0;
58565
58465
  //#endregion
58566
- //#region ../../node_modules/.pnpm/postcss-lab-function@8.0.6_postcss@8.5.16/node_modules/postcss-lab-function/dist/index.mjs
58466
+ //#region ../../node_modules/.pnpm/postcss-lab-function@8.0.6_postcss@8.5.17/node_modules/postcss-lab-function/dist/index.mjs
58567
58467
  const g$2 = /\b(?:lab|lch)\(/i;
58568
58468
  const f$2 = /^(?:lab|lch)$/i;
58569
58469
  const basePlugin$3 = (s) => ({
@@ -58601,7 +58501,7 @@ const postcssPlugin$4 = (e) => {
58601
58501
  };
58602
58502
  postcssPlugin$4.postcss = !0;
58603
58503
  //#endregion
58604
- //#region ../../node_modules/.pnpm/@csstools+postcss-light-dark-function@3.0.2_postcss@8.5.16/node_modules/@csstools/postcss-light-dark-function/dist/index.mjs
58504
+ //#region ../../node_modules/.pnpm/@csstools+postcss-light-dark-function@3.0.2_postcss@8.5.17/node_modules/@csstools/postcss-light-dark-function/dist/index.mjs
58605
58505
  const k$1 = "--csstools-color-scheme--light";
58606
58506
  const D = "initial";
58607
58507
  function toggleNameGenerator(e) {
@@ -58802,7 +58702,7 @@ const postcssPlugin$3 = (r) => {
58802
58702
  };
58803
58703
  postcssPlugin$3.postcss = !0;
58804
58704
  //#endregion
58805
- //#region ../../node_modules/.pnpm/@csstools+postcss-logical-overflow@3.0.0_postcss@8.5.16/node_modules/@csstools/postcss-logical-overflow/dist/index.mjs
58705
+ //#region ../../node_modules/.pnpm/@csstools+postcss-logical-overflow@3.0.0_postcss@8.5.17/node_modules/@csstools/postcss-logical-overflow/dist/index.mjs
58806
58706
  var o$10;
58807
58707
  function transformAxes$1(o, t) {
58808
58708
  const e = t ? "-x" : "-y", i = t ? "-y" : "-x", n = o.prop.toLowerCase().replace("-inline", e).replace("-block", i), s = o.value;
@@ -58834,7 +58734,7 @@ const creator$27 = (t) => {
58834
58734
  };
58835
58735
  creator$27.postcss = !0;
58836
58736
  //#endregion
58837
- //#region ../../node_modules/.pnpm/@csstools+postcss-logical-overscroll-behavior@3.0.0_postcss@8.5.16/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.mjs
58737
+ //#region ../../node_modules/.pnpm/@csstools+postcss-logical-overscroll-behavior@3.0.0_postcss@8.5.17/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.mjs
58838
58738
  var o$9;
58839
58739
  function transformAxes(o, t) {
58840
58740
  const e = t ? "-x" : "-y", i = t ? "-y" : "-x", r = o.prop.toLowerCase().replace("-inline", e).replace("-block", i), s = o.value;
@@ -58866,7 +58766,7 @@ const creator$26 = (t) => {
58866
58766
  };
58867
58767
  creator$26.postcss = !0;
58868
58768
  //#endregion
58869
- //#region ../../node_modules/.pnpm/postcss-logical@9.0.0_postcss@8.5.16/node_modules/postcss-logical/dist/index.mjs
58769
+ //#region ../../node_modules/.pnpm/postcss-logical@9.0.0_postcss@8.5.17/node_modules/postcss-logical/dist/index.mjs
58870
58770
  var e$9;
58871
58771
  var n$2;
58872
58772
  (function(r) {
@@ -59229,7 +59129,7 @@ const creator$25 = (r) => {
59229
59129
  };
59230
59130
  creator$25.postcss = !0;
59231
59131
  //#endregion
59232
- //#region ../../node_modules/.pnpm/@csstools+postcss-logical-resize@4.0.0_postcss@8.5.16/node_modules/@csstools/postcss-logical-resize/dist/index.mjs
59132
+ //#region ../../node_modules/.pnpm/@csstools+postcss-logical-resize@4.0.0_postcss@8.5.17/node_modules/@csstools/postcss-logical-resize/dist/index.mjs
59233
59133
  var t$3;
59234
59134
  var e$8;
59235
59135
  var i$1;
@@ -59304,7 +59204,7 @@ const creator$24 = (o) => {
59304
59204
  };
59305
59205
  creator$24.postcss = !0;
59306
59206
  //#endregion
59307
- //#region ../../node_modules/.pnpm/@csstools+postcss-logical-viewport-units@4.0.0_postcss@8.5.16/node_modules/@csstools/postcss-logical-viewport-units/dist/index.mjs
59207
+ //#region ../../node_modules/.pnpm/@csstools+postcss-logical-viewport-units@4.0.0_postcss@8.5.17/node_modules/@csstools/postcss-logical-viewport-units/dist/index.mjs
59308
59208
  var s$6;
59309
59209
  function transform$1(t, o) {
59310
59210
  const s = tokenizer({ css: t }), c = [];
@@ -59376,7 +59276,7 @@ const creator$23 = (e) => {
59376
59276
  };
59377
59277
  creator$23.postcss = !0;
59378
59278
  //#endregion
59379
- //#region ../../node_modules/.pnpm/@csstools+postcss-media-queries-aspect-ratio-number-values@4.0.0_postcss@8.5.16/node_modules/@csstools/postcss-media-queries-aspect-ratio-number-values/dist/index.mjs
59279
+ //#region ../../node_modules/.pnpm/@csstools+postcss-media-queries-aspect-ratio-number-values@4.0.0_postcss@8.5.17/node_modules/@csstools/postcss-media-queries-aspect-ratio-number-values/dist/index.mjs
59380
59280
  const w = 1e5;
59381
59281
  const h$1 = 2147483647;
59382
59282
  function transformMediaFeatureValue(t) {
@@ -59668,7 +59568,7 @@ const creator$22 = (e) => {
59668
59568
  };
59669
59569
  creator$22.postcss = !0;
59670
59570
  //#endregion
59671
- //#region ../../node_modules/.pnpm/@csstools+postcss-media-minmax@3.0.3_postcss@8.5.16/node_modules/@csstools/postcss-media-minmax/dist/index.mjs
59571
+ //#region ../../node_modules/.pnpm/@csstools+postcss-media-minmax@3.0.3_postcss@8.5.17/node_modules/@csstools/postcss-media-minmax/dist/index.mjs
59672
59572
  const C = {
59673
59573
  width: "px",
59674
59574
  height: "px",
@@ -60054,7 +59954,7 @@ const creator$21 = () => ({
60054
59954
  });
60055
59955
  creator$21.postcss = !0;
60056
59956
  //#endregion
60057
- //#region ../../node_modules/.pnpm/@csstools+postcss-mixins@1.0.0_postcss@8.5.16/node_modules/@csstools/postcss-mixins/dist/index.mjs
59957
+ //#region ../../node_modules/.pnpm/@csstools+postcss-mixins@1.0.0_postcss@8.5.17/node_modules/@csstools/postcss-mixins/dist/index.mjs
60058
59958
  const o$7 = /^apply$/i;
60059
59959
  function processableApplyRule(o) {
60060
59960
  if (!o.params || !o.params.includes("--")) return !1;
@@ -60112,7 +60012,7 @@ const creator$20 = (e) => {
60112
60012
  };
60113
60013
  creator$20.postcss = !0;
60114
60014
  //#endregion
60115
- //#region ../../node_modules/.pnpm/@csstools+postcss-nested-calc@5.0.0_postcss@8.5.16/node_modules/@csstools/postcss-nested-calc/dist/index.mjs
60015
+ //#region ../../node_modules/.pnpm/@csstools+postcss-nested-calc@5.0.0_postcss@8.5.17/node_modules/@csstools/postcss-nested-calc/dist/index.mjs
60116
60016
  const r$4 = /calc\(/gi;
60117
60017
  const creator$19 = (s) => {
60118
60018
  const o = Object.assign({ preserve: !0 }, s);
@@ -60244,7 +60144,7 @@ function isCompoundSelector$1(o) {
60244
60144
  return 1 === o.length && !o[0].nodes.some((o) => "combinator" === o.type || import_dist$1.default.isPseudoElement(o));
60245
60145
  }
60246
60146
  //#endregion
60247
- //#region ../../node_modules/.pnpm/postcss-nesting@14.0.0_postcss@8.5.16/node_modules/postcss-nesting/dist/index.mjs
60147
+ //#region ../../node_modules/.pnpm/postcss-nesting@14.0.0_postcss@8.5.17/node_modules/postcss-nesting/dist/index.mjs
60248
60148
  const r$3 = import_dist$1.default.pseudo({ value: ":is" });
60249
60149
  function sortCompoundSelectorsInsideComplexSelector(t) {
60250
60150
  if (!t || !t.nodes) return;
@@ -60619,7 +60519,7 @@ const creator$18 = (e) => {
60619
60519
  };
60620
60520
  creator$18.postcss = !0;
60621
60521
  //#endregion
60622
- //#region ../../node_modules/.pnpm/postcss-selector-not@9.0.0_postcss@8.5.16/node_modules/postcss-selector-not/dist/index.mjs
60522
+ //#region ../../node_modules/.pnpm/postcss-selector-not@9.0.0_postcss@8.5.17/node_modules/postcss-selector-not/dist/index.mjs
60623
60523
  function cleanupWhitespace(e) {
60624
60524
  e.spaces && (e.spaces.after = "", e.spaces.before = ""), e.nodes && e.nodes.length > 0 && (e.nodes[0] && e.nodes[0].spaces && (e.nodes[0].spaces.before = ""), e.nodes[e.nodes.length - 1] && e.nodes[e.nodes.length - 1].spaces && (e.nodes[e.nodes.length - 1].spaces.after = ""));
60625
60525
  }
@@ -60650,7 +60550,7 @@ const creator$17 = () => ({
60650
60550
  });
60651
60551
  creator$17.postcss = !0;
60652
60552
  //#endregion
60653
- //#region ../../node_modules/.pnpm/@csstools+postcss-oklab-function@5.0.6_postcss@8.5.16/node_modules/@csstools/postcss-oklab-function/dist/index.mjs
60553
+ //#region ../../node_modules/.pnpm/@csstools+postcss-oklab-function@5.0.6_postcss@8.5.17/node_modules/@csstools/postcss-oklab-function/dist/index.mjs
60654
60554
  const g$1 = /\b(?:oklab|oklch)\(/i;
60655
60555
  const f$1 = /^(?:oklab|oklch)$/i;
60656
60556
  const basePlugin$1 = (s) => ({
@@ -60688,7 +60588,7 @@ const postcssPlugin$2 = (e) => {
60688
60588
  };
60689
60589
  postcssPlugin$2.postcss = !0;
60690
60590
  //#endregion
60691
- //#region ../../node_modules/.pnpm/postcss-overflow-shorthand@7.0.0_postcss@8.5.16/node_modules/postcss-overflow-shorthand/dist/index.mjs
60591
+ //#region ../../node_modules/.pnpm/postcss-overflow-shorthand@7.0.0_postcss@8.5.17/node_modules/postcss-overflow-shorthand/dist/index.mjs
60692
60592
  var import_postcss_opacity_percentage = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
60693
60593
  const doNothingValues = /* @__PURE__ */ new Set([
60694
60594
  "inherit",
@@ -60737,7 +60637,7 @@ const creator$16 = (o) => {
60737
60637
  };
60738
60638
  creator$16.postcss = !0;
60739
60639
  //#endregion
60740
- //#region ../../node_modules/.pnpm/postcss-place@11.0.0_postcss@8.5.16/node_modules/postcss-place/dist/index.mjs
60640
+ //#region ../../node_modules/.pnpm/postcss-place@11.0.0_postcss@8.5.17/node_modules/postcss-place/dist/index.mjs
60741
60641
  var import_postcss_replace_overflow_wrap = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
60742
60642
  module.exports = function(opts) {
60743
60643
  opts = opts || {};
@@ -60783,7 +60683,7 @@ const creator$15 = (e) => {
60783
60683
  };
60784
60684
  creator$15.postcss = !0;
60785
60685
  //#endregion
60786
- //#region ../../node_modules/.pnpm/@csstools+postcss-position-area-property@2.0.0_postcss@8.5.16/node_modules/@csstools/postcss-position-area-property/dist/index.mjs
60686
+ //#region ../../node_modules/.pnpm/@csstools+postcss-position-area-property@2.0.0_postcss@8.5.17/node_modules/@csstools/postcss-position-area-property/dist/index.mjs
60787
60687
  const o$4 = /^position-area$/i;
60788
60688
  const creator$14 = () => ({
60789
60689
  postcssPlugin: "postcss-position-area-property",
@@ -60796,7 +60696,7 @@ const creator$14 = () => ({
60796
60696
  });
60797
60697
  creator$14.postcss = !0;
60798
60698
  //#endregion
60799
- //#region ../../node_modules/.pnpm/css-prefers-color-scheme@11.0.0_postcss@8.5.16/node_modules/css-prefers-color-scheme/dist/index.mjs
60699
+ //#region ../../node_modules/.pnpm/css-prefers-color-scheme@11.0.0_postcss@8.5.17/node_modules/css-prefers-color-scheme/dist/index.mjs
60800
60700
  const e$4 = /\(\s*prefers-color-scheme\s*:\s*(dark|light)\s*\)/gi;
60801
60701
  const s$4 = "(color: 48842621)";
60802
60702
  const r$2 = "(color: 70318723)";
@@ -60820,7 +60720,7 @@ const creator$13 = (o) => {
60820
60720
  };
60821
60721
  creator$13.postcss = !0;
60822
60722
  //#endregion
60823
- //#region ../../node_modules/.pnpm/@csstools+postcss-property-rule-prelude-list@2.0.0_postcss@8.5.16/node_modules/@csstools/postcss-property-rule-prelude-list/dist/index.mjs
60723
+ //#region ../../node_modules/.pnpm/@csstools+postcss-property-rule-prelude-list@2.0.0_postcss@8.5.17/node_modules/@csstools/postcss-property-rule-prelude-list/dist/index.mjs
60824
60724
  const o$3 = /^property$/i;
60825
60725
  const creator$12 = () => ({
60826
60726
  postcssPlugin: "postcss-property-rule-prelude-list",
@@ -60835,7 +60735,7 @@ const creator$12 = () => ({
60835
60735
  });
60836
60736
  creator$12.postcss = !0;
60837
60737
  //#endregion
60838
- //#region ../../node_modules/.pnpm/@csstools+postcss-random-function@3.0.3_postcss@8.5.16/node_modules/@csstools/postcss-random-function/dist/index.mjs
60738
+ //#region ../../node_modules/.pnpm/@csstools+postcss-random-function@3.0.3_postcss@8.5.17/node_modules/@csstools/postcss-random-function/dist/index.mjs
60839
60739
  const o$2 = String.fromCodePoint(0);
60840
60740
  function randomCacheKeyFromPostcssDeclaration(e) {
60841
60741
  let r = "", t = e.parent;
@@ -60873,7 +60773,7 @@ const creator$11 = (o) => {
60873
60773
  };
60874
60774
  creator$11.postcss = !0;
60875
60775
  //#endregion
60876
- //#region ../../node_modules/.pnpm/postcss-color-rebeccapurple@11.0.0_postcss@8.5.16/node_modules/postcss-color-rebeccapurple/dist/index.mjs
60776
+ //#region ../../node_modules/.pnpm/postcss-color-rebeccapurple@11.0.0_postcss@8.5.17/node_modules/postcss-color-rebeccapurple/dist/index.mjs
60877
60777
  const s$3 = /rebeccapurple/i;
60878
60778
  const t$1 = /^rebeccapurple$/i;
60879
60779
  const creator$10 = (o) => {
@@ -60894,7 +60794,7 @@ const creator$10 = (o) => {
60894
60794
  };
60895
60795
  creator$10.postcss = !0;
60896
60796
  //#endregion
60897
- //#region ../../node_modules/.pnpm/@csstools+postcss-relative-color-syntax@4.0.6_postcss@8.5.16/node_modules/@csstools/postcss-relative-color-syntax/dist/index.mjs
60797
+ //#region ../../node_modules/.pnpm/@csstools+postcss-relative-color-syntax@4.0.6_postcss@8.5.17/node_modules/@csstools/postcss-relative-color-syntax/dist/index.mjs
60898
60798
  const g = /\b(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)\(/i;
60899
60799
  const h = /\b(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)\(\s*from/i;
60900
60800
  const m$1 = /^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)$/i;
@@ -60934,7 +60834,7 @@ const postcssPlugin$1 = (e) => {
60934
60834
  };
60935
60835
  postcssPlugin$1.postcss = !0;
60936
60836
  //#endregion
60937
- //#region ../../node_modules/.pnpm/@csstools+postcss-scope-pseudo-class@5.0.0_postcss@8.5.16/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.mjs
60837
+ //#region ../../node_modules/.pnpm/@csstools+postcss-scope-pseudo-class@5.0.0_postcss@8.5.17/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.mjs
60938
60838
  const creator$9 = (s) => {
60939
60839
  const r = Object.assign({ preserve: !1 }, s);
60940
60840
  return {
@@ -60972,7 +60872,7 @@ const creator$9 = (s) => {
60972
60872
  };
60973
60873
  creator$9.postcss = !0;
60974
60874
  //#endregion
60975
- //#region ../../node_modules/.pnpm/@csstools+postcss-sign-functions@2.0.3_postcss@8.5.16/node_modules/@csstools/postcss-sign-functions/dist/index.mjs
60875
+ //#region ../../node_modules/.pnpm/@csstools+postcss-sign-functions@2.0.3_postcss@8.5.17/node_modules/@csstools/postcss-sign-functions/dist/index.mjs
60976
60876
  const m = /(?<![-\w])(?:sign|abs)\(/i;
60977
60877
  const f = /(?<![-\w])(?:sign|abs)\(/i;
60978
60878
  const creator$8 = (o) => {
@@ -61084,7 +60984,7 @@ function replacer(e) {
61084
60984
  }
61085
60985
  creator$8.postcss = !0;
61086
60986
  //#endregion
61087
- //#region ../../node_modules/.pnpm/@csstools+postcss-stepped-value-functions@5.0.3_postcss@8.5.16/node_modules/@csstools/postcss-stepped-value-functions/dist/index.mjs
60987
+ //#region ../../node_modules/.pnpm/@csstools+postcss-stepped-value-functions@5.0.3_postcss@8.5.17/node_modules/@csstools/postcss-stepped-value-functions/dist/index.mjs
61088
60988
  const s$2 = /(?<![-\w])(?:mod|rem|round)\(/i;
61089
60989
  const creator$7 = (o) => {
61090
60990
  const t = Object.assign({ preserve: !1 }, o);
@@ -61102,7 +61002,7 @@ const creator$7 = (o) => {
61102
61002
  };
61103
61003
  creator$7.postcss = !0;
61104
61004
  //#endregion
61105
- //#region ../../node_modules/.pnpm/@csstools+postcss-syntax-descriptor-syntax-production@2.0.0_postcss@8.5.16/node_modules/@csstools/postcss-syntax-descriptor-syntax-production/dist/index.mjs
61005
+ //#region ../../node_modules/.pnpm/@csstools+postcss-syntax-descriptor-syntax-production@2.0.0_postcss@8.5.17/node_modules/@csstools/postcss-syntax-descriptor-syntax-production/dist/index.mjs
61106
61006
  const o$1 = /^property$/i;
61107
61007
  const n$1 = /^syntax$/i;
61108
61008
  const creator$6 = (i) => {
@@ -61175,7 +61075,7 @@ const creator$6 = (i) => {
61175
61075
  };
61176
61076
  creator$6.postcss = !0;
61177
61077
  //#endregion
61178
- //#region ../../node_modules/.pnpm/@csstools+postcss-system-ui-font-family@2.0.0_postcss@8.5.16/node_modules/@csstools/postcss-system-ui-font-family/dist/index.mjs
61078
+ //#region ../../node_modules/.pnpm/@csstools+postcss-system-ui-font-family@2.0.0_postcss@8.5.17/node_modules/@csstools/postcss-system-ui-font-family/dist/index.mjs
61179
61079
  const a = /^font(?:-family)?$/i;
61180
61080
  const c$2 = [
61181
61081
  "system-ui",
@@ -61231,7 +61131,7 @@ const creator$5 = (p) => {
61231
61131
  };
61232
61132
  creator$5.postcss = !0;
61233
61133
  //#endregion
61234
- //#region ../../node_modules/.pnpm/@csstools+postcss-text-decoration-shorthand@5.0.4_postcss@8.5.16/node_modules/@csstools/postcss-text-decoration-shorthand/dist/index.mjs
61134
+ //#region ../../node_modules/.pnpm/@csstools+postcss-text-decoration-shorthand@5.0.4_postcss@8.5.17/node_modules/@csstools/postcss-text-decoration-shorthand/dist/index.mjs
61235
61135
  const o = /^text-decoration$/i;
61236
61136
  const creator$4 = (t) => {
61237
61137
  const c = Object.assign({ preserve: !0 }, t);
@@ -61448,7 +61348,7 @@ function genericNodeParts() {
61448
61348
  };
61449
61349
  }
61450
61350
  //#endregion
61451
- //#region ../../node_modules/.pnpm/@csstools+postcss-trigonometric-functions@5.0.3_postcss@8.5.16/node_modules/@csstools/postcss-trigonometric-functions/dist/index.mjs
61351
+ //#region ../../node_modules/.pnpm/@csstools+postcss-trigonometric-functions@5.0.3_postcss@8.5.17/node_modules/@csstools/postcss-trigonometric-functions/dist/index.mjs
61452
61352
  const e$2 = /(?<![-\w])(?:asin|acos|atan|atan2|sin|cos|tan)\(/i;
61453
61353
  const creator$3 = (o) => {
61454
61354
  const t = Object.assign({ preserve: !1 }, o);
@@ -61466,7 +61366,7 @@ const creator$3 = (o) => {
61466
61366
  };
61467
61367
  creator$3.postcss = !0;
61468
61368
  //#endregion
61469
- //#region ../../node_modules/.pnpm/@csstools+postcss-unset-value@5.0.0_postcss@8.5.16/node_modules/@csstools/postcss-unset-value/dist/index.mjs
61369
+ //#region ../../node_modules/.pnpm/@csstools+postcss-unset-value@5.0.0_postcss@8.5.17/node_modules/@csstools/postcss-unset-value/dist/index.mjs
61470
61370
  const e$1 = /* @__PURE__ */ new Set([
61471
61371
  "block-ellipsis",
61472
61372
  "border-boundary",
@@ -61906,7 +61806,7 @@ const creator$2 = (o) => {
61906
61806
  };
61907
61807
  creator$2.postcss = !0;
61908
61808
  //#endregion
61909
- //#region ../../node_modules/.pnpm/postcss-preset-env@11.3.2_postcss@8.5.16/node_modules/postcss-preset-env/dist/index.mjs
61809
+ //#region ../../node_modules/.pnpm/postcss-preset-env@11.3.2_postcss@8.5.17/node_modules/postcss-preset-env/dist/index.mjs
61910
61810
  const ks = {
61911
61811
  "blank-pseudo-class": "https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo/README.md#browser",
61912
61812
  "focus-visible-pseudo-class": "https://github.com/WICG/focus-visible",
@@ -62684,6 +62584,279 @@ const creator$1 = (e) => {
62684
62584
  };
62685
62585
  creator$1.postcss = !0;
62686
62586
  //#endregion
62587
+ //#region src/compat/mini-program-css/prune-generated.ts
62588
+ const DEFAULT_WEAPP_VARIABLE_SCOPE = "page,.tw-root,wx-root-portal-content,:host";
62589
+ const MINI_PROGRAM_PSEUDO_CONTENT_SCOPE_SELECTOR = "::before,\n::after";
62590
+ const CLASS_SELECTOR_RE = /(?:^|[^\w-])\.[_a-z\u00A0-\uFFFF\\-]/i;
62591
+ /**
62592
+ * 在交给框架 PostCSS 前展开 Tailwind 生成的嵌套规则,并裁剪 Web-only 结构。
62593
+ */
62594
+ async function normalizeMiniProgramGeneratedCssForPostcss(css, options = {}) {
62595
+ return pruneMiniProgramGeneratedCss((await postcss$1([creator$1({
62596
+ stage: false,
62597
+ features: { "nesting-rules": true },
62598
+ autoprefixer: false
62599
+ })]).process(css, { from: void 0 })).css, options);
62600
+ }
62601
+ function isConditionalCompilationComment(text) {
62602
+ return /#(?:ifn?def|endif)\b/.test(text);
62603
+ }
62604
+ function hasClassSelector$1(selector) {
62605
+ return CLASS_SELECTOR_RE.test(selector);
62606
+ }
62607
+ function hasClassRuleAncestor(rule) {
62608
+ let parent = rule.parent;
62609
+ while (parent) {
62610
+ if (parent.type === "rule" && hasClassSelector$1(parent.selector)) return true;
62611
+ parent = parent.parent;
62612
+ }
62613
+ return false;
62614
+ }
62615
+ function removeEmptyContentInitDeclarations(rule) {
62616
+ rule.walkDecls((decl) => {
62617
+ if (isEmptyTwContentDeclaration(decl)) decl.remove();
62618
+ });
62619
+ }
62620
+ function isMiniProgramElementVariableScopeRule(rule) {
62621
+ const selectors = getRuleSelectors(rule);
62622
+ return selectors.length > 0 && selectors.every((selector) => MINI_PROGRAM_ELEMENT_SCOPE_SELECTORS.has(selector));
62623
+ }
62624
+ function isMiniProgramNativeElementRule(rule) {
62625
+ const selectors = getRuleSelectors(rule);
62626
+ return selectors.length > 0 && selectors.every((selector) => isMiniProgramNativeElementSelector(selector)) && !isMiniProgramPreflightRule(rule);
62627
+ }
62628
+ function isOnlyTwContentDeclarations(rule) {
62629
+ let hasDeclaration = false;
62630
+ let onlyContentVariable = true;
62631
+ rule.walkDecls((decl) => {
62632
+ hasDeclaration = true;
62633
+ if (decl.prop !== "--tw-content") onlyContentVariable = false;
62634
+ });
62635
+ return hasDeclaration && onlyContentVariable;
62636
+ }
62637
+ function isMiniProgramElementContentInitRule(rule) {
62638
+ if (!isMiniProgramElementVariableScopeRule(rule)) return false;
62639
+ let hasElementSelector = false;
62640
+ let hasPseudoSelector = false;
62641
+ for (const selector of getRuleSelectors(rule)) if (selector === "view" || selector === "text") hasElementSelector = true;
62642
+ else if (selector === "::before" || selector === "::after") hasPseudoSelector = true;
62643
+ return hasElementSelector && hasPseudoSelector && isOnlyTwContentDeclarations(rule);
62644
+ }
62645
+ function hasMiniProgramElementContentInit(root) {
62646
+ let found = false;
62647
+ root.walkRules((rule) => {
62648
+ if (!isMiniProgramElementVariableScopeRule(rule)) return;
62649
+ rule.walkDecls("--tw-content", (decl) => {
62650
+ if (isEmptyTwContentDeclaration(decl)) found = true;
62651
+ });
62652
+ });
62653
+ return found;
62654
+ }
62655
+ function ensureMiniProgramElementContentInit(root) {
62656
+ if (hasMiniProgramElementContentInit(root)) return;
62657
+ let defaultScopeRule;
62658
+ root.walkRules((rule) => {
62659
+ if (rule.selector === "view,text,::after,::before") {
62660
+ defaultScopeRule = rule;
62661
+ return false;
62662
+ }
62663
+ });
62664
+ const declaration = postcss$1.decl({
62665
+ prop: "--tw-content",
62666
+ value: "\"\""
62667
+ });
62668
+ if (defaultScopeRule) {
62669
+ defaultScopeRule.append(declaration);
62670
+ return;
62671
+ }
62672
+ root.prepend(postcss$1.rule({
62673
+ selector: MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR,
62674
+ nodes: [declaration]
62675
+ }));
62676
+ }
62677
+ function isTailwindV4GradientRuntimeDeclaration(decl) {
62678
+ return decl.prop.startsWith("--tw-gradient-");
62679
+ }
62680
+ function moveTailwindV4GradientRuntimeDeclarations(rule) {
62681
+ const gradientDeclarations = [];
62682
+ rule.walkDecls((decl) => {
62683
+ if (isTailwindV4GradientRuntimeDeclaration(decl)) {
62684
+ gradientDeclarations.push(decl.clone());
62685
+ decl.remove();
62686
+ }
62687
+ });
62688
+ if (gradientDeclarations.length > 0) rule.before(new postcss$1.Rule({
62689
+ selector: MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR,
62690
+ nodes: gradientDeclarations
62691
+ }));
62692
+ if (rule.nodes.length === 0) rule.remove();
62693
+ }
62694
+ function isKeyframesRule(rule) {
62695
+ let parent = rule.parent;
62696
+ while (parent) {
62697
+ if (parent.type === "atrule" && parent.name.endsWith("keyframes")) return true;
62698
+ parent = parent.parent;
62699
+ }
62700
+ return false;
62701
+ }
62702
+ /**
62703
+ * 裁剪 Tailwind 生成 CSS 中面向浏览器的 classless 规则。
62704
+ */
62705
+ function pruneMiniProgramGeneratedCss(css, options = {}) {
62706
+ const root = postcss$1.parse(css);
62707
+ const shouldPreserveContentInit = options.preservePreflight || usesTwContentVariable(root);
62708
+ root.walkComments((comment) => {
62709
+ if (options.preserveConditionalComments && isConditionalCompilationComment(comment.text)) return;
62710
+ comment.remove();
62711
+ });
62712
+ removeUnsupportedCascadeLayers(root);
62713
+ removeSpecificityPlaceholders(root);
62714
+ removeUnsupportedModernColorDeclarations(root);
62715
+ removeTailwindContainerMaxWidthMediaRules(root);
62716
+ removeTailwindContainerWidthRules(root);
62717
+ root.walkAtRules("supports", (atRule) => {
62718
+ atRule.remove();
62719
+ });
62720
+ root.walkAtRules((atRule) => {
62721
+ removeUnsupportedMiniProgramPrefixedAtRule(atRule);
62722
+ });
62723
+ root.walkDecls((decl) => {
62724
+ normalizeMiniProgramPrefixedDeclaration(decl);
62725
+ });
62726
+ root.walkRules((rule) => {
62727
+ if (isKeyframesRule(rule)) return;
62728
+ if (isPseudoContentInitRule(rule)) {
62729
+ if (!shouldPreserveContentInit) rule.remove();
62730
+ return;
62731
+ }
62732
+ if (isMiniProgramElementContentInitRule(rule)) {
62733
+ if (!shouldPreserveContentInit) {
62734
+ rule.remove();
62735
+ return;
62736
+ }
62737
+ rule.selector = MINI_PROGRAM_PSEUDO_CONTENT_SCOPE_SELECTOR;
62738
+ return;
62739
+ }
62740
+ if (isCustomPropertyRule(rule) && isMiniProgramElementVariableScopeRule(rule)) {
62741
+ rule.selector = MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR;
62742
+ return;
62743
+ }
62744
+ if (options.preserveRawClassRules && (hasClassSelector$1(rule.selector) || hasClassRuleAncestor(rule))) return;
62745
+ if (isUnsupportedBrowserPreflightSelector(rule.selector)) {
62746
+ rule.remove();
62747
+ return;
62748
+ }
62749
+ if (isBrowserElementPreflightRule(rule)) {
62750
+ rule.remove();
62751
+ return;
62752
+ }
62753
+ if (isMiniProgramNativeElementRule(rule)) return;
62754
+ if (isMiniProgramThemeVariableRule(rule)) {
62755
+ moveTailwindV4GradientRuntimeDeclarations(rule);
62756
+ if (!rule.parent) return;
62757
+ rule.selector = DEFAULT_WEAPP_VARIABLE_SCOPE;
62758
+ return;
62759
+ }
62760
+ if (hasClassSelector$1(rule.selector)) return;
62761
+ if (!shouldPreserveContentInit) removeEmptyContentInitDeclarations(rule);
62762
+ if (isMiniProgramPreflightRule(rule)) {
62763
+ if (options.preservePreflight) return;
62764
+ rule.remove();
62765
+ return;
62766
+ }
62767
+ if (isCustomPropertyRule(rule)) {
62768
+ moveTailwindV4GradientRuntimeDeclarations(rule);
62769
+ if (!rule.parent) return;
62770
+ rule.selector = DEFAULT_WEAPP_VARIABLE_SCOPE;
62771
+ return;
62772
+ }
62773
+ rule.remove();
62774
+ });
62775
+ if (shouldPreserveContentInit) ensureMiniProgramElementContentInit(root);
62776
+ root.walkAtRules((atRule) => {
62777
+ if (!atRule.nodes || atRule.nodes.length === 0) atRule.remove();
62778
+ });
62779
+ return root.toString();
62780
+ }
62781
+ //#endregion
62782
+ //#region src/compat/tailwindcss-rpx.ts
62783
+ const LENGTH_VALUE_REGEXP = /^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?rpx$/i;
62784
+ const RPX_DIMENSION_REGEXP = /^([+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)rpx$/i;
62785
+ const DEFAULT_RPX_TO_REM_ROOT_VALUE = 32;
62786
+ const DEFAULT_RPX_TO_REM_UNIT_PRECISION = 5;
62787
+ function formatRpxToRemValue(value, precision) {
62788
+ const fixed = Number(value.toFixed(precision));
62789
+ return Object.is(fixed, -0) ? 0 : fixed;
62790
+ }
62791
+ function convertTailwindcssRpxValueToRem(value, options) {
62792
+ if (!value.includes("rpx") && !value.includes("RPX")) return value;
62793
+ let changed = false;
62794
+ const rootValue = options?.rootValue ?? DEFAULT_RPX_TO_REM_ROOT_VALUE;
62795
+ const unitPrecision = options?.unitPrecision ?? DEFAULT_RPX_TO_REM_UNIT_PRECISION;
62796
+ const parsed = valueParser(value);
62797
+ parsed.walk((node) => {
62798
+ if (node.type !== "word") return;
62799
+ const match = RPX_DIMENSION_REGEXP.exec(node.value);
62800
+ if (!match) return;
62801
+ node.value = `${formatRpxToRemValue(Number(match[1]) / rootValue, unitPrecision)}rem`;
62802
+ changed = true;
62803
+ });
62804
+ return changed ? parsed.toString() : value;
62805
+ }
62806
+ function normalizeTailwindcssRpxDeclaration(decl, options) {
62807
+ const majorVersion = options?.majorVersion;
62808
+ const normalizedValue = decl.value.trim();
62809
+ if (LENGTH_VALUE_REGEXP.test(normalizedValue) && (majorVersion === void 0 || majorVersion === 4)) {
62810
+ const lowerProp = decl.prop.toLowerCase();
62811
+ if (lowerProp === "color") {
62812
+ decl.prop = "font-size";
62813
+ return true;
62814
+ }
62815
+ if (lowerProp === "background-color") {
62816
+ decl.prop = "background-size";
62817
+ return true;
62818
+ }
62819
+ if (lowerProp === "outline-color") {
62820
+ decl.prop = "outline-width";
62821
+ return true;
62822
+ }
62823
+ if (lowerProp.startsWith("border") && lowerProp.endsWith("color")) {
62824
+ decl.prop = `${decl.prop.slice(0, -5)}width`;
62825
+ return true;
62826
+ }
62827
+ if (lowerProp === "--tw-ring-color") {
62828
+ decl.prop = "--tw-ring-offset-width";
62829
+ return true;
62830
+ }
62831
+ }
62832
+ return false;
62833
+ }
62834
+ function normalizeTailwindcssRpxDeclarations(root, options) {
62835
+ let changed = false;
62836
+ root.walkDecls((decl) => {
62837
+ changed = normalizeTailwindcssRpxDeclaration(decl, options) || changed;
62838
+ });
62839
+ return changed;
62840
+ }
62841
+ function convertTailwindcssRpxDeclarationToRem(decl, options) {
62842
+ const value = convertTailwindcssRpxValueToRem(decl.value, options);
62843
+ if (value === decl.value) return false;
62844
+ decl.value = value;
62845
+ return true;
62846
+ }
62847
+ function convertTailwindcssRpxDeclarationsToRem(root, options) {
62848
+ let changed = false;
62849
+ root.walkDecls((decl) => {
62850
+ changed = convertTailwindcssRpxDeclarationToRem(decl, options) || changed;
62851
+ });
62852
+ return changed;
62853
+ }
62854
+ function normalizeTailwindcssWebRpxDeclarations(root, options) {
62855
+ const normalized = normalizeTailwindcssRpxDeclarations(root, options);
62856
+ const converted = convertTailwindcssRpxDeclarationsToRem(root, options);
62857
+ return normalized || converted;
62858
+ }
62859
+ //#endregion
62687
62860
  //#region src/shared.ts
62688
62861
  const escapeOptionsCache = /* @__PURE__ */ new WeakMap();
62689
62862
  function getEscapeOptions(escapeMap) {
@@ -62911,7 +63084,6 @@ function transformWebCssCompat(css, options) {
62911
63084
  try {
62912
63085
  const root = postcss$1.parse(css);
62913
63086
  if (normalized.features.theme) unwrapThemeAtRules(root);
62914
- if (normalized.features.layer) removeUnsupportedCascadeLayers(root);
62915
63087
  if (normalized.features.property) {
62916
63088
  const registeredProperties = collectRegisteredCustomPropertyFallbacks(root);
62917
63089
  insertRegisteredCustomPropertyFallbackRule(root, registeredProperties);
@@ -62922,6 +63094,7 @@ function transformWebCssCompat(css, options) {
62922
63094
  normalizeTailwindcssV4GradientPositionDeclarations(root);
62923
63095
  normalizeTailwindcssV4InfinityCalcDeclarations(root);
62924
63096
  normalizeModernColorDeclarations(root, normalized.features);
63097
+ if (normalized.features.layer) removeUnsupportedCascadeLayers(root);
62925
63098
  removeEmptyAtRules$1(root);
62926
63099
  return root.toString();
62927
63100
  } catch {
@@ -64076,6 +64249,27 @@ function splitLocalCssImports(source) {
64076
64249
  return;
64077
64250
  }
64078
64251
  }
64252
+ function removeMatchingLocalCssImportsRoot(root, importsRoot) {
64253
+ const requests = collectCssImportRequestsRoot(importsRoot, { isSupportedImportRequest: isLocalCssImportRequest });
64254
+ if (requests.size === 0) return false;
64255
+ let changed = false;
64256
+ root.walkAtRules("import", (atRule) => {
64257
+ const request = parseImportRequest(atRule.params);
64258
+ if (!request || !requests.has(request)) return;
64259
+ atRule.remove();
64260
+ changed = true;
64261
+ });
64262
+ return changed;
64263
+ }
64264
+ function removeMatchingLocalCssImports(source, imports) {
64265
+ if (!imports?.includes("@import") || !source.includes("@import")) return source;
64266
+ try {
64267
+ const root = postcss.parse(source);
64268
+ return removeMatchingLocalCssImportsRoot(root, postcss.parse(imports)) ? root.toString() : source;
64269
+ } catch {
64270
+ return source;
64271
+ }
64272
+ }
64079
64273
  function normalizeOutputPath(file) {
64080
64274
  const segments = [];
64081
64275
  for (const segment of file.replace(/\\/g, "/").replace(/^\/+/, "").split("/")) {
@@ -64203,7 +64397,6 @@ function getDefaultOptions(options) {
64203
64397
  return {
64204
64398
  cssPresetEnv: {
64205
64399
  features: {
64206
- "cascade-layers": true,
64207
64400
  "is-pseudo-class": { specificityMatchingName: "weapp-tw-ig" },
64208
64401
  "oklab-function": true,
64209
64402
  "color-mix": true,
@@ -64565,16 +64758,29 @@ function createContext() {
64565
64758
  }
64566
64759
  //#endregion
64567
64760
  //#region src/plugins/getCalcDuplicateCleaner.ts
64761
+ const MULTIPLICATION_GROUP_RE = /\((var\([^()]+\)(?:\s*\*\s*-?(?:\d+(?:\.\d+)?|\.\d+|[a-z_][\w-]*))+)\)/gi;
64762
+ function normalizeCalcValue$1(value) {
64763
+ if (!value.includes("calc(")) return value;
64764
+ let normalized = value.replace(/\s+/g, "");
64765
+ let previous;
64766
+ do {
64767
+ previous = normalized;
64768
+ normalized = normalized.replace(MULTIPLICATION_GROUP_RE, "$1");
64769
+ } while (normalized !== previous);
64770
+ return normalized;
64771
+ }
64568
64772
  const calcDuplicateCleanerPlugin = {
64569
64773
  postcssPlugin: "postcss-calc-duplicate-cleaner",
64570
- Rule(rule) {
64571
- rule.walkDecls((decl) => {
64572
- const prev = decl.prev();
64573
- if (!prev || prev.type !== "decl") return;
64574
- if (prev.prop !== decl.prop) return;
64575
- if (prev.important !== decl.important) return;
64576
- if (prev.value !== decl.value) return;
64577
- decl.remove();
64774
+ OnceExit(root) {
64775
+ root.walkRules((rule) => {
64776
+ const declarations = /* @__PURE__ */ new Set();
64777
+ for (const node of [...rule.nodes]) {
64778
+ if (node.type !== "decl") continue;
64779
+ const decl = node;
64780
+ const key = `${decl.prop}\0${decl.important ? "1" : "0"}\0${normalizeCalcValue$1(decl.value)}`;
64781
+ if (declarations.has(key)) decl.remove();
64782
+ else declarations.add(key);
64783
+ }
64578
64784
  });
64579
64785
  }
64580
64786
  };
@@ -66062,34 +66268,26 @@ const postcssWeappTailwindcssPrePlugin = (options) => {
66062
66268
  else if (isTailwindcssV4LinearGradientSupports(atRule)) removeAtRuleAndEmptyAncestors(atRule);
66063
66269
  else if (isTailwindcssV4DisplayP3Supports(atRule)) removeAtRuleAndEmptyAncestors(atRule);
66064
66270
  } else if (isTailwindcssV4DisplayP3Media(atRule)) removeAtRuleAndEmptyAncestors(atRule);
66065
- else if (atRule.name === "layer") {
66066
- if (atRule.nodes === void 0 || Array.isArray(atRule.nodes) && atRule.nodes.length === 0) atRule.remove();
66067
- }
66068
66271
  },
66069
66272
  Declaration(decl) {
66070
66273
  if (isTailwindcssV4DisplayP3Declaration(decl)) removeDeclarationAndEmptyRule(decl);
66071
66274
  }
66072
66275
  };
66073
- if (opts.isMainChunk) {
66074
- let layerProperties;
66075
- p.Once = (root) => {
66076
- root.walkAtRules((atRule) => {
66077
- if (atRule.name === "layer") if (atRule.params === "properties") {
66078
- if (atRule.nodes === void 0 || atRule.nodes?.length === 0) layerProperties = atRule;
66079
- else if (atRule.first?.type === "atrule" && isTailwindcssV4ModernCheck(atRule.first)) if (layerProperties) {
66080
- layerProperties.replaceWith(atRule.first.nodes);
66081
- atRule.remove();
66082
- } else atRule.replaceWith(atRule.first.nodes);
66083
- } else atRule.replaceWith(atRule.nodes);
66084
- else if (isTailwindcssV4ModernCheck(atRule)) {
66085
- if (atRule.first?.type === "atrule" && atRule.first.name === "layer") atRule.replaceWith(atRule.first.nodes);
66276
+ if (opts.isMainChunk) p.Once = (root) => {
66277
+ root.walkAtRules((atRule) => {
66278
+ if (atRule.name === "layer") {
66279
+ if (atRule.params === "properties") {
66280
+ if (atRule.first?.type === "atrule" && isTailwindcssV4ModernCheck(atRule.first)) atRule.first.replaceWith(atRule.first.nodes ?? []);
66086
66281
  }
66087
- });
66088
- root.walkRules((rule) => {
66089
- commonChunkPreflight(rule, opts);
66090
- });
66091
- };
66092
- }
66282
+ } else if (isTailwindcssV4ModernCheck(atRule)) {
66283
+ if (atRule.first?.type === "atrule" && atRule.first.name === "layer") atRule.replaceWith(atRule.first);
66284
+ }
66285
+ });
66286
+ consumeCascadeLayers(root);
66287
+ root.walkRules((rule) => {
66288
+ commonChunkPreflight(rule, opts);
66289
+ });
66290
+ };
66093
66291
  return p;
66094
66292
  };
66095
66293
  postcssWeappTailwindcssPrePlugin.postcss = true;
@@ -66125,7 +66323,13 @@ function shouldUseDefaultAutoprefixer(options, userPlugins) {
66125
66323
  function createPreparedNodes(options, signal) {
66126
66324
  const preparedNodes = [];
66127
66325
  const userPlugins = normalizeUserPlugins(options.postcssOptions?.plugins);
66128
- const presetEnvOptions = options.cssPresetEnv;
66326
+ const presetEnvOptions = {
66327
+ ...options.cssPresetEnv,
66328
+ features: {
66329
+ ...options.cssPresetEnv?.features,
66330
+ "cascade-layers": false
66331
+ }
66332
+ };
66129
66333
  userPlugins.forEach((plugin, index) => {
66130
66334
  preparedNodes.push(createPreparedNode(`pre:user-${index}`, "pre", () => plugin));
66131
66335
  });
@@ -66513,6 +66717,12 @@ function parseVarFallbackValue(value) {
66513
66717
  const fallback = body.slice(commaIndex + 1).trim();
66514
66718
  return fallback.length > 0 ? fallback : void 0;
66515
66719
  }
66720
+ function parseVarReferenceValue(value) {
66721
+ const trimmed = value.trim();
66722
+ if (!trimmed.startsWith("var(") || !trimmed.endsWith(")")) return;
66723
+ const body = trimmed.slice(4, -1).trim();
66724
+ return body.startsWith("--") && !body.includes(",") && !/\s/.test(body) ? body : void 0;
66725
+ }
66516
66726
  function isEquivalentVarFallbackDeclaration(incoming, baseDeclarations) {
66517
66727
  const fallback = parseVarFallbackValue(incoming.value);
66518
66728
  if (!fallback) return false;
@@ -66730,6 +66940,41 @@ function isCssRuleCoveredByDeclarations(rule, baseRuleDeclarationKeys) {
66730
66940
  if (!baseDeclarations) return false;
66731
66941
  return collectCssRuleDeclarationKeys(rule).size > 0 && collectCssRuleDeclarations(rule).every((decl) => baseDeclarations.has(normalizeCssDeclarationKey(decl)) || isEquivalentVarFallbackDeclaration(decl, baseDeclarations) || isCoveredByBaseVarFallbackDeclaration(decl, baseDeclarations));
66732
66942
  }
66943
+ function removeDuplicateLeadingComment(rule, targetRule) {
66944
+ const comment = rule.prev();
66945
+ const targetComment = targetRule.prev();
66946
+ if (comment?.type === "comment" && targetComment?.type === "comment" && normalizeCssForContainment(comment.text) === normalizeCssForContainment(targetComment.text)) comment.remove();
66947
+ }
66948
+ function dedupeCoveredCssRules(css) {
66949
+ try {
66950
+ const root = postcss.parse(css);
66951
+ const recordsByParent = /* @__PURE__ */ new WeakMap();
66952
+ let changed = false;
66953
+ root.walkRules((rule) => {
66954
+ const key = getCssRuleStructuralKey(rule);
66955
+ const incomingDeclarations = collectCssRuleDeclarations(rule);
66956
+ if (!key || incomingDeclarations.length === 0 || !rule.parent) return;
66957
+ let records = recordsByParent.get(rule.parent);
66958
+ if (!records) {
66959
+ records = /* @__PURE__ */ new Map();
66960
+ recordsByParent.set(rule.parent, records);
66961
+ }
66962
+ const targetRule = records.get(key);
66963
+ if (targetRule) {
66964
+ const incomingKeys = collectCssRuleDeclarationKeys(rule);
66965
+ if (collectCssRuleDeclarations(targetRule).every((decl) => incomingKeys.has(normalizeCssDeclarationKey(decl)) || isEquivalentVarFallbackDeclaration(decl, incomingKeys) || isCoveredByBaseVarFallbackDeclaration(decl, incomingKeys))) {
66966
+ removeDuplicateLeadingComment(targetRule, rule);
66967
+ targetRule.remove();
66968
+ changed = true;
66969
+ }
66970
+ }
66971
+ records.set(key, rule);
66972
+ });
66973
+ return changed ? root.toString() : css;
66974
+ } catch {
66975
+ return css;
66976
+ }
66977
+ }
66733
66978
  function mergeCoveredCssRuleDeclarations(baseCss, css) {
66734
66979
  try {
66735
66980
  const baseRoot = postcss.parse(baseCss);
@@ -66752,11 +66997,22 @@ function mergeCoveredCssRuleDeclarations(baseCss, css) {
66752
66997
  return;
66753
66998
  }
66754
66999
  const baseProps = new Set(records.flatMap((record) => [...record.props]));
66755
- if (missingDeclarations.filter((decl) => baseProps.has(decl.prop.trim())).length > 0) return;
67000
+ const mergeableFallbacks = /* @__PURE__ */ new Map();
67001
+ if (missingDeclarations.filter((decl) => {
67002
+ if (!baseProps.has(decl.prop.trim())) return false;
67003
+ const matchingVariable = incomingDeclarations.find((candidate) => candidate.prop.startsWith("--") && candidate.important === decl.important && normalizeCssForContainment(candidate.value) === normalizeCssForContainment(decl.value));
67004
+ if (!matchingVariable) return true;
67005
+ const targetDeclaration = records.flatMap((record) => collectCssRuleDeclarations(record.rule)).find((candidate) => candidate.prop.trim() === decl.prop.trim() && candidate.important === decl.important && parseVarReferenceValue(candidate.value) === matchingVariable.prop.trim());
67006
+ if (!targetDeclaration) return true;
67007
+ mergeableFallbacks.set(decl, targetDeclaration);
67008
+ return false;
67009
+ }).length > 0) return;
66756
67010
  const targetRecord = records[0];
66757
67011
  if (!targetRecord) return;
66758
67012
  for (const decl of missingDeclarations) {
66759
- targetRecord.rule.append(decl.clone());
67013
+ const fallbackTarget = mergeableFallbacks.get(decl);
67014
+ if (fallbackTarget) fallbackTarget.before(decl.clone());
67015
+ else targetRecord.rule.append(decl.clone());
66760
67016
  targetRecord.keys.add(normalizeCssDeclarationKey(decl));
66761
67017
  targetRecord.props.add(decl.prop.trim());
66762
67018
  }
@@ -66821,4 +67077,4 @@ function containsCssAfterMinify(baseCss, css) {
66821
67077
  return ruleKeys.size > 0 && [...ruleKeys].every((key) => baseRuleKeys.has(key));
66822
67078
  }
66823
67079
  //#endregion
66824
- export { CSS_MACRO_POSTCSS_PLUGIN_NAME, CSS_MACRO_STYLE_OPTIONS_MARKER, FULL_SOURCE_SCAN_EXTENSIONS, FULL_SOURCE_SCAN_EXTENSION_RE, FULL_SOURCE_SCAN_PATTERN, analyzeTailwindCssDirectives, cleanLocalCssImportWrapperTailwindDirectives, cleanLocalCssImportWrapperTailwindDirectivesRoot, collectApplyOnlyCssSelectors, collectApplyOnlyCssSelectorsRoot, collectCssImportRequestsRoot, collectCssInlineSourceCandidates, compileCssMacroConditionalComments, containsCssAfterMinify, convertTailwindcssRpxDeclarationToRem, convertTailwindcssRpxDeclarationsToRem, convertTailwindcssRpxValueToRem, createCssSourceOrderAppend, createFallbackPlaceholderReplacer, createInjectPreflight, createPostcssStyleTargetProfile, createSourceScanPattern, createStyleHandler, createStylePipeline, createTailwindSourceEntryMatcher, createWeappTailwindcssPostcssPlugin, creator as cssMacroPostcssPlugin, expandInlineSourceCandidatePattern, expandTailwindSourceEntries, filterApplyOnlyGeneratedCss, filterApplyOnlyGeneratedCssRoot, filterExistingCssRules, finalizeMiniProgramCss, getPostcssPluginName, hasCssMacroStyleOptions, hasCssMacroTailwindV4CustomVariantConditionalComments, hasCssMacroTailwindV4Directive, hasCssMacroTailwindV4InternalAtRules, hasCssMacroTailwindV4Source, hasMiniProgramCssSpecificityPlaceholders, hoistTailwindPreflightBase, internalCssSelectorReplacer, isFileExcludedByTailwindSourceEntries, isFileMatchedByTailwindSourceEntries, isLocalCssImportRequest, isMiniProgramLocalCssImportRequest, isPureLocalCssImportWrapper, isPureLocalCssImportWrapperRoot, isTailwindCssGenerationDirective, isTailwindCssImportAtRule, isTailwindCssImportRequest, isTailwindCssPackageJsonImportRequest, isWeappTailwindcssImportRequest, mergeCoveredCssRuleDeclarations, mergeMiniProgramPreflightRuleDeclarations, mergeMiniProgramThemeScopeRuleDeclarations, normalizeLegacyContentEntries, normalizeMiniProgramPrefixedDeclaration, normalizeModernColorValue, normalizeOutputImportRequest, normalizeTailwindCssImportRequest, normalizeTailwindcssRpxDeclaration, normalizeTailwindcssRpxDeclarations, normalizeTailwindcssWebRpxDeclarations, normalizeWebCssCompatOptions, parseConfigParam, parseSourceFileParam, parseTailwindCssConfigRequest, parseTailwindCssDirectiveRequest, postcss, postcssHtmlTransform, prefixLocalCssImportsWithWebpackIgnoreRoot, protectDynamicColorMixAlpha, pruneMiniProgramGeneratedCss, removeTailwindPostcssPlugins, removeTailwindSourceDirectivesRoot, removeUnsupportedAtSupports, removeUnsupportedCascadeLayers, removeUnsupportedMiniProgramAtRules, removeUnsupportedMiniProgramCssImportsRoot, removeUnsupportedMiniProgramPrefixedAtRule, resolveCssSourceEntries, resolveFilteredPostcssConfig, resolvePostcssFrameworkProfile, resolvePostcssFrameworkStrategy, resolvePostcssStyleBranch, resolvePostcssStyleBranchProfile, resolvePostcssStyleTarget, resolveSourceScanPath, resolveTailwindSourceEntry, restoreLocalCssImports, rewriteLocalCssImportRequestsForOutput, rewriteLocalCssImportRequestsForOutputRoot, splitLocalCssImports, splitLocalCssImportsRoot, stripMiniProgramCssSpecificityPlaceholders, toPosixPath, transformCssMacroCss, transformCssMacroTailwindV4Source, transformWebCssCompat, transformWebCssSafeSelectors, unitConversionComposeRules, unitConversionPresets, unwrapUnsupportedCascadeLayers, withCssMacroStyleOptions };
67080
+ export { CSS_MACRO_POSTCSS_PLUGIN_NAME, CSS_MACRO_STYLE_OPTIONS_MARKER, FULL_SOURCE_SCAN_EXTENSIONS, FULL_SOURCE_SCAN_EXTENSION_RE, FULL_SOURCE_SCAN_PATTERN, analyzeTailwindCssDirectives, cleanLocalCssImportWrapperTailwindDirectives, cleanLocalCssImportWrapperTailwindDirectivesRoot, collectApplyOnlyCssSelectors, collectApplyOnlyCssSelectorsRoot, collectCssImportRequestsRoot, collectCssInlineSourceCandidates, compileCssMacroConditionalComments, consumeCascadeLayers, containsCssAfterMinify, convertTailwindcssRpxDeclarationToRem, convertTailwindcssRpxDeclarationsToRem, convertTailwindcssRpxValueToRem, createCssSourceOrderAppend, createFallbackPlaceholderReplacer, createInjectPreflight, createPostcssStyleTargetProfile, createSourceScanPattern, createStyleHandler, createStylePipeline, createTailwindSourceEntryMatcher, createWeappTailwindcssPostcssPlugin, creator as cssMacroPostcssPlugin, dedupeCoveredCssRules, expandInlineSourceCandidatePattern, expandTailwindSourceEntries, filterApplyOnlyGeneratedCss, filterApplyOnlyGeneratedCssRoot, filterExistingCssRules, finalizeMiniProgramCss, getPostcssPluginName, hasCssMacroStyleOptions, hasCssMacroTailwindV4CustomVariantConditionalComments, hasCssMacroTailwindV4Directive, hasCssMacroTailwindV4InternalAtRules, hasCssMacroTailwindV4Source, hasMiniProgramCssSpecificityPlaceholders, hoistTailwindPreflightBase, internalCssSelectorReplacer, isFileExcludedByTailwindSourceEntries, isFileMatchedByTailwindSourceEntries, isLocalCssImportRequest, isMiniProgramLocalCssImportRequest, isPureLocalCssImportWrapper, isPureLocalCssImportWrapperRoot, isTailwindCssGenerationDirective, isTailwindCssImportAtRule, isTailwindCssImportRequest, isTailwindCssPackageJsonImportRequest, isWeappTailwindcssImportRequest, mergeCoveredCssRuleDeclarations, mergeMiniProgramPreflightRuleDeclarations, mergeMiniProgramThemeScopeRuleDeclarations, normalizeLegacyContentEntries, normalizeMiniProgramGeneratedCssForPostcss, normalizeMiniProgramPrefixedDeclaration, normalizeModernColorValue, normalizeOutputImportRequest, normalizeTailwindCssImportRequest, normalizeTailwindcssRpxDeclaration, normalizeTailwindcssRpxDeclarations, normalizeTailwindcssWebRpxDeclarations, normalizeWebCssCompatOptions, parseConfigParam, parseSourceFileParam, parseTailwindCssConfigRequest, parseTailwindCssDirectiveRequest, postcss, postcssHtmlTransform, prefixLocalCssImportsWithWebpackIgnoreRoot, protectDynamicColorMixAlpha, pruneMiniProgramGeneratedCss, removeMatchingLocalCssImports, removeMatchingLocalCssImportsRoot, removeTailwindPostcssPlugins, removeTailwindSourceDirectivesRoot, removeUnsupportedAtSupports, removeUnsupportedCascadeLayers, removeUnsupportedMiniProgramAtRules, removeUnsupportedMiniProgramCssImportsRoot, removeUnsupportedMiniProgramPrefixedAtRule, resolveCssSourceEntries, resolveFilteredPostcssConfig, resolvePostcssFrameworkProfile, resolvePostcssFrameworkStrategy, resolvePostcssStyleBranch, resolvePostcssStyleBranchProfile, resolvePostcssStyleTarget, resolveSourceScanPath, resolveTailwindSourceEntry, restoreLocalCssImports, rewriteLocalCssImportRequestsForOutput, rewriteLocalCssImportRequestsForOutputRoot, splitLocalCssImports, splitLocalCssImportsRoot, stripMiniProgramCssSpecificityPlaceholders, toPosixPath, transformCssMacroCss, transformCssMacroTailwindV4Source, transformWebCssCompat, transformWebCssSafeSelectors, unitConversionComposeRules, unitConversionPresets, unwrapUnsupportedCascadeLayers, withCssMacroStyleOptions };