@jasonshimmy/custom-elements-runtime 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/{css-utils-Cg4o1MqY.js → css-utils-CC43BbEy.js} +20 -21
  2. package/dist/css-utils-CC43BbEy.js.map +1 -0
  3. package/dist/{css-utils-RqkyBWft.cjs → css-utils-mgjmH8qX.cjs} +5 -4
  4. package/dist/css-utils-mgjmH8qX.cjs.map +1 -0
  5. package/dist/custom-elements-runtime.cjs.js +4 -3
  6. package/dist/custom-elements-runtime.cjs.js.map +1 -1
  7. package/dist/custom-elements-runtime.colors.cjs.js +3 -2
  8. package/dist/custom-elements-runtime.colors.cjs.js.map +1 -1
  9. package/dist/custom-elements-runtime.colors.es.js +3 -2
  10. package/dist/custom-elements-runtime.colors.es.js.map +1 -1
  11. package/dist/custom-elements-runtime.directive-enhancements.cjs.js +3 -2
  12. package/dist/custom-elements-runtime.directive-enhancements.cjs.js.map +1 -1
  13. package/dist/custom-elements-runtime.directive-enhancements.es.js +86 -100
  14. package/dist/custom-elements-runtime.directive-enhancements.es.js.map +1 -1
  15. package/dist/custom-elements-runtime.directives.cjs.js +3 -2
  16. package/dist/custom-elements-runtime.directives.cjs.js.map +1 -1
  17. package/dist/custom-elements-runtime.directives.es.js +40 -43
  18. package/dist/custom-elements-runtime.directives.es.js.map +1 -1
  19. package/dist/custom-elements-runtime.dom-jit-css.cjs.js +7 -6
  20. package/dist/custom-elements-runtime.dom-jit-css.cjs.js.map +1 -1
  21. package/dist/custom-elements-runtime.dom-jit-css.es.js +58 -76
  22. package/dist/custom-elements-runtime.dom-jit-css.es.js.map +1 -1
  23. package/dist/custom-elements-runtime.es.js +162 -186
  24. package/dist/custom-elements-runtime.es.js.map +1 -1
  25. package/dist/custom-elements-runtime.event-bus.cjs.js +3 -2
  26. package/dist/custom-elements-runtime.event-bus.cjs.js.map +1 -1
  27. package/dist/custom-elements-runtime.event-bus.es.js +48 -103
  28. package/dist/custom-elements-runtime.event-bus.es.js.map +1 -1
  29. package/dist/custom-elements-runtime.jit-css.cjs.js +3 -2
  30. package/dist/custom-elements-runtime.jit-css.cjs.js.map +1 -1
  31. package/dist/custom-elements-runtime.jit-css.es.js +29 -30
  32. package/dist/custom-elements-runtime.jit-css.es.js.map +1 -1
  33. package/dist/custom-elements-runtime.router.cjs.js +20 -19
  34. package/dist/custom-elements-runtime.router.cjs.js.map +1 -1
  35. package/dist/custom-elements-runtime.router.es.js +585 -603
  36. package/dist/custom-elements-runtime.router.es.js.map +1 -1
  37. package/dist/custom-elements-runtime.ssr-middleware.cjs.js +5 -4
  38. package/dist/custom-elements-runtime.ssr-middleware.cjs.js.map +1 -1
  39. package/dist/custom-elements-runtime.ssr-middleware.es.js +44 -37
  40. package/dist/custom-elements-runtime.ssr-middleware.es.js.map +1 -1
  41. package/dist/custom-elements-runtime.ssr.cjs.js +1 -4
  42. package/dist/custom-elements-runtime.ssr.es.js +11 -176
  43. package/dist/custom-elements-runtime.store.cjs.js +3 -2
  44. package/dist/custom-elements-runtime.store.cjs.js.map +1 -1
  45. package/dist/custom-elements-runtime.store.es.js +17 -11
  46. package/dist/custom-elements-runtime.store.es.js.map +1 -1
  47. package/dist/custom-elements-runtime.transitions.cjs.js +3 -2
  48. package/dist/custom-elements-runtime.transitions.cjs.js.map +1 -1
  49. package/dist/custom-elements-runtime.transitions.es.js +55 -120
  50. package/dist/custom-elements-runtime.transitions.es.js.map +1 -1
  51. package/dist/custom-elements-runtime.vite-plugin.cjs.js +3 -2
  52. package/dist/custom-elements-runtime.vite-plugin.cjs.js.map +1 -1
  53. package/dist/custom-elements-runtime.vite-plugin.es.js +54 -75
  54. package/dist/custom-elements-runtime.vite-plugin.es.js.map +1 -1
  55. package/dist/hooks-_3xP4G2N.js +1189 -0
  56. package/dist/hooks-_3xP4G2N.js.map +1 -0
  57. package/dist/hooks-fYQgZk2g.cjs +7 -0
  58. package/dist/hooks-fYQgZk2g.cjs.map +1 -0
  59. package/dist/logger-BYIN7ysT.cjs +3 -0
  60. package/dist/logger-BYIN7ysT.cjs.map +1 -0
  61. package/dist/logger-L25axmB-.js +41 -0
  62. package/dist/logger-L25axmB-.js.map +1 -0
  63. package/dist/namespace-helpers-Bf7rm9JV.cjs +3 -0
  64. package/dist/namespace-helpers-Bf7rm9JV.cjs.map +1 -0
  65. package/dist/namespace-helpers-BucDdgz_.js +61 -0
  66. package/dist/namespace-helpers-BucDdgz_.js.map +1 -0
  67. package/dist/reset.css +1 -1
  68. package/dist/ssr-B3lxl1vr.js +165 -0
  69. package/dist/ssr-B3lxl1vr.js.map +1 -0
  70. package/dist/ssr-DtD9e5iA.cjs +5 -0
  71. package/dist/ssr-DtD9e5iA.cjs.map +1 -0
  72. package/dist/style-Bjn8zDiZ.cjs +56 -0
  73. package/dist/style-Bjn8zDiZ.cjs.map +1 -0
  74. package/dist/{style-BmyOIMcU.js → style-DuDoj_xK.js} +724 -876
  75. package/dist/style-DuDoj_xK.js.map +1 -0
  76. package/dist/style.css +1 -1
  77. package/dist/template-compiler-BB4JJdqk.cjs +23 -0
  78. package/dist/template-compiler-BB4JJdqk.cjs.map +1 -0
  79. package/dist/template-compiler-Cs5axmn4.js +3236 -0
  80. package/dist/template-compiler-Cs5axmn4.js.map +1 -0
  81. package/dist/variables.css +1 -1
  82. package/package.json +7 -7
  83. package/dist/css-utils-Cg4o1MqY.js.map +0 -1
  84. package/dist/css-utils-RqkyBWft.cjs.map +0 -1
  85. package/dist/custom-elements-runtime.ssr.cjs.js.map +0 -1
  86. package/dist/custom-elements-runtime.ssr.es.js.map +0 -1
  87. package/dist/hooks-BH-CpUun.js +0 -1474
  88. package/dist/hooks-BH-CpUun.js.map +0 -1
  89. package/dist/hooks-NOFG9QRQ.cjs +0 -6
  90. package/dist/hooks-NOFG9QRQ.cjs.map +0 -1
  91. package/dist/logger-BvkEbVM4.js +0 -48
  92. package/dist/logger-BvkEbVM4.js.map +0 -1
  93. package/dist/logger-CSALKaYm.cjs +0 -2
  94. package/dist/logger-CSALKaYm.cjs.map +0 -1
  95. package/dist/namespace-helpers-D4wC2-qA.js +0 -61
  96. package/dist/namespace-helpers-D4wC2-qA.js.map +0 -1
  97. package/dist/namespace-helpers-ckeEOxpR.cjs +0 -2
  98. package/dist/namespace-helpers-ckeEOxpR.cjs.map +0 -1
  99. package/dist/style-BmyOIMcU.js.map +0 -1
  100. package/dist/style-D40DsIqJ.cjs +0 -55
  101. package/dist/style-D40DsIqJ.cjs.map +0 -1
  102. package/dist/template-compiler-CDvhsHia.cjs +0 -22
  103. package/dist/template-compiler-CDvhsHia.cjs.map +0 -1
  104. package/dist/template-compiler-DiE69FLO.js +0 -3724
  105. package/dist/template-compiler-DiE69FLO.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { d as Se, e as ae, f as De, h as G, _ as Ne, m as Ue } from "./css-utils-Cg4o1MqY.js";
1
+ import { c as oe, d as De, l as Ne, p as J, s as ye, t as Ue } from "./css-utils-CC43BbEy.js";
2
2
  import { extendedColors as Ce } from "./custom-elements-runtime.colors.es.js";
3
- const Be = {
3
+ var He = {
4
4
  base: {
5
5
  fontSize: "1rem",
6
6
  lineHeight: "1.75",
@@ -100,102 +100,10 @@ const Be = {
100
100
  function Te(e) {
101
101
  const r = e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);
102
102
  if (!r) return null;
103
- const c = r[1] || "base", a = Be[c], t = `.${e}`, s = [];
104
- return s.push(
105
- `${t}{--cer-prose-body:var(--cer-color-neutral-900);--cer-prose-headings:var(--cer-color-neutral-900);--cer-prose-lead:var(--cer-color-neutral-700);--cer-prose-links:var(--cer-color-neutral-700);--cer-prose-links-hover:var(--cer-color-neutral-500);--cer-prose-bold:var(--cer-color-neutral-900);--cer-prose-quotes:var(--cer-color-neutral-700);--cer-prose-quote-border:var(--cer-color-neutral-200);--cer-prose-code:var(--cer-color-neutral-800);--cer-prose-code-bg:var(--cer-color-neutral-100);--cer-prose-pre-code:var(--cer-color-neutral-800);--cer-prose-pre-bg:var(--cer-color-neutral-100);--cer-prose-pre-border:var(--cer-color-neutral-200);--cer-prose-hr:var(--cer-color-neutral-200);--cer-prose-caps:var(--cer-color-neutral-600);--cer-prose-list-marker:var(--cer-color-neutral-600);--cer-prose-list-marker-strong:var(--cer-color-neutral-700);--cer-prose-counters:var(--cer-color-neutral-600);--cer-prose-bullets:var(--cer-color-neutral-400);--cer-prose-img-caption:var(--cer-color-neutral-600);--cer-prose-table-border:var(--cer-color-neutral-200);--cer-prose-table-head:var(--cer-color-neutral-700);color:var(--cer-prose-body);font-size:${a.fontSize};line-height:${a.lineHeight};max-width:65ch;}`
106
- ), s.push(
107
- `${t} p:not(.not-prose):not(.not-prose *){margin:${a.p} 0;}`
108
- ), s.push(
109
- `${t} .lead:not(.not-prose):not(.not-prose *),${t} [class~="lead"]:not(.not-prose):not(.not-prose *){font-size:1.25em;line-height:1.6;margin-top:${a.lead};margin-bottom:${a.lead};color:var(--cer-prose-lead);}`
110
- ), s.push(
111
- `${t} h1:not(.not-prose):not(.not-prose *),${t} h2:not(.not-prose):not(.not-prose *),${t} h3:not(.not-prose):not(.not-prose *),${t} h4:not(.not-prose):not(.not-prose *),${t} h5:not(.not-prose):not(.not-prose *),${t} h6:not(.not-prose):not(.not-prose *){color:var(--cer-prose-headings);font-weight:700;line-height:1.25;}`
112
- ), s.push(
113
- `${t} h1:not(.not-prose):not(.not-prose *){font-size:${a.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`
114
- ), s.push(
115
- `${t} h2:not(.not-prose):not(.not-prose *){font-size:${a.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`
116
- ), s.push(
117
- `${t} h3:not(.not-prose):not(.not-prose *){font-size:${a.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`
118
- ), s.push(
119
- `${t} h4:not(.not-prose):not(.not-prose *){font-size:${a.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`
120
- ), s.push(
121
- `${t} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`
122
- ), s.push(
123
- `${t} h6:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`
124
- ), s.push(
125
- `${t} a:not(.not-prose):not(.not-prose *){color:var(--cer-prose-links);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.15em;font-weight:500;}`
126
- ), s.push(
127
- `${t} a:not(.not-prose):not(.not-prose *):hover,${t} a:not(.not-prose):not(.not-prose *):focus{color:var(--cer-prose-links-hover);}`
128
- ), s.push(
129
- `${t} strong:not(.not-prose):not(.not-prose *){color:var(--cer-prose-bold);font-weight:600;}`
130
- ), s.push(
131
- `${t} em:not(.not-prose):not(.not-prose *){font-style:italic;}`
132
- ), s.push(
133
- `${t} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${a.ol};margin-bottom:${a.ol};padding-left:1.625em;}`
134
- ), s.push(
135
- `${t} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`
136
- ), s.push(
137
- `${t} ol:not(.not-prose):not(.not-prose *)[type="a"]{list-style-type:lower-alpha;}`
138
- ), s.push(
139
- `${t} ol:not(.not-prose):not(.not-prose *)[type="I"]{list-style-type:upper-roman;}`
140
- ), s.push(
141
- `${t} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`
142
- ), s.push(
143
- `${t} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${a.li};}`
144
- ), s.push(
145
- `${t} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-counters);font-weight:400;}`
146
- ), s.push(
147
- `${t} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${a.ul};margin-bottom:${a.ul};padding-left:1.625em;}`
148
- ), s.push(
149
- `${t} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${a.li};}`
150
- ), s.push(
151
- `${t} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`
152
- ), s.push(
153
- `${t} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child,${t} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child{margin-top:${a.ol};}`
154
- ), s.push(
155
- `${t} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child,${t} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child{margin-bottom:${a.ol};}`
156
- ), s.push(
157
- `${t} ul:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${t} ul:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *),${t} ol:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${t} ol:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *){margin-top:0.75em;margin-bottom:0.75em;}`
158
- ), s.push(
159
- `${t} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${a.ol};margin-bottom:${a.ol};}`
160
- ), s.push(
161
- `${t} code:not(.not-prose):not(.not-prose *){color:var(--cer-prose-code);background-color:var(--cer-prose-code-bg);border-radius:0.25rem;padding:0.125rem 0.25rem;font-size:${a.code};font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}`
162
- ), s.push(
163
- `${t} pre:not(.not-prose):not(.not-prose *){color:var(--cer-prose-pre-code);background-color:var(--cer-prose-pre-bg);border:1px solid var(--cer-prose-pre-border);overflow-x:auto;font-size:${a.pre};line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:0.375rem;padding:0.8571429em 1.1428571em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;white-space:pre;overflow-wrap:normal;}`
164
- ), s.push(
165
- `${t} pre:not(.not-prose):not(.not-prose *) code:not(.not-prose):not(.not-prose *){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;line-height:inherit;}`
166
- ), s.push(
167
- `${t} blockquote:not(.not-prose):not(.not-prose *){font-weight:500;font-style:italic;color:var(--cer-prose-quotes);border-left-width:0.25rem;border-left-color:var(--cer-prose-quote-border);quotes:"\\201C""\\201D""\\2018""\\2019";margin-top:${a.blockquote};margin-bottom:${a.blockquote};padding-left:1em;}`
168
- ), s.push(
169
- `${t} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`
170
- ), s.push(
171
- `${t} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`
172
- ), s.push(
173
- `${t} hr:not(.not-prose):not(.not-prose *){border-color:var(--cer-prose-hr);border-top-width:1px;margin-top:${a.hr};margin-bottom:${a.hr};}`
174
- ), s.push(
175
- `${t} figure:not(.not-prose):not(.not-prose *){margin-top:${a.figure};margin-bottom:${a.figure};}`
176
- ), s.push(
177
- `${t} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`
178
- ), s.push(
179
- `${t} figcaption:not(.not-prose):not(.not-prose *){color:var(--cer-prose-img-caption);font-size:0.875em;line-height:1.4285714;margin-top:0.75em;}`
180
- ), s.push(
181
- `${t} img:not(.not-prose):not(.not-prose *),${t} video:not(.not-prose):not(.not-prose *),${t} picture:not(.not-prose):not(.not-prose *){margin-top:${a.figure};margin-bottom:${a.figure};max-width:100%;height:auto;}`
182
- ), s.push(
183
- `${t} figure:not(.not-prose):not(.not-prose *)>img:not(.not-prose):not(.not-prose *),${t} figure:not(.not-prose):not(.not-prose *)>video:not(.not-prose):not(.not-prose *),${t} figure:not(.not-prose):not(.not-prose *)>picture:not(.not-prose):not(.not-prose *){margin-top:0;margin-bottom:0;}`
184
- ), s.push(
185
- `${t} table:not(.not-prose):not(.not-prose *){width:100%;table-layout:auto;text-align:left;margin-top:${a.table};margin-bottom:${a.table};font-size:0.875em;line-height:1.7142857;}`
186
- ), s.push(
187
- `${t} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`
188
- ), s.push(
189
- `${t} thead:not(.not-prose):not(.not-prose *) th:not(.not-prose):not(.not-prose *){color:var(--cer-prose-table-head);font-weight:600;vertical-align:bottom;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em;}`
190
- ), s.push(
191
- `${t} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`
192
- ), s.push(
193
- `${t} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *):last-child{border-bottom-width:0;}`
194
- ), s.push(
195
- `${t} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`
196
- ), s.join("");
103
+ const t = He[r[1] || "base"], o = `.${e}`, n = [];
104
+ return n.push(`${o}{--cer-prose-body:var(--cer-color-neutral-900);--cer-prose-headings:var(--cer-color-neutral-900);--cer-prose-lead:var(--cer-color-neutral-700);--cer-prose-links:var(--cer-color-neutral-700);--cer-prose-links-hover:var(--cer-color-neutral-500);--cer-prose-bold:var(--cer-color-neutral-900);--cer-prose-quotes:var(--cer-color-neutral-700);--cer-prose-quote-border:var(--cer-color-neutral-200);--cer-prose-code:var(--cer-color-neutral-800);--cer-prose-code-bg:var(--cer-color-neutral-100);--cer-prose-pre-code:var(--cer-color-neutral-800);--cer-prose-pre-bg:var(--cer-color-neutral-100);--cer-prose-pre-border:var(--cer-color-neutral-200);--cer-prose-hr:var(--cer-color-neutral-200);--cer-prose-caps:var(--cer-color-neutral-600);--cer-prose-list-marker:var(--cer-color-neutral-600);--cer-prose-list-marker-strong:var(--cer-color-neutral-700);--cer-prose-counters:var(--cer-color-neutral-600);--cer-prose-bullets:var(--cer-color-neutral-400);--cer-prose-img-caption:var(--cer-color-neutral-600);--cer-prose-table-border:var(--cer-color-neutral-200);--cer-prose-table-head:var(--cer-color-neutral-700);color:var(--cer-prose-body);font-size:${t.fontSize};line-height:${t.lineHeight};max-width:65ch;}`), n.push(`${o} p:not(.not-prose):not(.not-prose *){margin:${t.p} 0;}`), n.push(`${o} .lead:not(.not-prose):not(.not-prose *),${o} [class~="lead"]:not(.not-prose):not(.not-prose *){font-size:1.25em;line-height:1.6;margin-top:${t.lead};margin-bottom:${t.lead};color:var(--cer-prose-lead);}`), n.push(`${o} h1:not(.not-prose):not(.not-prose *),${o} h2:not(.not-prose):not(.not-prose *),${o} h3:not(.not-prose):not(.not-prose *),${o} h4:not(.not-prose):not(.not-prose *),${o} h5:not(.not-prose):not(.not-prose *),${o} h6:not(.not-prose):not(.not-prose *){color:var(--cer-prose-headings);font-weight:700;line-height:1.25;}`), n.push(`${o} h1:not(.not-prose):not(.not-prose *){font-size:${t.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`), n.push(`${o} h2:not(.not-prose):not(.not-prose *){font-size:${t.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`), n.push(`${o} h3:not(.not-prose):not(.not-prose *){font-size:${t.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`), n.push(`${o} h4:not(.not-prose):not(.not-prose *){font-size:${t.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`), n.push(`${o} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`), n.push(`${o} h6:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`), n.push(`${o} a:not(.not-prose):not(.not-prose *){color:var(--cer-prose-links);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.15em;font-weight:500;}`), n.push(`${o} a:not(.not-prose):not(.not-prose *):hover,${o} a:not(.not-prose):not(.not-prose *):focus{color:var(--cer-prose-links-hover);}`), n.push(`${o} strong:not(.not-prose):not(.not-prose *){color:var(--cer-prose-bold);font-weight:600;}`), n.push(`${o} em:not(.not-prose):not(.not-prose *){font-style:italic;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${t.ol};margin-bottom:${t.ol};padding-left:1.625em;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)[type="a"]{list-style-type:lower-alpha;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)[type="I"]{list-style-type:upper-roman;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${t.li};}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-counters);font-weight:400;}`), n.push(`${o} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${t.ul};margin-bottom:${t.ul};padding-left:1.625em;}`), n.push(`${o} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${t.li};}`), n.push(`${o} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child,${o} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child{margin-top:${t.ol};}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child,${o} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child{margin-bottom:${t.ol};}`), n.push(`${o} ul:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${o} ul:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *),${o} ol:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${o} ol:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *){margin-top:0.75em;margin-bottom:0.75em;}`), n.push(`${o} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${t.ol};margin-bottom:${t.ol};}`), n.push(`${o} code:not(.not-prose):not(.not-prose *){color:var(--cer-prose-code);background-color:var(--cer-prose-code-bg);border-radius:0.25rem;padding:0.125rem 0.25rem;font-size:${t.code};font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}`), n.push(`${o} pre:not(.not-prose):not(.not-prose *){color:var(--cer-prose-pre-code);background-color:var(--cer-prose-pre-bg);border:1px solid var(--cer-prose-pre-border);overflow-x:auto;font-size:${t.pre};line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:0.375rem;padding:0.8571429em 1.1428571em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;white-space:pre;overflow-wrap:normal;}`), n.push(`${o} pre:not(.not-prose):not(.not-prose *) code:not(.not-prose):not(.not-prose *){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;line-height:inherit;}`), n.push(`${o} blockquote:not(.not-prose):not(.not-prose *){font-weight:500;font-style:italic;color:var(--cer-prose-quotes);border-left-width:0.25rem;border-left-color:var(--cer-prose-quote-border);quotes:"\\201C""\\201D""\\2018""\\2019";margin-top:${t.blockquote};margin-bottom:${t.blockquote};padding-left:1em;}`), n.push(`${o} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`), n.push(`${o} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`), n.push(`${o} hr:not(.not-prose):not(.not-prose *){border-color:var(--cer-prose-hr);border-top-width:1px;margin-top:${t.hr};margin-bottom:${t.hr};}`), n.push(`${o} figure:not(.not-prose):not(.not-prose *){margin-top:${t.figure};margin-bottom:${t.figure};}`), n.push(`${o} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`), n.push(`${o} figcaption:not(.not-prose):not(.not-prose *){color:var(--cer-prose-img-caption);font-size:0.875em;line-height:1.4285714;margin-top:0.75em;}`), n.push(`${o} img:not(.not-prose):not(.not-prose *),${o} video:not(.not-prose):not(.not-prose *),${o} picture:not(.not-prose):not(.not-prose *){margin-top:${t.figure};margin-bottom:${t.figure};max-width:100%;height:auto;}`), n.push(`${o} figure:not(.not-prose):not(.not-prose *)>img:not(.not-prose):not(.not-prose *),${o} figure:not(.not-prose):not(.not-prose *)>video:not(.not-prose):not(.not-prose *),${o} figure:not(.not-prose):not(.not-prose *)>picture:not(.not-prose):not(.not-prose *){margin-top:0;margin-bottom:0;}`), n.push(`${o} table:not(.not-prose):not(.not-prose *){width:100%;table-layout:auto;text-align:left;margin-top:${t.table};margin-bottom:${t.table};font-size:0.875em;line-height:1.7142857;}`), n.push(`${o} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`), n.push(`${o} thead:not(.not-prose):not(.not-prose *) th:not(.not-prose):not(.not-prose *){color:var(--cer-prose-table-head);font-weight:600;vertical-align:bottom;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em;}`), n.push(`${o} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`), n.push(`${o} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *):last-child{border-bottom-width:0;}`), n.push(`${o} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`), n.join("");
197
105
  }
198
- const He = {
106
+ var Be = {
199
107
  headings: "h1,h2,h3,h4,h5,h6,th",
200
108
  h1: "h1",
201
109
  h2: "h2",
@@ -231,51 +139,44 @@ const He = {
231
139
  hr: "hr",
232
140
  lead: '[class~="lead"]'
233
141
  };
234
- function Je(e, r, c, a, t, s, h, k) {
235
- const i = e.match(/^prose-([a-z0-9]+):(.+)$/);
236
- if (!i) return null;
237
- const [, d, u] = i, l = He[d];
238
- if (!l) return null;
239
- const f = r[u] ?? c(u) ?? a(u) ?? t(u) ?? s(u) ?? h(u) ?? k(u);
240
- if (!f) return null;
241
- const n = Se(e);
242
- return l.split(",").map((y) => {
243
- const b = y.trim();
244
- return `${`.${n} ${b}:not(.not-prose):not(.not-prose *)`}{${f}}`;
245
- }).join("");
142
+ function Je(e, r, t, o, n, i, a, c) {
143
+ const d = e.match(/^prose-([a-z0-9]+):(.+)$/);
144
+ if (!d) return null;
145
+ const [, h, $] = d, S = Be[h];
146
+ if (!S) return null;
147
+ const W = r[$] ?? t($) ?? o($) ?? n($) ?? i($) ?? a($) ?? c($);
148
+ if (!W) return null;
149
+ const X = ye(e);
150
+ return S.split(",").map((ce) => `${`.${X} ${ce.trim()}:not(.not-prose):not(.not-prose *)`}{${W}}`).join("");
246
151
  }
247
- let B = null;
248
- const de = /* @__PURE__ */ new Set();
249
- let we = "", je = "";
152
+ var N = null, ie = /* @__PURE__ */ new Set(), $e = "", je = "";
250
153
  function Ae() {
251
- const e = Array.from(de).sort().join(",");
154
+ const e = Array.from(ie).sort().join(",");
252
155
  if (e === je) return;
253
156
  je = e;
254
157
  let r = "";
255
- for (const c of de) {
256
- const a = Te(c);
257
- a && (r += a);
158
+ for (const t of ie) {
159
+ const o = Te(t);
160
+ o && (r += o);
161
+ }
162
+ if ($e = De(r), N && typeof N.replaceSync == "function" && r) try {
163
+ N.replaceSync($e);
164
+ } catch {
258
165
  }
259
- if (we = Ue(r), B && typeof B.replaceSync == "function" && r)
260
- try {
261
- B.replaceSync(we);
262
- } catch {
263
- }
264
166
  }
265
167
  function Xe() {
266
- return de.size === 0 ? null : (B || (typeof CSSStyleSheet > "u" ? B = {
168
+ return ie.size === 0 ? null : (N || (typeof CSSStyleSheet > "u" ? N = {
267
169
  cssRules: [],
268
170
  replaceSync: () => {
269
171
  },
270
- toString: () => we
271
- } : (B = new CSSStyleSheet(), B.toString = () => we), je = ""), Ae(), B);
172
+ toString: () => $e
173
+ } : (N = new CSSStyleSheet(), N.toString = () => $e), je = ""), Ae(), N);
272
174
  }
273
- function Qe(e) {
274
- const r = !de.has(e);
275
- de.add(e), r && B && Ae();
175
+ function Ke(e) {
176
+ const r = !ie.has(e);
177
+ ie.add(e), r && N && Ae();
276
178
  }
277
- const Ke = {
278
- // Existing semantic colors
179
+ var Ge = {
279
180
  neutral: {
280
181
  50: "#fafafa",
281
182
  100: "#f4f4f5",
@@ -367,68 +268,55 @@ const Ke = {
367
268
  900: "#7f1d1d",
368
269
  950: "#450a0a"
369
270
  },
370
- // Special colors
371
271
  white: { DEFAULT: "#ffffff" },
372
272
  black: { DEFAULT: "#000000" },
373
273
  transparent: { DEFAULT: "transparent" },
374
274
  current: { DEFAULT: "currentColor" }
375
- }, qe = Object.fromEntries(
376
- Object.entries(Ke).map(([e, r]) => [
377
- e,
378
- Object.fromEntries(
379
- Object.entries(r).map(([c, a]) => [
380
- c,
381
- `var(--cer-color-${e}${c === "DEFAULT" ? "" : `-${c}`}, ${a})`
382
- ])
383
- )
384
- ])
385
- );
386
- let re = { ...qe };
275
+ }, qe = Object.fromEntries(Object.entries(Ge).map(([e, r]) => [e, Object.fromEntries(Object.entries(r).map(([t, o]) => [t, `var(--cer-color-${e}${t === "DEFAULT" ? "" : `-${t}`}, ${o})`]))])), re = { ...qe };
387
276
  function Fe(e) {
388
277
  if (re = { ...qe }, e.extendedColors) {
389
278
  const r = Array.isArray(e.extendedColors) ? e.extendedColors : Object.keys(Ce);
390
- for (const c of r) {
391
- const a = Ce[c];
392
- !a || re[c] || (re[c] = Object.fromEntries(
393
- Object.entries(a).map(([t, s]) => [
394
- t,
395
- `var(--cer-color-${c}-${t}, ${s})`
396
- ])
397
- ));
279
+ for (const t of r) {
280
+ const o = Ce[t];
281
+ !o || re[t] || (re[t] = Object.fromEntries(Object.entries(o).map(([n, i]) => [n, `var(--cer-color-${t}-${n}, ${i})`])));
398
282
  }
399
283
  }
400
- if (e.customColors)
401
- for (const [r, c] of Object.entries(e.customColors))
402
- re[r] = c;
284
+ if (e.customColors) for (const [r, t] of Object.entries(e.customColors)) re[r] = t;
403
285
  }
404
- let H = {}, Oe = !1;
286
+ var U = {}, Oe = !1;
405
287
  function Le() {
406
- Oe || (Ne(Ge, cr, Xe), Oe = !0);
288
+ Oe || (Ue(Ye, cr, Xe), Oe = !0);
407
289
  }
408
- let ve = !1, ze = /* @__PURE__ */ new WeakSet();
290
+ var we = !1, Se = /* @__PURE__ */ new WeakSet();
409
291
  function pr() {
410
- return ve;
292
+ return we;
411
293
  }
412
- function Ge(e) {
413
- return ve || ze.has(e);
294
+ function Ye(e) {
295
+ return we || Se.has(e);
414
296
  }
415
297
  function ur(e, r) {
416
- if (ze.add(e), r) {
417
- const c = { ...H, ...r };
418
- JSON.stringify(c) !== JSON.stringify(H) && (H = c, Fe(H), U.clear());
298
+ if (Se.add(e), r) {
299
+ const t = {
300
+ ...U,
301
+ ...r
302
+ };
303
+ JSON.stringify(t) !== JSON.stringify(U) && (U = t, Fe(U), D.clear());
419
304
  }
420
305
  Le();
421
306
  }
422
307
  function gr(e) {
423
- ve = !0, e && (H = { ...H, ...e }), Fe(H), Le(), U.clear();
308
+ we = !0, e && (U = {
309
+ ...U,
310
+ ...e
311
+ }), Fe(U), Le(), D.clear();
424
312
  }
425
313
  function mr() {
426
- ve = !1, ze = /* @__PURE__ */ new WeakSet();
314
+ we = !1, Se = /* @__PURE__ */ new WeakSet();
427
315
  }
428
316
  function fr() {
429
- return { ...H };
317
+ return { ...U };
430
318
  }
431
- const Ye = {
319
+ var Qe = {
432
320
  "3xs": 64,
433
321
  "2xs": 72,
434
322
  xs: 80,
@@ -442,7 +330,7 @@ const Ye = {
442
330
  "5xl": 256,
443
331
  "6xl": 288,
444
332
  "7xl": 320
445
- }, ye = {
333
+ }, ke = {
446
334
  m: ["margin"],
447
335
  mx: ["margin-inline"],
448
336
  my: ["margin-block"],
@@ -473,9 +361,7 @@ const Ye = {
473
361
  gap: ["gap"],
474
362
  "gap-x": ["column-gap"],
475
363
  "gap-y": ["row-gap"],
476
- // size-* sets both width and height simultaneously (Tailwind v3+)
477
364
  size: ["width", "height"],
478
- // Logical (flow-relative) properties — RTL / vertical writing mode support
479
365
  ms: ["margin-inline-start"],
480
366
  me: ["margin-inline-end"],
481
367
  ps: ["padding-inline-start"],
@@ -500,10 +386,16 @@ const Ye = {
500
386
  "table-cell",
501
387
  "table-row",
502
388
  "hidden"
503
- ].forEach((n) => {
504
- e[n] = n === "hidden" ? "display:none;" : `display:${n};`;
505
- }), ["absolute", "relative", "fixed", "sticky", "static"].forEach((n) => {
506
- e[n] = `position:${n};`;
389
+ ].forEach((a) => {
390
+ e[a] = a === "hidden" ? "display:none;" : `display:${a};`;
391
+ }), [
392
+ "absolute",
393
+ "relative",
394
+ "fixed",
395
+ "sticky",
396
+ "static"
397
+ ].forEach((a) => {
398
+ e[a] = `position:${a};`;
507
399
  }), Object.assign(e, {
508
400
  "items-center": "align-items:center;",
509
401
  "items-start": "align-items:flex-start;",
@@ -544,8 +436,8 @@ const Ye = {
544
436
  "grow-0": "flex-grow:0;",
545
437
  "shrink-0": "flex-shrink:0;"
546
438
  });
547
- for (let n = 1; n <= 12; n++)
548
- e[`grid-cols-${n}`] = `grid-template-columns:repeat(${n},minmax(0,1fr));`, e[`grid-rows-${n}`] = `grid-template-rows:repeat(${n},minmax(0,1fr));`, e[`col-span-${n}`] = `grid-column:span ${n} / span ${n};`, e[`row-span-${n}`] = `grid-row:span ${n} / span ${n};`, e[`col-start-${n}`] = `grid-column-start:${n};`, e[`col-end-${n}`] = `grid-column-end:${n};`, e[`row-start-${n}`] = `grid-row-start:${n};`, e[`row-end-${n}`] = `grid-row-end:${n};`;
439
+ for (let a = 1; a <= 12; a++)
440
+ e[`grid-cols-${a}`] = `grid-template-columns:repeat(${a},minmax(0,1fr));`, e[`grid-rows-${a}`] = `grid-template-rows:repeat(${a},minmax(0,1fr));`, e[`col-span-${a}`] = `grid-column:span ${a} / span ${a};`, e[`row-span-${a}`] = `grid-row:span ${a} / span ${a};`, e[`col-start-${a}`] = `grid-column-start:${a};`, e[`col-end-${a}`] = `grid-column-end:${a};`, e[`row-start-${a}`] = `grid-row-start:${a};`, e[`row-end-${a}`] = `grid-row-end:${a};`;
549
441
  Object.assign(e, {
550
442
  "grid-cols-none": "grid-template-columns:none;",
551
443
  "grid-rows-none": "grid-template-rows:none;",
@@ -596,27 +488,78 @@ const Ye = {
596
488
  "break-normal": "overflow-wrap:normal;word-break:normal;",
597
489
  "break-words": "overflow-wrap:break-word;",
598
490
  "break-all": "word-break:break-all;",
599
- // Text-wrap utilities (Tailwind v3.3+)
600
491
  "text-wrap": "text-wrap:wrap;",
601
492
  "text-nowrap": "text-wrap:nowrap;",
602
493
  "text-balance": "text-wrap:balance;",
603
494
  "text-pretty": "text-wrap:pretty;"
604
495
  }), [
605
- ["text-xs", "0.75rem", "1"],
606
- ["text-sm", "0.875rem", "1.25"],
607
- ["text-base", "1rem", "1.5"],
608
- ["text-lg", "1.125rem", "1.75"],
609
- ["text-xl", "1.25rem", "1.75"],
610
- ["text-2xl", "1.5rem", "2"],
611
- ["text-3xl", "1.875rem", "2.25"],
612
- ["text-4xl", "2.25rem", "2.5"],
613
- ["text-5xl", "3rem", "1"],
614
- ["text-6xl", "3.75rem", "1"],
615
- ["text-7xl", "4.5rem", "1"],
616
- ["text-8xl", "6rem", "1"],
617
- ["text-9xl", "8rem", "1"]
618
- ].forEach(([n, g, y]) => {
619
- e[n] = `font-size:${g};line-height:var(--cer-line-height,${y});`;
496
+ [
497
+ "text-xs",
498
+ "0.75rem",
499
+ "1"
500
+ ],
501
+ [
502
+ "text-sm",
503
+ "0.875rem",
504
+ "1.25"
505
+ ],
506
+ [
507
+ "text-base",
508
+ "1rem",
509
+ "1.5"
510
+ ],
511
+ [
512
+ "text-lg",
513
+ "1.125rem",
514
+ "1.75"
515
+ ],
516
+ [
517
+ "text-xl",
518
+ "1.25rem",
519
+ "1.75"
520
+ ],
521
+ [
522
+ "text-2xl",
523
+ "1.5rem",
524
+ "2"
525
+ ],
526
+ [
527
+ "text-3xl",
528
+ "1.875rem",
529
+ "2.25"
530
+ ],
531
+ [
532
+ "text-4xl",
533
+ "2.25rem",
534
+ "2.5"
535
+ ],
536
+ [
537
+ "text-5xl",
538
+ "3rem",
539
+ "1"
540
+ ],
541
+ [
542
+ "text-6xl",
543
+ "3.75rem",
544
+ "1"
545
+ ],
546
+ [
547
+ "text-7xl",
548
+ "4.5rem",
549
+ "1"
550
+ ],
551
+ [
552
+ "text-8xl",
553
+ "6rem",
554
+ "1"
555
+ ],
556
+ [
557
+ "text-9xl",
558
+ "8rem",
559
+ "1"
560
+ ]
561
+ ].forEach(([a, c, d]) => {
562
+ e[a] = `font-size:${c};line-height:var(--cer-line-height,${d});`;
620
563
  }), [
621
564
  ["tracking-tighter", "-0.05em"],
622
565
  ["tracking-tight", "-0.025em"],
@@ -624,8 +567,8 @@ const Ye = {
624
567
  ["tracking-wide", "0.025em"],
625
568
  ["tracking-wider", "0.05em"],
626
569
  ["tracking-widest", "0.1em"]
627
- ].forEach(([n, g]) => {
628
- e[n] = `letter-spacing:${g};`;
570
+ ].forEach(([a, c]) => {
571
+ e[a] = `letter-spacing:${c};`;
629
572
  }), [
630
573
  ["leading-3", "0.75rem"],
631
574
  ["leading-4", "1rem"],
@@ -641,13 +584,19 @@ const Ye = {
641
584
  ["leading-normal", "1.5"],
642
585
  ["leading-relaxed", "1.625"],
643
586
  ["leading-loose", "2"]
644
- ].forEach(([n, g]) => {
645
- e[n] = `line-height:${g};--cer-line-height:${g};line-height:var(--cer-line-height,${g});`;
587
+ ].forEach(([a, c]) => {
588
+ e[a] = `line-height:${c};--cer-line-height:${c};line-height:var(--cer-line-height,${c});`;
646
589
  });
647
- const s = [0, 1, 2, 4, 6, 8];
648
- for (const n of s) {
649
- const g = `${n}px`;
650
- e[`outline-${n}`] = `outline-style:var(--cer-outline-style);outline-width:${g};`, e[`outline-offset-${n}`] = `outline-offset:${g};`, e[`border-${n}`] = `border-width:${g};`, e[`border-t-${n}`] = `border-top-width:${g};`, e[`border-r-${n}`] = `border-right-width:${g};`, e[`border-b-${n}`] = `border-bottom-width:${g};`, e[`border-l-${n}`] = `border-left-width:${g};`, e[`border-x-${n}`] = `border-left-width:${g};border-right-width:${g};`, e[`border-y-${n}`] = `border-top-width:${g};border-bottom-width:${g};`;
590
+ for (const a of [
591
+ 0,
592
+ 1,
593
+ 2,
594
+ 4,
595
+ 6,
596
+ 8
597
+ ]) {
598
+ const c = `${a}px`;
599
+ e[`outline-${a}`] = `outline-style:var(--cer-outline-style);outline-width:${c};`, e[`outline-offset-${a}`] = `outline-offset:${c};`, e[`border-${a}`] = `border-width:${c};`, e[`border-t-${a}`] = `border-top-width:${c};`, e[`border-r-${a}`] = `border-right-width:${c};`, e[`border-b-${a}`] = `border-bottom-width:${c};`, e[`border-l-${a}`] = `border-left-width:${c};`, e[`border-x-${a}`] = `border-left-width:${c};border-right-width:${c};`, e[`border-y-${a}`] = `border-top-width:${c};border-bottom-width:${c};`;
651
600
  }
652
601
  Object.assign(e, {
653
602
  "font-sans": "font-family:var(--cer-font-sans, ui-sans-serif,system-ui,sans-serif);",
@@ -673,7 +622,7 @@ const Ye = {
673
622
  "border-double": "border-style:double;",
674
623
  "border-none": "border-style:none;"
675
624
  });
676
- const h = {
625
+ for (const [a, c] of Object.entries({
677
626
  none: 0,
678
627
  xs: 2,
679
628
  sm: 4,
@@ -684,10 +633,9 @@ const Ye = {
684
633
  "3xl": 24,
685
634
  "4xl": 32,
686
635
  full: 9999
687
- };
688
- for (const [n, g] of Object.entries(h)) {
689
- const y = g === 9999 ? "9999px" : `${g / 16}rem`;
690
- e[`rounded-${n}`] = `border-radius:${y};`, e[`rounded-t-${n}`] = `border-top-left-radius:${y};border-top-right-radius:${y};`, e[`rounded-r-${n}`] = `border-top-right-radius:${y};border-bottom-right-radius:${y};`, e[`rounded-b-${n}`] = `border-bottom-left-radius:${y};border-bottom-right-radius:${y};`, e[`rounded-l-${n}`] = `border-top-left-radius:${y};border-bottom-left-radius:${y};`, e[`rounded-tl-${n}`] = `border-top-left-radius:${y};`, e[`rounded-tr-${n}`] = `border-top-right-radius:${y};`, e[`rounded-br-${n}`] = `border-bottom-right-radius:${y};`, e[`rounded-bl-${n}`] = `border-bottom-left-radius:${y};`;
636
+ })) {
637
+ const d = c === 9999 ? "9999px" : `${c / 16}rem`;
638
+ e[`rounded-${a}`] = `border-radius:${d};`, e[`rounded-t-${a}`] = `border-top-left-radius:${d};border-top-right-radius:${d};`, e[`rounded-r-${a}`] = `border-top-right-radius:${d};border-bottom-right-radius:${d};`, e[`rounded-b-${a}`] = `border-bottom-left-radius:${d};border-bottom-right-radius:${d};`, e[`rounded-l-${a}`] = `border-top-left-radius:${d};border-bottom-left-radius:${d};`, e[`rounded-tl-${a}`] = `border-top-left-radius:${d};`, e[`rounded-tr-${a}`] = `border-top-right-radius:${d};`, e[`rounded-br-${a}`] = `border-bottom-right-radius:${d};`, e[`rounded-bl-${a}`] = `border-bottom-left-radius:${d};`;
691
639
  }
692
640
  Object.assign(e, {
693
641
  "shadow-none": "--cer-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--cer-shadow-color, #0000);",
@@ -699,9 +647,7 @@ const Ye = {
699
647
  "shadow-xl": "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 20px 25px -5px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 8px 10px -6px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
700
648
  "shadow-2xl": "--cer-shadow-color:rgb(0 0 0 / 0.25);box-shadow:0 25px 50px -12px var(--cer-shadow-color, rgb(0 0 0 / 0.25));",
701
649
  "shadow-inner": "box-shadow:inset 0 2px 4px 0 rgb(0 0 0 / 0.05);"
702
- }), Object.assign(e, {
703
- rounded: "border-radius:0.25rem;"
704
- }), Object.assign(e, {
650
+ }), Object.assign(e, { rounded: "border-radius:0.25rem;" }), Object.assign(e, {
705
651
  "overflow-auto": "overflow:auto;",
706
652
  "overflow-hidden": "overflow:hidden;",
707
653
  "overflow-visible": "overflow:visible;",
@@ -846,7 +792,7 @@ const Ye = {
846
792
  "divide-double": "border-style:double;",
847
793
  "divide-none": "border-style:none;"
848
794
  });
849
- const k = [
795
+ for (const a of [
850
796
  "auto",
851
797
  "default",
852
798
  "pointer",
@@ -857,10 +803,24 @@ const Ye = {
857
803
  "not-allowed",
858
804
  "grab",
859
805
  "grabbing"
860
- ];
861
- for (const n of k) e[`cursor-${n}`] = `cursor:${n};`;
862
- for (const n of [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50])
863
- e[`z-${n}`] = `z-index:${n};`;
806
+ ]) e[`cursor-${a}`] = `cursor:${a};`;
807
+ for (const a of [
808
+ 0,
809
+ 1,
810
+ 2,
811
+ 3,
812
+ 4,
813
+ 5,
814
+ 6,
815
+ 7,
816
+ 8,
817
+ 9,
818
+ 10,
819
+ 20,
820
+ 30,
821
+ 40,
822
+ 50
823
+ ]) e[`z-${a}`] = `z-index:${a};`;
864
824
  e["z-auto"] = "z-index:auto;", e["-z-10"] = "z-index:-10;", e["-z-20"] = "z-index:-20;", e["-z-30"] = "z-index:-30;", e["-z-40"] = "z-index:-40;", e["-z-50"] = "z-index:-50;", Object.assign(e, {
865
825
  "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;",
866
826
  "not-sr-only": "position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;",
@@ -895,8 +855,8 @@ const Ye = {
895
855
  "mx-auto": "margin-inline:auto;",
896
856
  "my-auto": "margin-block:auto;"
897
857
  });
898
- for (const [n, g] of Object.entries(Ye))
899
- e[`max-w-${n}`] = `max-width:calc(${G} * ${g});`, e[`min-w-${n}`] = `min-width:calc(${G} * ${g});`, e[`w-${n}`] = `width:calc(${G} * ${g});`, e[`max-h-${n}`] = `max-height:calc(${G} * ${g});`, e[`min-h-${n}`] = `min-height:calc(${G} * ${g});`, e[`h-${n}`] = `height:calc(${G} * ${g});`;
858
+ for (const [a, c] of Object.entries(Qe))
859
+ e[`max-w-${a}`] = `max-width:calc(${J} * ${c});`, e[`min-w-${a}`] = `min-width:calc(${J} * ${c});`, e[`w-${a}`] = `width:calc(${J} * ${c});`, e[`max-h-${a}`] = `max-height:calc(${J} * ${c});`, e[`min-h-${a}`] = `min-height:calc(${J} * ${c});`, e[`h-${a}`] = `height:calc(${J} * ${c});`;
900
860
  Object.assign(e, {
901
861
  transition: "transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;",
902
862
  "transition-none": "transition-property:none;",
@@ -928,146 +888,138 @@ const Ye = {
928
888
  "delay-700": "transition-delay:700ms;",
929
889
  "delay-1000": "transition-delay:1000ms;"
930
890
  });
931
- const i = "translateX(var(--cer-translate-x)) translateY(var(--cer-translate-y)) rotate(var(--cer-rotate)) skewX(var(--cer-skew-x)) skewY(var(--cer-skew-y)) scaleX(var(--cer-scale-x)) scaleY(var(--cer-scale-y))", d = (n) => `--cer-translate-x:${n};transform:${i};`, u = (n) => `--cer-translate-y:${n};transform:${i};`;
891
+ const r = "translateX(var(--cer-translate-x)) translateY(var(--cer-translate-y)) rotate(var(--cer-rotate)) skewX(var(--cer-skew-x)) skewY(var(--cer-skew-y)) scaleX(var(--cer-scale-x)) scaleY(var(--cer-scale-y))", t = (a) => `--cer-translate-x:${a};transform:${r};`, o = (a) => `--cer-translate-y:${a};transform:${r};`;
932
892
  Object.assign(e, {
933
- // Scale (uniform)
934
- "scale-0": `--cer-scale-x:0;--cer-scale-y:0;transform:${i};`,
935
- "scale-50": `--cer-scale-x:.5;--cer-scale-y:.5;transform:${i};`,
936
- "scale-75": `--cer-scale-x:.75;--cer-scale-y:.75;transform:${i};`,
937
- "scale-90": `--cer-scale-x:.9;--cer-scale-y:.9;transform:${i};`,
938
- "scale-95": `--cer-scale-x:.95;--cer-scale-y:.95;transform:${i};`,
939
- "scale-100": `--cer-scale-x:1;--cer-scale-y:1;transform:${i};`,
940
- "scale-105": `--cer-scale-x:1.05;--cer-scale-y:1.05;transform:${i};`,
941
- "scale-110": `--cer-scale-x:1.1;--cer-scale-y:1.1;transform:${i};`,
942
- "scale-125": `--cer-scale-x:1.25;--cer-scale-y:1.25;transform:${i};`,
943
- "scale-150": `--cer-scale-x:1.5;--cer-scale-y:1.5;transform:${i};`,
944
- // Scale X axis only
945
- "scale-x-0": `--cer-scale-x:0;transform:${i};`,
946
- "scale-x-50": `--cer-scale-x:.5;transform:${i};`,
947
- "scale-x-75": `--cer-scale-x:.75;transform:${i};`,
948
- "scale-x-90": `--cer-scale-x:.9;transform:${i};`,
949
- "scale-x-95": `--cer-scale-x:.95;transform:${i};`,
950
- "scale-x-100": `--cer-scale-x:1;transform:${i};`,
951
- "scale-x-105": `--cer-scale-x:1.05;transform:${i};`,
952
- "scale-x-110": `--cer-scale-x:1.1;transform:${i};`,
953
- "scale-x-125": `--cer-scale-x:1.25;transform:${i};`,
954
- "scale-x-150": `--cer-scale-x:1.5;transform:${i};`,
955
- // Scale Y axis only
956
- "scale-y-0": `--cer-scale-y:0;transform:${i};`,
957
- "scale-y-50": `--cer-scale-y:.5;transform:${i};`,
958
- "scale-y-75": `--cer-scale-y:.75;transform:${i};`,
959
- "scale-y-90": `--cer-scale-y:.9;transform:${i};`,
960
- "scale-y-95": `--cer-scale-y:.95;transform:${i};`,
961
- "scale-y-100": `--cer-scale-y:1;transform:${i};`,
962
- "scale-y-105": `--cer-scale-y:1.05;transform:${i};`,
963
- "scale-y-110": `--cer-scale-y:1.1;transform:${i};`,
964
- "scale-y-125": `--cer-scale-y:1.25;transform:${i};`,
965
- "scale-y-150": `--cer-scale-y:1.5;transform:${i};`,
966
- // Rotate
967
- "rotate-0": `--cer-rotate:0deg;transform:${i};`,
968
- "rotate-1": `--cer-rotate:1deg;transform:${i};`,
969
- "rotate-2": `--cer-rotate:2deg;transform:${i};`,
970
- "rotate-3": `--cer-rotate:3deg;transform:${i};`,
971
- "rotate-6": `--cer-rotate:6deg;transform:${i};`,
972
- "rotate-12": `--cer-rotate:12deg;transform:${i};`,
973
- "rotate-45": `--cer-rotate:45deg;transform:${i};`,
974
- "rotate-90": `--cer-rotate:90deg;transform:${i};`,
975
- "rotate-180": `--cer-rotate:180deg;transform:${i};`,
976
- "-rotate-1": `--cer-rotate:-1deg;transform:${i};`,
977
- "-rotate-2": `--cer-rotate:-2deg;transform:${i};`,
978
- "-rotate-3": `--cer-rotate:-3deg;transform:${i};`,
979
- "-rotate-6": `--cer-rotate:-6deg;transform:${i};`,
980
- "-rotate-12": `--cer-rotate:-12deg;transform:${i};`,
981
- "-rotate-45": `--cer-rotate:-45deg;transform:${i};`,
982
- "-rotate-90": `--cer-rotate:-90deg;transform:${i};`,
983
- "-rotate-180": `--cer-rotate:-180deg;transform:${i};`,
984
- // Translate X
985
- "translate-x-0": d("0px"),
986
- "translate-x-px": d("1px"),
987
- "translate-x-0.5": d("0.125rem"),
988
- "translate-x-1": d("0.25rem"),
989
- "translate-x-1.5": d("0.375rem"),
990
- "translate-x-2": d("0.5rem"),
991
- "translate-x-2.5": d("0.625rem"),
992
- "translate-x-3": d("0.75rem"),
993
- "translate-x-4": d("1rem"),
994
- "translate-x-5": d("1.25rem"),
995
- "translate-x-6": d("1.5rem"),
996
- "translate-x-8": d("2rem"),
997
- "translate-x-10": d("2.5rem"),
998
- "translate-x-12": d("3rem"),
999
- "translate-x-16": d("4rem"),
1000
- "translate-x-20": d("5rem"),
1001
- "translate-x-24": d("6rem"),
1002
- "translate-x-32": d("8rem"),
1003
- "translate-x-1/2": d("50%"),
1004
- "translate-x-1/3": d("33.333333%"),
1005
- "translate-x-2/3": d("66.666667%"),
1006
- "translate-x-1/4": d("25%"),
1007
- "translate-x-3/4": d("75%"),
1008
- "translate-x-full": d("100%"),
1009
- "-translate-x-px": d("-1px"),
1010
- "-translate-x-0.5": d("-0.125rem"),
1011
- "-translate-x-1": d("-0.25rem"),
1012
- "-translate-x-1.5": d("-0.375rem"),
1013
- "-translate-x-2": d("-0.5rem"),
1014
- "-translate-x-2.5": d("-0.625rem"),
1015
- "-translate-x-3": d("-0.75rem"),
1016
- "-translate-x-4": d("-1rem"),
1017
- "-translate-x-1/2": d("-50%"),
1018
- "-translate-x-full": d("-100%"),
1019
- // Translate Y
1020
- "translate-y-0": u("0px"),
1021
- "translate-y-px": u("1px"),
1022
- "translate-y-0.5": u("0.125rem"),
1023
- "translate-y-1": u("0.25rem"),
1024
- "translate-y-1.5": u("0.375rem"),
1025
- "translate-y-2": u("0.5rem"),
1026
- "translate-y-2.5": u("0.625rem"),
1027
- "translate-y-3": u("0.75rem"),
1028
- "translate-y-4": u("1rem"),
1029
- "translate-y-5": u("1.25rem"),
1030
- "translate-y-6": u("1.5rem"),
1031
- "translate-y-8": u("2rem"),
1032
- "translate-y-10": u("2.5rem"),
1033
- "translate-y-12": u("3rem"),
1034
- "translate-y-16": u("4rem"),
1035
- "translate-y-20": u("5rem"),
1036
- "translate-y-24": u("6rem"),
1037
- "translate-y-32": u("8rem"),
1038
- "translate-y-1/2": u("50%"),
1039
- "translate-y-full": u("100%"),
1040
- "-translate-y-px": u("-1px"),
1041
- "-translate-y-0.5": u("-0.125rem"),
1042
- "-translate-y-1": u("-0.25rem"),
1043
- "-translate-y-2": u("-0.5rem"),
1044
- "-translate-y-4": u("-1rem"),
1045
- "-translate-y-1/2": u("-50%"),
1046
- "-translate-y-full": u("-100%"),
1047
- // Skew X
1048
- "skew-x-0": `--cer-skew-x:0deg;transform:${i};`,
1049
- "skew-x-1": `--cer-skew-x:1deg;transform:${i};`,
1050
- "skew-x-2": `--cer-skew-x:2deg;transform:${i};`,
1051
- "skew-x-3": `--cer-skew-x:3deg;transform:${i};`,
1052
- "skew-x-6": `--cer-skew-x:6deg;transform:${i};`,
1053
- "skew-x-12": `--cer-skew-x:12deg;transform:${i};`,
1054
- "-skew-x-1": `--cer-skew-x:-1deg;transform:${i};`,
1055
- "-skew-x-2": `--cer-skew-x:-2deg;transform:${i};`,
1056
- "-skew-x-3": `--cer-skew-x:-3deg;transform:${i};`,
1057
- "-skew-x-6": `--cer-skew-x:-6deg;transform:${i};`,
1058
- "-skew-x-12": `--cer-skew-x:-12deg;transform:${i};`,
1059
- // Skew Y
1060
- "skew-y-0": `--cer-skew-y:0deg;transform:${i};`,
1061
- "skew-y-1": `--cer-skew-y:1deg;transform:${i};`,
1062
- "skew-y-2": `--cer-skew-y:2deg;transform:${i};`,
1063
- "skew-y-3": `--cer-skew-y:3deg;transform:${i};`,
1064
- "skew-y-6": `--cer-skew-y:6deg;transform:${i};`,
1065
- "skew-y-12": `--cer-skew-y:12deg;transform:${i};`,
1066
- "-skew-y-1": `--cer-skew-y:-1deg;transform:${i};`,
1067
- "-skew-y-2": `--cer-skew-y:-2deg;transform:${i};`,
1068
- "-skew-y-3": `--cer-skew-y:-3deg;transform:${i};`,
1069
- "-skew-y-6": `--cer-skew-y:-6deg;transform:${i};`,
1070
- "-skew-y-12": `--cer-skew-y:-12deg;transform:${i};`
893
+ "scale-0": `--cer-scale-x:0;--cer-scale-y:0;transform:${r};`,
894
+ "scale-50": `--cer-scale-x:.5;--cer-scale-y:.5;transform:${r};`,
895
+ "scale-75": `--cer-scale-x:.75;--cer-scale-y:.75;transform:${r};`,
896
+ "scale-90": `--cer-scale-x:.9;--cer-scale-y:.9;transform:${r};`,
897
+ "scale-95": `--cer-scale-x:.95;--cer-scale-y:.95;transform:${r};`,
898
+ "scale-100": `--cer-scale-x:1;--cer-scale-y:1;transform:${r};`,
899
+ "scale-105": `--cer-scale-x:1.05;--cer-scale-y:1.05;transform:${r};`,
900
+ "scale-110": `--cer-scale-x:1.1;--cer-scale-y:1.1;transform:${r};`,
901
+ "scale-125": `--cer-scale-x:1.25;--cer-scale-y:1.25;transform:${r};`,
902
+ "scale-150": `--cer-scale-x:1.5;--cer-scale-y:1.5;transform:${r};`,
903
+ "scale-x-0": `--cer-scale-x:0;transform:${r};`,
904
+ "scale-x-50": `--cer-scale-x:.5;transform:${r};`,
905
+ "scale-x-75": `--cer-scale-x:.75;transform:${r};`,
906
+ "scale-x-90": `--cer-scale-x:.9;transform:${r};`,
907
+ "scale-x-95": `--cer-scale-x:.95;transform:${r};`,
908
+ "scale-x-100": `--cer-scale-x:1;transform:${r};`,
909
+ "scale-x-105": `--cer-scale-x:1.05;transform:${r};`,
910
+ "scale-x-110": `--cer-scale-x:1.1;transform:${r};`,
911
+ "scale-x-125": `--cer-scale-x:1.25;transform:${r};`,
912
+ "scale-x-150": `--cer-scale-x:1.5;transform:${r};`,
913
+ "scale-y-0": `--cer-scale-y:0;transform:${r};`,
914
+ "scale-y-50": `--cer-scale-y:.5;transform:${r};`,
915
+ "scale-y-75": `--cer-scale-y:.75;transform:${r};`,
916
+ "scale-y-90": `--cer-scale-y:.9;transform:${r};`,
917
+ "scale-y-95": `--cer-scale-y:.95;transform:${r};`,
918
+ "scale-y-100": `--cer-scale-y:1;transform:${r};`,
919
+ "scale-y-105": `--cer-scale-y:1.05;transform:${r};`,
920
+ "scale-y-110": `--cer-scale-y:1.1;transform:${r};`,
921
+ "scale-y-125": `--cer-scale-y:1.25;transform:${r};`,
922
+ "scale-y-150": `--cer-scale-y:1.5;transform:${r};`,
923
+ "rotate-0": `--cer-rotate:0deg;transform:${r};`,
924
+ "rotate-1": `--cer-rotate:1deg;transform:${r};`,
925
+ "rotate-2": `--cer-rotate:2deg;transform:${r};`,
926
+ "rotate-3": `--cer-rotate:3deg;transform:${r};`,
927
+ "rotate-6": `--cer-rotate:6deg;transform:${r};`,
928
+ "rotate-12": `--cer-rotate:12deg;transform:${r};`,
929
+ "rotate-45": `--cer-rotate:45deg;transform:${r};`,
930
+ "rotate-90": `--cer-rotate:90deg;transform:${r};`,
931
+ "rotate-180": `--cer-rotate:180deg;transform:${r};`,
932
+ "-rotate-1": `--cer-rotate:-1deg;transform:${r};`,
933
+ "-rotate-2": `--cer-rotate:-2deg;transform:${r};`,
934
+ "-rotate-3": `--cer-rotate:-3deg;transform:${r};`,
935
+ "-rotate-6": `--cer-rotate:-6deg;transform:${r};`,
936
+ "-rotate-12": `--cer-rotate:-12deg;transform:${r};`,
937
+ "-rotate-45": `--cer-rotate:-45deg;transform:${r};`,
938
+ "-rotate-90": `--cer-rotate:-90deg;transform:${r};`,
939
+ "-rotate-180": `--cer-rotate:-180deg;transform:${r};`,
940
+ "translate-x-0": t("0px"),
941
+ "translate-x-px": t("1px"),
942
+ "translate-x-0.5": t("0.125rem"),
943
+ "translate-x-1": t("0.25rem"),
944
+ "translate-x-1.5": t("0.375rem"),
945
+ "translate-x-2": t("0.5rem"),
946
+ "translate-x-2.5": t("0.625rem"),
947
+ "translate-x-3": t("0.75rem"),
948
+ "translate-x-4": t("1rem"),
949
+ "translate-x-5": t("1.25rem"),
950
+ "translate-x-6": t("1.5rem"),
951
+ "translate-x-8": t("2rem"),
952
+ "translate-x-10": t("2.5rem"),
953
+ "translate-x-12": t("3rem"),
954
+ "translate-x-16": t("4rem"),
955
+ "translate-x-20": t("5rem"),
956
+ "translate-x-24": t("6rem"),
957
+ "translate-x-32": t("8rem"),
958
+ "translate-x-1/2": t("50%"),
959
+ "translate-x-1/3": t("33.333333%"),
960
+ "translate-x-2/3": t("66.666667%"),
961
+ "translate-x-1/4": t("25%"),
962
+ "translate-x-3/4": t("75%"),
963
+ "translate-x-full": t("100%"),
964
+ "-translate-x-px": t("-1px"),
965
+ "-translate-x-0.5": t("-0.125rem"),
966
+ "-translate-x-1": t("-0.25rem"),
967
+ "-translate-x-1.5": t("-0.375rem"),
968
+ "-translate-x-2": t("-0.5rem"),
969
+ "-translate-x-2.5": t("-0.625rem"),
970
+ "-translate-x-3": t("-0.75rem"),
971
+ "-translate-x-4": t("-1rem"),
972
+ "-translate-x-1/2": t("-50%"),
973
+ "-translate-x-full": t("-100%"),
974
+ "translate-y-0": o("0px"),
975
+ "translate-y-px": o("1px"),
976
+ "translate-y-0.5": o("0.125rem"),
977
+ "translate-y-1": o("0.25rem"),
978
+ "translate-y-1.5": o("0.375rem"),
979
+ "translate-y-2": o("0.5rem"),
980
+ "translate-y-2.5": o("0.625rem"),
981
+ "translate-y-3": o("0.75rem"),
982
+ "translate-y-4": o("1rem"),
983
+ "translate-y-5": o("1.25rem"),
984
+ "translate-y-6": o("1.5rem"),
985
+ "translate-y-8": o("2rem"),
986
+ "translate-y-10": o("2.5rem"),
987
+ "translate-y-12": o("3rem"),
988
+ "translate-y-16": o("4rem"),
989
+ "translate-y-20": o("5rem"),
990
+ "translate-y-24": o("6rem"),
991
+ "translate-y-32": o("8rem"),
992
+ "translate-y-1/2": o("50%"),
993
+ "translate-y-full": o("100%"),
994
+ "-translate-y-px": o("-1px"),
995
+ "-translate-y-0.5": o("-0.125rem"),
996
+ "-translate-y-1": o("-0.25rem"),
997
+ "-translate-y-2": o("-0.5rem"),
998
+ "-translate-y-4": o("-1rem"),
999
+ "-translate-y-1/2": o("-50%"),
1000
+ "-translate-y-full": o("-100%"),
1001
+ "skew-x-0": `--cer-skew-x:0deg;transform:${r};`,
1002
+ "skew-x-1": `--cer-skew-x:1deg;transform:${r};`,
1003
+ "skew-x-2": `--cer-skew-x:2deg;transform:${r};`,
1004
+ "skew-x-3": `--cer-skew-x:3deg;transform:${r};`,
1005
+ "skew-x-6": `--cer-skew-x:6deg;transform:${r};`,
1006
+ "skew-x-12": `--cer-skew-x:12deg;transform:${r};`,
1007
+ "-skew-x-1": `--cer-skew-x:-1deg;transform:${r};`,
1008
+ "-skew-x-2": `--cer-skew-x:-2deg;transform:${r};`,
1009
+ "-skew-x-3": `--cer-skew-x:-3deg;transform:${r};`,
1010
+ "-skew-x-6": `--cer-skew-x:-6deg;transform:${r};`,
1011
+ "-skew-x-12": `--cer-skew-x:-12deg;transform:${r};`,
1012
+ "skew-y-0": `--cer-skew-y:0deg;transform:${r};`,
1013
+ "skew-y-1": `--cer-skew-y:1deg;transform:${r};`,
1014
+ "skew-y-2": `--cer-skew-y:2deg;transform:${r};`,
1015
+ "skew-y-3": `--cer-skew-y:3deg;transform:${r};`,
1016
+ "skew-y-6": `--cer-skew-y:6deg;transform:${r};`,
1017
+ "skew-y-12": `--cer-skew-y:12deg;transform:${r};`,
1018
+ "-skew-y-1": `--cer-skew-y:-1deg;transform:${r};`,
1019
+ "-skew-y-2": `--cer-skew-y:-2deg;transform:${r};`,
1020
+ "-skew-y-3": `--cer-skew-y:-3deg;transform:${r};`,
1021
+ "-skew-y-6": `--cer-skew-y:-6deg;transform:${r};`,
1022
+ "-skew-y-12": `--cer-skew-y:-12deg;transform:${r};`
1071
1023
  }), Object.assign(e, {
1072
1024
  ring: "box-shadow:0 0 0 3px var(--cer-ring-color,rgb(59 130 246/0.5));",
1073
1025
  "ring-0": "box-shadow:0 0 0 0px var(--cer-ring-color,rgb(59 130 246/0.5));",
@@ -1082,81 +1034,71 @@ const Ye = {
1082
1034
  "ring-offset-4": "--cer-ring-offset-width:4px;box-shadow:0 0 0 4px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 4px) var(--cer-ring-color,rgb(59 130 246/0.5));",
1083
1035
  "ring-offset-8": "--cer-ring-offset-width:8px;box-shadow:0 0 0 8px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 8px) var(--cer-ring-color,rgb(59 130 246/0.5));"
1084
1036
  });
1085
- const l = "var(--cer-blur) var(--cer-brightness) var(--cer-contrast) var(--cer-grayscale) var(--cer-hue-rotate) var(--cer-invert) var(--cer-saturate) var(--cer-sepia) var(--cer-drop-shadow)", f = "var(--cer-backdrop-blur) var(--cer-backdrop-brightness) var(--cer-backdrop-contrast) var(--cer-backdrop-grayscale) var(--cer-backdrop-hue-rotate) var(--cer-backdrop-invert) var(--cer-backdrop-saturate) var(--cer-backdrop-sepia)";
1037
+ const n = "var(--cer-blur) var(--cer-brightness) var(--cer-contrast) var(--cer-grayscale) var(--cer-hue-rotate) var(--cer-invert) var(--cer-saturate) var(--cer-sepia) var(--cer-drop-shadow)", i = "var(--cer-backdrop-blur) var(--cer-backdrop-brightness) var(--cer-backdrop-contrast) var(--cer-backdrop-grayscale) var(--cer-backdrop-hue-rotate) var(--cer-backdrop-invert) var(--cer-backdrop-saturate) var(--cer-backdrop-sepia)";
1086
1038
  Object.assign(e, {
1087
- // Blur
1088
- "blur-none": `--cer-blur:;filter:${l};`,
1089
- "blur-sm": `--cer-blur:blur(4px);filter:${l};`,
1090
- blur: `--cer-blur:blur(8px);filter:${l};`,
1091
- "blur-md": `--cer-blur:blur(12px);filter:${l};`,
1092
- "blur-lg": `--cer-blur:blur(16px);filter:${l};`,
1093
- "blur-xl": `--cer-blur:blur(24px);filter:${l};`,
1094
- "blur-2xl": `--cer-blur:blur(40px);filter:${l};`,
1095
- "blur-3xl": `--cer-blur:blur(64px);filter:${l};`,
1096
- // Brightness
1097
- "brightness-0": `--cer-brightness:brightness(0);filter:${l};`,
1098
- "brightness-50": `--cer-brightness:brightness(.5);filter:${l};`,
1099
- "brightness-75": `--cer-brightness:brightness(.75);filter:${l};`,
1100
- "brightness-90": `--cer-brightness:brightness(.9);filter:${l};`,
1101
- "brightness-95": `--cer-brightness:brightness(.95);filter:${l};`,
1102
- "brightness-100": `--cer-brightness:brightness(1);filter:${l};`,
1103
- "brightness-105": `--cer-brightness:brightness(1.05);filter:${l};`,
1104
- "brightness-110": `--cer-brightness:brightness(1.1);filter:${l};`,
1105
- "brightness-125": `--cer-brightness:brightness(1.25);filter:${l};`,
1106
- "brightness-150": `--cer-brightness:brightness(1.5);filter:${l};`,
1107
- "brightness-200": `--cer-brightness:brightness(2);filter:${l};`,
1108
- // Contrast
1109
- "contrast-0": `--cer-contrast:contrast(0);filter:${l};`,
1110
- "contrast-50": `--cer-contrast:contrast(.5);filter:${l};`,
1111
- "contrast-75": `--cer-contrast:contrast(.75);filter:${l};`,
1112
- "contrast-100": `--cer-contrast:contrast(1);filter:${l};`,
1113
- "contrast-125": `--cer-contrast:contrast(1.25);filter:${l};`,
1114
- "contrast-150": `--cer-contrast:contrast(1.5);filter:${l};`,
1115
- "contrast-200": `--cer-contrast:contrast(2);filter:${l};`,
1116
- // Grayscale
1117
- grayscale: `--cer-grayscale:grayscale(100%);filter:${l};`,
1118
- "grayscale-0": `--cer-grayscale:grayscale(0);filter:${l};`,
1119
- // Hue rotate
1120
- "hue-rotate-0": `--cer-hue-rotate:hue-rotate(0deg);filter:${l};`,
1121
- "hue-rotate-15": `--cer-hue-rotate:hue-rotate(15deg);filter:${l};`,
1122
- "hue-rotate-30": `--cer-hue-rotate:hue-rotate(30deg);filter:${l};`,
1123
- "hue-rotate-60": `--cer-hue-rotate:hue-rotate(60deg);filter:${l};`,
1124
- "hue-rotate-90": `--cer-hue-rotate:hue-rotate(90deg);filter:${l};`,
1125
- "hue-rotate-180": `--cer-hue-rotate:hue-rotate(180deg);filter:${l};`,
1126
- "-hue-rotate-180": `--cer-hue-rotate:hue-rotate(-180deg);filter:${l};`,
1127
- "-hue-rotate-90": `--cer-hue-rotate:hue-rotate(-90deg);filter:${l};`,
1128
- "-hue-rotate-60": `--cer-hue-rotate:hue-rotate(-60deg);filter:${l};`,
1129
- "-hue-rotate-30": `--cer-hue-rotate:hue-rotate(-30deg);filter:${l};`,
1130
- "-hue-rotate-15": `--cer-hue-rotate:hue-rotate(-15deg);filter:${l};`,
1131
- // Invert
1132
- invert: `--cer-invert:invert(100%);filter:${l};`,
1133
- "invert-0": `--cer-invert:invert(0);filter:${l};`,
1134
- // Saturate
1135
- "saturate-0": `--cer-saturate:saturate(0);filter:${l};`,
1136
- "saturate-50": `--cer-saturate:saturate(.5);filter:${l};`,
1137
- "saturate-100": `--cer-saturate:saturate(1);filter:${l};`,
1138
- "saturate-150": `--cer-saturate:saturate(1.5);filter:${l};`,
1139
- "saturate-200": `--cer-saturate:saturate(2);filter:${l};`,
1140
- // Sepia
1141
- sepia: `--cer-sepia:sepia(100%);filter:${l};`,
1142
- "sepia-0": `--cer-sepia:sepia(0);filter:${l};`,
1143
- // Drop shadow (filter, not box-shadow)
1144
- "drop-shadow-sm": `--cer-drop-shadow:drop-shadow(0 1px 1px rgb(0 0 0/.05));filter:${l};`,
1145
- "drop-shadow": `--cer-drop-shadow:drop-shadow(0 1px 2px rgb(0 0 0/.1)) drop-shadow(0 1px 1px rgb(0 0 0/.06));filter:${l};`,
1146
- "drop-shadow-md": `--cer-drop-shadow:drop-shadow(0 4px 3px rgb(0 0 0/.07)) drop-shadow(0 2px 2px rgb(0 0 0/.06));filter:${l};`,
1147
- "drop-shadow-lg": `--cer-drop-shadow:drop-shadow(0 10px 8px rgb(0 0 0/.04)) drop-shadow(0 4px 3px rgb(0 0 0/.1));filter:${l};`,
1148
- "drop-shadow-xl": `--cer-drop-shadow:drop-shadow(0 20px 13px rgb(0 0 0/.03)) drop-shadow(0 8px 5px rgb(0 0 0/.08));filter:${l};`,
1149
- "drop-shadow-2xl": `--cer-drop-shadow:drop-shadow(0 25px 25px rgb(0 0 0/.15));filter:${l};`,
1150
- "drop-shadow-none": `--cer-drop-shadow:drop-shadow(0 0 #0000);filter:${l};`,
1151
- // Backdrop blur
1152
- "backdrop-blur-none": `--cer-backdrop-blur:;backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1153
- "backdrop-blur-sm": `--cer-backdrop-blur:blur(4px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1154
- "backdrop-blur": `--cer-backdrop-blur:blur(8px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1155
- "backdrop-blur-md": `--cer-backdrop-blur:blur(12px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1156
- "backdrop-blur-lg": `--cer-backdrop-blur:blur(16px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1157
- "backdrop-blur-xl": `--cer-backdrop-blur:blur(24px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1158
- "backdrop-blur-2xl": `--cer-backdrop-blur:blur(40px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`,
1159
- "backdrop-blur-3xl": `--cer-backdrop-blur:blur(64px);backdrop-filter:${f};-webkit-backdrop-filter:${f};`
1039
+ "blur-none": `--cer-blur:;filter:${n};`,
1040
+ "blur-sm": `--cer-blur:blur(4px);filter:${n};`,
1041
+ blur: `--cer-blur:blur(8px);filter:${n};`,
1042
+ "blur-md": `--cer-blur:blur(12px);filter:${n};`,
1043
+ "blur-lg": `--cer-blur:blur(16px);filter:${n};`,
1044
+ "blur-xl": `--cer-blur:blur(24px);filter:${n};`,
1045
+ "blur-2xl": `--cer-blur:blur(40px);filter:${n};`,
1046
+ "blur-3xl": `--cer-blur:blur(64px);filter:${n};`,
1047
+ "brightness-0": `--cer-brightness:brightness(0);filter:${n};`,
1048
+ "brightness-50": `--cer-brightness:brightness(.5);filter:${n};`,
1049
+ "brightness-75": `--cer-brightness:brightness(.75);filter:${n};`,
1050
+ "brightness-90": `--cer-brightness:brightness(.9);filter:${n};`,
1051
+ "brightness-95": `--cer-brightness:brightness(.95);filter:${n};`,
1052
+ "brightness-100": `--cer-brightness:brightness(1);filter:${n};`,
1053
+ "brightness-105": `--cer-brightness:brightness(1.05);filter:${n};`,
1054
+ "brightness-110": `--cer-brightness:brightness(1.1);filter:${n};`,
1055
+ "brightness-125": `--cer-brightness:brightness(1.25);filter:${n};`,
1056
+ "brightness-150": `--cer-brightness:brightness(1.5);filter:${n};`,
1057
+ "brightness-200": `--cer-brightness:brightness(2);filter:${n};`,
1058
+ "contrast-0": `--cer-contrast:contrast(0);filter:${n};`,
1059
+ "contrast-50": `--cer-contrast:contrast(.5);filter:${n};`,
1060
+ "contrast-75": `--cer-contrast:contrast(.75);filter:${n};`,
1061
+ "contrast-100": `--cer-contrast:contrast(1);filter:${n};`,
1062
+ "contrast-125": `--cer-contrast:contrast(1.25);filter:${n};`,
1063
+ "contrast-150": `--cer-contrast:contrast(1.5);filter:${n};`,
1064
+ "contrast-200": `--cer-contrast:contrast(2);filter:${n};`,
1065
+ grayscale: `--cer-grayscale:grayscale(100%);filter:${n};`,
1066
+ "grayscale-0": `--cer-grayscale:grayscale(0);filter:${n};`,
1067
+ "hue-rotate-0": `--cer-hue-rotate:hue-rotate(0deg);filter:${n};`,
1068
+ "hue-rotate-15": `--cer-hue-rotate:hue-rotate(15deg);filter:${n};`,
1069
+ "hue-rotate-30": `--cer-hue-rotate:hue-rotate(30deg);filter:${n};`,
1070
+ "hue-rotate-60": `--cer-hue-rotate:hue-rotate(60deg);filter:${n};`,
1071
+ "hue-rotate-90": `--cer-hue-rotate:hue-rotate(90deg);filter:${n};`,
1072
+ "hue-rotate-180": `--cer-hue-rotate:hue-rotate(180deg);filter:${n};`,
1073
+ "-hue-rotate-180": `--cer-hue-rotate:hue-rotate(-180deg);filter:${n};`,
1074
+ "-hue-rotate-90": `--cer-hue-rotate:hue-rotate(-90deg);filter:${n};`,
1075
+ "-hue-rotate-60": `--cer-hue-rotate:hue-rotate(-60deg);filter:${n};`,
1076
+ "-hue-rotate-30": `--cer-hue-rotate:hue-rotate(-30deg);filter:${n};`,
1077
+ "-hue-rotate-15": `--cer-hue-rotate:hue-rotate(-15deg);filter:${n};`,
1078
+ invert: `--cer-invert:invert(100%);filter:${n};`,
1079
+ "invert-0": `--cer-invert:invert(0);filter:${n};`,
1080
+ "saturate-0": `--cer-saturate:saturate(0);filter:${n};`,
1081
+ "saturate-50": `--cer-saturate:saturate(.5);filter:${n};`,
1082
+ "saturate-100": `--cer-saturate:saturate(1);filter:${n};`,
1083
+ "saturate-150": `--cer-saturate:saturate(1.5);filter:${n};`,
1084
+ "saturate-200": `--cer-saturate:saturate(2);filter:${n};`,
1085
+ sepia: `--cer-sepia:sepia(100%);filter:${n};`,
1086
+ "sepia-0": `--cer-sepia:sepia(0);filter:${n};`,
1087
+ "drop-shadow-sm": `--cer-drop-shadow:drop-shadow(0 1px 1px rgb(0 0 0/.05));filter:${n};`,
1088
+ "drop-shadow": `--cer-drop-shadow:drop-shadow(0 1px 2px rgb(0 0 0/.1)) drop-shadow(0 1px 1px rgb(0 0 0/.06));filter:${n};`,
1089
+ "drop-shadow-md": `--cer-drop-shadow:drop-shadow(0 4px 3px rgb(0 0 0/.07)) drop-shadow(0 2px 2px rgb(0 0 0/.06));filter:${n};`,
1090
+ "drop-shadow-lg": `--cer-drop-shadow:drop-shadow(0 10px 8px rgb(0 0 0/.04)) drop-shadow(0 4px 3px rgb(0 0 0/.1));filter:${n};`,
1091
+ "drop-shadow-xl": `--cer-drop-shadow:drop-shadow(0 20px 13px rgb(0 0 0/.03)) drop-shadow(0 8px 5px rgb(0 0 0/.08));filter:${n};`,
1092
+ "drop-shadow-2xl": `--cer-drop-shadow:drop-shadow(0 25px 25px rgb(0 0 0/.15));filter:${n};`,
1093
+ "drop-shadow-none": `--cer-drop-shadow:drop-shadow(0 0 #0000);filter:${n};`,
1094
+ "backdrop-blur-none": `--cer-backdrop-blur:;backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1095
+ "backdrop-blur-sm": `--cer-backdrop-blur:blur(4px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1096
+ "backdrop-blur": `--cer-backdrop-blur:blur(8px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1097
+ "backdrop-blur-md": `--cer-backdrop-blur:blur(12px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1098
+ "backdrop-blur-lg": `--cer-backdrop-blur:blur(16px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1099
+ "backdrop-blur-xl": `--cer-backdrop-blur:blur(24px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1100
+ "backdrop-blur-2xl": `--cer-backdrop-blur:blur(40px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1101
+ "backdrop-blur-3xl": `--cer-backdrop-blur:blur(64px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`
1160
1102
  }), Object.assign(e, {
1161
1103
  "aspect-auto": "aspect-ratio:auto;",
1162
1104
  "aspect-square": "aspect-ratio:1 / 1;",
@@ -1177,16 +1119,13 @@ const Ye = {
1177
1119
  "object-right-top": "object-position:right top;",
1178
1120
  "object-top": "object-position:top;"
1179
1121
  });
1180
- for (let n = 1; n <= 6; n++)
1181
- e[`line-clamp-${n}`] = `display:-webkit-box;-webkit-line-clamp:${n};-webkit-box-orient:vertical;overflow:hidden;`;
1122
+ for (let a = 1; a <= 6; a++) e[`line-clamp-${a}`] = `display:-webkit-box;-webkit-line-clamp:${a};-webkit-box-orient:vertical;overflow:hidden;`;
1182
1123
  e["line-clamp-none"] = "overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none;";
1183
- for (let n = 1; n <= 12; n++)
1184
- e[`order-${n}`] = `order:${n};`;
1124
+ for (let a = 1; a <= 12; a++) e[`order-${a}`] = `order:${a};`;
1185
1125
  e["order-first"] = "order:-9999;", e["order-last"] = "order:9999;", e["order-none"] = "order:0;";
1186
- for (let n = 0; n <= 12; n++)
1187
- n <= 1 || (e[`grow-${n}`] = `flex-grow:${n};`, e[`shrink-${n}`] = `flex-shrink:${n};`);
1126
+ for (let a = 0; a <= 12; a++)
1127
+ a <= 1 || (e[`grow-${a}`] = `flex-grow:${a};`, e[`shrink-${a}`] = `flex-shrink:${a};`);
1188
1128
  return Object.assign(e, {
1189
- // Linear gradients
1190
1129
  "bg-linear-to-t": "background-image:linear-gradient(to top, var(--cer-gradient-stops));",
1191
1130
  "bg-linear-to-tr": "background-image:linear-gradient(to top right, var(--cer-gradient-stops));",
1192
1131
  "bg-linear-to-r": "background-image:linear-gradient(to right, var(--cer-gradient-stops));",
@@ -1195,7 +1134,6 @@ const Ye = {
1195
1134
  "bg-linear-to-bl": "background-image:linear-gradient(to bottom left, var(--cer-gradient-stops));",
1196
1135
  "bg-linear-to-l": "background-image:linear-gradient(to left, var(--cer-gradient-stops));",
1197
1136
  "bg-linear-to-tl": "background-image:linear-gradient(to top left, var(--cer-gradient-stops));",
1198
- // Radial gradients
1199
1137
  "bg-radial": "background-image:radial-gradient(ellipse at center, var(--cer-gradient-stops));",
1200
1138
  "bg-radial-at-t": "background-image:radial-gradient(ellipse at top, var(--cer-gradient-stops));",
1201
1139
  "bg-radial-at-tr": "background-image:radial-gradient(ellipse at top right, var(--cer-gradient-stops));",
@@ -1214,7 +1152,6 @@ const Ye = {
1214
1152
  "bg-radial-circle-at-bl": "background-image:radial-gradient(circle at bottom left, var(--cer-gradient-stops));",
1215
1153
  "bg-radial-circle-at-l": "background-image:radial-gradient(circle at left, var(--cer-gradient-stops));",
1216
1154
  "bg-radial-circle-at-tl": "background-image:radial-gradient(circle at top left, var(--cer-gradient-stops));",
1217
- // Conic gradients
1218
1155
  "bg-conic": "background-image:conic-gradient(from 0deg at center, var(--cer-gradient-stops));",
1219
1156
  "bg-conic-at-t": "background-image:conic-gradient(from 0deg at top, var(--cer-gradient-stops));",
1220
1157
  "bg-conic-at-tr": "background-image:conic-gradient(from 0deg at top right, var(--cer-gradient-stops));",
@@ -1225,7 +1162,6 @@ const Ye = {
1225
1162
  "bg-conic-at-l": "background-image:conic-gradient(from 0deg at left, var(--cer-gradient-stops));",
1226
1163
  "bg-conic-at-tl": "background-image:conic-gradient(from 0deg at top left, var(--cer-gradient-stops));"
1227
1164
  }), Object.assign(e, {
1228
- // prose-invert: dark mode color inversion
1229
1165
  "prose-invert": `
1230
1166
  --cer-prose-body:var(--cer-color-neutral-200);
1231
1167
  --cer-prose-headings:var(--cer-color-neutral-50);
@@ -1250,42 +1186,36 @@ const Ye = {
1250
1186
  --cer-prose-links:var(--cer-prose-invert-links,var(--cer-color-neutral-300));
1251
1187
  --cer-prose-links-hover:var(--cer-prose-invert-links-hover,var(--cer-color-neutral-100));
1252
1188
  `.replace(/\s+/g, ""),
1253
- // prose-primary: primary color scheme (sets invert variables)
1254
1189
  "prose-primary": `
1255
1190
  --cer-prose-links:var(--cer-color-primary-700);
1256
1191
  --cer-prose-links-hover:var(--cer-color-primary-500);
1257
1192
  --cer-prose-invert-links:var(--cer-color-primary-300);
1258
1193
  --cer-prose-invert-links-hover:var(--cer-color-primary-100);
1259
1194
  `.replace(/\s+/g, ""),
1260
- // prose-secondary: secondary color scheme (sets invert variables)
1261
1195
  "prose-secondary": `
1262
1196
  --cer-prose-links:var(--cer-color-secondary-700);
1263
1197
  --cer-prose-links-hover:var(--cer-color-secondary-500);
1264
1198
  --cer-prose-invert-links:var(--cer-color-secondary-300);
1265
1199
  --cer-prose-invert-links-hover:var(--cer-color-secondary-100);
1266
1200
  `.replace(/\s+/g, ""),
1267
- // prose-success: success color scheme (sets invert variables)
1268
1201
  "prose-success": `
1269
1202
  --cer-prose-links:var(--cer-color-success-700);
1270
1203
  --cer-prose-links-hover:var(--cer-color-success-500);
1271
1204
  --cer-prose-invert-links:var(--cer-color-success-300);
1272
1205
  --cer-prose-invert-links-hover:var(--cer-color-success-100);
1273
1206
  `.replace(/\s+/g, ""),
1274
- // prose-warning: warning color scheme (sets invert variables)
1275
1207
  "prose-warning": `
1276
1208
  --cer-prose-links:var(--cer-color-warning-700);
1277
1209
  --cer-prose-links-hover:var(--cer-color-warning-500);
1278
1210
  --cer-prose-invert-links:var(--cer-color-warning-300);
1279
1211
  --cer-prose-invert-links-hover:var(--cer-color-warning-100);
1280
1212
  `.replace(/\s+/g, ""),
1281
- // prose-error: error color scheme (sets invert variables)
1282
1213
  "prose-error": `
1283
1214
  --cer-prose-links:var(--cer-color-error-700);
1284
1215
  --cer-prose-links-hover:var(--cer-color-error-500);
1285
1216
  --cer-prose-invert-links:var(--cer-color-error-300);
1286
1217
  --cer-prose-invert-links-hover:var(--cer-color-error-100);
1287
1218
  `.replace(/\s+/g, ""),
1288
- // prose-info: info color scheme (sets invert variables)
1289
1219
  "prose-info": `
1290
1220
  --cer-prose-links:var(--cer-color-info-700);
1291
1221
  --cer-prose-links-hover:var(--cer-color-info-500);
@@ -1355,7 +1285,6 @@ const Ye = {
1355
1285
  "cursor-nwse-resize": "cursor:nwse-resize;",
1356
1286
  "cursor-all-scroll": "cursor:all-scroll;"
1357
1287
  }), Object.assign(e, {
1358
- // border-inline-start / border-inline-end widths
1359
1288
  "border-s": "border-inline-start-width:1px;",
1360
1289
  "border-e": "border-inline-end-width:1px;",
1361
1290
  "border-s-0": "border-inline-start-width:0px;",
@@ -1386,34 +1315,24 @@ const Ye = {
1386
1315
  "rounded-s-full": "border-start-start-radius:9999px;border-end-start-radius:9999px;",
1387
1316
  "rounded-e-full": "border-start-end-radius:9999px;border-end-end-radius:9999px;"
1388
1317
  }), e;
1389
- }, me = Ze();
1318
+ }, ge = Ze();
1390
1319
  function er(e) {
1391
- return /^prose(?:-(sm|lg|xl|2xl))?$/.test(e) ? (Qe(e), "") : null;
1320
+ return /^prose(?:-(sm|lg|xl|2xl))?$/.test(e) ? (Ke(e), "") : null;
1392
1321
  }
1393
- function We(e) {
1394
- return /^prose-([a-z0-9]+):(.+)$/.test(e) ? Je(
1395
- e,
1396
- me,
1397
- fe,
1398
- he,
1399
- $e,
1400
- be,
1401
- xe,
1402
- le
1403
- ) : null;
1322
+ function _e(e) {
1323
+ return /^prose-([a-z0-9]+):(.+)$/.test(e) ? Je(e, ge, me, fe, xe, he, be, se) : null;
1404
1324
  }
1405
1325
  function I(e, r) {
1406
- let c = 0;
1407
- for (let a = 0; a < e.length; a++) {
1408
- const t = e[a];
1409
- if (t === "[" || t === "(") c++;
1410
- else if ((t === "]" || t === ")") && c > 0) c--;
1411
- else if (c === 0 && (t === ">" || t === "+" || t === "~" || t === " "))
1412
- return e.slice(0, a) + r + e.slice(a);
1326
+ let t = 0;
1327
+ for (let o = 0; o < e.length; o++) {
1328
+ const n = e[o];
1329
+ if (n === "[" || n === "(") t++;
1330
+ else if ((n === "]" || n === ")") && t > 0) t--;
1331
+ else if (t === 0 && (n === ">" || n === "+" || n === "~" || n === " ")) return e.slice(0, o) + r + e.slice(o);
1413
1332
  }
1414
1333
  return e + r;
1415
1334
  }
1416
- const _e = {
1335
+ var We = {
1417
1336
  before: (e, r) => `${e}::before{${r}}`,
1418
1337
  after: (e, r) => `${e}::after{${r}}`,
1419
1338
  hover: (e, r) => `${I(e, ":hover")}{${r}}`,
@@ -1439,15 +1358,13 @@ const _e = {
1439
1358
  "dark-class": (e, r) => `:host(.dark) ${e}{${r}}`,
1440
1359
  rtl: (e, r) => `[dir=rtl] ${e}{${r}}`,
1441
1360
  ltr: (e, r) => `[dir=ltr] ${e}{${r}}`,
1442
- // Pseudo-element variants
1443
1361
  placeholder: (e, r) => `${e}::placeholder{${r}}`,
1444
1362
  file: (e, r) => `${e}::file-selector-button{${r}}`,
1445
1363
  marker: (e, r) => `${e}::marker{${r}}`,
1446
1364
  selection: (e, r) => `${e}::selection{${r}}`,
1447
- // State variants
1448
1365
  open: (e, r) => `${I(e, "[open]")}{${r}}`,
1449
1366
  inert: (e, r) => `${I(e, "[inert]")}{${r}}`
1450
- }, ce = {
1367
+ }, ae = {
1451
1368
  sm: "(min-width:640px)",
1452
1369
  md: "(min-width:768px)",
1453
1370
  lg: "(min-width:1024px)",
@@ -1470,7 +1387,7 @@ const _e = {
1470
1387
  "5xl": "(min-width:64rem)",
1471
1388
  "6xl": "(min-width:72rem)",
1472
1389
  "7xl": "(min-width:80rem)"
1473
- }, ie = [
1390
+ }, ne = [
1474
1391
  "sm",
1475
1392
  "md",
1476
1393
  "lg",
@@ -1480,7 +1397,7 @@ const _e = {
1480
1397
  "motion-safe",
1481
1398
  "print",
1482
1399
  "forced-colors"
1483
- ], ue = [
1400
+ ], pe = [
1484
1401
  "xs",
1485
1402
  "sm",
1486
1403
  "md",
@@ -1493,48 +1410,45 @@ const _e = {
1493
1410
  "6xl",
1494
1411
  "7xl"
1495
1412
  ];
1496
- function fe(e) {
1497
- const r = e.startsWith("-"), c = r ? e.slice(1) : e, a = c.lastIndexOf("-");
1498
- if (a === -1) return null;
1499
- const t = c.slice(0, a), s = c.slice(a + 1);
1500
- if (!ye[t]) return null;
1501
- if (s.includes("/")) {
1502
- const [i, d] = s.split("/").map((l) => parseFloat(l));
1503
- if (Number.isNaN(i) || Number.isNaN(d) || d === 0)
1504
- return null;
1505
- const u = i / d * 100;
1506
- return ye[t].map((l) => `${l}:${u}%;`).join("");
1413
+ function me(e) {
1414
+ const r = e.startsWith("-"), t = r ? e.slice(1) : e, o = t.lastIndexOf("-");
1415
+ if (o === -1) return null;
1416
+ const n = t.slice(0, o), i = t.slice(o + 1);
1417
+ if (!ke[n]) return null;
1418
+ if (i.includes("/")) {
1419
+ const [d, h] = i.split("/").map((S) => parseFloat(S));
1420
+ if (Number.isNaN(d) || Number.isNaN(h) || h === 0) return null;
1421
+ const $ = d / h * 100;
1422
+ return ke[n].map((S) => `${S}:${$}%;`).join("");
1507
1423
  }
1508
- const h = parseFloat(s);
1509
- if (Number.isNaN(h)) return null;
1510
- const k = r ? "-" : "";
1511
- return ye[t].map((i) => `${i}:calc(${k}${G} * ${h});`).join("");
1424
+ const a = parseFloat(i);
1425
+ if (Number.isNaN(a)) return null;
1426
+ const c = r ? "-" : "";
1427
+ return ke[n].map((d) => `${d}:calc(${c}${J} * ${a});`).join("");
1512
1428
  }
1513
- function he(e) {
1514
- const r = e.startsWith("-"), a = (r ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
1515
- if (!a) return null;
1516
- const [, t, s] = a, h = t === "x";
1517
- if (s === "reverse")
1518
- return h ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
1519
- if (s.includes("/")) {
1520
- const [u, l] = s.split("/").map((g) => parseFloat(g));
1521
- if (Number.isNaN(u) || Number.isNaN(l) || l === 0)
1522
- return null;
1523
- const f = u / l * 100, n = r ? "-" : "";
1524
- return h ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${n}${f}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${n}${f}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${n}${f}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${n}${f}% * var(--cer-space-y-reverse));}`;
1429
+ function fe(e) {
1430
+ const r = e.startsWith("-"), t = (r ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
1431
+ if (!t) return null;
1432
+ const [, o, n] = t, i = o === "x";
1433
+ if (n === "reverse") return i ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
1434
+ if (n.includes("/")) {
1435
+ const [d, h] = n.split("/").map((W) => parseFloat(W));
1436
+ if (Number.isNaN(d) || Number.isNaN(h) || h === 0) return null;
1437
+ const $ = d / h * 100, S = r ? "-" : "";
1438
+ return i ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${S}${$}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${S}${$}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${S}${$}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${S}${$}% * var(--cer-space-y-reverse));}`;
1525
1439
  }
1526
- const k = parseFloat(s);
1527
- if (Number.isNaN(k)) return null;
1528
- const d = `calc(${r ? "-" : ""}${G} * ${k})`;
1529
- return h ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${d} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${d} * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${d} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${d} * var(--cer-space-y-reverse));}`;
1440
+ const a = parseFloat(n);
1441
+ if (Number.isNaN(a)) return null;
1442
+ const c = `calc(${r ? "-" : ""}${J} * ${a})`;
1443
+ return i ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${c} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${c} * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${c} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${c} * var(--cer-space-y-reverse));}`;
1530
1444
  }
1531
- function ge(e) {
1445
+ function ue(e) {
1532
1446
  let r = e.replace("#", "");
1533
- r.length === 3 && (r = r.split("").map((a) => a + a).join(""));
1534
- const c = parseInt(r, 16);
1535
- return `${c >> 16 & 255} ${c >> 8 & 255} ${c & 255}`;
1447
+ r.length === 3 && (r = r.split("").map((o) => o + o).join(""));
1448
+ const t = parseInt(r, 16);
1449
+ return `${t >> 16 & 255} ${t >> 8 & 255} ${t & 255}`;
1536
1450
  }
1537
- const rr = /^(text-shadow|bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke|ring|divide)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, tr = {
1451
+ var rr = /^(text-shadow|bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke|ring|divide)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, tr = {
1538
1452
  bg: "background-color",
1539
1453
  decoration: "text-decoration-color",
1540
1454
  text: "color",
@@ -1548,110 +1462,101 @@ const rr = /^(text-shadow|bg|text|border|decoration|shadow|outline|caret|accent|
1548
1462
  function or(e) {
1549
1463
  const r = rr.exec(e);
1550
1464
  if (!r) return null;
1551
- const [, c, a, t = "DEFAULT"] = r, s = re[a]?.[t];
1552
- if (!s) return null;
1553
- if (c === "shadow") return `--cer-shadow-color:${s};`;
1554
- if (c === "ring") return `--cer-ring-color:${s};`;
1555
- if (c === "divide") return `border-color:${s};`;
1556
- if (c === "text-shadow") return `--cer-text-shadow-color:${s};`;
1557
- const h = tr[c];
1558
- return h ? `${h}:${s};` : null;
1465
+ const [, t, o, n = "DEFAULT"] = r, i = re[o]?.[n];
1466
+ if (!i) return null;
1467
+ if (t === "shadow") return `--cer-shadow-color:${i};`;
1468
+ if (t === "ring") return `--cer-ring-color:${i};`;
1469
+ if (t === "divide") return `border-color:${i};`;
1470
+ if (t === "text-shadow") return `--cer-text-shadow-color:${i};`;
1471
+ const a = tr[t];
1472
+ return a ? `${a}:${i};` : null;
1559
1473
  }
1560
1474
  function nr(e) {
1561
1475
  const r = e.indexOf("/");
1562
1476
  if (r === -1) return { base: e };
1563
- const c = e.slice(0, r), a = e.slice(r + 1), t = parseInt(a, 10);
1564
- return isNaN(t) || t < 0 || t > 100 ? { base: c } : { base: c, opacity: t / 100 };
1477
+ const t = e.slice(0, r), o = e.slice(r + 1), n = parseInt(o, 10);
1478
+ return isNaN(n) || n < 0 || n > 100 ? { base: t } : {
1479
+ base: t,
1480
+ opacity: n / 100
1481
+ };
1565
1482
  }
1566
- function be(e) {
1567
- const { base: r, opacity: c } = nr(e), a = or(r);
1568
- if (a) {
1569
- if (c !== void 0) {
1570
- if (a.includes("var(")) {
1571
- const h = /var\([^)]*\)/.exec(a);
1572
- if (h) {
1573
- const k = h[0], i = c * 100, d = `color-mix(in srgb, ${k} ${i}%, rgba(0 0 0 / 0) ${100 - i}%)`, u = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(k), l = /^([a-z-]+):/.exec(a), f = l ? l[1] : "background-color";
1574
- if (u) {
1575
- const g = `rgb(${ge(u[0])} / ${c})`, y = k.replace(
1576
- /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1577
- g
1578
- );
1579
- return `${f}:${y};__CE_COLOR_MIX_SPLIT__${f}:${d};`;
1483
+ function he(e) {
1484
+ const { base: r, opacity: t } = nr(e), o = or(r);
1485
+ if (o) {
1486
+ if (t !== void 0) {
1487
+ if (o.includes("var(")) {
1488
+ const a = /var\([^)]*\)/.exec(o);
1489
+ if (a) {
1490
+ const c = a[0], d = t * 100, h = `color-mix(in srgb, ${c} ${d}%, rgba(0 0 0 / 0) ${100 - d}%)`, $ = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(c), S = /^([a-z-]+):/.exec(o), W = S ? S[1] : "background-color";
1491
+ if ($) {
1492
+ const X = `rgb(${ue($[0])} / ${t})`;
1493
+ return `${W}:${c.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, X)};__CE_COLOR_MIX_SPLIT__${W}:${h};`;
1580
1494
  }
1581
- return `${f}:${d};`;
1495
+ return `${W}:${h};`;
1582
1496
  }
1583
1497
  }
1584
- const s = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(a);
1585
- if (s) {
1586
- const h = ge(s[0]);
1587
- return a.replace(
1588
- /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1589
- `rgb(${h} / ${c})`
1590
- );
1498
+ const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(o);
1499
+ if (i) {
1500
+ const a = ue(i[0]);
1501
+ return o.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, `rgb(${a} / ${t})`);
1591
1502
  }
1592
1503
  }
1593
- return a;
1504
+ return o;
1594
1505
  }
1595
- const t = le(r);
1596
- if (t && c !== void 0) {
1597
- if (t.includes("var(")) {
1598
- const h = /var\([^)]*\)/.exec(t);
1599
- if (h) {
1600
- const k = h[0], i = c * 100, d = `color-mix(in srgb, ${k} ${i}%, rgba(0 0 0 / 0) ${100 - i}%)`, u = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(k), l = /^([a-z-]+):/.exec(t), f = l ? l[1] : null;
1601
- if (u && f) {
1602
- const g = `rgb(${ge(u[0])} / ${c})`, y = k.replace(
1603
- /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1604
- g
1605
- );
1606
- return `${f}:${y};__CE_COLOR_MIX_SPLIT__${f}:${d};`;
1506
+ const n = se(r);
1507
+ if (n && t !== void 0) {
1508
+ if (n.includes("var(")) {
1509
+ const a = /var\([^)]*\)/.exec(n);
1510
+ if (a) {
1511
+ const c = a[0], d = t * 100, h = `color-mix(in srgb, ${c} ${d}%, rgba(0 0 0 / 0) ${100 - d}%)`, $ = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(c), S = /^([a-z-]+):/.exec(n), W = S ? S[1] : null;
1512
+ if ($ && W) {
1513
+ const X = `rgb(${ue($[0])} / ${t})`;
1514
+ return `${W}:${c.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, X)};__CE_COLOR_MIX_SPLIT__${W}:${h};`;
1607
1515
  }
1608
- return t.replace(k, d);
1516
+ return n.replace(c, h);
1609
1517
  }
1610
1518
  }
1611
- const s = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(t);
1612
- if (s) {
1613
- const h = ge(s[0]);
1614
- return t.replace(
1615
- /#([0-9a-f]{6}|[0-9a-f]{3})/i,
1616
- `rgb(${h} / ${c})`
1617
- );
1519
+ const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(n);
1520
+ if (i) {
1521
+ const a = ue(i[0]);
1522
+ return n.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, `rgb(${a} / ${t})`);
1618
1523
  }
1619
1524
  }
1620
- return t;
1525
+ return n;
1621
1526
  }
1622
- function xe(e) {
1527
+ function be(e) {
1623
1528
  const r = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
1624
1529
  if (!r) return null;
1625
- const [, c, a, t = "DEFAULT"] = r, s = re[a]?.[t];
1626
- if (!s) return null;
1627
- switch (c) {
1530
+ const [, t, o, n = "DEFAULT"] = r, i = re[o]?.[n];
1531
+ if (!i) return null;
1532
+ switch (t) {
1628
1533
  case "from":
1629
- return `--cer-gradient-from:${s} var(--cer-gradient-from-position);--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), var(--cer-gradient-to);`;
1534
+ return `--cer-gradient-from:${i} var(--cer-gradient-from-position);--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), var(--cer-gradient-to);`;
1630
1535
  case "to":
1631
- return `--cer-gradient-to:${s} var(--cer-gradient-to-position);`;
1536
+ return `--cer-gradient-to:${i} var(--cer-gradient-to-position);`;
1632
1537
  case "via":
1633
- return `--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${s} var(--cer-gradient-via-position), var(--cer-gradient-to);`;
1538
+ return `--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${i} var(--cer-gradient-via-position), var(--cer-gradient-to);`;
1634
1539
  default:
1635
1540
  return null;
1636
1541
  }
1637
1542
  }
1638
- function $e(e) {
1543
+ function xe(e) {
1639
1544
  const r = /^opacity-(\d{1,3})$/.exec(e);
1640
1545
  if (!r) return null;
1641
- const c = parseInt(r[1], 10);
1642
- return c < 0 || c > 100 ? null : `opacity:${c / 100};`;
1546
+ const t = parseInt(r[1], 10);
1547
+ return t < 0 || t > 100 ? null : `opacity:${t / 100};`;
1643
1548
  }
1644
- function le(e) {
1549
+ function se(e) {
1645
1550
  if (e.startsWith("[") && e.endsWith("]") && !e.includes("-[")) {
1646
- const h = e.slice(1, -1).trim(), k = h.indexOf(":");
1647
- if (k === -1) return null;
1648
- const i = h.slice(0, k).trim();
1649
- let d = h.slice(k + 1).trim();
1650
- return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(i) ? (d = d.replace(/_/g, " "), d = d.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), d = d.replace(/^'([^']*)'$/g, '"$1"'), `${i}:${d};`) : null;
1551
+ const a = e.slice(1, -1).trim(), c = a.indexOf(":");
1552
+ if (c === -1) return null;
1553
+ const d = a.slice(0, c).trim();
1554
+ let h = a.slice(c + 1).trim();
1555
+ return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(d) ? (h = h.replace(/_/g, " "), h = h.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), h = h.replace(/^'([^']*)'$/g, '"$1"'), `${d}:${h};`) : null;
1651
1556
  }
1652
1557
  const r = e.indexOf("-[");
1653
1558
  if (r <= 0 || !e.endsWith("]")) return null;
1654
- const c = e.slice(0, r), a = e.slice(r + 2, -1).replace(/_/g, " "), t = {
1559
+ const t = e.slice(0, r), o = e.slice(r + 2, -1).replace(/_/g, " "), n = {
1655
1560
  bg: "background-color",
1656
1561
  shadow: "box-shadow",
1657
1562
  p: "padding",
@@ -1691,37 +1596,37 @@ function le(e) {
1691
1596
  z: "z-index",
1692
1597
  opacity: "opacity"
1693
1598
  };
1694
- if (c === "text")
1695
- return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(a) ? `font-size:${a};` : `color:${a};`;
1696
- if (c === "rotate") return `transform:rotate(${a});`;
1697
- if (c === "scale") return `transform:scale(${a});`;
1698
- if (c === "translate-x") return `transform:translateX(${a});`;
1699
- if (c === "translate-y") return `transform:translateY(${a});`;
1700
- const s = t[c] ?? c.replace(/_/g, "-");
1701
- return s && a ? `${s}:${a};` : null;
1599
+ if (t === "text")
1600
+ return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(o) ? `font-size:${o};` : `color:${o};`;
1601
+ if (t === "rotate") return `transform:rotate(${o});`;
1602
+ if (t === "scale") return `transform:scale(${o});`;
1603
+ if (t === "translate-x") return `transform:translateX(${o});`;
1604
+ if (t === "translate-y") return `transform:translateY(${o});`;
1605
+ const i = n[t] ?? t.replace(/_/g, "-");
1606
+ return i && o ? `${i}:${o};` : null;
1702
1607
  }
1703
1608
  function Ee(e) {
1704
1609
  if (e.startsWith("[") && e.endsWith("]")) {
1705
- const c = e.slice(1, -1);
1706
- return c.includes("&") ? c : e;
1610
+ const t = e.slice(1, -1);
1611
+ return t.includes("&") ? t : e;
1707
1612
  }
1708
1613
  const r = e.indexOf("-[");
1709
1614
  if (r > 0 && e.endsWith("]")) {
1710
- const c = e.slice(r + 2, -1).replace(/_/g, "-");
1711
- return c.includes("&") ? c : e.replace(/_/g, "-");
1615
+ const t = e.slice(r + 2, -1).replace(/_/g, "-");
1616
+ return t.includes("&") ? t : e.replace(/_/g, "-");
1712
1617
  }
1713
1618
  return null;
1714
1619
  }
1715
- function sr(e) {
1620
+ function ar(e) {
1716
1621
  const r = [];
1717
- let c;
1718
- for (Pe.lastIndex = 0; c = Pe.exec(e); ) {
1719
- const a = c[2].split(/\s+/).filter(Boolean);
1720
- a.length && r.push(...a);
1622
+ let t;
1623
+ for (Pe.lastIndex = 0; t = Pe.exec(e); ) {
1624
+ const o = t[2].split(/\s+/).filter(Boolean);
1625
+ o.length && r.push(...o);
1721
1626
  }
1722
1627
  return r;
1723
1628
  }
1724
- const Pe = /class\s*=\s*(['"])([\s\S]*?)\1/g, ar = {
1629
+ var Pe = /class\s*=\s*(['"])([\s\S]*?)\1/g, sr = {
1725
1630
  sm: 640,
1726
1631
  md: 768,
1727
1632
  lg: 1024,
@@ -1740,51 +1645,51 @@ const Pe = /class\s*=\s*(['"])([\s\S]*?)\1/g, ar = {
1740
1645
  "6xl": 1152,
1741
1646
  "7xl": 1280
1742
1647
  };
1743
- function Re(e) {
1744
- for (const [r, c] of Object.entries(ar))
1745
- if (e.includes(`@media ${ce[r]}`)) return c;
1648
+ function Me(e) {
1649
+ for (const [r, t] of Object.entries(sr)) if (e.includes(`@media ${ae[r]}`)) return t;
1746
1650
  return -1;
1747
1651
  }
1748
- function Me(e) {
1749
- for (const [r, c] of Object.entries(ir))
1750
- if (e.includes(`@container ${Ve[r]}`)) return c;
1652
+ function Re(e) {
1653
+ for (const [r, t] of Object.entries(ir)) if (e.includes(`@container ${Ve[r]}`)) return t;
1751
1654
  if (e.includes("@container (min-width:")) {
1752
- const r = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(
1753
- e
1754
- );
1655
+ const r = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(e);
1755
1656
  if (r) {
1756
- const c = parseFloat(r[1]), a = r[2];
1757
- return a === "rem" || a === "em" ? c * 16 : c;
1657
+ const t = parseFloat(r[1]), o = r[2];
1658
+ return o === "rem" || o === "em" ? t * 16 : t;
1758
1659
  }
1759
1660
  }
1760
1661
  return -1;
1761
1662
  }
1762
- const U = /* @__PURE__ */ new Map(), Ie = 1e3;
1663
+ var D = /* @__PURE__ */ new Map(), Ie = 1e3;
1763
1664
  function cr(e) {
1764
- const r = sr(e);
1665
+ const r = ar(e);
1765
1666
  if (!r.length) return "";
1766
- const c = new Set(r), a = Array.from(c).sort().join("\0"), t = U.get(a);
1767
- if (t !== void 0)
1768
- return U.delete(a), U.set(a, t), t;
1769
- const s = [[], [], [], [], []], h = {}, k = (b, x = !1) => {
1770
- const S = x ? `dark|${b}` : b;
1771
- if (S in h) return h[S];
1772
- const j = l(b, x);
1773
- return h[S] = j, j;
1774
- }, i = (b) => {
1775
- const x = b.some((W) => ie.includes(W)), S = b.some(
1776
- (W) => W.startsWith("@") && (ue.includes(W.slice(1)) || W.match(/^@\[.+\]$/))
1777
- ), j = b.includes("dark");
1778
- return b.length ? !x && !j && !S ? 1 : j && (x || S) ? 4 : j ? 3 : 2 : 0;
1779
- }, d = (b) => {
1780
- const x = [];
1781
- let S = "", j = 0;
1782
- for (let W = 0; W < b.length; W++) {
1783
- const z = b[W];
1784
- z === "[" || z === "(" ? j++ : (z === "]" || z === ")") && j--, z === ":" && j === 0 ? (x.push(S), S = "") : S += z;
1667
+ const t = new Set(r), o = Array.from(t).sort().join("\0"), n = D.get(o);
1668
+ if (n !== void 0)
1669
+ return D.delete(o), D.set(o, n), n;
1670
+ const i = [
1671
+ [],
1672
+ [],
1673
+ [],
1674
+ [],
1675
+ []
1676
+ ], a = {}, c = (g, p = !1) => {
1677
+ const b = p ? `dark|${g}` : g;
1678
+ if (b in a) return a[b];
1679
+ const x = S(g, p);
1680
+ return a[b] = x, x;
1681
+ }, d = (g) => {
1682
+ const p = g.some((w) => ne.includes(w)), b = g.some((w) => w.startsWith("@") && (pe.includes(w.slice(1)) || w.match(/^@\[.+\]$/))), x = g.includes("dark");
1683
+ return g.length ? !p && !x && !b ? 1 : x && (p || b) ? 4 : x ? 3 : 2 : 0;
1684
+ }, h = (g) => {
1685
+ const p = [];
1686
+ let b = "", x = 0;
1687
+ for (let w = 0; w < g.length; w++) {
1688
+ const k = g[w];
1689
+ k === "[" || k === "(" ? x++ : (k === "]" || k === ")") && x--, k === ":" && x === 0 ? (p.push(b), b = "") : b += k;
1785
1690
  }
1786
- return S && x.push(S), x;
1787
- }, u = {
1691
+ return b && p.push(b), p;
1692
+ }, $ = {
1788
1693
  hover: ":hover",
1789
1694
  focus: ":focus",
1790
1695
  active: ":active",
@@ -1797,206 +1702,157 @@ function cr(e) {
1797
1702
  even: ":nth-child(even)",
1798
1703
  "focus-within": ":focus-within",
1799
1704
  "focus-visible": ":focus-visible"
1800
- }, l = (b, x = !1) => {
1801
- const S = d(b);
1802
- let j = "", W = !1;
1803
- for (const o of S) {
1804
- let p = o;
1805
- if (p.startsWith("!") && (W = !0, p = p.slice(1)), p.endsWith("!") && (W = !0, p = p.slice(0, -1)), !(p.startsWith("data-[") && p.endsWith("]") || p.startsWith("has-[") && p.endsWith("]") || p.startsWith("not-[") && p.endsWith("]") || p.startsWith("in-[") && p.endsWith("]") || p.startsWith("supports-[") && p.endsWith("]") || p === "starting") && (me[p] || fe(p) || he(p) || $e(p) || be(p) || xe(p) || le(p))) {
1806
- j = o;
1705
+ }, S = (g, p = !1) => {
1706
+ const b = h(g);
1707
+ let x = "", w = !1;
1708
+ for (const s of b) {
1709
+ let l = s;
1710
+ if (l.startsWith("!") && (w = !0, l = l.slice(1)), l.endsWith("!") && (w = !0, l = l.slice(0, -1)), !(l.startsWith("data-[") && l.endsWith("]") || l.startsWith("has-[") && l.endsWith("]") || l.startsWith("not-[") && l.endsWith("]") || l.startsWith("in-[") && l.endsWith("]") || l.startsWith("supports-[") && l.endsWith("]") || l === "starting") && (ge[l] || me(l) || fe(l) || xe(l) || he(l) || be(l) || se(l))) {
1711
+ x = s;
1807
1712
  break;
1808
1713
  }
1809
1714
  }
1810
- if (!j) return null;
1811
- const z = j.replace(/^!/, "").replace(/!$/, ""), q = me[z] ?? fe(z) ?? he(z) ?? $e(z) ?? be(z) ?? xe(z) ?? le(z);
1812
- if (!q) return null;
1813
- const te = S.indexOf(j);
1814
- let T = te >= 0 ? S.slice(0, te) : [];
1815
- x && (T = T.filter((o) => o !== "dark"));
1816
- const ke = ae(b), Y = W ? q.replace(/;/g, " !important;") : q, w = "__SUBJECT__";
1817
- let m = w;
1818
- const F = [];
1819
- for (const o of T)
1820
- o.startsWith("group-") ? (m = `.group:${o.slice(6)} ${m}`, F.push(o)) : o.startsWith("peer-") && (m = m.replace(
1821
- w,
1822
- `.peer:${o.slice(5)}~${w}`
1823
- ), F.push(o));
1824
- T = T.filter((o) => !F.includes(o));
1825
- const R = [], J = [];
1826
- let A = null, X = !1;
1827
- const Q = [];
1828
- for (const o of T) {
1829
- if (o === "dark" || ie.includes(o) || o.startsWith("@") && (ue.includes(o.slice(1)) || o.match(/^@\[.+\]$/)))
1830
- continue;
1831
- if (o.startsWith("data-[") && o.endsWith("]")) {
1832
- const $ = o.slice(6, -1), P = $.includes("=") ? "[data-" + $.replace(/^([^=]+)=(.+)$/, '$1="$2"') + "]" : "[data-" + $ + "]";
1833
- R.push(P);
1715
+ if (!x) return null;
1716
+ const k = x.replace(/^!/, "").replace(/!$/, ""), F = ge[k] ?? me(k) ?? fe(k) ?? xe(k) ?? he(k) ?? be(k) ?? se(k);
1717
+ if (!F) return null;
1718
+ const le = b.indexOf(x);
1719
+ let E = le >= 0 ? b.slice(0, le) : [];
1720
+ p && (E = E.filter((s) => s !== "dark"));
1721
+ const P = oe(g), z = w ? F.replace(/;/g, " !important;") : F, y = "__SUBJECT__";
1722
+ let u = y;
1723
+ const V = [];
1724
+ for (const s of E) s.startsWith("group-") ? (u = `.group:${s.slice(6)} ${u}`, V.push(s)) : s.startsWith("peer-") && (u = u.replace(y, `.peer:${s.slice(5)}~${y}`), V.push(s));
1725
+ E = E.filter((s) => !V.includes(s));
1726
+ const q = [], de = [];
1727
+ let T = null, K = !1;
1728
+ const H = [];
1729
+ for (const s of E) {
1730
+ if (s === "dark" || ne.includes(s) || s.startsWith("@") && (pe.includes(s.slice(1)) || s.match(/^@\[.+\]$/))) continue;
1731
+ if (s.startsWith("data-[") && s.endsWith("]")) {
1732
+ const m = s.slice(6, -1), _ = m.includes("=") ? "[data-" + m.replace(/^([^=]+)=(.+)$/, '$1="$2"') + "]" : "[data-" + m + "]";
1733
+ q.push(_);
1834
1734
  continue;
1835
1735
  }
1836
- if (o.startsWith("has-[") && o.endsWith("]")) {
1837
- const $ = o.slice(5, -1).replace(/_/g, " ");
1838
- R.push(`:has(${$})`);
1736
+ if (s.startsWith("has-[") && s.endsWith("]")) {
1737
+ const m = s.slice(5, -1).replace(/_/g, " ");
1738
+ q.push(`:has(${m})`);
1839
1739
  continue;
1840
1740
  }
1841
- if (o.startsWith("not-[") && o.endsWith("]")) {
1842
- const $ = o.slice(5, -1).replace(/_/g, " ");
1843
- R.push(`:not(${$})`);
1741
+ if (s.startsWith("not-[") && s.endsWith("]")) {
1742
+ const m = s.slice(5, -1).replace(/_/g, " ");
1743
+ q.push(`:not(${m})`);
1844
1744
  continue;
1845
1745
  }
1846
- if (o.startsWith("in-[") && o.endsWith("]")) {
1847
- m = ":is(" + o.slice(4, -1).replace(/_/g, " ") + ") " + m;
1746
+ if (s.startsWith("in-[") && s.endsWith("]")) {
1747
+ u = ":is(" + s.slice(4, -1).replace(/_/g, " ") + ") " + u;
1848
1748
  continue;
1849
1749
  }
1850
- if (o === "starting") {
1851
- X = !0;
1750
+ if (s === "starting") {
1751
+ K = !0;
1852
1752
  continue;
1853
1753
  }
1854
- if (o.startsWith("supports-[") && o.endsWith("]")) {
1855
- Q.push(o);
1754
+ if (s.startsWith("supports-[") && s.endsWith("]")) {
1755
+ H.push(s);
1856
1756
  continue;
1857
1757
  }
1858
- const p = Ee(o);
1859
- if (p) {
1860
- A = p;
1758
+ const l = Ee(s);
1759
+ if (l) {
1760
+ T = l;
1861
1761
  continue;
1862
1762
  }
1863
- const C = u[o];
1864
- if (C) {
1865
- A ? J.push(C) : R.push(C);
1763
+ const O = $[s];
1764
+ if (O) {
1765
+ T ? de.push(O) : q.push(O);
1866
1766
  continue;
1867
1767
  }
1868
- const O = _e[o];
1869
- typeof O == "function" && (m = O(m, Y).split("{")[0]);
1768
+ const R = We[s];
1769
+ typeof R == "function" && (u = R(u, z).split("{")[0]);
1870
1770
  }
1871
- const oe = R.join(""), L = J.join("");
1872
- function ne(o, p) {
1873
- if (!p) return o;
1874
- let C = 0, O = 0;
1875
- if (o.length && (o[0] === ">" || o[0] === "+" || o[0] === "~" || o[0] === " ")) {
1876
- let $ = 1;
1877
- for (; $ < o.length && o[$] === " "; ) $++;
1878
- for (; $ < o.length; $++) {
1879
- const P = o[$];
1880
- if (P === "[" ? C++ : P === "]" && C > 0 ? C-- : P === "(" ? O++ : P === ")" && O > 0 && O--, C === 0 && O === 0 && (o[$] === ">" || o[$] === "+" || o[$] === "~" || o[$] === " "))
1881
- return o.slice(0, $) + p + o.slice($);
1771
+ const G = q.join(""), L = de.join("");
1772
+ function Y(s, l) {
1773
+ if (!l) return s;
1774
+ let O = 0, R = 0;
1775
+ if (s.length && (s[0] === ">" || s[0] === "+" || s[0] === "~" || s[0] === " ")) {
1776
+ let m = 1;
1777
+ for (; m < s.length && s[m] === " "; ) m++;
1778
+ for (; m < s.length; m++) {
1779
+ const _ = s[m];
1780
+ if (_ === "[" ? O++ : _ === "]" && O > 0 ? O-- : _ === "(" ? R++ : _ === ")" && R > 0 && R--, O === 0 && R === 0 && (s[m] === ">" || s[m] === "+" || s[m] === "~" || s[m] === " ")) return s.slice(0, m) + l + s.slice(m);
1882
1781
  }
1883
- return o + p;
1782
+ return s + l;
1884
1783
  }
1885
- for (let $ = 0; $ < o.length; $++) {
1886
- const P = o[$];
1887
- if (P === "[" ? C++ : P === "]" && C > 0 ? C-- : P === "(" ? O++ : P === ")" && O > 0 && O--, C === 0 && O === 0 && (P === ">" || P === "+" || P === "~" || P === " "))
1888
- return o.slice(0, $) + p + o.slice($);
1784
+ for (let m = 0; m < s.length; m++) {
1785
+ const _ = s[m];
1786
+ if (_ === "[" ? O++ : _ === "]" && O > 0 ? O-- : _ === "(" ? R++ : _ === ")" && R > 0 && R--, O === 0 && R === 0 && (_ === ">" || _ === "+" || _ === "~" || _ === " ")) return s.slice(0, m) + l + s.slice(m);
1889
1787
  }
1890
- return o + p;
1788
+ return s + l;
1891
1789
  }
1892
- if (A)
1893
- if (A.includes("&")) {
1894
- const o = A.indexOf("&"), p = A.slice(0, o), C = A.slice(o + 1), O = w + oe;
1895
- if (R.length === 0)
1896
- m = m.replace(
1897
- w,
1898
- p + O + L + C
1899
- );
1900
- else {
1901
- const $ = ne(C, L);
1902
- m = m.replace(
1903
- w,
1904
- p + O + $
1905
- );
1906
- }
1907
- } else
1908
- m = m.replace(
1909
- w,
1910
- `${A}${w + oe}`
1911
- ), L && (m = m.replace(w, `${w}${L}`));
1912
- else
1913
- m = m.replace(
1914
- w,
1915
- w + oe + L
1916
- );
1917
- m = m.replace(new RegExp(w, "g"), ke);
1918
- const ee = "__CE_COLOR_MIX_SPLIT__", pe = Y.includes(ee) ? Y.split(ee).map((o) => `${m}{${o}}`) : [`${m}{${Y}}`], V = T.filter(
1919
- (o) => ie.includes(o)
1920
- ), D = T.filter(
1921
- (o) => o.startsWith("@") && (ue.includes(o.slice(1)) || o.match(/^@\[.+\]$/))
1922
- ), Z = V.length ? V[V.length - 1] : null, v = D.length ? D[D.length - 1] : null, se = T.includes("dark"), K = H.disableVariants ?? [];
1923
- if (K.length > 0 && (K.includes("dark") && se || K.includes("responsive") && V.length > 0 || K.includes("container") && D.length > 0 || K.includes("motion") && T.some((o) => o === "motion-reduce" || o === "motion-safe") || K.includes("print") && T.includes("print")))
1924
- return null;
1925
- let N = "", E = "";
1926
- if (se && Z ? N = `@media (prefers-color-scheme: dark) and ${ce[Z]}` : se ? N = "@media (prefers-color-scheme: dark)" : Z && (N = `@media ${ce[Z]}`), v)
1927
- if (v.startsWith("@[") && v.endsWith("]")) {
1928
- const o = v.slice(2, -1);
1929
- if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(o))
1930
- return null;
1931
- E = `@container (min-width:${o})`;
1932
- } else {
1933
- const o = v.slice(1);
1934
- E = `@container ${Ve[o] || `(min-width:${o})`}`;
1790
+ if (T) if (T.includes("&")) {
1791
+ const s = T.indexOf("&"), l = T.slice(0, s), O = T.slice(s + 1), R = y + G;
1792
+ if (q.length === 0) u = u.replace(y, l + R + L + O);
1793
+ else {
1794
+ const m = Y(O, L);
1795
+ u = u.replace(y, l + R + m);
1935
1796
  }
1936
- let M = "";
1937
- if (Q.length > 0) {
1938
- const p = Q[Q.length - 1].slice(10, -1).replace(/_/g, " ");
1939
- M = `@supports ${p.startsWith("not(") || p.startsWith("selector(") || p.startsWith("(") ? p : `(${p})`}`;
1797
+ } else
1798
+ u = u.replace(y, `${T}${y + G}`), L && (u = u.replace(y, `${y}${L}`));
1799
+ else u = u.replace(y, y + G + L);
1800
+ u = u.replace(new RegExp(y, "g"), P);
1801
+ const te = "__CE_COLOR_MIX_SPLIT__", v = z.includes(te) ? z.split(te).map((s) => `${u}{${s}}`) : [`${u}{${z}}`], Q = E.filter((s) => ne.includes(s)), Z = E.filter((s) => s.startsWith("@") && (pe.includes(s.slice(1)) || s.match(/^@\[.+\]$/))), ee = Q.length ? Q[Q.length - 1] : null, C = Z.length ? Z[Z.length - 1] : null, M = E.includes("dark"), j = U.disableVariants ?? [];
1802
+ if (j.length > 0 && (j.includes("dark") && M || j.includes("responsive") && Q.length > 0 || j.includes("container") && Z.length > 0 || j.includes("motion") && E.some((s) => s === "motion-reduce" || s === "motion-safe") || j.includes("print") && E.includes("print")))
1803
+ return null;
1804
+ let f = "", A = "";
1805
+ if (M && ee ? f = `@media (prefers-color-scheme: dark) and ${ae[ee]}` : M ? f = "@media (prefers-color-scheme: dark)" : ee && (f = `@media ${ae[ee]}`), C) if (C.startsWith("@[") && C.endsWith("]")) {
1806
+ const s = C.slice(2, -1);
1807
+ if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(s)) return null;
1808
+ A = `@container (min-width:${s})`;
1809
+ } else {
1810
+ const s = C.slice(1);
1811
+ A = `@container ${Ve[s] || `(min-width:${s})`}`;
1940
1812
  }
1941
- const _ = (o) => {
1942
- let p = o;
1943
- return X && (p = `@starting-style{${p}}`), M && (p = `${M}{${p}}`), N && E ? `${N}${E}{${p}}` : N ? `${N}{${p}}` : E ? `${E}{${p}}` : p;
1813
+ let B = "";
1814
+ if (H.length > 0) {
1815
+ const s = H[H.length - 1].slice(10, -1).replace(/_/g, " ");
1816
+ B = `@supports ${s.startsWith("not(") || s.startsWith("selector(") || s.startsWith("(") ? s : `(${s})`}`;
1817
+ }
1818
+ const ve = (s) => {
1819
+ let l = s;
1820
+ return K && (l = `@starting-style{${l}}`), B && (l = `${B}{${l}}`), f && A ? `${f}${A}{${l}}` : f ? `${f}{${l}}` : A ? `${A}{${l}}` : l;
1944
1821
  };
1945
- return pe.map(_).join("");
1822
+ return v.map(ve).join("");
1946
1823
  };
1947
- for (const b of c) {
1948
- const x = d(b), S = x.slice(0, -1), j = x[x.length - 1];
1949
- if (er(j) !== null) {
1950
- if (S.length === 0)
1951
- s[0].push(`${ae(b)}{}`);
1824
+ for (const g of t) {
1825
+ const p = h(g), b = p.slice(0, -1), x = p[p.length - 1];
1826
+ if (er(x) !== null) {
1827
+ if (b.length === 0) i[0].push(`${oe(g)}{}`);
1952
1828
  else {
1953
- const w = Te(j);
1954
- if (!w) continue;
1955
- const m = ae(b), F = ae(j);
1956
- let R = w.replace(
1957
- new RegExp(De(F), "g"),
1958
- m
1959
- );
1960
- const J = S.filter(
1961
- (X) => ie.includes(X)
1962
- );
1963
- if (J.length > 0) {
1964
- const X = J[J.length - 1];
1965
- R = `${`@media ${ce[X]}`}{${R}}`;
1966
- }
1967
- S.includes("dark") && (R = `@media (prefers-color-scheme: dark){${R}}`);
1968
- const A = i(S);
1969
- s[A].push(R);
1829
+ const P = Te(x);
1830
+ if (!P) continue;
1831
+ const z = oe(g), y = oe(x);
1832
+ let u = P.replace(new RegExp(Ne(y), "g"), z);
1833
+ const V = b.filter((q) => ne.includes(q));
1834
+ V.length > 0 && (u = `${`@media ${ae[V[V.length - 1]]}`}{${u}}`), b.includes("dark") && (u = `@media (prefers-color-scheme: dark){${u}}`), i[d(b)].push(u);
1970
1835
  }
1971
1836
  continue;
1972
1837
  }
1973
- let z = -1;
1974
- for (let w = x.length - 1; w >= 0; w--) {
1975
- const m = x.slice(w).join(":");
1976
- if (We(m)) {
1977
- z = w;
1978
- break;
1979
- }
1838
+ let w = -1;
1839
+ for (let P = p.length - 1; P >= 0; P--) if (_e(p.slice(P).join(":"))) {
1840
+ w = P;
1841
+ break;
1980
1842
  }
1981
- if (z >= 0) {
1982
- const w = x.slice(z).join(":"), m = x.slice(0, z), F = We(w);
1983
- if (!F) continue;
1984
- if (m.length === 0) {
1985
- s[0].push(F);
1843
+ if (w >= 0) {
1844
+ const P = p.slice(w).join(":"), z = p.slice(0, w), y = _e(P);
1845
+ if (!y) continue;
1846
+ if (z.length === 0) {
1847
+ i[0].push(y);
1986
1848
  continue;
1987
1849
  }
1988
- const R = Se(b), J = Se(w), A = F.replace(
1989
- new RegExp(
1990
- `\\.${J.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`,
1991
- "g"
1992
- ),
1993
- `.${R}`
1994
- ), X = /(.+?)\s+(.+?)\{([^}]+)\}/g, Q = [...A.matchAll(X)];
1995
- if (Q.length === 0) {
1996
- s[0].push(F);
1850
+ const u = ye(g), V = ye(P), q = [...y.replace(new RegExp(`\\.${V.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`, "g"), `.${u}`).matchAll(/(.+?)\s+(.+?)\{([^}]+)\}/g)];
1851
+ if (q.length === 0) {
1852
+ i[0].push(y);
1997
1853
  continue;
1998
1854
  }
1999
- const oe = i(m), L = {
1855
+ const de = d(z), T = {
2000
1856
  hover: ":hover",
2001
1857
  focus: ":focus",
2002
1858
  active: ":active",
@@ -2009,42 +1865,38 @@ function cr(e) {
2009
1865
  even: ":nth-child(even)",
2010
1866
  "focus-within": ":focus-within",
2011
1867
  "focus-visible": ":focus-visible"
2012
- }, ne = [], ee = [], pe = [], V = [], D = [];
2013
- let Z = !1;
2014
- for (const v of m)
2015
- v.startsWith("group-") || v.startsWith("peer-") ? ne.push(v) : v === "dark" || v === "dark-class" ? Z = !0 : ie.includes(v) ? V.push(v) : v.startsWith("@") && (ue.includes(v.slice(1)) || v.match(/^@\[.+\]$/)) ? D.push(v) : v.startsWith("[") && v.endsWith("]") ? pe.push(v) : (L[v] || _e[v]) && ee.push(v);
2016
- for (const v of Q) {
2017
- const [, se, K, N] = v;
2018
- let E = `${se} ${K}`;
2019
- for (const _ of ne)
2020
- if (_.startsWith("group-")) {
2021
- const o = _.slice(6);
2022
- E = `.group${L[o] || `:${o}`} ${E}`;
2023
- } else if (_.startsWith("peer-")) {
2024
- const o = _.slice(5);
2025
- E = `.peer${L[o] || `:${o}`}~${E}`;
2026
- }
2027
- if (ee.length > 0) {
2028
- const _ = ee.map((o) => L[o] || `:${o}`).join("");
2029
- E = `${E}${_}`;
1868
+ }, K = [], H = [], G = [], L = [], Y = [];
1869
+ let te = !1;
1870
+ for (const v of z) v.startsWith("group-") || v.startsWith("peer-") ? K.push(v) : v === "dark" || v === "dark-class" ? te = !0 : ne.includes(v) ? L.push(v) : v.startsWith("@") && (pe.includes(v.slice(1)) || v.match(/^@\[.+\]$/)) ? Y.push(v) : v.startsWith("[") && v.endsWith("]") ? G.push(v) : (T[v] || We[v]) && H.push(v);
1871
+ for (const v of q) {
1872
+ const [, Q, Z, ee] = v;
1873
+ let C = `${Q} ${Z}`;
1874
+ for (const j of K) if (j.startsWith("group-")) {
1875
+ const f = j.slice(6);
1876
+ C = `.group${T[f] || `:${f}`} ${C}`;
1877
+ } else if (j.startsWith("peer-")) {
1878
+ const f = j.slice(5);
1879
+ C = `.peer${T[f] || `:${f}`}~${C}`;
2030
1880
  }
2031
- for (const _ of pe) {
2032
- const o = Ee(_);
2033
- if (o && o.includes("&")) {
2034
- const p = o.indexOf("&"), C = o.slice(0, p), O = o.slice(p + 1);
2035
- E = `${C}${E}${O}`;
1881
+ if (H.length > 0) {
1882
+ const j = H.map((f) => T[f] || `:${f}`).join("");
1883
+ C = `${C}${j}`;
1884
+ }
1885
+ for (const j of G) {
1886
+ const f = Ee(j);
1887
+ if (f && f.includes("&")) {
1888
+ const A = f.indexOf("&"), B = f.slice(0, A), ve = f.slice(A + 1);
1889
+ C = `${B}${C}${ve}`;
2036
1890
  }
2037
1891
  }
2038
- let M = `${E}{${N}}`;
2039
- if (Z && (M = `@media (prefers-color-scheme: dark){${M}}`), D.length > 0) {
2040
- const _ = D[D.length - 1];
2041
- if (_.startsWith("@[") && _.endsWith("]")) {
2042
- const o = _.slice(2, -1);
2043
- /^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(
2044
- o
2045
- ) && (M = `@container (min-width:${o}){${M}}`);
1892
+ let M = `${C}{${ee}}`;
1893
+ if (te && (M = `@media (prefers-color-scheme: dark){${M}}`), Y.length > 0) {
1894
+ const j = Y[Y.length - 1];
1895
+ if (j.startsWith("@[") && j.endsWith("]")) {
1896
+ const f = j.slice(2, -1);
1897
+ /^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(f) && (M = `@container (min-width:${f}){${M}}`);
2046
1898
  } else {
2047
- const o = _.slice(1), C = {
1899
+ const f = j.slice(1), A = {
2048
1900
  xs: "20rem",
2049
1901
  sm: "24rem",
2050
1902
  md: "28rem",
@@ -2056,69 +1908,65 @@ function cr(e) {
2056
1908
  "5xl": "64rem",
2057
1909
  "6xl": "72rem",
2058
1910
  "7xl": "80rem"
2059
- }[o];
2060
- if (C) {
2061
- const O = b.match(/@([^/]+)\//)?.[1] || "";
2062
- M = O ? `@container ${O} (min-width: ${C}){${M}}` : `@container (min-width: ${C}){${M}}`;
1911
+ }[f];
1912
+ if (A) {
1913
+ const B = g.match(/@([^/]+)\//)?.[1] || "";
1914
+ M = B ? `@container ${B} (min-width: ${A}){${M}}` : `@container (min-width: ${A}){${M}}`;
2063
1915
  }
2064
1916
  }
2065
1917
  }
2066
- if (V.length > 0) {
2067
- const _ = V[V.length - 1];
2068
- M = `${`@media ${ce[_]}`}{${M}}`;
2069
- }
2070
- s[oe].push(M);
1918
+ L.length > 0 && (M = `${`@media ${ae[L[L.length - 1]]}`}{${M}}`), i[de].push(M);
2071
1919
  }
2072
1920
  continue;
2073
1921
  }
2074
- const q = x.find((w) => {
2075
- const m = w.replace(/^!/, "").replace(/!$/, "");
2076
- return me[m] || fe(m) || he(m) || $e(m) || be(m) || xe(m) || le(m);
1922
+ const k = p.find((P) => {
1923
+ const z = P.replace(/^!/, "").replace(/!$/, "");
1924
+ return ge[z] || me(z) || fe(z) || xe(z) || he(z) || be(z) || se(z);
2077
1925
  });
2078
- if (!q) continue;
2079
- const te = x.indexOf(q), T = te >= 0 ? x.slice(0, te) : [], ke = i(T), Y = k(b);
2080
- Y && s[ke].push(Y);
1926
+ if (!k) continue;
1927
+ const F = p.indexOf(k), le = d(F >= 0 ? p.slice(0, F) : []), E = c(g);
1928
+ E && i[le].push(E);
2081
1929
  }
2082
- const f = /^(from|via|to)-[a-z]+-?\d{2,3}?$/, n = s.flat().join("");
2083
- for (const b of c)
2084
- if (f.test(b)) {
2085
- if (n.includes(ae(b))) continue;
2086
- const x = k(b);
2087
- x && s[0].push(x);
2088
- }
2089
- const g = (b) => b.sort((x, S) => {
2090
- const j = Re(x), W = Re(S), z = Me(x), q = Me(S);
2091
- return j >= 0 && W >= 0 && j !== W ? j - W : z >= 0 && q >= 0 && z !== q ? z - q : 0;
1930
+ const W = /^(from|via|to)-[a-z]+-?\d{2,3}?$/, X = i.flat().join("");
1931
+ for (const g of t) if (W.test(g)) {
1932
+ if (X.includes(oe(g))) continue;
1933
+ const p = c(g);
1934
+ p && i[0].push(p);
1935
+ }
1936
+ const ce = (g) => g.sort((p, b) => {
1937
+ const x = Me(p), w = Me(b), k = Re(p), F = Re(b);
1938
+ return x >= 0 && w >= 0 && x !== w ? x - w : k >= 0 && F >= 0 && k !== F ? k - F : 0;
2092
1939
  });
2093
- s[2] = g(s[2]), s[4] = g(s[4]);
2094
- const y = s.flat().join("");
2095
- if (U.size >= Ie) {
2096
- let b = Math.floor(Ie / 2);
2097
- for (const x of U.keys()) {
2098
- if (b-- === 0) break;
2099
- U.delete(x);
1940
+ i[2] = ce(i[2]), i[4] = ce(i[4]);
1941
+ const ze = i.flat().join("");
1942
+ if (D.size >= Ie) {
1943
+ let g = Math.floor(Ie / 2);
1944
+ for (const p of D.keys()) {
1945
+ if (g-- === 0) break;
1946
+ D.delete(p);
2100
1947
  }
2101
1948
  }
2102
- return U.set(a, y), y;
1949
+ return D.set(o, ze), ze;
2103
1950
  }
2104
1951
  export {
2105
- Ve as a,
2106
- sr as b,
2107
- qe as c,
2108
- mr as d,
2109
- gr as e,
2110
- Ge as f,
2111
- fr as g,
2112
- or as h,
2113
- pr as i,
2114
- cr as j,
2115
- be as k,
2116
- xe as l,
2117
- ce as m,
2118
- fe as n,
2119
- le as p,
2120
- ur as r,
2121
- _e as s,
2122
- me as u
1952
+ We as _,
1953
+ ar as a,
1954
+ Ye as c,
1955
+ se as d,
1956
+ or as f,
1957
+ ur as g,
1958
+ me as h,
1959
+ gr as i,
1960
+ cr as l,
1961
+ be as m,
1962
+ Ve as n,
1963
+ fr as o,
1964
+ he as p,
1965
+ mr as r,
1966
+ pr as s,
1967
+ qe as t,
1968
+ ae as u,
1969
+ ge as v
2123
1970
  };
2124
- //# sourceMappingURL=style-BmyOIMcU.js.map
1971
+
1972
+ //# sourceMappingURL=style-DuDoj_xK.js.map