tailwindcss 3.0.17 → 3.0.21
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/CHANGELOG.md +35 -1
- package/LICENSE +1 -2
- package/lib/css/preflight.css +1 -1
- package/lib/lib/expandApplyAtRules.js +7 -4
- package/lib/lib/generateRules.js +72 -27
- package/lib/lib/setupContextUtils.js +55 -2
- package/lib/processTailwindFeatures.js +5 -0
- package/lib/util/parseBoxShadowValue.js +1 -1
- package/lib/util/prefixSelector.js +4 -5
- package/package.json +8 -12
- package/peers/index.js +203 -430
- package/src/css/preflight.css +1 -1
- package/src/lib/expandApplyAtRules.js +5 -5
- package/src/lib/generateRules.js +76 -23
- package/src/lib/setupContextUtils.js +57 -4
- package/src/processTailwindFeatures.js +6 -0
- package/src/util/parseBoxShadowValue.js +1 -1
- package/src/util/prefixSelector.js +7 -5
package/peers/index.js
CHANGED
|
@@ -4407,11 +4407,13 @@ var require_parser = __commonJS({
|
|
|
4407
4407
|
if (brackets.length > 0)
|
|
4408
4408
|
this.unclosedBracket(bracket);
|
|
4409
4409
|
if (end && colon) {
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4410
|
+
if (!customProperty) {
|
|
4411
|
+
while (tokens.length) {
|
|
4412
|
+
token = tokens[tokens.length - 1][0];
|
|
4413
|
+
if (token !== "space" && token !== "comment")
|
|
4414
|
+
break;
|
|
4415
|
+
this.tokenizer.back(tokens.pop());
|
|
4416
|
+
}
|
|
4415
4417
|
}
|
|
4416
4418
|
this.decl(tokens, customProperty);
|
|
4417
4419
|
} else {
|
|
@@ -4467,7 +4469,14 @@ var require_parser = __commonJS({
|
|
|
4467
4469
|
node.raws.before += node.prop[0];
|
|
4468
4470
|
node.prop = node.prop.slice(1);
|
|
4469
4471
|
}
|
|
4470
|
-
let firstSpaces =
|
|
4472
|
+
let firstSpaces = [];
|
|
4473
|
+
let next;
|
|
4474
|
+
while (tokens.length) {
|
|
4475
|
+
next = tokens[0][0];
|
|
4476
|
+
if (next !== "space" && next !== "comment")
|
|
4477
|
+
break;
|
|
4478
|
+
firstSpaces.push(tokens.shift());
|
|
4479
|
+
}
|
|
4471
4480
|
this.precheckMissedSemicolon(tokens);
|
|
4472
4481
|
for (let i = tokens.length - 1; i >= 0; i--) {
|
|
4473
4482
|
token = tokens[i];
|
|
@@ -4499,12 +4508,11 @@ var require_parser = __commonJS({
|
|
|
4499
4508
|
}
|
|
4500
4509
|
}
|
|
4501
4510
|
let hasWord = tokens.some((i) => i[0] !== "space" && i[0] !== "comment");
|
|
4502
|
-
this.raw(node, "value", tokens);
|
|
4503
4511
|
if (hasWord) {
|
|
4504
|
-
node.raws.between += firstSpaces;
|
|
4505
|
-
|
|
4506
|
-
node.value = firstSpaces + node.value;
|
|
4512
|
+
node.raws.between += firstSpaces.map((i) => i[1]).join("");
|
|
4513
|
+
firstSpaces = [];
|
|
4507
4514
|
}
|
|
4515
|
+
this.raw(node, "value", firstSpaces.concat(tokens), customProperty);
|
|
4508
4516
|
if (node.value.includes(":") && !customProperty) {
|
|
4509
4517
|
this.checkMissedSemicolon(tokens);
|
|
4510
4518
|
}
|
|
@@ -4635,28 +4643,25 @@ var require_parser = __commonJS({
|
|
|
4635
4643
|
if (node.type !== "comment")
|
|
4636
4644
|
this.semicolon = false;
|
|
4637
4645
|
}
|
|
4638
|
-
raw(node, prop, tokens) {
|
|
4646
|
+
raw(node, prop, tokens, customProperty) {
|
|
4639
4647
|
let token, type;
|
|
4640
4648
|
let length = tokens.length;
|
|
4641
4649
|
let value = "";
|
|
4642
4650
|
let clean = true;
|
|
4643
4651
|
let next, prev;
|
|
4644
|
-
let pattern = /^([#.|])?(\w)+/i;
|
|
4645
4652
|
for (let i = 0; i < length; i += 1) {
|
|
4646
4653
|
token = tokens[i];
|
|
4647
4654
|
type = token[0];
|
|
4648
|
-
if (type === "
|
|
4655
|
+
if (type === "space" && i === length - 1 && !customProperty) {
|
|
4656
|
+
clean = false;
|
|
4657
|
+
} else if (type === "comment") {
|
|
4649
4658
|
prev = tokens[i - 1];
|
|
4650
4659
|
next = tokens[i + 1];
|
|
4651
|
-
if (prev[0] !== "space" && next[0] !== "space"
|
|
4660
|
+
if (prev && next && prev[0] !== "space" && next[0] !== "space") {
|
|
4652
4661
|
value += token[1];
|
|
4653
4662
|
} else {
|
|
4654
4663
|
clean = false;
|
|
4655
4664
|
}
|
|
4656
|
-
continue;
|
|
4657
|
-
}
|
|
4658
|
-
if (type === "comment" || type === "space" && i === length - 1) {
|
|
4659
|
-
clean = false;
|
|
4660
4665
|
} else {
|
|
4661
4666
|
value += token[1];
|
|
4662
4667
|
}
|
|
@@ -5356,8 +5361,12 @@ var require_no_work_result = __commonJS({
|
|
|
5356
5361
|
} catch (error) {
|
|
5357
5362
|
this.error = error;
|
|
5358
5363
|
}
|
|
5359
|
-
this.
|
|
5360
|
-
|
|
5364
|
+
if (this.error) {
|
|
5365
|
+
throw this.error;
|
|
5366
|
+
} else {
|
|
5367
|
+
this._root = root;
|
|
5368
|
+
return root;
|
|
5369
|
+
}
|
|
5361
5370
|
}
|
|
5362
5371
|
get messages() {
|
|
5363
5372
|
return [];
|
|
@@ -5408,7 +5417,7 @@ var require_processor = __commonJS({
|
|
|
5408
5417
|
var Root = require_root();
|
|
5409
5418
|
var Processor = class {
|
|
5410
5419
|
constructor(plugins = []) {
|
|
5411
|
-
this.version = "8.4.
|
|
5420
|
+
this.version = "8.4.6";
|
|
5412
5421
|
this.plugins = this.normalize(plugins);
|
|
5413
5422
|
}
|
|
5414
5423
|
use(plugin) {
|
|
@@ -25016,20 +25025,20 @@ var require_dist3 = __commonJS({
|
|
|
25016
25025
|
}
|
|
25017
25026
|
function pluginCreator(opts = {}) {
|
|
25018
25027
|
const remover = new _commentRemover.default(opts);
|
|
25019
|
-
const matcherCache =
|
|
25020
|
-
const replacerCache =
|
|
25028
|
+
const matcherCache = /* @__PURE__ */ new Map();
|
|
25029
|
+
const replacerCache = /* @__PURE__ */ new Map();
|
|
25021
25030
|
function matchesComments(source) {
|
|
25022
|
-
if (matcherCache
|
|
25023
|
-
return matcherCache
|
|
25031
|
+
if (matcherCache.has(source)) {
|
|
25032
|
+
return matcherCache.get(source);
|
|
25024
25033
|
}
|
|
25025
25034
|
const result = (0, _commentParser.default)(source).filter(([type]) => type);
|
|
25026
|
-
matcherCache
|
|
25035
|
+
matcherCache.set(source, result);
|
|
25027
25036
|
return result;
|
|
25028
25037
|
}
|
|
25029
25038
|
function replaceComments(source, space, separator = " ") {
|
|
25030
25039
|
const key = source + "@|@" + separator;
|
|
25031
|
-
if (replacerCache
|
|
25032
|
-
return replacerCache
|
|
25040
|
+
if (replacerCache.has(key)) {
|
|
25041
|
+
return replacerCache.get(key);
|
|
25033
25042
|
}
|
|
25034
25043
|
const parsed = (0, _commentParser.default)(source).reduce((value, [type, start, end]) => {
|
|
25035
25044
|
const contents = source.slice(start, end);
|
|
@@ -25042,7 +25051,7 @@ var require_dist3 = __commonJS({
|
|
|
25042
25051
|
return `${value}/*${contents}*/`;
|
|
25043
25052
|
}, "");
|
|
25044
25053
|
const result = space(parsed).join(" ");
|
|
25045
|
-
replacerCache
|
|
25054
|
+
replacerCache.set(key, result);
|
|
25046
25055
|
return result;
|
|
25047
25056
|
}
|
|
25048
25057
|
return {
|
|
@@ -26557,9 +26566,9 @@ var require_isColorStop = __commonJS({
|
|
|
26557
26566
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
26558
26567
|
}
|
|
26559
26568
|
(0, _colord.extend)([_names.default]);
|
|
26560
|
-
var
|
|
26569
|
+
var lengthUnits = /* @__PURE__ */ new Set(["PX", "IN", "CM", "MM", "EM", "REM", "POINTS", "PC", "EX", "CH", "VW", "VH", "VMIN", "VMAX", "%"]);
|
|
26561
26570
|
function isCSSLengthUnit(input) {
|
|
26562
|
-
return
|
|
26571
|
+
return lengthUnits.has(input.toUpperCase());
|
|
26563
26572
|
}
|
|
26564
26573
|
function isStop(str) {
|
|
26565
26574
|
let stop = !str;
|
|
@@ -63819,15 +63828,7 @@ var require_dist9 = __commonJS({
|
|
|
63819
63828
|
node.nodes = [nodes[4]];
|
|
63820
63829
|
}
|
|
63821
63830
|
}
|
|
63822
|
-
var reducers =
|
|
63823
|
-
matrix3d,
|
|
63824
|
-
rotate3d,
|
|
63825
|
-
rotateZ,
|
|
63826
|
-
scale,
|
|
63827
|
-
scale3d,
|
|
63828
|
-
translate,
|
|
63829
|
-
translate3d
|
|
63830
|
-
};
|
|
63831
|
+
var reducers = /* @__PURE__ */ new Map([["matrix3d", matrix3d], ["rotate3d", rotate3d], ["rotateZ", rotateZ], ["scale", scale], ["scale3d", scale3d], ["translate", translate], ["translate3d", translate3d]]);
|
|
63831
63832
|
function normalizeReducerName(name) {
|
|
63832
63833
|
const lowerCasedName = name.toLowerCase();
|
|
63833
63834
|
if (lowerCasedName === "rotatez") {
|
|
@@ -63836,14 +63837,12 @@ var require_dist9 = __commonJS({
|
|
|
63836
63837
|
return lowerCasedName;
|
|
63837
63838
|
}
|
|
63838
63839
|
function reduce(node) {
|
|
63839
|
-
|
|
63840
|
-
|
|
63841
|
-
|
|
63842
|
-
|
|
63843
|
-
|
|
63844
|
-
|
|
63845
|
-
if (type === "function" && Object.prototype.hasOwnProperty.call(reducers, normalizedReducerName)) {
|
|
63846
|
-
reducers[normalizedReducerName](node, nodes.reduce(getValues, []));
|
|
63840
|
+
if (node.type === "function") {
|
|
63841
|
+
const normalizedReducerName = normalizeReducerName(node.value);
|
|
63842
|
+
const reducer = reducers.get(normalizedReducerName);
|
|
63843
|
+
if (reducer !== void 0) {
|
|
63844
|
+
reducer(node, node.nodes.reduce(getValues, []));
|
|
63845
|
+
}
|
|
63847
63846
|
}
|
|
63848
63847
|
return false;
|
|
63849
63848
|
}
|
|
@@ -64005,7 +64004,7 @@ var require_dist10 = __commonJS({
|
|
|
64005
64004
|
}
|
|
64006
64005
|
return newObj;
|
|
64007
64006
|
}
|
|
64008
|
-
var LENGTH_UNITS = ["em", "ex", "ch", "rem", "vw", "vh", "vmin", "vmax", "cm", "mm", "q", "in", "pt", "pc", "px"];
|
|
64007
|
+
var LENGTH_UNITS = /* @__PURE__ */ new Set(["em", "ex", "ch", "rem", "vw", "vh", "vmin", "vmax", "cm", "mm", "q", "in", "pt", "pc", "px"]);
|
|
64009
64008
|
var notALength = /* @__PURE__ */ new Set(["descent-override", "ascent-override", "font-stretch", "size-adjust", "line-gap-override"]);
|
|
64010
64009
|
var keepWhenZero = /* @__PURE__ */ new Set(["stroke-dashoffset", "stroke-width", "line-height"]);
|
|
64011
64010
|
function stripLeadingDot(item) {
|
|
@@ -64021,10 +64020,10 @@ var require_dist10 = __commonJS({
|
|
|
64021
64020
|
const num = Number(pair.number);
|
|
64022
64021
|
const u = stripLeadingDot(pair.unit);
|
|
64023
64022
|
if (num === 0) {
|
|
64024
|
-
node.value = 0 + (keepZeroUnit ||
|
|
64023
|
+
node.value = 0 + (keepZeroUnit || !LENGTH_UNITS.has(u.toLowerCase()) && u !== "%" ? u : "");
|
|
64025
64024
|
} else {
|
|
64026
64025
|
node.value = (0, _convert.default)(num, u, opts);
|
|
64027
|
-
if (typeof opts.precision === "number" && u.toLowerCase() === "px" &&
|
|
64026
|
+
if (typeof opts.precision === "number" && u.toLowerCase() === "px" && pair.number.includes(".")) {
|
|
64028
64027
|
const precision = Math.pow(10, opts.precision);
|
|
64029
64028
|
node.value = Math.round(parseFloat(node.value) * precision) / precision + u;
|
|
64030
64029
|
}
|
|
@@ -64048,11 +64047,11 @@ var require_dist10 = __commonJS({
|
|
|
64048
64047
|
parent
|
|
64049
64048
|
} = decl;
|
|
64050
64049
|
const lowerCasedProp = decl.prop.toLowerCase();
|
|
64051
|
-
return
|
|
64050
|
+
return decl.value.includes("%") && (lowerCasedProp === "max-height" || lowerCasedProp === "height") || parent.parent && parent.parent.name && parent.parent.name.toLowerCase() === "keyframes" && lowerCasedProp === "stroke-dasharray" || keepWhenZero.has(lowerCasedProp);
|
|
64052
64051
|
}
|
|
64053
64052
|
function transform(opts, decl) {
|
|
64054
64053
|
const lowerCasedProp = decl.prop.toLowerCase();
|
|
64055
|
-
if (
|
|
64054
|
+
if (lowerCasedProp.includes("flex") || lowerCasedProp.indexOf("--") === 0 || notALength.has(lowerCasedProp)) {
|
|
64056
64055
|
return;
|
|
64057
64056
|
}
|
|
64058
64057
|
decl.value = (0, _postcssValueParser.default)(decl.value).walk((node) => {
|
|
@@ -70168,14 +70167,13 @@ var require_dist13 = __commonJS({
|
|
|
70168
70167
|
}
|
|
70169
70168
|
});
|
|
70170
70169
|
}
|
|
70171
|
-
|
|
70172
|
-
|
|
70173
|
-
}
|
|
70170
|
+
var browsersWithTransparentBug = /* @__PURE__ */ new Set(["ie 8", "ie 9"]);
|
|
70171
|
+
var mathFunctions = /* @__PURE__ */ new Set(["calc", "min", "max", "clamp"]);
|
|
70174
70172
|
function isMathFunctionNode(node) {
|
|
70175
70173
|
if (node.type !== "function") {
|
|
70176
70174
|
return false;
|
|
70177
70175
|
}
|
|
70178
|
-
return
|
|
70176
|
+
return mathFunctions.has(node.value.toLowerCase());
|
|
70179
70177
|
}
|
|
70180
70178
|
function transform(value, options) {
|
|
70181
70179
|
const parsed = (0, _postcssValueParser.default)(value);
|
|
@@ -70205,7 +70203,7 @@ var require_dist13 = __commonJS({
|
|
|
70205
70203
|
}
|
|
70206
70204
|
function addPluginDefaults(options, browsers) {
|
|
70207
70205
|
const defaults = {
|
|
70208
|
-
transparent: browsers.some(
|
|
70206
|
+
transparent: browsers.some((b) => browsersWithTransparentBug.has(b)) === false,
|
|
70209
70207
|
alphaHex: (0, _caniuseApi.isSupported)("css-rrggbbaa", browsers),
|
|
70210
70208
|
name: true
|
|
70211
70209
|
};
|
|
@@ -70419,7 +70417,7 @@ var require_mathfunctions = __commonJS({
|
|
|
70419
70417
|
value: true
|
|
70420
70418
|
});
|
|
70421
70419
|
exports2.default = void 0;
|
|
70422
|
-
var _default = ["calc", "clamp", "max", "min"];
|
|
70420
|
+
var _default = /* @__PURE__ */ new Set(["calc", "clamp", "max", "min"]);
|
|
70423
70421
|
exports2.default = _default;
|
|
70424
70422
|
module2.exports = exports2.default;
|
|
70425
70423
|
}
|
|
@@ -70438,8 +70436,8 @@ var require_border2 = __commonJS({
|
|
|
70438
70436
|
function _interopRequireDefault(obj) {
|
|
70439
70437
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
70440
70438
|
}
|
|
70441
|
-
var borderWidths = ["thin", "medium", "thick"];
|
|
70442
|
-
var borderStyles = [
|
|
70439
|
+
var borderWidths = /* @__PURE__ */ new Set(["thin", "medium", "thick"]);
|
|
70440
|
+
var borderStyles = /* @__PURE__ */ new Set([
|
|
70443
70441
|
"none",
|
|
70444
70442
|
"auto",
|
|
70445
70443
|
"hidden",
|
|
@@ -70451,7 +70449,7 @@ var require_border2 = __commonJS({
|
|
|
70451
70449
|
"ridge",
|
|
70452
70450
|
"inset",
|
|
70453
70451
|
"outset"
|
|
70454
|
-
];
|
|
70452
|
+
]);
|
|
70455
70453
|
function normalizeBorder(border) {
|
|
70456
70454
|
const order = {
|
|
70457
70455
|
width: "",
|
|
@@ -70464,11 +70462,11 @@ var require_border2 = __commonJS({
|
|
|
70464
70462
|
value
|
|
70465
70463
|
} = node;
|
|
70466
70464
|
if (type === "word") {
|
|
70467
|
-
if (borderStyles.
|
|
70465
|
+
if (borderStyles.has(value.toLowerCase())) {
|
|
70468
70466
|
order.style = value;
|
|
70469
70467
|
return false;
|
|
70470
70468
|
}
|
|
70471
|
-
if (borderWidths.
|
|
70469
|
+
if (borderWidths.has(value.toLowerCase()) || (0, _postcssValueParser.unit)(value.toLowerCase())) {
|
|
70472
70470
|
if (order.width !== "") {
|
|
70473
70471
|
order.width = `${order.width} ${value}`;
|
|
70474
70472
|
return false;
|
|
@@ -70480,7 +70478,7 @@ var require_border2 = __commonJS({
|
|
|
70480
70478
|
return false;
|
|
70481
70479
|
}
|
|
70482
70480
|
if (type === "function") {
|
|
70483
|
-
if (_mathfunctions.default.
|
|
70481
|
+
if (_mathfunctions.default.has(value.toLowerCase())) {
|
|
70484
70482
|
order.width = (0, _postcssValueParser.stringify)(node);
|
|
70485
70483
|
} else {
|
|
70486
70484
|
order.color = (0, _postcssValueParser.stringify)(node);
|
|
@@ -70542,7 +70540,7 @@ var require_boxShadow = __commonJS({
|
|
|
70542
70540
|
type,
|
|
70543
70541
|
value
|
|
70544
70542
|
} = node;
|
|
70545
|
-
if (type === "function" && _mathfunctions.default.
|
|
70543
|
+
if (type === "function" && _mathfunctions.default.has((0, _vendorUnprefixed.default)(value.toLowerCase()))) {
|
|
70546
70544
|
abort = true;
|
|
70547
70545
|
return;
|
|
70548
70546
|
}
|
|
@@ -70576,8 +70574,8 @@ var require_flexFlow = __commonJS({
|
|
|
70576
70574
|
value: true
|
|
70577
70575
|
});
|
|
70578
70576
|
exports2.default = normalizeFlexFlow;
|
|
70579
|
-
var flexDirection = ["row", "row-reverse", "column", "column-reverse"];
|
|
70580
|
-
var flexWrap = ["nowrap", "wrap", "wrap-reverse"];
|
|
70577
|
+
var flexDirection = /* @__PURE__ */ new Set(["row", "row-reverse", "column", "column-reverse"]);
|
|
70578
|
+
var flexWrap = /* @__PURE__ */ new Set(["nowrap", "wrap", "wrap-reverse"]);
|
|
70581
70579
|
function normalizeFlexFlow(flexFlow) {
|
|
70582
70580
|
let order = {
|
|
70583
70581
|
direction: "",
|
|
@@ -70586,11 +70584,11 @@ var require_flexFlow = __commonJS({
|
|
|
70586
70584
|
flexFlow.walk(({
|
|
70587
70585
|
value
|
|
70588
70586
|
}) => {
|
|
70589
|
-
if (
|
|
70587
|
+
if (flexDirection.has(value.toLowerCase())) {
|
|
70590
70588
|
order.direction = value;
|
|
70591
70589
|
return;
|
|
70592
70590
|
}
|
|
70593
|
-
if (
|
|
70591
|
+
if (flexWrap.has(value.toLowerCase())) {
|
|
70594
70592
|
order.wrap = value;
|
|
70595
70593
|
return;
|
|
70596
70594
|
}
|
|
@@ -70616,7 +70614,7 @@ var require_transition2 = __commonJS({
|
|
|
70616
70614
|
function _interopRequireDefault(obj) {
|
|
70617
70615
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
70618
70616
|
}
|
|
70619
|
-
var timingFunctions = ["ease", "linear", "ease-in", "ease-out", "ease-in-out", "step-start", "step-end"];
|
|
70617
|
+
var timingFunctions = /* @__PURE__ */ new Set(["ease", "linear", "ease-in", "ease-out", "ease-in-out", "step-start", "step-end"]);
|
|
70620
70618
|
function normalizeTransition(parsed) {
|
|
70621
70619
|
let args = (0, _cssnanoUtils.getArguments)(parsed);
|
|
70622
70620
|
let values = args.reduce((list, arg) => {
|
|
@@ -70634,7 +70632,7 @@ var require_transition2 = __commonJS({
|
|
|
70634
70632
|
if (type === "space") {
|
|
70635
70633
|
return;
|
|
70636
70634
|
}
|
|
70637
|
-
if (type === "function" &&
|
|
70635
|
+
if (type === "function" && (/* @__PURE__ */ new Set(["steps", "cubic-bezier"])).has(value.toLowerCase())) {
|
|
70638
70636
|
state.timingFunction = [...state.timingFunction, node, (0, _addSpace.default)()];
|
|
70639
70637
|
} else if ((0, _postcssValueParser.unit)(value)) {
|
|
70640
70638
|
if (!state.time1.length) {
|
|
@@ -70642,7 +70640,7 @@ var require_transition2 = __commonJS({
|
|
|
70642
70640
|
} else {
|
|
70643
70641
|
state.time2 = [...state.time2, node, (0, _addSpace.default)()];
|
|
70644
70642
|
}
|
|
70645
|
-
} else if (
|
|
70643
|
+
} else if (timingFunctions.has(value.toLowerCase())) {
|
|
70646
70644
|
state.timingFunction = [...state.timingFunction, node, (0, _addSpace.default)()];
|
|
70647
70645
|
} else {
|
|
70648
70646
|
state.property = [...state.property, node, (0, _addSpace.default)()];
|
|
@@ -70886,8 +70884,8 @@ var require_listStyle = __commonJS({
|
|
|
70886
70884
|
function _interopRequireDefault(obj) {
|
|
70887
70885
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
70888
70886
|
}
|
|
70889
|
-
var definedTypes = _listStyleTypes.default["list-style-type"];
|
|
70890
|
-
var definedPosition = ["inside", "outside"];
|
|
70887
|
+
var definedTypes = new Set(_listStyleTypes.default["list-style-type"]);
|
|
70888
|
+
var definedPosition = /* @__PURE__ */ new Set(["inside", "outside"]);
|
|
70891
70889
|
function listStyleNormalizer(listStyle) {
|
|
70892
70890
|
const order = {
|
|
70893
70891
|
type: "",
|
|
@@ -70896,9 +70894,9 @@ var require_listStyle = __commonJS({
|
|
|
70896
70894
|
};
|
|
70897
70895
|
listStyle.walk((decl) => {
|
|
70898
70896
|
if (decl.type === "word") {
|
|
70899
|
-
if (definedTypes.
|
|
70897
|
+
if (definedTypes.has(decl.value)) {
|
|
70900
70898
|
order.type = `${order.type} ${decl.value}`;
|
|
70901
|
-
} else if (definedPosition.
|
|
70899
|
+
} else if (definedPosition.has(decl.value)) {
|
|
70902
70900
|
order.position = `${order.position} ${decl.value}`;
|
|
70903
70901
|
} else if (decl.value === "none") {
|
|
70904
70902
|
if (order.type.split(" ").filter((e) => e !== "" && e !== " ").includes("none")) {
|
|
@@ -71028,7 +71026,7 @@ var require_dist14 = __commonJS({
|
|
|
71028
71026
|
function shouldAbort(parsed) {
|
|
71029
71027
|
let abort = false;
|
|
71030
71028
|
parsed.walk((node) => {
|
|
71031
|
-
if (node.type === "comment" || isVariableFunctionNode(node) || node.type === "word" &&
|
|
71029
|
+
if (node.type === "comment" || isVariableFunctionNode(node) || node.type === "word" && node.value.includes(`___CSS_LOADER_IMPORT___`)) {
|
|
71032
71030
|
abort = true;
|
|
71033
71031
|
return false;
|
|
71034
71032
|
}
|
|
@@ -71085,201 +71083,6 @@ var require_dist14 = __commonJS({
|
|
|
71085
71083
|
}
|
|
71086
71084
|
});
|
|
71087
71085
|
|
|
71088
|
-
// node_modules/alphanum-sort/lib/compare.js
|
|
71089
|
-
var require_compare = __commonJS({
|
|
71090
|
-
"node_modules/alphanum-sort/lib/compare.js"(exports2, module2) {
|
|
71091
|
-
var zero = "0".charCodeAt(0);
|
|
71092
|
-
var plus = "+".charCodeAt(0);
|
|
71093
|
-
var minus = "-".charCodeAt(0);
|
|
71094
|
-
function isWhitespace(code) {
|
|
71095
|
-
return code <= 32;
|
|
71096
|
-
}
|
|
71097
|
-
function isDigit(code) {
|
|
71098
|
-
return 48 <= code && code <= 57;
|
|
71099
|
-
}
|
|
71100
|
-
function isSign(code) {
|
|
71101
|
-
return code === minus || code === plus;
|
|
71102
|
-
}
|
|
71103
|
-
module2.exports = function(opts, a, b) {
|
|
71104
|
-
var checkSign = opts.sign;
|
|
71105
|
-
var ia = 0;
|
|
71106
|
-
var ib = 0;
|
|
71107
|
-
var ma = a.length;
|
|
71108
|
-
var mb = b.length;
|
|
71109
|
-
var ca, cb;
|
|
71110
|
-
var za, zb;
|
|
71111
|
-
var na, nb;
|
|
71112
|
-
var sa, sb;
|
|
71113
|
-
var ta, tb;
|
|
71114
|
-
var bias;
|
|
71115
|
-
while (ia < ma && ib < mb) {
|
|
71116
|
-
ca = a.charCodeAt(ia);
|
|
71117
|
-
cb = b.charCodeAt(ib);
|
|
71118
|
-
za = zb = 0;
|
|
71119
|
-
na = nb = 0;
|
|
71120
|
-
sa = sb = true;
|
|
71121
|
-
bias = 0;
|
|
71122
|
-
while (isWhitespace(ca)) {
|
|
71123
|
-
ia += 1;
|
|
71124
|
-
ca = a.charCodeAt(ia);
|
|
71125
|
-
}
|
|
71126
|
-
while (isWhitespace(cb)) {
|
|
71127
|
-
ib += 1;
|
|
71128
|
-
cb = b.charCodeAt(ib);
|
|
71129
|
-
}
|
|
71130
|
-
if (checkSign) {
|
|
71131
|
-
ta = a.charCodeAt(ia + 1);
|
|
71132
|
-
if (isSign(ca) && isDigit(ta)) {
|
|
71133
|
-
if (ca === minus) {
|
|
71134
|
-
sa = false;
|
|
71135
|
-
}
|
|
71136
|
-
ia += 1;
|
|
71137
|
-
ca = ta;
|
|
71138
|
-
}
|
|
71139
|
-
tb = b.charCodeAt(ib + 1);
|
|
71140
|
-
if (isSign(cb) && isDigit(tb)) {
|
|
71141
|
-
if (cb === minus) {
|
|
71142
|
-
sb = false;
|
|
71143
|
-
}
|
|
71144
|
-
ib += 1;
|
|
71145
|
-
cb = tb;
|
|
71146
|
-
}
|
|
71147
|
-
}
|
|
71148
|
-
if (isDigit(ca) && !isDigit(cb)) {
|
|
71149
|
-
return -1;
|
|
71150
|
-
}
|
|
71151
|
-
if (!isDigit(ca) && isDigit(cb)) {
|
|
71152
|
-
return 1;
|
|
71153
|
-
}
|
|
71154
|
-
if (!sa && sb) {
|
|
71155
|
-
return -1;
|
|
71156
|
-
}
|
|
71157
|
-
if (sa && !sb) {
|
|
71158
|
-
return 1;
|
|
71159
|
-
}
|
|
71160
|
-
while (ca === zero) {
|
|
71161
|
-
za += 1;
|
|
71162
|
-
ia += 1;
|
|
71163
|
-
ca = a.charCodeAt(ia);
|
|
71164
|
-
}
|
|
71165
|
-
while (cb === zero) {
|
|
71166
|
-
zb += 1;
|
|
71167
|
-
ib += 1;
|
|
71168
|
-
cb = b.charCodeAt(ib);
|
|
71169
|
-
}
|
|
71170
|
-
while (isDigit(ca) || isDigit(cb)) {
|
|
71171
|
-
if (isDigit(ca) && isDigit(cb) && bias === 0) {
|
|
71172
|
-
if (sa) {
|
|
71173
|
-
if (ca < cb) {
|
|
71174
|
-
bias = -1;
|
|
71175
|
-
} else if (ca > cb) {
|
|
71176
|
-
bias = 1;
|
|
71177
|
-
}
|
|
71178
|
-
} else {
|
|
71179
|
-
if (ca > cb) {
|
|
71180
|
-
bias = -1;
|
|
71181
|
-
} else if (ca < cb) {
|
|
71182
|
-
bias = 1;
|
|
71183
|
-
}
|
|
71184
|
-
}
|
|
71185
|
-
}
|
|
71186
|
-
if (isDigit(ca)) {
|
|
71187
|
-
ia += 1;
|
|
71188
|
-
na += 1;
|
|
71189
|
-
ca = a.charCodeAt(ia);
|
|
71190
|
-
}
|
|
71191
|
-
if (isDigit(cb)) {
|
|
71192
|
-
ib += 1;
|
|
71193
|
-
nb += 1;
|
|
71194
|
-
cb = b.charCodeAt(ib);
|
|
71195
|
-
}
|
|
71196
|
-
}
|
|
71197
|
-
if (sa) {
|
|
71198
|
-
if (na < nb) {
|
|
71199
|
-
return -1;
|
|
71200
|
-
}
|
|
71201
|
-
if (na > nb) {
|
|
71202
|
-
return 1;
|
|
71203
|
-
}
|
|
71204
|
-
} else {
|
|
71205
|
-
if (na > nb) {
|
|
71206
|
-
return -1;
|
|
71207
|
-
}
|
|
71208
|
-
if (na < nb) {
|
|
71209
|
-
return 1;
|
|
71210
|
-
}
|
|
71211
|
-
}
|
|
71212
|
-
if (bias) {
|
|
71213
|
-
return bias;
|
|
71214
|
-
}
|
|
71215
|
-
if (sa) {
|
|
71216
|
-
if (za > zb) {
|
|
71217
|
-
return -1;
|
|
71218
|
-
}
|
|
71219
|
-
if (za < zb) {
|
|
71220
|
-
return 1;
|
|
71221
|
-
}
|
|
71222
|
-
} else {
|
|
71223
|
-
if (za < zb) {
|
|
71224
|
-
return -1;
|
|
71225
|
-
}
|
|
71226
|
-
if (za > zb) {
|
|
71227
|
-
return 1;
|
|
71228
|
-
}
|
|
71229
|
-
}
|
|
71230
|
-
if (ca < cb) {
|
|
71231
|
-
return -1;
|
|
71232
|
-
}
|
|
71233
|
-
if (ca > cb) {
|
|
71234
|
-
return 1;
|
|
71235
|
-
}
|
|
71236
|
-
ia += 1;
|
|
71237
|
-
ib += 1;
|
|
71238
|
-
}
|
|
71239
|
-
if (ma < mb) {
|
|
71240
|
-
return -1;
|
|
71241
|
-
}
|
|
71242
|
-
if (ma > mb) {
|
|
71243
|
-
return 1;
|
|
71244
|
-
}
|
|
71245
|
-
};
|
|
71246
|
-
}
|
|
71247
|
-
});
|
|
71248
|
-
|
|
71249
|
-
// node_modules/alphanum-sort/lib/index.js
|
|
71250
|
-
var require_lib12 = __commonJS({
|
|
71251
|
-
"node_modules/alphanum-sort/lib/index.js"(exports2, module2) {
|
|
71252
|
-
var compare = require_compare();
|
|
71253
|
-
function mediator(a, b) {
|
|
71254
|
-
return compare(this, a.converted, b.converted);
|
|
71255
|
-
}
|
|
71256
|
-
module2.exports = function(array, opts) {
|
|
71257
|
-
if (!Array.isArray(array) || array.length < 2) {
|
|
71258
|
-
return array;
|
|
71259
|
-
}
|
|
71260
|
-
if (typeof opts !== "object") {
|
|
71261
|
-
opts = {};
|
|
71262
|
-
}
|
|
71263
|
-
opts.sign = !!opts.sign;
|
|
71264
|
-
var insensitive = !!opts.insensitive;
|
|
71265
|
-
var result = Array(array.length);
|
|
71266
|
-
var i, max, value;
|
|
71267
|
-
for (i = 0, max = array.length; i < max; i += 1) {
|
|
71268
|
-
value = String(array[i]);
|
|
71269
|
-
result[i] = {
|
|
71270
|
-
value: array[i],
|
|
71271
|
-
converted: insensitive ? value.toLowerCase() : value
|
|
71272
|
-
};
|
|
71273
|
-
}
|
|
71274
|
-
result.sort(mediator.bind(opts));
|
|
71275
|
-
for (i = result.length - 1; ~i; i -= 1) {
|
|
71276
|
-
result[i] = result[i].value;
|
|
71277
|
-
}
|
|
71278
|
-
return result;
|
|
71279
|
-
};
|
|
71280
|
-
}
|
|
71281
|
-
});
|
|
71282
|
-
|
|
71283
71086
|
// node_modules/postcss-minify-selectors/dist/lib/canUnquote.js
|
|
71284
71087
|
var require_canUnquote = __commonJS({
|
|
71285
71088
|
"node_modules/postcss-minify-selectors/dist/lib/canUnquote.js"(exports2, module2) {
|
|
@@ -71309,13 +71112,12 @@ var require_dist15 = __commonJS({
|
|
|
71309
71112
|
value: true
|
|
71310
71113
|
});
|
|
71311
71114
|
exports2.default = void 0;
|
|
71312
|
-
var _alphanumSort = _interopRequireDefault(require_lib12());
|
|
71313
71115
|
var _postcssSelectorParser = _interopRequireDefault(require_dist11());
|
|
71314
71116
|
var _canUnquote = _interopRequireDefault(require_canUnquote());
|
|
71315
71117
|
function _interopRequireDefault(obj) {
|
|
71316
71118
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
71317
71119
|
}
|
|
71318
|
-
var pseudoElements = ["::before", "::after", "::first-letter", "::first-line"];
|
|
71120
|
+
var pseudoElements = /* @__PURE__ */ new Set(["::before", "::after", "::first-letter", "::first-line"]);
|
|
71319
71121
|
function attribute(selector) {
|
|
71320
71122
|
if (selector.value) {
|
|
71321
71123
|
if (selector.raws.value) {
|
|
@@ -71370,21 +71172,16 @@ var require_dist15 = __commonJS({
|
|
|
71370
71172
|
selector.rawsSpaceAfter = "";
|
|
71371
71173
|
selector.value = value.length ? value : " ";
|
|
71372
71174
|
}
|
|
71373
|
-
var pseudoReplacements =
|
|
71374
|
-
":nth-child": ":first-child",
|
|
71375
|
-
":nth-of-type": ":first-of-type",
|
|
71376
|
-
":nth-last-child": ":last-child",
|
|
71377
|
-
":nth-last-of-type": ":last-of-type"
|
|
71378
|
-
};
|
|
71175
|
+
var pseudoReplacements = /* @__PURE__ */ new Map([[":nth-child", ":first-child"], [":nth-of-type", ":first-of-type"], [":nth-last-child", ":last-child"], [":nth-last-of-type", ":last-of-type"]]);
|
|
71379
71176
|
function pseudo(selector) {
|
|
71380
71177
|
const value = selector.value.toLowerCase();
|
|
71381
|
-
if (selector.nodes.length === 1 && pseudoReplacements
|
|
71178
|
+
if (selector.nodes.length === 1 && pseudoReplacements.has(value)) {
|
|
71382
71179
|
const first = selector.at(0);
|
|
71383
71180
|
const one = first.at(0);
|
|
71384
71181
|
if (first.length === 1) {
|
|
71385
71182
|
if (one.value === "1") {
|
|
71386
71183
|
selector.replaceWith(_postcssSelectorParser.default.pseudo({
|
|
71387
|
-
value: pseudoReplacements
|
|
71184
|
+
value: pseudoReplacements.get(value)
|
|
71388
71185
|
}));
|
|
71389
71186
|
}
|
|
71390
71187
|
if (one.value.toLowerCase() === "even") {
|
|
@@ -71402,29 +71199,26 @@ var require_dist15 = __commonJS({
|
|
|
71402
71199
|
}
|
|
71403
71200
|
return;
|
|
71404
71201
|
}
|
|
71405
|
-
const uniques =
|
|
71202
|
+
const uniques = /* @__PURE__ */ new Set();
|
|
71406
71203
|
selector.walk((child) => {
|
|
71407
71204
|
if (child.type === "selector") {
|
|
71408
71205
|
const childStr = String(child);
|
|
71409
|
-
if (
|
|
71410
|
-
uniques.
|
|
71206
|
+
if (!uniques.has(childStr)) {
|
|
71207
|
+
uniques.add(childStr);
|
|
71411
71208
|
} else {
|
|
71412
71209
|
child.remove();
|
|
71413
71210
|
}
|
|
71414
71211
|
}
|
|
71415
71212
|
});
|
|
71416
|
-
if (
|
|
71213
|
+
if (pseudoElements.has(value)) {
|
|
71417
71214
|
selector.value = selector.value.slice(1);
|
|
71418
71215
|
}
|
|
71419
71216
|
}
|
|
71420
|
-
var tagReplacements =
|
|
71421
|
-
from: "0%",
|
|
71422
|
-
"100%": "to"
|
|
71423
|
-
};
|
|
71217
|
+
var tagReplacements = /* @__PURE__ */ new Map([["from", "0%"], ["100%", "to"]]);
|
|
71424
71218
|
function tag(selector) {
|
|
71425
71219
|
const value = selector.value.toLowerCase();
|
|
71426
|
-
if (
|
|
71427
|
-
selector.value = tagReplacements
|
|
71220
|
+
if (tagReplacements.has(value)) {
|
|
71221
|
+
selector.value = tagReplacements.get(value);
|
|
71428
71222
|
}
|
|
71429
71223
|
}
|
|
71430
71224
|
function universal(selector) {
|
|
@@ -71433,41 +71227,31 @@ var require_dist15 = __commonJS({
|
|
|
71433
71227
|
selector.remove();
|
|
71434
71228
|
}
|
|
71435
71229
|
}
|
|
71436
|
-
var reducers =
|
|
71437
|
-
attribute,
|
|
71438
|
-
combinator,
|
|
71439
|
-
pseudo,
|
|
71440
|
-
tag,
|
|
71441
|
-
universal
|
|
71442
|
-
};
|
|
71230
|
+
var reducers = /* @__PURE__ */ new Map([["attribute", attribute], ["combinator", combinator], ["pseudo", pseudo], ["tag", tag], ["universal", universal]]);
|
|
71443
71231
|
function pluginCreator() {
|
|
71444
71232
|
return {
|
|
71445
71233
|
postcssPlugin: "postcss-minify-selectors",
|
|
71446
71234
|
OnceExit(css) {
|
|
71447
71235
|
const cache = /* @__PURE__ */ new Map();
|
|
71448
71236
|
const processor = (0, _postcssSelectorParser.default)((selectors) => {
|
|
71449
|
-
|
|
71450
|
-
insensitive: true
|
|
71451
|
-
});
|
|
71452
|
-
const uniqueSelectors = [];
|
|
71237
|
+
const uniqueSelectors = /* @__PURE__ */ new Set();
|
|
71453
71238
|
selectors.walk((sel) => {
|
|
71454
|
-
const {
|
|
71455
|
-
type
|
|
71456
|
-
} = sel;
|
|
71457
71239
|
sel.spaces.before = sel.spaces.after = "";
|
|
71458
|
-
|
|
71459
|
-
|
|
71240
|
+
const reducer = reducers.get(sel.type);
|
|
71241
|
+
if (reducer !== void 0) {
|
|
71242
|
+
reducer(sel);
|
|
71460
71243
|
return;
|
|
71461
71244
|
}
|
|
71462
71245
|
const toString = String(sel);
|
|
71463
|
-
if (type === "selector" && sel.parent.type !== "pseudo") {
|
|
71464
|
-
if (
|
|
71465
|
-
uniqueSelectors.
|
|
71246
|
+
if (sel.type === "selector" && sel.parent.type !== "pseudo") {
|
|
71247
|
+
if (!uniqueSelectors.has(toString)) {
|
|
71248
|
+
uniqueSelectors.add(toString);
|
|
71466
71249
|
} else {
|
|
71467
71250
|
sel.remove();
|
|
71468
71251
|
}
|
|
71469
71252
|
}
|
|
71470
71253
|
});
|
|
71254
|
+
selectors.nodes.sort();
|
|
71471
71255
|
});
|
|
71472
71256
|
css.walkRules((rule) => {
|
|
71473
71257
|
const selector = rule.raws.selector && rule.raws.selector.value === rule.selector ? rule.raws.selector.raw : rule.selector;
|
|
@@ -71502,7 +71286,6 @@ var require_dist16 = __commonJS({
|
|
|
71502
71286
|
exports2.default = void 0;
|
|
71503
71287
|
var _browserslist = _interopRequireDefault(require_browserslist());
|
|
71504
71288
|
var _postcssValueParser = _interopRequireWildcard(require_lib());
|
|
71505
|
-
var _alphanumSort = _interopRequireDefault(require_lib12());
|
|
71506
71289
|
var _cssnanoUtils = require_dist6();
|
|
71507
71290
|
function _getRequireWildcardCache(nodeInterop) {
|
|
71508
71291
|
if (typeof WeakMap !== "function")
|
|
@@ -71560,9 +71343,9 @@ var require_dist16 = __commonJS({
|
|
|
71560
71343
|
node.type = "word";
|
|
71561
71344
|
}
|
|
71562
71345
|
function sortAndDedupe(items) {
|
|
71563
|
-
|
|
71564
|
-
|
|
71565
|
-
|
|
71346
|
+
const a = [...new Set(items)];
|
|
71347
|
+
a.sort();
|
|
71348
|
+
return a.join();
|
|
71566
71349
|
}
|
|
71567
71350
|
function transform(legacy, rule) {
|
|
71568
71351
|
const ruleName = rule.name.toLowerCase();
|
|
@@ -71603,7 +71386,7 @@ var require_dist16 = __commonJS({
|
|
|
71603
71386
|
}
|
|
71604
71387
|
}
|
|
71605
71388
|
function hasAllBug(browser) {
|
|
71606
|
-
return
|
|
71389
|
+
return ["ie 10", "ie 11"].includes(browser);
|
|
71607
71390
|
}
|
|
71608
71391
|
function pluginCreator(options = {}) {
|
|
71609
71392
|
const browsers = (0, _browserslist.default)(null, {
|
|
@@ -71729,7 +71512,7 @@ var require_minify_family = __commonJS({
|
|
|
71729
71512
|
}
|
|
71730
71513
|
var uniqs = (0, _uniqs.default)("monospace");
|
|
71731
71514
|
var globalKeywords = ["inherit", "initial", "unset"];
|
|
71732
|
-
var genericFontFamilykeywords = ["sans-serif", "serif", "fantasy", "cursive", "monospace", "system-ui"];
|
|
71515
|
+
var genericFontFamilykeywords = /* @__PURE__ */ new Set(["sans-serif", "serif", "fantasy", "cursive", "monospace", "system-ui"]);
|
|
71733
71516
|
function makeArray(value, length) {
|
|
71734
71517
|
let array = [];
|
|
71735
71518
|
while (length--) {
|
|
@@ -71767,7 +71550,7 @@ var require_minify_family = __commonJS({
|
|
|
71767
71550
|
}
|
|
71768
71551
|
return output;
|
|
71769
71552
|
}
|
|
71770
|
-
var regexKeyword = new RegExp(genericFontFamilykeywords.concat(globalKeywords).join("|"), "i");
|
|
71553
|
+
var regexKeyword = new RegExp([...genericFontFamilykeywords].concat(globalKeywords).join("|"), "i");
|
|
71771
71554
|
var regexInvalidIdentifier = /^(-?\d|--)/;
|
|
71772
71555
|
var regexSpaceAtStart = /^\x20/;
|
|
71773
71556
|
var regexWhitespace = /[\t\n\f\r\x20]/g;
|
|
@@ -71858,7 +71641,7 @@ var require_minify_family = __commonJS({
|
|
|
71858
71641
|
});
|
|
71859
71642
|
if (opts.removeAfterKeyword) {
|
|
71860
71643
|
for (i = 0, max = family.length; i < max; i += 1) {
|
|
71861
|
-
if (
|
|
71644
|
+
if (genericFontFamilykeywords.has(family[i].toLowerCase())) {
|
|
71862
71645
|
family = family.slice(0, i + 1);
|
|
71863
71646
|
break;
|
|
71864
71647
|
}
|
|
@@ -71885,11 +71668,11 @@ var require_keywords = __commonJS({
|
|
|
71885
71668
|
});
|
|
71886
71669
|
exports2.default = void 0;
|
|
71887
71670
|
var _default = {
|
|
71888
|
-
style: ["italic", "oblique"],
|
|
71889
|
-
variant: ["small-caps"],
|
|
71890
|
-
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900", "bold", "lighter", "bolder"],
|
|
71891
|
-
stretch: ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"],
|
|
71892
|
-
size: ["xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "larger", "smaller"]
|
|
71671
|
+
style: /* @__PURE__ */ new Set(["italic", "oblique"]),
|
|
71672
|
+
variant: /* @__PURE__ */ new Set(["small-caps"]),
|
|
71673
|
+
weight: /* @__PURE__ */ new Set(["100", "200", "300", "400", "500", "600", "700", "800", "900", "bold", "lighter", "bolder"]),
|
|
71674
|
+
stretch: /* @__PURE__ */ new Set(["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"]),
|
|
71675
|
+
size: /* @__PURE__ */ new Set(["xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "larger", "smaller"])
|
|
71893
71676
|
};
|
|
71894
71677
|
exports2.default = _default;
|
|
71895
71678
|
module2.exports = exports2.default;
|
|
@@ -71923,16 +71706,16 @@ var require_minify_font = __commonJS({
|
|
|
71923
71706
|
const value = node.value.toLowerCase();
|
|
71924
71707
|
if (value === "normal" || value === "inherit" || value === "initial" || value === "unset") {
|
|
71925
71708
|
familyStart = i;
|
|
71926
|
-
} else if (
|
|
71709
|
+
} else if (_keywords.default.style.has(value) || (0, _postcssValueParser.unit)(value)) {
|
|
71927
71710
|
familyStart = i;
|
|
71928
|
-
} else if (
|
|
71711
|
+
} else if (_keywords.default.variant.has(value)) {
|
|
71929
71712
|
familyStart = i;
|
|
71930
|
-
} else if (
|
|
71713
|
+
} else if (_keywords.default.weight.has(value)) {
|
|
71931
71714
|
node.value = (0, _minifyWeight.default)(value);
|
|
71932
71715
|
familyStart = i;
|
|
71933
|
-
} else if (
|
|
71716
|
+
} else if (_keywords.default.stretch.has(value)) {
|
|
71934
71717
|
familyStart = i;
|
|
71935
|
-
} else if (
|
|
71718
|
+
} else if (_keywords.default.size.has(value) || (0, _postcssValueParser.unit)(value)) {
|
|
71936
71719
|
familyStart = i;
|
|
71937
71720
|
hasSize = true;
|
|
71938
71721
|
}
|
|
@@ -72350,7 +72133,7 @@ var require_plugin = __commonJS({
|
|
|
72350
72133
|
this.nodes.push(node);
|
|
72351
72134
|
}
|
|
72352
72135
|
any(node) {
|
|
72353
|
-
if (
|
|
72136
|
+
if (this.nodeTypes.includes(node.type)) {
|
|
72354
72137
|
detect.apply(this, arguments);
|
|
72355
72138
|
return !!node._stylehacks;
|
|
72356
72139
|
}
|
|
@@ -72656,7 +72439,7 @@ var require_leadingStar = __commonJS({
|
|
|
72656
72439
|
return;
|
|
72657
72440
|
}
|
|
72658
72441
|
hacks.some((hack) => {
|
|
72659
|
-
if (
|
|
72442
|
+
if (before.includes(hack)) {
|
|
72660
72443
|
this.push(node, {
|
|
72661
72444
|
identifier: _identifiers.PROPERTY,
|
|
72662
72445
|
hack: `${before.trim()}${node.prop}`
|
|
@@ -72708,7 +72491,7 @@ var require_leadingUnderscore = __commonJS({
|
|
|
72708
72491
|
const {
|
|
72709
72492
|
before
|
|
72710
72493
|
} = decl.raws;
|
|
72711
|
-
if (before &&
|
|
72494
|
+
if (before && before.includes("_")) {
|
|
72712
72495
|
this.push(decl, {
|
|
72713
72496
|
identifier: _identifiers.PROPERTY,
|
|
72714
72497
|
hack: `${before.trim()}${decl.prop}`
|
|
@@ -72986,7 +72769,7 @@ var require_dist20 = __commonJS({
|
|
|
72986
72769
|
}, []);
|
|
72987
72770
|
css.walk((node) => {
|
|
72988
72771
|
processors.forEach((proc) => {
|
|
72989
|
-
if (
|
|
72772
|
+
if (!proc.nodeTypes.includes(node.type)) {
|
|
72990
72773
|
return;
|
|
72991
72774
|
}
|
|
72992
72775
|
if (opts.lint) {
|
|
@@ -73062,7 +72845,7 @@ var require_hasAllProps = __commonJS({
|
|
|
73062
72845
|
var _default = (rule, ...props) => {
|
|
73063
72846
|
return props.every((p) => rule.some(({
|
|
73064
72847
|
prop
|
|
73065
|
-
}) => prop &&
|
|
72848
|
+
}) => prop && prop.toLowerCase().includes(p)));
|
|
73066
72849
|
};
|
|
73067
72850
|
exports2.default = _default;
|
|
73068
72851
|
module2.exports = exports2.default;
|
|
@@ -73080,7 +72863,7 @@ var require_getDecls = __commonJS({
|
|
|
73080
72863
|
function getDecls(rule, properties) {
|
|
73081
72864
|
return rule.nodes.filter(({
|
|
73082
72865
|
prop
|
|
73083
|
-
}) => prop &&
|
|
72866
|
+
}) => prop && properties.includes(prop.toLowerCase()));
|
|
73084
72867
|
}
|
|
73085
72868
|
module2.exports = exports2.default;
|
|
73086
72869
|
}
|
|
@@ -73178,7 +72961,7 @@ var require_mergeRules = __commonJS({
|
|
|
73178
72961
|
const rules = (0, _getRules.default)(props, properties);
|
|
73179
72962
|
if ((0, _hasAllProps.default)(rules, ...properties) && !hasConflicts(rules, rule.nodes)) {
|
|
73180
72963
|
if (callback(rules, last, props)) {
|
|
73181
|
-
decls = decls.filter((node) =>
|
|
72964
|
+
decls = decls.filter((node) => !rules.includes(node));
|
|
73182
72965
|
}
|
|
73183
72966
|
}
|
|
73184
72967
|
decls = decls.filter((node) => node !== last);
|
|
@@ -73226,7 +73009,7 @@ var require_colornames = __commonJS({
|
|
|
73226
73009
|
value: true
|
|
73227
73010
|
});
|
|
73228
73011
|
exports2.default = void 0;
|
|
73229
|
-
var _default = ["aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "green", "greenyellow", "grey", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"];
|
|
73012
|
+
var _default = /* @__PURE__ */ new Set(["aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "green", "greenyellow", "grey", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"]);
|
|
73230
73013
|
exports2.default = _default;
|
|
73231
73014
|
module2.exports = exports2.default;
|
|
73232
73015
|
}
|
|
@@ -73239,21 +73022,21 @@ var require_validateWsc = __commonJS({
|
|
|
73239
73022
|
Object.defineProperty(exports2, "__esModule", {
|
|
73240
73023
|
value: true
|
|
73241
73024
|
});
|
|
73242
|
-
exports2.isStyle = isStyle;
|
|
73243
|
-
exports2.isWidth = isWidth;
|
|
73244
73025
|
exports2.isColor = isColor;
|
|
73026
|
+
exports2.isStyle = isStyle;
|
|
73245
73027
|
exports2.isValidWsc = isValidWsc;
|
|
73028
|
+
exports2.isWidth = isWidth;
|
|
73246
73029
|
var _colornames = _interopRequireDefault(require_colornames());
|
|
73247
73030
|
function _interopRequireDefault(obj) {
|
|
73248
73031
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
73249
73032
|
}
|
|
73250
|
-
var widths = ["thin", "medium", "thick"];
|
|
73251
|
-
var styles = ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
|
|
73033
|
+
var widths = /* @__PURE__ */ new Set(["thin", "medium", "thick"]);
|
|
73034
|
+
var styles = /* @__PURE__ */ new Set(["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"]);
|
|
73252
73035
|
function isStyle(value) {
|
|
73253
|
-
return value &&
|
|
73036
|
+
return value && styles.has(value.toLowerCase());
|
|
73254
73037
|
}
|
|
73255
73038
|
function isWidth(value) {
|
|
73256
|
-
return value &&
|
|
73039
|
+
return value && widths.has(value.toLowerCase()) || /^(\d+(\.\d+)?|\.\d+)(\w+)?$/.test(value);
|
|
73257
73040
|
}
|
|
73258
73041
|
function isColor(value) {
|
|
73259
73042
|
if (!value) {
|
|
@@ -73275,7 +73058,7 @@ var require_validateWsc = __commonJS({
|
|
|
73275
73058
|
if (value === "currentcolor") {
|
|
73276
73059
|
return true;
|
|
73277
73060
|
}
|
|
73278
|
-
return
|
|
73061
|
+
return _colornames.default.has(value);
|
|
73279
73062
|
}
|
|
73280
73063
|
function isValidWsc(wscs) {
|
|
73281
73064
|
const validWidth = isWidth(wscs[0]);
|
|
@@ -73464,9 +73247,9 @@ var require_canExplode = __commonJS({
|
|
|
73464
73247
|
function _interopRequireDefault(obj) {
|
|
73465
73248
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
73466
73249
|
}
|
|
73467
|
-
var
|
|
73250
|
+
var globalKeywords = /* @__PURE__ */ new Set(["inherit", "initial", "unset", "revert"]);
|
|
73468
73251
|
var _default = (prop, includeCustomProps = true) => {
|
|
73469
|
-
if (!prop.value || includeCustomProps && (0, _isCustomProp.default)(prop) ||
|
|
73252
|
+
if (!prop.value || includeCustomProps && (0, _isCustomProp.default)(prop) || prop.value && globalKeywords.has(prop.value.toLowerCase())) {
|
|
73470
73253
|
return false;
|
|
73471
73254
|
}
|
|
73472
73255
|
return true;
|
|
@@ -73521,7 +73304,7 @@ var require_borders = __commonJS({
|
|
|
73521
73304
|
var allProperties = precedence.reduce((a, b) => a.concat(b));
|
|
73522
73305
|
function getLevel(prop) {
|
|
73523
73306
|
for (let i = 0; i < precedence.length; i++) {
|
|
73524
|
-
if (
|
|
73307
|
+
if (precedence[i].includes(prop.toLowerCase())) {
|
|
73525
73308
|
return i;
|
|
73526
73309
|
}
|
|
73527
73310
|
}
|
|
@@ -73588,7 +73371,7 @@ var require_borders = __commonJS({
|
|
|
73588
73371
|
function getDistinctShorthands(mapped) {
|
|
73589
73372
|
return mapped.reduce((a, b) => {
|
|
73590
73373
|
a = Array.isArray(a) ? a : [a];
|
|
73591
|
-
if (
|
|
73374
|
+
if (!a.includes(b)) {
|
|
73592
73375
|
a.push(b);
|
|
73593
73376
|
}
|
|
73594
73377
|
return a;
|
|
@@ -73854,7 +73637,7 @@ var require_borders = __commonJS({
|
|
|
73854
73637
|
if (border) {
|
|
73855
73638
|
nodes = nodes.slice(nodes.indexOf(border));
|
|
73856
73639
|
}
|
|
73857
|
-
const props = nodes.filter((node) => node.prop &&
|
|
73640
|
+
const props = nodes.filter((node) => node.prop && names.includes(node.prop) && node.important === lastNode.important);
|
|
73858
73641
|
const rules = (0, _getRules.default)(props, names);
|
|
73859
73642
|
if ((0, _hasAllProps.default)(rules, ...names) && !rules.some(_stylehacks.detect)) {
|
|
73860
73643
|
const values = rules.map((node) => node ? node.value : null);
|
|
@@ -73876,7 +73659,7 @@ var require_borders = __commonJS({
|
|
|
73876
73659
|
prop: borderProperty(d),
|
|
73877
73660
|
value
|
|
73878
73661
|
});
|
|
73879
|
-
decls = decls.filter((node) =>
|
|
73662
|
+
decls = decls.filter((node) => !rules.includes(node));
|
|
73880
73663
|
rules.forEach(_remove.default);
|
|
73881
73664
|
}
|
|
73882
73665
|
});
|
|
@@ -73950,9 +73733,9 @@ var require_borders = __commonJS({
|
|
|
73950
73733
|
while (decls.length) {
|
|
73951
73734
|
const lastNode = decls[decls.length - 1];
|
|
73952
73735
|
const lastPart = lastNode.prop.split("-").pop();
|
|
73953
|
-
const lesser = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && !(0, _isCustomProp.default)(lastNode) && node !== lastNode && node.important === lastNode.important && getLevel(node.prop) > getLevel(lastNode.prop) && (
|
|
73736
|
+
const lesser = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && !(0, _isCustomProp.default)(lastNode) && node !== lastNode && node.important === lastNode.important && getLevel(node.prop) > getLevel(lastNode.prop) && (node.prop.toLowerCase().includes(lastNode.prop) || node.prop.toLowerCase().endsWith(lastPart)));
|
|
73954
73737
|
lesser.forEach(_remove.default);
|
|
73955
|
-
decls = decls.filter((node) =>
|
|
73738
|
+
decls = decls.filter((node) => !lesser.includes(node));
|
|
73956
73739
|
let duplicates = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && node !== lastNode && node.important === lastNode.important && node.prop === lastNode.prop && !(!(0, _isCustomProp.default)(node) && (0, _isCustomProp.default)(lastNode)));
|
|
73957
73740
|
if (duplicates.length) {
|
|
73958
73741
|
if (/hsla\(|rgba\(/i.test(getColorValue(lastNode))) {
|
|
@@ -73961,7 +73744,7 @@ var require_borders = __commonJS({
|
|
|
73961
73744
|
}
|
|
73962
73745
|
duplicates.forEach(_remove.default);
|
|
73963
73746
|
}
|
|
73964
|
-
decls = decls.filter((node) => node !== lastNode &&
|
|
73747
|
+
decls = decls.filter((node) => node !== lastNode && !duplicates.includes(node));
|
|
73965
73748
|
}
|
|
73966
73749
|
}
|
|
73967
73750
|
var _default = {
|
|
@@ -74043,10 +73826,10 @@ var require_columns2 = __commonJS({
|
|
|
74043
73826
|
const lastNode = decls[decls.length - 1];
|
|
74044
73827
|
const lesser = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && node !== lastNode && node.important === lastNode.important && lastNode.prop === "columns" && node.prop !== lastNode.prop);
|
|
74045
73828
|
lesser.forEach(_remove.default);
|
|
74046
|
-
decls = decls.filter((node) =>
|
|
73829
|
+
decls = decls.filter((node) => !lesser.includes(node));
|
|
74047
73830
|
let duplicates = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && node !== lastNode && node.important === lastNode.important && node.prop === lastNode.prop && !(!(0, _isCustomProp.default)(node) && (0, _isCustomProp.default)(lastNode)));
|
|
74048
73831
|
duplicates.forEach(_remove.default);
|
|
74049
|
-
decls = decls.filter((node) => node !== lastNode &&
|
|
73832
|
+
decls = decls.filter((node) => node !== lastNode && !duplicates.includes(node));
|
|
74050
73833
|
}
|
|
74051
73834
|
}
|
|
74052
73835
|
function merge(rule) {
|
|
@@ -74120,10 +73903,10 @@ var require_boxBase = __commonJS({
|
|
|
74120
73903
|
const lastNode = decls[decls.length - 1];
|
|
74121
73904
|
const lesser = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && node !== lastNode && node.important === lastNode.important && lastNode.prop === prop && node.prop !== lastNode.prop);
|
|
74122
73905
|
lesser.forEach(_remove.default);
|
|
74123
|
-
decls = decls.filter((node) =>
|
|
73906
|
+
decls = decls.filter((node) => !lesser.includes(node));
|
|
74124
73907
|
let duplicates = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && node !== lastNode && node.important === lastNode.important && node.prop === lastNode.prop && !(!(0, _isCustomProp.default)(node) && (0, _isCustomProp.default)(lastNode)));
|
|
74125
73908
|
duplicates.forEach(_remove.default);
|
|
74126
|
-
decls = decls.filter((node) => node !== lastNode &&
|
|
73909
|
+
decls = decls.filter((node) => node !== lastNode && !duplicates.includes(node));
|
|
74127
73910
|
}
|
|
74128
73911
|
};
|
|
74129
73912
|
const processor = {
|
|
@@ -74263,8 +74046,6 @@ var require_dist22 = __commonJS({
|
|
|
74263
74046
|
value: true
|
|
74264
74047
|
});
|
|
74265
74048
|
exports2.default = void 0;
|
|
74266
|
-
function noop() {
|
|
74267
|
-
}
|
|
74268
74049
|
function trimValue(value) {
|
|
74269
74050
|
return value ? value.trim() : value;
|
|
74270
74051
|
}
|
|
@@ -74336,7 +74117,7 @@ var require_dist22 = __commonJS({
|
|
|
74336
74117
|
}
|
|
74337
74118
|
}
|
|
74338
74119
|
function dedupeNode(last, nodes) {
|
|
74339
|
-
let index =
|
|
74120
|
+
let index = nodes.includes(last) ? nodes.indexOf(last) - 1 : nodes.length - 1;
|
|
74340
74121
|
while (index >= 0) {
|
|
74341
74122
|
const node = nodes[index--];
|
|
74342
74123
|
if (node && equals(node, last)) {
|
|
@@ -74344,12 +74125,6 @@ var require_dist22 = __commonJS({
|
|
|
74344
74125
|
}
|
|
74345
74126
|
}
|
|
74346
74127
|
}
|
|
74347
|
-
var handlers = {
|
|
74348
|
-
rule: dedupeRule,
|
|
74349
|
-
atrule: dedupeNode,
|
|
74350
|
-
decl: dedupeNode,
|
|
74351
|
-
comment: noop
|
|
74352
|
-
};
|
|
74353
74128
|
function dedupe(root) {
|
|
74354
74129
|
const {
|
|
74355
74130
|
nodes
|
|
@@ -74364,7 +74139,11 @@ var require_dist22 = __commonJS({
|
|
|
74364
74139
|
continue;
|
|
74365
74140
|
}
|
|
74366
74141
|
dedupe(last);
|
|
74367
|
-
|
|
74142
|
+
if (last.type === "rule") {
|
|
74143
|
+
dedupeRule(last, nodes);
|
|
74144
|
+
} else if (last.type === "atrule" || last.type === "decl") {
|
|
74145
|
+
dedupeNode(last, nodes);
|
|
74146
|
+
}
|
|
74368
74147
|
}
|
|
74369
74148
|
}
|
|
74370
74149
|
function pluginCreator() {
|
|
@@ -74390,16 +74169,16 @@ var require_dist23 = __commonJS({
|
|
|
74390
74169
|
value: true
|
|
74391
74170
|
});
|
|
74392
74171
|
exports2.default = void 0;
|
|
74393
|
-
var OVERRIDABLE_RULES = ["keyframes", "counter-style"];
|
|
74394
|
-
var SCOPE_RULES = ["media", "supports"];
|
|
74172
|
+
var OVERRIDABLE_RULES = /* @__PURE__ */ new Set(["keyframes", "counter-style"]);
|
|
74173
|
+
var SCOPE_RULES = /* @__PURE__ */ new Set(["media", "supports"]);
|
|
74395
74174
|
function vendorUnprefixed(prop) {
|
|
74396
74175
|
return prop.replace(/^-\w+-/, "");
|
|
74397
74176
|
}
|
|
74398
74177
|
function isOverridable(name) {
|
|
74399
|
-
return
|
|
74178
|
+
return OVERRIDABLE_RULES.has(vendorUnprefixed(name.toLowerCase()));
|
|
74400
74179
|
}
|
|
74401
74180
|
function isScope(name) {
|
|
74402
|
-
return
|
|
74181
|
+
return SCOPE_RULES.has(vendorUnprefixed(name.toLowerCase()));
|
|
74403
74182
|
}
|
|
74404
74183
|
function getScope(node) {
|
|
74405
74184
|
let current = node.parent;
|
|
@@ -74477,7 +74256,7 @@ var require_dist24 = __commonJS({
|
|
|
74477
74256
|
function evenValues(list, index) {
|
|
74478
74257
|
return index % 2 === 0;
|
|
74479
74258
|
}
|
|
74480
|
-
var repeatKeywords =
|
|
74259
|
+
var repeatKeywords = new Set(_map.default.values());
|
|
74481
74260
|
function isCommaNode(node) {
|
|
74482
74261
|
return node.type === "div" && node.value === ",";
|
|
74483
74262
|
}
|
|
@@ -74520,7 +74299,7 @@ var require_dist24 = __commonJS({
|
|
|
74520
74299
|
ranges[rangeIndex].end = null;
|
|
74521
74300
|
return;
|
|
74522
74301
|
}
|
|
74523
|
-
const isRepeatKeyword = node.type === "word" && repeatKeywords.
|
|
74302
|
+
const isRepeatKeyword = node.type === "word" && repeatKeywords.has(node.value.toLowerCase());
|
|
74524
74303
|
if (ranges[rangeIndex].start === null && isRepeatKeyword) {
|
|
74525
74304
|
ranges[rangeIndex].start = index;
|
|
74526
74305
|
ranges[rangeIndex].end = index;
|
|
@@ -74726,10 +74505,10 @@ var require_ensureCompatibility = __commonJS({
|
|
|
74726
74505
|
}
|
|
74727
74506
|
}
|
|
74728
74507
|
if (type === "combinator") {
|
|
74729
|
-
if (
|
|
74508
|
+
if (value.includes("~")) {
|
|
74730
74509
|
compatible = isSupportedCached(cssSel3, browsers);
|
|
74731
74510
|
}
|
|
74732
|
-
if (
|
|
74511
|
+
if (value.includes(">") || value.includes("+")) {
|
|
74733
74512
|
compatible = isSupportedCached(cssSel2, browsers);
|
|
74734
74513
|
}
|
|
74735
74514
|
}
|
|
@@ -74738,10 +74517,10 @@ var require_ensureCompatibility = __commonJS({
|
|
|
74738
74517
|
compatible = isSupportedCached(cssSel2, browsers);
|
|
74739
74518
|
}
|
|
74740
74519
|
if (value) {
|
|
74741
|
-
if (
|
|
74520
|
+
if (["=", "~=", "|="].includes(node.operator)) {
|
|
74742
74521
|
compatible = isSupportedCached(cssSel2, browsers);
|
|
74743
74522
|
}
|
|
74744
|
-
if (
|
|
74523
|
+
if (["^=", "$=", "*="].includes(node.operator)) {
|
|
74745
74524
|
compatible = isSupportedCached(cssSel3, browsers);
|
|
74746
74525
|
}
|
|
74747
74526
|
}
|
|
@@ -74806,7 +74585,7 @@ var require_dist25 = __commonJS({
|
|
|
74806
74585
|
const {
|
|
74807
74586
|
name
|
|
74808
74587
|
} = ruleA.parent;
|
|
74809
|
-
if (parent && name &&
|
|
74588
|
+
if (parent && name && name.includes("keyframes")) {
|
|
74810
74589
|
return false;
|
|
74811
74590
|
}
|
|
74812
74591
|
return parent && (selectors.every(_ensureCompatibility.noVendor) || (0, _ensureCompatibility.sameVendor)(a, b));
|
|
@@ -75071,7 +74850,6 @@ var require_dist27 = __commonJS({
|
|
|
75071
74850
|
value: true
|
|
75072
74851
|
});
|
|
75073
74852
|
exports2.default = void 0;
|
|
75074
|
-
var _alphanumSort = _interopRequireDefault(require_lib12());
|
|
75075
74853
|
var _postcssSelectorParser = _interopRequireDefault(require_dist11());
|
|
75076
74854
|
function _interopRequireDefault(obj) {
|
|
75077
74855
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -75080,9 +74858,9 @@ var require_dist27 = __commonJS({
|
|
|
75080
74858
|
return (0, _postcssSelectorParser.default)(callback).processSync(selectors);
|
|
75081
74859
|
}
|
|
75082
74860
|
function unique(rule) {
|
|
75083
|
-
|
|
75084
|
-
|
|
75085
|
-
|
|
74861
|
+
const selector = [...new Set(rule.selectors)];
|
|
74862
|
+
selector.sort();
|
|
74863
|
+
rule.selector = selector.join();
|
|
75086
74864
|
}
|
|
75087
74865
|
function pluginCreator() {
|
|
75088
74866
|
return {
|
|
@@ -75298,11 +75076,15 @@ var require_dist28 = __commonJS({
|
|
|
75298
75076
|
child.value = stringify(ast);
|
|
75299
75077
|
}).toString();
|
|
75300
75078
|
}
|
|
75301
|
-
|
|
75302
|
-
|
|
75303
|
-
|
|
75304
|
-
|
|
75305
|
-
|
|
75079
|
+
function minify(original, cache, preferredQuote) {
|
|
75080
|
+
const key = original + "|" + preferredQuote;
|
|
75081
|
+
if (cache.has(key)) {
|
|
75082
|
+
return cache.get(key);
|
|
75083
|
+
}
|
|
75084
|
+
const newValue = normalize(original, preferredQuote);
|
|
75085
|
+
cache.set(key, newValue);
|
|
75086
|
+
return newValue;
|
|
75087
|
+
}
|
|
75306
75088
|
function pluginCreator(opts) {
|
|
75307
75089
|
const {
|
|
75308
75090
|
preferredQuote
|
|
@@ -75314,19 +75096,16 @@ var require_dist28 = __commonJS({
|
|
|
75314
75096
|
OnceExit(css) {
|
|
75315
75097
|
const cache = /* @__PURE__ */ new Map();
|
|
75316
75098
|
css.walk((node) => {
|
|
75317
|
-
|
|
75318
|
-
|
|
75319
|
-
|
|
75320
|
-
|
|
75321
|
-
|
|
75322
|
-
|
|
75323
|
-
|
|
75324
|
-
|
|
75325
|
-
|
|
75326
|
-
|
|
75327
|
-
const newValue = normalize(node[param], preferredQuote);
|
|
75328
|
-
node[param] = newValue;
|
|
75329
|
-
cache.set(key, newValue);
|
|
75099
|
+
switch (node.type) {
|
|
75100
|
+
case "rule":
|
|
75101
|
+
node.selector = minify(node.selector, cache, preferredQuote);
|
|
75102
|
+
break;
|
|
75103
|
+
case "decl":
|
|
75104
|
+
node.value = minify(node.value, cache, preferredQuote);
|
|
75105
|
+
break;
|
|
75106
|
+
case "atrule":
|
|
75107
|
+
node.params = minify(node.params, cache, preferredQuote);
|
|
75108
|
+
break;
|
|
75330
75109
|
}
|
|
75331
75110
|
});
|
|
75332
75111
|
}
|
|
@@ -75386,16 +75165,11 @@ var require_dist29 = __commonJS({
|
|
|
75386
75165
|
}
|
|
75387
75166
|
return newObj;
|
|
75388
75167
|
}
|
|
75389
|
-
var directionKeywords = ["top", "right", "bottom", "left", "center"];
|
|
75168
|
+
var directionKeywords = /* @__PURE__ */ new Set(["top", "right", "bottom", "left", "center"]);
|
|
75390
75169
|
var center = "50%";
|
|
75391
|
-
var horizontal =
|
|
75392
|
-
|
|
75393
|
-
|
|
75394
|
-
};
|
|
75395
|
-
var verticalValue = {
|
|
75396
|
-
bottom: "100%",
|
|
75397
|
-
top: "0"
|
|
75398
|
-
};
|
|
75170
|
+
var horizontal = /* @__PURE__ */ new Map([["right", "100%"], ["left", "0"]]);
|
|
75171
|
+
var verticalValue = /* @__PURE__ */ new Map([["bottom", "100%"], ["top", "0"]]);
|
|
75172
|
+
var mathFunctions = /* @__PURE__ */ new Set(["calc", "min", "max", "clamp"]);
|
|
75399
75173
|
function isCommaNode(node) {
|
|
75400
75174
|
return node.type === "div" && node.value === ",";
|
|
75401
75175
|
}
|
|
@@ -75409,7 +75183,7 @@ var require_dist29 = __commonJS({
|
|
|
75409
75183
|
if (node.type !== "function") {
|
|
75410
75184
|
return false;
|
|
75411
75185
|
}
|
|
75412
|
-
return
|
|
75186
|
+
return mathFunctions.has(node.value.toLowerCase());
|
|
75413
75187
|
}
|
|
75414
75188
|
function isNumberNode(node) {
|
|
75415
75189
|
if (node.type !== "word") {
|
|
@@ -75458,7 +75232,7 @@ var require_dist29 = __commonJS({
|
|
|
75458
75232
|
ranges[rangeIndex].end = null;
|
|
75459
75233
|
return;
|
|
75460
75234
|
}
|
|
75461
|
-
const isPositionKeyword = node.type === "word" && directionKeywords.
|
|
75235
|
+
const isPositionKeyword = node.type === "word" && directionKeywords.has(node.value.toLowerCase()) || isDimensionNode(node) || isNumberNode(node) || isMathFunctionNode(node);
|
|
75462
75236
|
if (ranges[rangeIndex].start === null && isPositionKeyword) {
|
|
75463
75237
|
ranges[rangeIndex].start = index;
|
|
75464
75238
|
ranges[rangeIndex].end = index;
|
|
@@ -75488,28 +75262,26 @@ var require_dist29 = __commonJS({
|
|
|
75488
75262
|
if (secondNode) {
|
|
75489
75263
|
nodes[2].value = nodes[1].value = "";
|
|
75490
75264
|
}
|
|
75491
|
-
const map =
|
|
75492
|
-
|
|
75493
|
-
|
|
75494
|
-
if (Object.prototype.hasOwnProperty.call(map, firstNode)) {
|
|
75495
|
-
nodes[0].value = map[firstNode];
|
|
75265
|
+
const map = new Map([...horizontal, ["center", center]]);
|
|
75266
|
+
if (map.has(firstNode)) {
|
|
75267
|
+
nodes[0].value = map.get(firstNode);
|
|
75496
75268
|
}
|
|
75497
75269
|
return;
|
|
75498
75270
|
}
|
|
75499
|
-
if (firstNode === "center" && directionKeywords.
|
|
75271
|
+
if (firstNode === "center" && directionKeywords.has(secondNode)) {
|
|
75500
75272
|
nodes[0].value = nodes[1].value = "";
|
|
75501
|
-
if (
|
|
75502
|
-
nodes[2].value = horizontal
|
|
75273
|
+
if (horizontal.has(secondNode)) {
|
|
75274
|
+
nodes[2].value = horizontal.get(secondNode);
|
|
75503
75275
|
}
|
|
75504
75276
|
return;
|
|
75505
75277
|
}
|
|
75506
|
-
if (
|
|
75507
|
-
nodes[0].value = horizontal
|
|
75508
|
-
nodes[2].value = verticalValue
|
|
75278
|
+
if (horizontal.has(firstNode) && verticalValue.has(secondNode)) {
|
|
75279
|
+
nodes[0].value = horizontal.get(firstNode);
|
|
75280
|
+
nodes[2].value = verticalValue.get(secondNode);
|
|
75509
75281
|
return;
|
|
75510
|
-
} else if (
|
|
75511
|
-
nodes[0].value = horizontal
|
|
75512
|
-
nodes[2].value = verticalValue
|
|
75282
|
+
} else if (verticalValue.has(firstNode) && horizontal.has(secondNode)) {
|
|
75283
|
+
nodes[0].value = horizontal.get(secondNode);
|
|
75284
|
+
nodes[2].value = verticalValue.get(firstNode);
|
|
75513
75285
|
return;
|
|
75514
75286
|
}
|
|
75515
75287
|
});
|
|
@@ -75558,11 +75330,12 @@ var require_dist30 = __commonJS({
|
|
|
75558
75330
|
var atrule = "atrule";
|
|
75559
75331
|
var decl = "decl";
|
|
75560
75332
|
var rule = "rule";
|
|
75333
|
+
var variableFunctions = /* @__PURE__ */ new Set(["var", "env", "constant"]);
|
|
75561
75334
|
function reduceCalcWhitespaces(node) {
|
|
75562
75335
|
if (node.type === "space") {
|
|
75563
75336
|
node.value = " ";
|
|
75564
75337
|
} else if (node.type === "function") {
|
|
75565
|
-
if (!
|
|
75338
|
+
if (!variableFunctions.has(node.value.toLowerCase())) {
|
|
75566
75339
|
node.before = node.after = "";
|
|
75567
75340
|
}
|
|
75568
75341
|
}
|
|
@@ -75573,7 +75346,7 @@ var require_dist30 = __commonJS({
|
|
|
75573
75346
|
} else if (node.type === "div") {
|
|
75574
75347
|
node.before = node.after = "";
|
|
75575
75348
|
} else if (node.type === "function") {
|
|
75576
|
-
if (!
|
|
75349
|
+
if (!variableFunctions.has(node.value.toLowerCase())) {
|
|
75577
75350
|
node.before = node.after = "";
|
|
75578
75351
|
}
|
|
75579
75352
|
if (node.value.toLowerCase() === "calc") {
|
|
@@ -75591,7 +75364,7 @@ var require_dist30 = __commonJS({
|
|
|
75591
75364
|
const {
|
|
75592
75365
|
type
|
|
75593
75366
|
} = node;
|
|
75594
|
-
if (
|
|
75367
|
+
if ([decl, rule, atrule].includes(type) && node.raws.before) {
|
|
75595
75368
|
node.raws.before = node.raws.before.replace(/\s/g, "");
|
|
75596
75369
|
}
|
|
75597
75370
|
if (type === decl) {
|
|
@@ -75676,7 +75449,7 @@ var require_dist31 = __commonJS({
|
|
|
75676
75449
|
return range;
|
|
75677
75450
|
}
|
|
75678
75451
|
function hasLowerCaseUPrefixBug(browser) {
|
|
75679
|
-
return
|
|
75452
|
+
return (0, _browserslist.default)("ie <=11, edge <= 15").includes(browser);
|
|
75680
75453
|
}
|
|
75681
75454
|
function transform(value, isLegacy = false) {
|
|
75682
75455
|
return (0, _postcssValueParser.default)(value).walk((child) => {
|