hyperframes 0.8.141 → 0.8.142

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 (160) hide show
  1. package/dist/{add-KH2CF4FD.js → add-YS2RCWEK.js} +11 -11
  2. package/dist/{animatedGifPrep-QO4BSKR7.js → animatedGifPrep-SAMCDT7T.js} +6 -7
  3. package/dist/{asset-4RDZILVJ.js → asset-BLWC2NWB.js} +2 -2
  4. package/dist/{assetCataloger-WGR4LYYN.js → assetCataloger-FVNBBRP3.js} +2 -2
  5. package/dist/{auth-WYQCOYE5.js → auth-DRZB7OAC.js} +5 -4
  6. package/dist/{autoUpdate-PC5TN3NL.js → autoUpdate-I5I3BOJK.js} +2 -2
  7. package/dist/{backgroundChecks-7M3T44EP.js → backgroundChecks-VR2QHGNY.js} +3 -3
  8. package/dist/backgroundChecksWorker.js +3 -3
  9. package/dist/{batchRender-GOLLOE4V.js → batchRender-4YUHQI6X.js} +3 -3
  10. package/dist/{beats-XJ7WP6QS.js → beats-7OT7ALV3.js} +11 -12
  11. package/dist/{benchmark-HCGFBEZJ.js → benchmark-Q2XQCRTR.js} +8 -8
  12. package/dist/{browser-VQKO2FKG.js → browser-7VAWQQZC.js} +3 -3
  13. package/dist/{bundleWithLocalizedFonts-FH7PHTTX.js → bundleWithLocalizedFonts-DDMLLL2R.js} +2 -2
  14. package/dist/{capture-TFZZSF6F.js → capture-HEJS6M5A.js} +74 -33
  15. package/dist/{capture-XD3P3YQR.js → capture-U7ABPKS5.js} +24 -8
  16. package/dist/{catalog-4S33QWJJ.js → catalog-DVJ3XPDN.js} +11 -11
  17. package/dist/{catch-up-RW7YXXNT.js → catch-up-DF6AVSN2.js} +4 -4
  18. package/dist/{check-XVTRRN4Y.js → check-KXORRWAE.js} +75 -72
  19. package/dist/{checkBrowser-HZXJ2EDU.js → checkBrowser-J7HZJTRH.js} +28 -29
  20. package/dist/{chunk-XTFJOR3K.js → chunk-4SFGME7K.js} +1 -1
  21. package/dist/{chunk-EDYBFSPE.js → chunk-6RAD4BCC.js} +5 -8
  22. package/dist/{chunk-4BB7V6AI.js → chunk-6UM3R7PP.js} +1 -1
  23. package/dist/{chunk-BM5PX3DJ.js → chunk-6UYZB4TY.js} +1 -1
  24. package/dist/{chunk-L3JSAB4L.js → chunk-75JJVANE.js} +2 -2
  25. package/dist/{chunk-IV7EI5E2.js → chunk-7FCDA4RH.js} +1 -1
  26. package/dist/{chunk-HKCNZITN.js → chunk-AM5L5YIA.js} +1 -1
  27. package/dist/{chunk-BRITLL56.js → chunk-B4P5VDFQ.js} +1 -1
  28. package/dist/{chunk-IO7ZIDRP.js → chunk-B6SMSALD.js} +53 -12
  29. package/dist/{chunk-XWVGSEUT.js → chunk-BPZVDBHY.js} +1 -1
  30. package/dist/{chunk-246MOR5U.js → chunk-DKSDVDXG.js} +175 -162
  31. package/dist/{chunk-35RSNI77.js → chunk-DPHJKWP5.js} +2 -2
  32. package/dist/{chunk-W6HTOVHU.js → chunk-DZEVA7DI.js} +2 -2
  33. package/dist/{chunk-AVWEIOEN.js → chunk-EFDXGAAD.js} +1 -1
  34. package/dist/{chunk-3A5AAPMP.js → chunk-FWRNQOLT.js} +1 -1
  35. package/dist/{chunk-GS6FE3IW.js → chunk-FZK35GT4.js} +1 -1
  36. package/dist/{chunk-RPYPW5NN.js → chunk-GYE63V4P.js} +10 -10
  37. package/dist/{chunk-R7UDXKI3.js → chunk-H2X52H2N.js} +3 -3
  38. package/dist/{chunk-3NBKW2QJ.js → chunk-HMUF7FEO.js} +1 -1
  39. package/dist/{chunk-E6SDW5FV.js → chunk-IDX52YJN.js} +5 -5
  40. package/dist/{chunk-OLDDJS3S.js → chunk-IMY4QQTQ.js} +7 -7
  41. package/dist/{chunk-WY5OODN5.js → chunk-IW2CKH6A.js} +3645 -3
  42. package/dist/{chunk-KFH6UD26.js → chunk-IXCTG2WY.js} +3 -3
  43. package/dist/chunk-J4UX3RS3.js +3717 -0
  44. package/dist/{chunk-IYFKBFTW.js → chunk-JLKMWY2T.js} +1 -1
  45. package/dist/{chunk-IKVBTDLO.js → chunk-JOTLPC6S.js} +1 -1
  46. package/dist/{chunk-6IFXWJDX.js → chunk-JU6Y5TTZ.js} +2 -2
  47. package/dist/{chunk-YURXPGAM.js → chunk-KYN364DU.js} +2 -2
  48. package/dist/{chunk-RCFCZT5O.js → chunk-LBKDQKWV.js} +1 -1
  49. package/dist/{chunk-TC2FBZJZ.js → chunk-LJAU4TPS.js} +1 -1
  50. package/dist/{chunk-34TXESM7.js → chunk-LQASVU3I.js} +3 -3
  51. package/dist/{chunk-NORZWWLK.js → chunk-LTGGTEMA.js} +2 -2
  52. package/dist/{chunk-K2GOFLTX.js → chunk-MVTUV4TP.js} +2 -2
  53. package/dist/{chunk-A7YQNIQT.js → chunk-OKCR3JTO.js} +104 -4
  54. package/dist/{chunk-O3SKIXQK.js → chunk-OSUKETIH.js} +1 -1
  55. package/dist/chunk-P36MALQF.js +15 -0
  56. package/dist/{chunk-P6E4HFFU.js → chunk-QGRFOOLE.js} +8 -8
  57. package/dist/{chunk-Q65ZQFF2.js → chunk-QXPCARFE.js} +1 -1
  58. package/dist/{chunk-E4BSCXMU.js → chunk-R2JEKLDZ.js} +1 -1
  59. package/dist/{chunk-EKA4ZZBI.js → chunk-TY6XOHEM.js} +1 -1
  60. package/dist/{chunk-INI3TM6I.js → chunk-WGVOWWVK.js} +2 -2
  61. package/dist/{chunk-XDSOIJC3.js → chunk-WSGY5CDQ.js} +5 -5
  62. package/dist/{chunk-J5IPIQU2.js → chunk-WTMUCJ6Z.js} +1 -1
  63. package/dist/{chunk-7XTZVLE6.js → chunk-XGMNQQTJ.js} +1 -1
  64. package/dist/{chunk-N77KD7ZZ.js → chunk-XTLBLWOV.js} +1 -1
  65. package/dist/{chunk-6E6CM7WS.js → chunk-YFT3BL7N.js} +1 -1
  66. package/dist/{chunk-6Q6FR4KH.js → chunk-YHRZQJXH.js} +43 -29
  67. package/dist/{clean-L2E4VD57.js → clean-KTHTV5G5.js} +12 -13
  68. package/dist/cli.js +52 -52
  69. package/dist/{cloud-IDUQRYLO.js → cloud-ARSZWALC.js} +4 -4
  70. package/dist/{cloudrun-R3JXWXGG.js → cloudrun-NM7RXOCL.js} +3 -3
  71. package/dist/commands/layout-audit.browser.js +20 -20
  72. package/dist/{compare-VYBWSP3Y.js → compare-CY4UO3RW.js} +23 -24
  73. package/dist/{compiler-ACHWOU5N.js → compiler-VTH2D3ID.js} +3 -4
  74. package/dist/{component-PYYV2V3F.js → component-FRUIAXIR.js} +3 -3
  75. package/dist/{compositions-B5GQSXH7.js → compositions-CUSY6ZYY.js} +10 -11
  76. package/dist/{delete-EAX2U3WI.js → delete-KT3VHP4L.js} +5 -5
  77. package/dist/{dist-ROUDWGLO.js → dist-2GC6XKRQ.js} +2 -2
  78. package/dist/{dist-NZSQCYOF.js → dist-7SZU7MA7.js} +1 -2
  79. package/dist/{doctor-PJX7MLFG.js → doctor-4ROTBL5U.js} +8 -9
  80. package/dist/{events-SBC54MHO.js → events-Q5PXT5UC.js} +2 -2
  81. package/dist/{events-YFFXKAQQ.js → events-QJDVMKSR.js} +3 -3
  82. package/dist/{feedback-UETLWREV.js → feedback-PQ7TWESA.js} +10 -10
  83. package/dist/{figma-QDSJPIRW.js → figma-JN5DDBDS.js} +3 -3
  84. package/dist/fontLocalizeCli.js +8 -9
  85. package/dist/{get-B5TS6C7H.js → get-KT6OTERO.js} +5 -5
  86. package/dist/{gpuPolicy-LYOVBAJP.js → gpuPolicy-LCBWVGEH.js} +6 -7
  87. package/dist/{grade-compare-LBIHMAUN.js → grade-compare-VS3RP73G.js} +23 -24
  88. package/dist/{help-XBP6A6LT.js → help-AD6FIZIO.js} +1 -1
  89. package/dist/{history-2S42ZXKL.js → history-ZRWYRY7R.js} +5 -5
  90. package/dist/hyperframe-runtime.js +2 -2
  91. package/dist/hyperframe.manifest.json +1 -1
  92. package/dist/hyperframe.runtime.iife.js +2 -2
  93. package/dist/hyperframes-player.global.js +1 -1
  94. package/dist/{info-I2VDAWT7.js → info-WBBQA2AX.js} +7 -7
  95. package/dist/{init-BGHSDODI.js → init-A2XBDFGF.js} +21 -22
  96. package/dist/{inspect-MZK5B5RP.js → inspect-CLTZHA5O.js} +24 -25
  97. package/dist/{installer-LL4QAKFW.js → installer-WQDRVXH4.js} +4 -4
  98. package/dist/{keyframes-2EBF7OSS.js → keyframes-3FYOK6H6.js} +6 -6
  99. package/dist/{lambda-XKFPAOFE.js → lambda-Y2PA2BGS.js} +4 -4
  100. package/dist/{layout-TP5ERKEF.js → layout-4KP5O7IJ.js} +24 -25
  101. package/dist/{lint-FQ6CEI7E.js → lint-V4GRFHOJ.js} +7 -8
  102. package/dist/{lintProject-LM3XZRPZ.js → lintProject-RG2KGAXB.js} +1 -2
  103. package/dist/{list-FRNUJXZ3.js → list-OQ4VED6E.js} +5 -5
  104. package/dist/{login-C25QU3BQ.js → login-W47NKN5S.js} +20 -24
  105. package/dist/{logout-GJXZQKOA.js → logout-B4KS4A7S.js} +6 -6
  106. package/dist/{media-treatment-DCANGWSV.js → media-treatment-HJYL3EME.js} +43 -24
  107. package/dist/{models-GOD6ARB3.js → models-DYBAD2GQ.js} +7 -8
  108. package/dist/{motionShot-FSKETANX.js → motionShot-7NE2YBB3.js} +12 -13
  109. package/dist/{normalize-audio-C2IM7OID.js → normalize-audio-INKCLMS2.js} +4 -4
  110. package/dist/{open-VVISXIII.js → open-TYC5THVY.js} +4 -4
  111. package/dist/{pipeline-7YHZPYIS.js → pipeline-EVKEPQEW.js} +6 -7
  112. package/dist/{play-DSELK7G3.js → play-QMZEM6X3.js} +17 -18
  113. package/dist/{present-N72YFDKP.js → present-Y7IK3C4W.js} +13 -14
  114. package/dist/{preview-XTYN4NJ2.js → preview-5OQRYE6A.js} +16 -17
  115. package/dist/{producer-NDCU3MHK.js → producer-Q6G6JU7B.js} +1 -1
  116. package/dist/{projectConfig-MH4QU4AC.js → projectConfig-RJN3DKDB.js} +6 -6
  117. package/dist/{publication-KUSHI5MG.js → publication-QCPGGN3U.js} +2 -2
  118. package/dist/{publish-3XEEFWMF.js → publish-VZLFIGYY.js} +15 -15
  119. package/dist/{refresh-MFITBIKV.js → refresh-PVHBEABE.js} +2 -2
  120. package/dist/{remove-background-2QKJ7XOD.js → remove-background-TKOEHBA5.js} +7 -8
  121. package/dist/{render-S73DW4KK.js → render-KIIIF6PS.js} +13 -13
  122. package/dist/{render-2DVYTVLQ.js → render-X3NFNVEQ.js} +19 -20
  123. package/dist/{render-75E342ZU.js → render-XTXE5CRU.js} +3 -3
  124. package/dist/{render-batch-YURBS54Q.js → render-batch-M55YZLZ5.js} +3 -3
  125. package/dist/{renderCancellation-373ASJTO.js → renderCancellation-X5BEHAZU.js} +6 -7
  126. package/dist/renderSetupWorker.js +1 -2
  127. package/dist/{resolver-FE3GBZ4T.js → resolver-GAMXRA42.js} +4 -4
  128. package/dist/{screenshotCapture-ECBTLCU6.js → screenshotCapture-TEUIWXWN.js} +53 -33
  129. package/dist/{sherpa-B2D3AGP6.js → sherpa-ZYTNFHD5.js} +7 -8
  130. package/dist/skills/hyperframes-cli/references/cloud.md +1 -1
  131. package/dist/skills/media-use/references/grading.md +4 -2
  132. package/dist/{skills-ICJ22CZZ.js → skills-CZHVAD3J.js} +5 -5
  133. package/dist/{skillsUpdateCheck-GXZN56I5.js → skillsUpdateCheck-6WLLX53A.js} +3 -3
  134. package/dist/{snapshot-XHKOAWF4.js → snapshot-K7BTJPYQ.js} +24 -25
  135. package/dist/{src-I7UC3JTL.js → src-3I3RH3V5.js} +5 -6
  136. package/dist/{src-74PFDTDX.js → src-YUW26JU5.js} +7 -8
  137. package/dist/{staticProjectServer-2DGKD6TF.js → staticProjectServer-IKCSGN2B.js} +13 -14
  138. package/dist/{status-JA6SKQVH.js → status-LXPGSSKY.js} +6 -4
  139. package/dist/studio/assets/{hyperframes-player-5Vx2AiUz.js → hyperframes-player-sAsRuV73.js} +1 -1
  140. package/dist/studio/assets/{index-C0thd4eM.js → index-B-wffzRH.js} +126 -126
  141. package/dist/studio/assets/{index-BAnh7cSQ.js → index-D3Vij9t1.js} +1 -1
  142. package/dist/studio/assets/{index-P8fgj_Xa.js → index-D5q2_7Gw.js} +1 -1
  143. package/dist/studio/index.html +1 -1
  144. package/dist/studio/index.js +26 -15
  145. package/dist/studio/index.js.map +1 -1
  146. package/dist/{studio-api-PROBO7JG.js → studio-api-SQ3NXFSM.js} +7 -8
  147. package/dist/{studioServer-ID6UV2NE.js → studioServer-VVEO7XCH.js} +35 -36
  148. package/dist/{telemetry-65LFHIWH.js → telemetry-FQDKR5XA.js} +3 -3
  149. package/dist/{timeline-6UV3JJXD.js → timeline-N6ZASFNE.js} +13 -14
  150. package/dist/{tokens-HIL4TZXI.js → tokens-2OIIBBCW.js} +2 -2
  151. package/dist/{transcribe-TIO6W3EQ.js → transcribe-4F6MK73N.js} +7 -8
  152. package/dist/{transcribe-V7F6QDSN.js → transcribe-7YTUCXDX.js} +6 -6
  153. package/dist/{updateCheck-GZELANMA.js → updateCheck-AZ2COZFR.js} +2 -2
  154. package/dist/{upgrade-BX3KDDZJ.js → upgrade-QAJEYB4X.js} +2 -2
  155. package/dist/{urlDownloader-R76OHFIE.js → urlDownloader-LSMFEO3R.js} +5 -6
  156. package/dist/{validate-7UX4I443.js → validate-GW5MDL36.js} +15 -16
  157. package/dist/{video-RVGYEFQU.js → video-PRNOKUK3.js} +6 -7
  158. package/package.json +1 -1
  159. package/dist/chunk-24OWOBQH.js +0 -3656
  160. package/dist/chunk-SYKKFAUW.js +0 -3711
@@ -4,9 +4,6 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
- import {
8
- require_dist
9
- } from "./chunk-24OWOBQH.js";
10
7
  import {
11
8
  cleanAssetUrl,
12
9
  collectSubCompositionSrcs,
@@ -57,9 +54,3648 @@ import {
57
54
  resolveSlideshow
58
55
  } from "./chunk-PMRBLBUP.js";
59
56
  import {
57
+ __commonJS,
58
+ __require,
60
59
  __toESM
61
60
  } from "./chunk-M2WBOQ2Q.js";
62
61
 
62
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/unesc.js
63
+ var require_unesc = __commonJS({
64
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/unesc.js"(exports) {
65
+ "use strict";
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.default = unesc;
68
+ function gobbleHex(str) {
69
+ var lower = str.toLowerCase();
70
+ var hex = "";
71
+ var spaceTerminated = false;
72
+ for (var i = 0; i < 6 && lower[i] !== void 0; i++) {
73
+ var code = lower.charCodeAt(i);
74
+ var valid = code >= 97 && code <= 102 || code >= 48 && code <= 57;
75
+ spaceTerminated = code === 32;
76
+ if (!valid) {
77
+ break;
78
+ }
79
+ hex += lower[i];
80
+ }
81
+ if (hex.length === 0) {
82
+ return void 0;
83
+ }
84
+ var codePoint = parseInt(hex, 16);
85
+ var isSurrogate = codePoint >= 55296 && codePoint <= 57343;
86
+ if (isSurrogate || codePoint === 0 || codePoint > 1114111) {
87
+ return ["\uFFFD", hex.length + (spaceTerminated ? 1 : 0)];
88
+ }
89
+ return [String.fromCodePoint(codePoint), hex.length + (spaceTerminated ? 1 : 0)];
90
+ }
91
+ var CONTAINS_ESCAPE = /\\/;
92
+ function unesc(str) {
93
+ var needToProcess = CONTAINS_ESCAPE.test(str);
94
+ if (!needToProcess) {
95
+ return str;
96
+ }
97
+ var ret = "";
98
+ for (var i = 0; i < str.length; i++) {
99
+ if (str[i] === "\\") {
100
+ var gobbled = gobbleHex(str.slice(i + 1, i + 7));
101
+ if (gobbled !== void 0) {
102
+ ret += gobbled[0];
103
+ i += gobbled[1];
104
+ continue;
105
+ }
106
+ if (str[i + 1] === "\\") {
107
+ ret += "\\";
108
+ i++;
109
+ continue;
110
+ }
111
+ if (str.length === i + 1) {
112
+ ret += str[i];
113
+ }
114
+ continue;
115
+ }
116
+ ret += str[i];
117
+ }
118
+ return ret;
119
+ }
120
+ }
121
+ });
122
+
123
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/getProp.js
124
+ var require_getProp = __commonJS({
125
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/getProp.js"(exports) {
126
+ "use strict";
127
+ Object.defineProperty(exports, "__esModule", { value: true });
128
+ exports.default = getProp;
129
+ function getProp(obj) {
130
+ var props = [];
131
+ for (var _i = 1; _i < arguments.length; _i++) {
132
+ props[_i - 1] = arguments[_i];
133
+ }
134
+ while (props.length > 0) {
135
+ var prop = props.shift();
136
+ if (!obj[prop]) {
137
+ return void 0;
138
+ }
139
+ obj = obj[prop];
140
+ }
141
+ return obj;
142
+ }
143
+ }
144
+ });
145
+
146
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/ensureObject.js
147
+ var require_ensureObject = __commonJS({
148
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/ensureObject.js"(exports) {
149
+ "use strict";
150
+ Object.defineProperty(exports, "__esModule", { value: true });
151
+ exports.default = ensureObject;
152
+ function ensureObject(obj) {
153
+ var props = [];
154
+ for (var _i = 1; _i < arguments.length; _i++) {
155
+ props[_i - 1] = arguments[_i];
156
+ }
157
+ while (props.length > 0) {
158
+ var prop = props.shift();
159
+ if (!obj[prop]) {
160
+ obj[prop] = {};
161
+ }
162
+ obj = obj[prop];
163
+ }
164
+ }
165
+ }
166
+ });
167
+
168
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/stripComments.js
169
+ var require_stripComments = __commonJS({
170
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/stripComments.js"(exports) {
171
+ "use strict";
172
+ Object.defineProperty(exports, "__esModule", { value: true });
173
+ exports.default = stripComments;
174
+ function stripComments(str) {
175
+ var s = "";
176
+ var commentStart = str.indexOf("/*");
177
+ var lastEnd = 0;
178
+ while (commentStart >= 0) {
179
+ s = s + str.slice(lastEnd, commentStart);
180
+ var commentEnd = str.indexOf("*/", commentStart + 2);
181
+ if (commentEnd < 0) {
182
+ return s;
183
+ }
184
+ lastEnd = commentEnd + 2;
185
+ commentStart = str.indexOf("/*", lastEnd);
186
+ }
187
+ s = s + str.slice(lastEnd);
188
+ return s;
189
+ }
190
+ }
191
+ });
192
+
193
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js
194
+ var require_maxNestingDepth = __commonJS({
195
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js"(exports) {
196
+ "use strict";
197
+ Object.defineProperty(exports, "__esModule", { value: true });
198
+ exports.MAX_NESTING_DEPTH = void 0;
199
+ exports.default = resolveMaxNestingDepth;
200
+ exports.MAX_NESTING_DEPTH = 256;
201
+ function resolveMaxNestingDepth(value) {
202
+ return Number.isSafeInteger(value) && value >= 0 ? value : exports.MAX_NESTING_DEPTH;
203
+ }
204
+ }
205
+ });
206
+
207
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/index.js
208
+ var require_util = __commonJS({
209
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/util/index.js"(exports) {
210
+ "use strict";
211
+ var __importDefault = exports && exports.__importDefault || function(mod) {
212
+ return mod && mod.__esModule ? mod : { "default": mod };
213
+ };
214
+ Object.defineProperty(exports, "__esModule", { value: true });
215
+ exports.MAX_NESTING_DEPTH = exports.resolveMaxNestingDepth = exports.stripComments = exports.ensureObject = exports.getProp = exports.unesc = void 0;
216
+ var unesc_1 = require_unesc();
217
+ Object.defineProperty(exports, "unesc", { enumerable: true, get: function() {
218
+ return __importDefault(unesc_1).default;
219
+ } });
220
+ var getProp_1 = require_getProp();
221
+ Object.defineProperty(exports, "getProp", { enumerable: true, get: function() {
222
+ return __importDefault(getProp_1).default;
223
+ } });
224
+ var ensureObject_1 = require_ensureObject();
225
+ Object.defineProperty(exports, "ensureObject", { enumerable: true, get: function() {
226
+ return __importDefault(ensureObject_1).default;
227
+ } });
228
+ var stripComments_1 = require_stripComments();
229
+ Object.defineProperty(exports, "stripComments", { enumerable: true, get: function() {
230
+ return __importDefault(stripComments_1).default;
231
+ } });
232
+ var maxNestingDepth_1 = require_maxNestingDepth();
233
+ Object.defineProperty(exports, "resolveMaxNestingDepth", { enumerable: true, get: function() {
234
+ return __importDefault(maxNestingDepth_1).default;
235
+ } });
236
+ Object.defineProperty(exports, "MAX_NESTING_DEPTH", { enumerable: true, get: function() {
237
+ return maxNestingDepth_1.MAX_NESTING_DEPTH;
238
+ } });
239
+ }
240
+ });
241
+
242
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/node.js
243
+ var require_node = __commonJS({
244
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/node.js"(exports) {
245
+ "use strict";
246
+ Object.defineProperty(exports, "__esModule", { value: true });
247
+ var util_1 = require_util();
248
+ var cloneNode = function(obj, parent, depth) {
249
+ if (depth === void 0) {
250
+ depth = 0;
251
+ }
252
+ if (depth > util_1.MAX_NESTING_DEPTH) {
253
+ throw new Error("Cannot clone selector: nesting depth exceeds the maximum of ".concat(util_1.MAX_NESTING_DEPTH, "."));
254
+ }
255
+ if (typeof obj !== "object" || obj === null) {
256
+ return obj;
257
+ }
258
+ var cloned = new obj.constructor();
259
+ for (var i in obj) {
260
+ if (!obj.hasOwnProperty(i)) {
261
+ continue;
262
+ }
263
+ var value = obj[i];
264
+ var type = typeof value;
265
+ if (i === "parent" && type === "object") {
266
+ if (parent) {
267
+ cloned[i] = parent;
268
+ }
269
+ } else if (value instanceof Array) {
270
+ cloned[i] = value.map(function(j) {
271
+ return cloneNode(j, cloned, depth + 1);
272
+ });
273
+ } else {
274
+ cloned[i] = cloneNode(value, cloned, depth + 1);
275
+ }
276
+ }
277
+ return cloned;
278
+ };
279
+ var Node = (
280
+ /** @class */
281
+ (function() {
282
+ function Node2(opts) {
283
+ if (opts === void 0) {
284
+ opts = {};
285
+ }
286
+ Object.assign(this, opts);
287
+ this.spaces = this.spaces || {};
288
+ this.spaces.before = this.spaces.before || "";
289
+ this.spaces.after = this.spaces.after || "";
290
+ }
291
+ Node2.prototype.remove = function() {
292
+ if (this.parent) {
293
+ this.parent.removeChild(this);
294
+ }
295
+ this.parent = void 0;
296
+ return this;
297
+ };
298
+ Node2.prototype.replaceWith = function() {
299
+ if (this.parent) {
300
+ for (var index in arguments) {
301
+ this.parent.insertBefore(this, arguments[index]);
302
+ }
303
+ this.remove();
304
+ }
305
+ return this;
306
+ };
307
+ Node2.prototype.next = function() {
308
+ return this.parent.at(this.parent.index(this) + 1);
309
+ };
310
+ Node2.prototype.prev = function() {
311
+ return this.parent.at(this.parent.index(this) - 1);
312
+ };
313
+ Node2.prototype.clone = function(overrides) {
314
+ if (overrides === void 0) {
315
+ overrides = {};
316
+ }
317
+ var cloned = cloneNode(this);
318
+ for (var name in overrides) {
319
+ cloned[name] = overrides[name];
320
+ }
321
+ return cloned;
322
+ };
323
+ Node2.prototype.appendToPropertyAndEscape = function(name, value, valueEscaped) {
324
+ if (!this.raws) {
325
+ this.raws = {};
326
+ }
327
+ var originalValue = this[name];
328
+ var originalEscaped = this.raws[name];
329
+ this[name] = originalValue + value;
330
+ if (originalEscaped || valueEscaped !== value) {
331
+ this.raws[name] = (originalEscaped || originalValue) + valueEscaped;
332
+ } else {
333
+ delete this.raws[name];
334
+ }
335
+ };
336
+ Node2.prototype.setPropertyAndEscape = function(name, value, valueEscaped) {
337
+ if (!this.raws) {
338
+ this.raws = {};
339
+ }
340
+ this[name] = value;
341
+ this.raws[name] = valueEscaped;
342
+ };
343
+ Node2.prototype.setPropertyWithoutEscape = function(name, value) {
344
+ this[name] = value;
345
+ if (this.raws) {
346
+ delete this.raws[name];
347
+ }
348
+ };
349
+ Node2.prototype.isAtPosition = function(line, column) {
350
+ if (this.source && this.source.start && this.source.end) {
351
+ if (this.source.start.line > line) {
352
+ return false;
353
+ }
354
+ if (this.source.end.line < line) {
355
+ return false;
356
+ }
357
+ if (this.source.start.line === line && this.source.start.column > column) {
358
+ return false;
359
+ }
360
+ if (this.source.end.line === line && this.source.end.column < column) {
361
+ return false;
362
+ }
363
+ return true;
364
+ }
365
+ return void 0;
366
+ };
367
+ Node2.prototype.stringifyProperty = function(name) {
368
+ return this.raws && this.raws[name] || this[name];
369
+ };
370
+ Object.defineProperty(Node2.prototype, "rawSpaceBefore", {
371
+ get: function() {
372
+ var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.before;
373
+ if (rawSpace === void 0) {
374
+ rawSpace = this.spaces && this.spaces.before;
375
+ }
376
+ return rawSpace || "";
377
+ },
378
+ set: function(raw) {
379
+ (0, util_1.ensureObject)(this, "raws", "spaces");
380
+ this.raws.spaces.before = raw;
381
+ },
382
+ enumerable: false,
383
+ configurable: true
384
+ });
385
+ Object.defineProperty(Node2.prototype, "rawSpaceAfter", {
386
+ get: function() {
387
+ var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.after;
388
+ if (rawSpace === void 0) {
389
+ rawSpace = this.spaces.after;
390
+ }
391
+ return rawSpace || "";
392
+ },
393
+ set: function(raw) {
394
+ (0, util_1.ensureObject)(this, "raws", "spaces");
395
+ this.raws.spaces.after = raw;
396
+ },
397
+ enumerable: false,
398
+ configurable: true
399
+ });
400
+ Node2.prototype.valueToString = function() {
401
+ return String(this.stringifyProperty("value"));
402
+ };
403
+ Node2.prototype.toString = function() {
404
+ return [this.rawSpaceBefore, this.valueToString(), this.rawSpaceAfter].join("");
405
+ };
406
+ Node2.prototype._stringify = function() {
407
+ return this.toString();
408
+ };
409
+ return Node2;
410
+ })()
411
+ );
412
+ exports.default = Node;
413
+ }
414
+ });
415
+
416
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/types.js
417
+ var require_types = __commonJS({
418
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/types.js"(exports) {
419
+ "use strict";
420
+ Object.defineProperty(exports, "__esModule", { value: true });
421
+ 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;
422
+ exports.TAG = "tag";
423
+ exports.STRING = "string";
424
+ exports.SELECTOR = "selector";
425
+ exports.ROOT = "root";
426
+ exports.PSEUDO = "pseudo";
427
+ exports.NESTING = "nesting";
428
+ exports.ID = "id";
429
+ exports.COMMENT = "comment";
430
+ exports.COMBINATOR = "combinator";
431
+ exports.CLASS = "class";
432
+ exports.ATTRIBUTE = "attribute";
433
+ exports.UNIVERSAL = "universal";
434
+ }
435
+ });
436
+
437
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/container.js
438
+ var require_container = __commonJS({
439
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/container.js"(exports) {
440
+ "use strict";
441
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
442
+ var extendStatics = function(d, b) {
443
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
444
+ d2.__proto__ = b2;
445
+ } || function(d2, b2) {
446
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
447
+ };
448
+ return extendStatics(d, b);
449
+ };
450
+ return function(d, b) {
451
+ if (typeof b !== "function" && b !== null)
452
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
453
+ extendStatics(d, b);
454
+ function __() {
455
+ this.constructor = d;
456
+ }
457
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
458
+ };
459
+ })();
460
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
461
+ if (k2 === void 0) k2 = k;
462
+ var desc = Object.getOwnPropertyDescriptor(m, k);
463
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
464
+ desc = { enumerable: true, get: function() {
465
+ return m[k];
466
+ } };
467
+ }
468
+ Object.defineProperty(o, k2, desc);
469
+ }) : (function(o, m, k, k2) {
470
+ if (k2 === void 0) k2 = k;
471
+ o[k2] = m[k];
472
+ }));
473
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
474
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
475
+ }) : function(o, v) {
476
+ o["default"] = v;
477
+ });
478
+ var __importStar = exports && exports.__importStar || /* @__PURE__ */ (function() {
479
+ var ownKeys = function(o) {
480
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
481
+ var ar = [];
482
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
483
+ return ar;
484
+ };
485
+ return ownKeys(o);
486
+ };
487
+ return function(mod) {
488
+ if (mod && mod.__esModule) return mod;
489
+ var result = {};
490
+ if (mod != null) {
491
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
492
+ }
493
+ __setModuleDefault(result, mod);
494
+ return result;
495
+ };
496
+ })();
497
+ var __values = exports && exports.__values || function(o) {
498
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
499
+ if (m) return m.call(o);
500
+ if (o && typeof o.length === "number") return {
501
+ next: function() {
502
+ if (o && i >= o.length) o = void 0;
503
+ return { value: o && o[i++], done: !o };
504
+ }
505
+ };
506
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
507
+ };
508
+ var __read = exports && exports.__read || function(o, n) {
509
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
510
+ if (!m) return o;
511
+ var i = m.call(o), r, ar = [], e;
512
+ try {
513
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
514
+ } catch (error) {
515
+ e = { error };
516
+ } finally {
517
+ try {
518
+ if (r && !r.done && (m = i["return"])) m.call(i);
519
+ } finally {
520
+ if (e) throw e.error;
521
+ }
522
+ }
523
+ return ar;
524
+ };
525
+ var __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {
526
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
527
+ if (ar || !(i in from)) {
528
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
529
+ ar[i] = from[i];
530
+ }
531
+ }
532
+ return to.concat(ar || Array.prototype.slice.call(from));
533
+ };
534
+ var __importDefault = exports && exports.__importDefault || function(mod) {
535
+ return mod && mod.__esModule ? mod : { "default": mod };
536
+ };
537
+ Object.defineProperty(exports, "__esModule", { value: true });
538
+ var util_1 = require_util();
539
+ var node_1 = __importDefault(require_node());
540
+ var types = __importStar(require_types());
541
+ var Container = (
542
+ /** @class */
543
+ (function(_super) {
544
+ __extends(Container2, _super);
545
+ function Container2(opts) {
546
+ var _this = _super.call(this, opts) || this;
547
+ if (!_this.nodes) {
548
+ _this.nodes = [];
549
+ }
550
+ return _this;
551
+ }
552
+ Container2.prototype.append = function(selector) {
553
+ selector.parent = this;
554
+ this.nodes.push(selector);
555
+ return this;
556
+ };
557
+ Container2.prototype.prepend = function(selector) {
558
+ selector.parent = this;
559
+ this.nodes.unshift(selector);
560
+ for (var id in this.indexes) {
561
+ this.indexes[id]++;
562
+ }
563
+ return this;
564
+ };
565
+ Container2.prototype.at = function(index) {
566
+ return this.nodes[index];
567
+ };
568
+ Container2.prototype.index = function(child) {
569
+ if (typeof child === "number") {
570
+ return child;
571
+ }
572
+ return this.nodes.indexOf(child);
573
+ };
574
+ Object.defineProperty(Container2.prototype, "first", {
575
+ get: function() {
576
+ return this.at(0);
577
+ },
578
+ enumerable: false,
579
+ configurable: true
580
+ });
581
+ Object.defineProperty(Container2.prototype, "last", {
582
+ get: function() {
583
+ return this.at(this.length - 1);
584
+ },
585
+ enumerable: false,
586
+ configurable: true
587
+ });
588
+ Object.defineProperty(Container2.prototype, "length", {
589
+ get: function() {
590
+ return this.nodes.length;
591
+ },
592
+ enumerable: false,
593
+ configurable: true
594
+ });
595
+ Container2.prototype.removeChild = function(child) {
596
+ child = this.index(child);
597
+ this.at(child).parent = void 0;
598
+ this.nodes.splice(child, 1);
599
+ var index;
600
+ for (var id in this.indexes) {
601
+ index = this.indexes[id];
602
+ if (index >= child) {
603
+ this.indexes[id] = index - 1;
604
+ }
605
+ }
606
+ return this;
607
+ };
608
+ Container2.prototype.removeAll = function() {
609
+ var e_1, _a;
610
+ try {
611
+ for (var _b = __values(this.nodes), _c = _b.next(); !_c.done; _c = _b.next()) {
612
+ var node = _c.value;
613
+ node.parent = void 0;
614
+ }
615
+ } catch (e_1_1) {
616
+ e_1 = { error: e_1_1 };
617
+ } finally {
618
+ try {
619
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
620
+ } finally {
621
+ if (e_1) throw e_1.error;
622
+ }
623
+ }
624
+ this.nodes = [];
625
+ return this;
626
+ };
627
+ Container2.prototype.empty = function() {
628
+ return this.removeAll();
629
+ };
630
+ Container2.prototype.insertAfter = function(oldNode, newNode) {
631
+ var _a;
632
+ newNode.parent = this;
633
+ var oldIndex = this.index(oldNode);
634
+ var resetNode = [];
635
+ for (var i = 2; i < arguments.length; i++) {
636
+ resetNode.push(arguments[i]);
637
+ }
638
+ (_a = this.nodes).splice.apply(_a, __spreadArray([oldIndex + 1, 0, newNode], __read(resetNode), false));
639
+ newNode.parent = this;
640
+ var index;
641
+ for (var id in this.indexes) {
642
+ index = this.indexes[id];
643
+ if (oldIndex < index) {
644
+ this.indexes[id] = index + arguments.length - 1;
645
+ }
646
+ }
647
+ return this;
648
+ };
649
+ Container2.prototype.insertBefore = function(oldNode, newNode) {
650
+ var _a;
651
+ newNode.parent = this;
652
+ var oldIndex = this.index(oldNode);
653
+ var resetNode = [];
654
+ for (var i = 2; i < arguments.length; i++) {
655
+ resetNode.push(arguments[i]);
656
+ }
657
+ (_a = this.nodes).splice.apply(_a, __spreadArray([oldIndex, 0, newNode], __read(resetNode), false));
658
+ newNode.parent = this;
659
+ var index;
660
+ for (var id in this.indexes) {
661
+ index = this.indexes[id];
662
+ if (index >= oldIndex) {
663
+ this.indexes[id] = index + arguments.length - 1;
664
+ }
665
+ }
666
+ return this;
667
+ };
668
+ Container2.prototype._findChildAtPosition = function(line, col) {
669
+ var found = void 0;
670
+ this.each(function(node) {
671
+ if (node.atPosition) {
672
+ var foundChild = node.atPosition(line, col);
673
+ if (foundChild) {
674
+ found = foundChild;
675
+ return false;
676
+ }
677
+ } else if (node.isAtPosition(line, col)) {
678
+ found = node;
679
+ return false;
680
+ }
681
+ });
682
+ return found;
683
+ };
684
+ Container2.prototype.atPosition = function(line, col) {
685
+ if (this.isAtPosition(line, col)) {
686
+ return this._findChildAtPosition(line, col) || this;
687
+ } else {
688
+ return void 0;
689
+ }
690
+ };
691
+ Container2.prototype._inferEndPosition = function() {
692
+ if (this.last && this.last.source && this.last.source.end) {
693
+ this.source = this.source || {};
694
+ this.source.end = this.source.end || {};
695
+ Object.assign(this.source.end, this.last.source.end);
696
+ }
697
+ };
698
+ Container2.prototype.each = function(callback) {
699
+ if (!this.lastEach) {
700
+ this.lastEach = 0;
701
+ }
702
+ if (!this.indexes) {
703
+ this.indexes = {};
704
+ }
705
+ this.lastEach++;
706
+ var id = this.lastEach;
707
+ this.indexes[id] = 0;
708
+ if (!this.length) {
709
+ return void 0;
710
+ }
711
+ var index, result;
712
+ while (this.indexes[id] < this.length) {
713
+ index = this.indexes[id];
714
+ result = callback(this.at(index), index);
715
+ if (result === false) {
716
+ break;
717
+ }
718
+ this.indexes[id] += 1;
719
+ }
720
+ delete this.indexes[id];
721
+ if (result === false) {
722
+ return false;
723
+ }
724
+ };
725
+ Container2.prototype.walk = function(callback, depth) {
726
+ if (depth === void 0) {
727
+ depth = 0;
728
+ }
729
+ if (depth > util_1.MAX_NESTING_DEPTH) {
730
+ throw new Error("Cannot walk selector: nesting depth exceeds the maximum of ".concat(util_1.MAX_NESTING_DEPTH, "."));
731
+ }
732
+ return this.each(function(node, i) {
733
+ var result = callback(node, i);
734
+ if (result !== false && node.length) {
735
+ result = node.walk(callback, depth + 1);
736
+ }
737
+ if (result === false) {
738
+ return false;
739
+ }
740
+ });
741
+ };
742
+ Container2.prototype.walkAttributes = function(callback) {
743
+ var _this = this;
744
+ return this.walk(function(selector) {
745
+ if (selector.type === types.ATTRIBUTE) {
746
+ return callback.call(_this, selector);
747
+ }
748
+ });
749
+ };
750
+ Container2.prototype.walkClasses = function(callback) {
751
+ var _this = this;
752
+ return this.walk(function(selector) {
753
+ if (selector.type === types.CLASS) {
754
+ return callback.call(_this, selector);
755
+ }
756
+ });
757
+ };
758
+ Container2.prototype.walkCombinators = function(callback) {
759
+ var _this = this;
760
+ return this.walk(function(selector) {
761
+ if (selector.type === types.COMBINATOR) {
762
+ return callback.call(_this, selector);
763
+ }
764
+ });
765
+ };
766
+ Container2.prototype.walkComments = function(callback) {
767
+ var _this = this;
768
+ return this.walk(function(selector) {
769
+ if (selector.type === types.COMMENT) {
770
+ return callback.call(_this, selector);
771
+ }
772
+ });
773
+ };
774
+ Container2.prototype.walkIds = function(callback) {
775
+ var _this = this;
776
+ return this.walk(function(selector) {
777
+ if (selector.type === types.ID) {
778
+ return callback.call(_this, selector);
779
+ }
780
+ });
781
+ };
782
+ Container2.prototype.walkNesting = function(callback) {
783
+ var _this = this;
784
+ return this.walk(function(selector) {
785
+ if (selector.type === types.NESTING) {
786
+ return callback.call(_this, selector);
787
+ }
788
+ });
789
+ };
790
+ Container2.prototype.walkPseudos = function(callback) {
791
+ var _this = this;
792
+ return this.walk(function(selector) {
793
+ if (selector.type === types.PSEUDO) {
794
+ return callback.call(_this, selector);
795
+ }
796
+ });
797
+ };
798
+ Container2.prototype.walkTags = function(callback) {
799
+ var _this = this;
800
+ return this.walk(function(selector) {
801
+ if (selector.type === types.TAG) {
802
+ return callback.call(_this, selector);
803
+ }
804
+ });
805
+ };
806
+ Container2.prototype.walkUniversals = function(callback) {
807
+ var _this = this;
808
+ return this.walk(function(selector) {
809
+ if (selector.type === types.UNIVERSAL) {
810
+ return callback.call(_this, selector);
811
+ }
812
+ });
813
+ };
814
+ Container2.prototype.split = function(callback) {
815
+ var _this = this;
816
+ var current = [];
817
+ return this.reduce(function(memo, node, index) {
818
+ var split = callback.call(_this, node);
819
+ current.push(node);
820
+ if (split) {
821
+ memo.push(current);
822
+ current = [];
823
+ } else if (index === _this.length - 1) {
824
+ memo.push(current);
825
+ }
826
+ return memo;
827
+ }, []);
828
+ };
829
+ Container2.prototype.map = function(callback) {
830
+ return this.nodes.map(callback);
831
+ };
832
+ Container2.prototype.reduce = function(callback, memo) {
833
+ return this.nodes.reduce(callback, memo);
834
+ };
835
+ Container2.prototype.every = function(callback) {
836
+ return this.nodes.every(callback);
837
+ };
838
+ Container2.prototype.some = function(callback) {
839
+ return this.nodes.some(callback);
840
+ };
841
+ Container2.prototype.filter = function(callback) {
842
+ return this.nodes.filter(callback);
843
+ };
844
+ Container2.prototype.sort = function(callback) {
845
+ return this.nodes.sort(callback);
846
+ };
847
+ Container2.prototype.toString = function(options) {
848
+ if (options === void 0) {
849
+ options = {};
850
+ }
851
+ return this._stringify(options, 0, (0, util_1.resolveMaxNestingDepth)(options.maxNestingDepth));
852
+ };
853
+ Container2.prototype._stringify = function(options, depth, max) {
854
+ var _this = this;
855
+ return this.map(function(child) {
856
+ return _this._stringifyChild(child, options, depth, max);
857
+ }).join("");
858
+ };
859
+ Container2.prototype._stringifyChild = function(child, options, depth, max) {
860
+ return typeof child._stringify === "function" ? child._stringify(options, depth, max) : String(child);
861
+ };
862
+ return Container2;
863
+ })(node_1.default)
864
+ );
865
+ exports.default = Container;
866
+ }
867
+ });
868
+
869
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/root.js
870
+ var require_root = __commonJS({
871
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/root.js"(exports) {
872
+ "use strict";
873
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
874
+ var extendStatics = function(d, b) {
875
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
876
+ d2.__proto__ = b2;
877
+ } || function(d2, b2) {
878
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
879
+ };
880
+ return extendStatics(d, b);
881
+ };
882
+ return function(d, b) {
883
+ if (typeof b !== "function" && b !== null)
884
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
885
+ extendStatics(d, b);
886
+ function __() {
887
+ this.constructor = d;
888
+ }
889
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
890
+ };
891
+ })();
892
+ var __importDefault = exports && exports.__importDefault || function(mod) {
893
+ return mod && mod.__esModule ? mod : { "default": mod };
894
+ };
895
+ Object.defineProperty(exports, "__esModule", { value: true });
896
+ var container_1 = __importDefault(require_container());
897
+ var types_1 = require_types();
898
+ var Root = (
899
+ /** @class */
900
+ (function(_super) {
901
+ __extends(Root2, _super);
902
+ function Root2(opts) {
903
+ var _this = _super.call(this, opts) || this;
904
+ _this.type = types_1.ROOT;
905
+ return _this;
906
+ }
907
+ Root2.prototype._stringify = function(options, depth, max) {
908
+ var _this = this;
909
+ var str = this.reduce(function(memo, selector) {
910
+ memo.push(_this._stringifyChild(selector, options, depth, max));
911
+ return memo;
912
+ }, []).join(",");
913
+ return this.trailingComma ? str + "," : str;
914
+ };
915
+ Root2.prototype.error = function(message, options) {
916
+ if (this._error) {
917
+ return this._error(message, options);
918
+ } else {
919
+ return new Error(message);
920
+ }
921
+ };
922
+ Object.defineProperty(Root2.prototype, "errorGenerator", {
923
+ set: function(handler) {
924
+ this._error = handler;
925
+ },
926
+ enumerable: false,
927
+ configurable: true
928
+ });
929
+ return Root2;
930
+ })(container_1.default)
931
+ );
932
+ exports.default = Root;
933
+ }
934
+ });
935
+
936
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/selector.js
937
+ var require_selector = __commonJS({
938
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/selector.js"(exports) {
939
+ "use strict";
940
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
941
+ var extendStatics = function(d, b) {
942
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
943
+ d2.__proto__ = b2;
944
+ } || function(d2, b2) {
945
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
946
+ };
947
+ return extendStatics(d, b);
948
+ };
949
+ return function(d, b) {
950
+ if (typeof b !== "function" && b !== null)
951
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
952
+ extendStatics(d, b);
953
+ function __() {
954
+ this.constructor = d;
955
+ }
956
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
957
+ };
958
+ })();
959
+ var __importDefault = exports && exports.__importDefault || function(mod) {
960
+ return mod && mod.__esModule ? mod : { "default": mod };
961
+ };
962
+ Object.defineProperty(exports, "__esModule", { value: true });
963
+ var container_1 = __importDefault(require_container());
964
+ var types_1 = require_types();
965
+ var Selector = (
966
+ /** @class */
967
+ (function(_super) {
968
+ __extends(Selector2, _super);
969
+ function Selector2(opts) {
970
+ var _this = _super.call(this, opts) || this;
971
+ _this.type = types_1.SELECTOR;
972
+ return _this;
973
+ }
974
+ return Selector2;
975
+ })(container_1.default)
976
+ );
977
+ exports.default = Selector;
978
+ }
979
+ });
980
+
981
+ // ../../node_modules/.bun/cssesc@3.0.0/node_modules/cssesc/cssesc.js
982
+ var require_cssesc = __commonJS({
983
+ "../../node_modules/.bun/cssesc@3.0.0/node_modules/cssesc/cssesc.js"(exports, module) {
984
+ "use strict";
985
+ var object = {};
986
+ var hasOwnProperty = object.hasOwnProperty;
987
+ var merge = function merge2(options, defaults) {
988
+ if (!options) {
989
+ return defaults;
990
+ }
991
+ var result = {};
992
+ for (var key in defaults) {
993
+ result[key] = hasOwnProperty.call(options, key) ? options[key] : defaults[key];
994
+ }
995
+ return result;
996
+ };
997
+ var regexAnySingleEscape = /[ -,\.\/:-@\[-\^`\{-~]/;
998
+ var regexSingleEscape = /[ -,\.\/:-@\[\]\^`\{-~]/;
999
+ var regexExcessiveSpaces = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;
1000
+ var cssesc = function cssesc2(string, options) {
1001
+ options = merge(options, cssesc2.options);
1002
+ if (options.quotes != "single" && options.quotes != "double") {
1003
+ options.quotes = "single";
1004
+ }
1005
+ var quote = options.quotes == "double" ? '"' : "'";
1006
+ var isIdentifier = options.isIdentifier;
1007
+ var firstChar = string.charAt(0);
1008
+ var output = "";
1009
+ var counter = 0;
1010
+ var length = string.length;
1011
+ while (counter < length) {
1012
+ var character = string.charAt(counter++);
1013
+ var codePoint = character.charCodeAt();
1014
+ var value = void 0;
1015
+ if (codePoint < 32 || codePoint > 126) {
1016
+ if (codePoint >= 55296 && codePoint <= 56319 && counter < length) {
1017
+ var extra = string.charCodeAt(counter++);
1018
+ if ((extra & 64512) == 56320) {
1019
+ codePoint = ((codePoint & 1023) << 10) + (extra & 1023) + 65536;
1020
+ } else {
1021
+ counter--;
1022
+ }
1023
+ }
1024
+ value = "\\" + codePoint.toString(16).toUpperCase() + " ";
1025
+ } else {
1026
+ if (options.escapeEverything) {
1027
+ if (regexAnySingleEscape.test(character)) {
1028
+ value = "\\" + character;
1029
+ } else {
1030
+ value = "\\" + codePoint.toString(16).toUpperCase() + " ";
1031
+ }
1032
+ } else if (/[\t\n\f\r\x0B]/.test(character)) {
1033
+ value = "\\" + codePoint.toString(16).toUpperCase() + " ";
1034
+ } else if (character == "\\" || !isIdentifier && (character == '"' && quote == character || character == "'" && quote == character) || isIdentifier && regexSingleEscape.test(character)) {
1035
+ value = "\\" + character;
1036
+ } else {
1037
+ value = character;
1038
+ }
1039
+ }
1040
+ output += value;
1041
+ }
1042
+ if (isIdentifier) {
1043
+ if (/^-[-\d]/.test(output)) {
1044
+ output = "\\-" + output.slice(1);
1045
+ } else if (/\d/.test(firstChar)) {
1046
+ output = "\\3" + firstChar + " " + output.slice(1);
1047
+ }
1048
+ }
1049
+ output = output.replace(regexExcessiveSpaces, function($0, $1, $2) {
1050
+ if ($1 && $1.length % 2) {
1051
+ return $0;
1052
+ }
1053
+ return ($1 || "") + $2;
1054
+ });
1055
+ if (!isIdentifier && options.wrap) {
1056
+ return quote + output + quote;
1057
+ }
1058
+ return output;
1059
+ };
1060
+ cssesc.options = {
1061
+ "escapeEverything": false,
1062
+ "isIdentifier": false,
1063
+ "quotes": "single",
1064
+ "wrap": false
1065
+ };
1066
+ cssesc.version = "3.0.0";
1067
+ module.exports = cssesc;
1068
+ }
1069
+ });
1070
+
1071
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/className.js
1072
+ var require_className = __commonJS({
1073
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/className.js"(exports) {
1074
+ "use strict";
1075
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
1076
+ var extendStatics = function(d, b) {
1077
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1078
+ d2.__proto__ = b2;
1079
+ } || function(d2, b2) {
1080
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
1081
+ };
1082
+ return extendStatics(d, b);
1083
+ };
1084
+ return function(d, b) {
1085
+ if (typeof b !== "function" && b !== null)
1086
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1087
+ extendStatics(d, b);
1088
+ function __() {
1089
+ this.constructor = d;
1090
+ }
1091
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1092
+ };
1093
+ })();
1094
+ var __importDefault = exports && exports.__importDefault || function(mod) {
1095
+ return mod && mod.__esModule ? mod : { "default": mod };
1096
+ };
1097
+ Object.defineProperty(exports, "__esModule", { value: true });
1098
+ var cssesc_1 = __importDefault(require_cssesc());
1099
+ var util_1 = require_util();
1100
+ var node_1 = __importDefault(require_node());
1101
+ var types_1 = require_types();
1102
+ var ClassName = (
1103
+ /** @class */
1104
+ (function(_super) {
1105
+ __extends(ClassName2, _super);
1106
+ function ClassName2(opts) {
1107
+ var _this = _super.call(this, opts) || this;
1108
+ _this.type = types_1.CLASS;
1109
+ _this._constructed = true;
1110
+ return _this;
1111
+ }
1112
+ Object.defineProperty(ClassName2.prototype, "value", {
1113
+ get: function() {
1114
+ return this._value;
1115
+ },
1116
+ set: function(v) {
1117
+ if (this._constructed) {
1118
+ var escaped = (0, cssesc_1.default)(v, { isIdentifier: true });
1119
+ if (escaped !== v) {
1120
+ (0, util_1.ensureObject)(this, "raws");
1121
+ this.raws.value = escaped;
1122
+ } else if (this.raws) {
1123
+ delete this.raws.value;
1124
+ }
1125
+ }
1126
+ this._value = v;
1127
+ },
1128
+ enumerable: false,
1129
+ configurable: true
1130
+ });
1131
+ ClassName2.prototype.valueToString = function() {
1132
+ return "." + _super.prototype.valueToString.call(this);
1133
+ };
1134
+ return ClassName2;
1135
+ })(node_1.default)
1136
+ );
1137
+ exports.default = ClassName;
1138
+ }
1139
+ });
1140
+
1141
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/comment.js
1142
+ var require_comment = __commonJS({
1143
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/comment.js"(exports) {
1144
+ "use strict";
1145
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
1146
+ var extendStatics = function(d, b) {
1147
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1148
+ d2.__proto__ = b2;
1149
+ } || function(d2, b2) {
1150
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
1151
+ };
1152
+ return extendStatics(d, b);
1153
+ };
1154
+ return function(d, b) {
1155
+ if (typeof b !== "function" && b !== null)
1156
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1157
+ extendStatics(d, b);
1158
+ function __() {
1159
+ this.constructor = d;
1160
+ }
1161
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1162
+ };
1163
+ })();
1164
+ var __importDefault = exports && exports.__importDefault || function(mod) {
1165
+ return mod && mod.__esModule ? mod : { "default": mod };
1166
+ };
1167
+ Object.defineProperty(exports, "__esModule", { value: true });
1168
+ var node_1 = __importDefault(require_node());
1169
+ var types_1 = require_types();
1170
+ var Comment = (
1171
+ /** @class */
1172
+ (function(_super) {
1173
+ __extends(Comment2, _super);
1174
+ function Comment2(opts) {
1175
+ var _this = _super.call(this, opts) || this;
1176
+ _this.type = types_1.COMMENT;
1177
+ return _this;
1178
+ }
1179
+ return Comment2;
1180
+ })(node_1.default)
1181
+ );
1182
+ exports.default = Comment;
1183
+ }
1184
+ });
1185
+
1186
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/id.js
1187
+ var require_id = __commonJS({
1188
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/id.js"(exports) {
1189
+ "use strict";
1190
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
1191
+ var extendStatics = function(d, b) {
1192
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1193
+ d2.__proto__ = b2;
1194
+ } || function(d2, b2) {
1195
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
1196
+ };
1197
+ return extendStatics(d, b);
1198
+ };
1199
+ return function(d, b) {
1200
+ if (typeof b !== "function" && b !== null)
1201
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1202
+ extendStatics(d, b);
1203
+ function __() {
1204
+ this.constructor = d;
1205
+ }
1206
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1207
+ };
1208
+ })();
1209
+ var __importDefault = exports && exports.__importDefault || function(mod) {
1210
+ return mod && mod.__esModule ? mod : { "default": mod };
1211
+ };
1212
+ Object.defineProperty(exports, "__esModule", { value: true });
1213
+ var node_1 = __importDefault(require_node());
1214
+ var types_1 = require_types();
1215
+ var ID = (
1216
+ /** @class */
1217
+ (function(_super) {
1218
+ __extends(ID2, _super);
1219
+ function ID2(opts) {
1220
+ var _this = _super.call(this, opts) || this;
1221
+ _this.type = types_1.ID;
1222
+ return _this;
1223
+ }
1224
+ ID2.prototype.valueToString = function() {
1225
+ return "#" + _super.prototype.valueToString.call(this);
1226
+ };
1227
+ return ID2;
1228
+ })(node_1.default)
1229
+ );
1230
+ exports.default = ID;
1231
+ }
1232
+ });
1233
+
1234
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/namespace.js
1235
+ var require_namespace = __commonJS({
1236
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/namespace.js"(exports) {
1237
+ "use strict";
1238
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
1239
+ var extendStatics = function(d, b) {
1240
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1241
+ d2.__proto__ = b2;
1242
+ } || function(d2, b2) {
1243
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
1244
+ };
1245
+ return extendStatics(d, b);
1246
+ };
1247
+ return function(d, b) {
1248
+ if (typeof b !== "function" && b !== null)
1249
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1250
+ extendStatics(d, b);
1251
+ function __() {
1252
+ this.constructor = d;
1253
+ }
1254
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1255
+ };
1256
+ })();
1257
+ var __importDefault = exports && exports.__importDefault || function(mod) {
1258
+ return mod && mod.__esModule ? mod : { "default": mod };
1259
+ };
1260
+ Object.defineProperty(exports, "__esModule", { value: true });
1261
+ var cssesc_1 = __importDefault(require_cssesc());
1262
+ var util_1 = require_util();
1263
+ var node_1 = __importDefault(require_node());
1264
+ var Namespace = (
1265
+ /** @class */
1266
+ (function(_super) {
1267
+ __extends(Namespace2, _super);
1268
+ function Namespace2() {
1269
+ return _super !== null && _super.apply(this, arguments) || this;
1270
+ }
1271
+ Object.defineProperty(Namespace2.prototype, "namespace", {
1272
+ get: function() {
1273
+ return this._namespace;
1274
+ },
1275
+ set: function(namespace) {
1276
+ if (namespace === true || namespace === "*" || namespace === "&") {
1277
+ this._namespace = namespace;
1278
+ if (this.raws) {
1279
+ delete this.raws.namespace;
1280
+ }
1281
+ return;
1282
+ }
1283
+ var escaped = (0, cssesc_1.default)(namespace, { isIdentifier: true });
1284
+ this._namespace = namespace;
1285
+ if (escaped !== namespace) {
1286
+ (0, util_1.ensureObject)(this, "raws");
1287
+ this.raws.namespace = escaped;
1288
+ } else if (this.raws) {
1289
+ delete this.raws.namespace;
1290
+ }
1291
+ },
1292
+ enumerable: false,
1293
+ configurable: true
1294
+ });
1295
+ Object.defineProperty(Namespace2.prototype, "ns", {
1296
+ get: function() {
1297
+ return this._namespace;
1298
+ },
1299
+ set: function(namespace) {
1300
+ this.namespace = namespace;
1301
+ },
1302
+ enumerable: false,
1303
+ configurable: true
1304
+ });
1305
+ Object.defineProperty(Namespace2.prototype, "namespaceString", {
1306
+ get: function() {
1307
+ if (this.namespace) {
1308
+ var ns = this.stringifyProperty("namespace");
1309
+ if (ns === true) {
1310
+ return "";
1311
+ } else {
1312
+ return ns;
1313
+ }
1314
+ } else {
1315
+ return "";
1316
+ }
1317
+ },
1318
+ enumerable: false,
1319
+ configurable: true
1320
+ });
1321
+ Namespace2.prototype.qualifiedName = function(value) {
1322
+ if (this.namespace) {
1323
+ return "".concat(this.namespaceString, "|").concat(value);
1324
+ } else {
1325
+ return value;
1326
+ }
1327
+ };
1328
+ Namespace2.prototype.valueToString = function() {
1329
+ return this.qualifiedName(_super.prototype.valueToString.call(this));
1330
+ };
1331
+ return Namespace2;
1332
+ })(node_1.default)
1333
+ );
1334
+ exports.default = Namespace;
1335
+ }
1336
+ });
1337
+
1338
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/tag.js
1339
+ var require_tag = __commonJS({
1340
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/tag.js"(exports) {
1341
+ "use strict";
1342
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
1343
+ var extendStatics = function(d, b) {
1344
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1345
+ d2.__proto__ = b2;
1346
+ } || function(d2, b2) {
1347
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
1348
+ };
1349
+ return extendStatics(d, b);
1350
+ };
1351
+ return function(d, b) {
1352
+ if (typeof b !== "function" && b !== null)
1353
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1354
+ extendStatics(d, b);
1355
+ function __() {
1356
+ this.constructor = d;
1357
+ }
1358
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1359
+ };
1360
+ })();
1361
+ var __importDefault = exports && exports.__importDefault || function(mod) {
1362
+ return mod && mod.__esModule ? mod : { "default": mod };
1363
+ };
1364
+ Object.defineProperty(exports, "__esModule", { value: true });
1365
+ var namespace_1 = __importDefault(require_namespace());
1366
+ var types_1 = require_types();
1367
+ var Tag = (
1368
+ /** @class */
1369
+ (function(_super) {
1370
+ __extends(Tag2, _super);
1371
+ function Tag2(opts) {
1372
+ var _this = _super.call(this, opts) || this;
1373
+ _this.type = types_1.TAG;
1374
+ return _this;
1375
+ }
1376
+ return Tag2;
1377
+ })(namespace_1.default)
1378
+ );
1379
+ exports.default = Tag;
1380
+ }
1381
+ });
1382
+
1383
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/string.js
1384
+ var require_string = __commonJS({
1385
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/string.js"(exports) {
1386
+ "use strict";
1387
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
1388
+ var extendStatics = function(d, b) {
1389
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1390
+ d2.__proto__ = b2;
1391
+ } || function(d2, b2) {
1392
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
1393
+ };
1394
+ return extendStatics(d, b);
1395
+ };
1396
+ return function(d, b) {
1397
+ if (typeof b !== "function" && b !== null)
1398
+ throw new TypeError("Class extends value " + String2(b) + " is not a constructor or null");
1399
+ extendStatics(d, b);
1400
+ function __() {
1401
+ this.constructor = d;
1402
+ }
1403
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1404
+ };
1405
+ })();
1406
+ var __importDefault = exports && exports.__importDefault || function(mod) {
1407
+ return mod && mod.__esModule ? mod : { "default": mod };
1408
+ };
1409
+ Object.defineProperty(exports, "__esModule", { value: true });
1410
+ var node_1 = __importDefault(require_node());
1411
+ var types_1 = require_types();
1412
+ var String2 = (
1413
+ /** @class */
1414
+ (function(_super) {
1415
+ __extends(String3, _super);
1416
+ function String3(opts) {
1417
+ var _this = _super.call(this, opts) || this;
1418
+ _this.type = types_1.STRING;
1419
+ return _this;
1420
+ }
1421
+ return String3;
1422
+ })(node_1.default)
1423
+ );
1424
+ exports.default = String2;
1425
+ }
1426
+ });
1427
+
1428
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/pseudo.js
1429
+ var require_pseudo = __commonJS({
1430
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/pseudo.js"(exports) {
1431
+ "use strict";
1432
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
1433
+ var extendStatics = function(d, b) {
1434
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1435
+ d2.__proto__ = b2;
1436
+ } || function(d2, b2) {
1437
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
1438
+ };
1439
+ return extendStatics(d, b);
1440
+ };
1441
+ return function(d, b) {
1442
+ if (typeof b !== "function" && b !== null)
1443
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1444
+ extendStatics(d, b);
1445
+ function __() {
1446
+ this.constructor = d;
1447
+ }
1448
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1449
+ };
1450
+ })();
1451
+ var __importDefault = exports && exports.__importDefault || function(mod) {
1452
+ return mod && mod.__esModule ? mod : { "default": mod };
1453
+ };
1454
+ Object.defineProperty(exports, "__esModule", { value: true });
1455
+ var container_1 = __importDefault(require_container());
1456
+ var types_1 = require_types();
1457
+ var Pseudo = (
1458
+ /** @class */
1459
+ (function(_super) {
1460
+ __extends(Pseudo2, _super);
1461
+ function Pseudo2(opts) {
1462
+ var _this = _super.call(this, opts) || this;
1463
+ _this.type = types_1.PSEUDO;
1464
+ return _this;
1465
+ }
1466
+ Pseudo2.prototype._stringify = function(options, depth, max) {
1467
+ var _this = this;
1468
+ if (depth >= max) {
1469
+ throw new Error("Cannot serialize selector: nesting depth exceeds the maximum of ".concat(max, "."));
1470
+ }
1471
+ var params = this.length ? "(" + this.map(function(child) {
1472
+ return _this._stringifyChild(child, options, depth + 1, max);
1473
+ }).join(",") + ")" : "";
1474
+ return [this.rawSpaceBefore, this.stringifyProperty("value"), params, this.rawSpaceAfter].join("");
1475
+ };
1476
+ return Pseudo2;
1477
+ })(container_1.default)
1478
+ );
1479
+ exports.default = Pseudo;
1480
+ }
1481
+ });
1482
+
1483
+ // ../../node_modules/.bun/util-deprecate@1.0.2/node_modules/util-deprecate/node.js
1484
+ var require_node2 = __commonJS({
1485
+ "../../node_modules/.bun/util-deprecate@1.0.2/node_modules/util-deprecate/node.js"(exports, module) {
1486
+ "use strict";
1487
+ module.exports = __require("util").deprecate;
1488
+ }
1489
+ });
1490
+
1491
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/attribute.js
1492
+ var require_attribute = __commonJS({
1493
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/attribute.js"(exports) {
1494
+ "use strict";
1495
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
1496
+ var extendStatics = function(d, b) {
1497
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1498
+ d2.__proto__ = b2;
1499
+ } || function(d2, b2) {
1500
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
1501
+ };
1502
+ return extendStatics(d, b);
1503
+ };
1504
+ return function(d, b) {
1505
+ if (typeof b !== "function" && b !== null)
1506
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1507
+ extendStatics(d, b);
1508
+ function __() {
1509
+ this.constructor = d;
1510
+ }
1511
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1512
+ };
1513
+ })();
1514
+ var __importDefault = exports && exports.__importDefault || function(mod) {
1515
+ return mod && mod.__esModule ? mod : { "default": mod };
1516
+ };
1517
+ var _a;
1518
+ Object.defineProperty(exports, "__esModule", { value: true });
1519
+ exports.unescapeValue = unescapeValue;
1520
+ var cssesc_1 = __importDefault(require_cssesc());
1521
+ var unesc_1 = __importDefault(require_unesc());
1522
+ var namespace_1 = __importDefault(require_namespace());
1523
+ var types_1 = require_types();
1524
+ var deprecate = require_node2();
1525
+ var WRAPPED_IN_QUOTES = /^('|")([^]*)\1$/;
1526
+ var warnOfDeprecatedValueAssignment = deprecate(function() {
1527
+ }, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead.");
1528
+ var warnOfDeprecatedQuotedAssignment = deprecate(function() {
1529
+ }, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.");
1530
+ var warnOfDeprecatedConstructor = deprecate(function() {
1531
+ }, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");
1532
+ function unescapeValue(value) {
1533
+ var deprecatedUsage = false;
1534
+ var quoteMark = null;
1535
+ var unescaped = value;
1536
+ var m = unescaped.match(WRAPPED_IN_QUOTES);
1537
+ if (m) {
1538
+ quoteMark = m[1];
1539
+ unescaped = m[2];
1540
+ }
1541
+ unescaped = (0, unesc_1.default)(unescaped);
1542
+ if (unescaped !== value) {
1543
+ deprecatedUsage = true;
1544
+ }
1545
+ return {
1546
+ deprecatedUsage,
1547
+ unescaped,
1548
+ quoteMark
1549
+ };
1550
+ }
1551
+ function handleDeprecatedContructorOpts(opts) {
1552
+ if (opts.quoteMark !== void 0) {
1553
+ return opts;
1554
+ }
1555
+ if (opts.value === void 0) {
1556
+ return opts;
1557
+ }
1558
+ warnOfDeprecatedConstructor();
1559
+ var _a2 = unescapeValue(opts.value), quoteMark = _a2.quoteMark, unescaped = _a2.unescaped;
1560
+ if (!opts.raws) {
1561
+ opts.raws = {};
1562
+ }
1563
+ if (opts.raws.value === void 0) {
1564
+ opts.raws.value = opts.value;
1565
+ }
1566
+ opts.value = unescaped;
1567
+ opts.quoteMark = quoteMark;
1568
+ return opts;
1569
+ }
1570
+ var Attribute = (
1571
+ /** @class */
1572
+ (function(_super) {
1573
+ __extends(Attribute2, _super);
1574
+ function Attribute2(opts) {
1575
+ if (opts === void 0) {
1576
+ opts = {};
1577
+ }
1578
+ var _this = _super.call(this, handleDeprecatedContructorOpts(opts)) || this;
1579
+ _this.type = types_1.ATTRIBUTE;
1580
+ _this.raws = _this.raws || {};
1581
+ Object.defineProperty(_this.raws, "unquoted", {
1582
+ get: deprecate(function() {
1583
+ return _this.value;
1584
+ }, "attr.raws.unquoted is deprecated. Call attr.value instead."),
1585
+ set: deprecate(function() {
1586
+ return _this.value;
1587
+ }, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")
1588
+ });
1589
+ _this._constructed = true;
1590
+ return _this;
1591
+ }
1592
+ Attribute2.prototype.getQuotedValue = function(options) {
1593
+ if (options === void 0) {
1594
+ options = {};
1595
+ }
1596
+ var quoteMark = this._determineQuoteMark(options);
1597
+ var cssescopts = CSSESC_QUOTE_OPTIONS[quoteMark];
1598
+ var escaped = (0, cssesc_1.default)(this._value, cssescopts);
1599
+ return escaped;
1600
+ };
1601
+ Attribute2.prototype._determineQuoteMark = function(options) {
1602
+ return options.smart ? this.smartQuoteMark(options) : this.preferredQuoteMark(options);
1603
+ };
1604
+ Attribute2.prototype.setValue = function(value, options) {
1605
+ if (options === void 0) {
1606
+ options = {};
1607
+ }
1608
+ this._value = value;
1609
+ this._quoteMark = this._determineQuoteMark(options);
1610
+ this._syncRawValue();
1611
+ };
1612
+ Attribute2.prototype.smartQuoteMark = function(options) {
1613
+ var v = this.value;
1614
+ var numSingleQuotes = v.replace(/[^']/g, "").length;
1615
+ var numDoubleQuotes = v.replace(/[^"]/g, "").length;
1616
+ if (numSingleQuotes + numDoubleQuotes === 0) {
1617
+ var escaped = (0, cssesc_1.default)(v, { isIdentifier: true });
1618
+ if (escaped === v) {
1619
+ return Attribute2.NO_QUOTE;
1620
+ } else {
1621
+ var pref = this.preferredQuoteMark(options);
1622
+ if (pref === Attribute2.NO_QUOTE) {
1623
+ var quote = this.quoteMark || options.quoteMark || Attribute2.DOUBLE_QUOTE;
1624
+ var opts = CSSESC_QUOTE_OPTIONS[quote];
1625
+ var quoteValue = (0, cssesc_1.default)(v, opts);
1626
+ if (quoteValue.length < escaped.length) {
1627
+ return quote;
1628
+ }
1629
+ }
1630
+ return pref;
1631
+ }
1632
+ } else if (numDoubleQuotes === numSingleQuotes) {
1633
+ return this.preferredQuoteMark(options);
1634
+ } else if (numDoubleQuotes < numSingleQuotes) {
1635
+ return Attribute2.DOUBLE_QUOTE;
1636
+ } else {
1637
+ return Attribute2.SINGLE_QUOTE;
1638
+ }
1639
+ };
1640
+ Attribute2.prototype.preferredQuoteMark = function(options) {
1641
+ var quoteMark = options.preferCurrentQuoteMark ? this.quoteMark : options.quoteMark;
1642
+ if (quoteMark === void 0) {
1643
+ quoteMark = options.preferCurrentQuoteMark ? options.quoteMark : this.quoteMark;
1644
+ }
1645
+ if (quoteMark === void 0) {
1646
+ quoteMark = Attribute2.DOUBLE_QUOTE;
1647
+ }
1648
+ return quoteMark;
1649
+ };
1650
+ Object.defineProperty(Attribute2.prototype, "quoted", {
1651
+ get: function() {
1652
+ var qm = this.quoteMark;
1653
+ return qm === "'" || qm === '"';
1654
+ },
1655
+ set: function(value) {
1656
+ warnOfDeprecatedQuotedAssignment();
1657
+ },
1658
+ enumerable: false,
1659
+ configurable: true
1660
+ });
1661
+ Object.defineProperty(Attribute2.prototype, "quoteMark", {
1662
+ /**
1663
+ * returns a single (`'`) or double (`"`) quote character if the value is quoted.
1664
+ * returns `null` if the value is not quoted.
1665
+ * returns `undefined` if the quotation state is unknown (this can happen when
1666
+ * the attribute is constructed without specifying a quote mark.)
1667
+ */
1668
+ get: function() {
1669
+ return this._quoteMark;
1670
+ },
1671
+ /**
1672
+ * Set the quote mark to be used by this attribute's value.
1673
+ * If the quote mark changes, the raw (escaped) value at `attr.raws.value` of the attribute
1674
+ * value is updated accordingly.
1675
+ *
1676
+ * @param {"'" | '"' | null} quoteMark The quote mark or `null` if the value should be unquoted.
1677
+ */
1678
+ set: function(quoteMark) {
1679
+ if (!this._constructed) {
1680
+ this._quoteMark = quoteMark;
1681
+ return;
1682
+ }
1683
+ if (this._quoteMark !== quoteMark) {
1684
+ this._quoteMark = quoteMark;
1685
+ this._syncRawValue();
1686
+ }
1687
+ },
1688
+ enumerable: false,
1689
+ configurable: true
1690
+ });
1691
+ Attribute2.prototype._syncRawValue = function() {
1692
+ var rawValue = (0, cssesc_1.default)(this._value, CSSESC_QUOTE_OPTIONS[this.quoteMark]);
1693
+ if (rawValue === this._value) {
1694
+ if (this.raws) {
1695
+ delete this.raws.value;
1696
+ }
1697
+ } else {
1698
+ this.raws.value = rawValue;
1699
+ }
1700
+ };
1701
+ Object.defineProperty(Attribute2.prototype, "qualifiedAttribute", {
1702
+ get: function() {
1703
+ return this.qualifiedName(this.raws.attribute || this.attribute);
1704
+ },
1705
+ enumerable: false,
1706
+ configurable: true
1707
+ });
1708
+ Object.defineProperty(Attribute2.prototype, "insensitiveFlag", {
1709
+ get: function() {
1710
+ return this.insensitive ? "i" : "";
1711
+ },
1712
+ enumerable: false,
1713
+ configurable: true
1714
+ });
1715
+ Object.defineProperty(Attribute2.prototype, "value", {
1716
+ get: function() {
1717
+ return this._value;
1718
+ },
1719
+ /**
1720
+ * Before 3.0, the value had to be set to an escaped value including any wrapped
1721
+ * quote marks. In 3.0, the semantics of `Attribute.value` changed so that the value
1722
+ * is unescaped during parsing and any quote marks are removed.
1723
+ *
1724
+ * Because the ambiguity of this semantic change, if you set `attr.value = newValue`,
1725
+ * a deprecation warning is raised when the new value contains any characters that would
1726
+ * require escaping (including if it contains wrapped quotes).
1727
+ *
1728
+ * Instead, you should call `attr.setValue(newValue, opts)` and pass options that describe
1729
+ * how the new value is quoted.
1730
+ */
1731
+ set: function(v) {
1732
+ if (this._constructed) {
1733
+ var _a2 = unescapeValue(v), deprecatedUsage = _a2.deprecatedUsage, unescaped = _a2.unescaped, quoteMark = _a2.quoteMark;
1734
+ if (deprecatedUsage) {
1735
+ warnOfDeprecatedValueAssignment();
1736
+ }
1737
+ if (unescaped === this._value && quoteMark === this._quoteMark) {
1738
+ return;
1739
+ }
1740
+ this._value = unescaped;
1741
+ this._quoteMark = quoteMark;
1742
+ this._syncRawValue();
1743
+ } else {
1744
+ this._value = v;
1745
+ }
1746
+ },
1747
+ enumerable: false,
1748
+ configurable: true
1749
+ });
1750
+ Object.defineProperty(Attribute2.prototype, "insensitive", {
1751
+ get: function() {
1752
+ return this._insensitive;
1753
+ },
1754
+ /**
1755
+ * Set the case insensitive flag.
1756
+ * If the case insensitive flag changes, the raw (escaped) value at `attr.raws.insensitiveFlag`
1757
+ * of the attribute is updated accordingly.
1758
+ *
1759
+ * @param {true | false} insensitive true if the attribute should match case-insensitively.
1760
+ */
1761
+ set: function(insensitive) {
1762
+ if (!insensitive) {
1763
+ this._insensitive = false;
1764
+ if (this.raws && (this.raws.insensitiveFlag === "I" || this.raws.insensitiveFlag === "i")) {
1765
+ this.raws.insensitiveFlag = void 0;
1766
+ }
1767
+ }
1768
+ this._insensitive = insensitive;
1769
+ },
1770
+ enumerable: false,
1771
+ configurable: true
1772
+ });
1773
+ Object.defineProperty(Attribute2.prototype, "attribute", {
1774
+ get: function() {
1775
+ return this._attribute;
1776
+ },
1777
+ set: function(name) {
1778
+ this._handleEscapes("attribute", name);
1779
+ this._attribute = name;
1780
+ },
1781
+ enumerable: false,
1782
+ configurable: true
1783
+ });
1784
+ Attribute2.prototype._handleEscapes = function(prop, value) {
1785
+ if (this._constructed) {
1786
+ var escaped = (0, cssesc_1.default)(value, { isIdentifier: true });
1787
+ if (escaped !== value) {
1788
+ this.raws[prop] = escaped;
1789
+ } else {
1790
+ delete this.raws[prop];
1791
+ }
1792
+ }
1793
+ };
1794
+ Attribute2.prototype._spacesFor = function(name) {
1795
+ var attrSpaces = { before: "", after: "" };
1796
+ var spaces = this.spaces[name] || {};
1797
+ var rawSpaces = this.raws.spaces && this.raws.spaces[name] || {};
1798
+ return Object.assign(attrSpaces, spaces, rawSpaces);
1799
+ };
1800
+ Attribute2.prototype._stringFor = function(name, spaceName, concat) {
1801
+ if (spaceName === void 0) {
1802
+ spaceName = name;
1803
+ }
1804
+ if (concat === void 0) {
1805
+ concat = defaultAttrConcat;
1806
+ }
1807
+ var attrSpaces = this._spacesFor(spaceName);
1808
+ return concat(this.stringifyProperty(name), attrSpaces);
1809
+ };
1810
+ Attribute2.prototype.offsetOf = function(name) {
1811
+ var count = 1;
1812
+ var attributeSpaces = this._spacesFor("attribute");
1813
+ count += attributeSpaces.before.length;
1814
+ if (name === "namespace" || name === "ns") {
1815
+ return this.namespace ? count : -1;
1816
+ }
1817
+ if (name === "attributeNS") {
1818
+ return count;
1819
+ }
1820
+ count += this.namespaceString.length;
1821
+ if (this.namespace) {
1822
+ count += 1;
1823
+ }
1824
+ if (name === "attribute") {
1825
+ return count;
1826
+ }
1827
+ count += this.stringifyProperty("attribute").length;
1828
+ count += attributeSpaces.after.length;
1829
+ var operatorSpaces = this._spacesFor("operator");
1830
+ count += operatorSpaces.before.length;
1831
+ var operator = this.stringifyProperty("operator");
1832
+ if (name === "operator") {
1833
+ return operator ? count : -1;
1834
+ }
1835
+ count += operator.length;
1836
+ count += operatorSpaces.after.length;
1837
+ var valueSpaces = this._spacesFor("value");
1838
+ count += valueSpaces.before.length;
1839
+ var value = this.stringifyProperty("value");
1840
+ if (name === "value") {
1841
+ return value ? count : -1;
1842
+ }
1843
+ count += value.length;
1844
+ count += valueSpaces.after.length;
1845
+ var insensitiveSpaces = this._spacesFor("insensitive");
1846
+ count += insensitiveSpaces.before.length;
1847
+ if (name === "insensitive") {
1848
+ return this.insensitive ? count : -1;
1849
+ }
1850
+ return -1;
1851
+ };
1852
+ Attribute2.prototype.toString = function() {
1853
+ var _this = this;
1854
+ var selector = [this.rawSpaceBefore, "["];
1855
+ selector.push(this._stringFor("qualifiedAttribute", "attribute"));
1856
+ if (this.operator && (this.value || this.value === "")) {
1857
+ selector.push(this._stringFor("operator"));
1858
+ selector.push(this._stringFor("value"));
1859
+ selector.push(this._stringFor("insensitiveFlag", "insensitive", function(attrValue, attrSpaces) {
1860
+ if (attrValue.length > 0 && !_this.quoted && attrSpaces.before.length === 0 && !(_this.spaces.value && _this.spaces.value.after)) {
1861
+ attrSpaces.before = " ";
1862
+ }
1863
+ return defaultAttrConcat(attrValue, attrSpaces);
1864
+ }));
1865
+ }
1866
+ selector.push("]");
1867
+ selector.push(this.rawSpaceAfter);
1868
+ return selector.join("");
1869
+ };
1870
+ Attribute2.NO_QUOTE = null;
1871
+ Attribute2.SINGLE_QUOTE = "'";
1872
+ Attribute2.DOUBLE_QUOTE = '"';
1873
+ return Attribute2;
1874
+ })(namespace_1.default)
1875
+ );
1876
+ exports.default = Attribute;
1877
+ var CSSESC_QUOTE_OPTIONS = (_a = {
1878
+ "'": { quotes: "single", wrap: true },
1879
+ '"': { quotes: "double", wrap: true }
1880
+ }, _a[null] = { isIdentifier: true }, _a);
1881
+ function defaultAttrConcat(attrValue, attrSpaces) {
1882
+ return "".concat(attrSpaces.before).concat(attrValue).concat(attrSpaces.after);
1883
+ }
1884
+ }
1885
+ });
1886
+
1887
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/universal.js
1888
+ var require_universal = __commonJS({
1889
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/universal.js"(exports) {
1890
+ "use strict";
1891
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
1892
+ var extendStatics = function(d, b) {
1893
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1894
+ d2.__proto__ = b2;
1895
+ } || function(d2, b2) {
1896
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
1897
+ };
1898
+ return extendStatics(d, b);
1899
+ };
1900
+ return function(d, b) {
1901
+ if (typeof b !== "function" && b !== null)
1902
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1903
+ extendStatics(d, b);
1904
+ function __() {
1905
+ this.constructor = d;
1906
+ }
1907
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1908
+ };
1909
+ })();
1910
+ var __importDefault = exports && exports.__importDefault || function(mod) {
1911
+ return mod && mod.__esModule ? mod : { "default": mod };
1912
+ };
1913
+ Object.defineProperty(exports, "__esModule", { value: true });
1914
+ var namespace_1 = __importDefault(require_namespace());
1915
+ var types_1 = require_types();
1916
+ var Universal = (
1917
+ /** @class */
1918
+ (function(_super) {
1919
+ __extends(Universal2, _super);
1920
+ function Universal2(opts) {
1921
+ var _this = _super.call(this, opts) || this;
1922
+ _this.type = types_1.UNIVERSAL;
1923
+ _this.value = "*";
1924
+ return _this;
1925
+ }
1926
+ return Universal2;
1927
+ })(namespace_1.default)
1928
+ );
1929
+ exports.default = Universal;
1930
+ }
1931
+ });
1932
+
1933
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/combinator.js
1934
+ var require_combinator = __commonJS({
1935
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/combinator.js"(exports) {
1936
+ "use strict";
1937
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
1938
+ var extendStatics = function(d, b) {
1939
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1940
+ d2.__proto__ = b2;
1941
+ } || function(d2, b2) {
1942
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
1943
+ };
1944
+ return extendStatics(d, b);
1945
+ };
1946
+ return function(d, b) {
1947
+ if (typeof b !== "function" && b !== null)
1948
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1949
+ extendStatics(d, b);
1950
+ function __() {
1951
+ this.constructor = d;
1952
+ }
1953
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1954
+ };
1955
+ })();
1956
+ var __importDefault = exports && exports.__importDefault || function(mod) {
1957
+ return mod && mod.__esModule ? mod : { "default": mod };
1958
+ };
1959
+ Object.defineProperty(exports, "__esModule", { value: true });
1960
+ var node_1 = __importDefault(require_node());
1961
+ var types_1 = require_types();
1962
+ var Combinator = (
1963
+ /** @class */
1964
+ (function(_super) {
1965
+ __extends(Combinator2, _super);
1966
+ function Combinator2(opts) {
1967
+ var _this = _super.call(this, opts) || this;
1968
+ _this.type = types_1.COMBINATOR;
1969
+ return _this;
1970
+ }
1971
+ return Combinator2;
1972
+ })(node_1.default)
1973
+ );
1974
+ exports.default = Combinator;
1975
+ }
1976
+ });
1977
+
1978
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/nesting.js
1979
+ var require_nesting = __commonJS({
1980
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/nesting.js"(exports) {
1981
+ "use strict";
1982
+ var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
1983
+ var extendStatics = function(d, b) {
1984
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1985
+ d2.__proto__ = b2;
1986
+ } || function(d2, b2) {
1987
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
1988
+ };
1989
+ return extendStatics(d, b);
1990
+ };
1991
+ return function(d, b) {
1992
+ if (typeof b !== "function" && b !== null)
1993
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1994
+ extendStatics(d, b);
1995
+ function __() {
1996
+ this.constructor = d;
1997
+ }
1998
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1999
+ };
2000
+ })();
2001
+ var __importDefault = exports && exports.__importDefault || function(mod) {
2002
+ return mod && mod.__esModule ? mod : { "default": mod };
2003
+ };
2004
+ Object.defineProperty(exports, "__esModule", { value: true });
2005
+ var node_1 = __importDefault(require_node());
2006
+ var types_1 = require_types();
2007
+ var Nesting = (
2008
+ /** @class */
2009
+ (function(_super) {
2010
+ __extends(Nesting2, _super);
2011
+ function Nesting2(opts) {
2012
+ var _this = _super.call(this, opts) || this;
2013
+ _this.type = types_1.NESTING;
2014
+ _this.value = "&";
2015
+ return _this;
2016
+ }
2017
+ return Nesting2;
2018
+ })(node_1.default)
2019
+ );
2020
+ exports.default = Nesting;
2021
+ }
2022
+ });
2023
+
2024
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/sortAscending.js
2025
+ var require_sortAscending = __commonJS({
2026
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/sortAscending.js"(exports) {
2027
+ "use strict";
2028
+ Object.defineProperty(exports, "__esModule", { value: true });
2029
+ exports.default = sortAscending;
2030
+ function sortAscending(list) {
2031
+ return list.sort(function(a, b) {
2032
+ return a - b;
2033
+ });
2034
+ }
2035
+ }
2036
+ });
2037
+
2038
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/tokenTypes.js
2039
+ var require_tokenTypes = __commonJS({
2040
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/tokenTypes.js"(exports) {
2041
+ "use strict";
2042
+ Object.defineProperty(exports, "__esModule", { value: true });
2043
+ 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;
2044
+ exports.ampersand = 38;
2045
+ exports.asterisk = 42;
2046
+ exports.at = 64;
2047
+ exports.comma = 44;
2048
+ exports.colon = 58;
2049
+ exports.semicolon = 59;
2050
+ exports.openParenthesis = 40;
2051
+ exports.closeParenthesis = 41;
2052
+ exports.openSquare = 91;
2053
+ exports.closeSquare = 93;
2054
+ exports.dollar = 36;
2055
+ exports.tilde = 126;
2056
+ exports.caret = 94;
2057
+ exports.plus = 43;
2058
+ exports.equals = 61;
2059
+ exports.pipe = 124;
2060
+ exports.greaterThan = 62;
2061
+ exports.space = 32;
2062
+ exports.singleQuote = 39;
2063
+ exports.doubleQuote = 34;
2064
+ exports.slash = 47;
2065
+ exports.bang = 33;
2066
+ exports.backslash = 92;
2067
+ exports.cr = 13;
2068
+ exports.feed = 12;
2069
+ exports.newline = 10;
2070
+ exports.tab = 9;
2071
+ exports.str = exports.singleQuote;
2072
+ exports.comment = -1;
2073
+ exports.word = -2;
2074
+ exports.combinator = -3;
2075
+ }
2076
+ });
2077
+
2078
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/tokenize.js
2079
+ var require_tokenize = __commonJS({
2080
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/tokenize.js"(exports) {
2081
+ "use strict";
2082
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
2083
+ if (k2 === void 0) k2 = k;
2084
+ var desc = Object.getOwnPropertyDescriptor(m, k);
2085
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
2086
+ desc = { enumerable: true, get: function() {
2087
+ return m[k];
2088
+ } };
2089
+ }
2090
+ Object.defineProperty(o, k2, desc);
2091
+ }) : (function(o, m, k, k2) {
2092
+ if (k2 === void 0) k2 = k;
2093
+ o[k2] = m[k];
2094
+ }));
2095
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
2096
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
2097
+ }) : function(o, v) {
2098
+ o["default"] = v;
2099
+ });
2100
+ var __importStar = exports && exports.__importStar || /* @__PURE__ */ (function() {
2101
+ var ownKeys = function(o) {
2102
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
2103
+ var ar = [];
2104
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
2105
+ return ar;
2106
+ };
2107
+ return ownKeys(o);
2108
+ };
2109
+ return function(mod) {
2110
+ if (mod && mod.__esModule) return mod;
2111
+ var result = {};
2112
+ if (mod != null) {
2113
+ for (var k = ownKeys(mod), i2 = 0; i2 < k.length; i2++) if (k[i2] !== "default") __createBinding(result, mod, k[i2]);
2114
+ }
2115
+ __setModuleDefault(result, mod);
2116
+ return result;
2117
+ };
2118
+ })();
2119
+ var _a;
2120
+ var _b;
2121
+ Object.defineProperty(exports, "__esModule", { value: true });
2122
+ exports.FIELDS = void 0;
2123
+ exports.default = tokenize;
2124
+ var t = __importStar(require_tokenTypes());
2125
+ var unescapable = (_a = {}, _a[t.tab] = true, _a[t.newline] = true, _a[t.cr] = true, _a[t.feed] = true, _a);
2126
+ var wordDelimiters = (_b = {}, _b[t.space] = true, _b[t.tab] = true, _b[t.newline] = true, _b[t.cr] = true, _b[t.feed] = true, _b[t.ampersand] = true, _b[t.asterisk] = true, _b[t.bang] = true, _b[t.comma] = true, _b[t.colon] = true, _b[t.semicolon] = true, _b[t.openParenthesis] = true, _b[t.closeParenthesis] = true, _b[t.openSquare] = true, _b[t.closeSquare] = true, _b[t.singleQuote] = true, _b[t.doubleQuote] = true, _b[t.plus] = true, _b[t.pipe] = true, _b[t.tilde] = true, _b[t.greaterThan] = true, _b[t.equals] = true, _b[t.dollar] = true, _b[t.caret] = true, _b[t.slash] = true, _b);
2127
+ var hex = {};
2128
+ var hexChars = "0123456789abcdefABCDEF";
2129
+ for (i = 0; i < hexChars.length; i++) {
2130
+ hex[hexChars.charCodeAt(i)] = true;
2131
+ }
2132
+ var i;
2133
+ function consumeWord(css, start) {
2134
+ var next = start;
2135
+ var code;
2136
+ do {
2137
+ code = css.charCodeAt(next);
2138
+ if (wordDelimiters[code]) {
2139
+ return next - 1;
2140
+ } else if (code === t.backslash) {
2141
+ next = consumeEscape(css, next) + 1;
2142
+ } else {
2143
+ next++;
2144
+ }
2145
+ } while (next < css.length);
2146
+ return next - 1;
2147
+ }
2148
+ function consumeEscape(css, start) {
2149
+ var next = start;
2150
+ var code = css.charCodeAt(next + 1);
2151
+ if (unescapable[code]) {
2152
+ } else if (hex[code]) {
2153
+ var hexDigits = 0;
2154
+ do {
2155
+ next++;
2156
+ hexDigits++;
2157
+ code = css.charCodeAt(next + 1);
2158
+ } while (hex[code] && hexDigits < 6);
2159
+ if (hexDigits < 6 && code === t.space) {
2160
+ next++;
2161
+ }
2162
+ } else {
2163
+ next++;
2164
+ }
2165
+ return next;
2166
+ }
2167
+ exports.FIELDS = {
2168
+ TYPE: 0,
2169
+ START_LINE: 1,
2170
+ START_COL: 2,
2171
+ END_LINE: 3,
2172
+ END_COL: 4,
2173
+ START_POS: 5,
2174
+ END_POS: 6
2175
+ };
2176
+ function tokenize(input) {
2177
+ var tokens = [];
2178
+ var css = input.css.valueOf();
2179
+ var length = css.length;
2180
+ var offset = -1;
2181
+ var line = 1;
2182
+ var start = 0;
2183
+ var end = 0;
2184
+ var code, content, endColumn, endLine, escaped, escapePos, last, lines, next, nextLine, nextOffset, quote, tokenType;
2185
+ function unclosed(what, fix) {
2186
+ if (input.safe) {
2187
+ css += fix;
2188
+ next = css.length - 1;
2189
+ } else {
2190
+ throw input.error("Unclosed " + what, line, start - offset, start);
2191
+ }
2192
+ }
2193
+ while (start < length) {
2194
+ code = css.charCodeAt(start);
2195
+ if (code === t.newline) {
2196
+ offset = start;
2197
+ line += 1;
2198
+ }
2199
+ switch (code) {
2200
+ case t.space:
2201
+ case t.tab:
2202
+ case t.newline:
2203
+ case t.cr:
2204
+ case t.feed:
2205
+ next = start;
2206
+ do {
2207
+ next += 1;
2208
+ code = css.charCodeAt(next);
2209
+ if (code === t.newline) {
2210
+ offset = next;
2211
+ line += 1;
2212
+ }
2213
+ } while (code === t.space || code === t.newline || code === t.tab || code === t.cr || code === t.feed);
2214
+ tokenType = t.space;
2215
+ endLine = line;
2216
+ endColumn = next - offset - 1;
2217
+ end = next;
2218
+ break;
2219
+ case t.plus:
2220
+ case t.greaterThan:
2221
+ case t.tilde:
2222
+ case t.pipe:
2223
+ next = start;
2224
+ do {
2225
+ next += 1;
2226
+ code = css.charCodeAt(next);
2227
+ } while (code === t.plus || code === t.greaterThan || code === t.tilde || code === t.pipe);
2228
+ tokenType = t.combinator;
2229
+ endLine = line;
2230
+ endColumn = start - offset;
2231
+ end = next;
2232
+ break;
2233
+ // Consume these characters as single tokens.
2234
+ case t.asterisk:
2235
+ case t.ampersand:
2236
+ case t.bang:
2237
+ case t.comma:
2238
+ case t.equals:
2239
+ case t.dollar:
2240
+ case t.caret:
2241
+ case t.openSquare:
2242
+ case t.closeSquare:
2243
+ case t.colon:
2244
+ case t.semicolon:
2245
+ case t.openParenthesis:
2246
+ case t.closeParenthesis:
2247
+ next = start;
2248
+ tokenType = code;
2249
+ endLine = line;
2250
+ endColumn = start - offset;
2251
+ end = next + 1;
2252
+ break;
2253
+ case t.singleQuote:
2254
+ case t.doubleQuote:
2255
+ quote = code === t.singleQuote ? "'" : '"';
2256
+ next = start;
2257
+ do {
2258
+ escaped = false;
2259
+ next = css.indexOf(quote, next + 1);
2260
+ if (next === -1) {
2261
+ unclosed("quote", quote);
2262
+ }
2263
+ escapePos = next;
2264
+ while (css.charCodeAt(escapePos - 1) === t.backslash) {
2265
+ escapePos -= 1;
2266
+ escaped = !escaped;
2267
+ }
2268
+ } while (escaped);
2269
+ tokenType = t.str;
2270
+ endLine = line;
2271
+ endColumn = start - offset;
2272
+ end = next + 1;
2273
+ break;
2274
+ default:
2275
+ if (code === t.slash && css.charCodeAt(start + 1) === t.asterisk) {
2276
+ next = css.indexOf("*/", start + 2) + 1;
2277
+ if (next === 0) {
2278
+ unclosed("comment", "*/");
2279
+ }
2280
+ content = css.slice(start, next + 1);
2281
+ lines = content.split("\n");
2282
+ last = lines.length - 1;
2283
+ if (last > 0) {
2284
+ nextLine = line + last;
2285
+ nextOffset = next - lines[last].length;
2286
+ } else {
2287
+ nextLine = line;
2288
+ nextOffset = offset;
2289
+ }
2290
+ tokenType = t.comment;
2291
+ line = nextLine;
2292
+ endLine = nextLine;
2293
+ endColumn = next - nextOffset;
2294
+ } else if (code === t.slash) {
2295
+ next = start;
2296
+ tokenType = code;
2297
+ endLine = line;
2298
+ endColumn = start - offset;
2299
+ end = next + 1;
2300
+ } else {
2301
+ next = consumeWord(css, start);
2302
+ tokenType = t.word;
2303
+ endLine = line;
2304
+ endColumn = next - offset;
2305
+ }
2306
+ end = next + 1;
2307
+ break;
2308
+ }
2309
+ tokens.push([
2310
+ tokenType,
2311
+ // [0] Token type
2312
+ line,
2313
+ // [1] Starting line
2314
+ start - offset,
2315
+ // [2] Starting column
2316
+ endLine,
2317
+ // [3] Ending line
2318
+ endColumn,
2319
+ // [4] Ending column
2320
+ start,
2321
+ // [5] Start position / Source index
2322
+ end
2323
+ // [6] End position
2324
+ ]);
2325
+ if (nextOffset) {
2326
+ offset = nextOffset;
2327
+ nextOffset = null;
2328
+ }
2329
+ start = end;
2330
+ }
2331
+ return tokens;
2332
+ }
2333
+ }
2334
+ });
2335
+
2336
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/parser.js
2337
+ var require_parser = __commonJS({
2338
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/parser.js"(exports) {
2339
+ "use strict";
2340
+ var __assign = exports && exports.__assign || function() {
2341
+ __assign = Object.assign || function(t) {
2342
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2343
+ s = arguments[i];
2344
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2345
+ t[p] = s[p];
2346
+ }
2347
+ return t;
2348
+ };
2349
+ return __assign.apply(this, arguments);
2350
+ };
2351
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
2352
+ if (k2 === void 0) k2 = k;
2353
+ var desc = Object.getOwnPropertyDescriptor(m, k);
2354
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
2355
+ desc = { enumerable: true, get: function() {
2356
+ return m[k];
2357
+ } };
2358
+ }
2359
+ Object.defineProperty(o, k2, desc);
2360
+ }) : (function(o, m, k, k2) {
2361
+ if (k2 === void 0) k2 = k;
2362
+ o[k2] = m[k];
2363
+ }));
2364
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
2365
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
2366
+ }) : function(o, v) {
2367
+ o["default"] = v;
2368
+ });
2369
+ var __importStar = exports && exports.__importStar || /* @__PURE__ */ (function() {
2370
+ var ownKeys = function(o) {
2371
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
2372
+ var ar = [];
2373
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
2374
+ return ar;
2375
+ };
2376
+ return ownKeys(o);
2377
+ };
2378
+ return function(mod) {
2379
+ if (mod && mod.__esModule) return mod;
2380
+ var result = {};
2381
+ if (mod != null) {
2382
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
2383
+ }
2384
+ __setModuleDefault(result, mod);
2385
+ return result;
2386
+ };
2387
+ })();
2388
+ var __read = exports && exports.__read || function(o, n) {
2389
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
2390
+ if (!m) return o;
2391
+ var i = m.call(o), r, ar = [], e;
2392
+ try {
2393
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
2394
+ } catch (error) {
2395
+ e = { error };
2396
+ } finally {
2397
+ try {
2398
+ if (r && !r.done && (m = i["return"])) m.call(i);
2399
+ } finally {
2400
+ if (e) throw e.error;
2401
+ }
2402
+ }
2403
+ return ar;
2404
+ };
2405
+ var __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {
2406
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2407
+ if (ar || !(i in from)) {
2408
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2409
+ ar[i] = from[i];
2410
+ }
2411
+ }
2412
+ return to.concat(ar || Array.prototype.slice.call(from));
2413
+ };
2414
+ var __importDefault = exports && exports.__importDefault || function(mod) {
2415
+ return mod && mod.__esModule ? mod : { "default": mod };
2416
+ };
2417
+ var _a;
2418
+ var _b;
2419
+ Object.defineProperty(exports, "__esModule", { value: true });
2420
+ var root_1 = __importDefault(require_root());
2421
+ var selector_1 = __importDefault(require_selector());
2422
+ var className_1 = __importDefault(require_className());
2423
+ var comment_1 = __importDefault(require_comment());
2424
+ var id_1 = __importDefault(require_id());
2425
+ var tag_1 = __importDefault(require_tag());
2426
+ var string_1 = __importDefault(require_string());
2427
+ var pseudo_1 = __importDefault(require_pseudo());
2428
+ var attribute_1 = __importStar(require_attribute());
2429
+ var universal_1 = __importDefault(require_universal());
2430
+ var combinator_1 = __importDefault(require_combinator());
2431
+ var nesting_1 = __importDefault(require_nesting());
2432
+ var sortAscending_1 = __importDefault(require_sortAscending());
2433
+ var tokenize_1 = __importStar(require_tokenize());
2434
+ var tokens = __importStar(require_tokenTypes());
2435
+ var types = __importStar(require_types());
2436
+ var util_1 = require_util();
2437
+ var WHITESPACE_TOKENS = (_a = {}, _a[tokens.space] = true, _a[tokens.cr] = true, _a[tokens.feed] = true, _a[tokens.newline] = true, _a[tokens.tab] = true, _a);
2438
+ var WHITESPACE_EQUIV_TOKENS = __assign(__assign({}, WHITESPACE_TOKENS), (_b = {}, _b[tokens.comment] = true, _b));
2439
+ function tokenStart(token) {
2440
+ return {
2441
+ line: token[tokenize_1.FIELDS.START_LINE],
2442
+ column: token[tokenize_1.FIELDS.START_COL]
2443
+ };
2444
+ }
2445
+ function tokenEnd(token) {
2446
+ return {
2447
+ line: token[tokenize_1.FIELDS.END_LINE],
2448
+ column: token[tokenize_1.FIELDS.END_COL]
2449
+ };
2450
+ }
2451
+ function getSource(startLine, startColumn, endLine, endColumn) {
2452
+ return {
2453
+ start: {
2454
+ line: startLine,
2455
+ column: startColumn
2456
+ },
2457
+ end: {
2458
+ line: endLine,
2459
+ column: endColumn
2460
+ }
2461
+ };
2462
+ }
2463
+ function getTokenSource(token) {
2464
+ return getSource(token[tokenize_1.FIELDS.START_LINE], token[tokenize_1.FIELDS.START_COL], token[tokenize_1.FIELDS.END_LINE], token[tokenize_1.FIELDS.END_COL]);
2465
+ }
2466
+ function getTokenSourceSpan(startToken, endToken) {
2467
+ if (!startToken) {
2468
+ return void 0;
2469
+ }
2470
+ return getSource(startToken[tokenize_1.FIELDS.START_LINE], startToken[tokenize_1.FIELDS.START_COL], endToken[tokenize_1.FIELDS.END_LINE], endToken[tokenize_1.FIELDS.END_COL]);
2471
+ }
2472
+ function unescapeProp(node, prop) {
2473
+ var value = node[prop];
2474
+ if (typeof value !== "string") {
2475
+ return;
2476
+ }
2477
+ if (value.indexOf("\\") !== -1) {
2478
+ (0, util_1.ensureObject)(node, "raws");
2479
+ node[prop] = (0, util_1.unesc)(value);
2480
+ if (node.raws[prop] === void 0) {
2481
+ node.raws[prop] = value;
2482
+ }
2483
+ }
2484
+ return node;
2485
+ }
2486
+ function indexesOf(array, item) {
2487
+ var i = -1;
2488
+ var indexes = [];
2489
+ while ((i = array.indexOf(item, i + 1)) !== -1) {
2490
+ indexes.push(i);
2491
+ }
2492
+ return indexes;
2493
+ }
2494
+ function uniqs() {
2495
+ var list = Array.prototype.concat.apply([], arguments);
2496
+ return list.filter(function(item, i) {
2497
+ return i === list.indexOf(item);
2498
+ });
2499
+ }
2500
+ var Parser2 = (
2501
+ /** @class */
2502
+ (function() {
2503
+ function Parser3(rule, options) {
2504
+ if (options === void 0) {
2505
+ options = {};
2506
+ }
2507
+ this.rule = rule;
2508
+ this.options = Object.assign({ lossy: false, safe: false }, options);
2509
+ this.position = 0;
2510
+ this.nestingDepth = 0;
2511
+ this.maxNestingDepth = (0, util_1.resolveMaxNestingDepth)(this.options.maxNestingDepth);
2512
+ this.css = typeof this.rule === "string" ? this.rule : this.rule.selector;
2513
+ this.tokens = (0, tokenize_1.default)({
2514
+ css: this.css,
2515
+ error: this._errorGenerator(),
2516
+ safe: this.options.safe
2517
+ });
2518
+ var rootSource = getTokenSourceSpan(this.tokens[0], this.tokens[this.tokens.length - 1]);
2519
+ this.root = new root_1.default({ source: rootSource });
2520
+ this.root.errorGenerator = this._errorGenerator();
2521
+ var selector = new selector_1.default({
2522
+ source: { start: { line: 1, column: 1 } },
2523
+ sourceIndex: 0
2524
+ });
2525
+ this.root.append(selector);
2526
+ this.current = selector;
2527
+ this.loop();
2528
+ }
2529
+ Parser3.prototype._errorGenerator = function() {
2530
+ var _this = this;
2531
+ return function(message, errorOptions) {
2532
+ if (typeof _this.rule === "string") {
2533
+ return new Error(message);
2534
+ }
2535
+ return _this.rule.error(message, errorOptions);
2536
+ };
2537
+ };
2538
+ Parser3.prototype.attribute = function() {
2539
+ var attr = [];
2540
+ var startingToken = this.currToken;
2541
+ this.position++;
2542
+ while (this.position < this.tokens.length && this.currToken[tokenize_1.FIELDS.TYPE] !== tokens.closeSquare) {
2543
+ attr.push(this.currToken);
2544
+ this.position++;
2545
+ }
2546
+ if (this.currToken[tokenize_1.FIELDS.TYPE] !== tokens.closeSquare) {
2547
+ return this.expected("closing square bracket", this.currToken[tokenize_1.FIELDS.START_POS]);
2548
+ }
2549
+ var len = attr.length;
2550
+ var node = {
2551
+ source: getSource(startingToken[1], startingToken[2], this.currToken[3], this.currToken[4]),
2552
+ sourceIndex: startingToken[tokenize_1.FIELDS.START_POS]
2553
+ };
2554
+ if (len === 1 && !~[tokens.word].indexOf(attr[0][tokenize_1.FIELDS.TYPE])) {
2555
+ return this.expected("attribute", attr[0][tokenize_1.FIELDS.START_POS]);
2556
+ }
2557
+ var pos = 0;
2558
+ var spaceBefore = "";
2559
+ var commentBefore = "";
2560
+ var lastAdded = null;
2561
+ var spaceAfterMeaningfulToken = false;
2562
+ while (pos < len) {
2563
+ var token = attr[pos];
2564
+ var content = this.content(token);
2565
+ var next = attr[pos + 1];
2566
+ switch (token[tokenize_1.FIELDS.TYPE]) {
2567
+ case tokens.space:
2568
+ spaceAfterMeaningfulToken = true;
2569
+ if (this.options.lossy) {
2570
+ break;
2571
+ }
2572
+ if (lastAdded) {
2573
+ (0, util_1.ensureObject)(node, "spaces", lastAdded);
2574
+ var prevContent = node.spaces[lastAdded].after || "";
2575
+ node.spaces[lastAdded].after = prevContent + content;
2576
+ var existingComment = (0, util_1.getProp)(node, "raws", "spaces", lastAdded, "after") || null;
2577
+ if (existingComment) {
2578
+ node.raws.spaces[lastAdded].after = existingComment + content;
2579
+ }
2580
+ } else {
2581
+ spaceBefore = spaceBefore + content;
2582
+ commentBefore = commentBefore + content;
2583
+ }
2584
+ break;
2585
+ case tokens.asterisk:
2586
+ if (next[tokenize_1.FIELDS.TYPE] === tokens.equals) {
2587
+ node.operator = content;
2588
+ lastAdded = "operator";
2589
+ } else if ((!node.namespace || lastAdded === "namespace" && !spaceAfterMeaningfulToken) && next) {
2590
+ if (spaceBefore) {
2591
+ (0, util_1.ensureObject)(node, "spaces", "attribute");
2592
+ node.spaces.attribute.before = spaceBefore;
2593
+ spaceBefore = "";
2594
+ }
2595
+ if (commentBefore) {
2596
+ (0, util_1.ensureObject)(node, "raws", "spaces", "attribute");
2597
+ node.raws.spaces.attribute.before = spaceBefore;
2598
+ commentBefore = "";
2599
+ }
2600
+ node.namespace = (node.namespace || "") + content;
2601
+ var rawValue = (0, util_1.getProp)(node, "raws", "namespace") || null;
2602
+ if (rawValue) {
2603
+ node.raws.namespace += content;
2604
+ }
2605
+ lastAdded = "namespace";
2606
+ }
2607
+ spaceAfterMeaningfulToken = false;
2608
+ break;
2609
+ case tokens.dollar:
2610
+ if (lastAdded === "value") {
2611
+ var oldRawValue = (0, util_1.getProp)(node, "raws", "value");
2612
+ node.value += "$";
2613
+ if (oldRawValue) {
2614
+ node.raws.value = oldRawValue + "$";
2615
+ }
2616
+ break;
2617
+ }
2618
+ // Falls through
2619
+ case tokens.caret:
2620
+ if (next[tokenize_1.FIELDS.TYPE] === tokens.equals) {
2621
+ node.operator = content;
2622
+ lastAdded = "operator";
2623
+ }
2624
+ spaceAfterMeaningfulToken = false;
2625
+ break;
2626
+ case tokens.combinator:
2627
+ if (content === "~" && next[tokenize_1.FIELDS.TYPE] === tokens.equals) {
2628
+ node.operator = content;
2629
+ lastAdded = "operator";
2630
+ }
2631
+ if (content !== "|") {
2632
+ spaceAfterMeaningfulToken = false;
2633
+ break;
2634
+ }
2635
+ if (next[tokenize_1.FIELDS.TYPE] === tokens.equals) {
2636
+ node.operator = content;
2637
+ lastAdded = "operator";
2638
+ } else if (!node.namespace && !node.attribute) {
2639
+ node.namespace = true;
2640
+ }
2641
+ spaceAfterMeaningfulToken = false;
2642
+ break;
2643
+ case tokens.word:
2644
+ if (next && this.content(next) === "|" && attr[pos + 2] && attr[pos + 2][tokenize_1.FIELDS.TYPE] !== tokens.equals && // this look-ahead probably fails with comment nodes involved.
2645
+ !node.operator && !node.namespace) {
2646
+ node.namespace = content;
2647
+ lastAdded = "namespace";
2648
+ } else if (!node.attribute || lastAdded === "attribute" && !spaceAfterMeaningfulToken) {
2649
+ if (spaceBefore) {
2650
+ (0, util_1.ensureObject)(node, "spaces", "attribute");
2651
+ node.spaces.attribute.before = spaceBefore;
2652
+ spaceBefore = "";
2653
+ }
2654
+ if (commentBefore) {
2655
+ (0, util_1.ensureObject)(node, "raws", "spaces", "attribute");
2656
+ node.raws.spaces.attribute.before = commentBefore;
2657
+ commentBefore = "";
2658
+ }
2659
+ node.attribute = (node.attribute || "") + content;
2660
+ var rawValue = (0, util_1.getProp)(node, "raws", "attribute") || null;
2661
+ if (rawValue) {
2662
+ node.raws.attribute += content;
2663
+ }
2664
+ lastAdded = "attribute";
2665
+ } else if (!node.value && node.value !== "" || lastAdded === "value" && !(spaceAfterMeaningfulToken || node.quoteMark)) {
2666
+ var unescaped_1 = (0, util_1.unesc)(content);
2667
+ var oldRawValue = (0, util_1.getProp)(node, "raws", "value") || "";
2668
+ var oldValue = node.value || "";
2669
+ node.value = oldValue + unescaped_1;
2670
+ node.quoteMark = null;
2671
+ if (unescaped_1 !== content || oldRawValue) {
2672
+ (0, util_1.ensureObject)(node, "raws");
2673
+ node.raws.value = (oldRawValue || oldValue) + content;
2674
+ }
2675
+ lastAdded = "value";
2676
+ } else {
2677
+ var insensitive = content === "i" || content === "I";
2678
+ if ((node.value || node.value === "") && (node.quoteMark || spaceAfterMeaningfulToken)) {
2679
+ node.insensitive = insensitive;
2680
+ if (!insensitive || content === "I") {
2681
+ (0, util_1.ensureObject)(node, "raws");
2682
+ node.raws.insensitiveFlag = content;
2683
+ }
2684
+ lastAdded = "insensitive";
2685
+ if (spaceBefore) {
2686
+ (0, util_1.ensureObject)(node, "spaces", "insensitive");
2687
+ node.spaces.insensitive.before = spaceBefore;
2688
+ spaceBefore = "";
2689
+ }
2690
+ if (commentBefore) {
2691
+ (0, util_1.ensureObject)(node, "raws", "spaces", "insensitive");
2692
+ node.raws.spaces.insensitive.before = commentBefore;
2693
+ commentBefore = "";
2694
+ }
2695
+ } else if (node.value || node.value === "") {
2696
+ lastAdded = "value";
2697
+ node.value += content;
2698
+ if (node.raws.value) {
2699
+ node.raws.value += content;
2700
+ }
2701
+ }
2702
+ }
2703
+ spaceAfterMeaningfulToken = false;
2704
+ break;
2705
+ case tokens.str:
2706
+ if (!node.attribute || !node.operator) {
2707
+ return this.error("Expected an attribute followed by an operator preceding the string.", {
2708
+ index: token[tokenize_1.FIELDS.START_POS]
2709
+ });
2710
+ }
2711
+ var _a2 = (0, attribute_1.unescapeValue)(content), unescaped = _a2.unescaped, quoteMark = _a2.quoteMark;
2712
+ node.value = unescaped;
2713
+ node.quoteMark = quoteMark;
2714
+ lastAdded = "value";
2715
+ (0, util_1.ensureObject)(node, "raws");
2716
+ node.raws.value = content;
2717
+ spaceAfterMeaningfulToken = false;
2718
+ break;
2719
+ case tokens.equals:
2720
+ if (!node.attribute) {
2721
+ return this.expected("attribute", token[tokenize_1.FIELDS.START_POS], content);
2722
+ }
2723
+ if (node.value) {
2724
+ return this.error('Unexpected "=" found; an operator was already defined.', {
2725
+ index: token[tokenize_1.FIELDS.START_POS]
2726
+ });
2727
+ }
2728
+ node.operator = node.operator ? node.operator + content : content;
2729
+ lastAdded = "operator";
2730
+ spaceAfterMeaningfulToken = false;
2731
+ break;
2732
+ case tokens.comment:
2733
+ if (lastAdded) {
2734
+ if (spaceAfterMeaningfulToken || next && next[tokenize_1.FIELDS.TYPE] === tokens.space || lastAdded === "insensitive") {
2735
+ var lastComment = (0, util_1.getProp)(node, "spaces", lastAdded, "after") || "";
2736
+ var rawLastComment = (0, util_1.getProp)(node, "raws", "spaces", lastAdded, "after") || lastComment;
2737
+ (0, util_1.ensureObject)(node, "raws", "spaces", lastAdded);
2738
+ node.raws.spaces[lastAdded].after = rawLastComment + content;
2739
+ } else {
2740
+ var lastValue = node[lastAdded] || "";
2741
+ var rawLastValue = (0, util_1.getProp)(node, "raws", lastAdded) || lastValue;
2742
+ (0, util_1.ensureObject)(node, "raws");
2743
+ node.raws[lastAdded] = rawLastValue + content;
2744
+ }
2745
+ } else {
2746
+ commentBefore = commentBefore + content;
2747
+ }
2748
+ break;
2749
+ default:
2750
+ return this.error('Unexpected "'.concat(content, '" found.'), { index: token[tokenize_1.FIELDS.START_POS] });
2751
+ }
2752
+ pos++;
2753
+ }
2754
+ unescapeProp(node, "attribute");
2755
+ unescapeProp(node, "namespace");
2756
+ this.newNode(new attribute_1.default(node));
2757
+ this.position++;
2758
+ };
2759
+ Parser3.prototype.parseWhitespaceEquivalentTokens = function(stopPosition) {
2760
+ if (stopPosition < 0) {
2761
+ stopPosition = this.tokens.length;
2762
+ }
2763
+ var startPosition = this.position;
2764
+ var nodes = [];
2765
+ var space = "";
2766
+ var lastComment = void 0;
2767
+ do {
2768
+ if (WHITESPACE_TOKENS[this.currToken[tokenize_1.FIELDS.TYPE]]) {
2769
+ if (!this.options.lossy) {
2770
+ space += this.content();
2771
+ }
2772
+ } else if (this.currToken[tokenize_1.FIELDS.TYPE] === tokens.comment) {
2773
+ var spaces = {};
2774
+ if (space) {
2775
+ spaces.before = space;
2776
+ space = "";
2777
+ }
2778
+ lastComment = new comment_1.default({
2779
+ value: this.content(),
2780
+ source: getTokenSource(this.currToken),
2781
+ sourceIndex: this.currToken[tokenize_1.FIELDS.START_POS],
2782
+ spaces
2783
+ });
2784
+ nodes.push(lastComment);
2785
+ }
2786
+ } while (++this.position < stopPosition);
2787
+ if (space) {
2788
+ if (lastComment) {
2789
+ lastComment.spaces.after = space;
2790
+ } else if (!this.options.lossy) {
2791
+ var firstToken = this.tokens[startPosition];
2792
+ var lastToken = this.tokens[this.position - 1];
2793
+ nodes.push(new string_1.default({
2794
+ value: "",
2795
+ source: getSource(firstToken[tokenize_1.FIELDS.START_LINE], firstToken[tokenize_1.FIELDS.START_COL], lastToken[tokenize_1.FIELDS.END_LINE], lastToken[tokenize_1.FIELDS.END_COL]),
2796
+ sourceIndex: firstToken[tokenize_1.FIELDS.START_POS],
2797
+ spaces: { before: space, after: "" }
2798
+ }));
2799
+ }
2800
+ }
2801
+ return nodes;
2802
+ };
2803
+ Parser3.prototype.convertWhitespaceNodesToSpace = function(nodes, requiredSpace) {
2804
+ var _this = this;
2805
+ if (requiredSpace === void 0) {
2806
+ requiredSpace = false;
2807
+ }
2808
+ var space = "";
2809
+ var rawSpace = "";
2810
+ nodes.forEach(function(n) {
2811
+ var spaceBefore = _this.lossySpace(n.spaces.before, requiredSpace);
2812
+ var rawSpaceBefore = _this.lossySpace(n.rawSpaceBefore, requiredSpace);
2813
+ space += spaceBefore + _this.lossySpace(n.spaces.after, requiredSpace && spaceBefore.length === 0);
2814
+ rawSpace += spaceBefore + n.value + _this.lossySpace(n.rawSpaceAfter, requiredSpace && rawSpaceBefore.length === 0);
2815
+ });
2816
+ if (rawSpace === space) {
2817
+ rawSpace = void 0;
2818
+ }
2819
+ var result = { space, rawSpace };
2820
+ return result;
2821
+ };
2822
+ Parser3.prototype.isNamedCombinator = function(position) {
2823
+ if (position === void 0) {
2824
+ position = this.position;
2825
+ }
2826
+ return this.tokens[position + 0] && this.tokens[position + 0][tokenize_1.FIELDS.TYPE] === tokens.slash && this.tokens[position + 1] && this.tokens[position + 1][tokenize_1.FIELDS.TYPE] === tokens.word && this.tokens[position + 2] && this.tokens[position + 2][tokenize_1.FIELDS.TYPE] === tokens.slash;
2827
+ };
2828
+ Parser3.prototype.namedCombinator = function() {
2829
+ if (this.isNamedCombinator()) {
2830
+ var nameRaw = this.content(this.tokens[this.position + 1]);
2831
+ var name = (0, util_1.unesc)(nameRaw).toLowerCase();
2832
+ var raws = {};
2833
+ if (name !== nameRaw) {
2834
+ raws.value = "/".concat(nameRaw, "/");
2835
+ }
2836
+ var node = new combinator_1.default({
2837
+ value: "/".concat(name, "/"),
2838
+ source: getSource(this.currToken[tokenize_1.FIELDS.START_LINE], this.currToken[tokenize_1.FIELDS.START_COL], this.tokens[this.position + 2][tokenize_1.FIELDS.END_LINE], this.tokens[this.position + 2][tokenize_1.FIELDS.END_COL]),
2839
+ sourceIndex: this.currToken[tokenize_1.FIELDS.START_POS],
2840
+ raws
2841
+ });
2842
+ this.position = this.position + 3;
2843
+ return node;
2844
+ } else {
2845
+ this.unexpected();
2846
+ }
2847
+ };
2848
+ Parser3.prototype.combinator = function() {
2849
+ var _this = this;
2850
+ if (this.content() === "|") {
2851
+ return this.namespace();
2852
+ }
2853
+ var nextSigTokenPos = this.locateNextMeaningfulToken(this.position);
2854
+ if (nextSigTokenPos < 0 || this.tokens[nextSigTokenPos][tokenize_1.FIELDS.TYPE] === tokens.comma || this.tokens[nextSigTokenPos][tokenize_1.FIELDS.TYPE] === tokens.closeParenthesis) {
2855
+ var nodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos);
2856
+ if (nodes.length > 0) {
2857
+ var last = this.current.last;
2858
+ if (last) {
2859
+ var _a2 = this.convertWhitespaceNodesToSpace(nodes), space = _a2.space, rawSpace = _a2.rawSpace;
2860
+ if (rawSpace !== void 0) {
2861
+ last.rawSpaceAfter += rawSpace;
2862
+ }
2863
+ last.spaces.after += space;
2864
+ } else {
2865
+ nodes.forEach(function(n) {
2866
+ return _this.newNode(n);
2867
+ });
2868
+ }
2869
+ }
2870
+ return;
2871
+ }
2872
+ var firstToken = this.currToken;
2873
+ var spaceOrDescendantSelectorNodes = void 0;
2874
+ if (nextSigTokenPos > this.position) {
2875
+ spaceOrDescendantSelectorNodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos);
2876
+ }
2877
+ var node;
2878
+ if (this.isNamedCombinator()) {
2879
+ node = this.namedCombinator();
2880
+ } else if (this.currToken[tokenize_1.FIELDS.TYPE] === tokens.combinator) {
2881
+ node = new combinator_1.default({
2882
+ value: this.content(),
2883
+ source: getTokenSource(this.currToken),
2884
+ sourceIndex: this.currToken[tokenize_1.FIELDS.START_POS]
2885
+ });
2886
+ this.position++;
2887
+ } else if (WHITESPACE_TOKENS[this.currToken[tokenize_1.FIELDS.TYPE]]) {
2888
+ } else if (!spaceOrDescendantSelectorNodes) {
2889
+ this.unexpected();
2890
+ }
2891
+ if (node) {
2892
+ if (spaceOrDescendantSelectorNodes) {
2893
+ var _b2 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes), space = _b2.space, rawSpace = _b2.rawSpace;
2894
+ node.spaces.before = space;
2895
+ node.rawSpaceBefore = rawSpace;
2896
+ }
2897
+ } else {
2898
+ var _c = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes, true), space = _c.space, rawSpace = _c.rawSpace;
2899
+ if (!rawSpace) {
2900
+ rawSpace = space;
2901
+ }
2902
+ var spaces = {};
2903
+ var raws = { spaces: {} };
2904
+ if (space.endsWith(" ") && rawSpace.endsWith(" ")) {
2905
+ spaces.before = space.slice(0, space.length - 1);
2906
+ raws.spaces.before = rawSpace.slice(0, rawSpace.length - 1);
2907
+ } else if (space[0] === " " && rawSpace[0] === " ") {
2908
+ spaces.after = space.slice(1);
2909
+ raws.spaces.after = rawSpace.slice(1);
2910
+ } else {
2911
+ raws.value = rawSpace;
2912
+ }
2913
+ node = new combinator_1.default({
2914
+ value: " ",
2915
+ source: getTokenSourceSpan(firstToken, this.tokens[this.position - 1]),
2916
+ sourceIndex: firstToken[tokenize_1.FIELDS.START_POS],
2917
+ spaces,
2918
+ raws
2919
+ });
2920
+ }
2921
+ if (this.currToken && this.currToken[tokenize_1.FIELDS.TYPE] === tokens.space) {
2922
+ node.spaces.after = this.optionalSpace(this.content());
2923
+ this.position++;
2924
+ }
2925
+ return this.newNode(node);
2926
+ };
2927
+ Parser3.prototype.comma = function() {
2928
+ if (this.position === this.tokens.length - 1) {
2929
+ this.root.trailingComma = true;
2930
+ this.position++;
2931
+ return;
2932
+ }
2933
+ this.current._inferEndPosition();
2934
+ var selector = new selector_1.default({
2935
+ source: {
2936
+ start: tokenStart(this.tokens[this.position + 1])
2937
+ },
2938
+ sourceIndex: this.tokens[this.position + 1][tokenize_1.FIELDS.START_POS]
2939
+ });
2940
+ this.current.parent.append(selector);
2941
+ this.current = selector;
2942
+ this.position++;
2943
+ };
2944
+ Parser3.prototype.comment = function() {
2945
+ var current = this.currToken;
2946
+ this.newNode(new comment_1.default({
2947
+ value: this.content(),
2948
+ source: getTokenSource(current),
2949
+ sourceIndex: current[tokenize_1.FIELDS.START_POS]
2950
+ }));
2951
+ this.position++;
2952
+ };
2953
+ Parser3.prototype.error = function(message, opts) {
2954
+ throw this.root.error(message, opts);
2955
+ };
2956
+ Parser3.prototype.missingBackslash = function() {
2957
+ return this.error("Expected a backslash preceding the semicolon.", {
2958
+ index: this.currToken[tokenize_1.FIELDS.START_POS]
2959
+ });
2960
+ };
2961
+ Parser3.prototype.missingParenthesis = function() {
2962
+ return this.expected("opening parenthesis", this.currToken[tokenize_1.FIELDS.START_POS]);
2963
+ };
2964
+ Parser3.prototype.missingSquareBracket = function() {
2965
+ return this.expected("opening square bracket", this.currToken[tokenize_1.FIELDS.START_POS]);
2966
+ };
2967
+ Parser3.prototype.unexpected = function() {
2968
+ return this.error("Unexpected '".concat(this.content(), "'. Escaping special characters with \\ may help."), this.currToken[tokenize_1.FIELDS.START_POS]);
2969
+ };
2970
+ Parser3.prototype.unexpectedPipe = function() {
2971
+ return this.error("Unexpected '|'.", this.currToken[tokenize_1.FIELDS.START_POS]);
2972
+ };
2973
+ Parser3.prototype.namespace = function() {
2974
+ var before = this.prevToken && this.content(this.prevToken) || true;
2975
+ if (this.nextToken[tokenize_1.FIELDS.TYPE] === tokens.word) {
2976
+ this.position++;
2977
+ return this.word(before);
2978
+ } else if (this.nextToken[tokenize_1.FIELDS.TYPE] === tokens.asterisk) {
2979
+ this.position++;
2980
+ return this.universal(before);
2981
+ }
2982
+ this.unexpectedPipe();
2983
+ };
2984
+ Parser3.prototype.nesting = function() {
2985
+ if (this.nextToken) {
2986
+ var nextContent = this.content(this.nextToken);
2987
+ if (nextContent === "|") {
2988
+ this.position++;
2989
+ return;
2990
+ }
2991
+ }
2992
+ var current = this.currToken;
2993
+ this.newNode(new nesting_1.default({
2994
+ value: this.content(),
2995
+ source: getTokenSource(current),
2996
+ sourceIndex: current[tokenize_1.FIELDS.START_POS]
2997
+ }));
2998
+ this.position++;
2999
+ };
3000
+ Parser3.prototype.parentheses = function() {
3001
+ var last = this.current.last;
3002
+ var unbalanced = 1;
3003
+ this.position++;
3004
+ if (last && last.type === types.PSEUDO) {
3005
+ var selector = new selector_1.default({
3006
+ source: { start: tokenStart(this.tokens[this.position]) },
3007
+ sourceIndex: this.tokens[this.position][tokenize_1.FIELDS.START_POS]
3008
+ });
3009
+ var cache = this.current;
3010
+ last.append(selector);
3011
+ this.current = selector;
3012
+ this.nestingDepth++;
3013
+ try {
3014
+ if (this.nestingDepth > this.maxNestingDepth) {
3015
+ this.error("Cannot parse selector: nesting depth exceeds the maximum of ".concat(this.maxNestingDepth, "."), { index: this.currToken[tokenize_1.FIELDS.START_POS] });
3016
+ }
3017
+ while (this.position < this.tokens.length && unbalanced) {
3018
+ if (this.currToken[tokenize_1.FIELDS.TYPE] === tokens.openParenthesis) {
3019
+ unbalanced++;
3020
+ }
3021
+ if (this.currToken[tokenize_1.FIELDS.TYPE] === tokens.closeParenthesis) {
3022
+ unbalanced--;
3023
+ }
3024
+ if (unbalanced) {
3025
+ this.parse();
3026
+ } else {
3027
+ this.current.source.end = tokenEnd(this.currToken);
3028
+ this.current.parent.source.end = tokenEnd(this.currToken);
3029
+ this.position++;
3030
+ }
3031
+ }
3032
+ } finally {
3033
+ this.nestingDepth--;
3034
+ }
3035
+ this.current = cache;
3036
+ } else {
3037
+ var parenStart = this.currToken;
3038
+ var parenValue = "(";
3039
+ var parenEnd = void 0;
3040
+ while (this.position < this.tokens.length && unbalanced) {
3041
+ if (this.currToken[tokenize_1.FIELDS.TYPE] === tokens.openParenthesis) {
3042
+ unbalanced++;
3043
+ }
3044
+ if (this.currToken[tokenize_1.FIELDS.TYPE] === tokens.closeParenthesis) {
3045
+ unbalanced--;
3046
+ }
3047
+ parenEnd = this.currToken;
3048
+ parenValue += this.parseParenthesisToken(this.currToken);
3049
+ this.position++;
3050
+ }
3051
+ if (last) {
3052
+ last.appendToPropertyAndEscape("value", parenValue, parenValue);
3053
+ } else {
3054
+ this.newNode(new string_1.default({
3055
+ value: parenValue,
3056
+ source: getSource(parenStart[tokenize_1.FIELDS.START_LINE], parenStart[tokenize_1.FIELDS.START_COL], parenEnd[tokenize_1.FIELDS.END_LINE], parenEnd[tokenize_1.FIELDS.END_COL]),
3057
+ sourceIndex: parenStart[tokenize_1.FIELDS.START_POS]
3058
+ }));
3059
+ }
3060
+ }
3061
+ if (unbalanced) {
3062
+ return this.expected("closing parenthesis", this.currToken[tokenize_1.FIELDS.START_POS]);
3063
+ }
3064
+ };
3065
+ Parser3.prototype.pseudo = function() {
3066
+ var _this = this;
3067
+ var pseudoStr = "";
3068
+ var startingToken = this.currToken;
3069
+ while (this.currToken && this.currToken[tokenize_1.FIELDS.TYPE] === tokens.colon) {
3070
+ pseudoStr += this.content();
3071
+ this.position++;
3072
+ }
3073
+ if (!this.currToken) {
3074
+ return this.expected(["pseudo-class", "pseudo-element"], this.position - 1);
3075
+ }
3076
+ if (this.currToken[tokenize_1.FIELDS.TYPE] === tokens.word) {
3077
+ this.splitWord(false, function(first, length) {
3078
+ pseudoStr += first;
3079
+ _this.newNode(new pseudo_1.default({
3080
+ value: pseudoStr,
3081
+ source: getTokenSourceSpan(startingToken, _this.currToken),
3082
+ sourceIndex: startingToken[tokenize_1.FIELDS.START_POS]
3083
+ }));
3084
+ if (length > 1 && _this.nextToken && _this.nextToken[tokenize_1.FIELDS.TYPE] === tokens.openParenthesis) {
3085
+ _this.error("Misplaced parenthesis.", {
3086
+ index: _this.nextToken[tokenize_1.FIELDS.START_POS]
3087
+ });
3088
+ }
3089
+ });
3090
+ } else {
3091
+ return this.expected(["pseudo-class", "pseudo-element"], this.currToken[tokenize_1.FIELDS.START_POS]);
3092
+ }
3093
+ };
3094
+ Parser3.prototype.space = function() {
3095
+ var content = this.content();
3096
+ 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) {
3097
+ return node.type === "comment";
3098
+ })) {
3099
+ this.spaces = this.optionalSpace(content);
3100
+ this.position++;
3101
+ } else if (this.position === this.tokens.length - 1 || this.nextToken[tokenize_1.FIELDS.TYPE] === tokens.comma || this.nextToken[tokenize_1.FIELDS.TYPE] === tokens.closeParenthesis) {
3102
+ this.current.last.spaces.after = this.optionalSpace(content);
3103
+ this.position++;
3104
+ } else {
3105
+ this.combinator();
3106
+ }
3107
+ };
3108
+ Parser3.prototype.string = function() {
3109
+ var current = this.currToken;
3110
+ this.newNode(new string_1.default({
3111
+ value: this.content(),
3112
+ source: getTokenSource(current),
3113
+ sourceIndex: current[tokenize_1.FIELDS.START_POS]
3114
+ }));
3115
+ this.position++;
3116
+ };
3117
+ Parser3.prototype.universal = function(namespace) {
3118
+ var nextToken = this.nextToken;
3119
+ if (nextToken && this.content(nextToken) === "|") {
3120
+ this.position++;
3121
+ return this.namespace();
3122
+ }
3123
+ var current = this.currToken;
3124
+ this.newNode(new universal_1.default({
3125
+ value: this.content(),
3126
+ source: getTokenSource(current),
3127
+ sourceIndex: current[tokenize_1.FIELDS.START_POS]
3128
+ }), namespace);
3129
+ this.position++;
3130
+ };
3131
+ Parser3.prototype.splitWord = function(namespace, firstCallback) {
3132
+ var _this = this;
3133
+ var nextToken = this.nextToken;
3134
+ var word = this.content();
3135
+ while (nextToken && ~[tokens.dollar, tokens.caret, tokens.equals, tokens.word].indexOf(nextToken[tokenize_1.FIELDS.TYPE])) {
3136
+ this.position++;
3137
+ var current = this.content();
3138
+ word += current;
3139
+ if (current.lastIndexOf("\\") === current.length - 1) {
3140
+ var next = this.nextToken;
3141
+ if (next && next[tokenize_1.FIELDS.TYPE] === tokens.space) {
3142
+ word += this.requiredSpace(this.content(next));
3143
+ this.position++;
3144
+ }
3145
+ }
3146
+ nextToken = this.nextToken;
3147
+ }
3148
+ var hasClass = indexesOf(word, ".").filter(function(i) {
3149
+ var escapedDot = word[i - 1] === "\\";
3150
+ var isKeyframesPercent = /^\d+\.\d+%$/.test(word);
3151
+ return !escapedDot && !isKeyframesPercent;
3152
+ });
3153
+ var hasId = indexesOf(word, "#").filter(function(i) {
3154
+ return word[i - 1] !== "\\";
3155
+ });
3156
+ var interpolations = indexesOf(word, "#{");
3157
+ if (interpolations.length) {
3158
+ hasId = hasId.filter(function(hashIndex) {
3159
+ return !~interpolations.indexOf(hashIndex);
3160
+ });
3161
+ }
3162
+ var indices = (0, sortAscending_1.default)(uniqs(__spreadArray(__spreadArray([0], __read(hasClass), false), __read(hasId), false)));
3163
+ indices.forEach(function(ind, i) {
3164
+ var index = indices[i + 1] || word.length;
3165
+ var value = word.slice(ind, index);
3166
+ if (i === 0 && firstCallback) {
3167
+ return firstCallback.call(_this, value, indices.length);
3168
+ }
3169
+ var node;
3170
+ var current2 = _this.currToken;
3171
+ var sourceIndex = current2[tokenize_1.FIELDS.START_POS] + indices[i];
3172
+ var source = getSource(current2[1], current2[2] + ind, current2[3], current2[2] + (index - 1));
3173
+ if (~hasClass.indexOf(ind)) {
3174
+ var classNameOpts = {
3175
+ value: value.slice(1),
3176
+ source,
3177
+ sourceIndex
3178
+ };
3179
+ node = new className_1.default(unescapeProp(classNameOpts, "value"));
3180
+ } else if (~hasId.indexOf(ind)) {
3181
+ var idOpts = {
3182
+ value: value.slice(1),
3183
+ source,
3184
+ sourceIndex
3185
+ };
3186
+ node = new id_1.default(unescapeProp(idOpts, "value"));
3187
+ } else {
3188
+ var tagOpts = {
3189
+ value,
3190
+ source,
3191
+ sourceIndex
3192
+ };
3193
+ unescapeProp(tagOpts, "value");
3194
+ node = new tag_1.default(tagOpts);
3195
+ }
3196
+ _this.newNode(node, namespace);
3197
+ namespace = null;
3198
+ });
3199
+ this.position++;
3200
+ };
3201
+ Parser3.prototype.word = function(namespace) {
3202
+ var nextToken = this.nextToken;
3203
+ if (nextToken && this.content(nextToken) === "|") {
3204
+ this.position++;
3205
+ return this.namespace();
3206
+ }
3207
+ return this.splitWord(namespace);
3208
+ };
3209
+ Parser3.prototype.loop = function() {
3210
+ while (this.position < this.tokens.length) {
3211
+ this.parse(true);
3212
+ }
3213
+ this.current._inferEndPosition();
3214
+ return this.root;
3215
+ };
3216
+ Parser3.prototype.parse = function(throwOnParenthesis) {
3217
+ switch (this.currToken[tokenize_1.FIELDS.TYPE]) {
3218
+ case tokens.space:
3219
+ this.space();
3220
+ break;
3221
+ case tokens.comment:
3222
+ this.comment();
3223
+ break;
3224
+ case tokens.openParenthesis:
3225
+ this.parentheses();
3226
+ break;
3227
+ case tokens.closeParenthesis:
3228
+ if (throwOnParenthesis) {
3229
+ this.missingParenthesis();
3230
+ }
3231
+ break;
3232
+ case tokens.openSquare:
3233
+ this.attribute();
3234
+ break;
3235
+ case tokens.dollar:
3236
+ case tokens.caret:
3237
+ case tokens.equals:
3238
+ case tokens.word:
3239
+ this.word();
3240
+ break;
3241
+ case tokens.colon:
3242
+ this.pseudo();
3243
+ break;
3244
+ case tokens.comma:
3245
+ this.comma();
3246
+ break;
3247
+ case tokens.asterisk:
3248
+ this.universal();
3249
+ break;
3250
+ case tokens.ampersand:
3251
+ this.nesting();
3252
+ break;
3253
+ case tokens.slash:
3254
+ case tokens.combinator:
3255
+ this.combinator();
3256
+ break;
3257
+ case tokens.str:
3258
+ this.string();
3259
+ break;
3260
+ // These cases throw; no break needed.
3261
+ case tokens.closeSquare:
3262
+ this.missingSquareBracket();
3263
+ case tokens.semicolon:
3264
+ this.missingBackslash();
3265
+ default:
3266
+ this.unexpected();
3267
+ }
3268
+ };
3269
+ Parser3.prototype.expected = function(description, index, found) {
3270
+ if (Array.isArray(description)) {
3271
+ var last = description.pop();
3272
+ description = "".concat(description.join(", "), " or ").concat(last);
3273
+ }
3274
+ var an = /^[aeiou]/.test(description[0]) ? "an" : "a";
3275
+ if (!found) {
3276
+ return this.error("Expected ".concat(an, " ").concat(description, "."), { index });
3277
+ }
3278
+ return this.error("Expected ".concat(an, " ").concat(description, ', found "').concat(found, '" instead.'), { index });
3279
+ };
3280
+ Parser3.prototype.requiredSpace = function(space) {
3281
+ return this.options.lossy ? " " : space;
3282
+ };
3283
+ Parser3.prototype.optionalSpace = function(space) {
3284
+ return this.options.lossy ? "" : space;
3285
+ };
3286
+ Parser3.prototype.lossySpace = function(space, required) {
3287
+ if (this.options.lossy) {
3288
+ return required ? " " : "";
3289
+ } else {
3290
+ return space;
3291
+ }
3292
+ };
3293
+ Parser3.prototype.parseParenthesisToken = function(token) {
3294
+ var content = this.content(token);
3295
+ if (token[tokenize_1.FIELDS.TYPE] === tokens.space) {
3296
+ return this.requiredSpace(content);
3297
+ } else {
3298
+ return content;
3299
+ }
3300
+ };
3301
+ Parser3.prototype.newNode = function(node, namespace) {
3302
+ if (namespace) {
3303
+ if (/^ +$/.test(namespace)) {
3304
+ if (!this.options.lossy) {
3305
+ this.spaces = (this.spaces || "") + namespace;
3306
+ }
3307
+ namespace = true;
3308
+ }
3309
+ node.namespace = namespace;
3310
+ unescapeProp(node, "namespace");
3311
+ }
3312
+ if (this.spaces) {
3313
+ node.spaces.before = this.spaces;
3314
+ this.spaces = "";
3315
+ }
3316
+ return this.current.append(node);
3317
+ };
3318
+ Parser3.prototype.content = function(token) {
3319
+ if (token === void 0) {
3320
+ token = this.currToken;
3321
+ }
3322
+ return this.css.slice(token[tokenize_1.FIELDS.START_POS], token[tokenize_1.FIELDS.END_POS]);
3323
+ };
3324
+ Object.defineProperty(Parser3.prototype, "currToken", {
3325
+ get: function() {
3326
+ return this.tokens[this.position];
3327
+ },
3328
+ enumerable: false,
3329
+ configurable: true
3330
+ });
3331
+ Object.defineProperty(Parser3.prototype, "nextToken", {
3332
+ get: function() {
3333
+ return this.tokens[this.position + 1];
3334
+ },
3335
+ enumerable: false,
3336
+ configurable: true
3337
+ });
3338
+ Object.defineProperty(Parser3.prototype, "prevToken", {
3339
+ get: function() {
3340
+ return this.tokens[this.position - 1];
3341
+ },
3342
+ enumerable: false,
3343
+ configurable: true
3344
+ });
3345
+ Parser3.prototype.locateNextMeaningfulToken = function(startPosition) {
3346
+ if (startPosition === void 0) {
3347
+ startPosition = this.position + 1;
3348
+ }
3349
+ var searchPosition = startPosition;
3350
+ while (searchPosition < this.tokens.length) {
3351
+ if (WHITESPACE_EQUIV_TOKENS[this.tokens[searchPosition][tokenize_1.FIELDS.TYPE]]) {
3352
+ searchPosition++;
3353
+ continue;
3354
+ } else {
3355
+ return searchPosition;
3356
+ }
3357
+ }
3358
+ return -1;
3359
+ };
3360
+ return Parser3;
3361
+ })()
3362
+ );
3363
+ exports.default = Parser2;
3364
+ }
3365
+ });
3366
+
3367
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/processor.js
3368
+ var require_processor = __commonJS({
3369
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/processor.js"(exports) {
3370
+ "use strict";
3371
+ var __importDefault = exports && exports.__importDefault || function(mod) {
3372
+ return mod && mod.__esModule ? mod : { "default": mod };
3373
+ };
3374
+ Object.defineProperty(exports, "__esModule", { value: true });
3375
+ var parser_1 = __importDefault(require_parser());
3376
+ var Processor = (
3377
+ /** @class */
3378
+ (function() {
3379
+ function Processor2(func, options) {
3380
+ this.func = func || function noop() {
3381
+ };
3382
+ this.funcRes = null;
3383
+ this.options = options;
3384
+ }
3385
+ Processor2.prototype._shouldUpdateSelector = function(rule, options) {
3386
+ if (options === void 0) {
3387
+ options = {};
3388
+ }
3389
+ var merged = Object.assign({}, this.options, options);
3390
+ if (merged.updateSelector === false) {
3391
+ return false;
3392
+ } else {
3393
+ return typeof rule !== "string";
3394
+ }
3395
+ };
3396
+ Processor2.prototype._isLossy = function(options) {
3397
+ if (options === void 0) {
3398
+ options = {};
3399
+ }
3400
+ var merged = Object.assign({}, this.options, options);
3401
+ if (merged.lossless === false) {
3402
+ return true;
3403
+ } else {
3404
+ return false;
3405
+ }
3406
+ };
3407
+ Processor2.prototype._root = function(rule, options) {
3408
+ if (options === void 0) {
3409
+ options = {};
3410
+ }
3411
+ var parser = new parser_1.default(rule, this._parseOptions(options));
3412
+ return parser.root;
3413
+ };
3414
+ Processor2.prototype._parseOptions = function(options) {
3415
+ var merged = Object.assign({}, this.options, options);
3416
+ return {
3417
+ lossy: this._isLossy(merged),
3418
+ maxNestingDepth: merged.maxNestingDepth
3419
+ };
3420
+ };
3421
+ Processor2.prototype._stringifyOptions = function(options) {
3422
+ var merged = Object.assign({}, this.options, options);
3423
+ return {
3424
+ maxNestingDepth: merged.maxNestingDepth
3425
+ };
3426
+ };
3427
+ Processor2.prototype._run = function(rule, options) {
3428
+ var _this = this;
3429
+ if (options === void 0) {
3430
+ options = {};
3431
+ }
3432
+ return new Promise(function(resolve2, reject) {
3433
+ try {
3434
+ var root_1 = _this._root(rule, options);
3435
+ Promise.resolve(_this.func(root_1)).then(function(transform) {
3436
+ var string = void 0;
3437
+ if (_this._shouldUpdateSelector(rule, options)) {
3438
+ string = root_1.toString(_this._stringifyOptions(options));
3439
+ rule.selector = string;
3440
+ }
3441
+ return { transform, root: root_1, string };
3442
+ }).then(resolve2, reject);
3443
+ } catch (e) {
3444
+ reject(e);
3445
+ return;
3446
+ }
3447
+ });
3448
+ };
3449
+ Processor2.prototype._runSync = function(rule, options) {
3450
+ if (options === void 0) {
3451
+ options = {};
3452
+ }
3453
+ var root = this._root(rule, options);
3454
+ var transform = this.func(root);
3455
+ if (transform && typeof transform.then === "function") {
3456
+ throw new Error("Selector processor returned a promise to a synchronous call.");
3457
+ }
3458
+ var string = void 0;
3459
+ if (options.updateSelector && typeof rule !== "string") {
3460
+ string = root.toString(this._stringifyOptions(options));
3461
+ rule.selector = string;
3462
+ }
3463
+ return { transform, root, string };
3464
+ };
3465
+ Processor2.prototype.ast = function(rule, options) {
3466
+ return this._run(rule, options).then(function(result) {
3467
+ return result.root;
3468
+ });
3469
+ };
3470
+ Processor2.prototype.astSync = function(rule, options) {
3471
+ return this._runSync(rule, options).root;
3472
+ };
3473
+ Processor2.prototype.transform = function(rule, options) {
3474
+ return this._run(rule, options).then(function(result) {
3475
+ return result.transform;
3476
+ });
3477
+ };
3478
+ Processor2.prototype.transformSync = function(rule, options) {
3479
+ return this._runSync(rule, options).transform;
3480
+ };
3481
+ Processor2.prototype.process = function(rule, options) {
3482
+ var _this = this;
3483
+ return this._run(rule, options).then(function(result) {
3484
+ return result.string || result.root.toString(_this._stringifyOptions(options));
3485
+ });
3486
+ };
3487
+ Processor2.prototype.processSync = function(rule, options) {
3488
+ var result = this._runSync(rule, options);
3489
+ return result.string || result.root.toString(this._stringifyOptions(options));
3490
+ };
3491
+ return Processor2;
3492
+ })()
3493
+ );
3494
+ exports.default = Processor;
3495
+ }
3496
+ });
3497
+
3498
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/constructors.js
3499
+ var require_constructors = __commonJS({
3500
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/constructors.js"(exports) {
3501
+ "use strict";
3502
+ var __importDefault = exports && exports.__importDefault || function(mod) {
3503
+ return mod && mod.__esModule ? mod : { "default": mod };
3504
+ };
3505
+ Object.defineProperty(exports, "__esModule", { value: true });
3506
+ exports.universal = exports.tag = exports.string = exports.selector = exports.root = exports.pseudo = exports.nesting = exports.id = exports.comment = exports.combinator = exports.className = exports.attribute = void 0;
3507
+ var attribute_1 = __importDefault(require_attribute());
3508
+ var className_1 = __importDefault(require_className());
3509
+ var combinator_1 = __importDefault(require_combinator());
3510
+ var comment_1 = __importDefault(require_comment());
3511
+ var id_1 = __importDefault(require_id());
3512
+ var nesting_1 = __importDefault(require_nesting());
3513
+ var pseudo_1 = __importDefault(require_pseudo());
3514
+ var root_1 = __importDefault(require_root());
3515
+ var selector_1 = __importDefault(require_selector());
3516
+ var string_1 = __importDefault(require_string());
3517
+ var tag_1 = __importDefault(require_tag());
3518
+ var universal_1 = __importDefault(require_universal());
3519
+ var attribute = function(opts) {
3520
+ return new attribute_1.default(opts);
3521
+ };
3522
+ exports.attribute = attribute;
3523
+ var className = function(opts) {
3524
+ return new className_1.default(opts);
3525
+ };
3526
+ exports.className = className;
3527
+ var combinator = function(opts) {
3528
+ return new combinator_1.default(opts);
3529
+ };
3530
+ exports.combinator = combinator;
3531
+ var comment = function(opts) {
3532
+ return new comment_1.default(opts);
3533
+ };
3534
+ exports.comment = comment;
3535
+ var id = function(opts) {
3536
+ return new id_1.default(opts);
3537
+ };
3538
+ exports.id = id;
3539
+ var nesting = function(opts) {
3540
+ return new nesting_1.default(opts);
3541
+ };
3542
+ exports.nesting = nesting;
3543
+ var pseudo = function(opts) {
3544
+ return new pseudo_1.default(opts);
3545
+ };
3546
+ exports.pseudo = pseudo;
3547
+ var root = function(opts) {
3548
+ return new root_1.default(opts);
3549
+ };
3550
+ exports.root = root;
3551
+ var selector = function(opts) {
3552
+ return new selector_1.default(opts);
3553
+ };
3554
+ exports.selector = selector;
3555
+ var string = function(opts) {
3556
+ return new string_1.default(opts);
3557
+ };
3558
+ exports.string = string;
3559
+ var tag = function(opts) {
3560
+ return new tag_1.default(opts);
3561
+ };
3562
+ exports.tag = tag;
3563
+ var universal = function(opts) {
3564
+ return new universal_1.default(opts);
3565
+ };
3566
+ exports.universal = universal;
3567
+ }
3568
+ });
3569
+
3570
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/guards.js
3571
+ var require_guards = __commonJS({
3572
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/guards.js"(exports) {
3573
+ "use strict";
3574
+ var _a;
3575
+ Object.defineProperty(exports, "__esModule", { value: true });
3576
+ exports.isUniversal = exports.isTag = exports.isString = exports.isSelector = exports.isRoot = exports.isPseudo = exports.isNesting = exports.isIdentifier = exports.isComment = exports.isCombinator = exports.isClassName = exports.isAttribute = void 0;
3577
+ exports.isNode = isNode;
3578
+ exports.isPseudoElement = isPseudoElement;
3579
+ exports.isPseudoClass = isPseudoClass;
3580
+ exports.isContainer = isContainer;
3581
+ exports.isNamespace = isNamespace;
3582
+ var types_1 = require_types();
3583
+ var IS_TYPE = (_a = {}, _a[types_1.ATTRIBUTE] = true, _a[types_1.CLASS] = true, _a[types_1.COMBINATOR] = true, _a[types_1.COMMENT] = true, _a[types_1.ID] = true, _a[types_1.NESTING] = true, _a[types_1.PSEUDO] = true, _a[types_1.ROOT] = true, _a[types_1.SELECTOR] = true, _a[types_1.STRING] = true, _a[types_1.TAG] = true, _a[types_1.UNIVERSAL] = true, _a);
3584
+ function isNode(node) {
3585
+ return typeof node === "object" && IS_TYPE[node.type];
3586
+ }
3587
+ function isNodeType(type, node) {
3588
+ return isNode(node) && node.type === type;
3589
+ }
3590
+ exports.isAttribute = isNodeType.bind(null, types_1.ATTRIBUTE);
3591
+ exports.isClassName = isNodeType.bind(null, types_1.CLASS);
3592
+ exports.isCombinator = isNodeType.bind(null, types_1.COMBINATOR);
3593
+ exports.isComment = isNodeType.bind(null, types_1.COMMENT);
3594
+ exports.isIdentifier = isNodeType.bind(null, types_1.ID);
3595
+ exports.isNesting = isNodeType.bind(null, types_1.NESTING);
3596
+ exports.isPseudo = isNodeType.bind(null, types_1.PSEUDO);
3597
+ exports.isRoot = isNodeType.bind(null, types_1.ROOT);
3598
+ exports.isSelector = isNodeType.bind(null, types_1.SELECTOR);
3599
+ exports.isString = isNodeType.bind(null, types_1.STRING);
3600
+ exports.isTag = isNodeType.bind(null, types_1.TAG);
3601
+ exports.isUniversal = isNodeType.bind(null, types_1.UNIVERSAL);
3602
+ function isPseudoElement(node) {
3603
+ return (0, exports.isPseudo)(node) && node.value && (node.value.startsWith("::") || node.value.toLowerCase() === ":before" || node.value.toLowerCase() === ":after" || node.value.toLowerCase() === ":first-letter" || node.value.toLowerCase() === ":first-line");
3604
+ }
3605
+ function isPseudoClass(node) {
3606
+ return (0, exports.isPseudo)(node) && !isPseudoElement(node);
3607
+ }
3608
+ function isContainer(node) {
3609
+ return !!(isNode(node) && node.walk);
3610
+ }
3611
+ function isNamespace(node) {
3612
+ return (0, exports.isAttribute)(node) || (0, exports.isTag)(node);
3613
+ }
3614
+ }
3615
+ });
3616
+
3617
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/index.js
3618
+ var require_selectors = __commonJS({
3619
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/selectors/index.js"(exports) {
3620
+ "use strict";
3621
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
3622
+ if (k2 === void 0) k2 = k;
3623
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3624
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3625
+ desc = { enumerable: true, get: function() {
3626
+ return m[k];
3627
+ } };
3628
+ }
3629
+ Object.defineProperty(o, k2, desc);
3630
+ }) : (function(o, m, k, k2) {
3631
+ if (k2 === void 0) k2 = k;
3632
+ o[k2] = m[k];
3633
+ }));
3634
+ var __exportStar = exports && exports.__exportStar || function(m, exports2) {
3635
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
3636
+ };
3637
+ Object.defineProperty(exports, "__esModule", { value: true });
3638
+ __exportStar(require_types(), exports);
3639
+ __exportStar(require_constructors(), exports);
3640
+ __exportStar(require_guards(), exports);
3641
+ }
3642
+ });
3643
+
3644
+ // ../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/index.js
3645
+ var require_dist = __commonJS({
3646
+ "../../node_modules/.bun/postcss-selector-parser@7.1.4/node_modules/postcss-selector-parser/dist/index.js"(exports, module) {
3647
+ "use strict";
3648
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
3649
+ if (k2 === void 0) k2 = k;
3650
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3651
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3652
+ desc = { enumerable: true, get: function() {
3653
+ return m[k];
3654
+ } };
3655
+ }
3656
+ Object.defineProperty(o, k2, desc);
3657
+ }) : (function(o, m, k, k2) {
3658
+ if (k2 === void 0) k2 = k;
3659
+ o[k2] = m[k];
3660
+ }));
3661
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
3662
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
3663
+ }) : function(o, v) {
3664
+ o["default"] = v;
3665
+ });
3666
+ var __importStar = exports && exports.__importStar || /* @__PURE__ */ (function() {
3667
+ var ownKeys = function(o) {
3668
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
3669
+ var ar = [];
3670
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
3671
+ return ar;
3672
+ };
3673
+ return ownKeys(o);
3674
+ };
3675
+ return function(mod) {
3676
+ if (mod && mod.__esModule) return mod;
3677
+ var result = {};
3678
+ if (mod != null) {
3679
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
3680
+ }
3681
+ __setModuleDefault(result, mod);
3682
+ return result;
3683
+ };
3684
+ })();
3685
+ var __importDefault = exports && exports.__importDefault || function(mod) {
3686
+ return mod && mod.__esModule ? mod : { "default": mod };
3687
+ };
3688
+ var processor_1 = __importDefault(require_processor());
3689
+ var selectors = __importStar(require_selectors());
3690
+ var parser = function(processor) {
3691
+ return new processor_1.default(processor);
3692
+ };
3693
+ Object.assign(parser, selectors);
3694
+ delete parser.__esModule;
3695
+ module.exports = parser;
3696
+ }
3697
+ });
3698
+
63
3699
  // ../lint/dist/index.js
64
3700
  var import_postcss_selector_parser = __toESM(require_dist(), 1);
65
3701
  import postcss from "postcss";
@@ -7161,6 +10797,7 @@ function isSnippetFragment(html) {
7161
10797
  }
7162
10798
 
7163
10799
  export {
10800
+ require_dist,
7164
10801
  LINT_RULE_COUNT,
7165
10802
  LINT_RULE_GROUP_COUNTS,
7166
10803
  lintHyperframeHtml,
@@ -7168,3 +10805,8 @@ export {
7168
10805
  shouldBlockRender,
7169
10806
  lintProject
7170
10807
  };
10808
+ /*! Bundled license information:
10809
+
10810
+ cssesc/cssesc.js:
10811
+ (*! https://mths.be/cssesc v3.0.0 by @mathias *)
10812
+ */