tailwindcss 3.0.12 → 3.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +38 -5
  2. package/lib/cli.js +8 -16
  3. package/lib/corePlugins.js +71 -139
  4. package/lib/featureFlags.js +1 -2
  5. package/lib/lib/expandTailwindAtRules.js +29 -13
  6. package/lib/lib/generateRules.js +8 -2
  7. package/lib/lib/normalizeTailwindDirectives.js +2 -1
  8. package/lib/lib/partitionApplyAtRules.js +53 -0
  9. package/lib/lib/setupContextUtils.js +56 -120
  10. package/{nesting → lib/postcss-plugins/nesting}/README.md +0 -0
  11. package/lib/postcss-plugins/nesting/index.js +17 -0
  12. package/lib/postcss-plugins/nesting/plugin.js +53 -0
  13. package/lib/processTailwindFeatures.js +2 -0
  14. package/lib/util/createPlugin.js +1 -2
  15. package/lib/util/createUtilityPlugin.js +4 -8
  16. package/lib/util/flattenColorPalette.js +1 -3
  17. package/lib/util/normalizeConfig.js +19 -16
  18. package/lib/util/normalizeScreens.js +2 -4
  19. package/lib/util/pluginUtils.js +5 -12
  20. package/lib/util/resolveConfig.js +9 -18
  21. package/lib/util/resolveConfigPath.js +1 -2
  22. package/lib/util/toColorValue.js +1 -2
  23. package/lib/util/transformThemeValue.js +4 -8
  24. package/nesting/index.js +2 -12
  25. package/package.json +10 -12
  26. package/peers/index.js +261 -231
  27. package/src/corePlugins.js +1 -0
  28. package/src/lib/expandTailwindAtRules.js +31 -6
  29. package/src/lib/generateRules.js +6 -0
  30. package/src/lib/normalizeTailwindDirectives.js +1 -0
  31. package/src/lib/partitionApplyAtRules.js +52 -0
  32. package/src/lib/setupContextUtils.js +7 -75
  33. package/src/postcss-plugins/nesting/README.md +42 -0
  34. package/src/postcss-plugins/nesting/index.js +13 -0
  35. package/{nesting → src/postcss-plugins/nesting}/plugin.js +7 -4
  36. package/src/processTailwindFeatures.js +2 -0
  37. package/src/util/normalizeConfig.js +12 -4
package/peers/index.js CHANGED
@@ -1,5 +1,7 @@
1
+ "use strict";
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
1
3
  var __commonJS = (cb, mod) => function __require() {
2
- return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
3
5
  };
4
6
 
5
7
  // node_modules/picocolors/picocolors.js
@@ -1390,7 +1392,7 @@ var require_util = __commonJS({
1390
1392
  }
1391
1393
  exports2.relative = relative;
1392
1394
  var supportsNullProto = function() {
1393
- var obj = Object.create(null);
1395
+ var obj = /* @__PURE__ */ Object.create(null);
1394
1396
  return !("__proto__" in obj);
1395
1397
  }();
1396
1398
  function identity(s) {
@@ -1595,7 +1597,7 @@ var require_array_set = __commonJS({
1595
1597
  var hasNativeMap = typeof Map !== "undefined";
1596
1598
  function ArraySet() {
1597
1599
  this._array = [];
1598
- this._set = hasNativeMap ? /* @__PURE__ */ new Map() : Object.create(null);
1600
+ this._set = hasNativeMap ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
1599
1601
  }
1600
1602
  ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
1601
1603
  var set = new ArraySet();
@@ -1795,7 +1797,7 @@ var require_source_map_generator = __commonJS({
1795
1797
  }
1796
1798
  if (aSourceContent != null) {
1797
1799
  if (!this._sourcesContents) {
1798
- this._sourcesContents = Object.create(null);
1800
+ this._sourcesContents = /* @__PURE__ */ Object.create(null);
1799
1801
  }
1800
1802
  this._sourcesContents[util.toSetString(source)] = aSourceContent;
1801
1803
  } else if (this._sourcesContents) {
@@ -2054,7 +2056,7 @@ var require_quick_sort = __commonJS({
2054
2056
  let templateFn = new Function(`return ${template}`)();
2055
2057
  return templateFn(comparator);
2056
2058
  }
2057
- var sortCache = new WeakMap();
2059
+ var sortCache = /* @__PURE__ */ new WeakMap();
2058
2060
  exports2.quickSort = function(ary, comparator, start = 0) {
2059
2061
  let doQuickSort = sortCache.get(comparator);
2060
2062
  if (doQuickSort === void 0) {
@@ -20401,7 +20403,7 @@ ${indent}${s}` : "\n";
20401
20403
  return String(jsKey);
20402
20404
  if (key instanceof Node && ctx && ctx.doc)
20403
20405
  return key.toString({
20404
- anchors: Object.create(null),
20406
+ anchors: /* @__PURE__ */ Object.create(null),
20405
20407
  doc: ctx.doc,
20406
20408
  indent: "",
20407
20409
  indentStep: ctx.indentStep,
@@ -23073,7 +23075,7 @@ ${ctx.indent}${str}`;
23073
23075
  return node instanceof resolveSeq.Scalar || node instanceof resolveSeq.YAMLSeq || node instanceof resolveSeq.YAMLMap;
23074
23076
  }
23075
23077
  constructor(prefix) {
23076
- PlainValue._defineProperty(this, "map", Object.create(null));
23078
+ PlainValue._defineProperty(this, "map", /* @__PURE__ */ Object.create(null));
23077
23079
  this.prefix = prefix;
23078
23080
  }
23079
23081
  createAlias(node, name) {
@@ -23521,7 +23523,7 @@ ${cbNode.commentBefore}` : cb;
23521
23523
  lines.unshift(this.commentBefore.replace(/^/gm, "#"));
23522
23524
  }
23523
23525
  const ctx = {
23524
- anchors: Object.create(null),
23526
+ anchors: /* @__PURE__ */ Object.create(null),
23525
23527
  doc: this,
23526
23528
  indent: "",
23527
23529
  indentStep: " ".repeat(indentSize),
@@ -24519,7 +24521,7 @@ var require_main = __commonJS({
24519
24521
  function _interopNamespace(e) {
24520
24522
  if (e && e.__esModule)
24521
24523
  return e;
24522
- var n = Object.create(null);
24524
+ var n = /* @__PURE__ */ Object.create(null);
24523
24525
  if (e) {
24524
24526
  Object.keys(e).forEach(function(k) {
24525
24527
  if (k !== "default") {
@@ -24817,9 +24819,11 @@ var require_main = __commonJS({
24817
24819
  `Invalid built-in order '${order}' provided.`,
24818
24820
  `Available built-in orders are: ${builtInOrders}`
24819
24821
  ].join("\n")));
24820
- return Promise.resolve().then(function() {
24821
- return /* @__PURE__ */ _interopNamespace(require(`../orders/${order}.cjs`));
24822
- }).then(({ properties }) => processCss({
24822
+ return function(t) {
24823
+ return Promise.resolve().then(function() {
24824
+ return /* @__PURE__ */ _interopNamespace(require(t));
24825
+ });
24826
+ }(`../orders/${order}.cjs`).then(({ properties }) => processCss({
24823
24827
  css,
24824
24828
  comparator: withKeepOverrides(orderComparator(properties))
24825
24829
  }));
@@ -24873,7 +24877,7 @@ var require_main = __commonJS({
24873
24877
  comments.forEach((node) => {
24874
24878
  const pairedNode = node.pairedNode;
24875
24879
  node.comment.remove();
24876
- pairedNode.parent["insert" + node.insertPosition](pairedNode, node.comment);
24880
+ pairedNode.parent && pairedNode.parent["insert" + node.insertPosition](pairedNode, node.comment);
24877
24881
  });
24878
24882
  }
24879
24883
  function sortCssDeclarations({ nodes, comparator }) {
@@ -26225,29 +26229,6 @@ var require_rawCache = __commonJS({
26225
26229
  }
26226
26230
  });
26227
26231
 
26228
- // node_modules/cssnano-utils/dist/getMatch.js
26229
- var require_getMatch = __commonJS({
26230
- "node_modules/cssnano-utils/dist/getMatch.js"(exports2, module2) {
26231
- "use strict";
26232
- Object.defineProperty(exports2, "__esModule", {
26233
- value: true
26234
- });
26235
- exports2.default = getMatchFactory;
26236
- function getMatchFactory(map) {
26237
- return function getMatch(args) {
26238
- const match = args.reduce((list, arg, i) => {
26239
- return list.filter((keyword) => keyword[1][i] === arg);
26240
- }, map);
26241
- if (match.length) {
26242
- return match[0][0];
26243
- }
26244
- return false;
26245
- };
26246
- }
26247
- module2.exports = exports2.default;
26248
- }
26249
- });
26250
-
26251
26232
  // node_modules/cssnano-utils/dist/getArguments.js
26252
26233
  var require_getArguments = __commonJS({
26253
26234
  "node_modules/cssnano-utils/dist/getArguments.js"(exports2, module2) {
@@ -26257,14 +26238,15 @@ var require_getArguments = __commonJS({
26257
26238
  });
26258
26239
  exports2.default = getArguments;
26259
26240
  function getArguments(node) {
26260
- return node.nodes.reduce((list, child) => {
26241
+ const list = [[]];
26242
+ for (const child of node.nodes) {
26261
26243
  if (child.type !== "div") {
26262
26244
  list[list.length - 1].push(child);
26263
26245
  } else {
26264
26246
  list.push([]);
26265
26247
  }
26266
- return list;
26267
- }, [[]]);
26248
+ }
26249
+ return list;
26268
26250
  }
26269
26251
  module2.exports = exports2.default;
26270
26252
  }
@@ -26307,22 +26289,16 @@ var require_dist6 = __commonJS({
26307
26289
  Object.defineProperty(exports2, "__esModule", {
26308
26290
  value: true
26309
26291
  });
26310
- Object.defineProperty(exports2, "rawCache", {
26311
- enumerable: true,
26312
- get: function() {
26313
- return _rawCache.default;
26314
- }
26315
- });
26316
- Object.defineProperty(exports2, "getMatch", {
26292
+ Object.defineProperty(exports2, "getArguments", {
26317
26293
  enumerable: true,
26318
26294
  get: function() {
26319
- return _getMatch.default;
26295
+ return _getArguments.default;
26320
26296
  }
26321
26297
  });
26322
- Object.defineProperty(exports2, "getArguments", {
26298
+ Object.defineProperty(exports2, "rawCache", {
26323
26299
  enumerable: true,
26324
26300
  get: function() {
26325
- return _getArguments.default;
26301
+ return _rawCache.default;
26326
26302
  }
26327
26303
  });
26328
26304
  Object.defineProperty(exports2, "sameParent", {
@@ -26332,7 +26308,6 @@ var require_dist6 = __commonJS({
26332
26308
  }
26333
26309
  });
26334
26310
  var _rawCache = _interopRequireDefault(require_rawCache());
26335
- var _getMatch = _interopRequireDefault(require_getMatch());
26336
26311
  var _getArguments = _interopRequireDefault(require_getArguments());
26337
26312
  var _sameParent = _interopRequireDefault(require_sameParent());
26338
26313
  function _interopRequireDefault(obj) {
@@ -26609,8 +26584,8 @@ var require_dist7 = __commonJS({
26609
26584
  function _getRequireWildcardCache(nodeInterop) {
26610
26585
  if (typeof WeakMap !== "function")
26611
26586
  return null;
26612
- var cacheBabelInterop = new WeakMap();
26613
- var cacheNodeInterop = new WeakMap();
26587
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
26588
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
26614
26589
  return (_getRequireWildcardCache = function(nodeInterop2) {
26615
26590
  return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
26616
26591
  })(nodeInterop);
@@ -29926,7 +29901,7 @@ var require_general = __commonJS({
29926
29901
  return false;
29927
29902
  };
29928
29903
  }
29929
- var isFalseCache_1 = new WeakSet();
29904
+ var isFalseCache_1 = /* @__PURE__ */ new WeakSet();
29930
29905
  return function cachedDescendant(elem) {
29931
29906
  var current = elem;
29932
29907
  while (current = adapter.getParent(current)) {
@@ -33982,8 +33957,8 @@ var require_error2 = __commonJS({
33982
33957
  var require_names2 = __commonJS({
33983
33958
  "node_modules/css-tree/lib/utils/names.js"(exports2, module2) {
33984
33959
  var hasOwnProperty2 = Object.prototype.hasOwnProperty;
33985
- var keywords = Object.create(null);
33986
- var properties = Object.create(null);
33960
+ var keywords = /* @__PURE__ */ Object.create(null);
33961
+ var properties = /* @__PURE__ */ Object.create(null);
33987
33962
  var HYPHENMINUS = 45;
33988
33963
  function isCustomProperty(str, offset) {
33989
33964
  offset = offset || 0;
@@ -35729,7 +35704,7 @@ var require_match_graph = __commonJS({
35729
35704
  var term = terms[i];
35730
35705
  if (isEnumCapatible(term)) {
35731
35706
  if (map === null && i > 0 && isEnumCapatible(terms[i - 1])) {
35732
- map = Object.create(null);
35707
+ map = /* @__PURE__ */ Object.create(null);
35733
35708
  result = createCondition({
35734
35709
  type: "Enum",
35735
35710
  map
@@ -37609,7 +37584,7 @@ var require_util2 = __commonJS({
37609
37584
  }
37610
37585
  exports2.relative = relative;
37611
37586
  var supportsNullProto = function() {
37612
- var obj = Object.create(null);
37587
+ var obj = /* @__PURE__ */ Object.create(null);
37613
37588
  return !("__proto__" in obj);
37614
37589
  }();
37615
37590
  function identity(s) {
@@ -37773,7 +37748,7 @@ var require_array_set2 = __commonJS({
37773
37748
  var hasNativeMap = typeof Map !== "undefined";
37774
37749
  function ArraySet() {
37775
37750
  this._array = [];
37776
- this._set = hasNativeMap ? /* @__PURE__ */ new Map() : Object.create(null);
37751
+ this._set = hasNativeMap ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
37777
37752
  }
37778
37753
  ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
37779
37754
  var set = new ArraySet();
@@ -37973,7 +37948,7 @@ var require_source_map_generator2 = __commonJS({
37973
37948
  }
37974
37949
  if (aSourceContent != null) {
37975
37950
  if (!this._sourcesContents) {
37976
- this._sourcesContents = Object.create(null);
37951
+ this._sourcesContents = /* @__PURE__ */ Object.create(null);
37977
37952
  }
37978
37953
  this._sourcesContents[util.toSetString(source)] = aSourceContent;
37979
37954
  } else if (this._sourcesContents) {
@@ -50005,12 +49980,12 @@ var require_data = __commonJS({
50005
49980
  var patch = require_patch();
50006
49981
  var extendSyntax = /^\s*\|\s*/;
50007
49982
  function preprocessAtrules(dict) {
50008
- const result = Object.create(null);
49983
+ const result = /* @__PURE__ */ Object.create(null);
50009
49984
  for (const atruleName in dict) {
50010
49985
  const atrule = dict[atruleName];
50011
49986
  let descriptors = null;
50012
49987
  if (atrule.descriptors) {
50013
- descriptors = Object.create(null);
49988
+ descriptors = /* @__PURE__ */ Object.create(null);
50014
49989
  for (const descriptor in atrule.descriptors) {
50015
49990
  descriptors[descriptor] = atrule.descriptors[descriptor].syntax;
50016
49991
  }
@@ -53924,7 +53899,7 @@ var require_usage = __commonJS({
53924
53899
  "node_modules/csso/lib/usage.js"(exports2, module2) {
53925
53900
  var hasOwnProperty2 = Object.prototype.hasOwnProperty;
53926
53901
  function buildMap(list, caseInsensitive) {
53927
- var map = Object.create(null);
53902
+ var map = /* @__PURE__ */ Object.create(null);
53928
53903
  if (!Array.isArray(list)) {
53929
53904
  return null;
53930
53905
  }
@@ -53956,7 +53931,7 @@ var require_usage = __commonJS({
53956
53931
  function buildIndex(data) {
53957
53932
  var scopes = false;
53958
53933
  if (data.scopes && Array.isArray(data.scopes)) {
53959
- scopes = Object.create(null);
53934
+ scopes = /* @__PURE__ */ Object.create(null);
53960
53935
  for (var i = 0; i < data.scopes.length; i++) {
53961
53936
  var list = data.scopes[i];
53962
53937
  if (!list || !Array.isArray(list)) {
@@ -55089,7 +55064,7 @@ var require_createDeclarationIndexer = __commonJS({
55089
55064
  var generate = require_lib10().generate;
55090
55065
  function Index() {
55091
55066
  this.seed = 0;
55092
- this.map = Object.create(null);
55067
+ this.map = /* @__PURE__ */ Object.create(null);
55093
55068
  }
55094
55069
  Index.prototype.resolve = function(str) {
55095
55070
  var index = this.map[str];
@@ -55134,7 +55109,7 @@ var require_processSelector = __commonJS({
55134
55109
  "before": true
55135
55110
  };
55136
55111
  module2.exports = function freeze(node, usageData) {
55137
- var pseudos = Object.create(null);
55112
+ var pseudos = /* @__PURE__ */ Object.create(null);
55138
55113
  var hasPseudo = false;
55139
55114
  node.prelude.children.each(function(simpleSelector) {
55140
55115
  var tagName = "*";
@@ -55247,7 +55222,7 @@ var require_mergeAtrule = __commonJS({
55247
55222
  var name = resolveKeyword(node.name).basename;
55248
55223
  var id = node.name.toLowerCase() + "/" + (node.prelude ? node.prelude.id : null);
55249
55224
  if (!hasOwnProperty2.call(map, name)) {
55250
- map[name] = Object.create(null);
55225
+ map[name] = /* @__PURE__ */ Object.create(null);
55251
55226
  }
55252
55227
  if (single) {
55253
55228
  delete map[name][id];
@@ -55258,7 +55233,7 @@ var require_mergeAtrule = __commonJS({
55258
55233
  map[name][id].append(list.remove(item));
55259
55234
  }
55260
55235
  function relocateAtrules(ast, options) {
55261
- var collected = Object.create(null);
55236
+ var collected = /* @__PURE__ */ Object.create(null);
55262
55237
  var topInjectPoint = null;
55263
55238
  ast.children.each(function(node, item, list) {
55264
55239
  if (node.type === "Atrule") {
@@ -55345,8 +55320,8 @@ var require_utils5 = __commonJS({
55345
55320
  ne2: [],
55346
55321
  ne2overrided: []
55347
55322
  };
55348
- var fingerprints = Object.create(null);
55349
- var declarations2hash = Object.create(null);
55323
+ var fingerprints = /* @__PURE__ */ Object.create(null);
55324
+ var declarations2hash = /* @__PURE__ */ Object.create(null);
55350
55325
  for (var cursor = declarations2.head; cursor; cursor = cursor.next) {
55351
55326
  declarations2hash[cursor.data.id] = true;
55352
55327
  }
@@ -56081,7 +56056,7 @@ var require_restructBlock = __commonJS({
56081
56056
  }
56082
56057
  module2.exports = function restructBlock(ast) {
56083
56058
  var stylesheetMap = {};
56084
- var fingerprints = Object.create(null);
56059
+ var fingerprints = /* @__PURE__ */ Object.create(null);
56085
56060
  walk(ast, {
56086
56061
  visit: "Rule",
56087
56062
  reverse: true,
@@ -56194,7 +56169,7 @@ var require_restructRuleset = __commonJS({
56194
56169
  var avoidRulesMerge = this.block !== null ? this.block.avoidRulesMerge : false;
56195
56170
  var selectors = node.prelude.children;
56196
56171
  var block = node.block;
56197
- var disallowDownMarkers = Object.create(null);
56172
+ var disallowDownMarkers = /* @__PURE__ */ Object.create(null);
56198
56173
  var allowMergeUp = true;
56199
56174
  var allowMergeDown = true;
56200
56175
  list.prevUntil(item.prev, function(prev, prevItem) {
@@ -63655,12 +63630,11 @@ var require_dist9 = __commonJS({
63655
63630
  });
63656
63631
  exports2.default = void 0;
63657
63632
  var _postcssValueParser = _interopRequireWildcard(require_lib());
63658
- var _cssnanoUtils = require_dist6();
63659
63633
  function _getRequireWildcardCache(nodeInterop) {
63660
63634
  if (typeof WeakMap !== "function")
63661
63635
  return null;
63662
- var cacheBabelInterop = new WeakMap();
63663
- var cacheNodeInterop = new WeakMap();
63636
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
63637
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
63664
63638
  return (_getRequireWildcardCache = function(nodeInterop2) {
63665
63639
  return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
63666
63640
  })(nodeInterop);
@@ -63730,12 +63704,11 @@ var require_dist9 = __commonJS({
63730
63704
  ];
63731
63705
  }
63732
63706
  }
63733
- var rotate3dMappings = [
63734
- ["rotateX", [1, 0, 0]],
63735
- ["rotateY", [0, 1, 0]],
63736
- ["rotate", [0, 0, 1]]
63737
- ];
63738
- var rotate3dMatch = (0, _cssnanoUtils.getMatch)(rotate3dMappings);
63707
+ var rotate3dMappings = /* @__PURE__ */ new Map([
63708
+ [[1, 0, 0].toString(), "rotateX"],
63709
+ [[0, 1, 0].toString(), "rotateY"],
63710
+ [[0, 0, 1].toString(), "rotate"]
63711
+ ]);
63739
63712
  function rotate3d(node, values) {
63740
63713
  if (values.length !== 4) {
63741
63714
  return;
@@ -63743,8 +63716,8 @@ var require_dist9 = __commonJS({
63743
63716
  const {
63744
63717
  nodes
63745
63718
  } = node;
63746
- const match = rotate3dMatch(values.slice(0, 3));
63747
- if (match.length) {
63719
+ const match = rotate3dMappings.get(values.slice(0, 3).toString());
63720
+ if (match) {
63748
63721
  node.value = match;
63749
63722
  node.nodes = [nodes[6]];
63750
63723
  }
@@ -63863,7 +63836,7 @@ var require_dist9 = __commonJS({
63863
63836
  return {
63864
63837
  postcssPlugin: "postcss-reduce-transforms",
63865
63838
  prepare() {
63866
- const cache = {};
63839
+ const cache = /* @__PURE__ */ new Map();
63867
63840
  return {
63868
63841
  OnceExit(css) {
63869
63842
  css.walkDecls(/transform$/i, (decl) => {
@@ -63871,13 +63844,13 @@ var require_dist9 = __commonJS({
63871
63844
  if (!value) {
63872
63845
  return;
63873
63846
  }
63874
- if (cache[value]) {
63875
- decl.value = cache[value];
63847
+ if (cache.has(value)) {
63848
+ decl.value = cache.get(value);
63876
63849
  return;
63877
63850
  }
63878
63851
  const result = (0, _postcssValueParser.default)(value).walk(reduce).toString();
63879
63852
  decl.value = result;
63880
- cache[value] = result;
63853
+ cache.set(value, result);
63881
63854
  });
63882
63855
  }
63883
63856
  };
@@ -63982,8 +63955,8 @@ var require_dist10 = __commonJS({
63982
63955
  function _getRequireWildcardCache(nodeInterop) {
63983
63956
  if (typeof WeakMap !== "function")
63984
63957
  return null;
63985
- var cacheBabelInterop = new WeakMap();
63986
- var cacheNodeInterop = new WeakMap();
63958
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
63959
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
63987
63960
  return (_getRequireWildcardCache = function(nodeInterop2) {
63988
63961
  return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
63989
63962
  })(nodeInterop);
@@ -64483,7 +64456,7 @@ var require_container2 = __commonJS({
64483
64456
  function _getRequireWildcardCache() {
64484
64457
  if (typeof WeakMap !== "function")
64485
64458
  return null;
64486
- var cache = new WeakMap();
64459
+ var cache = /* @__PURE__ */ new WeakMap();
64487
64460
  _getRequireWildcardCache = function _getRequireWildcardCache2() {
64488
64461
  return cache;
64489
64462
  };
@@ -66050,7 +66023,7 @@ var require_tokenize2 = __commonJS({
66050
66023
  function _getRequireWildcardCache() {
66051
66024
  if (typeof WeakMap !== "function")
66052
66025
  return null;
66053
- var cache = new WeakMap();
66026
+ var cache = /* @__PURE__ */ new WeakMap();
66054
66027
  _getRequireWildcardCache = function _getRequireWildcardCache2() {
66055
66028
  return cache;
66056
66029
  };
@@ -66317,7 +66290,7 @@ var require_parser4 = __commonJS({
66317
66290
  function _getRequireWildcardCache() {
66318
66291
  if (typeof WeakMap !== "function")
66319
66292
  return null;
66320
- var cache = new WeakMap();
66293
+ var cache = /* @__PURE__ */ new WeakMap();
66321
66294
  _getRequireWildcardCache = function _getRequireWildcardCache2() {
66322
66295
  return cache;
66323
66296
  };
@@ -67606,7 +67579,7 @@ var require_dist11 = __commonJS({
67606
67579
  function _getRequireWildcardCache() {
67607
67580
  if (typeof WeakMap !== "function")
67608
67581
  return null;
67609
- var cache = new WeakMap();
67582
+ var cache = /* @__PURE__ */ new WeakMap();
67610
67583
  _getRequireWildcardCache = function _getRequireWildcardCache2() {
67611
67584
  return cache;
67612
67585
  };
@@ -67950,7 +67923,6 @@ var require_parser5 = __commonJS({
67950
67923
  return yyvstack[yysp - 1];
67951
67924
  break;
67952
67925
  case 2:
67953
- case 7:
67954
67926
  this.$ = yyvstack[yysp - 1];
67955
67927
  break;
67956
67928
  case 3:
@@ -67959,6 +67931,9 @@ var require_parser5 = __commonJS({
67959
67931
  case 6:
67960
67932
  this.$ = { type: "MathExpression", operator: yyvstack[yysp - 1], left: yyvstack[yysp - 2], right: yyvstack[yysp] };
67961
67933
  break;
67934
+ case 7:
67935
+ this.$ = { type: "ParenthesizedExpression", content: yyvstack[yysp - 1] };
67936
+ break;
67962
67937
  case 8:
67963
67938
  case 9:
67964
67939
  case 10:
@@ -69581,7 +69556,7 @@ var require_convertUnit = __commonJS({
69581
69556
  }
69582
69557
  const converted = conversions[targetUnitNormalized][sourceUnitNormalized] * value;
69583
69558
  if (precision !== false) {
69584
- precision = Math.pow(10, parseInt(precision) || 5);
69559
+ precision = Math.pow(10, Math.ceil(precision) || 5);
69585
69560
  return Math.round(converted * precision) / precision;
69586
69561
  }
69587
69562
  return converted;
@@ -69604,8 +69579,8 @@ var require_reducer = __commonJS({
69604
69579
  function _interopRequireDefault(obj) {
69605
69580
  return obj && obj.__esModule ? obj : { default: obj };
69606
69581
  }
69607
- function isValueType(type) {
69608
- switch (type) {
69582
+ function isValueType(node) {
69583
+ switch (node.type) {
69609
69584
  case "LengthValue":
69610
69585
  case "AngleValue":
69611
69586
  case "TimeValue":
@@ -69635,17 +69610,17 @@ var require_reducer = __commonJS({
69635
69610
  if (!isAddSubOperator(preOperator)) {
69636
69611
  throw new Error(`invalid operator ${preOperator}`);
69637
69612
  }
69638
- const type = node.type;
69639
- if (isValueType(type)) {
69640
- const itemIndex = collected.findIndex((x) => x.node.type === type);
69613
+ if (isValueType(node)) {
69614
+ const itemIndex = collected.findIndex((x) => x.node.type === node.type);
69641
69615
  if (itemIndex >= 0) {
69642
69616
  if (node.value === 0) {
69643
69617
  return;
69644
69618
  }
69619
+ const otherValueNode = collected[itemIndex].node;
69645
69620
  const {
69646
69621
  left: reducedNode,
69647
69622
  right: current
69648
- } = covertNodesUnits(collected[itemIndex].node, node, precision);
69623
+ } = convertNodesUnits(otherValueNode, node, precision);
69649
69624
  if (collected[itemIndex].preOperator === "-") {
69650
69625
  collected[itemIndex].preOperator = "+";
69651
69626
  reducedNode.value *= -1;
@@ -69681,7 +69656,7 @@ var require_reducer = __commonJS({
69681
69656
  });
69682
69657
  }
69683
69658
  }
69684
- } else if (type === "MathExpression") {
69659
+ } else if (node.type === "MathExpression") {
69685
69660
  if (isAddSubOperator(node.operator)) {
69686
69661
  collectAddSubItems(preOperator, node.left, collected, precision);
69687
69662
  const collectRightOperator = preOperator === "-" ? flip(node.operator) : node.operator;
@@ -69697,6 +69672,8 @@ var require_reducer = __commonJS({
69697
69672
  });
69698
69673
  }
69699
69674
  }
69675
+ } else if (node.type === "ParenthesizedExpression") {
69676
+ collectAddSubItems(preOperator, node.content, collected, precision);
69700
69677
  } else {
69701
69678
  collected.push({
69702
69679
  node,
@@ -69707,13 +69684,15 @@ var require_reducer = __commonJS({
69707
69684
  function reduceAddSubExpression(node, precision) {
69708
69685
  const collected = [];
69709
69686
  collectAddSubItems("+", node, collected, precision);
69710
- const withoutZeroItem = collected.filter((item) => !(isValueType(item.node.type) && item.node.value === 0));
69687
+ const withoutZeroItem = collected.filter((item) => !(isValueType(item.node) && item.node.value === 0));
69711
69688
  const firstNonZeroItem = withoutZeroItem[0];
69712
- if (!firstNonZeroItem || firstNonZeroItem.preOperator === "-" && !isValueType(firstNonZeroItem.node.type)) {
69713
- const firstZeroItem = collected.find((item) => isValueType(item.node.type) && item.node.value === 0);
69714
- withoutZeroItem.unshift(firstZeroItem);
69689
+ if (!firstNonZeroItem || firstNonZeroItem.preOperator === "-" && !isValueType(firstNonZeroItem.node)) {
69690
+ const firstZeroItem = collected.find((item) => isValueType(item.node) && item.node.value === 0);
69691
+ if (firstZeroItem) {
69692
+ withoutZeroItem.unshift(firstZeroItem);
69693
+ }
69715
69694
  }
69716
- if (withoutZeroItem[0].preOperator === "-" && isValueType(withoutZeroItem[0].node.type)) {
69695
+ if (withoutZeroItem[0].preOperator === "-" && isValueType(withoutZeroItem[0].node)) {
69717
69696
  withoutZeroItem[0].node.value *= -1;
69718
69697
  withoutZeroItem[0].preOperator = "+";
69719
69698
  }
@@ -69729,7 +69708,7 @@ var require_reducer = __commonJS({
69729
69708
  return root;
69730
69709
  }
69731
69710
  function reduceDivisionExpression(node) {
69732
- if (!isValueType(node.right.type)) {
69711
+ if (!isValueType(node.right)) {
69733
69712
  return node;
69734
69713
  }
69735
69714
  if (node.right.type !== "Number") {
@@ -69741,7 +69720,7 @@ var require_reducer = __commonJS({
69741
69720
  if (divisor === 0) {
69742
69721
  throw new Error("Cannot divide by zero");
69743
69722
  }
69744
- if (isValueType(node.type)) {
69723
+ if (isValueType(node)) {
69745
69724
  node.value /= divisor;
69746
69725
  return node;
69747
69726
  }
@@ -69773,7 +69752,7 @@ var require_reducer = __commonJS({
69773
69752
  return node;
69774
69753
  }
69775
69754
  function applyNumberMultiplication(node, multiplier) {
69776
- if (isValueType(node.type)) {
69755
+ if (isValueType(node)) {
69777
69756
  node.value *= multiplier;
69778
69757
  return node;
69779
69758
  }
@@ -69795,7 +69774,7 @@ var require_reducer = __commonJS({
69795
69774
  }
69796
69775
  };
69797
69776
  }
69798
- function covertNodesUnits(left, right, precision) {
69777
+ function convertNodesUnits(left, right, precision) {
69799
69778
  switch (left.type) {
69800
69779
  case "LengthValue":
69801
69780
  case "AngleValue":
@@ -69821,6 +69800,9 @@ var require_reducer = __commonJS({
69821
69800
  };
69822
69801
  }
69823
69802
  }
69803
+ function includesNoCssProperties(node) {
69804
+ return node.content.type !== "Function" && (node.content.type !== "MathExpression" || node.content.right.type !== "Function" && node.content.left.type !== "Function");
69805
+ }
69824
69806
  function reduce(node, precision) {
69825
69807
  if (node.type === "MathExpression") {
69826
69808
  if (isAddSubOperator(node.operator)) {
@@ -69830,12 +69812,17 @@ var require_reducer = __commonJS({
69830
69812
  node.right = reduce(node.right, precision);
69831
69813
  switch (node.operator) {
69832
69814
  case "/":
69833
- return reduceDivisionExpression(node, precision);
69815
+ return reduceDivisionExpression(node);
69834
69816
  case "*":
69835
- return reduceMultiplicationExpression(node, precision);
69817
+ return reduceMultiplicationExpression(node);
69836
69818
  }
69837
69819
  return node;
69838
69820
  }
69821
+ if (node.type === "ParenthesizedExpression") {
69822
+ if (includesNoCssProperties(node)) {
69823
+ return reduce(node.content, precision);
69824
+ }
69825
+ }
69839
69826
  return node;
69840
69827
  }
69841
69828
  var _default = reduce;
@@ -69888,9 +69875,11 @@ var require_stringifier3 = __commonJS({
69888
69875
  return str;
69889
69876
  }
69890
69877
  case "Number":
69891
- return round(node.value, prec);
69878
+ return round(node.value, prec).toString();
69892
69879
  case "Function":
69893
- return node.value;
69880
+ return node.value.toString();
69881
+ case "ParenthesizedExpression":
69882
+ return `(${stringify(node.content, prec)})`;
69894
69883
  default:
69895
69884
  return round(node.value, prec) + node.unit;
69896
69885
  }
@@ -69933,7 +69922,7 @@ var require_transform = __commonJS({
69933
69922
  function transformValue(value, options, result, item) {
69934
69923
  return (0, _postcssValueParser.default)(value).walk((node) => {
69935
69924
  if (node.type !== "function" || !MATCH_CALC.test(node.value)) {
69936
- return node;
69925
+ return;
69937
69926
  }
69938
69927
  const contents = _postcssValueParser.default.stringify(node.nodes);
69939
69928
  const ast = _parser.parser.parse(contents);
@@ -69957,7 +69946,21 @@ var require_transform = __commonJS({
69957
69946
  }).processSync(value);
69958
69947
  }
69959
69948
  var _default = (node, property, options, result) => {
69960
- const value = property === "selector" ? transformSelector(node[property], options, result, node) : transformValue(node[property], options, result, node);
69949
+ let value = node[property];
69950
+ try {
69951
+ value = property === "selector" ? transformSelector(node[property], options, result, node) : transformValue(node[property], options, result, node);
69952
+ } catch (error) {
69953
+ if (error instanceof Error) {
69954
+ result.warn(error.message, {
69955
+ node
69956
+ });
69957
+ } else {
69958
+ result.warn("Error", {
69959
+ node
69960
+ });
69961
+ }
69962
+ return;
69963
+ }
69961
69964
  if (options.preserve && node[property] !== value) {
69962
69965
  const clone = node.clone();
69963
69966
  clone[property] = value;
@@ -70104,8 +70107,8 @@ var require_dist13 = __commonJS({
70104
70107
  function _getRequireWildcardCache(nodeInterop) {
70105
70108
  if (typeof WeakMap !== "function")
70106
70109
  return null;
70107
- var cacheBabelInterop = new WeakMap();
70108
- var cacheNodeInterop = new WeakMap();
70110
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
70111
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
70109
70112
  return (_getRequireWildcardCache = function(nodeInterop2) {
70110
70113
  return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
70111
70114
  })(nodeInterop);
@@ -70206,7 +70209,7 @@ var require_dist13 = __commonJS({
70206
70209
  path: __dirname,
70207
70210
  env: resultOptions.env
70208
70211
  });
70209
- const cache = {};
70212
+ const cache = /* @__PURE__ */ new Map();
70210
70213
  const options = addPluginDefaults(config, browsers);
70211
70214
  return {
70212
70215
  OnceExit(css) {
@@ -70223,13 +70226,13 @@ var require_dist13 = __commonJS({
70223
70226
  options,
70224
70227
  browsers
70225
70228
  });
70226
- if (cache[cacheKey]) {
70227
- decl.value = cache[cacheKey];
70229
+ if (cache.has(cacheKey)) {
70230
+ decl.value = cache.get(cacheKey);
70228
70231
  return;
70229
70232
  }
70230
70233
  const newValue = transform(value, options);
70231
70234
  decl.value = newValue;
70232
- cache[cacheKey] = newValue;
70235
+ cache.set(cacheKey, newValue);
70233
70236
  });
70234
70237
  }
70235
70238
  };
@@ -70393,6 +70396,20 @@ var require_animation2 = __commonJS({
70393
70396
  }
70394
70397
  });
70395
70398
 
70399
+ // node_modules/postcss-ordered-values/dist/lib/mathfunctions.js
70400
+ var require_mathfunctions = __commonJS({
70401
+ "node_modules/postcss-ordered-values/dist/lib/mathfunctions.js"(exports2, module2) {
70402
+ "use strict";
70403
+ Object.defineProperty(exports2, "__esModule", {
70404
+ value: true
70405
+ });
70406
+ exports2.default = void 0;
70407
+ var _default = ["calc", "clamp", "max", "min"];
70408
+ exports2.default = _default;
70409
+ module2.exports = exports2.default;
70410
+ }
70411
+ });
70412
+
70396
70413
  // node_modules/postcss-ordered-values/dist/rules/border.js
70397
70414
  var require_border2 = __commonJS({
70398
70415
  "node_modules/postcss-ordered-values/dist/rules/border.js"(exports2, module2) {
@@ -70402,6 +70419,10 @@ var require_border2 = __commonJS({
70402
70419
  });
70403
70420
  exports2.default = normalizeBorder;
70404
70421
  var _postcssValueParser = require_lib();
70422
+ var _mathfunctions = _interopRequireDefault(require_mathfunctions());
70423
+ function _interopRequireDefault(obj) {
70424
+ return obj && obj.__esModule ? obj : { default: obj };
70425
+ }
70405
70426
  var borderWidths = ["thin", "medium", "thick"];
70406
70427
  var borderStyles = [
70407
70428
  "none",
@@ -70428,11 +70449,11 @@ var require_border2 = __commonJS({
70428
70449
  value
70429
70450
  } = node;
70430
70451
  if (type === "word") {
70431
- if (~borderStyles.indexOf(value.toLowerCase())) {
70452
+ if (borderStyles.includes(value.toLowerCase())) {
70432
70453
  order.style = value;
70433
70454
  return false;
70434
70455
  }
70435
- if (~borderWidths.indexOf(value.toLowerCase()) || (0, _postcssValueParser.unit)(value.toLowerCase())) {
70456
+ if (borderWidths.includes(value.toLowerCase()) || (0, _postcssValueParser.unit)(value.toLowerCase())) {
70436
70457
  if (order.width !== "") {
70437
70458
  order.width = `${order.width} ${value}`;
70438
70459
  return false;
@@ -70444,7 +70465,7 @@ var require_border2 = __commonJS({
70444
70465
  return false;
70445
70466
  }
70446
70467
  if (type === "function") {
70447
- if (value.toLowerCase() === "calc") {
70468
+ if (_mathfunctions.default.includes(value.toLowerCase())) {
70448
70469
  order.width = (0, _postcssValueParser.stringify)(node);
70449
70470
  } else {
70450
70471
  order.color = (0, _postcssValueParser.stringify)(node);
@@ -70458,6 +70479,23 @@ var require_border2 = __commonJS({
70458
70479
  }
70459
70480
  });
70460
70481
 
70482
+ // node_modules/postcss-ordered-values/dist/lib/vendorUnprefixed.js
70483
+ var require_vendorUnprefixed = __commonJS({
70484
+ "node_modules/postcss-ordered-values/dist/lib/vendorUnprefixed.js"(exports2, module2) {
70485
+ "use strict";
70486
+ Object.defineProperty(exports2, "__esModule", {
70487
+ value: true
70488
+ });
70489
+ exports2.default = void 0;
70490
+ function vendorUnprefixed(prop) {
70491
+ return prop.replace(/^-\w+-/, "");
70492
+ }
70493
+ var _default = vendorUnprefixed;
70494
+ exports2.default = _default;
70495
+ module2.exports = exports2.default;
70496
+ }
70497
+ });
70498
+
70461
70499
  // node_modules/postcss-ordered-values/dist/rules/boxShadow.js
70462
70500
  var require_boxShadow = __commonJS({
70463
70501
  "node_modules/postcss-ordered-values/dist/rules/boxShadow.js"(exports2, module2) {
@@ -70470,6 +70508,8 @@ var require_boxShadow = __commonJS({
70470
70508
  var _cssnanoUtils = require_dist6();
70471
70509
  var _addSpace = _interopRequireDefault(require_addSpace());
70472
70510
  var _getValue = _interopRequireDefault(require_getValue());
70511
+ var _mathfunctions = _interopRequireDefault(require_mathfunctions());
70512
+ var _vendorUnprefixed = _interopRequireDefault(require_vendorUnprefixed());
70473
70513
  function _interopRequireDefault(obj) {
70474
70514
  return obj && obj.__esModule ? obj : { default: obj };
70475
70515
  }
@@ -70487,7 +70527,7 @@ var require_boxShadow = __commonJS({
70487
70527
  type,
70488
70528
  value
70489
70529
  } = node;
70490
- if (type === "function" && ~value.toLowerCase().indexOf("calc")) {
70530
+ if (type === "function" && _mathfunctions.default.includes((0, _vendorUnprefixed.default)(value.toLowerCase()))) {
70491
70531
  abort = true;
70492
70532
  return;
70493
70533
  }
@@ -70623,7 +70663,7 @@ var require_grid = __commonJS({
70623
70663
  Object.defineProperty(exports2, "__esModule", {
70624
70664
  value: true
70625
70665
  });
70626
- exports2.normalizeGridColumnRow = exports2.normalizeGridColumnRowGap = exports2.normalizeGridAutoFlow = void 0;
70666
+ exports2.normalizeGridColumnRowGap = exports2.normalizeGridColumnRow = exports2.normalizeGridAutoFlow = void 0;
70627
70667
  var _joinGridValue = _interopRequireDefault(require_joinGridValue());
70628
70668
  function _interopRequireDefault(obj) {
70629
70669
  return obj && obj.__esModule ? obj : { default: obj };
@@ -70867,22 +70907,18 @@ var require_listStyle = __commonJS({
70867
70907
 
70868
70908
  // node_modules/postcss-ordered-values/dist/rules/columns.js
70869
70909
  var require_columns = __commonJS({
70870
- "node_modules/postcss-ordered-values/dist/rules/columns.js"(exports2) {
70910
+ "node_modules/postcss-ordered-values/dist/rules/columns.js"(exports2, module2) {
70871
70911
  "use strict";
70872
70912
  Object.defineProperty(exports2, "__esModule", {
70873
70913
  value: true
70874
70914
  });
70875
- exports2.columnsRule = exports2.column = void 0;
70915
+ exports2.default = void 0;
70876
70916
  var _postcssValueParser = require_lib();
70877
- var _border = _interopRequireDefault(require_border2());
70878
- function _interopRequireDefault(obj) {
70879
- return obj && obj.__esModule ? obj : { default: obj };
70880
- }
70881
70917
  function hasUnit(value) {
70882
70918
  const parsedVal = (0, _postcssValueParser.unit)(value);
70883
70919
  return parsedVal && parsedVal.unit !== "";
70884
70920
  }
70885
- var column = (columns) => {
70921
+ var _default = (columns) => {
70886
70922
  const widths = [];
70887
70923
  const other = [];
70888
70924
  columns.walk((node) => {
@@ -70903,9 +70939,8 @@ var require_columns = __commonJS({
70903
70939
  }
70904
70940
  return columns;
70905
70941
  };
70906
- exports2.column = column;
70907
- var columnsRule = _border.default;
70908
- exports2.columnsRule = columnsRule;
70942
+ exports2.default = _default;
70943
+ module2.exports = exports2.default;
70909
70944
  }
70910
70945
  });
70911
70946
 
@@ -70925,7 +70960,8 @@ var require_dist14 = __commonJS({
70925
70960
  var _transition = _interopRequireDefault(require_transition2());
70926
70961
  var _grid = require_grid();
70927
70962
  var _listStyle = _interopRequireDefault(require_listStyle());
70928
- var _columns = require_columns();
70963
+ var _columns = _interopRequireDefault(require_columns());
70964
+ var _vendorUnprefixed = _interopRequireDefault(require_vendorUnprefixed());
70929
70965
  function _interopRequireDefault(obj) {
70930
70966
  return obj && obj.__esModule ? obj : { default: obj };
70931
70967
  }
@@ -70954,8 +70990,8 @@ var require_dist14 = __commonJS({
70954
70990
  "grid-column-end": _grid.normalizeGridColumnRow
70955
70991
  };
70956
70992
  var columnRules = {
70957
- "column-rule": _columns.columnsRule,
70958
- columns: _columns.column
70993
+ "column-rule": _border.default,
70994
+ columns: _columns.default
70959
70995
  };
70960
70996
  var rules = {
70961
70997
  animation: _animation.default,
@@ -70968,9 +71004,6 @@ var require_dist14 = __commonJS({
70968
71004
  ...grid,
70969
71005
  ...columnRules
70970
71006
  };
70971
- function vendorUnprefixed(prop) {
70972
- return prop.replace(/^-\w+-/, "");
70973
- }
70974
71007
  function isVariableFunctionNode(node) {
70975
71008
  if (node.type !== "function") {
70976
71009
  return false;
@@ -71001,29 +71034,29 @@ var require_dist14 = __commonJS({
71001
71034
  return {
71002
71035
  postcssPlugin: "postcss-ordered-values",
71003
71036
  prepare() {
71004
- const cache = {};
71037
+ const cache = /* @__PURE__ */ new Map();
71005
71038
  return {
71006
71039
  OnceExit(css) {
71007
71040
  css.walkDecls((decl) => {
71008
71041
  const lowerCasedProp = decl.prop.toLowerCase();
71009
- const normalizedProp = vendorUnprefixed(lowerCasedProp);
71042
+ const normalizedProp = (0, _vendorUnprefixed.default)(lowerCasedProp);
71010
71043
  const processor = rules[normalizedProp];
71011
71044
  if (!processor) {
71012
71045
  return;
71013
71046
  }
71014
71047
  const value = getValue(decl);
71015
- if (cache[value]) {
71016
- decl.value = cache[value];
71048
+ if (cache.has(value)) {
71049
+ decl.value = cache.get(value);
71017
71050
  return;
71018
71051
  }
71019
71052
  const parsed = (0, _postcssValueParser.default)(value);
71020
71053
  if (parsed.nodes.length < 2 || shouldAbort(parsed)) {
71021
- cache[value] = value;
71054
+ cache.set(value, value);
71022
71055
  return;
71023
71056
  }
71024
71057
  const result = processor(parsed);
71025
71058
  decl.value = result.toString();
71026
- cache[value] = result.toString();
71059
+ cache.set(value, result.toString());
71027
71060
  });
71028
71061
  }
71029
71062
  };
@@ -71396,7 +71429,7 @@ var require_dist15 = __commonJS({
71396
71429
  return {
71397
71430
  postcssPlugin: "postcss-minify-selectors",
71398
71431
  OnceExit(css) {
71399
- const cache = {};
71432
+ const cache = /* @__PURE__ */ new Map();
71400
71433
  const processor = (0, _postcssSelectorParser.default)((selectors) => {
71401
71434
  selectors.nodes = (0, _alphanumSort.default)(selectors.nodes, {
71402
71435
  insensitive: true
@@ -71426,13 +71459,13 @@ var require_dist15 = __commonJS({
71426
71459
  if (selector[selector.length - 1] === ":") {
71427
71460
  return;
71428
71461
  }
71429
- if (cache[selector]) {
71430
- rule.selector = cache[selector];
71462
+ if (cache.has(selector)) {
71463
+ rule.selector = cache.get(selector);
71431
71464
  return;
71432
71465
  }
71433
71466
  const optimizedSelector = processor.processSync(selector);
71434
71467
  rule.selector = optimizedSelector;
71435
- cache[selector] = optimizedSelector;
71468
+ cache.set(selector, optimizedSelector);
71436
71469
  });
71437
71470
  }
71438
71471
  };
@@ -71459,8 +71492,8 @@ var require_dist16 = __commonJS({
71459
71492
  function _getRequireWildcardCache(nodeInterop) {
71460
71493
  if (typeof WeakMap !== "function")
71461
71494
  return null;
71462
- var cacheBabelInterop = new WeakMap();
71463
- var cacheNodeInterop = new WeakMap();
71495
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
71496
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
71464
71497
  return (_getRequireWildcardCache = function(nodeInterop2) {
71465
71498
  return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
71466
71499
  })(nodeInterop);
@@ -71946,7 +71979,7 @@ var require_dist18 = __commonJS({
71946
71979
  return {
71947
71980
  postcssPlugin: "postcss-minify-font-values",
71948
71981
  prepare() {
71949
- const cache = {};
71982
+ const cache = /* @__PURE__ */ new Map();
71950
71983
  return {
71951
71984
  OnceExit(css) {
71952
71985
  css.walkDecls(/font/i, (decl) => {
@@ -71956,13 +71989,13 @@ var require_dist18 = __commonJS({
71956
71989
  }
71957
71990
  const prop = decl.prop;
71958
71991
  const cacheKey = `${prop}|${value}`;
71959
- if (cache[cacheKey]) {
71960
- decl.value = cache[cacheKey];
71992
+ if (cache.has(cacheKey)) {
71993
+ decl.value = cache.get(cacheKey);
71961
71994
  return;
71962
71995
  }
71963
71996
  const newValue = transform(prop, value, opts);
71964
71997
  decl.value = newValue;
71965
- cache[cacheKey] = newValue;
71998
+ cache.set(cacheKey, newValue);
71966
71999
  });
71967
72000
  }
71968
72001
  };
@@ -74368,14 +74401,14 @@ var require_dist23 = __commonJS({
74368
74401
  return {
74369
74402
  postcssPlugin: "postcss-discard-overridden",
74370
74403
  prepare() {
74371
- const cache = {};
74404
+ const cache = /* @__PURE__ */ new Map();
74372
74405
  const rules = [];
74373
74406
  return {
74374
74407
  OnceExit(css) {
74375
74408
  css.walkAtRules((node) => {
74376
74409
  if (isOverridable(node.name)) {
74377
74410
  const scope = getScope(node);
74378
- cache[scope] = node;
74411
+ cache.set(scope, node);
74379
74412
  rules.push({
74380
74413
  node,
74381
74414
  scope
@@ -74383,7 +74416,7 @@ var require_dist23 = __commonJS({
74383
74416
  }
74384
74417
  });
74385
74418
  rules.forEach((rule) => {
74386
- if (cache[rule.scope] !== rule.node) {
74419
+ if (cache.get(rule.scope) !== rule.node) {
74387
74420
  rule.node.remove();
74388
74421
  }
74389
74422
  });
@@ -74407,7 +74440,7 @@ var require_map = __commonJS({
74407
74440
  value: true
74408
74441
  });
74409
74442
  exports2.default = void 0;
74410
- var _default = [["repeat-x", ["repeat", "no-repeat"]], ["repeat-y", ["no-repeat", "repeat"]], ["repeat", ["repeat", "repeat"]], ["space", ["space", "space"]], ["round", ["round", "round"]], ["no-repeat", ["no-repeat", "no-repeat"]]];
74443
+ var _default = /* @__PURE__ */ new Map([[["repeat", "no-repeat"].toString(), "repeat-x"], [["no-repeat", "repeat"].toString(), "repeat-y"], [["repeat", "repeat"].toString(), "repeat"], [["space", "space"].toString(), "space"], [["round", "round"].toString(), "round"], [["no-repeat", "no-repeat"].toString(), "no-repeat"]]);
74411
74444
  exports2.default = _default;
74412
74445
  module2.exports = exports2.default;
74413
74446
  }
@@ -74422,7 +74455,6 @@ var require_dist24 = __commonJS({
74422
74455
  });
74423
74456
  exports2.default = void 0;
74424
74457
  var _postcssValueParser = _interopRequireDefault(require_lib());
74425
- var _cssnanoUtils = require_dist6();
74426
74458
  var _map = _interopRequireDefault(require_map());
74427
74459
  function _interopRequireDefault(obj) {
74428
74460
  return obj && obj.__esModule ? obj : { default: obj };
@@ -74430,8 +74462,7 @@ var require_dist24 = __commonJS({
74430
74462
  function evenValues(list, index) {
74431
74463
  return index % 2 === 0;
74432
74464
  }
74433
- var repeatKeywords = _map.default.map((mapping) => mapping[0]);
74434
- var getMatch = (0, _cssnanoUtils.getMatch)(_map.default);
74465
+ var repeatKeywords = [..._map.default.values()];
74435
74466
  function isCommaNode(node) {
74436
74467
  return node.type === "div" && node.value === ",";
74437
74468
  }
@@ -74498,7 +74529,8 @@ var require_dist24 = __commonJS({
74498
74529
  if (nodes.length !== 3) {
74499
74530
  return;
74500
74531
  }
74501
- const match = getMatch(nodes.filter(evenValues).map((n) => n.value.toLowerCase()));
74532
+ const key = nodes.filter(evenValues).map((n) => n.value.toLowerCase()).toString();
74533
+ const match = _map.default.get(key);
74502
74534
  if (match) {
74503
74535
  nodes[0].value = match;
74504
74536
  nodes[1].value = nodes[2].value = "";
@@ -74510,7 +74542,7 @@ var require_dist24 = __commonJS({
74510
74542
  return {
74511
74543
  postcssPlugin: "postcss-normalize-repeat-style",
74512
74544
  prepare() {
74513
- const cache = {};
74545
+ const cache = /* @__PURE__ */ new Map();
74514
74546
  return {
74515
74547
  OnceExit(css) {
74516
74548
  css.walkDecls(/^(background(-repeat)?|(-\w+-)?mask-repeat)$/i, (decl) => {
@@ -74518,13 +74550,13 @@ var require_dist24 = __commonJS({
74518
74550
  if (!value) {
74519
74551
  return;
74520
74552
  }
74521
- if (cache[value]) {
74522
- decl.value = cache[value];
74553
+ if (cache.has(value)) {
74554
+ decl.value = cache.get(value);
74523
74555
  return;
74524
74556
  }
74525
74557
  const result = transform(value);
74526
74558
  decl.value = result;
74527
- cache[value] = result;
74559
+ cache.set(value, result);
74528
74560
  });
74529
74561
  }
74530
74562
  };
@@ -74545,10 +74577,10 @@ var require_ensureCompatibility = __commonJS({
74545
74577
  Object.defineProperty(exports2, "__esModule", {
74546
74578
  value: true
74547
74579
  });
74548
- exports2.sameVendor = sameVendor;
74549
- exports2.noVendor = noVendor;
74550
74580
  exports2.ensureCompatibility = ensureCompatibility;
74581
+ exports2.noVendor = noVendor;
74551
74582
  exports2.pseudoElements = void 0;
74583
+ exports2.sameVendor = sameVendor;
74552
74584
  var _caniuseApi = require_dist4();
74553
74585
  var _postcssSelectorParser = _interopRequireDefault(require_dist11());
74554
74586
  function _interopRequireDefault(obj) {
@@ -74635,16 +74667,16 @@ var require_ensureCompatibility = __commonJS({
74635
74667
  function isHostPseudoClass(selector) {
74636
74668
  return selector.includes(":host");
74637
74669
  }
74638
- var isSupportedCache = {};
74670
+ var isSupportedCache = /* @__PURE__ */ new Map();
74639
74671
  function isSupportedCached(feature, browsers) {
74640
74672
  const key = JSON.stringify({
74641
74673
  feature,
74642
74674
  browsers
74643
74675
  });
74644
- let result = isSupportedCache[key];
74676
+ let result = isSupportedCache.get(key);
74645
74677
  if (!result) {
74646
74678
  result = (0, _caniuseApi.isSupported)(feature, browsers);
74647
- isSupportedCache[key] = result;
74679
+ isSupportedCache.set(key, result);
74648
74680
  }
74649
74681
  return result;
74650
74682
  }
@@ -74659,8 +74691,8 @@ var require_ensureCompatibility = __commonJS({
74659
74691
  if (simpleSelectorRe.test(selector)) {
74660
74692
  return true;
74661
74693
  }
74662
- if (compatibilityCache && selector in compatibilityCache) {
74663
- return compatibilityCache[selector];
74694
+ if (compatibilityCache && compatibilityCache.has(selector)) {
74695
+ return compatibilityCache.get(selector);
74664
74696
  }
74665
74697
  let compatible = true;
74666
74698
  (0, _postcssSelectorParser.default)((ast) => {
@@ -74708,7 +74740,7 @@ var require_ensureCompatibility = __commonJS({
74708
74740
  });
74709
74741
  }).processSync(selector);
74710
74742
  if (compatibilityCache) {
74711
- compatibilityCache[selector] = compatible;
74743
+ compatibilityCache.set(selector, compatible);
74712
74744
  }
74713
74745
  return compatible;
74714
74746
  });
@@ -74953,7 +74985,7 @@ var require_dist25 = __commonJS({
74953
74985
  path: __dirname,
74954
74986
  env: resultOpts.env
74955
74987
  });
74956
- const compatibilityCache = {};
74988
+ const compatibilityCache = /* @__PURE__ */ new Map();
74957
74989
  return {
74958
74990
  OnceExit(css) {
74959
74991
  css.walkRules(selectorMerger(browsers, compatibilityCache));
@@ -75265,7 +75297,7 @@ var require_dist28 = __commonJS({
75265
75297
  return {
75266
75298
  postcssPlugin: "postcss-normalize-string",
75267
75299
  OnceExit(css) {
75268
- const cache = {};
75300
+ const cache = /* @__PURE__ */ new Map();
75269
75301
  css.walk((node) => {
75270
75302
  const {
75271
75303
  type
@@ -75273,13 +75305,13 @@ var require_dist28 = __commonJS({
75273
75305
  if (Object.prototype.hasOwnProperty.call(params, type)) {
75274
75306
  const param = params[type];
75275
75307
  const key = node[param] + "|" + preferredQuote;
75276
- if (cache[key]) {
75277
- node[param] = cache[key];
75308
+ if (cache.has(key)) {
75309
+ node[param] = cache.get(key);
75278
75310
  return;
75279
75311
  }
75280
75312
  const newValue = normalize(node[param], preferredQuote);
75281
75313
  node[param] = newValue;
75282
- cache[key] = newValue;
75314
+ cache.set(key, newValue);
75283
75315
  }
75284
75316
  });
75285
75317
  }
@@ -75304,8 +75336,8 @@ var require_dist29 = __commonJS({
75304
75336
  function _getRequireWildcardCache(nodeInterop) {
75305
75337
  if (typeof WeakMap !== "function")
75306
75338
  return null;
75307
- var cacheBabelInterop = new WeakMap();
75308
- var cacheNodeInterop = new WeakMap();
75339
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
75340
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
75309
75341
  return (_getRequireWildcardCache = function(nodeInterop2) {
75310
75342
  return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
75311
75343
  })(nodeInterop);
@@ -75472,19 +75504,19 @@ var require_dist29 = __commonJS({
75472
75504
  return {
75473
75505
  postcssPlugin: "postcss-normalize-positions",
75474
75506
  OnceExit(css) {
75475
- const cache = {};
75507
+ const cache = /* @__PURE__ */ new Map();
75476
75508
  css.walkDecls(/^(background(-position)?|(-\w+-)?perspective-origin)$/i, (decl) => {
75477
75509
  const value = decl.value;
75478
75510
  if (!value) {
75479
75511
  return;
75480
75512
  }
75481
- if (cache[value]) {
75482
- decl.value = cache[value];
75513
+ if (cache.has(value)) {
75514
+ decl.value = cache.get(value);
75483
75515
  return;
75484
75516
  }
75485
75517
  const result = transform(value);
75486
75518
  decl.value = result;
75487
- cache[value] = result;
75519
+ cache.set(value, result);
75488
75520
  });
75489
75521
  }
75490
75522
  };
@@ -75539,7 +75571,7 @@ var require_dist30 = __commonJS({
75539
75571
  return {
75540
75572
  postcssPlugin: "postcss-normalize-whitespace",
75541
75573
  OnceExit(css) {
75542
- const cache = {};
75574
+ const cache = /* @__PURE__ */ new Map();
75543
75575
  css.walk((node) => {
75544
75576
  const {
75545
75577
  type
@@ -75553,13 +75585,13 @@ var require_dist30 = __commonJS({
75553
75585
  }
75554
75586
  node.value = node.value.replace(/\s*(\\9)\s*/, "$1");
75555
75587
  const value = node.value;
75556
- if (cache[value]) {
75557
- node.value = cache[value];
75588
+ if (cache.has(value)) {
75589
+ node.value = cache.get(value);
75558
75590
  } else {
75559
75591
  const parsed = (0, _postcssValueParser.default)(node.value);
75560
75592
  const result = parsed.walk(reduceWhitespaces).toString();
75561
75593
  node.value = result;
75562
- cache[value] = result;
75594
+ cache.set(value, result);
75563
75595
  }
75564
75596
  if (node.raws.before) {
75565
75597
  const prev = node.prev();
@@ -75644,7 +75676,7 @@ var require_dist31 = __commonJS({
75644
75676
  return {
75645
75677
  postcssPlugin: "postcss-normalize-unicode",
75646
75678
  prepare(result) {
75647
- const cache = {};
75679
+ const cache = /* @__PURE__ */ new Map();
75648
75680
  const resultOpts = result.opts || {};
75649
75681
  const browsers = (0, _browserslist.default)(null, {
75650
75682
  stats: resultOpts.stats,
@@ -75656,13 +75688,13 @@ var require_dist31 = __commonJS({
75656
75688
  OnceExit(css) {
75657
75689
  css.walkDecls(/^unicode-range$/i, (decl) => {
75658
75690
  const value = decl.value;
75659
- if (cache[value]) {
75660
- decl.value = cache[value];
75691
+ if (cache.has(value)) {
75692
+ decl.value = cache.get(value);
75661
75693
  return;
75662
75694
  }
75663
75695
  const newValue = transform(value, isLegacy);
75664
75696
  decl.value = newValue;
75665
- cache[value] = newValue;
75697
+ cache.set(value, newValue);
75666
75698
  });
75667
75699
  }
75668
75700
  };
@@ -75702,26 +75734,26 @@ var require_map2 = __commonJS({
75702
75734
  var table = "table";
75703
75735
  var tableCell = "table-cell";
75704
75736
  var tableCaption = "table-caption";
75705
- var _default = [
75706
- [block, [block, flow]],
75707
- [flowRoot, [block, flowRoot]],
75708
- [inline, [inline, flow]],
75709
- [inlineBlock, [inline, flowRoot]],
75710
- [runIn, [runIn, flow]],
75711
- [listItem, [listItem, block, flow]],
75712
- [inline + " " + listItem, [inline, flow, listItem]],
75713
- [flex, [block, flex]],
75714
- [inlineFlex, [inline, flex]],
75715
- [grid, [block, grid]],
75716
- [inlineGrid, [inline, grid]],
75717
- [ruby, [inline, ruby]],
75718
- [table, [block, table]],
75719
- [inlineTable, [inline, table]],
75720
- [tableCell, [tableCell, flow]],
75721
- [tableCaption, [tableCaption, flow]],
75722
- [rubyBase, [rubyBase, flow]],
75723
- [rubyText, [rubyText, flow]]
75724
- ];
75737
+ var _default = /* @__PURE__ */ new Map([
75738
+ [[block, flow].toString(), block],
75739
+ [[block, flowRoot].toString(), flowRoot],
75740
+ [[inline, flow].toString(), inline],
75741
+ [[inline, flowRoot].toString(), inlineBlock],
75742
+ [[runIn, flow].toString(), runIn],
75743
+ [[listItem, block, flow].toString(), listItem],
75744
+ [[inline, flow, listItem].toString(), inline + " " + listItem],
75745
+ [[block, flex].toString(), flex],
75746
+ [[inline, flex].toString(), inlineFlex],
75747
+ [[block, grid].toString(), grid],
75748
+ [[inline, grid].toString(), inlineGrid],
75749
+ [[inline, ruby].toString(), ruby],
75750
+ [[block, table].toString(), table],
75751
+ [[inline, table].toString(), inlineTable],
75752
+ [[tableCell, flow].toString(), tableCell],
75753
+ [[tableCaption, flow].toString(), tableCaption],
75754
+ [[rubyBase, flow].toString(), rubyBase],
75755
+ [[rubyText, flow].toString(), rubyText]
75756
+ ]);
75725
75757
  exports2.default = _default;
75726
75758
  module2.exports = exports2.default;
75727
75759
  }
@@ -75736,7 +75768,6 @@ var require_dist32 = __commonJS({
75736
75768
  });
75737
75769
  exports2.default = void 0;
75738
75770
  var _postcssValueParser = _interopRequireDefault(require_lib());
75739
- var _cssnanoUtils = require_dist6();
75740
75771
  var _map = _interopRequireDefault(require_map2());
75741
75772
  function _interopRequireDefault(obj) {
75742
75773
  return obj && obj.__esModule ? obj : { default: obj };
@@ -75752,7 +75783,7 @@ var require_dist32 = __commonJS({
75752
75783
  if (values.length === 0) {
75753
75784
  return value;
75754
75785
  }
75755
- const match = (0, _cssnanoUtils.getMatch)(_map.default)(values);
75786
+ const match = _map.default.get(values.toString());
75756
75787
  if (!match) {
75757
75788
  return value;
75758
75789
  }
@@ -75762,7 +75793,7 @@ var require_dist32 = __commonJS({
75762
75793
  return {
75763
75794
  postcssPlugin: "postcss-normalize-display-values",
75764
75795
  prepare() {
75765
- const cache = {};
75796
+ const cache = /* @__PURE__ */ new Map();
75766
75797
  return {
75767
75798
  OnceExit(css) {
75768
75799
  css.walkDecls(/^display$/i, (decl) => {
@@ -75770,13 +75801,13 @@ var require_dist32 = __commonJS({
75770
75801
  if (!value) {
75771
75802
  return;
75772
75803
  }
75773
- if (cache[value]) {
75774
- decl.value = cache[value];
75804
+ if (cache.has(value)) {
75805
+ decl.value = cache.get(value);
75775
75806
  return;
75776
75807
  }
75777
75808
  const result = transform(value);
75778
75809
  decl.value = result;
75779
- cache[value] = result;
75810
+ cache.set(value, result);
75780
75811
  });
75781
75812
  }
75782
75813
  };
@@ -75799,11 +75830,11 @@ var require_dist33 = __commonJS({
75799
75830
  });
75800
75831
  exports2.default = void 0;
75801
75832
  var _postcssValueParser = _interopRequireDefault(require_lib());
75802
- var _cssnanoUtils = require_dist6();
75803
75833
  function _interopRequireDefault(obj) {
75804
75834
  return obj && obj.__esModule ? obj : { default: obj };
75805
75835
  }
75806
75836
  var getValue = (node) => parseFloat(node.value);
75837
+ var conversions = /* @__PURE__ */ new Map([[[0.25, 0.1, 0.25, 1].toString(), "ease"], [[0, 0, 1, 1].toString(), "linear"], [[0.42, 0, 1, 1].toString(), "ease-in"], [[0, 0, 0.58, 1].toString(), "ease-out"], [[0.42, 0, 0.58, 1].toString(), "ease-in-out"]]);
75807
75838
  function reduce(node) {
75808
75839
  if (node.type !== "function") {
75809
75840
  return false;
@@ -75838,7 +75869,7 @@ var require_dist33 = __commonJS({
75838
75869
  if (values.length !== 4) {
75839
75870
  return;
75840
75871
  }
75841
- const match = (0, _cssnanoUtils.getMatch)([["ease", [0.25, 0.1, 0.25, 1]], ["linear", [0, 0, 1, 1]], ["ease-in", [0.42, 0, 1, 1]], ["ease-out", [0, 0, 0.58, 1]], ["ease-in-out", [0.42, 0, 0.58, 1]]])(values);
75872
+ const match = conversions.get(values.toString());
75842
75873
  if (match) {
75843
75874
  node.type = "word";
75844
75875
  node.value = match;
@@ -75854,16 +75885,16 @@ var require_dist33 = __commonJS({
75854
75885
  return {
75855
75886
  postcssPlugin: "postcss-normalize-timing-functions",
75856
75887
  OnceExit(css) {
75857
- const cache = {};
75888
+ const cache = /* @__PURE__ */ new Map();
75858
75889
  css.walkDecls(/^(-\w+-)?(animation|transition)(-timing-function)?$/i, (decl) => {
75859
75890
  const value = decl.value;
75860
- if (cache[value]) {
75861
- decl.value = cache[value];
75891
+ if (cache.has(value)) {
75892
+ decl.value = cache.get(value);
75862
75893
  return;
75863
75894
  }
75864
75895
  const result = transform(value);
75865
75896
  decl.value = result;
75866
- cache[value] = result;
75897
+ cache.set(value, result);
75867
75898
  });
75868
75899
  }
75869
75900
  };
@@ -76055,7 +76086,6 @@ var require_dist35 = __commonJS({
76055
76086
  });
76056
76087
 
76057
76088
  // lib/cli-peer-dependencies.js
76058
- "use strict";
76059
76089
  Object.defineProperty(exports, "__esModule", {
76060
76090
  value: true
76061
76091
  });