@barocss/browser 0.10.1 → 0.10.3
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/cdn/barocss.js +1 -1
- package/dist/cdn/barocss.js.map +1 -1
- package/dist/cdn/barocss.umd.cjs +1 -1
- package/dist/cdn/barocss.umd.cjs.map +1 -1
- package/dist/index.cjs +6 -5
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +99 -45
- package/dist/index.umd.js +6 -5
- package/package.json +2 -2
package/dist/cdn/barocss.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function t(t,e,r){return{type:"decl",prop:t,value:e,source:r}}function e(t,e){return{type:"at-root",nodes:t,source:e}}function r(t,e,r,o){return{type:"at-rule",name:t,params:e,nodes:r,source:o}}function o(t,e,r){return{type:"rule",selector:t,nodes:e,source:r}}function a(e,o,a,n){const s=[t("syntax",`"${a||"*"}"`,n),t("inherits","false",n)];return o&&s.push(t("initial-value",o,n)),r("property",e,s,n)}var n=!1;function s(){return n}function i(...t){n&&console.warn(...t)}var l,c=class{constructor(){this.cache=/* @__PURE__ */new Map,this.maxSize=1e3}set(t,e){if(this.cache.size>=this.maxSize){const t=this.cache.keys().next().value;t&&this.cache.delete(t)}this.cache.set(t,e)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,maxSize:this.maxSize,hitRate:this.cache.size/this.maxSize}}},p=new c,u=class{constructor(){this.cache=/* @__PURE__ */new Map,this.maxSize=2e3}set(t,e){if(this.cache.size>=this.maxSize){const t=this.cache.keys().next().value;t&&this.cache.delete(t)}this.cache.set(t,e)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,maxSize:this.maxSize,hitRate:this.cache.size/this.maxSize}}},d=new u,y=class{constructor(){this.cache=/* @__PURE__ */new Map,this.maxSize=1e3}set(t,e){if(this.cache.size>=this.maxSize){const t=this.cache.keys().next().value;t&&this.cache.delete(t)}this.cache.set(t,e)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,maxSize:this.maxSize,hitRate:this.cache.size/this.maxSize}}},h=new y;function g(){p.clear(),d.clear(),h.clear(),l?.(),function(...t){n&&console.log(...t)}("[clearAllCaches] All caches cleared")}var m=/* @__PURE__ */new WeakMap,f=0;function b(t){const e=m.get(t);return e&&e.cacheGeneration!==f&&(v(t),e.cacheGeneration=f),e}function v(t){const e=m.get(t);e&&(e.astCache.clear(),e.parseResultCache.clear(),e.utilityCache.clear(),e.failures.clear())}l=()=>{f+=1};var x=[];function k(t,e){const r=e&&b(e);if(e&&!r)throw new Error("Utility registration requires a context from createContext");(r?.utilities||x).push(t),e?v(e):(d.clear(),h.clear())}function w(t){return t&&b(t)?.utilities||x}var $=[];function C(t,e,r={},o){z({name:t,match:e=>e===t,modifySelector:({...t})=>e.map(t=>({selector:t,source:r.source})),...r},o)}function P(t,e,r,o={},a){z({match:t,modifySelector:e,wrap:r,...o},a)}function z(t,e){const r=e&&b(e);if(e&&!r)throw new Error("Modifier registration requires a context from createContext");(r?.modifiers||$).push(t),e&&v(e)}function A(t){return t&&b(t)?.modifiers||$}var S=/[^A-Za-z0-9_-]/g;function j(t){return t.replace(S,t=>" "===t?"\\x20 ":"."===t?"\\.":"/"===t?"\\/":":"===t?"\\:":"["===t?"\\[":"]"===t?"\\]":"("===t?"\\(":")"===t?"\\)":"%"===t?"\\%":"#"===t?"\\#":","===t?"\\,":"="===t?"\\=":"&"===t?"\\&":"~"===t?"\\~":"*"===t?"\\*":"$"===t?"\\$":"^"===t?"\\^":"+"===t?"\\+":"?"===t?"\\?":"!"===t?"\\!":"@"===t?"\\@":"'"===t?"\\'":'"'===t?'\\"':"`"===t?"\\`":";"===t?"\\;":"<"===t?"\\<":">"===t?"\\>":"{"===t?"\\{":"}"===t?"\\}":"|"===t?"\\|":"\\"===t?"\\\\":"\\"+t)}function R(e,r,a,n){k({name:e,match:t=>t===e,handler:e=>r.flatMap(r=>{if(r.type)return[r];if("function"==typeof r)return[r(e)];const[a,n]=r;return"string"==typeof n?[t(a,n)]:Array.isArray(n)?[o(a,n.map(([e,r])=>t(e,r)))]:[]}),description:a?.description,category:a?.category,priority:a?.priority},n)}function E(t,e,r){if("DEFAULT"===r||!/^[a-zA-Z][\w-]*$/.test(r)||"function"!=typeof t?.theme)return;const o=t.theme(e);return o&&"object"==typeof o&&Object.prototype.hasOwnProperty.call(o,r)?o[r]??void 0:void 0}function T(t,e,r){const o=E(t,e,r);return"string"==typeof o?o:null}function N(t,e,r,o){return void 0===E(t,e,r)?null:`var(--${o}-${r})`}function V(e,r){k({name:e.name,match:t=>t.startsWith(e.name+"-"),handler:(r,o,a,n)=>{let s=r;const i=a,l={opacity:a.opacity};if(e.supportsOpacity&&!a.arbitrary&&!a.customProperty&&r.includes("/")){const t=r.split("/");t.length>=2&&(l.opacity=t.pop(),s=t.join("/"))}if(e.supportsArbitrary&&i.arbitrary){const r=O(B(s.replace(/_/g," ")));if(e.handle){const t=e.handle(r,o,a,l);if(t)return t}return e.prop?[t(e.prop,r)]:[]}if(e.supportsCustomProperty&&i.customProperty){if(e.handleCustomProperty)return e.handleCustomProperty(s,o,a,l);const r=`var(${s})`;if(e.handle){const t=e.handle(r,o,a,l);if(t)return t}return e.prop?[t(e.prop,r)]:[]}let c;e.themeKey&&o.theme&&(c=F(o.theme(e.themeKey,s)));let p=void 0!==c?e.themeKey:void 0;if(!c&&e.themeKeys&&o.theme)for(const t of e.themeKeys)if(c=F(o.theme(t,s)),void 0!==c){p=t;break}if(void 0!==c){if(l.themeNamespace=p,l.themeKey=s,"colors"!==p&&(e.themeKeys??[e.themeKey]).includes("colors")||(l.realThemeValue=s),s=c,e.prop)return[t(e.prop,s)];if(e.handle){const t=e.handle(s,o,a,l);if(t)return t}return[]}e.supportsFraction&&/^-?\d+\/\d+$/.test(r)&&(s=r);const u=e.spacingKeys?function(t,e,r){if("px"===e||!/^[a-zA-Z][\w-]*$/.test(e)||null==t.theme("spacing",e))return null;const o=`var(--spacing-${e})`;return r?`calc(${o} * -1)`:o}(o,String(s).replace(/^-/,""),!!i.negative):null;if(i.negative&&e.supportsNegative&&e.handleNegativeBareValue){const t=e.handleNegativeBareValue({value:String(s).replace(/^-/,""),ctx:o,token:a,extra:l})??u;if(null==t)return[];s=t}else if(e.handleBareValue){const t=e.handleBareValue({value:s,ctx:o,token:a,extra:l})??u;if(null==t)return[];s=t}else if(u)s=u;else if(!/^-?(\d|\.\d)/.test(String(s)))return[];if(e.handle){const t=e.handle(s,o,a,l);if(t)return t}return e.prop?[t(e.prop,s)]:[]},description:e.description,category:e.category,priority:e.priority},r)}var W=/* @__PURE__ */new Set(["calc","min","max","clamp"]);function B(t){return t.replace(/--spacing\(\s*([^()]+?)\s*\)/g,"calc(var(--spacing) * $1)")}var M={name:"[arbitrary-property]",match:()=>!1,handler:(e,r,o)=>{const a=o.property;return a&&e?[t(a,O(B(e.replace(/_/g," "))))]:[]}};function O(t){if(!/(calc|min|max|clamp)\(/.test(t))return t;const e=[];let r="";for(let o=0;o<t.length;o++){const a=t[o];if("("===a){const t=(/([a-z-]*)$/i.exec(r)?.[1]??"").toLowerCase(),o=e.length>0&&e[e.length-1];e.push(W.has(t)||""===t&&o),r+=a;continue}if(")"!==a)if(e.length>0&&e[e.length-1])if(","!==a){if("+-*/".includes(a)){const e=r.trimEnd(),n=e[e.length-1]??"",s=/[\w%)]/.test(n),i=("+"===a||"-"===a)&&/\de$/i.test(e)&&e.length===r.length&&/\d/.test(t[o+1]??"");if(s&&!i){for(r=e+" "+a+" ";" "===t[o+1];)o++;continue}}r+=a}else for(r=r.trimEnd()+", ";" "===t[o+1];)o++;else r+=a;else e.pop(),r+=a}return r}function F(t){return"string"==typeof t?t:"number"==typeof t&&Number.isFinite(t)?String(t):void 0}function K(t,e){const r=e&&b(e)?.utilityCache||h;if(r.has(t))return r.get(t);const o=w(e),a=A(e),n=o.filter(e=>{const r=e.name;return t.startsWith(r+"-")||t===r||t.startsWith(r)}).some(e=>e.match(t)),s=a.filter(e=>{const r=e.name||e.match.toString().split("(")[0];return t.startsWith(r+":")||t===r}).some(e=>e.match(t,{})),i=n&&!s;return r.set(t,i),i}function D(t,e){const r=e&&b(e)?.parseResultCache||d;if(r.has(t))return r.get(t);let o=t;const a=e?function(t){const e=t.config("prefix");return"string"==typeof e&&/^[a-z]+$/.test(e)?e:""}(e):"";if(a){if(!t.startsWith(a+":")){const e={modifiers:[],utility:null};return r.set(t,e),e}o=t.slice(a.length+1)}let n=!1;o.startsWith("!")?(n=!0,o=o.slice(1)):o.length>1&&o.endsWith("!")&&(n=!0,o=o.slice(0,-1));const s=function(t,e){const r=[];let o=null;if(0===t.length)return{modifiers:r,utility:null};if(t.length>1){const o=K(t[0].value,e)?0:t.length-1;if(t.some((t,e)=>!(e===o||function(t){if(I(t))return!1;const e=L.exec(t);return e?U(e[1],!0):U(t)}(t.value)&&function(t){let e="",r=0;for(let o=0;o<t.length;o++){const a=t[o];if("\\"!==a)if(e)a===e&&(e="");else if('"'!==a&&"'"!==a){if("["===a){if("]"===t[o+1])return!1;r++}else if("]"===a&&(r--,0===r&&t.startsWith("[")&&o!==t.length-1))return!1}else e=a;else o++}return!0}(t.value))))return{modifiers:r,utility:null}}if(!q((t.length>1&&!K(t[0].value,e)?t[t.length-1]:t[0]).value))return{modifiers:r,utility:null};if(1===t.length)o=G(t[0].value,e);else if(2===t.length){const a=t[0],n=t[1];if(K(a.value,e)){o=G(a.value,e);const t=H(n.value);t&&r.push(t)}else{const t=H(a.value);t&&r.push(t),o=G(n.value,e)}}else if(K(t[0].value,e)){o=G(t[0].value,e);for(let e=1;e<t.length;e++){const o=H(t[e].value);o&&r.push(o)}}else{for(let e=0;e<t.length-1;e++){const o=H(t[e].value);o&&r.push(o)}o=G(t[t.length-1].value,e)}return{modifiers:r,utility:o}}(function(t){const e=[];let r="",o=0,a=0,n=0;for(let s=0;s<t.length;s++){const i=t[s];"["===i&&a++,"]"===i&&a--,"("===i&&n++,")"===i&&n--,":"===i&&0===a&&0===n?(r&&e.push({value:r,start:o,end:s}),r="",o=s+1):r+=i}return r&&e.push({value:r,start:o,end:t.length}),e}(o),e);return s.utility&&(s.utility.important=n),r.set(t,s),s}var L=/^-?(?:(?:group|peer)-)?(?:has|not)-\[(.*)\](?:\/[\w-]+)?$/;function I(t){return t.includes("/*")||t.includes("*/")}function Z(t){for(let e=0;e<t.length-1;e++){const r=t[e];if("\\"===r){e++;continue}const o=t[e+1];if("/"===r&&"*"===o||"*"===r&&"/"===o)return!0}return!1}function _(t){return t.includes("</")}function q(t){return!I(t)&&U(t,!0)}function U(t,e=!1){const r=[];let o="",a=0;for(let n=0;n<t.length;n++){const s=t[n];if("\\"!==s)if(o)s===o&&(o="");else switch(s){case'"':case"'":o=s;break;case"(":r.push(")"),a++;break;case"[":r.push("]");break;case")":case"]":if(r.pop()!==s)return!1;")"===s&&a--;break;case"{":case"}":case";":return!1;case",":if(0===a&&!e)return!1}else n++}return 0===r.length&&!o}function H(t){let e=!1,r=t;return r.startsWith("-")&&(e=!0,r=r.slice(1)),r.startsWith("[")&&r.endsWith("]")?{type:r,negative:e,arbitrary:!0}:{type:r,negative:e}}function Y(t,e){return e.name.length-t.name.length}function G(t,e){let r="",o="",a=!1,n=!1,s=!1,i="",l="",c=0;const p=/^\[(--[a-zA-Z_][a-zA-Z0-9_-]*|-?[a-z][a-z-]*):(.+)\]$/.exec(t);if(p)return!q(p[2])||function(t){let e="";for(let r=0;r<t.length;r++){const o=t[r];if("\\"!==o){if(e)o===e&&(e="");else if('"'===o||"'"===o)e=o;else if("@"===o)return!0}else r++}return!1}(p[2])?{prefix:"",value:""}:{prefix:"",value:p[2],arbitrary:!0,property:p[1]};if(t.startsWith("-")&&(s=!0),t.includes("-[")){[r,o]=t.split("-[");const e=o.lastIndexOf("]");-1!==e&&e<o.length-1&&"/"===o[e+1]?(i=o.slice(e+2),o=o.slice(0,e)):o=o.replace(/]$/,""),a=!0}else if(t.includes("-("))[r,o]=t.split("-("),o=o.replace(/\)$/,""),n=!0;else{const a=[...w(e)].sort(Y);let n=a.find(e=>t===e.name);if(n)r=n.name,o="",s=t.startsWith("-"),l=n.category,c=n.priority;else if(t.startsWith("-")&&(s=!0,t=t.slice(1)),n=a.find(e=>t.startsWith(e.name+"-")),n)r=n.name,o=t.slice(n.name.length+1),l=n.category,c=n.priority;else{const e=t.split("-");r=e[0],o=e.slice(1).join("-")}}return{prefix:r,value:o,arbitrary:!!a,customProperty:!!n,negative:!!s,opacity:i,category:l,priority:c}}var X=t=>{const e=String(t??"");return!Z(e)&&!_(e)&&function(t){const e=[];let r="";for(let o=0;o<t.length;o++){const a=t[o];if("\\"!==a)if(r)a===r&&(r="");else switch(a){case'"':case"'":r=a;break;case"(":e.push(")");break;case"[":e.push("]");break;case"{":e.push("}");break;case")":case"]":case"}":if(e.pop()!==a)return!1}else o++}return 0===e.length&&!r}(e)&&!/url\s*\(/i.test(e)},J=t=>{if("at-rule"!==t.type)return[];if("property"!==t.name)return t.nodes;const e=/* @__PURE__ */new Set;return t.nodes.filter(t=>"decl"!==t.type||!e.has(t.prop)&&!!e.add(t.prop))},Q=(t,e)=>q(String(t))&&q(String(e??""))&&!_(String(t))&&!_(String(e??""));function tt(t,e,r,o=""){const a=r?.minify,n=o,s=o+" ",l=r?.important?" !important":"";if(!t||0===t.length)return i("[astToCss] Empty AST received:",{ast:t,baseSelector:e,minify:a}),"";const c=[];if(Array.isArray(t)){const e=/* @__PURE__ */new Map;for(let r=t.length-1;r>=0;r--){const o=t[r];if("decl"===o.type){const t=o.prop;if(e.has(t))continue;e.set(t,!0)}c.unshift(o)}}const p=c.map(t=>{switch(t.type){case"decl":{const e=t.value;return Q(t.prop,e)?t.prop.startsWith("--")?a?`${t.prop}: ${e}${l};`:`${n}${t.prop}: ${e}${l};`:`${a?"":n}${t.prop}: ${e}${l};`:""}case"rule":{let o=t.selector;if(e){const t="."+function(t){if("-"===t)return"\\-";const e=/^-?[0-9]/.exec(t);if(e){const r=e[0].length-1;return t.slice(0,r)+"\\"+t.charCodeAt(r).toString(16)+" "+j(t.slice(r+1))}return j(t)}(e);o&&o.includes("&")?o=o.replace(/&/g,t):o.startsWith(t)||(o=o.split(",").map(e=>(e=e.trim()).startsWith(":")||e.startsWith("::")?t+e:t+(e.startsWith(".")?"":" ")+e).join(", "))}return X(o)?a?`${n}${o}{${tt(t.nodes,e,r,s)}}`:`${n}${o} {\n${tt(t.nodes,e,r,s)}${n}}`:""}case"style-rule":return X(t.selector)?a?`${n}${t.selector} {${tt(t.nodes,e,r,s)}}`:`${n}${t.selector} {\n${tt(t.nodes,e,r,s)}${n}}`:"";case"at-rule":return X(t.name)&&X(t.params)?a?`${n}@${t.name} ${t.params}{${tt(t.nodes,e,r,s)}}`:`${n}@${t.name} ${t.params} {\n${tt(t.nodes,e,r,s)}${n}}`:"";case"comment":return a?"":`${n}/* ${t.text} */`;case"raw":return`${n}${t.value}`;default:return i("[astToCss] Unknown node type:",t),""}}).filter(Boolean).join(a?"":"\n"),u=p+(a?"":"\n");return u&&""!==u.trim()||i("[astToCss] Empty result generated:",{ast:t,baseSelector:e,minify:a,result:p,finalResult:u,dedupedAst:c}),u}function et(t,e){const r=!0===e?.minify;return t.map(t=>{const e=[];if("decl"===t.type)Q(t.prop,t.value)&&e.push(r?`${t.prop}:${t.value};`:`${t.prop}: ${t.value};`);else if("at-rule"===t.type&&X(t.name)&&X(t.params))if(r){const r=J(t).filter(t=>"decl"===t.type&&Q(t.prop,t.value)).map(t=>"decl"===t.type?`${t.prop}:${t.value};`:"").join("");e.push(`@${t.name} ${t.params}{${r}}`)}else e.push(`@${t.name} ${t.params} {\n${J(t).map(t=>{if("decl"===t.type&&Q(t.prop,t.value))return`\t${t.prop}: ${t.value};`}).join("\n")}\n}`);return e.join(r?"":"\n")}).join(r?"":"\n")}function rt(t){return t.replace(".","\\.")}function ot(t){if(!t)return{};const e={};return function t(r,o=[]){for(const a in r){const n=r[a];if("object"==typeof n&&null!==n)t(n,[...o,a]);else{const t="--color-"+[...o,a].join("-");e[t]=n}}}(t),e}function at(t){if(!t)return{};const e={};for(const r in t)e[`--shadow-${r}`]=t[r];return e}function nt(t){if(!Array.isArray(t))return;const e=t[1];if("string"==typeof e||"number"==typeof e)return String(e);const r=e?.lineHeight;return null==r?void 0:String(r)}function st(t){if(!t)return{};const e={};for(const r in t){const o=t[r];if(Array.isArray(o)){e[`--text-${r}`]=o[0];const t=nt(o);t&&(e[`--text-${r}--line-height`]=t)}else e[`--text-${r}`]=o}return e}function it(t){if(!t)return{};const e={};for(const r in t)e[`--font-weight-${r}`]=t[r];return e}function lt(t){if(!t)return{};const e={};for(const r in t){const o=t[r];Array.isArray(o)?e[`--font-${r}`]=o.join(", "):e[`--font-${r}`]=o}return e}function ct(t){if(!t)return{};const e={};for(const r in t)e[`--letter-spacing-${r}`]=t[r];return e}function pt(t){if(!t)return{};const e={};for(const r in t)e[`--spacing-${rt(r)}`]=t[r];return e}function ut(t){if(!t)return{};const e={};for(const r in t)e[`--radius-${rt(r)}`]=t[r];return e}function dt(t){if(!t)return{};const e={};for(const r in t)e[`--z-${rt(r)}`]=String(t[r]);return e}function yt(t){if(!t)return{};const e={};for(const r in t)e[`--opacity-${rt(r)}`]=String(t[r]);return e}function ht(t){if(!t)return{};const e={};for(const r in t)e[`--animate-${rt(r)}`]=t[r];return e}var gt=/\/\*|\*\/|[{};]|<\//;function mt(t,e){if(!t.includes("animation"))return[];const r=e.theme("keyframes");if(!r||"object"!=typeof r)return[];const o=/* @__PURE__ */new Set;for(const a of t.matchAll(/(?:^|[\s;{])animation(?:-name)?\s*:\s*([^;}]+)/g)){const t=a[1].replace(/var\(--animate-([\w-]+)\)/g,(t,r)=>{const o=e.theme("animations",r)??e.theme("animation",r);return"string"==typeof o?o:t});for(const e of t.split(/[\s,()]+/))e&&Object.prototype.hasOwnProperty.call(r,e)&&o.add(e)}return[...o].map(t=>function(t,e){if(!t||gt.test(t)||/\s/.test(t)||!e||"object"!=typeof e)return"";let r="";for(const[o,a]of Object.entries(e)){if(gt.test(o)||!a||"object"!=typeof a)return"";let t="";for(const[e,r]of Object.entries(a)){const o=String(r);if(gt.test(e)||gt.test(o))return"";t+=` ${e}: ${o};\n`}r+=` ${o} {\n${t} }\n`}return`@keyframes ${t} {\n${r}}`}(t,r[t])).filter(Boolean)}function ft(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-timing-function"]=t[r]:(e[`--transition-timing-function-${rt(r)}`]=t[r],"linear"!==r&&(e[`--ease-${rt(r)}`]=t[r]));return e}function bt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-duration"]=t[r]:e[`--transition-duration-${rt(r)}`]=t[r];return e}function vt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-delay"]=t[r]:e[`--transition-delay-${rt(r)}`]=t[r];return e}function xt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-blur"]=t[r]:e[`--blur-${rt(r)}`]=t[r];return e}function kt(t){const e={};for(const r in t)e[`--container-${rt(r)}`]=t[r];return e}var wt=/^--(?:[\w-]|\\\.)+$/;function $t(t,e=""){return":root,:host {\n"+Object.entries(t).filter(([t,e])=>function(t,e){if("string"!=typeof t||!wt.test(t)||_(t))return!1;if("string"!=typeof e&&"number"!=typeof e)return!1;const r=String(e);return""!==r.trim()&&q(r)&&!Z(r)&&!_(r)}(t,e)&&!function(t,e){if("string"!=typeof e)return!1;const r=/^var\(\s*(--[\w-]+)\s*(?:,[\s\S]*)?\)$/.exec(e.trim());return!!r&&r[1]===t.trim()}(t,e)).map(([t,e])=>` ${t}: ${e};`).join("\n")+"\n}\n"+e+"\n"}var Ct=/--baro-/g,Pt=/* @__PURE__ */new Set(["prop","value","params","selector","nodes","items"]);var zt=/* @__PURE__ */new Set;function At(t=[],e=[]){let r=[];for(const o of t){const t={...o};delete t.nodes;const a=o.nodes;"decl"===o.type?r.push([...e,t]):a&&a.length>0&&(r=r.concat(At(a,[...e,t])))}return r}function St(t){return"at-root"===t?-1:"at-rule"===t?0:"style-rule"===t?10:"rule"===t?20:30}var jt={media:0,supports:1,container:2,responsive:10,group:20,peer:30,dark:40,universal:50,data:60,aria:70,attribute:80,pseudo:90,base:100,starting:110};function Rt(t){return jt[t.source||"base"]||100}function Et(t){if(!t||0===t.length)return[];const e=t.slice(0,-1),r=t[t.length-1],o=[...e].sort((t,e)=>St(t.type)-St(e.type));if(0===o.length)"decl"===r.type&&o.push({type:"rule",selector:"&",source:"base"});else{const t=o[o.length-1];("at-rule"==t.type&&"property"!==t.name||"style-rule"==t.type||"rule"===t.type&&!1===t.selector?.includes("&"))&&o.push({type:"rule",selector:"&",source:"base"})}const a=[];for(const c of o)if(0===a.length)a.push(c);else{const t=a[a.length-1];c.type===t.type&&("at-rule"===c.type&&"at-rule"===t.type&&c.name===t.name&&c.params===t.params||("rule"===c.type||"style-rule"===c.type)&&c.selector===t.selector)||a.push(c)}const n=[],s=[];for(const c of a)"rule"===c.type?n.push(c):s.push(c);let i={...r};const l=[...n].sort((t,e)=>Rt(t)-Rt(e));if(l.length>0){const t=l.reduce((t,e)=>{const r=e.source||"base";return t[r]||(t[r]=[]),t[r].push(e),t},{}),e=Object.entries(t).sort(([t],[e])=>(jt[t]??999)-(jt[e]??999)).map(([t,e])=>((t,e)=>"pseudo"===t?e.reduce((t,e)=>{const r=e.selector;return""===t?r:r?.includes("&")?r.replace(/&/,t):r+" "+t},""):e.reduceRight((t,e)=>{const r=e.selector;return""===t?r:r?.includes("&")?r.replace(/&/,t):r+" "+t},""))(t,e));let r="";for(let o=0;o<e.length;o++){const t=e[o];r=""===r?t:t.includes("&")?t.replace(/&/,r):t+" "+r}i={type:"rule",selector:r,nodes:[i]}}for(let c=s.length-1;c>=0;c--)i={...s[c],nodes:[i]};return[i]}function Tt(t,e,r=[]){for(let o=0;o<t.length;o++){const e=t[o];"at-root"===e.type?(r.push(e),delete t[o]):"rule"!==e.type&&"style-rule"!==e.type&&"at-rule"!==e.type||Tt(e.nodes??[],e,r)}e&&(e.nodes=t.filter(Boolean))}function Nt(t,e){const r=b(e),o=r?.failures||zt,a=r?.astCache||p;if(o.has(t))return[];if(a.has(t))return a.get(t);const{modifiers:n,utility:s}=D(t,e);if(!s)return i(`[BAROCSS] Invalid class name format: "${t}"`),o.add(t),[];const l=s.property?[M]:w(e).filter(t=>{const e=s.value?`${s.prefix}-${s.value}`:s.prefix;return t.match(e)});if(0===l.length){return i(`[BAROCSS] Unknown utility class: "${s.value?`${s.prefix}-${s.value}`:s.prefix}" in "${t}"`),o.add(t),[]}let c=s.value;s.negative&&c&&(c="-"+c);let u=[];for(const i of l)if(u=i.handler(c,e,s,i)||[],u.length>0)break;const d=[];for(let p=0;p<n.length;p++){const r=n[p],a=A(e).find(t=>t.match(r.type,e));if(!a)return i(`[BAROCSS] Unknown variant: "${r.type}" in "${t}"`),o.add(t),[];if(a.astHandler&&(u=a.astHandler(u,r,e,n,p)),a.wrap){const t=a.wrap(r,e);d.push({type:"wrap",items:t})}if(a.modifySelector){const s=a.modifySelector({selector:"&",fullClassName:t,mod:r,context:e,variantChain:n,index:p});if(null==s)return i(`[BAROCSS] Unknown variant: "${r.type}" in "${t}"`),o.add(t),[];if(a.wrap&&("&"===s||"object"==typeof s&&!Array.isArray(s)&&"&"===s.selector||Array.isArray(s)&&1===s.length&&"&"===s[0].selector))continue;if("string"==typeof s&&s.includes("&"))d.push({type:"rule",selector:s});else if("object"==typeof s&&!Array.isArray(s)&&s.selector){const t=s.wrappingType||"rule";d.push({type:t,selector:s.selector,flatten:s.flatten,source:s.source})}else Array.isArray(s)&&d.push({type:"wrap",items:s.map(t=>({type:t.wrappingType||"rule",selector:t.selector,source:t.source,flatten:t.flatten}))})}}for(let i=d.length-1;i>=0;i--){const t=d[i];"wrap"===t.type?u=t.items.map(t=>"rule"===t.type||"style-rule"===t.type||"at-rule"===t.type||"at-root"===t.type?{...t,nodes:[...t.nodes||[],...u]}:t):"style-rule"===t.type?u=[{type:"style-rule",selector:t.selector,source:t.source,nodes:Array.isArray(u)?u:[u]}]:"at-rule"===t.type?u=[{type:"at-rule",name:t.name||"media",params:t.params,source:t.source,nodes:Array.isArray(u)?u:[u]}]:"rule"===t.type&&(u=[{type:"rule",selector:t.selector,source:t.source,nodes:Array.isArray(u)?u:[u]}])}const y=[];return Tt(u,void 0,y),u=function(t,e){const r=e?.config("cssVarPrefix");if("string"!=typeof r||!r.trim())return t;const o=function(t){let e=t.trim();return e.startsWith("--")||(e=`--${e}`),e.endsWith("-")||(e=`${e}-`),e}(r);if("--baro-"===o)return t;const a=t=>{if("string"==typeof t)return t.includes("--baro-")?t.replace(Ct,o):t;if(Array.isArray(t))return t.map(a);if(!t||"object"!=typeof t)return t;const e={};for(const[r,o]of Object.entries(t))e[r]=Pt.has(r)?a(o):o;return e};return a(t)}([...y,...u].filter(Boolean),e),a.set(t,u),u}var Vt=/[ \t\n\f\r]+/;function Wt(t,e,r){const o=/* @__PURE__ */new Set;return t.split(Vt).filter(t=>{if(!t)return!1;if(r?.dedup){if(o.has(t))return!1;o.add(t)}return!0}).map(t=>{const o=Nt(t,e),a=(b(e)?.parseResultCache||d).get(t),n={minify:r?.minify,important:a?.utility?.important??!1},s=function(t){return function(t){const e=t.map(t=>{const e=[];let r=t[0];for(;r&&(e.push({...r,nodes:void 0}),r.nodes&&1===r?.nodes?.length);)r=r.nodes?.[0];return e});function r(t,e=0){if(0===t.length)return[];if(t[0].length===e+1)return t.map(t=>t[e]);const o=/* @__PURE__ */new Map;for(const r of t){const t=r[e];let a=t.type;"at-rule"===t.type?a+=":"+t.name+":"+t.params:"rule"===t.type||"style-rule"===t.type?a+=":"+t.selector:a+=":"+JSON.stringify(t),o.has(a)||o.set(a,[]),o.get(a).push(r)}const a=[];for(const[,n]of o.entries()){const t=n[0][e],o=r(n,e+1);a.push(o.length?{...t,nodes:o}:{...t})}return a}return r(e)}(At(t).map(Et))}(o),i=s.filter(t=>"at-root"===t.type&&!t.source).map(t=>t.nodes||[]).flat(),l=s.filter(t=>"at-root"!==t.type||"at-root"===t.type&&t.source),c=[];for(const e of l)if("at-root"===e.type)e.nodes.forEach(t=>{const e=tt([t],"",n);c.push(e)});else{const r=tt([e],t,n);c.push(r)}const p=[];for(const e of i){const t=et([e]);p.push(t)}return p.push(...mt(c.join("\n"),e)),{cls:t,ast:l,css:c.join(n.minify?"":"\n"),cssList:c,rootCss:p.join(n.minify?"":"\n"),rootCssList:p}})}var Bt=class{constructor(t){this.processedClasses=/* @__PURE__ */new Set,this.batchSize=50,this.debounceMs=16,this.pendingClasses=/* @__PURE__ */new Set,this.batchTimer=null,this.ctx=t}processClass(t){if(this.processedClasses.has(t))return null;try{if(!D(t,this.ctx).utility)return null;const e=Nt(t,this.ctx);if(0===e.length)return i("[IncrementalParser] ast is empty",t),null;const r=Wt(t,this.ctx,{dedup:!1});if(0===r.length)return null;const o=r[0];return o.css?(this.processedClasses.add(t),{cls:t,ast:e,css:o.css,cssList:o.cssList,rootCss:o.rootCss,rootCssList:o.rootCssList}):null}catch(e){return i("[IncrementalParser] Failed to process class:",t,e),null}}processClasses(t){const e=[],r=t.filter(t=>!this.processedClasses.has(t));if(0===r.length)return e;for(let o=0;o<r.length;o+=this.batchSize){const t=r.slice(o,o+this.batchSize);for(const r of t){const t=this.processClass(r);t&&e.push(t)}}return e}addToPending(t){t.forEach(t=>this.pendingClasses.add(t)),this.scheduleBatchProcessing()}scheduleBatchProcessing(){this.batchTimer&&clearTimeout(this.batchTimer),"undefined"!=typeof window?this.batchTimer=window.setTimeout(()=>{this.processPendingClasses()},this.debounceMs):this.processPendingClasses()}processPendingClasses(){if(0===this.pendingClasses.size)return;const t=Array.from(this.pendingClasses);this.pendingClasses.clear(),this.applyClasses(t)}applyClasses(t){this.processClasses(t),t.forEach(t=>{this.markProcessed(t)})}getStats(){return{processedClasses:this.processedClasses.size,pendingClasses:this.pendingClasses.size,cacheStats:{ast:(b(this.ctx)?.astCache||p).getStats(),css:{}}}}clearProcessed(){this.processedClasses.clear(),this.pendingClasses.clear(),this.batchTimer&&"undefined"!=typeof window&&(clearTimeout(this.batchTimer),this.batchTimer=null)}isProcessed(t){return this.processedClasses.has(t)}markProcessed(t){this.processedClasses.add(t)}unmarkProcessed(t){this.processedClasses.delete(t)}processClassesSync(t){this.applyClasses(t)}getProcessedClasses(){return Array.from(this.processedClasses)}},Mt={spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},Ot={colors:{inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 none)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 none)",100:"oklch(97% 0 none)",200:"oklch(92.2% 0 none)",300:"oklch(87% 0 none)",400:"oklch(70.8% 0 none)",500:"oklch(55.6% 0 none)",600:"oklch(43.9% 0 none)",700:"oklch(37.1% 0 none)",800:"oklch(26.9% 0 none)",900:"oklch(20.5% 0 none)",950:"oklch(14.5% 0 none)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},mauve:{50:"oklch(98.5% 0 none)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"}},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem",112:"28rem",128:"32rem"},borderRadius:{none:"0px",xs:"0.125rem",sm:"0.25rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","4xl":"2rem",full:"9999px"},breakpoints:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},container:{"3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},fontSize:{xs:["0.75rem","calc(1 / 0.75)"],sm:["0.875rem","calc(1.25 / 0.875)"],base:["1rem","calc(1.5 / 1)"],lg:["1.125rem","calc(1.75 / 1.125)"],xl:["1.25rem","calc(1.75 / 1.25)"],"2xl":["1.5rem","calc(2 / 1.5)"],"3xl":["1.875rem","calc(2.25 / 1.875)"],"4xl":["2.25rem","calc(2.5 / 2.25)"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Noto Sans","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem"},boxShadow:{"2xs":"0 1px rgb(0 0 0 / 0.05)",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animations:Mt,keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:"0.5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"none","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}}},animationVars:{"--animate-spin":Mt.spin,"--animate-ping":Mt.ping,"--animate-pulse":Mt.pulse,"--animate-bounce":Mt.bounce},blur:{DEFAULT:"8px",xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},textShadow:{"2xs":"0px 1px 0px rgb(0 0 0 / 0.15)",xs:"0px 1px 1px rgb(0 0 0 / 0.2)",sm:"0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075), 0px 2px 2px rgb(0 0 0 / 0.075)",md:"0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1)",lg:"0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1)"},dropShadow:{xs:"0 1px 1px rgb(0 0 0 / 0.05)",sm:"0 1px 2px rgb(0 0 0 / 0.15)",md:"0 3px 3px rgb(0 0 0 / 0.12)",lg:"0 4px 4px rgb(0 0 0 / 0.15)",xl:"0 9px 7px rgb(0 0 0 / 0.1)","2xl":"0 25px 25px rgb(0 0 0 / 0.15)"},aspect:{video:"16 / 9"}},Ft=/^[A-Za-z_][A-Za-z0-9_-]*$/,Kt=/^(--[A-Za-z0-9_-]+|-?[A-Za-z][A-Za-z0-9-]*)$/;function Dt(t,e){if("string"!=typeof t||!Ft.test(t))return null;if(!e||"object"!=typeof e||Array.isArray(e))return null;const r=[];for(const[o,a]of Object.entries(e)){if("string"!=typeof a&&"number"!=typeof a)return null;const t=String(a).trim();if(!Kt.test(o)||!t||!q(t)||Z(t))return null;r.push([o,t])}return r.length?r:null}var Lt="\n/* BaroCSS Preflight - Full (Tailwind 4.3.3) */\n*,\n::after,\n::before,\n::backdrop,\n::file-selector-button {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0 solid;\n}\n\nhtml,\n:host {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n font-family: var(--default-font-family, var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'));\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n -webkit-tap-highlight-color: transparent;\n}\n\nhr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n}\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\na {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\ncode,\nkbd,\nsamp,\npre {\n font-family: var(--default-mono-font-family, var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace));\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\ntable {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n}\n\n:-moz-focusring:where(:not(iframe)) {\n outline: auto;\n}\n\nprogress {\n vertical-align: baseline;\n}\n\nsummary {\n display: list-item;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n}\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block;\n vertical-align: middle;\n}\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* form-control reset */\nbutton,\ninput,\nselect,\noptgroup,\ntextarea,\n::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n}\n\n:where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n}\n\n:where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n}\n\n::file-selector-button {\n margin-inline-end: 4px;\n}\n\n::placeholder {\n opacity: 1;\n}\n\n@supports (not (-webkit-appearance: -apple-pay-button)) or\n (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n}\n\ntextarea {\n resize: vertical;\n}\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n::-webkit-date-and-time-value {\n min-height: 1lh;\n text-align: inherit;\n}\n\n::-webkit-datetime-edit {\n display: inline-flex;\n}\n\n::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n}\n\n::-webkit-datetime-edit,\n::-webkit-datetime-edit-year-field,\n::-webkit-datetime-edit-month-field,\n::-webkit-datetime-edit-day-field,\n::-webkit-datetime-edit-hour-field,\n::-webkit-datetime-edit-minute-field,\n::-webkit-datetime-edit-second-field,\n::-webkit-datetime-edit-millisecond-field,\n::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n}\n\n::-webkit-calendar-picker-indicator {\n line-height: 1;\n}\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\nbutton,\ninput:where([type='button'], [type='reset'], [type='submit']),\n::file-selector-button {\n appearance: button;\n}\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n[hidden]:where(:not([hidden='until-found'])) {\n display: none !important;\n}\n";function It(t,e){const r={},o=/* @__PURE__ */new Set([...Object.keys(t||{}),...Object.keys(e||{})]);for(const a of o){const o=String(a),n=t&&"object"==typeof t?t[o]:void 0,s=e&&"object"==typeof e?e[o]:void 0;s&&"object"==typeof s&&!Array.isArray(s)?r[o]=It("object"==typeof n&&null!==n?n:{},s):r[o]=void 0!==s?s:n}return r}var Zt=/* @__PURE__ */new WeakMap;function _t(t,...e){const r=(...e)=>_t(t,...e);let o=[];if(1===e.length&&"string"==typeof e[0]&&e[0].includes("."))o=e[0].split(".");else if("colors"===e[0]&&"string"==typeof e[1]&&e[1].includes("-")){const t=e[1];t.match(/^[a-zA-Z]+-\d+$/)?(o=t.split("-"),o=[e[0],...o]):o=e}else o=e;if(0===o.length)return;let a=Zt.get(t);a||(a=/* @__PURE__ */new Set,Zt.set(t,a));const n=o.join(".");if(!a.has(n)){a.add(n);try{let e=t[o[0]];"function"==typeof e&&(e=e(r));for(let t=1;t<o.length;t++){if(null==e)return;e=e[o[t]]}if("function"==typeof e)return;return e}finally{a.delete(n)}}}function qt(t){const e=function(t){return{...ot(t.colors),...at(t.boxShadow),...st(t.fontSize),...it(t.fontWeight),...lt(t.fontFamily),...ct(t.letterSpacing),"--spacing":t.spacing[1],...pt(t.spacing),...kt(t.container),...ut(t.borderRadius),...Object.fromEntries(Object.entries(t.borderWidth??{}).filter(([t])=>"DEFAULT"!==t).map(([t,e])=>[`--border-width-${rt(t)}`,String(e)])),...dt(t.zIndex),...yt(t.opacity),...ht({...t.animations,...t.animation}),...ft(t.transitionTimingFunction),...bt(t.transitionDuration),...vt(t.transitionDelay),...xt(t.blur),...Object.fromEntries(Object.entries(t.textShadow??{}).map(([t,e])=>[`--text-shadow-${rt(t)}`,e])),...Object.fromEntries(Object.entries(t.dropShadow??{}).map(([t,e])=>[`--drop-shadow-${rt(t)}`,e])),...Object.fromEntries(Object.entries(t.aspect??{}).map(([t,e])=>[`--aspect-${rt(t)}`,e]))}}(t);return $t(e)}function Ut(e){var r;void 0!==e.debug&&(r=!!e.debug,n=r);const o={presets:[{theme:Ot},...e.presets||[]],...e},a=function(t){let e={};if(t.presets)for(const r of t.presets)r.theme&&(e=It(e,r.theme));if(t.theme){const{extend:r,...o}=t.theme;e=It(e,o),r&&(e=It(e,r))}return e}(o),s={hasPreset:(t,e)=>function(t,e,r){return t[e]?.includes?.(r)}(a,t,e),theme:(...t)=>_t(a,...t),config:(...t)=>function(t,...e){let r=[];return r=1===e.length&&"string"==typeof e[0]&&e[0].includes(".")?e[0].split("."):e,r.reduce((t,e)=>t?t[e]:void 0,t)}(o,...t),themeToCssVars:()=>qt(a),extendTheme:(t,e)=>{if("function"==typeof e){const r=e(s.theme);if(r&&"object"==typeof r){const e=a[t]||{};a[t]={...e,...r}}}else if("object"==typeof e&&null!==e&&!Array.isArray(e)){const r=a[t]||{};a[t]={...r,...e}}v(s)},getPreflightCSS:(t=!0)=>function(t=!0){return"minimal"===t?"\n/* BaroCSS Preflight - Minimal Reset */\n/* ================================= */\n\n/* Box sizing rules */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* Remove default margin and padding */\n* {\n margin: 0;\n padding: 0;\n}\n\n/* Set core body defaults */\nbody {\n min-height: 100vh;\n scroll-behavior: smooth;\n text-rendering: optimizeSpeed;\n line-height: 1.5;\n}\n\n/* Remove list styles on ul, ol elements */\nul,\nol {\n list-style: none;\n}\n\n/* Make images easier to work with */\nimg,\npicture {\n max-width: 100%;\n display: block;\n}\n\n/* Inherit fonts for inputs and buttons */\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\n/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n@media (prefers-reduced-motion: reduce) {\n html {\n scroll-behavior: auto;\n }\n \n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n}\n":"standard"===t?'\n/* BaroCSS Preflight - Standard Reset */\n/* ================================== */\n\n/* Box sizing rules */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* Remove default margin and padding */\n* {\n margin: 0;\n padding: 0;\n}\n\n/* Set core body defaults */\nbody {\n min-height: 100vh;\n scroll-behavior: smooth;\n text-rendering: optimizeSpeed;\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n/* Remove list styles on ul, ol elements */\nul,\nol {\n list-style: none;\n}\n\n/* Make images easier to work with */\nimg,\npicture {\n max-width: 100%;\n display: block;\n}\n\n/* Inherit fonts for inputs and buttons */\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\n/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n@media (prefers-reduced-motion: reduce) {\n html {\n scroll-behavior: auto;\n }\n \n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n}\n\n/* Additional standard resets */\nhtml {\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n /* Tailwind 4.1.13 root font (app --default-font-family / --font-sans win) */\n font-family: var(--default-font-family, var(--font-sans, -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, \'Helvetica Neue\', \'Noto Sans\', Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\', \'Noto Color Emoji\'));\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n}\n\n/* Remove the gray background on active links in IE 10 */\na {\n background-color: transparent;\n}\n\n/* Add the correct font weight in Chrome, Edge, and Safari */\nb,\nstrong {\n font-weight: bolder;\n}\n\n/* Prevent sub and sup elements from affecting the line height */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Improve media defaults */\nsvg {\n vertical-align: middle;\n}\n\n/* Remove border on iframe */\niframe {\n border: 0;\n}\n\n/* Table defaults */\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n/* Form element defaults */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\n[type="button"],\n[type="reset"],\n[type="submit"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type="button"]::-moz-focus-inner,\n[type="reset"]::-moz-focus-inner,\n[type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\nbutton:-moz-focusring,\n[type="button"]:-moz-focusring,\n[type="reset"]:-moz-focusring,\n[type="submit"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/* Remove the inner border and padding in Firefox */\nbutton::-moz-focus-inner,\n[type="button"]::-moz-focus-inner,\n[type="reset"]::-moz-focus-inner,\n[type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/* Restore the focus styles unset by the previous rule */\nbutton:-moz-focusring,\n[type="button"]:-moz-focusring,\n[type="reset"]:-moz-focusring,\n[type="submit"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/* Correct the padding in Firefox */\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/* Remove padding so developers aren\'t caught out when they zero out fieldset elements */\nlegend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n}\n\n/* Add the correct vertical alignment in Chrome, Firefox, and Opera */\nprogress {\n vertical-align: baseline;\n}\n\n/* Remove the default vertical scrollbar in IE */\ntextarea {\n overflow: auto;\n}\n\n/* Correct the cursor style of increment and decrement buttons in Chrome */\n[type="number"]::-webkit-inner-spin-button,\n[type="number"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/* Remove the default vertical scrollbar in IE */\ntextarea {\n overflow: auto;\n}\n\n/* Correct the cursor style of increment and decrement buttons in Chrome */\n[type="number"]::-webkit-inner-spin-button,\n[type="number"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/* Tailwind 4.1.13 monospace stack for code-like elements */\ncode,\nkbd,\nsamp,\npre {\n font-family: var(--default-mono-font-family, var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \'Liberation Mono\', \'Courier New\', monospace));\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n}\n\n/* Tailwind 4.1.13 form-control reset: inherit typography and colour, drop native radius/background (#228) */\nbutton,\ninput,\nselect,\noptgroup,\ntextarea,\n::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n}\n\n:where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n}\n\n:where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n}\n\n::file-selector-button {\n margin-inline-end: 4px;\n}\n\n::placeholder {\n opacity: 1;\n}\n\n@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n}\n\ntextarea {\n resize: vertical;\n}\n':"full"===t||!0===t?Lt:""}(t)};return function(t,e,r){m.set(t,{utilities:[...e],modifiers:[...r],astCache:new c,parseResultCache:new u,utilityCache:new y,failures:/* @__PURE__ */new Set,cacheGeneration:f})}(s,w(),A()),function(e,r){if(!r||"object"!=typeof r||Array.isArray(r))return;const o=w(e),a=[...o],n=o.length;for(const[s,l]of Object.entries(r)){const r=Dt(s,l);if(!r){i(`[BAROCSS] Ignoring invalid custom utility "${s}"`);continue}const o=a.filter(t=>t.match(s));k({name:s,category:"custom",match:t=>t===s,handler:(e,a,n)=>{let s=[];for(const t of o)if(s=t.handler(e,a,n,t)||[],s.length>0)break;return[...s,...r.map(([e,r])=>t(e,r))]}},e)}o.length>n&&o.unshift(...o.splice(n))}(s,e.utilities),s}function Ht(t){if(t.includes("/")){const[e,r]=t.split("/").map(Number);if(!isNaN(e)&&!isNaN(r)&&0!==r)return e/r*100+"%"}return null}function Yt(t){return/^-?\d+(?:\.\d+)?$/.test(t)?t:null}function Gt(t){return/^\d+(px|em|rem|vh|vw|vmin|vmax|%|in|cm|mm|pt|pc|ex|ch|fr)$/.test(t)?t:null}function Xt(t,e={}){if(/^\d+$/.test(t))return e.repeat?`repeat(${t}, minmax(0, 1fr))`:t;if(t.includes("/")){const[r,o]=t.split("/").map(Number);if(!isNaN(r)&&!isNaN(o)&&0!==o){const t=r/o;return e.percent?100*t+"%":t.toString()}}return null}var Jt=/* @__PURE__ */new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]);function Qt(t){return Jt.has(t.toLowerCase())?t:t.startsWith("color:var(")?t.slice(6):t.startsWith("color:")?Qt(t.slice(6)):t.startsWith("#")&&4===t.length||t.startsWith("#")&&5===t.length||t.startsWith("#")&&7===t.length||t.startsWith("#")&&9===t.length?`#${t.slice(1)}`:t.startsWith("rgb(")?t.slice(4,-1):t.startsWith("rgba(")?t.slice(5,-1):t.startsWith("hsl(")?t.slice(4,-1):t.startsWith("hsla(")?t.slice(5,-1):t.startsWith("hwb(")||t.startsWith("lab(")||t.startsWith("lch(")?t.slice(4,-1):t.startsWith("oklab(")?t.slice(5,-1):t.startsWith("oklch(")?t.slice(6,-1):t.startsWith("color-mix(")?t.slice(9,-1):null}var te=/* @__PURE__ */new Set(["inherit","currentcolor","transparent"]);function ee(e,o,a){const n=String(a.realThemeValue),s=te.has(o.toLowerCase())||o.startsWith("var(")||!/^[\w-]+$/.test(n)?o:`var(--color-${n})`;if(!a.opacity)return[t(e,s)];const i=function(t){let e=t.trim();const r=e.startsWith("[")&&e.endsWith("]");r&&(e=e.slice(1,-1).trim());e.startsWith("(")&&e.endsWith(")")&&(e=`var(${e.slice(1,-1).trim()})`);if(e.startsWith("var("))return{amount:e,isVar:!0};if(e.endsWith("%"))return{amount:e,isVar:!1};const o=Number(e);return""!==e&&Number.isFinite(o)?{amount:+(r&&o<=1?100*o:o).toFixed(4)+"%",isVar:!1}:{amount:e,isVar:!1}}(String(a.opacity)),l=o=>r("supports","(color:color-mix(in lab, red, red))",[t(e,`color-mix(in oklab, ${s} ${o}, transparent)`)]);return i.isVar?[t(e,o),l(i.amount)]:[t(e,`color-mix(in srgb, ${o} ${i.amount}, transparent)`),l(i.amount)]}R("accent-inherit",[["accent-color","inherit"]],{category:"interactivity"}),R("accent-current",[["accent-color","currentColor"]],{category:"interactivity"}),R("accent-transparent",[["accent-color","transparent"]],{category:"interactivity"}),V({name:"accent",themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,o,a,n)=>n?.realThemeValue?n.opacity?[r("supports","(color:color-mix(in lab, red, red))",[t("accent-color",`color-mix(in lab, ${e} ${n.opacity}%, transparent)`)]),t("accent-color",e)]:[t("accent-color",`var(--color-${n.realThemeValue})`)]:[t("accent-color",e)],handleCustomProperty:e=>[t("accent-color",`var(${e})`)],description:"accent-color utility (static, arbitrary, custom property supported)",category:"interactivity"}),R("appearance-none",[["appearance","none"]],{category:"interactivity"}),R("appearance-auto",[["appearance","auto"]],{category:"interactivity"}),R("caret-inherit",[["caret-color","inherit"]],{category:"interactivity"}),R("caret-current",[["caret-color","currentColor"]],{category:"interactivity"}),R("caret-transparent",[["caret-color","transparent"]],{category:"interactivity"}),V({name:"caret",themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,o,a,n)=>n?.realThemeValue?n.opacity?[r("supports","(color:color-mix(in lab, red, red))",[t("caret-color",`color-mix(in lab, ${e} ${n.opacity}%, transparent)`)]),t("caret-color",e)]:[t("caret-color",`var(--color-${n.realThemeValue})`)]:[t("caret-color",e)],handleCustomProperty:e=>[t("caret-color",`var(${e})`)],description:"caret-color utility (static, theme, arbitrary, custom property supported)",category:"interactivity"}),R("scheme-normal",[["color-scheme","normal"]],{category:"interactivity"}),R("scheme-dark",[["color-scheme","dark"]],{category:"interactivity"}),R("scheme-light",[["color-scheme","light"]],{category:"interactivity"}),R("scheme-light-dark",[["color-scheme","light dark"]],{category:"interactivity"}),R("scheme-only-dark",[["color-scheme","only dark"]],{category:"interactivity"}),R("scheme-only-light",[["color-scheme","only light"]],{category:"interactivity"}),["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"].forEach(t=>{R(`cursor-${t}`,[["cursor",t]],{category:"interactivity"})}),V({name:"cursor",prop:"cursor",supportsArbitrary:!0,supportsCustomProperty:!0,description:"cursor utility (static, arbitrary, custom property supported)",category:"interactivity"}),R("field-sizing-fixed",[["field-sizing","fixed"]],{category:"interactivity"}),R("field-sizing-content",[["field-sizing","content"]],{category:"interactivity"}),R("pointer-events-auto",[["pointer-events","auto"]],{category:"interactivity"}),R("pointer-events-none",[["pointer-events","none"]],{category:"interactivity"}),R("resize",[["resize","both"]],{category:"interactivity"}),R("resize-x",[["resize","horizontal"]],{category:"interactivity"}),R("resize-y",[["resize","vertical"]],{category:"interactivity"}),R("resize-none",[["resize","none"]],{category:"interactivity"}),R("scroll-auto",[["scroll-behavior","auto"]],{category:"interactivity"}),R("scroll-smooth",[["scroll-behavior","smooth"]],{category:"interactivity"}),R("snap-start",[["scroll-snap-align","start"]],{category:"interactivity"}),R("snap-end",[["scroll-snap-align","end"]],{category:"interactivity"}),R("snap-center",[["scroll-snap-align","center"]],{category:"interactivity"}),R("snap-align-none",[["scroll-snap-align","none"]],{category:"interactivity"}),R("snap-normal",[["scroll-snap-stop","normal"]],{category:"interactivity"}),R("snap-always",[["scroll-snap-stop","always"]],{category:"interactivity"}),R("snap-none",[["scroll-snap-type","none"]],{category:"interactivity"}),R("snap-x",[["scroll-snap-type","x var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),R("snap-y",[["scroll-snap-type","y var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),R("snap-both",[["scroll-snap-type","both var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),R("snap-mandatory",[["--baro-scroll-snap-strictness","mandatory"]],{category:"interactivity"}),R("snap-proximity",[["--baro-scroll-snap-strictness","proximity"]],{category:"interactivity"}),[["mbs","scroll-margin-block-start"],["mbe","scroll-margin-block-end"],["mt","scroll-margin-top"],["mr","scroll-margin-right"],["mb","scroll-margin-bottom"],["ml","scroll-margin-left"],["mx","scroll-margin-inline"],["my","scroll-margin-block"],["ms","scroll-margin-inline-start"],["me","scroll-margin-inline-end"],["m","scroll-margin"]].forEach(([e,r])=>{R(`scroll-${e}-px`,[[r,"1px"]],{category:"interactivity"}),R(`-scroll-${e}-px`,[[r,"-1px"]],{category:"interactivity"}),V({name:`scroll-${e}`,spacingKeys:!0,prop:r,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,o,a,n)=>Yt(e)||a.negative?[t(r,`calc(var(--spacing) * ${e})`)]:[t(r,e)],handleCustomProperty:e=>[t(r,`var(${e})`)],description:`${e} utility (static, arbitrary, custom property supported)`,category:"interactivity"})}),[["pbs","scroll-padding-block-start"],["pbe","scroll-padding-block-end"],["pt","scroll-padding-top"],["pr","scroll-padding-right"],["pb","scroll-padding-bottom"],["pl","scroll-padding-left"],["px","scroll-padding-inline"],["py","scroll-padding-block"],["ps","scroll-padding-inline-start"],["pe","scroll-padding-inline-end"],["p","scroll-padding"]].forEach(([e,r])=>{V({name:`scroll-${e}`,spacingKeys:!0,prop:r,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":/^(\d|\.\d)/.test(t)?t:null,handle:(e,o,a,n)=>a.negative?[]:Yt(e)?[t(r,`calc(var(--spacing) * ${e})`)]:[t(r,e)],handleCustomProperty:(e,o,a)=>a.negative?[]:[t(r,`var(${e})`)],description:`scroll-${e} utility (static, arbitrary, custom property supported)`,category:"interactivity"})}),R("touch-auto",[["touch-action","auto"]],{category:"interactivity"}),R("touch-none",[["touch-action","none"]],{category:"interactivity"}),R("touch-pan-x",[["touch-action","pan-x"]],{category:"interactivity"}),R("touch-pan-left",[["touch-action","pan-left"]],{category:"interactivity"}),R("touch-pan-right",[["touch-action","pan-right"]],{category:"interactivity"}),R("touch-pan-y",[["touch-action","pan-y"]],{category:"interactivity"}),R("touch-pan-up",[["touch-action","pan-up"]],{category:"interactivity"}),R("touch-pan-down",[["touch-action","pan-down"]],{category:"interactivity"}),R("touch-pinch-zoom",[["touch-action","pinch-zoom"]],{category:"interactivity"}),R("touch-manipulation",[["touch-action","manipulation"]],{category:"interactivity"}),R("select-none",[["-webkit-user-select","none"],["user-select","none"]],{category:"interactivity"}),R("select-text",[["-webkit-user-select","text"],["user-select","text"]],{category:"interactivity"}),R("select-all",[["-webkit-user-select","all"],["user-select","all"]],{category:"interactivity"}),R("select-auto",[["-webkit-user-select","auto"],["user-select","auto"]],{category:"interactivity"}),R("will-change-auto",[["will-change","auto"]],{category:"interactivity"}),R("will-change-scroll",[["will-change","scroll-position"]],{category:"interactivity"}),R("will-change-contents",[["will-change","contents"]],{category:"interactivity"}),R("will-change-transform",[["will-change","transform"]],{category:"interactivity"}),V({name:"will-change",prop:"will-change",supportsArbitrary:!0,supportsCustomProperty:!0,description:"will-change utility (static, arbitrary, custom property supported)",category:"interactivity"}),R("scrollbar-auto",[["scrollbar-width","auto"]],{category:"interactivity"}),R("scrollbar-thin",[["scrollbar-width","thin"]],{category:"interactivity"}),R("scrollbar-none",[["scrollbar-width","none"]],{category:"interactivity"}),R("scrollbar-gutter-auto",[["scrollbar-gutter","auto"]],{category:"interactivity"}),R("scrollbar-gutter-stable",[["scrollbar-gutter","stable"]],{category:"interactivity"}),R("scrollbar-gutter-both",[["scrollbar-gutter","stable both-edges"]],{category:"interactivity"});var re=t=>t.replace(/^color:/,"");for(const To of["thumb","track"]){const r=`--baro-scrollbar-${To}`,o=r=>[e([a("--baro-scrollbar-thumb","#0000","<color>"),a("--baro-scrollbar-track","#0000","<color>")]),...r,t("scrollbar-color","var(--baro-scrollbar-thumb) var(--baro-scrollbar-track)")],n=(e,o)=>o?[t(r,`color-mix(in oklab, ${e} ${o.replace(/^\[(.*)\]$/,"$1").replace(/%$/,"")}%, transparent)`)]:[t(r,e)];V({name:`scrollbar-${To}`,themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,a,s,i)=>i?.realThemeValue?o(n(`var(--color-${i.realThemeValue})`,i.opacity)):s.arbitrary?o(n(re(e),i?.opacity)):"inherit"===e||"transparent"===e?o([t(r,e)]):"current"===e?o(n("currentcolor",i?.opacity)):null,handleCustomProperty:(t,e,r,a)=>o(n(`var(${re(t)})`,a?.opacity)),description:`scrollbar-color ${To} utility (theme, arbitrary, custom property, opacity)`,category:"interactivity"})}var oe="var(--default-transition-timing-function)",ae="var(--default-transition-duration)";R("transition",[["transition-property","color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --baro-gradient-from, --baro-gradient-via, --baro-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events"],["transition-timing-function",oe],["transition-duration",ae]],{category:"transitions"}),R("transition-all",[["transition-property","all"],["transition-timing-function",oe],["transition-duration",ae]],{category:"transitions"}),R("transition-colors",[["transition-property","color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --baro-gradient-from, --baro-gradient-via, --baro-gradient-to"],["transition-timing-function",oe],["transition-duration",ae]],{category:"transitions"}),R("transition-opacity",[["transition-property","opacity"],["transition-timing-function",oe],["transition-duration",ae]],{category:"transitions"}),R("transition-shadow",[["transition-property","box-shadow"],["transition-timing-function",oe],["transition-duration",ae]],{category:"transitions"}),R("transition-transform",[["transition-property","transform, translate, scale, rotate"],["transition-timing-function",oe],["transition-duration",ae]],{category:"transitions"}),R("transition-normal",[["transition-behavior","normal"]],{category:"transitions"}),R("transition-discrete",[["transition-behavior","allow-discrete"]],{category:"transitions"}),R("transition-none",[["transition-property","none"]],{category:"transitions"}),V({name:"transition",prop:"transition-property",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>[t("transition-property",e),t("transition-timing-function",oe),t("transition-duration",ae)],handleCustomProperty:e=>[t("transition-property",`var(${e})`),t("transition-timing-function",oe),t("transition-duration",ae)],description:"transition-property utility (static, arbitrary value, custom property supported)",category:"transitions"}),R("duration-initial",[["transition-duration","initial"]],{category:"transitions"}),V({name:"duration",prop:"transition-duration",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Yt(e)?[t("transition-duration",`${e}ms`)]:[t("transition-duration",e)],handleCustomProperty:e=>[t("transition-duration",`var(${e})`)],description:"transition-duration utility (static, number, arbitrary, custom property supported)",category:"transitions"}),R("ease-linear",[["transition-timing-function","linear"]],{category:"transitions"}),R("ease-in",[["transition-timing-function","var(--ease-in)"]],{category:"transitions"}),R("ease-out",[["transition-timing-function","var(--ease-out)"]],{category:"transitions"}),R("ease-in-out",[["transition-timing-function","var(--ease-in-out)"]],{category:"transitions"}),R("ease-initial",[["transition-timing-function","initial"]],{category:"transitions"}),V({name:"ease",prop:"transition-timing-function",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>N(e,"transitionTimingFunction",t,"ease")??(/^(\d|\.\d)/.test(t)?t:null),handle:(e,r,o)=>[t("transition-timing-function",e)],handleCustomProperty:e=>[t("transition-timing-function",`var(${e})`)],description:"transition-timing-function utility (static, arbitrary, custom property supported)",category:"transitions"}),V({name:"delay",prop:"transition-delay",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Yt(e)?[t("transition-delay",`${e}ms`)]:[t("transition-delay",e)],handleCustomProperty:e=>[t("transition-delay",`var(${e})`)],description:"transition-delay utility (number, arbitrary, custom property supported)",category:"transitions"}),R("animate-spin",[["animation","var(--animate-spin)"]],{category:"transitions"}),R("animate-ping",[["animation","var(--animate-ping)"]],{category:"transitions"}),R("animate-pulse",[["animation","var(--animate-pulse)"]],{category:"transitions"}),R("animate-bounce",[["animation","var(--animate-bounce)"]],{category:"transitions"}),R("animate-none",[["animation","none"]],{category:"transitions"}),V({name:"animate",themeKeys:["animations","animation"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o,a)=>a?.realThemeValue?[t("animation",`var(--animate-${a.realThemeValue})`)]:o.customProperty?[t("animation",`var(${e})`)]:[t("animation",e)],handleCustomProperty:e=>[t("animation",`var(${e})`)],description:"animation utility (static, arbitrary, custom property supported)",category:"transitions"}),R("border-collapse",[["border-collapse","collapse"]],{category:"table"}),R("border-separate",[["border-collapse","separate"]],{category:"table"}),R("table-auto",[["table-layout","auto"]],{category:"table"}),R("table-fixed",[["table-layout","fixed"]],{category:"table"});var ne=()=>e([a("--baro-border-spacing-x","0","<length>"),a("--baro-border-spacing-y","0","<length>")]),se="var(--baro-border-spacing-x) var(--baro-border-spacing-y)",ie=(e,r)=>[ne(),...e.map(e=>t(`--baro-border-spacing-${e}`,r)),t("border-spacing",se)];function le(t){if(!t)return null;if(/^\d+(\.\d+)?$/.test(t))return{alpha:`${t}%`,isVar:!1};const e=/^\[(\d+(?:\.\d+)?)%\]$/.exec(t);if(e)return{alpha:`${e[1]}%`,isVar:!1};const r=/^\((--[\w-]+)\)$/.exec(t);return r?{alpha:`var(${r[1]})`,isVar:!0}:null}function ce(t,e){const r=[];let o=0,a="";for(const n of t)"("===n?o++:")"===n&&o--,0===o&&(" "===e?/\s/.test(n):n===e)?(a.trim()&&r.push(a.trim()),a=""):a+=n;return a.trim()&&r.push(a.trim()),r}[["border-spacing-x",["x"]],["border-spacing-y",["y"]],["border-spacing",["x","y"]]].forEach(([t,e])=>{R(`${t}-px`,[ne,...e.map(t=>[`--baro-border-spacing-${t}`,"1px"]),["border-spacing",se]],{category:"table"}),V({name:t,prop:"border-spacing",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>ie(e,Yt(t)?`calc(var(--spacing) * ${t})`:t),handleCustomProperty:t=>ie(e,`var(${t})`),description:`${t} utility (number, px, arbitrary, custom property supported)`,category:"table"})}),R("caption-top",[["caption-side","top"]],{category:"table"}),R("caption-bottom",[["caption-side","bottom"]],{category:"table"});var pe=/^-?(\d*\.)?\d+([a-z]+|%)?$/i;function ue(t,e,r){return ce(t,",").map(t=>{const o=ce(t," "),a=o.findIndex(t=>"inset"!==t&&!pe.test(t)),n=a<0?"currentcolor":o[a];return o[a<0?o.length:a]=`var(--baro-${e}-color, ${r?`oklab(from ${n} l a b / ${r})`:n})`,o.join(" ")})}function de(e,o,a,n,s=t=>t.join(", ")){const i=le(n);if(n&&!i)return null;if(!i)return[t(o,s(ue(a,e)))];const l=t(`--baro-${e}-alpha`,i.alpha);return i.isVar?[l,t(o,s(ue(a,e))),r("supports","(color: lab(from red l a b))",[t(o,s(ue(a,e,i.alpha)))])]:[l,t(o,s(ue(a,e,i.alpha)))]}function ye(e,o,a,n=o){const s=`--baro-${e}-color`;if("inherit"===o)return[t(s,"inherit")];const i=le(a);if(a&&!i)return null;const l=i?`color-mix(in oklab, ${n} ${i.alpha}, transparent)`:n;return[t(s,i?`color-mix(in srgb, ${o} ${i.alpha}, transparent)`:o),r("supports","(color: color-mix(in lab, red, red))",[t(s,`color-mix(in oklab, ${l} var(--baro-${e}-alpha), transparent)`)])]}R("filter-none",[["filter","none"]],{category:"effects"}),V({name:"filter",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,description:"filter utility (static, arbitrary, custom property supported)",category:"effects"});var he=()=>t("filter","var(--baro-blur, ) var(--baro-brightness, ) var(--baro-contrast, ) var(--baro-grayscale, ) var(--baro-hue-rotate, ) var(--baro-invert, ) var(--baro-saturate, ) var(--baro-sepia, ) var(--baro-drop-shadow, )");[["blur-xs","var(--blur-xs)"],["blur-sm","var(--blur-sm)"],["blur-md","var(--blur-md)"],["blur-lg","var(--blur-lg)"],["blur-xl","var(--blur-xl)"],["blur-2xl","var(--blur-2xl)"],["blur-3xl","var(--blur-3xl)"]].forEach(([e,r])=>{R(e,[t("--baro-blur",`blur(${r})`),he()],{category:"effects"})}),R("blur",[t("--baro-blur","blur(8px)"),he()],{category:"effects"}),R("blur-none",[t("--baro-blur",""),he()],{category:"effects"}),V({name:"blur",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>N(e,"blur",t,"blur")??(/^(\d|\.\d)/.test(t)?t:null),handle:(e,r,o)=>o.customProperty?[t("--baro-blur",`blur(var(${e}))`),he()]:[t("--baro-blur",`blur(${e})`),he()],handleCustomProperty:e=>[t("--baro-blur",`blur(var(${e}))`),he()],description:"blur filter utility (static, arbitrary, custom property supported)",category:"effects"}),V({name:"brightness",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>o.arbitrary?[t("--baro-brightness",`brightness(${e})`),he()]:Yt(e)?[t("--baro-brightness",`brightness(${e}%)`),he()]:o.customProperty?[t("--baro-brightness",`brightness(var(${e}))`),he()]:[t("--baro-brightness",`brightness(${e})`),he()],handleCustomProperty:e=>[t("--baro-brightness",`brightness(var(${e}))`),he()],description:"brightness filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),V({name:"contrast",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>o.arbitrary?[t("--baro-contrast",`contrast(${e})`),he()]:Yt(e)?[t("--baro-contrast",`contrast(${e}%)`),he()]:o.customProperty?[t("--baro-contrast",`contrast(var(${e}))`),he()]:[t("--baro-contrast",`contrast(${e})`),he()],handleCustomProperty:e=>[t("--baro-contrast",`contrast(var(${e}))`),he()],description:"contrast filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var ge=()=>e([a("--baro-drop-shadow"),a("--baro-drop-shadow-color"),a("--baro-drop-shadow-alpha","100%","<percentage>"),a("--baro-drop-shadow-size")]),me=t=>t.map(t=>`drop-shadow(${t})`).join(" "),fe=(t,e)=>{const r=t.theme("dropShadow",e);return"string"==typeof r&&/^[\w.-]+$/.test(e)?r:null};function be(e,r,o,a=!1){const n=de("drop-shadow","--baro-drop-shadow-size",e,r,me);if(!n)return null;const s=void 0===o||r&&!a?"var(--baro-drop-shadow-size)":o;return[ge(),...n,t("--baro-drop-shadow",s),he()]}R("drop-shadow-none",[t("--baro-drop-shadow"," "),he()]),k({name:"drop-shadow",match:t=>/^drop-shadow(\/.+)?$/.test(t),handler:(t,e,r)=>{const o=t?`${r.prefix}-${t}`:r.prefix,a=o.indexOf("/");return be("0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06)",a<0?void 0:o.slice(a+1),"drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow( 0 1px 1px rgb(0 0 0 / 0.06))",!0)??[]},category:"effects"});var ve=(e,r,o)=>{const a=ye("drop-shadow",e,r,o);return a&&[ge(),...a,t("--baro-drop-shadow","var(--baro-drop-shadow-size)")]};V({name:"drop-shadow",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handleBareValue:({value:t,ctx:e})=>fe(e,t)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity,n=r.arbitrary?void 0:{inherit:"inherit",current:"currentcolor",transparent:"transparent"}[o?.realThemeValue??t];if(n)return ve(n,a);const s=o?.realThemeValue??t,i=r.arbitrary?null:fe(e,s);return i?be(i,a,`drop-shadow(var(--drop-shadow-${s}))`):o?.realThemeValue?ve(t,a,`var(--color-${o.realThemeValue})`):r.arbitrary?Qt(t)?ve(t,a):be(t,a):null},handleCustomProperty:e=>e.startsWith("color:")?ve(`var(${e.slice(6)})`,void 0)??[]:[ge(),t("--baro-drop-shadow-size",`drop-shadow(var(${e}))`),t("--baro-drop-shadow","var(--baro-drop-shadow-size)"),he()],description:"drop-shadow filter utility (static, arbitrary, custom property supported)",category:"effects"}),R("grayscale",[t("--baro-grayscale","grayscale(100%)"),he()],{category:"effects"}),V({name:"grayscale",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>Yt(e)?[t("--baro-grayscale",`grayscale(${e}%)`),he()]:[t("--baro-grayscale",`grayscale(${e})`),he()],handleCustomProperty:e=>[t("--baro-grayscale",`grayscale(var(${e}))`),he()],description:"grayscale filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),V({name:"hue-rotate",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(e,r,o)=>o.negative&&Yt(o.value)?[t("--baro-hue-rotate",`hue-rotate(calc(${o.value}deg * -1))`),he()]:Yt(e)?[t("--baro-hue-rotate",`hue-rotate(${e}deg)`),he()]:o.customProperty?[t("--baro-hue-rotate",`hue-rotate(var(${e}))`),he()]:[t("--baro-hue-rotate",`hue-rotate(${e})`),he()],handleCustomProperty:e=>[t("--baro-hue-rotate",`hue-rotate(var(${e}))`),he()],description:"hue-rotate filter utility (static, negative, number, arbitrary, custom property supported)",category:"effects"}),R("invert",[t("--baro-invert","invert(100%)"),he()],{category:"effects"}),V({name:"invert",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>Yt(e)?[t("--baro-invert",`invert(${e}%)`),he()]:[t("--baro-invert",`invert(${e})`),he()],description:"invert filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),V({name:"saturate",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>Yt(e)?[t("--baro-saturate",`saturate(${e}%)`),he()]:[t("--baro-saturate",`saturate(${e})`),he()],handleCustomProperty:e=>[t("--baro-saturate",`saturate(var(${e}))`),he()],description:"saturate filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),R("sepia",[t("--baro-sepia","sepia(100%)"),he()],{category:"effects"}),V({name:"sepia",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>Yt(e)?[t("--baro-sepia",`sepia(${e}%)`),he()]:[t("--baro-sepia",`sepia(${e})`),he()],handleCustomProperty:e=>[t("--baro-sepia",`sepia(var(${e}))`),he()],description:"sepia filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var xe=()=>[t("-webkit-backdrop-filter","var(--baro-backdrop-blur, ) var(--baro-backdrop-brightness, ) var(--baro-backdrop-contrast, ) var(--baro-backdrop-grayscale, ) var(--baro-backdrop-hue-rotate, ) var(--baro-backdrop-invert, ) var(--baro-backdrop-saturate, ) var(--baro-backdrop-sepia, )"),t("backdrop-filter","var(--baro-backdrop-blur, ) var(--baro-backdrop-brightness, ) var(--baro-backdrop-contrast, ) var(--baro-backdrop-grayscale, ) var(--baro-backdrop-hue-rotate, ) var(--baro-backdrop-invert, ) var(--baro-backdrop-saturate, ) var(--baro-backdrop-sepia, )")];R("backdrop-filter",[["backdrop-filter","var(--baro-backdrop-filter)"]],{category:"effects"}),R("backdrop-filter-none",[["backdrop-filter","none"]],{category:"effects"}),V({name:"backdrop-filter",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,description:"filter utility (static, arbitrary, custom property supported)",category:"effects"}),[["backdrop-blur-xs","var(--blur-xs)"],["backdrop-blur-sm","var(--blur-sm)"],["backdrop-blur-md","var(--blur-md)"],["backdrop-blur-lg","var(--blur-lg)"],["backdrop-blur-xl","var(--blur-xl)"],["backdrop-blur-2xl","var(--blur-2xl)"],["backdrop-blur-3xl","var(--blur-3xl)"]].forEach(([e,r])=>{R(e,[t("--baro-backdrop-blur",`blur(${r})`),...xe()],{category:"effects"})}),R("backdrop-blur",[t("--baro-backdrop-blur","blur(8px)"),...xe()],{category:"effects"}),R("backdrop-blur-none",[t("--baro-backdrop-blur",""),...xe()],{category:"effects"}),V({name:"backdrop-blur",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>N(e,"blur",t,"blur")??(/^(\d|\.\d)/.test(t)?t:null),handle:(e,r,o)=>o.customProperty?[t("--baro-backdrop-blur",`blur(var(${e}))`),...xe()]:[t("--baro-backdrop-blur",`blur(${e})`),...xe()],handleCustomProperty:e=>[t("--baro-backdrop-blur",`blur(var(${e}))`),...xe()],description:"blur filter utility (static, arbitrary, custom property supported)",category:"effects"}),V({name:"backdrop-brightness",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>o.arbitrary?[t("--baro-backdrop-brightness",`brightness(${e})`),...xe()]:Yt(e)?[t("--baro-backdrop-brightness",`brightness(${e}%)`),...xe()]:o.customProperty?[t("--baro-backdrop-brightness",`brightness(var(${e}))`),...xe()]:[t("--baro-backdrop-brightness",`brightness(${e})`),...xe()],handleCustomProperty:e=>[t("--baro-backdrop-brightness",`brightness(var(${e}))`),...xe()],description:"brightness filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),V({name:"backdrop-contrast",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handle:(e,r,o)=>o.arbitrary?[t("--baro-backdrop-contrast",`contrast(${e})`),...xe()]:Yt(e)?[t("--baro-backdrop-contrast",`contrast(${e}%)`),...xe()]:o.customProperty?[t("--baro-backdrop-contrast",`contrast(var(${e}))`),...xe()]:[t("--baro-backdrop-contrast",`contrast(${e})`),...xe()],handleCustomProperty:e=>[t("--baro-backdrop-contrast",`contrast(var(${e}))`),...xe()],description:"contrast filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),R("backdrop-grayscale",[["--baro-backdrop-grayscale","grayscale(100%)"],...xe()],{category:"effects"}),V({name:"backdrop-grayscale",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Yt(e)?[t("--baro-backdrop-grayscale",`grayscale(${e}%)`),...xe()]:[t("--baro-backdrop-grayscale",`grayscale(${e})`),...xe()],handleCustomProperty:e=>[t("--baro-backdrop-grayscale",`grayscale(var(${e}))`),...xe()],description:"grayscale filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),V({name:"backdrop-hue-rotate",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(e,r,o)=>o.negative&&Yt(o.value)?[t("--baro-backdrop-hue-rotate",`hue-rotate(calc(${o.value}deg * -1))`),...xe()]:Yt(e)?[t("--baro-backdrop-hue-rotate",`hue-rotate(${e}deg)`),...xe()]:[t("--baro-backdrop-hue-rotate",`hue-rotate(${e})`),...xe()],handleCustomProperty:e=>[t("--baro-backdrop-hue-rotate",`hue-rotate(var(${e}))`),...xe()],description:"hue-rotate filter utility (static, negative, number, arbitrary, custom property supported)",category:"effects"}),R("backdrop-invert",[["--baro-backdrop-invert","invert(100%)"],...xe()],{category:"effects"}),V({name:"backdrop-invert",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Yt(e)?[t("--baro-backdrop-invert",`invert(${e}%)`),...xe()]:[t("--baro-backdrop-invert",`invert(${e})`),...xe()],description:"invert filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),V({name:"backdrop-saturate",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Yt(e)?[t("--baro-backdrop-saturate",`saturate(${e}%)`),...xe()]:[t("--baro-backdrop-saturate",`saturate(${e})`),...xe()],handleCustomProperty:e=>[t("--baro-backdrop-saturate",`saturate(var(${e}))`),...xe()],description:"saturate filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),R("backdrop-sepia",[["--baro-backdrop-sepia","sepia(100%)"],...xe()],{category:"effects"}),V({name:"backdrop-sepia",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Yt(e)?[t("--baro-backdrop-sepia",`sepia(${e}%)`),...xe()]:[t("--baro-backdrop-sepia",`sepia(${e})`),...xe()],handleCustomProperty:e=>[t("--baro-backdrop-sepia",`sepia(var(${e}))`),...xe()],description:"sepia filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var ke="var(--baro-inset-shadow), var(--baro-inset-ring-shadow), var(--baro-ring-offset-shadow), var(--baro-ring-shadow), var(--baro-shadow)",we=()=>e([a("--baro-shadow","0 0 #0000"),a("--baro-inset-shadow","0 0 #0000"),a("--baro-inset-ring-shadow","0 0 #0000"),a("--baro-ring-offset-shadow","0 0 #0000"),a("--baro-ring-shadow","0 0 #0000"),a("--baro-ring-offset-width","0px","<length>"),a("--baro-ring-offset-color","#fff")]),$e=t=>e([a(`--baro-${t}-color`),a(`--baro-${t}-alpha`,"100%","<percentage>")]),Ce={"":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","2xs":"0 1px rgb(0 0 0 / 0.05)",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},Pe={"2xs":"inset 0 1px rgb(0 0 0 / 0.05)",xs:"inset 0 1px 1px rgb(0 0 0 / 0.05)",sm:"inset 0 2px 4px rgb(0 0 0 / 0.05)"},ze={md:"inset 0 4px 6px -1px rgb(0 0 0 / 0.05)",lg:"inset 0 10px 15px -3px rgb(0 0 0 / 0.05)",xl:"inset 0 20px 25px -5px rgb(0 0 0 / 0.05)","2xl":"inset 0 25px 50px -12px rgb(0 0 0 / 0.05)"},Ae=t=>t.split(/,(?![^(]*\))/).map(t=>`inset ${t.trim()}`).join(", "),Se=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function je(e,r,o){const a=de(e,`--baro-${e}`,r,o);return a?[we(),$e(e),...a,t("box-shadow",ke)]:null}function Re(t,e,r,o){if("shadow"===t){if(Se(Ce,e))return je(t,Ce[e],r)}else{if(Se(Pe,e))return je(t,Pe[e],r);if(!r&&Se(ze,e))return je(t,ze[e],void 0)}const a=o&&"none"!==e?T(o,"shadow"===t?"boxShadow":"insetShadow",e):null;return a?je(t,a,r):null}R("shadow-none",[we,["--baro-shadow","0 0 #0000"],["box-shadow",ke]],{category:"effects"}),R("inset-shadow-none",[we,["--baro-inset-shadow","inset 0 0 #0000"],["box-shadow",ke]],{category:"effects"}),k({name:"shadow",match:t=>/^shadow(\/.+)?$/.test(t),handler:(t,e,r)=>{const o=t?`${r.prefix}-${t}`:r.prefix,a=o.indexOf("/");return Re("shadow","",a<0?void 0:o.slice(a+1))??[]},category:"effects"});var Ee={inherit:"inherit",current:"currentcolor",transparent:"transparent"};function Te(t,e,r,o,a){const n=o.arbitrary?void 0:Ee[a??e];return n?ye(t,n,r):a?ye(t,e,r,`var(--color-${a})`):e.startsWith("color:")?ye(t,`var(${e.slice(6)})`,r):o.arbitrary&&Qt(e)?ye(t,e,r):void 0}for(const To of["shadow","inset-shadow"])V({name:To,supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors"],handleBareValue:({value:t,ctx:e,extra:r})=>Re(To,t,r?.opacity,e)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity,n=r.arbitrary?null:Re(To,o?.realThemeValue??t,a,e);if(n)return n;const s=Te(To,t,a,r,o?.realThemeValue);return void 0!==s?s:r.arbitrary?je(To,"inset-shadow"===To?Ae(t):t,a):null},handleCustomProperty:e=>e.startsWith("color:")?ye(To,`var(${e.slice(6)})`,void 0)??[]:[we(),t(`--baro-${To}`,"inset-shadow"===To?`inset var(${e})`:`var(${e})`),t("box-shadow",ke)]});var Ne=()=>e([a("--baro-text-shadow-color"),a("--baro-text-shadow-alpha","100%","<percentage>")]),Ve=(t,e)=>{const r=t.theme("textShadow",e);return"string"==typeof r&&/^[\w.-]+$/.test(e)?r:null},We=(t,e)=>{const r=de("text-shadow","text-shadow",t,e);return r?[Ne(),...r]:null};function Be(t){return`var(--baro-ring-inset,) 0 0 0 calc(${t} + var(--baro-ring-offset-width)) var(--baro-ring-color, currentcolor)`}R("text-shadow-none",[Ne,["text-shadow","none"]],{category:"effects"}),V({name:"text-shadow",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors"],handleBareValue:({value:t,ctx:e})=>Ve(e,t)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity;if(!r.arbitrary){const r=Ve(e,o?.realThemeValue??t);if(r)return We(r,a)}const n=Te("text-shadow",t,a,r,o?.realThemeValue);return void 0!==n?n&&[Ne(),...n]:r.arbitrary?We(t,a):null},handleCustomProperty:e=>e.startsWith("color:")?[Ne(),...ye("text-shadow",`var(${e.slice(6)})`,void 0)??[]]:[Ne(),t("text-shadow",`var(${e})`)],category:"effects"}),[["ring","1px"],["ring-0","0px"],["ring-1","1px"],["ring-2","2px"],["ring-4","4px"],["ring-8","8px"]].forEach(([t,e])=>{R(t,[we,["--baro-ring-shadow",Be(e)],["box-shadow","var(--baro-inset-shadow), var(--baro-inset-ring-shadow), var(--baro-ring-offset-shadow), var(--baro-ring-shadow), var(--baro-shadow)"]])}),[["ring-offset-0","0px"],["ring-offset-1","1px"],["ring-offset-2","2px"],["ring-offset-4","4px"],["ring-offset-8","8px"]].forEach(([t,e])=>{R(t,[["--baro-ring-offset-width",e],["--baro-ring-offset-color","#fff"],["--baro-ring-offset-shadow","var(--baro-ring-inset,) 0 0 0 var(--baro-ring-offset-width) var(--baro-ring-offset-color)"]],{category:"effects"})});var Me=e=>[t("--baro-ring-offset-width",e),t("--baro-ring-offset-shadow","var(--baro-ring-inset,) 0 0 0 var(--baro-ring-offset-width) var(--baro-ring-offset-color)")];function Oe(e,o,a,n){const s=`var(--color-${n})`;let i=s,l=s;return a&&(i=`color-mix(in oklab, ${s} ${a}%, transparent)`,l=Qt(o)&&o.startsWith("#")?`${o}${Math.round(Number(a)/100*255).toString(16).padStart(2,"0")}`:i),[r("supports","(color:color-mix(in lab, red, red))",[t(e,i)]),t(e,l)]}V({name:"ring-offset",themeKeys:["ringOffsetWidth","colors"],supportsArbitrary:!0,supportsOpacity:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}px`:null,handle:(e,r,o,a)=>"ringOffsetWidth"===a?.themeNamespace?Me(e):a?.realThemeValue?ee("--baro-ring-offset-color",e,a):o.arbitrary?Qt(e)?[t("--baro-ring-offset-color",e)]:Gt(e)?Me(e):null:/^\d+px$/.test(e)?Me(e):null,category:"effects"}),[["inset-ring","1px"],["inset-ring-0","0px"],["inset-ring-1","1px"],["inset-ring-2","2px"],["inset-ring-4","4px"],["inset-ring-8","8px"]].forEach(([t,e])=>{R(t,[we,["--baro-inset-ring-shadow",`inset 0 0 0 ${e} var(--baro-inset-ring-color, currentcolor)`],["box-shadow",ke]],{category:"effects"})}),R("ring-inset",[["--baro-ring-inset","inset"]],{category:"effects"}),V({name:"ring",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors","ringWidth"],handle:(e,o,a,n)=>{const s=e;if("ringWidth"===n?.themeNamespace)return[we(),t("--baro-ring-shadow",Be(e)),t("box-shadow",ke)];const i=n?.opacity,l=n?.realThemeValue;if(l)return Oe("--baro-ring-color",s,i,l);if(s.startsWith("color:")){const e=s.replace("color:","");let o=`var(${e})`,a=o;return i&&(o=`color-mix(in oklab, var(${e}) ${i}%, transparent)`,a=o),[r("supports","(color:color-mix(in lab, red, red))",[t("--baro-ring-color",o)]),t("--baro-ring-color",a)]}if(a.arbitrary){let e=s,o=s;if(i)return e=`color-mix(in oklab, ${s} ${i}%, transparent)`,o=Qt(s)&&s.startsWith("#")?`${s}${Math.round(Number(i)/100*255).toString(16).padStart(2,"0")}`:e,[r("supports","(color:color-mix(in lab, red, red))",[t("--baro-ring-color",e)]),t("--baro-ring-color",o)];if(!Qt(s)&&/^(-?(\d+\.?\d*|\.\d+)(px|rem|em|%|vw|vh|vmin|vmax|ch|ex|pt|cm|mm|in|pc)|0|(length:.+)|calc\(.+\))$/i.test(s)){const e=s.startsWith("length:")?s.slice(7):s;return[we(),t("--baro-ring-shadow",Be(e)),t("box-shadow",ke)]}return[Qt(s)?t("--baro-ring-color",s):t("box-shadow",s)]}return"inherit"===s||"current"===s||"transparent"===s?[t("--baro-ring-color","current"===s?"currentColor":s)]:null},handleCustomProperty:e=>{if(e.startsWith("color:")){return[t("--baro-ring-color",`var(${e.replace("color:","")})`)]}return[t("--baro-ring-color",`var(${e})`)]}}),V({name:"inset-ring",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors","shadows"],handle:(e,o,a,n)=>{const s=e,i=n?.opacity,l=n?.realThemeValue;if(l)return Oe("--baro-inset-ring-color",s,i,l);if(s.startsWith("color:")){const e=s.replace("color:","");let o=`var(${e})`,a=o;return i&&(o=`color-mix(in oklab, var(${e}) ${i}%, transparent)`,a=o),[r("supports","(color:color-mix(in lab, red, red))",[t("--baro-inset-ring-color",o)]),t("--baro-inset-ring-color",a)]}if(a.arbitrary){let e=s,o=s;return i?(e=`color-mix(in oklab, ${s} ${i}%, transparent)`,o=Qt(s)&&s.startsWith("#")?`${s}${Math.round(Number(i)/100*255).toString(16).padStart(2,"0")}`:e,[r("supports","(color:color-mix(in lab, red, red))",[t("--baro-inset-ring-color",e)]),t("--baro-inset-ring-color",o)]):[t("box-shadow",`inset ${s}`)]}return"inherit"===s||"current"===s||"transparent"===s?[t("--baro-inset-ring-color","current"===s?"currentColor":s)]:null},handleCustomProperty:e=>{if(e.startsWith("color:")){return[t("--baro-inset-ring-color",`var(${e.replace("color:","")})`)]}return[t("--baro-inset-ring-color",`var(${e})`)]}}),V({name:"opacity",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>{if(Yt(e)){let r=Number(e);return r>1&&(r/=100),[t("opacity",String(r))]}return o.arbitrary?[t("opacity",e)]:null},handleCustomProperty:e=>[t("opacity",`var(${e})`)],description:"opacity utility (number, arbitrary, custom property supported)",category:"effects"}),[["mix-blend-normal","normal"],["mix-blend-multiply","multiply"],["mix-blend-screen","screen"],["mix-blend-overlay","overlay"],["mix-blend-darken","darken"],["mix-blend-lighten","lighten"],["mix-blend-color-dodge","color-dodge"],["mix-blend-color-burn","color-burn"],["mix-blend-hard-light","hard-light"],["mix-blend-soft-light","soft-light"],["mix-blend-difference","difference"],["mix-blend-exclusion","exclusion"],["mix-blend-hue","hue"],["mix-blend-saturation","saturation"],["mix-blend-color","color"],["mix-blend-luminosity","luminosity"],["mix-blend-plus-darker","plus-darker"],["mix-blend-plus-lighter","plus-lighter"]].forEach(([t,e])=>{R(t,[["mix-blend-mode",e]])}),[["bg-blend-normal","normal"],["bg-blend-multiply","multiply"],["bg-blend-screen","screen"],["bg-blend-overlay","overlay"],["bg-blend-darken","darken"],["bg-blend-lighten","lighten"],["bg-blend-color-dodge","color-dodge"],["bg-blend-color-burn","color-burn"],["bg-blend-hard-light","hard-light"],["bg-blend-soft-light","soft-light"],["bg-blend-difference","difference"],["bg-blend-exclusion","exclusion"],["bg-blend-hue","hue"],["bg-blend-saturation","saturation"],["bg-blend-color","color"],["bg-blend-luminosity","luminosity"]].forEach(([t,e])=>{R(t,[["background-blend-mode",e]],{category:"effects"})}),[["mask-clip-border","border-box"],["mask-clip-padding","padding-box"],["mask-clip-content","content-box"],["mask-clip-fill","fill-box"],["mask-clip-stroke","stroke-box"],["mask-clip-view","view-box"],["mask-no-clip","no-clip"]].forEach(([t,e])=>{R(t,[["mask-clip",e]],{category:"effects"})}),[["mask-add","add"],["mask-subtract","subtract"],["mask-intersect","intersect"],["mask-exclude","exclude"]].forEach(([t,e])=>{R(t,[["mask-composite",e]],{category:"effects"})}),[["mask-alpha","alpha"],["mask-luminance","luminance"],["mask-match","match-source"]].forEach(([t,e])=>{R(t,[["mask-mode",e]],{category:"effects"})}),[["mask-origin-border","border-box"],["mask-origin-padding","padding-box"],["mask-origin-content","content-box"],["mask-origin-fill","fill-box"],["mask-origin-stroke","stroke-box"],["mask-origin-view","view-box"]].forEach(([t,e])=>{R(t,[["mask-origin",e]],{category:"effects"})}),[["mask-top-left","top left"],["mask-top","top"],["mask-top-right","top right"],["mask-left","left"],["mask-center","center"],["mask-right","right"],["mask-bottom-left","bottom left"],["mask-bottom","bottom"],["mask-bottom-right","bottom right"]].forEach(([t,e])=>{R(t,[["mask-position",e]],{category:"effects"})}),V({name:"mask-position",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>o.arbitrary?[t("mask-position",e)]:o.customProperty?[t("mask-position",`var(${e})`)]:null,handleCustomProperty:e=>[t("mask-position",`var(${e})`)],description:"mask-position utility (static, arbitrary, custom property supported)",category:"effects"}),[["mask-repeat","repeat"],["mask-no-repeat","no-repeat"],["mask-repeat-x","repeat-x"],["mask-repeat-y","repeat-y"],["mask-repeat-space","space"],["mask-repeat-round","round"]].forEach(([t,e])=>{R(t,[["mask-repeat",e]],{category:"effects"})}),[["mask-auto","auto"],["mask-cover","cover"],["mask-contain","contain"]].forEach(([t,e])=>{R(t,[["mask-size",e]],{category:"effects"})}),[["mask-type-alpha","alpha"],["mask-type-luminance","luminance"]].forEach(([t,e])=>{R(t,[["mask-type",e]],{category:"effects"})}),V({name:"mask-size",prop:"mask-size",supportsArbitrary:!0,supportsCustomProperty:!0,description:"mask-size utility (static, arbitrary, custom property supported)",category:"effects"});V({name:"mask-linear-from",handleBareValue:({value:t})=>/^(?:100|[1-9]?\d)%$/.test(t)?t:null,handle:r=>[t("mask-image","var(--baro-mask-linear), var(--baro-mask-radial), var(--baro-mask-conic)"),t("mask-composite","intersect"),t("--baro-mask-linear-stops","var(--baro-mask-linear-position), var(--baro-mask-linear-from-color) var(--baro-mask-linear-from-position), var(--baro-mask-linear-to-color) var(--baro-mask-linear-to-position)"),t("--baro-mask-linear","linear-gradient(var(--baro-mask-linear-stops))"),t("--baro-mask-linear-from-position",r),e([a("--baro-mask-linear","linear-gradient(#fff, #fff)"),a("--baro-mask-radial","linear-gradient(#fff, #fff)"),a("--baro-mask-conic","linear-gradient(#fff, #fff)"),a("--baro-mask-linear-position","0deg"),a("--baro-mask-linear-from-position","0%"),a("--baro-mask-linear-to-position","100%"),a("--baro-mask-linear-from-color","black"),a("--baro-mask-linear-to-color","transparent")])],category:"effects"}),R("mask-none",[["mask-image","none"]],{category:"effects"}),V({name:"mask",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>"none"===e?[t("mask-image","none")]:o.arbitrary?[t("mask-image",e)]:o.customProperty?[t("mask-image",`var(${e})`)]:null,handleCustomProperty:e=>[t("mask-image",`var(${e})`)],description:"mask-image utility (arbitrary, custom property supported)",category:"effects"}),R("isolate",[["isolation","isolate"]],{category:"layout"}),R("isolation-auto",[["isolation","auto"]],{category:"layout"}),R("z-auto",[["z-index","auto"]],{category:"layout"}),V({name:"z",prop:"z-index",themeKey:"zIndex",supportsNegative:!0,supportsFraction:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),description:"z-index utility",category:"layout"}),R("aspect-square",[["aspect-ratio","1 / 1"]],{category:"layout"}),R("aspect-video",[["aspect-ratio","var(--aspect-video)"]],{category:"layout"}),R("aspect-auto",[["aspect-ratio","auto"]],{category:"layout"}),V({name:"aspect",prop:"aspect-ratio",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>N(e,"aspect",t,"aspect")??(/^(\d|\.\d)/.test(t)?t:null),description:"aspect-ratio utility (theme, arbitrary, custom property, fraction supported)",category:"layout"}),R("columns-auto",[["columns","auto"]],{category:"layout"}),R("columns-3xs",[["columns","var(--container-3xs)"]],{category:"layout"}),R("columns-2xs",[["columns","var(--container-2xs)"]],{category:"layout"}),R("columns-xs",[["columns","var(--container-xs)"]],{category:"layout"}),R("columns-sm",[["columns","var(--container-sm)"]],{category:"layout"}),R("columns-md",[["columns","var(--container-md)"]],{category:"layout"}),R("columns-lg",[["columns","var(--container-lg)"]],{category:"layout"}),R("columns-xl",[["columns","var(--container-xl)"]],{category:"layout"}),R("columns-2xl",[["columns","var(--container-2xl)"]],{category:"layout"}),R("columns-3xl",[["columns","var(--container-3xl)"]],{category:"layout"}),R("columns-4xl",[["columns","var(--container-4xl)"]],{category:"layout"}),R("columns-5xl",[["columns","var(--container-5xl)"]],{category:"layout"}),R("columns-6xl",[["columns","var(--container-6xl)"]],{category:"layout"}),R("columns-7xl",[["columns","var(--container-7xl)"]],{category:"layout"}),V({name:"columns",prop:"columns",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>Yt(t)??N(e,"container",t,"container"),description:"columns utility (theme, arbitrary, custom property, fraction supported)",category:"layout"}),R("break-after-auto",[["break-after","auto"]],{category:"layout"}),R("break-after-avoid",[["break-after","avoid"]],{category:"layout"}),R("break-after-all",[["break-after","all"]],{category:"layout"}),R("break-after-avoid-page",[["break-after","avoid-page"]],{category:"layout"}),R("break-after-page",[["break-after","page"]],{category:"layout"}),R("break-after-left",[["break-after","left"]],{category:"layout"}),R("break-after-right",[["break-after","right"]],{category:"layout"}),R("break-after-column",[["break-after","column"]],{category:"layout"}),R("break-before-auto",[["break-before","auto"]],{category:"layout"}),R("break-before-avoid",[["break-before","avoid"]],{category:"layout"}),R("break-before-all",[["break-before","all"]],{category:"layout"}),R("break-before-avoid-page",[["break-before","avoid-page"]],{category:"layout"}),R("break-before-page",[["break-before","page"]],{category:"layout"}),R("break-before-left",[["break-before","left"]],{category:"layout"}),R("break-before-right",[["break-before","right"]],{category:"layout"}),R("break-before-column",[["break-before","column"]],{category:"layout"}),R("break-inside-auto",[["break-inside","auto"]],{category:"layout"}),R("break-inside-avoid",[["break-inside","avoid"]],{category:"layout"}),R("break-inside-avoid-page",[["break-inside","avoid-page"]],{category:"layout"}),R("break-inside-avoid-column",[["break-inside","avoid-column"]],{category:"layout"}),R("box-decoration-slice",[["box-decoration-break","slice"]],{category:"layout"}),R("box-decoration-clone",[["box-decoration-break","clone"]],{category:"layout"}),R("box-border",[["box-sizing","border-box"]],{category:"layout"}),R("box-content",[["box-sizing","content-box"]],{category:"layout"}),R("block",[["display","block"]],{category:"layout"}),R("inline",[["display","inline"]],{category:"layout"}),R("inline-block",[["display","inline-block"]],{category:"layout"}),R("flow-root",[["display","flow-root"]],{category:"layout"}),R("flex",[["display","flex"]],{category:"layout"}),R("inline-flex",[["display","inline-flex"]],{category:"layout"}),R("grid",[["display","grid"]],{category:"layout"}),R("inline-grid",[["display","inline-grid"]],{category:"layout"}),R("contents",[["display","contents"]],{category:"layout"}),R("table",[["display","table"]],{category:"layout"}),R("inline-table",[["display","inline-table"]],{category:"layout"}),R("table-caption",[["display","table-caption"]],{category:"layout"}),R("table-cell",[["display","table-cell"]],{category:"layout"}),R("table-column",[["display","table-column"]],{category:"layout"}),R("table-column-group",[["display","table-column-group"]],{category:"layout"}),R("table-footer-group",[["display","table-footer-group"]],{category:"layout"}),R("table-header-group",[["display","table-header-group"]],{category:"layout"}),R("table-row-group",[["display","table-row-group"]],{category:"layout"}),R("table-row",[["display","table-row"]],{category:"layout"}),R("list-item",[["display","list-item"]],{category:"layout"}),R("hidden",[["display","none"]],{category:"layout"}),R("sr-only",[["position","absolute"],["width","1px"],["height","1px"],["padding","0"],["margin","-1px"],["overflow","hidden"],["clip-path","inset(50%)"],["white-space","nowrap"],["border-width","0"]],{category:"layout"}),R("not-sr-only",[["position","static"],["width","auto"],["height","auto"],["padding","0"],["margin","0"],["overflow","visible"],["clip-path","none"],["white-space","normal"]],{category:"layout"}),R("@container",[["container-type","inline-size"]],{category:"layout"}),R("@container-normal",[["container-type","normal"]],{category:"layout"}),R("@container-size",[["container-type","size"]],{category:"layout"});var Fe=/^@container(-normal|-size)?\/([a-zA-Z0-9_-]+)$/,Ke={"":"inline-size","-normal":"normal","-size":"size"};k({name:"@container",match:t=>Fe.test(t),handler:(e,r,o)=>{const a=Fe.exec(`${o.prefix}${o.value?`-${o.value}`:""}`);return a?[t("container-type",Ke[a[1]??""]),t("container-name",a[2])]:null},category:"layout"});var De=t=>{const e=/^(-?\d*\.?\d+)(rem|px|em)$/.exec(t.trim());return e?"px"===e[2]?Number(e[1])/16:Number(e[1]):NaN};k({name:"container",match:t=>"container"===t,handler:(e,o)=>{const a=o.theme("breakpoints")||o.config("theme.breakpoints")||{},n=Object.values(a).filter(t=>"string"==typeof t&&!Number.isNaN(De(t)));return n.sort((t,e)=>De(t)-De(e)),[t("width","100%"),...n.map(e=>r("media",`(width >= ${e})`,[t("max-width",e)]))]},category:"layout"}),R("float-right",[["float","right"]],{category:"layout"}),R("float-left",[["float","left"]],{category:"layout"}),R("float-start",[["float","inline-start"]],{category:"layout"}),R("float-end",[["float","inline-end"]],{category:"layout"}),R("float-none",[["float","none"]],{category:"layout"}),R("clear-left",[["clear","left"]],{category:"layout"}),R("clear-right",[["clear","right"]],{category:"layout"}),R("clear-both",[["clear","both"]],{category:"layout"}),R("clear-start",[["clear","inline-start"]],{category:"layout"}),R("clear-end",[["clear","inline-end"]],{category:"layout"}),R("clear-none",[["clear","none"]],{category:"layout"}),R("object-contain",[["object-fit","contain"]],{category:"layout"}),R("object-cover",[["object-fit","cover"]],{category:"layout"}),R("object-fill",[["object-fit","fill"]],{category:"layout"}),R("object-none",[["object-fit","none"]],{category:"layout"}),R("object-scale-down",[["object-fit","scale-down"]],{category:"layout"}),R("object-top-left",[["object-position","top left"]],{category:"layout"}),R("object-top",[["object-position","top"]],{category:"layout"}),R("object-top-right",[["object-position","top right"]],{category:"layout"}),R("object-left",[["object-position","left"]],{category:"layout"}),R("object-center",[["object-position","center"]],{category:"layout"}),R("object-right",[["object-position","right"]],{category:"layout"}),R("object-bottom-left",[["object-position","bottom left"]],{category:"layout"}),R("object-bottom",[["object-position","bottom"]],{category:"layout"}),R("object-bottom-right",[["object-position","bottom right"]],{category:"layout"}),V({name:"object",prop:"object-position",supportsArbitrary:!0,supportsCustomProperty:!0,description:"object-position utility (arbitrary value, custom property supported)",category:"layout"}),R("overflow-auto",[["overflow","auto"]],{category:"layout"}),R("overflow-hidden",[["overflow","hidden"]],{category:"layout"}),R("overflow-clip",[["overflow","clip"]],{category:"layout"}),R("overflow-visible",[["overflow","visible"]],{category:"layout"}),R("overflow-scroll",[["overflow","scroll"]],{category:"layout"}),R("overflow-x-auto",[["overflow-x","auto"]],{category:"layout"}),R("overflow-y-auto",[["overflow-y","auto"]],{category:"layout"}),R("overflow-x-hidden",[["overflow-x","hidden"]],{category:"layout"}),R("overflow-y-hidden",[["overflow-y","hidden"]],{category:"layout"}),R("overflow-x-clip",[["overflow-x","clip"]],{category:"layout"}),R("overflow-y-clip",[["overflow-y","clip"]],{category:"layout"}),R("overflow-x-visible",[["overflow-x","visible"]],{category:"layout"}),R("overflow-y-visible",[["overflow-y","visible"]],{category:"layout"}),R("overflow-x-scroll",[["overflow-x","scroll"]],{category:"layout"}),R("overflow-y-scroll",[["overflow-y","scroll"]],{category:"layout"}),R("overscroll-auto",[["overscroll-behavior","auto"]],{category:"layout"}),R("overscroll-contain",[["overscroll-behavior","contain"]],{category:"layout"}),R("overscroll-none",[["overscroll-behavior","none"]],{category:"layout"}),R("overscroll-x-auto",[["overscroll-behavior-x","auto"]],{category:"layout"}),R("overscroll-x-contain",[["overscroll-behavior-x","contain"]],{category:"layout"}),R("overscroll-x-none",[["overscroll-behavior-x","none"]],{category:"layout"}),R("overscroll-y-auto",[["overscroll-behavior-y","auto"]],{category:"layout"}),R("overscroll-y-contain",[["overscroll-behavior-y","contain"]],{category:"layout"}),R("overscroll-y-none",[["overscroll-behavior-y","none"]],{category:"layout"}),R("static",[["position","static"]],{category:"layout"}),R("fixed",[["position","fixed"]],{category:"layout"}),R("absolute",[["position","absolute"]],{category:"layout"}),R("relative",[["position","relative"]],{category:"layout"}),R("sticky",[["position","sticky"]],{category:"layout"}),[["inset-x","inset-inline"],["inset-y","inset-block"],["inset-s","inset-inline-start"],["inset-e","inset-inline-end"],["inset-bs","inset-block-start"],["inset-be","inset-block-end"],["inset","inset"],["start","inset-inline-start"],["end","inset-inline-end"],["top","top"],["right","right"],["bottom","bottom"],["left","left"]].forEach(([t,e])=>{R(`${t}-auto`,[[e,"auto"]],{category:"layout"}),R(`${t}-full`,[[e,"100%"]],{category:"layout"}),R(`-${t}-full`,[[e,"-100%"]],{category:"layout"}),R(`${t}-px`,[[e,"1px"]],{category:"layout"}),R(`-${t}-px`,[[e,"-1px"]],{category:"layout"}),V({name:t,spacingKeys:!0,prop:e,supportsNegative:!0,supportsFraction:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>{if(Yt(t))return`calc(var(--spacing) * ${t})`;const e=Ht(t);return e||null},handleNegativeBareValue:({value:t})=>{if(Yt(t))return`calc(var(--spacing) * -${t})`;const e=Ht(t);return e?`-${e}`:null},description:`${t} utility (spacing, fraction, px, full, auto, custom property, arbitrary, negative supported)`,category:"layout"})}),R("visible",[["visibility","visible"]],{category:"layout"}),R("invisible",[["visibility","hidden"]],{category:"layout"}),R("collapse",[["visibility","collapse"]],{category:"layout"}),V({name:"gap-x",spacingKeys:!0,prop:"column-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("column-gap",e)]:null,handleCustomProperty:e=>[t("column-gap",`var(${e})`)],description:"gap-x utility (number, arbitrary, custom property supported)",category:"layout"}),V({name:"gap-y",spacingKeys:!0,prop:"row-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("row-gap",e)]:null,handleCustomProperty:e=>[t("row-gap",`var(${e})`)],description:"gap-y utility (number, arbitrary, custom property supported)",category:"layout"}),V({name:"gap",spacingKeys:!0,prop:"gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("gap",e)]:null,handleCustomProperty:e=>[t("gap",`var(${e})`)],description:"gap utility (number, arbitrary, custom property supported)",category:"layout"}),V({name:"zoom",prop:"zoom",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}%`:null,description:"zoom utility (integer percent, arbitrary, custom property)",category:"layout"}),R("basis-full",[["flex-basis","100%"]],{category:"flex-grid"}),R("basis-auto",[["flex-basis","auto"]],{category:"flex-grid"}),R("basis-3xs",[["flex-basis","var(--container-3xs)"]],{category:"flex-grid"}),R("basis-2xs",[["flex-basis","var(--container-2xs)"]],{category:"flex-grid"}),R("basis-xs",[["flex-basis","var(--container-xs)"]],{category:"flex-grid"}),R("basis-sm",[["flex-basis","var(--container-sm)"]],{category:"flex-grid"}),R("basis-md",[["flex-basis","var(--container-md)"]],{category:"flex-grid"}),R("basis-lg",[["flex-basis","var(--container-lg)"]],{category:"flex-grid"}),R("basis-xl",[["flex-basis","var(--container-xl)"]],{category:"flex-grid"}),R("basis-2xl",[["flex-basis","var(--container-2xl)"]],{category:"flex-grid"}),R("basis-3xl",[["flex-basis","var(--container-3xl)"]],{category:"flex-grid"}),R("basis-4xl",[["flex-basis","var(--container-4xl)"]],{category:"flex-grid"}),R("basis-5xl",[["flex-basis","var(--container-5xl)"]],{category:"flex-grid"}),R("basis-6xl",[["flex-basis","var(--container-6xl)"]],{category:"flex-grid"}),R("basis-7xl",[["flex-basis","var(--container-7xl)"]],{category:"flex-grid"}),V({name:"basis",prop:"flex-basis",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>{if(Yt(t))return`calc(var(--container-${t}) * 1px)`;const e=Ht(t);return e||null},handleNegativeBareValue:({value:t})=>{if(Yt(t))return`calc(var(--container-${t}) * -1px)`;const e=Ht(t);return e?`-${e}`:null},description:"flex-basis utility (theme, arbitrary, custom property, fraction supported)",category:"flex-grid"}),R("flex-row",[["flex-direction","row"]],{category:"flex-grid"}),R("flex-row-reverse",[["flex-direction","row-reverse"]],{category:"flex-grid"}),R("flex-col",[["flex-direction","column"]],{category:"flex-grid"}),R("flex-col-reverse",[["flex-direction","column-reverse"]],{category:"flex-grid"}),R("flex-wrap",[["flex-wrap","wrap"]],{category:"flex-grid"}),R("flex-wrap-reverse",[["flex-wrap","wrap-reverse"]],{category:"flex-grid"}),R("flex-nowrap",[["flex-wrap","nowrap"]],{category:"flex-grid"}),R("flex-auto",[["flex","1 1 auto"]],{category:"flex-grid"}),R("flex-initial",[["flex","0 1 auto"]],{category:"flex-grid"}),R("flex-none",[["flex","none"]],{category:"flex-grid"}),R("flex-grow",[["flex-grow","1"]],{category:"flex-grid"}),V({name:"flex-grow",prop:"flex-grow",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),handle:e=>[t("flex-grow",e)],description:"flex-grow utility (number, arbitrary, custom property supported)",category:"flex-grid"}),R("flex-shrink",[["flex-shrink","1"]],{category:"flex-grid"}),V({name:"flex-shrink",prop:"flex-shrink",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),description:"flex-shrink utility (number, arbitrary, custom property supported)",category:"flex-grid"}),V({name:"flex",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>{if(Yt(t))return t;const e=Ht(t);return e?`calc(${e})`:null},handle:e=>[t("flex",e)],description:"flex shorthand utility (number, fraction, arbitrary, custom property supported)",category:"flex-grid"}),R("grow",[["flex-grow","1"]],{category:"flex-grid"}),V({name:"grow",prop:"flex-grow",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),handle:e=>[t("flex-grow",e)],description:"flex-grow utility (number, arbitrary, custom property supported)",category:"flex-grid"}),R("shrink",[["flex-shrink","1"]],{category:"flex-grid"}),R("shrink-0",[["flex-shrink","0"]],{category:"flex-grid"}),V({name:"shrink",prop:"flex-shrink",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),description:"flex-shrink utility (number, arbitrary, custom property supported)",category:"flex-grid"}),R("order-first",[["order","calc(-infinity)"]],{category:"flex-grid"}),R("order-last",[["order","calc(infinity)"]],{category:"flex-grid"}),R("order-none",[["order","0"]],{category:"flex-grid"}),V({name:"order",prop:"order",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),handleNegativeBareValue:({value:t})=>Yt(t)?`calc(${t} * -1)`:null,description:"order utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),R("grid-cols-none",[["grid-template-columns","none"]],{category:"flex-grid"}),R("grid-cols-subgrid",[["grid-template-columns","subgrid"]],{category:"flex-grid"}),V({name:"grid-cols",prop:"grid-template-columns",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t,{repeat:!0}),description:"grid-template-columns utility (number, arbitrary, custom property supported)",category:"flex-grid"}),R("grid-rows-none",[["grid-template-rows","none"]],{category:"flex-grid"}),R("grid-rows-subgrid",[["grid-template-rows","subgrid"]],{category:"flex-grid"}),V({name:"grid-rows",prop:"grid-template-rows",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t,{repeat:!0}),handle:e=>"string"==typeof e?[t("grid-template-rows",e.replace(/_/g," "))]:null,handleCustomProperty:e=>[t("grid-template-rows",`var(${e})`)],description:"grid-template-rows utility (number, arbitrary, custom property supported)",category:"flex-grid"}),R("row-span-full",[["grid-row","1 / -1"]],{category:"flex-grid"}),V({name:"row-span",prop:"grid-row",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`span ${t} / span ${t}`:null,handleCustomProperty:e=>[t("grid-row",`span var(${e}) / span var(${e})`)],handle:e=>Yt(e)?[t("grid-row",`span ${e} / span ${e}`)]:null,description:"grid-row span utility (number, arbitrary, custom property supported)",category:"flex-grid"}),R("row-start-auto",[["grid-row-start","auto"]],{category:"flex-grid"}),V({name:"row-start",prop:"grid-row-start",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),handleNegativeBareValue:({value:t})=>Yt(t)?`calc(${t} * -1)`:null,handleCustomProperty:e=>[t("grid-row-start",`var(${e})`)],handle:e=>Yt(e)||"string"==typeof e?[t("grid-row-start",e)]:null,description:"grid-row-start utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),R("row-end-auto",[["grid-row-end","auto"]],{category:"flex-grid"}),V({name:"row-end",prop:"grid-row-end",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),handleNegativeBareValue:({value:t})=>Yt(t)?`calc(${t} * -1)`:null,handleCustomProperty:e=>[t("grid-row-end",`var(${e})`)],handle:e=>Yt(e)||"string"==typeof e?[t("grid-row-end",e)]:null,description:"grid-row-end utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),R("row-auto",[["grid-row","auto"]],{category:"flex-grid"}),V({name:"row",prop:"grid-row",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),handleNegativeBareValue:({value:t})=>Yt(t)?`calc(${t} * -1)`:null,handleCustomProperty:e=>[t("grid-row",`var(${e})`)],handle:e=>Yt(e)||"string"==typeof e?[t("grid-row",e)]:null,description:"grid-row utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),R("grid-flow-row",[["grid-auto-flow","row"]],{category:"flex-grid"}),R("grid-flow-col",[["grid-auto-flow","column"]],{category:"flex-grid"}),R("grid-flow-dense",[["grid-auto-flow","dense"]],{category:"flex-grid"}),R("grid-flow-row-dense",[["grid-auto-flow","row dense"]],{category:"flex-grid"}),R("grid-flow-col-dense",[["grid-auto-flow","column dense"]],{category:"flex-grid"}),R("auto-cols-auto",[["grid-auto-columns","auto"]],{category:"flex-grid"}),R("auto-cols-min",[["grid-auto-columns","min-content"]],{category:"flex-grid"}),R("auto-cols-max",[["grid-auto-columns","max-content"]],{category:"flex-grid"}),R("auto-cols-fr",[["grid-auto-columns","minmax(0, 1fr)"]],{category:"flex-grid"}),V({name:"auto-cols",prop:"grid-auto-columns",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("grid-auto-columns",e)]:null,handleCustomProperty:e=>[t("grid-auto-columns",`var(${e})`)],description:"grid-auto-columns utility (static, arbitrary, custom property supported)",category:"flex-grid"}),R("auto-rows-auto",[["grid-auto-rows","auto"]],{category:"flex-grid"}),R("auto-rows-min",[["grid-auto-rows","min-content"]],{category:"flex-grid"}),R("auto-rows-max",[["grid-auto-rows","max-content"]],{category:"flex-grid"}),R("auto-rows-fr",[["grid-auto-rows","minmax(0, 1fr)"]],{category:"flex-grid"}),V({name:"auto-rows",prop:"grid-auto-rows",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("grid-auto-rows",e)]:null,handleCustomProperty:e=>[t("grid-auto-rows",`var(${e})`)],description:"grid-auto-rows utility (static, arbitrary, custom property supported)",category:"flex-grid"}),V({name:"gap-x",prop:"column-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Yt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("column-gap",e)]:null,handleCustomProperty:e=>[t("column-gap",`var(${e})`)],description:"gap-x utility (number, arbitrary, custom property supported)",category:"layout"}),V({name:"gap-y",prop:"row-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Yt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("row-gap",e)]:null,handleCustomProperty:e=>[t("row-gap",`var(${e})`)],description:"gap-y utility (number, arbitrary, custom property supported)",category:"layout"}),V({name:"gap",prop:"gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Yt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("gap",e)]:null,handleCustomProperty:e=>[t("gap",`var(${e})`)],description:"gap utility (number, arbitrary, custom property supported)",category:"layout"}),R("justify-start",[["justify-content","flex-start"]],{category:"flex-grid"}),R("justify-end",[["justify-content","flex-end"]],{category:"flex-grid"}),R("justify-end-safe",[["justify-content","safe flex-end"]],{category:"flex-grid"}),R("justify-center",[["justify-content","center"]],{category:"flex-grid"}),R("justify-center-safe",[["justify-content","safe center"]],{category:"flex-grid"}),R("justify-between",[["justify-content","space-between"]],{category:"flex-grid"}),R("justify-around",[["justify-content","space-around"]],{category:"flex-grid"}),R("justify-evenly",[["justify-content","space-evenly"]],{category:"flex-grid"}),R("justify-stretch",[["justify-content","stretch"]],{category:"flex-grid"}),R("justify-baseline",[["justify-content","baseline"]],{category:"flex-grid"}),R("justify-normal",[["justify-content","normal"]],{category:"flex-grid"}),R("justify-items-start",[["justify-items","start"]],{category:"flex-grid"}),R("justify-items-end",[["justify-items","end"]],{category:"flex-grid"}),R("justify-items-end-safe",[["justify-items","safe end"]],{category:"flex-grid"}),R("justify-items-center",[["justify-items","center"]],{category:"flex-grid"}),R("justify-items-center-safe",[["justify-items","safe center"]],{category:"flex-grid"}),R("justify-items-stretch",[["justify-items","stretch"]],{category:"flex-grid"}),R("justify-items-normal",[["justify-items","normal"]],{category:"flex-grid"}),R("justify-self-auto",[["justify-self","auto"]],{category:"flex-grid"}),R("justify-self-start",[["justify-self","flex-start"]],{category:"flex-grid"}),R("justify-self-center",[["justify-self","center"]],{category:"flex-grid"}),R("justify-self-center-safe",[["justify-self","safe center"]],{category:"flex-grid"}),R("justify-self-end",[["justify-self","flex-end"]],{category:"flex-grid"}),R("justify-self-end-safe",[["justify-self","safe flex-end"]],{category:"flex-grid"}),R("justify-self-stretch",[["justify-self","stretch"]],{category:"flex-grid"}),R("content-normal",[["align-content","normal"]],{category:"flex-grid"}),R("content-center",[["align-content","center"]],{category:"flex-grid"}),R("content-start",[["align-content","flex-start"]],{category:"flex-grid"}),R("content-end",[["align-content","flex-end"]],{category:"flex-grid"}),R("content-between",[["align-content","space-between"]],{category:"flex-grid"}),R("content-around",[["align-content","space-around"]],{category:"flex-grid"}),R("content-evenly",[["align-content","space-evenly"]],{category:"flex-grid"}),R("content-baseline",[["align-content","baseline"]],{category:"flex-grid"}),R("content-stretch",[["align-content","stretch"]],{category:"flex-grid"}),R("items-start",[["align-items","flex-start"]],{category:"flex-grid"}),R("items-end",[["align-items","flex-end"]],{category:"flex-grid"}),R("items-end-safe",[["align-items","safe flex-end"]],{category:"flex-grid"}),R("items-center",[["align-items","center"]],{category:"flex-grid"}),R("items-center-safe",[["align-items","safe center"]],{category:"flex-grid"}),R("items-baseline",[["align-items","baseline"]],{category:"flex-grid"}),R("items-baseline-last",[["align-items","last baseline"]],{category:"flex-grid"}),R("items-stretch",[["align-items","stretch"]],{category:"flex-grid"}),R("self-auto",[["align-self","auto"]],{category:"flex-grid"}),R("self-start",[["align-self","flex-start"]],{category:"flex-grid"}),R("self-end",[["align-self","flex-end"]],{category:"flex-grid"}),R("self-end-safe",[["align-self","safe flex-end"]],{category:"flex-grid"}),R("self-center",[["align-self","center"]],{category:"flex-grid"}),R("self-center-safe",[["align-self","safe center"]],{category:"flex-grid"}),R("self-stretch",[["align-self","stretch"]],{category:"flex-grid"}),R("self-baseline",[["align-self","baseline"]],{category:"flex-grid"}),R("self-baseline-last",[["align-self","last baseline"]],{category:"flex-grid"}),R("place-content-center",[["place-content","center"]],{category:"flex-grid"}),R("place-content-center-safe",[["place-content","safe center"]],{category:"flex-grid"}),R("place-content-start",[["place-content","start"]],{category:"flex-grid"}),R("place-content-end",[["place-content","end"]],{category:"flex-grid"}),R("place-content-end-safe",[["place-content","safe end"]],{category:"flex-grid"}),R("place-content-between",[["place-content","space-between"]],{category:"flex-grid"}),R("place-content-around",[["place-content","space-around"]],{category:"flex-grid"}),R("place-content-evenly",[["place-content","space-evenly"]],{category:"flex-grid"}),R("place-content-baseline",[["place-content","baseline"]],{category:"flex-grid"}),R("place-content-stretch",[["place-content","stretch"]],{category:"flex-grid"}),R("place-items-start",[["place-items","start"]],{category:"flex-grid"}),R("place-items-end",[["place-items","end"]],{category:"flex-grid"}),R("place-items-end-safe",[["place-items","safe end"]],{category:"flex-grid"}),R("place-items-center",[["place-items","center"]],{category:"flex-grid"}),R("place-items-center-safe",[["place-items","safe center"]],{category:"flex-grid"}),R("place-items-baseline",[["place-items","baseline"]],{category:"flex-grid"}),R("place-items-stretch",[["place-items","stretch"]],{category:"flex-grid"}),R("place-self-auto",[["place-self","auto"]],{category:"flex-grid"}),R("place-self-start",[["place-self","start"]],{category:"flex-grid"}),R("place-self-end",[["place-self","end"]],{category:"flex-grid"}),R("place-self-end-safe",[["place-self","safe end"]],{category:"flex-grid"}),R("place-self-center",[["place-self","center"]],{category:"flex-grid"}),R("place-self-center-safe",[["place-self","safe center"]],{category:"flex-grid"}),R("place-self-stretch",[["place-self","stretch"]],{category:"flex-grid"}),R("col-span-full",[["grid-column","1 / -1"]],{category:"flex-grid"}),V({name:"col-span",prop:"grid-column",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`span ${t} / span ${t}`:null,handleCustomProperty:(e,r,o)=>[t("grid-column",`span var(${e}) / span var(${e})`)],handle:(e,r,o)=>Yt(e)?[t("grid-column",`span ${e} / span ${e}`)]:null,description:"grid-column span utility (number, arbitrary, custom property supported)",category:"grid"}),R("col-start-auto",[["grid-column-start","auto"]],{category:"flex-grid"}),V({name:"col-start",prop:"grid-column-start",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),handleNegativeBareValue:({value:t})=>Yt(t)?`calc(${t} * -1)`:null,description:"grid-column-start utility (number, negative, arbitrary, custom property supported)",category:"grid"}),R("col-end-auto",[["grid-column-end","auto"]],{category:"flex-grid"}),V({name:"col-end",prop:"grid-column-end",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),handleNegativeBareValue:({value:t})=>Yt(t)?`calc(${t} * -1)`:null,description:"grid-column-end utility (number, negative, arbitrary, custom property supported)",category:"grid"}),R("col-auto",[["grid-column","auto"]],{category:"flex-grid"}),V({name:"col",prop:"grid-column",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),handleNegativeBareValue:({value:t})=>Yt(t)?`calc(${t} * -1)`:null,description:"grid-column utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),[["px","padding-inline"],["py","padding-block"],["ps","padding-inline-start"],["pe","padding-inline-end"],["pbs","padding-block-start"],["pbe","padding-block-end"],["pt","padding-top"],["pr","padding-right"],["pb","padding-bottom"],["pl","padding-left"],["p","padding"]].forEach(([t,e])=>{R(`${t}-px`,[[e,"1px"]],{category:"spacing"}),V({spacingKeys:!0,name:t,prop:e,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:null,description:`${t} utility (number, arbitrary, custom property supported)`,category:"spacing"})}),[["mx","margin-inline"],["my","margin-block"],["ms","margin-inline-start"],["me","margin-inline-end"],["mbs","margin-block-start"],["mbe","margin-block-end"],["mt","margin-top"],["mr","margin-right"],["mb","margin-bottom"],["ml","margin-left"],["m","margin"]].forEach(([t,e])=>{R(`${t}-auto`,[[e,"auto"]],{category:"spacing"}),R(`${t}-px`,[[e,"1px"]],{category:"spacing"}),R(`-${t}-px`,[[e,"-1px"]],{category:"spacing"}),V({spacingKeys:!0,name:t,prop:e,supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * -${t})`:null,description:`${t} margin utility (number, negative, arbitrary, custom property, auto, px supported)`,category:"spacing"})});var Le=":where(& > :not(:last-child))";["x","y"].forEach(r=>{const n=`space-${r}`,s=`--baro-space-${r}-reverse`,[i,l]="x"===r?["margin-inline-start","margin-inline-end"]:["margin-block-start","margin-block-end"],c=()=>e([a(s,"0")]),p=e=>o(Le,[t(s,"0"),t(i,`calc(${e} * var(${s}))`),t(l,`calc(${e} * calc(1 - var(${s})))`)]),u=t=>[c(),p(t)];R(`${n}-px`,[c,()=>p("1px")],{category:"spacing"}),R(`-${n}-px`,[c,()=>p("-1px")],{category:"spacing"}),R(`${n}-reverse`,[c,()=>o(Le,[t(s,"1")])],{category:"spacing"}),V({spacingKeys:!0,name:n,supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * -${t})`:null,handle:(t,e,r)=>{let o=String(t);return/^-?\d+(\.\d+)?$/.test(o)&&(o=`calc(var(--spacing) * ${r.negative?"-":""}${o})`),u(o)},handleCustomProperty:t=>u(`var(${t})`),description:`${n} utility (number, negative, px, arbitrary, custom property, reverse supported)`,category:"spacing"})}),[["w-auto","auto"],["w-px","1px"],["w-full","100%"],["w-screen","100vw"],["w-dvw","100dvw"],["w-dvh","100dvh"],["w-lvw","100lvw"],["w-lvh","100lvh"],["w-svw","100svw"],["w-svh","100svh"],["w-min","min-content"],["w-max","max-content"],["w-fit","fit-content"],["w-3xs","var(--container-3xs)"],["w-2xs","var(--container-2xs)"],["w-xs","var(--container-xs)"],["w-sm","var(--container-sm)"],["w-md","var(--container-md)"],["w-lg","var(--container-lg)"],["w-xl","var(--container-xl)"],["w-2xl","var(--container-2xl)"],["w-3xl","var(--container-3xl)"],["w-4xl","var(--container-4xl)"],["w-5xl","var(--container-5xl)"],["w-6xl","var(--container-6xl)"],["w-7xl","var(--container-7xl)"]].forEach(([t,e])=>{R(t,[["width",e]])}),V({spacingKeys:!0,name:"w",prop:"width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:Xt(t)?`calc(${t} * 100%)`:null,description:"width utility (spacing, fraction, arbitrary, custom property, container scale, static supported)",category:"sizing"}),[["size-auto",["auto","auto"]],["size-px",["1px","1px"]],["size-full",["100%","100%"]],["size-dvw",["100dvw","100dvw"]],["size-dvh",["100dvh","100dvh"]],["size-lvw",["100lvw","100lvw"]],["size-lvh",["100lvh","100lvh"]],["size-svw",["100svw","100svw"]],["size-svh",["100svh","100svh"]],["size-min",["min-content","min-content"]],["size-max",["max-content","max-content"]],["size-fit",["fit-content","fit-content"]]].forEach(([t,[e,r]])=>{R(t,[["width",e],["height",r]])}),V({spacingKeys:!0,name:"size",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:Xt(t)?`calc(${t} * 100%)`:null,handle:e=>[t("width",e),t("height",e)],handleCustomProperty:e=>[t("width",`var(${e})`),t("height",`var(${e})`)],description:"size utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["h-auto","auto"],["h-px","1px"],["h-full","100%"],["h-screen","100vh"],["h-dvh","100dvh"],["h-lvh","100lvh"],["h-svh","100svh"],["h-min","min-content"],["h-max","max-content"],["h-fit","fit-content"]].forEach(([t,e])=>{R(t,[["height",e]])}),V({spacingKeys:!0,name:"h",prop:"height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:Xt(t)?`calc(${t} * 100%)`:null,description:"height utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["min-h-0","0px"],["min-h-px","1px"],["min-h-full","100%"],["min-h-screen","100vh"],["min-h-dvh","100dvh"],["min-h-lvh","100lvh"],["min-h-svh","100svh"],["min-h-min","min-content"],["min-h-max","max-content"],["min-h-fit","fit-content"]].forEach(([t,e])=>{R(t,[["min-height",e]],{category:"sizing"})}),V({spacingKeys:!0,name:"min-h",prop:"min-height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:Xt(t)?`calc(${t} * 100%)`:null,description:"min-height utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["max-h-px","1px"],["max-h-full","100%"],["max-h-screen","100vh"],["max-h-dvh","100dvh"],["max-h-lvh","100lvh"],["max-h-svh","100svh"],["max-h-min","min-content"],["max-h-max","max-content"],["max-h-fit","fit-content"],["max-h-none","none"]].forEach(([t,e])=>{R(t,[["max-height",e]],{category:"sizing"})}),V({spacingKeys:!0,name:"max-h",prop:"max-height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:Xt(t)?`calc(${t} * 100%)`:null,description:"max-height utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["min-w-auto","auto"],["min-w-px","1px"],["min-w-full","100%"],["min-w-screen","100vw"],["min-w-dvw","100dvw"],["min-w-dvh","100dvh"],["min-w-lvw","100lvw"],["min-w-lvh","100lvh"],["min-w-svw","100svw"],["min-w-svh","100svh"],["min-w-min","min-content"],["min-w-max","max-content"],["min-w-fit","fit-content"],["min-w-3xs","var(--container-3xs)"],["min-w-2xs","var(--container-2xs)"],["min-w-xs","var(--container-xs)"],["min-w-sm","var(--container-sm)"],["min-w-md","var(--container-md)"],["min-w-lg","var(--container-lg)"],["min-w-xl","var(--container-xl)"],["min-w-2xl","var(--container-2xl)"],["min-w-3xl","var(--container-3xl)"],["min-w-4xl","var(--container-4xl)"],["min-w-5xl","var(--container-5xl)"],["min-w-6xl","var(--container-6xl)"],["min-w-7xl","var(--container-7xl)"]].forEach(([t,e])=>{R(t,[["min-width",e]],{category:"sizing"})}),V({spacingKeys:!0,name:"min-w",prop:"min-width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:Xt(t)?`calc(${t} * 100%)`:null,description:"min-width utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["max-w-none","none"],["max-w-min","min-content"],["max-w-max","max-content"],["max-w-fit","fit-content"],["max-w-xs","var(--container-xs)"],["max-w-sm","var(--container-sm)"],["max-w-md","var(--container-md)"],["max-w-lg","var(--container-lg)"],["max-w-xl","var(--container-xl)"],["max-w-2xl","var(--container-2xl)"],["max-w-3xl","var(--container-3xl)"],["max-w-4xl","var(--container-4xl)"],["max-w-5xl","var(--container-5xl)"],["max-w-6xl","var(--container-6xl)"],["max-w-7xl","var(--container-7xl)"]].forEach(([t,e])=>{R(t,[["max-width",e]],{category:"sizing"})}),V({spacingKeys:!0,name:"max-w",prop:"max-width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>Yt(t)?`calc(var(--spacing) * ${t})`:Xt(t)?`calc(${t} * 100%)`:N(e,"container",t,"container"),description:"max-width utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"});{const t=["3xs","2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"].map(t=>[t,`var(--container-${t})`]),e=[["0","0px"],["px","1px"],["full","100%"],["min","min-content"],["max","max-content"],["fit","fit-content"]],r=[["screen","100vw"],["dvw","100dvw"],["lvw","100lvw"],["svw","100svw"]],o=[["screen","100vh"],["dvh","100dvh"],["lvh","100lvh"],["svh","100svh"],["lh","1lh"]],a=[["inline","inline-size",[...e,["auto","auto"],...r,...t]],["min-inline","min-inline-size",[...e,["auto","auto"],...r,...t]],["max-inline","max-inline-size",[...e,["none","none"],...r,...t]],["block","block-size",[...e,["auto","auto"],...o]],["min-block","min-block-size",[...e,["auto","auto"],...o]],["max-block","max-block-size",[...e,["none","none"],...o]]];for(const[n,s,i]of a){for(const[t,e]of i)R(`${n}-${t}`,[[s,e]],{category:"sizing"});V({spacingKeys:!0,name:n,prop:s,supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,token:e,ctx:r})=>e.negative?null:Yt(t)?`calc(var(--spacing) * ${t})`:Xt(t)?`calc(${t} * 100%)`:n.includes("inline")?N(r,"container",t,"container"):null,description:`${s} utility (spacing, fraction, arbitrary, custom property, keywords)`,category:"sizing"})}}var Ie=()=>e([a("--baro-leading")]);function Ze(e){k({name:`font-${e}`,match:t=>t===`font-${e}`,handler:(r,o)=>{const a=N(o,"fontFamily",e,"font");return a?[t("font-family",a)]:[t("font-weight",`var(--font-weight-${e})`)]},category:"typography"})}R("font-sans",[["font-family","var(--font-sans)"]],{category:"typography"}),R("font-serif",[["font-family","var(--font-serif)"]],{category:"typography"}),R("font-mono",[["font-family","var(--font-mono)"]],{category:"typography"}),R("text-xs",[["font-size","var(--text-xs)"],["line-height","var(--baro-leading, var(--text-xs--line-height))"]],{category:"typography"}),R("text-sm",[["font-size","var(--text-sm)"],["line-height","var(--baro-leading, var(--text-sm--line-height))"]],{category:"typography"}),R("text-base",[["font-size","var(--text-base)"],["line-height","var(--baro-leading, var(--text-base--line-height))"]],{category:"typography"}),R("text-lg",[["font-size","var(--text-lg)"],["line-height","var(--baro-leading, var(--text-lg--line-height))"]],{category:"typography"}),R("text-xl",[["font-size","var(--text-xl)"],["line-height","var(--baro-leading, var(--text-xl--line-height))"]],{category:"typography"}),R("text-2xl",[["font-size","var(--text-2xl)"],["line-height","var(--baro-leading, var(--text-2xl--line-height))"]],{category:"typography"}),R("text-3xl",[["font-size","var(--text-3xl)"],["line-height","var(--baro-leading, var(--text-3xl--line-height))"]],{category:"typography"}),R("text-4xl",[["font-size","var(--text-4xl)"],["line-height","var(--baro-leading, var(--text-4xl--line-height))"]],{category:"typography"}),R("text-5xl",[["font-size","var(--text-5xl)"],["line-height","var(--baro-leading, var(--text-5xl--line-height))"]],{category:"typography"}),R("text-6xl",[["font-size","var(--text-6xl)"],["line-height","var(--baro-leading, var(--text-6xl--line-height))"]],{category:"typography"}),R("text-7xl",[["font-size","var(--text-7xl)"],["line-height","var(--baro-leading, var(--text-7xl--line-height))"]],{category:"typography"}),R("text-8xl",[["font-size","var(--text-8xl)"],["line-height","var(--baro-leading, var(--text-8xl--line-height))"]],{category:"typography"}),R("text-9xl",[["font-size","var(--text-9xl)"],["line-height","var(--baro-leading, var(--text-9xl--line-height))"]],{category:"typography"}),Ze("thin"),Ze("extralight"),Ze("light"),Ze("normal"),Ze("medium"),Ze("semibold"),Ze("bold"),Ze("extrabold"),Ze("black"),V({name:"font",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>N(e,"fontFamily",t,"font")??N(e,"fontWeight",t,"font-weight")??(/^(\d|\.\d)/.test(t)?t:null),handle:(e,r,o)=>"font"!==o.prefix?null:!o.arbitrary&&e.startsWith("var(--font-weight-")||Yt(e)?[t("font-weight",e)]:[t("font-family",e)],handleCustomProperty:(e,r,o)=>"font"!==o.prefix?null:e.startsWith("font-name:")?[t("font-family",`var(${e.replace("font-name:","")})`)]:[t("font-weight",`var(${e})`)],description:"font-weight utility (theme, number, arbitrary, custom property supported)",category:"typography"}),R("italic",[["font-style","italic"]],{category:"typography"}),R("not-italic",[["font-style","normal"]],{category:"typography"}),R("tracking-tighter",[["letter-spacing","var(--letter-spacing-tighter)"]],{category:"typography"}),R("tracking-tight",[["letter-spacing","var(--letter-spacing-tight)"]],{category:"typography"}),R("tracking-normal",[["letter-spacing","var(--letter-spacing-normal)"]],{category:"typography"}),R("tracking-wide",[["letter-spacing","var(--letter-spacing-wide)"]],{category:"typography"}),R("tracking-wider",[["letter-spacing","var(--letter-spacing-wider)"]],{category:"typography"}),R("tracking-widest",[["letter-spacing","var(--letter-spacing-widest)"]],{category:"typography"}),V({name:"tracking",prop:"letter-spacing",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>N(e,"letterSpacing",t,"letter-spacing")??(/^(\d|\.\d)/.test(t)?t:null),description:"letter-spacing utility (theme, arbitrary, custom property supported)",category:"typography"}),R("leading-none",[["--baro-leading","var(--leading-none, 1)"],["line-height","var(--leading-none, 1)"],Ie()],{category:"typography"}),R("leading-tight",[["--baro-leading","var(--leading-tight, 1.25)"],["line-height","var(--leading-tight, 1.25)"],Ie()],{category:"typography"}),R("leading-snug",[["--baro-leading","var(--leading-snug, 1.375)"],["line-height","var(--leading-snug, 1.375)"],Ie()],{category:"typography"}),R("leading-normal",[["--baro-leading","var(--leading-normal, 1.5)"],["line-height","var(--leading-normal, 1.5)"],Ie()],{category:"typography"}),R("leading-relaxed",[["--baro-leading","var(--leading-relaxed, 1.625)"],["line-height","var(--leading-relaxed, 1.625)"],Ie()],{category:"typography"}),R("leading-loose",[["--baro-leading","var(--leading-loose, 2)"],["line-height","var(--leading-loose, 2)"],Ie()],{category:"typography"}),V({name:"leading",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>{const r=T(e,"lineHeight",t);if(null!=r)return`var(--leading-${t}, ${r})`;const o=e.theme("lineHeight",t);return"string"==typeof o?o:Yt(t)},handle:e=>[t("--baro-leading",e),t("line-height",e),Ie()],handleCustomProperty:e=>[t("--baro-leading",`var(${e})`),t("line-height",`var(${e})`),Ie()],description:"line-height utility (theme, number, arbitrary, custom property supported)",category:"typography"}),R("text-left",[["text-align","left"]],{category:"typography"}),R("text-center",[["text-align","center"]],{category:"typography"}),R("text-right",[["text-align","right"]],{category:"typography"}),R("text-justify",[["text-align","justify"]],{category:"typography"}),R("text-start",[["text-align","start"]],{category:"typography"}),R("text-end",[["text-align","end"]],{category:"typography"});var _e=/* @__PURE__ */new Set(["length","size","percentage","absolute-size","relative-size"]),qe=/^(xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large|larger|smaller)$/,Ue=/^-?(\d+\.?\d*|\.\d+)(px|r?em|r?lh|r?cap|r?ch|r?ex|r?ic|%|vh|vw|vmin|vmax|[sdl]v[hwib]|v[ib]|cq[whib]|cqmin|cqmax|pt|pc|in|cm|mm|q)$/i;function He(t){const e=/^([a-z-]+):(.+)$/.exec(t);return e&&("color"===e[1]||_e.has(e[1]))?{fontSize:"color"!==e[1],value:e[2]}:{fontSize:"0"===t||Ue.test(t)||qe.test(t)||/^(calc|min|max|clamp)\(/.test(t),value:t}}R("text-inherit",[["color","inherit"]],{category:"typography"}),R("text-current",[["color","currentColor"]],{category:"typography"}),R("text-transparent",[["color","transparent"]],{category:"typography"}),R("truncate",[["overflow","hidden"],["text-overflow","ellipsis"],["white-space","nowrap"]],{category:"typography"}),R("text-ellipsis",[["text-overflow","ellipsis"]],{category:"typography"}),R("text-clip",[["text-overflow","clip"]],{category:"typography"}),V({name:"text",themeKey:"colors",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handleBareValue:({value:t,ctx:e,extra:r})=>(r?.opacity?null:N(e,"fontSize",t,"text"))??(/^(\d|\.\d)/.test(t)?t:null),handle:(e,r,o,a)=>{if(a?.realThemeValue)return ee("color",e,a);const n=o.arbitrary||o.customProperty?void 0:/^var\(--text-([\w-]+)\)$/.exec(e)?.[1];if(n)return nt(r.theme("fontSize",n))?[t("font-size",e),t("line-height",`var(--baro-leading, var(--text-${n}--line-height))`)]:[t("font-size",e)];const s=He(e);return[t(s.fontSize?"font-size":"color",s.value)]},handleCustomProperty:e=>{const r=He(e);return[t(r.fontSize?"font-size":"color",`var(${r.value})`)]},description:"text color utility (theme, arbitrary, custom property supported)",category:"typography"}),V({name:"text",themeKey:"fontSize",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>{const a=r.theme("fontSize",e);return a?Array.isArray(a)?[t("font-size",a[0]),t("line-height",`var(--baro-leading, ${a[1]})`)]:[t("font-size",a)]:o.arbitrary?[t("font-size",e)]:null},handleCustomProperty:e=>[t("font-size",`var(${e})`)],description:"font-size utility (theme, arbitrary, custom property supported)",category:"typography"}),R("uppercase",[["text-transform","uppercase"]],{category:"typography"}),R("lowercase",[["text-transform","lowercase"]],{category:"typography"}),R("capitalize",[["text-transform","capitalize"]],{category:"typography"}),R("normal-case",[["text-transform","none"]],{category:"typography"}),R("underline",[["text-decoration-line","underline"]],{category:"typography"}),R("overline",[["text-decoration-line","overline"]],{category:"typography"}),R("line-through",[["text-decoration-line","line-through"]],{category:"typography"}),R("no-underline",[["text-decoration-line","none"]],{category:"typography"}),R("whitespace-normal",[["white-space","normal"]],{category:"typography"}),R("whitespace-nowrap",[["white-space","nowrap"]],{category:"typography"}),R("whitespace-pre",[["white-space","pre"]],{category:"typography"}),R("whitespace-pre-line",[["white-space","pre-line"]],{category:"typography"}),R("whitespace-pre-wrap",[["white-space","pre-wrap"]],{category:"typography"}),R("whitespace-break-spaces",[["white-space","break-spaces"]],{category:"typography"}),R("break-normal",[["overflow-wrap","normal"],["word-break","normal"]],{category:"typography"}),R("break-words",[["overflow-wrap","break-word"]],{category:"typography"}),R("break-all",[["word-break","break-all"]],{category:"typography"}),R("break-keep",[["word-break","keep-all"]],{category:"typography"}),R("antialiased",[["-webkit-font-smoothing","antialiased"],["-moz-osx-font-smoothing","grayscale"]],{category:"typography"}),R("subpixel-antialiased",[["-webkit-font-smoothing","auto"],["-moz-osx-font-smoothing","auto"]],{category:"typography"}),R("font-stretch-normal",[["font-stretch","normal"]],{category:"typography"}),R("font-stretch-ultra-condensed",[["font-stretch","ultra-condensed"]],{category:"typography"}),R("font-stretch-extra-condensed",[["font-stretch","extra-condensed"]],{category:"typography"}),R("font-stretch-condensed",[["font-stretch","condensed"]],{category:"typography"}),R("font-stretch-semi-condensed",[["font-stretch","semi-condensed"]],{category:"typography"}),R("font-stretch-semi-expanded",[["font-stretch","semi-expanded"]],{category:"typography"}),R("font-stretch-expanded",[["font-stretch","expanded"]],{category:"typography"}),R("font-stretch-extra-expanded",[["font-stretch","extra-expanded"]],{category:"typography"}),R("font-stretch-ultra-expanded",[["font-stretch","ultra-expanded"]],{category:"typography"}),V({name:"font-stretch",prop:"font-stretch",supportsArbitrary:!0,supportsCustomProperty:!0,description:"font-stretch utility (arbitrary, custom property supported)",category:"typography"}),R("normal-nums",[["font-variant-numeric","normal"]],{category:"typography"}),R("ordinal",[["font-variant-numeric","ordinal"]],{category:"typography"}),R("slashed-zero",[["font-variant-numeric","slashed-zero"]],{category:"typography"}),R("lining-nums",[["font-variant-numeric","lining-nums"]],{category:"typography"}),R("oldstyle-nums",[["font-variant-numeric","oldstyle-nums"]],{category:"typography"}),R("proportional-nums",[["font-variant-numeric","proportional-nums"]],{category:"typography"}),R("tabular-nums",[["font-variant-numeric","tabular-nums"]],{category:"typography"}),R("diagonal-fractions",[["font-variant-numeric","diagonal-fractions"]],{category:"typography"}),R("stacked-fractions",[["font-variant-numeric","stacked-fractions"]],{category:"typography"}),R("line-clamp-none",[["-webkit-line-clamp","none"]],{category:"typography"}),V({name:"line-clamp",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t),handle:e=>[t("overflow","hidden"),t("display","-webkit-box"),t("-webkit-box-orient","vertical"),t("-webkit-line-clamp",e)],handleCustomProperty:e=>[t("overflow","hidden"),t("display","-webkit-box"),t("-webkit-box-orient","vertical"),t("-webkit-line-clamp",`var(${e})`)],description:"line-clamp utility (number, arbitrary, custom property supported)",category:"typography"}),R("list-none",[["list-style-type","none"]],{category:"typography"}),R("list-disc",[["list-style-type","disc"]],{category:"typography"}),R("list-decimal",[["list-style-type","decimal"]],{category:"typography"}),V({name:"list",prop:"list-style-type",themeKey:"listStyleType",supportsArbitrary:!0,supportsCustomProperty:!0,description:"list-style-type utility (theme, arbitrary, custom property supported)",category:"typography"}),R("list-inside",[["list-style-position","inside"]],{category:"typography"}),R("list-outside",[["list-style-position","outside"]],{category:"typography"}),R("list-image-none",[["list-style-image","none"]],{category:"typography"}),V({name:"list-image",prop:"list-style-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>[t("list-style-image",`url(${e})`)],handleCustomProperty:e=>[t("list-style-image",`var(${e})`)],description:"list-style-image utility (arbitrary, custom property supported)",category:"typography"}),V({name:"decoration",themeKeys:["textDecorationThickness","colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(e,r,o,a)=>"textDecorationThickness"===a?.themeNamespace?[t("text-decoration-thickness",e)]:a?.realThemeValue?ee("text-decoration-color",e,a):[t("text-decoration-color",e)],handleCustomProperty:e=>[t("text-decoration-color",`var(${e})`)],description:"text-decoration-color utility (theme, arbitrary, custom property supported)",category:"typography"}),R("decoration-solid",[["text-decoration-style","solid"]],{category:"typography"}),R("decoration-double",[["text-decoration-style","double"]],{category:"typography"}),R("decoration-dotted",[["text-decoration-style","dotted"]],{category:"typography"}),R("decoration-dashed",[["text-decoration-style","dashed"]],{category:"typography"}),R("decoration-wavy",[["text-decoration-style","wavy"]],{category:"typography"}),R("decoration-auto",[["text-decoration-thickness","auto"]],{category:"typography"}),R("decoration-from-font",[["text-decoration-thickness","from-font"]],{category:"typography"}),R("decoration-0",[["text-decoration-thickness","0px"]],{category:"typography"}),R("decoration-1",[["text-decoration-thickness","1px"]],{category:"typography"}),R("decoration-2",[["text-decoration-thickness","2px"]],{category:"typography"}),R("decoration-4",[["text-decoration-thickness","4px"]],{category:"typography"}),R("decoration-8",[["text-decoration-thickness","8px"]],{category:"typography"}),V({name:"decoration",prop:"text-decoration-thickness",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`${t}px`:null,description:"text-decoration-thickness utility (arbitrary, custom property supported)",category:"typography"}),R("underline-offset-auto",[["text-underline-offset","auto"]],{category:"typography"}),R("underline-offset-0",[["text-underline-offset","0px"]],{category:"typography"}),R("underline-offset-1",[["text-underline-offset","1px"]],{category:"typography"}),R("underline-offset-2",[["text-underline-offset","2px"]],{category:"typography"}),R("underline-offset-4",[["text-underline-offset","4px"]],{category:"typography"}),R("underline-offset-8",[["text-underline-offset","8px"]],{category:"typography"}),V({name:"underline-offset",prop:"text-underline-offset",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`${t}px`:null,description:"text-underline-offset utility (arbitrary, custom property supported)",category:"typography"}),R("text-wrap",[["text-wrap","wrap"]],{category:"typography"}),R("text-nowrap",[["text-wrap","nowrap"]],{category:"typography"}),R("text-balance",[["text-wrap","balance"]],{category:"typography"}),R("text-pretty",[["text-wrap","pretty"]],{category:"typography"}),V({name:"indent",prop:"text-indent",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Yt(t)?`calc(var(--spacing) * -${t})`:null,description:"text-indent utility (spacing, negative, arbitrary, custom property supported)",category:"typography"}),R("align-baseline",[["vertical-align","baseline"]],{category:"typography"}),R("align-top",[["vertical-align","top"]],{category:"typography"}),R("align-middle",[["vertical-align","middle"]],{category:"typography"}),R("align-bottom",[["vertical-align","bottom"]],{category:"typography"}),R("align-text-top",[["vertical-align","text-top"]],{category:"typography"}),R("align-text-bottom",[["vertical-align","text-bottom"]],{category:"typography"}),R("align-sub",[["vertical-align","sub"]],{category:"typography"}),R("align-super",[["vertical-align","super"]],{category:"typography"}),V({name:"align",prop:"vertical-align",supportsArbitrary:!0,supportsCustomProperty:!0,description:"vertical-align utility (arbitrary, custom property supported)",category:"typography"}),R("hyphens-none",[["hyphens","none"]],{category:"typography"}),R("hyphens-manual",[["hyphens","manual"]],{category:"typography"}),R("hyphens-auto",[["hyphens","auto"]],{category:"typography"}),R("content-none",[["--baro-content","none"],["content","none"]],{category:"typography"}),V({name:"content",prop:"content",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>[t("--baro-content",e),t("content","var(--baro-content)")],handleCustomProperty:e=>[t("--baro-content",`var(${e})`),t("content","var(--baro-content)")],description:"content utility (arbitrary, custom property supported)",category:"typography"});var Ye=e=>[o("&::placeholder",[t("color",e)])];R("placeholder-inherit",Ye("inherit"),{category:"typography"}),R("placeholder-current",Ye("currentcolor"),{category:"typography"}),R("placeholder-transparent",Ye("transparent"),{category:"typography"}),V({name:"placeholder",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,e,r,a)=>a?.realThemeValue?[o("&::placeholder",ee("color",t,a))]:Qt(t)?Ye(t):null,handleCustomProperty:t=>Ye(`var(${t})`),description:"placeholder color utility (theme, alpha, arbitrary, custom property)"}),V({name:"font-features",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>o.arbitrary?[t("font-feature-settings",e)]:null,handleCustomProperty:e=>[t("font-feature-settings",`var(${e.replace(/^[a-z-]+:(?=--)/,"")})`)],description:"font-feature-settings utility (arbitrary, custom property)",category:"typography"}),V({name:"tab",prop:"tab-size",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?t:null,description:"tab-size utility (integer, arbitrary, custom property)",category:"typography"});var Ge=()=>e([a("--baro-gradient-position"),a("--baro-gradient-from","#0000","<color>"),a("--baro-gradient-via","#0000","<color>"),a("--baro-gradient-to","#0000","<color>"),a("--baro-gradient-stops"),a("--baro-gradient-via-stops"),a("--baro-gradient-from-position","0%","<length-percentage>"),a("--baro-gradient-via-position","50%","<length-percentage>"),a("--baro-gradient-to-position","100%","<length-percentage>")],"background");R("bg-fixed",[["background-attachment","fixed"]],{category:"background"}),R("bg-local",[["background-attachment","local"]],{category:"background"}),R("bg-scroll",[["background-attachment","scroll"]],{category:"background"}),R("bg-clip-border",[["background-clip","border-box"]],{category:"background"}),R("bg-clip-padding",[["background-clip","padding-box"]],{category:"background"}),R("bg-clip-content",[["background-clip","content-box"]],{category:"background"}),R("bg-clip-text",[["background-clip","text"]],{category:"background"}),R("bg-inherit",[["background-color","inherit"]],{category:"background"}),R("bg-current",[["background-color","currentColor"]],{category:"background"}),R("bg-transparent",[["background-color","transparent"]],{category:"background"}),R("bg-none",[["background-image","none"]],{category:"background"}),R("bg-origin-border",[["background-origin","border-box"]],{category:"background"}),R("bg-origin-padding",[["background-origin","padding-box"]],{category:"background"}),R("bg-origin-content",[["background-origin","content-box"]],{category:"background"}),[["bg-bottom","bottom"],["bg-center","center"],["bg-left","left"],["bg-left-bottom","left bottom"],["bg-left-top","left top"],["bg-right","right"],["bg-right-bottom","right bottom"],["bg-right-top","right top"],["bg-top","top"]].forEach(([t,e])=>{R(t,[["background-position",e]],{category:"background"})}),V({name:"bg-position",prop:"background-position",supportsArbitrary:!0,supportsCustomProperty:!0,description:"background-position utility (arbitrary, custom property supported)",category:"background"}),R("bg-repeat",[["background-repeat","repeat"]],{category:"background"}),R("bg-no-repeat",[["background-repeat","no-repeat"]],{category:"background"}),R("bg-repeat-x",[["background-repeat","repeat-x"]],{category:"background"}),R("bg-repeat-y",[["background-repeat","repeat-y"]],{category:"background"}),R("bg-repeat-round",[["background-repeat","round"]],{category:"background"}),R("bg-repeat-space",[["background-repeat","space"]],{category:"background"}),R("bg-auto",[["background-size","auto"]],{category:"background"}),R("bg-cover",[["background-size","cover"]],{category:"background"}),R("bg-contain",[["background-size","contain"]],{category:"background"}),V({name:"bg-size",prop:"background-size",supportsArbitrary:!0,supportsCustomProperty:!0,description:"background-size utility (arbitrary, custom property supported)",category:"background"});var Xe=e=>[t("--baro-gradient-position",e),r("supports","(background-image: linear-gradient(in lab, red, red))",[t("--baro-gradient-position",`${e} in oklab`)]),t("background-image","linear-gradient(var(--baro-gradient-stops))")],Je=e=>[t("--baro-gradient-position",`${e} in oklab`),t("background-image","linear-gradient(var(--baro-gradient-stops))")];[["bg-linear-to-t",Xe("to top")],["bg-linear-to-tr",Xe("to top right")],["bg-linear-to-r",Xe("to right")],["bg-linear-to-br",Xe("to bottom right")],["bg-linear-to-b",Xe("to bottom")],["bg-linear-to-bl",Xe("to bottom left")],["bg-linear-to-l",Xe("to left")],["bg-linear-to-tl",Xe("to top left")],["bg-gradient-to-t",Je("to top")],["bg-gradient-to-tr",Je("to top right")],["bg-gradient-to-r",Je("to right")],["bg-gradient-to-br",Je("to bottom right")],["bg-gradient-to-b",Je("to bottom")],["bg-gradient-to-bl",Je("to bottom left")],["bg-gradient-to-l",Je("to left")],["bg-gradient-to-tl",Je("to top left")]].forEach(([t,e])=>{R(t,e,{category:"background",priority:1e3})}),V({name:"bg-linear",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Yt(e)?Xe(`${e}deg`):o.arbitrary?[t("background-image",`linear-gradient(var(--baro-gradient-stops, ${e}))`)]:o.customProperty?[t("background-image",`linear-gradient(var(--baro-gradient-stops, var(${e})))`)]:null,handleCustomProperty:e=>[t("background-image",`linear-gradient(var(--baro-gradient-stops, var(${e})))`)],description:"linear-gradient background-image utility (angle, arbitrary, custom property supported)",category:"background"});var Qe=(e,r,o)=>[t("--baro-gradient-position",r),t("background-image",`${e}(var(--baro-gradient-stops${o?`,${o}`:""}))`)];R("bg-radial",Qe("radial-gradient","in oklab"),{category:"background"}),V({name:"bg-radial",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,r)=>r.arbitrary?Qe("radial-gradient",t,t):r.customProperty?Qe("radial-gradient",`var(${t})`,`var(${t})`):null,handleCustomProperty:t=>Qe("radial-gradient",`var(${t})`,`var(${t})`),description:"radial-gradient background-image utility (arbitrary, custom property supported)",category:"background"}),R("bg-conic",Qe("conic-gradient","in oklab"),{category:"background"}),V({name:"bg-conic",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,r)=>r.arbitrary||r.customProperty||!Yt(t)?r.arbitrary?Qe("conic-gradient",t,t):r.customProperty?Qe("conic-gradient",`var(${t})`,`var(${t})`):null:Qe("conic-gradient",`from ${t}deg in oklab`),handleCustomProperty:t=>Qe("conic-gradient",`var(${t})`,`var(${t})`),description:"conic-gradient background-image utility (angle, arbitrary, custom property supported)",category:"background"});var tr="--baro-gradient",er=(e,r)=>{const o="string"==typeof r?[t(`${tr}-${e}`,r)]:r;return"via"===e?[Ge(),...o,t(`${tr}-via-stops`,`var(${tr}-position), var(${tr}-from) var(${tr}-from-position), var(${tr}-via) var(${tr}-via-position), var(${tr}-to) var(${tr}-to-position)`),t(`${tr}-stops`,`var(${tr}-via-stops)`)]:[Ge(),...o,t(`${tr}-stops`,`var(${tr}-via-stops, var(${tr}-position), var(${tr}-from) var(${tr}-from-position), var(${tr}-to) var(${tr}-to-position))`)]};["from","via","to"].forEach(e=>{V({name:e,themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(r,o,a,n)=>n?.realThemeValue?er(e,ee(`${tr}-${e}`,r,n)):Gt(r)?[Ge(),t(`${tr}-${e}-position`,r)]:Yt(r)?[Ge(),t(`${tr}-${e}-position`,`${r}%`)]:Qt(r)?er(e,r):null,handleCustomProperty:r=>[t(`--baro-gradient-${e}`,`var(${r})`)],description:`${e} gradient stop utility (color, percent, custom property, arbitrary supported)`,category:"background"}),V({name:`${e}-position`,supportsArbitrary:!0,supportsCustomProperty:!0,handle:r=>[t(`--baro-gradient-${e}-position`,r)],handleCustomProperty:r=>[t(`--baro-gradient-${e}-position`,`var(${r})`)],description:`${e}-position gradient stop position utility (percent, custom property, arbitrary supported)`,category:"background"})});var rr={position:"background-position",percentage:"background-position",size:"background-size",length:"background-size","bg-size":"background-size",image:"background-image",url:"background-image"};function or(t){const e=/^([a-z-]+):(.+)$/.exec(t),r=e?rr[e[1]]:void 0;return e&&r?[r,e[2]]:null}V({name:"bg",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(e,r,o,a)=>{if(e.startsWith("url("))return[t("background-image",e)];const n=or(e);if(n)return[t(n[0],n[1])];if(a?.realThemeValue)return ee("background-color",e,a);if(Qt(e)){const r=Qt(e);return e.startsWith("color:")?[t("background-color",r||e)]:[t("background-color",e)]}return Gt(e)?[t("background-size",e)]:null},handleCustomProperty:e=>{const r=or(e);return r?[t(r[0],`var(${r[1]})`)]:[t("background-color",`var(${e})`)]},description:"background-size utility (arbitrary, custom property supported)",category:"background"}),R("rounded-none",[["border-radius","0px"]],{category:"borders"}),R("rounded-sm",[["border-radius","var(--radius-sm)"]],{category:"borders"}),R("rounded",[["border-radius","0.25rem"]],{category:"borders"}),R("rounded-md",[["border-radius","var(--radius-md)"]],{category:"borders"}),R("rounded-lg",[["border-radius","var(--radius-lg)"]],{category:"borders"}),R("rounded-xl",[["border-radius","var(--radius-xl)"]],{category:"borders"}),R("rounded-2xl",[["border-radius","var(--radius-2xl)"]],{category:"borders"}),R("rounded-3xl",[["border-radius","var(--radius-3xl)"]],{category:"borders"}),R("rounded-4xl",[["border-radius","var(--radius-4xl)"]],{category:"borders"}),R("rounded-xs",[["border-radius","var(--radius-xs)"]],{category:"borders"});var ar="calc(infinity * 1px)";function nr(e,r){k({name:e,match:t=>t===e,handler:(e,o)=>{const a=T(o,"borderRadius","full"),n=null!=a&&"9999px"!==a&&a!==ar?"var(--radius-full)":ar;return r.map(e=>t(e,n))},category:"borders"})}nr("rounded-full",["border-radius"]),[["rounded-t",["border-top-left-radius","border-top-right-radius"]],["rounded-r",["border-top-right-radius","border-bottom-right-radius"]],["rounded-b",["border-bottom-right-radius","border-bottom-left-radius"]],["rounded-l",["border-top-left-radius","border-bottom-left-radius"]],["rounded-tl",["border-top-left-radius"]],["rounded-tr",["border-top-right-radius"]],["rounded-br",["border-bottom-right-radius"]],["rounded-bl",["border-bottom-left-radius"]],["rounded-s",["border-start-start-radius","border-end-start-radius"]],["rounded-e",["border-start-end-radius","border-end-end-radius"]],["rounded-ss",["border-start-start-radius"]],["rounded-se",["border-start-end-radius"]],["rounded-es",["border-end-start-radius"]],["rounded-ee",["border-end-end-radius"]]].forEach(([e,r])=>{const o=r,a=o[0].startsWith("border-start")||o[0].startsWith("border-end");R(`${e}-none`,o.map(t=>[t,a?"0":"0px"]),{category:"borders"}),R(`${e}-sm`,o.map(t=>[t,"var(--radius-sm)"]),{category:"borders"}),R(`${e}`,o.map(t=>[t,"0.25rem"]),{category:"borders"}),R(`${e}-md`,o.map(t=>[t,"var(--radius-md)"]),{category:"borders"}),R(`${e}-lg`,o.map(t=>[t,"var(--radius-lg)"]),{category:"borders"}),R(`${e}-xl`,o.map(t=>[t,"var(--radius-xl)"]),{category:"borders"}),R(`${e}-2xl`,o.map(t=>[t,"var(--radius-2xl)"]),{category:"borders"}),R(`${e}-3xl`,o.map(t=>[t,"var(--radius-3xl)"]),{category:"borders"}),R(`${e}-4xl`,o.map(t=>[t,"var(--radius-4xl)"]),{category:"borders"}),R(`${e}-xs`,o.map(t=>[t,"var(--radius-xs)"]),{category:"borders"}),nr(`${e}-full`,o),V({name:e,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>!a&&Yt(t)?`calc(var(--spacing) * ${t})`:N(e,"borderRadius",t,"radius"),handle:e=>o.map(r=>t(r,e)),description:`${e} utility (spacing, arbitrary, custom property support)`,category:"borders"})}),V({name:"rounded",handle:(e,r,o)=>"rounded"===o.prefix?[t("border-radius",e)]:null,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>Yt(t)?`calc(var(--spacing) * ${t})`:N(e,"borderRadius",t,"radius"),description:"border-radius utility (spacing, arbitrary, custom property support)",category:"borders"});var sr=()=>e([a("--baro-border-style","solid")]),ir=(t,e)=>e?.themeKey&&"DEFAULT"!==e.themeKey?`var(--border-width-${e.themeKey.replace(".","\\.")})`:t,lr=(e,r)=>[sr(),...e.map(e=>t(e.replace("width","style"),"var(--baro-border-style)")),...e.map(e=>t(e,r))];[["border-0","0px"],["border-2","2px"],["border-4","4px"],["border-8","8px"],["border","1px"]].forEach(([t,e])=>{R(t,[sr,["border-style","var(--baro-border-style)"],["border-width",e]],{category:"borders"})}),[["border-x",["border-inline-width"]],["border-y",["border-block-width"]],["border-bs",["border-block-start-width"]],["border-be",["border-block-end-width"]],["border-s",["border-inline-start-width"]],["border-e",["border-inline-end-width"]],["border-t",["border-top-width"]],["border-r",["border-right-width"]],["border-b",["border-bottom-width"]],["border-l",["border-left-width"]]].forEach(([e,r])=>{const o=r,a=t=>[sr,...o.map(t=>[t.replace("width","style"),"var(--baro-border-style)"]),...o.map(e=>[e,t])];R(`${e}-0`,a("0px")),R(`${e}-2`,a("2px")),R(`${e}-4`,a("4px")),R(`${e}-8`,a("8px")),R(`${e}`,a("1px")),V({name:e,themeKeys:["colors","borderWidth"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`${t}px`:null,handle:(e,r,a,n)=>"borderWidth"===n?.themeNamespace?lr(o,ir(e,n)):n?.realThemeValue?o.flatMap(t=>ee(t.replace("width","color"),e,n)):Qt(e)?o.map(r=>t(r.replace("width","color"),e)):a.arbitrary||Gt(e)?lr(o,e):null,handleCustomProperty:e=>e.startsWith("length:")?lr(o,`var(${e.replace("length:","")})`):o.map(r=>t(r.replace("width","color"),`var(${e})`)),description:`${e} utility (number, arbitrary, custom property support)`,category:"borders"})}),R("border-inherit",[["border-color","inherit"]],{category:"borders"}),R("border-current",[["border-color","currentColor"]],{category:"borders"}),R("border-transparent",[["border-color","transparent"]],{category:"borders"}),R("border-solid",[["--baro-border-style","solid"],["border-style","solid"]],{category:"borders"}),R("border-dashed",[["--baro-border-style","dashed"],["border-style","dashed"]],{category:"borders"}),R("border-dotted",[["--baro-border-style","dotted"],["border-style","dotted"]],{category:"borders"}),R("border-double",[["--baro-border-style","double"],["border-style","double"]],{category:"borders"}),R("border-hidden",[["--baro-border-style","hidden"],["border-style","hidden"]],{category:"borders"}),R("border-none",[["--baro-border-style","none"],["border-style","none"]],{category:"borders"}),Object.entries({x:["border-inline-start","border-inline-end","border-inline-style"],y:["border-top","border-bottom","border-bottom-style","border-top-style"]}).forEach(([e,[r,a,...n]])=>{const s=`--baro-divide-${e}-reverse`,i=e=>[sr(),o(":where(& > :not(:last-child))",[t(s,"0"),...n.map(e=>t(e,"var(--baro-border-style)")),t(`${r}-width`,`calc(${e} * var(${s}))`),t(`${a}-width`,`calc(${e} * calc(1 - var(${s})))`)])];R(`divide-${e}`,i("1px"),{category:"borders"}),R(`divide-${e}-reverse`,[o(":where(& > :not(:last-child))",[t(s,"1")])],{category:"borders"}),V({name:`divide-${e}`,themeKeys:["divideWidth","borderWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,handleCustomProperty:t=>i(`var(${t.replace(/^length:/,"")})`),handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}px`:null,handle:(t,e,r,o)=>i("borderWidth"===o?.themeNamespace?ir(t,o):t),description:`divide-${e} width utility`,category:"borders"})}),V({name:"border",themeKeys:["colors","borderWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(e,r,o,a)=>"borderWidth"===a?.themeNamespace?lr(["border-width"],ir(e,a)):a?.realThemeValue?ee("border-color",e,a):o.arbitrary?Gt(e)?lr(["border-width"],e):[t("border-color",e)]:Yt(e)?lr(["border-width"],`${e}px`):Qt(e)?[t("border-color",e)]:null,handleCustomProperty:e=>e.startsWith("length:")?lr(["border-width"],`var(${e.replace("length:","")})`):[t("border-color",`var(${e})`)],description:"border-width utility (number, arbitrary, custom property support)",category:"borders"});var cr=()=>e([a("--baro-outline-style","solid")]),pr=e=>[cr(),t("outline-style","var(--baro-outline-style)"),t("outline-width",e)];[["outline-0","0px"],["outline-1","1px"],["outline-2","2px"],["outline-4","4px"],["outline-8","8px"]].forEach(([t,e])=>{R(t,[cr,["outline-style","var(--baro-outline-style)"],["outline-width",e]],{category:"borders"})}),R("outline-inherit",[["outline-color","inherit"]],{category:"borders"}),R("outline-current",[["outline-color","currentColor"]],{category:"borders"}),R("outline-transparent",[["outline-color","transparent"]],{category:"borders"}),R("outline-none",[["--baro-outline-style","none"],["outline-style","none"]],{category:"borders"}),R("outline-hidden",[["--baro-outline-style","none"],["outline-style","none"],r("media","(forced-colors: active)",[t("outline","2px solid transparent"),t("outline-offset","2px")])],{category:"borders"}),R("outline",[cr,["outline-style","var(--baro-outline-style)"],["outline-width","1px"]],{category:"borders"}),["solid","dashed","dotted","double"].forEach(t=>{R(`outline-${t}`,[["--baro-outline-style",t],["outline-style",t]],{category:"borders"})}),R("outline-offset-0",[["outline-offset","0px"]],{category:"borders"}),R("outline-offset-1",[["outline-offset","1px"]],{category:"borders"}),R("outline-offset-2",[["outline-offset","2px"]],{category:"borders"}),R("outline-offset-4",[["outline-offset","4px"]],{category:"borders"}),R("outline-offset-8",[["outline-offset","8px"]],{category:"borders"}),V({name:"outline-offset",prop:"outline-offset",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`${t}px`:null,description:"outline-offset utility (number, arbitrary, custom property support)",category:"borders"}),V({name:"outline",themeKeys:["colors","outlineWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(e,r,o,a)=>"outlineWidth"===a?.themeNamespace?pr(e):a?.realThemeValue?ee("outline-color",e,a):Qt(e)?[t("outline-color",e)]:Yt(e)?pr(`${e}px`):o.arbitrary?Gt(e)?pr(e):[t("outline-color",e)]:null,handleCustomProperty:e=>e.startsWith("color:")?[t("outline-color",e.replace("color:",""))]:e.startsWith("length:")?pr(`var(${e.replace("length:","")})`):[t("outline-color",`var(${e})`)],description:"outline-color utility (theme colors, arbitrary, custom property support)",category:"borders"}),V({name:"outline",prop:"outline-width",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Yt(t)?`${t}px`:null,description:"outline-width utility (number, arbitrary, custom property support)",category:"borders"});var ur=e=>[o(":where(& > :not(:last-child))",[t("border-color",e)])];R("divide-inherit",ur("inherit"),{category:"borders"}),R("divide-current",ur("currentColor"),{category:"borders"}),R("divide-transparent",ur("transparent"),{category:"borders"}),V({name:"divide",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,e,r,a)=>"divide"!==r.prefix?null:a?.realThemeValue?[o(":where(& > :not(:last-child))",ee("border-color",t,a))]:Qt(t)?ur(t):null,handleCustomProperty:(t,e,r)=>"divide"===r.prefix?ur(`var(${t})`):[],description:"divide-color utility (theme, alpha, arbitrary, custom property)",category:"borders"});var dr="var(--baro-rotate-x,) var(--baro-rotate-y,) var(--baro-rotate-z,) var(--baro-skew-x,) var(--baro-skew-y,)",yr=(e,r)=>[t(`--baro-rotate-${e}`,r),t("transform",dr)],hr=(e,r)=>[t(`--baro-skew-${e}`,r),t("transform",dr)],gr=()=>e([a("--baro-scale-x","1"),a("--baro-scale-y","1"),a("--baro-scale-z","1")]),mr=(e,r)=>[gr(),t(`--baro-scale-${e}`,r),t("scale","z"===e?"var(--baro-scale-x) var(--baro-scale-y) var(--baro-scale-z)":"var(--baro-scale-x) var(--baro-scale-y)")];R("transform-none",[["transform","none"]],{category:"transform"}),R("transform-gpu",[["transform",`translateZ(0) ${dr}`]],{category:"transform"}),R("transform-cpu",[["transform",dr]]),R("transform-3d",[["transform-style","preserve-3d"]],{category:"transform"}),R("transform-flat",[["transform-style","flat"]],{category:"transform"}),V({name:"transform",prop:"transform",supportsCustomProperty:!0,handleCustomProperty:e=>[t("transform",`var(${e})`)],description:"transform utility for custom property (transform-(--my-transform))",category:"transform"}),V({name:"transform",prop:"transform",supportsArbitrary:!0,handle:e=>[t("transform",e)],description:"transform utility for arbitrary value (transform-[...])",category:"transform"}),R("backface-hidden",[["backface-visibility","hidden"]],{category:"transform"}),R("backface-visible",[["backface-visibility","visible"]],{category:"transform"}),R("perspective-dramatic",[["perspective","var(--perspective-dramatic)"]],{category:"transform"}),R("perspective-near",[["perspective","var(--perspective-near)"]],{category:"transform"}),R("perspective-normal",[["perspective","var(--perspective-normal)"]],{category:"transform"}),R("perspective-midrange",[["perspective","var(--perspective-midrange)"]],{category:"transform"}),R("perspective-distant",[["perspective","var(--perspective-distant)"]],{category:"transform"}),R("perspective-none",[["perspective","none"]],{category:"transform"}),R("perspective-origin-center",[["perspective-origin","center"]],{category:"transform"}),R("perspective-origin-top",[["perspective-origin","top"]],{category:"transform"}),R("perspective-origin-top-right",[["perspective-origin","top right"]],{category:"transform"}),R("perspective-origin-right",[["perspective-origin","right"]],{category:"transform"}),R("perspective-origin-bottom-right",[["perspective-origin","bottom right"]],{category:"transform"}),R("perspective-origin-bottom",[["perspective-origin","bottom"]],{category:"transform"}),R("perspective-origin-bottom-left",[["perspective-origin","bottom left"]],{category:"transform"}),R("perspective-origin-left",[["perspective-origin","left"]],{category:"transform"}),R("perspective-origin-top-left",[["perspective-origin","top left"]],{category:"transform"}),V({name:"perspective-origin",prop:"perspective-origin",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>[t("perspective-origin",e)],handleCustomProperty:e=>[t("perspective-origin",`var(${e})`)],description:"perspective-origin utility (named, arbitrary, custom property supported)",category:"transform"}),V({name:"perspective",prop:"perspective",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>[t("perspective",e)],handleCustomProperty:e=>[t("perspective",`var(${e})`)],description:"perspective utility (named, arbitrary, custom property supported)",category:"transform"}),R("rotate-none",[["rotate","none"]],{category:"transform"}),V({name:"rotate-x",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Yt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return yr("x",`rotateX(${o}${e})`)}return yr("x",`rotateX(${t})`)},handleCustomProperty:t=>yr("x",`rotateX(var(${t}))`),description:"rotate-x utility (named, arbitrary, custom property supported)",category:"transform"}),V({name:"rotate-y",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Yt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return yr("y",`rotateY(${o}${e})`)}return yr("y",`rotateY(${t})`)},handleCustomProperty:t=>yr("y",`rotateY(var(${t}))`),description:"rotate-y utility (named, arbitrary, custom property supported)",category:"transform"}),V({name:"rotate-z",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Yt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return yr("z",`rotateZ(${o}${e})`)}return yr("z",`rotateZ(${t})`)},handleCustomProperty:t=>yr("z",`rotateZ(var(${t}))`),description:"rotate-z utility (named, arbitrary, custom property supported)",category:"transform"}),V({name:"rotate",prop:"rotate",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(e,r,{negative:o})=>{if(Yt(e)||o){const r=`${Math.abs(Number(e))}deg`;return o||String(e).startsWith("-")?[t("rotate",`calc(${r} * -1)`)]:[t("rotate",r)]}return[t("rotate",e)]},handleCustomProperty:e=>[t("rotate",`var(${e})`)],description:"rotate utility (named, arbitrary, custom property supported)",category:"transform"}),R("scale-none",[["scale","none"]],{category:"transform"}),R("scale-3d",[gr,["scale","var(--baro-scale-x) var(--baro-scale-y) var(--baro-scale-z)"]],{category:"transform"}),V({name:"scale-x",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return mr("x",t);if(Yt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return mr("x",`calc(${e} * ${o}1)`)}return mr("x",t)},handleCustomProperty:t=>mr("x",`var(${t})`),description:"scale-x utility (named, arbitrary, custom property supported)",category:"transform"}),V({name:"scale-y",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return mr("y",t);if(Yt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return mr("y",`calc(${e} * ${o}1)`)}return mr("y",t)},handleCustomProperty:t=>mr("y",`var(${t})`),description:"scale-y utility (named, arbitrary, custom property supported)",category:"transform"}),V({name:"scale-z",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return mr("z",t);if(Yt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return mr("z",`calc(${e} * ${o}1)`)}return mr("z",t)},handleCustomProperty:t=>mr("z",`var(${t})`),description:"scale-z utility (named, arbitrary, custom property supported)",category:"transform"}),V({name:"scale",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(e,r,{negative:o,arbitrary:a})=>{if(a)return[t("scale",`${e}`)];if(Yt(e)||o){const r=`${Math.abs(Number(e))}%`;return o||String(e).startsWith("-")?[t("scale",`calc(${r} * -1) calc(${r} * -1)`)]:[t("scale",`${r} ${r}`)]}return[t("scale",e)]},handleCustomProperty:e=>[t("scale",`var(${e}) var(${e})`)],description:"scale utility (named, arbitrary, custom property supported)",category:"transform"}),V({name:"skew-x",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Yt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return hr("x",`skewX(${o}${e})`)}return hr("x",`skewX(${t})`)},handleCustomProperty:t=>hr("x",`skewX(var(${t}))`),description:"skew-x utility (named, arbitrary, custom property supported)",category:"transform"}),V({name:"skew-y",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Yt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return hr("y",`skewY(${o}${e})`)}return hr("y",`skewY(${t})`)},handleCustomProperty:t=>hr("y",`skewY(var(${t}))`),description:"skew-y utility (named, arbitrary, custom property supported)",category:"transform"}),V({name:"skew",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(e,r,{negative:o})=>{if(Yt(e)||o){const r=`${Math.abs(Number(e))}deg`,a=o||String(e).startsWith("-")?"-":"";return[t("--baro-skew-x",`skewX(${a}${r})`),t("--baro-skew-y",`skewY(${a}${r})`),t("transform",dr)]}return[t("--baro-skew-x",`skewX(${e})`),t("--baro-skew-y",`skewY(${e})`),t("transform",dr)]},handleCustomProperty:e=>[t("--baro-skew-x",`skewX(var(${e}))`),t("--baro-skew-y",`skewY(var(${e}))`),t("transform",dr)],description:"skew utility (named, arbitrary, custom property supported)",category:"transform"}),R("origin-center",[["transform-origin","center"]],{category:"transform"}),R("origin-top",[["transform-origin","top"]],{category:"transform"}),R("origin-top-right",[["transform-origin","top right"]],{category:"transform"}),R("origin-right",[["transform-origin","right"]],{category:"transform"}),R("origin-bottom-right",[["transform-origin","bottom right"]],{category:"transform"}),R("origin-bottom",[["transform-origin","bottom"]],{category:"transform"}),R("origin-bottom-left",[["transform-origin","bottom left"]],{category:"transform"}),R("origin-left",[["transform-origin","left"]],{category:"transform"}),R("origin-top-left",[["transform-origin","top left"]],{category:"transform"}),V({name:"origin",prop:"transform-origin",supportsCustomProperty:!0,supportsArbitrary:!0,description:"transform-origin utility for custom property (origin-(--my-transform-origin))",category:"transform"});var fr=()=>e([a("--baro-translate-x","0"),a("--baro-translate-y","0"),a("--baro-translate-z","0")]),br=(e,r)=>[fr(),t(`--baro-translate-${e}`,r),t("translate","z"===e?"var(--baro-translate-x) var(--baro-translate-y) var(--baro-translate-z)":"var(--baro-translate-x) var(--baro-translate-y)")],vr=(t,e)=>[fr,[`--baro-translate-${t}`,e],["translate","z"===t?"var(--baro-translate-x) var(--baro-translate-y) var(--baro-translate-z)":"var(--baro-translate-x) var(--baro-translate-y)"]];R("translate-none",[["translate","none"]],{category:"transform"}),R("translate-px",[["translate","1px 1px"]],{category:"transform"}),R("-translate-px",[["translate","-1px -1px"]],{category:"transform"}),R("translate-full",[fr,["--baro-translate-x","100%"],["--baro-translate-y","100%"],["translate","var(--baro-translate-x) var(--baro-translate-y)"]],{category:"transform"}),R("-translate-full",[fr,["--baro-translate-x","-100%"],["--baro-translate-y","-100%"],["translate","var(--baro-translate-x) var(--baro-translate-y)"]],{category:"transform"}),R("translate-x-px",vr("x","1px"),{category:"transform"}),R("-translate-x-px",vr("x","-1px"),{category:"transform"}),R("translate-x-full",vr("x","100%"),{category:"transform"}),R("-translate-x-full",vr("x","-100%"),{category:"transform"}),R("translate-y-px",vr("y","1px"),{category:"transform"}),R("-translate-y-px",vr("y","-1px"),{category:"transform"}),R("translate-y-full",vr("y","100%"),{category:"transform"}),R("-translate-y-full",vr("y","-100%"),{category:"transform"}),R("translate-z-px",vr("z","1px"),{category:"transform"}),R("-translate-z-px",vr("z","-1px"),{category:"transform"}),V({name:"translate-x",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&Xt(t)){return br("x",`calc(${t} * 100%)`)}if(Yt(t)||r){return br("x",`calc(var(--spacing) * ${t})`)}return br("x",t)},handleCustomProperty:t=>br("x",`var(${t})`),description:"translate-x utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),V({name:"translate-y",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&Xt(t)){return br("y",`calc(${t} * 100%)`)}if(Yt(t)||r){return br("y",`calc(var(--spacing) * ${t})`)}return br("y",t)},handleCustomProperty:t=>br("y",`var(${t})`),description:"translate-y utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),V({name:"translate-z",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&Xt(t)){return br("z",`calc(${t} * 100%)`)}if(Yt(t)||r){return br("z",`calc(var(--spacing) * ${t})`)}return br("z",t)},handleCustomProperty:t=>br("z",`var(${t})`),description:"translate-z utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),V({name:"translate",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,{negative:o})=>{if(e.includes("/")&&Xt(e)){const r=`calc(${e} * 100%)`;return[t("translate",`${r} ${r}`)]}if(Yt(e)||o){const r=`calc(var(--spacing) * ${e})`;return[t("translate",`${r} ${r}`)]}return[t("translate",`${e} ${e}`)]},handleCustomProperty:e=>[t("translate",`var(${e}) var(${e})`)],description:"translate utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"});var xr=/^(length|number|percentage):(.+)$/,kr=/^(\d*\.)?\d+(px|em|rem|vh|vw|vmin|vmax|%|in|cm|mm|pt|pc|ex|ch|q|lh|rlh|svh|lvh|dvh|cqw|cqh)$/i;R("fill-inherit",[["fill","inherit"]],{category:"svg"}),R("fill-current",[["fill","currentColor"]],{category:"svg"}),R("fill-transparent",[["fill","transparent"]],{category:"svg"}),R("fill-black",[["fill","#000"]],{category:"svg"}),R("fill-white",[["fill","#fff"]],{category:"svg"}),V({name:"fill",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o,a)=>a?.realThemeValue?[t("fill",`var(--color-${a.realThemeValue})`)]:[t("fill",e)],description:"fill utility (static, theme, arbitrary, custom property supported)",category:"svg"}),R("stroke-inherit",[["stroke","inherit"]],{category:"svg"}),R("stroke-current",[["stroke","currentColor"]],{category:"svg"}),R("stroke-transparent",[["stroke","transparent"]],{category:"svg"}),R("stroke-black",[["stroke","#000"]],{category:"svg"}),R("stroke-white",[["stroke","#fff"]],{category:"svg"}),V({name:"stroke",themeKeys:["colors","strokeWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o,a)=>{if(Yt(e)||"strokeWidth"===a?.themeNamespace)return[t("stroke-width",e)];if(o.arbitrary){const r=xr.exec(e);if(r)return[t("stroke-width",r[2])];if(!Qt(e)&&(kr.test(e)||/^calc\(/.test(e)))return[t("stroke-width",e)]}return a?.realThemeValue?[t("stroke",`var(--color-${a.realThemeValue})`)]:[t("stroke",e)]},handleCustomProperty:e=>{const r=xr.exec(e);return r?[t("stroke-width",`var(${r[2]})`)]:[t("stroke",`var(${e})`)]},description:"stroke utility (static, theme, arbitrary, custom property supported)",category:"svg"}),R("forced-color-adjust-auto",[["forced-color-adjust","auto"]],{category:"accessibility"}),R("forced-color-adjust-none",[["forced-color-adjust","none"]],{category:"accessibility"}),C("hover",["&:hover"],{order:50,source:"pseudo",wrap:()=>[r("media","(hover: hover)",[])]}),C("focus",["&:focus"],{order:50,source:"pseudo"}),C("active",["&:active"],{order:50,source:"pseudo"}),C("visited",["&:visited"],{order:50,source:"pseudo"}),C("focus-visible",["&:focus-visible"],{order:50,source:"pseudo"}),C("focus-within",["&:focus-within"],{order:50,source:"pseudo"}),C("disabled",["&:disabled"],{source:"pseudo"}),C("checked",["&:checked"],{source:"pseudo"}),C("required",["&:required"],{source:"pseudo"}),C("invalid",["&:invalid"],{source:"pseudo"}),C("enabled",["&:enabled"],{source:"pseudo"}),C("indeterminate",["&:indeterminate"],{source:"pseudo"}),C("default",["&:default"],{source:"pseudo"}),C("optional",["&:optional"],{source:"pseudo"}),C("valid",["&:valid"],{source:"pseudo"}),C("user-valid",["&:user-valid"],{source:"pseudo"}),C("user-invalid",["&:user-invalid"],{source:"pseudo"}),C("in-range",["&:in-range"],{source:"pseudo"}),C("out-of-range",["&:out-of-range"],{source:"pseudo"}),C("placeholder-shown",["&:placeholder-shown"],{source:"pseudo"}),C("autofill",["&:autofill"],{source:"pseudo"}),C("read-only",["&:read-only"],{source:"pseudo"}),C("first",["&:first-child"],{source:"pseudo"}),C("last",["&:last-child"],{source:"pseudo"}),C("only",["&:only-child"],{source:"pseudo"}),C("odd",["&:nth-child(odd)"],{source:"pseudo"}),C("even",["&:nth-child(even)"],{source:"pseudo"}),C("first-of-type",["&:first-of-type"],{source:"pseudo"}),C("last-of-type",["&:last-of-type"],{source:"pseudo"}),C("only-of-type",["&:only-of-type"],{source:"pseudo"}),C("empty",["&:empty"],{source:"pseudo"}),C("prefers-contrast-more",["&"],{order:5,wrap:()=>[r("media","(prefers-contrast: more)",[],"media")],source:"media"}),C("prefers-contrast-less",["&"],{order:5,wrap:()=>[r("media","(prefers-contrast: less)",[],"media")],source:"media"}),C("contrast-more",["&"],{order:5,wrap:()=>[r("media","(prefers-contrast: more)",[],"media")],source:"media"}),C("contrast-less",["&"],{order:5,wrap:()=>[r("media","(prefers-contrast: less)",[],"media")],source:"media"}),C("noscript",["&"],{order:5,wrap:()=>[r("media","(scripting: none)",[],"media")],source:"media"}),C("forced-colors",["&"],{order:5,wrap:()=>[r("media","(forced-colors: active)",[],"media")],source:"media"}),C("pointer-coarse",["&"],{order:5,wrap:()=>[r("media","(pointer: coarse)",[],"media")],source:"media"}),C("pointer-fine",["&"],{order:5,wrap:()=>[r("media","(pointer: fine)",[],"media")],source:"media"}),C("any-pointer-coarse",["&"],{order:5,wrap:()=>[r("media","(any-pointer: coarse)",[],"media")],source:"media"}),C("any-pointer-fine",["&"],{order:5,wrap:()=>[r("media","(any-pointer: fine)",[],"media")],source:"media"}),C("motion-safe",["&"],{order:5,wrap:()=>[r("media","(prefers-reduced-motion: no-preference)",[],"media")],source:"media"}),C("motion-reduce",["&"],{order:5,wrap:()=>[r("media","(prefers-reduced-motion: reduce)",[],"media")],source:"media"}),C("print",["&"],{order:5,wrap:()=>[r("media","print",[],"media")],source:"media"}),C("portrait",["&"],{order:5,wrap:()=>[r("media","(orientation: portrait)",[],"media")],source:"media"}),C("landscape",["&"],{order:5,wrap:()=>[r("media","(orientation: landscape)",[],"media")],source:"media"}),C("rtl",["&[dir=rtl]"],{order:20,source:"attribute"}),C("ltr",["&[dir=ltr]"],{order:20,source:"attribute"}),C("inert",["&[inert]"],{order:40,source:"attribute"}),C("open",["&:is([open], :popover-open, :open)"],{order:40,source:"attribute"});var wr=r=>[e([a("--baro-content",'""')]),...r,...r.some(t=>"decl"===t.type&&"content"===t.prop)?[]:[t("content","var(--baro-content)")]];function $r(t,e,r,o=!1){const a=`${o?"not ":""}(${"min"===t?"width >=":"width <"} ${e})`;return r?`${r} ${a}`:a}function Cr(t){return{sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)"}[t]||`(min-width: ${t})`}function Pr(t){return t.replace(/\\_|_/g,t=>"_"===t?" ":"_")}function zr(t){const e=/^(data|aria)-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(t);if(e){const[,t,r,o]=e;return void 0===o?`[${t}-${r}]`:`[${t}-${r}=${/^(["']).*\1$/.test(o)?o:`"${Pr(o)}"`}]`}const r=/^data-([a-zA-Z0-9_-]+)$/.exec(t);if(r)return`[data-${r[1]}]`;const o=/^aria-([a-zA-Z0-9_-]+)$/.exec(t);return o?`[aria-${o[1]}="true"]`:void 0}function Ar(t){const e=Pr(t);return/^[>+~]/.test(e.trim())||!Sr(e)?e:`*:is(${e})`}function Sr(t){let e=0;for(let r=0;r<t.length;r++){const o=t[r];if("\\"===o)r++;else if("("===o||"["===o)e++;else if(")"===o||"]"===o)e--;else if(","===o&&0===e)return!0}return!1}function jr(t,e){const r=A(e).find(r=>r.name===t&&r.match(t,e));if(!r?.modifySelector)return null;const o=r.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e}),a=Array.isArray(o)?o:o&&"object"==typeof o?[o]:"string"==typeof o?[{selector:o}]:[];if(1!==a.length)return null;const n=/^&(:(?!:)[a-zA-Z-]+(?:\(.*\))?)$/.exec(a[0].selector);return n?n[1]:null}function Rr(t,e){const r=zr(t);if(r)return r;const o=jr(t,e);if(o||!t.startsWith("has-"))return o;const a=A(e).find(r=>r.match(t,e));if(!a?.modifySelector||a.wrap||a.astHandler)return null;const n=a.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e}),s=Array.isArray(n)?n:n&&"object"==typeof n?[n]:"string"==typeof n?[{selector:n}]:[];if(1!==s.length)return null;const i=/^&(:has\(.+\))$/.exec(s[0].selector);return i&&!i[1].includes("&")?i[1]:null}function Er(t,e){if(t.startsWith("not-"))return null;const r=A(e).find(r=>r.match(t,e));if(!r?.wrap||r.astHandler)return null;if(r.modifySelector){const o=r.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e});if("&"!==("string"==typeof o?o:Array.isArray(o)?1===o.length?o[0].selector:null:o?.selector))return null}const o=r.wrap({type:t},e);if(1!==o.length)return null;const a=o[0];if("at-rule"!==a.type||"media"!==a.name&&"supports"!==a.name||a.nodes?.length)return null;const n=(a.params??"").trim();return!n||/^not\b|,|\s(and|or)\s/i.test(n)?null:{...a,params:`not ${n}`,nodes:[]}}function Tr(t){const e=/^@(media|supports|container)(?:\s+|(?=\()|$)([\s\S]*)$/.exec(Pr(t).trim());if(!e)return null;const o=e[1];let a=(e[2]??"").trim(),n="";if("container"===o){const t=/^(?!not\b)([a-zA-Z_-][a-zA-Z0-9_-]*)\s+([\s\S]*)$/.exec(a);t&&(n=`${t[1]} `,a=t[2].trim())}if(!a||Sr(a))return null;const s=/^not\s+/i.test(a)?a.replace(/^not\s+/i,""):`not ${a}`;return s?r(o,`${n}${s}`,[],o):null}C("before",["&::before"],{source:"pseudo",astHandler:wr}),C("after",["&::after"],{source:"pseudo",astHandler:wr}),C("placeholder",["&::placeholder"],{source:"pseudo"}),C("selection",["& *::selection","&::selection"],{source:"pseudo"}),C("file",["&::file-selector-button"],{source:"pseudo"}),C("marker",["& *::marker","&::marker","& *::-webkit-details-marker","&::-webkit-details-marker"],{source:"pseudo"}),C("details-content",["&::details-content"],{source:"pseudo"}),C("first-line",["&::first-line"],{source:"pseudo"}),C("first-letter",["&::first-letter"],{source:"pseudo"}),C("backdrop",["&::backdrop"],{source:"pseudo"}),C("starting",["&"],{wrap:()=>[r("starting-style","",[],"starting")],source:"starting"}),P((t,e)=>{const r=e.theme("breakpoints")||e.config("theme.breakpoints")||{},o=Object.keys(r);if(o.includes(t))return!0;if(t.startsWith("max-")){const e=t.replace("max-","");if(o.includes(e))return!0;if(/^\[.*\]$/.test(e))return!0}return!!/^min-\[.*\]$/.test(t)||!!/^max-\[.*\]$/.test(t)},void 0,(t,e)=>{const o=t.type,a=e.theme("breakpoints")||e.config("theme.breakpoints")||{};if(Object.keys(a).includes(o)){let t=e.theme(`breakpoints.${o}`)||Cr(o);return/^\d*\.?\d+(px|em|rem)?$/.test(t)&&(t=`(min-width: ${t})`),[r("media",t,[],"responsive")]}if(o.startsWith("max-")){const t=o.replace("max-","");if(Object.keys(a).includes(t)){let o=e.theme(`breakpoints.${t}`)||Cr(t);if(o.includes("min-width:")){const t=o.match(/min-width:\s*([^)]+)/)?.[1];t&&(o=`(width < ${t})`)}else if(o.includes("width >=")){const t=o.match(/width >=\s*([^)]+)/)?.[1];t&&(o=`(width < ${t})`)}else/^\d*\.?\d+(px|em|rem)?$/.test(o)&&(o=`(width < ${o})`);return[r("media",o,[],"responsive")]}if(/^\[(.*)\]$/.test(t)){const e=t.match(/^\[(.*)\]$/)?.[1];if(e)return[r("media",`(width < ${e})`,[],"responsive")]}}if(/^min-\[(.*)\]$/.test(o)){const t=o.match(/^min-\[(.*)\]$/)?.[1];if(t)return[r("media",`(width >= ${t})`,[],"responsive")]}if(/^max-\[(.*)\]$/.test(o)){const t=o.match(/^max-\[(.*)\]$/)?.[1];if(t)return[r("media",`(width < ${t})`,[],"responsive")]}return[]});P(t=>"dark"===t,void 0,(t,e)=>{const a=(t=>{const e=t.config("darkMode")||"media",r=t.config("darkModeSelector"),o=[];if("media"===e){if(o.push({type:"media",value:"(prefers-color-scheme: dark)"}),r){const t=Array.isArray(r)?r.join(", "):r;o.push({type:"selector",value:t})}return o}if("class"===e){if(r){const t=Array.isArray(r)?r.join(", "):r;return o.push({type:"selector",value:t}),o}return o.push({type:"selector",value:".dark"}),o}return o.push({type:"selector",value:".dark"}),o})(e),n=[];return a.forEach(t=>{if("media"===t.type){const e=r("media",t.value,[],"dark");n.push(e)}else{const e=o(t.value,[],"dark");n.push(e)}}),n});var Nr=/^(not-)?@(?:(min|max)-)?(\[[^\]]+\]|[a-zA-Z0-9.]+)(?:\/([a-zA-Z0-9_-]+))?$/;P(t=>Nr.test(t)&&!/^(?:not-)?@container(?:\/|$)/.test(t),void 0,(t,e)=>{const r=Nr.exec(t.type);if(!r)return[];const[,o,a,n,s]=r,i=n.startsWith("[")?n.slice(1,-1).replace(/_/g," "):e.theme("container."+n);return i?[(l=$r("max"===a?"max":"min",i,s,!!o),c=[],{type:"at-rule",name:"container",params:l,nodes:Array.isArray(c)?c:[c],source:"container"})]:[];var l,c});var Vr=t=>/^[\s_]*@/.test(t);function Wr(t,e){const r=zr(t);if(r)return{compound:r};if(/^(has|in|not|group|peer)-|[^a-z0-9-]/.test(t))return;const o=A(e).find(r=>r.match(t,e));if(!o?.modifySelector||o.astHandler)return;const a=o.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e});if(null==a)return;const n="string"==typeof a?[{selector:a}]:Array.isArray(a)?a:[a];if(1!==n.length)return;const s=n[0].selector;return!/^&[:[]/.test(s)||s.slice(1).includes("&")||/[\s,>+~]/.test(s.replace(/\([^()]*\)/g,""))?void 0:{compound:s.slice(1),inner:o}}function Br(t,e){const r=/^(has|in)-(.+)$/.exec(t);if(!r)return;const[,o,a]=r;if("in"===o&&/^\[.+\]$/.test(a)){if(Vr(a.slice(1)))return;const t=Pr(a.slice(1,-1));return{kind:o,compound:t.startsWith("&")?t.slice(1):`:is(${t})`}}if("has"===o&&(a.startsWith("[")||/^(data|aria)-/.test(a)))return;const n=Wr(a,e);return n&&{kind:o,...n}}P(t=>/^has-\[.*\]$/.test(t)&&!Vr(t.slice(5)),({selector:t,mod:e})=>{const r=/^has-\[(.+)\]$/.exec(e.type);return r?{selector:`&:has(${Ar(r[1])})`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^has-(data|aria)-/.test(t)&&!!zr(t.slice(4)),({mod:t})=>({selector:`&:has(*${zr(t.type.slice(4))})`,flatten:!1,wrappingType:"rule",source:"attribute"}),void 0);var Mr=({selector:t,mod:e,context:r})=>{const o=Br(e.type,r);return o?{selector:"has"===o.kind?`&:has(*${o.compound})`:`:where(*${o.compound}) &`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t}};function Or(t,e){const r=/^(group|peer)-has-(.+?)(?:\/([a-zA-Z0-9_-]+))?$/.exec(t);if(!r)return;const o=r[1],a=r[2],n=r[3]?`.${o}\\/${r[3]}`:`.${o}`;if(/^\[.+\]$/.test(a)){if(Vr(a.slice(1)))return;const t=Pr(a.slice(1,-1));return{kind:o,base:n,v:a,arg:/^[>+~]/.test(t.trim())?t:`*:is(${t})`}}const s=Wr(a,e);return s&&{kind:o,base:n,v:a,arg:`*${s.compound}`,inner:s.inner}}P((t,e)=>!!Br(t,e)?.inner?.wrap,Mr,(t,e)=>Br(t.type,e).inner.wrap({...t,type:t.type.replace(/^(has|in)-/,"")},e)),P((t,e)=>{const r=Br(t,e);return!!r&&!r.inner?.wrap},Mr);var Fr=({selector:t,mod:e,context:r})=>{const o=Or(e.type,r);if(!o)return{selector:t};const a="group"===o.kind?" *":" ~ *";return{selector:`&:is(:where(${o.base}):has(${o.arg})${a})`,wrappingType:"rule",source:o.kind}};function Kr(t){if(/^[\w-]*\s*\(/.test(t))return t;let e=t.includes(":")?t:`${t}: var(--tw)`;return"("===e[0]&&")"===e[e.length-1]||(e=`(${e})`),e}P((t,e)=>!!Or(t,e)?.inner?.wrap,Fr,(t,e)=>{const r=Or(t.type,e);return r.inner.wrap({...t,type:r.v},e)}),P((t,e)=>{const r=Or(t,e);return!!r&&!r.inner?.wrap},Fr),P((t,e)=>/^not-(?!@)/.test(t)&&!!Er(t.slice(4),e),()=>"&",(t,e)=>{const r=Er(t.type.slice(4),e);return r?[r]:[]}),P(t=>/^not-\[@.*\]$/.test(t)&&!!Tr(t.slice(5,-1)),()=>"&",t=>{const e=Tr(t.type.slice(5,-1));return e?[e]:[]}),P(t=>/^not-\[(?!@).*\]$/.test(t),({selector:t,mod:e})=>{const r=/^not-\[(.+)\]$/.exec(e.type);return r?/^[a-zA-Z0-9_-]+(=.+)?$/.test(r[1])?{selector:`&:not([${r[1]}])`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:`&:not(${Ar(r[1])})`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t,source:"attribute"}}),P(t=>/^not-/.test(t)&&!t.startsWith("not-@")&&!t.startsWith("not-[@"),({selector:t,mod:e,context:r})=>{const o=/^not-(.+)$/.exec(e.type),a=o?Rr(o[1],r):null;return o&&!a?null:{selector:a?`&:not(${a})`:t,flatten:!1,wrappingType:"rule",source:"attribute"}}),P(t=>"*"===t,()=>({selector:":is(& > *)",wrappingType:"rule",source:"universal"}),void 0),P(t=>"**"===t,()=>({selector:":is(& *)",wrappingType:"rule",source:"universal"}),void 0),P(t=>/^\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^\[(.+)\]$/.exec(e.type);if(!r)return{selector:t};const o=Pr(r[1]).trim();return/^[a-zA-Z0-9_-]+(=.+)?$/.test(o)?{selector:`&[${o}]`,wrappingType:"rule",source:"attribute"}:o.startsWith("&")?{selector:`${o}`,wrappingType:"rule",source:"pseudo"}:{selector:`&:is(${o})`,wrappingType:"rule",source:"base"}},void 0),P(t=>/^aria-/.test(t),({selector:t,mod:e})=>{const r=/^aria-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(e.type);if(r)return{selector:`&[aria-${r[1]}="${r[2]??"true"}"]`,source:"aria"};const o=/^aria-([a-zA-Z0-9_]+)$/.exec(e.type);return o?{selector:`&[aria-${o[1]}="true"]`,source:"aria"}:{selector:t,source:"aria"}},void 0),P(t=>t.startsWith("not-")&&!t.startsWith("not-@")&&!t.startsWith("not-[@"),({selector:t,mod:e,context:r})=>{const o=e.type.replace("not-","");if(o.startsWith("[")){const t=o.slice(1,-1);return/^[a-zA-Z0-9_-]+(=.+)?$/.test(t)?{selector:`&:not([${t}])`,source:"attribute"}:{selector:`&:not(${Ar(t)})`,source:"attribute"}}{const t=Rr(o,r);return t?{selector:`&:not(${t})`,source:"attribute"}:null}},void 0),P(t=>/^data-/.test(t),({selector:t,mod:e})=>{const r=/^data-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(e.type);if(r)return{selector:`&[data-${r[1]}="${r[2]??"true"}"]`,source:"data"};const o=/^data-([a-zA-Z0-9_]+)$/.exec(e.type);return o?{selector:`&[data-${o[1]}]`,source:"data"}:{selector:t,source:"attribute"}},void 0),P(t=>/^nth-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-(\d+)$/)?.[1];return r?{selector:`&:nth-child(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^nth-last-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-last-(\d+)$/)?.[1];return r?{selector:`&:nth-last-child(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^nth-of-type-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-of-type-(\d+)$/)?.[1];return r?{selector:`&:nth-of-type(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^nth-last-of-type-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-last-of-type-(\d+)$/)?.[1];return r?{selector:`&:nth-last-of-type(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^is-\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^is-\[(.+)\]$/.exec(e.type);return r?{selector:`&:is(${r[1]})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^where-\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^where-\[(.+)\]$/.exec(e.type);return r?{selector:`&:where(${r[1]})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^supports-(?:\[.+\]|[a-zA-Z-][a-zA-Z0-9-]*)$/.test(t),void 0,t=>{const e=/^supports-(?:\[(.+)\]|([a-zA-Z-][a-zA-Z0-9-]*))$/.exec(t.type);return e?[r("supports",Kr(void 0!==e[1]?Pr(e[1]):e[2]),[],"supports")]:[]}),P(t=>/^layer-\[.*\]$/.test(t),void 0,t=>{const e=/^layer-\[(.+)\]$/.exec(t.type);return e?[r("layer",e[1],[])]:[]}),P(t=>/^scope-\[.*\]$/.test(t),void 0,t=>{const e=/^scope-\[(.+)\]$/.exec(t.type);return e?[r("scope",e[1],[])]:[]});var Dr=t=>/^(group|peer)-has-\[/.test(t)&&Vr(t.slice(t.indexOf("[")+1));function Lr(t,e){const r=/^(.+)\/([a-zA-Z0-9_-]+)$/.exec(e);return r?[r[1],`.${t}\\/${r[2]}`]:[e,`.${t}`]}function Ir(t,e){const r=t.slice(4);if(r.startsWith("[@"))return null;if(r.startsWith("[")&&r.endsWith("]"))return`:not(*:is(${Pr(r.slice(1,-1))}))`;const o=Rr(r,e);return o?`:not(${o})`:null}P(t=>/^(group|peer)-hover(\/[a-zA-Z0-9_-]+)?$/.test(t),({mod:t})=>{const e=t.type.startsWith("group")?"group":"peer",[,r]=Lr(e,t.type.slice(e.length+1));return{selector:`&:is(:where(${r}):hover${"group"===e?" *":" ~ *"})`,wrappingType:"rule",source:e}},()=>[r("media","(hover: hover)",[])]),P(t=>/^group-(.+)$/.test(t)&&!Dr(t),({selector:t,mod:e,context:r})=>{const o=/^group-(.+)$/.exec(e.type),[a,n]=Lr("group",o?.[1]??""),s=o?[o[0],a]:null,i=`:where(${n})`,l=s?zr(s[1]):void 0;if(l)return{selector:`&:is(${i}${l} *)`,wrappingType:"rule",source:"group"};if(s?.[1].startsWith("[")&&s?.[1].endsWith("]"))return{selector:`&:is(${i}:is(${s?.[1].slice(1,-1).replace(/_/g,"")}) *)`,wrappingType:"rule",source:"group"};if(s?.[1]?.startsWith("not-")){const t=Ir(s[1],r);return t?{selector:`&:is(${i}${t} *)`,wrappingType:"rule",source:"group"}:null}if(s?.[1]?.startsWith("has-")){const t=/^has-\[([a-zA-Z0-9_-]+)\]$/.exec(s?.[1]);return t?{selector:`&:is(${i}:has(:is(${t[1]})) *)`,source:"group"}:{selector:`&:is(${i}:has(${Ar(s[1].slice(5,-1))}) *)`,source:"group"}}if(s?.[1]?.startsWith("aria-")){const t=/^aria-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(s?.[1]);if(t){const e=t[1];return t[2]?{selector:`&:is(${i}[aria-${e}="${t[2]}"] *)`,source:"group"}:{selector:`&:is(${i}[aria-${e}] *)`,source:"group"}}}const c=s?jr(s[1],r):null;return s&&!c?null:s?{selector:`&:is(${i}${c} *)`,wrappingType:"rule",source:"group"}:{selector:t,source:"group"}},void 0),P(t=>/^peer-(.+)$/.test(t)&&!Dr(t),({selector:t,mod:e,context:r})=>{const o=/^peer-(.+)$/.exec(e.type),[a,n]=Lr("peer",o?.[1]??""),s=o?[o[0],a]:null,i=`:where(${n})`,l=s?zr(s[1]):void 0;if(l)return{selector:`&:is(${i}${l} ~ *)`,wrappingType:"rule",source:"peer"};if(s?.[1].startsWith("[")&&s?.[1].endsWith("]"))return{selector:`&:is(${i}:is(${s?.[1].slice(1,-1).replace(/_/g,"")})~*)`,wrappingType:"rule",source:"peer"};const c=s?.[1];if(c?.startsWith("has-[")&&c.endsWith("]"))return{selector:`&:is(${i}:has(${Ar(c.slice(5,-1))}) ~ *)`,source:"peer"};if(c?.startsWith("has-")){const t=jr(c.slice(4),r);return t?{selector:`&:is(${i}:has(${t})~*)`,source:"peer"}:null}if(c?.startsWith("not-")){const t=Ir(c,r);return t?{selector:`&:is(${i}${t} ~ *)`,source:"peer"}:null}if(c?.startsWith("aria-")){let t=/^aria-([a-zA-Z0-9_]+)$/.exec(c);if(t)return{selector:`&:is(${i}[aria-${t[1]}]~*)`,source:"peer"};if(t=/^aria-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(c),t){const e=t[1],r=t[2];return t[2]?{selector:`&:is(${i}[aria-${e}="${r}"]~*)`,source:"peer"}:{selector:`&:is(${i}[aria-${e}]~*)`,source:"peer"}}}const p=s?jr(c,r):null;return s&&!p?null:s?{selector:`&:is(${i}${p}~*)`,source:"peer"}:{selector:t,source:"peer"}},void 0),P(t=>/^parent-(.+)$/.test(t),({selector:t,mod:e})=>{const r=/^parent-(.+)$/.exec(e.type);return r?.[1].startsWith("[")&&r?.[1].endsWith("]")?{selector:`.parent\\:\\[${r[1].slice(1,-1)}\\] &`,wrappingType:"rule",source:"parent"}:r?{selector:`.parent:${r[1]} &`,source:"parent"}:{selector:t,source:"parent"}},void 0),P(t=>/^child-(.+)$/.test(t),({selector:t,mod:e})=>{const r=/^child-(.+)$/.exec(e.type);return r?.[1].startsWith("[")&&r?.[1].endsWith("]")?{selector:`& > .child\\:\\[${r[1].slice(1,-1)}\\]`,wrappingType:"rule",source:"child"}:r?{selector:`& > .child:${r[1]}`,source:"child"}:{selector:t,source:"child"}},void 0);var Zr=/^\s*@(media|container)\s+([^{]*)\{/,_r=/prefers-color-scheme|\bprint\b|forced-colors|orientation/,qr=/(?:min-width\s*:\s*|width\s*>=?\s*)([\d.]+)(px|rem|em)?/,Ur=/(?:max-width\s*:\s*|width\s*<=?\s*)([\d.]+)(px|rem|em)?/;function Hr(t,e){const r=parseFloat(t);return"rem"===e||"em"===e?16*r:r}function Yr(t,e){const r="container"===t;if(!r&&/^\s*not\b/i.test(e))return[0,0];const o=qr.exec(e);if(o)return[r?4:2,Hr(o[1],o[2])];const a=Ur.exec(e);return a?[r?3:1,-Hr(a[1],a[2])]:!r&&_r.test(e)?[5,0]:[0,0]}function Gr(t){const e=[];let r,o=t;for(;r=Zr.exec(o);){const[t,a]=Yr(r[1],r[2]);e.push(t,a),o=o.slice(r[0].length)}return e}function Xr(t,e){const r=Math.min(t.length,e.length);for(let o=0;o<r;o++)if(t[o]!==e[o])return t[o]-e[o];return t.length-e.length}function Jr(t,e){let r=0,o=t.length;for(;r<o;){const a=r+o>>1;Xr(t[a],e)<=0?r=a+1:o=a}return r}var Qr=class{insertSorted(t,e,r){const o=t.keys??=[],a=Jr(o,r),n=t.styleElement.sheet;n&&n.cssRules.length===o.length?(n.insertRule(this.escapeCssRule(e),a),t.styles.splice(a,0,e)):(t.styles.splice(a,0,e),t.styleElement.textContent=t.styles.join("\n")+"\n"),o.splice(a,0,r)}constructor(t,e=50,r="barocss-style-partition-",o=t=>D(t).utility?.category,a=""){this.partitions=[],this.categoryPartitions=/* @__PURE__ */new Map,this.partitionCounter=0,this.maxRulesPerPartition=50,this.classToPartitionMap=/* @__PURE__ */new Map,this.classToCategoryPartitionMap=/* @__PURE__ */new Map,this.styleIdPrefix="barocss-style-partition-",this.nonce=a,this.insertionPoint=t,this.maxRulesPerPartition=e,this.styleIdPrefix=r,this.getCategory=o,this.initializeDefaultPartition()}createStyleElement(){const t=document.createElement("style");return this.nonce&&t.setAttribute("nonce",this.nonce),t}initializeDefaultPartition(){this.createNewPartition()}createNewCategoryPartition(t,e=!1){const r={id:this.styleIdPrefix+`-${t}`,styles:[],styleElement:this.createStyleElement()};r.styleElement.id=r.id,r.styleElement.setAttribute("data-barocss","partition"),r.styleElement.setAttribute("data-category",t);const o=this.insertionPoint.ownerDocument?.head;return e&&o?o.insertBefore(r.styleElement,o.firstChild):this.insertionPoint.appendChild(r.styleElement),this.categoryPartitions.set(t,r),r}createNewPartition(){const t={id:this.styleIdPrefix+"-"+this.partitionCounter++,styles:[],styleElement:this.createStyleElement()};return this.partitions.push(t),t.styleElement.id=t.id,t.styleElement.setAttribute("data-barocss","partition"),t.styleElement.setAttribute("data-partition-index",this.partitionCounter.toString()),this.insertionPoint.appendChild(t.styleElement),t}hasRule(t){return this.classToPartitionMap.has(t)}hasCategoryRule(t,e){return this.classToCategoryPartitionMap.get(t)===e}setRuleCache(t,e){this.classToPartitionMap.set(t,e)}setCategoryRuleCache(t,e){this.classToCategoryPartitionMap.set(t,e)}get currentPartition(){return this.partitions[this.partitions.length-1]}getCategoryPartition(t){return this.categoryPartitions.get(t)}hasDetachedPartitions(){return[...this.partitions,...this.categoryPartitions.values()].some(t=>!t.styleElement.isConnected)}escapeCssRule(t){return t.replace(/\\\//g,"\\/")}addRule(t){if(this.hasRule(t))return!1;const e=Gr(t);let r=this.partitions.findIndex(t=>{const r=t.keys;return!!r&&r.length>0&&Xr(r[r.length-1],e)>0});-1===r&&(this.currentPartition.styles.length>=this.maxRulesPerPartition&&this.createNewPartition(),r=this.partitions.length-1);const o=this.partitions[r];try{return this.insertSorted(o,t,e),this.setRuleCache(t,r),!0}catch(a){return s()&&console.warn(`[StylePartitionManager] Failed to insert rule: ${t}`,a),!1}}addCategoryRule(t,e){if(this.hasCategoryRule(t,e))return!1;let r=this.getCategoryPartition(e);r||(r=this.createNewCategoryPartition(e));try{this.insertSorted(r,t,Gr(t))}catch(o){return s()&&console.warn(`[StylePartitionManager] Failed to insert rule in category: ${e} ${t}`,o),!1}return this.setCategoryRuleCache(t,e),!0}addRootRules(t){let e=this.getCategoryPartition("root");e||(e=this.createNewCategoryPartition("root"));try{const r=e.styleElement.sheet;for(const o of t)r?r.insertRule(this.escapeCssRule(o),r.cssRules.length):e.styleElement.textContent+=o+"\n"}catch(r){return s()&&console.warn(`[StylePartitionManager] Failed to insert rule in category: root ${t.join("\n")}`,r),{success:0,failed:t.length}}return{success:t.length,failed:0}}addRules(t){let e=0,r=0;for(const o of t){const t=this.getCategory(o.cls);if(t)for(const e of o.cssList)this.addCategoryRule(e,t);else for(const a of o.cssList)this.addRule(a)?e++:r++}return{success:e,failed:r}}removeRule(t,e){let r;if(e){if(this.classToCategoryPartitionMap.get(t)!==e)return!1;r=this.categoryPartitions.get(e)}else{const e=this.classToPartitionMap.get(t);r=void 0===e?void 0:this.partitions[e]}if(!r)return!1;const o=r.styles.indexOf(t);if(-1===o)return!1;const a=r.styleElement.sheet,n=!!a&&a.cssRules.length===r.styles.length;return r.styles.splice(o,1),r.keys?.splice(o,1),n&&a?a.deleteRule(o):r.styleElement.textContent=r.styles.length?r.styles.join("\n")+"\n":"",e?this.classToCategoryPartitionMap.delete(t):this.classToPartitionMap.delete(t),!0}get ruleCount(){return this.classToPartitionMap.size+this.classToCategoryPartitionMap.size}findRulePartition(t){const e=this.classToPartitionMap.get(t);if(void 0!==e&&this.partitions[e])return this.partitions[e];const r=this.classToCategoryPartitionMap.get(t);return void 0!==r&&this.categoryPartitions.get(r)||null}updateRuleContent(t,e,r=!1){const o=this.getCategoryPartition(t);if(o)o.styleElement.textContent=e;else{const o=this.createNewCategoryPartition(t,r);s()&&console.log(`[StylePartitionManager] Created new partition for category: ${t}`),o.styleElement.textContent=e}}cleanup(){this.partitions.forEach(t=>{t.styleElement.parentNode&&t.styleElement.parentNode.removeChild(t.styleElement)}),this.categoryPartitions.forEach(t=>{t.styleElement.parentNode&&t.styleElement.parentNode.removeChild(t.styleElement)}),this.partitions=[],this.categoryPartitions.clear(),this.partitionCounter=0,this.classToPartitionMap.clear(),this.classToCategoryPartitionMap.clear()}},to=/[ \t\n\f\r]+/;function eo(t){return t?"object"==typeof t&&"string"==typeof t.baseVal?t.baseVal:t.toString():""}function ro(t){return t?eo(t).split(to).filter(Boolean):[]}var oo=class{constructor(t,e,r=t=>D(t).utility?.category){this.observer=null,this.gc=null,this.incrementalParser=t,this.BrowserRuntime=e,this.getCategory=r}setGc(t){this.gc=t}setParser(t){this.incrementalParser=t}observe(t=document.body,e){return"undefined"==typeof window?new MutationObserver(()=>{}):(this.observer&&this.observer.disconnect(),this.gc?.setRoot(t),this.observer=new MutationObserver(e=>{const r=/* @__PURE__ */new Set,o=this.gc;if(e.forEach(e=>{if(o&&("attributes"===e.type?o.reconcile(e.target):"childList"===e.type&&(e.removedNodes.forEach(t=>o.reconcileTree(t)),e.addedNodes.forEach(t=>o.reconcileTree(t)))),"attributes"===e.type&&"class"===e.attributeName&&t.contains(e.target)){const t=e.target;t.className&&ro(t.className).forEach(t=>{this.incrementalParser.isProcessed(t)||r.add(t)})}"childList"===e.type&&e.addedNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE&&t.contains(e)){const t=e;this.processElement(t,r),t.querySelectorAll("[class]").forEach(t=>{this.processElement(t,r)})}})}),r.size>0){const t=Array.from(r),e=this.incrementalParser.processClasses(t);this.BrowserRuntime?.applyParseResults(e)}else this.BrowserRuntime?.applyParseResults([]);o?.afterBatch()}),this.observer.observe(t,{attributes:!0,subtree:!0,attributeFilter:["class"],childList:!0}),e?.scan&&this.scanExistingClasses(t,e),this.observer)}scanExistingClasses(t,e){const r=/* @__PURE__ */new Set,o=t.className;o&&ro(o).forEach(t=>{this.incrementalParser.isProcessed(t)||r.add(t)});const a=t.querySelectorAll("[class]");for(const n of a)if(n.className){const t=ro(n.className);for(const e of t)this.incrementalParser.isProcessed(e)||r.add(e)}if(r.size>0){const t=Array.from(r),o=this.incrementalParser.processClasses(t),a=o.filter(t=>"layout"===this.getCategory(t.cls)),n=o.filter(t=>"layout"!==this.getCategory(t.cls));this.BrowserRuntime?.applyParseResults(a),e?.onReady?.(),this.BrowserRuntime?.applyParseResults(n)}else e?.onReady?.()}processElement(t,e){t.className&&ro(t.className).forEach(t=>{this.incrementalParser.isProcessed(t)||e.add(t)})}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null)}};function ao(t){return t.replace(/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,(t,e,r)=>e?String.fromCodePoint(parseInt(e,16)):r)}var no=/^\s*(?::(?:where|is)\(\s*)?\.((?:\\[0-9a-fA-F]{1,6}\s?|\\.|[\w-]|[^\x00-\x7F])+)/;function so(t){const e=[];let r=0,o=0;for(let a=0;a<t.length;a++){const n=t[a];"\\"===n?a++:"("===n||"["===n?r++:")"===n||"]"===n?r--:","===n&&0===r&&(e.push(t.slice(o,a)),o=a+1)}return e.push(t.slice(o)),e}function io(t,e=/* @__PURE__ */new Set){for(const r of Array.from(t)){if(7===r.type&&"string"==typeof r.name){e.add(r.name);continue}const t=r.cssRules;t&&t.length&&io(t,e)}return e}function lo(t,e=/* @__PURE__ */new Set){for(const r of Array.from(t)){const t=r.selectorText;if("string"==typeof t)for(const r of so(t)){const t=no.exec(r);t&&e.add(ao(t[1]))}const o=r.cssRules;o&&o.length&&lo(o,e)}return e}var co=class{constructor(t,e,r,o=()=>Date.now()){this.host=t,this.graceMs=e,this.maxRules=r,this.now=o,this.counts=/* @__PURE__ */new Map,this.counted=/* @__PURE__ */new WeakMap,this.candidates=/* @__PURE__ */new Map,this.timer=null,this.root=null}setRoot(t){this.counts.clear(),this.counted=/* @__PURE__ */new WeakMap,this.candidates.clear(),this.cancel(),this.root=t,1===t.nodeType?this.reconcileTree(t):t.querySelectorAll("[class]").forEach(t=>this.reconcile(t))}count(t){return this.counts.get(t)??0}reconcileTree(t){if(1!==t.nodeType)return;const e=t;this.reconcile(e),e.querySelectorAll("[class]").forEach(t=>this.reconcile(t))}reconcile(t){const e=this.root,r=e&&e.contains(t)?Array.from(new Set(ro(t.getAttribute("class")))):[],o=this.counted.get(t);if(!o&&0===r.length)return;const a=new Set(o??[]),n=new Set(r);for(const s of n){if(a.has(s))continue;const t=(this.counts.get(s)??0)+1;this.counts.set(s,t),this.candidates.delete(s)}for(const s of a){if(n.has(s))continue;const t=(this.counts.get(s)??0)-1;t>0?this.counts.set(s,t):(this.counts.delete(s),this.candidates.delete(s),this.candidates.set(s,this.now()))}r.length?this.counted.set(t,r):this.counted.delete(t)}afterBatch(){0!==this.candidates.size&&(this.host.cachedCount()>this.maxRules?this.schedule(0):this.schedule(this.graceMs))}schedule(t){if(null!==this.timer){if(t>0)return;clearTimeout(this.timer)}this.timer=setTimeout(()=>{this.timer=null,this.sweep()},t)}sweep(){const t=this.now(),e=Math.max(0,this.host.cachedCount()-this.maxRules),r=[];let o=0;for(const[a,n]of this.candidates){const s=t-n>=this.graceMs;!s&&o>=e||(this.candidates.delete(a),this.count(a)>0||this.inDom(a)||this.host.isPermanent(a)||(r.push(a),s||o++))}r.length&&this.host.reclaim(r),this.candidates.size&&this.schedule(this.graceMs)}inDom(t){const e=this.root;if(!e)return!1;if(1!==e.nodeType)return Array.from(e.querySelectorAll("[class]")).some(e=>e.classList.contains(t));const r=e.ownerDocument??document;return e.classList.contains(t)||r.documentElement.classList.contains(t)||r.getElementsByClassName(t).length>0}cancel(){null!==this.timer&&clearTimeout(this.timer),this.timer=null}stats(){return{trackedClasses:this.counts.size,candidates:this.candidates.size}}};function po(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=Math.imul(e,16777619);return(e>>>0).toString(36)}function uo(t="shadow"){try{const e="document"===t?"undefined"!=typeof Document?Document.prototype:void 0:"undefined"!=typeof ShadowRoot?ShadowRoot.prototype:void 0;return!!e&&"adoptedStyleSheets"in e&&"function"==typeof CSSStyleSheet&&"function"==typeof(new CSSStyleSheet).replaceSync}catch{return!1}}var yo=class{constructor(t,e,r=t,o={}){this.results=/* @__PURE__ */new Map,this.generations=0,this.prologueSheet=null,this.rulesSheet=null,this.prologue={preflight:"",vars:""},this.segments=/* @__PURE__ */new Map([["root",{rules:[],keys:[]}],["",{rules:[],keys:[]}]]),this.refs=/* @__PURE__ */new Map,this.attached=[],this.key=t,this.fullKey=r,this.context=o.context??Ut(e),this.constructable=uo(o.target??"shadow"),this.constructable&&(this.prologueSheet=new CSSStyleSheet,this.rulesSheet=new CSSStyleSheet)}get rootCount(){return this.attached.length}get ruleCount(){return this.refs.size}attach(t,e=""){if(this.attached.some(e=>e.root===t))return;if(this.prologueSheet&&this.rulesSheet){const e=[this.prologueSheet,this.rulesSheet];return t.adoptedStyleSheets=[...t.adoptedStyleSheets.filter(t=>!e.includes(t)),...e],void this.attached.push({root:t})}if(11!==t.nodeType)throw new Error("[BrowserRuntime] constructable sheets are not supported for the document");const r=t.ownerDocument??document,o=r.createElement("style"),a=r.createElement("style");e&&(o.setAttribute("nonce",e),a.setAttribute("nonce",e)),o.setAttribute("data-barocss","root-prologue"),a.setAttribute("data-barocss","root"),o.textContent=this.prologueText(),a.textContent=this.allRules().join("\n"),t.insertBefore(a,t.firstChild),t.insertBefore(o,a),this.attached.push({root:t,styles:[o,a]})}detach(t){const e=this.attached.findIndex(e=>e.root===t);if(-1===e)return;const[r]=this.attached.splice(e,1);r.styles?r.styles.forEach(t=>t.remove()):t.adoptedStyleSheets&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>t!==this.prologueSheet&&t!==this.rulesSheet))}setPrologue(t,e){if(this.prologue[t]===e)return;this.prologue[t]=e;const r=this.prologueText();this.prologueSheet&&this.prologueSheet.replaceSync(r);for(const o of this.attached)o.styles&&(o.styles[0].textContent=r)}prologueText(){return[this.prologue.preflight,this.prologue.vars].filter(Boolean).join("\n")}allRules(){return Array.from(this.segments.values()).flatMap(t=>t.rules)}offset(t){let e=0;for(const r of this.segments.values()){if(r===t)return e;e+=r.rules.length}return e}retain(t,e){const r=this.refs.get(t);if(void 0!==r)return this.refs.set(t,r+1),!0;let o=this.segments.get(e);o||(o={rules:[],keys:[]},this.segments.set(e,o));const a="root"===e,n=Gr(t),i=a?o.rules.length:Jr(o.keys,n),l=this.offset(o)+i;try{this.insertAt(t,l)}catch(c){return s()&&console.warn(`[BrowserRuntime] Failed to insert rule into shadow root sheet: ${t}`,c),!1}return o.rules.splice(i,0,t),o.keys.splice(i,0,n),this.refs.set(t,1),!0}release(t){const e=this.refs.get(t);if(void 0!==e)if(e>1)this.refs.set(t,e-1);else{this.refs.delete(t);for(const e of this.segments.values()){const r=e.rules.indexOf(t);if(-1===r)continue;const o=this.offset(e)+r;return e.rules.splice(r,1),e.keys.splice(r,1),void this.deleteAt(o)}}}insertAt(t,e){const r=(t=>t.replace(/\\\//g,"\\/"))(t);if(this.rulesSheet)return void this.rulesSheet.insertRule(r,e);const o=this.allRules().length;for(const a of this.attached){const n=a.styles[1],s=n.sheet;if(s&&s.cssRules.length===o)s.insertRule(r,e);else{const r=this.allRules();r.splice(e,0,t),n.textContent=r.join("\n")}}}deleteAt(t){if(this.rulesSheet)return void this.rulesSheet.deleteRule(t);const e=this.allRules().length;for(const r of this.attached){const o=r.styles[1],a=o.sheet;a&&a.cssRules.length===e+1?a.deleteRule(t):o.textContent=this.allRules().join("\n")}}cssText(){return[this.prologueText(),...this.allRules()].join("\n")}},ho=/* @__PURE__ */new Map;function go(t,e=po){const r=function(t){return JSON.stringify(t,(t,e)=>"function"==typeof e?`fn:${String(e)}`:e instanceof RegExp?`re:${e}`:e)??""}(t);let o=ho.get(r);return o||(o=new yo(e(r),t,r),ho.set(r,o)),o}var mo,fo=class extends Bt{constructor(t){super(t.context),this.shared=t}processClass(t){if(this.isProcessed(t))return null;const e=this.shared.results.get(t);if(e)return this.markProcessed(t),e;const r=super.processClass(t);return r&&(this.shared.results.set(t,r),this.shared.generations++),r}},bo=class{constructor(t,e,r=t=>D(t).utility?.category,o={}){this.shared=t,this.root=e,this.getCategory=r,this.owned=/* @__PURE__ */new Set,this.scopePreflight=11===e.nodeType,t.attach(e,o.nonce)}hasDetachedPartitions(){return!1}updateRuleContent(t,e){"preflight"===t?this.shared.setPrologue("preflight",this.scopePreflight?function(t){const e=[];let r=t.replace(/\/\*[\s\S]*?\*\//g,"");return r=r.replace(/(?<=^|[{};])(\s*)([^{};@\s][^{};]*?)\{([^{}]*)\}/g,(t,r,o,a)=>{const n=o.split(",").map(t=>t.trim()).filter(Boolean);if(n.includes("body"))for(const i of a.split(";").map(t=>t.trim()).filter(Boolean))/^(min-height|scroll-behavior)\s*:/.test(i)||e.push(i);const s=Array.from(new Set(n.filter(t=>"body"!==t).map(t=>"html"===t||":root"===t?":host":t)));return 0===s.length?"":`${r}${s.join(", ")} {${a}}`}),e.length&&(r+=`\n@layer base {\n:host {\n ${e.join(";\n ")};\n}\n}\n`),r}(e):e):"css-vars"===t&&this.shared.setPrologue("vars",e)}take(t,e){return!this.owned.has(t)&&(!!this.shared.retain(t,e)&&(this.owned.add(t),!0))}addRule(t){return this.take(t,"")}addCategoryRule(t,e){return this.take(t,`c:${e}`)}addRootRules(t){let e=0;for(const r of t)this.take(r,"root")&&e++;return{success:e,failed:t.length-e}}addRules(t){let e=0,r=0;for(const o of t){const t=this.getCategory(o.cls);for(const a of o.cssList)(t?this.addCategoryRule(a,t):this.addRule(a))?e++:r++}return{success:e,failed:r}}removeRule(t,e){return!!this.owned.delete(t)&&(this.shared.release(t),!0)}get ruleCount(){return this.owned.size}cleanup(){var t;this.owned.forEach(t=>this.shared.release(t)),this.owned.clear(),this.shared.detach(this.root),0===(t=this.shared).rootCount&&ho.get(t.fullKey)===t&&ho.delete(t.fullKey)}},vo="style[data-barocss-ssr]",xo="@layer theme, base, components, utilities;",ko=class{constructor(t={}){this.cache=/* @__PURE__ */new Map,this.rootCache=/* @__PURE__ */new Set,this.shadowRoot=null,this.isDestroyed=!1,this.existing=null,this.existingKeyframes=/* @__PURE__ */new Set,this.existingSheetCount=-1,this.pinned=/* @__PURE__ */new Set,this.gc=null,this.reclaimedCount=0,this.ssrRules=[],this.ssrClasses=/* @__PURE__ */new Set,this.observedOnce=!1,this.getCategory=t=>D(t,this.context).utility?.category;this.options={config:t.config||{},styleId:t.styleId||"barocss-runtime",insertionPoint:t.insertionPoint||"head",maxRulesPerPartition:t.maxRulesPerPartition||50,skipExisting:t.skipExisting??!1,gc:t.gc??!0,gcGraceMs:t.gcGraceMs??3e3,maxRules:t.maxRules??1/0,nonce:t.nonce??"",constructable:t.constructable??!1};const e=t.root;if(e&&11===e.nodeType&&(this.shadowRoot=e),this.shadowRoot){const t=go(this.options.config);this.context=t.context,this.incrementalParser=new fo(t)}else this.context=Ut(this.options.config),this.incrementalParser=new Bt(this.context);this.changeDetector=new oo(this.incrementalParser,this,this.getCategory),this.stylePartitionManager=this.createStyles(),this.options.gc&&(this.gc=new co({reclaim:t=>this.reclaim(t),isPermanent:t=>this.isPermanent(t),cachedCount:()=>this.cache.size},this.options.gcGraceMs,this.options.maxRules),this.changeDetector.setGc(this.gc)),this.init(),this.shadowRoot&&this.observe(this.shadowRoot,{scan:!0})}createStyles(){if(this.shadowRoot){let t=this.incrementalParser.shared;const e=go(this.options.config);return e!==t&&(t=e,this.context=t.context,this.incrementalParser=new fo(t),this.changeDetector?.setParser(this.incrementalParser)),new bo(t,this.shadowRoot,this.getCategory,{nonce:this.options.nonce})}if(this.options.constructable&&"undefined"!=typeof document&&uo("document")){const t=new yo("document",this.options.config,"document",{context:this.context,target:"document"});return new bo(t,document,this.getCategory)}return new Qr(this.getInsertionPoint(),this.options.maxRulesPerPartition,`${this.options.styleId}-partition`,this.getCategory,this.options.nonce)}debugLog(t,e,r){s()&&(console[t]||console.log)(`[BrowserRuntime:${t.toUpperCase()}] ${e}`,r||"")}init(){this.debugLog("debug","init"),this.injectPreflightCSS(),this.ensureCssVars(),this.adoptSsrSheets()}adoptSsrSheets(){if("undefined"==typeof document||this.shadowRoot)return;const t=[];if(document.head){for(const e of Array.from(document.head.querySelectorAll(`${vo}:not([data-barocss-adopted])`))){const r=e.sheet;if(!r)continue;e.setAttribute("data-barocss-adopted","");const o=[];for(let t=r.cssRules.length-1;t>=0;t--){const e=r.cssRules[t],a=lo([e]);0!==a.size&&(a.forEach(t=>this.ssrClasses.add(t)),o.unshift({css:e.cssText,cls:a.values().next().value}),r.deleteRule(t))}t.push(...o)}0!==t.length&&(this.ssrRules.push(...t),this.insertSsrRules(t))}}insertSsrRules(t){for(const{css:e,cls:r}of t){const t=this.getCategory(r);t?this.stylePartitionManager.addCategoryRule(e,t):this.stylePartitionManager.addRule(e)}}injectPreflightCSS(){const t=this.options.config.preflight??!0;if(t){const e=this.context.getPreflightCSS(t);this.stylePartitionManager.updateRuleContent("preflight",`${xo}\n@layer base {\n${e}\n}`,!0)}}ensureCssVars(){if(this.isDestroyed)return;const t=this.context.themeToCssVars?this.context.themeToCssVars():":root { /* CSS Variables will be generated here */ }";this.stylePartitionManager.updateRuleContent("css-vars",t)}getInsertionPoint(){return"string"!=typeof this.options.insertionPoint?this.options.insertionPoint:"body"===this.options.insertionPoint&&document.body||document.head}addClass(t){if(this.isDestroyed)return;const e=this.normalizeClasses(t).filter(Boolean);e.forEach(t=>this.pinned.add(t)),this.processClasses(e)}processClasses(t){this.processClassesIncremental(t)}processClassesIncremental(t){const e="undefined"!=typeof window,r=this.incrementalParser.processClasses(t);this.debugLog("debug","results",{results:r,classList:t}),this.applyParseResults(r,{isBrowser:e})}applyParseResults(t,e){if(this.isDestroyed)return;if(!this.shadowRoot&&this.getInsertionPoint().isConnected&&this.stylePartitionManager.hasDetachedPartitions()){const e=Array.from(this.cache.values());this.reset(),(t=[...e,...t]).forEach(t=>this.incrementalParser.markProcessed(t.cls))}if(this.ssrClasses.size>0&&(t=t.filter(t=>!this.ssrClasses.has(t.cls))),this.options.skipExisting&&t.length>0&&"undefined"!=typeof document){const e=this.getExistingClasses();t=t.filter(t=>!e.has(t.cls))}if(0===t.length)return;const r=[],o=[],a=this.options.skipExisting&&"undefined"!=typeof document?(this.getExistingClasses(),this.existingKeyframes):null;for(const n of t)if(n.css&&Array.isArray(n.cssList)&&(r.push(n),this.cache.set(n.cls,n)),n.rootCss&&Array.isArray(n.rootCssList))for(const t of n.rootCssList){if(a?.size){const e=/^\s*@keyframes\s+([^\s{]+)/.exec(t)?.[1];if(e&&a.has(e))continue}this.rootCache.has(t)||(this.rootCache.add(t),o.push(t))}o.length>0&&this.stylePartitionManager.addRootRules(o.filter(Boolean)),r.length>0&&this.stylePartitionManager.addRules(r),this.debugLog("info",`Applied ${t.length} parser results`,{cssRuleCount:r.length,rootCssCount:o.length})}isPermanent(t){return!(!this.pinned.has(t)&&!this.ssrClasses.has(t))||!this.shadowRoot&&("undefined"==typeof document||this.getExistingClasses().has(t))}reclaim(t){if(this.isDestroyed)return;const e=t.filter(t=>this.cache.has(t));if(0===e.length)return;const r=e.map(t=>this.cache.get(t));e.forEach(t=>{this.cache.delete(t),this.incrementalParser.unmarkProcessed(t)});const o=/* @__PURE__ */new Set;for(const a of this.cache.values())a.cssList.forEach(t=>o.add(t));for(const a of r){const t=this.getCategory(a.cls);for(const e of a.cssList)o.has(e)||this.stylePartitionManager.removeRule(e,t)}this.reclaimedCount+=e.length}getExistingClasses(){const t=new Set(Array.from(document.querySelectorAll("style[data-barocss]"),t=>t.sheet)),e=Array.from(document.styleSheets).filter(e=>{if(t.has(e))return!1;const r=e.ownerNode;return!(r&&"function"==typeof r.hasAttribute&&(r.hasAttribute("data-barocss")||(r.id||"").startsWith(this.options.styleId)))});if(this.existing&&e.length===this.existingSheetCount)return this.existing;const r=/* @__PURE__ */new Set,o=/* @__PURE__ */new Set;for(const a of e){let t;try{t=a.cssRules}catch{continue}lo(t,r),io(t,o)}return this.existingKeyframes=o,this.existing=r,this.existingSheetCount=e.length,r}observe(t=this.shadowRoot??document.body,e){return this.observedOnce||(this.observedOnce=!0,this.adoptSsrSheets()),this.changeDetector.observe(t,e)}normalizeClasses(t){return(Array.isArray(t)?t:[t]).flatMap(ro)}has(t){return this.cache.has(t)}getCss(t){return this.cache.get(t)?.cssList.join("\n")}getAllCss(){return[...this.rootCache,...Array.from(this.cache.values()).flatMap(t=>t.cssList)].join("\n")}getClasses(){return Array.from(this.cache.keys())}getCacheStats(){const t=this.incrementalParser.getStats();return{runtime:{cachedClasses:this.cache.size,rootCacheSize:this.rootCache.size,ruleCount:this.stylePartitionManager.ruleCount,reclaimedClasses:this.reclaimedCount,gc:this.gc?.stats()??null},ast:t.cacheStats.ast,incremental:t}}clearCaches(){var t;this.isDestroyed||(this.cache.clear(),this.rootCache.clear(),(t=this.context)?v(t):(g(),zt.clear()),this.incrementalParser.clearProcessed(),this.stylePartitionManager.cleanup(),this.stylePartitionManager=this.createStyles(),this.injectPreflightCSS(),this.ensureCssVars(),this.insertSsrRules(this.ssrRules))}reset(){this.isDestroyed||(this.cache.clear(),this.rootCache.clear(),this.incrementalParser.clearProcessed(),this.stylePartitionManager.cleanup(),this.stylePartitionManager=this.createStyles(),this.injectPreflightCSS(),this.ensureCssVars(),this.insertSsrRules(this.ssrRules))}updateConfig(t){if(this.isDestroyed)return;const e=Array.from(this.cache.keys());if(this.options.config=t,this.shadowRoot){this.stylePartitionManager.cleanup();const e=go(t);this.context=e.context,this.incrementalParser=new fo(e)}else this.context=Ut(t),this.incrementalParser=new Bt(this.context);this.changeDetector.setParser(this.incrementalParser),this.reset(),e.length>0&&this.addClass(e)}removeClass(t){if(this.isDestroyed)return;const e=new Set(this.normalizeClasses(t)),r=Array.from(this.cache.values()).filter(t=>!e.has(t.cls));r.length!==this.cache.size&&(this.reset(),r.forEach(t=>this.incrementalParser.markProcessed(t.cls)),this.applyParseResults(r))}destroy(){this.isDestroyed||(this.changeDetector.disconnect(),this.gc?.cancel(),this.stylePartitionManager.cleanup(),this.cache.clear(),this.rootCache.clear(),this.isDestroyed=!0)}getStats(){return{cachedClasses:this.cache.size,styleElementId:this.options.styleId,isDestroyed:this.isDestroyed,config:this.options.config,cacheStats:this.getCacheStats(),adopted:!this.shadowRoot&&this.stylePartitionManager instanceof bo,sharedSheet:this.shadowRoot&&this.stylePartitionManager instanceof bo?{roots:this.stylePartitionManager.shared.rootCount,rules:this.stylePartitionManager.shared.ruleCount,generations:this.stylePartitionManager.shared.generations,constructable:this.stylePartitionManager.shared.constructable}:null}}},wo=null,$o="",Co=!1,Po=!1;function zo(t={}){if(!wo||wo.getStats().isDestroyed?(wo=new ko(t),mo=t.config,$o=t.nonce??"",Co=t.constructable??!1,Po=!1):t.config&&t.config!==mo&&(wo.updateConfig(t.config),mo=t.config),!Po){const e=void 0!==t.nonce&&t.nonce!==$o,r=void 0!==t.constructable&&t.constructable!==Co;if(e||r){Po=!0;const t=[e&&`nonce (runtime has ${$o?"a different nonce":"none"})`,r&&`constructable (runtime has ${Co})`].filter(Boolean).join(" and ");console.warn(`[BaroCSS] runtime already created with a different ${t}; the new value is ignored. Pass nonce/constructable on the first getRuntime/baroStart call.`)}}return wo}function Ao({loadingClassName:t="baro-boot",...e}={}){if(e.root&&11===e.root.nodeType)return new ko(e);if(!document.body)return void document.addEventListener("DOMContentLoaded",()=>Ao({loadingClassName:t,...e}),{once:!0});const r=`${t}-doing`,o=`${t}-done`;try{document.body.classList.add(r),zo(e).observe(document.body,{scan:!0,onReady:()=>{document.body.classList.remove(r),document.body.classList.add(o)}})}catch(a){document.body?.classList.remove(r),console.error("BaroCSS boot failed:",a)}}var So=Ao;function jo(t){if(!t||"object"!=typeof t||Array.isArray(t))return[];const e=t.elements;if(!e||"object"!=typeof e||Array.isArray(e))return[];const r=/* @__PURE__ */new Set;for(const o of Object.keys(e)){const t=e[o];if(!t||"object"!=typeof t||Array.isArray(t))continue;const a=t.props;if(!a||"object"!=typeof a||Array.isArray(a))continue;const n=a.className;if("string"==typeof n)for(const e of ro(n))e&&r.add(e)}return Array.from(r)}function Ro(t,e){const r=jo(t);r.length>0&&e.addClass(r)}var Eo={colors:Object.fromEntries(["background","foreground","card","card-foreground","popover","popover-foreground","primary","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","accent","accent-foreground","destructive","border","input","ring","chart-1","chart-2","chart-3","chart-4","chart-5","sidebar","sidebar-foreground","sidebar-primary","sidebar-primary-foreground","sidebar-accent","sidebar-accent-foreground","sidebar-border","sidebar-ring"].map(t=>[t,`var(--${t})`])),borderRadius:{sm:"calc(var(--radius) - 4px)",md:"calc(var(--radius) - 2px)",lg:"var(--radius)",xl:"calc(var(--radius) + 4px)"}};export{ko as BrowserRuntime,oo as ChangeDetector,xo as LAYER_ORDER,vo as SSR_STYLE_SELECTOR,Qr as StylePartitionManager,Ao as baroBoot,So as baroStart,jo as collectJsonRenderClassNames,zo as getRuntime,eo as normalizeClassName,ro as normalizeClassNameList,Ro as preloadJsonRenderClasses,Eo as shadcnTheme};
|
|
1
|
+
function t(t,e,r){return{type:"decl",prop:t,value:e,source:r}}function e(t,e){return{type:"at-root",nodes:t,source:e}}function r(t,e,r,o){return{type:"at-rule",name:t,params:e,nodes:r,source:o}}function o(t,e,r){return{type:"rule",selector:t,nodes:e,source:r}}function a(e,o,a,n){const s=[t("syntax",`"${a||"*"}"`,n),t("inherits","false",n)];return o&&s.push(t("initial-value",o,n)),r("property",e,s,n)}var n=!1;function s(){return n}function i(...t){n&&console.warn(...t)}var l,c=class{constructor(){this.cache=/* @__PURE__ */new Map,this.maxSize=1e3}set(t,e){if(this.cache.size>=this.maxSize){const t=this.cache.keys().next().value;t&&this.cache.delete(t)}this.cache.set(t,e)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,maxSize:this.maxSize,hitRate:this.cache.size/this.maxSize}}},p=new c,u=class{constructor(){this.cache=/* @__PURE__ */new Map,this.maxSize=2e3}set(t,e){if(this.cache.size>=this.maxSize){const t=this.cache.keys().next().value;t&&this.cache.delete(t)}this.cache.set(t,e)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,maxSize:this.maxSize,hitRate:this.cache.size/this.maxSize}}},d=new u,y=class{constructor(){this.cache=/* @__PURE__ */new Map,this.maxSize=1e3}set(t,e){if(this.cache.size>=this.maxSize){const t=this.cache.keys().next().value;t&&this.cache.delete(t)}this.cache.set(t,e)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,maxSize:this.maxSize,hitRate:this.cache.size/this.maxSize}}},h=new y;function g(){p.clear(),d.clear(),h.clear(),l?.(),function(...t){n&&console.log(...t)}("[clearAllCaches] All caches cleared")}var m=/* @__PURE__ */new WeakMap,f=0;function b(t){const e=m.get(t);return e&&e.cacheGeneration!==f&&(v(t),e.cacheGeneration=f),e}function v(t){const e=m.get(t);e&&(e.astCache.clear(),e.parseResultCache.clear(),e.utilityCache.clear(),e.failures.clear())}l=()=>{f+=1};var x=[];function k(t,e){const r=e&&b(e);if(e&&!r)throw new Error("Utility registration requires a context from createContext");(r?.utilities||x).push(t),e?v(e):(d.clear(),h.clear())}function w(t){return t&&b(t)?.utilities||x}var $=[];function C(t,e,r={},o){z({name:t,match:e=>e===t,modifySelector:({...t})=>e.map(t=>({selector:t,source:r.source})),...r},o)}function P(t,e,r,o={},a){z({match:t,modifySelector:e,wrap:r,...o},a)}function z(t,e){const r=e&&b(e);if(e&&!r)throw new Error("Modifier registration requires a context from createContext");(r?.modifiers||$).push(t),e&&v(e)}function A(t){return t&&b(t)?.modifiers||$}var S=/[^A-Za-z0-9_-]/gu,j=/^[\s\p{C}\p{Z}]$/u;function R(t){if("-"===t)return"\\-";const e=/^-?[0-9]/.exec(t);if(e){const r=e[0].length-1;return t.slice(0,r)+"\\"+t.charCodeAt(r).toString(16)+" "+E(t.slice(r+1))}return E(t)}function E(t){return t.replace(S,t=>" "===t?"\\x20 ":"."===t?"\\.":"/"===t?"\\/":":"===t?"\\:":"["===t?"\\[":"]"===t?"\\]":"("===t?"\\(":")"===t?"\\)":"%"===t?"\\%":"#"===t?"\\#":","===t?"\\,":"="===t?"\\=":"&"===t?"\\&":"~"===t?"\\~":"*"===t?"\\*":"$"===t?"\\$":"^"===t?"\\^":"+"===t?"\\+":"?"===t?"\\?":"!"===t?"\\!":"@"===t?"\\@":"'"===t?"\\'":'"'===t?'\\"':"`"===t?"\\`":";"===t?"\\;":"<"===t?"\\<":">"===t?"\\>":"{"===t?"\\{":"}"===t?"\\}":"|"===t?"\\|":"\\"===t?"\\\\":j.test(t)?"\\"+t.codePointAt(0).toString(16)+" ":"\\"+t)}function T(e,r,a,n){k({name:e,match:t=>t===e,handler:e=>r.flatMap(r=>{if(r.type)return[r];if("function"==typeof r)return[r(e)];const[a,n]=r;return"string"==typeof n?[t(a,n)]:Array.isArray(n)?[o(a,n.map(([e,r])=>t(e,r)))]:[]}),description:a?.description,category:a?.category,priority:a?.priority},n)}function N(t,e,r){if("DEFAULT"===r||!/^[a-zA-Z][\w-]*$/.test(r)||"function"!=typeof t?.theme)return;const o=t.theme(e);return o&&"object"==typeof o&&Object.prototype.hasOwnProperty.call(o,r)?o[r]??void 0:void 0}function W(t,e,r){const o=N(t,e,r);return"string"==typeof o?o:null}function V(t,e,r,o){return void 0===N(t,e,r)?null:`var(--${o}-${r})`}function B(e,r){k({name:e.name,match:t=>t.startsWith(e.name+"-"),handler:(r,o,a,n)=>{let s=r;const i=a,l={opacity:a.opacity};if(e.supportsOpacity&&!a.arbitrary&&!a.customProperty&&r.includes("/")){const t=r.split("/");t.length>=2&&(l.opacity=t.pop(),s=t.join("/"))}if(e.supportsArbitrary&&i.arbitrary){const r=K(O(s.replace(/_/g," ")));if(e.handle){const t=e.handle(r,o,a,l);if(t)return t}return e.prop?[t(e.prop,r)]:[]}if(e.supportsCustomProperty&&i.customProperty){if(e.handleCustomProperty)return e.handleCustomProperty(s,o,a,l);const r=`var(${s})`;if(e.handle){const t=e.handle(r,o,a,l);if(t)return t}return e.prop?[t(e.prop,r)]:[]}let c;e.themeKey&&o.theme&&(c=D(o.theme(e.themeKey,s)));let p=void 0!==c?e.themeKey:void 0;if(!c&&e.themeKeys&&o.theme)for(const t of e.themeKeys)if(c=D(o.theme(t,s)),void 0!==c){p=t;break}if(void 0!==c){if(l.themeNamespace=p,l.themeKey=s,"colors"!==p&&(e.themeKeys??[e.themeKey]).includes("colors")||(l.realThemeValue=s),s=c,e.prop)return[t(e.prop,s)];if(e.handle){const t=e.handle(s,o,a,l);if(t)return t}return[]}e.supportsFraction&&/^-?\d+\/\d+$/.test(r)&&(s=r);const u=e.spacingKeys?function(t,e,r){if("px"===e||!/^[a-zA-Z][\w-]*$/.test(e)||null==t.theme("spacing",e))return null;const o=`var(--spacing-${e})`;return r?`calc(${o} * -1)`:o}(o,String(s).replace(/^-/,""),!!i.negative):null;if(i.negative&&e.supportsNegative&&e.handleNegativeBareValue){const t=e.handleNegativeBareValue({value:String(s).replace(/^-/,""),ctx:o,token:a,extra:l})??u;if(null==t)return[];s=t}else if(e.handleBareValue){const t=e.handleBareValue({value:s,ctx:o,token:a,extra:l})??u;if(null==t)return[];s=t}else if(u)s=u;else if(!/^-?(\d|\.\d)/.test(String(s)))return[];if(e.handle){const t=e.handle(s,o,a,l);if(t)return t}return e.prop?[t(e.prop,s)]:[]},description:e.description,category:e.category,priority:e.priority},r)}var M=/* @__PURE__ */new Set(["calc","min","max","clamp"]);function O(t){return t.replace(/--spacing\(\s*([^()]+?)\s*\)/g,"calc(var(--spacing) * $1)")}var F={name:"[arbitrary-property]",match:()=>!1,handler:(e,r,o)=>{const a=o.property;return a&&e?[t(a,K(O(e.replace(/_/g," "))))]:[]}};function K(t){if(!/(calc|min|max|clamp)\(/.test(t))return t;const e=[];let r="";for(let o=0;o<t.length;o++){const a=t[o];if("("===a){const t=(/([a-z-]*)$/i.exec(r)?.[1]??"").toLowerCase(),o=e.length>0&&e[e.length-1];e.push(M.has(t)||""===t&&o),r+=a;continue}if(")"!==a)if(e.length>0&&e[e.length-1])if(","!==a){if("+-*/".includes(a)){const e=r.trimEnd(),n=e[e.length-1]??"",s=/[\w%)]/.test(n),i=("+"===a||"-"===a)&&/\de$/i.test(e)&&e.length===r.length&&/\d/.test(t[o+1]??"");if(s&&!i){for(r=e+" "+a+" ";" "===t[o+1];)o++;continue}}r+=a}else for(r=r.trimEnd()+", ";" "===t[o+1];)o++;else r+=a;else e.pop(),r+=a}return r}function D(t){return"string"==typeof t?t:"number"==typeof t&&Number.isFinite(t)?String(t):void 0}function L(t,e){const r=e&&b(e)?.utilityCache||h;if(r.has(t))return r.get(t);const o=w(e),a=A(e),n=o.filter(e=>{const r=e.name;return t.startsWith(r+"-")||t===r||t.startsWith(r)}).some(e=>e.match(t)),s=a.filter(e=>{const r=e.name||e.match.toString().split("(")[0];return t.startsWith(r+":")||t===r}).some(e=>e.match(t,{})),i=n&&!s;return r.set(t,i),i}function Z(t,e){const r=e&&b(e)?.parseResultCache||d;if(r.has(t))return r.get(t);let o=t;const a=e?function(t){const e=t.config("prefix");return"string"==typeof e&&/^[a-z]+$/.test(e)?e:""}(e):"";if(a){if(!t.startsWith(a+":")){const e={modifiers:[],utility:null};return r.set(t,e),e}o=t.slice(a.length+1)}let n=!1;o.startsWith("!")?(n=!0,o=o.slice(1)):o.length>1&&o.endsWith("!")&&(n=!0,o=o.slice(0,-1));const s=function(t,e){const r=[];let o=null;if(0===t.length)return{modifiers:r,utility:null};if(t.length>1){const o=L(t[0].value,e)?0:t.length-1;if(t.some((t,e)=>!(e===o||function(t){if(_(t))return!1;const e=I.exec(t);return e?Y(e[1],!0):Y(t)}(t.value)&&function(t){let e="",r=0;for(let o=0;o<t.length;o++){const a=t[o];if("\\"!==a)if(e)a===e&&(e="");else if('"'!==a&&"'"!==a){if("["===a){if("]"===t[o+1])return!1;r++}else if("]"===a&&(r--,0===r&&t.startsWith("[")&&o!==t.length-1))return!1}else e=a;else o++}return!0}(t.value))))return{modifiers:r,utility:null}}if(!H((t.length>1&&!L(t[0].value,e)?t[t.length-1]:t[0]).value))return{modifiers:r,utility:null};if(1===t.length)o=J(t[0].value,e);else if(2===t.length){const a=t[0],n=t[1];if(L(a.value,e)){o=J(a.value,e);const t=G(n.value);t&&r.push(t)}else{const t=G(a.value);t&&r.push(t),o=J(n.value,e)}}else if(L(t[0].value,e)){o=J(t[0].value,e);for(let e=1;e<t.length;e++){const o=G(t[e].value);o&&r.push(o)}}else{for(let e=0;e<t.length-1;e++){const o=G(t[e].value);o&&r.push(o)}o=J(t[t.length-1].value,e)}return{modifiers:r,utility:o}}(function(t){const e=[];let r="",o=0,a=0,n=0;for(let s=0;s<t.length;s++){const i=t[s];"["===i&&a++,"]"===i&&a--,"("===i&&n++,")"===i&&n--,":"===i&&0===a&&0===n?(r&&e.push({value:r,start:o,end:s}),r="",o=s+1):r+=i}return r&&e.push({value:r,start:o,end:t.length}),e}(o),e);return s.utility&&(s.utility.important=n),r.set(t,s),s}var I=/^-?(?:(?:group|peer)-)?(?:has|not)-\[(.*)\](?:\/[\w-]+)?$/;function _(t){return t.includes("/*")||t.includes("*/")}function q(t){for(let e=0;e<t.length-1;e++){const r=t[e];if("\\"===r){e++;continue}const o=t[e+1];if("/"===r&&"*"===o||"*"===r&&"/"===o)return!0}return!1}function U(t){return t.includes("</")}function H(t){return!_(t)&&Y(t,!0)}function Y(t,e=!1){const r=[];let o="",a=0;for(let n=0;n<t.length;n++){const s=t[n];if("\\"!==s)if(o)s===o&&(o="");else switch(s){case'"':case"'":o=s;break;case"(":r.push(")"),a++;break;case"[":r.push("]");break;case")":case"]":if(r.pop()!==s)return!1;")"===s&&a--;break;case"{":case"}":case";":return!1;case",":if(0===a&&!e)return!1}else n++}return 0===r.length&&!o}function G(t){let e=!1,r=t;return r.startsWith("-")&&(e=!0,r=r.slice(1)),r.startsWith("[")&&r.endsWith("]")?{type:r,negative:e,arbitrary:!0}:{type:r,negative:e}}function X(t,e){return e.name.length-t.name.length}function J(t,e){let r="",o="",a=!1,n=!1,s=!1,i="",l="",c=0;const p=/^\[(--[a-zA-Z_][a-zA-Z0-9_-]*|-?[a-z][a-z-]*):(.+)\]$/.exec(t);if(p)return!H(p[2])||function(t){let e="";for(let r=0;r<t.length;r++){const o=t[r];if("\\"!==o){if(e)o===e&&(e="");else if('"'===o||"'"===o)e=o;else if("@"===o)return!0}else r++}return!1}(p[2])?{prefix:"",value:""}:{prefix:"",value:p[2],arbitrary:!0,property:p[1]};if(t.startsWith("-")&&(s=!0),t.includes("-[")){[r,o]=t.split("-[");const e=o.lastIndexOf("]");-1!==e&&e<o.length-1&&"/"===o[e+1]?(i=o.slice(e+2),o=o.slice(0,e)):o=o.replace(/]$/,""),a=!0}else if(t.includes("-("))[r,o]=t.split("-("),o=o.replace(/\)$/,""),n=!0;else{const a=[...w(e)].sort(X);let n=a.find(e=>t===e.name);if(n)r=n.name,o="",s=t.startsWith("-"),l=n.category,c=n.priority;else if(t.startsWith("-")&&(s=!0,t=t.slice(1)),n=a.find(e=>t.startsWith(e.name+"-")),n)r=n.name,o=t.slice(n.name.length+1),l=n.category,c=n.priority;else{const e=t.split("-");r=e[0],o=e.slice(1).join("-")}}return{prefix:r,value:o,arbitrary:!!a,customProperty:!!n,negative:!!s,opacity:i,category:l,priority:c}}var Q=t=>{const e=String(t??"");return!q(e)&&!U(e)&&function(t){const e=[];let r="";for(let o=0;o<t.length;o++){const a=t[o];if("\\"!==a)if(r)a===r&&(r="");else switch(a){case'"':case"'":r=a;break;case"(":e.push(")");break;case"[":e.push("]");break;case"{":e.push("}");break;case")":case"]":case"}":if(e.pop()!==a)return!1}else o++}return 0===e.length&&!r}(e)&&!/url\s*\(/i.test(e)},tt=t=>{if("at-rule"!==t.type)return[];if("property"!==t.name)return t.nodes;const e=/* @__PURE__ */new Set;return t.nodes.filter(t=>"decl"!==t.type||!e.has(t.prop)&&!!e.add(t.prop))},et=(t,e)=>H(String(t))&&H(String(e??""))&&!U(String(t))&&!U(String(e??""));function rt(t,e,r,o=""){const a=r?.minify,n=o,s=o+" ",l=r?.important?" !important":"",c=r?{...r,nested:!0}:r,p=r?.scope?"."+R(r.scope):"",u=t=>!p||function(t,e,r=!1){const o=[];let a=0,n="",s=0;for(let i=0;i<t.length;i++){const e=t[i];"\\"!==e?n?e===n&&(n=""):'"'===e||"'"===e?n=e:"("===e||"["===e?a++:")"===e||"]"===e?a--:","===e&&0===a&&(o.push(t.slice(s,i)),s=i+1):i++}return o.push(t.slice(s)),o.every(t=>{if(r&&t.includes("&"))return!0;for(let r=t.indexOf(e);-1!==r;r=t.indexOf(e,r+1)){if(r>0&&"\\"===t[r-1])continue;const o=t[r+e.length];if(e.endsWith(" ")||void 0===o||!/[\w\-\\\u0080-\uffff]/.test(o))return!0}return!1})}(t,p,!!r?.nested);if(!t||0===t.length)return i("[astToCss] Empty AST received:",{ast:t,baseSelector:e,minify:a}),"";const d=[];if(Array.isArray(t)){const e=/* @__PURE__ */new Map;for(let r=t.length-1;r>=0;r--){const o=t[r];if("decl"===o.type){const t=o.prop;if(e.has(t))continue;e.set(t,!0)}d.unshift(o)}}const y=d.map(t=>{switch(t.type){case"decl":{const e=t.value;return et(t.prop,e)?t.prop.startsWith("--")?a?`${t.prop}: ${e}${l};`:`${n}${t.prop}: ${e}${l};`:`${a?"":n}${t.prop}: ${e}${l};`:""}case"rule":{let r=t.selector;if(e){const t="."+R(e);r&&r.includes("&")?r=r.replace(/&/g,t):r.startsWith(t)||(r=r.split(",").map(e=>(e=e.trim()).startsWith(":")||e.startsWith("::")?t+e:t+(e.startsWith(".")?"":" ")+e).join(", "))}return Q(r)&&u(r)?a?`${n}${r}{${rt(t.nodes,e,c,s)}}`:`${n}${r} {\n${rt(t.nodes,e,c,s)}${n}}`:""}case"style-rule":return Q(t.selector)&&u(t.selector)?a?`${n}${t.selector} {${rt(t.nodes,e,c,s)}}`:`${n}${t.selector} {\n${rt(t.nodes,e,c,s)}${n}}`:"";case"at-rule":return Q(t.name)&&Q(t.params)?a?`${n}@${t.name} ${t.params}{${rt(t.nodes,e,r,s)}}`:`${n}@${t.name} ${t.params} {\n${rt(t.nodes,e,r,s)}${n}}`:"";case"comment":return a?"":`${n}/* ${t.text} */`;case"raw":return`${n}${t.value}`;default:return i("[astToCss] Unknown node type:",t),""}}).filter(Boolean).join(a?"":"\n"),h=y+(a?"":"\n");return h&&""!==h.trim()||i("[astToCss] Empty result generated:",{ast:t,baseSelector:e,minify:a,result:y,finalResult:h,dedupedAst:d}),h}function ot(t,e){const r=!0===e?.minify;return t.map(t=>{const e=[];if("decl"===t.type)et(t.prop,t.value)&&e.push(r?`${t.prop}:${t.value};`:`${t.prop}: ${t.value};`);else if("at-rule"===t.type&&Q(t.name)&&Q(t.params))if(r){const r=tt(t).filter(t=>"decl"===t.type&&et(t.prop,t.value)).map(t=>"decl"===t.type?`${t.prop}:${t.value};`:"").join("");e.push(`@${t.name} ${t.params}{${r}}`)}else e.push(`@${t.name} ${t.params} {\n${tt(t).map(t=>{if("decl"===t.type&&et(t.prop,t.value))return`\t${t.prop}: ${t.value};`}).join("\n")}\n}`);return e.join(r?"":"\n")}).join(r?"":"\n")}function at(t){return t.replace(".","\\.")}function nt(t){if(!t)return{};const e={};return function t(r,o=[]){for(const a in r){const n=r[a];if("object"==typeof n&&null!==n)t(n,[...o,a]);else{const t="--color-"+[...o,a].join("-");e[t]=n}}}(t),e}function st(t){if(!t)return{};const e={};for(const r in t)e[`--shadow-${r}`]=t[r];return e}function it(t){if(!Array.isArray(t))return;const e=t[1];if("string"==typeof e||"number"==typeof e)return String(e);const r=e?.lineHeight;return null==r?void 0:String(r)}function lt(t){if(!t)return{};const e={};for(const r in t){const o=t[r];if(Array.isArray(o)){e[`--text-${r}`]=o[0];const t=it(o);t&&(e[`--text-${r}--line-height`]=t)}else e[`--text-${r}`]=o}return e}function ct(t){if(!t)return{};const e={};for(const r in t)e[`--font-weight-${r}`]=t[r];return e}function pt(t){if(!t)return{};const e={};for(const r in t){const o=t[r];Array.isArray(o)?e[`--font-${r}`]=o.join(", "):e[`--font-${r}`]=o}return e}function ut(t){if(!t)return{};const e={};for(const r in t)e[`--letter-spacing-${r}`]=t[r];return e}function dt(t){if(!t)return{};const e={};for(const r in t)e[`--spacing-${at(r)}`]=t[r];return e}function yt(t){if(!t)return{};const e={};for(const r in t)e[`--radius-${at(r)}`]=t[r];return e}function ht(t){if(!t)return{};const e={};for(const r in t)e[`--z-${at(r)}`]=String(t[r]);return e}function gt(t){if(!t)return{};const e={};for(const r in t)e[`--opacity-${at(r)}`]=String(t[r]);return e}function mt(t){if(!t)return{};const e={};for(const r in t)e[`--animate-${at(r)}`]=t[r];return e}var ft=/\/\*|\*\/|[{};]|<\//;function bt(t,e){if(!t.includes("animation"))return[];const r=e.theme("keyframes");if(!r||"object"!=typeof r)return[];const o=/* @__PURE__ */new Set;for(const a of t.matchAll(/(?:^|[\s;{])animation(?:-name)?\s*:\s*([^;}]+)/g)){const t=a[1].replace(/var\(--animate-([\w-]+)\)/g,(t,r)=>{const o=e.theme("animations",r)??e.theme("animation",r);return"string"==typeof o?o:t});for(const e of t.split(/[\s,()]+/))e&&Object.prototype.hasOwnProperty.call(r,e)&&o.add(e)}return[...o].map(t=>function(t,e){if(!t||ft.test(t)||/\s/.test(t)||!e||"object"!=typeof e)return"";let r="";for(const[o,a]of Object.entries(e)){if(ft.test(o)||!a||"object"!=typeof a)return"";let t="";for(const[e,r]of Object.entries(a)){const o=String(r);if(ft.test(e)||ft.test(o))return"";t+=` ${e}: ${o};\n`}r+=` ${o} {\n${t} }\n`}return`@keyframes ${t} {\n${r}}`}(t,r[t])).filter(Boolean)}function vt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-timing-function"]=t[r]:(e[`--transition-timing-function-${at(r)}`]=t[r],"linear"!==r&&(e[`--ease-${at(r)}`]=t[r]));return e}function xt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-duration"]=t[r]:e[`--transition-duration-${at(r)}`]=t[r];return e}function kt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-delay"]=t[r]:e[`--transition-delay-${at(r)}`]=t[r];return e}function wt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-blur"]=t[r]:e[`--blur-${at(r)}`]=t[r];return e}function $t(t){const e={};for(const r in t)e[`--container-${at(r)}`]=t[r];return e}var Ct=/^--(?:[\w-]|\\\.)+$/;function Pt(t,e=""){return":root,:host {\n"+Object.entries(t).filter(([t,e])=>function(t,e){if("string"!=typeof t||!Ct.test(t)||U(t))return!1;if("string"!=typeof e&&"number"!=typeof e)return!1;const r=String(e);return""!==r.trim()&&H(r)&&!q(r)&&!U(r)}(t,e)&&!function(t,e){if("string"!=typeof e)return!1;const r=/^var\(\s*(--[\w-]+)\s*(?:,[\s\S]*)?\)$/.exec(e.trim());return!!r&&r[1]===t.trim()}(t,e)).map(([t,e])=>` ${t}: ${e};`).join("\n")+"\n}\n"+e+"\n"}var zt=/--baro-/g,At=/* @__PURE__ */new Set(["prop","value","params","selector","nodes","items"]);var St=/* @__PURE__ */new Set;function jt(t=[],e=[]){let r=[];for(const o of t){const t={...o};delete t.nodes;const a=o.nodes;"decl"===o.type?r.push([...e,t]):a&&a.length>0&&(r=r.concat(jt(a,[...e,t])))}return r}function Rt(t){return"at-root"===t?-1:"at-rule"===t?0:"style-rule"===t?10:"rule"===t?20:30}var Et={media:0,supports:1,container:2,responsive:10,group:20,peer:30,dark:40,universal:50,data:60,aria:70,attribute:80,pseudo:90,base:100,starting:110};function Tt(t){return Et[t.source||"base"]||100}function Nt(t){if(!t||0===t.length)return[];const e=t.slice(0,-1),r=t[t.length-1],o=[...e].sort((t,e)=>Rt(t.type)-Rt(e.type));if(0===o.length)"decl"===r.type&&o.push({type:"rule",selector:"&",source:"base"});else{const t=o[o.length-1];("at-rule"==t.type&&"property"!==t.name||"style-rule"==t.type||"rule"===t.type&&!1===t.selector?.includes("&"))&&o.push({type:"rule",selector:"&",source:"base"})}const a=[];for(const c of o)if(0===a.length)a.push(c);else{const t=a[a.length-1];c.type===t.type&&("at-rule"===c.type&&"at-rule"===t.type&&c.name===t.name&&c.params===t.params||("rule"===c.type||"style-rule"===c.type)&&c.selector===t.selector)||a.push(c)}const n=[],s=[];for(const c of a)"rule"===c.type?n.push(c):s.push(c);let i={...r};const l=[...n].sort((t,e)=>Tt(t)-Tt(e));if(l.length>0){const t=l.reduce((t,e)=>{const r=e.source||"base";return t[r]||(t[r]=[]),t[r].push(e),t},{}),e=Object.entries(t).sort(([t],[e])=>(Et[t]??999)-(Et[e]??999)).map(([t,e])=>((t,e)=>"pseudo"===t?e.reduce((t,e)=>{const r=e.selector;return""===t?r:r?.includes("&")?r.replace(/&/,t):r+" "+t},""):e.reduceRight((t,e)=>{const r=e.selector;return""===t?r:r?.includes("&")?r.replace(/&/,t):r+" "+t},""))(t,e));let r="";for(let o=0;o<e.length;o++){const t=e[o];r=""===r?t:t.includes("&")?t.replace(/&/,r):t+" "+r}i={type:"rule",selector:r,nodes:[i]}}for(let c=s.length-1;c>=0;c--)i={...s[c],nodes:[i]};return[i]}function Wt(t,e,r=[]){for(let o=0;o<t.length;o++){const e=t[o];"at-root"===e.type?(r.push(e),delete t[o]):"rule"!==e.type&&"style-rule"!==e.type&&"at-rule"!==e.type||Wt(e.nodes??[],e,r)}e&&(e.nodes=t.filter(Boolean))}function Vt(t,e){const r=b(e),o=r?.failures||St,a=r?.astCache||p;if(o.has(t))return[];if(a.has(t))return a.get(t);const{modifiers:n,utility:s}=Z(t,e);if(!s)return i(`[BAROCSS] Invalid class name format: "${t}"`),o.add(t),[];const l=s.property?[F]:w(e).filter(t=>{const e=s.value?`${s.prefix}-${s.value}`:s.prefix;return t.match(e)});if(0===l.length){return i(`[BAROCSS] Unknown utility class: "${s.value?`${s.prefix}-${s.value}`:s.prefix}" in "${t}"`),o.add(t),[]}let c=s.value;s.negative&&c&&(c="-"+c);let u=[];for(const i of l)if(u=i.handler(c,e,s,i)||[],u.length>0)break;const d=[];for(let p=0;p<n.length;p++){const r=n[p],a=A(e).find(t=>t.match(r.type,e));if(!a)return i(`[BAROCSS] Unknown variant: "${r.type}" in "${t}"`),o.add(t),[];if(a.astHandler&&(u=a.astHandler(u,r,e,n,p)),a.wrap){const t=a.wrap(r,e);d.push({type:"wrap",items:t})}if(a.modifySelector){const s=a.modifySelector({selector:"&",fullClassName:t,mod:r,context:e,variantChain:n,index:p});if(null==s)return i(`[BAROCSS] Unknown variant: "${r.type}" in "${t}"`),o.add(t),[];if(a.wrap&&("&"===s||"object"==typeof s&&!Array.isArray(s)&&"&"===s.selector||Array.isArray(s)&&1===s.length&&"&"===s[0].selector))continue;if("string"==typeof s&&s.includes("&"))d.push({type:"rule",selector:s});else if("object"==typeof s&&!Array.isArray(s)&&s.selector){const t=s.wrappingType||"rule";d.push({type:t,selector:s.selector,flatten:s.flatten,source:s.source})}else Array.isArray(s)&&d.push({type:"wrap",items:s.map(t=>({type:t.wrappingType||"rule",selector:t.selector,source:t.source,flatten:t.flatten}))})}}for(let i=d.length-1;i>=0;i--){const t=d[i];"wrap"===t.type?u=t.items.map(t=>"rule"===t.type||"style-rule"===t.type||"at-rule"===t.type||"at-root"===t.type?{...t,nodes:[...t.nodes||[],...u]}:t):"style-rule"===t.type?u=[{type:"style-rule",selector:t.selector,source:t.source,nodes:Array.isArray(u)?u:[u]}]:"at-rule"===t.type?u=[{type:"at-rule",name:t.name||"media",params:t.params,source:t.source,nodes:Array.isArray(u)?u:[u]}]:"rule"===t.type&&(u=[{type:"rule",selector:t.selector,source:t.source,nodes:Array.isArray(u)?u:[u]}])}const y=[];return Wt(u,void 0,y),u=function(t,e){const r=e?.config("cssVarPrefix");if("string"!=typeof r||!r.trim())return t;const o=function(t){let e=t.trim();return e.startsWith("--")||(e=`--${e}`),e.endsWith("-")||(e=`${e}-`),e}(r);if("--baro-"===o)return t;const a=t=>{if("string"==typeof t)return t.includes("--baro-")?t.replace(zt,o):t;if(Array.isArray(t))return t.map(a);if(!t||"object"!=typeof t)return t;const e={};for(const[r,o]of Object.entries(t))e[r]=At.has(r)?a(o):o;return e};return a(t)}([...y,...u].filter(Boolean),e),a.set(t,u),u}var Bt=/[ \t\n\f\r]+/;function Mt(t,e,r){const o=/* @__PURE__ */new Set;return t.split(Bt).filter(t=>{if(!t)return!1;if(r?.dedup){if(o.has(t))return!1;o.add(t)}return!0}).map(t=>{const o=Vt(t,e),a=(b(e)?.parseResultCache||d).get(t),n={minify:r?.minify,important:a?.utility?.important??!1},s=function(t){return function(t){const e=t.map(t=>{const e=[];let r=t[0];for(;r&&(e.push({...r,nodes:void 0}),r.nodes&&1===r?.nodes?.length);)r=r.nodes?.[0];return e});function r(t,e=0){if(0===t.length)return[];if(t[0].length===e+1)return t.map(t=>t[e]);const o=/* @__PURE__ */new Map;for(const r of t){const t=r[e];let a=t.type;"at-rule"===t.type?a+=":"+t.name+":"+t.params:"rule"===t.type||"style-rule"===t.type?a+=":"+t.selector:a+=":"+JSON.stringify(t),o.has(a)||o.set(a,[]),o.get(a).push(r)}const a=[];for(const[,n]of o.entries()){const t=n[0][e],o=r(n,e+1);a.push(o.length?{...t,nodes:o}:{...t})}return a}return r(e)}(jt(t).map(Nt))}(o),i=s.filter(t=>"at-root"===t.type&&!t.source).map(t=>t.nodes||[]).flat(),l=s.filter(t=>"at-root"!==t.type||"at-root"===t.type&&t.source),c=[];for(const e of l)if("at-root"===e.type)e.nodes.forEach(t=>{const e=rt([t],"",n);c.push(e)});else{const r=rt([e],t,{...n,scope:t});c.push(r)}const p=[];for(const e of i){const t=ot([e]);p.push(t)}return p.push(...bt(c.join("\n"),e)),{cls:t,ast:l,css:c.join(n.minify?"":"\n"),cssList:c,rootCss:p.join(n.minify?"":"\n"),rootCssList:p}})}var Ot=class{constructor(t){this.processedClasses=/* @__PURE__ */new Set,this.batchSize=50,this.debounceMs=16,this.pendingClasses=/* @__PURE__ */new Set,this.batchTimer=null,this.ctx=t}processClass(t){if(this.processedClasses.has(t))return null;try{if(!Z(t,this.ctx).utility)return null;const e=Vt(t,this.ctx);if(0===e.length)return i("[IncrementalParser] ast is empty",t),null;const r=Mt(t,this.ctx,{dedup:!1});if(0===r.length)return null;const o=r[0];return o.css?(this.processedClasses.add(t),{cls:t,ast:e,css:o.css,cssList:o.cssList,rootCss:o.rootCss,rootCssList:o.rootCssList}):null}catch(e){return i("[IncrementalParser] Failed to process class:",t,e),null}}processClasses(t){const e=[],r=t.filter(t=>!this.processedClasses.has(t));if(0===r.length)return e;for(let o=0;o<r.length;o+=this.batchSize){const t=r.slice(o,o+this.batchSize);for(const r of t){const t=this.processClass(r);t&&e.push(t)}}return e}addToPending(t){t.forEach(t=>this.pendingClasses.add(t)),this.scheduleBatchProcessing()}scheduleBatchProcessing(){this.batchTimer&&clearTimeout(this.batchTimer),"undefined"!=typeof window?this.batchTimer=window.setTimeout(()=>{this.processPendingClasses()},this.debounceMs):this.processPendingClasses()}processPendingClasses(){if(0===this.pendingClasses.size)return;const t=Array.from(this.pendingClasses);this.pendingClasses.clear(),this.applyClasses(t)}applyClasses(t){this.processClasses(t),t.forEach(t=>{this.markProcessed(t)})}getStats(){return{processedClasses:this.processedClasses.size,pendingClasses:this.pendingClasses.size,cacheStats:{ast:(b(this.ctx)?.astCache||p).getStats(),css:{}}}}clearProcessed(){this.processedClasses.clear(),this.pendingClasses.clear(),this.batchTimer&&"undefined"!=typeof window&&(clearTimeout(this.batchTimer),this.batchTimer=null)}isProcessed(t){return this.processedClasses.has(t)}markProcessed(t){this.processedClasses.add(t)}unmarkProcessed(t){this.processedClasses.delete(t)}processClassesSync(t){this.applyClasses(t)}getProcessedClasses(){return Array.from(this.processedClasses)}},Ft={spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},Kt={colors:{inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 none)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 none)",100:"oklch(97% 0 none)",200:"oklch(92.2% 0 none)",300:"oklch(87% 0 none)",400:"oklch(70.8% 0 none)",500:"oklch(55.6% 0 none)",600:"oklch(43.9% 0 none)",700:"oklch(37.1% 0 none)",800:"oklch(26.9% 0 none)",900:"oklch(20.5% 0 none)",950:"oklch(14.5% 0 none)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},mauve:{50:"oklch(98.5% 0 none)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"}},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem",112:"28rem",128:"32rem"},borderRadius:{none:"0px",xs:"0.125rem",sm:"0.25rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","4xl":"2rem",full:"9999px"},breakpoints:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},container:{"3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},fontSize:{xs:["0.75rem","calc(1 / 0.75)"],sm:["0.875rem","calc(1.25 / 0.875)"],base:["1rem","calc(1.5 / 1)"],lg:["1.125rem","calc(1.75 / 1.125)"],xl:["1.25rem","calc(1.75 / 1.25)"],"2xl":["1.5rem","calc(2 / 1.5)"],"3xl":["1.875rem","calc(2.25 / 1.875)"],"4xl":["2.25rem","calc(2.5 / 2.25)"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Noto Sans","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem"},boxShadow:{"2xs":"0 1px rgb(0 0 0 / 0.05)",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animations:Ft,keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:"0.5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"none","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}}},animationVars:{"--animate-spin":Ft.spin,"--animate-ping":Ft.ping,"--animate-pulse":Ft.pulse,"--animate-bounce":Ft.bounce},blur:{DEFAULT:"8px",xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},textShadow:{"2xs":"0px 1px 0px rgb(0 0 0 / 0.15)",xs:"0px 1px 1px rgb(0 0 0 / 0.2)",sm:"0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075), 0px 2px 2px rgb(0 0 0 / 0.075)",md:"0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1)",lg:"0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1)"},dropShadow:{xs:"0 1px 1px rgb(0 0 0 / 0.05)",sm:"0 1px 2px rgb(0 0 0 / 0.15)",md:"0 3px 3px rgb(0 0 0 / 0.12)",lg:"0 4px 4px rgb(0 0 0 / 0.15)",xl:"0 9px 7px rgb(0 0 0 / 0.1)","2xl":"0 25px 25px rgb(0 0 0 / 0.15)"},aspect:{video:"16 / 9"}},Dt=/^[A-Za-z_][A-Za-z0-9_-]*$/,Lt=/^(--[A-Za-z0-9_-]+|-?[A-Za-z][A-Za-z0-9-]*)$/;function Zt(t,e){if("string"!=typeof t||!Dt.test(t))return null;if(!e||"object"!=typeof e||Array.isArray(e))return null;const r=[];for(const[o,a]of Object.entries(e)){if("string"!=typeof a&&"number"!=typeof a)return null;const t=String(a).trim();if(!Lt.test(o)||!t||!H(t)||q(t))return null;r.push([o,t])}return r.length?r:null}var It="\n/* BaroCSS Preflight - Full (Tailwind 4.3.3) */\n*,\n::after,\n::before,\n::backdrop,\n::file-selector-button {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0 solid;\n}\n\nhtml,\n:host {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n font-family: var(--default-font-family, var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'));\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n -webkit-tap-highlight-color: transparent;\n}\n\nhr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n}\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\na {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\ncode,\nkbd,\nsamp,\npre {\n font-family: var(--default-mono-font-family, var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace));\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\ntable {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n}\n\n:-moz-focusring:where(:not(iframe)) {\n outline: auto;\n}\n\nprogress {\n vertical-align: baseline;\n}\n\nsummary {\n display: list-item;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n}\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block;\n vertical-align: middle;\n}\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* form-control reset */\nbutton,\ninput,\nselect,\noptgroup,\ntextarea,\n::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n}\n\n:where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n}\n\n:where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n}\n\n::file-selector-button {\n margin-inline-end: 4px;\n}\n\n::placeholder {\n opacity: 1;\n}\n\n@supports (not (-webkit-appearance: -apple-pay-button)) or\n (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n}\n\ntextarea {\n resize: vertical;\n}\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n::-webkit-date-and-time-value {\n min-height: 1lh;\n text-align: inherit;\n}\n\n::-webkit-datetime-edit {\n display: inline-flex;\n}\n\n::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n}\n\n::-webkit-datetime-edit,\n::-webkit-datetime-edit-year-field,\n::-webkit-datetime-edit-month-field,\n::-webkit-datetime-edit-day-field,\n::-webkit-datetime-edit-hour-field,\n::-webkit-datetime-edit-minute-field,\n::-webkit-datetime-edit-second-field,\n::-webkit-datetime-edit-millisecond-field,\n::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n}\n\n::-webkit-calendar-picker-indicator {\n line-height: 1;\n}\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\nbutton,\ninput:where([type='button'], [type='reset'], [type='submit']),\n::file-selector-button {\n appearance: button;\n}\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n[hidden]:where(:not([hidden='until-found'])) {\n display: none !important;\n}\n";function _t(t,e){const r={},o=/* @__PURE__ */new Set([...Object.keys(t||{}),...Object.keys(e||{})]);for(const a of o){const o=String(a),n=t&&"object"==typeof t?t[o]:void 0,s=e&&"object"==typeof e?e[o]:void 0;s&&"object"==typeof s&&!Array.isArray(s)?r[o]=_t("object"==typeof n&&null!==n?n:{},s):r[o]=void 0!==s?s:n}return r}var qt=/* @__PURE__ */new WeakMap;function Ut(t,...e){const r=(...e)=>Ut(t,...e);let o=[];if(1===e.length&&"string"==typeof e[0]&&e[0].includes("."))o=e[0].split(".");else if("colors"===e[0]&&"string"==typeof e[1]&&e[1].includes("-")){const t=e[1];t.match(/^[a-zA-Z]+-\d+$/)?(o=t.split("-"),o=[e[0],...o]):o=e}else o=e;if(0===o.length)return;let a=qt.get(t);a||(a=/* @__PURE__ */new Set,qt.set(t,a));const n=o.join(".");if(!a.has(n)){a.add(n);try{let e=t[o[0]];"function"==typeof e&&(e=e(r));for(let t=1;t<o.length;t++){if(null==e)return;e=e[o[t]]}if("function"==typeof e)return;return e}finally{a.delete(n)}}}function Ht(t){const e=function(t){return{...nt(t.colors),...st(t.boxShadow),...lt(t.fontSize),...ct(t.fontWeight),...pt(t.fontFamily),...ut(t.letterSpacing),"--spacing":t.spacing[1],...dt(t.spacing),...$t(t.container),...yt(t.borderRadius),...Object.fromEntries(Object.entries(t.borderWidth??{}).filter(([t])=>"DEFAULT"!==t).map(([t,e])=>[`--border-width-${at(t)}`,String(e)])),...ht(t.zIndex),...gt(t.opacity),...mt({...t.animations,...t.animation}),...vt(t.transitionTimingFunction),...xt(t.transitionDuration),...kt(t.transitionDelay),...wt(t.blur),...Object.fromEntries(Object.entries(t.textShadow??{}).map(([t,e])=>[`--text-shadow-${at(t)}`,e])),...Object.fromEntries(Object.entries(t.dropShadow??{}).map(([t,e])=>[`--drop-shadow-${at(t)}`,e])),...Object.fromEntries(Object.entries(t.aspect??{}).map(([t,e])=>[`--aspect-${at(t)}`,e]))}}(t);return Pt(e)}function Yt(e){var r;void 0!==e.debug&&(r=!!e.debug,n=r);const o={presets:[{theme:Kt},...e.presets||[]],...e},a=function(t){let e={};if(t.presets)for(const r of t.presets)r.theme&&(e=_t(e,r.theme));if(t.theme){const{extend:r,...o}=t.theme;e=_t(e,o),r&&(e=_t(e,r))}return e}(o),s={hasPreset:(t,e)=>function(t,e,r){return t[e]?.includes?.(r)}(a,t,e),theme:(...t)=>Ut(a,...t),config:(...t)=>function(t,...e){let r=[];return r=1===e.length&&"string"==typeof e[0]&&e[0].includes(".")?e[0].split("."):e,r.reduce((t,e)=>t?t[e]:void 0,t)}(o,...t),themeToCssVars:()=>Ht(a),extendTheme:(t,e)=>{if("function"==typeof e){const r=e(s.theme);if(r&&"object"==typeof r){const e=a[t]||{};a[t]={...e,...r}}}else if("object"==typeof e&&null!==e&&!Array.isArray(e)){const r=a[t]||{};a[t]={...r,...e}}v(s)},getPreflightCSS:(t=!0)=>function(t=!0){return"minimal"===t?"\n/* BaroCSS Preflight - Minimal Reset */\n/* ================================= */\n\n/* Box sizing rules */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* Remove default margin and padding */\n* {\n margin: 0;\n padding: 0;\n}\n\n/* Set core body defaults */\nbody {\n min-height: 100vh;\n scroll-behavior: smooth;\n text-rendering: optimizeSpeed;\n line-height: 1.5;\n}\n\n/* Remove list styles on ul, ol elements */\nul,\nol {\n list-style: none;\n}\n\n/* Make images easier to work with */\nimg,\npicture {\n max-width: 100%;\n display: block;\n}\n\n/* Inherit fonts for inputs and buttons */\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\n/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n@media (prefers-reduced-motion: reduce) {\n html {\n scroll-behavior: auto;\n }\n \n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n}\n":"standard"===t?'\n/* BaroCSS Preflight - Standard Reset */\n/* ================================== */\n\n/* Box sizing rules */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* Remove default margin and padding */\n* {\n margin: 0;\n padding: 0;\n}\n\n/* Set core body defaults */\nbody {\n min-height: 100vh;\n scroll-behavior: smooth;\n text-rendering: optimizeSpeed;\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n/* Remove list styles on ul, ol elements */\nul,\nol {\n list-style: none;\n}\n\n/* Make images easier to work with */\nimg,\npicture {\n max-width: 100%;\n display: block;\n}\n\n/* Inherit fonts for inputs and buttons */\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\n/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n@media (prefers-reduced-motion: reduce) {\n html {\n scroll-behavior: auto;\n }\n \n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n}\n\n/* Additional standard resets */\nhtml {\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n /* Tailwind 4.1.13 root font (app --default-font-family / --font-sans win) */\n font-family: var(--default-font-family, var(--font-sans, -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, \'Helvetica Neue\', \'Noto Sans\', Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\', \'Noto Color Emoji\'));\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n}\n\n/* Remove the gray background on active links in IE 10 */\na {\n background-color: transparent;\n}\n\n/* Add the correct font weight in Chrome, Edge, and Safari */\nb,\nstrong {\n font-weight: bolder;\n}\n\n/* Prevent sub and sup elements from affecting the line height */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Improve media defaults */\nsvg {\n vertical-align: middle;\n}\n\n/* Remove border on iframe */\niframe {\n border: 0;\n}\n\n/* Table defaults */\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n/* Form element defaults */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\n[type="button"],\n[type="reset"],\n[type="submit"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type="button"]::-moz-focus-inner,\n[type="reset"]::-moz-focus-inner,\n[type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\nbutton:-moz-focusring,\n[type="button"]:-moz-focusring,\n[type="reset"]:-moz-focusring,\n[type="submit"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/* Remove the inner border and padding in Firefox */\nbutton::-moz-focus-inner,\n[type="button"]::-moz-focus-inner,\n[type="reset"]::-moz-focus-inner,\n[type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/* Restore the focus styles unset by the previous rule */\nbutton:-moz-focusring,\n[type="button"]:-moz-focusring,\n[type="reset"]:-moz-focusring,\n[type="submit"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/* Correct the padding in Firefox */\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/* Remove padding so developers aren\'t caught out when they zero out fieldset elements */\nlegend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n}\n\n/* Add the correct vertical alignment in Chrome, Firefox, and Opera */\nprogress {\n vertical-align: baseline;\n}\n\n/* Remove the default vertical scrollbar in IE */\ntextarea {\n overflow: auto;\n}\n\n/* Correct the cursor style of increment and decrement buttons in Chrome */\n[type="number"]::-webkit-inner-spin-button,\n[type="number"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/* Remove the default vertical scrollbar in IE */\ntextarea {\n overflow: auto;\n}\n\n/* Correct the cursor style of increment and decrement buttons in Chrome */\n[type="number"]::-webkit-inner-spin-button,\n[type="number"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n/* Remove the inner padding in Chrome and Safari on macOS */\n[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/* Tailwind 4.1.13 monospace stack for code-like elements */\ncode,\nkbd,\nsamp,\npre {\n font-family: var(--default-mono-font-family, var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \'Liberation Mono\', \'Courier New\', monospace));\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n}\n\n/* Tailwind 4.1.13 form-control reset: inherit typography and colour, drop native radius/background (#228) */\nbutton,\ninput,\nselect,\noptgroup,\ntextarea,\n::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n}\n\n:where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n}\n\n:where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n}\n\n::file-selector-button {\n margin-inline-end: 4px;\n}\n\n::placeholder {\n opacity: 1;\n}\n\n@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n}\n\ntextarea {\n resize: vertical;\n}\n':"full"===t||!0===t?It:""}(t)};return function(t,e,r){m.set(t,{utilities:[...e],modifiers:[...r],astCache:new c,parseResultCache:new u,utilityCache:new y,failures:/* @__PURE__ */new Set,cacheGeneration:f})}(s,w(),A()),function(e,r){if(!r||"object"!=typeof r||Array.isArray(r))return;const o=w(e),a=[...o],n=o.length;for(const[s,l]of Object.entries(r)){const r=Zt(s,l);if(!r){i(`[BAROCSS] Ignoring invalid custom utility "${s}"`);continue}const o=a.filter(t=>t.match(s));k({name:s,category:"custom",match:t=>t===s,handler:(e,a,n)=>{let s=[];for(const t of o)if(s=t.handler(e,a,n,t)||[],s.length>0)break;return[...s,...r.map(([e,r])=>t(e,r))]}},e)}o.length>n&&o.unshift(...o.splice(n))}(s,e.utilities),s}function Gt(t){if(t.includes("/")){const[e,r]=t.split("/").map(Number);if(!isNaN(e)&&!isNaN(r)&&0!==r)return e/r*100+"%"}return null}function Xt(t){return/^-?\d+(?:\.\d+)?$/.test(t)?t:null}function Jt(t){return/^\d+(px|em|rem|vh|vw|vmin|vmax|%|in|cm|mm|pt|pc|ex|ch|fr)$/.test(t)?t:null}function Qt(t,e={}){if(/^\d+$/.test(t))return e.repeat?`repeat(${t}, minmax(0, 1fr))`:t;if(t.includes("/")){const[r,o]=t.split("/").map(Number);if(!isNaN(r)&&!isNaN(o)&&0!==o){const t=r/o;return e.percent?100*t+"%":t.toString()}}return null}var te=/* @__PURE__ */new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]);function ee(t){return te.has(t.toLowerCase())?t:t.startsWith("color:var(")?t.slice(6):t.startsWith("color:")?ee(t.slice(6)):t.startsWith("#")&&4===t.length||t.startsWith("#")&&5===t.length||t.startsWith("#")&&7===t.length||t.startsWith("#")&&9===t.length?`#${t.slice(1)}`:t.startsWith("rgb(")?t.slice(4,-1):t.startsWith("rgba(")?t.slice(5,-1):t.startsWith("hsl(")?t.slice(4,-1):t.startsWith("hsla(")?t.slice(5,-1):t.startsWith("hwb(")||t.startsWith("lab(")||t.startsWith("lch(")?t.slice(4,-1):t.startsWith("oklab(")?t.slice(5,-1):t.startsWith("oklch(")?t.slice(6,-1):t.startsWith("color-mix(")?t.slice(9,-1):null}var re=/* @__PURE__ */new Set(["inherit","currentcolor","transparent"]);function oe(e,o,a){const n=String(a.realThemeValue),s=re.has(o.toLowerCase())||o.startsWith("var(")||!/^[\w-]+$/.test(n)?o:`var(--color-${n})`;if(!a.opacity)return[t(e,s)];const i=function(t){let e=t.trim();const r=e.startsWith("[")&&e.endsWith("]");r&&(e=e.slice(1,-1).trim());e.startsWith("(")&&e.endsWith(")")&&(e=`var(${e.slice(1,-1).trim()})`);if(e.startsWith("var("))return{amount:e,isVar:!0};if(e.endsWith("%"))return{amount:e,isVar:!1};const o=Number(e);return""!==e&&Number.isFinite(o)?{amount:+(r&&o<=1?100*o:o).toFixed(4)+"%",isVar:!1}:{amount:e,isVar:!1}}(String(a.opacity)),l=o=>r("supports","(color:color-mix(in lab, red, red))",[t(e,`color-mix(in oklab, ${s} ${o}, transparent)`)]);return i.isVar?[t(e,o),l(i.amount)]:[t(e,`color-mix(in srgb, ${o} ${i.amount}, transparent)`),l(i.amount)]}T("accent-inherit",[["accent-color","inherit"]],{category:"interactivity"}),T("accent-current",[["accent-color","currentColor"]],{category:"interactivity"}),T("accent-transparent",[["accent-color","transparent"]],{category:"interactivity"}),B({name:"accent",themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,o,a,n)=>n?.realThemeValue?n.opacity?[r("supports","(color:color-mix(in lab, red, red))",[t("accent-color",`color-mix(in lab, ${e} ${n.opacity}%, transparent)`)]),t("accent-color",e)]:[t("accent-color",`var(--color-${n.realThemeValue})`)]:[t("accent-color",e)],handleCustomProperty:e=>[t("accent-color",`var(${e})`)],description:"accent-color utility (static, arbitrary, custom property supported)",category:"interactivity"}),T("appearance-none",[["appearance","none"]],{category:"interactivity"}),T("appearance-auto",[["appearance","auto"]],{category:"interactivity"}),T("caret-inherit",[["caret-color","inherit"]],{category:"interactivity"}),T("caret-current",[["caret-color","currentColor"]],{category:"interactivity"}),T("caret-transparent",[["caret-color","transparent"]],{category:"interactivity"}),B({name:"caret",themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,o,a,n)=>n?.realThemeValue?n.opacity?[r("supports","(color:color-mix(in lab, red, red))",[t("caret-color",`color-mix(in lab, ${e} ${n.opacity}%, transparent)`)]),t("caret-color",e)]:[t("caret-color",`var(--color-${n.realThemeValue})`)]:[t("caret-color",e)],handleCustomProperty:e=>[t("caret-color",`var(${e})`)],description:"caret-color utility (static, theme, arbitrary, custom property supported)",category:"interactivity"}),T("scheme-normal",[["color-scheme","normal"]],{category:"interactivity"}),T("scheme-dark",[["color-scheme","dark"]],{category:"interactivity"}),T("scheme-light",[["color-scheme","light"]],{category:"interactivity"}),T("scheme-light-dark",[["color-scheme","light dark"]],{category:"interactivity"}),T("scheme-only-dark",[["color-scheme","only dark"]],{category:"interactivity"}),T("scheme-only-light",[["color-scheme","only light"]],{category:"interactivity"}),["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"].forEach(t=>{T(`cursor-${t}`,[["cursor",t]],{category:"interactivity"})}),B({name:"cursor",prop:"cursor",supportsArbitrary:!0,supportsCustomProperty:!0,description:"cursor utility (static, arbitrary, custom property supported)",category:"interactivity"}),T("field-sizing-fixed",[["field-sizing","fixed"]],{category:"interactivity"}),T("field-sizing-content",[["field-sizing","content"]],{category:"interactivity"}),T("pointer-events-auto",[["pointer-events","auto"]],{category:"interactivity"}),T("pointer-events-none",[["pointer-events","none"]],{category:"interactivity"}),T("resize",[["resize","both"]],{category:"interactivity"}),T("resize-x",[["resize","horizontal"]],{category:"interactivity"}),T("resize-y",[["resize","vertical"]],{category:"interactivity"}),T("resize-none",[["resize","none"]],{category:"interactivity"}),T("scroll-auto",[["scroll-behavior","auto"]],{category:"interactivity"}),T("scroll-smooth",[["scroll-behavior","smooth"]],{category:"interactivity"}),T("snap-start",[["scroll-snap-align","start"]],{category:"interactivity"}),T("snap-end",[["scroll-snap-align","end"]],{category:"interactivity"}),T("snap-center",[["scroll-snap-align","center"]],{category:"interactivity"}),T("snap-align-none",[["scroll-snap-align","none"]],{category:"interactivity"}),T("snap-normal",[["scroll-snap-stop","normal"]],{category:"interactivity"}),T("snap-always",[["scroll-snap-stop","always"]],{category:"interactivity"}),T("snap-none",[["scroll-snap-type","none"]],{category:"interactivity"}),T("snap-x",[["scroll-snap-type","x var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),T("snap-y",[["scroll-snap-type","y var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),T("snap-both",[["scroll-snap-type","both var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),T("snap-mandatory",[["--baro-scroll-snap-strictness","mandatory"]],{category:"interactivity"}),T("snap-proximity",[["--baro-scroll-snap-strictness","proximity"]],{category:"interactivity"}),[["mbs","scroll-margin-block-start"],["mbe","scroll-margin-block-end"],["mt","scroll-margin-top"],["mr","scroll-margin-right"],["mb","scroll-margin-bottom"],["ml","scroll-margin-left"],["mx","scroll-margin-inline"],["my","scroll-margin-block"],["ms","scroll-margin-inline-start"],["me","scroll-margin-inline-end"],["m","scroll-margin"]].forEach(([e,r])=>{T(`scroll-${e}-px`,[[r,"1px"]],{category:"interactivity"}),T(`-scroll-${e}-px`,[[r,"-1px"]],{category:"interactivity"}),B({name:`scroll-${e}`,spacingKeys:!0,prop:r,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,o,a,n)=>Xt(e)||a.negative?[t(r,`calc(var(--spacing) * ${e})`)]:[t(r,e)],handleCustomProperty:e=>[t(r,`var(${e})`)],description:`${e} utility (static, arbitrary, custom property supported)`,category:"interactivity"})}),[["pbs","scroll-padding-block-start"],["pbe","scroll-padding-block-end"],["pt","scroll-padding-top"],["pr","scroll-padding-right"],["pb","scroll-padding-bottom"],["pl","scroll-padding-left"],["px","scroll-padding-inline"],["py","scroll-padding-block"],["ps","scroll-padding-inline-start"],["pe","scroll-padding-inline-end"],["p","scroll-padding"]].forEach(([e,r])=>{B({name:`scroll-${e}`,spacingKeys:!0,prop:r,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":/^(\d|\.\d)/.test(t)?t:null,handle:(e,o,a,n)=>a.negative?[]:Xt(e)?[t(r,`calc(var(--spacing) * ${e})`)]:[t(r,e)],handleCustomProperty:(e,o,a)=>a.negative?[]:[t(r,`var(${e})`)],description:`scroll-${e} utility (static, arbitrary, custom property supported)`,category:"interactivity"})}),T("touch-auto",[["touch-action","auto"]],{category:"interactivity"}),T("touch-none",[["touch-action","none"]],{category:"interactivity"}),T("touch-pan-x",[["touch-action","pan-x"]],{category:"interactivity"}),T("touch-pan-left",[["touch-action","pan-left"]],{category:"interactivity"}),T("touch-pan-right",[["touch-action","pan-right"]],{category:"interactivity"}),T("touch-pan-y",[["touch-action","pan-y"]],{category:"interactivity"}),T("touch-pan-up",[["touch-action","pan-up"]],{category:"interactivity"}),T("touch-pan-down",[["touch-action","pan-down"]],{category:"interactivity"}),T("touch-pinch-zoom",[["touch-action","pinch-zoom"]],{category:"interactivity"}),T("touch-manipulation",[["touch-action","manipulation"]],{category:"interactivity"}),T("select-none",[["-webkit-user-select","none"],["user-select","none"]],{category:"interactivity"}),T("select-text",[["-webkit-user-select","text"],["user-select","text"]],{category:"interactivity"}),T("select-all",[["-webkit-user-select","all"],["user-select","all"]],{category:"interactivity"}),T("select-auto",[["-webkit-user-select","auto"],["user-select","auto"]],{category:"interactivity"}),T("will-change-auto",[["will-change","auto"]],{category:"interactivity"}),T("will-change-scroll",[["will-change","scroll-position"]],{category:"interactivity"}),T("will-change-contents",[["will-change","contents"]],{category:"interactivity"}),T("will-change-transform",[["will-change","transform"]],{category:"interactivity"}),B({name:"will-change",prop:"will-change",supportsArbitrary:!0,supportsCustomProperty:!0,description:"will-change utility (static, arbitrary, custom property supported)",category:"interactivity"}),T("scrollbar-auto",[["scrollbar-width","auto"]],{category:"interactivity"}),T("scrollbar-thin",[["scrollbar-width","thin"]],{category:"interactivity"}),T("scrollbar-none",[["scrollbar-width","none"]],{category:"interactivity"}),T("scrollbar-gutter-auto",[["scrollbar-gutter","auto"]],{category:"interactivity"}),T("scrollbar-gutter-stable",[["scrollbar-gutter","stable"]],{category:"interactivity"}),T("scrollbar-gutter-both",[["scrollbar-gutter","stable both-edges"]],{category:"interactivity"});var ae=t=>t.replace(/^color:/,"");for(const Mo of["thumb","track"]){const r=`--baro-scrollbar-${Mo}`,o=r=>[e([a("--baro-scrollbar-thumb","#0000","<color>"),a("--baro-scrollbar-track","#0000","<color>")]),...r,t("scrollbar-color","var(--baro-scrollbar-thumb) var(--baro-scrollbar-track)")],n=(e,o)=>o?[t(r,`color-mix(in oklab, ${e} ${o.replace(/^\[(.*)\]$/,"$1").replace(/%$/,"")}%, transparent)`)]:[t(r,e)];B({name:`scrollbar-${Mo}`,themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,a,s,i)=>i?.realThemeValue?o(n(`var(--color-${i.realThemeValue})`,i.opacity)):s.arbitrary?o(n(ae(e),i?.opacity)):"inherit"===e||"transparent"===e?o([t(r,e)]):"current"===e?o(n("currentcolor",i?.opacity)):null,handleCustomProperty:(t,e,r,a)=>o(n(`var(${ae(t)})`,a?.opacity)),description:`scrollbar-color ${Mo} utility (theme, arbitrary, custom property, opacity)`,category:"interactivity"})}var ne="var(--default-transition-timing-function)",se="var(--default-transition-duration)";T("transition",[["transition-property","color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --baro-gradient-from, --baro-gradient-via, --baro-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events"],["transition-timing-function",ne],["transition-duration",se]],{category:"transitions"}),T("transition-all",[["transition-property","all"],["transition-timing-function",ne],["transition-duration",se]],{category:"transitions"}),T("transition-colors",[["transition-property","color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --baro-gradient-from, --baro-gradient-via, --baro-gradient-to"],["transition-timing-function",ne],["transition-duration",se]],{category:"transitions"}),T("transition-opacity",[["transition-property","opacity"],["transition-timing-function",ne],["transition-duration",se]],{category:"transitions"}),T("transition-shadow",[["transition-property","box-shadow"],["transition-timing-function",ne],["transition-duration",se]],{category:"transitions"}),T("transition-transform",[["transition-property","transform, translate, scale, rotate"],["transition-timing-function",ne],["transition-duration",se]],{category:"transitions"}),T("transition-normal",[["transition-behavior","normal"]],{category:"transitions"}),T("transition-discrete",[["transition-behavior","allow-discrete"]],{category:"transitions"}),T("transition-none",[["transition-property","none"]],{category:"transitions"}),B({name:"transition",prop:"transition-property",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>[t("transition-property",e),t("transition-timing-function",ne),t("transition-duration",se)],handleCustomProperty:e=>[t("transition-property",`var(${e})`),t("transition-timing-function",ne),t("transition-duration",se)],description:"transition-property utility (static, arbitrary value, custom property supported)",category:"transitions"}),T("duration-initial",[["transition-duration","initial"]],{category:"transitions"}),B({name:"duration",prop:"transition-duration",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Xt(e)?[t("transition-duration",`${e}ms`)]:[t("transition-duration",e)],handleCustomProperty:e=>[t("transition-duration",`var(${e})`)],description:"transition-duration utility (static, number, arbitrary, custom property supported)",category:"transitions"}),T("ease-linear",[["transition-timing-function","linear"]],{category:"transitions"}),T("ease-in",[["transition-timing-function","var(--ease-in)"]],{category:"transitions"}),T("ease-out",[["transition-timing-function","var(--ease-out)"]],{category:"transitions"}),T("ease-in-out",[["transition-timing-function","var(--ease-in-out)"]],{category:"transitions"}),T("ease-initial",[["transition-timing-function","initial"]],{category:"transitions"}),B({name:"ease",prop:"transition-timing-function",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>V(e,"transitionTimingFunction",t,"ease")??(/^(\d|\.\d)/.test(t)?t:null),handle:(e,r,o)=>[t("transition-timing-function",e)],handleCustomProperty:e=>[t("transition-timing-function",`var(${e})`)],description:"transition-timing-function utility (static, arbitrary, custom property supported)",category:"transitions"}),B({name:"delay",prop:"transition-delay",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Xt(e)?[t("transition-delay",`${e}ms`)]:[t("transition-delay",e)],handleCustomProperty:e=>[t("transition-delay",`var(${e})`)],description:"transition-delay utility (number, arbitrary, custom property supported)",category:"transitions"}),T("animate-spin",[["animation","var(--animate-spin)"]],{category:"transitions"}),T("animate-ping",[["animation","var(--animate-ping)"]],{category:"transitions"}),T("animate-pulse",[["animation","var(--animate-pulse)"]],{category:"transitions"}),T("animate-bounce",[["animation","var(--animate-bounce)"]],{category:"transitions"}),T("animate-none",[["animation","none"]],{category:"transitions"}),B({name:"animate",themeKeys:["animations","animation"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o,a)=>a?.realThemeValue?[t("animation",`var(--animate-${a.realThemeValue})`)]:o.customProperty?[t("animation",`var(${e})`)]:[t("animation",e)],handleCustomProperty:e=>[t("animation",`var(${e})`)],description:"animation utility (static, arbitrary, custom property supported)",category:"transitions"}),T("border-collapse",[["border-collapse","collapse"]],{category:"table"}),T("border-separate",[["border-collapse","separate"]],{category:"table"}),T("table-auto",[["table-layout","auto"]],{category:"table"}),T("table-fixed",[["table-layout","fixed"]],{category:"table"});var ie=()=>e([a("--baro-border-spacing-x","0","<length>"),a("--baro-border-spacing-y","0","<length>")]),le="var(--baro-border-spacing-x) var(--baro-border-spacing-y)",ce=(e,r)=>[ie(),...e.map(e=>t(`--baro-border-spacing-${e}`,r)),t("border-spacing",le)];function pe(t){if(!t)return null;if(/^\d+(\.\d+)?$/.test(t))return{alpha:`${t}%`,isVar:!1};const e=/^\[(\d+(?:\.\d+)?)%\]$/.exec(t);if(e)return{alpha:`${e[1]}%`,isVar:!1};const r=/^\((--[\w-]+)\)$/.exec(t);return r?{alpha:`var(${r[1]})`,isVar:!0}:null}function ue(t,e){const r=[];let o=0,a="";for(const n of t)"("===n?o++:")"===n&&o--,0===o&&(" "===e?/\s/.test(n):n===e)?(a.trim()&&r.push(a.trim()),a=""):a+=n;return a.trim()&&r.push(a.trim()),r}[["border-spacing-x",["x"]],["border-spacing-y",["y"]],["border-spacing",["x","y"]]].forEach(([t,e])=>{T(`${t}-px`,[ie,...e.map(t=>[`--baro-border-spacing-${t}`,"1px"]),["border-spacing",le]],{category:"table"}),B({name:t,prop:"border-spacing",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>ce(e,Xt(t)?`calc(var(--spacing) * ${t})`:t),handleCustomProperty:t=>ce(e,`var(${t})`),description:`${t} utility (number, px, arbitrary, custom property supported)`,category:"table"})}),T("caption-top",[["caption-side","top"]],{category:"table"}),T("caption-bottom",[["caption-side","bottom"]],{category:"table"});var de=/^-?(\d*\.)?\d+([a-z]+|%)?$/i;function ye(t,e,r){return ue(t,",").map(t=>{const o=ue(t," "),a=o.findIndex(t=>"inset"!==t&&!de.test(t)),n=a<0?"currentcolor":o[a];return o[a<0?o.length:a]=`var(--baro-${e}-color, ${r?`oklab(from ${n} l a b / ${r})`:n})`,o.join(" ")})}function he(e,o,a,n,s=t=>t.join(", ")){const i=pe(n);if(n&&!i)return null;if(!i)return[t(o,s(ye(a,e)))];const l=t(`--baro-${e}-alpha`,i.alpha);return i.isVar?[l,t(o,s(ye(a,e))),r("supports","(color: lab(from red l a b))",[t(o,s(ye(a,e,i.alpha)))])]:[l,t(o,s(ye(a,e,i.alpha)))]}function ge(e,o,a,n=o){const s=`--baro-${e}-color`;if("inherit"===o)return[t(s,"inherit")];const i=pe(a);if(a&&!i)return null;const l=i?`color-mix(in oklab, ${n} ${i.alpha}, transparent)`:n;return[t(s,i?`color-mix(in srgb, ${o} ${i.alpha}, transparent)`:o),r("supports","(color: color-mix(in lab, red, red))",[t(s,`color-mix(in oklab, ${l} var(--baro-${e}-alpha), transparent)`)])]}T("filter-none",[["filter","none"]],{category:"effects"}),B({name:"filter",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,description:"filter utility (static, arbitrary, custom property supported)",category:"effects"});var me=()=>t("filter","var(--baro-blur, ) var(--baro-brightness, ) var(--baro-contrast, ) var(--baro-grayscale, ) var(--baro-hue-rotate, ) var(--baro-invert, ) var(--baro-saturate, ) var(--baro-sepia, ) var(--baro-drop-shadow, )");[["blur-xs","var(--blur-xs)"],["blur-sm","var(--blur-sm)"],["blur-md","var(--blur-md)"],["blur-lg","var(--blur-lg)"],["blur-xl","var(--blur-xl)"],["blur-2xl","var(--blur-2xl)"],["blur-3xl","var(--blur-3xl)"]].forEach(([e,r])=>{T(e,[t("--baro-blur",`blur(${r})`),me()],{category:"effects"})}),T("blur",[t("--baro-blur","blur(8px)"),me()],{category:"effects"}),T("blur-none",[t("--baro-blur",""),me()],{category:"effects"}),B({name:"blur",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>V(e,"blur",t,"blur")??(/^(\d|\.\d)/.test(t)?t:null),handle:(e,r,o)=>o.customProperty?[t("--baro-blur",`blur(var(${e}))`),me()]:[t("--baro-blur",`blur(${e})`),me()],handleCustomProperty:e=>[t("--baro-blur",`blur(var(${e}))`),me()],description:"blur filter utility (static, arbitrary, custom property supported)",category:"effects"}),B({name:"brightness",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>o.arbitrary?[t("--baro-brightness",`brightness(${e})`),me()]:Xt(e)?[t("--baro-brightness",`brightness(${e}%)`),me()]:o.customProperty?[t("--baro-brightness",`brightness(var(${e}))`),me()]:[t("--baro-brightness",`brightness(${e})`),me()],handleCustomProperty:e=>[t("--baro-brightness",`brightness(var(${e}))`),me()],description:"brightness filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),B({name:"contrast",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>o.arbitrary?[t("--baro-contrast",`contrast(${e})`),me()]:Xt(e)?[t("--baro-contrast",`contrast(${e}%)`),me()]:o.customProperty?[t("--baro-contrast",`contrast(var(${e}))`),me()]:[t("--baro-contrast",`contrast(${e})`),me()],handleCustomProperty:e=>[t("--baro-contrast",`contrast(var(${e}))`),me()],description:"contrast filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var fe=()=>e([a("--baro-drop-shadow"),a("--baro-drop-shadow-color"),a("--baro-drop-shadow-alpha","100%","<percentage>"),a("--baro-drop-shadow-size")]),be=t=>t.map(t=>`drop-shadow(${t})`).join(" "),ve=(t,e)=>{const r=t.theme("dropShadow",e);return"string"==typeof r&&/^[\w.-]+$/.test(e)?r:null};function xe(e,r,o,a=!1){const n=he("drop-shadow","--baro-drop-shadow-size",e,r,be);if(!n)return null;const s=void 0===o||r&&!a?"var(--baro-drop-shadow-size)":o;return[fe(),...n,t("--baro-drop-shadow",s),me()]}T("drop-shadow-none",[t("--baro-drop-shadow"," "),me()]),k({name:"drop-shadow",match:t=>/^drop-shadow(\/.+)?$/.test(t),handler:(t,e,r)=>{const o=t?`${r.prefix}-${t}`:r.prefix,a=o.indexOf("/");return xe("0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06)",a<0?void 0:o.slice(a+1),"drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow( 0 1px 1px rgb(0 0 0 / 0.06))",!0)??[]},category:"effects"});var ke=(e,r,o)=>{const a=ge("drop-shadow",e,r,o);return a&&[fe(),...a,t("--baro-drop-shadow","var(--baro-drop-shadow-size)")]};B({name:"drop-shadow",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handleBareValue:({value:t,ctx:e})=>ve(e,t)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity,n=r.arbitrary?void 0:{inherit:"inherit",current:"currentcolor",transparent:"transparent"}[o?.realThemeValue??t];if(n)return ke(n,a);const s=o?.realThemeValue??t,i=r.arbitrary?null:ve(e,s);return i?xe(i,a,`drop-shadow(var(--drop-shadow-${s}))`):o?.realThemeValue?ke(t,a,`var(--color-${o.realThemeValue})`):r.arbitrary?ee(t)?ke(t,a):xe(t,a):null},handleCustomProperty:e=>e.startsWith("color:")?ke(`var(${e.slice(6)})`,void 0)??[]:[fe(),t("--baro-drop-shadow-size",`drop-shadow(var(${e}))`),t("--baro-drop-shadow","var(--baro-drop-shadow-size)"),me()],description:"drop-shadow filter utility (static, arbitrary, custom property supported)",category:"effects"}),T("grayscale",[t("--baro-grayscale","grayscale(100%)"),me()],{category:"effects"}),B({name:"grayscale",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>Xt(e)?[t("--baro-grayscale",`grayscale(${e}%)`),me()]:[t("--baro-grayscale",`grayscale(${e})`),me()],handleCustomProperty:e=>[t("--baro-grayscale",`grayscale(var(${e}))`),me()],description:"grayscale filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),B({name:"hue-rotate",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(e,r,o)=>o.negative&&Xt(o.value)?[t("--baro-hue-rotate",`hue-rotate(calc(${o.value}deg * -1))`),me()]:Xt(e)?[t("--baro-hue-rotate",`hue-rotate(${e}deg)`),me()]:o.customProperty?[t("--baro-hue-rotate",`hue-rotate(var(${e}))`),me()]:[t("--baro-hue-rotate",`hue-rotate(${e})`),me()],handleCustomProperty:e=>[t("--baro-hue-rotate",`hue-rotate(var(${e}))`),me()],description:"hue-rotate filter utility (static, negative, number, arbitrary, custom property supported)",category:"effects"}),T("invert",[t("--baro-invert","invert(100%)"),me()],{category:"effects"}),B({name:"invert",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>Xt(e)?[t("--baro-invert",`invert(${e}%)`),me()]:[t("--baro-invert",`invert(${e})`),me()],description:"invert filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),B({name:"saturate",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>Xt(e)?[t("--baro-saturate",`saturate(${e}%)`),me()]:[t("--baro-saturate",`saturate(${e})`),me()],handleCustomProperty:e=>[t("--baro-saturate",`saturate(var(${e}))`),me()],description:"saturate filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),T("sepia",[t("--baro-sepia","sepia(100%)"),me()],{category:"effects"}),B({name:"sepia",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>Xt(e)?[t("--baro-sepia",`sepia(${e}%)`),me()]:[t("--baro-sepia",`sepia(${e})`),me()],handleCustomProperty:e=>[t("--baro-sepia",`sepia(var(${e}))`),me()],description:"sepia filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var we=()=>[t("-webkit-backdrop-filter","var(--baro-backdrop-blur, ) var(--baro-backdrop-brightness, ) var(--baro-backdrop-contrast, ) var(--baro-backdrop-grayscale, ) var(--baro-backdrop-hue-rotate, ) var(--baro-backdrop-invert, ) var(--baro-backdrop-saturate, ) var(--baro-backdrop-sepia, )"),t("backdrop-filter","var(--baro-backdrop-blur, ) var(--baro-backdrop-brightness, ) var(--baro-backdrop-contrast, ) var(--baro-backdrop-grayscale, ) var(--baro-backdrop-hue-rotate, ) var(--baro-backdrop-invert, ) var(--baro-backdrop-saturate, ) var(--baro-backdrop-sepia, )")];T("backdrop-filter",[["backdrop-filter","var(--baro-backdrop-filter)"]],{category:"effects"}),T("backdrop-filter-none",[["backdrop-filter","none"]],{category:"effects"}),B({name:"backdrop-filter",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,description:"filter utility (static, arbitrary, custom property supported)",category:"effects"}),[["backdrop-blur-xs","var(--blur-xs)"],["backdrop-blur-sm","var(--blur-sm)"],["backdrop-blur-md","var(--blur-md)"],["backdrop-blur-lg","var(--blur-lg)"],["backdrop-blur-xl","var(--blur-xl)"],["backdrop-blur-2xl","var(--blur-2xl)"],["backdrop-blur-3xl","var(--blur-3xl)"]].forEach(([e,r])=>{T(e,[t("--baro-backdrop-blur",`blur(${r})`),...we()],{category:"effects"})}),T("backdrop-blur",[t("--baro-backdrop-blur","blur(8px)"),...we()],{category:"effects"}),T("backdrop-blur-none",[t("--baro-backdrop-blur",""),...we()],{category:"effects"}),B({name:"backdrop-blur",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>V(e,"blur",t,"blur")??(/^(\d|\.\d)/.test(t)?t:null),handle:(e,r,o)=>o.customProperty?[t("--baro-backdrop-blur",`blur(var(${e}))`),...we()]:[t("--baro-backdrop-blur",`blur(${e})`),...we()],handleCustomProperty:e=>[t("--baro-backdrop-blur",`blur(var(${e}))`),...we()],description:"blur filter utility (static, arbitrary, custom property supported)",category:"effects"}),B({name:"backdrop-brightness",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>o.arbitrary?[t("--baro-backdrop-brightness",`brightness(${e})`),...we()]:Xt(e)?[t("--baro-backdrop-brightness",`brightness(${e}%)`),...we()]:o.customProperty?[t("--baro-backdrop-brightness",`brightness(var(${e}))`),...we()]:[t("--baro-backdrop-brightness",`brightness(${e})`),...we()],handleCustomProperty:e=>[t("--baro-backdrop-brightness",`brightness(var(${e}))`),...we()],description:"brightness filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),B({name:"backdrop-contrast",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handle:(e,r,o)=>o.arbitrary?[t("--baro-backdrop-contrast",`contrast(${e})`),...we()]:Xt(e)?[t("--baro-backdrop-contrast",`contrast(${e}%)`),...we()]:o.customProperty?[t("--baro-backdrop-contrast",`contrast(var(${e}))`),...we()]:[t("--baro-backdrop-contrast",`contrast(${e})`),...we()],handleCustomProperty:e=>[t("--baro-backdrop-contrast",`contrast(var(${e}))`),...we()],description:"contrast filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),T("backdrop-grayscale",[["--baro-backdrop-grayscale","grayscale(100%)"],...we()],{category:"effects"}),B({name:"backdrop-grayscale",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Xt(e)?[t("--baro-backdrop-grayscale",`grayscale(${e}%)`),...we()]:[t("--baro-backdrop-grayscale",`grayscale(${e})`),...we()],handleCustomProperty:e=>[t("--baro-backdrop-grayscale",`grayscale(var(${e}))`),...we()],description:"grayscale filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),B({name:"backdrop-hue-rotate",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(e,r,o)=>o.negative&&Xt(o.value)?[t("--baro-backdrop-hue-rotate",`hue-rotate(calc(${o.value}deg * -1))`),...we()]:Xt(e)?[t("--baro-backdrop-hue-rotate",`hue-rotate(${e}deg)`),...we()]:[t("--baro-backdrop-hue-rotate",`hue-rotate(${e})`),...we()],handleCustomProperty:e=>[t("--baro-backdrop-hue-rotate",`hue-rotate(var(${e}))`),...we()],description:"hue-rotate filter utility (static, negative, number, arbitrary, custom property supported)",category:"effects"}),T("backdrop-invert",[["--baro-backdrop-invert","invert(100%)"],...we()],{category:"effects"}),B({name:"backdrop-invert",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Xt(e)?[t("--baro-backdrop-invert",`invert(${e}%)`),...we()]:[t("--baro-backdrop-invert",`invert(${e})`),...we()],description:"invert filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),B({name:"backdrop-saturate",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Xt(e)?[t("--baro-backdrop-saturate",`saturate(${e}%)`),...we()]:[t("--baro-backdrop-saturate",`saturate(${e})`),...we()],handleCustomProperty:e=>[t("--baro-backdrop-saturate",`saturate(var(${e}))`),...we()],description:"saturate filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),T("backdrop-sepia",[["--baro-backdrop-sepia","sepia(100%)"],...we()],{category:"effects"}),B({name:"backdrop-sepia",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Xt(e)?[t("--baro-backdrop-sepia",`sepia(${e}%)`),...we()]:[t("--baro-backdrop-sepia",`sepia(${e})`),...we()],handleCustomProperty:e=>[t("--baro-backdrop-sepia",`sepia(var(${e}))`),...we()],description:"sepia filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var $e="var(--baro-inset-shadow), var(--baro-inset-ring-shadow), var(--baro-ring-offset-shadow), var(--baro-ring-shadow), var(--baro-shadow)",Ce=()=>e([a("--baro-shadow","0 0 #0000"),a("--baro-inset-shadow","0 0 #0000"),a("--baro-inset-ring-shadow","0 0 #0000"),a("--baro-ring-offset-shadow","0 0 #0000"),a("--baro-ring-shadow","0 0 #0000"),a("--baro-ring-offset-width","0px","<length>"),a("--baro-ring-offset-color","#fff")]),Pe=t=>e([a(`--baro-${t}-color`),a(`--baro-${t}-alpha`,"100%","<percentage>")]),ze={"":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","2xs":"0 1px rgb(0 0 0 / 0.05)",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},Ae={"2xs":"inset 0 1px rgb(0 0 0 / 0.05)",xs:"inset 0 1px 1px rgb(0 0 0 / 0.05)",sm:"inset 0 2px 4px rgb(0 0 0 / 0.05)"},Se={md:"inset 0 4px 6px -1px rgb(0 0 0 / 0.05)",lg:"inset 0 10px 15px -3px rgb(0 0 0 / 0.05)",xl:"inset 0 20px 25px -5px rgb(0 0 0 / 0.05)","2xl":"inset 0 25px 50px -12px rgb(0 0 0 / 0.05)"},je=t=>t.split(/,(?![^(]*\))/).map(t=>`inset ${t.trim()}`).join(", "),Re=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Ee(e,r,o){const a=he(e,`--baro-${e}`,r,o);return a?[Ce(),Pe(e),...a,t("box-shadow",$e)]:null}function Te(t,e,r,o){if("shadow"===t){if(Re(ze,e))return Ee(t,ze[e],r)}else{if(Re(Ae,e))return Ee(t,Ae[e],r);if(!r&&Re(Se,e))return Ee(t,Se[e],void 0)}const a=o&&"none"!==e?W(o,"shadow"===t?"boxShadow":"insetShadow",e):null;return a?Ee(t,a,r):null}T("shadow-none",[Ce,["--baro-shadow","0 0 #0000"],["box-shadow",$e]],{category:"effects"}),T("inset-shadow-none",[Ce,["--baro-inset-shadow","inset 0 0 #0000"],["box-shadow",$e]],{category:"effects"}),k({name:"shadow",match:t=>/^shadow(\/.+)?$/.test(t),handler:(t,e,r)=>{const o=t?`${r.prefix}-${t}`:r.prefix,a=o.indexOf("/");return Te("shadow","",a<0?void 0:o.slice(a+1))??[]},category:"effects"});var Ne={inherit:"inherit",current:"currentcolor",transparent:"transparent"};function We(t,e,r,o,a){const n=o.arbitrary?void 0:Ne[a??e];return n?ge(t,n,r):a?ge(t,e,r,`var(--color-${a})`):e.startsWith("color:")?ge(t,`var(${e.slice(6)})`,r):o.arbitrary&&ee(e)?ge(t,e,r):void 0}for(const Mo of["shadow","inset-shadow"])B({name:Mo,supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors"],handleBareValue:({value:t,ctx:e,extra:r})=>Te(Mo,t,r?.opacity,e)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity,n=r.arbitrary?null:Te(Mo,o?.realThemeValue??t,a,e);if(n)return n;const s=We(Mo,t,a,r,o?.realThemeValue);return void 0!==s?s:r.arbitrary?Ee(Mo,"inset-shadow"===Mo?je(t):t,a):null},handleCustomProperty:e=>e.startsWith("color:")?ge(Mo,`var(${e.slice(6)})`,void 0)??[]:[Ce(),t(`--baro-${Mo}`,"inset-shadow"===Mo?`inset var(${e})`:`var(${e})`),t("box-shadow",$e)]});var Ve=()=>e([a("--baro-text-shadow-color"),a("--baro-text-shadow-alpha","100%","<percentage>")]),Be=(t,e)=>{const r=t.theme("textShadow",e);return"string"==typeof r&&/^[\w.-]+$/.test(e)?r:null},Me=(t,e)=>{const r=he("text-shadow","text-shadow",t,e);return r?[Ve(),...r]:null};function Oe(t){return`var(--baro-ring-inset,) 0 0 0 calc(${t} + var(--baro-ring-offset-width)) var(--baro-ring-color, currentcolor)`}T("text-shadow-none",[Ve,["text-shadow","none"]],{category:"effects"}),B({name:"text-shadow",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors"],handleBareValue:({value:t,ctx:e})=>Be(e,t)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity;if(!r.arbitrary){const r=Be(e,o?.realThemeValue??t);if(r)return Me(r,a)}const n=We("text-shadow",t,a,r,o?.realThemeValue);return void 0!==n?n&&[Ve(),...n]:r.arbitrary?Me(t,a):null},handleCustomProperty:e=>e.startsWith("color:")?[Ve(),...ge("text-shadow",`var(${e.slice(6)})`,void 0)??[]]:[Ve(),t("text-shadow",`var(${e})`)],category:"effects"}),[["ring","1px"],["ring-0","0px"],["ring-1","1px"],["ring-2","2px"],["ring-4","4px"],["ring-8","8px"]].forEach(([t,e])=>{T(t,[Ce,["--baro-ring-shadow",Oe(e)],["box-shadow","var(--baro-inset-shadow), var(--baro-inset-ring-shadow), var(--baro-ring-offset-shadow), var(--baro-ring-shadow), var(--baro-shadow)"]])}),[["ring-offset-0","0px"],["ring-offset-1","1px"],["ring-offset-2","2px"],["ring-offset-4","4px"],["ring-offset-8","8px"]].forEach(([t,e])=>{T(t,[["--baro-ring-offset-width",e],["--baro-ring-offset-color","#fff"],["--baro-ring-offset-shadow","var(--baro-ring-inset,) 0 0 0 var(--baro-ring-offset-width) var(--baro-ring-offset-color)"]],{category:"effects"})});var Fe=e=>[t("--baro-ring-offset-width",e),t("--baro-ring-offset-shadow","var(--baro-ring-inset,) 0 0 0 var(--baro-ring-offset-width) var(--baro-ring-offset-color)")];function Ke(e,o,a,n){const s=`var(--color-${n})`;let i=s,l=s;return a&&(i=`color-mix(in oklab, ${s} ${a}%, transparent)`,l=ee(o)&&o.startsWith("#")?`${o}${Math.round(Number(a)/100*255).toString(16).padStart(2,"0")}`:i),[r("supports","(color:color-mix(in lab, red, red))",[t(e,i)]),t(e,l)]}B({name:"ring-offset",themeKeys:["ringOffsetWidth","colors"],supportsArbitrary:!0,supportsOpacity:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}px`:null,handle:(e,r,o,a)=>"ringOffsetWidth"===a?.themeNamespace?Fe(e):a?.realThemeValue?oe("--baro-ring-offset-color",e,a):o.arbitrary?ee(e)?[t("--baro-ring-offset-color",e)]:Jt(e)?Fe(e):null:/^\d+px$/.test(e)?Fe(e):null,category:"effects"}),[["inset-ring","1px"],["inset-ring-0","0px"],["inset-ring-1","1px"],["inset-ring-2","2px"],["inset-ring-4","4px"],["inset-ring-8","8px"]].forEach(([t,e])=>{T(t,[Ce,["--baro-inset-ring-shadow",`inset 0 0 0 ${e} var(--baro-inset-ring-color, currentcolor)`],["box-shadow",$e]],{category:"effects"})}),T("ring-inset",[["--baro-ring-inset","inset"]],{category:"effects"}),B({name:"ring",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors","ringWidth"],handle:(e,o,a,n)=>{const s=e;if("ringWidth"===n?.themeNamespace)return[Ce(),t("--baro-ring-shadow",Oe(e)),t("box-shadow",$e)];const i=n?.opacity,l=n?.realThemeValue;if(l)return Ke("--baro-ring-color",s,i,l);if(s.startsWith("color:")){const e=s.replace("color:","");let o=`var(${e})`,a=o;return i&&(o=`color-mix(in oklab, var(${e}) ${i}%, transparent)`,a=o),[r("supports","(color:color-mix(in lab, red, red))",[t("--baro-ring-color",o)]),t("--baro-ring-color",a)]}if(a.arbitrary){let e=s,o=s;if(i)return e=`color-mix(in oklab, ${s} ${i}%, transparent)`,o=ee(s)&&s.startsWith("#")?`${s}${Math.round(Number(i)/100*255).toString(16).padStart(2,"0")}`:e,[r("supports","(color:color-mix(in lab, red, red))",[t("--baro-ring-color",e)]),t("--baro-ring-color",o)];if(!ee(s)&&/^(-?(\d+\.?\d*|\.\d+)(px|rem|em|%|vw|vh|vmin|vmax|ch|ex|pt|cm|mm|in|pc)|0|(length:.+)|calc\(.+\))$/i.test(s)){const e=s.startsWith("length:")?s.slice(7):s;return[Ce(),t("--baro-ring-shadow",Oe(e)),t("box-shadow",$e)]}return[ee(s)||/^var\(--[^)]+\)$/.test(s)?t("--baro-ring-color",s):t("box-shadow",s)]}return"inherit"===s||"current"===s||"transparent"===s?[t("--baro-ring-color","current"===s?"currentColor":s)]:null},handleCustomProperty:e=>{if(e.startsWith("color:")){return[t("--baro-ring-color",`var(${e.replace("color:","")})`)]}return[t("--baro-ring-color",`var(${e})`)]}}),B({name:"inset-ring",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors","shadows"],handle:(e,o,a,n)=>{const s=e,i=n?.opacity,l=n?.realThemeValue;if(l)return Ke("--baro-inset-ring-color",s,i,l);if(s.startsWith("color:")){const e=s.replace("color:","");let o=`var(${e})`,a=o;return i&&(o=`color-mix(in oklab, var(${e}) ${i}%, transparent)`,a=o),[r("supports","(color:color-mix(in lab, red, red))",[t("--baro-inset-ring-color",o)]),t("--baro-inset-ring-color",a)]}if(a.arbitrary){let e=s,o=s;return i?(e=`color-mix(in oklab, ${s} ${i}%, transparent)`,o=ee(s)&&s.startsWith("#")?`${s}${Math.round(Number(i)/100*255).toString(16).padStart(2,"0")}`:e,[r("supports","(color:color-mix(in lab, red, red))",[t("--baro-inset-ring-color",e)]),t("--baro-inset-ring-color",o)]):[t("box-shadow",`inset ${s}`)]}return"inherit"===s||"current"===s||"transparent"===s?[t("--baro-inset-ring-color","current"===s?"currentColor":s)]:null},handleCustomProperty:e=>{if(e.startsWith("color:")){return[t("--baro-inset-ring-color",`var(${e.replace("color:","")})`)]}return[t("--baro-inset-ring-color",`var(${e})`)]}}),B({name:"opacity",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>{if(Xt(e)){let r=Number(e);return r>1&&(r/=100),[t("opacity",String(r))]}return o.arbitrary?[t("opacity",e)]:null},handleCustomProperty:e=>[t("opacity",`var(${e})`)],description:"opacity utility (number, arbitrary, custom property supported)",category:"effects"}),[["mix-blend-normal","normal"],["mix-blend-multiply","multiply"],["mix-blend-screen","screen"],["mix-blend-overlay","overlay"],["mix-blend-darken","darken"],["mix-blend-lighten","lighten"],["mix-blend-color-dodge","color-dodge"],["mix-blend-color-burn","color-burn"],["mix-blend-hard-light","hard-light"],["mix-blend-soft-light","soft-light"],["mix-blend-difference","difference"],["mix-blend-exclusion","exclusion"],["mix-blend-hue","hue"],["mix-blend-saturation","saturation"],["mix-blend-color","color"],["mix-blend-luminosity","luminosity"],["mix-blend-plus-darker","plus-darker"],["mix-blend-plus-lighter","plus-lighter"]].forEach(([t,e])=>{T(t,[["mix-blend-mode",e]])}),[["bg-blend-normal","normal"],["bg-blend-multiply","multiply"],["bg-blend-screen","screen"],["bg-blend-overlay","overlay"],["bg-blend-darken","darken"],["bg-blend-lighten","lighten"],["bg-blend-color-dodge","color-dodge"],["bg-blend-color-burn","color-burn"],["bg-blend-hard-light","hard-light"],["bg-blend-soft-light","soft-light"],["bg-blend-difference","difference"],["bg-blend-exclusion","exclusion"],["bg-blend-hue","hue"],["bg-blend-saturation","saturation"],["bg-blend-color","color"],["bg-blend-luminosity","luminosity"]].forEach(([t,e])=>{T(t,[["background-blend-mode",e]],{category:"effects"})}),[["mask-clip-border","border-box"],["mask-clip-padding","padding-box"],["mask-clip-content","content-box"],["mask-clip-fill","fill-box"],["mask-clip-stroke","stroke-box"],["mask-clip-view","view-box"],["mask-no-clip","no-clip"]].forEach(([t,e])=>{T(t,[["mask-clip",e]],{category:"effects"})}),[["mask-add","add"],["mask-subtract","subtract"],["mask-intersect","intersect"],["mask-exclude","exclude"]].forEach(([t,e])=>{T(t,[["mask-composite",e]],{category:"effects"})}),[["mask-alpha","alpha"],["mask-luminance","luminance"],["mask-match","match-source"]].forEach(([t,e])=>{T(t,[["mask-mode",e]],{category:"effects"})}),[["mask-origin-border","border-box"],["mask-origin-padding","padding-box"],["mask-origin-content","content-box"],["mask-origin-fill","fill-box"],["mask-origin-stroke","stroke-box"],["mask-origin-view","view-box"]].forEach(([t,e])=>{T(t,[["mask-origin",e]],{category:"effects"})}),[["mask-top-left","top left"],["mask-top","top"],["mask-top-right","top right"],["mask-left","left"],["mask-center","center"],["mask-right","right"],["mask-bottom-left","bottom left"],["mask-bottom","bottom"],["mask-bottom-right","bottom right"]].forEach(([t,e])=>{T(t,[["mask-position",e]],{category:"effects"})}),B({name:"mask-position",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>o.arbitrary?[t("mask-position",e)]:o.customProperty?[t("mask-position",`var(${e})`)]:null,handleCustomProperty:e=>[t("mask-position",`var(${e})`)],description:"mask-position utility (static, arbitrary, custom property supported)",category:"effects"}),[["mask-repeat","repeat"],["mask-no-repeat","no-repeat"],["mask-repeat-x","repeat-x"],["mask-repeat-y","repeat-y"],["mask-repeat-space","space"],["mask-repeat-round","round"]].forEach(([t,e])=>{T(t,[["mask-repeat",e]],{category:"effects"})}),[["mask-auto","auto"],["mask-cover","cover"],["mask-contain","contain"]].forEach(([t,e])=>{T(t,[["mask-size",e]],{category:"effects"})}),[["mask-type-alpha","alpha"],["mask-type-luminance","luminance"]].forEach(([t,e])=>{T(t,[["mask-type",e]],{category:"effects"})}),B({name:"mask-size",prop:"mask-size",supportsArbitrary:!0,supportsCustomProperty:!0,description:"mask-size utility (static, arbitrary, custom property supported)",category:"effects"});B({name:"mask-linear-from",handleBareValue:({value:t})=>/^(?:100|[1-9]?\d)%$/.test(t)?t:null,handle:r=>[t("mask-image","var(--baro-mask-linear), var(--baro-mask-radial), var(--baro-mask-conic)"),t("mask-composite","intersect"),t("--baro-mask-linear-stops","var(--baro-mask-linear-position), var(--baro-mask-linear-from-color) var(--baro-mask-linear-from-position), var(--baro-mask-linear-to-color) var(--baro-mask-linear-to-position)"),t("--baro-mask-linear","linear-gradient(var(--baro-mask-linear-stops))"),t("--baro-mask-linear-from-position",r),e([a("--baro-mask-linear","linear-gradient(#fff, #fff)"),a("--baro-mask-radial","linear-gradient(#fff, #fff)"),a("--baro-mask-conic","linear-gradient(#fff, #fff)"),a("--baro-mask-linear-position","0deg"),a("--baro-mask-linear-from-position","0%"),a("--baro-mask-linear-to-position","100%"),a("--baro-mask-linear-from-color","black"),a("--baro-mask-linear-to-color","transparent")])],category:"effects"}),T("mask-none",[["mask-image","none"]],{category:"effects"}),B({name:"mask",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>"none"===e?[t("mask-image","none")]:o.arbitrary?[t("mask-image",e)]:o.customProperty?[t("mask-image",`var(${e})`)]:null,handleCustomProperty:e=>[t("mask-image",`var(${e})`)],description:"mask-image utility (arbitrary, custom property supported)",category:"effects"}),T("isolate",[["isolation","isolate"]],{category:"layout"}),T("isolation-auto",[["isolation","auto"]],{category:"layout"}),T("z-auto",[["z-index","auto"]],{category:"layout"}),B({name:"z",prop:"z-index",themeKey:"zIndex",supportsNegative:!0,supportsFraction:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),description:"z-index utility",category:"layout"}),T("aspect-square",[["aspect-ratio","1 / 1"]],{category:"layout"}),T("aspect-video",[["aspect-ratio","var(--aspect-video)"]],{category:"layout"}),T("aspect-auto",[["aspect-ratio","auto"]],{category:"layout"}),B({name:"aspect",prop:"aspect-ratio",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>V(e,"aspect",t,"aspect")??(/^(\d|\.\d)/.test(t)?t:null),description:"aspect-ratio utility (theme, arbitrary, custom property, fraction supported)",category:"layout"}),T("columns-auto",[["columns","auto"]],{category:"layout"}),T("columns-3xs",[["columns","var(--container-3xs)"]],{category:"layout"}),T("columns-2xs",[["columns","var(--container-2xs)"]],{category:"layout"}),T("columns-xs",[["columns","var(--container-xs)"]],{category:"layout"}),T("columns-sm",[["columns","var(--container-sm)"]],{category:"layout"}),T("columns-md",[["columns","var(--container-md)"]],{category:"layout"}),T("columns-lg",[["columns","var(--container-lg)"]],{category:"layout"}),T("columns-xl",[["columns","var(--container-xl)"]],{category:"layout"}),T("columns-2xl",[["columns","var(--container-2xl)"]],{category:"layout"}),T("columns-3xl",[["columns","var(--container-3xl)"]],{category:"layout"}),T("columns-4xl",[["columns","var(--container-4xl)"]],{category:"layout"}),T("columns-5xl",[["columns","var(--container-5xl)"]],{category:"layout"}),T("columns-6xl",[["columns","var(--container-6xl)"]],{category:"layout"}),T("columns-7xl",[["columns","var(--container-7xl)"]],{category:"layout"}),B({name:"columns",prop:"columns",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>Xt(t)??V(e,"container",t,"container"),description:"columns utility (theme, arbitrary, custom property, fraction supported)",category:"layout"}),T("break-after-auto",[["break-after","auto"]],{category:"layout"}),T("break-after-avoid",[["break-after","avoid"]],{category:"layout"}),T("break-after-all",[["break-after","all"]],{category:"layout"}),T("break-after-avoid-page",[["break-after","avoid-page"]],{category:"layout"}),T("break-after-page",[["break-after","page"]],{category:"layout"}),T("break-after-left",[["break-after","left"]],{category:"layout"}),T("break-after-right",[["break-after","right"]],{category:"layout"}),T("break-after-column",[["break-after","column"]],{category:"layout"}),T("break-before-auto",[["break-before","auto"]],{category:"layout"}),T("break-before-avoid",[["break-before","avoid"]],{category:"layout"}),T("break-before-all",[["break-before","all"]],{category:"layout"}),T("break-before-avoid-page",[["break-before","avoid-page"]],{category:"layout"}),T("break-before-page",[["break-before","page"]],{category:"layout"}),T("break-before-left",[["break-before","left"]],{category:"layout"}),T("break-before-right",[["break-before","right"]],{category:"layout"}),T("break-before-column",[["break-before","column"]],{category:"layout"}),T("break-inside-auto",[["break-inside","auto"]],{category:"layout"}),T("break-inside-avoid",[["break-inside","avoid"]],{category:"layout"}),T("break-inside-avoid-page",[["break-inside","avoid-page"]],{category:"layout"}),T("break-inside-avoid-column",[["break-inside","avoid-column"]],{category:"layout"}),T("box-decoration-slice",[["box-decoration-break","slice"]],{category:"layout"}),T("box-decoration-clone",[["box-decoration-break","clone"]],{category:"layout"}),T("box-border",[["box-sizing","border-box"]],{category:"layout"}),T("box-content",[["box-sizing","content-box"]],{category:"layout"}),T("block",[["display","block"]],{category:"layout"}),T("inline",[["display","inline"]],{category:"layout"}),T("inline-block",[["display","inline-block"]],{category:"layout"}),T("flow-root",[["display","flow-root"]],{category:"layout"}),T("flex",[["display","flex"]],{category:"layout"}),T("inline-flex",[["display","inline-flex"]],{category:"layout"}),T("grid",[["display","grid"]],{category:"layout"}),T("inline-grid",[["display","inline-grid"]],{category:"layout"}),T("contents",[["display","contents"]],{category:"layout"}),T("table",[["display","table"]],{category:"layout"}),T("inline-table",[["display","inline-table"]],{category:"layout"}),T("table-caption",[["display","table-caption"]],{category:"layout"}),T("table-cell",[["display","table-cell"]],{category:"layout"}),T("table-column",[["display","table-column"]],{category:"layout"}),T("table-column-group",[["display","table-column-group"]],{category:"layout"}),T("table-footer-group",[["display","table-footer-group"]],{category:"layout"}),T("table-header-group",[["display","table-header-group"]],{category:"layout"}),T("table-row-group",[["display","table-row-group"]],{category:"layout"}),T("table-row",[["display","table-row"]],{category:"layout"}),T("list-item",[["display","list-item"]],{category:"layout"}),T("hidden",[["display","none"]],{category:"layout"}),T("sr-only",[["position","absolute"],["width","1px"],["height","1px"],["padding","0"],["margin","-1px"],["overflow","hidden"],["clip-path","inset(50%)"],["white-space","nowrap"],["border-width","0"]],{category:"layout"}),T("not-sr-only",[["position","static"],["width","auto"],["height","auto"],["padding","0"],["margin","0"],["overflow","visible"],["clip-path","none"],["white-space","normal"]],{category:"layout"}),T("@container",[["container-type","inline-size"]],{category:"layout"}),T("@container-normal",[["container-type","normal"]],{category:"layout"}),T("@container-size",[["container-type","size"]],{category:"layout"});var De=/^@container(-normal|-size)?\/([a-zA-Z0-9_-]+)$/,Le={"":"inline-size","-normal":"normal","-size":"size"};k({name:"@container",match:t=>De.test(t),handler:(e,r,o)=>{const a=De.exec(`${o.prefix}${o.value?`-${o.value}`:""}`);return a?[t("container-type",Le[a[1]??""]),t("container-name",a[2])]:null},category:"layout"});var Ze=t=>{const e=/^(-?\d*\.?\d+)(rem|px|em)$/.exec(t.trim());return e?"px"===e[2]?Number(e[1])/16:Number(e[1]):NaN};k({name:"container",match:t=>"container"===t,handler:(e,o)=>{const a=o.theme("breakpoints")||o.config("theme.breakpoints")||{},n=Object.values(a).filter(t=>"string"==typeof t&&!Number.isNaN(Ze(t)));return n.sort((t,e)=>Ze(t)-Ze(e)),[t("width","100%"),...n.map(e=>r("media",`(width >= ${e})`,[t("max-width",e)]))]},category:"layout"}),T("float-right",[["float","right"]],{category:"layout"}),T("float-left",[["float","left"]],{category:"layout"}),T("float-start",[["float","inline-start"]],{category:"layout"}),T("float-end",[["float","inline-end"]],{category:"layout"}),T("float-none",[["float","none"]],{category:"layout"}),T("clear-left",[["clear","left"]],{category:"layout"}),T("clear-right",[["clear","right"]],{category:"layout"}),T("clear-both",[["clear","both"]],{category:"layout"}),T("clear-start",[["clear","inline-start"]],{category:"layout"}),T("clear-end",[["clear","inline-end"]],{category:"layout"}),T("clear-none",[["clear","none"]],{category:"layout"}),T("object-contain",[["object-fit","contain"]],{category:"layout"}),T("object-cover",[["object-fit","cover"]],{category:"layout"}),T("object-fill",[["object-fit","fill"]],{category:"layout"}),T("object-none",[["object-fit","none"]],{category:"layout"}),T("object-scale-down",[["object-fit","scale-down"]],{category:"layout"}),T("object-top-left",[["object-position","top left"]],{category:"layout"}),T("object-top",[["object-position","top"]],{category:"layout"}),T("object-top-right",[["object-position","top right"]],{category:"layout"}),T("object-left",[["object-position","left"]],{category:"layout"}),T("object-center",[["object-position","center"]],{category:"layout"}),T("object-right",[["object-position","right"]],{category:"layout"}),T("object-bottom-left",[["object-position","bottom left"]],{category:"layout"}),T("object-bottom",[["object-position","bottom"]],{category:"layout"}),T("object-bottom-right",[["object-position","bottom right"]],{category:"layout"}),B({name:"object",prop:"object-position",supportsArbitrary:!0,supportsCustomProperty:!0,description:"object-position utility (arbitrary value, custom property supported)",category:"layout"}),T("overflow-auto",[["overflow","auto"]],{category:"layout"}),T("overflow-hidden",[["overflow","hidden"]],{category:"layout"}),T("overflow-clip",[["overflow","clip"]],{category:"layout"}),T("overflow-visible",[["overflow","visible"]],{category:"layout"}),T("overflow-scroll",[["overflow","scroll"]],{category:"layout"}),T("overflow-x-auto",[["overflow-x","auto"]],{category:"layout"}),T("overflow-y-auto",[["overflow-y","auto"]],{category:"layout"}),T("overflow-x-hidden",[["overflow-x","hidden"]],{category:"layout"}),T("overflow-y-hidden",[["overflow-y","hidden"]],{category:"layout"}),T("overflow-x-clip",[["overflow-x","clip"]],{category:"layout"}),T("overflow-y-clip",[["overflow-y","clip"]],{category:"layout"}),T("overflow-x-visible",[["overflow-x","visible"]],{category:"layout"}),T("overflow-y-visible",[["overflow-y","visible"]],{category:"layout"}),T("overflow-x-scroll",[["overflow-x","scroll"]],{category:"layout"}),T("overflow-y-scroll",[["overflow-y","scroll"]],{category:"layout"}),T("overscroll-auto",[["overscroll-behavior","auto"]],{category:"layout"}),T("overscroll-contain",[["overscroll-behavior","contain"]],{category:"layout"}),T("overscroll-none",[["overscroll-behavior","none"]],{category:"layout"}),T("overscroll-x-auto",[["overscroll-behavior-x","auto"]],{category:"layout"}),T("overscroll-x-contain",[["overscroll-behavior-x","contain"]],{category:"layout"}),T("overscroll-x-none",[["overscroll-behavior-x","none"]],{category:"layout"}),T("overscroll-y-auto",[["overscroll-behavior-y","auto"]],{category:"layout"}),T("overscroll-y-contain",[["overscroll-behavior-y","contain"]],{category:"layout"}),T("overscroll-y-none",[["overscroll-behavior-y","none"]],{category:"layout"}),T("static",[["position","static"]],{category:"layout"}),T("fixed",[["position","fixed"]],{category:"layout"}),T("absolute",[["position","absolute"]],{category:"layout"}),T("relative",[["position","relative"]],{category:"layout"}),T("sticky",[["position","sticky"]],{category:"layout"}),[["inset-x","inset-inline"],["inset-y","inset-block"],["inset-s","inset-inline-start"],["inset-e","inset-inline-end"],["inset-bs","inset-block-start"],["inset-be","inset-block-end"],["inset","inset"],["start","inset-inline-start"],["end","inset-inline-end"],["top","top"],["right","right"],["bottom","bottom"],["left","left"]].forEach(([t,e])=>{T(`${t}-auto`,[[e,"auto"]],{category:"layout"}),T(`${t}-full`,[[e,"100%"]],{category:"layout"}),T(`-${t}-full`,[[e,"-100%"]],{category:"layout"}),T(`${t}-px`,[[e,"1px"]],{category:"layout"}),T(`-${t}-px`,[[e,"-1px"]],{category:"layout"}),B({name:t,spacingKeys:!0,prop:e,supportsNegative:!0,supportsFraction:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>{if(Xt(t))return`calc(var(--spacing) * ${t})`;const e=Gt(t);return e||null},handleNegativeBareValue:({value:t})=>{if(Xt(t))return`calc(var(--spacing) * -${t})`;const e=Gt(t);return e?`-${e}`:null},description:`${t} utility (spacing, fraction, px, full, auto, custom property, arbitrary, negative supported)`,category:"layout"})}),T("visible",[["visibility","visible"]],{category:"layout"}),T("invisible",[["visibility","hidden"]],{category:"layout"}),T("collapse",[["visibility","collapse"]],{category:"layout"}),B({name:"gap-x",spacingKeys:!0,prop:"column-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("column-gap",e)]:null,handleCustomProperty:e=>[t("column-gap",`var(${e})`)],description:"gap-x utility (number, arbitrary, custom property supported)",category:"layout"}),B({name:"gap-y",spacingKeys:!0,prop:"row-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("row-gap",e)]:null,handleCustomProperty:e=>[t("row-gap",`var(${e})`)],description:"gap-y utility (number, arbitrary, custom property supported)",category:"layout"}),B({name:"gap",spacingKeys:!0,prop:"gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("gap",e)]:null,handleCustomProperty:e=>[t("gap",`var(${e})`)],description:"gap utility (number, arbitrary, custom property supported)",category:"layout"}),B({name:"zoom",prop:"zoom",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}%`:null,description:"zoom utility (integer percent, arbitrary, custom property)",category:"layout"}),T("basis-full",[["flex-basis","100%"]],{category:"flex-grid"}),T("basis-auto",[["flex-basis","auto"]],{category:"flex-grid"}),T("basis-3xs",[["flex-basis","var(--container-3xs)"]],{category:"flex-grid"}),T("basis-2xs",[["flex-basis","var(--container-2xs)"]],{category:"flex-grid"}),T("basis-xs",[["flex-basis","var(--container-xs)"]],{category:"flex-grid"}),T("basis-sm",[["flex-basis","var(--container-sm)"]],{category:"flex-grid"}),T("basis-md",[["flex-basis","var(--container-md)"]],{category:"flex-grid"}),T("basis-lg",[["flex-basis","var(--container-lg)"]],{category:"flex-grid"}),T("basis-xl",[["flex-basis","var(--container-xl)"]],{category:"flex-grid"}),T("basis-2xl",[["flex-basis","var(--container-2xl)"]],{category:"flex-grid"}),T("basis-3xl",[["flex-basis","var(--container-3xl)"]],{category:"flex-grid"}),T("basis-4xl",[["flex-basis","var(--container-4xl)"]],{category:"flex-grid"}),T("basis-5xl",[["flex-basis","var(--container-5xl)"]],{category:"flex-grid"}),T("basis-6xl",[["flex-basis","var(--container-6xl)"]],{category:"flex-grid"}),T("basis-7xl",[["flex-basis","var(--container-7xl)"]],{category:"flex-grid"}),B({name:"basis",prop:"flex-basis",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>{if(Xt(t))return`calc(var(--container-${t}) * 1px)`;const e=Gt(t);return e||null},handleNegativeBareValue:({value:t})=>{if(Xt(t))return`calc(var(--container-${t}) * -1px)`;const e=Gt(t);return e?`-${e}`:null},description:"flex-basis utility (theme, arbitrary, custom property, fraction supported)",category:"flex-grid"}),T("flex-row",[["flex-direction","row"]],{category:"flex-grid"}),T("flex-row-reverse",[["flex-direction","row-reverse"]],{category:"flex-grid"}),T("flex-col",[["flex-direction","column"]],{category:"flex-grid"}),T("flex-col-reverse",[["flex-direction","column-reverse"]],{category:"flex-grid"}),T("flex-wrap",[["flex-wrap","wrap"]],{category:"flex-grid"}),T("flex-wrap-reverse",[["flex-wrap","wrap-reverse"]],{category:"flex-grid"}),T("flex-nowrap",[["flex-wrap","nowrap"]],{category:"flex-grid"}),T("flex-auto",[["flex","1 1 auto"]],{category:"flex-grid"}),T("flex-initial",[["flex","0 1 auto"]],{category:"flex-grid"}),T("flex-none",[["flex","none"]],{category:"flex-grid"}),T("flex-grow",[["flex-grow","1"]],{category:"flex-grid"}),B({name:"flex-grow",prop:"flex-grow",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),handle:e=>[t("flex-grow",e)],description:"flex-grow utility (number, arbitrary, custom property supported)",category:"flex-grid"}),T("flex-shrink",[["flex-shrink","1"]],{category:"flex-grid"}),B({name:"flex-shrink",prop:"flex-shrink",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),description:"flex-shrink utility (number, arbitrary, custom property supported)",category:"flex-grid"}),B({name:"flex",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>{if(Xt(t))return t;const e=Gt(t);return e?`calc(${e})`:null},handle:e=>[t("flex",e)],description:"flex shorthand utility (number, fraction, arbitrary, custom property supported)",category:"flex-grid"}),T("grow",[["flex-grow","1"]],{category:"flex-grid"}),B({name:"grow",prop:"flex-grow",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),handle:e=>[t("flex-grow",e)],description:"flex-grow utility (number, arbitrary, custom property supported)",category:"flex-grid"}),T("shrink",[["flex-shrink","1"]],{category:"flex-grid"}),T("shrink-0",[["flex-shrink","0"]],{category:"flex-grid"}),B({name:"shrink",prop:"flex-shrink",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),description:"flex-shrink utility (number, arbitrary, custom property supported)",category:"flex-grid"}),T("order-first",[["order","calc(-infinity)"]],{category:"flex-grid"}),T("order-last",[["order","calc(infinity)"]],{category:"flex-grid"}),T("order-none",[["order","0"]],{category:"flex-grid"}),B({name:"order",prop:"order",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),handleNegativeBareValue:({value:t})=>Xt(t)?`calc(${t} * -1)`:null,description:"order utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),T("grid-cols-none",[["grid-template-columns","none"]],{category:"flex-grid"}),T("grid-cols-subgrid",[["grid-template-columns","subgrid"]],{category:"flex-grid"}),B({name:"grid-cols",prop:"grid-template-columns",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Qt(t,{repeat:!0}),description:"grid-template-columns utility (number, arbitrary, custom property supported)",category:"flex-grid"}),T("grid-rows-none",[["grid-template-rows","none"]],{category:"flex-grid"}),T("grid-rows-subgrid",[["grid-template-rows","subgrid"]],{category:"flex-grid"}),B({name:"grid-rows",prop:"grid-template-rows",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Qt(t,{repeat:!0}),handle:e=>"string"==typeof e?[t("grid-template-rows",e.replace(/_/g," "))]:null,handleCustomProperty:e=>[t("grid-template-rows",`var(${e})`)],description:"grid-template-rows utility (number, arbitrary, custom property supported)",category:"flex-grid"}),T("row-span-full",[["grid-row","1 / -1"]],{category:"flex-grid"}),B({name:"row-span",prop:"grid-row",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`span ${t} / span ${t}`:null,handleCustomProperty:e=>[t("grid-row",`span var(${e}) / span var(${e})`)],handle:e=>Xt(e)?[t("grid-row",`span ${e} / span ${e}`)]:null,description:"grid-row span utility (number, arbitrary, custom property supported)",category:"flex-grid"}),T("row-start-auto",[["grid-row-start","auto"]],{category:"flex-grid"}),B({name:"row-start",prop:"grid-row-start",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),handleNegativeBareValue:({value:t})=>Xt(t)?`calc(${t} * -1)`:null,handleCustomProperty:e=>[t("grid-row-start",`var(${e})`)],handle:e=>Xt(e)||"string"==typeof e?[t("grid-row-start",e)]:null,description:"grid-row-start utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),T("row-end-auto",[["grid-row-end","auto"]],{category:"flex-grid"}),B({name:"row-end",prop:"grid-row-end",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),handleNegativeBareValue:({value:t})=>Xt(t)?`calc(${t} * -1)`:null,handleCustomProperty:e=>[t("grid-row-end",`var(${e})`)],handle:e=>Xt(e)||"string"==typeof e?[t("grid-row-end",e)]:null,description:"grid-row-end utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),T("row-auto",[["grid-row","auto"]],{category:"flex-grid"}),B({name:"row",prop:"grid-row",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),handleNegativeBareValue:({value:t})=>Xt(t)?`calc(${t} * -1)`:null,handleCustomProperty:e=>[t("grid-row",`var(${e})`)],handle:e=>Xt(e)||"string"==typeof e?[t("grid-row",e)]:null,description:"grid-row utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),T("grid-flow-row",[["grid-auto-flow","row"]],{category:"flex-grid"}),T("grid-flow-col",[["grid-auto-flow","column"]],{category:"flex-grid"}),T("grid-flow-dense",[["grid-auto-flow","dense"]],{category:"flex-grid"}),T("grid-flow-row-dense",[["grid-auto-flow","row dense"]],{category:"flex-grid"}),T("grid-flow-col-dense",[["grid-auto-flow","column dense"]],{category:"flex-grid"}),T("auto-cols-auto",[["grid-auto-columns","auto"]],{category:"flex-grid"}),T("auto-cols-min",[["grid-auto-columns","min-content"]],{category:"flex-grid"}),T("auto-cols-max",[["grid-auto-columns","max-content"]],{category:"flex-grid"}),T("auto-cols-fr",[["grid-auto-columns","minmax(0, 1fr)"]],{category:"flex-grid"}),B({name:"auto-cols",prop:"grid-auto-columns",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("grid-auto-columns",e)]:null,handleCustomProperty:e=>[t("grid-auto-columns",`var(${e})`)],description:"grid-auto-columns utility (static, arbitrary, custom property supported)",category:"flex-grid"}),T("auto-rows-auto",[["grid-auto-rows","auto"]],{category:"flex-grid"}),T("auto-rows-min",[["grid-auto-rows","min-content"]],{category:"flex-grid"}),T("auto-rows-max",[["grid-auto-rows","max-content"]],{category:"flex-grid"}),T("auto-rows-fr",[["grid-auto-rows","minmax(0, 1fr)"]],{category:"flex-grid"}),B({name:"auto-rows",prop:"grid-auto-rows",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("grid-auto-rows",e)]:null,handleCustomProperty:e=>[t("grid-auto-rows",`var(${e})`)],description:"grid-auto-rows utility (static, arbitrary, custom property supported)",category:"flex-grid"}),B({name:"gap-x",prop:"column-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Xt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("column-gap",e)]:null,handleCustomProperty:e=>[t("column-gap",`var(${e})`)],description:"gap-x utility (number, arbitrary, custom property supported)",category:"layout"}),B({name:"gap-y",prop:"row-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Xt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("row-gap",e)]:null,handleCustomProperty:e=>[t("row-gap",`var(${e})`)],description:"gap-y utility (number, arbitrary, custom property supported)",category:"layout"}),B({name:"gap",prop:"gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Xt(t)?`calc(var(--spacing) * ${t})`:null,handle:e=>"string"==typeof e?[t("gap",e)]:null,handleCustomProperty:e=>[t("gap",`var(${e})`)],description:"gap utility (number, arbitrary, custom property supported)",category:"layout"}),T("justify-start",[["justify-content","flex-start"]],{category:"flex-grid"}),T("justify-end",[["justify-content","flex-end"]],{category:"flex-grid"}),T("justify-end-safe",[["justify-content","safe flex-end"]],{category:"flex-grid"}),T("justify-center",[["justify-content","center"]],{category:"flex-grid"}),T("justify-center-safe",[["justify-content","safe center"]],{category:"flex-grid"}),T("justify-between",[["justify-content","space-between"]],{category:"flex-grid"}),T("justify-around",[["justify-content","space-around"]],{category:"flex-grid"}),T("justify-evenly",[["justify-content","space-evenly"]],{category:"flex-grid"}),T("justify-stretch",[["justify-content","stretch"]],{category:"flex-grid"}),T("justify-baseline",[["justify-content","baseline"]],{category:"flex-grid"}),T("justify-normal",[["justify-content","normal"]],{category:"flex-grid"}),T("justify-items-start",[["justify-items","start"]],{category:"flex-grid"}),T("justify-items-end",[["justify-items","end"]],{category:"flex-grid"}),T("justify-items-end-safe",[["justify-items","safe end"]],{category:"flex-grid"}),T("justify-items-center",[["justify-items","center"]],{category:"flex-grid"}),T("justify-items-center-safe",[["justify-items","safe center"]],{category:"flex-grid"}),T("justify-items-stretch",[["justify-items","stretch"]],{category:"flex-grid"}),T("justify-items-normal",[["justify-items","normal"]],{category:"flex-grid"}),T("justify-self-auto",[["justify-self","auto"]],{category:"flex-grid"}),T("justify-self-start",[["justify-self","flex-start"]],{category:"flex-grid"}),T("justify-self-center",[["justify-self","center"]],{category:"flex-grid"}),T("justify-self-center-safe",[["justify-self","safe center"]],{category:"flex-grid"}),T("justify-self-end",[["justify-self","flex-end"]],{category:"flex-grid"}),T("justify-self-end-safe",[["justify-self","safe flex-end"]],{category:"flex-grid"}),T("justify-self-stretch",[["justify-self","stretch"]],{category:"flex-grid"}),T("content-normal",[["align-content","normal"]],{category:"flex-grid"}),T("content-center",[["align-content","center"]],{category:"flex-grid"}),T("content-start",[["align-content","flex-start"]],{category:"flex-grid"}),T("content-end",[["align-content","flex-end"]],{category:"flex-grid"}),T("content-between",[["align-content","space-between"]],{category:"flex-grid"}),T("content-around",[["align-content","space-around"]],{category:"flex-grid"}),T("content-evenly",[["align-content","space-evenly"]],{category:"flex-grid"}),T("content-baseline",[["align-content","baseline"]],{category:"flex-grid"}),T("content-stretch",[["align-content","stretch"]],{category:"flex-grid"}),T("items-start",[["align-items","flex-start"]],{category:"flex-grid"}),T("items-end",[["align-items","flex-end"]],{category:"flex-grid"}),T("items-end-safe",[["align-items","safe flex-end"]],{category:"flex-grid"}),T("items-center",[["align-items","center"]],{category:"flex-grid"}),T("items-center-safe",[["align-items","safe center"]],{category:"flex-grid"}),T("items-baseline",[["align-items","baseline"]],{category:"flex-grid"}),T("items-baseline-last",[["align-items","last baseline"]],{category:"flex-grid"}),T("items-stretch",[["align-items","stretch"]],{category:"flex-grid"}),T("self-auto",[["align-self","auto"]],{category:"flex-grid"}),T("self-start",[["align-self","flex-start"]],{category:"flex-grid"}),T("self-end",[["align-self","flex-end"]],{category:"flex-grid"}),T("self-end-safe",[["align-self","safe flex-end"]],{category:"flex-grid"}),T("self-center",[["align-self","center"]],{category:"flex-grid"}),T("self-center-safe",[["align-self","safe center"]],{category:"flex-grid"}),T("self-stretch",[["align-self","stretch"]],{category:"flex-grid"}),T("self-baseline",[["align-self","baseline"]],{category:"flex-grid"}),T("self-baseline-last",[["align-self","last baseline"]],{category:"flex-grid"}),T("place-content-center",[["place-content","center"]],{category:"flex-grid"}),T("place-content-center-safe",[["place-content","safe center"]],{category:"flex-grid"}),T("place-content-start",[["place-content","start"]],{category:"flex-grid"}),T("place-content-end",[["place-content","end"]],{category:"flex-grid"}),T("place-content-end-safe",[["place-content","safe end"]],{category:"flex-grid"}),T("place-content-between",[["place-content","space-between"]],{category:"flex-grid"}),T("place-content-around",[["place-content","space-around"]],{category:"flex-grid"}),T("place-content-evenly",[["place-content","space-evenly"]],{category:"flex-grid"}),T("place-content-baseline",[["place-content","baseline"]],{category:"flex-grid"}),T("place-content-stretch",[["place-content","stretch"]],{category:"flex-grid"}),T("place-items-start",[["place-items","start"]],{category:"flex-grid"}),T("place-items-end",[["place-items","end"]],{category:"flex-grid"}),T("place-items-end-safe",[["place-items","safe end"]],{category:"flex-grid"}),T("place-items-center",[["place-items","center"]],{category:"flex-grid"}),T("place-items-center-safe",[["place-items","safe center"]],{category:"flex-grid"}),T("place-items-baseline",[["place-items","baseline"]],{category:"flex-grid"}),T("place-items-stretch",[["place-items","stretch"]],{category:"flex-grid"}),T("place-self-auto",[["place-self","auto"]],{category:"flex-grid"}),T("place-self-start",[["place-self","start"]],{category:"flex-grid"}),T("place-self-end",[["place-self","end"]],{category:"flex-grid"}),T("place-self-end-safe",[["place-self","safe end"]],{category:"flex-grid"}),T("place-self-center",[["place-self","center"]],{category:"flex-grid"}),T("place-self-center-safe",[["place-self","safe center"]],{category:"flex-grid"}),T("place-self-stretch",[["place-self","stretch"]],{category:"flex-grid"}),T("col-span-full",[["grid-column","1 / -1"]],{category:"flex-grid"}),B({name:"col-span",prop:"grid-column",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`span ${t} / span ${t}`:null,handleCustomProperty:(e,r,o)=>[t("grid-column",`span var(${e}) / span var(${e})`)],handle:(e,r,o)=>Xt(e)?[t("grid-column",`span ${e} / span ${e}`)]:null,description:"grid-column span utility (number, arbitrary, custom property supported)",category:"grid"}),T("col-start-auto",[["grid-column-start","auto"]],{category:"flex-grid"}),B({name:"col-start",prop:"grid-column-start",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),handleNegativeBareValue:({value:t})=>Xt(t)?`calc(${t} * -1)`:null,description:"grid-column-start utility (number, negative, arbitrary, custom property supported)",category:"grid"}),T("col-end-auto",[["grid-column-end","auto"]],{category:"flex-grid"}),B({name:"col-end",prop:"grid-column-end",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),handleNegativeBareValue:({value:t})=>Xt(t)?`calc(${t} * -1)`:null,description:"grid-column-end utility (number, negative, arbitrary, custom property supported)",category:"grid"}),T("col-auto",[["grid-column","auto"]],{category:"flex-grid"}),B({name:"col",prop:"grid-column",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),handleNegativeBareValue:({value:t})=>Xt(t)?`calc(${t} * -1)`:null,description:"grid-column utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),[["px","padding-inline"],["py","padding-block"],["ps","padding-inline-start"],["pe","padding-inline-end"],["pbs","padding-block-start"],["pbe","padding-block-end"],["pt","padding-top"],["pr","padding-right"],["pb","padding-bottom"],["pl","padding-left"],["p","padding"]].forEach(([t,e])=>{T(`${t}-px`,[[e,"1px"]],{category:"spacing"}),B({spacingKeys:!0,name:t,prop:e,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:null,description:`${t} utility (number, arbitrary, custom property supported)`,category:"spacing"})}),[["mx","margin-inline"],["my","margin-block"],["ms","margin-inline-start"],["me","margin-inline-end"],["mbs","margin-block-start"],["mbe","margin-block-end"],["mt","margin-top"],["mr","margin-right"],["mb","margin-bottom"],["ml","margin-left"],["m","margin"]].forEach(([t,e])=>{T(`${t}-auto`,[[e,"auto"]],{category:"spacing"}),T(`${t}-px`,[[e,"1px"]],{category:"spacing"}),T(`-${t}-px`,[[e,"-1px"]],{category:"spacing"}),B({spacingKeys:!0,name:t,prop:e,supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * -${t})`:null,description:`${t} margin utility (number, negative, arbitrary, custom property, auto, px supported)`,category:"spacing"})});var Ie=":where(& > :not(:last-child))";["x","y"].forEach(r=>{const n=`space-${r}`,s=`--baro-space-${r}-reverse`,[i,l]="x"===r?["margin-inline-start","margin-inline-end"]:["margin-block-start","margin-block-end"],c=()=>e([a(s,"0")]),p=e=>o(Ie,[t(s,"0"),t(i,`calc(${e} * var(${s}))`),t(l,`calc(${e} * calc(1 - var(${s})))`)]),u=t=>[c(),p(t)];T(`${n}-px`,[c,()=>p("1px")],{category:"spacing"}),T(`-${n}-px`,[c,()=>p("-1px")],{category:"spacing"}),T(`${n}-reverse`,[c,()=>o(Ie,[t(s,"1")])],{category:"spacing"}),B({spacingKeys:!0,name:n,supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * -${t})`:null,handle:(t,e,r)=>{let o=String(t);return/^-?\d+(\.\d+)?$/.test(o)&&(o=`calc(var(--spacing) * ${r.negative?"-":""}${o})`),u(o)},handleCustomProperty:t=>u(`var(${t})`),description:`${n} utility (number, negative, px, arbitrary, custom property, reverse supported)`,category:"spacing"})}),[["w-auto","auto"],["w-px","1px"],["w-full","100%"],["w-screen","100vw"],["w-dvw","100dvw"],["w-dvh","100dvh"],["w-lvw","100lvw"],["w-lvh","100lvh"],["w-svw","100svw"],["w-svh","100svh"],["w-min","min-content"],["w-max","max-content"],["w-fit","fit-content"],["w-3xs","var(--container-3xs)"],["w-2xs","var(--container-2xs)"],["w-xs","var(--container-xs)"],["w-sm","var(--container-sm)"],["w-md","var(--container-md)"],["w-lg","var(--container-lg)"],["w-xl","var(--container-xl)"],["w-2xl","var(--container-2xl)"],["w-3xl","var(--container-3xl)"],["w-4xl","var(--container-4xl)"],["w-5xl","var(--container-5xl)"],["w-6xl","var(--container-6xl)"],["w-7xl","var(--container-7xl)"]].forEach(([t,e])=>{T(t,[["width",e]])}),B({spacingKeys:!0,name:"w",prop:"width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:Qt(t)?`calc(${t} * 100%)`:null,description:"width utility (spacing, fraction, arbitrary, custom property, container scale, static supported)",category:"sizing"}),[["size-auto",["auto","auto"]],["size-px",["1px","1px"]],["size-full",["100%","100%"]],["size-dvw",["100dvw","100dvw"]],["size-dvh",["100dvh","100dvh"]],["size-lvw",["100lvw","100lvw"]],["size-lvh",["100lvh","100lvh"]],["size-svw",["100svw","100svw"]],["size-svh",["100svh","100svh"]],["size-min",["min-content","min-content"]],["size-max",["max-content","max-content"]],["size-fit",["fit-content","fit-content"]]].forEach(([t,[e,r]])=>{T(t,[["width",e],["height",r]])}),B({spacingKeys:!0,name:"size",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:Qt(t)?`calc(${t} * 100%)`:null,handle:e=>[t("width",e),t("height",e)],handleCustomProperty:e=>[t("width",`var(${e})`),t("height",`var(${e})`)],description:"size utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["h-auto","auto"],["h-px","1px"],["h-full","100%"],["h-screen","100vh"],["h-dvh","100dvh"],["h-lvh","100lvh"],["h-svh","100svh"],["h-min","min-content"],["h-max","max-content"],["h-fit","fit-content"]].forEach(([t,e])=>{T(t,[["height",e]])}),B({spacingKeys:!0,name:"h",prop:"height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:Qt(t)?`calc(${t} * 100%)`:null,description:"height utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["min-h-0","0px"],["min-h-px","1px"],["min-h-full","100%"],["min-h-screen","100vh"],["min-h-dvh","100dvh"],["min-h-lvh","100lvh"],["min-h-svh","100svh"],["min-h-min","min-content"],["min-h-max","max-content"],["min-h-fit","fit-content"]].forEach(([t,e])=>{T(t,[["min-height",e]],{category:"sizing"})}),B({spacingKeys:!0,name:"min-h",prop:"min-height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:Qt(t)?`calc(${t} * 100%)`:null,description:"min-height utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["max-h-px","1px"],["max-h-full","100%"],["max-h-screen","100vh"],["max-h-dvh","100dvh"],["max-h-lvh","100lvh"],["max-h-svh","100svh"],["max-h-min","min-content"],["max-h-max","max-content"],["max-h-fit","fit-content"],["max-h-none","none"]].forEach(([t,e])=>{T(t,[["max-height",e]],{category:"sizing"})}),B({spacingKeys:!0,name:"max-h",prop:"max-height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:Qt(t)?`calc(${t} * 100%)`:null,description:"max-height utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["min-w-auto","auto"],["min-w-px","1px"],["min-w-full","100%"],["min-w-screen","100vw"],["min-w-dvw","100dvw"],["min-w-dvh","100dvh"],["min-w-lvw","100lvw"],["min-w-lvh","100lvh"],["min-w-svw","100svw"],["min-w-svh","100svh"],["min-w-min","min-content"],["min-w-max","max-content"],["min-w-fit","fit-content"],["min-w-3xs","var(--container-3xs)"],["min-w-2xs","var(--container-2xs)"],["min-w-xs","var(--container-xs)"],["min-w-sm","var(--container-sm)"],["min-w-md","var(--container-md)"],["min-w-lg","var(--container-lg)"],["min-w-xl","var(--container-xl)"],["min-w-2xl","var(--container-2xl)"],["min-w-3xl","var(--container-3xl)"],["min-w-4xl","var(--container-4xl)"],["min-w-5xl","var(--container-5xl)"],["min-w-6xl","var(--container-6xl)"],["min-w-7xl","var(--container-7xl)"]].forEach(([t,e])=>{T(t,[["min-width",e]],{category:"sizing"})}),B({spacingKeys:!0,name:"min-w",prop:"min-width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:Qt(t)?`calc(${t} * 100%)`:null,description:"min-width utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"}),[["max-w-none","none"],["max-w-min","min-content"],["max-w-max","max-content"],["max-w-fit","fit-content"],["max-w-xs","var(--container-xs)"],["max-w-sm","var(--container-sm)"],["max-w-md","var(--container-md)"],["max-w-lg","var(--container-lg)"],["max-w-xl","var(--container-xl)"],["max-w-2xl","var(--container-2xl)"],["max-w-3xl","var(--container-3xl)"],["max-w-4xl","var(--container-4xl)"],["max-w-5xl","var(--container-5xl)"],["max-w-6xl","var(--container-6xl)"],["max-w-7xl","var(--container-7xl)"]].forEach(([t,e])=>{T(t,[["max-width",e]],{category:"sizing"})}),B({spacingKeys:!0,name:"max-w",prop:"max-width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>Xt(t)?`calc(var(--spacing) * ${t})`:Qt(t)?`calc(${t} * 100%)`:V(e,"container",t,"container"),description:"max-width utility (spacing, fraction, arbitrary, custom property, static supported)",category:"sizing"});{const t=["3xs","2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"].map(t=>[t,`var(--container-${t})`]),e=[["0","0px"],["px","1px"],["full","100%"],["min","min-content"],["max","max-content"],["fit","fit-content"]],r=[["screen","100vw"],["dvw","100dvw"],["lvw","100lvw"],["svw","100svw"]],o=[["screen","100vh"],["dvh","100dvh"],["lvh","100lvh"],["svh","100svh"],["lh","1lh"]],a=[["inline","inline-size",[...e,["auto","auto"],...r,...t]],["min-inline","min-inline-size",[...e,["auto","auto"],...r,...t]],["max-inline","max-inline-size",[...e,["none","none"],...r,...t]],["block","block-size",[...e,["auto","auto"],...o]],["min-block","min-block-size",[...e,["auto","auto"],...o]],["max-block","max-block-size",[...e,["none","none"],...o]]];for(const[n,s,i]of a){for(const[t,e]of i)T(`${n}-${t}`,[[s,e]],{category:"sizing"});B({spacingKeys:!0,name:n,prop:s,supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,token:e,ctx:r})=>e.negative?null:Xt(t)?`calc(var(--spacing) * ${t})`:Qt(t)?`calc(${t} * 100%)`:n.includes("inline")?V(r,"container",t,"container"):null,description:`${s} utility (spacing, fraction, arbitrary, custom property, keywords)`,category:"sizing"})}}var _e=()=>e([a("--baro-leading")]);function qe(e){k({name:`font-${e}`,match:t=>t===`font-${e}`,handler:(r,o)=>{const a=V(o,"fontFamily",e,"font");return a?[t("font-family",a)]:[t("font-weight",`var(--font-weight-${e})`)]},category:"typography"})}T("font-sans",[["font-family","var(--font-sans)"]],{category:"typography"}),T("font-serif",[["font-family","var(--font-serif)"]],{category:"typography"}),T("font-mono",[["font-family","var(--font-mono)"]],{category:"typography"}),T("text-xs",[["font-size","var(--text-xs)"],["line-height","var(--baro-leading, var(--text-xs--line-height))"]],{category:"typography"}),T("text-sm",[["font-size","var(--text-sm)"],["line-height","var(--baro-leading, var(--text-sm--line-height))"]],{category:"typography"}),T("text-base",[["font-size","var(--text-base)"],["line-height","var(--baro-leading, var(--text-base--line-height))"]],{category:"typography"}),T("text-lg",[["font-size","var(--text-lg)"],["line-height","var(--baro-leading, var(--text-lg--line-height))"]],{category:"typography"}),T("text-xl",[["font-size","var(--text-xl)"],["line-height","var(--baro-leading, var(--text-xl--line-height))"]],{category:"typography"}),T("text-2xl",[["font-size","var(--text-2xl)"],["line-height","var(--baro-leading, var(--text-2xl--line-height))"]],{category:"typography"}),T("text-3xl",[["font-size","var(--text-3xl)"],["line-height","var(--baro-leading, var(--text-3xl--line-height))"]],{category:"typography"}),T("text-4xl",[["font-size","var(--text-4xl)"],["line-height","var(--baro-leading, var(--text-4xl--line-height))"]],{category:"typography"}),T("text-5xl",[["font-size","var(--text-5xl)"],["line-height","var(--baro-leading, var(--text-5xl--line-height))"]],{category:"typography"}),T("text-6xl",[["font-size","var(--text-6xl)"],["line-height","var(--baro-leading, var(--text-6xl--line-height))"]],{category:"typography"}),T("text-7xl",[["font-size","var(--text-7xl)"],["line-height","var(--baro-leading, var(--text-7xl--line-height))"]],{category:"typography"}),T("text-8xl",[["font-size","var(--text-8xl)"],["line-height","var(--baro-leading, var(--text-8xl--line-height))"]],{category:"typography"}),T("text-9xl",[["font-size","var(--text-9xl)"],["line-height","var(--baro-leading, var(--text-9xl--line-height))"]],{category:"typography"}),qe("thin"),qe("extralight"),qe("light"),qe("normal"),qe("medium"),qe("semibold"),qe("bold"),qe("extrabold"),qe("black"),B({name:"font",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>V(e,"fontFamily",t,"font")??V(e,"fontWeight",t,"font-weight")??(/^(\d|\.\d)/.test(t)?t:null),handle:(e,r,o)=>"font"!==o.prefix?null:!o.arbitrary&&e.startsWith("var(--font-weight-")||Xt(e)?[t("font-weight",e)]:[t("font-family",e)],handleCustomProperty:(e,r,o)=>"font"!==o.prefix?null:e.startsWith("font-name:")?[t("font-family",`var(${e.replace("font-name:","")})`)]:[t("font-weight",`var(${e})`)],description:"font-weight utility (theme, number, arbitrary, custom property supported)",category:"typography"}),T("italic",[["font-style","italic"]],{category:"typography"}),T("not-italic",[["font-style","normal"]],{category:"typography"}),T("tracking-tighter",[["letter-spacing","var(--letter-spacing-tighter)"]],{category:"typography"}),T("tracking-tight",[["letter-spacing","var(--letter-spacing-tight)"]],{category:"typography"}),T("tracking-normal",[["letter-spacing","var(--letter-spacing-normal)"]],{category:"typography"}),T("tracking-wide",[["letter-spacing","var(--letter-spacing-wide)"]],{category:"typography"}),T("tracking-wider",[["letter-spacing","var(--letter-spacing-wider)"]],{category:"typography"}),T("tracking-widest",[["letter-spacing","var(--letter-spacing-widest)"]],{category:"typography"}),B({name:"tracking",prop:"letter-spacing",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>V(e,"letterSpacing",t,"letter-spacing")??(/^(\d|\.\d)/.test(t)?t:null),description:"letter-spacing utility (theme, arbitrary, custom property supported)",category:"typography"}),T("leading-none",[["--baro-leading","var(--leading-none, 1)"],["line-height","var(--leading-none, 1)"],_e()],{category:"typography"}),T("leading-tight",[["--baro-leading","var(--leading-tight, 1.25)"],["line-height","var(--leading-tight, 1.25)"],_e()],{category:"typography"}),T("leading-snug",[["--baro-leading","var(--leading-snug, 1.375)"],["line-height","var(--leading-snug, 1.375)"],_e()],{category:"typography"}),T("leading-normal",[["--baro-leading","var(--leading-normal, 1.5)"],["line-height","var(--leading-normal, 1.5)"],_e()],{category:"typography"}),T("leading-relaxed",[["--baro-leading","var(--leading-relaxed, 1.625)"],["line-height","var(--leading-relaxed, 1.625)"],_e()],{category:"typography"}),T("leading-loose",[["--baro-leading","var(--leading-loose, 2)"],["line-height","var(--leading-loose, 2)"],_e()],{category:"typography"}),B({name:"leading",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>{const r=W(e,"lineHeight",t);if(null!=r)return`var(--leading-${t}, ${r})`;const o=e.theme("lineHeight",t);return"string"==typeof o?o:Xt(t)},handle:e=>[t("--baro-leading",e),t("line-height",e),_e()],handleCustomProperty:e=>[t("--baro-leading",`var(${e})`),t("line-height",`var(${e})`),_e()],description:"line-height utility (theme, number, arbitrary, custom property supported)",category:"typography"}),T("text-left",[["text-align","left"]],{category:"typography"}),T("text-center",[["text-align","center"]],{category:"typography"}),T("text-right",[["text-align","right"]],{category:"typography"}),T("text-justify",[["text-align","justify"]],{category:"typography"}),T("text-start",[["text-align","start"]],{category:"typography"}),T("text-end",[["text-align","end"]],{category:"typography"});var Ue=/* @__PURE__ */new Set(["length","size","percentage","absolute-size","relative-size"]),He=/^(xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large|larger|smaller)$/,Ye=/^-?(\d+\.?\d*|\.\d+)(px|r?em|r?lh|r?cap|r?ch|r?ex|r?ic|%|vh|vw|vmin|vmax|[sdl]v[hwib]|v[ib]|cq[whib]|cqmin|cqmax|pt|pc|in|cm|mm|q)$/i;function Ge(t){const e=/^([a-z-]+):(.+)$/.exec(t);return e&&("color"===e[1]||Ue.has(e[1]))?{fontSize:"color"!==e[1],value:e[2]}:{fontSize:"0"===t||Ye.test(t)||He.test(t)||/^(calc|min|max|clamp)\(/.test(t),value:t}}T("text-inherit",[["color","inherit"]],{category:"typography"}),T("text-current",[["color","currentColor"]],{category:"typography"}),T("text-transparent",[["color","transparent"]],{category:"typography"}),T("truncate",[["overflow","hidden"],["text-overflow","ellipsis"],["white-space","nowrap"]],{category:"typography"}),T("text-ellipsis",[["text-overflow","ellipsis"]],{category:"typography"}),T("text-clip",[["text-overflow","clip"]],{category:"typography"}),B({name:"text",themeKey:"colors",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handleBareValue:({value:t,ctx:e,extra:r})=>(r?.opacity?null:V(e,"fontSize",t,"text"))??(/^(\d|\.\d)/.test(t)?t:null),handle:(e,r,o,a)=>{if(a?.realThemeValue)return oe("color",e,a);const n=o.arbitrary||o.customProperty?void 0:/^var\(--text-([\w-]+)\)$/.exec(e)?.[1];if(n)return it(r.theme("fontSize",n))?[t("font-size",e),t("line-height",`var(--baro-leading, var(--text-${n}--line-height))`)]:[t("font-size",e)];const s=Ge(e);return[t(s.fontSize?"font-size":"color",s.value)]},handleCustomProperty:e=>{const r=Ge(e);return[t(r.fontSize?"font-size":"color",`var(${r.value})`)]},description:"text color utility (theme, arbitrary, custom property supported)",category:"typography"}),B({name:"text",themeKey:"fontSize",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>{const a=r.theme("fontSize",e);return a?Array.isArray(a)?[t("font-size",a[0]),t("line-height",`var(--baro-leading, ${a[1]})`)]:[t("font-size",a)]:o.arbitrary?[t("font-size",e)]:null},handleCustomProperty:e=>[t("font-size",`var(${e})`)],description:"font-size utility (theme, arbitrary, custom property supported)",category:"typography"}),T("uppercase",[["text-transform","uppercase"]],{category:"typography"}),T("lowercase",[["text-transform","lowercase"]],{category:"typography"}),T("capitalize",[["text-transform","capitalize"]],{category:"typography"}),T("normal-case",[["text-transform","none"]],{category:"typography"}),T("underline",[["text-decoration-line","underline"]],{category:"typography"}),T("overline",[["text-decoration-line","overline"]],{category:"typography"}),T("line-through",[["text-decoration-line","line-through"]],{category:"typography"}),T("no-underline",[["text-decoration-line","none"]],{category:"typography"}),T("whitespace-normal",[["white-space","normal"]],{category:"typography"}),T("whitespace-nowrap",[["white-space","nowrap"]],{category:"typography"}),T("whitespace-pre",[["white-space","pre"]],{category:"typography"}),T("whitespace-pre-line",[["white-space","pre-line"]],{category:"typography"}),T("whitespace-pre-wrap",[["white-space","pre-wrap"]],{category:"typography"}),T("whitespace-break-spaces",[["white-space","break-spaces"]],{category:"typography"}),T("break-normal",[["overflow-wrap","normal"],["word-break","normal"]],{category:"typography"}),T("break-words",[["overflow-wrap","break-word"]],{category:"typography"}),T("break-all",[["word-break","break-all"]],{category:"typography"}),T("break-keep",[["word-break","keep-all"]],{category:"typography"}),T("antialiased",[["-webkit-font-smoothing","antialiased"],["-moz-osx-font-smoothing","grayscale"]],{category:"typography"}),T("subpixel-antialiased",[["-webkit-font-smoothing","auto"],["-moz-osx-font-smoothing","auto"]],{category:"typography"}),T("font-stretch-normal",[["font-stretch","normal"]],{category:"typography"}),T("font-stretch-ultra-condensed",[["font-stretch","ultra-condensed"]],{category:"typography"}),T("font-stretch-extra-condensed",[["font-stretch","extra-condensed"]],{category:"typography"}),T("font-stretch-condensed",[["font-stretch","condensed"]],{category:"typography"}),T("font-stretch-semi-condensed",[["font-stretch","semi-condensed"]],{category:"typography"}),T("font-stretch-semi-expanded",[["font-stretch","semi-expanded"]],{category:"typography"}),T("font-stretch-expanded",[["font-stretch","expanded"]],{category:"typography"}),T("font-stretch-extra-expanded",[["font-stretch","extra-expanded"]],{category:"typography"}),T("font-stretch-ultra-expanded",[["font-stretch","ultra-expanded"]],{category:"typography"}),B({name:"font-stretch",prop:"font-stretch",supportsArbitrary:!0,supportsCustomProperty:!0,description:"font-stretch utility (arbitrary, custom property supported)",category:"typography"}),T("normal-nums",[["font-variant-numeric","normal"]],{category:"typography"}),T("ordinal",[["font-variant-numeric","ordinal"]],{category:"typography"}),T("slashed-zero",[["font-variant-numeric","slashed-zero"]],{category:"typography"}),T("lining-nums",[["font-variant-numeric","lining-nums"]],{category:"typography"}),T("oldstyle-nums",[["font-variant-numeric","oldstyle-nums"]],{category:"typography"}),T("proportional-nums",[["font-variant-numeric","proportional-nums"]],{category:"typography"}),T("tabular-nums",[["font-variant-numeric","tabular-nums"]],{category:"typography"}),T("diagonal-fractions",[["font-variant-numeric","diagonal-fractions"]],{category:"typography"}),T("stacked-fractions",[["font-variant-numeric","stacked-fractions"]],{category:"typography"}),T("line-clamp-none",[["-webkit-line-clamp","none"]],{category:"typography"}),B({name:"line-clamp",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t),handle:e=>[t("overflow","hidden"),t("display","-webkit-box"),t("-webkit-box-orient","vertical"),t("-webkit-line-clamp",e)],handleCustomProperty:e=>[t("overflow","hidden"),t("display","-webkit-box"),t("-webkit-box-orient","vertical"),t("-webkit-line-clamp",`var(${e})`)],description:"line-clamp utility (number, arbitrary, custom property supported)",category:"typography"}),T("list-none",[["list-style-type","none"]],{category:"typography"}),T("list-disc",[["list-style-type","disc"]],{category:"typography"}),T("list-decimal",[["list-style-type","decimal"]],{category:"typography"}),B({name:"list",prop:"list-style-type",themeKey:"listStyleType",supportsArbitrary:!0,supportsCustomProperty:!0,description:"list-style-type utility (theme, arbitrary, custom property supported)",category:"typography"}),T("list-inside",[["list-style-position","inside"]],{category:"typography"}),T("list-outside",[["list-style-position","outside"]],{category:"typography"}),T("list-image-none",[["list-style-image","none"]],{category:"typography"}),B({name:"list-image",prop:"list-style-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>[t("list-style-image",`url(${e})`)],handleCustomProperty:e=>[t("list-style-image",`var(${e})`)],description:"list-style-image utility (arbitrary, custom property supported)",category:"typography"}),B({name:"decoration",themeKeys:["textDecorationThickness","colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(e,r,o,a)=>"textDecorationThickness"===a?.themeNamespace?[t("text-decoration-thickness",e)]:a?.realThemeValue?oe("text-decoration-color",e,a):[t("text-decoration-color",e)],handleCustomProperty:e=>[t("text-decoration-color",`var(${e})`)],description:"text-decoration-color utility (theme, arbitrary, custom property supported)",category:"typography"}),T("decoration-solid",[["text-decoration-style","solid"]],{category:"typography"}),T("decoration-double",[["text-decoration-style","double"]],{category:"typography"}),T("decoration-dotted",[["text-decoration-style","dotted"]],{category:"typography"}),T("decoration-dashed",[["text-decoration-style","dashed"]],{category:"typography"}),T("decoration-wavy",[["text-decoration-style","wavy"]],{category:"typography"}),T("decoration-auto",[["text-decoration-thickness","auto"]],{category:"typography"}),T("decoration-from-font",[["text-decoration-thickness","from-font"]],{category:"typography"}),T("decoration-0",[["text-decoration-thickness","0px"]],{category:"typography"}),T("decoration-1",[["text-decoration-thickness","1px"]],{category:"typography"}),T("decoration-2",[["text-decoration-thickness","2px"]],{category:"typography"}),T("decoration-4",[["text-decoration-thickness","4px"]],{category:"typography"}),T("decoration-8",[["text-decoration-thickness","8px"]],{category:"typography"}),B({name:"decoration",prop:"text-decoration-thickness",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`${t}px`:null,description:"text-decoration-thickness utility (arbitrary, custom property supported)",category:"typography"}),T("underline-offset-auto",[["text-underline-offset","auto"]],{category:"typography"}),T("underline-offset-0",[["text-underline-offset","0px"]],{category:"typography"}),T("underline-offset-1",[["text-underline-offset","1px"]],{category:"typography"}),T("underline-offset-2",[["text-underline-offset","2px"]],{category:"typography"}),T("underline-offset-4",[["text-underline-offset","4px"]],{category:"typography"}),T("underline-offset-8",[["text-underline-offset","8px"]],{category:"typography"}),B({name:"underline-offset",prop:"text-underline-offset",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`${t}px`:null,description:"text-underline-offset utility (arbitrary, custom property supported)",category:"typography"}),T("text-wrap",[["text-wrap","wrap"]],{category:"typography"}),T("text-nowrap",[["text-wrap","nowrap"]],{category:"typography"}),T("text-balance",[["text-wrap","balance"]],{category:"typography"}),T("text-pretty",[["text-wrap","pretty"]],{category:"typography"}),B({name:"indent",prop:"text-indent",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Xt(t)?`calc(var(--spacing) * -${t})`:null,description:"text-indent utility (spacing, negative, arbitrary, custom property supported)",category:"typography"}),T("align-baseline",[["vertical-align","baseline"]],{category:"typography"}),T("align-top",[["vertical-align","top"]],{category:"typography"}),T("align-middle",[["vertical-align","middle"]],{category:"typography"}),T("align-bottom",[["vertical-align","bottom"]],{category:"typography"}),T("align-text-top",[["vertical-align","text-top"]],{category:"typography"}),T("align-text-bottom",[["vertical-align","text-bottom"]],{category:"typography"}),T("align-sub",[["vertical-align","sub"]],{category:"typography"}),T("align-super",[["vertical-align","super"]],{category:"typography"}),B({name:"align",prop:"vertical-align",supportsArbitrary:!0,supportsCustomProperty:!0,description:"vertical-align utility (arbitrary, custom property supported)",category:"typography"}),T("hyphens-none",[["hyphens","none"]],{category:"typography"}),T("hyphens-manual",[["hyphens","manual"]],{category:"typography"}),T("hyphens-auto",[["hyphens","auto"]],{category:"typography"}),T("content-none",[["--baro-content","none"],["content","none"]],{category:"typography"}),B({name:"content",prop:"content",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>[t("--baro-content",e),t("content","var(--baro-content)")],handleCustomProperty:e=>[t("--baro-content",`var(${e})`),t("content","var(--baro-content)")],description:"content utility (arbitrary, custom property supported)",category:"typography"});var Xe=e=>[o("&::placeholder",[t("color",e)])];T("placeholder-inherit",Xe("inherit"),{category:"typography"}),T("placeholder-current",Xe("currentcolor"),{category:"typography"}),T("placeholder-transparent",Xe("transparent"),{category:"typography"}),B({name:"placeholder",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,e,r,a)=>a?.realThemeValue?[o("&::placeholder",oe("color",t,a))]:ee(t)?Xe(t):null,handleCustomProperty:t=>Xe(`var(${t})`),description:"placeholder color utility (theme, alpha, arbitrary, custom property)"}),B({name:"font-features",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>o.arbitrary?[t("font-feature-settings",e)]:null,handleCustomProperty:e=>[t("font-feature-settings",`var(${e.replace(/^[a-z-]+:(?=--)/,"")})`)],description:"font-feature-settings utility (arbitrary, custom property)",category:"typography"}),B({name:"tab",prop:"tab-size",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?t:null,description:"tab-size utility (integer, arbitrary, custom property)",category:"typography"});var Je=()=>e([a("--baro-gradient-position"),a("--baro-gradient-from","#0000","<color>"),a("--baro-gradient-via","#0000","<color>"),a("--baro-gradient-to","#0000","<color>"),a("--baro-gradient-stops"),a("--baro-gradient-via-stops"),a("--baro-gradient-from-position","0%","<length-percentage>"),a("--baro-gradient-via-position","50%","<length-percentage>"),a("--baro-gradient-to-position","100%","<length-percentage>")],"background");T("bg-fixed",[["background-attachment","fixed"]],{category:"background"}),T("bg-local",[["background-attachment","local"]],{category:"background"}),T("bg-scroll",[["background-attachment","scroll"]],{category:"background"}),T("bg-clip-border",[["background-clip","border-box"]],{category:"background"}),T("bg-clip-padding",[["background-clip","padding-box"]],{category:"background"}),T("bg-clip-content",[["background-clip","content-box"]],{category:"background"}),T("bg-clip-text",[["background-clip","text"]],{category:"background"}),T("bg-inherit",[["background-color","inherit"]],{category:"background"}),T("bg-current",[["background-color","currentColor"]],{category:"background"}),T("bg-transparent",[["background-color","transparent"]],{category:"background"}),T("bg-none",[["background-image","none"]],{category:"background"}),T("bg-origin-border",[["background-origin","border-box"]],{category:"background"}),T("bg-origin-padding",[["background-origin","padding-box"]],{category:"background"}),T("bg-origin-content",[["background-origin","content-box"]],{category:"background"}),[["bg-bottom","bottom"],["bg-center","center"],["bg-left","left"],["bg-left-bottom","left bottom"],["bg-left-top","left top"],["bg-right","right"],["bg-right-bottom","right bottom"],["bg-right-top","right top"],["bg-top","top"]].forEach(([t,e])=>{T(t,[["background-position",e]],{category:"background"})}),B({name:"bg-position",prop:"background-position",supportsArbitrary:!0,supportsCustomProperty:!0,description:"background-position utility (arbitrary, custom property supported)",category:"background"}),T("bg-repeat",[["background-repeat","repeat"]],{category:"background"}),T("bg-no-repeat",[["background-repeat","no-repeat"]],{category:"background"}),T("bg-repeat-x",[["background-repeat","repeat-x"]],{category:"background"}),T("bg-repeat-y",[["background-repeat","repeat-y"]],{category:"background"}),T("bg-repeat-round",[["background-repeat","round"]],{category:"background"}),T("bg-repeat-space",[["background-repeat","space"]],{category:"background"}),T("bg-auto",[["background-size","auto"]],{category:"background"}),T("bg-cover",[["background-size","cover"]],{category:"background"}),T("bg-contain",[["background-size","contain"]],{category:"background"}),B({name:"bg-size",prop:"background-size",supportsArbitrary:!0,supportsCustomProperty:!0,description:"background-size utility (arbitrary, custom property supported)",category:"background"});var Qe=e=>[t("--baro-gradient-position",e),r("supports","(background-image: linear-gradient(in lab, red, red))",[t("--baro-gradient-position",`${e} in oklab`)]),t("background-image","linear-gradient(var(--baro-gradient-stops))")],tr=e=>[t("--baro-gradient-position",`${e} in oklab`),t("background-image","linear-gradient(var(--baro-gradient-stops))")];[["bg-linear-to-t",Qe("to top")],["bg-linear-to-tr",Qe("to top right")],["bg-linear-to-r",Qe("to right")],["bg-linear-to-br",Qe("to bottom right")],["bg-linear-to-b",Qe("to bottom")],["bg-linear-to-bl",Qe("to bottom left")],["bg-linear-to-l",Qe("to left")],["bg-linear-to-tl",Qe("to top left")],["bg-gradient-to-t",tr("to top")],["bg-gradient-to-tr",tr("to top right")],["bg-gradient-to-r",tr("to right")],["bg-gradient-to-br",tr("to bottom right")],["bg-gradient-to-b",tr("to bottom")],["bg-gradient-to-bl",tr("to bottom left")],["bg-gradient-to-l",tr("to left")],["bg-gradient-to-tl",tr("to top left")]].forEach(([t,e])=>{T(t,e,{category:"background",priority:1e3})}),B({name:"bg-linear",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o)=>Xt(e)?Qe(`${e}deg`):o.arbitrary?[t("background-image",`linear-gradient(var(--baro-gradient-stops, ${e}))`)]:o.customProperty?[t("background-image",`linear-gradient(var(--baro-gradient-stops, var(${e})))`)]:null,handleCustomProperty:e=>[t("background-image",`linear-gradient(var(--baro-gradient-stops, var(${e})))`)],description:"linear-gradient background-image utility (angle, arbitrary, custom property supported)",category:"background"});var er=(e,r,o)=>[t("--baro-gradient-position",r),t("background-image",`${e}(var(--baro-gradient-stops${o?`,${o}`:""}))`)];T("bg-radial",er("radial-gradient","in oklab"),{category:"background"}),B({name:"bg-radial",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,r)=>r.arbitrary?er("radial-gradient",t,t):r.customProperty?er("radial-gradient",`var(${t})`,`var(${t})`):null,handleCustomProperty:t=>er("radial-gradient",`var(${t})`,`var(${t})`),description:"radial-gradient background-image utility (arbitrary, custom property supported)",category:"background"}),T("bg-conic",er("conic-gradient","in oklab"),{category:"background"}),B({name:"bg-conic",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,r)=>r.arbitrary||r.customProperty||!Xt(t)?r.arbitrary?er("conic-gradient",t,t):r.customProperty?er("conic-gradient",`var(${t})`,`var(${t})`):null:er("conic-gradient",`from ${t}deg in oklab`),handleCustomProperty:t=>er("conic-gradient",`var(${t})`,`var(${t})`),description:"conic-gradient background-image utility (angle, arbitrary, custom property supported)",category:"background"});var rr="--baro-gradient",or=(e,r)=>{const o="string"==typeof r?[t(`${rr}-${e}`,r)]:r;return"via"===e?[Je(),...o,t(`${rr}-via-stops`,`var(${rr}-position), var(${rr}-from) var(${rr}-from-position), var(${rr}-via) var(${rr}-via-position), var(${rr}-to) var(${rr}-to-position)`),t(`${rr}-stops`,`var(${rr}-via-stops)`)]:[Je(),...o,t(`${rr}-stops`,`var(${rr}-via-stops, var(${rr}-position), var(${rr}-from) var(${rr}-from-position), var(${rr}-to) var(${rr}-to-position))`)]};["from","via","to"].forEach(e=>{B({name:e,themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(r,o,a,n)=>n?.realThemeValue?or(e,oe(`${rr}-${e}`,r,n)):Jt(r)?[Je(),t(`${rr}-${e}-position`,r)]:Xt(r)?[Je(),t(`${rr}-${e}-position`,`${r}%`)]:ee(r)?or(e,r):null,handleCustomProperty:r=>[t(`--baro-gradient-${e}`,`var(${r})`)],description:`${e} gradient stop utility (color, percent, custom property, arbitrary supported)`,category:"background"}),B({name:`${e}-position`,supportsArbitrary:!0,supportsCustomProperty:!0,handle:r=>[t(`--baro-gradient-${e}-position`,r)],handleCustomProperty:r=>[t(`--baro-gradient-${e}-position`,`var(${r})`)],description:`${e}-position gradient stop position utility (percent, custom property, arbitrary supported)`,category:"background"})});var ar={position:"background-position",percentage:"background-position",size:"background-size",length:"background-size","bg-size":"background-size",image:"background-image",url:"background-image"};function nr(t){const e=/^([a-z-]+):(.+)$/.exec(t),r=e?ar[e[1]]:void 0;return e&&r?[r,e[2]]:null}B({name:"bg",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(e,r,o,a)=>{if(e.startsWith("url("))return[t("background-image",e)];const n=nr(e);if(n)return[t(n[0],n[1])];if(a?.realThemeValue)return oe("background-color",e,a);if(ee(e)){const r=ee(e);return e.startsWith("color:")?[t("background-color",r||e)]:[t("background-color",e)]}return Jt(e)?[t("background-size",e)]:/^var\(--[^)]+\)$/.test(e)?[t("background-color",e)]:null},handleCustomProperty:e=>{const r=nr(e);return r?[t(r[0],`var(${r[1]})`)]:[t("background-color",`var(${e})`)]},description:"background-size utility (arbitrary, custom property supported)",category:"background"}),T("rounded-none",[["border-radius","0px"]],{category:"borders"}),T("rounded-sm",[["border-radius","var(--radius-sm)"]],{category:"borders"}),T("rounded",[["border-radius","0.25rem"]],{category:"borders"}),T("rounded-md",[["border-radius","var(--radius-md)"]],{category:"borders"}),T("rounded-lg",[["border-radius","var(--radius-lg)"]],{category:"borders"}),T("rounded-xl",[["border-radius","var(--radius-xl)"]],{category:"borders"}),T("rounded-2xl",[["border-radius","var(--radius-2xl)"]],{category:"borders"}),T("rounded-3xl",[["border-radius","var(--radius-3xl)"]],{category:"borders"}),T("rounded-4xl",[["border-radius","var(--radius-4xl)"]],{category:"borders"}),T("rounded-xs",[["border-radius","var(--radius-xs)"]],{category:"borders"});var sr="calc(infinity * 1px)";function ir(e,r){k({name:e,match:t=>t===e,handler:(e,o)=>{const a=W(o,"borderRadius","full"),n=null!=a&&"9999px"!==a&&a!==sr?"var(--radius-full)":sr;return r.map(e=>t(e,n))},category:"borders"})}ir("rounded-full",["border-radius"]),[["rounded-t",["border-top-left-radius","border-top-right-radius"]],["rounded-r",["border-top-right-radius","border-bottom-right-radius"]],["rounded-b",["border-bottom-right-radius","border-bottom-left-radius"]],["rounded-l",["border-top-left-radius","border-bottom-left-radius"]],["rounded-tl",["border-top-left-radius"]],["rounded-tr",["border-top-right-radius"]],["rounded-br",["border-bottom-right-radius"]],["rounded-bl",["border-bottom-left-radius"]],["rounded-s",["border-start-start-radius","border-end-start-radius"]],["rounded-e",["border-start-end-radius","border-end-end-radius"]],["rounded-ss",["border-start-start-radius"]],["rounded-se",["border-start-end-radius"]],["rounded-es",["border-end-start-radius"]],["rounded-ee",["border-end-end-radius"]]].forEach(([e,r])=>{const o=r,a=o[0].startsWith("border-start")||o[0].startsWith("border-end");T(`${e}-none`,o.map(t=>[t,a?"0":"0px"]),{category:"borders"}),T(`${e}-sm`,o.map(t=>[t,"var(--radius-sm)"]),{category:"borders"}),T(`${e}`,o.map(t=>[t,"0.25rem"]),{category:"borders"}),T(`${e}-md`,o.map(t=>[t,"var(--radius-md)"]),{category:"borders"}),T(`${e}-lg`,o.map(t=>[t,"var(--radius-lg)"]),{category:"borders"}),T(`${e}-xl`,o.map(t=>[t,"var(--radius-xl)"]),{category:"borders"}),T(`${e}-2xl`,o.map(t=>[t,"var(--radius-2xl)"]),{category:"borders"}),T(`${e}-3xl`,o.map(t=>[t,"var(--radius-3xl)"]),{category:"borders"}),T(`${e}-4xl`,o.map(t=>[t,"var(--radius-4xl)"]),{category:"borders"}),T(`${e}-xs`,o.map(t=>[t,"var(--radius-xs)"]),{category:"borders"}),ir(`${e}-full`,o),B({name:e,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>!a&&Xt(t)?`calc(var(--spacing) * ${t})`:V(e,"borderRadius",t,"radius"),handle:e=>o.map(r=>t(r,e)),description:`${e} utility (spacing, arbitrary, custom property support)`,category:"borders"})}),B({name:"rounded",handle:(e,r,o)=>"rounded"===o.prefix?[t("border-radius",e)]:null,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>Xt(t)?`calc(var(--spacing) * ${t})`:V(e,"borderRadius",t,"radius"),description:"border-radius utility (spacing, arbitrary, custom property support)",category:"borders"});var lr=()=>e([a("--baro-border-style","solid")]),cr=(t,e)=>e?.themeKey&&"DEFAULT"!==e.themeKey?`var(--border-width-${e.themeKey.replace(".","\\.")})`:t,pr=(e,r)=>[lr(),...e.map(e=>t(e.replace("width","style"),"var(--baro-border-style)")),...e.map(e=>t(e,r))];[["border-0","0px"],["border-2","2px"],["border-4","4px"],["border-8","8px"],["border","1px"]].forEach(([t,e])=>{T(t,[lr,["border-style","var(--baro-border-style)"],["border-width",e]],{category:"borders"})}),[["border-x",["border-inline-width"]],["border-y",["border-block-width"]],["border-bs",["border-block-start-width"]],["border-be",["border-block-end-width"]],["border-s",["border-inline-start-width"]],["border-e",["border-inline-end-width"]],["border-t",["border-top-width"]],["border-r",["border-right-width"]],["border-b",["border-bottom-width"]],["border-l",["border-left-width"]]].forEach(([e,r])=>{const o=r,a=t=>[lr,...o.map(t=>[t.replace("width","style"),"var(--baro-border-style)"]),...o.map(e=>[e,t])];T(`${e}-0`,a("0px")),T(`${e}-2`,a("2px")),T(`${e}-4`,a("4px")),T(`${e}-8`,a("8px")),T(`${e}`,a("1px")),B({name:e,themeKeys:["colors","borderWidth"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`${t}px`:null,handle:(e,r,a,n)=>"borderWidth"===n?.themeNamespace?pr(o,cr(e,n)):n?.realThemeValue?o.flatMap(t=>oe(t.replace("width","color"),e,n)):ee(e)?o.map(r=>t(r.replace("width","color"),e)):a.arbitrary||Jt(e)?pr(o,e):null,handleCustomProperty:e=>e.startsWith("length:")?pr(o,`var(${e.replace("length:","")})`):o.map(r=>t(r.replace("width","color"),`var(${e})`)),description:`${e} utility (number, arbitrary, custom property support)`,category:"borders"})}),T("border-inherit",[["border-color","inherit"]],{category:"borders"}),T("border-current",[["border-color","currentColor"]],{category:"borders"}),T("border-transparent",[["border-color","transparent"]],{category:"borders"}),T("border-solid",[["--baro-border-style","solid"],["border-style","solid"]],{category:"borders"}),T("border-dashed",[["--baro-border-style","dashed"],["border-style","dashed"]],{category:"borders"}),T("border-dotted",[["--baro-border-style","dotted"],["border-style","dotted"]],{category:"borders"}),T("border-double",[["--baro-border-style","double"],["border-style","double"]],{category:"borders"}),T("border-hidden",[["--baro-border-style","hidden"],["border-style","hidden"]],{category:"borders"}),T("border-none",[["--baro-border-style","none"],["border-style","none"]],{category:"borders"}),Object.entries({x:["border-inline-start","border-inline-end","border-inline-style"],y:["border-top","border-bottom","border-bottom-style","border-top-style"]}).forEach(([e,[r,a,...n]])=>{const s=`--baro-divide-${e}-reverse`,i=e=>[lr(),o(":where(& > :not(:last-child))",[t(s,"0"),...n.map(e=>t(e,"var(--baro-border-style)")),t(`${r}-width`,`calc(${e} * var(${s}))`),t(`${a}-width`,`calc(${e} * calc(1 - var(${s})))`)])];T(`divide-${e}`,i("1px"),{category:"borders"}),T(`divide-${e}-reverse`,[o(":where(& > :not(:last-child))",[t(s,"1")])],{category:"borders"}),B({name:`divide-${e}`,themeKeys:["divideWidth","borderWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,handleCustomProperty:t=>i(`var(${t.replace(/^length:/,"")})`),handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}px`:null,handle:(t,e,r,o)=>i("borderWidth"===o?.themeNamespace?cr(t,o):t),description:`divide-${e} width utility`,category:"borders"})}),B({name:"border",themeKeys:["colors","borderWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(e,r,o,a)=>"borderWidth"===a?.themeNamespace?pr(["border-width"],cr(e,a)):a?.realThemeValue?oe("border-color",e,a):o.arbitrary?Jt(e)?pr(["border-width"],e):[t("border-color",e)]:Xt(e)?pr(["border-width"],`${e}px`):ee(e)?[t("border-color",e)]:null,handleCustomProperty:e=>e.startsWith("length:")?pr(["border-width"],`var(${e.replace("length:","")})`):[t("border-color",`var(${e})`)],description:"border-width utility (number, arbitrary, custom property support)",category:"borders"});var ur=()=>e([a("--baro-outline-style","solid")]),dr=e=>[ur(),t("outline-style","var(--baro-outline-style)"),t("outline-width",e)];[["outline-0","0px"],["outline-1","1px"],["outline-2","2px"],["outline-4","4px"],["outline-8","8px"]].forEach(([t,e])=>{T(t,[ur,["outline-style","var(--baro-outline-style)"],["outline-width",e]],{category:"borders"})}),T("outline-inherit",[["outline-color","inherit"]],{category:"borders"}),T("outline-current",[["outline-color","currentColor"]],{category:"borders"}),T("outline-transparent",[["outline-color","transparent"]],{category:"borders"}),T("outline-none",[["--baro-outline-style","none"],["outline-style","none"]],{category:"borders"}),T("outline-hidden",[["--baro-outline-style","none"],["outline-style","none"],r("media","(forced-colors: active)",[t("outline","2px solid transparent"),t("outline-offset","2px")])],{category:"borders"}),T("outline",[ur,["outline-style","var(--baro-outline-style)"],["outline-width","1px"]],{category:"borders"}),["solid","dashed","dotted","double"].forEach(t=>{T(`outline-${t}`,[["--baro-outline-style",t],["outline-style",t]],{category:"borders"})}),T("outline-offset-0",[["outline-offset","0px"]],{category:"borders"}),T("outline-offset-1",[["outline-offset","1px"]],{category:"borders"}),T("outline-offset-2",[["outline-offset","2px"]],{category:"borders"}),T("outline-offset-4",[["outline-offset","4px"]],{category:"borders"}),T("outline-offset-8",[["outline-offset","8px"]],{category:"borders"}),B({name:"outline-offset",prop:"outline-offset",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`${t}px`:null,description:"outline-offset utility (number, arbitrary, custom property support)",category:"borders"}),B({name:"outline",themeKeys:["colors","outlineWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(e,r,o,a)=>"outlineWidth"===a?.themeNamespace?dr(e):a?.realThemeValue?oe("outline-color",e,a):ee(e)?[t("outline-color",e)]:Xt(e)?dr(`${e}px`):o.arbitrary?Jt(e)?dr(e):[t("outline-color",e)]:null,handleCustomProperty:e=>e.startsWith("color:")?[t("outline-color",e.replace("color:",""))]:e.startsWith("length:")?dr(`var(${e.replace("length:","")})`):[t("outline-color",`var(${e})`)],description:"outline-color utility (theme colors, arbitrary, custom property support)",category:"borders"}),B({name:"outline",prop:"outline-width",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Xt(t)?`${t}px`:null,description:"outline-width utility (number, arbitrary, custom property support)",category:"borders"});var yr=e=>[o(":where(& > :not(:last-child))",[t("border-color",e)])];T("divide-inherit",yr("inherit"),{category:"borders"}),T("divide-current",yr("currentColor"),{category:"borders"}),T("divide-transparent",yr("transparent"),{category:"borders"}),B({name:"divide",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,e,r,a)=>"divide"!==r.prefix?null:a?.realThemeValue?[o(":where(& > :not(:last-child))",oe("border-color",t,a))]:ee(t)?yr(t):null,handleCustomProperty:(t,e,r)=>"divide"===r.prefix?yr(`var(${t})`):[],description:"divide-color utility (theme, alpha, arbitrary, custom property)",category:"borders"});var hr="var(--baro-rotate-x,) var(--baro-rotate-y,) var(--baro-rotate-z,) var(--baro-skew-x,) var(--baro-skew-y,)",gr=(e,r)=>[t(`--baro-rotate-${e}`,r),t("transform",hr)],mr=(e,r)=>[t(`--baro-skew-${e}`,r),t("transform",hr)],fr=()=>e([a("--baro-scale-x","1"),a("--baro-scale-y","1"),a("--baro-scale-z","1")]),br=(e,r)=>[fr(),t(`--baro-scale-${e}`,r),t("scale","z"===e?"var(--baro-scale-x) var(--baro-scale-y) var(--baro-scale-z)":"var(--baro-scale-x) var(--baro-scale-y)")];T("transform-none",[["transform","none"]],{category:"transform"}),T("transform-gpu",[["transform",`translateZ(0) ${hr}`]],{category:"transform"}),T("transform-cpu",[["transform",hr]]),T("transform-3d",[["transform-style","preserve-3d"]],{category:"transform"}),T("transform-flat",[["transform-style","flat"]],{category:"transform"}),B({name:"transform",prop:"transform",supportsCustomProperty:!0,handleCustomProperty:e=>[t("transform",`var(${e})`)],description:"transform utility for custom property (transform-(--my-transform))",category:"transform"}),B({name:"transform",prop:"transform",supportsArbitrary:!0,handle:e=>[t("transform",e)],description:"transform utility for arbitrary value (transform-[...])",category:"transform"}),T("backface-hidden",[["backface-visibility","hidden"]],{category:"transform"}),T("backface-visible",[["backface-visibility","visible"]],{category:"transform"}),T("perspective-dramatic",[["perspective","var(--perspective-dramatic)"]],{category:"transform"}),T("perspective-near",[["perspective","var(--perspective-near)"]],{category:"transform"}),T("perspective-normal",[["perspective","var(--perspective-normal)"]],{category:"transform"}),T("perspective-midrange",[["perspective","var(--perspective-midrange)"]],{category:"transform"}),T("perspective-distant",[["perspective","var(--perspective-distant)"]],{category:"transform"}),T("perspective-none",[["perspective","none"]],{category:"transform"}),T("perspective-origin-center",[["perspective-origin","center"]],{category:"transform"}),T("perspective-origin-top",[["perspective-origin","top"]],{category:"transform"}),T("perspective-origin-top-right",[["perspective-origin","top right"]],{category:"transform"}),T("perspective-origin-right",[["perspective-origin","right"]],{category:"transform"}),T("perspective-origin-bottom-right",[["perspective-origin","bottom right"]],{category:"transform"}),T("perspective-origin-bottom",[["perspective-origin","bottom"]],{category:"transform"}),T("perspective-origin-bottom-left",[["perspective-origin","bottom left"]],{category:"transform"}),T("perspective-origin-left",[["perspective-origin","left"]],{category:"transform"}),T("perspective-origin-top-left",[["perspective-origin","top left"]],{category:"transform"}),B({name:"perspective-origin",prop:"perspective-origin",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>[t("perspective-origin",e)],handleCustomProperty:e=>[t("perspective-origin",`var(${e})`)],description:"perspective-origin utility (named, arbitrary, custom property supported)",category:"transform"}),B({name:"perspective",prop:"perspective",supportsArbitrary:!0,supportsCustomProperty:!0,handle:e=>[t("perspective",e)],handleCustomProperty:e=>[t("perspective",`var(${e})`)],description:"perspective utility (named, arbitrary, custom property supported)",category:"transform"}),T("rotate-none",[["rotate","none"]],{category:"transform"}),B({name:"rotate-x",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Xt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return gr("x",`rotateX(${o}${e})`)}return gr("x",`rotateX(${t})`)},handleCustomProperty:t=>gr("x",`rotateX(var(${t}))`),description:"rotate-x utility (named, arbitrary, custom property supported)",category:"transform"}),B({name:"rotate-y",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Xt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return gr("y",`rotateY(${o}${e})`)}return gr("y",`rotateY(${t})`)},handleCustomProperty:t=>gr("y",`rotateY(var(${t}))`),description:"rotate-y utility (named, arbitrary, custom property supported)",category:"transform"}),B({name:"rotate-z",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Xt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return gr("z",`rotateZ(${o}${e})`)}return gr("z",`rotateZ(${t})`)},handleCustomProperty:t=>gr("z",`rotateZ(var(${t}))`),description:"rotate-z utility (named, arbitrary, custom property supported)",category:"transform"}),B({name:"rotate",prop:"rotate",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(e,r,{negative:o})=>{if(Xt(e)||o){const r=`${Math.abs(Number(e))}deg`;return o||String(e).startsWith("-")?[t("rotate",`calc(${r} * -1)`)]:[t("rotate",r)]}return[t("rotate",e)]},handleCustomProperty:e=>[t("rotate",`var(${e})`)],description:"rotate utility (named, arbitrary, custom property supported)",category:"transform"}),T("scale-none",[["scale","none"]],{category:"transform"}),T("scale-3d",[fr,["scale","var(--baro-scale-x) var(--baro-scale-y) var(--baro-scale-z)"]],{category:"transform"}),B({name:"scale-x",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return br("x",t);if(Xt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return br("x",`calc(${e} * ${o}1)`)}return br("x",t)},handleCustomProperty:t=>br("x",`var(${t})`),description:"scale-x utility (named, arbitrary, custom property supported)",category:"transform"}),B({name:"scale-y",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return br("y",t);if(Xt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return br("y",`calc(${e} * ${o}1)`)}return br("y",t)},handleCustomProperty:t=>br("y",`var(${t})`),description:"scale-y utility (named, arbitrary, custom property supported)",category:"transform"}),B({name:"scale-z",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return br("z",t);if(Xt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return br("z",`calc(${e} * ${o}1)`)}return br("z",t)},handleCustomProperty:t=>br("z",`var(${t})`),description:"scale-z utility (named, arbitrary, custom property supported)",category:"transform"}),B({name:"scale",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(e,r,{negative:o,arbitrary:a})=>{if(a)return[t("scale",`${e}`)];if(Xt(e)||o){const r=`${Math.abs(Number(e))}%`;return o||String(e).startsWith("-")?[t("scale",`calc(${r} * -1) calc(${r} * -1)`)]:[t("scale",`${r} ${r}`)]}return[t("scale",e)]},handleCustomProperty:e=>[t("scale",`var(${e}) var(${e})`)],description:"scale utility (named, arbitrary, custom property supported)",category:"transform"}),B({name:"skew-x",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Xt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return mr("x",`skewX(${o}${e})`)}return mr("x",`skewX(${t})`)},handleCustomProperty:t=>mr("x",`skewX(var(${t}))`),description:"skew-x utility (named, arbitrary, custom property supported)",category:"transform"}),B({name:"skew-y",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Xt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return mr("y",`skewY(${o}${e})`)}return mr("y",`skewY(${t})`)},handleCustomProperty:t=>mr("y",`skewY(var(${t}))`),description:"skew-y utility (named, arbitrary, custom property supported)",category:"transform"}),B({name:"skew",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(e,r,{negative:o})=>{if(Xt(e)||o){const r=`${Math.abs(Number(e))}deg`,a=o||String(e).startsWith("-")?"-":"";return[t("--baro-skew-x",`skewX(${a}${r})`),t("--baro-skew-y",`skewY(${a}${r})`),t("transform",hr)]}return[t("--baro-skew-x",`skewX(${e})`),t("--baro-skew-y",`skewY(${e})`),t("transform",hr)]},handleCustomProperty:e=>[t("--baro-skew-x",`skewX(var(${e}))`),t("--baro-skew-y",`skewY(var(${e}))`),t("transform",hr)],description:"skew utility (named, arbitrary, custom property supported)",category:"transform"}),T("origin-center",[["transform-origin","center"]],{category:"transform"}),T("origin-top",[["transform-origin","top"]],{category:"transform"}),T("origin-top-right",[["transform-origin","top right"]],{category:"transform"}),T("origin-right",[["transform-origin","right"]],{category:"transform"}),T("origin-bottom-right",[["transform-origin","bottom right"]],{category:"transform"}),T("origin-bottom",[["transform-origin","bottom"]],{category:"transform"}),T("origin-bottom-left",[["transform-origin","bottom left"]],{category:"transform"}),T("origin-left",[["transform-origin","left"]],{category:"transform"}),T("origin-top-left",[["transform-origin","top left"]],{category:"transform"}),B({name:"origin",prop:"transform-origin",supportsCustomProperty:!0,supportsArbitrary:!0,description:"transform-origin utility for custom property (origin-(--my-transform-origin))",category:"transform"});var vr=()=>e([a("--baro-translate-x","0"),a("--baro-translate-y","0"),a("--baro-translate-z","0")]),xr=(e,r)=>[vr(),t(`--baro-translate-${e}`,r),t("translate","z"===e?"var(--baro-translate-x) var(--baro-translate-y) var(--baro-translate-z)":"var(--baro-translate-x) var(--baro-translate-y)")],kr=(t,e)=>[vr,[`--baro-translate-${t}`,e],["translate","z"===t?"var(--baro-translate-x) var(--baro-translate-y) var(--baro-translate-z)":"var(--baro-translate-x) var(--baro-translate-y)"]];T("translate-none",[["translate","none"]],{category:"transform"}),T("translate-px",[["translate","1px 1px"]],{category:"transform"}),T("-translate-px",[["translate","-1px -1px"]],{category:"transform"}),T("translate-full",[vr,["--baro-translate-x","100%"],["--baro-translate-y","100%"],["translate","var(--baro-translate-x) var(--baro-translate-y)"]],{category:"transform"}),T("-translate-full",[vr,["--baro-translate-x","-100%"],["--baro-translate-y","-100%"],["translate","var(--baro-translate-x) var(--baro-translate-y)"]],{category:"transform"}),T("translate-x-px",kr("x","1px"),{category:"transform"}),T("-translate-x-px",kr("x","-1px"),{category:"transform"}),T("translate-x-full",kr("x","100%"),{category:"transform"}),T("-translate-x-full",kr("x","-100%"),{category:"transform"}),T("translate-y-px",kr("y","1px"),{category:"transform"}),T("-translate-y-px",kr("y","-1px"),{category:"transform"}),T("translate-y-full",kr("y","100%"),{category:"transform"}),T("-translate-y-full",kr("y","-100%"),{category:"transform"}),T("translate-z-px",kr("z","1px"),{category:"transform"}),T("-translate-z-px",kr("z","-1px"),{category:"transform"}),B({name:"translate-x",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&Qt(t)){return xr("x",`calc(${t} * 100%)`)}if(Xt(t)||r){return xr("x",`calc(var(--spacing) * ${t})`)}return xr("x",t)},handleCustomProperty:t=>xr("x",`var(${t})`),description:"translate-x utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),B({name:"translate-y",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&Qt(t)){return xr("y",`calc(${t} * 100%)`)}if(Xt(t)||r){return xr("y",`calc(var(--spacing) * ${t})`)}return xr("y",t)},handleCustomProperty:t=>xr("y",`var(${t})`),description:"translate-y utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),B({name:"translate-z",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&Qt(t)){return xr("z",`calc(${t} * 100%)`)}if(Xt(t)||r){return xr("z",`calc(var(--spacing) * ${t})`)}return xr("z",t)},handleCustomProperty:t=>xr("z",`var(${t})`),description:"translate-z utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),B({name:"translate",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,{negative:o})=>{if(e.includes("/")&&Qt(e)){const r=`calc(${e} * 100%)`;return[t("translate",`${r} ${r}`)]}if(Xt(e)||o){const r=`calc(var(--spacing) * ${e})`;return[t("translate",`${r} ${r}`)]}return[t("translate",`${e} ${e}`)]},handleCustomProperty:e=>[t("translate",`var(${e}) var(${e})`)],description:"translate utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"});var wr=/^(length|number|percentage):(.+)$/,$r=/^(\d*\.)?\d+(px|em|rem|vh|vw|vmin|vmax|%|in|cm|mm|pt|pc|ex|ch|q|lh|rlh|svh|lvh|dvh|cqw|cqh)$/i;T("fill-inherit",[["fill","inherit"]],{category:"svg"}),T("fill-current",[["fill","currentColor"]],{category:"svg"}),T("fill-transparent",[["fill","transparent"]],{category:"svg"}),T("fill-black",[["fill","#000"]],{category:"svg"}),T("fill-white",[["fill","#fff"]],{category:"svg"}),B({name:"fill",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o,a)=>a?.realThemeValue?[t("fill",`var(--color-${a.realThemeValue})`)]:[t("fill",e)],description:"fill utility (static, theme, arbitrary, custom property supported)",category:"svg"}),T("stroke-inherit",[["stroke","inherit"]],{category:"svg"}),T("stroke-current",[["stroke","currentColor"]],{category:"svg"}),T("stroke-transparent",[["stroke","transparent"]],{category:"svg"}),T("stroke-black",[["stroke","#000"]],{category:"svg"}),T("stroke-white",[["stroke","#fff"]],{category:"svg"}),B({name:"stroke",themeKeys:["colors","strokeWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(e,r,o,a)=>{if(Xt(e)||"strokeWidth"===a?.themeNamespace)return[t("stroke-width",e)];if(o.arbitrary){const r=wr.exec(e);if(r)return[t("stroke-width",r[2])];if(!ee(e)&&($r.test(e)||/^calc\(/.test(e)))return[t("stroke-width",e)]}return a?.realThemeValue?[t("stroke",`var(--color-${a.realThemeValue})`)]:[t("stroke",e)]},handleCustomProperty:e=>{const r=wr.exec(e);return r?[t("stroke-width",`var(${r[2]})`)]:[t("stroke",`var(${e})`)]},description:"stroke utility (static, theme, arbitrary, custom property supported)",category:"svg"}),T("forced-color-adjust-auto",[["forced-color-adjust","auto"]],{category:"accessibility"}),T("forced-color-adjust-none",[["forced-color-adjust","none"]],{category:"accessibility"}),C("hover",["&:hover"],{order:50,source:"pseudo",wrap:()=>[r("media","(hover: hover)",[])]}),C("focus",["&:focus"],{order:50,source:"pseudo"}),C("active",["&:active"],{order:50,source:"pseudo"}),C("visited",["&:visited"],{order:50,source:"pseudo"}),C("focus-visible",["&:focus-visible"],{order:50,source:"pseudo"}),C("focus-within",["&:focus-within"],{order:50,source:"pseudo"}),C("disabled",["&:disabled"],{source:"pseudo"}),C("checked",["&:checked"],{source:"pseudo"}),C("required",["&:required"],{source:"pseudo"}),C("invalid",["&:invalid"],{source:"pseudo"}),C("enabled",["&:enabled"],{source:"pseudo"}),C("indeterminate",["&:indeterminate"],{source:"pseudo"}),C("default",["&:default"],{source:"pseudo"}),C("optional",["&:optional"],{source:"pseudo"}),C("valid",["&:valid"],{source:"pseudo"}),C("user-valid",["&:user-valid"],{source:"pseudo"}),C("user-invalid",["&:user-invalid"],{source:"pseudo"}),C("in-range",["&:in-range"],{source:"pseudo"}),C("out-of-range",["&:out-of-range"],{source:"pseudo"}),C("placeholder-shown",["&:placeholder-shown"],{source:"pseudo"}),C("autofill",["&:autofill"],{source:"pseudo"}),C("read-only",["&:read-only"],{source:"pseudo"}),C("first",["&:first-child"],{source:"pseudo"}),C("last",["&:last-child"],{source:"pseudo"}),C("only",["&:only-child"],{source:"pseudo"}),C("odd",["&:nth-child(odd)"],{source:"pseudo"}),C("even",["&:nth-child(even)"],{source:"pseudo"}),C("first-of-type",["&:first-of-type"],{source:"pseudo"}),C("last-of-type",["&:last-of-type"],{source:"pseudo"}),C("only-of-type",["&:only-of-type"],{source:"pseudo"}),C("empty",["&:empty"],{source:"pseudo"}),C("prefers-contrast-more",["&"],{order:5,wrap:()=>[r("media","(prefers-contrast: more)",[],"media")],source:"media"}),C("prefers-contrast-less",["&"],{order:5,wrap:()=>[r("media","(prefers-contrast: less)",[],"media")],source:"media"}),C("contrast-more",["&"],{order:5,wrap:()=>[r("media","(prefers-contrast: more)",[],"media")],source:"media"}),C("contrast-less",["&"],{order:5,wrap:()=>[r("media","(prefers-contrast: less)",[],"media")],source:"media"}),C("noscript",["&"],{order:5,wrap:()=>[r("media","(scripting: none)",[],"media")],source:"media"}),C("forced-colors",["&"],{order:5,wrap:()=>[r("media","(forced-colors: active)",[],"media")],source:"media"}),C("pointer-coarse",["&"],{order:5,wrap:()=>[r("media","(pointer: coarse)",[],"media")],source:"media"}),C("pointer-fine",["&"],{order:5,wrap:()=>[r("media","(pointer: fine)",[],"media")],source:"media"}),C("any-pointer-coarse",["&"],{order:5,wrap:()=>[r("media","(any-pointer: coarse)",[],"media")],source:"media"}),C("any-pointer-fine",["&"],{order:5,wrap:()=>[r("media","(any-pointer: fine)",[],"media")],source:"media"}),C("motion-safe",["&"],{order:5,wrap:()=>[r("media","(prefers-reduced-motion: no-preference)",[],"media")],source:"media"}),C("motion-reduce",["&"],{order:5,wrap:()=>[r("media","(prefers-reduced-motion: reduce)",[],"media")],source:"media"}),C("print",["&"],{order:5,wrap:()=>[r("media","print",[],"media")],source:"media"}),C("portrait",["&"],{order:5,wrap:()=>[r("media","(orientation: portrait)",[],"media")],source:"media"}),C("landscape",["&"],{order:5,wrap:()=>[r("media","(orientation: landscape)",[],"media")],source:"media"}),C("rtl",["&[dir=rtl]"],{order:20,source:"attribute"}),C("ltr",["&[dir=ltr]"],{order:20,source:"attribute"}),C("inert",["&[inert]"],{order:40,source:"attribute"}),C("open",["&:is([open], :popover-open, :open)"],{order:40,source:"attribute"});var Cr=r=>[e([a("--baro-content",'""')]),...r,...r.some(t=>"decl"===t.type&&"content"===t.prop)?[]:[t("content","var(--baro-content)")]];function Pr(t,e,r,o=!1){const a=`${o?"not ":""}(${"min"===t?"width >=":"width <"} ${e})`;return r?`${r} ${a}`:a}function zr(t){return{sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)"}[t]||`(min-width: ${t})`}function Ar(t){return t.replace(/\\_|_/g,t=>"_"===t?" ":"_")}function Sr(t){const e=/^(data|aria)-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(t);if(e){const[,t,r,o]=e;return void 0===o?`[${t}-${r}]`:`[${t}-${r}=${/^(["']).*\1$/.test(o)?o:`"${Ar(o)}"`}]`}const r=/^data-([a-zA-Z0-9_-]+)$/.exec(t);if(r)return`[data-${r[1]}]`;const o=/^aria-([a-zA-Z0-9_-]+)$/.exec(t);return o?`[aria-${o[1]}="true"]`:void 0}function jr(t){const e=Ar(t);return/^[>+~]/.test(e.trim())||!Rr(e)?e:`*:is(${e})`}function Rr(t){let e=0;for(let r=0;r<t.length;r++){const o=t[r];if("\\"===o)r++;else if("("===o||"["===o)e++;else if(")"===o||"]"===o)e--;else if(","===o&&0===e)return!0}return!1}function Er(t,e){const r=A(e).find(r=>r.name===t&&r.match(t,e));if(!r?.modifySelector)return null;const o=r.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e}),a=Array.isArray(o)?o:o&&"object"==typeof o?[o]:"string"==typeof o?[{selector:o}]:[];if(1!==a.length)return null;const n=/^&(:(?!:)[a-zA-Z-]+(?:\(.*\))?)$/.exec(a[0].selector);return n?n[1]:null}function Tr(t,e){const r=Sr(t);if(r)return r;const o=Er(t,e);if(o||!t.startsWith("has-"))return o;const a=A(e).find(r=>r.match(t,e));if(!a?.modifySelector||a.wrap||a.astHandler)return null;const n=a.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e}),s=Array.isArray(n)?n:n&&"object"==typeof n?[n]:"string"==typeof n?[{selector:n}]:[];if(1!==s.length)return null;const i=/^&(:has\(.+\))$/.exec(s[0].selector);return i&&!i[1].includes("&")?i[1]:null}function Nr(t,e){if(t.startsWith("not-"))return null;const r=A(e).find(r=>r.match(t,e));if(!r?.wrap||r.astHandler)return null;if(r.modifySelector){const o=r.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e});if("&"!==("string"==typeof o?o:Array.isArray(o)?1===o.length?o[0].selector:null:o?.selector))return null}const o=r.wrap({type:t},e);if(1!==o.length)return null;const a=o[0];if("at-rule"!==a.type||"media"!==a.name&&"supports"!==a.name||a.nodes?.length)return null;const n=(a.params??"").trim();return!n||/^not\b|,|\s(and|or)\s/i.test(n)?null:{...a,params:`not ${n}`,nodes:[]}}function Wr(t){const e=/^@(media|supports|container)(?:\s+|(?=\()|$)([\s\S]*)$/.exec(Ar(t).trim());if(!e)return null;const o=e[1];let a=(e[2]??"").trim(),n="";if("container"===o){const t=/^(?!not\b)([a-zA-Z_-][a-zA-Z0-9_-]*)\s+([\s\S]*)$/.exec(a);t&&(n=`${t[1]} `,a=t[2].trim())}if(!a||Rr(a))return null;const s=/^not\s+/i.test(a)?a.replace(/^not\s+/i,""):`not ${a}`;return s?r(o,`${n}${s}`,[],o):null}C("before",["&::before"],{source:"pseudo",astHandler:Cr}),C("after",["&::after"],{source:"pseudo",astHandler:Cr}),C("placeholder",["&::placeholder"],{source:"pseudo"}),C("selection",["& *::selection","&::selection"],{source:"pseudo"}),C("file",["&::file-selector-button"],{source:"pseudo"}),C("marker",["& *::marker","&::marker","& *::-webkit-details-marker","&::-webkit-details-marker"],{source:"pseudo"}),C("details-content",["&::details-content"],{source:"pseudo"}),C("first-line",["&::first-line"],{source:"pseudo"}),C("first-letter",["&::first-letter"],{source:"pseudo"}),C("backdrop",["&::backdrop"],{source:"pseudo"}),C("starting",["&"],{wrap:()=>[r("starting-style","",[],"starting")],source:"starting"}),P((t,e)=>{const r=e.theme("breakpoints")||e.config("theme.breakpoints")||{},o=Object.keys(r);if(o.includes(t))return!0;if(t.startsWith("max-")){const e=t.replace("max-","");if(o.includes(e))return!0;if(/^\[.*\]$/.test(e))return!0}return!!/^min-\[.*\]$/.test(t)||!!/^max-\[.*\]$/.test(t)},void 0,(t,e)=>{const o=t.type,a=e.theme("breakpoints")||e.config("theme.breakpoints")||{};if(Object.keys(a).includes(o)){let t=e.theme(`breakpoints.${o}`)||zr(o);return/^\d*\.?\d+(px|em|rem)?$/.test(t)&&(t=`(min-width: ${t})`),[r("media",t,[],"responsive")]}if(o.startsWith("max-")){const t=o.replace("max-","");if(Object.keys(a).includes(t)){let o=e.theme(`breakpoints.${t}`)||zr(t);if(o.includes("min-width:")){const t=o.match(/min-width:\s*([^)]+)/)?.[1];t&&(o=`(width < ${t})`)}else if(o.includes("width >=")){const t=o.match(/width >=\s*([^)]+)/)?.[1];t&&(o=`(width < ${t})`)}else/^\d*\.?\d+(px|em|rem)?$/.test(o)&&(o=`(width < ${o})`);return[r("media",o,[],"responsive")]}if(/^\[(.*)\]$/.test(t)){const e=t.match(/^\[(.*)\]$/)?.[1];if(e)return[r("media",`(width < ${e})`,[],"responsive")]}}if(/^min-\[(.*)\]$/.test(o)){const t=o.match(/^min-\[(.*)\]$/)?.[1];if(t)return[r("media",`(width >= ${t})`,[],"responsive")]}if(/^max-\[(.*)\]$/.test(o)){const t=o.match(/^max-\[(.*)\]$/)?.[1];if(t)return[r("media",`(width < ${t})`,[],"responsive")]}return[]});P(t=>"dark"===t,void 0,(t,e)=>{const a=(t=>{const e=t.config("darkMode")||"media",r=t.config("darkModeSelector"),o=[];if("media"===e){if(o.push({type:"media",value:"(prefers-color-scheme: dark)"}),r){const t=Array.isArray(r)?r.join(", "):r;o.push({type:"selector",value:t})}return o}if("class"===e){if(r){const t=Array.isArray(r)?r.join(", "):r;return o.push({type:"selector",value:t}),o}return o.push({type:"selector",value:".dark"}),o}return o.push({type:"selector",value:".dark"}),o})(e),n=[];return a.forEach(t=>{if("media"===t.type){const e=r("media",t.value,[],"dark");n.push(e)}else{const e=o(t.value,[],"dark");n.push(e)}}),n});var Vr=/^(not-)?@(?:(min|max)-)?(\[[^\]]+\]|[a-zA-Z0-9.]+)(?:\/([a-zA-Z0-9_-]+))?$/;P(t=>Vr.test(t)&&!/^(?:not-)?@container(?:\/|$)/.test(t),void 0,(t,e)=>{const r=Vr.exec(t.type);if(!r)return[];const[,o,a,n,s]=r,i=n.startsWith("[")?n.slice(1,-1).replace(/_/g," "):e.theme("container."+n);return i?[(l=Pr("max"===a?"max":"min",i,s,!!o),c=[],{type:"at-rule",name:"container",params:l,nodes:Array.isArray(c)?c:[c],source:"container"})]:[];var l,c});var Br=t=>/^[\s_]*@/.test(t);function Mr(t,e){const r=Sr(t);if(r)return{compound:r};if(/^(has|in|not|group|peer)-|[^a-z0-9-]/.test(t))return;const o=A(e).find(r=>r.match(t,e));if(!o?.modifySelector||o.astHandler)return;const a=o.modifySelector({selector:"&",fullClassName:"",mod:{type:t},context:e});if(null==a)return;const n="string"==typeof a?[{selector:a}]:Array.isArray(a)?a:[a];if(1!==n.length)return;const s=n[0].selector;return!/^&[:[]/.test(s)||s.slice(1).includes("&")||/[\s,>+~]/.test(s.replace(/\([^()]*\)/g,""))?void 0:{compound:s.slice(1),inner:o}}function Or(t,e){const r=/^(has|in)-(.+)$/.exec(t);if(!r)return;const[,o,a]=r;if("in"===o&&/^\[.+\]$/.test(a)){if(Br(a.slice(1)))return;const t=Ar(a.slice(1,-1));return{kind:o,compound:t.startsWith("&")?t.slice(1):`:is(${t})`}}if("has"===o&&(a.startsWith("[")||/^(data|aria)-/.test(a)))return;const n=Mr(a,e);return n&&{kind:o,...n}}P(t=>/^has-\[.*\]$/.test(t)&&!Br(t.slice(5)),({selector:t,mod:e})=>{const r=/^has-\[(.+)\]$/.exec(e.type);return r?{selector:`&:has(${jr(r[1])})`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^has-(data|aria)-/.test(t)&&!!Sr(t.slice(4)),({mod:t})=>({selector:`&:has(*${Sr(t.type.slice(4))})`,flatten:!1,wrappingType:"rule",source:"attribute"}),void 0);var Fr=({selector:t,mod:e,context:r})=>{const o=Or(e.type,r);return o?{selector:"has"===o.kind?`&:has(*${o.compound})`:`:where(*${o.compound}) &`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t}};function Kr(t,e){const r=/^(group|peer)-has-(.+?)(?:\/([a-zA-Z0-9_-]+))?$/.exec(t);if(!r)return;const o=r[1],a=r[2],n=r[3]?`.${o}\\/${r[3]}`:`.${o}`;if(/^\[.+\]$/.test(a)){if(Br(a.slice(1)))return;const t=Ar(a.slice(1,-1));return{kind:o,base:n,v:a,arg:/^[>+~]/.test(t.trim())?t:`*:is(${t})`}}const s=Mr(a,e);return s&&{kind:o,base:n,v:a,arg:`*${s.compound}`,inner:s.inner}}P((t,e)=>!!Or(t,e)?.inner?.wrap,Fr,(t,e)=>Or(t.type,e).inner.wrap({...t,type:t.type.replace(/^(has|in)-/,"")},e)),P((t,e)=>{const r=Or(t,e);return!!r&&!r.inner?.wrap},Fr);var Dr=({selector:t,mod:e,context:r})=>{const o=Kr(e.type,r);if(!o)return{selector:t};const a="group"===o.kind?" *":" ~ *";return{selector:`&:is(:where(${o.base}):has(${o.arg})${a})`,wrappingType:"rule",source:o.kind}};function Lr(t){if(/^[\w-]*\s*\(/.test(t))return t;let e=t.includes(":")?t:`${t}: var(--tw)`;return"("===e[0]&&")"===e[e.length-1]||(e=`(${e})`),e}P((t,e)=>!!Kr(t,e)?.inner?.wrap,Dr,(t,e)=>{const r=Kr(t.type,e);return r.inner.wrap({...t,type:r.v},e)}),P((t,e)=>{const r=Kr(t,e);return!!r&&!r.inner?.wrap},Dr),P((t,e)=>/^not-(?!@)/.test(t)&&!!Nr(t.slice(4),e),()=>"&",(t,e)=>{const r=Nr(t.type.slice(4),e);return r?[r]:[]}),P(t=>/^not-\[@.*\]$/.test(t)&&!!Wr(t.slice(5,-1)),()=>"&",t=>{const e=Wr(t.type.slice(5,-1));return e?[e]:[]}),P(t=>/^not-\[(?!@).*\]$/.test(t),({selector:t,mod:e})=>{const r=/^not-\[(.+)\]$/.exec(e.type);return r?/^[a-zA-Z0-9_-]+(=.+)?$/.test(r[1])?{selector:`&:not([${r[1]}])`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:`&:not(${jr(r[1])})`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t,source:"attribute"}}),P(t=>/^not-/.test(t)&&!t.startsWith("not-@")&&!t.startsWith("not-[@"),({selector:t,mod:e,context:r})=>{const o=/^not-(.+)$/.exec(e.type),a=o?Tr(o[1],r):null;return o&&!a?null:{selector:a?`&:not(${a})`:t,flatten:!1,wrappingType:"rule",source:"attribute"}}),P(t=>"*"===t,()=>({selector:":is(& > *)",wrappingType:"rule",source:"universal"}),void 0),P(t=>"**"===t,()=>({selector:":is(& *)",wrappingType:"rule",source:"universal"}),void 0),P(t=>/^\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^\[(.+)\]$/.exec(e.type);if(!r)return{selector:t};const o=Ar(r[1]).trim();return/^[a-zA-Z0-9_-]+(=.+)?$/.test(o)?{selector:`&[${o}]`,wrappingType:"rule",source:"attribute"}:o.startsWith("&")?{selector:`${o}`,wrappingType:"rule",source:"pseudo"}:{selector:`&:is(${o})`,wrappingType:"rule",source:"base"}},void 0),P(t=>/^aria-/.test(t),({selector:t,mod:e})=>{const r=/^aria-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(e.type);if(r)return{selector:`&[aria-${r[1]}="${r[2]??"true"}"]`,source:"aria"};const o=/^aria-([a-zA-Z0-9_]+)$/.exec(e.type);return o?{selector:`&[aria-${o[1]}="true"]`,source:"aria"}:{selector:t,source:"aria"}},void 0),P(t=>t.startsWith("not-")&&!t.startsWith("not-@")&&!t.startsWith("not-[@"),({selector:t,mod:e,context:r})=>{const o=e.type.replace("not-","");if(o.startsWith("[")){const t=o.slice(1,-1);return/^[a-zA-Z0-9_-]+(=.+)?$/.test(t)?{selector:`&:not([${t}])`,source:"attribute"}:{selector:`&:not(${jr(t)})`,source:"attribute"}}{const t=Tr(o,r);return t?{selector:`&:not(${t})`,source:"attribute"}:null}},void 0),P(t=>/^data-/.test(t),({selector:t,mod:e})=>{const r=/^data-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(e.type);if(r)return{selector:`&[data-${r[1]}="${r[2]??"true"}"]`,source:"data"};const o=/^data-([a-zA-Z0-9_]+)$/.exec(e.type);return o?{selector:`&[data-${o[1]}]`,source:"data"}:{selector:t,source:"attribute"}},void 0),P(t=>/^nth-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-(\d+)$/)?.[1];return r?{selector:`&:nth-child(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^nth-last-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-last-(\d+)$/)?.[1];return r?{selector:`&:nth-last-child(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^nth-of-type-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-of-type-(\d+)$/)?.[1];return r?{selector:`&:nth-of-type(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^nth-last-of-type-(\d+)$/.test(t),({selector:t,mod:e})=>{const r=e.type.match(/^nth-last-of-type-(\d+)$/)?.[1];return r?{selector:`&:nth-last-of-type(${r})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^is-\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^is-\[(.+)\]$/.exec(e.type);return r?{selector:`&:is(${r[1]})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^where-\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^where-\[(.+)\]$/.exec(e.type);return r?{selector:`&:where(${r[1]})`,source:"attribute"}:{selector:t,source:"attribute"}},void 0),P(t=>/^supports-(?:\[.+\]|[a-zA-Z-][a-zA-Z0-9-]*)$/.test(t),void 0,t=>{const e=/^supports-(?:\[(.+)\]|([a-zA-Z-][a-zA-Z0-9-]*))$/.exec(t.type);return e?[r("supports",Lr(void 0!==e[1]?Ar(e[1]):e[2]),[],"supports")]:[]}),P(t=>/^layer-\[.*\]$/.test(t),void 0,t=>{const e=/^layer-\[(.+)\]$/.exec(t.type);return e?[r("layer",e[1],[])]:[]}),P(t=>/^scope-\[.*\]$/.test(t),void 0,t=>{const e=/^scope-\[(.+)\]$/.exec(t.type);return e?[r("scope",e[1],[])]:[]});var Zr=t=>/^(group|peer)-has-\[/.test(t)&&Br(t.slice(t.indexOf("[")+1));function Ir(t,e){const r=/^(.+)\/([a-zA-Z0-9_-]+)$/.exec(e);return r?[r[1],`.${t}\\/${r[2]}`]:[e,`.${t}`]}function _r(t,e){const r=t.slice(4);if(r.startsWith("[@"))return null;if(r.startsWith("[")&&r.endsWith("]"))return`:not(*:is(${Ar(r.slice(1,-1))}))`;const o=Tr(r,e);return o?`:not(${o})`:null}P(t=>/^(group|peer)-hover(\/[a-zA-Z0-9_-]+)?$/.test(t),({mod:t})=>{const e=t.type.startsWith("group")?"group":"peer",[,r]=Ir(e,t.type.slice(e.length+1));return{selector:`&:is(:where(${r}):hover${"group"===e?" *":" ~ *"})`,wrappingType:"rule",source:e}},()=>[r("media","(hover: hover)",[])]),P(t=>/^group-(.+)$/.test(t)&&!Zr(t),({selector:t,mod:e,context:r})=>{const o=/^group-(.+)$/.exec(e.type),[a,n]=Ir("group",o?.[1]??""),s=o?[o[0],a]:null,i=`:where(${n})`,l=s?Sr(s[1]):void 0;if(l)return{selector:`&:is(${i}${l} *)`,wrappingType:"rule",source:"group"};if(s?.[1].startsWith("[")&&s?.[1].endsWith("]"))return{selector:`&:is(${i}:is(${s?.[1].slice(1,-1).replace(/_/g,"")}) *)`,wrappingType:"rule",source:"group"};if(s?.[1]?.startsWith("not-")){const t=_r(s[1],r);return t?{selector:`&:is(${i}${t} *)`,wrappingType:"rule",source:"group"}:null}if(s?.[1]?.startsWith("has-")){const t=/^has-\[([a-zA-Z0-9_-]+)\]$/.exec(s?.[1]);return t?{selector:`&:is(${i}:has(:is(${t[1]})) *)`,source:"group"}:{selector:`&:is(${i}:has(${jr(s[1].slice(5,-1))}) *)`,source:"group"}}if(s?.[1]?.startsWith("aria-")){const t=/^aria-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(s?.[1]);if(t){const e=t[1];return t[2]?{selector:`&:is(${i}[aria-${e}="${t[2]}"] *)`,source:"group"}:{selector:`&:is(${i}[aria-${e}] *)`,source:"group"}}}const c=s?Er(s[1],r):null;return s&&!c?null:s?{selector:`&:is(${i}${c} *)`,wrappingType:"rule",source:"group"}:{selector:t,source:"group"}},void 0),P(t=>/^peer-(.+)$/.test(t)&&!Zr(t),({selector:t,mod:e,context:r})=>{const o=/^peer-(.+)$/.exec(e.type),[a,n]=Ir("peer",o?.[1]??""),s=o?[o[0],a]:null,i=`:where(${n})`,l=s?Sr(s[1]):void 0;if(l)return{selector:`&:is(${i}${l} ~ *)`,wrappingType:"rule",source:"peer"};if(s?.[1].startsWith("[")&&s?.[1].endsWith("]"))return{selector:`&:is(${i}:is(${s?.[1].slice(1,-1).replace(/_/g,"")})~*)`,wrappingType:"rule",source:"peer"};const c=s?.[1];if(c?.startsWith("has-[")&&c.endsWith("]"))return{selector:`&:is(${i}:has(${jr(c.slice(5,-1))}) ~ *)`,source:"peer"};if(c?.startsWith("has-")){const t=Er(c.slice(4),r);return t?{selector:`&:is(${i}:has(${t})~*)`,source:"peer"}:null}if(c?.startsWith("not-")){const t=_r(c,r);return t?{selector:`&:is(${i}${t} ~ *)`,source:"peer"}:null}if(c?.startsWith("aria-")){let t=/^aria-([a-zA-Z0-9_]+)$/.exec(c);if(t)return{selector:`&:is(${i}[aria-${t[1]}]~*)`,source:"peer"};if(t=/^aria-\[([a-zA-Z0-9_-]+)(?:=([^\]]+))?\]$/.exec(c),t){const e=t[1],r=t[2];return t[2]?{selector:`&:is(${i}[aria-${e}="${r}"]~*)`,source:"peer"}:{selector:`&:is(${i}[aria-${e}]~*)`,source:"peer"}}}const p=s?Er(c,r):null;return s&&!p?null:s?{selector:`&:is(${i}${p}~*)`,source:"peer"}:{selector:t,source:"peer"}},void 0),P(t=>/^parent-(.+)$/.test(t),({selector:t,mod:e})=>{const r=/^parent-(.+)$/.exec(e.type);return r?.[1].startsWith("[")&&r?.[1].endsWith("]")?{selector:`.parent\\:\\[${r[1].slice(1,-1)}\\] &`,wrappingType:"rule",source:"parent"}:r?{selector:`.parent:${r[1]} &`,source:"parent"}:{selector:t,source:"parent"}},void 0),P(t=>/^child-(.+)$/.test(t),({selector:t,mod:e})=>{const r=/^child-(.+)$/.exec(e.type);return r?.[1].startsWith("[")&&r?.[1].endsWith("]")?{selector:`& > .child\\:\\[${r[1].slice(1,-1)}\\]`,wrappingType:"rule",source:"child"}:r?{selector:`& > .child:${r[1]}`,source:"child"}:{selector:t,source:"child"}},void 0);var qr=/^\s*@(media|container)\s+([^{]*)\{/,Ur=/prefers-color-scheme|\bprint\b|forced-colors|orientation/,Hr=/(?:min-width\s*:\s*|width\s*>=?\s*)([\d.]+)(px|rem|em)?/,Yr=/(?:max-width\s*:\s*|width\s*<=?\s*)([\d.]+)(px|rem|em)?/;function Gr(t,e){const r=parseFloat(t);return"rem"===e||"em"===e?16*r:r}function Xr(t,e){const r="container"===t;if(!r&&/^\s*not\b/i.test(e))return[0,0];const o=Hr.exec(e);if(o)return[r?4:2,Gr(o[1],o[2])];const a=Yr.exec(e);return a?[r?3:1,-Gr(a[1],a[2])]:!r&&Ur.test(e)?[5,0]:[0,0]}function Jr(t){const e=[];let r,o=t;for(;r=qr.exec(o);){const[t,a]=Xr(r[1],r[2]);e.push(t,a),o=o.slice(r[0].length)}return e}function Qr(t,e){const r=Math.min(t.length,e.length);for(let o=0;o<r;o++)if(t[o]!==e[o])return t[o]-e[o];return t.length-e.length}function to(t,e){let r=0,o=t.length;for(;r<o;){const a=r+o>>1;Qr(t[a],e)<=0?r=a+1:o=a}return r}var eo=class{insertSorted(t,e,r){const o=t.keys??=[],a=to(o,r),n=t.styleElement.sheet;n&&n.cssRules.length===o.length?(n.insertRule(this.escapeCssRule(e),a),t.styles.splice(a,0,e)):(t.styles.splice(a,0,e),t.styleElement.textContent=t.styles.join("\n")+"\n"),o.splice(a,0,r)}constructor(t,e=50,r="barocss-style-partition-",o=t=>Z(t).utility?.category,a=""){this.partitions=[],this.categoryPartitions=/* @__PURE__ */new Map,this.partitionCounter=0,this.maxRulesPerPartition=50,this.classToPartitionMap=/* @__PURE__ */new Map,this.classToCategoryPartitionMap=/* @__PURE__ */new Map,this.styleIdPrefix="barocss-style-partition-",this.nonce=a,this.insertionPoint=t,this.maxRulesPerPartition=e,this.styleIdPrefix=r,this.getCategory=o,this.initializeDefaultPartition()}createStyleElement(){const t=document.createElement("style");return this.nonce&&t.setAttribute("nonce",this.nonce),t}initializeDefaultPartition(){this.createNewPartition()}createNewCategoryPartition(t,e=!1){const r={id:this.styleIdPrefix+`-${t}`,styles:[],styleElement:this.createStyleElement()};r.styleElement.id=r.id,r.styleElement.setAttribute("data-barocss","partition"),r.styleElement.setAttribute("data-category",t);const o=this.insertionPoint.ownerDocument?.head;return e&&o?o.insertBefore(r.styleElement,o.firstChild):this.insertionPoint.appendChild(r.styleElement),this.categoryPartitions.set(t,r),r}createNewPartition(){const t=this.partitions[this.partitions.length-1],e={id:this.styleIdPrefix+"-"+this.partitionCounter++,styles:[],styleElement:this.createStyleElement()};this.partitions.push(e),e.styleElement.id=e.id,e.styleElement.setAttribute("data-barocss","partition"),e.styleElement.setAttribute("data-partition-index",this.partitionCounter.toString());const r=t?.styleElement.parentNode;return r?r.insertBefore(e.styleElement,t.styleElement.nextSibling):this.insertionPoint.appendChild(e.styleElement),e}hasRule(t){return this.classToPartitionMap.has(t)}hasCategoryRule(t,e){return this.classToCategoryPartitionMap.get(t)===e}setRuleCache(t,e){this.classToPartitionMap.set(t,e)}setCategoryRuleCache(t,e){this.classToCategoryPartitionMap.set(t,e)}get currentPartition(){return this.partitions[this.partitions.length-1]}getCategoryPartition(t){return this.categoryPartitions.get(t)}hasDetachedPartitions(){return[...this.partitions,...this.categoryPartitions.values()].some(t=>!t.styleElement.isConnected)}escapeCssRule(t){return t.replace(/\\\//g,"\\/")}addRule(t){if(this.hasRule(t))return!1;const e=Jr(t);let r=this.partitions.findIndex(t=>{const r=t.keys;return!!r&&r.length>0&&Qr(r[r.length-1],e)>0});-1===r&&(this.currentPartition.styles.length>=this.maxRulesPerPartition&&this.createNewPartition(),r=this.partitions.length-1);const o=this.partitions[r];try{return this.insertSorted(o,t,e),this.setRuleCache(t,r),!0}catch(a){return s()&&console.warn(`[StylePartitionManager] Failed to insert rule: ${t}`,a),!1}}addCategoryRule(t,e){if(this.hasCategoryRule(t,e))return!1;let r=this.getCategoryPartition(e);r||(r=this.createNewCategoryPartition(e));try{this.insertSorted(r,t,Jr(t))}catch(o){return s()&&console.warn(`[StylePartitionManager] Failed to insert rule in category: ${e} ${t}`,o),!1}return this.setCategoryRuleCache(t,e),!0}addRootRules(t){let e=this.getCategoryPartition("root");e||(e=this.createNewCategoryPartition("root"));try{const r=e.styleElement.sheet;for(const o of t)r?r.insertRule(this.escapeCssRule(o),r.cssRules.length):e.styleElement.textContent+=o+"\n"}catch(r){return s()&&console.warn(`[StylePartitionManager] Failed to insert rule in category: root ${t.join("\n")}`,r),{success:0,failed:t.length}}return{success:t.length,failed:0}}addRules(t){let e=0,r=0;for(const o of t){const t=this.getCategory(o.cls);if(t)for(const e of o.cssList)this.addCategoryRule(e,t);else for(const a of o.cssList)this.addRule(a)?e++:r++}return{success:e,failed:r}}removeRule(t,e){let r;if(e){if(this.classToCategoryPartitionMap.get(t)!==e)return!1;r=this.categoryPartitions.get(e)}else{const e=this.classToPartitionMap.get(t);r=void 0===e?void 0:this.partitions[e]}if(!r)return!1;const o=r.styles.indexOf(t);if(-1===o)return!1;const a=r.styleElement.sheet,n=!!a&&a.cssRules.length===r.styles.length;return r.styles.splice(o,1),r.keys?.splice(o,1),n&&a?a.deleteRule(o):r.styleElement.textContent=r.styles.length?r.styles.join("\n")+"\n":"",e?this.classToCategoryPartitionMap.delete(t):this.classToPartitionMap.delete(t),!0}get ruleCount(){return this.classToPartitionMap.size+this.classToCategoryPartitionMap.size}findRulePartition(t){const e=this.classToPartitionMap.get(t);if(void 0!==e&&this.partitions[e])return this.partitions[e];const r=this.classToCategoryPartitionMap.get(t);return void 0!==r&&this.categoryPartitions.get(r)||null}updateRuleContent(t,e,r=!1){const o=this.getCategoryPartition(t);if(o)o.styleElement.textContent=e;else{const o=this.createNewCategoryPartition(t,r);s()&&console.log(`[StylePartitionManager] Created new partition for category: ${t}`),o.styleElement.textContent=e}}cleanup(){this.partitions.forEach(t=>{t.styleElement.parentNode&&t.styleElement.parentNode.removeChild(t.styleElement)}),this.categoryPartitions.forEach(t=>{t.styleElement.parentNode&&t.styleElement.parentNode.removeChild(t.styleElement)}),this.partitions=[],this.categoryPartitions.clear(),this.partitionCounter=0,this.classToPartitionMap.clear(),this.classToCategoryPartitionMap.clear()}},ro=/[ \t\n\f\r]+/;function oo(t){return t?"object"==typeof t&&"string"==typeof t.baseVal?t.baseVal:t.toString():""}function ao(t){return t?oo(t).split(ro).filter(Boolean):[]}var no=class{constructor(t,e,r=t=>Z(t).utility?.category){this.observer=null,this.gc=null,this.incrementalParser=t,this.BrowserRuntime=e,this.getCategory=r}setGc(t){this.gc=t}setParser(t){this.incrementalParser=t}observe(t=document.body,e){return"undefined"==typeof window?new MutationObserver(()=>{}):(this.observer&&this.observer.disconnect(),this.gc?.setRoot(t),this.observer=new MutationObserver(e=>{const r=/* @__PURE__ */new Set,o=this.gc;if(e.forEach(e=>{if(o&&("attributes"===e.type?o.reconcile(e.target):"childList"===e.type&&(e.removedNodes.forEach(t=>o.reconcileTree(t)),e.addedNodes.forEach(t=>o.reconcileTree(t)))),"attributes"===e.type&&"class"===e.attributeName&&t.contains(e.target)){const t=e.target;t.className&&ao(t.className).forEach(t=>{this.incrementalParser.isProcessed(t)||r.add(t)})}"childList"===e.type&&e.addedNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE&&t.contains(e)){const t=e;this.processElement(t,r),t.querySelectorAll("[class]").forEach(t=>{this.processElement(t,r)})}})}),r.size>0){const t=Array.from(r),e=this.incrementalParser.processClasses(t);this.BrowserRuntime?.applyParseResults(e)}else this.BrowserRuntime?.applyParseResults([]);o?.afterBatch()}),this.observer.observe(t,{attributes:!0,subtree:!0,attributeFilter:["class"],childList:!0}),e?.scan&&this.scanExistingClasses(t,e),this.observer)}scanExistingClasses(t,e){const r=/* @__PURE__ */new Set,o=t.className;o&&ao(o).forEach(t=>{this.incrementalParser.isProcessed(t)||r.add(t)});const a=t.querySelectorAll("[class]");for(const n of a)if(n.className){const t=ao(n.className);for(const e of t)this.incrementalParser.isProcessed(e)||r.add(e)}if(r.size>0){const t=Array.from(r),o=this.incrementalParser.processClasses(t),a=o.filter(t=>"layout"===this.getCategory(t.cls)),n=o.filter(t=>"layout"!==this.getCategory(t.cls));this.BrowserRuntime?.applyParseResults(a),e?.onReady?.(),this.BrowserRuntime?.applyParseResults(n)}else e?.onReady?.()}processElement(t,e){t.className&&ao(t.className).forEach(t=>{this.incrementalParser.isProcessed(t)||e.add(t)})}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null)}};function so(t){return t.replace(/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,(t,e,r)=>e?String.fromCodePoint(parseInt(e,16)):r)}var io=/^\s*(?::(?:where|is)\(\s*)?\.((?:\\[0-9a-fA-F]{1,6}\s?|\\.|[\w-]|[^\x00-\x7F])+)/;function lo(t){const e=[];let r=0,o=0;for(let a=0;a<t.length;a++){const n=t[a];"\\"===n?a++:"("===n||"["===n?r++:")"===n||"]"===n?r--:","===n&&0===r&&(e.push(t.slice(o,a)),o=a+1)}return e.push(t.slice(o)),e}function co(t,e=/* @__PURE__ */new Set){for(const r of Array.from(t)){if(7===r.type&&"string"==typeof r.name){e.add(r.name);continue}const t=r.cssRules;t&&t.length&&co(t,e)}return e}function po(t,e=/* @__PURE__ */new Set){for(const r of Array.from(t)){const t=r.selectorText;if("string"==typeof t)for(const r of lo(t)){const t=io.exec(r);t&&e.add(so(t[1]))}const o=r.cssRules;o&&o.length&&po(o,e)}return e}var uo=class{constructor(t,e,r,o=()=>Date.now()){this.host=t,this.graceMs=e,this.maxRules=r,this.now=o,this.counts=/* @__PURE__ */new Map,this.counted=/* @__PURE__ */new WeakMap,this.candidates=/* @__PURE__ */new Map,this.timer=null,this.root=null}setRoot(t){this.counts.clear(),this.counted=/* @__PURE__ */new WeakMap,this.candidates.clear(),this.cancel(),this.root=t,1===t.nodeType?this.reconcileTree(t):t.querySelectorAll("[class]").forEach(t=>this.reconcile(t))}count(t){return this.counts.get(t)??0}reconcileTree(t){if(1!==t.nodeType)return;const e=t;this.reconcile(e),e.querySelectorAll("[class]").forEach(t=>this.reconcile(t))}reconcile(t){const e=this.root,r=e&&e.contains(t)?Array.from(new Set(ao(t.getAttribute("class")))):[],o=this.counted.get(t);if(!o&&0===r.length)return;const a=new Set(o??[]),n=new Set(r);for(const s of n){if(a.has(s))continue;const t=(this.counts.get(s)??0)+1;this.counts.set(s,t),this.candidates.delete(s)}for(const s of a){if(n.has(s))continue;const t=(this.counts.get(s)??0)-1;t>0?this.counts.set(s,t):(this.counts.delete(s),this.candidates.delete(s),this.candidates.set(s,this.now()))}r.length?this.counted.set(t,r):this.counted.delete(t)}afterBatch(){0!==this.candidates.size&&(this.host.cachedCount()>this.maxRules?this.schedule(0):this.schedule(this.graceMs))}schedule(t){if(null!==this.timer){if(t>0)return;clearTimeout(this.timer)}this.timer=setTimeout(()=>{this.timer=null,this.sweep()},t)}sweep(){const t=this.now(),e=Math.max(0,this.host.cachedCount()-this.maxRules),r=[];let o=0;for(const[a,n]of this.candidates){const s=t-n>=this.graceMs;!s&&o>=e||(this.candidates.delete(a),this.count(a)>0||this.inDom(a)||this.host.isPermanent(a)||(r.push(a),s||o++))}r.length&&this.host.reclaim(r),this.candidates.size&&this.schedule(this.graceMs)}inDom(t){const e=this.root;if(!e)return!1;if(1!==e.nodeType)return Array.from(e.querySelectorAll("[class]")).some(e=>e.classList.contains(t));const r=e.ownerDocument??document;return e.classList.contains(t)||r.documentElement.classList.contains(t)||r.getElementsByClassName(t).length>0}cancel(){null!==this.timer&&clearTimeout(this.timer),this.timer=null}stats(){return{trackedClasses:this.counts.size,candidates:this.candidates.size}}};function yo(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=Math.imul(e,16777619);return(e>>>0).toString(36)}function ho(t="shadow"){try{const e="document"===t?"undefined"!=typeof Document?Document.prototype:void 0:"undefined"!=typeof ShadowRoot?ShadowRoot.prototype:void 0;return!!e&&"adoptedStyleSheets"in e&&"function"==typeof CSSStyleSheet&&"function"==typeof(new CSSStyleSheet).replaceSync}catch{return!1}}var go=t=>t.replace(/\\\//g,"\\/"),mo=/^\s*@property\s/,fo=null;var bo=class{constructor(t,e,r=t,o={}){this.results=/* @__PURE__ */new Map,this.generations=0,this.prologueSheet=null,this.rulesSheet=null,this.prologue={props:"",preflight:"",vars:""},this.fallbackProps=/* @__PURE__ */new Set,this.segments=/* @__PURE__ */new Map([["root",{rules:[],keys:[]}],["",{rules:[],keys:[]}]]),this.refs=/* @__PURE__ */new Map,this.attached=[],this.key=t,this.fullKey=r,this.context=o.context??Yt(e),this.constructable=ho(o.target??"shadow"),this.constructable&&(this.prologueSheet=new CSSStyleSheet,this.rulesSheet=new CSSStyleSheet)}get rootCount(){return this.attached.length}get ruleCount(){return this.refs.size}attach(t,e=""){if(this.attached.some(e=>e.root===t))return;if(this.prologueSheet&&this.rulesSheet){const e=[this.prologueSheet,this.rulesSheet];return t.adoptedStyleSheets=[...t.adoptedStyleSheets.filter(t=>!e.includes(t)),...e],void this.attached.push({root:t})}if(11!==t.nodeType)throw new Error("[BrowserRuntime] constructable sheets are not supported for the document");const r=t.ownerDocument??document,o=r.createElement("style"),a=r.createElement("style");e&&(o.setAttribute("nonce",e),a.setAttribute("nonce",e)),o.setAttribute("data-barocss","root-prologue"),a.setAttribute("data-barocss","root"),o.textContent=this.prologueText(),a.textContent=this.allRules().join("\n"),t.insertBefore(a,t.firstChild),t.insertBefore(o,a),this.attached.push({root:t,styles:[o,a]})}detach(t){const e=this.attached.findIndex(e=>e.root===t);if(-1===e)return;const[r]=this.attached.splice(e,1);r.styles?r.styles.forEach(t=>t.remove()):t.adoptedStyleSheets&&(t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>t!==this.prologueSheet&&t!==this.rulesSheet))}addPropertyFallback(t){const e=this.fallbackProps.size;for(const r of t)mo.test(r)&&this.fallbackProps.add(r);this.fallbackProps.size!==e&&this.setPrologue("props",function(t){const e=[];for(const r of t){const t=/^\s*@property\s+(--[\w-]+)/.exec(r)?.[1],o=/initial-value\s*:\s*([^;}]*)/.exec(r)?.[1]?.trim();t&&o&&e.push(`${t}: ${o}`)}return 0===e.length?"":`@layer properties {\n:host, *, ::before, ::after, ::backdrop {\n ${e.join(";\n ")};\n}\n}`}(Array.from(this.fallbackProps)))}setPrologue(t,e){if(this.prologue[t]===e)return;this.prologue[t]=e;const r=this.prologueText();this.prologueSheet&&this.prologueSheet.replaceSync(r);for(const o of this.attached)o.styles&&(o.styles[0].textContent=r)}prologueText(){return[this.prologue.props,this.prologue.preflight,this.prologue.vars].filter(Boolean).join("\n")}allRules(){return Array.from(this.segments.values()).flatMap(t=>t.rules)}offset(t){let e=0;for(const r of this.segments.values()){if(r===t)return e;e+=r.rules.length}return e}retain(t,e){const r=this.refs.get(t);if(void 0!==r)return this.refs.set(t,r+1),!0;let o=this.segments.get(e);o||(o={rules:[],keys:[]},this.segments.set(e,o));const a="root"===e,n=Jr(t),i=a?o.rules.length:to(o.keys,n),l=this.offset(o)+i;try{this.insertAt(t,l)}catch(c){return s()&&console.warn(`[BrowserRuntime] Failed to insert rule into shadow root sheet: ${t}`,c),!1}return o.rules.splice(i,0,t),o.keys.splice(i,0,n),this.refs.set(t,1),!0}release(t){const e=this.refs.get(t);if(void 0!==e)if(e>1)this.refs.set(t,e-1);else{this.refs.delete(t);for(const e of this.segments.values()){const r=e.rules.indexOf(t);if(-1===r)continue;const o=this.offset(e)+r;return e.rules.splice(r,1),e.keys.splice(r,1),void this.deleteAt(o)}}}insertAt(t,e){const r=go(t);if(this.rulesSheet)return void this.rulesSheet.insertRule(r,e);const o=this.allRules().length;for(const a of this.attached){const n=a.styles[1],s=n.sheet;if(s&&s.cssRules.length===o)s.insertRule(r,e);else{const r=this.allRules();r.splice(e,0,t),n.textContent=r.join("\n")}}}deleteAt(t){if(this.rulesSheet)return void this.rulesSheet.deleteRule(t);const e=this.allRules().length;for(const r of this.attached){const o=r.styles[1],a=o.sheet;a&&a.cssRules.length===e+1?a.deleteRule(t):o.textContent=this.allRules().join("\n")}}cssText(){return[this.prologueText(),...this.allRules()].join("\n")}},vo=/* @__PURE__ */new Map;function xo(t,e=yo){const r=function(t){return JSON.stringify(t,(t,e)=>"function"==typeof e?`fn:${String(e)}`:e instanceof RegExp?`re:${e}`:e)??""}(t);let o=vo.get(r);return o||(o=new bo(e(r),t,r),vo.set(r,o)),o}var ko,wo=class extends Ot{constructor(t){super(t.context),this.shared=t}processClass(t){if(this.isProcessed(t))return null;const e=this.shared.results.get(t);if(e)return this.markProcessed(t),e;const r=super.processClass(t);return r&&(this.shared.results.set(t,r),this.shared.generations++),r}},$o=class{constructor(t,e,r=t=>Z(t).utility?.category,o={}){this.shared=t,this.root=e,this.getCategory=r,this.opts=o,this.owned=/* @__PURE__ */new Set,this.scopePreflight=11===e.nodeType,t.attach(e,o.nonce)}hasDetachedPartitions(){return!1}updateRuleContent(t,e){"preflight"===t?this.shared.setPrologue("preflight",this.scopePreflight?function(t){const e=[];let r=t.replace(/\/\*[\s\S]*?\*\//g,"");return r=r.replace(/(?<=^|[{};])(\s*)([^{};@\s][^{};]*?)\{([^{}]*)\}/g,(t,r,o,a)=>{const n=o.split(",").map(t=>t.trim()).filter(Boolean);if(n.includes("body"))for(const i of a.split(";").map(t=>t.trim()).filter(Boolean))/^(min-height|scroll-behavior)\s*:/.test(i)||e.push(i);const s=Array.from(new Set(n.filter(t=>"body"!==t).map(t=>"html"===t||":root"===t?":host":t)));return 0===s.length?"":`${r}${s.join(", ")} {${a}}`}),e.length&&(r+=`\n@layer base {\n:host {\n ${e.join(";\n ")};\n}\n}\n`),r}(e):e):"css-vars"===t&&this.shared.setPrologue("vars",e)}take(t,e){return!this.owned.has(t)&&(11===this.root.nodeType&&mo.test(t)&&(function(t,e,r={}){const o=e.filter(t=>mo.test(t));if(0===o.length)return!0;try{if(!t)return!1;if(!fo||fo.doc!==t||fo.style&&!fo.style.isConnected){const e={doc:t,rules:/* @__PURE__ */new Set};if(r.constructable&&ho("document"))e.sheet=new CSSStyleSheet,t.adoptedStyleSheets=[...t.adoptedStyleSheets,e.sheet];else{const o=t.head??t.documentElement;if(!o)return!1;const a=t.createElement("style");a.setAttribute("data-barocss","document-properties"),r.nonce&&a.setAttribute("nonce",r.nonce),o.appendChild(a),e.style=a}fo=e}const e=fo;for(const t of o){if(e.rules.has(t))continue;const r=e.sheet??e.style?.sheet??null;r?r.insertRule(go(t),r.cssRules.length):e.style&&(e.style.textContent+=`${t}\n`),e.rules.add(t)}return!0}catch(a){return s()&&console.warn("[BrowserRuntime] could not register @property rules in the document; using :host initial values",a),!1}}(this.root.ownerDocument??("undefined"!=typeof document?document:null),[t],this.opts)||this.shared.addPropertyFallback([t])),!!this.shared.retain(t,e)&&(this.owned.add(t),!0))}addRule(t){return this.take(t,"")}addCategoryRule(t,e){return this.take(t,`c:${e}`)}addRootRules(t){let e=0;for(const r of t)this.take(r,"root")&&e++;return{success:e,failed:t.length-e}}addRules(t){let e=0,r=0;for(const o of t){const t=this.getCategory(o.cls);for(const a of o.cssList)(t?this.addCategoryRule(a,t):this.addRule(a))?e++:r++}return{success:e,failed:r}}removeRule(t,e){return!!this.owned.delete(t)&&(this.shared.release(t),!0)}get ruleCount(){return this.owned.size}cleanup(){var t;this.owned.forEach(t=>this.shared.release(t)),this.owned.clear(),this.shared.detach(this.root),0===(t=this.shared).rootCount&&vo.get(t.fullKey)===t&&vo.delete(t.fullKey)}},Co="style[data-barocss-ssr]",Po="@layer theme, base, components, utilities;",zo=class{constructor(t={}){this.cache=/* @__PURE__ */new Map,this.rootCache=/* @__PURE__ */new Set,this.shadowRoot=null,this.isDestroyed=!1,this.existing=null,this.existingKeyframes=/* @__PURE__ */new Set,this.existingSheetCount=-1,this.pinned=/* @__PURE__ */new Set,this.gc=null,this.reclaimedCount=0,this.ssrRules=[],this.ssrClasses=/* @__PURE__ */new Set,this.observedOnce=!1,this.getCategory=t=>Z(t,this.context).utility?.category;this.options={config:t.config||{},styleId:t.styleId||"barocss-runtime",insertionPoint:t.insertionPoint||"head",maxRulesPerPartition:t.maxRulesPerPartition||50,skipExisting:t.skipExisting??!1,gc:t.gc??!0,gcGraceMs:t.gcGraceMs??3e3,maxRules:t.maxRules??1/0,nonce:t.nonce??"",constructable:t.constructable??!1};const e=t.root;if(e&&11===e.nodeType&&(this.shadowRoot=e),this.shadowRoot){const t=xo(this.options.config);this.context=t.context,this.incrementalParser=new wo(t)}else this.context=Yt(this.options.config),this.incrementalParser=new Ot(this.context);this.changeDetector=new no(this.incrementalParser,this,this.getCategory),this.stylePartitionManager=this.createStyles(),this.options.gc&&(this.gc=new uo({reclaim:t=>this.reclaim(t),isPermanent:t=>this.isPermanent(t),cachedCount:()=>this.cache.size},this.options.gcGraceMs,this.options.maxRules),this.changeDetector.setGc(this.gc)),this.init(),this.shadowRoot&&this.observe(this.shadowRoot,{scan:!0})}createStyles(){if(this.shadowRoot){let t=this.incrementalParser.shared;const e=xo(this.options.config);return e!==t&&(t=e,this.context=t.context,this.incrementalParser=new wo(t),this.changeDetector?.setParser(this.incrementalParser)),new $o(t,this.shadowRoot,this.getCategory,{nonce:this.options.nonce,constructable:this.options.constructable})}if(this.options.constructable&&"undefined"!=typeof document&&ho("document")){const t=new bo("document",this.options.config,"document",{context:this.context,target:"document"});return new $o(t,document,this.getCategory)}return new eo(this.getInsertionPoint(),this.options.maxRulesPerPartition,`${this.options.styleId}-partition`,this.getCategory,this.options.nonce)}debugLog(t,e,r){s()&&(console[t]||console.log)(`[BrowserRuntime:${t.toUpperCase()}] ${e}`,r||"")}init(){this.debugLog("debug","init"),this.injectPreflightCSS(),this.ensureCssVars(),this.adoptSsrSheets()}adoptSsrSheets(){if("undefined"==typeof document||this.shadowRoot)return;const t=[];if(document.head){for(const e of Array.from(document.head.querySelectorAll(`${Co}:not([data-barocss-adopted])`))){const r=e.sheet;if(!r)continue;e.setAttribute("data-barocss-adopted","");const o=[];for(let t=r.cssRules.length-1;t>=0;t--){const e=r.cssRules[t],a=po([e]);0!==a.size&&(a.forEach(t=>this.ssrClasses.add(t)),o.unshift({css:e.cssText,cls:a.values().next().value}),r.deleteRule(t))}t.push(...o)}0!==t.length&&(this.ssrRules.push(...t),this.insertSsrRules(t))}}insertSsrRules(t){for(const{css:e,cls:r}of t){const t=this.getCategory(r);t?this.stylePartitionManager.addCategoryRule(e,t):this.stylePartitionManager.addRule(e)}}injectPreflightCSS(){const t=this.options.config.preflight??!0;if(t){const e=this.context.getPreflightCSS(t);this.stylePartitionManager.updateRuleContent("preflight",`${Po}\n@layer base {\n${e}\n}`,!0)}}ensureCssVars(){if(this.isDestroyed)return;const t=this.context.themeToCssVars?this.context.themeToCssVars():":root { /* CSS Variables will be generated here */ }";this.stylePartitionManager.updateRuleContent("css-vars",t)}getInsertionPoint(){return"string"!=typeof this.options.insertionPoint?this.options.insertionPoint:"body"===this.options.insertionPoint&&document.body||document.head}addClass(t){if(this.isDestroyed)return;const e=this.normalizeClasses(t).filter(Boolean);e.forEach(t=>this.pinned.add(t)),this.processClasses(e)}processClasses(t){this.processClassesIncremental(t)}processClassesIncremental(t){const e="undefined"!=typeof window,r=this.incrementalParser.processClasses(t);this.debugLog("debug","results",{results:r,classList:t}),this.applyParseResults(r,{isBrowser:e})}applyParseResults(t,e){if(this.isDestroyed)return;if(!this.shadowRoot&&this.getInsertionPoint().isConnected&&this.stylePartitionManager.hasDetachedPartitions()){const e=Array.from(this.cache.values());this.reset(),(t=[...e,...t]).forEach(t=>this.incrementalParser.markProcessed(t.cls))}if(this.ssrClasses.size>0&&(t=t.filter(t=>!this.ssrClasses.has(t.cls))),this.options.skipExisting&&t.length>0&&"undefined"!=typeof document){const e=this.getExistingClasses();t=t.filter(t=>!e.has(t.cls))}if(0===t.length)return;const r=[],o=[],a=this.options.skipExisting&&"undefined"!=typeof document?(this.getExistingClasses(),this.existingKeyframes):null;for(const n of t)if(n.css&&Array.isArray(n.cssList)&&(r.push(n),this.cache.set(n.cls,n)),n.rootCss&&Array.isArray(n.rootCssList))for(const t of n.rootCssList){if(a?.size){const e=/^\s*@keyframes\s+([^\s{]+)/.exec(t)?.[1];if(e&&a.has(e))continue}this.rootCache.has(t)||(this.rootCache.add(t),o.push(t))}o.length>0&&this.stylePartitionManager.addRootRules(o.filter(Boolean)),r.length>0&&this.stylePartitionManager.addRules(r),this.debugLog("info",`Applied ${t.length} parser results`,{cssRuleCount:r.length,rootCssCount:o.length})}isPermanent(t){return!(!this.pinned.has(t)&&!this.ssrClasses.has(t))||!this.shadowRoot&&("undefined"==typeof document||this.getExistingClasses().has(t))}reclaim(t){if(this.isDestroyed)return;const e=t.filter(t=>this.cache.has(t));if(0===e.length)return;const r=e.map(t=>this.cache.get(t));e.forEach(t=>{this.cache.delete(t),this.incrementalParser.unmarkProcessed(t)});const o=/* @__PURE__ */new Set;for(const a of this.cache.values())a.cssList.forEach(t=>o.add(t));for(const a of r){const t=this.getCategory(a.cls);for(const e of a.cssList)o.has(e)||this.stylePartitionManager.removeRule(e,t)}this.reclaimedCount+=e.length}getExistingClasses(){const t=new Set(Array.from(document.querySelectorAll("style[data-barocss]"),t=>t.sheet)),e=Array.from(document.styleSheets).filter(e=>{if(t.has(e))return!1;const r=e.ownerNode;return!(r&&"function"==typeof r.hasAttribute&&(r.hasAttribute("data-barocss")||(r.id||"").startsWith(this.options.styleId)))});if(this.existing&&e.length===this.existingSheetCount)return this.existing;const r=/* @__PURE__ */new Set,o=/* @__PURE__ */new Set;for(const a of e){let t;try{t=a.cssRules}catch{continue}po(t,r),co(t,o)}return this.existingKeyframes=o,this.existing=r,this.existingSheetCount=e.length,r}observe(t=this.shadowRoot??document.body,e){return this.observedOnce||(this.observedOnce=!0,this.adoptSsrSheets()),this.changeDetector.observe(t,e)}normalizeClasses(t){return(Array.isArray(t)?t:[t]).flatMap(ao)}has(t){return this.cache.has(t)}getCss(t){return this.cache.get(t)?.cssList.join("\n")}getAllCss(){return[...this.rootCache,...Array.from(this.cache.values()).flatMap(t=>t.cssList)].join("\n")}getClasses(){return Array.from(this.cache.keys())}getCacheStats(){const t=this.incrementalParser.getStats();return{runtime:{cachedClasses:this.cache.size,rootCacheSize:this.rootCache.size,ruleCount:this.stylePartitionManager.ruleCount,reclaimedClasses:this.reclaimedCount,gc:this.gc?.stats()??null},ast:t.cacheStats.ast,incremental:t}}clearCaches(){var t;this.isDestroyed||(this.cache.clear(),this.rootCache.clear(),(t=this.context)?v(t):(g(),St.clear()),this.incrementalParser.clearProcessed(),this.stylePartitionManager.cleanup(),this.stylePartitionManager=this.createStyles(),this.injectPreflightCSS(),this.ensureCssVars(),this.insertSsrRules(this.ssrRules))}reset(){this.isDestroyed||(this.cache.clear(),this.rootCache.clear(),this.incrementalParser.clearProcessed(),this.stylePartitionManager.cleanup(),this.stylePartitionManager=this.createStyles(),this.injectPreflightCSS(),this.ensureCssVars(),this.insertSsrRules(this.ssrRules))}updateConfig(t){if(this.isDestroyed)return;const e=Array.from(this.cache.keys());if(this.options.config=t,this.shadowRoot){this.stylePartitionManager.cleanup();const e=xo(t);this.context=e.context,this.incrementalParser=new wo(e)}else this.context=Yt(t),this.incrementalParser=new Ot(this.context);this.changeDetector.setParser(this.incrementalParser),this.reset(),e.length>0&&this.addClass(e)}removeClass(t){if(this.isDestroyed)return;const e=new Set(this.normalizeClasses(t)),r=Array.from(this.cache.values()).filter(t=>!e.has(t.cls));r.length!==this.cache.size&&(this.reset(),r.forEach(t=>this.incrementalParser.markProcessed(t.cls)),this.applyParseResults(r))}destroy(){this.isDestroyed||(this.changeDetector.disconnect(),this.gc?.cancel(),this.stylePartitionManager.cleanup(),this.cache.clear(),this.rootCache.clear(),this.isDestroyed=!0)}getStats(){return{cachedClasses:this.cache.size,styleElementId:this.options.styleId,isDestroyed:this.isDestroyed,config:this.options.config,cacheStats:this.getCacheStats(),adopted:!this.shadowRoot&&this.stylePartitionManager instanceof $o,sharedSheet:this.shadowRoot&&this.stylePartitionManager instanceof $o?{roots:this.stylePartitionManager.shared.rootCount,rules:this.stylePartitionManager.shared.ruleCount,generations:this.stylePartitionManager.shared.generations,constructable:this.stylePartitionManager.shared.constructable}:null}}},Ao=null,So="",jo=!1,Ro=!1;function Eo(t={}){if(!Ao||Ao.getStats().isDestroyed?(Ao=new zo(t),ko=t.config,So=t.nonce??"",jo=t.constructable??!1,Ro=!1):t.config&&t.config!==ko&&(Ao.updateConfig(t.config),ko=t.config),!Ro){const e=void 0!==t.nonce&&t.nonce!==So,r=void 0!==t.constructable&&t.constructable!==jo;if(e||r){Ro=!0;const t=[e&&`nonce (runtime has ${So?"a different nonce":"none"})`,r&&`constructable (runtime has ${jo})`].filter(Boolean).join(" and ");console.warn(`[BaroCSS] runtime already created with a different ${t}; the new value is ignored. Pass nonce/constructable on the first getRuntime/baroStart call.`)}}return Ao}function To({loadingClassName:t="baro-boot",...e}={}){if(e.root&&11===e.root.nodeType)return new zo(e);if(!document.body)return void document.addEventListener("DOMContentLoaded",()=>To({loadingClassName:t,...e}),{once:!0});const r=`${t}-doing`,o=`${t}-done`;try{document.body.classList.add(r),Eo(e).observe(document.body,{scan:!0,onReady:()=>{document.body.classList.remove(r),document.body.classList.add(o)}})}catch(a){document.body?.classList.remove(r),console.error("BaroCSS boot failed:",a)}}var No=To;function Wo(t){if(!t||"object"!=typeof t||Array.isArray(t))return[];const e=t.elements;if(!e||"object"!=typeof e||Array.isArray(e))return[];const r=/* @__PURE__ */new Set;for(const o of Object.keys(e)){const t=e[o];if(!t||"object"!=typeof t||Array.isArray(t))continue;const a=t.props;if(!a||"object"!=typeof a||Array.isArray(a))continue;const n=a.className;if("string"==typeof n)for(const e of ao(n))e&&r.add(e)}return Array.from(r)}function Vo(t,e){const r=Wo(t);r.length>0&&e.addClass(r)}var Bo={colors:Object.fromEntries(["background","foreground","card","card-foreground","popover","popover-foreground","primary","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","accent","accent-foreground","destructive","border","input","ring","chart-1","chart-2","chart-3","chart-4","chart-5","sidebar","sidebar-foreground","sidebar-primary","sidebar-primary-foreground","sidebar-accent","sidebar-accent-foreground","sidebar-border","sidebar-ring"].map(t=>[t,`var(--${t})`])),borderRadius:{sm:"calc(var(--radius) - 4px)",md:"calc(var(--radius) - 2px)",lg:"var(--radius)",xl:"calc(var(--radius) + 4px)"}};export{zo as BrowserRuntime,no as ChangeDetector,Po as LAYER_ORDER,Co as SSR_STYLE_SELECTOR,eo as StylePartitionManager,To as baroBoot,No as baroStart,Wo as collectJsonRenderClassNames,Eo as getRuntime,oo as normalizeClassName,ao as normalizeClassNameList,Vo as preloadJsonRenderClasses,Bo as shadcnTheme};
|
|
2
2
|
//# sourceMappingURL=barocss.js.map
|