@jasonshimmy/custom-elements-runtime 2.5.0 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements-runtime.cjs.js +1 -18
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +150 -3644
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.router.cjs.js +19 -19
- package/dist/custom-elements-runtime.router.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.router.es.js +762 -451
- package/dist/custom-elements-runtime.router.es.js.map +1 -1
- package/dist/custom-elements-runtime.ssr.cjs.js +1 -1
- package/dist/custom-elements-runtime.ssr.es.js +1 -1
- package/dist/custom-elements-runtime.transitions.cjs.js +1 -1
- package/dist/custom-elements-runtime.transitions.es.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/namespace-helpers-BCVTzhAO.cjs +5 -0
- package/dist/namespace-helpers-BCVTzhAO.cjs.map +1 -0
- package/dist/namespace-helpers-CF28TyaG.js +786 -0
- package/dist/namespace-helpers-CF28TyaG.js.map +1 -0
- package/dist/router.d.ts +82 -21
- package/dist/runtime/monitoring/health-monitor.d.ts +99 -0
- package/dist/runtime/render.d.ts +1 -1
- package/dist/runtime/scheduler.d.ts +46 -0
- package/dist/template-compiler-CXHEnaBh.cjs +17 -0
- package/dist/template-compiler-CXHEnaBh.cjs.map +1 -0
- package/dist/template-compiler-DD_VZrte.js +3729 -0
- package/dist/template-compiler-DD_VZrte.js.map +1 -0
- package/dist/{transitions-CZ21fzhh.js → transitions-Bx0Nc9zR.js} +256 -255
- package/dist/transitions-Bx0Nc9zR.js.map +1 -0
- package/dist/{transitions-RXe2brRm.cjs → transitions-DfcqL-X4.cjs} +4 -4
- package/dist/transitions-DfcqL-X4.cjs.map +1 -0
- package/package.json +9 -8
- package/dist/namespace-helpers-BsKQl3aH.cjs +0 -5
- package/dist/namespace-helpers-BsKQl3aH.cjs.map +0 -1
- package/dist/namespace-helpers-Dw1mgQab.js +0 -692
- package/dist/namespace-helpers-Dw1mgQab.js.map +0 -1
- package/dist/transitions-CZ21fzhh.js.map +0 -1
- package/dist/transitions-RXe2brRm.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Me=require("./custom-elements-runtime.directives.cjs.js"),Pe={base:{fontSize:"1rem",lineHeight:"1.75",p:"1.25em",lead:"1.25em",h1:"2.25em",h2:"1.5em",h3:"1.25em",h4:"1em",blockquote:"1.6em",figure:"2em",code:"0.875em",pre:"0.875em",ol:"1.25em",ul:"1.25em",li:"0.5em",hr:"3em",table:"2em"},sm:{fontSize:"0.875rem",lineHeight:"1.7142857",p:"1.1428571em",lead:"1.1428571em",h1:"2.1428571em",h2:"1.4285714em",h3:"1.2857143em",h4:"1em",blockquote:"1.4285714em",figure:"1.7142857em",code:"0.8571429em",pre:"0.8571429em",ol:"1.1428571em",ul:"1.1428571em",li:"0.4285714em",hr:"2.5714286em",table:"1.7142857em"},lg:{fontSize:"1.125rem",lineHeight:"1.7777778",p:"1.3333333em",lead:"1.3333333em",h1:"2.6666667em",h2:"1.7777778em",h3:"1.5555556em",h4:"1.1111111em",blockquote:"1.7777778em",figure:"2.2222222em",code:"0.8888889em",pre:"0.8888889em",ol:"1.3333333em",ul:"1.3333333em",li:"0.5555556em",hr:"3.3333333em",table:"2.2222222em"},xl:{fontSize:"1.25rem",lineHeight:"1.8",p:"1.4em",lead:"1.4em",h1:"2.8em",h2:"1.8em",h3:"1.6em",h4:"1.2em",blockquote:"1.8em",figure:"2.4em",code:"0.9em",pre:"0.9em",ol:"1.4em",ul:"1.4em",li:"0.6em",hr:"3.6em",table:"2.4em"},"2xl":{fontSize:"1.5rem",lineHeight:"1.6666667",p:"1.3333333em",lead:"1.3333333em",h1:"2.6666667em",h2:"1.7777778em",h3:"1.5555556em",h4:"1.2222222em",blockquote:"1.7777778em",figure:"2.2222222em",code:"0.8333333em",pre:"0.8333333em",ol:"1.3333333em",ul:"1.3333333em",li:"0.5555556em",hr:"3.1111111em",table:"2.2222222em"}};function Ae(e){const t=e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);if(!t)return null;const a=t[1]||"base",o=Pe[a],r=`.${e}`,i=[];return i.push(`${r}{--cer-prose-body:var(--cer-color-neutral-900);--cer-prose-headings:var(--cer-color-neutral-900);--cer-prose-lead:var(--cer-color-neutral-700);--cer-prose-links:var(--cer-color-neutral-700);--cer-prose-links-hover:var(--cer-color-neutral-500);--cer-prose-bold:var(--cer-color-neutral-900);--cer-prose-quotes:var(--cer-color-neutral-700);--cer-prose-quote-border:var(--cer-color-neutral-200);--cer-prose-code:var(--cer-color-neutral-800);--cer-prose-code-bg:var(--cer-color-neutral-100);--cer-prose-pre-code:var(--cer-color-neutral-800);--cer-prose-pre-bg:var(--cer-color-neutral-100);--cer-prose-pre-border:var(--cer-color-neutral-200);--cer-prose-hr:var(--cer-color-neutral-200);--cer-prose-caps:var(--cer-color-neutral-600);--cer-prose-list-marker:var(--cer-color-neutral-600);--cer-prose-list-marker-strong:var(--cer-color-neutral-700);--cer-prose-counters:var(--cer-color-neutral-600);--cer-prose-bullets:var(--cer-color-neutral-400);--cer-prose-img-caption:var(--cer-color-neutral-600);--cer-prose-table-border:var(--cer-color-neutral-200);--cer-prose-table-head:var(--cer-color-neutral-700);color:var(--cer-prose-body);font-size:${o.fontSize};line-height:${o.lineHeight};max-width:65ch;}`),i.push(`${r} p:not(.not-prose):not(.not-prose *){margin:${o.p} 0;}`),i.push(`${r} .lead:not(.not-prose):not(.not-prose *),${r} [class~="lead"]:not(.not-prose):not(.not-prose *){font-size:1.25em;line-height:1.6;margin-top:${o.lead};margin-bottom:${o.lead};color:var(--cer-prose-lead);}`),i.push(`${r} h1:not(.not-prose):not(.not-prose *),${r} h2:not(.not-prose):not(.not-prose *),${r} h3:not(.not-prose):not(.not-prose *),${r} h4:not(.not-prose):not(.not-prose *),${r} h5:not(.not-prose):not(.not-prose *),${r} h6:not(.not-prose):not(.not-prose *){color:var(--cer-prose-headings);font-weight:700;line-height:1.25;}`),i.push(`${r} h1:not(.not-prose):not(.not-prose *){font-size:${o.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`),i.push(`${r} h2:not(.not-prose):not(.not-prose *){font-size:${o.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`),i.push(`${r} h3:not(.not-prose):not(.not-prose *){font-size:${o.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`),i.push(`${r} h4:not(.not-prose):not(.not-prose *){font-size:${o.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`),i.push(`${r} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`),i.push(`${r} h6:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`),i.push(`${r} a:not(.not-prose):not(.not-prose *){color:var(--cer-prose-links);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.15em;font-weight:500;}`),i.push(`${r} a:not(.not-prose):not(.not-prose *):hover,${r} a:not(.not-prose):not(.not-prose *):focus{color:var(--cer-prose-links-hover);}`),i.push(`${r} strong:not(.not-prose):not(.not-prose *){color:var(--cer-prose-bold);font-weight:600;}`),i.push(`${r} em:not(.not-prose):not(.not-prose *){font-style:italic;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${o.ol};margin-bottom:${o.ol};padding-left:1.625em;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="a"]{list-style-type:lower-alpha;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="I"]{list-style-type:upper-roman;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${o.li};}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-counters);font-weight:400;}`),i.push(`${r} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${o.ul};margin-bottom:${o.ul};padding-left:1.625em;}`),i.push(`${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${o.li};}`),i.push(`${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child,${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child{margin-top:${o.ol};}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child,${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child{margin-bottom:${o.ol};}`),i.push(`${r} ul:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${r} ul:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *),${r} ol:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${r} ol:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *){margin-top:0.75em;margin-bottom:0.75em;}`),i.push(`${r} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${o.ol};margin-bottom:${o.ol};}`),i.push(`${r} code:not(.not-prose):not(.not-prose *){color:var(--cer-prose-code);background-color:var(--cer-prose-code-bg);border-radius:0.25rem;padding:0.125rem 0.25rem;font-size:${o.code};font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}`),i.push(`${r} pre:not(.not-prose):not(.not-prose *){color:var(--cer-prose-pre-code);background-color:var(--cer-prose-pre-bg);border:1px solid var(--cer-prose-pre-border);overflow-x:auto;font-size:${o.pre};line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:0.375rem;padding:0.8571429em 1.1428571em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;white-space:pre;overflow-wrap:normal;}`),i.push(`${r} pre:not(.not-prose):not(.not-prose *) code:not(.not-prose):not(.not-prose *){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;line-height:inherit;}`),i.push(`${r} blockquote:not(.not-prose):not(.not-prose *){font-weight:500;font-style:italic;color:var(--cer-prose-quotes);border-left-width:0.25rem;border-left-color:var(--cer-prose-quote-border);quotes:"\\201C""\\201D""\\2018""\\2019";margin-top:${o.blockquote};margin-bottom:${o.blockquote};padding-left:1em;}`),i.push(`${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`),i.push(`${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`),i.push(`${r} hr:not(.not-prose):not(.not-prose *){border-color:var(--cer-prose-hr);border-top-width:1px;margin-top:${o.hr};margin-bottom:${o.hr};}`),i.push(`${r} figure:not(.not-prose):not(.not-prose *){margin-top:${o.figure};margin-bottom:${o.figure};}`),i.push(`${r} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`),i.push(`${r} figcaption:not(.not-prose):not(.not-prose *){color:var(--cer-prose-img-caption);font-size:0.875em;line-height:1.4285714;margin-top:0.75em;}`),i.push(`${r} img:not(.not-prose):not(.not-prose *),${r} video:not(.not-prose):not(.not-prose *),${r} picture:not(.not-prose):not(.not-prose *){margin-top:${o.figure};margin-bottom:${o.figure};max-width:100%;height:auto;}`),i.push(`${r} figure:not(.not-prose):not(.not-prose *)>img:not(.not-prose):not(.not-prose *),${r} figure:not(.not-prose):not(.not-prose *)>video:not(.not-prose):not(.not-prose *),${r} figure:not(.not-prose):not(.not-prose *)>picture:not(.not-prose):not(.not-prose *){margin-top:0;margin-bottom:0;}`),i.push(`${r} table:not(.not-prose):not(.not-prose *){width:100%;table-layout:auto;text-align:left;margin-top:${o.table};margin-bottom:${o.table};font-size:0.875em;line-height:1.7142857;}`),i.push(`${r} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`),i.push(`${r} thead:not(.not-prose):not(.not-prose *) th:not(.not-prose):not(.not-prose *){color:var(--cer-prose-table-head);font-weight:600;vertical-align:bottom;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em;}`),i.push(`${r} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`),i.push(`${r} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *):last-child{border-bottom-width:0;}`),i.push(`${r} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`),i.join("")}const _e={headings:"h1,h2,h3,h4,h5,h6,th",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",a:"a",blockquote:"blockquote",figure:"figure",figcaption:"figcaption",strong:"strong",em:"em",kbd:"kbd",code:"code",pre:"pre",ol:"ol",ul:"ul",li:"li",dl:"dl",dt:"dt",dd:"dd",table:"table",thead:"thead",tbody:"tbody",tr:"tr",th:"th",td:"td",img:"img",picture:"picture",video:"video",hr:"hr",lead:'[class~="lead"]'};function We(e,t,a,o,r,i,l,$){const n=e.match(/^prose-([a-z0-9]+):(.+)$/);if(!n)return null;const[,c,u]=n,j=_e[c];if(!j)return null;const y=t[u]??a(u)??o(u)??r(u)??i(u)??l(u)??$(u);if(!y)return null;const F=$e(e);return j.split(",").map(g=>{const h=g.trim();return`${`.${F} ${h}:not(.not-prose):not(.not-prose *)`}{${y}}`}).join("")}const Le=`/*
|
|
1
|
+
"use strict";const Me=require("./custom-elements-runtime.directives.cjs.js"),Pe={base:{fontSize:"1rem",lineHeight:"1.75",p:"1.25em",lead:"1.25em",h1:"2.25em",h2:"1.5em",h3:"1.25em",h4:"1em",blockquote:"1.6em",figure:"2em",code:"0.875em",pre:"0.875em",ol:"1.25em",ul:"1.25em",li:"0.5em",hr:"3em",table:"2em"},sm:{fontSize:"0.875rem",lineHeight:"1.7142857",p:"1.1428571em",lead:"1.1428571em",h1:"2.1428571em",h2:"1.4285714em",h3:"1.2857143em",h4:"1em",blockquote:"1.4285714em",figure:"1.7142857em",code:"0.8571429em",pre:"0.8571429em",ol:"1.1428571em",ul:"1.1428571em",li:"0.4285714em",hr:"2.5714286em",table:"1.7142857em"},lg:{fontSize:"1.125rem",lineHeight:"1.7777778",p:"1.3333333em",lead:"1.3333333em",h1:"2.6666667em",h2:"1.7777778em",h3:"1.5555556em",h4:"1.1111111em",blockquote:"1.7777778em",figure:"2.2222222em",code:"0.8888889em",pre:"0.8888889em",ol:"1.3333333em",ul:"1.3333333em",li:"0.5555556em",hr:"3.3333333em",table:"2.2222222em"},xl:{fontSize:"1.25rem",lineHeight:"1.8",p:"1.4em",lead:"1.4em",h1:"2.8em",h2:"1.8em",h3:"1.6em",h4:"1.2em",blockquote:"1.8em",figure:"2.4em",code:"0.9em",pre:"0.9em",ol:"1.4em",ul:"1.4em",li:"0.6em",hr:"3.6em",table:"2.4em"},"2xl":{fontSize:"1.5rem",lineHeight:"1.6666667",p:"1.3333333em",lead:"1.3333333em",h1:"2.6666667em",h2:"1.7777778em",h3:"1.5555556em",h4:"1.2222222em",blockquote:"1.7777778em",figure:"2.2222222em",code:"0.8333333em",pre:"0.8333333em",ol:"1.3333333em",ul:"1.3333333em",li:"0.5555556em",hr:"3.1111111em",table:"2.2222222em"}};function Te(e){const t=e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);if(!t)return null;const a=t[1]||"base",o=Pe[a],r=`.${e}`,i=[];return i.push(`${r}{--cer-prose-body:var(--cer-color-neutral-900);--cer-prose-headings:var(--cer-color-neutral-900);--cer-prose-lead:var(--cer-color-neutral-700);--cer-prose-links:var(--cer-color-neutral-700);--cer-prose-links-hover:var(--cer-color-neutral-500);--cer-prose-bold:var(--cer-color-neutral-900);--cer-prose-quotes:var(--cer-color-neutral-700);--cer-prose-quote-border:var(--cer-color-neutral-200);--cer-prose-code:var(--cer-color-neutral-800);--cer-prose-code-bg:var(--cer-color-neutral-100);--cer-prose-pre-code:var(--cer-color-neutral-800);--cer-prose-pre-bg:var(--cer-color-neutral-100);--cer-prose-pre-border:var(--cer-color-neutral-200);--cer-prose-hr:var(--cer-color-neutral-200);--cer-prose-caps:var(--cer-color-neutral-600);--cer-prose-list-marker:var(--cer-color-neutral-600);--cer-prose-list-marker-strong:var(--cer-color-neutral-700);--cer-prose-counters:var(--cer-color-neutral-600);--cer-prose-bullets:var(--cer-color-neutral-400);--cer-prose-img-caption:var(--cer-color-neutral-600);--cer-prose-table-border:var(--cer-color-neutral-200);--cer-prose-table-head:var(--cer-color-neutral-700);color:var(--cer-prose-body);font-size:${o.fontSize};line-height:${o.lineHeight};max-width:65ch;}`),i.push(`${r} p:not(.not-prose):not(.not-prose *){margin:${o.p} 0;}`),i.push(`${r} .lead:not(.not-prose):not(.not-prose *),${r} [class~="lead"]:not(.not-prose):not(.not-prose *){font-size:1.25em;line-height:1.6;margin-top:${o.lead};margin-bottom:${o.lead};color:var(--cer-prose-lead);}`),i.push(`${r} h1:not(.not-prose):not(.not-prose *),${r} h2:not(.not-prose):not(.not-prose *),${r} h3:not(.not-prose):not(.not-prose *),${r} h4:not(.not-prose):not(.not-prose *),${r} h5:not(.not-prose):not(.not-prose *),${r} h6:not(.not-prose):not(.not-prose *){color:var(--cer-prose-headings);font-weight:700;line-height:1.25;}`),i.push(`${r} h1:not(.not-prose):not(.not-prose *){font-size:${o.h1};margin-top:0;margin-bottom:0.8888889em;line-height:1.1111111;}`),i.push(`${r} h2:not(.not-prose):not(.not-prose *){font-size:${o.h2};margin-top:2em;margin-bottom:1em;line-height:1.3333333;}`),i.push(`${r} h3:not(.not-prose):not(.not-prose *){font-size:${o.h3};margin-top:1.6em;margin-bottom:0.6em;line-height:1.6;}`),i.push(`${r} h4:not(.not-prose):not(.not-prose *){font-size:${o.h4};margin-top:1.5em;margin-bottom:0.5em;line-height:1.5;}`),i.push(`${r} h5:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`),i.push(`${r} h6:not(.not-prose):not(.not-prose *){margin-top:1.5em;margin-bottom:0.5em;}`),i.push(`${r} a:not(.not-prose):not(.not-prose *){color:var(--cer-prose-links);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.15em;font-weight:500;}`),i.push(`${r} a:not(.not-prose):not(.not-prose *):hover,${r} a:not(.not-prose):not(.not-prose *):focus{color:var(--cer-prose-links-hover);}`),i.push(`${r} strong:not(.not-prose):not(.not-prose *){color:var(--cer-prose-bold);font-weight:600;}`),i.push(`${r} em:not(.not-prose):not(.not-prose *){font-style:italic;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *){list-style-type:decimal;margin-top:${o.ol};margin-bottom:${o.ol};padding-left:1.625em;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="A"]{list-style-type:upper-alpha;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="a"]{list-style-type:lower-alpha;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="I"]{list-style-type:upper-roman;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)[type="i"]{list-style-type:lower-roman;}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${o.li};}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-counters);font-weight:400;}`),i.push(`${r} ul:not(.not-prose):not(.not-prose *){list-style-type:disc;margin-top:${o.ul};margin-bottom:${o.ul};padding-left:1.625em;}`),i.push(`${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *){position:relative;padding-left:${o.li};}`),i.push(`${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)::marker{color:var(--cer-prose-bullets);}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child,${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:first-child{margin-top:${o.ol};}`),i.push(`${r} ol:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child,${r} ul:not(.not-prose):not(.not-prose *)>li:not(.not-prose):not(.not-prose *)>*:last-child{margin-bottom:${o.ol};}`),i.push(`${r} ul:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${r} ul:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *),${r} ol:not(.not-prose):not(.not-prose *) ul:not(.not-prose):not(.not-prose *),${r} ol:not(.not-prose):not(.not-prose *) ol:not(.not-prose):not(.not-prose *){margin-top:0.75em;margin-bottom:0.75em;}`),i.push(`${r} li:not(.not-prose):not(.not-prose *)>p:not(.not-prose):not(.not-prose *){margin-top:${o.ol};margin-bottom:${o.ol};}`),i.push(`${r} code:not(.not-prose):not(.not-prose *){color:var(--cer-prose-code);background-color:var(--cer-prose-code-bg);border-radius:0.25rem;padding:0.125rem 0.25rem;font-size:${o.code};font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}`),i.push(`${r} pre:not(.not-prose):not(.not-prose *){color:var(--cer-prose-pre-code);background-color:var(--cer-prose-pre-bg);border:1px solid var(--cer-prose-pre-border);overflow-x:auto;font-size:${o.pre};line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:0.375rem;padding:0.8571429em 1.1428571em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;white-space:pre;overflow-wrap:normal;}`),i.push(`${r} pre:not(.not-prose):not(.not-prose *) code:not(.not-prose):not(.not-prose *){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;line-height:inherit;}`),i.push(`${r} blockquote:not(.not-prose):not(.not-prose *){font-weight:500;font-style:italic;color:var(--cer-prose-quotes);border-left-width:0.25rem;border-left-color:var(--cer-prose-quote-border);quotes:"\\201C""\\201D""\\2018""\\2019";margin-top:${o.blockquote};margin-bottom:${o.blockquote};padding-left:1em;}`),i.push(`${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):first-of-type::before{content:open-quote;}`),i.push(`${r} blockquote:not(.not-prose):not(.not-prose *) p:not(.not-prose):not(.not-prose *):last-of-type::after{content:close-quote;}`),i.push(`${r} hr:not(.not-prose):not(.not-prose *){border-color:var(--cer-prose-hr);border-top-width:1px;margin-top:${o.hr};margin-bottom:${o.hr};}`),i.push(`${r} figure:not(.not-prose):not(.not-prose *){margin-top:${o.figure};margin-bottom:${o.figure};}`),i.push(`${r} figure:not(.not-prose):not(.not-prose *)>*{margin-top:0;margin-bottom:0;}`),i.push(`${r} figcaption:not(.not-prose):not(.not-prose *){color:var(--cer-prose-img-caption);font-size:0.875em;line-height:1.4285714;margin-top:0.75em;}`),i.push(`${r} img:not(.not-prose):not(.not-prose *),${r} video:not(.not-prose):not(.not-prose *),${r} picture:not(.not-prose):not(.not-prose *){margin-top:${o.figure};margin-bottom:${o.figure};max-width:100%;height:auto;}`),i.push(`${r} figure:not(.not-prose):not(.not-prose *)>img:not(.not-prose):not(.not-prose *),${r} figure:not(.not-prose):not(.not-prose *)>video:not(.not-prose):not(.not-prose *),${r} figure:not(.not-prose):not(.not-prose *)>picture:not(.not-prose):not(.not-prose *){margin-top:0;margin-bottom:0;}`),i.push(`${r} table:not(.not-prose):not(.not-prose *){width:100%;table-layout:auto;text-align:left;margin-top:${o.table};margin-bottom:${o.table};font-size:0.875em;line-height:1.7142857;}`),i.push(`${r} thead:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`),i.push(`${r} thead:not(.not-prose):not(.not-prose *) th:not(.not-prose):not(.not-prose *){color:var(--cer-prose-table-head);font-weight:600;vertical-align:bottom;padding-right:0.5714286em;padding-bottom:0.5714286em;padding-left:0.5714286em;}`),i.push(`${r} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *){border-bottom-width:1px;border-bottom-color:var(--cer-prose-table-border);}`),i.push(`${r} tbody:not(.not-prose):not(.not-prose *) tr:not(.not-prose):not(.not-prose *):last-child{border-bottom-width:0;}`),i.push(`${r} tbody:not(.not-prose):not(.not-prose *) td:not(.not-prose):not(.not-prose *){vertical-align:baseline;padding:0.5714286em;}`),i.join("")}const _e={headings:"h1,h2,h3,h4,h5,h6,th",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",a:"a",blockquote:"blockquote",figure:"figure",figcaption:"figcaption",strong:"strong",em:"em",kbd:"kbd",code:"code",pre:"pre",ol:"ol",ul:"ul",li:"li",dl:"dl",dt:"dt",dd:"dd",table:"table",thead:"thead",tbody:"tbody",tr:"tr",th:"th",td:"td",img:"img",picture:"picture",video:"video",hr:"hr",lead:'[class~="lead"]'};function We(e,t,a,o,r,i,l,$){const n=e.match(/^prose-([a-z0-9]+):(.+)$/);if(!n)return null;const[,c,u]=n,j=_e[c];if(!j)return null;const y=t[u]??a(u)??o(u)??r(u)??i(u)??l(u)??$(u);if(!y)return null;const F=$e(e);return j.split(",").map(g=>{const b=g.trim();return`${`.${F} ${b}:not(.not-prose):not(.not-prose *)`}{${y}}`}).join("")}const Le=`/*
|
|
2
2
|
* Custom Elements Variables CSS
|
|
3
3
|
* Default fallback values
|
|
4
4
|
*
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
--cer-color-error-900: #7f1d1d;
|
|
128
128
|
--cer-color-error-950: #450a0a;
|
|
129
129
|
}
|
|
130
|
-
`;function ze(e,...t){let a="";for(let o=0;o<e.length;o++)a+=e[o],o<t.length&&(a+=t[o]);return a}function be(e){return e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{}:;,>+~])\s*/g,"$1").replace(/;}/g,"}").trim()}let re=null;function De(){return re||(typeof CSSStyleSheet>"u"?re={cssRules:[],replaceSync:()=>{},toString:()=>be(ye)}:(re=new CSSStyleSheet,re.replaceSync(be(ye)))),re}let
|
|
130
|
+
`;function ze(e,...t){let a="";for(let o=0;o<e.length;o++)a+=e[o],o<t.length&&(a+=t[o]);return a}function be(e){return e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{}:;,>+~])\s*/g,"$1").replace(/;}/g,"}").trim()}let re=null;function De(){return re||(typeof CSSStyleSheet>"u"?re={cssRules:[],replaceSync:()=>{},toString:()=>be(ye)}:(re=new CSSStyleSheet,re.replaceSync(be(ye)))),re}let H=null;const ve=new Set;let ce="";function Fe(){if(ve.size===0)return null;H||(typeof CSSStyleSheet>"u"?H={cssRules:[],replaceSync:()=>{},toString:()=>ce}:(H=new CSSStyleSheet,H.toString=()=>ce));let e="";for(const t of ve){const a=Te(t);a&&(e+=a)}if(ce=be(e),typeof H.replaceSync=="function"&&e)try{H.replaceSync(ce)}catch{}return H}function qe(e){const t=!ve.has(e);ve.add(e),t&&H&&Fe()}function Ie(e){return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi,"").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi,"").replace(/expression\s*\([^)]*\)/gi,"")}const ye=ze`
|
|
131
131
|
${Le}
|
|
132
132
|
:host,
|
|
133
133
|
*,
|
|
@@ -298,5 +298,5 @@
|
|
|
298
298
|
--cer-prose-links-hover:var(--cer-color-info-500);
|
|
299
299
|
--cer-prose-invert-links:var(--cer-color-info-300);
|
|
300
300
|
--cer-prose-invert-links-hover:var(--cer-color-info-100);
|
|
301
|
-
`.replace(/\s+/g,"")}),e},pe=Be();function He(e){return/^prose(?:-(sm|lg|xl|2xl))?$/.test(e)?(qe(e),""):null}function ke(e){return/^prose-([a-z0-9]+):(.+)$/.test(e)?We(e,pe,ue,fe,he,ge,me,ae):null}function q(e,t){let a=0;for(let o=0;o<e.length;o++){const r=e[o];if(r==="["||r==="(")a++;else if((r==="]"||r===")")&&a>0)a--;else if(a===0&&(r===">"||r==="+"||r==="~"||r===" "))return e.slice(0,o)+t+e.slice(o)}return e+t}const Se={before:(e,t)=>`${e}::before{${t}}`,after:(e,t)=>`${e}::after{${t}}`,hover:(e,t)=>`${q(e,":hover")}{${t}}`,focus:(e,t)=>`${q(e,":focus")}{${t}}`,active:(e,t)=>`${q(e,":active")}{${t}}`,disabled:(e,t)=>`${q(e,":disabled")}{${t}}`,visited:(e,t)=>`${q(e,":visited")}{${t}}`,checked:(e,t)=>`${q(e,":checked")}{${t}}`,first:(e,t)=>`${q(e,":first-child")}{${t}}`,last:(e,t)=>`${q(e,":last-child")}{${t}}`,odd:(e,t)=>`${q(e,":nth-child(odd)")}{${t}}`,even:(e,t)=>`${q(e,":nth-child(even)")}{${t}}`,"focus-within":(e,t)=>`${q(e,":focus-within")}{${t}}`,"focus-visible":(e,t)=>`${q(e,":focus-visible")}{${t}}`,"group-hover":(e,t)=>`.group:hover ${e}{${t}}`,"group-focus":(e,t)=>`.group:focus ${e}{${t}}`,"group-active":(e,t)=>`.group:active ${e}{${t}}`,"group-disabled":(e,t)=>`.group:disabled ${e}{${t}}`,"peer-hover":(e,t)=>`.peer:hover ~ ${e}{${t}}`,"peer-focus":(e,t)=>`.peer:focus ~ ${e}{${t}}`,"peer-checked":(e,t)=>`.peer:checked ~ ${e}{${t}}`,"peer-disabled":(e,t)=>`.peer:disabled ~ ${e}{${t}}`,"dark-class":(e,t)=>`:host(.dark) ${e}{${t}}`},te={sm:"(min-width:640px)",md:"(min-width:768px)",lg:"(min-width:1024px)",xl:"(min-width:1280px)","2xl":"(min-width:1536px)",dark:"(prefers-color-scheme: dark)"},je={xs:"(min-width:20rem)",sm:"(min-width:24rem)",md:"(min-width:28rem)",lg:"(min-width:32rem)",xl:"(min-width:36rem)","2xl":"(min-width:42rem)","3xl":"(min-width:48rem)","4xl":"(min-width:56rem)","5xl":"(min-width:64rem)","6xl":"(min-width:72rem)","7xl":"(min-width:80rem)"},oe=["sm","md","lg","xl","2xl"],le=["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"];function ue(e){const t=e.startsWith("-"),a=t?e.slice(1):e,o=a.lastIndexOf("-");if(o===-1)return null;const r=a.slice(0,o),i=a.slice(o+1);if(!we[r])return null;if(i.includes("/")){const[n,c]=i.split("/").map(j=>parseFloat(j));if(Number.isNaN(n)||Number.isNaN(c)||c===0)return null;const u=n/c*100;return we[r].map(j=>`${j}:${u}%;`).join("")}const l=parseFloat(i);if(Number.isNaN(l))return null;const $=t?"-":"";return we[r].map(n=>`${n}:calc(${$}${K} * ${l});`).join("")}function fe(e){const t=e.startsWith("-"),o=(t?e.slice(1):e).match(/^space-(x|y)-(.+)$/);if(!o)return null;const[,r,i]=o,l=r==="x";if(i==="reverse")return l?"--cer-space-x-reverse:1;":"--cer-space-y-reverse:1;";if(i.includes("/")){const[u,j]=i.split("/").map(p=>parseFloat(p));if(Number.isNaN(u)||Number.isNaN(j)||j===0)return null;const y=u/j*100,F=t?"-":"";return l?`--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${F}${y}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${F}${y}% * var(--cer-space-x-reverse));}`:`--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${F}${y}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${F}${y}% * var(--cer-space-y-reverse));}`}const $=parseFloat(i);if(Number.isNaN($))return null;const c=`calc(${t?"-":""}${K} * ${$})`;return l?`--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${c} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${c} * var(--cer-space-x-reverse));}`:`--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${c} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${c} * var(--cer-space-y-reverse));}`}function de(e){let t=e.replace("#","");t.length===3&&(t=t.split("").map(o=>o+o).join(""));const a=parseInt(t,16);return`${a>>16&255} ${a>>8&255} ${a&255}`}const Ue=/^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/,Ke={bg:"background-color",decoration:"text-decoration-color",text:"color",border:"border-color",outline:"outline-color",caret:"caret-color",accent:"accent-color",fill:"fill",stroke:"stroke"};function Ge(e){const t=Ue.exec(e);if(!t)return null;const[,a,o,r="DEFAULT"]=t,i=Ee[o]?.[r];if(!i)return null;if(a==="shadow")return`--cer-shadow-color:${i};`;const l=Ke[a];return l?`${l}:${i};`:null}function Qe(e){const t=e.indexOf("/");if(t===-1)return{base:e};const a=e.slice(0,t),o=e.slice(t+1),r=parseInt(o,10);return isNaN(r)||r<0||r>100?{base:a}:{base:a,opacity:r/100}}function ge(e){const{base:t,opacity:a}=Qe(e),o=Ge(t);if(o){if(a!==void 0){if(o.includes("var(")){const l=/var\([^)]*\)/.exec(o);if(l){const $=l[0],n=a*100,c=`color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100-n}%)`,u=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($),j=/^([a-z-]+):/.exec(o),y=j?j[1]:"background-color";if(u){const p=`rgb(${de(u[0])} / ${a})`,g=$.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,p);return`${y}:${g};__CE_COLOR_MIX_SPLIT__${y}:${c};`}return`${y}:${c};`}}const i=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(o);if(i){const l=de(i[0]);return o.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,`rgb(${l} / ${a})`)}}return o}const r=ae(t);if(r&&a!==void 0){if(r.includes("var(")){const l=/var\([^)]*\)/.exec(r);if(l){const $=l[0],n=a*100,c=`color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100-n}%)`,u=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($),j=/^([a-z-]+):/.exec(r),y=j?j[1]:null;if(u&&y){const p=`rgb(${de(u[0])} / ${a})`,g=$.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,p);return`${y}:${g};__CE_COLOR_MIX_SPLIT__${y}:${c};`}return r.replace($,c)}}const i=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(r);if(i){const l=de(i[0]);return r.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,`rgb(${l} / ${a})`)}}return r}function me(e){const t=/^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);if(!t)return null;const[,a,o,r="DEFAULT"]=t,i=Ee[o]?.[r];if(!i)return null;switch(a){case"from":return`--cer-gradient-from:${i} var(--cer-gradient-from-position);--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), var(--cer-gradient-to);`;case"to":return`--cer-gradient-to:${i} var(--cer-gradient-to-position);`;case"via":return`--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${i} var(--cer-gradient-via-position), var(--cer-gradient-to);`;default:return null}}function he(e){const t=/^opacity-(\d{1,3})$/.exec(e);if(!t)return null;const a=parseInt(t[1],10);return a<0||a>100?null:`opacity:${a/100};`}function ae(e){if(e.startsWith("[")&&e.endsWith("]")&&!e.includes("-[")){const l=e.slice(1,-1).trim(),$=l.indexOf(":");if($===-1)return null;const n=l.slice(0,$).trim();let c=l.slice($+1).trim();return/^[a-zA-Z][a-zA-Z0-9-]*$/.test(n)?(c=c.replace(/_/g," "),c=c.replace(/url\('\s*([^']*?)\s*'\)/g,'url("$1")'),c=c.replace(/^'([^']*)'$/g,'"$1"'),`${n}:${c};`):null}const t=e.indexOf("-[");if(t<=0||!e.endsWith("]"))return null;const a=e.slice(0,t),o=e.slice(t+2,-1).replace(/_/g," "),r={bg:"background-color",shadow:"box-shadow",p:"padding",px:"padding-inline",py:"padding-block",m:"margin",mx:"margin-inline",my:"margin-block",w:"width",h:"height","min-w":"min-width","max-w":"max-width","min-h":"min-height","max-h":"max-height","border-t":"border-top-width","border-b":"border-bottom-width","border-l":"border-left-width","border-r":"border-right-width","border-x":"border-inline-width","border-y":"border-block-width","grid-cols":"grid-template-columns","grid-rows":"grid-template-rows",transition:"transition-property",ease:"transition-timing-function",delay:"transition-delay",duration:"transition-duration",list:"list-style",break:"word-break",flex:"flex-direction",items:"align-items",justify:"justify-content",content:"align-content",self:"align-self",basis:"flex-basis",tracking:"letter-spacing",leading:"line-height",z:"z-index",opacity:"opacity"};if(a==="text")return/^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(o)?`font-size:${o};`:`color:${o};`;if(a==="rotate")return`transform:rotate(${o});`;if(a==="scale")return`transform:scale(${o});`;if(a==="translate-x")return`transform:translateX(${o});`;if(a==="translate-y")return`transform:translateY(${o});`;const i=r[a]??a.replace(/_/g,"-");return i&&o?`${i}:${o};`:null}function Ce(e){if(e.startsWith("[")&&e.endsWith("]")){const a=e.slice(1,-1);return a.includes("&")?a:e}const t=e.indexOf("-[");if(t>0&&e.endsWith("]")){const a=e.slice(t+2,-1).replace(/_/g,"-");return a.includes("&")?a:e.replace(/_/g,"-")}return null}function $e(e){if(typeof CSS<"u"&&CSS.escape)return CSS.escape(e);const t=String(e),a=t.length;let o="",r=0;for(;r<a;){const i=t.charAt(r),l=t.charCodeAt(r);l===0?o+="�":l>=1&&l<=31||l===127||r===0&&l>=48&&l<=57||r===1&&l>=48&&l<=57&&t.charCodeAt(0)===45?o+="\\"+l.toString(16)+" ":r===0&&a===1&&l===45?o+="\\"+i:l>=128||l===45||l===95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122?o+=i:o+="\\"+i,r++}return o}function ne(e){return"."+$e(e)}function Xe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Je(e){const t=/class\s*=\s*(['"])([\s\S]*?)\1/g,a=[];let o;for(;o=t.exec(e);){const r=o[2].split(/\s+/).filter(Boolean);r.length&&a.push(...r)}return a}const ie=new Map,Ze=16,Te=1e3;function Oe(e){const t=ie.get(e);if(t&&Date.now()-t.timestamp<Ze)return t.css;const a=Je(e);if(!a.length)return"";const o=new Set(a),r=[[],[],[],[]],i={},l=(p,g=!1)=>{const h=g?`dark|${p}`:p;if(h in i)return i[h];const x=u(p,g);return i[h]=x,x},$=p=>{const g=p.some(T=>oe.includes(T)),h=p.some(T=>T.startsWith("@")&&(le.includes(T.slice(1))||T.match(/^@\[.+\]$/))),x=p.includes("dark");return p.length?!g&&!x&&!h?1:x&&(g||h)?3:2:0},n=p=>{const g=[];let h="",x=0;for(let T=0;T<p.length;T++){const k=p[T];k==="["||k==="("?x++:(k==="]"||k===")")&&x--,k===":"&&x===0?(g.push(h),h=""):h+=k}return h&&g.push(h),g},c={hover:":hover",focus:":focus",active:":active",visited:":visited",disabled:":disabled",checked:":checked",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)","focus-within":":focus-within","focus-visible":":focus-visible"},u=(p,g=!1)=>{const h=n(p);let x="",T=!1;for(const s of h){let b=s;if(b.startsWith("!")&&(T=!0,b=b.slice(1)),pe[b]||ue(b)||fe(b)||he(b)||ge(b)||me(b)||ae(b)){x=s;break}}if(!x)return null;const k=x.replace(/^!/,""),P=pe[k]??ue(k)??fe(k)??he(k)??ge(k)??me(k)??ae(k);if(!P)return null;const W=h.indexOf(x);let E=W>=0?h.slice(0,W):[];g&&(E=E.filter(s=>s!=="dark"));const A=ne(p),R=T?P.replace(/;/g," !important;"):P,d="__SUBJECT__";let m=d;const C=[];for(const s of E)s.startsWith("group-")?(m=`.group:${s.slice(6)} ${m}`,C.push(s)):s.startsWith("peer-")&&(m=m.replace(d,`.peer:${s.slice(5)}~${d}`),C.push(s));E=E.filter(s=>!C.includes(s));const _=[],L=[];let M=null;for(const s of E){if(s==="dark"||oe.includes(s)||s.startsWith("@")&&(le.includes(s.slice(1))||s.match(/^@\[.+\]$/)))continue;const b=Ce(s);if(b){M=b;continue}const S=c[s];if(S){M?L.push(S):_.push(S);continue}const v=Se[s];typeof v=="function"&&(m=v(m,R).split("{")[0])}const z=_.join(""),D=L.join("");function I(s,b){if(!b)return s;let S=0,v=0;if(s.length&&(s[0]===">"||s[0]==="+"||s[0]==="~"||s[0]===" ")){let f=1;for(;f<s.length&&s[f]===" ";)f++;for(;f<s.length;f++){const O=s[f];if(O==="["?S++:O==="]"&&S>0?S--:O==="("?v++:O===")"&&v>0&&v--,S===0&&v===0&&(s[f]===">"||s[f]==="+"||s[f]==="~"||s[f]===" "))return s.slice(0,f)+b+s.slice(f)}return s+b}for(let f=0;f<s.length;f++){const O=s[f];if(O==="["?S++:O==="]"&&S>0?S--:O==="("?v++:O===")"&&v>0&&v--,S===0&&v===0&&(O===">"||O==="+"||O==="~"||O===" "))return s.slice(0,f)+b+s.slice(f)}return s+b}if(M)if(M.includes("&")){const s=M.indexOf("&"),b=M.slice(0,s),S=M.slice(s+1),v=d+z;if(_.length===0)m=m.replace(d,b+v+D+S);else{const f=I(S,D);m=m.replace(d,b+v+f)}}else m=m.replace(d,`${M}${d+z}`),D&&(m=m.replace(d,`${d}${D}`));else m=m.replace(d,d+z+D);m=m.replace(new RegExp(d,"g"),A);const V="__CE_COLOR_MIX_SPLIT__",Z=R.includes(V)?R.split(V).map(s=>`${m}{${s}}`):[`${m}{${R}}`],G=E.filter(s=>oe.includes(s)),X=E.filter(s=>s.startsWith("@")&&(le.includes(s.slice(1))||s.match(/^@\[.+\]$/))),B=G.length?G[G.length-1]:null,N=X.length?X[X.length-1]:null,Y=E.includes("dark");let w="",H="";if(Y&&B?w=`@media (prefers-color-scheme: dark) and ${te[B]}`:Y?w="@media (prefers-color-scheme: dark)":B&&(w=`@media ${te[B]}`),N)if(N.startsWith("@[")&&N.endsWith("]")){const s=N.slice(2,-1);if(!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(s))return null;H=`@container (min-width:${s})`}else{const s=N.slice(1);H=`@container ${je[s]||`(min-width:${s})`}`}const xe=s=>w&&H?`${w}${H}{${s}}`:w?`${w}{${s}}`:H?`${H}{${s}}`:s;return Z.map(xe).join("")};for(const p of o){const g=n(p),h=g.slice(0,-1),x=g[g.length-1];if(He(x)!==null){if(h.length===0)r[0].push(`${ne(p)}{}`);else{const d=Ae(x);if(!d)continue;const m=ne(p),C=ne(x);let _=d.replace(new RegExp(Xe(C),"g"),m);const L=h.filter(z=>oe.includes(z));if(L.length>0){const z=L[L.length-1];_=`${`@media ${te[z]}`}{${_}}`}h.includes("dark")&&(_=`@media (prefers-color-scheme: dark){${_}}`);const M=$(h);r[M].push(_)}continue}let k=-1;for(let d=g.length-1;d>=0;d--){const m=g.slice(d).join(":");if(ke(m)){k=d;break}}if(k>=0){const d=g.slice(k).join(":"),m=g.slice(0,k),C=ke(d);if(!C)continue;if(m.length===0){r[0].push(C);continue}const _=$e(p),L=$e(d),M=C.replace(new RegExp(`\\.${L.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"g"),`.${_}`),z=/(.+?)\s+(.+?)\{([^}]+)\}/g,D=[...M.matchAll(z)];if(D.length===0){r[0].push(C);continue}const I=$(m),V={hover:":hover",focus:":focus",active:":active",visited:":visited",disabled:":disabled",checked:":checked",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)","focus-within":":focus-within","focus-visible":":focus-visible"},Z=[],G=[],X=[],B=[],N=[];let Y=!1;for(const w of m)w.startsWith("group-")||w.startsWith("peer-")?Z.push(w):w==="dark"||w==="dark-class"?Y=!0:oe.includes(w)?B.push(w):w.startsWith("@")&&(le.includes(w.slice(1))||w.match(/^@\[.+\]$/))?N.push(w):w.startsWith("[")&&w.endsWith("]")?X.push(w):(V[w]||Se[w])&&G.push(w);for(const w of D){const[,H,xe,s]=w;let b=`${H} ${xe}`;for(const v of Z)if(v.startsWith("group-")){const f=v.slice(6);b=`.group${V[f]||`:${f}`} ${b}`}else if(v.startsWith("peer-")){const f=v.slice(5);b=`.peer${V[f]||`:${f}`}~${b}`}if(G.length>0){const v=G.map(f=>V[f]||`:${f}`).join("");b=`${b}${v}`}for(const v of X){const f=Ce(v);if(f&&f.includes("&")){const O=f.indexOf("&"),ee=f.slice(0,O),se=f.slice(O+1);b=`${ee}${b}${se}`}}let S=`${b}{${s}}`;if(Y&&(S=`@media (prefers-color-scheme: dark){${S}}`),N.length>0){const v=N[N.length-1];if(v.startsWith("@[")&&v.endsWith("]")){const f=v.slice(2,-1);/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(f)&&(S=`@container (min-width:${f}){${S}}`)}else{const f=v.slice(1),ee={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"}[f];if(ee){const se=p.match(/@([^/]+)\//)?.[1]||"";S=se?`@container ${se} (min-width: ${ee}){${S}}`:`@container (min-width: ${ee}){${S}}`}}}if(B.length>0){const v=B[B.length-1];S=`${`@media ${te[v]}`}{${S}}`}r[I].push(S)}continue}const P=g.find(d=>pe[d.replace(/^!/,"")]||ue(d.replace(/^!/,""))||fe(d.replace(/^!/,""))||he(d.replace(/^!/,""))||ge(d.replace(/^!/,""))||me(d.replace(/^!/,""))||ae(d.replace(/^!/,"")));if(!P)continue;const W=g.indexOf(P),E=W>=0?g.slice(0,W):[],A=$(E),R=l(p);R&&r[A].push(R)}const j=/^(from|via|to)-[a-z]+-?\d{2,3}?$/;for(const p of o)if(j.test(p)){if(r.flat().join("").includes(ne(p)))continue;const h=l(p);h&&r[0].push(h)}const y=p=>p.sort((g,h)=>{const x=A=>{const R={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};for(const[d,m]of Object.entries(R))if(A.includes(`@media ${te[d]}`))return m;return-1},T=A=>{const R={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};for(const[d,m]of Object.entries(R))if(A.includes(`@container ${je[d]}`))return m;if(A.includes("@container (min-width:")){const d=/@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(A);if(d){const m=parseFloat(d[1]),C=d[2];return C==="rem"||C==="em"?m*16:m}}return-1},k=x(g),P=x(h),W=T(g),E=T(h);return k>=0&&P>=0&&k!==P?k-P:W>=0&&E>=0&&W!==E?W-E:0});r[2]=y(r[2]),r[3]=y(r[3]);const F=r.flat().join("");return ie.size>=Te&&Array.from(ie.keys()).slice(0,Math.floor(Te/2)).forEach(g=>ie.delete(g)),ie.set(e,{css:F,timestamp:Date.now()}),F}const J={fade:{enterFrom:"opacity-0",enterActive:"transition-opacity duration-300 ease-out",enterTo:"opacity-100",leaveFrom:"opacity-100",leaveActive:"transition-opacity duration-200 ease-in",leaveTo:"opacity-0"},"slide-right":{enterFrom:"translate-x-[100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-x-[0%] opacity-100",leaveFrom:"translate-x-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-x-[100%] opacity-0"},"slide-left":{enterFrom:"translate-x-[-100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-x-[0%] opacity-100",leaveFrom:"translate-x-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-x-[-100%] opacity-0"},"slide-up":{enterFrom:"translate-y-[100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-y-[0%] opacity-100",leaveFrom:"translate-y-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-y-[100%] opacity-0"},"slide-down":{enterFrom:"translate-y-[-100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-y-[0%] opacity-100",leaveFrom:"translate-y-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-y-[-100%] opacity-0"},scale:{enterFrom:"scale-95 opacity-0",enterActive:"transition-all duration-200 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-150 ease-in",leaveTo:"scale-95 opacity-0"},"scale-down":{enterFrom:"scale-105 opacity-0",enterActive:"transition-all duration-200 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-150 ease-in",leaveTo:"scale-105 opacity-0"},bounce:{enterFrom:"scale-0 opacity-0",enterActive:"transition-all duration-500 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"scale-0 opacity-0"},zoom:{enterFrom:"scale-0 opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"scale-0 opacity-0"},flip:{enterFrom:"rotate-[90deg] opacity-0",enterActive:"transition-all duration-400 ease-out",enterTo:"rotate-[0deg] opacity-100",leaveFrom:"rotate-[0deg] opacity-100",leaveActive:"transition-all duration-300 ease-in",leaveTo:"rotate-[90deg] opacity-0"}};function Ye(e,t){const{preset:a,show:o,mode:r="default",duration:i,appear:l=!1,css:$=!0,name:n,enterFrom:c,enterActive:u,enterTo:j,leaveFrom:y,leaveActive:F,leaveTo:p,onBeforeEnter:g,onEnter:h,onAfterEnter:x,onEnterCancelled:T,onBeforeLeave:k,onLeave:P,onAfterLeave:W,onLeaveCancelled:E}=e;let A;a&&J[a]?(A={...J[a]},c&&(A.enterFrom=c),u&&(A.enterActive=u),j&&(A.enterTo=j),y&&(A.leaveFrom=y),F&&(A.leaveActive=F),p&&(A.leaveTo=p)):A={enterFrom:c,enterActive:u,enterTo:j,leaveFrom:y,leaveActive:F,leaveTo:p};const R=n||(a?`transition-${a}`:"transition"),d=Me.anchorBlock(o?t:[],R);return d._transition={name:R,classes:A,mode:r,duration:i,appear:l,css:$,state:o?"visible":"hidden",hooks:{onBeforeEnter:g,onEnter:h,onAfterEnter:x,onEnterCancelled:T,onBeforeLeave:k,onLeave:P,onAfterLeave:W,onLeaveCancelled:E}},d}function er(e,t){const{tag:a="div",moveClass:o="transition-transform duration-300",preset:r,show:i=!0,mode:l="default",duration:$,appear:n=!1,css:c=!0,name:u,class:j,style:y,enterFrom:F,enterActive:p,enterTo:g,leaveFrom:h,leaveActive:x,leaveTo:T,onBeforeEnter:k,onEnter:P,onAfterEnter:W,onEnterCancelled:E,onBeforeLeave:A,onLeave:R,onAfterLeave:d,onLeaveCancelled:m}=e;let C;r&&J[r]?(C={...J[r]},F&&(C.enterFrom=F),p&&(C.enterActive=p),g&&(C.enterTo=g),h&&(C.leaveFrom=h),x&&(C.leaveActive=x),T&&(C.leaveTo=T)):C={enterFrom:F,enterActive:p,enterTo:g,leaveFrom:h,leaveActive:x,leaveTo:T};const _=u||(r?`transition-group-${r}`:"transition-group"),L=[];for(const z of i?t:[])if(z&&typeof z=="object"&&z.tag==="#anchor"){const D=Array.isArray(z.children)?z.children:[];for(const I of D)if(I&&typeof I=="object"){const V={...I,key:z.key||I.key,props:{...I.props,_anchorKey:z.key}};L.push(V)}else L.push(I)}else L.push(z);const M=(()=>{if(y)return typeof y=="string"?y:Object.entries(y).map(([z,D])=>`${z}: ${D}`).join("; ")})();return{tag:a,children:L,key:_,props:{attrs:{...j?{class:j}:{},...M?{style:M}:{}},_transitionGroup:{name:_,classes:C,moveClass:o,mode:l,duration:$,appear:n,css:c,hooks:{onBeforeEnter:k,onEnter:P,onAfterEnter:W,onEnterCancelled:E,onBeforeLeave:A,onLeave:R,onAfterLeave:d,onLeaveCancelled:m}}}}}function rr(e){return{...e}}let Q=null;function Re(){if(!Q){if(typeof CSSStyleSheet>"u")return Q={cssRules:[],replaceSync:()=>{},toString:()=>""},Q;const e=[];Object.values(J).forEach(o=>{o.enterFrom&&e.push(o.enterFrom),o.enterActive&&e.push(o.enterActive),o.enterTo&&e.push(o.enterTo),o.leaveFrom&&e.push(o.leaveFrom),o.leaveActive&&e.push(o.leaveActive),o.leaveTo&&e.push(o.leaveTo)});const t=`<div class="${e.join(" ")}"></div>`,a=Oe(t);try{Q=new CSSStyleSheet,Q.replaceSync(a)}catch{Q={cssRules:[],replaceSync:()=>{},toString:()=>a||""}}}return Q}function tr(){if(!(typeof window>"u"||typeof CSSStyleSheet>"u"))try{Re()}catch{}}tr();exports.Transition=Ye;exports.TransitionGroup=er;exports.baseReset=ye;exports.createTransitionPreset=rr;exports.css=ze;exports.getBaseResetSheet=De;exports.getProseSheet=Fe;exports.getTransitionStyleSheet=Re;exports.jitCSS=Oe;exports.minifyCSS=be;exports.sanitizeCSS=Ie;exports.transitionPresets=J;
|
|
302
|
-
//# sourceMappingURL=transitions-
|
|
301
|
+
`.replace(/\s+/g,"")}),e},pe=Be();function Ue(e){return/^prose(?:-(sm|lg|xl|2xl))?$/.test(e)?(qe(e),""):null}function ke(e){return/^prose-([a-z0-9]+):(.+)$/.test(e)?We(e,pe,ue,fe,he,ge,me,ae):null}function q(e,t){let a=0;for(let o=0;o<e.length;o++){const r=e[o];if(r==="["||r==="(")a++;else if((r==="]"||r===")")&&a>0)a--;else if(a===0&&(r===">"||r==="+"||r==="~"||r===" "))return e.slice(0,o)+t+e.slice(o)}return e+t}const Se={before:(e,t)=>`${e}::before{${t}}`,after:(e,t)=>`${e}::after{${t}}`,hover:(e,t)=>`${q(e,":hover")}{${t}}`,focus:(e,t)=>`${q(e,":focus")}{${t}}`,active:(e,t)=>`${q(e,":active")}{${t}}`,disabled:(e,t)=>`${q(e,":disabled")}{${t}}`,visited:(e,t)=>`${q(e,":visited")}{${t}}`,checked:(e,t)=>`${q(e,":checked")}{${t}}`,first:(e,t)=>`${q(e,":first-child")}{${t}}`,last:(e,t)=>`${q(e,":last-child")}{${t}}`,odd:(e,t)=>`${q(e,":nth-child(odd)")}{${t}}`,even:(e,t)=>`${q(e,":nth-child(even)")}{${t}}`,"focus-within":(e,t)=>`${q(e,":focus-within")}{${t}}`,"focus-visible":(e,t)=>`${q(e,":focus-visible")}{${t}}`,"group-hover":(e,t)=>`.group:hover ${e}{${t}}`,"group-focus":(e,t)=>`.group:focus ${e}{${t}}`,"group-active":(e,t)=>`.group:active ${e}{${t}}`,"group-disabled":(e,t)=>`.group:disabled ${e}{${t}}`,"peer-hover":(e,t)=>`.peer:hover ~ ${e}{${t}}`,"peer-focus":(e,t)=>`.peer:focus ~ ${e}{${t}}`,"peer-checked":(e,t)=>`.peer:checked ~ ${e}{${t}}`,"peer-disabled":(e,t)=>`.peer:disabled ~ ${e}{${t}}`,"dark-class":(e,t)=>`:host(.dark) ${e}{${t}}`},te={sm:"(min-width:640px)",md:"(min-width:768px)",lg:"(min-width:1024px)",xl:"(min-width:1280px)","2xl":"(min-width:1536px)",dark:"(prefers-color-scheme: dark)"},je={xs:"(min-width:20rem)",sm:"(min-width:24rem)",md:"(min-width:28rem)",lg:"(min-width:32rem)",xl:"(min-width:36rem)","2xl":"(min-width:42rem)","3xl":"(min-width:48rem)","4xl":"(min-width:56rem)","5xl":"(min-width:64rem)","6xl":"(min-width:72rem)","7xl":"(min-width:80rem)"},oe=["sm","md","lg","xl","2xl"],le=["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"];function ue(e){const t=e.startsWith("-"),a=t?e.slice(1):e,o=a.lastIndexOf("-");if(o===-1)return null;const r=a.slice(0,o),i=a.slice(o+1);if(!we[r])return null;if(i.includes("/")){const[n,c]=i.split("/").map(j=>parseFloat(j));if(Number.isNaN(n)||Number.isNaN(c)||c===0)return null;const u=n/c*100;return we[r].map(j=>`${j}:${u}%;`).join("")}const l=parseFloat(i);if(Number.isNaN(l))return null;const $=t?"-":"";return we[r].map(n=>`${n}:calc(${$}${K} * ${l});`).join("")}function fe(e){const t=e.startsWith("-"),o=(t?e.slice(1):e).match(/^space-(x|y)-(.+)$/);if(!o)return null;const[,r,i]=o,l=r==="x";if(i==="reverse")return l?"--cer-space-x-reverse:1;":"--cer-space-y-reverse:1;";if(i.includes("/")){const[u,j]=i.split("/").map(p=>parseFloat(p));if(Number.isNaN(u)||Number.isNaN(j)||j===0)return null;const y=u/j*100,F=t?"-":"";return l?`--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${F}${y}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${F}${y}% * var(--cer-space-x-reverse));}`:`--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${F}${y}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${F}${y}% * var(--cer-space-y-reverse));}`}const $=parseFloat(i);if(Number.isNaN($))return null;const c=`calc(${t?"-":""}${K} * ${$})`;return l?`--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${c} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${c} * var(--cer-space-x-reverse));}`:`--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${c} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${c} * var(--cer-space-y-reverse));}`}function de(e){let t=e.replace("#","");t.length===3&&(t=t.split("").map(o=>o+o).join(""));const a=parseInt(t,16);return`${a>>16&255} ${a>>8&255} ${a&255}`}const He=/^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/,Ke={bg:"background-color",decoration:"text-decoration-color",text:"color",border:"border-color",outline:"outline-color",caret:"caret-color",accent:"accent-color",fill:"fill",stroke:"stroke"};function Ge(e){const t=He.exec(e);if(!t)return null;const[,a,o,r="DEFAULT"]=t,i=Ee[o]?.[r];if(!i)return null;if(a==="shadow")return`--cer-shadow-color:${i};`;const l=Ke[a];return l?`${l}:${i};`:null}function Qe(e){const t=e.indexOf("/");if(t===-1)return{base:e};const a=e.slice(0,t),o=e.slice(t+1),r=parseInt(o,10);return isNaN(r)||r<0||r>100?{base:a}:{base:a,opacity:r/100}}function ge(e){const{base:t,opacity:a}=Qe(e),o=Ge(t);if(o){if(a!==void 0){if(o.includes("var(")){const l=/var\([^)]*\)/.exec(o);if(l){const $=l[0],n=a*100,c=`color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100-n}%)`,u=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($),j=/^([a-z-]+):/.exec(o),y=j?j[1]:"background-color";if(u){const p=`rgb(${de(u[0])} / ${a})`,g=$.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,p);return`${y}:${g};__CE_COLOR_MIX_SPLIT__${y}:${c};`}return`${y}:${c};`}}const i=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(o);if(i){const l=de(i[0]);return o.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,`rgb(${l} / ${a})`)}}return o}const r=ae(t);if(r&&a!==void 0){if(r.includes("var(")){const l=/var\([^)]*\)/.exec(r);if(l){const $=l[0],n=a*100,c=`color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100-n}%)`,u=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($),j=/^([a-z-]+):/.exec(r),y=j?j[1]:null;if(u&&y){const p=`rgb(${de(u[0])} / ${a})`,g=$.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,p);return`${y}:${g};__CE_COLOR_MIX_SPLIT__${y}:${c};`}return r.replace($,c)}}const i=/#([0-9a-f]{6}|[0-9a-f]{3})/i.exec(r);if(i){const l=de(i[0]);return r.replace(/#([0-9a-f]{6}|[0-9a-f]{3})/i,`rgb(${l} / ${a})`)}}return r}function me(e){const t=/^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);if(!t)return null;const[,a,o,r="DEFAULT"]=t,i=Ee[o]?.[r];if(!i)return null;switch(a){case"from":return`--cer-gradient-from:${i} var(--cer-gradient-from-position);--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), var(--cer-gradient-to);`;case"to":return`--cer-gradient-to:${i} var(--cer-gradient-to-position);`;case"via":return`--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${i} var(--cer-gradient-via-position), var(--cer-gradient-to);`;default:return null}}function he(e){const t=/^opacity-(\d{1,3})$/.exec(e);if(!t)return null;const a=parseInt(t[1],10);return a<0||a>100?null:`opacity:${a/100};`}function ae(e){if(e.startsWith("[")&&e.endsWith("]")&&!e.includes("-[")){const l=e.slice(1,-1).trim(),$=l.indexOf(":");if($===-1)return null;const n=l.slice(0,$).trim();let c=l.slice($+1).trim();return/^[a-zA-Z][a-zA-Z0-9-]*$/.test(n)?(c=c.replace(/_/g," "),c=c.replace(/url\('\s*([^']*?)\s*'\)/g,'url("$1")'),c=c.replace(/^'([^']*)'$/g,'"$1"'),`${n}:${c};`):null}const t=e.indexOf("-[");if(t<=0||!e.endsWith("]"))return null;const a=e.slice(0,t),o=e.slice(t+2,-1).replace(/_/g," "),r={bg:"background-color",shadow:"box-shadow",p:"padding",px:"padding-inline",py:"padding-block",m:"margin",mx:"margin-inline",my:"margin-block",w:"width",h:"height","min-w":"min-width","max-w":"max-width","min-h":"min-height","max-h":"max-height","border-t":"border-top-width","border-b":"border-bottom-width","border-l":"border-left-width","border-r":"border-right-width","border-x":"border-inline-width","border-y":"border-block-width","grid-cols":"grid-template-columns","grid-rows":"grid-template-rows",transition:"transition-property",ease:"transition-timing-function",delay:"transition-delay",duration:"transition-duration",list:"list-style",break:"word-break",flex:"flex-direction",items:"align-items",justify:"justify-content",content:"align-content",self:"align-self",basis:"flex-basis",tracking:"letter-spacing",leading:"line-height",z:"z-index",opacity:"opacity"};if(a==="text")return/^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(o)?`font-size:${o};`:`color:${o};`;if(a==="rotate")return`transform:rotate(${o});`;if(a==="scale")return`transform:scale(${o});`;if(a==="translate-x")return`transform:translateX(${o});`;if(a==="translate-y")return`transform:translateY(${o});`;const i=r[a]??a.replace(/_/g,"-");return i&&o?`${i}:${o};`:null}function Ce(e){if(e.startsWith("[")&&e.endsWith("]")){const a=e.slice(1,-1);return a.includes("&")?a:e}const t=e.indexOf("-[");if(t>0&&e.endsWith("]")){const a=e.slice(t+2,-1).replace(/_/g,"-");return a.includes("&")?a:e.replace(/_/g,"-")}return null}function $e(e){if(typeof CSS<"u"&&CSS.escape)return CSS.escape(e);const t=String(e),a=t.length;let o="",r=0;for(;r<a;){const i=t.charAt(r),l=t.charCodeAt(r);l===0?o+="�":l>=1&&l<=31||l===127||r===0&&l>=48&&l<=57||r===1&&l>=48&&l<=57&&t.charCodeAt(0)===45?o+="\\"+l.toString(16)+" ":r===0&&a===1&&l===45?o+="\\"+i:l>=128||l===45||l===95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122?o+=i:o+="\\"+i,r++}return o}function ne(e){return"."+$e(e)}function Xe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ze(e){const t=/class\s*=\s*(['"])([\s\S]*?)\1/g,a=[];let o;for(;o=t.exec(e);){const r=o[2].split(/\s+/).filter(Boolean);r.length&&a.push(...r)}return a}const ie=new Map,Ae=1e3;function Oe(e){const t=ie.get(e);if(t)return t.css;const a=Ze(e);if(!a.length)return"";const o=new Set(a),r=[[],[],[],[]],i={},l=(p,g=!1)=>{const b=g?`dark|${p}`:p;if(b in i)return i[b];const x=u(p,g);return i[b]=x,x},$=p=>{const g=p.some(C=>oe.includes(C)),b=p.some(C=>C.startsWith("@")&&(le.includes(C.slice(1))||C.match(/^@\[.+\]$/))),x=p.includes("dark");return p.length?!g&&!x&&!b?1:x&&(g||b)?3:2:0},n=p=>{const g=[];let b="",x=0;for(let C=0;C<p.length;C++){const k=p[C];k==="["||k==="("?x++:(k==="]"||k===")")&&x--,k===":"&&x===0?(g.push(b),b=""):b+=k}return b&&g.push(b),g},c={hover:":hover",focus:":focus",active:":active",visited:":visited",disabled:":disabled",checked:":checked",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)","focus-within":":focus-within","focus-visible":":focus-visible"},u=(p,g=!1)=>{const b=n(p);let x="",C=!1;for(const s of b){let h=s;if(h.startsWith("!")&&(C=!0,h=h.slice(1)),h.endsWith("!")&&(C=!0,h=h.slice(0,-1)),pe[h]||ue(h)||fe(h)||he(h)||ge(h)||me(h)||ae(h)){x=s;break}}if(!x)return null;const k=x.replace(/^!/,"").replace(/!$/,""),P=pe[k]??ue(k)??fe(k)??he(k)??ge(k)??me(k)??ae(k);if(!P)return null;const W=b.indexOf(x);let E=W>=0?b.slice(0,W):[];g&&(E=E.filter(s=>s!=="dark"));const T=ne(p),R=C?P.replace(/;/g," !important;"):P,m="__SUBJECT__";let d=m;const A=[];for(const s of E)s.startsWith("group-")?(d=`.group:${s.slice(6)} ${d}`,A.push(s)):s.startsWith("peer-")&&(d=d.replace(m,`.peer:${s.slice(5)}~${m}`),A.push(s));E=E.filter(s=>!A.includes(s));const _=[],L=[];let M=null;for(const s of E){if(s==="dark"||oe.includes(s)||s.startsWith("@")&&(le.includes(s.slice(1))||s.match(/^@\[.+\]$/)))continue;const h=Ce(s);if(h){M=h;continue}const S=c[s];if(S){M?L.push(S):_.push(S);continue}const v=Se[s];typeof v=="function"&&(d=v(d,R).split("{")[0])}const z=_.join(""),D=L.join("");function I(s,h){if(!h)return s;let S=0,v=0;if(s.length&&(s[0]===">"||s[0]==="+"||s[0]==="~"||s[0]===" ")){let f=1;for(;f<s.length&&s[f]===" ";)f++;for(;f<s.length;f++){const O=s[f];if(O==="["?S++:O==="]"&&S>0?S--:O==="("?v++:O===")"&&v>0&&v--,S===0&&v===0&&(s[f]===">"||s[f]==="+"||s[f]==="~"||s[f]===" "))return s.slice(0,f)+h+s.slice(f)}return s+h}for(let f=0;f<s.length;f++){const O=s[f];if(O==="["?S++:O==="]"&&S>0?S--:O==="("?v++:O===")"&&v>0&&v--,S===0&&v===0&&(O===">"||O==="+"||O==="~"||O===" "))return s.slice(0,f)+h+s.slice(f)}return s+h}if(M)if(M.includes("&")){const s=M.indexOf("&"),h=M.slice(0,s),S=M.slice(s+1),v=m+z;if(_.length===0)d=d.replace(m,h+v+D+S);else{const f=I(S,D);d=d.replace(m,h+v+f)}}else d=d.replace(m,`${M}${m+z}`),D&&(d=d.replace(m,`${m}${D}`));else d=d.replace(m,m+z+D);d=d.replace(new RegExp(m,"g"),T);const V="__CE_COLOR_MIX_SPLIT__",J=R.includes(V)?R.split(V).map(s=>`${d}{${s}}`):[`${d}{${R}}`],G=E.filter(s=>oe.includes(s)),X=E.filter(s=>s.startsWith("@")&&(le.includes(s.slice(1))||s.match(/^@\[.+\]$/))),B=G.length?G[G.length-1]:null,N=X.length?X[X.length-1]:null,Y=E.includes("dark");let w="",U="";if(Y&&B?w=`@media (prefers-color-scheme: dark) and ${te[B]}`:Y?w="@media (prefers-color-scheme: dark)":B&&(w=`@media ${te[B]}`),N)if(N.startsWith("@[")&&N.endsWith("]")){const s=N.slice(2,-1);if(!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(s))return null;U=`@container (min-width:${s})`}else{const s=N.slice(1);U=`@container ${je[s]||`(min-width:${s})`}`}const xe=s=>w&&U?`${w}${U}{${s}}`:w?`${w}{${s}}`:U?`${U}{${s}}`:s;return J.map(xe).join("")};for(const p of o){const g=n(p),b=g.slice(0,-1),x=g[g.length-1];if(Ue(x)!==null){if(b.length===0)r[0].push(`${ne(p)}{}`);else{const m=Te(x);if(!m)continue;const d=ne(p),A=ne(x);let _=m.replace(new RegExp(Xe(A),"g"),d);const L=b.filter(z=>oe.includes(z));if(L.length>0){const z=L[L.length-1];_=`${`@media ${te[z]}`}{${_}}`}b.includes("dark")&&(_=`@media (prefers-color-scheme: dark){${_}}`);const M=$(b);r[M].push(_)}continue}let k=-1;for(let m=g.length-1;m>=0;m--){const d=g.slice(m).join(":");if(ke(d)){k=m;break}}if(k>=0){const m=g.slice(k).join(":"),d=g.slice(0,k),A=ke(m);if(!A)continue;if(d.length===0){r[0].push(A);continue}const _=$e(p),L=$e(m),M=A.replace(new RegExp(`\\.${L.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"g"),`.${_}`),z=/(.+?)\s+(.+?)\{([^}]+)\}/g,D=[...M.matchAll(z)];if(D.length===0){r[0].push(A);continue}const I=$(d),V={hover:":hover",focus:":focus",active:":active",visited:":visited",disabled:":disabled",checked:":checked",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)","focus-within":":focus-within","focus-visible":":focus-visible"},J=[],G=[],X=[],B=[],N=[];let Y=!1;for(const w of d)w.startsWith("group-")||w.startsWith("peer-")?J.push(w):w==="dark"||w==="dark-class"?Y=!0:oe.includes(w)?B.push(w):w.startsWith("@")&&(le.includes(w.slice(1))||w.match(/^@\[.+\]$/))?N.push(w):w.startsWith("[")&&w.endsWith("]")?X.push(w):(V[w]||Se[w])&&G.push(w);for(const w of D){const[,U,xe,s]=w;let h=`${U} ${xe}`;for(const v of J)if(v.startsWith("group-")){const f=v.slice(6);h=`.group${V[f]||`:${f}`} ${h}`}else if(v.startsWith("peer-")){const f=v.slice(5);h=`.peer${V[f]||`:${f}`}~${h}`}if(G.length>0){const v=G.map(f=>V[f]||`:${f}`).join("");h=`${h}${v}`}for(const v of X){const f=Ce(v);if(f&&f.includes("&")){const O=f.indexOf("&"),ee=f.slice(0,O),se=f.slice(O+1);h=`${ee}${h}${se}`}}let S=`${h}{${s}}`;if(Y&&(S=`@media (prefers-color-scheme: dark){${S}}`),N.length>0){const v=N[N.length-1];if(v.startsWith("@[")&&v.endsWith("]")){const f=v.slice(2,-1);/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(f)&&(S=`@container (min-width:${f}){${S}}`)}else{const f=v.slice(1),ee={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"}[f];if(ee){const se=p.match(/@([^/]+)\//)?.[1]||"";S=se?`@container ${se} (min-width: ${ee}){${S}}`:`@container (min-width: ${ee}){${S}}`}}}if(B.length>0){const v=B[B.length-1];S=`${`@media ${te[v]}`}{${S}}`}r[I].push(S)}continue}const P=g.find(m=>{const d=m.replace(/^!/,"").replace(/!$/,"");return pe[d]||ue(d)||fe(d)||he(d)||ge(d)||me(d)||ae(d)});if(!P)continue;const W=g.indexOf(P),E=W>=0?g.slice(0,W):[],T=$(E),R=l(p);R&&r[T].push(R)}const j=/^(from|via|to)-[a-z]+-?\d{2,3}?$/;for(const p of o)if(j.test(p)){if(r.flat().join("").includes(ne(p)))continue;const b=l(p);b&&r[0].push(b)}const y=p=>p.sort((g,b)=>{const x=T=>{const R={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};for(const[m,d]of Object.entries(R))if(T.includes(`@media ${te[m]}`))return d;return-1},C=T=>{const R={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};for(const[m,d]of Object.entries(R))if(T.includes(`@container ${je[m]}`))return d;if(T.includes("@container (min-width:")){const m=/@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(T);if(m){const d=parseFloat(m[1]),A=m[2];return A==="rem"||A==="em"?d*16:d}}return-1},k=x(g),P=x(b),W=C(g),E=C(b);return k>=0&&P>=0&&k!==P?k-P:W>=0&&E>=0&&W!==E?W-E:0});r[2]=y(r[2]),r[3]=y(r[3]);const F=r.flat().join("");return ie.size>=Ae&&Array.from(ie.keys()).slice(0,Math.floor(Ae/2)).forEach(g=>ie.delete(g)),ie.set(e,{css:F,timestamp:Date.now()}),F}const Z={fade:{enterFrom:"opacity-0",enterActive:"transition-opacity duration-300 ease-out",enterTo:"opacity-100",leaveFrom:"opacity-100",leaveActive:"transition-opacity duration-200 ease-in",leaveTo:"opacity-0"},"slide-right":{enterFrom:"translate-x-[100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-x-[0%] opacity-100",leaveFrom:"translate-x-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-x-[100%] opacity-0"},"slide-left":{enterFrom:"translate-x-[-100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-x-[0%] opacity-100",leaveFrom:"translate-x-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-x-[-100%] opacity-0"},"slide-up":{enterFrom:"translate-y-[100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-y-[0%] opacity-100",leaveFrom:"translate-y-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-y-[100%] opacity-0"},"slide-down":{enterFrom:"translate-y-[-100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-y-[0%] opacity-100",leaveFrom:"translate-y-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-y-[-100%] opacity-0"},scale:{enterFrom:"scale-95 opacity-0",enterActive:"transition-all duration-200 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-150 ease-in",leaveTo:"scale-95 opacity-0"},"scale-down":{enterFrom:"scale-105 opacity-0",enterActive:"transition-all duration-200 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-150 ease-in",leaveTo:"scale-105 opacity-0"},bounce:{enterFrom:"scale-0 opacity-0",enterActive:"transition-all duration-500 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"scale-0 opacity-0"},zoom:{enterFrom:"scale-0 opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"scale-0 opacity-0"},flip:{enterFrom:"rotate-[90deg] opacity-0",enterActive:"transition-all duration-400 ease-out",enterTo:"rotate-[0deg] opacity-100",leaveFrom:"rotate-[0deg] opacity-100",leaveActive:"transition-all duration-300 ease-in",leaveTo:"rotate-[90deg] opacity-0"}};function Je(e,t){const{preset:a,show:o,mode:r="default",duration:i,appear:l=!1,css:$=!0,name:n,enterFrom:c,enterActive:u,enterTo:j,leaveFrom:y,leaveActive:F,leaveTo:p,onBeforeEnter:g,onEnter:b,onAfterEnter:x,onEnterCancelled:C,onBeforeLeave:k,onLeave:P,onAfterLeave:W,onLeaveCancelled:E}=e;let T;a&&Z[a]?(T={...Z[a]},c&&(T.enterFrom=c),u&&(T.enterActive=u),j&&(T.enterTo=j),y&&(T.leaveFrom=y),F&&(T.leaveActive=F),p&&(T.leaveTo=p)):T={enterFrom:c,enterActive:u,enterTo:j,leaveFrom:y,leaveActive:F,leaveTo:p};const R=n||(a?`transition-${a}`:"transition"),m=Me.anchorBlock(o?t:[],R);return m._transition={name:R,classes:T,mode:r,duration:i,appear:l,css:$,state:o?"visible":"hidden",hooks:{onBeforeEnter:g,onEnter:b,onAfterEnter:x,onEnterCancelled:C,onBeforeLeave:k,onLeave:P,onAfterLeave:W,onLeaveCancelled:E}},m}function Ye(e,t){const{tag:a="div",moveClass:o="transition-transform duration-300",preset:r,show:i=!0,mode:l="default",duration:$,appear:n=!1,css:c=!0,name:u,class:j,style:y,enterFrom:F,enterActive:p,enterTo:g,leaveFrom:b,leaveActive:x,leaveTo:C,onBeforeEnter:k,onEnter:P,onAfterEnter:W,onEnterCancelled:E,onBeforeLeave:T,onLeave:R,onAfterLeave:m,onLeaveCancelled:d}=e;let A;r&&Z[r]?(A={...Z[r]},F&&(A.enterFrom=F),p&&(A.enterActive=p),g&&(A.enterTo=g),b&&(A.leaveFrom=b),x&&(A.leaveActive=x),C&&(A.leaveTo=C)):A={enterFrom:F,enterActive:p,enterTo:g,leaveFrom:b,leaveActive:x,leaveTo:C};const _=u||(r?`transition-group-${r}`:"transition-group"),L=[];for(const z of i?t:[])if(z&&typeof z=="object"&&z.tag==="#anchor"){const D=Array.isArray(z.children)?z.children:[];for(const I of D)if(I&&typeof I=="object"){const V={...I,key:z.key||I.key,props:{...I.props,_anchorKey:z.key}};L.push(V)}else L.push(I)}else L.push(z);const M=(()=>{if(y)return typeof y=="string"?y:Object.entries(y).map(([z,D])=>`${z}: ${D}`).join("; ")})();return{tag:a,children:L,key:_,props:{attrs:{...j?{class:j}:{},...M?{style:M}:{}},_transitionGroup:{name:_,classes:A,moveClass:o,mode:l,duration:$,appear:n,css:c,hooks:{onBeforeEnter:k,onEnter:P,onAfterEnter:W,onEnterCancelled:E,onBeforeLeave:T,onLeave:R,onAfterLeave:m,onLeaveCancelled:d}}}}}function er(e){return{...e}}let Q=null;function Re(){if(!Q){if(typeof CSSStyleSheet>"u")return Q={cssRules:[],replaceSync:()=>{},toString:()=>""},Q;const e=[];Object.values(Z).forEach(o=>{o.enterFrom&&e.push(o.enterFrom),o.enterActive&&e.push(o.enterActive),o.enterTo&&e.push(o.enterTo),o.leaveFrom&&e.push(o.leaveFrom),o.leaveActive&&e.push(o.leaveActive),o.leaveTo&&e.push(o.leaveTo)});const t=`<div class="${e.join(" ")}"></div>`,a=Oe(t);try{Q=new CSSStyleSheet,Q.replaceSync(a)}catch{Q={cssRules:[],replaceSync:()=>{},toString:()=>a||""}}}return Q}function rr(){if(!(typeof window>"u"||typeof CSSStyleSheet>"u"))try{Re()}catch{}}rr();exports.Transition=Je;exports.TransitionGroup=Ye;exports.baseReset=ye;exports.createTransitionPreset=er;exports.css=ze;exports.getBaseResetSheet=De;exports.getProseSheet=Fe;exports.getTransitionStyleSheet=Re;exports.jitCSS=Oe;exports.minifyCSS=be;exports.sanitizeCSS=Ie;exports.transitionPresets=Z;
|
|
302
|
+
//# sourceMappingURL=transitions-DfcqL-X4.cjs.map
|