@jasonshimmy/custom-elements-runtime 2.5.1 → 2.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +115 -40
  2. package/dist/css/colors.d.ts +14 -0
  3. package/dist/custom-elements-runtime.cjs.js +6 -18
  4. package/dist/custom-elements-runtime.cjs.js.map +1 -1
  5. package/dist/custom-elements-runtime.colors.cjs.js +2 -0
  6. package/dist/custom-elements-runtime.colors.cjs.js.map +1 -0
  7. package/dist/custom-elements-runtime.colors.es.js +279 -0
  8. package/dist/custom-elements-runtime.colors.es.js.map +1 -0
  9. package/dist/custom-elements-runtime.directive-enhancements.es.js +1 -1
  10. package/dist/custom-elements-runtime.es.js +246 -3648
  11. package/dist/custom-elements-runtime.es.js.map +1 -1
  12. package/dist/custom-elements-runtime.event-bus.cjs.js +1 -1
  13. package/dist/custom-elements-runtime.event-bus.cjs.js.map +1 -1
  14. package/dist/custom-elements-runtime.event-bus.es.js +28 -25
  15. package/dist/custom-elements-runtime.event-bus.es.js.map +1 -1
  16. package/dist/custom-elements-runtime.router.cjs.js +20 -20
  17. package/dist/custom-elements-runtime.router.cjs.js.map +1 -1
  18. package/dist/custom-elements-runtime.router.es.js +790 -464
  19. package/dist/custom-elements-runtime.router.es.js.map +1 -1
  20. package/dist/custom-elements-runtime.ssr.cjs.js +1 -1
  21. package/dist/custom-elements-runtime.ssr.es.js +12 -8
  22. package/dist/custom-elements-runtime.ssr.es.js.map +1 -1
  23. package/dist/custom-elements-runtime.store.cjs.js +1 -1
  24. package/dist/custom-elements-runtime.store.cjs.js.map +1 -1
  25. package/dist/custom-elements-runtime.store.es.js +5 -5
  26. package/dist/custom-elements-runtime.store.es.js.map +1 -1
  27. package/dist/custom-elements-runtime.transitions.cjs.js +1 -1
  28. package/dist/custom-elements-runtime.transitions.es.js +1 -1
  29. package/dist/event-bus.d.ts +17 -4
  30. package/dist/index.d.ts +13 -3
  31. package/dist/keep-alive.d.ts +50 -0
  32. package/dist/{logger-BuUYv7C_.js → logger-BvkEbVM4.js} +15 -11
  33. package/dist/logger-BvkEbVM4.js.map +1 -0
  34. package/dist/logger-CSALKaYm.cjs +2 -0
  35. package/dist/logger-CSALKaYm.cjs.map +1 -0
  36. package/dist/namespace-helpers-4qeKVqQw.cjs +5 -0
  37. package/dist/namespace-helpers-4qeKVqQw.cjs.map +1 -0
  38. package/dist/namespace-helpers-DcD_6_K1.js +989 -0
  39. package/dist/namespace-helpers-DcD_6_K1.js.map +1 -0
  40. package/dist/router/active-proxy.d.ts +5 -0
  41. package/dist/router/component-loader.d.ts +11 -0
  42. package/dist/router/instance.d.ts +11 -0
  43. package/dist/router/matcher.d.ts +14 -0
  44. package/dist/router/path-utils.d.ts +48 -0
  45. package/dist/router/types.d.ts +134 -0
  46. package/dist/router.d.ts +6 -147
  47. package/dist/runtime/builtin-components.d.ts +78 -0
  48. package/dist/runtime/component/element-class.d.ts +4 -0
  49. package/dist/runtime/component/factory.d.ts +39 -0
  50. package/dist/runtime/component/registry.d.ts +16 -0
  51. package/dist/runtime/component.d.ts +3 -50
  52. package/dist/runtime/discovery-state.d.ts +30 -0
  53. package/dist/runtime/hooks.d.ts +115 -0
  54. package/dist/runtime/logger.d.ts +19 -1
  55. package/dist/runtime/monitoring/health-monitor.d.ts +56 -0
  56. package/dist/runtime/reactive.d.ts +39 -7
  57. package/dist/runtime/render.d.ts +20 -4
  58. package/dist/runtime/scheduler.d.ts +115 -2
  59. package/dist/runtime/template-compiler/impl.d.ts +14 -0
  60. package/dist/runtime/template-compiler/lru-cache.d.ts +20 -0
  61. package/dist/runtime/template-compiler/props-parser.d.ts +15 -0
  62. package/dist/runtime/template-compiler/vnode-utils.d.ts +5 -0
  63. package/dist/runtime/template-compiler.d.ts +5 -28
  64. package/dist/runtime/types.d.ts +10 -0
  65. package/dist/runtime/vdom-directives.d.ts +71 -0
  66. package/dist/runtime/vdom-helpers.d.ts +126 -0
  67. package/dist/runtime/vdom-patch.d.ts +67 -0
  68. package/dist/runtime/vdom.d.ts +16 -140
  69. package/dist/ssr.d.ts +2 -1
  70. package/dist/teleport.d.ts +68 -0
  71. package/dist/template-compiler-CA4YRaBu.cjs +23 -0
  72. package/dist/template-compiler-CA4YRaBu.cjs.map +1 -0
  73. package/dist/template-compiler-CJFwjLCP.js +3981 -0
  74. package/dist/template-compiler-CJFwjLCP.js.map +1 -0
  75. package/dist/transitions-DPZiuXb9.cjs +330 -0
  76. package/dist/transitions-DPZiuXb9.cjs.map +1 -0
  77. package/dist/{transitions-CZ21fzhh.js → transitions-Di5wW9yc.js} +1059 -618
  78. package/dist/transitions-Di5wW9yc.js.map +1 -0
  79. package/dist/transitions.d.ts +1 -1
  80. package/package.json +20 -12
  81. package/dist/logger-BuUYv7C_.js.map +0 -1
  82. package/dist/logger-DiXdWaF-.cjs +0 -2
  83. package/dist/logger-DiXdWaF-.cjs.map +0 -1
  84. package/dist/namespace-helpers-BsKQl3aH.cjs +0 -5
  85. package/dist/namespace-helpers-BsKQl3aH.cjs.map +0 -1
  86. package/dist/namespace-helpers-Dw1mgQab.js +0 -692
  87. package/dist/namespace-helpers-Dw1mgQab.js.map +0 -1
  88. package/dist/transitions-CZ21fzhh.js.map +0 -1
  89. package/dist/transitions-RXe2brRm.cjs +0 -302
  90. package/dist/transitions-RXe2brRm.cjs.map +0 -1
@@ -1,302 +0,0 @@
1
- "use strict";const Me=require("./custom-elements-runtime.directives.cjs.js"),Pe={base:{fontSize:"1rem",lineHeight:"1.75",p:"1.25em",lead:"1.25em",h1:"2.25em",h2:"1.5em",h3:"1.25em",h4:"1em",blockquote:"1.6em",figure:"2em",code:"0.875em",pre:"0.875em",ol:"1.25em",ul:"1.25em",li:"0.5em",hr:"3em",table:"2em"},sm:{fontSize:"0.875rem",lineHeight:"1.7142857",p:"1.1428571em",lead:"1.1428571em",h1:"2.1428571em",h2:"1.4285714em",h3:"1.2857143em",h4:"1em",blockquote:"1.4285714em",figure:"1.7142857em",code:"0.8571429em",pre:"0.8571429em",ol:"1.1428571em",ul:"1.1428571em",li:"0.4285714em",hr:"2.5714286em",table:"1.7142857em"},lg:{fontSize:"1.125rem",lineHeight:"1.7777778",p:"1.3333333em",lead:"1.3333333em",h1:"2.6666667em",h2:"1.7777778em",h3:"1.5555556em",h4:"1.1111111em",blockquote:"1.7777778em",figure:"2.2222222em",code:"0.8888889em",pre:"0.8888889em",ol:"1.3333333em",ul:"1.3333333em",li:"0.5555556em",hr:"3.3333333em",table:"2.2222222em"},xl:{fontSize:"1.25rem",lineHeight:"1.8",p:"1.4em",lead:"1.4em",h1:"2.8em",h2:"1.8em",h3:"1.6em",h4:"1.2em",blockquote:"1.8em",figure:"2.4em",code:"0.9em",pre:"0.9em",ol:"1.4em",ul:"1.4em",li:"0.6em",hr:"3.6em",table:"2.4em"},"2xl":{fontSize:"1.5rem",lineHeight:"1.6666667",p:"1.3333333em",lead:"1.3333333em",h1:"2.6666667em",h2:"1.7777778em",h3:"1.5555556em",h4:"1.2222222em",blockquote:"1.7777778em",figure:"2.2222222em",code:"0.8333333em",pre:"0.8333333em",ol:"1.3333333em",ul:"1.3333333em",li:"0.5555556em",hr:"3.1111111em",table:"2.2222222em"}};function Ae(e){const t=e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);if(!t)return null;const a=t[1]||"base",o=Pe[a],r=`.${e}`,i=[];return i.push(`${r}{--cer-prose-body:var(--cer-color-neutral-900);--cer-prose-headings:var(--cer-color-neutral-900);--cer-prose-lead:var(--cer-color-neutral-700);--cer-prose-links:var(--cer-color-neutral-700);--cer-prose-links-hover:var(--cer-color-neutral-500);--cer-prose-bold:var(--cer-color-neutral-900);--cer-prose-quotes:var(--cer-color-neutral-700);--cer-prose-quote-border:var(--cer-color-neutral-200);--cer-prose-code:var(--cer-color-neutral-800);--cer-prose-code-bg:var(--cer-color-neutral-100);--cer-prose-pre-code:var(--cer-color-neutral-800);--cer-prose-pre-bg:var(--cer-color-neutral-100);--cer-prose-pre-border:var(--cer-color-neutral-200);--cer-prose-hr:var(--cer-color-neutral-200);--cer-prose-caps:var(--cer-color-neutral-600);--cer-prose-list-marker:var(--cer-color-neutral-600);--cer-prose-list-marker-strong:var(--cer-color-neutral-700);--cer-prose-counters:var(--cer-color-neutral-600);--cer-prose-bullets:var(--cer-color-neutral-400);--cer-prose-img-caption:var(--cer-color-neutral-600);--cer-prose-table-border:var(--cer-color-neutral-200);--cer-prose-table-head:var(--cer-color-neutral-700);color:var(--cer-prose-body);font-size:${o.fontSize};line-height:${o.lineHeight};max-width:65ch;}`),i.push(`${r} p:not(.not-prose):not(.not-prose *){margin:${o.p} 0;}`),i.push(`${r} .lead:not(.not-prose):not(.not-prose *),${r} [class~="lead"]:not(.not-prose):not(.not-prose *){font-size:1.25em;line-height:1.6;margin-top:${o.lead};margin-bottom:${o.lead};color:var(--cer-prose-lead);}`),i.push(`${r} h1:not(.not-prose):not(.not-prose *),${r} h2:not(.not-prose):not(.not-prose *),${r} h3:not(.not-prose):not(.not-prose *),${r} h4:not(.not-prose):not(.not-prose *),${r} h5:not(.not-prose):not(.not-prose *),${r} h6:not(.not-prose):not(.not-prose *){color:var(--cer-prose-headings);font-weight:700;line-height:1.25;}`),i.push(`${r} h1:not(.not-prose):not(.not-prose *){font-size:${o.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`),i.push(`${r} h2:not(.not-prose):not(.not-prose *){font-size:${o.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`),i.push(`${r} h3:not(.not-prose):not(.not-prose *){font-size:${o.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`),i.push(`${r} h4:not(.not-prose):not(.not-prose *){font-size:${o.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`),i.push(`${r} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`),i.push(`${r} h6:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`),i.push(`${r} a:not(.not-prose):not(.not-prose *){color:var(--cer-prose-links);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.15em;font-weight:500;}`),i.push(`${r} a:not(.not-prose):not(.not-prose *):hover,${r} a:not(.not-prose):not(.not-prose *):focus{color:var(--cer-prose-links-hover);}`),i.push(`${r} strong:not(.not-prose):not(.not-prose *){color:var(--cer-prose-bold);font-weight:600;}`),i.push(`${r} em:not(.not-prose):not(.not-prose *){font-style:italic;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${o.ol};margin-bottom:${o.ol};padding-left:1.625em;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="a"]{list-style-type:lower-alpha;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="I"]{list-style-type:upper-roman;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${o.li};}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-counters);font-weight:400;}`),i.push(`${r} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${o.ul};margin-bottom:${o.ul};padding-left:1.625em;}`),i.push(`${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${o.li};}`),i.push(`${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child,${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child{margin-top:${o.ol};}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child,${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child{margin-bottom:${o.ol};}`),i.push(`${r} ul:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${r} ul:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *),${r} ol:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${r} ol:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *){margin-top:0.75em;margin-bottom:0.75em;}`),i.push(`${r} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${o.ol};margin-bottom:${o.ol};}`),i.push(`${r} code:not(.not-prose):not(.not-prose *){color:var(--cer-prose-code);background-color:var(--cer-prose-code-bg);border-radius:0.25rem;padding:0.125rem 0.25rem;font-size:${o.code};font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}`),i.push(`${r} pre:not(.not-prose):not(.not-prose *){color:var(--cer-prose-pre-code);background-color:var(--cer-prose-pre-bg);border:1px solid var(--cer-prose-pre-border);overflow-x:auto;font-size:${o.pre};line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:0.375rem;padding:0.8571429em 1.1428571em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;white-space:pre;overflow-wrap:normal;}`),i.push(`${r} pre:not(.not-prose):not(.not-prose *) code:not(.not-prose):not(.not-prose *){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;line-height:inherit;}`),i.push(`${r} blockquote:not(.not-prose):not(.not-prose *){font-weight:500;font-style:italic;color:var(--cer-prose-quotes);border-left-width:0.25rem;border-left-color:var(--cer-prose-quote-border);quotes:"\\201C""\\201D""\\2018""\\2019";margin-top:${o.blockquote};margin-bottom:${o.blockquote};padding-left:1em;}`),i.push(`${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`),i.push(`${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`),i.push(`${r} hr:not(.not-prose):not(.not-prose *){border-color:var(--cer-prose-hr);border-top-width:1px;margin-top:${o.hr};margin-bottom:${o.hr};}`),i.push(`${r} figure:not(.not-prose):not(.not-prose *){margin-top:${o.figure};margin-bottom:${o.figure};}`),i.push(`${r} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`),i.push(`${r} figcaption:not(.not-prose):not(.not-prose *){color:var(--cer-prose-img-caption);font-size:0.875em;line-height:1.4285714;margin-top:0.75em;}`),i.push(`${r} img:not(.not-prose):not(.not-prose *),${r} video:not(.not-prose):not(.not-prose *),${r} picture:not(.not-prose):not(.not-prose *){margin-top:${o.figure};margin-bottom:${o.figure};max-width:100%;height:auto;}`),i.push(`${r} figure:not(.not-prose):not(.not-prose *)>img:not(.not-prose):not(.not-prose *),${r} figure:not(.not-prose):not(.not-prose *)>video:not(.not-prose):not(.not-prose *),${r} figure:not(.not-prose):not(.not-prose *)>picture:not(.not-prose):not(.not-prose *){margin-top:0;margin-bottom:0;}`),i.push(`${r} table:not(.not-prose):not(.not-prose *){width:100%;table-layout:auto;text-align:left;margin-top:${o.table};margin-bottom:${o.table};font-size:0.875em;line-height:1.7142857;}`),i.push(`${r} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`),i.push(`${r} thead:not(.not-prose):not(.not-prose *) th:not(.not-prose):not(.not-prose *){color:var(--cer-prose-table-head);font-weight:600;vertical-align:bottom;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em;}`),i.push(`${r} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`),i.push(`${r} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *):last-child{border-bottom-width:0;}`),i.push(`${r} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`),i.join("")}const _e={headings:"h1,h2,h3,h4,h5,h6,th",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",a:"a",blockquote:"blockquote",figure:"figure",figcaption:"figcaption",strong:"strong",em:"em",kbd:"kbd",code:"code",pre:"pre",ol:"ol",ul:"ul",li:"li",dl:"dl",dt:"dt",dd:"dd",table:"table",thead:"thead",tbody:"tbody",tr:"tr",th:"th",td:"td",img:"img",picture:"picture",video:"video",hr:"hr",lead:'[class~="lead"]'};function We(e,t,a,o,r,i,l,$){const n=e.match(/^prose-([a-z0-9]+):(.+)$/);if(!n)return null;const[,c,u]=n,j=_e[c];if(!j)return null;const y=t[u]??a(u)??o(u)??r(u)??i(u)??l(u)??$(u);if(!y)return null;const F=$e(e);return j.split(",").map(g=>{const h=g.trim();return`${`.${F} ${h}:not(.not-prose):not(.not-prose *)`}{${y}}`}).join("")}const Le=`/*
2
- * Custom Elements Variables CSS
3
- * Default fallback values
4
- *
5
- * Define your overrides in the document's :root to have them
6
- * inherited into all Shadow DOM components:
7
- *
8
- * <style>
9
- * :root {
10
- * --cer-color-primary-500: #8b5cf6;
11
- * --cer-font-sans: 'Inter', sans-serif;
12
- * }
13
- * </style>
14
- *
15
- * Note: Only :root is used here (not :host) so document-level
16
- * overrides will inherit into Shadow DOM and take precedence.
17
- */
18
-
19
- :root {
20
- /* Font families (match runtime defaults in src/lib/runtime/style.ts) */
21
- --cer-font-sans:
22
- ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
23
- 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
24
- --cer-font-serif: ui-serif, Georgia, 'Times New Roman', Times, serif;
25
- --cer-font-mono:
26
- ui-monospace, 'SFMono-Regular', Menlo, Monaco, 'Roboto Mono', 'Courier New',
27
- monospace;
28
-
29
- /* Default outline style */
30
- --cer-outline-style: solid;
31
-
32
- /* Colors */
33
- --cer-color-transparent: transparent;
34
- --cer-color-current: currentColor;
35
- --cer-color-black: #000000;
36
- --cer-color-white: #ffffff;
37
- --cer-color-inherit: inherit;
38
-
39
- /* neutral */
40
- --cer-color-neutral-50: #fafafa;
41
- --cer-color-neutral-100: #f4f4f5;
42
- --cer-color-neutral-200: #e4e4e7;
43
- --cer-color-neutral-300: #d4d4d8;
44
- --cer-color-neutral-400: #9f9fa9;
45
- --cer-color-neutral-500: #71717b;
46
- --cer-color-neutral-600: #52525c;
47
- --cer-color-neutral-700: #3f3f46;
48
- --cer-color-neutral-800: #27272a;
49
- --cer-color-neutral-900: #18181b;
50
- --cer-color-neutral-950: #09090b;
51
-
52
- /* primary */
53
- --cer-color-primary-50: #eff6ff;
54
- --cer-color-primary-100: #dbeafe;
55
- --cer-color-primary-200: #bfdbfe;
56
- --cer-color-primary-300: #93c5fd;
57
- --cer-color-primary-400: #60a5fa;
58
- --cer-color-primary-500: #3b82f6;
59
- --cer-color-primary-600: #2563eb;
60
- --cer-color-primary-700: #1d4ed8;
61
- --cer-color-primary-800: #1e40af;
62
- --cer-color-primary-900: #1e3a8a;
63
- --cer-color-primary-950: #172554;
64
-
65
- /* secondary */
66
- --cer-color-secondary-50: #eef2ff;
67
- --cer-color-secondary-100: #e0e7ff;
68
- --cer-color-secondary-200: #c7d2fe;
69
- --cer-color-secondary-300: #a5b4fc;
70
- --cer-color-secondary-400: #818cf8;
71
- --cer-color-secondary-500: #6366f1;
72
- --cer-color-secondary-600: #4f46e5;
73
- --cer-color-secondary-700: #4338ca;
74
- --cer-color-secondary-800: #3730a3;
75
- --cer-color-secondary-900: #312e81;
76
- --cer-color-secondary-950: #1e1b4b;
77
-
78
- /* success */
79
- --cer-color-success-50: #f0fdf4;
80
- --cer-color-success-100: #dcfce7;
81
- --cer-color-success-200: #bbf7d0;
82
- --cer-color-success-300: #86efac;
83
- --cer-color-success-400: #4ade80;
84
- --cer-color-success-500: #22c55e;
85
- --cer-color-success-600: #16a34a;
86
- --cer-color-success-700: #15803d;
87
- --cer-color-success-800: #166534;
88
- --cer-color-success-900: #14532d;
89
- --cer-color-success-950: #052e16;
90
-
91
- /* info */
92
- --cer-color-info-50: #f0f9ff;
93
- --cer-color-info-100: #e0f2fe;
94
- --cer-color-info-200: #bae6fd;
95
- --cer-color-info-300: #7dd3fc;
96
- --cer-color-info-400: #38bdf8;
97
- --cer-color-info-500: #0ea5e9;
98
- --cer-color-info-600: #0284c7;
99
- --cer-color-info-700: #0369a1;
100
- --cer-color-info-800: #075985;
101
- --cer-color-info-900: #0c4a6e;
102
- --cer-color-info-950: #082f49;
103
-
104
- /* warning */
105
- --cer-color-warning-50: #fffbeb;
106
- --cer-color-warning-100: #fef3c7;
107
- --cer-color-warning-200: #fde68a;
108
- --cer-color-warning-300: #fcd34d;
109
- --cer-color-warning-400: #fbbf24;
110
- --cer-color-warning-500: #f59e0b;
111
- --cer-color-warning-600: #d97706;
112
- --cer-color-warning-700: #b45309;
113
- --cer-color-warning-800: #92400e;
114
- --cer-color-warning-900: #78350f;
115
- --cer-color-warning-950: #451a03;
116
-
117
- /* error */
118
- --cer-color-error-50: #fef2f2;
119
- --cer-color-error-100: #fee2e2;
120
- --cer-color-error-200: #fecaca;
121
- --cer-color-error-300: #fca5a5;
122
- --cer-color-error-400: #f87171;
123
- --cer-color-error-500: #ef4444;
124
- --cer-color-error-600: #dc2626;
125
- --cer-color-error-700: #b91c1c;
126
- --cer-color-error-800: #991b1b;
127
- --cer-color-error-900: #7f1d1d;
128
- --cer-color-error-950: #450a0a;
129
- }
130
- `;function ze(e,...t){let a="";for(let o=0;o<e.length;o++)a+=e[o],o<t.length&&(a+=t[o]);return a}function be(e){return e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{}:;,>+~])\s*/g,"$1").replace(/;}/g,"}").trim()}let re=null;function De(){return re||(typeof CSSStyleSheet>"u"?re={cssRules:[],replaceSync:()=>{},toString:()=>be(ye)}:(re=new CSSStyleSheet,re.replaceSync(be(ye)))),re}let U=null;const ve=new Set;let ce="";function Fe(){if(ve.size===0)return null;U||(typeof CSSStyleSheet>"u"?U={cssRules:[],replaceSync:()=>{},toString:()=>ce}:(U=new CSSStyleSheet,U.toString=()=>ce));let e="";for(const t of ve){const a=Ae(t);a&&(e+=a)}if(ce=be(e),typeof U.replaceSync=="function"&&e)try{U.replaceSync(ce)}catch{}return U}function qe(e){const t=!ve.has(e);ve.add(e),t&&U&&Fe()}function Ie(e){return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi,"").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi,"").replace(/expression\s*\([^)]*\)/gi,"")}const ye=ze`
131
- ${Le}
132
- :host,
133
- *,
134
- ::before,
135
- ::after {
136
- all: isolate;
137
- box-sizing: border-box;
138
- border: 0 solid currentColor;
139
- margin: 0;
140
- padding: 0;
141
- font: inherit;
142
- vertical-align: baseline;
143
- background: transparent;
144
- color: inherit;
145
- -webkit-tap-highlight-color: transparent;
146
- }
147
- :host {
148
- display: contents;
149
- font: 16px/1.5 var(--cer-font-sans, ui-sans-serif, system-ui, sans-serif);
150
- /* Default CE line-height variable so leading-* can reliably override */
151
- --cer-line-height: 1.5;
152
- -webkit-text-size-adjust: 100%;
153
- text-size-adjust: 100%;
154
- -webkit-font-smoothing: antialiased;
155
- -moz-osx-font-smoothing: grayscale;
156
- /* Default gradient variables to avoid undefined var() usage in generated utilities */
157
- --cer-gradient-from-position: 0%;
158
- --cer-gradient-to-position: 100%;
159
- --cer-gradient-via-position: 50%;
160
- --cer-gradient-from: rgba(255, 255, 255, 0);
161
- --cer-gradient-to: rgba(255, 255, 255, 0);
162
- --cer-gradient-stops: var(--cer-gradient-from), var(--cer-gradient-to);
163
- /* Default outline style variable */
164
- --cer-outline-style: solid;
165
- }
166
- button,
167
- input,
168
- select,
169
- textarea {
170
- background: transparent;
171
- outline: none;
172
- }
173
- textarea {
174
- resize: vertical;
175
- }
176
- progress {
177
- vertical-align: baseline;
178
- }
179
- button,
180
- textarea {
181
- overflow: visible;
182
- }
183
- img,
184
- svg,
185
- video,
186
- canvas,
187
- audio,
188
- iframe,
189
- embed,
190
- object {
191
- display: block;
192
- max-width: 100%;
193
- height: auto;
194
- }
195
- svg {
196
- fill: currentColor;
197
- stroke: none;
198
- }
199
- a {
200
- text-decoration: inherit;
201
- cursor: pointer;
202
- }
203
- button,
204
- [type='button'],
205
- [type='reset'],
206
- [type='submit'] {
207
- cursor: pointer;
208
- appearance: button;
209
- background: none;
210
- -webkit-user-select: none;
211
- user-select: none;
212
- }
213
- ::-webkit-input-placeholder,
214
- ::placeholder {
215
- color: inherit;
216
- opacity: 0.5;
217
- }
218
- *:focus-visible {
219
- outline: 2px solid var(--cer-color-primary-500, #3b82f6);
220
- outline-offset: 2px;
221
- }
222
- ol,
223
- ul {
224
- list-style: none;
225
- }
226
- table {
227
- border-collapse: collapse;
228
- }
229
- sub,
230
- sup {
231
- font-size: 0.75em;
232
- line-height: 0;
233
- position: relative;
234
- }
235
- sub {
236
- bottom: -0.25em;
237
- }
238
- sup {
239
- top: -0.5em;
240
- }
241
- [disabled],
242
- [aria-disabled='true'] {
243
- cursor: not-allowed;
244
- }
245
- [hidden] {
246
- display: none;
247
- }
248
- `,Ne={neutral:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#9f9fa9",500:"#71717b",600:"#52525c",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},primary:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},secondary:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},info:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},warning:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},white:{DEFAULT:"#ffffff"},black:{DEFAULT:"#000000"},transparent:{DEFAULT:"transparent"},current:{DEFAULT:"currentColor"}},Ee=Object.fromEntries(Object.entries(Ne).map(([e,t])=>[e,Object.fromEntries(Object.entries(t).map(([a,o])=>[a,`var(--cer-color-${e}${a==="DEFAULT"?"":`-${a}`}, ${o})`]))])),K="0.25rem",Ve={"3xs":64,"2xs":72,xs:80,sm:96,md:112,lg:128,xl:144,"2xl":168,"3xl":192,"4xl":224,"5xl":256,"6xl":288,"7xl":320},we={m:["margin"],mx:["margin-inline"],my:["margin-block"],mt:["margin-top"],mr:["margin-right"],mb:["margin-bottom"],ml:["margin-left"],p:["padding"],px:["padding-inline"],py:["padding-block"],pt:["padding-top"],pr:["padding-right"],pb:["padding-bottom"],pl:["padding-left"],inset:["inset"],"inset-x":["inset-inline"],"inset-y":["inset-block"],h:["height"],w:["width"],"min-h":["min-height"],"min-w":["min-width"],"max-h":["max-height"],"max-w":["max-width"],top:["top"],bottom:["bottom"],left:["left"],right:["right"],gap:["gap"],"gap-x":["column-gap"],"gap-y":["row-gap"]},Be=()=>{const e={};e["@container"]="container-type:inline-size;",["block","inline","inline-block","flex","inline-flex","grid","inline-grid","table","table-cell","table-row","hidden"].forEach(n=>{e[n]=n==="hidden"?"display:none;":`display:${n};`}),["absolute","relative","fixed","sticky","static"].forEach(n=>{e[n]=`position:${n};`}),Object.assign(e,{"items-center":"align-items:center;","items-start":"align-items:flex-start;","items-end":"align-items:flex-end;","items-baseline":"align-items:baseline;","items-stretch":"align-items:stretch;","justify-center":"justify-content:center;","justify-start":"justify-content:flex-start;","justify-between":"justify-content:space-between;","justify-around":"justify-content:space-around;","justify-evenly":"justify-content:space-evenly;","justify-end":"justify-content:flex-end;","flex-wrap":"flex-wrap:wrap;","flex-nowrap":"flex-wrap:nowrap;","flex-wrap-reverse":"flex-wrap:wrap-reverse;","content-center":"align-content:center;","content-start":"align-content:flex-start;","content-end":"align-content:flex-end;","content-between":"align-content:space-between;","content-around":"align-content:space-around;","content-evenly":"align-content:space-evenly;","content-stretch":"align-content:stretch;","self-auto":"align-self:auto;","self-start":"align-self:flex-start;","self-end":"align-self:flex-end;","self-center":"align-self:center;","self-stretch":"align-self:stretch;","flex-col":"flex-direction:column;","flex-row":"flex-direction:row;","flex-col-reverse":"flex-direction:column-reverse;","flex-row-reverse":"flex-direction:row-reverse;","flex-1":"flex:1 1 0%;","flex-auto":"flex:1 1 auto;","flex-initial":"flex:0 1 auto;","flex-none":"flex:0 0 auto;",grow:"flex-grow:1;",shrink:"flex-shrink:1;","grow-0":"flex-grow:0;","shrink-0":"flex-shrink:0;"});for(let n=1;n<=12;n++)e[`grid-cols-${n}`]=`grid-template-columns:repeat(${n},minmax(0,1fr));`,e[`grid-rows-${n}`]=`grid-template-rows:repeat(${n},minmax(0,1fr));`,e[`col-span-${n}`]=`grid-column:span ${n} / span ${n};`,e[`row-span-${n}`]=`grid-row:span ${n} / span ${n};`,e[`col-start-${n}`]=`grid-column-start:${n};`,e[`col-end-${n}`]=`grid-column-end:${n};`,e[`row-start-${n}`]=`grid-row-start:${n};`,e[`row-end-${n}`]=`grid-row-end:${n};`;Object.assign(e,{"grid-cols-none":"grid-template-columns:none;","grid-rows-none":"grid-template-rows:none;","col-span-full":"grid-column:1 / -1;","row-span-full":"grid-row:1 / -1;","auto-cols-auto":"grid-auto-columns:auto;","auto-cols-min":"grid-auto-columns:min-content;","auto-cols-max":"grid-auto-columns:max-content;","auto-cols-fr":"grid-auto-columns:1fr;","auto-rows-auto":"grid-auto-rows:auto;","auto-rows-min":"grid-auto-rows:min-content;","auto-rows-max":"grid-auto-rows:max-content;","auto-rows-fr":"grid-auto-rows:1fr;","grid-flow-row":"grid-auto-flow:row;","grid-flow-col":"grid-auto-flow:column;","grid-flow-row-dense":"grid-auto-flow:row dense;","grid-flow-col-dense":"grid-auto-flow:column dense;"}),Object.assign(e,{"text-left":"text-align:left;","text-center":"text-align:center;","text-right":"text-align:right;","text-justify":"text-align:justify;","font-thin":"font-weight:100;","font-extralight":"font-weight:200;","font-light":"font-weight:300;","font-normal":"font-weight:400;","font-medium":"font-weight:500;","font-semibold":"font-weight:600;","font-bold":"font-weight:700;","font-extrabold":"font-weight:800;","font-black":"font-weight:900;",italic:"font-style:italic;","not-italic":"font-style:normal;",uppercase:"text-transform:uppercase;",lowercase:"text-transform:lowercase;",capitalize:"text-transform:capitalize;","normal-case":"text-transform:none;",underline:"text-decoration-line:underline;",overline:"text-decoration-line:overline;","line-through":"text-decoration-line:line-through;","no-underline":"text-decoration-line:none;",truncate:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","whitespace-normal":"white-space:normal;","whitespace-nowrap":"white-space:nowrap;","whitespace-pre":"white-space:pre;","whitespace-pre-line":"white-space:pre-line;","whitespace-pre-wrap":"white-space:pre-wrap;","break-normal":"overflow-wrap:normal;word-break:normal;","break-words":"overflow-wrap:break-word;","break-all":"word-break:break-all;"}),[["text-xs","0.75rem","1"],["text-sm","0.875rem","1.25"],["text-base","1rem","1.5"],["text-lg","1.125rem","1.75"],["text-xl","1.25rem","1.75"],["text-2xl","1.5rem","2"],["text-3xl","1.875rem","2.25"],["text-4xl","2.25rem","2.5"],["text-5xl","3rem","1"],["text-6xl","3.75rem","1"],["text-7xl","4.5rem","1"],["text-8xl","6rem","1"],["text-9xl","8rem","1"]].forEach(([n,c,u])=>{e[n]=`font-size:${c};line-height:var(--cer-line-height,${u});`}),[["tracking-tighter","-0.05em"],["tracking-tight","-0.025em"],["tracking-normal","0em"],["tracking-wide","0.025em"],["tracking-wider","0.05em"],["tracking-widest","0.1em"]].forEach(([n,c])=>{e[n]=`letter-spacing:${c};`}),[["leading-3","0.75rem"],["leading-4","1rem"],["leading-5","1.25rem"],["leading-6","1.5rem"],["leading-7","1.75rem"],["leading-8","2rem"],["leading-9","2.25rem"],["leading-10","2.5rem"],["leading-none","1"],["leading-tight","1.25"],["leading-snug","1.375"],["leading-normal","1.5"],["leading-relaxed","1.625"],["leading-loose","2"]].forEach(([n,c])=>{e[n]=`line-height:${c};--cer-line-height:${c};line-height:var(--cer-line-height,${c});`});const i=[0,1,2,4,6,8];for(const n of i){const c=`${n}px`;e[`outline-${n}`]=`outline-style:var(--cer-outline-style);outline-width:${c};`,e[`outline-offset-${n}`]=`outline-offset:${c};`,e[`border-${n}`]=`border-width:${c};`,e[`border-t-${n}`]=`border-top-width:${c};`,e[`border-r-${n}`]=`border-right-width:${c};`,e[`border-b-${n}`]=`border-bottom-width:${c};`,e[`border-l-${n}`]=`border-left-width:${c};`,e[`border-x-${n}`]=`border-left-width:${c};border-right-width:${c};`,e[`border-y-${n}`]=`border-top-width:${c};border-bottom-width:${c};`}Object.assign(e,{"font-sans":"font-family:var(--cer-font-sans, ui-sans-serif,system-ui,sans-serif);","font-serif":"font-family:var(--cer-font-serif, ui-serif,Georgia,serif);","font-mono":"font-family:var(--cer-font-mono, ui-monospace,SFMono-Regular,monospace);",outline:"outline-style:var(--cer-outline-style);outline-width:1px;","outline-solid":"--cer-outline-style:solid;outline-style:solid;","outline-dashed":"--cer-outline-style:dashed;outline-style:dashed;","outline-dotted":"--cer-outline-style:dotted;outline-style:dotted;","outline-double":"--cer-outline-style:double;outline-style:double;","outline-none":"--cer-outline-style:none;outline-style:none;","outline-hidden":"--cer-outline-style:none;outline:2px solid transparent;outline-offset:2px;",border:"border-width:1px;","border-t":"border-top-width:1px;","border-r":"border-right-width:1px;","border-b":"border-bottom-width:1px;","border-l":"border-left-width:1px;","border-x":"border-left-width:1px;border-right-width:1px;","border-y":"border-top-width:1px;border-bottom-width:1px;","border-solid":"border-style:solid;","border-dashed":"border-style:dashed;","border-dotted":"border-style:dotted;","border-double":"border-style:double;","border-none":"border-style:none;"});const l={none:0,xs:2,sm:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,"4xl":32,full:9999};for(const[n,c]of Object.entries(l)){const u=c===9999?"9999px":`${c/16}rem`;e[`rounded-${n}`]=`border-radius:${u};`,e[`rounded-t-${n}`]=`border-top-left-radius:${u};border-top-right-radius:${u};`,e[`rounded-r-${n}`]=`border-top-right-radius:${u};border-bottom-right-radius:${u};`,e[`rounded-b-${n}`]=`border-bottom-left-radius:${u};border-bottom-right-radius:${u};`,e[`rounded-l-${n}`]=`border-top-left-radius:${u};border-bottom-left-radius:${u};`,e[`rounded-tl-${n}`]=`border-top-left-radius:${u};`,e[`rounded-tr-${n}`]=`border-top-right-radius:${u};`,e[`rounded-br-${n}`]=`border-bottom-right-radius:${u};`,e[`rounded-bl-${n}`]=`border-bottom-left-radius:${u};`}Object.assign(e,{"shadow-none":"--cer-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--cer-shadow-color, #0000);","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));","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));",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));","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));","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));","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));","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));","shadow-inner":"box-shadow:inset 0 2px 4px 0 rgb(0 0 0 / 0.05);"}),Object.assign(e,{rounded:"border-radius:0.25rem;"}),Object.assign(e,{"overflow-auto":"overflow:auto;","overflow-hidden":"overflow:hidden;","overflow-visible":"overflow:visible;","overflow-scroll":"overflow:scroll;","overflow-x-auto":"overflow-x:auto;","overflow-x-hidden":"overflow-x:hidden;","overflow-x-visible":"overflow-x:visible;","overflow-x-scroll":"overflow-x:scroll;","overflow-y-auto":"overflow-y:auto;","overflow-y-hidden":"overflow-y:hidden;","overflow-y-visible":"overflow-y:visible;","overflow-y-scroll":"overflow-y:scroll;"});const $=["auto","default","pointer","wait","text","move","help","not-allowed","grab","grabbing"];for(const n of $)e[`cursor-${n}`]=`cursor:${n};`;for(const n of[0,10,20,30,40,50])e[`z-${n}`]=`z-index:${n};`;Object.assign(e,{"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;","not-sr-only":"position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;","pointer-events-none":"pointer-events:none;","pointer-events-auto":"pointer-events:auto;",visible:"visibility:visible;",invisible:"visibility:hidden;"}),Object.assign(e,{"w-full":"width:100%;","w-screen":"width:100dvw;","h-full":"height:100%;","h-screen":"height:100dvh;","max-w-full":"max-width:100%;","max-h-full":"max-height:100%;","max-w-screen":"max-width:100dvw;","max-h-screen":"max-height:100dvh;","min-w-0":"min-width:0;","min-h-0":"min-height:0;","min-w-full":"min-width:100%;","min-h-full":"min-height:100%;","min-w-screen":"min-width:100dvw;","min-h-screen":"min-height:100dvh;","w-auto":"width:auto;","h-auto":"height:auto;","w-fit":"width:fit-content;","h-fit":"height:fit-content;","w-min":"width:min-content;","h-min":"height:min-content;","w-max":"width:max-content;","h-max":"height:max-content;","m-auto":"margin:auto;","mx-auto":"margin-inline:auto;","my-auto":"margin-block:auto;"});for(const[n,c]of Object.entries(Ve))e[`max-w-${n}`]=`max-width:calc(${K} * ${c});`,e[`min-w-${n}`]=`min-width:calc(${K} * ${c});`,e[`w-${n}`]=`width:calc(${K} * ${c});`,e[`max-h-${n}`]=`max-height:calc(${K} * ${c});`,e[`min-h-${n}`]=`min-height:calc(${K} * ${c});`,e[`h-${n}`]=`height:calc(${K} * ${c});`;Object.assign(e,{transition:"transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;","transition-none":"transition-property:none;","transition-all":"transition-property:all;","transition-colors":"transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;","transition-shadow":"transition-property:box-shadow;","transition-opacity":"transition-property:opacity;","transition-transform":"transition-property:transform;","ease-linear":"transition-timing-function:linear;","ease-in":"transition-timing-function:ease-in;","ease-out":"transition-timing-function:ease-out;","ease-in-out":"transition-timing-function:ease-in-out;","duration-75":"transition-duration:75ms;","duration-100":"transition-duration:100ms;","duration-150":"transition-duration:150ms;","duration-200":"transition-duration:200ms;","duration-300":"transition-duration:300ms;","duration-500":"transition-duration:500ms;","duration-700":"transition-duration:700ms;","duration-1000":"transition-duration:1000ms;"}),Object.assign(e,{"scale-0":"transform:scale(0);","scale-50":"transform:scale(0.5);","scale-75":"transform:scale(0.75);","scale-90":"transform:scale(0.9);","scale-95":"transform:scale(0.95);","scale-100":"transform:scale(1);","scale-105":"transform:scale(1.05);","scale-110":"transform:scale(1.1);","scale-125":"transform:scale(1.25);","scale-150":"transform:scale(1.5);","rotate-0":"transform:rotate(0deg);","rotate-1":"transform:rotate(1deg);","rotate-2":"transform:rotate(2deg);","rotate-3":"transform:rotate(3deg);","rotate-6":"transform:rotate(6deg);","rotate-12":"transform:rotate(12deg);","rotate-45":"transform:rotate(45deg);","rotate-90":"transform:rotate(90deg);","rotate-180":"transform:rotate(180deg);","-rotate-1":"transform:rotate(-1deg);","-rotate-2":"transform:rotate(-2deg);","-rotate-3":"transform:rotate(-3deg);","-rotate-6":"transform:rotate(-6deg);","-rotate-12":"transform:rotate(-12deg);","-rotate-45":"transform:rotate(-45deg);","-rotate-90":"transform:rotate(-90deg);","-rotate-180":"transform:rotate(-180deg);"}),Object.assign(e,{"aspect-auto":"aspect-ratio:auto;","aspect-square":"aspect-ratio:1 / 1;","aspect-video":"aspect-ratio:16 / 9;"}),Object.assign(e,{"object-contain":"object-fit:contain;","object-cover":"object-fit:cover;","object-fill":"object-fit:fill;","object-none":"object-fit:none;","object-scale-down":"object-fit:scale-down;","object-bottom":"object-position:bottom;","object-center":"object-position:center;","object-left":"object-position:left;","object-left-bottom":"object-position:left bottom;","object-left-top":"object-position:left top;","object-right":"object-position:right;","object-right-bottom":"object-position:right bottom;","object-right-top":"object-position:right top;","object-top":"object-position:top;"});for(let n=1;n<=6;n++)e[`line-clamp-${n}`]=`display:-webkit-box;-webkit-line-clamp:${n};-webkit-box-orient:vertical;overflow:hidden;`;e["line-clamp-none"]="overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none;";for(let n=1;n<=12;n++)e[`order-${n}`]=`order:${n};`;e["order-first"]="order:-9999;",e["order-last"]="order:9999;",e["order-none"]="order:0;";for(let n=0;n<=12;n++)n<=1||(e[`grow-${n}`]=`flex-grow:${n};`,e[`shrink-${n}`]=`flex-shrink:${n};`);return Object.assign(e,{"bg-linear-to-t":"background-image:linear-gradient(to top, var(--cer-gradient-stops));","bg-linear-to-tr":"background-image:linear-gradient(to top right, var(--cer-gradient-stops));","bg-linear-to-r":"background-image:linear-gradient(to right, var(--cer-gradient-stops));","bg-linear-to-br":"background-image:linear-gradient(to bottom right, var(--cer-gradient-stops));","bg-linear-to-b":"background-image:linear-gradient(to bottom, var(--cer-gradient-stops));","bg-linear-to-bl":"background-image:linear-gradient(to bottom left, var(--cer-gradient-stops));","bg-linear-to-l":"background-image:linear-gradient(to left, var(--cer-gradient-stops));","bg-linear-to-tl":"background-image:linear-gradient(to top left, var(--cer-gradient-stops));","bg-radial":"background-image:radial-gradient(ellipse at center, var(--cer-gradient-stops));","bg-radial-at-t":"background-image:radial-gradient(ellipse at top, var(--cer-gradient-stops));","bg-radial-at-tr":"background-image:radial-gradient(ellipse at top right, var(--cer-gradient-stops));","bg-radial-at-r":"background-image:radial-gradient(ellipse at right, var(--cer-gradient-stops));","bg-radial-at-br":"background-image:radial-gradient(ellipse at bottom right, var(--cer-gradient-stops));","bg-radial-at-b":"background-image:radial-gradient(ellipse at bottom, var(--cer-gradient-stops));","bg-radial-at-bl":"background-image:radial-gradient(ellipse at bottom left, var(--cer-gradient-stops));","bg-radial-at-l":"background-image:radial-gradient(ellipse at left, var(--cer-gradient-stops));","bg-radial-at-tl":"background-image:radial-gradient(ellipse at top left, var(--cer-gradient-stops));","bg-radial-circle":"background-image:radial-gradient(circle at center, var(--cer-gradient-stops));","bg-radial-circle-at-t":"background-image:radial-gradient(circle at top, var(--cer-gradient-stops));","bg-radial-circle-at-tr":"background-image:radial-gradient(circle at top right, var(--cer-gradient-stops));","bg-radial-circle-at-r":"background-image:radial-gradient(circle at right, var(--cer-gradient-stops));","bg-radial-circle-at-br":"background-image:radial-gradient(circle at bottom right, var(--cer-gradient-stops));","bg-radial-circle-at-b":"background-image:radial-gradient(circle at bottom, var(--cer-gradient-stops));","bg-radial-circle-at-bl":"background-image:radial-gradient(circle at bottom left, var(--cer-gradient-stops));","bg-radial-circle-at-l":"background-image:radial-gradient(circle at left, var(--cer-gradient-stops));","bg-radial-circle-at-tl":"background-image:radial-gradient(circle at top left, var(--cer-gradient-stops));","bg-conic":"background-image:conic-gradient(from 0deg at center, var(--cer-gradient-stops));","bg-conic-at-t":"background-image:conic-gradient(from 0deg at top, var(--cer-gradient-stops));","bg-conic-at-tr":"background-image:conic-gradient(from 0deg at top right, var(--cer-gradient-stops));","bg-conic-at-r":"background-image:conic-gradient(from 0deg at right, var(--cer-gradient-stops));","bg-conic-at-br":"background-image:conic-gradient(from 0deg at bottom right, var(--cer-gradient-stops));","bg-conic-at-b":"background-image:conic-gradient(from 0deg at bottom, var(--cer-gradient-stops));","bg-conic-at-bl":"background-image:conic-gradient(from 0deg at bottom left, var(--cer-gradient-stops));","bg-conic-at-l":"background-image:conic-gradient(from 0deg at left, var(--cer-gradient-stops));","bg-conic-at-tl":"background-image:conic-gradient(from 0deg at top left, var(--cer-gradient-stops));"}),Object.assign(e,{"prose-invert":`
249
- --cer-prose-body:var(--cer-color-neutral-200);
250
- --cer-prose-headings:var(--cer-color-neutral-50);
251
- --cer-prose-lead:var(--cer-color-neutral-300);
252
- --cer-prose-bold:var(--cer-color-neutral-50);
253
- --cer-prose-quotes:var(--cer-color-neutral-300);
254
- --cer-prose-quote-border:var(--cer-color-neutral-700);
255
- --cer-prose-code:var(--cer-color-neutral-200);
256
- --cer-prose-code-bg:var(--cer-color-neutral-900);
257
- --cer-prose-pre-code:var(--cer-color-neutral-200);
258
- --cer-prose-pre-bg:var(--cer-color-neutral-900);
259
- --cer-prose-pre-border:var(--cer-color-neutral-800);
260
- --cer-prose-hr:var(--cer-color-neutral-700);
261
- --cer-prose-caps:var(--cer-color-neutral-400);
262
- --cer-prose-list-marker:var(--cer-color-neutral-400);
263
- --cer-prose-list-marker-strong:var(--cer-color-neutral-300);
264
- --cer-prose-counters:var(--cer-color-neutral-300);
265
- --cer-prose-bullets:var(--cer-color-neutral-300);
266
- --cer-prose-img-caption:var(--cer-color-neutral-400);
267
- --cer-prose-table-border:var(--cer-color-neutral-700);
268
- --cer-prose-table-head:var(--cer-color-neutral-200);
269
- --cer-prose-links:var(--cer-prose-invert-links,var(--cer-color-neutral-300));
270
- --cer-prose-links-hover:var(--cer-prose-invert-links-hover,var(--cer-color-neutral-100));
271
- `.replace(/\s+/g,""),"prose-primary":`
272
- --cer-prose-links:var(--cer-color-primary-700);
273
- --cer-prose-links-hover:var(--cer-color-primary-500);
274
- --cer-prose-invert-links:var(--cer-color-primary-300);
275
- --cer-prose-invert-links-hover:var(--cer-color-primary-100);
276
- `.replace(/\s+/g,""),"prose-secondary":`
277
- --cer-prose-links:var(--cer-color-secondary-700);
278
- --cer-prose-links-hover:var(--cer-color-secondary-500);
279
- --cer-prose-invert-links:var(--cer-color-secondary-300);
280
- --cer-prose-invert-links-hover:var(--cer-color-secondary-100);
281
- `.replace(/\s+/g,""),"prose-success":`
282
- --cer-prose-links:var(--cer-color-success-700);
283
- --cer-prose-links-hover:var(--cer-color-success-500);
284
- --cer-prose-invert-links:var(--cer-color-success-300);
285
- --cer-prose-invert-links-hover:var(--cer-color-success-100);
286
- `.replace(/\s+/g,""),"prose-warning":`
287
- --cer-prose-links:var(--cer-color-warning-700);
288
- --cer-prose-links-hover:var(--cer-color-warning-500);
289
- --cer-prose-invert-links:var(--cer-color-warning-300);
290
- --cer-prose-invert-links-hover:var(--cer-color-warning-100);
291
- `.replace(/\s+/g,""),"prose-error":`
292
- --cer-prose-links:var(--cer-color-error-700);
293
- --cer-prose-links-hover:var(--cer-color-error-500);
294
- --cer-prose-invert-links:var(--cer-color-error-300);
295
- --cer-prose-invert-links-hover:var(--cer-color-error-100);
296
- `.replace(/\s+/g,""),"prose-info":`
297
- --cer-prose-links:var(--cer-color-info-700);
298
- --cer-prose-links-hover:var(--cer-color-info-500);
299
- --cer-prose-invert-links:var(--cer-color-info-300);
300
- --cer-prose-invert-links-hover:var(--cer-color-info-100);
301
- `.replace(/\s+/g,"")}),e},pe=Be();function He(e){return/^prose(?:-(sm|lg|xl|2xl))?$/.test(e)?(qe(e),""):null}function ke(e){return/^prose-([a-z0-9]+):(.+)$/.test(e)?We(e,pe,ue,fe,he,ge,me,ae):null}function q(e,t){let a=0;for(let o=0;o<e.length;o++){const r=e[o];if(r==="["||r==="(")a++;else if((r==="]"||r===")")&&a>0)a--;else if(a===0&&(r===">"||r==="+"||r==="~"||r===" "))return e.slice(0,o)+t+e.slice(o)}return e+t}const Se={before:(e,t)=>`${e}::before{${t}}`,after:(e,t)=>`${e}::after{${t}}`,hover:(e,t)=>`${q(e,":hover")}{${t}}`,focus:(e,t)=>`${q(e,":focus")}{${t}}`,active:(e,t)=>`${q(e,":active")}{${t}}`,disabled:(e,t)=>`${q(e,":disabled")}{${t}}`,visited:(e,t)=>`${q(e,":visited")}{${t}}`,checked:(e,t)=>`${q(e,":checked")}{${t}}`,first:(e,t)=>`${q(e,":first-child")}{${t}}`,last:(e,t)=>`${q(e,":last-child")}{${t}}`,odd:(e,t)=>`${q(e,":nth-child(odd)")}{${t}}`,even:(e,t)=>`${q(e,":nth-child(even)")}{${t}}`,"focus-within":(e,t)=>`${q(e,":focus-within")}{${t}}`,"focus-visible":(e,t)=>`${q(e,":focus-visible")}{${t}}`,"group-hover":(e,t)=>`.group:hover ${e}{${t}}`,"group-focus":(e,t)=>`.group:focus ${e}{${t}}`,"group-active":(e,t)=>`.group:active ${e}{${t}}`,"group-disabled":(e,t)=>`.group:disabled ${e}{${t}}`,"peer-hover":(e,t)=>`.peer:hover ~ ${e}{${t}}`,"peer-focus":(e,t)=>`.peer:focus ~ ${e}{${t}}`,"peer-checked":(e,t)=>`.peer:checked ~ ${e}{${t}}`,"peer-disabled":(e,t)=>`.peer:disabled ~ ${e}{${t}}`,"dark-class":(e,t)=>`:host(.dark) ${e}{${t}}`},te={sm:"(min-width:640px)",md:"(min-width:768px)",lg:"(min-width:1024px)",xl:"(min-width:1280px)","2xl":"(min-width:1536px)",dark:"(prefers-color-scheme: dark)"},je={xs:"(min-width:20rem)",sm:"(min-width:24rem)",md:"(min-width:28rem)",lg:"(min-width:32rem)",xl:"(min-width:36rem)","2xl":"(min-width:42rem)","3xl":"(min-width:48rem)","4xl":"(min-width:56rem)","5xl":"(min-width:64rem)","6xl":"(min-width:72rem)","7xl":"(min-width:80rem)"},oe=["sm","md","lg","xl","2xl"],le=["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"];function ue(e){const t=e.startsWith("-"),a=t?e.slice(1):e,o=a.lastIndexOf("-");if(o===-1)return null;const r=a.slice(0,o),i=a.slice(o+1);if(!we[r])return null;if(i.includes("/")){const[n,c]=i.split("/").map(j=>parseFloat(j));if(Number.isNaN(n)||Number.isNaN(c)||c===0)return null;const u=n/c*100;return we[r].map(j=>`${j}:${u}%;`).join("")}const l=parseFloat(i);if(Number.isNaN(l))return null;const $=t?"-":"";return we[r].map(n=>`${n}:calc(${$}${K} * ${l});`).join("")}function fe(e){const t=e.startsWith("-"),o=(t?e.slice(1):e).match(/^space-(x|y)-(.+)$/);if(!o)return null;const[,r,i]=o,l=r==="x";if(i==="reverse")return l?"--cer-space-x-reverse:1;":"--cer-space-y-reverse:1;";if(i.includes("/")){const[u,j]=i.split("/").map(p=>parseFloat(p));if(Number.isNaN(u)||Number.isNaN(j)||j===0)return null;const y=u/j*100,F=t?"-":"";return l?`--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${F}${y}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${F}${y}% * var(--cer-space-x-reverse));}`:`--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${F}${y}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${F}${y}% * var(--cer-space-y-reverse));}`}const $=parseFloat(i);if(Number.isNaN($))return null;const c=`calc(${t?"-":""}${K} * ${$})`;return l?`--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${c} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${c} * var(--cer-space-x-reverse));}`:`--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${c} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${c} * var(--cer-space-y-reverse));}`}function de(e){let t=e.replace("#","");t.length===3&&(t=t.split("").map(o=>o+o).join(""));const a=parseInt(t,16);return`${a>>16&255} ${a>>8&255} ${a&255}`}const Ue=/^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/,Ke={bg:"background-color",decoration:"text-decoration-color",text:"color",border:"border-color",outline:"outline-color",caret:"caret-color",accent:"accent-color",fill:"fill",stroke:"stroke"};function Ge(e){const t=Ue.exec(e);if(!t)return null;const[,a,o,r="DEFAULT"]=t,i=Ee[o]?.[r];if(!i)return null;if(a==="shadow")return`--cer-shadow-color:${i};`;const l=Ke[a];return l?`${l}:${i};`:null}function Qe(e){const t=e.indexOf("/");if(t===-1)return{base:e};const a=e.slice(0,t),o=e.slice(t+1),r=parseInt(o,10);return isNaN(r)||r<0||r>100?{base:a}:{base:a,opacity:r/100}}function ge(e){const{base:t,opacity:a}=Qe(e),o=Ge(t);if(o){if(a!==void 0){if(o.includes("var(")){const l=/var\([^)]*\)/.exec(o);if(l){const $=l[0],n=a*100,c=`color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100-n}%)`,u=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($),j=/^([a-z-]+):/.exec(o),y=j?j[1]:"background-color";if(u){const p=`rgb(${de(u[0])} / ${a})`,g=$.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,p);return`${y}:${g};__CE_COLOR_MIX_SPLIT__${y}:${c};`}return`${y}:${c};`}}const i=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(o);if(i){const l=de(i[0]);return o.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,`rgb(${l} / ${a})`)}}return o}const r=ae(t);if(r&&a!==void 0){if(r.includes("var(")){const l=/var\([^)]*\)/.exec(r);if(l){const $=l[0],n=a*100,c=`color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100-n}%)`,u=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($),j=/^([a-z-]+):/.exec(r),y=j?j[1]:null;if(u&&y){const p=`rgb(${de(u[0])} / ${a})`,g=$.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,p);return`${y}:${g};__CE_COLOR_MIX_SPLIT__${y}:${c};`}return r.replace($,c)}}const i=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(r);if(i){const l=de(i[0]);return r.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,`rgb(${l} / ${a})`)}}return r}function me(e){const t=/^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);if(!t)return null;const[,a,o,r="DEFAULT"]=t,i=Ee[o]?.[r];if(!i)return null;switch(a){case"from":return`--cer-gradient-from:${i} var(--cer-gradient-from-position);--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), var(--cer-gradient-to);`;case"to":return`--cer-gradient-to:${i} var(--cer-gradient-to-position);`;case"via":return`--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${i} var(--cer-gradient-via-position), var(--cer-gradient-to);`;default:return null}}function he(e){const t=/^opacity-(\d{1,3})$/.exec(e);if(!t)return null;const a=parseInt(t[1],10);return a<0||a>100?null:`opacity:${a/100};`}function ae(e){if(e.startsWith("[")&&e.endsWith("]")&&!e.includes("-[")){const l=e.slice(1,-1).trim(),$=l.indexOf(":");if($===-1)return null;const n=l.slice(0,$).trim();let c=l.slice($+1).trim();return/^[a-zA-Z][a-zA-Z0-9-]*$/.test(n)?(c=c.replace(/_/g," "),c=c.replace(/url\('\s*([^']*?)\s*'\)/g,'url("$1")'),c=c.replace(/^'([^']*)'$/g,'"$1"'),`${n}:${c};`):null}const t=e.indexOf("-[");if(t<=0||!e.endsWith("]"))return null;const a=e.slice(0,t),o=e.slice(t+2,-1).replace(/_/g," "),r={bg:"background-color",shadow:"box-shadow",p:"padding",px:"padding-inline",py:"padding-block",m:"margin",mx:"margin-inline",my:"margin-block",w:"width",h:"height","min-w":"min-width","max-w":"max-width","min-h":"min-height","max-h":"max-height","border-t":"border-top-width","border-b":"border-bottom-width","border-l":"border-left-width","border-r":"border-right-width","border-x":"border-inline-width","border-y":"border-block-width","grid-cols":"grid-template-columns","grid-rows":"grid-template-rows",transition:"transition-property",ease:"transition-timing-function",delay:"transition-delay",duration:"transition-duration",list:"list-style",break:"word-break",flex:"flex-direction",items:"align-items",justify:"justify-content",content:"align-content",self:"align-self",basis:"flex-basis",tracking:"letter-spacing",leading:"line-height",z:"z-index",opacity:"opacity"};if(a==="text")return/^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(o)?`font-size:${o};`:`color:${o};`;if(a==="rotate")return`transform:rotate(${o});`;if(a==="scale")return`transform:scale(${o});`;if(a==="translate-x")return`transform:translateX(${o});`;if(a==="translate-y")return`transform:translateY(${o});`;const i=r[a]??a.replace(/_/g,"-");return i&&o?`${i}:${o};`:null}function Ce(e){if(e.startsWith("[")&&e.endsWith("]")){const a=e.slice(1,-1);return a.includes("&")?a:e}const t=e.indexOf("-[");if(t>0&&e.endsWith("]")){const a=e.slice(t+2,-1).replace(/_/g,"-");return a.includes("&")?a:e.replace(/_/g,"-")}return null}function $e(e){if(typeof CSS<"u"&&CSS.escape)return CSS.escape(e);const t=String(e),a=t.length;let o="",r=0;for(;r<a;){const i=t.charAt(r),l=t.charCodeAt(r);l===0?o+="�":l>=1&&l<=31||l===127||r===0&&l>=48&&l<=57||r===1&&l>=48&&l<=57&&t.charCodeAt(0)===45?o+="\\"+l.toString(16)+" ":r===0&&a===1&&l===45?o+="\\"+i:l>=128||l===45||l===95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122?o+=i:o+="\\"+i,r++}return o}function ne(e){return"."+$e(e)}function Xe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Je(e){const t=/class\s*=\s*(['"])([\s\S]*?)\1/g,a=[];let o;for(;o=t.exec(e);){const r=o[2].split(/\s+/).filter(Boolean);r.length&&a.push(...r)}return a}const ie=new Map,Ze=16,Te=1e3;function Oe(e){const t=ie.get(e);if(t&&Date.now()-t.timestamp<Ze)return t.css;const a=Je(e);if(!a.length)return"";const o=new Set(a),r=[[],[],[],[]],i={},l=(p,g=!1)=>{const h=g?`dark|${p}`:p;if(h in i)return i[h];const x=u(p,g);return i[h]=x,x},$=p=>{const g=p.some(T=>oe.includes(T)),h=p.some(T=>T.startsWith("@")&&(le.includes(T.slice(1))||T.match(/^@\[.+\]$/))),x=p.includes("dark");return p.length?!g&&!x&&!h?1:x&&(g||h)?3:2:0},n=p=>{const g=[];let h="",x=0;for(let T=0;T<p.length;T++){const k=p[T];k==="["||k==="("?x++:(k==="]"||k===")")&&x--,k===":"&&x===0?(g.push(h),h=""):h+=k}return h&&g.push(h),g},c={hover:":hover",focus:":focus",active:":active",visited:":visited",disabled:":disabled",checked:":checked",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)","focus-within":":focus-within","focus-visible":":focus-visible"},u=(p,g=!1)=>{const h=n(p);let x="",T=!1;for(const s of h){let b=s;if(b.startsWith("!")&&(T=!0,b=b.slice(1)),pe[b]||ue(b)||fe(b)||he(b)||ge(b)||me(b)||ae(b)){x=s;break}}if(!x)return null;const k=x.replace(/^!/,""),P=pe[k]??ue(k)??fe(k)??he(k)??ge(k)??me(k)??ae(k);if(!P)return null;const W=h.indexOf(x);let E=W>=0?h.slice(0,W):[];g&&(E=E.filter(s=>s!=="dark"));const A=ne(p),R=T?P.replace(/;/g," !important;"):P,d="__SUBJECT__";let m=d;const C=[];for(const s of E)s.startsWith("group-")?(m=`.group:${s.slice(6)} ${m}`,C.push(s)):s.startsWith("peer-")&&(m=m.replace(d,`.peer:${s.slice(5)}~${d}`),C.push(s));E=E.filter(s=>!C.includes(s));const _=[],L=[];let M=null;for(const s of E){if(s==="dark"||oe.includes(s)||s.startsWith("@")&&(le.includes(s.slice(1))||s.match(/^@\[.+\]$/)))continue;const b=Ce(s);if(b){M=b;continue}const S=c[s];if(S){M?L.push(S):_.push(S);continue}const v=Se[s];typeof v=="function"&&(m=v(m,R).split("{")[0])}const z=_.join(""),D=L.join("");function I(s,b){if(!b)return s;let S=0,v=0;if(s.length&&(s[0]===">"||s[0]==="+"||s[0]==="~"||s[0]===" ")){let f=1;for(;f<s.length&&s[f]===" ";)f++;for(;f<s.length;f++){const O=s[f];if(O==="["?S++:O==="]"&&S>0?S--:O==="("?v++:O===")"&&v>0&&v--,S===0&&v===0&&(s[f]===">"||s[f]==="+"||s[f]==="~"||s[f]===" "))return s.slice(0,f)+b+s.slice(f)}return s+b}for(let f=0;f<s.length;f++){const O=s[f];if(O==="["?S++:O==="]"&&S>0?S--:O==="("?v++:O===")"&&v>0&&v--,S===0&&v===0&&(O===">"||O==="+"||O==="~"||O===" "))return s.slice(0,f)+b+s.slice(f)}return s+b}if(M)if(M.includes("&")){const s=M.indexOf("&"),b=M.slice(0,s),S=M.slice(s+1),v=d+z;if(_.length===0)m=m.replace(d,b+v+D+S);else{const f=I(S,D);m=m.replace(d,b+v+f)}}else m=m.replace(d,`${M}${d+z}`),D&&(m=m.replace(d,`${d}${D}`));else m=m.replace(d,d+z+D);m=m.replace(new RegExp(d,"g"),A);const V="__CE_COLOR_MIX_SPLIT__",Z=R.includes(V)?R.split(V).map(s=>`${m}{${s}}`):[`${m}{${R}}`],G=E.filter(s=>oe.includes(s)),X=E.filter(s=>s.startsWith("@")&&(le.includes(s.slice(1))||s.match(/^@\[.+\]$/))),B=G.length?G[G.length-1]:null,N=X.length?X[X.length-1]:null,Y=E.includes("dark");let w="",H="";if(Y&&B?w=`@media (prefers-color-scheme: dark) and ${te[B]}`:Y?w="@media (prefers-color-scheme: dark)":B&&(w=`@media ${te[B]}`),N)if(N.startsWith("@[")&&N.endsWith("]")){const s=N.slice(2,-1);if(!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(s))return null;H=`@container (min-width:${s})`}else{const s=N.slice(1);H=`@container ${je[s]||`(min-width:${s})`}`}const xe=s=>w&&H?`${w}${H}{${s}}`:w?`${w}{${s}}`:H?`${H}{${s}}`:s;return Z.map(xe).join("")};for(const p of o){const g=n(p),h=g.slice(0,-1),x=g[g.length-1];if(He(x)!==null){if(h.length===0)r[0].push(`${ne(p)}{}`);else{const d=Ae(x);if(!d)continue;const m=ne(p),C=ne(x);let _=d.replace(new RegExp(Xe(C),"g"),m);const L=h.filter(z=>oe.includes(z));if(L.length>0){const z=L[L.length-1];_=`${`@media ${te[z]}`}{${_}}`}h.includes("dark")&&(_=`@media (prefers-color-scheme: dark){${_}}`);const M=$(h);r[M].push(_)}continue}let k=-1;for(let d=g.length-1;d>=0;d--){const m=g.slice(d).join(":");if(ke(m)){k=d;break}}if(k>=0){const d=g.slice(k).join(":"),m=g.slice(0,k),C=ke(d);if(!C)continue;if(m.length===0){r[0].push(C);continue}const _=$e(p),L=$e(d),M=C.replace(new RegExp(`\\.${L.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"g"),`.${_}`),z=/(.+?)\s+(.+?)\{([^}]+)\}/g,D=[...M.matchAll(z)];if(D.length===0){r[0].push(C);continue}const I=$(m),V={hover:":hover",focus:":focus",active:":active",visited:":visited",disabled:":disabled",checked:":checked",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)","focus-within":":focus-within","focus-visible":":focus-visible"},Z=[],G=[],X=[],B=[],N=[];let Y=!1;for(const w of m)w.startsWith("group-")||w.startsWith("peer-")?Z.push(w):w==="dark"||w==="dark-class"?Y=!0:oe.includes(w)?B.push(w):w.startsWith("@")&&(le.includes(w.slice(1))||w.match(/^@\[.+\]$/))?N.push(w):w.startsWith("[")&&w.endsWith("]")?X.push(w):(V[w]||Se[w])&&G.push(w);for(const w of D){const[,H,xe,s]=w;let b=`${H} ${xe}`;for(const v of Z)if(v.startsWith("group-")){const f=v.slice(6);b=`.group${V[f]||`:${f}`} ${b}`}else if(v.startsWith("peer-")){const f=v.slice(5);b=`.peer${V[f]||`:${f}`}~${b}`}if(G.length>0){const v=G.map(f=>V[f]||`:${f}`).join("");b=`${b}${v}`}for(const v of X){const f=Ce(v);if(f&&f.includes("&")){const O=f.indexOf("&"),ee=f.slice(0,O),se=f.slice(O+1);b=`${ee}${b}${se}`}}let S=`${b}{${s}}`;if(Y&&(S=`@media (prefers-color-scheme: dark){${S}}`),N.length>0){const v=N[N.length-1];if(v.startsWith("@[")&&v.endsWith("]")){const f=v.slice(2,-1);/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(f)&&(S=`@container (min-width:${f}){${S}}`)}else{const f=v.slice(1),ee={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"}[f];if(ee){const se=p.match(/@([^/]+)\//)?.[1]||"";S=se?`@container ${se} (min-width: ${ee}){${S}}`:`@container (min-width: ${ee}){${S}}`}}}if(B.length>0){const v=B[B.length-1];S=`${`@media ${te[v]}`}{${S}}`}r[I].push(S)}continue}const P=g.find(d=>pe[d.replace(/^!/,"")]||ue(d.replace(/^!/,""))||fe(d.replace(/^!/,""))||he(d.replace(/^!/,""))||ge(d.replace(/^!/,""))||me(d.replace(/^!/,""))||ae(d.replace(/^!/,"")));if(!P)continue;const W=g.indexOf(P),E=W>=0?g.slice(0,W):[],A=$(E),R=l(p);R&&r[A].push(R)}const j=/^(from|via|to)-[a-z]+-?\d{2,3}?$/;for(const p of o)if(j.test(p)){if(r.flat().join("").includes(ne(p)))continue;const h=l(p);h&&r[0].push(h)}const y=p=>p.sort((g,h)=>{const x=A=>{const R={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};for(const[d,m]of Object.entries(R))if(A.includes(`@media ${te[d]}`))return m;return-1},T=A=>{const R={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};for(const[d,m]of Object.entries(R))if(A.includes(`@container ${je[d]}`))return m;if(A.includes("@container (min-width:")){const d=/@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(A);if(d){const m=parseFloat(d[1]),C=d[2];return C==="rem"||C==="em"?m*16:m}}return-1},k=x(g),P=x(h),W=T(g),E=T(h);return k>=0&&P>=0&&k!==P?k-P:W>=0&&E>=0&&W!==E?W-E:0});r[2]=y(r[2]),r[3]=y(r[3]);const F=r.flat().join("");return ie.size>=Te&&Array.from(ie.keys()).slice(0,Math.floor(Te/2)).forEach(g=>ie.delete(g)),ie.set(e,{css:F,timestamp:Date.now()}),F}const J={fade:{enterFrom:"opacity-0",enterActive:"transition-opacity duration-300 ease-out",enterTo:"opacity-100",leaveFrom:"opacity-100",leaveActive:"transition-opacity duration-200 ease-in",leaveTo:"opacity-0"},"slide-right":{enterFrom:"translate-x-[100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-x-[0%] opacity-100",leaveFrom:"translate-x-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-x-[100%] opacity-0"},"slide-left":{enterFrom:"translate-x-[-100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-x-[0%] opacity-100",leaveFrom:"translate-x-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-x-[-100%] opacity-0"},"slide-up":{enterFrom:"translate-y-[100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-y-[0%] opacity-100",leaveFrom:"translate-y-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-y-[100%] opacity-0"},"slide-down":{enterFrom:"translate-y-[-100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-y-[0%] opacity-100",leaveFrom:"translate-y-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-y-[-100%] opacity-0"},scale:{enterFrom:"scale-95 opacity-0",enterActive:"transition-all duration-200 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-150 ease-in",leaveTo:"scale-95 opacity-0"},"scale-down":{enterFrom:"scale-105 opacity-0",enterActive:"transition-all duration-200 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-150 ease-in",leaveTo:"scale-105 opacity-0"},bounce:{enterFrom:"scale-0 opacity-0",enterActive:"transition-all duration-500 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"scale-0 opacity-0"},zoom:{enterFrom:"scale-0 opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"scale-0 opacity-0"},flip:{enterFrom:"rotate-[90deg] opacity-0",enterActive:"transition-all duration-400 ease-out",enterTo:"rotate-[0deg] opacity-100",leaveFrom:"rotate-[0deg] opacity-100",leaveActive:"transition-all duration-300 ease-in",leaveTo:"rotate-[90deg] opacity-0"}};function Ye(e,t){const{preset:a,show:o,mode:r="default",duration:i,appear:l=!1,css:$=!0,name:n,enterFrom:c,enterActive:u,enterTo:j,leaveFrom:y,leaveActive:F,leaveTo:p,onBeforeEnter:g,onEnter:h,onAfterEnter:x,onEnterCancelled:T,onBeforeLeave:k,onLeave:P,onAfterLeave:W,onLeaveCancelled:E}=e;let A;a&&J[a]?(A={...J[a]},c&&(A.enterFrom=c),u&&(A.enterActive=u),j&&(A.enterTo=j),y&&(A.leaveFrom=y),F&&(A.leaveActive=F),p&&(A.leaveTo=p)):A={enterFrom:c,enterActive:u,enterTo:j,leaveFrom:y,leaveActive:F,leaveTo:p};const R=n||(a?`transition-${a}`:"transition"),d=Me.anchorBlock(o?t:[],R);return d._transition={name:R,classes:A,mode:r,duration:i,appear:l,css:$,state:o?"visible":"hidden",hooks:{onBeforeEnter:g,onEnter:h,onAfterEnter:x,onEnterCancelled:T,onBeforeLeave:k,onLeave:P,onAfterLeave:W,onLeaveCancelled:E}},d}function er(e,t){const{tag:a="div",moveClass:o="transition-transform duration-300",preset:r,show:i=!0,mode:l="default",duration:$,appear:n=!1,css:c=!0,name:u,class:j,style:y,enterFrom:F,enterActive:p,enterTo:g,leaveFrom:h,leaveActive:x,leaveTo:T,onBeforeEnter:k,onEnter:P,onAfterEnter:W,onEnterCancelled:E,onBeforeLeave:A,onLeave:R,onAfterLeave:d,onLeaveCancelled:m}=e;let C;r&&J[r]?(C={...J[r]},F&&(C.enterFrom=F),p&&(C.enterActive=p),g&&(C.enterTo=g),h&&(C.leaveFrom=h),x&&(C.leaveActive=x),T&&(C.leaveTo=T)):C={enterFrom:F,enterActive:p,enterTo:g,leaveFrom:h,leaveActive:x,leaveTo:T};const _=u||(r?`transition-group-${r}`:"transition-group"),L=[];for(const z of i?t:[])if(z&&typeof z=="object"&&z.tag==="#anchor"){const D=Array.isArray(z.children)?z.children:[];for(const I of D)if(I&&typeof I=="object"){const V={...I,key:z.key||I.key,props:{...I.props,_anchorKey:z.key}};L.push(V)}else L.push(I)}else L.push(z);const M=(()=>{if(y)return typeof y=="string"?y:Object.entries(y).map(([z,D])=>`${z}: ${D}`).join("; ")})();return{tag:a,children:L,key:_,props:{attrs:{...j?{class:j}:{},...M?{style:M}:{}},_transitionGroup:{name:_,classes:C,moveClass:o,mode:l,duration:$,appear:n,css:c,hooks:{onBeforeEnter:k,onEnter:P,onAfterEnter:W,onEnterCancelled:E,onBeforeLeave:A,onLeave:R,onAfterLeave:d,onLeaveCancelled:m}}}}}function rr(e){return{...e}}let Q=null;function Re(){if(!Q){if(typeof CSSStyleSheet>"u")return Q={cssRules:[],replaceSync:()=>{},toString:()=>""},Q;const e=[];Object.values(J).forEach(o=>{o.enterFrom&&e.push(o.enterFrom),o.enterActive&&e.push(o.enterActive),o.enterTo&&e.push(o.enterTo),o.leaveFrom&&e.push(o.leaveFrom),o.leaveActive&&e.push(o.leaveActive),o.leaveTo&&e.push(o.leaveTo)});const t=`<div class="${e.join(" ")}"></div>`,a=Oe(t);try{Q=new CSSStyleSheet,Q.replaceSync(a)}catch{Q={cssRules:[],replaceSync:()=>{},toString:()=>a||""}}}return Q}function tr(){if(!(typeof window>"u"||typeof CSSStyleSheet>"u"))try{Re()}catch{}}tr();exports.Transition=Ye;exports.TransitionGroup=er;exports.baseReset=ye;exports.createTransitionPreset=rr;exports.css=ze;exports.getBaseResetSheet=De;exports.getProseSheet=Fe;exports.getTransitionStyleSheet=Re;exports.jitCSS=Oe;exports.minifyCSS=be;exports.sanitizeCSS=Ie;exports.transitionPresets=J;
302
- //# sourceMappingURL=transitions-RXe2brRm.cjs.map