@weapp-tailwindcss/postcss 3.1.11 → 3.1.12
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/compat/tailwindcss-v4/declarations.d.ts +2 -0
- package/dist/compat/tailwindcss-v4/gradients.d.ts +6 -0
- package/dist/compat/tailwindcss-v4/modern-syntax.d.ts +6 -0
- package/dist/compat/tailwindcss-v4/variables.d.ts +30 -0
- package/dist/compat/tailwindcss-v4.d.ts +4 -21
- package/dist/index.d.ts +1 -1
- package/dist/index.js +267 -249
- package/dist/index.mjs +262 -245
- package/dist/postcss-config.d.ts +4 -0
- package/dist/vite-css-rules/containment.d.ts +2 -0
- package/dist/vite-css-rules/coverage.d.ts +9 -0
- package/dist/vite-css-rules/mini-program.d.ts +10 -0
- package/dist/vite-css-rules/structure.d.ts +26 -0
- package/dist/vite-css-rules.d.ts +3 -18
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -11099,9 +11099,6 @@ function createCssVarNodes(definitions) {
|
|
|
11099
11099
|
value: def.value
|
|
11100
11100
|
}));
|
|
11101
11101
|
}
|
|
11102
|
-
//#endregion
|
|
11103
|
-
//#region src/compat/tailwindcss-v4.ts
|
|
11104
|
-
const RADIUS_THRESHOLD = 1e5;
|
|
11105
11102
|
const CLAMP_PX = 9999;
|
|
11106
11103
|
const INFINITY_CALC_VALUE_REGEXP = /^calc\(\s*infinity\s*\*\s*(?:\d+(?:\.\d*)?|\.\d+)r?px\s*\)$/i;
|
|
11107
11104
|
const MODERN_CHECK_WEBKIT_HYPHENS_RE = /-webkit-hyphens\s*:\s*none/;
|
|
@@ -11212,6 +11209,8 @@ function createMissingCssVarsV4Nodes(root, usedProps) {
|
|
|
11212
11209
|
value: def.value
|
|
11213
11210
|
}));
|
|
11214
11211
|
}
|
|
11212
|
+
//#endregion
|
|
11213
|
+
//#region src/compat/tailwindcss-v4/gradients.ts
|
|
11215
11214
|
function collectTailwindcssV4ThemeVariables(root) {
|
|
11216
11215
|
const variables = /* @__PURE__ */ new Map();
|
|
11217
11216
|
root.walkRules((rule) => {
|
|
@@ -11458,26 +11457,8 @@ function appendTailwindcssV4MiniProgramGradientRules(root) {
|
|
|
11458
11457
|
appendGradientCombinations(gradient, positionedFromVariants, positionedViaVariants, positionedToVariants);
|
|
11459
11458
|
}
|
|
11460
11459
|
}
|
|
11461
|
-
|
|
11462
|
-
|
|
11463
|
-
MODERN_CHECK_WEBKIT_HYPHENS_RE,
|
|
11464
|
-
MODERN_CHECK_MARGIN_TRIM_RE,
|
|
11465
|
-
MODERN_CHECK_MOZ_ORIENT_RE,
|
|
11466
|
-
MODERN_CHECK_COLOR_RGB_RE
|
|
11467
|
-
].every((regex) => regex.test(atRule.params));
|
|
11468
|
-
}
|
|
11469
|
-
function isTailwindcssV4LinearGradientSupports(atRule) {
|
|
11470
|
-
return atRule.name === "supports" && LINEAR_GRADIENT_LAB_RE.test(atRule.params);
|
|
11471
|
-
}
|
|
11472
|
-
function isTailwindcssV4DisplayP3Supports(atRule) {
|
|
11473
|
-
return atRule.name === "supports" && DISPLAY_P3_COLOR_RE.test(atRule.params);
|
|
11474
|
-
}
|
|
11475
|
-
function isTailwindcssV4DisplayP3Media(atRule) {
|
|
11476
|
-
return atRule.name === "media" && COLOR_GAMUT_P3_RE$1.test(atRule.params);
|
|
11477
|
-
}
|
|
11478
|
-
function isTailwindcssV4DisplayP3Declaration(decl) {
|
|
11479
|
-
return DISPLAY_P3_VALUE_RE$1.test(decl.value);
|
|
11480
|
-
}
|
|
11460
|
+
//#endregion
|
|
11461
|
+
//#region src/compat/tailwindcss-v4/declarations.ts
|
|
11481
11462
|
function normalizeTailwindcssV4EmptyVarFallback(value) {
|
|
11482
11463
|
if (!value.includes("var(") || !value.includes("--tw-")) return value;
|
|
11483
11464
|
const parsed = valueParser(value);
|
|
@@ -11609,7 +11590,7 @@ function normalizeTailwindcssV4Declaration(decl) {
|
|
|
11609
11590
|
const next = decl.value.replace(RADIUS_VALUE_RE, (m, num) => {
|
|
11610
11591
|
const n = Number(num);
|
|
11611
11592
|
if (!Number.isFinite(n)) return `${CLAMP_PX}px`;
|
|
11612
|
-
if (SCIENTIFIC_NOTATION_RE.test(String(num)) || n >
|
|
11593
|
+
if (SCIENTIFIC_NOTATION_RE.test(String(num)) || n > 1e5) return `${CLAMP_PX}px`;
|
|
11613
11594
|
return m;
|
|
11614
11595
|
});
|
|
11615
11596
|
if (next !== decl.value) {
|
|
@@ -11620,6 +11601,28 @@ function normalizeTailwindcssV4Declaration(decl) {
|
|
|
11620
11601
|
return changed;
|
|
11621
11602
|
}
|
|
11622
11603
|
//#endregion
|
|
11604
|
+
//#region src/compat/tailwindcss-v4/modern-syntax.ts
|
|
11605
|
+
function isTailwindcssV4ModernCheck(atRule) {
|
|
11606
|
+
return atRule.name === "supports" && [
|
|
11607
|
+
MODERN_CHECK_WEBKIT_HYPHENS_RE,
|
|
11608
|
+
MODERN_CHECK_MARGIN_TRIM_RE,
|
|
11609
|
+
MODERN_CHECK_MOZ_ORIENT_RE,
|
|
11610
|
+
MODERN_CHECK_COLOR_RGB_RE
|
|
11611
|
+
].every((regex) => regex.test(atRule.params));
|
|
11612
|
+
}
|
|
11613
|
+
function isTailwindcssV4LinearGradientSupports(atRule) {
|
|
11614
|
+
return atRule.name === "supports" && LINEAR_GRADIENT_LAB_RE.test(atRule.params);
|
|
11615
|
+
}
|
|
11616
|
+
function isTailwindcssV4DisplayP3Supports(atRule) {
|
|
11617
|
+
return atRule.name === "supports" && DISPLAY_P3_COLOR_RE.test(atRule.params);
|
|
11618
|
+
}
|
|
11619
|
+
function isTailwindcssV4DisplayP3Media(atRule) {
|
|
11620
|
+
return atRule.name === "media" && COLOR_GAMUT_P3_RE$1.test(atRule.params);
|
|
11621
|
+
}
|
|
11622
|
+
function isTailwindcssV4DisplayP3Declaration(decl) {
|
|
11623
|
+
return DISPLAY_P3_VALUE_RE$1.test(decl.value);
|
|
11624
|
+
}
|
|
11625
|
+
//#endregion
|
|
11623
11626
|
//#region src/compat/mini-program-css/directives.ts
|
|
11624
11627
|
const TAILWIND_V4_BANNER_RE = /\/\*!\s*tailwindcss v4\./;
|
|
11625
11628
|
const GENERATOR_PLACEHOLDER_COMMENT_RE = /^\s*(?:!\s*)?weapp-tailwindcss generator-placeholder\s*$/i;
|
|
@@ -44616,7 +44619,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
44616
44619
|
};
|
|
44617
44620
|
}));
|
|
44618
44621
|
//#endregion
|
|
44619
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-initial@3.0.0_postcss@8.5.
|
|
44622
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-initial@3.0.0_postcss@8.5.19/node_modules/@csstools/postcss-initial/dist/index.mjs
|
|
44620
44623
|
var import_browserslist = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
44621
44624
|
var bbm = require_dist$1();
|
|
44622
44625
|
var jsReleases = require_envs();
|
|
@@ -45916,7 +45919,7 @@ const creator$52 = (a) => {
|
|
|
45916
45919
|
};
|
|
45917
45920
|
creator$52.postcss = !0;
|
|
45918
45921
|
//#endregion
|
|
45919
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-progressive-custom-properties@5.1.1_postcss@8.5.
|
|
45922
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-progressive-custom-properties@5.1.1_postcss@8.5.19/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs
|
|
45920
45923
|
const r$7 = [
|
|
45921
45924
|
"at",
|
|
45922
45925
|
"bottom",
|
|
@@ -49673,7 +49676,7 @@ const creator$51 = () => ({
|
|
|
49673
49676
|
});
|
|
49674
49677
|
creator$51.postcss = !0;
|
|
49675
49678
|
//#endregion
|
|
49676
|
-
//#region ../../node_modules/.pnpm/@csstools+utilities@3.0.0_postcss@8.5.
|
|
49679
|
+
//#region ../../node_modules/.pnpm/@csstools+utilities@3.0.0_postcss@8.5.19/node_modules/@csstools/utilities/dist/index.mjs
|
|
49677
49680
|
function hasFallback$1(e) {
|
|
49678
49681
|
const t = e.parent;
|
|
49679
49682
|
if (!t) return !1;
|
|
@@ -49693,7 +49696,7 @@ function hasSupportsAtRuleAncestor(e, t) {
|
|
|
49693
49696
|
return !1;
|
|
49694
49697
|
}
|
|
49695
49698
|
//#endregion
|
|
49696
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-alpha-function@2.0.7_postcss@8.5.
|
|
49699
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-alpha-function@2.0.7_postcss@8.5.19/node_modules/@csstools/postcss-alpha-function/dist/index.mjs
|
|
49697
49700
|
const b$1 = /\balpha\(/i;
|
|
49698
49701
|
const m$9 = /^alpha$/i;
|
|
49699
49702
|
const w$3 = /* @__PURE__ */ new Set([
|
|
@@ -49920,7 +49923,7 @@ const postcssPlugin$16 = (o) => {
|
|
|
49920
49923
|
};
|
|
49921
49924
|
postcssPlugin$16.postcss = !0;
|
|
49922
49925
|
//#endregion
|
|
49923
|
-
//#region ../../node_modules/.pnpm/postcss-pseudo-class-any-link@11.0.0_postcss@8.5.
|
|
49926
|
+
//#region ../../node_modules/.pnpm/postcss-pseudo-class-any-link@11.0.0_postcss@8.5.19/node_modules/postcss-pseudo-class-any-link/dist/index.mjs
|
|
49924
49927
|
const t$13 = (0, import_dist$1.default)().astSync(":link").nodes[0];
|
|
49925
49928
|
const s$15 = (0, import_dist$1.default)().astSync(":visited").nodes[0];
|
|
49926
49929
|
const n$10 = (0, import_dist$1.default)().astSync("area[href]").nodes[0];
|
|
@@ -50017,7 +50020,7 @@ const creator$50 = (e) => {
|
|
|
50017
50020
|
};
|
|
50018
50021
|
creator$50.postcss = !0;
|
|
50019
50022
|
//#endregion
|
|
50020
|
-
//#region ../../node_modules/.pnpm/css-blank-pseudo@8.0.1_postcss@8.5.
|
|
50023
|
+
//#region ../../node_modules/.pnpm/css-blank-pseudo@8.0.1_postcss@8.5.19/node_modules/css-blank-pseudo/dist/index.mjs
|
|
50021
50024
|
const s$14 = [
|
|
50022
50025
|
" ",
|
|
50023
50026
|
">",
|
|
@@ -50253,7 +50256,7 @@ function selectorNodeContainsNothingOrOnlyUniversal$1(e) {
|
|
|
50253
50256
|
return 0 === t.length || 1 === t.length && "universal" === t[0].type;
|
|
50254
50257
|
}
|
|
50255
50258
|
//#endregion
|
|
50256
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-cascade-layers@6.0.0_postcss@8.5.
|
|
50259
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-cascade-layers@6.0.0_postcss@8.5.19/node_modules/@csstools/postcss-cascade-layers/dist/index.mjs
|
|
50257
50260
|
const t$11 = "csstools-invalid-layer";
|
|
50258
50261
|
const a$5 = "csstools-layer-with-selector-rules";
|
|
50259
50262
|
const s$13 = "6efdb677-bb05-44e5-840f-29d2175862fd";
|
|
@@ -50575,7 +50578,7 @@ const creator$48 = (a) => {
|
|
|
50575
50578
|
};
|
|
50576
50579
|
creator$48.postcss = !0;
|
|
50577
50580
|
//#endregion
|
|
50578
|
-
//#region ../../node_modules/.pnpm/postcss-attribute-case-insensitive@8.0.0_postcss@8.5.
|
|
50581
|
+
//#region ../../node_modules/.pnpm/postcss-attribute-case-insensitive@8.0.0_postcss@8.5.19/node_modules/postcss-attribute-case-insensitive/dist/index.mjs
|
|
50579
50582
|
function nodeIsInsensitiveAttribute(e) {
|
|
50580
50583
|
return "attribute" === e.type && (e.insensitive ?? !1);
|
|
50581
50584
|
}
|
|
@@ -50649,7 +50652,7 @@ const creator$47 = (t) => {
|
|
|
50649
50652
|
};
|
|
50650
50653
|
creator$47.postcss = !0;
|
|
50651
50654
|
//#endregion
|
|
50652
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-color-function@5.0.6_postcss@8.5.
|
|
50655
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-color-function@5.0.6_postcss@8.5.19/node_modules/@csstools/postcss-color-function/dist/index.mjs
|
|
50653
50656
|
var import_postcss_clamp = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50654
50657
|
let valueParser$1 = __require("postcss-value-parser");
|
|
50655
50658
|
function parseValue(value) {
|
|
@@ -50756,7 +50759,7 @@ const postcssPlugin$15 = (o) => {
|
|
|
50756
50759
|
};
|
|
50757
50760
|
postcssPlugin$15.postcss = !0;
|
|
50758
50761
|
//#endregion
|
|
50759
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-color-function-display-p3-linear@2.0.6_postcss@8.5.
|
|
50762
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-color-function-display-p3-linear@2.0.6_postcss@8.5.19/node_modules/@csstools/postcss-color-function-display-p3-linear/dist/index.mjs
|
|
50760
50763
|
const m$6 = /\bdisplay-p3-linear\b/i;
|
|
50761
50764
|
const f$7 = /^color$/i;
|
|
50762
50765
|
const basePlugin$14 = (s) => ({
|
|
@@ -50787,7 +50790,7 @@ const postcssPlugin$14 = (o) => {
|
|
|
50787
50790
|
};
|
|
50788
50791
|
postcssPlugin$14.postcss = !0;
|
|
50789
50792
|
//#endregion
|
|
50790
|
-
//#region ../../node_modules/.pnpm/postcss-color-functional-notation@8.0.6_postcss@8.5.
|
|
50793
|
+
//#region ../../node_modules/.pnpm/postcss-color-functional-notation@8.0.6_postcss@8.5.19/node_modules/postcss-color-functional-notation/dist/index.mjs
|
|
50791
50794
|
const m$5 = /^(?:rgb|hsl)a?$/i;
|
|
50792
50795
|
const f$6 = /\b(?:rgb|hsl)a?\(/i;
|
|
50793
50796
|
const basePlugin$13 = (s) => ({
|
|
@@ -50818,7 +50821,7 @@ const postcssPlugin$13 = (o) => {
|
|
|
50818
50821
|
};
|
|
50819
50822
|
postcssPlugin$13.postcss = !0;
|
|
50820
50823
|
//#endregion
|
|
50821
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-function@4.0.6_postcss@8.5.
|
|
50824
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-function@4.0.6_postcss@8.5.19/node_modules/@csstools/postcss-color-mix-function/dist/index.mjs
|
|
50822
50825
|
const f$5 = /\bcolor-mix\(/i;
|
|
50823
50826
|
const g$6 = /^color-mix$/i;
|
|
50824
50827
|
const basePlugin$12 = (s) => ({
|
|
@@ -50856,7 +50859,7 @@ const postcssPlugin$12 = (e) => {
|
|
|
50856
50859
|
};
|
|
50857
50860
|
postcssPlugin$12.postcss = !0;
|
|
50858
50861
|
//#endregion
|
|
50859
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-variadic-function-arguments@2.0.6_postcss@8.5.
|
|
50862
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-variadic-function-arguments@2.0.6_postcss@8.5.19/node_modules/@csstools/postcss-color-mix-variadic-function-arguments/dist/index.mjs
|
|
50860
50863
|
const f$4 = /\bcolor-mix\(/i;
|
|
50861
50864
|
const g$5 = /^color-mix$/i;
|
|
50862
50865
|
const basePlugin$11 = (s) => ({
|
|
@@ -50894,7 +50897,7 @@ const postcssPlugin$11 = (e) => {
|
|
|
50894
50897
|
};
|
|
50895
50898
|
postcssPlugin$11.postcss = !0;
|
|
50896
50899
|
//#endregion
|
|
50897
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-container-rule-prelude-list@1.0.1_postcss@8.5.
|
|
50900
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-container-rule-prelude-list@1.0.1_postcss@8.5.19/node_modules/@csstools/postcss-container-rule-prelude-list/dist/index.mjs
|
|
50898
50901
|
const t$10 = /^container$/i;
|
|
50899
50902
|
const creator$46 = (o) => {
|
|
50900
50903
|
const a = Object.assign({ preserve: !1 }, o);
|
|
@@ -50912,7 +50915,7 @@ const creator$46 = (o) => {
|
|
|
50912
50915
|
};
|
|
50913
50916
|
creator$46.postcss = !0;
|
|
50914
50917
|
//#endregion
|
|
50915
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-content-alt-text@3.0.2_postcss@8.5.
|
|
50918
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-content-alt-text@3.0.2_postcss@8.5.19/node_modules/@csstools/postcss-content-alt-text/dist/index.mjs
|
|
50916
50919
|
function transform$3(s, t) {
|
|
50917
50920
|
const e = s[0];
|
|
50918
50921
|
if (!e.length) return "";
|
|
@@ -50958,7 +50961,7 @@ const creator$45 = (t) => {
|
|
|
50958
50961
|
};
|
|
50959
50962
|
creator$45.postcss = !0;
|
|
50960
50963
|
//#endregion
|
|
50961
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-contrast-color-function@3.0.6_postcss@8.5.
|
|
50964
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-contrast-color-function@3.0.6_postcss@8.5.19/node_modules/@csstools/postcss-contrast-color-function/dist/index.mjs
|
|
50962
50965
|
const u$6 = /\bcontrast-color\(/i;
|
|
50963
50966
|
const m$4 = /^contrast-color$/i;
|
|
50964
50967
|
const basePlugin$9 = (s) => ({
|
|
@@ -52894,7 +52897,7 @@ var b;
|
|
|
52894
52897
|
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";
|
|
52895
52898
|
})(b || (b = {}));
|
|
52896
52899
|
//#endregion
|
|
52897
|
-
//#region ../../node_modules/.pnpm/postcss-custom-media@12.0.1_postcss@8.5.
|
|
52900
|
+
//#region ../../node_modules/.pnpm/postcss-custom-media@12.0.1_postcss@8.5.19/node_modules/postcss-custom-media/dist/index.mjs
|
|
52898
52901
|
const C$2 = parse$1("csstools-implicit-layer")[0];
|
|
52899
52902
|
function collectCascadeLayerOrder$2(t) {
|
|
52900
52903
|
const n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = [];
|
|
@@ -53322,7 +53325,7 @@ const creator$44 = (e) => {
|
|
|
53322
53325
|
};
|
|
53323
53326
|
creator$44.postcss = !0;
|
|
53324
53327
|
//#endregion
|
|
53325
|
-
//#region ../../node_modules/.pnpm/postcss-custom-properties@15.0.1_postcss@8.5.
|
|
53328
|
+
//#region ../../node_modules/.pnpm/postcss-custom-properties@15.0.1_postcss@8.5.19/node_modules/postcss-custom-properties/dist/index.mjs
|
|
53326
53329
|
const o$20 = parse$1("csstools-implicit-layer")[0];
|
|
53327
53330
|
function collectCascadeLayerOrder$1(r) {
|
|
53328
53331
|
const n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), a = [];
|
|
@@ -53641,7 +53644,7 @@ const creator$43 = (e) => {
|
|
|
53641
53644
|
};
|
|
53642
53645
|
creator$43.postcss = !0;
|
|
53643
53646
|
//#endregion
|
|
53644
|
-
//#region ../../node_modules/.pnpm/postcss-custom-selectors@9.0.1_postcss@8.5.
|
|
53647
|
+
//#region ../../node_modules/.pnpm/postcss-custom-selectors@9.0.1_postcss@8.5.19/node_modules/postcss-custom-selectors/dist/index.mjs
|
|
53645
53648
|
const s$11 = parse$1("csstools-implicit-layer")[0];
|
|
53646
53649
|
function collectCascadeLayerOrder(e) {
|
|
53647
53650
|
const o = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), a = [];
|
|
@@ -53777,7 +53780,7 @@ const creator$42 = (e) => {
|
|
|
53777
53780
|
};
|
|
53778
53781
|
creator$42.postcss = !0;
|
|
53779
53782
|
//#endregion
|
|
53780
|
-
//#region ../../node_modules/.pnpm/postcss-dir-pseudo-class@10.0.0_postcss@8.5.
|
|
53783
|
+
//#region ../../node_modules/.pnpm/postcss-dir-pseudo-class@10.0.0_postcss@8.5.19/node_modules/postcss-dir-pseudo-class/dist/index.mjs
|
|
53781
53784
|
const creator$41 = (t) => {
|
|
53782
53785
|
const r = Object.assign({
|
|
53783
53786
|
dir: null,
|
|
@@ -53848,7 +53851,7 @@ const creator$41 = (t) => {
|
|
|
53848
53851
|
};
|
|
53849
53852
|
creator$41.postcss = !0;
|
|
53850
53853
|
//#endregion
|
|
53851
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-normalize-display-values@5.0.1_postcss@8.5.
|
|
53854
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-normalize-display-values@5.0.1_postcss@8.5.19/node_modules/@csstools/postcss-normalize-display-values/dist/index.mjs
|
|
53852
53855
|
var l$5 = /* @__PURE__ */ new Map([
|
|
53853
53856
|
["flow", "block"],
|
|
53854
53857
|
["block,flow", "block"],
|
|
@@ -53918,7 +53921,7 @@ const creator$40 = (i) => {
|
|
|
53918
53921
|
};
|
|
53919
53922
|
creator$40.postcss = !0;
|
|
53920
53923
|
//#endregion
|
|
53921
|
-
//#region ../../node_modules/.pnpm/postcss-double-position-gradients@7.0.2_postcss@8.5.
|
|
53924
|
+
//#region ../../node_modules/.pnpm/postcss-double-position-gradients@7.0.2_postcss@8.5.19/node_modules/postcss-double-position-gradients/dist/index.mjs
|
|
53922
53925
|
const o$18 = /(?:repeating-)?(?:conic|linear|radial)-gradient\(/i;
|
|
53923
53926
|
const i$5 = /^(?:repeating-)?(?:conic|linear|radial)-gradient$/i;
|
|
53924
53927
|
const n$7 = [
|
|
@@ -53999,7 +54002,7 @@ const postcssPlugin$9 = (t) => {
|
|
|
53999
54002
|
};
|
|
54000
54003
|
postcssPlugin$9.postcss = !0;
|
|
54001
54004
|
//#endregion
|
|
54002
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-exponential-functions@3.0.3_postcss@8.5.
|
|
54005
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-exponential-functions@3.0.3_postcss@8.5.19/node_modules/@csstools/postcss-exponential-functions/dist/index.mjs
|
|
54003
54006
|
const s$10 = /(?<![-\w])(?:exp|hypot|log|pow|sqrt)\(/i;
|
|
54004
54007
|
const creator$39 = (o) => {
|
|
54005
54008
|
const t = Object.assign({ preserve: !1 }, o);
|
|
@@ -54014,7 +54017,7 @@ const creator$39 = (o) => {
|
|
|
54014
54017
|
};
|
|
54015
54018
|
creator$39.postcss = !0;
|
|
54016
54019
|
//#endregion
|
|
54017
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-float-and-clear@4.0.0_postcss@8.5.
|
|
54020
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-float-and-clear@4.0.0_postcss@8.5.19/node_modules/@csstools/postcss-logical-float-and-clear/dist/index.mjs
|
|
54018
54021
|
const t$8 = "inline-start";
|
|
54019
54022
|
const o$17 = "inline-end";
|
|
54020
54023
|
var e$17;
|
|
@@ -54060,7 +54063,7 @@ const creator$38 = (n) => {
|
|
|
54060
54063
|
};
|
|
54061
54064
|
creator$38.postcss = !0;
|
|
54062
54065
|
//#endregion
|
|
54063
|
-
//#region ../../node_modules/.pnpm/postcss-focus-visible@11.0.0_postcss@8.5.
|
|
54066
|
+
//#region ../../node_modules/.pnpm/postcss-focus-visible@11.0.0_postcss@8.5.19/node_modules/postcss-focus-visible/dist/index.mjs
|
|
54064
54067
|
const s$9 = "js-focus-visible";
|
|
54065
54068
|
const o$16 = ":focus-visible";
|
|
54066
54069
|
const creator$37 = (t) => {
|
|
@@ -54116,7 +54119,7 @@ const creator$37 = (t) => {
|
|
|
54116
54119
|
};
|
|
54117
54120
|
creator$37.postcss = !0;
|
|
54118
54121
|
//#endregion
|
|
54119
|
-
//#region ../../node_modules/.pnpm/postcss-focus-within@10.0.0_postcss@8.5.
|
|
54122
|
+
//#region ../../node_modules/.pnpm/postcss-focus-within@10.0.0_postcss@8.5.19/node_modules/postcss-focus-within/dist/index.mjs
|
|
54120
54123
|
const s$8 = [
|
|
54121
54124
|
" ",
|
|
54122
54125
|
">",
|
|
@@ -54193,7 +54196,7 @@ const creator$36 = (s) => {
|
|
|
54193
54196
|
};
|
|
54194
54197
|
creator$36.postcss = !0;
|
|
54195
54198
|
//#endregion
|
|
54196
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-font-format-keywords@5.0.0_postcss@8.5.
|
|
54199
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-font-format-keywords@5.0.0_postcss@8.5.19/node_modules/@csstools/postcss-font-format-keywords/dist/index.mjs
|
|
54197
54200
|
const t$6 = [
|
|
54198
54201
|
"woff",
|
|
54199
54202
|
"truetype",
|
|
@@ -54229,7 +54232,7 @@ const creator$35 = (r) => {
|
|
|
54229
54232
|
};
|
|
54230
54233
|
creator$35.postcss = !0;
|
|
54231
54234
|
//#endregion
|
|
54232
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-font-width-property@1.0.0_postcss@8.5.
|
|
54235
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-font-width-property@1.0.0_postcss@8.5.19/node_modules/@csstools/postcss-font-width-property/dist/index.mjs
|
|
54233
54236
|
var import_postcss_font_variant = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
54234
54237
|
/**
|
|
54235
54238
|
* font variant convertion map
|
|
@@ -54343,7 +54346,7 @@ function hasFallback(t) {
|
|
|
54343
54346
|
}
|
|
54344
54347
|
creator$34.postcss = !0;
|
|
54345
54348
|
//#endregion
|
|
54346
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-gamut-mapping@3.0.6_postcss@8.5.
|
|
54349
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-gamut-mapping@3.0.6_postcss@8.5.19/node_modules/@csstools/postcss-gamut-mapping/dist/index.mjs
|
|
54347
54350
|
const p = /\bcolor-gamut\b/i;
|
|
54348
54351
|
function hasConditionalAncestor(e) {
|
|
54349
54352
|
let o = e.parent;
|
|
@@ -54440,7 +54443,7 @@ const creator$33 = () => ({
|
|
|
54440
54443
|
});
|
|
54441
54444
|
creator$33.postcss = !0;
|
|
54442
54445
|
//#endregion
|
|
54443
|
-
//#region ../../node_modules/.pnpm/postcss-gap-properties@7.0.0_postcss@8.5.
|
|
54446
|
+
//#region ../../node_modules/.pnpm/postcss-gap-properties@7.0.0_postcss@8.5.19/node_modules/postcss-gap-properties/dist/index.mjs
|
|
54444
54447
|
const e$13 = [
|
|
54445
54448
|
"column-gap",
|
|
54446
54449
|
"gap",
|
|
@@ -54460,7 +54463,7 @@ const creator$32 = (o) => {
|
|
|
54460
54463
|
};
|
|
54461
54464
|
creator$32.postcss = !0;
|
|
54462
54465
|
//#endregion
|
|
54463
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-gradients-interpolation-method@6.0.6_postcss@8.5.
|
|
54466
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-gradients-interpolation-method@6.0.6_postcss@8.5.19/node_modules/@csstools/postcss-gradients-interpolation-method/dist/index.mjs
|
|
54464
54467
|
const x = /(?:repeating-)?(?:linear|radial|conic)-gradient\(/i;
|
|
54465
54468
|
const W = /\bin\b/i;
|
|
54466
54469
|
const P$1 = { test: (o) => x.test(o) && W.test(o) };
|
|
@@ -54755,7 +54758,7 @@ const postcssPlugin$8 = (e) => {
|
|
|
54755
54758
|
};
|
|
54756
54759
|
postcssPlugin$8.postcss = !0;
|
|
54757
54760
|
//#endregion
|
|
54758
|
-
//#region ../../node_modules/.pnpm/css-has-pseudo@8.0.0_postcss@8.5.
|
|
54761
|
+
//#region ../../node_modules/.pnpm/css-has-pseudo@8.0.0_postcss@8.5.19/node_modules/css-has-pseudo/dist/index.mjs
|
|
54759
54762
|
function encodeCSS(e) {
|
|
54760
54763
|
if ("" === e) return "";
|
|
54761
54764
|
let t, s = "";
|
|
@@ -54866,7 +54869,7 @@ function isWithinSupportCheck(e) {
|
|
|
54866
54869
|
}
|
|
54867
54870
|
creator$31.postcss = !0;
|
|
54868
54871
|
//#endregion
|
|
54869
|
-
//#region ../../node_modules/.pnpm/postcss-color-hex-alpha@11.0.0_postcss@8.5.
|
|
54872
|
+
//#region ../../node_modules/.pnpm/postcss-color-hex-alpha@11.0.0_postcss@8.5.19/node_modules/postcss-color-hex-alpha/dist/index.mjs
|
|
54870
54873
|
const creator$30 = (a) => {
|
|
54871
54874
|
const o = Object.assign({ preserve: !1 }, a);
|
|
54872
54875
|
return {
|
|
@@ -54899,7 +54902,7 @@ function hexa2rgba(e) {
|
|
|
54899
54902
|
e.value = `rgba(${r},${l},${n},${c})`;
|
|
54900
54903
|
}
|
|
54901
54904
|
//#endregion
|
|
54902
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-hwb-function@5.0.6_postcss@8.5.
|
|
54905
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-hwb-function@5.0.6_postcss@8.5.19/node_modules/@csstools/postcss-hwb-function/dist/index.mjs
|
|
54903
54906
|
const u$3 = /\bhwb\(/i;
|
|
54904
54907
|
const m$2 = /^hwb$/i;
|
|
54905
54908
|
const basePlugin$6 = (s) => ({
|
|
@@ -54930,7 +54933,7 @@ const postcssPlugin$7 = (o) => {
|
|
|
54930
54933
|
};
|
|
54931
54934
|
postcssPlugin$7.postcss = !0;
|
|
54932
54935
|
//#endregion
|
|
54933
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-ic-unit@5.0.2_postcss@8.5.
|
|
54936
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-ic-unit@5.0.2_postcss@8.5.19/node_modules/@csstools/postcss-ic-unit/dist/index.mjs
|
|
54934
54937
|
const o$13 = /ic\b/i;
|
|
54935
54938
|
const i$4 = /\(font-size: \d+ic\)/i;
|
|
54936
54939
|
const basePlugin$5 = (s) => ({
|
|
@@ -54962,7 +54965,7 @@ const postcssPlugin$6 = (e) => {
|
|
|
54962
54965
|
};
|
|
54963
54966
|
postcssPlugin$6.postcss = !0;
|
|
54964
54967
|
//#endregion
|
|
54965
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-image-function@1.0.1_postcss@8.5.
|
|
54968
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-image-function@1.0.1_postcss@8.5.19/node_modules/@csstools/postcss-image-function/dist/index.mjs
|
|
54966
54969
|
const u$2 = /\bimage\(/i;
|
|
54967
54970
|
const g$3 = /^image$/i;
|
|
54968
54971
|
const basePlugin$4 = (e) => ({
|
|
@@ -55007,7 +55010,7 @@ const postcssPlugin$5 = (s) => {
|
|
|
55007
55010
|
};
|
|
55008
55011
|
postcssPlugin$5.postcss = !0;
|
|
55009
55012
|
//#endregion
|
|
55010
|
-
//#region ../../node_modules/.pnpm/postcss-image-set-function@8.0.0_postcss@8.5.
|
|
55013
|
+
//#region ../../node_modules/.pnpm/postcss-image-set-function@8.0.0_postcss@8.5.19/node_modules/postcss-image-set-function/dist/index.mjs
|
|
55011
55014
|
function isComma$1(e) {
|
|
55012
55015
|
return !!e && "div" === e.type && "," === e.value;
|
|
55013
55016
|
}
|
|
@@ -58193,7 +58196,7 @@ function selectorNodeContainsNothingOrOnlyUniversal(e) {
|
|
|
58193
58196
|
return 0 === t.length || 1 === t.length && "universal" === t[0].type;
|
|
58194
58197
|
}
|
|
58195
58198
|
//#endregion
|
|
58196
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-is-pseudo-class@6.0.0_postcss@8.5.
|
|
58199
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-is-pseudo-class@6.0.0_postcss@8.5.19/node_modules/@csstools/postcss-is-pseudo-class/dist/index.mjs
|
|
58197
58200
|
function alwaysValidSelector(s) {
|
|
58198
58201
|
const o = (0, import_dist.default)().astSync(s);
|
|
58199
58202
|
let n = !0;
|
|
@@ -58463,7 +58466,7 @@ const creator$28 = (e) => {
|
|
|
58463
58466
|
};
|
|
58464
58467
|
creator$28.postcss = !0;
|
|
58465
58468
|
//#endregion
|
|
58466
|
-
//#region ../../node_modules/.pnpm/postcss-lab-function@8.0.6_postcss@8.5.
|
|
58469
|
+
//#region ../../node_modules/.pnpm/postcss-lab-function@8.0.6_postcss@8.5.19/node_modules/postcss-lab-function/dist/index.mjs
|
|
58467
58470
|
const g$2 = /\b(?:lab|lch)\(/i;
|
|
58468
58471
|
const f$2 = /^(?:lab|lch)$/i;
|
|
58469
58472
|
const basePlugin$3 = (s) => ({
|
|
@@ -58501,7 +58504,7 @@ const postcssPlugin$4 = (e) => {
|
|
|
58501
58504
|
};
|
|
58502
58505
|
postcssPlugin$4.postcss = !0;
|
|
58503
58506
|
//#endregion
|
|
58504
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-light-dark-function@3.0.2_postcss@8.5.
|
|
58507
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-light-dark-function@3.0.2_postcss@8.5.19/node_modules/@csstools/postcss-light-dark-function/dist/index.mjs
|
|
58505
58508
|
const k$1 = "--csstools-color-scheme--light";
|
|
58506
58509
|
const D = "initial";
|
|
58507
58510
|
function toggleNameGenerator(e) {
|
|
@@ -58702,7 +58705,7 @@ const postcssPlugin$3 = (r) => {
|
|
|
58702
58705
|
};
|
|
58703
58706
|
postcssPlugin$3.postcss = !0;
|
|
58704
58707
|
//#endregion
|
|
58705
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-overflow@3.0.0_postcss@8.5.
|
|
58708
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-overflow@3.0.0_postcss@8.5.19/node_modules/@csstools/postcss-logical-overflow/dist/index.mjs
|
|
58706
58709
|
var o$10;
|
|
58707
58710
|
function transformAxes$1(o, t) {
|
|
58708
58711
|
const e = t ? "-x" : "-y", i = t ? "-y" : "-x", n = o.prop.toLowerCase().replace("-inline", e).replace("-block", i), s = o.value;
|
|
@@ -58734,7 +58737,7 @@ const creator$27 = (t) => {
|
|
|
58734
58737
|
};
|
|
58735
58738
|
creator$27.postcss = !0;
|
|
58736
58739
|
//#endregion
|
|
58737
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-overscroll-behavior@3.0.0_postcss@8.5.
|
|
58740
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-overscroll-behavior@3.0.0_postcss@8.5.19/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.mjs
|
|
58738
58741
|
var o$9;
|
|
58739
58742
|
function transformAxes(o, t) {
|
|
58740
58743
|
const e = t ? "-x" : "-y", i = t ? "-y" : "-x", r = o.prop.toLowerCase().replace("-inline", e).replace("-block", i), s = o.value;
|
|
@@ -58766,7 +58769,7 @@ const creator$26 = (t) => {
|
|
|
58766
58769
|
};
|
|
58767
58770
|
creator$26.postcss = !0;
|
|
58768
58771
|
//#endregion
|
|
58769
|
-
//#region ../../node_modules/.pnpm/postcss-logical@9.0.0_postcss@8.5.
|
|
58772
|
+
//#region ../../node_modules/.pnpm/postcss-logical@9.0.0_postcss@8.5.19/node_modules/postcss-logical/dist/index.mjs
|
|
58770
58773
|
var e$9;
|
|
58771
58774
|
var n$2;
|
|
58772
58775
|
(function(r) {
|
|
@@ -59129,7 +59132,7 @@ const creator$25 = (r) => {
|
|
|
59129
59132
|
};
|
|
59130
59133
|
creator$25.postcss = !0;
|
|
59131
59134
|
//#endregion
|
|
59132
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-resize@4.0.0_postcss@8.5.
|
|
59135
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-resize@4.0.0_postcss@8.5.19/node_modules/@csstools/postcss-logical-resize/dist/index.mjs
|
|
59133
59136
|
var t$3;
|
|
59134
59137
|
var e$8;
|
|
59135
59138
|
var i$1;
|
|
@@ -59204,7 +59207,7 @@ const creator$24 = (o) => {
|
|
|
59204
59207
|
};
|
|
59205
59208
|
creator$24.postcss = !0;
|
|
59206
59209
|
//#endregion
|
|
59207
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-viewport-units@4.0.0_postcss@8.5.
|
|
59210
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-viewport-units@4.0.0_postcss@8.5.19/node_modules/@csstools/postcss-logical-viewport-units/dist/index.mjs
|
|
59208
59211
|
var s$6;
|
|
59209
59212
|
function transform$1(t, o) {
|
|
59210
59213
|
const s = tokenizer({ css: t }), c = [];
|
|
@@ -59276,7 +59279,7 @@ const creator$23 = (e) => {
|
|
|
59276
59279
|
};
|
|
59277
59280
|
creator$23.postcss = !0;
|
|
59278
59281
|
//#endregion
|
|
59279
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-media-queries-aspect-ratio-number-values@4.0.0_postcss@8.5.
|
|
59282
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-media-queries-aspect-ratio-number-values@4.0.0_postcss@8.5.19/node_modules/@csstools/postcss-media-queries-aspect-ratio-number-values/dist/index.mjs
|
|
59280
59283
|
const w = 1e5;
|
|
59281
59284
|
const h$1 = 2147483647;
|
|
59282
59285
|
function transformMediaFeatureValue(t) {
|
|
@@ -59568,7 +59571,7 @@ const creator$22 = (e) => {
|
|
|
59568
59571
|
};
|
|
59569
59572
|
creator$22.postcss = !0;
|
|
59570
59573
|
//#endregion
|
|
59571
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-media-minmax@3.0.3_postcss@8.5.
|
|
59574
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-media-minmax@3.0.3_postcss@8.5.19/node_modules/@csstools/postcss-media-minmax/dist/index.mjs
|
|
59572
59575
|
const C = {
|
|
59573
59576
|
width: "px",
|
|
59574
59577
|
height: "px",
|
|
@@ -59954,7 +59957,7 @@ const creator$21 = () => ({
|
|
|
59954
59957
|
});
|
|
59955
59958
|
creator$21.postcss = !0;
|
|
59956
59959
|
//#endregion
|
|
59957
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-mixins@1.0.0_postcss@8.5.
|
|
59960
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-mixins@1.0.0_postcss@8.5.19/node_modules/@csstools/postcss-mixins/dist/index.mjs
|
|
59958
59961
|
const o$7 = /^apply$/i;
|
|
59959
59962
|
function processableApplyRule(o) {
|
|
59960
59963
|
if (!o.params || !o.params.includes("--")) return !1;
|
|
@@ -60012,7 +60015,7 @@ const creator$20 = (e) => {
|
|
|
60012
60015
|
};
|
|
60013
60016
|
creator$20.postcss = !0;
|
|
60014
60017
|
//#endregion
|
|
60015
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-nested-calc@5.0.0_postcss@8.5.
|
|
60018
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-nested-calc@5.0.0_postcss@8.5.19/node_modules/@csstools/postcss-nested-calc/dist/index.mjs
|
|
60016
60019
|
const r$4 = /calc\(/gi;
|
|
60017
60020
|
const creator$19 = (s) => {
|
|
60018
60021
|
const o = Object.assign({ preserve: !0 }, s);
|
|
@@ -60144,7 +60147,7 @@ function isCompoundSelector$1(o) {
|
|
|
60144
60147
|
return 1 === o.length && !o[0].nodes.some((o) => "combinator" === o.type || import_dist$1.default.isPseudoElement(o));
|
|
60145
60148
|
}
|
|
60146
60149
|
//#endregion
|
|
60147
|
-
//#region ../../node_modules/.pnpm/postcss-nesting@14.0.0_postcss@8.5.
|
|
60150
|
+
//#region ../../node_modules/.pnpm/postcss-nesting@14.0.0_postcss@8.5.19/node_modules/postcss-nesting/dist/index.mjs
|
|
60148
60151
|
const r$3 = import_dist$1.default.pseudo({ value: ":is" });
|
|
60149
60152
|
function sortCompoundSelectorsInsideComplexSelector(t) {
|
|
60150
60153
|
if (!t || !t.nodes) return;
|
|
@@ -60519,7 +60522,7 @@ const creator$18 = (e) => {
|
|
|
60519
60522
|
};
|
|
60520
60523
|
creator$18.postcss = !0;
|
|
60521
60524
|
//#endregion
|
|
60522
|
-
//#region ../../node_modules/.pnpm/postcss-selector-not@9.0.0_postcss@8.5.
|
|
60525
|
+
//#region ../../node_modules/.pnpm/postcss-selector-not@9.0.0_postcss@8.5.19/node_modules/postcss-selector-not/dist/index.mjs
|
|
60523
60526
|
function cleanupWhitespace(e) {
|
|
60524
60527
|
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 = ""));
|
|
60525
60528
|
}
|
|
@@ -60550,7 +60553,7 @@ const creator$17 = () => ({
|
|
|
60550
60553
|
});
|
|
60551
60554
|
creator$17.postcss = !0;
|
|
60552
60555
|
//#endregion
|
|
60553
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-oklab-function@5.0.6_postcss@8.5.
|
|
60556
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-oklab-function@5.0.6_postcss@8.5.19/node_modules/@csstools/postcss-oklab-function/dist/index.mjs
|
|
60554
60557
|
const g$1 = /\b(?:oklab|oklch)\(/i;
|
|
60555
60558
|
const f$1 = /^(?:oklab|oklch)$/i;
|
|
60556
60559
|
const basePlugin$1 = (s) => ({
|
|
@@ -60588,7 +60591,7 @@ const postcssPlugin$2 = (e) => {
|
|
|
60588
60591
|
};
|
|
60589
60592
|
postcssPlugin$2.postcss = !0;
|
|
60590
60593
|
//#endregion
|
|
60591
|
-
//#region ../../node_modules/.pnpm/postcss-overflow-shorthand@7.0.0_postcss@8.5.
|
|
60594
|
+
//#region ../../node_modules/.pnpm/postcss-overflow-shorthand@7.0.0_postcss@8.5.19/node_modules/postcss-overflow-shorthand/dist/index.mjs
|
|
60592
60595
|
var import_postcss_opacity_percentage = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
60593
60596
|
const doNothingValues = /* @__PURE__ */ new Set([
|
|
60594
60597
|
"inherit",
|
|
@@ -60637,7 +60640,7 @@ const creator$16 = (o) => {
|
|
|
60637
60640
|
};
|
|
60638
60641
|
creator$16.postcss = !0;
|
|
60639
60642
|
//#endregion
|
|
60640
|
-
//#region ../../node_modules/.pnpm/postcss-place@11.0.0_postcss@8.5.
|
|
60643
|
+
//#region ../../node_modules/.pnpm/postcss-place@11.0.0_postcss@8.5.19/node_modules/postcss-place/dist/index.mjs
|
|
60641
60644
|
var import_postcss_replace_overflow_wrap = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
60642
60645
|
module.exports = function(opts) {
|
|
60643
60646
|
opts = opts || {};
|
|
@@ -60683,7 +60686,7 @@ const creator$15 = (e) => {
|
|
|
60683
60686
|
};
|
|
60684
60687
|
creator$15.postcss = !0;
|
|
60685
60688
|
//#endregion
|
|
60686
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-position-area-property@2.0.0_postcss@8.5.
|
|
60689
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-position-area-property@2.0.0_postcss@8.5.19/node_modules/@csstools/postcss-position-area-property/dist/index.mjs
|
|
60687
60690
|
const o$4 = /^position-area$/i;
|
|
60688
60691
|
const creator$14 = () => ({
|
|
60689
60692
|
postcssPlugin: "postcss-position-area-property",
|
|
@@ -60696,7 +60699,7 @@ const creator$14 = () => ({
|
|
|
60696
60699
|
});
|
|
60697
60700
|
creator$14.postcss = !0;
|
|
60698
60701
|
//#endregion
|
|
60699
|
-
//#region ../../node_modules/.pnpm/css-prefers-color-scheme@11.0.0_postcss@8.5.
|
|
60702
|
+
//#region ../../node_modules/.pnpm/css-prefers-color-scheme@11.0.0_postcss@8.5.19/node_modules/css-prefers-color-scheme/dist/index.mjs
|
|
60700
60703
|
const e$4 = /\(\s*prefers-color-scheme\s*:\s*(dark|light)\s*\)/gi;
|
|
60701
60704
|
const s$4 = "(color: 48842621)";
|
|
60702
60705
|
const r$2 = "(color: 70318723)";
|
|
@@ -60720,7 +60723,7 @@ const creator$13 = (o) => {
|
|
|
60720
60723
|
};
|
|
60721
60724
|
creator$13.postcss = !0;
|
|
60722
60725
|
//#endregion
|
|
60723
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-property-rule-prelude-list@2.0.0_postcss@8.5.
|
|
60726
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-property-rule-prelude-list@2.0.0_postcss@8.5.19/node_modules/@csstools/postcss-property-rule-prelude-list/dist/index.mjs
|
|
60724
60727
|
const o$3 = /^property$/i;
|
|
60725
60728
|
const creator$12 = () => ({
|
|
60726
60729
|
postcssPlugin: "postcss-property-rule-prelude-list",
|
|
@@ -60735,7 +60738,7 @@ const creator$12 = () => ({
|
|
|
60735
60738
|
});
|
|
60736
60739
|
creator$12.postcss = !0;
|
|
60737
60740
|
//#endregion
|
|
60738
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-random-function@3.0.3_postcss@8.5.
|
|
60741
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-random-function@3.0.3_postcss@8.5.19/node_modules/@csstools/postcss-random-function/dist/index.mjs
|
|
60739
60742
|
const o$2 = String.fromCodePoint(0);
|
|
60740
60743
|
function randomCacheKeyFromPostcssDeclaration(e) {
|
|
60741
60744
|
let r = "", t = e.parent;
|
|
@@ -60773,7 +60776,7 @@ const creator$11 = (o) => {
|
|
|
60773
60776
|
};
|
|
60774
60777
|
creator$11.postcss = !0;
|
|
60775
60778
|
//#endregion
|
|
60776
|
-
//#region ../../node_modules/.pnpm/postcss-color-rebeccapurple@11.0.0_postcss@8.5.
|
|
60779
|
+
//#region ../../node_modules/.pnpm/postcss-color-rebeccapurple@11.0.0_postcss@8.5.19/node_modules/postcss-color-rebeccapurple/dist/index.mjs
|
|
60777
60780
|
const s$3 = /rebeccapurple/i;
|
|
60778
60781
|
const t$1 = /^rebeccapurple$/i;
|
|
60779
60782
|
const creator$10 = (o) => {
|
|
@@ -60794,7 +60797,7 @@ const creator$10 = (o) => {
|
|
|
60794
60797
|
};
|
|
60795
60798
|
creator$10.postcss = !0;
|
|
60796
60799
|
//#endregion
|
|
60797
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-relative-color-syntax@4.0.6_postcss@8.5.
|
|
60800
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-relative-color-syntax@4.0.6_postcss@8.5.19/node_modules/@csstools/postcss-relative-color-syntax/dist/index.mjs
|
|
60798
60801
|
const g = /\b(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)\(/i;
|
|
60799
60802
|
const h = /\b(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)\(\s*from/i;
|
|
60800
60803
|
const m$1 = /^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)$/i;
|
|
@@ -60834,7 +60837,7 @@ const postcssPlugin$1 = (e) => {
|
|
|
60834
60837
|
};
|
|
60835
60838
|
postcssPlugin$1.postcss = !0;
|
|
60836
60839
|
//#endregion
|
|
60837
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-scope-pseudo-class@5.0.0_postcss@8.5.
|
|
60840
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-scope-pseudo-class@5.0.0_postcss@8.5.19/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.mjs
|
|
60838
60841
|
const creator$9 = (s) => {
|
|
60839
60842
|
const r = Object.assign({ preserve: !1 }, s);
|
|
60840
60843
|
return {
|
|
@@ -60872,7 +60875,7 @@ const creator$9 = (s) => {
|
|
|
60872
60875
|
};
|
|
60873
60876
|
creator$9.postcss = !0;
|
|
60874
60877
|
//#endregion
|
|
60875
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-sign-functions@2.0.3_postcss@8.5.
|
|
60878
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-sign-functions@2.0.3_postcss@8.5.19/node_modules/@csstools/postcss-sign-functions/dist/index.mjs
|
|
60876
60879
|
const m = /(?<![-\w])(?:sign|abs)\(/i;
|
|
60877
60880
|
const f = /(?<![-\w])(?:sign|abs)\(/i;
|
|
60878
60881
|
const creator$8 = (o) => {
|
|
@@ -60984,7 +60987,7 @@ function replacer(e) {
|
|
|
60984
60987
|
}
|
|
60985
60988
|
creator$8.postcss = !0;
|
|
60986
60989
|
//#endregion
|
|
60987
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-stepped-value-functions@5.0.3_postcss@8.5.
|
|
60990
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-stepped-value-functions@5.0.3_postcss@8.5.19/node_modules/@csstools/postcss-stepped-value-functions/dist/index.mjs
|
|
60988
60991
|
const s$2 = /(?<![-\w])(?:mod|rem|round)\(/i;
|
|
60989
60992
|
const creator$7 = (o) => {
|
|
60990
60993
|
const t = Object.assign({ preserve: !1 }, o);
|
|
@@ -61002,7 +61005,7 @@ const creator$7 = (o) => {
|
|
|
61002
61005
|
};
|
|
61003
61006
|
creator$7.postcss = !0;
|
|
61004
61007
|
//#endregion
|
|
61005
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-syntax-descriptor-syntax-production@2.0.0_postcss@8.5.
|
|
61008
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-syntax-descriptor-syntax-production@2.0.0_postcss@8.5.19/node_modules/@csstools/postcss-syntax-descriptor-syntax-production/dist/index.mjs
|
|
61006
61009
|
const o$1 = /^property$/i;
|
|
61007
61010
|
const n$1 = /^syntax$/i;
|
|
61008
61011
|
const creator$6 = (i) => {
|
|
@@ -61075,7 +61078,7 @@ const creator$6 = (i) => {
|
|
|
61075
61078
|
};
|
|
61076
61079
|
creator$6.postcss = !0;
|
|
61077
61080
|
//#endregion
|
|
61078
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-system-ui-font-family@2.0.0_postcss@8.5.
|
|
61081
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-system-ui-font-family@2.0.0_postcss@8.5.19/node_modules/@csstools/postcss-system-ui-font-family/dist/index.mjs
|
|
61079
61082
|
const a = /^font(?:-family)?$/i;
|
|
61080
61083
|
const c$2 = [
|
|
61081
61084
|
"system-ui",
|
|
@@ -61131,7 +61134,7 @@ const creator$5 = (p) => {
|
|
|
61131
61134
|
};
|
|
61132
61135
|
creator$5.postcss = !0;
|
|
61133
61136
|
//#endregion
|
|
61134
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-text-decoration-shorthand@5.0.4_postcss@8.5.
|
|
61137
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-text-decoration-shorthand@5.0.4_postcss@8.5.19/node_modules/@csstools/postcss-text-decoration-shorthand/dist/index.mjs
|
|
61135
61138
|
const o = /^text-decoration$/i;
|
|
61136
61139
|
const creator$4 = (t) => {
|
|
61137
61140
|
const c = Object.assign({ preserve: !0 }, t);
|
|
@@ -61348,7 +61351,7 @@ function genericNodeParts() {
|
|
|
61348
61351
|
};
|
|
61349
61352
|
}
|
|
61350
61353
|
//#endregion
|
|
61351
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-trigonometric-functions@5.0.3_postcss@8.5.
|
|
61354
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-trigonometric-functions@5.0.3_postcss@8.5.19/node_modules/@csstools/postcss-trigonometric-functions/dist/index.mjs
|
|
61352
61355
|
const e$2 = /(?<![-\w])(?:asin|acos|atan|atan2|sin|cos|tan)\(/i;
|
|
61353
61356
|
const creator$3 = (o) => {
|
|
61354
61357
|
const t = Object.assign({ preserve: !1 }, o);
|
|
@@ -61366,7 +61369,7 @@ const creator$3 = (o) => {
|
|
|
61366
61369
|
};
|
|
61367
61370
|
creator$3.postcss = !0;
|
|
61368
61371
|
//#endregion
|
|
61369
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-unset-value@5.0.0_postcss@8.5.
|
|
61372
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-unset-value@5.0.0_postcss@8.5.19/node_modules/@csstools/postcss-unset-value/dist/index.mjs
|
|
61370
61373
|
const e$1 = /* @__PURE__ */ new Set([
|
|
61371
61374
|
"block-ellipsis",
|
|
61372
61375
|
"border-boundary",
|
|
@@ -61806,7 +61809,7 @@ const creator$2 = (o) => {
|
|
|
61806
61809
|
};
|
|
61807
61810
|
creator$2.postcss = !0;
|
|
61808
61811
|
//#endregion
|
|
61809
|
-
//#region ../../node_modules/.pnpm/postcss-preset-env@11.3.2_postcss@8.5.
|
|
61812
|
+
//#region ../../node_modules/.pnpm/postcss-preset-env@11.3.2_postcss@8.5.19/node_modules/postcss-preset-env/dist/index.mjs
|
|
61810
61813
|
const ks = {
|
|
61811
61814
|
"blank-pseudo-class": "https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo/README.md#browser",
|
|
61812
61815
|
"focus-visible-pseudo-class": "https://github.com/WICG/focus-visible",
|
|
@@ -63597,7 +63600,7 @@ function resolveSourceScanPath(value) {
|
|
|
63597
63600
|
}
|
|
63598
63601
|
}
|
|
63599
63602
|
function normalizeEntryPattern(entry) {
|
|
63600
|
-
return path.isAbsolute(entry.pattern) ? toPosixPath(path.relative(resolveSourceScanPath(entry.base), entry.pattern)) : entry.pattern;
|
|
63603
|
+
return path.isAbsolute(entry.pattern) ? toPosixPath(path.relative(resolveSourceScanPath(entry.base), resolveSourceScanPath(entry.pattern))) : entry.pattern;
|
|
63601
63604
|
}
|
|
63602
63605
|
function isFileMatchedByTailwindSourceEntry(file, entry) {
|
|
63603
63606
|
const relative = toPosixPath(path.relative(resolveSourceScanPath(entry.base), file));
|
|
@@ -66621,24 +66624,32 @@ function removeTailwindPostcssPlugins(plugins) {
|
|
|
66621
66624
|
}
|
|
66622
66625
|
return removed;
|
|
66623
66626
|
}
|
|
66624
|
-
async function
|
|
66627
|
+
async function resolvePostcssConfig(root, ctx = {}) {
|
|
66625
66628
|
try {
|
|
66626
|
-
const loaded = await postcssrc(
|
|
66627
|
-
const plugins = Array.isArray(loaded.plugins) ? [...loaded.plugins] : [];
|
|
66628
|
-
const removed = removeTailwindPostcssPlugins(plugins);
|
|
66629
|
-
if (removed === 0) return;
|
|
66629
|
+
const loaded = await postcssrc(ctx, root);
|
|
66630
66630
|
return {
|
|
66631
66631
|
options: loaded.options,
|
|
66632
|
-
plugins
|
|
66633
|
-
removed
|
|
66632
|
+
plugins: Array.isArray(loaded.plugins) ? [...loaded.plugins] : []
|
|
66634
66633
|
};
|
|
66635
66634
|
} catch (error) {
|
|
66636
66635
|
if ((error instanceof Error ? error.message : String(error)).includes("No PostCSS Config found")) return;
|
|
66637
66636
|
throw error;
|
|
66638
66637
|
}
|
|
66639
66638
|
}
|
|
66639
|
+
async function resolveFilteredPostcssConfig(root) {
|
|
66640
|
+
const loaded = await resolvePostcssConfig(root);
|
|
66641
|
+
if (!loaded) return;
|
|
66642
|
+
const plugins = [...loaded.plugins];
|
|
66643
|
+
const removed = removeTailwindPostcssPlugins(plugins);
|
|
66644
|
+
if (removed === 0) return;
|
|
66645
|
+
return {
|
|
66646
|
+
options: loaded.options,
|
|
66647
|
+
plugins,
|
|
66648
|
+
removed
|
|
66649
|
+
};
|
|
66650
|
+
}
|
|
66640
66651
|
//#endregion
|
|
66641
|
-
//#region src/vite-css-rules.ts
|
|
66652
|
+
//#region src/vite-css-rules/structure.ts
|
|
66642
66653
|
const MINI_PROGRAM_PREFLIGHT_SELECTOR_KEY = "view,text,::after,::before";
|
|
66643
66654
|
const MINI_PROGRAM_PREFLIGHT_SELECTOR_KEYS = /* @__PURE__ */ new Set([
|
|
66644
66655
|
"view",
|
|
@@ -66791,148 +66802,8 @@ function collectCssRuleDeclarationRecords(root, resolveRuleKey = getCssRuleStruc
|
|
|
66791
66802
|
});
|
|
66792
66803
|
return map;
|
|
66793
66804
|
}
|
|
66794
|
-
|
|
66795
|
-
|
|
66796
|
-
const value = node.value.toLowerCase();
|
|
66797
|
-
if (value === "view" || value === "text" || value === "page" || value === "wx-root-portal-content") return value;
|
|
66798
|
-
return;
|
|
66799
|
-
}
|
|
66800
|
-
if (node.type === "class") return node.value.toLowerCase() === "tw-root" ? ".tw-root" : void 0;
|
|
66801
|
-
if (node.type === "pseudo") {
|
|
66802
|
-
if (node.nodes && node.nodes.length > 0) return;
|
|
66803
|
-
const value = node.value.toLowerCase();
|
|
66804
|
-
if (value === ":before" || value === "::before") return "::before";
|
|
66805
|
-
if (value === ":after" || value === "::after") return "::after";
|
|
66806
|
-
if (value === ":host") return ":host";
|
|
66807
|
-
}
|
|
66808
|
-
}
|
|
66809
|
-
function normalizeSimpleMiniProgramSelector(selector) {
|
|
66810
|
-
if (selector.nodes.length !== 1) return;
|
|
66811
|
-
return normalizeSimpleMiniProgramSelectorNode(selector.nodes[0]);
|
|
66812
|
-
}
|
|
66813
|
-
function collectMiniProgramSelectorSet(selector) {
|
|
66814
|
-
try {
|
|
66815
|
-
const selectorSet = /* @__PURE__ */ new Set();
|
|
66816
|
-
const ast = (0, import_dist$1.default)().astSync(selector);
|
|
66817
|
-
for (const child of ast.nodes) {
|
|
66818
|
-
const key = normalizeSimpleMiniProgramSelector(child);
|
|
66819
|
-
if (!key || selectorSet.has(key)) return;
|
|
66820
|
-
selectorSet.add(key);
|
|
66821
|
-
}
|
|
66822
|
-
return selectorSet;
|
|
66823
|
-
} catch {
|
|
66824
|
-
return;
|
|
66825
|
-
}
|
|
66826
|
-
}
|
|
66827
|
-
function isSameSelectorSet(actual, expected) {
|
|
66828
|
-
return actual?.size === expected.size && [...expected].every((key) => actual.has(key));
|
|
66829
|
-
}
|
|
66830
|
-
function getMiniProgramPreflightRuleStructuralKey(rule) {
|
|
66831
|
-
if (!isSameSelectorSet(collectMiniProgramSelectorSet(rule.selector), MINI_PROGRAM_PREFLIGHT_SELECTOR_KEYS)) return;
|
|
66832
|
-
return getCssRuleStructuralKeyWithSelectorKey(rule, MINI_PROGRAM_PREFLIGHT_SELECTOR_KEY);
|
|
66833
|
-
}
|
|
66834
|
-
function getMiniProgramThemeScopeRuleStructuralKey(rule) {
|
|
66835
|
-
if (!isSameSelectorSet(collectMiniProgramSelectorSet(rule.selector), MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEYS)) return;
|
|
66836
|
-
return getCssRuleStructuralKeyWithSelectorKey(rule, MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEY);
|
|
66837
|
-
}
|
|
66838
|
-
function mergeMiniProgramPreflightRuleDeclarations(baseCss, css) {
|
|
66839
|
-
try {
|
|
66840
|
-
const baseRoot = postcss.parse(baseCss);
|
|
66841
|
-
const root = postcss.parse(css);
|
|
66842
|
-
const baseRuleRecords = collectCssRuleDeclarationRecords(baseRoot, getMiniProgramPreflightRuleStructuralKey);
|
|
66843
|
-
let changedBase = false;
|
|
66844
|
-
let changedCss = false;
|
|
66845
|
-
root.walkRules((rule) => {
|
|
66846
|
-
const key = getMiniProgramPreflightRuleStructuralKey(rule);
|
|
66847
|
-
if (!key) return;
|
|
66848
|
-
const records = baseRuleRecords.get(key);
|
|
66849
|
-
const targetRecord = records?.[0];
|
|
66850
|
-
if (!targetRecord) return;
|
|
66851
|
-
const existingProps = new Set(records.flatMap((record) => [...record.props]));
|
|
66852
|
-
for (const decl of collectCssRuleDeclarations(rule)) {
|
|
66853
|
-
const prop = decl.prop.trim();
|
|
66854
|
-
if (existingProps.has(prop)) continue;
|
|
66855
|
-
targetRecord.rule.append(decl.clone());
|
|
66856
|
-
targetRecord.keys.add(normalizeCssDeclarationKey(decl));
|
|
66857
|
-
targetRecord.props.add(prop);
|
|
66858
|
-
existingProps.add(prop);
|
|
66859
|
-
changedBase = true;
|
|
66860
|
-
}
|
|
66861
|
-
rule.remove();
|
|
66862
|
-
changedCss = true;
|
|
66863
|
-
});
|
|
66864
|
-
if (!changedBase && !changedCss) return {
|
|
66865
|
-
baseCss,
|
|
66866
|
-
css,
|
|
66867
|
-
changed: false
|
|
66868
|
-
};
|
|
66869
|
-
removeEmptyAtRules(root);
|
|
66870
|
-
return {
|
|
66871
|
-
baseCss: changedBase ? baseRoot.toString() : baseCss,
|
|
66872
|
-
css: changedCss ? root.toString().trim() : css,
|
|
66873
|
-
changed: true
|
|
66874
|
-
};
|
|
66875
|
-
} catch {
|
|
66876
|
-
return {
|
|
66877
|
-
baseCss,
|
|
66878
|
-
css,
|
|
66879
|
-
changed: false
|
|
66880
|
-
};
|
|
66881
|
-
}
|
|
66882
|
-
}
|
|
66883
|
-
function mergeMiniProgramThemeScopeRuleDeclarations(baseCss, css) {
|
|
66884
|
-
try {
|
|
66885
|
-
const baseRoot = postcss.parse(baseCss);
|
|
66886
|
-
const root = postcss.parse(css);
|
|
66887
|
-
const baseRuleRecords = collectCssRuleDeclarationRecords(baseRoot, getMiniProgramThemeScopeRuleStructuralKey);
|
|
66888
|
-
let changedBase = false;
|
|
66889
|
-
let changedCss = false;
|
|
66890
|
-
root.walkRules((rule) => {
|
|
66891
|
-
const key = getMiniProgramThemeScopeRuleStructuralKey(rule);
|
|
66892
|
-
if (!key) return;
|
|
66893
|
-
const records = baseRuleRecords.get(key);
|
|
66894
|
-
const targetRecord = records?.[0];
|
|
66895
|
-
if (!targetRecord) return;
|
|
66896
|
-
const incomingDeclarations = collectCssRuleDeclarations(rule);
|
|
66897
|
-
if (incomingDeclarations.length === 0) return;
|
|
66898
|
-
const existingKeys = new Set(records.flatMap((record) => [...record.keys]));
|
|
66899
|
-
const existingProps = new Set(records.flatMap((record) => [...record.props]));
|
|
66900
|
-
if (incomingDeclarations.some((decl) => {
|
|
66901
|
-
const prop = decl.prop.trim();
|
|
66902
|
-
return existingProps.has(prop) && !existingKeys.has(normalizeCssDeclarationKey(decl));
|
|
66903
|
-
})) return;
|
|
66904
|
-
for (const decl of incomingDeclarations) {
|
|
66905
|
-
const declarationKey = normalizeCssDeclarationKey(decl);
|
|
66906
|
-
if (existingKeys.has(declarationKey)) continue;
|
|
66907
|
-
targetRecord.rule.append(decl.clone());
|
|
66908
|
-
targetRecord.keys.add(declarationKey);
|
|
66909
|
-
targetRecord.props.add(decl.prop.trim());
|
|
66910
|
-
existingKeys.add(declarationKey);
|
|
66911
|
-
existingProps.add(decl.prop.trim());
|
|
66912
|
-
changedBase = true;
|
|
66913
|
-
}
|
|
66914
|
-
rule.remove();
|
|
66915
|
-
changedCss = true;
|
|
66916
|
-
});
|
|
66917
|
-
if (!changedBase && !changedCss) return {
|
|
66918
|
-
baseCss,
|
|
66919
|
-
css,
|
|
66920
|
-
changed: false
|
|
66921
|
-
};
|
|
66922
|
-
removeEmptyAtRules(root);
|
|
66923
|
-
return {
|
|
66924
|
-
baseCss: changedBase ? baseRoot.toString() : baseCss,
|
|
66925
|
-
css: changedCss ? root.toString().trim() : css,
|
|
66926
|
-
changed: true
|
|
66927
|
-
};
|
|
66928
|
-
} catch {
|
|
66929
|
-
return {
|
|
66930
|
-
baseCss,
|
|
66931
|
-
css,
|
|
66932
|
-
changed: false
|
|
66933
|
-
};
|
|
66934
|
-
}
|
|
66935
|
-
}
|
|
66805
|
+
//#endregion
|
|
66806
|
+
//#region src/vite-css-rules/coverage.ts
|
|
66936
66807
|
function isCssRuleCoveredByDeclarations(rule, baseRuleDeclarationKeys) {
|
|
66937
66808
|
const key = getCssRuleStructuralKey(rule);
|
|
66938
66809
|
if (!key) return false;
|
|
@@ -67044,6 +66915,8 @@ function removeEmptyAtRules(root) {
|
|
|
67044
66915
|
if (atRule.nodes && atRule.nodes.every((node) => node.type === "comment")) atRule.remove();
|
|
67045
66916
|
});
|
|
67046
66917
|
}
|
|
66918
|
+
//#endregion
|
|
66919
|
+
//#region src/vite-css-rules/containment.ts
|
|
67047
66920
|
function filterExistingCssRules(baseCss, css) {
|
|
67048
66921
|
const baseRuleKeys = collectCssRuleContentKeys(baseCss);
|
|
67049
66922
|
if (baseRuleKeys.size === 0) return css;
|
|
@@ -67077,4 +66950,148 @@ function containsCssAfterMinify(baseCss, css) {
|
|
|
67077
66950
|
return ruleKeys.size > 0 && [...ruleKeys].every((key) => baseRuleKeys.has(key));
|
|
67078
66951
|
}
|
|
67079
66952
|
//#endregion
|
|
67080
|
-
|
|
66953
|
+
//#region src/vite-css-rules/mini-program.ts
|
|
66954
|
+
function normalizeSimpleMiniProgramSelectorNode(node) {
|
|
66955
|
+
if (node.type === "tag") {
|
|
66956
|
+
const value = node.value.toLowerCase();
|
|
66957
|
+
if (value === "view" || value === "text" || value === "page" || value === "wx-root-portal-content") return value;
|
|
66958
|
+
return;
|
|
66959
|
+
}
|
|
66960
|
+
if (node.type === "class") return node.value.toLowerCase() === "tw-root" ? ".tw-root" : void 0;
|
|
66961
|
+
if (node.type === "pseudo") {
|
|
66962
|
+
if (node.nodes && node.nodes.length > 0) return;
|
|
66963
|
+
const value = node.value.toLowerCase();
|
|
66964
|
+
if (value === ":before" || value === "::before") return "::before";
|
|
66965
|
+
if (value === ":after" || value === "::after") return "::after";
|
|
66966
|
+
if (value === ":host") return ":host";
|
|
66967
|
+
}
|
|
66968
|
+
}
|
|
66969
|
+
function normalizeSimpleMiniProgramSelector(selector) {
|
|
66970
|
+
if (selector.nodes.length !== 1) return;
|
|
66971
|
+
return normalizeSimpleMiniProgramSelectorNode(selector.nodes[0]);
|
|
66972
|
+
}
|
|
66973
|
+
function collectMiniProgramSelectorSet(selector) {
|
|
66974
|
+
try {
|
|
66975
|
+
const selectorSet = /* @__PURE__ */ new Set();
|
|
66976
|
+
const ast = (0, import_dist$1.default)().astSync(selector);
|
|
66977
|
+
for (const child of ast.nodes) {
|
|
66978
|
+
const key = normalizeSimpleMiniProgramSelector(child);
|
|
66979
|
+
if (!key || selectorSet.has(key)) return;
|
|
66980
|
+
selectorSet.add(key);
|
|
66981
|
+
}
|
|
66982
|
+
return selectorSet;
|
|
66983
|
+
} catch {
|
|
66984
|
+
return;
|
|
66985
|
+
}
|
|
66986
|
+
}
|
|
66987
|
+
function isSameSelectorSet(actual, expected) {
|
|
66988
|
+
return actual?.size === expected.size && [...expected].every((key) => actual.has(key));
|
|
66989
|
+
}
|
|
66990
|
+
function getMiniProgramPreflightRuleStructuralKey(rule) {
|
|
66991
|
+
if (!isSameSelectorSet(collectMiniProgramSelectorSet(rule.selector), MINI_PROGRAM_PREFLIGHT_SELECTOR_KEYS)) return;
|
|
66992
|
+
return getCssRuleStructuralKeyWithSelectorKey(rule, MINI_PROGRAM_PREFLIGHT_SELECTOR_KEY);
|
|
66993
|
+
}
|
|
66994
|
+
function getMiniProgramThemeScopeRuleStructuralKey(rule) {
|
|
66995
|
+
if (!isSameSelectorSet(collectMiniProgramSelectorSet(rule.selector), MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEYS)) return;
|
|
66996
|
+
return getCssRuleStructuralKeyWithSelectorKey(rule, MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEY);
|
|
66997
|
+
}
|
|
66998
|
+
function mergeMiniProgramPreflightRuleDeclarations(baseCss, css) {
|
|
66999
|
+
try {
|
|
67000
|
+
const baseRoot = postcss.parse(baseCss);
|
|
67001
|
+
const root = postcss.parse(css);
|
|
67002
|
+
const baseRuleRecords = collectCssRuleDeclarationRecords(baseRoot, getMiniProgramPreflightRuleStructuralKey);
|
|
67003
|
+
let changedBase = false;
|
|
67004
|
+
let changedCss = false;
|
|
67005
|
+
root.walkRules((rule) => {
|
|
67006
|
+
const key = getMiniProgramPreflightRuleStructuralKey(rule);
|
|
67007
|
+
if (!key) return;
|
|
67008
|
+
const records = baseRuleRecords.get(key);
|
|
67009
|
+
const targetRecord = records?.[0];
|
|
67010
|
+
if (!targetRecord) return;
|
|
67011
|
+
const existingProps = new Set(records.flatMap((record) => [...record.props]));
|
|
67012
|
+
for (const decl of collectCssRuleDeclarations(rule)) {
|
|
67013
|
+
const prop = decl.prop.trim();
|
|
67014
|
+
if (existingProps.has(prop)) continue;
|
|
67015
|
+
targetRecord.rule.append(decl.clone());
|
|
67016
|
+
targetRecord.keys.add(normalizeCssDeclarationKey(decl));
|
|
67017
|
+
targetRecord.props.add(prop);
|
|
67018
|
+
existingProps.add(prop);
|
|
67019
|
+
changedBase = true;
|
|
67020
|
+
}
|
|
67021
|
+
rule.remove();
|
|
67022
|
+
changedCss = true;
|
|
67023
|
+
});
|
|
67024
|
+
if (!changedBase && !changedCss) return {
|
|
67025
|
+
baseCss,
|
|
67026
|
+
css,
|
|
67027
|
+
changed: false
|
|
67028
|
+
};
|
|
67029
|
+
removeEmptyAtRules(root);
|
|
67030
|
+
return {
|
|
67031
|
+
baseCss: changedBase ? baseRoot.toString() : baseCss,
|
|
67032
|
+
css: changedCss ? root.toString().trim() : css,
|
|
67033
|
+
changed: true
|
|
67034
|
+
};
|
|
67035
|
+
} catch {
|
|
67036
|
+
return {
|
|
67037
|
+
baseCss,
|
|
67038
|
+
css,
|
|
67039
|
+
changed: false
|
|
67040
|
+
};
|
|
67041
|
+
}
|
|
67042
|
+
}
|
|
67043
|
+
function mergeMiniProgramThemeScopeRuleDeclarations(baseCss, css) {
|
|
67044
|
+
try {
|
|
67045
|
+
const baseRoot = postcss.parse(baseCss);
|
|
67046
|
+
const root = postcss.parse(css);
|
|
67047
|
+
const baseRuleRecords = collectCssRuleDeclarationRecords(baseRoot, getMiniProgramThemeScopeRuleStructuralKey);
|
|
67048
|
+
let changedBase = false;
|
|
67049
|
+
let changedCss = false;
|
|
67050
|
+
root.walkRules((rule) => {
|
|
67051
|
+
const key = getMiniProgramThemeScopeRuleStructuralKey(rule);
|
|
67052
|
+
if (!key) return;
|
|
67053
|
+
const records = baseRuleRecords.get(key);
|
|
67054
|
+
const targetRecord = records?.[0];
|
|
67055
|
+
if (!targetRecord) return;
|
|
67056
|
+
const incomingDeclarations = collectCssRuleDeclarations(rule);
|
|
67057
|
+
if (incomingDeclarations.length === 0) return;
|
|
67058
|
+
const existingKeys = new Set(records.flatMap((record) => [...record.keys]));
|
|
67059
|
+
const existingProps = new Set(records.flatMap((record) => [...record.props]));
|
|
67060
|
+
if (incomingDeclarations.some((decl) => {
|
|
67061
|
+
const prop = decl.prop.trim();
|
|
67062
|
+
return existingProps.has(prop) && !existingKeys.has(normalizeCssDeclarationKey(decl));
|
|
67063
|
+
})) return;
|
|
67064
|
+
for (const decl of incomingDeclarations) {
|
|
67065
|
+
const declarationKey = normalizeCssDeclarationKey(decl);
|
|
67066
|
+
if (existingKeys.has(declarationKey)) continue;
|
|
67067
|
+
targetRecord.rule.append(decl.clone());
|
|
67068
|
+
targetRecord.keys.add(declarationKey);
|
|
67069
|
+
targetRecord.props.add(decl.prop.trim());
|
|
67070
|
+
existingKeys.add(declarationKey);
|
|
67071
|
+
existingProps.add(decl.prop.trim());
|
|
67072
|
+
changedBase = true;
|
|
67073
|
+
}
|
|
67074
|
+
rule.remove();
|
|
67075
|
+
changedCss = true;
|
|
67076
|
+
});
|
|
67077
|
+
if (!changedBase && !changedCss) return {
|
|
67078
|
+
baseCss,
|
|
67079
|
+
css,
|
|
67080
|
+
changed: false
|
|
67081
|
+
};
|
|
67082
|
+
removeEmptyAtRules(root);
|
|
67083
|
+
return {
|
|
67084
|
+
baseCss: changedBase ? baseRoot.toString() : baseCss,
|
|
67085
|
+
css: changedCss ? root.toString().trim() : css,
|
|
67086
|
+
changed: true
|
|
67087
|
+
};
|
|
67088
|
+
} catch {
|
|
67089
|
+
return {
|
|
67090
|
+
baseCss,
|
|
67091
|
+
css,
|
|
67092
|
+
changed: false
|
|
67093
|
+
};
|
|
67094
|
+
}
|
|
67095
|
+
}
|
|
67096
|
+
//#endregion
|
|
67097
|
+
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, resolvePostcssConfig, resolvePostcssFrameworkProfile, resolvePostcssFrameworkStrategy, resolvePostcssStyleBranch, resolvePostcssStyleBranchProfile, resolvePostcssStyleTarget, resolveSourceScanPath, resolveTailwindSourceEntry, restoreLocalCssImports, rewriteLocalCssImportRequestsForOutput, rewriteLocalCssImportRequestsForOutputRoot, splitLocalCssImports, splitLocalCssImportsRoot, stripMiniProgramCssSpecificityPlaceholders, toPosixPath, transformCssMacroCss, transformCssMacroTailwindV4Source, transformWebCssCompat, transformWebCssSafeSelectors, unitConversionComposeRules, unitConversionPresets, unwrapUnsupportedCascadeLayers, withCssMacroStyleOptions };
|