@jasonshimmy/custom-elements-runtime 1.2.2 → 2.0.0
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.
- package/README.md +157 -83
- package/dist/custom-elements-runtime.cjs.js +6 -146
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.directive-enhancements.cjs.js +2 -0
- package/dist/custom-elements-runtime.directive-enhancements.cjs.js.map +1 -0
- package/dist/custom-elements-runtime.directive-enhancements.es.js +144 -0
- package/dist/custom-elements-runtime.directive-enhancements.es.js.map +1 -0
- package/dist/custom-elements-runtime.directives.cjs.js +2 -0
- package/dist/custom-elements-runtime.directives.cjs.js.map +1 -0
- package/dist/custom-elements-runtime.directives.es.js +49 -0
- package/dist/custom-elements-runtime.directives.es.js.map +1 -0
- package/dist/custom-elements-runtime.es.js +2194 -4424
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.event-bus.cjs.js +2 -0
- package/dist/custom-elements-runtime.event-bus.cjs.js.map +1 -0
- package/dist/custom-elements-runtime.event-bus.es.js +147 -0
- package/dist/custom-elements-runtime.event-bus.es.js.map +1 -0
- package/dist/custom-elements-runtime.router.cjs.js +29 -0
- package/dist/custom-elements-runtime.router.cjs.js.map +1 -0
- package/dist/custom-elements-runtime.router.es.js +305 -0
- package/dist/custom-elements-runtime.router.es.js.map +1 -0
- package/dist/custom-elements-runtime.ssr.cjs.js +2 -0
- package/dist/custom-elements-runtime.ssr.cjs.js.map +1 -0
- package/dist/custom-elements-runtime.ssr.es.js +18 -0
- package/dist/custom-elements-runtime.ssr.es.js.map +1 -0
- package/dist/custom-elements-runtime.store.cjs.js +2 -0
- package/dist/custom-elements-runtime.store.cjs.js.map +1 -0
- package/dist/custom-elements-runtime.store.es.js +25 -0
- package/dist/custom-elements-runtime.store.es.js.map +1 -0
- package/dist/custom-elements-runtime.transitions.cjs.js +2 -0
- package/dist/custom-elements-runtime.transitions.cjs.js.map +1 -0
- package/dist/custom-elements-runtime.transitions.es.js +10 -0
- package/dist/custom-elements-runtime.transitions.es.js.map +1 -0
- package/dist/directive-enhancements.d.ts +6 -6
- package/dist/directives.d.ts +2 -2
- package/dist/event-bus.d.ts +20 -11
- package/dist/helpers-CDfJhmMS.js +609 -0
- package/dist/helpers-CDfJhmMS.js.map +1 -0
- package/dist/helpers-D3UjNfYY.cjs +5 -0
- package/dist/helpers-D3UjNfYY.cjs.map +1 -0
- package/dist/index.d.ts +6 -20
- package/dist/logger-BpibrmKL.js +25 -0
- package/dist/logger-BpibrmKL.js.map +1 -0
- package/dist/logger-CqdBMdui.cjs +2 -0
- package/dist/logger-CqdBMdui.cjs.map +1 -0
- package/dist/router.d.ts +10 -15
- package/dist/runtime/component.d.ts +3 -3
- package/dist/runtime/event-manager.d.ts +3 -3
- package/dist/runtime/helpers.d.ts +4 -4
- package/dist/runtime/hooks.d.ts +3 -3
- package/dist/runtime/lifecycle.d.ts +1 -1
- package/dist/runtime/logger.d.ts +3 -3
- package/dist/runtime/node-metadata.d.ts +11 -2
- package/dist/runtime/props.d.ts +2 -2
- package/dist/runtime/reactive-proxy-cache.d.ts +6 -3
- package/dist/runtime/reactive.d.ts +5 -4
- package/dist/runtime/render.d.ts +4 -4
- package/dist/runtime/secure-expression-evaluator.d.ts +1 -1
- package/dist/runtime/template-compiler.d.ts +10 -10
- package/dist/runtime/transition-group-handler.d.ts +21 -0
- package/dist/runtime/transition-utils.d.ts +43 -3
- package/dist/runtime/types.d.ts +27 -17
- package/dist/runtime/vdom-model-helpers.d.ts +7 -7
- package/dist/runtime/vdom-ssr.d.ts +9 -0
- package/dist/runtime/vdom.d.ts +30 -22
- package/dist/runtime/watchers.d.ts +3 -3
- package/dist/ssr.d.ts +6 -0
- package/dist/store.d.ts +5 -1
- package/dist/transitions-Crm12oGl.cjs +115 -0
- package/dist/transitions-Crm12oGl.cjs.map +1 -0
- package/dist/transitions-D5YybtBE.js +1415 -0
- package/dist/transitions-D5YybtBE.js.map +1 -0
- package/dist/transitions.d.ts +5 -0
- package/package.json +57 -8
- package/dist/custom-elements-runtime.umd.js +0 -153
- package/dist/custom-elements-runtime.umd.js.map +0 -1
|
@@ -0,0 +1,1415 @@
|
|
|
1
|
+
import { anchorBlock as be } from "./custom-elements-runtime.directives.es.js";
|
|
2
|
+
function xe(e, ...r) {
|
|
3
|
+
let o = "";
|
|
4
|
+
for (let i = 0; i < e.length; i++)
|
|
5
|
+
o += e[i], i < r.length && (o += r[i]);
|
|
6
|
+
return o;
|
|
7
|
+
}
|
|
8
|
+
function ve(e) {
|
|
9
|
+
return e.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\s+/g, " ").replace(/\s*([{}:;,>+~])\s*/g, "$1").replace(/;}/g, "}").trim();
|
|
10
|
+
}
|
|
11
|
+
let J = null;
|
|
12
|
+
function We() {
|
|
13
|
+
return J || (J = new CSSStyleSheet(), J.replaceSync(ve(we))), J;
|
|
14
|
+
}
|
|
15
|
+
function _e(e) {
|
|
16
|
+
return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi, "").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi, "").replace(/expression\s*\([^)]*\)/gi, "");
|
|
17
|
+
}
|
|
18
|
+
const we = xe`
|
|
19
|
+
:host,
|
|
20
|
+
*,
|
|
21
|
+
::before,
|
|
22
|
+
::after {
|
|
23
|
+
all: isolate;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
border: 0 solid currentColor;
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
font: inherit;
|
|
29
|
+
vertical-align: baseline;
|
|
30
|
+
background: transparent;
|
|
31
|
+
color: inherit;
|
|
32
|
+
-webkit-tap-highlight-color: transparent;
|
|
33
|
+
}
|
|
34
|
+
:host {
|
|
35
|
+
display: contents;
|
|
36
|
+
font: 16px/1.5 var(--font-sans, ui-sans-serif, system-ui, sans-serif);
|
|
37
|
+
/* Default CE line-height variable so leading-* can reliably override */
|
|
38
|
+
--ce-line-height: 1.5;
|
|
39
|
+
-webkit-text-size-adjust: 100%;
|
|
40
|
+
text-size-adjust: 100%;
|
|
41
|
+
/* Default gradient variables to avoid undefined var() usage in generated utilities */
|
|
42
|
+
--ce-gradient-from-position: 0%;
|
|
43
|
+
--ce-gradient-to-position: 100%;
|
|
44
|
+
--ce-gradient-via-position: 50%;
|
|
45
|
+
--ce-gradient-from: rgba(255, 255, 255, 0);
|
|
46
|
+
--ce-gradient-to: rgba(255, 255, 255, 0);
|
|
47
|
+
--ce-gradient-stops: var(--ce-gradient-from), var(--ce-gradient-to);
|
|
48
|
+
}
|
|
49
|
+
button,
|
|
50
|
+
input,
|
|
51
|
+
select,
|
|
52
|
+
textarea {
|
|
53
|
+
background: transparent;
|
|
54
|
+
outline: none;
|
|
55
|
+
}
|
|
56
|
+
textarea {
|
|
57
|
+
resize: vertical;
|
|
58
|
+
}
|
|
59
|
+
progress {
|
|
60
|
+
vertical-align: baseline;
|
|
61
|
+
}
|
|
62
|
+
button,
|
|
63
|
+
textarea {
|
|
64
|
+
overflow: visible;
|
|
65
|
+
}
|
|
66
|
+
img,
|
|
67
|
+
svg,
|
|
68
|
+
video,
|
|
69
|
+
canvas,
|
|
70
|
+
audio,
|
|
71
|
+
iframe,
|
|
72
|
+
embed,
|
|
73
|
+
object {
|
|
74
|
+
display: block;
|
|
75
|
+
max-width: 100%;
|
|
76
|
+
height: auto;
|
|
77
|
+
}
|
|
78
|
+
svg {
|
|
79
|
+
fill: currentColor;
|
|
80
|
+
stroke: none;
|
|
81
|
+
}
|
|
82
|
+
a {
|
|
83
|
+
text-decoration: inherit;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
button,
|
|
87
|
+
[type='button'],
|
|
88
|
+
[type='reset'],
|
|
89
|
+
[type='submit'] {
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
appearance: button;
|
|
92
|
+
background: none;
|
|
93
|
+
-webkit-user-select: none;
|
|
94
|
+
user-select: none;
|
|
95
|
+
}
|
|
96
|
+
::-webkit-input-placeholder,
|
|
97
|
+
::placeholder {
|
|
98
|
+
color: inherit;
|
|
99
|
+
opacity: 0.5;
|
|
100
|
+
}
|
|
101
|
+
*:focus-visible {
|
|
102
|
+
outline: 2px solid var(--color-primary-500, #3b82f6);
|
|
103
|
+
outline-offset: 2px;
|
|
104
|
+
}
|
|
105
|
+
ol,
|
|
106
|
+
ul {
|
|
107
|
+
list-style: none;
|
|
108
|
+
}
|
|
109
|
+
table {
|
|
110
|
+
border-collapse: collapse;
|
|
111
|
+
}
|
|
112
|
+
sub,
|
|
113
|
+
sup {
|
|
114
|
+
font-size: 0.75em;
|
|
115
|
+
line-height: 0;
|
|
116
|
+
position: relative;
|
|
117
|
+
}
|
|
118
|
+
sub {
|
|
119
|
+
bottom: -0.25em;
|
|
120
|
+
}
|
|
121
|
+
sup {
|
|
122
|
+
top: -0.5em;
|
|
123
|
+
}
|
|
124
|
+
[disabled],
|
|
125
|
+
[aria-disabled='true'] {
|
|
126
|
+
cursor: not-allowed;
|
|
127
|
+
}
|
|
128
|
+
[hidden] {
|
|
129
|
+
display: none;
|
|
130
|
+
}
|
|
131
|
+
`, $e = {
|
|
132
|
+
// Existing semantic colors
|
|
133
|
+
neutral: {
|
|
134
|
+
50: "#fafafa",
|
|
135
|
+
100: "#f4f4f5",
|
|
136
|
+
200: "#e4e4e7",
|
|
137
|
+
300: "#d4d4d8",
|
|
138
|
+
400: "#9f9fa9",
|
|
139
|
+
500: "#71717b",
|
|
140
|
+
600: "#52525c",
|
|
141
|
+
700: "#3f3f46",
|
|
142
|
+
800: "#27272a",
|
|
143
|
+
900: "#18181b",
|
|
144
|
+
950: "#09090b"
|
|
145
|
+
},
|
|
146
|
+
primary: {
|
|
147
|
+
50: "#eff6ff",
|
|
148
|
+
100: "#dbeafe",
|
|
149
|
+
200: "#bfdbfe",
|
|
150
|
+
300: "#93c5fd",
|
|
151
|
+
400: "#60a5fa",
|
|
152
|
+
500: "#3b82f6",
|
|
153
|
+
600: "#2563eb",
|
|
154
|
+
700: "#1d4ed8",
|
|
155
|
+
800: "#1e40af",
|
|
156
|
+
900: "#1e3a8a",
|
|
157
|
+
950: "#172554"
|
|
158
|
+
},
|
|
159
|
+
secondary: {
|
|
160
|
+
50: "#eef2ff",
|
|
161
|
+
100: "#e0e7ff",
|
|
162
|
+
200: "#c7d2fe",
|
|
163
|
+
300: "#a5b4fc",
|
|
164
|
+
400: "#818cf8",
|
|
165
|
+
500: "#6366f1",
|
|
166
|
+
600: "#4f46e5",
|
|
167
|
+
700: "#4338ca",
|
|
168
|
+
800: "#3730a3",
|
|
169
|
+
900: "#312e81",
|
|
170
|
+
950: "#1e1b4b"
|
|
171
|
+
},
|
|
172
|
+
success: {
|
|
173
|
+
50: "#f0fdf4",
|
|
174
|
+
100: "#dcfce7",
|
|
175
|
+
200: "#bbf7d0",
|
|
176
|
+
300: "#86efac",
|
|
177
|
+
400: "#4ade80",
|
|
178
|
+
500: "#22c55e",
|
|
179
|
+
600: "#16a34a",
|
|
180
|
+
700: "#15803d",
|
|
181
|
+
800: "#166534",
|
|
182
|
+
900: "#14532d",
|
|
183
|
+
950: "#052e16"
|
|
184
|
+
},
|
|
185
|
+
info: {
|
|
186
|
+
50: "#f0f9ff",
|
|
187
|
+
100: "#e0f2fe",
|
|
188
|
+
200: "#bae6fd",
|
|
189
|
+
300: "#7dd3fc",
|
|
190
|
+
400: "#38bdf8",
|
|
191
|
+
500: "#0ea5e9",
|
|
192
|
+
600: "#0284c7",
|
|
193
|
+
700: "#0369a1",
|
|
194
|
+
800: "#075985",
|
|
195
|
+
900: "#0c4a6e",
|
|
196
|
+
950: "#082f49"
|
|
197
|
+
},
|
|
198
|
+
warning: {
|
|
199
|
+
50: "#fffbeb",
|
|
200
|
+
100: "#fef3c7",
|
|
201
|
+
200: "#fde68a",
|
|
202
|
+
300: "#fcd34d",
|
|
203
|
+
400: "#fbbf24",
|
|
204
|
+
500: "#f59e0b",
|
|
205
|
+
600: "#d97706",
|
|
206
|
+
700: "#b45309",
|
|
207
|
+
800: "#92400e",
|
|
208
|
+
900: "#78350f",
|
|
209
|
+
950: "#451a03"
|
|
210
|
+
},
|
|
211
|
+
error: {
|
|
212
|
+
50: "#fef2f2",
|
|
213
|
+
100: "#fee2e2",
|
|
214
|
+
200: "#fecaca",
|
|
215
|
+
300: "#fca5a5",
|
|
216
|
+
400: "#f87171",
|
|
217
|
+
500: "#ef4444",
|
|
218
|
+
600: "#dc2626",
|
|
219
|
+
700: "#b91c1c",
|
|
220
|
+
800: "#991b1b",
|
|
221
|
+
900: "#7f1d1d",
|
|
222
|
+
950: "#450a0a"
|
|
223
|
+
},
|
|
224
|
+
// Special colors
|
|
225
|
+
white: { DEFAULT: "#ffffff" },
|
|
226
|
+
black: { DEFAULT: "#000000" },
|
|
227
|
+
transparent: { DEFAULT: "transparent" },
|
|
228
|
+
current: { DEFAULT: "currentColor" }
|
|
229
|
+
}, he = Object.fromEntries(
|
|
230
|
+
Object.entries($e).map(([e, r]) => [
|
|
231
|
+
e,
|
|
232
|
+
Object.fromEntries(
|
|
233
|
+
Object.entries(r).map(([o, i]) => [
|
|
234
|
+
o,
|
|
235
|
+
`var(--color-${e}${o === "DEFAULT" ? "" : `-${o}`}, ${i})`
|
|
236
|
+
])
|
|
237
|
+
)
|
|
238
|
+
])
|
|
239
|
+
), B = "0.25rem", ye = {
|
|
240
|
+
"3xs": 64,
|
|
241
|
+
"2xs": 72,
|
|
242
|
+
xs: 80,
|
|
243
|
+
sm: 96,
|
|
244
|
+
md: 112,
|
|
245
|
+
lg: 128,
|
|
246
|
+
xl: 144,
|
|
247
|
+
"2xl": 168,
|
|
248
|
+
"3xl": 192,
|
|
249
|
+
"4xl": 224,
|
|
250
|
+
"5xl": 256,
|
|
251
|
+
"6xl": 288,
|
|
252
|
+
"7xl": 320
|
|
253
|
+
}, te = {
|
|
254
|
+
m: ["margin"],
|
|
255
|
+
mx: ["margin-inline"],
|
|
256
|
+
my: ["margin-block"],
|
|
257
|
+
mt: ["margin-top"],
|
|
258
|
+
mr: ["margin-right"],
|
|
259
|
+
mb: ["margin-bottom"],
|
|
260
|
+
ml: ["margin-left"],
|
|
261
|
+
p: ["padding"],
|
|
262
|
+
px: ["padding-inline"],
|
|
263
|
+
py: ["padding-block"],
|
|
264
|
+
pt: ["padding-top"],
|
|
265
|
+
pr: ["padding-right"],
|
|
266
|
+
pb: ["padding-bottom"],
|
|
267
|
+
pl: ["padding-left"],
|
|
268
|
+
inset: ["inset"],
|
|
269
|
+
"inset-x": ["inset-inline"],
|
|
270
|
+
"inset-y": ["inset-block"],
|
|
271
|
+
h: ["height"],
|
|
272
|
+
w: ["width"],
|
|
273
|
+
"min-h": ["min-height"],
|
|
274
|
+
"min-w": ["min-width"],
|
|
275
|
+
"max-h": ["max-height"],
|
|
276
|
+
"max-w": ["max-width"],
|
|
277
|
+
top: ["top"],
|
|
278
|
+
bottom: ["bottom"],
|
|
279
|
+
left: ["left"],
|
|
280
|
+
right: ["right"],
|
|
281
|
+
gap: ["gap"],
|
|
282
|
+
"gap-x": ["column-gap"],
|
|
283
|
+
"gap-y": ["row-gap"]
|
|
284
|
+
}, ke = () => {
|
|
285
|
+
const e = {};
|
|
286
|
+
e["@container"] = "container-type:inline-size;", [
|
|
287
|
+
"block",
|
|
288
|
+
"inline",
|
|
289
|
+
"inline-block",
|
|
290
|
+
"flex",
|
|
291
|
+
"inline-flex",
|
|
292
|
+
"grid",
|
|
293
|
+
"inline-grid",
|
|
294
|
+
"table",
|
|
295
|
+
"table-cell",
|
|
296
|
+
"table-row",
|
|
297
|
+
"hidden"
|
|
298
|
+
].forEach((t) => {
|
|
299
|
+
e[t] = t === "hidden" ? "display:none;" : `display:${t};`;
|
|
300
|
+
}), ["absolute", "relative", "fixed", "sticky", "static"].forEach((t) => {
|
|
301
|
+
e[t] = `position:${t};`;
|
|
302
|
+
}), Object.assign(e, {
|
|
303
|
+
"items-center": "align-items:center;",
|
|
304
|
+
"items-start": "align-items:flex-start;",
|
|
305
|
+
"items-end": "align-items:flex-end;",
|
|
306
|
+
"items-baseline": "align-items:baseline;",
|
|
307
|
+
"items-stretch": "align-items:stretch;",
|
|
308
|
+
"justify-center": "justify-content:center;",
|
|
309
|
+
"justify-start": "justify-content:flex-start;",
|
|
310
|
+
"justify-between": "justify-content:space-between;",
|
|
311
|
+
"justify-around": "justify-content:space-around;",
|
|
312
|
+
"justify-evenly": "justify-content:space-evenly;",
|
|
313
|
+
"justify-end": "justify-content:flex-end;",
|
|
314
|
+
"flex-wrap": "flex-wrap:wrap;",
|
|
315
|
+
"flex-nowrap": "flex-wrap:nowrap;",
|
|
316
|
+
"flex-wrap-reverse": "flex-wrap:wrap-reverse;",
|
|
317
|
+
"content-center": "align-content:center;",
|
|
318
|
+
"content-start": "align-content:flex-start;",
|
|
319
|
+
"content-end": "align-content:flex-end;",
|
|
320
|
+
"content-between": "align-content:space-between;",
|
|
321
|
+
"content-around": "align-content:space-around;",
|
|
322
|
+
"content-evenly": "align-content:space-evenly;",
|
|
323
|
+
"content-stretch": "align-content:stretch;",
|
|
324
|
+
"self-auto": "align-self:auto;",
|
|
325
|
+
"self-start": "align-self:flex-start;",
|
|
326
|
+
"self-end": "align-self:flex-end;",
|
|
327
|
+
"self-center": "align-self:center;",
|
|
328
|
+
"self-stretch": "align-self:stretch;",
|
|
329
|
+
"flex-col": "flex-direction:column;",
|
|
330
|
+
"flex-row": "flex-direction:row;",
|
|
331
|
+
"flex-col-reverse": "flex-direction:column-reverse;",
|
|
332
|
+
"flex-row-reverse": "flex-direction:row-reverse;",
|
|
333
|
+
"flex-1": "flex:1 1 0%;",
|
|
334
|
+
"flex-auto": "flex:1 1 auto;",
|
|
335
|
+
"flex-initial": "flex:0 1 auto;",
|
|
336
|
+
"flex-none": "flex:0 0 auto;",
|
|
337
|
+
grow: "flex-grow:1;",
|
|
338
|
+
shrink: "flex-shrink:1;",
|
|
339
|
+
"grow-0": "flex-grow:0;",
|
|
340
|
+
"shrink-0": "flex-shrink:0;"
|
|
341
|
+
});
|
|
342
|
+
for (let t = 1; t <= 12; t++)
|
|
343
|
+
e[`grid-cols-${t}`] = `grid-template-columns:repeat(${t},minmax(0,1fr));`, e[`grid-rows-${t}`] = `grid-template-rows:repeat(${t},minmax(0,1fr));`, e[`col-span-${t}`] = `grid-column:span ${t} / span ${t};`, e[`row-span-${t}`] = `grid-row:span ${t} / span ${t};`, e[`col-start-${t}`] = `grid-column-start:${t};`, e[`col-end-${t}`] = `grid-column-end:${t};`, e[`row-start-${t}`] = `grid-row-start:${t};`, e[`row-end-${t}`] = `grid-row-end:${t};`;
|
|
344
|
+
Object.assign(e, {
|
|
345
|
+
"grid-cols-none": "grid-template-columns:none;",
|
|
346
|
+
"grid-rows-none": "grid-template-rows:none;",
|
|
347
|
+
"col-span-full": "grid-column:1 / -1;",
|
|
348
|
+
"row-span-full": "grid-row:1 / -1;",
|
|
349
|
+
"auto-cols-auto": "grid-auto-columns:auto;",
|
|
350
|
+
"auto-cols-min": "grid-auto-columns:min-content;",
|
|
351
|
+
"auto-cols-max": "grid-auto-columns:max-content;",
|
|
352
|
+
"auto-cols-fr": "grid-auto-columns:1fr;",
|
|
353
|
+
"auto-rows-auto": "grid-auto-rows:auto;",
|
|
354
|
+
"auto-rows-min": "grid-auto-rows:min-content;",
|
|
355
|
+
"auto-rows-max": "grid-auto-rows:max-content;",
|
|
356
|
+
"auto-rows-fr": "grid-auto-rows:1fr;",
|
|
357
|
+
"grid-flow-row": "grid-auto-flow:row;",
|
|
358
|
+
"grid-flow-col": "grid-auto-flow:column;",
|
|
359
|
+
"grid-flow-row-dense": "grid-auto-flow:row dense;",
|
|
360
|
+
"grid-flow-col-dense": "grid-auto-flow:column dense;"
|
|
361
|
+
}), Object.assign(e, {
|
|
362
|
+
"text-left": "text-align:left;",
|
|
363
|
+
"text-center": "text-align:center;",
|
|
364
|
+
"text-right": "text-align:right;",
|
|
365
|
+
"text-justify": "text-align:justify;",
|
|
366
|
+
"font-thin": "font-weight:100;",
|
|
367
|
+
"font-extralight": "font-weight:200;",
|
|
368
|
+
"font-light": "font-weight:300;",
|
|
369
|
+
"font-normal": "font-weight:400;",
|
|
370
|
+
"font-medium": "font-weight:500;",
|
|
371
|
+
"font-semibold": "font-weight:600;",
|
|
372
|
+
"font-bold": "font-weight:700;",
|
|
373
|
+
"font-extrabold": "font-weight:800;",
|
|
374
|
+
"font-black": "font-weight:900;",
|
|
375
|
+
italic: "font-style:italic;",
|
|
376
|
+
"not-italic": "font-style:normal;",
|
|
377
|
+
uppercase: "text-transform:uppercase;",
|
|
378
|
+
lowercase: "text-transform:lowercase;",
|
|
379
|
+
capitalize: "text-transform:capitalize;",
|
|
380
|
+
"normal-case": "text-transform:none;",
|
|
381
|
+
underline: "text-decoration-line:underline;",
|
|
382
|
+
overline: "text-decoration-line:overline;",
|
|
383
|
+
"line-through": "text-decoration-line:line-through;",
|
|
384
|
+
"no-underline": "text-decoration-line:none;",
|
|
385
|
+
truncate: "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",
|
|
386
|
+
"whitespace-normal": "white-space:normal;",
|
|
387
|
+
"whitespace-nowrap": "white-space:nowrap;",
|
|
388
|
+
"whitespace-pre": "white-space:pre;",
|
|
389
|
+
"whitespace-pre-line": "white-space:pre-line;",
|
|
390
|
+
"whitespace-pre-wrap": "white-space:pre-wrap;",
|
|
391
|
+
"break-normal": "overflow-wrap:normal;word-break:normal;",
|
|
392
|
+
"break-words": "overflow-wrap:break-word;",
|
|
393
|
+
"break-all": "word-break:break-all;"
|
|
394
|
+
}), [
|
|
395
|
+
["text-xs", "0.75rem", "1"],
|
|
396
|
+
["text-sm", "0.875rem", "1.25"],
|
|
397
|
+
["text-base", "1rem", "1.5"],
|
|
398
|
+
["text-lg", "1.125rem", "1.75"],
|
|
399
|
+
["text-xl", "1.25rem", "1.75"],
|
|
400
|
+
["text-2xl", "1.5rem", "2"],
|
|
401
|
+
["text-3xl", "1.875rem", "2.25"],
|
|
402
|
+
["text-4xl", "2.25rem", "2.5"],
|
|
403
|
+
["text-5xl", "3rem", "1"],
|
|
404
|
+
["text-6xl", "3.75rem", "1"],
|
|
405
|
+
["text-7xl", "4.5rem", "1"],
|
|
406
|
+
["text-8xl", "6rem", "1"],
|
|
407
|
+
["text-9xl", "8rem", "1"]
|
|
408
|
+
].forEach(([t, a, g]) => {
|
|
409
|
+
e[t] = `font-size:${a};line-height:var(--ce-line-height,${g});`;
|
|
410
|
+
}), [
|
|
411
|
+
["tracking-tighter", "-0.05em"],
|
|
412
|
+
["tracking-tight", "-0.025em"],
|
|
413
|
+
["tracking-normal", "0em"],
|
|
414
|
+
["tracking-wide", "0.025em"],
|
|
415
|
+
["tracking-wider", "0.05em"],
|
|
416
|
+
["tracking-widest", "0.1em"]
|
|
417
|
+
].forEach(([t, a]) => {
|
|
418
|
+
e[t] = `letter-spacing:${a};`;
|
|
419
|
+
}), [
|
|
420
|
+
["leading-3", "0.75rem"],
|
|
421
|
+
["leading-4", "1rem"],
|
|
422
|
+
["leading-5", "1.25rem"],
|
|
423
|
+
["leading-6", "1.5rem"],
|
|
424
|
+
["leading-7", "1.75rem"],
|
|
425
|
+
["leading-8", "2rem"],
|
|
426
|
+
["leading-9", "2.25rem"],
|
|
427
|
+
["leading-10", "2.5rem"],
|
|
428
|
+
["leading-none", "1"],
|
|
429
|
+
["leading-tight", "1.25"],
|
|
430
|
+
["leading-snug", "1.375"],
|
|
431
|
+
["leading-normal", "1.5"],
|
|
432
|
+
["leading-relaxed", "1.625"],
|
|
433
|
+
["leading-loose", "2"]
|
|
434
|
+
].forEach(([t, a]) => {
|
|
435
|
+
e[t] = `line-height:${a};--ce-line-height:${a};line-height:var(--ce-line-height,${a});`;
|
|
436
|
+
});
|
|
437
|
+
const c = [0, 1, 2, 4, 6, 8];
|
|
438
|
+
for (const t of c) {
|
|
439
|
+
const a = `${t}px`;
|
|
440
|
+
e[`border-${t}`] = `border-width:${a};`, e[`border-t-${t}`] = `border-top-width:${a};`, e[`border-r-${t}`] = `border-right-width:${a};`, e[`border-b-${t}`] = `border-bottom-width:${a};`, e[`border-l-${t}`] = `border-left-width:${a};`, e[`border-x-${t}`] = `border-left-width:${a};border-right-width:${a};`, e[`border-y-${t}`] = `border-top-width:${a};border-bottom-width:${a};`;
|
|
441
|
+
}
|
|
442
|
+
Object.assign(e, {
|
|
443
|
+
"font-sans": "font-family:var(--font-sans, ui-sans-serif,system-ui,sans-serif);",
|
|
444
|
+
"font-serif": "font-family:var(--font-serif, ui-serif,Georgia,serif);",
|
|
445
|
+
"font-mono": "font-family:var(--font-mono, ui-monospace,SFMono-Regular,monospace);",
|
|
446
|
+
border: "border-width:1px;",
|
|
447
|
+
"border-t": "border-top-width:1px;",
|
|
448
|
+
"border-r": "border-right-width:1px;",
|
|
449
|
+
"border-b": "border-bottom-width:1px;",
|
|
450
|
+
"border-l": "border-left-width:1px;",
|
|
451
|
+
"border-x": "border-left-width:1px;border-right-width:1px;",
|
|
452
|
+
"border-y": "border-top-width:1px;border-bottom-width:1px;",
|
|
453
|
+
"border-solid": "border-style:solid;",
|
|
454
|
+
"border-dashed": "border-style:dashed;",
|
|
455
|
+
"border-dotted": "border-style:dotted;",
|
|
456
|
+
"border-double": "border-style:double;",
|
|
457
|
+
"border-none": "border-style:none;"
|
|
458
|
+
});
|
|
459
|
+
const u = {
|
|
460
|
+
none: 0,
|
|
461
|
+
xs: 2,
|
|
462
|
+
sm: 4,
|
|
463
|
+
md: 6,
|
|
464
|
+
lg: 8,
|
|
465
|
+
xl: 12,
|
|
466
|
+
"2xl": 16,
|
|
467
|
+
"3xl": 24,
|
|
468
|
+
"4xl": 32,
|
|
469
|
+
full: 9999
|
|
470
|
+
};
|
|
471
|
+
for (const [t, a] of Object.entries(u)) {
|
|
472
|
+
const g = a === 9999 ? "9999px" : `${a / 16}rem`;
|
|
473
|
+
e[`rounded-${t}`] = `border-radius:${g};`, e[`rounded-t-${t}`] = `border-top-left-radius:${g};border-top-right-radius:${g};`, e[`rounded-r-${t}`] = `border-top-right-radius:${g};border-bottom-right-radius:${g};`, e[`rounded-b-${t}`] = `border-bottom-left-radius:${g};border-bottom-right-radius:${g};`, e[`rounded-l-${t}`] = `border-top-left-radius:${g};border-bottom-left-radius:${g};`, e[`rounded-tl-${t}`] = `border-top-left-radius:${g};`, e[`rounded-tr-${t}`] = `border-top-right-radius:${g};`, e[`rounded-br-${t}`] = `border-bottom-right-radius:${g};`, e[`rounded-bl-${t}`] = `border-bottom-left-radius:${g};`;
|
|
474
|
+
}
|
|
475
|
+
Object.assign(e, {
|
|
476
|
+
"shadow-none": "--ce-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--ce-shadow-color, #0000);",
|
|
477
|
+
"shadow-xs": "--ce-shadow-color:rgb(0 0 0 / 0.05);box-shadow:0 1px 2px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.05));",
|
|
478
|
+
"shadow-sm": "--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1));",
|
|
479
|
+
shadow: "--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1));",
|
|
480
|
+
"shadow-md": "--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 4px 6px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 2px 4px -2px var(--ce-shadow-color, rgb(0 0 0 / 0.1));",
|
|
481
|
+
"shadow-lg": "--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 10px 15px -3px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--ce-shadow-color, rgb(0 0 0 / 0.1));",
|
|
482
|
+
"shadow-xl": "--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 20px 25px -5px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 8px 10px -6px var(--ce-shadow-color, rgb(0 0 0 / 0.1));",
|
|
483
|
+
"shadow-2xl": "--ce-shadow-color:rgb(0 0 0 / 0.25);box-shadow:0 25px 50px -12px var(--ce-shadow-color, rgb(0 0 0 / 0.25));",
|
|
484
|
+
"shadow-inner": "box-shadow:inset 0 2px 4px 0 rgb(0 0 0 / 0.05);"
|
|
485
|
+
}), Object.assign(e, {
|
|
486
|
+
rounded: "border-radius:0.25rem;"
|
|
487
|
+
}), Object.assign(e, {
|
|
488
|
+
"overflow-auto": "overflow:auto;",
|
|
489
|
+
"overflow-hidden": "overflow:hidden;",
|
|
490
|
+
"overflow-visible": "overflow:visible;",
|
|
491
|
+
"overflow-scroll": "overflow:scroll;",
|
|
492
|
+
"overflow-x-auto": "overflow-x:auto;",
|
|
493
|
+
"overflow-x-hidden": "overflow-x:hidden;",
|
|
494
|
+
"overflow-x-visible": "overflow-x:visible;",
|
|
495
|
+
"overflow-x-scroll": "overflow-x:scroll;",
|
|
496
|
+
"overflow-y-auto": "overflow-y:auto;",
|
|
497
|
+
"overflow-y-hidden": "overflow-y:hidden;",
|
|
498
|
+
"overflow-y-visible": "overflow-y:visible;",
|
|
499
|
+
"overflow-y-scroll": "overflow-y:scroll;"
|
|
500
|
+
});
|
|
501
|
+
const j = [
|
|
502
|
+
"auto",
|
|
503
|
+
"default",
|
|
504
|
+
"pointer",
|
|
505
|
+
"wait",
|
|
506
|
+
"text",
|
|
507
|
+
"move",
|
|
508
|
+
"help",
|
|
509
|
+
"not-allowed",
|
|
510
|
+
"grab",
|
|
511
|
+
"grabbing"
|
|
512
|
+
];
|
|
513
|
+
for (const t of j) e[`cursor-${t}`] = `cursor:${t};`;
|
|
514
|
+
for (const t of [0, 10, 20, 30, 40, 50]) e[`z-${t}`] = `z-index:${t};`;
|
|
515
|
+
Object.assign(e, {
|
|
516
|
+
"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;",
|
|
517
|
+
"not-sr-only": "position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;",
|
|
518
|
+
"pointer-events-none": "pointer-events:none;",
|
|
519
|
+
"pointer-events-auto": "pointer-events:auto;",
|
|
520
|
+
visible: "visibility:visible;",
|
|
521
|
+
invisible: "visibility:hidden;"
|
|
522
|
+
}), Object.assign(e, {
|
|
523
|
+
"w-full": "width:100%;",
|
|
524
|
+
"w-screen": "width:100dvw;",
|
|
525
|
+
"h-full": "height:100%;",
|
|
526
|
+
"h-screen": "height:100dvh;",
|
|
527
|
+
"max-w-full": "max-width:100%;",
|
|
528
|
+
"max-h-full": "max-height:100%;",
|
|
529
|
+
"max-w-screen": "max-width:100dvw;",
|
|
530
|
+
"max-h-screen": "max-height:100dvh;",
|
|
531
|
+
"min-w-0": "min-width:0;",
|
|
532
|
+
"min-h-0": "min-height:0;",
|
|
533
|
+
"min-w-full": "min-width:100%;",
|
|
534
|
+
"min-h-full": "min-height:100%;",
|
|
535
|
+
"min-w-screen": "min-width:100dvw;",
|
|
536
|
+
"min-h-screen": "min-height:100dvh;",
|
|
537
|
+
"w-auto": "width:auto;",
|
|
538
|
+
"h-auto": "height:auto;",
|
|
539
|
+
"w-fit": "width:fit-content;",
|
|
540
|
+
"h-fit": "height:fit-content;",
|
|
541
|
+
"w-min": "width:min-content;",
|
|
542
|
+
"h-min": "height:min-content;",
|
|
543
|
+
"w-max": "width:max-content;",
|
|
544
|
+
"h-max": "height:max-content;",
|
|
545
|
+
"m-auto": "margin:auto;",
|
|
546
|
+
"mx-auto": "margin-inline:auto;",
|
|
547
|
+
"my-auto": "margin-block:auto;"
|
|
548
|
+
});
|
|
549
|
+
for (const [t, a] of Object.entries(ye))
|
|
550
|
+
e[`max-w-${t}`] = `max-width:calc(${B} * ${a});`, e[`min-w-${t}`] = `min-width:calc(${B} * ${a});`, e[`w-${t}`] = `width:calc(${B} * ${a});`, e[`max-h-${t}`] = `max-height:calc(${B} * ${a});`, e[`min-h-${t}`] = `min-height:calc(${B} * ${a});`, e[`h-${t}`] = `height:calc(${B} * ${a});`;
|
|
551
|
+
Object.assign(e, {
|
|
552
|
+
transition: "transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;",
|
|
553
|
+
"transition-none": "transition-property:none;",
|
|
554
|
+
"transition-all": "transition-property:all;",
|
|
555
|
+
"transition-colors": "transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;",
|
|
556
|
+
"transition-shadow": "transition-property:box-shadow;",
|
|
557
|
+
"transition-opacity": "transition-property:opacity;",
|
|
558
|
+
"transition-transform": "transition-property:transform;",
|
|
559
|
+
"ease-linear": "transition-timing-function:linear;",
|
|
560
|
+
"ease-in": "transition-timing-function:ease-in;",
|
|
561
|
+
"ease-out": "transition-timing-function:ease-out;",
|
|
562
|
+
"ease-in-out": "transition-timing-function:ease-in-out;",
|
|
563
|
+
"duration-75": "transition-duration:75ms;",
|
|
564
|
+
"duration-100": "transition-duration:100ms;",
|
|
565
|
+
"duration-150": "transition-duration:150ms;",
|
|
566
|
+
"duration-200": "transition-duration:200ms;",
|
|
567
|
+
"duration-300": "transition-duration:300ms;",
|
|
568
|
+
"duration-500": "transition-duration:500ms;",
|
|
569
|
+
"duration-700": "transition-duration:700ms;",
|
|
570
|
+
"duration-1000": "transition-duration:1000ms;"
|
|
571
|
+
}), Object.assign(e, {
|
|
572
|
+
"scale-0": "transform:scale(0);",
|
|
573
|
+
"scale-50": "transform:scale(0.5);",
|
|
574
|
+
"scale-75": "transform:scale(0.75);",
|
|
575
|
+
"scale-90": "transform:scale(0.9);",
|
|
576
|
+
"scale-95": "transform:scale(0.95);",
|
|
577
|
+
"scale-100": "transform:scale(1);",
|
|
578
|
+
"scale-105": "transform:scale(1.05);",
|
|
579
|
+
"scale-110": "transform:scale(1.1);",
|
|
580
|
+
"scale-125": "transform:scale(1.25);",
|
|
581
|
+
"scale-150": "transform:scale(1.5);",
|
|
582
|
+
"rotate-0": "transform:rotate(0deg);",
|
|
583
|
+
"rotate-1": "transform:rotate(1deg);",
|
|
584
|
+
"rotate-2": "transform:rotate(2deg);",
|
|
585
|
+
"rotate-3": "transform:rotate(3deg);",
|
|
586
|
+
"rotate-6": "transform:rotate(6deg);",
|
|
587
|
+
"rotate-12": "transform:rotate(12deg);",
|
|
588
|
+
"rotate-45": "transform:rotate(45deg);",
|
|
589
|
+
"rotate-90": "transform:rotate(90deg);",
|
|
590
|
+
"rotate-180": "transform:rotate(180deg);",
|
|
591
|
+
"-rotate-1": "transform:rotate(-1deg);",
|
|
592
|
+
"-rotate-2": "transform:rotate(-2deg);",
|
|
593
|
+
"-rotate-3": "transform:rotate(-3deg);",
|
|
594
|
+
"-rotate-6": "transform:rotate(-6deg);",
|
|
595
|
+
"-rotate-12": "transform:rotate(-12deg);",
|
|
596
|
+
"-rotate-45": "transform:rotate(-45deg);",
|
|
597
|
+
"-rotate-90": "transform:rotate(-90deg);",
|
|
598
|
+
"-rotate-180": "transform:rotate(-180deg);"
|
|
599
|
+
}), Object.assign(e, {
|
|
600
|
+
"aspect-auto": "aspect-ratio:auto;",
|
|
601
|
+
"aspect-square": "aspect-ratio:1 / 1;",
|
|
602
|
+
"aspect-video": "aspect-ratio:16 / 9;"
|
|
603
|
+
}), Object.assign(e, {
|
|
604
|
+
"object-contain": "object-fit:contain;",
|
|
605
|
+
"object-cover": "object-fit:cover;",
|
|
606
|
+
"object-fill": "object-fit:fill;",
|
|
607
|
+
"object-none": "object-fit:none;",
|
|
608
|
+
"object-scale-down": "object-fit:scale-down;",
|
|
609
|
+
"object-bottom": "object-position:bottom;",
|
|
610
|
+
"object-center": "object-position:center;",
|
|
611
|
+
"object-left": "object-position:left;",
|
|
612
|
+
"object-left-bottom": "object-position:left bottom;",
|
|
613
|
+
"object-left-top": "object-position:left top;",
|
|
614
|
+
"object-right": "object-position:right;",
|
|
615
|
+
"object-right-bottom": "object-position:right bottom;",
|
|
616
|
+
"object-right-top": "object-position:right top;",
|
|
617
|
+
"object-top": "object-position:top;"
|
|
618
|
+
});
|
|
619
|
+
for (let t = 1; t <= 6; t++)
|
|
620
|
+
e[`line-clamp-${t}`] = `display:-webkit-box;-webkit-line-clamp:${t};-webkit-box-orient:vertical;overflow:hidden;`;
|
|
621
|
+
e["line-clamp-none"] = "overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none;";
|
|
622
|
+
for (let t = 1; t <= 12; t++)
|
|
623
|
+
e[`order-${t}`] = `order:${t};`;
|
|
624
|
+
e["order-first"] = "order:-9999;", e["order-last"] = "order:9999;", e["order-none"] = "order:0;";
|
|
625
|
+
for (let t = 0; t <= 12; t++)
|
|
626
|
+
t <= 1 || (e[`grow-${t}`] = `flex-grow:${t};`, e[`shrink-${t}`] = `flex-shrink:${t};`);
|
|
627
|
+
return Object.assign(e, {
|
|
628
|
+
// Linear gradients
|
|
629
|
+
"bg-linear-to-t": "background-image:linear-gradient(to top, var(--ce-gradient-stops));",
|
|
630
|
+
"bg-linear-to-tr": "background-image:linear-gradient(to top right, var(--ce-gradient-stops));",
|
|
631
|
+
"bg-linear-to-r": "background-image:linear-gradient(to right, var(--ce-gradient-stops));",
|
|
632
|
+
"bg-linear-to-br": "background-image:linear-gradient(to bottom right, var(--ce-gradient-stops));",
|
|
633
|
+
"bg-linear-to-b": "background-image:linear-gradient(to bottom, var(--ce-gradient-stops));",
|
|
634
|
+
"bg-linear-to-bl": "background-image:linear-gradient(to bottom left, var(--ce-gradient-stops));",
|
|
635
|
+
"bg-linear-to-l": "background-image:linear-gradient(to left, var(--ce-gradient-stops));",
|
|
636
|
+
"bg-linear-to-tl": "background-image:linear-gradient(to top left, var(--ce-gradient-stops));",
|
|
637
|
+
// Radial gradients
|
|
638
|
+
"bg-radial": "background-image:radial-gradient(ellipse at center, var(--ce-gradient-stops));",
|
|
639
|
+
"bg-radial-at-t": "background-image:radial-gradient(ellipse at top, var(--ce-gradient-stops));",
|
|
640
|
+
"bg-radial-at-tr": "background-image:radial-gradient(ellipse at top right, var(--ce-gradient-stops));",
|
|
641
|
+
"bg-radial-at-r": "background-image:radial-gradient(ellipse at right, var(--ce-gradient-stops));",
|
|
642
|
+
"bg-radial-at-br": "background-image:radial-gradient(ellipse at bottom right, var(--ce-gradient-stops));",
|
|
643
|
+
"bg-radial-at-b": "background-image:radial-gradient(ellipse at bottom, var(--ce-gradient-stops));",
|
|
644
|
+
"bg-radial-at-bl": "background-image:radial-gradient(ellipse at bottom left, var(--ce-gradient-stops));",
|
|
645
|
+
"bg-radial-at-l": "background-image:radial-gradient(ellipse at left, var(--ce-gradient-stops));",
|
|
646
|
+
"bg-radial-at-tl": "background-image:radial-gradient(ellipse at top left, var(--ce-gradient-stops));",
|
|
647
|
+
"bg-radial-circle": "background-image:radial-gradient(circle at center, var(--ce-gradient-stops));",
|
|
648
|
+
"bg-radial-circle-at-t": "background-image:radial-gradient(circle at top, var(--ce-gradient-stops));",
|
|
649
|
+
"bg-radial-circle-at-tr": "background-image:radial-gradient(circle at top right, var(--ce-gradient-stops));",
|
|
650
|
+
"bg-radial-circle-at-r": "background-image:radial-gradient(circle at right, var(--ce-gradient-stops));",
|
|
651
|
+
"bg-radial-circle-at-br": "background-image:radial-gradient(circle at bottom right, var(--ce-gradient-stops));",
|
|
652
|
+
"bg-radial-circle-at-b": "background-image:radial-gradient(circle at bottom, var(--ce-gradient-stops));",
|
|
653
|
+
"bg-radial-circle-at-bl": "background-image:radial-gradient(circle at bottom left, var(--ce-gradient-stops));",
|
|
654
|
+
"bg-radial-circle-at-l": "background-image:radial-gradient(circle at left, var(--ce-gradient-stops));",
|
|
655
|
+
"bg-radial-circle-at-tl": "background-image:radial-gradient(circle at top left, var(--ce-gradient-stops));",
|
|
656
|
+
// Conic gradients
|
|
657
|
+
"bg-conic": "background-image:conic-gradient(from 0deg at center, var(--ce-gradient-stops));",
|
|
658
|
+
"bg-conic-at-t": "background-image:conic-gradient(from 0deg at top, var(--ce-gradient-stops));",
|
|
659
|
+
"bg-conic-at-tr": "background-image:conic-gradient(from 0deg at top right, var(--ce-gradient-stops));",
|
|
660
|
+
"bg-conic-at-r": "background-image:conic-gradient(from 0deg at right, var(--ce-gradient-stops));",
|
|
661
|
+
"bg-conic-at-br": "background-image:conic-gradient(from 0deg at bottom right, var(--ce-gradient-stops));",
|
|
662
|
+
"bg-conic-at-b": "background-image:conic-gradient(from 0deg at bottom, var(--ce-gradient-stops));",
|
|
663
|
+
"bg-conic-at-bl": "background-image:conic-gradient(from 0deg at bottom left, var(--ce-gradient-stops));",
|
|
664
|
+
"bg-conic-at-l": "background-image:conic-gradient(from 0deg at left, var(--ce-gradient-stops));",
|
|
665
|
+
"bg-conic-at-tl": "background-image:conic-gradient(from 0deg at top left, var(--ce-gradient-stops));"
|
|
666
|
+
}), e;
|
|
667
|
+
}, re = ke();
|
|
668
|
+
function L(e, r) {
|
|
669
|
+
let o = 0;
|
|
670
|
+
for (let i = 0; i < e.length; i++) {
|
|
671
|
+
const s = e[i];
|
|
672
|
+
if (s === "[" || s === "(") o++;
|
|
673
|
+
else if ((s === "]" || s === ")") && o > 0) o--;
|
|
674
|
+
else if (o === 0 && (s === ">" || s === "+" || s === "~" || s === " "))
|
|
675
|
+
return e.slice(0, i) + r + e.slice(i);
|
|
676
|
+
}
|
|
677
|
+
return e + r;
|
|
678
|
+
}
|
|
679
|
+
const je = {
|
|
680
|
+
before: (e, r) => `${e}::before{${r}}`,
|
|
681
|
+
after: (e, r) => `${e}::after{${r}}`,
|
|
682
|
+
hover: (e, r) => `${L(e, ":hover")}{${r}}`,
|
|
683
|
+
focus: (e, r) => `${L(e, ":focus")}{${r}}`,
|
|
684
|
+
active: (e, r) => `${L(e, ":active")}{${r}}`,
|
|
685
|
+
disabled: (e, r) => `${L(e, ":disabled")}{${r}}`,
|
|
686
|
+
visited: (e, r) => `${L(e, ":visited")}{${r}}`,
|
|
687
|
+
checked: (e, r) => `${L(e, ":checked")}{${r}}`,
|
|
688
|
+
first: (e, r) => `${L(e, ":first-child")}{${r}}`,
|
|
689
|
+
last: (e, r) => `${L(e, ":last-child")}{${r}}`,
|
|
690
|
+
odd: (e, r) => `${L(e, ":nth-child(odd)")}{${r}}`,
|
|
691
|
+
even: (e, r) => `${L(e, ":nth-child(even)")}{${r}}`,
|
|
692
|
+
"focus-within": (e, r) => `${L(e, ":focus-within")}{${r}}`,
|
|
693
|
+
"focus-visible": (e, r) => `${L(e, ":focus-visible")}{${r}}`,
|
|
694
|
+
"group-hover": (e, r) => `.group:hover ${e}{${r}}`,
|
|
695
|
+
"group-focus": (e, r) => `.group:focus ${e}{${r}}`,
|
|
696
|
+
"group-active": (e, r) => `.group:active ${e}{${r}}`,
|
|
697
|
+
"group-disabled": (e, r) => `.group:disabled ${e}{${r}}`,
|
|
698
|
+
"peer-hover": (e, r) => `.peer:hover ~ ${e}{${r}}`,
|
|
699
|
+
"peer-focus": (e, r) => `.peer:focus ~ ${e}{${r}}`,
|
|
700
|
+
"peer-checked": (e, r) => `.peer:checked ~ ${e}{${r}}`,
|
|
701
|
+
"peer-disabled": (e, r) => `.peer:disabled ~ ${e}{${r}}`
|
|
702
|
+
}, oe = {
|
|
703
|
+
sm: "(min-width:640px)",
|
|
704
|
+
md: "(min-width:768px)",
|
|
705
|
+
lg: "(min-width:1024px)",
|
|
706
|
+
xl: "(min-width:1280px)",
|
|
707
|
+
"2xl": "(min-width:1536px)",
|
|
708
|
+
dark: "(prefers-color-scheme: dark)"
|
|
709
|
+
}, ge = {
|
|
710
|
+
xs: "(min-width:20rem)",
|
|
711
|
+
sm: "(min-width:24rem)",
|
|
712
|
+
md: "(min-width:28rem)",
|
|
713
|
+
lg: "(min-width:32rem)",
|
|
714
|
+
xl: "(min-width:36rem)",
|
|
715
|
+
"2xl": "(min-width:42rem)",
|
|
716
|
+
"3xl": "(min-width:48rem)",
|
|
717
|
+
"4xl": "(min-width:56rem)",
|
|
718
|
+
"5xl": "(min-width:64rem)",
|
|
719
|
+
"6xl": "(min-width:72rem)",
|
|
720
|
+
"7xl": "(min-width:80rem)"
|
|
721
|
+
}, ie = ["sm", "md", "lg", "xl", "2xl"], ne = [
|
|
722
|
+
"xs",
|
|
723
|
+
"sm",
|
|
724
|
+
"md",
|
|
725
|
+
"lg",
|
|
726
|
+
"xl",
|
|
727
|
+
"2xl",
|
|
728
|
+
"3xl",
|
|
729
|
+
"4xl",
|
|
730
|
+
"5xl",
|
|
731
|
+
"6xl",
|
|
732
|
+
"7xl"
|
|
733
|
+
];
|
|
734
|
+
function ae(e) {
|
|
735
|
+
const r = e.startsWith("-"), o = r ? e.slice(1) : e, i = o.lastIndexOf("-");
|
|
736
|
+
if (i === -1) return null;
|
|
737
|
+
const s = o.slice(0, i), c = o.slice(i + 1);
|
|
738
|
+
if (!te[s]) return null;
|
|
739
|
+
if (c.includes("/")) {
|
|
740
|
+
const [t, a] = c.split("/").map((T) => parseFloat(T));
|
|
741
|
+
if (Number.isNaN(t) || Number.isNaN(a) || a === 0)
|
|
742
|
+
return null;
|
|
743
|
+
const g = t / a * 100;
|
|
744
|
+
return te[s].map((T) => `${T}:${g}%;`).join("");
|
|
745
|
+
}
|
|
746
|
+
const u = parseFloat(c);
|
|
747
|
+
if (Number.isNaN(u)) return null;
|
|
748
|
+
const j = r ? "-" : "";
|
|
749
|
+
return te[s].map((t) => `${t}:calc(${j}${B} * ${u});`).join("");
|
|
750
|
+
}
|
|
751
|
+
function se(e) {
|
|
752
|
+
const r = e.startsWith("-"), i = (r ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
|
|
753
|
+
if (!i) return null;
|
|
754
|
+
const [, s, c] = i, u = s === "x";
|
|
755
|
+
if (c === "reverse")
|
|
756
|
+
return u ? "--ce-space-x-reverse:1;" : "--ce-space-y-reverse:1;";
|
|
757
|
+
if (c.includes("/")) {
|
|
758
|
+
const [g, T] = c.split("/").map((z) => parseFloat(z));
|
|
759
|
+
if (Number.isNaN(g) || Number.isNaN(T) || T === 0)
|
|
760
|
+
return null;
|
|
761
|
+
const A = g / T * 100, S = r ? "-" : "";
|
|
762
|
+
return u ? `--ce-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${S}${A}% * calc(1 - var(--ce-space-x-reverse)));margin-inline-end:calc(${S}${A}% * var(--ce-space-x-reverse));}` : `--ce-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${S}${A}% * calc(1 - var(--ce-space-y-reverse)));margin-bottom:calc(${S}${A}% * var(--ce-space-y-reverse));}`;
|
|
763
|
+
}
|
|
764
|
+
const j = parseFloat(c);
|
|
765
|
+
if (Number.isNaN(j)) return null;
|
|
766
|
+
const a = `calc(${r ? "-" : ""}${B} * ${j})`;
|
|
767
|
+
return u ? `--ce-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${a} * calc(1 - var(--ce-space-x-reverse)));margin-inline-end:calc(${a} * var(--ce-space-x-reverse));}` : `--ce-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${a} * calc(1 - var(--ce-space-y-reverse)));margin-bottom:calc(${a} * var(--ce-space-y-reverse));}`;
|
|
768
|
+
}
|
|
769
|
+
function ue(e) {
|
|
770
|
+
const r = e.replace("#", ""), o = parseInt(r, 16);
|
|
771
|
+
return `${o >> 16 & 255} ${o >> 8 & 255} ${o & 255}`;
|
|
772
|
+
}
|
|
773
|
+
const Te = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, Ae = {
|
|
774
|
+
bg: "background-color",
|
|
775
|
+
decoration: "text-decoration-color",
|
|
776
|
+
text: "color",
|
|
777
|
+
border: "border-color",
|
|
778
|
+
outline: "outline-color",
|
|
779
|
+
caret: "caret-color",
|
|
780
|
+
accent: "accent-color",
|
|
781
|
+
fill: "fill",
|
|
782
|
+
stroke: "stroke"
|
|
783
|
+
};
|
|
784
|
+
function Se(e) {
|
|
785
|
+
const r = Te.exec(e);
|
|
786
|
+
if (!r) return null;
|
|
787
|
+
const [, o, i, s = "DEFAULT"] = r, c = he[i]?.[s];
|
|
788
|
+
if (!c) return null;
|
|
789
|
+
if (o === "shadow") return `--ce-shadow-color:${c};`;
|
|
790
|
+
const u = Ae[o];
|
|
791
|
+
return u ? `${u}:${c};` : null;
|
|
792
|
+
}
|
|
793
|
+
function Fe(e) {
|
|
794
|
+
const r = e.indexOf("/");
|
|
795
|
+
if (r === -1) return { base: e };
|
|
796
|
+
const o = e.slice(0, r), i = e.slice(r + 1), s = parseInt(i, 10);
|
|
797
|
+
return isNaN(s) || s < 0 || s > 100 ? { base: o } : { base: o, opacity: s / 100 };
|
|
798
|
+
}
|
|
799
|
+
function ce(e) {
|
|
800
|
+
const { base: r, opacity: o } = Fe(e), i = Se(r);
|
|
801
|
+
if (i && o !== void 0) {
|
|
802
|
+
const c = /#([0-9a-f]{6})/i.exec(i);
|
|
803
|
+
if (c) {
|
|
804
|
+
const u = ue(c[0]);
|
|
805
|
+
return i.replace(/#([0-9a-f]{6})/i, `rgb(${u} / ${o})`);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
if (i) return i;
|
|
809
|
+
const s = Q(r);
|
|
810
|
+
if (s && o !== void 0) {
|
|
811
|
+
const c = /#([0-9a-f]{6})/i.exec(s);
|
|
812
|
+
if (c) {
|
|
813
|
+
const u = ue(c[0]);
|
|
814
|
+
return s.replace(
|
|
815
|
+
/#([0-9a-f]{6})/i,
|
|
816
|
+
`rgb(${u} / ${o})`
|
|
817
|
+
);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
return s;
|
|
821
|
+
}
|
|
822
|
+
function le(e) {
|
|
823
|
+
const r = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
|
|
824
|
+
if (!r) return null;
|
|
825
|
+
const [, o, i, s = "DEFAULT"] = r, c = he[i]?.[s];
|
|
826
|
+
if (!c) return null;
|
|
827
|
+
switch (o) {
|
|
828
|
+
case "from":
|
|
829
|
+
return `--ce-gradient-from:${c} var(--ce-gradient-from-position);--ce-gradient-to:rgb(255 255 255 / 0) var(--ce-gradient-to-position);--ce-gradient-stops:var(--ce-gradient-from), var(--ce-gradient-to);`;
|
|
830
|
+
case "to":
|
|
831
|
+
return `--ce-gradient-to:${c} var(--ce-gradient-to-position);`;
|
|
832
|
+
case "via":
|
|
833
|
+
return `--ce-gradient-to:rgb(255 255 255 / 0) var(--ce-gradient-to-position);--ce-gradient-stops:var(--ce-gradient-from), ${c} var(--ce-gradient-via-position), var(--ce-gradient-to);`;
|
|
834
|
+
default:
|
|
835
|
+
return null;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
function de(e) {
|
|
839
|
+
const r = /^opacity-(\d{1,3})$/.exec(e);
|
|
840
|
+
if (!r) return null;
|
|
841
|
+
const o = parseInt(r[1], 10);
|
|
842
|
+
return o < 0 || o > 100 ? null : `opacity:${o / 100};`;
|
|
843
|
+
}
|
|
844
|
+
function Q(e) {
|
|
845
|
+
if (e.startsWith("[") && e.endsWith("]") && !e.includes("-[")) {
|
|
846
|
+
const u = e.slice(1, -1).trim(), j = u.indexOf(":");
|
|
847
|
+
if (j === -1) return null;
|
|
848
|
+
const t = u.slice(0, j).trim();
|
|
849
|
+
let a = u.slice(j + 1).trim();
|
|
850
|
+
return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(t) ? (a = a.replace(/_/g, " "), a = a.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), a = a.replace(/^'([^']*)'$/g, '"$1"'), `${t}:${a};`) : null;
|
|
851
|
+
}
|
|
852
|
+
const r = e.indexOf("-[");
|
|
853
|
+
if (r <= 0 || !e.endsWith("]")) return null;
|
|
854
|
+
const o = e.slice(0, r), i = e.slice(r + 2, -1).replace(/_/g, " "), s = {
|
|
855
|
+
bg: "background-color",
|
|
856
|
+
shadow: "box-shadow",
|
|
857
|
+
p: "padding",
|
|
858
|
+
px: "padding-inline",
|
|
859
|
+
py: "padding-block",
|
|
860
|
+
m: "margin",
|
|
861
|
+
mx: "margin-inline",
|
|
862
|
+
my: "margin-block",
|
|
863
|
+
w: "width",
|
|
864
|
+
h: "height",
|
|
865
|
+
"min-w": "min-width",
|
|
866
|
+
"max-w": "max-width",
|
|
867
|
+
"min-h": "min-height",
|
|
868
|
+
"max-h": "max-height",
|
|
869
|
+
"border-t": "border-top-width",
|
|
870
|
+
"border-b": "border-bottom-width",
|
|
871
|
+
"border-l": "border-left-width",
|
|
872
|
+
"border-r": "border-right-width",
|
|
873
|
+
"border-x": "border-inline-width",
|
|
874
|
+
"border-y": "border-block-width",
|
|
875
|
+
"grid-cols": "grid-template-columns",
|
|
876
|
+
"grid-rows": "grid-template-rows",
|
|
877
|
+
transition: "transition-property",
|
|
878
|
+
ease: "transition-timing-function",
|
|
879
|
+
delay: "transition-delay",
|
|
880
|
+
duration: "transition-duration",
|
|
881
|
+
list: "list-style",
|
|
882
|
+
break: "word-break",
|
|
883
|
+
flex: "flex-direction",
|
|
884
|
+
items: "align-items",
|
|
885
|
+
justify: "justify-content",
|
|
886
|
+
content: "align-content",
|
|
887
|
+
self: "align-self",
|
|
888
|
+
basis: "flex-basis",
|
|
889
|
+
tracking: "letter-spacing",
|
|
890
|
+
leading: "line-height",
|
|
891
|
+
z: "z-index",
|
|
892
|
+
opacity: "opacity"
|
|
893
|
+
};
|
|
894
|
+
if (o === "text")
|
|
895
|
+
return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(i) ? `font-size:${i};` : `color:${i};`;
|
|
896
|
+
if (o === "rotate") return `transform:rotate(${i});`;
|
|
897
|
+
if (o === "scale") return `transform:scale(${i});`;
|
|
898
|
+
if (o === "translate-x") return `transform:translateX(${i});`;
|
|
899
|
+
if (o === "translate-y") return `transform:translateY(${i});`;
|
|
900
|
+
const c = s[o] ?? o.replace(/_/g, "-");
|
|
901
|
+
return c && i ? `${c}:${i};` : null;
|
|
902
|
+
}
|
|
903
|
+
function Ce(e) {
|
|
904
|
+
if (e.startsWith("[") && e.endsWith("]")) {
|
|
905
|
+
const o = e.slice(1, -1);
|
|
906
|
+
return o.includes("&") ? o : e;
|
|
907
|
+
}
|
|
908
|
+
const r = e.indexOf("-[");
|
|
909
|
+
if (r > 0 && e.endsWith("]")) {
|
|
910
|
+
const o = e.slice(r + 2, -1).replace(/_/g, "-");
|
|
911
|
+
return o.includes("&") ? o : e.replace(/_/g, "-");
|
|
912
|
+
}
|
|
913
|
+
return null;
|
|
914
|
+
}
|
|
915
|
+
function pe(e) {
|
|
916
|
+
return e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g, "\\$1");
|
|
917
|
+
}
|
|
918
|
+
function Oe(e) {
|
|
919
|
+
const r = /class\s*=\s*(['"])([\s\S]*?)\1/g, o = [];
|
|
920
|
+
let i;
|
|
921
|
+
for (; i = r.exec(e); ) {
|
|
922
|
+
const s = i[2].split(/\s+/).filter(Boolean);
|
|
923
|
+
s.length && o.push(...s);
|
|
924
|
+
}
|
|
925
|
+
return o;
|
|
926
|
+
}
|
|
927
|
+
const K = /* @__PURE__ */ new Map(), Ee = 16, me = 1e3;
|
|
928
|
+
function ze(e) {
|
|
929
|
+
const r = Date.now(), o = K.get(e);
|
|
930
|
+
if (o && r - o.timestamp < Ee)
|
|
931
|
+
return o.css;
|
|
932
|
+
const i = Oe(e);
|
|
933
|
+
if (!i.length) return "";
|
|
934
|
+
const s = new Set(i), c = [[], [], [], []], u = {}, j = (f, p = !1) => {
|
|
935
|
+
const d = p ? `dark|${f}` : f;
|
|
936
|
+
if (d in u) return u[d];
|
|
937
|
+
const m = T(f, p);
|
|
938
|
+
return u[d] = m, m;
|
|
939
|
+
}, t = (f) => {
|
|
940
|
+
const p = f.some((w) => ie.includes(w)), d = f.some(
|
|
941
|
+
(w) => w.startsWith("@") && (ne.includes(w.slice(1)) || w.match(/^@\[.+\]$/))
|
|
942
|
+
), m = f.includes("dark");
|
|
943
|
+
return f.length ? !p && !m && !d ? 1 : m && (p || d) ? 3 : 2 : 0;
|
|
944
|
+
}, a = (f) => {
|
|
945
|
+
const p = [];
|
|
946
|
+
let d = "", m = 0;
|
|
947
|
+
for (let w = 0; w < f.length; w++) {
|
|
948
|
+
const b = f[w];
|
|
949
|
+
b === "[" || b === "(" ? m++ : (b === "]" || b === ")") && m--, b === ":" && m === 0 ? (p.push(d), d = "") : d += b;
|
|
950
|
+
}
|
|
951
|
+
return d && p.push(d), p;
|
|
952
|
+
}, g = {
|
|
953
|
+
hover: ":hover",
|
|
954
|
+
focus: ":focus",
|
|
955
|
+
active: ":active",
|
|
956
|
+
visited: ":visited",
|
|
957
|
+
disabled: ":disabled",
|
|
958
|
+
checked: ":checked",
|
|
959
|
+
first: ":first-child",
|
|
960
|
+
last: ":last-child",
|
|
961
|
+
odd: ":nth-child(odd)",
|
|
962
|
+
even: ":nth-child(even)",
|
|
963
|
+
"focus-within": ":focus-within",
|
|
964
|
+
"focus-visible": ":focus-visible"
|
|
965
|
+
}, T = (f, p = !1) => {
|
|
966
|
+
const d = a(f);
|
|
967
|
+
let m = "", w = !1;
|
|
968
|
+
for (const n of d) {
|
|
969
|
+
let v = n;
|
|
970
|
+
if (v.startsWith("!") && (w = !0, v = v.slice(1)), re[v] || ae(v) || se(v) || de(v) || ce(v) || le(v) || Q(v)) {
|
|
971
|
+
m = n;
|
|
972
|
+
break;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
if (!m) return null;
|
|
976
|
+
const b = m.replace(/^!/, ""), C = re[b] ?? ae(b) ?? se(b) ?? de(b) ?? ce(b) ?? le(b) ?? Q(b);
|
|
977
|
+
if (!C) return null;
|
|
978
|
+
const k = d.indexOf(m);
|
|
979
|
+
let h = k >= 0 ? d.slice(0, k) : [];
|
|
980
|
+
p && (h = h.filter((n) => n !== "dark"));
|
|
981
|
+
const P = `.${pe(f)}`, W = w ? C.replace(/;/g, " !important;") : C, x = "__SUBJECT__";
|
|
982
|
+
let l = x;
|
|
983
|
+
const _ = [];
|
|
984
|
+
for (const n of h)
|
|
985
|
+
n.startsWith("group-") ? (l = `.group:${n.slice(6)} ${l}`, _.push(n)) : n.startsWith("peer-") && (l = l.replace(
|
|
986
|
+
x,
|
|
987
|
+
`.peer:${n.slice(5)}~${x}`
|
|
988
|
+
), _.push(n));
|
|
989
|
+
h = h.filter((n) => !_.includes(n));
|
|
990
|
+
const D = [], V = [];
|
|
991
|
+
let y = null;
|
|
992
|
+
for (const n of h) {
|
|
993
|
+
if (n === "dark" || ie.includes(n) || n.startsWith("@") && (ne.includes(n.slice(1)) || n.match(/^@\[.+\]$/)))
|
|
994
|
+
continue;
|
|
995
|
+
const v = Ce(n);
|
|
996
|
+
if (v) {
|
|
997
|
+
y = v;
|
|
998
|
+
continue;
|
|
999
|
+
}
|
|
1000
|
+
const F = g[n];
|
|
1001
|
+
if (F) {
|
|
1002
|
+
y ? V.push(F) : D.push(F);
|
|
1003
|
+
continue;
|
|
1004
|
+
}
|
|
1005
|
+
const O = je[n];
|
|
1006
|
+
typeof O == "function" && (l = O(l, W).split("{")[0]);
|
|
1007
|
+
}
|
|
1008
|
+
const I = D.join(""), R = V.join("");
|
|
1009
|
+
function X(n, v) {
|
|
1010
|
+
if (!v) return n;
|
|
1011
|
+
let F = 0, O = 0;
|
|
1012
|
+
if (n.length && (n[0] === ">" || n[0] === "+" || n[0] === "~" || n[0] === " ")) {
|
|
1013
|
+
let $ = 1;
|
|
1014
|
+
for (; $ < n.length && n[$] === " "; ) $++;
|
|
1015
|
+
for (; $ < n.length; $++) {
|
|
1016
|
+
const E = n[$];
|
|
1017
|
+
if (E === "[" ? F++ : E === "]" && F > 0 ? F-- : E === "(" ? O++ : E === ")" && O > 0 && O--, F === 0 && O === 0 && (n[$] === ">" || n[$] === "+" || n[$] === "~" || n[$] === " "))
|
|
1018
|
+
return n.slice(0, $) + v + n.slice($);
|
|
1019
|
+
}
|
|
1020
|
+
return n + v;
|
|
1021
|
+
}
|
|
1022
|
+
for (let $ = 0; $ < n.length; $++) {
|
|
1023
|
+
const E = n[$];
|
|
1024
|
+
if (E === "[" ? F++ : E === "]" && F > 0 ? F-- : E === "(" ? O++ : E === ")" && O > 0 && O--, F === 0 && O === 0 && (E === ">" || E === "+" || E === "~" || E === " "))
|
|
1025
|
+
return n.slice(0, $) + v + n.slice($);
|
|
1026
|
+
}
|
|
1027
|
+
return n + v;
|
|
1028
|
+
}
|
|
1029
|
+
if (y)
|
|
1030
|
+
if (y.includes("&")) {
|
|
1031
|
+
const n = y.indexOf("&"), v = y.slice(0, n), F = y.slice(n + 1), O = x + I;
|
|
1032
|
+
if (D.length === 0)
|
|
1033
|
+
l = l.replace(
|
|
1034
|
+
x,
|
|
1035
|
+
v + O + R + F
|
|
1036
|
+
);
|
|
1037
|
+
else {
|
|
1038
|
+
const $ = X(F, R);
|
|
1039
|
+
l = l.replace(
|
|
1040
|
+
x,
|
|
1041
|
+
v + O + $
|
|
1042
|
+
);
|
|
1043
|
+
}
|
|
1044
|
+
} else
|
|
1045
|
+
l = l.replace(
|
|
1046
|
+
x,
|
|
1047
|
+
`${y}${x + I}`
|
|
1048
|
+
), R && (l = l.replace(x, `${x}${R}`));
|
|
1049
|
+
else
|
|
1050
|
+
l = l.replace(
|
|
1051
|
+
x,
|
|
1052
|
+
x + I + R
|
|
1053
|
+
);
|
|
1054
|
+
l = l.replace(new RegExp(x, "g"), P);
|
|
1055
|
+
let U = `${l}{${W}}`;
|
|
1056
|
+
const Y = h.filter(
|
|
1057
|
+
(n) => ie.includes(n)
|
|
1058
|
+
), ee = h.filter(
|
|
1059
|
+
(n) => n.startsWith("@") && (ne.includes(n.slice(1)) || n.match(/^@\[.+\]$/))
|
|
1060
|
+
), G = Y.length ? Y[Y.length - 1] : null, H = ee.length ? ee[ee.length - 1] : null, fe = h.includes("dark");
|
|
1061
|
+
let M = "", N = "";
|
|
1062
|
+
if (fe && G ? M = `@media (prefers-color-scheme: dark) and ${oe[G]}` : fe ? M = "@media (prefers-color-scheme: dark)" : G && (M = `@media ${oe[G]}`), H)
|
|
1063
|
+
if (H.startsWith("@[") && H.endsWith("]")) {
|
|
1064
|
+
const n = H.slice(2, -1);
|
|
1065
|
+
if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(n))
|
|
1066
|
+
return null;
|
|
1067
|
+
N = `@container (min-width:${n})`;
|
|
1068
|
+
} else {
|
|
1069
|
+
const n = H.slice(1);
|
|
1070
|
+
N = `@container ${ge[n] || `(min-width:${n})`}`;
|
|
1071
|
+
}
|
|
1072
|
+
return M && N ? U = `${M}${N}{${U}}` : M ? U = `${M}{${U}}` : N && (U = `${N}{${U}}`), U;
|
|
1073
|
+
};
|
|
1074
|
+
for (const f of s) {
|
|
1075
|
+
const p = a(f), d = p.find(
|
|
1076
|
+
(k) => re[k.replace(/^!/, "")] || ae(k.replace(/^!/, "")) || se(k.replace(/^!/, "")) || de(k.replace(/^!/, "")) || ce(k.replace(/^!/, "")) || le(k.replace(/^!/, "")) || Q(k.replace(/^!/, ""))
|
|
1077
|
+
);
|
|
1078
|
+
if (!d) continue;
|
|
1079
|
+
const m = p.indexOf(d), w = m >= 0 ? p.slice(0, m) : [], b = t(w), C = j(f);
|
|
1080
|
+
C && c[b].push(C);
|
|
1081
|
+
}
|
|
1082
|
+
const A = /^(from|via|to)-[a-z]+-?\d{2,3}?$/;
|
|
1083
|
+
for (const f of s)
|
|
1084
|
+
if (A.test(f)) {
|
|
1085
|
+
if (c.flat().join("").includes(`.${pe(f)}`)) continue;
|
|
1086
|
+
const d = j(f);
|
|
1087
|
+
d && c[0].push(d);
|
|
1088
|
+
}
|
|
1089
|
+
const S = (f) => f.sort((p, d) => {
|
|
1090
|
+
const m = (P) => {
|
|
1091
|
+
const W = {
|
|
1092
|
+
sm: 640,
|
|
1093
|
+
md: 768,
|
|
1094
|
+
lg: 1024,
|
|
1095
|
+
xl: 1280,
|
|
1096
|
+
"2xl": 1536
|
|
1097
|
+
};
|
|
1098
|
+
for (const [x, l] of Object.entries(W))
|
|
1099
|
+
if (P.includes(`@media ${oe[x]}`)) return l;
|
|
1100
|
+
return -1;
|
|
1101
|
+
}, w = (P) => {
|
|
1102
|
+
const W = {
|
|
1103
|
+
xs: 320,
|
|
1104
|
+
// 20rem
|
|
1105
|
+
sm: 384,
|
|
1106
|
+
// 24rem
|
|
1107
|
+
md: 448,
|
|
1108
|
+
// 28rem
|
|
1109
|
+
lg: 512,
|
|
1110
|
+
// 32rem
|
|
1111
|
+
xl: 576,
|
|
1112
|
+
// 36rem
|
|
1113
|
+
"2xl": 672,
|
|
1114
|
+
// 42rem
|
|
1115
|
+
"3xl": 768,
|
|
1116
|
+
// 48rem
|
|
1117
|
+
"4xl": 896,
|
|
1118
|
+
// 56rem
|
|
1119
|
+
"5xl": 1024,
|
|
1120
|
+
// 64rem
|
|
1121
|
+
"6xl": 1152,
|
|
1122
|
+
// 72rem
|
|
1123
|
+
"7xl": 1280
|
|
1124
|
+
// 80rem
|
|
1125
|
+
};
|
|
1126
|
+
for (const [x, l] of Object.entries(W))
|
|
1127
|
+
if (P.includes(`@container ${ge[x]}`)) return l;
|
|
1128
|
+
if (P.includes("@container (min-width:")) {
|
|
1129
|
+
const x = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(P);
|
|
1130
|
+
if (x) {
|
|
1131
|
+
const l = parseFloat(x[1]), _ = x[2];
|
|
1132
|
+
return _ === "rem" || _ === "em" ? l * 16 : l;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
return -1;
|
|
1136
|
+
}, b = m(p), C = m(d), k = w(p), h = w(d);
|
|
1137
|
+
return b >= 0 && C >= 0 && b !== C ? b - C : k >= 0 && h >= 0 && k !== h ? k - h : 0;
|
|
1138
|
+
});
|
|
1139
|
+
c[2] = S(c[2]), c[3] = S(c[3]);
|
|
1140
|
+
const z = c.flat().join("");
|
|
1141
|
+
return K.size >= me && Array.from(K.keys()).slice(
|
|
1142
|
+
0,
|
|
1143
|
+
Math.floor(me / 2)
|
|
1144
|
+
).forEach((p) => K.delete(p)), K.set(e, { css: z, timestamp: r }), z;
|
|
1145
|
+
}
|
|
1146
|
+
const q = {
|
|
1147
|
+
/** Simple fade in/out */
|
|
1148
|
+
fade: {
|
|
1149
|
+
enterFrom: "opacity-0",
|
|
1150
|
+
enterActive: "transition-opacity duration-300 ease-out",
|
|
1151
|
+
enterTo: "opacity-100",
|
|
1152
|
+
leaveFrom: "opacity-100",
|
|
1153
|
+
leaveActive: "transition-opacity duration-200 ease-in",
|
|
1154
|
+
leaveTo: "opacity-0"
|
|
1155
|
+
},
|
|
1156
|
+
/** Slide in from right */
|
|
1157
|
+
"slide-right": {
|
|
1158
|
+
enterFrom: "translate-x-[100%] opacity-0",
|
|
1159
|
+
enterActive: "transition-all duration-300 ease-out",
|
|
1160
|
+
enterTo: "translate-x-[0%] opacity-100",
|
|
1161
|
+
leaveFrom: "translate-x-[0%] opacity-100",
|
|
1162
|
+
leaveActive: "transition-all duration-200 ease-in",
|
|
1163
|
+
leaveTo: "translate-x-[100%] opacity-0"
|
|
1164
|
+
},
|
|
1165
|
+
/** Slide in from left */
|
|
1166
|
+
"slide-left": {
|
|
1167
|
+
enterFrom: "translate-x-[-100%] opacity-0",
|
|
1168
|
+
enterActive: "transition-all duration-300 ease-out",
|
|
1169
|
+
enterTo: "translate-x-[0%] opacity-100",
|
|
1170
|
+
leaveFrom: "translate-x-[0%] opacity-100",
|
|
1171
|
+
leaveActive: "transition-all duration-200 ease-in",
|
|
1172
|
+
leaveTo: "translate-x-[-100%] opacity-0"
|
|
1173
|
+
},
|
|
1174
|
+
/** Slide up from bottom */
|
|
1175
|
+
"slide-up": {
|
|
1176
|
+
enterFrom: "translate-y-[100%] opacity-0",
|
|
1177
|
+
enterActive: "transition-all duration-300 ease-out",
|
|
1178
|
+
enterTo: "translate-y-[0%] opacity-100",
|
|
1179
|
+
leaveFrom: "translate-y-[0%] opacity-100",
|
|
1180
|
+
leaveActive: "transition-all duration-200 ease-in",
|
|
1181
|
+
leaveTo: "translate-y-[100%] opacity-0"
|
|
1182
|
+
},
|
|
1183
|
+
/** Slide down from top */
|
|
1184
|
+
"slide-down": {
|
|
1185
|
+
enterFrom: "translate-y-[-100%] opacity-0",
|
|
1186
|
+
enterActive: "transition-all duration-300 ease-out",
|
|
1187
|
+
enterTo: "translate-y-[0%] opacity-100",
|
|
1188
|
+
leaveFrom: "translate-y-[0%] opacity-100",
|
|
1189
|
+
leaveActive: "transition-all duration-200 ease-in",
|
|
1190
|
+
leaveTo: "translate-y-[-100%] opacity-0"
|
|
1191
|
+
},
|
|
1192
|
+
/** Scale up from center */
|
|
1193
|
+
scale: {
|
|
1194
|
+
enterFrom: "scale-95 opacity-0",
|
|
1195
|
+
enterActive: "transition-all duration-200 ease-out",
|
|
1196
|
+
enterTo: "scale-100 opacity-100",
|
|
1197
|
+
leaveFrom: "scale-100 opacity-100",
|
|
1198
|
+
leaveActive: "transition-all duration-150 ease-in",
|
|
1199
|
+
leaveTo: "scale-95 opacity-0"
|
|
1200
|
+
},
|
|
1201
|
+
/** Scale down to center */
|
|
1202
|
+
"scale-down": {
|
|
1203
|
+
enterFrom: "scale-105 opacity-0",
|
|
1204
|
+
enterActive: "transition-all duration-200 ease-out",
|
|
1205
|
+
enterTo: "scale-100 opacity-100",
|
|
1206
|
+
leaveFrom: "scale-100 opacity-100",
|
|
1207
|
+
leaveActive: "transition-all duration-150 ease-in",
|
|
1208
|
+
leaveTo: "scale-105 opacity-0"
|
|
1209
|
+
},
|
|
1210
|
+
/** Bounce effect */
|
|
1211
|
+
bounce: {
|
|
1212
|
+
enterFrom: "scale-0 opacity-0",
|
|
1213
|
+
enterActive: "transition-all duration-500 ease-out",
|
|
1214
|
+
enterTo: "scale-100 opacity-100",
|
|
1215
|
+
leaveFrom: "scale-100 opacity-100",
|
|
1216
|
+
leaveActive: "transition-all duration-200 ease-in",
|
|
1217
|
+
leaveTo: "scale-0 opacity-0"
|
|
1218
|
+
},
|
|
1219
|
+
/** Zoom and fade */
|
|
1220
|
+
zoom: {
|
|
1221
|
+
enterFrom: "scale-0 opacity-0",
|
|
1222
|
+
enterActive: "transition-all duration-300 ease-out",
|
|
1223
|
+
enterTo: "scale-100 opacity-100",
|
|
1224
|
+
leaveFrom: "scale-100 opacity-100",
|
|
1225
|
+
leaveActive: "transition-all duration-200 ease-in",
|
|
1226
|
+
leaveTo: "scale-0 opacity-0"
|
|
1227
|
+
},
|
|
1228
|
+
/** Flip in */
|
|
1229
|
+
flip: {
|
|
1230
|
+
enterFrom: "rotate-[90deg] opacity-0",
|
|
1231
|
+
enterActive: "transition-all duration-400 ease-out",
|
|
1232
|
+
enterTo: "rotate-[0deg] opacity-100",
|
|
1233
|
+
leaveFrom: "rotate-[0deg] opacity-100",
|
|
1234
|
+
leaveActive: "transition-all duration-300 ease-in",
|
|
1235
|
+
leaveTo: "rotate-[90deg] opacity-0"
|
|
1236
|
+
}
|
|
1237
|
+
};
|
|
1238
|
+
function De(e, r) {
|
|
1239
|
+
const {
|
|
1240
|
+
preset: o,
|
|
1241
|
+
show: i,
|
|
1242
|
+
mode: s = "default",
|
|
1243
|
+
duration: c,
|
|
1244
|
+
appear: u = !1,
|
|
1245
|
+
css: j = !0,
|
|
1246
|
+
name: t,
|
|
1247
|
+
enterFrom: a,
|
|
1248
|
+
enterActive: g,
|
|
1249
|
+
enterTo: T,
|
|
1250
|
+
leaveFrom: A,
|
|
1251
|
+
leaveActive: S,
|
|
1252
|
+
leaveTo: z,
|
|
1253
|
+
onBeforeEnter: f,
|
|
1254
|
+
onEnter: p,
|
|
1255
|
+
onAfterEnter: d,
|
|
1256
|
+
onEnterCancelled: m,
|
|
1257
|
+
onBeforeLeave: w,
|
|
1258
|
+
onLeave: b,
|
|
1259
|
+
onAfterLeave: C,
|
|
1260
|
+
onLeaveCancelled: k
|
|
1261
|
+
} = e;
|
|
1262
|
+
let h;
|
|
1263
|
+
o && q[o] ? (h = { ...q[o] }, a && (h.enterFrom = a), g && (h.enterActive = g), T && (h.enterTo = T), A && (h.leaveFrom = A), S && (h.leaveActive = S), z && (h.leaveTo = z)) : h = {
|
|
1264
|
+
enterFrom: a,
|
|
1265
|
+
enterActive: g,
|
|
1266
|
+
enterTo: T,
|
|
1267
|
+
leaveFrom: A,
|
|
1268
|
+
leaveActive: S,
|
|
1269
|
+
leaveTo: z
|
|
1270
|
+
};
|
|
1271
|
+
const P = t || (o ? `transition-${o}` : "transition"), W = be(i ? r : [], P);
|
|
1272
|
+
return W._transition = {
|
|
1273
|
+
name: P,
|
|
1274
|
+
classes: h,
|
|
1275
|
+
mode: s,
|
|
1276
|
+
duration: c,
|
|
1277
|
+
appear: u,
|
|
1278
|
+
css: j,
|
|
1279
|
+
state: i ? "visible" : "hidden",
|
|
1280
|
+
hooks: {
|
|
1281
|
+
onBeforeEnter: f,
|
|
1282
|
+
onEnter: p,
|
|
1283
|
+
onAfterEnter: d,
|
|
1284
|
+
onEnterCancelled: m,
|
|
1285
|
+
onBeforeLeave: w,
|
|
1286
|
+
onLeave: b,
|
|
1287
|
+
onAfterLeave: C,
|
|
1288
|
+
onLeaveCancelled: k
|
|
1289
|
+
}
|
|
1290
|
+
}, W;
|
|
1291
|
+
}
|
|
1292
|
+
function Be(e, r) {
|
|
1293
|
+
const {
|
|
1294
|
+
tag: o = "div",
|
|
1295
|
+
moveClass: i = "transition-transform duration-300",
|
|
1296
|
+
preset: s,
|
|
1297
|
+
show: c = !0,
|
|
1298
|
+
mode: u = "default",
|
|
1299
|
+
duration: j,
|
|
1300
|
+
appear: t = !1,
|
|
1301
|
+
css: a = !0,
|
|
1302
|
+
name: g,
|
|
1303
|
+
class: T,
|
|
1304
|
+
style: A,
|
|
1305
|
+
enterFrom: S,
|
|
1306
|
+
enterActive: z,
|
|
1307
|
+
enterTo: f,
|
|
1308
|
+
leaveFrom: p,
|
|
1309
|
+
leaveActive: d,
|
|
1310
|
+
leaveTo: m,
|
|
1311
|
+
onBeforeEnter: w,
|
|
1312
|
+
onEnter: b,
|
|
1313
|
+
onAfterEnter: C,
|
|
1314
|
+
onEnterCancelled: k,
|
|
1315
|
+
onBeforeLeave: h,
|
|
1316
|
+
onLeave: P,
|
|
1317
|
+
onAfterLeave: W,
|
|
1318
|
+
onLeaveCancelled: x
|
|
1319
|
+
} = e;
|
|
1320
|
+
let l;
|
|
1321
|
+
s && q[s] ? (l = { ...q[s] }, S && (l.enterFrom = S), z && (l.enterActive = z), f && (l.enterTo = f), p && (l.leaveFrom = p), d && (l.leaveActive = d), m && (l.leaveTo = m)) : l = {
|
|
1322
|
+
enterFrom: S,
|
|
1323
|
+
enterActive: z,
|
|
1324
|
+
enterTo: f,
|
|
1325
|
+
leaveFrom: p,
|
|
1326
|
+
leaveActive: d,
|
|
1327
|
+
leaveTo: m
|
|
1328
|
+
};
|
|
1329
|
+
const _ = g || (s ? `transition-group-${s}` : "transition-group"), D = [];
|
|
1330
|
+
for (const y of c ? r : [])
|
|
1331
|
+
if (y && typeof y == "object" && y.tag === "#anchor") {
|
|
1332
|
+
const I = Array.isArray(y.children) ? y.children : [];
|
|
1333
|
+
for (const R of I)
|
|
1334
|
+
if (R && typeof R == "object") {
|
|
1335
|
+
const X = {
|
|
1336
|
+
...R,
|
|
1337
|
+
key: y.key || R.key,
|
|
1338
|
+
props: {
|
|
1339
|
+
...R.props,
|
|
1340
|
+
_anchorKey: y.key
|
|
1341
|
+
// Preserve original anchor key
|
|
1342
|
+
}
|
|
1343
|
+
};
|
|
1344
|
+
D.push(X);
|
|
1345
|
+
} else
|
|
1346
|
+
D.push(R);
|
|
1347
|
+
} else
|
|
1348
|
+
D.push(y);
|
|
1349
|
+
const V = (() => {
|
|
1350
|
+
if (A)
|
|
1351
|
+
return typeof A == "string" ? A : Object.entries(A).map(([y, I]) => `${y}: ${I}`).join("; ");
|
|
1352
|
+
})();
|
|
1353
|
+
return {
|
|
1354
|
+
tag: o,
|
|
1355
|
+
children: D,
|
|
1356
|
+
key: _,
|
|
1357
|
+
props: {
|
|
1358
|
+
attrs: {
|
|
1359
|
+
...T ? { class: T } : {},
|
|
1360
|
+
...V ? { style: V } : {}
|
|
1361
|
+
},
|
|
1362
|
+
_transitionGroup: {
|
|
1363
|
+
name: _,
|
|
1364
|
+
classes: l,
|
|
1365
|
+
moveClass: i,
|
|
1366
|
+
mode: u,
|
|
1367
|
+
duration: j,
|
|
1368
|
+
appear: t,
|
|
1369
|
+
css: a,
|
|
1370
|
+
hooks: {
|
|
1371
|
+
onBeforeEnter: w,
|
|
1372
|
+
onEnter: b,
|
|
1373
|
+
onAfterEnter: C,
|
|
1374
|
+
onEnterCancelled: k,
|
|
1375
|
+
onBeforeLeave: h,
|
|
1376
|
+
onLeave: P,
|
|
1377
|
+
onAfterLeave: W,
|
|
1378
|
+
onLeaveCancelled: x
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
};
|
|
1383
|
+
}
|
|
1384
|
+
function Ie(e) {
|
|
1385
|
+
return { ...e };
|
|
1386
|
+
}
|
|
1387
|
+
let Z = null;
|
|
1388
|
+
function Pe() {
|
|
1389
|
+
if (!Z) {
|
|
1390
|
+
const e = [];
|
|
1391
|
+
Object.values(q).forEach((i) => {
|
|
1392
|
+
i.enterFrom && e.push(i.enterFrom), i.enterActive && e.push(i.enterActive), i.enterTo && e.push(i.enterTo), i.leaveFrom && e.push(i.leaveFrom), i.leaveActive && e.push(i.leaveActive), i.leaveTo && e.push(i.leaveTo);
|
|
1393
|
+
});
|
|
1394
|
+
const r = `<div class="${e.join(" ")}"></div>`, o = ze(r);
|
|
1395
|
+
Z = new CSSStyleSheet(), Z.replaceSync(o);
|
|
1396
|
+
}
|
|
1397
|
+
return Z;
|
|
1398
|
+
}
|
|
1399
|
+
function Re() {
|
|
1400
|
+
Pe();
|
|
1401
|
+
}
|
|
1402
|
+
Re();
|
|
1403
|
+
export {
|
|
1404
|
+
De as T,
|
|
1405
|
+
Pe as a,
|
|
1406
|
+
Be as b,
|
|
1407
|
+
xe as c,
|
|
1408
|
+
Ie as d,
|
|
1409
|
+
We as g,
|
|
1410
|
+
ze as j,
|
|
1411
|
+
ve as m,
|
|
1412
|
+
_e as s,
|
|
1413
|
+
q as t
|
|
1414
|
+
};
|
|
1415
|
+
//# sourceMappingURL=transitions-D5YybtBE.js.map
|