@master/css 2.0.0-beta.2 → 2.0.0-beta.200

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 (720) hide show
  1. package/README.md +113 -109
  2. package/dist/bin/index.bundle.js +36 -0
  3. package/dist/bin/index.d.ts +2 -0
  4. package/dist/config/animations.d.ts +110 -0
  5. package/dist/config/functions.d.ts +130 -0
  6. package/dist/config/index.d.ts +73 -0
  7. package/{esm/config/breakpoints.d.ts → dist/config/media-queries.d.ts} +3 -2
  8. package/dist/config/rules.d.ts +279 -0
  9. package/{esm → dist}/config/selectors.d.ts +3 -2
  10. package/dist/config/semantics.d.ts +191 -0
  11. package/dist/config/styles.d.ts +3 -0
  12. package/dist/config/variables.d.ts +129 -0
  13. package/dist/constants/config-esm-text.d.ts +1 -0
  14. package/dist/constants/config-text.d.ts +1 -0
  15. package/dist/constants/config-ts-text.d.ts +1 -0
  16. package/dist/constants/selector-symbols.d.ts +1 -0
  17. package/{esm → dist}/constants/start-symbol.d.ts +2 -1
  18. package/dist/core.d.ts +121 -0
  19. package/dist/functions/fill-color-scale.d.ts +1 -0
  20. package/dist/functions/init-runtime.d.ts +9 -0
  21. package/dist/functions/reorder-for-readable-classes.d.ts +8 -0
  22. package/dist/functions/transform-color-with-opacity.d.ts +1 -0
  23. package/dist/index.browser.bundle.js +1 -0
  24. package/dist/index.browser.d.ts +6 -0
  25. package/dist/index.bundle.js +35 -0
  26. package/dist/index.bundle.mjs +35 -0
  27. package/dist/index.d.ts +11 -0
  28. package/dist/layer.d.ts +11 -0
  29. package/dist/polyfills/css-escape.d.ts +0 -0
  30. package/dist/rule.d.ts +120 -0
  31. package/dist/types/css-declarations.d.ts +4 -0
  32. package/dist/utils/flatten-obj.d.ts +4 -0
  33. package/dist/utils/hex-to-rgb.d.ts +1 -0
  34. package/{esm → dist}/utils/is-plain-object.d.ts +1 -1
  35. package/package.json +1 -77
  36. package/LICENSE +0 -21
  37. package/esm/apis/configure.d.ts +0 -2
  38. package/esm/apis/configure.js +0 -11
  39. package/esm/apis/configure.js.map +0 -1
  40. package/esm/apis/extend.d.ts +0 -5
  41. package/esm/apis/extend.js +0 -61
  42. package/esm/apis/extend.js.map +0 -1
  43. package/esm/apis/fill-color-scale.d.ts +0 -1
  44. package/esm/apis/fill-color-scale.js +0 -60
  45. package/esm/apis/fill-color-scale.js.map +0 -1
  46. package/esm/apis/index.d.ts +0 -7
  47. package/esm/apis/index.js +0 -8
  48. package/esm/apis/index.js.map +0 -1
  49. package/esm/apis/init.d.ts +0 -3
  50. package/esm/apis/init.js +0 -13
  51. package/esm/apis/init.js.map +0 -1
  52. package/esm/apis/render-from-html.d.ts +0 -3
  53. package/esm/apis/render-from-html.js +0 -19
  54. package/esm/apis/render-from-html.js.map +0 -1
  55. package/esm/apis/render-into-html.d.ts +0 -3
  56. package/esm/apis/render-into-html.js +0 -10
  57. package/esm/apis/render-into-html.js.map +0 -1
  58. package/esm/apis/render.d.ts +0 -3
  59. package/esm/apis/render.js +0 -14
  60. package/esm/apis/render.js.map +0 -1
  61. package/esm/config/breakpoints.js +0 -14
  62. package/esm/config/breakpoints.js.map +0 -1
  63. package/esm/config/colors.d.ts +0 -25
  64. package/esm/config/colors.js +0 -266
  65. package/esm/config/colors.js.map +0 -1
  66. package/esm/config/index.d.ts +0 -36
  67. package/esm/config/index.js +0 -22
  68. package/esm/config/index.js.map +0 -1
  69. package/esm/config/root-size.d.ts +0 -2
  70. package/esm/config/root-size.js +0 -3
  71. package/esm/config/root-size.js.map +0 -1
  72. package/esm/config/rules.d.ts +0 -3
  73. package/esm/config/rules.js +0 -390
  74. package/esm/config/rules.js.map +0 -1
  75. package/esm/config/scheme.d.ts +0 -8
  76. package/esm/config/scheme.js +0 -9
  77. package/esm/config/scheme.js.map +0 -1
  78. package/esm/config/selectors.js +0 -20
  79. package/esm/config/selectors.js.map +0 -1
  80. package/esm/config/semantics.d.ts +0 -82
  81. package/esm/config/semantics.js +0 -83
  82. package/esm/config/semantics.js.map +0 -1
  83. package/esm/config/themes.d.ts +0 -2
  84. package/esm/config/themes.js +0 -3
  85. package/esm/config/themes.js.map +0 -1
  86. package/esm/config/values.d.ts +0 -126
  87. package/esm/config/values.js +0 -85
  88. package/esm/config/values.js.map +0 -1
  89. package/esm/constants/start-symbol.js +0 -6
  90. package/esm/constants/start-symbol.js.map +0 -1
  91. package/esm/css.d.ts +0 -77
  92. package/esm/css.js +0 -981
  93. package/esm/css.js.map +0 -1
  94. package/esm/index.d.ts +0 -5
  95. package/esm/index.js +0 -6
  96. package/esm/index.js.map +0 -1
  97. package/esm/polyfills/css-escape.d.ts +0 -2
  98. package/esm/polyfills/css-escape.js +0 -91
  99. package/esm/polyfills/css-escape.js.map +0 -1
  100. package/esm/rule.d.ts +0 -71
  101. package/esm/rule.js +0 -609
  102. package/esm/rule.js.map +0 -1
  103. package/esm/rules/accent-color.d.ts +0 -7
  104. package/esm/rules/accent-color.js +0 -8
  105. package/esm/rules/accent-color.js.map +0 -1
  106. package/esm/rules/align-content.d.ts +0 -6
  107. package/esm/rules/align-content.js +0 -7
  108. package/esm/rules/align-content.js.map +0 -1
  109. package/esm/rules/align-items.d.ts +0 -6
  110. package/esm/rules/align-items.js +0 -7
  111. package/esm/rules/align-items.js.map +0 -1
  112. package/esm/rules/align-self.d.ts +0 -6
  113. package/esm/rules/align-self.js +0 -7
  114. package/esm/rules/align-self.js.map +0 -1
  115. package/esm/rules/animation-delay.d.ts +0 -7
  116. package/esm/rules/animation-delay.js +0 -8
  117. package/esm/rules/animation-delay.js.map +0 -1
  118. package/esm/rules/animation-direction.d.ts +0 -6
  119. package/esm/rules/animation-direction.js +0 -7
  120. package/esm/rules/animation-direction.js.map +0 -1
  121. package/esm/rules/animation-duration.d.ts +0 -7
  122. package/esm/rules/animation-duration.js +0 -8
  123. package/esm/rules/animation-duration.js.map +0 -1
  124. package/esm/rules/animation-fill-mode.d.ts +0 -6
  125. package/esm/rules/animation-fill-mode.js +0 -7
  126. package/esm/rules/animation-fill-mode.js.map +0 -1
  127. package/esm/rules/animation-iteration-count.d.ts +0 -7
  128. package/esm/rules/animation-iteration-count.js +0 -8
  129. package/esm/rules/animation-iteration-count.js.map +0 -1
  130. package/esm/rules/animation-name.d.ts +0 -6
  131. package/esm/rules/animation-name.js +0 -7
  132. package/esm/rules/animation-name.js.map +0 -1
  133. package/esm/rules/animation-play-state.d.ts +0 -6
  134. package/esm/rules/animation-play-state.js +0 -7
  135. package/esm/rules/animation-play-state.js.map +0 -1
  136. package/esm/rules/animation-timing-function.d.ts +0 -6
  137. package/esm/rules/animation-timing-function.js +0 -7
  138. package/esm/rules/animation-timing-function.js.map +0 -1
  139. package/esm/rules/animation.d.ts +0 -8
  140. package/esm/rules/animation.js +0 -9
  141. package/esm/rules/animation.js.map +0 -1
  142. package/esm/rules/appearance.d.ts +0 -5
  143. package/esm/rules/appearance.js +0 -6
  144. package/esm/rules/appearance.js.map +0 -1
  145. package/esm/rules/aspect-radio.d.ts +0 -7
  146. package/esm/rules/aspect-radio.js +0 -8
  147. package/esm/rules/aspect-radio.js.map +0 -1
  148. package/esm/rules/backdrop-filter.d.ts +0 -11
  149. package/esm/rules/backdrop-filter.js +0 -26
  150. package/esm/rules/backdrop-filter.js.map +0 -1
  151. package/esm/rules/background-attachment.d.ts +0 -6
  152. package/esm/rules/background-attachment.js +0 -7
  153. package/esm/rules/background-attachment.js.map +0 -1
  154. package/esm/rules/background-blend-mode.d.ts +0 -5
  155. package/esm/rules/background-blend-mode.js +0 -6
  156. package/esm/rules/background-blend-mode.js.map +0 -1
  157. package/esm/rules/background-clip.d.ts +0 -9
  158. package/esm/rules/background-clip.js +0 -13
  159. package/esm/rules/background-clip.js.map +0 -1
  160. package/esm/rules/background-color.d.ts +0 -8
  161. package/esm/rules/background-color.js +0 -9
  162. package/esm/rules/background-color.js.map +0 -1
  163. package/esm/rules/background-image.d.ts +0 -7
  164. package/esm/rules/background-image.js +0 -8
  165. package/esm/rules/background-image.js.map +0 -1
  166. package/esm/rules/background-origin.d.ts +0 -6
  167. package/esm/rules/background-origin.js +0 -7
  168. package/esm/rules/background-origin.js.map +0 -1
  169. package/esm/rules/background-position.d.ts +0 -7
  170. package/esm/rules/background-position.js +0 -8
  171. package/esm/rules/background-position.js.map +0 -1
  172. package/esm/rules/background-repeat.d.ts +0 -6
  173. package/esm/rules/background-repeat.js +0 -7
  174. package/esm/rules/background-repeat.js.map +0 -1
  175. package/esm/rules/background-size.d.ts +0 -6
  176. package/esm/rules/background-size.js +0 -7
  177. package/esm/rules/background-size.js.map +0 -1
  178. package/esm/rules/background.d.ts +0 -8
  179. package/esm/rules/background.js +0 -9
  180. package/esm/rules/background.js.map +0 -1
  181. package/esm/rules/border-collapse.d.ts +0 -6
  182. package/esm/rules/border-collapse.js +0 -7
  183. package/esm/rules/border-collapse.js.map +0 -1
  184. package/esm/rules/border-color.d.ts +0 -11
  185. package/esm/rules/border-color.js +0 -15
  186. package/esm/rules/border-color.js.map +0 -1
  187. package/esm/rules/border-image-outset.d.ts +0 -5
  188. package/esm/rules/border-image-outset.js +0 -6
  189. package/esm/rules/border-image-outset.js.map +0 -1
  190. package/esm/rules/border-image-repeat.d.ts +0 -6
  191. package/esm/rules/border-image-repeat.js +0 -7
  192. package/esm/rules/border-image-repeat.js.map +0 -1
  193. package/esm/rules/border-image-slice.d.ts +0 -6
  194. package/esm/rules/border-image-slice.js +0 -7
  195. package/esm/rules/border-image-slice.js.map +0 -1
  196. package/esm/rules/border-image-source.d.ts +0 -6
  197. package/esm/rules/border-image-source.js +0 -7
  198. package/esm/rules/border-image-source.js.map +0 -1
  199. package/esm/rules/border-image-width.d.ts +0 -6
  200. package/esm/rules/border-image-width.js +0 -7
  201. package/esm/rules/border-image-width.js.map +0 -1
  202. package/esm/rules/border-image.d.ts +0 -6
  203. package/esm/rules/border-image.js +0 -7
  204. package/esm/rules/border-image.js.map +0 -1
  205. package/esm/rules/border-radius.d.ts +0 -9
  206. package/esm/rules/border-radius.js +0 -74
  207. package/esm/rules/border-radius.js.map +0 -1
  208. package/esm/rules/border-spacing.d.ts +0 -5
  209. package/esm/rules/border-spacing.js +0 -6
  210. package/esm/rules/border-spacing.js.map +0 -1
  211. package/esm/rules/border-style.d.ts +0 -9
  212. package/esm/rules/border-style.js +0 -13
  213. package/esm/rules/border-style.js.map +0 -1
  214. package/esm/rules/border-width.d.ts +0 -9
  215. package/esm/rules/border-width.js +0 -13
  216. package/esm/rules/border-width.js.map +0 -1
  217. package/esm/rules/border.d.ts +0 -10
  218. package/esm/rules/border.js +0 -14
  219. package/esm/rules/border.js.map +0 -1
  220. package/esm/rules/box-decoration-break.d.ts +0 -9
  221. package/esm/rules/box-decoration-break.js +0 -13
  222. package/esm/rules/box-decoration-break.js.map +0 -1
  223. package/esm/rules/box-shadow.d.ts +0 -7
  224. package/esm/rules/box-shadow.js +0 -8
  225. package/esm/rules/box-shadow.js.map +0 -1
  226. package/esm/rules/box-sizing.d.ts +0 -6
  227. package/esm/rules/box-sizing.js +0 -7
  228. package/esm/rules/box-sizing.js.map +0 -1
  229. package/esm/rules/break-after.d.ts +0 -5
  230. package/esm/rules/break-after.js +0 -6
  231. package/esm/rules/break-after.js.map +0 -1
  232. package/esm/rules/break-before.d.ts +0 -5
  233. package/esm/rules/break-before.js +0 -6
  234. package/esm/rules/break-before.js.map +0 -1
  235. package/esm/rules/break-inside.d.ts +0 -5
  236. package/esm/rules/break-inside.js +0 -6
  237. package/esm/rules/break-inside.js.map +0 -1
  238. package/esm/rules/caret-color.d.ts +0 -7
  239. package/esm/rules/caret-color.js +0 -8
  240. package/esm/rules/caret-color.js.map +0 -1
  241. package/esm/rules/clear.d.ts +0 -5
  242. package/esm/rules/clear.js +0 -6
  243. package/esm/rules/clear.js.map +0 -1
  244. package/esm/rules/clip-path.d.ts +0 -6
  245. package/esm/rules/clip-path.js +0 -7
  246. package/esm/rules/clip-path.js.map +0 -1
  247. package/esm/rules/color.d.ts +0 -8
  248. package/esm/rules/color.js +0 -9
  249. package/esm/rules/color.js.map +0 -1
  250. package/esm/rules/column-span.d.ts +0 -6
  251. package/esm/rules/column-span.js +0 -7
  252. package/esm/rules/column-span.js.map +0 -1
  253. package/esm/rules/columns.d.ts +0 -8
  254. package/esm/rules/columns.js +0 -9
  255. package/esm/rules/columns.js.map +0 -1
  256. package/esm/rules/contain.d.ts +0 -5
  257. package/esm/rules/contain.js +0 -6
  258. package/esm/rules/contain.js.map +0 -1
  259. package/esm/rules/content.d.ts +0 -5
  260. package/esm/rules/content.js +0 -6
  261. package/esm/rules/content.js.map +0 -1
  262. package/esm/rules/counter-increment.d.ts +0 -6
  263. package/esm/rules/counter-increment.js +0 -7
  264. package/esm/rules/counter-increment.js.map +0 -1
  265. package/esm/rules/cursor.d.ts +0 -5
  266. package/esm/rules/cursor.js +0 -6
  267. package/esm/rules/cursor.js.map +0 -1
  268. package/esm/rules/cx.d.ts +0 -6
  269. package/esm/rules/cx.js +0 -7
  270. package/esm/rules/cx.js.map +0 -1
  271. package/esm/rules/cy.d.ts +0 -6
  272. package/esm/rules/cy.js +0 -7
  273. package/esm/rules/cy.js.map +0 -1
  274. package/esm/rules/direction.d.ts +0 -5
  275. package/esm/rules/direction.js +0 -6
  276. package/esm/rules/direction.js.map +0 -1
  277. package/esm/rules/display.d.ts +0 -6
  278. package/esm/rules/display.js +0 -7
  279. package/esm/rules/display.js.map +0 -1
  280. package/esm/rules/fill.d.ts +0 -7
  281. package/esm/rules/fill.js +0 -8
  282. package/esm/rules/fill.js.map +0 -1
  283. package/esm/rules/filter.d.ts +0 -8
  284. package/esm/rules/filter.js +0 -20
  285. package/esm/rules/filter.js.map +0 -1
  286. package/esm/rules/flex-basis.d.ts +0 -5
  287. package/esm/rules/flex-basis.js +0 -6
  288. package/esm/rules/flex-basis.js.map +0 -1
  289. package/esm/rules/flex-direction.d.ts +0 -6
  290. package/esm/rules/flex-direction.js +0 -7
  291. package/esm/rules/flex-direction.js.map +0 -1
  292. package/esm/rules/flex-grow.d.ts +0 -6
  293. package/esm/rules/flex-grow.js +0 -7
  294. package/esm/rules/flex-grow.js.map +0 -1
  295. package/esm/rules/flex-shrink.d.ts +0 -6
  296. package/esm/rules/flex-shrink.js +0 -7
  297. package/esm/rules/flex-shrink.js.map +0 -1
  298. package/esm/rules/flex-wrap.d.ts +0 -6
  299. package/esm/rules/flex-wrap.js +0 -7
  300. package/esm/rules/flex-wrap.js.map +0 -1
  301. package/esm/rules/flex.d.ts +0 -7
  302. package/esm/rules/flex.js +0 -8
  303. package/esm/rules/flex.js.map +0 -1
  304. package/esm/rules/float.d.ts +0 -5
  305. package/esm/rules/float.js +0 -6
  306. package/esm/rules/float.js.map +0 -1
  307. package/esm/rules/font-family.d.ts +0 -6
  308. package/esm/rules/font-family.js +0 -7
  309. package/esm/rules/font-family.js.map +0 -1
  310. package/esm/rules/font-size.d.ts +0 -6
  311. package/esm/rules/font-size.js +0 -7
  312. package/esm/rules/font-size.js.map +0 -1
  313. package/esm/rules/font-smoothing.d.ts +0 -9
  314. package/esm/rules/font-smoothing.js +0 -34
  315. package/esm/rules/font-smoothing.js.map +0 -1
  316. package/esm/rules/font-style.d.ts +0 -7
  317. package/esm/rules/font-style.js +0 -8
  318. package/esm/rules/font-style.js.map +0 -1
  319. package/esm/rules/font-variant-numeric.d.ts +0 -6
  320. package/esm/rules/font-variant-numeric.js +0 -7
  321. package/esm/rules/font-variant-numeric.js.map +0 -1
  322. package/esm/rules/font-weight.d.ts +0 -7
  323. package/esm/rules/font-weight.js +0 -8
  324. package/esm/rules/font-weight.js.map +0 -1
  325. package/esm/rules/font.d.ts +0 -8
  326. package/esm/rules/font.js +0 -9
  327. package/esm/rules/font.js.map +0 -1
  328. package/esm/rules/gap.d.ts +0 -9
  329. package/esm/rules/gap.js +0 -17
  330. package/esm/rules/gap.js.map +0 -1
  331. package/esm/rules/grid-area.d.ts +0 -7
  332. package/esm/rules/grid-area.js +0 -8
  333. package/esm/rules/grid-area.js.map +0 -1
  334. package/esm/rules/grid-auto-columns.d.ts +0 -6
  335. package/esm/rules/grid-auto-columns.js +0 -7
  336. package/esm/rules/grid-auto-columns.js.map +0 -1
  337. package/esm/rules/grid-auto-flow.d.ts +0 -6
  338. package/esm/rules/grid-auto-flow.js +0 -7
  339. package/esm/rules/grid-auto-flow.js.map +0 -1
  340. package/esm/rules/grid-auto-rows.d.ts +0 -5
  341. package/esm/rules/grid-auto-rows.js +0 -6
  342. package/esm/rules/grid-auto-rows.js.map +0 -1
  343. package/esm/rules/grid-column-end.d.ts +0 -7
  344. package/esm/rules/grid-column-end.js +0 -8
  345. package/esm/rules/grid-column-end.js.map +0 -1
  346. package/esm/rules/grid-column-start.d.ts +0 -7
  347. package/esm/rules/grid-column-start.js +0 -8
  348. package/esm/rules/grid-column-start.js.map +0 -1
  349. package/esm/rules/grid-column.d.ts +0 -9
  350. package/esm/rules/grid-column.js +0 -14
  351. package/esm/rules/grid-column.js.map +0 -1
  352. package/esm/rules/grid-columns.d.ts +0 -10
  353. package/esm/rules/grid-columns.js +0 -21
  354. package/esm/rules/grid-columns.js.map +0 -1
  355. package/esm/rules/grid-row-end.d.ts +0 -6
  356. package/esm/rules/grid-row-end.js +0 -7
  357. package/esm/rules/grid-row-end.js.map +0 -1
  358. package/esm/rules/grid-row-start.d.ts +0 -6
  359. package/esm/rules/grid-row-start.js +0 -7
  360. package/esm/rules/grid-row-start.js.map +0 -1
  361. package/esm/rules/grid-row.d.ts +0 -9
  362. package/esm/rules/grid-row.js +0 -14
  363. package/esm/rules/grid-row.js.map +0 -1
  364. package/esm/rules/grid-rows.d.ts +0 -9
  365. package/esm/rules/grid-rows.js +0 -21
  366. package/esm/rules/grid-rows.js.map +0 -1
  367. package/esm/rules/grid-template-areas.d.ts +0 -5
  368. package/esm/rules/grid-template-areas.js +0 -6
  369. package/esm/rules/grid-template-areas.js.map +0 -1
  370. package/esm/rules/grid-template-columns.d.ts +0 -6
  371. package/esm/rules/grid-template-columns.js +0 -7
  372. package/esm/rules/grid-template-columns.js.map +0 -1
  373. package/esm/rules/grid-template-rows.d.ts +0 -5
  374. package/esm/rules/grid-template-rows.js +0 -6
  375. package/esm/rules/grid-template-rows.js.map +0 -1
  376. package/esm/rules/grid-template.d.ts +0 -6
  377. package/esm/rules/grid-template.js +0 -7
  378. package/esm/rules/grid-template.js.map +0 -1
  379. package/esm/rules/grid.d.ts +0 -6
  380. package/esm/rules/grid.js +0 -7
  381. package/esm/rules/grid.js.map +0 -1
  382. package/esm/rules/group.d.ts +0 -9
  383. package/esm/rules/group.js +0 -105
  384. package/esm/rules/group.js.map +0 -1
  385. package/esm/rules/height.d.ts +0 -6
  386. package/esm/rules/height.js +0 -7
  387. package/esm/rules/height.js.map +0 -1
  388. package/esm/rules/inset.d.ts +0 -9
  389. package/esm/rules/inset.js +0 -12
  390. package/esm/rules/inset.js.map +0 -1
  391. package/esm/rules/isolation.d.ts +0 -5
  392. package/esm/rules/isolation.js +0 -6
  393. package/esm/rules/isolation.js.map +0 -1
  394. package/esm/rules/justify-content.d.ts +0 -6
  395. package/esm/rules/justify-content.js +0 -7
  396. package/esm/rules/justify-content.js.map +0 -1
  397. package/esm/rules/justify-items.d.ts +0 -6
  398. package/esm/rules/justify-items.js +0 -7
  399. package/esm/rules/justify-items.js.map +0 -1
  400. package/esm/rules/justify-self.d.ts +0 -6
  401. package/esm/rules/justify-self.js +0 -7
  402. package/esm/rules/justify-self.js.map +0 -1
  403. package/esm/rules/letter-spacing.d.ts +0 -7
  404. package/esm/rules/letter-spacing.js +0 -8
  405. package/esm/rules/letter-spacing.js.map +0 -1
  406. package/esm/rules/line-clamp.d.ts +0 -9
  407. package/esm/rules/line-clamp.js +0 -12
  408. package/esm/rules/line-clamp.js.map +0 -1
  409. package/esm/rules/line-height.d.ts +0 -7
  410. package/esm/rules/line-height.js +0 -8
  411. package/esm/rules/line-height.js.map +0 -1
  412. package/esm/rules/lines.d.ts +0 -9
  413. package/esm/rules/lines.js +0 -17
  414. package/esm/rules/lines.js.map +0 -1
  415. package/esm/rules/list-style-image.d.ts +0 -6
  416. package/esm/rules/list-style-image.js +0 -7
  417. package/esm/rules/list-style-image.js.map +0 -1
  418. package/esm/rules/list-style-position.d.ts +0 -6
  419. package/esm/rules/list-style-position.js +0 -7
  420. package/esm/rules/list-style-position.js.map +0 -1
  421. package/esm/rules/list-style-type.d.ts +0 -6
  422. package/esm/rules/list-style-type.js +0 -7
  423. package/esm/rules/list-style-type.js.map +0 -1
  424. package/esm/rules/list-style.d.ts +0 -6
  425. package/esm/rules/list-style.js +0 -7
  426. package/esm/rules/list-style.js.map +0 -1
  427. package/esm/rules/margin.d.ts +0 -9
  428. package/esm/rules/margin.js +0 -14
  429. package/esm/rules/margin.js.map +0 -1
  430. package/esm/rules/mask-image.d.ts +0 -8
  431. package/esm/rules/mask-image.js +0 -12
  432. package/esm/rules/mask-image.js.map +0 -1
  433. package/esm/rules/max-height.d.ts +0 -6
  434. package/esm/rules/max-height.js +0 -7
  435. package/esm/rules/max-height.js.map +0 -1
  436. package/esm/rules/max-width.d.ts +0 -6
  437. package/esm/rules/max-width.js +0 -7
  438. package/esm/rules/max-width.js.map +0 -1
  439. package/esm/rules/min-height.d.ts +0 -6
  440. package/esm/rules/min-height.js +0 -7
  441. package/esm/rules/min-height.js.map +0 -1
  442. package/esm/rules/min-width.d.ts +0 -6
  443. package/esm/rules/min-width.js +0 -7
  444. package/esm/rules/min-width.js.map +0 -1
  445. package/esm/rules/mix-blend-mode.d.ts +0 -6
  446. package/esm/rules/mix-blend-mode.js +0 -7
  447. package/esm/rules/mix-blend-mode.js.map +0 -1
  448. package/esm/rules/object-fit.d.ts +0 -6
  449. package/esm/rules/object-fit.js +0 -7
  450. package/esm/rules/object-fit.js.map +0 -1
  451. package/esm/rules/object-position.d.ts +0 -6
  452. package/esm/rules/object-position.js +0 -7
  453. package/esm/rules/object-position.js.map +0 -1
  454. package/esm/rules/opacity.d.ts +0 -6
  455. package/esm/rules/opacity.js +0 -7
  456. package/esm/rules/opacity.js.map +0 -1
  457. package/esm/rules/order.d.ts +0 -7
  458. package/esm/rules/order.js +0 -9
  459. package/esm/rules/order.js.map +0 -1
  460. package/esm/rules/outline-color.d.ts +0 -7
  461. package/esm/rules/outline-color.js +0 -8
  462. package/esm/rules/outline-color.js.map +0 -1
  463. package/esm/rules/outline-offset.d.ts +0 -5
  464. package/esm/rules/outline-offset.js +0 -6
  465. package/esm/rules/outline-offset.js.map +0 -1
  466. package/esm/rules/outline-style.d.ts +0 -6
  467. package/esm/rules/outline-style.js +0 -7
  468. package/esm/rules/outline-style.js.map +0 -1
  469. package/esm/rules/outline-width.d.ts +0 -6
  470. package/esm/rules/outline-width.js +0 -7
  471. package/esm/rules/outline-width.js.map +0 -1
  472. package/esm/rules/outline.d.ts +0 -7
  473. package/esm/rules/outline.js +0 -8
  474. package/esm/rules/outline.js.map +0 -1
  475. package/esm/rules/overflow.d.ts +0 -9
  476. package/esm/rules/overflow.js +0 -27
  477. package/esm/rules/overflow.js.map +0 -1
  478. package/esm/rules/overscroll-behavior.d.ts +0 -8
  479. package/esm/rules/overscroll-behavior.js +0 -16
  480. package/esm/rules/overscroll-behavior.js.map +0 -1
  481. package/esm/rules/padding.d.ts +0 -9
  482. package/esm/rules/padding.js +0 -14
  483. package/esm/rules/padding.js.map +0 -1
  484. package/esm/rules/place-content.d.ts +0 -6
  485. package/esm/rules/place-content.js +0 -7
  486. package/esm/rules/place-content.js.map +0 -1
  487. package/esm/rules/place-items.d.ts +0 -6
  488. package/esm/rules/place-items.js +0 -7
  489. package/esm/rules/place-items.js.map +0 -1
  490. package/esm/rules/place-self.d.ts +0 -6
  491. package/esm/rules/place-self.js +0 -7
  492. package/esm/rules/place-self.js.map +0 -1
  493. package/esm/rules/placement.d.ts +0 -8
  494. package/esm/rules/placement.js +0 -30
  495. package/esm/rules/placement.js.map +0 -1
  496. package/esm/rules/pointer-events.d.ts +0 -5
  497. package/esm/rules/pointer-events.js +0 -6
  498. package/esm/rules/pointer-events.js.map +0 -1
  499. package/esm/rules/position.d.ts +0 -5
  500. package/esm/rules/position.js +0 -6
  501. package/esm/rules/position.js.map +0 -1
  502. package/esm/rules/quotes.d.ts +0 -5
  503. package/esm/rules/quotes.js +0 -6
  504. package/esm/rules/quotes.js.map +0 -1
  505. package/esm/rules/resize.d.ts +0 -5
  506. package/esm/rules/resize.js +0 -6
  507. package/esm/rules/resize.js.map +0 -1
  508. package/esm/rules/rx.d.ts +0 -6
  509. package/esm/rules/rx.js +0 -7
  510. package/esm/rules/rx.js.map +0 -1
  511. package/esm/rules/ry.d.ts +0 -6
  512. package/esm/rules/ry.js +0 -7
  513. package/esm/rules/ry.js.map +0 -1
  514. package/esm/rules/scroll-behavior.d.ts +0 -5
  515. package/esm/rules/scroll-behavior.js +0 -6
  516. package/esm/rules/scroll-behavior.js.map +0 -1
  517. package/esm/rules/scroll-margin.d.ts +0 -9
  518. package/esm/rules/scroll-margin.js +0 -46
  519. package/esm/rules/scroll-margin.js.map +0 -1
  520. package/esm/rules/scroll-padding.d.ts +0 -9
  521. package/esm/rules/scroll-padding.js +0 -46
  522. package/esm/rules/scroll-padding.js.map +0 -1
  523. package/esm/rules/scroll-snap-align.d.ts +0 -6
  524. package/esm/rules/scroll-snap-align.js +0 -7
  525. package/esm/rules/scroll-snap-align.js.map +0 -1
  526. package/esm/rules/scroll-snap-stop.d.ts +0 -6
  527. package/esm/rules/scroll-snap-stop.js +0 -7
  528. package/esm/rules/scroll-snap-stop.js.map +0 -1
  529. package/esm/rules/scroll-snap-type.d.ts +0 -6
  530. package/esm/rules/scroll-snap-type.js +0 -7
  531. package/esm/rules/scroll-snap-type.js.map +0 -1
  532. package/esm/rules/shape-image-threshold.d.ts +0 -6
  533. package/esm/rules/shape-image-threshold.js +0 -7
  534. package/esm/rules/shape-image-threshold.js.map +0 -1
  535. package/esm/rules/shape-margin.d.ts +0 -6
  536. package/esm/rules/shape-margin.js +0 -7
  537. package/esm/rules/shape-margin.js.map +0 -1
  538. package/esm/rules/shape-outside.d.ts +0 -6
  539. package/esm/rules/shape-outside.js +0 -7
  540. package/esm/rules/shape-outside.js.map +0 -1
  541. package/esm/rules/spacing.d.ts +0 -9
  542. package/esm/rules/spacing.js +0 -49
  543. package/esm/rules/spacing.js.map +0 -1
  544. package/esm/rules/stroke-dasharray.d.ts +0 -5
  545. package/esm/rules/stroke-dasharray.js +0 -6
  546. package/esm/rules/stroke-dasharray.js.map +0 -1
  547. package/esm/rules/stroke-dashoffset.d.ts +0 -5
  548. package/esm/rules/stroke-dashoffset.js +0 -6
  549. package/esm/rules/stroke-dashoffset.js.map +0 -1
  550. package/esm/rules/stroke-width.d.ts +0 -6
  551. package/esm/rules/stroke-width.js +0 -7
  552. package/esm/rules/stroke-width.js.map +0 -1
  553. package/esm/rules/stroke.d.ts +0 -6
  554. package/esm/rules/stroke.js +0 -7
  555. package/esm/rules/stroke.js.map +0 -1
  556. package/esm/rules/table-layout.d.ts +0 -5
  557. package/esm/rules/table-layout.js +0 -6
  558. package/esm/rules/table-layout.js.map +0 -1
  559. package/esm/rules/text-align.d.ts +0 -6
  560. package/esm/rules/text-align.js +0 -7
  561. package/esm/rules/text-align.js.map +0 -1
  562. package/esm/rules/text-decoration-color.d.ts +0 -7
  563. package/esm/rules/text-decoration-color.js +0 -8
  564. package/esm/rules/text-decoration-color.js.map +0 -1
  565. package/esm/rules/text-decoration-line.d.ts +0 -6
  566. package/esm/rules/text-decoration-line.js +0 -7
  567. package/esm/rules/text-decoration-line.js.map +0 -1
  568. package/esm/rules/text-decoration-style.d.ts +0 -6
  569. package/esm/rules/text-decoration-style.js +0 -7
  570. package/esm/rules/text-decoration-style.js.map +0 -1
  571. package/esm/rules/text-decoration-thickness.d.ts +0 -7
  572. package/esm/rules/text-decoration-thickness.js +0 -8
  573. package/esm/rules/text-decoration-thickness.js.map +0 -1
  574. package/esm/rules/text-decoration.d.ts +0 -8
  575. package/esm/rules/text-decoration.js +0 -9
  576. package/esm/rules/text-decoration.js.map +0 -1
  577. package/esm/rules/text-fill-color.d.ts +0 -10
  578. package/esm/rules/text-fill-color.js +0 -13
  579. package/esm/rules/text-fill-color.js.map +0 -1
  580. package/esm/rules/text-indent.d.ts +0 -5
  581. package/esm/rules/text-indent.js +0 -6
  582. package/esm/rules/text-indent.js.map +0 -1
  583. package/esm/rules/text-orientation.d.ts +0 -6
  584. package/esm/rules/text-orientation.js +0 -7
  585. package/esm/rules/text-orientation.js.map +0 -1
  586. package/esm/rules/text-overflow.d.ts +0 -6
  587. package/esm/rules/text-overflow.js +0 -7
  588. package/esm/rules/text-overflow.js.map +0 -1
  589. package/esm/rules/text-rendering.d.ts +0 -6
  590. package/esm/rules/text-rendering.js +0 -7
  591. package/esm/rules/text-rendering.js.map +0 -1
  592. package/esm/rules/text-shadow.d.ts +0 -6
  593. package/esm/rules/text-shadow.js +0 -7
  594. package/esm/rules/text-shadow.js.map +0 -1
  595. package/esm/rules/text-size.d.ts +0 -8
  596. package/esm/rules/text-size.js +0 -18
  597. package/esm/rules/text-size.js.map +0 -1
  598. package/esm/rules/text-stroke-color.d.ts +0 -10
  599. package/esm/rules/text-stroke-color.js +0 -13
  600. package/esm/rules/text-stroke-color.js.map +0 -1
  601. package/esm/rules/text-stroke-width.d.ts +0 -8
  602. package/esm/rules/text-stroke-width.js +0 -11
  603. package/esm/rules/text-stroke-width.js.map +0 -1
  604. package/esm/rules/text-stroke.d.ts +0 -8
  605. package/esm/rules/text-stroke.js +0 -11
  606. package/esm/rules/text-stroke.js.map +0 -1
  607. package/esm/rules/text-transform.d.ts +0 -6
  608. package/esm/rules/text-transform.js +0 -7
  609. package/esm/rules/text-transform.js.map +0 -1
  610. package/esm/rules/text-underline-offset.d.ts +0 -5
  611. package/esm/rules/text-underline-offset.js +0 -6
  612. package/esm/rules/text-underline-offset.js.map +0 -1
  613. package/esm/rules/touch-action.d.ts +0 -5
  614. package/esm/rules/touch-action.js +0 -6
  615. package/esm/rules/touch-action.js.map +0 -1
  616. package/esm/rules/transform-box.d.ts +0 -6
  617. package/esm/rules/transform-box.js +0 -7
  618. package/esm/rules/transform-box.js.map +0 -1
  619. package/esm/rules/transform-origin.d.ts +0 -7
  620. package/esm/rules/transform-origin.js +0 -8
  621. package/esm/rules/transform-origin.js.map +0 -1
  622. package/esm/rules/transform-style.d.ts +0 -6
  623. package/esm/rules/transform-style.js +0 -7
  624. package/esm/rules/transform-style.js.map +0 -1
  625. package/esm/rules/transform.d.ts +0 -9
  626. package/esm/rules/transform.js +0 -45
  627. package/esm/rules/transform.js.map +0 -1
  628. package/esm/rules/transition-delay.d.ts +0 -7
  629. package/esm/rules/transition-delay.js +0 -8
  630. package/esm/rules/transition-delay.js.map +0 -1
  631. package/esm/rules/transition-duration.d.ts +0 -7
  632. package/esm/rules/transition-duration.js +0 -8
  633. package/esm/rules/transition-duration.js.map +0 -1
  634. package/esm/rules/transition-property.d.ts +0 -6
  635. package/esm/rules/transition-property.js +0 -7
  636. package/esm/rules/transition-property.js.map +0 -1
  637. package/esm/rules/transition-timing-function.d.ts +0 -6
  638. package/esm/rules/transition-timing-function.js +0 -7
  639. package/esm/rules/transition-timing-function.js.map +0 -1
  640. package/esm/rules/transition.d.ts +0 -7
  641. package/esm/rules/transition.js +0 -8
  642. package/esm/rules/transition.js.map +0 -1
  643. package/esm/rules/user-drag.d.ts +0 -8
  644. package/esm/rules/user-drag.js +0 -12
  645. package/esm/rules/user-drag.js.map +0 -1
  646. package/esm/rules/user-select.d.ts +0 -8
  647. package/esm/rules/user-select.js +0 -12
  648. package/esm/rules/user-select.js.map +0 -1
  649. package/esm/rules/variable.d.ts +0 -9
  650. package/esm/rules/variable.js +0 -12
  651. package/esm/rules/variable.js.map +0 -1
  652. package/esm/rules/vertical-align.d.ts +0 -6
  653. package/esm/rules/vertical-align.js +0 -7
  654. package/esm/rules/vertical-align.js.map +0 -1
  655. package/esm/rules/visibility.d.ts +0 -5
  656. package/esm/rules/visibility.js +0 -6
  657. package/esm/rules/visibility.js.map +0 -1
  658. package/esm/rules/white-space.d.ts +0 -6
  659. package/esm/rules/white-space.js +0 -7
  660. package/esm/rules/white-space.js.map +0 -1
  661. package/esm/rules/width.d.ts +0 -6
  662. package/esm/rules/width.js +0 -7
  663. package/esm/rules/width.js.map +0 -1
  664. package/esm/rules/will-change.d.ts +0 -5
  665. package/esm/rules/will-change.js +0 -6
  666. package/esm/rules/will-change.js.map +0 -1
  667. package/esm/rules/word-break.d.ts +0 -6
  668. package/esm/rules/word-break.js +0 -7
  669. package/esm/rules/word-break.js.map +0 -1
  670. package/esm/rules/word-spacing.d.ts +0 -6
  671. package/esm/rules/word-spacing.js +0 -7
  672. package/esm/rules/word-spacing.js.map +0 -1
  673. package/esm/rules/writing-mode.d.ts +0 -6
  674. package/esm/rules/writing-mode.js +0 -7
  675. package/esm/rules/writing-mode.js.map +0 -1
  676. package/esm/rules/x.d.ts +0 -6
  677. package/esm/rules/x.js +0 -7
  678. package/esm/rules/x.js.map +0 -1
  679. package/esm/rules/y.d.ts +0 -6
  680. package/esm/rules/y.js +0 -7
  681. package/esm/rules/y.js.map +0 -1
  682. package/esm/rules/z-index.d.ts +0 -7
  683. package/esm/rules/z-index.js +0 -8
  684. package/esm/rules/z-index.js.map +0 -1
  685. package/esm/utils/concat-arrays.js +0 -8
  686. package/esm/utils/concat-arrays.js.map +0 -1
  687. package/esm/utils/get-border-props.d.ts +0 -3
  688. package/esm/utils/get-border-props.js +0 -44
  689. package/esm/utils/get-border-props.js.map +0 -1
  690. package/esm/utils/get-css-property-text.d.ts +0 -5
  691. package/esm/utils/get-css-property-text.js +0 -8
  692. package/esm/utils/get-css-property-text.js.map +0 -1
  693. package/esm/utils/get-type.js +0 -10
  694. package/esm/utils/get-type.js.map +0 -1
  695. package/esm/utils/hex-to-rgb.d.ts +0 -1
  696. package/esm/utils/hex-to-rgb.js +0 -8
  697. package/esm/utils/hex-to-rgb.js.map +0 -1
  698. package/esm/utils/is-plain-object.js +0 -13
  699. package/esm/utils/is-plain-object.js.map +0 -1
  700. package/esm/utils/is-symbol.js +0 -11
  701. package/esm/utils/is-symbol.js.map +0 -1
  702. package/esm/utils/normalize-css-calc-text.d.ts +0 -5
  703. package/esm/utils/normalize-css-calc-text.js +0 -56
  704. package/esm/utils/normalize-css-calc-text.js.map +0 -1
  705. package/esm/utils/parse-value-unit.d.ts +0 -2
  706. package/esm/utils/parse-value-unit.js +0 -48
  707. package/esm/utils/parse-value-unit.js.map +0 -1
  708. package/esm/utils/parse-value.d.ts +0 -6
  709. package/esm/utils/parse-value.js +0 -84
  710. package/esm/utils/parse-value.js.map +0 -1
  711. package/esm/utils/rgb-to-hex.js +0 -4
  712. package/esm/utils/rgb-to-hex.js.map +0 -1
  713. package/index.cjs.js +0 -3
  714. package/index.cjs.js.map +0 -7
  715. package/index.js +0 -3
  716. package/index.js.map +0 -7
  717. /package/{esm → dist}/utils/concat-arrays.d.ts +0 -0
  718. /package/{esm → dist}/utils/get-type.d.ts +0 -0
  719. /package/{esm → dist}/utils/is-symbol.d.ts +0 -0
  720. /package/{esm → dist}/utils/rgb-to-hex.d.ts +0 -0
package/dist/core.d.ts ADDED
@@ -0,0 +1,121 @@
1
+ import { Rule, NativeRule, RuleDefinition } from './rule';
2
+ import type { Config, AnimationDefinitions } from './config';
3
+ type VariableValue = {
4
+ type: 'string';
5
+ value: string;
6
+ } | {
7
+ type: 'number';
8
+ value: number;
9
+ } | {
10
+ type: 'color';
11
+ value: string;
12
+ space: 'rgb' | 'hsl';
13
+ };
14
+ export type Variable = Omit<VariableValue, 'value' | 'space'> & {
15
+ value?: any;
16
+ space?: any;
17
+ usage?: number;
18
+ themes?: {
19
+ [theme: string]: VariableValue;
20
+ };
21
+ };
22
+ export interface MasterCSS {
23
+ readonly style: HTMLStyleElement;
24
+ readonly host: Element;
25
+ readonly root: Document | ShadowRoot;
26
+ styles: Record<string, string[]>;
27
+ stylesBy: Record<string, string[]>;
28
+ selectors: Record<string, [RegExp, string[]][]>;
29
+ variables: Record<string, Variable>;
30
+ mediaQueries: Record<string, string | number>;
31
+ variablesNativeRules: Record<string, NativeRule>;
32
+ hasKeyframesRule: boolean;
33
+ animations: Record<string, AnimationDefinitions & {
34
+ usage?: number;
35
+ native?: NativeRule;
36
+ }>;
37
+ }
38
+ export declare class MasterCSS {
39
+ customConfig: Config;
40
+ static config: Config;
41
+ static refresh: (customConfig: Config) => void;
42
+ readonly rules: Rule[];
43
+ readonly ruleBy: Record<string, Rule>;
44
+ readonly classesUsage: {};
45
+ readonly observing = false;
46
+ readonly config: Config;
47
+ private readonly semanticRuleOptions;
48
+ private readonly ruleOptions;
49
+ observer: MutationObserver;
50
+ constructor(customConfig?: Config);
51
+ resolve(): void;
52
+ /**
53
+ * Observe the DOM for changes and update the running stylesheet. (browser only)
54
+ * @param targetRoot root element to observe. default: document
55
+ * @param options mutation observer options
56
+ * @returns this
57
+ */
58
+ observe(targetRoot: Document | ShadowRoot | null | undefined, options?: MutationObserverInit): this;
59
+ disconnect(): void;
60
+ /**
61
+ * Match check if Master CSS class syntax
62
+ * @param syntax class syntax
63
+ * @returns css text
64
+ */
65
+ match(syntax: string): RuleDefinition;
66
+ /**
67
+ * Create rules from class syntax
68
+ * @param syntax class syntax
69
+ * @returns Rule[]
70
+ */
71
+ create(syntax: string): Rule[];
72
+ /**
73
+ * 根據蒐集到的所有 DOM class 重新 create
74
+ */
75
+ refresh(customConfig?: Config): void;
76
+ destroy(): void;
77
+ /**
78
+ * 透過類名來刪除對應的 rules
79
+ */
80
+ delete(className: string): void;
81
+ /**
82
+ * 依類名插入規則
83
+ */
84
+ insert(syntax: string): boolean;
85
+ /**
86
+ * 加工插入規則
87
+ * 1. where
88
+ * 2. normal
89
+ * 3. where selectors
90
+ * 4. normal selectors
91
+ * 5. media where
92
+ * 6. media normal
93
+ * 7. media where selectors
94
+ * 8. media selectors
95
+ * 9. media width where
96
+ * 10. media width
97
+ * 11. media width where selectors
98
+ * 12. media width selectors
99
+ */
100
+ render(rules: Rule[]): void;
101
+ get text(): string;
102
+ private getExtendedConfig;
103
+ private handleRuleWithAnimationNames;
104
+ private handleRuleWithVariableNames;
105
+ private pushVariableNativeRule;
106
+ }
107
+ declare global {
108
+ interface Window {
109
+ MasterCSS: typeof MasterCSS;
110
+ masterCSSConfig: Config;
111
+ masterCSSs: MasterCSS[];
112
+ masterCSS: MasterCSS;
113
+ }
114
+ namespace NodeJS {
115
+ interface Global {
116
+ MasterCSS: typeof MasterCSS;
117
+ masterCSSs: MasterCSS[];
118
+ }
119
+ }
120
+ }
121
+ export {};
@@ -0,0 +1 @@
1
+ export default function fillColorScale(data: any): any;
@@ -0,0 +1,9 @@
1
+ import { MasterCSS } from '../core';
2
+ import type { Config } from '../config';
3
+ /**
4
+ * Initialize a new MasterCSS instance and observe the target root
5
+ * @param config master css config
6
+ * @param targetRoot target root to observe
7
+ * @returns master css instance
8
+ */
9
+ export default function initRuntime(config?: Config, targetRoot?: Document | ShadowRoot | null): MasterCSS;
@@ -0,0 +1,8 @@
1
+ import type { Config } from '../config';
2
+ /**
3
+ * Sorts classes in a consistent order
4
+ * @param classes
5
+ * @param config
6
+ * @returns consistent classes
7
+ */
8
+ export default function reorderForReadableClasses(classes: string[], config?: Config): string[];
@@ -0,0 +1 @@
1
+ export declare function transformColorWithOpacity(color: string, opacityStr: string): string;
@@ -0,0 +1 @@
1
+ (()=>{function ae(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ne(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function se(t){let e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=se(r):ae(r)?e[n]=ne(r):e[n]=X({},r):e[n]=r}),e}function re(t,e){return e==="__proto__"?void 0:t[e]}function X(...t){let e={},r,n;return t.forEach(function(y){typeof y!="object"||y===null||Array.isArray(y)||Object.keys(y).forEach(function(s){if(n=re(e,s),r=re(y,s),r!==e)if(typeof r!="object"||r===null){e[s]=r;return}else if(Array.isArray(r)){e[s]=se(r);return}else if(ae(r)){e[s]=ne(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[s]=X({},r);return}else{e[s]=X(n,r);return}})}),e}var F={"(":")","'":"'",'"':'"',"{":"}"};function Z(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,n=-1,y="",s,l=e.charCodeAt(0);if(r==1&&l==45)return"\\"+e;for(;++n<r;){if(s=e.charCodeAt(n),s==0){y+="\uFFFD";continue}if(s>=1&&s<=31||s==127||n==0&&s>=48&&s<=57||n==1&&s>=48&&s<=57&&l==45){y+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){y+=e.charAt(n);continue}y+="\\"+e.charAt(n)}return y}var ye=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ee=class{constructor(e,r={},n){this.className=e;this.definition=r;this.css=n;let{layer:y,unit:s,colored:l,analyze:m,transformValue:u,declare:f,transformValueComponents:o,create:d,order:p,id:b}=r;this.order=p,this.layer=y,r.unit||(r.unit=""),r.separators||(r.separators=[","]);let{scope:c,important:g,themeDriver:a}=n.config,{selectors:i,mediaQueries:h,stylesBy:C,animations:v}=n,D=C[e];d&&d.call(this,e),this.declarations=r.declarations;let x,R;if(this.colored=l,y===-8)x=e.slice(b.length-1);else{let k;if(m)[k,R]=m.call(this,e);else{let w=e.indexOf(":");this.prefix=e.slice(0,w+1),k=e.slice(w+1)}this.valueComponents=[],x=k.slice(this.parseValue(this.valueComponents,0,k,s))}x[0]==="!"&&(this.important=!0,x=x.slice(1)),this.stateToken=x;let N=(k,w)=>{let z=(S,j,V,M)=>{for(let[B,I]of j)if(B.test(S)){for(let L of I)z(S.replace(B,L),j,V,!0);return}M&&V.push(S)},P=S=>{let j=S.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((I,L)=>L%3?I:I.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),V=[],M="",B=0;for(let I=0;I<j.length;I++){let L=j[I];if(L==="\\"){M+=L+j[++I];continue}!B&&L===","?(V.push(M),M=""):(M+=L,B&&L===")"?B--:L==="("&&B++)}return M&&V.push(M),V},$=[];""in i?z(k,i[""],$,!0):$.push(k);let A={};for(let[S,j]of Object.entries(i)){if(!S)continue;let V=[];for(let M of $)z(M,j,V,!1);V.length&&(A[S]=V)}let U=(S,j)=>{let V=j.reduce((M,B)=>(M.push(...P(B)),M),[]);S in w?w[S].push(...V):w[S]=V},_=Object.keys(A);if(_.length)for(let S of _)U(S,A[S]);else U("",$)};R?(this.vendorPrefixSelectors={},N(R,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let O=x.split("@"),T=O[0];if(T){this.vendorSuffixSelectors={},N(T,this.vendorSuffixSelectors);for(let k of Object.values(this.vendorSuffixSelectors))for(let w of k){this.hasWhere!==!1&&(this.hasWhere=w.includes(":where("));let z=[":disabled",":active",":focus",":hover"];for(let P=0;P<z.length;P++)if(w.includes(z[P])){(this.priority===-1||this.priority>P)&&(this.priority=P);break}}}else this.vendorSuffixSelectors={"":[""]};let W={},ge=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),ie=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(ge)W[""]=ie?[""]:Object.keys(this.vendorSuffixSelectors);else if(ie)for(let k in this.vendorPrefixSelectors)W[k]=[""];else for(let k in this.vendorPrefixSelectors){let w=W[k]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,k))w.push(k);else for(let z in this.vendorSuffixSelectors)w.push(z)}for(let k=1;k<O.length;k++){let w=O[k];if(w)if(w==="rtl"||w==="ltr")this.direction=w;else{let z,P,$=ye.exec(w);if($)z=$[1],P=w.slice(z.length);else{this.media={token:w,features:{}};let A=[],U=S=>{if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")A.push("(orientation:"+S+")");else if(S==="motion"||S==="reduced-motion")A.push("(prefers-reduced-motion:"+(S==="motion"?"no-preference":"reduce")+")");else{let j=h[S];if(j&&typeof j=="string")A.push(j);else{let V="",M="",B=0;S.startsWith("<=")?(M="<=",V="max-width"):S.startsWith(">=")||j?(M=">=",V="min-width"):S.startsWith(">")?(M=">",V="min-width",B=.02):S.startsWith("<")&&(M="<",V="max-width",B=-.02);let I=M?S.replace(M,""):S,L=h[I];switch(V){case"max-width":case"min-width":let Q={};typeof L=="number"?Q={type:"number",value:L+B,unit:"px"}:(Q=this.parseValueComponent(I,"px"),Q.type==="number"&&Q.unit==="px"&&(Q.value+=B)),this.media.features[V]=Q,Q.type==="number"?A.push("("+V+":"+(Q.value+Q.unit)+")"):A.push("("+V+":"+Q.value+")");break}}}},_=w.includes("&");if(_){let S=w.split("&");for(let j of S)U(j)}else U(w);if(this.media.type&&(P=this.media.type),A.length&&(P=A.join(" and ")),P)z="media";else if(!_){this.theme=w;continue}}P&&(this.at[z]=(z in this.at?this.at[z]+" and ":"")+P.replace(/\|/g," "))}}let H;if(this.valueComponents)if(o&&(this.valueComponents=o.call(this,this.valueComponents)),H=this.resolveValue(this.valueComponents,s,[]),u&&(H=u.call(this,H,this.css.config)),f){let k,w;this.declarations=f.call(this,w?k:H,w||"")}else b&&(this.declarations={[b]:H});let te=[];for(let k in this.declarations){let w=$=>{if(v&&($.startsWith("animation")||$.startsWith("animation-name"))){let A=$.split(":")[1].split("!important")[0].split(" ").filter(U=>U in this.css.animations&&(!this.animationNames||!this.animationNames.includes(U)));A.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...A))}te.push($+((this.important||g)&&!$.endsWith("!important")?"!important":""))},z=k+":",P=this.declarations[k];if(typeof P=="object")for(let $ of P)w(z+$.toString());else w(z+P.toString())}if(te.length)for(let k in W)for(let w of W[k]){let z="";this.direction&&(z+="[dir="+this.direction+"] ");let P=this.vendorPrefixSelectors[k],$=this.vendorSuffixSelectors[w],A=P.map(S=>S+z),U=S=>A.map(j=>(this.theme&&a!=="media"?a==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(c?c+" ":"")+j).reduce((j,V)=>(j.push($.reduce((M,B)=>(M.push(V+"."+Z(S)+B),M),[]).join(",")),j),[]).join(","),_=U(e)+(D?D.reduce((S,j)=>S+","+U(j),""):"")+"{"+te.join(";")+"}";for(let S of Object.keys(this.at).sort((j,V)=>V==="supports"?-1:1))_="@"+S+(S.includes(" ")?"":" ")+this.at[S]+"{"+_+"}";this.theme&&a==="media"&&(_=`@media(prefers-color-scheme:${this.theme}){`+_+"}"),this.natives.push({text:_})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;colored=!1;animationNames;variableNames;resolveValue=(e,r,n)=>{let{functions:y}=this.css.config,s="";for(let l of e)switch(l.type){case"function":let m=y&&y[l.name];if(m?.transform){let f=m.transform.call(this,this.resolveValue(l.children,m.unit??r,n),n);s+=typeof f=="string"?f:this.resolveValue(f,m?.unit??r,n)}else s+=l.name+l.symbol+this.resolveValue(l.children,m?.unit??r,n)+F[l.symbol];break;case"variable":let u=this.css.variables[l.name];if(u){let f=(o,d)=>{if(u.themes)if(this.theme){let p=u.themes[this.theme]??u;p?.value&&o(p)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(l.name)||this.variableNames.push(l.name),d();else o(u)};switch(u.type){case"string":f(d=>{let p=[];this.parseValue(p,0,d.value,r,void 0,void 0,[...n,l.name]),s+=this.resolveValue(p,r,[...n,l.name])},()=>{s+=`var(--${l.name})`});break;case"number":f(d=>{let p=this.parseValueComponent(d.value,r);s+=p.value+(p.unit??"")},()=>{s+=r?`calc(var(--${l.name}) / 16 * 1rem)`:`var(--${l.name})`});break;case"color":let o=l.alpha?"/"+l.alpha:"";f(d=>{s+=`${d.space}(${d.value}${o})`},()=>{s+=`${u.space}(var(--${l.name})${o})`});break}}else s+=`var(--${l.name}${l.fallback?","+l.fallback:""})`;break;case"separator":s+=l.text||l.value;break;case"number":s+=l.value+l.unit;break;default:s+=l.value;break}return s};get text(){return this.natives.map(e=>e.text).join("")}parseValue=(e,r,n,y,s,l=void 0,m=[])=>{let u=l===void 0,f=!u&&(l.endsWith("$")||l.endsWith("var")),d=(g=>g==="'"||g==='"')(s),p=[","];this.definition.separators.length&&p.push(...this.definition.separators);let b="",c=()=>{if(b){let g=!1;if(!f||e.length){let a=(i,h)=>{let C=Object.prototype.hasOwnProperty.call(this.definition.resolvedVariables,i)?this.definition.resolvedVariables[i]:Object.prototype.hasOwnProperty.call(this.css.variables,i)?this.css.variables[i]:void 0;if(C){let v=C.name??i;if(!m.includes(v)){g=!0;let D={type:"variable",name:v,variable:this.css.variables[v]};h&&(D.alpha=h),e.push(D)}}};if(a(b),!g&&this.colored){let[i,h]=b.split("/");a(i,h)}}g||e.push(this.parseValueComponent(b,y)),b=""}};for(;r<n.length;r++){let g=n[r];if(g===s){if(d){let a=0;for(let i=b.length-1;b[i]==="\\";i--)a++;if(a%2){b+=g;continue}else c()}else c();return r}else if(!d&&g in F){let a=b,i={type:"function",name:a,symbol:g,children:[]};e.push(i),b="";let h=g==="("&&this.css.config.functions?.[a];!this.colored&&h?.colored&&(this.colored=!0),r=this.parseValue(i.children,++r,n,h?.unit??y,F[g],a||l||"")}else if((g==="|"||g===" ")&&s!=="}"&&(!d||l==="path"))c(),e.push({type:"separator",value:" "});else{if(!d){if(g===".")if(isNaN(+n[r+1])){if(u)break}else n[r-1]==="-"&&(b+="0");else if(p.includes(g)){c(),e.push({type:"separator",value:g,text:(g===","?"":" ")+g+(g===","?"":" ")});continue}else if(u&&(g==="#"&&(b||e.length&&e[e.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(g)))break}b+=g}}return c(),r};parseValueComponent(e,r=this.definition.unit){let n=r??this.definition.unit,y="",s;if(typeof e=="number")return n&&!y?((n==="rem"||n==="em")&&(s=e/this.css.config.rootSize),y=n||""):s=e,{value:s,unit:y,type:"number"};if(n){if(/^\d+\/\d+/.test(e)){let[m,u]=e.split("/");return{value:+m/+u*100,unit:"%",type:"number"}}let l=e.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(l)return s=+l[1],y=l[3]||"",y||((n==="rem"||n==="em")&&(s=s/this.css.config.rootSize),y=n||""),{value:s,unit:y,type:"number"}}return{value:e,type:"string"}}};var be={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},oe=be;var ve={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},le=ve;var Re={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},ce=Re;var Ce={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}},fe=Ce;function K(t){t.startsWith("#")&&(t=t.slice(1));let e,r,n,y;return t.length===3||t.length===4?(e=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),y=t.length===4?Math.round(parseInt(t[3]+t[3],16)/255*100)/100:1):(t.length===6||t.length===8)&&(e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),n=parseInt(t.slice(4,6),16),y=t.length===8?Math.round(parseInt(t.slice(6,8),16)/255*100)/100:1),[e,r,n,y]}function ue(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function E(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let n in t)if(n&&+n>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let n=0,y="0"in t?K(t[0]):[0,0,0],s,l,m=[],u=()=>{let f=s-n,o=l.map((d,p)=>(d-y[p])/f);for(let d of m){let p=d-n,b=y.map((c,g)=>Math.round(c+o[g]*p));t[d]="#"+ue.call(this,...b)}};for(let f=1;f<100;f++)f in t?(m.length?(s=f,l=K(t[f]),u(),m.length=0,y=l):y=K(t[f]),n=f):m.push(f);m.length&&(s=100,l="100"in t?K(t[100]):[255,255,255],u())}return e||(t[""]=t[r?"500":"50"]),t}var xe={font:{family:{mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"]},weight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},sizing:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560,full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},flex:{direction:{col:"column","col-reverse":"column-reverse"}},box:{sizing:{content:"content-box",border:"border-box"}},position:{abs:"absolute",rel:"relative"},transform:{box:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},animation:{direction:{alt:"alternate","alt-reverse":"alternate-reverse"}},background:{clip:{content:"content-box",border:"border-box",padding:"padding-box"},origin:{content:"content-box",border:"border-box",padding:"padding-box"}},order:{first:-999999,last:999999},shape:{outside:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},clip:{path:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box",black:"#000000"}},black:"#000000",white:"#ffffff",current:"currentColor",slate:E({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:E({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:E({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:E({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:E({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:E({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:E({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:E({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:E({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:E({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:E({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:E({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:E({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:E({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:E({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:E({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:E({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:E({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:E({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:E({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},de=xe;var Y=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],q=function(t){return t.length<2||t.find(r=>r.type==="string"&&Y.includes(r.value)||r.type==="variable"&&Y.includes(r.variable.value))||t.push({type:"separator",value:" "},{type:"string",value:"solid"}),t},Se={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=u=>{let f=u.indexOf(":");f!==-1&&(e[u.slice(0,f)]=u.slice(f+1))},n=u=>{let f=o=>{let d=o.slice(Z(u.className).length).match(/\{(.*)\}/)[1].split(";");for(let p of d)r(p)};for(let o of u.natives)f(o.text);if(u.animationNames){this.animationNames||(this.animationNames=[]);for(let o of u.animationNames)this.animationNames.includes(o)||this.animationNames.push(o)}if(u.variableNames){this.variableNames||(this.variableNames=[]);for(let o of u.variableNames)this.variableNames.includes(o)||this.variableNames.push(o)}},y=[],s="",l=()=>{s&&(y.push(s.replace(/ /g,"|")),s="")},m=1;(function u(f){for(;m<t.length;m++){let o=t[m];if(!f){if(o===";"){l();continue}if(o==="}")break}if(s+=o,f===o){if(f==="'"||f==='"'){let d=0;for(let p=s.length-2;s[p]==="\\";p--)d++;if(d%2)continue}break}else o in F&&f!=="'"&&f!=='"'&&(m++,u(F[o]))}})(void 0),l();for(let u of y){let f=this.css.create(u);if(f.length)for(let o of f)n(o);else r(u)}return e}},variable:{match:/^\$[\w-]+:/,colored:!0,layer:-1,declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},"font-size":{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-3},"font-weight":{match:["f(?:ont)?",["bolder"]],layer:-3},"font-family":{match:["f(?:ont)?"],layer:-3},"font-smoothing":{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-3,declare(t){switch(t){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},"font-style":{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-3,unit:"deg"},"font-variant-numeric":{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-3},"font-variant":{layer:-7},"font-feature-settings":{match:/^font-feature:/,layer:-3},font:{match:/^f:/,layer:-7,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},color:{match:/^(?:color|fg|foreground):/,layer:-3,colored:!0},"margin-left":{match:/^ml:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-right":{match:/^mr:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-top":{match:/^mt:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-bottom":{match:/^mb:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-x":{match:/^(?:mx|margin-x):/,unit:"rem",layer:-5,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}},variables:["spacing"]},"margin-y":{match:/^(?:my|margin-y):/,unit:"rem",layer:-5,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}},variables:["spacing"]},margin:{match:/^m:/,unit:"rem",layer:-7,variables:["spacing"]},"margin-inline-start":{match:/^mis:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline-end":{match:/^mie:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline":{match:/^mi:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-left":{match:/^pl:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-right":{match:/^pr:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-top":{match:/^pt:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-bottom":{match:/^pb:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-x":{match:/^(?:px|padding-x):/,unit:"rem",layer:-5,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}},variables:["spacing"]},"padding-y":{match:/^(?:py|padding-y):/,unit:"rem",layer:-5,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}},variables:["spacing"]},padding:{match:/^p:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-inline-start":{match:/^pis:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline-end":{match:/^pie:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline":{match:/^pi:/,unit:"rem",layer:-7,variables:["spacing"]},"flex-basis":{variables:["sizing"],unit:"rem",layer:-3},"flex-wrap":{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-3},"flex-grow":{layer:-3},"flex-shrink":{layer:-3},"flex-direction":{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-3},flex:{layer:-7},display:{match:/^d:/,layer:-3},width:{match:/^w:/,unit:"rem",layer:-3,variables:["sizing"]},height:{match:/^h:/,unit:"rem",layer:-3,variables:["sizing"]},"min-width":{match:/^min-w:/,unit:"rem",layer:-3,variables:["sizing"]},"min-height":{match:/^min-h:/,unit:"rem",layer:-3,variables:["sizing"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-5,unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},"min-box":{match:/^min:/,layer:-5,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},"max-box":{match:/^max:/,layer:-5,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},"box-sizing":{match:/^box:/,layer:-3},"box-decoration-break":{match:["sizing",["slice","clone"]],layer:-3,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},contain:{layer:-3},content:{layer:-3},"counter-increment":{layer:-3},"counter-reset":{layer:-3},"letter-spacing":{match:/^ls:/,layer:-3,unit:"em"},"line-height":{match:/^lh:/,layer:-3},"object-fit":{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-3},"object-position":{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-3},"text-align":{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-3},"text-decoration-color":{match:["text-decoration"],layer:-3,colored:!0},"text-decoration-style":{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-3},"text-decoration-thickness":{match:["text-decoration",["from-font"]],numeric:!0,layer:-3,unit:"em"},"text-decoration-line":{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-3},"text-decoration":{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-7},"text-underline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"text-overflow":{match:["t(?:ext)?",["ellipsis","clip"]],layer:-3},"text-orientation":{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-3},"text-transform":{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-3},"text-rendering":{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-3},"text-indent":{unit:"rem",layer:-3},"vertical-align":{match:/^(?:v|vertical):/,layer:-3},columns:{match:/^(?:columns|cols):/,layer:-7},"white-space":{layer:-3},top:{layer:-3,unit:"rem",variables:["spacing"]},bottom:{layer:-3,unit:"rem",variables:["spacing"]},left:{layer:-3,unit:"rem",variables:["spacing"]},right:{layer:-3,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:-7,variables:["spacing"]},lines:{match:/^lines:/,declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},"max-height":{match:/^max-h:/,unit:"rem",layer:-3,variables:["sizing"]},"max-width":{match:/^max-w:/,unit:"rem",layer:-3,variables:["sizing"]},opacity:{layer:-3},visibility:{layer:-3},clear:{layer:-3},float:{layer:-3},isolation:{layer:-3},"overflow-x":{layer:-3,declare(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},"overflow-y":{layer:-3,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{layer:-7,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},"overscroll-behavior-x":{layer:-3},"overscroll-behavior-y":{layer:-3},"overscroll-behavior":{layer:-7},"z-index":{match:/^z:/,layer:-3},position:{layer:-3},cursor:{layer:-3},"pointer-events":{layer:-3},resize:{layer:-3},"touch-action":{layer:-3},"word-break":{layer:-3},"word-spacing":{layer:-3,unit:"em"},"user-drag":{layer:-3,declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},"user-select":{layer:-3,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},"text-shadow":{unit:"rem",layer:-3,colored:!0},"text-size":{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},"text-fill-color":{match:["(?:text-fill|text|t)"],layer:-3,colored:!0,declare(t,e){return{"-webkit-text-fill-color":t+e}}},"text-stroke-width":{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-3,declare(t,e){return{"-webkit-text-stroke-width":t+e}}},"text-stroke-color":{match:["text-stroke"],layer:-3,colored:!0,declare(t,e){return{"-webkit-text-stroke-color":t+e}}},"text-stroke":{unit:"rem",layer:-3,declare(t,e){return{"-webkit-text-stroke":t+e}}},"box-shadow":{match:/^s(?:hadow)?:/,unit:"rem",layer:-3,colored:!0},"table-layout":{layer:-3},"transform-box":{match:["transform"],layer:-3},"transform-style":{match:["transform",["flat","preserve-3d"]],layer:-3},"transform-origin":{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-3},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-3,analyze(t){return[t.startsWith("transform")?t.slice(10):t]},variables:["spacing"]},"transition-property":{match:/^~property:/,layer:-3},"transitionTiming-function":{match:/^~easing:/,layer:-3},"transition-duration":{match:/^~duration:/,layer:-3,unit:"ms"},"transition-delay":{match:/^~delay:/,layer:-3,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(t){if(t.startsWith("~"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}},layer:-7},"animation-delay":{match:/^@delay:/,layer:-3,unit:"ms"},"animation-direction":{match:/^@direction:/,layer:-3},"animation-duration":{match:/^@duration:/,layer:-3,unit:"ms"},"animation-fill-mode":{match:/^@fill:/,layer:-3},"animation-iteration-count":{match:/^@iteration:/,layer:-3},"animation-name":{match:/^@name:/,layer:-3},"animation-play-state":{match:/^@play:/,layer:-3},"animation-timing-function":{match:/^@easing:/,layer:-3},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-7,analyze(t){if(t.startsWith("@"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}}},"border-collapse":{match:["b(?:order)?",["collapse","separate"]],layer:-3},"border-spacing":{unit:"rem",layer:-3},"border-top-color":{match:["b(?:t|order-top(?:-color)?)"],layer:-3,colored:!0},"border-bottom-color":{match:["b(?:b|order-bottom(?:-color)?)"],layer:-3,colored:!0},"border-left-color":{match:["b(?:l|order-left(?:-color)?)"],layer:-3,colored:!0},"border-right-color":{match:["b(?:r|order-right(?:-color)?)"],layer:-3,colored:!0},"border-x-color":{match:["b(?:x|order-x(?:-color)?)"],layer:-5,colored:!0,declare(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},"border-y-color":{match:["b(?:y|order-y(?:-color)?)"],layer:-5,colored:!0,declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},"border-color":{match:["b(?:order)?(?:-color)?"],layer:-7,colored:!0},"border-top-left-radius":{match:/^r(?:tl|lt):/,unit:"rem",layer:-3},"border-top-right-radius":{match:/^r(?:tr|rt):/,unit:"rem",layer:-3},"border-bottom-left-radius":{match:/^r(?:bl|lb):/,unit:"rem",layer:-3},"border-bottom-right-radius":{match:/^r(?:br|rb):/,unit:"rem",layer:-3},"border-top-radius":{match:/^rt:/,unit:"rem",layer:-5,declare(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},"border-bottom-radius":{match:/^rb:/,unit:"rem",layer:-5,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},"border-left-radius":{match:/^rl:/,unit:"rem",layer:-5,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},"border-right-radius":{match:/^rr:/,unit:"rem",layer:-5,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},"border-radius":{match:/^r:/,unit:"rem",layer:-7},"border-top-style":{match:["b(?:t|order-top(?:-style)?)",Y],layer:-3},"border-bottom-style":{match:["b(?:b|order-bottom(?:-style)?)",Y],layer:-3},"border-left-style":{match:["b(?:l|order-left(?:-style)?)",Y],layer:-3},"border-right-style":{match:["b(?:r|order-right(?:-style)?)",Y],layer:-3},"border-x-style":{match:["b(?:x|order-x(?:-style)?)",Y],layer:-5,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},"border-y-style":{match:["b(?:y|order-y(?:-style)?)",Y],layer:-5,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},"border-style":{match:["b(?:order)?(?:-style)?",Y],layer:-7},"border-top-width":{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-bottom-width":{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-left-width":{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-right-width":{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-x-width":{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},"border-y-width":{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},"border-width":{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-7},"border-image-outset":{unit:"rem",layer:-3},"border-image-repeat":{match:["border-image",["stretch","repeat","round","space"]],layer:-3},"border-image-slice":{layer:-3},"border-image-source":{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-3},"border-image-width":{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-3},"border-image":{layer:-7},"border-top":{match:/^bt:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:q},"border-bottom":{match:/^bb:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:q},"border-left":{match:/^bl:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:q},"border-right":{match:/^br:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:q},"border-x":{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:q,declare(t){return{"border-left":t,"border-right":t}}},"border-y":{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:q,declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-7,transformValueComponents:q},"background-attachment":{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-3},"background-blend-mode":{layer:-3},"background-color":{match:["(?:bg|background)"],layer:-3,colored:!0},"background-clip":{match:["(?:bg|background)",["text"]],layer:-3,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}}},"background-origin":{match:["(?:bg|background)"],layer:-3},"background-position":{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-3,unit:"px"},"background-repeat":{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-3},"background-size":{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-3},"background-image":{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},background:{match:/^bg:/,colored:!0,layer:-7},gradient:{match:/^gradient\(/,layer:-3,colored:!0,declare(t){return{"background-image":"linear-"+t}}},"mix-blend-mode":{match:/^blend:/,layer:-3},"backdrop-filter":{match:/^bd:/,layer:-3,colored:!0,declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-3,colored:!0},fill:{match:/^fill:/,layer:-3,colored:!0},"stroke-dasharray":{layer:-3},"stroke-dashoffset":{layer:-3,variables:["spacing"]},"stroke-width":{match:["stroke(?:-width)?"],numeric:!0,layer:-3},stroke:{match:["stroke"],layer:-3,colored:!0},x:{layer:-3,variables:["spacing"]},y:{layer:-3,variables:["spacing"]},cx:{layer:-3,variables:["spacing"]},cy:{layer:-3,variables:["spacing"]},rx:{layer:-3},ry:{layer:-3},"grid-column-start":{match:/^grid-col-start:/,layer:-3},"grid-column-end":{match:/^grid-col-end:/,layer:-3},"grid-column":{match:/^grid-col(?:umn)?(?:-span)?:/,layer:-7,transformValue(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},"grid-columns":{match:/^grid-cols:/,declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},"grid-row-start":{layer:-3},"grid-row-end":{layer:-3},"grid-row":{match:/^grid-row-span:/,layer:-7,transformValue(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},"grid-rows":{match:/^grid-rows:/,declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},"grid-auto-columns":{match:/^grid-auto-cols:/,layer:-3,variables:["sizing"]},"grid-auto-flow":{match:/^grid-flow:/,layer:-3},"grid-auto-rows":{layer:-3,variables:["sizing"]},"grid-template-areas":{layer:-3},"grid-template-columns":{match:/^grid-template-cols:/,layer:-3,unit:"rem",variables:["sizing"]},"grid-template-rows":{layer:-3,unit:"rem",variables:["sizing"]},"grid-template":{layer:-7},"grid-area":{layer:-7},grid:{layer:-7},"column-gap":{match:/^gap-x:/,unit:"rem",layer:-3,variables:["spacing"]},"row-gap":{match:/^gap-y:/,unit:"rem",layer:-3,variables:["spacing"]},gap:{unit:"rem",layer:-7,variables:["spacing"]},order:{match:/^o:/,layer:-3},"break-inside":{layer:-3},"break-before":{layer:-3},"break-after":{layer:-3},"aspect-ratio":{match:/^aspect:/,layer:-3},"column-span":{match:/^col-span:/,layer:-3},"align-content":{match:/^ac:/,layer:-3},"align-items":{match:/^ai:/,layer:-3},"align-self":{match:/^as:/,layer:-3},"justify-content":{match:/^jc:/,layer:-3},"justify-items":{match:/^ji:/,layer:-3},"justify-self":{match:/^js:/,layer:-3},"place-content":{layer:-7},"place-items":{layer:-7},"place-self":{layer:-7},"list-style-position":{match:["list-style",["inside","outside"]],layer:-3},"list-style-type":{match:["list-style",["disc","decimal"]],layer:-3},"list-style-image":{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},"list-style":{layer:-7},"outline-color":{match:["outline"],layer:-3,colored:!0},"outline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"outline-style":{match:["outline",Y],layer:-3},"outline-width":{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-3},outline:{unit:"rem",layer:-7,colored:!0,variables:["outline-width","outline-style","outline-offset","outline-color"],transformValueComponents:q},"accent-color":{match:/^accent:/,layer:-3,colored:!0},appearance:{layer:-3},"caret-color":{match:/^caret:/,layer:-3,colored:!0},"scroll-behavior":{layer:-3},"scroll-margin-left":{match:/^scroll-ml:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-right":{match:/^scroll-mr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-top":{match:/^scroll-mt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{match:/^scroll-mb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-x":{match:/^(?:scroll-margin-x|scroll-mx):/,unit:"rem",layer:-5,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}},variables:["spacing"]},"scroll-margin-y":{match:/^(?:scroll-margin-y|scroll-my):/,unit:"rem",layer:-5,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}},variables:["spacing"]},"scroll-margin":{match:/^scroll-m:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-padding-left":{match:/^scroll-pl:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-right":{match:/^scroll-pr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-top":{match:/^scroll-pt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{match:/^scroll-pb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-x":{match:/^(?:scroll-padding-x|scroll-px):/,unit:"rem",layer:-5,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}},variables:["spacing"]},"scroll-padding-y":{match:/^(?:scroll-padding-y|scroll-py):/,unit:"rem",layer:-5,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}},variables:["spacing"]},"scroll-padding":{match:/^scroll-p:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-snap-align":{match:["scroll-snap",["start","end","center"]],layer:-3},"scroll-snap-stop":{match:["scroll-snap",["normal","always"]],layer:-3},"scroll-snap-type":{match:["scroll-snap",["x","y","block","inline","both"]],layer:-3},"will-change":{layer:-3},"writing-mode":{match:/^writing:/,layer:-3},direction:{layer:-3},"shape-outside":{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-3},"shape-margin":{match:["shape"],numeric:!0,unit:"rem",layer:-3,variables:["spacing"]},"shape-image-threshold":{layer:-3},"clip-path":{match:/^clip:/,layer:-3},quotes:{layer:-3},"mask-image":{layer:-3,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},he=Se;var De={$:{colored:!0,transform(t){let e,r,n=t.indexOf(",");return n!==-1?(e=t.slice(0,n),r=t.slice(n+1)):e=t,[{type:"variable",name:e,fallback:r}]}},calc:{transform(t,e){let r=[],n=this.css.config.functions,y=0,s=(l,m,u)=>{let f=!1,o="",d=(p,b="",c="")=>{o&&(!f&&!u?l.push(this.parseValueComponent(o,n.calc.unit)):l.push({type:"string",value:o}),o=""),p&&(b&&t[y-1]===" "&&(b=""),c&&t[y+1]===" "&&(c=""),m?l.push({type:"separator",value:p,text:p}):l.push({type:"separator",value:p,text:b+p+c})),f=!1};for(;y<t.length;y++){let p=t[y];if(p==="("){let b=/^([+-])/.exec(o);b&&l.push({type:"string",value:b[1]});let c=b?o.slice(1):o,g={type:"function",name:c,symbol:p,children:[]};l.push(g),o="",y++;let a=g.name==="$"||g.name==="var";s(g.children,c!==""&&c!=="calc"&&(a||Object.prototype.hasOwnProperty.call(n,c)),f||a)}else if(p===")"){d("");break}else if(p===",")d(p,""," ");else if(p===" ")d(p);else{let b=t[y-1];switch(p){case"+":!o&&b!==")"?o+=p:d(p," "," ");break;case"-":!o&&b!==")"?o+=p:d(p," "," ");break;case"*":d(p," "," ");break;case"/":d(p," "," "),f=!0;break;default:o+=p;break}}}d("")};return s(r,!1,!1),"calc("+this.resolveValue(r,n.calc.unit??this.definition.unit,e)+")"}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},me=De;var G={mediaQueries:oe,selectors:le,semantics:ce,rules:he,functions:me,animations:fe,variables:de,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var pe=[",",".","#","[","!","*",">","+","~",":","@"];var J=class{constructor(e=G){this.customConfig=e;e?.override?this.config=this.getExtendedConfig(e):this.config=this.getExtendedConfig(G,e),this.resolve(),globalThis.masterCSSs.push(this)}static config=G;static refresh=e=>{for(let r of globalThis.masterCSSs)r.refresh(e)};rules=[];ruleBy={};classesUsage={};observing=!1;config;semanticRuleOptions=[];ruleOptions=[];observer;resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.ruleOptions.length=0,this.semanticRuleOptions.length=0,this.variablesNativeRules=void 0,this.hasKeyframesRule=!1;let e={current:void 0,currentColor:void 0,transparent:void 0},{styles:r,selectors:n,variables:y,semantics:s,mediaQueries:l,rules:m,animations:u}=this.config;function f(c){return c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(c,g,a="",i={}){let h=x=>x?(a?a+"-":"")+x:a,C=Object.entries(c),v=[],D=[];for(let x of C){let R=x[1];(typeof R=="object"&&!Array.isArray(R)?v:D).push(x)}for(let[x,R]of v)o(R,g,h(x),i);if(g&&a)D.length&&(i[a]=D.reduce((x,[R,N])=>(x[R]=N,x),{}));else for(let[x,R]of D)i[h(x)]=R;return i}if(n)for(let[c,g]of Object.entries(o(n,!1))){let a=new RegExp(f(c)+"(?![a-z-])");for(let i of Array.isArray(g)?g:[g]){let h=i.match(/^::-[a-z]+-/m)?.[0]??"",C=this.selectors[h];C||(C=this.selectors[h]=[]);let v=C.find(([D])=>D===a);v||(v=[a,[]],C.push(v)),v[1].push(i)}}if(y){let c={};for(let g in y){let a=(i,h,C=void 0)=>{if(!i)return;let v=(x,R,N=void 0,O=void 0)=>{if(R===void 0)return;if(R.type==="color"){if(O){let W=R.value.indexOf("/");R={...R,value:W===-1?R.value+" / "+(O.startsWith("0.")?O.slice(1):O):R.value.slice(0,W+2)+(+R.value.slice(W+2)*+O).toString().slice(1)}}e[x]=void 0}let T=N??C;if(T!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,x)){let W=this.variables[x];T?(W.themes||(W.themes={}),W.themes[T]=R):(W.value=R.value,W.space=R.space)}else T?this.variables[x]={type:R.type,space:R.space,themes:{[T]:R}}:this.variables[x]=R;else this.variables[x]=R},D=typeof i;if(D==="object")if(Array.isArray(i))v(h,{type:"string",value:i.join(",")});else{let x=Object.keys(i);for(let R of x)R===""||R.startsWith("@")?a(i[R],h,R||x.some(N=>N.startsWith("@"))?R.slice(1):void 0):a(i[R],h+"-"+R)}else if(D==="number")v(h,{type:"number",value:i}),v("-"+h,{type:"number",value:i*-1});else if(D==="string"){let x=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(i);if(x)Object.prototype.hasOwnProperty.call(c,h)||(c[h]={}),c[h][C]=()=>{delete c[h][C];let[R,N]=x[1].split("@");if(R){if(Object.prototype.hasOwnProperty.call(c,R))for(let T of Object.keys(c[R]))c[R][T]?.();let O=this.variables[R];if(O)if(N===void 0&&O.themes){v(h,{type:O.type,value:O.value,space:O.space},"",x[2]);for(let T in O.themes)v(h,O.themes[T],T,x[2])}else{let T=N!==void 0?O.themes?.[N]:O;T&&v(h,{type:T.type,value:T.value,space:T.space},void 0,x[2])}}};else{let R=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(i);if(R){let[N,O,T,W]=K(R[1]);v(h,{type:"color",value:`${N} ${O} ${T}${W===1?"":" / "+W}`,space:"rgb"})}else{let N=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(i);if(N)v(h,{type:"color",value:N[1]+" "+N[2]+" "+N[3]+(N[4]?" / "+(N[4].startsWith("0.")?N[4].slice(1):N[4]):""),space:"rgb"});else{let O=/^hsl\((.*?)\)$/.exec(i);O?v(h,{type:"color",value:O[1],space:"hsl"}):v(h,{type:"string",value:i})}}}}};a(y[g],g)}for(let g of Object.keys(c))for(let a of Object.keys(c[g]))c[g][a]?.()}if(l&&(this.mediaQueries=o(l,!1)),u)for(let c in u){let g=this.animations[c]={},a=u[c];for(let i in a){let h=g[i]={},C=a[i];for(let v in C)h[v]=C[v]}}let d=r?o(r,!1):{},p=Object.keys(d),b=c=>{if(Object.prototype.hasOwnProperty.call(this.styles,c))return;let g=this.styles[c]=[],a=d[c];if(!a)return;let i=a.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let h of i){let C=v=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,v)){let D=this.stylesBy[v];D.includes(c)||D.push(c)}else this.stylesBy[v]=[c];g.includes(v)||g.push(v)};if(p.includes(h)){b(h);for(let v of this.styles[h])C(v)}else C(h)}};for(let c of p)b(c);if(s&&Object.entries(s).sort((c,g)=>c[0].localeCompare(g[0])).forEach(([c,g],a)=>{this.semanticRuleOptions.push({id:"."+c,resolvedMatch:new RegExp("^"+f(c)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:a,declarations:g,layer:-8})}),m){let c=Object.entries(m).sort((i,h)=>i[1].layer!==h[1].layer?(h[1].layer||0)-(i[1].layer||0):h[0].localeCompare(i[0])),g=c.length,a=Object.keys(e);c.forEach(([i,h],C)=>{this.ruleOptions.push(h),h.order=this.semanticRuleOptions.length+g-1-C;let v=h.match;h.id=i,h.resolvedVariables={};let D=x=>{Object.assign(h.resolvedVariables,Object.keys(this.variables).filter(R=>R.startsWith(x+"-")||R.startsWith("-"+x+"-")).reduce((R,N)=>(R[N.slice(x.length+(x.startsWith("-")?0:1))]={...this.variables[N],name:N},R),{}))};if(h.variables)for(let x of h.variables)D(x);if(D(i),v)if(Array.isArray(v)){let[x,R=[]]=v,N=[];R.length&&N.push(`(?:${R.join("|")})(?![a-zA-Z0-9-])`),Object.keys(h.resolvedVariables).length&&N.push(`(?:${Object.keys(h.resolvedVariables).join("|")})(?![a-zA-Z0-9-])`),h.colored&&N.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${a.join("|")})(?![a-zA-Z0-9-])`),h.numeric&&N.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),N.length&&(h.resolvedMatch=new RegExp(`^${x}:(?:${N.join("|")})[^|]*?(?:@|$)`))}else h.resolvedMatch=v})}}observe(e,r={subtree:!0,childList:!0}){if(e||(e=document),this.root===e)return this;this.root=e;let n=e===document;n&&(globalThis.masterCSS=this),this.host=n?document.documentElement:this.root.host;let y=n?document.head:e,s=n?document.styleSheets:e.styleSheets;for(let m of s){let{ownerNode:u}=m;if(u&&u.id==="master"){this.style=u;break}}if(this.style){let m=0;for(;m<this.style.sheet.cssRules.length;m++){let u=this.style.sheet.cssRules[m];switch(u.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":if(this.config.themeDriver==="media"){let o=/\(prefers-color-scheme: (.*?)\)/.exec(u.conditionText);if(o){let d=u.cssRules[0];if(d?.constructor.name==="CSSStyleRule"&&d.selectorText===":root"){this.pushVariableNativeRule(o[1],d);continue}}}break;case"CSSStyleRule":let f=u.selectorText;if(u.style.length){let o=!0;for(let d=0;d<u.style.length;d++)if(!u.style[d]?.startsWith("--")){o=!1;break}if(o){if(f===":root"){this.pushVariableNativeRule("",u);continue}else if(this.config.themeDriver==="host"){let d=/:host(.*?)/.exec(f);if(d){this.pushVariableNativeRule(d[1],u);continue}}else if(!f.startsWith(".\\$")){this.pushVariableNativeRule(f.slice(1),u);continue}}}break}}for(;m<this.style.sheet.cssRules.length;m++){let u=o=>{if(o.selectorText){let p=o.selectorText.split(", ")[0].split(" ");for(let b=0;b<p.length;b++){let c=p[b];if(c[0]==="."){let g=c.slice(1),a="";for(let i=0;i<g.length;i++){let h=g[i],C=g[i+1];if(h==="\\"){if(i++,C!=="\\"){a+=C;continue}}else if(pe.includes(h))break;a+=h}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,a)&&!Object.prototype.hasOwnProperty.call(this.styles,a)){let i=this.create(a)[0];if(i)return i}}}}else if(o.cssRules)for(let d=0;d<o.cssRules.length;d++){let p=u(o.cssRules[d]);if(p)return p}},f=u(this.style.sheet.cssRules[m]);if(f){this.rules.push(f),this.ruleBy[f.className]=f;for(let o=0;o<f.natives.length;o++)f.natives[o].cssRule=this.style.sheet.cssRules[m+o];m+=f.natives.length-1,this.handleRuleWithVariableNames(f,!0),this.handleRuleWithAnimationNames(f,!0),f.definition.insert?.call(f)}}}else this.style=document.createElement("style"),this.style.id="master",y.append(this.style);let l=m=>{m.forEach(u=>{Object.prototype.hasOwnProperty.call(this.classesUsage,u)?this.classesUsage[u]++:(this.classesUsage[u]=1,this.insert(u))})};return l(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(m=>l(m.classList)),this.observer=new MutationObserver(m=>{let u={},f=[],o=[],d=[],p=(a,i)=>{i?a.classList.forEach(c):a.classList.forEach(b);let h=a.children;for(let C=0;C<h.length;C++){let v=h[C];v.classList&&(o.push(v),p(v,i))}},b=a=>{Object.prototype.hasOwnProperty.call(u,a)?u[a]++:u[a]=1},c=a=>{Object.prototype.hasOwnProperty.call(u,a)?u[a]--:Object.prototype.hasOwnProperty.call(this.classesUsage,a)&&(u[a]=-1)},g=(a,i)=>{for(let h=0;h<a.length;h++){let C=a[h];C.classList&&!o.includes(C)&&!d.includes(C)&&(C.isConnected!==i?(o.push(C),p(C,i)):d.push(C))}};for(let a=0;a<m.length;a++){let i=m[a],{addedNodes:h,removedNodes:C,type:v,target:D}=i;if(v==="attributes"){if(f.find(x=>x.target===D))continue;f.push(i)}else g(h,!1),(!D.isConnected||!o.includes(D))&&g(C,!0)}if(!(!f.length&&!Object.keys(u).length)){for(let{oldValue:a,target:i}of f){let h=o.includes(i),C=i.classList,v=a?a.split(" "):[];if(h){if(i.isConnected)continue;for(let D of v)C.contains(D)||c(D)}else if(i.isConnected){C.forEach(D=>{v.includes(D)||b(D)});for(let D of v)C.contains(D)||c(D)}}for(let a in u){let i=u[a],h=(this.classesUsage[a]||0)+i;h===0?(delete this.classesUsage[a],this.delete(a)):(Object.prototype.hasOwnProperty.call(this.classesUsage,a)||this.insert(a),this.classesUsage[a]=h)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0,this}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules=void 0;for(let r in this.animations){let n=this.animations[r];n.usage=void 0,n.native=void 0}for(let r in this.variables){let n=this.variables[r];n.usage=void 0}let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r of this.ruleOptions)if(r.resolvedMatch&&r.resolvedMatch.test(e)||(r.layer===-2||r.layer===-6||r.layer===-3||r.layer===-7)&&e.startsWith(r.id+":"))return r;for(let r of this.semanticRuleOptions)if(r.resolvedMatch.test(e))return r}create(e){let r=n=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,n))return this.ruleBy[n];let y=this.match(n);if(y)return new ee(n,y,this)};return(Object.prototype.hasOwnProperty.call(this.styles,e)?this.styles[e].map(n=>r(n)):[r(e)]).filter(n=>n&&n.text)}refresh(e=this.customConfig){if(e?.override?this.config=this.getExtendedConfig(e):this.config=this.getExtendedConfig(G,e),this.resolve(),!this.style)return;let r=document.createElement("style");r.id="master",this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let n in this.classesUsage)this.insert(n)}destroy(){this.disconnect(),globalThis.masterCSSs.splice(globalThis.masterCSSs.indexOf(this),1)}delete(e){let r=this.style?.sheet,n=y=>{let s=this.ruleBy[y];if(!(!s||Object.prototype.hasOwnProperty.call(this.stylesBy,y)&&this.stylesBy[y].some(l=>Object.prototype.hasOwnProperty.call(this.classesUsage,l)))){if(r&&s.natives.length){let l=s.natives[0];for(let m=0;m<r.cssRules.length;m++)if(r.cssRules[m]===l.cssRule){for(let f=0;f<s.natives.length;f++)r.deleteRule(m);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[y],s.variableNames)for(let l of s.variableNames){let m=this.variables[l];if(!--m.usage){let u=f=>{let o=this.variablesNativeRules[f];if(o.cssRule.style.removeProperty("--"+l),!o.cssRule.style.length){let d=this.rules[0],p=d.natives.indexOf(o);r?.deleteRule(p),d.natives.splice(p,1),delete this.variablesNativeRules[f],d.natives.length||(this.rules.splice(0,1),this.variablesNativeRules=void 0)}};if(m.value&&u(""),m.themes)for(let f in m.themes)u(f)}}if(s.animationNames){let l=this.variablesNativeRules?1:0,m=this.rules[l];for(let u of s.animationNames){let f=this.animations[u];if(!--f.usage){let o=m.natives.indexOf(f.native);this.style.sheet.deleteRule((this.variablesNativeRules?Object.keys(this.variablesNativeRules).length:0)+o),m.natives.splice(o,1),f.native=void 0}}m.natives.length||(this.rules.splice(l,1),this.hasKeyframesRule=!1)}s.definition.delete?.call(s,y)}};if(Object.prototype.hasOwnProperty.call(this.styles,e)){for(let y of this.styles[e])Object.prototype.hasOwnProperty.call(this.classesUsage,y)||n(y);delete this.ruleBy[e]}else n(e)}insert(e){let r=this.create(e);return r.length?(this.render(r),!0):!1}render(e){for(let r of e){if(this.ruleBy[r.className])continue;let n,y=this.rules.length-1,{media:s,order:l,priority:m,hasWhere:u,className:f}=r,o=(b,c,g)=>{let a=b;for(;a<=y;a++){let i=this.rules[a];if(c?.(i))return g?-1:a-1;if(g?.(i))return a}return g?-1:a-1},d,p;if(s){let b=this.rules.findIndex(c=>c.media);if(b===-1)n=y+1;else{let{"max-width":c,"min-width":g}=s.features;if(c||g){let a=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(a===-1)n=y+1;else if(c&&g){if(m===-1?(d=o(a,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),p=o(a,i=>i.priority!==-1)):(d=o(a,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),p=y),d!==-1){let i=c.value-g.value,h=p,C=d;for(d=void 0;h>=C;h--){let{"max-width":v,"min-width":D}=this.rules[h].media.features,x=v.value-D.value;if(x<i)p=h-1;else if(x===i)d=h;else break}}if(d!==-1){let i=c.value-g.value;for(let h=p;h>=d;h--){let{"max-width":C,"min-width":v}=this.rules[h].media.features,D=C.value-v.value;if(D<i)p=h-1;else if(D>i){d=h+1;break}}}}else if(g){if(m===-1?(d=o(a,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]),p=o(a,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(d=o(a,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),p=o(a,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),d!==-1)for(let i=p;i>=d;i--){let h=this.rules[i].media.features["min-width"].value;if(h>g.value)p=i-1;else if(h<g.value){d=i+1;break}}}else if(m===-1?(d=o(a,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),p=o(a,i=>i.media.features["min-width"]||i.priority!==-1)):(d=o(a,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),p=o(a,i=>i.media.features["min-width"]&&i.priority!==-1)),d!==-1)for(let i=p;i>=d;i--){let h=this.rules[i].media.features["max-width"].value;if(h<c.value)p=i-1;else if(h>c.value){d=i+1;break}}}else m===-1?(d=b,p=o(b,a=>a.media?.features["max-width"]||a.media?.features["min-width"]||a.priority!==-1)):(d=o(b,a=>a.media?.features["max-width"]||a.media?.features["min-width"],a=>a.priority!==-1),p=o(b,a=>a.media?.features["max-width"]||a.media?.features["min-width"]))}}else{let b=this.variablesNativeRules?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;m===-1?(d=b,p=o(b,c=>c.media||c.priority!==-1)):(d=o(b,c=>c.media,c=>c.priority!==-1),p=o(b,c=>c.media))}if(n===void 0)if(d===-1)n=p+1;else{if(m===-1)for(let b=d;b<=p;b++){let c=this.rules[b];if(!(!u&&c.hasWhere)&&(u&&!c.hasWhere||c.order>=l)){n=b;break}}else for(let b=d;b<=p;b++){let c=this.rules[b];if(!(!u&&c.hasWhere)){if(u&&!c.hasWhere){n=b;break}if(c.priority<m){n=b;break}else if(c.priority===m){if(c.order>=l){n=b;break}}else n=b+1}}n===void 0&&(n=p+1)}if(this.rules.splice(n,0,r),this.ruleBy[f]=r,this.style){let b=this.style.sheet,c=0,g=a=>{let i=this.rules[a];if(i){if(!i.natives.length)return g(a-1);let h=i.natives[i.natives.length-1],C=h.cssRule.parentRule??h.cssRule;for(let v=0;v<b.cssRules.length;v++)if(b.cssRules[v]===C){c=v+1;break}}};g(n-1);for(let a=0;a<r.natives.length;)try{let i=r.natives[a];b.insertRule(i.text,c),i.cssRule=b.cssRules[c++],a++}catch(i){console.error(i),r.natives.splice(a,1)}}this.handleRuleWithVariableNames(r),this.handleRuleWithAnimationNames(r),r.definition.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}getExtendedConfig(...e){let r=s=>{let l=X({},s),m=u=>{for(let f in u){let o=u[f];typeof o=="object"&&!Array.isArray(o)?m(o):f&&!f.startsWith("@")&&(u[f]={"":o})}};return l.styles?m(l.styles):l.styles={},l.mediaQueries?m(l.mediaQueries):l.mediaQueries={},l.variables?m(l.variables):l.variables={},l},n=[];for(let s of e)(function l(m){if(m.extends?.length)for(let u of m.extends)l("config"in u?u.config:u);n.push(r(m))})(s);let y=n[0];for(let s=1;s<n.length;s++){let l=n[s];y=X(y,l),Object.prototype.hasOwnProperty.call(l,"animations")&&Object.assign(y.animations,l.animations)}return y}handleRuleWithAnimationNames(e,r=!1){if(e.animationNames){let n=this.style?.sheet;for(let y of e.animationNames){let s=this.animations[y];if(s.usage)s.usage++;else{let l={text:`@keyframes ${y}{`+Object.entries(s).filter(([f])=>f!=="usage"&&f!=="native").map(([f,o])=>`${f}{${Object.entries(o).map(([d,p])=>d+":"+p).join(";")}}`).join("")+"}"},m=this.variablesNativeRules?1:0,u;if(this.hasKeyframesRule?(u=this.rules[m]).natives.push(l):(this.rules.splice(m,0,u={natives:[l],get text(){return this.natives.map(f=>f.text).join("")}}),this.hasKeyframesRule=!0),n){let f;if(r)for(let o=0;o<n.cssRules.length;o++){let d=n.cssRules[o];if(d.constructor.name==="CSSKeyframesRule"&&d.name===y){f=d;break}}if(f)l.cssRule=f;else{let o=(this.variablesNativeRules?Object.keys(this.variablesNativeRules).length:0)+u.natives.length-1;n.insertRule(l.text,o),l.cssRule=n.cssRules[o]}}s.usage=1,s.native=l}}}}handleRuleWithVariableNames(e,r=!1){if(e.variableNames){let n=this.style?.sheet;for(let y of e.variableNames){let s=this.variables[y];if(s.usage)s.usage++;else{let l=(m,u)=>{let f=this.variablesNativeRules?.[m];if(!f){let d,p,b;if(m)switch(this.config.themeDriver){case"media":p=`@media(prefers-color-scheme:${m})`,b=":root";break;case"host":b=`:host(.${m})`;break;default:b=`.${m}`;break}else b=":root";if(n){let c=this.variablesNativeRules?this.rules[0].natives.length:0;n.insertRule((p?p+"{":"")+b+"{}"+(p?p+"}":""),c),d=p?n.cssRules[c].cssRules[0]:n.cssRules[c]}else{let c=new Map,g=Object.defineProperties({},{getPropertyValue:{value:a=>c.get(a)},removeProperty:{value:a=>{c.delete(a);for(let i=0;i<g.length;i++)g[i]===a&&delete g[i]}},setProperty:{value:(a,i)=>{g[g.length]=a,c.set(a,i)}},length:{get(){return Object.keys(g).length}}});d={selectorText:b,style:g,styleMap:c},p&&(d.parentRule={conditionText:p})}f=this.pushVariableNativeRule(m,d)}let o="--"+y;(!r||!f.cssRule.style.getPropertyValue(o))&&f.cssRule.style.setProperty(o,u.value.toString())};if(s.value&&l("",s),s.themes)for(let m in s.themes)l(m,s.themes[m]);s.usage=1}}}}pushVariableNativeRule(e,r){this.variablesNativeRules||(this.variablesNativeRules={},this.rules.splice(0,0,{natives:[],get text(){return this.natives.map(l=>l.text).join("")}}));let n="",y="}";r.parentRule&&(n+=r.parentRule.conditionText.replace(/ /g,"")+"{",y+="}"),n+=r.selectorText+"{";let s={cssRule:r,get text(){let l=[];for(let m=0;m<r.style.length;m++){let u=r.style[m];l.push(u+":"+r.style.getPropertyValue(u))}return n+l.join(";")+y}};return this.rules[0].natives.push(this.variablesNativeRules[e]=s),s}};globalThis.MasterCSS=J,globalThis.masterCSSs||(globalThis.masterCSSs=[]);window.masterCSS=new J(window.masterCSSConfig).observe(document);})();
@@ -0,0 +1,6 @@
1
+ import type { Config } from './config';
2
+ declare global {
3
+ interface Window {
4
+ masterCSSConfig: Config;
5
+ }
6
+ }
@@ -0,0 +1,35 @@
1
+ var ie=Object.defineProperty;var De=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var we=Object.prototype.hasOwnProperty;var ke=(t,e)=>{for(var r in e)ie(t,r,{get:e[r],enumerable:!0})},Ve=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let d of Ne(e))!we.call(t,d)&&d!==r&&ie(t,d,{get:()=>e[d],enumerable:!(a=De(e,d))||a.enumerable});return t};var je=t=>Ve(ie({},"__esModule",{value:!0}),t);var We={};ke(We,{CONFIG_ESM_TEXT:()=>Re,CONFIG_TEXT:()=>Ce,CONFIG_TS_TEXT:()=>xe,Layer:()=>re,MasterCSS:()=>Y,Rule:()=>G,animations:()=>oe,config:()=>Z,default:()=>Y,extend:()=>q,fillColorScale:()=>M,functions:()=>fe,initRuntime:()=>ue,mediaQueries:()=>ae,reorderForReadableClasses:()=>de,rules:()=>ce,selectors:()=>ne,semantics:()=>se,variables:()=>le});module.exports=je(We);function pe(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ge(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function ye(t){let e=[];return t.forEach(function(r,a){typeof r=="object"&&r!==null?Array.isArray(r)?e[a]=ye(r):pe(r)?e[a]=ge(r):e[a]=q({},r):e[a]=r}),e}function me(t,e){return e==="__proto__"?void 0:t[e]}function q(...t){let e={},r,a;return t.forEach(function(d){typeof d!="object"||d===null||Array.isArray(d)||Object.keys(d).forEach(function(o){if(a=me(e,o),r=me(d,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=ye(r);return}else if(pe(r)){e[o]=ge(r);return}else if(typeof a!="object"||a===null||Array.isArray(a)){e[o]=q({},r);return}else{e[o]=q(a,r);return}})}),e}var X={"(":")","'":"'",'"':'"',"{":"}"};function ee(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,a=-1,d="",o,c=e.charCodeAt(0);if(r==1&&c==45)return"\\"+e;for(;++a<r;){if(o=e.charCodeAt(a),o==0){d+="\uFFFD";continue}if(o>=1&&o<=31||o==127||a==0&&o>=48&&o<=57||a==1&&o>=48&&o<=57&&c==45){d+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){d+=e.charAt(a);continue}d+="\\"+e.charAt(a)}return d}var re=(s=>(s[s.Semantic=-8]="Semantic",s[s.CoreNativeShorthand=-7]="CoreNativeShorthand",s[s.NativeShorthand=-6]="NativeShorthand",s[s.CoreShorthand=-5]="CoreShorthand",s[s.Shorthand=-4]="Shorthand",s[s.CoreNative=-3]="CoreNative",s[s.Native=-2]="Native",s[s.Core=-1]="Core",s[s.Normal=0]="Normal",s))(re||{});var Oe=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,G=class{constructor(e,r={},a){this.className=e;this.definition=r;this.css=a;let{layer:d,unit:o,colored:c,analyze:h,transformValue:f,declare:s,transformValueComponents:l,create:m,order:g,id:b}=r;this.order=g,this.layer=d,r.unit||(r.unit=""),r.separators||(r.separators=[","]);let{scope:u,important:y,themeDriver:n}=a.config,{selectors:i,mediaQueries:p,stylesBy:R,animations:v}=a,D=R[e];m&&m.call(this,e),this.declarations=r.declarations;let x,C;if(this.colored=c,d===-8)x=e.slice(b.length-1);else{let k;if(h)[k,C]=h.call(this,e);else{let w=e.indexOf(":");this.prefix=e.slice(0,w+1),k=e.slice(w+1)}this.valueComponents=[],x=k.slice(this.parseValue(this.valueComponents,0,k,o))}x[0]==="!"&&(this.important=!0,x=x.slice(1)),this.stateToken=x;let N=(k,w)=>{let T=(S,j,V,E)=>{for(let[I,_]of j)if(I.test(S)){for(let B of _)T(S.replace(I,B),j,V,!0);return}E&&V.push(S)},P=S=>{let j=S.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((_,B)=>B%3?_:_.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),V=[],E="",I=0;for(let _=0;_<j.length;_++){let B=j[_];if(B==="\\"){E+=B+j[++_];continue}!I&&B===","?(V.push(E),E=""):(E+=B,I&&B===")"?I--:B==="("&&I++)}return E&&V.push(E),V},A=[];""in i?T(k,i[""],A,!0):A.push(k);let W={};for(let[S,j]of Object.entries(i)){if(!S)continue;let V=[];for(let E of A)T(E,j,V,!1);V.length&&(W[S]=V)}let F=(S,j)=>{let V=j.reduce((E,I)=>(E.push(...P(I)),E),[]);S in w?w[S].push(...V):w[S]=V},U=Object.keys(W);if(U.length)for(let S of U)F(S,W[S]);else F("",A)};C?(this.vendorPrefixSelectors={},N(C,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let O=x.split("@"),z=O[0];if(z){this.vendorSuffixSelectors={},N(z,this.vendorSuffixSelectors);for(let k of Object.values(this.vendorSuffixSelectors))for(let w of k){this.hasWhere!==!1&&(this.hasWhere=w.includes(":where("));let T=[":disabled",":active",":focus",":hover"];for(let P=0;P<T.length;P++)if(w.includes(T[P])){(this.priority===-1||this.priority>P)&&(this.priority=P);break}}}else this.vendorSuffixSelectors={"":[""]};let $={},Se=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),he=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(Se)$[""]=he?[""]:Object.keys(this.vendorSuffixSelectors);else if(he)for(let k in this.vendorPrefixSelectors)$[k]=[""];else for(let k in this.vendorPrefixSelectors){let w=$[k]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,k))w.push(k);else for(let T in this.vendorSuffixSelectors)w.push(T)}for(let k=1;k<O.length;k++){let w=O[k];if(w)if(w==="rtl"||w==="ltr")this.direction=w;else{let T,P,A=Oe.exec(w);if(A)T=A[1],P=w.slice(T.length);else{this.media={token:w,features:{}};let W=[],F=S=>{if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")W.push("(orientation:"+S+")");else if(S==="motion"||S==="reduced-motion")W.push("(prefers-reduced-motion:"+(S==="motion"?"no-preference":"reduce")+")");else{let j=p[S];if(j&&typeof j=="string")W.push(j);else{let V="",E="",I=0;S.startsWith("<=")?(E="<=",V="max-width"):S.startsWith(">=")||j?(E=">=",V="min-width"):S.startsWith(">")?(E=">",V="min-width",I=.02):S.startsWith("<")&&(E="<",V="max-width",I=-.02);let _=E?S.replace(E,""):S,B=p[_];switch(V){case"max-width":case"min-width":let L={};typeof B=="number"?L={type:"number",value:B+I,unit:"px"}:(L=this.parseValueComponent(_,"px"),L.type==="number"&&L.unit==="px"&&(L.value+=I)),this.media.features[V]=L,L.type==="number"?W.push("("+V+":"+(L.value+L.unit)+")"):W.push("("+V+":"+L.value+")");break}}}},U=w.includes("&");if(U){let S=w.split("&");for(let j of S)F(j)}else F(w);if(this.media.type&&(P=this.media.type),W.length&&(P=W.join(" and ")),P)T="media";else if(!U){this.theme=w;continue}}P&&(this.at[T]=(T in this.at?this.at[T]+" and ":"")+P.replace(/\|/g," "))}}let J;if(this.valueComponents)if(l&&(this.valueComponents=l.call(this,this.valueComponents)),J=this.resolveValue(this.valueComponents,o,[]),f&&(J=f.call(this,J,this.css.config)),s){let k,w;this.declarations=s.call(this,w?k:J,w||"")}else b&&(this.declarations={[b]:J});let te=[];for(let k in this.declarations){let w=A=>{if(v&&(A.startsWith("animation")||A.startsWith("animation-name"))){let W=A.split(":")[1].split("!important")[0].split(" ").filter(F=>F in this.css.animations&&(!this.animationNames||!this.animationNames.includes(F)));W.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...W))}te.push(A+((this.important||y)&&!A.endsWith("!important")?"!important":""))},T=k+":",P=this.declarations[k];if(typeof P=="object")for(let A of P)w(T+A.toString());else w(T+P.toString())}if(te.length)for(let k in $)for(let w of $[k]){let T="";this.direction&&(T+="[dir="+this.direction+"] ");let P=this.vendorPrefixSelectors[k],A=this.vendorSuffixSelectors[w],W=P.map(S=>S+T),F=S=>W.map(j=>(this.theme&&n!=="media"?n==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(u?u+" ":"")+j).reduce((j,V)=>(j.push(A.reduce((E,I)=>(E.push(V+"."+ee(S)+I),E),[]).join(",")),j),[]).join(","),U=F(e)+(D?D.reduce((S,j)=>S+","+F(j),""):"")+"{"+te.join(";")+"}";for(let S of Object.keys(this.at).sort((j,V)=>V==="supports"?-1:1))U="@"+S+(S.includes(" ")?"":" ")+this.at[S]+"{"+U+"}";this.theme&&n==="media"&&(U=`@media(prefers-color-scheme:${this.theme}){`+U+"}"),this.natives.push({text:U})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;colored=!1;animationNames;variableNames;resolveValue=(e,r,a)=>{let{functions:d}=this.css.config,o="";for(let c of e)switch(c.type){case"function":let h=d&&d[c.name];if(h?.transform){let s=h.transform.call(this,this.resolveValue(c.children,h.unit??r,a),a);o+=typeof s=="string"?s:this.resolveValue(s,h?.unit??r,a)}else o+=c.name+c.symbol+this.resolveValue(c.children,h?.unit??r,a)+X[c.symbol];break;case"variable":let f=this.css.variables[c.name];if(f){let s=(l,m)=>{if(f.themes)if(this.theme){let g=f.themes[this.theme]??f;g?.value&&l(g)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(c.name)||this.variableNames.push(c.name),m();else l(f)};switch(f.type){case"string":s(m=>{let g=[];this.parseValue(g,0,m.value,r,void 0,void 0,[...a,c.name]),o+=this.resolveValue(g,r,[...a,c.name])},()=>{o+=`var(--${c.name})`});break;case"number":s(m=>{let g=this.parseValueComponent(m.value,r);o+=g.value+(g.unit??"")},()=>{o+=r?`calc(var(--${c.name}) / 16 * 1rem)`:`var(--${c.name})`});break;case"color":let l=c.alpha?"/"+c.alpha:"";s(m=>{o+=`${m.space}(${m.value}${l})`},()=>{o+=`${f.space}(var(--${c.name})${l})`});break}}else o+=`var(--${c.name}${c.fallback?","+c.fallback:""})`;break;case"separator":o+=c.text||c.value;break;case"number":o+=c.value+c.unit;break;default:o+=c.value;break}return o};get text(){return this.natives.map(e=>e.text).join("")}parseValue=(e,r,a,d,o,c=void 0,h=[])=>{let f=c===void 0,s=!f&&(c.endsWith("$")||c.endsWith("var")),m=(y=>y==="'"||y==='"')(o),g=[","];this.definition.separators.length&&g.push(...this.definition.separators);let b="",u=()=>{if(b){let y=!1;if(!s||e.length){let n=(i,p)=>{let R=Object.prototype.hasOwnProperty.call(this.definition.resolvedVariables,i)?this.definition.resolvedVariables[i]:Object.prototype.hasOwnProperty.call(this.css.variables,i)?this.css.variables[i]:void 0;if(R){let v=R.name??i;if(!h.includes(v)){y=!0;let D={type:"variable",name:v,variable:this.css.variables[v]};p&&(D.alpha=p),e.push(D)}}};if(n(b),!y&&this.colored){let[i,p]=b.split("/");n(i,p)}}y||e.push(this.parseValueComponent(b,d)),b=""}};for(;r<a.length;r++){let y=a[r];if(y===o){if(m){let n=0;for(let i=b.length-1;b[i]==="\\";i--)n++;if(n%2){b+=y;continue}else u()}else u();return r}else if(!m&&y in X){let n=b,i={type:"function",name:n,symbol:y,children:[]};e.push(i),b="";let p=y==="("&&this.css.config.functions?.[n];!this.colored&&p?.colored&&(this.colored=!0),r=this.parseValue(i.children,++r,a,p?.unit??d,X[y],n||c||"")}else if((y==="|"||y===" ")&&o!=="}"&&(!m||c==="path"))u(),e.push({type:"separator",value:" "});else{if(!m){if(y===".")if(isNaN(+a[r+1])){if(f)break}else a[r-1]==="-"&&(b+="0");else if(g.includes(y)){u(),e.push({type:"separator",value:y,text:(y===","?"":" ")+y+(y===","?"":" ")});continue}else if(f&&(y==="#"&&(b||e.length&&e[e.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(y)))break}b+=y}}return u(),r};parseValueComponent(e,r=this.definition.unit){let a=r??this.definition.unit,d="",o;if(typeof e=="number")return a&&!d?((a==="rem"||a==="em")&&(o=e/this.css.config.rootSize),d=a||""):o=e,{value:o,unit:d,type:"number"};if(a){if(/^\d+\/\d+/.test(e)){let[h,f]=e.split("/");return{value:+h/+f*100,unit:"%",type:"number"}}let c=e.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(c)return o=+c[1],d=c[3]||"",d||((a==="rem"||a==="em")&&(o=o/this.css.config.rootSize),d=a||""),{value:o,unit:d,type:"number"}}return{value:e,type:"string"}}};var Me={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},ae=Me;var Ee={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},ne=Ee;var Te={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},se=Te;var ze={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}},oe=ze;function H(t){t.startsWith("#")&&(t=t.slice(1));let e,r,a,d;return t.length===3||t.length===4?(e=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),a=parseInt(t[2]+t[2],16),d=t.length===4?Math.round(parseInt(t[3]+t[3],16)/255*100)/100:1):(t.length===6||t.length===8)&&(e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16),d=t.length===8?Math.round(parseInt(t.slice(6,8),16)/255*100)/100:1),[e,r,a,d]}function be(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function M(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let a in t)if(a&&+a>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let a=0,d="0"in t?H(t[0]):[0,0,0],o,c,h=[],f=()=>{let s=o-a,l=c.map((m,g)=>(m-d[g])/s);for(let m of h){let g=m-a,b=d.map((u,y)=>Math.round(u+l[y]*g));t[m]="#"+be.call(this,...b)}};for(let s=1;s<100;s++)s in t?(h.length?(o=s,c=H(t[s]),f(),h.length=0,d=c):d=H(t[s]),a=s):h.push(s);h.length&&(o=100,c="100"in t?H(t[100]):[255,255,255],f())}return e||(t[""]=t[r?"500":"50"]),t}var Pe={font:{family:{mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"]},weight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},sizing:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560,full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},flex:{direction:{col:"column","col-reverse":"column-reverse"}},box:{sizing:{content:"content-box",border:"border-box"}},position:{abs:"absolute",rel:"relative"},transform:{box:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},animation:{direction:{alt:"alternate","alt-reverse":"alternate-reverse"}},background:{clip:{content:"content-box",border:"border-box",padding:"padding-box"},origin:{content:"content-box",border:"border-box",padding:"padding-box"}},order:{first:-999999,last:999999},shape:{outside:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},clip:{path:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box",black:"#000000"}},black:"#000000",white:"#ffffff",current:"currentColor",slate:M({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:M({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:M({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:M({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:M({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:M({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:M({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:M({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:M({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:M({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:M({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:M({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:M({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:M({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:M({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:M({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:M({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:M({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:M({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:M({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},le=Pe;var Q=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],K=function(t){return t.length<2||t.find(r=>r.type==="string"&&Q.includes(r.value)||r.type==="variable"&&Q.includes(r.variable.value))||t.push({type:"separator",value:" "},{type:"string",value:"solid"}),t},$e={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=f=>{let s=f.indexOf(":");s!==-1&&(e[f.slice(0,s)]=f.slice(s+1))},a=f=>{let s=l=>{let m=l.slice(ee(f.className).length).match(/\{(.*)\}/)[1].split(";");for(let g of m)r(g)};for(let l of f.natives)s(l.text);if(f.animationNames){this.animationNames||(this.animationNames=[]);for(let l of f.animationNames)this.animationNames.includes(l)||this.animationNames.push(l)}if(f.variableNames){this.variableNames||(this.variableNames=[]);for(let l of f.variableNames)this.variableNames.includes(l)||this.variableNames.push(l)}},d=[],o="",c=()=>{o&&(d.push(o.replace(/ /g,"|")),o="")},h=1;(function f(s){for(;h<t.length;h++){let l=t[h];if(!s){if(l===";"){c();continue}if(l==="}")break}if(o+=l,s===l){if(s==="'"||s==='"'){let m=0;for(let g=o.length-2;o[g]==="\\";g--)m++;if(m%2)continue}break}else l in X&&s!=="'"&&s!=='"'&&(h++,f(X[l]))}})(void 0),c();for(let f of d){let s=this.css.create(f);if(s.length)for(let l of s)a(l);else r(f)}return e}},variable:{match:/^\$[\w-]+:/,colored:!0,layer:-1,declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},"font-size":{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-3},"font-weight":{match:["f(?:ont)?",["bolder"]],layer:-3},"font-family":{match:["f(?:ont)?"],layer:-3},"font-smoothing":{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-3,declare(t){switch(t){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},"font-style":{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-3,unit:"deg"},"font-variant-numeric":{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-3},"font-variant":{layer:-7},"font-feature-settings":{match:/^font-feature:/,layer:-3},font:{match:/^f:/,layer:-7,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},color:{match:/^(?:color|fg|foreground):/,layer:-3,colored:!0},"margin-left":{match:/^ml:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-right":{match:/^mr:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-top":{match:/^mt:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-bottom":{match:/^mb:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-x":{match:/^(?:mx|margin-x):/,unit:"rem",layer:-5,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}},variables:["spacing"]},"margin-y":{match:/^(?:my|margin-y):/,unit:"rem",layer:-5,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}},variables:["spacing"]},margin:{match:/^m:/,unit:"rem",layer:-7,variables:["spacing"]},"margin-inline-start":{match:/^mis:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline-end":{match:/^mie:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline":{match:/^mi:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-left":{match:/^pl:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-right":{match:/^pr:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-top":{match:/^pt:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-bottom":{match:/^pb:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-x":{match:/^(?:px|padding-x):/,unit:"rem",layer:-5,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}},variables:["spacing"]},"padding-y":{match:/^(?:py|padding-y):/,unit:"rem",layer:-5,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}},variables:["spacing"]},padding:{match:/^p:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-inline-start":{match:/^pis:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline-end":{match:/^pie:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline":{match:/^pi:/,unit:"rem",layer:-7,variables:["spacing"]},"flex-basis":{variables:["sizing"],unit:"rem",layer:-3},"flex-wrap":{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-3},"flex-grow":{layer:-3},"flex-shrink":{layer:-3},"flex-direction":{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-3},flex:{layer:-7},display:{match:/^d:/,layer:-3},width:{match:/^w:/,unit:"rem",layer:-3,variables:["sizing"]},height:{match:/^h:/,unit:"rem",layer:-3,variables:["sizing"]},"min-width":{match:/^min-w:/,unit:"rem",layer:-3,variables:["sizing"]},"min-height":{match:/^min-h:/,unit:"rem",layer:-3,variables:["sizing"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-5,unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},"min-box":{match:/^min:/,layer:-5,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},"max-box":{match:/^max:/,layer:-5,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},"box-sizing":{match:/^box:/,layer:-3},"box-decoration-break":{match:["sizing",["slice","clone"]],layer:-3,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},contain:{layer:-3},content:{layer:-3},"counter-increment":{layer:-3},"counter-reset":{layer:-3},"letter-spacing":{match:/^ls:/,layer:-3,unit:"em"},"line-height":{match:/^lh:/,layer:-3},"object-fit":{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-3},"object-position":{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-3},"text-align":{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-3},"text-decoration-color":{match:["text-decoration"],layer:-3,colored:!0},"text-decoration-style":{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-3},"text-decoration-thickness":{match:["text-decoration",["from-font"]],numeric:!0,layer:-3,unit:"em"},"text-decoration-line":{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-3},"text-decoration":{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-7},"text-underline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"text-overflow":{match:["t(?:ext)?",["ellipsis","clip"]],layer:-3},"text-orientation":{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-3},"text-transform":{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-3},"text-rendering":{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-3},"text-indent":{unit:"rem",layer:-3},"vertical-align":{match:/^(?:v|vertical):/,layer:-3},columns:{match:/^(?:columns|cols):/,layer:-7},"white-space":{layer:-3},top:{layer:-3,unit:"rem",variables:["spacing"]},bottom:{layer:-3,unit:"rem",variables:["spacing"]},left:{layer:-3,unit:"rem",variables:["spacing"]},right:{layer:-3,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:-7,variables:["spacing"]},lines:{match:/^lines:/,declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},"max-height":{match:/^max-h:/,unit:"rem",layer:-3,variables:["sizing"]},"max-width":{match:/^max-w:/,unit:"rem",layer:-3,variables:["sizing"]},opacity:{layer:-3},visibility:{layer:-3},clear:{layer:-3},float:{layer:-3},isolation:{layer:-3},"overflow-x":{layer:-3,declare(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},"overflow-y":{layer:-3,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{layer:-7,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},"overscroll-behavior-x":{layer:-3},"overscroll-behavior-y":{layer:-3},"overscroll-behavior":{layer:-7},"z-index":{match:/^z:/,layer:-3},position:{layer:-3},cursor:{layer:-3},"pointer-events":{layer:-3},resize:{layer:-3},"touch-action":{layer:-3},"word-break":{layer:-3},"word-spacing":{layer:-3,unit:"em"},"user-drag":{layer:-3,declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},"user-select":{layer:-3,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},"text-shadow":{unit:"rem",layer:-3,colored:!0},"text-size":{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},"text-fill-color":{match:["(?:text-fill|text|t)"],layer:-3,colored:!0,declare(t,e){return{"-webkit-text-fill-color":t+e}}},"text-stroke-width":{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-3,declare(t,e){return{"-webkit-text-stroke-width":t+e}}},"text-stroke-color":{match:["text-stroke"],layer:-3,colored:!0,declare(t,e){return{"-webkit-text-stroke-color":t+e}}},"text-stroke":{unit:"rem",layer:-3,declare(t,e){return{"-webkit-text-stroke":t+e}}},"box-shadow":{match:/^s(?:hadow)?:/,unit:"rem",layer:-3,colored:!0},"table-layout":{layer:-3},"transform-box":{match:["transform"],layer:-3},"transform-style":{match:["transform",["flat","preserve-3d"]],layer:-3},"transform-origin":{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-3},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-3,analyze(t){return[t.startsWith("transform")?t.slice(10):t]},variables:["spacing"]},"transition-property":{match:/^~property:/,layer:-3},"transitionTiming-function":{match:/^~easing:/,layer:-3},"transition-duration":{match:/^~duration:/,layer:-3,unit:"ms"},"transition-delay":{match:/^~delay:/,layer:-3,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(t){if(t.startsWith("~"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}},layer:-7},"animation-delay":{match:/^@delay:/,layer:-3,unit:"ms"},"animation-direction":{match:/^@direction:/,layer:-3},"animation-duration":{match:/^@duration:/,layer:-3,unit:"ms"},"animation-fill-mode":{match:/^@fill:/,layer:-3},"animation-iteration-count":{match:/^@iteration:/,layer:-3},"animation-name":{match:/^@name:/,layer:-3},"animation-play-state":{match:/^@play:/,layer:-3},"animation-timing-function":{match:/^@easing:/,layer:-3},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-7,analyze(t){if(t.startsWith("@"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}}},"border-collapse":{match:["b(?:order)?",["collapse","separate"]],layer:-3},"border-spacing":{unit:"rem",layer:-3},"border-top-color":{match:["b(?:t|order-top(?:-color)?)"],layer:-3,colored:!0},"border-bottom-color":{match:["b(?:b|order-bottom(?:-color)?)"],layer:-3,colored:!0},"border-left-color":{match:["b(?:l|order-left(?:-color)?)"],layer:-3,colored:!0},"border-right-color":{match:["b(?:r|order-right(?:-color)?)"],layer:-3,colored:!0},"border-x-color":{match:["b(?:x|order-x(?:-color)?)"],layer:-5,colored:!0,declare(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},"border-y-color":{match:["b(?:y|order-y(?:-color)?)"],layer:-5,colored:!0,declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},"border-color":{match:["b(?:order)?(?:-color)?"],layer:-7,colored:!0},"border-top-left-radius":{match:/^r(?:tl|lt):/,unit:"rem",layer:-3},"border-top-right-radius":{match:/^r(?:tr|rt):/,unit:"rem",layer:-3},"border-bottom-left-radius":{match:/^r(?:bl|lb):/,unit:"rem",layer:-3},"border-bottom-right-radius":{match:/^r(?:br|rb):/,unit:"rem",layer:-3},"border-top-radius":{match:/^rt:/,unit:"rem",layer:-5,declare(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},"border-bottom-radius":{match:/^rb:/,unit:"rem",layer:-5,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},"border-left-radius":{match:/^rl:/,unit:"rem",layer:-5,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},"border-right-radius":{match:/^rr:/,unit:"rem",layer:-5,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},"border-radius":{match:/^r:/,unit:"rem",layer:-7},"border-top-style":{match:["b(?:t|order-top(?:-style)?)",Q],layer:-3},"border-bottom-style":{match:["b(?:b|order-bottom(?:-style)?)",Q],layer:-3},"border-left-style":{match:["b(?:l|order-left(?:-style)?)",Q],layer:-3},"border-right-style":{match:["b(?:r|order-right(?:-style)?)",Q],layer:-3},"border-x-style":{match:["b(?:x|order-x(?:-style)?)",Q],layer:-5,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},"border-y-style":{match:["b(?:y|order-y(?:-style)?)",Q],layer:-5,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},"border-style":{match:["b(?:order)?(?:-style)?",Q],layer:-7},"border-top-width":{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-bottom-width":{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-left-width":{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-right-width":{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-x-width":{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},"border-y-width":{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},"border-width":{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-7},"border-image-outset":{unit:"rem",layer:-3},"border-image-repeat":{match:["border-image",["stretch","repeat","round","space"]],layer:-3},"border-image-slice":{layer:-3},"border-image-source":{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-3},"border-image-width":{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-3},"border-image":{layer:-7},"border-top":{match:/^bt:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:K},"border-bottom":{match:/^bb:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:K},"border-left":{match:/^bl:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:K},"border-right":{match:/^br:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:K},"border-x":{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:K,declare(t){return{"border-left":t,"border-right":t}}},"border-y":{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:K,declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-7,transformValueComponents:K},"background-attachment":{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-3},"background-blend-mode":{layer:-3},"background-color":{match:["(?:bg|background)"],layer:-3,colored:!0},"background-clip":{match:["(?:bg|background)",["text"]],layer:-3,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}}},"background-origin":{match:["(?:bg|background)"],layer:-3},"background-position":{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-3,unit:"px"},"background-repeat":{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-3},"background-size":{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-3},"background-image":{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},background:{match:/^bg:/,colored:!0,layer:-7},gradient:{match:/^gradient\(/,layer:-3,colored:!0,declare(t){return{"background-image":"linear-"+t}}},"mix-blend-mode":{match:/^blend:/,layer:-3},"backdrop-filter":{match:/^bd:/,layer:-3,colored:!0,declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-3,colored:!0},fill:{match:/^fill:/,layer:-3,colored:!0},"stroke-dasharray":{layer:-3},"stroke-dashoffset":{layer:-3,variables:["spacing"]},"stroke-width":{match:["stroke(?:-width)?"],numeric:!0,layer:-3},stroke:{match:["stroke"],layer:-3,colored:!0},x:{layer:-3,variables:["spacing"]},y:{layer:-3,variables:["spacing"]},cx:{layer:-3,variables:["spacing"]},cy:{layer:-3,variables:["spacing"]},rx:{layer:-3},ry:{layer:-3},"grid-column-start":{match:/^grid-col-start:/,layer:-3},"grid-column-end":{match:/^grid-col-end:/,layer:-3},"grid-column":{match:/^grid-col(?:umn)?(?:-span)?:/,layer:-7,transformValue(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},"grid-columns":{match:/^grid-cols:/,declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},"grid-row-start":{layer:-3},"grid-row-end":{layer:-3},"grid-row":{match:/^grid-row-span:/,layer:-7,transformValue(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},"grid-rows":{match:/^grid-rows:/,declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},"grid-auto-columns":{match:/^grid-auto-cols:/,layer:-3,variables:["sizing"]},"grid-auto-flow":{match:/^grid-flow:/,layer:-3},"grid-auto-rows":{layer:-3,variables:["sizing"]},"grid-template-areas":{layer:-3},"grid-template-columns":{match:/^grid-template-cols:/,layer:-3,unit:"rem",variables:["sizing"]},"grid-template-rows":{layer:-3,unit:"rem",variables:["sizing"]},"grid-template":{layer:-7},"grid-area":{layer:-7},grid:{layer:-7},"column-gap":{match:/^gap-x:/,unit:"rem",layer:-3,variables:["spacing"]},"row-gap":{match:/^gap-y:/,unit:"rem",layer:-3,variables:["spacing"]},gap:{unit:"rem",layer:-7,variables:["spacing"]},order:{match:/^o:/,layer:-3},"break-inside":{layer:-3},"break-before":{layer:-3},"break-after":{layer:-3},"aspect-ratio":{match:/^aspect:/,layer:-3},"column-span":{match:/^col-span:/,layer:-3},"align-content":{match:/^ac:/,layer:-3},"align-items":{match:/^ai:/,layer:-3},"align-self":{match:/^as:/,layer:-3},"justify-content":{match:/^jc:/,layer:-3},"justify-items":{match:/^ji:/,layer:-3},"justify-self":{match:/^js:/,layer:-3},"place-content":{layer:-7},"place-items":{layer:-7},"place-self":{layer:-7},"list-style-position":{match:["list-style",["inside","outside"]],layer:-3},"list-style-type":{match:["list-style",["disc","decimal"]],layer:-3},"list-style-image":{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},"list-style":{layer:-7},"outline-color":{match:["outline"],layer:-3,colored:!0},"outline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"outline-style":{match:["outline",Q],layer:-3},"outline-width":{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-3},outline:{unit:"rem",layer:-7,colored:!0,variables:["outline-width","outline-style","outline-offset","outline-color"],transformValueComponents:K},"accent-color":{match:/^accent:/,layer:-3,colored:!0},appearance:{layer:-3},"caret-color":{match:/^caret:/,layer:-3,colored:!0},"scroll-behavior":{layer:-3},"scroll-margin-left":{match:/^scroll-ml:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-right":{match:/^scroll-mr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-top":{match:/^scroll-mt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{match:/^scroll-mb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-x":{match:/^(?:scroll-margin-x|scroll-mx):/,unit:"rem",layer:-5,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}},variables:["spacing"]},"scroll-margin-y":{match:/^(?:scroll-margin-y|scroll-my):/,unit:"rem",layer:-5,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}},variables:["spacing"]},"scroll-margin":{match:/^scroll-m:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-padding-left":{match:/^scroll-pl:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-right":{match:/^scroll-pr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-top":{match:/^scroll-pt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{match:/^scroll-pb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-x":{match:/^(?:scroll-padding-x|scroll-px):/,unit:"rem",layer:-5,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}},variables:["spacing"]},"scroll-padding-y":{match:/^(?:scroll-padding-y|scroll-py):/,unit:"rem",layer:-5,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}},variables:["spacing"]},"scroll-padding":{match:/^scroll-p:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-snap-align":{match:["scroll-snap",["start","end","center"]],layer:-3},"scroll-snap-stop":{match:["scroll-snap",["normal","always"]],layer:-3},"scroll-snap-type":{match:["scroll-snap",["x","y","block","inline","both"]],layer:-3},"will-change":{layer:-3},"writing-mode":{match:/^writing:/,layer:-3},direction:{layer:-3},"shape-outside":{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-3},"shape-margin":{match:["shape"],numeric:!0,unit:"rem",layer:-3,variables:["spacing"]},"shape-image-threshold":{layer:-3},"clip-path":{match:/^clip:/,layer:-3},quotes:{layer:-3},"mask-image":{layer:-3,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},ce=$e;var Ae={$:{colored:!0,transform(t){let e,r,a=t.indexOf(",");return a!==-1?(e=t.slice(0,a),r=t.slice(a+1)):e=t,[{type:"variable",name:e,fallback:r}]}},calc:{transform(t,e){let r=[],a=this.css.config.functions,d=0,o=(c,h,f)=>{let s=!1,l="",m=(g,b="",u="")=>{l&&(!s&&!f?c.push(this.parseValueComponent(l,a.calc.unit)):c.push({type:"string",value:l}),l=""),g&&(b&&t[d-1]===" "&&(b=""),u&&t[d+1]===" "&&(u=""),h?c.push({type:"separator",value:g,text:g}):c.push({type:"separator",value:g,text:b+g+u})),s=!1};for(;d<t.length;d++){let g=t[d];if(g==="("){let b=/^([+-])/.exec(l);b&&c.push({type:"string",value:b[1]});let u=b?l.slice(1):l,y={type:"function",name:u,symbol:g,children:[]};c.push(y),l="",d++;let n=y.name==="$"||y.name==="var";o(y.children,u!==""&&u!=="calc"&&(n||Object.prototype.hasOwnProperty.call(a,u)),s||n)}else if(g===")"){m("");break}else if(g===",")m(g,""," ");else if(g===" ")m(g);else{let b=t[d-1];switch(g){case"+":!l&&b!==")"?l+=g:m(g," "," ");break;case"-":!l&&b!==")"?l+=g:m(g," "," ");break;case"*":m(g," "," ");break;case"/":m(g," "," "),s=!0;break;default:l+=g;break}}}m("")};return o(r,!1,!1),"calc("+this.resolveValue(r,a.calc.unit??this.definition.unit,e)+")"}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},fe=Ae;var Z={mediaQueries:ae,selectors:ne,semantics:se,rules:ce,functions:fe,animations:oe,variables:le,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var ve=[",",".","#","[","!","*",">","+","~",":","@"];var Y=class{constructor(e=Z){this.customConfig=e;e?.override?this.config=this.getExtendedConfig(e):this.config=this.getExtendedConfig(Z,e),this.resolve(),globalThis.masterCSSs.push(this)}static config=Z;static refresh=e=>{for(let r of globalThis.masterCSSs)r.refresh(e)};rules=[];ruleBy={};classesUsage={};observing=!1;config;semanticRuleOptions=[];ruleOptions=[];observer;resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.ruleOptions.length=0,this.semanticRuleOptions.length=0,this.variablesNativeRules=void 0,this.hasKeyframesRule=!1;let e={current:void 0,currentColor:void 0,transparent:void 0},{styles:r,selectors:a,variables:d,semantics:o,mediaQueries:c,rules:h,animations:f}=this.config;function s(u){return u.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function l(u,y,n="",i={}){let p=x=>x?(n?n+"-":"")+x:n,R=Object.entries(u),v=[],D=[];for(let x of R){let C=x[1];(typeof C=="object"&&!Array.isArray(C)?v:D).push(x)}for(let[x,C]of v)l(C,y,p(x),i);if(y&&n)D.length&&(i[n]=D.reduce((x,[C,N])=>(x[C]=N,x),{}));else for(let[x,C]of D)i[p(x)]=C;return i}if(a)for(let[u,y]of Object.entries(l(a,!1))){let n=new RegExp(s(u)+"(?![a-z-])");for(let i of Array.isArray(y)?y:[y]){let p=i.match(/^::-[a-z]+-/m)?.[0]??"",R=this.selectors[p];R||(R=this.selectors[p]=[]);let v=R.find(([D])=>D===n);v||(v=[n,[]],R.push(v)),v[1].push(i)}}if(d){let u={};for(let y in d){let n=(i,p,R=void 0)=>{if(!i)return;let v=(x,C,N=void 0,O=void 0)=>{if(C===void 0)return;if(C.type==="color"){if(O){let $=C.value.indexOf("/");C={...C,value:$===-1?C.value+" / "+(O.startsWith("0.")?O.slice(1):O):C.value.slice(0,$+2)+(+C.value.slice($+2)*+O).toString().slice(1)}}e[x]=void 0}let z=N??R;if(z!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,x)){let $=this.variables[x];z?($.themes||($.themes={}),$.themes[z]=C):($.value=C.value,$.space=C.space)}else z?this.variables[x]={type:C.type,space:C.space,themes:{[z]:C}}:this.variables[x]=C;else this.variables[x]=C},D=typeof i;if(D==="object")if(Array.isArray(i))v(p,{type:"string",value:i.join(",")});else{let x=Object.keys(i);for(let C of x)C===""||C.startsWith("@")?n(i[C],p,C||x.some(N=>N.startsWith("@"))?C.slice(1):void 0):n(i[C],p+"-"+C)}else if(D==="number")v(p,{type:"number",value:i}),v("-"+p,{type:"number",value:i*-1});else if(D==="string"){let x=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(i);if(x)Object.prototype.hasOwnProperty.call(u,p)||(u[p]={}),u[p][R]=()=>{delete u[p][R];let[C,N]=x[1].split("@");if(C){if(Object.prototype.hasOwnProperty.call(u,C))for(let z of Object.keys(u[C]))u[C][z]?.();let O=this.variables[C];if(O)if(N===void 0&&O.themes){v(p,{type:O.type,value:O.value,space:O.space},"",x[2]);for(let z in O.themes)v(p,O.themes[z],z,x[2])}else{let z=N!==void 0?O.themes?.[N]:O;z&&v(p,{type:z.type,value:z.value,space:z.space},void 0,x[2])}}};else{let C=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(i);if(C){let[N,O,z,$]=H(C[1]);v(p,{type:"color",value:`${N} ${O} ${z}${$===1?"":" / "+$}`,space:"rgb"})}else{let N=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(i);if(N)v(p,{type:"color",value:N[1]+" "+N[2]+" "+N[3]+(N[4]?" / "+(N[4].startsWith("0.")?N[4].slice(1):N[4]):""),space:"rgb"});else{let O=/^hsl\((.*?)\)$/.exec(i);O?v(p,{type:"color",value:O[1],space:"hsl"}):v(p,{type:"string",value:i})}}}}};n(d[y],y)}for(let y of Object.keys(u))for(let n of Object.keys(u[y]))u[y][n]?.()}if(c&&(this.mediaQueries=l(c,!1)),f)for(let u in f){let y=this.animations[u]={},n=f[u];for(let i in n){let p=y[i]={},R=n[i];for(let v in R)p[v]=R[v]}}let m=r?l(r,!1):{},g=Object.keys(m),b=u=>{if(Object.prototype.hasOwnProperty.call(this.styles,u))return;let y=this.styles[u]=[],n=m[u];if(!n)return;let i=n.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let p of i){let R=v=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,v)){let D=this.stylesBy[v];D.includes(u)||D.push(u)}else this.stylesBy[v]=[u];y.includes(v)||y.push(v)};if(g.includes(p)){b(p);for(let v of this.styles[p])R(v)}else R(p)}};for(let u of g)b(u);if(o&&Object.entries(o).sort((u,y)=>u[0].localeCompare(y[0])).forEach(([u,y],n)=>{this.semanticRuleOptions.push({id:"."+u,resolvedMatch:new RegExp("^"+s(u)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:n,declarations:y,layer:-8})}),h){let u=Object.entries(h).sort((i,p)=>i[1].layer!==p[1].layer?(p[1].layer||0)-(i[1].layer||0):p[0].localeCompare(i[0])),y=u.length,n=Object.keys(e);u.forEach(([i,p],R)=>{this.ruleOptions.push(p),p.order=this.semanticRuleOptions.length+y-1-R;let v=p.match;p.id=i,p.resolvedVariables={};let D=x=>{Object.assign(p.resolvedVariables,Object.keys(this.variables).filter(C=>C.startsWith(x+"-")||C.startsWith("-"+x+"-")).reduce((C,N)=>(C[N.slice(x.length+(x.startsWith("-")?0:1))]={...this.variables[N],name:N},C),{}))};if(p.variables)for(let x of p.variables)D(x);if(D(i),v)if(Array.isArray(v)){let[x,C=[]]=v,N=[];C.length&&N.push(`(?:${C.join("|")})(?![a-zA-Z0-9-])`),Object.keys(p.resolvedVariables).length&&N.push(`(?:${Object.keys(p.resolvedVariables).join("|")})(?![a-zA-Z0-9-])`),p.colored&&N.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${n.join("|")})(?![a-zA-Z0-9-])`),p.numeric&&N.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),N.length&&(p.resolvedMatch=new RegExp(`^${x}:(?:${N.join("|")})[^|]*?(?:@|$)`))}else p.resolvedMatch=v})}}observe(e,r={subtree:!0,childList:!0}){if(e||(e=document),this.root===e)return this;this.root=e;let a=e===document;a&&(globalThis.masterCSS=this),this.host=a?document.documentElement:this.root.host;let d=a?document.head:e,o=a?document.styleSheets:e.styleSheets;for(let h of o){let{ownerNode:f}=h;if(f&&f.id==="master"){this.style=f;break}}if(this.style){let h=0;for(;h<this.style.sheet.cssRules.length;h++){let f=this.style.sheet.cssRules[h];switch(f.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":if(this.config.themeDriver==="media"){let l=/\(prefers-color-scheme: (.*?)\)/.exec(f.conditionText);if(l){let m=f.cssRules[0];if(m?.constructor.name==="CSSStyleRule"&&m.selectorText===":root"){this.pushVariableNativeRule(l[1],m);continue}}}break;case"CSSStyleRule":let s=f.selectorText;if(f.style.length){let l=!0;for(let m=0;m<f.style.length;m++)if(!f.style[m]?.startsWith("--")){l=!1;break}if(l){if(s===":root"){this.pushVariableNativeRule("",f);continue}else if(this.config.themeDriver==="host"){let m=/:host(.*?)/.exec(s);if(m){this.pushVariableNativeRule(m[1],f);continue}}else if(!s.startsWith(".\\$")){this.pushVariableNativeRule(s.slice(1),f);continue}}}break}}for(;h<this.style.sheet.cssRules.length;h++){let f=l=>{if(l.selectorText){let g=l.selectorText.split(", ")[0].split(" ");for(let b=0;b<g.length;b++){let u=g[b];if(u[0]==="."){let y=u.slice(1),n="";for(let i=0;i<y.length;i++){let p=y[i],R=y[i+1];if(p==="\\"){if(i++,R!=="\\"){n+=R;continue}}else if(ve.includes(p))break;n+=p}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,n)&&!Object.prototype.hasOwnProperty.call(this.styles,n)){let i=this.create(n)[0];if(i)return i}}}}else if(l.cssRules)for(let m=0;m<l.cssRules.length;m++){let g=f(l.cssRules[m]);if(g)return g}},s=f(this.style.sheet.cssRules[h]);if(s){this.rules.push(s),this.ruleBy[s.className]=s;for(let l=0;l<s.natives.length;l++)s.natives[l].cssRule=this.style.sheet.cssRules[h+l];h+=s.natives.length-1,this.handleRuleWithVariableNames(s,!0),this.handleRuleWithAnimationNames(s,!0),s.definition.insert?.call(s)}}}else this.style=document.createElement("style"),this.style.id="master",d.append(this.style);let c=h=>{h.forEach(f=>{Object.prototype.hasOwnProperty.call(this.classesUsage,f)?this.classesUsage[f]++:(this.classesUsage[f]=1,this.insert(f))})};return c(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(h=>c(h.classList)),this.observer=new MutationObserver(h=>{let f={},s=[],l=[],m=[],g=(n,i)=>{i?n.classList.forEach(u):n.classList.forEach(b);let p=n.children;for(let R=0;R<p.length;R++){let v=p[R];v.classList&&(l.push(v),g(v,i))}},b=n=>{Object.prototype.hasOwnProperty.call(f,n)?f[n]++:f[n]=1},u=n=>{Object.prototype.hasOwnProperty.call(f,n)?f[n]--:Object.prototype.hasOwnProperty.call(this.classesUsage,n)&&(f[n]=-1)},y=(n,i)=>{for(let p=0;p<n.length;p++){let R=n[p];R.classList&&!l.includes(R)&&!m.includes(R)&&(R.isConnected!==i?(l.push(R),g(R,i)):m.push(R))}};for(let n=0;n<h.length;n++){let i=h[n],{addedNodes:p,removedNodes:R,type:v,target:D}=i;if(v==="attributes"){if(s.find(x=>x.target===D))continue;s.push(i)}else y(p,!1),(!D.isConnected||!l.includes(D))&&y(R,!0)}if(!(!s.length&&!Object.keys(f).length)){for(let{oldValue:n,target:i}of s){let p=l.includes(i),R=i.classList,v=n?n.split(" "):[];if(p){if(i.isConnected)continue;for(let D of v)R.contains(D)||u(D)}else if(i.isConnected){R.forEach(D=>{v.includes(D)||b(D)});for(let D of v)R.contains(D)||u(D)}}for(let n in f){let i=f[n],p=(this.classesUsage[n]||0)+i;p===0?(delete this.classesUsage[n],this.delete(n)):(Object.prototype.hasOwnProperty.call(this.classesUsage,n)||this.insert(n),this.classesUsage[n]=p)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0,this}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules=void 0;for(let r in this.animations){let a=this.animations[r];a.usage=void 0,a.native=void 0}for(let r in this.variables){let a=this.variables[r];a.usage=void 0}let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r of this.ruleOptions)if(r.resolvedMatch&&r.resolvedMatch.test(e)||(r.layer===-2||r.layer===-6||r.layer===-3||r.layer===-7)&&e.startsWith(r.id+":"))return r;for(let r of this.semanticRuleOptions)if(r.resolvedMatch.test(e))return r}create(e){let r=a=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,a))return this.ruleBy[a];let d=this.match(a);if(d)return new G(a,d,this)};return(Object.prototype.hasOwnProperty.call(this.styles,e)?this.styles[e].map(a=>r(a)):[r(e)]).filter(a=>a&&a.text)}refresh(e=this.customConfig){if(e?.override?this.config=this.getExtendedConfig(e):this.config=this.getExtendedConfig(Z,e),this.resolve(),!this.style)return;let r=document.createElement("style");r.id="master",this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let a in this.classesUsage)this.insert(a)}destroy(){this.disconnect(),globalThis.masterCSSs.splice(globalThis.masterCSSs.indexOf(this),1)}delete(e){let r=this.style?.sheet,a=d=>{let o=this.ruleBy[d];if(!(!o||Object.prototype.hasOwnProperty.call(this.stylesBy,d)&&this.stylesBy[d].some(c=>Object.prototype.hasOwnProperty.call(this.classesUsage,c)))){if(r&&o.natives.length){let c=o.natives[0];for(let h=0;h<r.cssRules.length;h++)if(r.cssRules[h]===c.cssRule){for(let s=0;s<o.natives.length;s++)r.deleteRule(h);break}}if(this.rules.splice(this.rules.indexOf(o),1),delete this.ruleBy[d],o.variableNames)for(let c of o.variableNames){let h=this.variables[c];if(!--h.usage){let f=s=>{let l=this.variablesNativeRules[s];if(l.cssRule.style.removeProperty("--"+c),!l.cssRule.style.length){let m=this.rules[0],g=m.natives.indexOf(l);r?.deleteRule(g),m.natives.splice(g,1),delete this.variablesNativeRules[s],m.natives.length||(this.rules.splice(0,1),this.variablesNativeRules=void 0)}};if(h.value&&f(""),h.themes)for(let s in h.themes)f(s)}}if(o.animationNames){let c=this.variablesNativeRules?1:0,h=this.rules[c];for(let f of o.animationNames){let s=this.animations[f];if(!--s.usage){let l=h.natives.indexOf(s.native);this.style.sheet.deleteRule((this.variablesNativeRules?Object.keys(this.variablesNativeRules).length:0)+l),h.natives.splice(l,1),s.native=void 0}}h.natives.length||(this.rules.splice(c,1),this.hasKeyframesRule=!1)}o.definition.delete?.call(o,d)}};if(Object.prototype.hasOwnProperty.call(this.styles,e)){for(let d of this.styles[e])Object.prototype.hasOwnProperty.call(this.classesUsage,d)||a(d);delete this.ruleBy[e]}else a(e)}insert(e){let r=this.create(e);return r.length?(this.render(r),!0):!1}render(e){for(let r of e){if(this.ruleBy[r.className])continue;let a,d=this.rules.length-1,{media:o,order:c,priority:h,hasWhere:f,className:s}=r,l=(b,u,y)=>{let n=b;for(;n<=d;n++){let i=this.rules[n];if(u?.(i))return y?-1:n-1;if(y?.(i))return n}return y?-1:n-1},m,g;if(o){let b=this.rules.findIndex(u=>u.media);if(b===-1)a=d+1;else{let{"max-width":u,"min-width":y}=o.features;if(u||y){let n=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(n===-1)a=d+1;else if(u&&y){if(h===-1?(m=l(n,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),g=l(n,i=>i.priority!==-1)):(m=l(n,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),g=d),m!==-1){let i=u.value-y.value,p=g,R=m;for(m=void 0;p>=R;p--){let{"max-width":v,"min-width":D}=this.rules[p].media.features,x=v.value-D.value;if(x<i)g=p-1;else if(x===i)m=p;else break}}if(m!==-1){let i=u.value-y.value;for(let p=g;p>=m;p--){let{"max-width":R,"min-width":v}=this.rules[p].media.features,D=R.value-v.value;if(D<i)g=p-1;else if(D>i){m=p+1;break}}}}else if(y){if(h===-1?(m=l(n,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]),g=l(n,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(m=l(n,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),g=l(n,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),m!==-1)for(let i=g;i>=m;i--){let p=this.rules[i].media.features["min-width"].value;if(p>y.value)g=i-1;else if(p<y.value){m=i+1;break}}}else if(h===-1?(m=l(n,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),g=l(n,i=>i.media.features["min-width"]||i.priority!==-1)):(m=l(n,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),g=l(n,i=>i.media.features["min-width"]&&i.priority!==-1)),m!==-1)for(let i=g;i>=m;i--){let p=this.rules[i].media.features["max-width"].value;if(p<u.value)g=i-1;else if(p>u.value){m=i+1;break}}}else h===-1?(m=b,g=l(b,n=>n.media?.features["max-width"]||n.media?.features["min-width"]||n.priority!==-1)):(m=l(b,n=>n.media?.features["max-width"]||n.media?.features["min-width"],n=>n.priority!==-1),g=l(b,n=>n.media?.features["max-width"]||n.media?.features["min-width"]))}}else{let b=this.variablesNativeRules?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;h===-1?(m=b,g=l(b,u=>u.media||u.priority!==-1)):(m=l(b,u=>u.media,u=>u.priority!==-1),g=l(b,u=>u.media))}if(a===void 0)if(m===-1)a=g+1;else{if(h===-1)for(let b=m;b<=g;b++){let u=this.rules[b];if(!(!f&&u.hasWhere)&&(f&&!u.hasWhere||u.order>=c)){a=b;break}}else for(let b=m;b<=g;b++){let u=this.rules[b];if(!(!f&&u.hasWhere)){if(f&&!u.hasWhere){a=b;break}if(u.priority<h){a=b;break}else if(u.priority===h){if(u.order>=c){a=b;break}}else a=b+1}}a===void 0&&(a=g+1)}if(this.rules.splice(a,0,r),this.ruleBy[s]=r,this.style){let b=this.style.sheet,u=0,y=n=>{let i=this.rules[n];if(i){if(!i.natives.length)return y(n-1);let p=i.natives[i.natives.length-1],R=p.cssRule.parentRule??p.cssRule;for(let v=0;v<b.cssRules.length;v++)if(b.cssRules[v]===R){u=v+1;break}}};y(a-1);for(let n=0;n<r.natives.length;)try{let i=r.natives[n];b.insertRule(i.text,u),i.cssRule=b.cssRules[u++],n++}catch(i){console.error(i),r.natives.splice(n,1)}}this.handleRuleWithVariableNames(r),this.handleRuleWithAnimationNames(r),r.definition.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}getExtendedConfig(...e){let r=o=>{let c=q({},o),h=f=>{for(let s in f){let l=f[s];typeof l=="object"&&!Array.isArray(l)?h(l):s&&!s.startsWith("@")&&(f[s]={"":l})}};return c.styles?h(c.styles):c.styles={},c.mediaQueries?h(c.mediaQueries):c.mediaQueries={},c.variables?h(c.variables):c.variables={},c},a=[];for(let o of e)(function c(h){if(h.extends?.length)for(let f of h.extends)c("config"in f?f.config:f);a.push(r(h))})(o);let d=a[0];for(let o=1;o<a.length;o++){let c=a[o];d=q(d,c),Object.prototype.hasOwnProperty.call(c,"animations")&&Object.assign(d.animations,c.animations)}return d}handleRuleWithAnimationNames(e,r=!1){if(e.animationNames){let a=this.style?.sheet;for(let d of e.animationNames){let o=this.animations[d];if(o.usage)o.usage++;else{let c={text:`@keyframes ${d}{`+Object.entries(o).filter(([s])=>s!=="usage"&&s!=="native").map(([s,l])=>`${s}{${Object.entries(l).map(([m,g])=>m+":"+g).join(";")}}`).join("")+"}"},h=this.variablesNativeRules?1:0,f;if(this.hasKeyframesRule?(f=this.rules[h]).natives.push(c):(this.rules.splice(h,0,f={natives:[c],get text(){return this.natives.map(s=>s.text).join("")}}),this.hasKeyframesRule=!0),a){let s;if(r)for(let l=0;l<a.cssRules.length;l++){let m=a.cssRules[l];if(m.constructor.name==="CSSKeyframesRule"&&m.name===d){s=m;break}}if(s)c.cssRule=s;else{let l=(this.variablesNativeRules?Object.keys(this.variablesNativeRules).length:0)+f.natives.length-1;a.insertRule(c.text,l),c.cssRule=a.cssRules[l]}}o.usage=1,o.native=c}}}}handleRuleWithVariableNames(e,r=!1){if(e.variableNames){let a=this.style?.sheet;for(let d of e.variableNames){let o=this.variables[d];if(o.usage)o.usage++;else{let c=(h,f)=>{let s=this.variablesNativeRules?.[h];if(!s){let m,g,b;if(h)switch(this.config.themeDriver){case"media":g=`@media(prefers-color-scheme:${h})`,b=":root";break;case"host":b=`:host(.${h})`;break;default:b=`.${h}`;break}else b=":root";if(a){let u=this.variablesNativeRules?this.rules[0].natives.length:0;a.insertRule((g?g+"{":"")+b+"{}"+(g?g+"}":""),u),m=g?a.cssRules[u].cssRules[0]:a.cssRules[u]}else{let u=new Map,y=Object.defineProperties({},{getPropertyValue:{value:n=>u.get(n)},removeProperty:{value:n=>{u.delete(n);for(let i=0;i<y.length;i++)y[i]===n&&delete y[i]}},setProperty:{value:(n,i)=>{y[y.length]=n,u.set(n,i)}},length:{get(){return Object.keys(y).length}}});m={selectorText:b,style:y,styleMap:u},g&&(m.parentRule={conditionText:g})}s=this.pushVariableNativeRule(h,m)}let l="--"+d;(!r||!s.cssRule.style.getPropertyValue(l))&&s.cssRule.style.setProperty(l,f.value.toString())};if(o.value&&c("",o),o.themes)for(let h in o.themes)c(h,o.themes[h]);o.usage=1}}}}pushVariableNativeRule(e,r){this.variablesNativeRules||(this.variablesNativeRules={},this.rules.splice(0,0,{natives:[],get text(){return this.natives.map(c=>c.text).join("")}}));let a="",d="}";r.parentRule&&(a+=r.parentRule.conditionText.replace(/ /g,"")+"{",d+="}"),a+=r.selectorText+"{";let o={cssRule:r,get text(){let c=[];for(let h=0;h<r.style.length;h++){let f=r.style[h];c.push(f+":"+r.style.getPropertyValue(f))}return a+c.join(";")+d}};return this.rules[0].natives.push(this.variablesNativeRules[e]=o),o}};globalThis.MasterCSS=Y,globalThis.masterCSSs||(globalThis.masterCSSs=[]);var Ce=`/** @type {import('@master/css').Config} */
2
+ module.exports = {
3
+ styles: {},
4
+ rules: {},
5
+ variables: {},
6
+ semantics: {},
7
+ mediaQueries: {},
8
+ animations: {},
9
+ selectors: {},
10
+ functions: {}
11
+ }
12
+ `;var Re=`/** @type {import('@master/css').Config} */
13
+ export default {
14
+ styles: {},
15
+ rules: {},
16
+ variables: {},
17
+ semantics: {},
18
+ mediaQueries: {},
19
+ animations: {},
20
+ selectors: {},
21
+ functions: {}
22
+ }
23
+ `;var xe=`import type { Config } from '@master/css'
24
+
25
+ export default {
26
+ styles: {},
27
+ rules: {},
28
+ variables: {},
29
+ semantics: {},
30
+ mediaQueries: {},
31
+ animations: {},
32
+ selectors: {},
33
+ functions: {}
34
+ } as Config
35
+ `;function ue(t,e){return new Y(t).observe(e)}function de(t,e){if(!t.length)return;let r=new Y(e);for(let a of t)r.insert(a);return r.rules.filter(a=>a.layer).sort((a,d)=>{if(a.definition.layer===-8&&d.definition.layer!==-8)return-1;if(a.definition.layer!==-8&&d.definition.layer===-8)return 1;if(a.definition.id!==d.definition.id)return a.className.localeCompare(d.className);{let o=a.vendorSuffixSelectors?.[""]?.[0],c=d.vendorSuffixSelectors?.[""]?.[0],h=a.media?.token,f=d.media?.token;if(a.priority===-1&&d.priority===-1){if(o&&c)return o.localeCompare(c);if(h&&f&&!Object.keys(a.media.features||{}).length&&!Object.keys(d.media.features||{}).length)return h.localeCompare(f);if(o&&!c)return 1;if(!o&&c)return-1;if(h&&!f)return 1;if(!h&&f)return-1}return a.definition.id===d.definition.id&&a.stateToken===d.stateToken?a.className.localeCompare(d.className):a.order-d.order}}).map(a=>a.className)}