@icebreakers/stylelint-config 6.0.2 → 6.0.3-dev.20261113.1

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 (2) hide show
  1. package/dist/presets/scss.js +343 -101
  2. package/package.json +12 -4
@@ -1,5 +1,5 @@
1
1
  import { n as __require, r as __toESM, t as __commonJSMin } from "../rolldown-runtime-DegdyBIC.js";
2
- import nodeJsPath, * as nodeJsPath$1 from "node:path";
2
+ import nodeJsPath$1, * as nodeJsPath from "node:path";
3
3
  import postcssScss from "postcss-scss";
4
4
  import stylelint from "stylelint";
5
5
  import { find, fork, lexer, parse, string } from "css-tree";
@@ -1581,7 +1581,7 @@ function rule$58(allowedListOption) {
1581
1581
  })) return;
1582
1582
  function checkPathForUnderscore(path, decl) {
1583
1583
  const pathStripped = path.replace(/^\s*(["'])\s*/, "").replace(/\s*(["'])\s*$/, "");
1584
- const extension = nodeJsPath$1.extname(pathStripped).slice(1);
1584
+ const extension = nodeJsPath.extname(pathStripped).slice(1);
1585
1585
  const extensionNormalized = extension.toLowerCase();
1586
1586
  if (!extension) return;
1587
1587
  if (pathStripped.slice(0, 4) === "url(" || pathStripped.slice(-4) === ".css" || pathStripped.search("//") !== -1 || pathStripped.search(/[\s,)"']\w+$/) !== -1) return;
@@ -1620,7 +1620,7 @@ function rule$57(disallowedListOption) {
1620
1620
  })) return;
1621
1621
  function checkPathForUnderscore(path, decl) {
1622
1622
  const pathStripped = path.replace(/^\s*(["'])\s*/, "").replace(/\s*(["'])\s*$/, "");
1623
- const extension = nodeJsPath.extname(pathStripped).slice(1);
1623
+ const extension = nodeJsPath$1.extname(pathStripped).slice(1);
1624
1624
  const extensionNormalized = extension.toLowerCase();
1625
1625
  if (!extension) return;
1626
1626
  if (pathStripped.slice(0, 4) === "url(" || pathStripped.slice(-4) === ".css" || pathStripped.search("//") !== -1 || pathStripped.search(/[\s,)"']\w+$/) !== -1) return;
@@ -9359,7 +9359,7 @@ function rule$18(expectation) {
9359
9359
  paths.forEach((pathItem) => {
9360
9360
  const pathStripped = stripPath(pathItem);
9361
9361
  if (pathStripped.slice(0, 4) === "url(" || pathStripped.slice(-4) === ".css" || pathStripped.search("//") !== -1 || pathStripped.search(":") !== -1) return;
9362
- const extension = nodeJsPath$1.extname(pathStripped).slice(1);
9362
+ const extension = nodeJsPath.extname(pathStripped).slice(1);
9363
9363
  if (!extension && expectation === "always") {
9364
9364
  utils$18.report({
9365
9365
  message: messages$18.expected(name),
@@ -10680,8 +10680,8 @@ function rule$6(on) {
10680
10680
  });
10681
10681
  return;
10682
10682
  }
10683
- const fileName = nodeJsPath$1.basename(root.source.input.file);
10684
- const extName = nodeJsPath$1.extname(root.source.input.file);
10683
+ const fileName = nodeJsPath.basename(root.source.input.file);
10684
+ const extName = nodeJsPath.extname(root.source.input.file);
10685
10685
  function checkImportForCSS(path, atRule) {
10686
10686
  const pathStripped = path.replace(/^\s*(["'])\s*/, "").replace(/\s*(["'])\s*$/, "");
10687
10687
  if (pathStripped.trim() === "" || pathStripped.slice(0, 4) === "url(" || pathStripped.slice(-4) === ".css" || pathStripped.search("//") !== -1 || pathStripped.search(/[\s,)"']\w+$/) !== -1) return;
@@ -10775,7 +10775,7 @@ function isStandardRule(rule) {
10775
10775
  if (selector.endsWith(":")) return false;
10776
10776
  return true;
10777
10777
  }
10778
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/util/unesc.js
10778
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/util/unesc.js
10779
10779
  var require_unesc = /* @__PURE__ */ __commonJSMin(((exports) => {
10780
10780
  Object.defineProperty(exports, "__esModule", { value: true });
10781
10781
  exports.default = unesc;
@@ -10825,7 +10825,7 @@ var require_unesc = /* @__PURE__ */ __commonJSMin(((exports) => {
10825
10825
  return ret;
10826
10826
  }
10827
10827
  }));
10828
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/util/getProp.js
10828
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/util/getProp.js
10829
10829
  var require_getProp = /* @__PURE__ */ __commonJSMin(((exports) => {
10830
10830
  Object.defineProperty(exports, "__esModule", { value: true });
10831
10831
  exports.default = getProp;
@@ -10840,7 +10840,7 @@ var require_getProp = /* @__PURE__ */ __commonJSMin(((exports) => {
10840
10840
  return obj;
10841
10841
  }
10842
10842
  }));
10843
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/util/ensureObject.js
10843
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/util/ensureObject.js
10844
10844
  var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports) => {
10845
10845
  Object.defineProperty(exports, "__esModule", { value: true });
10846
10846
  exports.default = ensureObject;
@@ -10854,7 +10854,7 @@ var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports) => {
10854
10854
  }
10855
10855
  }
10856
10856
  }));
10857
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/util/stripComments.js
10857
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/util/stripComments.js
10858
10858
  var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports) => {
10859
10859
  Object.defineProperty(exports, "__esModule", { value: true });
10860
10860
  exports.default = stripComments;
@@ -10873,7 +10873,7 @@ var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports) => {
10873
10873
  return s;
10874
10874
  }
10875
10875
  }));
10876
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js
10876
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js
10877
10877
  var require_maxNestingDepth = /* @__PURE__ */ __commonJSMin(((exports) => {
10878
10878
  Object.defineProperty(exports, "__esModule", { value: true });
10879
10879
  exports.MAX_NESTING_DEPTH = void 0;
@@ -10899,13 +10899,33 @@ var require_maxNestingDepth = /* @__PURE__ */ __commonJSMin(((exports) => {
10899
10899
  return Number.isSafeInteger(value) && value >= 0 ? value : exports.MAX_NESTING_DEPTH;
10900
10900
  }
10901
10901
  }));
10902
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/util/index.js
10902
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/util/maxInputLength.js
10903
+ var require_maxInputLength = /* @__PURE__ */ __commonJSMin(((exports) => {
10904
+ Object.defineProperty(exports, "__esModule", { value: true });
10905
+ exports.default = resolveMaxInputLength;
10906
+ /**
10907
+ * Validate a user-supplied limit on the length of the selector to parse.
10908
+ *
10909
+ * No limit applies by default, so falling back on an invalid value, as
10910
+ * resolveMaxNestingDepth() does, would silently turn off a guard the caller
10911
+ * asked for. An invalid value is a configuration mistake and throws instead.
10912
+ *
10913
+ * @param {unknown} value the limit provided through the `maxInputLength` option
10914
+ * @returns {number} a non-negative integer limit, or Infinity for no limit
10915
+ */
10916
+ function resolveMaxInputLength(value) {
10917
+ if (value === void 0 || value === 1e400) return 1e400;
10918
+ if (Number.isSafeInteger(value) && value >= 0) return value;
10919
+ throw new TypeError("maxInputLength must be a non-negative integer or Infinity, received ".concat(String(value), "."));
10920
+ }
10921
+ }));
10922
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/util/index.js
10903
10923
  var require_util = /* @__PURE__ */ __commonJSMin(((exports, module, this$21) => {
10904
10924
  var __importDefault = this$21 && this$21.__importDefault || function(mod) {
10905
10925
  return mod && mod.__esModule ? mod : { "default": mod };
10906
10926
  };
10907
10927
  Object.defineProperty(exports, "__esModule", { value: true });
10908
- exports.MAX_NESTING_DEPTH = exports.resolveMaxNestingDepth = exports.stripComments = exports.ensureObject = exports.getProp = exports.unesc = void 0;
10928
+ exports.resolveMaxInputLength = exports.MAX_NESTING_DEPTH = exports.resolveMaxNestingDepth = exports.stripComments = exports.ensureObject = exports.getProp = exports.unesc = void 0;
10909
10929
  var unesc_1 = require_unesc();
10910
10930
  Object.defineProperty(exports, "unesc", {
10911
10931
  enumerable: true,
@@ -10947,8 +10967,15 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports, module, this$21) =>
10947
10967
  return maxNestingDepth_1.MAX_NESTING_DEPTH;
10948
10968
  }
10949
10969
  });
10970
+ var maxInputLength_1 = require_maxInputLength();
10971
+ Object.defineProperty(exports, "resolveMaxInputLength", {
10972
+ enumerable: true,
10973
+ get: function() {
10974
+ return __importDefault(maxInputLength_1).default;
10975
+ }
10976
+ });
10950
10977
  }));
10951
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/node.js
10978
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/node.js
10952
10979
  var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
10953
10980
  Object.defineProperty(exports, "__esModule", { value: true });
10954
10981
  var util_1 = require_util();
@@ -11101,7 +11128,7 @@ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
11101
11128
  return Node;
11102
11129
  }();
11103
11130
  }));
11104
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/types.js
11131
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/types.js
11105
11132
  var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
11106
11133
  Object.defineProperty(exports, "__esModule", { value: true });
11107
11134
  exports.UNIVERSAL = exports.ATTRIBUTE = exports.CLASS = exports.COMBINATOR = exports.COMMENT = exports.ID = exports.NESTING = exports.PSEUDO = exports.ROOT = exports.SELECTOR = exports.STRING = exports.TAG = void 0;
@@ -11118,7 +11145,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
11118
11145
  exports.ATTRIBUTE = "attribute";
11119
11146
  exports.UNIVERSAL = "universal";
11120
11147
  }));
11121
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/container.js
11148
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/container.js
11122
11149
  var require_container = /* @__PURE__ */ __commonJSMin(((exports, module, this$20) => {
11123
11150
  var __extends = this$20 && this$20.__extends || (function() {
11124
11151
  var extendStatics = function(d, b) {
@@ -11504,9 +11531,14 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module, this$20
11504
11531
  };
11505
11532
  Container.prototype._stringify = function(options, depth, max) {
11506
11533
  var _this = this;
11507
- return this.map(function(child) {
11534
+ var str = this.map(function(child) {
11508
11535
  return _this._stringifyChild(child, options, depth, max);
11509
11536
  }).join("");
11537
+ return [
11538
+ this.rawSpaceBefore,
11539
+ str,
11540
+ this.rawSpaceAfter
11541
+ ].join("");
11510
11542
  };
11511
11543
  Container.prototype._stringifyChild = function(child, options, depth, max) {
11512
11544
  return typeof child._stringify === "function" ? child._stringify(options, depth, max) : String(child);
@@ -11514,7 +11546,7 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module, this$20
11514
11546
  return Container;
11515
11547
  }(node_1.default);
11516
11548
  }));
11517
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/root.js
11549
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/root.js
11518
11550
  var require_root = /* @__PURE__ */ __commonJSMin(((exports, module, this$19) => {
11519
11551
  var __extends = this$19 && this$19.__extends || (function() {
11520
11552
  var extendStatics = function(d, b) {
@@ -11553,7 +11585,12 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports, module, this$19) =>
11553
11585
  memo.push(_this._stringifyChild(selector, options, depth, max));
11554
11586
  return memo;
11555
11587
  }, []).join(",");
11556
- return this.trailingComma ? str + "," : str;
11588
+ if (this.trailingComma) str += ",";
11589
+ return [
11590
+ this.rawSpaceBefore,
11591
+ str,
11592
+ this.rawSpaceAfter
11593
+ ].join("");
11557
11594
  };
11558
11595
  Root.prototype.error = function(message, options) {
11559
11596
  if (this._error) return this._error(message, options);
@@ -11569,7 +11606,7 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports, module, this$19) =>
11569
11606
  return Root;
11570
11607
  }(container_1.default);
11571
11608
  }));
11572
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/selector.js
11609
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/selector.js
11573
11610
  var require_selector = /* @__PURE__ */ __commonJSMin(((exports, module, this$18) => {
11574
11611
  var __extends = this$18 && this$18.__extends || (function() {
11575
11612
  var extendStatics = function(d, b) {
@@ -11605,23 +11642,98 @@ var require_selector = /* @__PURE__ */ __commonJSMin(((exports, module, this$18)
11605
11642
  return Selector;
11606
11643
  }(container_1.default);
11607
11644
  }));
11608
- // ../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js
11609
- /*! https://mths.be/cssesc v3.0.0 by @mathias */
11610
- var require_cssesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11611
- var hasOwnProperty = {}.hasOwnProperty;
11612
- var merge = function merge(options, defaults) {
11645
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/util/cssesc.js
11646
+ var require_cssesc = /* @__PURE__ */ __commonJSMin(((exports) => {
11647
+ /*!
11648
+ * Adapted from cssesc v3.0.0 <https://mths.be/cssesc>
11649
+ *
11650
+ * Copyright Mathias Bynens <https://mathiasbynens.be/>
11651
+ *
11652
+ * Permission is hereby granted, free of charge, to any person obtaining
11653
+ * a copy of this software and associated documentation files (the
11654
+ * "Software"), to deal in the Software without restriction, including
11655
+ * without limitation the rights to use, copy, modify, merge, publish,
11656
+ * distribute, sublicense, and/or sell copies of the Software, and to
11657
+ * permit persons to whom the Software is furnished to do so, subject to
11658
+ * the following conditions:
11659
+ *
11660
+ * The above copyright notice and this permission notice shall be
11661
+ * included in all copies or substantial portions of the Software.
11662
+ *
11663
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
11664
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
11665
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
11666
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
11667
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
11668
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
11669
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11670
+ */
11671
+ Object.defineProperty(exports, "__esModule", { value: true });
11672
+ exports.default = cssesc;
11673
+ var DEFAULTS = {
11674
+ escapeEverything: false,
11675
+ isIdentifier: false,
11676
+ quotes: "single",
11677
+ wrap: false
11678
+ };
11679
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
11680
+ function merge(options, defaults) {
11613
11681
  if (!options) return defaults;
11614
11682
  var result = {};
11615
11683
  for (var key in defaults) result[key] = hasOwnProperty.call(options, key) ? options[key] : defaults[key];
11616
11684
  return result;
11617
- };
11618
- var regexAnySingleEscape = /[ -,\.\/:-@\[-\^`\{-~]/;
11619
- var regexSingleEscape = /[ -,\.\/:-@\[\]\^`\{-~]/;
11620
- var regexExcessiveSpaces = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;
11621
- var cssesc = function cssesc(string, options) {
11622
- options = merge(options, cssesc.options);
11623
- if (options.quotes != "single" && options.quotes != "double") options.quotes = "single";
11624
- var quote = options.quotes == "double" ? "\"" : "'";
11685
+ }
11686
+ var regexAnySingleEscape = /[ -,./:-@[-^`{-~]/;
11687
+ var regexSingleEscape = /[ -,./:-@[\]^`{-~]/;
11688
+ var BACKSLASH = 92;
11689
+ var SPACE = 32;
11690
+ function isUpperHex(code) {
11691
+ return code >= 48 && code <= 57 || code >= 65 && code <= 70;
11692
+ }
11693
+ function isHexOrSpace(code) {
11694
+ return isUpperHex(code) || code >= 97 && code <= 102 || code === SPACE;
11695
+ }
11696
+ /**
11697
+ * Remove spaces after `\HEX` escapes that are not followed by a hex digit or a
11698
+ * space, since they are redundant. This is only possible if the escape is not
11699
+ * preceded by an odd number of backslashes, which would make its own backslash
11700
+ * an escaped one.
11701
+ *
11702
+ * Same result as cssesc 3.0.0's
11703
+ * `output.replace(/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, ...)`:
11704
+ * a match can only start at the beginning of a run of backslashes and only
11705
+ * its last backslash can open the escape, so each run is measured once
11706
+ * instead of being re-scanned from every position inside it.
11707
+ */
11708
+ function removeExcessiveSpaces(output) {
11709
+ var length = output.length;
11710
+ var result = "";
11711
+ var copied = 0;
11712
+ var i = 0;
11713
+ while (i < length) {
11714
+ if (output.charCodeAt(i) !== BACKSLASH) {
11715
+ i++;
11716
+ continue;
11717
+ }
11718
+ var runEnd = i + 1;
11719
+ while (runEnd < length && output.charCodeAt(runEnd) === BACKSLASH) runEnd++;
11720
+ var hexEnd = runEnd;
11721
+ while (hexEnd < length && hexEnd - runEnd < 7 && isUpperHex(output.charCodeAt(hexEnd))) hexEnd++;
11722
+ var hexLength = hexEnd - runEnd;
11723
+ if (hexLength >= 1 && hexLength <= 6 && output.charCodeAt(hexEnd) === SPACE && !isHexOrSpace(output.charCodeAt(hexEnd + 1))) {
11724
+ if ((runEnd - i - 1) % 2 === 0) {
11725
+ result += output.slice(copied, hexEnd);
11726
+ copied = hexEnd + 1;
11727
+ }
11728
+ i = hexEnd + 1;
11729
+ } else i = runEnd;
11730
+ }
11731
+ return copied === 0 ? output : result + output.slice(copied);
11732
+ }
11733
+ function cssesc(string, options) {
11734
+ options = merge(options, DEFAULTS);
11735
+ if (options.quotes !== "single" && options.quotes !== "double") options.quotes = "single";
11736
+ var quote = options.quotes === "double" ? "\"" : "'";
11625
11737
  var isIdentifier = options.isIdentifier;
11626
11738
  var firstChar = string.charAt(0);
11627
11739
  var output = "";
@@ -11629,20 +11741,19 @@ var require_cssesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11629
11741
  var length = string.length;
11630
11742
  while (counter < length) {
11631
11743
  var character = string.charAt(counter++);
11632
- var codePoint = character.charCodeAt();
11744
+ var codePoint = character.charCodeAt(0);
11633
11745
  var value = void 0;
11634
11746
  if (codePoint < 32 || codePoint > 126) {
11635
11747
  if (codePoint >= 55296 && codePoint <= 56319 && counter < length) {
11636
11748
  var extra = string.charCodeAt(counter++);
11637
- if ((extra & 64512) == 56320) codePoint = ((codePoint & 1023) << 10) + (extra & 1023) + 65536;
11749
+ if ((extra & 64512) === 56320) codePoint = ((codePoint & 1023) << 10) + (extra & 1023) + 65536;
11638
11750
  else counter--;
11639
11751
  }
11640
11752
  value = "\\" + codePoint.toString(16).toUpperCase() + " ";
11641
11753
  } else if (options.escapeEverything) {
11642
11754
  if (regexAnySingleEscape.test(character)) value = "\\" + character;
11643
11755
  else value = "\\" + codePoint.toString(16).toUpperCase() + " ";
11644
- } else if (/[\t\n\f\r\x0B]/.test(character)) value = "\\" + codePoint.toString(16).toUpperCase() + " ";
11645
- else if (character == "\\" || !isIdentifier && (character == "\"" && quote == character || character == "'" && quote == character) || isIdentifier && regexSingleEscape.test(character)) value = "\\" + character;
11756
+ } else if (character === "\\" || !isIdentifier && (character === "\"" && quote === character || character === "'" && quote === character) || isIdentifier && regexSingleEscape.test(character)) value = "\\" + character;
11646
11757
  else value = character;
11647
11758
  output += value;
11648
11759
  }
@@ -11650,23 +11761,12 @@ var require_cssesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11650
11761
  if (/^-[-\d]/.test(output)) output = "\\-" + output.slice(1);
11651
11762
  else if (/\d/.test(firstChar)) output = "\\3" + firstChar + " " + output.slice(1);
11652
11763
  }
11653
- output = output.replace(regexExcessiveSpaces, function($0, $1, $2) {
11654
- if ($1 && $1.length % 2) return $0;
11655
- return ($1 || "") + $2;
11656
- });
11764
+ output = removeExcessiveSpaces(output);
11657
11765
  if (!isIdentifier && options.wrap) return quote + output + quote;
11658
11766
  return output;
11659
- };
11660
- cssesc.options = {
11661
- "escapeEverything": false,
11662
- "isIdentifier": false,
11663
- "quotes": "single",
11664
- "wrap": false
11665
- };
11666
- cssesc.version = "3.0.0";
11667
- module.exports = cssesc;
11767
+ }
11668
11768
  }));
11669
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/className.js
11769
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/className.js
11670
11770
  var require_className = /* @__PURE__ */ __commonJSMin(((exports, module, this$17) => {
11671
11771
  var __extends = this$17 && this$17.__extends || (function() {
11672
11772
  var extendStatics = function(d, b) {
@@ -11700,6 +11800,8 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports, module, this$17
11700
11800
  var _this = _super.call(this, opts) || this;
11701
11801
  _this.type = types_1.CLASS;
11702
11802
  _this._constructed = true;
11803
+ var value = _this.value;
11804
+ if (typeof value === "string" && (!_this.raws || _this.raws.value === void 0)) _this.value = value;
11703
11805
  return _this;
11704
11806
  }
11705
11807
  Object.defineProperty(ClassName.prototype, "value", {
@@ -11725,7 +11827,7 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports, module, this$17
11725
11827
  return ClassName;
11726
11828
  }(node_1.default);
11727
11829
  }));
11728
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/comment.js
11830
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/comment.js
11729
11831
  var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module, this$16) => {
11730
11832
  var __extends = this$16 && this$16.__extends || (function() {
11731
11833
  var extendStatics = function(d, b) {
@@ -11761,7 +11863,7 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module, this$16)
11761
11863
  return Comment;
11762
11864
  }(node_1.default);
11763
11865
  }));
11764
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/id.js
11866
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/id.js
11765
11867
  var require_id = /* @__PURE__ */ __commonJSMin(((exports, module, this$15) => {
11766
11868
  var __extends = this$15 && this$15.__extends || (function() {
11767
11869
  var extendStatics = function(d, b) {
@@ -11785,6 +11887,8 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports, module, this$15) => {
11785
11887
  return mod && mod.__esModule ? mod : { "default": mod };
11786
11888
  };
11787
11889
  Object.defineProperty(exports, "__esModule", { value: true });
11890
+ var cssesc_1 = __importDefault(require_cssesc());
11891
+ var util_1 = require_util();
11788
11892
  var node_1 = __importDefault(require_node$1());
11789
11893
  var types_1 = require_types();
11790
11894
  exports.default = function(_super) {
@@ -11792,15 +11896,33 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports, module, this$15) => {
11792
11896
  function ID(opts) {
11793
11897
  var _this = _super.call(this, opts) || this;
11794
11898
  _this.type = types_1.ID;
11899
+ _this._constructed = true;
11795
11900
  return _this;
11796
11901
  }
11902
+ Object.defineProperty(ID.prototype, "value", {
11903
+ get: function() {
11904
+ return this._value;
11905
+ },
11906
+ set: function(v) {
11907
+ if (this._constructed) {
11908
+ var escaped = (0, cssesc_1.default)(v, { isIdentifier: true });
11909
+ if (escaped !== v) {
11910
+ (0, util_1.ensureObject)(this, "raws");
11911
+ this.raws.value = escaped;
11912
+ } else if (this.raws) delete this.raws.value;
11913
+ }
11914
+ this._value = v;
11915
+ },
11916
+ enumerable: false,
11917
+ configurable: true
11918
+ });
11797
11919
  ID.prototype.valueToString = function() {
11798
11920
  return "#" + _super.prototype.valueToString.call(this);
11799
11921
  };
11800
11922
  return ID;
11801
11923
  }(node_1.default);
11802
11924
  }));
11803
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/namespace.js
11925
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/namespace.js
11804
11926
  var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module, this$14) => {
11805
11927
  var __extends = this$14 && this$14.__extends || (function() {
11806
11928
  var extendStatics = function(d, b) {
@@ -11882,7 +12004,7 @@ var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module, this$14
11882
12004
  return Namespace;
11883
12005
  }(__importDefault(require_node$1()).default);
11884
12006
  }));
11885
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/tag.js
12007
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/tag.js
11886
12008
  var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module, this$13) => {
11887
12009
  var __extends = this$13 && this$13.__extends || (function() {
11888
12010
  var extendStatics = function(d, b) {
@@ -11918,7 +12040,7 @@ var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module, this$13) => {
11918
12040
  return Tag;
11919
12041
  }(namespace_1.default);
11920
12042
  }));
11921
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/string.js
12043
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/string.js
11922
12044
  var require_string = /* @__PURE__ */ __commonJSMin(((exports, module, this$12) => {
11923
12045
  var __extends = this$12 && this$12.__extends || (function() {
11924
12046
  var extendStatics = function(d, b) {
@@ -11955,7 +12077,7 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports, module, this$12) =
11955
12077
  }(node_1.default);
11956
12078
  exports.default = String;
11957
12079
  }));
11958
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/pseudo.js
12080
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/pseudo.js
11959
12081
  var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports, module, this$11) => {
11960
12082
  var __extends = this$11 && this$11.__extends || (function() {
11961
12083
  var extendStatics = function(d, b) {
@@ -12011,7 +12133,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12011
12133
  */
12012
12134
  module.exports = __require("util").deprecate;
12013
12135
  }));
12014
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/attribute.js
12136
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/attribute.js
12015
12137
  var require_attribute = /* @__PURE__ */ __commonJSMin(((exports, module, this$10) => {
12016
12138
  var __extends = this$10 && this$10.__extends || (function() {
12017
12139
  var extendStatics = function(d, b) {
@@ -12236,6 +12358,13 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports, module, this$10
12236
12358
  enumerable: false,
12237
12359
  configurable: true
12238
12360
  });
12361
+ Object.defineProperty(Attribute.prototype, "sensitiveFlag", {
12362
+ get: function() {
12363
+ return this.sensitive ? "s" : "";
12364
+ },
12365
+ enumerable: false,
12366
+ configurable: true
12367
+ });
12239
12368
  Object.defineProperty(Attribute.prototype, "value", {
12240
12369
  get: function() {
12241
12370
  return this._value;
@@ -12274,18 +12403,41 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports, module, this$10
12274
12403
  * If the case insensitive flag changes, the raw (escaped) value at `attr.raws.insensitiveFlag`
12275
12404
  * of the attribute is updated accordingly.
12276
12405
  *
12406
+ * The two case sensitivity flags are mutually exclusive, so setting this flag
12407
+ * clears `attr.sensitive` and any `s`/`S` in `attr.raws.sensitiveFlag`.
12408
+ *
12277
12409
  * @param {true | false} insensitive true if the attribute should match case-insensitively.
12278
12410
  */
12279
12411
  set: function(insensitive) {
12280
- if (!insensitive) {
12281
- this._insensitive = false;
12282
- if (this.raws && (this.raws.insensitiveFlag === "I" || this.raws.insensitiveFlag === "i")) this.raws.insensitiveFlag = void 0;
12283
- }
12412
+ if (insensitive) this.sensitive = false;
12413
+ else if (this.raws && (this.raws.insensitiveFlag === "I" || this.raws.insensitiveFlag === "i")) this.raws.insensitiveFlag = void 0;
12284
12414
  this._insensitive = insensitive;
12285
12415
  },
12286
12416
  enumerable: false,
12287
12417
  configurable: true
12288
12418
  });
12419
+ Object.defineProperty(Attribute.prototype, "sensitive", {
12420
+ get: function() {
12421
+ return this._sensitive;
12422
+ },
12423
+ /**
12424
+ * Set the explicit case sensitive flag (Selectors Level 4 `s`).
12425
+ * If the case sensitive flag changes, the raw (escaped) value at `attr.raws.sensitiveFlag`
12426
+ * of the attribute is updated accordingly.
12427
+ *
12428
+ * The two case sensitivity flags are mutually exclusive, so setting this flag
12429
+ * clears `attr.insensitive` and any `i`/`I` in `attr.raws.insensitiveFlag`.
12430
+ *
12431
+ * @param {true | false} sensitive true if the attribute should match case-sensitively.
12432
+ */
12433
+ set: function(sensitive) {
12434
+ if (sensitive) this.insensitive = false;
12435
+ else if (this.raws && (this.raws.sensitiveFlag === "S" || this.raws.sensitiveFlag === "s")) this.raws.sensitiveFlag = void 0;
12436
+ this._sensitive = sensitive;
12437
+ },
12438
+ enumerable: false,
12439
+ configurable: true
12440
+ });
12289
12441
  Object.defineProperty(Attribute.prototype, "attribute", {
12290
12442
  get: function() {
12291
12443
  return this._attribute;
@@ -12330,6 +12482,7 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports, module, this$10
12330
12482
  * * "operator" - the match operator of the attribute
12331
12483
  * * "value" - The value (string or identifier)
12332
12484
  * * "insensitive" - the case insensitivity flag;
12485
+ * * "sensitive" - the explicit case sensitivity flag;
12333
12486
  * @param part One of the possible values inside an attribute.
12334
12487
  * @returns -1 if the name is invalid or the value doesn't exist in this attribute.
12335
12488
  */
@@ -12359,6 +12512,7 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports, module, this$10
12359
12512
  var insensitiveSpaces = this._spacesFor("insensitive");
12360
12513
  count += insensitiveSpaces.before.length;
12361
12514
  if (name === "insensitive") return this.insensitive ? count : -1;
12515
+ if (name === "sensitive") return this.sensitive ? count : -1;
12362
12516
  return -1;
12363
12517
  };
12364
12518
  Attribute.prototype.toString = function() {
@@ -12368,7 +12522,8 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports, module, this$10
12368
12522
  if (this.operator && (this.value || this.value === "")) {
12369
12523
  selector.push(this._stringFor("operator"));
12370
12524
  selector.push(this._stringFor("value"));
12371
- selector.push(this._stringFor("insensitiveFlag", "insensitive", function(attrValue, attrSpaces) {
12525
+ var flagProperty = this.sensitive ? "sensitiveFlag" : "insensitiveFlag";
12526
+ selector.push(this._stringFor(flagProperty, "insensitive", function(attrValue, attrSpaces) {
12372
12527
  if (attrValue.length > 0 && !_this.quoted && attrSpaces.before.length === 0 && !(_this.spaces.value && _this.spaces.value.after)) attrSpaces.before = " ";
12373
12528
  return defaultAttrConcat(attrValue, attrSpaces);
12374
12529
  }));
@@ -12396,7 +12551,7 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports, module, this$10
12396
12551
  return "".concat(attrSpaces.before).concat(attrValue).concat(attrSpaces.after);
12397
12552
  }
12398
12553
  }));
12399
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/universal.js
12554
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/universal.js
12400
12555
  var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module, this$9) => {
12401
12556
  var __extends = this$9 && this$9.__extends || (function() {
12402
12557
  var extendStatics = function(d, b) {
@@ -12433,7 +12588,7 @@ var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module, this$9)
12433
12588
  return Universal;
12434
12589
  }(namespace_1.default);
12435
12590
  }));
12436
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/combinator.js
12591
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/combinator.js
12437
12592
  var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module, this$8) => {
12438
12593
  var __extends = this$8 && this$8.__extends || (function() {
12439
12594
  var extendStatics = function(d, b) {
@@ -12481,7 +12636,7 @@ var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module, this$8
12481
12636
  return Combinator;
12482
12637
  }(node_1.default);
12483
12638
  }));
12484
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/nesting.js
12639
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/nesting.js
12485
12640
  var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module, this$7) => {
12486
12641
  var __extends = this$7 && this$7.__extends || (function() {
12487
12642
  var extendStatics = function(d, b) {
@@ -12518,7 +12673,7 @@ var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module, this$7) =
12518
12673
  return Nesting;
12519
12674
  }(node_1.default);
12520
12675
  }));
12521
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/sortAscending.js
12676
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/sortAscending.js
12522
12677
  var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports) => {
12523
12678
  Object.defineProperty(exports, "__esModule", { value: true });
12524
12679
  exports.default = sortAscending;
@@ -12528,7 +12683,7 @@ var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports) => {
12528
12683
  });
12529
12684
  }
12530
12685
  }));
12531
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/tokenTypes.js
12686
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/tokenTypes.js
12532
12687
  var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
12533
12688
  Object.defineProperty(exports, "__esModule", { value: true });
12534
12689
  exports.combinator = exports.word = exports.comment = exports.str = exports.tab = exports.newline = exports.feed = exports.cr = exports.backslash = exports.bang = exports.slash = exports.doubleQuote = exports.singleQuote = exports.space = exports.greaterThan = exports.pipe = exports.equals = exports.plus = exports.caret = exports.tilde = exports.dollar = exports.closeSquare = exports.openSquare = exports.closeParenthesis = exports.openParenthesis = exports.semicolon = exports.colon = exports.comma = exports.at = exports.asterisk = exports.ampersand = void 0;
@@ -12564,7 +12719,7 @@ var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
12564
12719
  exports.word = -2;
12565
12720
  exports.combinator = -3;
12566
12721
  }));
12567
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/tokenize.js
12722
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/tokenize.js
12568
12723
  var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports, module, this$6) => {
12569
12724
  var __createBinding = this$6 && this$6.__createBinding || (Object.create ? (function(o, m, k, k2) {
12570
12725
  if (k2 === void 0) k2 = k;
@@ -12805,7 +12960,7 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports, module, this$6)
12805
12960
  return tokens;
12806
12961
  }
12807
12962
  }));
12808
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/parser.js
12963
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/parser.js
12809
12964
  var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) => {
12810
12965
  var __assign = this$5 && this$5.__assign || function() {
12811
12966
  __assign = Object.assign || function(t) {
@@ -12956,6 +13111,18 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
12956
13111
  while ((i = array.indexOf(item, i + 1)) !== -1) indexes.push(i);
12957
13112
  return indexes;
12958
13113
  }
13114
+ function isEscaped(word, index) {
13115
+ var escapeStart = index;
13116
+ while (word[escapeStart - 1] === "\\") escapeStart--;
13117
+ return (index - escapeStart) % 2 === 1;
13118
+ }
13119
+ function insideInterpolation(text) {
13120
+ if (!text) return false;
13121
+ var open = text.lastIndexOf("{");
13122
+ if (open < 1 || text.indexOf("}", open) !== -1) return false;
13123
+ var prefix = text[open - 1];
13124
+ return prefix === "#" || prefix === "@";
13125
+ }
12959
13126
  function uniqs() {
12960
13127
  return Array.from(new Set(Array.prototype.concat.apply([], arguments)));
12961
13128
  }
@@ -12970,7 +13137,10 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
12970
13137
  this.position = 0;
12971
13138
  this.nestingDepth = 0;
12972
13139
  this.maxNestingDepth = (0, util_1.resolveMaxNestingDepth)(this.options.maxNestingDepth);
13140
+ this.commentPrefixes = /* @__PURE__ */ new WeakMap();
12973
13141
  this.css = typeof this.rule === "string" ? this.rule : this.rule.selector;
13142
+ var maxInputLength = (0, util_1.resolveMaxInputLength)(this.options.maxInputLength);
13143
+ if (this.css && this.css.length > maxInputLength) throw this._errorGenerator()("Cannot parse selector: its length of ".concat(this.css.length, " exceeds the maximum of ").concat(maxInputLength, "."));
12974
13144
  this.tokens = (0, tokenize_1.default)({
12975
13145
  css: this.css,
12976
13146
  error: this._errorGenerator(),
@@ -13057,7 +13227,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
13057
13227
  }
13058
13228
  break;
13059
13229
  case tokens.asterisk:
13060
- if (next[tokenize_1.FIELDS.TYPE] === tokens.equals) {
13230
+ if (next && next[tokenize_1.FIELDS.TYPE] === tokens.equals) {
13061
13231
  node.operator = content;
13062
13232
  lastAdded = "operator";
13063
13233
  } else if ((!node.namespace || lastAdded === "namespace" && !spaceAfterMeaningfulToken) && next) {
@@ -13078,21 +13248,30 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
13078
13248
  }
13079
13249
  spaceAfterMeaningfulToken = false;
13080
13250
  break;
13081
- case tokens.dollar: if (lastAdded === "value") {
13082
- var oldRawValue = (0, util_1.getProp)(node, "raws", "value");
13083
- node.value += "$";
13084
- if (oldRawValue) node.raws.value = oldRawValue + "$";
13085
- break;
13086
- }
13251
+ case tokens.dollar:
13252
+ if (lastAdded === "value") {
13253
+ var oldRawValue = (0, util_1.getProp)(node, "raws", "value");
13254
+ node.value += "$";
13255
+ if (oldRawValue) node.raws.value = oldRawValue + "$";
13256
+ break;
13257
+ }
13258
+ if (lastAdded === "attribute" && insideInterpolation(node.attribute) && !(next && next[tokenize_1.FIELDS.TYPE] === tokens.equals)) {
13259
+ var oldRawAttribute = (0, util_1.getProp)(node, "raws", "attribute");
13260
+ node.attribute = (node.attribute || "") + "$";
13261
+ if (oldRawAttribute) node.raws.attribute = oldRawAttribute + "$";
13262
+ lastAdded = "attribute";
13263
+ spaceAfterMeaningfulToken = false;
13264
+ break;
13265
+ }
13087
13266
  case tokens.caret:
13088
- if (next[tokenize_1.FIELDS.TYPE] === tokens.equals) {
13267
+ if (next && next[tokenize_1.FIELDS.TYPE] === tokens.equals) {
13089
13268
  node.operator = content;
13090
13269
  lastAdded = "operator";
13091
13270
  }
13092
13271
  spaceAfterMeaningfulToken = false;
13093
13272
  break;
13094
13273
  case tokens.combinator:
13095
- if (content === "~" && next[tokenize_1.FIELDS.TYPE] === tokens.equals) {
13274
+ if (content === "~" && next && next[tokenize_1.FIELDS.TYPE] === tokens.equals) {
13096
13275
  node.operator = content;
13097
13276
  lastAdded = "operator";
13098
13277
  }
@@ -13100,7 +13279,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
13100
13279
  spaceAfterMeaningfulToken = false;
13101
13280
  break;
13102
13281
  }
13103
- if (next[tokenize_1.FIELDS.TYPE] === tokens.equals) {
13282
+ if (next && next[tokenize_1.FIELDS.TYPE] === tokens.equals) {
13104
13283
  node.operator = content;
13105
13284
  lastAdded = "operator";
13106
13285
  } else if (!node.operator) {
@@ -13146,9 +13325,16 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
13146
13325
  lastAdded = "value";
13147
13326
  } else {
13148
13327
  var insensitive = content === "i" || content === "I";
13328
+ var sensitive = content === "s" || content === "S";
13149
13329
  if ((node.value || node.value === "") && (node.quoteMark || spaceAfterMeaningfulToken)) {
13150
13330
  node.insensitive = insensitive;
13151
- if (!insensitive || content === "I") {
13331
+ node.sensitive = sensitive;
13332
+ if (sensitive) {
13333
+ if (content === "S") {
13334
+ (0, util_1.ensureObject)(node, "raws");
13335
+ node.raws.sensitiveFlag = content;
13336
+ }
13337
+ } else if (!insensitive || content === "I") {
13152
13338
  (0, util_1.ensureObject)(node, "raws");
13153
13339
  node.raws.insensitiveFlag = content;
13154
13340
  }
@@ -13207,6 +13393,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
13207
13393
  }
13208
13394
  pos++;
13209
13395
  }
13396
+ if (!node.attribute) return this.expected("attribute", startingToken[tokenize_1.FIELDS.START_POS]);
13210
13397
  unescapeProp(node, "attribute");
13211
13398
  unescapeProp(node, "namespace");
13212
13399
  this.newNode(new attribute_1.default(node));
@@ -13491,11 +13678,18 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
13491
13678
  var parenStart = this.currToken;
13492
13679
  var parenValue = "(";
13493
13680
  var parenEnd = void 0;
13494
- while (this.position < this.tokens.length && unbalanced) {
13495
- if (this.currToken[tokenize_1.FIELDS.TYPE] === tokens.openParenthesis) unbalanced++;
13496
- if (this.currToken[tokenize_1.FIELDS.TYPE] === tokens.closeParenthesis) unbalanced--;
13497
- parenEnd = this.currToken;
13498
- parenValue += this.parseParenthesisToken(this.currToken);
13681
+ for (;;) {
13682
+ while (this.position < this.tokens.length && unbalanced) {
13683
+ if (this.currToken[tokenize_1.FIELDS.TYPE] === tokens.openParenthesis) unbalanced++;
13684
+ if (this.currToken[tokenize_1.FIELDS.TYPE] === tokens.closeParenthesis) unbalanced--;
13685
+ parenEnd = this.currToken;
13686
+ parenValue += this.parseParenthesisToken(this.currToken);
13687
+ this.position++;
13688
+ }
13689
+ if (unbalanced || !last || !this.currToken || this.currToken[tokenize_1.FIELDS.TYPE] !== tokens.openParenthesis) break;
13690
+ openingToken = this.currToken;
13691
+ parenValue += "(";
13692
+ unbalanced = 1;
13499
13693
  this.position++;
13500
13694
  }
13501
13695
  if (last) last.appendToPropertyAndEscape("value", parenValue, parenValue);
@@ -13527,11 +13721,24 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
13527
13721
  });
13528
13722
  else return this.expected(["pseudo-class", "pseudo-element"], this.currToken[tokenize_1.FIELDS.START_POS]);
13529
13723
  };
13724
+ /**
13725
+ * Whether every node of the current container is a comment.
13726
+ *
13727
+ * Nodes are only ever appended while parsing, never removed or inserted
13728
+ * earlier, so the comment-only prefix already checked is cached per
13729
+ * container and only the nodes added since are inspected. Rescanning the
13730
+ * whole list for every space token made comment-only selectors quadratic.
13731
+ */
13732
+ Parser.prototype.currentHasOnlyComments = function() {
13733
+ var nodes = this.current.nodes;
13734
+ var checked = this.commentPrefixes.get(this.current) || 0;
13735
+ while (checked < nodes.length && nodes[checked].type === types.COMMENT) checked++;
13736
+ this.commentPrefixes.set(this.current, checked);
13737
+ return checked === nodes.length;
13738
+ };
13530
13739
  Parser.prototype.space = function() {
13531
13740
  var content = this.content();
13532
- if (this.position === 0 || this.prevToken[tokenize_1.FIELDS.TYPE] === tokens.comma || this.prevToken[tokenize_1.FIELDS.TYPE] === tokens.openParenthesis || this.current.nodes.every(function(node) {
13533
- return node.type === "comment";
13534
- })) {
13741
+ if (this.position === 0 || this.prevToken[tokenize_1.FIELDS.TYPE] === tokens.comma || this.prevToken[tokenize_1.FIELDS.TYPE] === tokens.openParenthesis || this.currentHasOnlyComments()) {
13535
13742
  this.spaces = this.optionalSpace(content);
13536
13743
  this.position++;
13537
13744
  } else if (this.position === this.tokens.length - 1 || this.nextToken[tokenize_1.FIELDS.TYPE] === tokens.comma || this.nextToken[tokenize_1.FIELDS.TYPE] === tokens.closeParenthesis) {
@@ -13584,13 +13791,11 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
13584
13791
  }
13585
13792
  nextToken = this.nextToken;
13586
13793
  }
13587
- var hasClass = indexesOf(word, ".").filter(function(i) {
13588
- var escapedDot = word[i - 1] === "\\";
13589
- var isKeyframesPercent = /^\d+\.\d+%$/.test(word);
13590
- return !escapedDot && !isKeyframesPercent;
13794
+ var hasClass = /^\d+\.\d+%$/.test(word) ? [] : indexesOf(word, ".").filter(function(i) {
13795
+ return !isEscaped(word, i);
13591
13796
  });
13592
13797
  var hasId = indexesOf(word, "#").filter(function(i) {
13593
- return word[i - 1] !== "\\";
13798
+ return !isEscaped(word, i);
13594
13799
  });
13595
13800
  var interpolations = indexesOf(word, "#{");
13596
13801
  if (interpolations.length) {
@@ -13617,6 +13822,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
13617
13822
  sourceIndex
13618
13823
  };
13619
13824
  node = new className_1.default(unescapeProp(classNameOpts, "value"));
13825
+ if (!classNameOpts.raws) delete node.raws;
13620
13826
  } else if (idIndexes.has(ind)) {
13621
13827
  var idOpts = {
13622
13828
  value: value.slice(1),
@@ -13782,18 +13988,53 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) =>
13782
13988
  return Parser;
13783
13989
  }();
13784
13990
  }));
13785
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/processor.js
13991
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/processor.js
13786
13992
  var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module, this$4) => {
13993
+ var __values = this$4 && this$4.__values || function(o) {
13994
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
13995
+ if (m) return m.call(o);
13996
+ if (o && typeof o.length === "number") return { next: function() {
13997
+ if (o && i >= o.length) o = void 0;
13998
+ return {
13999
+ value: o && o[i++],
14000
+ done: !o
14001
+ };
14002
+ } };
14003
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
14004
+ };
13787
14005
  var __importDefault = this$4 && this$4.__importDefault || function(mod) {
13788
14006
  return mod && mod.__esModule ? mod : { "default": mod };
13789
14007
  };
13790
14008
  Object.defineProperty(exports, "__esModule", { value: true });
13791
14009
  var parser_1 = __importDefault(require_parser());
14010
+ var BOUND_METHODS = [
14011
+ "ast",
14012
+ "astSync",
14013
+ "transform",
14014
+ "transformSync",
14015
+ "process",
14016
+ "processSync"
14017
+ ];
13792
14018
  exports.default = function() {
13793
14019
  function Processor(func, options) {
14020
+ var e_1, _a;
13794
14021
  this.func = func || function noop() {};
13795
14022
  this.funcRes = null;
13796
14023
  this.options = options;
14024
+ try {
14025
+ for (var BOUND_METHODS_1 = __values(BOUND_METHODS), BOUND_METHODS_1_1 = BOUND_METHODS_1.next(); !BOUND_METHODS_1_1.done; BOUND_METHODS_1_1 = BOUND_METHODS_1.next()) {
14026
+ var name = BOUND_METHODS_1_1.value;
14027
+ this[name] = this[name].bind(this);
14028
+ }
14029
+ } catch (e_1_1) {
14030
+ e_1 = { error: e_1_1 };
14031
+ } finally {
14032
+ try {
14033
+ if (BOUND_METHODS_1_1 && !BOUND_METHODS_1_1.done && (_a = BOUND_METHODS_1.return)) _a.call(BOUND_METHODS_1);
14034
+ } finally {
14035
+ if (e_1) throw e_1.error;
14036
+ }
14037
+ }
13797
14038
  }
13798
14039
  Processor.prototype._shouldUpdateSelector = function(rule, options) {
13799
14040
  if (options === void 0) options = {};
@@ -13813,7 +14054,8 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module, this$4)
13813
14054
  var merged = Object.assign({}, this.options, options);
13814
14055
  return {
13815
14056
  lossy: this._isLossy(merged),
13816
- maxNestingDepth: merged.maxNestingDepth
14057
+ maxNestingDepth: merged.maxNestingDepth,
14058
+ maxInputLength: merged.maxInputLength
13817
14059
  };
13818
14060
  };
13819
14061
  Processor.prototype._stringifyOptions = function(options) {
@@ -13930,7 +14172,7 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module, this$4)
13930
14172
  return Processor;
13931
14173
  }();
13932
14174
  }));
13933
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/constructors.js
14175
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/constructors.js
13934
14176
  var require_constructors = /* @__PURE__ */ __commonJSMin(((exports, module, this$3) => {
13935
14177
  var __importDefault = this$3 && this$3.__importDefault || function(mod) {
13936
14178
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -13998,7 +14240,7 @@ var require_constructors = /* @__PURE__ */ __commonJSMin(((exports, module, this
13998
14240
  };
13999
14241
  exports.universal = universal;
14000
14242
  }));
14001
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/guards.js
14243
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/guards.js
14002
14244
  var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
14003
14245
  var _a;
14004
14246
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -14041,7 +14283,7 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
14041
14283
  return (0, exports.isAttribute)(node) || (0, exports.isTag)(node);
14042
14284
  }
14043
14285
  }));
14044
- // ../../node_modules/.pnpm/postcss-selector-parser@7.1.7/node_modules/postcss-selector-parser/dist/selectors/index.js
14286
+ // ../../node_modules/.pnpm/postcss-selector-parser@7.2.0/node_modules/postcss-selector-parser/dist/selectors/index.js
14045
14287
  var require_selectors = /* @__PURE__ */ __commonJSMin(((exports, module, this$2) => {
14046
14288
  var __createBinding = this$2 && this$2.__createBinding || (Object.create ? (function(o, m, k, k2) {
14047
14289
  if (k2 === void 0) k2 = k;
@@ -14112,8 +14354,8 @@ var import_dist = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((expor
14112
14354
  return mod && mod.__esModule ? mod : { "default": mod };
14113
14355
  })(require_processor());
14114
14356
  var selectors = __importStar(require_selectors());
14115
- var parser = function(processor) {
14116
- return new processor_1.default(processor);
14357
+ var parser = function(processor, options) {
14358
+ return new processor_1.default(processor, options);
14117
14359
  };
14118
14360
  Object.assign(parser, selectors);
14119
14361
  delete parser.__esModule;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/stylelint-config",
3
3
  "type": "module",
4
- "version": "6.0.2",
4
+ "version": "6.0.3-dev.20261113.1",
5
5
  "description": "Stylelint preset from the repoctl development toolchain",
6
6
  "author": "ice breaker <hi@sonofmagic.top>",
7
7
  "license": "MIT",
@@ -59,11 +59,12 @@
59
59
  "stylelint-config-recommended": "^19.0.0",
60
60
  "stylelint-config-standard": "^41.0.0",
61
61
  "stylelint-order": "^8.1.3",
62
- "stylelint-plugin-tailwindcss": "3.2.1"
62
+ "stylelint-plugin-tailwindcss": "3.2.2-dev.20261113.1"
63
63
  },
64
64
  "publishConfig": {
65
65
  "access": "public",
66
- "registry": "https://registry.npmjs.org"
66
+ "registry": "https://registry.npmjs.org/",
67
+ "tag": "snapshot-nightly"
67
68
  },
68
69
  "tsd": {
69
70
  "directory": "test-d",
@@ -79,6 +80,13 @@
79
80
  "stylelint-scss": "7.4.0",
80
81
  "tailwindcss": "^4.3.5"
81
82
  },
83
+ "repoctlSnapshot": {
84
+ "kind": "nightly",
85
+ "commit": "f452e4f955a0084f23e988424ce0b076fcb6be61",
86
+ "buildId": "43380047917-1",
87
+ "identityKey": "92e7f65717bf3b63797484598b1545142ecdcc09d26923632e6d7eeff81837f9",
88
+ "tag": "snapshot-nightly"
89
+ },
82
90
  "scripts": {
83
91
  "dev": "tsdown --watch --sourcemap",
84
92
  "build": "tsdown",
@@ -89,4 +97,4 @@
89
97
  "sync": "repo release sync-npmmirror --package @icebreakers/stylelint-config",
90
98
  "typecheck": "tsc --noEmit"
91
99
  }
92
- }
100
+ }