@jasonshimmy/custom-elements-runtime 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/README.md +28 -7
  2. package/dist/css-utils-Bn-dO44e.js +203 -0
  3. package/dist/{css-utils-CC43BbEy.js.map → css-utils-Bn-dO44e.js.map} +1 -1
  4. package/dist/{css-utils-CC43BbEy.js → css-utils-CFeP8SK1.cjs} +5 -71
  5. package/dist/{css-utils-mgjmH8qX.cjs.map → css-utils-CFeP8SK1.cjs.map} +1 -1
  6. package/dist/custom-elements-runtime.cjs.js +3 -4
  7. package/dist/custom-elements-runtime.cjs.js.map +1 -1
  8. package/dist/custom-elements-runtime.colors.cjs.js +1 -2
  9. package/dist/custom-elements-runtime.colors.cjs.js.map +1 -1
  10. package/dist/custom-elements-runtime.colors.es.js +277 -277
  11. package/dist/custom-elements-runtime.colors.es.js.map +1 -1
  12. package/dist/custom-elements-runtime.directive-enhancements.cjs.js +1 -2
  13. package/dist/custom-elements-runtime.directive-enhancements.cjs.js.map +1 -1
  14. package/dist/custom-elements-runtime.directive-enhancements.es.js +106 -122
  15. package/dist/custom-elements-runtime.directive-enhancements.es.js.map +1 -1
  16. package/dist/custom-elements-runtime.directives.cjs.js +1 -2
  17. package/dist/custom-elements-runtime.directives.cjs.js.map +1 -1
  18. package/dist/custom-elements-runtime.directives.es.js +60 -65
  19. package/dist/custom-elements-runtime.directives.es.js.map +1 -1
  20. package/dist/custom-elements-runtime.dom-jit-css.cjs.js +1 -7
  21. package/dist/custom-elements-runtime.dom-jit-css.cjs.js.map +1 -1
  22. package/dist/custom-elements-runtime.dom-jit-css.es.js +103 -115
  23. package/dist/custom-elements-runtime.dom-jit-css.es.js.map +1 -1
  24. package/dist/custom-elements-runtime.es.js +206 -253
  25. package/dist/custom-elements-runtime.es.js.map +1 -1
  26. package/dist/custom-elements-runtime.event-bus.cjs.js +1 -2
  27. package/dist/custom-elements-runtime.event-bus.cjs.js.map +1 -1
  28. package/dist/custom-elements-runtime.event-bus.es.js +102 -108
  29. package/dist/custom-elements-runtime.event-bus.es.js.map +1 -1
  30. package/dist/custom-elements-runtime.jit-css.cjs.js +1 -2
  31. package/dist/custom-elements-runtime.jit-css.cjs.js.map +1 -1
  32. package/dist/custom-elements-runtime.jit-css.es.js +14 -32
  33. package/dist/custom-elements-runtime.jit-css.es.js.map +1 -1
  34. package/dist/custom-elements-runtime.router.cjs.js +20 -21
  35. package/dist/custom-elements-runtime.router.cjs.js.map +1 -1
  36. package/dist/custom-elements-runtime.router.es.js +866 -926
  37. package/dist/custom-elements-runtime.router.es.js.map +1 -1
  38. package/dist/custom-elements-runtime.ssr-middleware.cjs.js +3 -4
  39. package/dist/custom-elements-runtime.ssr-middleware.cjs.js.map +1 -1
  40. package/dist/custom-elements-runtime.ssr-middleware.es.js +67 -73
  41. package/dist/custom-elements-runtime.ssr-middleware.es.js.map +1 -1
  42. package/dist/custom-elements-runtime.ssr.cjs.js +1 -1
  43. package/dist/custom-elements-runtime.ssr.es.js +3 -14
  44. package/dist/custom-elements-runtime.store.cjs.js +1 -2
  45. package/dist/custom-elements-runtime.store.cjs.js.map +1 -1
  46. package/dist/custom-elements-runtime.store.es.js +32 -33
  47. package/dist/custom-elements-runtime.store.es.js.map +1 -1
  48. package/dist/custom-elements-runtime.transitions.cjs.js +1 -2
  49. package/dist/custom-elements-runtime.transitions.cjs.js.map +1 -1
  50. package/dist/custom-elements-runtime.transitions.es.js +200 -210
  51. package/dist/custom-elements-runtime.transitions.es.js.map +1 -1
  52. package/dist/custom-elements-runtime.vite-plugin.cjs.js +4 -2
  53. package/dist/custom-elements-runtime.vite-plugin.cjs.js.map +1 -1
  54. package/dist/custom-elements-runtime.vite-plugin.es.js +155 -78
  55. package/dist/custom-elements-runtime.vite-plugin.es.js.map +1 -1
  56. package/dist/helpers-DcEpRwq5.cjs +5 -0
  57. package/dist/helpers-DcEpRwq5.cjs.map +1 -0
  58. package/dist/helpers-tJgb4Qve.js +693 -0
  59. package/dist/helpers-tJgb4Qve.js.map +1 -0
  60. package/dist/hooks-CEUnvtsA.js +407 -0
  61. package/dist/hooks-CEUnvtsA.js.map +1 -0
  62. package/dist/hooks-CNfugc95.cjs +2 -0
  63. package/dist/hooks-CNfugc95.cjs.map +1 -0
  64. package/dist/logger-DIJ0UH3R.js +36 -0
  65. package/dist/{logger-L25axmB-.js.map → logger-DIJ0UH3R.js.map} +1 -1
  66. package/dist/logger-Dkht1dCX.cjs +2 -0
  67. package/dist/{logger-BYIN7ysT.cjs.map → logger-Dkht1dCX.cjs.map} +1 -1
  68. package/dist/namespace-helpers-CIUkG8Mn.js +56 -0
  69. package/dist/{namespace-helpers-BucDdgz_.js.map → namespace-helpers-CIUkG8Mn.js.map} +1 -1
  70. package/dist/namespace-helpers-yYIb7INq.cjs +2 -0
  71. package/dist/{namespace-helpers-Bf7rm9JV.cjs.map → namespace-helpers-yYIb7INq.cjs.map} +1 -1
  72. package/dist/runtime/tag-utils.d.ts +11 -0
  73. package/dist/ssr-BpYy9XlW.js +170 -0
  74. package/dist/{ssr-H9GDwbTy.js.map → ssr-BpYy9XlW.js.map} +1 -1
  75. package/dist/ssr-CFabTOyi.cjs +4 -0
  76. package/dist/{ssr-DRsGduIK.cjs.map → ssr-CFabTOyi.cjs.map} +1 -1
  77. package/dist/style-A8l3aQ52.cjs +55 -0
  78. package/dist/{style-Bjn8zDiZ.cjs.map → style-A8l3aQ52.cjs.map} +1 -1
  79. package/dist/style-DSSoCbC9.js +1877 -0
  80. package/dist/{style-DuDoj_xK.js.map → style-DSSoCbC9.js.map} +1 -1
  81. package/dist/tag-utils-CoSXTr1F.js +10 -0
  82. package/dist/tag-utils-CoSXTr1F.js.map +1 -0
  83. package/dist/tag-utils-XJ3dkcPQ.cjs +2 -0
  84. package/dist/tag-utils-XJ3dkcPQ.cjs.map +1 -0
  85. package/dist/template-compiler-B4B_jAPN.cjs +19 -0
  86. package/dist/{template-compiler-BB4JJdqk.cjs.map → template-compiler-B4B_jAPN.cjs.map} +1 -1
  87. package/dist/template-compiler-C3h8_vbE.js +3044 -0
  88. package/dist/{template-compiler-Cs5axmn4.js.map → template-compiler-C3h8_vbE.js.map} +1 -1
  89. package/dist/vite-plugin.d.ts +96 -2
  90. package/package.json +8 -8
  91. package/dist/css-utils-mgjmH8qX.cjs +0 -577
  92. package/dist/hooks-_3xP4G2N.js +0 -1189
  93. package/dist/hooks-_3xP4G2N.js.map +0 -1
  94. package/dist/hooks-fYQgZk2g.cjs +0 -7
  95. package/dist/hooks-fYQgZk2g.cjs.map +0 -1
  96. package/dist/logger-BYIN7ysT.cjs +0 -3
  97. package/dist/logger-L25axmB-.js +0 -41
  98. package/dist/namespace-helpers-Bf7rm9JV.cjs +0 -3
  99. package/dist/namespace-helpers-BucDdgz_.js +0 -61
  100. package/dist/ssr-DRsGduIK.cjs +0 -5
  101. package/dist/ssr-H9GDwbTy.js +0 -172
  102. package/dist/style-Bjn8zDiZ.cjs +0 -56
  103. package/dist/style-DuDoj_xK.js +0 -1972
  104. package/dist/template-compiler-BB4JJdqk.cjs +0 -23
  105. package/dist/template-compiler-Cs5axmn4.js +0 -3236
@@ -1,1972 +0,0 @@
1
- import { c as oe, d as De, l as Ne, p as J, s as ye, t as Ue } from "./css-utils-CC43BbEy.js";
2
- import { extendedColors as Ce } from "./custom-elements-runtime.colors.es.js";
3
- var He = {
4
- base: {
5
- fontSize: "1rem",
6
- lineHeight: "1.75",
7
- p: "1.25em",
8
- lead: "1.25em",
9
- h1: "2.25em",
10
- h2: "1.5em",
11
- h3: "1.25em",
12
- h4: "1em",
13
- blockquote: "1.6em",
14
- figure: "2em",
15
- code: "0.875em",
16
- pre: "0.875em",
17
- ol: "1.25em",
18
- ul: "1.25em",
19
- li: "0.5em",
20
- hr: "3em",
21
- table: "2em"
22
- },
23
- sm: {
24
- fontSize: "0.875rem",
25
- lineHeight: "1.7142857",
26
- p: "1.1428571em",
27
- lead: "1.1428571em",
28
- h1: "2.1428571em",
29
- h2: "1.4285714em",
30
- h3: "1.2857143em",
31
- h4: "1em",
32
- blockquote: "1.4285714em",
33
- figure: "1.7142857em",
34
- code: "0.8571429em",
35
- pre: "0.8571429em",
36
- ol: "1.1428571em",
37
- ul: "1.1428571em",
38
- li: "0.4285714em",
39
- hr: "2.5714286em",
40
- table: "1.7142857em"
41
- },
42
- lg: {
43
- fontSize: "1.125rem",
44
- lineHeight: "1.7777778",
45
- p: "1.3333333em",
46
- lead: "1.3333333em",
47
- h1: "2.6666667em",
48
- h2: "1.7777778em",
49
- h3: "1.5555556em",
50
- h4: "1.1111111em",
51
- blockquote: "1.7777778em",
52
- figure: "2.2222222em",
53
- code: "0.8888889em",
54
- pre: "0.8888889em",
55
- ol: "1.3333333em",
56
- ul: "1.3333333em",
57
- li: "0.5555556em",
58
- hr: "3.3333333em",
59
- table: "2.2222222em"
60
- },
61
- xl: {
62
- fontSize: "1.25rem",
63
- lineHeight: "1.8",
64
- p: "1.4em",
65
- lead: "1.4em",
66
- h1: "2.8em",
67
- h2: "1.8em",
68
- h3: "1.6em",
69
- h4: "1.2em",
70
- blockquote: "1.8em",
71
- figure: "2.4em",
72
- code: "0.9em",
73
- pre: "0.9em",
74
- ol: "1.4em",
75
- ul: "1.4em",
76
- li: "0.6em",
77
- hr: "3.6em",
78
- table: "2.4em"
79
- },
80
- "2xl": {
81
- fontSize: "1.5rem",
82
- lineHeight: "1.6666667",
83
- p: "1.3333333em",
84
- lead: "1.3333333em",
85
- h1: "2.6666667em",
86
- h2: "1.7777778em",
87
- h3: "1.5555556em",
88
- h4: "1.2222222em",
89
- blockquote: "1.7777778em",
90
- figure: "2.2222222em",
91
- code: "0.8333333em",
92
- pre: "0.8333333em",
93
- ol: "1.3333333em",
94
- ul: "1.3333333em",
95
- li: "0.5555556em",
96
- hr: "3.1111111em",
97
- table: "2.2222222em"
98
- }
99
- };
100
- function Te(e) {
101
- const r = e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);
102
- if (!r) return null;
103
- const t = He[r[1] || "base"], o = `.${e}`, n = [];
104
- return n.push(`${o}{--cer-prose-body:var(--cer-color-neutral-900);--cer-prose-headings:var(--cer-color-neutral-900);--cer-prose-lead:var(--cer-color-neutral-700);--cer-prose-links:var(--cer-color-neutral-700);--cer-prose-links-hover:var(--cer-color-neutral-500);--cer-prose-bold:var(--cer-color-neutral-900);--cer-prose-quotes:var(--cer-color-neutral-700);--cer-prose-quote-border:var(--cer-color-neutral-200);--cer-prose-code:var(--cer-color-neutral-800);--cer-prose-code-bg:var(--cer-color-neutral-100);--cer-prose-pre-code:var(--cer-color-neutral-800);--cer-prose-pre-bg:var(--cer-color-neutral-100);--cer-prose-pre-border:var(--cer-color-neutral-200);--cer-prose-hr:var(--cer-color-neutral-200);--cer-prose-caps:var(--cer-color-neutral-600);--cer-prose-list-marker:var(--cer-color-neutral-600);--cer-prose-list-marker-strong:var(--cer-color-neutral-700);--cer-prose-counters:var(--cer-color-neutral-600);--cer-prose-bullets:var(--cer-color-neutral-400);--cer-prose-img-caption:var(--cer-color-neutral-600);--cer-prose-table-border:var(--cer-color-neutral-200);--cer-prose-table-head:var(--cer-color-neutral-700);color:var(--cer-prose-body);font-size:${t.fontSize};line-height:${t.lineHeight};max-width:65ch;}`), n.push(`${o} p:not(.not-prose):not(.not-prose *){margin:${t.p} 0;}`), n.push(`${o} .lead:not(.not-prose):not(.not-prose *),${o} [class~="lead"]:not(.not-prose):not(.not-prose *){font-size:1.25em;line-height:1.6;margin-top:${t.lead};margin-bottom:${t.lead};color:var(--cer-prose-lead);}`), n.push(`${o} h1:not(.not-prose):not(.not-prose *),${o} h2:not(.not-prose):not(.not-prose *),${o} h3:not(.not-prose):not(.not-prose *),${o} h4:not(.not-prose):not(.not-prose *),${o} h5:not(.not-prose):not(.not-prose *),${o} h6:not(.not-prose):not(.not-prose *){color:var(--cer-prose-headings);font-weight:700;line-height:1.25;}`), n.push(`${o} h1:not(.not-prose):not(.not-prose *){font-size:${t.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`), n.push(`${o} h2:not(.not-prose):not(.not-prose *){font-size:${t.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`), n.push(`${o} h3:not(.not-prose):not(.not-prose *){font-size:${t.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`), n.push(`${o} h4:not(.not-prose):not(.not-prose *){font-size:${t.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`), n.push(`${o} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`), n.push(`${o} h6:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`), n.push(`${o} a:not(.not-prose):not(.not-prose *){color:var(--cer-prose-links);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.15em;font-weight:500;}`), n.push(`${o} a:not(.not-prose):not(.not-prose *):hover,${o} a:not(.not-prose):not(.not-prose *):focus{color:var(--cer-prose-links-hover);}`), n.push(`${o} strong:not(.not-prose):not(.not-prose *){color:var(--cer-prose-bold);font-weight:600;}`), n.push(`${o} em:not(.not-prose):not(.not-prose *){font-style:italic;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${t.ol};margin-bottom:${t.ol};padding-left:1.625em;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)[type="a"]{list-style-type:lower-alpha;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)[type="I"]{list-style-type:upper-roman;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${t.li};}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-counters);font-weight:400;}`), n.push(`${o} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${t.ul};margin-bottom:${t.ul};padding-left:1.625em;}`), n.push(`${o} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${t.li};}`), n.push(`${o} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child,${o} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child{margin-top:${t.ol};}`), n.push(`${o} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child,${o} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child{margin-bottom:${t.ol};}`), n.push(`${o} ul:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${o} ul:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *),${o} ol:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${o} ol:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *){margin-top:0.75em;margin-bottom:0.75em;}`), n.push(`${o} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${t.ol};margin-bottom:${t.ol};}`), n.push(`${o} code:not(.not-prose):not(.not-prose *){color:var(--cer-prose-code);background-color:var(--cer-prose-code-bg);border-radius:0.25rem;padding:0.125rem 0.25rem;font-size:${t.code};font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}`), n.push(`${o} pre:not(.not-prose):not(.not-prose *){color:var(--cer-prose-pre-code);background-color:var(--cer-prose-pre-bg);border:1px solid var(--cer-prose-pre-border);overflow-x:auto;font-size:${t.pre};line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:0.375rem;padding:0.8571429em 1.1428571em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;white-space:pre;overflow-wrap:normal;}`), n.push(`${o} pre:not(.not-prose):not(.not-prose *) code:not(.not-prose):not(.not-prose *){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;line-height:inherit;}`), n.push(`${o} blockquote:not(.not-prose):not(.not-prose *){font-weight:500;font-style:italic;color:var(--cer-prose-quotes);border-left-width:0.25rem;border-left-color:var(--cer-prose-quote-border);quotes:"\\201C""\\201D""\\2018""\\2019";margin-top:${t.blockquote};margin-bottom:${t.blockquote};padding-left:1em;}`), n.push(`${o} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`), n.push(`${o} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`), n.push(`${o} hr:not(.not-prose):not(.not-prose *){border-color:var(--cer-prose-hr);border-top-width:1px;margin-top:${t.hr};margin-bottom:${t.hr};}`), n.push(`${o} figure:not(.not-prose):not(.not-prose *){margin-top:${t.figure};margin-bottom:${t.figure};}`), n.push(`${o} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`), n.push(`${o} figcaption:not(.not-prose):not(.not-prose *){color:var(--cer-prose-img-caption);font-size:0.875em;line-height:1.4285714;margin-top:0.75em;}`), n.push(`${o} img:not(.not-prose):not(.not-prose *),${o} video:not(.not-prose):not(.not-prose *),${o} picture:not(.not-prose):not(.not-prose *){margin-top:${t.figure};margin-bottom:${t.figure};max-width:100%;height:auto;}`), n.push(`${o} figure:not(.not-prose):not(.not-prose *)>img:not(.not-prose):not(.not-prose *),${o} figure:not(.not-prose):not(.not-prose *)>video:not(.not-prose):not(.not-prose *),${o} figure:not(.not-prose):not(.not-prose *)>picture:not(.not-prose):not(.not-prose *){margin-top:0;margin-bottom:0;}`), n.push(`${o} table:not(.not-prose):not(.not-prose *){width:100%;table-layout:auto;text-align:left;margin-top:${t.table};margin-bottom:${t.table};font-size:0.875em;line-height:1.7142857;}`), n.push(`${o} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`), n.push(`${o} thead:not(.not-prose):not(.not-prose *) th:not(.not-prose):not(.not-prose *){color:var(--cer-prose-table-head);font-weight:600;vertical-align:bottom;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em;}`), n.push(`${o} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`), n.push(`${o} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *):last-child{border-bottom-width:0;}`), n.push(`${o} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`), n.join("");
105
- }
106
- var Be = {
107
- headings: "h1,h2,h3,h4,h5,h6,th",
108
- h1: "h1",
109
- h2: "h2",
110
- h3: "h3",
111
- h4: "h4",
112
- h5: "h5",
113
- h6: "h6",
114
- p: "p",
115
- a: "a",
116
- blockquote: "blockquote",
117
- figure: "figure",
118
- figcaption: "figcaption",
119
- strong: "strong",
120
- em: "em",
121
- kbd: "kbd",
122
- code: "code",
123
- pre: "pre",
124
- ol: "ol",
125
- ul: "ul",
126
- li: "li",
127
- dl: "dl",
128
- dt: "dt",
129
- dd: "dd",
130
- table: "table",
131
- thead: "thead",
132
- tbody: "tbody",
133
- tr: "tr",
134
- th: "th",
135
- td: "td",
136
- img: "img",
137
- picture: "picture",
138
- video: "video",
139
- hr: "hr",
140
- lead: '[class~="lead"]'
141
- };
142
- function Je(e, r, t, o, n, i, a, c) {
143
- const d = e.match(/^prose-([a-z0-9]+):(.+)$/);
144
- if (!d) return null;
145
- const [, h, $] = d, S = Be[h];
146
- if (!S) return null;
147
- const W = r[$] ?? t($) ?? o($) ?? n($) ?? i($) ?? a($) ?? c($);
148
- if (!W) return null;
149
- const X = ye(e);
150
- return S.split(",").map((ce) => `${`.${X} ${ce.trim()}:not(.not-prose):not(.not-prose *)`}{${W}}`).join("");
151
- }
152
- var N = null, ie = /* @__PURE__ */ new Set(), $e = "", je = "";
153
- function Ae() {
154
- const e = Array.from(ie).sort().join(",");
155
- if (e === je) return;
156
- je = e;
157
- let r = "";
158
- for (const t of ie) {
159
- const o = Te(t);
160
- o && (r += o);
161
- }
162
- if ($e = De(r), N && typeof N.replaceSync == "function" && r) try {
163
- N.replaceSync($e);
164
- } catch {
165
- }
166
- }
167
- function Xe() {
168
- return ie.size === 0 ? null : (N || (typeof CSSStyleSheet > "u" ? N = {
169
- cssRules: [],
170
- replaceSync: () => {
171
- },
172
- toString: () => $e
173
- } : (N = new CSSStyleSheet(), N.toString = () => $e), je = ""), Ae(), N);
174
- }
175
- function Ke(e) {
176
- const r = !ie.has(e);
177
- ie.add(e), r && N && Ae();
178
- }
179
- var Ge = {
180
- neutral: {
181
- 50: "#fafafa",
182
- 100: "#f4f4f5",
183
- 200: "#e4e4e7",
184
- 300: "#d4d4d8",
185
- 400: "#9f9fa9",
186
- 500: "#71717b",
187
- 600: "#52525c",
188
- 700: "#3f3f46",
189
- 800: "#27272a",
190
- 900: "#18181b",
191
- 950: "#09090b"
192
- },
193
- primary: {
194
- 50: "#eff6ff",
195
- 100: "#dbeafe",
196
- 200: "#bfdbfe",
197
- 300: "#93c5fd",
198
- 400: "#60a5fa",
199
- 500: "#3b82f6",
200
- 600: "#2563eb",
201
- 700: "#1d4ed8",
202
- 800: "#1e40af",
203
- 900: "#1e3a8a",
204
- 950: "#172554"
205
- },
206
- secondary: {
207
- 50: "#eef2ff",
208
- 100: "#e0e7ff",
209
- 200: "#c7d2fe",
210
- 300: "#a5b4fc",
211
- 400: "#818cf8",
212
- 500: "#6366f1",
213
- 600: "#4f46e5",
214
- 700: "#4338ca",
215
- 800: "#3730a3",
216
- 900: "#312e81",
217
- 950: "#1e1b4b"
218
- },
219
- success: {
220
- 50: "#f0fdf4",
221
- 100: "#dcfce7",
222
- 200: "#bbf7d0",
223
- 300: "#86efac",
224
- 400: "#4ade80",
225
- 500: "#22c55e",
226
- 600: "#16a34a",
227
- 700: "#15803d",
228
- 800: "#166534",
229
- 900: "#14532d",
230
- 950: "#052e16"
231
- },
232
- info: {
233
- 50: "#f0f9ff",
234
- 100: "#e0f2fe",
235
- 200: "#bae6fd",
236
- 300: "#7dd3fc",
237
- 400: "#38bdf8",
238
- 500: "#0ea5e9",
239
- 600: "#0284c7",
240
- 700: "#0369a1",
241
- 800: "#075985",
242
- 900: "#0c4a6e",
243
- 950: "#082f49"
244
- },
245
- warning: {
246
- 50: "#fffbeb",
247
- 100: "#fef3c7",
248
- 200: "#fde68a",
249
- 300: "#fcd34d",
250
- 400: "#fbbf24",
251
- 500: "#f59e0b",
252
- 600: "#d97706",
253
- 700: "#b45309",
254
- 800: "#92400e",
255
- 900: "#78350f",
256
- 950: "#451a03"
257
- },
258
- error: {
259
- 50: "#fef2f2",
260
- 100: "#fee2e2",
261
- 200: "#fecaca",
262
- 300: "#fca5a5",
263
- 400: "#f87171",
264
- 500: "#ef4444",
265
- 600: "#dc2626",
266
- 700: "#b91c1c",
267
- 800: "#991b1b",
268
- 900: "#7f1d1d",
269
- 950: "#450a0a"
270
- },
271
- white: { DEFAULT: "#ffffff" },
272
- black: { DEFAULT: "#000000" },
273
- transparent: { DEFAULT: "transparent" },
274
- current: { DEFAULT: "currentColor" }
275
- }, qe = Object.fromEntries(Object.entries(Ge).map(([e, r]) => [e, Object.fromEntries(Object.entries(r).map(([t, o]) => [t, `var(--cer-color-${e}${t === "DEFAULT" ? "" : `-${t}`}, ${o})`]))])), re = { ...qe };
276
- function Fe(e) {
277
- if (re = { ...qe }, e.extendedColors) {
278
- const r = Array.isArray(e.extendedColors) ? e.extendedColors : Object.keys(Ce);
279
- for (const t of r) {
280
- const o = Ce[t];
281
- !o || re[t] || (re[t] = Object.fromEntries(Object.entries(o).map(([n, i]) => [n, `var(--cer-color-${t}-${n}, ${i})`])));
282
- }
283
- }
284
- if (e.customColors) for (const [r, t] of Object.entries(e.customColors)) re[r] = t;
285
- }
286
- var U = {}, Oe = !1;
287
- function Le() {
288
- Oe || (Ue(Ye, cr, Xe), Oe = !0);
289
- }
290
- var we = !1, Se = /* @__PURE__ */ new WeakSet();
291
- function pr() {
292
- return we;
293
- }
294
- function Ye(e) {
295
- return we || Se.has(e);
296
- }
297
- function ur(e, r) {
298
- if (Se.add(e), r) {
299
- const t = {
300
- ...U,
301
- ...r
302
- };
303
- JSON.stringify(t) !== JSON.stringify(U) && (U = t, Fe(U), D.clear());
304
- }
305
- Le();
306
- }
307
- function gr(e) {
308
- we = !0, e && (U = {
309
- ...U,
310
- ...e
311
- }), Fe(U), Le(), D.clear();
312
- }
313
- function mr() {
314
- we = !1, Se = /* @__PURE__ */ new WeakSet();
315
- }
316
- function fr() {
317
- return { ...U };
318
- }
319
- var Qe = {
320
- "3xs": 64,
321
- "2xs": 72,
322
- xs: 80,
323
- sm: 96,
324
- md: 112,
325
- lg: 128,
326
- xl: 144,
327
- "2xl": 168,
328
- "3xl": 192,
329
- "4xl": 224,
330
- "5xl": 256,
331
- "6xl": 288,
332
- "7xl": 320
333
- }, ke = {
334
- m: ["margin"],
335
- mx: ["margin-inline"],
336
- my: ["margin-block"],
337
- mt: ["margin-top"],
338
- mr: ["margin-right"],
339
- mb: ["margin-bottom"],
340
- ml: ["margin-left"],
341
- p: ["padding"],
342
- px: ["padding-inline"],
343
- py: ["padding-block"],
344
- pt: ["padding-top"],
345
- pr: ["padding-right"],
346
- pb: ["padding-bottom"],
347
- pl: ["padding-left"],
348
- inset: ["inset"],
349
- "inset-x": ["inset-inline"],
350
- "inset-y": ["inset-block"],
351
- h: ["height"],
352
- w: ["width"],
353
- "min-h": ["min-height"],
354
- "min-w": ["min-width"],
355
- "max-h": ["max-height"],
356
- "max-w": ["max-width"],
357
- top: ["top"],
358
- bottom: ["bottom"],
359
- left: ["left"],
360
- right: ["right"],
361
- gap: ["gap"],
362
- "gap-x": ["column-gap"],
363
- "gap-y": ["row-gap"],
364
- size: ["width", "height"],
365
- ms: ["margin-inline-start"],
366
- me: ["margin-inline-end"],
367
- ps: ["padding-inline-start"],
368
- pe: ["padding-inline-end"],
369
- bs: ["margin-block-start"],
370
- be: ["margin-block-end"],
371
- start: ["inset-inline-start"],
372
- end: ["inset-inline-end"],
373
- "inset-s": ["inset-inline-start"],
374
- "inset-e": ["inset-inline-end"]
375
- }, Ze = () => {
376
- const e = {};
377
- e["@container"] = "container-type:inline-size;", [
378
- "block",
379
- "inline",
380
- "inline-block",
381
- "flex",
382
- "inline-flex",
383
- "grid",
384
- "inline-grid",
385
- "table",
386
- "table-cell",
387
- "table-row",
388
- "hidden"
389
- ].forEach((a) => {
390
- e[a] = a === "hidden" ? "display:none;" : `display:${a};`;
391
- }), [
392
- "absolute",
393
- "relative",
394
- "fixed",
395
- "sticky",
396
- "static"
397
- ].forEach((a) => {
398
- e[a] = `position:${a};`;
399
- }), Object.assign(e, {
400
- "items-center": "align-items:center;",
401
- "items-start": "align-items:flex-start;",
402
- "items-end": "align-items:flex-end;",
403
- "items-baseline": "align-items:baseline;",
404
- "items-stretch": "align-items:stretch;",
405
- "justify-center": "justify-content:center;",
406
- "justify-start": "justify-content:flex-start;",
407
- "justify-between": "justify-content:space-between;",
408
- "justify-around": "justify-content:space-around;",
409
- "justify-evenly": "justify-content:space-evenly;",
410
- "justify-end": "justify-content:flex-end;",
411
- "flex-wrap": "flex-wrap:wrap;",
412
- "flex-nowrap": "flex-wrap:nowrap;",
413
- "flex-wrap-reverse": "flex-wrap:wrap-reverse;",
414
- "content-center": "align-content:center;",
415
- "content-start": "align-content:flex-start;",
416
- "content-end": "align-content:flex-end;",
417
- "content-between": "align-content:space-between;",
418
- "content-around": "align-content:space-around;",
419
- "content-evenly": "align-content:space-evenly;",
420
- "content-stretch": "align-content:stretch;",
421
- "self-auto": "align-self:auto;",
422
- "self-start": "align-self:flex-start;",
423
- "self-end": "align-self:flex-end;",
424
- "self-center": "align-self:center;",
425
- "self-stretch": "align-self:stretch;",
426
- "flex-col": "flex-direction:column;",
427
- "flex-row": "flex-direction:row;",
428
- "flex-col-reverse": "flex-direction:column-reverse;",
429
- "flex-row-reverse": "flex-direction:row-reverse;",
430
- "flex-1": "flex:1 1 0%;",
431
- "flex-auto": "flex:1 1 auto;",
432
- "flex-initial": "flex:0 1 auto;",
433
- "flex-none": "flex:0 0 auto;",
434
- grow: "flex-grow:1;",
435
- shrink: "flex-shrink:1;",
436
- "grow-0": "flex-grow:0;",
437
- "shrink-0": "flex-shrink:0;"
438
- });
439
- for (let a = 1; a <= 12; a++)
440
- e[`grid-cols-${a}`] = `grid-template-columns:repeat(${a},minmax(0,1fr));`, e[`grid-rows-${a}`] = `grid-template-rows:repeat(${a},minmax(0,1fr));`, e[`col-span-${a}`] = `grid-column:span ${a} / span ${a};`, e[`row-span-${a}`] = `grid-row:span ${a} / span ${a};`, e[`col-start-${a}`] = `grid-column-start:${a};`, e[`col-end-${a}`] = `grid-column-end:${a};`, e[`row-start-${a}`] = `grid-row-start:${a};`, e[`row-end-${a}`] = `grid-row-end:${a};`;
441
- Object.assign(e, {
442
- "grid-cols-none": "grid-template-columns:none;",
443
- "grid-rows-none": "grid-template-rows:none;",
444
- "col-span-full": "grid-column:1 / -1;",
445
- "row-span-full": "grid-row:1 / -1;",
446
- "auto-cols-auto": "grid-auto-columns:auto;",
447
- "auto-cols-min": "grid-auto-columns:min-content;",
448
- "auto-cols-max": "grid-auto-columns:max-content;",
449
- "auto-cols-fr": "grid-auto-columns:1fr;",
450
- "auto-rows-auto": "grid-auto-rows:auto;",
451
- "auto-rows-min": "grid-auto-rows:min-content;",
452
- "auto-rows-max": "grid-auto-rows:max-content;",
453
- "auto-rows-fr": "grid-auto-rows:1fr;",
454
- "grid-flow-row": "grid-auto-flow:row;",
455
- "grid-flow-col": "grid-auto-flow:column;",
456
- "grid-flow-row-dense": "grid-auto-flow:row dense;",
457
- "grid-flow-col-dense": "grid-auto-flow:column dense;"
458
- }), Object.assign(e, {
459
- "text-left": "text-align:left;",
460
- "text-center": "text-align:center;",
461
- "text-right": "text-align:right;",
462
- "text-justify": "text-align:justify;",
463
- "font-thin": "font-weight:100;",
464
- "font-extralight": "font-weight:200;",
465
- "font-light": "font-weight:300;",
466
- "font-normal": "font-weight:400;",
467
- "font-medium": "font-weight:500;",
468
- "font-semibold": "font-weight:600;",
469
- "font-bold": "font-weight:700;",
470
- "font-extrabold": "font-weight:800;",
471
- "font-black": "font-weight:900;",
472
- italic: "font-style:italic;",
473
- "not-italic": "font-style:normal;",
474
- uppercase: "text-transform:uppercase;",
475
- lowercase: "text-transform:lowercase;",
476
- capitalize: "text-transform:capitalize;",
477
- "normal-case": "text-transform:none;",
478
- underline: "text-decoration-line:underline;",
479
- overline: "text-decoration-line:overline;",
480
- "line-through": "text-decoration-line:line-through;",
481
- "no-underline": "text-decoration-line:none;",
482
- truncate: "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",
483
- "whitespace-normal": "white-space:normal;",
484
- "whitespace-nowrap": "white-space:nowrap;",
485
- "whitespace-pre": "white-space:pre;",
486
- "whitespace-pre-line": "white-space:pre-line;",
487
- "whitespace-pre-wrap": "white-space:pre-wrap;",
488
- "break-normal": "overflow-wrap:normal;word-break:normal;",
489
- "break-words": "overflow-wrap:break-word;",
490
- "break-all": "word-break:break-all;",
491
- "text-wrap": "text-wrap:wrap;",
492
- "text-nowrap": "text-wrap:nowrap;",
493
- "text-balance": "text-wrap:balance;",
494
- "text-pretty": "text-wrap:pretty;"
495
- }), [
496
- [
497
- "text-xs",
498
- "0.75rem",
499
- "1"
500
- ],
501
- [
502
- "text-sm",
503
- "0.875rem",
504
- "1.25"
505
- ],
506
- [
507
- "text-base",
508
- "1rem",
509
- "1.5"
510
- ],
511
- [
512
- "text-lg",
513
- "1.125rem",
514
- "1.75"
515
- ],
516
- [
517
- "text-xl",
518
- "1.25rem",
519
- "1.75"
520
- ],
521
- [
522
- "text-2xl",
523
- "1.5rem",
524
- "2"
525
- ],
526
- [
527
- "text-3xl",
528
- "1.875rem",
529
- "2.25"
530
- ],
531
- [
532
- "text-4xl",
533
- "2.25rem",
534
- "2.5"
535
- ],
536
- [
537
- "text-5xl",
538
- "3rem",
539
- "1"
540
- ],
541
- [
542
- "text-6xl",
543
- "3.75rem",
544
- "1"
545
- ],
546
- [
547
- "text-7xl",
548
- "4.5rem",
549
- "1"
550
- ],
551
- [
552
- "text-8xl",
553
- "6rem",
554
- "1"
555
- ],
556
- [
557
- "text-9xl",
558
- "8rem",
559
- "1"
560
- ]
561
- ].forEach(([a, c, d]) => {
562
- e[a] = `font-size:${c};line-height:var(--cer-line-height,${d});`;
563
- }), [
564
- ["tracking-tighter", "-0.05em"],
565
- ["tracking-tight", "-0.025em"],
566
- ["tracking-normal", "0em"],
567
- ["tracking-wide", "0.025em"],
568
- ["tracking-wider", "0.05em"],
569
- ["tracking-widest", "0.1em"]
570
- ].forEach(([a, c]) => {
571
- e[a] = `letter-spacing:${c};`;
572
- }), [
573
- ["leading-3", "0.75rem"],
574
- ["leading-4", "1rem"],
575
- ["leading-5", "1.25rem"],
576
- ["leading-6", "1.5rem"],
577
- ["leading-7", "1.75rem"],
578
- ["leading-8", "2rem"],
579
- ["leading-9", "2.25rem"],
580
- ["leading-10", "2.5rem"],
581
- ["leading-none", "1"],
582
- ["leading-tight", "1.25"],
583
- ["leading-snug", "1.375"],
584
- ["leading-normal", "1.5"],
585
- ["leading-relaxed", "1.625"],
586
- ["leading-loose", "2"]
587
- ].forEach(([a, c]) => {
588
- e[a] = `line-height:${c};--cer-line-height:${c};line-height:var(--cer-line-height,${c});`;
589
- });
590
- for (const a of [
591
- 0,
592
- 1,
593
- 2,
594
- 4,
595
- 6,
596
- 8
597
- ]) {
598
- const c = `${a}px`;
599
- e[`outline-${a}`] = `outline-style:var(--cer-outline-style);outline-width:${c};`, e[`outline-offset-${a}`] = `outline-offset:${c};`, e[`border-${a}`] = `border-width:${c};`, e[`border-t-${a}`] = `border-top-width:${c};`, e[`border-r-${a}`] = `border-right-width:${c};`, e[`border-b-${a}`] = `border-bottom-width:${c};`, e[`border-l-${a}`] = `border-left-width:${c};`, e[`border-x-${a}`] = `border-left-width:${c};border-right-width:${c};`, e[`border-y-${a}`] = `border-top-width:${c};border-bottom-width:${c};`;
600
- }
601
- Object.assign(e, {
602
- "font-sans": "font-family:var(--cer-font-sans, ui-sans-serif,system-ui,sans-serif);",
603
- "font-serif": "font-family:var(--cer-font-serif, ui-serif,Georgia,serif);",
604
- "font-mono": "font-family:var(--cer-font-mono, ui-monospace,SFMono-Regular,monospace);",
605
- outline: "outline-style:var(--cer-outline-style);outline-width:1px;",
606
- "outline-solid": "--cer-outline-style:solid;outline-style:solid;",
607
- "outline-dashed": "--cer-outline-style:dashed;outline-style:dashed;",
608
- "outline-dotted": "--cer-outline-style:dotted;outline-style:dotted;",
609
- "outline-double": "--cer-outline-style:double;outline-style:double;",
610
- "outline-none": "--cer-outline-style:none;outline-style:none;",
611
- "outline-hidden": "--cer-outline-style:none;outline:2px solid transparent;outline-offset:2px;",
612
- border: "border-width:1px;",
613
- "border-t": "border-top-width:1px;",
614
- "border-r": "border-right-width:1px;",
615
- "border-b": "border-bottom-width:1px;",
616
- "border-l": "border-left-width:1px;",
617
- "border-x": "border-left-width:1px;border-right-width:1px;",
618
- "border-y": "border-top-width:1px;border-bottom-width:1px;",
619
- "border-solid": "border-style:solid;",
620
- "border-dashed": "border-style:dashed;",
621
- "border-dotted": "border-style:dotted;",
622
- "border-double": "border-style:double;",
623
- "border-none": "border-style:none;"
624
- });
625
- for (const [a, c] of Object.entries({
626
- none: 0,
627
- xs: 2,
628
- sm: 4,
629
- md: 6,
630
- lg: 8,
631
- xl: 12,
632
- "2xl": 16,
633
- "3xl": 24,
634
- "4xl": 32,
635
- full: 9999
636
- })) {
637
- const d = c === 9999 ? "9999px" : `${c / 16}rem`;
638
- e[`rounded-${a}`] = `border-radius:${d};`, e[`rounded-t-${a}`] = `border-top-left-radius:${d};border-top-right-radius:${d};`, e[`rounded-r-${a}`] = `border-top-right-radius:${d};border-bottom-right-radius:${d};`, e[`rounded-b-${a}`] = `border-bottom-left-radius:${d};border-bottom-right-radius:${d};`, e[`rounded-l-${a}`] = `border-top-left-radius:${d};border-bottom-left-radius:${d};`, e[`rounded-tl-${a}`] = `border-top-left-radius:${d};`, e[`rounded-tr-${a}`] = `border-top-right-radius:${d};`, e[`rounded-br-${a}`] = `border-bottom-right-radius:${d};`, e[`rounded-bl-${a}`] = `border-bottom-left-radius:${d};`;
639
- }
640
- Object.assign(e, {
641
- "shadow-none": "--cer-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--cer-shadow-color, #0000);",
642
- "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));",
643
- "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));",
644
- 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));",
645
- "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));",
646
- "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));",
647
- "shadow-xl": "--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 20px 25px -5px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 8px 10px -6px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",
648
- "shadow-2xl": "--cer-shadow-color:rgb(0 0 0 / 0.25);box-shadow:0 25px 50px -12px var(--cer-shadow-color, rgb(0 0 0 / 0.25));",
649
- "shadow-inner": "box-shadow:inset 0 2px 4px 0 rgb(0 0 0 / 0.05);"
650
- }), Object.assign(e, { rounded: "border-radius:0.25rem;" }), Object.assign(e, {
651
- "overflow-auto": "overflow:auto;",
652
- "overflow-hidden": "overflow:hidden;",
653
- "overflow-visible": "overflow:visible;",
654
- "overflow-scroll": "overflow:scroll;",
655
- "overflow-x-auto": "overflow-x:auto;",
656
- "overflow-x-hidden": "overflow-x:hidden;",
657
- "overflow-x-visible": "overflow-x:visible;",
658
- "overflow-x-scroll": "overflow-x:scroll;",
659
- "overflow-y-auto": "overflow-y:auto;",
660
- "overflow-y-hidden": "overflow-y:hidden;",
661
- "overflow-y-visible": "overflow-y:visible;",
662
- "overflow-y-scroll": "overflow-y:scroll;"
663
- }), Object.assign(e, {
664
- "bg-cover": "background-size:cover;",
665
- "bg-contain": "background-size:contain;",
666
- "bg-auto": "background-size:auto;",
667
- "bg-center": "background-position:center;",
668
- "bg-top": "background-position:top;",
669
- "bg-bottom": "background-position:bottom;",
670
- "bg-left": "background-position:left;",
671
- "bg-right": "background-position:right;",
672
- "bg-left-top": "background-position:left top;",
673
- "bg-left-bottom": "background-position:left bottom;",
674
- "bg-right-top": "background-position:right top;",
675
- "bg-right-bottom": "background-position:right bottom;",
676
- "bg-no-repeat": "background-repeat:no-repeat;",
677
- "bg-repeat": "background-repeat:repeat;",
678
- "bg-repeat-x": "background-repeat:repeat-x;",
679
- "bg-repeat-y": "background-repeat:repeat-y;",
680
- "bg-repeat-round": "background-repeat:round;",
681
- "bg-repeat-space": "background-repeat:space;",
682
- "bg-fixed": "background-attachment:fixed;",
683
- "bg-local": "background-attachment:local;",
684
- "bg-scroll": "background-attachment:scroll;",
685
- "bg-origin-border": "background-origin:border-box;",
686
- "bg-origin-padding": "background-origin:padding-box;",
687
- "bg-origin-content": "background-origin:content-box;",
688
- "bg-clip-border": "background-clip:border-box;",
689
- "bg-clip-padding": "background-clip:padding-box;",
690
- "bg-clip-content": "background-clip:content-box;",
691
- "bg-clip-text": "background-clip:text;-webkit-background-clip:text;"
692
- }), Object.assign(e, {
693
- "decoration-solid": "text-decoration-style:solid;",
694
- "decoration-dashed": "text-decoration-style:dashed;",
695
- "decoration-dotted": "text-decoration-style:dotted;",
696
- "decoration-double": "text-decoration-style:double;",
697
- "decoration-wavy": "text-decoration-style:wavy;",
698
- "decoration-from-font": "text-decoration-thickness:from-font;",
699
- "decoration-auto": "text-decoration-thickness:auto;",
700
- "decoration-1": "text-decoration-thickness:1px;",
701
- "decoration-2": "text-decoration-thickness:2px;",
702
- "decoration-4": "text-decoration-thickness:4px;",
703
- "decoration-8": "text-decoration-thickness:8px;",
704
- "underline-offset-auto": "text-underline-offset:auto;",
705
- "underline-offset-1": "text-underline-offset:1px;",
706
- "underline-offset-2": "text-underline-offset:2px;",
707
- "underline-offset-4": "text-underline-offset:4px;",
708
- "underline-offset-8": "text-underline-offset:8px;"
709
- }), Object.assign(e, {
710
- "list-none": "list-style-type:none;",
711
- "list-disc": "list-style-type:disc;",
712
- "list-decimal": "list-style-type:decimal;",
713
- "list-inside": "list-style-position:inside;",
714
- "list-outside": "list-style-position:outside;"
715
- }), Object.assign(e, {
716
- "content-none": "content:none;",
717
- "content-normal": "content:normal;",
718
- "content-empty": "content:'';"
719
- }), Object.assign(e, {
720
- "scroll-smooth": "scroll-behavior:smooth;",
721
- "scroll-auto": "scroll-behavior:auto;",
722
- "scroll-m-0": "scroll-margin:0;",
723
- "scroll-p-0": "scroll-padding:0;",
724
- "snap-none": "scroll-snap-type:none;",
725
- "snap-x": "scroll-snap-type:x var(--cer-scroll-snap-strictness,mandatory);",
726
- "snap-y": "scroll-snap-type:y var(--cer-scroll-snap-strictness,mandatory);",
727
- "snap-both": "scroll-snap-type:both var(--cer-scroll-snap-strictness,mandatory);",
728
- "snap-mandatory": "--cer-scroll-snap-strictness:mandatory;",
729
- "snap-proximity": "--cer-scroll-snap-strictness:proximity;",
730
- "snap-start": "scroll-snap-align:start;",
731
- "snap-end": "scroll-snap-align:end;",
732
- "snap-center": "scroll-snap-align:center;",
733
- "snap-align-none": "scroll-snap-align:none;",
734
- "snap-normal": "scroll-snap-stop:normal;",
735
- "snap-always": "scroll-snap-stop:always;"
736
- }), Object.assign(e, {
737
- "will-change-auto": "will-change:auto;",
738
- "will-change-scroll": "will-change:scroll-position;",
739
- "will-change-contents": "will-change:contents;",
740
- "will-change-transform": "will-change:transform;",
741
- "will-change-opacity": "will-change:opacity;"
742
- }), Object.assign(e, {
743
- "touch-auto": "touch-action:auto;",
744
- "touch-none": "touch-action:none;",
745
- "touch-pan-x": "touch-action:pan-x;",
746
- "touch-pan-left": "touch-action:pan-left;",
747
- "touch-pan-right": "touch-action:pan-right;",
748
- "touch-pan-y": "touch-action:pan-y;",
749
- "touch-pan-up": "touch-action:pan-up;",
750
- "touch-pan-down": "touch-action:pan-down;",
751
- "touch-pinch-zoom": "touch-action:pinch-zoom;",
752
- "touch-manipulation": "touch-action:manipulation;"
753
- }), Object.assign(e, {
754
- "columns-auto": "columns:auto;",
755
- "columns-1": "columns:1;",
756
- "columns-2": "columns:2;",
757
- "columns-3": "columns:3;",
758
- "columns-4": "columns:4;",
759
- "columns-5": "columns:5;",
760
- "columns-6": "columns:6;",
761
- "columns-7": "columns:7;",
762
- "columns-8": "columns:8;",
763
- "columns-9": "columns:9;",
764
- "columns-10": "columns:10;",
765
- "columns-11": "columns:11;",
766
- "columns-12": "columns:12;",
767
- "columns-3xs": `columns:${0.25 * 64}rem;`,
768
- "columns-2xs": `columns:${0.25 * 80}rem;`,
769
- "columns-xs": `columns:${0.25 * 96}rem;`,
770
- "columns-sm": `columns:${0.25 * 112}rem;`,
771
- "columns-md": `columns:${0.25 * 128}rem;`,
772
- "columns-lg": `columns:${0.25 * 160}rem;`,
773
- "columns-xl": `columns:${0.25 * 192}rem;`,
774
- "columns-2xl": `columns:${0.25 * 224}rem;`,
775
- "columns-3xl": `columns:${0.25 * 256}rem;`,
776
- "columns-4xl": `columns:${0.25 * 280}rem;`,
777
- "columns-5xl": `columns:${0.25 * 320}rem;`
778
- }), Object.assign(e, {
779
- "divide-x": "border-left-width:1px;",
780
- "divide-x-0": "border-left-width:0px;",
781
- "divide-x-2": "border-left-width:2px;",
782
- "divide-x-4": "border-left-width:4px;",
783
- "divide-x-8": "border-left-width:8px;",
784
- "divide-y": "border-top-width:1px;",
785
- "divide-y-0": "border-top-width:0px;",
786
- "divide-y-2": "border-top-width:2px;",
787
- "divide-y-4": "border-top-width:4px;",
788
- "divide-y-8": "border-top-width:8px;",
789
- "divide-solid": "border-style:solid;",
790
- "divide-dashed": "border-style:dashed;",
791
- "divide-dotted": "border-style:dotted;",
792
- "divide-double": "border-style:double;",
793
- "divide-none": "border-style:none;"
794
- });
795
- for (const a of [
796
- "auto",
797
- "default",
798
- "pointer",
799
- "wait",
800
- "text",
801
- "move",
802
- "help",
803
- "not-allowed",
804
- "grab",
805
- "grabbing"
806
- ]) e[`cursor-${a}`] = `cursor:${a};`;
807
- for (const a of [
808
- 0,
809
- 1,
810
- 2,
811
- 3,
812
- 4,
813
- 5,
814
- 6,
815
- 7,
816
- 8,
817
- 9,
818
- 10,
819
- 20,
820
- 30,
821
- 40,
822
- 50
823
- ]) e[`z-${a}`] = `z-index:${a};`;
824
- e["z-auto"] = "z-index:auto;", e["-z-10"] = "z-index:-10;", e["-z-20"] = "z-index:-20;", e["-z-30"] = "z-index:-30;", e["-z-40"] = "z-index:-40;", e["-z-50"] = "z-index:-50;", Object.assign(e, {
825
- "sr-only": "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;",
826
- "not-sr-only": "position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;",
827
- "pointer-events-none": "pointer-events:none;",
828
- "pointer-events-auto": "pointer-events:auto;",
829
- visible: "visibility:visible;",
830
- invisible: "visibility:hidden;"
831
- }), Object.assign(e, {
832
- "w-full": "width:100%;",
833
- "w-screen": "width:100dvw;",
834
- "h-full": "height:100%;",
835
- "h-screen": "height:100dvh;",
836
- "max-w-full": "max-width:100%;",
837
- "max-h-full": "max-height:100%;",
838
- "max-w-screen": "max-width:100dvw;",
839
- "max-h-screen": "max-height:100dvh;",
840
- "min-w-0": "min-width:0;",
841
- "min-h-0": "min-height:0;",
842
- "min-w-full": "min-width:100%;",
843
- "min-h-full": "min-height:100%;",
844
- "min-w-screen": "min-width:100dvw;",
845
- "min-h-screen": "min-height:100dvh;",
846
- "w-auto": "width:auto;",
847
- "h-auto": "height:auto;",
848
- "w-fit": "width:fit-content;",
849
- "h-fit": "height:fit-content;",
850
- "w-min": "width:min-content;",
851
- "h-min": "height:min-content;",
852
- "w-max": "width:max-content;",
853
- "h-max": "height:max-content;",
854
- "m-auto": "margin:auto;",
855
- "mx-auto": "margin-inline:auto;",
856
- "my-auto": "margin-block:auto;"
857
- });
858
- for (const [a, c] of Object.entries(Qe))
859
- e[`max-w-${a}`] = `max-width:calc(${J} * ${c});`, e[`min-w-${a}`] = `min-width:calc(${J} * ${c});`, e[`w-${a}`] = `width:calc(${J} * ${c});`, e[`max-h-${a}`] = `max-height:calc(${J} * ${c});`, e[`min-h-${a}`] = `min-height:calc(${J} * ${c});`, e[`h-${a}`] = `height:calc(${J} * ${c});`;
860
- Object.assign(e, {
861
- transition: "transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;",
862
- "transition-none": "transition-property:none;",
863
- "transition-all": "transition-property:all;",
864
- "transition-colors": "transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;",
865
- "transition-shadow": "transition-property:box-shadow;",
866
- "transition-opacity": "transition-property:opacity;",
867
- "transition-transform": "transition-property:transform;",
868
- "ease-linear": "transition-timing-function:linear;",
869
- "ease-in": "transition-timing-function:ease-in;",
870
- "ease-out": "transition-timing-function:ease-out;",
871
- "ease-in-out": "transition-timing-function:ease-in-out;",
872
- "duration-75": "transition-duration:75ms;",
873
- "duration-100": "transition-duration:100ms;",
874
- "duration-150": "transition-duration:150ms;",
875
- "duration-200": "transition-duration:200ms;",
876
- "duration-300": "transition-duration:300ms;",
877
- "duration-500": "transition-duration:500ms;",
878
- "duration-700": "transition-duration:700ms;",
879
- "duration-1000": "transition-duration:1000ms;"
880
- }), Object.assign(e, {
881
- "delay-0": "transition-delay:0ms;",
882
- "delay-75": "transition-delay:75ms;",
883
- "delay-100": "transition-delay:100ms;",
884
- "delay-150": "transition-delay:150ms;",
885
- "delay-200": "transition-delay:200ms;",
886
- "delay-300": "transition-delay:300ms;",
887
- "delay-500": "transition-delay:500ms;",
888
- "delay-700": "transition-delay:700ms;",
889
- "delay-1000": "transition-delay:1000ms;"
890
- });
891
- const r = "translateX(var(--cer-translate-x)) translateY(var(--cer-translate-y)) rotate(var(--cer-rotate)) skewX(var(--cer-skew-x)) skewY(var(--cer-skew-y)) scaleX(var(--cer-scale-x)) scaleY(var(--cer-scale-y))", t = (a) => `--cer-translate-x:${a};transform:${r};`, o = (a) => `--cer-translate-y:${a};transform:${r};`;
892
- Object.assign(e, {
893
- "scale-0": `--cer-scale-x:0;--cer-scale-y:0;transform:${r};`,
894
- "scale-50": `--cer-scale-x:.5;--cer-scale-y:.5;transform:${r};`,
895
- "scale-75": `--cer-scale-x:.75;--cer-scale-y:.75;transform:${r};`,
896
- "scale-90": `--cer-scale-x:.9;--cer-scale-y:.9;transform:${r};`,
897
- "scale-95": `--cer-scale-x:.95;--cer-scale-y:.95;transform:${r};`,
898
- "scale-100": `--cer-scale-x:1;--cer-scale-y:1;transform:${r};`,
899
- "scale-105": `--cer-scale-x:1.05;--cer-scale-y:1.05;transform:${r};`,
900
- "scale-110": `--cer-scale-x:1.1;--cer-scale-y:1.1;transform:${r};`,
901
- "scale-125": `--cer-scale-x:1.25;--cer-scale-y:1.25;transform:${r};`,
902
- "scale-150": `--cer-scale-x:1.5;--cer-scale-y:1.5;transform:${r};`,
903
- "scale-x-0": `--cer-scale-x:0;transform:${r};`,
904
- "scale-x-50": `--cer-scale-x:.5;transform:${r};`,
905
- "scale-x-75": `--cer-scale-x:.75;transform:${r};`,
906
- "scale-x-90": `--cer-scale-x:.9;transform:${r};`,
907
- "scale-x-95": `--cer-scale-x:.95;transform:${r};`,
908
- "scale-x-100": `--cer-scale-x:1;transform:${r};`,
909
- "scale-x-105": `--cer-scale-x:1.05;transform:${r};`,
910
- "scale-x-110": `--cer-scale-x:1.1;transform:${r};`,
911
- "scale-x-125": `--cer-scale-x:1.25;transform:${r};`,
912
- "scale-x-150": `--cer-scale-x:1.5;transform:${r};`,
913
- "scale-y-0": `--cer-scale-y:0;transform:${r};`,
914
- "scale-y-50": `--cer-scale-y:.5;transform:${r};`,
915
- "scale-y-75": `--cer-scale-y:.75;transform:${r};`,
916
- "scale-y-90": `--cer-scale-y:.9;transform:${r};`,
917
- "scale-y-95": `--cer-scale-y:.95;transform:${r};`,
918
- "scale-y-100": `--cer-scale-y:1;transform:${r};`,
919
- "scale-y-105": `--cer-scale-y:1.05;transform:${r};`,
920
- "scale-y-110": `--cer-scale-y:1.1;transform:${r};`,
921
- "scale-y-125": `--cer-scale-y:1.25;transform:${r};`,
922
- "scale-y-150": `--cer-scale-y:1.5;transform:${r};`,
923
- "rotate-0": `--cer-rotate:0deg;transform:${r};`,
924
- "rotate-1": `--cer-rotate:1deg;transform:${r};`,
925
- "rotate-2": `--cer-rotate:2deg;transform:${r};`,
926
- "rotate-3": `--cer-rotate:3deg;transform:${r};`,
927
- "rotate-6": `--cer-rotate:6deg;transform:${r};`,
928
- "rotate-12": `--cer-rotate:12deg;transform:${r};`,
929
- "rotate-45": `--cer-rotate:45deg;transform:${r};`,
930
- "rotate-90": `--cer-rotate:90deg;transform:${r};`,
931
- "rotate-180": `--cer-rotate:180deg;transform:${r};`,
932
- "-rotate-1": `--cer-rotate:-1deg;transform:${r};`,
933
- "-rotate-2": `--cer-rotate:-2deg;transform:${r};`,
934
- "-rotate-3": `--cer-rotate:-3deg;transform:${r};`,
935
- "-rotate-6": `--cer-rotate:-6deg;transform:${r};`,
936
- "-rotate-12": `--cer-rotate:-12deg;transform:${r};`,
937
- "-rotate-45": `--cer-rotate:-45deg;transform:${r};`,
938
- "-rotate-90": `--cer-rotate:-90deg;transform:${r};`,
939
- "-rotate-180": `--cer-rotate:-180deg;transform:${r};`,
940
- "translate-x-0": t("0px"),
941
- "translate-x-px": t("1px"),
942
- "translate-x-0.5": t("0.125rem"),
943
- "translate-x-1": t("0.25rem"),
944
- "translate-x-1.5": t("0.375rem"),
945
- "translate-x-2": t("0.5rem"),
946
- "translate-x-2.5": t("0.625rem"),
947
- "translate-x-3": t("0.75rem"),
948
- "translate-x-4": t("1rem"),
949
- "translate-x-5": t("1.25rem"),
950
- "translate-x-6": t("1.5rem"),
951
- "translate-x-8": t("2rem"),
952
- "translate-x-10": t("2.5rem"),
953
- "translate-x-12": t("3rem"),
954
- "translate-x-16": t("4rem"),
955
- "translate-x-20": t("5rem"),
956
- "translate-x-24": t("6rem"),
957
- "translate-x-32": t("8rem"),
958
- "translate-x-1/2": t("50%"),
959
- "translate-x-1/3": t("33.333333%"),
960
- "translate-x-2/3": t("66.666667%"),
961
- "translate-x-1/4": t("25%"),
962
- "translate-x-3/4": t("75%"),
963
- "translate-x-full": t("100%"),
964
- "-translate-x-px": t("-1px"),
965
- "-translate-x-0.5": t("-0.125rem"),
966
- "-translate-x-1": t("-0.25rem"),
967
- "-translate-x-1.5": t("-0.375rem"),
968
- "-translate-x-2": t("-0.5rem"),
969
- "-translate-x-2.5": t("-0.625rem"),
970
- "-translate-x-3": t("-0.75rem"),
971
- "-translate-x-4": t("-1rem"),
972
- "-translate-x-1/2": t("-50%"),
973
- "-translate-x-full": t("-100%"),
974
- "translate-y-0": o("0px"),
975
- "translate-y-px": o("1px"),
976
- "translate-y-0.5": o("0.125rem"),
977
- "translate-y-1": o("0.25rem"),
978
- "translate-y-1.5": o("0.375rem"),
979
- "translate-y-2": o("0.5rem"),
980
- "translate-y-2.5": o("0.625rem"),
981
- "translate-y-3": o("0.75rem"),
982
- "translate-y-4": o("1rem"),
983
- "translate-y-5": o("1.25rem"),
984
- "translate-y-6": o("1.5rem"),
985
- "translate-y-8": o("2rem"),
986
- "translate-y-10": o("2.5rem"),
987
- "translate-y-12": o("3rem"),
988
- "translate-y-16": o("4rem"),
989
- "translate-y-20": o("5rem"),
990
- "translate-y-24": o("6rem"),
991
- "translate-y-32": o("8rem"),
992
- "translate-y-1/2": o("50%"),
993
- "translate-y-full": o("100%"),
994
- "-translate-y-px": o("-1px"),
995
- "-translate-y-0.5": o("-0.125rem"),
996
- "-translate-y-1": o("-0.25rem"),
997
- "-translate-y-2": o("-0.5rem"),
998
- "-translate-y-4": o("-1rem"),
999
- "-translate-y-1/2": o("-50%"),
1000
- "-translate-y-full": o("-100%"),
1001
- "skew-x-0": `--cer-skew-x:0deg;transform:${r};`,
1002
- "skew-x-1": `--cer-skew-x:1deg;transform:${r};`,
1003
- "skew-x-2": `--cer-skew-x:2deg;transform:${r};`,
1004
- "skew-x-3": `--cer-skew-x:3deg;transform:${r};`,
1005
- "skew-x-6": `--cer-skew-x:6deg;transform:${r};`,
1006
- "skew-x-12": `--cer-skew-x:12deg;transform:${r};`,
1007
- "-skew-x-1": `--cer-skew-x:-1deg;transform:${r};`,
1008
- "-skew-x-2": `--cer-skew-x:-2deg;transform:${r};`,
1009
- "-skew-x-3": `--cer-skew-x:-3deg;transform:${r};`,
1010
- "-skew-x-6": `--cer-skew-x:-6deg;transform:${r};`,
1011
- "-skew-x-12": `--cer-skew-x:-12deg;transform:${r};`,
1012
- "skew-y-0": `--cer-skew-y:0deg;transform:${r};`,
1013
- "skew-y-1": `--cer-skew-y:1deg;transform:${r};`,
1014
- "skew-y-2": `--cer-skew-y:2deg;transform:${r};`,
1015
- "skew-y-3": `--cer-skew-y:3deg;transform:${r};`,
1016
- "skew-y-6": `--cer-skew-y:6deg;transform:${r};`,
1017
- "skew-y-12": `--cer-skew-y:12deg;transform:${r};`,
1018
- "-skew-y-1": `--cer-skew-y:-1deg;transform:${r};`,
1019
- "-skew-y-2": `--cer-skew-y:-2deg;transform:${r};`,
1020
- "-skew-y-3": `--cer-skew-y:-3deg;transform:${r};`,
1021
- "-skew-y-6": `--cer-skew-y:-6deg;transform:${r};`,
1022
- "-skew-y-12": `--cer-skew-y:-12deg;transform:${r};`
1023
- }), Object.assign(e, {
1024
- ring: "box-shadow:0 0 0 3px var(--cer-ring-color,rgb(59 130 246/0.5));",
1025
- "ring-0": "box-shadow:0 0 0 0px var(--cer-ring-color,rgb(59 130 246/0.5));",
1026
- "ring-1": "box-shadow:0 0 0 1px var(--cer-ring-color,rgb(59 130 246/0.5));",
1027
- "ring-2": "box-shadow:0 0 0 2px var(--cer-ring-color,rgb(59 130 246/0.5));",
1028
- "ring-4": "box-shadow:0 0 0 4px var(--cer-ring-color,rgb(59 130 246/0.5));",
1029
- "ring-8": "box-shadow:0 0 0 8px var(--cer-ring-color,rgb(59 130 246/0.5));",
1030
- "ring-inset": "box-shadow:inset 0 0 0 3px var(--cer-ring-color,rgb(59 130 246/0.5));",
1031
- "ring-offset-0": "--cer-ring-offset-width:0px;box-shadow:0 0 0 0px var(--cer-ring-offset-color,#fff),0 0 0 3px var(--cer-ring-color,rgb(59 130 246/0.5));",
1032
- "ring-offset-1": "--cer-ring-offset-width:1px;box-shadow:0 0 0 1px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 1px) var(--cer-ring-color,rgb(59 130 246/0.5));",
1033
- "ring-offset-2": "--cer-ring-offset-width:2px;box-shadow:0 0 0 2px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 2px) var(--cer-ring-color,rgb(59 130 246/0.5));",
1034
- "ring-offset-4": "--cer-ring-offset-width:4px;box-shadow:0 0 0 4px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 4px) var(--cer-ring-color,rgb(59 130 246/0.5));",
1035
- "ring-offset-8": "--cer-ring-offset-width:8px;box-shadow:0 0 0 8px var(--cer-ring-offset-color,#fff),0 0 0 calc(3px + 8px) var(--cer-ring-color,rgb(59 130 246/0.5));"
1036
- });
1037
- const n = "var(--cer-blur) var(--cer-brightness) var(--cer-contrast) var(--cer-grayscale) var(--cer-hue-rotate) var(--cer-invert) var(--cer-saturate) var(--cer-sepia) var(--cer-drop-shadow)", i = "var(--cer-backdrop-blur) var(--cer-backdrop-brightness) var(--cer-backdrop-contrast) var(--cer-backdrop-grayscale) var(--cer-backdrop-hue-rotate) var(--cer-backdrop-invert) var(--cer-backdrop-saturate) var(--cer-backdrop-sepia)";
1038
- Object.assign(e, {
1039
- "blur-none": `--cer-blur:;filter:${n};`,
1040
- "blur-sm": `--cer-blur:blur(4px);filter:${n};`,
1041
- blur: `--cer-blur:blur(8px);filter:${n};`,
1042
- "blur-md": `--cer-blur:blur(12px);filter:${n};`,
1043
- "blur-lg": `--cer-blur:blur(16px);filter:${n};`,
1044
- "blur-xl": `--cer-blur:blur(24px);filter:${n};`,
1045
- "blur-2xl": `--cer-blur:blur(40px);filter:${n};`,
1046
- "blur-3xl": `--cer-blur:blur(64px);filter:${n};`,
1047
- "brightness-0": `--cer-brightness:brightness(0);filter:${n};`,
1048
- "brightness-50": `--cer-brightness:brightness(.5);filter:${n};`,
1049
- "brightness-75": `--cer-brightness:brightness(.75);filter:${n};`,
1050
- "brightness-90": `--cer-brightness:brightness(.9);filter:${n};`,
1051
- "brightness-95": `--cer-brightness:brightness(.95);filter:${n};`,
1052
- "brightness-100": `--cer-brightness:brightness(1);filter:${n};`,
1053
- "brightness-105": `--cer-brightness:brightness(1.05);filter:${n};`,
1054
- "brightness-110": `--cer-brightness:brightness(1.1);filter:${n};`,
1055
- "brightness-125": `--cer-brightness:brightness(1.25);filter:${n};`,
1056
- "brightness-150": `--cer-brightness:brightness(1.5);filter:${n};`,
1057
- "brightness-200": `--cer-brightness:brightness(2);filter:${n};`,
1058
- "contrast-0": `--cer-contrast:contrast(0);filter:${n};`,
1059
- "contrast-50": `--cer-contrast:contrast(.5);filter:${n};`,
1060
- "contrast-75": `--cer-contrast:contrast(.75);filter:${n};`,
1061
- "contrast-100": `--cer-contrast:contrast(1);filter:${n};`,
1062
- "contrast-125": `--cer-contrast:contrast(1.25);filter:${n};`,
1063
- "contrast-150": `--cer-contrast:contrast(1.5);filter:${n};`,
1064
- "contrast-200": `--cer-contrast:contrast(2);filter:${n};`,
1065
- grayscale: `--cer-grayscale:grayscale(100%);filter:${n};`,
1066
- "grayscale-0": `--cer-grayscale:grayscale(0);filter:${n};`,
1067
- "hue-rotate-0": `--cer-hue-rotate:hue-rotate(0deg);filter:${n};`,
1068
- "hue-rotate-15": `--cer-hue-rotate:hue-rotate(15deg);filter:${n};`,
1069
- "hue-rotate-30": `--cer-hue-rotate:hue-rotate(30deg);filter:${n};`,
1070
- "hue-rotate-60": `--cer-hue-rotate:hue-rotate(60deg);filter:${n};`,
1071
- "hue-rotate-90": `--cer-hue-rotate:hue-rotate(90deg);filter:${n};`,
1072
- "hue-rotate-180": `--cer-hue-rotate:hue-rotate(180deg);filter:${n};`,
1073
- "-hue-rotate-180": `--cer-hue-rotate:hue-rotate(-180deg);filter:${n};`,
1074
- "-hue-rotate-90": `--cer-hue-rotate:hue-rotate(-90deg);filter:${n};`,
1075
- "-hue-rotate-60": `--cer-hue-rotate:hue-rotate(-60deg);filter:${n};`,
1076
- "-hue-rotate-30": `--cer-hue-rotate:hue-rotate(-30deg);filter:${n};`,
1077
- "-hue-rotate-15": `--cer-hue-rotate:hue-rotate(-15deg);filter:${n};`,
1078
- invert: `--cer-invert:invert(100%);filter:${n};`,
1079
- "invert-0": `--cer-invert:invert(0);filter:${n};`,
1080
- "saturate-0": `--cer-saturate:saturate(0);filter:${n};`,
1081
- "saturate-50": `--cer-saturate:saturate(.5);filter:${n};`,
1082
- "saturate-100": `--cer-saturate:saturate(1);filter:${n};`,
1083
- "saturate-150": `--cer-saturate:saturate(1.5);filter:${n};`,
1084
- "saturate-200": `--cer-saturate:saturate(2);filter:${n};`,
1085
- sepia: `--cer-sepia:sepia(100%);filter:${n};`,
1086
- "sepia-0": `--cer-sepia:sepia(0);filter:${n};`,
1087
- "drop-shadow-sm": `--cer-drop-shadow:drop-shadow(0 1px 1px rgb(0 0 0/.05));filter:${n};`,
1088
- "drop-shadow": `--cer-drop-shadow:drop-shadow(0 1px 2px rgb(0 0 0/.1)) drop-shadow(0 1px 1px rgb(0 0 0/.06));filter:${n};`,
1089
- "drop-shadow-md": `--cer-drop-shadow:drop-shadow(0 4px 3px rgb(0 0 0/.07)) drop-shadow(0 2px 2px rgb(0 0 0/.06));filter:${n};`,
1090
- "drop-shadow-lg": `--cer-drop-shadow:drop-shadow(0 10px 8px rgb(0 0 0/.04)) drop-shadow(0 4px 3px rgb(0 0 0/.1));filter:${n};`,
1091
- "drop-shadow-xl": `--cer-drop-shadow:drop-shadow(0 20px 13px rgb(0 0 0/.03)) drop-shadow(0 8px 5px rgb(0 0 0/.08));filter:${n};`,
1092
- "drop-shadow-2xl": `--cer-drop-shadow:drop-shadow(0 25px 25px rgb(0 0 0/.15));filter:${n};`,
1093
- "drop-shadow-none": `--cer-drop-shadow:drop-shadow(0 0 #0000);filter:${n};`,
1094
- "backdrop-blur-none": `--cer-backdrop-blur:;backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1095
- "backdrop-blur-sm": `--cer-backdrop-blur:blur(4px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1096
- "backdrop-blur": `--cer-backdrop-blur:blur(8px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1097
- "backdrop-blur-md": `--cer-backdrop-blur:blur(12px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1098
- "backdrop-blur-lg": `--cer-backdrop-blur:blur(16px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1099
- "backdrop-blur-xl": `--cer-backdrop-blur:blur(24px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1100
- "backdrop-blur-2xl": `--cer-backdrop-blur:blur(40px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`,
1101
- "backdrop-blur-3xl": `--cer-backdrop-blur:blur(64px);backdrop-filter:${i};-webkit-backdrop-filter:${i};`
1102
- }), Object.assign(e, {
1103
- "aspect-auto": "aspect-ratio:auto;",
1104
- "aspect-square": "aspect-ratio:1 / 1;",
1105
- "aspect-video": "aspect-ratio:16 / 9;"
1106
- }), Object.assign(e, {
1107
- "object-contain": "object-fit:contain;",
1108
- "object-cover": "object-fit:cover;",
1109
- "object-fill": "object-fit:fill;",
1110
- "object-none": "object-fit:none;",
1111
- "object-scale-down": "object-fit:scale-down;",
1112
- "object-bottom": "object-position:bottom;",
1113
- "object-center": "object-position:center;",
1114
- "object-left": "object-position:left;",
1115
- "object-left-bottom": "object-position:left bottom;",
1116
- "object-left-top": "object-position:left top;",
1117
- "object-right": "object-position:right;",
1118
- "object-right-bottom": "object-position:right bottom;",
1119
- "object-right-top": "object-position:right top;",
1120
- "object-top": "object-position:top;"
1121
- });
1122
- for (let a = 1; a <= 6; a++) e[`line-clamp-${a}`] = `display:-webkit-box;-webkit-line-clamp:${a};-webkit-box-orient:vertical;overflow:hidden;`;
1123
- e["line-clamp-none"] = "overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none;";
1124
- for (let a = 1; a <= 12; a++) e[`order-${a}`] = `order:${a};`;
1125
- e["order-first"] = "order:-9999;", e["order-last"] = "order:9999;", e["order-none"] = "order:0;";
1126
- for (let a = 0; a <= 12; a++)
1127
- a <= 1 || (e[`grow-${a}`] = `flex-grow:${a};`, e[`shrink-${a}`] = `flex-shrink:${a};`);
1128
- return Object.assign(e, {
1129
- "bg-linear-to-t": "background-image:linear-gradient(to top, var(--cer-gradient-stops));",
1130
- "bg-linear-to-tr": "background-image:linear-gradient(to top right, var(--cer-gradient-stops));",
1131
- "bg-linear-to-r": "background-image:linear-gradient(to right, var(--cer-gradient-stops));",
1132
- "bg-linear-to-br": "background-image:linear-gradient(to bottom right, var(--cer-gradient-stops));",
1133
- "bg-linear-to-b": "background-image:linear-gradient(to bottom, var(--cer-gradient-stops));",
1134
- "bg-linear-to-bl": "background-image:linear-gradient(to bottom left, var(--cer-gradient-stops));",
1135
- "bg-linear-to-l": "background-image:linear-gradient(to left, var(--cer-gradient-stops));",
1136
- "bg-linear-to-tl": "background-image:linear-gradient(to top left, var(--cer-gradient-stops));",
1137
- "bg-radial": "background-image:radial-gradient(ellipse at center, var(--cer-gradient-stops));",
1138
- "bg-radial-at-t": "background-image:radial-gradient(ellipse at top, var(--cer-gradient-stops));",
1139
- "bg-radial-at-tr": "background-image:radial-gradient(ellipse at top right, var(--cer-gradient-stops));",
1140
- "bg-radial-at-r": "background-image:radial-gradient(ellipse at right, var(--cer-gradient-stops));",
1141
- "bg-radial-at-br": "background-image:radial-gradient(ellipse at bottom right, var(--cer-gradient-stops));",
1142
- "bg-radial-at-b": "background-image:radial-gradient(ellipse at bottom, var(--cer-gradient-stops));",
1143
- "bg-radial-at-bl": "background-image:radial-gradient(ellipse at bottom left, var(--cer-gradient-stops));",
1144
- "bg-radial-at-l": "background-image:radial-gradient(ellipse at left, var(--cer-gradient-stops));",
1145
- "bg-radial-at-tl": "background-image:radial-gradient(ellipse at top left, var(--cer-gradient-stops));",
1146
- "bg-radial-circle": "background-image:radial-gradient(circle at center, var(--cer-gradient-stops));",
1147
- "bg-radial-circle-at-t": "background-image:radial-gradient(circle at top, var(--cer-gradient-stops));",
1148
- "bg-radial-circle-at-tr": "background-image:radial-gradient(circle at top right, var(--cer-gradient-stops));",
1149
- "bg-radial-circle-at-r": "background-image:radial-gradient(circle at right, var(--cer-gradient-stops));",
1150
- "bg-radial-circle-at-br": "background-image:radial-gradient(circle at bottom right, var(--cer-gradient-stops));",
1151
- "bg-radial-circle-at-b": "background-image:radial-gradient(circle at bottom, var(--cer-gradient-stops));",
1152
- "bg-radial-circle-at-bl": "background-image:radial-gradient(circle at bottom left, var(--cer-gradient-stops));",
1153
- "bg-radial-circle-at-l": "background-image:radial-gradient(circle at left, var(--cer-gradient-stops));",
1154
- "bg-radial-circle-at-tl": "background-image:radial-gradient(circle at top left, var(--cer-gradient-stops));",
1155
- "bg-conic": "background-image:conic-gradient(from 0deg at center, var(--cer-gradient-stops));",
1156
- "bg-conic-at-t": "background-image:conic-gradient(from 0deg at top, var(--cer-gradient-stops));",
1157
- "bg-conic-at-tr": "background-image:conic-gradient(from 0deg at top right, var(--cer-gradient-stops));",
1158
- "bg-conic-at-r": "background-image:conic-gradient(from 0deg at right, var(--cer-gradient-stops));",
1159
- "bg-conic-at-br": "background-image:conic-gradient(from 0deg at bottom right, var(--cer-gradient-stops));",
1160
- "bg-conic-at-b": "background-image:conic-gradient(from 0deg at bottom, var(--cer-gradient-stops));",
1161
- "bg-conic-at-bl": "background-image:conic-gradient(from 0deg at bottom left, var(--cer-gradient-stops));",
1162
- "bg-conic-at-l": "background-image:conic-gradient(from 0deg at left, var(--cer-gradient-stops));",
1163
- "bg-conic-at-tl": "background-image:conic-gradient(from 0deg at top left, var(--cer-gradient-stops));"
1164
- }), Object.assign(e, {
1165
- "prose-invert": `
1166
- --cer-prose-body:var(--cer-color-neutral-200);
1167
- --cer-prose-headings:var(--cer-color-neutral-50);
1168
- --cer-prose-lead:var(--cer-color-neutral-300);
1169
- --cer-prose-bold:var(--cer-color-neutral-50);
1170
- --cer-prose-quotes:var(--cer-color-neutral-300);
1171
- --cer-prose-quote-border:var(--cer-color-neutral-700);
1172
- --cer-prose-code:var(--cer-color-neutral-200);
1173
- --cer-prose-code-bg:var(--cer-color-neutral-900);
1174
- --cer-prose-pre-code:var(--cer-color-neutral-200);
1175
- --cer-prose-pre-bg:var(--cer-color-neutral-900);
1176
- --cer-prose-pre-border:var(--cer-color-neutral-800);
1177
- --cer-prose-hr:var(--cer-color-neutral-700);
1178
- --cer-prose-caps:var(--cer-color-neutral-400);
1179
- --cer-prose-list-marker:var(--cer-color-neutral-400);
1180
- --cer-prose-list-marker-strong:var(--cer-color-neutral-300);
1181
- --cer-prose-counters:var(--cer-color-neutral-300);
1182
- --cer-prose-bullets:var(--cer-color-neutral-300);
1183
- --cer-prose-img-caption:var(--cer-color-neutral-400);
1184
- --cer-prose-table-border:var(--cer-color-neutral-700);
1185
- --cer-prose-table-head:var(--cer-color-neutral-200);
1186
- --cer-prose-links:var(--cer-prose-invert-links,var(--cer-color-neutral-300));
1187
- --cer-prose-links-hover:var(--cer-prose-invert-links-hover,var(--cer-color-neutral-100));
1188
- `.replace(/\s+/g, ""),
1189
- "prose-primary": `
1190
- --cer-prose-links:var(--cer-color-primary-700);
1191
- --cer-prose-links-hover:var(--cer-color-primary-500);
1192
- --cer-prose-invert-links:var(--cer-color-primary-300);
1193
- --cer-prose-invert-links-hover:var(--cer-color-primary-100);
1194
- `.replace(/\s+/g, ""),
1195
- "prose-secondary": `
1196
- --cer-prose-links:var(--cer-color-secondary-700);
1197
- --cer-prose-links-hover:var(--cer-color-secondary-500);
1198
- --cer-prose-invert-links:var(--cer-color-secondary-300);
1199
- --cer-prose-invert-links-hover:var(--cer-color-secondary-100);
1200
- `.replace(/\s+/g, ""),
1201
- "prose-success": `
1202
- --cer-prose-links:var(--cer-color-success-700);
1203
- --cer-prose-links-hover:var(--cer-color-success-500);
1204
- --cer-prose-invert-links:var(--cer-color-success-300);
1205
- --cer-prose-invert-links-hover:var(--cer-color-success-100);
1206
- `.replace(/\s+/g, ""),
1207
- "prose-warning": `
1208
- --cer-prose-links:var(--cer-color-warning-700);
1209
- --cer-prose-links-hover:var(--cer-color-warning-500);
1210
- --cer-prose-invert-links:var(--cer-color-warning-300);
1211
- --cer-prose-invert-links-hover:var(--cer-color-warning-100);
1212
- `.replace(/\s+/g, ""),
1213
- "prose-error": `
1214
- --cer-prose-links:var(--cer-color-error-700);
1215
- --cer-prose-links-hover:var(--cer-color-error-500);
1216
- --cer-prose-invert-links:var(--cer-color-error-300);
1217
- --cer-prose-invert-links-hover:var(--cer-color-error-100);
1218
- `.replace(/\s+/g, ""),
1219
- "prose-info": `
1220
- --cer-prose-links:var(--cer-color-info-700);
1221
- --cer-prose-links-hover:var(--cer-color-info-500);
1222
- --cer-prose-invert-links:var(--cer-color-info-300);
1223
- --cer-prose-invert-links-hover:var(--cer-color-info-100);
1224
- `.replace(/\s+/g, "")
1225
- }), e["flow-root"] = "display:flow-root;", e["text-start"] = "text-align:start;", e["text-end"] = "text-align:end;", e["grid-cols-subgrid"] = "grid-template-columns:subgrid;", e["grid-rows-subgrid"] = "grid-template-rows:subgrid;", Object.assign(e, {
1226
- "text-shadow-xs": "--cer-text-shadow-color:rgb(0 0 0 / 0.05);text-shadow:0 1px 1px var(--cer-text-shadow-color, rgb(0 0 0 / 0.05));",
1227
- "text-shadow-sm": "--cer-text-shadow-color:rgb(0 0 0 / 0.15);text-shadow:0 1px 2px var(--cer-text-shadow-color, rgb(0 0 0 / 0.15));",
1228
- "text-shadow": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 1px 3px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
1229
- "text-shadow-md": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 2px 4px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
1230
- "text-shadow-lg": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 4px 8px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
1231
- "text-shadow-xl": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 6px 16px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
1232
- "text-shadow-2xl": "--cer-text-shadow-color:rgb(0 0 0 / 0.3);text-shadow:0 8px 24px var(--cer-text-shadow-color, rgb(0 0 0 / 0.3));",
1233
- "text-shadow-none": "text-shadow:none;"
1234
- }), Object.assign(e, {
1235
- "mask-none": "mask-image:none;",
1236
- "mask-linear-to-t": "mask-image:linear-gradient(to top,black,transparent);",
1237
- "mask-linear-to-tr": "mask-image:linear-gradient(to top right,black,transparent);",
1238
- "mask-linear-to-r": "mask-image:linear-gradient(to right,black,transparent);",
1239
- "mask-linear-to-br": "mask-image:linear-gradient(to bottom right,black,transparent);",
1240
- "mask-linear-to-b": "mask-image:linear-gradient(to bottom,black,transparent);",
1241
- "mask-linear-to-bl": "mask-image:linear-gradient(to bottom left,black,transparent);",
1242
- "mask-linear-to-l": "mask-image:linear-gradient(to left,black,transparent);",
1243
- "mask-linear-to-tl": "mask-image:linear-gradient(to top left,black,transparent);",
1244
- "mask-radial": "mask-image:radial-gradient(ellipse at center,black,transparent);",
1245
- "mask-radial-from-center": "mask-image:radial-gradient(ellipse at center,black 0%,transparent 100%);",
1246
- "mask-size-contain": "mask-size:contain;",
1247
- "mask-size-cover": "mask-size:cover;",
1248
- "mask-no-repeat": "mask-repeat:no-repeat;",
1249
- "mask-repeat": "mask-repeat:repeat;",
1250
- "mask-alpha": "mask-mode:alpha;",
1251
- "mask-luminance": "mask-mode:luminance;"
1252
- }), e["field-sizing-content"] = "field-sizing:content;", e["field-sizing-fixed"] = "field-sizing:fixed;", Object.assign(e, {
1253
- "scheme-light": "color-scheme:light;",
1254
- "scheme-dark": "color-scheme:dark;",
1255
- "scheme-both": "color-scheme:light dark;",
1256
- "scheme-only-light": "color-scheme:only light;",
1257
- "scheme-only-dark": "color-scheme:only dark;",
1258
- "scheme-normal": "color-scheme:normal;"
1259
- }), Object.assign(e, {
1260
- "font-stretch-ultra-condensed": "font-stretch:ultra-condensed;",
1261
- "font-stretch-extra-condensed": "font-stretch:extra-condensed;",
1262
- "font-stretch-condensed": "font-stretch:condensed;",
1263
- "font-stretch-semi-condensed": "font-stretch:semi-condensed;",
1264
- "font-stretch-normal": "font-stretch:normal;",
1265
- "font-stretch-semi-expanded": "font-stretch:semi-expanded;",
1266
- "font-stretch-expanded": "font-stretch:expanded;",
1267
- "font-stretch-extra-expanded": "font-stretch:extra-expanded;",
1268
- "font-stretch-ultra-expanded": "font-stretch:ultra-expanded;"
1269
- }), Object.assign(e, {
1270
- "cursor-zoom-in": "cursor:zoom-in;",
1271
- "cursor-zoom-out": "cursor:zoom-out;",
1272
- "cursor-cell": "cursor:cell;",
1273
- "cursor-crosshair": "cursor:crosshair;",
1274
- "cursor-copy": "cursor:copy;",
1275
- "cursor-alias": "cursor:alias;",
1276
- "cursor-context-menu": "cursor:context-menu;",
1277
- "cursor-vertical-text": "cursor:vertical-text;",
1278
- "cursor-no-drop": "cursor:no-drop;",
1279
- "cursor-progress": "cursor:progress;",
1280
- "cursor-col-resize": "cursor:col-resize;",
1281
- "cursor-row-resize": "cursor:row-resize;",
1282
- "cursor-ew-resize": "cursor:ew-resize;",
1283
- "cursor-ns-resize": "cursor:ns-resize;",
1284
- "cursor-nesw-resize": "cursor:nesw-resize;",
1285
- "cursor-nwse-resize": "cursor:nwse-resize;",
1286
- "cursor-all-scroll": "cursor:all-scroll;"
1287
- }), Object.assign(e, {
1288
- "border-s": "border-inline-start-width:1px;",
1289
- "border-e": "border-inline-end-width:1px;",
1290
- "border-s-0": "border-inline-start-width:0px;",
1291
- "border-e-0": "border-inline-end-width:0px;",
1292
- "border-s-2": "border-inline-start-width:2px;",
1293
- "border-e-2": "border-inline-end-width:2px;",
1294
- "border-s-4": "border-inline-start-width:4px;",
1295
- "border-e-4": "border-inline-end-width:4px;",
1296
- "border-s-8": "border-inline-start-width:8px;",
1297
- "border-e-8": "border-inline-end-width:8px;"
1298
- }), Object.assign(e, {
1299
- "rounded-s-none": "border-start-start-radius:0;border-end-start-radius:0;",
1300
- "rounded-e-none": "border-start-end-radius:0;border-end-end-radius:0;",
1301
- "rounded-s-sm": "border-start-start-radius:0.125rem;border-end-start-radius:0.125rem;",
1302
- "rounded-e-sm": "border-start-end-radius:0.125rem;border-end-end-radius:0.125rem;",
1303
- "rounded-s": "border-start-start-radius:0.25rem;border-end-start-radius:0.25rem;",
1304
- "rounded-e": "border-start-end-radius:0.25rem;border-end-end-radius:0.25rem;",
1305
- "rounded-s-md": "border-start-start-radius:0.375rem;border-end-start-radius:0.375rem;",
1306
- "rounded-e-md": "border-start-end-radius:0.375rem;border-end-end-radius:0.375rem;",
1307
- "rounded-s-lg": "border-start-start-radius:0.5rem;border-end-start-radius:0.5rem;",
1308
- "rounded-e-lg": "border-start-end-radius:0.5rem;border-end-end-radius:0.5rem;",
1309
- "rounded-s-xl": "border-start-start-radius:0.75rem;border-end-start-radius:0.75rem;",
1310
- "rounded-e-xl": "border-start-end-radius:0.75rem;border-end-end-radius:0.75rem;",
1311
- "rounded-s-2xl": "border-start-start-radius:1rem;border-end-start-radius:1rem;",
1312
- "rounded-e-2xl": "border-start-end-radius:1rem;border-end-end-radius:1rem;",
1313
- "rounded-s-3xl": "border-start-start-radius:1.5rem;border-end-start-radius:1.5rem;",
1314
- "rounded-e-3xl": "border-start-end-radius:1.5rem;border-end-end-radius:1.5rem;",
1315
- "rounded-s-full": "border-start-start-radius:9999px;border-end-start-radius:9999px;",
1316
- "rounded-e-full": "border-start-end-radius:9999px;border-end-end-radius:9999px;"
1317
- }), e;
1318
- }, ge = Ze();
1319
- function er(e) {
1320
- return /^prose(?:-(sm|lg|xl|2xl))?$/.test(e) ? (Ke(e), "") : null;
1321
- }
1322
- function _e(e) {
1323
- return /^prose-([a-z0-9]+):(.+)$/.test(e) ? Je(e, ge, me, fe, xe, he, be, se) : null;
1324
- }
1325
- function I(e, r) {
1326
- let t = 0;
1327
- for (let o = 0; o < e.length; o++) {
1328
- const n = e[o];
1329
- if (n === "[" || n === "(") t++;
1330
- else if ((n === "]" || n === ")") && t > 0) t--;
1331
- else if (t === 0 && (n === ">" || n === "+" || n === "~" || n === " ")) return e.slice(0, o) + r + e.slice(o);
1332
- }
1333
- return e + r;
1334
- }
1335
- var We = {
1336
- before: (e, r) => `${e}::before{${r}}`,
1337
- after: (e, r) => `${e}::after{${r}}`,
1338
- hover: (e, r) => `${I(e, ":hover")}{${r}}`,
1339
- focus: (e, r) => `${I(e, ":focus")}{${r}}`,
1340
- active: (e, r) => `${I(e, ":active")}{${r}}`,
1341
- disabled: (e, r) => `${I(e, ":disabled")}{${r}}`,
1342
- visited: (e, r) => `${I(e, ":visited")}{${r}}`,
1343
- checked: (e, r) => `${I(e, ":checked")}{${r}}`,
1344
- first: (e, r) => `${I(e, ":first-child")}{${r}}`,
1345
- last: (e, r) => `${I(e, ":last-child")}{${r}}`,
1346
- odd: (e, r) => `${I(e, ":nth-child(odd)")}{${r}}`,
1347
- even: (e, r) => `${I(e, ":nth-child(even)")}{${r}}`,
1348
- "focus-within": (e, r) => `${I(e, ":focus-within")}{${r}}`,
1349
- "focus-visible": (e, r) => `${I(e, ":focus-visible")}{${r}}`,
1350
- "group-hover": (e, r) => `.group:hover ${e}{${r}}`,
1351
- "group-focus": (e, r) => `.group:focus ${e}{${r}}`,
1352
- "group-active": (e, r) => `.group:active ${e}{${r}}`,
1353
- "group-disabled": (e, r) => `.group:disabled ${e}{${r}}`,
1354
- "peer-hover": (e, r) => `.peer:hover ~ ${e}{${r}}`,
1355
- "peer-focus": (e, r) => `.peer:focus ~ ${e}{${r}}`,
1356
- "peer-checked": (e, r) => `.peer:checked ~ ${e}{${r}}`,
1357
- "peer-disabled": (e, r) => `.peer:disabled ~ ${e}{${r}}`,
1358
- "dark-class": (e, r) => `:host(.dark) ${e}{${r}}`,
1359
- rtl: (e, r) => `[dir=rtl] ${e}{${r}}`,
1360
- ltr: (e, r) => `[dir=ltr] ${e}{${r}}`,
1361
- placeholder: (e, r) => `${e}::placeholder{${r}}`,
1362
- file: (e, r) => `${e}::file-selector-button{${r}}`,
1363
- marker: (e, r) => `${e}::marker{${r}}`,
1364
- selection: (e, r) => `${e}::selection{${r}}`,
1365
- open: (e, r) => `${I(e, "[open]")}{${r}}`,
1366
- inert: (e, r) => `${I(e, "[inert]")}{${r}}`
1367
- }, ae = {
1368
- sm: "(min-width:640px)",
1369
- md: "(min-width:768px)",
1370
- lg: "(min-width:1024px)",
1371
- xl: "(min-width:1280px)",
1372
- "2xl": "(min-width:1536px)",
1373
- dark: "(prefers-color-scheme: dark)",
1374
- "motion-reduce": "(prefers-reduced-motion: reduce)",
1375
- "motion-safe": "(prefers-reduced-motion: no-preference)",
1376
- print: "print",
1377
- "forced-colors": "(forced-colors: active)"
1378
- }, Ve = {
1379
- xs: "(min-width:20rem)",
1380
- sm: "(min-width:24rem)",
1381
- md: "(min-width:28rem)",
1382
- lg: "(min-width:32rem)",
1383
- xl: "(min-width:36rem)",
1384
- "2xl": "(min-width:42rem)",
1385
- "3xl": "(min-width:48rem)",
1386
- "4xl": "(min-width:56rem)",
1387
- "5xl": "(min-width:64rem)",
1388
- "6xl": "(min-width:72rem)",
1389
- "7xl": "(min-width:80rem)"
1390
- }, ne = [
1391
- "sm",
1392
- "md",
1393
- "lg",
1394
- "xl",
1395
- "2xl",
1396
- "motion-reduce",
1397
- "motion-safe",
1398
- "print",
1399
- "forced-colors"
1400
- ], pe = [
1401
- "xs",
1402
- "sm",
1403
- "md",
1404
- "lg",
1405
- "xl",
1406
- "2xl",
1407
- "3xl",
1408
- "4xl",
1409
- "5xl",
1410
- "6xl",
1411
- "7xl"
1412
- ];
1413
- function me(e) {
1414
- const r = e.startsWith("-"), t = r ? e.slice(1) : e, o = t.lastIndexOf("-");
1415
- if (o === -1) return null;
1416
- const n = t.slice(0, o), i = t.slice(o + 1);
1417
- if (!ke[n]) return null;
1418
- if (i.includes("/")) {
1419
- const [d, h] = i.split("/").map((S) => parseFloat(S));
1420
- if (Number.isNaN(d) || Number.isNaN(h) || h === 0) return null;
1421
- const $ = d / h * 100;
1422
- return ke[n].map((S) => `${S}:${$}%;`).join("");
1423
- }
1424
- const a = parseFloat(i);
1425
- if (Number.isNaN(a)) return null;
1426
- const c = r ? "-" : "";
1427
- return ke[n].map((d) => `${d}:calc(${c}${J} * ${a});`).join("");
1428
- }
1429
- function fe(e) {
1430
- const r = e.startsWith("-"), t = (r ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
1431
- if (!t) return null;
1432
- const [, o, n] = t, i = o === "x";
1433
- if (n === "reverse") return i ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
1434
- if (n.includes("/")) {
1435
- const [d, h] = n.split("/").map((W) => parseFloat(W));
1436
- if (Number.isNaN(d) || Number.isNaN(h) || h === 0) return null;
1437
- const $ = d / h * 100, S = r ? "-" : "";
1438
- return i ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${S}${$}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${S}${$}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${S}${$}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${S}${$}% * var(--cer-space-y-reverse));}`;
1439
- }
1440
- const a = parseFloat(n);
1441
- if (Number.isNaN(a)) return null;
1442
- const c = `calc(${r ? "-" : ""}${J} * ${a})`;
1443
- return i ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${c} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${c} * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${c} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${c} * var(--cer-space-y-reverse));}`;
1444
- }
1445
- function ue(e) {
1446
- let r = e.replace("#", "");
1447
- r.length === 3 && (r = r.split("").map((o) => o + o).join(""));
1448
- const t = parseInt(r, 16);
1449
- return `${t >> 16 & 255} ${t >> 8 & 255} ${t & 255}`;
1450
- }
1451
- var rr = /^(text-shadow|bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke|ring|divide)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/, tr = {
1452
- bg: "background-color",
1453
- decoration: "text-decoration-color",
1454
- text: "color",
1455
- border: "border-color",
1456
- outline: "outline-color",
1457
- caret: "caret-color",
1458
- accent: "accent-color",
1459
- fill: "fill",
1460
- stroke: "stroke"
1461
- };
1462
- function or(e) {
1463
- const r = rr.exec(e);
1464
- if (!r) return null;
1465
- const [, t, o, n = "DEFAULT"] = r, i = re[o]?.[n];
1466
- if (!i) return null;
1467
- if (t === "shadow") return `--cer-shadow-color:${i};`;
1468
- if (t === "ring") return `--cer-ring-color:${i};`;
1469
- if (t === "divide") return `border-color:${i};`;
1470
- if (t === "text-shadow") return `--cer-text-shadow-color:${i};`;
1471
- const a = tr[t];
1472
- return a ? `${a}:${i};` : null;
1473
- }
1474
- function nr(e) {
1475
- const r = e.indexOf("/");
1476
- if (r === -1) return { base: e };
1477
- const t = e.slice(0, r), o = e.slice(r + 1), n = parseInt(o, 10);
1478
- return isNaN(n) || n < 0 || n > 100 ? { base: t } : {
1479
- base: t,
1480
- opacity: n / 100
1481
- };
1482
- }
1483
- function he(e) {
1484
- const { base: r, opacity: t } = nr(e), o = or(r);
1485
- if (o) {
1486
- if (t !== void 0) {
1487
- if (o.includes("var(")) {
1488
- const a = /var\([^)]*\)/.exec(o);
1489
- if (a) {
1490
- const c = a[0], d = t * 100, h = `color-mix(in srgb, ${c} ${d}%, rgba(0 0 0 / 0) ${100 - d}%)`, $ = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(c), S = /^([a-z-]+):/.exec(o), W = S ? S[1] : "background-color";
1491
- if ($) {
1492
- const X = `rgb(${ue($[0])} / ${t})`;
1493
- return `${W}:${c.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, X)};__CE_COLOR_MIX_SPLIT__${W}:${h};`;
1494
- }
1495
- return `${W}:${h};`;
1496
- }
1497
- }
1498
- const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(o);
1499
- if (i) {
1500
- const a = ue(i[0]);
1501
- return o.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, `rgb(${a} / ${t})`);
1502
- }
1503
- }
1504
- return o;
1505
- }
1506
- const n = se(r);
1507
- if (n && t !== void 0) {
1508
- if (n.includes("var(")) {
1509
- const a = /var\([^)]*\)/.exec(n);
1510
- if (a) {
1511
- const c = a[0], d = t * 100, h = `color-mix(in srgb, ${c} ${d}%, rgba(0 0 0 / 0) ${100 - d}%)`, $ = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(c), S = /^([a-z-]+):/.exec(n), W = S ? S[1] : null;
1512
- if ($ && W) {
1513
- const X = `rgb(${ue($[0])} / ${t})`;
1514
- return `${W}:${c.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, X)};__CE_COLOR_MIX_SPLIT__${W}:${h};`;
1515
- }
1516
- return n.replace(c, h);
1517
- }
1518
- }
1519
- const i = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(n);
1520
- if (i) {
1521
- const a = ue(i[0]);
1522
- return n.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i, `rgb(${a} / ${t})`);
1523
- }
1524
- }
1525
- return n;
1526
- }
1527
- function be(e) {
1528
- const r = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
1529
- if (!r) return null;
1530
- const [, t, o, n = "DEFAULT"] = r, i = re[o]?.[n];
1531
- if (!i) return null;
1532
- switch (t) {
1533
- case "from":
1534
- return `--cer-gradient-from:${i} var(--cer-gradient-from-position);--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), var(--cer-gradient-to);`;
1535
- case "to":
1536
- return `--cer-gradient-to:${i} var(--cer-gradient-to-position);`;
1537
- case "via":
1538
- return `--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${i} var(--cer-gradient-via-position), var(--cer-gradient-to);`;
1539
- default:
1540
- return null;
1541
- }
1542
- }
1543
- function xe(e) {
1544
- const r = /^opacity-(\d{1,3})$/.exec(e);
1545
- if (!r) return null;
1546
- const t = parseInt(r[1], 10);
1547
- return t < 0 || t > 100 ? null : `opacity:${t / 100};`;
1548
- }
1549
- function se(e) {
1550
- if (e.startsWith("[") && e.endsWith("]") && !e.includes("-[")) {
1551
- const a = e.slice(1, -1).trim(), c = a.indexOf(":");
1552
- if (c === -1) return null;
1553
- const d = a.slice(0, c).trim();
1554
- let h = a.slice(c + 1).trim();
1555
- return /^[a-zA-Z][a-zA-Z0-9-]*$/.test(d) ? (h = h.replace(/_/g, " "), h = h.replace(/url\('\s*([^']*?)\s*'\)/g, 'url("$1")'), h = h.replace(/^'([^']*)'$/g, '"$1"'), `${d}:${h};`) : null;
1556
- }
1557
- const r = e.indexOf("-[");
1558
- if (r <= 0 || !e.endsWith("]")) return null;
1559
- const t = e.slice(0, r), o = e.slice(r + 2, -1).replace(/_/g, " "), n = {
1560
- bg: "background-color",
1561
- shadow: "box-shadow",
1562
- p: "padding",
1563
- px: "padding-inline",
1564
- py: "padding-block",
1565
- m: "margin",
1566
- mx: "margin-inline",
1567
- my: "margin-block",
1568
- w: "width",
1569
- h: "height",
1570
- "min-w": "min-width",
1571
- "max-w": "max-width",
1572
- "min-h": "min-height",
1573
- "max-h": "max-height",
1574
- "border-t": "border-top-width",
1575
- "border-b": "border-bottom-width",
1576
- "border-l": "border-left-width",
1577
- "border-r": "border-right-width",
1578
- "border-x": "border-inline-width",
1579
- "border-y": "border-block-width",
1580
- "grid-cols": "grid-template-columns",
1581
- "grid-rows": "grid-template-rows",
1582
- transition: "transition-property",
1583
- ease: "transition-timing-function",
1584
- delay: "transition-delay",
1585
- duration: "transition-duration",
1586
- list: "list-style",
1587
- break: "word-break",
1588
- flex: "flex-direction",
1589
- items: "align-items",
1590
- justify: "justify-content",
1591
- content: "content",
1592
- self: "align-self",
1593
- basis: "flex-basis",
1594
- tracking: "letter-spacing",
1595
- leading: "line-height",
1596
- z: "z-index",
1597
- opacity: "opacity"
1598
- };
1599
- if (t === "text")
1600
- return /^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(o) ? `font-size:${o};` : `color:${o};`;
1601
- if (t === "rotate") return `transform:rotate(${o});`;
1602
- if (t === "scale") return `transform:scale(${o});`;
1603
- if (t === "translate-x") return `transform:translateX(${o});`;
1604
- if (t === "translate-y") return `transform:translateY(${o});`;
1605
- const i = n[t] ?? t.replace(/_/g, "-");
1606
- return i && o ? `${i}:${o};` : null;
1607
- }
1608
- function Ee(e) {
1609
- if (e.startsWith("[") && e.endsWith("]")) {
1610
- const t = e.slice(1, -1);
1611
- return t.includes("&") ? t : e;
1612
- }
1613
- const r = e.indexOf("-[");
1614
- if (r > 0 && e.endsWith("]")) {
1615
- const t = e.slice(r + 2, -1).replace(/_/g, "-");
1616
- return t.includes("&") ? t : e.replace(/_/g, "-");
1617
- }
1618
- return null;
1619
- }
1620
- function ar(e) {
1621
- const r = [];
1622
- let t;
1623
- for (Pe.lastIndex = 0; t = Pe.exec(e); ) {
1624
- const o = t[2].split(/\s+/).filter(Boolean);
1625
- o.length && r.push(...o);
1626
- }
1627
- return r;
1628
- }
1629
- var Pe = /class\s*=\s*(['"])([\s\S]*?)\1/g, sr = {
1630
- sm: 640,
1631
- md: 768,
1632
- lg: 1024,
1633
- xl: 1280,
1634
- "2xl": 1536
1635
- }, ir = {
1636
- xs: 320,
1637
- sm: 384,
1638
- md: 448,
1639
- lg: 512,
1640
- xl: 576,
1641
- "2xl": 672,
1642
- "3xl": 768,
1643
- "4xl": 896,
1644
- "5xl": 1024,
1645
- "6xl": 1152,
1646
- "7xl": 1280
1647
- };
1648
- function Me(e) {
1649
- for (const [r, t] of Object.entries(sr)) if (e.includes(`@media ${ae[r]}`)) return t;
1650
- return -1;
1651
- }
1652
- function Re(e) {
1653
- for (const [r, t] of Object.entries(ir)) if (e.includes(`@container ${Ve[r]}`)) return t;
1654
- if (e.includes("@container (min-width:")) {
1655
- const r = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(e);
1656
- if (r) {
1657
- const t = parseFloat(r[1]), o = r[2];
1658
- return o === "rem" || o === "em" ? t * 16 : t;
1659
- }
1660
- }
1661
- return -1;
1662
- }
1663
- var D = /* @__PURE__ */ new Map(), Ie = 1e3;
1664
- function cr(e) {
1665
- const r = ar(e);
1666
- if (!r.length) return "";
1667
- const t = new Set(r), o = Array.from(t).sort().join("\0"), n = D.get(o);
1668
- if (n !== void 0)
1669
- return D.delete(o), D.set(o, n), n;
1670
- const i = [
1671
- [],
1672
- [],
1673
- [],
1674
- [],
1675
- []
1676
- ], a = {}, c = (g, p = !1) => {
1677
- const b = p ? `dark|${g}` : g;
1678
- if (b in a) return a[b];
1679
- const x = S(g, p);
1680
- return a[b] = x, x;
1681
- }, d = (g) => {
1682
- const p = g.some((w) => ne.includes(w)), b = g.some((w) => w.startsWith("@") && (pe.includes(w.slice(1)) || w.match(/^@\[.+\]$/))), x = g.includes("dark");
1683
- return g.length ? !p && !x && !b ? 1 : x && (p || b) ? 4 : x ? 3 : 2 : 0;
1684
- }, h = (g) => {
1685
- const p = [];
1686
- let b = "", x = 0;
1687
- for (let w = 0; w < g.length; w++) {
1688
- const k = g[w];
1689
- k === "[" || k === "(" ? x++ : (k === "]" || k === ")") && x--, k === ":" && x === 0 ? (p.push(b), b = "") : b += k;
1690
- }
1691
- return b && p.push(b), p;
1692
- }, $ = {
1693
- hover: ":hover",
1694
- focus: ":focus",
1695
- active: ":active",
1696
- visited: ":visited",
1697
- disabled: ":disabled",
1698
- checked: ":checked",
1699
- first: ":first-child",
1700
- last: ":last-child",
1701
- odd: ":nth-child(odd)",
1702
- even: ":nth-child(even)",
1703
- "focus-within": ":focus-within",
1704
- "focus-visible": ":focus-visible"
1705
- }, S = (g, p = !1) => {
1706
- const b = h(g);
1707
- let x = "", w = !1;
1708
- for (const s of b) {
1709
- let l = s;
1710
- if (l.startsWith("!") && (w = !0, l = l.slice(1)), l.endsWith("!") && (w = !0, l = l.slice(0, -1)), !(l.startsWith("data-[") && l.endsWith("]") || l.startsWith("has-[") && l.endsWith("]") || l.startsWith("not-[") && l.endsWith("]") || l.startsWith("in-[") && l.endsWith("]") || l.startsWith("supports-[") && l.endsWith("]") || l === "starting") && (ge[l] || me(l) || fe(l) || xe(l) || he(l) || be(l) || se(l))) {
1711
- x = s;
1712
- break;
1713
- }
1714
- }
1715
- if (!x) return null;
1716
- const k = x.replace(/^!/, "").replace(/!$/, ""), F = ge[k] ?? me(k) ?? fe(k) ?? xe(k) ?? he(k) ?? be(k) ?? se(k);
1717
- if (!F) return null;
1718
- const le = b.indexOf(x);
1719
- let E = le >= 0 ? b.slice(0, le) : [];
1720
- p && (E = E.filter((s) => s !== "dark"));
1721
- const P = oe(g), z = w ? F.replace(/;/g, " !important;") : F, y = "__SUBJECT__";
1722
- let u = y;
1723
- const V = [];
1724
- for (const s of E) s.startsWith("group-") ? (u = `.group:${s.slice(6)} ${u}`, V.push(s)) : s.startsWith("peer-") && (u = u.replace(y, `.peer:${s.slice(5)}~${y}`), V.push(s));
1725
- E = E.filter((s) => !V.includes(s));
1726
- const q = [], de = [];
1727
- let T = null, K = !1;
1728
- const H = [];
1729
- for (const s of E) {
1730
- if (s === "dark" || ne.includes(s) || s.startsWith("@") && (pe.includes(s.slice(1)) || s.match(/^@\[.+\]$/))) continue;
1731
- if (s.startsWith("data-[") && s.endsWith("]")) {
1732
- const m = s.slice(6, -1), _ = m.includes("=") ? "[data-" + m.replace(/^([^=]+)=(.+)$/, '$1="$2"') + "]" : "[data-" + m + "]";
1733
- q.push(_);
1734
- continue;
1735
- }
1736
- if (s.startsWith("has-[") && s.endsWith("]")) {
1737
- const m = s.slice(5, -1).replace(/_/g, " ");
1738
- q.push(`:has(${m})`);
1739
- continue;
1740
- }
1741
- if (s.startsWith("not-[") && s.endsWith("]")) {
1742
- const m = s.slice(5, -1).replace(/_/g, " ");
1743
- q.push(`:not(${m})`);
1744
- continue;
1745
- }
1746
- if (s.startsWith("in-[") && s.endsWith("]")) {
1747
- u = ":is(" + s.slice(4, -1).replace(/_/g, " ") + ") " + u;
1748
- continue;
1749
- }
1750
- if (s === "starting") {
1751
- K = !0;
1752
- continue;
1753
- }
1754
- if (s.startsWith("supports-[") && s.endsWith("]")) {
1755
- H.push(s);
1756
- continue;
1757
- }
1758
- const l = Ee(s);
1759
- if (l) {
1760
- T = l;
1761
- continue;
1762
- }
1763
- const O = $[s];
1764
- if (O) {
1765
- T ? de.push(O) : q.push(O);
1766
- continue;
1767
- }
1768
- const R = We[s];
1769
- typeof R == "function" && (u = R(u, z).split("{")[0]);
1770
- }
1771
- const G = q.join(""), L = de.join("");
1772
- function Y(s, l) {
1773
- if (!l) return s;
1774
- let O = 0, R = 0;
1775
- if (s.length && (s[0] === ">" || s[0] === "+" || s[0] === "~" || s[0] === " ")) {
1776
- let m = 1;
1777
- for (; m < s.length && s[m] === " "; ) m++;
1778
- for (; m < s.length; m++) {
1779
- const _ = s[m];
1780
- if (_ === "[" ? O++ : _ === "]" && O > 0 ? O-- : _ === "(" ? R++ : _ === ")" && R > 0 && R--, O === 0 && R === 0 && (s[m] === ">" || s[m] === "+" || s[m] === "~" || s[m] === " ")) return s.slice(0, m) + l + s.slice(m);
1781
- }
1782
- return s + l;
1783
- }
1784
- for (let m = 0; m < s.length; m++) {
1785
- const _ = s[m];
1786
- if (_ === "[" ? O++ : _ === "]" && O > 0 ? O-- : _ === "(" ? R++ : _ === ")" && R > 0 && R--, O === 0 && R === 0 && (_ === ">" || _ === "+" || _ === "~" || _ === " ")) return s.slice(0, m) + l + s.slice(m);
1787
- }
1788
- return s + l;
1789
- }
1790
- if (T) if (T.includes("&")) {
1791
- const s = T.indexOf("&"), l = T.slice(0, s), O = T.slice(s + 1), R = y + G;
1792
- if (q.length === 0) u = u.replace(y, l + R + L + O);
1793
- else {
1794
- const m = Y(O, L);
1795
- u = u.replace(y, l + R + m);
1796
- }
1797
- } else
1798
- u = u.replace(y, `${T}${y + G}`), L && (u = u.replace(y, `${y}${L}`));
1799
- else u = u.replace(y, y + G + L);
1800
- u = u.replace(new RegExp(y, "g"), P);
1801
- const te = "__CE_COLOR_MIX_SPLIT__", v = z.includes(te) ? z.split(te).map((s) => `${u}{${s}}`) : [`${u}{${z}}`], Q = E.filter((s) => ne.includes(s)), Z = E.filter((s) => s.startsWith("@") && (pe.includes(s.slice(1)) || s.match(/^@\[.+\]$/))), ee = Q.length ? Q[Q.length - 1] : null, C = Z.length ? Z[Z.length - 1] : null, M = E.includes("dark"), j = U.disableVariants ?? [];
1802
- if (j.length > 0 && (j.includes("dark") && M || j.includes("responsive") && Q.length > 0 || j.includes("container") && Z.length > 0 || j.includes("motion") && E.some((s) => s === "motion-reduce" || s === "motion-safe") || j.includes("print") && E.includes("print")))
1803
- return null;
1804
- let f = "", A = "";
1805
- if (M && ee ? f = `@media (prefers-color-scheme: dark) and ${ae[ee]}` : M ? f = "@media (prefers-color-scheme: dark)" : ee && (f = `@media ${ae[ee]}`), C) if (C.startsWith("@[") && C.endsWith("]")) {
1806
- const s = C.slice(2, -1);
1807
- if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(s)) return null;
1808
- A = `@container (min-width:${s})`;
1809
- } else {
1810
- const s = C.slice(1);
1811
- A = `@container ${Ve[s] || `(min-width:${s})`}`;
1812
- }
1813
- let B = "";
1814
- if (H.length > 0) {
1815
- const s = H[H.length - 1].slice(10, -1).replace(/_/g, " ");
1816
- B = `@supports ${s.startsWith("not(") || s.startsWith("selector(") || s.startsWith("(") ? s : `(${s})`}`;
1817
- }
1818
- const ve = (s) => {
1819
- let l = s;
1820
- return K && (l = `@starting-style{${l}}`), B && (l = `${B}{${l}}`), f && A ? `${f}${A}{${l}}` : f ? `${f}{${l}}` : A ? `${A}{${l}}` : l;
1821
- };
1822
- return v.map(ve).join("");
1823
- };
1824
- for (const g of t) {
1825
- const p = h(g), b = p.slice(0, -1), x = p[p.length - 1];
1826
- if (er(x) !== null) {
1827
- if (b.length === 0) i[0].push(`${oe(g)}{}`);
1828
- else {
1829
- const P = Te(x);
1830
- if (!P) continue;
1831
- const z = oe(g), y = oe(x);
1832
- let u = P.replace(new RegExp(Ne(y), "g"), z);
1833
- const V = b.filter((q) => ne.includes(q));
1834
- V.length > 0 && (u = `${`@media ${ae[V[V.length - 1]]}`}{${u}}`), b.includes("dark") && (u = `@media (prefers-color-scheme: dark){${u}}`), i[d(b)].push(u);
1835
- }
1836
- continue;
1837
- }
1838
- let w = -1;
1839
- for (let P = p.length - 1; P >= 0; P--) if (_e(p.slice(P).join(":"))) {
1840
- w = P;
1841
- break;
1842
- }
1843
- if (w >= 0) {
1844
- const P = p.slice(w).join(":"), z = p.slice(0, w), y = _e(P);
1845
- if (!y) continue;
1846
- if (z.length === 0) {
1847
- i[0].push(y);
1848
- continue;
1849
- }
1850
- const u = ye(g), V = ye(P), q = [...y.replace(new RegExp(`\\.${V.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`, "g"), `.${u}`).matchAll(/(.+?)\s+(.+?)\{([^}]+)\}/g)];
1851
- if (q.length === 0) {
1852
- i[0].push(y);
1853
- continue;
1854
- }
1855
- const de = d(z), T = {
1856
- hover: ":hover",
1857
- focus: ":focus",
1858
- active: ":active",
1859
- visited: ":visited",
1860
- disabled: ":disabled",
1861
- checked: ":checked",
1862
- first: ":first-child",
1863
- last: ":last-child",
1864
- odd: ":nth-child(odd)",
1865
- even: ":nth-child(even)",
1866
- "focus-within": ":focus-within",
1867
- "focus-visible": ":focus-visible"
1868
- }, K = [], H = [], G = [], L = [], Y = [];
1869
- let te = !1;
1870
- for (const v of z) v.startsWith("group-") || v.startsWith("peer-") ? K.push(v) : v === "dark" || v === "dark-class" ? te = !0 : ne.includes(v) ? L.push(v) : v.startsWith("@") && (pe.includes(v.slice(1)) || v.match(/^@\[.+\]$/)) ? Y.push(v) : v.startsWith("[") && v.endsWith("]") ? G.push(v) : (T[v] || We[v]) && H.push(v);
1871
- for (const v of q) {
1872
- const [, Q, Z, ee] = v;
1873
- let C = `${Q} ${Z}`;
1874
- for (const j of K) if (j.startsWith("group-")) {
1875
- const f = j.slice(6);
1876
- C = `.group${T[f] || `:${f}`} ${C}`;
1877
- } else if (j.startsWith("peer-")) {
1878
- const f = j.slice(5);
1879
- C = `.peer${T[f] || `:${f}`}~${C}`;
1880
- }
1881
- if (H.length > 0) {
1882
- const j = H.map((f) => T[f] || `:${f}`).join("");
1883
- C = `${C}${j}`;
1884
- }
1885
- for (const j of G) {
1886
- const f = Ee(j);
1887
- if (f && f.includes("&")) {
1888
- const A = f.indexOf("&"), B = f.slice(0, A), ve = f.slice(A + 1);
1889
- C = `${B}${C}${ve}`;
1890
- }
1891
- }
1892
- let M = `${C}{${ee}}`;
1893
- if (te && (M = `@media (prefers-color-scheme: dark){${M}}`), Y.length > 0) {
1894
- const j = Y[Y.length - 1];
1895
- if (j.startsWith("@[") && j.endsWith("]")) {
1896
- const f = j.slice(2, -1);
1897
- /^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(f) && (M = `@container (min-width:${f}){${M}}`);
1898
- } else {
1899
- const f = j.slice(1), A = {
1900
- xs: "20rem",
1901
- sm: "24rem",
1902
- md: "28rem",
1903
- lg: "32rem",
1904
- xl: "36rem",
1905
- "2xl": "42rem",
1906
- "3xl": "48rem",
1907
- "4xl": "56rem",
1908
- "5xl": "64rem",
1909
- "6xl": "72rem",
1910
- "7xl": "80rem"
1911
- }[f];
1912
- if (A) {
1913
- const B = g.match(/@([^/]+)\//)?.[1] || "";
1914
- M = B ? `@container ${B} (min-width: ${A}){${M}}` : `@container (min-width: ${A}){${M}}`;
1915
- }
1916
- }
1917
- }
1918
- L.length > 0 && (M = `${`@media ${ae[L[L.length - 1]]}`}{${M}}`), i[de].push(M);
1919
- }
1920
- continue;
1921
- }
1922
- const k = p.find((P) => {
1923
- const z = P.replace(/^!/, "").replace(/!$/, "");
1924
- return ge[z] || me(z) || fe(z) || xe(z) || he(z) || be(z) || se(z);
1925
- });
1926
- if (!k) continue;
1927
- const F = p.indexOf(k), le = d(F >= 0 ? p.slice(0, F) : []), E = c(g);
1928
- E && i[le].push(E);
1929
- }
1930
- const W = /^(from|via|to)-[a-z]+-?\d{2,3}?$/, X = i.flat().join("");
1931
- for (const g of t) if (W.test(g)) {
1932
- if (X.includes(oe(g))) continue;
1933
- const p = c(g);
1934
- p && i[0].push(p);
1935
- }
1936
- const ce = (g) => g.sort((p, b) => {
1937
- const x = Me(p), w = Me(b), k = Re(p), F = Re(b);
1938
- return x >= 0 && w >= 0 && x !== w ? x - w : k >= 0 && F >= 0 && k !== F ? k - F : 0;
1939
- });
1940
- i[2] = ce(i[2]), i[4] = ce(i[4]);
1941
- const ze = i.flat().join("");
1942
- if (D.size >= Ie) {
1943
- let g = Math.floor(Ie / 2);
1944
- for (const p of D.keys()) {
1945
- if (g-- === 0) break;
1946
- D.delete(p);
1947
- }
1948
- }
1949
- return D.set(o, ze), ze;
1950
- }
1951
- export {
1952
- We as _,
1953
- ar as a,
1954
- Ye as c,
1955
- se as d,
1956
- or as f,
1957
- ur as g,
1958
- me as h,
1959
- gr as i,
1960
- cr as l,
1961
- be as m,
1962
- Ve as n,
1963
- fr as o,
1964
- he as p,
1965
- mr as r,
1966
- pr as s,
1967
- qe as t,
1968
- ae as u,
1969
- ge as v
1970
- };
1971
-
1972
- //# sourceMappingURL=style-DuDoj_xK.js.map