@jasonshimmy/custom-elements-runtime 2.2.4 → 2.2.6

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.
@@ -1,1606 +0,0 @@
1
- import { anchorBlock as ye } from "./custom-elements-runtime.directives.es.js";
2
- const $e = `/*
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
- ${$e}
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
- }, oe = {
838
- sm: "(min-width:640px)",
839
- md: "(min-width:768px)",
840
- lg: "(min-width:1024px)",
841
- xl: "(min-width:1280px)",
842
- "2xl": "(min-width:1536px)",
843
- dark: "(prefers-color-scheme: dark)"
844
- }, me = {
845
- xs: "(min-width:20rem)",
846
- sm: "(min-width:24rem)",
847
- md: "(min-width:28rem)",
848
- lg: "(min-width:32rem)",
849
- xl: "(min-width:36rem)",
850
- "2xl": "(min-width:42rem)",
851
- "3xl": "(min-width:48rem)",
852
- "4xl": "(min-width:56rem)",
853
- "5xl": "(min-width:64rem)",
854
- "6xl": "(min-width:72rem)",
855
- "7xl": "(min-width:80rem)"
856
- }, ne = ["sm", "md", "lg", "xl", "2xl"], ie = [
857
- "xs",
858
- "sm",
859
- "md",
860
- "lg",
861
- "xl",
862
- "2xl",
863
- "3xl",
864
- "4xl",
865
- "5xl",
866
- "6xl",
867
- "7xl"
868
- ];
869
- function ae(e) {
870
- const r = e.startsWith("-"), o = r ? e.slice(1) : e, n = o.lastIndexOf("-");
871
- if (n === -1) return null;
872
- const c = o.slice(0, n), s = o.slice(n + 1);
873
- if (!te[c]) return null;
874
- if (s.includes("/")) {
875
- const [t, a] = s.split("/").map(($) => parseFloat($));
876
- if (Number.isNaN(t) || Number.isNaN(a) || a === 0)
877
- return null;
878
- const d = t / a * 100;
879
- return te[c].map(($) => `${$}:${d}%;`).join("");
880
- }
881
- const u = parseFloat(s);
882
- if (Number.isNaN(u)) return null;
883
- const m = r ? "-" : "";
884
- return te[c].map((t) => `${t}:calc(${m}${I} * ${u});`).join("");
885
- }
886
- function ce(e) {
887
- const r = e.startsWith("-"), n = (r ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
888
- if (!n) return null;
889
- const [, c, s] = n, u = c === "x";
890
- if (s === "reverse")
891
- return u ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
892
- if (s.includes("/")) {
893
- const [d, $] = s.split("/").map((A) => parseFloat(A));
894
- if (Number.isNaN(d) || Number.isNaN($) || $ === 0)
895
- return null;
896
- const v = d / $ * 100, C = r ? "-" : "";
897
- 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));}`;
898
- }
899
- const m = parseFloat(s);
900
- if (Number.isNaN(m)) return null;
901
- const a = `calc(${r ? "-" : ""}${I} * ${m})`;
902
- 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));}`;
903
- }
904
- function J(e) {
905
- let r = e.replace("#", "");
906
- r.length === 3 && (r = r.split("").map((n) => n + n).join(""));
907
- const o = parseInt(r, 16);
908
- return `${o >> 16 & 255} ${o >> 8 & 255} ${o & 255}`;
909
- }
910
- const Ae = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, Fe = {
911
- bg: "background-color",
912
- decoration: "text-decoration-color",
913
- text: "color",
914
- border: "border-color",
915
- outline: "outline-color",
916
- caret: "caret-color",
917
- accent: "accent-color",
918
- fill: "fill",
919
- stroke: "stroke"
920
- };
921
- function Oe(e) {
922
- const r = Ae.exec(e);
923
- if (!r) return null;
924
- const [, o, n, c = "DEFAULT"] = r, s = xe[n]?.[c];
925
- if (!s) return null;
926
- if (o === "shadow") return `--cer-shadow-color:${s};`;
927
- const u = Fe[o];
928
- return u ? `${u}:${s};` : null;
929
- }
930
- function Ee(e) {
931
- const r = e.indexOf("/");
932
- if (r === -1) return { base: e };
933
- const o = e.slice(0, r), n = e.slice(r + 1), c = parseInt(n, 10);
934
- return isNaN(c) || c < 0 || c > 100 ? { base: o } : { base: o, opacity: c / 100 };
935
- }
936
- function se(e) {
937
- const { base: r, opacity: o } = Ee(e), n = Oe(r);
938
- if (n) {
939
- if (o !== void 0) {
940
- if (n.includes("var(")) {
941
- const u = /var\([^)]*\)/.exec(n);
942
- if (u) {
943
- 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), $ = /^([a-z-]+):/.exec(n), v = $ ? $[1] : "background-color";
944
- if (d) {
945
- const A = `rgb(${J(d[0])} / ${o})`, f = m.replace(
946
- /#([0-9a-f]{6}|[0-9a-f]{3})/i,
947
- A
948
- );
949
- return `${v}:${f};__CE_COLOR_MIX_SPLIT__${v}:${a};`;
950
- }
951
- return `${v}:${a};`;
952
- }
953
- }
954
- const s = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(n);
955
- if (s) {
956
- const u = J(s[0]);
957
- return n.replace(
958
- /#([0-9a-f]{6}|[0-9a-f]{3})/i,
959
- `rgb(${u} / ${o})`
960
- );
961
- }
962
- }
963
- return n;
964
- }
965
- const c = Z(r);
966
- if (c && o !== void 0) {
967
- if (c.includes("var(")) {
968
- const u = /var\([^)]*\)/.exec(c);
969
- if (u) {
970
- 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), $ = /^([a-z-]+):/.exec(c), v = $ ? $[1] : null;
971
- if (d && v) {
972
- const A = `rgb(${J(d[0])} / ${o})`, f = m.replace(
973
- /#([0-9a-f]{6}|[0-9a-f]{3})/i,
974
- A
975
- );
976
- return `${v}:${f};__CE_COLOR_MIX_SPLIT__${v}:${a};`;
977
- }
978
- return c.replace(m, a);
979
- }
980
- }
981
- const s = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(c);
982
- if (s) {
983
- const u = J(s[0]);
984
- return c.replace(
985
- /#([0-9a-f]{6}|[0-9a-f]{3})/i,
986
- `rgb(${u} / ${o})`
987
- );
988
- }
989
- }
990
- return c;
991
- }
992
- function le(e) {
993
- const r = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
994
- if (!r) return null;
995
- const [, o, n, c = "DEFAULT"] = r, s = xe[n]?.[c];
996
- if (!s) return null;
997
- switch (o) {
998
- case "from":
999
- 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);`;
1000
- case "to":
1001
- return `--cer-gradient-to:${s} var(--cer-gradient-to-position);`;
1002
- case "via":
1003
- 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);`;
1004
- default:
1005
- return null;
1006
- }
1007
- }
1008
- function de(e) {
1009
- const r = /^opacity-(\d{1,3})$/.exec(e);
1010
- if (!r) return null;
1011
- const o = parseInt(r[1], 10);
1012
- return o < 0 || o > 100 ? null : `opacity:${o / 100};`;
1013
- }
1014
- function Z(e) {
1015
- if (e.startsWith("[") && e.endsWith("]") && !e.includes("-[")) {
1016
- const u = e.slice(1, -1).trim(), m = u.indexOf(":");
1017
- if (m === -1) return null;
1018
- const t = u.slice(0, m).trim();
1019
- let a = u.slice(m + 1).trim();
1020
- 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;
1021
- }
1022
- const r = e.indexOf("-[");
1023
- if (r <= 0 || !e.endsWith("]")) return null;
1024
- const o = e.slice(0, r), n = e.slice(r + 2, -1).replace(/_/g, " "), c = {
1025
- bg: "background-color",
1026
- shadow: "box-shadow",
1027
- p: "padding",
1028
- px: "padding-inline",
1029
- py: "padding-block",
1030
- m: "margin",
1031
- mx: "margin-inline",
1032
- my: "margin-block",
1033
- w: "width",
1034
- h: "height",
1035
- "min-w": "min-width",
1036
- "max-w": "max-width",
1037
- "min-h": "min-height",
1038
- "max-h": "max-height",
1039
- "border-t": "border-top-width",
1040
- "border-b": "border-bottom-width",
1041
- "border-l": "border-left-width",
1042
- "border-r": "border-right-width",
1043
- "border-x": "border-inline-width",
1044
- "border-y": "border-block-width",
1045
- "grid-cols": "grid-template-columns",
1046
- "grid-rows": "grid-template-rows",
1047
- transition: "transition-property",
1048
- ease: "transition-timing-function",
1049
- delay: "transition-delay",
1050
- duration: "transition-duration",
1051
- list: "list-style",
1052
- break: "word-break",
1053
- flex: "flex-direction",
1054
- items: "align-items",
1055
- justify: "justify-content",
1056
- content: "align-content",
1057
- self: "align-self",
1058
- basis: "flex-basis",
1059
- tracking: "letter-spacing",
1060
- leading: "line-height",
1061
- z: "z-index",
1062
- opacity: "opacity"
1063
- };
1064
- if (o === "text")
1065
- return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(n) ? `font-size:${n};` : `color:${n};`;
1066
- if (o === "rotate") return `transform:rotate(${n});`;
1067
- if (o === "scale") return `transform:scale(${n});`;
1068
- if (o === "translate-x") return `transform:translateX(${n});`;
1069
- if (o === "translate-y") return `transform:translateY(${n});`;
1070
- const s = c[o] ?? o.replace(/_/g, "-");
1071
- return s && n ? `${s}:${n};` : null;
1072
- }
1073
- function _e(e) {
1074
- if (e.startsWith("[") && e.endsWith("]")) {
1075
- const o = e.slice(1, -1);
1076
- return o.includes("&") ? o : e;
1077
- }
1078
- const r = e.indexOf("-[");
1079
- if (r > 0 && e.endsWith("]")) {
1080
- const o = e.slice(r + 2, -1).replace(/_/g, "-");
1081
- return o.includes("&") ? o : e.replace(/_/g, "-");
1082
- }
1083
- return null;
1084
- }
1085
- function be(e) {
1086
- return e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g, "\\$1");
1087
- }
1088
- function ze(e) {
1089
- const r = /class\s*=\s*(['"])([\s\S]*?)\1/g, o = [];
1090
- let n;
1091
- for (; n = r.exec(e); ) {
1092
- const c = n[2].split(/\s+/).filter(Boolean);
1093
- c.length && o.push(...c);
1094
- }
1095
- return o;
1096
- }
1097
- const G = /* @__PURE__ */ new Map(), Re = 16, he = 1e3;
1098
- function Le(e) {
1099
- const r = Date.now(), o = G.get(e);
1100
- if (o && r - o.timestamp < Re)
1101
- return o.css;
1102
- const n = ze(e);
1103
- if (!n.length) return "";
1104
- const c = new Set(n), s = [[], [], [], []], u = {}, m = (f, p = !1) => {
1105
- const g = p ? `dark|${f}` : f;
1106
- if (g in u) return u[g];
1107
- const b = $(f, p);
1108
- return u[g] = b, b;
1109
- }, t = (f) => {
1110
- const p = f.some((k) => ne.includes(k)), g = f.some(
1111
- (k) => k.startsWith("@") && (ie.includes(k.slice(1)) || k.match(/^@\[.+\]$/))
1112
- ), b = f.includes("dark");
1113
- return f.length ? !p && !b && !g ? 1 : b && (p || g) ? 3 : 2 : 0;
1114
- }, a = (f) => {
1115
- const p = [];
1116
- let g = "", b = 0;
1117
- for (let k = 0; k < f.length; k++) {
1118
- const x = f[k];
1119
- x === "[" || x === "(" ? b++ : (x === "]" || x === ")") && b--, x === ":" && b === 0 ? (p.push(g), g = "") : g += x;
1120
- }
1121
- return g && p.push(g), p;
1122
- }, d = {
1123
- hover: ":hover",
1124
- focus: ":focus",
1125
- active: ":active",
1126
- visited: ":visited",
1127
- disabled: ":disabled",
1128
- checked: ":checked",
1129
- first: ":first-child",
1130
- last: ":last-child",
1131
- odd: ":nth-child(odd)",
1132
- even: ":nth-child(even)",
1133
- "focus-within": ":focus-within",
1134
- "focus-visible": ":focus-visible"
1135
- }, $ = (f, p = !1) => {
1136
- const g = a(f);
1137
- let b = "", k = !1;
1138
- for (const i of g) {
1139
- let y = i;
1140
- if (y.startsWith("!") && (k = !0, y = y.slice(1)), re[y] || ae(y) || ce(y) || de(y) || se(y) || le(y) || Z(y)) {
1141
- b = i;
1142
- break;
1143
- }
1144
- }
1145
- if (!b) return null;
1146
- const x = b.replace(/^!/, ""), O = re[x] ?? ae(x) ?? ce(x) ?? de(x) ?? se(x) ?? le(x) ?? Z(x);
1147
- if (!O) return null;
1148
- const T = g.indexOf(b);
1149
- let h = T >= 0 ? g.slice(0, T) : [];
1150
- p && (h = h.filter((i) => i !== "dark"));
1151
- const R = `.${be(f)}`, _ = k ? O.replace(/;/g, " !important;") : O, w = "__SUBJECT__";
1152
- let l = w;
1153
- const P = [];
1154
- for (const i of h)
1155
- i.startsWith("group-") ? (l = `.group:${i.slice(6)} ${l}`, P.push(i)) : i.startsWith("peer-") && (l = l.replace(
1156
- w,
1157
- `.peer:${i.slice(5)}~${w}`
1158
- ), P.push(i));
1159
- h = h.filter((i) => !P.includes(i));
1160
- const W = [], V = [];
1161
- let S = null;
1162
- for (const i of h) {
1163
- if (i === "dark" || ne.includes(i) || i.startsWith("@") && (ie.includes(i.slice(1)) || i.match(/^@\[.+\]$/)))
1164
- continue;
1165
- const y = _e(i);
1166
- if (y) {
1167
- S = y;
1168
- continue;
1169
- }
1170
- const F = d[i];
1171
- if (F) {
1172
- S ? V.push(F) : W.push(F);
1173
- continue;
1174
- }
1175
- const E = Ce[i];
1176
- typeof E == "function" && (l = E(l, _).split("{")[0]);
1177
- }
1178
- const D = W.join(""), L = V.join("");
1179
- function Q(i, y) {
1180
- if (!y) return i;
1181
- let F = 0, E = 0;
1182
- if (i.length && (i[0] === ">" || i[0] === "+" || i[0] === "~" || i[0] === " ")) {
1183
- let j = 1;
1184
- for (; j < i.length && i[j] === " "; ) j++;
1185
- for (; j < i.length; j++) {
1186
- const z = i[j];
1187
- 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] === " "))
1188
- return i.slice(0, j) + y + i.slice(j);
1189
- }
1190
- return i + y;
1191
- }
1192
- for (let j = 0; j < i.length; j++) {
1193
- const z = i[j];
1194
- if (z === "[" ? F++ : z === "]" && F > 0 ? F-- : z === "(" ? E++ : z === ")" && E > 0 && E--, F === 0 && E === 0 && (z === ">" || z === "+" || z === "~" || z === " "))
1195
- return i.slice(0, j) + y + i.slice(j);
1196
- }
1197
- return i + y;
1198
- }
1199
- if (S)
1200
- if (S.includes("&")) {
1201
- const i = S.indexOf("&"), y = S.slice(0, i), F = S.slice(i + 1), E = w + D;
1202
- if (W.length === 0)
1203
- l = l.replace(
1204
- w,
1205
- y + E + L + F
1206
- );
1207
- else {
1208
- const j = Q(F, L);
1209
- l = l.replace(
1210
- w,
1211
- y + E + j
1212
- );
1213
- }
1214
- } else
1215
- l = l.replace(
1216
- w,
1217
- `${S}${w + D}`
1218
- ), L && (l = l.replace(w, `${w}${L}`));
1219
- else
1220
- l = l.replace(
1221
- w,
1222
- w + D + L
1223
- );
1224
- l = l.replace(new RegExp(w, "g"), R);
1225
- const fe = "__CE_COLOR_MIX_SPLIT__", ve = _.includes(fe) ? _.split(fe).map((i) => `${l}{${i}}`) : [`${l}{${_}}`], Y = h.filter(
1226
- (i) => ne.includes(i)
1227
- ), ee = h.filter(
1228
- (i) => i.startsWith("@") && (ie.includes(i.slice(1)) || i.match(/^@\[.+\]$/))
1229
- ), q = Y.length ? Y[Y.length - 1] : null, H = ee.length ? ee[ee.length - 1] : null, ue = h.includes("dark");
1230
- let N = "", U = "";
1231
- 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)
1232
- if (H.startsWith("@[") && H.endsWith("]")) {
1233
- const i = H.slice(2, -1);
1234
- if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(i))
1235
- return null;
1236
- U = `@container (min-width:${i})`;
1237
- } else {
1238
- const i = H.slice(1);
1239
- U = `@container ${me[i] || `(min-width:${i})`}`;
1240
- }
1241
- const we = (i) => N && U ? `${N}${U}{${i}}` : N ? `${N}{${i}}` : U ? `${U}{${i}}` : i;
1242
- return ve.map(we).join("");
1243
- };
1244
- for (const f of c) {
1245
- const p = a(f), g = p.find(
1246
- (T) => re[T.replace(/^!/, "")] || ae(T.replace(/^!/, "")) || ce(T.replace(/^!/, "")) || de(T.replace(/^!/, "")) || se(T.replace(/^!/, "")) || le(T.replace(/^!/, "")) || Z(T.replace(/^!/, ""))
1247
- );
1248
- if (!g) continue;
1249
- const b = p.indexOf(g), k = b >= 0 ? p.slice(0, b) : [], x = t(k), O = m(f);
1250
- O && s[x].push(O);
1251
- }
1252
- const v = /^(from|via|to)-[a-z]+-?\d{2,3}?$/;
1253
- for (const f of c)
1254
- if (v.test(f)) {
1255
- if (s.flat().join("").includes(`.${be(f)}`)) continue;
1256
- const g = m(f);
1257
- g && s[0].push(g);
1258
- }
1259
- const C = (f) => f.sort((p, g) => {
1260
- const b = (R) => {
1261
- const _ = {
1262
- sm: 640,
1263
- md: 768,
1264
- lg: 1024,
1265
- xl: 1280,
1266
- "2xl": 1536
1267
- };
1268
- for (const [w, l] of Object.entries(_))
1269
- if (R.includes(`@media ${oe[w]}`)) return l;
1270
- return -1;
1271
- }, k = (R) => {
1272
- const _ = {
1273
- xs: 320,
1274
- // 20rem
1275
- sm: 384,
1276
- // 24rem
1277
- md: 448,
1278
- // 28rem
1279
- lg: 512,
1280
- // 32rem
1281
- xl: 576,
1282
- // 36rem
1283
- "2xl": 672,
1284
- // 42rem
1285
- "3xl": 768,
1286
- // 48rem
1287
- "4xl": 896,
1288
- // 56rem
1289
- "5xl": 1024,
1290
- // 64rem
1291
- "6xl": 1152,
1292
- // 72rem
1293
- "7xl": 1280
1294
- // 80rem
1295
- };
1296
- for (const [w, l] of Object.entries(_))
1297
- if (R.includes(`@container ${me[w]}`)) return l;
1298
- if (R.includes("@container (min-width:")) {
1299
- const w = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(R);
1300
- if (w) {
1301
- const l = parseFloat(w[1]), P = w[2];
1302
- return P === "rem" || P === "em" ? l * 16 : l;
1303
- }
1304
- }
1305
- return -1;
1306
- }, x = b(p), O = b(g), T = k(p), h = k(g);
1307
- return x >= 0 && O >= 0 && x !== O ? x - O : T >= 0 && h >= 0 && T !== h ? T - h : 0;
1308
- });
1309
- s[2] = C(s[2]), s[3] = C(s[3]);
1310
- const A = s.flat().join("");
1311
- return G.size >= he && Array.from(G.keys()).slice(
1312
- 0,
1313
- Math.floor(he / 2)
1314
- ).forEach((p) => G.delete(p)), G.set(e, { css: A, timestamp: r }), A;
1315
- }
1316
- const X = {
1317
- /** Simple fade in/out */
1318
- fade: {
1319
- enterFrom: "opacity-0",
1320
- enterActive: "transition-opacity duration-300 ease-out",
1321
- enterTo: "opacity-100",
1322
- leaveFrom: "opacity-100",
1323
- leaveActive: "transition-opacity duration-200 ease-in",
1324
- leaveTo: "opacity-0"
1325
- },
1326
- /** Slide in from right */
1327
- "slide-right": {
1328
- enterFrom: "translate-x-[100%] opacity-0",
1329
- enterActive: "transition-all duration-300 ease-out",
1330
- enterTo: "translate-x-[0%] opacity-100",
1331
- leaveFrom: "translate-x-[0%] opacity-100",
1332
- leaveActive: "transition-all duration-200 ease-in",
1333
- leaveTo: "translate-x-[100%] opacity-0"
1334
- },
1335
- /** Slide in from left */
1336
- "slide-left": {
1337
- enterFrom: "translate-x-[-100%] opacity-0",
1338
- enterActive: "transition-all duration-300 ease-out",
1339
- enterTo: "translate-x-[0%] opacity-100",
1340
- leaveFrom: "translate-x-[0%] opacity-100",
1341
- leaveActive: "transition-all duration-200 ease-in",
1342
- leaveTo: "translate-x-[-100%] opacity-0"
1343
- },
1344
- /** Slide up from bottom */
1345
- "slide-up": {
1346
- enterFrom: "translate-y-[100%] opacity-0",
1347
- enterActive: "transition-all duration-300 ease-out",
1348
- enterTo: "translate-y-[0%] opacity-100",
1349
- leaveFrom: "translate-y-[0%] opacity-100",
1350
- leaveActive: "transition-all duration-200 ease-in",
1351
- leaveTo: "translate-y-[100%] opacity-0"
1352
- },
1353
- /** Slide down from top */
1354
- "slide-down": {
1355
- enterFrom: "translate-y-[-100%] opacity-0",
1356
- enterActive: "transition-all duration-300 ease-out",
1357
- enterTo: "translate-y-[0%] opacity-100",
1358
- leaveFrom: "translate-y-[0%] opacity-100",
1359
- leaveActive: "transition-all duration-200 ease-in",
1360
- leaveTo: "translate-y-[-100%] opacity-0"
1361
- },
1362
- /** Scale up from center */
1363
- scale: {
1364
- enterFrom: "scale-95 opacity-0",
1365
- enterActive: "transition-all duration-200 ease-out",
1366
- enterTo: "scale-100 opacity-100",
1367
- leaveFrom: "scale-100 opacity-100",
1368
- leaveActive: "transition-all duration-150 ease-in",
1369
- leaveTo: "scale-95 opacity-0"
1370
- },
1371
- /** Scale down to center */
1372
- "scale-down": {
1373
- enterFrom: "scale-105 opacity-0",
1374
- enterActive: "transition-all duration-200 ease-out",
1375
- enterTo: "scale-100 opacity-100",
1376
- leaveFrom: "scale-100 opacity-100",
1377
- leaveActive: "transition-all duration-150 ease-in",
1378
- leaveTo: "scale-105 opacity-0"
1379
- },
1380
- /** Bounce effect */
1381
- bounce: {
1382
- enterFrom: "scale-0 opacity-0",
1383
- enterActive: "transition-all duration-500 ease-out",
1384
- enterTo: "scale-100 opacity-100",
1385
- leaveFrom: "scale-100 opacity-100",
1386
- leaveActive: "transition-all duration-200 ease-in",
1387
- leaveTo: "scale-0 opacity-0"
1388
- },
1389
- /** Zoom and fade */
1390
- zoom: {
1391
- enterFrom: "scale-0 opacity-0",
1392
- enterActive: "transition-all duration-300 ease-out",
1393
- enterTo: "scale-100 opacity-100",
1394
- leaveFrom: "scale-100 opacity-100",
1395
- leaveActive: "transition-all duration-200 ease-in",
1396
- leaveTo: "scale-0 opacity-0"
1397
- },
1398
- /** Flip in */
1399
- flip: {
1400
- enterFrom: "rotate-[90deg] opacity-0",
1401
- enterActive: "transition-all duration-400 ease-out",
1402
- enterTo: "rotate-[0deg] opacity-100",
1403
- leaveFrom: "rotate-[0deg] opacity-100",
1404
- leaveActive: "transition-all duration-300 ease-in",
1405
- leaveTo: "rotate-[90deg] opacity-0"
1406
- }
1407
- };
1408
- function Ne(e, r) {
1409
- const {
1410
- preset: o,
1411
- show: n,
1412
- mode: c = "default",
1413
- duration: s,
1414
- appear: u = !1,
1415
- css: m = !0,
1416
- name: t,
1417
- enterFrom: a,
1418
- enterActive: d,
1419
- enterTo: $,
1420
- leaveFrom: v,
1421
- leaveActive: C,
1422
- leaveTo: A,
1423
- onBeforeEnter: f,
1424
- onEnter: p,
1425
- onAfterEnter: g,
1426
- onEnterCancelled: b,
1427
- onBeforeLeave: k,
1428
- onLeave: x,
1429
- onAfterLeave: O,
1430
- onLeaveCancelled: T
1431
- } = e;
1432
- let h;
1433
- o && X[o] ? (h = { ...X[o] }, a && (h.enterFrom = a), d && (h.enterActive = d), $ && (h.enterTo = $), v && (h.leaveFrom = v), C && (h.leaveActive = C), A && (h.leaveTo = A)) : h = {
1434
- enterFrom: a,
1435
- enterActive: d,
1436
- enterTo: $,
1437
- leaveFrom: v,
1438
- leaveActive: C,
1439
- leaveTo: A
1440
- };
1441
- const R = t || (o ? `transition-${o}` : "transition"), _ = ye(n ? r : [], R);
1442
- return _._transition = {
1443
- name: R,
1444
- classes: h,
1445
- mode: c,
1446
- duration: s,
1447
- appear: u,
1448
- css: m,
1449
- state: n ? "visible" : "hidden",
1450
- hooks: {
1451
- onBeforeEnter: f,
1452
- onEnter: p,
1453
- onAfterEnter: g,
1454
- onEnterCancelled: b,
1455
- onBeforeLeave: k,
1456
- onLeave: x,
1457
- onAfterLeave: O,
1458
- onLeaveCancelled: T
1459
- }
1460
- }, _;
1461
- }
1462
- function Be(e, r) {
1463
- const {
1464
- tag: o = "div",
1465
- moveClass: n = "transition-transform duration-300",
1466
- preset: c,
1467
- show: s = !0,
1468
- mode: u = "default",
1469
- duration: m,
1470
- appear: t = !1,
1471
- css: a = !0,
1472
- name: d,
1473
- class: $,
1474
- style: v,
1475
- enterFrom: C,
1476
- enterActive: A,
1477
- enterTo: f,
1478
- leaveFrom: p,
1479
- leaveActive: g,
1480
- leaveTo: b,
1481
- onBeforeEnter: k,
1482
- onEnter: x,
1483
- onAfterEnter: O,
1484
- onEnterCancelled: T,
1485
- onBeforeLeave: h,
1486
- onLeave: R,
1487
- onAfterLeave: _,
1488
- onLeaveCancelled: w
1489
- } = e;
1490
- let l;
1491
- 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 = {
1492
- enterFrom: C,
1493
- enterActive: A,
1494
- enterTo: f,
1495
- leaveFrom: p,
1496
- leaveActive: g,
1497
- leaveTo: b
1498
- };
1499
- const P = d || (c ? `transition-group-${c}` : "transition-group"), W = [];
1500
- for (const S of s ? r : [])
1501
- if (S && typeof S == "object" && S.tag === "#anchor") {
1502
- const D = Array.isArray(S.children) ? S.children : [];
1503
- for (const L of D)
1504
- if (L && typeof L == "object") {
1505
- const Q = {
1506
- ...L,
1507
- key: S.key || L.key,
1508
- props: {
1509
- ...L.props,
1510
- _anchorKey: S.key
1511
- // Preserve original anchor key
1512
- }
1513
- };
1514
- W.push(Q);
1515
- } else
1516
- W.push(L);
1517
- } else
1518
- W.push(S);
1519
- const V = (() => {
1520
- if (v)
1521
- return typeof v == "string" ? v : Object.entries(v).map(([S, D]) => `${S}: ${D}`).join("; ");
1522
- })();
1523
- return {
1524
- tag: o,
1525
- children: W,
1526
- key: P,
1527
- props: {
1528
- attrs: {
1529
- ...$ ? { class: $ } : {},
1530
- ...V ? { style: V } : {}
1531
- },
1532
- _transitionGroup: {
1533
- name: P,
1534
- classes: l,
1535
- moveClass: n,
1536
- mode: u,
1537
- duration: m,
1538
- appear: t,
1539
- css: a,
1540
- hooks: {
1541
- onBeforeEnter: k,
1542
- onEnter: x,
1543
- onAfterEnter: O,
1544
- onEnterCancelled: T,
1545
- onBeforeLeave: h,
1546
- onLeave: R,
1547
- onAfterLeave: _,
1548
- onLeaveCancelled: w
1549
- }
1550
- }
1551
- }
1552
- };
1553
- }
1554
- function Ue(e) {
1555
- return { ...e };
1556
- }
1557
- let B = null;
1558
- function Me() {
1559
- if (!B) {
1560
- if (typeof CSSStyleSheet > "u")
1561
- return B = {
1562
- cssRules: [],
1563
- replaceSync: () => {
1564
- },
1565
- toString: () => ""
1566
- }, B;
1567
- const e = [];
1568
- Object.values(X).forEach((n) => {
1569
- 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);
1570
- });
1571
- const r = `<div class="${e.join(" ")}"></div>`, o = Le(r);
1572
- try {
1573
- B = new CSSStyleSheet(), B.replaceSync(o);
1574
- } catch {
1575
- B = {
1576
- cssRules: [],
1577
- replaceSync: () => {
1578
- },
1579
- toString: () => o || ""
1580
- };
1581
- }
1582
- }
1583
- return B;
1584
- }
1585
- function Pe() {
1586
- if (!(typeof window > "u" || typeof CSSStyleSheet > "u"))
1587
- try {
1588
- Me();
1589
- } catch {
1590
- }
1591
- }
1592
- Pe();
1593
- export {
1594
- Ne as T,
1595
- Me as a,
1596
- pe as b,
1597
- ke as c,
1598
- Be as d,
1599
- Ue as e,
1600
- Ie as g,
1601
- Le as j,
1602
- ge as m,
1603
- De as s,
1604
- X as t
1605
- };
1606
- //# sourceMappingURL=transitions-m6FraTTL.js.map