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